@levo-so/studio 0.1.102 → 0.1.103

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 (57) hide show
  1. package/{AuthProvider-56TywIOB.js → AuthProvider-C6bvedwF.js} +16 -16
  2. package/{BillingStep-BTRobf00.js → BillingStep-BA3H9BVu.js} +1 -1
  3. package/{Button-DTrN8kki.js → Button-CZycqusY.js} +240 -143
  4. package/Button-lUfKisu8.js +116 -0
  5. package/CollectionField-xa-jed3_.js +232 -0
  6. package/{CollectionInput-lHOvWWav.js → CollectionInput-CpNGIXJx.js} +32 -32
  7. package/DateTimeWidget-DP_nMhqe.js +256 -0
  8. package/Dialog-IrII0ugb.js +130 -0
  9. package/{EntryCard-CqZlbw1Z.js → EntryCard-CQpKNX7G.js} +6 -6
  10. package/{LoginCard-DWLnYJJU.js → LoginCard-Cyvm-y_q.js} +3 -3
  11. package/{LoginForm-CEUbBeE3.js → LoginForm-_44FtvWg.js} +200 -200
  12. package/{LoginModal-AWNLO49X.js → LoginModal-Cyw_XKvz.js} +4 -4
  13. package/{MessageCard-C5ULcfuw.js → MessageCard-C2lNTxFx.js} +2 -2
  14. package/{MessageFooter-CATwNJJU.js → MessageFooter-59Pziq3i.js} +2 -2
  15. package/{ModalManager-DQXhkmyC.js → ModalManager-DHkd0Zdb.js} +1 -1
  16. package/{PendingApprovalCard-BowwZMBu.js → PendingApprovalCard-C8iZjo06.js} +3 -3
  17. package/PhoneWidget-CxxxDXkz.js +100 -0
  18. package/{Popover-Du4iigVw.js → Popover-DOvRAGzc.js} +19 -20
  19. package/PopupRenderer-C7OHYphU-Ct5T6tWM.js +2668 -0
  20. package/{RichTextWidget-iYdVRBGB.js → RichTextWidget-BqlcssWt.js} +13 -12
  21. package/RteThemeProvider-Cfepkyer.js +20 -0
  22. package/{StripePaymentModal-DC-ySB_o.js → StripePaymentModal-DrLMN18M.js} +17 -17
  23. package/{Toolbar-BHi_B-nE.js → Toolbar-BwxoYWO_.js} +251 -250
  24. package/Tooltip-NEMQqPyr.js +67 -0
  25. package/VerifyButton-TNkt-SDu.js +177 -0
  26. package/bookingCard-BDyuBC6X.js +636 -0
  27. package/collection.js +8 -8
  28. package/{dialog-CCWrvmHd.js → dialog-C8-iHixJ.js} +32 -32
  29. package/dist-CG-pwDW0.js +3188 -0
  30. package/generateRadiusScale-BpcgkGtN.js +71 -0
  31. package/getFieldValidations-CSkSV2hW.js +90 -0
  32. package/index.d.ts +53 -2
  33. package/index.js +5869 -7655
  34. package/inlineRteTheme-Ajq9PNpQ.js +9 -0
  35. package/{nodeAlignment-DoVbjk29.js → nodeAlignment-DKCIjzlR.js} +3 -3
  36. package/package.json +37 -39
  37. package/studio.css +1 -1
  38. package/{useLogin-D2VCOHYI.js → useLogin-B2qE8710.js} +23 -23
  39. package/{utils-Bh9uGjo1.js → utils-CZLafTgN.js} +1 -1
  40. package/{widgets-CG5Z_dk7.js → widgets-eu5zXTf-.js} +38 -105
  41. package/CollectionField-7uXvhxYK.js +0 -274
  42. package/DateTimeWidget-BHCP5osb.js +0 -255
  43. package/PhoneWidget-C6uZmrk8.js +0 -100
  44. package/Tooltip-K_gFzjOa.js +0 -68
  45. package/VerifyButton-D21AOIX3.js +0 -273
  46. package/bookingCard--NlgtcJs.js +0 -577
  47. package/dist-x5VFEnQl.js +0 -3185
  48. package/getFieldValidations-DZnDgNI0.js +0 -159
  49. package/inlineRteTheme-Cn_Vqgsm.js +0 -23
  50. /package/{Beams-DkcjMVZl.js → Beams-DboMUgCv.js} +0 -0
  51. /package/{Dots-BrEPvoj3.js → Dots-a8xSboDv.js} +0 -0
  52. /package/{Gradient-B4Er9hym.js → Gradient-NacpoDCM.js} +0 -0
  53. /package/{Grid-B4XWU9eL.js → Grid-BJQvxnks.js} +0 -0
  54. /package/{Waves-kW-EBDdJ.js → Waves-DUuT_IFr.js} +0 -0
  55. /package/{authentication-fXmNYss1.js → authentication-hnV1BI8s.js} +0 -0
  56. /package/{card-BwNr7kQS.js → card-E2LKF9nT.js} +0 -0
  57. /package/{theme.cssm-2YTdd8Yh.js → theme.cssm-BXDp-ojp.js} +0 -0
