@timum/booking 1.14.1 → 1.14.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/build/booking.js CHANGED
@@ -66371,7 +66371,7 @@ function zN(e) {
66371
66371
  selectedProduct: o
66372
66372
  }), { bookable: C } = $Y(S), T = rZe(S, t);
66373
66373
  R.useEffect(() => {
66374
- if (!b !== o && C) {
66374
+ if (!b !== o && C && p.current) {
66375
66375
  const A = p.current.getApi();
66376
66376
  A.gotoDate(Le.fromISO(C == null ? void 0 : C.start).toISODate());
66377
66377
  let _ = Le.fromISO(C == null ? void 0 : C.start).minus({
@@ -69086,18 +69086,25 @@ const GN = (e, t, n, r, i, o, s) => {
69086
69086
  ]
69087
69087
  );
69088
69088
  return R.useEffect(() => {
69089
- const y = (S) => {
69090
- var C, T, E, A, _;
69091
- QZe.test(S.origin) && ((C = S.data) == null ? void 0 : C.type) === "rerender" ? b(
69092
- { ...(T = S.data) == null ? void 0 : T.appConfig },
69093
- { ...(E = S.data) == null ? void 0 : E.muiTheme },
69094
- { ...(A = S.data) == null ? void 0 : A.fcConfig }
69095
- ) : ((_ = S.data) == null ? void 0 : _.type) === "rerender" && console.error(
69089
+ var S;
69090
+ const y = (C) => {
69091
+ var T, E, A, _, O;
69092
+ QZe.test(C.origin) && ((T = C.data) == null ? void 0 : T.type) === "rerender" ? b(
69093
+ { ...(E = C.data) == null ? void 0 : E.appConfig },
69094
+ { ...(A = C.data) == null ? void 0 : A.muiTheme },
69095
+ { ...(_ = C.data) == null ? void 0 : _.fcConfig }
69096
+ ) : ((O = C.data) == null ? void 0 : O.type) === "rerender" && console.error(
69096
69097
  "ConfigHandler received a message from an unexpected origin:",
69097
- S.origin
69098
+ C.origin
69098
69099
  );
69099
69100
  };
69100
- return window.addEventListener("message", y), () => {
69101
+ return window.addEventListener("message", y), (S = window == null ? void 0 : window.parent) == null || S.postMessage(
69102
+ {
69103
+ origin: "bookingjs",
69104
+ type: "ready"
69105
+ },
69106
+ n.postMessageTarget || "*"
69107
+ ), () => {
69101
69108
  window.removeEventListener("message", y);
69102
69109
  };
69103
69110
  }, [b, n]), R.useEffect(() => {