@aaravpos/appointment-booking-plugin 3.0.7 → 4.0.2

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/index.js CHANGED
@@ -2293,7 +2293,7 @@ var nr = (e) => e ? [
2293
2293
  e.completedSteps = e.completedSteps.filter((i) => n.indexOf(i) <= a);
2294
2294
  }
2295
2295
  }
2296
- }), { setIsOrder: Yu, goToStep: Jn, completeStep: Gv, nextStep: Pe, prevStep: Wv, clearSteps: Hv, resetCompletedStepsFrom: Ti } = nd.actions, Zu = nd.reducer, Ai = {
2296
+ }), { setIsOrder: Yu, goToStep: Jn, completeStep: Hv, nextStep: Pe, prevStep: qv, clearSteps: Kv, resetCompletedStepsFrom: Ti } = nd.actions, Zu = nd.reducer, Ai = {
2297
2297
  id: "",
2298
2298
  outletName: "",
2299
2299
  timeZone: "",
@@ -2361,7 +2361,7 @@ var nr = (e) => e ? [
2361
2361
  e.selectedProfessional = null;
2362
2362
  }
2363
2363
  }
2364
- }), { setServicePayload: tf, setCategory: qv, toggleService: Ar, clearSelectedServices: xi, clearSelectedProfessional: ki, incrementService: od, decrementService: xr, toggleProfessional: sd } = id.actions, rf = id.reducer, ze = "https://prod.aaravpos.com/api/v1", He = () => ({
2364
+ }), { setServicePayload: tf, setCategory: Yv, toggleService: Ar, clearSelectedServices: xi, clearSelectedProfessional: ki, incrementService: od, decrementService: xr, toggleProfessional: sd } = id.actions, rf = id.reducer, ze = "https://prod.aaravpos.com/api/v1", He = () => ({
2365
2365
  "Content-Type": "application/json",
2366
2366
  Authorization: `Bearer ${an.getState()?.booking.outletDetails?.token}`
2367
2367
  }), Mi = async (e, t, r) => {
@@ -2587,7 +2587,7 @@ var nr = (e) => e ? [
2587
2587
  t.loading = !1, t.error = r.payload || "Appointment failed";
2588
2588
  });
2589
2589
  }
2590
- }), { resetAppointment: ft, setBookingMode: Kv, setUserDetails: En, setTips: mf, setAppointmentId: ar, clearUserDetails: hf, setPayType: Ui } = cd.actions, vf = cd.reducer, ud = We({
2590
+ }), { resetAppointment: ft, setBookingMode: Zv, setUserDetails: En, setTips: mf, setAppointmentId: ar, clearUserDetails: hf, setPayType: Ui } = cd.actions, vf = cd.reducer, ud = We({
2591
2591
  name: "outletList",
2592
2592
  initialState: { outlets: [] },
2593
2593
  reducers: {
@@ -2598,7 +2598,7 @@ var nr = (e) => e ? [
2598
2598
  e.outlets = [];
2599
2599
  }
2600
2600
  }
2601
- }), { setOutletList: yf, clearOutletList: Yv } = ud.actions, $f = ud.reducer, gf = (0, Yn.combineReducers)({ booking: (0, Yn.combineReducers)({
2601
+ }), { setOutletList: yf, clearOutletList: Xv } = ud.actions, $f = ud.reducer, gf = (0, Yn.combineReducers)({ booking: (0, Yn.combineReducers)({
2602
2602
  breadcrumbs: Zu,
2603
2603
  outletDetails: ef,
2604
2604
  service: rf,
@@ -2630,7 +2630,7 @@ var nr = (e) => e ? [
2630
2630
  Kl,
2631
2631
  Yl
2632
2632
  ] } })
2633
- }), Ma = Jl(an), Zv = an.getState;
2633
+ }), Ma = Jl(an), Jv = an.getState;
2634
2634
  function Sf({ children: e }) {
2635
2635
  return /* @__PURE__ */ c(Vl, {
2636
2636
  store: an,
@@ -3520,7 +3520,7 @@ function E1() {
3520
3520
  children: "No staff available for selected services"
3521
3521
  })]
3522
3522
  }),
