@levo-so/site-runtime 0.3.20 → 0.3.21

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 (53) hide show
  1. package/BillingStep-ByiYjJ0S.js +251 -0
  2. package/BookingCard-DdwLHVGw.js +816 -0
  3. package/CollectionLabel-CmUFfc_7.js +35 -0
  4. package/DateTimeWidget-Bk2tk_CT.js +254 -0
  5. package/{KBChatWidget-BMuZ-VI3.js → KBChatWidget-BXRRgelS.js} +1 -1
  6. package/{PhoneWidget-DPECohGT.js → PhoneWidget-FWE3jD_L.js} +3 -5
  7. package/{Popover-Cr0-X_ch.js → Popover-MSrVDAzg.js} +7 -7
  8. package/PopupBody-DWM55Zh5-B3ysApDM.js +158 -0
  9. package/PopupDialog-DwAAJ8JS-DkxjZaJL.js +260 -0
  10. package/PopupRenderer-BVtV4b9I-Dot4Syse.js +207 -0
  11. package/{RichTextWidget-C1QECDcg.js → RichTextWidget-KnIKESAD.js} +134 -135
  12. package/{RteThemeProvider-CMbSaFRQ.js → RteThemeProvider-DtTXGcCT.js} +2 -3
  13. package/Sonner-BsE4Y_t4.js +21 -0
  14. package/blog-content.js +8 -9
  15. package/dist-BVFCdirT.js +4471 -0
  16. package/dist-DEXGyFeH.js +376 -0
  17. package/index.js +12 -13
  18. package/{themeVars.cssm-ByhhC2Jm.js → inlineBaseTheme-DcNdMEYp.js} +35 -5
  19. package/{inlineCollectionTheme-CWcMCUti.js → inlineCollectionTheme-DjXuH3bK.js} +1 -1
  20. package/{inlineRteTheme-CRPtkNXy.js → inlineRteTheme-BYGIJM7P.js} +1 -1
  21. package/{kbChat-DtZ4vuCZ.js → kbChat-eFsau7hG.js} +2 -2
  22. package/package.json +23 -23
  23. package/{pillChrome-CEpWGNZB.js → pillChrome-Dy3ApFI5.js} +5 -5
  24. package/popups.js +1 -1
  25. package/{react-Cj_U6VZQ.js → react-CENbCy5d.js} +6 -5
  26. package/script.esm-uVCZU25S.js +62 -0
  27. package/start.js +1 -1
  28. package/styles.css +1 -1
  29. package/theme.cssm-iXnQwMCp.js +238 -0
  30. package/CollectionField-DCAXOmBN.js +0 -270
  31. package/CollectionInput-BJ__qcbk.js +0 -147
  32. package/DateTimeWidget-I0LvR-tO.js +0 -255
  33. package/Dialog-D-vRkU9N.js +0 -130
  34. package/LevoProvider-BkbKrvrI.js +0 -20
  35. package/PopupBody-BI-MJqmd-a-l3CaKZ.js +0 -159
  36. package/PopupRenderer-D66Gx63H-DpcNpbtU.js +0 -388
  37. package/ThemeProvider-DlFehjh1.js +0 -116
  38. package/Tooltip-BKQ5rIDh.js +0 -67
  39. package/VerifyButton-D0cj9Z5Q.js +0 -192
  40. package/createThemeExtension-4AUn51iJ.js +0 -15
  41. package/dist-IxiGbP-3.js +0 -3783
  42. package/dist-_lwl0kZw.js +0 -79
  43. package/inlineBaseTheme-BB9e6h5f.js +0 -9
  44. package/popupState-JmpeKzgM-D_77LiAa.js +0 -229
  45. package/react-B9yvlbH0.js +0 -74
  46. package/theme.cssm-DUzmx76l.js +0 -4
  47. package/usePopupRedirect-CAAdcpaW-BDa44PXN.js +0 -82
  48. /package/{content.cssm-XdMsTGIB.js → content.cssm-D_LSloGW.js} +0 -0
  49. /package/{es-CGQflL9T.js → es-CK20DkgT.js} +0 -0
  50. /package/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
  51. /package/{routes-CyKmkoRM.js → routes-DO1BLfh9.js} +0 -0
  52. /package/{rteTheme.cssm-W4gTOijw.js → rteTheme.cssm-BRxusHY4.js} +0 -0
  53. /package/{script.esm-wR2d7rrv.js → script.esm-D4nvz3-k.js} +0 -0
