@aaravpos/appointment-barber-booking 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +24 -24
- package/dist/index.js +791 -791
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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),
|
|
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
|
|
799
|
+
let S = !0;
|
|
800
800
|
const P = m(function() {
|
|
801
801
|
o++;
|
|
802
|
-
const
|
|
803
|
-
if (s =
|
|
804
|
-
const { devModeChecks: T = {} } = c, { identityFunctionCheck: D, inputStabilityCheck: H } = vc(
|
|
805
|
-
if (D.shouldRun && D.run(l,
|
|
806
|
-
const
|
|
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:
|
|
809
|
-
inputSelectorResultsCopy:
|
|
808
|
+
inputSelectorResults: N,
|
|
809
|
+
inputSelectorResultsCopy: X
|
|
810
810
|
}, {
|
|
811
811
|
memoize: f,
|
|
812
812
|
memoizeOptions: v
|
|
813
813
|
}, arguments);
|
|
814
814
|
}
|
|
815
|
-
|
|
815
|
+
S && (S = !1);
|
|
816
816
|
}
|
|
817
817
|
return s;
|
|
818
|
-
}, ...
|
|
818
|
+
}, ...b);
|
|
819
819
|
return Object.assign(P, {
|
|
820
820
|
resultFunc: l,
|
|
821
|
-
memoizedResultFunc:
|
|
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
|
|
1104
|
-
if (
|
|
1105
|
-
const { keyPath: $, value:
|
|
1106
|
-
console.error(`A non-serializable value was detected in an action, in the path: \`${$}\`. Value:`,
|
|
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
|
|
1113
|
-
if (
|
|
1114
|
-
const { keyPath: $, value:
|
|
1115
|
-
console.error(`A non-serializable value was detected in the state, in the path: \`${$}\`. Value:`,
|
|
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((
|
|
1190
|
-
if (v.has(
|
|
1191
|
-
v.add(
|
|
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,
|
|
1385
|
-
function $(
|
|
1386
|
-
|
|
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
|
|
1390
|
-
let
|
|
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
|
|
1400
|
+
const O = new Promise((N, T) => {
|
|
1401
1401
|
v = () => {
|
|
1402
1402
|
T({
|
|
1403
1403
|
name: "AbortError",
|
|
1404
|
-
message:
|
|
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
|
-
}))),
|
|
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: (
|
|
1422
|
-
fulfillWithValue: (
|
|
1423
|
-
})).then((
|
|
1424
|
-
if (
|
|
1425
|
-
return
|
|
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
|
-
|
|
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(
|
|
1432
|
+
return n && !n.dispatchConditionRejection && o.match(S) && S.meta.condition || c(S), S;
|
|
1433
1433
|
})();
|
|
1434
|
-
return Object.assign(
|
|
1434
|
+
return Object.assign(y, {
|
|
1435
1435
|
abort: $,
|
|
1436
1436
|
requestId: m,
|
|
1437
1437
|
arg: d,
|
|
1438
1438
|
unwrap() {
|
|
1439
|
-
return
|
|
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(
|
|
1479
|
-
const
|
|
1480
|
-
if (!
|
|
1481
|
-
if (
|
|
1482
|
-
return d.sliceCaseReducersByType[
|
|
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(
|
|
1484
|
+
addMatcher(S, P) {
|
|
1485
1485
|
return d.sliceMatchers.push({
|
|
1486
|
-
matcher:
|
|
1486
|
+
matcher: S,
|
|
1487
1487
|
reducer: P
|
|
1488
1488
|
}), l;
|
|
1489
1489
|
},
|
|
1490
|
-
exposeAction(
|
|
1491
|
-
return d.actionCreators[
|
|
1490
|
+
exposeAction(S, P) {
|
|
1491
|
+
return d.actionCreators[S] = P, l;
|
|
1492
1492
|
},
|
|
1493
|
-
exposeCaseReducer(
|
|
1494
|
-
return d.sliceCaseReducersByName[
|
|
1493
|
+
exposeCaseReducer(S, P) {
|
|
1494
|
+
return d.sliceCaseReducersByName[S] = P, l;
|
|
1495
1495
|
}
|
|
1496
1496
|
};
|
|
1497
|
-
s.forEach((
|
|
1498
|
-
const P = o[
|
|
1499
|
-
reducerName:
|
|
1500
|
-
type: Vc(a,
|
|
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(
|
|
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 [
|
|
1509
|
-
...
|
|
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
|
|
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
|
-
|
|
1516
|
+
O && T.addDefaultCase(O);
|
|
1517
1517
|
});
|
|
1518
1518
|
}
|
|
1519
|
-
const f = (
|
|
1519
|
+
const f = (S) => S, h = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new WeakMap();
|
|
1520
1520
|
let p;
|
|
1521
|
-
function v(
|
|
1522
|
-
return p || (p = c()), p(
|
|
1521
|
+
function v(S, P) {
|
|
1522
|
+
return p || (p = c()), p(S, P);
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function b() {
|
|
1525
1525
|
return p || (p = c()), p.getInitialState();
|
|
1526
1526
|
}
|
|
1527
|
-
function $(
|
|
1528
|
-
function
|
|
1529
|
-
let D = T[
|
|
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,
|
|
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
|
|
1536
|
+
function N(T = f) {
|
|
1537
1537
|
return Qe(Qe(h, P, () => /* @__PURE__ */ new WeakMap()), T, () => {
|
|
1538
1538
|
const D = {};
|
|
1539
|
-
for (const [H,
|
|
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:
|
|
1545
|
-
getSelectors:
|
|
1544
|
+
reducerPath: S,
|
|
1545
|
+
getSelectors: N,
|
|
1546
1546
|
get selectors() {
|
|
1547
|
-
return
|
|
1547
|
+
return N(O);
|
|
1548
1548
|
},
|
|
1549
|
-
selectSlice:
|
|
1549
|
+
selectSlice: O
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
|
-
const
|
|
1552
|
+
const y = {
|
|
1553
1553
|
name: a,
|
|
1554
1554
|
reducer: v,
|
|
1555
1555
|
actions: d.actionCreators,
|
|
1556
1556
|
caseReducers: d.sliceCaseReducersByName,
|
|
1557
|
-
getInitialState:
|
|
1557
|
+
getInitialState: b,
|
|
1558
1558
|
...$(i),
|
|
1559
|
-
injectInto(
|
|
1560
|
-
const
|
|
1561
|
-
return
|
|
1562
|
-
reducerPath:
|
|
1559
|
+
injectInto(S, { reducerPath: P, ...O } = {}) {
|
|
1560
|
+
const N = P ?? i;
|
|
1561
|
+
return S.inject({
|
|
1562
|
+
reducerPath: N,
|
|
1563
1563
|
reducer: v
|
|
1564
|
-
},
|
|
1565
|
-
...
|
|
1566
|
-
...$(
|
|
1564
|
+
}, O), {
|
|
1565
|
+
...y,
|
|
1566
|
+
...$(N, !0)
|
|
1567
1567
|
};
|
|
1568
1568
|
}
|
|
1569
1569
|
};
|
|
1570
|
-
return
|
|
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
|
|
1716
|
-
|
|
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
|
|
1720
|
+
for (const b of p) t(b, v);
|
|
1721
1721
|
}
|
|
1722
1722
|
function n(p, v) {
|
|
1723
|
-
const
|
|
1724
|
-
|
|
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
|
|
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
|
|
1737
|
+
let b = !1;
|
|
1738
1738
|
p.forEach(($) => {
|
|
1739
|
-
$ in v.entities && (delete v.entities[$],
|
|
1740
|
-
}),
|
|
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,
|
|
1749
|
-
const $ =
|
|
1748
|
+
function l(p, v, b) {
|
|
1749
|
+
const $ = b.entities[v.id];
|
|
1750
1750
|
if ($ === void 0) return !1;
|
|
1751
|
-
const
|
|
1752
|
-
return P && (p[v.id] =
|
|
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
|
|
1759
|
-
p.forEach((
|
|
1760
|
-
|
|
1761
|
-
id:
|
|
1758
|
+
const b = {}, $ = {};
|
|
1759
|
+
p.forEach((y) => {
|
|
1760
|
+
y.id in v.entities && ($[y.id] = {
|
|
1761
|
+
id: y.id,
|
|
1762
1762
|
changes: {
|
|
1763
|
-
...$[
|
|
1764
|
-
...
|
|
1763
|
+
...$[y.id]?.changes,
|
|
1764
|
+
...y.changes
|
|
1765
1765
|
}
|
|
1766
1766
|
});
|
|
1767
|
-
}), p = Object.values($), p.length > 0 && p.filter((
|
|
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 [
|
|
1774
|
-
r(
|
|
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(
|
|
1807
|
-
return o([
|
|
1808
|
-
}
|
|
1809
|
-
function o(
|
|
1810
|
-
|
|
1811
|
-
const
|
|
1812
|
-
const T = lt(
|
|
1813
|
-
return D && P.add(T), !
|
|
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
|
-
|
|
1815
|
+
O.length !== 0 && v($, O);
|
|
1816
1816
|
}
|
|
1817
|
-
function s(
|
|
1818
|
-
return d([
|
|
1817
|
+
function s(b, $) {
|
|
1818
|
+
return d([b], $);
|
|
1819
1819
|
}
|
|
1820
|
-
function d(
|
|
1821
|
-
let
|
|
1822
|
-
if (
|
|
1823
|
-
for (const
|
|
1824
|
-
const P = e(
|
|
1825
|
-
|
|
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
|
-
|
|
1827
|
+
b = Ke(y), v($, b);
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
function l(
|
|
1831
|
-
|
|
1832
|
-
}
|
|
1833
|
-
function c(
|
|
1834
|
-
return f([
|
|
1835
|
-
}
|
|
1836
|
-
function f(
|
|
1837
|
-
let
|
|
1838
|
-
for (let P of
|
|
1839
|
-
const
|
|
1840
|
-
if (!
|
|
1841
|
-
|
|
1842
|
-
const
|
|
1843
|
-
if (P.id !==
|
|
1844
|
-
|
|
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] =
|
|
1846
|
+
$.ids[T] = N, $.entities[N] = O;
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
|
-
|
|
1849
|
+
y && v($, [], y, S);
|
|
1850
1850
|
}
|
|
1851
|
-
function h(
|
|
1852
|
-
return m([
|
|
1851
|
+
function h(b, $) {
|
|
1852
|
+
return m([b], $);
|
|
1853
1853
|
}
|
|
1854
|
-
function m(
|
|
1855
|
-
const [
|
|
1856
|
-
|
|
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(
|
|
1859
|
-
if (
|
|
1860
|
-
for (let
|
|
1861
|
-
if (y
|
|
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 = (
|
|
1866
|
-
const P = sr(
|
|
1867
|
-
let T =
|
|
1868
|
-
|
|
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
|
-
|
|
1877
|
-
H ? D = $.slice().sort(t) :
|
|
1878
|
-
const
|
|
1879
|
-
p(
|
|
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,
|
|
2067
|
-
const $ = new AbortController(),
|
|
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:
|
|
2071
|
-
condition: (P,
|
|
2072
|
-
take:
|
|
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,
|
|
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,
|
|
2084
|
-
P !== $ && (P.abort(Kn),
|
|
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(
|
|
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
|
|
2109
|
+
let b = m.getState();
|
|
2110
2110
|
const $ = () => {
|
|
2111
|
-
if (
|
|
2112
|
-
return
|
|
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
|
|
2114
|
+
let y;
|
|
2115
2115
|
try {
|
|
2116
|
-
if (
|
|
2117
|
-
const
|
|
2118
|
-
for (const
|
|
2119
|
-
let
|
|
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
|
-
|
|
2121
|
+
N = O.predicate(v, S, b);
|
|
2122
2122
|
} catch (T) {
|
|
2123
|
-
|
|
2123
|
+
N = !1, Ci(o, T, { raisedBy: "predicate" });
|
|
2124
2124
|
}
|
|
2125
|
-
|
|
2125
|
+
N && c(O, v, m, $);
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
2128
2128
|
} finally {
|
|
2129
|
-
|
|
2129
|
+
b = gi;
|
|
2130
2130
|
}
|
|
2131
|
-
return
|
|
2131
|
+
return y;
|
|
2132
2132
|
},
|
|
2133
2133
|
startListening: d,
|
|
2134
2134
|
stopListening: l,
|
|
@@ -2655,7 +2655,7 @@ var cf = (e) => {
|
|
|
2655
2655
|
className: td("lucide", m, a),
|
|
2656
2656
|
...!i && !pf(s) && { "aria-hidden": "true" },
|
|
2657
2657
|
...s
|
|
2658
|
-
}, [...o.map(([v,
|
|
2658
|
+
}, [...o.map(([v, b]) => Dn(v, b)), ...Array.isArray(i) ? i : [i]]);
|
|
2659
2659
|
}), te = (e, t) => {
|
|
2660
2660
|
const r = qo(({ className: n, ...a }, i) => Dn(vf, {
|
|
2661
2661
|
ref: i,
|
|
@@ -3012,7 +3012,7 @@ var cf = (e) => {
|
|
|
3012
3012
|
EUR: Tf,
|
|
3013
3013
|
GBP: zf
|
|
3014
3014
|
}, Se = ({ size: e = 20 }) => {
|
|
3015
|
-
const t =
|
|
3015
|
+
const t = J((r) => r.barber.outletDetails?.currency);
|
|
3016
3016
|
return /* @__PURE__ */ u(t ? o1[t] : ad, { size: e });
|
|
3017
3017
|
}, tn = (e = "") => {
|
|
3018
3018
|
const t = e.trim().split(" ").filter(Boolean);
|
|
@@ -3022,7 +3022,7 @@ var cf = (e) => {
|
|
|
3022
3022
|
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
3023
|
};
|
|
3024
3024
|
function d1() {
|
|
3025
|
-
const e = ze(), { staff: t, selectedProfessional: r } =
|
|
3025
|
+
const e = ze(), { staff: t, selectedProfessional: r } = J((o) => o.barber.service), n = !t || t.length === 0, a = (o) => {
|
|
3026
3026
|
if (!o?.futureLeaveDates?.length) return {
|
|
3027
3027
|
isOnLeave: !1,
|
|
3028
3028
|
availableFrom: null
|
|
@@ -3046,7 +3046,7 @@ function d1() {
|
|
|
3046
3046
|
}, i = (o) => {
|
|
3047
3047
|
e(Ru(o)), e(_r(null)), e(Be());
|
|
3048
3048
|
};
|
|
3049
|
-
return /* @__PURE__ */
|
|
3049
|
+
return /* @__PURE__ */ g("div", {
|
|
3050
3050
|
className: "aaravpos-barber-main-content",
|
|
3051
3051
|
children: [n && /* @__PURE__ */ u("p", {
|
|
3052
3052
|
className: "aaravpos-barber-no-staff",
|
|
@@ -3057,11 +3057,11 @@ function d1() {
|
|
|
3057
3057
|
className: "aaravpos-barber-professional-grid",
|
|
3058
3058
|
children: t?.map((o, s) => {
|
|
3059
3059
|
const { isOnLeave: d, availableFrom: l } = a(o);
|
|
3060
|
-
return /* @__PURE__ */
|
|
3060
|
+
return /* @__PURE__ */ g("div", {
|
|
3061
3061
|
className: `aaravpos-barber-professional-card ${r?.id === o.id ? "active" : ""}`,
|
|
3062
3062
|
onClick: () => i(o),
|
|
3063
3063
|
children: [
|
|
3064
|
-
/* @__PURE__ */
|
|
3064
|
+
/* @__PURE__ */ g("div", {
|
|
3065
3065
|
className: "aaravpos-barber-professional-image-wrapper",
|
|
3066
3066
|
children: [
|
|
3067
3067
|
o.imageUrl ? /* @__PURE__ */ u("img", {
|
|
@@ -3077,7 +3077,7 @@ function d1() {
|
|
|
3077
3077
|
className: "aaravpos-barber-professional-rating",
|
|
3078
3078
|
children: "★ 4.9"
|
|
3079
3079
|
}),
|
|
3080
|
-
/* @__PURE__ */
|
|
3080
|
+
/* @__PURE__ */ g("div", {
|
|
3081
3081
|
className: "aaravpos-barber-professional-overlay",
|
|
3082
3082
|
children: [/* @__PURE__ */ u("h3", {
|
|
3083
3083
|
className: "aaravpos-barber-professional-name",
|
|
@@ -3089,9 +3089,9 @@ function d1() {
|
|
|
3089
3089
|
})
|
|
3090
3090
|
]
|
|
3091
3091
|
}),
|
|
3092
|
-
d && l && /* @__PURE__ */
|
|
3092
|
+
d && l && /* @__PURE__ */ g("div", {
|
|
3093
3093
|
className: "aaravpos-barber-available-badge",
|
|
3094
|
-
children: [/* @__PURE__ */ u("span", { className: "aaravpos-barber-available-dot" }), /* @__PURE__ */
|
|
3094
|
+
children: [/* @__PURE__ */ u("span", { className: "aaravpos-barber-available-dot" }), /* @__PURE__ */ g("p", {
|
|
3095
3095
|
className: "aaravpos-barber-available-text",
|
|
3096
3096
|
children: ["Available from ", l]
|
|
3097
3097
|
})]
|
|
@@ -3146,10 +3146,10 @@ var it = [
|
|
|
3146
3146
|
confirm: 2
|
|
3147
3147
|
};
|
|
3148
3148
|
function Ta() {
|
|
3149
|
-
const e = ze(), { width: t } = l1(), { currentStep: r, completedSteps: n } =
|
|
3149
|
+
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
3150
|
Ea.purge(), e({ type: "RESET_ALL" });
|
|
3151
3151
|
}, d = (m) => {
|
|
3152
|
-
const p = it.findIndex((
|
|
3152
|
+
const p = it.findIndex((b) => b.page === r), v = it.findIndex((b) => b.page === m);
|
|
3153
3153
|
v < p && (e(Eu(m)), v <= ki.time && e(Hu()), v <= ki.confirm && e(Js())), e(Ou(m));
|
|
3154
3154
|
}, l = () => {
|
|
3155
3155
|
if (a === 0) {
|
|
@@ -3159,7 +3159,7 @@ function Ta() {
|
|
|
3159
3159
|
const m = it[a - 1];
|
|
3160
3160
|
m && d(m.page);
|
|
3161
3161
|
}, c = it[a], f = t < 991, h = i?.reduce((m, p) => m + p.qty, 0);
|
|
3162
|
-
return /* @__PURE__ */ u($e, { children: f ? /* @__PURE__ */
|
|
3162
|
+
return /* @__PURE__ */ u($e, { children: f ? /* @__PURE__ */ g("div", {
|
|
3163
3163
|
className: "aaravpos-barber-mobile-stepper",
|
|
3164
3164
|
children: [/* @__PURE__ */ u("button", {
|
|
3165
3165
|
onClick: l,
|
|
@@ -3169,7 +3169,7 @@ function Ta() {
|
|
|
3169
3169
|
className: "aaravpos-barber-mobile-step-label",
|
|
3170
3170
|
children: c?.label
|
|
3171
3171
|
})]
|
|
3172
|
-
}) : /* @__PURE__ */
|
|
3172
|
+
}) : /* @__PURE__ */ g("div", {
|
|
3173
3173
|
className: "aaravpos-barber-desktop-stepper",
|
|
3174
3174
|
children: [
|
|
3175
3175
|
/* @__PURE__ */ u("button", {
|
|
@@ -3181,7 +3181,7 @@ function Ta() {
|
|
|
3181
3181
|
className: "aaravpos-barber-step-nav",
|
|
3182
3182
|
children: it.map((m) => {
|
|
3183
3183
|
const p = r === m.page, v = n?.includes(m.page) || r === m.page;
|
|
3184
|
-
return /* @__PURE__ */
|
|
3184
|
+
return /* @__PURE__ */ g("button", {
|
|
3185
3185
|
onClick: () => {
|
|
3186
3186
|
v && d(m.page);
|
|
3187
3187
|
},
|
|
@@ -3196,7 +3196,7 @@ function Ta() {
|
|
|
3196
3196
|
}, m.page);
|
|
3197
3197
|
})
|
|
3198
3198
|
}),
|
|
3199
|
-
!o && /* @__PURE__ */
|
|
3199
|
+
!o && /* @__PURE__ */ g("button", {
|
|
3200
3200
|
className: "aaravpos-barber-cart-btn",
|
|
3201
3201
|
onClick: () => e(tt(!0)),
|
|
3202
3202
|
children: [/* @__PURE__ */ u("span", {
|
|
@@ -3208,12 +3208,12 @@ function Ta() {
|
|
|
3208
3208
|
}) });
|
|
3209
3209
|
}
|
|
3210
3210
|
function Aa({ children: e, sidebar: t, renderButton: r }) {
|
|
3211
|
-
const { isOpenSidebar: n } =
|
|
3212
|
-
return /* @__PURE__ */
|
|
3211
|
+
const { isOpenSidebar: n } = J((a) => a.barber.theme);
|
|
3212
|
+
return /* @__PURE__ */ g("div", {
|
|
3213
3213
|
className: "aaravpos-barber-main-layout",
|
|
3214
|
-
children: [/* @__PURE__ */
|
|
3214
|
+
children: [/* @__PURE__ */ g("div", {
|
|
3215
3215
|
className: n ? "aaravpos-barber-layout-wrapper" : "",
|
|
3216
|
-
children: [/* @__PURE__ */
|
|
3216
|
+
children: [/* @__PURE__ */ g("main", {
|
|
3217
3217
|
className: "aaravpos-barber-main-content",
|
|
3218
3218
|
children: [e, r]
|
|
3219
3219
|
}), /* @__PURE__ */ u("aside", {
|
|
@@ -3259,24 +3259,24 @@ var u1 = (e) => Number(e.price || e.min_price || 0), Qt = (e, { perUnit: t = !1
|
|
|
3259
3259
|
"Dec"
|
|
3260
3260
|
];
|
|
3261
3261
|
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:
|
|
3262
|
+
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
3263
|
0,
|
|
3264
3264
|
5,
|
|
3265
3265
|
10,
|
|
3266
3266
|
15,
|
|
3267
3267
|
20
|
|
3268
3268
|
], fe = ge(() => [
|
|
3269
|
-
...
|
|
3270
|
-
...
|
|
3271
|
-
...
|
|
3272
|
-
], [
|
|
3273
|
-
if (!
|
|
3269
|
+
...y?.morning || [],
|
|
3270
|
+
...y?.afternoon || [],
|
|
3271
|
+
...y?.evening || []
|
|
3272
|
+
], [y]), se = 15, Q = ge(() => {
|
|
3273
|
+
if (!N?.id) return O.map((F) => ({
|
|
3274
3274
|
...F,
|
|
3275
3275
|
tax: Qt(F),
|
|
3276
3276
|
unitTax: Qt(F, { perUnit: !0 })
|
|
3277
3277
|
}));
|
|
3278
|
-
const M = P?.find((F) => F.id ===
|
|
3279
|
-
return M ?
|
|
3278
|
+
const M = P?.find((F) => F.id === N.id);
|
|
3279
|
+
return M ? O.map((F) => {
|
|
3280
3280
|
const pe = M.assignments?.find((Nt) => Nt.id === F.id), He = {
|
|
3281
3281
|
...F,
|
|
3282
3282
|
price: pe?.price || F.price || F.min_price || 0,
|
|
@@ -3289,14 +3289,14 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3289
3289
|
};
|
|
3290
3290
|
}) : [];
|
|
3291
3291
|
}, [
|
|
3292
|
-
|
|
3292
|
+
N,
|
|
3293
3293
|
P,
|
|
3294
|
-
|
|
3294
|
+
O
|
|
3295
3295
|
]), 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
3296
|
if (!fe.length) return "";
|
|
3297
3297
|
const F = fe[M]?.start_time, pe = fe[M + C - 1];
|
|
3298
3298
|
return !F || !pe ? "" : `${F} - ${pe.end_time || pe.start_time}`;
|
|
3299
|
-
}, k =
|
|
3299
|
+
}, k = S || {
|
|
3300
3300
|
day: T.day,
|
|
3301
3301
|
month: T.month,
|
|
3302
3302
|
year: T.year
|
|
@@ -3308,7 +3308,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3308
3308
|
i,
|
|
3309
3309
|
o
|
|
3310
3310
|
]);
|
|
3311
|
-
const A = ge(() => f ? "Processing..." : c ? "Checking consents..." : s && d < l ? `Sign Consents (${d}/${l})` : /* @__PURE__ */
|
|
3311
|
+
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
3312
|
f,
|
|
3313
3313
|
c,
|
|
3314
3314
|
s,
|
|
@@ -3333,48 +3333,48 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3333
3333
|
a,
|
|
3334
3334
|
d,
|
|
3335
3335
|
l,
|
|
3336
|
-
|
|
3337
|
-
]), /* @__PURE__ */
|
|
3336
|
+
X
|
|
3337
|
+
]), /* @__PURE__ */ g("div", {
|
|
3338
3338
|
className: "aaravpos-barber-order-sidebar",
|
|
3339
3339
|
children: [
|
|
3340
|
-
/* @__PURE__ */
|
|
3340
|
+
/* @__PURE__ */ g("div", {
|
|
3341
3341
|
ref: ce,
|
|
3342
|
-
children: [/* @__PURE__ */
|
|
3342
|
+
children: [/* @__PURE__ */ g("div", {
|
|
3343
3343
|
className: "aaravpos-barber-order-header",
|
|
3344
|
-
children: [/* @__PURE__ */
|
|
3344
|
+
children: [/* @__PURE__ */ g("p", {
|
|
3345
3345
|
className: "aaravpos-barber-order-title",
|
|
3346
3346
|
children: ["Your Order", /* @__PURE__ */ u("button", {
|
|
3347
3347
|
className: "aaravpos-barber-sidebar-close-btn",
|
|
3348
3348
|
onClick: () => p(tt(!1)),
|
|
3349
3349
|
children: /* @__PURE__ */ u(en, { size: 18 })
|
|
3350
3350
|
})]
|
|
3351
|
-
}), /* @__PURE__ */
|
|
3351
|
+
}), /* @__PURE__ */ g("p", {
|
|
3352
3352
|
className: "aaravpos-barber-order-subtitle",
|
|
3353
3353
|
children: [v || "-", " Outlet"]
|
|
3354
3354
|
})]
|
|
3355
|
-
}), /* @__PURE__ */
|
|
3355
|
+
}), /* @__PURE__ */ g("div", {
|
|
3356
3356
|
className: "aaravpos-barber-order-header",
|
|
3357
|
-
children: [
|
|
3357
|
+
children: [N?.id && /* @__PURE__ */ g("div", {
|
|
3358
3358
|
className: "aaravpos-barber-pro-card aaravpos-barber-display-flex aaravpos-barber-tp-10",
|
|
3359
|
-
children: [
|
|
3360
|
-
src:
|
|
3361
|
-
alt:
|
|
3359
|
+
children: [N.imageUrl ? /* @__PURE__ */ u("img", {
|
|
3360
|
+
src: N.imageUrl,
|
|
3361
|
+
alt: N.name,
|
|
3362
3362
|
className: "aaravpos-barber-pro-image"
|
|
3363
3363
|
}) : /* @__PURE__ */ u("div", {
|
|
3364
3364
|
className: "aaravpos-barber-pro-avatar",
|
|
3365
|
-
style: { background:
|
|
3366
|
-
children: tn(
|
|
3367
|
-
}), /* @__PURE__ */
|
|
3365
|
+
style: { background: N.color || "#111" },
|
|
3366
|
+
children: tn(N.name)
|
|
3367
|
+
}), /* @__PURE__ */ g("div", {
|
|
3368
3368
|
className: "aaravpos-barber-pro-info",
|
|
3369
3369
|
children: [/* @__PURE__ */ u("p", {
|
|
3370
3370
|
className: "aaravpos-barber-pro-name",
|
|
3371
|
-
children:
|
|
3371
|
+
children: N.name
|
|
3372
3372
|
}), /* @__PURE__ */ u("p", {
|
|
3373
3373
|
className: "aaravpos-barber-pro-type",
|
|
3374
|
-
children:
|
|
3374
|
+
children: N.staff_type
|
|
3375
3375
|
})]
|
|
3376
3376
|
})]
|
|
3377
|
-
}), m && /* @__PURE__ */
|
|
3377
|
+
}), m && /* @__PURE__ */ g("div", {
|
|
3378
3378
|
className: "aaravpos-barber-date-time aaravpos-barber-tp-10",
|
|
3379
3379
|
children: [/* @__PURE__ */ u("span", {
|
|
3380
3380
|
className: "aaravpos-barber-date-time-label",
|
|
@@ -3392,7 +3392,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3392
3392
|
/* @__PURE__ */ u("ul", {
|
|
3393
3393
|
className: "aaravpos-barber-order-list",
|
|
3394
3394
|
style: { height: `${ye}px` },
|
|
3395
|
-
children: Q?.length > 0 && Q.map((M) => /* @__PURE__ */
|
|
3395
|
+
children: Q?.length > 0 && Q.map((M) => /* @__PURE__ */ g("li", {
|
|
3396
3396
|
className: "aaravpos-barber-order-item",
|
|
3397
3397
|
children: [/* @__PURE__ */ u("div", {
|
|
3398
3398
|
className: "aaravpos-barber-main-text",
|
|
@@ -3400,18 +3400,18 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3400
3400
|
className: "aaravpos-barber-order-service-name",
|
|
3401
3401
|
children: M.name
|
|
3402
3402
|
})
|
|
3403
|
-
}), /* @__PURE__ */
|
|
3403
|
+
}), /* @__PURE__ */ g("div", {
|
|
3404
3404
|
className: "aaravpos-barber-order-details",
|
|
3405
3405
|
children: [
|
|
3406
|
-
/* @__PURE__ */
|
|
3406
|
+
/* @__PURE__ */ g("div", {
|
|
3407
3407
|
className: "aaravpos-barber-order-detail",
|
|
3408
3408
|
children: [/* @__PURE__ */ u(Uf, { size: 13 }), /* @__PURE__ */ u("span", { children: M.qty })]
|
|
3409
3409
|
}),
|
|
3410
|
-
/* @__PURE__ */
|
|
3410
|
+
/* @__PURE__ */ g("div", {
|
|
3411
3411
|
className: "aaravpos-barber-order-detail center",
|
|
3412
|
-
children: [/* @__PURE__ */ u(nd, { size: 13 }), /* @__PURE__ */
|
|
3412
|
+
children: [/* @__PURE__ */ u(nd, { size: 13 }), /* @__PURE__ */ g("span", { children: [M.min_time || M.estimated_time, " min"] })]
|
|
3413
3413
|
}),
|
|
3414
|
-
/* @__PURE__ */
|
|
3414
|
+
/* @__PURE__ */ g("p", {
|
|
3415
3415
|
className: "aaravpos-barber-order-detail right",
|
|
3416
3416
|
children: [/* @__PURE__ */ u(Se, { size: 12 }), M.price || M.min_price]
|
|
3417
3417
|
})
|
|
@@ -3419,32 +3419,32 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3419
3419
|
})]
|
|
3420
3420
|
}, M.id))
|
|
3421
3421
|
}),
|
|
3422
|
-
/* @__PURE__ */
|
|
3422
|
+
/* @__PURE__ */ g("div", {
|
|
3423
3423
|
className: "third",
|
|
3424
3424
|
ref: ue,
|
|
3425
3425
|
children: [
|
|
3426
|
-
h && e && /* @__PURE__ */
|
|
3426
|
+
h && e && /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-divider" }), /* @__PURE__ */ g("div", {
|
|
3427
3427
|
className: "aaravpos-barber-order-footer",
|
|
3428
|
-
children: [/* @__PURE__ */
|
|
3428
|
+
children: [/* @__PURE__ */ g("div", {
|
|
3429
3429
|
className: "aaravpos-barber-order-subtotal",
|
|
3430
3430
|
children: [/* @__PURE__ */ u("span", {
|
|
3431
3431
|
className: "aaravpos-barber-order-subtotal-label",
|
|
3432
3432
|
children: "Subtotal"
|
|
3433
|
-
}), /* @__PURE__ */
|
|
3433
|
+
}), /* @__PURE__ */ g("span", {
|
|
3434
3434
|
className: "aaravpos-barber-order-subtotal-price",
|
|
3435
3435
|
children: [/* @__PURE__ */ u(Se, { size: 16 }), he.toFixed(2)]
|
|
3436
3436
|
})]
|
|
3437
3437
|
}), /* @__PURE__ */ u("button", {
|
|
3438
3438
|
onClick: () => e("professionals"),
|
|
3439
|
-
disabled: !
|
|
3439
|
+
disabled: !O.length,
|
|
3440
3440
|
className: "aaravpos-barber-common-btn",
|
|
3441
|
-
children: /* @__PURE__ */
|
|
3441
|
+
children: /* @__PURE__ */ g("span", {
|
|
3442
3442
|
className: "aaravpos-barber-common-btn-content",
|
|
3443
3443
|
children: ["Choose Time", /* @__PURE__ */ u(Qr, { size: 16 })]
|
|
3444
3444
|
})
|
|
3445
3445
|
})]
|
|
3446
3446
|
})] }),
|
|
3447
|
-
a && /* @__PURE__ */
|
|
3447
|
+
a && /* @__PURE__ */ g($e, { children: [
|
|
3448
3448
|
/* @__PURE__ */ u("p", {
|
|
3449
3449
|
className: "aaravpos-barber-tip-title",
|
|
3450
3450
|
children: "Add Tip"
|
|
@@ -3452,7 +3452,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3452
3452
|
/* @__PURE__ */ u("div", {
|
|
3453
3453
|
className: "aaravpos-barber-tip-options",
|
|
3454
3454
|
children: [...me, "custom"].map((M, F) => {
|
|
3455
|
-
const pe = M === "custom", He = pe ?
|
|
3455
|
+
const pe = M === "custom", He = pe ? X : z === M, Nt = F === 0, Ht = F === [...me, "custom"].length - 1;
|
|
3456
3456
|
return /* @__PURE__ */ u("button", {
|
|
3457
3457
|
onClick: () => {
|
|
3458
3458
|
pe ? (ae(!0), o?.(Number(D) || 0)) : (ae(!1), H(""), o?.(Number(M)));
|
|
@@ -3464,7 +3464,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3464
3464
|
}, M);
|
|
3465
3465
|
})
|
|
3466
3466
|
}),
|
|
3467
|
-
|
|
3467
|
+
X && /* @__PURE__ */ u("div", {
|
|
3468
3468
|
className: "aaravpos-barber-tip-input-wrapper",
|
|
3469
3469
|
children: /* @__PURE__ */ u("input", {
|
|
3470
3470
|
id: "number",
|
|
@@ -3480,9 +3480,9 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3480
3480
|
})
|
|
3481
3481
|
})
|
|
3482
3482
|
] }),
|
|
3483
|
-
s && d < l && /* @__PURE__ */
|
|
3483
|
+
s && d < l && /* @__PURE__ */ g("div", {
|
|
3484
3484
|
className: "aaravpos-barber-consent-box",
|
|
3485
|
-
children: [/* @__PURE__ */
|
|
3485
|
+
children: [/* @__PURE__ */ g("p", {
|
|
3486
3486
|
className: "aaravpos-barber-consent-text",
|
|
3487
3487
|
children: [
|
|
3488
3488
|
"Consent Required: ",
|
|
@@ -3499,28 +3499,28 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3499
3499
|
})
|
|
3500
3500
|
})]
|
|
3501
3501
|
}),
|
|
3502
|
-
m && /* @__PURE__ */
|
|
3502
|
+
m && /* @__PURE__ */ g("div", {
|
|
3503
3503
|
className: "aaravpos-barber-mt-auto",
|
|
3504
3504
|
children: [
|
|
3505
3505
|
/* @__PURE__ */ u(En, {
|
|
3506
3506
|
label: "Service",
|
|
3507
|
-
value: /* @__PURE__ */
|
|
3507
|
+
value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), he.toFixed(2)] })
|
|
3508
3508
|
}),
|
|
3509
3509
|
a && /* @__PURE__ */ u(En, {
|
|
3510
3510
|
label: `Tip (${z}%)`,
|
|
3511
|
-
value: /* @__PURE__ */
|
|
3511
|
+
value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), W.toFixed(2)] })
|
|
3512
3512
|
}),
|
|
3513
3513
|
(!n || R) && /* @__PURE__ */ u(En, {
|
|
3514
3514
|
label: "Taxes",
|
|
3515
|
-
value: /* @__PURE__ */
|
|
3515
|
+
value: /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), G.toFixed(2)] })
|
|
3516
3516
|
}),
|
|
3517
3517
|
/* @__PURE__ */ u("div", { className: "aaravpos-barber-divider" }),
|
|
3518
|
-
/* @__PURE__ */
|
|
3518
|
+
/* @__PURE__ */ g("div", {
|
|
3519
3519
|
className: "aaravpos-barber-order-subtotal",
|
|
3520
3520
|
children: [/* @__PURE__ */ u("span", {
|
|
3521
3521
|
className: "aaravpos-barber-order-subtotal-label",
|
|
3522
3522
|
children: "Total"
|
|
3523
|
-
}), /* @__PURE__ */
|
|
3523
|
+
}), /* @__PURE__ */ g("span", {
|
|
3524
3524
|
className: "aaravpos-barber-order-subtotal-price",
|
|
3525
3525
|
children: [/* @__PURE__ */ u(Se, { size: 16 }), K.toFixed(2)]
|
|
3526
3526
|
})]
|
|
@@ -3542,7 +3542,7 @@ function xa({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
|
|
|
3542
3542
|
});
|
|
3543
3543
|
}
|
|
3544
3544
|
function En({ label: e, value: t }) {
|
|
3545
|
-
return /* @__PURE__ */
|
|
3545
|
+
return /* @__PURE__ */ g("div", {
|
|
3546
3546
|
className: "aaravpos-barber-summary-row",
|
|
3547
3547
|
children: [/* @__PURE__ */ u("span", {
|
|
3548
3548
|
className: "aaravpos-barber-summary-label",
|
|
@@ -3554,49 +3554,49 @@ function En({ label: e, value: t }) {
|
|
|
3554
3554
|
});
|
|
3555
3555
|
}
|
|
3556
3556
|
function p1() {
|
|
3557
|
-
const e = ze(),
|
|
3558
|
-
const
|
|
3559
|
-
return
|
|
3557
|
+
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(() => {
|
|
3558
|
+
const y = f.trim().toLowerCase();
|
|
3559
|
+
return y ? v.filter((S) => S.name?.toLowerCase().includes(y) || S.description?.toLowerCase().includes(y)) : p;
|
|
3560
3560
|
}, [
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
]),
|
|
3561
|
+
f,
|
|
3562
|
+
v,
|
|
3563
|
+
p
|
|
3564
|
+
]), $ = (y) => y.taxRows?.some((S) => S.isActive) || !1;
|
|
3565
3565
|
return de(() => {
|
|
3566
|
-
if (!
|
|
3567
|
-
const
|
|
3568
|
-
|
|
3569
|
-
}, [
|
|
3566
|
+
if (!m?.length) return;
|
|
3567
|
+
const y = m.find((S) => S?.categories?.some((P) => P?.services?.length > 0));
|
|
3568
|
+
y && !s && (d(y), c(null));
|
|
3569
|
+
}, [m, s]), /* @__PURE__ */ g(Aa, {
|
|
3570
3570
|
sidebar: /* @__PURE__ */ u(xa, {
|
|
3571
3571
|
goToStep: () => e(Be()),
|
|
3572
3572
|
showFooterButton: !0,
|
|
3573
3573
|
showBookingSection: !1
|
|
3574
3574
|
}),
|
|
3575
|
-
renderButton:
|
|
3575
|
+
renderButton: a.length > 0 ? /* @__PURE__ */ u("button", {
|
|
3576
3576
|
onClick: () => e(Be()),
|
|
3577
|
-
disabled: !
|
|
3577
|
+
disabled: !a.length,
|
|
3578
3578
|
className: "aaravpos-barber-btn",
|
|
3579
|
-
children: /* @__PURE__ */
|
|
3579
|
+
children: /* @__PURE__ */ g("span", {
|
|
3580
3580
|
className: "aaravpos-barber-btn-content",
|
|
3581
3581
|
children: ["Choose Time ", /* @__PURE__ */ u(Qr, { size: 16 })]
|
|
3582
3582
|
})
|
|
3583
3583
|
}) : null,
|
|
3584
|
-
children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */
|
|
3584
|
+
children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */ g("div", {
|
|
3585
3585
|
className: "aaravpos-barber-margin-top-20",
|
|
3586
3586
|
children: [
|
|
3587
|
-
/* @__PURE__ */
|
|
3587
|
+
/* @__PURE__ */ g("div", {
|
|
3588
3588
|
className: "aaravpos-barber-navbar-form",
|
|
3589
|
-
children: [/* @__PURE__ */
|
|
3589
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ u("h1", {
|
|
3590
3590
|
className: "aaravpos-barber-page-title",
|
|
3591
3591
|
children: "Choose a Service"
|
|
3592
|
-
}), /* @__PURE__ */
|
|
3592
|
+
}), /* @__PURE__ */ g("p", {
|
|
3593
3593
|
className: "aaravpos-barber-sub-title",
|
|
3594
3594
|
children: [
|
|
3595
3595
|
"Select from ",
|
|
3596
|
-
|
|
3596
|
+
i?.name,
|
|
3597
3597
|
"'s available services"
|
|
3598
3598
|
]
|
|
3599
|
-
})] }), /* @__PURE__ */
|
|
3599
|
+
})] }), /* @__PURE__ */ g("div", {
|
|
3600
3600
|
className: "aaravpos-barber-search-wrapper",
|
|
3601
3601
|
children: [
|
|
3602
3602
|
/* @__PURE__ */ u("span", {
|
|
@@ -3608,14 +3608,14 @@ function p1() {
|
|
|
3608
3608
|
name: "search",
|
|
3609
3609
|
type: "text",
|
|
3610
3610
|
placeholder: "Search services...",
|
|
3611
|
-
value:
|
|
3612
|
-
onChange: (
|
|
3611
|
+
value: f,
|
|
3612
|
+
onChange: (y) => h(y.target.value),
|
|
3613
3613
|
className: "aaravpos-barber-search-input"
|
|
3614
3614
|
}),
|
|
3615
3615
|
/* @__PURE__ */ u("div", {
|
|
3616
3616
|
className: "aaravpos-barber-search-actions",
|
|
3617
|
-
children:
|
|
3618
|
-
onClick: () =>
|
|
3617
|
+
children: f && /* @__PURE__ */ u("button", {
|
|
3618
|
+
onClick: () => h(""),
|
|
3619
3619
|
className: "aaravpos-barber-search-clear",
|
|
3620
3620
|
children: /* @__PURE__ */ u(en, { size: 16 })
|
|
3621
3621
|
})
|
|
@@ -3624,117 +3624,117 @@ function p1() {
|
|
|
3624
3624
|
})]
|
|
3625
3625
|
}),
|
|
3626
3626
|
/* @__PURE__ */ u("div", {
|
|
3627
|
-
ref:
|
|
3628
|
-
onWheel: (
|
|
3629
|
-
|
|
3627
|
+
ref: t,
|
|
3628
|
+
onWheel: (y) => {
|
|
3629
|
+
t.current && (t.current.scrollLeft += y.deltaY);
|
|
3630
3630
|
},
|
|
3631
3631
|
className: "aaravpos-barber-supercategory-wrapper",
|
|
3632
|
-
children:
|
|
3632
|
+
children: m?.map((y) => /* @__PURE__ */ u("button", {
|
|
3633
3633
|
onClick: () => {
|
|
3634
|
-
|
|
3634
|
+
d(y), c(null);
|
|
3635
3635
|
},
|
|
3636
|
-
className: `aaravpos-barber-supercategory-btn ${
|
|
3636
|
+
className: `aaravpos-barber-supercategory-btn ${s?.id === y.id ? "active" : ""}`,
|
|
3637
3637
|
children: /* @__PURE__ */ u("h3", {
|
|
3638
3638
|
className: "aaravpos-barber-supercategory-title",
|
|
3639
|
-
children:
|
|
3639
|
+
children: y?.isStandAloneCategory ? "Standalone" : y.name
|
|
3640
3640
|
})
|
|
3641
|
-
},
|
|
3641
|
+
}, y.id))
|
|
3642
3642
|
}),
|
|
3643
|
-
|
|
3644
|
-
ref:
|
|
3645
|
-
onWheel: (
|
|
3646
|
-
|
|
3643
|
+
s?.categories?.some((y) => y?.services?.length > 0) && /* @__PURE__ */ g("div", {
|
|
3644
|
+
ref: r,
|
|
3645
|
+
onWheel: (y) => {
|
|
3646
|
+
r.current && (r.current.scrollLeft += y.deltaY);
|
|
3647
3647
|
},
|
|
3648
3648
|
className: "aaravpos-barber-supercategory-wrapper",
|
|
3649
|
-
children: [/* @__PURE__ */
|
|
3650
|
-
onClick: () =>
|
|
3651
|
-
className: `aaravpos-barber-subcategory-btn ${
|
|
3649
|
+
children: [/* @__PURE__ */ g("button", {
|
|
3650
|
+
onClick: () => c(null),
|
|
3651
|
+
className: `aaravpos-barber-subcategory-btn ${l ? "" : "active"}`,
|
|
3652
3652
|
children: [
|
|
3653
3653
|
"All Services (",
|
|
3654
|
-
|
|
3654
|
+
s?.categories?.reduce((y, S) => y + (S?.services?.length || 0), 0),
|
|
3655
3655
|
")"
|
|
3656
3656
|
]
|
|
3657
|
-
}),
|
|
3658
|
-
onClick: () =>
|
|
3659
|
-
className: `aaravpos-barber-subcategory-btn ${
|
|
3657
|
+
}), s?.categories?.map((y) => /* @__PURE__ */ g("button", {
|
|
3658
|
+
onClick: () => c(y),
|
|
3659
|
+
className: `aaravpos-barber-subcategory-btn ${l?.id === y.id ? "active" : ""}`,
|
|
3660
3660
|
children: [
|
|
3661
|
-
|
|
3661
|
+
y.name,
|
|
3662
3662
|
" (",
|
|
3663
|
-
|
|
3663
|
+
y.services.length,
|
|
3664
3664
|
")"
|
|
3665
3665
|
]
|
|
3666
|
-
},
|
|
3666
|
+
}, y.id))]
|
|
3667
3667
|
}),
|
|
3668
3668
|
/* @__PURE__ */ u("div", {
|
|
3669
3669
|
className: "aaravpos-barber-services-wrapper",
|
|
3670
3670
|
children: /* @__PURE__ */ u("div", {
|
|
3671
3671
|
className: "aaravpos-barber-services-grid",
|
|
3672
|
-
children:
|
|
3672
|
+
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
3673
|
onClick: () => {
|
|
3674
|
-
const
|
|
3675
|
-
|
|
3676
|
-
...
|
|
3677
|
-
price:
|
|
3678
|
-
})),
|
|
3674
|
+
const P = a.find((O) => O.id === y.id);
|
|
3675
|
+
P && P.qty === 1 ? e(_i(String(y.id))) : e(wi({
|
|
3676
|
+
...y,
|
|
3677
|
+
price: y.price ? Number(y.price) : void 0
|
|
3678
|
+
})), window.innerWidth > 991 && e(tt(!0));
|
|
3679
3679
|
},
|
|
3680
|
-
className: `aaravpos-barber-service-card ${
|
|
3680
|
+
className: `aaravpos-barber-service-card ${a.some((P) => P.id === y.id) ? "active" : ""}`,
|
|
3681
3681
|
children: [
|
|
3682
|
-
|
|
3682
|
+
$(y) && /* @__PURE__ */ u("span", {
|
|
3683
3683
|
className: "aaravpos-barber-tax-badge",
|
|
3684
3684
|
children: "TAX"
|
|
3685
3685
|
}),
|
|
3686
|
-
Ys(
|
|
3686
|
+
Ys(y) && /* @__PURE__ */ u("span", {
|
|
3687
3687
|
className: "aaravpos-barber-consent-badge",
|
|
3688
3688
|
children: "CONSENT"
|
|
3689
3689
|
}),
|
|
3690
3690
|
/* @__PURE__ */ u("p", {
|
|
3691
3691
|
className: "aaravpos-barber-service-title",
|
|
3692
|
-
children:
|
|
3692
|
+
children: y.name
|
|
3693
3693
|
}),
|
|
3694
|
-
/* @__PURE__ */
|
|
3694
|
+
/* @__PURE__ */ g("div", {
|
|
3695
3695
|
className: "aaravpos-barber-service-description-wrapper",
|
|
3696
3696
|
children: [/* @__PURE__ */ u("p", {
|
|
3697
3697
|
className: "aaravpos-barber-service-description",
|
|
3698
|
-
children:
|
|
3699
|
-
}),
|
|
3698
|
+
children: y.description
|
|
3699
|
+
}), y.description && y.description.length > 30 && /* @__PURE__ */ u("div", {
|
|
3700
3700
|
className: "aaravpos-barber-service-tooltip",
|
|
3701
|
-
children:
|
|
3701
|
+
children: y.description
|
|
3702
3702
|
})]
|
|
3703
3703
|
}),
|
|
3704
|
-
/* @__PURE__ */
|
|
3704
|
+
/* @__PURE__ */ g("p", {
|
|
3705
3705
|
className: "aaravpos-barber-service-price",
|
|
3706
|
-
children: [/* @__PURE__ */ u("span", { children:
|
|
3706
|
+
children: [/* @__PURE__ */ u("span", { children: y.estimated_time ? `${y.estimated_time} min` : `${y.min_time}-${y.max_time} min` }), /* @__PURE__ */ u("span", {
|
|
3707
3707
|
className: "aaravpos-barber-service-price-right",
|
|
3708
|
-
children:
|
|
3708
|
+
children: y.price ? /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Se, { size: 14 }), y.price] }) : /* @__PURE__ */ g($e, { children: [
|
|
3709
3709
|
/* @__PURE__ */ u(Se, { size: 14 }),
|
|
3710
|
-
|
|
3710
|
+
y.min_price,
|
|
3711
3711
|
" - ",
|
|
3712
3712
|
/* @__PURE__ */ u(Se, { size: 14 }),
|
|
3713
|
-
|
|
3713
|
+
y.max_price
|
|
3714
3714
|
] })
|
|
3715
3715
|
})]
|
|
3716
3716
|
}),
|
|
3717
|
-
/* @__PURE__ */
|
|
3717
|
+
/* @__PURE__ */ g("div", {
|
|
3718
3718
|
className: "aaravpos-barber-service-actions",
|
|
3719
3719
|
children: [
|
|
3720
3720
|
/* @__PURE__ */ u("button", {
|
|
3721
|
-
onClick: (
|
|
3722
|
-
|
|
3721
|
+
onClick: (P) => {
|
|
3722
|
+
P.stopPropagation(), e(_i(String(y.id))), window.innerWidth > 991 && e(tt(!0));
|
|
3723
3723
|
},
|
|
3724
|
-
disabled: (
|
|
3724
|
+
disabled: (a.find((P) => P.id === y.id)?.qty || 0) <= 0,
|
|
3725
3725
|
className: "aaravpos-barber-service-action-btn",
|
|
3726
3726
|
children: /* @__PURE__ */ u(kf, { size: 14 })
|
|
3727
3727
|
}),
|
|
3728
3728
|
/* @__PURE__ */ u("span", {
|
|
3729
3729
|
className: "aaravpos-barber-service-qty",
|
|
3730
|
-
children:
|
|
3730
|
+
children: a.find((P) => P.id === y.id)?.qty || 0
|
|
3731
3731
|
}),
|
|
3732
3732
|
/* @__PURE__ */ u("button", {
|
|
3733
|
-
onClick: (
|
|
3734
|
-
|
|
3735
|
-
...
|
|
3736
|
-
price:
|
|
3737
|
-
})),
|
|
3733
|
+
onClick: (P) => {
|
|
3734
|
+
P.stopPropagation(), a.find((O) => O.id === y.id) ? e(Du(String(y.id))) : e(wi({
|
|
3735
|
+
...y,
|
|
3736
|
+
price: y.price ? Number(y.price) : void 0
|
|
3737
|
+
})), window.innerWidth > 991 && e(tt(!0));
|
|
3738
3738
|
},
|
|
3739
3739
|
className: "aaravpos-barber-service-action-btn plus",
|
|
3740
3740
|
children: /* @__PURE__ */ u(id, { size: 14 })
|
|
@@ -3742,14 +3742,14 @@ function p1() {
|
|
|
3742
3742
|
]
|
|
3743
3743
|
})
|
|
3744
3744
|
]
|
|
3745
|
-
},
|
|
3745
|
+
}, S)) : /* @__PURE__ */ g("div", {
|
|
3746
3746
|
className: "aaravpos-barber-empty-services",
|
|
3747
3747
|
children: [/* @__PURE__ */ u("h3", {
|
|
3748
3748
|
className: "aaravpos-barber-empty-services-title",
|
|
3749
3749
|
children: "No Services Found"
|
|
3750
3750
|
}), /* @__PURE__ */ u("p", {
|
|
3751
3751
|
className: "aaravpos-barber-empty-services-text",
|
|
3752
|
-
children:
|
|
3752
|
+
children: f ? "No services found for your search." : "No services are available for this professional."
|
|
3753
3753
|
})]
|
|
3754
3754
|
}) })
|
|
3755
3755
|
})
|
|
@@ -3807,7 +3807,7 @@ var Er = ({ dateObj: e, selectedProfessional: t, outletTimeZone: r }) => {
|
|
|
3807
3807
|
"S"
|
|
3808
3808
|
];
|
|
3809
3809
|
function v1({ isOpen: e, onClose: t }) {
|
|
3810
|
-
const r = ze(), { selectedDate: n } =
|
|
3810
|
+
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
3811
|
if (!n) return 0;
|
|
3812
3812
|
const p = o.findIndex((v) => v.monthIdx === n.month && v.year === n.year);
|
|
3813
3813
|
return p >= 0 ? p : 0;
|
|
@@ -3824,7 +3824,7 @@ function v1({ isOpen: e, onClose: t }) {
|
|
|
3824
3824
|
const c = o[d];
|
|
3825
3825
|
if (!e) return null;
|
|
3826
3826
|
const f = ve.now().setZone(i ?? "UTC").startOf("day"), h = f.plus({ months: 3 }).minus({ days: 1 }), m = (p, v) => {
|
|
3827
|
-
const
|
|
3827
|
+
const b = ve.fromObject({
|
|
3828
3828
|
year: c.year,
|
|
3829
3829
|
month: p,
|
|
3830
3830
|
day: v
|
|
@@ -3832,9 +3832,9 @@ function v1({ isOpen: e, onClose: t }) {
|
|
|
3832
3832
|
day: v,
|
|
3833
3833
|
month: p,
|
|
3834
3834
|
year: c.year,
|
|
3835
|
-
fullDate:
|
|
3836
|
-
},
|
|
3837
|
-
|
|
3835
|
+
fullDate: b.toISODate() || ""
|
|
3836
|
+
}, y = b.startOf("day");
|
|
3837
|
+
y < f || y > h || Er({
|
|
3838
3838
|
dateObj: $,
|
|
3839
3839
|
selectedProfessional: a,
|
|
3840
3840
|
outletTimeZone: i || "UTC"
|
|
@@ -3847,9 +3847,9 @@ function v1({ isOpen: e, onClose: t }) {
|
|
|
3847
3847
|
return /* @__PURE__ */ u("div", {
|
|
3848
3848
|
className: "aaravpos-barber-date-modal-overlay",
|
|
3849
3849
|
onClick: (p) => p.target === p.currentTarget && t(),
|
|
3850
|
-
children: /* @__PURE__ */
|
|
3850
|
+
children: /* @__PURE__ */ g("div", {
|
|
3851
3851
|
className: "aaravpos-barber-date-modal",
|
|
3852
|
-
children: [/* @__PURE__ */
|
|
3852
|
+
children: [/* @__PURE__ */ g("div", {
|
|
3853
3853
|
className: "aaravpos-barber-date-modal-header",
|
|
3854
3854
|
children: [/* @__PURE__ */ u("h2", {
|
|
3855
3855
|
className: "aaravpos-barber-date-modal-title",
|
|
@@ -3859,9 +3859,9 @@ function v1({ isOpen: e, onClose: t }) {
|
|
|
3859
3859
|
className: "aaravpos-barber-date-close-btn",
|
|
3860
3860
|
children: /* @__PURE__ */ u(en, {})
|
|
3861
3861
|
})]
|
|
3862
|
-
}), /* @__PURE__ */
|
|
3862
|
+
}), /* @__PURE__ */ g("div", {
|
|
3863
3863
|
className: "aaravpos-barber-date-modal-body",
|
|
3864
|
-
children: [/* @__PURE__ */
|
|
3864
|
+
children: [/* @__PURE__ */ g("div", {
|
|
3865
3865
|
className: "aaravpos-barber-date-nav",
|
|
3866
3866
|
children: [
|
|
3867
3867
|
/* @__PURE__ */ u("button", {
|
|
@@ -3881,7 +3881,7 @@ function v1({ isOpen: e, onClose: t }) {
|
|
|
3881
3881
|
children: /* @__PURE__ */ u(Qr, {})
|
|
3882
3882
|
})
|
|
3883
3883
|
]
|
|
3884
|
-
}), /* @__PURE__ */
|
|
3884
|
+
}), /* @__PURE__ */ g("div", {
|
|
3885
3885
|
className: "aaravpos-barber-calendar-grid",
|
|
3886
3886
|
children: [
|
|
3887
3887
|
h1.map((p, v) => /* @__PURE__ */ u("div", {
|
|
@@ -3890,33 +3890,33 @@ function v1({ isOpen: e, onClose: t }) {
|
|
|
3890
3890
|
}, v)),
|
|
3891
3891
|
Array.from({ length: c?.startDow || 0 }).map((p, v) => /* @__PURE__ */ u("div", {}, `e${v}`)),
|
|
3892
3892
|
Array.from({ length: c?.days || 0 }, (p, v) => v + 1).map((p) => {
|
|
3893
|
-
const v = n?.month === c?.monthIdx && n?.day === p,
|
|
3893
|
+
const v = n?.month === c?.monthIdx && n?.day === p, b = c?.monthIdx === f.month && p === f.day, $ = ve.fromObject({
|
|
3894
3894
|
year: c.year,
|
|
3895
3895
|
month: c.monthIdx,
|
|
3896
3896
|
day: p
|
|
3897
|
-
}, { zone: i || "UTC" }),
|
|
3897
|
+
}, { zone: i || "UTC" }), y = {
|
|
3898
3898
|
day: p,
|
|
3899
3899
|
month: c.monthIdx,
|
|
3900
3900
|
year: c.year,
|
|
3901
3901
|
fullDate: $.toISODate() || ""
|
|
3902
|
-
},
|
|
3903
|
-
dateObj:
|
|
3902
|
+
}, S = $.startOf("day"), P = S < f, O = S > h, N = Er({
|
|
3903
|
+
dateObj: y,
|
|
3904
3904
|
selectedProfessional: a,
|
|
3905
3905
|
outletTimeZone: i || "UTC"
|
|
3906
3906
|
});
|
|
3907
|
-
return /* @__PURE__ */
|
|
3907
|
+
return /* @__PURE__ */ g("div", {
|
|
3908
3908
|
onClick: () => {
|
|
3909
|
-
|
|
3909
|
+
N || m(c.monthIdx, p);
|
|
3910
3910
|
},
|
|
3911
3911
|
className: [
|
|
3912
3912
|
"aaravpos-barber-calendar-day",
|
|
3913
|
-
!v && !
|
|
3914
|
-
|
|
3913
|
+
!v && !N && "aaravpos-barber-calendar-day-active",
|
|
3914
|
+
b && !v && "aaravpos-barber-calendar-day-today",
|
|
3915
3915
|
v && "aaravpos-barber-calendar-day-selected",
|
|
3916
|
-
|
|
3917
|
-
(P ||
|
|
3916
|
+
N && "aaravpos-barber-calendar-day-disabled",
|
|
3917
|
+
(P || O) && "aaravpos-barber-calendar-day-disabled"
|
|
3918
3918
|
].filter(Boolean).join(" "),
|
|
3919
|
-
children: [
|
|
3919
|
+
children: [N && /* @__PURE__ */ u("div", { className: "aaravpos-barber-calendar-day-slash" }), /* @__PURE__ */ u("span", {
|
|
3920
3920
|
className: "aaravpos-barber-calendar-day-text",
|
|
3921
3921
|
children: p
|
|
3922
3922
|
})]
|
|
@@ -3933,7 +3933,7 @@ function y1() {
|
|
|
3933
3933
|
className: "aaravpos-barber-scroll-area",
|
|
3934
3934
|
children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ u("div", {
|
|
3935
3935
|
className: "aaravpos-barber-slot-section",
|
|
3936
|
-
children: /* @__PURE__ */
|
|
3936
|
+
children: /* @__PURE__ */ g("div", {
|
|
3937
3937
|
className: "aaravpos-barber-slot-section-header",
|
|
3938
3938
|
children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-slot-skeleton-title shimmer" }), /* @__PURE__ */ u("div", { className: "aaravpos-barber-slot-skeleton-arrow shimmer" })]
|
|
3939
3939
|
})
|
|
@@ -3963,11 +3963,11 @@ var Di = [
|
|
|
3963
3963
|
"Sat"
|
|
3964
3964
|
];
|
|
3965
3965
|
function $1() {
|
|
3966
|
-
const e = ze(), [t, r] = Z(11), { staff: n, selectedServices: a, selectedProfessional: i } =
|
|
3966
|
+
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
3967
|
f.morning,
|
|
3968
3968
|
f.afternoon,
|
|
3969
3969
|
f.evening
|
|
3970
|
-
].flat(), [f]),
|
|
3970
|
+
].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
3971
|
try {
|
|
3972
3972
|
if (!x.isValid || !C.isValid) throw new Error("Invalid timezone or date range");
|
|
3973
3973
|
const E = Math.floor(C.diff(x, "days").days) + 1;
|
|
@@ -3983,7 +3983,7 @@ function $1() {
|
|
|
3983
3983
|
} catch (E) {
|
|
3984
3984
|
return console.error("generateDates error:", E), [];
|
|
3985
3985
|
}
|
|
3986
|
-
},
|
|
3986
|
+
}, N = ge(() => O(S, P), [S, P]), T = ge(() => {
|
|
3987
3987
|
if (!i?.id) return [];
|
|
3988
3988
|
const x = n?.find((C) => C.id === i.id);
|
|
3989
3989
|
return x ? a.map((C) => {
|
|
@@ -3999,44 +3999,44 @@ function $1() {
|
|
|
3999
3999
|
i,
|
|
4000
4000
|
n,
|
|
4001
4001
|
a
|
|
4002
|
-
]), D = T.reduce((x, C) => x + Number(C.duration) * (C.qty || 1), 0), H = Math.ceil(D / $),
|
|
4002
|
+
]), 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
4003
|
de(() => {
|
|
4004
|
-
!i?.id || !
|
|
4004
|
+
!i?.id || !X || e(dr({
|
|
4005
4005
|
tenantId: o,
|
|
4006
4006
|
staffId: i.id,
|
|
4007
|
-
date:
|
|
4007
|
+
date: X
|
|
4008
4008
|
}));
|
|
4009
4009
|
}, [
|
|
4010
4010
|
i?.id,
|
|
4011
|
-
|
|
4011
|
+
X,
|
|
4012
4012
|
e,
|
|
4013
4013
|
o
|
|
4014
4014
|
]);
|
|
4015
4015
|
const ae = (x) => {
|
|
4016
|
-
|
|
4016
|
+
b((C) => Math.max(0, Math.min(N.length - t, C + x * 4)));
|
|
4017
4017
|
};
|
|
4018
4018
|
de(() => {
|
|
4019
4019
|
l || e(_r({
|
|
4020
|
-
day:
|
|
4021
|
-
month:
|
|
4022
|
-
year:
|
|
4020
|
+
day: S.day,
|
|
4021
|
+
month: S.month,
|
|
4022
|
+
year: S.year
|
|
4023
4023
|
}));
|
|
4024
4024
|
}, [
|
|
4025
4025
|
l,
|
|
4026
|
-
|
|
4026
|
+
S,
|
|
4027
4027
|
e
|
|
4028
4028
|
]), de(() => {
|
|
4029
|
-
if (!l || !
|
|
4030
|
-
const x =
|
|
4031
|
-
x !== -1 &&
|
|
4029
|
+
if (!l || !N.length) return;
|
|
4030
|
+
const x = N.findIndex((C) => C.day === l.day && C.month === l.month && C.year === l.year);
|
|
4031
|
+
x !== -1 && b(Math.max(0, Math.min(N.length - t, x - Math.floor(t / 2))));
|
|
4032
4032
|
}, [
|
|
4033
4033
|
l,
|
|
4034
|
-
|
|
4034
|
+
N,
|
|
4035
4035
|
t
|
|
4036
4036
|
]);
|
|
4037
4037
|
const ce = (x) => {
|
|
4038
4038
|
const C = ve.fromISO(x.fullDate || "").setZone(s || "UTC").startOf("day");
|
|
4039
|
-
if (C <
|
|
4039
|
+
if (C < S || C > P || Er({
|
|
4040
4040
|
dateObj: x,
|
|
4041
4041
|
selectedProfessional: i,
|
|
4042
4042
|
outletTimeZone: s || "UTC"
|
|
@@ -4050,8 +4050,8 @@ function $1() {
|
|
|
4050
4050
|
year: x.year
|
|
4051
4051
|
})), e(Pn(null));
|
|
4052
4052
|
}, ue = (x) => {
|
|
4053
|
-
if (!
|
|
4054
|
-
const C =
|
|
4053
|
+
if (!y.length) return;
|
|
4054
|
+
const C = y.slice(x, x + H);
|
|
4055
4055
|
if (C.length < H) {
|
|
4056
4056
|
re.warning("You don't have sufficient time for selected service");
|
|
4057
4057
|
return;
|
|
@@ -4060,27 +4060,27 @@ function $1() {
|
|
|
4060
4060
|
re.warning("Selected time range is not fully available");
|
|
4061
4061
|
return;
|
|
4062
4062
|
}
|
|
4063
|
-
e(Pn(
|
|
4063
|
+
e(Pn(y[x].start_time));
|
|
4064
4064
|
const E = Array.from({ length: H }, (k, U) => x + U);
|
|
4065
4065
|
e(Sn({
|
|
4066
4066
|
indexes: E,
|
|
4067
|
-
ids: E.map((k) =>
|
|
4067
|
+
ids: E.map((k) => y[k]?.id)
|
|
4068
4068
|
})), setTimeout(() => {
|
|
4069
4069
|
e(Be());
|
|
4070
4070
|
}, 200);
|
|
4071
4071
|
};
|
|
4072
4072
|
de(() => {
|
|
4073
|
-
if (!c || !
|
|
4074
|
-
const x =
|
|
4073
|
+
if (!c || !y.length) return;
|
|
4074
|
+
const x = y.findIndex((E) => E.start_time === c);
|
|
4075
4075
|
if (x === -1) return;
|
|
4076
4076
|
const C = Array.from({ length: H }, (E, k) => x + k);
|
|
4077
4077
|
C.length === d.length && C.every((E, k) => E === d[k]) || e(Sn({
|
|
4078
4078
|
indexes: C,
|
|
4079
|
-
ids: C.map((E) =>
|
|
4079
|
+
ids: C.map((E) => y[E]?.id)
|
|
4080
4080
|
}));
|
|
4081
4081
|
}, [
|
|
4082
4082
|
c,
|
|
4083
|
-
|
|
4083
|
+
y,
|
|
4084
4084
|
H,
|
|
4085
4085
|
d
|
|
4086
4086
|
]), de(() => {
|
|
@@ -4092,11 +4092,11 @@ function $1() {
|
|
|
4092
4092
|
}, []);
|
|
4093
4093
|
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
4094
|
return de(() => {
|
|
4095
|
-
const x =
|
|
4095
|
+
const x = y[d[0]];
|
|
4096
4096
|
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
4097
|
}, [
|
|
4098
4098
|
d,
|
|
4099
|
-
|
|
4099
|
+
y,
|
|
4100
4100
|
ye,
|
|
4101
4101
|
Ce,
|
|
4102
4102
|
me
|
|
@@ -4109,7 +4109,7 @@ function $1() {
|
|
|
4109
4109
|
h,
|
|
4110
4110
|
l,
|
|
4111
4111
|
e
|
|
4112
|
-
]), /* @__PURE__ */
|
|
4112
|
+
]), /* @__PURE__ */ g(Aa, {
|
|
4113
4113
|
sidebar: /* @__PURE__ */ u("div", {
|
|
4114
4114
|
className: "aaravpos-barber-aside",
|
|
4115
4115
|
children: /* @__PURE__ */ u(xa, {
|
|
@@ -4134,22 +4134,22 @@ function $1() {
|
|
|
4134
4134
|
children: "Choose a Time"
|
|
4135
4135
|
})
|
|
4136
4136
|
}),
|
|
4137
|
-
/* @__PURE__ */
|
|
4137
|
+
/* @__PURE__ */ g("div", {
|
|
4138
4138
|
className: "aaravpos-barber-date-wrapper",
|
|
4139
|
-
children: [/* @__PURE__ */
|
|
4139
|
+
children: [/* @__PURE__ */ g("div", {
|
|
4140
4140
|
className: "aaravpos-barber-date-strip",
|
|
4141
4141
|
children: [
|
|
4142
4142
|
/* @__PURE__ */ u(Ri, {
|
|
4143
4143
|
onClick: () => ae(-1),
|
|
4144
4144
|
children: /* @__PURE__ */ u(Or, { size: 20 })
|
|
4145
4145
|
}),
|
|
4146
|
-
|
|
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 <
|
|
4146
|
+
N.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 < S, G = q > P, z = V || G || Er({
|
|
4148
4148
|
dateObj: x,
|
|
4149
4149
|
selectedProfessional: i,
|
|
4150
4150
|
outletTimeZone: s || "UTC"
|
|
4151
4151
|
});
|
|
4152
|
-
return /* @__PURE__ */
|
|
4152
|
+
return /* @__PURE__ */ g("div", {
|
|
4153
4153
|
onClick: () => {
|
|
4154
4154
|
z || ce(x);
|
|
4155
4155
|
},
|
|
@@ -4180,13 +4180,13 @@ function $1() {
|
|
|
4180
4180
|
children: /* @__PURE__ */ u(Qr, { size: 20 })
|
|
4181
4181
|
})
|
|
4182
4182
|
]
|
|
4183
|
-
}), /* @__PURE__ */
|
|
4183
|
+
}), /* @__PURE__ */ g("button", {
|
|
4184
4184
|
onClick: () => p(!0),
|
|
4185
4185
|
className: "aaravpos-barber-calendar-btn",
|
|
4186
|
-
children: [/* @__PURE__ */ u(bf, { size: 16 }), l?.month != null ? `${Di[l.month - 1]} ${l.year}` : `${Di[
|
|
4186
|
+
children: [/* @__PURE__ */ u(bf, { size: 16 }), l?.month != null ? `${Di[l.month - 1]} ${l.year}` : `${Di[S.month - 1]} ${S.year}`]
|
|
4187
4187
|
})]
|
|
4188
4188
|
}),
|
|
4189
|
-
/* @__PURE__ */
|
|
4189
|
+
/* @__PURE__ */ g("div", {
|
|
4190
4190
|
className: "aaravpos-barber-selected-professional",
|
|
4191
4191
|
children: [i?.imageUrl ? /* @__PURE__ */ u("img", {
|
|
4192
4192
|
src: i.imageUrl,
|
|
@@ -4196,12 +4196,12 @@ function $1() {
|
|
|
4196
4196
|
className: "aaravpos-barber-selected-professional-avatar",
|
|
4197
4197
|
style: { background: i?.color || "#111" },
|
|
4198
4198
|
children: tn(i?.name)
|
|
4199
|
-
}), /* @__PURE__ */
|
|
4199
|
+
}), /* @__PURE__ */ g("div", {
|
|
4200
4200
|
className: "aaravpos-barber-selected-professional-content",
|
|
4201
4201
|
children: [/* @__PURE__ */ u("p", {
|
|
4202
4202
|
className: "aaravpos-barber-selected-professional-name",
|
|
4203
4203
|
children: i?.name
|
|
4204
|
-
}), /* @__PURE__ */
|
|
4204
|
+
}), /* @__PURE__ */ g("p", {
|
|
4205
4205
|
className: "aaravpos-barber-selected-professional-services",
|
|
4206
4206
|
children: [
|
|
4207
4207
|
T.map((x) => x.name).join(", "),
|
|
@@ -4213,10 +4213,10 @@ function $1() {
|
|
|
4213
4213
|
})]
|
|
4214
4214
|
})]
|
|
4215
4215
|
}),
|
|
4216
|
-
/* @__PURE__ */
|
|
4216
|
+
/* @__PURE__ */ g("div", {
|
|
4217
4217
|
className: "aaravpos-barber-scroll-area",
|
|
4218
4218
|
style: h ? { height: 300 } : {},
|
|
4219
|
-
children: [h ? /* @__PURE__ */ u(y1, {}) : /* @__PURE__ */ u($e, { children:
|
|
4219
|
+
children: [h ? /* @__PURE__ */ u(y1, {}) : /* @__PURE__ */ u($e, { children: y?.length ? /* @__PURE__ */ g($e, { children: [
|
|
4220
4220
|
/* @__PURE__ */ u(In, {
|
|
4221
4221
|
label: "Morning",
|
|
4222
4222
|
icon: /* @__PURE__ */ u(a1, {
|
|
@@ -4224,7 +4224,7 @@ function $1() {
|
|
|
4224
4224
|
className: "aaravpos-barber-slot-icon"
|
|
4225
4225
|
}),
|
|
4226
4226
|
slots: ye,
|
|
4227
|
-
allSlots:
|
|
4227
|
+
allSlots: y,
|
|
4228
4228
|
selectedSlotIndexes: d,
|
|
4229
4229
|
handleSlotSelect: ue,
|
|
4230
4230
|
isOpen: Q === "morning",
|
|
@@ -4237,7 +4237,7 @@ function $1() {
|
|
|
4237
4237
|
className: "aaravpos-barber-slot-icon"
|
|
4238
4238
|
}),
|
|
4239
4239
|
slots: Ce,
|
|
4240
|
-
allSlots:
|
|
4240
|
+
allSlots: y,
|
|
4241
4241
|
selectedSlotIndexes: d,
|
|
4242
4242
|
handleSlotSelect: ue,
|
|
4243
4243
|
isOpen: Q === "afternoon",
|
|
@@ -4250,14 +4250,14 @@ function $1() {
|
|
|
4250
4250
|
className: "aaravpos-barber-slot-icon"
|
|
4251
4251
|
}),
|
|
4252
4252
|
slots: me,
|
|
4253
|
-
allSlots:
|
|
4253
|
+
allSlots: y,
|
|
4254
4254
|
selectedSlotIndexes: d,
|
|
4255
4255
|
handleSlotSelect: ue,
|
|
4256
4256
|
isOpen: Q === "evening",
|
|
4257
4257
|
onToggle: () => he(Q === "evening" ? null : "evening")
|
|
4258
4258
|
}),
|
|
4259
4259
|
" "
|
|
4260
|
-
] }) : /* @__PURE__ */
|
|
4260
|
+
] }) : /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-supercategory-wrapper" }), /* @__PURE__ */ g("div", {
|
|
4261
4261
|
className: "aaravpos-barber-empty-services",
|
|
4262
4262
|
children: [/* @__PURE__ */ u("h3", {
|
|
4263
4263
|
className: "aaravpos-barber-empty-services-title",
|
|
@@ -4282,12 +4282,12 @@ function Ri({ onClick: e, children: t }) {
|
|
|
4282
4282
|
});
|
|
4283
4283
|
}
|
|
4284
4284
|
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__ */
|
|
4285
|
+
return !r || r?.length === 0 ? null : /* @__PURE__ */ g("div", {
|
|
4286
4286
|
className: "aaravpos-barber-slot-section",
|
|
4287
|
-
children: [/* @__PURE__ */
|
|
4287
|
+
children: [/* @__PURE__ */ g("div", {
|
|
4288
4288
|
onClick: s,
|
|
4289
4289
|
className: "aaravpos-barber-slot-section-header",
|
|
4290
|
-
children: [/* @__PURE__ */
|
|
4290
|
+
children: [/* @__PURE__ */ g("div", {
|
|
4291
4291
|
className: "aaravpos-barber-slot-section-title",
|
|
4292
4292
|
children: [/* @__PURE__ */ u("span", { children: e }), t]
|
|
4293
4293
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -4300,7 +4300,7 @@ function In({ icon: e, label: t, slots: r, allSlots: n, selectedSlotIndexes: a,
|
|
|
4300
4300
|
className: "aaravpos-barber-slot-grid",
|
|
4301
4301
|
children: r.map((d) => {
|
|
4302
4302
|
const l = n.findIndex((h) => h.id === d.id), c = a.includes(l), f = d.isBooked || d.status !== "AVAILABLE";
|
|
4303
|
-
return /* @__PURE__ */
|
|
4303
|
+
return /* @__PURE__ */ g("div", {
|
|
4304
4304
|
onClick: () => {
|
|
4305
4305
|
f || i(l);
|
|
4306
4306
|
},
|
|
@@ -4323,7 +4323,7 @@ var g1 = (e) => e.replace(/\D/g, "").slice(0, 16).replace(/(.{4})/g, "$1 ").trim
|
|
|
4323
4323
|
return t.length >= 3 ? `${t.slice(0, 2)}/${t.slice(2)}` : t;
|
|
4324
4324
|
}, C1 = (e) => e.replace(/\D/g, "").slice(0, 3);
|
|
4325
4325
|
function S1({ onClose: e, onPay: t, amount: r }) {
|
|
4326
|
-
const { timeZone: n } =
|
|
4326
|
+
const { timeZone: n } = J((c) => c?.barber?.outletDetails), { control: a, handleSubmit: i, reset: o, formState: { errors: s, isSubmitting: d } } = ha({ defaultValues: {
|
|
4327
4327
|
name: "",
|
|
4328
4328
|
number: "",
|
|
4329
4329
|
expiry: "",
|
|
@@ -4341,26 +4341,26 @@ function S1({ onClose: e, onPay: t, amount: r }) {
|
|
|
4341
4341
|
}) && e();
|
|
4342
4342
|
}),
|
|
4343
4343
|
className: "aaravpos-barber-payment-form",
|
|
4344
|
-
children: /* @__PURE__ */
|
|
4344
|
+
children: /* @__PURE__ */ g("div", {
|
|
4345
4345
|
className: "aaravpos-barber-modal",
|
|
4346
4346
|
children: [
|
|
4347
|
-
/* @__PURE__ */
|
|
4347
|
+
/* @__PURE__ */ g("div", {
|
|
4348
4348
|
className: "aaravpos-barber-payment-header",
|
|
4349
4349
|
children: [/* @__PURE__ */ u("h2", {
|
|
4350
4350
|
className: "aaravpos-barber-payment-title",
|
|
4351
4351
|
children: "Make a payment"
|
|
4352
|
-
}), /* @__PURE__ */
|
|
4352
|
+
}), /* @__PURE__ */ g("span", {
|
|
4353
4353
|
className: "aaravpos-barber-payment-amount",
|
|
4354
4354
|
children: [/* @__PURE__ */ u(Se, { size: 14 }), r?.toFixed(2)]
|
|
4355
4355
|
})]
|
|
4356
4356
|
}),
|
|
4357
|
-
/* @__PURE__ */
|
|
4357
|
+
/* @__PURE__ */ g("div", {
|
|
4358
4358
|
className: "aaravpos-barber-payment-fields",
|
|
4359
4359
|
children: [
|
|
4360
|
-
/* @__PURE__ */
|
|
4360
|
+
/* @__PURE__ */ g("div", {
|
|
4361
4361
|
className: "aaravpos-barber-form-control",
|
|
4362
4362
|
children: [
|
|
4363
|
-
/* @__PURE__ */
|
|
4363
|
+
/* @__PURE__ */ g("label", {
|
|
4364
4364
|
htmlFor: "name",
|
|
4365
4365
|
className: "aaravpos-barber-payment-label",
|
|
4366
4366
|
children: ["Card Holder Name ", /* @__PURE__ */ u("span", {
|
|
@@ -4396,10 +4396,10 @@ function S1({ onClose: e, onPay: t, amount: r }) {
|
|
|
4396
4396
|
})
|
|
4397
4397
|
]
|
|
4398
4398
|
}),
|
|
4399
|
-
/* @__PURE__ */
|
|
4399
|
+
/* @__PURE__ */ g("div", {
|
|
4400
4400
|
className: "aaravpos-barber-form-control",
|
|
4401
4401
|
children: [
|
|
4402
|
-
/* @__PURE__ */
|
|
4402
|
+
/* @__PURE__ */ g("label", {
|
|
4403
4403
|
htmlFor: "number",
|
|
4404
4404
|
className: "aaravpos-barber-payment-label",
|
|
4405
4405
|
children: ["Card Number ", /* @__PURE__ */ u("span", {
|
|
@@ -4430,12 +4430,12 @@ function S1({ onClose: e, onPay: t, amount: r }) {
|
|
|
4430
4430
|
})
|
|
4431
4431
|
]
|
|
4432
4432
|
}),
|
|
4433
|
-
/* @__PURE__ */
|
|
4433
|
+
/* @__PURE__ */ g("div", {
|
|
4434
4434
|
className: "aaravpos-barber-payment-grid",
|
|
4435
|
-
children: [/* @__PURE__ */
|
|
4435
|
+
children: [/* @__PURE__ */ g("div", {
|
|
4436
4436
|
className: "aaravpos-barber-form-control",
|
|
4437
4437
|
children: [
|
|
4438
|
-
/* @__PURE__ */
|
|
4438
|
+
/* @__PURE__ */ g("label", {
|
|
4439
4439
|
htmlFor: "expiry",
|
|
4440
4440
|
className: "aaravpos-barber-payment-label",
|
|
4441
4441
|
children: ["Expiry Date ", /* @__PURE__ */ u("span", {
|
|
@@ -4471,10 +4471,10 @@ function S1({ onClose: e, onPay: t, amount: r }) {
|
|
|
4471
4471
|
children: s.expiry.message
|
|
4472
4472
|
})
|
|
4473
4473
|
]
|
|
4474
|
-
}), /* @__PURE__ */
|
|
4474
|
+
}), /* @__PURE__ */ g("div", {
|
|
4475
4475
|
className: "aaravpos-barber-form-control",
|
|
4476
4476
|
children: [
|
|
4477
|
-
/* @__PURE__ */
|
|
4477
|
+
/* @__PURE__ */ g("label", {
|
|
4478
4478
|
htmlFor: "cvv",
|
|
4479
4479
|
className: "aaravpos-barber-payment-label",
|
|
4480
4480
|
children: ["CVV ", /* @__PURE__ */ u("span", {
|
|
@@ -4511,7 +4511,7 @@ function S1({ onClose: e, onPay: t, amount: r }) {
|
|
|
4511
4511
|
})
|
|
4512
4512
|
]
|
|
4513
4513
|
}),
|
|
4514
|
-
/* @__PURE__ */
|
|
4514
|
+
/* @__PURE__ */ g("div", {
|
|
4515
4515
|
className: "aaravpos-barber-payment-btn-grid",
|
|
4516
4516
|
children: [/* @__PURE__ */ u("button", {
|
|
4517
4517
|
type: "button",
|
|
@@ -4642,28 +4642,28 @@ function M1(e) {
|
|
|
4642
4642
|
};
|
|
4643
4643
|
}
|
|
4644
4644
|
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,
|
|
4646
|
-
function P(
|
|
4647
|
-
if (typeof
|
|
4648
|
-
var T =
|
|
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, 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;
|
|
4646
|
+
function P(N) {
|
|
4647
|
+
if (typeof N == "object" && N !== null) {
|
|
4648
|
+
var T = N.$$typeof;
|
|
4649
4649
|
switch (T) {
|
|
4650
4650
|
case r:
|
|
4651
|
-
switch (
|
|
4651
|
+
switch (N = N.type, N) {
|
|
4652
4652
|
case l:
|
|
4653
4653
|
case c:
|
|
4654
4654
|
case a:
|
|
4655
4655
|
case o:
|
|
4656
4656
|
case i:
|
|
4657
4657
|
case h:
|
|
4658
|
-
return
|
|
4658
|
+
return N;
|
|
4659
4659
|
default:
|
|
4660
|
-
switch (
|
|
4660
|
+
switch (N = N && N.$$typeof, N) {
|
|
4661
4661
|
case d:
|
|
4662
4662
|
case f:
|
|
4663
4663
|
case v:
|
|
4664
4664
|
case p:
|
|
4665
4665
|
case s:
|
|
4666
|
-
return
|
|
4666
|
+
return N;
|
|
4667
4667
|
default:
|
|
4668
4668
|
return T;
|
|
4669
4669
|
}
|
|
@@ -4673,44 +4673,44 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4673
4673
|
}
|
|
4674
4674
|
}
|
|
4675
4675
|
}
|
|
4676
|
-
function
|
|
4677
|
-
return P(
|
|
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(
|
|
4680
|
-
return
|
|
4681
|
-
}, e.isConcurrentMode =
|
|
4682
|
-
return P(
|
|
4683
|
-
}, e.isContextProvider = function(
|
|
4684
|
-
return P(
|
|
4685
|
-
}, e.isElement = function(
|
|
4686
|
-
return typeof
|
|
4687
|
-
}, e.isForwardRef = function(
|
|
4688
|
-
return P(
|
|
4689
|
-
}, e.isFragment = function(
|
|
4690
|
-
return P(
|
|
4691
|
-
}, e.isLazy = function(
|
|
4692
|
-
return P(
|
|
4693
|
-
}, e.isMemo = function(
|
|
4694
|
-
return P(
|
|
4695
|
-
}, e.isPortal = function(
|
|
4696
|
-
return P(
|
|
4697
|
-
}, e.isProfiler = function(
|
|
4698
|
-
return P(
|
|
4699
|
-
}, e.isStrictMode = function(
|
|
4700
|
-
return P(
|
|
4701
|
-
}, e.isSuspense = function(
|
|
4702
|
-
return P(
|
|
4703
|
-
}, e.isValidElementType = function(
|
|
4704
|
-
return typeof
|
|
4676
|
+
function O(N) {
|
|
4677
|
+
return P(N) === 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(N) {
|
|
4680
|
+
return O(N) || P(N) === l;
|
|
4681
|
+
}, e.isConcurrentMode = O, e.isContextConsumer = function(N) {
|
|
4682
|
+
return P(N) === d;
|
|
4683
|
+
}, e.isContextProvider = function(N) {
|
|
4684
|
+
return P(N) === s;
|
|
4685
|
+
}, e.isElement = function(N) {
|
|
4686
|
+
return typeof N == "object" && N !== null && N.$$typeof === r;
|
|
4687
|
+
}, e.isForwardRef = function(N) {
|
|
4688
|
+
return P(N) === f;
|
|
4689
|
+
}, e.isFragment = function(N) {
|
|
4690
|
+
return P(N) === a;
|
|
4691
|
+
}, e.isLazy = function(N) {
|
|
4692
|
+
return P(N) === v;
|
|
4693
|
+
}, e.isMemo = function(N) {
|
|
4694
|
+
return P(N) === p;
|
|
4695
|
+
}, e.isPortal = function(N) {
|
|
4696
|
+
return P(N) === n;
|
|
4697
|
+
}, e.isProfiler = function(N) {
|
|
4698
|
+
return P(N) === o;
|
|
4699
|
+
}, e.isStrictMode = function(N) {
|
|
4700
|
+
return P(N) === i;
|
|
4701
|
+
}, e.isSuspense = function(N) {
|
|
4702
|
+
return P(N) === h;
|
|
4703
|
+
}, e.isValidElementType = function(N) {
|
|
4704
|
+
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
4705
|
}, e.typeOf = P;
|
|
4706
4706
|
})), D1 = /* @__PURE__ */ Te(((e) => {
|
|
4707
4707
|
process.env.NODE_ENV !== "production" && (function() {
|
|
4708
4708
|
"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,
|
|
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, 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
4710
|
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 ===
|
|
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 === y || A.$$typeof === S || A.$$typeof === b);
|
|
4712
4712
|
}
|
|
4713
|
-
function
|
|
4713
|
+
function O(A) {
|
|
4714
4714
|
if (typeof A == "object" && A !== null) {
|
|
4715
4715
|
var M = A.$$typeof;
|
|
4716
4716
|
switch (M) {
|
|
@@ -4742,47 +4742,47 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4742
4742
|
}
|
|
4743
4743
|
}
|
|
4744
4744
|
}
|
|
4745
|
-
var
|
|
4745
|
+
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
4746
|
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) ||
|
|
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) || O(A) === l;
|
|
4748
4748
|
}
|
|
4749
4749
|
function x(A) {
|
|
4750
|
-
return
|
|
4750
|
+
return O(A) === c;
|
|
4751
4751
|
}
|
|
4752
4752
|
function C(A) {
|
|
4753
|
-
return
|
|
4753
|
+
return O(A) === d;
|
|
4754
4754
|
}
|
|
4755
4755
|
function E(A) {
|
|
4756
|
-
return
|
|
4756
|
+
return O(A) === s;
|
|
4757
4757
|
}
|
|
4758
4758
|
function k(A) {
|
|
4759
4759
|
return typeof A == "object" && A !== null && A.$$typeof === r;
|
|
4760
4760
|
}
|
|
4761
4761
|
function U(A) {
|
|
4762
|
-
return
|
|
4762
|
+
return O(A) === f;
|
|
4763
4763
|
}
|
|
4764
4764
|
function R(A) {
|
|
4765
|
-
return
|
|
4765
|
+
return O(A) === a;
|
|
4766
4766
|
}
|
|
4767
4767
|
function q(A) {
|
|
4768
|
-
return
|
|
4768
|
+
return O(A) === v;
|
|
4769
4769
|
}
|
|
4770
4770
|
function V(A) {
|
|
4771
|
-
return
|
|
4771
|
+
return O(A) === p;
|
|
4772
4772
|
}
|
|
4773
4773
|
function G(A) {
|
|
4774
|
-
return
|
|
4774
|
+
return O(A) === n;
|
|
4775
4775
|
}
|
|
4776
4776
|
function z(A) {
|
|
4777
|
-
return
|
|
4777
|
+
return O(A) === o;
|
|
4778
4778
|
}
|
|
4779
4779
|
function W(A) {
|
|
4780
|
-
return
|
|
4780
|
+
return O(A) === i;
|
|
4781
4781
|
}
|
|
4782
4782
|
function K(A) {
|
|
4783
|
-
return
|
|
4783
|
+
return O(A) === h;
|
|
4784
4784
|
}
|
|
4785
|
-
e.AsyncMode =
|
|
4785
|
+
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
4786
|
})();
|
|
4787
4787
|
})), sd = /* @__PURE__ */ Te(((e, t) => {
|
|
4788
4788
|
process.env.NODE_ENV === "production" ? t.exports = k1() : t.exports = D1();
|
|
@@ -4849,8 +4849,8 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4849
4849
|
throw p.name = "Invariant Violation", p;
|
|
4850
4850
|
}
|
|
4851
4851
|
m = s[h](d, h, c, l, null, n);
|
|
4852
|
-
} catch (
|
|
4853
|
-
m =
|
|
4852
|
+
} catch (b) {
|
|
4853
|
+
m = b;
|
|
4854
4854
|
}
|
|
4855
4855
|
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
4856
|
a[m.message] = !0;
|
|
@@ -4884,34 +4884,34 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4884
4884
|
if (typeof E == "function") return E;
|
|
4885
4885
|
}
|
|
4886
4886
|
var p = "<<anonymous>>", v = {
|
|
4887
|
-
array:
|
|
4888
|
-
bigint:
|
|
4889
|
-
bool:
|
|
4890
|
-
func:
|
|
4891
|
-
number:
|
|
4892
|
-
object:
|
|
4893
|
-
string:
|
|
4894
|
-
symbol:
|
|
4887
|
+
array: S("array"),
|
|
4888
|
+
bigint: S("bigint"),
|
|
4889
|
+
bool: S("boolean"),
|
|
4890
|
+
func: S("function"),
|
|
4891
|
+
number: S("number"),
|
|
4892
|
+
object: S("object"),
|
|
4893
|
+
string: S("string"),
|
|
4894
|
+
symbol: S("symbol"),
|
|
4895
4895
|
any: P(),
|
|
4896
|
-
arrayOf:
|
|
4897
|
-
element:
|
|
4896
|
+
arrayOf: O,
|
|
4897
|
+
element: N(),
|
|
4898
4898
|
elementType: T(),
|
|
4899
4899
|
instanceOf: D,
|
|
4900
4900
|
node: ce(),
|
|
4901
|
-
objectOf:
|
|
4901
|
+
objectOf: X,
|
|
4902
4902
|
oneOf: H,
|
|
4903
4903
|
oneOfType: ae,
|
|
4904
4904
|
shape: ye,
|
|
4905
4905
|
exact: Ce
|
|
4906
4906
|
};
|
|
4907
|
-
function
|
|
4907
|
+
function b(C, E) {
|
|
4908
4908
|
return C === E ? C !== 0 || 1 / C === 1 / E : C !== C && E !== E;
|
|
4909
4909
|
}
|
|
4910
4910
|
function $(C, E) {
|
|
4911
4911
|
this.message = C, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
|
|
4912
4912
|
}
|
|
4913
4913
|
$.prototype = Error.prototype;
|
|
4914
|
-
function
|
|
4914
|
+
function y(C) {
|
|
4915
4915
|
if (process.env.NODE_ENV !== "production")
|
|
4916
4916
|
var E = {}, k = 0;
|
|
4917
4917
|
function U(q, V, G, z, W, K, A) {
|
|
@@ -4929,7 +4929,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4929
4929
|
var R = U.bind(null, !1);
|
|
4930
4930
|
return R.isRequired = U.bind(null, !0), R;
|
|
4931
4931
|
}
|
|
4932
|
-
function
|
|
4932
|
+
function S(C) {
|
|
4933
4933
|
function E(k, U, R, q, V, G) {
|
|
4934
4934
|
var z = k[U];
|
|
4935
4935
|
if (se(z) !== C) {
|
|
@@ -4938,12 +4938,12 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4938
4938
|
}
|
|
4939
4939
|
return null;
|
|
4940
4940
|
}
|
|
4941
|
-
return
|
|
4941
|
+
return y(E);
|
|
4942
4942
|
}
|
|
4943
4943
|
function P() {
|
|
4944
|
-
return
|
|
4944
|
+
return y(d);
|
|
4945
4945
|
}
|
|
4946
|
-
function
|
|
4946
|
+
function O(C) {
|
|
4947
4947
|
function E(k, U, R, q, V) {
|
|
4948
4948
|
if (typeof C != "function") return new $("Property `" + V + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
4949
4949
|
var G = k[U];
|
|
@@ -4957,9 +4957,9 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4957
4957
|
}
|
|
4958
4958
|
return null;
|
|
4959
4959
|
}
|
|
4960
|
-
return
|
|
4960
|
+
return y(E);
|
|
4961
4961
|
}
|
|
4962
|
-
function
|
|
4962
|
+
function N() {
|
|
4963
4963
|
function C(E, k, U, R, q) {
|
|
4964
4964
|
var V = E[k];
|
|
4965
4965
|
if (!l(V)) {
|
|
@@ -4968,7 +4968,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4968
4968
|
}
|
|
4969
4969
|
return null;
|
|
4970
4970
|
}
|
|
4971
|
-
return
|
|
4971
|
+
return y(C);
|
|
4972
4972
|
}
|
|
4973
4973
|
function T() {
|
|
4974
4974
|
function C(E, k, U, R, q) {
|
|
@@ -4979,7 +4979,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4979
4979
|
}
|
|
4980
4980
|
return null;
|
|
4981
4981
|
}
|
|
4982
|
-
return
|
|
4982
|
+
return y(C);
|
|
4983
4983
|
}
|
|
4984
4984
|
function D(C) {
|
|
4985
4985
|
function E(k, U, R, q, V) {
|
|
@@ -4989,21 +4989,21 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
4989
4989
|
}
|
|
4990
4990
|
return null;
|
|
4991
4991
|
}
|
|
4992
|
-
return
|
|
4992
|
+
return y(E);
|
|
4993
4993
|
}
|
|
4994
4994
|
function H(C) {
|
|
4995
4995
|
if (!Array.isArray(C))
|
|
4996
4996
|
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
4997
|
function E(k, U, R, q, V) {
|
|
4998
|
-
for (var G = k[U], z = 0; z < C.length; z++) if (
|
|
4998
|
+
for (var G = k[U], z = 0; z < C.length; z++) if (b(G, C[z])) return null;
|
|
4999
4999
|
var W = JSON.stringify(C, function(A, M) {
|
|
5000
5000
|
return Q(M) === "symbol" ? String(M) : M;
|
|
5001
5001
|
});
|
|
5002
5002
|
return new $("Invalid " + q + " `" + V + "` of value `" + String(G) + "` " + ("supplied to `" + R + "`, expected one of " + W + "."));
|
|
5003
5003
|
}
|
|
5004
|
-
return
|
|
5004
|
+
return y(E);
|
|
5005
5005
|
}
|
|
5006
|
-
function
|
|
5006
|
+
function X(C) {
|
|
5007
5007
|
function E(k, U, R, q, V) {
|
|
5008
5008
|
if (typeof C != "function") return new $("Property `" + V + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
5009
5009
|
var G = k[U], z = se(G);
|
|
@@ -5014,7 +5014,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
5014
5014
|
}
|
|
5015
5015
|
return null;
|
|
5016
5016
|
}
|
|
5017
|
-
return
|
|
5017
|
+
return y(E);
|
|
5018
5018
|
}
|
|
5019
5019
|
function ae(C) {
|
|
5020
5020
|
if (!Array.isArray(C))
|
|
@@ -5033,13 +5033,13 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
5033
5033
|
var F = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
|
|
5034
5034
|
return new $("Invalid " + G + " `" + z + "` supplied to " + ("`" + V + "`" + F + "."));
|
|
5035
5035
|
}
|
|
5036
|
-
return
|
|
5036
|
+
return y(U);
|
|
5037
5037
|
}
|
|
5038
5038
|
function ce() {
|
|
5039
5039
|
function C(E, k, U, R, q) {
|
|
5040
5040
|
return me(E[k]) ? null : new $("Invalid " + R + " `" + q + "` supplied to " + ("`" + U + "`, expected a ReactNode."));
|
|
5041
5041
|
}
|
|
5042
|
-
return
|
|
5042
|
+
return y(C);
|
|
5043
5043
|
}
|
|
5044
5044
|
function ue(C, E, k, U, R) {
|
|
5045
5045
|
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 +5056,7 @@ var k1 = /* @__PURE__ */ Te(((e) => {
|
|
|
5056
5056
|
}
|
|
5057
5057
|
return null;
|
|
5058
5058
|
}
|
|
5059
|
-
return
|
|
5059
|
+
return y(E);
|
|
5060
5060
|
}
|
|
5061
5061
|
function Ce(C) {
|
|
5062
5062
|
function E(k, U, R, q, V) {
|
|
@@ -5072,7 +5072,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
|
|
|
5072
5072
|
}
|
|
5073
5073
|
return null;
|
|
5074
5074
|
}
|
|
5075
|
-
return
|
|
5075
|
+
return y(E);
|
|
5076
5076
|
}
|
|
5077
5077
|
function me(C) {
|
|
5078
5078
|
switch (typeof C) {
|
|
@@ -5183,7 +5183,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
|
|
|
5183
5183
|
var r = sd(), n = !0;
|
|
5184
5184
|
t.exports = j1()(r.isElement, n);
|
|
5185
5185
|
} else t.exports = L1()();
|
|
5186
|
-
})),
|
|
5186
|
+
})), _ = /* @__PURE__ */ va(B1(), 1);
|
|
5187
5187
|
function at(e, t, r) {
|
|
5188
5188
|
this.x = e, this.y = t, this.time = r || (/* @__PURE__ */ new Date()).getTime();
|
|
5189
5189
|
}
|
|
@@ -5343,10 +5343,10 @@ ee.prototype._calculateCurveControlPoints = function(e, t, r) {
|
|
|
5343
5343
|
}, 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
5344
|
x: d.x + f * m,
|
|
5345
5345
|
y: d.y + h * m
|
|
5346
|
-
}, v = t.x - p.x,
|
|
5346
|
+
}, v = t.x - p.x, b = t.y - p.y;
|
|
5347
5347
|
return {
|
|
5348
|
-
c1: new at(s.x + v, s.y +
|
|
5349
|
-
c2: new at(d.x + v, d.y +
|
|
5348
|
+
c1: new at(s.x + v, s.y + b),
|
|
5349
|
+
c2: new at(d.x + v, d.y + b)
|
|
5350
5350
|
};
|
|
5351
5351
|
};
|
|
5352
5352
|
ee.prototype._calculateCurveWidths = function(e) {
|
|
@@ -5401,15 +5401,15 @@ ee.prototype._fromData = function(e, t, r) {
|
|
|
5401
5401
|
};
|
|
5402
5402
|
ee.prototype._toSVG = function() {
|
|
5403
5403
|
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(
|
|
5405
|
-
var
|
|
5406
|
-
if (!isNaN(
|
|
5407
|
-
var P = "M " +
|
|
5408
|
-
|
|
5404
|
+
d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(t, function(b, $, y) {
|
|
5405
|
+
var S = document.createElement("path");
|
|
5406
|
+
if (!isNaN(b.control1.x) && !isNaN(b.control1.y) && !isNaN(b.control2.x) && !isNaN(b.control2.y)) {
|
|
5407
|
+
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));
|
|
5408
|
+
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
5409
|
}
|
|
5410
|
-
}, function(
|
|
5411
|
-
var $ = document.createElement("circle"),
|
|
5412
|
-
$.setAttribute("r",
|
|
5410
|
+
}, function(b) {
|
|
5411
|
+
var $ = document.createElement("circle"), y = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
|
|
5412
|
+
$.setAttribute("r", y), $.setAttribute("cx", b.x), $.setAttribute("cy", b.y), $.setAttribute("fill", b.color), d.appendChild($);
|
|
5413
5413
|
});
|
|
5414
5414
|
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
5415
|
if (f === void 0) {
|
|
@@ -5451,8 +5451,8 @@ var V1 = /* @__PURE__ */ Te(((e, t) => {
|
|
|
5451
5451
|
})([function(r, n) {
|
|
5452
5452
|
"use strict";
|
|
5453
5453
|
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),
|
|
5455
|
-
return l.width = $, l.height =
|
|
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), b = d(!0, f, h, m), $ = d(!1, f, h, m) - b + 1, y = v - p + 1, S = c.getImageData(b, p, $, y);
|
|
5455
|
+
return l.width = $, l.height = y, c.clearRect(0, 0, $, y), c.putImageData(S, 0, 0), l;
|
|
5456
5456
|
}
|
|
5457
5457
|
function i(l, c, f, h) {
|
|
5458
5458
|
return {
|
|
@@ -5536,17 +5536,17 @@ var V1 = /* @__PURE__ */ Te(((e, t) => {
|
|
|
5536
5536
|
return E1(r);
|
|
5537
5537
|
})(gl);
|
|
5538
5538
|
rn.propTypes = {
|
|
5539
|
-
velocityFilterWeight:
|
|
5540
|
-
minWidth:
|
|
5541
|
-
maxWidth:
|
|
5542
|
-
minDistance:
|
|
5543
|
-
dotSize:
|
|
5544
|
-
penColor:
|
|
5545
|
-
throttle:
|
|
5546
|
-
onEnd:
|
|
5547
|
-
onBegin:
|
|
5548
|
-
canvasProps:
|
|
5549
|
-
clearOnResize:
|
|
5539
|
+
velocityFilterWeight: _.default.number,
|
|
5540
|
+
minWidth: _.default.number,
|
|
5541
|
+
maxWidth: _.default.number,
|
|
5542
|
+
minDistance: _.default.number,
|
|
5543
|
+
dotSize: _.default.oneOfType([_.default.number, _.default.func]),
|
|
5544
|
+
penColor: _.default.string,
|
|
5545
|
+
throttle: _.default.number,
|
|
5546
|
+
onEnd: _.default.func,
|
|
5547
|
+
onBegin: _.default.func,
|
|
5548
|
+
canvasProps: _.default.object,
|
|
5549
|
+
clearOnResize: _.default.bool
|
|
5550
5550
|
};
|
|
5551
5551
|
rn.defaultProps = { clearOnResize: !0 };
|
|
5552
5552
|
rn.refNullError = /* @__PURE__ */ new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");
|
|
@@ -5559,13 +5559,13 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
5559
5559
|
emailMe: !1
|
|
5560
5560
|
},
|
|
5561
5561
|
mode: "onChange"
|
|
5562
|
-
}), p = c("accepted"), v = c("typedName"),
|
|
5562
|
+
}), p = c("accepted"), v = c("typedName"), b = c("signatureDataUrl"), $ = () => {
|
|
5563
5563
|
l(), r === "DRAW_SIGNATURE" && i.current?.clear();
|
|
5564
|
-
},
|
|
5564
|
+
}, y = () => {
|
|
5565
5565
|
$(), e();
|
|
5566
|
-
},
|
|
5566
|
+
}, S = () => {
|
|
5567
5567
|
i.current?.clear(), f("signatureDataUrl", "");
|
|
5568
|
-
}, P = (
|
|
5568
|
+
}, P = (N) => {
|
|
5569
5569
|
let T = "";
|
|
5570
5570
|
if (r === "DRAW_SIGNATURE") {
|
|
5571
5571
|
const D = i.current;
|
|
@@ -5573,24 +5573,24 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
5573
5573
|
else return;
|
|
5574
5574
|
}
|
|
5575
5575
|
t({
|
|
5576
|
-
accepted: r === "CHECKBOX_ONLY" ?
|
|
5577
|
-
typedName: r === "TYPED_NAME" ?
|
|
5576
|
+
accepted: r === "CHECKBOX_ONLY" ? N.accepted : !1,
|
|
5577
|
+
typedName: r === "TYPED_NAME" ? N.typedName.trim() : "",
|
|
5578
5578
|
signatureDataUrl: T,
|
|
5579
|
-
emailMe:
|
|
5579
|
+
emailMe: N.emailMe
|
|
5580
5580
|
}), $(), e();
|
|
5581
|
-
},
|
|
5582
|
-
return /* @__PURE__ */
|
|
5581
|
+
}, O = !m && (r === "CHECKBOX_ONLY" ? p : r === "TYPED_NAME" ? v?.trim().length > 2 : r === "DRAW_SIGNATURE" ? !!b : !1);
|
|
5582
|
+
return /* @__PURE__ */ g("div", {
|
|
5583
5583
|
className: "aaravpos-barber-consent-overlay",
|
|
5584
|
-
children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-consent-backdrop" }), /* @__PURE__ */
|
|
5584
|
+
children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-consent-backdrop" }), /* @__PURE__ */ g("div", {
|
|
5585
5585
|
className: "aaravpos-barber-consent-modal",
|
|
5586
5586
|
children: [
|
|
5587
|
-
/* @__PURE__ */
|
|
5587
|
+
/* @__PURE__ */ g("div", {
|
|
5588
5588
|
className: "aaravpos-barber-consent-header",
|
|
5589
5589
|
children: [/* @__PURE__ */ u("h3", {
|
|
5590
5590
|
className: "aaravpos-barber-consent-title",
|
|
5591
5591
|
children: n || "Consent Form"
|
|
5592
5592
|
}), /* @__PURE__ */ u("button", {
|
|
5593
|
-
onClick:
|
|
5593
|
+
onClick: y,
|
|
5594
5594
|
className: "aaravpos-barber-consent-close-btn",
|
|
5595
5595
|
children: /* @__PURE__ */ u(en, {})
|
|
5596
5596
|
})]
|
|
@@ -5605,10 +5605,10 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
5605
5605
|
})
|
|
5606
5606
|
})
|
|
5607
5607
|
}),
|
|
5608
|
-
/* @__PURE__ */
|
|
5608
|
+
/* @__PURE__ */ g("form", {
|
|
5609
5609
|
onSubmit: s(P),
|
|
5610
5610
|
children: [
|
|
5611
|
-
r === "CHECKBOX_ONLY" && /* @__PURE__ */
|
|
5611
|
+
r === "CHECKBOX_ONLY" && /* @__PURE__ */ g("label", {
|
|
5612
5612
|
className: "aaravpos-barber-consent-checkbox-label",
|
|
5613
5613
|
htmlFor: "accepted",
|
|
5614
5614
|
children: [/* @__PURE__ */ u("input", {
|
|
@@ -5621,10 +5621,10 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
5621
5621
|
children: "I have read and agree to the terms above"
|
|
5622
5622
|
})]
|
|
5623
5623
|
}),
|
|
5624
|
-
r === "TYPED_NAME" && /* @__PURE__ */
|
|
5624
|
+
r === "TYPED_NAME" && /* @__PURE__ */ g("div", {
|
|
5625
5625
|
className: "aaravpos-barber-consent-typed-wrapper",
|
|
5626
5626
|
children: [
|
|
5627
|
-
/* @__PURE__ */
|
|
5627
|
+
/* @__PURE__ */ g("label", {
|
|
5628
5628
|
className: "aaravpos-barber-consent-input-label",
|
|
5629
5629
|
htmlFor: "typedName",
|
|
5630
5630
|
children: ["Full Name", /* @__PURE__ */ u("span", {
|
|
@@ -5635,7 +5635,7 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
5635
5635
|
/* @__PURE__ */ u("input", {
|
|
5636
5636
|
...o("typedName", {
|
|
5637
5637
|
required: "Name is required",
|
|
5638
|
-
validate: (
|
|
5638
|
+
validate: (N) => N.trim().length > 2 || "Enter full name"
|
|
5639
5639
|
}),
|
|
5640
5640
|
id: "typedName",
|
|
5641
5641
|
placeholder: "Type your full name",
|
|
@@ -5655,7 +5655,7 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
5655
5655
|
control: d,
|
|
5656
5656
|
name: "signatureDataUrl",
|
|
5657
5657
|
rules: { validate: () => i.current && !i.current.isEmpty() ? !0 : "Signature required" },
|
|
5658
|
-
render: ({ field:
|
|
5658
|
+
render: ({ field: N }) => /* @__PURE__ */ g("div", {
|
|
5659
5659
|
className: "aaravpos-barber-consent-signature-wrapper",
|
|
5660
5660
|
children: [
|
|
5661
5661
|
/* @__PURE__ */ u(rn, {
|
|
@@ -5665,21 +5665,21 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
5665
5665
|
const T = i.current;
|
|
5666
5666
|
if (!T) return;
|
|
5667
5667
|
const D = T.getCanvas().toDataURL("image/png");
|
|
5668
|
-
|
|
5668
|
+
N.onChange(D);
|
|
5669
5669
|
}
|
|
5670
5670
|
}),
|
|
5671
5671
|
h.signatureDataUrl && /* @__PURE__ */ u("p", {
|
|
5672
5672
|
className: "aaravpos-barber-consent-error aaravpos-barber-consent-error-signature",
|
|
5673
5673
|
children: h.signatureDataUrl.message
|
|
5674
5674
|
}),
|
|
5675
|
-
/* @__PURE__ */
|
|
5675
|
+
/* @__PURE__ */ g("div", {
|
|
5676
5676
|
className: "aaravpos-barber-consent-signature-actions",
|
|
5677
|
-
children: [/* @__PURE__ */
|
|
5677
|
+
children: [/* @__PURE__ */ g("button", {
|
|
5678
5678
|
type: "button",
|
|
5679
|
-
onClick:
|
|
5679
|
+
onClick: S,
|
|
5680
5680
|
className: "aaravpos-barber-consent-clear-btn",
|
|
5681
5681
|
children: [/* @__PURE__ */ u(Hf, { size: 14 }), "Clear"]
|
|
5682
|
-
}), /* @__PURE__ */
|
|
5682
|
+
}), /* @__PURE__ */ g("label", {
|
|
5683
5683
|
className: "aaravpos-barber-consent-email-label",
|
|
5684
5684
|
htmlFor: "emailme",
|
|
5685
5685
|
children: [/* @__PURE__ */ u("input", {
|
|
@@ -5696,17 +5696,17 @@ var W1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
5696
5696
|
]
|
|
5697
5697
|
})
|
|
5698
5698
|
}),
|
|
5699
|
-
/* @__PURE__ */
|
|
5699
|
+
/* @__PURE__ */ g("div", {
|
|
5700
5700
|
className: "aaravpos-barber-consent-footer",
|
|
5701
5701
|
children: [/* @__PURE__ */ u("button", {
|
|
5702
5702
|
type: "button",
|
|
5703
|
-
onClick:
|
|
5703
|
+
onClick: y,
|
|
5704
5704
|
className: "aaravpos-barber-consent-cancel-btn",
|
|
5705
5705
|
children: "Cancel"
|
|
5706
|
-
}), /* @__PURE__ */
|
|
5706
|
+
}), /* @__PURE__ */ g("button", {
|
|
5707
5707
|
type: "submit",
|
|
5708
|
-
disabled: !
|
|
5709
|
-
className: `aaravpos-barber-consent-submit-btn ${
|
|
5708
|
+
disabled: !O,
|
|
5709
|
+
className: `aaravpos-barber-consent-submit-btn ${O ? "aaravpos-barber-consent-submit-active" : "aaravpos-barber-consent-submit-disabled"}`,
|
|
5710
5710
|
children: [/* @__PURE__ */ u(Ia, {}), r === "DRAW_SIGNATURE" || r === "TYPED_NAME" ? "Sign & Continue" : "I Agree"]
|
|
5711
5711
|
})]
|
|
5712
5712
|
})
|
|
@@ -13448,18 +13448,18 @@ function m0(e, t) {
|
|
|
13448
13448
|
return r;
|
|
13449
13449
|
}
|
|
13450
13450
|
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(
|
|
13452
|
-
f.current =
|
|
13453
|
-
}, [t]), m = Ue(function(
|
|
13454
|
-
return d0(
|
|
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(b) {
|
|
13452
|
+
f.current = b, t && (typeof t == "function" ? t(b) : t.current = b);
|
|
13453
|
+
}, [t]), m = Ue(function(b) {
|
|
13454
|
+
return d0(b, f.current, r, n, d);
|
|
13455
13455
|
}, [
|
|
13456
13456
|
f,
|
|
13457
13457
|
r,
|
|
13458
13458
|
n,
|
|
13459
13459
|
d
|
|
13460
|
-
]), p = Ue(function(
|
|
13461
|
-
if (l && l(
|
|
13462
|
-
return l0(
|
|
13460
|
+
]), p = Ue(function(b) {
|
|
13461
|
+
if (l && l(b), !b.defaultPrevented)
|
|
13462
|
+
return l0(b, f.current, r, n, d);
|
|
13463
13463
|
}, [
|
|
13464
13464
|
f,
|
|
13465
13465
|
r,
|
|
@@ -13549,17 +13549,17 @@ function Tr(e, t) {
|
|
|
13549
13549
|
}
|
|
13550
13550
|
Tr = /* @__PURE__ */ j.forwardRef(Tr);
|
|
13551
13551
|
Tr.propTypes = {
|
|
13552
|
-
parse:
|
|
13553
|
-
format:
|
|
13554
|
-
inputComponent:
|
|
13555
|
-
type:
|
|
13556
|
-
value:
|
|
13557
|
-
defaultValue:
|
|
13558
|
-
onChange:
|
|
13559
|
-
controlled:
|
|
13560
|
-
onKeyDown:
|
|
13561
|
-
onCut:
|
|
13562
|
-
onPaste:
|
|
13552
|
+
parse: _.default.func.isRequired,
|
|
13553
|
+
format: _.default.func.isRequired,
|
|
13554
|
+
inputComponent: _.default.elementType,
|
|
13555
|
+
type: _.default.string,
|
|
13556
|
+
value: _.default.string,
|
|
13557
|
+
defaultValue: _.default.string,
|
|
13558
|
+
onChange: _.default.func,
|
|
13559
|
+
controlled: _.default.bool,
|
|
13560
|
+
onKeyDown: _.default.func,
|
|
13561
|
+
onCut: _.default.func,
|
|
13562
|
+
onPaste: _.default.func
|
|
13563
13563
|
};
|
|
13564
13564
|
var N0 = Tr;
|
|
13565
13565
|
function zi(e, t) {
|
|
@@ -14381,8 +14381,8 @@ var rp = ";ext=", st = function(t) {
|
|
|
14381
14381
|
return "([".concat(Pe, "]{1,").concat(t, "})");
|
|
14382
14382
|
};
|
|
14383
14383
|
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,
|
|
14385
|
-
return m + "|" + p + "|" + v + "|" +
|
|
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, b = c + st(a) + "#", $ = f + h + o + st(r) + s, y = f + "(?:,)+" + o + st(n) + s;
|
|
14385
|
+
return m + "|" + p + "|" + v + "|" + b + "|" + $ + "|" + y;
|
|
14386
14386
|
}
|
|
14387
14387
|
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
14388
|
function dp(e) {
|
|
@@ -15999,8 +15999,8 @@ var sa = "9", am = ur(sa, 15), im = /[- ]/, Mr = !0, om = Mr && function() {
|
|
|
15999
15999
|
for (var v = o.length; v > 0; )
|
|
16000
16000
|
h = h.replace(/\d/, "x"), v--;
|
|
16001
16001
|
}
|
|
16002
|
-
var
|
|
16003
|
-
return m || (s ?
|
|
16002
|
+
var b = l.replace(new RegExp(d), h).replace(new RegExp(sa, "g"), "x");
|
|
16003
|
+
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
16004
|
}
|
|
16005
16005
|
}
|
|
16006
16006
|
},
|
|
@@ -16636,10 +16636,10 @@ function zm(e) {
|
|
|
16636
16636
|
inputFormat: o,
|
|
16637
16637
|
country: i,
|
|
16638
16638
|
metadata: d
|
|
16639
|
-
}), v = m.input(p + h),
|
|
16640
|
-
return p && (v = da(v, p),
|
|
16639
|
+
}), v = m.input(p + h), b = m.getTemplate();
|
|
16640
|
+
return p && (v = da(v, p), b && (b = da(b, p))), {
|
|
16641
16641
|
text: v,
|
|
16642
|
-
template:
|
|
16642
|
+
template: b
|
|
16643
16643
|
};
|
|
16644
16644
|
}, [i, d]), f = Ad({
|
|
16645
16645
|
onKeyDown: a,
|
|
@@ -16653,17 +16653,17 @@ function zm(e) {
|
|
|
16653
16653
|
}));
|
|
16654
16654
|
}
|
|
16655
16655
|
return t = /* @__PURE__ */ j.forwardRef(t), t.propTypes = {
|
|
16656
|
-
value:
|
|
16657
|
-
onChange:
|
|
16658
|
-
onKeyDown:
|
|
16659
|
-
country:
|
|
16660
|
-
inputFormat:
|
|
16656
|
+
value: _.default.string.isRequired,
|
|
16657
|
+
onChange: _.default.func.isRequired,
|
|
16658
|
+
onKeyDown: _.default.func,
|
|
16659
|
+
country: _.default.string,
|
|
16660
|
+
inputFormat: _.default.oneOf([
|
|
16661
16661
|
"INTERNATIONAL",
|
|
16662
16662
|
"NATIONAL_PART_OF_INTERNATIONAL",
|
|
16663
16663
|
"NATIONAL",
|
|
16664
16664
|
"INTERNATIONAL_OR_NATIONAL"
|
|
16665
16665
|
]).isRequired,
|
|
16666
|
-
metadata:
|
|
16666
|
+
metadata: _.default.object
|
|
16667
16667
|
}, t;
|
|
16668
16668
|
}
|
|
16669
16669
|
var Wm = zm(), Hm = [
|
|
@@ -16712,15 +16712,15 @@ function Ym(e) {
|
|
|
16712
16712
|
country: s,
|
|
16713
16713
|
metadata: c
|
|
16714
16714
|
}), v = Ue(function($) {
|
|
16715
|
-
var
|
|
16716
|
-
|
|
16715
|
+
var y = na($.target.value);
|
|
16716
|
+
y === a && Do(p, y, s, c).indexOf($.target.value) === 0 && (y = y.slice(0, -1)), i(y);
|
|
16717
16717
|
}, [
|
|
16718
16718
|
p,
|
|
16719
16719
|
a,
|
|
16720
16720
|
i,
|
|
16721
16721
|
s,
|
|
16722
16722
|
c
|
|
16723
|
-
]),
|
|
16723
|
+
]), b = Ad({
|
|
16724
16724
|
onKeyDown: o,
|
|
16725
16725
|
inputFormat: d
|
|
16726
16726
|
});
|
|
@@ -16728,22 +16728,22 @@ function Ym(e) {
|
|
|
16728
16728
|
ref: n,
|
|
16729
16729
|
value: Do(p, a, s, c),
|
|
16730
16730
|
onChange: v,
|
|
16731
|
-
onKeyDown:
|
|
16731
|
+
onKeyDown: b
|
|
16732
16732
|
}));
|
|
16733
16733
|
}
|
|
16734
16734
|
return t = /* @__PURE__ */ j.forwardRef(t), t.propTypes = {
|
|
16735
|
-
value:
|
|
16736
|
-
onChange:
|
|
16737
|
-
onKeyDown:
|
|
16738
|
-
country:
|
|
16739
|
-
inputFormat:
|
|
16735
|
+
value: _.default.string.isRequired,
|
|
16736
|
+
onChange: _.default.func.isRequired,
|
|
16737
|
+
onKeyDown: _.default.func,
|
|
16738
|
+
country: _.default.string,
|
|
16739
|
+
inputFormat: _.default.oneOf([
|
|
16740
16740
|
"INTERNATIONAL",
|
|
16741
16741
|
"NATIONAL_PART_OF_INTERNATIONAL",
|
|
16742
16742
|
"NATIONAL",
|
|
16743
16743
|
"INTERNATIONAL_OR_NATIONAL"
|
|
16744
16744
|
]).isRequired,
|
|
16745
|
-
metadata:
|
|
16746
|
-
inputComponent:
|
|
16745
|
+
metadata: _.default.object,
|
|
16746
|
+
inputComponent: _.default.elementType
|
|
16747
16747
|
}, t;
|
|
16748
16748
|
}
|
|
16749
16749
|
var Zm = Ym();
|
|
@@ -16849,15 +16849,15 @@ function Md(e) {
|
|
|
16849
16849
|
}));
|
|
16850
16850
|
}
|
|
16851
16851
|
Md.propTypes = {
|
|
16852
|
-
value:
|
|
16853
|
-
onChange:
|
|
16854
|
-
options:
|
|
16855
|
-
value:
|
|
16856
|
-
label:
|
|
16857
|
-
divider:
|
|
16852
|
+
value: _.default.string,
|
|
16853
|
+
onChange: _.default.func.isRequired,
|
|
16854
|
+
options: _.default.arrayOf(_.default.shape({
|
|
16855
|
+
value: _.default.string,
|
|
16856
|
+
label: _.default.string,
|
|
16857
|
+
divider: _.default.bool
|
|
16858
16858
|
})).isRequired,
|
|
16859
|
-
disabled:
|
|
16860
|
-
readOnly:
|
|
16859
|
+
disabled: _.default.bool,
|
|
16860
|
+
readOnly: _.default.bool
|
|
16861
16861
|
};
|
|
16862
16862
|
var nh = {
|
|
16863
16863
|
fontSize: "1px",
|
|
@@ -16882,9 +16882,9 @@ function kd(e) {
|
|
|
16882
16882
|
})), /* @__PURE__ */ j.createElement(o, null));
|
|
16883
16883
|
}
|
|
16884
16884
|
kd.propTypes = {
|
|
16885
|
-
iconComponent:
|
|
16886
|
-
arrowComponent:
|
|
16887
|
-
unicodeFlags:
|
|
16885
|
+
iconComponent: _.default.elementType,
|
|
16886
|
+
arrowComponent: _.default.elementType,
|
|
16887
|
+
unicodeFlags: _.default.bool
|
|
16888
16888
|
};
|
|
16889
16889
|
function ah() {
|
|
16890
16890
|
return /* @__PURE__ */ j.createElement("div", { className: "PhoneInputCountrySelectArrow" });
|
|
@@ -16940,10 +16940,10 @@ function La(e) {
|
|
|
16940
16940
|
}));
|
|
16941
16941
|
}
|
|
16942
16942
|
La.propTypes = {
|
|
16943
|
-
country:
|
|
16944
|
-
countryName:
|
|
16945
|
-
flags:
|
|
16946
|
-
flagUrl:
|
|
16943
|
+
country: _.default.string.isRequired,
|
|
16944
|
+
countryName: _.default.string.isRequired,
|
|
16945
|
+
flags: _.default.objectOf(_.default.elementType),
|
|
16946
|
+
flagUrl: _.default.string.isRequired
|
|
16947
16947
|
};
|
|
16948
16948
|
var lh = ["aspectRatio"], ch = ["title"], uh = ["title"];
|
|
16949
16949
|
function Rr() {
|
|
@@ -16977,8 +16977,8 @@ function dn(e) {
|
|
|
16977
16977
|
return t === 1 ? /* @__PURE__ */ j.createElement(Fd, r) : /* @__PURE__ */ j.createElement(Rd, r);
|
|
16978
16978
|
}
|
|
16979
16979
|
dn.propTypes = {
|
|
16980
|
-
title:
|
|
16981
|
-
aspectRatio:
|
|
16980
|
+
title: _.default.string.isRequired,
|
|
16981
|
+
aspectRatio: _.default.number
|
|
16982
16982
|
};
|
|
16983
16983
|
function Rd(e) {
|
|
16984
16984
|
var t = e.title, r = Ba(e, ch);
|
|
@@ -17017,7 +17017,7 @@ function Rd(e) {
|
|
|
17017
17017
|
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
17018
|
}));
|
|
17019
17019
|
}
|
|
17020
|
-
Rd.propTypes = { title:
|
|
17020
|
+
Rd.propTypes = { title: _.default.string.isRequired };
|
|
17021
17021
|
function Fd(e) {
|
|
17022
17022
|
var t = e.title, r = Ba(e, uh);
|
|
17023
17023
|
return /* @__PURE__ */ j.createElement("svg", Rr({}, r, {
|
|
@@ -17046,7 +17046,7 @@ function Fd(e) {
|
|
|
17046
17046
|
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
17047
|
}));
|
|
17048
17048
|
}
|
|
17049
|
-
Fd.propTypes = { title:
|
|
17049
|
+
Fd.propTypes = { title: _.default.string.isRequired };
|
|
17050
17050
|
function ph(e) {
|
|
17051
17051
|
if (e.length < 2 || e[0] !== "+") return !1;
|
|
17052
17052
|
for (var t = 1; t < e.length; ) {
|
|
@@ -17179,9 +17179,9 @@ function Bd(e) {
|
|
|
17179
17179
|
}));
|
|
17180
17180
|
}
|
|
17181
17181
|
return i.propTypes = {
|
|
17182
|
-
country:
|
|
17183
|
-
label:
|
|
17184
|
-
aspectRatio:
|
|
17182
|
+
country: _.default.string,
|
|
17183
|
+
label: _.default.string.isRequired,
|
|
17184
|
+
aspectRatio: _.default.number
|
|
17185
17185
|
}, i;
|
|
17186
17186
|
}
|
|
17187
17187
|
var Rv = Bd({
|
|
@@ -17227,10 +17227,10 @@ function Sh(e, t) {
|
|
|
17227
17227
|
function Ph(e, t) {
|
|
17228
17228
|
typeof e == "function" ? e(t) : e.current = t;
|
|
17229
17229
|
}
|
|
17230
|
-
var Ud =
|
|
17231
|
-
country_calling_codes:
|
|
17232
|
-
countries:
|
|
17233
|
-
}), Vd =
|
|
17230
|
+
var Ud = _.default.shape({
|
|
17231
|
+
country_calling_codes: _.default.object.isRequired,
|
|
17232
|
+
countries: _.default.object.isRequired
|
|
17233
|
+
}), Vd = _.default.objectOf(_.default.string);
|
|
17234
17234
|
function Ve(e, t) {
|
|
17235
17235
|
return "+" + Xe(e, t);
|
|
17236
17236
|
}
|
|
@@ -17442,7 +17442,7 @@ function Fh(e, t) {
|
|
|
17442
17442
|
function jh(e, t, r) {
|
|
17443
17443
|
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
17444
|
r.country;
|
|
17445
|
-
var p = r.value, v = r.hasUserSelectedACountry,
|
|
17445
|
+
var p = r.value, v = r.hasUserSelectedACountry, b = r.latestCountrySelectedByUser, $ = function(H) {
|
|
17446
17446
|
return Hd(er(er({}, H), {}, {
|
|
17447
17447
|
international: d,
|
|
17448
17448
|
useNationalFormat: l || c === "national",
|
|
@@ -17460,11 +17460,11 @@ function jh(e, t, r) {
|
|
|
17460
17460
|
hasUserSelectedACountry: void 0
|
|
17461
17461
|
};
|
|
17462
17462
|
if (i !== f) {
|
|
17463
|
-
var
|
|
17463
|
+
var y = !i || ln(i, n), S = !p || d && p === $({
|
|
17464
17464
|
value: void 0,
|
|
17465
17465
|
defaultCountry: f
|
|
17466
17466
|
});
|
|
17467
|
-
if (!v &&
|
|
17467
|
+
if (!v && y && !o && S) return {
|
|
17468
17468
|
country: i,
|
|
17469
17469
|
phoneDigits: $({
|
|
17470
17470
|
value: void 0,
|
|
@@ -17474,18 +17474,18 @@ function jh(e, t, r) {
|
|
|
17474
17474
|
};
|
|
17475
17475
|
}
|
|
17476
17476
|
if (!Vo(o, h) && !Vo(o, p)) {
|
|
17477
|
-
var P,
|
|
17477
|
+
var P, O;
|
|
17478
17478
|
if (o) {
|
|
17479
17479
|
o && jd(o), P = Gd(o, n);
|
|
17480
|
-
var
|
|
17481
|
-
P && P.country ? (!
|
|
17480
|
+
var N = Ld(a, n);
|
|
17481
|
+
P && P.country ? (!N || N.indexOf(P.country) >= 0) && (O = P.country) : (O = zd(o, {
|
|
17482
17482
|
country: void 0,
|
|
17483
|
-
countries:
|
|
17483
|
+
countries: N,
|
|
17484
17484
|
metadata: n
|
|
17485
|
-
}),
|
|
17485
|
+
}), O || i && o.indexOf(Ve(i, n)) === 0 && (O = i));
|
|
17486
17486
|
}
|
|
17487
17487
|
var T;
|
|
17488
|
-
return o ?
|
|
17488
|
+
return o ? b && ((O ? b === O : ft(o, b, n)) ? O || (O = b) : T = { latestCountrySelectedByUser: void 0 }) : T = {
|
|
17489
17489
|
latestCountrySelectedByUser: void 0,
|
|
17490
17490
|
hasUserSelectedACountry: void 0
|
|
17491
17491
|
}, er(er({}, T), {}, {
|
|
@@ -17495,7 +17495,7 @@ function jh(e, t, r) {
|
|
|
17495
17495
|
defaultCountry: i
|
|
17496
17496
|
}),
|
|
17497
17497
|
value: o,
|
|
17498
|
-
country: o ?
|
|
17498
|
+
country: o ? O : i
|
|
17499
17499
|
});
|
|
17500
17500
|
}
|
|
17501
17501
|
}
|
|
@@ -17669,40 +17669,40 @@ function Kh(e, t) {
|
|
|
17669
17669
|
var Yh = /* @__PURE__ */ (function(e) {
|
|
17670
17670
|
function t(r) {
|
|
17671
17671
|
var n;
|
|
17672
|
-
Vh(this, t), n = zh(this, t, [r]), Ae(n, "setInputRef", function(
|
|
17673
|
-
Sh([n.props.inputRef, n.inputRef],
|
|
17674
|
-
}), Ae(n, "isCountrySupportedWithError", function(
|
|
17672
|
+
Vh(this, t), n = zh(this, t, [r]), Ae(n, "setInputRef", function(b) {
|
|
17673
|
+
Sh([n.props.inputRef, n.inputRef], b);
|
|
17674
|
+
}), Ae(n, "isCountrySupportedWithError", function(b) {
|
|
17675
17675
|
var $ = n.props.metadata;
|
|
17676
|
-
return ln(
|
|
17677
|
-
}), Ae(n, "onCountryChange", function(
|
|
17678
|
-
var $ = n.props,
|
|
17676
|
+
return ln(b, $);
|
|
17677
|
+
}), Ae(n, "onCountryChange", function(b) {
|
|
17678
|
+
var $ = n.props, y = $.international, S = $.metadata, P = $.onChange, O = $.focusInputOnCountrySelection, N = n.state, T = N.phoneDigits, D = N.country, H = Eh(T, {
|
|
17679
17679
|
prevCountry: D,
|
|
17680
|
-
newCountry:
|
|
17681
|
-
metadata:
|
|
17682
|
-
useNationalFormat: !
|
|
17683
|
-
}),
|
|
17684
|
-
|
|
17685
|
-
country:
|
|
17686
|
-
latestCountrySelectedByUser:
|
|
17680
|
+
newCountry: b,
|
|
17681
|
+
metadata: S,
|
|
17682
|
+
useNationalFormat: !y
|
|
17683
|
+
}), X = ct(H, b, S);
|
|
17684
|
+
O && n.inputRef.current.focus(), n.setState({
|
|
17685
|
+
country: b,
|
|
17686
|
+
latestCountrySelectedByUser: b,
|
|
17687
17687
|
hasUserSelectedACountry: !0,
|
|
17688
17688
|
phoneDigits: H,
|
|
17689
|
-
value:
|
|
17689
|
+
value: X
|
|
17690
17690
|
}, function() {
|
|
17691
|
-
P(
|
|
17691
|
+
P(X);
|
|
17692
17692
|
});
|
|
17693
|
-
}), Ae(n, "onChange", function(
|
|
17694
|
-
var $ = n.props,
|
|
17693
|
+
}), Ae(n, "onChange", function(b) {
|
|
17694
|
+
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
17695
|
prevPhoneDigits: ae,
|
|
17696
17696
|
country: ce,
|
|
17697
17697
|
countryRequired: !P,
|
|
17698
|
-
defaultCountry:
|
|
17698
|
+
defaultCountry: y,
|
|
17699
17699
|
latestCountrySelectedByUser: ue,
|
|
17700
17700
|
getAnyCountry: function() {
|
|
17701
|
-
return n.getFirstSupportedCountry({ countries:
|
|
17701
|
+
return n.getFirstSupportedCountry({ countries: X });
|
|
17702
17702
|
},
|
|
17703
|
-
countries:
|
|
17704
|
-
international:
|
|
17705
|
-
limitMaxLength:
|
|
17703
|
+
countries: X,
|
|
17704
|
+
international: O,
|
|
17705
|
+
limitMaxLength: N,
|
|
17706
17706
|
countryCallingCodeEditable: T,
|
|
17707
17707
|
metadata: D
|
|
17708
17708
|
}), Ce = ye.phoneDigits, me = ye.country, fe = ye.value, se = {
|
|
@@ -17711,32 +17711,32 @@ var Yh = /* @__PURE__ */ (function(e) {
|
|
|
17711
17711
|
country: me
|
|
17712
17712
|
};
|
|
17713
17713
|
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
|
|
17714
|
+
return S(fe);
|
|
17715
17715
|
});
|
|
17716
17716
|
}), Ae(n, "_onFocus", function() {
|
|
17717
17717
|
return n.setState({ isFocused: !0 });
|
|
17718
17718
|
}), Ae(n, "_onBlur", function() {
|
|
17719
17719
|
return n.setState({ isFocused: !1 });
|
|
17720
|
-
}), Ae(n, "onFocus", function(
|
|
17720
|
+
}), Ae(n, "onFocus", function(b) {
|
|
17721
17721
|
n._onFocus();
|
|
17722
17722
|
var $ = n.props.onFocus;
|
|
17723
|
-
$ && $(
|
|
17724
|
-
}), Ae(n, "onBlur", function(
|
|
17723
|
+
$ && $(b);
|
|
17724
|
+
}), Ae(n, "onBlur", function(b) {
|
|
17725
17725
|
var $ = n.props.onBlur;
|
|
17726
|
-
n._onBlur(), $ && $(
|
|
17727
|
-
}), Ae(n, "onCountryFocus", function(
|
|
17726
|
+
n._onBlur(), $ && $(b);
|
|
17727
|
+
}), Ae(n, "onCountryFocus", function(b) {
|
|
17728
17728
|
n._onFocus();
|
|
17729
17729
|
var $ = n.props.countrySelectProps;
|
|
17730
17730
|
if ($) {
|
|
17731
|
-
var
|
|
17732
|
-
|
|
17731
|
+
var y = $.onFocus;
|
|
17732
|
+
y && y(b);
|
|
17733
17733
|
}
|
|
17734
|
-
}), Ae(n, "onCountryBlur", function(
|
|
17734
|
+
}), Ae(n, "onCountryBlur", function(b) {
|
|
17735
17735
|
n._onBlur();
|
|
17736
17736
|
var $ = n.props.countrySelectProps;
|
|
17737
17737
|
if ($) {
|
|
17738
|
-
var
|
|
17739
|
-
|
|
17738
|
+
var y = $.onBlur;
|
|
17739
|
+
y && y(b);
|
|
17740
17740
|
}
|
|
17741
17741
|
}), n.inputRef = /* @__PURE__ */ j.createRef();
|
|
17742
17742
|
var a = n.props, i = a.value;
|
|
@@ -17824,13 +17824,13 @@ var Yh = /* @__PURE__ */ (function(e) {
|
|
|
17824
17824
|
value: function() {
|
|
17825
17825
|
var n = this.props, a = n.name, i = n.disabled, o = n.readOnly, s = n.autoComplete, d = n.style, l = n.className;
|
|
17826
17826
|
n.inputRef;
|
|
17827
|
-
var c = n.inputComponent, f = n.numberInputProps, h = n.smartCaret, m = n.countrySelectComponent, p = n.countrySelectProps, v = n.containerComponent,
|
|
17827
|
+
var c = n.inputComponent, f = n.numberInputProps, h = n.smartCaret, m = n.countrySelectComponent, p = n.countrySelectProps, v = n.containerComponent, b = n.containerComponentProps;
|
|
17828
17828
|
n.defaultCountry, n.countries, n.countryOptionsOrder;
|
|
17829
17829
|
var $ = n.labels;
|
|
17830
17830
|
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
|
|
17831
|
+
var y = n.metadata, S = n.international;
|
|
17832
17832
|
n.locales;
|
|
17833
|
-
var P = Bh(n, Lh),
|
|
17833
|
+
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
17834
|
return /* @__PURE__ */ j.createElement(v, pt({
|
|
17835
17835
|
style: d,
|
|
17836
17836
|
className: (0, kr.default)(l, "PhoneInput", {
|
|
@@ -17838,11 +17838,11 @@ var Yh = /* @__PURE__ */ (function(e) {
|
|
|
17838
17838
|
"PhoneInput--disabled": i,
|
|
17839
17839
|
"PhoneInput--readOnly": o
|
|
17840
17840
|
})
|
|
17841
|
-
},
|
|
17841
|
+
}, b), /* @__PURE__ */ j.createElement(m, pt({
|
|
17842
17842
|
name: a ? "".concat(a, "Country") : void 0,
|
|
17843
17843
|
"aria-label": $.country
|
|
17844
17844
|
}, p, {
|
|
17845
|
-
value:
|
|
17845
|
+
value: N,
|
|
17846
17846
|
options: ae,
|
|
17847
17847
|
onChange: this.onCountryChange,
|
|
17848
17848
|
onFocus: this.onCountryFocus,
|
|
@@ -17850,17 +17850,17 @@ var Yh = /* @__PURE__ */ (function(e) {
|
|
|
17850
17850
|
disabled: i || p && p.disabled,
|
|
17851
17851
|
readOnly: o || p && p.readOnly,
|
|
17852
17852
|
iconComponent: this.CountryIcon
|
|
17853
|
-
})), /* @__PURE__ */ j.createElement(
|
|
17853
|
+
})), /* @__PURE__ */ j.createElement(X, pt({
|
|
17854
17854
|
ref: this.setInputRef,
|
|
17855
17855
|
type: "tel",
|
|
17856
17856
|
autoComplete: s
|
|
17857
17857
|
}, f, P, {
|
|
17858
|
-
inputFormat:
|
|
17859
|
-
international:
|
|
17860
|
-
withCountryCallingCode:
|
|
17858
|
+
inputFormat: S === !0 ? "INTERNATIONAL" : S === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
|
|
17859
|
+
international: S ? !0 : void 0,
|
|
17860
|
+
withCountryCallingCode: S ? !0 : void 0,
|
|
17861
17861
|
name: a,
|
|
17862
|
-
metadata:
|
|
17863
|
-
country:
|
|
17862
|
+
metadata: y,
|
|
17863
|
+
country: N,
|
|
17864
17864
|
value: D || "",
|
|
17865
17865
|
onChange: this.onChange,
|
|
17866
17866
|
onFocus: this.onFocus,
|
|
@@ -17882,40 +17882,40 @@ var Yh = /* @__PURE__ */ (function(e) {
|
|
|
17882
17882
|
return /* @__PURE__ */ j.createElement(Yh, pt({}, Zh(e), { inputRef: t }));
|
|
17883
17883
|
});
|
|
17884
17884
|
Zd.propTypes = {
|
|
17885
|
-
value:
|
|
17886
|
-
onChange:
|
|
17887
|
-
onFocus:
|
|
17888
|
-
onBlur:
|
|
17889
|
-
disabled:
|
|
17890
|
-
readOnly:
|
|
17891
|
-
autoComplete:
|
|
17892
|
-
initialValueFormat:
|
|
17893
|
-
displayInitialValueAsLocalNumber:
|
|
17894
|
-
defaultCountry:
|
|
17895
|
-
countries:
|
|
17885
|
+
value: _.default.string,
|
|
17886
|
+
onChange: _.default.func.isRequired,
|
|
17887
|
+
onFocus: _.default.func,
|
|
17888
|
+
onBlur: _.default.func,
|
|
17889
|
+
disabled: _.default.bool,
|
|
17890
|
+
readOnly: _.default.bool,
|
|
17891
|
+
autoComplete: _.default.string,
|
|
17892
|
+
initialValueFormat: _.default.oneOf(["national"]),
|
|
17893
|
+
displayInitialValueAsLocalNumber: _.default.bool,
|
|
17894
|
+
defaultCountry: _.default.string,
|
|
17895
|
+
countries: _.default.arrayOf(_.default.string),
|
|
17896
17896
|
labels: Vd,
|
|
17897
|
-
locales:
|
|
17898
|
-
flagUrl:
|
|
17899
|
-
flags:
|
|
17900
|
-
flagComponent:
|
|
17901
|
-
addInternationalOption:
|
|
17902
|
-
internationalIcon:
|
|
17903
|
-
countryOptionsOrder:
|
|
17904
|
-
style:
|
|
17905
|
-
className:
|
|
17906
|
-
countrySelectComponent:
|
|
17907
|
-
countrySelectProps:
|
|
17908
|
-
inputComponent:
|
|
17909
|
-
numberInputProps:
|
|
17910
|
-
containerComponent:
|
|
17911
|
-
containerComponentProps:
|
|
17912
|
-
smartCaret:
|
|
17913
|
-
international:
|
|
17914
|
-
limitMaxLength:
|
|
17915
|
-
countryCallingCodeEditable:
|
|
17897
|
+
locales: _.default.oneOfType([_.default.string, _.default.arrayOf(_.default.string)]),
|
|
17898
|
+
flagUrl: _.default.string,
|
|
17899
|
+
flags: _.default.objectOf(_.default.elementType),
|
|
17900
|
+
flagComponent: _.default.elementType,
|
|
17901
|
+
addInternationalOption: _.default.bool,
|
|
17902
|
+
internationalIcon: _.default.elementType,
|
|
17903
|
+
countryOptionsOrder: _.default.arrayOf(_.default.string),
|
|
17904
|
+
style: _.default.object,
|
|
17905
|
+
className: _.default.string,
|
|
17906
|
+
countrySelectComponent: _.default.elementType,
|
|
17907
|
+
countrySelectProps: _.default.object,
|
|
17908
|
+
inputComponent: _.default.elementType,
|
|
17909
|
+
numberInputProps: _.default.object,
|
|
17910
|
+
containerComponent: _.default.elementType,
|
|
17911
|
+
containerComponentProps: _.default.object,
|
|
17912
|
+
smartCaret: _.default.bool,
|
|
17913
|
+
international: _.default.bool,
|
|
17914
|
+
limitMaxLength: _.default.bool,
|
|
17915
|
+
countryCallingCodeEditable: _.default.bool,
|
|
17916
17916
|
metadata: Ud,
|
|
17917
|
-
onCountryChange:
|
|
17918
|
-
focusInputOnCountrySelection:
|
|
17917
|
+
onCountryChange: _.default.func,
|
|
17918
|
+
focusInputOnCountrySelection: _.default.bool
|
|
17919
17919
|
};
|
|
17920
17920
|
var Wo = {
|
|
17921
17921
|
autoComplete: "tel",
|
|
@@ -17925,7 +17925,7 @@ var Wo = {
|
|
|
17925
17925
|
internationalIcon: dn,
|
|
17926
17926
|
inputComponent: "input",
|
|
17927
17927
|
containerComponent: "div",
|
|
17928
|
-
reset:
|
|
17928
|
+
reset: _.default.any,
|
|
17929
17929
|
smartCaret: !0,
|
|
17930
17930
|
addInternationalOption: !0,
|
|
17931
17931
|
countryCallingCodeEditable: !0,
|
|
@@ -18279,7 +18279,7 @@ var av = [
|
|
|
18279
18279
|
return +`${t}${r}`;
|
|
18280
18280
|
};
|
|
18281
18281
|
function dv() {
|
|
18282
|
-
const e = ze(), { tenantId: t, id: r } =
|
|
18282
|
+
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
18283
|
defaultValues: {
|
|
18284
18284
|
firstName: m?.firstName || "",
|
|
18285
18285
|
lastName: m?.lastName || "",
|
|
@@ -18288,7 +18288,7 @@ function dv() {
|
|
|
18288
18288
|
},
|
|
18289
18289
|
mode: "onChange",
|
|
18290
18290
|
reValidateMode: "onChange"
|
|
18291
|
-
}), un = Ht("phone"), fn = Ht("email"), pn = (w) => w?.replace(/\s+/g, "") || "", Qd = (w) => /^\S+@\S+\.\S+$/.test(w), mn =
|
|
18291
|
+
}), un = Ht("phone"), fn = Ht("email"), pn = (w) => w?.replace(/\s+/g, "") || "", Qd = (w) => /^\S+@\S+\.\S+$/.test(w), mn = b.map((w) => {
|
|
18292
18292
|
const I = s?.find((B) => B.id === l?.id)?.assignments?.find((B) => B.id === w.id), L = {
|
|
18293
18293
|
...w,
|
|
18294
18294
|
price: I?.price ?? w.price ?? w.min_price ?? 0,
|
|
@@ -18301,9 +18301,9 @@ function dv() {
|
|
|
18301
18301
|
unitTax: Mi(L, { perUnit: !0 })
|
|
18302
18302
|
};
|
|
18303
18303
|
}), hn = [
|
|
18304
|
-
...
|
|
18305
|
-
...
|
|
18306
|
-
...
|
|
18304
|
+
...y?.morning ?? [],
|
|
18305
|
+
...y?.afternoon ?? [],
|
|
18306
|
+
...y?.evening ?? []
|
|
18307
18307
|
], el = mn.reduce((w, I) => w + Number(I.duration ?? 0), 0), tl = Math.ceil(el / iv), rl = (w) => {
|
|
18308
18308
|
if (!hn.length) return "";
|
|
18309
18309
|
const I = hn[w]?.start_time, L = hn[w + tl - 1];
|
|
@@ -18312,7 +18312,7 @@ function dv() {
|
|
|
18312
18312
|
day: Number(f?.day ?? G.day),
|
|
18313
18313
|
month: Number(f?.month ?? G.month),
|
|
18314
18314
|
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(() =>
|
|
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(() => 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
18316
|
const I = w?.consent_template ?? w?.consentTemplate ?? null;
|
|
18317
18317
|
return {
|
|
18318
18318
|
heading: String(I?.heading ?? "").trim(),
|
|
@@ -18565,7 +18565,7 @@ function dv() {
|
|
|
18565
18565
|
staffId: l?.id,
|
|
18566
18566
|
date: ti,
|
|
18567
18567
|
startTime: h,
|
|
18568
|
-
serviceIds:
|
|
18568
|
+
serviceIds: b.map((B) => B.id),
|
|
18569
18569
|
slotIds: c,
|
|
18570
18570
|
isWalkIn: !1,
|
|
18571
18571
|
requiresConsent: Ie.length > 0,
|
|
@@ -18586,7 +18586,7 @@ function dv() {
|
|
|
18586
18586
|
p === "booking" && Ja > 0 && await ml(ne, be, Oe), H === "card" ? (D({
|
|
18587
18587
|
appointmentId: ne,
|
|
18588
18588
|
customerId: be
|
|
18589
|
-
}),
|
|
18589
|
+
}), N(!0)) : (e(Jt(String(ne))), e(Be()));
|
|
18590
18590
|
} catch (B) {
|
|
18591
18591
|
const ie = B?.payload?.message || B?.data?.message || B?.message || "Staff not working on this day";
|
|
18592
18592
|
re.error(ie);
|
|
@@ -18668,16 +18668,16 @@ function dv() {
|
|
|
18668
18668
|
re.warning(Oe instanceof Error ? Oe.message : String(Oe ?? "Payment done, but finalize failed"));
|
|
18669
18669
|
}
|
|
18670
18670
|
} else re.warning("Payment pending");
|
|
18671
|
-
return
|
|
18671
|
+
return N(!1), e(Jt(String(T?.appointmentId))), e(Be()), !0;
|
|
18672
18672
|
} catch (I) {
|
|
18673
|
-
return re.warning(I instanceof Error ? I.message : "Payment failed, but appointment is booked"),
|
|
18673
|
+
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
18674
|
} finally {
|
|
18675
18675
|
P(!1);
|
|
18676
18676
|
}
|
|
18677
18677
|
}, $l = () => {
|
|
18678
|
-
|
|
18678
|
+
N(!1), re.warning("Appointment booked. Payment was cancelled."), e(Jt(String(T?.appointmentId))), e(Be());
|
|
18679
18679
|
};
|
|
18680
|
-
return /* @__PURE__ */
|
|
18680
|
+
return /* @__PURE__ */ g(Aa, {
|
|
18681
18681
|
sidebar: /* @__PURE__ */ u("div", {
|
|
18682
18682
|
className: "aaravpos-barber-aside",
|
|
18683
18683
|
children: /* @__PURE__ */ u(xa, {
|
|
@@ -18690,11 +18690,11 @@ function dv() {
|
|
|
18690
18690
|
consentCompleted: Ja,
|
|
18691
18691
|
totalConsents: Xa,
|
|
18692
18692
|
checkingConsent: U,
|
|
18693
|
-
loading:
|
|
18693
|
+
loading: S
|
|
18694
18694
|
})
|
|
18695
18695
|
}),
|
|
18696
18696
|
children: [
|
|
18697
|
-
/* @__PURE__ */
|
|
18697
|
+
/* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(Ta, {}), /* @__PURE__ */ g("div", {
|
|
18698
18698
|
className: "aaravpos-barber-margin-top-20",
|
|
18699
18699
|
children: [
|
|
18700
18700
|
/* @__PURE__ */ u("h1", {
|
|
@@ -18705,9 +18705,9 @@ function dv() {
|
|
|
18705
18705
|
className: "aaravpos-barber-sub-title",
|
|
18706
18706
|
children: "Review your appointment details before booking"
|
|
18707
18707
|
}),
|
|
18708
|
-
/* @__PURE__ */
|
|
18708
|
+
/* @__PURE__ */ g("div", {
|
|
18709
18709
|
className: "aaravpos-barber-booking-wrapper aaravpos-barber-margin-top-20",
|
|
18710
|
-
children: [/* @__PURE__ */
|
|
18710
|
+
children: [/* @__PURE__ */ g("div", {
|
|
18711
18711
|
className: "aaravpos-barber-outlet-info",
|
|
18712
18712
|
children: [a && /* @__PURE__ */ u("div", {
|
|
18713
18713
|
className: "aaravpos-barber-outlet-logo",
|
|
@@ -18716,70 +18716,70 @@ function dv() {
|
|
|
18716
18716
|
alt: "Logo",
|
|
18717
18717
|
className: "aaravpos-barber-outlet-logo-img"
|
|
18718
18718
|
})
|
|
18719
|
-
}), /* @__PURE__ */
|
|
18719
|
+
}), /* @__PURE__ */ g("div", {
|
|
18720
18720
|
className: "aaravpos-barber-outlet-content",
|
|
18721
18721
|
children: [/* @__PURE__ */ u("p", {
|
|
18722
18722
|
className: "aaravpos-barber-outlet-name",
|
|
18723
18723
|
children: i ?? "-"
|
|
18724
|
-
}), /* @__PURE__ */
|
|
18724
|
+
}), /* @__PURE__ */ g("p", {
|
|
18725
18725
|
className: "aaravpos-barber-outlet-address",
|
|
18726
18726
|
children: [o ?? "-", /* @__PURE__ */ u("br", {})]
|
|
18727
18727
|
})]
|
|
18728
18728
|
})]
|
|
18729
|
-
}), /* @__PURE__ */
|
|
18729
|
+
}), /* @__PURE__ */ g("div", {
|
|
18730
18730
|
className: "aaravpos-barber-booking-scroll",
|
|
18731
|
-
children: [/* @__PURE__ */
|
|
18731
|
+
children: [/* @__PURE__ */ g("div", {
|
|
18732
18732
|
className: "aaravpos-barber-booking-grid",
|
|
18733
|
-
children: [/* @__PURE__ */
|
|
18733
|
+
children: [/* @__PURE__ */ g("div", {
|
|
18734
18734
|
className: "aaravpos-barber-booking-column",
|
|
18735
|
-
children: [/* @__PURE__ */ u(Ho, { children: "Appointment" }), /* @__PURE__ */
|
|
18735
|
+
children: [/* @__PURE__ */ u(Ho, { children: "Appointment" }), /* @__PURE__ */ g(lv, { children: [/* @__PURE__ */ g("div", {
|
|
18736
18736
|
className: "aaravpos-barber-appointment-header",
|
|
18737
18737
|
children: [
|
|
18738
18738
|
/* @__PURE__ */ u(cv, { pro: l }),
|
|
18739
|
-
/* @__PURE__ */
|
|
18739
|
+
/* @__PURE__ */ g("div", {
|
|
18740
18740
|
className: "aaravpos-barber-appointment-content",
|
|
18741
18741
|
children: [/* @__PURE__ */ u("p", {
|
|
18742
18742
|
className: "aaravpos-barber-appointment-name",
|
|
18743
18743
|
children: l?.name
|
|
18744
18744
|
}), /* @__PURE__ */ u("p", {
|
|
18745
18745
|
className: "aaravpos-barber-appointment-services",
|
|
18746
|
-
children:
|
|
18746
|
+
children: b.map((w) => w.name).join(", ")
|
|
18747
18747
|
})]
|
|
18748
18748
|
}),
|
|
18749
|
-
/* @__PURE__ */
|
|
18749
|
+
/* @__PURE__ */ g("span", {
|
|
18750
18750
|
className: "aaravpos-barber-appointment-price",
|
|
18751
18751
|
children: [/* @__PURE__ */ u(Se, { size: 14 }), vn]
|
|
18752
18752
|
})
|
|
18753
18753
|
]
|
|
18754
|
-
}), /* @__PURE__ */
|
|
18754
|
+
}), /* @__PURE__ */ g("div", {
|
|
18755
18755
|
className: "aaravpos-barber-appointment-date",
|
|
18756
18756
|
children: [/* @__PURE__ */ u(gf, { size: 18 }), /* @__PURE__ */ u("span", {
|
|
18757
18757
|
className: "aaravpos-barber-appointment-date-text",
|
|
18758
18758
|
children: nl ?? "No time selected"
|
|
18759
18759
|
})]
|
|
18760
18760
|
})] })]
|
|
18761
|
-
}), /* @__PURE__ */
|
|
18761
|
+
}), /* @__PURE__ */ g("div", {
|
|
18762
18762
|
className: "aaravpos-barber-booking-column",
|
|
18763
18763
|
children: [/* @__PURE__ */ u(Ho, { children: "Payment Method" }), /* @__PURE__ */ u(uv, {
|
|
18764
18764
|
icon: /* @__PURE__ */ u(e1, { size: 18 }),
|
|
18765
18765
|
label: "Pay in person",
|
|
18766
18766
|
selected: H === "person",
|
|
18767
18767
|
onClick: () => {
|
|
18768
|
-
|
|
18768
|
+
X("person");
|
|
18769
18769
|
}
|
|
18770
18770
|
})]
|
|
18771
18771
|
})]
|
|
18772
18772
|
}), H && /* @__PURE__ */ u("form", {
|
|
18773
18773
|
onSubmit: He(vl),
|
|
18774
|
-
children: /* @__PURE__ */
|
|
18774
|
+
children: /* @__PURE__ */ g("div", {
|
|
18775
18775
|
className: "aaravpos-barber-details-section aaravpos-barber-margin-top-20",
|
|
18776
|
-
children: [/* @__PURE__ */
|
|
18776
|
+
children: [/* @__PURE__ */ g("div", {
|
|
18777
18777
|
className: "aaravpos-barber-details-grid",
|
|
18778
18778
|
children: [
|
|
18779
|
-
/* @__PURE__ */
|
|
18779
|
+
/* @__PURE__ */ g("div", {
|
|
18780
18780
|
className: "aaravpos-barber-form-group",
|
|
18781
18781
|
children: [
|
|
18782
|
-
/* @__PURE__ */
|
|
18782
|
+
/* @__PURE__ */ g("label", {
|
|
18783
18783
|
className: "aaravpos-barber-form-label",
|
|
18784
18784
|
htmlFor: "phone",
|
|
18785
18785
|
children: [
|
|
@@ -18798,7 +18798,7 @@ function dv() {
|
|
|
18798
18798
|
const I = pn(w), L = !!I, B = !!fn?.trim();
|
|
18799
18799
|
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
18800
|
} },
|
|
18801
|
-
render: ({ field: w }) => /* @__PURE__ */
|
|
18801
|
+
render: ({ field: w }) => /* @__PURE__ */ g("div", {
|
|
18802
18802
|
className: "aaravpos-barber-input-wrapper",
|
|
18803
18803
|
children: [/* @__PURE__ */ u(nv, {
|
|
18804
18804
|
...w,
|
|
@@ -18810,7 +18810,7 @@ function dv() {
|
|
|
18810
18810
|
onChange: (I) => Za(I ?? "", w.onChange, "phone"),
|
|
18811
18811
|
countryCallingCodeEditable: !1,
|
|
18812
18812
|
className: "aaravpos-barber-custom-input"
|
|
18813
|
-
}),
|
|
18813
|
+
}), S && z === "phone" && /* @__PURE__ */ u("div", {
|
|
18814
18814
|
className: "aaravpos-barber-loader-wrapper",
|
|
18815
18815
|
children: /* @__PURE__ */ u("div", { className: "aaravpos-barber-loader" })
|
|
18816
18816
|
})]
|
|
@@ -18820,7 +18820,7 @@ function dv() {
|
|
|
18820
18820
|
className: "aaravpos-barber-error-text",
|
|
18821
18821
|
children: qe.phone.message
|
|
18822
18822
|
}),
|
|
18823
|
-
K && /* @__PURE__ */
|
|
18823
|
+
K && /* @__PURE__ */ g("div", {
|
|
18824
18824
|
className: "aaravpos-barber-autofill-text",
|
|
18825
18825
|
children: ["Using existing customer", /* @__PURE__ */ u("span", {
|
|
18826
18826
|
onClick: dl,
|
|
@@ -18830,10 +18830,10 @@ function dv() {
|
|
|
18830
18830
|
})
|
|
18831
18831
|
]
|
|
18832
18832
|
}),
|
|
18833
|
-
/* @__PURE__ */
|
|
18833
|
+
/* @__PURE__ */ g("div", {
|
|
18834
18834
|
className: "aaravpos-barber-form-group",
|
|
18835
18835
|
children: [
|
|
18836
|
-
/* @__PURE__ */
|
|
18836
|
+
/* @__PURE__ */ g("label", {
|
|
18837
18837
|
htmlFor: "email",
|
|
18838
18838
|
className: "aaravpos-barber-form-label",
|
|
18839
18839
|
children: [
|
|
@@ -18876,10 +18876,10 @@ function dv() {
|
|
|
18876
18876
|
})
|
|
18877
18877
|
]
|
|
18878
18878
|
}),
|
|
18879
|
-
/* @__PURE__ */
|
|
18879
|
+
/* @__PURE__ */ g("div", {
|
|
18880
18880
|
className: "aaravpos-barber-form-group",
|
|
18881
18881
|
children: [
|
|
18882
|
-
/* @__PURE__ */
|
|
18882
|
+
/* @__PURE__ */ g("label", {
|
|
18883
18883
|
htmlFor: "first_name",
|
|
18884
18884
|
className: "aaravpos-barber-form-label",
|
|
18885
18885
|
children: [
|
|
@@ -18920,7 +18920,7 @@ function dv() {
|
|
|
18920
18920
|
})
|
|
18921
18921
|
]
|
|
18922
18922
|
}),
|
|
18923
|
-
/* @__PURE__ */
|
|
18923
|
+
/* @__PURE__ */ g("div", {
|
|
18924
18924
|
className: "aaravpos-barber-form-group",
|
|
18925
18925
|
children: [
|
|
18926
18926
|
/* @__PURE__ */ u("label", {
|
|
@@ -18972,7 +18972,7 @@ function dv() {
|
|
|
18972
18972
|
})
|
|
18973
18973
|
]
|
|
18974
18974
|
})] }),
|
|
18975
|
-
|
|
18975
|
+
O && /* @__PURE__ */ u(S1, {
|
|
18976
18976
|
onClose: $l,
|
|
18977
18977
|
onPay: bl,
|
|
18978
18978
|
amount: Ka
|
|
@@ -19018,16 +19018,16 @@ function uv({ icon: e, label: t, selected: r, onClick: n }) {
|
|
|
19018
19018
|
className: "aaravpos-barber-paymentcard-container",
|
|
19019
19019
|
children: /* @__PURE__ */ u("div", {
|
|
19020
19020
|
className: `${r ? "aaravpos-barber-paymentcard-card active" : "aaravpos-barber-paymentcard-card"}`,
|
|
19021
|
-
children: /* @__PURE__ */
|
|
19021
|
+
children: /* @__PURE__ */ g("div", {
|
|
19022
19022
|
className: "aaravpos-barber-paymentcard-content",
|
|
19023
19023
|
children: [/* @__PURE__ */ u("div", {
|
|
19024
19024
|
className: "aaravpos-barber-paymentcard-icon",
|
|
19025
19025
|
children: e
|
|
19026
19026
|
}), /* @__PURE__ */ u("div", {
|
|
19027
19027
|
className: "aaravpos-barber-paymentcard-info",
|
|
19028
|
-
children: /* @__PURE__ */
|
|
19028
|
+
children: /* @__PURE__ */ g("div", {
|
|
19029
19029
|
className: "aaravpos-barber-paymentcard-header",
|
|
19030
|
-
children: [/* @__PURE__ */
|
|
19030
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ u("h3", {
|
|
19031
19031
|
className: "aaravpos-barber-paymentcard-title",
|
|
19032
19032
|
children: t
|
|
19033
19033
|
}), /* @__PURE__ */ u("p", {
|
|
@@ -19045,7 +19045,7 @@ function uv({ icon: e, label: t, selected: r, onClick: n }) {
|
|
|
19045
19045
|
});
|
|
19046
19046
|
}
|
|
19047
19047
|
function fv() {
|
|
19048
|
-
const e = ze(), t =
|
|
19048
|
+
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
19049
|
de(() => {
|
|
19050
19050
|
if (!t) {
|
|
19051
19051
|
d("No appointment ID provided"), o(!1);
|
|
@@ -19072,21 +19072,21 @@ function fv() {
|
|
|
19072
19072
|
children: "Loading appointment details..."
|
|
19073
19073
|
})
|
|
19074
19074
|
});
|
|
19075
|
-
if (s || !n) return /* @__PURE__ */
|
|
19075
|
+
if (s || !n) return /* @__PURE__ */ g("div", {
|
|
19076
19076
|
className: "aaravpos-barber-error-container",
|
|
19077
19077
|
children: [/* @__PURE__ */ u("p", {
|
|
19078
19078
|
className: "aaravpos-barber-error-text",
|
|
19079
19079
|
children: s || "Appointment not found"
|
|
19080
|
-
}), /* @__PURE__ */
|
|
19080
|
+
}), /* @__PURE__ */ g("button", {
|
|
19081
19081
|
onClick: f,
|
|
19082
19082
|
className: "aaravpos-barber-book-btn",
|
|
19083
19083
|
children: [/* @__PURE__ */ u(xi, {}), "Book Another Appointment"]
|
|
19084
19084
|
})]
|
|
19085
19085
|
});
|
|
19086
|
-
const { staff: h, outlet: m, services: p } = n, v = p?.reduce((
|
|
19086
|
+
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
19087
|
return /* @__PURE__ */ u("div", {
|
|
19088
19088
|
className: "aaravpos-barber-success-wrapper",
|
|
19089
|
-
children: /* @__PURE__ */
|
|
19089
|
+
children: /* @__PURE__ */ g("div", {
|
|
19090
19090
|
className: "aaravpos-barber-success-motion",
|
|
19091
19091
|
children: [
|
|
19092
19092
|
/* @__PURE__ */ u("div", {
|
|
@@ -19097,7 +19097,7 @@ function fv() {
|
|
|
19097
19097
|
className: "aaravpos-barber-success-title",
|
|
19098
19098
|
children: "You're Booked!"
|
|
19099
19099
|
}),
|
|
19100
|
-
/* @__PURE__ */
|
|
19100
|
+
/* @__PURE__ */ g("p", {
|
|
19101
19101
|
className: "aaravpos-barber-success-description",
|
|
19102
19102
|
children: [
|
|
19103
19103
|
"Your appointment has been confirmed.",
|
|
@@ -19105,12 +19105,12 @@ function fv() {
|
|
|
19105
19105
|
"A confirmation has been sent to your email."
|
|
19106
19106
|
]
|
|
19107
19107
|
}),
|
|
19108
|
-
/* @__PURE__ */
|
|
19108
|
+
/* @__PURE__ */ g("div", {
|
|
19109
19109
|
className: "aaravpos-barber-success-content",
|
|
19110
|
-
children: [/* @__PURE__ */
|
|
19110
|
+
children: [/* @__PURE__ */ g("div", {
|
|
19111
19111
|
className: "aaravpos-barber-success-card",
|
|
19112
19112
|
children: [
|
|
19113
|
-
/* @__PURE__ */
|
|
19113
|
+
/* @__PURE__ */ g("div", {
|
|
19114
19114
|
className: "aaravpos-barber-success-row aaravpos-barber-success-row-first",
|
|
19115
19115
|
children: [/* @__PURE__ */ u("span", {
|
|
19116
19116
|
className: "aaravpos-barber-label",
|
|
@@ -19120,7 +19120,7 @@ function fv() {
|
|
|
19120
19120
|
children: m?.outletName || "-"
|
|
19121
19121
|
})]
|
|
19122
19122
|
}),
|
|
19123
|
-
/* @__PURE__ */
|
|
19123
|
+
/* @__PURE__ */ g("div", {
|
|
19124
19124
|
className: "aaravpos-barber-success-row",
|
|
19125
19125
|
children: [/* @__PURE__ */ u("span", {
|
|
19126
19126
|
className: "aaravpos-barber-label",
|
|
@@ -19130,9 +19130,9 @@ function fv() {
|
|
|
19130
19130
|
children: h ? `${h?.firstName} ${h?.lastName}` : "-"
|
|
19131
19131
|
})]
|
|
19132
19132
|
}),
|
|
19133
|
-
/* @__PURE__ */
|
|
19133
|
+
/* @__PURE__ */ g("div", {
|
|
19134
19134
|
className: "aaravpos-barber-success-row aaravpos-barber-services-header",
|
|
19135
|
-
children: [/* @__PURE__ */
|
|
19135
|
+
children: [/* @__PURE__ */ g("span", {
|
|
19136
19136
|
className: "aaravpos-barber-services-label",
|
|
19137
19137
|
children: [
|
|
19138
19138
|
"Services (",
|
|
@@ -19140,40 +19140,40 @@ function fv() {
|
|
|
19140
19140
|
")"
|
|
19141
19141
|
]
|
|
19142
19142
|
}), p.length > 5 && /* @__PURE__ */ u("button", {
|
|
19143
|
-
onClick: () => c((
|
|
19143
|
+
onClick: () => c((N) => !N),
|
|
19144
19144
|
className: "aaravpos-barber-show-btn",
|
|
19145
|
-
children: l ? "Hide" : /* @__PURE__ */
|
|
19145
|
+
children: l ? "Hide" : /* @__PURE__ */ g("span", {
|
|
19146
19146
|
className: "aaravpos-barber-show-btn-inner",
|
|
19147
19147
|
children: ["Show", /* @__PURE__ */ u(rd, { size: 16 })]
|
|
19148
19148
|
})
|
|
19149
19149
|
})]
|
|
19150
19150
|
}),
|
|
19151
|
-
/* @__PURE__ */
|
|
19151
|
+
/* @__PURE__ */ g("div", {
|
|
19152
19152
|
className: "aaravpos-barber-services-list",
|
|
19153
|
-
children: [P?.map((
|
|
19153
|
+
children: [P?.map((N) => /* @__PURE__ */ g("div", {
|
|
19154
19154
|
className: "aaravpos-barber-service-row",
|
|
19155
19155
|
children: [/* @__PURE__ */ u("span", {
|
|
19156
19156
|
className: "aaravpos-barber-service-name",
|
|
19157
|
-
children:
|
|
19158
|
-
}), /* @__PURE__ */
|
|
19157
|
+
children: N.serviceName
|
|
19158
|
+
}), /* @__PURE__ */ g("span", {
|
|
19159
19159
|
className: "aaravpos-barber-service-price",
|
|
19160
|
-
children: [/* @__PURE__ */ u(Se, { size: 14 }), Number(
|
|
19160
|
+
children: [/* @__PURE__ */ u(Se, { size: 14 }), Number(N.price).toFixed(2)]
|
|
19161
19161
|
})]
|
|
19162
|
-
},
|
|
19162
|
+
}, N.id)), !l && O > 0 && /* @__PURE__ */ g("div", {
|
|
19163
19163
|
className: "aaravpos-barber-more-services",
|
|
19164
19164
|
children: [
|
|
19165
19165
|
/* @__PURE__ */ u(id, { size: 14 }),
|
|
19166
|
-
|
|
19166
|
+
O,
|
|
19167
19167
|
" more services"
|
|
19168
19168
|
]
|
|
19169
19169
|
})]
|
|
19170
19170
|
}),
|
|
19171
|
-
/* @__PURE__ */
|
|
19171
|
+
/* @__PURE__ */ g("div", {
|
|
19172
19172
|
className: "aaravpos-barber-success-row",
|
|
19173
19173
|
children: [/* @__PURE__ */ u("span", {
|
|
19174
19174
|
className: "aaravpos-barber-label",
|
|
19175
19175
|
children: "Date & Time"
|
|
19176
|
-
}), /* @__PURE__ */
|
|
19176
|
+
}), /* @__PURE__ */ g("span", {
|
|
19177
19177
|
className: "aaravpos-barber-value",
|
|
19178
19178
|
children: [
|
|
19179
19179
|
n.appointmentDate,
|
|
@@ -19183,38 +19183,38 @@ function fv() {
|
|
|
19183
19183
|
]
|
|
19184
19184
|
})]
|
|
19185
19185
|
}),
|
|
19186
|
-
/* @__PURE__ */
|
|
19186
|
+
/* @__PURE__ */ g("div", {
|
|
19187
19187
|
className: "aaravpos-barber-success-row",
|
|
19188
19188
|
children: [/* @__PURE__ */ u("span", {
|
|
19189
19189
|
className: "aaravpos-barber-label",
|
|
19190
19190
|
children: "Tip"
|
|
19191
|
-
}), /* @__PURE__ */
|
|
19191
|
+
}), /* @__PURE__ */ g("span", {
|
|
19192
19192
|
className: "aaravpos-barber-price",
|
|
19193
|
-
children: [/* @__PURE__ */ u(Se, { size: 14 }),
|
|
19193
|
+
children: [/* @__PURE__ */ u(Se, { size: 14 }), b.toFixed(2)]
|
|
19194
19194
|
})]
|
|
19195
19195
|
}),
|
|
19196
|
-
/* @__PURE__ */
|
|
19196
|
+
/* @__PURE__ */ g("div", {
|
|
19197
19197
|
className: "aaravpos-barber-success-row",
|
|
19198
19198
|
children: [/* @__PURE__ */ u("span", {
|
|
19199
19199
|
className: "aaravpos-barber-label",
|
|
19200
19200
|
children: "Tax"
|
|
19201
|
-
}), /* @__PURE__ */
|
|
19201
|
+
}), /* @__PURE__ */ g("span", {
|
|
19202
19202
|
className: "aaravpos-barber-price",
|
|
19203
19203
|
children: [/* @__PURE__ */ u(Se, { size: 14 }), $.toFixed(2)]
|
|
19204
19204
|
})]
|
|
19205
19205
|
}),
|
|
19206
|
-
/* @__PURE__ */
|
|
19206
|
+
/* @__PURE__ */ g("div", {
|
|
19207
19207
|
className: "aaravpos-barber-total-row",
|
|
19208
19208
|
children: [/* @__PURE__ */ u("span", {
|
|
19209
19209
|
className: "aaravpos-barber-label",
|
|
19210
19210
|
children: "Total Amount"
|
|
19211
|
-
}), /* @__PURE__ */
|
|
19211
|
+
}), /* @__PURE__ */ g("span", {
|
|
19212
19212
|
className: "aaravpos-barber-total-price",
|
|
19213
|
-
children: [/* @__PURE__ */ u(Se, { size: 14 }),
|
|
19213
|
+
children: [/* @__PURE__ */ u(Se, { size: 14 }), S]
|
|
19214
19214
|
})]
|
|
19215
19215
|
})
|
|
19216
19216
|
]
|
|
19217
|
-
}), /* @__PURE__ */
|
|
19217
|
+
}), /* @__PURE__ */ g("button", {
|
|
19218
19218
|
onClick: f,
|
|
19219
19219
|
className: "aaravpos-barber-book-btn",
|
|
19220
19220
|
children: [/* @__PURE__ */ u(xi, {}), "Book Another Appointment"]
|
|
@@ -19225,7 +19225,7 @@ function fv() {
|
|
|
19225
19225
|
});
|
|
19226
19226
|
}
|
|
19227
19227
|
function pv() {
|
|
19228
|
-
const { currentStep: e } =
|
|
19228
|
+
const { currentStep: e } = J((r) => r.barber.breadcrumbs), t = {
|
|
19229
19229
|
professionals: d1,
|
|
19230
19230
|
services: p1,
|
|
19231
19231
|
time: $1,
|
|
@@ -19244,20 +19244,20 @@ function pv() {
|
|
|
19244
19244
|
});
|
|
19245
19245
|
}
|
|
19246
19246
|
function mv() {
|
|
19247
|
-
return /* @__PURE__ */
|
|
19247
|
+
return /* @__PURE__ */ g($e, { children: [/* @__PURE__ */ u(pv, {}), /* @__PURE__ */ u(Dl, {
|
|
19248
19248
|
position: "top-right",
|
|
19249
19249
|
autoClose: 3e3
|
|
19250
19250
|
})] });
|
|
19251
19251
|
}
|
|
19252
19252
|
function hv() {
|
|
19253
|
-
return /* @__PURE__ */
|
|
19253
|
+
return /* @__PURE__ */ g("div", {
|
|
19254
19254
|
className: "aaravpos-barber-professional-card skeleton-card",
|
|
19255
19255
|
children: [
|
|
19256
19256
|
/* @__PURE__ */ u("div", {
|
|
19257
19257
|
className: "",
|
|
19258
19258
|
children: /* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-image shimmer" })
|
|
19259
19259
|
}),
|
|
19260
|
-
/* @__PURE__ */
|
|
19260
|
+
/* @__PURE__ */ g("div", {
|
|
19261
19261
|
className: "aaravpos-barber-skeleton-content",
|
|
19262
19262
|
children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-name shimmer" }), /* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-role shimmer" })]
|
|
19263
19263
|
}),
|
|
@@ -19278,7 +19278,7 @@ function vv() {
|
|
|
19278
19278
|
});
|
|
19279
19279
|
}
|
|
19280
19280
|
var yv = ({ bookingCode: e }) => {
|
|
19281
|
-
const t = ze(), r =
|
|
19281
|
+
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
19282
|
try {
|
|
19283
19283
|
i(!0), s(null);
|
|
19284
19284
|
const l = await ju(e);
|