@levo-so/studio 0.3.18 → 0.3.19
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/{BillingStep-BTDOMFHV.js → BillingStep-Cskl5Sbc.js} +1 -1
- package/{Button-DXLWW3dp.js → Button-D6OAkNtW.js} +1 -1
- package/{EntryCard-9yv0KJTB.js → EntryCard-NCSYl-4A.js} +1 -1
- package/{LoginCard-D9vEC_g0.js → LoginCard-BC05UxFH.js} +1 -1
- package/{PendingApprovalCard-CzoBgYNy.js → PendingApprovalCard-B7sm8CZ_.js} +1 -1
- package/{PhoneWidget-BtMMfGLu.js → PhoneWidget-BkzFjfKW.js} +5 -5
- package/{PopupBody-BI-MJqmd-B3ltSYMP.js → PopupBody-BI-MJqmd-C9i44N2h.js} +1 -1
- package/{PopupRenderer-D66Gx63H-ChI4WBer.js → PopupRenderer-D66Gx63H-dYKKhHdA.js} +1 -1
- package/{ProfileCard-Chg20HBa.js → ProfileCard-DM1Jspj_.js} +1 -1
- package/{bookingCard-DoxoilG3.js → bookingCard-CY0SAnVm.js} +2 -2
- package/collection.js +1 -1
- package/{dist-Dijjo-5m.js → dist-Dq-z9c3T.js} +951 -1066
- package/index.js +5 -5
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./Button-
|
|
2
|
+
import { t as e } from "./Button-D6OAkNtW.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
|
|
@@ -20,7 +20,7 @@ import oe from "isomorphic-dompurify";
|
|
|
20
20
|
var O = 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
|
-
}, k = _(() => import("./PopupRenderer-D66Gx63H-
|
|
23
|
+
}, k = _(() => import("./PopupRenderer-D66Gx63H-dYKKhHdA.js").then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), A = (e) => {
|
|
24
24
|
let t = u(9), { siteId: n, pageId: r } = e, { fetch: a, logger: o } = f(), [s, c] = S(null), l = x(!1), p, h;
|
|
25
25
|
if (t[0] !== a || t[1] !== o || t[2] !== n ? (p = () => {
|
|
26
26
|
if (l.current) return;
|
|
@@ -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-
|
|
11
|
+
}, c = r(() => import("./PendingApprovalCard-B7sm8CZ_.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", {}),
|
|
@@ -5,8 +5,8 @@ import { t as r } from "./CollectionInput-DyNbxIZ8.js";
|
|
|
5
5
|
import { c as ee } from "react/compiler-runtime";
|
|
6
6
|
import { useState as i } from "react";
|
|
7
7
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
8
|
+
import te, { isSupportedCountry as ne } from "react-phone-number-input";
|
|
9
|
+
import { useController as re } from "react-hook-form";
|
|
10
10
|
import { IconPencil as ie } from "@tabler/icons-react";
|
|
11
11
|
//#region ../../libraries/react-collection/dist/widgets/phoneWidget/PhoneWidget.cssm.js
|
|
12
12
|
var ae = "_89f1hw0", s = "_89f1hw1", c = "_89f1hw2", oe = "_89f1hw4", l = (l) => {
|
|
@@ -19,14 +19,14 @@ var ae = "_89f1hw0", s = "_89f1hw1", c = "_89f1hw2", oe = "_89f1hw4", l = (l) =>
|
|
|
19
19
|
name: x,
|
|
20
20
|
rules: k
|
|
21
21
|
}, u[7] = x, u[8] = k, u[9] = A) : A = u[9];
|
|
22
|
-
let { field: j, fieldState: M } =
|
|
22
|
+
let { field: j, fieldState: M } = re(A), N, P, F, I;
|
|
23
23
|
u[10] === j ? (N = u[11], P = u[12], F = u[13], I = u[14]) : ({value: I, onBlur: N, onChange: P, ...F} = j, u[10] = j, u[11] = N, u[12] = P, u[13] = F, u[14] = I);
|
|
24
24
|
let { error: ce } = M, L = !!d?.required, R = ce?.message, z = !!C && !!I && C === I, B;
|
|
25
25
|
u[15] === g?.country ? B = u[16] : (B = () => {
|
|
26
26
|
let e = g?.country;
|
|
27
27
|
if (e && typeof e == "string") {
|
|
28
28
|
let t = e?.toUpperCase();
|
|
29
|
-
if (
|
|
29
|
+
if (ne(t)) return t;
|
|
30
30
|
}
|
|
31
31
|
return "IN";
|
|
32
32
|
}, u[15] = g?.country, u[16] = B);
|
|
@@ -55,7 +55,7 @@ var ae = "_89f1hw0", s = "_89f1hw1", c = "_89f1hw2", oe = "_89f1hw4", l = (l) =>
|
|
|
55
55
|
let X;
|
|
56
56
|
u[27] !== F || u[28] !== W || u[29] !== G || u[30] !== K || u[31] !== q || u[32] !== J || u[33] !== Y ? (X = /* @__PURE__ */ a("div", {
|
|
57
57
|
className: c,
|
|
58
|
-
children: /* @__PURE__ */ a(
|
|
58
|
+
children: /* @__PURE__ */ a(te, {
|
|
59
59
|
value: W,
|
|
60
60
|
international: !0,
|
|
61
61
|
inputComponent: r,
|
|
@@ -75,7 +75,7 @@ var Q = [
|
|
|
75
75
|
...i,
|
|
76
76
|
children: o
|
|
77
77
|
}) : null;
|
|
78
|
-
}, te = /* @__PURE__ */ d({ PopupBody: () => oe }), ne = b(() => import("./dist-
|
|
78
|
+
}, te = /* @__PURE__ */ d({ PopupBody: () => oe }), ne = b(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), re = a({ baseSpacing: ".625rem" }), ie = { style: l({ form: { gap: "1rem" } }) }, ae = {
|
|
79
79
|
left: u,
|
|
80
80
|
center: h,
|
|
81
81
|
right: p
|
|
@@ -104,7 +104,7 @@ var oe = (e) => (e ?? "16:9").replace(":", " / "), se = (e) => {
|
|
|
104
104
|
...i,
|
|
105
105
|
children: n
|
|
106
106
|
}), t[15] = n, t[16] = i, t[17] = g, t[18] = _) : _ = t[18], _;
|
|
107
|
-
}, ue = F(() => import("./PopupBody-BI-MJqmd-
|
|
107
|
+
}, ue = F(() => import("./PopupBody-BI-MJqmd-C9i44N2h.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), de = (e) => {
|
|
108
108
|
let t = D(7), { size: n } = e, r = n ?? "medium", i;
|
|
109
109
|
t[0] === r ? i = t[1] : (i = E({ size: r }), t[0] = r, t[1] = i);
|
|
110
110
|
let a, o, s;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./Button-
|
|
2
|
+
import { t as e } from "./Button-D6OAkNtW.js";
|
|
3
3
|
import { n as t } from "./AuthProvider-B5NfFwbG.js";
|
|
4
4
|
import { t as n } from "./cn-B6c1DjO_.js";
|
|
5
5
|
import { n as r, t as i } from "./StripePaymentModal-C3bQ0jQi.js";
|
|
6
|
-
import { BillingStep as a } from "./BillingStep-
|
|
6
|
+
import { BillingStep as a } from "./BillingStep-Cskl5Sbc.js";
|
|
7
7
|
import { errorHandler as o, useLevo as s } from "@levo-so/react";
|
|
8
8
|
import { useEffect as c, useRef as l, useState as u } from "react";
|
|
9
9
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
package/collection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./dist-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./dist-Dq-z9c3T.js";
|
|
2
2
|
export { t as CollectionForm, a as CollectionFormBuilder, r as CollectionFormRenderer, n as FormBuilder, i as LevoFormProvider, e as useLevoForm, o as useLevoFormContext };
|