@calcom/atoms 1.0.20 → 1.0.21
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/{AddressInput-pyyFW0cs.js → AddressInput-JoQaGbRT.js} +9 -10
- package/dist/{AlbyPriceComponent-wC_n8bJa.js → AlbyPriceComponent-EPbQ6-Ch.js} +13 -14
- package/dist/{Card-AX0eZjOC.js → Card-y1TAfpoG.js} +12 -13
- package/dist/{DatePicker-pErY4gNZ.js → DatePicker-JD_V3fz2.js} +8 -9
- package/dist/{PhoneInput-6AZAVvaQ.js → PhoneInput-Am-blD_t.js} +120 -121
- package/dist/PoweredBy-KQOqSIbh.js +31 -0
- package/dist/UnpublishedEntity-3phZLMux.js +23 -0
- package/dist/cal-atoms.js +4 -4
- package/dist/cal-atoms.umd.cjs +7837 -0
- package/dist/{framer-features-eR2CxD7D.js → framer-features-QYUZb8Rn.js} +29 -29
- package/dist/{index-qlzlYQfG.js → index-SNl3aeux.js} +2 -2
- package/dist/index-_WKFJWoU.js +4 -0
- package/dist/{index-93QOtKl6.js → index-aQmnJ9l7.js} +3 -3
- package/dist/{index-Zmk7j2SL.js → index-jQVrN-br.js} +1 -1
- package/dist/{index-6PQ0n_zn.js → index-s72r9oDm.js} +23044 -22408
- package/dist/{index-Aw_S8xCP.js → index-x4lkDi7r.js} +23 -24
- package/dist/{isSupportedCountry-l4nZ7iA1.js → isSupportedCountry-CHPHKvcC.js} +1 -1
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/PoweredBy-LfOhjGas.js +0 -32
- package/dist/UnpublishedEntity-YVejQGGf.js +0 -24
- package/dist/index-2xQ1nwjF.js +0 -4
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import Lt, { useState as Rt, useEffect as zt } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
var Ut = function(Z) {
|
|
2
|
+
import { aK as Bt, aq as Gt, aC as $t, aJ as Vt } from "./index-s72r9oDm.js";
|
|
3
|
+
import { i as Kt } from "./isSupportedCountry-CHPHKvcC.js";
|
|
4
|
+
var qt = function(Z) {
|
|
6
5
|
var Q = {};
|
|
7
6
|
function l(u) {
|
|
8
7
|
if (Q[u])
|
|
@@ -93,8 +92,8 @@ var Ut = function(Z) {
|
|
|
93
92
|
if (R(b))
|
|
94
93
|
return NaN;
|
|
95
94
|
if (ke(b)) {
|
|
96
|
-
var
|
|
97
|
-
b = ke(
|
|
95
|
+
var U = typeof b.valueOf == "function" ? b.valueOf() : b;
|
|
96
|
+
b = ke(U) ? U + "" : U;
|
|
98
97
|
}
|
|
99
98
|
if (typeof b != "string")
|
|
100
99
|
return b === 0 ? b : +b;
|
|
@@ -103,12 +102,12 @@ var Ut = function(Z) {
|
|
|
103
102
|
return ue || se.test(b) ? te(b.slice(2), ue ? 2 : 8) : F.test(b) ? NaN : +b;
|
|
104
103
|
}(j)) === 1 / 0 || j === -1 / 0 ? 17976931348623157e292 * (j < 0 ? -1 : 1) : j == j ? j : 0 : j === 0 ? j : 0;
|
|
105
104
|
}
|
|
106
|
-
Z.exports = function(j, b,
|
|
105
|
+
Z.exports = function(j, b, U) {
|
|
107
106
|
var ue, G, le, K;
|
|
108
107
|
return j = (ue = j) == null ? "" : g(ue), G = function(Ce) {
|
|
109
108
|
var me = V(Ce), we = me % 1;
|
|
110
109
|
return me == me ? we ? me - we : me : 0;
|
|
111
|
-
}(
|
|
110
|
+
}(U), le = 0, K = j.length, G == G && (K !== void 0 && (G = G <= K ? G : K), le !== void 0 && (G = G >= le ? G : le)), U = G, b = g(b), j.slice(U, U + b.length) == b;
|
|
112
111
|
};
|
|
113
112
|
}).call(this, l(3));
|
|
114
113
|
}, function(Z, Q) {
|
|
@@ -132,7 +131,7 @@ var Ut = function(Z) {
|
|
|
132
131
|
this.set(E[0], E[1]);
|
|
133
132
|
}
|
|
134
133
|
}
|
|
135
|
-
function
|
|
134
|
+
function U(s) {
|
|
136
135
|
var y = -1, C = s ? s.length : 0;
|
|
137
136
|
for (this.clear(); ++y < C; ) {
|
|
138
137
|
var E = s[y];
|
|
@@ -221,21 +220,21 @@ var Ut = function(Z) {
|
|
|
221
220
|
return j ? y[s] !== void 0 : _e.call(y, s);
|
|
222
221
|
}, b.prototype.set = function(s, y) {
|
|
223
222
|
return this.__data__[s] = j && y === void 0 ? "__lodash_hash_undefined__" : y, this;
|
|
224
|
-
},
|
|
223
|
+
}, U.prototype.clear = function() {
|
|
225
224
|
this.__data__ = [];
|
|
226
|
-
},
|
|
225
|
+
}, U.prototype.delete = function(s) {
|
|
227
226
|
var y = this.__data__, C = G(y, s);
|
|
228
227
|
return !(C < 0) && (C == y.length - 1 ? y.pop() : R.call(y, C, 1), !0);
|
|
229
|
-
},
|
|
228
|
+
}, U.prototype.get = function(s) {
|
|
230
229
|
var y = this.__data__, C = G(y, s);
|
|
231
230
|
return C < 0 ? void 0 : y[C][1];
|
|
232
|
-
},
|
|
231
|
+
}, U.prototype.has = function(s) {
|
|
233
232
|
return G(this.__data__, s) > -1;
|
|
234
|
-
},
|
|
233
|
+
}, U.prototype.set = function(s, y) {
|
|
235
234
|
var C = this.__data__, E = G(C, s);
|
|
236
235
|
return E < 0 ? C.push([s, y]) : C[E][1] = y, this;
|
|
237
236
|
}, ue.prototype.clear = function() {
|
|
238
|
-
this.__data__ = { hash: new b(), map: new (V ||
|
|
237
|
+
this.__data__ = { hash: new b(), map: new (V || U)(), string: new b() };
|
|
239
238
|
}, ue.prototype.delete = function(s) {
|
|
240
239
|
return K(this, s).delete(s);
|
|
241
240
|
}, ue.prototype.get = function(s) {
|
|
@@ -259,8 +258,8 @@ var Ut = function(Z) {
|
|
|
259
258
|
if (typeof R == "number")
|
|
260
259
|
return R;
|
|
261
260
|
if (function(b) {
|
|
262
|
-
return typeof b == "symbol" || /* @__PURE__ */ function(
|
|
263
|
-
return !!
|
|
261
|
+
return typeof b == "symbol" || /* @__PURE__ */ function(U) {
|
|
262
|
+
return !!U && typeof U == "object";
|
|
264
263
|
}(b) && ve.call(b) == "[object Symbol]";
|
|
265
264
|
}(R))
|
|
266
265
|
return NaN;
|
|
@@ -275,12 +274,12 @@ var Ut = function(Z) {
|
|
|
275
274
|
return j || se.test(R) ? te(R.slice(2), j ? 2 : 8) : F.test(R) ? NaN : +R;
|
|
276
275
|
}
|
|
277
276
|
Z.exports = function(R, V, j) {
|
|
278
|
-
var b,
|
|
277
|
+
var b, U, ue, G, le, K, Ce = 0, me = !1, we = !1, s = !0;
|
|
279
278
|
if (typeof R != "function")
|
|
280
279
|
throw new TypeError("Expected a function");
|
|
281
280
|
function y(c) {
|
|
282
|
-
var x = b, A =
|
|
283
|
-
return b =
|
|
281
|
+
var x = b, A = U;
|
|
282
|
+
return b = U = void 0, Ce = c, G = R.apply(A, x);
|
|
284
283
|
}
|
|
285
284
|
function C(c) {
|
|
286
285
|
return Ce = c, le = setTimeout(fe, V), me ? y(c) : G;
|
|
@@ -299,11 +298,11 @@ var Ut = function(Z) {
|
|
|
299
298
|
}(c));
|
|
300
299
|
}
|
|
301
300
|
function Ae(c) {
|
|
302
|
-
return le = void 0, s && b ? y(c) : (b =
|
|
301
|
+
return le = void 0, s && b ? y(c) : (b = U = void 0, G);
|
|
303
302
|
}
|
|
304
303
|
function m() {
|
|
305
304
|
var c = _e(), x = E(c);
|
|
306
|
-
if (b = arguments,
|
|
305
|
+
if (b = arguments, U = this, K = c, x) {
|
|
307
306
|
if (le === void 0)
|
|
308
307
|
return C(K);
|
|
309
308
|
if (we)
|
|
@@ -312,7 +311,7 @@ var Ut = function(Z) {
|
|
|
312
311
|
return le === void 0 && (le = setTimeout(fe, V)), G;
|
|
313
312
|
}
|
|
314
313
|
return V = ke(V) || 0, g(j) && (me = !!j.leading, ue = (we = "maxWait" in j) ? Oe(ke(j.maxWait) || 0, V) : ue, s = "trailing" in j ? !!j.trailing : s), m.cancel = function() {
|
|
315
|
-
le !== void 0 && clearTimeout(le), Ce = 0, b = K =
|
|
314
|
+
le !== void 0 && clearTimeout(le), Ce = 0, b = K = U = le = void 0;
|
|
316
315
|
}, m.flush = function() {
|
|
317
316
|
return le === void 0 ? G : Ae(_e());
|
|
318
317
|
}, m;
|
|
@@ -322,9 +321,9 @@ var Ut = function(Z) {
|
|
|
322
321
|
(function(u, O) {
|
|
323
322
|
var F = "[object Arguments]", ie = "[object Map]", se = "[object Object]", te = "[object Set]", Se = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, be = /^\w*$/, ge = /^\./, ve = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Oe = /\\(\\)?/g, Ee = /^\[object .+?Constructor\]$/, _e = /^(?:0|[1-9]\d*)$/, g = {};
|
|
324
323
|
g["[object Float32Array]"] = g["[object Float64Array]"] = g["[object Int8Array]"] = g["[object Int16Array]"] = g["[object Int32Array]"] = g["[object Uint8Array]"] = g["[object Uint8ClampedArray]"] = g["[object Uint16Array]"] = g["[object Uint32Array]"] = !0, g[F] = g["[object Array]"] = g["[object ArrayBuffer]"] = g["[object Boolean]"] = g["[object DataView]"] = g["[object Date]"] = g["[object Error]"] = g["[object Function]"] = g[ie] = g["[object Number]"] = g[se] = g["[object RegExp]"] = g[te] = g["[object String]"] = g["[object WeakMap]"] = !1;
|
|
325
|
-
var ke = typeof u == "object" && u && u.Object === Object && u, R = typeof self == "object" && self && self.Object === Object && self, V = ke || R || Function("return this")(), j = Q && !Q.nodeType && Q, b = j && typeof O == "object" && O && !O.nodeType && O,
|
|
324
|
+
var ke = typeof u == "object" && u && u.Object === Object && u, R = typeof self == "object" && self && self.Object === Object && self, V = ke || R || Function("return this")(), j = Q && !Q.nodeType && Q, b = j && typeof O == "object" && O && !O.nodeType && O, U = b && b.exports === j && ke.process, ue = function() {
|
|
326
325
|
try {
|
|
327
|
-
return
|
|
326
|
+
return U && U.binding("util");
|
|
328
327
|
} catch {
|
|
329
328
|
}
|
|
330
329
|
}(), G = ue && ue.isTypedArray;
|
|
@@ -341,8 +340,8 @@ var Ut = function(Z) {
|
|
|
341
340
|
return !1;
|
|
342
341
|
}
|
|
343
342
|
function Ce(e, r, a, i, _) {
|
|
344
|
-
return _(e, function(w, I,
|
|
345
|
-
a = i ? (i = !1, w) : r(a, w, I,
|
|
343
|
+
return _(e, function(w, I, H) {
|
|
344
|
+
a = i ? (i = !1, w) : r(a, w, I, H);
|
|
346
345
|
}), a;
|
|
347
346
|
}
|
|
348
347
|
function me(e) {
|
|
@@ -368,7 +367,7 @@ var Ut = function(Z) {
|
|
|
368
367
|
}
|
|
369
368
|
var y, C, E, fe = Array.prototype, Ae = Function.prototype, m = Object.prototype, c = V["__core-js_shared__"], x = (y = /[^.]+$/.exec(c && c.keys && c.keys.IE_PROTO || "")) ? "Symbol(src)_1." + y : "", A = Ae.toString, f = m.hasOwnProperty, t = m.toString, z = RegExp("^" + A.call(f).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), M = V.Symbol, L = V.Uint8Array, re = m.propertyIsEnumerable, Y = fe.splice, ne = (C = Object.keys, E = Object, function(e) {
|
|
370
369
|
return C(E(e));
|
|
371
|
-
}), ce =
|
|
370
|
+
}), ce = Ue(V, "DataView"), de = Ue(V, "Map"), ae = Ue(V, "Promise"), n = Ue(V, "Set"), o = Ue(V, "WeakMap"), d = Ue(Object, "create"), k = $e(ce), N = $e(de), T = $e(ae), D = $e(n), q = $e(o), p = M ? M.prototype : void 0, S = p ? p.valueOf : void 0, P = p ? p.toString : void 0;
|
|
372
371
|
function h(e) {
|
|
373
372
|
var r = -1, a = e ? e.length : 0;
|
|
374
373
|
for (this.clear(); ++r < a; ) {
|
|
@@ -399,9 +398,9 @@ var Ut = function(Z) {
|
|
|
399
398
|
this.__data__ = new v(e);
|
|
400
399
|
}
|
|
401
400
|
function Te(e, r) {
|
|
402
|
-
var a = Le(e) || xt(e) ? function(I,
|
|
401
|
+
var a = Le(e) || xt(e) ? function(I, H) {
|
|
403
402
|
for (var ee = -1, $ = Array(I); ++ee < I; )
|
|
404
|
-
$[ee] =
|
|
403
|
+
$[ee] = H(ee);
|
|
405
404
|
return $;
|
|
406
405
|
}(e.length, String) : [], i = a.length, _ = !!i;
|
|
407
406
|
for (var w in e)
|
|
@@ -476,7 +475,7 @@ var Ut = function(Z) {
|
|
|
476
475
|
return a.set(e, r), this;
|
|
477
476
|
};
|
|
478
477
|
var Ge, pe = (Ge = function(e, r) {
|
|
479
|
-
return e &&
|
|
478
|
+
return e && qe(e, r, at);
|
|
480
479
|
}, function(e, r) {
|
|
481
480
|
if (e == null)
|
|
482
481
|
return e;
|
|
@@ -485,17 +484,17 @@ var Ut = function(Z) {
|
|
|
485
484
|
for (var a = e.length, i = -1, _ = Object(e); ++i < a && r(_[i], i, _) !== !1; )
|
|
486
485
|
;
|
|
487
486
|
return e;
|
|
488
|
-
}),
|
|
487
|
+
}), qe = /* @__PURE__ */ function(e) {
|
|
489
488
|
return function(r, a, i) {
|
|
490
|
-
for (var _ = -1, w = Object(r), I = i(r),
|
|
491
|
-
var ee = I[e ?
|
|
489
|
+
for (var _ = -1, w = Object(r), I = i(r), H = I.length; H--; ) {
|
|
490
|
+
var ee = I[e ? H : ++_];
|
|
492
491
|
if (a(w[ee], ee, w) === !1)
|
|
493
492
|
break;
|
|
494
493
|
}
|
|
495
494
|
return r;
|
|
496
495
|
};
|
|
497
496
|
}();
|
|
498
|
-
function
|
|
497
|
+
function He(e, r) {
|
|
499
498
|
for (var a = 0, i = (r = et(r, e) ? [r] : vt(r)).length; e != null && a < i; )
|
|
500
499
|
e = e[tt(r[a++])];
|
|
501
500
|
return a && a == i ? e : void 0;
|
|
@@ -504,72 +503,72 @@ var Ut = function(Z) {
|
|
|
504
503
|
return e != null && r in Object(e);
|
|
505
504
|
}
|
|
506
505
|
function Je(e, r, a, i, _) {
|
|
507
|
-
return e === r || (e == null || r == null || !rt(e) && !nt(r) ? e != e && r != r : function(w, I,
|
|
506
|
+
return e === r || (e == null || r == null || !rt(e) && !nt(r) ? e != e && r != r : function(w, I, H, ee, $, B) {
|
|
508
507
|
var Ie = Le(w), De = Le(I), oe = "[object Array]", he = "[object Array]";
|
|
509
508
|
Ie || (oe = (oe = Me(w)) == F ? se : oe), De || (he = (he = Me(I)) == F ? se : he);
|
|
510
509
|
var xe = oe == se && !me(w), Ve = he == se && !me(I), Re = oe == he;
|
|
511
510
|
if (Re && !xe)
|
|
512
|
-
return B || (B = new ye()), Ie || At(w) ? Ct(w, I,
|
|
511
|
+
return B || (B = new ye()), Ie || At(w) ? Ct(w, I, H, ee, $, B) : function(J, W, bt, Ke, ot, Ne, Fe) {
|
|
513
512
|
switch (bt) {
|
|
514
513
|
case "[object DataView]":
|
|
515
|
-
if (J.byteLength !=
|
|
514
|
+
if (J.byteLength != W.byteLength || J.byteOffset != W.byteOffset)
|
|
516
515
|
return !1;
|
|
517
|
-
J = J.buffer,
|
|
516
|
+
J = J.buffer, W = W.buffer;
|
|
518
517
|
case "[object ArrayBuffer]":
|
|
519
|
-
return !(J.byteLength !=
|
|
518
|
+
return !(J.byteLength != W.byteLength || !Ke(new L(J), new L(W)));
|
|
520
519
|
case "[object Boolean]":
|
|
521
520
|
case "[object Date]":
|
|
522
521
|
case "[object Number]":
|
|
523
|
-
return jt(+J, +
|
|
522
|
+
return jt(+J, +W);
|
|
524
523
|
case "[object Error]":
|
|
525
|
-
return J.name ==
|
|
524
|
+
return J.name == W.name && J.message == W.message;
|
|
526
525
|
case "[object RegExp]":
|
|
527
526
|
case "[object String]":
|
|
528
|
-
return J ==
|
|
527
|
+
return J == W + "";
|
|
529
528
|
case ie:
|
|
530
529
|
var ze = we;
|
|
531
530
|
case te:
|
|
532
531
|
var Ye = 2 & Ne;
|
|
533
|
-
if (ze || (ze = s), J.size !=
|
|
532
|
+
if (ze || (ze = s), J.size != W.size && !Ye)
|
|
534
533
|
return !1;
|
|
535
534
|
var it = Fe.get(J);
|
|
536
535
|
if (it)
|
|
537
|
-
return it ==
|
|
538
|
-
Ne |= 1, Fe.set(J,
|
|
539
|
-
var
|
|
540
|
-
return Fe.delete(J),
|
|
536
|
+
return it == W;
|
|
537
|
+
Ne |= 1, Fe.set(J, W);
|
|
538
|
+
var We = Ct(ze(J), ze(W), Ke, ot, Ne, Fe);
|
|
539
|
+
return Fe.delete(J), We;
|
|
541
540
|
case "[object Symbol]":
|
|
542
541
|
if (S)
|
|
543
|
-
return S.call(J) == S.call(
|
|
542
|
+
return S.call(J) == S.call(W);
|
|
544
543
|
}
|
|
545
544
|
return !1;
|
|
546
|
-
}(w, I, oe,
|
|
545
|
+
}(w, I, oe, H, ee, $, B);
|
|
547
546
|
if (!(2 & $)) {
|
|
548
547
|
var Qe = xe && f.call(w, "__wrapped__"), Ot = Ve && f.call(I, "__wrapped__");
|
|
549
548
|
if (Qe || Ot) {
|
|
550
549
|
var Ft = Qe ? w.value() : w, Mt = Ot ? I.value() : I;
|
|
551
|
-
return B || (B = new ye()),
|
|
550
|
+
return B || (B = new ye()), H(Ft, Mt, ee, $, B);
|
|
552
551
|
}
|
|
553
552
|
}
|
|
554
|
-
return Re ? (B || (B = new ye()), function(J,
|
|
555
|
-
var Fe = 2 & ot, ze = at(J), Ye = ze.length, it = at(
|
|
553
|
+
return Re ? (B || (B = new ye()), function(J, W, bt, Ke, ot, Ne) {
|
|
554
|
+
var Fe = 2 & ot, ze = at(J), Ye = ze.length, it = at(W).length;
|
|
556
555
|
if (Ye != it && !Fe)
|
|
557
556
|
return !1;
|
|
558
|
-
for (var
|
|
559
|
-
var Be = ze[
|
|
560
|
-
if (!(Fe ? Be in
|
|
557
|
+
for (var We = Ye; We--; ) {
|
|
558
|
+
var Be = ze[We];
|
|
559
|
+
if (!(Fe ? Be in W : f.call(W, Be)))
|
|
561
560
|
return !1;
|
|
562
561
|
}
|
|
563
562
|
var Et = Ne.get(J);
|
|
564
|
-
if (Et && Ne.get(
|
|
565
|
-
return Et ==
|
|
563
|
+
if (Et && Ne.get(W))
|
|
564
|
+
return Et == W;
|
|
566
565
|
var ut = !0;
|
|
567
|
-
Ne.set(J,
|
|
568
|
-
for (var gt = Fe; ++
|
|
569
|
-
Be = ze[
|
|
570
|
-
var ct = J[Be], st =
|
|
566
|
+
Ne.set(J, W), Ne.set(W, J);
|
|
567
|
+
for (var gt = Fe; ++We < Ye; ) {
|
|
568
|
+
Be = ze[We];
|
|
569
|
+
var ct = J[Be], st = W[Be];
|
|
571
570
|
if (Ke)
|
|
572
|
-
var kt = Fe ? Ke(st, ct, Be,
|
|
571
|
+
var kt = Fe ? Ke(st, ct, Be, W, J, Ne) : Ke(ct, st, Be, J, W, Ne);
|
|
573
572
|
if (!(kt === void 0 ? ct === st || bt(ct, st, Ke, ot, Ne) : kt)) {
|
|
574
573
|
ut = !1;
|
|
575
574
|
break;
|
|
@@ -577,11 +576,11 @@ var Ut = function(Z) {
|
|
|
577
576
|
gt || (gt = Be == "constructor");
|
|
578
577
|
}
|
|
579
578
|
if (ut && !gt) {
|
|
580
|
-
var lt = J.constructor, ft =
|
|
581
|
-
lt == ft || !("constructor" in J) || !("constructor" in
|
|
579
|
+
var lt = J.constructor, ft = W.constructor;
|
|
580
|
+
lt == ft || !("constructor" in J) || !("constructor" in W) || typeof lt == "function" && lt instanceof lt && typeof ft == "function" && ft instanceof ft || (ut = !1);
|
|
582
581
|
}
|
|
583
|
-
return Ne.delete(J), Ne.delete(
|
|
584
|
-
}(w, I,
|
|
582
|
+
return Ne.delete(J), Ne.delete(W), ut;
|
|
583
|
+
}(w, I, H, ee, $, B)) : !1;
|
|
585
584
|
}(e, r, Je, a, i, _));
|
|
586
585
|
}
|
|
587
586
|
function Ze(e) {
|
|
@@ -592,12 +591,12 @@ var Ut = function(Z) {
|
|
|
592
591
|
function Tt(e) {
|
|
593
592
|
return typeof e == "function" ? e : e == null ? Pt : typeof e == "object" ? Le(e) ? function(i, _) {
|
|
594
593
|
return et(i) && wt(_) ? St(tt(i), _) : function(w) {
|
|
595
|
-
var I = function(
|
|
596
|
-
var B =
|
|
594
|
+
var I = function(H, ee, $) {
|
|
595
|
+
var B = H == null ? void 0 : He(H, ee);
|
|
597
596
|
return B === void 0 ? $ : B;
|
|
598
597
|
}(w, i);
|
|
599
|
-
return I === void 0 && I === _ ? function(
|
|
600
|
-
return
|
|
598
|
+
return I === void 0 && I === _ ? function(H, ee) {
|
|
599
|
+
return H != null && function($, B, Ie) {
|
|
601
600
|
B = et(B, $) ? [B] : vt(B);
|
|
602
601
|
for (var De, oe = -1, he = B.length; ++oe < he; ) {
|
|
603
602
|
var xe = tt(B[oe]);
|
|
@@ -606,19 +605,19 @@ var Ut = function(Z) {
|
|
|
606
605
|
$ = $[xe];
|
|
607
606
|
}
|
|
608
607
|
return De || !!(he = $ ? $.length : 0) && mt(he) && _t(xe, he) && (Le($) || xt($));
|
|
609
|
-
}(
|
|
608
|
+
}(H, ee, dt);
|
|
610
609
|
}(w, i) : Je(_, I, void 0, 3);
|
|
611
610
|
};
|
|
612
611
|
}(e[0], e[1]) : function(i) {
|
|
613
612
|
var _ = function(w) {
|
|
614
|
-
for (var I = at(w),
|
|
615
|
-
var ee = I[
|
|
616
|
-
I[
|
|
613
|
+
for (var I = at(w), H = I.length; H--; ) {
|
|
614
|
+
var ee = I[H], $ = w[ee];
|
|
615
|
+
I[H] = [ee, $, wt($)];
|
|
617
616
|
}
|
|
618
617
|
return I;
|
|
619
618
|
}(i);
|
|
620
619
|
return _.length == 1 && _[0][2] ? St(_[0][0], _[0][1]) : function(w) {
|
|
621
|
-
return w === i || function(I,
|
|
620
|
+
return w === i || function(I, H, ee, $) {
|
|
622
621
|
var B = ee.length, Ie = B, De = !$;
|
|
623
622
|
if (I == null)
|
|
624
623
|
return !Ie;
|
|
@@ -635,7 +634,7 @@ var Ut = function(Z) {
|
|
|
635
634
|
} else {
|
|
636
635
|
var Re = new ye();
|
|
637
636
|
if ($)
|
|
638
|
-
var Qe = $(xe, Ve, he, I,
|
|
637
|
+
var Qe = $(xe, Ve, he, I, H, Re);
|
|
639
638
|
if (!(Qe === void 0 ? Je(Ve, xe, $, 3, Re) : Qe))
|
|
640
639
|
return !1;
|
|
641
640
|
}
|
|
@@ -647,7 +646,7 @@ var Ut = function(Z) {
|
|
|
647
646
|
return i == null ? void 0 : i[a];
|
|
648
647
|
}) : /* @__PURE__ */ function(i) {
|
|
649
648
|
return function(_) {
|
|
650
|
-
return
|
|
649
|
+
return He(_, i);
|
|
651
650
|
};
|
|
652
651
|
}(r);
|
|
653
652
|
var r, a;
|
|
@@ -664,14 +663,14 @@ var Ut = function(Z) {
|
|
|
664
663
|
return Le(e) ? e : Dt(e);
|
|
665
664
|
}
|
|
666
665
|
function Ct(e, r, a, i, _, w) {
|
|
667
|
-
var I = 2 & _,
|
|
668
|
-
if (
|
|
666
|
+
var I = 2 & _, H = e.length, ee = r.length;
|
|
667
|
+
if (H != ee && !(I && ee > H))
|
|
669
668
|
return !1;
|
|
670
669
|
var $ = w.get(e);
|
|
671
670
|
if ($ && w.get(r))
|
|
672
671
|
return $ == r;
|
|
673
672
|
var B = -1, Ie = !0, De = 1 & _ ? new je() : void 0;
|
|
674
|
-
for (w.set(e, r), w.set(r, e); ++B <
|
|
673
|
+
for (w.set(e, r), w.set(r, e); ++B < H; ) {
|
|
675
674
|
var oe = e[B], he = r[B];
|
|
676
675
|
if (i)
|
|
677
676
|
var xe = I ? i(he, oe, B, r, e, w) : i(oe, he, B, e, r, w);
|
|
@@ -700,7 +699,7 @@ var Ut = function(Z) {
|
|
|
700
699
|
var a, i, _ = e.__data__;
|
|
701
700
|
return ((i = typeof (a = r)) == "string" || i == "number" || i == "symbol" || i == "boolean" ? a !== "__proto__" : a === null) ? _[typeof r == "string" ? "string" : "hash"] : _.map;
|
|
702
701
|
}
|
|
703
|
-
function
|
|
702
|
+
function Ue(e, r) {
|
|
704
703
|
var a = function(i, _) {
|
|
705
704
|
return i == null ? void 0 : i[_];
|
|
706
705
|
}(e, r);
|
|
@@ -738,7 +737,7 @@ var Ut = function(Z) {
|
|
|
738
737
|
return "[object Promise]";
|
|
739
738
|
case D:
|
|
740
739
|
return te;
|
|
741
|
-
case
|
|
740
|
+
case q:
|
|
742
741
|
return "[object WeakMap]";
|
|
743
742
|
}
|
|
744
743
|
return r;
|
|
@@ -916,7 +915,7 @@ var Ut = function(Z) {
|
|
|
916
915
|
})(m, c);
|
|
917
916
|
}
|
|
918
917
|
l.r(Q);
|
|
919
|
-
var _e = l(0), g = l.n(_e), ke = l(5), R = l.n(ke), V = l(4), j = l.n(V), b = l(6),
|
|
918
|
+
var _e = l(0), g = l.n(_e), ke = l(5), R = l.n(ke), V = l(4), j = l.n(V), b = l(6), U = l.n(b), ue = l(2), G = l.n(ue), le = l(1), K = l.n(le);
|
|
920
919
|
l(8);
|
|
921
920
|
function Ce(m, c) {
|
|
922
921
|
return ie(m) || function(x, A) {
|
|
@@ -1049,8 +1048,8 @@ var Ut = function(Z) {
|
|
|
1049
1048
|
return C(h, 1, p, !0), C(h, 3, S), C(h, 2, P), h;
|
|
1050
1049
|
}(L, re, Y), o = E(JSON.parse(JSON.stringify(me)), n), d = E(JSON.parse(JSON.stringify(we)), n), k = Ce(y(o, c, ce, de, ae), 2), N = k[0], T = k[1];
|
|
1051
1050
|
if (x) {
|
|
1052
|
-
var D = Ce(y(d, c, ce, de, ae), 2),
|
|
1053
|
-
D[1], N = this.sortTerritories(
|
|
1051
|
+
var D = Ce(y(d, c, ce, de, ae), 2), q = D[0];
|
|
1052
|
+
D[1], N = this.sortTerritories(q, N);
|
|
1054
1053
|
}
|
|
1055
1054
|
A && (N = this.filterRegions(A, N)), this.onlyCountries = this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(f, N, M.includes("onlyCountries")), z), ne, M.includes("onlyCountries")), this.preferredCountries = t.length === 0 ? [] : this.localizeCountries(this.getFilteredCountryList(t, N, M.includes("preferredCountries")), ne, M.includes("preferredCountries")), this.hiddenAreaCodes = this.excludeCountries(this.getFilteredCountryList(f, T), z);
|
|
1056
1055
|
}, Ae = function(m) {
|
|
@@ -1064,21 +1063,21 @@ var Ut = function(Z) {
|
|
|
1064
1063
|
}, ve(ve(t)))[0] : null;
|
|
1065
1064
|
}), t.guessSelectedCountry = j()(function(n, o, d, k) {
|
|
1066
1065
|
var N;
|
|
1067
|
-
if (t.props.enableAreaCodes === !1 && (k.some(function(
|
|
1068
|
-
if (G()(n,
|
|
1066
|
+
if (t.props.enableAreaCodes === !1 && (k.some(function(q) {
|
|
1067
|
+
if (G()(n, q.dialCode))
|
|
1069
1068
|
return d.some(function(p) {
|
|
1070
|
-
if (
|
|
1069
|
+
if (q.iso2 === p.iso2 && p.mainCode)
|
|
1071
1070
|
return N = p, !0;
|
|
1072
1071
|
}), !0;
|
|
1073
1072
|
}), N))
|
|
1074
1073
|
return N;
|
|
1075
|
-
var T = d.find(function(
|
|
1076
|
-
return
|
|
1074
|
+
var T = d.find(function(q) {
|
|
1075
|
+
return q.iso2 == o;
|
|
1077
1076
|
});
|
|
1078
1077
|
if (n.trim() === "")
|
|
1079
1078
|
return T;
|
|
1080
|
-
var D = d.reduce(function(
|
|
1081
|
-
return G()(n, p.dialCode) && (p.dialCode.length >
|
|
1079
|
+
var D = d.reduce(function(q, p) {
|
|
1080
|
+
return G()(n, p.dialCode) && (p.dialCode.length > q.dialCode.length || p.dialCode.length === q.dialCode.length && p.priority < q.priority) ? p : q;
|
|
1082
1081
|
}, { dialCode: "", priority: 10001 }, ve(ve(t)));
|
|
1083
1082
|
return D.name ? D : T;
|
|
1084
1083
|
}), t.updateCountry = function(n) {
|
|
@@ -1092,7 +1091,7 @@ var Ut = function(Z) {
|
|
|
1092
1091
|
if (n) {
|
|
1093
1092
|
var d = t.dropdownRef;
|
|
1094
1093
|
if (d && document.body) {
|
|
1095
|
-
var k = d.offsetHeight, N = d.getBoundingClientRect().top + document.body.scrollTop, T = N + k, D = n,
|
|
1094
|
+
var k = d.offsetHeight, N = d.getBoundingClientRect().top + document.body.scrollTop, T = N + k, D = n, q = D.getBoundingClientRect(), p = D.offsetHeight, S = q.top + document.body.scrollTop, P = S + p, h = S - N + d.scrollTop, v = k / 2 - p / 2;
|
|
1096
1095
|
if (t.props.enableSearch ? S < N + 32 : S < N)
|
|
1097
1096
|
o && (h -= v), d.scrollTop = h;
|
|
1098
1097
|
else if (P > T) {
|
|
@@ -1108,12 +1107,12 @@ var Ut = function(Z) {
|
|
|
1108
1107
|
}, t.formatNumber = function(n, o) {
|
|
1109
1108
|
if (!o)
|
|
1110
1109
|
return n;
|
|
1111
|
-
var d, k = o.format, N = t.props, T = N.disableCountryCode, D = N.enableAreaCodeStretch,
|
|
1110
|
+
var d, k = o.format, N = t.props, T = N.disableCountryCode, D = N.enableAreaCodeStretch, q = N.enableLongNumbers, p = N.autoFormat;
|
|
1112
1111
|
if (T ? ((d = k.split(" ")).shift(), d = d.join(" ")) : D && o.isAreaCode ? ((d = k.split(" "))[1] = d[1].replace(/\.+/, "".padEnd(o.areaCodeLength, ".")), d = d.join(" ")) : d = k, !n || n.length === 0)
|
|
1113
1112
|
return T ? "" : t.props.prefix;
|
|
1114
1113
|
if (n && n.length < 2 || !d || !p)
|
|
1115
1114
|
return T ? n : t.props.prefix + n;
|
|
1116
|
-
var S, P =
|
|
1115
|
+
var S, P = U()(d, function(h, v) {
|
|
1117
1116
|
if (h.remainingText.length === 0)
|
|
1118
1117
|
return h;
|
|
1119
1118
|
if (v !== ".")
|
|
@@ -1121,7 +1120,7 @@ var Ut = function(Z) {
|
|
|
1121
1120
|
var X, je = ie(X = h.remainingText) || O(X) || se(), ye = je[0], Te = je.slice(1);
|
|
1122
1121
|
return { formattedText: h.formattedText + ye, remainingText: Te };
|
|
1123
1122
|
}, { formattedText: "", remainingText: n.split("") });
|
|
1124
|
-
return (S =
|
|
1123
|
+
return (S = q ? P.formattedText + P.remainingText.join("") : P.formattedText).includes("(") && !S.includes(")") && (S += ")"), S;
|
|
1125
1124
|
}, t.cursorToEnd = function() {
|
|
1126
1125
|
var n = t.numberInputRef;
|
|
1127
1126
|
if (document.activeElement === n) {
|
|
@@ -1143,7 +1142,7 @@ var Ut = function(Z) {
|
|
|
1143
1142
|
});
|
|
1144
1143
|
}
|
|
1145
1144
|
}, t.handleInput = function(n) {
|
|
1146
|
-
var o = n.target.value, d = t.props, k = d.prefix, N = d.onChange, T = t.props.disableCountryCode ? "" : k, D = t.state.selectedCountry,
|
|
1145
|
+
var o = n.target.value, d = t.props, k = d.prefix, N = d.onChange, T = t.props.disableCountryCode ? "" : k, D = t.state.selectedCountry, q = t.state.freezeSelection;
|
|
1147
1146
|
if (!t.props.countryCodeEditable) {
|
|
1148
1147
|
var p = k + (D.hasAreaCodes ? t.state.onlyCountries.find(function(pe) {
|
|
1149
1148
|
return pe.iso2 === D.iso2 && pe.mainCode;
|
|
@@ -1158,10 +1157,10 @@ var Ut = function(Z) {
|
|
|
1158
1157
|
var S = t.props.country, P = t.state, h = P.onlyCountries, v = P.selectedCountry, X = P.hiddenAreaCodes;
|
|
1159
1158
|
if (N && n.persist(), o.length > 0) {
|
|
1160
1159
|
var je = o.replace(/\D/g, "");
|
|
1161
|
-
(!t.state.freezeSelection || v && v.dialCode.length > je.length) && (D = t.props.disableCountryGuess ? v : t.guessSelectedCountry(je.substring(0, 6), S, h, X) || v,
|
|
1160
|
+
(!t.state.freezeSelection || v && v.dialCode.length > je.length) && (D = t.props.disableCountryGuess ? v : t.guessSelectedCountry(je.substring(0, 6), S, h, X) || v, q = !1), T = t.formatNumber(je, D), D = D.dialCode ? D : v;
|
|
1162
1161
|
}
|
|
1163
1162
|
var ye = n.target.selectionStart, Te = n.target.selectionStart, Pe = t.state.formattedNumber, Ge = T.length - Pe.length;
|
|
1164
|
-
t.setState({ formattedNumber: T, freezeSelection:
|
|
1163
|
+
t.setState({ formattedNumber: T, freezeSelection: q, selectedCountry: D }, function() {
|
|
1165
1164
|
Ge > 0 && (Te -= Ge), T.charAt(T.length - 1) == ")" ? t.numberInputRef.setSelectionRange(T.length - 1, T.length - 1) : Te > 0 && Pe.length >= T.length ? t.numberInputRef.setSelectionRange(Te, Te) : ye < Pe.length && t.numberInputRef.setSelectionRange(ye, ye), N && N(T.replace(/[^0-9]+/g, ""), t.getCountryData(), n, T);
|
|
1166
1165
|
});
|
|
1167
1166
|
}
|
|
@@ -1171,8 +1170,8 @@ var Ut = function(Z) {
|
|
|
1171
1170
|
var o = n.target.value.length;
|
|
1172
1171
|
n.target.setSelectionRange(0, o);
|
|
1173
1172
|
}, t.handleFlagItemClick = function(n, o) {
|
|
1174
|
-
var d = t.state.selectedCountry, k = t.state.onlyCountries.find(function(
|
|
1175
|
-
return
|
|
1173
|
+
var d = t.state.selectedCountry, k = t.state.onlyCountries.find(function(q) {
|
|
1174
|
+
return q == n;
|
|
1176
1175
|
});
|
|
1177
1176
|
if (k) {
|
|
1178
1177
|
var N = t.state.formattedNumber.replace(" ", "").replace("(", "").replace(")", "").replace("-", ""), T = N.length > 1 ? N.replace(d.dialCode, k.dialCode) : k.dialCode, D = t.formatNumber(T.replace(/\D/g, ""), k);
|
|
@@ -1239,8 +1238,8 @@ var Ut = function(Z) {
|
|
|
1239
1238
|
var o = n.currentTarget.value, d = t.state, k = d.preferredCountries, N = d.selectedCountry, T = 0;
|
|
1240
1239
|
if (o === "" && N) {
|
|
1241
1240
|
var D = t.state.onlyCountries;
|
|
1242
|
-
T = t.concatPreferredCountries(k, D).findIndex(function(
|
|
1243
|
-
return
|
|
1241
|
+
T = t.concatPreferredCountries(k, D).findIndex(function(q) {
|
|
1242
|
+
return q == N;
|
|
1244
1243
|
}), setTimeout(function() {
|
|
1245
1244
|
return t.scrollTo(t.getElement(T));
|
|
1246
1245
|
}, 100);
|
|
@@ -1260,7 +1259,7 @@ var Ut = function(Z) {
|
|
|
1260
1259
|
return h.toLowerCase().includes(D);
|
|
1261
1260
|
});
|
|
1262
1261
|
});
|
|
1263
|
-
var
|
|
1262
|
+
var q = T.filter(function(S) {
|
|
1264
1263
|
var P = S.iso2;
|
|
1265
1264
|
return ["".concat(P)].some(function(h) {
|
|
1266
1265
|
return h.toLowerCase().includes(D);
|
|
@@ -1271,17 +1270,17 @@ var Ut = function(Z) {
|
|
|
1271
1270
|
return v.toLowerCase().includes(D);
|
|
1272
1271
|
});
|
|
1273
1272
|
});
|
|
1274
|
-
return t.scrollToTop(), F(new Set([].concat(
|
|
1273
|
+
return t.scrollToTop(), F(new Set([].concat(q, p)));
|
|
1275
1274
|
}
|
|
1276
1275
|
return T;
|
|
1277
1276
|
}, t.getCountryDropdownList = function() {
|
|
1278
|
-
var n = t.state, o = n.preferredCountries, d = n.highlightCountryIndex, k = n.showDropdown, N = n.searchValue, T = t.props, D = T.disableDropdown,
|
|
1279
|
-
var
|
|
1277
|
+
var n = t.state, o = n.preferredCountries, d = n.highlightCountryIndex, k = n.showDropdown, N = n.searchValue, T = t.props, D = T.disableDropdown, q = T.prefix, p = t.props, S = p.enableSearch, P = p.searchNotFound, h = p.disableSearchIcon, v = p.searchClass, X = p.searchStyle, je = p.searchPlaceholder, ye = p.autocompleteSearch, Te = t.getSearchFilteredCountries().map(function(pe, qe) {
|
|
1278
|
+
var He = d === qe, dt = K()({ country: !0, preferred: pe.iso2 === "us" || pe.iso2 === "gb", active: pe.iso2 === "us", highlight: He }), Je = "flag ".concat(pe.iso2);
|
|
1280
1279
|
return g.a.createElement("li", Object.assign({ ref: function(Ze) {
|
|
1281
|
-
return t["flag_no_".concat(
|
|
1282
|
-
}, key: "flag_no_".concat(
|
|
1280
|
+
return t["flag_no_".concat(qe)] = Ze;
|
|
1281
|
+
}, key: "flag_no_".concat(qe), "data-flag-key": "flag_no_".concat(qe), className: dt, "data-dial-code": "1", tabIndex: D ? "-1" : "0", "data-country-code": pe.iso2, onClick: function(Ze) {
|
|
1283
1282
|
return t.handleFlagItemClick(pe, Ze);
|
|
1284
|
-
}, role: "option" },
|
|
1283
|
+
}, role: "option" }, He ? { "aria-selected": !0 } : {}), g.a.createElement("div", { className: Je }), g.a.createElement("span", { className: "country-name" }, t.getDropdownCountryName(pe)), g.a.createElement("span", { className: "dial-code" }, pe.format ? t.formatNumber(pe.dialCode, pe) : q + pe.dialCode));
|
|
1285
1284
|
}), Pe = g.a.createElement("li", { key: "dashes", className: "divider" });
|
|
1286
1285
|
o.length > 0 && (!S || S && !N.trim()) && Te.splice(o.length, 0, Pe);
|
|
1287
1286
|
var Ge = K()(u({ "country-list": !0, hide: !k }, t.props.dropdownClass, !0));
|
|
@@ -1332,26 +1331,26 @@ var Ut = function(Z) {
|
|
|
1332
1331
|
var T = d(ce.replace(/\D/g, ""), Y, re, de);
|
|
1333
1332
|
typeof T == "boolean" ? (t = T) === !1 && (z = k) : (t = !1, z = T);
|
|
1334
1333
|
}
|
|
1335
|
-
var D = K()((u(f = {}, this.props.containerClass, !0), u(f, "react-tel-input", !0), f)),
|
|
1334
|
+
var D = K()((u(f = {}, this.props.containerClass, !0), u(f, "react-tel-input", !0), f)), q = K()({ arrow: !0, up: ne }), p = K()(u({ "form-control": !0, "invalid-number": !t, open: ne }, this.props.inputClass, !0)), S = K()({ "selected-flag": !0, open: ne }), P = K()(u({ "flag-dropdown": !0, "invalid-number": !t, open: ne }, this.props.buttonClass, !0)), h = "flag ".concat(Y && Y.iso2);
|
|
1336
1335
|
return g.a.createElement("div", { className: "".concat(D, " ").concat(this.props.className), style: this.props.style || this.props.containerStyle, onKeyDown: this.handleKeydown }, N && g.a.createElement("div", { className: "special-label" }, N), z && g.a.createElement("div", { className: "invalid-number-message" }, z), g.a.createElement("input", Object.assign({ className: p, style: this.props.inputStyle, onChange: this.handleInput, onClick: this.handleInputClick, onDoubleClick: this.handleDoubleClick, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onCopy: this.handleInputCopy, value: ce, onKeyDown: this.handleInputKeyDown, placeholder: this.props.placeholder, disabled: this.props.disabled, type: "tel" }, this.props.inputProps, { ref: function(v) {
|
|
1337
1336
|
M.numberInputRef = v, typeof M.props.inputProps.ref == "function" ? M.props.inputProps.ref(v) : typeof M.props.inputProps.ref == "object" && (M.props.inputProps.ref.current = v);
|
|
1338
1337
|
} })), g.a.createElement("div", { className: P, style: this.props.buttonStyle, ref: function(v) {
|
|
1339
1338
|
return M.dropdownContainerRef = v;
|
|
1340
|
-
} }, o ? g.a.createElement("div", { className: S }, o) : g.a.createElement("div", { onClick: n ? void 0 : this.handleFlagDropdownClick, className: S, title: Y ? "".concat(Y.localName || Y.name, ": + ").concat(Y.dialCode) : "", tabIndex: n ? "-1" : "0", role: "button", "aria-haspopup": "listbox", "aria-expanded": !!ne || void 0 }, g.a.createElement("div", { className: h }, !n && g.a.createElement("div", { className:
|
|
1339
|
+
} }, o ? g.a.createElement("div", { className: S }, o) : g.a.createElement("div", { onClick: n ? void 0 : this.handleFlagDropdownClick, className: S, title: Y ? "".concat(Y.localName || Y.name, ": + ").concat(Y.dialCode) : "", tabIndex: n ? "-1" : "0", role: "button", "aria-haspopup": "listbox", "aria-expanded": !!ne || void 0 }, g.a.createElement("div", { className: h }, !n && g.a.createElement("div", { className: q }))), ne && this.getCountryDropdownList()));
|
|
1341
1340
|
} }]) && Se(x.prototype, A), c;
|
|
1342
1341
|
}(g.a.Component);
|
|
1343
1342
|
Ae.defaultProps = { country: "", value: "", onlyCountries: [], preferredCountries: [], excludeCountries: [], placeholder: "1 (702) 123-4567", searchPlaceholder: "search", searchNotFound: "No entries to show", flagsImagePath: "./flags.png", disabled: !1, containerStyle: {}, inputStyle: {}, buttonStyle: {}, dropdownStyle: {}, searchStyle: {}, containerClass: "", inputClass: "", buttonClass: "", dropdownClass: "", searchClass: "", className: "", autoFormat: !0, enableAreaCodes: !1, enableTerritories: !1, disableCountryCode: !1, disableDropdown: !1, enableLongNumbers: !1, countryCodeEditable: !0, enableSearch: !1, disableSearchIcon: !1, disableInitialCountryGuess: !1, disableCountryGuess: !1, regions: "", inputProps: {}, localization: {}, masks: null, priority: null, areaCodes: null, preserveOrder: [], defaultMask: "... ... ... ... ..", alwaysDefaultMask: !1, prefix: "+", copyNumbersOnly: !0, renderStringAsFlag: "", autocompleteSearch: !1, jumpCursorToEnd: !0, enableAreaCodeStretch: !1, enableClickOutside: !0, showDropdown: !1, isValid: !0, defaultErrorMessage: "", specialLabel: "Phone", onEnterKeyPress: null, keys: { UP: 38, DOWN: 40, RIGHT: 39, LEFT: 37, ENTER: 13, ESC: 27, PLUS: 43, A: 65, Z: 90, SPACE: 32, TAB: 9 } }, Q.default = Ae;
|
|
1344
1343
|
}]);
|
|
1345
|
-
const
|
|
1346
|
-
function
|
|
1344
|
+
const Ut = /* @__PURE__ */ Bt(qt);
|
|
1345
|
+
function Qt({
|
|
1347
1346
|
name: Z,
|
|
1348
1347
|
className: Q = "",
|
|
1349
1348
|
onChange: l,
|
|
1350
1349
|
value: u,
|
|
1351
1350
|
...O
|
|
1352
1351
|
}) {
|
|
1353
|
-
const F =
|
|
1354
|
-
return /* @__PURE__ */
|
|
1352
|
+
const F = Wt();
|
|
1353
|
+
return /* @__PURE__ */ Gt(Ut, {
|
|
1355
1354
|
...O,
|
|
1356
1355
|
value: u ? u.trim().replace(/^\+?/, "+") : void 0,
|
|
1357
1356
|
country: u ? void 0 : F,
|
|
@@ -1365,7 +1364,7 @@ function Yt({
|
|
|
1365
1364
|
onChange: (ie) => {
|
|
1366
1365
|
l(`+${ie}`);
|
|
1367
1366
|
},
|
|
1368
|
-
containerClass:
|
|
1367
|
+
containerClass: $t("hover:border-emphasis dark:focus:border-emphasis border-default !bg-default rounded-md border focus-within:outline-none focus-within:ring-2 focus-within:ring-brand-default disabled:cursor-not-allowed", Q),
|
|
1369
1368
|
inputClass: "text-sm focus:ring-0 !bg-default text-default",
|
|
1370
1369
|
buttonClass: "text-emphasis !bg-default hover:!bg-emphasis",
|
|
1371
1370
|
searchClass: "!text-default !bg-default hover:!bg-emphasis",
|
|
@@ -1389,8 +1388,8 @@ function Yt({
|
|
|
1389
1388
|
}
|
|
1390
1389
|
});
|
|
1391
1390
|
}
|
|
1392
|
-
const
|
|
1393
|
-
const [Z, Q] = Rt("us"), l =
|
|
1391
|
+
const Wt = () => {
|
|
1392
|
+
const [Z, Q] = Rt("us"), l = Vt.viewer.public.countryCode.useQuery(void 0, {
|
|
1394
1393
|
refetchOnWindowFocus: !1,
|
|
1395
1394
|
refetchOnReconnect: !1,
|
|
1396
1395
|
retry: !1
|
|
@@ -1402,5 +1401,5 @@ const Ht = () => {
|
|
|
1402
1401
|
}, [l.data]), Z;
|
|
1403
1402
|
};
|
|
1404
1403
|
export {
|
|
1405
|
-
|
|
1404
|
+
Qt as default
|
|
1406
1405
|
};
|