@levo-so/studio 0.3.20 → 0.3.22

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.
Files changed (69) hide show
  1. package/BillingStep-ioR7mSo5.js +249 -0
  2. package/BookingCard-DEkBXh7O.js +646 -0
  3. package/DateTimeWidget-B-dajfHj.js +253 -0
  4. package/{EntryCard-9yv0KJTB.js → EntryCard-CZfljZAY.js} +4 -4
  5. package/{KBChatWidget-D39Z3HIl.js → KBChatWidget-BXRRgelS.js} +1 -1
  6. package/{LoginCard-D9vEC_g0.js → LoginCard-BVjeN1J0.js} +3 -3
  7. package/{LoginForm-kI_b_7Tc.js → LoginForm-DQVwLQCx.js} +19 -19
  8. package/{LoginModal-C-9BhmoO.js → LoginModal-C6TdAh-0.js} +5 -6
  9. package/{MessageCard-Nsxr98n6.js → MessageCard-B5MbVDJ8.js} +2 -2
  10. package/{MessageFooter-K4Zd_eFO.js → MessageFooter-DrlKXE9a.js} +1 -2
  11. package/{PendingApprovalCard-CzoBgYNy.js → PendingApprovalCard-5iFAeE1s.js} +3 -3
  12. package/{PhoneWidget-BtMMfGLu.js → PhoneWidget-B4KHlFjT.js} +6 -7
  13. package/{Popover-Iis-qOn1.js → Popover-y8XkbYNh.js} +7 -7
  14. package/{PopupBody-BI-MJqmd-B3ltSYMP.js → PopupBody-DWM55Zh5-DuOPsCAn.js} +53 -55
  15. package/PopupDialog-DwAAJ8JS-9xm5jrXW.js +261 -0
  16. package/PopupRenderer-BVtV4b9I-BdPryfLY.js +208 -0
  17. package/{ProfileCard-Chg20HBa.js → ProfileCard-WgFT-T4U.js} +5 -5
  18. package/{RichTextWidget-C3Y-0pNy.js → RichTextWidget-DKYm1cSW.js} +120 -123
  19. package/{Spinner-D5spB_Mv.js → Spinner-LdYfm4S7.js} +1 -1
  20. package/{VerifyButton-BwTbzSwS.js → VerifyButton-CNq78zG4.js} +5 -7
  21. package/collection.d.ts +9 -1
  22. package/collection.js +1 -1
  23. package/dialog-CU5nHKc5.js +119 -0
  24. package/dist-IMRD6dob.js +3858 -0
  25. package/index.js +3280 -2848
  26. package/{inlineRteTheme-BOAno9MG.js → inlineRteTheme-DFg69bqP.js} +50 -37
  27. package/{kbChat-zXbn56Zb.js → kbChat-eFsau7hG.js} +2 -2
  28. package/package.json +42 -43
  29. package/{pillChrome-QDjBETmP.js → pillChrome-Dy3ApFI5.js} +5 -5
  30. package/price-BUDkN5Me.js +823 -0
  31. package/script.esm-uVCZU25S.js +62 -0
  32. package/studio.css +1 -1
  33. package/themeMapping-DH_NoXK8-H-EHXbBt.js +156 -0
  34. package/useCheckout-gscmzFLD.js +179 -0
  35. package/useLogin-BYVekOp9.js +237 -0
  36. package/AuthProvider-B5NfFwbG.js +0 -118
  37. package/BillingStep-BTDOMFHV.js +0 -181
  38. package/Button-DXLWW3dp.js +0 -504
  39. package/CollectionField-BZmxRB5D.js +0 -270
  40. package/CollectionInput-DyNbxIZ8.js +0 -147
  41. package/DateTimeWidget-Bt1UcCnx.js +0 -255
  42. package/Dialog-CPE8yUqK.js +0 -130
  43. package/ModalManager-CzH36UIk.js +0 -32
  44. package/PopupRenderer-D66Gx63H-ChI4WBer.js +0 -389
  45. package/RteThemeProvider-owl5oajj.js +0 -20
  46. package/ThemeProvider-CqPHzkW9.js +0 -116
  47. package/Tooltip-DHU1QD-n.js +0 -67
  48. package/authentication-BXQbxiPP.js +0 -36
  49. package/bookingCard-g0n3ksiC.js +0 -605
  50. package/createThemeExtension-C0PSYy0J.js +0 -15
  51. package/dialog-8LH_ihs4.js +0 -92
  52. package/dist-Dijjo-5m.js +0 -3794
  53. package/generateRadiusScale-RROt8ppa.js +0 -71
  54. package/inlineCollectionTheme-uhBXoF1F.js +0 -19
  55. package/popupState-JmpeKzgM-UECLsSbL.js +0 -100
  56. package/rteTheme.cssm-W4gTOijw.js +0 -4
  57. package/theme.cssm-Czj9sF4X.js +0 -4
  58. package/themeMapping-Bi9Rcr5G-C7UXWE6o.js +0 -61
  59. package/useCheckout-DFalmfEQ.js +0 -161
  60. package/useLogin-CfnGrLdO.js +0 -127
  61. package/usePopupRedirect-CAAdcpaW-DdME0F7f.js +0 -82
  62. /package/{Beams-WJN38XSv.js → Beams-KsU_ixpY.js} +0 -0
  63. /package/{Dots-DggLz5I7.js → Dots-C_ja_PPu.js} +0 -0
  64. /package/{Gradient-BSWJAu0a.js → Gradient-CDGFLaA-.js} +0 -0
  65. /package/{Grid-BFKl0MUt.js → Grid-C22rTkrs.js} +0 -0
  66. /package/{Waves-BPEgTYoO.js → Waves-Cl5rKcFJ.js} +0 -0
  67. /package/{card-5ooLmYSr.js → card-BIebVDA0.js} +0 -0
  68. /package/{cn-B6c1DjO_.js → cn-CzJDhklM.js} +0 -0
  69. /package/{fontSize-B-ba6pvx.js → fontSize-DowUyWe-.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { c as e } from "./dist-Dijjo-5m.js";
3
- import { n as t } from "./AuthProvider-B5NfFwbG.js";
4
- import { t as n } from "./Spinner-D5spB_Mv.js";
5
- import { t as r } from "./card-5ooLmYSr.js";
6
- import { t as i } from "./MessageFooter-K4Zd_eFO.js";
2
+ import { c as e } from "./dist-IMRD6dob.js";
3
+ import { r as t } from "./useLogin-BYVekOp9.js";
4
+ import { t as n } from "./Spinner-LdYfm4S7.js";
5
+ import { t as r } from "./card-BIebVDA0.js";
6
+ import { t as i } from "./MessageFooter-DrlKXE9a.js";
7
7
  import { useLevo as a } from "@levo-so/react";
8
8
  import { useEffect as o, useState as s } from "react";
9
9
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,10 +1,7 @@
1
1
  "use client";
2
- import { r as e } from "./ThemeProvider-CqPHzkW9.js";
3
- import { n as t, r as n, t as r } from "./inlineRteTheme-BOAno9MG.js";
4
- import { n as i, r as a, t as o } from "./CollectionField-BZmxRB5D.js";
5
- import { i as s, n as c, r as l, t as u } from "./Tooltip-DHU1QD-n.js";
6
- import { t as d } from "./RteThemeProvider-owl5oajj.js";
7
- import { a as f, i as p, n as m, o as h, r as g } from "./Popover-Iis-qOn1.js";
2
+ import { D as e, E as t, S as n, T as r, b as i, k as a, x as o, y as s } from "./price-BUDkN5Me.js";
3
+ import { a as c, i as l, n as u, t as d } from "./inlineRteTheme-DFg69bqP.js";
4
+ import { a as f, i as p, n as m, o as h, r as g } from "./Popover-y8XkbYNh.js";
8
5
  import { c as _ } from "react/compiler-runtime";
9
6
  import { forwardRef as v, useEffect as y, useState as b } from "react";
10
7
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -36,7 +33,7 @@ var _e = (e = { placeholder: "Write something ..." }) => [
36
33
  ue,
37
34
  Z,
38
35
  X,
39
- n,
36
+ c,
40
37
  ce.configure({ types: [
41
38
  "paragraph",
42
39
  "heading",
@@ -44,14 +41,14 @@ var _e = (e = { placeholder: "Write something ..." }) => [
44
41
  "orderedList"
45
42
  ] })
46
43
  ], ve = "_261ja30", ye = "_261ja31", $ = v((t, n) => {
47
- let r = _(27), i, a, o, s, d, f, p;
48
- r[0] === t ? (i = r[1], a = r[2], o = r[3], s = r[4], d = r[5], f = r[6], p = r[7]) : ({label: s, Icon: i, isActive: o, iconSize: f, trailing: p, className: a, ...d} = t, r[0] = t, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = d, r[6] = f, r[7] = p);
49
- let m = f === void 0 ? 16 : f, h = o || void 0, g = o && "_1vaxhty0", v;
50
- r[8] !== a || r[9] !== g ? (v = w(g, a), r[8] = a, r[9] = g, r[10] = v) : v = r[10];
44
+ let r = _(27), a, c, l, u, d, f, p;
45
+ r[0] === t ? (a = r[1], c = r[2], l = r[3], u = r[4], d = r[5], f = r[6], p = r[7]) : ({label: u, Icon: a, isActive: l, iconSize: f, trailing: p, className: c, ...d} = t, r[0] = t, r[1] = a, r[2] = c, r[3] = l, r[4] = u, r[5] = d, r[6] = f, r[7] = p);
46
+ let m = f === void 0 ? 16 : f, h = l || void 0, g = l && "_1vaxhty0", v;
47
+ r[8] !== c || r[9] !== g ? (v = w(g, c), r[8] = c, r[9] = g, r[10] = v) : v = r[10];
51
48
  let y;
52
- r[11] !== i || r[12] !== m ? (y = /* @__PURE__ */ S(i, { size: m }), r[11] = i, r[12] = m, r[13] = y) : y = r[13];
49
+ r[11] !== a || r[12] !== m ? (y = /* @__PURE__ */ S(a, { size: m }), r[11] = a, r[12] = m, r[13] = y) : y = r[13];
53
50
  let b;
54
- r[14] !== s || r[15] !== d || r[16] !== n || r[17] !== h || r[18] !== v || r[19] !== y || r[20] !== p ? (b = /* @__PURE__ */ S(c, {
51
+ r[14] !== u || r[15] !== d || r[16] !== n || r[17] !== h || r[18] !== v || r[19] !== y || r[20] !== p ? (b = /* @__PURE__ */ S(i, {
55
52
  onPointerDown: be,
56
53
  render: /* @__PURE__ */ C(e, {
57
54
  ref: n,
@@ -59,17 +56,17 @@ var _e = (e = { placeholder: "Write something ..." }) => [
59
56
  variant: "ghost",
60
57
  size: "sm",
61
58
  tabIndex: -1,
62
- "aria-label": s,
59
+ "aria-label": u,
63
60
  "aria-pressed": h,
64
61
  className: v,
65
62
  ...d,
66
63
  children: [y, p]
67
64
  })
68
- }), r[14] = s, r[15] = d, r[16] = n, r[17] = h, r[18] = v, r[19] = y, r[20] = p, r[21] = b) : b = r[21];
65
+ }), r[14] = u, r[15] = d, r[16] = n, r[17] = h, r[18] = v, r[19] = y, r[20] = p, r[21] = b) : b = r[21];
69
66
  let x;
70
- r[22] === s ? x = r[23] : (x = /* @__PURE__ */ S(l, { children: s }), r[22] = s, r[23] = x);
67
+ r[22] === u ? x = r[23] : (x = /* @__PURE__ */ S(o, { children: u }), r[22] = u, r[23] = x);
71
68
  let T;
72
- return r[24] !== b || r[25] !== x ? (T = /* @__PURE__ */ C(u, { children: [b, x] }), r[24] = b, r[25] = x, r[26] = T) : T = r[26], T;
69
+ return r[24] !== b || r[25] !== x ? (T = /* @__PURE__ */ C(s, { children: [b, x] }), r[24] = b, r[25] = x, r[26] = T) : T = r[26], T;
73
70
  });
74
71
  $.displayName = "ToolbarButton";
75
72
  function be(e) {
@@ -137,43 +134,43 @@ var xe = [
137
134
  }
138
135
  return !1;
139
136
  }, Ae = "j67x6z0", je = "j67x6z1", Me = "_5pk5r80", Ne = (e) => {
140
- let t = _(50), { editor: n } = e, [r, i] = b(!1), { isActive: a, currentUrl: o } = ge({
137
+ let t = _(50), { editor: n } = e, [r, a] = b(!1), { isActive: c, currentUrl: l } = ge({
141
138
  editor: n,
142
139
  selector: Pe
143
140
  }) ?? {
144
141
  isActive: !1,
145
142
  currentUrl: ""
146
- }, [s, d] = b(o), v, x;
147
- t[0] !== o || t[1] !== r ? (v = () => {
148
- r && d(o);
149
- }, x = [r, o], t[0] = o, t[1] = r, t[2] = v, t[3] = x) : (v = t[2], x = t[3]), y(v, x);
143
+ }, [u, d] = b(l), v, x;
144
+ t[0] !== l || t[1] !== r ? (v = () => {
145
+ r && d(l);
146
+ }, x = [r, l], t[0] = l, t[1] = r, t[2] = v, t[3] = x) : (v = t[2], x = t[3]), y(v, x);
150
147
  let w;
151
- t[4] !== n || t[5] !== s ? (w = () => {
152
- s && (n.chain().focus().extendMarkRange("link").setLink({ href: s }).run(), i(!1));
153
- }, t[4] = n, t[5] = s, t[6] = w) : w = t[6];
148
+ t[4] !== n || t[5] !== u ? (w = () => {
149
+ u && (n.chain().focus().extendMarkRange("link").setLink({ href: u }).run(), a(!1));
150
+ }, t[4] = n, t[5] = u, t[6] = w) : w = t[6];
154
151
  let T = w, E;
155
152
  t[7] === n ? E = t[8] : (E = () => {
156
- n.chain().focus().extendMarkRange("link").unsetLink().run(), d(""), i(!1);
153
+ n.chain().focus().extendMarkRange("link").unsetLink().run(), d(""), a(!1);
157
154
  }, t[7] = n, t[8] = E);
158
155
  let D = E, ee;
159
- t[9] === s ? ee = t[10] : (ee = () => {
160
- let e = De(s, window.location.href);
156
+ t[9] === u ? ee = t[10] : (ee = () => {
157
+ let e = De(u, window.location.href);
161
158
  e !== "#" && window.open(e, "_blank", "noopener,noreferrer");
162
- }, t[9] = s, t[10] = ee);
159
+ }, t[9] = u, t[10] = ee);
163
160
  let te = ee, ne;
164
161
  t[11] === Symbol.for("react.memo_cache_sentinel") ? (ne = (e) => {
165
- e.preventDefault(), i(!0);
162
+ e.preventDefault(), a(!0);
166
163
  }, t[11] = ne) : ne = t[11];
167
164
  let O;
168
- t[12] === a ? O = t[13] : (O = /* @__PURE__ */ S(h, {
165
+ t[12] === c ? O = t[13] : (O = /* @__PURE__ */ S(h, {
169
166
  onPointerDown: Fe,
170
167
  render: /* @__PURE__ */ S($, {
171
168
  label: "Link",
172
169
  Icon: ae,
173
- isActive: a,
170
+ isActive: c,
174
171
  onClick: ne
175
172
  })
176
- }), t[12] = a, t[13] = O);
173
+ }), t[12] = c, t[13] = O);
177
174
  let k;
178
175
  t[14] === Symbol.for("react.memo_cache_sentinel") ? (k = (e) => d(e.target.value), t[14] = k) : k = t[14];
179
176
  let A;
@@ -181,17 +178,17 @@ var xe = [
181
178
  e.key === "Enter" && (e.preventDefault(), T());
182
179
  }, t[15] = T, t[16] = A);
183
180
  let j;
184
- t[17] !== A || t[18] !== s ? (j = /* @__PURE__ */ S("input", {
181
+ t[17] !== A || t[18] !== u ? (j = /* @__PURE__ */ S("input", {
185
182
  className: je,
186
- value: s,
183
+ value: u,
187
184
  onChange: k,
188
185
  onKeyDown: A,
189
186
  placeholder: "Paste a link..."
190
- }), t[17] = A, t[18] = s, t[19] = j) : j = t[19];
191
- let M = !s && !a, N;
187
+ }), t[17] = A, t[18] = u, t[19] = j) : j = t[19];
188
+ let M = !u && !c, N;
192
189
  t[20] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ S(re, { size: 16 }), t[20] = N) : N = t[20];
193
190
  let P;
194
- t[21] !== T || t[22] !== M ? (P = /* @__PURE__ */ S(c, { render: /* @__PURE__ */ S("button", {
191
+ t[21] !== T || t[22] !== M ? (P = /* @__PURE__ */ S(i, { render: /* @__PURE__ */ S("button", {
195
192
  type: "button",
196
193
  className: Me,
197
194
  onClick: T,
@@ -200,13 +197,13 @@ var xe = [
200
197
  children: N
201
198
  }) }), t[21] = T, t[22] = M, t[23] = P) : P = t[23];
202
199
  let F;
203
- t[24] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ S(l, { children: "Apply link" }), t[24] = F) : F = t[24];
200
+ t[24] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ S(o, { children: "Apply link" }), t[24] = F) : F = t[24];
204
201
  let I;
205
- t[25] === P ? I = t[26] : (I = /* @__PURE__ */ C(u, { children: [P, F] }), t[25] = P, t[26] = I);
206
- let L = !s && !a, R;
202
+ t[25] === P ? I = t[26] : (I = /* @__PURE__ */ C(s, { children: [P, F] }), t[25] = P, t[26] = I);
203
+ let L = !u && !c, R;
207
204
  t[27] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ S(ie, { size: 16 }), t[27] = R) : R = t[27];
208
205
  let z;
209
- t[28] !== te || t[29] !== L ? (z = /* @__PURE__ */ S(c, { render: /* @__PURE__ */ S("button", {
206
+ t[28] !== te || t[29] !== L ? (z = /* @__PURE__ */ S(i, { render: /* @__PURE__ */ S("button", {
210
207
  type: "button",
211
208
  className: Me,
212
209
  onClick: te,
@@ -215,13 +212,13 @@ var xe = [
215
212
  children: R
216
213
  }) }), t[28] = te, t[29] = L, t[30] = z) : z = t[30];
217
214
  let B;
218
- t[31] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ S(l, { children: "Open in new window" }), t[31] = B) : B = t[31];
215
+ t[31] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ S(o, { children: "Open in new window" }), t[31] = B) : B = t[31];
219
216
  let V;
220
- t[32] === z ? V = t[33] : (V = /* @__PURE__ */ C(u, { children: [z, B] }), t[32] = z, t[33] = V);
221
- let H = !s && !a, U;
217
+ t[32] === z ? V = t[33] : (V = /* @__PURE__ */ C(s, { children: [z, B] }), t[32] = z, t[33] = V);
218
+ let H = !u && !c, U;
222
219
  t[34] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ S(se, { size: 16 }), t[34] = U) : U = t[34];
223
220
  let W;
224
- t[35] !== D || t[36] !== H ? (W = /* @__PURE__ */ S(c, { render: /* @__PURE__ */ S("button", {
221
+ t[35] !== D || t[36] !== H ? (W = /* @__PURE__ */ S(i, { render: /* @__PURE__ */ S("button", {
225
222
  type: "button",
226
223
  className: Me,
227
224
  onClick: D,
@@ -230,9 +227,9 @@ var xe = [
230
227
  children: U
231
228
  }) }), t[35] = D, t[36] = H, t[37] = W) : W = t[37];
232
229
  let G;
233
- t[38] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ S(l, { children: "Remove link" }), t[38] = G) : G = t[38];
230
+ t[38] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ S(o, { children: "Remove link" }), t[38] = G) : G = t[38];
234
231
  let K;
235
- t[39] === W ? K = t[40] : (K = /* @__PURE__ */ C(u, { children: [W, G] }), t[39] = W, t[40] = K);
232
+ t[39] === W ? K = t[40] : (K = /* @__PURE__ */ C(s, { children: [W, G] }), t[39] = W, t[40] = K);
236
233
  let q;
237
234
  t[41] !== j || t[42] !== I || t[43] !== V || t[44] !== K ? (q = /* @__PURE__ */ S(p, { children: /* @__PURE__ */ S(g, {
238
235
  side: "bottom",
@@ -250,7 +247,7 @@ var xe = [
250
247
  let J;
251
248
  return t[46] !== r || t[47] !== q || t[48] !== O ? (J = /* @__PURE__ */ C(m, {
252
249
  open: r,
253
- onOpenChange: i,
250
+ onOpenChange: a,
254
251
  children: [O, q]
255
252
  }), t[46] = r, t[47] = q, t[48] = O, t[49] = J) : J = t[49], J;
256
253
  };
@@ -547,74 +544,74 @@ var Ue = [
547
544
  onClick: i
548
545
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
549
546
  }, Ze = (e) => {
550
- let t = _(33), { children: n } = e, { editor: r } = me();
551
- if (!r) return null;
547
+ let n = _(33), { children: r } = e, { editor: i } = me();
548
+ if (!i) return null;
552
549
  let a;
553
- t[0] === r ? a = t[1] : (a = /* @__PURE__ */ S("div", {
550
+ n[0] === i ? a = n[1] : (a = /* @__PURE__ */ S("div", {
554
551
  className: ye,
555
- children: /* @__PURE__ */ S(Be, { editor: r })
556
- }), t[0] = r, t[1] = a);
552
+ children: /* @__PURE__ */ S(Be, { editor: i })
553
+ }), n[0] = i, n[1] = a);
557
554
  let o;
558
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ S(i, { orientation: "vertical" }), t[2] = o) : o = t[2];
555
+ n[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ S(t, { orientation: "vertical" }), n[2] = o) : o = n[2];
559
556
  let s;
560
- t[3] === r ? s = t[4] : (s = Ue.map((e) => /* @__PURE__ */ S(Ke, {
561
- editor: r,
557
+ n[3] === i ? s = n[4] : (s = Ue.map((e) => /* @__PURE__ */ S(Ke, {
558
+ editor: i,
562
559
  ...e
563
- }, e.mark)), t[3] = r, t[4] = s);
560
+ }, e.mark)), n[3] = i, n[4] = s);
564
561
  let c;
565
- t[5] === s ? c = t[6] : (c = /* @__PURE__ */ S("div", {
562
+ n[5] === s ? c = n[6] : (c = /* @__PURE__ */ S("div", {
566
563
  className: ye,
567
564
  children: s
568
- }), t[5] = s, t[6] = c);
565
+ }), n[5] = s, n[6] = c);
569
566
  let l;
570
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ S(i, { orientation: "vertical" }), t[7] = l) : l = t[7];
567
+ n[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ S(t, { orientation: "vertical" }), n[7] = l) : l = n[7];
571
568
  let u;
572
- t[8] === r ? u = t[9] : (u = /* @__PURE__ */ S("div", {
569
+ n[8] === i ? u = n[9] : (u = /* @__PURE__ */ S("div", {
573
570
  className: ye,
574
- children: /* @__PURE__ */ S(Ne, { editor: r })
575
- }), t[8] = r, t[9] = u);
571
+ children: /* @__PURE__ */ S(Ne, { editor: i })
572
+ }), n[8] = i, n[9] = u);
576
573
  let d;
577
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ S(i, { orientation: "vertical" }), t[10] = d) : d = t[10];
574
+ n[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ S(t, { orientation: "vertical" }), n[10] = d) : d = n[10];
578
575
  let f;
579
- t[11] === r ? f = t[12] : (f = Ge.map((e) => /* @__PURE__ */ S(qe, {
580
- editor: r,
576
+ n[11] === i ? f = n[12] : (f = Ge.map((e) => /* @__PURE__ */ S(qe, {
577
+ editor: i,
581
578
  ...e
582
- }, e.align)), t[11] = r, t[12] = f);
579
+ }, e.align)), n[11] = i, n[12] = f);
583
580
  let p;
584
- t[13] === f ? p = t[14] : (p = /* @__PURE__ */ S("div", {
581
+ n[13] === f ? p = n[14] : (p = /* @__PURE__ */ S("div", {
585
582
  className: ye,
586
583
  children: f
587
- }), t[13] = f, t[14] = p);
584
+ }), n[13] = f, n[14] = p);
588
585
  let m;
589
- t[15] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ S(i, { orientation: "vertical" }), t[15] = m) : m = t[15];
586
+ n[15] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ S(t, { orientation: "vertical" }), n[15] = m) : m = n[15];
590
587
  let h;
591
- t[16] === r ? h = t[17] : (h = We.map((e) => /* @__PURE__ */ S(Ke, {
592
- editor: r,
588
+ n[16] === i ? h = n[17] : (h = We.map((e) => /* @__PURE__ */ S(Ke, {
589
+ editor: i,
593
590
  ...e
594
- }, e.mark)), t[16] = r, t[17] = h);
591
+ }, e.mark)), n[16] = i, n[17] = h);
595
592
  let g;
596
- t[18] === h ? g = t[19] : (g = /* @__PURE__ */ S("div", {
593
+ n[18] === h ? g = n[19] : (g = /* @__PURE__ */ S("div", {
597
594
  className: ye,
598
595
  children: h
599
- }), t[18] = h, t[19] = g);
596
+ }), n[18] = h, n[19] = g);
600
597
  let v;
601
- t[20] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ S(i, { orientation: "vertical" }), t[20] = v) : v = t[20];
598
+ n[20] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ S(t, { orientation: "vertical" }), n[20] = v) : v = n[20];
602
599
  let y;
603
- t[21] === r ? y = t[22] : (y = /* @__PURE__ */ C("div", {
600
+ n[21] === i ? y = n[22] : (y = /* @__PURE__ */ C("div", {
604
601
  className: ye,
605
602
  children: [
606
- /* @__PURE__ */ S(Xe, { editor: r }),
607
- /* @__PURE__ */ S(Je, { editor: r }),
608
- /* @__PURE__ */ S(Ye, { editor: r })
603
+ /* @__PURE__ */ S(Xe, { editor: i }),
604
+ /* @__PURE__ */ S(Je, { editor: i }),
605
+ /* @__PURE__ */ S(Ye, { editor: i })
609
606
  ]
610
- }), t[21] = r, t[22] = y);
607
+ }), n[21] = i, n[22] = y);
611
608
  let b;
612
- t[23] === n ? b = t[24] : (b = n && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(i, { orientation: "vertical" }), /* @__PURE__ */ S("div", {
609
+ n[23] === r ? b = n[24] : (b = r && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(t, { orientation: "vertical" }), /* @__PURE__ */ S("div", {
613
610
  className: "_261ja31",
614
- children: n
615
- })] }), t[23] = n, t[24] = b);
611
+ children: r
612
+ })] }), n[23] = r, n[24] = b);
616
613
  let w;
617
- return t[25] !== a || t[26] !== g || t[27] !== y || t[28] !== b || t[29] !== c || t[30] !== u || t[31] !== p ? (w = /* @__PURE__ */ C("div", {
614
+ return n[25] !== a || n[26] !== g || n[27] !== y || n[28] !== b || n[29] !== c || n[30] !== u || n[31] !== p ? (w = /* @__PURE__ */ C("div", {
618
615
  className: ve,
619
616
  children: [
620
617
  a,
@@ -630,7 +627,7 @@ var Ue = [
630
627
  y,
631
628
  b
632
629
  ]
633
- }), t[25] = a, t[26] = g, t[27] = y, t[28] = b, t[29] = c, t[30] = u, t[31] = p, t[32] = w) : w = t[32], w;
630
+ }), n[25] = a, n[26] = g, n[27] = y, n[28] = b, n[29] = c, n[30] = u, n[31] = p, n[32] = w) : w = n[32], w;
634
631
  };
635
632
  function Qe(e) {
636
633
  let { editor: t } = e;
@@ -646,69 +643,69 @@ function et(e) {
646
643
  }
647
644
  //#endregion
648
645
  //#region ../../libraries/react-collection/dist/widgets/richTextWidget/RichTextWidget.cssm.js
649
- var tt = "_1vx76w30", nt = "_1vx76w33", rt = "_1vx76w34", it = { style: r({ baseSpacing: ".875rem" }) }, at = (e) => {
650
- let n = _(58), { field: r } = e, [c, l] = b(!1), { key: u, label: f, helper_text: p, readonly: m, placeholder: h } = r, g = u === void 0 ? "" : u, v = f === void 0 ? "" : f, x = p === void 0 ? "" : p, T = m === void 0 ? !1 : m, E;
651
- n[0] === r ? E = n[1] : (E = a(r), n[0] = r, n[1] = E);
646
+ var tt = "_1vx76w30", nt = "_1vx76w33", rt = "_1vx76w34", it = { style: d({ baseSpacing: ".875rem" }) }, at = (e) => {
647
+ let i = _(58), { field: o } = e, [s, c] = b(!1), { key: d, label: f, helper_text: p, readonly: m, placeholder: h } = o, g = d === void 0 ? "" : d, v = f === void 0 ? "" : f, x = p === void 0 ? "" : p, T = m === void 0 ? !1 : m, E;
648
+ i[0] === o ? E = i[1] : (E = a(o), i[0] = o, i[1] = E);
652
649
  let D;
653
- n[2] !== g || n[3] !== E ? (D = {
650
+ i[2] !== g || i[3] !== E ? (D = {
654
651
  name: g,
655
652
  rules: E
656
- }, n[2] = g, n[3] = E, n[4] = D) : D = n[4];
653
+ }, i[2] = g, i[3] = E, i[4] = D) : D = i[4];
657
654
  let { field: te, fieldState: ne } = ee(D), { value: O, onBlur: k, onChange: A, disabled: j } = te, M = h || "Write something ...", N;
658
- n[5] === M ? N = n[6] : (N = _e({ placeholder: M }), n[5] = M, n[6] = N);
655
+ i[5] === M ? N = i[6] : (N = _e({ placeholder: M }), i[5] = M, i[6] = N);
659
656
  let P = O || "", re = !j && !T, ie;
660
- n[7] === Symbol.for("react.memo_cache_sentinel") ? (ie = { attributes: {
657
+ i[7] === Symbol.for("react.memo_cache_sentinel") ? (ie = { attributes: {
661
658
  autocomplete: "off",
662
659
  autocorrect: "off",
663
660
  autocapitalize: "off",
664
- class: t
665
- } }, n[7] = ie) : ie = n[7];
661
+ class: l
662
+ } }, i[7] = ie) : ie = i[7];
666
663
  let F;
667
- n[8] === A ? F = n[9] : (F = (e) => {
664
+ i[8] === A ? F = i[9] : (F = (e) => {
668
665
  let { editor: t } = e;
669
666
  return A(t.getHTML());
670
- }, n[8] = A, n[9] = F);
667
+ }, i[8] = A, i[9] = F);
671
668
  let I;
672
- n[10] !== P || n[11] !== re || n[12] !== F || n[13] !== N ? (I = {
669
+ i[10] !== P || i[11] !== re || i[12] !== F || i[13] !== N ? (I = {
673
670
  extensions: N,
674
671
  content: P,
675
672
  editable: re,
676
673
  editorProps: ie,
677
674
  onUpdate: F,
678
675
  immediatelyRender: !1
679
- }, n[10] = P, n[11] = re, n[12] = F, n[13] = N, n[14] = I) : I = n[14];
676
+ }, i[10] = P, i[11] = re, i[12] = F, i[13] = N, i[14] = I) : I = i[14];
680
677
  let L = he(I), R;
681
- n[15] !== L || n[16] !== c || n[17] !== O ? (R = () => {
682
- L?.commands && !c && (L.commands.setContent(O || "", { emitUpdate: !1 }), l(!0));
683
- }, n[15] = L, n[16] = c, n[17] = O, n[18] = R) : R = n[18];
678
+ i[15] !== L || i[16] !== s || i[17] !== O ? (R = () => {
679
+ L?.commands && !s && (L.commands.setContent(O || "", { emitUpdate: !1 }), c(!0));
680
+ }, i[15] = L, i[16] = s, i[17] = O, i[18] = R) : R = i[18];
684
681
  let z;
685
- n[19] === O ? z = n[20] : (z = [O], n[19] = O, n[20] = z), y(R, z);
682
+ i[19] === O ? z = i[20] : (z = [O], i[19] = O, i[20] = z), y(R, z);
686
683
  let B, V;
687
- n[21] !== j || n[22] !== L || n[23] !== T ? (B = () => {
684
+ i[21] !== j || i[22] !== L || i[23] !== T ? (B = () => {
688
685
  L && L.setEditable(!j && !T, !1);
689
686
  }, V = [
690
687
  L,
691
688
  j,
692
689
  T
693
- ], n[21] = j, n[22] = L, n[23] = T, n[24] = B, n[25] = V) : (B = n[24], V = n[25]), y(B, V);
690
+ ], i[21] = j, i[22] = L, i[23] = T, i[24] = B, i[25] = V) : (B = i[24], V = i[25]), y(B, V);
694
691
  let ae, H;
695
- n[26] !== L || n[27] !== k ? (ae = () => {
692
+ i[26] !== L || i[27] !== k ? (ae = () => {
696
693
  if (L) return L.on("blur", k), () => {
697
694
  L.off("blur", k);
698
695
  };
699
- }, H = [L, k], n[26] = L, n[27] = k, n[28] = ae, n[29] = H) : (ae = n[28], H = n[29]), y(ae, H);
700
- let U = ne?.error?.message, W = !!r?.required, G = j && "_1vx76w31", K = T && "_1vx76w32", q;
701
- n[30] !== G || n[31] !== K ? (q = w(tt, G, K), n[30] = G, n[31] = K, n[32] = q) : q = n[32];
696
+ }, H = [L, k], i[26] = L, i[27] = k, i[28] = ae, i[29] = H) : (ae = i[28], H = i[29]), y(ae, H);
697
+ let U = ne?.error?.message, W = !!o?.required, G = j && "_1vx76w31", K = T && "_1vx76w32", q;
698
+ i[30] !== G || i[31] !== K ? (q = w(tt, G, K), i[30] = G, i[31] = K, i[32] = q) : q = i[32];
702
699
  let J;
703
- n[33] === L ? J = n[34] : (J = { editor: L }, n[33] = L, n[34] = J);
700
+ i[33] === L ? J = i[34] : (J = { editor: L }, i[33] = L, i[34] = J);
704
701
  let oe, se;
705
- n[35] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ S(Ze, {}), se = /* @__PURE__ */ S(i, { orientation: "horizontal" }), n[35] = oe, n[36] = se) : (oe = n[35], se = n[36]);
702
+ i[35] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ S(Ze, {}), se = /* @__PURE__ */ S(t, { orientation: "horizontal" }), i[35] = oe, i[36] = se) : (oe = i[35], se = i[36]);
706
703
  let Y;
707
- n[37] === L?.commands ? Y = n[38] : (Y = () => L?.commands.focus(), n[37] = L?.commands, n[38] = Y);
704
+ i[37] === L?.commands ? Y = i[38] : (Y = () => L?.commands.focus(), i[37] = L?.commands, i[38] = Y);
708
705
  let X;
709
- n[39] === L ? X = n[40] : (X = /* @__PURE__ */ S(fe, { editor: L }), n[39] = L, n[40] = X);
706
+ i[39] === L ? X = i[40] : (X = /* @__PURE__ */ S(fe, { editor: L }), i[39] = L, i[40] = X);
710
707
  let Z;
711
- n[41] !== Y || n[42] !== X ? (Z = /* @__PURE__ */ C("div", {
708
+ i[41] !== Y || i[42] !== X ? (Z = /* @__PURE__ */ C("div", {
712
709
  className: nt,
713
710
  children: [
714
711
  oe,
@@ -719,22 +716,22 @@ var tt = "_1vx76w30", nt = "_1vx76w33", rt = "_1vx76w34", it = { style: r({ base
719
716
  children: X
720
717
  })
721
718
  ]
722
- }), n[41] = Y, n[42] = X, n[43] = Z) : Z = n[43];
719
+ }), i[41] = Y, i[42] = X, i[43] = Z) : Z = i[43];
723
720
  let Q;
724
- n[44] !== J || n[45] !== Z ? (Q = /* @__PURE__ */ S(d, {
721
+ i[44] !== J || i[45] !== Z ? (Q = /* @__PURE__ */ S(u, {
725
722
  theme: it,
726
- children: /* @__PURE__ */ S(s, { children: /* @__PURE__ */ S(pe.Provider, {
723
+ children: /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S(pe.Provider, {
727
724
  value: J,
728
725
  children: Z
729
726
  }) })
730
- }), n[44] = J, n[45] = Z, n[46] = Q) : Q = n[46];
727
+ }), i[44] = J, i[45] = Z, i[46] = Q) : Q = i[46];
731
728
  let ce;
732
- n[47] !== q || n[48] !== Q ? (ce = /* @__PURE__ */ S("div", {
729
+ i[47] !== q || i[48] !== Q ? (ce = /* @__PURE__ */ S("div", {
733
730
  className: q,
734
731
  children: Q
735
- }), n[47] = q, n[48] = Q, n[49] = ce) : ce = n[49];
732
+ }), i[47] = q, i[48] = Q, i[49] = ce) : ce = i[49];
736
733
  let le;
737
- return n[50] !== x || n[51] !== g || n[52] !== v || n[53] !== T || n[54] !== U || n[55] !== W || n[56] !== ce ? (le = /* @__PURE__ */ S(o, {
734
+ return i[50] !== x || i[51] !== g || i[52] !== v || i[53] !== T || i[54] !== U || i[55] !== W || i[56] !== ce ? (le = /* @__PURE__ */ S(r, {
738
735
  error: U,
739
736
  helperText: x,
740
737
  readOnly: T,
@@ -742,7 +739,7 @@ var tt = "_1vx76w30", nt = "_1vx76w33", rt = "_1vx76w34", it = { style: r({ base
742
739
  htmlFor: g,
743
740
  isRequired: W,
744
741
  children: ce
745
- }), n[50] = x, n[51] = g, n[52] = v, n[53] = T, n[54] = U, n[55] = W, n[56] = ce, n[57] = le) : le = n[57], le;
742
+ }), i[50] = x, i[51] = g, i[52] = v, i[53] = T, i[54] = U, i[55] = W, i[56] = ce, i[57] = le) : le = i[57], le;
746
743
  };
747
744
  //#endregion
748
745
  export { at as RichTextWidget, at as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./cn-B6c1DjO_.js";
1
+ import { t as e } from "./cn-CzJDhklM.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { Loader2 as n } from "lucide-react";
4
4
  //#region src/components/Spinner.tsx
@@ -1,7 +1,5 @@
1
1
  "use client";
2
- import { r as e } from "./ThemeProvider-CqPHzkW9.js";
3
- import { t } from "./CollectionInput-DyNbxIZ8.js";
4
- import { i as n, n as r, o as i, t as a } from "./Dialog-CPE8yUqK.js";
2
+ import { D as e, a as t, c as n, h as r, o as i, u as a } from "./price-BUDkN5Me.js";
5
3
  import { c as o } from "react/compiler-runtime";
6
4
  import { errorToast as s, successToast as c, useLevo as l } from "@levo-so/react";
7
5
  import { useEffect as u, useState as d } from "react";
@@ -30,14 +28,14 @@ var v = "_1k4xirc1", y = (e) => {
30
28
  }, 1e3)), () => clearInterval(e);
31
29
  }, [o, N]), u(() => {
32
30
  o && (O(""), P(30), A(!1), M(!1));
33
- }, [o]), /* @__PURE__ */ p(i, {
31
+ }, [o]), /* @__PURE__ */ p(a, {
34
32
  open: o,
35
33
  onOpenChange: (e) => {
36
34
  e || f();
37
35
  },
38
- children: /* @__PURE__ */ m(r, {
36
+ children: /* @__PURE__ */ m(i, {
39
37
  className: b,
40
- children: [/* @__PURE__ */ p(a, { children: /* @__PURE__ */ p(n, { children: `Verify ${g === "email" ? "Email" : "Phone"}` }) }), /* @__PURE__ */ m("div", {
38
+ children: [/* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(n, { children: `Verify ${g === "email" ? "Email" : "Phone"}` }) }), /* @__PURE__ */ m("div", {
41
39
  className: x,
42
40
  children: [
43
41
  /* @__PURE__ */ m("div", {
@@ -56,7 +54,7 @@ var v = "_1k4xirc1", y = (e) => {
56
54
  }),
57
55
  /* @__PURE__ */ p("div", {
58
56
  className: w,
59
- children: /* @__PURE__ */ p(t, {
57
+ children: /* @__PURE__ */ p(r, {
60
58
  value: y,
61
59
  onChange: (e) => {
62
60
  O(e.target.value.replace(/\D/g, "").slice(0, 4));
package/collection.d.ts CHANGED
@@ -54,8 +54,16 @@ export declare interface ICollectionFormRendererProps extends Omit<ILevoFormCont
54
54
  formVariant?: FormVariantType;
55
55
  fetchedSchema?: ILevoFormContext["schema"];
56
56
  hiddenFields?: string[];
57
- workspace_id?: string;
58
57
  isLoading?: boolean;
58
+ /**
59
+ * The workspace the form belongs to. Only hosts whose client isn't bound to one need it —
60
+ * a generated site's client already carries it.
61
+ */
62
+ workspace_id?: string;
63
+ /** Shown as the merchant name in the payment gateway. */
64
+ workspace_name?: string;
65
+ /** Called once a booking is paid for and the visitor dismisses the ticket. */
66
+ onBookingComplete?: () => void;
59
67
  }
60
68
 
61
69
  declare interface ICommonRendererProps {
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-Dijjo-5m.js";
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-IMRD6dob.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 };