@levo-so/studio 0.3.1 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "./Button-DUBI4k7m.js";
2
+ import { t as e } from "./Button-H07AsyeH.js";
3
3
  import { useState as t } from "react";
4
4
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  //#region src/components/bookingCard/BillingStep.tsx
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import "./Dialog-IrII0ugb.js";
3
- import { a as e, c as t, h as n, l as r, n as i, r as a, t as o } from "./PopupRenderer-Bncp54gB-DTM3Wdxp.js";
3
+ import { c as e, l as t, m as n, o as r, r as i, t as a, u as o } from "./PopupRenderer-DBKtkdmH-Ws7F9GmP.js";
4
4
  import { n as s } from "./AuthProvider-CFQqiIf1.js";
5
5
  import { n as c } from "./ModalManager-7Nhr8gTs.js";
6
6
  import { t as l } from "./cn-BL52QQS4.js";
@@ -23,66 +23,66 @@ import oe from "isomorphic-dompurify";
23
23
  var O = async (e, t) => {
24
24
  let n = {};
25
25
  return t?.site_id && (n.site_id = t.site_id), t?.locale && (n.locale = t.locale), t?.country && (n.country = t.country), (await e.url("/v1/studio/popup/list-active").query(n).get().json())?.content?.data ?? [];
26
- }, k = _(() => import("./PopupRenderer-Bncp54gB-DTM3Wdxp.js").then((e) => e.o).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), A = (e) => {
27
- let t = u(9), { siteId: n, pageId: r } = e, { fetch: a, logger: o } = f(), [s, c] = S(null), l = x(!1), p, h;
28
- if (t[0] !== a || t[1] !== o || t[2] !== n ? (p = () => {
26
+ }, k = _(() => import("./PopupRenderer-DBKtkdmH-Ws7F9GmP.js").then((e) => e.i).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), A = (e) => {
27
+ let n = u(9), { siteId: r, pageId: i } = e, { fetch: a, logger: o } = f(), [s, c] = S(null), l = x(!1), p, h;
28
+ if (n[0] !== a || n[1] !== o || n[2] !== r ? (p = () => {
29
29
  if (l.current) return;
30
30
  let e = () => {
31
- l.current || (l.current = !0, O(a, n ? { site_id: n } : void 0).then((e) => {
32
- i(e), c(e);
31
+ l.current || (l.current = !0, O(a, r ? { site_id: r } : void 0).then((e) => {
32
+ t(e), c(e);
33
33
  }).catch((e) => {
34
- o?.error("Failed to fetch popups", { exception: e }), i([]), c([]);
34
+ o?.error("Failed to fetch popups", { exception: e }), t([]), c([]);
35
35
  }).finally(j));
36
36
  };
37
37
  if (d.get()) {
38
38
  e();
39
39
  return;
40
40
  }
41
- let t = d.listen((n) => {
42
- n && (t(), e());
41
+ let n = d.listen((t) => {
42
+ t && (n(), e());
43
43
  });
44
- return () => t();
44
+ return () => n();
45
45
  }, h = [
46
46
  a,
47
47
  o,
48
- n
49
- ], t[0] = a, t[1] = o, t[2] = n, t[3] = p, t[4] = h) : (p = t[3], h = t[4]), y(p, h), !s || s.length === 0) return null;
48
+ r
49
+ ], n[0] = a, n[1] = o, n[2] = r, n[3] = p, n[4] = h) : (p = n[3], h = n[4]), y(p, h), !s || s.length === 0) return null;
50
50
  let g;
51
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (g = {
51
+ n[5] === Symbol.for("react.memo_cache_sentinel") ? (g = {
52
52
  position: "relative",
53
53
  zIndex: 99999
54
- }, t[5] = g) : g = t[5];
54
+ }, n[5] = g) : g = n[5];
55
55
  let _;
56
- return t[6] !== r || t[7] !== s ? (_ = /* @__PURE__ */ w("div", {
56
+ return n[6] !== i || n[7] !== s ? (_ = /* @__PURE__ */ w("div", {
57
57
  style: g,
58
58
  children: /* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(k, {
59
59
  popups: s,
60
- pageId: r
60
+ pageId: i
61
61
  }) })
62
- }), t[6] = r, t[7] = s, t[8] = _) : _ = t[8], _;
62
+ }), n[6] = i, n[7] = s, n[8] = _) : _ = n[8], _;
63
63
  };
64
64
  function j() {
65
- return a(!1);
65
+ return o(!1);
66
66
  }
67
67
  var M = () => {
68
- let e = u(3), n = E(t), i = E(r), a = se, o = ce, s;
69
- return e[0] !== i || e[1] !== n ? (s = {
68
+ let t = u(3), n = E(i), r = E(e), a = se, o = ce, s;
69
+ return t[0] !== r || t[1] !== n ? (s = {
70
70
  popups: n,
71
- isLoading: i,
71
+ isLoading: r,
72
72
  openPopup: a,
73
73
  closePopup: o
74
- }, e[0] = i, e[1] = n, e[2] = s) : s = e[2], s;
74
+ }, t[0] = r, t[1] = n, t[2] = s) : s = t[2], s;
75
75
  };
76
- function se(n) {
77
- let r = t.get().find((e) => e.id === n);
78
- r && e(r, {
76
+ function se(e) {
77
+ let t = i.get().find((t) => t.id === e);
78
+ t && n(t, {
79
79
  force: !0,
80
80
  trigger_type: "manual"
81
81
  });
82
82
  }
83
83
  function ce() {
84
- let e = n.get().active_popup_id;
85
- e && o(e);
84
+ let e = a.get().active_popup_id;
85
+ e && r(e);
86
86
  }
87
87
  //#endregion
88
88
  //#region src/providers/BlockContext.tsx
@@ -107,7 +107,8 @@ var N = h({
107
107
  renderMode: t.renderMode,
108
108
  workspace_id: t.workspace_id,
109
109
  pageSource: t.pageSource,
110
- languageVariants: t.languageVariants
110
+ languageVariants: t.languageVariants,
111
+ language: t.language
111
112
  }), [
112
113
  n,
113
114
  r,
@@ -118,7 +119,8 @@ var N = h({
118
119
  t.renderMode,
119
120
  t.workspace_id,
120
121
  t.pageSource,
121
- t.languageVariants
122
+ t.languageVariants,
123
+ t.language
122
124
  ]);
123
125
  return /* @__PURE__ */ w(N.Provider, {
124
126
  value: i,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as e } from "./dist-DanVCpXe.js";
2
+ import { n as e } from "./dist-Ckw19x6H.js";
3
3
  import { n as t } from "./AuthProvider-CFQqiIf1.js";
4
4
  import { t as n } from "./card-Cb4m0p4i.js";
5
5
  import { t as r } from "./MessageFooter-CrhrI-su.js";