@timum/booking 1.10.4 → 1.10.6

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
@@ -65842,12 +65842,15 @@ function MKe({
65842
65842
  ) });
65843
65843
  }
65844
65844
  function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65845
- const { t: o } = On();
65845
+ const { t: o } = On(), s = _.useMemo(() => `${Ie.fromISO(t).toLocaleString({
65846
+ weekday: "short"
65847
+ })} ${Ie.fromISO(t).toLocaleString({
65848
+ day: "2-digit",
65849
+ month: "2-digit"
65850
+ })}
65851
+ `, [t]);
65846
65852
  return n ? /* @__PURE__ */ $.jsxs(he, { container: !0, item: !0, xs: "auto", alignContent: "flex-start", children: [
65847
- /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, height: "25px", children: /* @__PURE__ */ $.jsx(Me, { sx: { textAlign: "center" }, children: Ie.fromISO(t).toUTC().toLocaleString({
65848
- day: "2-digit",
65849
- month: "2-digit"
65850
- }) }) }),
65853
+ /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, height: "25px", children: /* @__PURE__ */ $.jsx(Me, { sx: { textAlign: "center" }, children: s }) }),
65851
65854
  /* @__PURE__ */ $.jsx(
65852
65855
  he,
65853
65856
  {
@@ -65858,34 +65861,34 @@ function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65858
65861
  alignItems: "center",
65859
65862
  rowSpacing: 1,
65860
65863
  sx: { minWidth: r - 8, mt: 1 },
65861
- children: n.map((s) => {
65862
- if (s.renderAsBookable)
65864
+ children: n.map((a) => {
65865
+ if (a.renderAsBookable)
65863
65866
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65864
65867
  Oo,
65865
65868
  {
65866
65869
  fullWidth: !0,
65867
65870
  variant: "outlined",
65868
- onClick: () => i(s),
65869
- children: s.start.toLocaleString({
65871
+ onClick: () => i(a),
65872
+ children: a.start.toLocaleString({
65870
65873
  hour: "2-digit",
65871
65874
  minute: "2-digit"
65872
65875
  })
65873
65876
  }
65874
- ) }, s.uuid);
65875
- if (s.renderAsCancelable)
65877
+ ) }, a.uuid);
65878
+ if (a.renderAsCancelable)
65876
65879
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65877
65880
  Oo,
65878
65881
  {
65879
65882
  variant: "outlined",
65880
65883
  fullWidth: !0,
65881
- onClick: () => i(s),
65882
- children: s.start.toLocaleString({
65884
+ onClick: () => i(a),
65885
+ children: a.start.toLocaleString({
65883
65886
  hour: "2-digit",
65884
65887
  minute: "2-digit"
65885
65888
  })
65886
65889
  }
65887
- ) }, s.uuid);
65888
- if (s.renderAsBlocker)
65890
+ ) }, a.uuid);
65891
+ if (a.renderAsBlocker)
65889
65892
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65890
65893
  Oo,
65891
65894
  {
@@ -65895,7 +65898,7 @@ function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65895
65898
  sx: { textTransform: "inherit" },
65896
65899
  children: o("appoinment_at_capacity")
65897
65900
  }
65898
- ) }, s.uuid);
65901
+ ) }, a.uuid);
65899
65902
  })
65900
65903
  }
65901
65904
  )