@aaravpos/appointment-booking-plugin 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -14
- package/dist/index.js +167 -159
- package/dist/styles.css +9 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { FLUSH as gl, PAUSE as bl, PERSIST as Nl, PURGE as Cl, REGISTER as Sl, R
|
|
|
5
5
|
import { Fragment as ue, jsx as l, jsxs as v } from "react/jsx-runtime";
|
|
6
6
|
import { DateTime as ge } from "luxon";
|
|
7
7
|
import { ToastContainer as Ol, toast as ie } from "react-toastify";
|
|
8
|
-
import { Controller as
|
|
8
|
+
import { Controller as ot, useForm as la } from "react-hook-form";
|
|
9
9
|
import { debounce as El } from "lodash";
|
|
10
10
|
import * as Nc from "redux";
|
|
11
11
|
var Il = Object.create, fr = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor, Al = Object.getOwnPropertyNames, xl = Object.getPrototypeOf, Dl = Object.prototype.hasOwnProperty, Ie = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Ml = (e, t) => {
|
|
@@ -145,21 +145,21 @@ var zo = /* @__PURE__ */ Symbol.for("immer-nothing"), Ya = /* @__PURE__ */ Symbo
|
|
|
145
145
|
return `'original' expects a draft, got: ${e}`;
|
|
146
146
|
}
|
|
147
147
|
] : [];
|
|
148
|
-
function
|
|
148
|
+
function Se(e, ...t) {
|
|
149
149
|
if (process.env.NODE_ENV !== "production") {
|
|
150
150
|
const r = Bl[e], n = Ke(r) ? r.apply(null, t) : r;
|
|
151
151
|
throw new Error(`[Immer] ${n}`);
|
|
152
152
|
}
|
|
153
153
|
throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
154
154
|
}
|
|
155
|
-
var _e = Object,
|
|
155
|
+
var _e = Object, pt = _e.getPrototypeOf, pr = "constructor", jr = "prototype", An = "configurable", mr = "enumerable", ar = "writable", Pt = "value", we = (e) => !!e && !!e[be];
|
|
156
156
|
function Me(e) {
|
|
157
157
|
return e ? Go(e) || Ur(e) || !!e[Ya] || !!e[pr]?.[Ya] || Vr(e) || zr(e) : !1;
|
|
158
158
|
}
|
|
159
159
|
var Ul = _e[jr][pr].toString(), Za = /* @__PURE__ */ new WeakMap();
|
|
160
160
|
function Go(e) {
|
|
161
161
|
if (!e || !ua(e)) return !1;
|
|
162
|
-
const t =
|
|
162
|
+
const t = pt(e);
|
|
163
163
|
if (t === null || t === _e[jr]) return !0;
|
|
164
164
|
const r = _e.hasOwnProperty.call(t, pr) && t[pr];
|
|
165
165
|
if (r === Object) return !0;
|
|
@@ -168,7 +168,7 @@ function Go(e) {
|
|
|
168
168
|
return n === void 0 && (n = Function.toString.call(r), Za.set(r, n)), n === Ul;
|
|
169
169
|
}
|
|
170
170
|
function Vl(e) {
|
|
171
|
-
return we(e) ||
|
|
171
|
+
return we(e) || Se(15, e), e[be].base_;
|
|
172
172
|
}
|
|
173
173
|
function Br(e, t, r = !0) {
|
|
174
174
|
Vt(e) === 0 ? (r ? Reflect.ownKeys(e) : _e.keys(e)).forEach((n) => {
|
|
@@ -209,9 +209,9 @@ function Dn(e, t) {
|
|
|
209
209
|
[Pt]: e[o]
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
return _e.create(
|
|
212
|
+
return _e.create(pt(e), n);
|
|
213
213
|
} else {
|
|
214
|
-
const n =
|
|
214
|
+
const n = pt(e);
|
|
215
215
|
if (n !== null && r) return { ...e };
|
|
216
216
|
const a = _e.create(n);
|
|
217
217
|
return _e.assign(a, e);
|
|
@@ -228,7 +228,7 @@ function Gr(e, t = !1) {
|
|
|
228
228
|
}, !1)), e;
|
|
229
229
|
}
|
|
230
230
|
function Wl() {
|
|
231
|
-
|
|
231
|
+
Se(2);
|
|
232
232
|
}
|
|
233
233
|
var Yt = { [Pt]: Wl };
|
|
234
234
|
function Wr(e) {
|
|
@@ -237,7 +237,7 @@ function Wr(e) {
|
|
|
237
237
|
var vr = "MapSet", Mn = "Patches", Ja = "ArrayMethods", Wo = {};
|
|
238
238
|
function Je(e) {
|
|
239
239
|
const t = Wo[e];
|
|
240
|
-
return t ||
|
|
240
|
+
return t || Se(0, e), t;
|
|
241
241
|
}
|
|
242
242
|
var Qa = (e) => !!Wo[e], _t, qo = () => _t, ql = (e, t) => ({
|
|
243
243
|
drafts_: [],
|
|
@@ -268,7 +268,7 @@ function ri(e, t) {
|
|
|
268
268
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
269
269
|
const r = t.drafts_[0];
|
|
270
270
|
if (e !== void 0 && e !== r) {
|
|
271
|
-
r[be].modified_ && (kn(t),
|
|
271
|
+
r[be].modified_ && (kn(t), Se(4)), Me(e) && (e = ni(t, e));
|
|
272
272
|
const { patchPlugin_: n } = t;
|
|
273
273
|
n && n.generateReplacementPatches_(r[be].base_, e, t);
|
|
274
274
|
} else e = ni(t, r);
|
|
@@ -421,13 +421,13 @@ var $r = {
|
|
|
421
421
|
};
|
|
422
422
|
},
|
|
423
423
|
defineProperty() {
|
|
424
|
-
|
|
424
|
+
Se(11);
|
|
425
425
|
},
|
|
426
426
|
getPrototypeOf(e) {
|
|
427
|
-
return
|
|
427
|
+
return pt(e.base_);
|
|
428
428
|
},
|
|
429
429
|
setPrototypeOf() {
|
|
430
|
-
|
|
430
|
+
Se(12);
|
|
431
431
|
}
|
|
432
432
|
}, Ot = {};
|
|
433
433
|
for (let e in $r) {
|
|
@@ -438,10 +438,10 @@ for (let e in $r) {
|
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
440
|
Ot.deleteProperty = function(e, t) {
|
|
441
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) &&
|
|
441
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Se(13), Ot.set.call(this, e, t, void 0);
|
|
442
442
|
};
|
|
443
443
|
Ot.set = function(e, t, r) {
|
|
444
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) &&
|
|
444
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Se(14), $r.set.call(this, e[0], t, r, e[0]);
|
|
445
445
|
};
|
|
446
446
|
function fn(e, t) {
|
|
447
447
|
const r = e[be];
|
|
@@ -453,11 +453,11 @@ function Ql(e, t, r) {
|
|
|
453
453
|
}
|
|
454
454
|
function Zo(e, t) {
|
|
455
455
|
if (!(t in e)) return;
|
|
456
|
-
let r =
|
|
456
|
+
let r = pt(e);
|
|
457
457
|
for (; r; ) {
|
|
458
458
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
459
459
|
if (n) return n;
|
|
460
|
-
r =
|
|
460
|
+
r = pt(r);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Fn(e) {
|
|
@@ -477,7 +477,7 @@ var ec = class {
|
|
|
477
477
|
return o.produce(d, (u) => r.call(this, u, ...c));
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
Ke(r) ||
|
|
480
|
+
Ke(r) || Se(6), n !== void 0 && !Ke(n) && Se(7);
|
|
481
481
|
let a;
|
|
482
482
|
if (Me(t)) {
|
|
483
483
|
const i = ti(this), o = Ln(i, t, void 0);
|
|
@@ -497,7 +497,7 @@ var ec = class {
|
|
|
497
497
|
}), n(i, o);
|
|
498
498
|
}
|
|
499
499
|
return a;
|
|
500
|
-
} else
|
|
500
|
+
} else Se(1, t);
|
|
501
501
|
}, this.produceWithPatches = (t, r) => {
|
|
502
502
|
if (Ke(t)) return (i, ...o) => this.produceWithPatches(i, (s) => t(s, ...o));
|
|
503
503
|
let n, a;
|
|
@@ -511,13 +511,13 @@ var ec = class {
|
|
|
511
511
|
}, un(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), un(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), un(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
512
512
|
}
|
|
513
513
|
createDraft(e) {
|
|
514
|
-
Me(e) ||
|
|
514
|
+
Me(e) || Se(8), we(e) && (e = Hr(e));
|
|
515
515
|
const t = ti(this), r = Ln(t, e, void 0);
|
|
516
516
|
return r[be].isManual_ = !0, Rn(t), r;
|
|
517
517
|
}
|
|
518
518
|
finishDraft(e, t) {
|
|
519
519
|
const r = e && e[be];
|
|
520
|
-
(!r || !r.isManual_) &&
|
|
520
|
+
(!r || !r.isManual_) && Se(9);
|
|
521
521
|
const { scope_: n } = r;
|
|
522
522
|
return ei(n, t), ri(void 0, n);
|
|
523
523
|
}
|
|
@@ -556,7 +556,7 @@ function Ln(e, t, r, n) {
|
|
|
556
556
|
}), a;
|
|
557
557
|
}
|
|
558
558
|
function Hr(e) {
|
|
559
|
-
return we(e) ||
|
|
559
|
+
return we(e) || Se(10, e), Xo(e);
|
|
560
560
|
}
|
|
561
561
|
function Xo(e) {
|
|
562
562
|
if (!Me(e) || Wr(e)) return e;
|
|
@@ -872,7 +872,7 @@ var gc = Qo(), bc = Qo, es = /* @__PURE__ */ Ml({
|
|
|
872
872
|
freeze: () => Gr,
|
|
873
873
|
isActionCreator: () => as,
|
|
874
874
|
isAllOf: () => Nr,
|
|
875
|
-
isAnyOf: () =>
|
|
875
|
+
isAnyOf: () => gt,
|
|
876
876
|
isAsyncThunkAction: () => Cs,
|
|
877
877
|
isDraft: () => we,
|
|
878
878
|
isFluxStandardAction: () => is,
|
|
@@ -1283,7 +1283,7 @@ function ys(e, t) {
|
|
|
1283
1283
|
return o.getInitialState = i, o;
|
|
1284
1284
|
}
|
|
1285
1285
|
var $s = (e, t) => ns(e) ? e.match(t) : e(t);
|
|
1286
|
-
function
|
|
1286
|
+
function gt(...e) {
|
|
1287
1287
|
return (t) => e.some((r) => $s(r, t));
|
|
1288
1288
|
}
|
|
1289
1289
|
function Nr(...e) {
|
|
@@ -1298,24 +1298,24 @@ function zt(e) {
|
|
|
1298
1298
|
return typeof e[0] == "function" && "pending" in e[0] && "fulfilled" in e[0] && "rejected" in e[0];
|
|
1299
1299
|
}
|
|
1300
1300
|
function gs(...e) {
|
|
1301
|
-
return e.length === 0 ? (t) => Zr(t, ["pending"]) : zt(e) ?
|
|
1301
|
+
return e.length === 0 ? (t) => Zr(t, ["pending"]) : zt(e) ? gt(...e.map((t) => t.pending)) : gs()(e[0]);
|
|
1302
1302
|
}
|
|
1303
1303
|
function Cr(...e) {
|
|
1304
|
-
return e.length === 0 ? (t) => Zr(t, ["rejected"]) : zt(e) ?
|
|
1304
|
+
return e.length === 0 ? (t) => Zr(t, ["rejected"]) : zt(e) ? gt(...e.map((t) => t.rejected)) : Cr()(e[0]);
|
|
1305
1305
|
}
|
|
1306
1306
|
function bs(...e) {
|
|
1307
1307
|
const t = (r) => r && r.meta && r.meta.rejectedWithValue;
|
|
1308
1308
|
return e.length === 0 ? Nr(Cr(...e), t) : zt(e) ? Nr(Cr(...e), t) : bs()(e[0]);
|
|
1309
1309
|
}
|
|
1310
1310
|
function Ns(...e) {
|
|
1311
|
-
return e.length === 0 ? (t) => Zr(t, ["fulfilled"]) : zt(e) ?
|
|
1311
|
+
return e.length === 0 ? (t) => Zr(t, ["fulfilled"]) : zt(e) ? gt(...e.map((t) => t.fulfilled)) : Ns()(e[0]);
|
|
1312
1312
|
}
|
|
1313
1313
|
function Cs(...e) {
|
|
1314
1314
|
return e.length === 0 ? (t) => Zr(t, [
|
|
1315
1315
|
"pending",
|
|
1316
1316
|
"fulfilled",
|
|
1317
1317
|
"rejected"
|
|
1318
|
-
]) : zt(e) ?
|
|
1318
|
+
]) : zt(e) ? gt(...e.flatMap((t) => [
|
|
1319
1319
|
t.pending,
|
|
1320
1320
|
t.rejected,
|
|
1321
1321
|
t.fulfilled
|
|
@@ -1445,7 +1445,7 @@ var Tc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Gt
|
|
|
1445
1445
|
pending: i,
|
|
1446
1446
|
rejected: o,
|
|
1447
1447
|
fulfilled: a,
|
|
1448
|
-
settled:
|
|
1448
|
+
settled: gt(o, a),
|
|
1449
1449
|
typePrefix: t
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
@@ -1684,7 +1684,7 @@ function ce(e) {
|
|
|
1684
1684
|
return Gc(r) ? (i(r), r) : Kr(r, i);
|
|
1685
1685
|
};
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function st(e, t) {
|
|
1688
1688
|
const r = t(e);
|
|
1689
1689
|
return process.env.NODE_ENV !== "production" && r === void 0 && console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", e, "The `selectId` implementation:", t.toString()), r;
|
|
1690
1690
|
}
|
|
@@ -1698,7 +1698,7 @@ function Es(e, t, r) {
|
|
|
1698
1698
|
e = We(e);
|
|
1699
1699
|
const n = or(r.ids), a = new Set(n), i = [], o = /* @__PURE__ */ new Set([]), s = [];
|
|
1700
1700
|
for (const d of e) {
|
|
1701
|
-
const c =
|
|
1701
|
+
const c = st(d, t);
|
|
1702
1702
|
a.has(c) || o.has(c) ? s.push({
|
|
1703
1703
|
id: c,
|
|
1704
1704
|
changes: d
|
|
@@ -1712,7 +1712,7 @@ function Es(e, t, r) {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
function Is(e) {
|
|
1714
1714
|
function t(y, $) {
|
|
1715
|
-
const g =
|
|
1715
|
+
const g = st(y, e);
|
|
1716
1716
|
g in $.entities || ($.ids.push(g), $.entities[g] = y);
|
|
1717
1717
|
}
|
|
1718
1718
|
function r(y, $) {
|
|
@@ -1720,7 +1720,7 @@ function Is(e) {
|
|
|
1720
1720
|
for (const g of y) t(g, $);
|
|
1721
1721
|
}
|
|
1722
1722
|
function n(y, $) {
|
|
1723
|
-
const g =
|
|
1723
|
+
const g = st(y, e);
|
|
1724
1724
|
g in $.entities || $.ids.push(g), $.entities[g] = y;
|
|
1725
1725
|
}
|
|
1726
1726
|
function a(y, $) {
|
|
@@ -1748,7 +1748,7 @@ function Is(e) {
|
|
|
1748
1748
|
function c(y, $, g) {
|
|
1749
1749
|
const b = g.entities[$.id];
|
|
1750
1750
|
if (b === void 0) return !1;
|
|
1751
|
-
const h = Object.assign({}, b, $.changes), w =
|
|
1751
|
+
const h = Object.assign({}, b, $.changes), w = st(h, e), P = w !== $.id;
|
|
1752
1752
|
return P && (y[$.id] = w, delete g.entities[$.id]), g.entities[w] = h, P;
|
|
1753
1753
|
}
|
|
1754
1754
|
function u(y, $) {
|
|
@@ -1764,7 +1764,7 @@ function Is(e) {
|
|
|
1764
1764
|
...h.changes
|
|
1765
1765
|
}
|
|
1766
1766
|
});
|
|
1767
|
-
}), y = Object.values(b), y.length > 0 && y.filter((h) => c(g, h, $)).length > 0 && ($.ids = Object.values($.entities).map((h) =>
|
|
1767
|
+
}), y = Object.values(b), y.length > 0 && y.filter((h) => c(g, h, $)).length > 0 && ($.ids = Object.values($.entities).map((h) => st(h, e)));
|
|
1768
1768
|
}
|
|
1769
1769
|
function p(y, $) {
|
|
1770
1770
|
return m([y], $);
|
|
@@ -1809,7 +1809,7 @@ function Kc(e, t) {
|
|
|
1809
1809
|
function o(g, b, h) {
|
|
1810
1810
|
g = We(g);
|
|
1811
1811
|
const w = new Set(h ?? or(b.ids)), P = /* @__PURE__ */ new Set(), N = g.filter((C) => {
|
|
1812
|
-
const I =
|
|
1812
|
+
const I = st(C, e), D = !P.has(I);
|
|
1813
1813
|
return D && P.add(I), !w.has(I) && D;
|
|
1814
1814
|
});
|
|
1815
1815
|
N.length !== 0 && $(b, N);
|
|
@@ -1949,7 +1949,7 @@ var eu = async (e, t) => {
|
|
|
1949
1949
|
}, wr = (e) => (t) => xs(Ms(e, t).then((r) => (Ze(e), r))), ks = (e) => {
|
|
1950
1950
|
const t = wr(e);
|
|
1951
1951
|
return (r) => t(new Promise((n) => setTimeout(n, r)));
|
|
1952
|
-
}, { assign:
|
|
1952
|
+
}, { assign: lt } = Object, ui = {}, qt = "listenerMiddleware", tu = (e, t) => {
|
|
1953
1953
|
const r = (n) => Ds(e, () => n.abort(e.reason));
|
|
1954
1954
|
return (n, a) => {
|
|
1955
1955
|
$a(n, "taskExecutor");
|
|
@@ -2013,7 +2013,7 @@ var eu = async (e, t) => {
|
|
|
2013
2013
|
type: t,
|
|
2014
2014
|
effect: i
|
|
2015
2015
|
};
|
|
2016
|
-
}, Fs = /* @__PURE__ */
|
|
2016
|
+
}, Fs = /* @__PURE__ */ lt((e) => {
|
|
2017
2017
|
const { type: t, predicate: r, effect: n } = Rs(e);
|
|
2018
2018
|
return {
|
|
2019
2019
|
id: Gt(),
|
|
@@ -2043,7 +2043,7 @@ var eu = async (e, t) => {
|
|
|
2043
2043
|
throw n;
|
|
2044
2044
|
}, 0);
|
|
2045
2045
|
}
|
|
2046
|
-
}, ga = /* @__PURE__ */
|
|
2046
|
+
}, ga = /* @__PURE__ */ lt(/* @__PURE__ */ xe(`${qt}/add`), { withTypes: () => ga }), Ls = /* @__PURE__ */ xe(`${qt}/removeAll`), ba = /* @__PURE__ */ lt(/* @__PURE__ */ xe(`${qt}/remove`), { withTypes: () => ba }), au = (...e) => {
|
|
2047
2047
|
console.error(`${qt}/error`, ...e);
|
|
2048
2048
|
}, iu = (e = {}) => {
|
|
2049
2049
|
const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = (m) => {
|
|
@@ -2057,16 +2057,16 @@ var eu = async (e, t) => {
|
|
|
2057
2057
|
const s = (m) => (m.unsubscribe = () => t.delete(m.id), t.set(m.id, m), (y) => {
|
|
2058
2058
|
m.unsubscribe(), y?.cancelActive && Bn(m);
|
|
2059
2059
|
}), d = (m) => s(fi(t, m) ?? Fs(m));
|
|
2060
|
-
|
|
2060
|
+
lt(d, { withTypes: () => d });
|
|
2061
2061
|
const c = (m) => {
|
|
2062
2062
|
const y = fi(t, m);
|
|
2063
2063
|
return y && (y.unsubscribe(), m.cancelActive && Bn(y)), !!y;
|
|
2064
2064
|
};
|
|
2065
|
-
|
|
2065
|
+
lt(c, { withTypes: () => c });
|
|
2066
2066
|
const u = async (m, y, $, g) => {
|
|
2067
2067
|
const b = new AbortController(), h = ru(d, b.signal), w = [];
|
|
2068
2068
|
try {
|
|
2069
|
-
m.pending.add(b), n(m), await Promise.resolve(m.effect(y,
|
|
2069
|
+
m.pending.add(b), n(m), await Promise.resolve(m.effect(y, lt({}, $, {
|
|
2070
2070
|
getOriginalState: g,
|
|
2071
2071
|
condition: (P, N) => h(P, N).then(Boolean),
|
|
2072
2072
|
take: h,
|
|
@@ -2243,7 +2243,7 @@ var mn = (e) => e ? [
|
|
|
2243
2243
|
e.currentStep = "services", e.completedSteps = ["services"];
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
}), { setIsOrder: gu, goToStep: Un, completeStep: uv, nextStep:
|
|
2246
|
+
}), { setIsOrder: gu, goToStep: Un, completeStep: uv, nextStep: Ne, prevStep: fv, clearSteps: pv } = js.actions, bu = js.reducer, mi = {
|
|
2247
2247
|
id: "",
|
|
2248
2248
|
outletName: "",
|
|
2249
2249
|
timeZone: "",
|
|
@@ -2454,7 +2454,7 @@ var mn = (e) => e ? [
|
|
|
2454
2454
|
t.loading = !1;
|
|
2455
2455
|
});
|
|
2456
2456
|
}
|
|
2457
|
-
}), { setSelectedSlots: hn, clearSlots: vv, setSelectedDate:
|
|
2457
|
+
}), { setSelectedSlots: hn, clearSlots: vv, setSelectedDate: ct, setSelectedTime: vn } = Gs.actions, Mu = Gs.reducer, dr = Xr("appointment/create", async (e, { rejectWithValue: t }) => {
|
|
2458
2458
|
try {
|
|
2459
2459
|
return await Eu(e);
|
|
2460
2460
|
} catch (r) {
|
|
@@ -2734,7 +2734,7 @@ var Ku = (e) => {
|
|
|
2734
2734
|
}]], Or = te("chevron-left", df), lf = [["path", {
|
|
2735
2735
|
d: "m9 18 6-6-6-6",
|
|
2736
2736
|
key: "mthhwq"
|
|
2737
|
-
}]],
|
|
2737
|
+
}]], tt = te("chevron-right", lf), cf = [["circle", {
|
|
2738
2738
|
cx: "12",
|
|
2739
2739
|
cy: "12",
|
|
2740
2740
|
r: "10",
|
|
@@ -2750,7 +2750,7 @@ var Ku = (e) => {
|
|
|
2750
2750
|
}], ["path", {
|
|
2751
2751
|
d: "M12 6v6h4",
|
|
2752
2752
|
key: "135r8i"
|
|
2753
|
-
}]],
|
|
2753
|
+
}]], mt = te("clock-3", uf), ff = [["rect", {
|
|
2754
2754
|
width: "20",
|
|
2755
2755
|
height: "14",
|
|
2756
2756
|
x: "2",
|
|
@@ -3153,7 +3153,7 @@ var Hf = [
|
|
|
3153
3153
|
{
|
|
3154
3154
|
label: "Time Slot",
|
|
3155
3155
|
page: "time",
|
|
3156
|
-
icon: /* @__PURE__ */ l(
|
|
3156
|
+
icon: /* @__PURE__ */ l(mt, { size: 16 })
|
|
3157
3157
|
},
|
|
3158
3158
|
{
|
|
3159
3159
|
label: "Details",
|
|
@@ -3179,7 +3179,7 @@ var Hf = [
|
|
|
3179
3179
|
{
|
|
3180
3180
|
label: "Time",
|
|
3181
3181
|
page: "time",
|
|
3182
|
-
icon: /* @__PURE__ */ l(
|
|
3182
|
+
icon: /* @__PURE__ */ l(mt, { size: 16 })
|
|
3183
3183
|
},
|
|
3184
3184
|
{
|
|
3185
3185
|
label: "Details",
|
|
@@ -3195,7 +3195,7 @@ var Hf = [
|
|
|
3195
3195
|
icon: /* @__PURE__ */ l(Vn, { size: 16 })
|
|
3196
3196
|
}
|
|
3197
3197
|
];
|
|
3198
|
-
function
|
|
3198
|
+
function rt() {
|
|
3199
3199
|
const e = ke(), { width: t } = Oa(), { isService: r } = q((f) => f.outletDetails), n = q((f) => f.outletList.outlets), { currentStep: a, completedSteps: i } = q((f) => f.breadcrumbs), o = r ? Hf : Kf, s = o.findIndex((f) => f.page === a), d = () => {
|
|
3200
3200
|
e({ type: "RESET_ALL" }), Sa.purge();
|
|
3201
3201
|
}, c = () => {
|
|
@@ -3245,7 +3245,7 @@ function tt() {
|
|
|
3245
3245
|
})]
|
|
3246
3246
|
}) });
|
|
3247
3247
|
}
|
|
3248
|
-
function
|
|
3248
|
+
function nt({ children: e, sidebar: t, renderButton: r, isConfirm: n = !1, handleSidebarOpen: a, isSidebarOpen: i = !1 }) {
|
|
3249
3249
|
const { selectedServices: o, selectedProfessional: s } = q((d) => d.service);
|
|
3250
3250
|
return /* @__PURE__ */ v("div", {
|
|
3251
3251
|
className: "aaravpos-main-layout",
|
|
@@ -3337,7 +3337,7 @@ var ed = ({ pro: e, selectedStaffServices: t = [], totalPrice: r = 0, totalDurat
|
|
|
3337
3337
|
}),
|
|
3338
3338
|
/* @__PURE__ */ v("div", {
|
|
3339
3339
|
className: "aaravpos-order-detail center",
|
|
3340
|
-
children: [/* @__PURE__ */ l(
|
|
3340
|
+
children: [/* @__PURE__ */ l(mt, { size: 13 }), /* @__PURE__ */ v("span", { children: [d.min_time || d.estimated_time, " min"] })]
|
|
3341
3341
|
}),
|
|
3342
3342
|
/* @__PURE__ */ v("p", {
|
|
3343
3343
|
className: "aaravpos-order-detail right",
|
|
@@ -3362,7 +3362,7 @@ var ed = ({ pro: e, selectedStaffServices: t = [], totalPrice: r = 0, totalDurat
|
|
|
3362
3362
|
}),
|
|
3363
3363
|
/* @__PURE__ */ v("div", {
|
|
3364
3364
|
className: "aaravpos-order-detail center",
|
|
3365
|
-
children: [/* @__PURE__ */ l(
|
|
3365
|
+
children: [/* @__PURE__ */ l(mt, { size: 13 }), /* @__PURE__ */ v("span", { children: [d.min_time || d.estimated_time, " min"] })]
|
|
3366
3366
|
}),
|
|
3367
3367
|
/* @__PURE__ */ v("p", {
|
|
3368
3368
|
className: "aaravpos-order-detail right",
|
|
@@ -3399,7 +3399,7 @@ var ed = ({ pro: e, selectedStaffServices: t = [], totalPrice: r = 0, totalDurat
|
|
|
3399
3399
|
className: "aaravpos-common-btn",
|
|
3400
3400
|
children: /* @__PURE__ */ v("span", {
|
|
3401
3401
|
className: "aaravpos-common-btn-content",
|
|
3402
|
-
children: [s ? "Choose Time" : "Choose Services", /* @__PURE__ */ l(
|
|
3402
|
+
children: [s ? "Choose Time" : "Choose Services", /* @__PURE__ */ l(tt, { size: 16 })]
|
|
3403
3403
|
})
|
|
3404
3404
|
})]
|
|
3405
3405
|
})] })]
|
|
@@ -3429,12 +3429,12 @@ function Yf() {
|
|
|
3429
3429
|
availableFrom: null
|
|
3430
3430
|
};
|
|
3431
3431
|
};
|
|
3432
|
-
return /* @__PURE__ */ v(
|
|
3432
|
+
return /* @__PURE__ */ v(nt, {
|
|
3433
3433
|
sidebar: /* @__PURE__ */ l(ed, {
|
|
3434
3434
|
pro: n,
|
|
3435
|
-
goToStep: () => t(
|
|
3435
|
+
goToStep: () => t(Ne())
|
|
3436
3436
|
}),
|
|
3437
|
-
children: [/* @__PURE__ */ l(
|
|
3437
|
+
children: [/* @__PURE__ */ l(rt, {}), /* @__PURE__ */ v("div", {
|
|
3438
3438
|
className: "aaravpos-margin-top-20",
|
|
3439
3439
|
children: [
|
|
3440
3440
|
/* @__PURE__ */ l("h1", {
|
|
@@ -3457,7 +3457,7 @@ function Yf() {
|
|
|
3457
3457
|
const { isOnLeave: c, availableFrom: u } = o(s);
|
|
3458
3458
|
return /* @__PURE__ */ v("div", {
|
|
3459
3459
|
onClick: () => {
|
|
3460
|
-
t(zs(s)), t(
|
|
3460
|
+
t(zs(s)), t(ct(null)), a && t(Ne());
|
|
3461
3461
|
},
|
|
3462
3462
|
className: `aaravpos-pro-card ${n?.id === s.id ? "active" : ""}`,
|
|
3463
3463
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -3550,16 +3550,24 @@ function Xf() {
|
|
|
3550
3550
|
availableFrom: null
|
|
3551
3551
|
};
|
|
3552
3552
|
};
|
|
3553
|
-
return /* @__PURE__ */ v(
|
|
3553
|
+
return /* @__PURE__ */ v(nt, {
|
|
3554
3554
|
sidebar: /* @__PURE__ */ l(ed, {
|
|
3555
3555
|
pro: a,
|
|
3556
3556
|
selectedStaffServices: d,
|
|
3557
3557
|
totalPrice: c,
|
|
3558
3558
|
totalDuration: u,
|
|
3559
|
-
goToStep: () => e(
|
|
3559
|
+
goToStep: () => e(Ne())
|
|
3560
3560
|
}),
|
|
3561
|
-
renderButton:
|
|
3562
|
-
|
|
3561
|
+
renderButton: a ? /* @__PURE__ */ l("button", {
|
|
3562
|
+
onClick: () => e(Ne()),
|
|
3563
|
+
disabled: !n.length,
|
|
3564
|
+
className: "aaravpos-btn",
|
|
3565
|
+
children: /* @__PURE__ */ v("span", {
|
|
3566
|
+
className: "aaravpos-btn-content",
|
|
3567
|
+
children: ["Choose Time ", /* @__PURE__ */ l(tt, { size: 16 })]
|
|
3568
|
+
})
|
|
3569
|
+
}) : null,
|
|
3570
|
+
children: [/* @__PURE__ */ l(rt, {}), /* @__PURE__ */ v("div", {
|
|
3563
3571
|
className: "aaravpos-margin-top-20",
|
|
3564
3572
|
children: [
|
|
3565
3573
|
/* @__PURE__ */ l("h1", {
|
|
@@ -3582,7 +3590,7 @@ function Xf() {
|
|
|
3582
3590
|
const { isOnLeave: b, availableFrom: h } = y($);
|
|
3583
3591
|
return /* @__PURE__ */ v("div", {
|
|
3584
3592
|
onClick: () => {
|
|
3585
|
-
e(zs($)), e(
|
|
3593
|
+
e(zs($)), e(ct(null)), p && e(Ne());
|
|
3586
3594
|
},
|
|
3587
3595
|
className: `aaravpos-pro-card ${a?.id === $.id ? "active" : ""}`,
|
|
3588
3596
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -3660,7 +3668,7 @@ function td({ selectedServices: e, totalPrice: t, goToStep: r }) {
|
|
|
3660
3668
|
}),
|
|
3661
3669
|
/* @__PURE__ */ v("div", {
|
|
3662
3670
|
className: "aaravpos-order-detail center",
|
|
3663
|
-
children: [/* @__PURE__ */ l(
|
|
3671
|
+
children: [/* @__PURE__ */ l(mt, { size: 13 }), /* @__PURE__ */ v("span", { children: [i.min_time || i.estimated_time, " min"] })]
|
|
3664
3672
|
}),
|
|
3665
3673
|
/* @__PURE__ */ v("p", {
|
|
3666
3674
|
className: "aaravpos-order-detail right",
|
|
@@ -3689,7 +3697,7 @@ function td({ selectedServices: e, totalPrice: t, goToStep: r }) {
|
|
|
3689
3697
|
className: "aaravpos-common-btn",
|
|
3690
3698
|
children: /* @__PURE__ */ v("span", {
|
|
3691
3699
|
className: "aaravpos-common-btn-content",
|
|
3692
|
-
children: [a ? "Choose Professional" : "Choose Time", /* @__PURE__ */ l(
|
|
3700
|
+
children: [a ? "Choose Professional" : "Choose Time", /* @__PURE__ */ l(tt, { size: 16 })]
|
|
3693
3701
|
})
|
|
3694
3702
|
}) })]
|
|
3695
3703
|
})
|
|
@@ -3728,22 +3736,22 @@ function Jf() {
|
|
|
3728
3736
|
if (!$?.length) return;
|
|
3729
3737
|
const N = $.find((C) => C?.categories?.some((I) => I?.services?.length > 0));
|
|
3730
3738
|
N && !s && (d(N), u(null));
|
|
3731
|
-
}, [$, s]), /* @__PURE__ */ v(
|
|
3739
|
+
}, [$, s]), /* @__PURE__ */ v(nt, {
|
|
3732
3740
|
sidebar: /* @__PURE__ */ l(td, {
|
|
3733
3741
|
selectedServices: a,
|
|
3734
3742
|
totalPrice: P,
|
|
3735
|
-
goToStep: () => e(
|
|
3743
|
+
goToStep: () => e(Ne())
|
|
3736
3744
|
}),
|
|
3737
3745
|
renderButton: a.length > 0 ? /* @__PURE__ */ l("button", {
|
|
3738
|
-
onClick: () => e(
|
|
3746
|
+
onClick: () => e(Ne()),
|
|
3739
3747
|
disabled: !a.length,
|
|
3740
3748
|
className: "aaravpos-btn",
|
|
3741
3749
|
children: /* @__PURE__ */ v("span", {
|
|
3742
3750
|
className: "aaravpos-btn-content",
|
|
3743
|
-
children: ["Choose Time ", /* @__PURE__ */ l(
|
|
3751
|
+
children: ["Choose Time ", /* @__PURE__ */ l(tt, { size: 16 })]
|
|
3744
3752
|
})
|
|
3745
3753
|
}) : null,
|
|
3746
|
-
children: [/* @__PURE__ */ l(
|
|
3754
|
+
children: [/* @__PURE__ */ l(rt, {}), /* @__PURE__ */ v("div", {
|
|
3747
3755
|
className: "aaravpos-margin-top-20",
|
|
3748
3756
|
children: [
|
|
3749
3757
|
/* @__PURE__ */ v("div", {
|
|
@@ -3932,22 +3940,22 @@ function Qf() {
|
|
|
3932
3940
|
if (!n?.length) return;
|
|
3933
3941
|
const h = n.find((w) => w?.categories?.some((P) => P?.services?.length > 0));
|
|
3934
3942
|
h && !s && (d(h), u(null));
|
|
3935
|
-
}, [n, s]), /* @__PURE__ */ v(
|
|
3943
|
+
}, [n, s]), /* @__PURE__ */ v(nt, {
|
|
3936
3944
|
sidebar: /* @__PURE__ */ l(td, {
|
|
3937
3945
|
selectedServices: a,
|
|
3938
3946
|
totalPrice: b,
|
|
3939
|
-
goToStep: () => e(
|
|
3947
|
+
goToStep: () => e(Ne())
|
|
3940
3948
|
}),
|
|
3941
3949
|
renderButton: $?.length > 0 ? /* @__PURE__ */ l("button", {
|
|
3942
|
-
onClick: () => e(
|
|
3950
|
+
onClick: () => e(Ne()),
|
|
3943
3951
|
disabled: !a.length,
|
|
3944
3952
|
className: "aaravpos-btn",
|
|
3945
3953
|
children: /* @__PURE__ */ v("span", {
|
|
3946
3954
|
className: "aaravpos-btn-content",
|
|
3947
|
-
children: ["Choose Professional ", /* @__PURE__ */ l(
|
|
3955
|
+
children: ["Choose Professional ", /* @__PURE__ */ l(tt, { size: 16 })]
|
|
3948
3956
|
})
|
|
3949
3957
|
}) : null,
|
|
3950
|
-
children: [/* @__PURE__ */ l(
|
|
3958
|
+
children: [/* @__PURE__ */ l(rt, {}), /* @__PURE__ */ v("div", {
|
|
3951
3959
|
className: "aaravpos-margin-top-20",
|
|
3952
3960
|
children: [
|
|
3953
3961
|
/* @__PURE__ */ v("div", {
|
|
@@ -4189,7 +4197,7 @@ function Ea({ buttonText: e, onButtonClick: t, showTaxesOnlyIfTime: r = !1, show
|
|
|
4189
4197
|
]), W = f || u || c || !E;
|
|
4190
4198
|
return me(() => {
|
|
4191
4199
|
const x = () => {
|
|
4192
|
-
const ee = z.current?.offsetHeight || 0, ve = J.current?.offsetHeight || 0, Fe = (ee + (window.innerWidth <= 991 ?
|
|
4200
|
+
const ee = z.current?.offsetHeight || 0, ve = J.current?.offsetHeight || 0, Fe = (ee + (window.innerWidth <= 991 ? 190 : 205) || 0) + ve;
|
|
4193
4201
|
se(window.innerHeight - Fe);
|
|
4194
4202
|
};
|
|
4195
4203
|
x();
|
|
@@ -4275,7 +4283,7 @@ function Ea({ buttonText: e, onButtonClick: t, showTaxesOnlyIfTime: r = !1, show
|
|
|
4275
4283
|
}),
|
|
4276
4284
|
/* @__PURE__ */ v("div", {
|
|
4277
4285
|
className: "aaravpos-order-detail center",
|
|
4278
|
-
children: [/* @__PURE__ */ l(
|
|
4286
|
+
children: [/* @__PURE__ */ l(mt, { size: 13 }), /* @__PURE__ */ v("span", { children: [x.min_time || x.estimated_time, " min"] })]
|
|
4279
4287
|
}),
|
|
4280
4288
|
/* @__PURE__ */ v("p", {
|
|
4281
4289
|
className: "aaravpos-order-detail right",
|
|
@@ -4465,7 +4473,7 @@ function n1({ isOpen: e, onClose: t }) {
|
|
|
4465
4473
|
dateObj: $,
|
|
4466
4474
|
selectedProfessional: a,
|
|
4467
4475
|
outletTimeZone: i || "UTC"
|
|
4468
|
-
}) || (r(
|
|
4476
|
+
}) || (r(ct({
|
|
4469
4477
|
month: p,
|
|
4470
4478
|
day: m,
|
|
4471
4479
|
year: c.year
|
|
@@ -4505,7 +4513,7 @@ function n1({ isOpen: e, onClose: t }) {
|
|
|
4505
4513
|
disabled: s === o.length - 1,
|
|
4506
4514
|
onClick: () => d((p) => Math.min(p + 1, o.length - 1)),
|
|
4507
4515
|
className: "aaravpos-date-nav-btn",
|
|
4508
|
-
children: /* @__PURE__ */ l(
|
|
4516
|
+
children: /* @__PURE__ */ l(tt, {})
|
|
4509
4517
|
})
|
|
4510
4518
|
]
|
|
4511
4519
|
}), /* @__PURE__ */ v("div", {
|
|
@@ -4630,7 +4638,7 @@ function i1() {
|
|
|
4630
4638
|
g((S) => Math.max(0, Math.min(N.length - 11, S + A * 4)));
|
|
4631
4639
|
};
|
|
4632
4640
|
me(() => {
|
|
4633
|
-
c || e(
|
|
4641
|
+
c || e(ct({
|
|
4634
4642
|
day: w.day,
|
|
4635
4643
|
month: w.month,
|
|
4636
4644
|
year: w.year
|
|
@@ -4653,7 +4661,7 @@ function i1() {
|
|
|
4653
4661
|
ie.warning("Staff is unavailable on this date");
|
|
4654
4662
|
return;
|
|
4655
4663
|
}
|
|
4656
|
-
e(
|
|
4664
|
+
e(ct({
|
|
4657
4665
|
day: A.day,
|
|
4658
4666
|
month: A.month,
|
|
4659
4667
|
year: A.year
|
|
@@ -4726,7 +4734,7 @@ function i1() {
|
|
|
4726
4734
|
break;
|
|
4727
4735
|
}
|
|
4728
4736
|
}
|
|
4729
|
-
A && e(
|
|
4737
|
+
A && e(ct({
|
|
4730
4738
|
day: A.day,
|
|
4731
4739
|
month: A.month,
|
|
4732
4740
|
year: A.year
|
|
@@ -4748,7 +4756,7 @@ function i1() {
|
|
|
4748
4756
|
R,
|
|
4749
4757
|
Y,
|
|
4750
4758
|
Q
|
|
4751
|
-
]), /* @__PURE__ */ v(
|
|
4759
|
+
]), /* @__PURE__ */ v(nt, {
|
|
4752
4760
|
sidebar: /* @__PURE__ */ l("div", {
|
|
4753
4761
|
className: "aaravpos-aside",
|
|
4754
4762
|
children: /* @__PURE__ */ l(Ea, {
|
|
@@ -4758,7 +4766,7 @@ function i1() {
|
|
|
4758
4766
|
ie.warning("Please select a time slot");
|
|
4759
4767
|
return;
|
|
4760
4768
|
}
|
|
4761
|
-
e(
|
|
4769
|
+
e(Ne());
|
|
4762
4770
|
},
|
|
4763
4771
|
showTaxesOnlyIfTime: !0
|
|
4764
4772
|
})
|
|
@@ -4769,7 +4777,7 @@ function i1() {
|
|
|
4769
4777
|
ie.warning("Please select a time slot");
|
|
4770
4778
|
return;
|
|
4771
4779
|
}
|
|
4772
|
-
e(
|
|
4780
|
+
e(Ne());
|
|
4773
4781
|
},
|
|
4774
4782
|
disabled: !u || !d.length,
|
|
4775
4783
|
className: "aaravpos-btn",
|
|
@@ -4779,7 +4787,7 @@ function i1() {
|
|
|
4779
4787
|
})
|
|
4780
4788
|
}) : null,
|
|
4781
4789
|
children: [
|
|
4782
|
-
/* @__PURE__ */ l(
|
|
4790
|
+
/* @__PURE__ */ l(rt, {}),
|
|
4783
4791
|
/* @__PURE__ */ l("div", {
|
|
4784
4792
|
style: { marginTop: 15 },
|
|
4785
4793
|
children: /* @__PURE__ */ l("h1", {
|
|
@@ -4831,7 +4839,7 @@ function i1() {
|
|
|
4831
4839
|
}),
|
|
4832
4840
|
/* @__PURE__ */ l(Oi, {
|
|
4833
4841
|
onClick: () => J(1),
|
|
4834
|
-
children: /* @__PURE__ */ l(
|
|
4842
|
+
children: /* @__PURE__ */ l(tt, { size: 20 })
|
|
4835
4843
|
})
|
|
4836
4844
|
]
|
|
4837
4845
|
}), /* @__PURE__ */ v("button", {
|
|
@@ -5015,7 +5023,7 @@ function l1({ onClose: e, onPay: t, amount: r }) {
|
|
|
5015
5023
|
children: "*"
|
|
5016
5024
|
})]
|
|
5017
5025
|
}),
|
|
5018
|
-
/* @__PURE__ */ l(
|
|
5026
|
+
/* @__PURE__ */ l(ot, {
|
|
5019
5027
|
name: "name",
|
|
5020
5028
|
control: a,
|
|
5021
5029
|
rules: {
|
|
@@ -5054,7 +5062,7 @@ function l1({ onClose: e, onPay: t, amount: r }) {
|
|
|
5054
5062
|
children: "*"
|
|
5055
5063
|
})]
|
|
5056
5064
|
}),
|
|
5057
|
-
/* @__PURE__ */ l(
|
|
5065
|
+
/* @__PURE__ */ l(ot, {
|
|
5058
5066
|
name: "number",
|
|
5059
5067
|
control: a,
|
|
5060
5068
|
rules: {
|
|
@@ -5090,7 +5098,7 @@ function l1({ onClose: e, onPay: t, amount: r }) {
|
|
|
5090
5098
|
children: "*"
|
|
5091
5099
|
})]
|
|
5092
5100
|
}),
|
|
5093
|
-
/* @__PURE__ */ l(
|
|
5101
|
+
/* @__PURE__ */ l(ot, {
|
|
5094
5102
|
name: "expiry",
|
|
5095
5103
|
control: a,
|
|
5096
5104
|
rules: {
|
|
@@ -5129,7 +5137,7 @@ function l1({ onClose: e, onPay: t, amount: r }) {
|
|
|
5129
5137
|
children: "*"
|
|
5130
5138
|
})]
|
|
5131
5139
|
}),
|
|
5132
|
-
/* @__PURE__ */ l(
|
|
5140
|
+
/* @__PURE__ */ l(ot, {
|
|
5133
5141
|
name: "cvv",
|
|
5134
5142
|
control: a,
|
|
5135
5143
|
rules: {
|
|
@@ -5206,27 +5214,27 @@ function u1(e, t) {
|
|
|
5206
5214
|
}
|
|
5207
5215
|
return a;
|
|
5208
5216
|
}
|
|
5209
|
-
function
|
|
5217
|
+
function ht(e) {
|
|
5210
5218
|
"@babel/helpers - typeof";
|
|
5211
|
-
return
|
|
5219
|
+
return ht = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
5212
5220
|
return typeof t;
|
|
5213
5221
|
} : function(t) {
|
|
5214
5222
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5215
|
-
},
|
|
5223
|
+
}, ht(e);
|
|
5216
5224
|
}
|
|
5217
5225
|
function f1(e, t) {
|
|
5218
|
-
if (
|
|
5226
|
+
if (ht(e) != "object" || !e) return e;
|
|
5219
5227
|
var r = e[Symbol.toPrimitive];
|
|
5220
5228
|
if (r !== void 0) {
|
|
5221
5229
|
var n = r.call(e, t || "default");
|
|
5222
|
-
if (
|
|
5230
|
+
if (ht(n) != "object") return n;
|
|
5223
5231
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5224
5232
|
}
|
|
5225
5233
|
return (t === "string" ? String : Number)(e);
|
|
5226
5234
|
}
|
|
5227
5235
|
function p1(e) {
|
|
5228
5236
|
var t = f1(e, "string");
|
|
5229
|
-
return
|
|
5237
|
+
return ht(t) == "symbol" ? t : t + "";
|
|
5230
5238
|
}
|
|
5231
5239
|
function Ei(e, t) {
|
|
5232
5240
|
for (var r = 0; r < t.length; r++) {
|
|
@@ -5273,7 +5281,7 @@ function y1(e) {
|
|
|
5273
5281
|
return e;
|
|
5274
5282
|
}
|
|
5275
5283
|
function $1(e, t) {
|
|
5276
|
-
if (t && (
|
|
5284
|
+
if (t && (ht(t) == "object" || typeof t == "function")) return t;
|
|
5277
5285
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
5278
5286
|
return y1(e);
|
|
5279
5287
|
}
|
|
@@ -6298,7 +6306,7 @@ var A1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
|
|
|
6298
6306
|
})
|
|
6299
6307
|
]
|
|
6300
6308
|
}),
|
|
6301
|
-
r === "DRAW_SIGNATURE" && /* @__PURE__ */ l(
|
|
6309
|
+
r === "DRAW_SIGNATURE" && /* @__PURE__ */ l(ot, {
|
|
6302
6310
|
control: d,
|
|
6303
6311
|
name: "signatureDataUrl",
|
|
6304
6312
|
rules: { validate: () => i.current && !i.current.isEmpty() ? !0 : "Signature required" },
|
|
@@ -6607,7 +6615,7 @@ function k1() {
|
|
|
6607
6615
|
y === "booking" && za > 0 && await il(Z, ae, $e), z === "card" ? (D({
|
|
6608
6616
|
appointmentId: Z,
|
|
6609
6617
|
customerId: ae
|
|
6610
|
-
}), C(!0)) : (e(yn(String(Z))), e(
|
|
6618
|
+
}), C(!0)) : (e(yn(String(Z))), e(Ne()));
|
|
6611
6619
|
} catch (T) {
|
|
6612
6620
|
const M = T?.payload?.message || T?.data?.message || T?.message || "Staff not working on this day";
|
|
6613
6621
|
ie.error(M);
|
|
@@ -6666,14 +6674,14 @@ function k1() {
|
|
|
6666
6674
|
ie.warning(Te instanceof Error ? Te.message : String(Te ?? "Payment done, but finalize failed"));
|
|
6667
6675
|
}
|
|
6668
6676
|
} else ie.warning("Payment pending");
|
|
6669
|
-
return C(!1), e(yn(String(I?.appointmentId))), e(
|
|
6677
|
+
return C(!1), e(yn(String(I?.appointmentId))), e(Ne()), !0;
|
|
6670
6678
|
} catch (M) {
|
|
6671
|
-
return ie.warning(M instanceof Error ? M.message : "Payment failed, but appointment is booked"), C(!1), e(yn(String(I?.appointmentId))), e(
|
|
6679
|
+
return ie.warning(M instanceof Error ? M.message : "Payment failed, but appointment is booked"), C(!1), e(yn(String(I?.appointmentId))), e(Ne()), !0;
|
|
6672
6680
|
} finally {
|
|
6673
6681
|
P(!1);
|
|
6674
6682
|
}
|
|
6675
6683
|
}, cl = () => C(!1), ul = () => !p || !m?.firstName || !m?.email && !m?.phone;
|
|
6676
|
-
return /* @__PURE__ */ v(
|
|
6684
|
+
return /* @__PURE__ */ v(nt, {
|
|
6677
6685
|
isSidebarOpen: B,
|
|
6678
6686
|
handleSidebarOpen: () => U((T) => !T),
|
|
6679
6687
|
sidebar: /* @__PURE__ */ l("div", {
|
|
@@ -6695,7 +6703,7 @@ function k1() {
|
|
|
6695
6703
|
}),
|
|
6696
6704
|
isConfirm: !0,
|
|
6697
6705
|
children: [
|
|
6698
|
-
/* @__PURE__ */ v(ue, { children: [/* @__PURE__ */ l(
|
|
6706
|
+
/* @__PURE__ */ v(ue, { children: [/* @__PURE__ */ l(rt, {}), /* @__PURE__ */ v("div", {
|
|
6699
6707
|
className: "aaravpos-margin-top-20",
|
|
6700
6708
|
children: [
|
|
6701
6709
|
/* @__PURE__ */ l("h1", {
|
|
@@ -14530,7 +14538,7 @@ function Mi(e, t) {
|
|
|
14530
14538
|
}
|
|
14531
14539
|
return r;
|
|
14532
14540
|
}
|
|
14533
|
-
function
|
|
14541
|
+
function at(e) {
|
|
14534
14542
|
for (var t = 1; t < arguments.length; t++) {
|
|
14535
14543
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
14536
14544
|
t % 2 ? Mi(Object(r), !0).forEach(function(n) {
|
|
@@ -14585,12 +14593,12 @@ function s0(e) {
|
|
|
14585
14593
|
n,
|
|
14586
14594
|
d,
|
|
14587
14595
|
c
|
|
14588
|
-
]), $ =
|
|
14596
|
+
]), $ = at(at({}, u), {}, {
|
|
14589
14597
|
ref: p,
|
|
14590
14598
|
onChange: m,
|
|
14591
14599
|
onKeyDown: y
|
|
14592
14600
|
});
|
|
14593
|
-
return s ?
|
|
14601
|
+
return s ? at(at({}, $), {}, { value: n(ki(a) ? "" : a).text }) : at(at({}, $), {}, { defaultValue: n(ki(i) ? "" : i).text });
|
|
14594
14602
|
}
|
|
14595
14603
|
function ki(e) {
|
|
14596
14604
|
return e == null;
|
|
@@ -14696,13 +14704,13 @@ var m0 = {}.constructor;
|
|
|
14696
14704
|
function Xe(e) {
|
|
14697
14705
|
return e != null && e.constructor === m0;
|
|
14698
14706
|
}
|
|
14699
|
-
function
|
|
14707
|
+
function vt(e) {
|
|
14700
14708
|
"@babel/helpers - typeof";
|
|
14701
|
-
return
|
|
14709
|
+
return vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
14702
14710
|
return typeof t;
|
|
14703
14711
|
} : function(t) {
|
|
14704
14712
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
14705
|
-
},
|
|
14713
|
+
}, vt(e);
|
|
14706
14714
|
}
|
|
14707
14715
|
function en(e, t) {
|
|
14708
14716
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -14718,14 +14726,14 @@ function tn(e, t, r) {
|
|
|
14718
14726
|
}
|
|
14719
14727
|
function h0(e) {
|
|
14720
14728
|
var t = v0(e, "string");
|
|
14721
|
-
return
|
|
14729
|
+
return vt(t) == "symbol" ? t : t + "";
|
|
14722
14730
|
}
|
|
14723
14731
|
function v0(e, t) {
|
|
14724
|
-
if (
|
|
14732
|
+
if (vt(e) != "object" || !e) return e;
|
|
14725
14733
|
var r = e[Symbol.toPrimitive];
|
|
14726
14734
|
if (r !== void 0) {
|
|
14727
14735
|
var n = r.call(e, t || "default");
|
|
14728
|
-
if (
|
|
14736
|
+
if (vt(n) != "object") return n;
|
|
14729
14737
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14730
14738
|
}
|
|
14731
14739
|
return (t === "string" ? String : Number)(e);
|
|
@@ -15157,7 +15165,7 @@ function dd(e) {
|
|
|
15157
15165
|
if (!Xe(e) || !Xe(e.countries)) throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Xe(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + S0(e) + ": " + e, "."));
|
|
15158
15166
|
}
|
|
15159
15167
|
var S0 = function(t) {
|
|
15160
|
-
return
|
|
15168
|
+
return vt(t);
|
|
15161
15169
|
};
|
|
15162
15170
|
function He(e, t) {
|
|
15163
15171
|
if (t = new he(t), t.hasCountry(e)) return t.selectNumberingPlan(e).countryCallingCode();
|
|
@@ -15316,7 +15324,7 @@ function D0(e, t, r) {
|
|
|
15316
15324
|
var n = new he(r);
|
|
15317
15325
|
return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
15318
15326
|
}
|
|
15319
|
-
var
|
|
15327
|
+
var Ce = "0-90-9٠-٩۰-۹", M0 = "-‐-―−ー-", k0 = "//", R0 = "..", F0 = " ", L0 = "()()[]\\[\\]", j0 = "~⁓∼~", De = "".concat(M0).concat(k0).concat(R0).concat(F0).concat(L0).concat(j0), nn = "++", B0 = new RegExp("([" + Ce + "])");
|
|
15320
15328
|
function pd(e, t, r, n) {
|
|
15321
15329
|
if (t) {
|
|
15322
15330
|
var a = new he(n);
|
|
@@ -15496,14 +15504,14 @@ function H0(e, t, r) {
|
|
|
15496
15504
|
if (n.selectNumberingPlan(e, t), n.defaultIDDPrefix()) return n.defaultIDDPrefix();
|
|
15497
15505
|
if (q0.test(n.IDDPrefix())) return n.IDDPrefix();
|
|
15498
15506
|
}
|
|
15499
|
-
var K0 = ";ext=",
|
|
15500
|
-
return "([".concat(
|
|
15507
|
+
var K0 = ";ext=", it = function(t) {
|
|
15508
|
+
return "([".concat(Ce, "]{1,").concat(t, "})");
|
|
15501
15509
|
};
|
|
15502
15510
|
function gd(e) {
|
|
15503
|
-
var t = "20", r = "15", n = "9", a = "6", i = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", c = "(?:[xx##~~]|int|int)", u = "[- ]+", f = "[ \\t]*", p = "(?:,{2}|;)", m = K0 +
|
|
15511
|
+
var t = "20", r = "15", n = "9", a = "6", i = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", c = "(?:[xx##~~]|int|int)", u = "[- ]+", f = "[ \\t]*", p = "(?:,{2}|;)", m = K0 + it(t), y = i + d + o + it(t) + s, $ = i + c + o + it(n) + s, g = u + it(a) + "#", b = f + p + o + it(r) + s, h = f + "(?:,)+" + o + it(n) + s;
|
|
15504
15512
|
return m + "|" + y + "|" + $ + "|" + g + "|" + b + "|" + h;
|
|
15505
15513
|
}
|
|
15506
|
-
var Y0 = "[" +
|
|
15514
|
+
var Y0 = "[" + Ce + "]{2}", Z0 = "[" + nn + "]{0,1}(?:[" + De + "]*[" + Ce + "]){3,}[" + De + Ce + "]*", X0 = new RegExp("^[" + nn + "]{0,1}(?:[" + De + "]*[" + Ce + "]){1,2}$", "i"), J0 = Z0 + "(?:" + gd() + ")?", Q0 = new RegExp("^" + Y0 + "$|^" + J0 + "$", "i");
|
|
15507
15515
|
function ep(e) {
|
|
15508
15516
|
return e.length >= 2 && Q0.test(e);
|
|
15509
15517
|
}
|
|
@@ -15751,13 +15759,13 @@ function mp(e, t) {
|
|
|
15751
15759
|
};
|
|
15752
15760
|
}
|
|
15753
15761
|
var hp = /^\+\d+$/;
|
|
15754
|
-
function
|
|
15762
|
+
function yt(e) {
|
|
15755
15763
|
"@babel/helpers - typeof";
|
|
15756
|
-
return
|
|
15764
|
+
return yt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
15757
15765
|
return typeof t;
|
|
15758
15766
|
} : function(t) {
|
|
15759
15767
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
15760
|
-
},
|
|
15768
|
+
}, yt(e);
|
|
15761
15769
|
}
|
|
15762
15770
|
function Yi(e, t) {
|
|
15763
15771
|
for (var r = 0; r < t.length; r++) {
|
|
@@ -15770,14 +15778,14 @@ function vp(e, t, r) {
|
|
|
15770
15778
|
}
|
|
15771
15779
|
function yp(e) {
|
|
15772
15780
|
var t = $p(e, "string");
|
|
15773
|
-
return
|
|
15781
|
+
return yt(t) == "symbol" ? t : t + "";
|
|
15774
15782
|
}
|
|
15775
15783
|
function $p(e, t) {
|
|
15776
|
-
if (
|
|
15784
|
+
if (yt(e) != "object" || !e) return e;
|
|
15777
15785
|
var r = e[Symbol.toPrimitive];
|
|
15778
15786
|
if (r !== void 0) {
|
|
15779
15787
|
var n = r.call(e, t || "default");
|
|
15780
|
-
if (
|
|
15788
|
+
if (yt(n) != "object") return n;
|
|
15781
15789
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15782
15790
|
}
|
|
15783
15791
|
return (t === "string" ? String : Number)(e);
|
|
@@ -15789,7 +15797,7 @@ function bp(e, t, r) {
|
|
|
15789
15797
|
return t = Tt(t), Np(e, Ma() ? Reflect.construct(t, r || [], Tt(e).constructor) : t.apply(e, r));
|
|
15790
15798
|
}
|
|
15791
15799
|
function Np(e, t) {
|
|
15792
|
-
if (t && (
|
|
15800
|
+
if (t && (yt(t) == "object" || typeof t == "function")) return t;
|
|
15793
15801
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
15794
15802
|
return Cp(e);
|
|
15795
15803
|
}
|
|
@@ -16002,7 +16010,7 @@ function Sd(e, t, r) {
|
|
|
16002
16010
|
}
|
|
16003
16011
|
return Cd(e);
|
|
16004
16012
|
}
|
|
16005
|
-
var Qi = "([" +
|
|
16013
|
+
var Qi = "([" + Ce + "]|[\\-\\.\\(\\)]?)", xp = "^\\+" + Qi + "*[" + Ce + "]" + Qi + "*$", Dp = new RegExp(xp, "g"), Jn = Ce, Mp = "[" + Jn + "]+((\\-)*[" + Jn + "])*", kp = "[a-zA-Z]+((\\-)*[" + Jn + "])*", Rp = "^(" + Mp + "\\.)*" + kp + "\\.?$", Fp = new RegExp(Rp, "g"), eo = "tel:", Qn = ";phone-context=", Lp = ";isub=";
|
|
16006
16014
|
function jp(e) {
|
|
16007
16015
|
var t = e.indexOf(Qn);
|
|
16008
16016
|
if (t < 0) return null;
|
|
@@ -16029,7 +16037,7 @@ function Up(e, t) {
|
|
|
16029
16037
|
var d = a.indexOf(Lp);
|
|
16030
16038
|
if (d > 0 && (a = a.substring(0, d)), a !== "") return a;
|
|
16031
16039
|
}
|
|
16032
|
-
var Vp = 250, zp = new RegExp("[" + nn +
|
|
16040
|
+
var Vp = 250, zp = new RegExp("[" + nn + Ce + "]"), Gp = new RegExp("[^" + Ce + "#]+$"), Wp = !1;
|
|
16033
16041
|
function qp(e, t, r) {
|
|
16034
16042
|
if (t = t || {}, r = new he(r), t.defaultCountry && !r.hasCountry(t.defaultCountry))
|
|
16035
16043
|
throw t.v2 ? new Be("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
|
|
@@ -17223,7 +17231,7 @@ function lm(e, t) {
|
|
|
17223
17231
|
}
|
|
17224
17232
|
return (t === "string" ? String : Number)(e);
|
|
17225
17233
|
}
|
|
17226
|
-
var cm = "[" + De +
|
|
17234
|
+
var cm = "[" + De + Ce + "]+", um = new RegExp("^" + cm + "$", "i"), fm = "(?:[" + nn + "][" + De + Ce + "]*|[" + De + Ce + "]+)", pm = new RegExp("[^" + De + Ce + "]+.*$"), mm = /[^\d\[\]]/, hm = /* @__PURE__ */ (function() {
|
|
17227
17235
|
function e(t) {
|
|
17228
17236
|
var r = t.defaultCountry, n = t.defaultCallingCode, a = t.metadata, i = t.onNationalSignificantNumberChange;
|
|
17229
17237
|
om(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = a, this.onNationalSignificantNumberChange = i;
|
|
@@ -18355,7 +18363,7 @@ function Ve(e, t) {
|
|
|
18355
18363
|
}
|
|
18356
18364
|
function yh(e) {
|
|
18357
18365
|
var t = e.value, r = e.phoneNumber, n = e.defaultCountry, a = e.getAnyCountry, i = e.countries, o = e.required, s = e.metadata, d;
|
|
18358
|
-
return r && r.country ? d = r.country : n && (!t ||
|
|
18366
|
+
return r && r.country ? d = r.country : n && (!t || ut(t, n, s)) && (d = n), i && i.indexOf(d) < 0 && (d = void 0), !d && o && i && i.length > 0 && (d = a()), d;
|
|
18359
18367
|
}
|
|
18360
18368
|
function $h(e) {
|
|
18361
18369
|
var t = e.countries, r = e.countryNames, n = e.addInternationalOption, a = e.compareStringsLocales, i = e.compareStrings;
|
|
@@ -18393,10 +18401,10 @@ function bh(e, t) {
|
|
|
18393
18401
|
}
|
|
18394
18402
|
}
|
|
18395
18403
|
} else if (e[0] !== "+")
|
|
18396
|
-
return
|
|
18404
|
+
return dt(e, r, a) || "";
|
|
18397
18405
|
return e;
|
|
18398
18406
|
}
|
|
18399
|
-
function
|
|
18407
|
+
function dt(e, t, r) {
|
|
18400
18408
|
if (e) {
|
|
18401
18409
|
if (e[0] === "+") {
|
|
18402
18410
|
if (e === "+") return;
|
|
@@ -18426,9 +18434,9 @@ function Ud(e, t) {
|
|
|
18426
18434
|
var d = wh(e, s);
|
|
18427
18435
|
if (d) return !n || n.indexOf(d) >= 0 ? d : void 0;
|
|
18428
18436
|
if (r) {
|
|
18429
|
-
if (
|
|
18430
|
-
if (i &&
|
|
18431
|
-
if (a &&
|
|
18437
|
+
if (ut(e, r, s)) {
|
|
18438
|
+
if (i && ut(e, i, s)) return i;
|
|
18439
|
+
if (a && ut(e, a, s)) return a;
|
|
18432
18440
|
if (!o) return;
|
|
18433
18441
|
} else if (!o) return;
|
|
18434
18442
|
}
|
|
@@ -18440,7 +18448,7 @@ function Sh(e, t) {
|
|
|
18440
18448
|
var m = Ve(n, p);
|
|
18441
18449
|
if (e.indexOf(m) !== 0) {
|
|
18442
18450
|
var y;
|
|
18443
|
-
return e && e[0] !== "+" ? (e = m + e, y =
|
|
18451
|
+
return e && e[0] !== "+" ? (e = m + e, y = dt(e, n, p)) : e = m, {
|
|
18444
18452
|
phoneDigits: e,
|
|
18445
18453
|
value: y,
|
|
18446
18454
|
country: n
|
|
@@ -18449,14 +18457,14 @@ function Sh(e, t) {
|
|
|
18449
18457
|
}
|
|
18450
18458
|
c === !1 && n && e && e[0] === "+" && (e = Do(e, n, p)), e && n && u && (e = Nh(e, n, p)), e && e[0] !== "+" && (!n || c) && (e = "+" + e), !e && r && r[0] === "+" && (c ? n = void 0 : n = a), e === "+" && r && r[0] === "+" && r.length > 1 && (n = void 0);
|
|
18451
18459
|
var $;
|
|
18452
|
-
return e && (e[0] === "+" && (e === "+" || n && Ve(n, p).indexOf(e) === 0) ? $ = void 0 : $ =
|
|
18460
|
+
return e && (e[0] === "+" && (e === "+" || n && Ve(n, p).indexOf(e) === 0) ? $ = void 0 : $ = dt(e, n, p)), $ && (n = Ud($, {
|
|
18453
18461
|
country: n,
|
|
18454
18462
|
countries: d,
|
|
18455
18463
|
defaultCountry: a,
|
|
18456
18464
|
latestCountrySelectedByUser: i,
|
|
18457
18465
|
required: !1,
|
|
18458
18466
|
metadata: p
|
|
18459
|
-
}), c === !1 && n && e && e[0] === "+" && (e = Do(e, n, p), $ =
|
|
18467
|
+
}), c === !1 && n && e && e[0] === "+" && (e = Do(e, n, p), $ = dt(e, n, p))), !n && o && (n = a || s()), {
|
|
18460
18468
|
phoneDigits: e,
|
|
18461
18469
|
country: n,
|
|
18462
18470
|
value: $
|
|
@@ -18496,7 +18504,7 @@ function Vd(e, t, r) {
|
|
|
18496
18504
|
var a = n.getNumber();
|
|
18497
18505
|
return a && a.nationalNumber;
|
|
18498
18506
|
}
|
|
18499
|
-
function
|
|
18507
|
+
function ut(e, t, r) {
|
|
18500
18508
|
for (var n = Ve(t, r), a = 0; a < e.length && a < n.length; ) {
|
|
18501
18509
|
if (e[a] !== n[a]) return !1;
|
|
18502
18510
|
a++;
|
|
@@ -18604,7 +18612,7 @@ function Th(e, t, r) {
|
|
|
18604
18612
|
}), N || i && o.indexOf(Ve(i, n)) === 0 && (N = i));
|
|
18605
18613
|
}
|
|
18606
18614
|
var I;
|
|
18607
|
-
return o ? g && ((N ? g === N :
|
|
18615
|
+
return o ? g && ((N ? g === N : ut(o, g, n)) ? N || (N = g) : I = { latestCountrySelectedByUser: void 0 }) : I = {
|
|
18608
18616
|
latestCountrySelectedByUser: void 0,
|
|
18609
18617
|
hasUserSelectedACountry: void 0
|
|
18610
18618
|
}, er(er({}, I), {}, {
|
|
@@ -18656,13 +18664,13 @@ var Ah = [
|
|
|
18656
18664
|
"international",
|
|
18657
18665
|
"locales"
|
|
18658
18666
|
];
|
|
18659
|
-
function
|
|
18667
|
+
function $t(e) {
|
|
18660
18668
|
"@babel/helpers - typeof";
|
|
18661
|
-
return
|
|
18669
|
+
return $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
18662
18670
|
return typeof t;
|
|
18663
18671
|
} : function(t) {
|
|
18664
18672
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
18665
|
-
},
|
|
18673
|
+
}, $t(e);
|
|
18666
18674
|
}
|
|
18667
18675
|
function Ro(e, t) {
|
|
18668
18676
|
var r = Object.keys(e);
|
|
@@ -18685,14 +18693,14 @@ function Gd(e) {
|
|
|
18685
18693
|
}
|
|
18686
18694
|
return e;
|
|
18687
18695
|
}
|
|
18688
|
-
function
|
|
18689
|
-
return
|
|
18696
|
+
function ft() {
|
|
18697
|
+
return ft = Object.assign ? Object.assign.bind() : function(e) {
|
|
18690
18698
|
for (var t = 1; t < arguments.length; t++) {
|
|
18691
18699
|
var r = arguments[t];
|
|
18692
18700
|
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
18693
18701
|
}
|
|
18694
18702
|
return e;
|
|
18695
|
-
},
|
|
18703
|
+
}, ft.apply(this, arguments);
|
|
18696
18704
|
}
|
|
18697
18705
|
function xh(e, t) {
|
|
18698
18706
|
if (e == null) return {};
|
|
@@ -18727,7 +18735,7 @@ function Rh(e, t, r) {
|
|
|
18727
18735
|
return t = Fr(t), Fh(e, Wd() ? Reflect.construct(t, r || [], Fr(e).constructor) : t.apply(e, r));
|
|
18728
18736
|
}
|
|
18729
18737
|
function Fh(e, t) {
|
|
18730
|
-
if (t && (
|
|
18738
|
+
if (t && ($t(t) === "object" || typeof t == "function")) return t;
|
|
18731
18739
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
18732
18740
|
return Lh(e);
|
|
18733
18741
|
}
|
|
@@ -18773,14 +18781,14 @@ function Ae(e, t, r) {
|
|
|
18773
18781
|
}
|
|
18774
18782
|
function qd(e) {
|
|
18775
18783
|
var t = Bh(e, "string");
|
|
18776
|
-
return
|
|
18784
|
+
return $t(t) == "symbol" ? t : t + "";
|
|
18777
18785
|
}
|
|
18778
18786
|
function Bh(e, t) {
|
|
18779
|
-
if (
|
|
18787
|
+
if ($t(e) != "object" || !e) return e;
|
|
18780
18788
|
var r = e[Symbol.toPrimitive];
|
|
18781
18789
|
if (r !== void 0) {
|
|
18782
18790
|
var n = r.call(e, t || "default");
|
|
18783
|
-
if (
|
|
18791
|
+
if ($t(n) != "object") return n;
|
|
18784
18792
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
18785
18793
|
}
|
|
18786
18794
|
return (t === "string" ? String : Number)(e);
|
|
@@ -18799,7 +18807,7 @@ var Uh = /* @__PURE__ */ (function(e) {
|
|
|
18799
18807
|
newCountry: g,
|
|
18800
18808
|
metadata: w,
|
|
18801
18809
|
useNationalFormat: !h
|
|
18802
|
-
}), J =
|
|
18810
|
+
}), J = dt(z, g, w);
|
|
18803
18811
|
N && n.inputRef.current.focus(), n.setState({
|
|
18804
18812
|
country: g,
|
|
18805
18813
|
latestCountrySelectedByUser: g,
|
|
@@ -18829,7 +18837,7 @@ var Uh = /* @__PURE__ */ (function(e) {
|
|
|
18829
18837
|
value: ye,
|
|
18830
18838
|
country: K
|
|
18831
18839
|
};
|
|
18832
|
-
R && ye && !
|
|
18840
|
+
R && ye && !ut(ye, R, D) && (ne.latestCountrySelectedByUser = void 0), I === !1 && !ye && Q === n.state.phoneDigits && (ne.forceRerender = {}), n.setState(ne, function() {
|
|
18833
18841
|
return w(ye);
|
|
18834
18842
|
});
|
|
18835
18843
|
}), Ae(n, "_onFocus", function() {
|
|
@@ -18950,14 +18958,14 @@ var Uh = /* @__PURE__ */ (function(e) {
|
|
|
18950
18958
|
var h = n.metadata, w = n.international;
|
|
18951
18959
|
n.locales;
|
|
18952
18960
|
var P = xh(n, Ah), N = this.state, C = N.country, I = N.countries, D = N.phoneDigits, z = N.isFocused, J = p ? Fm : Vm, oe = this.getCountrySelectOptions({ countries: I });
|
|
18953
|
-
return /* @__PURE__ */ L.createElement($,
|
|
18961
|
+
return /* @__PURE__ */ L.createElement($, ft({
|
|
18954
18962
|
style: d,
|
|
18955
18963
|
className: (0, Mr.default)(c, "PhoneInput", {
|
|
18956
18964
|
"PhoneInput--focus": z,
|
|
18957
18965
|
"PhoneInput--disabled": i,
|
|
18958
18966
|
"PhoneInput--readOnly": o
|
|
18959
18967
|
})
|
|
18960
|
-
}, g), /* @__PURE__ */ L.createElement(m,
|
|
18968
|
+
}, g), /* @__PURE__ */ L.createElement(m, ft({
|
|
18961
18969
|
name: a ? "".concat(a, "Country") : void 0,
|
|
18962
18970
|
"aria-label": b.country
|
|
18963
18971
|
}, y, {
|
|
@@ -18969,7 +18977,7 @@ var Uh = /* @__PURE__ */ (function(e) {
|
|
|
18969
18977
|
disabled: i || y && y.disabled,
|
|
18970
18978
|
readOnly: o || y && y.readOnly,
|
|
18971
18979
|
iconComponent: this.CountryIcon
|
|
18972
|
-
})), /* @__PURE__ */ L.createElement(J,
|
|
18980
|
+
})), /* @__PURE__ */ L.createElement(J, ft({
|
|
18973
18981
|
ref: this.setInputRef,
|
|
18974
18982
|
type: "tel",
|
|
18975
18983
|
autoComplete: s
|
|
@@ -18998,7 +19006,7 @@ var Uh = /* @__PURE__ */ (function(e) {
|
|
|
18998
19006
|
}
|
|
18999
19007
|
}]);
|
|
19000
19008
|
})(L.PureComponent), Hd = /* @__PURE__ */ L.forwardRef(function(e, t) {
|
|
19001
|
-
return /* @__PURE__ */ L.createElement(Uh,
|
|
19009
|
+
return /* @__PURE__ */ L.createElement(Uh, ft({}, Vh(e), { inputRef: t }));
|
|
19002
19010
|
});
|
|
19003
19011
|
Hd.propTypes = {
|
|
19004
19012
|
value: _.default.string,
|
|
@@ -19411,7 +19419,7 @@ function Xh() {
|
|
|
19411
19419
|
e(Ni({
|
|
19412
19420
|
...R,
|
|
19413
19421
|
phone: R?.phone ?? ""
|
|
19414
|
-
})), e(
|
|
19422
|
+
})), e(Ne());
|
|
19415
19423
|
}, J = Ue(async ({ value: R, type: Y }) => {
|
|
19416
19424
|
if (!R) return;
|
|
19417
19425
|
let Q = "";
|
|
@@ -19467,7 +19475,7 @@ function Xh() {
|
|
|
19467
19475
|
type: Q
|
|
19468
19476
|
});
|
|
19469
19477
|
};
|
|
19470
|
-
return /* @__PURE__ */ l(
|
|
19478
|
+
return /* @__PURE__ */ l(nt, {
|
|
19471
19479
|
sidebar: /* @__PURE__ */ l("div", {
|
|
19472
19480
|
className: "aaravpos-aside",
|
|
19473
19481
|
children: /* @__PURE__ */ l(Ea, {
|
|
@@ -19484,7 +19492,7 @@ function Xh() {
|
|
|
19484
19492
|
children: P ? "Submitting..." : "Confirm Details"
|
|
19485
19493
|
})
|
|
19486
19494
|
}),
|
|
19487
|
-
children: /* @__PURE__ */ v("form", { children: [/* @__PURE__ */ l(
|
|
19495
|
+
children: /* @__PURE__ */ v("form", { children: [/* @__PURE__ */ l(rt, {}), /* @__PURE__ */ v("div", {
|
|
19488
19496
|
className: "arravpos-details-section aaravpos-margin-top-20",
|
|
19489
19497
|
children: [/* @__PURE__ */ l("h1", {
|
|
19490
19498
|
className: "aaravpos-page-title aaravpos-margin-bottom-20",
|
|
@@ -19505,7 +19513,7 @@ function Xh() {
|
|
|
19505
19513
|
children: "*"
|
|
19506
19514
|
})]
|
|
19507
19515
|
}),
|
|
19508
|
-
/* @__PURE__ */ l(
|
|
19516
|
+
/* @__PURE__ */ l(ot, {
|
|
19509
19517
|
control: m,
|
|
19510
19518
|
name: "phone",
|
|
19511
19519
|
rules: { validate: (R) => {
|