3523
- /* @__PURE__ */ c("div", {
3523
+ t?.length > 0 && /* @__PURE__ */ c("div", {
3524
3524
  className: "aaravpos-staff-wrapper",
3525
3525
  children: /* @__PURE__ */ c("div", {
3526
3526
  className: "aaravpos-staff-grid",
@@ -3651,7 +3651,7 @@ function T1() {
3651
3651
  children: "No staff available for selected services"
3652
3652
  })]
3653
3653
  }),
3654
- /* @__PURE__ */ c("div", {
3654
+ u?.length > 0 && /* @__PURE__ */ c("div", {
3655
3655
  className: "aaravpos-staff-wrapper",
3656
3656
  children: /* @__PURE__ */ c("div", {
3657
3657
  className: "aaravpos-staff-grid",
@@ -4666,8 +4666,17 @@ var Wi = [
4666
4666
  "Thu",
4667
4667
  "Fri",
4668
4668
  "Sat"
4669
- ], L1 = 15;
4670
- function j1() {
4669
+ ], L1 = 15, j1 = () => /* @__PURE__ */ c("div", {
4670
+ className: "aaravpos-timeslot-skeleton-wrapper",
4671
+ children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ c("div", {
4672
+ className: "aaravpos-timeslot-skeleton-card",
4673
+ children: /* @__PURE__ */ v("div", {
4674
+ className: "aaravpos-timeslot-header",
4675
+ children: [/* @__PURE__ */ c("div", { className: "aaravpos-timeslot-icon" }), /* @__PURE__ */ c("div", { className: "aaravpos-timeslot-title" })]
4676
+ })
4677
+ }, t))
4678
+ });
4679
+ function B1() {
4671
4680
  const e = Ee(), [t, r] = H(11), { staff: n, selectedServices: a, selectedProfessional: i } = K((k) => k.booking.service), { tenantId: o, timeZone: s } = K((k) => k.booking?.outletDetails), { selectedSlotIndexes: d, selectedDate: l, selectedTime: u, slots: p, loading: f } = K((k) => k.booking.slots), [m, h] = H(!1), [y, g] = H(0), b = de(() => [
4672
4681
  p.morning,
4673
4682
  p.afternoon,
@@ -4937,10 +4946,7 @@ function j1() {
4937
4946
  /* @__PURE__ */ v("div", {
4938
4947
  className: "arravpos-scroll-area",
4939
4948
  style: f ? { height: 300 } : {},
4940
- children: [f ? /* @__PURE__ */ c("div", {
4941
- className: "arravpos-loader-wrapper",
4942
- children: /* @__PURE__ */ c("div", { className: "arravpos-loader" })
4943
- }) : /* @__PURE__ */ v(se, { children: [
4949
+ children: [f ? /* @__PURE__ */ c(j1, {}) : /* @__PURE__ */ v(se, { children: [
4944
4950
  /* @__PURE__ */ c(An, {
4945
4951
  label: "Morning",
4946
4952
  icon: /* @__PURE__ */ c(h1, {
@@ -12482,7 +12488,7 @@ var Cd = {
12482
12488
  ]
12483
12489
  ]
12484
12490
  }
12485
- }, B1 = /* @__PURE__ */ Ae(((e) => {
12491
+ }, U1 = /* @__PURE__ */ Ae(((e) => {
12486
12492
  var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, p = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, $ = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, S = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
12487
12493
  function P(N) {
12488
12494
  if (typeof N == "object" && N !== null) {
@@ -12544,7 +12550,7 @@ var Cd = {
12544
12550
  }, e.isValidElementType = function(N) {
12545
12551
  return typeof N == "string" || typeof N == "function" || N === a || N === u || N === o || N === i || N === f || N === m || typeof N == "object" && N !== null && (N.$$typeof === y || N.$$typeof === h || N.$$typeof === s || N.$$typeof === d || N.$$typeof === p || N.$$typeof === b || N.$$typeof === $ || N.$$typeof === S || N.$$typeof === g);
12546
12552
  }, e.typeOf = P;
12547
- })), U1 = /* @__PURE__ */ Ae(((e) => {
12553
+ })), V1 = /* @__PURE__ */ Ae(((e) => {
12548
12554
  process.env.NODE_ENV !== "production" && (function() {
12549
12555
  "use strict";
12550
12556
  var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, p = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, $ = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, S = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
@@ -12626,8 +12632,8 @@ var Cd = {
12626
12632
  e.AsyncMode = N, e.ConcurrentMode = E, e.ContextConsumer = D, e.ContextProvider = Z, e.Element = J, e.ForwardRef = te, e.Fragment = le, e.Lazy = ae, e.Memo = ce, e.Portal = he, e.Profiler = ye, e.StrictMode = ue, e.Suspense = re, e.isAsyncMode = k, e.isConcurrentMode = R, e.isContextConsumer = w, e.isContextProvider = I, e.isElement = L, e.isForwardRef = V, e.isFragment = F, e.isLazy = q, e.isMemo = z, e.isPortal = G, e.isProfiler = x, e.isStrictMode = M, e.isSuspense = U, e.isValidElementType = P, e.typeOf = C;
12627
12633
  })();
12628
12634
  })), Sd = /* @__PURE__ */ Ae(((e, t) => {
12629
- process.env.NODE_ENV === "production" ? t.exports = B1() : t.exports = U1();
12630
- })), V1 = /* @__PURE__ */ Ae(((e, t) => {
12635
+ process.env.NODE_ENV === "production" ? t.exports = U1() : t.exports = V1();
12636
+ })), z1 = /* @__PURE__ */ Ae(((e, t) => {
12631
12637
  var r = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
12632
12638
  function i(s) {
12633
12639
  if (s == null) throw new TypeError("Object.assign cannot be called with null or undefined");
@@ -12666,7 +12672,7 @@ var Cd = {
12666
12672
  t.exports = r;
12667
12673
  })), Pd = /* @__PURE__ */ Ae(((e, t) => {
12668
12674
  t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
12669
- })), z1 = /* @__PURE__ */ Ae(((e, t) => {
12675
+ })), G1 = /* @__PURE__ */ Ae(((e, t) => {
12670
12676
  var r = function() {
12671
12677
  };
12672
12678
  if (process.env.NODE_ENV !== "production") {
@@ -12704,8 +12710,8 @@ var Cd = {
12704
12710
  o.resetWarningCache = function() {
12705
12711
  process.env.NODE_ENV !== "production" && (a = {});
12706
12712
  }, t.exports = o;
12707
- })), G1 = /* @__PURE__ */ Ae(((e, t) => {
12708
- var r = Sd(), n = V1(), a = La(), i = Pd(), o = z1(), s = function() {
12713
+ })), W1 = /* @__PURE__ */ Ae(((e, t) => {
12714
+ var r = Sd(), n = z1(), a = La(), i = Pd(), o = G1(), s = function() {
12709
12715
  };
12710
12716
  process.env.NODE_ENV !== "production" && (s = function(l) {
12711
12717
  var u = "Warning: " + l;
@@ -12977,7 +12983,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
12977
12983
  }
12978
12984
  return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
12979
12985
  };
12980
- })), W1 = /* @__PURE__ */ Ae(((e, t) => {
12986
+ })), H1 = /* @__PURE__ */ Ae(((e, t) => {
12981
12987
  var r = La();
12982
12988
  function n() {
12983
12989
  }
@@ -13019,12 +13025,12 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
13019
13025
  };
13020
13026
  return s.PropTypes = s, s;
13021
13027
  };
13022
- })), H1 = /* @__PURE__ */ Ae(((e, t) => {
13028
+ })), q1 = /* @__PURE__ */ Ae(((e, t) => {
13023
13029
  if (process.env.NODE_ENV !== "production") {
13024
13030
  var r = Sd(), n = !0;
13025
- t.exports = G1()(r.isElement, n);
13026
- } else t.exports = W1()();
13027
- })), q1 = /* @__PURE__ */ Ae(((e, t) => {
13031
+ t.exports = W1()(r.isElement, n);
13032
+ } else t.exports = H1()();
13033
+ })), K1 = /* @__PURE__ */ Ae(((e, t) => {
13028
13034
  (function() {
13029
13035
  "use strict";
13030
13036
  var r = {}.hasOwnProperty;
@@ -13052,7 +13058,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
13052
13058
  }) : window.classNames = n;
13053
13059
  })();
13054
13060
  }));
13055
- function K1(e, t, r) {
13061
+ function Y1(e, t, r) {
13056
13062
  switch (r) {
13057
13063
  case "Backspace":
13058
13064
  t > 0 && (e = e.slice(0, t - 1) + e.slice(t), t--);
@@ -13066,7 +13072,7 @@ function K1(e, t, r) {
13066
13072
  caret: t
13067
13073
  };
13068
13074
  }
13069
- function Y1(e, t, r) {
13075
+ function Z1(e, t, r) {
13070
13076
  for (var n = {}, a = "", i = 0, o = 0; o < e.length; ) {
13071
13077
  var s = r(e[o], a, n);
13072
13078
  s !== void 0 && (a += s, t !== void 0 && (t === o ? i = a.length - 1 : t > o && (i = a.length))), o++;
@@ -13076,10 +13082,10 @@ function Y1(e, t, r) {
13076
13082
  caret: i
13077
13083
  };
13078
13084
  }
13079
- function Z1(e, t) {
13085
+ function X1(e, t) {
13080
13086
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
13081
13087
  if (r) return (r = r.call(e)).next.bind(r);
13082
- if (Array.isArray(e) || (r = X1(e)) || t && e && typeof e.length == "number") {
13088
+ if (Array.isArray(e) || (r = J1(e)) || t && e && typeof e.length == "number") {
13083
13089
  r && (e = r);
13084
13090
  var n = 0;
13085
13091
  return function() {
@@ -13092,7 +13098,7 @@ function Z1(e, t) {
13092
13098
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13093
13099
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13094
13100
  }
13095
- function X1(e, t) {
13101
+ function J1(e, t) {
13096
13102
  if (e) {
13097
13103
  if (typeof e == "string") return qi(e, t);
13098
13104
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -13106,18 +13112,18 @@ function qi(e, t) {
13106
13112
  return n;
13107
13113
  }
13108
13114
  function ta(e, t) {
13109
- for (var r = 0, n = Z1(t.split("")), a; !(a = n()).done; ) a.value === e && r++;
13115
+ for (var r = 0, n = X1(t.split("")), a; !(a = n()).done; ) a.value === e && r++;
13110
13116
  return r;
13111
13117
  }
13112
- function J1(e, t) {
13118
+ function Q1(e, t) {
13113
13119
  for (var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "x", n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : " ", a = e.length, i = ta("(", e) - ta(")", e); i > 0 && a < t.length; )
13114
13120
  e += t[a].replace(r, n), t[a] === ")" && i--, a++;
13115
13121
  return e;
13116
13122
  }
13117
- function Q1(e, t) {
13123
+ function e0(e, t) {
13118
13124
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
13119
13125
  if (r) return (r = r.call(e)).next.bind(r);
13120
- if (Array.isArray(e) || (r = e0(e)) || t && e && typeof e.length == "number") {
13126
+ if (Array.isArray(e) || (r = t0(e)) || t && e && typeof e.length == "number") {
13121
13127
  r && (e = r);
13122
13128
  var n = 0;
13123
13129
  return function() {
@@ -13130,7 +13136,7 @@ function Q1(e, t) {
13130
13136
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13131
13137
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13132
13138
  }
13133
- function e0(e, t) {
13139
+ function t0(e, t) {
13134
13140
  if (e) {
13135
13141
  if (typeof e == "string") return Ki(e, t);
13136
13142
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -13143,7 +13149,7 @@ function Ki(e, t) {
13143
13149
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
13144
13150
  return n;
13145
13151
  }
13146
- function t0(e) {
13152
+ function r0(e) {
13147
13153
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "x", r = arguments.length > 2 ? arguments[2] : void 0;
13148
13154
  if (!e) return function(a) {
13149
13155
  return { text: a };
@@ -13154,7 +13160,7 @@ function t0(e) {
13154
13160
  text: "",
13155
13161
  template: e
13156
13162
  };
13157
- for (var i = 0, o = "", s = Q1(e.split("")), d; !(d = s()).done; ) {
13163
+ for (var i = 0, o = "", s = e0(e.split("")), d; !(d = s()).done; ) {
13158
13164
  var l = d.value;
13159
13165
  if (l !== t) {
13160
13166
  o += l;
@@ -13163,14 +13169,14 @@ function t0(e) {
13163
13169
  if (o += a[i], i++, i === a.length && a.length < n)
13164
13170
  break;
13165
13171
  }
13166
- return r && (o = J1(o, e)), {
13172
+ return r && (o = Q1(o, e)), {
13167
13173
  text: o,
13168
13174
  template: e
13169
13175
  };
13170
13176
  };
13171
13177
  }
13172
- function r0(e, t, r) {
13173
- typeof r == "string" && (r = t0(r));
13178
+ function n0(e, t, r) {
13179
+ typeof r == "string" && (r = r0(r));
13174
13180
  var n = r(e) || {}, a = n.text, i = n.template;
13175
13181
  if (a === void 0 && (a = e), i) if (t === void 0) t = a.length;
13176
13182
  else {
@@ -13191,10 +13197,10 @@ function r0(e, t, r) {
13191
13197
  caret: t
13192
13198
  };
13193
13199
  }
13194
- function n0(e) {
13200
+ function a0(e) {
13195
13201
  return e.hasAttribute("readonly");
13196
13202
  }
13197
- function a0(e) {
13203
+ function i0(e) {
13198
13204
  if (e.selectionStart !== e.selectionEnd)
13199
13205
  return {
13200
13206
  start: e.selectionStart,
@@ -13205,7 +13211,7 @@ var Yi = {
13205
13211
  Backspace: 8,
13206
13212
  Delete: 46
13207
13213
  };
13208
- function i0(e) {
13214
+ function o0(e) {
13209
13215
  switch (e.keyCode) {
13210
13216
  case Yi.Backspace:
13211
13217
  return "Backspace";
@@ -13213,48 +13219,48 @@ function i0(e) {
13213
13219
  return "Delete";
13214
13220
  }
13215
13221
  }
13216
- function o0(e) {
13222
+ function s0(e) {
13217
13223
  return e.selectionStart;
13218
13224
  }
13219
13225
  function wd(e, t) {
13220
- t !== void 0 && (s0() ? setTimeout(function() {
13226
+ t !== void 0 && (d0() ? setTimeout(function() {
13221
13227
  return e.setSelectionRange(t, t);
13222
13228
  }, 0) : e.setSelectionRange(t, t));
13223
13229
  }
13224
- function s0() {
13225
- if (typeof navigator < "u") return d0.test(navigator.userAgent);
13230
+ function d0() {
13231
+ if (typeof navigator < "u") return l0.test(navigator.userAgent);
13226
13232
  }
13227
- var d0 = /Android/i;
13228
- function l0(e, t, r, n, a) {
13233
+ var l0 = /Android/i;
13234
+ function c0(e, t, r, n, a) {
13229
13235
  ra(t, r, n, void 0, a);
13230
13236
  }
13231
- function c0(e, t, r, n, a) {
13232
- if (!n0(t)) {
13233
- var i = i0(e);
13237
+ function u0(e, t, r, n, a) {
13238
+ if (!a0(t)) {
13239
+ var i = o0(e);
13234
13240
  switch (i) {
13235
13241
  case "Delete":
13236
13242
  case "Backspace":
13237
13243
  e.preventDefault();
13238
- var o = a0(t);
13239
- return o ? (u0(t, o), ra(t, r, n, void 0, a)) : ra(t, r, n, i, a);
13244
+ var o = i0(t);
13245
+ return o ? (f0(t, o), ra(t, r, n, void 0, a)) : ra(t, r, n, i, a);
13240
13246
  default:
13241
13247
  }
13242
13248
  }
13243
13249
  }
13244
- function u0(e, t) {
13250
+ function f0(e, t) {
13245
13251
  var r = e.value;
13246
13252
  r = r.slice(0, t.start) + r.slice(t.end), e.value = r, wd(e, t.start);
13247
13253
  }
13248
13254
  function ra(e, t, r, n, a) {
13249
- var i = Y1(e.value, o0(e), t), o = i.value, s = i.caret;
13255
+ var i = Z1(e.value, s0(e), t), o = i.value, s = i.caret;
13250
13256
  if (n) {
13251
- var d = K1(o, s, n);
13257
+ var d = Y1(o, s, n);
13252
13258
  o = d.value, s = d.caret;
13253
13259
  }
13254
- var l = r0(o, s, r), u = l.text;
13260
+ var l = n0(o, s, r), u = l.text;
13255
13261
  s = l.caret, e.value = u, wd(e, s), a && a(o);
13256
13262
  }
13257
- var f0 = [
13263
+ var p0 = [
13258
13264
  "ref",
13259
13265
  "parse",
13260
13266
  "format",
@@ -13278,14 +13284,14 @@ function at(e) {
13278
13284
  for (var t = 1; t < arguments.length; t++) {
13279
13285
  var r = arguments[t] != null ? arguments[t] : {};
13280
13286
  t % 2 ? Zi(Object(r), !0).forEach(function(n) {
13281
- p0(e, n, r[n]);
13287
+ m0(e, n, r[n]);
13282
13288
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zi(Object(r)).forEach(function(n) {
13283
13289
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
13284
13290
  });
13285
13291
  }
13286
13292
  return e;
13287
13293
  }
13288
- function p0(e, t, r) {
13294
+ function m0(e, t, r) {
13289
13295
  return t in e ? Object.defineProperty(e, t, {
13290
13296
  value: r,
13291
13297
  enumerable: !0,
@@ -13293,9 +13299,9 @@ function p0(e, t, r) {
13293
13299
  writable: !0
13294
13300
  }) : e[t] = r, e;
13295
13301
  }
13296
- function m0(e, t) {
13302
+ function h0(e, t) {
13297
13303
  if (e == null) return {};
13298
- var r = h0(e, t), n, a;
13304
+ var r = v0(e, t), n, a;
13299
13305
  if (Object.getOwnPropertySymbols) {
13300
13306
  var i = Object.getOwnPropertySymbols(e);
13301
13307
  for (a = 0; a < i.length; a++)
@@ -13303,18 +13309,18 @@ function m0(e, t) {
13303
13309
  }
13304
13310
  return r;
13305
13311
  }
13306
- function h0(e, t) {
13312
+ function v0(e, t) {
13307
13313
  if (e == null) return {};
13308
13314
  var r = {}, n = Object.keys(e), a, i;
13309
13315
  for (i = 0; i < n.length; i++)
13310
13316
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
13311
13317
  return r;
13312
13318
  }
13313
- function v0(e) {
13314
- var t = e.ref, r = e.parse, n = e.format, a = e.value, i = e.defaultValue, o = e.controlled, s = o === void 0 ? !0 : o, d = e.onChange, l = e.onKeyDown, u = m0(e, f0), p = Te(), f = Be(function(g) {
13319
+ function y0(e) {
13320
+ var t = e.ref, r = e.parse, n = e.format, a = e.value, i = e.defaultValue, o = e.controlled, s = o === void 0 ? !0 : o, d = e.onChange, l = e.onKeyDown, u = h0(e, p0), p = Te(), f = Be(function(g) {
13315
13321
  p.current = g, t && (typeof t == "function" ? t(g) : t.current = g);
13316
13322
  }, [t]), m = Be(function(g) {
13317
- return l0(g, p.current, r, n, d);
13323
+ return c0(g, p.current, r, n, d);
13318
13324
  }, [
13319
13325
  p,
13320
13326
  r,
@@ -13322,7 +13328,7 @@ function v0(e) {
13322
13328
  d
13323
13329
  ]), h = Be(function(g) {
13324
13330
  if (l && l(g), !g.defaultPrevented)
13325
- return c0(g, p.current, r, n, d);
13331
+ return u0(g, p.current, r, n, d);
13326
13332
  }, [
13327
13333
  p,
13328
13334
  r,
@@ -13339,7 +13345,7 @@ function v0(e) {
13339
13345
  function Xi(e) {
13340
13346
  return e == null;
13341
13347
  }
13342
- var O = /* @__PURE__ */ Na(H1(), 1), y0 = [
13348
+ var O = /* @__PURE__ */ Na(q1(), 1), $0 = [
13343
13349
  "inputComponent",
13344
13350
  "parse",
13345
13351
  "format",
@@ -13360,18 +13366,18 @@ function Ji(e, t) {
13360
13366
  }
13361
13367
  return r;
13362
13368
  }
13363
- function $0(e) {
13369
+ function g0(e) {
13364
13370
  for (var t = 1; t < arguments.length; t++) {
13365
13371
  var r = arguments[t] != null ? arguments[t] : {};
13366
13372
  t % 2 ? Ji(Object(r), !0).forEach(function(n) {
13367
- g0(e, n, r[n]);
13373
+ b0(e, n, r[n]);
13368
13374
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ji(Object(r)).forEach(function(n) {
13369
13375
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
13370
13376
  });
13371
13377
  }
13372
13378
  return e;
13373
13379
  }
13374
- function g0(e, t, r) {
13380
+ function b0(e, t, r) {
13375
13381
  return t in e ? Object.defineProperty(e, t, {
13376
13382
  value: r,
13377
13383
  enumerable: !0,
@@ -13379,9 +13385,9 @@ function g0(e, t, r) {
13379
13385
  writable: !0
13380
13386
  }) : e[t] = r, e;
13381
13387
  }
13382
- function b0(e, t) {
13388
+ function N0(e, t) {
13383
13389
  if (e == null) return {};
13384
- var r = N0(e, t), n, a;
13390
+ var r = C0(e, t), n, a;
13385
13391
  if (Object.getOwnPropertySymbols) {
13386
13392
  var i = Object.getOwnPropertySymbols(e);
13387
13393
  for (a = 0; a < i.length; a++)
@@ -13389,7 +13395,7 @@ function b0(e, t) {
13389
13395
  }
13390
13396
  return r;
13391
13397
  }
13392
- function N0(e, t) {
13398
+ function C0(e, t) {
13393
13399
  if (e == null) return {};
13394
13400
  var r = {}, n = Object.keys(e), a, i;
13395
13401
  for (i = 0; i < n.length; i++)
@@ -13397,7 +13403,7 @@ function N0(e, t) {
13397
13403
  return r;
13398
13404
  }
13399
13405
  function Dr(e, t) {
13400
- var r = e.inputComponent, n = r === void 0 ? "input" : r, a = e.parse, i = e.format, o = e.value, s = e.defaultValue, d = e.onChange, l = e.controlled, u = e.onKeyDown, p = e.type, f = p === void 0 ? "text" : p, m = b0(e, y0), h = v0($0({
13406
+ var r = e.inputComponent, n = r === void 0 ? "input" : r, a = e.parse, i = e.format, o = e.value, s = e.defaultValue, d = e.onChange, l = e.controlled, u = e.onKeyDown, p = e.type, f = p === void 0 ? "text" : p, m = N0(e, $0), h = y0(g0({
13401
13407
  ref: t,
13402
13408
  parse: a,
13403
13409
  format: i,
@@ -13424,7 +13430,7 @@ Dr.propTypes = {
13424
13430
  onCut: O.default.func,
13425
13431
  onPaste: O.default.func
13426
13432
  };
13427
- var C0 = Dr;
13433
+ var S0 = Dr;
13428
13434
  function Qi(e, t) {
13429
13435
  e = e.split("-"), t = t.split("-");
13430
13436
  for (var r = e[0].split("."), n = t[0].split("."), a = 0; a < 3; a++) {
@@ -13436,9 +13442,9 @@ function Qi(e, t) {
13436
13442
  }
13437
13443
  return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
13438
13444
  }
13439
- var S0 = {}.constructor;
13445
+ var P0 = {}.constructor;
13440
13446
  function Qe(e) {
13441
- return e != null && e.constructor === S0;
13447
+ return e != null && e.constructor === P0;
13442
13448
  }
13443
13449
  function yt(e) {
13444
13450
  "@babel/helpers - typeof";
@@ -13454,17 +13460,17 @@ function on(e, t) {
13454
13460
  function eo(e, t) {
13455
13461
  for (var r = 0; r < t.length; r++) {
13456
13462
  var n = t[r];
13457
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, P0(n.key), n);
13463
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, w0(n.key), n);
13458
13464
  }
13459
13465
  }
13460
13466
  function sn(e, t, r) {
13461
13467
  return t && eo(e.prototype, t), r && eo(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
13462
13468
  }
13463
- function P0(e) {
13464
- var t = w0(e, "string");
13469
+ function w0(e) {
13470
+ var t = _0(e, "string");
13465
13471
  return yt(t) == "symbol" ? t : t + "";
13466
13472
  }
13467
- function w0(e, t) {
13473
+ function _0(e, t) {
13468
13474
  if (yt(e) != "object" || !e) return e;
13469
13475
  var r = e[Symbol.toPrimitive];
13470
13476
  if (r !== void 0) {
@@ -13474,7 +13480,7 @@ function w0(e, t) {
13474
13480
  }
13475
13481
  return (t === "string" ? String : Number)(e);
13476
13482
  }
13477
- var _0 = "1.2.0", O0 = "1.7.35", to = " ext. ", E0 = /^\d+$/, me = /* @__PURE__ */ (function() {
13483
+ var O0 = "1.2.0", E0 = "1.7.35", to = " ext. ", I0 = /^\d+$/, me = /* @__PURE__ */ (function() {
13478
13484
  function e(t) {
13479
13485
  on(this, e), _d(t), this.metadata = t, Ed.call(this, t);
13480
13486
  }
@@ -13533,7 +13539,7 @@ var _0 = "1.2.0", O0 = "1.7.35", to = " ext. ", E0 = /^\d+$/, me = /* @__PURE__
13533
13539
  {
13534
13540
  key: "selectNumberingPlan",
13535
13541
  value: function(r, n) {
13536
- if (r && E0.test(r) && (n = r, r = null), r && r !== "001") {
13542
+ if (r && I0.test(r) && (n = r, r = null), r && r !== "001") {
13537
13543
  if (!this.hasCountry(r)) throw new Error("Unknown country: ".concat(r));
13538
13544
  this.numberingPlan = new ro(this.getCountryMetadata(r), this);
13539
13545
  } else if (n) {
@@ -13718,7 +13724,7 @@ var _0 = "1.2.0", O0 = "1.7.35", to = " ext. ", E0 = /^\d+$/, me = /* @__PURE__
13718
13724
  value: function() {
13719
13725
  var r = this;
13720
13726
  return (this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || []).map(function(n) {
13721
- return new I0(n, r);
13727
+ return new T0(n, r);
13722
13728
  });
13723
13729
  }
13724
13730
  },
@@ -13791,7 +13797,7 @@ var _0 = "1.2.0", O0 = "1.7.35", to = " ext. ", E0 = /^\d+$/, me = /* @__PURE__
13791
13797
  {
13792
13798
  key: "type",
13793
13799
  value: function(r) {
13794
- if (this.hasTypes() && no(this.types(), r)) return new A0(no(this.types(), r), this);
13800
+ if (this.hasTypes() && no(this.types(), r)) return new x0(no(this.types(), r), this);
13795
13801
  }
13796
13802
  },
13797
13803
  {
@@ -13801,7 +13807,7 @@ var _0 = "1.2.0", O0 = "1.7.35", to = " ext. ", E0 = /^\d+$/, me = /* @__PURE__
13801
13807
  }
13802
13808
  }
13803
13809
  ]);
13804
- })(), I0 = /* @__PURE__ */ (function() {
13810
+ })(), T0 = /* @__PURE__ */ (function() {
13805
13811
  function e(t, r) {
13806
13812
  on(this, e), this._format = t, this.metadata = r;
13807
13813
  }
@@ -13845,7 +13851,7 @@ var _0 = "1.2.0", O0 = "1.7.35", to = " ext. ", E0 = /^\d+$/, me = /* @__PURE__
13845
13851
  {
13846
13852
  key: "usesNationalPrefix",
13847
13853
  value: function() {
13848
- return !!(this.nationalPrefixFormattingRule() && !T0.test(this.nationalPrefixFormattingRule()));
13854
+ return !!(this.nationalPrefixFormattingRule() && !A0.test(this.nationalPrefixFormattingRule()));
13849
13855
  }
13850
13856
  },
13851
13857
  {
@@ -13855,7 +13861,7 @@ var _0 = "1.2.0", O0 = "1.7.35", to = " ext. ", E0 = /^\d+$/, me = /* @__PURE__
13855
13861
  }
13856
13862
  }
13857
13863
  ]);
13858
- })(), T0 = /^\(?\$1\)?$/, A0 = /* @__PURE__ */ (function() {
13864
+ })(), A0 = /^\(?\$1\)?$/, x0 = /* @__PURE__ */ (function() {
13859
13865
  function e(t, r) {
13860
13866
  on(this, e), this.type = t, this.metadata = r;
13861
13867
  }
@@ -13898,9 +13904,9 @@ function no(e, t) {
13898
13904
  }
13899
13905
  function _d(e) {
13900
13906
  if (!e) throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
13901
- if (!Qe(e) || !Qe(e.countries)) throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Qe(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + x0(e) + ": " + e, "."));
13907
+ if (!Qe(e) || !Qe(e.countries)) throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Qe(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + k0(e) + ": " + e, "."));
13902
13908
  }
13903
- var x0 = function(t) {
13909
+ var k0 = function(t) {
13904
13910
  return yt(t);
13905
13911
  };
13906
13912
  function Ke(e, t) {
@@ -13912,12 +13918,12 @@ function Od(e, t) {
13912
13918
  }
13913
13919
  function Ed(e) {
13914
13920
  var t = e.version;
13915
- typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? Qi(t, _0) === -1 ? this.v2 = !0 : Qi(t, O0) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
13921
+ typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? Qi(t, O0) === -1 ? this.v2 = !0 : Qi(t, E0) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
13916
13922
  }
13917
- function k0(e, t) {
13923
+ function M0(e, t) {
13918
13924
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
13919
13925
  if (r) return (r = r.call(e)).next.bind(r);
13920
- if (Array.isArray(e) || (r = M0(e)) || t && e && typeof e.length == "number") {
13926
+ if (Array.isArray(e) || (r = D0(e)) || t && e && typeof e.length == "number") {
13921
13927
  r && (e = r);
13922
13928
  var n = 0;
13923
13929
  return function() {
@@ -13930,7 +13936,7 @@ function k0(e, t) {
13930
13936
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13931
13937
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13932
13938
  }
13933
- function M0(e, t) {
13939
+ function D0(e, t) {
13934
13940
  if (e) {
13935
13941
  if (typeof e == "string") return ao(e, t);
13936
13942
  var r = {}.toString.call(e).slice(8, -1);
@@ -13942,8 +13948,8 @@ function ao(e, t) {
13942
13948
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
13943
13949
  return n;
13944
13950
  }
13945
- function D0(e, t) {
13946
- for (var r = e.slice(), n = k0(t), a; !(a = n()).done; ) {
13951
+ function R0(e, t) {
13952
+ for (var r = e.slice(), n = M0(t), a; !(a = n()).done; ) {
13947
13953
  var i = a.value;
13948
13954
  e.indexOf(i) < 0 && r.push(i);
13949
13955
  }
@@ -13961,12 +13967,12 @@ function Id(e, t, r, n) {
13961
13967
  if (r === "FIXED_LINE_OR_MOBILE") {
13962
13968
  if (!n.type("FIXED_LINE")) return Id(e, t, "MOBILE", n);
13963
13969
  var o = n.type("MOBILE");
13964
- o && (i = D0(i, o.possibleLengths()));
13970
+ o && (i = R0(i, o.possibleLengths()));
13965
13971
  } else if (r && !a) return "INVALID_LENGTH";
13966
13972
  var s = e.length, d = i[0];
13967
13973
  return d === s ? "IS_POSSIBLE" : d > s ? "TOO_SHORT" : i[i.length - 1] < s ? "TOO_LONG" : i.indexOf(s, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
13968
13974
  }
13969
- function R0(e, t, r) {
13975
+ function F0(e, t, r) {
13970
13976
  if (t === void 0 && (t = {}), r = new me(r), t.v2) {
13971
13977
  if (!e.countryCallingCode) throw new Error("Invalid phone number object passed");
13972
13978
  r.selectNumberingPlan(e.countryCallingCode);
@@ -13990,10 +13996,10 @@ function Td(e, t, r) {
13990
13996
  function Ve(e, t) {
13991
13997
  return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
13992
13998
  }
13993
- function F0(e, t) {
13999
+ function L0(e, t) {
13994
14000
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
13995
14001
  if (r) return (r = r.call(e)).next.bind(r);
13996
- if (Array.isArray(e) || (r = L0(e)) || t && e && typeof e.length == "number") {
14002
+ if (Array.isArray(e) || (r = j0(e)) || t && e && typeof e.length == "number") {
13997
14003
  r && (e = r);
13998
14004
  var n = 0;
13999
14005
  return function() {
@@ -14006,7 +14012,7 @@ function F0(e, t) {
14006
14012
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14007
14013
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14008
14014
  }
14009
- function L0(e, t) {
14015
+ function j0(e, t) {
14010
14016
  if (e) {
14011
14017
  if (typeof e == "string") return io(e, t);
14012
14018
  var r = {}.toString.call(e).slice(8, -1);
@@ -14018,7 +14024,7 @@ function io(e, t) {
14018
14024
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
14019
14025
  return n;
14020
14026
  }
14021
- var j0 = [
14027
+ var B0 = [
14022
14028
  "MOBILE",
14023
14029
  "PREMIUM_RATE",
14024
14030
  "TOLL_FREE",
@@ -14036,7 +14042,7 @@ function ja(e, t, r) {
14036
14042
  if (Ve(n, r.nationalNumberPattern())) {
14037
14043
  if (xn(n, "FIXED_LINE", r))
14038
14044
  return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || xn(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
14039
- for (var a = F0(j0), i; !(i = a()).done; ) {
14045
+ for (var a = L0(B0), i; !(i = a()).done; ) {
14040
14046
  var o = i.value;
14041
14047
  if (xn(n, o, r)) return o;
14042
14048
  }
@@ -14047,20 +14053,20 @@ function xn(e, t, r) {
14047
14053
  var n = r.type(t);
14048
14054
  return !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : Ve(e, n.pattern());
14049
14055
  }
14050
- function B0(e, t, r) {
14056
+ function U0(e, t, r) {
14051
14057
  return t = t || {}, r = new me(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes() ? ja(e, t, r.metadata) !== void 0 : Ve(t.v2 ? e.nationalNumber : e.phone, r.nationalNumberPattern());
14052
14058
  }
14053
- function U0(e, t, r) {
14059
+ function V0(e, t, r) {
14054
14060
  var n = new me(r).getCountryCodesForCallingCode(e);
14055
14061
  return n ? n.filter(function(a) {
14056
- return V0(t, a, r);
14062
+ return z0(t, a, r);
14057
14063
  }) : [];
14058
14064
  }
14059
- function V0(e, t, r) {
14065
+ function z0(e, t, r) {
14060
14066
  var n = new me(r);
14061
14067
  return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
14062
14068
  }
14063
- var Ce = "0-90-9٠-٩۰-۹", z0 = "-‐-―−ー-", G0 = "//", W0 = "..", H0 = "  ­​⁠ ", q0 = "()()[]\\[\\]", K0 = "~⁓∼~", De = "".concat(z0).concat(G0).concat(W0).concat(H0).concat(q0).concat(K0), ln = "++", Y0 = new RegExp("([" + Ce + "])");
14069
+ var Ce = "0-90-9٠-٩۰-۹", G0 = "-‐-―−ー-", W0 = "//", H0 = "..", q0 = "  ­​⁠ ", K0 = "()()[]\\[\\]", Y0 = "~⁓∼~", De = "".concat(G0).concat(W0).concat(H0).concat(q0).concat(K0).concat(Y0), ln = "++", Z0 = new RegExp("([" + Ce + "])");
14064
14070
  function Ad(e, t, r, n) {
14065
14071
  if (t) {
14066
14072
  var a = new me(n);
@@ -14068,7 +14074,7 @@ function Ad(e, t, r, n) {
14068
14074
  var i = new RegExp(a.IDDPrefix());
14069
14075
  if (e.search(i) === 0) {
14070
14076
  e = e.slice(e.match(i)[0].length);
14071
- var o = e.match(Y0);
14077
+ var o = e.match(Z0);
14072
14078
  if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0"))
14073
14079
  return e;
14074
14080
  }
@@ -14099,10 +14105,10 @@ function na(e, t) {
14099
14105
  }
14100
14106
  return { nationalNumber: e };
14101
14107
  }
14102
- function Z0(e, t) {
14108
+ function X0(e, t) {
14103
14109
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14104
14110
  if (r) return (r = r.call(e)).next.bind(r);
14105
- if (Array.isArray(e) || (r = X0(e)) || t && e && typeof e.length == "number") {
14111
+ if (Array.isArray(e) || (r = J0(e)) || t && e && typeof e.length == "number") {
14106
14112
  r && (e = r);
14107
14113
  var n = 0;
14108
14114
  return function() {
@@ -14115,7 +14121,7 @@ function Z0(e, t) {
14115
14121
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14116
14122
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14117
14123
  }
14118
- function X0(e, t) {
14124
+ function J0(e, t) {
14119
14125
  if (e) {
14120
14126
  if (typeof e == "string") return oo(e, t);
14121
14127
  var r = {}.toString.call(e).slice(8, -1);
@@ -14130,7 +14136,7 @@ function oo(e, t) {
14130
14136
  function xd(e, t) {
14131
14137
  var r = t.countries, n = t.metadata;
14132
14138
  n = new me(n);
14133
- for (var a = Z0(r), i; !(i = a()).done; ) {
14139
+ for (var a = X0(r), i; !(i = a()).done; ) {
14134
14140
  var o = i.value;
14135
14141
  if (n.selectNumberingPlan(o), n.leadingDigits()) {
14136
14142
  if (e && e.search(n.leadingDigits()) === 0) return o;
@@ -14140,10 +14146,10 @@ function xd(e, t) {
14140
14146
  }, void 0, n.metadata)) return o;
14141
14147
  }
14142
14148
  }
14143
- var J0 = !1;
14149
+ var Q0 = !1;
14144
14150
  function Ba(e, t) {
14145
14151
  var r = t.nationalNumber, n = t.metadata;
14146
- if (J0 && n.isNonGeographicCallingCode(e))
14152
+ if (Q0 && n.isNonGeographicCallingCode(e))
14147
14153
  return "001";
14148
14154
  var a = n.getCountryCodesForCallingCode(e);
14149
14155
  if (a)
@@ -14155,11 +14161,11 @@ function Ba(e, t) {
14155
14161
  function aa(e, t, r) {
14156
14162
  var n = na(e, r), a = n.carrierCode, i = n.nationalNumber;
14157
14163
  if (i !== e) {
14158
- if (!Q0(e, i, r)) return { nationalNumber: e };
14164
+ if (!ep(e, i, r)) return { nationalNumber: e };
14159
14165
  if (r.numberingPlan.possibleLengths() && (t || (t = Ba(r.numberingPlan.callingCode(), {
14160
14166
  nationalNumber: i,
14161
14167
  metadata: r
14162
- })), !ep(i, t, r)))
14168
+ })), !tp(i, t, r)))
14163
14169
  return { nationalNumber: e };
14164
14170
  }
14165
14171
  return {
@@ -14167,10 +14173,10 @@ function aa(e, t, r) {
14167
14173
  carrierCode: a
14168
14174
  };
14169
14175
  }
14170
- function Q0(e, t, r) {
14176
+ function ep(e, t, r) {
14171
14177
  return !(Ve(e, r.nationalNumberPattern()) && !Ve(t, r.nationalNumberPattern()));
14172
14178
  }
14173
- function ep(e, t, r) {
14179
+ function tp(e, t, r) {
14174
14180
  switch (dn(e, t, r)) {
14175
14181
  case "TOO_SHORT":
14176
14182
  case "INVALID_LENGTH":
@@ -14234,27 +14240,27 @@ function Rd(e, t, r) {
14234
14240
  var i = e.replace(new RegExp(t.pattern()), n ? t.internationalFormat() : a && t.nationalPrefixFormattingRule() ? t.format().replace(Dd, t.nationalPrefixFormattingRule()) : t.format());
14235
14241
  return n ? Md(i) : i;
14236
14242
  }
14237
- var tp = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
14238
- function rp(e, t, r) {
14243
+ var rp = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
14244
+ function np(e, t, r) {
14239
14245
  var n = new me(r);
14240
14246
  if (n.selectNumberingPlan(e, t), n.defaultIDDPrefix()) return n.defaultIDDPrefix();
14241
- if (tp.test(n.IDDPrefix())) return n.IDDPrefix();
14247
+ if (rp.test(n.IDDPrefix())) return n.IDDPrefix();
14242
14248
  }
14243
- var np = ";ext=", it = function(t) {
14249
+ var ap = ";ext=", it = function(t) {
14244
14250
  return "([".concat(Ce, "]{1,").concat(t, "})");
14245
14251
  };
14246
14252
  function Fd(e) {
14247
- var t = "20", r = "15", n = "9", a = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", p = "[  \\t]*", f = "(?:,{2}|;)", m = np + it(t), h = i + d + o + it(t) + s, y = i + l + o + it(n) + s, g = u + it(a) + "#", b = p + f + o + it(r) + s, $ = p + "(?:,)+" + o + it(n) + s;
14253
+ var t = "20", r = "15", n = "9", a = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", p = "[  \\t]*", f = "(?:,{2}|;)", m = ap + it(t), h = i + d + o + it(t) + s, y = i + l + o + it(n) + s, g = u + it(a) + "#", b = p + f + o + it(r) + s, $ = p + "(?:,)+" + o + it(n) + s;
14248
14254
  return m + "|" + h + "|" + y + "|" + g + "|" + b + "|" + $;
14249
14255
  }
14250
- var ap = "[" + Ce + "]{2}", ip = "[" + ln + "]{0,1}(?:[" + De + "]*[" + Ce + "]){3,}[" + De + Ce + "]*", op = new RegExp("^[" + ln + "]{0,1}(?:[" + De + "]*[" + Ce + "]){1,2}$", "i"), sp = ip + "(?:" + Fd() + ")?", dp = new RegExp("^" + ap + "$|^" + sp + "$", "i");
14251
- function lp(e) {
14252
- return e.length >= 2 && dp.test(e);
14253
- }
14256
+ var ip = "[" + Ce + "]{2}", op = "[" + ln + "]{0,1}(?:[" + De + "]*[" + Ce + "]){3,}[" + De + Ce + "]*", sp = new RegExp("^[" + ln + "]{0,1}(?:[" + De + "]*[" + Ce + "]){1,2}$", "i"), dp = op + "(?:" + Fd() + ")?", lp = new RegExp("^" + ip + "$|^" + dp + "$", "i");
14254
14257
  function cp(e) {
14255
- return op.test(e);
14258
+ return e.length >= 2 && lp.test(e);
14256
14259
  }
14257
14260
  function up(e) {
14261
+ return sp.test(e);
14262
+ }
14263
+ function fp(e) {
14258
14264
  var t = e.number, r = e.ext;
14259
14265
  if (!t) return "";
14260
14266
  if (t[0] !== "+") throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
@@ -14263,8 +14269,8 @@ function up(e) {
14263
14269
  var so = { formatExtension: function(t, r, n) {
14264
14270
  return "".concat(t).concat(n.ext()).concat(r);
14265
14271
  } };
14266
- function fp(e, t, r, n) {
14267
- if (r ? r = hp({}, so, r) : r = so, n = new me(n), e.country && e.country !== "001") {
14272
+ function pp(e, t, r, n) {
14273
+ if (r ? r = vp({}, so, r) : r = so, n = new me(n), e.country && e.country !== "001") {
14268
14274
  if (!n.hasCountry(e.country)) throw new Error("Unknown country: ".concat(e.country));
14269
14275
  n.selectNumberingPlan(e.country);
14270
14276
  } else if (e.countryCallingCode) n.selectNumberingPlan(e.countryCallingCode);
@@ -14278,20 +14284,20 @@ function fp(e, t, r, n) {
14278
14284
  case "E.164":
14279
14285
  return "+".concat(a).concat(i);
14280
14286
  case "RFC3966":
14281
- return up({
14287
+ return fp({
14282
14288
  number: "+".concat(a).concat(i),
14283
14289
  ext: e.ext
14284
14290
  });
14285
14291
  case "IDD":
14286
14292
  if (!r.fromCountry) return;
14287
- var s = mp(i, e.carrierCode, a, r.fromCountry, n);
14293
+ var s = hp(i, e.carrierCode, a, r.fromCountry, n);
14288
14294
  return s ? kn(s, e.ext, n, r.formatExtension) : void 0;
14289
14295
  default:
14290
14296
  throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
14291
14297
  }
14292
14298
  }
14293
14299
  function Rr(e, t, r, n, a) {
14294
- var i = pp(n.formats(), e);
14300
+ var i = mp(n.formats(), e);
14295
14301
  return i ? Rd(e, i, {
14296
14302
  useInternationalFormat: r === "INTERNATIONAL",
14297
14303
  withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && a && a.nationalPrefix === !1),
@@ -14299,8 +14305,8 @@ function Rr(e, t, r, n, a) {
14299
14305
  metadata: n
14300
14306
  }) : e;
14301
14307
  }
14302
- function pp(e, t) {
14303
- return vp(e, function(r) {
14308
+ function mp(e, t) {
14309
+ return yp(e, function(r) {
14304
14310
  if (r.leadingDigitsPatterns().length > 0) {
14305
14311
  var n = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
14306
14312
  if (t.search(n) !== 0) return !1;
@@ -14311,15 +14317,15 @@ function pp(e, t) {
14311
14317
  function kn(e, t, r, n) {
14312
14318
  return t ? n(e, t, r) : e;
14313
14319
  }
14314
- function mp(e, t, r, n, a) {
14320
+ function hp(e, t, r, n, a) {
14315
14321
  if (Ke(n, a.metadata) === r) {
14316
14322
  var i = Rr(e, t, "NATIONAL", a);
14317
14323
  return r === "1" ? r + " " + i : i;
14318
14324
  }
14319
- var o = rp(n, void 0, a.metadata);
14325
+ var o = np(n, void 0, a.metadata);
14320
14326
  if (o) return "".concat(o, " ").concat(r, " ").concat(Rr(e, null, "INTERNATIONAL", a));
14321
14327
  }
14322
- function hp() {
14328
+ function vp() {
14323
14329
  for (var e = 1, t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
14324
14330
  for (; e < r.length; ) {
14325
14331
  if (r[e]) for (var a in r[e]) r[0][a] = r[e][a];
@@ -14327,7 +14333,7 @@ function hp() {
14327
14333
  }
14328
14334
  return r[0];
14329
14335
  }
14330
- function vp(e, t) {
14336
+ function yp(e, t) {
14331
14337
  for (var r = 0; r < e.length; ) {
14332
14338
  if (t(e[r])) return e[r];
14333
14339
  r++;
@@ -14355,14 +14361,14 @@ function co(e) {
14355
14361
  for (var t = 1; t < arguments.length; t++) {
14356
14362
  var r = arguments[t] != null ? arguments[t] : {};
14357
14363
  t % 2 ? lo(Object(r), !0).forEach(function(n) {
14358
- yp(e, n, r[n]);
14364
+ $p(e, n, r[n]);
14359
14365
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : lo(Object(r)).forEach(function(n) {
14360
14366
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
14361
14367
  });
14362
14368
  }
14363
14369
  return e;
14364
14370
  }
14365
- function yp(e, t, r) {
14371
+ function $p(e, t, r) {
14366
14372
  return (t = Ld(t)) in e ? Object.defineProperty(e, t, {
14367
14373
  value: r,
14368
14374
  enumerable: !0,
@@ -14370,7 +14376,7 @@ function yp(e, t, r) {
14370
14376
  writable: !0
14371
14377
  }) : e[t] = r, e;
14372
14378
  }
14373
- function $p(e, t) {
14379
+ function gp(e, t) {
14374
14380
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
14375
14381
  }
14376
14382
  function uo(e, t) {
@@ -14379,14 +14385,14 @@ function uo(e, t) {
14379
14385
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ld(n.key), n);
14380
14386
  }
14381
14387
  }
14382
- function gp(e, t, r) {
14388
+ function bp(e, t, r) {
14383
14389
  return t && uo(e.prototype, t), r && uo(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
14384
14390
  }
14385
14391
  function Ld(e) {
14386
- var t = bp(e, "string");
14392
+ var t = Np(e, "string");
14387
14393
  return kt(t) == "symbol" ? t : t + "";
14388
14394
  }
14389
- function bp(e, t) {
14395
+ function Np(e, t) {
14390
14396
  if (kt(e) != "object" || !e) return e;
14391
14397
  var r = e[Symbol.toPrimitive];
14392
14398
  if (r !== void 0) {
@@ -14396,27 +14402,27 @@ function bp(e, t) {
14396
14402
  }
14397
14403
  return (t === "string" ? String : Number)(e);
14398
14404
  }
14399
- var Np = !1, jd = /* @__PURE__ */ (function() {
14405
+ var Cp = !1, jd = /* @__PURE__ */ (function() {
14400
14406
  function e(t, r, n) {
14401
- if ($p(this, e), !t) throw new TypeError("First argument is required");
14407
+ if (gp(this, e), !t) throw new TypeError("First argument is required");
14402
14408
  if (typeof t != "string") throw new TypeError("First argument must be a string");
14403
14409
  if (t[0] === "+" && !r) throw new TypeError("`metadata` argument not passed");
14404
14410
  if (Qe(r) && Qe(r.countries)) {
14405
14411
  n = r;
14406
14412
  var a = t;
14407
- if (!Pp.test(a)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
14413
+ if (!wp.test(a)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
14408
14414
  var i = Ua(a, void 0, void 0, void 0, n), o = i.countryCallingCode;
14409
14415
  if (r = i.number, t = o, !r) throw new Error("Invalid `number` argument passed: too short");
14410
14416
  }
14411
14417
  if (!r) throw new TypeError("`nationalNumber` argument is required");
14412
14418
  if (typeof r != "string") throw new TypeError("`nationalNumber` argument must be a string");
14413
14419
  _d(n);
14414
- var s = Sp(t, n), d = s.country, l = s.countryCallingCode;
14420
+ var s = Pp(t, n), d = s.country, l = s.countryCallingCode;
14415
14421
  this.country = d, this.countryCallingCode = l, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
14416
14422
  return n;
14417
14423
  };
14418
14424
  }
14419
- return gp(e, [
14425
+ return bp(e, [
14420
14426
  {
14421
14427
  key: "setExt",
14422
14428
  value: function(r) {
@@ -14426,19 +14432,19 @@ var Np = !1, jd = /* @__PURE__ */ (function() {
14426
14432
  {
14427
14433
  key: "getPossibleCountries",
14428
14434
  value: function() {
14429
- return this.country ? [this.country] : U0(this.countryCallingCode, this.nationalNumber, this.getMetadata());
14435
+ return this.country ? [this.country] : V0(this.countryCallingCode, this.nationalNumber, this.getMetadata());
14430
14436
  }
14431
14437
  },
14432
14438
  {
14433
14439
  key: "isPossible",
14434
14440
  value: function() {
14435
- return R0(this, { v2: !0 }, this.getMetadata());
14441
+ return F0(this, { v2: !0 }, this.getMetadata());
14436
14442
  }
14437
14443
  },
14438
14444
  {
14439
14445
  key: "isValid",
14440
14446
  value: function() {
14441
- return B0(this, { v2: !0 }, this.getMetadata());
14447
+ return U0(this, { v2: !0 }, this.getMetadata());
14442
14448
  }
14443
14449
  },
14444
14450
  {
@@ -14462,7 +14468,7 @@ var Np = !1, jd = /* @__PURE__ */ (function() {
14462
14468
  {
14463
14469
  key: "format",
14464
14470
  value: function(r, n) {
14465
- return fp(this, r, n ? co(co({}, n), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
14471
+ return pp(this, r, n ? co(co({}, n), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
14466
14472
  }
14467
14473
  },
14468
14474
  {
@@ -14484,17 +14490,17 @@ var Np = !1, jd = /* @__PURE__ */ (function() {
14484
14490
  }
14485
14491
  }
14486
14492
  ]);
14487
- })(), Cp = function(t) {
14493
+ })(), Sp = function(t) {
14488
14494
  return /^[A-Z]{2}$/.test(t);
14489
14495
  };
14490
- function Sp(e, t) {
14496
+ function Pp(e, t) {
14491
14497
  var r, n, a = new me(t);
14492
- return Cp(e) ? (r = e, a.selectNumberingPlan(r), n = a.countryCallingCode()) : (n = e, Np && a.isNonGeographicCallingCode(n) && (r = "001")), {
14498
+ return Sp(e) ? (r = e, a.selectNumberingPlan(r), n = a.countryCallingCode()) : (n = e, Cp && a.isNonGeographicCallingCode(n) && (r = "001")), {
14493
14499
  country: r,
14494
14500
  countryCallingCode: n
14495
14501
  };
14496
14502
  }
14497
- var Pp = /^\+\d+$/;
14503
+ var wp = /^\+\d+$/;
14498
14504
  function $t(e) {
14499
14505
  "@babel/helpers - typeof";
14500
14506
  return $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -14506,17 +14512,17 @@ function $t(e) {
14506
14512
  function fo(e, t) {
14507
14513
  for (var r = 0; r < t.length; r++) {
14508
14514
  var n = t[r];
14509
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, _p(n.key), n);
14515
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Op(n.key), n);
14510
14516
  }
14511
14517
  }
14512
- function wp(e, t, r) {
14518
+ function _p(e, t, r) {
14513
14519
  return t && fo(e.prototype, t), r && fo(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
14514
14520
  }
14515
- function _p(e) {
14516
- var t = Op(e, "string");
14521
+ function Op(e) {
14522
+ var t = Ep(e, "string");
14517
14523
  return $t(t) == "symbol" ? t : t + "";
14518
14524
  }
14519
- function Op(e, t) {
14525
+ function Ep(e, t) {
14520
14526
  if ($t(e) != "object" || !e) return e;
14521
14527
  var r = e[Symbol.toPrimitive];
14522
14528
  if (r !== void 0) {
@@ -14526,22 +14532,22 @@ function Op(e, t) {
14526
14532
  }
14527
14533
  return (t === "string" ? String : Number)(e);
14528
14534
  }
14529
- function Ep(e, t) {
14535
+ function Ip(e, t) {
14530
14536
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
14531
14537
  }
14532
- function Ip(e, t, r) {
14533
- return t = Dt(t), Tp(e, Va() ? Reflect.construct(t, r || [], Dt(e).constructor) : t.apply(e, r));
14538
+ function Tp(e, t, r) {
14539
+ return t = Dt(t), Ap(e, Va() ? Reflect.construct(t, r || [], Dt(e).constructor) : t.apply(e, r));
14534
14540
  }
14535
- function Tp(e, t) {
14541
+ function Ap(e, t) {
14536
14542
  if (t && ($t(t) == "object" || typeof t == "function")) return t;
14537
14543
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
14538
- return Ap(e);
14544
+ return xp(e);
14539
14545
  }
14540
- function Ap(e) {
14546
+ function xp(e) {
14541
14547
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14542
14548
  return e;
14543
14549
  }
14544
- function xp(e, t) {
14550
+ function kp(e, t) {
14545
14551
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
14546
14552
  e.prototype = Object.create(t && t.prototype, { constructor: {
14547
14553
  value: e,
@@ -14552,14 +14558,14 @@ function xp(e, t) {
14552
14558
  function ia(e) {
14553
14559
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
14554
14560
  return ia = function(n) {
14555
- if (n === null || !Mp(n)) return n;
14561
+ if (n === null || !Dp(n)) return n;
14556
14562
  if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
14557
14563
  if (t !== void 0) {
14558
14564
  if (t.has(n)) return t.get(n);
14559
14565
  t.set(n, a);
14560
14566
  }
14561
14567
  function a() {
14562
- return kp(n, arguments, Dt(this).constructor);
14568
+ return Mp(n, arguments, Dt(this).constructor);
14563
14569
  }
14564
14570
  return a.prototype = Object.create(n.prototype, { constructor: {
14565
14571
  value: a,
@@ -14569,7 +14575,7 @@ function ia(e) {
14569
14575
  } }), Mt(a, n);
14570
14576
  }, ia(e);
14571
14577
  }
14572
- function kp(e, t, r) {
14578
+ function Mp(e, t, r) {
14573
14579
  if (Va()) return Reflect.construct.apply(null, arguments);
14574
14580
  var n = [null];
14575
14581
  n.push.apply(n, t);
@@ -14586,7 +14592,7 @@ function Va() {
14586
14592
  return !!e;
14587
14593
  })();
14588
14594
  }
14589
- function Mp(e) {
14595
+ function Dp(e) {
14590
14596
  try {
14591
14597
  return Function.toString.call(e).indexOf("[native code]") !== -1;
14592
14598
  } catch {
@@ -14606,11 +14612,11 @@ function Dt(e) {
14606
14612
  var je = /* @__PURE__ */ (function(e) {
14607
14613
  function t(r) {
14608
14614
  var n;
14609
- return Ep(this, t), n = Ip(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
14615
+ return Ip(this, t), n = Tp(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
14610
14616
  }
14611
- return xp(t, e), wp(t);
14617
+ return kp(t, e), _p(t);
14612
14618
  })(/* @__PURE__ */ ia(Error)), po = new RegExp("(?:" + Fd() + ")$", "i");
14613
- function Dp(e) {
14619
+ function Rp(e) {
14614
14620
  var t = e.search(po);
14615
14621
  if (t < 0) return {};
14616
14622
  for (var r = e.slice(0, t), n = e.match(po), a = 1; a < n.length; ) {
@@ -14621,10 +14627,10 @@ function Dp(e) {
14621
14627
  a++;
14622
14628
  }
14623
14629
  }
14624
- function Rp(e, t) {
14630
+ function Fp(e, t) {
14625
14631
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14626
14632
  if (r) return (r = r.call(e)).next.bind(r);
14627
- if (Array.isArray(e) || (r = Fp(e)) || t && e && typeof e.length == "number") {
14633
+ if (Array.isArray(e) || (r = Lp(e)) || t && e && typeof e.length == "number") {
14628
14634
  r && (e = r);
14629
14635
  var n = 0;
14630
14636
  return function() {
@@ -14637,7 +14643,7 @@ function Rp(e, t) {
14637
14643
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14638
14644
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14639
14645
  }
14640
- function Fp(e, t) {
14646
+ function Lp(e, t) {
14641
14647
  if (e) {
14642
14648
  if (typeof e == "string") return mo(e, t);
14643
14649
  var r = {}.toString.call(e).slice(8, -1);
@@ -14649,7 +14655,7 @@ function mo(e, t) {
14649
14655
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
14650
14656
  return n;
14651
14657
  }
14652
- var Lp = {
14658
+ var jp = {
14653
14659
  0: "0",
14654
14660
  1: "1",
14655
14661
  2: "2",
@@ -14692,19 +14698,19 @@ var Lp = {
14692
14698
  "۹": "9"
14693
14699
  };
14694
14700
  function Bd(e) {
14695
- return Lp[e];
14701
+ return jp[e];
14696
14702
  }
14697
14703
  function Fr(e) {
14698
- for (var t = "", r = Rp(e.split("")), n; !(n = r()).done; ) {
14704
+ for (var t = "", r = Fp(e.split("")), n; !(n = r()).done; ) {
14699
14705
  var a = n.value, i = Bd(a);
14700
14706
  i && (t += i);
14701
14707
  }
14702
14708
  return t;
14703
14709
  }
14704
- function jp(e, t) {
14710
+ function Bp(e, t) {
14705
14711
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14706
14712
  if (r) return (r = r.call(e)).next.bind(r);
14707
- if (Array.isArray(e) || (r = Bp(e)) || t && e && typeof e.length == "number") {
14713
+ if (Array.isArray(e) || (r = Up(e)) || t && e && typeof e.length == "number") {
14708
14714
  r && (e = r);
14709
14715
  var n = 0;
14710
14716
  return function() {
@@ -14717,7 +14723,7 @@ function jp(e, t) {
14717
14723
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14718
14724
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14719
14725
  }
14720
- function Bp(e, t) {
14726
+ function Up(e, t) {
14721
14727
  if (e) {
14722
14728
  if (typeof e == "string") return ho(e, t);
14723
14729
  var r = {}.toString.call(e).slice(8, -1);
@@ -14730,7 +14736,7 @@ function ho(e, t) {
14730
14736
  return n;
14731
14737
  }
14732
14738
  function oa(e) {
14733
- for (var t = "", r = jp(e.split("")), n; !(n = r()).done; ) {
14739
+ for (var t = "", r = Bp(e.split("")), n; !(n = r()).done; ) {
14734
14740
  var a = n.value;
14735
14741
  t += Ud(a, t) || "";
14736
14742
  }
@@ -14746,8 +14752,8 @@ function Ud(e, t, r) {
14746
14752
  }
14747
14753
  return Bd(e);
14748
14754
  }
14749
- var vo = "([" + Ce + "]|[\\-\\.\\(\\)]?)", Up = "^\\+" + vo + "*[" + Ce + "]" + vo + "*$", Vp = new RegExp(Up, "g"), sa = Ce, zp = "[" + sa + "]+((\\-)*[" + sa + "])*", Gp = "[a-zA-Z]+((\\-)*[" + sa + "])*", Wp = "^(" + zp + "\\.)*" + Gp + "\\.?$", Hp = new RegExp(Wp, "g"), yo = "tel:", da = ";phone-context=", qp = ";isub=";
14750
- function Kp(e) {
14755
+ var vo = "([" + Ce + "]|[\\-\\.\\(\\)]?)", Vp = "^\\+" + vo + "*[" + Ce + "]" + vo + "*$", zp = new RegExp(Vp, "g"), sa = Ce, Gp = "[" + sa + "]+((\\-)*[" + sa + "])*", Wp = "[a-zA-Z]+((\\-)*[" + sa + "])*", Hp = "^(" + Gp + "\\.)*" + Wp + "\\.?$", qp = new RegExp(Hp, "g"), yo = "tel:", da = ";phone-context=", Kp = ";isub=";
14756
+ function Yp(e) {
14751
14757
  var t = e.indexOf(da);
14752
14758
  if (t < 0) return null;
14753
14759
  var r = t + da.length;
@@ -14755,12 +14761,12 @@ function Kp(e) {
14755
14761
  var n = e.indexOf(";", r);
14756
14762
  return n >= 0 ? e.substring(r, n) : e.substring(r);
14757
14763
  }
14758
- function Yp(e) {
14759
- return e === null ? !0 : e.length === 0 ? !1 : Vp.test(e) || Hp.test(e);
14764
+ function Zp(e) {
14765
+ return e === null ? !0 : e.length === 0 ? !1 : zp.test(e) || qp.test(e);
14760
14766
  }
14761
- function Zp(e, t) {
14762
- var r = t.extractFormattedPhoneNumber, n = Kp(e);
14763
- if (!Yp(n)) throw new je("NOT_A_NUMBER");
14767
+ function Xp(e, t) {
14768
+ var r = t.extractFormattedPhoneNumber, n = Yp(e);
14769
+ if (!Zp(n)) throw new je("NOT_A_NUMBER");
14764
14770
  var a;
14765
14771
  if (n === null) a = r(e) || "";
14766
14772
  else {
@@ -14770,20 +14776,20 @@ function Zp(e, t) {
14770
14776
  var s = e.indexOf(da);
14771
14777
  a += e.substring(o, s);
14772
14778
  }
14773
- var d = a.indexOf(qp);
14779
+ var d = a.indexOf(Kp);
14774
14780
  if (d > 0 && (a = a.substring(0, d)), a !== "") return a;
14775
14781
  }
14776
- var Xp = 250, Jp = new RegExp("[" + ln + Ce + "]"), Qp = new RegExp("[^" + Ce + "#]+$"), em = !1;
14777
- function tm(e, t, r) {
14782
+ var Jp = 250, Qp = new RegExp("[" + ln + Ce + "]"), em = new RegExp("[^" + Ce + "#]+$"), tm = !1;
14783
+ function rm(e, t, r) {
14778
14784
  if (t = t || {}, r = new me(r), t.defaultCountry && !r.hasCountry(t.defaultCountry))
14779
14785
  throw t.v2 ? new je("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
14780
- var n = nm(e, t.v2, t.extract), a = n.number, i = n.ext, o = n.error;
14786
+ var n = am(e, t.v2, t.extract), a = n.number, i = n.ext, o = n.error;
14781
14787
  if (!a) {
14782
14788
  if (t.v2)
14783
14789
  throw o === "TOO_SHORT" ? new je("TOO_SHORT") : new je("NOT_A_NUMBER");
14784
14790
  return {};
14785
14791
  }
14786
- var s = im(a, t.defaultCountry, t.defaultCallingCode, r), d = s.country, l = s.nationalNumber, u = s.countryCallingCode, p = s.countryCallingCodeSource, f = s.carrierCode;
14792
+ var s = om(a, t.defaultCountry, t.defaultCallingCode, r), d = s.country, l = s.nationalNumber, u = s.countryCallingCode, p = s.countryCallingCodeSource, f = s.carrierCode;
14787
14793
  if (!r.hasSelectedNumberingPlan()) {
14788
14794
  if (t.v2) throw new je("INVALID_COUNTRY");
14789
14795
  return {};
@@ -14809,42 +14815,42 @@ function tm(e, t, r) {
14809
14815
  possible: h ? !0 : !!(t.extended === !0 && r.possibleLengths() && Td(l, d, r)),
14810
14816
  phone: l,
14811
14817
  ext: i
14812
- } : h ? am(d, l, i) : {};
14818
+ } : h ? im(d, l, i) : {};
14813
14819
  }
14814
- function rm(e, t, r) {
14820
+ function nm(e, t, r) {
14815
14821
  if (e) {
14816
- if (e.length > Xp) {
14822
+ if (e.length > Jp) {
14817
14823
  if (r) throw new je("TOO_LONG");
14818
14824
  return;
14819
14825
  }
14820
14826
  if (t === !1) return e;
14821
- var n = e.search(Jp);
14827
+ var n = e.search(Qp);
14822
14828
  if (!(n < 0))
14823
- return e.slice(n).replace(Qp, "");
14829
+ return e.slice(n).replace(em, "");
14824
14830
  }
14825
14831
  }
14826
- function nm(e, t, r) {
14827
- var n = Zp(e, { extractFormattedPhoneNumber: function(o) {
14828
- return rm(o, r, t);
14832
+ function am(e, t, r) {
14833
+ var n = Xp(e, { extractFormattedPhoneNumber: function(o) {
14834
+ return nm(o, r, t);
14829
14835
  } });
14830
14836
  if (!n) return {};
14831
- if (!lp(n))
14832
- return cp(n) ? { error: "TOO_SHORT" } : {};
14833
- var a = Dp(n);
14837
+ if (!cp(n))
14838
+ return up(n) ? { error: "TOO_SHORT" } : {};
14839
+ var a = Rp(n);
14834
14840
  return a.ext ? a : { number: n };
14835
14841
  }
14836
- function am(e, t, r) {
14842
+ function im(e, t, r) {
14837
14843
  var n = {
14838
14844
  country: e,
14839
14845
  phone: t
14840
14846
  };
14841
14847
  return r && (n.ext = r), n;
14842
14848
  }
14843
- function im(e, t, r, n) {
14849
+ function om(e, t, r, n) {
14844
14850
  var a = Ua(oa(e), void 0, t, r, n.metadata), i = a.countryCallingCodeSource, o = a.countryCallingCode, s = a.number, d;
14845
14851
  if (o) n.selectNumberingPlan(o);
14846
14852
  else if (s && (t || r))
14847
- n.selectNumberingPlan(t, r), t ? d = t : em && n.isNonGeographicCallingCode(r) && (d = "001"), o = r || Ke(t, n.metadata);
14853
+ n.selectNumberingPlan(t, r), t ? d = t : tm && n.isNonGeographicCallingCode(r) && (d = "001"), o = r || Ke(t, n.metadata);
14848
14854
  else return {};
14849
14855
  if (!s) return {
14850
14856
  countryCallingCodeSource: i,
@@ -14884,26 +14890,26 @@ function go(e) {
14884
14890
  for (var t = 1; t < arguments.length; t++) {
14885
14891
  var r = arguments[t] != null ? arguments[t] : {};
14886
14892
  t % 2 ? $o(Object(r), !0).forEach(function(n) {
14887
- om(e, n, r[n]);
14893
+ sm(e, n, r[n]);
14888
14894
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : $o(Object(r)).forEach(function(n) {
14889
14895
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
14890
14896
  });
14891
14897
  }
14892
14898
  return e;
14893
14899
  }
14894
- function om(e, t, r) {
14895
- return (t = sm(t)) in e ? Object.defineProperty(e, t, {
14900
+ function sm(e, t, r) {
14901
+ return (t = dm(t)) in e ? Object.defineProperty(e, t, {
14896
14902
  value: r,
14897
14903
  enumerable: !0,
14898
14904
  configurable: !0,
14899
14905
  writable: !0
14900
14906
  }) : e[t] = r, e;
14901
14907
  }
14902
- function sm(e) {
14903
- var t = dm(e, "string");
14908
+ function dm(e) {
14909
+ var t = lm(e, "string");
14904
14910
  return Rt(t) == "symbol" ? t : t + "";
14905
14911
  }
14906
- function dm(e, t) {
14912
+ function lm(e, t) {
14907
14913
  if (Rt(e) != "object" || !e) return e;
14908
14914
  var r = e[Symbol.toPrimitive];
14909
14915
  if (r !== void 0) {
@@ -14913,8 +14919,8 @@ function dm(e, t) {
14913
14919
  }
14914
14920
  return (t === "string" ? String : Number)(e);
14915
14921
  }
14916
- function lm(e, t, r) {
14917
- return tm(e, go(go({}, t), {}, { v2: !0 }), r);
14922
+ function cm(e, t, r) {
14923
+ return rm(e, go(go({}, t), {}, { v2: !0 }), r);
14918
14924
  }
14919
14925
  function Ft(e) {
14920
14926
  "@babel/helpers - typeof";
@@ -14934,30 +14940,30 @@ function bo(e, t) {
14934
14940
  }
14935
14941
  return r;
14936
14942
  }
14937
- function cm(e) {
14943
+ function um(e) {
14938
14944
  for (var t = 1; t < arguments.length; t++) {
14939
14945
  var r = arguments[t] != null ? arguments[t] : {};
14940
14946
  t % 2 ? bo(Object(r), !0).forEach(function(n) {
14941
- um(e, n, r[n]);
14947
+ fm(e, n, r[n]);
14942
14948
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : bo(Object(r)).forEach(function(n) {
14943
14949
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
14944
14950
  });
14945
14951
  }
14946
14952
  return e;
14947
14953
  }
14948
- function um(e, t, r) {
14949
- return (t = fm(t)) in e ? Object.defineProperty(e, t, {
14954
+ function fm(e, t, r) {
14955
+ return (t = pm(t)) in e ? Object.defineProperty(e, t, {
14950
14956
  value: r,
14951
14957
  enumerable: !0,
14952
14958
  configurable: !0,
14953
14959
  writable: !0
14954
14960
  }) : e[t] = r, e;
14955
14961
  }
14956
- function fm(e) {
14957
- var t = pm(e, "string");
14962
+ function pm(e) {
14963
+ var t = mm(e, "string");
14958
14964
  return Ft(t) == "symbol" ? t : t + "";
14959
14965
  }
14960
- function pm(e, t) {
14966
+ function mm(e, t) {
14961
14967
  if (Ft(e) != "object" || !e) return e;
14962
14968
  var r = e[Symbol.toPrimitive];
14963
14969
  if (r !== void 0) {
@@ -14967,14 +14973,14 @@ function pm(e, t) {
14967
14973
  }
14968
14974
  return (t === "string" ? String : Number)(e);
14969
14975
  }
14970
- function mm(e, t) {
14971
- return $m(e) || ym(e, t) || vm(e, t) || hm();
14976
+ function hm(e, t) {
14977
+ return gm(e) || $m(e, t) || ym(e, t) || vm();
14972
14978
  }
14973
- function hm() {
14979
+ function vm() {
14974
14980
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14975
14981
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14976
14982
  }
14977
- function vm(e, t) {
14983
+ function ym(e, t) {
14978
14984
  if (e) {
14979
14985
  if (typeof e == "string") return No(e, t);
14980
14986
  var r = {}.toString.call(e).slice(8, -1);
@@ -14986,7 +14992,7 @@ function No(e, t) {
14986
14992
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
14987
14993
  return n;
14988
14994
  }
14989
- function ym(e, t) {
14995
+ function $m(e, t) {
14990
14996
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14991
14997
  if (r != null) {
14992
14998
  var n, a, i, o, s = [], d = !0, l = !1;
@@ -15007,15 +15013,15 @@ function ym(e, t) {
15007
15013
  return s;
15008
15014
  }
15009
15015
  }
15010
- function $m(e) {
15016
+ function gm(e) {
15011
15017
  if (Array.isArray(e)) return e;
15012
15018
  }
15013
15019
  function Vd(e) {
15014
- var t = mm(Array.prototype.slice.call(e), 4), r = t[0], n = t[1], a = t[2], i = t[3], o, s, d;
15020
+ var t = hm(Array.prototype.slice.call(e), 4), r = t[0], n = t[1], a = t[2], i = t[3], o, s, d;
15015
15021
  if (typeof r == "string") o = r;
15016
15022
  else throw new TypeError("A text for parsing must be a string.");
15017
15023
  if (!n || typeof n == "string")
15018
- i ? (s = a, d = i) : (s = void 0, d = a), n && (s = cm({ defaultCountry: n }, s));
15024
+ i ? (s = a, d = i) : (s = void 0, d = a), n && (s = um({ defaultCountry: n }, s));
15019
15025
  else if (Qe(n)) a ? (s = n, d = a) : d = n;
15020
15026
  else throw new Error("Invalid second argument: ".concat(n));
15021
15027
  return {
@@ -15046,26 +15052,26 @@ function So(e) {
15046
15052
  for (var t = 1; t < arguments.length; t++) {
15047
15053
  var r = arguments[t] != null ? arguments[t] : {};
15048
15054
  t % 2 ? Co(Object(r), !0).forEach(function(n) {
15049
- gm(e, n, r[n]);
15055
+ bm(e, n, r[n]);
15050
15056
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Co(Object(r)).forEach(function(n) {
15051
15057
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
15052
15058
  });
15053
15059
  }
15054
15060
  return e;
15055
15061
  }
15056
- function gm(e, t, r) {
15057
- return (t = bm(t)) in e ? Object.defineProperty(e, t, {
15062
+ function bm(e, t, r) {
15063
+ return (t = Nm(t)) in e ? Object.defineProperty(e, t, {
15058
15064
  value: r,
15059
15065
  enumerable: !0,
15060
15066
  configurable: !0,
15061
15067
  writable: !0
15062
15068
  }) : e[t] = r, e;
15063
15069
  }
15064
- function bm(e) {
15065
- var t = Nm(e, "string");
15070
+ function Nm(e) {
15071
+ var t = Cm(e, "string");
15066
15072
  return Lt(t) == "symbol" ? t : t + "";
15067
15073
  }
15068
- function Nm(e, t) {
15074
+ function Cm(e, t) {
15069
15075
  if (Lt(e) != "object" || !e) return e;
15070
15076
  var r = e[Symbol.toPrimitive];
15071
15077
  if (r !== void 0) {
@@ -15078,13 +15084,13 @@ function Nm(e, t) {
15078
15084
  function zd(e, t, r) {
15079
15085
  t && t.defaultCountry && !Od(t.defaultCountry, r) && (t = So(So({}, t), {}, { defaultCountry: void 0 }));
15080
15086
  try {
15081
- return lm(e, t, r);
15087
+ return cm(e, t, r);
15082
15088
  } catch (n) {
15083
15089
  if (!(n instanceof je))
15084
15090
  throw n;
15085
15091
  }
15086
15092
  }
15087
- function Cm() {
15093
+ function Sm() {
15088
15094
  var e = Vd(arguments), t = e.text, r = e.options, n = e.metadata;
15089
15095
  return zd(t, r, n);
15090
15096
  }
@@ -15110,26 +15116,26 @@ function wo(e) {
15110
15116
  for (var t = 1; t < arguments.length; t++) {
15111
15117
  var r = arguments[t] != null ? arguments[t] : {};
15112
15118
  t % 2 ? Po(Object(r), !0).forEach(function(n) {
15113
- Sm(e, n, r[n]);
15119
+ Pm(e, n, r[n]);
15114
15120
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Po(Object(r)).forEach(function(n) {
15115
15121
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
15116
15122
  });
15117
15123
  }
15118
15124
  return e;
15119
15125
  }
15120
- function Sm(e, t, r) {
15121
- return (t = Pm(t)) in e ? Object.defineProperty(e, t, {
15126
+ function Pm(e, t, r) {
15127
+ return (t = wm(t)) in e ? Object.defineProperty(e, t, {
15122
15128
  value: r,
15123
15129
  enumerable: !0,
15124
15130
  configurable: !0,
15125
15131
  writable: !0
15126
15132
  }) : e[t] = r, e;
15127
15133
  }
15128
- function Pm(e) {
15129
- var t = wm(e, "string");
15134
+ function wm(e) {
15135
+ var t = _m(e, "string");
15130
15136
  return jt(t) == "symbol" ? t : t + "";
15131
15137
  }
15132
- function wm(e, t) {
15138
+ function _m(e, t) {
15133
15139
  if (jt(e) != "object" || !e) return e;
15134
15140
  var r = e[Symbol.toPrimitive];
15135
15141
  if (r !== void 0) {
@@ -15139,7 +15145,7 @@ function wm(e, t) {
15139
15145
  }
15140
15146
  return (t === "string" ? String : Number)(e);
15141
15147
  }
15142
- function _m() {
15148
+ function Om() {
15143
15149
  var e = Vd(arguments), t = e.text, r = e.options, n = e.metadata;
15144
15150
  r = wo(wo({}, r), {}, { extract: !1 });
15145
15151
  var a = zd(t, r, n);
@@ -15153,23 +15159,23 @@ function Bt(e) {
15153
15159
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15154
15160
  }, Bt(e);
15155
15161
  }
15156
- function Om(e, t) {
15162
+ function Em(e, t) {
15157
15163
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15158
15164
  }
15159
15165
  function _o(e, t) {
15160
15166
  for (var r = 0; r < t.length; r++) {
15161
15167
  var n = t[r];
15162
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Im(n.key), n);
15168
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Tm(n.key), n);
15163
15169
  }
15164
15170
  }
15165
- function Em(e, t, r) {
15171
+ function Im(e, t, r) {
15166
15172
  return t && _o(e.prototype, t), r && _o(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15167
15173
  }
15168
- function Im(e) {
15169
- var t = Tm(e, "string");
15174
+ function Tm(e) {
15175
+ var t = Am(e, "string");
15170
15176
  return Bt(t) == "symbol" ? t : t + "";
15171
15177
  }
15172
- function Tm(e, t) {
15178
+ function Am(e, t) {
15173
15179
  if (Bt(e) != "object" || !e) return e;
15174
15180
  var r = e[Symbol.toPrimitive];
15175
15181
  if (r !== void 0) {
@@ -15179,12 +15185,12 @@ function Tm(e, t) {
15179
15185
  }
15180
15186
  return (t === "string" ? String : Number)(e);
15181
15187
  }
15182
- var Am = /* @__PURE__ */ (function() {
15188
+ var xm = /* @__PURE__ */ (function() {
15183
15189
  function e(t) {
15184
15190
  var r = t.onCountryChange, n = t.onCallingCodeChange;
15185
- Om(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
15191
+ Em(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
15186
15192
  }
15187
- return Em(e, [
15193
+ return Im(e, [
15188
15194
  {
15189
15195
  key: "reset",
15190
15196
  value: function(r) {
@@ -15257,10 +15263,10 @@ var Am = /* @__PURE__ */ (function() {
15257
15263
  }
15258
15264
  ]);
15259
15265
  })();
15260
- function xm(e, t) {
15266
+ function km(e, t) {
15261
15267
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15262
15268
  if (r) return (r = r.call(e)).next.bind(r);
15263
- if (Array.isArray(e) || (r = km(e)) || t && e && typeof e.length == "number") {
15269
+ if (Array.isArray(e) || (r = Mm(e)) || t && e && typeof e.length == "number") {
15264
15270
  r && (e = r);
15265
15271
  var n = 0;
15266
15272
  return function() {
@@ -15273,7 +15279,7 @@ function xm(e, t) {
15273
15279
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15274
15280
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15275
15281
  }
15276
- function km(e, t) {
15282
+ function Mm(e, t) {
15277
15283
  if (e) {
15278
15284
  if (typeof e == "string") return Oo(e, t);
15279
15285
  var r = {}.toString.call(e).slice(8, -1);
@@ -15293,9 +15299,9 @@ function vr(e, t) {
15293
15299
  return r + e;
15294
15300
  }
15295
15301
  function Eo(e, t) {
15296
- return e[t] === ")" && t++, Mm(e.slice(0, t));
15302
+ return e[t] === ")" && t++, Dm(e.slice(0, t));
15297
15303
  }
15298
- function Mm(e) {
15304
+ function Dm(e) {
15299
15305
  for (var t = [], r = 0; r < e.length; )
15300
15306
  e[r] === "(" ? t.push(r) : e[r] === ")" && t.pop(), r++;
15301
15307
  var n = 0, a = "";
@@ -15306,26 +15312,26 @@ function Mm(e) {
15306
15312
  }
15307
15313
  return a;
15308
15314
  }
15309
- function Dm(e, t, r) {
15310
- for (var n = xm(r.split("")), a; !(a = n()).done; ) {
15315
+ function Rm(e, t, r) {
15316
+ for (var n = km(r.split("")), a; !(a = n()).done; ) {
15311
15317
  var i = a.value;
15312
15318
  if (e.slice(t + 1).search(Mn) < 0) return;
15313
15319
  t = e.search(Mn), e = e.replace(Mn, i);
15314
15320
  }
15315
15321
  return [e, t];
15316
15322
  }
15317
- function Rm(e, t, r) {
15323
+ function Fm(e, t, r) {
15318
15324
  var n = r.metadata, a = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix;
15319
- if (new RegExp("^(?:".concat(t.pattern(), ")$")).test(e.nationalSignificantNumber)) return Lm(e, t, {
15325
+ if (new RegExp("^(?:".concat(t.pattern(), ")$")).test(e.nationalSignificantNumber)) return jm(e, t, {
15320
15326
  metadata: n,
15321
15327
  shouldTryNationalPrefixFormattingRule: a,
15322
15328
  getSeparatorAfterNationalPrefix: i
15323
15329
  });
15324
15330
  }
15325
- function Fm(e, t, r) {
15331
+ function Lm(e, t, r) {
15326
15332
  return dn(e, t, r) === "IS_POSSIBLE";
15327
15333
  }
15328
- function Lm(e, t, r) {
15334
+ function jm(e, t, r) {
15329
15335
  var n = r.metadata, a = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix;
15330
15336
  if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, a(t)) {
15331
15337
  var o = Io(e, t, {
@@ -15348,9 +15354,9 @@ function Io(e, t, r) {
15348
15354
  withNationalPrefix: a,
15349
15355
  metadata: n
15350
15356
  });
15351
- if (a || (e.nationalPrefix ? o = e.nationalPrefix + i(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), jm(o, e)) return o;
15357
+ if (a || (e.nationalPrefix ? o = e.nationalPrefix + i(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), Bm(o, e)) return o;
15352
15358
  }
15353
- function jm(e, t) {
15359
+ function Bm(e, t) {
15354
15360
  return Fr(e) === t.getNationalDigits();
15355
15361
  }
15356
15362
  function Ut(e) {
@@ -15361,23 +15367,23 @@ function Ut(e) {
15361
15367
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15362
15368
  }, Ut(e);
15363
15369
  }
15364
- function Bm(e, t) {
15370
+ function Um(e, t) {
15365
15371
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15366
15372
  }
15367
15373
  function To(e, t) {
15368
15374
  for (var r = 0; r < t.length; r++) {
15369
15375
  var n = t[r];
15370
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Vm(n.key), n);
15376
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, zm(n.key), n);
15371
15377
  }
15372
15378
  }
15373
- function Um(e, t, r) {
15379
+ function Vm(e, t, r) {
15374
15380
  return t && To(e.prototype, t), r && To(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15375
15381
  }
15376
- function Vm(e) {
15377
- var t = zm(e, "string");
15382
+ function zm(e) {
15383
+ var t = Gm(e, "string");
15378
15384
  return Ut(t) == "symbol" ? t : t + "";
15379
15385
  }
15380
- function zm(e, t) {
15386
+ function Gm(e, t) {
15381
15387
  if (Ut(e) != "object" || !e) return e;
15382
15388
  var r = e[Symbol.toPrimitive];
15383
15389
  if (r !== void 0) {
@@ -15387,11 +15393,11 @@ function zm(e, t) {
15387
15393
  }
15388
15394
  return (t === "string" ? String : Number)(e);
15389
15395
  }
15390
- var Gm = /* @__PURE__ */ (function() {
15396
+ var Wm = /* @__PURE__ */ (function() {
15391
15397
  function e() {
15392
- Bm(this, e);
15398
+ Um(this, e);
15393
15399
  }
15394
- return Um(e, [
15400
+ return Vm(e, [
15395
15401
  {
15396
15402
  key: "parse",
15397
15403
  value: function(r) {
@@ -15430,9 +15436,9 @@ var Gm = /* @__PURE__ */ (function() {
15430
15436
  key: "parsePattern",
15431
15437
  value: function(r) {
15432
15438
  if (!r) throw new Error("Pattern is required");
15433
- var n = r.match(qm);
15439
+ var n = r.match(Km);
15434
15440
  if (!n) {
15435
- if (Hm.test(r)) throw new Error("Illegal characters found in a pattern: ".concat(r));
15441
+ if (qm.test(r)) throw new Error("Illegal characters found in a pattern: ".concat(r));
15436
15442
  this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
15437
15443
  return;
15438
15444
  }
@@ -15468,7 +15474,7 @@ var Gm = /* @__PURE__ */ (function() {
15468
15474
  if (!this.getContext().oneOfSet) throw new Error('"]" operator must be preceded by "[" operator');
15469
15475
  this.endContext(), this.getContext().instructions.push({
15470
15476
  op: "[]",
15471
- args: Wm(i)
15477
+ args: Hm(i)
15472
15478
  });
15473
15479
  break;
15474
15480
  /* istanbul ignore next */
@@ -15480,7 +15486,7 @@ var Gm = /* @__PURE__ */ (function() {
15480
15486
  }
15481
15487
  ]);
15482
15488
  })();
15483
- function Wm(e) {
15489
+ function Hm(e) {
15484
15490
  for (var t = [], r = 0; r < e.length; ) {
15485
15491
  if (e[r] === "-") {
15486
15492
  if (r === 0 || r === e.length - 1) throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
@@ -15491,14 +15497,14 @@ function Wm(e) {
15491
15497
  }
15492
15498
  return t;
15493
15499
  }
15494
- var Hm = /[\(\)\[\]\?\:\|]/, qm = new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
15500
+ var qm = /[\(\)\[\]\?\:\|]/, Km = new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
15495
15501
  function Dn(e) {
15496
15502
  return e.length === 1 ? e[0] : e;
15497
15503
  }
15498
15504
  function Ao(e, t) {
15499
15505
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15500
15506
  if (r) return (r = r.call(e)).next.bind(r);
15501
- if (Array.isArray(e) || (r = Km(e)) || t && e && typeof e.length == "number") {
15507
+ if (Array.isArray(e) || (r = Ym(e)) || t && e && typeof e.length == "number") {
15502
15508
  r && (e = r);
15503
15509
  var n = 0;
15504
15510
  return function() {
@@ -15511,7 +15517,7 @@ function Ao(e, t) {
15511
15517
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15512
15518
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15513
15519
  }
15514
- function Km(e, t) {
15520
+ function Ym(e, t) {
15515
15521
  if (e) {
15516
15522
  if (typeof e == "string") return xo(e, t);
15517
15523
  var r = {}.toString.call(e).slice(8, -1);
@@ -15531,23 +15537,23 @@ function Vt(e) {
15531
15537
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15532
15538
  }, Vt(e);
15533
15539
  }
15534
- function Ym(e, t) {
15540
+ function Zm(e, t) {
15535
15541
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15536
15542
  }
15537
15543
  function ko(e, t) {
15538
15544
  for (var r = 0; r < t.length; r++) {
15539
15545
  var n = t[r];
15540
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Xm(n.key), n);
15546
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Jm(n.key), n);
15541
15547
  }
15542
15548
  }
15543
- function Zm(e, t, r) {
15549
+ function Xm(e, t, r) {
15544
15550
  return t && ko(e.prototype, t), r && ko(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15545
15551
  }
15546
- function Xm(e) {
15547
- var t = Jm(e, "string");
15552
+ function Jm(e) {
15553
+ var t = Qm(e, "string");
15548
15554
  return Vt(t) == "symbol" ? t : t + "";
15549
15555
  }
15550
- function Jm(e, t) {
15556
+ function Qm(e, t) {
15551
15557
  if (Vt(e) != "object" || !e) return e;
15552
15558
  var r = e[Symbol.toPrimitive];
15553
15559
  if (r !== void 0) {
@@ -15557,11 +15563,11 @@ function Jm(e, t) {
15557
15563
  }
15558
15564
  return (t === "string" ? String : Number)(e);
15559
15565
  }
15560
- var Qm = /* @__PURE__ */ (function() {
15566
+ var e2 = /* @__PURE__ */ (function() {
15561
15567
  function e(t) {
15562
- Ym(this, e), this.matchTree = new Gm().parse(t);
15568
+ Zm(this, e), this.matchTree = new Wm().parse(t);
15563
15569
  }
15564
- return Zm(e, [{
15570
+ return Xm(e, [{
15565
15571
  key: "match",
15566
15572
  value: function(r) {
15567
15573
  var n = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).allowOverflow;
@@ -15651,7 +15657,7 @@ function zt(e) {
15651
15657
  function Mo(e, t) {
15652
15658
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15653
15659
  if (r) return (r = r.call(e)).next.bind(r);
15654
- if (Array.isArray(e) || (r = e2(e)) || t && e && typeof e.length == "number") {
15660
+ if (Array.isArray(e) || (r = t2(e)) || t && e && typeof e.length == "number") {
15655
15661
  r && (e = r);
15656
15662
  var n = 0;
15657
15663
  return function() {
@@ -15664,7 +15670,7 @@ function Mo(e, t) {
15664
15670
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15665
15671
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15666
15672
  }
15667
- function e2(e, t) {
15673
+ function t2(e, t) {
15668
15674
  if (e) {
15669
15675
  if (typeof e == "string") return Do(e, t);
15670
15676
  var r = {}.toString.call(e).slice(8, -1);
@@ -15676,23 +15682,23 @@ function Do(e, t) {
15676
15682
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
15677
15683
  return n;
15678
15684
  }
15679
- function t2(e, t) {
15685
+ function r2(e, t) {
15680
15686
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15681
15687
  }
15682
15688
  function Ro(e, t) {
15683
15689
  for (var r = 0; r < t.length; r++) {
15684
15690
  var n = t[r];
15685
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n2(n.key), n);
15691
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, a2(n.key), n);
15686
15692
  }
15687
15693
  }
15688
- function r2(e, t, r) {
15694
+ function n2(e, t, r) {
15689
15695
  return t && Ro(e.prototype, t), r && Ro(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15690
15696
  }
15691
- function n2(e) {
15692
- var t = a2(e, "string");
15697
+ function a2(e) {
15698
+ var t = i2(e, "string");
15693
15699
  return zt(t) == "symbol" ? t : t + "";
15694
15700
  }
15695
- function a2(e, t) {
15701
+ function i2(e, t) {
15696
15702
  if (zt(e) != "object" || !e) return e;
15697
15703
  var r = e[Symbol.toPrimitive];
15698
15704
  if (r !== void 0) {
@@ -15702,17 +15708,17 @@ function a2(e, t) {
15702
15708
  }
15703
15709
  return (t === "string" ? String : Number)(e);
15704
15710
  }
15705
- var ca = "9", i2 = vr(ca, 15), o2 = /[- ]/, Lr = !0, s2 = Lr && function() {
15711
+ var ca = "9", o2 = vr(ca, 15), s2 = /[- ]/, Lr = !0, d2 = Lr && function() {
15706
15712
  return /\[([^\[\]])*\]/g;
15707
- }, d2 = Lr && function() {
15713
+ }, l2 = Lr && function() {
15708
15714
  return /\d(?=[^,}][^,}])/g;
15709
- }, l2 = new RegExp("[" + De + "]*\\$1[" + De + "]*(\\$\\d[" + De + "]*)*$"), Fo = 3, c2 = /* @__PURE__ */ (function() {
15715
+ }, c2 = new RegExp("[" + De + "]*\\$1[" + De + "]*(\\$\\d[" + De + "]*)*$"), Fo = 3, u2 = /* @__PURE__ */ (function() {
15710
15716
  function e(t) {
15711
15717
  t.state;
15712
15718
  var r = t.metadata;
15713
- t2(this, e), this.metadata = r, this.resetFormat();
15719
+ r2(this, e), this.metadata = r, this.resetFormat();
15714
15720
  }
15715
- return r2(e, [
15721
+ return n2(e, [
15716
15722
  {
15717
15723
  key: "resetFormat",
15718
15724
  value: function() {
@@ -15729,8 +15735,8 @@ var ca = "9", i2 = vr(ca, 15), o2 = /[- ]/, Lr = !0, s2 = Lr && function() {
15729
15735
  key: "format",
15730
15736
  value: function(r, n) {
15731
15737
  var a = this;
15732
- if (Fm(n.nationalSignificantNumber, n.country, this.metadata)) for (var i = Mo(this.matchingFormats), o; !(o = i()).done; ) {
15733
- var s = o.value, d = Rm(n, s, {
15738
+ if (Lm(n.nationalSignificantNumber, n.country, this.metadata)) for (var i = Mo(this.matchingFormats), o; !(o = i()).done; ) {
15739
+ var s = o.value, d = Fm(n, s, {
15734
15740
  metadata: this.metadata,
15735
15741
  shouldTryNationalPrefixFormattingRule: function(u) {
15736
15742
  return a.shouldTryNationalPrefixFormattingRule(u, {
@@ -15778,7 +15784,7 @@ var ca = "9", i2 = vr(ca, 15), o2 = /[- ]/, Lr = !0, s2 = Lr && function() {
15778
15784
  a = Math.min(a, i - 1);
15779
15785
  var o = r.leadingDigitsPatterns()[a];
15780
15786
  if (n.length < Fo) try {
15781
- return new Qm(o).match(n, { allowOverflow: !0 }) !== void 0;
15787
+ return new e2(o).match(n, { allowOverflow: !0 }) !== void 0;
15782
15788
  } catch (s) {
15783
15789
  return console.error(s), !0;
15784
15790
  }
@@ -15796,7 +15802,7 @@ var ca = "9", i2 = vr(ca, 15), o2 = /[- ]/, Lr = !0, s2 = Lr && function() {
15796
15802
  value: function(r) {
15797
15803
  for (var n = this, a = function() {
15798
15804
  var l = s.value;
15799
- return n.chosenFormat === l ? 0 : l2.test(n.getFormatFormat(l, r.international)) ? n.createTemplateForFormat(l, r) ? (n.chosenFormat = l, 0) : (n.matchingFormats = n.matchingFormats.filter(function(u) {
15805
+ return n.chosenFormat === l ? 0 : c2.test(n.getFormatFormat(l, r.international)) ? n.createTemplateForFormat(l, r) ? (n.chosenFormat = l, 0) : (n.matchingFormats = n.matchingFormats.filter(function(u) {
15800
15806
  return u !== l;
15801
15807
  }), 1) : 1;
15802
15808
  }, i, o = Mo(this.matchingFormats.slice()), s; !(s = o()).done && (i = a(), i !== 0); )
@@ -15817,7 +15823,7 @@ var ca = "9", i2 = vr(ca, 15), o2 = /[- ]/, Lr = !0, s2 = Lr && function() {
15817
15823
  {
15818
15824
  key: "getSeparatorAfterNationalPrefix",
15819
15825
  value: function(r) {
15820
- return this.isNANP || r && r.nationalPrefixFormattingRule() && o2.test(r.nationalPrefixFormattingRule()) ? " " : "";
15826
+ return this.isNANP || r && r.nationalPrefixFormattingRule() && s2.test(r.nationalPrefixFormattingRule()) ? " " : "";
15821
15827
  }
15822
15828
  },
15823
15829
  {
@@ -15847,8 +15853,8 @@ var ca = "9", i2 = vr(ca, 15), o2 = /[- ]/, Lr = !0, s2 = Lr && function() {
15847
15853
  key: "getTemplateForFormat",
15848
15854
  value: function(r, n) {
15849
15855
  var a = n.nationalSignificantNumber, i = n.international, o = n.nationalPrefix, s = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, d = r.pattern();
15850
- Lr && (d = d.replace(s2(), "\\d").replace(d2(), "\\d"));
15851
- var l = i2.match(d)[0];
15856
+ Lr && (d = d.replace(d2(), "\\d").replace(l2(), "\\d"));
15857
+ var l = o2.match(d)[0];
15852
15858
  if (!(a.length > l.length)) {
15853
15859
  var u = new RegExp("^" + d + "$"), p = a.replace(/\d/g, ca);
15854
15860
  u.test(p) && (l = p);
@@ -15870,7 +15876,7 @@ var ca = "9", i2 = vr(ca, 15), o2 = /[- ]/, Lr = !0, s2 = Lr && function() {
15870
15876
  {
15871
15877
  key: "formatNextNationalNumberDigits",
15872
15878
  value: function(r) {
15873
- var n = Dm(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
15879
+ var n = Rm(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
15874
15880
  if (!n) {
15875
15881
  this.resetFormat();
15876
15882
  return;
@@ -15899,13 +15905,13 @@ function Gt(e) {
15899
15905
  }, Gt(e);
15900
15906
  }
15901
15907
  function Gd(e, t) {
15902
- return m2(e) || p2(e, t) || f2(e, t) || u2();
15908
+ return h2(e) || m2(e, t) || p2(e, t) || f2();
15903
15909
  }
15904
- function u2() {
15910
+ function f2() {
15905
15911
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15906
15912
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15907
15913
  }
15908
- function f2(e, t) {
15914
+ function p2(e, t) {
15909
15915
  if (e) {
15910
15916
  if (typeof e == "string") return Lo(e, t);
15911
15917
  var r = {}.toString.call(e).slice(8, -1);
@@ -15917,7 +15923,7 @@ function Lo(e, t) {
15917
15923
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
15918
15924
  return n;
15919
15925
  }
15920
- function p2(e, t) {
15926
+ function m2(e, t) {
15921
15927
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15922
15928
  if (r != null) {
15923
15929
  var n, a, i, o, s = [], d = !0, l = !1;
@@ -15938,26 +15944,26 @@ function p2(e, t) {
15938
15944
  return s;
15939
15945
  }
15940
15946
  }
15941
- function m2(e) {
15947
+ function h2(e) {
15942
15948
  if (Array.isArray(e)) return e;
15943
15949
  }
15944
- function h2(e, t) {
15950
+ function v2(e, t) {
15945
15951
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15946
15952
  }
15947
15953
  function jo(e, t) {
15948
15954
  for (var r = 0; r < t.length; r++) {
15949
15955
  var n = t[r];
15950
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, y2(n.key), n);
15956
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, $2(n.key), n);
15951
15957
  }
15952
15958
  }
15953
- function v2(e, t, r) {
15959
+ function y2(e, t, r) {
15954
15960
  return t && jo(e.prototype, t), r && jo(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15955
15961
  }
15956
- function y2(e) {
15957
- var t = $2(e, "string");
15962
+ function $2(e) {
15963
+ var t = g2(e, "string");
15958
15964
  return Gt(t) == "symbol" ? t : t + "";
15959
15965
  }
15960
- function $2(e, t) {
15966
+ function g2(e, t) {
15961
15967
  if (Gt(e) != "object" || !e) return e;
15962
15968
  var r = e[Symbol.toPrimitive];
15963
15969
  if (r !== void 0) {
@@ -15967,16 +15973,16 @@ function $2(e, t) {
15967
15973
  }
15968
15974
  return (t === "string" ? String : Number)(e);
15969
15975
  }
15970
- var g2 = "[" + De + Ce + "]+", b2 = new RegExp("^" + g2 + "$", "i"), N2 = "(?:[" + ln + "][" + De + Ce + "]*|[" + De + Ce + "]+)", C2 = new RegExp("[^" + De + Ce + "]+.*$"), S2 = /[^\d\[\]]/, P2 = /* @__PURE__ */ (function() {
15976
+ var b2 = "[" + De + Ce + "]+", N2 = new RegExp("^" + b2 + "$", "i"), C2 = "(?:[" + ln + "][" + De + Ce + "]*|[" + De + Ce + "]+)", S2 = new RegExp("[^" + De + Ce + "]+.*$"), P2 = /[^\d\[\]]/, w2 = /* @__PURE__ */ (function() {
15971
15977
  function e(t) {
15972
15978
  var r = t.defaultCountry, n = t.defaultCallingCode, a = t.metadata, i = t.onNationalSignificantNumberChange;
15973
- h2(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = a, this.onNationalSignificantNumberChange = i;
15979
+ v2(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = a, this.onNationalSignificantNumberChange = i;
15974
15980
  }
15975
- return v2(e, [
15981
+ return y2(e, [
15976
15982
  {
15977
15983
  key: "input",
15978
15984
  value: function(r, n) {
15979
- var a = Gd(O2(r), 2), i = a[0], o = a[1], s = Fr(i), d;
15985
+ var a = Gd(E2(r), 2), i = a[0], o = a[1], s = Fr(i), d;
15980
15986
  return o && (n.digits || (n.startInternationalNumber(void 0, void 0), s || (d = !0))), s && this.inputDigits(s, n), {
15981
15987
  digits: s,
15982
15988
  justLeadingPlus: d
@@ -16016,7 +16022,7 @@ var g2 = "[" + De + Ce + "]+", b2 = new RegExp("^" + g2 + "$", "i"), N2 = "(?:["
16016
16022
  if (r) {
16017
16023
  this.hasSelectedNumberingPlan = !0;
16018
16024
  var n = r._nationalPrefixForParsing();
16019
- this.couldPossiblyExtractAnotherNationalSignificantNumber = n && S2.test(n);
16025
+ this.couldPossiblyExtractAnotherNationalSignificantNumber = n && P2.test(n);
16020
16026
  } else
16021
16027
  this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
16022
16028
  }
@@ -16116,21 +16122,21 @@ var g2 = "[" + De + Ce + "]+", b2 = new RegExp("^" + g2 + "$", "i"), N2 = "(?:["
16116
16122
  }
16117
16123
  ]);
16118
16124
  })();
16119
- function w2(e) {
16120
- var t = e.search(N2);
16125
+ function _2(e) {
16126
+ var t = e.search(C2);
16121
16127
  if (!(t < 0)) {
16122
16128
  e = e.slice(t);
16123
16129
  var r;
16124
- return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(C2, ""), r && (e = "+" + e), e;
16130
+ return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(S2, ""), r && (e = "+" + e), e;
16125
16131
  }
16126
16132
  }
16127
- function _2(e) {
16128
- var t = w2(e) || "";
16133
+ function O2(e) {
16134
+ var t = _2(e) || "";
16129
16135
  return t[0] === "+" ? [t.slice(1), !0] : [t];
16130
16136
  }
16131
- function O2(e) {
16132
- var t = Gd(_2(e), 2), r = t[0], n = t[1];
16133
- return b2.test(r) || (r = ""), [r, n];
16137
+ function E2(e) {
16138
+ var t = Gd(O2(e), 2), r = t[0], n = t[1];
16139
+ return N2.test(r) || (r = ""), [r, n];
16134
16140
  }
16135
16141
  function Wt(e) {
16136
16142
  "@babel/helpers - typeof";
@@ -16140,14 +16146,14 @@ function Wt(e) {
16140
16146
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
16141
16147
  }, Wt(e);
16142
16148
  }
16143
- function E2(e, t) {
16144
- return x2(e) || A2(e, t) || T2(e, t) || I2();
16149
+ function I2(e, t) {
16150
+ return k2(e) || x2(e, t) || A2(e, t) || T2();
16145
16151
  }
16146
- function I2() {
16152
+ function T2() {
16147
16153
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16148
16154
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
16149
16155
  }
16150
- function T2(e, t) {
16156
+ function A2(e, t) {
16151
16157
  if (e) {
16152
16158
  if (typeof e == "string") return Bo(e, t);
16153
16159
  var r = {}.toString.call(e).slice(8, -1);
@@ -16159,7 +16165,7 @@ function Bo(e, t) {
16159
16165
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
16160
16166
  return n;
16161
16167
  }
16162
- function A2(e, t) {
16168
+ function x2(e, t) {
16163
16169
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
16164
16170
  if (r != null) {
16165
16171
  var n, a, i, o, s = [], d = !0, l = !1;
@@ -16180,26 +16186,26 @@ function A2(e, t) {
16180
16186
  return s;
16181
16187
  }
16182
16188
  }
16183
- function x2(e) {
16189
+ function k2(e) {
16184
16190
  if (Array.isArray(e)) return e;
16185
16191
  }
16186
- function k2(e, t) {
16192
+ function M2(e, t) {
16187
16193
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
16188
16194
  }
16189
16195
  function Uo(e, t) {
16190
16196
  for (var r = 0; r < t.length; r++) {
16191
16197
  var n = t[r];
16192
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, D2(n.key), n);
16198
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, R2(n.key), n);
16193
16199
  }
16194
16200
  }
16195
- function M2(e, t, r) {
16201
+ function D2(e, t, r) {
16196
16202
  return t && Uo(e.prototype, t), r && Uo(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
16197
16203
  }
16198
- function D2(e) {
16199
- var t = R2(e, "string");
16204
+ function R2(e) {
16205
+ var t = F2(e, "string");
16200
16206
  return Wt(t) == "symbol" ? t : t + "";
16201
16207
  }
16202
- function R2(e, t) {
16208
+ function F2(e, t) {
16203
16209
  if (Wt(e) != "object" || !e) return e;
16204
16210
  var r = e[Symbol.toPrimitive];
16205
16211
  if (r !== void 0) {
@@ -16211,11 +16217,11 @@ function R2(e, t) {
16211
16217
  }
16212
16218
  var Vo = !1, _t = /* @__PURE__ */ (function() {
16213
16219
  function e(t, r) {
16214
- k2(this, e), this.metadata = new me(r);
16215
- var n = E2(this.getCountryAndCallingCode(t), 2), a = n[0], i = n[1];
16220
+ M2(this, e), this.metadata = new me(r);
16221
+ var n = I2(this.getCountryAndCallingCode(t), 2), a = n[0], i = n[1];
16216
16222
  this.defaultCountry = a, this.defaultCallingCode = i, this.reset();
16217
16223
  }
16218
- return M2(e, [
16224
+ return D2(e, [
16219
16225
  {
16220
16226
  key: "getCountryAndCallingCode",
16221
16227
  value: function(r) {
@@ -16245,17 +16251,17 @@ var Vo = !1, _t = /* @__PURE__ */ (function() {
16245
16251
  key: "reset",
16246
16252
  value: function() {
16247
16253
  var r = this;
16248
- return this.state = new Am({
16254
+ return this.state = new xm({
16249
16255
  onCountryChange: function(a) {
16250
16256
  r.country = a;
16251
16257
  },
16252
16258
  onCallingCodeChange: function(a, i) {
16253
16259
  r.metadata.selectNumberingPlan(i, a), r.formatter.reset(r.metadata.numberingPlan, r.state), r.parser.reset(r.metadata.numberingPlan);
16254
16260
  }
16255
- }), this.formatter = new c2({
16261
+ }), this.formatter = new u2({
16256
16262
  state: this.state,
16257
16263
  metadata: this.metadata
16258
- }), this.parser = new P2({
16264
+ }), this.parser = new w2({
16259
16265
  defaultCountry: this.defaultCountry,
16260
16266
  defaultCallingCode: this.defaultCallingCode,
16261
16267
  metadata: this.metadata,
@@ -16426,10 +16432,10 @@ var Vo = !1, _t = /* @__PURE__ */ (function() {
16426
16432
  function zo(e) {
16427
16433
  return new me(e).getCountries();
16428
16434
  }
16429
- function F2(e, t, r) {
16435
+ function L2(e, t, r) {
16430
16436
  return r || (r = t, t = void 0), new _t(t, r).input(e);
16431
16437
  }
16432
- var jr = /* @__PURE__ */ Na(q1(), 1);
16438
+ var jr = /* @__PURE__ */ Na(K1(), 1);
16433
16439
  function Wd(e) {
16434
16440
  var t = e.inputFormat, r = e.country, n = e.metadata;
16435
16441
  return t === "NATIONAL_PART_OF_INTERNATIONAL" ? "+".concat(Ke(r, n)) : "";
@@ -16437,7 +16443,7 @@ function Wd(e) {
16437
16443
  function ua(e, t) {
16438
16444
  return t && (e = e.slice(t.length), e[0] === " " && (e = e.slice(1))), e;
16439
16445
  }
16440
- function L2(e, t, r) {
16446
+ function j2(e, t, r) {
16441
16447
  if (!(r && r.ignoreRest))
16442
16448
  return Ud(e, t, function(a) {
16443
16449
  r && a === "end" && (r.ignoreRest = !0);
@@ -16446,17 +16452,17 @@ function L2(e, t, r) {
16446
16452
  function Hd(e) {
16447
16453
  var t = e.onKeyDown, r = e.inputFormat;
16448
16454
  return Be(function(n) {
16449
- if (n.keyCode === B2 && r === "INTERNATIONAL" && n.target instanceof HTMLInputElement && j2(n.target) === U2.length) {
16455
+ if (n.keyCode === U2 && r === "INTERNATIONAL" && n.target instanceof HTMLInputElement && B2(n.target) === V2.length) {
16450
16456
  n.preventDefault();
16451
16457
  return;
16452
16458
  }
16453
16459
  t && t(n);
16454
16460
  }, [t, r]);
16455
16461
  }
16456
- function j2(e) {
16462
+ function B2(e) {
16457
16463
  return e.selectionStart;
16458
16464
  }
16459
- var B2 = 8, U2 = "+", V2 = [
16465
+ var U2 = 8, V2 = "+", z2 = [
16460
16466
  "onKeyDown",
16461
16467
  "country",
16462
16468
  "inputFormat",
@@ -16473,9 +16479,9 @@ function fa() {
16473
16479
  return e;
16474
16480
  }, fa.apply(this, arguments);
16475
16481
  }
16476
- function z2(e, t) {
16482
+ function G2(e, t) {
16477
16483
  if (e == null) return {};
16478
- var r = G2(e, t), n, a;
16484
+ var r = W2(e, t), n, a;
16479
16485
  if (Object.getOwnPropertySymbols) {
16480
16486
  var i = Object.getOwnPropertySymbols(e);
16481
16487
  for (a = 0; a < i.length; a++)
@@ -16483,18 +16489,18 @@ function z2(e, t) {
16483
16489
  }
16484
16490
  return r;
16485
16491
  }
16486
- function G2(e, t) {
16492
+ function W2(e, t) {
16487
16493
  if (e == null) return {};
16488
16494
  var r = {}, n = Object.keys(e), a, i;
16489
16495
  for (i = 0; i < n.length; i++)
16490
16496
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
16491
16497
  return r;
16492
16498
  }
16493
- function W2(e) {
16499
+ function H2(e) {
16494
16500
  function t(r, n) {
16495
16501
  var a = r.onKeyDown, i = r.country, o = r.inputFormat, s = r.metadata, d = s === void 0 ? e : s;
16496
16502
  r.international, r.withCountryCallingCode;
16497
- var l = z2(r, V2), u = Be(function(f) {
16503
+ var l = G2(r, z2), u = Be(function(f) {
16498
16504
  var m = new _t(i, d), h = Wd({
16499
16505
  inputFormat: o,
16500
16506
  country: i,
@@ -16508,9 +16514,9 @@ function W2(e) {
16508
16514
  onKeyDown: a,
16509
16515
  inputFormat: o
16510
16516
  });
16511
- return /* @__PURE__ */ j.createElement(C0, fa({}, l, {
16517
+ return /* @__PURE__ */ j.createElement(S0, fa({}, l, {
16512
16518
  ref: n,
16513
- parse: L2,
16519
+ parse: j2,
16514
16520
  format: u,
16515
16521
  onKeyDown: p
16516
16522
  }));
@@ -16529,7 +16535,7 @@ function W2(e) {
16529
16535
  metadata: O.default.object
16530
16536
  }, t;
16531
16537
  }
16532
- var H2 = W2(), q2 = [
16538
+ var q2 = H2(), K2 = [
16533
16539
  "value",
16534
16540
  "onChange",
16535
16541
  "onKeyDown",
@@ -16549,9 +16555,9 @@ function pa() {
16549
16555
  return e;
16550
16556
  }, pa.apply(this, arguments);
16551
16557
  }
16552
- function K2(e, t) {
16558
+ function Y2(e, t) {
16553
16559
  if (e == null) return {};
16554
- var r = Y2(e, t), n, a;
16560
+ var r = Z2(e, t), n, a;
16555
16561
  if (Object.getOwnPropertySymbols) {
16556
16562
  var i = Object.getOwnPropertySymbols(e);
16557
16563
  for (a = 0; a < i.length; a++)
@@ -16559,18 +16565,18 @@ function K2(e, t) {
16559
16565
  }
16560
16566
  return r;
16561
16567
  }
16562
- function Y2(e, t) {
16568
+ function Z2(e, t) {
16563
16569
  if (e == null) return {};
16564
16570
  var r = {}, n = Object.keys(e), a, i;
16565
16571
  for (i = 0; i < n.length; i++)
16566
16572
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
16567
16573
  return r;
16568
16574
  }
16569
- function Z2(e) {
16575
+ function X2(e) {
16570
16576
  function t(r, n) {
16571
16577
  var a = r.value, i = r.onChange, o = r.onKeyDown, s = r.country, d = r.inputFormat, l = r.metadata, u = l === void 0 ? e : l, p = r.inputComponent, f = p === void 0 ? "input" : p;
16572
16578
  r.international, r.withCountryCallingCode;
16573
- var m = K2(r, q2), h = Wd({
16579
+ var m = Y2(r, K2), h = Wd({
16574
16580
  inputFormat: d,
16575
16581
  country: s,
16576
16582
  metadata: u
@@ -16609,23 +16615,23 @@ function Z2(e) {
16609
16615
  inputComponent: O.default.elementType
16610
16616
  }, t;
16611
16617
  }
16612
- var X2 = Z2();
16618
+ var J2 = X2();
16613
16619
  function Go(e, t, r, n) {
16614
- return ua(F2(e + t, r, n), e);
16620
+ return ua(L2(e + t, r, n), e);
16615
16621
  }
16616
- function J2(e) {
16622
+ function Q2(e) {
16617
16623
  return Wo(e[0]) + Wo(e[1]);
16618
16624
  }
16619
16625
  function Wo(e) {
16620
16626
  return String.fromCodePoint(127397 + e.toUpperCase().charCodeAt(0));
16621
16627
  }
16622
- var Q2 = [
16628
+ var eh = [
16623
16629
  "value",
16624
16630
  "onChange",
16625
16631
  "options",
16626
16632
  "disabled",
16627
16633
  "readOnly"
16628
- ], eh = [
16634
+ ], th = [
16629
16635
  "value",
16630
16636
  "options",
16631
16637
  "className",
@@ -16634,10 +16640,10 @@ var Q2 = [
16634
16640
  "arrowComponent",
16635
16641
  "unicodeFlags"
16636
16642
  ];
16637
- function th(e, t) {
16643
+ function rh(e, t) {
16638
16644
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
16639
16645
  if (r) return (r = r.call(e)).next.bind(r);
16640
- if (Array.isArray(e) || (r = rh(e)) || t && e && typeof e.length == "number") {
16646
+ if (Array.isArray(e) || (r = nh(e)) || t && e && typeof e.length == "number") {
16641
16647
  r && (e = r);
16642
16648
  var n = 0;
16643
16649
  return function() {
@@ -16650,7 +16656,7 @@ function th(e, t) {
16650
16656
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16651
16657
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
16652
16658
  }
16653
- function rh(e, t) {
16659
+ function nh(e, t) {
16654
16660
  if (e) {
16655
16661
  if (typeof e == "string") return Ho(e, t);
16656
16662
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -16674,7 +16680,7 @@ function Br() {
16674
16680
  }
16675
16681
  function qd(e, t) {
16676
16682
  if (e == null) return {};
16677
- var r = nh(e, t), n, a;
16683
+ var r = ah(e, t), n, a;
16678
16684
  if (Object.getOwnPropertySymbols) {
16679
16685
  var i = Object.getOwnPropertySymbols(e);
16680
16686
  for (a = 0; a < i.length; a++)
@@ -16682,7 +16688,7 @@ function qd(e, t) {
16682
16688
  }
16683
16689
  return r;
16684
16690
  }
16685
- function nh(e, t) {
16691
+ function ah(e, t) {
16686
16692
  if (e == null) return {};
16687
16693
  var r = {}, n = Object.keys(e), a, i;
16688
16694
  for (i = 0; i < n.length; i++)
@@ -16690,7 +16696,7 @@ function nh(e, t) {
16690
16696
  return r;
16691
16697
  }
16692
16698
  function Kd(e) {
16693
- var t = e.value, r = e.onChange, n = e.options, a = e.disabled, i = e.readOnly, o = qd(e, Q2), s = Be(function(d) {
16699
+ var t = e.value, r = e.onChange, n = e.options, a = e.disabled, i = e.readOnly, o = qd(e, eh), s = Be(function(d) {
16694
16700
  var l = d.target.value;
16695
16701
  r(l === "ZZ" ? void 0 : l);
16696
16702
  }, [r]);
@@ -16707,7 +16713,7 @@ function Kd(e) {
16707
16713
  key: p ? "|" : l || "ZZ",
16708
16714
  value: p ? "|" : l || "ZZ",
16709
16715
  disabled: !!p,
16710
- style: p ? ah : void 0
16716
+ style: p ? ih : void 0
16711
16717
  }, u);
16712
16718
  }));
16713
16719
  }
@@ -16722,7 +16728,7 @@ Kd.propTypes = {
16722
16728
  disabled: O.default.bool,
16723
16729
  readOnly: O.default.bool
16724
16730
  };
16725
- var ah = {
16731
+ var ih = {
16726
16732
  fontSize: "1px",
16727
16733
  backgroundColor: "currentColor",
16728
16734
  color: "inherit"
@@ -16730,14 +16736,14 @@ var ah = {
16730
16736
  function Yd(e) {
16731
16737
  var t = e.value, r = e.options, n = e.className, a = e.iconComponent;
16732
16738
  e.getIconAspectRatio;
16733
- var i = e.arrowComponent, o = i === void 0 ? ih : i, s = e.unicodeFlags, d = qd(e, eh), l = de(function() {
16739
+ var i = e.arrowComponent, o = i === void 0 ? oh : i, s = e.unicodeFlags, d = qd(e, th), l = de(function() {
16734
16740
  return Zd(r, t);
16735
16741
  }, [r, t]);
16736
16742
  return /* @__PURE__ */ j.createElement("div", { className: "PhoneInputCountry" }, /* @__PURE__ */ j.createElement(Kd, Br({}, d, {
16737
16743
  value: t,
16738
16744
  options: r,
16739
16745
  className: (0, jr.default)("PhoneInputCountrySelect", n)
16740
- })), l && (s && t ? /* @__PURE__ */ j.createElement("div", { className: "PhoneInputCountryIconUnicode" }, J2(t)) : /* @__PURE__ */ j.createElement(a, {
16746
+ })), l && (s && t ? /* @__PURE__ */ j.createElement("div", { className: "PhoneInputCountryIconUnicode" }, Q2(t)) : /* @__PURE__ */ j.createElement(a, {
16741
16747
  "aria-hidden": !0,
16742
16748
  country: t,
16743
16749
  label: l.label,
@@ -16749,20 +16755,20 @@ Yd.propTypes = {
16749
16755
  arrowComponent: O.default.elementType,
16750
16756
  unicodeFlags: O.default.bool
16751
16757
  };
16752
- function ih() {
16758
+ function oh() {
16753
16759
  return /* @__PURE__ */ j.createElement("div", { className: "PhoneInputCountrySelectArrow" });
16754
16760
  }
16755
16761
  function Zd(e, t) {
16756
- for (var r = th(e), n; !(n = r()).done; ) {
16762
+ for (var r = rh(e), n; !(n = r()).done; ) {
16757
16763
  var a = n.value;
16758
- if (!a.divider && oh(a.value, t))
16764
+ if (!a.divider && sh(a.value, t))
16759
16765
  return a;
16760
16766
  }
16761
16767
  }
16762
- function oh(e, t) {
16768
+ function sh(e, t) {
16763
16769
  return e == null ? t == null : e === t;
16764
16770
  }
16765
- var sh = [
16771
+ var dh = [
16766
16772
  "country",
16767
16773
  "countryName",
16768
16774
  "flags",
@@ -16777,9 +16783,9 @@ function ma() {
16777
16783
  return e;
16778
16784
  }, ma.apply(this, arguments);
16779
16785
  }
16780
- function dh(e, t) {
16786
+ function lh(e, t) {
16781
16787
  if (e == null) return {};
16782
- var r = lh(e, t), n, a;
16788
+ var r = ch(e, t), n, a;
16783
16789
  if (Object.getOwnPropertySymbols) {
16784
16790
  var i = Object.getOwnPropertySymbols(e);
16785
16791
  for (a = 0; a < i.length; a++)
@@ -16787,7 +16793,7 @@ function dh(e, t) {
16787
16793
  }
16788
16794
  return r;
16789
16795
  }
16790
- function lh(e, t) {
16796
+ function ch(e, t) {
16791
16797
  if (e == null) return {};
16792
16798
  var r = {}, n = Object.keys(e), a, i;
16793
16799
  for (i = 0; i < n.length; i++)
@@ -16795,7 +16801,7 @@ function lh(e, t) {
16795
16801
  return r;
16796
16802
  }
16797
16803
  function za(e) {
16798
- var t = e.country, r = e.countryName, n = e.flags, a = e.flagUrl, i = dh(e, sh);
16804
+ var t = e.country, r = e.countryName, n = e.flags, a = e.flagUrl, i = lh(e, dh);
16799
16805
  return n && n[t] ? n[t]({ title: r }) : /* @__PURE__ */ j.createElement("img", ma({}, i, {
16800
16806
  alt: r,
16801
16807
  role: r ? void 0 : "presentation",
@@ -16808,7 +16814,7 @@ za.propTypes = {
16808
16814
  flags: O.default.objectOf(O.default.elementType),
16809
16815
  flagUrl: O.default.string.isRequired
16810
16816
  };
16811
- var ch = ["aspectRatio"], uh = ["title"], fh = ["title"];
16817
+ var uh = ["aspectRatio"], fh = ["title"], ph = ["title"];
16812
16818
  function Ur() {
16813
16819
  return Ur = Object.assign ? Object.assign.bind() : function(e) {
16814
16820
  for (var t = 1; t < arguments.length; t++) {
@@ -16820,7 +16826,7 @@ function Ur() {
16820
16826
  }
16821
16827
  function Ga(e, t) {
16822
16828
  if (e == null) return {};
16823
- var r = ph(e, t), n, a;
16829
+ var r = mh(e, t), n, a;
16824
16830
  if (Object.getOwnPropertySymbols) {
16825
16831
  var i = Object.getOwnPropertySymbols(e);
16826
16832
  for (a = 0; a < i.length; a++)
@@ -16828,7 +16834,7 @@ function Ga(e, t) {
16828
16834
  }
16829
16835
  return r;
16830
16836
  }
16831
- function ph(e, t) {
16837
+ function mh(e, t) {
16832
16838
  if (e == null) return {};
16833
16839
  var r = {}, n = Object.keys(e), a, i;
16834
16840
  for (i = 0; i < n.length; i++)
@@ -16836,7 +16842,7 @@ function ph(e, t) {
16836
16842
  return r;
16837
16843
  }
16838
16844
  function cn(e) {
16839
- var t = e.aspectRatio, r = Ga(e, ch);
16845
+ var t = e.aspectRatio, r = Ga(e, uh);
16840
16846
  return t === 1 ? /* @__PURE__ */ j.createElement(Jd, r) : /* @__PURE__ */ j.createElement(Xd, r);
16841
16847
  }
16842
16848
  cn.propTypes = {
@@ -16844,7 +16850,7 @@ cn.propTypes = {
16844
16850
  aspectRatio: O.default.number
16845
16851
  };
16846
16852
  function Xd(e) {
16847
- var t = e.title, r = Ga(e, uh);
16853
+ var t = e.title, r = Ga(e, fh);
16848
16854
  return /* @__PURE__ */ j.createElement("svg", Ur({}, r, {
16849
16855
  xmlns: "http://www.w3.org/2000/svg",
16850
16856
  viewBox: "0 0 75 50"
@@ -16882,7 +16888,7 @@ function Xd(e) {
16882
16888
  }
16883
16889
  Xd.propTypes = { title: O.default.string.isRequired };
16884
16890
  function Jd(e) {
16885
- var t = e.title, r = Ga(e, fh);
16891
+ var t = e.title, r = Ga(e, ph);
16886
16892
  return /* @__PURE__ */ j.createElement("svg", Ur({}, r, {
16887
16893
  xmlns: "http://www.w3.org/2000/svg",
16888
16894
  viewBox: "0 0 50 50"
@@ -16910,7 +16916,7 @@ function Jd(e) {
16910
16916
  }));
16911
16917
  }
16912
16918
  Jd.propTypes = { title: O.default.string.isRequired };
16913
- function mh(e) {
16919
+ function hh(e) {
16914
16920
  if (e.length < 2 || e[0] !== "+") return !1;
16915
16921
  for (var t = 1; t < e.length; ) {
16916
16922
  var r = e.charCodeAt(t);
@@ -16921,12 +16927,12 @@ function mh(e) {
16921
16927
  return !0;
16922
16928
  }
16923
16929
  function Qd(e) {
16924
- mh(e) || console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got", e);
16930
+ hh(e) || console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got", e);
16925
16931
  }
16926
- function hh(e, t) {
16932
+ function vh(e, t) {
16927
16933
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
16928
16934
  if (r) return (r = r.call(e)).next.bind(r);
16929
- if (Array.isArray(e) || (r = vh(e)) || t && e && typeof e.length == "number") {
16935
+ if (Array.isArray(e) || (r = yh(e)) || t && e && typeof e.length == "number") {
16930
16936
  r && (e = r);
16931
16937
  var n = 0;
16932
16938
  return function() {
@@ -16939,7 +16945,7 @@ function hh(e, t) {
16939
16945
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16940
16946
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
16941
16947
  }
16942
- function vh(e, t) {
16948
+ function yh(e, t) {
16943
16949
  if (e) {
16944
16950
  if (typeof e == "string") return qo(e, t);
16945
16951
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -16952,7 +16958,7 @@ function qo(e, t) {
16952
16958
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
16953
16959
  return n;
16954
16960
  }
16955
- function yh(e, t) {
16961
+ function $h(e, t) {
16956
16962
  if (!t) return e;
16957
16963
  for (var r = [], n = [], a = r, i = function() {
16958
16964
  var l = s.value;
@@ -16966,10 +16972,10 @@ function yh(e, t) {
16966
16972
  })[0]), f = e[p];
16967
16973
  e.splice(p, 1), a.push(f);
16968
16974
  }
16969
- }, o = hh(t), s; !(s = o()).done; ) i();
16975
+ }, o = vh(t), s; !(s = o()).done; ) i();
16970
16976
  return r.concat(e).concat(n);
16971
16977
  }
16972
- function $h(e, t) {
16978
+ function gh(e, t) {
16973
16979
  if (e && (e = e.filter(function(r) {
16974
16980
  switch (r) {
16975
16981
  case "🌐":
@@ -16991,7 +16997,7 @@ function el(e, t) {
16991
16997
  return un(r, t);
16992
16998
  }), e.length === 0 && (e = void 0)), e;
16993
16999
  }
16994
- var gh = [
17000
+ var bh = [
16995
17001
  "country",
16996
17002
  "label",
16997
17003
  "aspectRatio"
@@ -17005,9 +17011,9 @@ function ha() {
17005
17011
  return e;
17006
17012
  }, ha.apply(this, arguments);
17007
17013
  }
17008
- function bh(e, t) {
17014
+ function Nh(e, t) {
17009
17015
  if (e == null) return {};
17010
- var r = Nh(e, t), n, a;
17016
+ var r = Ch(e, t), n, a;
17011
17017
  if (Object.getOwnPropertySymbols) {
17012
17018
  var i = Object.getOwnPropertySymbols(e);
17013
17019
  for (a = 0; a < i.length; a++)
@@ -17015,7 +17021,7 @@ function bh(e, t) {
17015
17021
  }
17016
17022
  return r;
17017
17023
  }
17018
- function Nh(e, t) {
17024
+ function Ch(e, t) {
17019
17025
  if (e == null) return {};
17020
17026
  var r = {}, n = Object.keys(e), a, i;
17021
17027
  for (i = 0; i < n.length; i++)
@@ -17025,7 +17031,7 @@ function Nh(e, t) {
17025
17031
  function tl(e) {
17026
17032
  var t = e.flags, r = e.flagUrl, n = e.flagComponent, a = e.internationalIcon;
17027
17033
  function i(o) {
17028
- var s = o.country, d = o.label, l = o.aspectRatio, u = bh(o, gh), p = a === cn ? l : void 0;
17034
+ var s = o.country, d = o.label, l = o.aspectRatio, u = Nh(o, bh), p = a === cn ? l : void 0;
17029
17035
  return /* @__PURE__ */ j.createElement("div", ha({}, u, { className: (0, jr.default)("PhoneInputCountryIcon", {
17030
17036
  "PhoneInputCountryIcon--square": p === 1,
17031
17037
  "PhoneInputCountryIcon--border": s
@@ -17047,15 +17053,15 @@ function tl(e) {
17047
17053
  aspectRatio: O.default.number
17048
17054
  }, i;
17049
17055
  }
17050
- var Xv = tl({
17056
+ var Qv = tl({
17051
17057
  flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
17052
17058
  flagComponent: za,
17053
17059
  internationalIcon: cn
17054
17060
  });
17055
- function Ch(e, t) {
17061
+ function Sh(e, t) {
17056
17062
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
17057
17063
  if (r) return (r = r.call(e)).next.bind(r);
17058
- if (Array.isArray(e) || (r = Sh(e)) || t && e && typeof e.length == "number") {
17064
+ if (Array.isArray(e) || (r = Ph(e)) || t && e && typeof e.length == "number") {
17059
17065
  r && (e = r);
17060
17066
  var n = 0;
17061
17067
  return function() {
@@ -17068,7 +17074,7 @@ function Ch(e, t) {
17068
17074
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17069
17075
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
17070
17076
  }
17071
- function Sh(e, t) {
17077
+ function Ph(e, t) {
17072
17078
  if (e) {
17073
17079
  if (typeof e == "string") return Ko(e, t);
17074
17080
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -17081,13 +17087,13 @@ function Ko(e, t) {
17081
17087
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
17082
17088
  return n;
17083
17089
  }
17084
- function Ph(e, t) {
17085
- for (var r = Ch(e), n; !(n = r()).done; ) {
17090
+ function wh(e, t) {
17091
+ for (var r = Sh(e), n; !(n = r()).done; ) {
17086
17092
  var a = n.value;
17087
- a && wh(a, t);
17093
+ a && _h(a, t);
17088
17094
  }
17089
17095
  }
17090
- function wh(e, t) {
17096
+ function _h(e, t) {
17091
17097
  typeof e == "function" ? e(t) : e.current = t;
17092
17098
  }
17093
17099
  var rl = O.default.shape({
@@ -17097,13 +17103,13 @@ var rl = O.default.shape({
17097
17103
  function Ue(e, t) {
17098
17104
  return "+" + Ke(e, t);
17099
17105
  }
17100
- function _h(e) {
17106
+ function Oh(e) {
17101
17107
  var t = e.value, r = e.phoneNumber, n = e.defaultCountry, a = e.getAnyCountry, i = e.countries, o = e.required, s = e.metadata, d;
17102
17108
  return r && r.country ? d = r.country : n && (!t || pt(t, n, s)) && (d = n), i && i.indexOf(d) < 0 && (d = void 0), !d && o && i && i.length > 0 && (d = a()), d;
17103
17109
  }
17104
- function Oh(e) {
17110
+ function Eh(e) {
17105
17111
  var t = e.countries, r = e.countryNames, n = e.addInternationalOption, a = e.compareStringsLocales, i = e.compareStrings;
17106
- i || (i = Mh);
17112
+ i || (i = Dh);
17107
17113
  var o = t.map(function(s) {
17108
17114
  return {
17109
17115
  value: s,
@@ -17115,19 +17121,19 @@ function Oh(e) {
17115
17121
  }), n && o.unshift({ label: r.ZZ }), o;
17116
17122
  }
17117
17123
  function al(e, t) {
17118
- return Cm(e || "", t);
17124
+ return Sm(e || "", t);
17119
17125
  }
17120
- function Eh(e) {
17126
+ function Ih(e) {
17121
17127
  return e.formatNational().replace(/\D/g, "");
17122
17128
  }
17123
- function Ih(e, t) {
17129
+ function Th(e, t) {
17124
17130
  var r = t.prevCountry, n = t.newCountry, a = t.metadata, i = t.useNationalFormat;
17125
17131
  if (r === n) return e;
17126
17132
  if (!e) return i ? "" : n ? Ue(n, a) : "";
17127
17133
  if (n) {
17128
17134
  if (e[0] === "+") {
17129
17135
  if (i)
17130
- return e.indexOf("+" + Ke(n, a)) === 0 ? Dh(e, n, a) : "";
17136
+ return e.indexOf("+" + Ke(n, a)) === 0 ? Rh(e, n, a) : "";
17131
17137
  if (r) {
17132
17138
  var o = Ue(n, a);
17133
17139
  return e.indexOf(o) === 0 ? e : o;
@@ -17153,21 +17159,21 @@ function dt(e, t, r) {
17153
17159
  }
17154
17160
  }
17155
17161
  }
17156
- function Th(e, t, r) {
17162
+ function Ah(e, t, r) {
17157
17163
  var n = ol(e, t, r);
17158
17164
  if (n) {
17159
- var a = n.length - Ah(t, r);
17165
+ var a = n.length - xh(t, r);
17160
17166
  if (a > 0) return e.slice(0, e.length - a);
17161
17167
  }
17162
17168
  return e;
17163
17169
  }
17164
- function Ah(e, t) {
17170
+ function xh(e, t) {
17165
17171
  return t = new me(t), t.selectNumberingPlan(e), t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length - 1];
17166
17172
  }
17167
17173
  function il(e, t) {
17168
17174
  var r = t.country, n = t.countries, a = t.defaultCountry, i = t.latestCountrySelectedByUser, o = t.required, s = t.metadata;
17169
17175
  if (e === "+") return r;
17170
- var d = kh(e, s);
17176
+ var d = Mh(e, s);
17171
17177
  if (d) return !n || n.indexOf(d) >= 0 ? d : void 0;
17172
17178
  if (r) {
17173
17179
  if (pt(e, r, s)) {
@@ -17178,7 +17184,7 @@ function il(e, t) {
17178
17184
  }
17179
17185
  return r;
17180
17186
  }
17181
- function xh(e, t) {
17187
+ function kh(e, t) {
17182
17188
  var r = t.prevPhoneDigits, n = t.country, a = t.defaultCountry, i = t.latestCountrySelectedByUser, o = t.countryRequired, s = t.getAnyCountry, d = t.countries, l = t.international, u = t.limitMaxLength, p = t.countryCallingCodeEditable, f = t.metadata;
17183
17189
  if (l && p === !1 && n) {
17184
17190
  var m = Ue(n, f);
@@ -17191,7 +17197,7 @@ function xh(e, t) {
17191
17197
  };
17192
17198
  }
17193
17199
  }
17194
- l === !1 && n && e && e[0] === "+" && (e = Yo(e, n, f)), e && n && u && (e = Th(e, n, f)), e && e[0] !== "+" && (!n || l) && (e = "+" + e), !e && r && r[0] === "+" && (l ? n = void 0 : n = a), e === "+" && r && r[0] === "+" && r.length > 1 && (n = void 0);
17200
+ l === !1 && n && e && e[0] === "+" && (e = Yo(e, n, f)), e && n && u && (e = Ah(e, n, f)), e && e[0] !== "+" && (!n || l) && (e = "+" + e), !e && r && r[0] === "+" && (l ? n = void 0 : n = a), e === "+" && r && r[0] === "+" && r.length > 1 && (n = void 0);
17195
17201
  var y;
17196
17202
  return e && (e[0] === "+" && (e === "+" || n && Ue(n, f).indexOf(e) === 0) ? y = void 0 : y = dt(e, n, f)), y && (n = il(y, {
17197
17203
  country: n,
@@ -17214,14 +17220,14 @@ function Yo(e, t, r) {
17214
17220
  return a ? a.formatNational().replace(/\D/g, "") : "";
17215
17221
  } else return e.replace(/\D/g, "");
17216
17222
  }
17217
- function kh(e, t) {
17223
+ function Mh(e, t) {
17218
17224
  var r = new _t(null, t);
17219
17225
  return r.input(e), r.getCountry();
17220
17226
  }
17221
- function Mh(e, t, r) {
17227
+ function Dh(e, t, r) {
17222
17228
  return String.prototype.localeCompare ? e.localeCompare(t, r) : e < t ? -1 : e > t ? 1 : 0;
17223
17229
  }
17224
- function Dh(e, t, r) {
17230
+ function Rh(e, t, r) {
17225
17231
  if (t) {
17226
17232
  var n = "+" + Ke(t, r);
17227
17233
  if (e.length < n.length) {
@@ -17249,7 +17255,7 @@ function pt(e, t, r) {
17249
17255
  }
17250
17256
  function sl(e) {
17251
17257
  var t = e.value, r = e.phoneNumber, n = e.defaultCountry, a = e.international, i = e.useNationalFormat, o = e.metadata;
17252
- return (a === !1 || i) && r && r.country ? Eh(r) : !t && a && n ? Ue(n, o) : t;
17258
+ return (a === !1 || i) && r && r.country ? Ih(r) : !t && a && n ? Ue(n, o) : t;
17253
17259
  }
17254
17260
  function Ht(e) {
17255
17261
  "@babel/helpers - typeof";
@@ -17273,26 +17279,26 @@ function ir(e) {
17273
17279
  for (var t = 1; t < arguments.length; t++) {
17274
17280
  var r = arguments[t] != null ? arguments[t] : {};
17275
17281
  t % 2 ? Zo(Object(r), !0).forEach(function(n) {
17276
- Rh(e, n, r[n]);
17282
+ Fh(e, n, r[n]);
17277
17283
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zo(Object(r)).forEach(function(n) {
17278
17284
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
17279
17285
  });
17280
17286
  }
17281
17287
  return e;
17282
17288
  }
17283
- function Rh(e, t, r) {
17284
- return t = Fh(t), t in e ? Object.defineProperty(e, t, {
17289
+ function Fh(e, t, r) {
17290
+ return t = Lh(t), t in e ? Object.defineProperty(e, t, {
17285
17291
  value: r,
17286
17292
  enumerable: !0,
17287
17293
  configurable: !0,
17288
17294
  writable: !0
17289
17295
  }) : e[t] = r, e;
17290
17296
  }
17291
- function Fh(e) {
17292
- var t = Lh(e, "string");
17297
+ function Lh(e) {
17298
+ var t = jh(e, "string");
17293
17299
  return Ht(t) == "symbol" ? t : t + "";
17294
17300
  }
17295
- function Lh(e, t) {
17301
+ function jh(e, t) {
17296
17302
  if (Ht(e) != "object" || !e) return e;
17297
17303
  var r = e[Symbol.toPrimitive];
17298
17304
  if (r !== void 0) {
@@ -17302,7 +17308,7 @@ function Lh(e, t) {
17302
17308
  }
17303
17309
  return (t === "string" ? String : Number)(e);
17304
17310
  }
17305
- function jh(e, t, r) {
17311
+ function Bh(e, t, r) {
17306
17312
  var n = e.metadata, a = e.countries, i = e.defaultCountry, o = e.value, s = e.reset, d = e.international, l = e.displayInitialValueAsLocalNumber, u = e.initialValueFormat, p = t.defaultCountry, f = t.value, m = t.reset;
17307
17313
  r.country;
17308
17314
  var h = r.value, y = r.hasUserSelectedACountry, g = r.latestCountrySelectedByUser, b = function(Z) {
@@ -17365,7 +17371,7 @@ function jh(e, t, r) {
17365
17371
  function Xo(e, t) {
17366
17372
  return e === null && (e = void 0), t === null && (t = void 0), e === t;
17367
17373
  }
17368
- var Bh = [
17374
+ var Uh = [
17369
17375
  "name",
17370
17376
  "disabled",
17371
17377
  "readOnly",
@@ -17438,9 +17444,9 @@ function mt() {
17438
17444
  return e;
17439
17445
  }, mt.apply(this, arguments);
17440
17446
  }
17441
- function Uh(e, t) {
17447
+ function Vh(e, t) {
17442
17448
  if (e == null) return {};
17443
- var r = Vh(e, t), n, a;
17449
+ var r = zh(e, t), n, a;
17444
17450
  if (Object.getOwnPropertySymbols) {
17445
17451
  var i = Object.getOwnPropertySymbols(e);
17446
17452
  for (a = 0; a < i.length; a++)
@@ -17448,14 +17454,14 @@ function Uh(e, t) {
17448
17454
  }
17449
17455
  return r;
17450
17456
  }
17451
- function Vh(e, t) {
17457
+ function zh(e, t) {
17452
17458
  if (e == null) return {};
17453
17459
  var r = {}, n = Object.keys(e), a, i;
17454
17460
  for (i = 0; i < n.length; i++)
17455
17461
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
17456
17462
  return r;
17457
17463
  }
17458
- function zh(e, t) {
17464
+ function Gh(e, t) {
17459
17465
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
17460
17466
  }
17461
17467
  function Qo(e, t) {
@@ -17464,18 +17470,18 @@ function Qo(e, t) {
17464
17470
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, cl(n.key), n);
17465
17471
  }
17466
17472
  }
17467
- function Gh(e, t, r) {
17473
+ function Wh(e, t, r) {
17468
17474
  return t && Qo(e.prototype, t), r && Qo(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
17469
17475
  }
17470
- function Wh(e, t, r) {
17471
- return t = Vr(t), Hh(e, ll() ? Reflect.construct(t, r || [], Vr(e).constructor) : t.apply(e, r));
17476
+ function Hh(e, t, r) {
17477
+ return t = Vr(t), qh(e, ll() ? Reflect.construct(t, r || [], Vr(e).constructor) : t.apply(e, r));
17472
17478
  }
17473
- function Hh(e, t) {
17479
+ function qh(e, t) {
17474
17480
  if (t && (gt(t) === "object" || typeof t == "function")) return t;
17475
17481
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
17476
- return qh(e);
17482
+ return Kh(e);
17477
17483
  }
17478
- function qh(e) {
17484
+ function Kh(e) {
17479
17485
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
17480
17486
  return e;
17481
17487
  }
@@ -17494,7 +17500,7 @@ function Vr(e) {
17494
17500
  return r.__proto__ || Object.getPrototypeOf(r);
17495
17501
  }, Vr(e);
17496
17502
  }
17497
- function Kh(e, t) {
17503
+ function Yh(e, t) {
17498
17504
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
17499
17505
  e.prototype = Object.create(t && t.prototype, { constructor: {
17500
17506
  value: e,
@@ -17516,10 +17522,10 @@ function ke(e, t, r) {
17516
17522
  }) : e[t] = r, e;
17517
17523
  }
17518
17524
  function cl(e) {
17519
- var t = Yh(e, "string");
17525
+ var t = Zh(e, "string");
17520
17526
  return gt(t) == "symbol" ? t : t + "";
17521
17527
  }
17522
- function Yh(e, t) {
17528
+ function Zh(e, t) {
17523
17529
  if (gt(e) != "object" || !e) return e;
17524
17530
  var r = e[Symbol.toPrimitive];
17525
17531
  if (r !== void 0) {
@@ -17529,16 +17535,16 @@ function Yh(e, t) {
17529
17535
  }
17530
17536
  return (t === "string" ? String : Number)(e);
17531
17537
  }
17532
- var Zh = /* @__PURE__ */ (function(e) {
17538
+ var Xh = /* @__PURE__ */ (function(e) {
17533
17539
  function t(r) {
17534
17540
  var n;
17535
- zh(this, t), n = Wh(this, t, [r]), ke(n, "setInputRef", function(g) {
17536
- Ph([n.props.inputRef, n.inputRef], g);
17541
+ Gh(this, t), n = Hh(this, t, [r]), ke(n, "setInputRef", function(g) {
17542
+ wh([n.props.inputRef, n.inputRef], g);
17537
17543
  }), ke(n, "isCountrySupportedWithError", function(g) {
17538
17544
  var b = n.props.metadata;
17539
17545
  return un(g, b);
17540
17546
  }), ke(n, "onCountryChange", function(g) {
17541
- var b = n.props, $ = b.international, S = b.metadata, P = b.onChange, C = b.focusInputOnCountrySelection, N = n.state, E = N.phoneDigits, D = N.country, Z = Ih(E, {
17547
+ var b = n.props, $ = b.international, S = b.metadata, P = b.onChange, C = b.focusInputOnCountrySelection, N = n.state, E = N.phoneDigits, D = N.country, Z = Th(E, {
17542
17548
  prevCountry: D,
17543
17549
  newCountry: g,
17544
17550
  metadata: S,
@@ -17554,7 +17560,7 @@ var Zh = /* @__PURE__ */ (function(e) {
17554
17560
  P(J);
17555
17561
  });
17556
17562
  }), ke(n, "onChange", function(g) {
17557
- var b = n.props, $ = b.defaultCountry, S = b.onChange, P = b.addInternationalOption, C = b.international, N = b.limitMaxLength, E = b.countryCallingCodeEditable, D = b.metadata, Z = n.state, J = Z.countries, te = Z.phoneDigits, le = Z.country, ae = Z.latestCountrySelectedByUser, ce = xh(g, {
17563
+ var b = n.props, $ = b.defaultCountry, S = b.onChange, P = b.addInternationalOption, C = b.international, N = b.limitMaxLength, E = b.countryCallingCodeEditable, D = b.metadata, Z = n.state, J = Z.countries, te = Z.phoneDigits, le = Z.country, ae = Z.latestCountrySelectedByUser, ce = kh(g, {
17558
17564
  prevPhoneDigits: te,
17559
17565
  country: le,
17560
17566
  countryRequired: !P,
@@ -17608,7 +17614,7 @@ var Zh = /* @__PURE__ */ (function(e) {
17608
17614
  f && (n.isCountrySupportedWithError(f) || (f = void 0)), i && Qd(i), m = el(m, u);
17609
17615
  var h = al(i, u);
17610
17616
  n.CountryIcon = tl(n.props);
17611
- var y = _h({
17617
+ var y = Oh({
17612
17618
  value: i,
17613
17619
  phoneNumber: h,
17614
17620
  defaultCountry: f,
@@ -17634,7 +17640,7 @@ var Zh = /* @__PURE__ */ (function(e) {
17634
17640
  value: i
17635
17641
  }, n;
17636
17642
  }
17637
- return Kh(t, e), Gh(t, [
17643
+ return Yh(t, e), Wh(t, [
17638
17644
  {
17639
17645
  key: "componentDidMount",
17640
17646
  value: function() {
@@ -17654,12 +17660,12 @@ var Zh = /* @__PURE__ */ (function(e) {
17654
17660
  value: function(n) {
17655
17661
  var a = n.countries, i = this.props, o = i.international, s = i.countryCallingCodeEditable, d = i.countryOptionsOrder, l = i.addInternationalOption, u = i.labels, p = i.locales, f = i.metadata;
17656
17662
  return this.useMemoCountrySelectOptions(function() {
17657
- return yh(Oh({
17663
+ return $h(Eh({
17658
17664
  countries: a || zo(f),
17659
17665
  countryNames: u,
17660
17666
  addInternationalOption: o && s === !1 ? !1 : l,
17661
17667
  compareStringsLocales: p
17662
- }), $h(d, f));
17668
+ }), gh(d, f));
17663
17669
  }, [
17664
17670
  a,
17665
17671
  d,
@@ -17672,7 +17678,7 @@ var Zh = /* @__PURE__ */ (function(e) {
17672
17678
  {
17673
17679
  key: "useMemoCountrySelectOptions",
17674
17680
  value: function(n, a) {
17675
- return (!this.countrySelectOptionsMemoDependencies || !Jh(a, this.countrySelectOptionsMemoDependencies)) && (this.countrySelectOptionsMemo = n(), this.countrySelectOptionsMemoDependencies = a), this.countrySelectOptionsMemo;
17681
+ return (!this.countrySelectOptionsMemoDependencies || !Qh(a, this.countrySelectOptionsMemoDependencies)) && (this.countrySelectOptionsMemo = n(), this.countrySelectOptionsMemoDependencies = a), this.countrySelectOptionsMemo;
17676
17682
  }
17677
17683
  },
17678
17684
  {
@@ -17693,7 +17699,7 @@ var Zh = /* @__PURE__ */ (function(e) {
17693
17699
  n.flags, n.flagComponent, n.flagUrl, n.addInternationalOption, n.internationalIcon, n.displayInitialValueAsLocalNumber, n.initialValueFormat, n.onCountryChange, n.limitMaxLength, n.countryCallingCodeEditable, n.focusInputOnCountrySelection, n.reset;
17694
17700
  var $ = n.metadata, S = n.international;
17695
17701
  n.locales;
17696
- var P = Uh(n, Bh), C = this.state, N = C.country, E = C.countries, D = C.phoneDigits, Z = C.isFocused, J = f ? H2 : X2, te = this.getCountrySelectOptions({ countries: E });
17702
+ var P = Vh(n, Uh), C = this.state, N = C.country, E = C.countries, D = C.phoneDigits, Z = C.isFocused, J = f ? q2 : J2, te = this.getCountrySelectOptions({ countries: E });
17697
17703
  return /* @__PURE__ */ j.createElement(y, mt({
17698
17704
  style: d,
17699
17705
  className: (0, jr.default)(l, "PhoneInput", {
@@ -17738,11 +17744,11 @@ var Zh = /* @__PURE__ */ (function(e) {
17738
17744
  ], [{
17739
17745
  key: "getDerivedStateFromProps",
17740
17746
  value: function(n, a) {
17741
- return dl({ props: n }, jh(n, a.props, a));
17747
+ return dl({ props: n }, Bh(n, a.props, a));
17742
17748
  }
17743
17749
  }]);
17744
17750
  })(j.PureComponent), ul = /* @__PURE__ */ j.forwardRef(function(e, t) {
17745
- return /* @__PURE__ */ j.createElement(Zh, mt({}, Xh(e), { inputRef: t }));
17751
+ return /* @__PURE__ */ j.createElement(Xh, mt({}, Jh(e), { inputRef: t }));
17746
17752
  });
17747
17753
  ul.propTypes = {
17748
17754
  value: O.default.string,
@@ -17794,12 +17800,12 @@ var es = {
17794
17800
  countryCallingCodeEditable: !0,
17795
17801
  focusInputOnCountrySelection: !0
17796
17802
  };
17797
- function Xh(e) {
17803
+ function Jh(e) {
17798
17804
  e = dl({}, e);
17799
17805
  for (var t in es) e[t] === void 0 && (e[t] = es[t]);
17800
17806
  return e;
17801
17807
  }
17802
- function Jh(e, t) {
17808
+ function Qh(e, t) {
17803
17809
  if (e.length !== t.length) return !1;
17804
17810
  for (var r = 0; r < e.length; ) {
17805
17811
  if (e[r] !== t[r]) return !1;
@@ -17807,7 +17813,7 @@ function Jh(e, t) {
17807
17813
  }
17808
17814
  return !0;
17809
17815
  }
17810
- var Qh = {
17816
+ var ev = {
17811
17817
  ext: "ext.",
17812
17818
  country: "Phone number country",
17813
17819
  phone: "Phone",
@@ -18066,7 +18072,7 @@ var Qh = {
18066
18072
  ZM: "Zambia",
18067
18073
  ZW: "Zimbabwe",
18068
18074
  ZZ: "International"
18069
- }, ev = ["metadata", "labels"];
18075
+ }, tv = ["metadata", "labels"];
18070
18076
  function ya() {
18071
18077
  return ya = Object.assign ? Object.assign.bind() : function(e) {
18072
18078
  for (var t = 1; t < arguments.length; t++) {
@@ -18076,9 +18082,9 @@ function ya() {
18076
18082
  return e;
18077
18083
  }, ya.apply(this, arguments);
18078
18084
  }
18079
- function tv(e, t) {
18085
+ function rv(e, t) {
18080
18086
  if (e == null) return {};
18081
- var r = rv(e, t), n, a;
18087
+ var r = nv(e, t), n, a;
18082
18088
  if (Object.getOwnPropertySymbols) {
18083
18089
  var i = Object.getOwnPropertySymbols(e);
18084
18090
  for (a = 0; a < i.length; a++)
@@ -18086,7 +18092,7 @@ function tv(e, t) {
18086
18092
  }
18087
18093
  return r;
18088
18094
  }
18089
- function rv(e, t) {
18095
+ function nv(e, t) {
18090
18096
  if (e == null) return {};
18091
18097
  var r = {}, n = Object.keys(e), a, i;
18092
18098
  for (i = 0; i < n.length; i++)
@@ -18095,7 +18101,7 @@ function rv(e, t) {
18095
18101
  }
18096
18102
  function fl(e) {
18097
18103
  var t = /* @__PURE__ */ j.forwardRef(function(r, n) {
18098
- var a = r.metadata, i = a === void 0 ? e : a, o = r.labels, s = o === void 0 ? Qh : o, d = tv(r, ev);
18104
+ var a = r.metadata, i = a === void 0 ? e : a, o = r.labels, s = o === void 0 ? ev : o, d = rv(r, tv);
18099
18105
  return /* @__PURE__ */ j.createElement(ul, ya({}, d, {
18100
18106
  ref: n,
18101
18107
  metadata: i,
@@ -18107,20 +18113,20 @@ function fl(e) {
18107
18113
  labels: nl
18108
18114
  }, t;
18109
18115
  }
18110
- var Jv = fl();
18111
- function nv(e, t) {
18116
+ var ey = fl();
18117
+ function av(e, t) {
18112
18118
  var r = Array.prototype.slice.call(t);
18113
18119
  return r.push(Cd), e.apply(this, r);
18114
18120
  }
18115
- var av = fl(Cd);
18121
+ var iv = fl(Cd);
18116
18122
  function Rn() {
18117
- return nv(_m, arguments);
18123
+ return av(Om, arguments);
18118
18124
  }
18119
- var iv = (e) => e.replace(/\D/g, "").slice(0, 16).replace(/(.{4})/g, "$1 ").trim(), ov = (e) => {
18125
+ var ov = (e) => e.replace(/\D/g, "").slice(0, 16).replace(/(.{4})/g, "$1 ").trim(), sv = (e) => {
18120
18126
  const t = e.replace(/\D/g, "").slice(0, 4);
18121
18127
  return t.length >= 3 ? `${t.slice(0, 2)}/${t.slice(2)}` : t;
18122
- }, sv = (e) => e.replace(/\D/g, "").slice(0, 3);
18123
- function dv({ onClose: e, onPay: t, amount: r }) {
18128
+ }, dv = (e) => e.replace(/\D/g, "").slice(0, 3);
18129
+ function lv({ onClose: e, onPay: t, amount: r }) {
18124
18130
  const { timeZone: n } = K((u) => u.booking?.outletDetails), { control: a, handleSubmit: i, reset: o, formState: { errors: s, isSubmitting: d } } = ba({ defaultValues: {
18125
18131
  name: "",
18126
18132
  number: "",
@@ -18217,7 +18223,7 @@ function dv({ onClose: e, onPay: t, amount: r }) {
18217
18223
  id: "number",
18218
18224
  placeholder: "4242 4242 4242 4242",
18219
18225
  onChange: (p) => {
18220
- u.onChange(iv(p.target.value));
18226
+ u.onChange(ov(p.target.value));
18221
18227
  },
18222
18228
  className: "arravpos-custom-input"
18223
18229
  })
@@ -18259,7 +18265,7 @@ function dv({ onClose: e, onPay: t, amount: r }) {
18259
18265
  id: "expiry",
18260
18266
  placeholder: "MM/YY",
18261
18267
  onChange: (p) => {
18262
- u.onChange(ov(p.target.value));
18268
+ u.onChange(sv(p.target.value));
18263
18269
  },
18264
18270
  className: "arravpos-custom-input"
18265
18271
  })
@@ -18295,7 +18301,7 @@ function dv({ onClose: e, onPay: t, amount: r }) {
18295
18301
  id: "cvv",
18296
18302
  placeholder: "CVV",
18297
18303
  onChange: (p) => {
18298
- u.onChange(sv(p.target.value));
18304
+ u.onChange(dv(p.target.value));
18299
18305
  },
18300
18306
  className: "arravpos-custom-input"
18301
18307
  })
@@ -18339,7 +18345,7 @@ function $a() {
18339
18345
  return e;
18340
18346
  }, $a.apply(null, arguments);
18341
18347
  }
18342
- function lv(e, t) {
18348
+ function cv(e, t) {
18343
18349
  if (e == null) return {};
18344
18350
  var r = {};
18345
18351
  for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
@@ -18348,9 +18354,9 @@ function lv(e, t) {
18348
18354
  }
18349
18355
  return r;
18350
18356
  }
18351
- function cv(e, t) {
18357
+ function uv(e, t) {
18352
18358
  if (e == null) return {};
18353
- var r, n, a = lv(e, t);
18359
+ var r, n, a = cv(e, t);
18354
18360
  if (Object.getOwnPropertySymbols) {
18355
18361
  var i = Object.getOwnPropertySymbols(e);
18356
18362
  for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
@@ -18365,7 +18371,7 @@ function bt(e) {
18365
18371
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
18366
18372
  }, bt(e);
18367
18373
  }
18368
- function uv(e, t) {
18374
+ function fv(e, t) {
18369
18375
  if (bt(e) != "object" || !e) return e;
18370
18376
  var r = e[Symbol.toPrimitive];
18371
18377
  if (r !== void 0) {
@@ -18375,20 +18381,20 @@ function uv(e, t) {
18375
18381
  }
18376
18382
  return (t === "string" ? String : Number)(e);
18377
18383
  }
18378
- function fv(e) {
18379
- var t = uv(e, "string");
18384
+ function pv(e) {
18385
+ var t = fv(e, "string");
18380
18386
  return bt(t) == "symbol" ? t : t + "";
18381
18387
  }
18382
18388
  function ts(e, t) {
18383
18389
  for (var r = 0; r < t.length; r++) {
18384
18390
  var n = t[r];
18385
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, fv(n.key), n);
18391
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, pv(n.key), n);
18386
18392
  }
18387
18393
  }
18388
- function pv(e, t, r) {
18394
+ function mv(e, t, r) {
18389
18395
  return t && ts(e.prototype, t), r && ts(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
18390
18396
  }
18391
- function mv(e, t) {
18397
+ function hv(e, t) {
18392
18398
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
18393
18399
  }
18394
18400
  function ga(e, t) {
@@ -18396,7 +18402,7 @@ function ga(e, t) {
18396
18402
  return r.__proto__ = n, r;
18397
18403
  }, ga(e, t);
18398
18404
  }
18399
- function hv(e, t) {
18405
+ function vv(e, t) {
18400
18406
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
18401
18407
  e.prototype = Object.create(t && t.prototype, { constructor: {
18402
18408
  value: e,
@@ -18419,16 +18425,16 @@ function pl() {
18419
18425
  return !!e;
18420
18426
  })();
18421
18427
  }
18422
- function vv(e) {
18428
+ function yv(e) {
18423
18429
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
18424
18430
  return e;
18425
18431
  }
18426
- function yv(e, t) {
18432
+ function $v(e, t) {
18427
18433
  if (t && (bt(t) == "object" || typeof t == "function")) return t;
18428
18434
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
18429
- return vv(e);
18435
+ return yv(e);
18430
18436
  }
18431
- function $v(e) {
18437
+ function gv(e) {
18432
18438
  var t = pl();
18433
18439
  return function() {
18434
18440
  var r, n = zr(e);
@@ -18436,7 +18442,7 @@ function $v(e) {
18436
18442
  var a = zr(this).constructor;
18437
18443
  r = Reflect.construct(n, arguments, a);
18438
18444
  } else r = n.apply(this, arguments);
18439
- return yv(this, r);
18445
+ return $v(this, r);
18440
18446
  };
18441
18447
  }
18442
18448
  function tt(e, t, r) {
@@ -18468,7 +18474,7 @@ Wa.prototype.length = function() {
18468
18474
  Wa.prototype._point = function(e, t, r, n, a) {
18469
18475
  return t * (1 - e) * (1 - e) * (1 - e) + 3 * r * (1 - e) * (1 - e) * e + 3 * n * (1 - e) * e * e + a * e * e * e;
18470
18476
  };
18471
- function gv(e, t, r) {
18477
+ function bv(e, t, r) {
18472
18478
  var n, a, i, o = null, s = 0;
18473
18479
  r || (r = {});
18474
18480
  var d = function() {
@@ -18483,7 +18489,7 @@ function gv(e, t, r) {
18483
18489
  }
18484
18490
  function Q(e, t) {
18485
18491
  var r = this, n = t || {};
18486
- this.velocityFilterWeight = n.velocityFilterWeight || 0.7, this.minWidth = n.minWidth || 0.5, this.maxWidth = n.maxWidth || 2.5, this.throttle = "throttle" in n ? n.throttle : 16, this.minDistance = "minDistance" in n ? n.minDistance : 5, this.throttle ? this._strokeMoveUpdate = gv(Q.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = Q.prototype._strokeUpdate, this.dotSize = n.dotSize || function() {
18492
+ this.velocityFilterWeight = n.velocityFilterWeight || 0.7, this.minWidth = n.minWidth || 0.5, this.maxWidth = n.maxWidth || 2.5, this.throttle = "throttle" in n ? n.throttle : 16, this.minDistance = "minDistance" in n ? n.minDistance : 5, this.throttle ? this._strokeMoveUpdate = bv(Q.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = Q.prototype._strokeUpdate, this.dotSize = n.dotSize || function() {
18487
18493
  return (this.minWidth + this.maxWidth) / 2;
18488
18494
  }, this.penColor = n.penColor || "black", this.backgroundColor = n.backgroundColor || "rgba(0,0,0,0)", this.onBegin = n.onBegin, this.onEnd = n.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(a) {
18489
18495
  a.which === 1 && (r._mouseButtonDown = !0, r._strokeBegin(a));
@@ -18687,7 +18693,7 @@ Q.prototype.fromData = function(e) {
18687
18693
  Q.prototype.toData = function() {
18688
18694
  return this._data;
18689
18695
  };
18690
- var bv = /* @__PURE__ */ Ae(((e, t) => {
18696
+ var Nv = /* @__PURE__ */ Ae(((e, t) => {
18691
18697
  (function(r, n) {
18692
18698
  typeof e == "object" && typeof t == "object" ? t.exports = n() : typeof define == "function" && define.amd ? define([], n) : typeof e == "object" ? e.trimCanvas = n() : r.trimCanvas = n();
18693
18699
  })(e, function() {
@@ -18731,18 +18737,18 @@ var bv = /* @__PURE__ */ Ae(((e, t) => {
18731
18737
  Object.defineProperty(n, "__esModule", { value: !0 }), n.default = a;
18732
18738
  }]);
18733
18739
  });
18734
- })), Nv = /* @__PURE__ */ Na(bv(), 1), Cv = ["canvasProps", "clearOnResize"], fn = /* @__PURE__ */ (function(e) {
18735
- hv(r, e);
18736
- var t = $v(r);
18740
+ })), Cv = /* @__PURE__ */ Na(Nv(), 1), Sv = ["canvasProps", "clearOnResize"], fn = /* @__PURE__ */ (function(e) {
18741
+ vv(r, e);
18742
+ var t = gv(r);
18737
18743
  function r() {
18738
18744
  var n;
18739
- mv(this, r);
18745
+ hv(this, r);
18740
18746
  for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++) i[o] = arguments[o];
18741
18747
  return n = t.call.apply(t, [this].concat(i)), n.staticThis = n.constructor, n._sigPad = null, n._canvas = null, n.setRef = function(s) {
18742
18748
  n._canvas = s, n._canvas === null && (n._sigPad = null);
18743
18749
  }, n._excludeOurProps = function() {
18744
18750
  var s = n.props;
18745
- return s.canvasProps, s.clearOnResize, cv(s, Cv);
18751
+ return s.canvasProps, s.clearOnResize, uv(s, Sv);
18746
18752
  }, n.componentDidMount = function() {
18747
18753
  var s = n.getCanvas();
18748
18754
  n._sigPad = new Q(s, n._excludeOurProps()), n._resizeCanvas(), n.on();
@@ -18755,7 +18761,7 @@ var bv = /* @__PURE__ */ Ae(((e, t) => {
18755
18761
  return n._canvas;
18756
18762
  }, n.getTrimmedCanvas = function() {
18757
18763
  var s = n.getCanvas(), d = document.createElement("canvas");
18758
- return d.width = s.width, d.height = s.height, d.getContext("2d").drawImage(s, 0, 0), (0, Nv.default)(d);
18764
+ return d.width = s.width, d.height = s.height, d.getContext("2d").drawImage(s, 0, 0), (0, Cv.default)(d);
18759
18765
  }, n.getSignaturePad = function() {
18760
18766
  if (n._sigPad === null) throw n.staticThis.refNullError;
18761
18767
  return n._sigPad;
@@ -18788,7 +18794,7 @@ var bv = /* @__PURE__ */ Ae(((e, t) => {
18788
18794
  return n.getSignaturePad().toData();
18789
18795
  }, n;
18790
18796
  }
18791
- return pv(r);
18797
+ return mv(r);
18792
18798
  })(Ll);
18793
18799
  fn.propTypes = {
18794
18800
  velocityFilterWeight: O.default.number,
@@ -18805,7 +18811,7 @@ fn.propTypes = {
18805
18811
  };
18806
18812
  fn.defaultProps = { clearOnResize: !0 };
18807
18813
  fn.refNullError = /* @__PURE__ */ new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");
18808
- var Sv = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a }) => {
18814
+ var Pv = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a }) => {
18809
18815
  const i = Te(null), { register: o, handleSubmit: s, control: d, reset: l, watch: u, setValue: p, formState: { errors: f, isSubmitting: m } } = ba({
18810
18816
  defaultValues: {
18811
18817
  accepted: !1,
@@ -18970,7 +18976,7 @@ var Sv = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
18970
18976
  ]
18971
18977
  })]
18972
18978
  });
18973
- }, Pv = [
18979
+ }, wv = [
18974
18980
  "IN",
18975
18981
  "US",
18976
18982
  "CA",
@@ -18978,7 +18984,7 @@ var Sv = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
18978
18984
  "NZ",
18979
18985
  "AU",
18980
18986
  "CN"
18981
- ], wv = [
18987
+ ], _v = [
18982
18988
  "Jan",
18983
18989
  "Feb",
18984
18990
  "Mar",
@@ -18991,11 +18997,11 @@ var Sv = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
18991
18997
  "Oct",
18992
18998
  "Nov",
18993
18999
  "Dec"
18994
- ], or = "consentDraftByService", _v = 15, Ov = (e) => {
19000
+ ], or = "consentDraftByService", Ov = 15, Ev = (e) => {
18995
19001
  const [t, r] = e.split("/");
18996
19002
  return +`${t}${r}`;
18997
19003
  };
18998
- function Ev() {
19004
+ function Iv() {
18999
19005
  const e = Ee(), { tenantId: t, id: r, timeZone: n, image: a, outletName: i, address: o } = K((_) => _.booking.outletDetails), { staff: s, selectedServices: d, selectedProfessional: l } = K((_) => _.booking.service), { selectedSlotIds: u, selectedDate: p, selectedTime: f, selectedSlotIndexes: m, slots: h } = K((_) => _.booking.slots), { userDetails: y, bookingMode: g, tipPct: b, payType: $ } = K((_) => _.booking.appointment), S = Te(!1), P = Te(""), C = ge.now().setZone(n ?? "UTC"), N = Array.isArray(d) ? d : [d], [E, D] = H(!1), [Z, J] = H(!1), [te, le] = H(null), [ae, ce] = H(!1), [he, ye] = H(""), [ue, re] = H(""), [Ne, k] = H(null), [R, w] = H(null), [I, L] = H({}), [V, F] = H({}), [q, z] = H(!1), [G, x] = H(!1), [M, U] = H(null), [A, ee] = H(!1), $e = Te(""), Ye = Te(null), pn = N.map((_) => {
19000
19006
  const T = s?.find((W) => W.id === l?.id)?.assignments?.find((W) => W.id === _.id), B = {
19001
19007
  ..._,
@@ -19012,7 +19018,7 @@ function Ev() {
19012
19018
  ...h?.morning ?? [],
19013
19019
  ...h?.afternoon ?? [],
19014
19020
  ...h?.evening ?? []
19015
- ], ml = pn.reduce((_, T) => _ + Number(T.duration ?? 0), 0), hl = Math.ceil(ml / _v), vl = (_) => {
19021
+ ], ml = pn.reduce((_, T) => _ + Number(T.duration ?? 0), 0), hl = Math.ceil(ml / Ov), vl = (_) => {
19016
19022
  if (!mn.length) return "";
19017
19023
  const T = mn[_]?.start_time, B = mn[_ + hl - 1];
19018
19024
  return !T || !B ? "" : `${T} - ${B.end_time ?? B.start_time}`;
@@ -19020,7 +19026,7 @@ function Ev() {
19020
19026
  day: Number(p?.day ?? C.day),
19021
19027
  month: Number(p?.month ?? C.month),
19022
19028
  year: Number(p?.year ?? C.year)
19023
- }, qa = m?.[0], Ka = qa !== void 0 ? vl(qa) : null, yl = Ka ? `${wv[Ha.month]} ${Ha.day} at ${Ka}` : null, hn = pn.reduce((_, T) => _ + Number(T.price || T.min_price) * (T.qty ?? 1), 0), Ya = pn.reduce((_, T) => _ + T.tax, 0), $l = Math.round(Ya * 100), Za = hn * b / 100, gl = Math.round(Za * 100), Xa = hn + Za + Ya, Ie = de(() => N.filter((_) => !(!ka(_) || (_?.consent_rule?.enforcementMode ?? _?.enforcementMode) === "FIXED")), [N]), bl = de(() => Ie.map((_) => String(_.id)).filter(Boolean), [Ie]), Nl = (_) => {
19029
+ }, qa = m?.[0], Ka = qa !== void 0 ? vl(qa) : null, yl = Ka ? `${_v[Ha.month]} ${Ha.day} at ${Ka}` : null, hn = pn.reduce((_, T) => _ + Number(T.price || T.min_price) * (T.qty ?? 1), 0), Ya = pn.reduce((_, T) => _ + T.tax, 0), $l = Math.round(Ya * 100), Za = hn * b / 100, gl = Math.round(Za * 100), Xa = hn + Za + Ya, Ie = de(() => N.filter((_) => !(!ka(_) || (_?.consent_rule?.enforcementMode ?? _?.enforcementMode) === "FIXED")), [N]), bl = de(() => Ie.map((_) => String(_.id)).filter(Boolean), [Ie]), Nl = (_) => {
19024
19030
  const T = _?.consent_template ?? _?.consentTemplate ?? null;
19025
19031
  return {
19026
19032
  heading: String(T?.heading ?? "").trim(),
@@ -19288,7 +19294,7 @@ function Ev() {
19288
19294
  cardHolderName: _.name,
19289
19295
  cardNumber: _.number.replace(/\s/g, ""),
19290
19296
  cardType: W,
19291
- cardExpiry: Ov(_.expiry),
19297
+ cardExpiry: Ev(_.expiry),
19292
19298
  cvData: _.cvv
19293
19299
  },
19294
19300
  billingContact: {
@@ -19442,10 +19448,10 @@ function Ev() {
19442
19448
  className: "arravpos-booking-grid",
19443
19449
  children: [/* @__PURE__ */ v("div", {
19444
19450
  className: "arravpos-booking-column",
19445
- children: [/* @__PURE__ */ c(rs, { children: "Appointment" }), /* @__PURE__ */ v(Iv, { children: [/* @__PURE__ */ v("div", {
19451
+ children: [/* @__PURE__ */ c(rs, { children: "Appointment" }), /* @__PURE__ */ v(Tv, { children: [/* @__PURE__ */ v("div", {
19446
19452
  className: "arravpos-appointment-header",
19447
19453
  children: [
19448
- /* @__PURE__ */ c(Tv, { pro: l }),
19454
+ /* @__PURE__ */ c(Av, { pro: l }),
19449
19455
  /* @__PURE__ */ v("div", {
19450
19456
  className: "arravpos-appointment-content",
19451
19457
  children: [/* @__PURE__ */ c("p", {
@@ -19511,11 +19517,11 @@ function Ev() {
19511
19517
  } },
19512
19518
  render: ({ field: _ }) => /* @__PURE__ */ v("div", {
19513
19519
  className: "arravpos-input-wrapper",
19514
- children: [/* @__PURE__ */ c(av, {
19520
+ children: [/* @__PURE__ */ c(iv, {
19515
19521
  ..._,
19516
19522
  id: "phone",
19517
19523
  international: !0,
19518
- countries: Pv,
19524
+ countries: wv,
19519
19525
  defaultCountry: "US",
19520
19526
  value: _.value || "",
19521
19527
  onChange: (T) => di(T ?? "", _.onChange, "phone"),
@@ -19642,12 +19648,12 @@ function Ev() {
19642
19648
  })
19643
19649
  ]
19644
19650
  })] }),
19645
- Z && /* @__PURE__ */ c(dv, {
19651
+ Z && /* @__PURE__ */ c(lv, {
19646
19652
  onClose: Dl,
19647
19653
  onPay: Ml,
19648
19654
  amount: Xa
19649
19655
  }),
19650
- ae && R && /* @__PURE__ */ c(Sv, {
19656
+ ae && R && /* @__PURE__ */ c(Pv, {
19651
19657
  enforcement: Ne,
19652
19658
  heading: he,
19653
19659
  consent: ue,
@@ -19657,13 +19663,13 @@ function Ev() {
19657
19663
  ]
19658
19664
  });
19659
19665
  }
19660
- function Iv({ children: e }) {
19666
+ function Tv({ children: e }) {
19661
19667
  return /* @__PURE__ */ c("div", {
19662
19668
  className: "arravpos-card-box",
19663
19669
  children: e
19664
19670
  });
19665
19671
  }
19666
- function Tv({ pro: e }) {
19672
+ function Av({ pro: e }) {
19667
19673
  return /* @__PURE__ */ c(se, { children: e.imageUrl ? /* @__PURE__ */ c("img", {
19668
19674
  src: e.imageUrl,
19669
19675
  alt: e.name,
@@ -19698,7 +19704,7 @@ function ns({ icon: e, label: t, selected: r, onClick: n }) {
19698
19704
  ]
19699
19705
  });
19700
19706
  }
19701
- function Av() {
19707
+ function xv() {
19702
19708
  const e = Ee(), t = K((N) => N.booking.appointment.appointmentId), { tenantId: r } = K((N) => N.booking.outletDetails), [n, a] = H(null), [i, o] = H(!0), [s, d] = H(null), [l, u] = H(!1);
19703
19709
  pe(() => {
19704
19710
  if (!t) {
@@ -19878,13 +19884,13 @@ function Av() {
19878
19884
  })
19879
19885
  });
19880
19886
  }
19881
- function xv() {
19887
+ function kv() {
19882
19888
  const { currentStep: e } = K((n) => n.booking.breadcrumbs), { isService: t } = K((n) => n.booking.outletDetails), r = {
19883
19889
  services: t ? x1 : A1,
19884
19890
  professionals: t ? T1 : E1,
19885
- time: j1,
19886
- confirm: Ev,
19887
- success: Av
19891
+ time: B1,
19892
+ confirm: Iv,
19893
+ success: xv
19888
19894
  }[e];
19889
19895
  return /* @__PURE__ */ c("div", {
19890
19896
  className: "aaravpos-layout",
@@ -19897,13 +19903,19 @@ function xv() {
19897
19903
  })
19898
19904
  });
19899
19905
  }
19900
- function kv() {
19901
- return /* @__PURE__ */ v(se, { children: [/* @__PURE__ */ c(xv, {}), /* @__PURE__ */ c(Ql, {
19906
+ function Mv() {
19907
+ return /* @__PURE__ */ v(se, { children: [/* @__PURE__ */ c(kv, {}), /* @__PURE__ */ c(Ql, {
19902
19908
  position: "top-right",
19903
19909
  autoClose: 3e3
19904
19910
  })] });
19905
19911
  }
19906
- var Mv = ({ bookingCode: e }) => {
19912
+ var Dv = () => /* @__PURE__ */ v("div", {
19913
+ className: "aaravpos-skeleton-card",
19914
+ children: [/* @__PURE__ */ c("div", { className: "aaravpos-skeleton-badge" }), /* @__PURE__ */ v("div", {
19915
+ className: "aaravpos-skeleton-content",
19916
+ children: [/* @__PURE__ */ c("div", { className: "aaravpos-skeleton-title" }), /* @__PURE__ */ c("div", { className: "aaravpos-skeleton-text" })]
19917
+ })]
19918
+ }), Rv = ({ bookingCode: e }) => {
19907
19919
  const t = Ee(), r = K((f) => f.booking.outletList.outlets), n = K((f) => f.booking.theme), [a, i] = H(!1), [o, s] = H(null), { id: d } = K((f) => f.booking.outletDetails), l = Be(async () => {
19908
19920
  try {
19909
19921
  i(!0), s(null);
@@ -19945,19 +19957,25 @@ var Mv = ({ bookingCode: e }) => {
19945
19957
  }, [n]), o ? /* @__PURE__ */ c("div", {
19946
19958
  className: "arravpos-error-box",
19947
19959
  children: o
19948
- }) : !r.length && a ? /* @__PURE__ */ c("div", {
19949
- className: "aaravpos-loader-wrapper",
19950
- children: /* @__PURE__ */ c("div", { className: "aaravpos-loader" })
19951
19960
  }) : /* @__PURE__ */ c("div", {
19952
19961
  className: "aaravpos-overflow-hidden",
19953
- children: r.length > 1 && !d ? /* @__PURE__ */ c(b1, {
19962
+ children: a ? /* @__PURE__ */ v("div", {
19963
+ className: "arravpos-container",
19964
+ children: [/* @__PURE__ */ c("div", {
19965
+ className: "aaravpos-header",
19966
+ children: /* @__PURE__ */ c("div", { className: "aaravpos-skeleton-outlet-title" })
19967
+ }), /* @__PURE__ */ c("div", {
19968
+ className: "aaravpos-outlet-grid",
19969
+ children: Array.from({ length: 8 }).map((f, m) => /* @__PURE__ */ c(Dv, {}, m))
19970
+ })]
19971
+ }) : r.length > 1 && !d ? /* @__PURE__ */ c(b1, {
19954
19972
  outlets: r,
19955
19973
  onSelectOutlet: (f) => {
19956
19974
  f?.id && p(f);
19957
19975
  }
19958
- }) : /* @__PURE__ */ c(kv, {})
19976
+ }) : /* @__PURE__ */ c(Mv, {})
19959
19977
  });
19960
- }, Qv = ({ ...e }) => /* @__PURE__ */ c(Sf, { children: /* @__PURE__ */ c(Mv, { ...e }) });
19978
+ }, ty = ({ ...e }) => /* @__PURE__ */ c(Sf, { children: /* @__PURE__ */ c(Rv, { ...e }) });
19961
19979
  export {
19962
- Qv as AppointmentBookingPlugin
19980
+ ty as AppointmentBookingPlugin
19963
19981
  };