@aaravpos/appointment-barber-booking 3.0.0 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
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";
2
- import { Provider as Pl, useDispatch as ze, useSelector as X } from "react-redux";
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
- import { Fragment as $e, jsx as u, jsxs as N } from "react/jsx-runtime";
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
8
  import { Controller as dt, useForm as ha } from "react-hook-form";
@@ -793,32 +793,32 @@ function $a(e, ...t) {
793
793
  const c = {
794
794
  ...r,
795
795
  ...d
796
- }, { memoize: f, memoizeOptions: h = [], argsMemoize: m = Yr, argsMemoizeOptions: p = [] } = c, v = pi(h), y = pi(p), $ = hc(a), S = f(function() {
796
+ }, { memoize: f, memoizeOptions: h = [], argsMemoize: m = Yr, argsMemoizeOptions: p = [] } = c, v = pi(h), b = pi(p), $ = hc(a), y = f(function() {
797
797
  return i++, l.apply(null, arguments);
798
798
  }, ...v);
799
- let b = !0;
799
+ let S = !0;
800
800
  const P = m(function() {
801
801
  o++;
802
- const g = mi($, arguments);
803
- if (s = S.apply(null, g), process.env.NODE_ENV !== "production") {
804
- const { devModeChecks: T = {} } = c, { identityFunctionCheck: D, inputStabilityCheck: H } = vc(b, T);
805
- if (D.shouldRun && D.run(l, g, s), H.shouldRun) {
806
- const J = mi($, arguments);
802
+ const N = mi($, arguments);
803
+ if (s = y.apply(null, N), process.env.NODE_ENV !== "production") {
804
+ const { devModeChecks: T = {} } = c, { identityFunctionCheck: D, inputStabilityCheck: H } = vc(S, T);
805
+ if (D.shouldRun && D.run(l, N, s), H.shouldRun) {
806
+ const X = mi($, arguments);
807
807
  H.run({
808
- inputSelectorResults: g,
809
- inputSelectorResultsCopy: J
808
+ inputSelectorResults: N,
809
+ inputSelectorResultsCopy: X
810
810
  }, {
811
811
  memoize: f,
812
812
  memoizeOptions: v
813
813
  }, arguments);
814
814
  }
815
- b && (b = !1);
815
+ S && (S = !1);
816
816
  }
817
817
  return s;
818
- }, ...y);
818
+ }, ...b);
819
819
  return Object.assign(P, {
820
820
  resultFunc: l,
821
- memoizedResultFunc: S,
821
+ memoizedResultFunc: y,
822
822
  dependencies: $,
823
823
  dependencyRecomputations: () => o,
824
824
  resetDependencyRecomputations: () => {
@@ -1100,19 +1100,19 @@ function gs(e = {}) {
1100
1100
  if (!jr(m)) return h(m);
1101
1101
  const p = h(m), v = ms(o, "SerializableStateInvariantMiddleware");
1102
1102
  return !d && !(n.length && n.indexOf(m.type) !== -1) && v.measureTime(() => {
1103
- const y = Nr(m, "", t, r, a, c);
1104
- if (y) {
1105
- const { keyPath: $, value: S } = y;
1106
- console.error(`A non-serializable value was detected in an action, in the path: \`${$}\`. Value:`, S, `
1103
+ const b = Nr(m, "", t, r, a, c);
1104
+ if (b) {
1105
+ const { keyPath: $, value: y } = b;
1106
+ console.error(`A non-serializable value was detected in an action, in the path: \`${$}\`. Value:`, y, `
1107
1107
  Take a look at the logic that dispatched this action: `, m, `
1108
1108
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
1109
1109
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
1110
1110
  }
1111
1111
  }), s || (v.measureTime(() => {
1112
- const y = Nr(f.getState(), "", t, r, i, c);
1113
- if (y) {
1114
- const { keyPath: $, value: S } = y;
1115
- console.error(`A non-serializable value was detected in the state, in the path: \`${$}\`. Value:`, S, `
1112
+ const b = Nr(f.getState(), "", t, r, i, c);
1113
+ if (b) {
1114
+ const { keyPath: $, value: y } = b;
1115
+ console.error(`A non-serializable value was detected in the state, in the path: \`${$}\`. Value:`, y, `
1116
1116
  Take a look at the reducer(s) handling this action type: ${m.type}.
1117
1117
  (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
1118
1118
  }
@@ -1186,9 +1186,9 @@ function Cs(e) {
1186
1186
  if (process.env.NODE_ENV !== "production" && l.some((v) => typeof v != "function")) throw new Error(process.env.NODE_ENV === "production" ? Y(4) : "each middleware provided to configureStore must be a function");
1187
1187
  if (process.env.NODE_ENV !== "production" && i) {
1188
1188
  let v = /* @__PURE__ */ new Set();
1189
- l.forEach((y) => {
1190
- if (v.has(y)) throw new Error(process.env.NODE_ENV === "production" ? Y(42) : "Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");
1191
- v.add(y);
1189
+ l.forEach((b) => {
1190
+ if (v.has(b)) throw new Error(process.env.NODE_ENV === "production" ? Y(42) : "Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");
1191
+ v.add(b);
1192
1192
  });
1193
1193
  }
1194
1194
  let c = fr;
@@ -1381,13 +1381,13 @@ var jc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Gt
1381
1381
  function s(d, { signal: l } = {}) {
1382
1382
  return (c, f, h) => {
1383
1383
  const m = n?.idGenerator ? n.idGenerator(d) : Gt(), p = new AbortController();
1384
- let v, y;
1385
- function $(b) {
1386
- y = b, p.abort();
1384
+ let v, b;
1385
+ function $(S) {
1386
+ b = S, p.abort();
1387
1387
  }
1388
1388
  l && (l.aborted ? $($i) : l.addEventListener("abort", () => $($i), { once: !0 }));
1389
- const S = (async function() {
1390
- let b;
1389
+ const y = (async function() {
1390
+ let S;
1391
1391
  try {
1392
1392
  let P = n?.condition?.(d, {
1393
1393
  getState: f,
@@ -1397,11 +1397,11 @@ var jc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Gt
1397
1397
  name: "ConditionError",
1398
1398
  message: "Aborted due to condition callback returning false."
1399
1399
  };
1400
- const _ = new Promise((g, T) => {
1400
+ const O = new Promise((N, T) => {
1401
1401
  v = () => {
1402
1402
  T({
1403
1403
  name: "AbortError",
1404
- message: y || "Aborted"
1404
+ message: b || "Aborted"
1405
1405
  });
1406
1406
  }, p.signal.addEventListener("abort", v, { once: !0 });
1407
1407
  });
@@ -1411,32 +1411,32 @@ var jc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Gt
1411
1411
  }, {
1412
1412
  getState: f,
1413
1413
  extra: h
1414
- }))), b = await Promise.race([_, Promise.resolve(r(d, {
1414
+ }))), S = await Promise.race([O, Promise.resolve(r(d, {
1415
1415
  dispatch: c,
1416
1416
  getState: f,
1417
1417
  extra: h,
1418
1418
  requestId: m,
1419
1419
  signal: p.signal,
1420
1420
  abort: $,
1421
- rejectWithValue: (g, T) => new Cn(g, T),
1422
- fulfillWithValue: (g, T) => new bi(g, T)
1423
- })).then((g) => {
1424
- if (g instanceof Cn) throw g;
1425
- return g instanceof bi ? a(g.payload, m, d, g.meta) : a(g, m, d);
1421
+ rejectWithValue: (N, T) => new Cn(N, T),
1422
+ fulfillWithValue: (N, T) => new bi(N, T)
1423
+ })).then((N) => {
1424
+ if (N instanceof Cn) throw N;
1425
+ return N instanceof bi ? a(N.payload, m, d, N.meta) : a(N, m, d);
1426
1426
  })]);
1427
1427
  } catch (P) {
1428
- b = P instanceof Cn ? o(null, m, d, P.payload, P.meta) : o(P, m, d);
1428
+ S = P instanceof Cn ? 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
  }
1432
- return n && !n.dispatchConditionRejection && o.match(b) && b.meta.condition || c(b), b;
1432
+ return n && !n.dispatchConditionRejection && o.match(S) && S.meta.condition || c(S), S;
1433
1433
  })();
1434
- return Object.assign(S, {
1434
+ return Object.assign(y, {
1435
1435
  abort: $,
1436
1436
  requestId: m,
1437
1437
  arg: d,
1438
1438
  unwrap() {
1439
- return S.then(As);
1439
+ return y.then(As);
1440
1440
  }
1441
1441
  });
1442
1442
  };
@@ -1475,99 +1475,99 @@ function ks({ creators: e } = {}) {
1475
1475
  actionCreators: {},
1476
1476
  sliceMatchers: []
1477
1477
  }, l = {
1478
- addCase(b, P) {
1479
- const _ = typeof b == "string" ? b : b.type;
1480
- if (!_) throw new Error(process.env.NODE_ENV === "production" ? Y(12) : "`context.addCase` cannot be called with an empty action type");
1481
- if (_ in d.sliceCaseReducersByType) throw new Error(process.env.NODE_ENV === "production" ? Y(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + _);
1482
- return d.sliceCaseReducersByType[_] = P, l;
1478
+ addCase(S, P) {
1479
+ const O = typeof S == "string" ? S : S.type;
1480
+ if (!O) throw new Error(process.env.NODE_ENV === "production" ? Y(12) : "`context.addCase` cannot be called with an empty action type");
1481
+ if (O in d.sliceCaseReducersByType) throw new Error(process.env.NODE_ENV === "production" ? Y(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + O);
1482
+ return d.sliceCaseReducersByType[O] = P, l;
1483
1483
  },
1484
- addMatcher(b, P) {
1484
+ addMatcher(S, P) {
1485
1485
  return d.sliceMatchers.push({
1486
- matcher: b,
1486
+ matcher: S,
1487
1487
  reducer: P
1488
1488
  }), l;
1489
1489
  },
1490
- exposeAction(b, P) {
1491
- return d.actionCreators[b] = P, l;
1490
+ exposeAction(S, P) {
1491
+ return d.actionCreators[S] = P, l;
1492
1492
  },
1493
- exposeCaseReducer(b, P) {
1494
- return d.sliceCaseReducersByName[b] = P, l;
1493
+ exposeCaseReducer(S, P) {
1494
+ return d.sliceCaseReducersByName[S] = P, l;
1495
1495
  }
1496
1496
  };
1497
- s.forEach((b) => {
1498
- const P = o[b], _ = {
1499
- reducerName: b,
1500
- type: Vc(a, b),
1497
+ s.forEach((S) => {
1498
+ const P = o[S], O = {
1499
+ reducerName: S,
1500
+ type: Vc(a, S),
1501
1501
  createNotation: typeof n.reducers == "function"
1502
1502
  };
1503
- Hc(P) ? Kc(_, P, l, t) : Wc(_, P, l);
1503
+ Hc(P) ? Kc(O, P, l, t) : Wc(O, P, l);
1504
1504
  });
1505
1505
  function c() {
1506
1506
  if (process.env.NODE_ENV !== "production" && typeof n.extraReducers == "object")
1507
1507
  throw new Error(process.env.NODE_ENV === "production" ? Y(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
1508
- const [b = {}, P = [], _ = void 0] = typeof n.extraReducers == "function" ? Ss(n.extraReducers) : [n.extraReducers], g = {
1509
- ...b,
1508
+ const [S = {}, P = [], O = void 0] = typeof n.extraReducers == "function" ? Ss(n.extraReducers) : [n.extraReducers], N = {
1509
+ ...S,
1510
1510
  ...d.sliceCaseReducersByType
1511
1511
  };
1512
1512
  return Ps(n.initialState, (T) => {
1513
- for (let D in g) T.addCase(D, g[D]);
1513
+ for (let D in N) T.addCase(D, N[D]);
1514
1514
  for (let D of d.sliceMatchers) T.addMatcher(D.matcher, D.reducer);
1515
1515
  for (let D of P) T.addMatcher(D.matcher, D.reducer);
1516
- _ && T.addDefaultCase(_);
1516
+ O && T.addDefaultCase(O);
1517
1517
  });
1518
1518
  }
1519
- const f = (b) => b, h = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new WeakMap();
1519
+ const f = (S) => S, h = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new WeakMap();
1520
1520
  let p;
1521
- function v(b, P) {
1522
- return p || (p = c()), p(b, P);
1521
+ function v(S, P) {
1522
+ return p || (p = c()), p(S, P);
1523
1523
  }
1524
- function y() {
1524
+ function b() {
1525
1525
  return p || (p = c()), p.getInitialState();
1526
1526
  }
1527
- function $(b, P = !1) {
1528
- function _(T) {
1529
- let D = T[b];
1527
+ function $(S, P = !1) {
1528
+ function O(T) {
1529
+ let D = T[S];
1530
1530
  if (typeof D > "u") {
1531
- if (P) D = Qe(m, _, y);
1531
+ if (P) D = Qe(m, O, 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
- function g(T = f) {
1536
+ function N(T = f) {
1537
1537
  return Qe(Qe(h, P, () => /* @__PURE__ */ new WeakMap()), T, () => {
1538
1538
  const D = {};
1539
- for (const [H, J] of Object.entries(n.selectors ?? {})) D[H] = Gc(J, T, () => Qe(m, T, y), P);
1539
+ for (const [H, X] of Object.entries(n.selectors ?? {})) D[H] = Gc(X, T, () => Qe(m, T, b), P);
1540
1540
  return D;
1541
1541
  });
1542
1542
  }
1543
1543
  return {
1544
- reducerPath: b,
1545
- getSelectors: g,
1544
+ reducerPath: S,
1545
+ getSelectors: N,
1546
1546
  get selectors() {
1547
- return g(_);
1547
+ return N(O);
1548
1548
  },
1549
- selectSlice: _
1549
+ selectSlice: O
1550
1550
  };
1551
1551
  }
1552
- const S = {
1552
+ const y = {
1553
1553
  name: a,
1554
1554
  reducer: v,
1555
1555
  actions: d.actionCreators,
1556
1556
  caseReducers: d.sliceCaseReducersByName,
1557
- getInitialState: y,
1557
+ getInitialState: b,
1558
1558
  ...$(i),
1559
- injectInto(b, { reducerPath: P, ..._ } = {}) {
1560
- const g = P ?? i;
1561
- return b.inject({
1562
- reducerPath: g,
1559
+ injectInto(S, { reducerPath: P, ...O } = {}) {
1560
+ const N = P ?? i;
1561
+ return S.inject({
1562
+ reducerPath: N,
1563
1563
  reducer: v
1564
- }, _), {
1565
- ...S,
1566
- ...$(g, !0)
1564
+ }, O), {
1565
+ ...y,
1566
+ ...$(N, !0)
1567
1567
  };
1568
1568
  }
1569
1569
  };
1570
- return S;
1570
+ return y;
1571
1571
  };
1572
1572
  }
1573
1573
  function Gc(e, t, r, n) {
@@ -1712,20 +1712,20 @@ function Ds(e, t, r) {
1712
1712
  }
1713
1713
  function Rs(e) {
1714
1714
  function t(p, v) {
1715
- const y = lt(p, e);
1716
- y in v.entities || (v.ids.push(y), v.entities[y] = p);
1715
+ const b = lt(p, e);
1716
+ b in v.entities || (v.ids.push(b), v.entities[b] = p);
1717
1717
  }
1718
1718
  function r(p, v) {
1719
1719
  p = Ke(p);
1720
- for (const y of p) t(y, v);
1720
+ for (const b of p) t(b, v);
1721
1721
  }
1722
1722
  function n(p, v) {
1723
- const y = lt(p, e);
1724
- y in v.entities || v.ids.push(y), v.entities[y] = p;
1723
+ const b = lt(p, e);
1724
+ b in v.entities || v.ids.push(b), v.entities[b] = p;
1725
1725
  }
1726
1726
  function a(p, v) {
1727
1727
  p = Ke(p);
1728
- for (const y of p) n(y, v);
1728
+ for (const b of p) n(b, v);
1729
1729
  }
1730
1730
  function i(p, v) {
1731
1731
  p = Ke(p), v.ids = [], v.entities = {}, r(p, v);
@@ -1734,10 +1734,10 @@ function Rs(e) {
1734
1734
  return s([p], v);
1735
1735
  }
1736
1736
  function s(p, v) {
1737
- let y = !1;
1737
+ let b = !1;
1738
1738
  p.forEach(($) => {
1739
- $ in v.entities && (delete v.entities[$], y = !0);
1740
- }), y && (v.ids = v.ids.filter(($) => $ in v.entities));
1739
+ $ in v.entities && (delete v.entities[$], b = !0);
1740
+ }), b && (v.ids = v.ids.filter(($) => $ in v.entities));
1741
1741
  }
1742
1742
  function d(p) {
1743
1743
  Object.assign(p, {
@@ -1745,33 +1745,33 @@ function Rs(e) {
1745
1745
  entities: {}
1746
1746
  });
1747
1747
  }
1748
- function l(p, v, y) {
1749
- const $ = y.entities[v.id];
1748
+ function l(p, v, b) {
1749
+ const $ = b.entities[v.id];
1750
1750
  if ($ === void 0) return !1;
1751
- const S = Object.assign({}, $, v.changes), b = lt(S, e), P = b !== v.id;
1752
- return P && (p[v.id] = b, delete y.entities[v.id]), y.entities[b] = S, P;
1751
+ const y = Object.assign({}, $, v.changes), S = lt(y, e), P = S !== v.id;
1752
+ return P && (p[v.id] = S, delete b.entities[v.id]), b.entities[S] = y, P;
1753
1753
  }
1754
1754
  function c(p, v) {
1755
1755
  return f([p], v);
1756
1756
  }
1757
1757
  function f(p, v) {
1758
- const y = {}, $ = {};
1759
- p.forEach((S) => {
1760
- S.id in v.entities && ($[S.id] = {
1761
- id: S.id,
1758
+ const b = {}, $ = {};
1759
+ p.forEach((y) => {
1760
+ y.id in v.entities && ($[y.id] = {
1761
+ id: y.id,
1762
1762
  changes: {
1763
- ...$[S.id]?.changes,
1764
- ...S.changes
1763
+ ...$[y.id]?.changes,
1764
+ ...y.changes
1765
1765
  }
1766
1766
  });
1767
- }), p = Object.values($), p.length > 0 && p.filter((S) => l(y, S, v)).length > 0 && (v.ids = Object.values(v.entities).map((S) => lt(S, e)));
1767
+ }), p = Object.values($), p.length > 0 && p.filter((y) => l(b, y, v)).length > 0 && (v.ids = Object.values(v.entities).map((y) => lt(y, e)));
1768
1768
  }
1769
1769
  function h(p, v) {
1770
1770
  return m([p], v);
1771
1771
  }
1772
1772
  function m(p, v) {
1773
- const [y, $] = Ds(p, e, v);
1774
- r(y, v), f($, v);
1773
+ const [b, $] = Ds(p, e, v);
1774
+ r(b, v), f($, v);
1775
1775
  }
1776
1776
  return {
1777
1777
  removeAll: Qc(d),
@@ -1803,69 +1803,69 @@ function tu(e, t, r) {
1803
1803
  }
1804
1804
  function ru(e, t) {
1805
1805
  const { removeOne: r, removeMany: n, removeAll: a } = Rs(e);
1806
- function i(y, $) {
1807
- return o([y], $);
1808
- }
1809
- function o(y, $, S) {
1810
- y = Ke(y);
1811
- const b = new Set(S ?? sr($.ids)), P = /* @__PURE__ */ new Set(), _ = y.filter((g) => {
1812
- const T = lt(g, e), D = !P.has(T);
1813
- return D && P.add(T), !b.has(T) && D;
1806
+ function i(b, $) {
1807
+ return o([b], $);
1808
+ }
1809
+ function o(b, $, y) {
1810
+ b = Ke(b);
1811
+ const S = new Set(y ?? sr($.ids)), P = /* @__PURE__ */ new Set(), O = b.filter((N) => {
1812
+ const T = lt(N, e), D = !P.has(T);
1813
+ return D && P.add(T), !S.has(T) && D;
1814
1814
  });
1815
- _.length !== 0 && v($, _);
1815
+ O.length !== 0 && v($, O);
1816
1816
  }
1817
- function s(y, $) {
1818
- return d([y], $);
1817
+ function s(b, $) {
1818
+ return d([b], $);
1819
1819
  }
1820
- function d(y, $) {
1821
- let S = {};
1822
- if (y = Ke(y), y.length !== 0) {
1823
- for (const b of y) {
1824
- const P = e(b);
1825
- S[P] = b, delete $.entities[P];
1820
+ function d(b, $) {
1821
+ let y = {};
1822
+ if (b = Ke(b), b.length !== 0) {
1823
+ for (const S of b) {
1824
+ const P = e(S);
1825
+ y[P] = S, delete $.entities[P];
1826
1826
  }
1827
- y = Ke(S), v($, y);
1827
+ b = Ke(y), v($, b);
1828
1828
  }
1829
1829
  }
1830
- function l(y, $) {
1831
- y = Ke(y), $.entities = {}, $.ids = [], o(y, $, []);
1832
- }
1833
- function c(y, $) {
1834
- return f([y], $);
1835
- }
1836
- function f(y, $) {
1837
- let S = !1, b = !1;
1838
- for (let P of y) {
1839
- const _ = $.entities[P.id];
1840
- if (!_) continue;
1841
- S = !0, Object.assign(_, P.changes);
1842
- const g = e(_);
1843
- if (P.id !== g) {
1844
- b = !0, delete $.entities[P.id];
1830
+ function l(b, $) {
1831
+ b = Ke(b), $.entities = {}, $.ids = [], o(b, $, []);
1832
+ }
1833
+ function c(b, $) {
1834
+ return f([b], $);
1835
+ }
1836
+ function f(b, $) {
1837
+ let y = !1, S = !1;
1838
+ for (let P of b) {
1839
+ const O = $.entities[P.id];
1840
+ if (!O) continue;
1841
+ y = !0, Object.assign(O, P.changes);
1842
+ const N = e(O);
1843
+ if (P.id !== N) {
1844
+ S = !0, delete $.entities[P.id];
1845
1845
  const T = $.ids.indexOf(P.id);
1846
- $.ids[T] = g, $.entities[g] = _;
1846
+ $.ids[T] = N, $.entities[N] = O;
1847
1847
  }
1848
1848
  }
1849
- S && v($, [], S, b);
1849
+ y && v($, [], y, S);
1850
1850
  }
1851
- function h(y, $) {
1852
- return m([y], $);
1851
+ function h(b, $) {
1852
+ return m([b], $);
1853
1853
  }
1854
- function m(y, $) {
1855
- const [S, b, P] = Ds(y, e, $);
1856
- S.length && o(S, $, P), b.length && f(b, $);
1854
+ function m(b, $) {
1855
+ const [y, S, P] = Ds(b, e, $);
1856
+ y.length && o(y, $, P), S.length && f(S, $);
1857
1857
  }
1858
- function p(y, $) {
1859
- if (y.length !== $.length) return !1;
1860
- for (let S = 0; S < y.length; S++)
1861
- if (y[S] !== $[S])
1858
+ function p(b, $) {
1859
+ if (b.length !== $.length) return !1;
1860
+ for (let y = 0; y < b.length; y++)
1861
+ if (b[y] !== $[y])
1862
1862
  return !1;
1863
1863
  return !0;
1864
1864
  }
1865
- const v = (y, $, S, b) => {
1866
- const P = sr(y.entities), _ = sr(y.ids), g = y.entities;
1867
- let T = _;
1868
- b && (T = new Set(_));
1865
+ const v = (b, $, y, S) => {
1866
+ const P = sr(b.entities), O = sr(b.ids), N = b.entities;
1867
+ let T = O;
1868
+ S && (T = new Set(O));
1869
1869
  let D = [];
1870
1870
  for (const ae of T) {
1871
1871
  const ce = P[ae];
@@ -1873,10 +1873,10 @@ function ru(e, t) {
1873
1873
  }
1874
1874
  const H = D.length === 0;
1875
1875
  for (const ae of $)
1876
- g[e(ae)] = ae, H || tu(D, ae, t);
1877
- H ? D = $.slice().sort(t) : S && D.sort(t);
1878
- const J = D.map(e);
1879
- p(_, J) || (y.ids = J);
1876
+ N[e(ae)] = ae, H || tu(D, ae, t);
1877
+ H ? D = $.slice().sort(t) : y && D.sort(t);
1878
+ const X = D.map(e);
1879
+ p(O, X) || (b.ids = X);
1880
1880
  };
1881
1881
  return {
1882
1882
  removeOne: r,
@@ -2063,25 +2063,25 @@ var du = async (e, t) => {
2063
2063
  return p && (p.unsubscribe(), m.cancelActive && Yn(p)), !!p;
2064
2064
  };
2065
2065
  ut(l, { withTypes: () => l });
2066
- const c = async (m, p, v, y) => {
2067
- const $ = new AbortController(), S = cu(d, $.signal), b = [];
2066
+ const c = async (m, p, v, b) => {
2067
+ const $ = new AbortController(), y = cu(d, $.signal), S = [];
2068
2068
  try {
2069
2069
  m.pending.add($), n(m), await Promise.resolve(m.effect(p, ut({}, v, {
2070
- getOriginalState: y,
2071
- condition: (P, _) => S(P, _).then(Boolean),
2072
- take: S,
2070
+ getOriginalState: b,
2071
+ condition: (P, O) => y(P, O).then(Boolean),
2072
+ take: y,
2073
2073
  delay: Vs($.signal),
2074
2074
  pause: wr($.signal),
2075
2075
  extra: i,
2076
2076
  signal: $.signal,
2077
- fork: lu($.signal, b),
2077
+ fork: lu($.signal, S),
2078
2078
  unsubscribe: m.unsubscribe,
2079
2079
  subscribe: () => {
2080
2080
  t.set(m.id, m);
2081
2081
  },
2082
2082
  cancelActiveListeners: () => {
2083
- m.pending.forEach((P, _, g) => {
2084
- P !== $ && (P.abort(Kn), g.delete(P));
2083
+ m.pending.forEach((P, O, N) => {
2084
+ P !== $ && (P.abort(Kn), N.delete(P));
2085
2085
  });
2086
2086
  },
2087
2087
  cancel: () => {
@@ -2094,7 +2094,7 @@ var du = async (e, t) => {
2094
2094
  } catch (P) {
2095
2095
  P instanceof zt || Ci(o, P, { raisedBy: "effect" });
2096
2096
  } finally {
2097
- await Promise.all(b), $.abort(su), a(m), m.pending.delete($);
2097
+ await Promise.all(S), $.abort(su), a(m), m.pending.delete($);
2098
2098
  }
2099
2099
  }, f = uu(t, r);
2100
2100
  return {
@@ -2106,29 +2106,29 @@ var du = async (e, t) => {
2106
2106
  return;
2107
2107
  }
2108
2108
  if (_a.match(v)) return l(v.payload);
2109
- let y = m.getState();
2109
+ let b = m.getState();
2110
2110
  const $ = () => {
2111
- if (y === gi) throw new Error(process.env.NODE_ENV === "production" ? Y(23) : `${Wt}: getOriginalState can only be called synchronously`);
2112
- return y;
2111
+ if (b === gi) throw new Error(process.env.NODE_ENV === "production" ? Y(23) : `${Wt}: getOriginalState can only be called synchronously`);
2112
+ return b;
2113
2113
  };
2114
- let S;
2114
+ let y;
2115
2115
  try {
2116
- if (S = p(v), t.size > 0) {
2117
- const b = m.getState(), P = Array.from(t.values());
2118
- for (const _ of P) {
2119
- let g = !1;
2116
+ if (y = p(v), t.size > 0) {
2117
+ const S = m.getState(), P = Array.from(t.values());
2118
+ for (const O of P) {
2119
+ let N = !1;
2120
2120
  try {
2121
- g = _.predicate(v, b, y);
2121
+ N = O.predicate(v, S, b);
2122
2122
  } catch (T) {
2123
- g = !1, Ci(o, T, { raisedBy: "predicate" });
2123
+ N = !1, Ci(o, T, { raisedBy: "predicate" });
2124
2124
  }
2125
- g && c(_, v, m, $);
2125
+ N && c(O, v, m, $);
2126
2126
  }
2127
2127
  }
2128
2128
  } finally {
2129
- y = gi;
2129
+ b = gi;
2130
2130
  }
2131
- return S;
2131
+ return y;
2132
2132
  },
2133
2133
  startListening: d,
2134
2134
  stopListening: l,
@@ -2296,9 +2296,12 @@ var Fe = [
2296
2296
  toggleProfessional: (e, t) => {
2297
2297
  e.selectedProfessional = t.payload, e.superCategories = t.payload.superCategories || [], e.selectedServices = [], e.selectedCategory = null;
2298
2298
  },
2299
+ deleteService: (e, t) => {
2300
+ e.selectedServices = e.selectedServices.filter((r) => r.id !== t.payload);
2301
+ },
2299
2302
  clearServices: () => Pi
2300
2303
  }
2301
- }), { setServicePayload: ku, setCategory: Tv, toggleService: wi, clearServices: Av, incrementService: Du, decrementService: _i, toggleProfessional: Ru } = Ks.actions, Fu = Ks.reducer, We = "https://prod.aaravpos.com/api/v1", Ze = () => ({
2304
+ }), { setServicePayload: ku, setCategory: Tv, toggleService: wi, clearServices: Av, incrementService: Du, decrementService: _i, toggleProfessional: Ru, deleteService: xv } = Ks.actions, Fu = Ks.reducer, We = "https://prod.aaravpos.com/api/v1", Ze = () => ({
2302
2305
  "Content-Type": "application/json",
2303
2306
  Authorization: `Bearer ${Jr.getState()?.barber?.outletDetails?.token}`
2304
2307
  }), ju = async (e, t, r) => {
@@ -2494,7 +2497,7 @@ var Fe = [
2494
2497
  t.loading = !1, t.error = r.payload || "Appointment failed";
2495
2498
  });
2496
2499
  }
2497
- }), { resetAppointment: xv, setBookingMode: Mv, setUserDetails: wn, setTips: Ku, setAppointmentId: Jt, clearUserDetails: Js } = Xs.actions, Yu = Xs.reducer, Qs = Ye({
2500
+ }), { resetAppointment: Mv, setBookingMode: kv, setUserDetails: wn, setTips: Ku, setAppointmentId: Jt, clearUserDetails: Js } = Xs.actions, Yu = Xs.reducer, Qs = Ye({
2498
2501
  name: "outletList",
2499
2502
  initialState: { outlets: [] },
2500
2503
  reducers: {
@@ -2505,7 +2508,7 @@ var Fe = [
2505
2508
  e.outlets = [];
2506
2509
  }
2507
2510
  }
2508
- }), { setOutletList: Zu, clearOutletList: kv } = Qs.actions, Xu = Qs.reducer, ed = Ye({
2511
+ }), { setOutletList: Zu, clearOutletList: Dv } = Qs.actions, Xu = Qs.reducer, ed = Ye({
2509
2512
  name: "theme",
2510
2513
  initialState: {
2511
2514
  button: {
@@ -2612,7 +2615,7 @@ var af = (0, qn.combineReducers)({ barber: (0, qn.combineReducers)({
2612
2615
  Tl,
2613
2616
  Al
2614
2617
  ] } })
2615
- }), Ea = kl(Jr), Dv = Jr.getState;
2618
+ }), Ea = kl(Jr), Rv = Jr.getState;
2616
2619
  function lf({ children: e }) {
2617
2620
  return /* @__PURE__ */ u(Pl, {
2618
2621
  store: Jr,
@@ -2655,7 +2658,7 @@ var cf = (e) => {
2655
2658
  className: td("lucide", m, a),
2656
2659
  ...!i && !pf(s) && { "aria-hidden": "true" },
2657
2660
  ...s
2658
- }, [...o.map(([v, y]) => Dn(v, y)), ...Array.isArray(i) ? i : [i]]);
2661
+ }, [...o.map(([v, b]) => Dn(v, b)), ...Array.isArray(i) ? i : [i]]);
2659
2662
  }), te = (e, t) => {
2660
2663
  const r = qo(({ className: n, ...a }, i) => Dn(vf, {
2661
2664
  ref: i,
@@ -3012,7 +3015,7 @@ var cf = (e) => {
3012
3015
  EUR: Tf,
3013
3016
  GBP: zf
3014
3017
  }, Se = ({ size: e = 20 }) => {
3015
- const t = X((r) => r.barber.outletDetails?.currency);
3018
+ const t = J((r) => r.barber.outletDetails?.currency);
3016
3019
  return /* @__PURE__ */ u(t ? o1[t] : ad, { size: e });
3017
3020
  }, tn = (e = "") => {
3018
3021
  const t = e.trim().split(" ").filter(Boolean);
@@ -3022,7 +3025,7 @@ var cf = (e) => {
3022
3025
  return !e.taxRows || !e.taxRows.length ? 0 : e.taxRows.reduce((a, i) => i.isActive ? i.taxType === "FIXED" ? a + (i.taxRate || 0) * n : i.taxType === "PERCENTAGE" ? a + r * n * (i.taxRate || 0) / 100 : a : a, 0);
3023
3026
  };
3024
3027
  function d1() {
3025
- const e = ze(), { staff: t, selectedProfessional: r } = X((o) => o.barber.service), n = !t || t.length === 0, a = (o) => {
3028
+ const e = ze(), { staff: t, selectedProfessional: r } = J((o) => o.barber.service), n = !t || t.length === 0, a = (o) => {
3026
3029
  if (!o?.futureLeaveDates?.length) return {
3027
3030
  isOnLeave: !1,
3028
3031
  availableFrom: null
@@ -3046,7 +3049,7 @@ function d1() {
3046
3049
  }, i = (o) => {
3047
3050
  e(Ru(o)), e(_r(null)), e(Be());
3048
3051
  };
3049
- return /* @__PURE__ */ N("div", {
3052
+ return /* @__PURE__ */ g("div", {
3050
3053
  className: "aaravpos-barber-main-content",
3051
3054
  children: [n && /* @__PURE__ */ u("p", {
3052
3055
  className: "aaravpos-barber-no-staff",
@@ -3057,11 +3060,11 @@ function d1() {
3057
3060
  className: "aaravpos-barber-professional-grid",
3058
3061
  children: t?.map((o, s) => {
3059
3062
  const { isOnLeave: d, availableFrom: l } = a(o);
3060
- return /* @__PURE__ */ N("div", {
3063
+ return /* @__PURE__ */ g("div", {
3061
3064
  className: `aaravpos-barber-professional-card ${r?.id === o.id ? "active" : ""}`,
3062
3065
  onClick: () => i(o),
3063
3066
  children: [
3064
- /* @__PURE__ */ N("div", {
3067
+ /* @__PURE__ */ g("div", {
3065
3068
  className: "aaravpos-barber-professional-image-wrapper",
3066
3069
  children: [
3067
3070
  o.imageUrl ? /* @__PURE__ */ u("img", {
@@ -3077,7 +3080,7 @@ function d1() {
3077
3080
  className: "aaravpos-barber-professional-rating",
3078
3081
  children: "★ 4.9"
3079
3082
  }),
3080
- /* @__PURE__ */ N("div", {
3083
+ /* @__PURE__ */ g("div", {
3081
3084
  className: "aaravpos-barber-professional-overlay",
3082
3085
  children: [/* @__PURE__ */ u("h3", {
3083
3086
  className: "aaravpos-barber-professional-name",
@@ -3089,9 +3092,9 @@ function d1() {
3089
3092
  })
3090
3093
  ]
3091
3094
  }),
3092
- d && l && /* @__PURE__ */ N("div", {
3095
+ d && l && /* @__PURE__ */ g("div", {
3093
3096
  className: "aaravpos-barber-available-badge",
3094
- children: [/* @__PURE__ */ u("span", { className: "aaravpos-barber-available-dot" }), /* @__PURE__ */ N("p", {
3097
+ children: [/* @__PURE__ */ u("span", { className: "aaravpos-barber-available-dot" }), /* @__PURE__ */ g("p", {
3095
3098
  className: "aaravpos-barber-available-text",
3096
3099
  children: ["Available from ", l]
3097
3100
  })]
@@ -3146,10 +3149,10 @@ var it = [
3146
3149
  confirm: 2
3147
3150
  };
3148
3151
  function Ta() {
3149
- const e = ze(), { width: t } = l1(), { currentStep: r, completedSteps: n } = X((m) => m.barber.breadcrumbs), a = it.findIndex((m) => m.page === r), { selectedServices: i } = X((m) => m.barber.service), { isOpenSidebar: o } = X((m) => m.barber.theme), s = () => {
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 = () => {
3150
3153
  Ea.purge(), e({ type: "RESET_ALL" });
3151
3154
  }, d = (m) => {
3152
- const p = it.findIndex((y) => y.page === r), v = it.findIndex((y) => y.page === m);
3155
+ const p = it.findIndex((b) => b.page === r), v = it.findIndex((b) => b.page === m);
3153
3156
  v < p && (e(Eu(m)), v <= ki.time && e(Hu()), v <= ki.confirm && e(Js())), e(Ou(m));
3154
3157
  }, l = () => {
3155
3158
  if (a === 0) {
@@ -3159,7 +3162,7 @@ function Ta() {
3159
3162
  const m = it[a - 1];
3160
3163
  m && d(m.page);
3161
3164
  }, c = it[a], f = t < 991, h = i?.reduce((m, p) => m + p.qty, 0);
3162
- return /* @__PURE__ */ u($e, { children: f ? /* @__PURE__ */ N("div", {
3165
+ return /* @__PURE__ */ u($e, { children: f ? /* @__PURE__ */ g("div", {
3163
3166
  className: "aaravpos-barber-mobile-stepper",
3164
3167
  children: [/* @__PURE__ */ u("button", {
3165
3168
  onClick: l,
@@ -3169,7 +3172,7 @@ function Ta() {
3169
3172
  className: "aaravpos-barber-mobile-step-label",
3170
3173
  children: c?.label
3171
3174
  })]
3172
- }) : /* @__PURE__ */ N("div", {
3175
+ }) : /* @__PURE__ */ g("div", {
3173
3176
  className: "aaravpos-barber-desktop-stepper",
3174
3177
  children: [
3175
3178
  /* @__PURE__ */ u("button", {
@@ -3181,7 +3184,7 @@ function Ta() {
3181
3184
  className: "aaravpos-barber-step-nav",
3182
3185
  children: it.map((m) => {
3183
3186
  const p = r === m.page, v = n?.includes(m.page) || r === m.page;
3184
- return /* @__PURE__ */ N("button", {
3187
+ return /* @__PURE__ */ g("button", {
3185
3188
  onClick: () => {
3186
3189
  v && d(m.page);
3187
3190
  },
@@ -3196,7 +3199,7 @@ function Ta() {
3196
3199
  }, m.page);
3197
3200
  })
3198
3201
  }),
3199
- !o && /* @__PURE__ */ N("button", {
3202
+ !o && /* @__PURE__ */ g("button", {
3200
3203
  className: "aaravpos-barber-cart-btn",
3201
3204
  onClick: () => e(tt(!0)),
3202
3205
  children: [/* @__PURE__ */ u("span", {
@@ -3208,12 +3211,12 @@ function Ta() {
3208
3211
  }) });
3209
3212
  }
3210
3213
  function Aa({ children: e, sidebar: t, renderButton: r }) {
3211
- const { isOpenSidebar: n } = X((a) => a.barber.theme);
3212
- return /* @__PURE__ */ N("div", {
3214
+ const { isOpenSidebar: n } = J((a) => a.barber.theme);
3215
+ return /* @__PURE__ */ g("div", {
3213
3216
  className: "aaravpos-barber-main-layout",
3214
- children: [/* @__PURE__ */ N("div", {
3217
+ children: [/* @__PURE__ */ g("div", {
3215
3218
  className: n ? "aaravpos-barber-layout-wrapper" : "",
3216
- children: [/* @__PURE__ */ N("main", {
3219
+ children: [/* @__PURE__ */ g("main", {
3217
3220
  className: "aaravpos-barber-main-content",
3218
3221
  children: [e, r]
3219
3222
  }), /* @__PURE__ */ u("aside", {
@@ -3259,24 +3262,24 @@ var u1 = (e) => Number(e.price || e.min_price || 0), Qt = (e, { perUnit: t = !1
3259
3262
  "Dec"
3260
3263
  ];
3261
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 }) {
3262
- const p = ze(), { outletName: v, timeZone: y } = X((M) => M.barber.outletDetails), { selectedSlotIndexes: $, slots: S, selectedDate: b } = X((M) => M.barber.slots), { staff: P, selectedServices: _, selectedProfessional: g } = X((M) => M.barber.service), T = ve.now().setZone(y ?? "UTC"), [D, H] = Z(""), [J, ae] = Z(!1), ce = De(null), ue = De(null), [ye, Ce] = Z(0), me = [
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 = [
3263
3266
  0,
3264
3267
  5,
3265
3268
  10,
3266
3269
  15,
3267
3270
  20
3268
3271
  ], fe = ge(() => [
3269
- ...S?.morning || [],
3270
- ...S?.afternoon || [],
3271
- ...S?.evening || []
3272
- ], [S]), se = 15, Q = ge(() => {
3273
- if (!g?.id) return _.map((F) => ({
3272
+ ...y?.morning || [],
3273
+ ...y?.afternoon || [],
3274
+ ...y?.evening || []
3275
+ ], [y]), se = 15, Q = ge(() => {
3276
+ if (!N?.id) return O.map((F) => ({
3274
3277
  ...F,
3275
3278
  tax: Qt(F),
3276
3279
  unitTax: Qt(F, { perUnit: !0 })
3277
3280
  }));
3278
- const M = P?.find((F) => F.id === g.id);
3279
- return M ? _.map((F) => {
3281
+ const M = P?.find((F) => F.id === N.id);
3282
+ return M ? O.map((F) => {
3280
3283
  const pe = M.assignments?.find((Nt) => Nt.id === F.id), He = {
3281
3284
  ...F,
3282
3285
  price: pe?.price || F.price || F.min_price || 0,
@@ -3289,14 +3292,14 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3289
3292
  };
3290
3293
  }) : [];
3291
3294
  }, [
3292
- g,
3295
+ N,
3293
3296
  P,
3294
- _
3297
+ O
3295
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) => {
3296
3299
  if (!fe.length) return "";
3297
3300
  const F = fe[M]?.start_time, pe = fe[M + C - 1];
3298
3301
  return !F || !pe ? "" : `${F} - ${pe.end_time || pe.start_time}`;
3299
- }, k = b || {
3302
+ }, k = S || {
3300
3303
  day: T.day,
3301
3304
  month: T.month,
3302
3305
  year: T.year
@@ -3308,7 +3311,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3308
3311
  i,
3309
3312
  o
3310
3313
  ]);
3311
- const A = ge(() => f ? "Processing..." : c ? "Checking consents..." : s && d < l ? `Sign Consents (${d}/${l})` : /* @__PURE__ */ N($e, { children: [t || "Book Appointment", /* @__PURE__ */ u(Lf, {})] }), [
3314
+ const A = ge(() => f ? "Processing..." : c ? "Checking consents..." : s && d < l ? `Sign Consents (${d}/${l})` : /* @__PURE__ */ g($e, { children: [t || "Book Appointment", /* @__PURE__ */ u(Lf, {})] }), [
3312
3315
  f,
3313
3316
  c,
3314
3317
  s,
@@ -3333,48 +3336,48 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3333
3336
  a,
3334
3337
  d,
3335
3338
  l,
3336
- J
3337
- ]), /* @__PURE__ */ N("div", {
3339
+ X
3340
+ ]), /* @__PURE__ */ g("div", {
3338
3341
  className: "aaravpos-barber-order-sidebar",
3339
3342
  children: [
3340
- /* @__PURE__ */ N("div", {
3343
+ /* @__PURE__ */ g("div", {
3341
3344
  ref: ce,
3342
- children: [/* @__PURE__ */ N("div", {
3345
+ children: [/* @__PURE__ */ g("div", {
3343
3346
  className: "aaravpos-barber-order-header",
3344
- children: [/* @__PURE__ */ N("p", {
3347
+ children: [/* @__PURE__ */ g("p", {
3345
3348
  className: "aaravpos-barber-order-title",
3346
3349
  children: ["Your Order", /* @__PURE__ */ u("button", {
3347
3350
  className: "aaravpos-barber-sidebar-close-btn",
3348
3351
  onClick: () => p(tt(!1)),
3349
3352
  children: /* @__PURE__ */ u(en, { size: 18 })
3350
3353
  })]
3351
- }), /* @__PURE__ */ N("p", {
3354
+ }), /* @__PURE__ */ g("p", {
3352
3355
  className: "aaravpos-barber-order-subtitle",
3353
3356
  children: [v || "-", " Outlet"]
3354
3357
  })]
3355
- }), /* @__PURE__ */ N("div", {
3358
+ }), /* @__PURE__ */ g("div", {
3356
3359
  className: "aaravpos-barber-order-header",
3357
- children: [g?.id && /* @__PURE__ */ N("div", {
3360
+ children: [N?.id && /* @__PURE__ */ g("div", {
3358
3361
  className: "aaravpos-barber-pro-card aaravpos-barber-display-flex aaravpos-barber-tp-10",
3359
- children: [g.imageUrl ? /* @__PURE__ */ u("img", {
3360
- src: g.imageUrl,
3361
- alt: g.name,
3362
+ children: [N.imageUrl ? /* @__PURE__ */ u("img", {
3363
+ src: N.imageUrl,
3364
+ alt: N.name,
3362
3365
  className: "aaravpos-barber-pro-image"
3363
3366
  }) : /* @__PURE__ */ u("div", {
3364
3367
  className: "aaravpos-barber-pro-avatar",
3365
- style: { background: g.color || "#111" },
3366
- children: tn(g.name)
3367
- }), /* @__PURE__ */ N("div", {
3368
+ style: { background: N.color || "#111" },
3369
+ children: tn(N.name)
3370
+ }), /* @__PURE__ */ g("div", {
3368
3371
  className: "aaravpos-barber-pro-info",
3369
3372
  children: [/* @__PURE__ */ u("p", {
3370
3373
  className: "aaravpos-barber-pro-name",
3371
- children: g.name
3374
+ children: N.name
3372
3375
  }), /* @__PURE__ */ u("p", {
3373
3376
  className: "aaravpos-barber-pro-type",
3374
- children: g.staff_type
3377
+ children: N.staff_type
3375
3378
  })]
3376
3379
  })]
3377
- }), m && /* @__PURE__ */ N("div", {
3380
+ }), m && /* @__PURE__ */ g("div", {
3378
3381
  className: "aaravpos-barber-date-time aaravpos-barber-tp-10",
3379
3382
  children: [/* @__PURE__ */ u("span", {
3380
3383
  className: "aaravpos-barber-date-time-label",
@@ -3392,7 +3395,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3392
3395
  /* @__PURE__ */ u("ul", {
3393
3396
  className: "aaravpos-barber-order-list",
3394
3397
  style: { height: `${ye}px` },
3395
- children: Q?.length > 0 && Q.map((M) => /* @__PURE__ */ N("li", {
3398
+ children: Q?.length > 0 && Q.map((M) => /* @__PURE__ */ g("li", {
3396
3399
  className: "aaravpos-barber-order-item",
3397
3400
  children: [/* @__PURE__ */ u("div", {
3398
3401
  className: "aaravpos-barber-main-text",
@@ -3400,18 +3403,18 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3400
3403
  className: "aaravpos-barber-order-service-name",
3401
3404
  children: M.name
3402
3405
  })
3403
- }), /* @__PURE__ */ N("div", {
3406
+ }), /* @__PURE__ */ g("div", {
3404
3407
  className: "aaravpos-barber-order-details",
3405
3408
  children: [
3406
- /* @__PURE__ */ N("div", {
3409
+ /* @__PURE__ */ g("div", {
3407
3410
  className: "aaravpos-barber-order-detail",
3408
3411
  children: [/* @__PURE__ */ u(Uf, { size: 13 }), /* @__PURE__ */ u("span", { children: M.qty })]
3409
3412
  }),
3410
- /* @__PURE__ */ N("div", {
3413
+ /* @__PURE__ */ g("div", {
3411
3414
  className: "aaravpos-barber-order-detail center",
3412
- children: [/* @__PURE__ */ u(nd, { size: 13 }), /* @__PURE__ */ N("span", { children: [M.min_time || M.estimated_time, " min"] })]
3415
+ children: [/* @__PURE__ */ u(nd, { size: 13 }), /* @__PURE__ */ g("span", { children: [M.min_time || M.estimated_time, " min"] })]
3413
3416
  }),
3414
- /* @__PURE__ */ N("p", {
3417
+ /* @__PURE__ */ g("p", {
3415
3418
  className: "aaravpos-barber-order-detail right",
3416
3419
  children: [/* @__PURE__ */ u(Se, { size: 12 }), M.price || M.min_price]
3417
3420
  })
@@ -3419,32 +3422,32 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3419
3422
  })]
3420
3423
  }, M.id))
3421
3424
  }),
3422
- /* @__PURE__ */ N("div", {
3425
+ /* @__PURE__ */ g("div", {
3423
3426
  className: "third",
3424
3427
  ref: ue,
3425
3428
  children: [
3426
- h && e && /* @__PURE__ */ N($e, { children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-divider" }), /* @__PURE__ */ N("div", {
3429
+ h && e && /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-divider" }), /* @__PURE__ */ g("div", {
3427
3430
  className: "aaravpos-barber-order-footer",
3428
- children: [/* @__PURE__ */ N("div", {
3431
+ children: [/* @__PURE__ */ g("div", {
3429
3432
  className: "aaravpos-barber-order-subtotal",
3430
3433
  children: [/* @__PURE__ */ u("span", {
3431
3434
  className: "aaravpos-barber-order-subtotal-label",
3432
3435
  children: "Subtotal"
3433
- }), /* @__PURE__ */ N("span", {
3436
+ }), /* @__PURE__ */ g("span", {
3434
3437
  className: "aaravpos-barber-order-subtotal-price",
3435
3438
  children: [/* @__PURE__ */ u(Se, { size: 16 }), he.toFixed(2)]
3436
3439
  })]
3437
3440
  }), /* @__PURE__ */ u("button", {
3438
3441
  onClick: () => e("professionals"),
3439
- disabled: !_.length,
3442
+ disabled: !O.length,
3440
3443
  className: "aaravpos-barber-common-btn",
3441
- children: /* @__PURE__ */ N("span", {
3444
+ children: /* @__PURE__ */ g("span", {
3442
3445
  className: "aaravpos-barber-common-btn-content",
3443
3446
  children: ["Choose Time", /* @__PURE__ */ u(Qr, { size: 16 })]
3444
3447
  })
3445
3448
  })]
3446
3449
  })] }),
3447
- a && /* @__PURE__ */ N($e, { children: [
3450
+ a && /* @__PURE__ */ g($e, { children: [
3448
3451
  /* @__PURE__ */ u("p", {
3449
3452
  className: "aaravpos-barber-tip-title",
3450
3453
  children: "Add Tip"
@@ -3452,7 +3455,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3452
3455
  /* @__PURE__ */ u("div", {
3453
3456
  className: "aaravpos-barber-tip-options",
3454
3457
  children: [...me, "custom"].map((M, F) => {
3455
- const pe = M === "custom", He = pe ? J : z === M, Nt = F === 0, Ht = F === [...me, "custom"].length - 1;
3458
+ const pe = M === "custom", He = pe ? X : z === M, Nt = F === 0, Ht = F === [...me, "custom"].length - 1;
3456
3459
  return /* @__PURE__ */ u("button", {
3457
3460
  onClick: () => {
3458
3461
  pe ? (ae(!0), o?.(Number(D) || 0)) : (ae(!1), H(""), o?.(Number(M)));
@@ -3464,7 +3467,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3464
3467
  }, M);
3465
3468
  })
3466
3469
  }),
3467
- J && /* @__PURE__ */ u("div", {
3470
+ X && /* @__PURE__ */ u("div", {
3468
3471
  className: "aaravpos-barber-tip-input-wrapper",
3469
3472
  children: /* @__PURE__ */ u("input", {
3470
3473
  id: "number",
@@ -3480,9 +3483,9 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3480
3483
  })
3481
3484
  })
3482
3485
  ] }),
3483
- s && d < l && /* @__PURE__ */ N("div", {
3486
+ s && d < l && /* @__PURE__ */ g("div", {
3484
3487
  className: "aaravpos-barber-consent-box",
3485
- children: [/* @__PURE__ */ N("p", {
3488
+ children: [/* @__PURE__ */ g("p", {
3486
3489
  className: "aaravpos-barber-consent-text",
3487
3490
  children: [
3488
3491
  "Consent Required: ",
@@ -3499,28 +3502,28 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3499
3502
  })
3500
3503
  })]
3501
3504
  }),
3502
- m && /* @__PURE__ */ N("div", {
3505
+ m && /* @__PURE__ */ g("div", {
3503
3506
  className: "aaravpos-barber-mt-auto",
3504
3507
  children: [
3505
3508
  /* @__PURE__ */ u(En, {
3506
3509
  label: "Service",
3507
- value: /* @__PURE__ */ N($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), he.toFixed(2)] })
3510
+ value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), he.toFixed(2)] })
3508
3511
  }),
3509
3512
  a && /* @__PURE__ */ u(En, {
3510
3513
  label: `Tip (${z}%)`,
3511
- value: /* @__PURE__ */ N($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), W.toFixed(2)] })
3514
+ value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), W.toFixed(2)] })
3512
3515
  }),
3513
3516
  (!n || R) && /* @__PURE__ */ u(En, {
3514
3517
  label: "Taxes",
3515
- value: /* @__PURE__ */ N($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), G.toFixed(2)] })
3518
+ value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), G.toFixed(2)] })
3516
3519
  }),
3517
3520
  /* @__PURE__ */ u("div", { className: "aaravpos-barber-divider" }),
3518
- /* @__PURE__ */ N("div", {
3521
+ /* @__PURE__ */ g("div", {
3519
3522
  className: "aaravpos-barber-order-subtotal",
3520
3523
  children: [/* @__PURE__ */ u("span", {
3521
3524
  className: "aaravpos-barber-order-subtotal-label",
3522
3525
  children: "Total"
3523
- }), /* @__PURE__ */ N("span", {
3526
+ }), /* @__PURE__ */ g("span", {
3524
3527
  className: "aaravpos-barber-order-subtotal-price",
3525
3528
  children: [/* @__PURE__ */ u(Se, { size: 16 }), K.toFixed(2)]
3526
3529
  })]
@@ -3542,7 +3545,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3542
3545
  });
3543
3546
  }
3544
3547
  function En({ label: e, value: t }) {
3545
- return /* @__PURE__ */ N("div", {
3548
+ return /* @__PURE__ */ g("div", {
3546
3549
  className: "aaravpos-barber-summary-row",
3547
3550
  children: [/* @__PURE__ */ u("span", {
3548
3551
  className: "aaravpos-barber-summary-label",
@@ -3554,49 +3557,49 @@ function En({ label: e, value: t }) {
3554
3557
  });
3555
3558
  }
3556
3559
  function p1() {
3557
- const e = ze(), { isOpenSidebar: t } = X((b) => b.barber.theme), r = De(null), n = De(null), { superCategories: a, selectedServices: i, selectedProfessional: o, loading: s } = X((b) => b.barber.service), [d, l] = Z(null), [c, f] = Z(null), [h, m] = Z(""), p = a || [], v = ge(() => d ? c ? c?.services || [] : d?.categories?.flatMap((b) => b.services || []) || [] : [], [d, c]), y = ge(() => p?.flatMap((b) => b.categories?.flatMap((P) => P.services || [])) || [], [p]), $ = ge(() => {
3558
- const b = h.trim().toLowerCase();
3559
- return b ? y.filter((P) => P.name?.toLowerCase().includes(b) || P.description?.toLowerCase().includes(b)) : v;
3560
+ const e = ze(), t = De(null), r = De(null), { superCategories: n, selectedServices: a, selectedProfessional: i, loading: o } = J((y) => y.barber.service), [s, d] = Z(null), [l, c] = Z(null), [f, h] = Z(""), m = n || [], p = ge(() => s ? l ? l?.services || [] : s?.categories?.flatMap((y) => y.services || []) || [] : [], [s, l]), v = ge(() => m?.flatMap((y) => y.categories?.flatMap((S) => S.services || [])) || [], [m]), b = ge(() => {
3561
+ const y = f.trim().toLowerCase();
3562
+ return y ? v.filter((S) => S.name?.toLowerCase().includes(y) || S.description?.toLowerCase().includes(y)) : p;
3560
3563
  }, [
3561
- h,
3562
- y,
3563
- v
3564
- ]), S = (b) => b.taxRows?.some((P) => P.isActive) || !1;
3564
+ f,
3565
+ v,
3566
+ p
3567
+ ]), $ = (y) => y.taxRows?.some((S) => S.isActive) || !1;
3565
3568
  return de(() => {
3566
- if (!p?.length) return;
3567
- const b = p.find((P) => P?.categories?.some((_) => _?.services?.length > 0));
3568
- b && !d && (l(b), f(null));
3569
- }, [p, d]), /* @__PURE__ */ N(Aa, {
3569
+ if (!m?.length) return;
3570
+ const y = m.find((S) => S?.categories?.some((P) => P?.services?.length > 0));
3571
+ y && !s && (d(y), c(null));
3572
+ }, [m, s]), /* @__PURE__ */ g(Aa, {
3570
3573
  sidebar: /* @__PURE__ */ u(xa, {
3571
3574
  goToStep: () => e(Be()),
3572
3575
  showFooterButton: !0,
3573
3576
  showBookingSection: !1
3574
3577
  }),
3575
- renderButton: i.length > 0 ? /* @__PURE__ */ u("button", {
3578
+ renderButton: a.length > 0 ? /* @__PURE__ */ u("button", {
3576
3579
  onClick: () => e(Be()),
3577
- disabled: !i.length,
3580
+ disabled: !a.length,
3578
3581
  className: "aaravpos-barber-btn",
3579
- children: /* @__PURE__ */ N("span", {
3582
+ children: /* @__PURE__ */ g("span", {
3580
3583
  className: "aaravpos-barber-btn-content",
3581
3584
  children: ["Choose Time ", /* @__PURE__ */ u(Qr, { size: 16 })]
3582
3585
  })
3583
3586
  }) : null,
3584
- children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */ N("div", {
3587
+ children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */ g("div", {
3585
3588
  className: "aaravpos-barber-margin-top-20",
3586
3589
  children: [
3587
- /* @__PURE__ */ N("div", {
3590
+ /* @__PURE__ */ g("div", {
3588
3591
  className: "aaravpos-barber-navbar-form",
3589
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ u("h1", {
3592
+ children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ u("h1", {
3590
3593
  className: "aaravpos-barber-page-title",
3591
3594
  children: "Choose a Service"
3592
- }), /* @__PURE__ */ N("p", {
3595
+ }), /* @__PURE__ */ g("p", {
3593
3596
  className: "aaravpos-barber-sub-title",
3594
3597
  children: [
3595
3598
  "Select from ",
3596
- o?.name,
3599
+ i?.name,
3597
3600
  "'s available services"
3598
3601
  ]
3599
- })] }), /* @__PURE__ */ N("div", {
3602
+ })] }), /* @__PURE__ */ g("div", {
3600
3603
  className: "aaravpos-barber-search-wrapper",
3601
3604
  children: [
3602
3605
  /* @__PURE__ */ u("span", {
@@ -3608,14 +3611,14 @@ function p1() {
3608
3611
  name: "search",
3609
3612
  type: "text",
3610
3613
  placeholder: "Search services...",
3611
- value: h,
3612
- onChange: (b) => m(b.target.value),
3614
+ value: f,
3615
+ onChange: (y) => h(y.target.value),
3613
3616
  className: "aaravpos-barber-search-input"
3614
3617
  }),
3615
3618
  /* @__PURE__ */ u("div", {
3616
3619
  className: "aaravpos-barber-search-actions",
3617
- children: h && /* @__PURE__ */ u("button", {
3618
- onClick: () => m(""),
3620
+ children: f && /* @__PURE__ */ u("button", {
3621
+ onClick: () => h(""),
3619
3622
  className: "aaravpos-barber-search-clear",
3620
3623
  children: /* @__PURE__ */ u(en, { size: 16 })
3621
3624
  })
@@ -3624,117 +3627,117 @@ function p1() {
3624
3627
  })]
3625
3628
  }),
3626
3629
  /* @__PURE__ */ u("div", {
3627
- ref: r,
3628
- onWheel: (b) => {
3629
- r.current && (r.current.scrollLeft += b.deltaY);
3630
+ ref: t,
3631
+ onWheel: (y) => {
3632
+ t.current && (t.current.scrollLeft += y.deltaY);
3630
3633
  },
3631
3634
  className: "aaravpos-barber-supercategory-wrapper",
3632
- children: p?.map((b) => /* @__PURE__ */ u("button", {
3635
+ children: m?.map((y) => /* @__PURE__ */ u("button", {
3633
3636
  onClick: () => {
3634
- l(b), f(null);
3637
+ d(y), c(null);
3635
3638
  },
3636
- className: `aaravpos-barber-supercategory-btn ${d?.id === b.id ? "active" : ""}`,
3639
+ className: `aaravpos-barber-supercategory-btn ${s?.id === y.id ? "active" : ""}`,
3637
3640
  children: /* @__PURE__ */ u("h3", {
3638
3641
  className: "aaravpos-barber-supercategory-title",
3639
- children: b?.isStandAloneCategory ? "Standalone" : b.name
3642
+ children: y?.isStandAloneCategory ? "Standalone" : y.name
3640
3643
  })
3641
- }, b.id))
3644
+ }, y.id))
3642
3645
  }),
3643
- d?.categories?.some((b) => b?.services?.length > 0) && /* @__PURE__ */ N("div", {
3644
- ref: n,
3645
- onWheel: (b) => {
3646
- n.current && (n.current.scrollLeft += b.deltaY);
3646
+ s?.categories?.some((y) => y?.services?.length > 0) && /* @__PURE__ */ g("div", {
3647
+ ref: r,
3648
+ onWheel: (y) => {
3649
+ r.current && (r.current.scrollLeft += y.deltaY);
3647
3650
  },
3648
3651
  className: "aaravpos-barber-supercategory-wrapper",
3649
- children: [/* @__PURE__ */ N("button", {
3650
- onClick: () => f(null),
3651
- className: `aaravpos-barber-subcategory-btn ${c ? "" : "active"}`,
3652
+ children: [/* @__PURE__ */ g("button", {
3653
+ onClick: () => c(null),
3654
+ className: `aaravpos-barber-subcategory-btn ${l ? "" : "active"}`,
3652
3655
  children: [
3653
3656
  "All Services (",
3654
- d?.categories?.reduce((b, P) => b + (P?.services?.length || 0), 0),
3657
+ s?.categories?.reduce((y, S) => y + (S?.services?.length || 0), 0),
3655
3658
  ")"
3656
3659
  ]
3657
- }), d?.categories?.map((b) => /* @__PURE__ */ N("button", {
3658
- onClick: () => f(b),
3659
- className: `aaravpos-barber-subcategory-btn ${c?.id === b.id ? "active" : ""}`,
3660
+ }), s?.categories?.map((y) => /* @__PURE__ */ g("button", {
3661
+ onClick: () => c(y),
3662
+ className: `aaravpos-barber-subcategory-btn ${l?.id === y.id ? "active" : ""}`,
3660
3663
  children: [
3661
- b.name,
3664
+ y.name,
3662
3665
  " (",
3663
- b.services.length,
3666
+ y.services.length,
3664
3667
  ")"
3665
3668
  ]
3666
- }, b.id))]
3669
+ }, y.id))]
3667
3670
  }),
3668
3671
  /* @__PURE__ */ u("div", {
3669
3672
  className: "aaravpos-barber-services-wrapper",
3670
3673
  children: /* @__PURE__ */ u("div", {
3671
3674
  className: "aaravpos-barber-services-grid",
3672
- children: s ? Array.from({ length: 10 }).map((b, P) => /* @__PURE__ */ u(c1, {}, P)) : /* @__PURE__ */ u($e, { children: $?.length ? $?.map((b, P) => /* @__PURE__ */ N("div", {
3675
+ children: o ? Array.from({ length: 10 }).map((y, S) => /* @__PURE__ */ u(c1, {}, S)) : /* @__PURE__ */ u($e, { children: b?.length ? b?.map((y, S) => /* @__PURE__ */ g("div", {
3673
3676
  onClick: () => {
3674
- const _ = i.find((g) => g.id === b.id);
3675
- _ && _.qty === 1 ? e(_i(String(b.id))) : e(wi({
3676
- ...b,
3677
- price: b.price ? Number(b.price) : void 0
3678
- })), !t && window.innerWidth > 991 && e(tt(!0));
3677
+ const P = a.find((O) => O.id === y.id);
3678
+ P && P.qty === 1 ? e(_i(String(y.id))) : e(wi({
3679
+ ...y,
3680
+ price: y.price ? Number(y.price) : void 0
3681
+ })), window.innerWidth > 991 && e(tt(!0));
3679
3682
  },
3680
- className: `aaravpos-barber-service-card ${i.some((_) => _.id === b.id) ? "active" : ""}`,
3683
+ className: `aaravpos-barber-service-card ${a.some((P) => P.id === y.id) ? "active" : ""}`,
3681
3684
  children: [
3682
- S(b) && /* @__PURE__ */ u("span", {
3685
+ $(y) && /* @__PURE__ */ u("span", {
3683
3686
  className: "aaravpos-barber-tax-badge",
3684
3687
  children: "TAX"
3685
3688
  }),
3686
- Ys(b) && /* @__PURE__ */ u("span", {
3689
+ Ys(y) && /* @__PURE__ */ u("span", {
3687
3690
  className: "aaravpos-barber-consent-badge",
3688
3691
  children: "CONSENT"
3689
3692
  }),
3690
3693
  /* @__PURE__ */ u("p", {
3691
3694
  className: "aaravpos-barber-service-title",
3692
- children: b.name
3695
+ children: y.name
3693
3696
  }),
3694
- /* @__PURE__ */ N("div", {
3697
+ /* @__PURE__ */ g("div", {
3695
3698
  className: "aaravpos-barber-service-description-wrapper",
3696
3699
  children: [/* @__PURE__ */ u("p", {
3697
3700
  className: "aaravpos-barber-service-description",
3698
- children: b.description
3699
- }), b.description && b.description.length > 30 && /* @__PURE__ */ u("div", {
3701
+ children: y.description
3702
+ }), y.description && y.description.length > 30 && /* @__PURE__ */ u("div", {
3700
3703
  className: "aaravpos-barber-service-tooltip",
3701
- children: b.description
3704
+ children: y.description
3702
3705
  })]
3703
3706
  }),
3704
- /* @__PURE__ */ N("p", {
3707
+ /* @__PURE__ */ g("p", {
3705
3708
  className: "aaravpos-barber-service-price",
3706
- children: [/* @__PURE__ */ u("span", { children: b.estimated_time ? `${b.estimated_time} min` : `${b.min_time}-${b.max_time} min` }), /* @__PURE__ */ u("span", {
3709
+ children: [/* @__PURE__ */ u("span", { children: y.estimated_time ? `${y.estimated_time} min` : `${y.min_time}-${y.max_time} min` }), /* @__PURE__ */ u("span", {
3707
3710
  className: "aaravpos-barber-service-price-right",
3708
- children: b.price ? /* @__PURE__ */ N($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), b.price] }) : /* @__PURE__ */ N($e, { children: [
3711
+ children: y.price ? /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), y.price] }) : /* @__PURE__ */ g($e, { children: [
3709
3712
  /* @__PURE__ */ u(Se, { size: 14 }),
3710
- b.min_price,
3713
+ y.min_price,
3711
3714
  " - ",
3712
3715
  /* @__PURE__ */ u(Se, { size: 14 }),
3713
- b.max_price
3716
+ y.max_price
3714
3717
  ] })
3715
3718
  })]
3716
3719
  }),
3717
- /* @__PURE__ */ N("div", {
3720
+ /* @__PURE__ */ g("div", {
3718
3721
  className: "aaravpos-barber-service-actions",
3719
3722
  children: [
3720
3723
  /* @__PURE__ */ u("button", {
3721
- onClick: (_) => {
3722
- _.stopPropagation(), e(_i(String(b.id))), !t && window.innerWidth > 991 && e(tt(!0));
3724
+ onClick: (P) => {
3725
+ P.stopPropagation(), e(_i(String(y.id))), window.innerWidth > 991 && e(tt(!0));
3723
3726
  },
3724
- disabled: (i.find((_) => _.id === b.id)?.qty || 0) <= 0,
3727
+ disabled: (a.find((P) => P.id === y.id)?.qty || 0) <= 0,
3725
3728
  className: "aaravpos-barber-service-action-btn",
3726
3729
  children: /* @__PURE__ */ u(kf, { size: 14 })
3727
3730
  }),
3728
3731
  /* @__PURE__ */ u("span", {
3729
3732
  className: "aaravpos-barber-service-qty",
3730
- children: i.find((_) => _.id === b.id)?.qty || 0
3733
+ children: a.find((P) => P.id === y.id)?.qty || 0
3731
3734
  }),
3732
3735
  /* @__PURE__ */ u("button", {
3733
- onClick: (_) => {
3734
- _.stopPropagation(), i.find((g) => g.id === b.id) ? e(Du(String(b.id))) : e(wi({
3735
- ...b,
3736
- price: b.price ? Number(b.price) : void 0
3737
- })), !t && window.innerWidth > 991 && e(tt(!0));
3736
+ onClick: (P) => {
3737
+ P.stopPropagation(), a.find((O) => O.id === y.id) ? e(Du(String(y.id))) : e(wi({
3738
+ ...y,
3739
+ price: y.price ? Number(y.price) : void 0
3740
+ })), window.innerWidth > 991 && e(tt(!0));
3738
3741
  },
3739
3742
  className: "aaravpos-barber-service-action-btn plus",
3740
3743
  children: /* @__PURE__ */ u(id, { size: 14 })
@@ -3742,14 +3745,14 @@ function p1() {
3742
3745
  ]
3743
3746
  })
3744
3747
  ]
3745
- }, P)) : /* @__PURE__ */ N("div", {
3748
+ }, S)) : /* @__PURE__ */ g("div", {
3746
3749
  className: "aaravpos-barber-empty-services",
3747
3750
  children: [/* @__PURE__ */ u("h3", {
3748
3751
  className: "aaravpos-barber-empty-services-title",
3749
3752
  children: "No Services Found"
3750
3753
  }), /* @__PURE__ */ u("p", {
3751
3754
  className: "aaravpos-barber-empty-services-text",
3752
- children: h ? "No services found for your search." : "No services are available for this professional."
3755
+ children: f ? "No services found for your search." : "No services are available for this professional."
3753
3756
  })]
3754
3757
  }) })
3755
3758
  })
@@ -3807,7 +3810,7 @@ var Er = ({ dateObj: e, selectedProfessional: t, outletTimeZone: r }) => {
3807
3810
  "S"
3808
3811
  ];
3809
3812
  function v1({ isOpen: e, onClose: t }) {
3810
- const r = ze(), { selectedDate: n } = X((p) => p.barber.slots), { selectedProfessional: a } = X((p) => p.barber.service), { timeZone: i } = X((p) => p.barber.outletDetails), [o] = Z(m1(i || "")), s = () => {
3813
+ const r = ze(), { selectedDate: n } = J((p) => p.barber.slots), { selectedProfessional: a } = J((p) => p.barber.service), { timeZone: i } = J((p) => p.barber.outletDetails), [o] = Z(m1(i || "")), s = () => {
3811
3814
  if (!n) return 0;
3812
3815
  const p = o.findIndex((v) => v.monthIdx === n.month && v.year === n.year);
3813
3816
  return p >= 0 ? p : 0;
@@ -3824,7 +3827,7 @@ function v1({ isOpen: e, onClose: t }) {
3824
3827
  const c = o[d];
3825
3828
  if (!e) return null;
3826
3829
  const f = ve.now().setZone(i ?? "UTC").startOf("day"), h = f.plus({ months: 3 }).minus({ days: 1 }), m = (p, v) => {
3827
- const y = ve.fromObject({
3830
+ const b = ve.fromObject({
3828
3831
  year: c.year,
3829
3832
  month: p,
3830
3833
  day: v
@@ -3832,9 +3835,9 @@ function v1({ isOpen: e, onClose: t }) {
3832
3835
  day: v,
3833
3836
  month: p,
3834
3837
  year: c.year,
3835
- fullDate: y.toISODate() || ""
3836
- }, S = y.startOf("day");
3837
- S < f || S > h || Er({
3838
+ fullDate: b.toISODate() || ""
3839
+ }, y = b.startOf("day");
3840
+ y < f || y > h || Er({
3838
3841
  dateObj: $,
3839
3842
  selectedProfessional: a,
3840
3843
  outletTimeZone: i || "UTC"
@@ -3847,9 +3850,9 @@ function v1({ isOpen: e, onClose: t }) {
3847
3850
  return /* @__PURE__ */ u("div", {
3848
3851
  className: "aaravpos-barber-date-modal-overlay",
3849
3852
  onClick: (p) => p.target === p.currentTarget && t(),
3850
- children: /* @__PURE__ */ N("div", {
3853
+ children: /* @__PURE__ */ g("div", {
3851
3854
  className: "aaravpos-barber-date-modal",
3852
- children: [/* @__PURE__ */ N("div", {
3855
+ children: [/* @__PURE__ */ g("div", {
3853
3856
  className: "aaravpos-barber-date-modal-header",
3854
3857
  children: [/* @__PURE__ */ u("h2", {
3855
3858
  className: "aaravpos-barber-date-modal-title",
@@ -3859,9 +3862,9 @@ function v1({ isOpen: e, onClose: t }) {
3859
3862
  className: "aaravpos-barber-date-close-btn",
3860
3863
  children: /* @__PURE__ */ u(en, {})
3861
3864
  })]
3862
- }), /* @__PURE__ */ N("div", {
3865
+ }), /* @__PURE__ */ g("div", {
3863
3866
  className: "aaravpos-barber-date-modal-body",
3864
- children: [/* @__PURE__ */ N("div", {
3867
+ children: [/* @__PURE__ */ g("div", {
3865
3868
  className: "aaravpos-barber-date-nav",
3866
3869
  children: [
3867
3870
  /* @__PURE__ */ u("button", {
@@ -3881,7 +3884,7 @@ function v1({ isOpen: e, onClose: t }) {
3881
3884
  children: /* @__PURE__ */ u(Qr, {})
3882
3885
  })
3883
3886
  ]
3884
- }), /* @__PURE__ */ N("div", {
3887
+ }), /* @__PURE__ */ g("div", {
3885
3888
  className: "aaravpos-barber-calendar-grid",
3886
3889
  children: [
3887
3890
  h1.map((p, v) => /* @__PURE__ */ u("div", {
@@ -3890,33 +3893,33 @@ function v1({ isOpen: e, onClose: t }) {
3890
3893
  }, v)),
3891
3894
  Array.from({ length: c?.startDow || 0 }).map((p, v) => /* @__PURE__ */ u("div", {}, `e${v}`)),
3892
3895
  Array.from({ length: c?.days || 0 }, (p, v) => v + 1).map((p) => {
3893
- const v = n?.month === c?.monthIdx && n?.day === p, y = c?.monthIdx === f.month && p === f.day, $ = ve.fromObject({
3896
+ const v = n?.month === c?.monthIdx && n?.day === p, b = c?.monthIdx === f.month && p === f.day, $ = ve.fromObject({
3894
3897
  year: c.year,
3895
3898
  month: c.monthIdx,
3896
3899
  day: p
3897
- }, { zone: i || "UTC" }), S = {
3900
+ }, { zone: i || "UTC" }), y = {
3898
3901
  day: p,
3899
3902
  month: c.monthIdx,
3900
3903
  year: c.year,
3901
3904
  fullDate: $.toISODate() || ""
3902
- }, b = $.startOf("day"), P = b < f, _ = b > h, g = Er({
3903
- dateObj: S,
3905
+ }, S = $.startOf("day"), P = S < f, O = S > h, N = Er({
3906
+ dateObj: y,
3904
3907
  selectedProfessional: a,
3905
3908
  outletTimeZone: i || "UTC"
3906
3909
  });
3907
- return /* @__PURE__ */ N("div", {
3910
+ return /* @__PURE__ */ g("div", {
3908
3911
  onClick: () => {
3909
- g || m(c.monthIdx, p);
3912
+ N || m(c.monthIdx, p);
3910
3913
  },
3911
3914
  className: [
3912
3915
  "aaravpos-barber-calendar-day",
3913
- !v && !g && "aaravpos-barber-calendar-day-active",
3914
- y && !v && "aaravpos-barber-calendar-day-today",
3916
+ !v && !N && "aaravpos-barber-calendar-day-active",
3917
+ b && !v && "aaravpos-barber-calendar-day-today",
3915
3918
  v && "aaravpos-barber-calendar-day-selected",
3916
- g && "aaravpos-barber-calendar-day-disabled",
3917
- (P || _) && "aaravpos-barber-calendar-day-disabled"
3919
+ N && "aaravpos-barber-calendar-day-disabled",
3920
+ (P || O) && "aaravpos-barber-calendar-day-disabled"
3918
3921
  ].filter(Boolean).join(" "),
3919
- children: [g && /* @__PURE__ */ u("div", { className: "aaravpos-barber-calendar-day-slash" }), /* @__PURE__ */ u("span", {
3922
+ children: [N && /* @__PURE__ */ u("div", { className: "aaravpos-barber-calendar-day-slash" }), /* @__PURE__ */ u("span", {
3920
3923
  className: "aaravpos-barber-calendar-day-text",
3921
3924
  children: p
3922
3925
  })]
@@ -3933,7 +3936,7 @@ function y1() {
3933
3936
  className: "aaravpos-barber-scroll-area",
3934
3937
  children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ u("div", {
3935
3938
  className: "aaravpos-barber-slot-section",
3936
- children: /* @__PURE__ */ N("div", {
3939
+ children: /* @__PURE__ */ g("div", {
3937
3940
  className: "aaravpos-barber-slot-section-header",
3938
3941
  children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-slot-skeleton-title shimmer" }), /* @__PURE__ */ u("div", { className: "aaravpos-barber-slot-skeleton-arrow shimmer" })]
3939
3942
  })
@@ -3963,11 +3966,11 @@ var Di = [
3963
3966
  "Sat"
3964
3967
  ];
3965
3968
  function $1() {
3966
- const e = ze(), [t, r] = Z(11), { staff: n, selectedServices: a, selectedProfessional: i } = X((x) => x.barber.service), { tenantId: o, timeZone: s } = X((x) => x?.barber?.outletDetails), { selectedSlotIndexes: d, selectedDate: l, selectedTime: c, slots: f, loading: h } = X((x) => x.barber.slots), [m, p] = Z(!1), [v, y] = Z(0), $ = 15, S = ge(() => [
3969
+ const e = ze(), [t, r] = Z(11), { staff: n, selectedServices: a, selectedProfessional: i } = J((x) => x.barber.service), { tenantId: o, timeZone: s } = J((x) => x?.barber?.outletDetails), { selectedSlotIndexes: d, selectedDate: l, selectedTime: c, slots: f, loading: h } = J((x) => x.barber.slots), [m, p] = Z(!1), [v, b] = Z(0), $ = 15, y = ge(() => [
3967
3970
  f.morning,
3968
3971
  f.afternoon,
3969
3972
  f.evening
3970
- ].flat(), [f]), b = ge(() => ve.now().setZone(s).startOf("day"), [s]), P = ge(() => b.plus({ months: 3 }).minus({ days: 1 }), [b]), _ = (x, C) => {
3973
+ ].flat(), [f]), S = ge(() => ve.now().setZone(s).startOf("day"), [s]), P = ge(() => S.plus({ months: 3 }).minus({ days: 1 }), [S]), O = (x, C) => {
3971
3974
  try {
3972
3975
  if (!x.isValid || !C.isValid) throw new Error("Invalid timezone or date range");
3973
3976
  const E = Math.floor(C.diff(x, "days").days) + 1;
@@ -3983,7 +3986,7 @@ function $1() {
3983
3986
  } catch (E) {
3984
3987
  return console.error("generateDates error:", E), [];
3985
3988
  }
3986
- }, g = ge(() => _(b, P), [b, P]), T = ge(() => {
3989
+ }, N = ge(() => O(S, P), [S, P]), T = ge(() => {
3987
3990
  if (!i?.id) return [];
3988
3991
  const x = n?.find((C) => C.id === i.id);
3989
3992
  return x ? a.map((C) => {
@@ -3999,44 +4002,44 @@ function $1() {
3999
4002
  i,
4000
4003
  n,
4001
4004
  a
4002
- ]), D = T.reduce((x, C) => x + Number(C.duration) * (C.qty || 1), 0), H = Math.ceil(D / $), J = l ? ve.fromObject(l).toFormat("yyyy-MM-dd") : null;
4005
+ ]), D = T.reduce((x, C) => x + Number(C.duration) * (C.qty || 1), 0), H = Math.ceil(D / $), X = l ? ve.fromObject(l).toFormat("yyyy-MM-dd") : null;
4003
4006
  de(() => {
4004
- !i?.id || !J || e(dr({
4007
+ !i?.id || !X || e(dr({
4005
4008
  tenantId: o,
4006
4009
  staffId: i.id,
4007
- date: J
4010
+ date: X
4008
4011
  }));
4009
4012
  }, [
4010
4013
  i?.id,
4011
- J,
4014
+ X,
4012
4015
  e,
4013
4016
  o
4014
4017
  ]);
4015
4018
  const ae = (x) => {
4016
- y((C) => Math.max(0, Math.min(g.length - t, C + x * 4)));
4019
+ b((C) => Math.max(0, Math.min(N.length - t, C + x * 4)));
4017
4020
  };
4018
4021
  de(() => {
4019
4022
  l || e(_r({
4020
- day: b.day,
4021
- month: b.month,
4022
- year: b.year
4023
+ day: S.day,
4024
+ month: S.month,
4025
+ year: S.year
4023
4026
  }));
4024
4027
  }, [
4025
4028
  l,
4026
- b,
4029
+ S,
4027
4030
  e
4028
4031
  ]), de(() => {
4029
- if (!l || !g.length) return;
4030
- const x = g.findIndex((C) => C.day === l.day && C.month === l.month && C.year === l.year);
4031
- x !== -1 && y(Math.max(0, Math.min(g.length - t, x - Math.floor(t / 2))));
4032
+ if (!l || !N.length) return;
4033
+ const x = N.findIndex((C) => C.day === l.day && C.month === l.month && C.year === l.year);
4034
+ x !== -1 && b(Math.max(0, Math.min(N.length - t, x - Math.floor(t / 2))));
4032
4035
  }, [
4033
4036
  l,
4034
- g,
4037
+ N,
4035
4038
  t
4036
4039
  ]);
4037
4040
  const ce = (x) => {
4038
4041
  const C = ve.fromISO(x.fullDate || "").setZone(s || "UTC").startOf("day");
4039
- if (C < b || C > P || Er({
4042
+ if (C < S || C > P || Er({
4040
4043
  dateObj: x,
4041
4044
  selectedProfessional: i,
4042
4045
  outletTimeZone: s || "UTC"
@@ -4050,8 +4053,8 @@ function $1() {
4050
4053
  year: x.year
4051
4054
  })), e(Pn(null));
4052
4055
  }, ue = (x) => {
4053
- if (!S.length) return;
4054
- const C = S.slice(x, x + H);
4056
+ if (!y.length) return;
4057
+ const C = y.slice(x, x + H);
4055
4058
  if (C.length < H) {
4056
4059
  re.warning("You don't have sufficient time for selected service");
4057
4060
  return;
@@ -4060,27 +4063,27 @@ function $1() {
4060
4063
  re.warning("Selected time range is not fully available");
4061
4064
  return;
4062
4065
  }
4063
- e(Pn(S[x].start_time));
4066
+ e(Pn(y[x].start_time));
4064
4067
  const E = Array.from({ length: H }, (k, U) => x + U);
4065
4068
  e(Sn({
4066
4069
  indexes: E,
4067
- ids: E.map((k) => S[k]?.id)
4070
+ ids: E.map((k) => y[k]?.id)
4068
4071
  })), setTimeout(() => {
4069
4072
  e(Be());
4070
4073
  }, 200);
4071
4074
  };
4072
4075
  de(() => {
4073
- if (!c || !S.length) return;
4074
- const x = S.findIndex((E) => E.start_time === c);
4076
+ if (!c || !y.length) return;
4077
+ const x = y.findIndex((E) => E.start_time === c);
4075
4078
  if (x === -1) return;
4076
4079
  const C = Array.from({ length: H }, (E, k) => x + k);
4077
4080
  C.length === d.length && C.every((E, k) => E === d[k]) || e(Sn({
4078
4081
  indexes: C,
4079
- ids: C.map((E) => S[E]?.id)
4082
+ ids: C.map((E) => y[E]?.id)
4080
4083
  }));
4081
4084
  }, [
4082
4085
  c,
4083
- S,
4086
+ y,
4084
4087
  H,
4085
4088
  d
4086
4089
  ]), de(() => {
@@ -4092,11 +4095,11 @@ function $1() {
4092
4095
  }, []);
4093
4096
  const ye = f?.morning || [], Ce = f?.afternoon || [], me = f?.evening || [], fe = (x) => x.some((C) => !C.isBooked && C.status === "AVAILABLE"), se = () => fe(ye) ? "morning" : fe(Ce) ? "afternoon" : fe(me) ? "evening" : null, [Q, he] = Z(se());
4094
4097
  return de(() => {
4095
- const x = S[d[0]];
4098
+ const x = y[d[0]];
4096
4099
  x && (ye.some((C) => C.id === x.id) ? he("morning") : Ce.some((C) => C.id === x.id) ? he("afternoon") : me.some((C) => C.id === x.id) && he("evening"));
4097
4100
  }, [
4098
4101
  d,
4099
- S,
4102
+ y,
4100
4103
  ye,
4101
4104
  Ce,
4102
4105
  me
@@ -4109,7 +4112,7 @@ function $1() {
4109
4112
  h,
4110
4113
  l,
4111
4114
  e
4112
- ]), /* @__PURE__ */ N(Aa, {
4115
+ ]), /* @__PURE__ */ g(Aa, {
4113
4116
  sidebar: /* @__PURE__ */ u("div", {
4114
4117
  className: "aaravpos-barber-aside",
4115
4118
  children: /* @__PURE__ */ u(xa, {
@@ -4134,22 +4137,22 @@ function $1() {
4134
4137
  children: "Choose a Time"
4135
4138
  })
4136
4139
  }),
4137
- /* @__PURE__ */ N("div", {
4140
+ /* @__PURE__ */ g("div", {
4138
4141
  className: "aaravpos-barber-date-wrapper",
4139
- children: [/* @__PURE__ */ N("div", {
4142
+ children: [/* @__PURE__ */ g("div", {
4140
4143
  className: "aaravpos-barber-date-strip",
4141
4144
  children: [
4142
4145
  /* @__PURE__ */ u(Ri, {
4143
4146
  onClick: () => ae(-1),
4144
4147
  children: /* @__PURE__ */ u(Or, { size: 20 })
4145
4148
  }),
4146
- g.slice(v, v + t).map((x) => {
4147
- const C = ve.fromISO(x.fullDate || ""), E = C.weekday % 7, k = ve.now().setZone(s).startOf("day"), U = C.hasSame(k, "day"), R = l?.day === x.day && l?.month === x.month && l?.year === x.year, q = C.startOf("day"), V = q < b, G = q > P, z = V || G || Er({
4149
+ N.slice(v, v + t).map((x) => {
4150
+ const C = ve.fromISO(x.fullDate || ""), E = C.weekday % 7, k = ve.now().setZone(s).startOf("day"), U = C.hasSame(k, "day"), R = l?.day === x.day && l?.month === x.month && l?.year === x.year, q = C.startOf("day"), V = q < S, G = q > P, z = V || G || Er({
4148
4151
  dateObj: x,
4149
4152
  selectedProfessional: i,
4150
4153
  outletTimeZone: s || "UTC"
4151
4154
  });
4152
- return /* @__PURE__ */ N("div", {
4155
+ return /* @__PURE__ */ g("div", {
4153
4156
  onClick: () => {
4154
4157
  z || ce(x);
4155
4158
  },
@@ -4180,13 +4183,13 @@ function $1() {
4180
4183
  children: /* @__PURE__ */ u(Qr, { size: 20 })
4181
4184
  })
4182
4185
  ]
4183
- }), /* @__PURE__ */ N("button", {
4186
+ }), /* @__PURE__ */ g("button", {
4184
4187
  onClick: () => p(!0),
4185
4188
  className: "aaravpos-barber-calendar-btn",
4186
- children: [/* @__PURE__ */ u(bf, { size: 16 }), l?.month != null ? `${Di[l.month - 1]} ${l.year}` : `${Di[b.month - 1]} ${b.year}`]
4189
+ children: [/* @__PURE__ */ u(bf, { size: 16 }), l?.month != null ? `${Di[l.month - 1]} ${l.year}` : `${Di[S.month - 1]} ${S.year}`]
4187
4190
  })]
4188
4191
  }),
4189
- /* @__PURE__ */ N("div", {
4192
+ /* @__PURE__ */ g("div", {
4190
4193
  className: "aaravpos-barber-selected-professional",
4191
4194
  children: [i?.imageUrl ? /* @__PURE__ */ u("img", {
4192
4195
  src: i.imageUrl,
@@ -4196,12 +4199,12 @@ function $1() {
4196
4199
  className: "aaravpos-barber-selected-professional-avatar",
4197
4200
  style: { background: i?.color || "#111" },
4198
4201
  children: tn(i?.name)
4199
- }), /* @__PURE__ */ N("div", {
4202
+ }), /* @__PURE__ */ g("div", {
4200
4203
  className: "aaravpos-barber-selected-professional-content",
4201
4204
  children: [/* @__PURE__ */ u("p", {
4202
4205
  className: "aaravpos-barber-selected-professional-name",
4203
4206
  children: i?.name
4204
- }), /* @__PURE__ */ N("p", {
4207
+ }), /* @__PURE__ */ g("p", {
4205
4208
  className: "aaravpos-barber-selected-professional-services",
4206
4209
  children: [
4207
4210
  T.map((x) => x.name).join(", "),
@@ -4213,10 +4216,10 @@ function $1() {
4213
4216
  })]
4214
4217
  })]
4215
4218
  }),
4216
- /* @__PURE__ */ N("div", {
4219
+ /* @__PURE__ */ g("div", {
4217
4220
  className: "aaravpos-barber-scroll-area",
4218
4221
  style: h ? { height: 300 } : {},
4219
- children: [h ? /* @__PURE__ */ u(y1, {}) : /* @__PURE__ */ u($e, { children: S?.length ? /* @__PURE__ */ N($e, { children: [
4222
+ children: [h ? /* @__PURE__ */ u(y1, {}) : /* @__PURE__ */ u($e, { children: y?.length ? /* @__PURE__ */ g($e, { children: [
4220
4223
  /* @__PURE__ */ u(In, {
4221
4224
  label: "Morning",
4222
4225
  icon: /* @__PURE__ */ u(a1, {
@@ -4224,7 +4227,7 @@ function $1() {
4224
4227
  className: "aaravpos-barber-slot-icon"
4225
4228
  }),
4226
4229
  slots: ye,
4227
- allSlots: S,
4230
+ allSlots: y,
4228
4231
  selectedSlotIndexes: d,
4229
4232
  handleSlotSelect: ue,
4230
4233
  isOpen: Q === "morning",
@@ -4237,7 +4240,7 @@ function $1() {
4237
4240
  className: "aaravpos-barber-slot-icon"
4238
4241
  }),
4239
4242
  slots: Ce,
4240
- allSlots: S,
4243
+ allSlots: y,
4241
4244
  selectedSlotIndexes: d,
4242
4245
  handleSlotSelect: ue,
4243
4246
  isOpen: Q === "afternoon",
@@ -4250,14 +4253,14 @@ function $1() {
4250
4253
  className: "aaravpos-barber-slot-icon"
4251
4254
  }),
4252
4255
  slots: me,
4253
- allSlots: S,
4256
+ allSlots: y,
4254
4257
  selectedSlotIndexes: d,
4255
4258
  handleSlotSelect: ue,
4256
4259
  isOpen: Q === "evening",
4257
4260
  onToggle: () => he(Q === "evening" ? null : "evening")
4258
4261
  }),
4259
4262
  " "
4260
- ] }) : /* @__PURE__ */ N($e, { children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-supercategory-wrapper" }), /* @__PURE__ */ N("div", {
4263
+ ] }) : /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-supercategory-wrapper" }), /* @__PURE__ */ g("div", {
4261
4264
  className: "aaravpos-barber-empty-services",
4262
4265
  children: [/* @__PURE__ */ u("h3", {
4263
4266
  className: "aaravpos-barber-empty-services-title",
@@ -4282,12 +4285,12 @@ function Ri({ onClick: e, children: t }) {
4282
4285
  });
4283
4286
  }
4284
4287
  function In({ icon: e, label: t, slots: r, allSlots: n, selectedSlotIndexes: a, handleSlotSelect: i, isOpen: o, onToggle: s }) {
4285
- return !r || r?.length === 0 ? null : /* @__PURE__ */ N("div", {
4288
+ return !r || r?.length === 0 ? null : /* @__PURE__ */ g("div", {
4286
4289
  className: "aaravpos-barber-slot-section",
4287
- children: [/* @__PURE__ */ N("div", {
4290
+ children: [/* @__PURE__ */ g("div", {
4288
4291
  onClick: s,
4289
4292
  className: "aaravpos-barber-slot-section-header",
4290
- children: [/* @__PURE__ */ N("div", {
4293
+ children: [/* @__PURE__ */ g("div", {
4291
4294
  className: "aaravpos-barber-slot-section-title",
4292
4295
  children: [/* @__PURE__ */ u("span", { children: e }), t]
4293
4296
  }), /* @__PURE__ */ u("span", {
@@ -4300,14 +4303,14 @@ function In({ icon: e, label: t, slots: r, allSlots: n, selectedSlotIndexes: a,
4300
4303
  className: "aaravpos-barber-slot-grid",
4301
4304
  children: r.map((d) => {
4302
4305
  const l = n.findIndex((h) => h.id === d.id), c = a.includes(l), f = d.isBooked || d.status !== "AVAILABLE";
4303
- return /* @__PURE__ */ N("div", {
4306
+ return /* @__PURE__ */ g("div", {
4304
4307
  onClick: () => {
4305
4308
  f || i(l);
4306
4309
  },
4307
4310
  className: `aaravpos-barber-slot-card ${f ? "aaravpos-barber-slot-card-disabled" : c ? "aaravpos-barber-slot-card-selected" : "aaravpos-barber-slot-card-default"}`,
4308
4311
  children: [/* @__PURE__ */ u("span", {
4309
4312
  className: "aaravpos-barber-slot-time",
4310
- children: d.start_time
4313
+ children: d.start_time_12h
4311
4314
  }), /* @__PURE__ */ u("span", {
4312
4315
  className: "aaravpos-barber-slot-status",
4313
4316
  children: f ? "Booked" : "Available"
@@ -4323,7 +4326,7 @@ var g1 = (e) => e.replace(/\D/g, "").slice(0, 16).replace(/(.{4})/g, "$1 ").trim
4323
4326
  return t.length >= 3 ? `${t.slice(0, 2)}/${t.slice(2)}` : t;
4324
4327
  }, C1 = (e) => e.replace(/\D/g, "").slice(0, 3);
4325
4328
  function S1({ onClose: e, onPay: t, amount: r }) {
4326
- const { timeZone: n } = X((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 } } = ha({ defaultValues: {
4327
4330
  name: "",
4328
4331
  number: "",
4329
4332
  expiry: "",
@@ -4341,26 +4344,26 @@ function S1({ onClose: e, onPay: t, amount: r }) {
4341
4344
  }) && e();
4342
4345
  }),
4343
4346
  className: "aaravpos-barber-payment-form",
4344
- children: /* @__PURE__ */ N("div", {
4347
+ children: /* @__PURE__ */ g("div", {
4345
4348
  className: "aaravpos-barber-modal",
4346
4349
  children: [
4347
- /* @__PURE__ */ N("div", {
4350
+ /* @__PURE__ */ g("div", {
4348
4351
  className: "aaravpos-barber-payment-header",
4349
4352
  children: [/* @__PURE__ */ u("h2", {
4350
4353
  className: "aaravpos-barber-payment-title",
4351
4354
  children: "Make a payment"
4352
- }), /* @__PURE__ */ N("span", {
4355
+ }), /* @__PURE__ */ g("span", {
4353
4356
  className: "aaravpos-barber-payment-amount",
4354
4357
  children: [/* @__PURE__ */ u(Se, { size: 14 }), r?.toFixed(2)]
4355
4358
  })]
4356
4359
  }),
4357
- /* @__PURE__ */ N("div", {
4360
+ /* @__PURE__ */ g("div", {
4358
4361
  className: "aaravpos-barber-payment-fields",
4359
4362
  children: [
4360
- /* @__PURE__ */ N("div", {
4363
+ /* @__PURE__ */ g("div", {
4361
4364
  className: "aaravpos-barber-form-control",
4362
4365
  children: [
4363
- /* @__PURE__ */ N("label", {
4366
+ /* @__PURE__ */ g("label", {
4364
4367
  htmlFor: "name",
4365
4368
  className: "aaravpos-barber-payment-label",
4366
4369
  children: ["Card Holder Name ", /* @__PURE__ */ u("span", {
@@ -4396,10 +4399,10 @@ function S1({ onClose: e, onPay: t, amount: r }) {
4396
4399
  })
4397
4400
  ]
4398
4401
  }),
4399
- /* @__PURE__ */ N("div", {
4402
+ /* @__PURE__ */ g("div", {
4400
4403
  className: "aaravpos-barber-form-control",
4401
4404
  children: [
4402
- /* @__PURE__ */ N("label", {
4405
+ /* @__PURE__ */ g("label", {
4403
4406
  htmlFor: "number",
4404
4407
  className: "aaravpos-barber-payment-label",
4405
4408
  children: ["Card Number ", /* @__PURE__ */ u("span", {
@@ -4430,12 +4433,12 @@ function S1({ onClose: e, onPay: t, amount: r }) {
4430
4433
  })
4431
4434
  ]
4432
4435
  }),
4433
- /* @__PURE__ */ N("div", {
4436
+ /* @__PURE__ */ g("div", {
4434
4437
  className: "aaravpos-barber-payment-grid",
4435
- children: [/* @__PURE__ */ N("div", {
4438
+ children: [/* @__PURE__ */ g("div", {
4436
4439
  className: "aaravpos-barber-form-control",
4437
4440
  children: [
4438
- /* @__PURE__ */ N("label", {
4441
+ /* @__PURE__ */ g("label", {
4439
4442
  htmlFor: "expiry",
4440
4443
  className: "aaravpos-barber-payment-label",
4441
4444
  children: ["Expiry Date ", /* @__PURE__ */ u("span", {
@@ -4471,10 +4474,10 @@ function S1({ onClose: e, onPay: t, amount: r }) {
4471
4474
  children: s.expiry.message
4472
4475
  })
4473
4476
  ]
4474
- }), /* @__PURE__ */ N("div", {
4477
+ }), /* @__PURE__ */ g("div", {
4475
4478
  className: "aaravpos-barber-form-control",
4476
4479
  children: [
4477
- /* @__PURE__ */ N("label", {
4480
+ /* @__PURE__ */ g("label", {
4478
4481
  htmlFor: "cvv",
4479
4482
  className: "aaravpos-barber-payment-label",
4480
4483
  children: ["CVV ", /* @__PURE__ */ u("span", {
@@ -4511,7 +4514,7 @@ function S1({ onClose: e, onPay: t, amount: r }) {
4511
4514
  })
4512
4515
  ]
4513
4516
  }),
4514
- /* @__PURE__ */ N("div", {
4517
+ /* @__PURE__ */ g("div", {
4515
4518
  className: "aaravpos-barber-payment-btn-grid",
4516
4519
  children: [/* @__PURE__ */ u("button", {
4517
4520
  type: "button",
@@ -4642,28 +4645,28 @@ function M1(e) {
4642
4645
  };
4643
4646
  }
4644
4647
  var k1 = /* @__PURE__ */ Te(((e) => {
4645
- var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, y = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, b = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
4646
- function P(g) {
4647
- if (typeof g == "object" && g !== null) {
4648
- var T = g.$$typeof;
4648
+ var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, y = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, S = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
4649
+ function P(N) {
4650
+ if (typeof N == "object" && N !== null) {
4651
+ var T = N.$$typeof;
4649
4652
  switch (T) {
4650
4653
  case r:
4651
- switch (g = g.type, g) {
4654
+ switch (N = N.type, N) {
4652
4655
  case l:
4653
4656
  case c:
4654
4657
  case a:
4655
4658
  case o:
4656
4659
  case i:
4657
4660
  case h:
4658
- return g;
4661
+ return N;
4659
4662
  default:
4660
- switch (g = g && g.$$typeof, g) {
4663
+ switch (N = N && N.$$typeof, N) {
4661
4664
  case d:
4662
4665
  case f:
4663
4666
  case v:
4664
4667
  case p:
4665
4668
  case s:
4666
- return g;
4669
+ return N;
4667
4670
  default:
4668
4671
  return T;
4669
4672
  }
@@ -4673,44 +4676,44 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4673
4676
  }
4674
4677
  }
4675
4678
  }
4676
- function _(g) {
4677
- return P(g) === c;
4678
- }
4679
- e.AsyncMode = l, e.ConcurrentMode = c, e.ContextConsumer = d, e.ContextProvider = s, e.Element = r, e.ForwardRef = f, e.Fragment = a, e.Lazy = v, e.Memo = p, e.Portal = n, e.Profiler = o, e.StrictMode = i, e.Suspense = h, e.isAsyncMode = function(g) {
4680
- return _(g) || P(g) === l;
4681
- }, e.isConcurrentMode = _, e.isContextConsumer = function(g) {
4682
- return P(g) === d;
4683
- }, e.isContextProvider = function(g) {
4684
- return P(g) === s;
4685
- }, e.isElement = function(g) {
4686
- return typeof g == "object" && g !== null && g.$$typeof === r;
4687
- }, e.isForwardRef = function(g) {
4688
- return P(g) === f;
4689
- }, e.isFragment = function(g) {
4690
- return P(g) === a;
4691
- }, e.isLazy = function(g) {
4692
- return P(g) === v;
4693
- }, e.isMemo = function(g) {
4694
- return P(g) === p;
4695
- }, e.isPortal = function(g) {
4696
- return P(g) === n;
4697
- }, e.isProfiler = function(g) {
4698
- return P(g) === o;
4699
- }, e.isStrictMode = function(g) {
4700
- return P(g) === i;
4701
- }, e.isSuspense = function(g) {
4702
- return P(g) === h;
4703
- }, e.isValidElementType = function(g) {
4704
- return typeof g == "string" || typeof g == "function" || g === a || g === c || g === o || g === i || g === h || g === m || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === p || g.$$typeof === s || g.$$typeof === d || g.$$typeof === f || g.$$typeof === $ || g.$$typeof === S || g.$$typeof === b || g.$$typeof === y);
4679
+ function O(N) {
4680
+ return P(N) === c;
4681
+ }
4682
+ e.AsyncMode = l, e.ConcurrentMode = c, e.ContextConsumer = d, e.ContextProvider = s, e.Element = r, e.ForwardRef = f, e.Fragment = a, e.Lazy = v, e.Memo = p, e.Portal = n, e.Profiler = o, e.StrictMode = i, e.Suspense = h, e.isAsyncMode = function(N) {
4683
+ return O(N) || P(N) === l;
4684
+ }, e.isConcurrentMode = O, e.isContextConsumer = function(N) {
4685
+ return P(N) === d;
4686
+ }, e.isContextProvider = function(N) {
4687
+ return P(N) === s;
4688
+ }, e.isElement = function(N) {
4689
+ return typeof N == "object" && N !== null && N.$$typeof === r;
4690
+ }, e.isForwardRef = function(N) {
4691
+ return P(N) === f;
4692
+ }, e.isFragment = function(N) {
4693
+ return P(N) === a;
4694
+ }, e.isLazy = function(N) {
4695
+ return P(N) === v;
4696
+ }, e.isMemo = function(N) {
4697
+ return P(N) === p;
4698
+ }, e.isPortal = function(N) {
4699
+ return P(N) === n;
4700
+ }, e.isProfiler = function(N) {
4701
+ return P(N) === o;
4702
+ }, e.isStrictMode = function(N) {
4703
+ return P(N) === i;
4704
+ }, e.isSuspense = function(N) {
4705
+ return P(N) === h;
4706
+ }, e.isValidElementType = function(N) {
4707
+ return typeof N == "string" || typeof N == "function" || N === a || N === c || N === o || N === i || N === h || N === m || typeof N == "object" && N !== null && (N.$$typeof === v || N.$$typeof === p || N.$$typeof === s || N.$$typeof === d || N.$$typeof === f || N.$$typeof === $ || N.$$typeof === y || N.$$typeof === S || N.$$typeof === b);
4705
4708
  }, e.typeOf = P;
4706
4709
  })), D1 = /* @__PURE__ */ Te(((e) => {
4707
4710
  process.env.NODE_ENV !== "production" && (function() {
4708
4711
  "use strict";
4709
- var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, y = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, b = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
4712
+ var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, y = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, S = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
4710
4713
  function P(A) {
4711
- return typeof A == "string" || typeof A == "function" || A === a || A === c || A === o || A === i || A === h || A === m || typeof A == "object" && A !== null && (A.$$typeof === v || A.$$typeof === p || A.$$typeof === s || A.$$typeof === d || A.$$typeof === f || A.$$typeof === $ || A.$$typeof === S || A.$$typeof === b || A.$$typeof === y);
4714
+ return typeof A == "string" || typeof A == "function" || A === a || A === c || A === o || A === i || A === h || A === m || typeof A == "object" && A !== null && (A.$$typeof === v || A.$$typeof === p || A.$$typeof === s || A.$$typeof === d || A.$$typeof === f || A.$$typeof === $ || A.$$typeof === y || A.$$typeof === S || A.$$typeof === b);
4712
4715
  }
4713
- function _(A) {
4716
+ function O(A) {
4714
4717
  if (typeof A == "object" && A !== null) {
4715
4718
  var M = A.$$typeof;
4716
4719
  switch (M) {
@@ -4742,47 +4745,47 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4742
4745
  }
4743
4746
  }
4744
4747
  }
4745
- var g = l, T = c, D = d, H = s, J = r, ae = f, ce = a, ue = v, ye = p, Ce = n, me = o, fe = i, se = h, Q = !1;
4748
+ var N = l, T = c, D = d, H = s, X = r, ae = f, ce = a, ue = v, ye = p, Ce = n, me = o, fe = i, se = h, Q = !1;
4746
4749
  function he(A) {
4747
- return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(A) || _(A) === l;
4750
+ return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(A) || O(A) === l;
4748
4751
  }
4749
4752
  function x(A) {
4750
- return _(A) === c;
4753
+ return O(A) === c;
4751
4754
  }
4752
4755
  function C(A) {
4753
- return _(A) === d;
4756
+ return O(A) === d;
4754
4757
  }
4755
4758
  function E(A) {
4756
- return _(A) === s;
4759
+ return O(A) === s;
4757
4760
  }
4758
4761
  function k(A) {
4759
4762
  return typeof A == "object" && A !== null && A.$$typeof === r;
4760
4763
  }
4761
4764
  function U(A) {
4762
- return _(A) === f;
4765
+ return O(A) === f;
4763
4766
  }
4764
4767
  function R(A) {
4765
- return _(A) === a;
4768
+ return O(A) === a;
4766
4769
  }
4767
4770
  function q(A) {
4768
- return _(A) === v;
4771
+ return O(A) === v;
4769
4772
  }
4770
4773
  function V(A) {
4771
- return _(A) === p;
4774
+ return O(A) === p;
4772
4775
  }
4773
4776
  function G(A) {
4774
- return _(A) === n;
4777
+ return O(A) === n;
4775
4778
  }
4776
4779
  function z(A) {
4777
- return _(A) === o;
4780
+ return O(A) === o;
4778
4781
  }
4779
4782
  function W(A) {
4780
- return _(A) === i;
4783
+ return O(A) === i;
4781
4784
  }
4782
4785
  function K(A) {
4783
- return _(A) === h;
4786
+ return O(A) === h;
4784
4787
  }
4785
- e.AsyncMode = g, e.ConcurrentMode = T, e.ContextConsumer = D, e.ContextProvider = H, e.Element = J, e.ForwardRef = ae, e.Fragment = ce, e.Lazy = ue, e.Memo = ye, e.Portal = Ce, e.Profiler = me, e.StrictMode = fe, e.Suspense = se, e.isAsyncMode = he, e.isConcurrentMode = x, e.isContextConsumer = C, e.isContextProvider = E, e.isElement = k, e.isForwardRef = U, e.isFragment = R, e.isLazy = q, e.isMemo = V, e.isPortal = G, e.isProfiler = z, e.isStrictMode = W, e.isSuspense = K, e.isValidElementType = P, e.typeOf = _;
4788
+ e.AsyncMode = N, e.ConcurrentMode = T, e.ContextConsumer = D, e.ContextProvider = H, e.Element = X, e.ForwardRef = ae, e.Fragment = ce, e.Lazy = ue, e.Memo = ye, e.Portal = Ce, e.Profiler = me, e.StrictMode = fe, e.Suspense = se, e.isAsyncMode = he, e.isConcurrentMode = x, e.isContextConsumer = C, e.isContextProvider = E, e.isElement = k, e.isForwardRef = U, e.isFragment = R, e.isLazy = q, e.isMemo = V, e.isPortal = G, e.isProfiler = z, e.isStrictMode = W, e.isSuspense = K, e.isValidElementType = P, e.typeOf = O;
4786
4789
  })();
4787
4790
  })), sd = /* @__PURE__ */ Te(((e, t) => {
4788
4791
  process.env.NODE_ENV === "production" ? t.exports = k1() : t.exports = D1();
@@ -4849,8 +4852,8 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4849
4852
  throw p.name = "Invariant Violation", p;
4850
4853
  }
4851
4854
  m = s[h](d, h, c, l, null, n);
4852
- } catch (y) {
4853
- m = y;
4855
+ } catch (b) {
4856
+ m = b;
4854
4857
  }
4855
4858
  if (m && !(m instanceof Error) && r((c || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), m instanceof Error && !(m.message in a)) {
4856
4859
  a[m.message] = !0;
@@ -4884,34 +4887,34 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4884
4887
  if (typeof E == "function") return E;
4885
4888
  }
4886
4889
  var p = "<<anonymous>>", v = {
4887
- array: b("array"),
4888
- bigint: b("bigint"),
4889
- bool: b("boolean"),
4890
- func: b("function"),
4891
- number: b("number"),
4892
- object: b("object"),
4893
- string: b("string"),
4894
- symbol: b("symbol"),
4890
+ array: S("array"),
4891
+ bigint: S("bigint"),
4892
+ bool: S("boolean"),
4893
+ func: S("function"),
4894
+ number: S("number"),
4895
+ object: S("object"),
4896
+ string: S("string"),
4897
+ symbol: S("symbol"),
4895
4898
  any: P(),
4896
- arrayOf: _,
4897
- element: g(),
4899
+ arrayOf: O,
4900
+ element: N(),
4898
4901
  elementType: T(),
4899
4902
  instanceOf: D,
4900
4903
  node: ce(),
4901
- objectOf: J,
4904
+ objectOf: X,
4902
4905
  oneOf: H,
4903
4906
  oneOfType: ae,
4904
4907
  shape: ye,
4905
4908
  exact: Ce
4906
4909
  };
4907
- function y(C, E) {
4910
+ function b(C, E) {
4908
4911
  return C === E ? C !== 0 || 1 / C === 1 / E : C !== C && E !== E;
4909
4912
  }
4910
4913
  function $(C, E) {
4911
4914
  this.message = C, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
4912
4915
  }
4913
4916
  $.prototype = Error.prototype;
4914
- function S(C) {
4917
+ function y(C) {
4915
4918
  if (process.env.NODE_ENV !== "production")
4916
4919
  var E = {}, k = 0;
4917
4920
  function U(q, V, G, z, W, K, A) {
@@ -4929,7 +4932,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4929
4932
  var R = U.bind(null, !1);
4930
4933
  return R.isRequired = U.bind(null, !0), R;
4931
4934
  }
4932
- function b(C) {
4935
+ function S(C) {
4933
4936
  function E(k, U, R, q, V, G) {
4934
4937
  var z = k[U];
4935
4938
  if (se(z) !== C) {
@@ -4938,12 +4941,12 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4938
4941
  }
4939
4942
  return null;
4940
4943
  }
4941
- return S(E);
4944
+ return y(E);
4942
4945
  }
4943
4946
  function P() {
4944
- return S(d);
4947
+ return y(d);
4945
4948
  }
4946
- function _(C) {
4949
+ function O(C) {
4947
4950
  function E(k, U, R, q, V) {
4948
4951
  if (typeof C != "function") return new $("Property `" + V + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
4949
4952
  var G = k[U];
@@ -4957,9 +4960,9 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4957
4960
  }
4958
4961
  return null;
4959
4962
  }
4960
- return S(E);
4963
+ return y(E);
4961
4964
  }
4962
- function g() {
4965
+ function N() {
4963
4966
  function C(E, k, U, R, q) {
4964
4967
  var V = E[k];
4965
4968
  if (!l(V)) {
@@ -4968,7 +4971,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4968
4971
  }
4969
4972
  return null;
4970
4973
  }
4971
- return S(C);
4974
+ return y(C);
4972
4975
  }
4973
4976
  function T() {
4974
4977
  function C(E, k, U, R, q) {
@@ -4979,7 +4982,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4979
4982
  }
4980
4983
  return null;
4981
4984
  }
4982
- return S(C);
4985
+ return y(C);
4983
4986
  }
4984
4987
  function D(C) {
4985
4988
  function E(k, U, R, q, V) {
@@ -4989,21 +4992,21 @@ var k1 = /* @__PURE__ */ Te(((e) => {
4989
4992
  }
4990
4993
  return null;
4991
4994
  }
4992
- return S(E);
4995
+ return y(E);
4993
4996
  }
4994
4997
  function H(C) {
4995
4998
  if (!Array.isArray(C))
4996
4999
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).") : s("Invalid argument supplied to oneOf, expected an array.")), d;
4997
5000
  function E(k, U, R, q, V) {
4998
- for (var G = k[U], z = 0; z < C.length; z++) if (y(G, C[z])) return null;
5001
+ for (var G = k[U], z = 0; z < C.length; z++) if (b(G, C[z])) return null;
4999
5002
  var W = JSON.stringify(C, function(A, M) {
5000
5003
  return Q(M) === "symbol" ? String(M) : M;
5001
5004
  });
5002
5005
  return new $("Invalid " + q + " `" + V + "` of value `" + String(G) + "` " + ("supplied to `" + R + "`, expected one of " + W + "."));
5003
5006
  }
5004
- return S(E);
5007
+ return y(E);
5005
5008
  }
5006
- function J(C) {
5009
+ function X(C) {
5007
5010
  function E(k, U, R, q, V) {
5008
5011
  if (typeof C != "function") return new $("Property `" + V + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
5009
5012
  var G = k[U], z = se(G);
@@ -5014,7 +5017,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
5014
5017
  }
5015
5018
  return null;
5016
5019
  }
5017
- return S(E);
5020
+ return y(E);
5018
5021
  }
5019
5022
  function ae(C) {
5020
5023
  if (!Array.isArray(C))
@@ -5033,13 +5036,13 @@ var k1 = /* @__PURE__ */ Te(((e) => {
5033
5036
  var F = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
5034
5037
  return new $("Invalid " + G + " `" + z + "` supplied to " + ("`" + V + "`" + F + "."));
5035
5038
  }
5036
- return S(U);
5039
+ return y(U);
5037
5040
  }
5038
5041
  function ce() {
5039
5042
  function C(E, k, U, R, q) {
5040
5043
  return me(E[k]) ? null : new $("Invalid " + R + " `" + q + "` supplied to " + ("`" + U + "`, expected a ReactNode."));
5041
5044
  }
5042
- return S(C);
5045
+ return y(C);
5043
5046
  }
5044
5047
  function ue(C, E, k, U, R) {
5045
5048
  return new $((C || "React class") + ": " + E + " type `" + k + "." + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`.");
@@ -5056,7 +5059,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
5056
5059
  }
5057
5060
  return null;
5058
5061
  }
5059
- return S(E);
5062
+ return y(E);
5060
5063
  }
5061
5064
  function Ce(C) {
5062
5065
  function E(k, U, R, q, V) {
@@ -5072,7 +5075,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
5072
5075
  }
5073
5076
  return null;
5074
5077
  }
5075
- return S(E);
5078
+ return y(E);
5076
5079
  }
5077
5080
  function me(C) {
5078
5081
  switch (typeof C) {
@@ -5183,7 +5186,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
5183
5186
  var r = sd(), n = !0;
5184
5187
  t.exports = j1()(r.isElement, n);
5185
5188
  } else t.exports = L1()();
5186
- })), O = /* @__PURE__ */ va(B1(), 1);
5189
+ })), _ = /* @__PURE__ */ va(B1(), 1);
5187
5190
  function at(e, t, r) {
5188
5191
  this.x = e, this.y = t, this.time = r || (/* @__PURE__ */ new Date()).getTime();
5189
5192
  }
@@ -5343,10 +5346,10 @@ ee.prototype._calculateCurveControlPoints = function(e, t, r) {
5343
5346
  }, l = Math.sqrt(n * n + a * a), c = Math.sqrt(i * i + o * o), f = s.x - d.x, h = s.y - d.y, m = c / (l + c), p = {
5344
5347
  x: d.x + f * m,
5345
5348
  y: d.y + h * m
5346
- }, v = t.x - p.x, y = t.y - p.y;
5349
+ }, v = t.x - p.x, b = t.y - p.y;
5347
5350
  return {
5348
- c1: new at(s.x + v, s.y + y),
5349
- c2: new at(d.x + v, d.y + y)
5351
+ c1: new at(s.x + v, s.y + b),
5352
+ c2: new at(d.x + v, d.y + b)
5350
5353
  };
5351
5354
  };
5352
5355
  ee.prototype._calculateCurveWidths = function(e) {
@@ -5401,15 +5404,15 @@ ee.prototype._fromData = function(e, t, r) {
5401
5404
  };
5402
5405
  ee.prototype._toSVG = function() {
5403
5406
  var e = this, t = this._data, r = this._canvas, n = Math.max(window.devicePixelRatio || 1, 1), a = 0, i = 0, o = r.width / n, s = r.height / n, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
5404
- d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(t, function(y, $, S) {
5405
- var b = document.createElement("path");
5406
- if (!isNaN(y.control1.x) && !isNaN(y.control1.y) && !isNaN(y.control2.x) && !isNaN(y.control2.y)) {
5407
- var P = "M " + y.startPoint.x.toFixed(3) + "," + y.startPoint.y.toFixed(3) + " " + ("C " + y.control1.x.toFixed(3) + "," + y.control1.y.toFixed(3) + " ") + (y.control2.x.toFixed(3) + "," + y.control2.y.toFixed(3) + " ") + (y.endPoint.x.toFixed(3) + "," + y.endPoint.y.toFixed(3));
5408
- b.setAttribute("d", P), b.setAttribute("stroke-width", ($.end * 2.25).toFixed(3)), b.setAttribute("stroke", S), b.setAttribute("fill", "none"), b.setAttribute("stroke-linecap", "round"), d.appendChild(b);
5407
+ d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(t, function(b, $, y) {
5408
+ var S = document.createElement("path");
5409
+ if (!isNaN(b.control1.x) && !isNaN(b.control1.y) && !isNaN(b.control2.x) && !isNaN(b.control2.y)) {
5410
+ var P = "M " + b.startPoint.x.toFixed(3) + "," + b.startPoint.y.toFixed(3) + " " + ("C " + b.control1.x.toFixed(3) + "," + b.control1.y.toFixed(3) + " ") + (b.control2.x.toFixed(3) + "," + b.control2.y.toFixed(3) + " ") + (b.endPoint.x.toFixed(3) + "," + b.endPoint.y.toFixed(3));
5411
+ S.setAttribute("d", P), S.setAttribute("stroke-width", ($.end * 2.25).toFixed(3)), S.setAttribute("stroke", y), S.setAttribute("fill", "none"), S.setAttribute("stroke-linecap", "round"), d.appendChild(S);
5409
5412
  }
5410
- }, function(y) {
5411
- var $ = document.createElement("circle"), S = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
5412
- $.setAttribute("r", S), $.setAttribute("cx", y.x), $.setAttribute("cy", y.y), $.setAttribute("fill", y.color), d.appendChild($);
5413
+ }, function(b) {
5414
+ var $ = document.createElement("circle"), y = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
5415
+ $.setAttribute("r", y), $.setAttribute("cx", b.x), $.setAttribute("cy", b.y), $.setAttribute("fill", b.color), d.appendChild($);
5413
5416
  });
5414
5417
  var l = "data:image/svg+xml;base64,", c = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + a + " " + i + " " + o + " " + s + '"') + (' width="' + o + '"') + (' height="' + s + '"') + ">", f = d.innerHTML;
5415
5418
  if (f === void 0) {
@@ -5451,8 +5454,8 @@ var V1 = /* @__PURE__ */ Te(((e, t) => {
5451
5454
  })([function(r, n) {
5452
5455
  "use strict";
5453
5456
  function a(l) {
5454
- var c = l.getContext("2d"), f = l.width, h = l.height, m = c.getImageData(0, 0, f, h).data, p = s(!0, f, h, m), v = s(!1, f, h, m), y = d(!0, f, h, m), $ = d(!1, f, h, m) - y + 1, S = v - p + 1, b = c.getImageData(y, p, $, S);
5455
- return l.width = $, l.height = S, c.clearRect(0, 0, $, S), c.putImageData(b, 0, 0), l;
5457
+ var c = l.getContext("2d"), f = l.width, h = l.height, m = c.getImageData(0, 0, f, h).data, p = s(!0, f, h, m), v = s(!1, f, h, m), b = d(!0, f, h, m), $ = d(!1, f, h, m) - b + 1, y = v - p + 1, S = c.getImageData(b, p, $, y);
5458
+ return l.width = $, l.height = y, c.clearRect(0, 0, $, y), c.putImageData(S, 0, 0), l;
5456
5459
  }
5457
5460
  function i(l, c, f, h) {
5458
5461
  return {
@@ -5536,17 +5539,17 @@ var V1 = /* @__PURE__ */ Te(((e, t) => {
5536
5539
  return E1(r);
5537
5540
  })(gl);
5538
5541
  rn.propTypes = {
5539
- velocityFilterWeight: O.default.number,
5540
- minWidth: O.default.number,
5541
- maxWidth: O.default.number,
5542
- minDistance: O.default.number,
5543
- dotSize: O.default.oneOfType([O.default.number, O.default.func]),
5544
- penColor: O.default.string,
5545
- throttle: O.default.number,
5546
- onEnd: O.default.func,
5547
- onBegin: O.default.func,
5548
- canvasProps: O.default.object,
5549
- clearOnResize: O.default.bool
5542
+ velocityFilterWeight: _.default.number,
5543
+ minWidth: _.default.number,
5544
+ maxWidth: _.default.number,
5545
+ minDistance: _.default.number,
5546
+ dotSize: _.default.oneOfType([_.default.number, _.default.func]),
5547
+ penColor: _.default.string,
5548
+ throttle: _.default.number,
5549
+ onEnd: _.default.func,
5550
+ onBegin: _.default.func,
5551
+ canvasProps: _.default.object,
5552
+ clearOnResize: _.default.bool
5550
5553
  };
5551
5554
  rn.defaultProps = { clearOnResize: !0 };
5552
5555
  rn.refNullError = /* @__PURE__ */ new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");
@@ -5559,13 +5562,13 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5559
5562
  emailMe: !1
5560
5563
  },
5561
5564
  mode: "onChange"
5562
- }), p = c("accepted"), v = c("typedName"), y = c("signatureDataUrl"), $ = () => {
5565
+ }), p = c("accepted"), v = c("typedName"), b = c("signatureDataUrl"), $ = () => {
5563
5566
  l(), r === "DRAW_SIGNATURE" && i.current?.clear();
5564
- }, S = () => {
5567
+ }, y = () => {
5565
5568
  $(), e();
5566
- }, b = () => {
5569
+ }, S = () => {
5567
5570
  i.current?.clear(), f("signatureDataUrl", "");
5568
- }, P = (g) => {
5571
+ }, P = (N) => {
5569
5572
  let T = "";
5570
5573
  if (r === "DRAW_SIGNATURE") {
5571
5574
  const D = i.current;
@@ -5573,24 +5576,24 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5573
5576
  else return;
5574
5577
  }
5575
5578
  t({
5576
- accepted: r === "CHECKBOX_ONLY" ? g.accepted : !1,
5577
- typedName: r === "TYPED_NAME" ? g.typedName.trim() : "",
5579
+ accepted: r === "CHECKBOX_ONLY" ? N.accepted : !1,
5580
+ typedName: r === "TYPED_NAME" ? N.typedName.trim() : "",
5578
5581
  signatureDataUrl: T,
5579
- emailMe: g.emailMe
5582
+ emailMe: N.emailMe
5580
5583
  }), $(), e();
5581
- }, _ = !m && (r === "CHECKBOX_ONLY" ? p : r === "TYPED_NAME" ? v?.trim().length > 2 : r === "DRAW_SIGNATURE" ? !!y : !1);
5582
- return /* @__PURE__ */ N("div", {
5584
+ }, O = !m && (r === "CHECKBOX_ONLY" ? p : r === "TYPED_NAME" ? v?.trim().length > 2 : r === "DRAW_SIGNATURE" ? !!b : !1);
5585
+ return /* @__PURE__ */ g("div", {
5583
5586
  className: "aaravpos-barber-consent-overlay",
5584
- children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-consent-backdrop" }), /* @__PURE__ */ N("div", {
5587
+ children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-consent-backdrop" }), /* @__PURE__ */ g("div", {
5585
5588
  className: "aaravpos-barber-consent-modal",
5586
5589
  children: [
5587
- /* @__PURE__ */ N("div", {
5590
+ /* @__PURE__ */ g("div", {
5588
5591
  className: "aaravpos-barber-consent-header",
5589
5592
  children: [/* @__PURE__ */ u("h3", {
5590
5593
  className: "aaravpos-barber-consent-title",
5591
5594
  children: n || "Consent Form"
5592
5595
  }), /* @__PURE__ */ u("button", {
5593
- onClick: S,
5596
+ onClick: y,
5594
5597
  className: "aaravpos-barber-consent-close-btn",
5595
5598
  children: /* @__PURE__ */ u(en, {})
5596
5599
  })]
@@ -5605,10 +5608,10 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5605
5608
  })
5606
5609
  })
5607
5610
  }),
5608
- /* @__PURE__ */ N("form", {
5611
+ /* @__PURE__ */ g("form", {
5609
5612
  onSubmit: s(P),
5610
5613
  children: [
5611
- r === "CHECKBOX_ONLY" && /* @__PURE__ */ N("label", {
5614
+ r === "CHECKBOX_ONLY" && /* @__PURE__ */ g("label", {
5612
5615
  className: "aaravpos-barber-consent-checkbox-label",
5613
5616
  htmlFor: "accepted",
5614
5617
  children: [/* @__PURE__ */ u("input", {
@@ -5621,10 +5624,10 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5621
5624
  children: "I have read and agree to the terms above"
5622
5625
  })]
5623
5626
  }),
5624
- r === "TYPED_NAME" && /* @__PURE__ */ N("div", {
5627
+ r === "TYPED_NAME" && /* @__PURE__ */ g("div", {
5625
5628
  className: "aaravpos-barber-consent-typed-wrapper",
5626
5629
  children: [
5627
- /* @__PURE__ */ N("label", {
5630
+ /* @__PURE__ */ g("label", {
5628
5631
  className: "aaravpos-barber-consent-input-label",
5629
5632
  htmlFor: "typedName",
5630
5633
  children: ["Full Name", /* @__PURE__ */ u("span", {
@@ -5635,7 +5638,7 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5635
5638
  /* @__PURE__ */ u("input", {
5636
5639
  ...o("typedName", {
5637
5640
  required: "Name is required",
5638
- validate: (g) => g.trim().length > 2 || "Enter full name"
5641
+ validate: (N) => N.trim().length > 2 || "Enter full name"
5639
5642
  }),
5640
5643
  id: "typedName",
5641
5644
  placeholder: "Type your full name",
@@ -5655,7 +5658,7 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5655
5658
  control: d,
5656
5659
  name: "signatureDataUrl",
5657
5660
  rules: { validate: () => i.current && !i.current.isEmpty() ? !0 : "Signature required" },
5658
- render: ({ field: g }) => /* @__PURE__ */ N("div", {
5661
+ render: ({ field: N }) => /* @__PURE__ */ g("div", {
5659
5662
  className: "aaravpos-barber-consent-signature-wrapper",
5660
5663
  children: [
5661
5664
  /* @__PURE__ */ u(rn, {
@@ -5665,21 +5668,21 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5665
5668
  const T = i.current;
5666
5669
  if (!T) return;
5667
5670
  const D = T.getCanvas().toDataURL("image/png");
5668
- g.onChange(D);
5671
+ N.onChange(D);
5669
5672
  }
5670
5673
  }),
5671
5674
  h.signatureDataUrl && /* @__PURE__ */ u("p", {
5672
5675
  className: "aaravpos-barber-consent-error aaravpos-barber-consent-error-signature",
5673
5676
  children: h.signatureDataUrl.message
5674
5677
  }),
5675
- /* @__PURE__ */ N("div", {
5678
+ /* @__PURE__ */ g("div", {
5676
5679
  className: "aaravpos-barber-consent-signature-actions",
5677
- children: [/* @__PURE__ */ N("button", {
5680
+ children: [/* @__PURE__ */ g("button", {
5678
5681
  type: "button",
5679
- onClick: b,
5682
+ onClick: S,
5680
5683
  className: "aaravpos-barber-consent-clear-btn",
5681
5684
  children: [/* @__PURE__ */ u(Hf, { size: 14 }), "Clear"]
5682
- }), /* @__PURE__ */ N("label", {
5685
+ }), /* @__PURE__ */ g("label", {
5683
5686
  className: "aaravpos-barber-consent-email-label",
5684
5687
  htmlFor: "emailme",
5685
5688
  children: [/* @__PURE__ */ u("input", {
@@ -5696,17 +5699,17 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5696
5699
  ]
5697
5700
  })
5698
5701
  }),
5699
- /* @__PURE__ */ N("div", {
5702
+ /* @__PURE__ */ g("div", {
5700
5703
  className: "aaravpos-barber-consent-footer",
5701
5704
  children: [/* @__PURE__ */ u("button", {
5702
5705
  type: "button",
5703
- onClick: S,
5706
+ onClick: y,
5704
5707
  className: "aaravpos-barber-consent-cancel-btn",
5705
5708
  children: "Cancel"
5706
- }), /* @__PURE__ */ N("button", {
5709
+ }), /* @__PURE__ */ g("button", {
5707
5710
  type: "submit",
5708
- disabled: !_,
5709
- className: `aaravpos-barber-consent-submit-btn ${_ ? "aaravpos-barber-consent-submit-active" : "aaravpos-barber-consent-submit-disabled"}`,
5711
+ disabled: !O,
5712
+ className: `aaravpos-barber-consent-submit-btn ${O ? "aaravpos-barber-consent-submit-active" : "aaravpos-barber-consent-submit-disabled"}`,
5710
5713
  children: [/* @__PURE__ */ u(Ia, {}), r === "DRAW_SIGNATURE" || r === "TYPED_NAME" ? "Sign & Continue" : "I Agree"]
5711
5714
  })]
5712
5715
  })
@@ -13448,18 +13451,18 @@ function m0(e, t) {
13448
13451
  return r;
13449
13452
  }
13450
13453
  function h0(e) {
13451
- var t = e.ref, r = e.parse, n = e.format, a = e.value, i = e.defaultValue, o = e.controlled, s = o === void 0 ? !0 : o, d = e.onChange, l = e.onKeyDown, c = p0(e, u0), f = De(), h = Ue(function(y) {
13452
- f.current = y, t && (typeof t == "function" ? t(y) : t.current = y);
13453
- }, [t]), m = Ue(function(y) {
13454
- return d0(y, f.current, r, n, d);
13454
+ var t = e.ref, r = e.parse, n = e.format, a = e.value, i = e.defaultValue, o = e.controlled, s = o === void 0 ? !0 : o, d = e.onChange, l = e.onKeyDown, c = p0(e, u0), f = De(), h = Ue(function(b) {
13455
+ f.current = b, t && (typeof t == "function" ? t(b) : t.current = b);
13456
+ }, [t]), m = Ue(function(b) {
13457
+ return d0(b, f.current, r, n, d);
13455
13458
  }, [
13456
13459
  f,
13457
13460
  r,
13458
13461
  n,
13459
13462
  d
13460
- ]), p = Ue(function(y) {
13461
- if (l && l(y), !y.defaultPrevented)
13462
- return l0(y, f.current, r, n, d);
13463
+ ]), p = Ue(function(b) {
13464
+ if (l && l(b), !b.defaultPrevented)
13465
+ return l0(b, f.current, r, n, d);
13463
13466
  }, [
13464
13467
  f,
13465
13468
  r,
@@ -13549,17 +13552,17 @@ function Tr(e, t) {
13549
13552
  }
13550
13553
  Tr = /* @__PURE__ */ j.forwardRef(Tr);
13551
13554
  Tr.propTypes = {
13552
- parse: O.default.func.isRequired,
13553
- format: O.default.func.isRequired,
13554
- inputComponent: O.default.elementType,
13555
- type: O.default.string,
13556
- value: O.default.string,
13557
- defaultValue: O.default.string,
13558
- onChange: O.default.func,
13559
- controlled: O.default.bool,
13560
- onKeyDown: O.default.func,
13561
- onCut: O.default.func,
13562
- onPaste: O.default.func
13555
+ parse: _.default.func.isRequired,
13556
+ format: _.default.func.isRequired,
13557
+ inputComponent: _.default.elementType,
13558
+ type: _.default.string,
13559
+ value: _.default.string,
13560
+ defaultValue: _.default.string,
13561
+ onChange: _.default.func,
13562
+ controlled: _.default.bool,
13563
+ onKeyDown: _.default.func,
13564
+ onCut: _.default.func,
13565
+ onPaste: _.default.func
13563
13566
  };
13564
13567
  var N0 = Tr;
13565
13568
  function zi(e, t) {
@@ -14381,8 +14384,8 @@ var rp = ";ext=", st = function(t) {
14381
14384
  return "([".concat(Pe, "]{1,").concat(t, "})");
14382
14385
  };
14383
14386
  function Cd(e) {
14384
- var t = "20", r = "15", n = "9", a = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", f = "[  \\t]*", h = "(?:,{2}|;)", m = rp + st(t), p = i + d + o + st(t) + s, v = i + l + o + st(n) + s, y = c + st(a) + "#", $ = f + h + o + st(r) + s, S = f + "(?:,)+" + o + st(n) + s;
14385
- return m + "|" + p + "|" + v + "|" + y + "|" + $ + "|" + S;
14387
+ var t = "20", r = "15", n = "9", a = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", f = "[  \\t]*", h = "(?:,{2}|;)", m = rp + st(t), p = i + d + o + st(t) + s, v = i + l + o + st(n) + s, b = c + st(a) + "#", $ = f + h + o + st(r) + s, y = f + "(?:,)+" + o + st(n) + s;
14388
+ return m + "|" + p + "|" + v + "|" + b + "|" + $ + "|" + y;
14386
14389
  }
14387
14390
  var np = "[" + Pe + "]{2}", ap = "[" + sn + "]{0,1}(?:[" + Me + "]*[" + Pe + "]){3,}[" + Me + Pe + "]*", ip = new RegExp("^[" + sn + "]{0,1}(?:[" + Me + "]*[" + Pe + "]){1,2}$", "i"), op = ap + "(?:" + Cd() + ")?", sp = new RegExp("^" + np + "$|^" + op + "$", "i");
14388
14391
  function dp(e) {
@@ -15999,8 +16002,8 @@ var sa = "9", am = ur(sa, 15), im = /[- ]/, Mr = !0, om = Mr && function() {
15999
16002
  for (var v = o.length; v > 0; )
16000
16003
  h = h.replace(/\d/, "x"), v--;
16001
16004
  }
16002
- var y = l.replace(new RegExp(d), h).replace(new RegExp(sa, "g"), "x");
16003
- return m || (s ? y = ur("x", s.length) + " " + y : o && (y = ur("x", o.length) + this.getSeparatorAfterNationalPrefix(r) + y)), i && (y = $d(y)), y;
16005
+ var b = l.replace(new RegExp(d), h).replace(new RegExp(sa, "g"), "x");
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;
16004
16007
  }
16005
16008
  }
16006
16009
  },
@@ -16636,10 +16639,10 @@ function zm(e) {
16636
16639
  inputFormat: o,
16637
16640
  country: i,
16638
16641
  metadata: d
16639
- }), v = m.input(p + h), y = m.getTemplate();
16640
- return p && (v = da(v, p), y && (y = da(y, p))), {
16642
+ }), v = m.input(p + h), b = m.getTemplate();
16643
+ return p && (v = da(v, p), b && (b = da(b, p))), {
16641
16644
  text: v,
16642
- template: y
16645
+ template: b
16643
16646
  };
16644
16647
  }, [i, d]), f = Ad({
16645
16648
  onKeyDown: a,
@@ -16653,17 +16656,17 @@ function zm(e) {
16653
16656
  }));
16654
16657
  }
16655
16658
  return t = /* @__PURE__ */ j.forwardRef(t), t.propTypes = {
16656
- value: O.default.string.isRequired,
16657
- onChange: O.default.func.isRequired,
16658
- onKeyDown: O.default.func,
16659
- country: O.default.string,
16660
- inputFormat: O.default.oneOf([
16659
+ value: _.default.string.isRequired,
16660
+ onChange: _.default.func.isRequired,
16661
+ onKeyDown: _.default.func,
16662
+ country: _.default.string,
16663
+ inputFormat: _.default.oneOf([
16661
16664
  "INTERNATIONAL",
16662
16665
  "NATIONAL_PART_OF_INTERNATIONAL",
16663
16666
  "NATIONAL",
16664
16667
  "INTERNATIONAL_OR_NATIONAL"
16665
16668
  ]).isRequired,
16666
- metadata: O.default.object
16669
+ metadata: _.default.object
16667
16670
  }, t;
16668
16671
  }
16669
16672
  var Wm = zm(), Hm = [
@@ -16712,15 +16715,15 @@ function Ym(e) {
16712
16715
  country: s,
16713
16716
  metadata: c
16714
16717
  }), v = Ue(function($) {
16715
- var S = na($.target.value);
16716
- S === a && Do(p, S, s, c).indexOf($.target.value) === 0 && (S = S.slice(0, -1)), i(S);
16718
+ var y = na($.target.value);
16719
+ y === a && Do(p, y, s, c).indexOf($.target.value) === 0 && (y = y.slice(0, -1)), i(y);
16717
16720
  }, [
16718
16721
  p,
16719
16722
  a,
16720
16723
  i,
16721
16724
  s,
16722
16725
  c
16723
- ]), y = Ad({
16726
+ ]), b = Ad({
16724
16727
  onKeyDown: o,
16725
16728
  inputFormat: d
16726
16729
  });
@@ -16728,22 +16731,22 @@ function Ym(e) {
16728
16731
  ref: n,
16729
16732
  value: Do(p, a, s, c),
16730
16733
  onChange: v,
16731
- onKeyDown: y
16734
+ onKeyDown: b
16732
16735
  }));
16733
16736
  }
16734
16737
  return t = /* @__PURE__ */ j.forwardRef(t), t.propTypes = {
16735
- value: O.default.string.isRequired,
16736
- onChange: O.default.func.isRequired,
16737
- onKeyDown: O.default.func,
16738
- country: O.default.string,
16739
- inputFormat: O.default.oneOf([
16738
+ value: _.default.string.isRequired,
16739
+ onChange: _.default.func.isRequired,
16740
+ onKeyDown: _.default.func,
16741
+ country: _.default.string,
16742
+ inputFormat: _.default.oneOf([
16740
16743
  "INTERNATIONAL",
16741
16744
  "NATIONAL_PART_OF_INTERNATIONAL",
16742
16745
  "NATIONAL",
16743
16746
  "INTERNATIONAL_OR_NATIONAL"
16744
16747
  ]).isRequired,
16745
- metadata: O.default.object,
16746
- inputComponent: O.default.elementType
16748
+ metadata: _.default.object,
16749
+ inputComponent: _.default.elementType
16747
16750
  }, t;
16748
16751
  }
16749
16752
  var Zm = Ym();
@@ -16849,15 +16852,15 @@ function Md(e) {
16849
16852
  }));
16850
16853
  }
16851
16854
  Md.propTypes = {
16852
- value: O.default.string,
16853
- onChange: O.default.func.isRequired,
16854
- options: O.default.arrayOf(O.default.shape({
16855
- value: O.default.string,
16856
- label: O.default.string,
16857
- divider: O.default.bool
16855
+ value: _.default.string,
16856
+ onChange: _.default.func.isRequired,
16857
+ options: _.default.arrayOf(_.default.shape({
16858
+ value: _.default.string,
16859
+ label: _.default.string,
16860
+ divider: _.default.bool
16858
16861
  })).isRequired,
16859
- disabled: O.default.bool,
16860
- readOnly: O.default.bool
16862
+ disabled: _.default.bool,
16863
+ readOnly: _.default.bool
16861
16864
  };
16862
16865
  var nh = {
16863
16866
  fontSize: "1px",
@@ -16882,9 +16885,9 @@ function kd(e) {
16882
16885
  })), /* @__PURE__ */ j.createElement(o, null));
16883
16886
  }
16884
16887
  kd.propTypes = {
16885
- iconComponent: O.default.elementType,
16886
- arrowComponent: O.default.elementType,
16887
- unicodeFlags: O.default.bool
16888
+ iconComponent: _.default.elementType,
16889
+ arrowComponent: _.default.elementType,
16890
+ unicodeFlags: _.default.bool
16888
16891
  };
16889
16892
  function ah() {
16890
16893
  return /* @__PURE__ */ j.createElement("div", { className: "PhoneInputCountrySelectArrow" });
@@ -16940,10 +16943,10 @@ function La(e) {
16940
16943
  }));
16941
16944
  }
16942
16945
  La.propTypes = {
16943
- country: O.default.string.isRequired,
16944
- countryName: O.default.string.isRequired,
16945
- flags: O.default.objectOf(O.default.elementType),
16946
- flagUrl: O.default.string.isRequired
16946
+ country: _.default.string.isRequired,
16947
+ countryName: _.default.string.isRequired,
16948
+ flags: _.default.objectOf(_.default.elementType),
16949
+ flagUrl: _.default.string.isRequired
16947
16950
  };
16948
16951
  var lh = ["aspectRatio"], ch = ["title"], uh = ["title"];
16949
16952
  function Rr() {
@@ -16977,8 +16980,8 @@ function dn(e) {
16977
16980
  return t === 1 ? /* @__PURE__ */ j.createElement(Fd, r) : /* @__PURE__ */ j.createElement(Rd, r);
16978
16981
  }
16979
16982
  dn.propTypes = {
16980
- title: O.default.string.isRequired,
16981
- aspectRatio: O.default.number
16983
+ title: _.default.string.isRequired,
16984
+ aspectRatio: _.default.number
16982
16985
  };
16983
16986
  function Rd(e) {
16984
16987
  var t = e.title, r = Ba(e, ch);
@@ -17017,7 +17020,7 @@ function Rd(e) {
17017
17020
  d: "M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"
17018
17021
  }));
17019
17022
  }
17020
- Rd.propTypes = { title: O.default.string.isRequired };
17023
+ Rd.propTypes = { title: _.default.string.isRequired };
17021
17024
  function Fd(e) {
17022
17025
  var t = e.title, r = Ba(e, uh);
17023
17026
  return /* @__PURE__ */ j.createElement("svg", Rr({}, r, {
@@ -17046,7 +17049,7 @@ function Fd(e) {
17046
17049
  d: "M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"
17047
17050
  }));
17048
17051
  }
17049
- Fd.propTypes = { title: O.default.string.isRequired };
17052
+ Fd.propTypes = { title: _.default.string.isRequired };
17050
17053
  function ph(e) {
17051
17054
  if (e.length < 2 || e[0] !== "+") return !1;
17052
17055
  for (var t = 1; t < e.length; ) {
@@ -17179,12 +17182,12 @@ function Bd(e) {
17179
17182
  }));
17180
17183
  }
17181
17184
  return i.propTypes = {
17182
- country: O.default.string,
17183
- label: O.default.string.isRequired,
17184
- aspectRatio: O.default.number
17185
+ country: _.default.string,
17186
+ label: _.default.string.isRequired,
17187
+ aspectRatio: _.default.number
17185
17188
  }, i;
17186
17189
  }
17187
- var Rv = Bd({
17190
+ var Fv = Bd({
17188
17191
  flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
17189
17192
  flagComponent: La,
17190
17193
  internationalIcon: dn
@@ -17227,10 +17230,10 @@ function Sh(e, t) {
17227
17230
  function Ph(e, t) {
17228
17231
  typeof e == "function" ? e(t) : e.current = t;
17229
17232
  }
17230
- var Ud = O.default.shape({
17231
- country_calling_codes: O.default.object.isRequired,
17232
- countries: O.default.object.isRequired
17233
- }), Vd = O.default.objectOf(O.default.string);
17233
+ var Ud = _.default.shape({
17234
+ country_calling_codes: _.default.object.isRequired,
17235
+ countries: _.default.object.isRequired
17236
+ }), Vd = _.default.objectOf(_.default.string);
17234
17237
  function Ve(e, t) {
17235
17238
  return "+" + Xe(e, t);
17236
17239
  }
@@ -17442,7 +17445,7 @@ function Fh(e, t) {
17442
17445
  function jh(e, t, r) {
17443
17446
  var n = e.metadata, a = e.countries, i = e.defaultCountry, o = e.value, s = e.reset, d = e.international, l = e.displayInitialValueAsLocalNumber, c = e.initialValueFormat, f = t.defaultCountry, h = t.value, m = t.reset;
17444
17447
  r.country;
17445
- var p = r.value, v = r.hasUserSelectedACountry, y = r.latestCountrySelectedByUser, $ = function(H) {
17448
+ var p = r.value, v = r.hasUserSelectedACountry, b = r.latestCountrySelectedByUser, $ = function(H) {
17446
17449
  return Hd(er(er({}, H), {}, {
17447
17450
  international: d,
17448
17451
  useNationalFormat: l || c === "national",
@@ -17460,11 +17463,11 @@ function jh(e, t, r) {
17460
17463
  hasUserSelectedACountry: void 0
17461
17464
  };
17462
17465
  if (i !== f) {
17463
- var S = !i || ln(i, n), b = !p || d && p === $({
17466
+ var y = !i || ln(i, n), S = !p || d && p === $({
17464
17467
  value: void 0,
17465
17468
  defaultCountry: f
17466
17469
  });
17467
- if (!v && S && !o && b) return {
17470
+ if (!v && y && !o && S) return {
17468
17471
  country: i,
17469
17472
  phoneDigits: $({
17470
17473
  value: void 0,
@@ -17474,18 +17477,18 @@ function jh(e, t, r) {
17474
17477
  };
17475
17478
  }
17476
17479
  if (!Vo(o, h) && !Vo(o, p)) {
17477
- var P, _;
17480
+ var P, O;
17478
17481
  if (o) {
17479
17482
  o && jd(o), P = Gd(o, n);
17480
- var g = Ld(a, n);
17481
- P && P.country ? (!g || g.indexOf(P.country) >= 0) && (_ = P.country) : (_ = zd(o, {
17483
+ var N = Ld(a, n);
17484
+ P && P.country ? (!N || N.indexOf(P.country) >= 0) && (O = P.country) : (O = zd(o, {
17482
17485
  country: void 0,
17483
- countries: g,
17486
+ countries: N,
17484
17487
  metadata: n
17485
- }), _ || i && o.indexOf(Ve(i, n)) === 0 && (_ = i));
17488
+ }), O || i && o.indexOf(Ve(i, n)) === 0 && (O = i));
17486
17489
  }
17487
17490
  var T;
17488
- return o ? y && ((_ ? y === _ : ft(o, y, n)) ? _ || (_ = y) : T = { latestCountrySelectedByUser: void 0 }) : T = {
17491
+ return o ? b && ((O ? b === O : ft(o, b, n)) ? O || (O = b) : T = { latestCountrySelectedByUser: void 0 }) : T = {
17489
17492
  latestCountrySelectedByUser: void 0,
17490
17493
  hasUserSelectedACountry: void 0
17491
17494
  }, er(er({}, T), {}, {
@@ -17495,7 +17498,7 @@ function jh(e, t, r) {
17495
17498
  defaultCountry: i
17496
17499
  }),
17497
17500
  value: o,
17498
- country: o ? _ : i
17501
+ country: o ? O : i
17499
17502
  });
17500
17503
  }
17501
17504
  }
@@ -17669,40 +17672,40 @@ function Kh(e, t) {
17669
17672
  var Yh = /* @__PURE__ */ (function(e) {
17670
17673
  function t(r) {
17671
17674
  var n;
17672
- Vh(this, t), n = zh(this, t, [r]), Ae(n, "setInputRef", function(y) {
17673
- Sh([n.props.inputRef, n.inputRef], y);
17674
- }), Ae(n, "isCountrySupportedWithError", function(y) {
17675
+ Vh(this, t), n = zh(this, t, [r]), Ae(n, "setInputRef", function(b) {
17676
+ Sh([n.props.inputRef, n.inputRef], b);
17677
+ }), Ae(n, "isCountrySupportedWithError", function(b) {
17675
17678
  var $ = n.props.metadata;
17676
- return ln(y, $);
17677
- }), Ae(n, "onCountryChange", function(y) {
17678
- var $ = n.props, S = $.international, b = $.metadata, P = $.onChange, _ = $.focusInputOnCountrySelection, g = n.state, T = g.phoneDigits, D = g.country, H = Eh(T, {
17679
+ return ln(b, $);
17680
+ }), Ae(n, "onCountryChange", function(b) {
17681
+ var $ = n.props, y = $.international, S = $.metadata, P = $.onChange, O = $.focusInputOnCountrySelection, N = n.state, T = N.phoneDigits, D = N.country, H = Eh(T, {
17679
17682
  prevCountry: D,
17680
- newCountry: y,
17681
- metadata: b,
17682
- useNationalFormat: !S
17683
- }), J = ct(H, y, b);
17684
- _ && n.inputRef.current.focus(), n.setState({
17685
- country: y,
17686
- latestCountrySelectedByUser: y,
17683
+ newCountry: b,
17684
+ metadata: S,
17685
+ useNationalFormat: !y
17686
+ }), X = ct(H, b, S);
17687
+ O && n.inputRef.current.focus(), n.setState({
17688
+ country: b,
17689
+ latestCountrySelectedByUser: b,
17687
17690
  hasUserSelectedACountry: !0,
17688
17691
  phoneDigits: H,
17689
- value: J
17692
+ value: X
17690
17693
  }, function() {
17691
- P(J);
17694
+ P(X);
17692
17695
  });
17693
- }), Ae(n, "onChange", function(y) {
17694
- var $ = n.props, S = $.defaultCountry, b = $.onChange, P = $.addInternationalOption, _ = $.international, g = $.limitMaxLength, T = $.countryCallingCodeEditable, D = $.metadata, H = n.state, J = H.countries, ae = H.phoneDigits, ce = H.country, ue = H.latestCountrySelectedByUser, ye = Ah(y, {
17696
+ }), Ae(n, "onChange", function(b) {
17697
+ var $ = n.props, y = $.defaultCountry, S = $.onChange, P = $.addInternationalOption, O = $.international, N = $.limitMaxLength, T = $.countryCallingCodeEditable, D = $.metadata, H = n.state, X = H.countries, ae = H.phoneDigits, ce = H.country, ue = H.latestCountrySelectedByUser, ye = Ah(b, {
17695
17698
  prevPhoneDigits: ae,
17696
17699
  country: ce,
17697
17700
  countryRequired: !P,
17698
- defaultCountry: S,
17701
+ defaultCountry: y,
17699
17702
  latestCountrySelectedByUser: ue,
17700
17703
  getAnyCountry: function() {
17701
- return n.getFirstSupportedCountry({ countries: J });
17704
+ return n.getFirstSupportedCountry({ countries: X });
17702
17705
  },
17703
- countries: J,
17704
- international: _,
17705
- limitMaxLength: g,
17706
+ countries: X,
17707
+ international: O,
17708
+ limitMaxLength: N,
17706
17709
  countryCallingCodeEditable: T,
17707
17710
  metadata: D
17708
17711
  }), Ce = ye.phoneDigits, me = ye.country, fe = ye.value, se = {
@@ -17711,32 +17714,32 @@ var Yh = /* @__PURE__ */ (function(e) {
17711
17714
  country: me
17712
17715
  };
17713
17716
  ue && fe && !ft(fe, ue, D) && (se.latestCountrySelectedByUser = void 0), T === !1 && !fe && Ce === n.state.phoneDigits && (se.forceRerender = {}), n.setState(se, function() {
17714
- return b(fe);
17717
+ return S(fe);
17715
17718
  });
17716
17719
  }), Ae(n, "_onFocus", function() {
17717
17720
  return n.setState({ isFocused: !0 });
17718
17721
  }), Ae(n, "_onBlur", function() {
17719
17722
  return n.setState({ isFocused: !1 });
17720
- }), Ae(n, "onFocus", function(y) {
17723
+ }), Ae(n, "onFocus", function(b) {
17721
17724
  n._onFocus();
17722
17725
  var $ = n.props.onFocus;
17723
- $ && $(y);
17724
- }), Ae(n, "onBlur", function(y) {
17726
+ $ && $(b);
17727
+ }), Ae(n, "onBlur", function(b) {
17725
17728
  var $ = n.props.onBlur;
17726
- n._onBlur(), $ && $(y);
17727
- }), Ae(n, "onCountryFocus", function(y) {
17729
+ n._onBlur(), $ && $(b);
17730
+ }), Ae(n, "onCountryFocus", function(b) {
17728
17731
  n._onFocus();
17729
17732
  var $ = n.props.countrySelectProps;
17730
17733
  if ($) {
17731
- var S = $.onFocus;
17732
- S && S(y);
17734
+ var y = $.onFocus;
17735
+ y && y(b);
17733
17736
  }
17734
- }), Ae(n, "onCountryBlur", function(y) {
17737
+ }), Ae(n, "onCountryBlur", function(b) {
17735
17738
  n._onBlur();
17736
17739
  var $ = n.props.countrySelectProps;
17737
17740
  if ($) {
17738
- var S = $.onBlur;
17739
- S && S(y);
17741
+ var y = $.onBlur;
17742
+ y && y(b);
17740
17743
  }
17741
17744
  }), n.inputRef = /* @__PURE__ */ j.createRef();
17742
17745
  var a = n.props, i = a.value;
@@ -17824,13 +17827,13 @@ var Yh = /* @__PURE__ */ (function(e) {
17824
17827
  value: function() {
17825
17828
  var n = this.props, a = n.name, i = n.disabled, o = n.readOnly, s = n.autoComplete, d = n.style, l = n.className;
17826
17829
  n.inputRef;
17827
- var c = n.inputComponent, f = n.numberInputProps, h = n.smartCaret, m = n.countrySelectComponent, p = n.countrySelectProps, v = n.containerComponent, y = n.containerComponentProps;
17830
+ var c = n.inputComponent, f = n.numberInputProps, h = n.smartCaret, m = n.countrySelectComponent, p = n.countrySelectProps, v = n.containerComponent, b = n.containerComponentProps;
17828
17831
  n.defaultCountry, n.countries, n.countryOptionsOrder;
17829
17832
  var $ = n.labels;
17830
17833
  n.flags, n.flagComponent, n.flagUrl, n.addInternationalOption, n.internationalIcon, n.displayInitialValueAsLocalNumber, n.initialValueFormat, n.onCountryChange, n.limitMaxLength, n.countryCallingCodeEditable, n.focusInputOnCountrySelection, n.reset;
17831
- var S = n.metadata, b = n.international;
17834
+ var y = n.metadata, S = n.international;
17832
17835
  n.locales;
17833
- var P = Bh(n, Lh), _ = this.state, g = _.country, T = _.countries, D = _.phoneDigits, H = _.isFocused, J = h ? Wm : Zm, ae = this.getCountrySelectOptions({ countries: T });
17836
+ var P = Bh(n, Lh), O = this.state, N = O.country, T = O.countries, D = O.phoneDigits, H = O.isFocused, X = h ? Wm : Zm, ae = this.getCountrySelectOptions({ countries: T });
17834
17837
  return /* @__PURE__ */ j.createElement(v, pt({
17835
17838
  style: d,
17836
17839
  className: (0, kr.default)(l, "PhoneInput", {
@@ -17838,11 +17841,11 @@ var Yh = /* @__PURE__ */ (function(e) {
17838
17841
  "PhoneInput--disabled": i,
17839
17842
  "PhoneInput--readOnly": o
17840
17843
  })
17841
- }, y), /* @__PURE__ */ j.createElement(m, pt({
17844
+ }, b), /* @__PURE__ */ j.createElement(m, pt({
17842
17845
  name: a ? "".concat(a, "Country") : void 0,
17843
17846
  "aria-label": $.country
17844
17847
  }, p, {
17845
- value: g,
17848
+ value: N,
17846
17849
  options: ae,
17847
17850
  onChange: this.onCountryChange,
17848
17851
  onFocus: this.onCountryFocus,
@@ -17850,17 +17853,17 @@ var Yh = /* @__PURE__ */ (function(e) {
17850
17853
  disabled: i || p && p.disabled,
17851
17854
  readOnly: o || p && p.readOnly,
17852
17855
  iconComponent: this.CountryIcon
17853
- })), /* @__PURE__ */ j.createElement(J, pt({
17856
+ })), /* @__PURE__ */ j.createElement(X, pt({
17854
17857
  ref: this.setInputRef,
17855
17858
  type: "tel",
17856
17859
  autoComplete: s
17857
17860
  }, f, P, {
17858
- inputFormat: b === !0 ? "INTERNATIONAL" : b === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
17859
- international: b ? !0 : void 0,
17860
- withCountryCallingCode: b ? !0 : void 0,
17861
+ inputFormat: S === !0 ? "INTERNATIONAL" : S === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
17862
+ international: S ? !0 : void 0,
17863
+ withCountryCallingCode: S ? !0 : void 0,
17861
17864
  name: a,
17862
- metadata: S,
17863
- country: g,
17865
+ metadata: y,
17866
+ country: N,
17864
17867
  value: D || "",
17865
17868
  onChange: this.onChange,
17866
17869
  onFocus: this.onFocus,
@@ -17882,40 +17885,40 @@ var Yh = /* @__PURE__ */ (function(e) {
17882
17885
  return /* @__PURE__ */ j.createElement(Yh, pt({}, Zh(e), { inputRef: t }));
17883
17886
  });
17884
17887
  Zd.propTypes = {
17885
- value: O.default.string,
17886
- onChange: O.default.func.isRequired,
17887
- onFocus: O.default.func,
17888
- onBlur: O.default.func,
17889
- disabled: O.default.bool,
17890
- readOnly: O.default.bool,
17891
- autoComplete: O.default.string,
17892
- initialValueFormat: O.default.oneOf(["national"]),
17893
- displayInitialValueAsLocalNumber: O.default.bool,
17894
- defaultCountry: O.default.string,
17895
- countries: O.default.arrayOf(O.default.string),
17888
+ value: _.default.string,
17889
+ onChange: _.default.func.isRequired,
17890
+ onFocus: _.default.func,
17891
+ onBlur: _.default.func,
17892
+ disabled: _.default.bool,
17893
+ readOnly: _.default.bool,
17894
+ autoComplete: _.default.string,
17895
+ initialValueFormat: _.default.oneOf(["national"]),
17896
+ displayInitialValueAsLocalNumber: _.default.bool,
17897
+ defaultCountry: _.default.string,
17898
+ countries: _.default.arrayOf(_.default.string),
17896
17899
  labels: Vd,
17897
- locales: O.default.oneOfType([O.default.string, O.default.arrayOf(O.default.string)]),
17898
- flagUrl: O.default.string,
17899
- flags: O.default.objectOf(O.default.elementType),
17900
- flagComponent: O.default.elementType,
17901
- addInternationalOption: O.default.bool,
17902
- internationalIcon: O.default.elementType,
17903
- countryOptionsOrder: O.default.arrayOf(O.default.string),
17904
- style: O.default.object,
17905
- className: O.default.string,
17906
- countrySelectComponent: O.default.elementType,
17907
- countrySelectProps: O.default.object,
17908
- inputComponent: O.default.elementType,
17909
- numberInputProps: O.default.object,
17910
- containerComponent: O.default.elementType,
17911
- containerComponentProps: O.default.object,
17912
- smartCaret: O.default.bool,
17913
- international: O.default.bool,
17914
- limitMaxLength: O.default.bool,
17915
- countryCallingCodeEditable: O.default.bool,
17900
+ locales: _.default.oneOfType([_.default.string, _.default.arrayOf(_.default.string)]),
17901
+ flagUrl: _.default.string,
17902
+ flags: _.default.objectOf(_.default.elementType),
17903
+ flagComponent: _.default.elementType,
17904
+ addInternationalOption: _.default.bool,
17905
+ internationalIcon: _.default.elementType,
17906
+ countryOptionsOrder: _.default.arrayOf(_.default.string),
17907
+ style: _.default.object,
17908
+ className: _.default.string,
17909
+ countrySelectComponent: _.default.elementType,
17910
+ countrySelectProps: _.default.object,
17911
+ inputComponent: _.default.elementType,
17912
+ numberInputProps: _.default.object,
17913
+ containerComponent: _.default.elementType,
17914
+ containerComponentProps: _.default.object,
17915
+ smartCaret: _.default.bool,
17916
+ international: _.default.bool,
17917
+ limitMaxLength: _.default.bool,
17918
+ countryCallingCodeEditable: _.default.bool,
17916
17919
  metadata: Ud,
17917
- onCountryChange: O.default.func,
17918
- focusInputOnCountrySelection: O.default.bool
17920
+ onCountryChange: _.default.func,
17921
+ focusInputOnCountrySelection: _.default.bool
17919
17922
  };
17920
17923
  var Wo = {
17921
17924
  autoComplete: "tel",
@@ -17925,7 +17928,7 @@ var Wo = {
17925
17928
  internationalIcon: dn,
17926
17929
  inputComponent: "input",
17927
17930
  containerComponent: "div",
17928
- reset: O.default.any,
17931
+ reset: _.default.any,
17929
17932
  smartCaret: !0,
17930
17933
  addInternationalOption: !0,
17931
17934
  countryCallingCodeEditable: !0,
@@ -18244,7 +18247,7 @@ function Xd(e) {
18244
18247
  labels: Vd
18245
18248
  }, t;
18246
18249
  }
18247
- var Fv = Xd();
18250
+ var jv = Xd();
18248
18251
  function rv(e, t) {
18249
18252
  var r = Array.prototype.slice.call(t);
18250
18253
  return r.push(ld), e.apply(this, r);
@@ -18279,7 +18282,7 @@ var av = [
18279
18282
  return +`${t}${r}`;
18280
18283
  };
18281
18284
  function dv() {
18282
- const e = ze(), { tenantId: t, id: r } = X((w) => w.barber.outletDetails), { timeZone: n, image: a, outletName: i, address: o } = X((w) => w.barber.outletDetails), { staff: s, selectedServices: d, selectedProfessional: l } = X((w) => w.barber.service), { selectedSlotIds: c, selectedDate: f, selectedTime: h } = X((w) => w.barber.slots), { userDetails: m, bookingMode: p, tipPct: v } = X((w) => w.barber.appointment), y = Array.isArray(d) ? d : [d], { selectedSlotIndexes: $, slots: S } = X((w) => w.barber.slots), [b, P] = Z(!1), [_, g] = Z(!1), [T, D] = Z(null), [H, J] = 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: Ua, setValue: Ct, formState: { errors: qe, isSubmitted: Va, isSubmitting: Jd } } = ha({
18283
18286
  defaultValues: {
18284
18287
  firstName: m?.firstName || "",
18285
18288
  lastName: m?.lastName || "",
@@ -18288,7 +18291,7 @@ function dv() {
18288
18291
  },
18289
18292
  mode: "onChange",
18290
18293
  reValidateMode: "onChange"
18291
- }), un = Ht("phone"), fn = Ht("email"), pn = (w) => w?.replace(/\s+/g, "") || "", Qd = (w) => /^\S+@\S+\.\S+$/.test(w), mn = y.map((w) => {
18294
+ }), un = Ht("phone"), fn = Ht("email"), pn = (w) => w?.replace(/\s+/g, "") || "", Qd = (w) => /^\S+@\S+\.\S+$/.test(w), mn = b.map((w) => {
18292
18295
  const I = s?.find((B) => B.id === l?.id)?.assignments?.find((B) => B.id === w.id), L = {
18293
18296
  ...w,
18294
18297
  price: I?.price ?? w.price ?? w.min_price ?? 0,
@@ -18301,9 +18304,9 @@ function dv() {
18301
18304
  unitTax: Mi(L, { perUnit: !0 })
18302
18305
  };
18303
18306
  }), hn = [
18304
- ...S?.morning ?? [],
18305
- ...S?.afternoon ?? [],
18306
- ...S?.evening ?? []
18307
+ ...y?.morning ?? [],
18308
+ ...y?.afternoon ?? [],
18309
+ ...y?.evening ?? []
18307
18310
  ], el = mn.reduce((w, I) => w + Number(I.duration ?? 0), 0), tl = Math.ceil(el / iv), rl = (w) => {
18308
18311
  if (!hn.length) return "";
18309
18312
  const I = hn[w]?.start_time, L = hn[w + tl - 1];
@@ -18312,7 +18315,7 @@ function dv() {
18312
18315
  day: Number(f?.day ?? G.day),
18313
18316
  month: Number(f?.month ?? G.month),
18314
18317
  year: Number(f?.year ?? G.year)
18315
- }, 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(() => y.filter((w) => !(!Ys(w) || (w?.consent_rule?.enforcementMode ?? w?.enforcementMode) === "FIXED")), [y]), ol = ge(() => Ie.map((w) => String(w.id)).filter(Boolean), [Ie]), sl = (w) => {
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) => {
18316
18319
  const I = w?.consent_template ?? w?.consentTemplate ?? null;
18317
18320
  return {
18318
18321
  heading: String(I?.heading ?? "").trim(),
@@ -18565,7 +18568,7 @@ function dv() {
18565
18568
  staffId: l?.id,
18566
18569
  date: ti,
18567
18570
  startTime: h,
18568
- serviceIds: y.map((B) => B.id),
18571
+ serviceIds: b.map((B) => B.id),
18569
18572
  slotIds: c,
18570
18573
  isWalkIn: !1,
18571
18574
  requiresConsent: Ie.length > 0,
@@ -18586,7 +18589,7 @@ function dv() {
18586
18589
  p === "booking" && Ja > 0 && await ml(ne, be, Oe), H === "card" ? (D({
18587
18590
  appointmentId: ne,
18588
18591
  customerId: be
18589
- }), g(!0)) : (e(Jt(String(ne))), e(Be()));
18592
+ }), N(!0)) : (e(Jt(String(ne))), e(Be()));
18590
18593
  } catch (B) {
18591
18594
  const ie = B?.payload?.message || B?.data?.message || B?.message || "Staff not working on this day";
18592
18595
  re.error(ie);
@@ -18668,16 +18671,16 @@ function dv() {
18668
18671
  re.warning(Oe instanceof Error ? Oe.message : String(Oe ?? "Payment done, but finalize failed"));
18669
18672
  }
18670
18673
  } else re.warning("Payment pending");
18671
- return g(!1), e(Jt(String(T?.appointmentId))), e(Be()), !0;
18674
+ return N(!1), e(Jt(String(T?.appointmentId))), e(Be()), !0;
18672
18675
  } catch (I) {
18673
- return re.warning(I instanceof Error ? I.message : "Payment failed, but appointment is booked"), g(!1), e(Jt(String(T?.appointmentId))), e(Be()), !0;
18676
+ return re.warning(I instanceof Error ? I.message : "Payment failed, but appointment is booked"), N(!1), e(Jt(String(T?.appointmentId))), e(Be()), !0;
18674
18677
  } finally {
18675
18678
  P(!1);
18676
18679
  }
18677
18680
  }, $l = () => {
18678
- g(!1), re.warning("Appointment booked. Payment was cancelled."), e(Jt(String(T?.appointmentId))), e(Be());
18681
+ N(!1), re.warning("Appointment booked. Payment was cancelled."), e(Jt(String(T?.appointmentId))), e(Be());
18679
18682
  };
18680
- return /* @__PURE__ */ N(Aa, {
18683
+ return /* @__PURE__ */ g(Aa, {
18681
18684
  sidebar: /* @__PURE__ */ u("div", {
18682
18685
  className: "aaravpos-barber-aside",
18683
18686
  children: /* @__PURE__ */ u(xa, {
@@ -18690,11 +18693,11 @@ function dv() {
18690
18693
  consentCompleted: Ja,
18691
18694
  totalConsents: Xa,
18692
18695
  checkingConsent: U,
18693
- loading: b
18696
+ loading: S
18694
18697
  })
18695
18698
  }),
18696
18699
  children: [
18697
- /* @__PURE__ */ N($e, { children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */ N("div", {
18700
+ /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */ g("div", {
18698
18701
  className: "aaravpos-barber-margin-top-20",
18699
18702
  children: [
18700
18703
  /* @__PURE__ */ u("h1", {
@@ -18705,9 +18708,9 @@ function dv() {
18705
18708
  className: "aaravpos-barber-sub-title",
18706
18709
  children: "Review your appointment details before booking"
18707
18710
  }),
18708
- /* @__PURE__ */ N("div", {
18711
+ /* @__PURE__ */ g("div", {
18709
18712
  className: "aaravpos-barber-booking-wrapper aaravpos-barber-margin-top-20",
18710
- children: [/* @__PURE__ */ N("div", {
18713
+ children: [/* @__PURE__ */ g("div", {
18711
18714
  className: "aaravpos-barber-outlet-info",
18712
18715
  children: [a && /* @__PURE__ */ u("div", {
18713
18716
  className: "aaravpos-barber-outlet-logo",
@@ -18716,70 +18719,70 @@ function dv() {
18716
18719
  alt: "Logo",
18717
18720
  className: "aaravpos-barber-outlet-logo-img"
18718
18721
  })
18719
- }), /* @__PURE__ */ N("div", {
18722
+ }), /* @__PURE__ */ g("div", {
18720
18723
  className: "aaravpos-barber-outlet-content",
18721
18724
  children: [/* @__PURE__ */ u("p", {
18722
18725
  className: "aaravpos-barber-outlet-name",
18723
18726
  children: i ?? "-"
18724
- }), /* @__PURE__ */ N("p", {
18727
+ }), /* @__PURE__ */ g("p", {
18725
18728
  className: "aaravpos-barber-outlet-address",
18726
18729
  children: [o ?? "-", /* @__PURE__ */ u("br", {})]
18727
18730
  })]
18728
18731
  })]
18729
- }), /* @__PURE__ */ N("div", {
18732
+ }), /* @__PURE__ */ g("div", {
18730
18733
  className: "aaravpos-barber-booking-scroll",
18731
- children: [/* @__PURE__ */ N("div", {
18734
+ children: [/* @__PURE__ */ g("div", {
18732
18735
  className: "aaravpos-barber-booking-grid",
18733
- children: [/* @__PURE__ */ N("div", {
18736
+ children: [/* @__PURE__ */ g("div", {
18734
18737
  className: "aaravpos-barber-booking-column",
18735
- children: [/* @__PURE__ */ u(Ho, { children: "Appointment" }), /* @__PURE__ */ N(lv, { children: [/* @__PURE__ */ N("div", {
18738
+ children: [/* @__PURE__ */ u(Ho, { children: "Appointment" }), /* @__PURE__ */ g(lv, { children: [/* @__PURE__ */ g("div", {
18736
18739
  className: "aaravpos-barber-appointment-header",
18737
18740
  children: [
18738
18741
  /* @__PURE__ */ u(cv, { pro: l }),
18739
- /* @__PURE__ */ N("div", {
18742
+ /* @__PURE__ */ g("div", {
18740
18743
  className: "aaravpos-barber-appointment-content",
18741
18744
  children: [/* @__PURE__ */ u("p", {
18742
18745
  className: "aaravpos-barber-appointment-name",
18743
18746
  children: l?.name
18744
18747
  }), /* @__PURE__ */ u("p", {
18745
18748
  className: "aaravpos-barber-appointment-services",
18746
- children: y.map((w) => w.name).join(", ")
18749
+ children: b.map((w) => w.name).join(", ")
18747
18750
  })]
18748
18751
  }),
18749
- /* @__PURE__ */ N("span", {
18752
+ /* @__PURE__ */ g("span", {
18750
18753
  className: "aaravpos-barber-appointment-price",
18751
18754
  children: [/* @__PURE__ */ u(Se, { size: 14 }), vn]
18752
18755
  })
18753
18756
  ]
18754
- }), /* @__PURE__ */ N("div", {
18757
+ }), /* @__PURE__ */ g("div", {
18755
18758
  className: "aaravpos-barber-appointment-date",
18756
18759
  children: [/* @__PURE__ */ u(gf, { size: 18 }), /* @__PURE__ */ u("span", {
18757
18760
  className: "aaravpos-barber-appointment-date-text",
18758
18761
  children: nl ?? "No time selected"
18759
18762
  })]
18760
18763
  })] })]
18761
- }), /* @__PURE__ */ N("div", {
18764
+ }), /* @__PURE__ */ g("div", {
18762
18765
  className: "aaravpos-barber-booking-column",
18763
18766
  children: [/* @__PURE__ */ u(Ho, { children: "Payment Method" }), /* @__PURE__ */ u(uv, {
18764
18767
  icon: /* @__PURE__ */ u(e1, { size: 18 }),
18765
18768
  label: "Pay in person",
18766
18769
  selected: H === "person",
18767
18770
  onClick: () => {
18768
- J("person");
18771
+ X("person");
18769
18772
  }
18770
18773
  })]
18771
18774
  })]
18772
18775
  }), H && /* @__PURE__ */ u("form", {
18773
18776
  onSubmit: He(vl),
18774
- children: /* @__PURE__ */ N("div", {
18777
+ children: /* @__PURE__ */ g("div", {
18775
18778
  className: "aaravpos-barber-details-section aaravpos-barber-margin-top-20",
18776
- children: [/* @__PURE__ */ N("div", {
18779
+ children: [/* @__PURE__ */ g("div", {
18777
18780
  className: "aaravpos-barber-details-grid",
18778
18781
  children: [
18779
- /* @__PURE__ */ N("div", {
18782
+ /* @__PURE__ */ g("div", {
18780
18783
  className: "aaravpos-barber-form-group",
18781
18784
  children: [
18782
- /* @__PURE__ */ N("label", {
18785
+ /* @__PURE__ */ g("label", {
18783
18786
  className: "aaravpos-barber-form-label",
18784
18787
  htmlFor: "phone",
18785
18788
  children: [
@@ -18798,7 +18801,7 @@ function dv() {
18798
18801
  const I = pn(w), L = !!I, B = !!fn?.trim();
18799
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;
18800
18803
  } },
18801
- render: ({ field: w }) => /* @__PURE__ */ N("div", {
18804
+ render: ({ field: w }) => /* @__PURE__ */ g("div", {
18802
18805
  className: "aaravpos-barber-input-wrapper",
18803
18806
  children: [/* @__PURE__ */ u(nv, {
18804
18807
  ...w,
@@ -18810,7 +18813,7 @@ function dv() {
18810
18813
  onChange: (I) => Za(I ?? "", w.onChange, "phone"),
18811
18814
  countryCallingCodeEditable: !1,
18812
18815
  className: "aaravpos-barber-custom-input"
18813
- }), b && z === "phone" && /* @__PURE__ */ u("div", {
18816
+ }), S && z === "phone" && /* @__PURE__ */ u("div", {
18814
18817
  className: "aaravpos-barber-loader-wrapper",
18815
18818
  children: /* @__PURE__ */ u("div", { className: "aaravpos-barber-loader" })
18816
18819
  })]
@@ -18820,7 +18823,7 @@ function dv() {
18820
18823
  className: "aaravpos-barber-error-text",
18821
18824
  children: qe.phone.message
18822
18825
  }),
18823
- K && /* @__PURE__ */ N("div", {
18826
+ K && /* @__PURE__ */ g("div", {
18824
18827
  className: "aaravpos-barber-autofill-text",
18825
18828
  children: ["Using existing customer", /* @__PURE__ */ u("span", {
18826
18829
  onClick: dl,
@@ -18830,10 +18833,10 @@ function dv() {
18830
18833
  })
18831
18834
  ]
18832
18835
  }),
18833
- /* @__PURE__ */ N("div", {
18836
+ /* @__PURE__ */ g("div", {
18834
18837
  className: "aaravpos-barber-form-group",
18835
18838
  children: [
18836
- /* @__PURE__ */ N("label", {
18839
+ /* @__PURE__ */ g("label", {
18837
18840
  htmlFor: "email",
18838
18841
  className: "aaravpos-barber-form-label",
18839
18842
  children: [
@@ -18876,10 +18879,10 @@ function dv() {
18876
18879
  })
18877
18880
  ]
18878
18881
  }),
18879
- /* @__PURE__ */ N("div", {
18882
+ /* @__PURE__ */ g("div", {
18880
18883
  className: "aaravpos-barber-form-group",
18881
18884
  children: [
18882
- /* @__PURE__ */ N("label", {
18885
+ /* @__PURE__ */ g("label", {
18883
18886
  htmlFor: "first_name",
18884
18887
  className: "aaravpos-barber-form-label",
18885
18888
  children: [
@@ -18920,7 +18923,7 @@ function dv() {
18920
18923
  })
18921
18924
  ]
18922
18925
  }),
18923
- /* @__PURE__ */ N("div", {
18926
+ /* @__PURE__ */ g("div", {
18924
18927
  className: "aaravpos-barber-form-group",
18925
18928
  children: [
18926
18929
  /* @__PURE__ */ u("label", {
@@ -18972,7 +18975,7 @@ function dv() {
18972
18975
  })
18973
18976
  ]
18974
18977
  })] }),
18975
- _ && /* @__PURE__ */ u(S1, {
18978
+ O && /* @__PURE__ */ u(S1, {
18976
18979
  onClose: $l,
18977
18980
  onPay: bl,
18978
18981
  amount: Ka
@@ -19018,16 +19021,16 @@ function uv({ icon: e, label: t, selected: r, onClick: n }) {
19018
19021
  className: "aaravpos-barber-paymentcard-container",
19019
19022
  children: /* @__PURE__ */ u("div", {
19020
19023
  className: `${r ? "aaravpos-barber-paymentcard-card active" : "aaravpos-barber-paymentcard-card"}`,
19021
- children: /* @__PURE__ */ N("div", {
19024
+ children: /* @__PURE__ */ g("div", {
19022
19025
  className: "aaravpos-barber-paymentcard-content",
19023
19026
  children: [/* @__PURE__ */ u("div", {
19024
19027
  className: "aaravpos-barber-paymentcard-icon",
19025
19028
  children: e
19026
19029
  }), /* @__PURE__ */ u("div", {
19027
19030
  className: "aaravpos-barber-paymentcard-info",
19028
- children: /* @__PURE__ */ N("div", {
19031
+ children: /* @__PURE__ */ g("div", {
19029
19032
  className: "aaravpos-barber-paymentcard-header",
19030
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ u("h3", {
19033
+ children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ u("h3", {
19031
19034
  className: "aaravpos-barber-paymentcard-title",
19032
19035
  children: t
19033
19036
  }), /* @__PURE__ */ u("p", {
@@ -19045,7 +19048,7 @@ function uv({ icon: e, label: t, selected: r, onClick: n }) {
19045
19048
  });
19046
19049
  }
19047
19050
  function fv() {
19048
- const e = ze(), t = X((g) => g.barber.appointment.appointmentId), { tenantId: r } = X((g) => g.barber.outletDetails), [n, a] = Z(null), [i, o] = Z(!0), [s, d] = Z(null), [l, c] = Z(!1);
19051
+ const e = ze(), t = J((N) => N.barber.appointment.appointmentId), { tenantId: r } = J((N) => N.barber.outletDetails), [n, a] = Z(null), [i, o] = Z(!0), [s, d] = Z(null), [l, c] = Z(!1);
19049
19052
  de(() => {
19050
19053
  if (!t) {
19051
19054
  d("No appointment ID provided"), o(!1);
@@ -19072,21 +19075,21 @@ function fv() {
19072
19075
  children: "Loading appointment details..."
19073
19076
  })
19074
19077
  });
19075
- if (s || !n) return /* @__PURE__ */ N("div", {
19078
+ if (s || !n) return /* @__PURE__ */ g("div", {
19076
19079
  className: "aaravpos-barber-error-container",
19077
19080
  children: [/* @__PURE__ */ u("p", {
19078
19081
  className: "aaravpos-barber-error-text",
19079
19082
  children: s || "Appointment not found"
19080
- }), /* @__PURE__ */ N("button", {
19083
+ }), /* @__PURE__ */ g("button", {
19081
19084
  onClick: f,
19082
19085
  className: "aaravpos-barber-book-btn",
19083
19086
  children: [/* @__PURE__ */ u(xi, {}), "Book Another Appointment"]
19084
19087
  })]
19085
19088
  });
19086
- const { staff: h, outlet: m, services: p } = n, v = p?.reduce((g, T) => g + Number(T.price || 0), 0), y = (n.tipsCents || 0) / 100, $ = (n.taxCents || 0) / 100, S = (n.totalCents || 0) / 100, b = S > 0 ? S.toFixed(2) : (v + y + $).toFixed(2), P = l ? p : p.slice(0, 5), _ = p.length - 5;
19089
+ const { staff: h, outlet: m, services: p } = n, v = p?.reduce((N, T) => N + Number(T.price || 0), 0), b = (n.tipsCents || 0) / 100, $ = (n.taxCents || 0) / 100, y = (n.totalCents || 0) / 100, S = y > 0 ? y.toFixed(2) : (v + b + $).toFixed(2), P = l ? p : p.slice(0, 5), O = p.length - 5;
19087
19090
  return /* @__PURE__ */ u("div", {
19088
19091
  className: "aaravpos-barber-success-wrapper",
19089
- children: /* @__PURE__ */ N("div", {
19092
+ children: /* @__PURE__ */ g("div", {
19090
19093
  className: "aaravpos-barber-success-motion",
19091
19094
  children: [
19092
19095
  /* @__PURE__ */ u("div", {
@@ -19097,7 +19100,7 @@ function fv() {
19097
19100
  className: "aaravpos-barber-success-title",
19098
19101
  children: "You're Booked!"
19099
19102
  }),
19100
- /* @__PURE__ */ N("p", {
19103
+ /* @__PURE__ */ g("p", {
19101
19104
  className: "aaravpos-barber-success-description",
19102
19105
  children: [
19103
19106
  "Your appointment has been confirmed.",
@@ -19105,12 +19108,12 @@ function fv() {
19105
19108
  "A confirmation has been sent to your email."
19106
19109
  ]
19107
19110
  }),
19108
- /* @__PURE__ */ N("div", {
19111
+ /* @__PURE__ */ g("div", {
19109
19112
  className: "aaravpos-barber-success-content",
19110
- children: [/* @__PURE__ */ N("div", {
19113
+ children: [/* @__PURE__ */ g("div", {
19111
19114
  className: "aaravpos-barber-success-card",
19112
19115
  children: [
19113
- /* @__PURE__ */ N("div", {
19116
+ /* @__PURE__ */ g("div", {
19114
19117
  className: "aaravpos-barber-success-row aaravpos-barber-success-row-first",
19115
19118
  children: [/* @__PURE__ */ u("span", {
19116
19119
  className: "aaravpos-barber-label",
@@ -19120,7 +19123,7 @@ function fv() {
19120
19123
  children: m?.outletName || "-"
19121
19124
  })]
19122
19125
  }),
19123
- /* @__PURE__ */ N("div", {
19126
+ /* @__PURE__ */ g("div", {
19124
19127
  className: "aaravpos-barber-success-row",
19125
19128
  children: [/* @__PURE__ */ u("span", {
19126
19129
  className: "aaravpos-barber-label",
@@ -19130,9 +19133,9 @@ function fv() {
19130
19133
  children: h ? `${h?.firstName} ${h?.lastName}` : "-"
19131
19134
  })]
19132
19135
  }),
19133
- /* @__PURE__ */ N("div", {
19136
+ /* @__PURE__ */ g("div", {
19134
19137
  className: "aaravpos-barber-success-row aaravpos-barber-services-header",
19135
- children: [/* @__PURE__ */ N("span", {
19138
+ children: [/* @__PURE__ */ g("span", {
19136
19139
  className: "aaravpos-barber-services-label",
19137
19140
  children: [
19138
19141
  "Services (",
@@ -19140,40 +19143,40 @@ function fv() {
19140
19143
  ")"
19141
19144
  ]
19142
19145
  }), p.length > 5 && /* @__PURE__ */ u("button", {
19143
- onClick: () => c((g) => !g),
19146
+ onClick: () => c((N) => !N),
19144
19147
  className: "aaravpos-barber-show-btn",
19145
- children: l ? "Hide" : /* @__PURE__ */ N("span", {
19148
+ children: l ? "Hide" : /* @__PURE__ */ g("span", {
19146
19149
  className: "aaravpos-barber-show-btn-inner",
19147
19150
  children: ["Show", /* @__PURE__ */ u(rd, { size: 16 })]
19148
19151
  })
19149
19152
  })]
19150
19153
  }),
19151
- /* @__PURE__ */ N("div", {
19154
+ /* @__PURE__ */ g("div", {
19152
19155
  className: "aaravpos-barber-services-list",
19153
- children: [P?.map((g) => /* @__PURE__ */ N("div", {
19156
+ children: [P?.map((N) => /* @__PURE__ */ g("div", {
19154
19157
  className: "aaravpos-barber-service-row",
19155
19158
  children: [/* @__PURE__ */ u("span", {
19156
19159
  className: "aaravpos-barber-service-name",
19157
- children: g.serviceName
19158
- }), /* @__PURE__ */ N("span", {
19160
+ children: N.serviceName
19161
+ }), /* @__PURE__ */ g("span", {
19159
19162
  className: "aaravpos-barber-service-price",
19160
- children: [/* @__PURE__ */ u(Se, { size: 14 }), Number(g.price).toFixed(2)]
19163
+ children: [/* @__PURE__ */ u(Se, { size: 14 }), Number(N.price).toFixed(2)]
19161
19164
  })]
19162
- }, g.id)), !l && _ > 0 && /* @__PURE__ */ N("div", {
19165
+ }, N.id)), !l && O > 0 && /* @__PURE__ */ g("div", {
19163
19166
  className: "aaravpos-barber-more-services",
19164
19167
  children: [
19165
19168
  /* @__PURE__ */ u(id, { size: 14 }),
19166
- _,
19169
+ O,
19167
19170
  " more services"
19168
19171
  ]
19169
19172
  })]
19170
19173
  }),
19171
- /* @__PURE__ */ N("div", {
19174
+ /* @__PURE__ */ g("div", {
19172
19175
  className: "aaravpos-barber-success-row",
19173
19176
  children: [/* @__PURE__ */ u("span", {
19174
19177
  className: "aaravpos-barber-label",
19175
19178
  children: "Date & Time"
19176
- }), /* @__PURE__ */ N("span", {
19179
+ }), /* @__PURE__ */ g("span", {
19177
19180
  className: "aaravpos-barber-value",
19178
19181
  children: [
19179
19182
  n.appointmentDate,
@@ -19183,38 +19186,38 @@ function fv() {
19183
19186
  ]
19184
19187
  })]
19185
19188
  }),
19186
- /* @__PURE__ */ N("div", {
19189
+ /* @__PURE__ */ g("div", {
19187
19190
  className: "aaravpos-barber-success-row",
19188
19191
  children: [/* @__PURE__ */ u("span", {
19189
19192
  className: "aaravpos-barber-label",
19190
19193
  children: "Tip"
19191
- }), /* @__PURE__ */ N("span", {
19194
+ }), /* @__PURE__ */ g("span", {
19192
19195
  className: "aaravpos-barber-price",
19193
- children: [/* @__PURE__ */ u(Se, { size: 14 }), y.toFixed(2)]
19196
+ children: [/* @__PURE__ */ u(Se, { size: 14 }), b.toFixed(2)]
19194
19197
  })]
19195
19198
  }),
19196
- /* @__PURE__ */ N("div", {
19199
+ /* @__PURE__ */ g("div", {
19197
19200
  className: "aaravpos-barber-success-row",
19198
19201
  children: [/* @__PURE__ */ u("span", {
19199
19202
  className: "aaravpos-barber-label",
19200
19203
  children: "Tax"
19201
- }), /* @__PURE__ */ N("span", {
19204
+ }), /* @__PURE__ */ g("span", {
19202
19205
  className: "aaravpos-barber-price",
19203
19206
  children: [/* @__PURE__ */ u(Se, { size: 14 }), $.toFixed(2)]
19204
19207
  })]
19205
19208
  }),
19206
- /* @__PURE__ */ N("div", {
19209
+ /* @__PURE__ */ g("div", {
19207
19210
  className: "aaravpos-barber-total-row",
19208
19211
  children: [/* @__PURE__ */ u("span", {
19209
19212
  className: "aaravpos-barber-label",
19210
19213
  children: "Total Amount"
19211
- }), /* @__PURE__ */ N("span", {
19214
+ }), /* @__PURE__ */ g("span", {
19212
19215
  className: "aaravpos-barber-total-price",
19213
- children: [/* @__PURE__ */ u(Se, { size: 14 }), b]
19216
+ children: [/* @__PURE__ */ u(Se, { size: 14 }), S]
19214
19217
  })]
19215
19218
  })
19216
19219
  ]
19217
- }), /* @__PURE__ */ N("button", {
19220
+ }), /* @__PURE__ */ g("button", {
19218
19221
  onClick: f,
19219
19222
  className: "aaravpos-barber-book-btn",
19220
19223
  children: [/* @__PURE__ */ u(xi, {}), "Book Another Appointment"]
@@ -19225,7 +19228,7 @@ function fv() {
19225
19228
  });
19226
19229
  }
19227
19230
  function pv() {
19228
- const { currentStep: e } = X((r) => r.barber.breadcrumbs), t = {
19231
+ const { currentStep: e } = J((r) => r.barber.breadcrumbs), t = {
19229
19232
  professionals: d1,
19230
19233
  services: p1,
19231
19234
  time: $1,
@@ -19244,20 +19247,20 @@ function pv() {
19244
19247
  });
19245
19248
  }
19246
19249
  function mv() {
19247
- return /* @__PURE__ */ N($e, { children: [/* @__PURE__ */ u(pv, {}), /* @__PURE__ */ u(Dl, {
19250
+ return /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(pv, {}), /* @__PURE__ */ u(Dl, {
19248
19251
  position: "top-right",
19249
19252
  autoClose: 3e3
19250
19253
  })] });
19251
19254
  }
19252
19255
  function hv() {
19253
- return /* @__PURE__ */ N("div", {
19256
+ return /* @__PURE__ */ g("div", {
19254
19257
  className: "aaravpos-barber-professional-card skeleton-card",
19255
19258
  children: [
19256
19259
  /* @__PURE__ */ u("div", {
19257
19260
  className: "",
19258
19261
  children: /* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-image shimmer" })
19259
19262
  }),
19260
- /* @__PURE__ */ N("div", {
19263
+ /* @__PURE__ */ g("div", {
19261
19264
  className: "aaravpos-barber-skeleton-content",
19262
19265
  children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-name shimmer" }), /* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-role shimmer" })]
19263
19266
  }),
@@ -19278,7 +19281,7 @@ function vv() {
19278
19281
  });
19279
19282
  }
19280
19283
  var yv = ({ bookingCode: e }) => {
19281
- const t = ze(), r = X((l) => l.barber.service.staff), n = X((l) => l.barber.theme), [a, i] = Z(!1), [o, s] = Z(null), d = Ue(async () => {
19284
+ const t = ze(), r = J((l) => l.barber.service.staff), n = J((l) => l.barber.theme), [a, i] = Z(!1), [o, s] = Z(null), d = Ue(async () => {
19282
19285
  try {
19283
19286
  i(!0), s(null);
19284
19287
  const l = await ju(e);
@@ -19314,7 +19317,7 @@ var yv = ({ bookingCode: e }) => {
19314
19317
  className: "aaravpos-barber-overflow-hidden",
19315
19318
  children: /* @__PURE__ */ u(mv, {})
19316
19319
  });
19317
- }, jv = ({ ...e }) => /* @__PURE__ */ u(lf, { children: /* @__PURE__ */ u(yv, { ...e }) });
19320
+ }, Lv = ({ ...e }) => /* @__PURE__ */ u(lf, { children: /* @__PURE__ */ u(yv, { ...e }) });
19318
19321
  export {
19319
- jv as AppointmentBarberBooking
19322
+ Lv as AppointmentBarberBooking
19320
19323
  };