@timum/booking 1.13.0 → 1.13.2

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
@@ -21403,16 +21403,18 @@ const Va = 44, lme = Ec(O_ || (O_ = v3`
21403
21403
  }), V$ = hme;
21404
21404
  function W$({
21405
21405
  visible: e,
21406
- backdropSx: t,
21407
- circleSx: n,
21408
- size: r,
21409
- children: i
21406
+ wrapperSx: t,
21407
+ backdropSx: n,
21408
+ circleSx: r,
21409
+ size: i,
21410
+ children: o
21410
21411
  }) {
21411
21412
  return /* @__PURE__ */ $.jsxs(
21412
21413
  oi,
21413
21414
  {
21414
21415
  sx: {
21415
- position: "relative"
21416
+ position: "relative",
21417
+ ...t
21416
21418
  },
21417
21419
  children: [
21418
21420
  /* @__PURE__ */ $.jsx(
@@ -21424,24 +21426,24 @@ function W$({
21424
21426
  position: "absolute",
21425
21427
  pointerEvents: e ? "all" : "none",
21426
21428
  backgroundColor: "#ffffffc5",
21427
- zIndex: (o) => o.zIndex.drawer + 1,
21428
- ...t
21429
+ zIndex: (s) => s.zIndex.drawer + 1,
21430
+ ...n
21429
21431
  },
21430
21432
  open: e,
21431
21433
  children: /* @__PURE__ */ $.jsx(
21432
21434
  V$,
21433
21435
  {
21434
21436
  color: "secondary",
21435
- size: r,
21437
+ size: i,
21436
21438
  sx: {
21437
- zIndex: (o) => o.zIndex.drawer + 2,
21438
- ...n
21439
+ zIndex: (s) => s.zIndex.drawer + 2,
21440
+ ...r
21439
21441
  }
21440
21442
  }
21441
21443
  )
21442
21444
  }
21443
21445
  ),
21444
- i
21446
+ o
21445
21447
  ]
21446
21448
  }
21447
21449
  );
@@ -67343,6 +67345,7 @@ function KKe(e) {
67343
67345
  children: /* @__PURE__ */ $.jsx($4, { CalendarView: MN })
67344
67346
  }
67345
67347
  ),
67348
+ t && // only show this error if we actually have some data
67346
67349
  r !== "fullCalendar" && r !== "detailsFullCalendar" && r !== "condensedView" && r !== "detailsCondensedView" && r !== "detailsListView" && r !== "listView" && r !== "pureListView" && /* @__PURE__ */ $.jsx(YKe, { children: /* @__PURE__ */ $.jsxs($.Fragment, { children: [
67347
67350
  "You must set calendarFrontend either to ",
67348
67351
  /* @__PURE__ */ $.jsx("code", { children: "fullCalendar" }),
@@ -68413,7 +68416,7 @@ function H4(e) {
68413
68416
  ), b = r.get("conf");
68414
68417
  b && (b = PZe(b), c = b.ref || [], a = b.channelKey, i = b.pData, f = b.tslRefs || [], p = b.prdRefs || [], g = b.urlCulture, m = b.virtualTslRefs || [], v = b.postMessageTarget, w = b.enableShowAllResourcesOption);
68415
68418
  const y = t.queryHash || window.location.hash, [, , S] = (y == null ? void 0 : y.split("/")) ?? [];
68416
- if ((i || o) && (t.pData = i ?? o), a && (t.channelKey = a), c && c.length > 0 && (t.ref = c), f && f.length > 0 && (t.tslRefs = f), m && m.length > 0 && (t.virtualTslRefs = m), p && p.length > 0 && (t.prdRefs = p), g && (t.culture = g), v && (t.postMessageTarget = v), w && (t.enableShowAllResourcesOption = w), an.isArray(t.ref) ? t.ref = [...t.ref] : t.ref ? t.ref = [t.ref] : t.ref = [], an.isArray(t.tslRefs) ? t.tslRefs = [...t.tslRefs] : t.tslRefs ? t.tslRefs = [t.tslRefs] : t.tslRefs = [], an.isArray(t.prdRefs) ? t.prdRefs = [...t.prdRefs] : t.prdRefs ? t.prdRefs = [t.prdRefs] : t.prdRefs = [], (!t.ref || t.ref.length === 0) && (!t.tslRefs || t.tslRefs.length === 0)) {
68419
+ if ((i || o) && (t.pData = i ?? o), a && (t.channelKey = a), c && c.length > 0 && (t.ref = c), f && f.length > 0 && (t.tslRefs = f), m && m.length > 0 && (t.virtualTslRefs = m), p && p.length > 0 && (t.prdRefs = p), g && (t.culture = g), v && (t.postMessageTarget = v), w && (t.enableShowAllResourcesOption = w), an.isArray(t.ref) ? t.ref = [...t.ref] : t.ref ? t.ref = [t.ref] : t.ref = [], an.isArray(t.tslRefs) ? t.tslRefs = [...t.tslRefs] : t.tslRefs ? t.tslRefs = [t.tslRefs] : t.tslRefs = [], an.isArray(t.prdRefs) ? t.prdRefs = [...t.prdRefs] : t.prdRefs ? t.prdRefs = [t.prdRefs] : t.prdRefs = [], (!t.ref || t.ref.length === 0) && (!t.tslRefs || t.tslRefs.length === 0) && (!t.virtualTslRefs || t.virtualTslRefs.length === 0)) {
68417
68420
  console.log(
68418
68421
  "timum hides itself. No reference in either url or options detected."
68419
68422
  );
@@ -71320,26 +71323,39 @@ function RJe() {
71320
71323
  }, [e]);
71321
71324
  }
71322
71325
  function _Je({ appConfig: e = {}, muiTheme: t = {}, fcConfig: n = {} }) {
71323
- return /* @__PURE__ */ $.jsx($.Fragment, { children: /* @__PURE__ */ $.jsx(R.Suspense, { fallback: /* @__PURE__ */ $.jsx(W$, { visible: !0 }), children: /* @__PURE__ */ $.jsx(iB, { injectFirst: !0, children: /* @__PURE__ */ $.jsx(
71324
- V0e,
71326
+ return /* @__PURE__ */ $.jsx($.Fragment, { children: /* @__PURE__ */ $.jsx(
71327
+ R.Suspense,
71325
71328
  {
71326
- maxSnack: 3,
71327
- autoHideDuration: 3e3,
71328
- anchorOrigin: { horizontal: "right", vertical: "bottom" },
71329
- children: /* @__PURE__ */ $.jsx(dce, { store: DZe, children: /* @__PURE__ */ $.jsxs(
71330
- dZ,
71329
+ fallback: /* @__PURE__ */ $.jsx(
71330
+ W$,
71331
71331
  {
71332
- muiTheme: t,
71333
- fcConfig: n,
71334
- appConfig: e,
71335
- children: [
71336
- /* @__PURE__ */ $.jsx(RJe, {}),
71337
- /* @__PURE__ */ $.jsx(hce, { children: /* @__PURE__ */ $.jsx(KKe, {}) })
71338
- ]
71332
+ visible: !0,
71333
+ circleSx: { color: "#777" },
71334
+ wrapperSx: { height: e != null && e.height ? e == null ? void 0 : e.height : 500 }
71335
+ }
71336
+ ),
71337
+ children: /* @__PURE__ */ $.jsx(iB, { injectFirst: !0, children: /* @__PURE__ */ $.jsx(
71338
+ V0e,
71339
+ {
71340
+ maxSnack: 3,
71341
+ autoHideDuration: 3e3,
71342
+ anchorOrigin: { horizontal: "right", vertical: "bottom" },
71343
+ children: /* @__PURE__ */ $.jsx(dce, { store: DZe, children: /* @__PURE__ */ $.jsxs(
71344
+ dZ,
71345
+ {
71346
+ muiTheme: t,
71347
+ fcConfig: n,
71348
+ appConfig: e,
71349
+ children: [
71350
+ /* @__PURE__ */ $.jsx(RJe, {}),
71351
+ /* @__PURE__ */ $.jsx(hce, { children: /* @__PURE__ */ $.jsx(KKe, {}) })
71352
+ ]
71353
+ }
71354
+ ) })
71339
71355
  }
71340
71356
  ) })
71341
71357
  }
71342
- ) }) }) });
71358
+ ) });
71343
71359
  }
71344
71360
  function XJe(e, t, n, r) {
71345
71361
  let i = r == null ? void 0 : r.getElementById(