@levo-so/studio 0.1.105 → 0.1.106

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-DtPwDEN0.js";
2
+ import { t as e } from "./Button-BIpdwMrO.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,8 +1,8 @@
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, o as a, r as o } from "./PopupRenderer-C7OHYphU-IWM6d7gW.js";
3
+ import { c as e, i as t, n, o as r, s as i, t as a, u as o } from "./PopupRenderer-CV5HY1dP-DlAn5Rc8.js";
4
4
  import { n as s } from "./AuthProvider-C6bvedwF.js";
5
- import { n as c } from "./ModalManager-BcPk4sbK.js";
5
+ import { n as c } from "./ModalManager-D-yKU_15.js";
6
6
  import { c as l } from "react/compiler-runtime";
7
7
  import { $isIdentityContextReady as u } from "@levo-so/insights/stores";
8
8
  import { cn as d, useLevo as f } from "@levo-so/react";
@@ -20,66 +20,66 @@ import re from "next/link";
20
20
  var ie = async (e, t) => {
21
21
  let n = {};
22
22
  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 ?? [];
23
- }, ae = _(() => import("./PopupRenderer-C7OHYphU-IWM6d7gW.js").then((e) => e.s).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), k = (e) => {
24
- let t = l(9), { siteId: r, pageId: i } = e, { fetch: a, logger: o } = f(), [s, c] = S(null), d = x(!1), p, h;
25
- if (t[0] !== a || t[1] !== o || t[2] !== r ? (p = () => {
23
+ }, ae = _(() => import("./PopupRenderer-CV5HY1dP-DlAn5Rc8.js").then((e) => e.a).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), k = (t) => {
24
+ let n = l(9), { siteId: r, pageId: i } = t, { fetch: a, logger: o } = f(), [s, c] = S(null), d = x(!1), p, h;
25
+ if (n[0] !== a || n[1] !== o || n[2] !== r ? (p = () => {
26
26
  if (d.current) return;
27
- let e = () => {
28
- d.current || (d.current = !0, ie(a, r ? { site_id: r } : void 0).then((e) => {
29
- n(e), c(e);
30
- }).catch((e) => {
31
- o?.error("Failed to fetch popups", { exception: e }), n([]), c([]);
27
+ let t = () => {
28
+ d.current || (d.current = !0, ie(a, r ? { site_id: r } : void 0).then((t) => {
29
+ e(t), c(t);
30
+ }).catch((t) => {
31
+ o?.error("Failed to fetch popups", { exception: t }), e([]), c([]);
32
32
  }).finally(A));
33
33
  };
34
34
  if (u.get()) {
35
- e();
35
+ t();
36
36
  return;
37
37
  }
38
- let t = u.listen((n) => {
39
- n && (t(), e());
38
+ let n = u.listen((e) => {
39
+ e && (n(), t());
40
40
  });
41
- return () => t();
41
+ return () => n();
42
42
  }, h = [
43
43
  a,
44
44
  o,
45
45
  r
46
- ], t[0] = a, t[1] = o, t[2] = r, t[3] = p, t[4] = h) : (p = t[3], h = t[4]), y(p, h), !s || s.length === 0) return null;
46
+ ], 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;
47
47
  let g;
48
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (g = {
48
+ n[5] === Symbol.for("react.memo_cache_sentinel") ? (g = {
49
49
  position: "relative",
50
50
  zIndex: 99999
51
- }, t[5] = g) : g = t[5];
51
+ }, n[5] = g) : g = n[5];
52
52
  let _;
53
- return t[6] !== i || t[7] !== s ? (_ = /* @__PURE__ */ w("div", {
53
+ return n[6] !== i || n[7] !== s ? (_ = /* @__PURE__ */ w("div", {
54
54
  style: g,
55
55
  children: /* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(ae, {
56
56
  popups: s,
57
57
  pageId: i
58
58
  }) })
59
- }), t[6] = i, t[7] = s, t[8] = _) : _ = t[8], _;
59
+ }), n[6] = i, n[7] = s, n[8] = _) : _ = n[8], _;
60
60
  };
61
61
  function A() {
62
- return r(!1);
62
+ return i(!1);
63
63
  }
64
64
  var j = () => {
65
- let e = l(3), n = E(t), r = E(o), i = M, a = N, s;
66
- return e[0] !== r || e[1] !== n ? (s = {
67
- popups: n,
65
+ let e = l(3), t = E(a), r = E(n), i = M, o = N, s;
66
+ return e[0] !== r || e[1] !== t ? (s = {
67
+ popups: t,
68
68
  isLoading: r,
69
69
  openPopup: i,
70
- closePopup: a
71
- }, e[0] = r, e[1] = n, e[2] = s) : s = e[2], s;
70
+ closePopup: o
71
+ }, e[0] = r, e[1] = t, e[2] = s) : s = e[2], s;
72
72
  };
73
73
  function M(e) {
74
- let n = t.get().find((t) => t.id === e);
75
- n && a(n, {
74
+ let n = a.get().find((t) => t.id === e);
75
+ n && t(n, {
76
76
  force: !0,
77
77
  trigger_type: "manual"
78
78
  });
79
79
  }
80
80
  function N() {
81
- let t = i.get().active_popup_id;
82
- t && e(t);
81
+ let e = r.get().active_popup_id;
82
+ e && o(e);
83
83
  }
84
84
  //#endregion
85
85
  //#region src/providers/BlockContext.tsx
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { r as e } from "./dist-CsX9NP5P.js";
2
+ import { r as e } from "./dist-BjFMATnH.js";
3
3
  import { n as t } from "./AuthProvider-C6bvedwF.js";
4
4
  import { t as n } from "./card-5ooLmYSr.js";
5
- import { t as r } from "./MessageFooter-D-dCrzJH.js";
5
+ import { t as r } from "./MessageFooter-4qIEK91O.js";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  var o = {
8
8
  header: "_header_emo7t_1",
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "./LoginForm-BdsPVHdO.js";
2
+ import { t as e } from "./LoginForm-n-6Z7eVb.js";
3
3
  import { t } from "./card-5ooLmYSr.js";
4
4
  import { Suspense as n, lazy as r, useState as i } from "react";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -8,7 +8,7 @@ var s = {
8
8
  title: "_title_s7k8g_7",
9
9
  subtitle: "_subtitle_s7k8g_14",
10
10
  formWrapper: "_formWrapper_s7k8g_20"
11
- }, c = r(() => import("./PendingApprovalCard-hYkupl9A.js")), l = ({ logo: r, siteName: l, page: u }) => {
11
+ }, c = r(() => import("./PendingApprovalCard-CDZRD8Jm.js")), l = ({ logo: r, siteName: l, page: u }) => {
12
12
  let [d, f] = i(!1), [p, m] = i(!1), h = u.access?.find((e) => e.kind === "gating" && e.enabled)?.options;
13
13
  return p ? /* @__PURE__ */ a(n, {
14
14
  fallback: /* @__PURE__ */ a("div", {}),
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "./useLogin-B2qE8710.js";
2
+ import { t as e } from "./useLogin-D4A5iRey.js";
3
3
  import { c as t, t as n } from "./authentication-hnV1BI8s.js";
4
4
  import { LevoOAuth as r, errorHandler as i, successToast as a, useLevo as o } from "@levo-so/react";
5
5
  import { useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { n as e } from "./AuthProvider-C6bvedwF.js";
3
- import { n as t } from "./ModalManager-BcPk4sbK.js";
4
- import { a as n, n as r, o as i, r as a, t as o } from "./dialog-C8-iHixJ.js";
5
- import { t as s } from "./LoginForm-BdsPVHdO.js";
3
+ import { n as t } from "./ModalManager-D-yKU_15.js";
4
+ import { a as n, n as r, o as i, r as a, t as o } from "./dialog-DoxC50i0.js";
5
+ import { t as s } from "./LoginForm-n-6Z7eVb.js";
6
6
  import { useEffect as c } from "react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  var d = {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { t as e } from "./card-5ooLmYSr.js";
3
- import { t } from "./MessageFooter-D-dCrzJH.js";
3
+ import { t } from "./MessageFooter-4qIEK91O.js";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  //#region src/components/accessCard/MessageCard.tsx
6
6
  var i = ({ logo: i, siteName: a, options: o, message: s }) => /* @__PURE__ */ r(e, {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { n as e } from "./AuthProvider-C6bvedwF.js";
3
- import { t } from "./useLogin-B2qE8710.js";
3
+ import { t } from "./useLogin-D4A5iRey.js";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  import i from "libphonenumber-js";
6
6
  var a = {
@@ -2,7 +2,7 @@
2
2
  import { Suspense as e, createContext as t, lazy as n, useCallback as r, useContext as i, useState as a } from "react";
3
3
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
4
  //#region src/context/ModalManager.tsx
5
- var c = n(() => import("./LoginModal-CyvbEK26.js")), l = t({
5
+ var c = n(() => import("./LoginModal-wyVhIJk8.js")), l = t({
6
6
  availableModals: ["login"],
7
7
  openModals: { key: null },
8
8
  openModal: () => ({}),
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { r as e } from "./dist-CsX9NP5P.js";
2
+ import { r as e } from "./dist-BjFMATnH.js";
3
3
  import { t } from "./card-5ooLmYSr.js";
4
- import { t as n } from "./MessageFooter-D-dCrzJH.js";
4
+ import { t as n } from "./MessageFooter-4qIEK91O.js";
5
5
  import { useState as r } from "react";
6
6
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  var s = {