@aaravpos/appointment-barber-booking 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +21 -21
  2. package/dist/index.js +289 -287
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import j, { Component as gl, PureComponent as Nl, createContext as Cl, createElement as Dn, forwardRef as qo, useCallback as Ue, useContext as Sl, useEffect as de, useMemo as ge, useRef as De, useState as Z } from "react";
1
+ import j, { Component as gl, PureComponent as Nl, createContext as Cl, createElement as Rn, forwardRef as qo, useCallback as Ue, useContext as Sl, useEffect as de, useMemo as ge, useRef as De, useState as Z } from "react";
2
2
  import { Provider as Pl, useDispatch as ze, useSelector as J } from "react-redux";
3
3
  import { applyMiddleware as wl, combineReducers as Ko, compose as fr, createStore as _l, isAction as jr, isPlainObject as Yo } from "redux";
4
4
  import { FLUSH as Ol, PAUSE as El, PERSIST as Il, PURGE as Tl, REGISTER as Al, REHYDRATE as xl, persistReducer as Ml, persistStore as kl } from "redux-persist";
5
5
  import { Fragment as $e, jsx as u, jsxs as g } from "react/jsx-runtime";
6
6
  import { DateTime as ve } from "luxon";
7
7
  import { ToastContainer as Dl, toast as re } from "react-toastify";
8
- import { Controller as dt, useForm as ha } from "react-hook-form";
8
+ import { Controller as dt, useForm as va } from "react-hook-form";
9
9
  import { debounce as Rl } from "lodash";
10
10
  import * as Ic from "redux";
11
11
  var Fl = Object.create, pr = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, Ll = Object.getOwnPropertyNames, Bl = Object.getPrototypeOf, Ul = Object.prototype.hasOwnProperty, Te = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Vl = (e, t) => {
@@ -16,7 +16,7 @@ var Fl = Object.create, pr = Object.defineProperty, jl = Object.getOwnPropertyDe
16
16
  enumerable: !0
17
17
  });
18
18
  return t || pr(r, Symbol.toStringTag, { value: "Module" }), r;
19
- }, Rn = (e, t, r, n) => {
19
+ }, Fn = (e, t, r, n) => {
20
20
  if (t && typeof t == "object" || typeof t == "function")
21
21
  for (var a = Ll(t), i = 0, o = a.length, s; i < o; i++)
22
22
  s = a[i], !Ul.call(e, s) && s !== r && pr(e, s, {
@@ -24,7 +24,7 @@ var Fl = Object.create, pr = Object.defineProperty, jl = Object.getOwnPropertyDe
24
24
  enumerable: !(n = jl(t, s)) || n.enumerable
25
25
  });
26
26
  return e;
27
- }, Gl = (e, t, r) => (Rn(e, t, "default"), r && Rn(r, t, "default")), va = (e, t, r) => (r = e != null ? Fl(Bl(e)) : {}, Rn(t || !e || !e.__esModule ? pr(r, "default", {
27
+ }, Gl = (e, t, r) => (Fn(e, t, "default"), r && Fn(r, t, "default")), ya = (e, t, r) => (r = e != null ? Fl(Bl(e)) : {}, Fn(t || !e || !e.__esModule ? pr(r, "default", {
28
28
  value: e,
29
29
  enumerable: !0
30
30
  }) : r, e));
@@ -50,10 +50,10 @@ function Wl(e, t, r) {
50
50
  function Hl(e, t) {
51
51
  return t && (rr(t) === "object" || typeof t == "function") ? t : nr(e);
52
52
  }
53
- function Fn(e) {
54
- return Fn = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
53
+ function jn(e) {
54
+ return jn = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
55
55
  return r.__proto__ || Object.getPrototypeOf(r);
56
- }, Fn(e);
56
+ }, jn(e);
57
57
  }
58
58
  function nr(e) {
59
59
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -65,12 +65,12 @@ function ql(e, t) {
65
65
  value: e,
66
66
  writable: !0,
67
67
  configurable: !0
68
- } }), t && jn(e, t);
68
+ } }), t && Ln(e, t);
69
69
  }
