@timum/booking 1.11.4 → 1.11.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/build/booking.js CHANGED
@@ -65896,16 +65896,16 @@ function MKe({
65896
65896
  }
65897
65897
  ) });
65898
65898
  }
65899
- function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65900
- const { t: o } = Dn(), s = R.useMemo(() => `${Ne.fromISO(t).toLocaleString({
65899
+ function IKe({ date: e, timeslots: t, width: n, openBookingPage: r }) {
65900
+ const { t: i } = Dn(), o = R.useMemo(() => `${Ne.fromISO(e).toLocaleString({
65901
65901
  weekday: "short"
65902
- })} ${Ne.fromISO(t).toLocaleString({
65902
+ })} ${Ne.fromISO(e).toLocaleString({
65903
65903
  day: "2-digit",
65904
65904
  month: "2-digit"
65905
65905
  })}
65906
- `, [t]);
65907
- return n ? /* @__PURE__ */ $.jsxs(he, { container: !0, item: !0, xs: "auto", alignContent: "flex-start", children: [
65908
- /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, height: "25px", children: /* @__PURE__ */ $.jsx(De, { sx: { textAlign: "center" }, children: s }) }),
65906
+ `, [e]);
65907
+ return t ? /* @__PURE__ */ $.jsxs(he, { container: !0, item: !0, xs: "auto", alignContent: "flex-start", children: [
65908
+ /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, height: "25px", children: /* @__PURE__ */ $.jsx(De, { sx: { textAlign: "center" }, children: o }) }),
65909
65909
  /* @__PURE__ */ $.jsx(
65910
65910
  he,
65911
65911
  {
@@ -65915,35 +65915,35 @@ function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65915
65915
  direction: "row",
65916
65916
  alignItems: "center",
65917
65917
  rowSpacing: 1,
65918
- sx: { minWidth: r - 8, mt: 1 },
65919
- children: n.map((a) => {
65920
- if (a.renderAsBookable)
65918
+ sx: { minWidth: n - 8, mt: 1 },
65919
+ children: t.map((s, a) => {
65920
+ if (s.renderAsBookable)
65921
65921
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65922
65922
  Mo,
65923
65923
  {
65924
65924
  fullWidth: !0,
65925
65925
  variant: "outlined",
65926
- onClick: () => i(a),
65927
- children: a.start.toLocaleString({
65926
+ onClick: () => r(s),
65927
+ children: s.start.toLocaleString({
65928
65928
  hour: "2-digit",
65929
65929
  minute: "2-digit"
65930
65930
  })
65931
65931
  }
65932
- ) }, a.uuid);
65933
- if (a.renderAsCancelable)
65932
+ ) }, a);
65933
+ if (s.renderAsCancelable)
65934
65934
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65935
65935
  Mo,
65936
65936
  {
65937
65937
  variant: "outlined",
65938
65938
  fullWidth: !0,
65939
- onClick: () => i(a),
65940
- children: a.start.toLocaleString({
65939
+ onClick: () => r(s),
65940
+ children: s.start.toLocaleString({
65941
65941
  hour: "2-digit",
65942
65942
  minute: "2-digit"
65943
65943
  })
65944
65944
  }
65945
- ) }, a.uuid);
65946
- if (a.renderAsBlocker)
65945
+ ) }, a);
65946
+ if (s.renderAsBlocker)
65947
65947
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65948
65948
  Mo,
65949
65949
  {
@@ -65951,9 +65951,9 @@ function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65951
65951
  fullWidth: !0,
65952
65952
  disabled: !0,
65953
65953
  sx: { textTransform: "inherit" },
65954
- children: o("appoinment_at_capacity")
65954
+ children: i("appoinment_at_capacity")
65955
65955
  }
65956
- ) }, a.uuid);
65956
+ ) }, a);
65957
65957
  })
65958
65958
  }
65959
65959
  )