@@ -0,0 +1,256 @@
1
+ import { t as e } from "./Button-lUfKisu8.js";
2
+ import { t } from "./getFieldValidations-CSkSV2hW.js";
3
+ import { t as n } from "./CollectionField-xa-jed3_.js";
4
+ import { t as ee } from "./CollectionInput-CpNGIXJx.js";
5
+ import { a as r, i, n as a, r as o, t as s } from "./Popover-DOvRAGzc.js";
6
+ import { c as te } from "react/compiler-runtime";
7
+ import { useEffect as ne, useRef as c, useState as l } from "react";
8
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
+ import f from "clsx";
10
+ import { IconCalendar as re, IconChevronDown as p, IconChevronLeft as m, IconChevronRight as h, IconX as ie } from "@tabler/icons-react";
11
+ import { FieldInterfaces as ae } from "@levo-so/core";
12
+ import g from "dayjs";
13
+ import { DayPicker as oe, getDefaultClassNames as se } from "react-day-picker";
14
+ import { useController as _ } from "react-hook-form";
15
+ //#region ../../libraries/react-collection/dist/widgets/dateTimeWidget/DateTimeWidget.cssm.js
16
+ var ce = "rpx4b10", le = "rpx4b11", ue = "rpx4b12", de = "rpx4b14 _6o7s4x0", fe = "rpx4b15", pe = "rpx4b17", me = "rpx4b18", he = "rpx4b19", ge = "rpx4b1a", _e = "rpx4b1b", ve = "rpx4b1c", ye = "rpx4b1d", be = "rpx4b1e", xe = "rpx4b1f", Se = "rpx4b1g", Ce = "rpx4b1h", we = "rpx4b1i", Te = "rpx4b1j", Ee = "rpx4b1k", De = "rpx4b1l", Oe = "rpx4b1m", ke = "rpx4b1n", Ae = "rpx4b1o", je = "rpx4b1p", Me = "rpx4b1q", Ne = "rpx4b1r", Pe = "rpx4b1s", Fe = "rpx4b1t", Ie = "rpx4b1u", Le = "rpx4b1v", Re = (e) => {
17
+ if (e) {
18
+ let t = new Date(e);
19
+ return Number.isNaN(t.getTime()) ? null : t;
20
+ }
21
+ return null;
22
+ }, ze = (e, t) => e ? t ? g(e).format("D MMMM, YYYY — h:mm A") : g(e).format("D MMMM, YYYY") : "", Be = (e) => {
23
+ let t = te(19), { value: n, onChange: ee } = e, [r, i] = l(-1), a = c(null), o;
24
+ t[0] === n ? o = t[1] : (o = () => {
25
+ if (!n) return -1;
26
+ let e = n.getHours(), t = n.getMinutes();
27
+ return e * 4 + Math.floor(t / 15);
28
+ }, t[0] = n, t[1] = o);
29
+ let s = o, re, p;
30
+ t[2] === s ? (re = t[3], p = t[4]) : (re = () => {
31
+ let e = s();
32
+ e >= 0 && a.current && a.current.querySelector(`[data-time-index="${e}"]`)?.scrollIntoView({
33
+ block: "center",
34
+ behavior: "smooth"
35
+ });
36
+ }, p = [s], t[2] = s, t[3] = re, t[4] = p), ne(re, p);
37
+ let m;
38
+ t[5] !== ee || t[6] !== n ? (m = (e, t) => {
39
+ let r = t * 15, a = n ? new Date(n) : /* @__PURE__ */ new Date();
40
+ a.setHours(e, r, 0, 0), ee(a), i(e * 4 + t);
41
+ }, t[5] = ee, t[6] = n, t[7] = m) : m = t[7];
42
+ let h = m, ie;
43
+ t[8] !== r || t[9] !== h ? (ie = (e) => {
44
+ e.stopPropagation();
45
+ let t = (e) => {
46
+ let t = a.current?.querySelector(`[data-time-index="${e}"]`);
47
+ t?.scrollIntoView({
48
+ block: "center",
49
+ behavior: "smooth"
50
+ }), t?.focus();
51
+ };
52
+ bb48: switch (e.key) {
53
+ case "ArrowUp": {
54
+ e.preventDefault();
55
+ let n = r - 1 < 0 ? 95 : r - 1;
56
+ i(n), t(n);
57
+ break bb48;
58
+ }
59
+ case "ArrowDown": {
60
+ e.preventDefault();
61
+ let n = r + 1 >= 96 ? 0 : r + 1;
62
+ i(n), t(n);
63
+ break bb48;
64
+ }
65
+ case "Enter":
66
+ e.preventDefault(), r >= 0 && h(Math.floor(r / 4), r % 4);
67
+ break bb48;
68
+ case "Escape": i(-1);
69
+ }
70
+ }, t[8] = r, t[9] = h, t[10] = ie) : ie = t[10];
71
+ let ae = ie, g = s(), oe;
72
+ t[11] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ u("div", {
73
+ className: Fe,
74
+ children: "Time"
75
+ }), t[11] = oe) : oe = t[11];
76
+ let se;
77
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (se = Array.from({ length: 24 }), t[12] = se) : se = t[12];
78
+ let _;
79
+ t[13] !== g || t[14] !== h ? (_ = se.map((e, t) => {
80
+ let n = t === 0 ? 12 : t > 12 ? t - 12 : t, ee = t >= 12 ? "PM" : "AM";
81
+ return Array.from({ length: 4 }).map((e, r) => {
82
+ let i = r * 15, a = t * 4 + r, o = a === g, s = `${n}:${i.toString().padStart(2, "0")} ${ee}`;
83
+ return /* @__PURE__ */ u("button", {
84
+ type: "button",
85
+ role: "option",
86
+ "aria-selected": o,
87
+ "data-time-index": a,
88
+ className: f(Le, o && "rpx4b1w"),
89
+ onClick: () => h(t, r),
90
+ tabIndex: o ? 0 : -1,
91
+ children: s
92
+ }, a);
93
+ });
94
+ }), t[13] = g, t[14] = h, t[15] = _) : _ = t[15];
95
+ let ce;
96
+ return t[16] !== ae || t[17] !== _ ? (ce = /* @__PURE__ */ d("div", {
97
+ className: Pe,
98
+ children: [oe, /* @__PURE__ */ u("div", {
99
+ ref: a,
100
+ className: Ie,
101
+ onKeyDown: ae,
102
+ tabIndex: 0,
103
+ role: "listbox",
104
+ "aria-label": "Select time",
105
+ children: _
106
+ })]
107
+ }), t[16] = ae, t[17] = _, t[18] = ce) : ce = t[18], ce;
108
+ }, Ve = (ne) => {
109
+ let c = te(160), { field: p } = ne, { key: m, label: h, helper_text: g, readonly: Pe } = p, Fe = m === void 0 ? "" : m, Ie = h === void 0 ? "" : h, Le = g === void 0 ? "" : g, Ve = Pe === void 0 ? !1 : Pe, v = Fe, [Ue, We] = l(!1), y;
110
+ c[0] === p ? y = c[1] : (y = t(p), c[0] = p, c[1] = y);
111
+ let Ge;
112
+ c[2] !== v || c[3] !== y ? (Ge = {
113
+ name: v,
114
+ rules: y
115
+ }, c[2] = v, c[3] = y, c[4] = Ge) : Ge = c[4];
116
+ let { field: Ke, fieldState: qe } = _(Ge), b, x, S, C, w;
117
+ c[5] === Ke ? (b = c[6], x = c[7], S = c[8], C = c[9], w = c[10]) : ({value: w, onBlur: b, onChange: x, ref: S, ...C} = Ke, c[5] = Ke, c[6] = b, c[7] = x, c[8] = S, c[9] = C, c[10] = w);
118
+ let Je = !!p?.required, Ye = qe?.error?.message, T = p?.field_interface === ae.DateTimeWidget, E, Xe;
119
+ c[11] !== T || c[12] !== w ? (E = Re(w), Xe = ze(E, T), c[11] = T, c[12] = w, c[13] = E, c[14] = Xe) : (E = c[13], Xe = c[14]);
120
+ let Ze = Xe, D, O, k, A, j, M, N, P, F, I, L, R, z, B, V, H, U, W, G, Qe, K, $e, et, tt, nt, rt, q, J, it, Y, at, ot, st, ct, lt, X, ut, dt, ft, pt, mt, Z, ht;
121
+ if (c[15] !== Ze || c[16] !== T || c[17] !== Ye || c[18] !== Le || c[19] !== Ue || c[20] !== Je || c[21] !== Ie || c[22] !== v || c[23] !== b || c[24] !== x || c[25] !== Ve || c[26] !== S || c[27] !== C || c[28] !== E || c[29] !== w) {
122
+ let e = se(), t;
123
+ c[73] !== T || c[74] !== x || c[75] !== E ? (t = (e) => {
124
+ e && (T && E && e.setHours(E.getHours(), E.getMinutes(), 0, 0), x(e.toISOString()), T || We(!1));
125
+ }, c[73] = T, c[74] = x, c[75] = E, c[76] = t) : t = c[76];
126
+ let te = t, ne;
127
+ c[77] === x ? ne = c[78] : (ne = (e) => {
128
+ x(e.toISOString());
129
+ }, c[77] = x, c[78] = ne), N = ne;
130
+ let l;
131
+ c[79] === x ? l = c[80] : (l = (e) => {
132
+ e.preventDefault(), e.stopPropagation(), x(null);
133
+ }, c[79] = x, c[80] = l);
134
+ let d = l;
135
+ M = n, ut = Le, dt = Ve, ft = Ye, pt = v, mt = Je, Z = Ie, j = a, ct = Ue, lt = We;
136
+ let p;
137
+ c[81] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(re, { size: 18 }), c[81] = p) : p = c[81];
138
+ let m;
139
+ c[82] !== d || c[83] !== w ? (m = w ? /* @__PURE__ */ u("button", {
140
+ type: "button",
141
+ onClick: d,
142
+ "aria-label": "Clear date",
143
+ className: ue,
144
+ children: /* @__PURE__ */ u(ie, { size: 14 })
145
+ }) : void 0, c[82] = d, c[83] = w, c[84] = m) : m = c[84], c[85] !== Ze || c[86] !== v || c[87] !== b || c[88] !== S || c[89] !== C || c[90] !== m ? (X = /* @__PURE__ */ u(r.Trigger, { render: /* @__PURE__ */ u("div", {
146
+ className: ce,
147
+ children: /* @__PURE__ */ u(ee, {
148
+ id: v,
149
+ ref: S,
150
+ value: Ze,
151
+ readOnly: !0,
152
+ leftIcon: p,
153
+ rightIcon: m,
154
+ className: le,
155
+ autoComplete: "off",
156
+ onBlur: b,
157
+ placeholder: "Select date",
158
+ ...C
159
+ })
160
+ }) }), c[85] = Ze, c[86] = v, c[87] = b, c[88] = S, c[89] = C, c[90] = m, c[91] = X) : X = c[91], A = i, k = o, ot = "start", st = 4, O = s, at = de;
161
+ let h = T && "rpx4b16";
162
+ c[92] === h ? Y = c[93] : (Y = f(fe, h), c[92] = h, c[93] = Y), D = oe, et = "single", tt = E || void 0, nt = te, rt = "dropdown", c[94] === Symbol.for("react.memo_cache_sentinel") ? (q = new Date((/* @__PURE__ */ new Date()).getFullYear() - 100, 0), c[94] = q) : q = c[94], c[95] === Symbol.for("react.memo_cache_sentinel") ? (J = new Date((/* @__PURE__ */ new Date()).getFullYear() + 10, 11), c[95] = J) : J = c[95], it = !0, ht = f(e.root, me), P = he, F = ge, I = f(e.month_caption, _e), L = f(ve, e.dropdowns), R = f(be, e.dropdown), z = f(ye, e.dropdown_root), B = f(xe, e.caption_label), V = f(Se, e.nav), H = f(Ce, e.button_previous), U = f(we, e.button_next), W = f(Te, e.weekdays), G = f(Ee, e.weekday), Qe = f(De, e.week), K = f(Oe, e.day), $e = f(ke, e.day_button), c[15] = Ze, c[16] = T, c[17] = Ye, c[18] = Le, c[19] = Ue, c[20] = Je, c[21] = Ie, c[22] = v, c[23] = b, c[24] = x, c[25] = Ve, c[26] = S, c[27] = C, c[28] = E, c[29] = w, c[30] = D, c[31] = O, c[32] = k, c[33] = A, c[34] = j, c[35] = M, c[36] = N, c[37] = P, c[38] = F, c[39] = I, c[40] = L, c[41] = R, c[42] = z, c[43] = B, c[44] = V, c[45] = H, c[46] = U, c[47] = W, c[48] = G, c[49] = Qe, c[50] = K, c[51] = $e, c[52] = et, c[53] = tt, c[54] = nt, c[55] = rt, c[56] = q, c[57] = J, c[58] = it, c[59] = Y, c[60] = at, c[61] = ot, c[62] = st, c[63] = ct, c[64] = lt, c[65] = X, c[66] = ut, c[67] = dt, c[68] = ft, c[69] = pt, c[70] = mt, c[71] = Z, c[72] = ht;
163
+ } else D = c[30], O = c[31], k = c[32], A = c[33], j = c[34], M = c[35], N = c[36], P = c[37], F = c[38], I = c[39], L = c[40], R = c[41], z = c[42], B = c[43], V = c[44], H = c[45], U = c[46], W = c[47], G = c[48], Qe = c[49], K = c[50], $e = c[51], et = c[52], tt = c[53], nt = c[54], rt = c[55], q = c[56], J = c[57], it = c[58], Y = c[59], at = c[60], ot = c[61], st = c[62], ct = c[63], lt = c[64], X = c[65], ut = c[66], dt = c[67], ft = c[68], pt = c[69], mt = c[70], Z = c[71], ht = c[72];
164
+ let gt;
165
+ c[96] !== P || c[97] !== F || c[98] !== I || c[99] !== L || c[100] !== R || c[101] !== z || c[102] !== B || c[103] !== V || c[104] !== H || c[105] !== U || c[106] !== W || c[107] !== G || c[108] !== Qe || c[109] !== K || c[110] !== $e || c[111] !== ht ? (gt = {
166
+ root: ht,
167
+ months: P,
168
+ month: F,
169
+ month_caption: I,
170
+ dropdowns: L,
171
+ dropdown: R,
172
+ dropdown_root: z,
173
+ caption_label: B,
174
+ nav: V,
175
+ button_previous: H,
176
+ button_next: U,
177
+ weekdays: W,
178
+ weekday: G,
179
+ week: Qe,
180
+ day: K,
181
+ day_button: $e,
182
+ selected: Ae,
183
+ today: je,
184
+ outside: Me,
185
+ disabled: Ne
186
+ }, c[96] = P, c[97] = F, c[98] = I, c[99] = L, c[100] = R, c[101] = z, c[102] = B, c[103] = V, c[104] = H, c[105] = U, c[106] = W, c[107] = G, c[108] = Qe, c[109] = K, c[110] = $e, c[111] = ht, c[112] = gt) : gt = c[112];
187
+ let _t;
188
+ c[113] === Symbol.for("react.memo_cache_sentinel") ? (_t = { Chevron: He }, c[113] = _t) : _t = c[113];
189
+ let vt;
190
+ c[114] !== D || c[115] !== et || c[116] !== tt || c[117] !== nt || c[118] !== rt || c[119] !== q || c[120] !== J || c[121] !== it || c[122] !== gt ? (vt = /* @__PURE__ */ u(D, {
191
+ mode: et,
192
+ selected: tt,
193
+ onSelect: nt,
194
+ captionLayout: rt,
195
+ startMonth: q,
196
+ endMonth: J,
197
+ showOutsideDays: it,
198
+ classNames: gt,
199
+ components: _t
200
+ }), c[114] = D, c[115] = et, c[116] = tt, c[117] = nt, c[118] = rt, c[119] = q, c[120] = J, c[121] = it, c[122] = gt, c[123] = vt) : vt = c[123];
201
+ let yt;
202
+ c[124] !== T || c[125] !== N || c[126] !== E ? (yt = T && /* @__PURE__ */ u(Be, {
203
+ value: E,
204
+ onChange: N
205
+ }), c[124] = T, c[125] = N, c[126] = E, c[127] = yt) : yt = c[127];
206
+ let bt;
207
+ c[128] !== Y || c[129] !== vt || c[130] !== yt ? (bt = /* @__PURE__ */ d("div", {
208
+ className: Y,
209
+ children: [vt, yt]
210
+ }), c[128] = Y, c[129] = vt, c[130] = yt, c[131] = bt) : bt = c[131];
211
+ let xt;
212
+ c[132] === Symbol.for("react.memo_cache_sentinel") ? (xt = /* @__PURE__ */ u("div", {
213
+ className: pe,
214
+ children: /* @__PURE__ */ u(e, {
215
+ variant: "ghost",
216
+ size: "sm",
217
+ onClick: () => We(!1),
218
+ children: "Done"
219
+ })
220
+ }), c[132] = xt) : xt = c[132];
221
+ let St;
222
+ c[133] !== O || c[134] !== at || c[135] !== bt ? (St = /* @__PURE__ */ d(O, {
223
+ className: at,
224
+ children: [bt, xt]
225
+ }), c[133] = O, c[134] = at, c[135] = bt, c[136] = St) : St = c[136];
226
+ let Ct;
227
+ c[137] !== k || c[138] !== ot || c[139] !== st || c[140] !== St ? (Ct = /* @__PURE__ */ u(k, {
228
+ align: ot,
229
+ sideOffset: st,
230
+ children: St
231
+ }), c[137] = k, c[138] = ot, c[139] = st, c[140] = St, c[141] = Ct) : Ct = c[141];
232
+ let Q;
233
+ c[142] !== A || c[143] !== Ct ? (Q = /* @__PURE__ */ u(A, { children: Ct }), c[142] = A, c[143] = Ct, c[144] = Q) : Q = c[144];
234
+ let $;
235
+ c[145] !== j || c[146] !== ct || c[147] !== lt || c[148] !== X || c[149] !== Q ? ($ = /* @__PURE__ */ d(j, {
236
+ open: ct,
237
+ onOpenChange: lt,
238
+ children: [X, Q]
239
+ }), c[145] = j, c[146] = ct, c[147] = lt, c[148] = X, c[149] = Q, c[150] = $) : $ = c[150];
240
+ let wt;
241
+ return c[151] !== M || c[152] !== ut || c[153] !== dt || c[154] !== ft || c[155] !== pt || c[156] !== mt || c[157] !== Z || c[158] !== $ ? (wt = /* @__PURE__ */ u(M, {
242
+ helperText: ut,
243
+ readOnly: dt,
244
+ error: ft,
245
+ htmlFor: pt,
246
+ isRequired: mt,
247
+ label: Z,
248
+ children: $
249
+ }), c[151] = M, c[152] = ut, c[153] = dt, c[154] = ft, c[155] = pt, c[156] = mt, c[157] = Z, c[158] = $, c[159] = wt) : wt = c[159], wt;
250
+ };
251
+ function He(e) {
252
+ let { orientation: t } = e;
253
+ return t === "left" ? /* @__PURE__ */ u(m, { size: 16 }) : t === "right" ? /* @__PURE__ */ u(h, { size: 16 }) : /* @__PURE__ */ u(p, { size: 14 });
254
+ }
255
+ //#endregion
256
+ export { Ve as default };
@@ -0,0 +1,130 @@
1
+ import { r as e, t } from "./Button-lUfKisu8.js";
2
+ import { c as n } from "react/compiler-runtime";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ import a from "clsx";
5
+ import { IconX as o } from "@tabler/icons-react";
6
+ import { Dialog as s } from "@base-ui/react/dialog";
7
+ //#region ../../libraries/levocn/dist/ui/dialog/Dialog.cssm.js
8
+ var c = "ch8h0x0", l = "ch8h0x1", u = "ch8h0x2", d = "ch8h0x3", f = "ch8h0x5", p = "ch8h0x6", m = (e) => {
9
+ let t = n(4), i;
10
+ t[0] === e ? i = t[1] : ({...i} = e, t[0] = e, t[1] = i);
11
+ let a;
12
+ return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ r(s.Root, {
13
+ "data-slot": "dialog",
14
+ ...i
15
+ }), t[2] = i, t[3] = a), a;
16
+ }, h = (t) => {
17
+ let i = n(5), a;
18
+ i[0] === t ? a = i[1] : ({...a} = t, i[0] = t, i[1] = a);
19
+ let { portalRef: o } = e(), c;
20
+ return i[2] !== o || i[3] !== a ? (c = /* @__PURE__ */ r(s.Portal, {
21
+ container: o,
22
+ ...a
23
+ }), i[2] = o, i[3] = a, i[4] = c) : c = i[4], c;
24
+ }, g = (e) => {
25
+ let t = n(8), i, o;
26
+ t[0] === e ? (i = t[1], o = t[2]) : ({className: i, ...o} = e, t[0] = e, t[1] = i, t[2] = o);
27
+ let c;
28
+ t[3] === i ? c = t[4] : (c = a(l, i), t[3] = i, t[4] = c);
29
+ let u;
30
+ return t[5] !== o || t[6] !== c ? (u = /* @__PURE__ */ r(s.Viewport, {
31
+ "data-slot": "dialog-viewport",
32
+ className: c,
33
+ ...o
34
+ }), t[5] = o, t[6] = c, t[7] = u) : u = t[7], u;
35
+ }, _ = (e) => {
36
+ let i = n(10), a, o, c;
37
+ i[0] === e ? (a = i[1], o = i[2], c = i[3]) : ({variant: c, size: o, ...a} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = c);
38
+ let l;
39
+ i[4] !== o || i[5] !== c ? (l = /* @__PURE__ */ r(t, {
40
+ variant: c,
41
+ size: o
42
+ }), i[4] = o, i[5] = c, i[6] = l) : l = i[6];
43
+ let u;
44
+ return i[7] !== a || i[8] !== l ? (u = /* @__PURE__ */ r(s.Close, {
45
+ "data-slot": "dialog-close",
46
+ render: l,
47
+ ...a
48
+ }), i[7] = a, i[8] = l, i[9] = u) : u = i[9], u;
49
+ }, v = (e) => {
50
+ let t = n(8), i, o;
51
+ t[0] === e ? (i = t[1], o = t[2]) : ({className: i, ...o} = e, t[0] = e, t[1] = i, t[2] = o);
52
+ let l;
53
+ t[3] === i ? l = t[4] : (l = a(c, i), t[3] = i, t[4] = l);
54
+ let u;
55
+ return t[5] !== o || t[6] !== l ? (u = /* @__PURE__ */ r(s.Backdrop, {
56
+ "data-slot": "dialog-backdrop",
57
+ className: l,
58
+ ...o
59
+ }), t[5] = o, t[6] = l, t[7] = u) : u = t[7], u;
60
+ }, y = (e) => {
61
+ let c = n(14), l, d, f, p;
62
+ c[0] === e ? (l = c[1], d = c[2], f = c[3], p = c[4]) : ({className: d, children: l, showCloseButton: p, ...f} = e, c[0] = e, c[1] = l, c[2] = d, c[3] = f, c[4] = p);
63
+ let m = p === void 0 ? !0 : p, h;
64
+ c[5] === d ? h = c[6] : (h = a(u, d), c[5] = d, c[6] = h);
65
+ let g;
66
+ c[7] === m ? g = c[8] : (g = m && /* @__PURE__ */ r(s.Close, {
67
+ "data-slot": "dialog-close",
68
+ render: /* @__PURE__ */ r(t, {
69
+ variant: "ghost",
70
+ size: "icon-sm",
71
+ className: "ch8h0x7",
72
+ "aria-label": "Close"
73
+ }),
74
+ children: /* @__PURE__ */ r(o, { size: 16 })
75
+ }), c[7] = m, c[8] = g);
76
+ let _;
77
+ return c[9] !== l || c[10] !== f || c[11] !== h || c[12] !== g ? (_ = /* @__PURE__ */ i(s.Popup, {
78
+ "data-slot": "dialog-popup",
79
+ className: h,
80
+ ...f,
81
+ children: [l, g]
82
+ }), c[9] = l, c[10] = f, c[11] = h, c[12] = g, c[13] = _) : _ = c[13], _;
83
+ }, b = (e) => {
84
+ let t = n(8), i, o;
85
+ t[0] === e ? (i = t[1], o = t[2]) : ({className: i, ...o} = e, t[0] = e, t[1] = i, t[2] = o);
86
+ let s;
87
+ t[3] === i ? s = t[4] : (s = a(d, i), t[3] = i, t[4] = s);
88
+ let c;
89
+ return t[5] !== o || t[6] !== s ? (c = /* @__PURE__ */ r("div", {
90
+ "data-slot": "dialog-header",
91
+ className: s,
92
+ ...o
93
+ }), t[5] = o, t[6] = s, t[7] = c) : c = t[7], c;
94
+ }, x = (e) => {
95
+ let t = n(8), i, o;
96
+ t[0] === e ? (i = t[1], o = t[2]) : ({className: i, ...o} = e, t[0] = e, t[1] = i, t[2] = o);
97
+ let c;
98
+ t[3] === i ? c = t[4] : (c = a(f, i), t[3] = i, t[4] = c);
99
+ let l;
100
+ return t[5] !== o || t[6] !== c ? (l = /* @__PURE__ */ r(s.Title, {
101
+ "data-slot": "dialog-title",
102
+ className: c,
103
+ ...o
104
+ }), t[5] = o, t[6] = c, t[7] = l) : l = t[7], l;
105
+ }, S = (e) => {
106
+ let t = n(8), i, o;
107
+ t[0] === e ? (i = t[1], o = t[2]) : ({className: i, ...o} = e, t[0] = e, t[1] = i, t[2] = o);
108
+ let c;
109
+ t[3] === i ? c = t[4] : (c = a(p, i), t[3] = i, t[4] = c);
110
+ let l;
111
+ return t[5] !== o || t[6] !== c ? (l = /* @__PURE__ */ r(s.Description, {
112
+ "data-slot": "dialog-description",
113
+ className: c,
114
+ ...o
115
+ }), t[5] = o, t[6] = c, t[7] = l) : l = t[7], l;
116
+ }, C = (e) => {
117
+ let t = n(11), a, o, s, c;
118
+ t[0] === e ? (a = t[1], o = t[2], s = t[3], c = t[4]) : ({className: o, children: a, showCloseButton: c, ...s} = e, t[0] = e, t[1] = a, t[2] = o, t[3] = s, t[4] = c);
119
+ let l = c === void 0 ? !0 : c, u;
120
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ r(v, {}), t[5] = u) : u = t[5];
121
+ let d;
122
+ return t[6] !== a || t[7] !== o || t[8] !== s || t[9] !== l ? (d = /* @__PURE__ */ i(h, { children: [u, /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(y, {
123
+ className: o,
124
+ showCloseButton: l,
125
+ ...s,
126
+ children: a
127
+ }) })] }), t[6] = a, t[7] = o, t[8] = s, t[9] = l, t[10] = d) : d = t[10], d;
128
+ };
129
+ //#endregion
130
+ export { _ as a, h as c, x as i, v as l, C as n, m as o, S as r, s, b as t, g as u };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { n as e } from "./AuthProvider-56TywIOB.js";
3
- import { r as t } from "./dist-x5VFEnQl.js";
4
- import { t as n } from "./card-BwNr7kQS.js";
5
- import { t as r } from "./MessageFooter-CATwNJJU.js";
2
+ import { r as e } from "./dist-CG-pwDW0.js";
3
+ import { n as t } from "./AuthProvider-C6bvedwF.js";
4
+ import { t as n } from "./card-E2LKF9nT.js";
5
+ import { t as r } from "./MessageFooter-59Pziq3i.js";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  var o = {
8
8
  header: "_header_emo7t_1",
@@ -10,7 +10,7 @@ var o = {
10
10
  subtitle: "_subtitle_emo7t_15",
11
11
  formContainer: "_formContainer_emo7t_21"
12
12
  }, s = ({ logo: s, siteName: c, workspaceId: l, options: u, onSuccess: d }) => {
13
- let { account: f } = e();
13
+ let { account: f } = t();
14
14
  return /* @__PURE__ */ a(n, {
15
15
  logo: s,
16
16
  siteName: c,
@@ -29,7 +29,7 @@ var o = {
29
29
  /* @__PURE__ */ i(r, {}),
30
30
  f && /* @__PURE__ */ i("div", {
31
31
  className: o.formContainer,
32
- children: /* @__PURE__ */ i(t, {
32
+ children: /* @__PURE__ */ i(e, {
33
33
  collection_id: u?.collection || "",
34
34
  workspace_id: l,
35
35
  uiConfig: {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "./LoginForm-CEUbBeE3.js";
3
- import { t } from "./card-BwNr7kQS.js";
2
+ import { t as e } from "./LoginForm-_44FtvWg.js";
3
+ import { t } from "./card-E2LKF9nT.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";
6
6
  var s = {
@@ -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-BowwZMBu.js")), l = ({ logo: r, siteName: l, page: u }) => {
11
+ }, c = r(() => import("./PendingApprovalCard-C8iZjo06.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", {}),