@@ -0,0 +1,35 @@
1
+ import { c as e } from "react/compiler-runtime";
2
+ import t from "clsx";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ //#region ../../libraries/react-collection/dist/components/collectionField/CollectionField.cssm.js
5
+ var i = "_1ompjs11", a = "_1d7f2b80", o = (r) => {
6
+ let i = e(8), o, s;
7
+ i[0] === r ? (o = i[1], s = i[2]) : ({className: o, ...s} = r, i[0] = r, i[1] = o, i[2] = s);
8
+ let c;
9
+ i[3] === o ? c = i[4] : (c = t(a, o), i[3] = o, i[4] = c);
10
+ let l;
11
+ return i[5] !== s || i[6] !== c ? (l = /* @__PURE__ */ n("label", {
12
+ "data-slot": "label",
13
+ className: c,
14
+ ...s
15
+ }), i[5] = s, i[6] = c, i[7] = l) : l = i[7], l;
16
+ };
17
+ //#endregion
18
+ //#region ../../libraries/react-collection/dist/components/collectionLabel/CollectionLabel.js
19
+ function s(t) {
20
+ let a = e(6), { label: s, isRequired: c, htmlFor: l } = t;
21
+ if (!s) return null;
22
+ let u;
23
+ a[0] === c ? u = a[1] : (u = c && /* @__PURE__ */ n("span", {
24
+ className: "_1ompjs10",
25
+ children: "*"
26
+ }), a[0] = c, a[1] = u);
27
+ let d;
28
+ return a[2] !== l || a[3] !== s || a[4] !== u ? (d = /* @__PURE__ */ r(o, {
29
+ htmlFor: l,
30
+ className: i,
31
+ children: [s, u]
32
+ }), a[2] = l, a[3] = s, a[4] = u, a[5] = d) : d = a[5], d;
33
+ }
34
+ //#endregion
35
+ export { o as n, s as t };
@@ -0,0 +1,254 @@
1
+ import { h as e, p as t, s as n } from "./dist-BVFCdirT.js";
2
+ import { m as r } from "./theme.cssm-iXnQwMCp.js";
3
+ import { a as i, i as a, n as o, r as s, t as c } from "./Popover-MSrVDAzg.js";
4
+ import { FieldInterfaces as l } from "@levo-so/core";
5
+ import u from "dayjs";
6
+ import { c as d } from "react/compiler-runtime";
7
+ import { useEffect as f, useRef as p, useState as m } from "react";
8
+ import { useController as h } from "react-hook-form";
9
+ import g from "clsx";
10
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
11
+ import { IconCalendar as y, IconChevronDown as b, IconChevronLeft as x, IconChevronRight as S, IconX as ee } from "@tabler/icons-react";
12
+ import { DayPicker as te, getDefaultClassNames as C } from "react-day-picker";
13
+ //#region ../../libraries/react-collection/dist/widgets/dateTimeWidget/DateTimeWidget.cssm.js
14
+ var ne = "rpx4b10", re = "rpx4b11", ie = "rpx4b12", ae = "rpx4b14 _6o7s4x0", oe = "rpx4b15", se = "rpx4b17", ce = "rpx4b18", le = "rpx4b19", ue = "rpx4b1a", de = "rpx4b1b", fe = "rpx4b1c", pe = "rpx4b1d", me = "rpx4b1e", he = "rpx4b1f", ge = "rpx4b1g", _e = "rpx4b1h", ve = "rpx4b1i", ye = "rpx4b1j", be = "rpx4b1k", xe = "rpx4b1l", Se = "rpx4b1m", Ce = "rpx4b1n", we = "rpx4b1o", Te = "rpx4b1p", Ee = "rpx4b1q", De = "rpx4b1r", Oe = "rpx4b1s", ke = "rpx4b1t", Ae = "rpx4b1u", je = "rpx4b1v", Me = (e) => {
15
+ if (e) {
16
+ let t = new Date(e);
17
+ return Number.isNaN(t.getTime()) ? null : t;
18
+ }
19
+ return null;
20
+ }, Ne = (e, t) => e ? t ? u(e).format("D MMMM, YYYY — h:mm A") : u(e).format("D MMMM, YYYY") : "", Pe = (e) => {
21
+ let t = d(19), { value: n, onChange: r } = e, [i, a] = m(-1), o = p(null), s;
22
+ t[0] === n ? s = t[1] : (s = () => {
23
+ if (!n) return -1;
24
+ let e = n.getHours(), t = n.getMinutes();
25
+ return e * 4 + Math.floor(t / 15);
26
+ }, t[0] = n, t[1] = s);
27
+ let c = s, l, u;
28
+ t[2] === c ? (l = t[3], u = t[4]) : (l = () => {
29
+ let e = c();
30
+ e >= 0 && o.current && o.current.querySelector(`[data-time-index="${e}"]`)?.scrollIntoView({
31
+ block: "center",
32
+ behavior: "smooth"
33
+ });
34
+ }, u = [c], t[2] = c, t[3] = l, t[4] = u), f(l, u);
35
+ let h;
36
+ t[5] !== r || t[6] !== n ? (h = (e, t) => {
37
+ let i = t * 15, o = n ? new Date(n) : /* @__PURE__ */ new Date();
38
+ o.setHours(e, i, 0, 0), r(o), a(e * 4 + t);
39
+ }, t[5] = r, t[6] = n, t[7] = h) : h = t[7];
40
+ let y = h, b;
41
+ t[8] !== i || t[9] !== y ? (b = (e) => {
42
+ e.stopPropagation();
43
+ let t = (e) => {
44
+ let t = o.current?.querySelector(`[data-time-index="${e}"]`);
45
+ t?.scrollIntoView({
46
+ block: "center",
47
+ behavior: "smooth"
48
+ }), t?.focus();
49
+ };
50
+ bb48: switch (e.key) {
51
+ case "ArrowUp": {
52
+ e.preventDefault();
53
+ let n = i - 1 < 0 ? 95 : i - 1;
54
+ a(n), t(n);
55
+ break bb48;
56
+ }
57
+ case "ArrowDown": {
58
+ e.preventDefault();
59
+ let n = i + 1 >= 96 ? 0 : i + 1;
60
+ a(n), t(n);
61
+ break bb48;
62
+ }
63
+ case "Enter":
64
+ e.preventDefault(), i >= 0 && y(Math.floor(i / 4), i % 4);
65
+ break bb48;
66
+ case "Escape": a(-1);
67
+ }
68
+ }, t[8] = i, t[9] = y, t[10] = b) : b = t[10];
69
+ let x = b, S = c(), ee;
70
+ t[11] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ _("div", {
71
+ className: ke,
72
+ children: "Time"
73
+ }), t[11] = ee) : ee = t[11];
74
+ let te;
75
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (te = Array.from({ length: 24 }), t[12] = te) : te = t[12];
76
+ let C;
77
+ t[13] !== S || t[14] !== y ? (C = te.map((e, t) => {
78
+ let n = t === 0 ? 12 : t > 12 ? t - 12 : t, r = t >= 12 ? "PM" : "AM";
79
+ return Array.from({ length: 4 }).map((e, i) => {
80
+ let a = i * 15, o = t * 4 + i, s = o === S, c = `${n}:${a.toString().padStart(2, "0")} ${r}`;
81
+ return /* @__PURE__ */ _("button", {
82
+ type: "button",
83
+ role: "option",
84
+ "aria-selected": s,
85
+ "data-time-index": o,
86
+ className: g(je, s && "rpx4b1w"),
87
+ onClick: () => y(t, i),
88
+ tabIndex: s ? 0 : -1,
89
+ children: c
90
+ }, o);
91
+ });
92
+ }), t[13] = S, t[14] = y, t[15] = C) : C = t[15];
93
+ let ne;
94
+ return t[16] !== x || t[17] !== C ? (ne = /* @__PURE__ */ v("div", {
95
+ className: Oe,
96
+ children: [ee, /* @__PURE__ */ _("div", {
97
+ ref: o,
98
+ className: Ae,
99
+ onKeyDown: x,
100
+ tabIndex: 0,
101
+ role: "listbox",
102
+ "aria-label": "Select time",
103
+ children: C
104
+ })]
105
+ }), t[16] = x, t[17] = C, t[18] = ne) : ne = t[18], ne;
106
+ }, Fe = (u) => {
107
+ let f = d(160), { field: p } = u, { key: b, label: x, helper_text: S, readonly: Oe } = p, ke = b === void 0 ? "" : b, Ae = x === void 0 ? "" : x, je = S === void 0 ? "" : S, Fe = Oe === void 0 ? !1 : Oe, w = ke, [Le, Re] = m(!1), T;
108
+ f[0] === p ? T = f[1] : (T = e(p), f[0] = p, f[1] = T);
109
+ let ze;
110
+ f[2] !== w || f[3] !== T ? (ze = {
111
+ name: w,
112
+ rules: T
113
+ }, f[2] = w, f[3] = T, f[4] = ze) : ze = f[4];
114
+ let { field: Be, fieldState: Ve } = h(ze), E, D, O, k, A;
115
+ f[5] === Be ? (E = f[6], D = f[7], O = f[8], k = f[9], A = f[10]) : ({value: A, onBlur: E, onChange: D, ref: O, ...k} = Be, f[5] = Be, f[6] = E, f[7] = D, f[8] = O, f[9] = k, f[10] = A);
116
+ let He = !!p?.required, Ue = Ve?.error?.message, j = p?.field_interface === l.DateTimeWidget, M, We;
117
+ f[11] !== j || f[12] !== A ? (M = Me(A), We = Ne(M, j), f[11] = j, f[12] = A, f[13] = M, f[14] = We) : (M = f[13], We = f[14]);
118
+ let Ge = We, N, P, F, I, Ke, L, R, z, B, V, H, U, W, G, K, q, qe, Je, Ye, Xe, Ze, Qe, $e, et, tt, nt, J, Y, rt, X, it, at, ot, st, ct, Z, lt, ut, dt, ft, pt, Q, mt;
119
+ if (f[15] !== Ge || f[16] !== j || f[17] !== Ue || f[18] !== je || f[19] !== Le || f[20] !== He || f[21] !== Ae || f[22] !== w || f[23] !== E || f[24] !== D || f[25] !== Fe || f[26] !== O || f[27] !== k || f[28] !== M || f[29] !== A) {
120
+ let e = C(), r;
121
+ f[73] !== j || f[74] !== D || f[75] !== M ? (r = (e) => {
122
+ e && (j && M && e.setHours(M.getHours(), M.getMinutes(), 0, 0), D(e.toISOString()), j || Re(!1));
123
+ }, f[73] = j, f[74] = D, f[75] = M, f[76] = r) : r = f[76];
124
+ let l = r, u;
125
+ f[77] === D ? u = f[78] : (u = (e) => {
126
+ D(e.toISOString());
127
+ }, f[77] = D, f[78] = u), R = u;
128
+ let d;
129
+ f[79] === D ? d = f[80] : (d = (e) => {
130
+ e.preventDefault(), e.stopPropagation(), D(null);
131
+ }, f[79] = D, f[80] = d);
132
+ let p = d;
133
+ L = t, lt = je, ut = Fe, dt = Ue, ft = w, pt = He, Q = Ae, Ke = o, st = Le, ct = Re;
134
+ let m;
135
+ f[81] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ _(y, { size: 18 }), f[81] = m) : m = f[81];
136
+ let h;
137
+ f[82] !== p || f[83] !== A ? (h = A ? /* @__PURE__ */ _("button", {
138
+ type: "button",
139
+ onClick: p,
140
+ "aria-label": "Clear date",
141
+ className: ie,
142
+ children: /* @__PURE__ */ _(ee, { size: 14 })
143
+ }) : void 0, f[82] = p, f[83] = A, f[84] = h) : h = f[84], f[85] !== Ge || f[86] !== w || f[87] !== E || f[88] !== O || f[89] !== k || f[90] !== h ? (Z = /* @__PURE__ */ _(i.Trigger, { render: /* @__PURE__ */ _("div", {
144
+ className: ne,
145
+ children: /* @__PURE__ */ _(n, {
146
+ id: w,
147
+ ref: O,
148
+ value: Ge,
149
+ readOnly: !0,
150
+ leftIcon: m,
151
+ rightIcon: h,
152
+ className: re,
153
+ autoComplete: "off",
154
+ onBlur: E,
155
+ placeholder: "Select date",
156
+ ...k
157
+ })
158
+ }) }), f[85] = Ge, f[86] = w, f[87] = E, f[88] = O, f[89] = k, f[90] = h, f[91] = Z) : Z = f[91], I = a, F = s, at = "start", ot = 4, P = c, it = ae;
159
+ let v = j && "rpx4b16";
160
+ f[92] === v ? X = f[93] : (X = g(oe, v), f[92] = v, f[93] = X), N = te, $e = "single", et = M || void 0, tt = l, nt = "dropdown", f[94] === Symbol.for("react.memo_cache_sentinel") ? (J = new Date((/* @__PURE__ */ new Date()).getFullYear() - 100, 0), f[94] = J) : J = f[94], f[95] === Symbol.for("react.memo_cache_sentinel") ? (Y = new Date((/* @__PURE__ */ new Date()).getFullYear() + 10, 11), f[95] = Y) : Y = f[95], rt = !0, mt = g(e.root, ce), z = le, B = ue, V = g(e.month_caption, de), H = g(fe, e.dropdowns), U = g(me, e.dropdown), W = g(pe, e.dropdown_root), G = g(he, e.caption_label), K = g(ge, e.nav), q = g(_e, e.button_previous), qe = g(ve, e.button_next), Je = g(ye, e.weekdays), Ye = g(be, e.weekday), Xe = g(xe, e.week), Ze = g(Se, e.day), Qe = g(Ce, e.day_button), f[15] = Ge, f[16] = j, f[17] = Ue, f[18] = je, f[19] = Le, f[20] = He, f[21] = Ae, f[22] = w, f[23] = E, f[24] = D, f[25] = Fe, f[26] = O, f[27] = k, f[28] = M, f[29] = A, f[30] = N, f[31] = P, f[32] = F, f[33] = I, f[34] = Ke, f[35] = L, f[36] = R, f[37] = z, f[38] = B, f[39] = V, f[40] = H, f[41] = U, f[42] = W, f[43] = G, f[44] = K, f[45] = q, f[46] = qe, f[47] = Je, f[48] = Ye, f[49] = Xe, f[50] = Ze, f[51] = Qe, f[52] = $e, f[53] = et, f[54] = tt, f[55] = nt, f[56] = J, f[57] = Y, f[58] = rt, f[59] = X, f[60] = it, f[61] = at, f[62] = ot, f[63] = st, f[64] = ct, f[65] = Z, f[66] = lt, f[67] = ut, f[68] = dt, f[69] = ft, f[70] = pt, f[71] = Q, f[72] = mt;
161
+ } else N = f[30], P = f[31], F = f[32], I = f[33], Ke = f[34], L = f[35], R = f[36], z = f[37], B = f[38], V = f[39], H = f[40], U = f[41], W = f[42], G = f[43], K = f[44], q = f[45], qe = f[46], Je = f[47], Ye = f[48], Xe = f[49], Ze = f[50], Qe = f[51], $e = f[52], et = f[53], tt = f[54], nt = f[55], J = f[56], Y = f[57], rt = f[58], X = f[59], it = f[60], at = f[61], ot = f[62], st = f[63], ct = f[64], Z = f[65], lt = f[66], ut = f[67], dt = f[68], ft = f[69], pt = f[70], Q = f[71], mt = f[72];
162
+ let ht;
163
+ f[96] !== z || f[97] !== B || f[98] !== V || f[99] !== H || f[100] !== U || f[101] !== W || f[102] !== G || f[103] !== K || f[104] !== q || f[105] !== qe || f[106] !== Je || f[107] !== Ye || f[108] !== Xe || f[109] !== Ze || f[110] !== Qe || f[111] !== mt ? (ht = {
164
+ root: mt,
165
+ months: z,
166
+ month: B,
167
+ month_caption: V,
168
+ dropdowns: H,
169
+ dropdown: U,
170
+ dropdown_root: W,
171
+ caption_label: G,
172
+ nav: K,
173
+ button_previous: q,
174
+ button_next: qe,
175
+ weekdays: Je,
176
+ weekday: Ye,
177
+ week: Xe,
178
+ day: Ze,
179
+ day_button: Qe,
180
+ selected: we,
181
+ today: Te,
182
+ outside: Ee,
183
+ disabled: De
184
+ }, f[96] = z, f[97] = B, f[98] = V, f[99] = H, f[100] = U, f[101] = W, f[102] = G, f[103] = K, f[104] = q, f[105] = qe, f[106] = Je, f[107] = Ye, f[108] = Xe, f[109] = Ze, f[110] = Qe, f[111] = mt, f[112] = ht) : ht = f[112];
185
+ let gt;
186
+ f[113] === Symbol.for("react.memo_cache_sentinel") ? (gt = { Chevron: Ie }, f[113] = gt) : gt = f[113];
187
+ let _t;
188
+ f[114] !== N || f[115] !== $e || f[116] !== et || f[117] !== tt || f[118] !== nt || f[119] !== J || f[120] !== Y || f[121] !== rt || f[122] !== ht ? (_t = /* @__PURE__ */ _(N, {
189
+ mode: $e,
190
+ selected: et,
191
+ onSelect: tt,
192
+ captionLayout: nt,
193
+ startMonth: J,
194
+ endMonth: Y,
195
+ showOutsideDays: rt,
196
+ classNames: ht,
197
+ components: gt
198
+ }), f[114] = N, f[115] = $e, f[116] = et, f[117] = tt, f[118] = nt, f[119] = J, f[120] = Y, f[121] = rt, f[122] = ht, f[123] = _t) : _t = f[123];
199
+ let vt;
200
+ f[124] !== j || f[125] !== R || f[126] !== M ? (vt = j && /* @__PURE__ */ _(Pe, {
201
+ value: M,
202
+ onChange: R
203
+ }), f[124] = j, f[125] = R, f[126] = M, f[127] = vt) : vt = f[127];
204
+ let yt;
205
+ f[128] !== X || f[129] !== _t || f[130] !== vt ? (yt = /* @__PURE__ */ v("div", {
206
+ className: X,
207
+ children: [_t, vt]
208
+ }), f[128] = X, f[129] = _t, f[130] = vt, f[131] = yt) : yt = f[131];
209
+ let bt;
210
+ f[132] === Symbol.for("react.memo_cache_sentinel") ? (bt = /* @__PURE__ */ _("div", {
211
+ className: se,
212
+ children: /* @__PURE__ */ _(r, {
213
+ variant: "ghost",
214
+ size: "sm",
215
+ onClick: () => Re(!1),
216
+ children: "Done"
217
+ })
218
+ }), f[132] = bt) : bt = f[132];
219
+ let xt;
220
+ f[133] !== P || f[134] !== it || f[135] !== yt ? (xt = /* @__PURE__ */ v(P, {
221
+ className: it,
222
+ children: [yt, bt]
223
+ }), f[133] = P, f[134] = it, f[135] = yt, f[136] = xt) : xt = f[136];
224
+ let St;
225
+ f[137] !== F || f[138] !== at || f[139] !== ot || f[140] !== xt ? (St = /* @__PURE__ */ _(F, {
226
+ align: at,
227
+ sideOffset: ot,
228
+ children: xt
229
+ }), f[137] = F, f[138] = at, f[139] = ot, f[140] = xt, f[141] = St) : St = f[141];
230
+ let Ct;
231
+ f[142] !== I || f[143] !== St ? (Ct = /* @__PURE__ */ _(I, { children: St }), f[142] = I, f[143] = St, f[144] = Ct) : Ct = f[144];
232
+ let $;
233
+ f[145] !== Ke || f[146] !== st || f[147] !== ct || f[148] !== Z || f[149] !== Ct ? ($ = /* @__PURE__ */ v(Ke, {
234
+ open: st,
235
+ onOpenChange: ct,
236
+ children: [Z, Ct]
237
+ }), f[145] = Ke, f[146] = st, f[147] = ct, f[148] = Z, f[149] = Ct, f[150] = $) : $ = f[150];
238
+ let wt;
239
+ return f[151] !== L || f[152] !== lt || f[153] !== ut || f[154] !== dt || f[155] !== ft || f[156] !== pt || f[157] !== Q || f[158] !== $ ? (wt = /* @__PURE__ */ _(L, {
240
+ helperText: lt,
241
+ readOnly: ut,
242
+ error: dt,
243
+ htmlFor: ft,
244
+ isRequired: pt,
245
+ label: Q,
246
+ children: $
247
+ }), f[151] = L, f[152] = lt, f[153] = ut, f[154] = dt, f[155] = ft, f[156] = pt, f[157] = Q, f[158] = $, f[159] = wt) : wt = f[159], wt;
248
+ };
249
+ function Ie(e) {
250
+ let { orientation: t } = e;
251
+ return t === "left" ? /* @__PURE__ */ _(x, { size: 16 }) : t === "right" ? /* @__PURE__ */ _(S, { size: 16 }) : /* @__PURE__ */ _(b, { size: 14 });
252
+ }
253
+ //#endregion
254
+ export { Fe as default };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { S as e, _ as t, a as n, b as r, c as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, r as p, s as m, t as h, u as g, v as _, x as v, y } from "./pillChrome-CEpWGNZB.js";
2
+ import { S as e, _ as t, a as n, b as r, c as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, r as p, s as m, t as h, u as g, v as _, x as v, y } from "./pillChrome-Dy3ApFI5.js";
3
3
  import { Children as b, createContext as x, isValidElement as S, useCallback as C, useContext as w, useEffect as T, useLayoutEffect as ee, useRef as E, useState as D } from "react";
