@aaravpos/appointment-barber-booking 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +16 -16
- package/dist/index.js +12 -9
- package/dist/styles.css +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2296,9 +2296,12 @@ var Fe = [
|
|
|
2296
2296
|
toggleProfessional: (e, t) => {
|
|
2297
2297
|
e.selectedProfessional = t.payload, e.superCategories = t.payload.superCategories || [], e.selectedServices = [], e.selectedCategory = null;
|
|
2298
2298
|
},
|
|
2299
|
+
deleteService: (e, t) => {
|
|
2300
|
+
e.selectedServices = e.selectedServices.filter((r) => r.id !== t.payload);
|
|
2301
|
+
},
|
|
2299
2302
|
clearServices: () => Pi
|
|
2300
2303
|
}
|
|
2301
|
-
}), { setServicePayload: ku, setCategory: Tv, toggleService: wi, clearServices: Av, incrementService: Du, decrementService: _i, toggleProfessional: Ru } = Ks.actions, Fu = Ks.reducer, We = "https://prod.aaravpos.com/api/v1", Ze = () => ({
|
|
2304
|
+
}), { setServicePayload: ku, setCategory: Tv, toggleService: wi, clearServices: Av, incrementService: Du, decrementService: _i, toggleProfessional: Ru, deleteService: xv } = Ks.actions, Fu = Ks.reducer, We = "https://prod.aaravpos.com/api/v1", Ze = () => ({
|
|
2302
2305
|
"Content-Type": "application/json",
|
|
2303
2306
|
Authorization: `Bearer ${Jr.getState()?.barber?.outletDetails?.token}`
|
|
2304
2307
|
}), ju = async (e, t, r) => {
|
|
@@ -2494,7 +2497,7 @@ var Fe = [
|
|
|
2494
2497
|
t.loading = !1, t.error = r.payload || "Appointment failed";
|
|
2495
2498
|
});
|
|
2496
2499
|
}
|
|
2497
|
-
}), { resetAppointment:
|
|
2500
|
+
}), { resetAppointment: Mv, setBookingMode: kv, setUserDetails: wn, setTips: Ku, setAppointmentId: Jt, clearUserDetails: Js } = Xs.actions, Yu = Xs.reducer, Qs = Ye({
|
|
2498
2501
|
name: "outletList",
|
|
2499
2502
|
initialState: { outlets: [] },
|
|
2500
2503
|
reducers: {
|
|
@@ -2505,7 +2508,7 @@ var Fe = [
|
|
|
2505
2508
|
e.outlets = [];
|
|
2506
2509
|
}
|
|
2507
2510
|
}
|
|
2508
|
-
}), { setOutletList: Zu, clearOutletList:
|
|
2511
|
+
}), { setOutletList: Zu, clearOutletList: Dv } = Qs.actions, Xu = Qs.reducer, ed = Ye({
|
|
2509
2512
|
name: "theme",
|
|
2510
2513
|
initialState: {
|
|
2511
2514
|
button: {
|
|
@@ -2612,7 +2615,7 @@ var af = (0, qn.combineReducers)({ barber: (0, qn.combineReducers)({
|
|
|
2612
2615
|
Tl,
|
|
2613
2616
|
Al
|
|
2614
2617
|
] } })
|
|
2615
|
-
}), Ea = kl(Jr),
|
|
2618
|
+
}), Ea = kl(Jr), Rv = Jr.getState;
|
|
2616
2619
|
function lf({ children: e }) {
|
|
2617
2620
|
return /* @__PURE__ */ u(Pl, {
|
|
2618
2621
|
store: Jr,
|
|
@@ -4307,7 +4310,7 @@ function In({ icon: e, label: t, slots: r, allSlots: n, selectedSlotIndexes: a,
|
|
|
4307
4310
|
className: `aaravpos-barber-slot-card ${f ? "aaravpos-barber-slot-card-disabled" : c ? "aaravpos-barber-slot-card-selected" : "aaravpos-barber-slot-card-default"}`,
|
|
4308
4311
|
children: [/* @__PURE__ */ u("span", {
|
|
4309
4312
|
className: "aaravpos-barber-slot-time",
|
|
4310
|
-
children: d.
|
|
4313
|
+
children: d.start_time_12h
|
|
4311
4314
|
}), /* @__PURE__ */ u("span", {
|
|
4312
4315
|
className: "aaravpos-barber-slot-status",
|
|
4313
4316
|
children: f ? "Booked" : "Available"
|
|
@@ -17184,7 +17187,7 @@ function Bd(e) {
|
|
|
17184
17187
|
aspectRatio: _.default.number
|
|
17185
17188
|
}, i;
|
|
17186
17189
|
}
|
|
17187
|
-
var
|
|
17190
|
+
var Fv = Bd({
|
|
17188
17191
|
flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
|
|
17189
17192
|
flagComponent: La,
|
|
17190
17193
|
internationalIcon: dn
|
|
@@ -18244,7 +18247,7 @@ function Xd(e) {
|
|
|
18244
18247
|
labels: Vd
|
|
18245
18248
|
}, t;
|
|
18246
18249
|
}
|
|
18247
|
-
var
|
|
18250
|
+
var jv = Xd();
|
|
18248
18251
|
function rv(e, t) {
|
|
18249
18252
|
var r = Array.prototype.slice.call(t);
|
|
18250
18253
|
return r.push(ld), e.apply(this, r);
|
|
@@ -19314,7 +19317,7 @@ var yv = ({ bookingCode: e }) => {
|
|
|
19314
19317
|
className: "aaravpos-barber-overflow-hidden",
|
|
19315
19318
|
children: /* @__PURE__ */ u(mv, {})
|
|
19316
19319
|
});
|
|
19317
|
-
},
|
|
19320
|
+
}, Lv = ({ ...e }) => /* @__PURE__ */ u(lf, { children: /* @__PURE__ */ u(yv, { ...e }) });
|
|
19318
19321
|
export {
|
|
19319
|
-
|
|
19322
|
+
Lv as AppointmentBarberBooking
|
|
19320
19323
|
};
|
package/dist/styles.css
CHANGED
|
@@ -893,6 +893,15 @@
|
|
|
893
893
|
top: 50%;
|
|
894
894
|
margin-top: -12px;
|
|
895
895
|
}
|
|
896
|
+
.aaravpos-delete-btn {
|
|
897
|
+
background: transparent;
|
|
898
|
+
border: 0px;
|
|
899
|
+
outline: none;
|
|
900
|
+
position: absolute;
|
|
901
|
+
right: 10px;
|
|
902
|
+
cursor: pointer;
|
|
903
|
+
color: red;
|
|
904
|
+
}
|
|
896
905
|
button.aaravpos-barber-service-action-btn:disabled {
|
|
897
906
|
cursor: not-allowed;
|
|
898
907
|
}
|
package/package.json
CHANGED