@aaravpos/appointment-booking-plugin 7.0.3 → 7.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +17 -17
- package/dist/index.js +322 -322
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import V, { Component as Zc, PureComponent as Jc, createContext as Ks, createElement as ya, forwardRef as Ys, useCallback as Ue, useContext as Xs, useEffect as se, useMemo as re, useRef as Ae, useState as z } from "react";
|
|
2
2
|
import { Provider as Qc, useDispatch as Re, useSelector as H } from "react-redux";
|
|
3
|
-
import { applyMiddleware as eu, combineReducers as Zs, compose as
|
|
3
|
+
import { applyMiddleware as eu, combineReducers as Zs, compose as Yr, createStore as tu, isAction as Cn, isPlainObject as Js } from "redux";
|
|
4
4
|
import { FLUSH as ru, PAUSE as nu, PERSIST as au, PURGE as iu, REGISTER as ou, REHYDRATE as su, persistReducer as lu, persistStore as du } from "redux-persist";
|
|
5
5
|
import { Fragment as fe, jsx as l, jsxs as p } from "react/jsx-runtime";
|
|
6
6
|
import { DateTime as Ne } from "luxon";
|
|
7
7
|
import { ToastContainer as cu, toast as ue } from "react-toastify";
|
|
8
|
-
import { Controller as ot, useForm as
|
|
8
|
+
import { Controller as ot, useForm as Sn } from "react-hook-form";
|
|
9
9
|
import { debounce as Qs } from "lodash";
|
|
10
10
|
import * as rf from "redux";
|
|
11
|
-
var uu = Object.create,
|
|
11
|
+
var uu = Object.create, Xr = Object.defineProperty, fu = Object.getOwnPropertyDescriptor, pu = Object.getOwnPropertyNames, hu = Object.getPrototypeOf, mu = Object.prototype.hasOwnProperty, Le = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), el = (e, t) => {
|
|
12
12
|
let r = {};
|
|
13
13
|
for (var n in e)
|
|
14
|
-
|
|
14
|
+
Xr(r, n, {
|
|
15
15
|
get: e[n],
|
|
16
16
|
enumerable: !0
|
|
17
17
|
});
|
|
18
|
-
return t ||
|
|
18
|
+
return t || Xr(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
19
19
|
}, ga = (e, t, r, n) => {
|
|
20
20
|
if (t && typeof t == "object" || typeof t == "function")
|
|
21
21
|
for (var a = pu(t), i = 0, o = a.length, s; i < o; i++)
|
|
22
|
-
s = a[i], !mu.call(e, s) && s !== r &&
|
|
22
|
+
s = a[i], !mu.call(e, s) && s !== r && Xr(e, s, {
|
|
23
23
|
get: ((d) => t[d]).bind(null, s),
|
|
24
24
|
enumerable: !(n = fu(t, s)) || n.enumerable
|
|
25
25
|
});
|
|
26
26
|
return e;
|
|
27
|
-
}, vu = (e, t, r) => (ga(e, t, "default"), r && ga(r, t, "default")), oi = (e, t, r) => (r = e != null ? uu(hu(e)) : {}, ga(t || !e || !e.__esModule ?
|
|
27
|
+
}, vu = (e, t, r) => (ga(e, t, "default"), r && ga(r, t, "default")), oi = (e, t, r) => (r = e != null ? uu(hu(e)) : {}, ga(t || !e || !e.__esModule ? Xr(r, "default", {
|
|
28
28
|
value: e,
|
|
29
29
|
enumerable: !0
|
|
30
30
|
}) : r, e));
|
|
31
|
-
function
|
|
32
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
31
|
+
function Ir(e) {
|
|
32
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ir = function(r) {
|
|
33
33
|
return typeof r;
|
|
34
|
-
} :
|
|
34
|
+
} : Ir = function(r) {
|
|
35
35
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
36
|
-
},
|
|
36
|
+
}, Ir(e);
|
|
37
37
|
}
|
|
38
38
|
function yu(e, t) {
|
|
39
39
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -48,14 +48,14 @@ function gu(e, t, r) {
|
|
|
48
48
|
return t && ro(e.prototype, t), r && ro(e, r), e;
|
|
49
49
|
}
|
|
50
50
|
function $u(e, t) {
|
|
51
|
-
return t && (
|
|
51
|
+
return t && (Ir(t) === "object" || typeof t == "function") ? t : xr(e);
|
|
52
52
|
}
|
|
53
53
|
function $a(e) {
|
|
54
54
|
return $a = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
|
|
55
55
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
56
56
|
}, $a(e);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function xr(e) {
|
|
59
59
|
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
60
60
|
return e;
|
|
61
61
|
}
|
|
@@ -72,7 +72,7 @@ function ba(e, t) {
|
|
|
72
72
|
return n.__proto__ = a, n;
|
|
73
73
|
}, ba(e, t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Rr(e, t, r) {
|
|
76
76
|
return t in e ? Object.defineProperty(e, t, {
|
|
77
77
|
value: r,
|
|
78
78
|
enumerable: !0,
|
|
@@ -86,7 +86,7 @@ var tl = /* @__PURE__ */ (function(e) {
|
|
|
86
86
|
var r, n;
|
|
87
87
|
yu(this, t);
|
|
88
88
|
for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++) i[o] = arguments[o];
|
|
89
|
-
return n = $u(this, (r = $a(t)).call.apply(r, [this].concat(i))), xr(
|
|
89
|
+
return n = $u(this, (r = $a(t)).call.apply(r, [this].concat(i))), Rr(xr(n), "state", { bootstrapped: !1 }), Rr(xr(n), "_unsubscribe", void 0), Rr(xr(n), "handlePersistorState", function() {
|
|
90
90
|
n.props.persistor.getState().bootstrapped && (n.props.onBeforeLift ? Promise.resolve(n.props.onBeforeLift()).finally(function() {
|
|
91
91
|
return n.setState({ bootstrapped: !0 });
|
|
92
92
|
}) : n.setState({ bootstrapped: !0 }), n._unsubscribe && n._unsubscribe());
|
|
@@ -113,7 +113,7 @@ var tl = /* @__PURE__ */ (function(e) {
|
|
|
113
113
|
}
|
|
114
114
|
]), t;
|
|
115
115
|
})(Jc);
|
|
116
|
-
|
|
116
|
+
Rr(tl, "defaultProps", {
|
|
117
117
|
children: null,
|
|
118
118
|
loading: null
|
|
119
119
|
});
|
|
@@ -152,16 +152,16 @@ function Oe(e, ...t) {
|
|
|
152
152
|
}
|
|
153
153
|
throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
154
154
|
}
|
|
155
|
-
var xe = Object, Pt = xe.getPrototypeOf,
|
|
155
|
+
var xe = Object, Pt = xe.getPrototypeOf, Zr = "constructor", _n = "prototype", Na = "configurable", Jr = "enumerable", Dr = "writable", qt = "value", ke = (e) => !!e && !!e[we];
|
|
156
156
|
function We(e) {
|
|
157
|
-
return e ? nl(e) ||
|
|
157
|
+
return e ? nl(e) || En(e) || !!e[no] || !!e[Zr]?.[no] || Pn(e) || On(e) : !1;
|
|
158
158
|
}
|
|
159
|
-
var Cu = xe[
|
|
159
|
+
var Cu = xe[_n][Zr].toString(), ao = /* @__PURE__ */ new WeakMap();
|
|
160
160
|
function nl(e) {
|
|
161
161
|
if (!e || !si(e)) return !1;
|
|
162
162
|
const t = Pt(e);
|
|
163
|
-
if (t === null || t === xe[
|
|
164
|
-
const r = xe.hasOwnProperty.call(t,
|
|
163
|
+
if (t === null || t === xe[_n]) return !0;
|
|
164
|
+
const r = xe.hasOwnProperty.call(t, Zr) && t[Zr];
|
|
165
165
|
if (r === Object) return !0;
|
|
166
166
|
if (!it(r)) return !1;
|
|
167
167
|
let n = ao.get(r);
|
|
@@ -170,31 +170,31 @@ function nl(e) {
|
|
|
170
170
|
function Su(e) {
|
|
171
171
|
return ke(e) || Oe(15, e), e[we].base_;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function wn(e, t, r = !0) {
|
|
174
174
|
dr(e) === 0 ? (r ? Reflect.ownKeys(e) : xe.keys(e)).forEach((n) => {
|
|
175
175
|
t(n, e[n], e);
|
|
176
176
|
}) : e.forEach((n, a) => t(a, n, e));
|
|
177
177
|
}
|
|
178
178
|
function dr(e) {
|
|
179
179
|
const t = e[we];
|
|
180
|
-
return t ? t.type_ :
|
|
180
|
+
return t ? t.type_ : En(e) ? 1 : Pn(e) ? 2 : On(e) ? 3 : 0;
|
|
181
181
|
}
|
|
182
|
-
var io = (e, t, r = dr(e)) => r === 2 ? e.has(t) : xe[
|
|
182
|
+
var io = (e, t, r = dr(e)) => r === 2 ? e.has(t) : xe[_n].hasOwnProperty.call(e, t), Ca = (e, t, r = dr(e)) => r === 2 ? e.get(t) : e[t], Qr = (e, t, r, n = dr(e)) => {
|
|
183
183
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
184
184
|
};
|
|
185
185
|
function _u(e, t) {
|
|
186
186
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var En = Array.isArray, Pn = (e) => e instanceof Map, On = (e) => e instanceof Set, si = (e) => typeof e == "object", it = (e) => typeof e == "function", ea = (e) => typeof e == "boolean";
|
|
189
189
|
function wu(e) {
|
|
190
190
|
const t = +e;
|
|
191
191
|
return Number.isInteger(t) && String(t) === e;
|
|
192
192
|
}
|
|
193
193
|
var He = (e) => e.copy_ || e.base_, li = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
194
194
|
function Sa(e, t) {
|
|
195
|
-
if (
|
|
196
|
-
if (
|
|
197
|
-
if (
|
|
195
|
+
if (Pn(e)) return new Map(e);
|
|
196
|
+
if (On(e)) return new Set(e);
|
|
197
|
+
if (En(e)) return Array[_n].slice.call(e);
|
|
198
198
|
const r = nl(e);
|
|
199
199
|
if (t === !0 || t === "class_only" && !r) {
|
|
200
200
|
const n = xe.getOwnPropertyDescriptors(e);
|
|
@@ -202,10 +202,10 @@ function Sa(e, t) {
|
|
|
202
202
|
let a = Reflect.ownKeys(n);
|
|
203
203
|
for (let i = 0; i < a.length; i++) {
|
|
204
204
|
const o = a[i], s = n[o];
|
|
205
|
-
s[
|
|
205
|
+
s[Dr] === !1 && (s[Dr] = !0, s[Na] = !0), (s.get || s.set) && (n[o] = {
|
|
206
206
|
[Na]: !0,
|
|
207
|
-
[
|
|
208
|
-
[
|
|
207
|
+
[Dr]: !0,
|
|
208
|
+
[Jr]: s[Jr],
|
|
209
209
|
[qt]: e[o]
|
|
210
210
|
});
|
|
211
211
|
}
|
|
@@ -217,24 +217,24 @@ function Sa(e, t) {
|
|
|
217
217
|
return xe.assign(a, e);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
return
|
|
222
|
-
set:
|
|
223
|
-
add:
|
|
224
|
-
clear:
|
|
225
|
-
delete:
|
|
226
|
-
}), xe.freeze(e), t &&
|
|
227
|
-
|
|
220
|
+
function An(e, t = !1) {
|
|
221
|
+
return Tn(e) || ke(e) || !We(e) || (dr(e) > 1 && xe.defineProperties(e, {
|
|
222
|
+
set: gr,
|
|
223
|
+
add: gr,
|
|
224
|
+
clear: gr,
|
|
225
|
+
delete: gr
|
|
226
|
+
}), xe.freeze(e), t && wn(e, (r, n) => {
|
|
227
|
+
An(n, !0);
|
|
228
228
|
}, !1)), e;
|
|
229
229
|
}
|
|
230
230
|
function Eu() {
|
|
231
231
|
Oe(2);
|
|
232
232
|
}
|
|
233
|
-
var
|
|
234
|
-
function
|
|
233
|
+
var gr = { [qt]: Eu };
|
|
234
|
+
function Tn(e) {
|
|
235
235
|
return e === null || !si(e) ? !0 : xe.isFrozen(e);
|
|
236
236
|
}
|
|
237
|
-
var
|
|
237
|
+
var en = "MapSet", _a = "Patches", oo = "ArrayMethods", al = {};
|
|
238
238
|
function ct(e) {
|
|
239
239
|
const t = al[e];
|
|
240
240
|
return t || Oe(0, e), t;
|
|
@@ -247,7 +247,7 @@ var so = (e) => !!al[e], Gt, il = () => Gt, Pu = (e, t) => ({
|
|
|
247
247
|
unfinalizedDrafts_: 0,
|
|
248
248
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
249
249
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
250
|
-
mapSetPlugin_: so(
|
|
250
|
+
mapSetPlugin_: so(en) ? ct(en) : void 0,
|
|
251
251
|
arrayMethodsPlugin_: so(oo) ? ct(oo) : void 0
|
|
252
252
|
});
|
|
253
253
|
function lo(e, t) {
|
|
@@ -275,10 +275,10 @@ function uo(e, t) {
|
|
|
275
275
|
return Au(t, e, !0), wa(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== rl ? e : void 0;
|
|
276
276
|
}
|
|
277
277
|
function fo(e, t) {
|
|
278
|
-
if (
|
|
278
|
+
if (Tn(t)) return t;
|
|
279
279
|
const r = t[we];
|
|
280
|
-
if (!r) return
|
|
281
|
-
if (!
|
|
280
|
+
if (!r) return tn(t, e.handledSet_, e);
|
|
281
|
+
if (!kn(r, e)) return t;
|
|
282
282
|
if (!r.modified_) return r.base_;
|
|
283
283
|
if (!r.finalized_) {
|
|
284
284
|
const { callbacks_: n } = r;
|
|
@@ -288,21 +288,21 @@ function fo(e, t) {
|
|
|
288
288
|
return r.copy_;
|
|
289
289
|
}
|
|
290
290
|
function Au(e, t, r = !1) {
|
|
291
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
291
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && An(t, r);
|
|
292
292
|
}
|
|
293
293
|
function ol(e) {
|
|
294
294
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
295
295
|
}
|
|
296
|
-
var
|
|
296
|
+
var kn = (e, t) => e.scope_ === t, Tu = [];
|
|
297
297
|
function sl(e, t, r, n) {
|
|
298
298
|
const a = He(e), i = e.type_;
|
|
299
299
|
if (n !== void 0 && Ca(a, n, i) === t) {
|
|
300
|
-
|
|
300
|
+
Qr(a, n, r, i);
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
303
|
if (!e.draftLocations_) {
|
|
304
304
|
const s = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
305
|
-
|
|
305
|
+
wn(a, (d, c) => {
|
|
306
306
|
if (ke(c)) {
|
|
307
307
|
const u = s.get(c) || [];
|
|
308
308
|
u.push(d), s.set(c, u);
|
|
@@ -310,12 +310,12 @@ function sl(e, t, r, n) {
|
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
const o = e.draftLocations_.get(t) ?? Tu;
|
|
313
|
-
for (const s of o)
|
|
313
|
+
for (const s of o) Qr(a, s, r, i);
|
|
314
314
|
}
|
|
315
315
|
function ku(e, t, r) {
|
|
316
316
|
e.callbacks_.push(function(a) {
|
|
317
317
|
const i = t;
|
|
318
|
-
if (!i || !
|
|
318
|
+
if (!i || !kn(i, a)) return;
|
|
319
319
|
a.mapSetPlugin_?.fixSetContents(i);
|
|
320
320
|
const o = li(i);
|
|
321
321
|
sl(e, i.draft_ ?? i, o, r), ll(i, a);
|
|
@@ -335,24 +335,24 @@ function Iu(e, t, r) {
|
|
|
335
335
|
const { scope_: n } = e;
|
|
336
336
|
if (ke(r)) {
|
|
337
337
|
const a = r[we];
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
kn(a, n) && a.callbacks_.push(function() {
|
|
339
|
+
Mr(e), sl(e, r, li(a), t);
|
|
340
340
|
});
|
|
341
341
|
} else We(r) && e.callbacks_.push(function() {
|
|
342
342
|
const i = He(e);
|
|
343
|
-
e.type_ === 3 ? i.has(r) &&
|
|
343
|
+
e.type_ === 3 ? i.has(r) && tn(r, n.handledSet_, n) : Ca(i, t, e.type_) === r && n.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && tn(Ca(e.copy_, t, e.type_), n.handledSet_, n);
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
return !r.immer_.autoFreeze_ && r.unfinalizedDrafts_ < 1 || ke(e) || t.has(e) || !We(e) ||
|
|
346
|
+
function tn(e, t, r) {
|
|
347
|
+
return !r.immer_.autoFreeze_ && r.unfinalizedDrafts_ < 1 || ke(e) || t.has(e) || !We(e) || Tn(e) || (t.add(e), wn(e, (n, a) => {
|
|
348
348
|
if (ke(a)) {
|
|
349
349
|
const i = a[we];
|
|
350
|
-
|
|
351
|
-
} else We(a) &&
|
|
350
|
+
kn(i, r) && (Qr(e, n, li(i), e.type_), ol(i));
|
|
351
|
+
} else We(a) && tn(a, t, r);
|
|
352
352
|
})), e;
|
|
353
353
|
}
|
|
354
354
|
function xu(e, t) {
|
|
355
|
-
const r =
|
|
355
|
+
const r = En(e), n = {
|
|
356
356
|
type_: r ? 1 : 0,
|
|
357
357
|
scope_: t ? t.scope_ : il(),
|
|
358
358
|
modified_: !1,
|
|
@@ -366,12 +366,12 @@ function xu(e, t) {
|
|
|
366
366
|
isManual_: !1,
|
|
367
367
|
callbacks_: void 0
|
|
368
368
|
};
|
|
369
|
-
let a = n, i =
|
|
369
|
+
let a = n, i = rn;
|
|
370
370
|
r && (a = [n], i = Ht);
|
|
371
371
|
const { revoke: o, proxy: s } = Proxy.revocable(a, i);
|
|
372
372
|
return n.draft_ = s, n.revoke_ = o, [s, n];
|
|
373
373
|
}
|
|
374
|
-
var
|
|
374
|
+
var rn = {
|
|
375
375
|
get(e, t) {
|
|
376
376
|
if (t === we) return e;
|
|
377
377
|
let r = e.scope_.arrayMethodsPlugin_;
|
|
@@ -383,7 +383,7 @@ var tn = {
|
|
|
383
383
|
const i = a[t];
|
|
384
384
|
if (e.finalized_ || !We(i) || n && e.operationMethod && r?.isMutatingArrayMethod(e.operationMethod) && wu(t)) return i;
|
|
385
385
|
if (i === ta(e.base_, t)) {
|
|
386
|
-
|
|
386
|
+
Mr(e);
|
|
387
387
|
const o = e.type_ === 1 ? +t : t, s = Oa(e.scope_, i, e, o);
|
|
388
388
|
return e.copy_[o] = s;
|
|
389
389
|
}
|
|
@@ -404,19 +404,19 @@ var tn = {
|
|
|
404
404
|
if (i && i.base_ === r)
|
|
405
405
|
return e.copy_[t] = r, e.assigned_.set(t, !1), !0;
|
|
406
406
|
if (_u(r, a) && (r !== void 0 || io(e.base_, t, e.type_))) return !0;
|
|
407
|
-
|
|
407
|
+
Mr(e), Pa(e);
|
|
408
408
|
}
|
|
409
409
|
return e.copy_[t] === r && (r !== void 0 || t in e.copy_) || Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_.set(t, !0), Iu(e, t, r)), !0;
|
|
410
410
|
},
|
|
411
411
|
deleteProperty(e, t) {
|
|
412
|
-
return
|
|
412
|
+
return Mr(e), ta(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Pa(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
413
413
|
},
|
|
414
414
|
getOwnPropertyDescriptor(e, t) {
|
|
415
415
|
const r = He(e), n = Reflect.getOwnPropertyDescriptor(r, t);
|
|
416
416
|
return n && {
|
|
417
|
-
[
|
|
417
|
+
[Dr]: !0,
|
|
418
418
|
[Na]: e.type_ !== 1 || t !== "length",
|
|
419
|
-
[
|
|
419
|
+
[Jr]: n[Jr],
|
|
420
420
|
[qt]: r[t]
|
|
421
421
|
};
|
|
422
422
|
},
|
|
@@ -430,8 +430,8 @@ var tn = {
|
|
|
430
430
|
Oe(12);
|
|
431
431
|
}
|
|
432
432
|
}, Ht = {};
|
|
433
|
-
for (let e in
|
|
434
|
-
let t =
|
|
433
|
+
for (let e in rn) {
|
|
434
|
+
let t = rn[e];
|
|
435
435
|
Ht[e] = function() {
|
|
436
436
|
const r = arguments;
|
|
437
437
|
return r[0] = r[0][0], t.apply(this, r);
|
|
@@ -441,7 +441,7 @@ Ht.deleteProperty = function(e, t) {
|
|
|
441
441
|
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Oe(13), Ht.set.call(this, e, t, void 0);
|
|
442
442
|
};
|
|
443
443
|
Ht.set = function(e, t, r) {
|
|
444
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Oe(14),
|
|
444
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Oe(14), rn.set.call(this, e[0], t, r, e[0]);
|
|
445
445
|
};
|
|
446
446
|
function ta(e, t) {
|
|
447
447
|
const r = e[we];
|
|
@@ -463,7 +463,7 @@ function dl(e, t) {
|
|
|
463
463
|
function Pa(e) {
|
|
464
464
|
e.modified_ || (e.modified_ = !0, e.parent_ && Pa(e.parent_));
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Mr(e) {
|
|
467
467
|
e.copy_ || (e.assigned_ = /* @__PURE__ */ new Map(), e.copy_ = Sa(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
468
468
|
}
|
|
469
469
|
var Du = class {
|
|
@@ -489,7 +489,7 @@ var Du = class {
|
|
|
489
489
|
}
|
|
490
490
|
return lo(i, n), uo(a, i);
|
|
491
491
|
} else if (!t || !si(t)) {
|
|
492
|
-
if (a = r(t), a === void 0 && (a = t), a === rl && (a = void 0), this.autoFreeze_ &&
|
|
492
|
+
if (a = r(t), a === void 0 && (a = t), a === rl && (a = void 0), this.autoFreeze_ && An(a, !0), n) {
|
|
493
493
|
const i = [], o = [];
|
|
494
494
|
ct(_a).generateReplacementPatches_(t, a, {
|
|
495
495
|
patches_: i,
|
|
@@ -511,7 +511,7 @@ var Du = class {
|
|
|
511
511
|
}, ea(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), ea(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), ea(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
512
512
|
}
|
|
513
513
|
createDraft(e) {
|
|
514
|
-
We(e) || Oe(8), ke(e) && (e =
|
|
514
|
+
We(e) || Oe(8), ke(e) && (e = In(e));
|
|
515
515
|
const t = co(this), r = Oa(t, e, void 0);
|
|
516
516
|
return r[we].isManual_ = !0, Ea(t), r;
|
|
517
517
|
}
|
|
@@ -548,29 +548,29 @@ var Du = class {
|
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
550
|
function Oa(e, t, r, n) {
|
|
551
|
-
const [a, i] =
|
|
551
|
+
const [a, i] = Pn(t) ? ct(en).proxyMap_(t, r) : On(t) ? ct(en).proxySet_(t, r) : xu(t, r);
|
|
552
552
|
return (r?.scope_ ?? il()).drafts_.push(a), i.callbacks_ = r?.callbacks_ ?? [], i.key_ = n, r && n !== void 0 ? ku(r, i, n) : i.callbacks_.push(function(s) {
|
|
553
553
|
s.mapSetPlugin_?.fixSetContents(i);
|
|
554
554
|
const { patchPlugin_: d } = s;
|
|
555
555
|
i.modified_ && d && d.generatePatches_(i, [], s);
|
|
556
556
|
}), a;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function In(e) {
|
|
559
559
|
return ke(e) || Oe(10, e), cl(e);
|
|
560
560
|
}
|
|
561
561
|
function cl(e) {
|
|
562
|
-
if (!We(e) ||
|
|
562
|
+
if (!We(e) || Tn(e)) return e;
|
|
563
563
|
const t = e[we];
|
|
564
564
|
let r, n = !0;
|
|
565
565
|
if (t) {
|
|
566
566
|
if (!t.modified_) return t.base_;
|
|
567
567
|
t.finalized_ = !0, r = Sa(e, t.scope_.immer_.useStrictShallowCopy_), n = t.scope_.immer_.shouldUseStrictIteration();
|
|
568
568
|
} else r = Sa(e, !0);
|
|
569
|
-
return
|
|
570
|
-
|
|
569
|
+
return wn(r, (a, i) => {
|
|
570
|
+
Qr(r, a, cl(i));
|
|
571
571
|
}, n), t && (t.finalized_ = !1), r;
|
|
572
572
|
}
|
|
573
|
-
var Mu = new Du(),
|
|
573
|
+
var Mu = new Du(), xn = Mu.produce, Lu = (e, t, r) => {
|
|
574
574
|
if (t.length === 1 && t[0] === r) {
|
|
575
575
|
let n = !1;
|
|
576
576
|
try {
|
|
@@ -613,7 +613,7 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
613
613
|
}, ju = {
|
|
614
614
|
inputStabilityCheck: "once",
|
|
615
615
|
identityFunctionCheck: "once"
|
|
616
|
-
},
|
|
616
|
+
}, nn = /* @__PURE__ */ Symbol("NOT_FOUND");
|
|
617
617
|
function Bu(e, t = `expected a function, instead received ${typeof e}`) {
|
|
618
618
|
if (typeof e != "function") throw new TypeError(t);
|
|
619
619
|
}
|
|
@@ -653,7 +653,7 @@ function Wu(e) {
|
|
|
653
653
|
let t;
|
|
654
654
|
return {
|
|
655
655
|
get(r) {
|
|
656
|
-
return t && e(t.key, r) ? t.value :
|
|
656
|
+
return t && e(t.key, r) ? t.value : nn;
|
|
657
657
|
},
|
|
658
658
|
put(r, n) {
|
|
659
659
|
t = {
|
|
@@ -677,10 +677,10 @@ function qu(e, t) {
|
|
|
677
677
|
const c = r[d];
|
|
678
678
|
return d > 0 && (r.splice(d, 1), r.unshift(c)), c.value;
|
|
679
679
|
}
|
|
680
|
-
return
|
|
680
|
+
return nn;
|
|
681
681
|
}
|
|
682
682
|
function a(s, d) {
|
|
683
|
-
n(s) ===
|
|
683
|
+
n(s) === nn && (r.unshift({
|
|
684
684
|
key: s,
|
|
685
685
|
value: d
|
|
686
686
|
}), r.length > e && r.pop());
|
|
@@ -713,7 +713,7 @@ function Ku(e, t) {
|
|
|
713
713
|
const s = n <= 1 ? Wu(i) : qu(n, i);
|
|
714
714
|
function d() {
|
|
715
715
|
let c = s.get(arguments);
|
|
716
|
-
if (c ===
|
|
716
|
+
if (c === nn) {
|
|
717
717
|
if (c = e.apply(null, arguments), o++, a) {
|
|
718
718
|
const u = s.getEntries().find((f) => a(f.value, c));
|
|
719
719
|
u && (c = u.value, o !== 0 && o--);
|
|
@@ -736,7 +736,7 @@ var Yu = class {
|
|
|
736
736
|
return this.value;
|
|
737
737
|
}
|
|
738
738
|
}, Xu = () => typeof WeakRef > "u" ? Yu : WeakRef, ul = /* @__PURE__ */ Xu(), Zu = 0, mo = 1;
|
|
739
|
-
function
|
|
739
|
+
function $r() {
|
|
740
740
|
return {
|
|
741
741
|
s: Zu,
|
|
742
742
|
v: void 0,
|
|
@@ -747,8 +747,8 @@ function gr() {
|
|
|
747
747
|
function Ju(e) {
|
|
748
748
|
return e instanceof ul ? e.deref() : e;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
let r =
|
|
750
|
+
function Rn(e, t = {}) {
|
|
751
|
+
let r = $r();
|
|
752
752
|
const { resultEqualityCheck: n } = t;
|
|
753
753
|
let a, i = 0;
|
|
754
754
|
function o() {
|
|
@@ -760,12 +760,12 @@ function xn(e, t = {}) {
|
|
|
760
760
|
let m = s.o;
|
|
761
761
|
m === null && (s.o = m = /* @__PURE__ */ new WeakMap());
|
|
762
762
|
const $ = m.get(y);
|
|
763
|
-
$ === void 0 ? (s =
|
|
763
|
+
$ === void 0 ? (s = $r(), m.set(y, s)) : s = $;
|
|
764
764
|
} else {
|
|
765
765
|
let m = s.p;
|
|
766
766
|
m === null && (s.p = m = /* @__PURE__ */ new Map());
|
|
767
767
|
const $ = m.get(y);
|
|
768
|
-
$ === void 0 ? (s =
|
|
768
|
+
$ === void 0 ? (s = $r(), m.set(y, s)) : s = $;
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
const c = s;
|
|
@@ -778,7 +778,7 @@ function xn(e, t = {}) {
|
|
|
778
778
|
return c.s = mo, c.v = u, u;
|
|
779
779
|
}
|
|
780
780
|
return o.clearCache = () => {
|
|
781
|
-
r =
|
|
781
|
+
r = $r(), o.resetResultsCount();
|
|
782
782
|
}, o.resultsCount = () => i, o.resetResultsCount = () => {
|
|
783
783
|
i = 0;
|
|
784
784
|
}, o;
|
|
@@ -793,7 +793,7 @@ function di(e, ...t) {
|
|
|
793
793
|
const u = {
|
|
794
794
|
...r,
|
|
795
795
|
...d
|
|
796
|
-
}, { memoize: f, memoizeOptions: h = [], argsMemoize: y =
|
|
796
|
+
}, { memoize: f, memoizeOptions: h = [], argsMemoize: y = Rn, argsMemoizeOptions: m = [] } = u, $ = po(h), b = po(m), g = Vu(a), C = f(function() {
|
|
797
797
|
return i++, c.apply(null, arguments);
|
|
798
798
|
}, ...$);
|
|
799
799
|
let S = !0;
|
|
@@ -835,7 +835,7 @@ function di(e, ...t) {
|
|
|
835
835
|
};
|
|
836
836
|
return Object.assign(n, { withTypes: () => n }), n;
|
|
837
837
|
}
|
|
838
|
-
var Qu = /* @__PURE__ */ di(
|
|
838
|
+
var Qu = /* @__PURE__ */ di(Rn);
|
|
839
839
|
function fl(e) {
|
|
840
840
|
return ({ dispatch: r, getState: n }) => (a) => (i) => typeof i == "function" ? i(r, n, e) : a(i);
|
|
841
841
|
}
|
|
@@ -853,25 +853,25 @@ var ef = fl(), tf = fl, Aa = /* @__PURE__ */ el({
|
|
|
853
853
|
configureStore: () => Pl,
|
|
854
854
|
createAction: () => Ve,
|
|
855
855
|
createActionCreatorInvariantMiddleware: () => gl,
|
|
856
|
-
createAsyncThunk: () =>
|
|
856
|
+
createAsyncThunk: () => Mn,
|
|
857
857
|
createDraftSafeSelector: () => hl,
|
|
858
858
|
createDraftSafeSelectorCreator: () => pl,
|
|
859
859
|
createDynamicMiddleware: () => Wf,
|
|
860
860
|
createEntityAdapter: () => kf,
|
|
861
861
|
createImmutableStateInvariantMiddleware: () => Sl,
|
|
862
862
|
createListenerMiddleware: () => Uf,
|
|
863
|
-
createNextState: () =>
|
|
863
|
+
createNextState: () => xn,
|
|
864
864
|
createReducer: () => Al,
|
|
865
865
|
createSelector: () => Qu,
|
|
866
866
|
createSelectorCreator: () => di,
|
|
867
867
|
createSerializableStateInvariantMiddleware: () => wl,
|
|
868
868
|
createSlice: () => tt,
|
|
869
|
-
current: () =>
|
|
870
|
-
findNonSerializableValue: () =>
|
|
869
|
+
current: () => In,
|
|
870
|
+
findNonSerializableValue: () => an,
|
|
871
871
|
formatProdErrorMessage: () => Q,
|
|
872
|
-
freeze: () =>
|
|
872
|
+
freeze: () => An,
|
|
873
873
|
isActionCreator: () => vl,
|
|
874
|
-
isAllOf: () =>
|
|
874
|
+
isAllOf: () => on,
|
|
875
875
|
isAnyOf: () => xt,
|
|
876
876
|
isAsyncThunkAction: () => Rl,
|
|
877
877
|
isDraft: () => ke,
|
|
@@ -880,7 +880,7 @@ var ef = fl(), tf = fl, Aa = /* @__PURE__ */ el({
|
|
|
880
880
|
isImmutableDefault: () => bl,
|
|
881
881
|
isPending: () => kl,
|
|
882
882
|
isPlain: () => ui,
|
|
883
|
-
isRejected: () =>
|
|
883
|
+
isRejected: () => sn,
|
|
884
884
|
isRejectedWithValue: () => Il,
|
|
885
885
|
lruMemoize: () => Ku,
|
|
886
886
|
miniSerializeError: () => Dl,
|
|
@@ -889,18 +889,18 @@ var ef = fl(), tf = fl, Aa = /* @__PURE__ */ el({
|
|
|
889
889
|
prepareAutoBatched: () => df,
|
|
890
890
|
removeListener: () => vi,
|
|
891
891
|
unwrapResult: () => Ml,
|
|
892
|
-
weakMapMemoize: () =>
|
|
892
|
+
weakMapMemoize: () => Rn
|
|
893
893
|
});
|
|
894
894
|
vu(Aa, rf);
|
|
895
895
|
var pl = (...e) => {
|
|
896
896
|
const t = di(...e), r = Object.assign((...n) => {
|
|
897
|
-
const a = t(...n), i = (o, ...s) => a(ke(o) ?
|
|
897
|
+
const a = t(...n), i = (o, ...s) => a(ke(o) ? In(o) : o, ...s);
|
|
898
898
|
return Object.assign(i, a), i;
|
|
899
899
|
}, { withTypes: () => r });
|
|
900
900
|
return r;
|
|
901
|
-
}, hl = /* @__PURE__ */ pl(
|
|
901
|
+
}, hl = /* @__PURE__ */ pl(Rn), nf = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
902
902
|
if (arguments.length !== 0)
|
|
903
|
-
return typeof arguments[0] == "object" ?
|
|
903
|
+
return typeof arguments[0] == "object" ? Yr : Yr.apply(null, arguments);
|
|
904
904
|
};
|
|
905
905
|
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
906
906
|
var ml = (e) => e && typeof e.match == "function";
|
|
@@ -921,13 +921,13 @@ function Ve(e, t) {
|
|
|
921
921
|
payload: n[0]
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
|
-
return r.toString = () => `${e}`, r.type = e, r.match = (n) =>
|
|
924
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => Cn(n) && n.type === e, r;
|
|
925
925
|
}
|
|
926
926
|
function vl(e) {
|
|
927
927
|
return typeof e == "function" && "type" in e && ml(e);
|
|
928
928
|
}
|
|
929
929
|
function yl(e) {
|
|
930
|
-
return
|
|
930
|
+
return Cn(e) && Object.keys(e).every(af);
|
|
931
931
|
}
|
|
932
932
|
function af(e) {
|
|
933
933
|
return [
|
|
@@ -980,7 +980,7 @@ var ci = class Ut extends Array {
|
|
|
980
980
|
}
|
|
981
981
|
};
|
|
982
982
|
function vo(e) {
|
|
983
|
-
return We(e) ?
|
|
983
|
+
return We(e) ? xn(e, () => {
|
|
984
984
|
}) : e;
|
|
985
985
|
}
|
|
986
986
|
function st(e, t, r) {
|
|
@@ -1064,7 +1064,7 @@ function ui(e) {
|
|
|
1064
1064
|
const t = typeof e;
|
|
1065
1065
|
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || Js(e);
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function an(e, t = "", r = ui, n, a = [], i) {
|
|
1068
1068
|
let o;
|
|
1069
1069
|
if (!r(e)) return {
|
|
1070
1070
|
keyPath: t || "<root>",
|
|
@@ -1079,7 +1079,7 @@ function nn(e, t = "", r = ui, n, a = [], i) {
|
|
|
1079
1079
|
keyPath: f,
|
|
1080
1080
|
value: u
|
|
1081
1081
|
};
|
|
1082
|
-
if (typeof u == "object" && (o =
|
|
1082
|
+
if (typeof u == "object" && (o = an(u, f, r, n, a, i), o))
|
|
1083
1083
|
return o;
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
@@ -1097,10 +1097,10 @@ function wl(e = {}) {
|
|
|
1097
1097
|
{
|
|
1098
1098
|
const { isSerializable: t = ui, getEntries: r, ignoredActions: n = [], ignoredActionPaths: a = ["meta.arg", "meta.baseQueryMeta"], ignoredPaths: i = [], warnAfter: o = 32, ignoreState: s = !1, ignoreActions: d = !1, disableCache: c = !1 } = e, u = !c && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
|
|
1099
1099
|
return (f) => (h) => (y) => {
|
|
1100
|
-
if (!
|
|
1100
|
+
if (!Cn(y)) return h(y);
|
|
1101
1101
|
const m = h(y), $ = $l(o, "SerializableStateInvariantMiddleware");
|
|
1102
1102
|
return !d && !(n.length && n.indexOf(y.type) !== -1) && $.measureTime(() => {
|
|
1103
|
-
const b =
|
|
1103
|
+
const b = an(y, "", t, r, a, u);
|
|
1104
1104
|
if (b) {
|
|
1105
1105
|
const { keyPath: g, value: C } = b;
|
|
1106
1106
|
console.error(`A non-serializable value was detected in an action, in the path: \`${g}\`. Value:`, C, `
|
|
@@ -1109,7 +1109,7 @@ Take a look at the logic that dispatched this action: `, y, `
|
|
|
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 || ($.measureTime(() => {
|
|
1112
|
-
const b =
|
|
1112
|
+
const b = an(f.getState(), "", t, r, i, u);
|
|
1113
1113
|
if (b) {
|
|
1114
1114
|
const { keyPath: g, value: C } = b;
|
|
1115
1115
|
console.error(`A non-serializable value was detected in the state, in the path: \`${g}\`. Value:`, C, `
|
|
@@ -1120,24 +1120,24 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function br(e) {
|
|
1124
1124
|
return typeof e == "boolean";
|
|
1125
1125
|
}
|
|
1126
1126
|
var lf = () => function(t) {
|
|
1127
1127
|
const { thunk: r = !0, immutableCheck: n = !0, serializableCheck: a = !0, actionCreatorCheck: i = !0 } = t ?? {};
|
|
1128
1128
|
let o = new ci();
|
|
1129
|
-
if (r && (
|
|
1129
|
+
if (r && (br(r) ? o.push(ef) : o.push(tf(r.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
1130
1130
|
if (n) {
|
|
1131
1131
|
let s = {};
|
|
1132
|
-
|
|
1132
|
+
br(n) || (s = n), o.unshift(Sl(s));
|
|
1133
1133
|
}
|
|
1134
1134
|
if (a) {
|
|
1135
1135
|
let s = {};
|
|
1136
|
-
|
|
1136
|
+
br(a) || (s = a), o.push(wl(s));
|
|
1137
1137
|
}
|
|
1138
1138
|
if (i) {
|
|
1139
1139
|
let s = {};
|
|
1140
|
-
|
|
1140
|
+
br(i) || (s = i), o.unshift(gl(s));
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
1143
|
return o;
|
|
@@ -1191,7 +1191,7 @@ function Pl(e) {
|
|
|
1191
1191
|
$.add(b);
|
|
1192
1192
|
});
|
|
1193
1193
|
}
|
|
1194
|
-
let u =
|
|
1194
|
+
let u = Yr;
|
|
1195
1195
|
a && (u = nf({
|
|
1196
1196
|
trace: process.env.NODE_ENV !== "production",
|
|
1197
1197
|
...typeof a == "object" && a
|
|
@@ -1267,7 +1267,7 @@ function Al(e, t) {
|
|
|
1267
1267
|
return h === void 0 ? u : h;
|
|
1268
1268
|
} else {
|
|
1269
1269
|
if (We(u))
|
|
1270
|
-
return
|
|
1270
|
+
return xn(u, (h) => f(h, d));
|
|
1271
1271
|
{
|
|
1272
1272
|
const h = f(u, d);
|
|
1273
1273
|
if (h === void 0) {
|
|
@@ -1286,10 +1286,10 @@ var Tl = (e, t) => ml(e) ? e.match(t) : e(t);
|
|
|
1286
1286
|
function xt(...e) {
|
|
1287
1287
|
return (t) => e.some((r) => Tl(r, t));
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function on(...e) {
|
|
1290
1290
|
return (t) => e.every((r) => Tl(r, t));
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function Dn(e, t) {
|
|
1293
1293
|
if (!e || !e.meta) return !1;
|
|
1294
1294
|
const r = typeof e.meta.requestId == "string", n = t.indexOf(e.meta.requestStatus) > -1;
|
|
1295
1295
|
return r && n;
|
|
@@ -1298,20 +1298,20 @@ function cr(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 kl(...e) {
|
|
1301
|
-
return e.length === 0 ? (t) =>
|
|
1301
|
+
return e.length === 0 ? (t) => Dn(t, ["pending"]) : cr(e) ? xt(...e.map((t) => t.pending)) : kl()(e[0]);
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return e.length === 0 ? (t) =>
|
|
1303
|
+
function sn(...e) {
|
|
1304
|
+
return e.length === 0 ? (t) => Dn(t, ["rejected"]) : cr(e) ? xt(...e.map((t) => t.rejected)) : sn()(e[0]);
|
|
1305
1305
|
}
|
|
1306
1306
|
function Il(...e) {
|
|
1307
1307
|
const t = (r) => r && r.meta && r.meta.rejectedWithValue;
|
|
1308
|
-
return e.length === 0 ?
|
|
1308
|
+
return e.length === 0 ? on(sn(...e), t) : cr(e) ? on(sn(...e), t) : Il()(e[0]);
|
|
1309
1309
|
}
|
|
1310
1310
|
function xl(...e) {
|
|
1311
|
-
return e.length === 0 ? (t) =>
|
|
1311
|
+
return e.length === 0 ? (t) => Dn(t, ["fulfilled"]) : cr(e) ? xt(...e.map((t) => t.fulfilled)) : xl()(e[0]);
|
|
1312
1312
|
}
|
|
1313
1313
|
function Rl(...e) {
|
|
1314
|
-
return e.length === 0 ? (t) =>
|
|
1314
|
+
return e.length === 0 ? (t) => Dn(t, [
|
|
1315
1315
|
"pending",
|
|
1316
1316
|
"fulfilled",
|
|
1317
1317
|
"rejected"
|
|
@@ -1347,7 +1347,7 @@ var ff = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", ur
|
|
|
1347
1347
|
return t;
|
|
1348
1348
|
}
|
|
1349
1349
|
return { message: String(e) };
|
|
1350
|
-
}, $o = "External signal was aborted",
|
|
1350
|
+
}, $o = "External signal was aborted", Mn = /* @__PURE__ */ (() => {
|
|
1351
1351
|
function e(t, r, n) {
|
|
1352
1352
|
const a = Ve(t + "/fulfilled", (d, c, u, f) => ({
|
|
1353
1353
|
payload: d,
|
|
@@ -1459,7 +1459,7 @@ function Ml(e) {
|
|
|
1459
1459
|
function hf(e) {
|
|
1460
1460
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
1461
1461
|
}
|
|
1462
|
-
var Ll = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk"), mf = { [Ll]:
|
|
1462
|
+
var Ll = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk"), mf = { [Ll]: Mn }, Fl = /* @__PURE__ */ ((e) => (e.reducer = "reducer", e.reducerWithPrepare = "reducerWithPrepare", e.asyncThunk = "asyncThunk", e))(Fl || {});
|
|
1463
1463
|
function vf(e, t) {
|
|
1464
1464
|
return `${e}/${t}`;
|
|
1465
1465
|
}
|
|
@@ -1624,13 +1624,13 @@ function Cf({ type: e, reducerName: t }, r, n, a) {
|
|
|
1624
1624
|
if (!a) throw new Error(process.env.NODE_ENV === "production" ? Q(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
|
|
1625
1625
|
const { payloadCreator: i, fulfilled: o, pending: s, rejected: d, settled: c, options: u } = r, f = a(e, i, u);
|
|
1626
1626
|
n.exposeAction(t, f), o && n.addCase(f.fulfilled, o), s && n.addCase(f.pending, s), d && n.addCase(f.rejected, d), c && n.addMatcher(f.settled, c), n.exposeCaseReducer(t, {
|
|
1627
|
-
fulfilled: o ||
|
|
1628
|
-
pending: s ||
|
|
1629
|
-
rejected: d ||
|
|
1630
|
-
settled: c ||
|
|
1627
|
+
fulfilled: o || Nr,
|
|
1628
|
+
pending: s || Nr,
|
|
1629
|
+
rejected: d || Nr,
|
|
1630
|
+
settled: c || Nr
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function Nr() {
|
|
1634
1634
|
}
|
|
1635
1635
|
function Sf() {
|
|
1636
1636
|
return {
|
|
@@ -1681,7 +1681,7 @@ function ve(e) {
|
|
|
1681
1681
|
const i = (o) => {
|
|
1682
1682
|
a(n) ? e(n.payload, o) : e(n, o);
|
|
1683
1683
|
};
|
|
1684
|
-
return Ef(r) ? (i(r), r) :
|
|
1684
|
+
return Ef(r) ? (i(r), r) : xn(r, i);
|
|
1685
1685
|
};
|
|
1686
1686
|
}
|
|
1687
1687
|
function gt(e, t) {
|
|
@@ -1691,12 +1691,12 @@ function gt(e, t) {
|
|
|
1691
1691
|
function Qe(e) {
|
|
1692
1692
|
return Array.isArray(e) || (e = Object.values(e)), e;
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return ke(e) ?
|
|
1694
|
+
function Lr(e) {
|
|
1695
|
+
return ke(e) ? In(e) : e;
|
|
1696
1696
|
}
|
|
1697
1697
|
function Bl(e, t, r) {
|
|
1698
1698
|
e = Qe(e);
|
|
1699
|
-
const n =
|
|
1699
|
+
const n = Lr(r.ids), a = new Set(n), i = [], o = /* @__PURE__ */ new Set([]), s = [];
|
|
1700
1700
|
for (const d of e) {
|
|
1701
1701
|
const c = gt(d, t);
|
|
1702
1702
|
a.has(c) || o.has(c) ? s.push({
|
|
@@ -1808,7 +1808,7 @@ function Tf(e, t) {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
function o(b, g, C) {
|
|
1810
1810
|
b = Qe(b);
|
|
1811
|
-
const S = new Set(C ??
|
|
1811
|
+
const S = new Set(C ?? Lr(g.ids)), _ = /* @__PURE__ */ new Set(), N = b.filter((v) => {
|
|
1812
1812
|
const w = gt(v, e), I = !_.has(w);
|
|
1813
1813
|
return I && _.add(w), !S.has(w) && I;
|
|
1814
1814
|
});
|
|
@@ -1863,7 +1863,7 @@ function Tf(e, t) {
|
|
|
1863
1863
|
return !0;
|
|
1864
1864
|
}
|
|
1865
1865
|
const $ = (b, g, C, S) => {
|
|
1866
|
-
const _ =
|
|
1866
|
+
const _ = Lr(b.entities), N = Lr(b.ids), v = b.entities;
|
|
1867
1867
|
let w = N;
|
|
1868
1868
|
S && (w = new Set(N));
|
|
1869
1869
|
let I = [];
|
|
@@ -1915,12 +1915,12 @@ var If = "task", Vl = "listener", zl = "completed", pi = "cancelled", xf = `task
|
|
|
1915
1915
|
message;
|
|
1916
1916
|
}, hi = (e, t) => {
|
|
1917
1917
|
if (typeof e != "function") throw new TypeError(process.env.NODE_ENV === "production" ? Q(32) : `${t} is not a function`);
|
|
1918
|
-
},
|
|
1919
|
-
}, Wl = (e, t =
|
|
1918
|
+
}, ln = () => {
|
|
1919
|
+
}, Wl = (e, t = ln) => (e.catch(t), e), ql = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), lt = (e) => {
|
|
1920
1920
|
if (e.aborted) throw new fr(e.reason);
|
|
1921
1921
|
};
|
|
1922
1922
|
function Gl(e, t) {
|
|
1923
|
-
let r =
|
|
1923
|
+
let r = ln;
|
|
1924
1924
|
return new Promise((n, a) => {
|
|
1925
1925
|
const i = () => a(new fr(e.reason));
|
|
1926
1926
|
if (e.aborted) {
|
|
@@ -1929,7 +1929,7 @@ function Gl(e, t) {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
r = ql(e, i), t.finally(() => r()).then(n, a);
|
|
1931
1931
|
}).finally(() => {
|
|
1932
|
-
r =
|
|
1932
|
+
r = ln;
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
var Mf = async (e, t) => {
|
|
@@ -1946,8 +1946,8 @@ var Mf = async (e, t) => {
|
|
|
1946
1946
|
} finally {
|
|
1947
1947
|
t?.();
|
|
1948
1948
|
}
|
|
1949
|
-
},
|
|
1950
|
-
const t =
|
|
1949
|
+
}, dn = (e) => (t) => Wl(Gl(e, t).then((r) => (lt(e), r))), Hl = (e) => {
|
|
1950
|
+
const t = dn(e);
|
|
1951
1951
|
return (r) => t(new Promise((n) => setTimeout(n, r)));
|
|
1952
1952
|
}, { assign: bt } = Object, bo = {}, pr = "listenerMiddleware", Lf = (e, t) => {
|
|
1953
1953
|
const r = (n) => ql(e, () => n.abort(e.reason));
|
|
@@ -1958,14 +1958,14 @@ var Mf = async (e, t) => {
|
|
|
1958
1958
|
const o = Mf(async () => {
|
|
1959
1959
|
lt(e), lt(i.signal);
|
|
1960
1960
|
const s = await n({
|
|
1961
|
-
pause:
|
|
1961
|
+
pause: dn(i.signal),
|
|
1962
1962
|
delay: Hl(i.signal),
|
|
1963
1963
|
signal: i.signal
|
|
1964
1964
|
});
|
|
1965
1965
|
return lt(i.signal), s;
|
|
1966
1966
|
}, () => i.abort(Rf));
|
|
1967
|
-
return a?.autoJoin && t.push(o.catch(
|
|
1968
|
-
result:
|
|
1967
|
+
return a?.autoJoin && t.push(o.catch(ln)), {
|
|
1968
|
+
result: dn(e)(o),
|
|
1969
1969
|
cancel() {
|
|
1970
1970
|
i.abort(xf);
|
|
1971
1971
|
}
|
|
@@ -2071,7 +2071,7 @@ var Mf = async (e, t) => {
|
|
|
2071
2071
|
condition: (_, N) => C(_, N).then(Boolean),
|
|
2072
2072
|
take: C,
|
|
2073
2073
|
delay: Hl(g.signal),
|
|
2074
|
-
pause:
|
|
2074
|
+
pause: dn(g.signal),
|
|
2075
2075
|
extra: i,
|
|
2076
2076
|
signal: g.signal,
|
|
2077
2077
|
fork: Lf(g.signal, S),
|
|
@@ -2099,7 +2099,7 @@ var Mf = async (e, t) => {
|
|
|
2099
2099
|
}, f = jf(t, r);
|
|
2100
2100
|
return {
|
|
2101
2101
|
middleware: (y) => (m) => ($) => {
|
|
2102
|
-
if (!
|
|
2102
|
+
if (!Cn($)) return m($);
|
|
2103
2103
|
if (mi.match($)) return d($.payload);
|
|
2104
2104
|
if (Xl.match($)) {
|
|
2105
2105
|
f();
|
|
@@ -2145,7 +2145,7 @@ var Mf = async (e, t) => {
|
|
|
2145
2145
|
d.forEach((c) => {
|
|
2146
2146
|
st(t, c, Vf);
|
|
2147
2147
|
});
|
|
2148
|
-
}, { withTypes: () => n }), a = (s) =>
|
|
2148
|
+
}, { withTypes: () => n }), a = (s) => Yr(...Array.from(t.values()).map((d) => st(d.applied, s, d.middleware))), i = on(r, zf(e));
|
|
2149
2149
|
return {
|
|
2150
2150
|
middleware: (s) => (d) => (c) => i(c) ? (n(...c.payload), s.dispatch) : a(s)(d)(c),
|
|
2151
2151
|
addMiddleware: n,
|
|
@@ -2193,12 +2193,12 @@ function Qf(...e) {
|
|
|
2193
2193
|
function Q(e) {
|
|
2194
2194
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2197
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2196
|
+
function Fr(e) {
|
|
2197
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Fr = function(r) {
|
|
2198
2198
|
return typeof r;
|
|
2199
|
-
} :
|
|
2199
|
+
} : Fr = function(r) {
|
|
2200
2200
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
2201
|
-
},
|
|
2201
|
+
}, Fr(e);
|
|
2202
2202
|
}
|
|
2203
2203
|
function na() {
|
|
2204
2204
|
}
|
|
@@ -2208,7 +2208,7 @@ var ep = {
|
|
|
2208
2208
|
removeItem: na
|
|
2209
2209
|
};
|
|
2210
2210
|
function tp(e) {
|
|
2211
|
-
if ((typeof self > "u" ? "undefined" :
|
|
2211
|
+
if ((typeof self > "u" ? "undefined" : Fr(self)) !== "object" || !(e in self)) return !1;
|
|
2212
2212
|
try {
|
|
2213
2213
|
var t = self[e], r = "redux-persist ".concat(e, " test");
|
|
2214
2214
|
t.setItem(r, "test"), t.getItem(r), t.removeItem(r);
|
|
@@ -2241,7 +2241,7 @@ function np(e) {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
};
|
|
2243
2243
|
}
|
|
2244
|
-
var
|
|
2244
|
+
var Cr = (e) => e ? [
|
|
2245
2245
|
"services",
|
|
2246
2246
|
"professionals",
|
|
2247
2247
|
"time",
|
|
@@ -2267,7 +2267,7 @@ var Nr = (e) => e ? [
|
|
|
2267
2267
|
e.isOrder = t.payload;
|
|
2268
2268
|
},
|
|
2269
2269
|
goToStep: (e, t) => {
|
|
2270
|
-
const r =
|
|
2270
|
+
const r = Cr(e.isOrder), n = t.payload, a = r.indexOf(e.currentStep), i = r.indexOf(n);
|
|
2271
2271
|
if (i <= a) {
|
|
2272
2272
|
e.currentStep = n;
|
|
2273
2273
|
return;
|
|
@@ -2280,18 +2280,18 @@ var Nr = (e) => e ? [
|
|
|
2280
2280
|
e.completedSteps.includes(r) || e.completedSteps.push(r);
|
|
2281
2281
|
},
|
|
2282
2282
|
nextStep: (e) => {
|
|
2283
|
-
const t =
|
|
2283
|
+
const t = Cr(e.isOrder), r = t[t.indexOf(e.currentStep) + 1];
|
|
2284
2284
|
r && (e.completedSteps.includes(e.currentStep) || e.completedSteps.push(e.currentStep), e.currentStep = r);
|
|
2285
2285
|
},
|
|
2286
2286
|
prevStep: (e) => {
|
|
2287
|
-
const t =
|
|
2287
|
+
const t = Cr(e.isOrder), r = t[t.indexOf(e.currentStep) - 1];
|
|
2288
2288
|
r && (e.currentStep = r);
|
|
2289
2289
|
},
|
|
2290
2290
|
clearSteps: (e) => {
|
|
2291
2291
|
e.currentStep = "services", e.completedSteps = ["services"];
|
|
2292
2292
|
},
|
|
2293
2293
|
resetCompletedStepsFrom: (e, t) => {
|
|
2294
|
-
const r = t.payload, n =
|
|
2294
|
+
const r = t.payload, n = Cr(e.isOrder), a = n.indexOf(r);
|
|
2295
2295
|
e.completedSteps = e.completedSteps.filter((i) => n.indexOf(i) <= a);
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
@@ -2468,7 +2468,7 @@ var Nr = (e) => e ? [
|
|
|
2468
2468
|
}), m = await y.json();
|
|
2469
2469
|
if (!y.ok) throw m;
|
|
2470
2470
|
return m;
|
|
2471
|
-
},
|
|
2471
|
+
}, jr = Mn("slots/getStaffSlots", async ({ tenantId: e, staffId: t, date: r }) => await hp(e, t, r)), rd = tt({
|
|
2472
2472
|
name: "slots",
|
|
2473
2473
|
initialState: {
|
|
2474
2474
|
selectedSlotIndexes: [],
|
|
@@ -2501,19 +2501,19 @@ var Nr = (e) => e ? [
|
|
|
2501
2501
|
}
|
|
2502
2502
|
},
|
|
2503
2503
|
extraReducers: (e) => {
|
|
2504
|
-
e.addCase(
|
|
2504
|
+
e.addCase(jr.pending, (t) => {
|
|
2505
2505
|
t.loading = !0;
|
|
2506
|
-
}).addCase(
|
|
2506
|
+
}).addCase(jr.fulfilled, (t, r) => {
|
|
2507
2507
|
t.loading = !1, t.slots = r.payload?.data?.groups || {
|
|
2508
2508
|
morning: [],
|
|
2509
2509
|
afternoon: [],
|
|
2510
2510
|
evening: []
|
|
2511
2511
|
};
|
|
2512
|
-
}).addCase(
|
|
2512
|
+
}).addCase(jr.rejected, (t) => {
|
|
2513
2513
|
t.loading = !1;
|
|
2514
2514
|
});
|
|
2515
2515
|
}
|
|
2516
|
-
}), { setSelectedSlots:
|
|
2516
|
+
}), { setSelectedSlots: Sr, clearSlots: Nt, setSelectedDate: Ct, setSelectedTime: _r } = rd.actions, bp = rd.reducer, nd = tt({
|
|
2517
2517
|
name: "theme",
|
|
2518
2518
|
initialState: {
|
|
2519
2519
|
button: {
|
|
@@ -2539,7 +2539,7 @@ var Nr = (e) => e ? [
|
|
|
2539
2539
|
e.isOpenSidebar = t.payload;
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
2542
|
-
}), { setTheme: Np, setSidebarOpen:
|
|
2542
|
+
}), { setTheme: Np, setSidebarOpen: hr } = nd.actions, Cp = nd.reducer, Br = Mn("appointment/create", async (e, { rejectWithValue: t }) => {
|
|
2543
2543
|
try {
|
|
2544
2544
|
return await mp(e);
|
|
2545
2545
|
} catch (r) {
|
|
@@ -2581,17 +2581,17 @@ var Nr = (e) => e ? [
|
|
|
2581
2581
|
}
|
|
2582
2582
|
},
|
|
2583
2583
|
extraReducers: (e) => {
|
|
2584
|
-
e.addCase(
|
|
2584
|
+
e.addCase(Br.pending, (t) => {
|
|
2585
2585
|
t.loading = !0, t.error = null;
|
|
2586
|
-
}).addCase(
|
|
2586
|
+
}).addCase(Br.fulfilled, (t, r) => {
|
|
2587
2587
|
t.loading = !1, t.success = !0, t.data = r.payload;
|
|
2588
2588
|
const n = r.payload;
|
|
2589
2589
|
t.appointmentId = n?.id || null, t.customerId = n?.customerId || n?.customer?.id || null;
|
|
2590
|
-
}).addCase(
|
|
2590
|
+
}).addCase(Br.rejected, (t, r) => {
|
|
2591
2591
|
t.loading = !1, t.error = r.payload || "Appointment failed";
|
|
2592
2592
|
});
|
|
2593
2593
|
}
|
|
2594
|
-
}), { resetAppointment: St, setBookingMode: p3, setUserDetails: zt, setTips: Sp, setAppointmentId:
|
|
2594
|
+
}), { resetAppointment: St, setBookingMode: p3, setUserDetails: zt, setTips: Sp, setAppointmentId: wr, clearUserDetails: id, setPayType: h3 } = ad.actions, _p = ad.reducer, od = tt({
|
|
2595
2595
|
name: "outletList",
|
|
2596
2596
|
initialState: { outlets: [] },
|
|
2597
2597
|
reducers: {
|
|
@@ -2642,9 +2642,9 @@ qe.pong = "3";
|
|
|
2642
2642
|
qe.message = "4";
|
|
2643
2643
|
qe.upgrade = "5";
|
|
2644
2644
|
qe.noop = "6";
|
|
2645
|
-
var
|
|
2645
|
+
var Ur = /* @__PURE__ */ Object.create(null);
|
|
2646
2646
|
Object.keys(qe).forEach((e) => {
|
|
2647
|
-
|
|
2647
|
+
Ur[qe[e]] = e;
|
|
2648
2648
|
});
|
|
2649
2649
|
var xa = {
|
|
2650
2650
|
type: "error",
|
|
@@ -2685,10 +2685,10 @@ var xp = (e) => {
|
|
|
2685
2685
|
return r === "b" ? {
|
|
2686
2686
|
type: "message",
|
|
2687
2687
|
data: Dp(e.substring(1), t)
|
|
2688
|
-
} :
|
|
2689
|
-
type:
|
|
2688
|
+
} : Ur[r] ? e.length > 1 ? {
|
|
2689
|
+
type: Ur[r],
|
|
2690
2690
|
data: e.substring(1)
|
|
2691
|
-
} : { type:
|
|
2691
|
+
} : { type: Ur[r] } : xa;
|
|
2692
2692
|
}, Dp = (e, t) => Rp ? cd(xp(e), t) : {
|
|
2693
2693
|
base64: !0,
|
|
2694
2694
|
data: e
|
|
@@ -2729,10 +2729,10 @@ function Fp() {
|
|
|
2729
2729
|
} });
|
|
2730
2730
|
}
|
|
2731
2731
|
var oa;
|
|
2732
|
-
function
|
|
2732
|
+
function Er(e) {
|
|
2733
2733
|
return e.reduce((t, r) => t + r.length, 0);
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2735
|
+
function Pr(e, t) {
|
|
2736
2736
|
if (e[0].length === t) return e.shift();
|
|
2737
2737
|
const r = new Uint8Array(t);
|
|
2738
2738
|
let n = 0;
|
|
@@ -2747,24 +2747,24 @@ function jp(e, t) {
|
|
|
2747
2747
|
return new TransformStream({ transform(o, s) {
|
|
2748
2748
|
for (r.push(o); ; ) {
|
|
2749
2749
|
if (n === 0) {
|
|
2750
|
-
if (
|
|
2751
|
-
const d =
|
|
2750
|
+
if (Er(r) < 1) break;
|
|
2751
|
+
const d = Pr(r, 1);
|
|
2752
2752
|
i = (d[0] & 128) === 128, a = d[0] & 127, a < 126 ? n = 3 : a === 126 ? n = 1 : n = 2;
|
|
2753
2753
|
} else if (n === 1) {
|
|
2754
|
-
if (
|
|
2755
|
-
const d =
|
|
2754
|
+
if (Er(r) < 2) break;
|
|
2755
|
+
const d = Pr(r, 2);
|
|
2756
2756
|
a = new DataView(d.buffer, d.byteOffset, d.length).getUint16(0), n = 3;
|
|
2757
2757
|
} else if (n === 2) {
|
|
2758
|
-
if (
|
|
2759
|
-
const d =
|
|
2758
|
+
if (Er(r) < 8) break;
|
|
2759
|
+
const d = Pr(r, 8), c = new DataView(d.buffer, d.byteOffset, d.length), u = c.getUint32(0);
|
|
2760
2760
|
if (u > Math.pow(2, 21) - 1) {
|
|
2761
2761
|
s.enqueue(xa);
|
|
2762
2762
|
break;
|
|
2763
2763
|
}
|
|
2764
2764
|
a = u * Math.pow(2, 32) + c.getUint32(4), n = 3;
|
|
2765
2765
|
} else {
|
|
2766
|
-
if (
|
|
2767
|
-
const d =
|
|
2766
|
+
if (Er(r) < a) break;
|
|
2767
|
+
const d = Pr(r, a);
|
|
2768
2768
|
s.enqueue(Ci(i ? d : oa.decode(d), t)), n = 0;
|
|
2769
2769
|
}
|
|
2770
2770
|
if (a === 0 || a > e) {
|
|
@@ -2986,7 +2986,7 @@ var Qp = class extends Xp {
|
|
|
2986
2986
|
this.onError("xhr poll error", t, r);
|
|
2987
2987
|
}), this.pollXhr = e;
|
|
2988
2988
|
}
|
|
2989
|
-
}, _t = class
|
|
2989
|
+
}, _t = class Vr extends ye {
|
|
2990
2990
|
constructor(t, r, n) {
|
|
2991
2991
|
super(), this.createRequest = t, jn(this, n), this._opts = n, this._method = n.method || "GET", this._uri = r, this._data = n.data !== void 0 ? n.data : null, this._create();
|
|
2992
2992
|
}
|
|
@@ -3024,7 +3024,7 @@ var Qp = class extends Xp {
|
|
|
3024
3024
|
}, 0);
|
|
3025
3025
|
return;
|
|
3026
3026
|
}
|
|
3027
|
-
typeof document < "u" && (this._index =
|
|
3027
|
+
typeof document < "u" && (this._index = Vr.requestsCount++, Vr.requests[this._index] = this);
|
|
3028
3028
|
}
|
|
3029
3029
|
_onError(t) {
|
|
3030
3030
|
this.emitReserved("error", t, this._xhr), this._cleanup(!0);
|
|
@@ -3035,7 +3035,7 @@ var Qp = class extends Xp {
|
|
|
3035
3035
|
this._xhr.abort();
|
|
3036
3036
|
} catch {
|
|
3037
3037
|
}
|
|
3038
|
-
typeof document < "u" && delete
|
|
3038
|
+
typeof document < "u" && delete Vr.requests[this._index], this._xhr = null;
|
|
3039
3039
|
}
|
|
3040
3040
|
}
|
|
3041
3041
|
_onLoad() {
|
|
@@ -3217,11 +3217,11 @@ function dh(e, t) {
|
|
|
3217
3217
|
a && (r[a] = i);
|
|
3218
3218
|
}), r;
|
|
3219
3219
|
}
|
|
3220
|
-
var Da = typeof addEventListener == "function" && typeof removeEventListener == "function",
|
|
3220
|
+
var Da = typeof addEventListener == "function" && typeof removeEventListener == "function", zr = [];
|
|
3221
3221
|
Da && addEventListener("offline", () => {
|
|
3222
|
-
|
|
3222
|
+
zr.forEach((e) => e());
|
|
3223
3223
|
}, !1);
|
|
3224
|
-
var
|
|
3224
|
+
var Wr = class qr extends ye {
|
|
3225
3225
|
constructor(t, r) {
|
|
3226
3226
|
if (super(), this.binaryType = Up, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, t && typeof t == "object" && (r = t, t = null), t) {
|
|
3227
3227
|
const n = Ra(t);
|
|
@@ -3246,7 +3246,7 @@ var zr = class Wr extends ye {
|
|
|
3246
3246
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
3247
3247
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
|
3248
3248
|
this._onClose("transport close", { description: "network connection lost" });
|
|
3249
|
-
},
|
|
3249
|
+
}, zr.push(this._offlineEventListener))), this.opts.withCredentials && (this._cookieJar = void 0), this._open();
|
|
3250
3250
|
}
|
|
3251
3251
|
createTransport(t) {
|
|
3252
3252
|
const r = Object.assign({}, this.opts.query);
|
|
@@ -3267,7 +3267,7 @@ var zr = class Wr extends ye {
|
|
|
3267
3267
|
}, 0);
|
|
3268
3268
|
return;
|
|
3269
3269
|
}
|
|
3270
|
-
const t = this.opts.rememberUpgrade &&
|
|
3270
|
+
const t = this.opts.rememberUpgrade && qr.priorWebsocketSuccess && this.transports.indexOf("websocket") !== -1 ? "websocket" : this.transports[0];
|
|
3271
3271
|
this.readyState = "opening";
|
|
3272
3272
|
const r = this.createTransport(t);
|
|
3273
3273
|
r.open(), this.setTransport(r);
|
|
@@ -3276,7 +3276,7 @@ var zr = class Wr extends ye {
|
|
|
3276
3276
|
this.transport && this.transport.removeAllListeners(), this.transport = t, t.on("drain", this._onDrain.bind(this)).on("packet", this._onPacket.bind(this)).on("error", this._onError.bind(this)).on("close", (r) => this._onClose("transport close", r));
|
|
3277
3277
|
}
|
|
3278
3278
|
onOpen() {
|
|
3279
|
-
this.readyState = "open",
|
|
3279
|
+
this.readyState = "open", qr.priorWebsocketSuccess = this.transport.name === "websocket", this.emitReserved("open"), this.flush();
|
|
3280
3280
|
}
|
|
3281
3281
|
_onPacket(t) {
|
|
3282
3282
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing")
|
|
@@ -3361,22 +3361,22 @@ var zr = class Wr extends ye {
|
|
|
3361
3361
|
}) : this.upgrading ? n() : t()), this;
|
|
3362
3362
|
}
|
|
3363
3363
|
_onError(t) {
|
|
3364
|
-
if (
|
|
3364
|
+
if (qr.priorWebsocketSuccess = !1, this.opts.tryAllTransports && this.transports.length > 1 && this.readyState === "opening")
|
|
3365
3365
|
return this.transports.shift(), this._open();
|
|
3366
3366
|
this.emitReserved("error", t), this._onClose("transport error", t);
|
|
3367
3367
|
}
|
|
3368
3368
|
_onClose(t, r) {
|
|
3369
3369
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
|
3370
3370
|
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Da && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
|
3371
|
-
const n =
|
|
3372
|
-
n !== -1 &&
|
|
3371
|
+
const n = zr.indexOf(this._offlineEventListener);
|
|
3372
|
+
n !== -1 && zr.splice(n, 1);
|
|
3373
3373
|
}
|
|
3374
3374
|
this.readyState = "closed", this.id = null, this.emitReserved("close", t, r), this.writeBuffer = [], this._prevBufferLen = 0;
|
|
3375
3375
|
}
|
|
3376
3376
|
}
|
|
3377
3377
|
};
|
|
3378
|
-
|
|
3379
|
-
var ch = class extends
|
|
3378
|
+
Wr.protocol = 4;
|
|
3379
|
+
var ch = class extends Wr {
|
|
3380
3380
|
constructor() {
|
|
3381
3381
|
super(...arguments), this._upgrades = [];
|
|
3382
3382
|
}
|
|
@@ -3385,7 +3385,7 @@ var ch = class extends zr {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
_probe(e) {
|
|
3387
3387
|
let t = this.createTransport(e), r = !1;
|
|
3388
|
-
|
|
3388
|
+
Wr.priorWebsocketSuccess = !1;
|
|
3389
3389
|
const n = () => {
|
|
3390
3390
|
r || (t.send([{
|
|
3391
3391
|
type: "ping",
|
|
@@ -3394,7 +3394,7 @@ var ch = class extends zr {
|
|
|
3394
3394
|
if (!r)
|
|
3395
3395
|
if (u.type === "pong" && u.data === "probe") {
|
|
3396
3396
|
if (this.upgrading = !0, this.emitReserved("upgrading", t), !t) return;
|
|
3397
|
-
|
|
3397
|
+
Wr.priorWebsocketSuccess = t.name === "websocket", this.transport.pause(() => {
|
|
3398
3398
|
r || this.readyState !== "closed" && (c(), this.setTransport(t), t.send([{ type: "upgrade" }]), this.emitReserved("upgrade", t), t = null, this.upgrading = !1, this.flush());
|
|
3399
3399
|
});
|
|
3400
3400
|
} else {
|
|
@@ -3454,15 +3454,15 @@ var fh = typeof ArrayBuffer == "function", ph = (e) => typeof ArrayBuffer.isView
|
|
|
3454
3454
|
function _i(e) {
|
|
3455
3455
|
return fh && (e instanceof ArrayBuffer || ph(e)) || hh && e instanceof Blob || mh && e instanceof File;
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3457
|
+
function Gr(e, t) {
|
|
3458
3458
|
if (!e || typeof e != "object") return !1;
|
|
3459
3459
|
if (Array.isArray(e)) {
|
|
3460
|
-
for (let r = 0, n = e.length; r < n; r++) if (
|
|
3460
|
+
for (let r = 0, n = e.length; r < n; r++) if (Gr(e[r])) return !0;
|
|
3461
3461
|
return !1;
|
|
3462
3462
|
}
|
|
3463
3463
|
if (_i(e)) return !0;
|
|
3464
|
-
if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1) return
|
|
3465
|
-
for (const r in e) if (Object.prototype.hasOwnProperty.call(e, r) &&
|
|
3464
|
+
if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1) return Gr(e.toJSON(), !0);
|
|
3465
|
+
for (const r in e) if (Object.prototype.hasOwnProperty.call(e, r) && Gr(e[r])) return !0;
|
|
3466
3466
|
return !1;
|
|
3467
3467
|
}
|
|
3468
3468
|
function vh(e) {
|
|
@@ -3527,7 +3527,7 @@ var $h = class {
|
|
|
3527
3527
|
this.replacer = e;
|
|
3528
3528
|
}
|
|
3529
3529
|
encode(e) {
|
|
3530
|
-
return (e.type === Y.EVENT || e.type === Y.ACK) &&
|
|
3530
|
+
return (e.type === Y.EVENT || e.type === Y.ACK) && Gr(e) ? this.encodeAsBinary({
|
|
3531
3531
|
type: e.type === Y.EVENT ? Y.BINARY_EVENT : Y.BINARY_ACK,
|
|
3532
3532
|
nsp: e.nsp,
|
|
3533
3533
|
data: e.data,
|
|
@@ -3611,11 +3611,11 @@ var $h = class {
|
|
|
3611
3611
|
static isPayloadValid(t, r) {
|
|
3612
3612
|
switch (t) {
|
|
3613
3613
|
case Y.CONNECT:
|
|
3614
|
-
return
|
|
3614
|
+
return cn(r);
|
|
3615
3615
|
case Y.DISCONNECT:
|
|
3616
3616
|
return r === void 0;
|
|
3617
3617
|
case Y.CONNECT_ERROR:
|
|
3618
|
-
return typeof r == "string" ||
|
|
3618
|
+
return typeof r == "string" || cn(r);
|
|
3619
3619
|
case Y.EVENT:
|
|
3620
3620
|
case Y.BINARY_EVENT:
|
|
3621
3621
|
return Array.isArray(r) && (typeof r[0] == "number" || typeof r[0] == "string" && $d.indexOf(r[0]) === -1);
|
|
@@ -3651,13 +3651,13 @@ var Nd = Number.isInteger || function(e) {
|
|
|
3651
3651
|
function Sh(e) {
|
|
3652
3652
|
return e === void 0 || Nd(e);
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3654
|
+
function cn(e) {
|
|
3655
3655
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
3656
3656
|
}
|
|
3657
3657
|
function _h(e, t) {
|
|
3658
3658
|
switch (e) {
|
|
3659
3659
|
case Y.CONNECT:
|
|
3660
|
-
return t === void 0 ||
|
|
3660
|
+
return t === void 0 || cn(t);
|
|
3661
3661
|
case Y.DISCONNECT:
|
|
3662
3662
|
return t === void 0;
|
|
3663
3663
|
case Y.EVENT:
|
|
@@ -3665,7 +3665,7 @@ function _h(e, t) {
|
|
|
3665
3665
|
case Y.ACK:
|
|
3666
3666
|
return Array.isArray(t);
|
|
3667
3667
|
case Y.CONNECT_ERROR:
|
|
3668
|
-
return typeof t == "string" ||
|
|
3668
|
+
return typeof t == "string" || cn(t);
|
|
3669
3669
|
default:
|
|
3670
3670
|
return !1;
|
|
3671
3671
|
}
|
|
@@ -4075,20 +4075,20 @@ var Fa = class extends ye {
|
|
|
4075
4075
|
this._reconnecting = !1, this.backoff.reset(), this.emitReserved("reconnect", e);
|
|
4076
4076
|
}
|
|
4077
4077
|
}, Bt = {};
|
|
4078
|
-
function
|
|
4078
|
+
function Hr(e, t) {
|
|
4079
4079
|
typeof e == "object" && (t = e, e = void 0), t = t || {};
|
|
4080
4080
|
const r = uh(e, t.path || "/socket.io"), n = r.source, a = r.id, i = r.path, o = Bt[a] && i in Bt[a].nsps, s = t.forceNew || t["force new connection"] || t.multiplex === !1 || o;
|
|
4081
4081
|
let d;
|
|
4082
4082
|
return s ? d = new Fa(n, t) : (Bt[a] || (Bt[a] = new Fa(n, t)), d = Bt[a]), r.query && !t.query && (t.query = r.queryKey), d.socket(r.path, t);
|
|
4083
4083
|
}
|
|
4084
|
-
Object.assign(
|
|
4084
|
+
Object.assign(Hr, {
|
|
4085
4085
|
Manager: Fa,
|
|
4086
4086
|
Socket: Cd,
|
|
4087
|
-
io:
|
|
4088
|
-
connect:
|
|
4087
|
+
io: Hr,
|
|
4088
|
+
connect: Hr
|
|
4089
4089
|
});
|
|
4090
4090
|
var Ph = "https://prod.aaravpos.com", Sd = Ks(void 0), Oh = ({ children: e }) => {
|
|
4091
|
-
const { selectedProfessional: t } = H((a) => a.booking.service), [r] = z(() =>
|
|
4091
|
+
const { selectedProfessional: t } = H((a) => a.booking.service), [r] = z(() => Hr(Ph, {
|
|
4092
4092
|
path: "/socket.io",
|
|
4093
4093
|
transports: ["websocket"],
|
|
4094
4094
|
autoConnect: !1,
|
|
@@ -4249,7 +4249,7 @@ var kh = (e) => {
|
|
|
4249
4249
|
}]], wi = ee("chevron-down", zh), Wh = [["path", {
|
|
4250
4250
|
d: "m15 18-6-6 6-6",
|
|
4251
4251
|
key: "1wnfg3"
|
|
4252
|
-
}]],
|
|
4252
|
+
}]], un = ee("chevron-left", Wh), qh = [["path", {
|
|
4253
4253
|
d: "m9 18 6-6-6-6",
|
|
4254
4254
|
key: "mthhwq"
|
|
4255
4255
|
}]], Dt = ee("chevron-right", qh), Gh = [["circle", {
|
|
@@ -4545,7 +4545,7 @@ var kh = (e) => {
|
|
|
4545
4545
|
cy: "7",
|
|
4546
4546
|
r: "4",
|
|
4547
4547
|
key: "17ys0d"
|
|
4548
|
-
}]],
|
|
4548
|
+
}]], fn = ee("user", T0), k0 = [["path", {
|
|
4549
4549
|
d: "M18 6 6 18",
|
|
4550
4550
|
key: "1bl5f8"
|
|
4551
4551
|
}], ["path", {
|
|
@@ -4725,7 +4725,7 @@ var L0 = {
|
|
|
4725
4725
|
{
|
|
4726
4726
|
label: "Professional",
|
|
4727
4727
|
page: "professionals",
|
|
4728
|
-
icon: /* @__PURE__ */ l(
|
|
4728
|
+
icon: /* @__PURE__ */ l(fn, { size: 16 })
|
|
4729
4729
|
},
|
|
4730
4730
|
{
|
|
4731
4731
|
label: "Time Slot",
|
|
@@ -4746,7 +4746,7 @@ var L0 = {
|
|
|
4746
4746
|
{
|
|
4747
4747
|
label: "Professional",
|
|
4748
4748
|
page: "professionals",
|
|
4749
|
-
icon: /* @__PURE__ */ l(
|
|
4749
|
+
icon: /* @__PURE__ */ l(fn, { size: 16 })
|
|
4750
4750
|
},
|
|
4751
4751
|
{
|
|
4752
4752
|
label: "Service",
|
|
@@ -4786,7 +4786,7 @@ function pt() {
|
|
|
4786
4786
|
children: [/* @__PURE__ */ l("button", {
|
|
4787
4787
|
onClick: y,
|
|
4788
4788
|
className: "aaravpos-mobile-back-btn",
|
|
4789
|
-
children: /* @__PURE__ */ l(
|
|
4789
|
+
children: /* @__PURE__ */ l(un, { size: 22 })
|
|
4790
4790
|
}), /* @__PURE__ */ l("span", {
|
|
4791
4791
|
className: "aaravpos-mobile-step-label",
|
|
4792
4792
|
children: $?.label
|
|
@@ -4797,7 +4797,7 @@ function pt() {
|
|
|
4797
4797
|
/* @__PURE__ */ l("button", {
|
|
4798
4798
|
onClick: C ? m : y,
|
|
4799
4799
|
className: "aaravpos-desktop-back-btn",
|
|
4800
|
-
children: /* @__PURE__ */ l(
|
|
4800
|
+
children: /* @__PURE__ */ l(un, { size: 20 })
|
|
4801
4801
|
}),
|
|
4802
4802
|
/* @__PURE__ */ l("nav", {
|
|
4803
4803
|
className: "aaravpos-step-nav",
|
|
@@ -4821,7 +4821,7 @@ function pt() {
|
|
|
4821
4821
|
}),
|
|
4822
4822
|
!r && /* @__PURE__ */ p("button", {
|
|
4823
4823
|
className: "aaravpos-cart-btn",
|
|
4824
|
-
onClick: () => e(
|
|
4824
|
+
onClick: () => e(hr(!0)),
|
|
4825
4825
|
children: [/* @__PURE__ */ l("span", {
|
|
4826
4826
|
className: "aaravpos-count",
|
|
4827
4827
|
children: g
|
|
@@ -4876,7 +4876,7 @@ var Od = ({ pro: e, selectedStaffServices: t = [], totalPrice: r = 0, totalDurat
|
|
|
4876
4876
|
}),
|
|
4877
4877
|
/* @__PURE__ */ l("button", {
|
|
4878
4878
|
className: "aaravpos-sidebar-close-btn",
|
|
4879
|
-
onClick: () => i(
|
|
4879
|
+
onClick: () => i(hr(!1)),
|
|
4880
4880
|
children: /* @__PURE__ */ l(Ge, { size: 18 })
|
|
4881
4881
|
})
|
|
4882
4882
|
]
|
|
@@ -5221,7 +5221,7 @@ function z0() {
|
|
|
5221
5221
|
const { isOnLeave: w, availableFrom: I } = y(v), M = S(v) || w || I, Z = a?.id === v.id;
|
|
5222
5222
|
return /* @__PURE__ */ l("div", {
|
|
5223
5223
|
onClick: () => {
|
|
5224
|
-
M || (t(gi(v)), t(Ct(null)), c && N(!0));
|
|
5224
|
+
M || (t(gi(v)), t(hr(!0)), t(Ct(null)), c && N(!0));
|
|
5225
5225
|
},
|
|
5226
5226
|
className: `booking-pro-card ${M ? "disabled" : Z ? "active" : ""}`,
|
|
5227
5227
|
children: /* @__PURE__ */ p("div", {
|
|
@@ -5394,7 +5394,7 @@ function W0({ selectedServices: e, totalPrice: t, goToStep: r }) {
|
|
|
5394
5394
|
}),
|
|
5395
5395
|
/* @__PURE__ */ l("button", {
|
|
5396
5396
|
className: "aaravpos-sidebar-close-btn",
|
|
5397
|
-
onClick: () => n(
|
|
5397
|
+
onClick: () => n(hr(!1)),
|
|
5398
5398
|
children: /* @__PURE__ */ l(Ge, { size: 18 })
|
|
5399
5399
|
})
|
|
5400
5400
|
]
|
|
@@ -5462,7 +5462,7 @@ function W0({ selectedServices: e, totalPrice: t, goToStep: r }) {
|
|
|
5462
5462
|
})]
|
|
5463
5463
|
});
|
|
5464
5464
|
}
|
|
5465
|
-
var
|
|
5465
|
+
var Or = ({ className: e, style: t }) => /* @__PURE__ */ l("div", {
|
|
5466
5466
|
className: `aaravpos-skeleton-block ${e || ""}`,
|
|
5467
5467
|
style: t,
|
|
5468
5468
|
children: /* @__PURE__ */ l("div", { className: "aaravpos-skeleton-shimmer" })
|
|
@@ -5475,13 +5475,13 @@ function Ad() {
|
|
|
5475
5475
|
pointerEvents: "none"
|
|
5476
5476
|
},
|
|
5477
5477
|
children: [
|
|
5478
|
-
/* @__PURE__ */ l(
|
|
5478
|
+
/* @__PURE__ */ l(Or, { style: {
|
|
5479
5479
|
height: "16px",
|
|
5480
5480
|
width: "70%",
|
|
5481
5481
|
marginTop: "12px",
|
|
5482
5482
|
marginBottom: "4px"
|
|
5483
5483
|
} }),
|
|
5484
|
-
/* @__PURE__ */ l(
|
|
5484
|
+
/* @__PURE__ */ l(Or, { style: {
|
|
5485
5485
|
height: "12px",
|
|
5486
5486
|
width: "95%",
|
|
5487
5487
|
margin: "8px 0px"
|
|
@@ -5494,10 +5494,10 @@ function Ad() {
|
|
|
5494
5494
|
marginTop: "12px",
|
|
5495
5495
|
marginBottom: "8px"
|
|
5496
5496
|
},
|
|
5497
|
-
children: [/* @__PURE__ */ l(
|
|
5497
|
+
children: [/* @__PURE__ */ l(Or, { style: {
|
|
5498
5498
|
height: "14px",
|
|
5499
5499
|
width: "40px"
|
|
5500
|
-
} }), /* @__PURE__ */ l(
|
|
5500
|
+
} }), /* @__PURE__ */ l(Or, { style: {
|
|
5501
5501
|
height: "14px",
|
|
5502
5502
|
width: "50px"
|
|
5503
5503
|
} })]
|
|
@@ -5989,7 +5989,7 @@ function X0({ isOpen: e, onClose: t }) {
|
|
|
5989
5989
|
disabled: d === 0,
|
|
5990
5990
|
onClick: () => c((m) => Math.max(m - 1, 0)),
|
|
5991
5991
|
className: "aaravpos-date-nav-btn",
|
|
5992
|
-
children: /* @__PURE__ */ l(
|
|
5992
|
+
children: /* @__PURE__ */ l(un, {})
|
|
5993
5993
|
}),
|
|
5994
5994
|
/* @__PURE__ */ l("div", {
|
|
5995
5995
|
className: "aaravpos-date-month-label",
|
|
@@ -6272,19 +6272,19 @@ function Pi({ buttonText: e, onButtonClick: t, showTaxesOnlyIfTime: r = !1, show
|
|
|
6272
6272
|
/* @__PURE__ */ p("div", {
|
|
6273
6273
|
className: "aaravpos-mt-auto",
|
|
6274
6274
|
children: [
|
|
6275
|
-
/* @__PURE__ */ l(
|
|
6275
|
+
/* @__PURE__ */ l(Ar, {
|
|
6276
6276
|
label: "Service",
|
|
6277
6277
|
value: /* @__PURE__ */ p(fe, { children: [/* @__PURE__ */ l(pe, { size: 14 }), B.toFixed(2)] })
|
|
6278
6278
|
}),
|
|
6279
|
-
K > 0 && /* @__PURE__ */ l(
|
|
6279
|
+
K > 0 && /* @__PURE__ */ l(Ar, {
|
|
6280
6280
|
label: "Total Duration",
|
|
6281
6281
|
value: `${K} min`
|
|
6282
6282
|
}),
|
|
6283
|
-
n && /* @__PURE__ */ l(
|
|
6283
|
+
n && /* @__PURE__ */ l(Ar, {
|
|
6284
6284
|
label: `Tip (${W}%)`,
|
|
6285
6285
|
value: /* @__PURE__ */ p(fe, { children: [/* @__PURE__ */ l(pe, { size: 14 }), E.toFixed(2)] })
|
|
6286
6286
|
}),
|
|
6287
|
-
(!r || D) && /* @__PURE__ */ l(
|
|
6287
|
+
(!r || D) && /* @__PURE__ */ l(Ar, {
|
|
6288
6288
|
label: "Taxes",
|
|
6289
6289
|
value: /* @__PURE__ */ p(fe, { children: [/* @__PURE__ */ l(pe, { size: 14 }), j.toFixed(2)] })
|
|
6290
6290
|
}),
|
|
@@ -6316,7 +6316,7 @@ function Pi({ buttonText: e, onButtonClick: t, showTaxesOnlyIfTime: r = !1, show
|
|
|
6316
6316
|
]
|
|
6317
6317
|
});
|
|
6318
6318
|
}
|
|
6319
|
-
function
|
|
6319
|
+
function Ar({ label: e, value: t }) {
|
|
6320
6320
|
return /* @__PURE__ */ p("div", {
|
|
6321
6321
|
className: "aaravpos-summary-row",
|
|
6322
6322
|
children: [/* @__PURE__ */ l("span", {
|
|
@@ -6368,7 +6368,7 @@ function t1() {
|
|
|
6368
6368
|
y.afternoon,
|
|
6369
6369
|
y.evening
|
|
6370
6370
|
].flat(), [y]), N = re(() => Ne.now().setZone(c).startOf("day"), [c]), v = re(() => N.plus({ months: 3 }).minus({ days: 1 }), [N]), w = i.map((E) => E.id), I = re(() => w.length ? a.filter((E) => w.every((T) => E?.assignments?.some((L) => L.id === T && L.assigned) ?? !1)) : [], [a, w]), M = re(() => I.filter((E) => E.id !== o?.id), [I, o]), Z = (E) => {
|
|
6371
|
-
E.id !== o?.id && (e(gi(E)), e(Ct(null)), e(
|
|
6371
|
+
E.id !== o?.id && (e(gi(E)), e(Ct(null)), e(_r(null)), e(Sr({
|
|
6372
6372
|
indexes: [],
|
|
6373
6373
|
ids: []
|
|
6374
6374
|
})));
|
|
@@ -6405,7 +6405,7 @@ function t1() {
|
|
|
6405
6405
|
a,
|
|
6406
6406
|
i
|
|
6407
6407
|
]).reduce((E, T) => E + Number(T.duration) * (T.qty || 1), 0), he = Math.ceil($e / S), Ce = f ? Ne.fromObject(f).toFormat("yyyy-MM-dd") : null, de = Ue(() => {
|
|
6408
|
-
!o?.id || !Ce || e(
|
|
6408
|
+
!o?.id || !Ce || e(jr({
|
|
6409
6409
|
tenantId: d,
|
|
6410
6410
|
staffId: o.id,
|
|
6411
6411
|
date: Ce
|
|
@@ -6475,7 +6475,7 @@ function t1() {
|
|
|
6475
6475
|
day: E.day,
|
|
6476
6476
|
month: E.month,
|
|
6477
6477
|
year: E.year
|
|
6478
|
-
})), e(
|
|
6478
|
+
})), e(_r(null));
|
|
6479
6479
|
}, oe = (E) => {
|
|
6480
6480
|
if (!_.length) return;
|
|
6481
6481
|
const T = _.slice(E, E + he);
|
|
@@ -6487,9 +6487,9 @@ function t1() {
|
|
|
6487
6487
|
ue.warning("Selected time range is not fully available");
|
|
6488
6488
|
return;
|
|
6489
6489
|
}
|
|
6490
|
-
e(
|
|
6490
|
+
e(_r(_[E].start_time));
|
|
6491
6491
|
const L = Array.from({ length: he }, (F, R) => E + R);
|
|
6492
|
-
e(
|
|
6492
|
+
e(Sr({
|
|
6493
6493
|
indexes: L,
|
|
6494
6494
|
ids: L.map((F) => _[F]?.id)
|
|
6495
6495
|
})), setTimeout(() => {
|
|
@@ -6501,7 +6501,7 @@ function t1() {
|
|
|
6501
6501
|
const E = _.findIndex((L) => L.start_time === h);
|
|
6502
6502
|
if (E === -1) return;
|
|
6503
6503
|
const T = Array.from({ length: he }, (L, F) => E + F);
|
|
6504
|
-
T.length === u.length && T.every((L, F) => L === u[F]) || e(
|
|
6504
|
+
T.length === u.length && T.every((L, F) => L === u[F]) || e(Sr({
|
|
6505
6505
|
indexes: T,
|
|
6506
6506
|
ids: T.map((L) => _[L]?.id)
|
|
6507
6507
|
}));
|
|
@@ -6530,7 +6530,7 @@ function t1() {
|
|
|
6530
6530
|
k,
|
|
6531
6531
|
D
|
|
6532
6532
|
]), se(() => {
|
|
6533
|
-
e(
|
|
6533
|
+
e(_r(null)), e(Sr({
|
|
6534
6534
|
indexes: [],
|
|
6535
6535
|
ids: []
|
|
6536
6536
|
}));
|
|
@@ -6566,7 +6566,7 @@ function t1() {
|
|
|
6566
6566
|
children: [
|
|
6567
6567
|
/* @__PURE__ */ l(jo, {
|
|
6568
6568
|
onClick: () => B(-1),
|
|
6569
|
-
children: /* @__PURE__ */ l(
|
|
6569
|
+
children: /* @__PURE__ */ l(un, { size: 20 })
|
|
6570
6570
|
}),
|
|
6571
6571
|
le.slice(g, g + r).map((E) => {
|
|
6572
6572
|
const T = Ne.fromObject({
|
|
@@ -6793,7 +6793,7 @@ var n1 = (e) => e.replace(/\D/g, "").slice(0, 16).replace(/(.{4})/g, "$1 ").trim
|
|
|
6793
6793
|
return t.length >= 3 ? `${t.slice(0, 2)}/${t.slice(2)}` : t;
|
|
6794
6794
|
}, i1 = (e) => e.replace(/\D/g, "").slice(0, 3);
|
|
6795
6795
|
function o1({ onClose: e, onPay: t, amount: r }) {
|
|
6796
|
-
const { timeZone: n } = H((u) => u.booking?.outletDetails), { control: a, handleSubmit: i, reset: o, formState: { errors: s, isSubmitting: d } } =
|
|
6796
|
+
const { timeZone: n } = H((u) => u.booking?.outletDetails), { control: a, handleSubmit: i, reset: o, formState: { errors: s, isSubmitting: d } } = Sn({ defaultValues: {
|
|
6797
6797
|
name: "",
|
|
6798
6798
|
number: "",
|
|
6799
6799
|
expiry: "",
|
|
@@ -7076,10 +7076,10 @@ function p1(e, t) {
|
|
|
7076
7076
|
configurable: !0
|
|
7077
7077
|
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Va(e, t);
|
|
7078
7078
|
}
|
|
7079
|
-
function
|
|
7080
|
-
return
|
|
7079
|
+
function pn(e) {
|
|
7080
|
+
return pn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
7081
7081
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
7082
|
-
},
|
|
7082
|
+
}, pn(e);
|
|
7083
7083
|
}
|
|
7084
7084
|
function Td() {
|
|
7085
7085
|
try {
|
|
@@ -7103,9 +7103,9 @@ function m1(e, t) {
|
|
|
7103
7103
|
function v1(e) {
|
|
7104
7104
|
var t = Td();
|
|
7105
7105
|
return function() {
|
|
7106
|
-
var r, n =
|
|
7106
|
+
var r, n = pn(e);
|
|
7107
7107
|
if (t) {
|
|
7108
|
-
var a =
|
|
7108
|
+
var a = pn(this).constructor;
|
|
7109
7109
|
r = Reflect.construct(n, arguments, a);
|
|
7110
7110
|
} else r = n.apply(this, arguments);
|
|
7111
7111
|
return m1(this, r);
|
|
@@ -8021,7 +8021,7 @@ Bn.propTypes = {
|
|
|
8021
8021
|
Bn.defaultProps = { clearOnResize: !0 };
|
|
8022
8022
|
Bn.refNullError = /* @__PURE__ */ new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");
|
|
8023
8023
|
var O1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a }) => {
|
|
8024
|
-
const i = Ae(null), { register: o, handleSubmit: s, control: d, reset: c, watch: u, setValue: f, formState: { errors: h, isSubmitting: y } } =
|
|
8024
|
+
const i = Ae(null), { register: o, handleSubmit: s, control: d, reset: c, watch: u, setValue: f, formState: { errors: h, isSubmitting: y } } = Sn({
|
|
8025
8025
|
defaultValues: {
|
|
8026
8026
|
accepted: !1,
|
|
8027
8027
|
typedName: "",
|
|
@@ -16003,7 +16003,7 @@ function nm(e, t) {
|
|
|
16003
16003
|
a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
|
|
16004
16004
|
return r;
|
|
16005
16005
|
}
|
|
16006
|
-
function
|
|
16006
|
+
function hn(e, t) {
|
|
16007
16007
|
var r = e.inputComponent, n = r === void 0 ? "input" : r, a = e.parse, i = e.format, o = e.value, s = e.defaultValue, d = e.onChange, c = e.controlled, u = e.onKeyDown, f = e.type, h = f === void 0 ? "text" : f, y = rm(e, Q1), m = J1(em({
|
|
16008
16008
|
ref: t,
|
|
16009
16009
|
parse: a,
|
|
@@ -16017,8 +16017,8 @@ function pn(e, t) {
|
|
|
16017
16017
|
}, y));
|
|
16018
16018
|
return /* @__PURE__ */ V.createElement(n, m);
|
|
16019
16019
|
}
|
|
16020
|
-
|
|
16021
|
-
|
|
16020
|
+
hn = /* @__PURE__ */ V.forwardRef(hn);
|
|
16021
|
+
hn.propTypes = {
|
|
16022
16022
|
parse: A.default.func.isRequired,
|
|
16023
16023
|
format: A.default.func.isRequired,
|
|
16024
16024
|
inputComponent: A.default.elementType,
|
|
@@ -16031,7 +16031,7 @@ pn.propTypes = {
|
|
|
16031
16031
|
onCut: A.default.func,
|
|
16032
16032
|
onPaste: A.default.func
|
|
16033
16033
|
};
|
|
16034
|
-
var am =
|
|
16034
|
+
var am = hn;
|
|
16035
16035
|
function Ho(e, t) {
|
|
16036
16036
|
e = e.split("-"), t = t.split("-");
|
|
16037
16037
|
for (var r = e[0].split("."), n = t[0].split("."), a = 0; a < 3; a++) {
|
|
@@ -16879,9 +16879,9 @@ function Km(e, t, r, n) {
|
|
|
16879
16879
|
var a = n.countryCallingCode(), i = r.v2 ? e.nationalNumber : e.phone, o;
|
|
16880
16880
|
switch (t) {
|
|
16881
16881
|
case "NATIONAL":
|
|
16882
|
-
return i ? (o =
|
|
16882
|
+
return i ? (o = mn(i, e.carrierCode, "NATIONAL", n, r), fa(o, e.ext, n, r.formatExtension)) : "";
|
|
16883
16883
|
case "INTERNATIONAL":
|
|
16884
|
-
return i ? (o =
|
|
16884
|
+
return i ? (o = mn(i, null, "INTERNATIONAL", n, r), o = "+".concat(a, " ").concat(o), fa(o, e.ext, n, r.formatExtension)) : "+".concat(a);
|
|
16885
16885
|
case "E.164":
|
|
16886
16886
|
return "+".concat(a).concat(i);
|
|
16887
16887
|
case "RFC3966":
|
|
@@ -16897,7 +16897,7 @@ function Km(e, t, r, n) {
|
|
|
16897
16897
|
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
|
|
16898
16898
|
}
|
|
16899
16899
|
}
|
|
16900
|
-
function
|
|
16900
|
+
function mn(e, t, r, n, a) {
|
|
16901
16901
|
var i = Ym(n.formats(), e);
|
|
16902
16902
|
return i ? qd(e, i, {
|
|
16903
16903
|
useInternationalFormat: r === "INTERNATIONAL",
|
|
@@ -16920,11 +16920,11 @@ function fa(e, t, r, n) {
|
|
|
16920
16920
|
}
|
|
16921
16921
|
function Xm(e, t, r, n, a) {
|
|
16922
16922
|
if (nt(n, a.metadata) === r) {
|
|
16923
|
-
var i =
|
|
16923
|
+
var i = mn(e, t, "NATIONAL", a);
|
|
16924
16924
|
return r === "1" ? r + " " + i : i;
|
|
16925
16925
|
}
|
|
16926
16926
|
var o = Fm(n, void 0, a.metadata);
|
|
16927
|
-
if (o) return "".concat(o, " ").concat(r, " ").concat(
|
|
16927
|
+
if (o) return "".concat(o, " ").concat(r, " ").concat(mn(e, null, "INTERNATIONAL", a));
|
|
16928
16928
|
}
|
|
16929
16929
|
function Zm() {
|
|
16930
16930
|
for (var e = 1, t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
|
|
@@ -17301,7 +17301,7 @@ var b2 = {
|
|
|
17301
17301
|
function Yd(e) {
|
|
17302
17302
|
return b2[e];
|
|
17303
17303
|
}
|
|
17304
|
-
function
|
|
17304
|
+
function vn(e) {
|
|
17305
17305
|
for (var t = "", r = g2(e.split("")), n; !(n = r()).done; ) {
|
|
17306
17306
|
var a = n.value, i = Yd(a);
|
|
17307
17307
|
i && (t += i);
|
|
@@ -17893,7 +17893,7 @@ function bs(e, t) {
|
|
|
17893
17893
|
return n;
|
|
17894
17894
|
}
|
|
17895
17895
|
var pa = new RegExp("x");
|
|
17896
|
-
function
|
|
17896
|
+
function Kr(e, t) {
|
|
17897
17897
|
if (t < 1) return "";
|
|
17898
17898
|
for (var r = ""; t > 1; )
|
|
17899
17899
|
t & 1 && (r += e), t >>= 1, e += e;
|
|
@@ -17958,7 +17958,7 @@ function Cs(e, t, r) {
|
|
|
17958
17958
|
if (a || (e.nationalPrefix ? o = e.nationalPrefix + i(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), Nv(o, e)) return o;
|
|
17959
17959
|
}
|
|
17960
17960
|
function Nv(e, t) {
|
|
17961
|
-
return
|
|
17961
|
+
return vn(e) === t.getNationalDigits();
|
|
17962
17962
|
}
|
|
17963
17963
|
function nr(e) {
|
|
17964
17964
|
"@babel/helpers - typeof";
|
|
@@ -18309,9 +18309,9 @@ function Bv(e, t) {
|
|
|
18309
18309
|
}
|
|
18310
18310
|
return (t === "string" ? String : Number)(e);
|
|
18311
18311
|
}
|
|
18312
|
-
var Ja = "9", Uv =
|
|
18312
|
+
var Ja = "9", Uv = Kr(Ja, 15), Vv = /[- ]/, yn = !0, zv = yn && function() {
|
|
18313
18313
|
return /\[([^\[\]])*\]/g;
|
|
18314
|
-
}, Wv =
|
|
18314
|
+
}, Wv = yn && function() {
|
|
18315
18315
|
return /\d(?=[^,}][^,}])/g;
|
|
18316
18316
|
}, qv = new RegExp("[" + ze + "]*\\$1[" + ze + "]*(\\$\\d[" + ze + "]*)*$"), Ts = 3, Gv = /* @__PURE__ */ (function() {
|
|
18317
18317
|
function e(t) {
|
|
@@ -18414,7 +18414,7 @@ var Ja = "9", Uv = Hr(Ja, 15), Vv = /[- ]/, vn = !0, zv = vn && function() {
|
|
|
18414
18414
|
{
|
|
18415
18415
|
key: "createTemplateForFormat",
|
|
18416
18416
|
value: function(r, n) {
|
|
18417
|
-
if (!(
|
|
18417
|
+
if (!(yn && r.pattern().indexOf("|") >= 0)) {
|
|
18418
18418
|
var a = this.getTemplateForFormat(r, n);
|
|
18419
18419
|
if (a)
|
|
18420
18420
|
return this.setNationalNumberTemplate(a, n), !0;
|
|
@@ -18447,14 +18447,14 @@ var Ja = "9", Uv = Hr(Ja, 15), Vv = /[- ]/, vn = !0, zv = vn && function() {
|
|
|
18447
18447
|
{
|
|
18448
18448
|
key: "setNationalNumberTemplate",
|
|
18449
18449
|
value: function(r, n) {
|
|
18450
|
-
this.nationalNumberTemplate = r, this.populatedNationalNumberTemplate = r, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, "x") +
|
|
18450
|
+
this.nationalNumberTemplate = r, this.populatedNationalNumberTemplate = r, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, "x") + Kr("x", n.callingCode.length) + " " + r : this.template = r;
|
|
18451
18451
|
}
|
|
18452
18452
|
},
|
|
18453
18453
|
{
|
|
18454
18454
|
key: "getTemplateForFormat",
|
|
18455
18455
|
value: function(r, n) {
|
|
18456
18456
|
var a = n.nationalSignificantNumber, i = n.international, o = n.nationalPrefix, s = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, d = r.pattern();
|
|
18457
|
-
|
|
18457
|
+
yn && (d = d.replace(zv(), "\\d").replace(Wv(), "\\d"));
|
|
18458
18458
|
var c = Uv.match(d)[0];
|
|
18459
18459
|
if (!(a.length > c.length)) {
|
|
18460
18460
|
var u = new RegExp("^" + d + "$"), f = a.replace(/\d/g, Ja);
|
|
@@ -18465,12 +18465,12 @@ var Ja = "9", Uv = Hr(Ja, 15), Vv = /[- ]/, vn = !0, zv = vn && function() {
|
|
|
18465
18465
|
nationalPrefix: o
|
|
18466
18466
|
})) {
|
|
18467
18467
|
var m = h.replace(Wd, r.nationalPrefixFormattingRule());
|
|
18468
|
-
if (
|
|
18468
|
+
if (vn(r.nationalPrefixFormattingRule()) === (o || "") + vn("$1") && (h = m, y = !0, o))
|
|
18469
18469
|
for (var $ = o.length; $ > 0; )
|
|
18470
18470
|
h = h.replace(/\d/, "x"), $--;
|
|
18471
18471
|
}
|
|
18472
18472
|
var b = c.replace(new RegExp(d), h).replace(new RegExp(Ja, "g"), "x");
|
|
18473
|
-
return y || (s ? b =
|
|
18473
|
+
return y || (s ? b = Kr("x", s.length) + " " + b : o && (b = Kr("x", o.length) + this.getSeparatorAfterNationalPrefix(r) + b)), i && (b = zd(b)), b;
|
|
18474
18474
|
}
|
|
18475
18475
|
}
|
|
18476
18476
|
},
|
|
@@ -18583,7 +18583,7 @@ var ty = "[" + ze + Pe + "]+", ry = new RegExp("^" + ty + "$", "i"), ny = "(?:["
|
|
|
18583
18583
|
{
|
|
18584
18584
|
key: "input",
|
|
18585
18585
|
value: function(r, n) {
|
|
18586
|
-
var a = Qd(dy(r), 2), i = a[0], o = a[1], s =
|
|
18586
|
+
var a = Qd(dy(r), 2), i = a[0], o = a[1], s = vn(i), d;
|
|
18587
18587
|
return o && (n.digits || (n.startInternationalNumber(void 0, void 0), s || (d = !0))), s && this.inputDigits(s, n), {
|
|
18588
18588
|
digits: s,
|
|
18589
18589
|
justLeadingPlus: d
|
|
@@ -19036,7 +19036,7 @@ function Ms(e) {
|
|
|
19036
19036
|
function $y(e, t, r) {
|
|
19037
19037
|
return r || (r = t, t = void 0), new Mt(t, r).input(e);
|
|
19038
19038
|
}
|
|
19039
|
-
var
|
|
19039
|
+
var gn = /* @__PURE__ */ oi(A1(), 1);
|
|
19040
19040
|
function ec(e) {
|
|
19041
19041
|
var t = e.inputFormat, r = e.country, n = e.metadata;
|
|
19042
19042
|
return t === "NATIONAL_PART_OF_INTERNATIONAL" ? "+".concat(nt(r, n)) : "";
|
|
@@ -19270,14 +19270,14 @@ function js(e, t) {
|
|
|
19270
19270
|
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
19271
19271
|
return n;
|
|
19272
19272
|
}
|
|
19273
|
-
function
|
|
19274
|
-
return
|
|
19273
|
+
function $n() {
|
|
19274
|
+
return $n = Object.assign ? Object.assign.bind() : function(e) {
|
|
19275
19275
|
for (var t = 1; t < arguments.length; t++) {
|
|
19276
19276
|
var r = arguments[t];
|
|
19277
19277
|
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
19278
19278
|
}
|
|
19279
19279
|
return e;
|
|
19280
|
-
},
|
|
19280
|
+
}, $n.apply(this, arguments);
|
|
19281
19281
|
}
|
|
19282
19282
|
function rc(e, t) {
|
|
19283
19283
|
if (e == null) return {};
|
|
@@ -19303,7 +19303,7 @@ function nc(e) {
|
|
|
19303
19303
|
}, [r]);
|
|
19304
19304
|
return re(function() {
|
|
19305
19305
|
return ic(n, t);
|
|
19306
|
-
}, [n, t]), /* @__PURE__ */ V.createElement("select",
|
|
19306
|
+
}, [n, t]), /* @__PURE__ */ V.createElement("select", $n({}, o, {
|
|
19307
19307
|
disabled: a || i,
|
|
19308
19308
|
readOnly: i,
|
|
19309
19309
|
value: t || "ZZ",
|
|
@@ -19340,10 +19340,10 @@ function ac(e) {
|
|
|
19340
19340
|
var i = e.arrowComponent, o = i === void 0 ? Uy : i, s = e.unicodeFlags, d = rc(e, My), c = re(function() {
|
|
19341
19341
|
return ic(r, t);
|
|
19342
19342
|
}, [r, t]);
|
|
19343
|
-
return /* @__PURE__ */ V.createElement("div", { className: "PhoneInputCountry" }, /* @__PURE__ */ V.createElement(nc,
|
|
19343
|
+
return /* @__PURE__ */ V.createElement("div", { className: "PhoneInputCountry" }, /* @__PURE__ */ V.createElement(nc, $n({}, d, {
|
|
19344
19344
|
value: t,
|
|
19345
19345
|
options: r,
|
|
19346
|
-
className: (0,
|
|
19346
|
+
className: (0, gn.default)("PhoneInputCountrySelect", n)
|
|
19347
19347
|
})), c && (s && t ? /* @__PURE__ */ V.createElement("div", { className: "PhoneInputCountryIconUnicode" }, Ry(t)) : /* @__PURE__ */ V.createElement(a, {
|
|
19348
19348
|
"aria-hidden": !0,
|
|
19349
19349
|
country: t,
|
|
@@ -19416,14 +19416,14 @@ Ri.propTypes = {
|
|
|
19416
19416
|
flagUrl: A.default.string.isRequired
|
|
19417
19417
|
};
|
|
19418
19418
|
var Gy = ["aspectRatio"], Hy = ["title"], Ky = ["title"];
|
|
19419
|
-
function
|
|
19420
|
-
return
|
|
19419
|
+
function bn() {
|
|
19420
|
+
return bn = Object.assign ? Object.assign.bind() : function(e) {
|
|
19421
19421
|
for (var t = 1; t < arguments.length; t++) {
|
|
19422
19422
|
var r = arguments[t];
|
|
19423
19423
|
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
19424
19424
|
}
|
|
19425
19425
|
return e;
|
|
19426
|
-
},
|
|
19426
|
+
}, bn.apply(this, arguments);
|
|
19427
19427
|
}
|
|
19428
19428
|
function Di(e, t) {
|
|
19429
19429
|
if (e == null) return {};
|
|
@@ -19452,7 +19452,7 @@ qn.propTypes = {
|
|
|
19452
19452
|
};
|
|
19453
19453
|
function oc(e) {
|
|
19454
19454
|
var t = e.title, r = Di(e, Hy);
|
|
19455
|
-
return /* @__PURE__ */ V.createElement("svg",
|
|
19455
|
+
return /* @__PURE__ */ V.createElement("svg", bn({}, r, {
|
|
19456
19456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19457
19457
|
viewBox: "0 0 75 50"
|
|
19458
19458
|
}), /* @__PURE__ */ V.createElement("title", null, t), /* @__PURE__ */ V.createElement("g", {
|
|
@@ -19490,7 +19490,7 @@ function oc(e) {
|
|
|
19490
19490
|
oc.propTypes = { title: A.default.string.isRequired };
|
|
19491
19491
|
function sc(e) {
|
|
19492
19492
|
var t = e.title, r = Di(e, Ky);
|
|
19493
|
-
return /* @__PURE__ */ V.createElement("svg",
|
|
19493
|
+
return /* @__PURE__ */ V.createElement("svg", bn({}, r, {
|
|
19494
19494
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19495
19495
|
viewBox: "0 0 50 50"
|
|
19496
19496
|
}), /* @__PURE__ */ V.createElement("title", null, t), /* @__PURE__ */ V.createElement("g", {
|
|
@@ -19633,7 +19633,7 @@ function cc(e) {
|
|
|
19633
19633
|
var t = e.flags, r = e.flagUrl, n = e.flagComponent, a = e.internationalIcon;
|
|
19634
19634
|
function i(o) {
|
|
19635
19635
|
var s = o.country, d = o.label, c = o.aspectRatio, u = rg(o, tg), f = a === qn ? c : void 0;
|
|
19636
|
-
return /* @__PURE__ */ V.createElement("div", ni({}, u, { className: (0,
|
|
19636
|
+
return /* @__PURE__ */ V.createElement("div", ni({}, u, { className: (0, gn.default)("PhoneInputCountryIcon", {
|
|
19637
19637
|
"PhoneInputCountryIcon--square": f === 1,
|
|
19638
19638
|
"PhoneInputCountryIcon--border": s
|
|
19639
19639
|
}) }), s ? /* @__PURE__ */ V.createElement(n, {
|
|
@@ -19876,7 +19876,7 @@ function zs(e, t) {
|
|
|
19876
19876
|
}
|
|
19877
19877
|
return r;
|
|
19878
19878
|
}
|
|
19879
|
-
function
|
|
19879
|
+
function Tr(e) {
|
|
19880
19880
|
for (var t = 1; t < arguments.length; t++) {
|
|
19881
19881
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
19882
19882
|
t % 2 ? zs(Object(r), !0).forEach(function(n) {
|
|
@@ -19913,7 +19913,7 @@ function Ng(e, t, r) {
|
|
|
19913
19913
|
var n = e.metadata, a = e.countries, i = e.defaultCountry, o = e.value, s = e.reset, d = e.international, c = e.displayInitialValueAsLocalNumber, u = e.initialValueFormat, f = t.defaultCountry, h = t.value, y = t.reset;
|
|
19914
19914
|
r.country;
|
|
19915
19915
|
var m = r.value, $ = r.hasUserSelectedACountry, b = r.latestCountrySelectedByUser, g = function(M) {
|
|
19916
|
-
return vc(
|
|
19916
|
+
return vc(Tr(Tr({}, M), {}, {
|
|
19917
19917
|
international: d,
|
|
19918
19918
|
useNationalFormat: c || u === "national",
|
|
19919
19919
|
metadata: n
|
|
@@ -19958,7 +19958,7 @@ function Ng(e, t, r) {
|
|
|
19958
19958
|
return o ? b && ((N ? b === N : wt(o, b, n)) ? N || (N = b) : w = { latestCountrySelectedByUser: void 0 }) : w = {
|
|
19959
19959
|
latestCountrySelectedByUser: void 0,
|
|
19960
19960
|
hasUserSelectedACountry: void 0
|
|
19961
|
-
},
|
|
19961
|
+
}, Tr(Tr({}, w), {}, {
|
|
19962
19962
|
phoneDigits: g({
|
|
19963
19963
|
phoneNumber: _,
|
|
19964
19964
|
value: o,
|
|
@@ -20075,7 +20075,7 @@ function Eg(e, t, r) {
|
|
|
20075
20075
|
return t && Gs(e.prototype, t), r && Gs(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
20076
20076
|
}
|
|
20077
20077
|
function Pg(e, t, r) {
|
|
20078
|
-
return t =
|
|
20078
|
+
return t = Nn(t), Og(e, gc() ? Reflect.construct(t, r || [], Nn(e).constructor) : t.apply(e, r));
|
|
20079
20079
|
}
|
|
20080
20080
|
function Og(e, t) {
|
|
20081
20081
|
if (t && (It(t) === "object" || typeof t == "function")) return t;
|
|
@@ -20096,10 +20096,10 @@ function gc() {
|
|
|
20096
20096
|
return !!e;
|
|
20097
20097
|
})();
|
|
20098
20098
|
}
|
|
20099
|
-
function
|
|
20100
|
-
return
|
|
20099
|
+
function Nn(e) {
|
|
20100
|
+
return Nn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
20101
20101
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
20102
|
-
},
|
|
20102
|
+
}, Nn(e);
|
|
20103
20103
|
}
|
|
20104
20104
|
function Tg(e, t) {
|
|
20105
20105
|
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -20303,7 +20303,7 @@ var Ig = /* @__PURE__ */ (function(e) {
|
|
|
20303
20303
|
var _ = Sg(n, Cg), N = this.state, v = N.country, w = N.countries, I = N.phoneDigits, M = N.isFocused, Z = h ? Oy : xy, ie = this.getCountrySelectOptions({ countries: w });
|
|
20304
20304
|
return /* @__PURE__ */ V.createElement($, Et({
|
|
20305
20305
|
style: d,
|
|
20306
|
-
className: (0,
|
|
20306
|
+
className: (0, gn.default)(c, "PhoneInput", {
|
|
20307
20307
|
"PhoneInput--focus": M,
|
|
20308
20308
|
"PhoneInput--disabled": i,
|
|
20309
20309
|
"PhoneInput--readOnly": o
|
|
@@ -20338,7 +20338,7 @@ var Ig = /* @__PURE__ */ (function(e) {
|
|
|
20338
20338
|
disabled: i,
|
|
20339
20339
|
readOnly: o,
|
|
20340
20340
|
inputComponent: u,
|
|
20341
|
-
className: (0,
|
|
20341
|
+
className: (0, gn.default)("PhoneInputInput", f && f.className, _.className)
|
|
20342
20342
|
})));
|
|
20343
20343
|
}
|
|
20344
20344
|
}
|
|
@@ -20736,7 +20736,7 @@ var Bg = [
|
|
|
20736
20736
|
"Oct",
|
|
20737
20737
|
"Nov",
|
|
20738
20738
|
"Dec"
|
|
20739
|
-
],
|
|
20739
|
+
], kr = "consentDraftByService", Ug = 15, Vg = [
|
|
20740
20740
|
"IN",
|
|
20741
20741
|
"US",
|
|
20742
20742
|
"CA",
|
|
@@ -20760,7 +20760,7 @@ var Bg = [
|
|
|
20760
20760
|
return +`${t}${r}`;
|
|
20761
20761
|
};
|
|
20762
20762
|
function Wg() {
|
|
20763
|
-
const e = Re(), { tenantId: t, id: r } = H((P) => P.booking.outletDetails), { timeZone: n, image: a, outletName: i, address: o } = H((P) => P.booking.outletDetails), { staff: s, selectedServices: d, selectedProfessional: c } = H((P) => P.booking.service), { selectedSlotIds: u, selectedDate: f, selectedTime: h } = H((P) => P.booking.slots), { userDetails: y, bookingMode: m, tipPct: $ } = H((P) => P.booking.appointment), b = Array.isArray(d) ? d : [d], { selectedSlotIndexes: g, slots: C } = H((P) => P.booking.slots), [S, _] = z(!1), [N, v] = z(!1), [w, I] = z(null), [M, Z] = z("person"), [ie, le] = z(!1), [$e, he] = z(""), [Ce, de] = z(""), [B, K] = z(!1), [te, oe] = z(null), [Se, k] = z(null), [D, G] = z({}), [q, j] = z({}), [W, E] = z(!1), T = Ae(!1), L = Ae(""), F = Ne.now().setZone(n ?? "UTC"), [R, O] = z(null), [J, ce] = z(!1), _e = Ae(""), Fe = Ae(null), { register: Hn, handleSubmit: Mi, control: Sc, watch: Lt, reset:
|
|
20763
|
+
const e = Re(), { tenantId: t, id: r } = H((P) => P.booking.outletDetails), { timeZone: n, image: a, outletName: i, address: o } = H((P) => P.booking.outletDetails), { staff: s, selectedServices: d, selectedProfessional: c } = H((P) => P.booking.service), { selectedSlotIds: u, selectedDate: f, selectedTime: h } = H((P) => P.booking.slots), { userDetails: y, bookingMode: m, tipPct: $ } = H((P) => P.booking.appointment), b = Array.isArray(d) ? d : [d], { selectedSlotIndexes: g, slots: C } = H((P) => P.booking.slots), [S, _] = z(!1), [N, v] = z(!1), [w, I] = z(null), [M, Z] = z("person"), [ie, le] = z(!1), [$e, he] = z(""), [Ce, de] = z(""), [B, K] = z(!1), [te, oe] = z(null), [Se, k] = z(null), [D, G] = z({}), [q, j] = z({}), [W, E] = z(!1), T = Ae(!1), L = Ae(""), F = Ne.now().setZone(n ?? "UTC"), [R, O] = z(null), [J, ce] = z(!1), _e = Ae(""), Fe = Ae(null), { register: Hn, handleSubmit: Mi, control: Sc, watch: Lt, reset: mr, trigger: Li, setValue: Ft, formState: { errors: Je, isSubmitted: Fi } } = Sn({
|
|
20764
20764
|
defaultValues: {
|
|
20765
20765
|
firstName: y?.firstName || "",
|
|
20766
20766
|
lastName: y?.lastName || "",
|
|
@@ -20769,7 +20769,7 @@ function Wg() {
|
|
|
20769
20769
|
},
|
|
20770
20770
|
mode: "onChange",
|
|
20771
20771
|
reValidateMode: "onChange"
|
|
20772
|
-
}),
|
|
20772
|
+
}), vr = Lt("phone"), jt = Lt("email"), ji = vr ? et(vr) : !1, Bi = jt ? /^\S+@\S+\.\S+$/.test(jt) : !1, _c = !Bi || ji, wc = !ji || Bi, Ec = (P) => P?.replace(/\s+/g, "") || "", Pc = (P) => /^\S+@\S+\.\S+$/.test(P), Kn = b.map((P) => {
|
|
20773
20773
|
const x = s?.find((X) => X.id === c?.id)?.assignments?.find((X) => X.id === P.id), U = {
|
|
20774
20774
|
...P,
|
|
20775
20775
|
price: x?.price ?? P.price ?? P.min_price ?? 0,
|
|
@@ -20808,17 +20808,17 @@ function Wg() {
|
|
|
20808
20808
|
se(() => {
|
|
20809
20809
|
y && De?.length > 0 && Lc();
|
|
20810
20810
|
}, [y, De?.length]), se(() => {
|
|
20811
|
-
|
|
20811
|
+
mr({
|
|
20812
20812
|
...y,
|
|
20813
20813
|
phone: y?.phone || ""
|
|
20814
20814
|
}, {
|
|
20815
20815
|
keepErrors: !0,
|
|
20816
20816
|
keepDirty: !1
|
|
20817
20817
|
});
|
|
20818
|
-
}, [y,
|
|
20818
|
+
}, [y, mr]), se(() => {
|
|
20819
20819
|
Fi && Li(["phone", "email"]);
|
|
20820
20820
|
}, [
|
|
20821
|
-
|
|
20821
|
+
vr,
|
|
20822
20822
|
jt,
|
|
20823
20823
|
Fi,
|
|
20824
20824
|
Li
|
|
@@ -20872,7 +20872,7 @@ function Wg() {
|
|
|
20872
20872
|
type: U
|
|
20873
20873
|
});
|
|
20874
20874
|
}, Mc = () => {
|
|
20875
|
-
|
|
20875
|
+
mr({
|
|
20876
20876
|
firstName: "",
|
|
20877
20877
|
lastName: "",
|
|
20878
20878
|
email: "",
|
|
@@ -20950,8 +20950,8 @@ function Wg() {
|
|
|
20950
20950
|
const me = y?.id;
|
|
20951
20951
|
if (Oo(P) !== "EVERY_VISIT" && me) {
|
|
20952
20952
|
const Ee = !!(await To(me, U, x))?.data?.needsSignature;
|
|
20953
|
-
if (j((
|
|
20954
|
-
...
|
|
20953
|
+
if (j((yr) => ({
|
|
20954
|
+
...yr,
|
|
20955
20955
|
[x]: { data: {
|
|
20956
20956
|
checked: !0,
|
|
20957
20957
|
needsSignature: Ee
|
|
@@ -20981,14 +20981,14 @@ function Wg() {
|
|
|
20981
20981
|
}
|
|
20982
20982
|
}, Fc = (P, x) => {
|
|
20983
20983
|
try {
|
|
20984
|
-
const U = localStorage.getItem(
|
|
20985
|
-
X[String(P)] = x, localStorage.setItem(
|
|
20984
|
+
const U = localStorage.getItem(kr), X = U ? JSON.parse(U) : {};
|
|
20985
|
+
X[String(P)] = x, localStorage.setItem(kr, JSON.stringify(X));
|
|
20986
20986
|
} catch (U) {
|
|
20987
20987
|
console.error("Failed to save consent draft", U);
|
|
20988
20988
|
}
|
|
20989
20989
|
}, jc = () => {
|
|
20990
20990
|
try {
|
|
20991
|
-
return JSON.parse(localStorage.getItem(
|
|
20991
|
+
return JSON.parse(localStorage.getItem(kr) ?? "{}");
|
|
20992
20992
|
} catch {
|
|
20993
20993
|
return {};
|
|
20994
20994
|
}
|
|
@@ -21021,7 +21021,7 @@ function Wg() {
|
|
|
21021
21021
|
captured: be
|
|
21022
21022
|
})).filter((ne) => ne.serviceId && ne.concentFormId);
|
|
21023
21023
|
for (const ne of me) {
|
|
21024
|
-
const { serviceId: be, concentFormId: Ie, captured: Ee } = ne,
|
|
21024
|
+
const { serviceId: be, concentFormId: Ie, captured: Ee } = ne, yr = Ee.signatureType || (Ee.typedName ? "TYPED_NAME" : Ee.signatureDataUrl ? "SIGNATURE_IMAGE" : "CHECKBOX_ONLY"), to = {
|
|
21025
21025
|
tenantId: t,
|
|
21026
21026
|
outletId: r,
|
|
21027
21027
|
appointmentId: P,
|
|
@@ -21029,13 +21029,13 @@ function Wg() {
|
|
|
21029
21029
|
serviceId: be,
|
|
21030
21030
|
formId: Ie,
|
|
21031
21031
|
staffId: U,
|
|
21032
|
-
signatureType:
|
|
21032
|
+
signatureType: yr,
|
|
21033
21033
|
typedName: Ee.typedName,
|
|
21034
21034
|
imageUrl: Ee.signatureDataUrl
|
|
21035
21035
|
};
|
|
21036
|
-
|
|
21036
|
+
yr === "CHECKBOX_ONLY" && (to.isChecked = Ee.isChecked ?? !0), await $p(to);
|
|
21037
21037
|
}
|
|
21038
|
-
localStorage.removeItem(
|
|
21038
|
+
localStorage.removeItem(kr);
|
|
21039
21039
|
};
|
|
21040
21040
|
let Qi = "";
|
|
21041
21041
|
f && (Qi = `${f?.year}-${String(f?.month).padStart(2, "0")}-${String(f?.day).padStart(2, "0")}`);
|
|
@@ -21078,11 +21078,11 @@ function Wg() {
|
|
|
21078
21078
|
}
|
|
21079
21079
|
try {
|
|
21080
21080
|
_(!0);
|
|
21081
|
-
const me = await e(
|
|
21081
|
+
const me = await e(Br(X)).unwrap(), ne = me?.data ?? me, be = ne.id || "", Ie = ne.customerId || ne.customer?.id || "", Ee = ne.staffId || c?.id || "";
|
|
21082
21082
|
m === "booking" && Xi > 0 && await Vc(be, Ie, Ee), M === "card" ? (I({
|
|
21083
21083
|
appointmentId: be,
|
|
21084
21084
|
customerId: Ie
|
|
21085
|
-
}), v(!0)) : (e(
|
|
21085
|
+
}), v(!0)) : (e(wr(String(be))), e(Te()));
|
|
21086
21086
|
} catch (me) {
|
|
21087
21087
|
const ne = me?.payload?.message || me?.data?.message || me?.message || "Staff not working on this day";
|
|
21088
21088
|
ue.error(ne);
|
|
@@ -21131,7 +21131,7 @@ function Wg() {
|
|
|
21131
21131
|
ue.error("Select time");
|
|
21132
21132
|
return;
|
|
21133
21133
|
}
|
|
21134
|
-
e(zt(U)), e(
|
|
21134
|
+
e(zt(U)), e(hr(!0)), K(!1);
|
|
21135
21135
|
}, qc = (P) => {
|
|
21136
21136
|
const x = P.replace(/\s/g, "");
|
|
21137
21137
|
return /^4/.test(x) ? "VISA" : /^5[1-5]/.test(x) ? "MASTERCARD" : /^3[47]/.test(x) ? "AMEX" : /^6/.test(x) ? "DISCOVER" : "UNKNOWN";
|
|
@@ -21194,16 +21194,16 @@ function Wg() {
|
|
|
21194
21194
|
ue.warning(Ee instanceof Error ? Ee.message : String(Ee ?? "Payment done, but finalize failed"));
|
|
21195
21195
|
}
|
|
21196
21196
|
} else ue.warning("Payment pending");
|
|
21197
|
-
return v(!1), e(
|
|
21197
|
+
return v(!1), e(wr(String(w?.appointmentId))), e(Te()), !0;
|
|
21198
21198
|
} catch (x) {
|
|
21199
|
-
return ue.warning(x instanceof Error ? x.message : "Payment failed, but appointment is booked"), v(!1), e(
|
|
21199
|
+
return ue.warning(x instanceof Error ? x.message : "Payment failed, but appointment is booked"), v(!1), e(wr(String(w?.appointmentId))), e(Te()), !0;
|
|
21200
21200
|
} finally {
|
|
21201
21201
|
_(!1);
|
|
21202
21202
|
}
|
|
21203
21203
|
}, Hc = () => {
|
|
21204
|
-
v(!1), ue.warning("Appointment booked. Payment was cancelled."), e(
|
|
21204
|
+
v(!1), ue.warning("Appointment booked. Payment was cancelled."), e(wr(String(w?.appointmentId))), e(Te());
|
|
21205
21205
|
}, Kc = () => {
|
|
21206
|
-
|
|
21206
|
+
mr({
|
|
21207
21207
|
firstName: y?.firstName || "",
|
|
21208
21208
|
lastName: y?.lastName || "",
|
|
21209
21209
|
phone: y?.phone || "",
|
|
@@ -21394,7 +21394,7 @@ function Wg() {
|
|
|
21394
21394
|
message: "Email must be maximum 50 characters"
|
|
21395
21395
|
},
|
|
21396
21396
|
validate: (P) => {
|
|
21397
|
-
const x = !!P?.trim(), U = !ma(
|
|
21397
|
+
const x = !!P?.trim(), U = !ma(vr);
|
|
21398
21398
|
return !x && !U ? "Enter phone or email" : x && !/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(P) ? "Invalid email" : !0;
|
|
21399
21399
|
},
|
|
21400
21400
|
onChange: (P) => {
|
|
@@ -21561,7 +21561,7 @@ function Wg() {
|
|
|
21561
21561
|
className: "booking-confirm-info-item",
|
|
21562
21562
|
children: [/* @__PURE__ */ l("div", {
|
|
21563
21563
|
className: "booking-confirm-icon-circle",
|
|
21564
|
-
children: /* @__PURE__ */ l(
|
|
21564
|
+
children: /* @__PURE__ */ l(fn, { size: 15 })
|
|
21565
21565
|
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ l(yt, { children: "First Name" }), /* @__PURE__ */ l("p", {
|
|
21566
21566
|
className: "booking-confirm-info-val",
|
|
21567
21567
|
children: y?.firstName || "-"
|
|
@@ -21571,7 +21571,7 @@ function Wg() {
|
|
|
21571
21571
|
className: "booking-confirm-info-item",
|
|
21572
21572
|
children: [/* @__PURE__ */ l("div", {
|
|
21573
21573
|
className: "booking-confirm-icon-circle",
|
|
21574
|
-
children: /* @__PURE__ */ l(
|
|
21574
|
+
children: /* @__PURE__ */ l(fn, { size: 15 })
|
|
21575
21575
|
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ l(yt, { children: "Last Name" }), /* @__PURE__ */ l("p", {
|
|
21576
21576
|
className: "booking-confirm-info-val",
|
|
21577
21577
|
children: y?.lastName || "-"
|
|
@@ -21678,7 +21678,7 @@ var Kg = [
|
|
|
21678
21678
|
].includes(t) || t.length === 0;
|
|
21679
21679
|
};
|
|
21680
21680
|
function Yg() {
|
|
21681
|
-
const e = Re(), { tenantId: t } = H((B) => B.booking?.outletDetails), { userDetails: r } = H((B) => B.booking.appointment), [n, a] = z(!1), [i, o] = z(null), [s, d] = z(!1), c = Ae(""), u = Ae(null), { register: f, handleSubmit: h, control: y, watch: m, reset: $, trigger: b, setValue: g, formState: { errors: C, isSubmitted: S, isSubmitting: _ } } =
|
|
21681
|
+
const e = Re(), { tenantId: t } = H((B) => B.booking?.outletDetails), { userDetails: r } = H((B) => B.booking.appointment), [n, a] = z(!1), [i, o] = z(null), [s, d] = z(!1), c = Ae(""), u = Ae(null), { register: f, handleSubmit: h, control: y, watch: m, reset: $, trigger: b, setValue: g, formState: { errors: C, isSubmitted: S, isSubmitting: _ } } = Sn({
|
|
21682
21682
|
defaultValues: {
|
|
21683
21683
|
firstName: "",
|
|
21684
21684
|
lastName: "",
|