@helpdice/ui 1.7.3 → 1.7.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/dist/PhoneInput/index.d.ts +2 -0
- package/dist/PhoneInput/index.js +1999 -0
- package/dist/PhoneInput/phone.d.ts +11 -0
- package/dist/badge/index.js +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1409 -4
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +1 -0
- package/esm/PhoneInput/index.d.ts +2 -0
- package/esm/PhoneInput/index.js +2 -0
- package/esm/PhoneInput/phone.d.ts +11 -0
- package/esm/PhoneInput/phone.js +158 -0
- package/esm/badge/badge.js +4 -4
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/input/index.d.ts +1 -0
- package/esm/input/index.js +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,1999 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var useTheme = require('components/use-theme');
|
|
7
|
+
var styles = require('components/input/styles');
|
|
8
|
+
|
|
9
|
+
function _arrayLikeToArray(r, a) {
|
|
10
|
+
(null == a || a > r.length) && (a = r.length);
|
|
11
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
function _arrayWithHoles(r) {
|
|
15
|
+
if (Array.isArray(r)) return r;
|
|
16
|
+
}
|
|
17
|
+
function _iterableToArrayLimit(r, l) {
|
|
18
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
19
|
+
if (null != t) {
|
|
20
|
+
var e,
|
|
21
|
+
n,
|
|
22
|
+
i,
|
|
23
|
+
u,
|
|
24
|
+
a = [],
|
|
25
|
+
f = true,
|
|
26
|
+
o = false;
|
|
27
|
+
try {
|
|
28
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
29
|
+
} catch (r) {
|
|
30
|
+
o = true, n = r;
|
|
31
|
+
} finally {
|
|
32
|
+
try {
|
|
33
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
34
|
+
} finally {
|
|
35
|
+
if (o) throw n;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return a;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function _nonIterableRest() {
|
|
42
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
43
|
+
}
|
|
44
|
+
function _slicedToArray(r, e) {
|
|
45
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
46
|
+
}
|
|
47
|
+
function _unsupportedIterableToArray(r, a) {
|
|
48
|
+
if (r) {
|
|
49
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
50
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
51
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function getDefaultExportFromCjs (x) {
|
|
56
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
var index = {};
|
|
60
|
+
|
|
61
|
+
var hasRequiredIndex;
|
|
62
|
+
|
|
63
|
+
function requireIndex () {
|
|
64
|
+
if (hasRequiredIndex) return index;
|
|
65
|
+
hasRequiredIndex = 1;
|
|
66
|
+
var React$1 = React;
|
|
67
|
+
|
|
68
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
69
|
+
|
|
70
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
|
|
71
|
+
|
|
72
|
+
/*
|
|
73
|
+
Based on Glamor's sheet
|
|
74
|
+
https://github.com/threepointone/glamor/blob/667b480d31b3721a905021b26e1290ce92ca2879/src/sheet.js
|
|
75
|
+
*/ function _defineProperties(target, props) {
|
|
76
|
+
for(var i = 0; i < props.length; i++){
|
|
77
|
+
var descriptor = props[i];
|
|
78
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
79
|
+
descriptor.configurable = true;
|
|
80
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
81
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
85
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
86
|
+
return Constructor;
|
|
87
|
+
}
|
|
88
|
+
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
89
|
+
var isString = function(o) {
|
|
90
|
+
return Object.prototype.toString.call(o) === "[object String]";
|
|
91
|
+
};
|
|
92
|
+
var StyleSheet = /*#__PURE__*/ function() {
|
|
93
|
+
function StyleSheet(param) {
|
|
94
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
95
|
+
invariant$1(isString(name), "`name` must be a string");
|
|
96
|
+
this._name = name;
|
|
97
|
+
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
98
|
+
invariant$1(typeof optimizeForSpeed === "boolean", "`optimizeForSpeed` must be a boolean");
|
|
99
|
+
this._optimizeForSpeed = optimizeForSpeed;
|
|
100
|
+
this._serverSheet = undefined;
|
|
101
|
+
this._tags = [];
|
|
102
|
+
this._injected = false;
|
|
103
|
+
this._rulesCount = 0;
|
|
104
|
+
var node = typeof window !== "undefined" && document.querySelector('meta[property="csp-nonce"]');
|
|
105
|
+
this._nonce = node ? node.getAttribute("content") : null;
|
|
106
|
+
}
|
|
107
|
+
var _proto = StyleSheet.prototype;
|
|
108
|
+
_proto.setOptimizeForSpeed = function setOptimizeForSpeed(bool) {
|
|
109
|
+
invariant$1(typeof bool === "boolean", "`setOptimizeForSpeed` accepts a boolean");
|
|
110
|
+
invariant$1(this._rulesCount === 0, "optimizeForSpeed cannot be when rules have already been inserted");
|
|
111
|
+
this.flush();
|
|
112
|
+
this._optimizeForSpeed = bool;
|
|
113
|
+
this.inject();
|
|
114
|
+
};
|
|
115
|
+
_proto.isOptimizeForSpeed = function isOptimizeForSpeed() {
|
|
116
|
+
return this._optimizeForSpeed;
|
|
117
|
+
};
|
|
118
|
+
_proto.inject = function inject() {
|
|
119
|
+
var _this = this;
|
|
120
|
+
invariant$1(!this._injected, "sheet already injected");
|
|
121
|
+
this._injected = true;
|
|
122
|
+
if (typeof window !== "undefined" && this._optimizeForSpeed) {
|
|
123
|
+
this._tags[0] = this.makeStyleTag(this._name);
|
|
124
|
+
this._optimizeForSpeed = "insertRule" in this.getSheet();
|
|
125
|
+
if (!this._optimizeForSpeed) {
|
|
126
|
+
if (!isProd) {
|
|
127
|
+
console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode.");
|
|
128
|
+
}
|
|
129
|
+
this.flush();
|
|
130
|
+
this._injected = true;
|
|
131
|
+
}
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this._serverSheet = {
|
|
135
|
+
cssRules: [],
|
|
136
|
+
insertRule: function(rule, index) {
|
|
137
|
+
if (typeof index === "number") {
|
|
138
|
+
_this._serverSheet.cssRules[index] = {
|
|
139
|
+
cssText: rule
|
|
140
|
+
};
|
|
141
|
+
} else {
|
|
142
|
+
_this._serverSheet.cssRules.push({
|
|
143
|
+
cssText: rule
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
return index;
|
|
147
|
+
},
|
|
148
|
+
deleteRule: function(index) {
|
|
149
|
+
_this._serverSheet.cssRules[index] = null;
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
_proto.getSheetForTag = function getSheetForTag(tag) {
|
|
154
|
+
if (tag.sheet) {
|
|
155
|
+
return tag.sheet;
|
|
156
|
+
}
|
|
157
|
+
// this weirdness brought to you by firefox
|
|
158
|
+
for(var i = 0; i < document.styleSheets.length; i++){
|
|
159
|
+
if (document.styleSheets[i].ownerNode === tag) {
|
|
160
|
+
return document.styleSheets[i];
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
_proto.getSheet = function getSheet() {
|
|
165
|
+
return this.getSheetForTag(this._tags[this._tags.length - 1]);
|
|
166
|
+
};
|
|
167
|
+
_proto.insertRule = function insertRule(rule, index) {
|
|
168
|
+
invariant$1(isString(rule), "`insertRule` accepts only strings");
|
|
169
|
+
if (typeof window === "undefined") {
|
|
170
|
+
if (typeof index !== "number") {
|
|
171
|
+
index = this._serverSheet.cssRules.length;
|
|
172
|
+
}
|
|
173
|
+
this._serverSheet.insertRule(rule, index);
|
|
174
|
+
return this._rulesCount++;
|
|
175
|
+
}
|
|
176
|
+
if (this._optimizeForSpeed) {
|
|
177
|
+
var sheet = this.getSheet();
|
|
178
|
+
if (typeof index !== "number") {
|
|
179
|
+
index = sheet.cssRules.length;
|
|
180
|
+
}
|
|
181
|
+
// this weirdness for perf, and chrome's weird bug
|
|
182
|
+
// https://stackoverflow.com/questions/20007992/chrome-suddenly-stopped-accepting-insertrule
|
|
183
|
+
try {
|
|
184
|
+
sheet.insertRule(rule, index);
|
|
185
|
+
} catch (error) {
|
|
186
|
+
if (!isProd) {
|
|
187
|
+
console.warn("StyleSheet: illegal rule: \n\n" + rule + "\n\nSee https://stackoverflow.com/q/20007992 for more info");
|
|
188
|
+
}
|
|
189
|
+
return -1;
|
|
190
|
+
}
|
|
191
|
+
} else {
|
|
192
|
+
var insertionPoint = this._tags[index];
|
|
193
|
+
this._tags.push(this.makeStyleTag(this._name, rule, insertionPoint));
|
|
194
|
+
}
|
|
195
|
+
return this._rulesCount++;
|
|
196
|
+
};
|
|
197
|
+
_proto.replaceRule = function replaceRule(index, rule) {
|
|
198
|
+
if (this._optimizeForSpeed || typeof window === "undefined") {
|
|
199
|
+
var sheet = typeof window !== "undefined" ? this.getSheet() : this._serverSheet;
|
|
200
|
+
if (!rule.trim()) {
|
|
201
|
+
rule = this._deletedRulePlaceholder;
|
|
202
|
+
}
|
|
203
|
+
if (!sheet.cssRules[index]) {
|
|
204
|
+
// @TBD Should we throw an error?
|
|
205
|
+
return index;
|
|
206
|
+
}
|
|
207
|
+
sheet.deleteRule(index);
|
|
208
|
+
try {
|
|
209
|
+
sheet.insertRule(rule, index);
|
|
210
|
+
} catch (error) {
|
|
211
|
+
if (!isProd) {
|
|
212
|
+
console.warn("StyleSheet: illegal rule: \n\n" + rule + "\n\nSee https://stackoverflow.com/q/20007992 for more info");
|
|
213
|
+
}
|
|
214
|
+
// In order to preserve the indices we insert a deleteRulePlaceholder
|
|
215
|
+
sheet.insertRule(this._deletedRulePlaceholder, index);
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
var tag = this._tags[index];
|
|
219
|
+
invariant$1(tag, "old rule at index `" + index + "` not found");
|
|
220
|
+
tag.textContent = rule;
|
|
221
|
+
}
|
|
222
|
+
return index;
|
|
223
|
+
};
|
|
224
|
+
_proto.deleteRule = function deleteRule(index) {
|
|
225
|
+
if (typeof window === "undefined") {
|
|
226
|
+
this._serverSheet.deleteRule(index);
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
if (this._optimizeForSpeed) {
|
|
230
|
+
this.replaceRule(index, "");
|
|
231
|
+
} else {
|
|
232
|
+
var tag = this._tags[index];
|
|
233
|
+
invariant$1(tag, "rule at index `" + index + "` not found");
|
|
234
|
+
tag.parentNode.removeChild(tag);
|
|
235
|
+
this._tags[index] = null;
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
_proto.flush = function flush() {
|
|
239
|
+
this._injected = false;
|
|
240
|
+
this._rulesCount = 0;
|
|
241
|
+
if (typeof window !== "undefined") {
|
|
242
|
+
this._tags.forEach(function(tag) {
|
|
243
|
+
return tag && tag.parentNode.removeChild(tag);
|
|
244
|
+
});
|
|
245
|
+
this._tags = [];
|
|
246
|
+
} else {
|
|
247
|
+
// simpler on server
|
|
248
|
+
this._serverSheet.cssRules = [];
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
_proto.cssRules = function cssRules() {
|
|
252
|
+
var _this = this;
|
|
253
|
+
if (typeof window === "undefined") {
|
|
254
|
+
return this._serverSheet.cssRules;
|
|
255
|
+
}
|
|
256
|
+
return this._tags.reduce(function(rules, tag) {
|
|
257
|
+
if (tag) {
|
|
258
|
+
rules = rules.concat(Array.prototype.map.call(_this.getSheetForTag(tag).cssRules, function(rule) {
|
|
259
|
+
return rule.cssText === _this._deletedRulePlaceholder ? null : rule;
|
|
260
|
+
}));
|
|
261
|
+
} else {
|
|
262
|
+
rules.push(null);
|
|
263
|
+
}
|
|
264
|
+
return rules;
|
|
265
|
+
}, []);
|
|
266
|
+
};
|
|
267
|
+
_proto.makeStyleTag = function makeStyleTag(name, cssString, relativeToTag) {
|
|
268
|
+
if (cssString) {
|
|
269
|
+
invariant$1(isString(cssString), "makeStyleTag accepts only strings as second parameter");
|
|
270
|
+
}
|
|
271
|
+
var tag = document.createElement("style");
|
|
272
|
+
if (this._nonce) tag.setAttribute("nonce", this._nonce);
|
|
273
|
+
tag.type = "text/css";
|
|
274
|
+
tag.setAttribute("data-" + name, "");
|
|
275
|
+
if (cssString) {
|
|
276
|
+
tag.appendChild(document.createTextNode(cssString));
|
|
277
|
+
}
|
|
278
|
+
var head = document.head || document.getElementsByTagName("head")[0];
|
|
279
|
+
if (relativeToTag) {
|
|
280
|
+
head.insertBefore(tag, relativeToTag);
|
|
281
|
+
} else {
|
|
282
|
+
head.appendChild(tag);
|
|
283
|
+
}
|
|
284
|
+
return tag;
|
|
285
|
+
};
|
|
286
|
+
_createClass(StyleSheet, [
|
|
287
|
+
{
|
|
288
|
+
key: "length",
|
|
289
|
+
get: function get() {
|
|
290
|
+
return this._rulesCount;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
]);
|
|
294
|
+
return StyleSheet;
|
|
295
|
+
}();
|
|
296
|
+
function invariant$1(condition, message) {
|
|
297
|
+
if (!condition) {
|
|
298
|
+
throw new Error("StyleSheet: " + message + ".");
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function hash(str) {
|
|
303
|
+
var _$hash = 5381, i = str.length;
|
|
304
|
+
while(i){
|
|
305
|
+
_$hash = _$hash * 33 ^ str.charCodeAt(--i);
|
|
306
|
+
}
|
|
307
|
+
/* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
|
|
308
|
+
* integers. Since we want the results to be always positive, convert the
|
|
309
|
+
* signed int to an unsigned by doing an unsigned bitshift. */ return _$hash >>> 0;
|
|
310
|
+
}
|
|
311
|
+
var stringHash = hash;
|
|
312
|
+
|
|
313
|
+
var sanitize = function(rule) {
|
|
314
|
+
return rule.replace(/\/style/gi, "\\/style");
|
|
315
|
+
};
|
|
316
|
+
var cache = {};
|
|
317
|
+
/**
|
|
318
|
+
* computeId
|
|
319
|
+
*
|
|
320
|
+
* Compute and memoize a jsx id from a basedId and optionally props.
|
|
321
|
+
*/ function computeId(baseId, props) {
|
|
322
|
+
if (!props) {
|
|
323
|
+
return "jsx-" + baseId;
|
|
324
|
+
}
|
|
325
|
+
var propsToString = String(props);
|
|
326
|
+
var key = baseId + propsToString;
|
|
327
|
+
if (!cache[key]) {
|
|
328
|
+
cache[key] = "jsx-" + stringHash(baseId + "-" + propsToString);
|
|
329
|
+
}
|
|
330
|
+
return cache[key];
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* computeSelector
|
|
334
|
+
*
|
|
335
|
+
* Compute and memoize dynamic selectors.
|
|
336
|
+
*/ function computeSelector(id, css) {
|
|
337
|
+
var selectoPlaceholderRegexp = /__jsx-style-dynamic-selector/g;
|
|
338
|
+
// Sanitize SSR-ed CSS.
|
|
339
|
+
// Client side code doesn't need to be sanitized since we use
|
|
340
|
+
// document.createTextNode (dev) and the CSSOM api sheet.insertRule (prod).
|
|
341
|
+
if (typeof window === "undefined") {
|
|
342
|
+
css = sanitize(css);
|
|
343
|
+
}
|
|
344
|
+
var idcss = id + css;
|
|
345
|
+
if (!cache[idcss]) {
|
|
346
|
+
cache[idcss] = css.replace(selectoPlaceholderRegexp, id);
|
|
347
|
+
}
|
|
348
|
+
return cache[idcss];
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
function mapRulesToStyle(cssRules, options) {
|
|
352
|
+
if (options === void 0) options = {};
|
|
353
|
+
return cssRules.map(function(args) {
|
|
354
|
+
var id = args[0];
|
|
355
|
+
var css = args[1];
|
|
356
|
+
return /*#__PURE__*/ React__default["default"].createElement("style", {
|
|
357
|
+
id: "__" + id,
|
|
358
|
+
// Avoid warnings upon render with a key
|
|
359
|
+
key: "__" + id,
|
|
360
|
+
nonce: options.nonce ? options.nonce : undefined,
|
|
361
|
+
dangerouslySetInnerHTML: {
|
|
362
|
+
__html: css
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
368
|
+
function StyleSheetRegistry(param) {
|
|
369
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
370
|
+
this._sheet = styleSheet || new StyleSheet({
|
|
371
|
+
name: "styled-jsx",
|
|
372
|
+
optimizeForSpeed: optimizeForSpeed
|
|
373
|
+
});
|
|
374
|
+
this._sheet.inject();
|
|
375
|
+
if (styleSheet && typeof optimizeForSpeed === "boolean") {
|
|
376
|
+
this._sheet.setOptimizeForSpeed(optimizeForSpeed);
|
|
377
|
+
this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();
|
|
378
|
+
}
|
|
379
|
+
this._fromServer = undefined;
|
|
380
|
+
this._indices = {};
|
|
381
|
+
this._instancesCounts = {};
|
|
382
|
+
}
|
|
383
|
+
var _proto = StyleSheetRegistry.prototype;
|
|
384
|
+
_proto.add = function add(props) {
|
|
385
|
+
var _this = this;
|
|
386
|
+
if (undefined === this._optimizeForSpeed) {
|
|
387
|
+
this._optimizeForSpeed = Array.isArray(props.children);
|
|
388
|
+
this._sheet.setOptimizeForSpeed(this._optimizeForSpeed);
|
|
389
|
+
this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();
|
|
390
|
+
}
|
|
391
|
+
if (typeof window !== "undefined" && !this._fromServer) {
|
|
392
|
+
this._fromServer = this.selectFromServer();
|
|
393
|
+
this._instancesCounts = Object.keys(this._fromServer).reduce(function(acc, tagName) {
|
|
394
|
+
acc[tagName] = 0;
|
|
395
|
+
return acc;
|
|
396
|
+
}, {});
|
|
397
|
+
}
|
|
398
|
+
var ref = this.getIdAndRules(props), styleId = ref.styleId, rules = ref.rules;
|
|
399
|
+
// Deduping: just increase the instances count.
|
|
400
|
+
if (styleId in this._instancesCounts) {
|
|
401
|
+
this._instancesCounts[styleId] += 1;
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
var indices = rules.map(function(rule) {
|
|
405
|
+
return _this._sheet.insertRule(rule);
|
|
406
|
+
})// Filter out invalid rules
|
|
407
|
+
.filter(function(index) {
|
|
408
|
+
return index !== -1;
|
|
409
|
+
});
|
|
410
|
+
this._indices[styleId] = indices;
|
|
411
|
+
this._instancesCounts[styleId] = 1;
|
|
412
|
+
};
|
|
413
|
+
_proto.remove = function remove(props) {
|
|
414
|
+
var _this = this;
|
|
415
|
+
var styleId = this.getIdAndRules(props).styleId;
|
|
416
|
+
invariant(styleId in this._instancesCounts, "styleId: `" + styleId + "` not found");
|
|
417
|
+
this._instancesCounts[styleId] -= 1;
|
|
418
|
+
if (this._instancesCounts[styleId] < 1) {
|
|
419
|
+
var tagFromServer = this._fromServer && this._fromServer[styleId];
|
|
420
|
+
if (tagFromServer) {
|
|
421
|
+
tagFromServer.parentNode.removeChild(tagFromServer);
|
|
422
|
+
delete this._fromServer[styleId];
|
|
423
|
+
} else {
|
|
424
|
+
this._indices[styleId].forEach(function(index) {
|
|
425
|
+
return _this._sheet.deleteRule(index);
|
|
426
|
+
});
|
|
427
|
+
delete this._indices[styleId];
|
|
428
|
+
}
|
|
429
|
+
delete this._instancesCounts[styleId];
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
_proto.update = function update(props, nextProps) {
|
|
433
|
+
this.add(nextProps);
|
|
434
|
+
this.remove(props);
|
|
435
|
+
};
|
|
436
|
+
_proto.flush = function flush() {
|
|
437
|
+
this._sheet.flush();
|
|
438
|
+
this._sheet.inject();
|
|
439
|
+
this._fromServer = undefined;
|
|
440
|
+
this._indices = {};
|
|
441
|
+
this._instancesCounts = {};
|
|
442
|
+
};
|
|
443
|
+
_proto.cssRules = function cssRules() {
|
|
444
|
+
var _this = this;
|
|
445
|
+
var fromServer = this._fromServer ? Object.keys(this._fromServer).map(function(styleId) {
|
|
446
|
+
return [
|
|
447
|
+
styleId,
|
|
448
|
+
_this._fromServer[styleId]
|
|
449
|
+
];
|
|
450
|
+
}) : [];
|
|
451
|
+
var cssRules = this._sheet.cssRules();
|
|
452
|
+
return fromServer.concat(Object.keys(this._indices).map(function(styleId) {
|
|
453
|
+
return [
|
|
454
|
+
styleId,
|
|
455
|
+
_this._indices[styleId].map(function(index) {
|
|
456
|
+
return cssRules[index].cssText;
|
|
457
|
+
}).join(_this._optimizeForSpeed ? "" : "\n")
|
|
458
|
+
];
|
|
459
|
+
})// filter out empty rules
|
|
460
|
+
.filter(function(rule) {
|
|
461
|
+
return Boolean(rule[1]);
|
|
462
|
+
}));
|
|
463
|
+
};
|
|
464
|
+
_proto.styles = function styles(options) {
|
|
465
|
+
return mapRulesToStyle(this.cssRules(), options);
|
|
466
|
+
};
|
|
467
|
+
_proto.getIdAndRules = function getIdAndRules(props) {
|
|
468
|
+
var css = props.children, dynamic = props.dynamic, id = props.id;
|
|
469
|
+
if (dynamic) {
|
|
470
|
+
var styleId = computeId(id, dynamic);
|
|
471
|
+
return {
|
|
472
|
+
styleId: styleId,
|
|
473
|
+
rules: Array.isArray(css) ? css.map(function(rule) {
|
|
474
|
+
return computeSelector(styleId, rule);
|
|
475
|
+
}) : [
|
|
476
|
+
computeSelector(styleId, css)
|
|
477
|
+
]
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
return {
|
|
481
|
+
styleId: computeId(id),
|
|
482
|
+
rules: Array.isArray(css) ? css : [
|
|
483
|
+
css
|
|
484
|
+
]
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
/**
|
|
488
|
+
* selectFromServer
|
|
489
|
+
*
|
|
490
|
+
* Collects style tags from the document with id __jsx-XXX
|
|
491
|
+
*/ _proto.selectFromServer = function selectFromServer() {
|
|
492
|
+
var elements = Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]'));
|
|
493
|
+
return elements.reduce(function(acc, element) {
|
|
494
|
+
var id = element.id.slice(2);
|
|
495
|
+
acc[id] = element;
|
|
496
|
+
return acc;
|
|
497
|
+
}, {});
|
|
498
|
+
};
|
|
499
|
+
return StyleSheetRegistry;
|
|
500
|
+
}();
|
|
501
|
+
function invariant(condition, message) {
|
|
502
|
+
if (!condition) {
|
|
503
|
+
throw new Error("StyleSheetRegistry: " + message + ".");
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
var StyleSheetContext = /*#__PURE__*/ React$1.createContext(null);
|
|
507
|
+
StyleSheetContext.displayName = "StyleSheetContext";
|
|
508
|
+
function createStyleRegistry() {
|
|
509
|
+
return new StyleSheetRegistry();
|
|
510
|
+
}
|
|
511
|
+
function StyleRegistry(param) {
|
|
512
|
+
var configuredRegistry = param.registry, children = param.children;
|
|
513
|
+
var rootRegistry = React$1.useContext(StyleSheetContext);
|
|
514
|
+
var ref = React$1.useState(function() {
|
|
515
|
+
return rootRegistry || configuredRegistry || createStyleRegistry();
|
|
516
|
+
}), registry = ref[0];
|
|
517
|
+
return /*#__PURE__*/ React__default["default"].createElement(StyleSheetContext.Provider, {
|
|
518
|
+
value: registry
|
|
519
|
+
}, children);
|
|
520
|
+
}
|
|
521
|
+
function useStyleRegistry() {
|
|
522
|
+
return React$1.useContext(StyleSheetContext);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// Opt-into the new `useInsertionEffect` API in React 18, fallback to `useLayoutEffect`.
|
|
526
|
+
// https://github.com/reactwg/react-18/discussions/110
|
|
527
|
+
var useInsertionEffect = React__default["default"].useInsertionEffect || React$1.useLayoutEffect;
|
|
528
|
+
var defaultRegistry = typeof window !== "undefined" ? createStyleRegistry() : undefined;
|
|
529
|
+
function JSXStyle(props) {
|
|
530
|
+
var registry = defaultRegistry ? defaultRegistry : useStyleRegistry();
|
|
531
|
+
var insertionEffectCalled = React$1.useRef(false);
|
|
532
|
+
// `registry` might not exist while server-side rendering
|
|
533
|
+
if (!registry) {
|
|
534
|
+
return null;
|
|
535
|
+
}
|
|
536
|
+
if (typeof window === "undefined") {
|
|
537
|
+
registry.add(props);
|
|
538
|
+
return null;
|
|
539
|
+
}
|
|
540
|
+
useInsertionEffect(function() {
|
|
541
|
+
// ReactDOM removes all DOM during hydration in certain cases
|
|
542
|
+
if (!document.head) {
|
|
543
|
+
return;
|
|
544
|
+
}
|
|
545
|
+
registry.add(props);
|
|
546
|
+
insertionEffectCalled.current = true;
|
|
547
|
+
return function() {
|
|
548
|
+
insertionEffectCalled.current = false;
|
|
549
|
+
registry.remove(props);
|
|
550
|
+
};
|
|
551
|
+
}, [
|
|
552
|
+
props.id,
|
|
553
|
+
String(props.dynamic)
|
|
554
|
+
]);
|
|
555
|
+
React$1.useLayoutEffect(function() {
|
|
556
|
+
if (!document.head || insertionEffectCalled.current) {
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
registry.add(props);
|
|
560
|
+
return function() {
|
|
561
|
+
registry.remove(props);
|
|
562
|
+
};
|
|
563
|
+
// props.children can be string[], will be striped since id is identical
|
|
564
|
+
}, [
|
|
565
|
+
props.id,
|
|
566
|
+
String(props.dynamic)
|
|
567
|
+
]);
|
|
568
|
+
return null;
|
|
569
|
+
}
|
|
570
|
+
JSXStyle.dynamic = function(info) {
|
|
571
|
+
return info.map(function(tagInfo) {
|
|
572
|
+
var baseId = tagInfo[0];
|
|
573
|
+
var props = tagInfo[1];
|
|
574
|
+
return computeId(baseId, props);
|
|
575
|
+
}).join(" ");
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
index.StyleRegistry = StyleRegistry;
|
|
579
|
+
index.createStyleRegistry = createStyleRegistry;
|
|
580
|
+
index.style = JSXStyle;
|
|
581
|
+
index.useStyleRegistry = useStyleRegistry;
|
|
582
|
+
return index;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
var style;
|
|
586
|
+
var hasRequiredStyle;
|
|
587
|
+
|
|
588
|
+
function requireStyle () {
|
|
589
|
+
if (hasRequiredStyle) return style;
|
|
590
|
+
hasRequiredStyle = 1;
|
|
591
|
+
style = requireIndex().style;
|
|
592
|
+
return style;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
var styleExports = requireStyle();
|
|
596
|
+
var _JSXStyle = /*@__PURE__*/getDefaultExportFromCjs(styleExports);
|
|
597
|
+
|
|
598
|
+
var countries = [
|
|
599
|
+
{
|
|
600
|
+
code: "AD",
|
|
601
|
+
label: "Andorra",
|
|
602
|
+
phone: "+376"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
code: "AE",
|
|
606
|
+
label: "United Arab Emirates",
|
|
607
|
+
phone: "+971"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
code: "AF",
|
|
611
|
+
label: "Afghanistan",
|
|
612
|
+
phone: "+93"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
code: "AG",
|
|
616
|
+
label: "Antigua and Barbuda",
|
|
617
|
+
phone: "+1-268"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
code: "AI",
|
|
621
|
+
label: "Anguilla",
|
|
622
|
+
phone: "+1-264"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
code: "AL",
|
|
626
|
+
label: "Albania",
|
|
627
|
+
phone: "+355"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
code: "AM",
|
|
631
|
+
label: "Armenia",
|
|
632
|
+
phone: "+374"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
code: "AO",
|
|
636
|
+
label: "Angola",
|
|
637
|
+
phone: "+244"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
code: "AQ",
|
|
641
|
+
label: "Antarctica",
|
|
642
|
+
phone: "+672"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
code: "AR",
|
|
646
|
+
label: "Argentina",
|
|
647
|
+
phone: "+54"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
code: "AS",
|
|
651
|
+
label: "American Samoa",
|
|
652
|
+
phone: "+1-684"
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
code: "AT",
|
|
656
|
+
label: "Austria",
|
|
657
|
+
phone: "+43"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
code: "AU",
|
|
661
|
+
label: "Australia",
|
|
662
|
+
phone: "+61",
|
|
663
|
+
suggested: true
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
code: "AW",
|
|
667
|
+
label: "Aruba",
|
|
668
|
+
phone: "+297"
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
code: "AX",
|
|
672
|
+
label: "Alland Islands",
|
|
673
|
+
phone: "+358"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
code: "AZ",
|
|
677
|
+
label: "Azerbaijan",
|
|
678
|
+
phone: "+994"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
code: "BA",
|
|
682
|
+
label: "Bosnia and Herzegovina",
|
|
683
|
+
phone: "+387"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
code: "BB",
|
|
687
|
+
label: "Barbados",
|
|
688
|
+
phone: "+1-246"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
code: "BD",
|
|
692
|
+
label: "Bangladesh",
|
|
693
|
+
phone: "+880"
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
code: "BE",
|
|
697
|
+
label: "Belgium",
|
|
698
|
+
phone: "+32"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
code: "BF",
|
|
702
|
+
label: "Burkina Faso",
|
|
703
|
+
phone: "+226"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
code: "BG",
|
|
707
|
+
label: "Bulgaria",
|
|
708
|
+
phone: "+359"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
code: "BH",
|
|
712
|
+
label: "Bahrain",
|
|
713
|
+
phone: "+973"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
code: "BI",
|
|
717
|
+
label: "Burundi",
|
|
718
|
+
phone: "+257"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
code: "BJ",
|
|
722
|
+
label: "Benin",
|
|
723
|
+
phone: "+229"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
code: "BL",
|
|
727
|
+
label: "Saint Barthelemy",
|
|
728
|
+
phone: "+590"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
code: "BM",
|
|
732
|
+
label: "Bermuda",
|
|
733
|
+
phone: "+1-441"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
code: "BN",
|
|
737
|
+
label: "Brunei Darussalam",
|
|
738
|
+
phone: "+673"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
code: "BO",
|
|
742
|
+
label: "Bolivia",
|
|
743
|
+
phone: "+591"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
code: "BR",
|
|
747
|
+
label: "Brazil",
|
|
748
|
+
phone: "+55"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
code: "BS",
|
|
752
|
+
label: "Bahamas",
|
|
753
|
+
phone: "+1-242"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
code: "BT",
|
|
757
|
+
label: "Bhutan",
|
|
758
|
+
phone: "+975"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
code: "BV",
|
|
762
|
+
label: "Bouvet Island",
|
|
763
|
+
phone: "+47"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
code: "BW",
|
|
767
|
+
label: "Botswana",
|
|
768
|
+
phone: "+267"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
code: "BY",
|
|
772
|
+
label: "Belarus",
|
|
773
|
+
phone: "+375"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
code: "BZ",
|
|
777
|
+
label: "Belize",
|
|
778
|
+
phone: "+501"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
code: "CA",
|
|
782
|
+
label: "Canada",
|
|
783
|
+
phone: "+1",
|
|
784
|
+
suggested: true
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
code: "CC",
|
|
788
|
+
label: "Cocos (Keeling) Islands",
|
|
789
|
+
phone: "+61"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
code: "CD",
|
|
793
|
+
label: "Congo, Democratic Republic of the",
|
|
794
|
+
phone: "+243"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
code: "CF",
|
|
798
|
+
label: "Central African Republic",
|
|
799
|
+
phone: "+236"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
code: "CG",
|
|
803
|
+
label: "Congo, Republic of the",
|
|
804
|
+
phone: "+242"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
code: "CH",
|
|
808
|
+
label: "Switzerland",
|
|
809
|
+
phone: "+41"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
code: "CI",
|
|
813
|
+
label: "Cote d'Ivoire",
|
|
814
|
+
phone: "+225"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
code: "CK",
|
|
818
|
+
label: "Cook Islands",
|
|
819
|
+
phone: "+682"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
code: "CL",
|
|
823
|
+
label: "Chile",
|
|
824
|
+
phone: "+56"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
code: "CM",
|
|
828
|
+
label: "Cameroon",
|
|
829
|
+
phone: "+237"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
code: "CN",
|
|
833
|
+
label: "China",
|
|
834
|
+
phone: "+86"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
code: "CO",
|
|
838
|
+
label: "Colombia",
|
|
839
|
+
phone: "+57"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
code: "CR",
|
|
843
|
+
label: "Costa Rica",
|
|
844
|
+
phone: "+506"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
code: "CU",
|
|
848
|
+
label: "Cuba",
|
|
849
|
+
phone: "+53"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
code: "CV",
|
|
853
|
+
label: "Cape Verde",
|
|
854
|
+
phone: "+238"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
code: "CW",
|
|
858
|
+
label: "Curacao",
|
|
859
|
+
phone: "+599"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
code: "CX",
|
|
863
|
+
label: "Christmas Island",
|
|
864
|
+
phone: "+61"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
code: "CY",
|
|
868
|
+
label: "Cyprus",
|
|
869
|
+
phone: "+357"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
code: "CZ",
|
|
873
|
+
label: "Czech Republic",
|
|
874
|
+
phone: "+420"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
code: "DE",
|
|
878
|
+
label: "Germany",
|
|
879
|
+
phone: "+49",
|
|
880
|
+
suggested: true
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
code: "DJ",
|
|
884
|
+
label: "Djibouti",
|
|
885
|
+
phone: "+253"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
code: "DK",
|
|
889
|
+
label: "Denmark",
|
|
890
|
+
phone: "+45"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
code: "DM",
|
|
894
|
+
label: "Dominica",
|
|
895
|
+
phone: "+1-767"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
code: "DO",
|
|
899
|
+
label: "Dominican Republic",
|
|
900
|
+
phone: "+1-809"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
code: "DZ",
|
|
904
|
+
label: "Algeria",
|
|
905
|
+
phone: "+213"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
code: "EC",
|
|
909
|
+
label: "Ecuador",
|
|
910
|
+
phone: "+593"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
code: "EE",
|
|
914
|
+
label: "Estonia",
|
|
915
|
+
phone: "+372"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
code: "EG",
|
|
919
|
+
label: "Egypt",
|
|
920
|
+
phone: "+20"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
code: "EH",
|
|
924
|
+
label: "Western Sahara",
|
|
925
|
+
phone: "+212"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
code: "ER",
|
|
929
|
+
label: "Eritrea",
|
|
930
|
+
phone: "+291"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
code: "ES",
|
|
934
|
+
label: "Spain",
|
|
935
|
+
phone: "+34"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
code: "ET",
|
|
939
|
+
label: "Ethiopia",
|
|
940
|
+
phone: "+251"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
code: "FI",
|
|
944
|
+
label: "Finland",
|
|
945
|
+
phone: "+358"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
code: "FJ",
|
|
949
|
+
label: "Fiji",
|
|
950
|
+
phone: "+679"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
code: "FK",
|
|
954
|
+
label: "Falkland Islands (Malvinas)",
|
|
955
|
+
phone: "+500"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
code: "FM",
|
|
959
|
+
label: "Micronesia, Federated States of",
|
|
960
|
+
phone: "+691"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
code: "FO",
|
|
964
|
+
label: "Faroe Islands",
|
|
965
|
+
phone: "+298"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
code: "FR",
|
|
969
|
+
label: "France",
|
|
970
|
+
phone: "+33",
|
|
971
|
+
suggested: true
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
code: "GA",
|
|
975
|
+
label: "Gabon",
|
|
976
|
+
phone: "+241"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
code: "GB",
|
|
980
|
+
label: "United Kingdom",
|
|
981
|
+
phone: "+44"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
code: "GD",
|
|
985
|
+
label: "Grenada",
|
|
986
|
+
phone: "+1-473"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
code: "GE",
|
|
990
|
+
label: "Georgia",
|
|
991
|
+
phone: "+995"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
code: "GF",
|
|
995
|
+
label: "French Guiana",
|
|
996
|
+
phone: "+594"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
code: "GG",
|
|
1000
|
+
label: "Guernsey",
|
|
1001
|
+
phone: "+44"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
code: "GH",
|
|
1005
|
+
label: "Ghana",
|
|
1006
|
+
phone: "+233"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
code: "GI",
|
|
1010
|
+
label: "Gibraltar",
|
|
1011
|
+
phone: "+350"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
code: "GL",
|
|
1015
|
+
label: "Greenland",
|
|
1016
|
+
phone: "+299"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
code: "GM",
|
|
1020
|
+
label: "Gambia",
|
|
1021
|
+
phone: "+220"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
code: "GN",
|
|
1025
|
+
label: "Guinea",
|
|
1026
|
+
phone: "+224"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
code: "GP",
|
|
1030
|
+
label: "Guadeloupe",
|
|
1031
|
+
phone: "+590"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
code: "GQ",
|
|
1035
|
+
label: "Equatorial Guinea",
|
|
1036
|
+
phone: "+240"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
code: "GR",
|
|
1040
|
+
label: "Greece",
|
|
1041
|
+
phone: "+30"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
code: "GS",
|
|
1045
|
+
label: "South Georgia and the South Sandwich Islands",
|
|
1046
|
+
phone: "+500"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
code: "GT",
|
|
1050
|
+
label: "Guatemala",
|
|
1051
|
+
phone: "+502"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
code: "GU",
|
|
1055
|
+
label: "Guam",
|
|
1056
|
+
phone: "+1-671"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
code: "GW",
|
|
1060
|
+
label: "Guinea-Bissau",
|
|
1061
|
+
phone: "+245"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
code: "GY",
|
|
1065
|
+
label: "Guyana",
|
|
1066
|
+
phone: "+592"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
code: "HK",
|
|
1070
|
+
label: "Hong Kong",
|
|
1071
|
+
phone: "+852"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
code: "HM",
|
|
1075
|
+
label: "Heard Island and McDonald Islands",
|
|
1076
|
+
phone: "+672"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
code: "HN",
|
|
1080
|
+
label: "Honduras",
|
|
1081
|
+
phone: "+504"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
code: "HR",
|
|
1085
|
+
label: "Croatia",
|
|
1086
|
+
phone: "+385"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
code: "HT",
|
|
1090
|
+
label: "Haiti",
|
|
1091
|
+
phone: "+509"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
code: "HU",
|
|
1095
|
+
label: "Hungary",
|
|
1096
|
+
phone: "+36"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
code: "ID",
|
|
1100
|
+
label: "Indonesia",
|
|
1101
|
+
phone: "+62"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
code: "IE",
|
|
1105
|
+
label: "Ireland",
|
|
1106
|
+
phone: "+353"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
code: "IL",
|
|
1110
|
+
label: "Israel",
|
|
1111
|
+
phone: "+972"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
code: "IM",
|
|
1115
|
+
label: "Isle of Man",
|
|
1116
|
+
phone: "+44"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
code: "IN",
|
|
1120
|
+
label: "India",
|
|
1121
|
+
phone: "+91"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
code: "IO",
|
|
1125
|
+
label: "British Indian Ocean Territory",
|
|
1126
|
+
phone: "+246"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
code: "IQ",
|
|
1130
|
+
label: "Iraq",
|
|
1131
|
+
phone: "+964"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
code: "IR",
|
|
1135
|
+
label: "Iran, Islamic Republic of",
|
|
1136
|
+
phone: "+98"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
code: "IS",
|
|
1140
|
+
label: "Iceland",
|
|
1141
|
+
phone: "+354"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
code: "IT",
|
|
1145
|
+
label: "Italy",
|
|
1146
|
+
phone: "+39"
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
code: "JE",
|
|
1150
|
+
label: "Jersey",
|
|
1151
|
+
phone: "+44"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
code: "JM",
|
|
1155
|
+
label: "Jamaica",
|
|
1156
|
+
phone: "+1-876"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
code: "JO",
|
|
1160
|
+
label: "Jordan",
|
|
1161
|
+
phone: "+962"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
code: "JP",
|
|
1165
|
+
label: "Japan",
|
|
1166
|
+
phone: "+81",
|
|
1167
|
+
suggested: true
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
code: "KE",
|
|
1171
|
+
label: "Kenya",
|
|
1172
|
+
phone: "+254"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
code: "KG",
|
|
1176
|
+
label: "Kyrgyzstan",
|
|
1177
|
+
phone: "+996"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
code: "KH",
|
|
1181
|
+
label: "Cambodia",
|
|
1182
|
+
phone: "+855"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
code: "KI",
|
|
1186
|
+
label: "Kiribati",
|
|
1187
|
+
phone: "+686"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
code: "KM",
|
|
1191
|
+
label: "Comoros",
|
|
1192
|
+
phone: "+269"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
code: "KN",
|
|
1196
|
+
label: "Saint Kitts and Nevis",
|
|
1197
|
+
phone: "+1-869"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
code: "KP",
|
|
1201
|
+
label: "Korea, Democratic People's Republic of",
|
|
1202
|
+
phone: "+850"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
code: "KR",
|
|
1206
|
+
label: "Korea, Republic of",
|
|
1207
|
+
phone: "+82"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
code: "KW",
|
|
1211
|
+
label: "Kuwait",
|
|
1212
|
+
phone: "+965"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
code: "KY",
|
|
1216
|
+
label: "Cayman Islands",
|
|
1217
|
+
phone: "+1-345"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
code: "KZ",
|
|
1221
|
+
label: "Kazakhstan",
|
|
1222
|
+
phone: "+7"
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
code: "LA",
|
|
1226
|
+
label: "Lao People's Democratic Republic",
|
|
1227
|
+
phone: "+856"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
code: "LB",
|
|
1231
|
+
label: "Lebanon",
|
|
1232
|
+
phone: "+961"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
code: "LC",
|
|
1236
|
+
label: "Saint Lucia",
|
|
1237
|
+
phone: "+1-758"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
code: "LI",
|
|
1241
|
+
label: "Liechtenstein",
|
|
1242
|
+
phone: "+423"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
code: "LK",
|
|
1246
|
+
label: "Sri Lanka",
|
|
1247
|
+
phone: "+94"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
code: "LR",
|
|
1251
|
+
label: "Liberia",
|
|
1252
|
+
phone: "+231"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
code: "LS",
|
|
1256
|
+
label: "Lesotho",
|
|
1257
|
+
phone: "+266"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
code: "LT",
|
|
1261
|
+
label: "Lithuania",
|
|
1262
|
+
phone: "+370"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
code: "LU",
|
|
1266
|
+
label: "Luxembourg",
|
|
1267
|
+
phone: "+352"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
code: "LV",
|
|
1271
|
+
label: "Latvia",
|
|
1272
|
+
phone: "+371"
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
code: "LY",
|
|
1276
|
+
label: "Libya",
|
|
1277
|
+
phone: "+218"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
code: "MA",
|
|
1281
|
+
label: "Morocco",
|
|
1282
|
+
phone: "+212"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
code: "MC",
|
|
1286
|
+
label: "Monaco",
|
|
1287
|
+
phone: "+377"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
code: "MD",
|
|
1291
|
+
label: "Moldova, Republic of",
|
|
1292
|
+
phone: "+373"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
code: "ME",
|
|
1296
|
+
label: "Montenegro",
|
|
1297
|
+
phone: "+382"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
code: "MF",
|
|
1301
|
+
label: "Saint Martin (French part)",
|
|
1302
|
+
phone: "+590"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
code: "MG",
|
|
1306
|
+
label: "Madagascar",
|
|
1307
|
+
phone: "+261"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
code: "MH",
|
|
1311
|
+
label: "Marshall Islands",
|
|
1312
|
+
phone: "+692"
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
code: "MK",
|
|
1316
|
+
label: "Macedonia, the Former Yugoslav Republic of",
|
|
1317
|
+
phone: "+389"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
code: "ML",
|
|
1321
|
+
label: "Mali",
|
|
1322
|
+
phone: "+223"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
code: "MM",
|
|
1326
|
+
label: "Myanmar",
|
|
1327
|
+
phone: "+95"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
code: "MN",
|
|
1331
|
+
label: "Mongolia",
|
|
1332
|
+
phone: "+976"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
code: "MO",
|
|
1336
|
+
label: "Macao",
|
|
1337
|
+
phone: "+853"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
code: "MP",
|
|
1341
|
+
label: "Northern Mariana Islands",
|
|
1342
|
+
phone: "+1-670"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
code: "MQ",
|
|
1346
|
+
label: "Martinique",
|
|
1347
|
+
phone: "+596"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
code: "MR",
|
|
1351
|
+
label: "Mauritania",
|
|
1352
|
+
phone: "+222"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
code: "MS",
|
|
1356
|
+
label: "Montserrat",
|
|
1357
|
+
phone: "+1-664"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
code: "MT",
|
|
1361
|
+
label: "Malta",
|
|
1362
|
+
phone: "+356"
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
code: "MU",
|
|
1366
|
+
label: "Mauritius",
|
|
1367
|
+
phone: "+230"
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
code: "MV",
|
|
1371
|
+
label: "Maldives",
|
|
1372
|
+
phone: "+960"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
code: "MW",
|
|
1376
|
+
label: "Malawi",
|
|
1377
|
+
phone: "+265"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
code: "MX",
|
|
1381
|
+
label: "Mexico",
|
|
1382
|
+
phone: "+52"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
code: "MY",
|
|
1386
|
+
label: "Malaysia",
|
|
1387
|
+
phone: "+60"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
code: "MZ",
|
|
1391
|
+
label: "Mozambique",
|
|
1392
|
+
phone: "+258"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
code: "NA",
|
|
1396
|
+
label: "Namibia",
|
|
1397
|
+
phone: "+264"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
code: "NC",
|
|
1401
|
+
label: "New Caledonia",
|
|
1402
|
+
phone: "+687"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
code: "NE",
|
|
1406
|
+
label: "Niger",
|
|
1407
|
+
phone: "+227"
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
code: "NF",
|
|
1411
|
+
label: "Norfolk Island",
|
|
1412
|
+
phone: "+672"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
code: "NG",
|
|
1416
|
+
label: "Nigeria",
|
|
1417
|
+
phone: "+234"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
code: "NI",
|
|
1421
|
+
label: "Nicaragua",
|
|
1422
|
+
phone: "+505"
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
code: "NL",
|
|
1426
|
+
label: "Netherlands",
|
|
1427
|
+
phone: "+31"
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
code: "NO",
|
|
1431
|
+
label: "Norway",
|
|
1432
|
+
phone: "+47"
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
code: "NP",
|
|
1436
|
+
label: "Nepal",
|
|
1437
|
+
phone: "+977"
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
code: "NR",
|
|
1441
|
+
label: "Nauru",
|
|
1442
|
+
phone: "+674"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
code: "NU",
|
|
1446
|
+
label: "Niue",
|
|
1447
|
+
phone: "+683"
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
code: "NZ",
|
|
1451
|
+
label: "New Zealand",
|
|
1452
|
+
phone: "+64"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
code: "OM",
|
|
1456
|
+
label: "Oman",
|
|
1457
|
+
phone: "+968"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
code: "PA",
|
|
1461
|
+
label: "Panama",
|
|
1462
|
+
phone: "+507"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
code: "PE",
|
|
1466
|
+
label: "Peru",
|
|
1467
|
+
phone: "+51"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
code: "PF",
|
|
1471
|
+
label: "French Polynesia",
|
|
1472
|
+
phone: "+689"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
code: "PG",
|
|
1476
|
+
label: "Papua New Guinea",
|
|
1477
|
+
phone: "+675"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
code: "PH",
|
|
1481
|
+
label: "Philippines",
|
|
1482
|
+
phone: "+63"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
code: "PK",
|
|
1486
|
+
label: "Pakistan",
|
|
1487
|
+
phone: "+92"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
code: "PL",
|
|
1491
|
+
label: "Poland",
|
|
1492
|
+
phone: "+48"
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
code: "PM",
|
|
1496
|
+
label: "Saint Pierre and Miquelon",
|
|
1497
|
+
phone: "+508"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
code: "PN",
|
|
1501
|
+
label: "Pitcairn",
|
|
1502
|
+
phone: "+870"
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
code: "PR",
|
|
1506
|
+
label: "Puerto Rico",
|
|
1507
|
+
phone: "+1"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
code: "PS",
|
|
1511
|
+
label: "Palestine, State of",
|
|
1512
|
+
phone: "+970"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
code: "PT",
|
|
1516
|
+
label: "Portugal",
|
|
1517
|
+
phone: "+351"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
code: "PW",
|
|
1521
|
+
label: "Palau",
|
|
1522
|
+
phone: "+680"
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
code: "PY",
|
|
1526
|
+
label: "Paraguay",
|
|
1527
|
+
phone: "+595"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
code: "QA",
|
|
1531
|
+
label: "Qatar",
|
|
1532
|
+
phone: "+974"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
code: "RE",
|
|
1536
|
+
label: "Reunion",
|
|
1537
|
+
phone: "+262"
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
code: "RO",
|
|
1541
|
+
label: "Romania",
|
|
1542
|
+
phone: "+40"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
code: "RS",
|
|
1546
|
+
label: "Serbia",
|
|
1547
|
+
phone: "+381"
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
code: "RU",
|
|
1551
|
+
label: "Russian Federation",
|
|
1552
|
+
phone: "+7"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
code: "RW",
|
|
1556
|
+
label: "Rwanda",
|
|
1557
|
+
phone: "+250"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
code: "SA",
|
|
1561
|
+
label: "Saudi Arabia",
|
|
1562
|
+
phone: "+966"
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
code: "SB",
|
|
1566
|
+
label: "Solomon Islands",
|
|
1567
|
+
phone: "+677"
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
code: "SC",
|
|
1571
|
+
label: "Seychelles",
|
|
1572
|
+
phone: "+248"
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
code: "SD",
|
|
1576
|
+
label: "Sudan",
|
|
1577
|
+
phone: "+249"
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
code: "SE",
|
|
1581
|
+
label: "Sweden",
|
|
1582
|
+
phone: "+46"
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
code: "SG",
|
|
1586
|
+
label: "Singapore",
|
|
1587
|
+
phone: "+65"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
code: "SH",
|
|
1591
|
+
label: "Saint Helena",
|
|
1592
|
+
phone: "+290"
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
code: "SI",
|
|
1596
|
+
label: "Slovenia",
|
|
1597
|
+
phone: "+386"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
code: "SJ",
|
|
1601
|
+
label: "Svalbard and Jan Mayen",
|
|
1602
|
+
phone: "+47"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
code: "SK",
|
|
1606
|
+
label: "Slovakia",
|
|
1607
|
+
phone: "+421"
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
code: "SL",
|
|
1611
|
+
label: "Sierra Leone",
|
|
1612
|
+
phone: "+232"
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
code: "SM",
|
|
1616
|
+
label: "San Marino",
|
|
1617
|
+
phone: "+378"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
code: "SN",
|
|
1621
|
+
label: "Senegal",
|
|
1622
|
+
phone: "+221"
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
code: "SO",
|
|
1626
|
+
label: "Somalia",
|
|
1627
|
+
phone: "+252"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
code: "SR",
|
|
1631
|
+
label: "Suriname",
|
|
1632
|
+
phone: "+597"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
code: "SS",
|
|
1636
|
+
label: "South Sudan",
|
|
1637
|
+
phone: "+211"
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
code: "ST",
|
|
1641
|
+
label: "Sao Tome and Principe",
|
|
1642
|
+
phone: "+239"
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
code: "SV",
|
|
1646
|
+
label: "El Salvador",
|
|
1647
|
+
phone: "+503"
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
code: "SX",
|
|
1651
|
+
label: "Sint Maarten (Dutch part)",
|
|
1652
|
+
phone: "+1-721"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
code: "SY",
|
|
1656
|
+
label: "Syrian Arab Republic",
|
|
1657
|
+
phone: "+963"
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
code: "SZ",
|
|
1661
|
+
label: "Swaziland",
|
|
1662
|
+
phone: "+268"
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
code: "TC",
|
|
1666
|
+
label: "Turks and Caicos Islands",
|
|
1667
|
+
phone: "+1-649"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
code: "TD",
|
|
1671
|
+
label: "Chad",
|
|
1672
|
+
phone: "+235"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
code: "TF",
|
|
1676
|
+
label: "French Southern Territories",
|
|
1677
|
+
phone: "+262"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
code: "TG",
|
|
1681
|
+
label: "Togo",
|
|
1682
|
+
phone: "+228"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
code: "TH",
|
|
1686
|
+
label: "Thailand",
|
|
1687
|
+
phone: "+66"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
code: "TJ",
|
|
1691
|
+
label: "Tajikistan",
|
|
1692
|
+
phone: "+992"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
code: "TK",
|
|
1696
|
+
label: "Tokelau",
|
|
1697
|
+
phone: "+690"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
code: "TL",
|
|
1701
|
+
label: "Timor-Leste",
|
|
1702
|
+
phone: "+670"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
code: "TM",
|
|
1706
|
+
label: "Turkmenistan",
|
|
1707
|
+
phone: "+993"
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
code: "TN",
|
|
1711
|
+
label: "Tunisia",
|
|
1712
|
+
phone: "+216"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
code: "TO",
|
|
1716
|
+
label: "Tonga",
|
|
1717
|
+
phone: "+676"
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
code: "TR",
|
|
1721
|
+
label: "Turkey",
|
|
1722
|
+
phone: "+90"
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
code: "TT",
|
|
1726
|
+
label: "Trinidad and Tobago",
|
|
1727
|
+
phone: "+1-868"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
code: "TV",
|
|
1731
|
+
label: "Tuvalu",
|
|
1732
|
+
phone: "+688"
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
code: "TW",
|
|
1736
|
+
label: "Taiwan, Province of China",
|
|
1737
|
+
phone: "+886"
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
code: "TZ",
|
|
1741
|
+
label: "United Republic of Tanzania",
|
|
1742
|
+
phone: "+255"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
code: "UA",
|
|
1746
|
+
label: "Ukraine",
|
|
1747
|
+
phone: "+380"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
code: "UG",
|
|
1751
|
+
label: "Uganda",
|
|
1752
|
+
phone: "+256"
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
code: "US",
|
|
1756
|
+
label: "United States",
|
|
1757
|
+
phone: "+1",
|
|
1758
|
+
suggested: true
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
code: "UY",
|
|
1762
|
+
label: "Uruguay",
|
|
1763
|
+
phone: "+598"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
code: "UZ",
|
|
1767
|
+
label: "Uzbekistan",
|
|
1768
|
+
phone: "+998"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
code: "VA",
|
|
1772
|
+
label: "Holy See (Vatican City State)",
|
|
1773
|
+
phone: "+379"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
code: "VC",
|
|
1777
|
+
label: "Saint Vincent and the Grenadines",
|
|
1778
|
+
phone: "+1-784"
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
code: "VE",
|
|
1782
|
+
label: "Venezuela",
|
|
1783
|
+
phone: "+58"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
code: "VG",
|
|
1787
|
+
label: "British Virgin Islands",
|
|
1788
|
+
phone: "+1-284"
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
code: "VI",
|
|
1792
|
+
label: "US Virgin Islands",
|
|
1793
|
+
phone: "+1-340"
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
code: "VN",
|
|
1797
|
+
label: "Vietnam",
|
|
1798
|
+
phone: "+84"
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
code: "VU",
|
|
1802
|
+
label: "Vanuatu",
|
|
1803
|
+
phone: "+678"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
code: "WF",
|
|
1807
|
+
label: "Wallis and Futuna",
|
|
1808
|
+
phone: "+681"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
code: "WS",
|
|
1812
|
+
label: "Samoa",
|
|
1813
|
+
phone: "+685"
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
code: "XK",
|
|
1817
|
+
label: "Kosovo",
|
|
1818
|
+
phone: "+383"
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
code: "YE",
|
|
1822
|
+
label: "Yemen",
|
|
1823
|
+
phone: "+967"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
code: "YT",
|
|
1827
|
+
label: "Mayotte",
|
|
1828
|
+
phone: "+262"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
code: "ZA",
|
|
1832
|
+
label: "South Africa",
|
|
1833
|
+
phone: "+27"
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
code: "ZM",
|
|
1837
|
+
label: "Zambia",
|
|
1838
|
+
phone: "+260"
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
code: "ZW",
|
|
1842
|
+
label: "Zimbabwe",
|
|
1843
|
+
phone: "+263"
|
|
1844
|
+
}
|
|
1845
|
+
];
|
|
1846
|
+
|
|
1847
|
+
var PhoneInput = function PhoneInput(_ref) {
|
|
1848
|
+
var onChange = _ref.onChange,
|
|
1849
|
+
_ref$value = _ref.value,
|
|
1850
|
+
value = _ref$value === void 0 ? '' : _ref$value,
|
|
1851
|
+
country = _ref.country,
|
|
1852
|
+
_ref$placeholder = _ref.placeholder,
|
|
1853
|
+
placeholder = _ref$placeholder === void 0 ? 'Enter phone number' : _ref$placeholder,
|
|
1854
|
+
_ref$color = _ref.color,
|
|
1855
|
+
_color = _ref$color === void 0 ? 'default' : _ref$color;
|
|
1856
|
+
var theme = useTheme();
|
|
1857
|
+
var defaultValue = country ? countries.findIndex(function (cn) {
|
|
1858
|
+
return cn.code == country;
|
|
1859
|
+
}) : 103;
|
|
1860
|
+
var _useState = React.useState(countries[defaultValue]),
|
|
1861
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1862
|
+
selectedCountry = _useState2[0],
|
|
1863
|
+
setSelectedCountry = _useState2[1];
|
|
1864
|
+
var _useState3 = React.useState(value),
|
|
1865
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1866
|
+
phoneNumber = _useState4[0],
|
|
1867
|
+
setPhoneNumber = _useState4[1];
|
|
1868
|
+
var _useState5 = React.useState(false),
|
|
1869
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
1870
|
+
isFocused = _useState6[0],
|
|
1871
|
+
setIsFocused = _useState6[1];
|
|
1872
|
+
var _useState7 = React.useState(false),
|
|
1873
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
1874
|
+
dropdownOpen = _useState8[0],
|
|
1875
|
+
setDropdownOpen = _useState8[1];
|
|
1876
|
+
var _useState9 = React.useState(''),
|
|
1877
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
1878
|
+
searchTerm = _useState0[0],
|
|
1879
|
+
setSearchTerm = _useState0[1];
|
|
1880
|
+
var dropdownRef = React.useRef(null);
|
|
1881
|
+
var _useMemo = React.useMemo(function () {
|
|
1882
|
+
return styles.getColors(theme.palette, _color);
|
|
1883
|
+
}, [theme.palette]),
|
|
1884
|
+
borderColor = _useMemo.borderColor,
|
|
1885
|
+
hoverBorder = _useMemo.hoverBorder;
|
|
1886
|
+
var handleSelectCountry = function handleSelectCountry(country) {
|
|
1887
|
+
setSelectedCountry(country);
|
|
1888
|
+
setDropdownOpen(false);
|
|
1889
|
+
setSearchTerm('');
|
|
1890
|
+
if (onChange) onChange("".concat(country.code, ":").concat(phoneNumber));
|
|
1891
|
+
};
|
|
1892
|
+
var handlePhoneChange = function handlePhoneChange(e) {
|
|
1893
|
+
var value = e.target.value.replace(/[^\d]/g, '');
|
|
1894
|
+
setPhoneNumber(value);
|
|
1895
|
+
if (onChange) onChange("".concat(selectedCountry.code).concat(value));
|
|
1896
|
+
};
|
|
1897
|
+
var handleClickOutside = function handleClickOutside(e) {
|
|
1898
|
+
if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
|
|
1899
|
+
setDropdownOpen(false);
|
|
1900
|
+
setSearchTerm('');
|
|
1901
|
+
}
|
|
1902
|
+
};
|
|
1903
|
+
React.useEffect(function () {
|
|
1904
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
1905
|
+
return function () {
|
|
1906
|
+
return document.removeEventListener('mousedown', handleClickOutside);
|
|
1907
|
+
};
|
|
1908
|
+
}, []);
|
|
1909
|
+
var filteredCountries = countries.filter(function (c) {
|
|
1910
|
+
return "".concat(c.label, " ").concat(c.code, " ").concat(c.phone).toLowerCase().includes(searchTerm.toLowerCase());
|
|
1911
|
+
});
|
|
1912
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1913
|
+
ref: dropdownRef,
|
|
1914
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "phone-input-container ".concat(isFocused ? 'focused' : '')
|
|
1915
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1916
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "input-wrapper"
|
|
1917
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1918
|
+
onClick: function onClick() {
|
|
1919
|
+
return setDropdownOpen(!dropdownOpen);
|
|
1920
|
+
},
|
|
1921
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-toggle"
|
|
1922
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1923
|
+
style: {
|
|
1924
|
+
display: 'flex',
|
|
1925
|
+
alignItems: 'center',
|
|
1926
|
+
gap: 5
|
|
1927
|
+
},
|
|
1928
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
1929
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
1930
|
+
loading: "lazy",
|
|
1931
|
+
width: "23",
|
|
1932
|
+
height: "23",
|
|
1933
|
+
src: "https://flagcdn.com/w20/".concat(selectedCountry.code.toLowerCase(), ".png"),
|
|
1934
|
+
srcSet: "https://flagcdn.com/w40/".concat(selectedCountry.code.toLowerCase(), ".png 2x"),
|
|
1935
|
+
alt: "Flag of ".concat(selectedCountry.label),
|
|
1936
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
1937
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
1938
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
1939
|
+
}, selectedCountry.phone))), /*#__PURE__*/React.createElement("input", {
|
|
1940
|
+
type: "tel",
|
|
1941
|
+
placeholder: placeholder,
|
|
1942
|
+
value: phoneNumber,
|
|
1943
|
+
onChange: handlePhoneChange,
|
|
1944
|
+
onFocus: function onFocus() {
|
|
1945
|
+
return setIsFocused(true);
|
|
1946
|
+
},
|
|
1947
|
+
onBlur: function onBlur() {
|
|
1948
|
+
return setIsFocused(false);
|
|
1949
|
+
},
|
|
1950
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "phone-input"
|
|
1951
|
+
})), dropdownOpen && /*#__PURE__*/React.createElement("div", {
|
|
1952
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown"
|
|
1953
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
1954
|
+
type: "text",
|
|
1955
|
+
placeholder: "Search country...",
|
|
1956
|
+
value: searchTerm,
|
|
1957
|
+
onChange: function onChange(e) {
|
|
1958
|
+
return setSearchTerm(e.target.value);
|
|
1959
|
+
},
|
|
1960
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "search-input"
|
|
1961
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1962
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "country-list"
|
|
1963
|
+
}, filteredCountries.length > 0 ? filteredCountries.map(function (c) {
|
|
1964
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1965
|
+
key: c.code,
|
|
1966
|
+
onClick: function onClick() {
|
|
1967
|
+
return handleSelectCountry(c);
|
|
1968
|
+
},
|
|
1969
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-item"
|
|
1970
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1971
|
+
style: {
|
|
1972
|
+
display: 'flex',
|
|
1973
|
+
alignItems: 'center',
|
|
1974
|
+
gap: 5
|
|
1975
|
+
},
|
|
1976
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
1977
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
1978
|
+
loading: "lazy",
|
|
1979
|
+
width: "23",
|
|
1980
|
+
height: "23",
|
|
1981
|
+
src: "https://flagcdn.com/w20/".concat(c.code.toLowerCase(), ".png"),
|
|
1982
|
+
srcSet: "https://flagcdn.com/w40/".concat(c.code.toLowerCase(), ".png 2x"),
|
|
1983
|
+
alt: "Flag of ".concat(c.label),
|
|
1984
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
1985
|
+
}), c.phone, " ", /*#__PURE__*/React.createElement("span", {
|
|
1986
|
+
style: {
|
|
1987
|
+
color: 'grey'
|
|
1988
|
+
},
|
|
1989
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
1990
|
+
}, c.label)));
|
|
1991
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
1992
|
+
className: _JSXStyle.dynamic([["785147617", [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-item disabled"
|
|
1993
|
+
}, "No results"))), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
1994
|
+
id: "785147617",
|
|
1995
|
+
dynamic: [hoverBorder, borderColor, borderColor, theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']
|
|
1996
|
+
}, ".phone-input-container.__jsx-style-dynamic-selector{position:relative;max-width:400px;}.phone-input-container.focused.__jsx-style-dynamic-selector{outline:1px solid ".concat(hoverBorder, ";border-radius:6px;}.input-wrapper.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid ").concat(borderColor, ";border-radius:6px;overflow:hidden;}.dropdown-toggle.__jsx-style-dynamic-selector{padding:7px 12px;border-radius:6px 0px 0px 6px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;border-right:1px solid ").concat(borderColor, ";}.phone-input.__jsx-style-dynamic-selector{-webkit-flex:1;-ms-flex:1;flex:1;padding:5px 10px;height:35px;background-color:transparent;font-size:14px;border:none;}.phone-input.__jsx-style-dynamic-selector:focus{outline:none;}.dropdown.__jsx-style-dynamic-selector{position:absolute;top:100%;left:0;width:100%;background:").concat(theme.type == 'dark' ? 'black' : 'white', ";border:1px solid ").concat(borderColor, ";border-radius:6px;margin-top:4px;z-index:999;box-shadow:0 4px 10px rgba(0,0,0,0.1);}.search-input.__jsx-style-dynamic-selector{width:100%;padding:8px 10px;border:none;background-color:transparent;border-bottom:1px solid ").concat(borderColor, ";font-size:14px;}.search-input.__jsx-style-dynamic-selector:focus{outline:none;}.country-list.__jsx-style-dynamic-selector{max-height:200px;overflow-y:auto;}.dropdown-item.__jsx-style-dynamic-selector{padding:10px;cursor:pointer;font-size:14px;}.dropdown-item.__jsx-style-dynamic-selector:hover{background:").concat(theme.type == 'dark' ? '#3a3d3d' : '#efefef', ";}.dropdown-item.disabled.__jsx-style-dynamic-selector{color:#888;cursor:default;}")));
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
exports.default = PhoneInput;
|