@circle-vibe/shared 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +1 -1
- package/build/index.js.LICENSE.txt +2 -0
- package/build/src/components/form/form-control-select/form-control-select.d.ts +4 -0
- package/build/src/components/form/form-control-select/form-control-select.js +52 -0
- package/build/src/components/form/form-control-select/form-control-select.js.map +1 -0
- package/build/src/components/form/form-control-select/index.d.ts +1 -0
- package/build/src/components/form/form-control-select/index.js +18 -0
- package/build/src/components/form/form-control-select/index.js.map +1 -0
- package/build/src/components/form/index.d.ts +2 -0
- package/build/src/components/form/index.js +2 -0
- package/build/src/components/form/index.js.map +1 -1
- package/build/src/components/form/select/index.d.ts +1 -0
- package/build/src/components/form/select/index.js +18 -0
- package/build/src/components/form/select/index.js.map +1 -0
- package/build/src/components/form/select/select.d.ts +4 -0
- package/build/src/components/form/select/select.js +11 -0
- package/build/src/components/form/select/select.js.map +1 -0
- package/build/src/components/menu/menu.d.ts +2 -1
- package/build/src/components/menu/menu.js.map +1 -1
- package/build/src/constants/country-code.d.ts +252 -0
- package/build/src/constants/country-code.js +257 -0
- package/build/src/constants/country-code.js.map +1 -0
- package/build/src/constants/country-codes.d.ts +2 -0
- package/build/src/constants/country-codes.js +6 -0
- package/build/src/constants/country-codes.js.map +1 -0
- package/build/src/constants/index.d.ts +4 -0
- package/build/src/constants/index.js +4 -0
- package/build/src/constants/index.js.map +1 -1
- package/build/src/constants/nationality-code.d.ts +221 -0
- package/build/src/constants/nationality-code.js +226 -0
- package/build/src/constants/nationality-code.js.map +1 -0
- package/build/src/constants/nationality-codes.d.ts +2 -0
- package/build/src/constants/nationality-codes.js +6 -0
- package/build/src/constants/nationality-codes.js.map +1 -0
- package/build/src/hooks/index.d.ts +5 -0
- package/build/src/hooks/index.js +5 -0
- package/build/src/hooks/index.js.map +1 -1
- package/build/src/hooks/use-cookies/index.d.ts +1 -0
- package/build/src/hooks/use-cookies/index.js +18 -0
- package/build/src/hooks/use-cookies/index.js.map +1 -0
- package/build/src/hooks/use-cookies/use-cookies.d.ts +5 -0
- package/build/src/hooks/use-cookies/use-cookies.js +25 -0
- package/build/src/hooks/use-cookies/use-cookies.js.map +1 -0
- package/build/src/hooks/use-countries/index.d.ts +1 -0
- package/build/src/hooks/use-countries/index.js +18 -0
- package/build/src/hooks/use-countries/index.js.map +1 -0
- package/build/src/hooks/use-countries/use-countries.d.ts +4 -0
- package/build/src/hooks/use-countries/use-countries.js +14 -0
- package/build/src/hooks/use-countries/use-countries.js.map +1 -0
- package/build/src/hooks/use-format-datetime/index.d.ts +1 -0
- package/build/src/hooks/use-format-datetime/index.js +18 -0
- package/build/src/hooks/use-format-datetime/index.js.map +1 -0
- package/build/src/hooks/use-format-datetime/use-format-datetime.d.ts +6 -0
- package/build/src/hooks/use-format-datetime/use-format-datetime.js +17 -0
- package/build/src/hooks/use-format-datetime/use-format-datetime.js.map +1 -0
- package/build/src/hooks/use-icons/index.d.ts +1 -0
- package/build/src/hooks/use-icons/index.js +18 -0
- package/build/src/hooks/use-icons/index.js.map +1 -0
- package/build/src/hooks/use-icons/use-icons.d.ts +2 -0
- package/build/src/hooks/use-icons/use-icons.js +32 -0
- package/build/src/hooks/use-icons/use-icons.js.map +1 -0
- package/build/src/hooks/use-local-storage/index.d.ts +1 -0
- package/build/src/hooks/use-local-storage/index.js +18 -0
- package/build/src/hooks/use-local-storage/index.js.map +1 -0
- package/build/src/hooks/use-local-storage/use-local-storage.d.ts +6 -0
- package/build/src/hooks/use-local-storage/use-local-storage.js +47 -0
- package/build/src/hooks/use-local-storage/use-local-storage.js.map +1 -0
- package/build/src/utils/get-formik-form-control-value/get-formik-form-control-value.d.ts +1 -1
- package/build/src/utils/get-formik-form-control-value/get-formik-form-control-value.js.map +1 -1
- package/package.json +6 -3
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NationalityCode = void 0;
|
|
4
|
+
var NationalityCode;
|
|
5
|
+
(function (NationalityCode) {
|
|
6
|
+
NationalityCode["AF"] = "AF";
|
|
7
|
+
NationalityCode["AL"] = "AL";
|
|
8
|
+
NationalityCode["DZ"] = "DZ";
|
|
9
|
+
NationalityCode["AS"] = "AS";
|
|
10
|
+
NationalityCode["AD"] = "AD";
|
|
11
|
+
NationalityCode["AO"] = "AO";
|
|
12
|
+
NationalityCode["AI"] = "AI";
|
|
13
|
+
NationalityCode["AR"] = "AR";
|
|
14
|
+
NationalityCode["AM"] = "AM";
|
|
15
|
+
NationalityCode["AW"] = "AW";
|
|
16
|
+
NationalityCode["AU"] = "AU";
|
|
17
|
+
NationalityCode["AT"] = "AT";
|
|
18
|
+
NationalityCode["AZ"] = "AZ";
|
|
19
|
+
NationalityCode["BS"] = "BS";
|
|
20
|
+
NationalityCode["BH"] = "BH";
|
|
21
|
+
NationalityCode["BD"] = "BD";
|
|
22
|
+
NationalityCode["BB"] = "BB";
|
|
23
|
+
NationalityCode["BY"] = "BY";
|
|
24
|
+
NationalityCode["BE"] = "BE";
|
|
25
|
+
NationalityCode["BZ"] = "BZ";
|
|
26
|
+
NationalityCode["BJ"] = "BJ";
|
|
27
|
+
NationalityCode["BM"] = "BM";
|
|
28
|
+
NationalityCode["BT"] = "BT";
|
|
29
|
+
NationalityCode["BO"] = "BO";
|
|
30
|
+
NationalityCode["BA"] = "BA";
|
|
31
|
+
NationalityCode["BW"] = "BW";
|
|
32
|
+
NationalityCode["BR"] = "BR";
|
|
33
|
+
NationalityCode["BN"] = "BN";
|
|
34
|
+
NationalityCode["BG"] = "BG";
|
|
35
|
+
NationalityCode["BF"] = "BF";
|
|
36
|
+
NationalityCode["BI"] = "BI";
|
|
37
|
+
NationalityCode["KH"] = "KH";
|
|
38
|
+
NationalityCode["CM"] = "CM";
|
|
39
|
+
NationalityCode["CA"] = "CA";
|
|
40
|
+
NationalityCode["CV"] = "CV";
|
|
41
|
+
NationalityCode["KY"] = "KY";
|
|
42
|
+
NationalityCode["CF"] = "CF";
|
|
43
|
+
NationalityCode["TD"] = "TD";
|
|
44
|
+
NationalityCode["CL"] = "CL";
|
|
45
|
+
NationalityCode["CN"] = "CN";
|
|
46
|
+
NationalityCode["CO"] = "CO";
|
|
47
|
+
NationalityCode["KM"] = "KM";
|
|
48
|
+
NationalityCode["CG"] = "CG";
|
|
49
|
+
NationalityCode["CD"] = "CD";
|
|
50
|
+
NationalityCode["CR"] = "CR";
|
|
51
|
+
NationalityCode["HR"] = "HR";
|
|
52
|
+
NationalityCode["CU"] = "CU";
|
|
53
|
+
NationalityCode["CY"] = "CY";
|
|
54
|
+
NationalityCode["CZ"] = "CZ";
|
|
55
|
+
NationalityCode["DK"] = "DK";
|
|
56
|
+
NationalityCode["DJ"] = "DJ";
|
|
57
|
+
NationalityCode["DM"] = "DM";
|
|
58
|
+
NationalityCode["DO"] = "DO";
|
|
59
|
+
NationalityCode["EC"] = "EC";
|
|
60
|
+
NationalityCode["EG"] = "EG";
|
|
61
|
+
NationalityCode["SV"] = "SV";
|
|
62
|
+
NationalityCode["GQ"] = "GQ";
|
|
63
|
+
NationalityCode["ER"] = "ER";
|
|
64
|
+
NationalityCode["EE"] = "EE";
|
|
65
|
+
NationalityCode["ET"] = "ET";
|
|
66
|
+
NationalityCode["FK"] = "FK";
|
|
67
|
+
NationalityCode["FO"] = "FO";
|
|
68
|
+
NationalityCode["FJ"] = "FJ";
|
|
69
|
+
NationalityCode["FI"] = "FI";
|
|
70
|
+
NationalityCode["FR"] = "FR";
|
|
71
|
+
NationalityCode["GA"] = "GA";
|
|
72
|
+
NationalityCode["GB"] = "GB";
|
|
73
|
+
NationalityCode["GD"] = "GD";
|
|
74
|
+
NationalityCode["GE"] = "GE";
|
|
75
|
+
NationalityCode["GH"] = "GH";
|
|
76
|
+
NationalityCode["GI"] = "GI";
|
|
77
|
+
NationalityCode["GR"] = "GR";
|
|
78
|
+
NationalityCode["GL"] = "GL";
|
|
79
|
+
NationalityCode["GT"] = "GT";
|
|
80
|
+
NationalityCode["GN"] = "GN";
|
|
81
|
+
NationalityCode["GW"] = "GW";
|
|
82
|
+
NationalityCode["GY"] = "GY";
|
|
83
|
+
NationalityCode["HT"] = "HT";
|
|
84
|
+
NationalityCode["HM"] = "HM";
|
|
85
|
+
NationalityCode["HN"] = "HN";
|
|
86
|
+
NationalityCode["HK"] = "HK";
|
|
87
|
+
NationalityCode["HU"] = "HU";
|
|
88
|
+
NationalityCode["IS"] = "IS";
|
|
89
|
+
NationalityCode["IN"] = "IN";
|
|
90
|
+
NationalityCode["ID"] = "ID";
|
|
91
|
+
NationalityCode["IR"] = "IR";
|
|
92
|
+
NationalityCode["IQ"] = "IQ";
|
|
93
|
+
NationalityCode["IE"] = "IE";
|
|
94
|
+
NationalityCode["IL"] = "IL";
|
|
95
|
+
NationalityCode["IT"] = "IT";
|
|
96
|
+
NationalityCode["JM"] = "JM";
|
|
97
|
+
NationalityCode["JP"] = "JP";
|
|
98
|
+
NationalityCode["JO"] = "JO";
|
|
99
|
+
NationalityCode["KZ"] = "KZ";
|
|
100
|
+
NationalityCode["KE"] = "KE";
|
|
101
|
+
NationalityCode["KI"] = "KI";
|
|
102
|
+
NationalityCode["KW"] = "KW";
|
|
103
|
+
NationalityCode["KG"] = "KG";
|
|
104
|
+
NationalityCode["LA"] = "LA";
|
|
105
|
+
NationalityCode["LV"] = "LV";
|
|
106
|
+
NationalityCode["LB"] = "LB";
|
|
107
|
+
NationalityCode["LS"] = "LS";
|
|
108
|
+
NationalityCode["LR"] = "LR";
|
|
109
|
+
NationalityCode["LY"] = "LY";
|
|
110
|
+
NationalityCode["LI"] = "LI";
|
|
111
|
+
NationalityCode["LT"] = "LT";
|
|
112
|
+
NationalityCode["LU"] = "LU";
|
|
113
|
+
NationalityCode["MO"] = "MO";
|
|
114
|
+
NationalityCode["MK"] = "MK";
|
|
115
|
+
NationalityCode["MG"] = "MG";
|
|
116
|
+
NationalityCode["MW"] = "MW";
|
|
117
|
+
NationalityCode["MY"] = "MY";
|
|
118
|
+
NationalityCode["MV"] = "MV";
|
|
119
|
+
NationalityCode["ML"] = "ML";
|
|
120
|
+
NationalityCode["MT"] = "MT";
|
|
121
|
+
NationalityCode["MH"] = "MH";
|
|
122
|
+
NationalityCode["MQ"] = "MQ";
|
|
123
|
+
NationalityCode["MR"] = "MR";
|
|
124
|
+
NationalityCode["MU"] = "MU";
|
|
125
|
+
NationalityCode["YT"] = "YT";
|
|
126
|
+
NationalityCode["MX"] = "MX";
|
|
127
|
+
NationalityCode["FM"] = "FM";
|
|
128
|
+
NationalityCode["MD"] = "MD";
|
|
129
|
+
NationalityCode["MC"] = "MC";
|
|
130
|
+
NationalityCode["MN"] = "MN";
|
|
131
|
+
NationalityCode["ME"] = "ME";
|
|
132
|
+
NationalityCode["MS"] = "MS";
|
|
133
|
+
NationalityCode["MA"] = "MA";
|
|
134
|
+
NationalityCode["MZ"] = "MZ";
|
|
135
|
+
NationalityCode["MM"] = "MM";
|
|
136
|
+
NationalityCode["NA"] = "NA";
|
|
137
|
+
NationalityCode["NR"] = "NR";
|
|
138
|
+
NationalityCode["NP"] = "NP";
|
|
139
|
+
NationalityCode["NL"] = "NL";
|
|
140
|
+
NationalityCode["NC"] = "NC";
|
|
141
|
+
NationalityCode["NZ"] = "NZ";
|
|
142
|
+
NationalityCode["NI"] = "NI";
|
|
143
|
+
NationalityCode["NE"] = "NE";
|
|
144
|
+
NationalityCode["NG"] = "NG";
|
|
145
|
+
NationalityCode["NU"] = "NU";
|
|
146
|
+
NationalityCode["NF"] = "NF";
|
|
147
|
+
NationalityCode["MP"] = "MP";
|
|
148
|
+
NationalityCode["NO"] = "NO";
|
|
149
|
+
NationalityCode["OM"] = "OM";
|
|
150
|
+
NationalityCode["PK"] = "PK";
|
|
151
|
+
NationalityCode["PW"] = "PW";
|
|
152
|
+
NationalityCode["PA"] = "PA";
|
|
153
|
+
NationalityCode["PG"] = "PG";
|
|
154
|
+
NationalityCode["PY"] = "PY";
|
|
155
|
+
NationalityCode["PE"] = "PE";
|
|
156
|
+
NationalityCode["PH"] = "PH";
|
|
157
|
+
NationalityCode["PN"] = "PN";
|
|
158
|
+
NationalityCode["PL"] = "PL";
|
|
159
|
+
NationalityCode["PT"] = "PT";
|
|
160
|
+
NationalityCode["PR"] = "PR";
|
|
161
|
+
NationalityCode["QA"] = "QA";
|
|
162
|
+
NationalityCode["RE"] = "RE";
|
|
163
|
+
NationalityCode["RO"] = "RO";
|
|
164
|
+
NationalityCode["RU"] = "RU";
|
|
165
|
+
NationalityCode["RW"] = "RW";
|
|
166
|
+
NationalityCode["BL"] = "BL";
|
|
167
|
+
NationalityCode["SH"] = "SH";
|
|
168
|
+
NationalityCode["KN"] = "KN";
|
|
169
|
+
NationalityCode["LC"] = "LC";
|
|
170
|
+
NationalityCode["MF"] = "MF";
|
|
171
|
+
NationalityCode["PM"] = "PM";
|
|
172
|
+
NationalityCode["VC"] = "VC";
|
|
173
|
+
NationalityCode["WS"] = "WS";
|
|
174
|
+
NationalityCode["SM"] = "SM";
|
|
175
|
+
NationalityCode["ST"] = "ST";
|
|
176
|
+
NationalityCode["SA"] = "SA";
|
|
177
|
+
NationalityCode["SN"] = "SN";
|
|
178
|
+
NationalityCode["RS"] = "RS";
|
|
179
|
+
NationalityCode["SC"] = "SC";
|
|
180
|
+
NationalityCode["SL"] = "SL";
|
|
181
|
+
NationalityCode["SG"] = "SG";
|
|
182
|
+
NationalityCode["SX"] = "SX";
|
|
183
|
+
NationalityCode["SK"] = "SK";
|
|
184
|
+
NationalityCode["SI"] = "SI";
|
|
185
|
+
NationalityCode["SB"] = "SB";
|
|
186
|
+
NationalityCode["SO"] = "SO";
|
|
187
|
+
NationalityCode["ZA"] = "ZA";
|
|
188
|
+
NationalityCode["GS"] = "GS";
|
|
189
|
+
NationalityCode["ES"] = "ES";
|
|
190
|
+
NationalityCode["LK"] = "LK";
|
|
191
|
+
NationalityCode["SD"] = "SD";
|
|
192
|
+
NationalityCode["SR"] = "SR";
|
|
193
|
+
NationalityCode["SJ"] = "SJ";
|
|
194
|
+
NationalityCode["SE"] = "SE";
|
|
195
|
+
NationalityCode["CH"] = "CH";
|
|
196
|
+
NationalityCode["SY"] = "SY";
|
|
197
|
+
NationalityCode["TW"] = "TW";
|
|
198
|
+
NationalityCode["TJ"] = "TJ";
|
|
199
|
+
NationalityCode["TZ"] = "TZ";
|
|
200
|
+
NationalityCode["TH"] = "TH";
|
|
201
|
+
NationalityCode["TL"] = "TL";
|
|
202
|
+
NationalityCode["TG"] = "TG";
|
|
203
|
+
NationalityCode["TK"] = "TK";
|
|
204
|
+
NationalityCode["TO"] = "TO";
|
|
205
|
+
NationalityCode["TT"] = "TT";
|
|
206
|
+
NationalityCode["TN"] = "TN";
|
|
207
|
+
NationalityCode["TR"] = "TR";
|
|
208
|
+
NationalityCode["TM"] = "TM";
|
|
209
|
+
NationalityCode["TC"] = "TC";
|
|
210
|
+
NationalityCode["TV"] = "TV";
|
|
211
|
+
NationalityCode["UG"] = "UG";
|
|
212
|
+
NationalityCode["UA"] = "UA";
|
|
213
|
+
NationalityCode["AE"] = "AE";
|
|
214
|
+
NationalityCode["US"] = "US";
|
|
215
|
+
NationalityCode["UY"] = "UY";
|
|
216
|
+
NationalityCode["UZ"] = "UZ";
|
|
217
|
+
NationalityCode["VU"] = "VU";
|
|
218
|
+
NationalityCode["VE"] = "VE";
|
|
219
|
+
NationalityCode["VN"] = "VN";
|
|
220
|
+
NationalityCode["WF"] = "WF";
|
|
221
|
+
NationalityCode["EH"] = "EH";
|
|
222
|
+
NationalityCode["YE"] = "YE";
|
|
223
|
+
NationalityCode["ZM"] = "ZM";
|
|
224
|
+
NationalityCode["ZW"] = "ZW";
|
|
225
|
+
})(NationalityCode = exports.NationalityCode || (exports.NationalityCode = {}));
|
|
226
|
+
//# sourceMappingURL=nationality-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nationality-code.js","sourceRoot":"","sources":["../../../src/constants/nationality-code.ts"],"names":[],"mappings":";;;AAAA,IAAY,eA4NX;AA5ND,WAAY,eAAe;IACzB,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAA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ACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;AACb,CAAC,EA5NW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA4N1B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NATIONALITY_CODES = void 0;
|
|
4
|
+
const nationality_code_1 = require("./nationality-code");
|
|
5
|
+
exports.NATIONALITY_CODES = Object.values(nationality_code_1.NationalityCode);
|
|
6
|
+
//# sourceMappingURL=nationality-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nationality-codes.js","sourceRoot":"","sources":["../../../src/constants/nationality-codes.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAExC,QAAA,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,kCAAe,CAAC,CAAC"}
|
|
@@ -2,3 +2,8 @@ export * from './use-form-context';
|
|
|
2
2
|
export * from './use-popover';
|
|
3
3
|
export * from './use-tooltip';
|
|
4
4
|
export * from './use-dropdown';
|
|
5
|
+
export * from './use-countries';
|
|
6
|
+
export * from './use-cookies';
|
|
7
|
+
export * from './use-icons';
|
|
8
|
+
export * from './use-local-storage';
|
|
9
|
+
export * from './use-format-datetime';
|
package/build/src/hooks/index.js
CHANGED
|
@@ -18,4 +18,9 @@ __exportStar(require("./use-form-context"), exports);
|
|
|
18
18
|
__exportStar(require("./use-popover"), exports);
|
|
19
19
|
__exportStar(require("./use-tooltip"), exports);
|
|
20
20
|
__exportStar(require("./use-dropdown"), exports);
|
|
21
|
+
__exportStar(require("./use-countries"), exports);
|
|
22
|
+
__exportStar(require("./use-cookies"), exports);
|
|
23
|
+
__exportStar(require("./use-icons"), exports);
|
|
24
|
+
__exportStar(require("./use-local-storage"), exports);
|
|
25
|
+
__exportStar(require("./use-format-datetime"), exports);
|
|
21
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B;AAC9B,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC;AAChC,gDAA8B;AAC9B,8CAA4B;AAC5B,sDAAoC;AACpC,wDAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-cookies';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-cookies"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/use-cookies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useCookies = void 0;
|
|
7
|
+
const js_cookie_1 = __importDefault(require("js-cookie"));
|
|
8
|
+
const useCookies = () => {
|
|
9
|
+
const set = (name, value, days = 7) => {
|
|
10
|
+
js_cookie_1.default.set(name, value, { expires: days });
|
|
11
|
+
};
|
|
12
|
+
const get = (name) => {
|
|
13
|
+
return js_cookie_1.default.get(name);
|
|
14
|
+
};
|
|
15
|
+
const remove = (name) => {
|
|
16
|
+
js_cookie_1.default.remove(name);
|
|
17
|
+
};
|
|
18
|
+
return {
|
|
19
|
+
set,
|
|
20
|
+
get,
|
|
21
|
+
remove,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.useCookies = useCookies;
|
|
25
|
+
//# sourceMappingURL=use-cookies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-cookies.js","sourceRoot":"","sources":["../../../../src/hooks/use-cookies/use-cookies.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAgC;AAEzB,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;QACpD,mBAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC,CAAC;IAEF,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE;QAC3B,OAAO,mBAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,EAAE;QAC9B,mBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO;QACL,GAAG;QACH,GAAG;QACH,MAAM;KACP,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,UAAU,cAkBrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-countries';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-countries"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/use-countries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCountries = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const constants_1 = require("src/constants");
|
|
6
|
+
const TRANSLATION_PREFIX = 'country';
|
|
7
|
+
const useCountries = () => {
|
|
8
|
+
return (0, react_1.useMemo)(() => constants_1.COUNTRY_CODES.map((code) => ({
|
|
9
|
+
code,
|
|
10
|
+
label: `${TRANSLATION_PREFIX}.${code}`,
|
|
11
|
+
})), []);
|
|
12
|
+
};
|
|
13
|
+
exports.useCountries = useCountries;
|
|
14
|
+
//# sourceMappingURL=use-countries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-countries.js","sourceRoot":"","sources":["../../../../src/hooks/use-countries/use-countries.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAEhC,6CAA8C;AAE9C,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAE9B,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,OAAO,IAAA,eAAO,EACZ,GAAG,EAAE,CACH,yBAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC3B,IAAI;QACJ,KAAK,EAAE,GAAG,kBAAkB,IAAI,IAAI,EAAE;KACvC,CAAC,CAAC,EACL,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,YAAY,gBASvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-format-datetime';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-format-datetime"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/use-format-datetime/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useFormatDatetime = void 0;
|
|
4
|
+
const date_fns_1 = require("date-fns");
|
|
5
|
+
const locale_1 = require("date-fns/locale");
|
|
6
|
+
var FormatDateTime;
|
|
7
|
+
(function (FormatDateTime) {
|
|
8
|
+
FormatDateTime["DATE_TIME"] = "Pp";
|
|
9
|
+
FormatDateTime["TIME_LONG"] = "p";
|
|
10
|
+
})(FormatDateTime || (FormatDateTime = {}));
|
|
11
|
+
const useFormatDatetime = () => {
|
|
12
|
+
return (date, format = FormatDateTime.DATE_TIME) => (0, date_fns_1.formatDate)(date, format, {
|
|
13
|
+
locale: locale_1.enGB,
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
exports.useFormatDatetime = useFormatDatetime;
|
|
17
|
+
//# sourceMappingURL=use-format-datetime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-format-datetime.js","sourceRoot":"","sources":["../../../../src/hooks/use-format-datetime/use-format-datetime.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,4CAAuC;AAEvC,IAAK,cAGJ;AAHD,WAAK,cAAc;IACjB,kCAAgB,CAAA;IAChB,iCAAe,CAAA;AACjB,CAAC,EAHI,cAAc,KAAd,cAAc,QAGlB;AAEM,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,OAAO,CACL,IAAmB,EACnB,SAAyB,cAAc,CAAC,SAAS,EACjD,EAAE,CACF,IAAA,qBAAU,EAAC,IAAI,EAAE,MAAM,EAAE;QACvB,MAAM,EAAE,aAAI;KACb,CAAC,CAAC;AACP,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-icons';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-icons"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/use-icons/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.useIcons = void 0;
|
|
27
|
+
const IconNames = __importStar(require("@coreui/icons"));
|
|
28
|
+
const useIcons = () => {
|
|
29
|
+
return IconNames;
|
|
30
|
+
};
|
|
31
|
+
exports.useIcons = useIcons;
|
|
32
|
+
//# sourceMappingURL=use-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-icons.js","sourceRoot":"","sources":["../../../../src/hooks/use-icons/use-icons.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA2C;AAEpC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,OAAO,SAAS,CAAC;AACnB,CAAC,CAAA;AAFY,QAAA,QAAQ,YAEpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-local-storage';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-local-storage"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/use-local-storage/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useLocalStorage = void 0;
|
|
4
|
+
const useLocalStorage = () => {
|
|
5
|
+
const set = (key, value) => {
|
|
6
|
+
try {
|
|
7
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
8
|
+
}
|
|
9
|
+
catch (error) {
|
|
10
|
+
console.error("Error saving to localStorage", error);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const get = (key) => {
|
|
14
|
+
try {
|
|
15
|
+
const value = localStorage.getItem(key);
|
|
16
|
+
return value ? JSON.parse(value) : null;
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
console.error("Error reading from localStorage", error);
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const remove = (key) => {
|
|
24
|
+
try {
|
|
25
|
+
localStorage.removeItem(key);
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error("Error removing from localStorage", error);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const clear = () => {
|
|
32
|
+
try {
|
|
33
|
+
localStorage.clear();
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
console.error("Error clearing localStorage", error);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return {
|
|
40
|
+
set,
|
|
41
|
+
get,
|
|
42
|
+
remove,
|
|
43
|
+
clear,
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
exports.useLocalStorage = useLocalStorage;
|
|
47
|
+
//# sourceMappingURL=use-local-storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-local-storage.js","sourceRoot":"","sources":["../../../../src/hooks/use-local-storage/use-local-storage.ts"],"names":[],"mappings":";;;AAAO,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,CAAC,GAAW,EAAE,KAAc,EAAE,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ormikFormControlValue: (event: SyntheticEvent<HTMLInputElement>) => string | boolean | File | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-formik-form-control-value.js","sourceRoot":"","sources":["../../../../src/utils/get-formik-form-control-value/get-formik-form-control-value.ts"],"names":[],"mappings":";;;AAEO,MAAM,yBAAyB,GAAG,CAAC,KAAuC,EAAE,EAAE;IACnF,MAAM,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;IAEnC,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,EAAE;QAC1B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;KAC5E;IAED,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE;QAC9B,OAAO,MAAM,CAAC,OAAO,CAAC;KACvB;IAED,OAAO,MAAM,CAAC,KAAK,CAAC;AACtB,CAAC,
|
|
1
|
+
{"version":3,"file":"get-formik-form-control-value.js","sourceRoot":"","sources":["../../../../src/utils/get-formik-form-control-value/get-formik-form-control-value.ts"],"names":[],"mappings":";;;AAEO,MAAM,yBAAyB,GAAG,CAAC,KAAuC,EAAE,EAAE;IACnF,MAAM,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;IAEnC,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,EAAE;QAC1B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;KAC5E;IAED,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE;QAC9B,OAAO,MAAM,CAAC,OAAO,CAAC;KACvB;IAED,OAAO,MAAM,CAAC,KAAK,CAAC;AACtB,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
|