@aaravpos/appointment-booking-plugin 4.0.9 → 5.0.0

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 +12 -12
  2. package/dist/index.js +141 -134
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -147,7 +147,7 @@ var os = /* @__PURE__ */ Symbol.for("immer-nothing"), ui = /* @__PURE__ */ Symbo
147
147
  ] : [];
148
148
  function Pe(e, ...t) {
149
149
  if (process.env.NODE_ENV !== "production") {
150
- const r = uc[e], n = Ze(r) ? r.apply(null, t) : r;
150
+ const r = uc[e], n = Xe(r) ? r.apply(null, t) : r;
151
151
  throw new Error(`[Immer] ${n}`);
152
152
  }
153
153
  throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
@@ -163,7 +163,7 @@ function ss(e) {
163
163
  if (t === null || t === Ee[Wr]) return !0;
164
164
  const r = Ee.hasOwnProperty.call(t, gr) && t[gr];
165
165
  if (r === Object) return !0;
166
- if (!Ze(r)) return !1;
166
+ if (!Xe(r)) return !1;
167
167
  let n = fi.get(r);
168
168
  return n === void 0 && (n = Function.toString.call(r), fi.set(r, n)), n === fc;
169
169
  }
@@ -185,7 +185,7 @@ var pi = (e, t, r = Ht(e)) => r === 2 ? e.has(t) : Ee[Wr].hasOwnProperty.call(e,
185
185
  function mc(e, t) {
186
186
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
187
187
  }
188
- var Hr = Array.isArray, Kr = (e) => e instanceof Map, Yr = (e) => e instanceof Set, Ca = (e) => typeof e == "object", Ze = (e) => typeof e == "function", Pn = (e) => typeof e == "boolean";
188
+ var Hr = Array.isArray, Kr = (e) => e instanceof Map, Yr = (e) => e instanceof Set, Ca = (e) => typeof e == "object", Xe = (e) => typeof e == "function", Pn = (e) => typeof e == "boolean";
189
189
  function hc(e) {
190
190
  const t = +e;
191
191
  return Number.isInteger(t) && String(t) === e;
@@ -235,7 +235,7 @@ function Xr(e) {
235
235
  return e === null || !Ca(e) ? !0 : Ee.isFrozen(e);
236
236
  }
237
237
  var Cr = "MapSet", Gn = "Patches", mi = "ArrayMethods", ds = {};
238
- function et(e) {
238
+ function tt(e) {
239
239
  const t = ds[e];
240
240
  return t || Pe(0, e), t;
241
241
  }
@@ -247,11 +247,11 @@ var hi = (e) => !!ds[e], At, ls = () => At, yc = (e, t) => ({
247
247
  unfinalizedDrafts_: 0,
248
248
  handledSet_: /* @__PURE__ */ new Set(),
249
249
  processedForPatches_: /* @__PURE__ */ new Set(),
250
- mapSetPlugin_: hi(Cr) ? et(Cr) : void 0,
251
- arrayMethodsPlugin_: hi(mi) ? et(mi) : void 0
250
+ mapSetPlugin_: hi(Cr) ? tt(Cr) : void 0,
251
+ arrayMethodsPlugin_: hi(mi) ? tt(mi) : void 0
252
252
  });
253
253
  function vi(e, t) {
254
- t && (e.patchPlugin_ = et(Gn), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
254
+ t && (e.patchPlugin_ = tt(Gn), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
255
255
  }
256
256
  function Wn(e) {
257
257
  qn(e), e.drafts_.forEach($c), e.drafts_ = null;
@@ -469,7 +469,7 @@ function ur(e) {
469
469
  var wc = class {
470
470
  constructor(e) {
471
471
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (t, r, n) => {
472
- if (Ze(t) && !Ze(r)) {
472
+ if (Xe(t) && !Xe(r)) {
473
473
  const i = r;
474
474
  r = t;
475
475
  const o = this;
@@ -477,7 +477,7 @@ var wc = class {
477
477
  return o.produce(l, (u) => r.call(this, u, ...c));
478
478
  };
479
479
  }
480
- Ze(r) || Pe(6), n !== void 0 && !Ze(n) && Pe(7);
480
+ Xe(r) || Pe(6), n !== void 0 && !Xe(n) && Pe(7);
481
481
  let a;
482
482
  if (Re(t)) {
483
483
  const i = yi(this), o = Kn(i, t, void 0);
@@ -491,7 +491,7 @@ var wc = class {
491
491
  } else if (!t || !Ca(t)) {
492
492
  if (a = r(t), a === void 0 && (a = t), a === os && (a = void 0), this.autoFreeze_ && Zr(a, !0), n) {
493
493
  const i = [], o = [];
494
- et(Gn).generateReplacementPatches_(t, a, {
494
+ tt(Gn).generateReplacementPatches_(t, a, {
495
495
  patches_: i,
496
496
  inversePatches_: o
497
497
  }), n(i, o);
@@ -499,7 +499,7 @@ var wc = class {
499
499
  return a;
500
500
  } else Pe(1, t);
501
501
  }, this.produceWithPatches = (t, r) => {
502
- if (Ze(t)) return (i, ...o) => this.produceWithPatches(i, (s) => t(s, ...o));
502
+ if (Xe(t)) return (i, ...o) => this.produceWithPatches(i, (s) => t(s, ...o));
503
503
  let n, a;
504
504
  return [
505
505
  this.produce(t, r, (i, o) => {
@@ -543,12 +543,12 @@ var wc = class {
543
543
  }
544
544
  }
545
545
  r > -1 && (t = t.slice(r + 1));
546
- const n = et(Gn).applyPatches_;
546
+ const n = tt(Gn).applyPatches_;
547
547
  return _e(e) ? n(e, t) : this.produce(e, (a) => n(a, t));
548
548
  }
549
549
  };
550
550
  function Kn(e, t, r, n) {
551
- const [a, i] = Kr(t) ? et(Cr).proxyMap_(t, r) : Yr(t) ? et(Cr).proxySet_(t, r) : Sc(t, r);
551
+ const [a, i] = Kr(t) ? tt(Cr).proxyMap_(t, r) : Yr(t) ? tt(Cr).proxySet_(t, r) : Sc(t, r);
552
552
  return (r?.scope_ ?? ls()).drafts_.push(a), i.callbacks_ = r?.callbacks_ ?? [], i.key_ = n, r && n !== void 0 ? Nc(r, i, n) : i.callbacks_.push(function(s) {
553
553
  s.mapSetPlugin_?.fixSetContents(i);
554
554
  const { patchPlugin_: l } = s;
@@ -865,7 +865,7 @@ var Gc = vs(), Wc = vs, Yn = /* @__PURE__ */ ic({
865
865
  createSelector: () => zc,
866
866
  createSelectorCreator: () => Pa,
867
867
  createSerializableStateInvariantMiddleware: () => Is,
868
- createSlice: () => We,
868
+ createSlice: () => qe,
869
869
  current: () => Qr,
870
870
  findNonSerializableValue: () => _r,
871
871
  formatProdErrorMessage: () => Y,
@@ -983,7 +983,7 @@ function Si(e) {
983
983
  return Re(e) ? en(e, () => {
984
984
  }) : e;
985
985
  }
986
- function Xe(e, t, r) {
986
+ function Je(e, t, r) {
987
987
  return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
988
988
  }
989
989
  function Ps(e) {
@@ -1528,15 +1528,15 @@ function zs({ creators: e } = {}) {
1528
1528
  function C(E) {
1529
1529
  let D = E[S];
1530
1530
  if (typeof D > "u") {
1531
- if (P) D = Xe(v, C, b);
1531
+ if (P) D = Je(v, C, b);
1532
1532
  else if (process.env.NODE_ENV !== "production") throw new Error(process.env.NODE_ENV === "production" ? Y(15) : "selectSlice returned undefined for an uninjected slice reducer");
1533
1533
  }
1534
1534
  return D;
1535
1535
  }
1536
1536
  function N(E = p) {
1537
- return Xe(Xe(f, P, () => /* @__PURE__ */ new WeakMap()), E, () => {
1537
+ return Je(Je(f, P, () => /* @__PURE__ */ new WeakMap()), E, () => {
1538
1538
  const D = {};
1539
- for (const [Z, J] of Object.entries(n.selectors ?? {})) D[Z] = ou(J, E, () => Xe(v, E, b), P);
1539
+ for (const [Z, J] of Object.entries(n.selectors ?? {})) D[Z] = ou(J, E, () => Je(v, E, b), P);
1540
1540
  return D;
1541
1541
  });
1542
1542
  }
@@ -1581,7 +1581,7 @@ function ou(e, t, r, n) {
1581
1581
  }
1582
1582
  return a.unwrapped = e, a;
1583
1583
  }
1584
- var We = /* @__PURE__ */ zs();
1584
+ var qe = /* @__PURE__ */ zs();
1585
1585
  function su() {
1586
1586
  function e(t, r) {
1587
1587
  return {
@@ -1688,14 +1688,14 @@ function st(e, t) {
1688
1688
  const r = t(e);
1689
1689
  return process.env.NODE_ENV !== "production" && r === void 0 && console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", e, "The `selectId` implementation:", t.toString()), r;
1690
1690
  }
1691
- function Ge(e) {
1691
+ function We(e) {
1692
1692
  return Array.isArray(e) || (e = Object.values(e)), e;
1693
1693
  }
1694
1694
  function fr(e) {
1695
1695
  return _e(e) ? Qr(e) : e;
1696
1696
  }
1697
1697
  function Gs(e, t, r) {
1698
- e = Ge(e);
1698
+ e = We(e);
1699
1699
  const n = fr(r.ids), a = new Set(n), i = [], o = /* @__PURE__ */ new Set([]), s = [];
1700
1700
  for (const l of e) {
1701
1701
  const c = st(l, t);
@@ -1716,7 +1716,7 @@ function Ws(e) {
1716
1716
  b in y.entities || (y.ids.push(b), y.entities[b] = m);
1717
1717
  }
1718
1718
  function r(m, y) {
1719
- m = Ge(m);
1719
+ m = We(m);
1720
1720
  for (const b of m) t(b, y);
1721
1721
  }
1722
1722
  function n(m, y) {
@@ -1724,11 +1724,11 @@ function Ws(e) {
1724
1724
  b in y.entities || y.ids.push(b), y.entities[b] = m;
1725
1725
  }
1726
1726
  function a(m, y) {
1727
- m = Ge(m);
1727
+ m = We(m);
1728
1728
  for (const b of m) n(b, y);
1729
1729
  }
1730
1730
  function i(m, y) {
1731
- m = Ge(m), y.ids = [], y.entities = {}, r(m, y);
1731
+ m = We(m), y.ids = [], y.entities = {}, r(m, y);
1732
1732
  }
1733
1733
  function o(m, y) {
1734
1734
  return s([m], y);
@@ -1807,7 +1807,7 @@ function gu(e, t) {
1807
1807
  return o([b], $);
1808
1808
  }
1809
1809
  function o(b, $, g) {
1810
- b = Ge(b);
1810
+ b = We(b);
1811
1811
  const S = new Set(g ?? fr($.ids)), P = /* @__PURE__ */ new Set(), C = b.filter((N) => {
1812
1812
  const E = st(N, e), D = !P.has(E);
1813
1813
  return D && P.add(E), !S.has(E) && D;
@@ -1819,16 +1819,16 @@ function gu(e, t) {
1819
1819
  }
1820
1820
  function l(b, $) {
1821
1821
  let g = {};
1822
- if (b = Ge(b), b.length !== 0) {
1822
+ if (b = We(b), b.length !== 0) {
1823
1823
  for (const S of b) {
1824
1824
  const P = e(S);
1825
1825
  g[P] = S, delete $.entities[P];
1826
1826
  }
1827
- b = Ge(g), y($, b);
1827
+ b = We(g), y($, b);
1828
1828
  }
1829
1829
  }
1830
1830
  function c(b, $) {
1831
- b = Ge(b), $.entities = {}, $.ids = [], o(b, $, []);
1831
+ b = We(b), $.entities = {}, $.ids = [], o(b, $, []);
1832
1832
  }
1833
1833
  function u(b, $) {
1834
1834
  return p([b], $);
@@ -1916,7 +1916,7 @@ var Nu = "task", qs = "listener", Hs = "completed", Ea = "cancelled", Cu = `task
1916
1916
  }, Ia = (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
  }, Ir = () => {
1919
- }, Ks = (e, t = Ir) => (e.catch(t), e), Ys = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), Je = (e) => {
1919
+ }, Ks = (e, t = Ir) => (e.catch(t), e), Ys = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), Qe = (e) => {
1920
1920
  if (e.aborted) throw new Zt(e.reason);
1921
1921
  };
1922
1922
  function Zs(e, t) {
@@ -1946,7 +1946,7 @@ var wu = async (e, t) => {
1946
1946
  } finally {
1947
1947
  t?.();
1948
1948
  }
1949
- }, Tr = (e) => (t) => Ks(Zs(e, t).then((r) => (Je(e), r))), Xs = (e) => {
1949
+ }, Tr = (e) => (t) => Ks(Zs(e, t).then((r) => (Qe(e), r))), Xs = (e) => {
1950
1950
  const t = Tr(e);
1951
1951
  return (r) => t(new Promise((n) => setTimeout(n, r)));
1952
1952
  }, { assign: lt } = Object, Oi = {}, Xt = "listenerMiddleware", _u = (e, t) => {
@@ -1956,13 +1956,13 @@ var wu = async (e, t) => {
1956
1956
  const i = new AbortController();
1957
1957
  r(i);
1958
1958
  const o = wu(async () => {
1959
- Je(e), Je(i.signal);
1959
+ Qe(e), Qe(i.signal);
1960
1960
  const s = await n({
1961
1961
  pause: Tr(i.signal),
1962
1962
  delay: Xs(i.signal),
1963
1963
  signal: i.signal
1964
1964
  });
1965
- return Je(i.signal), s;
1965
+ return Qe(i.signal), s;
1966
1966
  }, () => i.abort(Su));
1967
1967
  return a?.autoJoin && t.push(o.catch(Ir)), {
1968
1968
  result: Tr(e)(o),
@@ -1973,7 +1973,7 @@ var wu = async (e, t) => {
1973
1973
  };
1974
1974
  }, Ou = (e, t) => {
1975
1975
  const r = async (n, a) => {
1976
- Je(t);
1976
+ Qe(t);
1977
1977
  let i = () => {
1978
1978
  };
1979
1979
  const o = [new Promise((s, l) => {
@@ -1994,7 +1994,7 @@ var wu = async (e, t) => {
1994
1994
  a != null && o.push(new Promise((s) => setTimeout(s, a, null)));
1995
1995
  try {
1996
1996
  const s = await Zs(t, Promise.race(o));
1997
- return Je(t), s;
1997
+ return Qe(t), s;
1998
1998
  } finally {
1999
1999
  i();
2000
2000
  }
@@ -2088,7 +2088,7 @@ var wu = async (e, t) => {
2088
2088
  $.abort(Zn), v.pending.delete($);
2089
2089
  },
2090
2090
  throwIfCancelled: () => {
2091
- Je($.signal);
2091
+ Qe($.signal);
2092
2092
  }
2093
2093
  })));
2094
2094
  } catch (P) {
@@ -2143,16 +2143,16 @@ var wu = async (e, t) => {
2143
2143
  meta: { instanceId: e }
2144
2144
  })), { withTypes: () => r }), n = Object.assign(function(...l) {
2145
2145
  l.forEach((c) => {
2146
- Xe(t, c, Au);
2146
+ Je(t, c, Au);
2147
2147
  });
2148
- }, { withTypes: () => n }), a = (s) => yr(...Array.from(t.values()).map((l) => Xe(l.applied, s, l.middleware))), i = Or(r, xu(e));
2148
+ }, { withTypes: () => n }), a = (s) => yr(...Array.from(t.values()).map((l) => Je(l.applied, s, l.middleware))), i = Or(r, xu(e));
2149
2149
  return {
2150
2150
  middleware: (s) => (l) => (c) => i(c) ? (n(...c.payload), s.dispatch) : a(s)(l)(c),
2151
2151
  addMiddleware: n,
2152
2152
  withMiddleware: r,
2153
2153
  instanceId: e
2154
2154
  };
2155
- }, Mu = (e) => "reducerPath" in e && typeof e.reducerPath == "string", Du = (e) => e.flatMap((t) => Mu(t) ? [[t.reducerPath, t.reducer]] : Object.entries(t)), xa = /* @__PURE__ */ Symbol.for("rtk-state-proxy-original"), Ru = (e) => !!e && !!e[xa], Fu = /* @__PURE__ */ new WeakMap(), Lu = (e, t, r) => Xe(Fu, e, () => new Proxy(e, { get: (n, a, i) => {
2155
+ }, Mu = (e) => "reducerPath" in e && typeof e.reducerPath == "string", Du = (e) => e.flatMap((t) => Mu(t) ? [[t.reducerPath, t.reducer]] : Object.entries(t)), xa = /* @__PURE__ */ Symbol.for("rtk-state-proxy-original"), Ru = (e) => !!e && !!e[xa], Fu = /* @__PURE__ */ new WeakMap(), Lu = (e, t, r) => Je(Fu, e, () => new Proxy(e, { get: (n, a, i) => {
2156
2156
  if (a === xa) return n;
2157
2157
  const o = Reflect.get(n, a, i);
2158
2158
  if (typeof o > "u") {
@@ -2257,7 +2257,7 @@ var nr = (e) => e ? [
2257
2257
  currentStep: "services",
2258
2258
  completedSteps: ["services"],
2259
2259
  isOrder: !0
2260
- }, td = We({
2260
+ }, td = qe({
2261
2261
  name: "breadcrumbs",
2262
2262
  initialState: Hu,
2263
2263
  reducers: {
@@ -2307,7 +2307,7 @@ var nr = (e) => e ? [
2307
2307
  isService: !0,
2308
2308
  currency: "",
2309
2309
  token: ""
2310
- }, rd = We({
2310
+ }, rd = qe({
2311
2311
  name: "outletDetails",
2312
2312
  initialState: Ai,
2313
2313
  reducers: {
@@ -2320,7 +2320,7 @@ var nr = (e) => e ? [
2320
2320
  e.token = t.payload;
2321
2321
  }
2322
2322
  }
2323
- }), { clearBooking: Zu, setOutletData: Xu, setOutletToken: Ju } = rd.actions, Qu = rd.reducer, nd = We({
2323
+ }), { clearBooking: Zu, setOutletData: Xu, setOutletToken: Ju } = rd.actions, Qu = rd.reducer, nd = qe({
2324
2324
  name: "service",
2325
2325
  initialState: {
2326
2326
  superCategories: [],
@@ -2361,7 +2361,7 @@ var nr = (e) => e ? [
2361
2361
  e.selectedProfessional = null;
2362
2362
  }
2363
2363
  }
2364
- }), { setServicePayload: ef, setCategory: Kv, toggleService: Ar, clearSelectedServices: xi, clearSelectedProfessional: ki, incrementService: ad, decrementService: xr, toggleProfessional: id } = nd.actions, tf = nd.reducer, ze = "https://prod.aaravpos.com/api/v1", qe = () => ({
2364
+ }), { setServicePayload: ef, setCategory: Kv, toggleService: Ar, clearSelectedServices: xi, clearSelectedProfessional: ki, incrementService: ad, decrementService: xr, toggleProfessional: id } = nd.actions, tf = nd.reducer, ze = "https://prod.aaravpos.com/api/v1", He = () => ({
2365
2365
  "Content-Type": "application/json",
2366
2366
  Authorization: `Bearer ${an.getState()?.booking.outletDetails?.token}`
2367
2367
  }), Mi = async (e, t, r) => {
@@ -2379,14 +2379,14 @@ var nr = (e) => e ? [
2379
2379
  }, rf = async (e, t, r) => {
2380
2380
  const n = await fetch(`${ze}/integration/slot/tenant/${e}/staff/${t}/online?date=${r}`, {
2381
2381
  method: "GET",
2382
- headers: qe()
2382
+ headers: He()
2383
2383
  });
2384
2384
  if (!n.ok) throw new Error("Failed to fetch services");
2385
2385
  return await n.json();
2386
2386
  }, nf = async (e) => {
2387
2387
  const t = await fetch(`${ze}/integration/appointment/create`, {
2388
2388
  method: "POST",
2389
- headers: qe(),
2389
+ headers: He(),
2390
2390
  body: JSON.stringify(e)
2391
2391
  });
2392
2392
  if (!t.ok) throw new Error("Failed to fetch services");
@@ -2394,14 +2394,14 @@ var nr = (e) => e ? [
2394
2394
  }, af = async (e, t) => {
2395
2395
  const r = await fetch(`${ze}/integration/appointment/details?tenantId=${t}&appointmentId=${e}`, {
2396
2396
  method: "GET",
2397
- headers: qe()
2397
+ headers: He()
2398
2398
  });
2399
2399
  if (!r.ok) throw new Error("Failed to fetch appointment details");
2400
2400
  return await r.json();
2401
2401
  }, of = async ({ search: e, tenantId: t }) => {
2402
2402
  const r = await fetch(`${ze}/integration/customer/drop-down/list?tenantId=${t}&search=${encodeURIComponent(e || "")}`, {
2403
2403
  method: "GET",
2404
- headers: qe()
2404
+ headers: He()
2405
2405
  });
2406
2406
  if (!r.ok) throw new Error("Failed to fetch customers");
2407
2407
  return await r.json();
@@ -2409,7 +2409,7 @@ var nr = (e) => e ? [
2409
2409
  try {
2410
2410
  const t = await fetch(`${ze}/payment/pay/customer/direct`, {
2411
2411
  method: "POST",
2412
- headers: qe(),
2412
+ headers: He(),
2413
2413
  body: JSON.stringify(e)
2414
2414
  }), r = await t.json();
2415
2415
  if (!t.ok) throw r;
@@ -2421,7 +2421,7 @@ var nr = (e) => e ? [
2421
2421
  try {
2422
2422
  const t = await fetch(`${ze}/payment/orders/${e}/invoicing/finalize`, {
2423
2423
  method: "POST",
2424
- headers: qe()
2424
+ headers: He()
2425
2425
  }), r = await t.json();
2426
2426
  if (!t.ok) throw r;
2427
2427
  return r;
@@ -2440,7 +2440,7 @@ var nr = (e) => e ? [
2440
2440
  }, Fi = async (e, t, r) => {
2441
2441
  const n = await fetch(`${ze}/concent/check/${e}/${t}?serviceId=${r}`, {
2442
2442
  method: "GET",
2443
- headers: qe()
2443
+ headers: He()
2444
2444
  });
2445
2445
  if (!n.ok) throw new Error("Failed to check consent requirement");
2446
2446
  return n.json();
@@ -2459,12 +2459,12 @@ var nr = (e) => e ? [
2459
2459
  l === "CHECKBOX_ONLY" && (f.isChecked = c ?? !0), u && (f.typedName = u), p && (f.imageUrl = p);
2460
2460
  const v = await fetch(`${ze}/concent/customer-sign`, {
2461
2461
  method: "POST",
2462
- headers: qe(),
2462
+ headers: He(),
2463
2463
  body: JSON.stringify(f)
2464
2464
  }), m = await v.json();
2465
2465
  if (!v.ok) throw m;
2466
2466
  return m;
2467
- }, mr = nn("slots/getStaffSlots", async ({ tenantId: e, staffId: t, date: r }) => await rf(e, t, r)), od = We({
2467
+ }, mr = nn("slots/getStaffSlots", async ({ tenantId: e, staffId: t, date: r }) => await rf(e, t, r)), od = qe({
2468
2468
  name: "slots",
2469
2469
  initialState: {
2470
2470
  selectedSlotIndexes: [],
@@ -2509,7 +2509,7 @@ var nr = (e) => e ? [
2509
2509
  t.loading = !1;
2510
2510
  });
2511
2511
  }
2512
- }), { setSelectedSlots: Li, clearSlots: ct, setSelectedDate: ut, setSelectedTime: ji } = od.actions, cf = od.reducer, sd = We({
2512
+ }), { setSelectedSlots: Li, clearSlots: ct, setSelectedDate: ut, setSelectedTime: ji } = od.actions, cf = od.reducer, sd = qe({
2513
2513
  name: "theme",
2514
2514
  initialState: {
2515
2515
  button: {
@@ -2535,7 +2535,7 @@ var nr = (e) => e ? [
2535
2535
  e.isOpenSidebar = t.payload;
2536
2536
  }
2537
2537
  }
2538
- }), { setTheme: uf, setSidebarOpen: rt } = sd.actions, ff = sd.reducer, hr = nn("appointment/create", async (e, { rejectWithValue: t }) => {
2538
+ }), { setTheme: uf, setSidebarOpen: nt } = sd.actions, ff = sd.reducer, hr = nn("appointment/create", async (e, { rejectWithValue: t }) => {
2539
2539
  try {
2540
2540
  return await nf(e);
2541
2541
  } catch (r) {
@@ -2552,7 +2552,7 @@ var nr = (e) => e ? [
2552
2552
  tipPct: 0,
2553
2553
  bookingMode: "booking",
2554
2554
  payType: "person"
2555
- }, dd = We({
2555
+ }, dd = qe({
2556
2556
  name: "appointment",
2557
2557
  initialState: Bi,
2558
2558
  reducers: {
@@ -2587,7 +2587,7 @@ var nr = (e) => e ? [
2587
2587
  t.loading = !1, t.error = r.payload || "Appointment failed";
2588
2588
  });
2589
2589
  }
2590
- }), { resetAppointment: ft, setBookingMode: Yv, setUserDetails: En, setTips: pf, setAppointmentId: ar, clearUserDetails: mf, setPayType: hf } = dd.actions, vf = dd.reducer, ld = We({
2590
+ }), { resetAppointment: ft, setBookingMode: Yv, setUserDetails: En, setTips: pf, setAppointmentId: ar, clearUserDetails: mf, setPayType: hf } = dd.actions, vf = dd.reducer, ld = qe({
2591
2591
  name: "outletList",
2592
2592
  initialState: { outlets: [] },
2593
2593
  reducers: {
@@ -3032,7 +3032,7 @@ var Pf = (e) => {
3032
3032
  }], ["path", {
3033
3033
  d: "m6 6 12 12",
3034
3034
  key: "d8bk6v"
3035
- }]], He = ee("x", h1), v1 = ({ status: e }) => /* @__PURE__ */ d("span", {
3035
+ }]], Ke = ee("x", h1), v1 = ({ status: e }) => /* @__PURE__ */ d("span", {
3036
3036
  className: `aaravpos-status-badge ${e ? "aaravpos-status-open" : "aaravpos-status-closed"}`,
3037
3037
  children: e ? "Open" : "Closed"
3038
3038
  }), y1 = ({ item: e, onSelect: t, selected: r }) => /* @__PURE__ */ h("div", {
@@ -3096,7 +3096,7 @@ function $1({ outlets: e, onSelectOutlet: t }) {
3096
3096
  children: a && /* @__PURE__ */ d("button", {
3097
3097
  onClick: () => i(""),
3098
3098
  className: "aaravpos-search-clear",
3099
- children: /* @__PURE__ */ d(He, { size: 16 })
3099
+ children: /* @__PURE__ */ d(Ke, { size: 16 })
3100
3100
  })
3101
3101
  })
3102
3102
  ]
@@ -3284,7 +3284,7 @@ function Pt() {
3284
3284
  }),
3285
3285
  !r && /* @__PURE__ */ h("button", {
3286
3286
  className: "aaravpos-cart-btn",
3287
- onClick: () => e(rt(!0)),
3287
+ onClick: () => e(nt(!0)),
3288
3288
  children: [/* @__PURE__ */ d("span", {
3289
3289
  className: "aaravpos-count",
3290
3290
  children: $
@@ -3332,8 +3332,8 @@ var vd = ({ pro: e, selectedStaffServices: t = [], totalPrice: r = 0, totalDurat
3332
3332
  }),
3333
3333
  /* @__PURE__ */ d("button", {
3334
3334
  className: "aaravpos-sidebar-close-btn",
3335
- onClick: () => i(rt(!1)),
3336
- children: /* @__PURE__ */ d(He, { size: 18 })
3335
+ onClick: () => i(nt(!1)),
3336
+ children: /* @__PURE__ */ d(Ke, { size: 18 })
3337
3337
  })
3338
3338
  ]
3339
3339
  }), /* @__PURE__ */ h("div", {
@@ -3716,8 +3716,8 @@ function $d({ selectedServices: e, totalPrice: t, goToStep: r }) {
3716
3716
  }),
3717
3717
  /* @__PURE__ */ d("button", {
3718
3718
  className: "aaravpos-sidebar-close-btn",
3719
- onClick: () => n(rt(!1)),
3720
- children: /* @__PURE__ */ d(He, { size: 18 })
3719
+ onClick: () => n(nt(!1)),
3720
+ children: /* @__PURE__ */ d(Ke, { size: 18 })
3721
3721
  })
3722
3722
  ]
3723
3723
  }), /* @__PURE__ */ h("div", {
@@ -3897,7 +3897,7 @@ function I1() {
3897
3897
  children: p && /* @__PURE__ */ d("button", {
3898
3898
  onClick: () => f(""),
3899
3899
  className: "aaravpos-search-clear",
3900
- children: /* @__PURE__ */ d(He, { size: 16 })
3900
+ children: /* @__PURE__ */ d(Ke, { size: 16 })
3901
3901
  })
3902
3902
  })
3903
3903
  ]
@@ -3954,7 +3954,7 @@ function I1() {
3954
3954
  E && E.qty === 1 ? e(xr(String(C.id))) : e(Ar({
3955
3955
  ...C,
3956
3956
  price: C.price ? Number(C.price) : void 0
3957
- })), window.innerWidth > 991 && e(rt(!0));
3957
+ })), window.innerWidth > 991 && e(nt(!0));
3958
3958
  },
3959
3959
  className: `aaravpos-service-card ${a.some((E) => E.id === C.id) ? "active" : ""}`,
3960
3960
  children: [
@@ -4108,7 +4108,7 @@ function T1() {
4108
4108
  children: p && /* @__PURE__ */ d("button", {
4109
4109
  onClick: () => f(""),
4110
4110
  className: "aaravpos-search-clear",
4111
- children: /* @__PURE__ */ d(He, { size: 16 })
4111
+ children: /* @__PURE__ */ d(Ke, { size: 16 })
4112
4112
  })
4113
4113
  })
4114
4114
  ]
@@ -4162,7 +4162,7 @@ function T1() {
4162
4162
  children: i ? Array.from({ length: 10 }).map((g, S) => /* @__PURE__ */ d(gd, {}, S)) : /* @__PURE__ */ d(X, { children: y?.length ? y?.map((g, S) => /* @__PURE__ */ h("div", {
4163
4163
  onClick: () => {
4164
4164
  const P = a.find((C) => C.id === g.id);
4165
- P && P.qty === 1 ? e(xr(String(g.id))) : e(Ar(g)), window.innerWidth > 991 && e(rt(!0));
4165
+ P && P.qty === 1 ? e(xr(String(g.id))) : e(Ar(g)), window.innerWidth > 991 && e(nt(!0));
4166
4166
  },
4167
4167
  className: `aaravpos-service-card ${a.some((P) => P.id === g.id) ? "active" : ""}`,
4168
4168
  children: [
@@ -4337,8 +4337,8 @@ function Nd({ buttonText: e, onButtonClick: t, showTaxesOnlyIfTime: r = !1, show
4337
4337
  className: "aaravpos-order-title",
4338
4338
  children: ["Your Order", /* @__PURE__ */ d("button", {
4339
4339
  className: "aaravpos-sidebar-close-btn",
4340
- onClick: () => p(rt(!1)),
4341
- children: /* @__PURE__ */ d(He, { size: 18 })
4340
+ onClick: () => p(nt(!1)),
4341
+ children: /* @__PURE__ */ d(Ke, { size: 18 })
4342
4342
  })]
4343
4343
  }),
4344
4344
  $?.id && /* @__PURE__ */ h("div", {
@@ -4605,7 +4605,7 @@ function M1({ isOpen: e, onClose: t }) {
4605
4605
  }), /* @__PURE__ */ d("button", {
4606
4606
  onClick: t,
4607
4607
  className: "aaravpos-date-close-btn",
4608
- children: /* @__PURE__ */ d(He, {})
4608
+ children: /* @__PURE__ */ d(Ke, {})
4609
4609
  })]
4610
4610
  }), /* @__PURE__ */ h("div", {
4611
4611
  className: "aaravpos-date-modal-body",
@@ -12615,14 +12615,14 @@ var Cd = {
12615
12615
  case f:
12616
12616
  return $e;
12617
12617
  default:
12618
- var Ye = $e && $e.$$typeof;
12619
- switch (Ye) {
12618
+ var Ze = $e && $e.$$typeof;
12619
+ switch (Ze) {
12620
12620
  case l:
12621
12621
  case p:
12622
12622
  case y:
12623
12623
  case m:
12624
12624
  case s:
12625
- return Ye;
12625
+ return Ze;
12626
12626
  default:
12627
12627
  return te;
12628
12628
  }
@@ -13486,7 +13486,7 @@ function Ji(e, t) {
13486
13486
  return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
13487
13487
  }
13488
13488
  var C0 = {}.constructor;
13489
- function Qe(e) {
13489
+ function et(e) {
13490
13490
  return e != null && e.constructor === C0;
13491
13491
  }
13492
13492
  function yt(e) {
@@ -13947,12 +13947,12 @@ function ro(e, t) {
13947
13947
  }
13948
13948
  function _d(e) {
13949
13949
  if (!e) throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
13950
- if (!Qe(e) || !Qe(e.countries)) throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Qe(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + A0(e) + ": " + e, "."));
13950
+ if (!et(e) || !et(e.countries)) throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(et(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + A0(e) + ": " + e, "."));
13951
13951
  }
13952
13952
  var A0 = function(t) {
13953
13953
  return yt(t);
13954
13954
  };
13955
- function Ke(e, t) {
13955
+ function Ye(e, t) {
13956
13956
  if (t = new he(t), t.hasCountry(e)) return t.selectNumberingPlan(e).countryCallingCode();
13957
13957
  throw new Error("Unknown country: ".concat(e));
13958
13958
  }
@@ -14229,7 +14229,7 @@ function Q0(e, t, r) {
14229
14229
  }
14230
14230
  }
14231
14231
  function kd(e, t, r, n, a) {
14232
- var i = t || r ? Ke(t || r, a) : n;
14232
+ var i = t || r ? Ye(t || r, a) : n;
14233
14233
  if (e.indexOf(i) === 0) {
14234
14234
  a = new he(a), a.selectNumberingPlan(t || r, i);
14235
14235
  var o = e.slice(i.length), s = aa(o, t, a).nationalNumber, l = aa(e, t, a).nationalNumber;
@@ -14361,7 +14361,7 @@ function kn(e, t, r, n) {
14361
14361
  return t ? n(e, t, r) : e;
14362
14362
  }
14363
14363
  function pp(e, t, r, n, a) {
14364
- if (Ke(n, a.metadata) === r) {
14364
+ if (Ye(n, a.metadata) === r) {
14365
14365
  var i = Rr(e, t, "NATIONAL", a);
14366
14366
  return r === "1" ? r + " " + i : i;
14367
14367
  }
@@ -14450,7 +14450,7 @@ var bp = !1, jd = /* @__PURE__ */ (function() {
14450
14450
  if (yp(this, e), !t) throw new TypeError("First argument is required");
14451
14451
  if (typeof t != "string") throw new TypeError("First argument must be a string");
14452
14452
  if (t[0] === "+" && !r) throw new TypeError("`metadata` argument not passed");
14453
- if (Qe(r) && Qe(r.countries)) {
14453
+ if (et(r) && et(r.countries)) {
14454
14454
  n = r;
14455
14455
  var a = t;
14456
14456
  if (!Sp.test(a)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
@@ -14893,7 +14893,7 @@ function am(e, t, r, n) {
14893
14893
  var a = Ua(oa(e), void 0, t, r, n.metadata), i = a.countryCallingCodeSource, o = a.countryCallingCode, s = a.number, l;
14894
14894
  if (o) n.selectNumberingPlan(o);
14895
14895
  else if (s && (t || r))
14896
- n.selectNumberingPlan(t, r), t ? l = t : Qp && n.isNonGeographicCallingCode(r) && (l = "001"), o = r || Ke(t, n.metadata);
14896
+ n.selectNumberingPlan(t, r), t ? l = t : Qp && n.isNonGeographicCallingCode(r) && (l = "001"), o = r || Ye(t, n.metadata);
14897
14897
  else return {};
14898
14898
  if (!s) return {
14899
14899
  countryCallingCodeSource: i,
@@ -15065,7 +15065,7 @@ function Vd(e) {
15065
15065
  else throw new TypeError("A text for parsing must be a string.");
15066
15066
  if (!n || typeof n == "string")
15067
15067
  i ? (s = a, l = i) : (s = void 0, l = a), n && (s = lm({ defaultCountry: n }, s));
15068
- else if (Qe(n)) a ? (s = n, l = a) : l = n;
15068
+ else if (et(n)) a ? (s = n, l = a) : l = n;
15069
15069
  else throw new Error("Invalid second argument: ".concat(n));
15070
15070
  return {
15071
15071
  text: o,
@@ -16269,7 +16269,7 @@ var Uo = !1, _t = /* @__PURE__ */ (function() {
16269
16269
  key: "getCountryAndCallingCode",
16270
16270
  value: function(r) {
16271
16271
  var n, a;
16272
- return r && (Qe(r) ? (n = r.defaultCountry, a = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), a && Uo && this.metadata.isNonGeographicCallingCode(a) && (n = "001"), [n, a];
16272
+ return r && (et(r) ? (n = r.defaultCountry, a = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), a && Uo && this.metadata.isNonGeographicCallingCode(a) && (n = "001"), [n, a];
16273
16273
  }
16274
16274
  },
16275
16275
  {
@@ -16481,7 +16481,7 @@ function Rh(e, t, r) {
16481
16481
  var jr = /* @__PURE__ */ Na(q1(), 1);
16482
16482
  function Wd(e) {
16483
16483
  var t = e.inputFormat, r = e.country, n = e.metadata;
16484
- return t === "NATIONAL_PART_OF_INTERNATIONAL" ? "+".concat(Ke(r, n)) : "";
16484
+ return t === "NATIONAL_PART_OF_INTERNATIONAL" ? "+".concat(Ye(r, n)) : "";
16485
16485
  }
16486
16486
  function ua(e, t) {
16487
16487
  return t && (e = e.slice(t.length), e[0] === " " && (e = e.slice(1))), e;
@@ -17144,7 +17144,7 @@ var rl = O.default.shape({
17144
17144
  countries: O.default.object.isRequired
17145
17145
  }), nl = O.default.objectOf(O.default.string);
17146
17146
  function Ue(e, t) {
17147
- return "+" + Ke(e, t);
17147
+ return "+" + Ye(e, t);
17148
17148
  }
17149
17149
  function w2(e) {
17150
17150
  var t = e.value, r = e.phoneNumber, n = e.defaultCountry, a = e.getAnyCountry, i = e.countries, o = e.required, s = e.metadata, l;
@@ -17176,7 +17176,7 @@ function E2(e, t) {
17176
17176
  if (n) {
17177
17177
  if (e[0] === "+") {
17178
17178
  if (i)
17179
- return e.indexOf("+" + Ke(n, a)) === 0 ? M2(e, n, a) : "";
17179
+ return e.indexOf("+" + Ye(n, a)) === 0 ? M2(e, n, a) : "";
17180
17180
  if (r) {
17181
17181
  var o = Ue(n, a);
17182
17182
  return e.indexOf(o) === 0 ? e : o;
@@ -17198,7 +17198,7 @@ function dt(e, t, r) {
17198
17198
  }
17199
17199
  if (t) {
17200
17200
  var a = ol(e, t, r);
17201
- return "+".concat(Ke(t, r)).concat(a || "");
17201
+ return "+".concat(Ye(t, r)).concat(a || "");
17202
17202
  }
17203
17203
  }
17204
17204
  }
@@ -17272,7 +17272,7 @@ function k2(e, t, r) {
17272
17272
  }
17273
17273
  function M2(e, t, r) {
17274
17274
  if (t) {
17275
- var n = "+" + Ke(t, r);
17275
+ var n = "+" + Ye(t, r);
17276
17276
  if (e.length < n.length) {
17277
17277
  if (n.indexOf(e) === 0) return "";
17278
17278
  } else if (e.indexOf(n) === 0) return e.slice(n.length);
@@ -18488,16 +18488,16 @@ function yv(e) {
18488
18488
  return vv(this, r);
18489
18489
  };
18490
18490
  }
18491
- function tt(e, t, r) {
18491
+ function rt(e, t, r) {
18492
18492
  this.x = e, this.y = t, this.time = r || (/* @__PURE__ */ new Date()).getTime();
18493
18493
  }
18494
- tt.prototype.velocityFrom = function(e) {
18494
+ rt.prototype.velocityFrom = function(e) {
18495
18495
  return this.time !== e.time ? this.distanceTo(e) / (this.time - e.time) : 1;
18496
18496
  };
18497
- tt.prototype.distanceTo = function(e) {
18497
+ rt.prototype.distanceTo = function(e) {
18498
18498
  return Math.sqrt(Math.pow(this.x - e.x, 2) + Math.pow(this.y - e.y, 2));
18499
18499
  };
18500
- tt.prototype.equals = function(e) {
18500
+ rt.prototype.equals = function(e) {
18501
18501
  return this.x === e.x && this.y === e.y && this.time === e.time;
18502
18502
  };
18503
18503
  function Wa(e, t, r, n) {
@@ -18621,7 +18621,7 @@ Q.prototype._reset = function() {
18621
18621
  };
18622
18622
  Q.prototype._createPoint = function(e, t, r) {
18623
18623
  var n = this._canvas.getBoundingClientRect();
18624
- return new tt(e - n.left, t - n.top, r || (/* @__PURE__ */ new Date()).getTime());
18624
+ return new rt(e - n.left, t - n.top, r || (/* @__PURE__ */ new Date()).getTime());
18625
18625
  };
18626
18626
  Q.prototype._addPoint = function(e) {
18627
18627
  var t = this.points, r = void 0;
@@ -18649,8 +18649,8 @@ Q.prototype._calculateCurveControlPoints = function(e, t, r) {
18649
18649
  y: l.y + f * v
18650
18650
  }, y = t.x - m.x, b = t.y - m.y;
18651
18651
  return {
18652
- c1: new tt(s.x + y, s.y + b),
18653
- c2: new tt(l.x + y, l.y + b)
18652
+ c1: new rt(s.x + y, s.y + b),
18653
+ c2: new rt(l.x + y, l.y + b)
18654
18654
  };
18655
18655
  };
18656
18656
  Q.prototype._calculateCurveWidths = function(e) {
@@ -18688,7 +18688,7 @@ Q.prototype._fromData = function(e, t, r) {
18688
18688
  for (var n = 0; n < e.length; n += 1) {
18689
18689
  var a = e[n];
18690
18690
  if (a.length > 1) for (var i = 0; i < a.length; i += 1) {
18691
- var o = a[i], s = new tt(o.x, o.y, o.time), l = o.color;
18691
+ var o = a[i], s = new rt(o.x, o.y, o.time), l = o.color;
18692
18692
  if (i === 0)
18693
18693
  this.penColor = l, this._reset(), this._addPoint(s);
18694
18694
  else if (i !== a.length - 1) {
@@ -18896,7 +18896,7 @@ var Cv = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
18896
18896
  }), /* @__PURE__ */ d("button", {
18897
18897
  onClick: g,
18898
18898
  className: "arravpos-consent-close-btn",
18899
- children: /* @__PURE__ */ d(He, {})
18899
+ children: /* @__PURE__ */ d(Ke, {})
18900
18900
  })]
18901
18901
  }),
18902
18902
  /* @__PURE__ */ d("div", {
@@ -19045,7 +19045,7 @@ var Cv = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
19045
19045
  return +`${t}${r}`;
19046
19046
  };
19047
19047
  function Ov() {
19048
- const e = Ie(), { tenantId: t, id: r, timeZone: n, image: a, outletName: i, address: o } = K((_) => _.booking.outletDetails), { staff: s, selectedServices: l, selectedProfessional: c } = K((_) => _.booking.service), { selectedSlotIds: u, selectedDate: p, selectedTime: f, selectedSlotIndexes: v, slots: m } = K((_) => _.booking.slots), { userDetails: y, bookingMode: b, tipPct: $, payType: g } = K((_) => _.booking.appointment), S = Ae(!1), P = Ae(""), C = be.now().setZone(n ?? "UTC"), N = Array.isArray(l) ? l : [l], [E, D] = q(!1), [Z, J] = q(!1), [re, ue] = q(null), [oe, fe] = q(!1), [ve, ye] = q(""), [pe, ne] = q(""), [Ce, k] = q(null), [R, w] = q(null), [I, L] = q({}), [z, F] = q({}), [H, G] = q(!1), [W, x] = q(!1), [M, V] = q(null), [A, te] = q(!1), $e = Ae(""), Ye = Ae(null), pn = N.map((_) => {
19048
+ const e = Ie(), { tenantId: t, id: r, timeZone: n, image: a, outletName: i, address: o } = K((_) => _.booking.outletDetails), { staff: s, selectedServices: l, selectedProfessional: c } = K((_) => _.booking.service), { selectedSlotIds: u, selectedDate: p, selectedTime: f, selectedSlotIndexes: v, slots: m } = K((_) => _.booking.slots), { userDetails: y, bookingMode: b, tipPct: $, payType: g } = K((_) => _.booking.appointment), S = Ae(!1), P = Ae(""), C = be.now().setZone(n ?? "UTC"), N = Array.isArray(l) ? l : [l], [E, D] = q(!1), [Z, J] = q(!1), [re, ue] = q(null), [oe, fe] = q(!1), [ve, ye] = q(""), [pe, ne] = q(""), [Ce, k] = q(null), [R, w] = q(null), [I, L] = q({}), [z, F] = q({}), [H, G] = q(!1), [W, x] = q(!1), [M, V] = q(null), [A, te] = q(!1), $e = Ae(""), Ze = Ae(null), pn = N.map((_) => {
19049
19049
  const T = s?.find((U) => U.id === c?.id)?.assignments?.find((U) => U.id === _.id), B = {
19050
19050
  ..._,
19051
19051
  price: T?.price ?? _.price ?? _.min_price ?? 0,
@@ -19080,7 +19080,7 @@ function Ov() {
19080
19080
  ...T,
19081
19081
  [String(_)]: !0
19082
19082
  }));
19083
- }, { register: yn, handleSubmit: Ja, control: Cl, watch: Qa, reset: $n, trigger: ei, setValue: Ot, formState: { errors: nt, isSubmitted: ti, isSubmitting: Sl } } = ba({
19083
+ }, { register: yn, handleSubmit: Ja, control: Cl, watch: Qa, reset: $n, trigger: ei, setValue: Ot, formState: { errors: Ge, isSubmitted: ti, isSubmitting: Sl } } = ba({
19084
19084
  defaultValues: {
19085
19085
  firstName: "",
19086
19086
  lastName: "",
@@ -19308,7 +19308,7 @@ function Ov() {
19308
19308
  ie.error("Select time");
19309
19309
  return;
19310
19310
  }
19311
- e(En(T)), e(rt(!0));
19311
+ e(En(T)), e(nt(!0));
19312
19312
  }, xl = (_) => {
19313
19313
  const T = _.replace(/\s/g, "");
19314
19314
  return /^4/.test(T) ? "VISA" : /^5[1-5]/.test(T) ? "MASTERCARD" : /^3[47]/.test(T) ? "AMEX" : /^6/.test(T) ? "DISCOVER" : "UNKNOWN";
@@ -19406,15 +19406,15 @@ function Ov() {
19406
19406
  phone: ""
19407
19407
  }), te(!1), $e.current = "", e(mf());
19408
19408
  };
19409
- me(() => (Ye.current = Ql(si, 800), () => {
19410
- Ye.current?.cancel?.();
19409
+ me(() => (Ze.current = Ql(si, 800), () => {
19410
+ Ze.current?.cancel?.();
19411
19411
  }), [si]);
19412
19412
  const di = (_, T, B) => {
19413
19413
  if (T && T(_), !_) {
19414
- Ye.current?.cancel?.(), $e.current = "", te(!1), V(null);
19414
+ Ze.current?.cancel?.(), $e.current = "", te(!1), V(null);
19415
19415
  return;
19416
19416
  }
19417
- V(B), Ye.current?.({
19417
+ V(B), Ze.current?.({
19418
19418
  value: _,
19419
19419
  type: B
19420
19420
  });
@@ -19568,9 +19568,9 @@ function Ov() {
19568
19568
  })]
19569
19569
  })
19570
19570
  }),
19571
- nt.phone && /* @__PURE__ */ d("p", {
19571
+ Ge.phone && /* @__PURE__ */ d("p", {
19572
19572
  className: "arravpos-error-text",
19573
- children: nt.phone.message
19573
+ children: Ge.phone.message
19574
19574
  }),
19575
19575
  A && /* @__PURE__ */ h("div", {
19576
19576
  className: "arravpos-autofill-text",
@@ -19600,7 +19600,7 @@ function Ov() {
19600
19600
  ...yn("email", {
19601
19601
  validate: (_) => {
19602
19602
  const T = !!_?.trim(), B = !!Sn(Nn);
19603
- return !T && !B ? "Enter phone or email" : T && !/^\S+@\S+\.\S+$/.test(_) ? "Invalid email" : !0;
19603
+ return !T && !B ? "Enter phone or email" : T && !/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(_) ? "Invalid email" : !0;
19604
19604
  },
19605
19605
  onChange: (_) => {
19606
19606
  di(_.target.value, null, "email");
@@ -19618,9 +19618,9 @@ function Ov() {
19618
19618
  placeholder: "Email address",
19619
19619
  className: "arravpos-custom-input"
19620
19620
  }),
19621
- nt.firstName && /* @__PURE__ */ d("p", {
19621
+ Ge.email && /* @__PURE__ */ d("p", {
19622
19622
  className: "arravpos-error-text",
19623
- children: nt.firstName.message
19623
+ children: Ge.email.message
19624
19624
  })
19625
19625
  ]
19626
19626
  }),
@@ -19663,40 +19663,47 @@ function Ov() {
19663
19663
  placeholder: "First Name",
19664
19664
  className: "arravpos-custom-input"
19665
19665
  }),
19666
- nt.firstName && /* @__PURE__ */ d("p", {
19666
+ Ge.firstName && /* @__PURE__ */ d("p", {
19667
19667
  className: "arravpos-error-text",
19668
- children: nt.firstName.message
19668
+ children: Ge.firstName.message
19669
19669
  })
19670
19670
  ]
19671
19671
  }),
19672
19672
  /* @__PURE__ */ h("div", {
19673
19673
  className: "arravpos-form-group",
19674
- children: [/* @__PURE__ */ d("label", {
19675
- htmlFor: "lastName",
19676
- className: "arravpos-form-label",
19677
- children: "Last Name"
19678
- }), /* @__PURE__ */ d("input", {
19679
- id: "lastName",
19680
- autoComplete: "family-name",
19681
- minLength: 2,
19682
- maxLength: 20,
19683
- ...yn("lastName", {
19684
- minLength: {
19685
- value: 2,
19686
- message: "Last name must be at least 2 characters"
19687
- },
19688
- maxLength: {
19689
- value: 30,
19690
- message: "Last name cannot exceed 30 characters"
19691
- },
19692
- pattern: {
19693
- value: /^[A-Za-z\s]+$/,
19694
- message: "Only letters are allowed"
19695
- }
19674
+ children: [
19675
+ /* @__PURE__ */ d("label", {
19676
+ htmlFor: "lastName",
19677
+ className: "arravpos-form-label",
19678
+ children: "Last Name"
19696
19679
  }),
19697
- placeholder: "Last Name",
19698
- className: "arravpos-custom-input"
19699
- })]
19680
+ /* @__PURE__ */ d("input", {
19681
+ id: "lastName",
19682
+ autoComplete: "family-name",
19683
+ minLength: 2,
19684
+ maxLength: 20,
19685
+ ...yn("lastName", {
19686
+ minLength: {
19687
+ value: 2,
19688
+ message: "Last name must be at least 2 characters"
19689
+ },
19690
+ maxLength: {
19691
+ value: 30,
19692
+ message: "Last name cannot exceed 30 characters"
19693
+ },
19694
+ pattern: {
19695
+ value: /^[A-Za-z\s]+$/,
19696
+ message: "Only letters are allowed"
19697
+ }
19698
+ }),
19699
+ placeholder: "Last Name",
19700
+ className: "arravpos-custom-input"
19701
+ }),
19702
+ Ge.lastName && /* @__PURE__ */ d("p", {
19703
+ className: "text-red-500 text-sm mt-1",
19704
+ children: Ge.lastName.message
19705
+ })
19706
+ ]
19700
19707
  })
19701
19708
  ]
19702
19709
  }), /* @__PURE__ */ d("div", {