70
- function jn(e, t) {
71
- return jn = Object.setPrototypeOf || function(n, a) {
70
+ function Ln(e, t) {
71
+ return Ln = Object.setPrototypeOf || function(n, a) {
72
72
  return n.__proto__ = a, n;
73
- }, jn(e, t);
73
+ }, Ln(e, t);
74
74
  }
75
75
  function ar(e, t, r) {
76
76
  return t in e ? Object.defineProperty(e, t, {
@@ -86,7 +86,7 @@ var Zo = /* @__PURE__ */ (function(e) {
86
86
  var r, n;
87
87
  zl(this, t);
88
88
  for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++) i[o] = arguments[o];
89
- return n = Hl(this, (r = Fn(t)).call.apply(r, [this].concat(i))), ar(nr(n), "state", { bootstrapped: !1 }), ar(nr(n), "_unsubscribe", void 0), ar(nr(n), "handlePersistorState", function() {
89
+ return n = Hl(this, (r = jn(t)).call.apply(r, [this].concat(i))), ar(nr(n), "state", { bootstrapped: !1 }), ar(nr(n), "_unsubscribe", void 0), ar(nr(n), "handlePersistorState", function() {
90
90
  n.props.persistor.getState().bootstrapped && (n.props.onBeforeLift ? Promise.resolve(n.props.onBeforeLift()).finally(function() {
91
91
  return n.setState({ bootstrapped: !0 });
92
92
  }) : n.setState({ bootstrapped: !0 }), n._unsubscribe && n._unsubscribe());
@@ -152,13 +152,13 @@ function we(e, ...t) {
152
152
  }
153
153
  throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
154
154
  }
155
- var Ee = Object, mt = Ee.getPrototypeOf, mr = "constructor", Lr = "prototype", Ln = "configurable", hr = "enumerable", ir = "writable", Pt = "value", _e = (e) => !!e && !!e[Ne];
155
+ var Ee = Object, mt = Ee.getPrototypeOf, mr = "constructor", Lr = "prototype", Bn = "configurable", hr = "enumerable", ir = "writable", Pt = "value", _e = (e) => !!e && !!e[Ne];
156
156
  function ke(e) {
157
157
  return e ? Jo(e) || Ur(e) || !!e[ai] || !!e[mr]?.[ai] || Vr(e) || Gr(e) : !1;
158
158
  }
159
159
  var Yl = Ee[Lr][mr].toString(), ii = /* @__PURE__ */ new WeakMap();
160
160
  function Jo(e) {
161
- if (!e || !ya(e)) return !1;
161
+ if (!e || !ba(e)) return !1;
162
162
  const t = mt(e);
163
163
  if (t === null || t === Ee[Lr]) return !0;
164
164
  const r = Ee.hasOwnProperty.call(t, mr) && t[mr];
@@ -179,19 +179,19 @@ function Ut(e) {
179
179
  const t = e[Ne];
180
180
  return t ? t.type_ : Ur(e) ? 1 : Vr(e) ? 2 : Gr(e) ? 3 : 0;
181
181
  }
182
- var oi = (e, t, r = Ut(e)) => r === 2 ? e.has(t) : Ee[Lr].hasOwnProperty.call(e, t), Bn = (e, t, r = Ut(e)) => r === 2 ? e.get(t) : e[t], vr = (e, t, r, n = Ut(e)) => {
182
+ var oi = (e, t, r = Ut(e)) => r === 2 ? e.has(t) : Ee[Lr].hasOwnProperty.call(e, t), Un = (e, t, r = Ut(e)) => r === 2 ? e.get(t) : e[t], vr = (e, t, r, n = Ut(e)) => {
183
183
  n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
184
184
  };
185
185
  function Xl(e, t) {
186
186
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
187
187
  }
188
- var Ur = Array.isArray, Vr = (e) => e instanceof Map, Gr = (e) => e instanceof Set, ya = (e) => typeof e == "object", Je = (e) => typeof e == "function", gn = (e) => typeof e == "boolean";
188
+ var Ur = Array.isArray, Vr = (e) => e instanceof Map, Gr = (e) => e instanceof Set, ba = (e) => typeof e == "object", Je = (e) => typeof e == "function", Nn = (e) => typeof e == "boolean";
189
189
  function Jl(e) {
190
190
  const t = +e;
191
191
  return Number.isInteger(t) && String(t) === e;
192
192
  }
193
- var je = (e) => e.copy_ || e.base_, ba = (e) => e.modified_ ? e.copy_ : e.base_;
194
- function Un(e, t) {
193
+ var je = (e) => e.copy_ || e.base_, $a = (e) => e.modified_ ? e.copy_ : e.base_;
194
+ function Vn(e, t) {
195
195
  if (Vr(e)) return new Map(e);
196
196
  if (Gr(e)) return new Set(e);
197
197
  if (Ur(e)) return Array[Lr].slice.call(e);
@@ -202,8 +202,8 @@ function Un(e, t) {
202
202
  let a = Reflect.ownKeys(n);
203
203
  for (let i = 0; i < a.length; i++) {
204
204
  const o = a[i], s = n[o];
205
- s[ir] === !1 && (s[ir] = !0, s[Ln] = !0), (s.get || s.set) && (n[o] = {
206
- [Ln]: !0,
205
+ s[ir] === !1 && (s[ir] = !0, s[Bn] = !0), (s.get || s.set) && (n[o] = {
206
+ [Bn]: !0,
207
207
  [ir]: !0,
208
208
  [hr]: s[hr],
209
209
  [Pt]: e[o]
@@ -232,9 +232,9 @@ function Ql() {
232
232
  }
233
233
  var Kt = { [Pt]: Ql };
234
234
  function Wr(e) {
235
- return e === null || !ya(e) ? !0 : Ee.isFrozen(e);
235
+ return e === null || !ba(e) ? !0 : Ee.isFrozen(e);
236
236
  }
237
- var yr = "MapSet", Vn = "Patches", si = "ArrayMethods", Qo = {};
237
+ var yr = "MapSet", Gn = "Patches", si = "ArrayMethods", Qo = {};
238
238
  function nt(e) {
239
239
  const t = Qo[e];
240
240
  return t || we(0, e), t;
@@ -251,12 +251,12 @@ var di = (e) => !!Qo[e], wt, es = () => wt, ec = (e, t) => ({
251
251
  arrayMethodsPlugin_: di(si) ? nt(si) : void 0
252
252
  });
253
253
  function li(e, t) {
254
- t && (e.patchPlugin_ = nt(Vn), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
255
- }
256
- function Gn(e) {
257
- zn(e), e.drafts_.forEach(tc), e.drafts_ = null;
254
+ t && (e.patchPlugin_ = nt(Gn), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
258
255
  }
259
256
  function zn(e) {
257
+ Wn(e), e.drafts_.forEach(tc), e.drafts_ = null;
258
+ }
259
+ function Wn(e) {
260
260
  e === wt && (wt = e.parent_);
261
261
  }
262
262
  var ci = (e) => wt = ec(wt, e);
@@ -268,11 +268,11 @@ function ui(e, t) {
268
268
  t.unfinalizedDrafts_ = t.drafts_.length;
269
269
  const r = t.drafts_[0];
270
270
  if (e !== void 0 && e !== r) {
271
- r[Ne].modified_ && (Gn(t), we(4)), ke(e) && (e = fi(t, e));
271
+ r[Ne].modified_ && (zn(t), we(4)), ke(e) && (e = fi(t, e));
272
272
  const { patchPlugin_: n } = t;
273
273
  n && n.generateReplacementPatches_(r[Ne].base_, e, t);
274
274
  } else e = fi(t, r);
275
- return rc(t, e, !0), Gn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Xo ? e : void 0;
275
+ return rc(t, e, !0), zn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Xo ? e : void 0;
276
276
  }
277
277
  function fi(e, t) {
278
278
  if (Wr(t)) return t;
@@ -296,7 +296,7 @@ function ts(e) {
296
296
  var Hr = (e, t) => e.scope_ === t, nc = [];
297
297
  function rs(e, t, r, n) {
298
298
  const a = je(e), i = e.type_;
299
- if (n !== void 0 && Bn(a, n, i) === t) {
299
+ if (n !== void 0 && Un(a, n, i) === t) {
300
300
  vr(a, n, r, i);
301
301
  return;
302
302
  }
@@ -317,7 +317,7 @@ function ac(e, t, r) {
317
317
  const i = t;
318
318
  if (!i || !Hr(i, a)) return;
319
319
  a.mapSetPlugin_?.fixSetContents(i);
320
- const o = ba(i);
320
+ const o = $a(i);
321
321
  rs(e, i.draft_ ?? i, o, r), ns(i, a);
322
322
  });
323
323
  }
@@ -336,18 +336,18 @@ function ic(e, t, r) {
336
336
  if (_e(r)) {
337
337
  const a = r[Ne];
338
338
  Hr(a, n) && a.callbacks_.push(function() {
339
- or(e), rs(e, r, ba(a), t);
339
+ or(e), rs(e, r, $a(a), t);
340
340
  });
341
341
  } else ke(r) && e.callbacks_.push(function() {
342
342
  const i = je(e);
343
- e.type_ === 3 ? i.has(r) && br(r, n.handledSet_, n) : Bn(i, t, e.type_) === r && n.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && br(Bn(e.copy_, t, e.type_), n.handledSet_, n);
343
+ e.type_ === 3 ? i.has(r) && br(r, n.handledSet_, n) : Un(i, t, e.type_) === r && n.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && br(Un(e.copy_, t, e.type_), n.handledSet_, n);
344
344
  });
345
345
  }
346
346
  function br(e, t, r) {
347
347
  return !r.immer_.autoFreeze_ && r.unfinalizedDrafts_ < 1 || _e(e) || t.has(e) || !ke(e) || Wr(e) || (t.add(e), Br(e, (n, a) => {
348
348
  if (_e(a)) {
349
349
  const i = a[Ne];
350
- Hr(i, r) && (vr(e, n, ba(i), e.type_), ts(i));
350
+ Hr(i, r) && (vr(e, n, $a(i), e.type_), ts(i));
351
351
  } else ke(a) && br(a, t, r);
352
352
  })), e;
353
353
  }
@@ -382,9 +382,9 @@ var $r = {
382
382
  if (!oi(a, t, e.type_)) return sc(e, a, t);
383
383
  const i = a[t];
384
384
  if (e.finalized_ || !ke(i) || n && e.operationMethod && r?.isMutatingArrayMethod(e.operationMethod) && Jl(t)) return i;
385
- if (i === Nn(e.base_, t)) {
385
+ if (i === Cn(e.base_, t)) {
386
386
  or(e);
387
- const o = e.type_ === 1 ? +t : t, s = Hn(e.scope_, i, e, o);
387
+ const o = e.type_ === 1 ? +t : t, s = qn(e.scope_, i, e, o);
388
388
  return e.copy_[o] = s;
389
389
  }
390
390
  return i;
@@ -400,22 +400,22 @@ var $r = {
400
400
  if (n?.set)
401
401
  return n.set.call(e.draft_, r), !0;
402
402
  if (!e.modified_) {
403
- const a = Nn(je(e), t), i = a?.[Ne];
403
+ const a = Cn(je(e), t), i = a?.[Ne];
404
404
  if (i && i.base_ === r)
405
405
  return e.copy_[t] = r, e.assigned_.set(t, !1), !0;
406
406
  if (Xl(r, a) && (r !== void 0 || oi(e.base_, t, e.type_))) return !0;
407
- or(e), Wn(e);
407
+ or(e), Hn(e);
408
408
  }
409
409
  return e.copy_[t] === r && (r !== void 0 || t in e.copy_) || Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_.set(t, !0), ic(e, t, r)), !0;
410
410
  },
411
411
  deleteProperty(e, t) {
412
- return or(e), Nn(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Wn(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
412
+ return or(e), Cn(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Hn(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
413
413
  },
414
414
  getOwnPropertyDescriptor(e, t) {
415
415
  const r = je(e), n = Reflect.getOwnPropertyDescriptor(r, t);
416
416
  return n && {
417
417
  [ir]: !0,
418
- [Ln]: e.type_ !== 1 || t !== "length",
418
+ [Bn]: e.type_ !== 1 || t !== "length",
419
419
  [hr]: n[hr],
420
420
  [Pt]: r[t]
421
421
  };
@@ -443,7 +443,7 @@ _t.deleteProperty = function(e, t) {
443
443
  _t.set = function(e, t, r) {
444
444
  return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && we(14), $r.set.call(this, e[0], t, r, e[0]);
445
445
  };
446
- function Nn(e, t) {
446
+ function Cn(e, t) {
447
447
  const r = e[Ne];
448
448
  return (r ? je(r) : e)[t];
449
449
  }
@@ -460,11 +460,11 @@ function as(e, t) {
460
460
  r = mt(r);
461
461
  }
462
462
  }
463
- function Wn(e) {
464
- e.modified_ || (e.modified_ = !0, e.parent_ && Wn(e.parent_));
463
+ function Hn(e) {
464
+ e.modified_ || (e.modified_ = !0, e.parent_ && Hn(e.parent_));
465
465
  }
466
466
  function or(e) {
467
- e.copy_ || (e.assigned_ = /* @__PURE__ */ new Map(), e.copy_ = Un(e.base_, e.scope_.immer_.useStrictShallowCopy_));
467
+ e.copy_ || (e.assigned_ = /* @__PURE__ */ new Map(), e.copy_ = Vn(e.base_, e.scope_.immer_.useStrictShallowCopy_));
468
468
  }
469
469
  var dc = class {
470
470
  constructor(e) {
@@ -480,18 +480,18 @@ var dc = class {
480
480
  Je(r) || we(6), n !== void 0 && !Je(n) && we(7);
481
481
  let a;
482
482
  if (ke(t)) {
483
- const i = ci(this), o = Hn(i, t, void 0);
483
+ const i = ci(this), o = qn(i, t, void 0);
484
484
  let s = !0;
485
485
  try {
486
486
  a = r(o), s = !1;
487
487
  } finally {
488
- s ? Gn(i) : zn(i);
488
+ s ? zn(i) : Wn(i);
489
489
  }
490
490
  return li(i, n), ui(a, i);
491
- } else if (!t || !ya(t)) {
491
+ } else if (!t || !ba(t)) {
492
492
  if (a = r(t), a === void 0 && (a = t), a === Xo && (a = void 0), this.autoFreeze_ && zr(a, !0), n) {
493
493
  const i = [], o = [];
494
- nt(Vn).generateReplacementPatches_(t, a, {
494
+ nt(Gn).generateReplacementPatches_(t, a, {
495
495
  patches_: i,
496
496
  inversePatches_: o
497
497
  }), n(i, o);
@@ -508,12 +508,12 @@ var dc = class {
508
508
  n,
509
509
  a
510
510
  ];
511
- }, gn(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), gn(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), gn(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
511
+ }, Nn(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Nn(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Nn(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
512
512
  }
513
513
  createDraft(e) {
514
514
  ke(e) || we(8), _e(e) && (e = qr(e));
515
- const t = ci(this), r = Hn(t, e, void 0);
516
- return r[Ne].isManual_ = !0, zn(t), r;
515
+ const t = ci(this), r = qn(t, e, void 0);
516
+ return r[Ne].isManual_ = !0, Wn(t), r;
517
517
  }
518
518
  finishDraft(e, t) {
519
519
  const r = e && e[Ne];
@@ -543,11 +543,11 @@ var dc = class {
543
543
  }
544
544
  }
545
545
  r > -1 && (t = t.slice(r + 1));
546
- const n = nt(Vn).applyPatches_;
546
+ const n = nt(Gn).applyPatches_;
547
547
  return _e(e) ? n(e, t) : this.produce(e, (a) => n(a, t));
548
548
  }
549
549
  };
550
- function Hn(e, t, r, n) {
550
+ function qn(e, t, r, n) {
551
551
  const [a, i] = Vr(t) ? nt(yr).proxyMap_(t, r) : Gr(t) ? nt(yr).proxySet_(t, r) : oc(t, r);
552
552
  return (r?.scope_ ?? es()).drafts_.push(a), i.callbacks_ = r?.callbacks_ ?? [], i.key_ = n, r && n !== void 0 ? ac(r, i, n) : i.callbacks_.push(function(s) {
553
553
  s.mapSetPlugin_?.fixSetContents(i);
@@ -564,8 +564,8 @@ function is(e) {
564
564
  let r, n = !0;
565
565
  if (t) {
566
566
  if (!t.modified_) return t.base_;
567
- t.finalized_ = !0, r = Un(e, t.scope_.immer_.useStrictShallowCopy_), n = t.scope_.immer_.shouldUseStrictIteration();
568
- } else r = Un(e, !0);
567
+ t.finalized_ = !0, r = Vn(e, t.scope_.immer_.useStrictShallowCopy_), n = t.scope_.immer_.shouldUseStrictIteration();
568
+ } else r = Vn(e, !0);
569
569
  return Br(r, (a, i) => {
570
570
  vr(r, a, is(i));
571
571
  }, n), t && (t.finalized_ = !1), r;
@@ -783,7 +783,7 @@ function Yr(e, t = {}) {
783
783
  i = 0;
784
784
  }, o;
785
785
  }
786
- function $a(e, ...t) {
786
+ function ga(e, ...t) {
787
787
  const r = typeof e == "function" ? {
788
788
  memoize: e,
789
789
  memoizeOptions: t
@@ -835,16 +835,16 @@ function $a(e, ...t) {
835
835
  };
836
836
  return Object.assign(n, { withTypes: () => n }), n;
837
837
  }
838
- var _c = /* @__PURE__ */ $a(Yr);
838
+ var _c = /* @__PURE__ */ ga(Yr);
839
839
  function ss(e) {
840
840
  return ({ dispatch: r, getState: n }) => (a) => (i) => typeof i == "function" ? i(r, n, e) : a(i);
841
841
  }
842
- var Oc = ss(), Ec = ss, qn = /* @__PURE__ */ Vl({
842
+ var Oc = ss(), Ec = ss, Kn = /* @__PURE__ */ Vl({
843
843
  ReducerType: () => Ms,
844
- SHOULD_AUTOBATCH: () => Ca,
844
+ SHOULD_AUTOBATCH: () => Sa,
845
845
  TaskAbortError: () => zt,
846
- Tuple: () => ga,
847
- addListener: () => wa,
846
+ Tuple: () => Na,
847
+ addListener: () => _a,
848
848
  asyncThunkCreator: () => Uc,
849
849
  autoBatchEnhancer: () => Ns,
850
850
  buildCreateSlice: () => ks,
@@ -863,7 +863,7 @@ var Oc = ss(), Ec = ss, qn = /* @__PURE__ */ Vl({
863
863
  createNextState: () => Kr,
864
864
  createReducer: () => Ps,
865
865
  createSelector: () => _c,
866
- createSelectorCreator: () => $a,
866
+ createSelectorCreator: () => ga,
867
867
  createSerializableStateInvariantMiddleware: () => gs,
868
868
  createSlice: () => Ye,
869
869
  current: () => qr,
@@ -879,7 +879,7 @@ var Oc = ss(), Ec = ss, qn = /* @__PURE__ */ Vl({
879
879
  isFulfilled: () => Es,
880
880
  isImmutableDefault: () => hs,
881
881
  isPending: () => _s,
882
- isPlain: () => Na,
882
+ isPlain: () => Ca,
883
883
  isRejected: () => Sr,
884
884
  isRejectedWithValue: () => Os,
885
885
  lruMemoize: () => Nc,
@@ -887,13 +887,13 @@ var Oc = ss(), Ec = ss, qn = /* @__PURE__ */ Vl({
887
887
  nanoid: () => Gt,
888
888
  original: () => Zl,
889
889
  prepareAutoBatched: () => Dc,
890
- removeListener: () => _a,
890
+ removeListener: () => Oa,
891
891
  unwrapResult: () => As,
892
892
  weakMapMemoize: () => Yr
893
893
  });
894
- Gl(qn, Ic);
894
+ Gl(Kn, Ic);
895
895
  var ds = (...e) => {
896
- const t = $a(...e), r = Object.assign((...n) => {
896
+ const t = ga(...e), r = Object.assign((...n) => {
897
897
  const a = t(...n), i = (o, ...s) => a(_e(o) ? qr(o) : o, ...s);
898
898
  return Object.assign(i, a), i;
899
899
  }, { withTypes: () => r });
@@ -965,7 +965,7 @@ It is disabled in production builds, so you don't need to worry about that.`);
965
965
  }
966
966
  };
967
967
  }
968
- var ga = class St extends Array {
968
+ var Na = class St extends Array {
969
969
  constructor(...t) {
970
970
  super(...t), Object.setPrototypeOf(this, St.prototype);
971
971
  }
@@ -1060,11 +1060,11 @@ function bs(e = {}) {
1060
1060
  };
1061
1061
  }
1062
1062
  }
1063
- function Na(e) {
1063
+ function Ca(e) {
1064
1064
  const t = typeof e;
1065
1065
  return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || Yo(e);
1066
1066
  }
1067
- function Nr(e, t = "", r = Na, n, a = [], i) {
1067
+ function Nr(e, t = "", r = Ca, n, a = [], i) {
1068
1068
  let o;
1069
1069
  if (!r(e)) return {
1070
1070
  keyPath: t || "<root>",
@@ -1095,7 +1095,7 @@ function $s(e) {
1095
1095
  function gs(e = {}) {
1096
1096
  if (process.env.NODE_ENV === "production") return () => (t) => (r) => t(r);
1097
1097
  {
1098
- const { isSerializable: t = Na, getEntries: r, ignoredActions: n = [], ignoredActionPaths: a = ["meta.arg", "meta.baseQueryMeta"], ignoredPaths: i = [], warnAfter: o = 32, ignoreState: s = !1, ignoreActions: d = !1, disableCache: l = !1 } = e, c = !l && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
1098
+ const { isSerializable: t = Ca, getEntries: r, ignoredActions: n = [], ignoredActionPaths: a = ["meta.arg", "meta.baseQueryMeta"], ignoredPaths: i = [], warnAfter: o = 32, ignoreState: s = !1, ignoreActions: d = !1, disableCache: l = !1 } = e, c = !l && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
1099
1099
  return (f) => (h) => (m) => {
1100
1100
  if (!jr(m)) return h(m);
1101
1101
  const p = h(m), v = ms(o, "SerializableStateInvariantMiddleware");
@@ -1125,7 +1125,7 @@ function Zt(e) {
1125
1125
  }
1126
1126
  var kc = () => function(t) {
1127
1127
  const { thunk: r = !0, immutableCheck: n = !0, serializableCheck: a = !0, actionCreatorCheck: i = !0 } = t ?? {};
1128
- let o = new ga();
1128
+ let o = new Na();
1129
1129
  if (r && (Zt(r) ? o.push(Oc) : o.push(Ec(r.extraArgument))), process.env.NODE_ENV !== "production") {
1130
1130
  if (n) {
1131
1131
  let s = {};
@@ -1141,9 +1141,9 @@ var kc = () => function(t) {
1141
1141
  }
1142
1142
  }
1143
1143
  return o;
1144
- }, Ca = "RTK_autoBatch", Dc = () => (e) => ({
1144
+ }, Sa = "RTK_autoBatch", Dc = () => (e) => ({
1145
1145
  payload: e,
1146
- meta: { [Ca]: !0 }
1146
+ meta: { [Sa]: !0 }
1147
1147
  }), yi = (e) => (t) => {
1148
1148
  setTimeout(t, e);
1149
1149
  }, Ns = (e = { type: "raf" }) => (t) => (...r) => {
@@ -1161,7 +1161,7 @@ var kc = () => function(t) {
1161
1161
  },
1162
1162
  dispatch(c) {
1163
1163
  try {
1164
- return a = !c?.meta?.[Ca], i = !a, i && (o || (o = !0, d(l))), n.dispatch(c);
1164
+ return a = !c?.meta?.[Sa], i = !a, i && (o || (o = !0, d(l))), n.dispatch(c);
1165
1165
  } finally {
1166
1166
  a = !0;
1167
1167
  }
@@ -1169,7 +1169,7 @@ var kc = () => function(t) {
1169
1169
  });
1170
1170
  }, Rc = (e) => function(r) {
1171
1171
  const { autoBatch: n = !0 } = r ?? {};
1172
- let a = new ga(e);
1172
+ let a = new Na(e);
1173
1173
  return n && a.push(Ns(typeof n == "object" ? n : void 0)), a;
1174
1174
  };
1175
1175
  function Cs(e) {
@@ -1330,7 +1330,7 @@ var jc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Gt
1330
1330
  "message",
1331
1331
  "stack",
1332
1332
  "code"
1333
- ], Cn = class {
1333
+ ], Sn = class {
1334
1334
  constructor(e, t) {
1335
1335
  this.payload = e, this.meta = t;
1336
1336
  }
@@ -1418,14 +1418,14 @@ var jc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Gt
1418
1418
  requestId: m,
1419
1419
  signal: p.signal,
1420
1420
  abort: $,
1421
- rejectWithValue: (N, T) => new Cn(N, T),
1421
+ rejectWithValue: (N, T) => new Sn(N, T),
1422
1422
  fulfillWithValue: (N, T) => new bi(N, T)
1423
1423
  })).then((N) => {
1424
- if (N instanceof Cn) throw N;
1424
+ if (N instanceof Sn) throw N;
1425
1425
  return N instanceof bi ? a(N.payload, m, d, N.meta) : a(N, m, d);
1426
1426
  })]);
1427
1427
  } catch (P) {
1428
- S = P instanceof Cn ? o(null, m, d, P.payload, P.meta) : o(P, m, d);
1428
+ S = P instanceof Sn ? o(null, m, d, P.payload, P.meta) : o(P, m, d);
1429
1429
  } finally {
1430
1430
  v && p.signal.removeEventListener("abort", v);
1431
1431
  }
@@ -1907,13 +1907,13 @@ function nu(e = {}) {
1907
1907
  ...n
1908
1908
  };
1909
1909
  }
1910
- var au = "task", Fs = "listener", js = "completed", Sa = "cancelled", iu = `task-${Sa}`, ou = `task-${js}`, Kn = `${Fs}-${Sa}`, su = `${Fs}-${js}`, zt = class {
1910
+ var au = "task", Fs = "listener", js = "completed", Pa = "cancelled", iu = `task-${Pa}`, ou = `task-${js}`, Yn = `${Fs}-${Pa}`, su = `${Fs}-${js}`, zt = class {
1911
1911
  constructor(e) {
1912
- this.code = e, this.message = `${au} ${Sa} (reason: ${e})`;
1912
+ this.code = e, this.message = `${au} ${Pa} (reason: ${e})`;
1913
1913
  }
1914
1914
  name = "TaskAbortError";
1915
1915
  message;
1916
- }, Pa = (e, t) => {
1916
+ }, wa = (e, t) => {
1917
1917
  if (typeof e != "function") throw new TypeError(process.env.NODE_ENV === "production" ? Y(32) : `${t} is not a function`);
1918
1918
  }, Pr = () => {
1919
1919
  }, Ls = (e, t = Pr) => (e.catch(t), e), Bs = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), et = (e) => {
@@ -1952,7 +1952,7 @@ var du = async (e, t) => {
1952
1952
  }, { assign: ut } = Object, gi = {}, Wt = "listenerMiddleware", lu = (e, t) => {
1953
1953
  const r = (n) => Bs(e, () => n.abort(e.reason));
1954
1954
  return (n, a) => {
1955
- Pa(n, "taskExecutor");
1955
+ wa(n, "taskExecutor");
1956
1956
  const i = new AbortController();
1957
1957
  r(i);
1958
1958
  const o = du(async () => {
@@ -2008,7 +2008,7 @@ var du = async (e, t) => {
2008
2008
  else if (n) a = n;
2009
2009
  else if (!a)
2010
2010
  throw new Error(process.env.NODE_ENV === "production" ? Y(21) : "Creating or removing a listener requires one of the known fields for matching an action");
2011
- return Pa(i, "options.listener"), {
2011
+ return wa(i, "options.listener"), {
2012
2012
  predicate: a,
2013
2013
  type: t,
2014
2014
  effect: i
@@ -2028,12 +2028,12 @@ var du = async (e, t) => {
2028
2028
  }, { withTypes: () => zs }), Ni = (e, t) => {
2029
2029
  const { type: r, effect: n, predicate: a } = Gs(t);
2030
2030
  return Array.from(e.values()).find((i) => (typeof r == "string" ? i.type === r : i.predicate === a) && i.effect === n);
2031
- }, Yn = (e) => {
2031
+ }, Zn = (e) => {
2032
2032
  e.pending.forEach((t) => {
2033
- t.abort(Kn);
2033
+ t.abort(Yn);
2034
2034
  });
2035
2035
  }, uu = (e, t) => () => {
2036
- for (const r of t.keys()) Yn(r);
2036
+ for (const r of t.keys()) Zn(r);
2037
2037
  e.clear();
2038
2038
  }, Ci = (e, t, r) => {
2039
2039
  try {
@@ -2043,7 +2043,7 @@ var du = async (e, t) => {
2043
2043
  throw n;
2044
2044
  }, 0);
2045
2045
  }
2046
- }, wa = /* @__PURE__ */ ut(/* @__PURE__ */ xe(`${Wt}/add`), { withTypes: () => wa }), Ws = /* @__PURE__ */ xe(`${Wt}/removeAll`), _a = /* @__PURE__ */ ut(/* @__PURE__ */ xe(`${Wt}/remove`), { withTypes: () => _a }), fu = (...e) => {
2046
+ }, _a = /* @__PURE__ */ ut(/* @__PURE__ */ xe(`${Wt}/add`), { withTypes: () => _a }), Ws = /* @__PURE__ */ xe(`${Wt}/removeAll`), Oa = /* @__PURE__ */ ut(/* @__PURE__ */ xe(`${Wt}/remove`), { withTypes: () => Oa }), fu = (...e) => {
2047
2047
  console.error(`${Wt}/error`, ...e);
2048
2048
  }, pu = (e = {}) => {
2049
2049
  const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = (m) => {
@@ -2053,14 +2053,14 @@ var du = async (e, t) => {
2053
2053
  const p = r.get(m) ?? 1;
2054
2054
  p === 1 ? r.delete(m) : r.set(m, p - 1);
2055
2055
  }, { extra: i, onError: o = fu } = e;
2056
- Pa(o, "onError");
2056
+ wa(o, "onError");
2057
2057
  const s = (m) => (m.unsubscribe = () => t.delete(m.id), t.set(m.id, m), (p) => {
2058
- m.unsubscribe(), p?.cancelActive && Yn(m);
2058
+ m.unsubscribe(), p?.cancelActive && Zn(m);
2059
2059
  }), d = (m) => s(Ni(t, m) ?? zs(m));
2060
2060
  ut(d, { withTypes: () => d });
2061
2061
  const l = (m) => {
2062
2062
  const p = Ni(t, m);
2063
- return p && (p.unsubscribe(), m.cancelActive && Yn(p)), !!p;
2063
+ return p && (p.unsubscribe(), m.cancelActive && Zn(p)), !!p;
2064
2064
  };
2065
2065
  ut(l, { withTypes: () => l });
2066
2066
  const c = async (m, p, v, b) => {
@@ -2081,11 +2081,11 @@ var du = async (e, t) => {
2081
2081
  },
2082
2082
  cancelActiveListeners: () => {
2083
2083
  m.pending.forEach((P, O, N) => {
2084
- P !== $ && (P.abort(Kn), N.delete(P));
2084
+ P !== $ && (P.abort(Yn), N.delete(P));
2085
2085
  });
2086
2086
  },
2087
2087
  cancel: () => {
2088
- $.abort(Kn), m.pending.delete($);
2088
+ $.abort(Yn), m.pending.delete($);
2089
2089
  },
2090
2090
  throwIfCancelled: () => {
2091
2091
  et($.signal);
@@ -2100,12 +2100,12 @@ var du = async (e, t) => {
2100
2100
  return {
2101
2101
  middleware: (m) => (p) => (v) => {
2102
2102
  if (!jr(v)) return p(v);
2103
- if (wa.match(v)) return d(v.payload);
2103
+ if (_a.match(v)) return d(v.payload);
2104
2104
  if (Ws.match(v)) {
2105
2105
  f();
2106
2106
  return;
2107
2107
  }
2108
- if (_a.match(v)) return l(v.payload);
2108
+ if (Oa.match(v)) return l(v.payload);
2109
2109
  let b = m.getState();
2110
2110
  const $ = () => {
2111
2111
  if (b === gi) throw new Error(process.env.NODE_ENV === "production" ? Y(23) : `${Wt}: getOriginalState can only be called synchronously`);
@@ -2152,8 +2152,8 @@ var du = async (e, t) => {
2152
2152
  withMiddleware: r,
2153
2153
  instanceId: e
2154
2154
  };
2155
- }, yu = (e) => "reducerPath" in e && typeof e.reducerPath == "string", bu = (e) => e.flatMap((t) => yu(t) ? [[t.reducerPath, t.reducer]] : Object.entries(t)), Oa = /* @__PURE__ */ Symbol.for("rtk-state-proxy-original"), $u = (e) => !!e && !!e[Oa], gu = /* @__PURE__ */ new WeakMap(), Nu = (e, t, r) => Qe(gu, e, () => new Proxy(e, { get: (n, a, i) => {
2156
- if (a === Oa) return n;
2155
+ }, yu = (e) => "reducerPath" in e && typeof e.reducerPath == "string", bu = (e) => e.flatMap((t) => yu(t) ? [[t.reducerPath, t.reducer]] : Object.entries(t)), Ea = /* @__PURE__ */ Symbol.for("rtk-state-proxy-original"), $u = (e) => !!e && !!e[Ea], gu = /* @__PURE__ */ new WeakMap(), Nu = (e, t, r) => Qe(gu, e, () => new Proxy(e, { get: (n, a, i) => {
2156
+ if (a === Ea) return n;
2157
2157
  const o = Reflect.get(n, a, i);
2158
2158
  if (typeof o > "u") {
2159
2159
  const s = r[a];
@@ -2168,7 +2168,7 @@ var du = async (e, t) => {
2168
2168
  return o;
2169
2169
  } })), Cu = (e) => {
2170
2170
  if (!$u(e)) throw new Error(process.env.NODE_ENV === "production" ? Y(25) : "original must be used on state Proxy");
2171
- return e[Oa];
2171
+ return e[Ea];
2172
2172
  }, Su = {}, Pu = (e = Su) => e;
2173
2173
  function wu(...e) {
2174
2174
  const t = Object.fromEntries(bu(e)), r = () => Object.keys(t).length ? Ko(t) : Pu;
@@ -2449,7 +2449,7 @@ var Fe = [
2449
2449
  t.loading = !1;
2450
2450
  });
2451
2451
  }
2452
- }), { setSelectedSlots: Sn, clearSlots: Hu, setSelectedDate: _r, setSelectedTime: Pn } = Zs.actions, qu = Zs.reducer, lr = Xr("appointment/create", async (e, { rejectWithValue: t }) => {
2452
+ }), { setSelectedSlots: Pn, clearSlots: Hu, setSelectedDate: _r, setSelectedTime: wn } = Zs.actions, qu = Zs.reducer, lr = Xr("appointment/create", async (e, { rejectWithValue: t }) => {
2453
2453
  try {
2454
2454
  return await Bu(e);
2455
2455
  } catch (r) {
@@ -2497,7 +2497,7 @@ var Fe = [
2497
2497
  t.loading = !1, t.error = r.payload || "Appointment failed";
2498
2498
  });
2499
2499
  }
2500
- }), { resetAppointment: Mv, setBookingMode: kv, setUserDetails: wn, setTips: Ku, setAppointmentId: Jt, clearUserDetails: Js } = Xs.actions, Yu = Xs.reducer, Qs = Ye({
2500
+ }), { resetAppointment: Mv, setBookingMode: kv, setUserDetails: _n, setTips: Ku, setAppointmentId: Jt, clearUserDetails: Js } = Xs.actions, Yu = Xs.reducer, Qs = Ye({
2501
2501
  name: "outletList",
2502
2502
  initialState: { outlets: [] },
2503
2503
  reducers: {
@@ -2542,12 +2542,12 @@ function cr(e) {
2542
2542
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
2543
2543
  }, cr(e);
2544
2544
  }
2545
- function _n() {
2545
+ function On() {
2546
2546
  }
2547
2547
  var ef = {
2548
- getItem: _n,
2549
- setItem: _n,
2550
- removeItem: _n
2548
+ getItem: On,
2549
+ setItem: On,
2550
+ removeItem: On
2551
2551
  };
2552
2552
  function tf(e) {
2553
2553
  if ((typeof self > "u" ? "undefined" : cr(self)) !== "object" || !(e in self)) return !1;
@@ -2583,7 +2583,7 @@ function nf(e) {
2583
2583
  }
2584
2584
  };
2585
2585
  }
2586
- var af = (0, qn.combineReducers)({ barber: (0, qn.combineReducers)({
2586
+ var af = (0, Kn.combineReducers)({ barber: (0, Kn.combineReducers)({
2587
2587
  breadcrumbs: Iu,
2588
2588
  outletDetails: Mu,
2589
2589
  service: Fu,
@@ -2615,13 +2615,13 @@ var af = (0, qn.combineReducers)({ barber: (0, qn.combineReducers)({
2615
2615
  Tl,
2616
2616
  Al
2617
2617
  ] } })
2618
- }), Ea = kl(Jr), Rv = Jr.getState;
2618
+ }), Ia = kl(Jr), Rv = Jr.getState;
2619
2619
  function lf({ children: e }) {
2620
2620
  return /* @__PURE__ */ u(Pl, {
2621
2621
  store: Jr,
2622
2622
  children: /* @__PURE__ */ u(Zo, {
2623
2623
  loading: null,
2624
- persistor: Ea,
2624
+ persistor: Ia,
2625
2625
  children: e
2626
2626
  })
2627
2627
  });
@@ -2633,7 +2633,7 @@ var cf = (e) => {
2633
2633
  }, td = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), uf = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ff = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()), Ai = (e) => {
2634
2634
  const t = ff(e);
2635
2635
  return t.charAt(0).toUpperCase() + t.slice(1);
2636
- }, On = {
2636
+ }, En = {
2637
2637
  xmlns: "http://www.w3.org/2000/svg",
2638
2638
  width: 24,
2639
2639
  height: 24,
@@ -2648,19 +2648,19 @@ var cf = (e) => {
2648
2648
  return !1;
2649
2649
  }, mf = Cl({}), hf = () => Sl(mf), vf = qo(({ color: e, size: t, strokeWidth: r, absoluteStrokeWidth: n, className: a = "", children: i, iconNode: o, ...s }, d) => {
2650
2650
  const { size: l = 24, strokeWidth: c = 2, absoluteStrokeWidth: f = !1, color: h = "currentColor", className: m = "" } = hf() ?? {}, p = n ?? f ? Number(r ?? c) * 24 / Number(t ?? l) : r ?? c;
2651
- return Dn("svg", {
2651
+ return Rn("svg", {
2652
2652
  ref: d,
2653
- ...On,
2654
- width: t ?? l ?? On.width,
2655
- height: t ?? l ?? On.height,
2653
+ ...En,
2654
+ width: t ?? l ?? En.width,
2655
+ height: t ?? l ?? En.height,
2656
2656
  stroke: e ?? h,
2657
2657
  strokeWidth: p,
2658
2658
  className: td("lucide", m, a),
2659
2659
  ...!i && !pf(s) && { "aria-hidden": "true" },
2660
2660
  ...s
2661
- }, [...o.map(([v, b]) => Dn(v, b)), ...Array.isArray(i) ? i : [i]]);
2661
+ }, [...o.map(([v, b]) => Rn(v, b)), ...Array.isArray(i) ? i : [i]]);
2662
2662
  }), te = (e, t) => {
2663
- const r = qo(({ className: n, ...a }, i) => Dn(vf, {
2663
+ const r = qo(({ className: n, ...a }, i) => Rn(vf, {
2664
2664
  ref: i,
2665
2665
  iconNode: t,
2666
2666
  className: td(`lucide-${uf(Ai(e))}`, `lucide-${e}`, n),
@@ -2740,7 +2740,7 @@ var cf = (e) => {
2740
2740
  ], gf = te("calendar-days", $f), Nf = [["path", {
2741
2741
  d: "M20 6 9 17l-5-5",
2742
2742
  key: "1gmf2c"
2743
- }]], Ia = te("check", Nf), Cf = [["path", {
2743
+ }]], Ta = te("check", Nf), Cf = [["path", {
2744
2744
  d: "m6 9 6 6 6-6",
2745
2745
  key: "qrunsl"
2746
2746
  }]], rd = te("chevron-down", Cf), Sf = [["path", {
@@ -3148,9 +3148,9 @@ var it = [
3148
3148
  time: 1,
3149
3149
  confirm: 2
3150
3150
  };
3151
- function Ta() {
3151
+ function Aa() {
3152
3152
  const e = ze(), { width: t } = l1(), { currentStep: r, completedSteps: n } = J((m) => m.barber.breadcrumbs), a = it.findIndex((m) => m.page === r), { selectedServices: i } = J((m) => m.barber.service), { isOpenSidebar: o } = J((m) => m.barber.theme), s = () => {
3153
- Ea.purge(), e({ type: "RESET_ALL" });
3153
+ Ia.purge(), e({ type: "RESET_ALL" });
3154
3154
  }, d = (m) => {
3155
3155
  const p = it.findIndex((b) => b.page === r), v = it.findIndex((b) => b.page === m);
3156
3156
  v < p && (e(Eu(m)), v <= ki.time && e(Hu()), v <= ki.confirm && e(Js())), e(Ou(m));
@@ -3210,7 +3210,7 @@ function Ta() {
3210
3210
  ]
3211
3211
  }) });
3212
3212
  }
3213
- function Aa({ children: e, sidebar: t, renderButton: r }) {
3213
+ function xa({ children: e, sidebar: t, renderButton: r }) {
3214
3214
  const { isOpenSidebar: n } = J((a) => a.barber.theme);
3215
3215
  return /* @__PURE__ */ g("div", {
3216
3216
  className: "aaravpos-barber-main-layout",
@@ -3261,7 +3261,7 @@ var u1 = (e) => Number(e.price || e.min_price || 0), Qt = (e, { perUnit: t = !1
3261
3261
  "Nov",
3262
3262
  "Dec"
3263
3263
  ];
3264
- function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime: n = !1, showTip: a = !1, tipPct: i = 0, onTipChange: o, consentRequired: s = !1, consentCompleted: d = 0, totalConsents: l = 0, checkingConsent: c = !1, loading: f = !1, showFooterButton: h = !1, showBookingSection: m = !0 }) {
3264
+ function Ma({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime: n = !1, showTip: a = !1, tipPct: i = 0, onTipChange: o, consentRequired: s = !1, consentCompleted: d = 0, totalConsents: l = 0, checkingConsent: c = !1, loading: f = !1, showFooterButton: h = !1, showBookingSection: m = !0 }) {
3265
3265
  const p = ze(), { outletName: v, timeZone: b } = J((M) => M.barber.outletDetails), { selectedSlotIndexes: $, slots: y, selectedDate: S } = J((M) => M.barber.slots), { staff: P, selectedServices: O, selectedProfessional: N } = J((M) => M.barber.service), T = ve.now().setZone(b ?? "UTC"), [D, H] = Z(""), [X, ae] = Z(!1), ce = De(null), ue = De(null), [ye, Ce] = Z(0), me = [
3266
3266
  0,
3267
3267
  5,
@@ -3297,8 +3297,8 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3297
3297
  O
3298
3298
  ]), he = Q.reduce((M, F) => M + Number(F.price || F.min_price || 0) * (F.qty || 1), 0), x = Q.reduce((M, F) => M + Number(F.duration || F.min_time || F.estimated_time || 0) * (F.qty || 1), 0), C = Math.ceil(x / se), E = (M) => {
3299
3299
  if (!fe.length) return "";
3300
- const F = fe[M]?.start_time, pe = fe[M + C - 1];
3301
- return !F || !pe ? "" : `${F} - ${pe.end_time || pe.start_time}`;
3300
+ const F = fe[M]?.start_time_12h, pe = fe[M + C - 1];
3301
+ return !F || !pe ? "" : `${F} - ${pe.end_time_12h || pe.start_time_12h}`;
3302
3302
  }, k = S || {
3303
3303
  day: T.day,
3304
3304
  month: T.month,
@@ -3505,15 +3505,15 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3505
3505
  m && /* @__PURE__ */ g("div", {
3506
3506
  className: "aaravpos-barber-mt-auto",
3507
3507
  children: [
3508
- /* @__PURE__ */ u(En, {
3508
+ /* @__PURE__ */ u(In, {
3509
3509
  label: "Service",
3510
3510
  value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), he.toFixed(2)] })
3511
3511
  }),
3512
- a && /* @__PURE__ */ u(En, {
3512
+ a && /* @__PURE__ */ u(In, {
3513
3513
  label: `Tip (${z}%)`,
3514
3514
  value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), W.toFixed(2)] })
3515
3515
  }),
3516
- (!n || R) && /* @__PURE__ */ u(En, {
3516
+ (!n || R) && /* @__PURE__ */ u(In, {
3517
3517
  label: "Taxes",
3518
3518
  value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), G.toFixed(2)] })
3519
3519
  }),
@@ -3544,7 +3544,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3544
3544
  ]
3545
3545
  });
3546
3546
  }
3547
- function En({ label: e, value: t }) {
3547
+ function In({ label: e, value: t }) {
3548
3548
  return /* @__PURE__ */ g("div", {
3549
3549
  className: "aaravpos-barber-summary-row",
3550
3550
  children: [/* @__PURE__ */ u("span", {
@@ -3569,8 +3569,8 @@ function p1() {
3569
3569
  if (!m?.length) return;
3570
3570
  const y = m.find((S) => S?.categories?.some((P) => P?.services?.length > 0));
3571
3571
  y && !s && (d(y), c(null));
3572
- }, [m, s]), /* @__PURE__ */ g(Aa, {
3573
- sidebar: /* @__PURE__ */ u(xa, {
3572
+ }, [m, s]), /* @__PURE__ */ g(xa, {
3573
+ sidebar: /* @__PURE__ */ u(Ma, {
3574
3574
  goToStep: () => e(Be()),
3575
3575
  showFooterButton: !0,
3576
3576
  showBookingSection: !1
@@ -3584,7 +3584,7 @@ function p1() {
3584
3584
  children: ["Choose Time ", /* @__PURE__ */ u(Qr, { size: 16 })]
3585
3585
  })
3586
3586
  }) : null,
3587
- children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */ g("div", {
3587
+ children: [/* @__PURE__ */ u(Aa, {}), /* @__PURE__ */ g("div", {
3588
3588
  className: "aaravpos-barber-margin-top-20",
3589
3589
  children: [
3590
3590
  /* @__PURE__ */ g("div", {
@@ -4051,7 +4051,7 @@ function $1() {
4051
4051
  day: x.day,
4052
4052
  month: x.month,
4053
4053
  year: x.year
4054
- })), e(Pn(null));
4054
+ })), e(wn(null));
4055
4055
  }, ue = (x) => {
4056
4056
  if (!y.length) return;
4057
4057
  const C = y.slice(x, x + H);
@@ -4063,9 +4063,9 @@ function $1() {
4063
4063
  re.warning("Selected time range is not fully available");
4064
4064
  return;
4065
4065
  }
4066
- e(Pn(y[x].start_time));
4066
+ e(wn(y[x].start_time));
4067
4067
  const E = Array.from({ length: H }, (k, U) => x + U);
4068
- e(Sn({
4068
+ e(Pn({
4069
4069
  indexes: E,
4070
4070
  ids: E.map((k) => y[k]?.id)
4071
4071
  })), setTimeout(() => {
@@ -4077,7 +4077,7 @@ function $1() {
4077
4077
  const x = y.findIndex((E) => E.start_time === c);
4078
4078
  if (x === -1) return;
4079
4079
  const C = Array.from({ length: H }, (E, k) => x + k);
4080
- C.length === d.length && C.every((E, k) => E === d[k]) || e(Sn({
4080
+ C.length === d.length && C.every((E, k) => E === d[k]) || e(Pn({
4081
4081
  indexes: C,
4082
4082
  ids: C.map((E) => y[E]?.id)
4083
4083
  }));
@@ -4104,7 +4104,7 @@ function $1() {
4104
4104
  Ce,
4105
4105
  me
4106
4106
  ]), de(() => {
4107
- h || (e(Pn(null)), e(Sn({
4107
+ h || (e(wn(null)), e(Pn({
4108
4108
  indexes: [],
4109
4109
  ids: []
4110
4110
  })));
@@ -4112,10 +4112,10 @@ function $1() {
4112
4112
  h,
4113
4113
  l,
4114
4114
  e
4115
- ]), /* @__PURE__ */ g(Aa, {
4115
+ ]), /* @__PURE__ */ g(xa, {
4116
4116
  sidebar: /* @__PURE__ */ u("div", {
4117
4117
  className: "aaravpos-barber-aside",
4118
- children: /* @__PURE__ */ u(xa, {
4118
+ children: /* @__PURE__ */ u(Ma, {
4119
4119
  buttonText: "Confirm Details",
4120
4120
  onButtonClick: () => {
4121
4121
  if (!c || !d.length) {
@@ -4128,7 +4128,7 @@ function $1() {
4128
4128
  })
4129
4129
  }),
4130
4130
  children: [
4131
- /* @__PURE__ */ u(Ta, {}),
4131
+ /* @__PURE__ */ u(Aa, {}),
4132
4132
  /* @__PURE__ */ u("div", {
4133
4133
  style: { marginTop: 15 },
4134
4134
  children: /* @__PURE__ */ u("h1", {
@@ -4220,7 +4220,7 @@ function $1() {
4220
4220
  className: "aaravpos-barber-scroll-area",
4221
4221
  style: h ? { height: 300 } : {},
4222
4222
  children: [h ? /* @__PURE__ */ u(y1, {}) : /* @__PURE__ */ u($e, { children: y?.length ? /* @__PURE__ */ g($e, { children: [
4223
- /* @__PURE__ */ u(In, {
4223
+ /* @__PURE__ */ u(Tn, {
4224
4224
  label: "Morning",
4225
4225
  icon: /* @__PURE__ */ u(a1, {
4226
4226
  size: 18,
@@ -4233,7 +4233,7 @@ function $1() {
4233
4233
  isOpen: Q === "morning",
4234
4234
  onToggle: () => he(Q === "morning" ? null : "morning")
4235
4235
  }),
4236
- /* @__PURE__ */ u(In, {
4236
+ /* @__PURE__ */ u(Tn, {
4237
4237
  label: "Afternoon",
4238
4238
  icon: /* @__PURE__ */ u(r1, {
4239
4239
  size: 18,
@@ -4246,7 +4246,7 @@ function $1() {
4246
4246
  isOpen: Q === "afternoon",
4247
4247
  onToggle: () => he(Q === "afternoon" ? null : "afternoon")
4248
4248
  }),
4249
- /* @__PURE__ */ u(In, {
4249
+ /* @__PURE__ */ u(Tn, {
4250
4250
  label: "Evening",
4251
4251
  icon: /* @__PURE__ */ u(Rf, {
4252
4252
  size: 18,
@@ -4284,7 +4284,7 @@ function Ri({ onClick: e, children: t }) {
4284
4284
  children: t
4285
4285
  });
4286
4286
  }
4287
- function In({ icon: e, label: t, slots: r, allSlots: n, selectedSlotIndexes: a, handleSlotSelect: i, isOpen: o, onToggle: s }) {
4287
+ function Tn({ icon: e, label: t, slots: r, allSlots: n, selectedSlotIndexes: a, handleSlotSelect: i, isOpen: o, onToggle: s }) {
4288
4288
  return !r || r?.length === 0 ? null : /* @__PURE__ */ g("div", {
4289
4289
  className: "aaravpos-barber-slot-section",
4290
4290
  children: [/* @__PURE__ */ g("div", {
@@ -4326,7 +4326,7 @@ var g1 = (e) => e.replace(/\D/g, "").slice(0, 16).replace(/(.{4})/g, "$1 ").trim
4326
4326
  return t.length >= 3 ? `${t.slice(0, 2)}/${t.slice(2)}` : t;
4327
4327
  }, C1 = (e) => e.replace(/\D/g, "").slice(0, 3);
4328
4328
  function S1({ onClose: e, onPay: t, amount: r }) {
4329
- const { timeZone: n } = J((c) => c?.barber?.outletDetails), { control: a, handleSubmit: i, reset: o, formState: { errors: s, isSubmitting: d } } = ha({ defaultValues: {
4329
+ const { timeZone: n } = J((c) => c?.barber?.outletDetails), { control: a, handleSubmit: i, reset: o, formState: { errors: s, isSubmitting: d } } = va({ defaultValues: {
4330
4330
  name: "",
4331
4331
  number: "",
4332
4332
  expiry: "",
@@ -4535,14 +4535,14 @@ function S1({ onClose: e, onPay: t, amount: r }) {
4535
4535
  })
4536
4536
  });
4537
4537
  }
4538
- function Zn() {
4539
- return Zn = Object.assign ? Object.assign.bind() : function(e) {
4538
+ function Xn() {
4539
+ return Xn = Object.assign ? Object.assign.bind() : function(e) {
4540
4540
  for (var t = 1; t < arguments.length; t++) {
4541
4541
  var r = arguments[t];
4542
4542
  for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
4543
4543
  }
4544
4544
  return e;
4545
- }, Zn.apply(null, arguments);
4545
+ }, Xn.apply(null, arguments);
4546
4546
  }
4547
4547
  function P1(e, t) {
4548
4548
  if (e == null) return {};
@@ -4596,10 +4596,10 @@ function E1(e, t, r) {
4596
4596
  function I1(e, t) {
4597
4597
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
4598
4598
  }
4599
- function Xn(e, t) {
4600
- return Xn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
4599
+ function Jn(e, t) {
4600
+ return Jn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
4601
4601
  return r.__proto__ = n, r;
4602
- }, Xn(e, t);
4602
+ }, Jn(e, t);
4603
4603
  }
4604
4604
  function T1(e, t) {
4605
4605
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
@@ -4607,7 +4607,7 @@ function T1(e, t) {
4607
4607
  value: e,
4608
4608
  writable: !0,
4609
4609
  configurable: !0
4610
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Xn(e, t);
4610
+ } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Jn(e, t);
4611
4611
  }
4612
4612
  function Ir(e) {
4613
4613
  return Ir = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
@@ -4823,7 +4823,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4823
4823
  }
4824
4824
  return c;
4825
4825
  };
4826
- })), Ma = /* @__PURE__ */ Te(((e, t) => {
4826
+ })), ka = /* @__PURE__ */ Te(((e, t) => {
4827
4827
  var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
4828
4828
  t.exports = r;
4829
4829
  })), dd = /* @__PURE__ */ Te(((e, t) => {
@@ -4832,7 +4832,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4832
4832
  var r = function() {
4833
4833
  };
4834
4834
  if (process.env.NODE_ENV !== "production") {
4835
- var n = Ma(), a = {}, i = dd();
4835
+ var n = ka(), a = {}, i = dd();
4836
4836
  r = function(s) {
4837
4837
  var d = "Warning: " + s;
4838
4838
  typeof console < "u" && console.error(d);
@@ -4867,7 +4867,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4867
4867
  process.env.NODE_ENV !== "production" && (a = {});
4868
4868
  }, t.exports = o;
4869
4869
  })), j1 = /* @__PURE__ */ Te(((e, t) => {
4870
- var r = sd(), n = R1(), a = Ma(), i = dd(), o = F1(), s = function() {
4870
+ var r = sd(), n = R1(), a = ka(), i = dd(), o = F1(), s = function() {
4871
4871
  };
4872
4872
  process.env.NODE_ENV !== "production" && (s = function(l) {
4873
4873
  var c = "Warning: " + l;
@@ -5140,7 +5140,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
5140
5140
  return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v;
5141
5141
  };
5142
5142
  })), L1 = /* @__PURE__ */ Te(((e, t) => {
5143
- var r = Ma();
5143
+ var r = ka();
5144
5144
  function n() {
5145
5145
  }
5146
5146
  function a() {
@@ -5186,7 +5186,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
5186
5186
  var r = sd(), n = !0;
5187
5187
  t.exports = j1()(r.isElement, n);
5188
5188
  } else t.exports = L1()();
5189
- })), _ = /* @__PURE__ */ va(B1(), 1);
5189
+ })), _ = /* @__PURE__ */ ya(B1(), 1);
5190
5190
  function at(e, t, r) {
5191
5191
  this.x = e, this.y = t, this.time = r || (/* @__PURE__ */ new Date()).getTime();
5192
5192
  }
@@ -5199,10 +5199,10 @@ at.prototype.distanceTo = function(e) {
5199
5199
  at.prototype.equals = function(e) {
5200
5200
  return this.x === e.x && this.y === e.y && this.time === e.time;
5201
5201
  };
5202
- function ka(e, t, r, n) {
5202
+ function Da(e, t, r, n) {
5203
5203
  this.startPoint = e, this.control1 = t, this.control2 = r, this.endPoint = n;
5204
5204
  }
5205
- ka.prototype.length = function() {
5205
+ Da.prototype.length = function() {
5206
5206
  for (var e = 10, t = 0, r = void 0, n = void 0, a = 0; a <= e; a += 1) {
5207
5207
  var i = a / e, o = this._point(i, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), s = this._point(i, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
5208
5208
  if (a > 0) {
@@ -5213,7 +5213,7 @@ ka.prototype.length = function() {
5213
5213
  }
5214
5214
  return t;
5215
5215
  };
5216
- ka.prototype._point = function(e, t, r, n, a) {
5216
+ Da.prototype._point = function(e, t, r, n, a) {
5217
5217
  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;
5218
5218
  };
5219
5219
  function U1(e, t, r) {
@@ -5328,7 +5328,7 @@ ee.prototype._addPoint = function(e) {
5328
5328
  t.length === 3 && t.unshift(t[0]), r = this._calculateCurveControlPoints(t[0], t[1], t[2]);
5329
5329
  var n = r.c2;
5330
5330
  r = this._calculateCurveControlPoints(t[1], t[2], t[3]);
5331
- var a = r.c1, i = new ka(t[1], n, a, t[2]), o = this._calculateCurveWidths(i);
5331
+ var a = r.c1, i = new Da(t[1], n, a, t[2]), o = this._calculateCurveWidths(i);
5332
5332
  return t.shift(), {
5333
5333
  curve: i,
5334
5334
  widths: o
@@ -5479,7 +5479,7 @@ var V1 = /* @__PURE__ */ Te(((e, t) => {
5479
5479
  Object.defineProperty(n, "__esModule", { value: !0 }), n.default = a;
5480
5480
  }]);
5481
5481
  });
5482
- })), G1 = /* @__PURE__ */ va(V1(), 1), z1 = ["canvasProps", "clearOnResize"], rn = /* @__PURE__ */ (function(e) {
5482
+ })), G1 = /* @__PURE__ */ ya(V1(), 1), z1 = ["canvasProps", "clearOnResize"], rn = /* @__PURE__ */ (function(e) {
5483
5483
  T1(r, e);
5484
5484
  var t = M1(r);
5485
5485
  function r() {
@@ -5517,7 +5517,7 @@ var V1 = /* @__PURE__ */ Te(((e, t) => {
5517
5517
  }
5518
5518
  }, n.render = function() {
5519
5519
  var s = n.props.canvasProps;
5520
- return /* @__PURE__ */ j.createElement("canvas", Zn({ ref: n.setRef }, s));
5520
+ return /* @__PURE__ */ j.createElement("canvas", Xn({ ref: n.setRef }, s));
5521
5521
  }, n.on = function() {
5522
5522
  return window.addEventListener("resize", n._checkClearOnResize), n.getSignaturePad().on();
5523
5523
  }, n.off = function() {
@@ -5554,7 +5554,7 @@ rn.propTypes = {
5554
5554
  rn.defaultProps = { clearOnResize: !0 };
5555
5555
  rn.refNullError = /* @__PURE__ */ new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");
5556
5556
  var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a }) => {
5557
- const i = De(null), { register: o, handleSubmit: s, control: d, reset: l, watch: c, setValue: f, formState: { errors: h, isSubmitting: m } } = ha({
5557
+ const i = De(null), { register: o, handleSubmit: s, control: d, reset: l, watch: c, setValue: f, formState: { errors: h, isSubmitting: m } } = va({
5558
5558
  defaultValues: {
5559
5559
  accepted: !1,
5560
5560
  typedName: "",
@@ -5710,7 +5710,7 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5710
5710
  type: "submit",
5711
5711
  disabled: !O,
5712
5712
  className: `aaravpos-barber-consent-submit-btn ${O ? "aaravpos-barber-consent-submit-active" : "aaravpos-barber-consent-submit-disabled"}`,
5713
- children: [/* @__PURE__ */ u(Ia, {}), r === "DRAW_SIGNATURE" || r === "TYPED_NAME" ? "Sign & Continue" : "I Agree"]
5713
+ children: [/* @__PURE__ */ u(Ta, {}), r === "DRAW_SIGNATURE" || r === "TYPED_NAME" ? "Sign & Continue" : "I Agree"]
5714
5714
  })]
5715
5715
  })
5716
5716
  ]
@@ -13245,12 +13245,12 @@ function ji(e, t) {
13245
13245
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
13246
13246
  return n;
13247
13247
  }
13248
- function Jn(e, t) {
13248
+ function Qn(e, t) {
13249
13249
  for (var r = 0, n = Y1(t.split("")), a; !(a = n()).done; ) a.value === e && r++;
13250
13250
  return r;
13251
13251
  }
13252
13252
  function X1(e, t) {
13253
- 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 = Jn("(", e) - Jn(")", e); i > 0 && a < t.length; )
13253
+ 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 = Qn("(", e) - Qn(")", e); i > 0 && a < t.length; )
13254
13254
  e += t[a].replace(r, n), t[a] === ")" && i--, a++;
13255
13255
  return e;
13256
13256
  }
@@ -13288,7 +13288,7 @@ function e0(e) {
13288
13288
  if (!e) return function(a) {
13289
13289
  return { text: a };
13290
13290
  };
13291
- var n = Jn(t, e);
13291
+ var n = Qn(t, e);
13292
13292
  return function(a) {
13293
13293
  if (!a) return {
13294
13294
  text: "",
@@ -13366,7 +13366,7 @@ function o0() {
13366
13366
  }
13367
13367
  var s0 = /Android/i;
13368
13368
  function d0(e, t, r, n, a) {
13369
- Qn(t, r, n, void 0, a);
13369
+ ea(t, r, n, void 0, a);
13370
13370
  }
13371
13371
  function l0(e, t, r, n, a) {
13372
13372
  if (!r0(t)) {
@@ -13376,7 +13376,7 @@ function l0(e, t, r, n, a) {
13376
13376
  case "Backspace":
13377
13377
  e.preventDefault();
13378
13378
  var o = n0(t);
13379
- return o ? (c0(t, o), Qn(t, r, n, void 0, a)) : Qn(t, r, n, i, a);
13379
+ return o ? (c0(t, o), ea(t, r, n, void 0, a)) : ea(t, r, n, i, a);
13380
13380
  default:
13381
13381
  }
13382
13382
  }
@@ -13385,7 +13385,7 @@ function c0(e, t) {
13385
13385
  var r = e.value;
13386
13386
  r = r.slice(0, t.start) + r.slice(t.end), e.value = r, cd(e, t.start);
13387
13387
  }
13388
- function Qn(e, t, r, n, a) {
13388
+ function ea(e, t, r, n, a) {
13389
13389
  var i = K1(e.value, i0(e), t), o = i.value, s = i.caret;
13390
13390
  if (n) {
13391
13391
  var d = q1(o, s, n);
@@ -14169,26 +14169,26 @@ var j0 = [
14169
14169
  "UAN",
14170
14170
  "VOICEMAIL"
14171
14171
  ];
14172
- function Da(e, t, r) {
14172
+ function Ra(e, t, r) {
14173
14173
  if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
14174
14174
  r = new le(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
14175
14175
  var n = t.v2 ? e.nationalNumber : e.phone;
14176
14176
  if (Ge(n, r.nationalNumberPattern())) {
14177
- if (Tn(n, "FIXED_LINE", r))
14178
- return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || Tn(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
14177
+ if (An(n, "FIXED_LINE", r))
14178
+ return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || An(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
14179
14179
  for (var a = R0(j0), i; !(i = a()).done; ) {
14180
14180
  var o = i.value;
14181
- if (Tn(n, o, r)) return o;
14181
+ if (An(n, o, r)) return o;
14182
14182
  }
14183
14183
  }
14184
14184
  }
14185
14185
  }
14186
- function Tn(e, t, r) {
14186
+ function An(e, t, r) {
14187
14187
  var n = r.type(t);
14188
14188
  return !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : Ge(e, n.pattern());
14189
14189
  }
14190
14190
  function L0(e, t, r) {
14191
- return t = t || {}, r = new le(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes() ? Da(e, t, r.metadata) !== void 0 : Ge(t.v2 ? e.nationalNumber : e.phone, r.nationalNumberPattern());
14191
+ return t = t || {}, r = new le(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes() ? Ra(e, t, r.metadata) !== void 0 : Ge(t.v2 ? e.nationalNumber : e.phone, r.nationalNumberPattern());
14192
14192
  }
14193
14193
  function B0(e, t, r) {
14194
14194
  var n = new le(r).getCountryCodesForCallingCode(e);
@@ -14214,7 +14214,7 @@ function vd(e, t, r, n) {
14214
14214
  }
14215
14215
  }
14216
14216
  }
14217
- function ea(e, t) {
14217
+ function ta(e, t) {
14218
14218
  if (e && t.numberingPlan.nationalPrefixForParsing()) {
14219
14219
  var r = new RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), n = r.exec(e);
14220
14220
  if (n) {
@@ -14274,14 +14274,14 @@ function yd(e, t) {
14274
14274
  var o = i.value;
14275
14275
  if (n.selectNumberingPlan(o), n.leadingDigits()) {
14276
14276
  if (e && e.search(n.leadingDigits()) === 0) return o;
14277
- } else if (Da({
14277
+ } else if (Ra({
14278
14278
  phone: e,
14279
14279
  country: o
14280
14280
  }, void 0, n.metadata)) return o;
14281
14281
  }
14282
14282
  }
14283
14283
  var X0 = !1;
14284
- function Ra(e, t) {
14284
+ function Fa(e, t) {
14285
14285
  var r = t.nationalNumber, n = t.metadata;
14286
14286
  if (X0 && n.isNonGeographicCallingCode(e))
14287
14287
  return "001";
@@ -14292,11 +14292,11 @@ function Ra(e, t) {
14292
14292
  metadata: n.metadata
14293
14293
  });
14294
14294
  }
14295
- function ta(e, t, r) {
14296
- var n = ea(e, r), a = n.carrierCode, i = n.nationalNumber;
14295
+ function ra(e, t, r) {
14296
+ var n = ta(e, r), a = n.carrierCode, i = n.nationalNumber;
14297
14297
  if (i !== e) {
14298
14298
  if (!J0(e, i, r)) return { nationalNumber: e };
14299
- if (r.numberingPlan.possibleLengths() && (t || (t = Ra(r.numberingPlan.callingCode(), {
14299
+ if (r.numberingPlan.possibleLengths() && (t || (t = Fa(r.numberingPlan.callingCode(), {
14300
14300
  nationalNumber: i,
14301
14301
  metadata: r
14302
14302
  })), !Q0(i, t, r)))
@@ -14323,7 +14323,7 @@ function bd(e, t, r, n, a) {
14323
14323
  var i = t || r ? Xe(t || r, a) : n;
14324
14324
  if (e.indexOf(i) === 0) {
14325
14325
  a = new le(a), a.selectNumberingPlan(t || r, i);
14326
- var o = e.slice(i.length), s = ta(o, t, a).nationalNumber, d = ta(e, t, a).nationalNumber;
14326
+ var o = e.slice(i.length), s = ra(o, t, a).nationalNumber, d = ra(e, t, a).nationalNumber;
14327
14327
  if (!Ge(d, a.nationalNumberPattern()) && Ge(s, a.nationalNumberPattern()) || on(d, t, a) === "TOO_LONG") return {
14328
14328
  countryCallingCode: i,
14329
14329
  number: o
@@ -14331,7 +14331,7 @@ function bd(e, t, r, n, a) {
14331
14331
  }
14332
14332
  return { number: e };
14333
14333
  }
14334
- function Fa(e, t, r, n, a) {
14334
+ function ja(e, t, r, n, a) {
14335
14335
  if (!e) return {};
14336
14336
  var i;
14337
14337
  if (e[0] !== "+") {
@@ -14412,9 +14412,9 @@ function up(e, t, r, n) {
14412
14412
  var a = n.countryCallingCode(), i = r.v2 ? e.nationalNumber : e.phone, o;
14413
14413
  switch (t) {
14414
14414
  case "NATIONAL":
14415
- return i ? (o = Ar(i, e.carrierCode, "NATIONAL", n, r), An(o, e.ext, n, r.formatExtension)) : "";
14415
+ return i ? (o = Ar(i, e.carrierCode, "NATIONAL", n, r), xn(o, e.ext, n, r.formatExtension)) : "";
14416
14416
  case "INTERNATIONAL":
14417
- return i ? (o = Ar(i, null, "INTERNATIONAL", n, r), o = "+".concat(a, " ").concat(o), An(o, e.ext, n, r.formatExtension)) : "+".concat(a);
14417
+ return i ? (o = Ar(i, null, "INTERNATIONAL", n, r), o = "+".concat(a, " ").concat(o), xn(o, e.ext, n, r.formatExtension)) : "+".concat(a);
14418
14418
  case "E.164":
14419
14419
  return "+".concat(a).concat(i);
14420
14420
  case "RFC3966":
@@ -14425,7 +14425,7 @@ function up(e, t, r, n) {
14425
14425
  case "IDD":
14426
14426
  if (!r.fromCountry) return;
14427
14427
  var s = pp(i, e.carrierCode, a, r.fromCountry, n);
14428
- return s ? An(s, e.ext, n, r.formatExtension) : void 0;
14428
+ return s ? xn(s, e.ext, n, r.formatExtension) : void 0;
14429
14429
  default:
14430
14430
  throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
14431
14431
  }
@@ -14448,7 +14448,7 @@ function fp(e, t) {
14448
14448
  return Ge(t, r.pattern());
14449
14449
  });
14450
14450
  }
14451
- function An(e, t, r, n) {
14451
+ function xn(e, t, r, n) {
14452
14452
  return t ? n(e, t, r) : e;
14453
14453
  }
14454
14454
  function pp(e, t, r, n, a) {
@@ -14545,7 +14545,7 @@ var gp = !1, Pd = /* @__PURE__ */ (function() {
14545
14545
  n = r;
14546
14546
  var a = t;
14547
14547
  if (!Sp.test(a)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
14548
- var i = Fa(a, void 0, void 0, void 0, n), o = i.countryCallingCode;
14548
+ var i = ja(a, void 0, void 0, void 0, n), o = i.countryCallingCode;
14549
14549
  if (r = i.number, t = o, !r) throw new Error("Invalid `number` argument passed: too short");
14550
14550
  }
14551
14551
  if (!r) throw new TypeError("`nationalNumber` argument is required");
@@ -14596,7 +14596,7 @@ var gp = !1, Pd = /* @__PURE__ */ (function() {
14596
14596
  {
14597
14597
  key: "getType",
14598
14598
  value: function() {
14599
- return Da(this, { v2: !0 }, this.getMetadata());
14599
+ return Ra(this, { v2: !0 }, this.getMetadata());
14600
14600
  }
14601
14601
  },
14602
14602
  {
@@ -14670,7 +14670,7 @@ function Op(e, t) {
14670
14670
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
14671
14671
  }
14672
14672
  function Ep(e, t, r) {
14673
- return t = It(t), Ip(e, ja() ? Reflect.construct(t, r || [], It(e).constructor) : t.apply(e, r));
14673
+ return t = It(t), Ip(e, La() ? Reflect.construct(t, r || [], It(e).constructor) : t.apply(e, r));
14674
14674
  }
14675
14675
  function Ip(e, t) {
14676
14676
  if (t && (yt(t) == "object" || typeof t == "function")) return t;
@@ -14689,9 +14689,9 @@ function Ap(e, t) {
14689
14689
  configurable: !0
14690
14690
  } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Et(e, t);
14691
14691
  }
14692
- function ra(e) {
14692
+ function na(e) {
14693
14693
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
14694
- return ra = function(n) {
14694
+ return na = function(n) {
14695
14695
  if (n === null || !Mp(n)) return n;
14696
14696
  if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
14697
14697
  if (t !== void 0) {
@@ -14707,22 +14707,22 @@ function ra(e) {
14707
14707
  writable: !0,
14708
14708
  configurable: !0
14709
14709
  } }), Et(a, n);
14710
- }, ra(e);
14710
+ }, na(e);
14711
14711
  }
14712
14712
  function xp(e, t, r) {
14713
- if (ja()) return Reflect.construct.apply(null, arguments);
14713
+ if (La()) return Reflect.construct.apply(null, arguments);
14714
14714
  var n = [null];
14715
14715
  n.push.apply(n, t);
14716
14716
  var a = new (e.bind.apply(e, n))();
14717
14717
  return r && Et(a, r.prototype), a;
14718
14718
  }
14719
- function ja() {
14719
+ function La() {
14720
14720
  try {
14721
14721
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14722
14722
  }));
14723
14723
  } catch {
14724
14724
  }
14725
- return (ja = function() {
14725
+ return (La = function() {
14726
14726
  return !!e;
14727
14727
  })();
14728
14728
  }
@@ -14749,7 +14749,7 @@ var Le = /* @__PURE__ */ (function(e) {
14749
14749
  return Op(this, t), n = Ep(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
14750
14750
  }
14751
14751
  return Ap(t, e), Pp(t);
14752
- })(/* @__PURE__ */ ra(Error)), no = new RegExp("(?:" + Cd() + ")$", "i");
14752
+ })(/* @__PURE__ */ na(Error)), no = new RegExp("(?:" + Cd() + ")$", "i");
14753
14753
  function kp(e) {
14754
14754
  var t = e.search(no);
14755
14755
  if (t < 0) return {};
@@ -14869,7 +14869,7 @@ function io(e, t) {
14869
14869
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
14870
14870
  return n;
14871
14871
  }
14872
- function na(e) {
14872
+ function aa(e) {
14873
14873
  for (var t = "", r = jp(e.split("")), n; !(n = r()).done; ) {
14874
14874
  var a = n.value;
14875
14875
  t += _d(a, t) || "";
@@ -14886,11 +14886,11 @@ function _d(e, t, r) {
14886
14886
  }
14887
14887
  return wd(e);
14888
14888
  }
14889
- var oo = "([" + Pe + "]|[\\-\\.\\(\\)]?)", Bp = "^\\+" + oo + "*[" + Pe + "]" + oo + "*$", Up = new RegExp(Bp, "g"), aa = Pe, Vp = "[" + aa + "]+((\\-)*[" + aa + "])*", Gp = "[a-zA-Z]+((\\-)*[" + aa + "])*", zp = "^(" + Vp + "\\.)*" + Gp + "\\.?$", Wp = new RegExp(zp, "g"), so = "tel:", ia = ";phone-context=", Hp = ";isub=";
14889
+ var oo = "([" + Pe + "]|[\\-\\.\\(\\)]?)", Bp = "^\\+" + oo + "*[" + Pe + "]" + oo + "*$", Up = new RegExp(Bp, "g"), ia = Pe, Vp = "[" + ia + "]+((\\-)*[" + ia + "])*", Gp = "[a-zA-Z]+((\\-)*[" + ia + "])*", zp = "^(" + Vp + "\\.)*" + Gp + "\\.?$", Wp = new RegExp(zp, "g"), so = "tel:", oa = ";phone-context=", Hp = ";isub=";
14890
14890
  function qp(e) {
14891
- var t = e.indexOf(ia);
14891
+ var t = e.indexOf(oa);
14892
14892
  if (t < 0) return null;
14893
- var r = t + ia.length;
14893
+ var r = t + oa.length;
14894
14894
  if (r >= e.length) return "";
14895
14895
  var n = e.indexOf(";", r);
14896
14896
  return n >= 0 ? e.substring(r, n) : e.substring(r);
@@ -14907,7 +14907,7 @@ function Yp(e, t) {
14907
14907
  a = "", n.charAt(0) === "+" && (a += n);
14908
14908
  var i = e.indexOf(so), o;
14909
14909
  i >= 0 ? o = i + so.length : o = 0;
14910
- var s = e.indexOf(ia);
14910
+ var s = e.indexOf(oa);
14911
14911
  a += e.substring(o, s);
14912
14912
  }
14913
14913
  var d = a.indexOf(Hp);
@@ -14981,7 +14981,7 @@ function n2(e, t, r) {
14981
14981
  return r && (n.ext = r), n;
14982
14982
  }
14983
14983
  function a2(e, t, r, n) {
14984
- var a = Fa(na(e), void 0, t, r, n.metadata), i = a.countryCallingCodeSource, o = a.countryCallingCode, s = a.number, d;
14984
+ var a = ja(aa(e), void 0, t, r, n.metadata), i = a.countryCallingCodeSource, o = a.countryCallingCode, s = a.number, d;
14985
14985
  if (o) n.selectNumberingPlan(o);
14986
14986
  else if (s && (t || r))
14987
14987
  n.selectNumberingPlan(t, r), t ? d = t : Qp && n.isNonGeographicCallingCode(r) && (d = "001"), o = r || Xe(t, n.metadata);
@@ -14990,7 +14990,7 @@ function a2(e, t, r, n) {
14990
14990
  countryCallingCodeSource: i,
14991
14991
  countryCallingCode: o
14992
14992
  };
14993
- var l = ta(na(s), d, n), c = l.nationalNumber, f = l.carrierCode, h = Ra(o, {
14993
+ var l = ra(aa(s), d, n), c = l.nationalNumber, f = l.carrierCode, h = Fa(o, {
14994
14994
  nationalNumber: c,
14995
14995
  metadata: n
14996
14996
  });
@@ -15425,7 +15425,7 @@ function bo(e, t) {
15425
15425
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
15426
15426
  return n;
15427
15427
  }
15428
- var xn = new RegExp("x");
15428
+ var Mn = new RegExp("x");
15429
15429
  function ur(e, t) {
15430
15430
  if (t < 1) return "";
15431
15431
  for (var r = ""; t > 1; )
@@ -15449,8 +15449,8 @@ function M2(e) {
15449
15449
  function k2(e, t, r) {
15450
15450
  for (var n = A2(r.split("")), a; !(a = n()).done; ) {
15451
15451
  var i = a.value;
15452
- if (e.slice(t + 1).search(xn) < 0) return;
15453
- t = e.search(xn), e = e.replace(xn, i);
15452
+ if (e.slice(t + 1).search(Mn) < 0) return;
15453
+ t = e.search(Mn), e = e.replace(Mn, i);
15454
15454
  }
15455
15455
  return [e, t];
15456
15456
  }
@@ -15542,7 +15542,7 @@ var G2 = /* @__PURE__ */ (function() {
15542
15542
  var n = this.context[0], a = n.branches, i = n.instructions;
15543
15543
  if (a) return {
15544
15544
  op: "|",
15545
- args: a.concat([Mn(i)])
15545
+ args: a.concat([kn(i)])
15546
15546
  };
15547
15547
  if (i.length === 0) throw new Error("Pattern is required");
15548
15548
  return i.length === 1 ? i[0] : i;
@@ -15589,7 +15589,7 @@ var G2 = /* @__PURE__ */ (function() {
15589
15589
  if (!this.getContext().or) throw new Error('")" operator must be preceded by "(?:" operator');
15590
15590
  if (i && this.parsePattern(i), this.getContext().instructions.length === 0) throw new Error('No instructions found after "|" operator in an "or" group');
15591
15591
  var s = this.getContext().branches;
15592
- s.push(Mn(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
15592
+ s.push(kn(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
15593
15593
  op: "|",
15594
15594
  args: s
15595
15595
  });
@@ -15599,7 +15599,7 @@ var G2 = /* @__PURE__ */ (function() {
15599
15599
  if (i && this.parsePattern(i), !this.getContext().branches)
15600
15600
  if (this.context.length === 1) this.getContext().branches = [];
15601
15601
  else throw new Error('"branches" not found in an "or" group context');
15602
- this.getContext().branches.push(Mn(this.getContext().instructions)), this.getContext().instructions = [];
15602
+ this.getContext().branches.push(kn(this.getContext().instructions)), this.getContext().instructions = [];
15603
15603
  break;
15604
15604
  case "[":
15605
15605
  i && this.parsePattern(i), this.startContext({ oneOfSet: !0 });
@@ -15632,7 +15632,7 @@ function z2(e) {
15632
15632
  return t;
15633
15633
  }
15634
15634
  var W2 = /[\(\)\[\]\?\:\|]/, H2 = new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
15635
- function Mn(e) {
15635
+ function kn(e) {
15636
15636
  return e.length === 1 ? e[0] : e;
15637
15637
  }
15638
15638
  function Co(e, t) {
@@ -15706,13 +15706,13 @@ var J2 = /* @__PURE__ */ (function() {
15706
15706
  value: function(r) {
15707
15707
  var n = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).allowOverflow;
15708
15708
  if (!r) throw new Error("String is required");
15709
- var a = oa(r.split(""), this.matchTree, !0);
15709
+ var a = sa(r.split(""), this.matchTree, !0);
15710
15710
  if (a && a.match && delete a.matchedChars, !(a && a.overflow && !n))
15711
15711
  return a;
15712
15712
  }
15713
15713
  }]);
15714
15714
  })();
15715
- function oa(e, t, r) {
15715
+ function sa(e, t, r) {
15716
15716
  if (typeof t == "string") {
15717
15717
  var n = e.join("");
15718
15718
  return t.indexOf(n) === 0 ? e.length === t.length ? {
@@ -15725,7 +15725,7 @@ function oa(e, t, r) {
15725
15725
  }
15726
15726
  if (Array.isArray(t)) {
15727
15727
  for (var a = e.slice(), i = 0; i < t.length; ) {
15728
- var o = t[i], s = oa(a, o, r && i === t.length - 1);
15728
+ var o = t[i], s = sa(a, o, r && i === t.length - 1);
15729
15729
  if (s) {
15730
15730
  if (s.overflow) return s;
15731
15731
  if (s.match) {
@@ -15749,7 +15749,7 @@ function oa(e, t, r) {
15749
15749
  switch (t.op) {
15750
15750
  case "|":
15751
15751
  for (var d, l = Co(t.args), c; !(c = l()).done; ) {
15752
- var f = c.value, h = oa(e, f, r);
15752
+ var f = c.value, h = sa(e, f, r);
15753
15753
  if (h) {
15754
15754
  if (h.overflow) return h;
15755
15755
  if (h.match) return {
@@ -15842,7 +15842,7 @@ function nm(e, t) {
15842
15842
  }
15843
15843
  return (t === "string" ? String : Number)(e);
15844
15844
  }
15845
- var sa = "9", am = ur(sa, 15), im = /[- ]/, Mr = !0, om = Mr && function() {
15845
+ var da = "9", am = ur(da, 15), im = /[- ]/, Mr = !0, om = Mr && function() {
15846
15846
  return /\[([^\[\]])*\]/g;
15847
15847
  }, sm = Mr && function() {
15848
15848
  return /\d(?=[^,}][^,}])/g;
@@ -15990,7 +15990,7 @@ var sa = "9", am = ur(sa, 15), im = /[- ]/, Mr = !0, om = Mr && function() {
15990
15990
  Mr && (d = d.replace(om(), "\\d").replace(sm(), "\\d"));
15991
15991
  var l = am.match(d)[0];
15992
15992
  if (!(a.length > l.length)) {
15993
- var c = new RegExp("^" + d + "$"), f = a.replace(/\d/g, sa);
15993
+ var c = new RegExp("^" + d + "$"), f = a.replace(/\d/g, da);
15994
15994
  c.test(f) && (l = f);
15995
15995
  var h = this.getFormatFormat(r, i), m;
15996
15996
  if (this.shouldTryNationalPrefixFormattingRule(r, {
@@ -16002,7 +16002,7 @@ var sa = "9", am = ur(sa, 15), im = /[- ]/, Mr = !0, om = Mr && function() {
16002
16002
  for (var v = o.length; v > 0; )
16003
16003
  h = h.replace(/\d/, "x"), v--;
16004
16004
  }
16005
- var b = l.replace(new RegExp(d), h).replace(new RegExp(sa, "g"), "x");
16005
+ var b = l.replace(new RegExp(d), h).replace(new RegExp(da, "g"), "x");
16006
16006
  return m || (s ? b = ur("x", s.length) + " " + b : o && (b = ur("x", o.length) + this.getSeparatorAfterNationalPrefix(r) + b)), i && (b = $d(b)), b;
16007
16007
  }
16008
16008
  }
@@ -16145,7 +16145,7 @@ var bm = "[" + Me + Pe + "]+", $m = new RegExp("^" + bm + "$", "i"), gm = "(?:["
16145
16145
  {
16146
16146
  key: "extractCountryCallingCode",
16147
16147
  value: function(r) {
16148
- var n = Fa("+" + r.getDigitsWithoutInternationalPrefix(), r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), a = n.countryCallingCode, i = n.number;
16148
+ var n = ja("+" + r.getDigitsWithoutInternationalPrefix(), r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), a = n.countryCallingCode, i = n.number;
16149
16149
  if (a)
16150
16150
  return r.setCallingCode(a), r.update({ nationalSignificantNumber: i }), !0;
16151
16151
  }
@@ -16165,7 +16165,7 @@ var bm = "[" + Me + Pe + "]+", $m = new RegExp("^" + bm + "$", "i"), gm = "(?:["
16165
16165
  key: "extractNationalSignificantNumber",
16166
16166
  value: function(r, n) {
16167
16167
  if (this.hasSelectedNumberingPlan) {
16168
- var a = ea(r, this.metadata), i = a.nationalPrefix, o = a.nationalNumber, s = a.carrierCode;
16168
+ var a = ta(r, this.metadata), i = a.nationalPrefix, o = a.nationalNumber, s = a.carrierCode;
16169
16169
  if (o !== r)
16170
16170
  return this.onExtractedNationalNumber(i, s, o, r, n), !0;
16171
16171
  }
@@ -16176,7 +16176,7 @@ var bm = "[" + Me + Pe + "]+", $m = new RegExp("^" + bm + "$", "i"), gm = "(?:["
16176
16176
  value: function(r, n, a) {
16177
16177
  if (!this.hasExtractedNationalSignificantNumber) return this.extractNationalSignificantNumber(r, a);
16178
16178
  if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
16179
- var i = ea(r, this.metadata), o = i.nationalPrefix, s = i.nationalNumber, d = i.carrierCode;
16179
+ var i = ta(r, this.metadata), o = i.nationalPrefix, s = i.nationalNumber, d = i.carrierCode;
16180
16180
  if (s !== n)
16181
16181
  return this.onExtractedNationalNumber(o, d, s, r, a), !0;
16182
16182
  }
@@ -16491,7 +16491,7 @@ var Mo = !1, gt = /* @__PURE__ */ (function() {
16491
16491
  {
16492
16492
  key: "determineTheCountry",
16493
16493
  value: function() {
16494
- this.state.setCountry(Ra(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
16494
+ this.state.setCountry(Fa(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
16495
16495
  nationalNumber: this.state.nationalSignificantNumber,
16496
16496
  metadata: this.metadata
16497
16497
  }));
@@ -16569,12 +16569,12 @@ function ko(e) {
16569
16569
  function Rm(e, t, r) {
16570
16570
  return r || (r = t, t = void 0), new gt(t, r).input(e);
16571
16571
  }
16572
- var kr = /* @__PURE__ */ va(H1(), 1);
16572
+ var kr = /* @__PURE__ */ ya(H1(), 1);
16573
16573
  function Td(e) {
16574
16574
  var t = e.inputFormat, r = e.country, n = e.metadata;
16575
16575
  return t === "NATIONAL_PART_OF_INTERNATIONAL" ? "+".concat(Xe(r, n)) : "";
16576
16576
  }
16577
- function da(e, t) {
16577
+ function la(e, t) {
16578
16578
  return t && (e = e.slice(t.length), e[0] === " " && (e = e.slice(1))), e;
16579
16579
  }
16580
16580
  function Fm(e, t, r) {
@@ -16604,14 +16604,14 @@ var Lm = 8, Bm = "+", Um = [
16604
16604
  "international",
16605
16605
  "withCountryCallingCode"
16606
16606
  ];
16607
- function la() {
16608
- return la = Object.assign ? Object.assign.bind() : function(e) {
16607
+ function ca() {
16608
+ return ca = Object.assign ? Object.assign.bind() : function(e) {
16609
16609
  for (var t = 1; t < arguments.length; t++) {
16610
16610
  var r = arguments[t];
16611
16611
  for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
16612
16612
  }
16613
16613
  return e;
16614
- }, la.apply(this, arguments);
16614
+ }, ca.apply(this, arguments);
16615
16615
  }
16616
16616
  function Vm(e, t) {
16617
16617
  if (e == null) return {};
@@ -16640,7 +16640,7 @@ function zm(e) {
16640
16640
  country: i,
16641
16641
  metadata: d
16642
16642
  }), v = m.input(p + h), b = m.getTemplate();
16643
- return p && (v = da(v, p), b && (b = da(b, p))), {
16643
+ return p && (v = la(v, p), b && (b = la(b, p))), {
16644
16644
  text: v,
16645
16645
  template: b
16646
16646
  };
@@ -16648,7 +16648,7 @@ function zm(e) {
16648
16648
  onKeyDown: a,
16649
16649
  inputFormat: o
16650
16650
  });
16651
- return /* @__PURE__ */ j.createElement(N0, la({}, l, {
16651
+ return /* @__PURE__ */ j.createElement(N0, ca({}, l, {
16652
16652
  ref: n,
16653
16653
  parse: Fm,
16654
16654
  format: c,
@@ -16680,14 +16680,14 @@ var Wm = zm(), Hm = [
16680
16680
  "international",
16681
16681
  "withCountryCallingCode"
16682
16682
  ];
16683
- function ca() {
16684
- return ca = Object.assign ? Object.assign.bind() : function(e) {
16683
+ function ua() {
16684
+ return ua = Object.assign ? Object.assign.bind() : function(e) {
16685
16685
  for (var t = 1; t < arguments.length; t++) {
16686
16686
  var r = arguments[t];
16687
16687
  for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
16688
16688
  }
16689
16689
  return e;
16690
- }, ca.apply(this, arguments);
16690
+ }, ua.apply(this, arguments);
16691
16691
  }
16692
16692
  function qm(e, t) {
16693
16693
  if (e == null) return {};
@@ -16715,7 +16715,7 @@ function Ym(e) {
16715
16715
  country: s,
16716
16716
  metadata: c
16717
16717
  }), v = Ue(function($) {
16718
- var y = na($.target.value);
16718
+ var y = aa($.target.value);
16719
16719
  y === a && Do(p, y, s, c).indexOf($.target.value) === 0 && (y = y.slice(0, -1)), i(y);
16720
16720
  }, [
16721
16721
  p,
@@ -16727,7 +16727,7 @@ function Ym(e) {
16727
16727
  onKeyDown: o,
16728
16728
  inputFormat: d
16729
16729
  });
16730
- return /* @__PURE__ */ j.createElement(h, ca({}, m, {
16730
+ return /* @__PURE__ */ j.createElement(h, ua({}, m, {
16731
16731
  ref: n,
16732
16732
  value: Do(p, a, s, c),
16733
16733
  onChange: v,
@@ -16751,7 +16751,7 @@ function Ym(e) {
16751
16751
  }
16752
16752
  var Zm = Ym();
16753
16753
  function Do(e, t, r, n) {
16754
- return da(Rm(e + t, r, n), e);
16754
+ return la(Rm(e + t, r, n), e);
16755
16755
  }
16756
16756
  function Xm(e) {
16757
16757
  return Ro(e[0]) + Ro(e[1]);
@@ -16908,14 +16908,14 @@ var oh = [
16908
16908
  "flags",
16909
16909
  "flagUrl"
16910
16910
  ];
16911
- function ua() {
16912
- return ua = Object.assign ? Object.assign.bind() : function(e) {
16911
+ function fa() {
16912
+ return fa = Object.assign ? Object.assign.bind() : function(e) {
16913
16913
  for (var t = 1; t < arguments.length; t++) {
16914
16914
  var r = arguments[t];
16915
16915
  for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
16916
16916
  }
16917
16917
  return e;
16918
- }, ua.apply(this, arguments);
16918
+ }, fa.apply(this, arguments);
16919
16919
  }
16920
16920
  function sh(e, t) {
16921
16921
  if (e == null) return {};
@@ -16934,15 +16934,15 @@ function dh(e, t) {
16934
16934
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
16935
16935
  return r;
16936
16936
  }
16937
- function La(e) {
16937
+ function Ba(e) {
16938
16938
  var t = e.country, r = e.countryName, n = e.flags, a = e.flagUrl, i = sh(e, oh);
16939
- return n && n[t] ? n[t]({ title: r }) : /* @__PURE__ */ j.createElement("img", ua({}, i, {
16939
+ return n && n[t] ? n[t]({ title: r }) : /* @__PURE__ */ j.createElement("img", fa({}, i, {
16940
16940
  alt: r,
16941
16941
  role: r ? void 0 : "presentation",
16942
16942
  src: a.replace("{XX}", t).replace("{xx}", t.toLowerCase())
16943
16943
  }));
16944
16944
  }
16945
- La.propTypes = {
16945
+ Ba.propTypes = {
16946
16946
  country: _.default.string.isRequired,
16947
16947
  countryName: _.default.string.isRequired,
16948
16948
  flags: _.default.objectOf(_.default.elementType),
@@ -16958,7 +16958,7 @@ function Rr() {
16958
16958
  return e;
16959
16959
  }, Rr.apply(this, arguments);
16960
16960
  }
16961
- function Ba(e, t) {
16961
+ function Ua(e, t) {
16962
16962
  if (e == null) return {};
16963
16963
  var r = fh(e, t), n, a;
16964
16964
  if (Object.getOwnPropertySymbols) {
@@ -16976,7 +16976,7 @@ function fh(e, t) {
16976
16976
  return r;
16977
16977
  }
16978
16978
  function dn(e) {
16979
- var t = e.aspectRatio, r = Ba(e, lh);
16979
+ var t = e.aspectRatio, r = Ua(e, lh);
16980
16980
  return t === 1 ? /* @__PURE__ */ j.createElement(Fd, r) : /* @__PURE__ */ j.createElement(Rd, r);
16981
16981
  }
16982
16982
  dn.propTypes = {
@@ -16984,7 +16984,7 @@ dn.propTypes = {
16984
16984
  aspectRatio: _.default.number
16985
16985
  };
16986
16986
  function Rd(e) {
16987
- var t = e.title, r = Ba(e, ch);
16987
+ var t = e.title, r = Ua(e, ch);
16988
16988
  return /* @__PURE__ */ j.createElement("svg", Rr({}, r, {
16989
16989
  xmlns: "http://www.w3.org/2000/svg",
16990
16990
  viewBox: "0 0 75 50"
@@ -17022,7 +17022,7 @@ function Rd(e) {
17022
17022
  }
17023
17023
  Rd.propTypes = { title: _.default.string.isRequired };
17024
17024
  function Fd(e) {
17025
- var t = e.title, r = Ba(e, uh);
17025
+ var t = e.title, r = Ua(e, uh);
17026
17026
  return /* @__PURE__ */ j.createElement("svg", Rr({}, r, {
17027
17027
  xmlns: "http://www.w3.org/2000/svg",
17028
17028
  viewBox: "0 0 50 50"
@@ -17136,14 +17136,14 @@ var bh = [
17136
17136
  "label",
17137
17137
  "aspectRatio"
17138
17138
  ];
17139
- function fa() {
17140
- return fa = Object.assign ? Object.assign.bind() : function(e) {
17139
+ function pa() {
17140
+ return pa = Object.assign ? Object.assign.bind() : function(e) {
17141
17141
  for (var t = 1; t < arguments.length; t++) {
17142
17142
  var r = arguments[t];
17143
17143
  for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
17144
17144
  }
17145
17145
  return e;
17146
- }, fa.apply(this, arguments);
17146
+ }, pa.apply(this, arguments);
17147
17147
  }
17148
17148
  function $h(e, t) {
17149
17149
  if (e == null) return {};
@@ -17166,7 +17166,7 @@ function Bd(e) {
17166
17166
  var t = e.flags, r = e.flagUrl, n = e.flagComponent, a = e.internationalIcon;
17167
17167
  function i(o) {
17168
17168
  var s = o.country, d = o.label, l = o.aspectRatio, c = $h(o, bh), f = a === dn ? l : void 0;
17169
- return /* @__PURE__ */ j.createElement("div", fa({}, c, { className: (0, kr.default)("PhoneInputCountryIcon", {
17169
+ return /* @__PURE__ */ j.createElement("div", pa({}, c, { className: (0, kr.default)("PhoneInputCountryIcon", {
17170
17170
  "PhoneInputCountryIcon--square": f === 1,
17171
17171
  "PhoneInputCountryIcon--border": s
17172
17172
  }) }), s ? /* @__PURE__ */ j.createElement(n, {
@@ -17189,7 +17189,7 @@ function Bd(e) {
17189
17189
  }
17190
17190
  var Fv = Bd({
17191
17191
  flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
17192
- flagComponent: La,
17192
+ flagComponent: Ba,
17193
17193
  internationalIcon: dn
17194
17194
  });
17195
17195
  function Nh(e, t) {
@@ -17640,12 +17640,12 @@ function qh(e, t) {
17640
17640
  value: e,
17641
17641
  writable: !0,
17642
17642
  configurable: !0
17643
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && pa(e, t);
17643
+ } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ma(e, t);
17644
17644
  }
17645
- function pa(e, t) {
17646
- return pa = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, a) {
17645
+ function ma(e, t) {
17646
+ return ma = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, a) {
17647
17647
  return n.__proto__ = a, n;
17648
- }, pa(e, t);
17648
+ }, ma(e, t);
17649
17649
  }
17650
17650
  function Ae(e, t, r) {
17651
17651
  return t = Yd(t), t in e ? Object.defineProperty(e, t, {
@@ -17923,7 +17923,7 @@ Zd.propTypes = {
17923
17923
  var Wo = {
17924
17924
  autoComplete: "tel",
17925
17925
  countrySelectComponent: kd,
17926
- flagComponent: La,
17926
+ flagComponent: Ba,
17927
17927
  flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
17928
17928
  internationalIcon: dn,
17929
17929
  inputComponent: "input",
@@ -18207,14 +18207,14 @@ var Jh = {
18207
18207
  ZW: "Zimbabwe",
18208
18208
  ZZ: "International"
18209
18209
  }, Qh = ["metadata", "labels"];
18210
- function ma() {
18211
- return ma = Object.assign ? Object.assign.bind() : function(e) {
18210
+ function ha() {
18211
+ return ha = Object.assign ? Object.assign.bind() : function(e) {
18212
18212
  for (var t = 1; t < arguments.length; t++) {
18213
18213
  var r = arguments[t];
18214
18214
  for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
18215
18215
  }
18216
18216
  return e;
18217
- }, ma.apply(this, arguments);
18217
+ }, ha.apply(this, arguments);
18218
18218
  }
18219
18219
  function ev(e, t) {
18220
18220
  if (e == null) return {};
@@ -18236,7 +18236,7 @@ function tv(e, t) {
18236
18236
  function Xd(e) {
18237
18237
  var t = /* @__PURE__ */ j.forwardRef(function(r, n) {
18238
18238
  var a = r.metadata, i = a === void 0 ? e : a, o = r.labels, s = o === void 0 ? Jh : o, d = ev(r, Qh);
18239
- return /* @__PURE__ */ j.createElement(Zd, ma({}, d, {
18239
+ return /* @__PURE__ */ j.createElement(Zd, ha({}, d, {
18240
18240
  ref: n,
18241
18241
  metadata: i,
18242
18242
  labels: s
@@ -18253,7 +18253,7 @@ function rv(e, t) {
18253
18253
  return r.push(ld), e.apply(this, r);
18254
18254
  }
18255
18255
  var nv = Xd(ld);
18256
- function kn() {
18256
+ function Dn() {
18257
18257
  return rv(w2, arguments);
18258
18258
  }
18259
18259
  var av = [
@@ -18282,7 +18282,7 @@ var av = [
18282
18282
  return +`${t}${r}`;
18283
18283
  };
18284
18284
  function dv() {
18285
- const e = ze(), { tenantId: t, id: r } = J((w) => w.barber.outletDetails), { timeZone: n, image: a, outletName: i, address: o } = J((w) => w.barber.outletDetails), { staff: s, selectedServices: d, selectedProfessional: l } = J((w) => w.barber.service), { selectedSlotIds: c, selectedDate: f, selectedTime: h } = J((w) => w.barber.slots), { userDetails: m, bookingMode: p, tipPct: v } = J((w) => w.barber.appointment), b = Array.isArray(d) ? d : [d], { selectedSlotIndexes: $, slots: y } = J((w) => w.barber.slots), [S, P] = Z(!1), [O, N] = Z(!1), [T, D] = Z(null), [H, X] = Z("person"), [ae, ce] = Z(!1), [ue, ye] = Z(""), [Ce, me] = Z(""), [fe, se] = Z(null), [Q, he] = Z(null), [x, C] = Z({}), [E, k] = Z({}), [U, R] = Z(!1), q = De(!1), V = De(""), G = ve.now().setZone(n ?? "UTC"), [z, W] = Z(null), [K, A] = Z(!1), M = De(""), F = De(null), { register: pe, handleSubmit: He, control: Nt, watch: Ht, reset: cn, trigger: Ua, setValue: Ct, formState: { errors: qe, isSubmitted: Va, isSubmitting: Jd } } = ha({
18285
+ const e = ze(), { tenantId: t, id: r } = J((w) => w.barber.outletDetails), { timeZone: n, image: a, outletName: i, address: o } = J((w) => w.barber.outletDetails), { staff: s, selectedServices: d, selectedProfessional: l } = J((w) => w.barber.service), { selectedSlotIds: c, selectedDate: f, selectedTime: h } = J((w) => w.barber.slots), { userDetails: m, bookingMode: p, tipPct: v } = J((w) => w.barber.appointment), b = Array.isArray(d) ? d : [d], { selectedSlotIndexes: $, slots: y } = J((w) => w.barber.slots), [S, P] = Z(!1), [O, N] = Z(!1), [T, D] = Z(null), [H, X] = Z("person"), [ae, ce] = Z(!1), [ue, ye] = Z(""), [Ce, me] = Z(""), [fe, se] = Z(null), [Q, he] = Z(null), [x, C] = Z({}), [E, k] = Z({}), [U, R] = Z(!1), q = De(!1), V = De(""), G = ve.now().setZone(n ?? "UTC"), [z, W] = Z(null), [K, A] = Z(!1), M = De(""), F = De(null), { register: pe, handleSubmit: He, control: Nt, watch: Ht, reset: cn, trigger: Va, setValue: Ct, formState: { errors: qe, isSubmitted: Ga, isSubmitting: Jd } } = va({
18286
18286
  defaultValues: {
18287
18287
  firstName: m?.firstName || "",
18288
18288
  lastName: m?.lastName || "",
@@ -18309,19 +18309,21 @@ function dv() {
18309
18309
  ...y?.evening ?? []
18310
18310
  ], el = mn.reduce((w, I) => w + Number(I.duration ?? 0), 0), tl = Math.ceil(el / iv), rl = (w) => {
18311
18311
  if (!hn.length) return "";
18312
- const I = hn[w]?.start_time, L = hn[w + tl - 1];
18313
- return !I || !L ? "" : `${I} - ${L.end_time ?? L.start_time}`;
18314
- }, Ga = {
18312
+ const I = hn[w]?.start_time_12h, L = hn[w + tl - 1];
18313
+ return !I || !L ? "" : `${I} - ${L.end_time_12h ?? L.start_time_12h}`;
18314
+ }, za = {
18315
18315
  day: Number(f?.day ?? G.day),
18316
18316
  month: Number(f?.month ?? G.month),
18317
18317
  year: Number(f?.year ?? G.year)
18318
- }, za = $?.[0], Wa = za !== void 0 ? rl(za) : null, nl = Wa ? `${av[Ga.month - 1]} ${Ga.day} at ${Wa}` : null, vn = mn.reduce((w, I) => w + Number(I.price) * (I.qty ?? 1), 0), Ha = mn.reduce((w, I) => w + I.tax, 0), al = Math.round(Ha * 100), qa = vn * v / 100, il = Math.round(qa * 100), Ka = vn + qa + Ha, Ie = ge(() => b.filter((w) => !(!Ys(w) || (w?.consent_rule?.enforcementMode ?? w?.enforcementMode) === "FIXED")), [b]), ol = ge(() => Ie.map((w) => String(w.id)).filter(Boolean), [Ie]), sl = (w) => {
18318
+ }, vn = $?.[0];
18319
+ console.log("------selectedStartIndex---", vn);
18320
+ const Wa = vn !== void 0 ? rl(vn) : null, nl = Wa ? `${av[za.month - 1]} ${za.day} at ${Wa}` : null, yn = mn.reduce((w, I) => w + Number(I.price) * (I.qty ?? 1), 0), Ha = mn.reduce((w, I) => w + I.tax, 0), al = Math.round(Ha * 100), qa = yn * v / 100, il = Math.round(qa * 100), Ka = yn + qa + Ha, Ie = ge(() => b.filter((w) => !(!Ys(w) || (w?.consent_rule?.enforcementMode ?? w?.enforcementMode) === "FIXED")), [b]), ol = ge(() => Ie.map((w) => String(w.id)).filter(Boolean), [Ie]), sl = (w) => {
18319
18321
  const I = w?.consent_template ?? w?.consentTemplate ?? null;
18320
18322
  return {
18321
18323
  heading: String(I?.heading ?? "").trim(),
18322
18324
  consent: String(I?.consent ?? "").trim()
18323
18325
  };
18324
- }, yn = (w) => {
18326
+ }, bn = (w) => {
18325
18327
  C((I) => ({
18326
18328
  ...I,
18327
18329
  [String(w)]: !0
@@ -18338,18 +18340,18 @@ function dv() {
18338
18340
  keepDirty: !1
18339
18341
  });
18340
18342
  }, [m, cn]), de(() => {
18341
- Va && Ua(["phone", "email"]);
18343
+ Ga && Va(["phone", "email"]);
18342
18344
  }, [
18343
18345
  un,
18344
18346
  fn,
18345
- Va,
18346
- Ua
18347
+ Ga,
18348
+ Va
18347
18349
  ]);
18348
18350
  const Ya = Ue(async ({ value: w, type: I }) => {
18349
18351
  if (!w) return;
18350
18352
  let L = "";
18351
18353
  if (I === "phone") {
18352
- if (!kn(w)) return;
18354
+ if (!Dn(w)) return;
18353
18355
  L = pn(w);
18354
18356
  }
18355
18357
  if (I === "email") {
@@ -18363,7 +18365,7 @@ function dv() {
18363
18365
  search: L,
18364
18366
  tenantId: t
18365
18367
  }))?.data?.[0];
18366
- B ? (Ct("firstName", B.first_name || "", { shouldValidate: !0 }), Ct("lastName", B.last_name || ""), B.phone && kn(B.phone) && Ct("phone", B.phone), B.email && Ct("email", B.email), e(wn({
18368
+ B ? (Ct("firstName", B.first_name || "", { shouldValidate: !0 }), Ct("lastName", B.last_name || ""), B.phone && Dn(B.phone) && Ct("phone", B.phone), B.email && Ct("email", B.email), e(_n({
18367
18369
  email: B.email,
18368
18370
  firstName: B.first_name,
18369
18371
  lastName: B.last_name,
@@ -18421,7 +18423,7 @@ function dv() {
18421
18423
  I[B] = { data: {
18422
18424
  checked: !0,
18423
18425
  needsSignature: Oe
18424
- } }, Oe || yn(B);
18426
+ } }, Oe || bn(B);
18425
18427
  }
18426
18428
  k(I);
18427
18429
  } catch (I) {
@@ -18430,7 +18432,7 @@ function dv() {
18430
18432
  R(!1);
18431
18433
  }
18432
18434
  }
18433
- }, bn = ge(() => Ie.filter((w) => {
18435
+ }, $n = ge(() => Ie.filter((w) => {
18434
18436
  const I = String(w.id);
18435
18437
  if (x[I]) return !1;
18436
18438
  const L = E[I];
@@ -18439,7 +18441,7 @@ function dv() {
18439
18441
  Ie,
18440
18442
  x,
18441
18443
  E
18442
- ]), Xa = ol.length, Ja = Xa - bn.length, Qa = bn.length === 0, ei = async () => {
18444
+ ]), Xa = ol.length, Ja = Xa - $n.length, Qa = $n.length === 0, ei = async () => {
18443
18445
  if (!q.current) {
18444
18446
  q.current = !0;
18445
18447
  try {
@@ -18451,9 +18453,9 @@ function dv() {
18451
18453
  re.warn("Please enter Email or Mobile Number before signing consent.");
18452
18454
  return;
18453
18455
  }
18454
- const w = bn[0];
18456
+ const w = $n[0];
18455
18457
  if (!w) {
18456
- await $n();
18458
+ await gn();
18457
18459
  return;
18458
18460
  }
18459
18461
  const I = String(w.id);
@@ -18479,7 +18481,7 @@ function dv() {
18479
18481
  needsSignature: Re
18480
18482
  } }
18481
18483
  })), !Re) {
18482
- yn(I), re.success("Consent already signed for this service."), setTimeout(() => ei(), 250);
18484
+ bn(I), re.success("Consent already signed for this service."), setTimeout(() => ei(), 250);
18483
18485
  return;
18484
18486
  }
18485
18487
  } else k((Oe) => ({
@@ -18533,7 +18535,7 @@ function dv() {
18533
18535
  isChecked: w?.accepted,
18534
18536
  signatureDataUrl: w?.signatureDataUrl,
18535
18537
  emailMe: w?.emailMe
18536
- }), yn(I), ce(!1), V.current = "", re.success("Consent captured.");
18538
+ }), bn(I), ce(!1), V.current = "", re.success("Consent captured.");
18537
18539
  }, pl = () => {
18538
18540
  ce(!1), he(null);
18539
18541
  }, ml = async (w, I, L) => {
@@ -18561,7 +18563,7 @@ function dv() {
18561
18563
  };
18562
18564
  let ti = "";
18563
18565
  f && (ti = `${f?.year}-${String(f?.month).padStart(2, "0")}-${String(f?.day).padStart(2, "0")}`);
18564
- const $n = async (w) => {
18566
+ const gn = async (w) => {
18565
18567
  const I = w || m, L = {
18566
18568
  tenantId: t,
18567
18569
  outletId: r,
@@ -18609,7 +18611,7 @@ function dv() {
18609
18611
  re.error("Select time");
18610
18612
  return;
18611
18613
  }
18612
- e(wn(I)), Ie.length > 0 ? Qa ? await $n(I) : await ei() : await $n(I);
18614
+ e(_n(I)), Ie.length > 0 ? Qa ? await gn(I) : await ei() : await gn(I);
18613
18615
  }, vl = async (w) => {
18614
18616
  const I = {
18615
18617
  ...w,
@@ -18623,7 +18625,7 @@ function dv() {
18623
18625
  re.error("Select time");
18624
18626
  return;
18625
18627
  }
18626
- e(wn(I)), e(tt(!0));
18628
+ e(_n(I)), e(tt(!0));
18627
18629
  }, yl = (w) => {
18628
18630
  const I = w.replace(/\s/g, "");
18629
18631
  return /^4/.test(I) ? "VISA" : /^5[1-5]/.test(I) ? "MASTERCARD" : /^3[47]/.test(I) ? "AMEX" : /^6/.test(I) ? "DISCOVER" : "UNKNOWN";
@@ -18680,10 +18682,10 @@ function dv() {
18680
18682
  }, $l = () => {
18681
18683
  N(!1), re.warning("Appointment booked. Payment was cancelled."), e(Jt(String(T?.appointmentId))), e(Be());
18682
18684
  };
18683
- return /* @__PURE__ */ g(Aa, {
18685
+ return /* @__PURE__ */ g(xa, {
18684
18686
  sidebar: /* @__PURE__ */ u("div", {
18685
18687
  className: "aaravpos-barber-aside",
18686
- children: /* @__PURE__ */ u(xa, {
18688
+ children: /* @__PURE__ */ u(Ma, {
18687
18689
  buttonText: "Book Appointment",
18688
18690
  onButtonClick: He(hl),
18689
18691
  showTip: H === "card",
@@ -18697,7 +18699,7 @@ function dv() {
18697
18699
  })
18698
18700
  }),
18699
18701
  children: [
18700
- /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */ g("div", {
18702
+ /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Aa, {}), /* @__PURE__ */ g("div", {
18701
18703
  className: "aaravpos-barber-margin-top-20",
18702
18704
  children: [
18703
18705
  /* @__PURE__ */ u("h1", {
@@ -18751,7 +18753,7 @@ function dv() {
18751
18753
  }),
18752
18754
  /* @__PURE__ */ g("span", {
18753
18755
  className: "aaravpos-barber-appointment-price",
18754
- children: [/* @__PURE__ */ u(Se, { size: 14 }), vn]
18756
+ children: [/* @__PURE__ */ u(Se, { size: 14 }), yn]
18755
18757
  })
18756
18758
  ]
18757
18759
  }), /* @__PURE__ */ g("div", {
@@ -18799,7 +18801,7 @@ function dv() {
18799
18801
  name: "phone",
18800
18802
  rules: { validate: (w) => {
18801
18803
  const I = pn(w), L = !!I, B = !!fn?.trim();
18802
- return !L && !B ? "Enter phone or email" : L && I.length < 8 ? "Phone number must be minimum 8 digits" : L && I.length > 16 ? "Phone number must be maximum 16 digits" : L && !kn(w) ? "Enter valid phone number" : !0;
18804
+ return !L && !B ? "Enter phone or email" : L && I.length < 8 ? "Phone number must be minimum 8 digits" : L && I.length > 16 ? "Phone number must be maximum 16 digits" : L && !Dn(w) ? "Enter valid phone number" : !0;
18803
18805
  } },
18804
18806
  render: ({ field: w }) => /* @__PURE__ */ g("div", {
18805
18807
  className: "aaravpos-barber-input-wrapper",
@@ -19038,7 +19040,7 @@ function uv({ icon: e, label: t, selected: r, onClick: n }) {
19038
19040
  children: "Payment will be collected at the outlet during your appointment."
19039
19041
  })] }), r && /* @__PURE__ */ u("div", {
19040
19042
  className: "aaravpos-barber-paymentcard-check",
19041
- children: /* @__PURE__ */ u(Ia, { size: 18 })
19043
+ children: /* @__PURE__ */ u(Ta, { size: 18 })
19042
19044
  })]
19043
19045
  })
19044
19046
  })]
@@ -19066,7 +19068,7 @@ function fv() {
19066
19068
  })();
19067
19069
  }, [t]);
19068
19070
  const f = () => {
19069
- Ea.purge(), e({ type: "RESET_ALL" });
19071
+ Ia.purge(), e({ type: "RESET_ALL" });
19070
19072
  };
19071
19073
  if (i) return /* @__PURE__ */ u("div", {
19072
19074
  className: "aaravpos-barber-loading-container",
@@ -19094,7 +19096,7 @@ function fv() {
19094
19096
  children: [
19095
19097
  /* @__PURE__ */ u("div", {
19096
19098
  className: "aaravpos-barber-success-icon success-pulse",
19097
- children: /* @__PURE__ */ u(Ia, {})
19099
+ children: /* @__PURE__ */ u(Ta, {})
19098
19100
  }),
19099
19101
  /* @__PURE__ */ u("h1", {
19100
19102
  className: "aaravpos-barber-success-title",
@@ -19182,7 +19184,7 @@ function fv() {
19182
19184
  n.appointmentDate,
19183
19185
  " at",
19184
19186
  " ",
19185
- n.startTime
19187
+ n.start_time_12h
19186
19188
  ]
19187
19189
  })]
19188
19190
  }),