@aaravpos/appointment-booking-plugin 5.0.4 → 5.0.5

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
@@ -2359,9 +2359,12 @@ var nr = (e) => e ? [
2359
2359
  },
2360
2360
  clearSelectedProfessional: (e) => {
2361
2361
  e.selectedProfessional = null;
2362
+ },
2363
+ deleteService: (e, t) => {
2364
+ e.selectedServices = e.selectedServices.filter((r) => r.id !== t.payload);
2362
2365
  }
2363
2366
  }
2364
- }), { setServicePayload: ef, setCategory: Kv, toggleService: Ar, clearSelectedServices: xi, clearSelectedProfessional: ki, incrementService: ad, decrementService: xr, toggleProfessional: id } = nd.actions, tf = nd.reducer, Ge = "https://prod.aaravpos.com/api/v1", Ke = () => ({
2367
+ }), { setServicePayload: ef, setCategory: Kv, toggleService: Ar, clearSelectedServices: xi, clearSelectedProfessional: ki, incrementService: ad, decrementService: xr, toggleProfessional: id, deleteService: Yv } = nd.actions, tf = nd.reducer, Ge = "https://prod.aaravpos.com/api/v1", Ke = () => ({
2365
2368
  "Content-Type": "application/json",
2366
2369
  Authorization: `Bearer ${an.getState()?.booking.outletDetails?.token}`
2367
2370
  }), Mi = async (e, t, r) => {
@@ -2587,7 +2590,7 @@ var nr = (e) => e ? [
2587
2590
  t.loading = !1, t.error = r.payload || "Appointment failed";
2588
2591
  });
2589
2592
  }
2590
- }), { resetAppointment: ft, setBookingMode: Yv, setUserDetails: En, setTips: pf, setAppointmentId: ar, clearUserDetails: mf, setPayType: hf } = dd.actions, vf = dd.reducer, ld = He({
2593
+ }), { resetAppointment: ft, setBookingMode: Zv, setUserDetails: En, setTips: pf, setAppointmentId: ar, clearUserDetails: mf, setPayType: hf } = dd.actions, vf = dd.reducer, ld = He({
2591
2594
  name: "outletList",
2592
2595
  initialState: { outlets: [] },
2593
2596
  reducers: {
@@ -2598,7 +2601,7 @@ var nr = (e) => e ? [
2598
2601
  e.outlets = [];
2599
2602
  }
2600
2603
  }
2601
- }), { setOutletList: yf, clearOutletList: Zv } = ld.actions, $f = ld.reducer, gf = (0, Yn.combineReducers)({ booking: (0, Yn.combineReducers)({
2604
+ }), { setOutletList: yf, clearOutletList: Xv } = ld.actions, $f = ld.reducer, gf = (0, Yn.combineReducers)({ booking: (0, Yn.combineReducers)({
2602
2605
  breadcrumbs: Yu,
2603
2606
  outletDetails: Qu,
2604
2607
  service: tf,
@@ -2630,7 +2633,7 @@ var nr = (e) => e ? [
2630
2633
  Hl,
2631
2634
  Kl
2632
2635
  ] } })
2633
- }), Ma = Xl(an), Xv = an.getState;
2636
+ }), Ma = Xl(an), Jv = an.getState;
2634
2637
  function Sf({ children: e }) {
2635
2638
  return /* @__PURE__ */ d(Ul, {
2636
2639
  store: an,
@@ -5079,7 +5082,7 @@ function An({ icon: e, label: t, slots: r, allSlots: n, selectedSlotIndexes: a,
5079
5082
  className: `arravpos-slot-card ${f ? "arravpos-slot-card-disabled" : u ? "arravpos-slot-card-selected" : "arravpos-slot-card-default"}`,
5080
5083
  children: [/* @__PURE__ */ d("span", {
5081
5084
  className: "arravpos-slot-time",
5082
- children: l.start_time
5085
+ children: l.start_time_12h
5083
5086
  }), /* @__PURE__ */ d("span", {
5084
5087
  className: "arravpos-slot-status",
5085
5088
  children: f ? "Booked" : "Available"
@@ -17101,7 +17104,7 @@ function tl(e) {
17101
17104
  aspectRatio: O.default.number
17102
17105
  }, i;
17103
17106
  }
17104
- var Jv = tl({
17107
+ var Qv = tl({
17105
17108
  flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
17106
17109
  flagComponent: za,
17107
17110
  internationalIcon: cn
@@ -18161,7 +18164,7 @@ function fl(e) {
18161
18164
  labels: nl
18162
18165
  }, t;
18163
18166
  }
18164
- var Qv = fl();
18167
+ var ey = fl();
18165
18168
  function rv(e, t) {
18166
18169
  var r = Array.prototype.slice.call(t);
18167
18170
  return r.push(Cd), e.apply(this, r);
@@ -20074,7 +20077,7 @@ var Dv = ({ bookingCode: e }) => {
20074
20077
  }
20075
20078
  }) : /* @__PURE__ */ d(kv, {})
20076
20079
  });
20077
- }, ey = ({ ...e }) => /* @__PURE__ */ d(Sf, { children: /* @__PURE__ */ d(Dv, { ...e }) });
20080
+ }, ty = ({ ...e }) => /* @__PURE__ */ d(Sf, { children: /* @__PURE__ */ d(Dv, { ...e }) });
20078
20081
  export {
20079
- ey as AppointmentBookingPlugin
20082
+ ty as AppointmentBookingPlugin
20080
20083
  };