@mertcankocak/core-project 1.3.0 → 1.4.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/FormikDropdown/FormikDropdown.d.ts +49 -0
- package/dist/components/FormikDropdown/FormikDropdown.d.ts.map +1 -0
- package/dist/components/FormikDropdown/index.d.ts +4 -0
- package/dist/components/FormikDropdown/index.d.ts.map +1 -0
- package/dist/components/FormikDropdown/types.d.ts +9 -0
- package/dist/components/FormikDropdown/types.d.ts.map +1 -0
- package/dist/components/FormikTextField/FormikTextField.d.ts +10 -1
- package/dist/components/FormikTextField/FormikTextField.d.ts.map +1 -1
- package/dist/components/FormikTextField/index.d.ts +2 -0
- package/dist/components/FormikTextField/index.d.ts.map +1 -1
- package/dist/components/FormikTextField/masks.d.ts +28 -0
- package/dist/components/FormikTextField/masks.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/core-project.es.js +1058 -830
- package/dist/core-project.umd.js +10 -10
- package/package.json +18 -16
package/dist/core-project.es.js
CHANGED
|
@@ -1,344 +1,345 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { fileTypeFromBuffer as
|
|
3
|
-
import
|
|
4
|
-
import { useField as
|
|
5
|
-
import { InputAdornment as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import * as M from "yup";
|
|
2
|
+
import { fileTypeFromBuffer as He } from "file-type";
|
|
3
|
+
import Je, { forwardRef as Qe, useState as Te, useRef as Dr, useEffect as Ge, useCallback as ve, useMemo as ce, createElement as wr } from "react";
|
|
4
|
+
import { useField as er } from "formik";
|
|
5
|
+
import { InputAdornment as je, IconButton as Cr, Autocomplete as rr, TextField as Pe, CircularProgress as Sr, FormControl as jr, InputLabel as Pr, Select as Or, MenuItem as Ke, FormHelperText as zr } from "@mui/material";
|
|
6
|
+
import { VisibilityOff as Ar, Visibility as Ir } from "@mui/icons-material";
|
|
7
|
+
import { debounce as Mr } from "lodash";
|
|
8
|
+
const tr = /^[0-9]{11}$/;
|
|
9
|
+
function Fr(t) {
|
|
10
|
+
if (!tr.test(t))
|
|
10
11
|
return !1;
|
|
11
|
-
const
|
|
12
|
-
return !(
|
|
12
|
+
const n = t.split("").map(Number);
|
|
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]);
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function bt(t) {
|
|
15
16
|
const {
|
|
16
|
-
required:
|
|
17
|
-
message:
|
|
18
|
-
requiredMessage:
|
|
19
|
-
name:
|
|
20
|
-
} =
|
|
21
|
-
let
|
|
22
|
-
return
|
|
23
|
-
|
|
17
|
+
required: n = !1,
|
|
18
|
+
message: r = "Geçerli bir T.C. kimlik numarası giriniz",
|
|
19
|
+
requiredMessage: u = "T.C. kimlik numarası zorunludur",
|
|
20
|
+
name: l = "tcKimlikNo"
|
|
21
|
+
} = t || {};
|
|
22
|
+
let i = M.string();
|
|
23
|
+
return n && (i = i.required(u)), i = i.matches(
|
|
24
|
+
tr,
|
|
24
25
|
"T.C. kimlik numarası 11 haneli olmalıdır"
|
|
25
|
-
),
|
|
26
|
-
name:
|
|
27
|
-
message:
|
|
28
|
-
test(
|
|
29
|
-
return !
|
|
26
|
+
), i = i.test({
|
|
27
|
+
name: l,
|
|
28
|
+
message: r,
|
|
29
|
+
test(a) {
|
|
30
|
+
return !n && (!a || a.trim() === "") ? !0 : n && !a || !a || typeof a != "string" ? !1 : Fr(a);
|
|
30
31
|
}
|
|
31
|
-
}),
|
|
32
|
+
}), i;
|
|
32
33
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
35
|
-
return
|
|
34
|
+
const qr = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
35
|
+
function Br(t) {
|
|
36
|
+
return qr.test(t);
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function Et(t) {
|
|
38
39
|
const {
|
|
39
|
-
required:
|
|
40
|
-
message:
|
|
41
|
-
requiredMessage:
|
|
42
|
-
name:
|
|
43
|
-
} =
|
|
44
|
-
let
|
|
45
|
-
return
|
|
46
|
-
name:
|
|
47
|
-
message:
|
|
48
|
-
test(
|
|
49
|
-
return !
|
|
40
|
+
required: n = !1,
|
|
41
|
+
message: r = "Geçerli bir email adresi giriniz",
|
|
42
|
+
requiredMessage: u = "Email zorunludur",
|
|
43
|
+
name: l = "email"
|
|
44
|
+
} = t || {};
|
|
45
|
+
let i = M.string();
|
|
46
|
+
return n && (i = i.required(u)), i = i.email(r).test({
|
|
47
|
+
name: l,
|
|
48
|
+
message: r,
|
|
49
|
+
test(a) {
|
|
50
|
+
return !n && (!a || a.trim() === "") ? !0 : n && !a || !a || typeof a != "string" ? !1 : Br(a);
|
|
50
51
|
}
|
|
51
|
-
}),
|
|
52
|
+
}), i;
|
|
52
53
|
}
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
return
|
|
54
|
+
const Nr = /^(\+90\s?)?(0?5\d{2})\s?(\d{3})\s?(\d{2})\s?(\d{2})$/;
|
|
55
|
+
function Lr(t) {
|
|
56
|
+
const n = t.replace(/\s+/g, "").replace(/[-\+()]/g, "");
|
|
57
|
+
return n.length !== 10 && n.length !== 11 || !n.match(/^(0?5\d{9})$/) ? !1 : Nr.test(t) || /^0?5\d{9}$/.test(n);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function _t(t) {
|
|
59
60
|
const {
|
|
60
|
-
required:
|
|
61
|
-
message:
|
|
62
|
-
requiredMessage:
|
|
63
|
-
name:
|
|
64
|
-
} =
|
|
65
|
-
let
|
|
66
|
-
return
|
|
67
|
-
name:
|
|
68
|
-
message:
|
|
69
|
-
test(
|
|
70
|
-
return !
|
|
61
|
+
required: n = !1,
|
|
62
|
+
message: r = "Geçerli bir telefon numarası giriniz (05XX XXX XX XX)",
|
|
63
|
+
requiredMessage: u = "Telefon numarası zorunludur",
|
|
64
|
+
name: l = "phone"
|
|
65
|
+
} = t || {};
|
|
66
|
+
let i = M.string();
|
|
67
|
+
return n && (i = i.required(u)), i = i.test({
|
|
68
|
+
name: l,
|
|
69
|
+
message: r,
|
|
70
|
+
test(a) {
|
|
71
|
+
return !n && (!a || a.trim() === "") ? !0 : n && !a || !a || typeof a != "string" ? !1 : Lr(a);
|
|
71
72
|
}
|
|
72
|
-
}),
|
|
73
|
+
}), i;
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function Rt(t, n) {
|
|
75
76
|
const {
|
|
76
|
-
minLength:
|
|
77
|
-
requireUppercase:
|
|
78
|
-
requireLowercase:
|
|
79
|
-
requireNumber:
|
|
80
|
-
requireSpecialChar:
|
|
81
|
-
} =
|
|
82
|
-
return
|
|
77
|
+
minLength: r = 8,
|
|
78
|
+
requireUppercase: u = !0,
|
|
79
|
+
requireLowercase: l = !0,
|
|
80
|
+
requireNumber: i = !0,
|
|
81
|
+
requireSpecialChar: a = !0
|
|
82
|
+
} = n || {}, c = [];
|
|
83
|
+
return t.length < r && c.push(`Şifre en az ${r} karakter olmalıdır`), u && !/[A-Z]/.test(t) && c.push("Şifre en az bir büyük harf içermelidir"), l && !/[a-z]/.test(t) && c.push("Şifre en az bir küçük harf içermelidir"), i && !/\d/.test(t) && c.push("Şifre en az bir rakam içermelidir"), a && !/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(t) && c.push("Şifre en az bir özel karakter içermelidir"), {
|
|
83
84
|
isValid: c.length === 0,
|
|
84
85
|
errors: c
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function Tt(t) {
|
|
88
89
|
const {
|
|
89
|
-
required:
|
|
90
|
-
requiredMessage:
|
|
91
|
-
minLength:
|
|
92
|
-
requireUppercase:
|
|
93
|
-
requireLowercase:
|
|
94
|
-
requireNumber:
|
|
90
|
+
required: n = !1,
|
|
91
|
+
requiredMessage: r = "Şifre zorunludur",
|
|
92
|
+
minLength: u = 8,
|
|
93
|
+
requireUppercase: l = !0,
|
|
94
|
+
requireLowercase: i = !0,
|
|
95
|
+
requireNumber: a = !0,
|
|
95
96
|
requireSpecialChar: c = !0,
|
|
96
|
-
minLengthMessage:
|
|
97
|
-
uppercaseMessage:
|
|
98
|
-
lowercaseMessage:
|
|
99
|
-
numberMessage:
|
|
100
|
-
specialCharMessage:
|
|
101
|
-
} =
|
|
102
|
-
let
|
|
103
|
-
return
|
|
97
|
+
minLengthMessage: m = `Şifre en az ${u} karakter olmalıdır`,
|
|
98
|
+
uppercaseMessage: D = "Şifre en az bir büyük harf içermelidir",
|
|
99
|
+
lowercaseMessage: R = "Şifre en az bir küçük harf içermelidir",
|
|
100
|
+
numberMessage: T = "Şifre en az bir rakam içermelidir",
|
|
101
|
+
specialCharMessage: _ = "Şifre en az bir özel karakter içermelidir"
|
|
102
|
+
} = t || {};
|
|
103
|
+
let h = M.string();
|
|
104
|
+
return n && (h = h.required(r)), h = h.min(u, m), l && (h = h.matches(/[A-Z]/, D)), i && (h = h.matches(/[a-z]/, R)), a && (h = h.matches(/\d/, T)), c && (h = h.matches(
|
|
104
105
|
/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,
|
|
105
|
-
|
|
106
|
-
)),
|
|
106
|
+
_
|
|
107
|
+
)), h;
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function kt(t, n) {
|
|
109
110
|
const {
|
|
110
|
-
required:
|
|
111
|
-
message:
|
|
112
|
-
requiredMessage:
|
|
113
|
-
} =
|
|
114
|
-
let
|
|
115
|
-
return
|
|
111
|
+
required: r = !1,
|
|
112
|
+
message: u = "Şifreler eşleşmiyor",
|
|
113
|
+
requiredMessage: l = "Şifre tekrarı zorunludur"
|
|
114
|
+
} = n || {};
|
|
115
|
+
let i = M.string();
|
|
116
|
+
return r && (i = i.required(l)), i = i.oneOf([M.ref(t)], u), i;
|
|
116
117
|
}
|
|
117
|
-
const
|
|
118
|
-
function
|
|
119
|
-
return !
|
|
118
|
+
const nr = /^[a-zA-ZçğıöşüÇĞIİÖŞÜ\s]+$/;
|
|
119
|
+
function Vr(t) {
|
|
120
|
+
return !t || t.trim().length === 0 || t.trim().length < 2 ? !1 : nr.test(t);
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function $t(t) {
|
|
122
123
|
const {
|
|
123
|
-
required:
|
|
124
|
-
message:
|
|
125
|
-
requiredMessage:
|
|
126
|
-
name:
|
|
127
|
-
} =
|
|
128
|
-
let
|
|
129
|
-
return
|
|
130
|
-
name:
|
|
131
|
-
message:
|
|
132
|
-
test(
|
|
133
|
-
return !
|
|
124
|
+
required: n = !1,
|
|
125
|
+
message: r = "İsim sadece harf içermelidir",
|
|
126
|
+
requiredMessage: u = "İsim zorunludur",
|
|
127
|
+
name: l = "name"
|
|
128
|
+
} = t || {};
|
|
129
|
+
let i = M.string();
|
|
130
|
+
return n && (i = i.required(u)), i = i.min(2, "İsim en az 2 karakter olmalıdır").matches(nr, r).test({
|
|
131
|
+
name: l,
|
|
132
|
+
message: r,
|
|
133
|
+
test(a) {
|
|
134
|
+
return !n && (!a || a.trim() === "") ? !0 : n && !a || !a || typeof a != "string" ? !1 : Vr(a);
|
|
134
135
|
}
|
|
135
|
-
}),
|
|
136
|
+
}), i;
|
|
136
137
|
}
|
|
137
|
-
const
|
|
138
|
-
function
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
138
|
+
const Ur = /^TR\d{2}[0-9A-Z]{4}\d{1}[0-9A-Z]{15,30}$/i;
|
|
139
|
+
function Yr(t) {
|
|
140
|
+
const n = t.replace(/\s+/g, "").toUpperCase();
|
|
141
|
+
if (!Ur.test(n))
|
|
141
142
|
return !1;
|
|
142
|
-
const
|
|
143
|
-
const
|
|
144
|
-
return
|
|
143
|
+
const u = (n.slice(4) + n.slice(0, 4)).split("").map((i) => {
|
|
144
|
+
const a = i.charCodeAt(0);
|
|
145
|
+
return a >= 65 && a <= 90 ? a - 55 : i;
|
|
145
146
|
}).join("");
|
|
146
|
-
return BigInt(
|
|
147
|
+
return BigInt(u) % BigInt(97) === BigInt(1);
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
+
function xt(t) {
|
|
149
150
|
const {
|
|
150
|
-
required:
|
|
151
|
-
message:
|
|
152
|
-
requiredMessage:
|
|
153
|
-
name:
|
|
154
|
-
} =
|
|
155
|
-
let
|
|
156
|
-
return
|
|
157
|
-
name:
|
|
158
|
-
message:
|
|
159
|
-
test(
|
|
160
|
-
return !
|
|
151
|
+
required: n = !1,
|
|
152
|
+
message: r = "Geçerli bir IBAN numarası giriniz",
|
|
153
|
+
requiredMessage: u = "IBAN zorunludur",
|
|
154
|
+
name: l = "iban"
|
|
155
|
+
} = t || {};
|
|
156
|
+
let i = M.string();
|
|
157
|
+
return n && (i = i.required(u)), i = i.test({
|
|
158
|
+
name: l,
|
|
159
|
+
message: r,
|
|
160
|
+
test(a) {
|
|
161
|
+
return !n && (!a || a.trim() === "") ? !0 : n && !a || !a || typeof a != "string" ? !1 : Yr(a);
|
|
161
162
|
}
|
|
162
|
-
}),
|
|
163
|
+
}), i;
|
|
163
164
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
const
|
|
167
|
-
if (!
|
|
165
|
+
const Gr = /^\d{13,19}$/;
|
|
166
|
+
function Kr(t) {
|
|
167
|
+
const n = t.replace(/\s+/g, "").replace(/-/g, "");
|
|
168
|
+
if (!Gr.test(n))
|
|
168
169
|
return !1;
|
|
169
|
-
let
|
|
170
|
-
for (let
|
|
171
|
-
let
|
|
172
|
-
|
|
170
|
+
let r = 0, u = !1;
|
|
171
|
+
for (let l = n.length - 1; l >= 0; l--) {
|
|
172
|
+
let i = parseInt(n[l], 10);
|
|
173
|
+
u && (i *= 2, i > 9 && (i -= 9)), r += i, u = !u;
|
|
173
174
|
}
|
|
174
|
-
return
|
|
175
|
+
return r % 10 === 0;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
+
function Dt(t) {
|
|
177
178
|
const {
|
|
178
|
-
required:
|
|
179
|
-
message:
|
|
180
|
-
requiredMessage:
|
|
181
|
-
name:
|
|
182
|
-
} =
|
|
183
|
-
let
|
|
184
|
-
return
|
|
185
|
-
name:
|
|
186
|
-
message:
|
|
187
|
-
test(
|
|
188
|
-
return !
|
|
179
|
+
required: n = !1,
|
|
180
|
+
message: r = "Geçerli bir kredi kartı numarası giriniz",
|
|
181
|
+
requiredMessage: u = "Kredi kartı numarası zorunludur",
|
|
182
|
+
name: l = "creditCard"
|
|
183
|
+
} = t || {};
|
|
184
|
+
let i = M.string();
|
|
185
|
+
return n && (i = i.required(u)), i = i.test({
|
|
186
|
+
name: l,
|
|
187
|
+
message: r,
|
|
188
|
+
test(a) {
|
|
189
|
+
return !n && (!a || a.trim() === "") ? !0 : n && !a || !a || typeof a != "string" ? !1 : Kr(a);
|
|
189
190
|
}
|
|
190
|
-
}),
|
|
191
|
+
}), i;
|
|
191
192
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
if (!
|
|
193
|
+
const Wr = /^\d{10}$/;
|
|
194
|
+
function Xr(t) {
|
|
195
|
+
if (!Wr.test(t))
|
|
195
196
|
return !1;
|
|
196
|
-
const
|
|
197
|
-
return
|
|
198
|
-
const c = (
|
|
199
|
-
return
|
|
200
|
-
}, 0) % 11 % 10 ===
|
|
197
|
+
const n = t.split("").map(Number);
|
|
198
|
+
return n.slice(0, 9).reduce((l, i, a) => {
|
|
199
|
+
const c = (a + 1) % 9 || 9;
|
|
200
|
+
return l + i * c;
|
|
201
|
+
}, 0) % 11 % 10 === n[9];
|
|
201
202
|
}
|
|
202
|
-
function
|
|
203
|
+
function wt(t) {
|
|
203
204
|
const {
|
|
204
|
-
required:
|
|
205
|
-
message:
|
|
206
|
-
requiredMessage:
|
|
207
|
-
name:
|
|
208
|
-
} =
|
|
209
|
-
let
|
|
210
|
-
return
|
|
211
|
-
name:
|
|
212
|
-
message:
|
|
213
|
-
test(
|
|
214
|
-
return !
|
|
205
|
+
required: n = !1,
|
|
206
|
+
message: r = "Geçerli bir VKN (Vergi Kimlik Numarası) giriniz",
|
|
207
|
+
requiredMessage: u = "VKN zorunludur",
|
|
208
|
+
name: l = "vkn"
|
|
209
|
+
} = t || {};
|
|
210
|
+
let i = M.string();
|
|
211
|
+
return n && (i = i.required(u)), i = i.test({
|
|
212
|
+
name: l,
|
|
213
|
+
message: r,
|
|
214
|
+
test(a) {
|
|
215
|
+
return !n && (!a || a.trim() === "") ? !0 : n && !a || !a || typeof a != "string" ? !1 : Xr(a);
|
|
215
216
|
}
|
|
216
|
-
}),
|
|
217
|
+
}), i;
|
|
217
218
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
220
|
-
const
|
|
221
|
-
if (!
|
|
219
|
+
const We = /^(\d{2})\s?([A-ZÇĞIİÖŞÜ]{1,3})\s?(\d{2,4})$/i;
|
|
220
|
+
function Zr(t) {
|
|
221
|
+
const n = t.replace(/\s+/g, " ").trim().toUpperCase();
|
|
222
|
+
if (!We.test(n))
|
|
222
223
|
return !1;
|
|
223
|
-
const
|
|
224
|
-
if (!
|
|
224
|
+
const r = n.match(We);
|
|
225
|
+
if (!r)
|
|
225
226
|
return !1;
|
|
226
|
-
const [,
|
|
227
|
-
return !(
|
|
227
|
+
const [, u, l, i] = r, a = parseInt(u, 10);
|
|
228
|
+
return !(a < 1 || a > 81 || l.length < 1 || l.length > 3 || i.length < 2 || i.length > 4);
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
+
function Ct(t) {
|
|
230
231
|
const {
|
|
231
|
-
required:
|
|
232
|
-
message:
|
|
233
|
-
requiredMessage:
|
|
234
|
-
name:
|
|
235
|
-
} =
|
|
236
|
-
let
|
|
237
|
-
return
|
|
238
|
-
name:
|
|
239
|
-
message:
|
|
240
|
-
test(
|
|
241
|
-
return !
|
|
232
|
+
required: n = !1,
|
|
233
|
+
message: r = "Geçerli bir araç plakası giriniz (örn: 34 ABC 123)",
|
|
234
|
+
requiredMessage: u = "Araç plakası zorunludur",
|
|
235
|
+
name: l = "plate"
|
|
236
|
+
} = t || {};
|
|
237
|
+
let i = M.string();
|
|
238
|
+
return n && (i = i.required(u)), i = i.test({
|
|
239
|
+
name: l,
|
|
240
|
+
message: r,
|
|
241
|
+
test(a) {
|
|
242
|
+
return !n && (!a || a.trim() === "") ? !0 : n && !a || !a || typeof a != "string" ? !1 : Zr(a);
|
|
242
243
|
}
|
|
243
|
-
}),
|
|
244
|
+
}), i;
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
-
const
|
|
247
|
-
return
|
|
246
|
+
function ke(t) {
|
|
247
|
+
const n = t.split(".");
|
|
248
|
+
return n.length > 1 ? n[n.length - 1].toLowerCase() : "";
|
|
248
249
|
}
|
|
249
|
-
async function
|
|
250
|
+
async function St(t, n) {
|
|
250
251
|
const {
|
|
251
|
-
maxSize:
|
|
252
|
-
minSize:
|
|
253
|
-
allowedExtensions:
|
|
254
|
-
allowedMimeTypes:
|
|
255
|
-
} =
|
|
256
|
-
if (
|
|
257
|
-
const c = (
|
|
258
|
-
|
|
252
|
+
maxSize: r,
|
|
253
|
+
minSize: u,
|
|
254
|
+
allowedExtensions: l = [],
|
|
255
|
+
allowedMimeTypes: i = []
|
|
256
|
+
} = n || {}, a = [];
|
|
257
|
+
if (r && t.size > r) {
|
|
258
|
+
const c = (r / 1048576).toFixed(2);
|
|
259
|
+
a.push(`Dosya boyutu en fazla ${c} MB olmalıdır`);
|
|
259
260
|
}
|
|
260
|
-
if (
|
|
261
|
-
const c = (
|
|
262
|
-
|
|
261
|
+
if (u && t.size < u) {
|
|
262
|
+
const c = (u / 1048576).toFixed(2);
|
|
263
|
+
a.push(`Dosya boyutu en az ${c} MB olmalıdır`);
|
|
263
264
|
}
|
|
264
|
-
if (
|
|
265
|
+
if (l.length > 0 && i.length === 0 && console.warn(
|
|
265
266
|
"⚠️ UYARI: Sadece dosya uzantısı kontrolü yapılıyor. Güvenlik için 'allowedMimeTypes' parametresini kullanarak magic bytes kontrolü yapmanız önerilir."
|
|
266
|
-
),
|
|
267
|
-
const c =
|
|
268
|
-
|
|
269
|
-
`İzin verilen dosya uzantıları: ${
|
|
267
|
+
), l.length > 0 && t instanceof File) {
|
|
268
|
+
const c = ke(t.name);
|
|
269
|
+
l.includes(c) || a.push(
|
|
270
|
+
`İzin verilen dosya uzantıları: ${l.join(", ")}`
|
|
270
271
|
);
|
|
271
272
|
}
|
|
272
|
-
if (
|
|
273
|
+
if (i.length > 0)
|
|
273
274
|
try {
|
|
274
|
-
const c = await
|
|
275
|
-
|
|
276
|
-
`Dosya tipi uyumsuz. Beklenen: ${
|
|
277
|
-
) :
|
|
275
|
+
const c = await t.arrayBuffer(), m = new Uint8Array(c), D = await He(m);
|
|
276
|
+
D ? i.includes(D.mime) || a.push(
|
|
277
|
+
`Dosya tipi uyumsuz. Beklenen: ${i.join(", ")}, Tespit edilen: ${D.mime}. (Dosya uzantısı: ${t instanceof File ? ke(t.name) : "bilinmiyor"})`
|
|
278
|
+
) : a.push(
|
|
278
279
|
"Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir."
|
|
279
280
|
);
|
|
280
281
|
} catch {
|
|
281
|
-
|
|
282
|
+
a.push("Dosya tipi kontrol edilemedi. Dosya okunamadı.");
|
|
282
283
|
}
|
|
283
284
|
return {
|
|
284
|
-
isValid:
|
|
285
|
-
errors:
|
|
285
|
+
isValid: a.length === 0,
|
|
286
|
+
errors: a
|
|
286
287
|
};
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
+
function jt(t) {
|
|
289
290
|
const {
|
|
290
|
-
required:
|
|
291
|
-
message:
|
|
292
|
-
requiredMessage:
|
|
293
|
-
name:
|
|
294
|
-
maxSize:
|
|
295
|
-
minSize:
|
|
291
|
+
required: n = !1,
|
|
292
|
+
message: r = "Geçerli bir dosya seçiniz",
|
|
293
|
+
requiredMessage: u = "Dosya zorunludur",
|
|
294
|
+
name: l = "file",
|
|
295
|
+
maxSize: i,
|
|
296
|
+
minSize: a,
|
|
296
297
|
allowedExtensions: c = [],
|
|
297
|
-
allowedMimeTypes:
|
|
298
|
-
sizeMessage:
|
|
299
|
-
extensionMessage:
|
|
300
|
-
} =
|
|
301
|
-
let
|
|
302
|
-
return
|
|
303
|
-
name:
|
|
304
|
-
message:
|
|
305
|
-
async test(
|
|
306
|
-
if (!
|
|
298
|
+
allowedMimeTypes: m = [],
|
|
299
|
+
sizeMessage: D,
|
|
300
|
+
extensionMessage: R
|
|
301
|
+
} = t || {};
|
|
302
|
+
let T = M.mixed();
|
|
303
|
+
return n && (T = T.required(u)), T = T.test({
|
|
304
|
+
name: l,
|
|
305
|
+
message: r || "Geçerli bir dosya seçiniz",
|
|
306
|
+
async test(_) {
|
|
307
|
+
if (!n && !_)
|
|
307
308
|
return !0;
|
|
308
|
-
if (
|
|
309
|
+
if (n && !_ || !(_ instanceof File))
|
|
309
310
|
return !1;
|
|
310
|
-
if (
|
|
311
|
-
const
|
|
311
|
+
if (i && _.size > i) {
|
|
312
|
+
const h = (i / 1048576).toFixed(2);
|
|
312
313
|
return this.createError({
|
|
313
|
-
message:
|
|
314
|
+
message: D || `Dosya boyutu en fazla ${h} MB olmalıdır`
|
|
314
315
|
});
|
|
315
316
|
}
|
|
316
|
-
if (
|
|
317
|
-
const
|
|
317
|
+
if (a && _.size < a) {
|
|
318
|
+
const h = (a / 1048576).toFixed(2);
|
|
318
319
|
return this.createError({
|
|
319
|
-
message:
|
|
320
|
+
message: D || `Dosya boyutu en az ${h} MB olmalıdır`
|
|
320
321
|
});
|
|
321
322
|
}
|
|
322
323
|
if (c.length > 0) {
|
|
323
|
-
const
|
|
324
|
-
if (!c.includes(
|
|
324
|
+
const h = ke(_.name);
|
|
325
|
+
if (!c.includes(h))
|
|
325
326
|
return this.createError({
|
|
326
|
-
message:
|
|
327
|
+
message: R || `İzin verilen dosya uzantıları: ${c.join(", ")}`
|
|
327
328
|
});
|
|
328
329
|
}
|
|
329
|
-
if (
|
|
330
|
+
if (m.length > 0)
|
|
330
331
|
try {
|
|
331
|
-
const
|
|
332
|
-
if (!
|
|
332
|
+
const h = await _.arrayBuffer(), U = new Uint8Array(h), j = await He(U);
|
|
333
|
+
if (!j)
|
|
333
334
|
return this.createError({
|
|
334
335
|
message: "Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir."
|
|
335
336
|
});
|
|
336
|
-
if (!
|
|
337
|
-
const
|
|
337
|
+
if (!m.includes(j.mime)) {
|
|
338
|
+
const H = ke(_.name);
|
|
338
339
|
return this.createError({
|
|
339
|
-
message: `Dosya tipi uyumsuz. Beklenen: ${
|
|
340
|
+
message: `Dosya tipi uyumsuz. Beklenen: ${m.join(
|
|
340
341
|
", "
|
|
341
|
-
)}, Tespit edilen: ${
|
|
342
|
+
)}, Tespit edilen: ${j.mime}. (Dosya uzantısı: ${H})`
|
|
342
343
|
});
|
|
343
344
|
}
|
|
344
345
|
} catch {
|
|
@@ -348,71 +349,71 @@ function mt(n) {
|
|
|
348
349
|
}
|
|
349
350
|
return !0;
|
|
350
351
|
}
|
|
351
|
-
}),
|
|
352
|
+
}), T;
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
-
const { minDate:
|
|
355
|
-
if (isNaN(
|
|
354
|
+
function Pt(t, n) {
|
|
355
|
+
const { minDate: r, maxDate: u } = n || {}, l = typeof t == "string" ? new Date(t) : t;
|
|
356
|
+
if (isNaN(l.getTime()))
|
|
356
357
|
return { isValid: !1, error: "Geçersiz tarih formatı" };
|
|
357
|
-
if (
|
|
358
|
-
const
|
|
359
|
-
if (
|
|
358
|
+
if (r) {
|
|
359
|
+
const i = typeof r == "string" ? new Date(r) : r;
|
|
360
|
+
if (l < i)
|
|
360
361
|
return {
|
|
361
362
|
isValid: !1,
|
|
362
|
-
error: `Tarih ${
|
|
363
|
+
error: `Tarih ${i.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`
|
|
363
364
|
};
|
|
364
365
|
}
|
|
365
|
-
if (
|
|
366
|
-
const
|
|
367
|
-
if (
|
|
366
|
+
if (u) {
|
|
367
|
+
const i = typeof u == "string" ? new Date(u) : u;
|
|
368
|
+
if (l > i)
|
|
368
369
|
return {
|
|
369
370
|
isValid: !1,
|
|
370
|
-
error: `Tarih ${
|
|
371
|
+
error: `Tarih ${i.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`
|
|
371
372
|
};
|
|
372
373
|
}
|
|
373
374
|
return { isValid: !0 };
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function ir(t) {
|
|
376
377
|
const {
|
|
377
|
-
required:
|
|
378
|
-
requiredMessage:
|
|
379
|
-
minDate:
|
|
380
|
-
maxDate:
|
|
381
|
-
minDateMessage:
|
|
382
|
-
maxDateMessage:
|
|
383
|
-
} =
|
|
384
|
-
let c =
|
|
385
|
-
if (
|
|
386
|
-
const
|
|
378
|
+
required: n = !1,
|
|
379
|
+
requiredMessage: r = "Tarih zorunludur",
|
|
380
|
+
minDate: u,
|
|
381
|
+
maxDate: l,
|
|
382
|
+
minDateMessage: i,
|
|
383
|
+
maxDateMessage: a
|
|
384
|
+
} = t || {};
|
|
385
|
+
let c = M.date();
|
|
386
|
+
if (n && (c = c.required(r)), u) {
|
|
387
|
+
const m = typeof u == "string" ? new Date(u) : u;
|
|
387
388
|
c = c.min(
|
|
388
|
-
|
|
389
|
-
|
|
389
|
+
m,
|
|
390
|
+
i || `Tarih ${m.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`
|
|
390
391
|
);
|
|
391
392
|
}
|
|
392
|
-
if (
|
|
393
|
-
const
|
|
393
|
+
if (l) {
|
|
394
|
+
const m = typeof l == "string" ? new Date(l) : l;
|
|
394
395
|
c = c.max(
|
|
395
|
-
|
|
396
|
-
|
|
396
|
+
m,
|
|
397
|
+
a || `Tarih ${m.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`
|
|
397
398
|
);
|
|
398
399
|
}
|
|
399
400
|
return c;
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
-
return
|
|
403
|
-
...
|
|
402
|
+
function Ot(t) {
|
|
403
|
+
return ir({
|
|
404
|
+
...t,
|
|
404
405
|
maxDate: /* @__PURE__ */ new Date(),
|
|
405
|
-
maxDateMessage: (
|
|
406
|
+
maxDateMessage: (t == null ? void 0 : t.message) || "Tarih geçmiş bir tarih olmalıdır"
|
|
406
407
|
});
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
-
return
|
|
410
|
-
...
|
|
409
|
+
function zt(t) {
|
|
410
|
+
return ir({
|
|
411
|
+
...t,
|
|
411
412
|
minDate: /* @__PURE__ */ new Date(),
|
|
412
|
-
minDateMessage: (
|
|
413
|
+
minDateMessage: (t == null ? void 0 : t.message) || "Tarih gelecek bir tarih olmalıdır"
|
|
413
414
|
});
|
|
414
415
|
}
|
|
415
|
-
var
|
|
416
|
+
var Oe = { exports: {} }, pe = {};
|
|
416
417
|
/**
|
|
417
418
|
* @license React
|
|
418
419
|
* react-jsx-runtime.production.min.js
|
|
@@ -422,21 +423,21 @@ var De = { exports: {} }, ae = {};
|
|
|
422
423
|
* This source code is licensed under the MIT license found in the
|
|
423
424
|
* LICENSE file in the root directory of this source tree.
|
|
424
425
|
*/
|
|
425
|
-
var
|
|
426
|
-
function
|
|
427
|
-
if (
|
|
428
|
-
|
|
429
|
-
var
|
|
430
|
-
function
|
|
431
|
-
var
|
|
432
|
-
|
|
433
|
-
for (
|
|
434
|
-
if (c && c.defaultProps) for (
|
|
435
|
-
return { $$typeof:
|
|
426
|
+
var Xe;
|
|
427
|
+
function Hr() {
|
|
428
|
+
if (Xe) return pe;
|
|
429
|
+
Xe = 1;
|
|
430
|
+
var t = Je, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), u = 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(c, m, D) {
|
|
432
|
+
var R, T = {}, _ = null, h = null;
|
|
433
|
+
D !== void 0 && (_ = "" + D), m.key !== void 0 && (_ = "" + m.key), m.ref !== void 0 && (h = m.ref);
|
|
434
|
+
for (R in m) u.call(m, R) && !i.hasOwnProperty(R) && (T[R] = m[R]);
|
|
435
|
+
if (c && c.defaultProps) for (R in m = c.defaultProps, m) T[R] === void 0 && (T[R] = m[R]);
|
|
436
|
+
return { $$typeof: n, type: c, key: _, ref: h, props: T, _owner: l.current };
|
|
436
437
|
}
|
|
437
|
-
return
|
|
438
|
+
return pe.Fragment = r, pe.jsx = a, pe.jsxs = a, pe;
|
|
438
439
|
}
|
|
439
|
-
var
|
|
440
|
+
var he = {};
|
|
440
441
|
/**
|
|
441
442
|
* @license React
|
|
442
443
|
* react-jsx-runtime.development.js
|
|
@@ -446,91 +447,91 @@ var se = {};
|
|
|
446
447
|
* This source code is licensed under the MIT license found in the
|
|
447
448
|
* LICENSE file in the root directory of this source tree.
|
|
448
449
|
*/
|
|
449
|
-
var
|
|
450
|
-
function
|
|
451
|
-
return
|
|
452
|
-
var
|
|
453
|
-
function
|
|
450
|
+
var Ze;
|
|
451
|
+
function Jr() {
|
|
452
|
+
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
453
|
+
var t = Je, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), U = Symbol.iterator, j = "@@iterator";
|
|
454
|
+
function H(e) {
|
|
454
455
|
if (e === null || typeof e != "object")
|
|
455
456
|
return null;
|
|
456
|
-
var
|
|
457
|
-
return typeof
|
|
457
|
+
var s = U && e[U] || e[j];
|
|
458
|
+
return typeof s == "function" ? s : null;
|
|
458
459
|
}
|
|
459
|
-
var
|
|
460
|
-
function
|
|
460
|
+
var L = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
461
|
+
function b(e) {
|
|
461
462
|
{
|
|
462
|
-
for (var
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
for (var s = arguments.length, o = new Array(s > 1 ? s - 1 : 0), f = 1; f < s; f++)
|
|
464
|
+
o[f - 1] = arguments[f];
|
|
465
|
+
Y("error", e, o);
|
|
465
466
|
}
|
|
466
467
|
}
|
|
467
|
-
function
|
|
468
|
+
function Y(e, s, o) {
|
|
468
469
|
{
|
|
469
|
-
var f =
|
|
470
|
-
|
|
471
|
-
var
|
|
472
|
-
return String(
|
|
470
|
+
var f = L.ReactDebugCurrentFrame, y = f.getStackAddendum();
|
|
471
|
+
y !== "" && (s += "%s", o = o.concat([y]));
|
|
472
|
+
var E = o.map(function(p) {
|
|
473
|
+
return String(p);
|
|
473
474
|
});
|
|
474
|
-
|
|
475
|
+
E.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, E);
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
480
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
478
|
+
var ne = !1, J = !1, G = !1, C = !1, V = !1, q;
|
|
479
|
+
q = Symbol.for("react.module.reference");
|
|
480
|
+
function K(e) {
|
|
481
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === i || V || e === l || e === D || e === R || C || e === h || ne || J || G || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === T || e.$$typeof === a || e.$$typeof === c || e.$$typeof === m || // This needs to include all possible module reference object
|
|
481
482
|
// types supported by any Flight configuration anywhere since
|
|
482
483
|
// we don't know which Flight build this will end up being used
|
|
483
484
|
// with.
|
|
484
|
-
e.$$typeof ===
|
|
485
|
+
e.$$typeof === q || e.getModuleId !== void 0));
|
|
485
486
|
}
|
|
486
|
-
function
|
|
487
|
+
function Q(e, s, o) {
|
|
487
488
|
var f = e.displayName;
|
|
488
489
|
if (f)
|
|
489
490
|
return f;
|
|
490
|
-
var
|
|
491
|
-
return
|
|
491
|
+
var y = s.displayName || s.name || "";
|
|
492
|
+
return y !== "" ? o + "(" + y + ")" : o;
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
+
function W(e) {
|
|
494
495
|
return e.displayName || "Context";
|
|
495
496
|
}
|
|
496
497
|
function P(e) {
|
|
497
498
|
if (e == null)
|
|
498
499
|
return null;
|
|
499
|
-
if (typeof e.tag == "number" &&
|
|
500
|
+
if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
500
501
|
return e.displayName || e.name || null;
|
|
501
502
|
if (typeof e == "string")
|
|
502
503
|
return e;
|
|
503
504
|
switch (e) {
|
|
504
|
-
case l:
|
|
505
|
-
return "Fragment";
|
|
506
505
|
case u:
|
|
507
|
-
return "
|
|
506
|
+
return "Fragment";
|
|
508
507
|
case r:
|
|
508
|
+
return "Portal";
|
|
509
|
+
case i:
|
|
509
510
|
return "Profiler";
|
|
510
|
-
case
|
|
511
|
+
case l:
|
|
511
512
|
return "StrictMode";
|
|
512
|
-
case
|
|
513
|
+
case D:
|
|
513
514
|
return "Suspense";
|
|
514
|
-
case
|
|
515
|
+
case R:
|
|
515
516
|
return "SuspenseList";
|
|
516
517
|
}
|
|
517
518
|
if (typeof e == "object")
|
|
518
519
|
switch (e.$$typeof) {
|
|
519
520
|
case c:
|
|
520
|
-
var t = e;
|
|
521
|
-
return L(t) + ".Consumer";
|
|
522
|
-
case i:
|
|
523
521
|
var s = e;
|
|
524
|
-
return
|
|
525
|
-
case
|
|
526
|
-
|
|
527
|
-
|
|
522
|
+
return W(s) + ".Consumer";
|
|
523
|
+
case a:
|
|
524
|
+
var o = e;
|
|
525
|
+
return W(o._context) + ".Provider";
|
|
526
|
+
case m:
|
|
527
|
+
return Q(e, e.render, "ForwardRef");
|
|
528
|
+
case T:
|
|
528
529
|
var f = e.displayName || null;
|
|
529
530
|
return f !== null ? f : P(e.type) || "Memo";
|
|
530
|
-
case
|
|
531
|
-
var
|
|
531
|
+
case _: {
|
|
532
|
+
var y = e, E = y._payload, p = y._init;
|
|
532
533
|
try {
|
|
533
|
-
return P(
|
|
534
|
+
return P(p(E));
|
|
534
535
|
} catch {
|
|
535
536
|
return null;
|
|
536
537
|
}
|
|
@@ -538,18 +539,18 @@ function Lr() {
|
|
|
538
539
|
}
|
|
539
540
|
return null;
|
|
540
541
|
}
|
|
541
|
-
var
|
|
542
|
-
function
|
|
542
|
+
var g = Object.assign, v = 0, I, B, O, ee, ye, ie, fe;
|
|
543
|
+
function de() {
|
|
543
544
|
}
|
|
544
|
-
|
|
545
|
-
function
|
|
545
|
+
de.__reactDisabledLog = !0;
|
|
546
|
+
function $e() {
|
|
546
547
|
{
|
|
547
|
-
if (
|
|
548
|
-
|
|
548
|
+
if (v === 0) {
|
|
549
|
+
I = console.log, B = console.info, O = console.warn, ee = console.error, ye = console.group, ie = console.groupCollapsed, fe = console.groupEnd;
|
|
549
550
|
var e = {
|
|
550
551
|
configurable: !0,
|
|
551
552
|
enumerable: !0,
|
|
552
|
-
value:
|
|
553
|
+
value: de,
|
|
553
554
|
writable: !0
|
|
554
555
|
};
|
|
555
556
|
Object.defineProperties(console, {
|
|
@@ -562,279 +563,279 @@ function Lr() {
|
|
|
562
563
|
groupEnd: e
|
|
563
564
|
});
|
|
564
565
|
}
|
|
565
|
-
|
|
566
|
+
v++;
|
|
566
567
|
}
|
|
567
568
|
}
|
|
568
|
-
function
|
|
569
|
+
function be() {
|
|
569
570
|
{
|
|
570
|
-
if (
|
|
571
|
+
if (v--, v === 0) {
|
|
571
572
|
var e = {
|
|
572
573
|
configurable: !0,
|
|
573
574
|
enumerable: !0,
|
|
574
575
|
writable: !0
|
|
575
576
|
};
|
|
576
577
|
Object.defineProperties(console, {
|
|
577
|
-
log:
|
|
578
|
-
value:
|
|
578
|
+
log: g({}, e, {
|
|
579
|
+
value: I
|
|
579
580
|
}),
|
|
580
|
-
info:
|
|
581
|
-
value:
|
|
581
|
+
info: g({}, e, {
|
|
582
|
+
value: B
|
|
582
583
|
}),
|
|
583
|
-
warn:
|
|
584
|
-
value:
|
|
584
|
+
warn: g({}, e, {
|
|
585
|
+
value: O
|
|
585
586
|
}),
|
|
586
|
-
error:
|
|
587
|
-
value:
|
|
587
|
+
error: g({}, e, {
|
|
588
|
+
value: ee
|
|
588
589
|
}),
|
|
589
|
-
group:
|
|
590
|
-
value:
|
|
590
|
+
group: g({}, e, {
|
|
591
|
+
value: ye
|
|
591
592
|
}),
|
|
592
|
-
groupCollapsed:
|
|
593
|
-
value:
|
|
593
|
+
groupCollapsed: g({}, e, {
|
|
594
|
+
value: ie
|
|
594
595
|
}),
|
|
595
|
-
groupEnd:
|
|
596
|
-
value:
|
|
596
|
+
groupEnd: g({}, e, {
|
|
597
|
+
value: fe
|
|
597
598
|
})
|
|
598
599
|
});
|
|
599
600
|
}
|
|
600
|
-
|
|
601
|
+
v < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
601
602
|
}
|
|
602
603
|
}
|
|
603
|
-
var
|
|
604
|
-
function
|
|
604
|
+
var X = L.ReactCurrentDispatcher, me;
|
|
605
|
+
function N(e, s, o) {
|
|
605
606
|
{
|
|
606
|
-
if (
|
|
607
|
+
if (me === void 0)
|
|
607
608
|
try {
|
|
608
609
|
throw Error();
|
|
609
|
-
} catch (
|
|
610
|
-
var f =
|
|
611
|
-
|
|
610
|
+
} catch (y) {
|
|
611
|
+
var f = y.stack.trim().match(/\n( *(at )?)/);
|
|
612
|
+
me = f && f[1] || "";
|
|
612
613
|
}
|
|
613
614
|
return `
|
|
614
|
-
` +
|
|
615
|
+
` + me + e;
|
|
615
616
|
}
|
|
616
617
|
}
|
|
617
|
-
var
|
|
618
|
+
var Z = !1, ae;
|
|
618
619
|
{
|
|
619
|
-
var
|
|
620
|
-
|
|
620
|
+
var ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
621
|
+
ae = new ge();
|
|
621
622
|
}
|
|
622
|
-
function
|
|
623
|
-
if (!e ||
|
|
623
|
+
function re(e, s) {
|
|
624
|
+
if (!e || Z)
|
|
624
625
|
return "";
|
|
625
626
|
{
|
|
626
|
-
var
|
|
627
|
-
if (
|
|
628
|
-
return
|
|
627
|
+
var o = ae.get(e);
|
|
628
|
+
if (o !== void 0)
|
|
629
|
+
return o;
|
|
629
630
|
}
|
|
630
631
|
var f;
|
|
631
|
-
|
|
632
|
-
var
|
|
632
|
+
Z = !0;
|
|
633
|
+
var y = Error.prepareStackTrace;
|
|
633
634
|
Error.prepareStackTrace = void 0;
|
|
634
|
-
var
|
|
635
|
-
|
|
635
|
+
var E;
|
|
636
|
+
E = X.current, X.current = null, $e();
|
|
636
637
|
try {
|
|
637
|
-
if (
|
|
638
|
-
var
|
|
638
|
+
if (s) {
|
|
639
|
+
var p = function() {
|
|
639
640
|
throw Error();
|
|
640
641
|
};
|
|
641
|
-
if (Object.defineProperty(
|
|
642
|
+
if (Object.defineProperty(p.prototype, "props", {
|
|
642
643
|
set: function() {
|
|
643
644
|
throw Error();
|
|
644
645
|
}
|
|
645
646
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
646
647
|
try {
|
|
647
|
-
Reflect.construct(
|
|
648
|
-
} catch (
|
|
649
|
-
f =
|
|
648
|
+
Reflect.construct(p, []);
|
|
649
|
+
} catch (A) {
|
|
650
|
+
f = A;
|
|
650
651
|
}
|
|
651
|
-
Reflect.construct(e, [],
|
|
652
|
+
Reflect.construct(e, [], p);
|
|
652
653
|
} else {
|
|
653
654
|
try {
|
|
654
|
-
|
|
655
|
-
} catch (
|
|
656
|
-
f =
|
|
655
|
+
p.call();
|
|
656
|
+
} catch (A) {
|
|
657
|
+
f = A;
|
|
657
658
|
}
|
|
658
|
-
e.call(
|
|
659
|
+
e.call(p.prototype);
|
|
659
660
|
}
|
|
660
661
|
} else {
|
|
661
662
|
try {
|
|
662
663
|
throw Error();
|
|
663
|
-
} catch (
|
|
664
|
-
f =
|
|
664
|
+
} catch (A) {
|
|
665
|
+
f = A;
|
|
665
666
|
}
|
|
666
667
|
e();
|
|
667
668
|
}
|
|
668
|
-
} catch (
|
|
669
|
-
if (
|
|
670
|
-
for (var d =
|
|
671
|
-
`),
|
|
672
|
-
`),
|
|
673
|
-
|
|
674
|
-
for (;
|
|
675
|
-
if (d[
|
|
676
|
-
if (
|
|
669
|
+
} catch (A) {
|
|
670
|
+
if (A && f && typeof A.stack == "string") {
|
|
671
|
+
for (var d = A.stack.split(`
|
|
672
|
+
`), z = f.stack.split(`
|
|
673
|
+
`), w = d.length - 1, S = z.length - 1; w >= 1 && S >= 0 && d[w] !== z[S]; )
|
|
674
|
+
S--;
|
|
675
|
+
for (; w >= 1 && S >= 0; w--, S--)
|
|
676
|
+
if (d[w] !== z[S]) {
|
|
677
|
+
if (w !== 1 || S !== 1)
|
|
677
678
|
do
|
|
678
|
-
if (
|
|
679
|
-
var
|
|
680
|
-
` + d[
|
|
681
|
-
return e.displayName &&
|
|
679
|
+
if (w--, S--, S < 0 || d[w] !== z[S]) {
|
|
680
|
+
var F = `
|
|
681
|
+
` + d[w].replace(" at new ", " at ");
|
|
682
|
+
return e.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", e.displayName)), typeof e == "function" && ae.set(e, F), F;
|
|
682
683
|
}
|
|
683
|
-
while (
|
|
684
|
+
while (w >= 1 && S >= 0);
|
|
684
685
|
break;
|
|
685
686
|
}
|
|
686
687
|
}
|
|
687
688
|
} finally {
|
|
688
|
-
|
|
689
|
+
Z = !1, X.current = E, be(), Error.prepareStackTrace = y;
|
|
689
690
|
}
|
|
690
|
-
var
|
|
691
|
-
return typeof e == "function" &&
|
|
691
|
+
var le = e ? e.displayName || e.name : "", te = le ? N(le) : "";
|
|
692
|
+
return typeof e == "function" && ae.set(e, te), te;
|
|
692
693
|
}
|
|
693
|
-
function
|
|
694
|
-
return
|
|
694
|
+
function Ee(e, s, o) {
|
|
695
|
+
return re(e, !1);
|
|
695
696
|
}
|
|
696
|
-
function
|
|
697
|
-
var
|
|
698
|
-
return !!(
|
|
697
|
+
function se(e) {
|
|
698
|
+
var s = e.prototype;
|
|
699
|
+
return !!(s && s.isReactComponent);
|
|
699
700
|
}
|
|
700
|
-
function
|
|
701
|
+
function oe(e, s, o) {
|
|
701
702
|
if (e == null)
|
|
702
703
|
return "";
|
|
703
704
|
if (typeof e == "function")
|
|
704
|
-
return
|
|
705
|
+
return re(e, se(e));
|
|
705
706
|
if (typeof e == "string")
|
|
706
|
-
return
|
|
707
|
+
return N(e);
|
|
707
708
|
switch (e) {
|
|
708
|
-
case
|
|
709
|
-
return
|
|
710
|
-
case
|
|
711
|
-
return
|
|
709
|
+
case D:
|
|
710
|
+
return N("Suspense");
|
|
711
|
+
case R:
|
|
712
|
+
return N("SuspenseList");
|
|
712
713
|
}
|
|
713
714
|
if (typeof e == "object")
|
|
714
715
|
switch (e.$$typeof) {
|
|
715
|
-
case
|
|
716
|
-
return
|
|
717
|
-
case
|
|
718
|
-
return
|
|
719
|
-
case
|
|
720
|
-
var f = e,
|
|
716
|
+
case m:
|
|
717
|
+
return Ee(e.render);
|
|
718
|
+
case T:
|
|
719
|
+
return oe(e.type, s, o);
|
|
720
|
+
case _: {
|
|
721
|
+
var f = e, y = f._payload, E = f._init;
|
|
721
722
|
try {
|
|
722
|
-
return
|
|
723
|
+
return oe(E(y), s, o);
|
|
723
724
|
} catch {
|
|
724
725
|
}
|
|
725
726
|
}
|
|
726
727
|
}
|
|
727
728
|
return "";
|
|
728
729
|
}
|
|
729
|
-
var
|
|
730
|
-
function
|
|
730
|
+
var k = Object.prototype.hasOwnProperty, $ = {}, _e = L.ReactDebugCurrentFrame;
|
|
731
|
+
function Re(e) {
|
|
731
732
|
if (e) {
|
|
732
|
-
var
|
|
733
|
-
|
|
733
|
+
var s = e._owner, o = oe(e.type, e._source, s ? s.type : null);
|
|
734
|
+
_e.setExtraStackFrame(o);
|
|
734
735
|
} else
|
|
735
|
-
|
|
736
|
+
_e.setExtraStackFrame(null);
|
|
736
737
|
}
|
|
737
|
-
function
|
|
738
|
+
function ar(e, s, o, f, y) {
|
|
738
739
|
{
|
|
739
|
-
var
|
|
740
|
-
for (var
|
|
741
|
-
if (
|
|
740
|
+
var E = Function.call.bind(k);
|
|
741
|
+
for (var p in e)
|
|
742
|
+
if (E(e, p)) {
|
|
742
743
|
var d = void 0;
|
|
743
744
|
try {
|
|
744
|
-
if (typeof e[
|
|
745
|
-
var
|
|
746
|
-
throw
|
|
745
|
+
if (typeof e[p] != "function") {
|
|
746
|
+
var z = Error((f || "React class") + ": " + o + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
747
|
+
throw z.name = "Invariant Violation", z;
|
|
747
748
|
}
|
|
748
|
-
d = e[
|
|
749
|
-
} catch (
|
|
750
|
-
d =
|
|
749
|
+
d = e[p](s, p, f, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
750
|
+
} catch (w) {
|
|
751
|
+
d = w;
|
|
751
752
|
}
|
|
752
|
-
d && !(d instanceof Error) && (
|
|
753
|
+
d && !(d instanceof Error) && (Re(y), b("%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).", f || "React class", o, p, typeof d), Re(null)), d instanceof Error && !(d.message in $) && ($[d.message] = !0, Re(y), b("Failed %s type: %s", o, d.message), Re(null));
|
|
753
754
|
}
|
|
754
755
|
}
|
|
755
756
|
}
|
|
756
|
-
var
|
|
757
|
-
function
|
|
758
|
-
return
|
|
757
|
+
var sr = Array.isArray;
|
|
758
|
+
function xe(e) {
|
|
759
|
+
return sr(e);
|
|
759
760
|
}
|
|
760
|
-
function
|
|
761
|
+
function or(e) {
|
|
761
762
|
{
|
|
762
|
-
var
|
|
763
|
-
return
|
|
763
|
+
var s = typeof Symbol == "function" && Symbol.toStringTag, o = s && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
764
|
+
return o;
|
|
764
765
|
}
|
|
765
766
|
}
|
|
766
|
-
function
|
|
767
|
+
function ur(e) {
|
|
767
768
|
try {
|
|
768
|
-
return
|
|
769
|
+
return ze(e), !1;
|
|
769
770
|
} catch {
|
|
770
771
|
return !0;
|
|
771
772
|
}
|
|
772
773
|
}
|
|
773
|
-
function
|
|
774
|
+
function ze(e) {
|
|
774
775
|
return "" + e;
|
|
775
776
|
}
|
|
776
|
-
function
|
|
777
|
-
if (
|
|
778
|
-
return
|
|
777
|
+
function Ae(e) {
|
|
778
|
+
if (ur(e))
|
|
779
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(e)), ze(e);
|
|
779
780
|
}
|
|
780
|
-
var
|
|
781
|
+
var Ie = L.ReactCurrentOwner, lr = {
|
|
781
782
|
key: !0,
|
|
782
783
|
ref: !0,
|
|
783
784
|
__self: !0,
|
|
784
785
|
__source: !0
|
|
785
|
-
},
|
|
786
|
-
function
|
|
787
|
-
if (
|
|
788
|
-
var
|
|
789
|
-
if (
|
|
786
|
+
}, Me, Fe;
|
|
787
|
+
function cr(e) {
|
|
788
|
+
if (k.call(e, "ref")) {
|
|
789
|
+
var s = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
790
|
+
if (s && s.isReactWarning)
|
|
790
791
|
return !1;
|
|
791
792
|
}
|
|
792
793
|
return e.ref !== void 0;
|
|
793
794
|
}
|
|
794
|
-
function
|
|
795
|
-
if (
|
|
796
|
-
var
|
|
797
|
-
if (
|
|
795
|
+
function fr(e) {
|
|
796
|
+
if (k.call(e, "key")) {
|
|
797
|
+
var s = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
798
|
+
if (s && s.isReactWarning)
|
|
798
799
|
return !1;
|
|
799
800
|
}
|
|
800
801
|
return e.key !== void 0;
|
|
801
802
|
}
|
|
802
|
-
function
|
|
803
|
-
typeof e.ref == "string" &&
|
|
803
|
+
function dr(e, s) {
|
|
804
|
+
typeof e.ref == "string" && Ie.current;
|
|
804
805
|
}
|
|
805
|
-
function
|
|
806
|
+
function mr(e, s) {
|
|
806
807
|
{
|
|
807
|
-
var
|
|
808
|
-
|
|
808
|
+
var o = function() {
|
|
809
|
+
Me || (Me = !0, b("%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));
|
|
809
810
|
};
|
|
810
|
-
|
|
811
|
-
get:
|
|
811
|
+
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
812
|
+
get: o,
|
|
812
813
|
configurable: !0
|
|
813
814
|
});
|
|
814
815
|
}
|
|
815
816
|
}
|
|
816
|
-
function
|
|
817
|
+
function gr(e, s) {
|
|
817
818
|
{
|
|
818
|
-
var
|
|
819
|
-
|
|
819
|
+
var o = function() {
|
|
820
|
+
Fe || (Fe = !0, b("%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));
|
|
820
821
|
};
|
|
821
|
-
|
|
822
|
-
get:
|
|
822
|
+
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
823
|
+
get: o,
|
|
823
824
|
configurable: !0
|
|
824
825
|
});
|
|
825
826
|
}
|
|
826
827
|
}
|
|
827
|
-
var
|
|
828
|
+
var pr = function(e, s, o, f, y, E, p) {
|
|
828
829
|
var d = {
|
|
829
830
|
// This tag allows us to uniquely identify this as a React Element
|
|
830
|
-
$$typeof:
|
|
831
|
+
$$typeof: n,
|
|
831
832
|
// Built-in properties that belong on the element
|
|
832
833
|
type: e,
|
|
833
|
-
key:
|
|
834
|
-
ref:
|
|
835
|
-
props:
|
|
834
|
+
key: s,
|
|
835
|
+
ref: o,
|
|
836
|
+
props: p,
|
|
836
837
|
// Record the component responsible for creating this element.
|
|
837
|
-
_owner:
|
|
838
|
+
_owner: E
|
|
838
839
|
};
|
|
839
840
|
return d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
840
841
|
configurable: !1,
|
|
@@ -850,44 +851,44 @@ function Lr() {
|
|
|
850
851
|
configurable: !1,
|
|
851
852
|
enumerable: !1,
|
|
852
853
|
writable: !1,
|
|
853
|
-
value:
|
|
854
|
+
value: y
|
|
854
855
|
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
855
856
|
};
|
|
856
|
-
function
|
|
857
|
+
function hr(e, s, o, f, y) {
|
|
857
858
|
{
|
|
858
|
-
var
|
|
859
|
-
|
|
860
|
-
for (
|
|
861
|
-
|
|
859
|
+
var E, p = {}, d = null, z = null;
|
|
860
|
+
o !== void 0 && (Ae(o), d = "" + o), fr(s) && (Ae(s.key), d = "" + s.key), cr(s) && (z = s.ref, dr(s, y));
|
|
861
|
+
for (E in s)
|
|
862
|
+
k.call(s, E) && !lr.hasOwnProperty(E) && (p[E] = s[E]);
|
|
862
863
|
if (e && e.defaultProps) {
|
|
863
|
-
var
|
|
864
|
-
for (
|
|
865
|
-
|
|
864
|
+
var w = e.defaultProps;
|
|
865
|
+
for (E in w)
|
|
866
|
+
p[E] === void 0 && (p[E] = w[E]);
|
|
866
867
|
}
|
|
867
|
-
if (d ||
|
|
868
|
-
var
|
|
869
|
-
d &&
|
|
868
|
+
if (d || z) {
|
|
869
|
+
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
870
|
+
d && mr(p, S), z && gr(p, S);
|
|
870
871
|
}
|
|
871
|
-
return
|
|
872
|
+
return pr(e, d, z, y, f, Ie.current, p);
|
|
872
873
|
}
|
|
873
874
|
}
|
|
874
|
-
var
|
|
875
|
-
function
|
|
875
|
+
var De = L.ReactCurrentOwner, qe = L.ReactDebugCurrentFrame;
|
|
876
|
+
function ue(e) {
|
|
876
877
|
if (e) {
|
|
877
|
-
var
|
|
878
|
-
|
|
878
|
+
var s = e._owner, o = oe(e.type, e._source, s ? s.type : null);
|
|
879
|
+
qe.setExtraStackFrame(o);
|
|
879
880
|
} else
|
|
880
|
-
|
|
881
|
+
qe.setExtraStackFrame(null);
|
|
881
882
|
}
|
|
882
|
-
var
|
|
883
|
-
|
|
884
|
-
function
|
|
885
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
883
|
+
var we;
|
|
884
|
+
we = !1;
|
|
885
|
+
function Ce(e) {
|
|
886
|
+
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
886
887
|
}
|
|
887
|
-
function
|
|
888
|
+
function Be() {
|
|
888
889
|
{
|
|
889
|
-
if (
|
|
890
|
-
var e = P(
|
|
890
|
+
if (De.current) {
|
|
891
|
+
var e = P(De.current.type);
|
|
891
892
|
if (e)
|
|
892
893
|
return `
|
|
893
894
|
|
|
@@ -896,158 +897,158 @@ Check the render method of \`` + e + "`.";
|
|
|
896
897
|
return "";
|
|
897
898
|
}
|
|
898
899
|
}
|
|
899
|
-
function
|
|
900
|
+
function vr(e) {
|
|
900
901
|
return "";
|
|
901
902
|
}
|
|
902
|
-
var
|
|
903
|
-
function
|
|
903
|
+
var Ne = {};
|
|
904
|
+
function yr(e) {
|
|
904
905
|
{
|
|
905
|
-
var
|
|
906
|
-
if (!
|
|
907
|
-
var
|
|
908
|
-
|
|
906
|
+
var s = Be();
|
|
907
|
+
if (!s) {
|
|
908
|
+
var o = typeof e == "string" ? e : e.displayName || e.name;
|
|
909
|
+
o && (s = `
|
|
909
910
|
|
|
910
|
-
Check the top-level render call using <` +
|
|
911
|
+
Check the top-level render call using <` + o + ">.");
|
|
911
912
|
}
|
|
912
|
-
return
|
|
913
|
+
return s;
|
|
913
914
|
}
|
|
914
915
|
}
|
|
915
|
-
function
|
|
916
|
+
function Le(e, s) {
|
|
916
917
|
{
|
|
917
918
|
if (!e._store || e._store.validated || e.key != null)
|
|
918
919
|
return;
|
|
919
920
|
e._store.validated = !0;
|
|
920
|
-
var
|
|
921
|
-
if (
|
|
921
|
+
var o = yr(s);
|
|
922
|
+
if (Ne[o])
|
|
922
923
|
return;
|
|
923
|
-
|
|
924
|
+
Ne[o] = !0;
|
|
924
925
|
var f = "";
|
|
925
|
-
e && e._owner && e._owner !==
|
|
926
|
+
e && e._owner && e._owner !== De.current && (f = " It was passed a child from " + P(e._owner.type) + "."), ue(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, f), ue(null);
|
|
926
927
|
}
|
|
927
928
|
}
|
|
928
|
-
function
|
|
929
|
+
function Ve(e, s) {
|
|
929
930
|
{
|
|
930
931
|
if (typeof e != "object")
|
|
931
932
|
return;
|
|
932
|
-
if (
|
|
933
|
-
for (var
|
|
934
|
-
var f = e[
|
|
935
|
-
|
|
933
|
+
if (xe(e))
|
|
934
|
+
for (var o = 0; o < e.length; o++) {
|
|
935
|
+
var f = e[o];
|
|
936
|
+
Ce(f) && Le(f, s);
|
|
936
937
|
}
|
|
937
|
-
else if (
|
|
938
|
+
else if (Ce(e))
|
|
938
939
|
e._store && (e._store.validated = !0);
|
|
939
940
|
else if (e) {
|
|
940
|
-
var
|
|
941
|
-
if (typeof
|
|
942
|
-
for (var
|
|
943
|
-
|
|
941
|
+
var y = H(e);
|
|
942
|
+
if (typeof y == "function" && y !== e.entries)
|
|
943
|
+
for (var E = y.call(e), p; !(p = E.next()).done; )
|
|
944
|
+
Ce(p.value) && Le(p.value, s);
|
|
944
945
|
}
|
|
945
946
|
}
|
|
946
947
|
}
|
|
947
|
-
function
|
|
948
|
+
function br(e) {
|
|
948
949
|
{
|
|
949
|
-
var
|
|
950
|
-
if (
|
|
950
|
+
var s = e.type;
|
|
951
|
+
if (s == null || typeof s == "string")
|
|
951
952
|
return;
|
|
952
|
-
var
|
|
953
|
-
if (typeof
|
|
954
|
-
|
|
955
|
-
else if (typeof
|
|
953
|
+
var o;
|
|
954
|
+
if (typeof s == "function")
|
|
955
|
+
o = s.propTypes;
|
|
956
|
+
else if (typeof s == "object" && (s.$$typeof === m || // Note: Memo only checks outer props here.
|
|
956
957
|
// Inner props are checked in the reconciler.
|
|
957
|
-
|
|
958
|
-
|
|
958
|
+
s.$$typeof === T))
|
|
959
|
+
o = s.propTypes;
|
|
959
960
|
else
|
|
960
961
|
return;
|
|
961
|
-
if (
|
|
962
|
-
var f = P(
|
|
963
|
-
|
|
964
|
-
} else if (
|
|
965
|
-
|
|
966
|
-
var
|
|
967
|
-
|
|
962
|
+
if (o) {
|
|
963
|
+
var f = P(s);
|
|
964
|
+
ar(o, e.props, "prop", f, e);
|
|
965
|
+
} else if (s.PropTypes !== void 0 && !we) {
|
|
966
|
+
we = !0;
|
|
967
|
+
var y = P(s);
|
|
968
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
968
969
|
}
|
|
969
|
-
typeof
|
|
970
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
970
971
|
}
|
|
971
972
|
}
|
|
972
|
-
function
|
|
973
|
+
function Er(e) {
|
|
973
974
|
{
|
|
974
|
-
for (var
|
|
975
|
-
var f =
|
|
975
|
+
for (var s = Object.keys(e.props), o = 0; o < s.length; o++) {
|
|
976
|
+
var f = s[o];
|
|
976
977
|
if (f !== "children" && f !== "key") {
|
|
977
|
-
|
|
978
|
+
ue(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), ue(null);
|
|
978
979
|
break;
|
|
979
980
|
}
|
|
980
981
|
}
|
|
981
|
-
e.ref !== null && (
|
|
982
|
+
e.ref !== null && (ue(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
|
|
982
983
|
}
|
|
983
984
|
}
|
|
984
|
-
var
|
|
985
|
-
function
|
|
985
|
+
var Ue = {};
|
|
986
|
+
function Ye(e, s, o, f, y, E) {
|
|
986
987
|
{
|
|
987
|
-
var
|
|
988
|
-
if (!
|
|
988
|
+
var p = K(e);
|
|
989
|
+
if (!p) {
|
|
989
990
|
var d = "";
|
|
990
991
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
991
|
-
var
|
|
992
|
-
|
|
993
|
-
var
|
|
994
|
-
e === null ?
|
|
992
|
+
var z = vr();
|
|
993
|
+
z ? d += z : d += Be();
|
|
994
|
+
var w;
|
|
995
|
+
e === null ? w = "null" : xe(e) ? w = "array" : e !== void 0 && e.$$typeof === n ? (w = "<" + (P(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, d);
|
|
995
996
|
}
|
|
996
|
-
var
|
|
997
|
-
if (
|
|
998
|
-
return
|
|
999
|
-
if (
|
|
1000
|
-
var
|
|
1001
|
-
if (
|
|
997
|
+
var S = hr(e, s, o, y, E);
|
|
998
|
+
if (S == null)
|
|
999
|
+
return S;
|
|
1000
|
+
if (p) {
|
|
1001
|
+
var F = s.children;
|
|
1002
|
+
if (F !== void 0)
|
|
1002
1003
|
if (f)
|
|
1003
|
-
if (
|
|
1004
|
-
for (var
|
|
1005
|
-
|
|
1006
|
-
Object.freeze && Object.freeze(
|
|
1004
|
+
if (xe(F)) {
|
|
1005
|
+
for (var le = 0; le < F.length; le++)
|
|
1006
|
+
Ve(F[le], e);
|
|
1007
|
+
Object.freeze && Object.freeze(F);
|
|
1007
1008
|
} else
|
|
1008
|
-
|
|
1009
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1009
1010
|
else
|
|
1010
|
-
|
|
1011
|
+
Ve(F, e);
|
|
1011
1012
|
}
|
|
1012
|
-
if (
|
|
1013
|
-
var
|
|
1014
|
-
return
|
|
1015
|
-
}),
|
|
1016
|
-
if (!
|
|
1017
|
-
var
|
|
1018
|
-
|
|
1013
|
+
if (k.call(s, "key")) {
|
|
1014
|
+
var te = P(e), A = Object.keys(s).filter(function(xr) {
|
|
1015
|
+
return xr !== "key";
|
|
1016
|
+
}), Se = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1017
|
+
if (!Ue[te + Se]) {
|
|
1018
|
+
var $r = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
|
|
1019
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
1019
1020
|
let props = %s;
|
|
1020
1021
|
<%s {...props} />
|
|
1021
1022
|
React keys must be passed directly to JSX without using spread:
|
|
1022
1023
|
let props = %s;
|
|
1023
|
-
<%s key={someKey} {...props} />`,
|
|
1024
|
+
<%s key={someKey} {...props} />`, Se, te, $r, te), Ue[te + Se] = !0;
|
|
1024
1025
|
}
|
|
1025
1026
|
}
|
|
1026
|
-
return e ===
|
|
1027
|
+
return e === u ? Er(S) : br(S), S;
|
|
1027
1028
|
}
|
|
1028
1029
|
}
|
|
1029
|
-
function
|
|
1030
|
-
return
|
|
1030
|
+
function _r(e, s, o) {
|
|
1031
|
+
return Ye(e, s, o, !0);
|
|
1031
1032
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return
|
|
1033
|
+
function Rr(e, s, o) {
|
|
1034
|
+
return Ye(e, s, o, !1);
|
|
1034
1035
|
}
|
|
1035
|
-
var
|
|
1036
|
-
|
|
1037
|
-
}()),
|
|
1036
|
+
var Tr = Rr, kr = _r;
|
|
1037
|
+
he.Fragment = u, he.jsx = Tr, he.jsxs = kr;
|
|
1038
|
+
}()), he;
|
|
1038
1039
|
}
|
|
1039
|
-
process.env.NODE_ENV === "production" ?
|
|
1040
|
-
var
|
|
1041
|
-
function
|
|
1042
|
-
return
|
|
1040
|
+
process.env.NODE_ENV === "production" ? Oe.exports = Hr() : Oe.exports = Jr();
|
|
1041
|
+
var x = Oe.exports;
|
|
1042
|
+
function Qr(t) {
|
|
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, "ç");
|
|
1043
1044
|
}
|
|
1044
|
-
const
|
|
1045
|
+
const et = 300, rt = 1, tt = [
|
|
1045
1046
|
"password",
|
|
1046
1047
|
"email",
|
|
1047
1048
|
"number",
|
|
1048
1049
|
"tel",
|
|
1049
1050
|
"url"
|
|
1050
|
-
],
|
|
1051
|
+
], nt = [
|
|
1051
1052
|
"Backspace",
|
|
1052
1053
|
"Delete",
|
|
1053
1054
|
"ArrowLeft",
|
|
@@ -1056,234 +1057,461 @@ const Ur = 300, Yr = 1, Gr = [
|
|
|
1056
1057
|
"Enter",
|
|
1057
1058
|
"Escape"
|
|
1058
1059
|
];
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1060
|
+
function it(t, n, r) {
|
|
1061
|
+
return r || tt.includes(n) || !t ? t : Qr(t);
|
|
1061
1062
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return /[0-9.]/.test(
|
|
1063
|
+
function at(t) {
|
|
1064
|
+
return /[0-9.]/.test(t) || nt.includes(t);
|
|
1064
1065
|
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1066
|
+
function st(t) {
|
|
1067
|
+
const r = t.replace(/\D/g, "").slice(0, 11);
|
|
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
|
+
6,
|
|
1070
|
+
8
|
|
1071
|
+
)} ${r.slice(8)}`;
|
|
1072
|
+
}
|
|
1073
|
+
function ot(t) {
|
|
1074
|
+
const r = t.replace(/\D/g, "").slice(0, 8);
|
|
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
|
+
}
|
|
1077
|
+
function ut(t) {
|
|
1078
|
+
const r = t.replace(/\D/g, "").slice(0, 11);
|
|
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
|
+
}
|
|
1081
|
+
function lt(t) {
|
|
1082
|
+
const r = t.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 26);
|
|
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
|
+
8,
|
|
1085
|
+
12
|
|
1086
|
+
)} ${r.slice(12)}` : r.length <= 20 ? `${r.slice(0, 4)} ${r.slice(4, 8)} ${r.slice(
|
|
1087
|
+
8,
|
|
1088
|
+
12
|
|
1089
|
+
)} ${r.slice(12, 16)} ${r.slice(16)}` : r.length <= 24 ? `${r.slice(0, 4)} ${r.slice(4, 8)} ${r.slice(
|
|
1090
|
+
8,
|
|
1091
|
+
12
|
|
1092
|
+
)} ${r.slice(12, 16)} ${r.slice(16, 20)} ${r.slice(20)}` : `${r.slice(0, 4)} ${r.slice(4, 8)} ${r.slice(
|
|
1093
|
+
8,
|
|
1094
|
+
12
|
|
1095
|
+
)} ${r.slice(12, 16)} ${r.slice(16, 20)} ${r.slice(
|
|
1096
|
+
20,
|
|
1097
|
+
24
|
|
1098
|
+
)} ${r.slice(24)}`;
|
|
1099
|
+
}
|
|
1100
|
+
function ct(t, n) {
|
|
1101
|
+
if (!n) return t;
|
|
1102
|
+
if (typeof n == "function")
|
|
1103
|
+
return n(t);
|
|
1104
|
+
switch (n) {
|
|
1105
|
+
case "phone":
|
|
1106
|
+
return st(t);
|
|
1107
|
+
case "date":
|
|
1108
|
+
return ot(t);
|
|
1109
|
+
case "tcKimlikNo":
|
|
1110
|
+
return ut(t);
|
|
1111
|
+
case "iban":
|
|
1112
|
+
return lt(t);
|
|
1113
|
+
default:
|
|
1114
|
+
return t;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
const ft = Qe(
|
|
1118
|
+
({
|
|
1119
|
+
name: t,
|
|
1120
|
+
label: n,
|
|
1121
|
+
type: r = "text",
|
|
1122
|
+
placeholder: u,
|
|
1123
|
+
className: l,
|
|
1124
|
+
fieldToSearch: i,
|
|
1125
|
+
onSuggestionSearch: a,
|
|
1126
|
+
disabled: c = !1,
|
|
1127
|
+
step: m,
|
|
1128
|
+
min: D,
|
|
1129
|
+
max: R,
|
|
1130
|
+
startAdornment: T,
|
|
1131
|
+
endAdornment: _,
|
|
1132
|
+
disableUppercase: h = !1,
|
|
1133
|
+
required: U = !1,
|
|
1134
|
+
fullWidth: j,
|
|
1135
|
+
debounceDelay: H = et,
|
|
1136
|
+
minSearchLength: L = rt,
|
|
1137
|
+
helperText: b,
|
|
1138
|
+
autoFocus: Y,
|
|
1139
|
+
multiline: ne,
|
|
1140
|
+
rows: J,
|
|
1141
|
+
maxLength: G,
|
|
1142
|
+
errorMessageFormatter: C,
|
|
1143
|
+
"aria-label": V,
|
|
1144
|
+
"aria-describedby": q,
|
|
1145
|
+
sx: K,
|
|
1146
|
+
inputSx: Q,
|
|
1147
|
+
inputElementSx: W,
|
|
1148
|
+
mask: P,
|
|
1149
|
+
showPasswordToggle: g = !1,
|
|
1150
|
+
...v
|
|
1151
|
+
}, I) => {
|
|
1152
|
+
const [B, O, ee] = er(t), [ye, ie] = Te([]), [fe, de] = Te(!1), [$e, be] = Te(!1), [X, me] = Te(!1), N = Dr(
|
|
1153
|
+
i && a ? Mr(async (k) => {
|
|
1154
|
+
if (k.length >= L) {
|
|
1155
|
+
de(!0);
|
|
1156
|
+
try {
|
|
1157
|
+
const $ = await a(
|
|
1158
|
+
i,
|
|
1159
|
+
k
|
|
1160
|
+
);
|
|
1161
|
+
ie($);
|
|
1162
|
+
} catch ($) {
|
|
1163
|
+
console.error("Search error:", $), ie([]);
|
|
1152
1164
|
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1165
|
+
de(!1);
|
|
1166
|
+
} else
|
|
1167
|
+
ie([]);
|
|
1168
|
+
}, H) : null
|
|
1169
|
+
).current;
|
|
1170
|
+
Ge(() => {
|
|
1171
|
+
N && B.value && N(B.value);
|
|
1172
|
+
}, [B.value, N]), Ge(() => () => {
|
|
1173
|
+
N && N.cancel();
|
|
1174
|
+
}, [N]);
|
|
1175
|
+
const Z = ve(
|
|
1176
|
+
(k) => {
|
|
1177
|
+
let $ = it(k, r, h);
|
|
1178
|
+
return P && r !== "password" && ($ = ct($, P)), $;
|
|
1155
1179
|
},
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1180
|
+
[r, h, P]
|
|
1181
|
+
), ae = ve(() => {
|
|
1182
|
+
me((k) => !k);
|
|
1183
|
+
}, []), ge = ce(() => r === "password" && X ? "text" : r, [r, X]), re = ce(() => {
|
|
1184
|
+
if (!(!O.touched || !O.error))
|
|
1185
|
+
return C ? C(O.error) : O.error;
|
|
1186
|
+
}, [O.touched, O.error, C]), Ee = ce(() => re || b, [re, b]), se = ce(
|
|
1187
|
+
() => {
|
|
1188
|
+
var k;
|
|
1189
|
+
return {
|
|
1190
|
+
name: t,
|
|
1191
|
+
label: n,
|
|
1192
|
+
type: ge,
|
|
1193
|
+
placeholder: u,
|
|
1194
|
+
required: U,
|
|
1195
|
+
disabled: c,
|
|
1196
|
+
error: O.touched && !!O.error,
|
|
1197
|
+
helperText: Ee,
|
|
1198
|
+
className: l,
|
|
1199
|
+
fullWidth: j !== void 0 ? j : !!n,
|
|
1200
|
+
autoFocus: Y,
|
|
1201
|
+
multiline: ne,
|
|
1202
|
+
rows: J,
|
|
1203
|
+
sx: W ? [K, { "& .MuiInputBase-input": W }].filter(
|
|
1204
|
+
Boolean
|
|
1205
|
+
) : K,
|
|
1206
|
+
inputProps: {
|
|
1207
|
+
maxLength: G,
|
|
1208
|
+
step: m,
|
|
1209
|
+
min: D,
|
|
1210
|
+
max: R,
|
|
1211
|
+
...r === "number" && {
|
|
1212
|
+
onKeyDown: ($) => {
|
|
1213
|
+
at($.key) || $.preventDefault();
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
...v.inputProps
|
|
1217
|
+
},
|
|
1218
|
+
InputProps: {
|
|
1219
|
+
startAdornment: T ? /* @__PURE__ */ x.jsx(je, { position: "start", children: T }) : void 0,
|
|
1220
|
+
endAdornment: /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
1221
|
+
r === "password" && g && /* @__PURE__ */ x.jsx(je, { position: "end", children: /* @__PURE__ */ x.jsx(
|
|
1222
|
+
Cr,
|
|
1223
|
+
{
|
|
1224
|
+
"aria-label": "Şifreyi göster/gizle",
|
|
1225
|
+
onClick: ae,
|
|
1226
|
+
edge: "end",
|
|
1227
|
+
children: X ? /* @__PURE__ */ x.jsx(Ar, {}) : /* @__PURE__ */ x.jsx(Ir, {})
|
|
1228
|
+
}
|
|
1229
|
+
) }),
|
|
1230
|
+
_ ? /* @__PURE__ */ x.jsx(je, { position: "end", children: _ }) : void 0,
|
|
1231
|
+
(k = v.InputProps) == null ? void 0 : k.endAdornment
|
|
1232
|
+
] }),
|
|
1233
|
+
...Q && { sx: Q },
|
|
1234
|
+
...v.InputProps
|
|
1235
|
+
},
|
|
1236
|
+
"aria-label": V,
|
|
1237
|
+
"aria-describedby": q || (re ? `${t}-error` : void 0),
|
|
1238
|
+
"aria-invalid": O.touched && O.error ? !0 : void 0,
|
|
1239
|
+
ref: I,
|
|
1240
|
+
...v
|
|
1241
|
+
};
|
|
1161
1242
|
},
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1243
|
+
[
|
|
1244
|
+
t,
|
|
1245
|
+
n,
|
|
1246
|
+
ge,
|
|
1247
|
+
u,
|
|
1248
|
+
U,
|
|
1249
|
+
c,
|
|
1250
|
+
O.touched,
|
|
1251
|
+
O.error,
|
|
1252
|
+
Ee,
|
|
1253
|
+
l,
|
|
1254
|
+
j,
|
|
1255
|
+
Y,
|
|
1256
|
+
ne,
|
|
1257
|
+
J,
|
|
1258
|
+
G,
|
|
1259
|
+
m,
|
|
1260
|
+
D,
|
|
1261
|
+
R,
|
|
1262
|
+
T,
|
|
1263
|
+
_,
|
|
1264
|
+
V,
|
|
1265
|
+
q,
|
|
1266
|
+
K,
|
|
1267
|
+
Q,
|
|
1268
|
+
W,
|
|
1269
|
+
P,
|
|
1270
|
+
g,
|
|
1271
|
+
X,
|
|
1272
|
+
ge,
|
|
1273
|
+
v
|
|
1274
|
+
]
|
|
1275
|
+
);
|
|
1276
|
+
if (i && a)
|
|
1277
|
+
return /* @__PURE__ */ x.jsx(
|
|
1278
|
+
rr,
|
|
1279
|
+
{
|
|
1280
|
+
freeSolo: !0,
|
|
1281
|
+
open: $e,
|
|
1282
|
+
onOpen: () => be(!0),
|
|
1283
|
+
onClose: () => be(!1),
|
|
1284
|
+
options: ye,
|
|
1285
|
+
loading: fe,
|
|
1286
|
+
disabled: c,
|
|
1287
|
+
value: B.value || "",
|
|
1288
|
+
onChange: (k, $) => {
|
|
1289
|
+
const _e = $ || "";
|
|
1290
|
+
ee.setValue(Z(_e));
|
|
1291
|
+
},
|
|
1292
|
+
onInputChange: (k, $) => {
|
|
1293
|
+
ee.setValue(Z($));
|
|
1294
|
+
},
|
|
1295
|
+
renderInput: (k) => {
|
|
1296
|
+
var $;
|
|
1297
|
+
return /* @__PURE__ */ x.jsx(
|
|
1298
|
+
Pe,
|
|
1299
|
+
{
|
|
1300
|
+
...k,
|
|
1301
|
+
...se,
|
|
1302
|
+
InputProps: {
|
|
1303
|
+
...k.InputProps,
|
|
1304
|
+
...se.InputProps,
|
|
1305
|
+
endAdornment: /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
1306
|
+
fe ? /* @__PURE__ */ x.jsx(Sr, { color: "inherit", size: 20 }) : null,
|
|
1307
|
+
($ = se.InputProps) == null ? void 0 : $.endAdornment,
|
|
1308
|
+
k.InputProps.endAdornment
|
|
1309
|
+
] })
|
|
1310
|
+
},
|
|
1311
|
+
ref: I
|
|
1312
|
+
}
|
|
1313
|
+
);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
);
|
|
1317
|
+
const oe = ve(
|
|
1318
|
+
(k) => {
|
|
1319
|
+
const $ = k.target.value;
|
|
1320
|
+
ee.setValue(Z($));
|
|
1321
|
+
},
|
|
1322
|
+
[ee, Z]
|
|
1323
|
+
);
|
|
1324
|
+
return /* @__PURE__ */ x.jsx(
|
|
1325
|
+
Pe,
|
|
1326
|
+
{
|
|
1327
|
+
...se,
|
|
1328
|
+
value: B.value || "",
|
|
1329
|
+
onChange: oe,
|
|
1330
|
+
onBlur: B.onBlur
|
|
1331
|
+
}
|
|
1332
|
+
);
|
|
1333
|
+
}
|
|
1334
|
+
);
|
|
1335
|
+
ft.displayName = "FormikTextField";
|
|
1336
|
+
const dt = Qe(
|
|
1337
|
+
({
|
|
1338
|
+
name: t,
|
|
1339
|
+
options: n = [],
|
|
1340
|
+
label: r,
|
|
1341
|
+
placeholder: u,
|
|
1342
|
+
className: l,
|
|
1343
|
+
disabled: i = !1,
|
|
1344
|
+
required: a = !1,
|
|
1345
|
+
fullWidth: c = !0,
|
|
1346
|
+
helperText: m,
|
|
1347
|
+
autoFocus: D,
|
|
1348
|
+
errorMessageFormatter: R,
|
|
1349
|
+
"aria-label": T,
|
|
1350
|
+
"aria-describedby": _,
|
|
1351
|
+
sx: h,
|
|
1352
|
+
formControlSx: U,
|
|
1353
|
+
multiple: j = !1,
|
|
1354
|
+
searchable: H = !1,
|
|
1355
|
+
searchPlaceholder: L,
|
|
1356
|
+
onChange: b,
|
|
1357
|
+
renderOption: Y,
|
|
1358
|
+
...ne
|
|
1359
|
+
}, J) => {
|
|
1360
|
+
const [G, C, V] = er(t), q = ce(() => {
|
|
1361
|
+
if (!(!C.touched || !C.error))
|
|
1362
|
+
return R ? R(C.error) : C.error;
|
|
1363
|
+
}, [C.touched, C.error, R]), K = ce(() => q || m, [q, m]), Q = ve(
|
|
1364
|
+
(g) => {
|
|
1365
|
+
const v = g.target.value;
|
|
1366
|
+
V.setValue(v), b && b(v);
|
|
1367
|
+
},
|
|
1368
|
+
[V, b]
|
|
1369
|
+
), W = ve(
|
|
1370
|
+
(g, v) => {
|
|
1371
|
+
if (j) {
|
|
1372
|
+
const I = Array.isArray(v) ? v.map((B) => B.value) : [];
|
|
1373
|
+
V.setValue(I), b && b(I);
|
|
1374
|
+
} else {
|
|
1375
|
+
const I = v && !Array.isArray(v) ? v.value : "";
|
|
1376
|
+
V.setValue(I), b && b(I);
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
[V, b, j]
|
|
1380
|
+
), P = `${t}-select`;
|
|
1381
|
+
return H ? /* @__PURE__ */ x.jsx(
|
|
1382
|
+
rr,
|
|
1198
1383
|
{
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1384
|
+
ref: J,
|
|
1385
|
+
options: n,
|
|
1386
|
+
getOptionLabel: (g) => g.label,
|
|
1387
|
+
value: j ? n.filter(
|
|
1388
|
+
(g) => {
|
|
1389
|
+
var v;
|
|
1390
|
+
return (v = G.value) == null ? void 0 : v.includes(g.value);
|
|
1391
|
+
}
|
|
1392
|
+
) : n.find((g) => g.value === G.value) || null,
|
|
1393
|
+
onChange: W,
|
|
1394
|
+
multiple: j,
|
|
1395
|
+
disabled: i,
|
|
1396
|
+
fullWidth: c,
|
|
1397
|
+
renderInput: (g) => /* @__PURE__ */ x.jsx(
|
|
1398
|
+
Pe,
|
|
1399
|
+
{
|
|
1400
|
+
...g,
|
|
1401
|
+
name: t,
|
|
1402
|
+
label: r,
|
|
1403
|
+
placeholder: L || u,
|
|
1404
|
+
required: a,
|
|
1405
|
+
error: C.touched && !!C.error,
|
|
1406
|
+
helperText: K,
|
|
1407
|
+
className: l,
|
|
1408
|
+
autoFocus: D,
|
|
1409
|
+
inputProps: {
|
|
1410
|
+
...g.inputProps,
|
|
1411
|
+
"aria-label": T,
|
|
1412
|
+
"aria-describedby": _ || (q ? `${t}-error` : void 0),
|
|
1413
|
+
"aria-invalid": C.touched && C.error ? !0 : void 0
|
|
1414
|
+
},
|
|
1415
|
+
sx: h
|
|
1416
|
+
}
|
|
1417
|
+
),
|
|
1418
|
+
renderOption: (g, v) => /* @__PURE__ */ wr("li", { ...g, key: v.value }, Y ? Y(v, n.indexOf(v)) : v.label),
|
|
1419
|
+
getOptionDisabled: (g) => {
|
|
1420
|
+
if (typeof g == "object")
|
|
1421
|
+
return g.disabled || !1;
|
|
1422
|
+
const v = n.find((I) => I.value === g);
|
|
1423
|
+
return (v == null ? void 0 : v.disabled) || !1;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
) : /* @__PURE__ */ x.jsxs(
|
|
1427
|
+
jr,
|
|
1428
|
+
{
|
|
1429
|
+
ref: J,
|
|
1430
|
+
fullWidth: c,
|
|
1431
|
+
error: C.touched && !!C.error,
|
|
1432
|
+
className: l,
|
|
1433
|
+
disabled: i,
|
|
1434
|
+
required: a,
|
|
1435
|
+
sx: U,
|
|
1436
|
+
children: [
|
|
1437
|
+
r && /* @__PURE__ */ x.jsx(Pr, { id: `${P}-label`, required: a, children: r }),
|
|
1438
|
+
/* @__PURE__ */ x.jsxs(
|
|
1439
|
+
Or,
|
|
1218
1440
|
{
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1441
|
+
labelId: r ? `${P}-label` : void 0,
|
|
1442
|
+
id: P,
|
|
1443
|
+
name: t,
|
|
1444
|
+
value: G.value ?? (j ? [] : ""),
|
|
1445
|
+
onChange: Q,
|
|
1446
|
+
onBlur: G.onBlur,
|
|
1447
|
+
label: r,
|
|
1448
|
+
displayEmpty: !!u,
|
|
1449
|
+
multiple: j,
|
|
1450
|
+
autoFocus: D,
|
|
1451
|
+
inputProps: {
|
|
1452
|
+
"aria-label": T,
|
|
1453
|
+
"aria-describedby": _ || (q ? `${t}-error` : void 0),
|
|
1454
|
+
"aria-invalid": C.touched && C.error ? !0 : void 0
|
|
1455
|
+
},
|
|
1456
|
+
sx: h,
|
|
1457
|
+
...ne,
|
|
1458
|
+
children: [
|
|
1459
|
+
u && /* @__PURE__ */ x.jsx(Ke, { value: j ? [] : "", disabled: !0, children: u }),
|
|
1460
|
+
n.map((g) => /* @__PURE__ */ x.jsx(
|
|
1461
|
+
Ke,
|
|
1462
|
+
{
|
|
1463
|
+
value: g.value,
|
|
1464
|
+
disabled: g.disabled,
|
|
1465
|
+
children: Y ? Y(g, n.indexOf(g)) : g.label
|
|
1466
|
+
},
|
|
1467
|
+
g.value
|
|
1468
|
+
))
|
|
1469
|
+
]
|
|
1230
1470
|
}
|
|
1231
|
-
)
|
|
1232
|
-
|
|
1471
|
+
),
|
|
1472
|
+
K && /* @__PURE__ */ x.jsx(zr, { children: K })
|
|
1473
|
+
]
|
|
1233
1474
|
}
|
|
1234
1475
|
);
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
N.setValue(U(C));
|
|
1239
|
-
},
|
|
1240
|
-
[N, U]
|
|
1241
|
-
);
|
|
1242
|
-
return /* @__PURE__ */ q.jsx(
|
|
1243
|
-
Ue,
|
|
1244
|
-
{
|
|
1245
|
-
...$,
|
|
1246
|
-
value: x.value || "",
|
|
1247
|
-
onChange: W,
|
|
1248
|
-
onBlur: x.onBlur
|
|
1249
|
-
}
|
|
1250
|
-
);
|
|
1251
|
-
};
|
|
1476
|
+
}
|
|
1477
|
+
);
|
|
1478
|
+
dt.displayName = "FormikDropdown";
|
|
1252
1479
|
export {
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
Fr as
|
|
1288
|
-
|
|
1480
|
+
Gr as CREDIT_CARD_REGEX,
|
|
1481
|
+
qr as EMAIL_REGEX,
|
|
1482
|
+
dt as FormikDropdown,
|
|
1483
|
+
ft as FormikTextField,
|
|
1484
|
+
Ur as IBAN_REGEX,
|
|
1485
|
+
nr as NAME_REGEX,
|
|
1486
|
+
Nr as PHONE_REGEX,
|
|
1487
|
+
We as PLATE_REGEX,
|
|
1488
|
+
tr as TC_KIMLIK_NO_REGEX,
|
|
1489
|
+
Wr as VKN_REGEX,
|
|
1490
|
+
Dt as creditCardSchema,
|
|
1491
|
+
ir as dateSchema,
|
|
1492
|
+
Et as emailSchema,
|
|
1493
|
+
jt as fileSchema,
|
|
1494
|
+
zt as futureDateSchema,
|
|
1495
|
+
ke as getFileExtension,
|
|
1496
|
+
xt as ibanSchema,
|
|
1497
|
+
$t as nameSchema,
|
|
1498
|
+
kt as passwordMatchSchema,
|
|
1499
|
+
Tt as passwordSchema,
|
|
1500
|
+
Ot as pastDateSchema,
|
|
1501
|
+
_t as phoneSchema,
|
|
1502
|
+
Ct as plateSchema,
|
|
1503
|
+
bt as tcKimlikNoSchema,
|
|
1504
|
+
Qr as toTurkishUpperCase,
|
|
1505
|
+
Kr as validateCreditCard,
|
|
1506
|
+
Pt as validateDate,
|
|
1507
|
+
Br as validateEmail,
|
|
1508
|
+
St as validateFile,
|
|
1509
|
+
Yr as validateIBAN,
|
|
1510
|
+
Vr as validateName,
|
|
1511
|
+
Rt as validatePassword,
|
|
1512
|
+
Lr as validatePhone,
|
|
1513
|
+
Zr as validatePlate,
|
|
1514
|
+
Fr as validateTCKimlikNo,
|
|
1515
|
+
Xr as validateVKN,
|
|
1516
|
+
wt as vknSchema
|
|
1289
1517
|
};
|