@aaravpos/appointment-booking-plugin 6.0.3 → 6.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.js CHANGED
@@ -8,7 +8,7 @@ import { ToastContainer as Yl, toast as ee } from "react-toastify";
8
8
  import { Controller as ot, useForm as Na } from "react-hook-form";
9
9
  import { debounce as Zl } from "lodash";
10
10
  import * as zc from "redux";
11
- var Xl = Object.create, yr = Object.defineProperty, Jl = Object.getOwnPropertyDescriptor, Ql = Object.getOwnPropertyNames, ec = Object.getPrototypeOf, tc = Object.prototype.hasOwnProperty, ke = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), rc = (e, t) => {
11
+ var Xl = Object.create, yr = Object.defineProperty, Jl = Object.getOwnPropertyDescriptor, Ql = Object.getOwnPropertyNames, ec = Object.getPrototypeOf, tc = Object.prototype.hasOwnProperty, xe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), rc = (e, t) => {
12
12
  let r = {};
13
13
  for (var n in e)
14
14
  yr(r, n, {
@@ -851,7 +851,7 @@ var Uc = hs(), Vc = hs, Zn = /* @__PURE__ */ rc({
851
851
  clearAllListeners: () => Qs,
852
852
  combineSlices: () => Lu,
853
853
  configureStore: () => Ts,
854
- createAction: () => De,
854
+ createAction: () => Me,
855
855
  createActionCreatorInvariantMiddleware: () => Ns,
856
856
  createAsyncThunk: () => nn,
857
857
  createDraftSafeSelector: () => ys,
@@ -904,7 +904,7 @@ var vs = (...e) => {
904
904
  };
905
905
  typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
906
906
  var $s = (e) => e && typeof e.match == "function";
907
- function De(e, t) {
907
+ function Me(e, t) {
908
908
  function r(...n) {
909
909
  if (t) {
910
910
  let a = t(...n);
@@ -1349,7 +1349,7 @@ var Jc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Kt
1349
1349
  return { message: String(e) };
1350
1350
  }, Oi = "External signal was aborted", nn = /* @__PURE__ */ (() => {
1351
1351
  function e(t, r, n) {
1352
- const a = De(t + "/fulfilled", (d, c, u, f) => ({
1352
+ const a = Me(t + "/fulfilled", (d, c, u, f) => ({
1353
1353
  payload: d,
1354
1354
  meta: {
1355
1355
  ...f || {},
@@ -1357,7 +1357,7 @@ var Jc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Kt
1357
1357
  requestId: c,
1358
1358
  requestStatus: "fulfilled"
1359
1359
  }
1360
- })), i = De(t + "/pending", (d, c, u) => ({
1360
+ })), i = Me(t + "/pending", (d, c, u) => ({
1361
1361
  payload: void 0,
1362
1362
  meta: {
1363
1363
  ...u || {},
@@ -1365,7 +1365,7 @@ var Jc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Kt
1365
1365
  requestId: d,
1366
1366
  requestStatus: "pending"
1367
1367
  }
1368
- })), o = De(t + "/rejected", (d, c, u, f, h) => ({
1368
+ })), o = Me(t + "/rejected", (d, c, u, f, h) => ({
1369
1369
  payload: f,
1370
1370
  error: (n && n.serializeError || js)(d || "Rejected"),
1371
1371
  meta: {
@@ -1612,7 +1612,7 @@ function iu({ type: e, reducerName: t, createNotation: r }, n, a) {
1612
1612
  if (r && !su(n)) throw new Error(process.env.NODE_ENV === "production" ? Y(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
1613
1613
  i = n.reducer, o = n.prepare;
1614
1614
  } else i = n;
1615
- a.addCase(e, i).exposeCaseReducer(t, i).exposeAction(t, o ? De(e, o) : De(e));
1615
+ a.addCase(e, i).exposeCaseReducer(t, i).exposeAction(t, o ? Me(e, o) : Me(e));
1616
1616
  }
1617
1617
  function ou(e) {
1618
1618
  return e._reducerDefinitionType === "asyncThunk";
@@ -2002,7 +2002,7 @@ var Cu = async (e, t) => {
2002
2002
  return (n, a) => qs(r(n, a));
2003
2003
  }, Xs = (e) => {
2004
2004
  let { type: t, actionCreator: r, matcher: n, predicate: a, effect: i } = e;
2005
- if (t) a = De(t).match;
2005
+ if (t) a = Me(t).match;
2006
2006
  else if (r)
2007
2007
  t = r.type, a = r.match;
2008
2008
  else if (n) a = n;
@@ -2043,7 +2043,7 @@ var Cu = async (e, t) => {
2043
2043
  throw n;
2044
2044
  }, 0);
2045
2045
  }
2046
- }, Aa = /* @__PURE__ */ lt(/* @__PURE__ */ De(`${Zt}/add`), { withTypes: () => Aa }), Qs = /* @__PURE__ */ De(`${Zt}/removeAll`), xa = /* @__PURE__ */ lt(/* @__PURE__ */ De(`${Zt}/remove`), { withTypes: () => xa }), _u = (...e) => {
2046
+ }, Aa = /* @__PURE__ */ lt(/* @__PURE__ */ Me(`${Zt}/add`), { withTypes: () => Aa }), Qs = /* @__PURE__ */ Me(`${Zt}/removeAll`), xa = /* @__PURE__ */ lt(/* @__PURE__ */ Me(`${Zt}/remove`), { withTypes: () => xa }), _u = (...e) => {
2047
2047
  console.error(`${Zt}/error`, ...e);
2048
2048
  }, Ou = (e = {}) => {
2049
2049
  const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = (m) => {
@@ -2138,7 +2138,7 @@ var Cu = async (e, t) => {
2138
2138
  middleware: e,
2139
2139
  applied: /* @__PURE__ */ new Map()
2140
2140
  }), Iu = (e) => (t) => t?.meta?.instanceId === e, Tu = () => {
2141
- const e = Kt(), t = /* @__PURE__ */ new Map(), r = Object.assign(De("dynamicMiddleware/add", (...s) => ({
2141
+ const e = Kt(), t = /* @__PURE__ */ new Map(), r = Object.assign(Me("dynamicMiddleware/add", (...s) => ({
2142
2142
  payload: s,
2143
2143
  meta: { instanceId: e }
2144
2144
  })), { withTypes: () => r }), n = Object.assign(function(...d) {
@@ -2535,7 +2535,7 @@ var rr = (e) => e ? [
2535
2535
  e.isOpenSidebar = t.payload;
2536
2536
  }
2537
2537
  }
2538
- }), { setTheme: df, setSidebarOpen: xe } = od.actions, lf = od.reducer, mr = nn("appointment/create", async (e, { rejectWithValue: t }) => {
2538
+ }), { setTheme: df, setSidebarOpen: De } = od.actions, lf = od.reducer, mr = nn("appointment/create", async (e, { rejectWithValue: t }) => {
2539
2539
  try {
2540
2540
  return await ef(e);
2541
2541
  } catch (r) {
@@ -3284,7 +3284,7 @@ function St() {
3284
3284
  }),
3285
3285
  !r && /* @__PURE__ */ v("button", {
3286
3286
  className: "aaravpos-cart-btn",
3287
- onClick: () => e(xe(!0)),
3287
+ onClick: () => e(De(!0)),
3288
3288
  children: [/* @__PURE__ */ l("span", {
3289
3289
  className: "aaravpos-count",
3290
3290
  children: b
@@ -3332,7 +3332,7 @@ var hd = ({ pro: e, selectedStaffServices: t = [], totalPrice: r = 0, totalDurat
3332
3332
  }),
3333
3333
  /* @__PURE__ */ l("button", {
3334
3334
  className: "aaravpos-sidebar-close-btn",
3335
- onClick: () => i(xe(!1)),
3335
+ onClick: () => i(De(!1)),
3336
3336
  children: /* @__PURE__ */ l(Ke, { size: 18 })
3337
3337
  })
3338
3338
  ]
@@ -3701,7 +3701,7 @@ function vd({ selectedServices: e, totalPrice: t, goToStep: r }) {
3701
3701
  }),
3702
3702
  /* @__PURE__ */ l("button", {
3703
3703
  className: "aaravpos-sidebar-close-btn",
3704
- onClick: () => n(xe(!1)),
3704
+ onClick: () => n(De(!1)),
3705
3705
  children: /* @__PURE__ */ l(Ke, { size: 18 })
3706
3706
  })
3707
3707
  ]
@@ -3909,7 +3909,7 @@ function P1() {
3909
3909
  E && E.qty === 1 ? e(Ar(String(C.id))) : e(Tr({
3910
3910
  ...C,
3911
3911
  price: C.price ? Number(C.price) : void 0
3912
- })), window.innerWidth > 991 && e(xe(!0));
3912
+ })), window.innerWidth > 991 && e(De(!0));
3913
3913
  },
3914
3914
  className: `aaravpos-service-card ${a.some((E) => E.id === C.id) ? "active" : ""}`,
3915
3915
  children: [
@@ -3959,7 +3959,7 @@ function P1() {
3959
3959
  children: [
3960
3960
  /* @__PURE__ */ l("button", {
3961
3961
  onClick: (E) => {
3962
- E.stopPropagation(), e(Ar(String(C.id))), window.innerWidth > 991 && e(xe(!0));
3962
+ E.stopPropagation(), e(Ar(String(C.id))), window.innerWidth > 991 && e(De(!0));
3963
3963
  },
3964
3964
  className: "aaravpos-service-action-btn",
3965
3965
  children: /* @__PURE__ */ l(fd, { size: 14 })
@@ -3973,7 +3973,7 @@ function P1() {
3973
3973
  E.stopPropagation(), a.find((D) => D.id === C.id) ? e(nd(String(C.id))) : e(Tr({
3974
3974
  ...C,
3975
3975
  price: C.price ? Number(C.price) : void 0
3976
- })), window.innerWidth > 991 && e(xe(!0));
3976
+ })), window.innerWidth > 991 && e(De(!0));
3977
3977
  },
3978
3978
  className: "aaravpos-service-action-btn plus",
3979
3979
  children: /* @__PURE__ */ l(Fa, { size: 14 })
@@ -4118,7 +4118,7 @@ function _1() {
4118
4118
  children: i ? Array.from({ length: 10 }).map((g, S) => /* @__PURE__ */ l(yd, {}, S)) : /* @__PURE__ */ l(re, { children: y?.length ? y?.map((g, S) => /* @__PURE__ */ v("div", {
4119
4119
  onClick: () => {
4120
4120
  const P = a.find((C) => C.id === g.id);
4121
- P && P.qty === 1 ? e(Ar(String(g.id))) : e(Tr(g)), window.innerWidth > 991 && e(xe(!0));
4121
+ P && P.qty === 1 ? e(Ar(String(g.id))) : e(Tr(g)), window.innerWidth > 991 && e(De(!0));
4122
4122
  },
4123
4123
  className: `aaravpos-service-card ${a.some((P) => P.id === g.id) ? "active" : ""}`,
4124
4124
  children: [
@@ -4162,7 +4162,7 @@ function _1() {
4162
4162
  children: [
4163
4163
  /* @__PURE__ */ l("button", {
4164
4164
  onClick: (P) => {
4165
- P.stopPropagation(), e(Ar(String(g.id))), window.innerWidth > 991 && e(xe(!0));
4165
+ P.stopPropagation(), e(Ar(String(g.id))), window.innerWidth > 991 && e(De(!0));
4166
4166
  },
4167
4167
  className: "aaravpos-service-action-btn",
4168
4168
  children: /* @__PURE__ */ l(fd, { size: 14 })
@@ -4173,7 +4173,7 @@ function _1() {
4173
4173
  }),
4174
4174
  /* @__PURE__ */ l("button", {
4175
4175
  onClick: (P) => {
4176
- P.stopPropagation(), a.find((C) => C.id === g.id) ? e(nd(String(g.id))) : e(Tr(g)), window.innerWidth > 991 && e(xe(!0));
4176
+ P.stopPropagation(), a.find((C) => C.id === g.id) ? e(nd(String(g.id))) : e(Tr(g)), window.innerWidth > 991 && e(De(!0));
4177
4177
  },
4178
4178
  className: "aaravpos-service-action-btn plus",
4179
4179
  children: /* @__PURE__ */ l(Fa, { size: 14 })
@@ -4467,7 +4467,7 @@ function $d({ buttonText: e, onButtonClick: t, showTaxesOnlyIfTime: r = !1, show
4467
4467
  className: "aaravpos-order-title",
4468
4468
  children: ["Your Order", /* @__PURE__ */ l("button", {
4469
4469
  className: "aaravpos-sidebar-close-btn",
4470
- onClick: () => f(xe(!1)),
4470
+ onClick: () => f(De(!1)),
4471
4471
  children: /* @__PURE__ */ l(Ke, { size: 18 })
4472
4472
  })]
4473
4473
  }),
@@ -5368,7 +5368,7 @@ function q1(e) {
5368
5368
  return H1(this, r);
5369
5369
  };
5370
5370
  }
5371
- var K1 = /* @__PURE__ */ ke(((e) => {
5371
+ var K1 = /* @__PURE__ */ xe(((e) => {
5372
5372
  var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, c = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, $ = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, S = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
5373
5373
  function P(N) {
5374
5374
  if (typeof N == "object" && N !== null) {
@@ -5430,7 +5430,7 @@ var K1 = /* @__PURE__ */ ke(((e) => {
5430
5430
  }, e.isValidElementType = function(N) {
5431
5431
  return typeof N == "string" || typeof N == "function" || N === a || N === u || N === o || N === i || N === h || N === m || typeof N == "object" && N !== null && (N.$$typeof === y || N.$$typeof === p || N.$$typeof === s || N.$$typeof === d || N.$$typeof === f || N.$$typeof === b || N.$$typeof === g || N.$$typeof === S || N.$$typeof === $);
5432
5432
  }, e.typeOf = P;
5433
- })), Y1 = /* @__PURE__ */ ke(((e) => {
5433
+ })), Y1 = /* @__PURE__ */ xe(((e) => {
5434
5434
  process.env.NODE_ENV !== "production" && (function() {
5435
5435
  "use strict";
5436
5436
  var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, c = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, $ = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, S = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
@@ -5511,9 +5511,9 @@ var K1 = /* @__PURE__ */ ke(((e) => {
5511
5511
  }
5512
5512
  e.AsyncMode = N, e.ConcurrentMode = E, e.ContextConsumer = D, e.ContextProvider = W, e.Element = J, e.ForwardRef = se, e.Fragment = he, e.Lazy = me, e.Memo = $e, e.Portal = ce, e.Profiler = pe, e.StrictMode = ve, e.Suspense = ue, e.isAsyncMode = ge, e.isConcurrentMode = M, e.isContextConsumer = w, e.isContextProvider = I, e.isElement = R, e.isForwardRef = L, e.isFragment = F, e.isLazy = H, e.isMemo = B, e.isPortal = z, e.isProfiler = A, e.isStrictMode = k, e.isSuspense = G, e.isValidElementType = P, e.typeOf = C;
5513
5513
  })();
5514
- })), bd = /* @__PURE__ */ ke(((e, t) => {
5514
+ })), bd = /* @__PURE__ */ xe(((e, t) => {
5515
5515
  process.env.NODE_ENV === "production" ? t.exports = K1() : t.exports = Y1();
5516
- })), Z1 = /* @__PURE__ */ ke(((e, t) => {
5516
+ })), Z1 = /* @__PURE__ */ xe(((e, t) => {
5517
5517
  var r = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
5518
5518
  function i(s) {
5519
5519
  if (s == null) throw new TypeError("Object.assign cannot be called with null or undefined");
@@ -5547,12 +5547,12 @@ var K1 = /* @__PURE__ */ ke(((e) => {
5547
5547
  }
5548
5548
  return u;
5549
5549
  };
5550
- })), La = /* @__PURE__ */ ke(((e, t) => {
5550
+ })), La = /* @__PURE__ */ xe(((e, t) => {
5551
5551
  var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
5552
5552
  t.exports = r;
5553
- })), Nd = /* @__PURE__ */ ke(((e, t) => {
5553
+ })), Nd = /* @__PURE__ */ xe(((e, t) => {
5554
5554
  t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
5555
- })), X1 = /* @__PURE__ */ ke(((e, t) => {
5555
+ })), X1 = /* @__PURE__ */ xe(((e, t) => {
5556
5556
  var r = function() {
5557
5557
  };
5558
5558
  if (process.env.NODE_ENV !== "production") {
@@ -5590,7 +5590,7 @@ var K1 = /* @__PURE__ */ ke(((e) => {
5590
5590
  o.resetWarningCache = function() {
5591
5591
  process.env.NODE_ENV !== "production" && (a = {});
5592
5592
  }, t.exports = o;
5593
- })), J1 = /* @__PURE__ */ ke(((e, t) => {
5593
+ })), J1 = /* @__PURE__ */ xe(((e, t) => {
5594
5594
  var r = bd(), n = Z1(), a = La(), i = Nd(), o = X1(), s = function() {
5595
5595
  };
5596
5596
  process.env.NODE_ENV !== "production" && (s = function(c) {
@@ -5863,7 +5863,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
5863
5863
  }
5864
5864
  return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
5865
5865
  };
5866
- })), Q1 = /* @__PURE__ */ ke(((e, t) => {
5866
+ })), Q1 = /* @__PURE__ */ xe(((e, t) => {
5867
5867
  var r = La();
5868
5868
  function n() {
5869
5869
  }
@@ -5905,7 +5905,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
5905
5905
  };
5906
5906
  return s.PropTypes = s, s;
5907
5907
  };
5908
- })), e0 = /* @__PURE__ */ ke(((e, t) => {
5908
+ })), e0 = /* @__PURE__ */ xe(((e, t) => {
5909
5909
  if (process.env.NODE_ENV !== "production") {
5910
5910
  var r = bd(), n = !0;
5911
5911
  t.exports = J1()(r.isElement, n);
@@ -6159,7 +6159,7 @@ Z.prototype.fromData = function(e) {
6159
6159
  Z.prototype.toData = function() {
6160
6160
  return this._data;
6161
6161
  };
6162
- var r0 = /* @__PURE__ */ ke(((e, t) => {
6162
+ var r0 = /* @__PURE__ */ xe(((e, t) => {
6163
6163
  (function(r, n) {
6164
6164
  typeof e == "object" && typeof t == "object" ? t.exports = n() : typeof define == "function" && define.amd ? define([], n) : typeof e == "object" ? e.trimCanvas = n() : r.trimCanvas = n();
6165
6165
  })(e, function() {
@@ -13888,7 +13888,7 @@ var i0 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
13888
13888
  ]
13889
13889
  ]
13890
13890
  }
13891
- }, o0 = /* @__PURE__ */ ke(((e, t) => {
13891
+ }, o0 = /* @__PURE__ */ xe(((e, t) => {
13892
13892
  (function() {
13893
13893
  "use strict";
13894
13894
  var r = {}.hasOwnProperty;
@@ -18286,7 +18286,7 @@ function ol(e) {
18286
18286
  for (var t = 1; t < arguments.length; t++) {
18287
18287
  var r = arguments[t] != null ? arguments[t] : {};
18288
18288
  t % 2 ? Xo(Object(r), !0).forEach(function(n) {
18289
- Me(e, n, r[n]);
18289
+ ke(e, n, r[n]);
18290
18290
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Xo(Object(r)).forEach(function(n) {
18291
18291
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
18292
18292
  });
@@ -18371,7 +18371,7 @@ function ga(e, t) {
18371
18371
  return n.__proto__ = a, n;
18372
18372
  }, ga(e, t);
18373
18373
  }
18374
- function Me(e, t, r) {
18374
+ function ke(e, t, r) {
18375
18375
  return t = dl(t), t in e ? Object.defineProperty(e, t, {
18376
18376
  value: r,
18377
18377
  enumerable: !0,
@@ -18396,12 +18396,12 @@ function dv(e, t) {
18396
18396
  var lv = /* @__PURE__ */ (function(e) {
18397
18397
  function t(r) {
18398
18398
  var n;
18399
- rv(this, t), n = av(this, t, [r]), Me(n, "setInputRef", function($) {
18399
+ rv(this, t), n = av(this, t, [r]), ke(n, "setInputRef", function($) {
18400
18400
  Fh([n.props.inputRef, n.inputRef], $);
18401
- }), Me(n, "isCountrySupportedWithError", function($) {
18401
+ }), ke(n, "isCountrySupportedWithError", function($) {
18402
18402
  var b = n.props.metadata;
18403
18403
  return fn($, b);
18404
- }), Me(n, "onCountryChange", function($) {
18404
+ }), ke(n, "onCountryChange", function($) {
18405
18405
  var b = n.props, g = b.international, S = b.metadata, P = b.onChange, C = b.focusInputOnCountrySelection, N = n.state, E = N.phoneDigits, D = N.country, W = Vh(E, {
18406
18406
  prevCountry: D,
18407
18407
  newCountry: $,
@@ -18417,7 +18417,7 @@ var lv = /* @__PURE__ */ (function(e) {
18417
18417
  }, function() {
18418
18418
  P(J);
18419
18419
  });
18420
- }), Me(n, "onChange", function($) {
18420
+ }), ke(n, "onChange", function($) {
18421
18421
  var b = n.props, g = b.defaultCountry, S = b.onChange, P = b.addInternationalOption, C = b.international, N = b.limitMaxLength, E = b.countryCallingCodeEditable, D = b.metadata, W = n.state, J = W.countries, se = W.phoneDigits, he = W.country, me = W.latestCountrySelectedByUser, $e = Wh($, {
18422
18422
  prevPhoneDigits: se,
18423
18423
  country: he,
@@ -18440,25 +18440,25 @@ var lv = /* @__PURE__ */ (function(e) {
18440
18440
  me && ve && !ft(ve, me, D) && (ue.latestCountrySelectedByUser = void 0), E === !1 && !ve && ce === n.state.phoneDigits && (ue.forceRerender = {}), n.setState(ue, function() {
18441
18441
  return S(ve);
18442
18442
  });
18443
- }), Me(n, "_onFocus", function() {
18443
+ }), ke(n, "_onFocus", function() {
18444
18444
  return n.setState({ isFocused: !0 });
18445
- }), Me(n, "_onBlur", function() {
18445
+ }), ke(n, "_onBlur", function() {
18446
18446
  return n.setState({ isFocused: !1 });
18447
- }), Me(n, "onFocus", function($) {
18447
+ }), ke(n, "onFocus", function($) {
18448
18448
  n._onFocus();
18449
18449
  var b = n.props.onFocus;
18450
18450
  b && b($);
18451
- }), Me(n, "onBlur", function($) {
18451
+ }), ke(n, "onBlur", function($) {
18452
18452
  var b = n.props.onBlur;
18453
18453
  n._onBlur(), b && b($);
18454
- }), Me(n, "onCountryFocus", function($) {
18454
+ }), ke(n, "onCountryFocus", function($) {
18455
18455
  n._onFocus();
18456
18456
  var b = n.props.countrySelectProps;
18457
18457
  if (b) {
18458
18458
  var g = b.onFocus;
18459
18459
  g && g($);
18460
18460
  }
18461
- }), Me(n, "onCountryBlur", function($) {
18461
+ }), ke(n, "onCountryBlur", function($) {
18462
18462
  n._onBlur();
18463
18463
  var b = n.props.countrySelectProps;
18464
18464
  if (b) {
@@ -19347,7 +19347,7 @@ function Cv() {
19347
19347
  ee.error("Select time");
19348
19348
  return;
19349
19349
  }
19350
- e(In(T)), e(xe(!0));
19350
+ e(In(T)), e(De(!0));
19351
19351
  }, Al = (_) => {
19352
19352
  const T = _.replace(/\s/g, "");
19353
19353
  return /^4/.test(T) ? "VISA" : /^5[1-5]/.test(T) ? "MASTERCARD" : /^3[47]/.test(T) ? "AMEX" : /^6/.test(T) ? "DISCOVER" : "UNKNOWN";
@@ -19496,6 +19496,7 @@ function Cv() {
19496
19496
  })]
19497
19497
  }), W && /* @__PURE__ */ v("form", {
19498
19498
  className: "aaravpos-tp-10",
19499
+ onSubmit: qa(Tl),
19499
19500
  children: [/* @__PURE__ */ v("div", {
19500
19501
  className: "aaravpos-details-grid",
19501
19502
  children: [
@@ -19641,9 +19642,7 @@ function Cv() {
19641
19642
  }), /* @__PURE__ */ l("div", {
19642
19643
  className: "aaravpos-center-items",
19643
19644
  children: /* @__PURE__ */ l("button", {
19644
- onClick: () => {
19645
- qa(Tl), e(xe(!0));
19646
- },
19645
+ type: "submit",
19647
19646
  disabled: fl,
19648
19647
  className: "aaravpos-form-btn",
19649
19648
  children: /* @__PURE__ */ l("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaravpos/appointment-booking-plugin",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "A React component library built with Tailwind CSS v4 and TypeScript",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.33.0",