4
4
  import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
5
5
  import { ArrowUp as j, Check as M, ChevronDown as N, Copy as P, MessageSquarePlus as F, Mic as I, RefreshCw as L, Sparkles as te, Square as R, X as z } from "lucide-react";
@@ -1,7 +1,5 @@
1
1
  "use client";
2
- import { r as e, t } from "./CollectionField-DCAXOmBN.js";
3
- import { t as ee } from "./VerifyButton-D0cj9Z5Q.js";
4
- import { t as n } from "./CollectionInput-BJ__qcbk.js";
2
+ import { h as e, o as t, p as ee, s as n } from "./dist-BVFCdirT.js";
5
3
  import { c as te } from "react/compiler-runtime";
6
4
  import { useState as r } from "react";
7
5
  import { useController as i } from "react-hook-form";
@@ -71,7 +69,7 @@ var ae = "_89f1hw0", s = "_89f1hw1", c = "_89f1hw2", oe = "_89f1hw4", l = (l) =>
71
69
  let Z;
72
70
  u[35] !== U || u[36] !== z || u[37] !== S || u[38] !== I ? (Z = S && /* @__PURE__ */ o("div", {
73
71
  className: "_89f1hw3",
74
- children: /* @__PURE__ */ o(ee, {
72
+ children: /* @__PURE__ */ o(t, {
75
73
  value: I,
76
74
  type: "phone",
77
75
  isVerified: z,
@@ -85,7 +83,7 @@ var ae = "_89f1hw0", s = "_89f1hw1", c = "_89f1hw2", oe = "_89f1hw4", l = (l) =>
85
83
  children: [X, Z]
86
84
  }), u[40] = X, u[41] = Z, u[42] = Q) : Q = u[42];
87
85
  let $;
88
- return u[43] !== R || u[44] !== y || u[45] !== L || u[46] !== v || u[47] !== x || u[48] !== b || u[49] !== Q ? ($ = /* @__PURE__ */ o(t, {
86
+ return u[43] !== R || u[44] !== y || u[45] !== L || u[46] !== v || u[47] !== x || u[48] !== b || u[49] !== Q ? ($ = /* @__PURE__ */ o(ee, {
89
87
  error: R,
90
88
  helperText: y,
91
89
  readOnly: b,
@@ -1,4 +1,4 @@
1
- import { i as e, t } from "./ThemeProvider-DlFehjh1.js";
1
+ import { f as e, h as t } from "./theme.cssm-iXnQwMCp.js";
2
2
  import { c as n } from "react/compiler-runtime";
3
3
  import r from "clsx";
4
4
  import { jsx as i } from "react/jsx-runtime";
@@ -9,10 +9,10 @@ var o = "_1tn9uzj0", s = "_1tn9uzj4", c = (e) => {
9
9
  t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
10
10
  let o;
11
11
  return t[2] === r ? o = t[3] : (o = /* @__PURE__ */ i(a.Root, { ...r }), t[2] = r, t[3] = o), o;
12
- }, l = (e) => {
12
+ }, l = (t) => {
13
13
  let r = n(5), o;
14
- r[0] === e ? o = r[1] : ({...o} = e, r[0] = e, r[1] = o);
15
- let { portalRef: s } = t(), c;
14
+ r[0] === t ? o = r[1] : ({...o} = t, r[0] = t, r[1] = o);
15
+ let { portalRef: s } = e(), c;
16
16
  return r[2] !== s || r[3] !== o ? (c = /* @__PURE__ */ i(a.Portal, {
17
17
  container: s,
18
18
  ...o
@@ -39,11 +39,11 @@ var o = "_1tn9uzj0", s = "_1tn9uzj4", c = (e) => {
39
39
  className: l,
40
40
  ...c
41
41
  }), t[5] = c, t[6] = l, t[7] = u) : u = t[7], u;
42
- }, f = (t) => {
42
+ }, f = (e) => {
43
43
  let o = n(12), s, c, l, u;
44
- o[0] === t ? (s = o[1], c = o[2], l = o[3], u = o[4]) : ({className: s, variant: u, size: l, ...c} = t, o[0] = t, o[1] = s, o[2] = c, o[3] = l, o[4] = u);
44
+ o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4]) : ({className: s, variant: u, size: l, ...c} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u);
45
45
  let d;
46
- o[5] !== s || o[6] !== l || o[7] !== u ? (d = r(e({
46
+ o[5] !== s || o[6] !== l || o[7] !== u ? (d = r(t({
47
47
  variant: u,
48
48
  size: l
49
49
  }), s), o[5] = s, o[6] = l, o[7] = u, o[8] = d) : d = o[8];
@@ -0,0 +1,158 @@
1
+ import { a as e, i as t, m as n, n as r } from "./theme.cssm-iXnQwMCp.js";
2
+ import { a as i, i as a, l as o, n as s, o as c, r as l, u } from "./PopupDialog-DwAAJ8JS-DkxjZaJL.js";
3
+ import { o as d } from "./inlineBaseTheme-DcNdMEYp.js";
4
+ import { t as f } from "./inlineCollectionTheme-DjXuH3bK.js";
5
+ import { _ as p, a as m, c as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A } from "./react-CENbCy5d.js";
6
+ import { n as j, t as M } from "./content.cssm-D_LSloGW.js";
7
+ import { t as N } from "./inlineRteTheme-BYGIJM7P.js";
8
+ import { c as ee } from "react/compiler-runtime";
9
+ import { Suspense as P, lazy as F, useMemo as I, useState as L } from "react";
10
+ import R from "clsx";
11
+ import { Fragment as z, jsx as B, jsxs as V } from "react/jsx-runtime";
12
+ import { IconCheck as H, IconCopy as U } from "@tabler/icons-react";
13
+ import { Link as W } from "@tiptap/extension-link";
14
+ import { Document as G } from "@tiptap/extension-document";
15
+ import { TextStyle as K } from "@tiptap/extension-text-style";
16
+ import { Subscript as q } from "@tiptap/extension-subscript";
17
+ import { Superscript as J } from "@tiptap/extension-superscript";
18
+ import { Typography as Y } from "@tiptap/extension-typography";
19
+ import { UniqueID as X } from "@tiptap/extension-unique-id";
20
+ //#region ../../libraries/popups/dist/PopupBody-DWM55Zh5.js
21
+ var Z = [
22
+ G,
23
+ w,
24
+ b,
25
+ g,
26
+ v,
27
+ x,
28
+ m,
29
+ S,
30
+ y,
31
+ D,
32
+ h,
33
+ _,
34
+ E,
35
+ W.configure({ openOnClick: !1 }),
36
+ K,
37
+ p,
38
+ Y,
39
+ J,
40
+ q,
41
+ T,
42
+ k.configure({ multicolor: !0 }),
43
+ A,
44
+ j,
45
+ X.configure({ types: [
46
+ "paragraph",
47
+ "heading",
48
+ "bulletList",
49
+ "orderedList"
50
+ ] })
51
+ ], Q = (e) => C(e, Z), te = ({ content: e, className: t, ref: n, ...r }) => {
52
+ let i = I(() => e ? typeof e == "string" ? e ? Q(e) : null : e.json && Object.keys(e.json).length > 0 ? e.json : e.html ? Q(e.html) : null : null, [e]), a = I(() => i ? O({
53
+ content: i,
54
+ extensions: Z
55
+ }) : null, [i]);
56
+ return a ? /* @__PURE__ */ B("div", {
57
+ ref: n,
58
+ className: R(M, t),
59
+ ...r,
60
+ children: a
61
+ }) : null;
62
+ }, $ = /* @__PURE__ */ u({ PopupBody: () => oe }), ne = F(() => import("./dist-BVFCdirT.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), re = N({ baseSpacing: ".625rem" }), ie = { style: f({ form: { gap: "1rem" } }) }, ae = {
63
+ left: s,
64
+ center: a,
65
+ right: o
66
+ }, oe = (a) => {
67
+ let o = ee(33), { disableInteraction: s } = a, { popup: u, callbacks: f, client: p, preview: m } = l(), h = f?.onAction, g = i(u), { content: _ } = u, [v, y] = L(!1), b;
68
+ o[0] !== _.action || o[1] !== h || o[2] !== u ? (b = () => {
69
+ if (_.action?.type !== "redirect" || !_.action.copyValue) return;
70
+ let e = _.action.copyValue;
71
+ navigator.clipboard.writeText(e).then(() => {
72
+ y(!0), setTimeout(() => y(!1), 2e3), h?.(u, {
73
+ action_type: "copy",
74
+ copy_value: e
75
+ });
76
+ });
77
+ }, o[0] = _.action, o[1] = h, o[2] = u, o[3] = b) : b = o[3];
78
+ let x = b, S = _.align ?? "left", C = _.size ?? "medium", w;
79
+ o[4] === C ? w = o[5] : (w = c({ size: C }), o[4] = C, o[5] = w);
80
+ let T;
81
+ o[6] === s ? T = o[7] : (T = s ? { pointerEvents: "none" } : void 0, o[6] = s, o[7] = T);
82
+ let E;
83
+ o[8] !== S || o[9] !== _.description || o[10] !== _.heading ? (E = (_.heading || _.description) && /* @__PURE__ */ V(r, {
84
+ className: "zv6sjd4",
85
+ style: { textAlign: S },
86
+ children: [_.heading && /* @__PURE__ */ B(e, { children: _.heading }), _.description && /* @__PURE__ */ B(t, { children: _.description })]
87
+ }), o[8] = S, o[9] = _.description, o[10] = _.heading, o[11] = E) : E = o[11];
88
+ let D;
89
+ o[12] === _.body ? D = o[13] : (D = (_.body?.html || _.body?.json) && /* @__PURE__ */ B(te, {
90
+ className: "zv6sjd5",
91
+ style: re,
92
+ content: _.body
93
+ }), o[12] = _.body, o[13] = D);
94
+ let O;
95
+ o[14] !== S || o[15] !== p || o[16] !== _.action || o[17] !== h || o[18] !== u || o[19] !== m ? (O = _.action?.type === "form" && p && /* @__PURE__ */ B("div", {
96
+ className: "zv6sjd7",
97
+ children: /* @__PURE__ */ B(P, { children: /* @__PURE__ */ B(d, {
98
+ client: p,
99
+ children: /* @__PURE__ */ B(ne, {
100
+ collection_id: _.action.collectionKey,
101
+ formVariant: _.action.formVariant,
102
+ theme: ie,
103
+ uiConfig: {
104
+ hideFormHeading: !0,
105
+ hideSectionHeadings: !0
106
+ },
107
+ successConfig: _.action.successRedirectUrl ? { action: {
108
+ type: "redirect",
109
+ value: _.action.successRedirectUrl
110
+ } } : void 0,
111
+ submitButtonConfig: {
112
+ show: !0,
113
+ text: _.action.label || "Submit",
114
+ styles: _.action.fullWidth && (_.action.formVariant ?? "default") === "default" ? "zv6sjdb" : ae[S]
115
+ },
116
+ workspace_id: p.workspace,
117
+ containerStyles: "zv6sjd6",
118
+ preview: m,
119
+ onSuccess: () => {
120
+ _.action?.type === "form" && h?.(u, {
121
+ action_type: "form_submit",
122
+ collection_key: _.action.collectionKey
123
+ });
124
+ }
125
+ })
126
+ }) })
127
+ }), o[14] = S, o[15] = p, o[16] = _.action, o[17] = h, o[18] = u, o[19] = m, o[20] = O) : O = o[20];
128
+ let k;
129
+ o[21] !== _.action || o[22] !== v || o[23] !== x || o[24] !== g ? (k = _.action?.type === "redirect" && /* @__PURE__ */ V(z, { children: [_.action.copyValue && /* @__PURE__ */ V("button", {
130
+ type: "button",
131
+ className: "zv6sjdd",
132
+ onClick: x,
133
+ children: [/* @__PURE__ */ B("span", {
134
+ className: "zv6sjde",
135
+ children: _.action.copyValue
136
+ }), B(v ? H : U, {
137
+ size: 18,
138
+ className: "zv6sjdf"
139
+ })]
140
+ }), /* @__PURE__ */ B(n, {
141
+ className: "zv6sjdc",
142
+ onClick: () => g?.(),
143
+ children: _.action.label || "Button"
144
+ })] }), o[21] = _.action, o[22] = v, o[23] = x, o[24] = g, o[25] = k) : k = o[25];
145
+ let A;
146
+ return o[26] !== w || o[27] !== T || o[28] !== E || o[29] !== D || o[30] !== O || o[31] !== k ? (A = /* @__PURE__ */ V("div", {
147
+ className: w,
148
+ style: T,
149
+ children: [
150
+ E,
151
+ D,
152
+ O,
153
+ k
154
+ ]
155
+ }), o[26] = w, o[27] = T, o[28] = E, o[29] = D, o[30] = O, o[31] = k, o[32] = A) : A = o[32], A;
156
+ };
157
+ //#endregion
158
+ export { $ as n };