@levo-so/studio 0.1.108 → 0.1.109

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 (43) hide show
  1. package/{BillingStep-CJqmdIz2.js → BillingStep-DZeqbtfs.js} +1 -1
  2. package/{Button-DujHjtOV.js → Button-BMUB23Y7.js} +527 -91
  3. package/CollectionField-xa-jed3_.js +232 -0
  4. package/{DateTimeWidget-CbpvxQ9s.js → DateTimeWidget-DWbn_kXp.js} +4 -3
  5. package/{EntryCard-Drnobf4s.js → EntryCard-BNZ-0_Kv.js} +7 -4
  6. package/{LoginCard-B9HKjZEk.js → LoginCard-B1XlZfEU.js} +3 -3
  7. package/{LoginForm-DpgxFh89.js → LoginForm-NmDPe72V.js} +17 -17
  8. package/{LoginModal-CaqsScly.js → LoginModal-CVd08mNx.js} +2 -2
  9. package/{MessageCard-DojQRKnf.js → MessageCard-C2fU_Bo_.js} +2 -2
  10. package/{ModalManager-CaBZKQR2.js → ModalManager-Dqq7D60M.js} +1 -1
  11. package/{PendingApprovalCard-CrdOrMRu.js → PendingApprovalCard-CXOEpAbg.js} +3 -3
  12. package/{PhoneWidget-BxW2gL28.js → PhoneWidget-CtNIit2w.js} +4 -3
  13. package/{PopupRenderer-CV5HY1dP-hICGc5AG.js → PopupRenderer-SSn97BLs-DQfvcymq.js} +256 -260
  14. package/ProfileCard-CzL5uB2z.js +102 -0
  15. package/{RichTextWidget-DCzgJ9EA.js → RichTextWidget-DkRrKQqN.js} +4 -3
  16. package/{Toolbar-B5UZer_x.js → Toolbar-C3WDkSnO.js} +4 -4
  17. package/{VerifyButton-DFAg6STD.js → VerifyButton-TNkt-SDu.js} +1 -1
  18. package/{bookingCard-BgApvrcj.js → bookingCard-61Yx6JO-.js} +2 -2
  19. package/collection.d.ts +14 -6
  20. package/collection.js +8 -7
  21. package/dist-Cfv-YjpI.js +3469 -0
  22. package/getFieldValidations-CSkSV2hW.js +90 -0
  23. package/index.d.ts +235 -16
  24. package/index.js +1743 -1405
  25. package/{nodeAlignment-DKCIjzlR.js → nodeAlignment-BC_Uferw.js} +5 -5
  26. package/package.json +4 -4
  27. package/studio.css +1 -1
  28. package/{utils-CUqS5dMC.js → utils-BJLmuC5w.js} +1 -1
  29. package/widgets-K6ECnoJJ.js +335 -0
  30. package/CollectionField-BPl8E9MW.js +0 -318
  31. package/CollectionFormBuilder-BvFtiZeH.js +0 -3668
  32. package/dist-DZbXWctg.js +0 -97
  33. /package/{Beams-DboMUgCv.js → Beams-WJN38XSv.js} +0 -0
  34. /package/{CollectionInput-DcNJT5Pg.js → CollectionInput-CpNGIXJx.js} +0 -0
  35. /package/{Dots-a8xSboDv.js → Dots-DggLz5I7.js} +0 -0
  36. /package/{Gradient-NacpoDCM.js → Gradient-BSWJAu0a.js} +0 -0
  37. /package/{Grid-BJQvxnks.js → Grid-BFKl0MUt.js} +0 -0
  38. /package/{MessageFooter-C4qC8cem.js → MessageFooter-4qIEK91O.js} +0 -0
  39. /package/{Popover-DOvRAGzc.js → Popover-O1poOHk2.js} +0 -0
  40. /package/{Tooltip-CJINDx93.js → Tooltip-NEMQqPyr.js} +0 -0
  41. /package/{Waves-DUuT_IFr.js → Waves-BPEgTYoO.js} +0 -0
  42. /package/{authentication-ClOFcry8.js → authentication-hnV1BI8s.js} +0 -0
  43. /package/{card-E2LKF9nT.js → card-5ooLmYSr.js} +0 -0
@@ -4,47 +4,47 @@ import { i as u, t as d } from "./Button-lUfKisu8.js";
4
4
  import { n as f, r as p, t as m } from "./inlineRteTheme-Ajq9PNpQ.js";
5
5
  import { i as h, r as g, t as _ } from "./inlineCollectionTheme-WpCvMKrW.js";
6
6
  import { n as v, t as y } from "./theme.cssm-BXDp-ojp.js";
7
- import { t as b } from "./nodeAlignment-DKCIjzlR.js";
7
+ import { t as b } from "./nodeAlignment-BC_Uferw.js";
8
8
  import { c as x } from "react/compiler-runtime";
9
9
  import { $activity as S, $isIdentityContextReady as C, $pageLifecycle as w, $scrollBehavior as T, $session as E } from "@levo-so/insights/stores";
10
10
  import { useLevo as ee, useLevoInsights as D } from "@levo-so/react";
11
- import { Suspense as te, createContext as O, lazy as k, useContext as A, useEffect as j, useMemo as ne, useRef as re, useState as ie } from "react";
12
- import { persistentAtom as ae } from "@nanostores/persistent";
13
- import { atom as M, computed as oe } from "nanostores";
14
- import { Fragment as se, jsx as N, jsxs as P } from "react/jsx-runtime";
15
- import ce from "clsx";
16
- import { createRuntimeFn as le } from "@vanilla-extract/recipes/createRuntimeFn";
17
- import { IconCheck as ue, IconCopy as de, IconX as fe } from "@tabler/icons-react";
18
- import { generateJSON as pe } from "@tiptap/html";
19
- import { renderToReactElement as me } from "@tiptap/static-renderer/pm/react";
20
- import { Bold as he } from "@tiptap/extension-bold";
21
- import { BulletList as ge } from "@tiptap/extension-bullet-list";
22
- import { Code as _e } from "@tiptap/extension-code";
23
- import { Color as ve } from "@tiptap/extension-color";
24
- import { Document as ye } from "@tiptap/extension-document";
25
- import { HardBreak as be } from "@tiptap/extension-hard-break";
26
- import { Heading as xe } from "@tiptap/extension-heading";
27
- import { Highlight as Se } from "@tiptap/extension-highlight";
28
- import { Italic as Ce } from "@tiptap/extension-italic";
29
- import { Link as we } from "@tiptap/extension-link";
30
- import { ListItem as Te } from "@tiptap/extension-list-item";
31
- import { OrderedList as Ee } from "@tiptap/extension-ordered-list";
32
- import { Paragraph as De } from "@tiptap/extension-paragraph";
33
- import { Strike as Oe } from "@tiptap/extension-strike";
34
- import { Subscript as ke } from "@tiptap/extension-subscript";
35
- import { Superscript as Ae } from "@tiptap/extension-superscript";
36
- import { Text as je } from "@tiptap/extension-text";
37
- import { TextStyle as Me } from "@tiptap/extension-text-style";
38
- import { Typography as Ne } from "@tiptap/extension-typography";
39
- import { Underline as Pe } from "@tiptap/extension-underline";
40
- import { UniqueID as Fe } from "@tiptap/extension-unique-id";
41
- import { Extension as Ie, Node as Le, mergeAttributes as Re } from "@tiptap/core";
42
- import { useStore as ze } from "@nanostores/react";
11
+ import { Suspense as te, createContext as O, lazy as k, useContext as A, useEffect as j, useMemo as M, useRef as ne, useState as re } from "react";
12
+ import { persistentAtom as ie } from "@nanostores/persistent";
13
+ import { atom as N, computed as ae } from "nanostores";
14
+ import { Fragment as oe, jsx as P, jsxs as F } from "react/jsx-runtime";
15
+ import se from "clsx";
16
+ import { createRuntimeFn as ce } from "@vanilla-extract/recipes/createRuntimeFn";
17
+ import { IconCheck as le, IconCopy as ue, IconX as de } from "@tabler/icons-react";
18
+ import { generateJSON as fe } from "@tiptap/html";
19
+ import { renderToReactElement as pe } from "@tiptap/static-renderer/pm/react";
20
+ import { Bold as me } from "@tiptap/extension-bold";
21
+ import { BulletList as he } from "@tiptap/extension-bullet-list";
22
+ import { Code as ge } from "@tiptap/extension-code";
23
+ import { Color as _e } from "@tiptap/extension-color";
24
+ import { Document as ve } from "@tiptap/extension-document";
25
+ import { HardBreak as ye } from "@tiptap/extension-hard-break";
26
+ import { Heading as be } from "@tiptap/extension-heading";
27
+ import { Highlight as xe } from "@tiptap/extension-highlight";
28
+ import { Italic as Se } from "@tiptap/extension-italic";
29
+ import { Link as Ce } from "@tiptap/extension-link";
30
+ import { ListItem as we } from "@tiptap/extension-list-item";
31
+ import { OrderedList as Te } from "@tiptap/extension-ordered-list";
32
+ import { Paragraph as Ee } from "@tiptap/extension-paragraph";
33
+ import { Strike as De } from "@tiptap/extension-strike";
34
+ import { Subscript as Oe } from "@tiptap/extension-subscript";
35
+ import { Superscript as ke } from "@tiptap/extension-superscript";
36
+ import { Text as Ae } from "@tiptap/extension-text";
37
+ import { TextStyle as je } from "@tiptap/extension-text-style";
38
+ import { Typography as Me } from "@tiptap/extension-typography";
39
+ import { Underline as Ne } from "@tiptap/extension-underline";
40
+ import { UniqueID as Pe } from "@tiptap/extension-unique-id";
41
+ import { Extension as Fe, Node as Ie, mergeAttributes as Le } from "@tiptap/core";
42
+ import { useStore as Re } from "@nanostores/react";
43
43
  //#region ../../libraries/levocn/dist/styles/inlineBaseTheme.js
44
- var Be = v(h), Ve = (e) => e ? e.radius && !e.radiusScale ? Be({
44
+ var ze = v(h), Be = (e) => e ? e.radius && !e.radiusScale ? ze({
45
45
  ...e,
46
46
  radiusScale: g(e.radius)
47
- }) : Be(e) : {}, He = {
47
+ }) : ze(e) : {}, Ve = {
48
48
  100: "1f4af",
49
49
  1234: "1f522",
50
50
  regional_indicator_a: "🇦",
@@ -1978,7 +1978,7 @@ var Be = v(h), Ve = (e) => e ? e.radius && !e.radiusScale ? Be({
1978
1978
  england: "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
1979
1979
  scotland: "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
1980
1980
  wales: "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"
1981
- }, Ue = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64", We = (e) => /^[A-Fa-f0-9-]+$/.test(e), Ge = Le.create({
1981
+ }, He = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64", Ue = (e) => /^[A-Fa-f0-9-]+$/.test(e), We = Ie.create({
1982
1982
  name: "emoji",
1983
1983
  inline: !0,
1984
1984
  group: "inline",
@@ -1995,12 +1995,12 @@ var Be = v(h), Ve = (e) => e ? e.radius && !e.radiusScale ? Be({
1995
1995
  return [{ tag: "span[data-type=\"emoji\"]" }];
1996
1996
  },
1997
1997
  renderHTML({ HTMLAttributes: e, node: t }) {
1998
- let n = Re(e, { "data-type": "emoji" }), r = t.attrs.name, i = r ? He[r] : void 0;
1999
- return i ? We(i) ? [
1998
+ let n = Le(e, { "data-type": "emoji" }), r = t.attrs.name, i = r ? Ve[r] : void 0;
1999
+ return i ? Ue(i) ? [
2000
2000
  "span",
2001
2001
  n,
2002
2002
  ["img", {
2003
- src: `${Ue}/${i}.png`,
2003
+ src: `${He}/${i}.png`,
2004
2004
  draggable: "false",
2005
2005
  loading: "lazy",
2006
2006
  align: "absmiddle",
@@ -2016,7 +2016,7 @@ var Be = v(h), Ve = (e) => e ? e.radius && !e.radiusScale ? Be({
2016
2016
  `:${r || "emoji"}:`
2017
2017
  ];
2018
2018
  }
2019
- }), Ke = Ie.create({
2019
+ }), Ge = Fe.create({
2020
2020
  name: "fontSize",
2021
2021
  addOptions() {
2022
2022
  return { types: ["textStyle"] };
@@ -2037,124 +2037,124 @@ var Be = v(h), Ve = (e) => e ? e.radius && !e.radiusScale ? Be({
2037
2037
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
2038
2038
  };
2039
2039
  }
2040
- }), qe = /* @__PURE__ */ e({
2041
- _: () => V,
2040
+ }), Ke = /* @__PURE__ */ e({
2041
+ _: () => H,
2042
2042
  c: () => X,
2043
2043
  d: () => dt,
2044
- f: () => Y,
2045
- g: () => z,
2046
- h: () => L,
2044
+ f: () => ct,
2045
+ g: () => B,
2046
+ h: () => R,
2047
2047
  i: () => jt,
2048
2048
  l: () => lt,
2049
- m: () => B,
2049
+ m: () => V,
2050
2050
  n: () => Yt,
2051
2051
  o: () => Ot,
2052
- p: () => R,
2052
+ p: () => z,
2053
2053
  r: () => $,
2054
2054
  s: () => Z,
2055
2055
  t: () => Zt,
2056
- u: () => J,
2057
- v: () => q,
2058
- y: () => G
2059
- }), Je = Object.defineProperty, Ye = (e, t) => {
2056
+ u: () => Y,
2057
+ v: () => ot,
2058
+ y: () => q
2059
+ }), qe = Object.defineProperty, Je = (e, t) => {
2060
2060
  let n = {};
2061
- for (var r in e) Je(n, r, {
2061
+ for (var r in e) qe(n, r, {
2062
2062
  get: e[r],
2063
2063
  enumerable: !0
2064
2064
  });
2065
- return t || Je(n, Symbol.toStringTag, { value: "Module" }), n;
2066
- }, Xe = 6e4, Ze = "lv_popups_session", F = {
2065
+ return t || qe(n, Symbol.toStringTag, { value: "Module" }), n;
2066
+ }, Ye = 6e4, Xe = "lv_popups_session", I = {
2067
2067
  active_popup_id: null,
2068
2068
  shown_popup_ids: [],
2069
2069
  last_closed_at: null
2070
- }, I = ae("lv_popups_state", {}, {
2070
+ }, L = ie("lv_popups_state", {}, {
2071
2071
  encode: JSON.stringify,
2072
2072
  decode: JSON.parse
2073
- }), Qe = (e) => {
2074
- if (!e) return F;
2073
+ }), Ze = (e) => {
2074
+ if (!e) return I;
2075
2075
  try {
2076
2076
  return JSON.parse(e);
2077
2077
  } catch {
2078
- return F;
2078
+ return I;
2079
2079
  }
2080
- }, L = M((() => {
2081
- if (typeof sessionStorage > "u") return F;
2080
+ }, R = N((() => {
2081
+ if (typeof sessionStorage > "u") return I;
2082
2082
  try {
2083
- return Qe(sessionStorage.getItem(Ze));
2083
+ return Ze(sessionStorage.getItem(Xe));
2084
2084
  } catch {
2085
- return F;
2085
+ return I;
2086
2086
  }
2087
- })()), $e = L.set;
2088
- L.set = (e) => {
2089
- $e(e);
2087
+ })()), Qe = R.set;
2088
+ R.set = (e) => {
2089
+ Qe(e);
2090
2090
  try {
2091
- sessionStorage.setItem(Ze, JSON.stringify(e));
2091
+ sessionStorage.setItem(Xe, JSON.stringify(e));
2092
2092
  } catch {}
2093
2093
  };
2094
- var et = oe([L, I], (e, t) => ({
2094
+ var $e = ae([R, L], (e, t) => ({
2095
2095
  active_popup_id: e.active_popup_id,
2096
2096
  shown_popup_ids: e.shown_popup_ids,
2097
2097
  last_closed_at: e.last_closed_at,
2098
2098
  previous_popups: t
2099
- })), R = M([]), z = (e) => {
2100
- R.set(e);
2101
- }, B = M(!0), V = (e) => {
2102
- B.set(e);
2103
- }, tt = () => et.get(), nt = (e, t) => e.includes(t) ? e : [...e, t], H = "manual", rt = () => H, U = [], W = null, it = () => {
2104
- if (W) return;
2105
- let { last_closed_at: e } = L.get();
2099
+ })), z = N([]), B = (e) => {
2100
+ z.set(e);
2101
+ }, V = N(!0), H = (e) => {
2102
+ V.set(e);
2103
+ }, et = () => $e.get(), tt = (e, t) => e.includes(t) ? e : [...e, t], U = "manual", nt = () => U, W = [], G = null, rt = () => {
2104
+ if (G) return;
2105
+ let { last_closed_at: e } = R.get();
2106
2106
  if (!e) return;
2107
- let t = Xe - (Date.now() - e);
2107
+ let t = Ye - (Date.now() - e);
2108
2108
  if (t <= 0) {
2109
- at();
2109
+ K();
2110
2110
  return;
2111
2111
  }
2112
- W = setTimeout(() => {
2113
- W = null, at();
2112
+ G = setTimeout(() => {
2113
+ G = null, K();
2114
2114
  }, t);
2115
- }, at = () => {
2116
- let e = L.get();
2115
+ }, K = () => {
2116
+ let e = R.get();
2117
2117
  if (!e.active_popup_id) {
2118
2118
  if (e.last_closed_at && Date.now() - e.last_closed_at < 6e4) {
2119
- it();
2119
+ rt();
2120
2120
  return;
2121
2121
  }
2122
- for (; U.length > 0;) {
2123
- let e = U.shift();
2124
- if (G(e.popup, { trigger_type: e.trigger_type })) return;
2122
+ for (; W.length > 0;) {
2123
+ let e = W.shift();
2124
+ if (q(e.popup, { trigger_type: e.trigger_type })) return;
2125
2125
  }
2126
2126
  }
2127
- }, ot = (e, t) => {
2128
- U.some((t) => t.popup.id === e.id) || (U.push({
2127
+ }, it = (e, t) => {
2128
+ W.some((t) => t.popup.id === e.id) || (W.push({
2129
2129
  popup: e,
2130
2130
  trigger_type: t
2131
- }), it());
2132
- }, st = (e, t) => {
2133
- let n = tt();
2131
+ }), rt());
2132
+ }, at = (e, t) => {
2133
+ let n = et();
2134
2134
  if (!t || t.type === "always") return !n.shown_popup_ids.includes(e);
2135
2135
  let r = n.previous_popups[e];
2136
2136
  return r ? t.type === "once" ? !1 : t.type === "interval" && t.interval_ms ? Date.now() - r.triggered_at >= t.interval_ms : !0 : !0;
2137
- }, G = (e, t = {}) => {
2138
- let { force: n = !1, trigger_type: r = "manual" } = t, i = e.id, a = e.settings?.display_frequency, o = L.get();
2139
- return o.active_popup_id === i ? !0 : !n && (o.active_popup_id || o.last_closed_at && Date.now() - o.last_closed_at < 6e4 || !st(i, a)) ? !1 : (W &&= (clearTimeout(W), null), H = r, L.set({
2137
+ }, q = (e, t = {}) => {
2138
+ let { force: n = !1, trigger_type: r = "manual" } = t, i = e.id, a = e.settings?.display_frequency, o = R.get();
2139
+ return o.active_popup_id === i ? !0 : !n && (o.active_popup_id || o.last_closed_at && Date.now() - o.last_closed_at < 6e4 || !at(i, a)) ? !1 : (G &&= (clearTimeout(G), null), U = r, R.set({
2140
2140
  active_popup_id: i,
2141
- shown_popup_ids: nt(o.shown_popup_ids, i),
2141
+ shown_popup_ids: tt(o.shown_popup_ids, i),
2142
2142
  last_closed_at: o.last_closed_at
2143
- }), !a || a.type === "always" || I.set({
2144
- ...I.get(),
2143
+ }), !a || a.type === "always" || L.set({
2144
+ ...L.get(),
2145
2145
  [i]: { triggered_at: Date.now() }
2146
2146
  }), !0);
2147
- }, K = (e, t = {}) => {
2147
+ }, J = (e, t = {}) => {
2148
2148
  let { trigger_type: n = "manual" } = t;
2149
- return G(e, { trigger_type: n }) ? !0 : (st(e.id, e.settings?.display_frequency) && ot(e, n), !1);
2150
- }, q = (e) => {
2151
- let t = L.get();
2152
- t.active_popup_id === e && (H = "manual", L.set({
2149
+ return q(e, { trigger_type: n }) ? !0 : (at(e.id, e.settings?.display_frequency) && it(e, n), !1);
2150
+ }, ot = (e) => {
2151
+ let t = R.get();
2152
+ t.active_popup_id === e && (U = "manual", R.set({
2153
2153
  ...t,
2154
2154
  active_popup_id: null,
2155
2155
  last_closed_at: Date.now()
2156
- }), setTimeout(at, 0));
2157
- }, J = le({
2156
+ }), setTimeout(K, 0));
2157
+ }, Y = ce({
2158
2158
  defaultClassName: "_1gklknd4",
2159
2159
  variantClassNames: {
2160
2160
  placement: {
@@ -2170,7 +2170,7 @@ var et = oe([L, I], (e, t) => ({
2170
2170
  },
2171
2171
  defaultVariants: { placement: "popup" },
2172
2172
  compoundVariants: []
2173
- }), ct = "_1gklkndb", Y = "_1gklkndc", lt = "_1gklkndd", ut = le({
2173
+ }), st = "_1gklkndb", ct = "_1gklkndc", lt = "_1gklkndd", ut = ce({
2174
2174
  defaultClassName: "_1gklknde",
2175
2175
  variantClassNames: { size: {
2176
2176
  small: "_1gklkndf",
@@ -2180,182 +2180,178 @@ var et = oe([L, I], (e, t) => ({
2180
2180
  } },
2181
2181
  defaultVariants: { size: "medium" },
2182
2182
  compoundVariants: []
2183
- }), dt = "_1gklkndl", X = "_1gklkndm", ft = [
2184
- ye,
2183
+ }), dt = "_1gklkndl", X = "_1gklkndm", ft = O(null), pt = (e) => {
2184
+ let t = x(6), { popup: n, callbacks: r, children: i } = e, a;
2185
+ t[0] !== r || t[1] !== n ? (a = {
2186
+ popup: n,
2187
+ callbacks: r
2188
+ }, t[0] = r, t[1] = n, t[2] = a) : a = t[2];
2189
+ let o;
2190
+ return t[3] !== i || t[4] !== a ? (o = /* @__PURE__ */ P(ft.Provider, {
2191
+ value: a,
2192
+ children: i
2193
+ }), t[3] = i, t[4] = a, t[5] = o) : o = t[5], o;
2194
+ }, mt = () => {
2195
+ let e = A(ft);
2196
+ if (!e) throw Error("usePopupContext must be used within a PopupProvider");
2197
+ return e;
2198
+ }, ht = () => A(ft), gt = () => {
2199
+ let e = x(2), t = ht(), n;
2200
+ return e[0] === t ? n = e[1] : (n = () => {
2201
+ t && (t.callbacks?.onPopupClose?.(t.popup, { trigger_type: nt() }), ot(t.popup.id));
2202
+ }, e[0] = t, e[1] = n), n;
2203
+ }, _t = "zv6sjd4", vt = "zv6sjd5", yt = "zv6sjd6", bt = [
2204
+ ve,
2205
+ Ee,
2206
+ Ae,
2207
+ be,
2208
+ me,
2209
+ Se,
2185
2210
  De,
2186
- je,
2187
- xe,
2188
- he,
2189
- Ce,
2190
- Oe,
2191
- _e,
2192
2211
  ge,
2193
- Ee,
2212
+ he,
2194
2213
  Te,
2195
- be,
2196
- Pe,
2197
- we.configure({ openOnClick: !1 }),
2198
- Me,
2199
- Ke,
2214
+ we,
2215
+ ye,
2200
2216
  Ne,
2201
- Ae,
2202
- ke,
2203
- ve,
2204
- Se.configure({ multicolor: !0 }),
2217
+ Ce.configure({ openOnClick: !1 }),
2218
+ je,
2205
2219
  Ge,
2220
+ Me,
2221
+ ke,
2222
+ Oe,
2223
+ _e,
2224
+ xe.configure({ multicolor: !0 }),
2225
+ We,
2206
2226
  b,
2207
- Fe.configure({ types: [
2227
+ Pe.configure({ types: [
2208
2228
  "paragraph",
2209
2229
  "heading",
2210
2230
  "bulletList",
2211
2231
  "orderedList"
2212
2232
  ] })
2213
- ], pt = (e) => pe(e, ft), mt = ({ content: e, className: t, ref: n, ...r }) => {
2214
- let i = ne(() => e ? typeof e == "string" ? e ? pt(e) : null : e.json && Object.keys(e.json).length > 0 ? e.json : e.html ? pt(e.html) : null : null, [e]), a = ne(() => i ? me({
2233
+ ], xt = (e) => fe(e, bt), St = ({ content: e, className: t, ref: n, ...r }) => {
2234
+ let i = M(() => e ? typeof e == "string" ? e ? xt(e) : null : e.json && Object.keys(e.json).length > 0 ? e.json : e.html ? xt(e.html) : null : null, [e]), a = M(() => i ? pe({
2215
2235
  content: i,
2216
- extensions: ft
2236
+ extensions: bt
2217
2237
  }) : null, [i]);
2218
- return a ? /* @__PURE__ */ N("div", {
2238
+ return a ? /* @__PURE__ */ P("div", {
2219
2239
  ref: n,
2220
- className: ce(p, t),
2240
+ className: se(p, t),
2221
2241
  ...r,
2222
2242
  children: a
2223
2243
  }) : null;
2224
- }, ht = O(null), gt = (e) => {
2225
- let t = x(6), { popup: n, callbacks: r, children: i } = e, a;
2226
- t[0] !== r || t[1] !== n ? (a = {
2227
- popup: n,
2228
- callbacks: r
2229
- }, t[0] = r, t[1] = n, t[2] = a) : a = t[2];
2230
- let o;
2231
- return t[3] !== i || t[4] !== a ? (o = /* @__PURE__ */ N(ht.Provider, {
2232
- value: a,
2233
- children: i
2234
- }), t[3] = i, t[4] = a, t[5] = o) : o = t[5], o;
2235
- }, _t = () => {
2236
- let e = A(ht);
2237
- if (!e) throw Error("usePopupContext must be used within a PopupProvider");
2238
- return e;
2239
- }, vt = () => A(ht), yt = () => {
2240
- let e = x(2), t = vt(), n;
2241
- return e[0] === t ? n = e[1] : (n = () => {
2242
- t && (t.callbacks?.onPopupClose?.(t.popup, { trigger_type: rt() }), q(t.popup.id));
2243
- }, e[0] = t, e[1] = n), n;
2244
- }, bt = "zv6sjd4", xt = "zv6sjd5", St = "zv6sjd6", Ct = k(() => import("./dist-DZbXWctg.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), wt = {
2245
- left: bt,
2246
- center: xt,
2247
- right: St
2244
+ }, Ct = k(() => import("./dist-Cfv-YjpI.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), wt = {
2245
+ left: _t,
2246
+ center: vt,
2247
+ right: yt
2248
2248
  }, Tt = (e) => (e ?? "16:9").replace(":", " / "), Et = (e) => {
2249
2249
  if (e.content.coverImage?.srcset) return Object.entries(e.content.coverImage.srcset).filter(([e]) => e !== "path").map(([e, t]) => `${t} ${e}`).join(", ");
2250
2250
  }, Z = (e) => {
2251
- let t = x(42), { popup: n } = e, i = vt(), a = i?.popup ?? n, s = i?.callbacks?.onAction, l = yt(), u = !i, { content: f } = a, { workspace: p } = ee(), [m, h] = ie(!1), g;
2252
- t[0] !== f.action || t[1] !== s || t[2] !== a ? (g = () => {
2253
- if (f.action?.type !== "redirect" || !f.action.copyValue) return;
2254
- let e = f.action.copyValue;
2251
+ let t = x(45), { popup: n, disableInteraction: i } = e, a = ht(), s = a?.popup ?? n, l = a?.callbacks?.onAction, u = gt(), f = !a, { content: p } = s, { workspace: m } = ee(), [h, g] = re(!1), _;
2252
+ t[0] !== p.action || t[1] !== l || t[2] !== s ? (_ = () => {
2253
+ if (p.action?.type !== "redirect" || !p.action.copyValue) return;
2254
+ let e = p.action.copyValue;
2255
2255
  navigator.clipboard.writeText(e).then(() => {
2256
- h(!0), setTimeout(() => h(!1), 2e3), s?.(a, {
2256
+ g(!0), setTimeout(() => g(!1), 2e3), l?.(s, {
2257
2257
  action_type: "copy",
2258
2258
  copy_value: e
2259
2259
  });
2260
2260
  });
2261
- }, t[0] = f.action, t[1] = s, t[2] = a, t[3] = g) : g = t[3];
2262
- let _ = g, v = f.align ?? "left", y;
2263
- t[4] === f.coverImageRatio ? y = t[5] : (y = Tt(f.coverImageRatio), t[4] = f.coverImageRatio, t[5] = y);
2264
- let b = y, S;
2265
- t[6] !== b || t[7] !== f.coverImage || t[8] !== f.coverImageFocus || t[9] !== a ? (S = f.coverImage && /* @__PURE__ */ N("div", {
2261
+ }, t[0] = p.action, t[1] = l, t[2] = s, t[3] = _) : _ = t[3];
2262
+ let v = _, y = p.align ?? "left", b;
2263
+ t[4] === p.coverImageRatio ? b = t[5] : (b = Tt(p.coverImageRatio), t[4] = p.coverImageRatio, t[5] = b);
2264
+ let S = b, C;
2265
+ t[6] !== S || t[7] !== p.coverImage || t[8] !== p.coverImageFocus || t[9] !== s ? (C = p.coverImage && /* @__PURE__ */ P("div", {
2266
2266
  className: "_1gklkndj",
2267
- style: { aspectRatio: b },
2268
- children: /* @__PURE__ */ N("img", {
2269
- src: f.coverImage.location,
2270
- srcSet: Et(a),
2267
+ style: { aspectRatio: S },
2268
+ children: /* @__PURE__ */ P("img", {
2269
+ src: p.coverImage.location,
2270
+ srcSet: Et(s),
2271
2271
  alt: "",
2272
2272
  className: "_1gklkndk",
2273
- style: f.coverImageFocus ? { objectPosition: f.coverImageFocus.replace("-", " ") } : void 0
2273
+ style: p.coverImageFocus ? { objectPosition: p.coverImageFocus.replace("-", " ") } : void 0
2274
2274
  })
2275
- }), t[6] = b, t[7] = f.coverImage, t[8] = f.coverImageFocus, t[9] = a, t[10] = S) : S = t[10];
2276
- let C = f.size ?? "medium", w;
2277
- t[11] === C ? w = t[12] : (w = ut({ size: C }), t[11] = C, t[12] = w);
2278
- let T;
2279
- t[13] !== v || t[14] !== f.description || t[15] !== f.heading ? (T = (f.heading || f.description) && /* @__PURE__ */ P(c, {
2280
- className: "zv6sjd0",
2281
- style: { textAlign: v },
2282
- children: [f.heading && /* @__PURE__ */ N(r, { children: f.heading }), f.description && /* @__PURE__ */ N(o, { children: f.description })]
2283
- }), t[13] = v, t[14] = f.description, t[15] = f.heading, t[16] = T) : T = t[16];
2275
+ }), t[6] = S, t[7] = p.coverImage, t[8] = p.coverImageFocus, t[9] = s, t[10] = C) : C = t[10];
2276
+ let w = p.size ?? "medium", T;
2277
+ t[11] === w ? T = t[12] : (T = ut({ size: w }), t[11] = w, t[12] = T);
2284
2278
  let E;
2285
- t[17] === f.body ? E = t[18] : (E = (f.body?.html || f.body?.json) && /* @__PURE__ */ N(mt, {
2286
- className: "zv6sjd1",
2287
- content: f.body
2288
- }), t[17] = f.body, t[18] = E);
2279
+ t[13] === i ? E = t[14] : (E = i ? { pointerEvents: "none" } : void 0, t[13] = i, t[14] = E);
2289
2280
  let D;
2290
- t[19] !== v || t[20] !== f.action || t[21] !== u || t[22] !== s || t[23] !== a || t[24] !== p ? (D = f.action?.type === "form" && /* @__PURE__ */ N("div", {
2281
+ t[15] !== y || t[16] !== p.description || t[17] !== p.heading ? (D = (p.heading || p.description) && /* @__PURE__ */ F(c, {
2282
+ className: "zv6sjd0",
2283
+ style: { textAlign: y },
2284
+ children: [p.heading && /* @__PURE__ */ P(r, { children: p.heading }), p.description && /* @__PURE__ */ P(o, { children: p.description })]
2285
+ }), t[15] = y, t[16] = p.description, t[17] = p.heading, t[18] = D) : D = t[18];
2286
+ let O;
2287
+ t[19] === p.body ? O = t[20] : (O = (p.body?.html || p.body?.json) && /* @__PURE__ */ P(St, {
2288
+ className: "zv6sjd1",
2289
+ content: p.body
2290
+ }), t[19] = p.body, t[20] = O);
2291
+ let k;
2292
+ t[21] !== y || t[22] !== p.action || t[23] !== f || t[24] !== l || t[25] !== s || t[26] !== m ? (k = p.action?.type === "form" && /* @__PURE__ */ P("div", {
2291
2293
  className: "zv6sjd3",
2292
- children: /* @__PURE__ */ N(te, { children: /* @__PURE__ */ N(Ct, {
2293
- collection_id: f.action.collectionKey,
2294
+ children: /* @__PURE__ */ P(te, { children: /* @__PURE__ */ P(Ct, {
2295
+ collection_id: p.action.collectionKey,
2294
2296
  uiConfig: {
2295
2297
  hideFormHeading: !0,
2296
2298
  hideSectionHeadings: !0
2297
2299
  },
2298
2300
  submitButtonConfig: {
2299
2301
  show: !0,
2300
- text: f.action.label || "Submit",
2301
- styles: f.action.fullWidth ? "zv6sjd7" : wt[v]
2302
+ text: p.action.label || "Submit",
2303
+ styles: p.action.fullWidth ? "zv6sjd7" : wt[y]
2302
2304
  },
2303
- workspace_id: p,
2305
+ workspace_id: m,
2304
2306
  containerStyles: "zv6sjd2",
2305
- preview: u,
2307
+ preview: f,
2306
2308
  onSuccess: () => {
2307
- f.action?.type === "form" && s?.(a, {
2309
+ p.action?.type === "form" && l?.(s, {
2308
2310
  action_type: "form_submit",
2309
- collection_key: f.action.collectionKey
2311
+ collection_key: p.action.collectionKey
2310
2312
  });
2311
2313
  }
2312
2314
  }) })
2313
- }), t[19] = v, t[20] = f.action, t[21] = u, t[22] = s, t[23] = a, t[24] = p, t[25] = D) : D = t[25];
2314
- let O;
2315
- t[26] !== l || t[27] !== f.action || t[28] !== m || t[29] !== _ || t[30] !== s || t[31] !== a ? (O = f.action?.type === "redirect" && /* @__PURE__ */ P(se, { children: [f.action.copyValue && /* @__PURE__ */ P("button", {
2315
+ }), t[21] = y, t[22] = p.action, t[23] = f, t[24] = l, t[25] = s, t[26] = m, t[27] = k) : k = t[27];
2316
+ let A;
2317
+ t[28] !== u || t[29] !== p.action || t[30] !== h || t[31] !== v || t[32] !== l || t[33] !== s ? (A = p.action?.type === "redirect" && /* @__PURE__ */ F(oe, { children: [p.action.copyValue && /* @__PURE__ */ F("button", {
2316
2318
  type: "button",
2317
2319
  className: "zv6sjd9",
2318
- onClick: _,
2319
- children: [
2320
- /* @__PURE__ */ N("span", {
2321
- className: "zv6sjda",
2322
- children: f.action.copyValue
2323
- }),
2324
- N(m ? ue : de, {
2325
- size: 18,
2326
- className: "zv6sjdb"
2327
- }),
2328
- /* @__PURE__ */ N("span", {
2329
- className: "zv6sjdc",
2330
- children: m ? "Copied!" : "Click to copy"
2331
- })
2332
- ]
2333
- }), /* @__PURE__ */ N(d, {
2320
+ onClick: v,
2321
+ children: [/* @__PURE__ */ P("span", {
2322
+ className: "zv6sjda",
2323
+ children: p.action.copyValue
2324
+ }), P(h ? le : ue, {
2325
+ size: 18,
2326
+ className: "zv6sjdb"
2327
+ })]
2328
+ }), /* @__PURE__ */ P(d, {
2334
2329
  className: "zv6sjd8",
2335
2330
  onClick: () => {
2336
- f.action?.type === "redirect" && (s?.(a, {
2331
+ p.action?.type === "redirect" && (l?.(s, {
2337
2332
  action_type: "redirect",
2338
- redirect_url: f.action.url,
2339
- open_in_new_tab: !!f.action.openInNewTab
2340
- }), l(), f.action.openInNewTab ? window.open(f.action.url, "_blank", "noopener,noreferrer") : window.location.href = f.action.url);
2333
+ redirect_url: p.action.url,
2334
+ open_in_new_tab: !!p.action.openInNewTab
2335
+ }), u(), p.action.openInNewTab ? window.open(p.action.url, "_blank", "noopener,noreferrer") : window.location.href = p.action.url);
2341
2336
  },
2342
- children: f.action.label || "Button"
2343
- })] }), t[26] = l, t[27] = f.action, t[28] = m, t[29] = _, t[30] = s, t[31] = a, t[32] = O) : O = t[32];
2344
- let k;
2345
- t[33] !== w || t[34] !== T || t[35] !== E || t[36] !== D || t[37] !== O ? (k = /* @__PURE__ */ P("div", {
2346
- className: w,
2337
+ children: p.action.label || "Button"
2338
+ })] }), t[28] = u, t[29] = p.action, t[30] = h, t[31] = v, t[32] = l, t[33] = s, t[34] = A) : A = t[34];
2339
+ let j;
2340
+ t[35] !== A || t[36] !== T || t[37] !== E || t[38] !== D || t[39] !== O || t[40] !== k ? (j = /* @__PURE__ */ F("div", {
2341
+ className: T,
2342
+ style: E,
2347
2343
  children: [
2348
- T,
2349
- E,
2350
2344
  D,
2351
- O
2345
+ O,
2346
+ k,
2347
+ A
2352
2348
  ]
2353
- }), t[33] = w, t[34] = T, t[35] = E, t[36] = D, t[37] = O, t[38] = k) : k = t[38];
2354
- let A;
2355
- return t[39] !== k || t[40] !== S ? (A = /* @__PURE__ */ P("div", {
2356
- className: ct,
2357
- children: [S, k]
2358
- }), t[39] = k, t[40] = S, t[41] = A) : A = t[41], A;
2349
+ }), t[35] = A, t[36] = T, t[37] = E, t[38] = D, t[39] = O, t[40] = k, t[41] = j) : j = t[41];
2350
+ let M;
2351
+ return t[42] !== j || t[43] !== C ? (M = /* @__PURE__ */ F("div", {
2352
+ className: st,
2353
+ children: [C, j]
2354
+ }), t[42] = j, t[43] = C, t[44] = M) : M = t[44], M;
2359
2355
  }, Q = (e) => {
2360
2356
  if (e == null) return;
2361
2357
  if (typeof e == "string") return e;
@@ -2408,13 +2404,13 @@ var et = oe([L, I], (e, t) => ({
2408
2404
  fonts: e.fonts,
2409
2405
  radius: e.sizes?.radius
2410
2406
  };
2411
- }, At = (e) => Ve(kt(e)), jt = (e) => {
2407
+ }, At = (e) => Be(kt(e)), jt = (e) => {
2412
2408
  let t = x(21), n, r, i, a, o;
2413
2409
  t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({children: n, popupTheme: r, siteTheme: a, style: o, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
2414
2410
  let s;
2415
2411
  t[6] !== r || t[7] !== a ? (s = r ?? (a ? Ot(a) : null), t[6] = r, t[7] = a, t[8] = s) : s = t[8];
2416
2412
  let c = s, l;
2417
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (l = ce(y, f), t[9] = l) : l = t[9];
2413
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (l = se(y, f), t[9] = l) : l = t[9];
2418
2414
  let d, p;
2419
2415
  t[10] === Symbol.for("react.memo_cache_sentinel") ? (d = m({ baseSpacing: ".625rem" }), p = _({ form: { gap: "1rem" } }), t[10] = d, t[11] = p) : (d = t[10], p = t[11]);
2420
2416
  let h;
@@ -2427,7 +2423,7 @@ var et = oe([L, I], (e, t) => ({
2427
2423
  ...o
2428
2424
  }, t[14] = o, t[15] = h, t[16] = g) : g = t[16];
2429
2425
  let v;
2430
- return t[17] !== n || t[18] !== i || t[19] !== g ? (v = /* @__PURE__ */ N(u, {
2426
+ return t[17] !== n || t[18] !== i || t[19] !== g ? (v = /* @__PURE__ */ P(u, {
2431
2427
  className: l,
2432
2428
  cssReset: !0,
2433
2429
  style: g,
@@ -2435,47 +2431,47 @@ var et = oe([L, I], (e, t) => ({
2435
2431
  children: n
2436
2432
  }), t[17] = n, t[18] = i, t[19] = g, t[20] = v) : v = t[20], v;
2437
2433
  }, $ = (e) => e.content.position || "top-right", Mt = () => {
2438
- let e = x(32), { popup: r, callbacks: o } = _t(), { placement: c, id: u } = r, d = ze(et).active_popup_id === u, f = re(!1), p, m;
2434
+ let e = x(32), { popup: r, callbacks: o } = mt(), { placement: c, id: u } = r, d = Re($e).active_popup_id === u, f = ne(!1), p, m;
2439
2435
  e[0] !== o || e[1] !== d || e[2] !== r ? (p = () => {
2440
- d && !f.current && (f.current = !0, o?.onPopupOpen?.(r, { trigger_type: rt() })), d || (f.current = !1);
2436
+ d && !f.current && (f.current = !0, o?.onPopupOpen?.(r, { trigger_type: nt() })), d || (f.current = !1);
2441
2437
  }, m = [
2442
2438
  d,
2443
2439
  r,
2444
2440
  o
2445
2441
  ], e[0] = o, e[1] = d, e[2] = r, e[3] = p, e[4] = m) : (p = e[3], m = e[4]), j(p, m);
2446
- let h = yt(), g, _, v, y, b, S, C, w;
2442
+ let h = gt(), g, _, v, y, b, S, C, w;
2447
2443
  if (e[5] !== h || e[6] !== d || e[7] !== c || e[8] !== r) {
2448
2444
  let o = $(r), u = c === "popup", f = c === "slide_in";
2449
- _ = a, b = d, e[17] === h ? S = e[18] : (S = (e) => !e && h(), e[17] = h, e[18] = S), C = u, w = !u, g = n, e[19] === u ? v = e[20] : (v = u && /* @__PURE__ */ N(i, {}), e[19] = u, e[20] = v), y = u ? /* @__PURE__ */ N(l, {
2450
- className: Y,
2451
- children: /* @__PURE__ */ P(s.Popup, {
2452
- className: J({ placement: c }),
2453
- children: [/* @__PURE__ */ N(t, {
2445
+ _ = a, b = d, e[17] === h ? S = e[18] : (S = (e) => !e && h(), e[17] = h, e[18] = S), C = u, w = !u, g = n, e[19] === u ? v = e[20] : (v = u && /* @__PURE__ */ P(i, {}), e[19] = u, e[20] = v), y = u ? /* @__PURE__ */ P(l, {
2446
+ className: ct,
2447
+ children: /* @__PURE__ */ F(s.Popup, {
2448
+ className: Y({ placement: c }),
2449
+ children: [/* @__PURE__ */ P(t, {
2454
2450
  variant: "ghost",
2455
2451
  size: "icon-xs",
2456
2452
  className: X,
2457
2453
  "aria-label": "Close popup",
2458
- children: /* @__PURE__ */ N(fe, { size: 16 })
2459
- }), /* @__PURE__ */ N(Z, {})]
2454
+ children: /* @__PURE__ */ P(de, { size: 16 })
2455
+ }), /* @__PURE__ */ P(Z, {})]
2460
2456
  })
2461
- }) : /* @__PURE__ */ P(s.Popup, {
2462
- className: ce(J({
2457
+ }) : /* @__PURE__ */ F(s.Popup, {
2458
+ className: se(Y({
2463
2459
  placement: c,
2464
2460
  position: o
2465
2461
  }), f && "_1gklkndd"),
2466
- children: [/* @__PURE__ */ N(t, {
2462
+ children: [/* @__PURE__ */ P(t, {
2467
2463
  variant: "ghost",
2468
2464
  size: "icon-xs",
2469
2465
  className: X,
2470
2466
  "aria-label": "Close popup",
2471
- children: /* @__PURE__ */ N(fe, { size: 16 })
2472
- }), /* @__PURE__ */ N(Z, {})]
2467
+ children: /* @__PURE__ */ P(de, { size: 16 })
2468
+ }), /* @__PURE__ */ P(Z, {})]
2473
2469
  }), e[5] = h, e[6] = d, e[7] = c, e[8] = r, e[9] = g, e[10] = _, e[11] = v, e[12] = y, e[13] = b, e[14] = S, e[15] = C, e[16] = w;
2474
2470
  } else g = e[9], _ = e[10], v = e[11], y = e[12], b = e[13], S = e[14], C = e[15], w = e[16];
2475
2471
  let T;
2476
- e[21] !== g || e[22] !== v || e[23] !== y ? (T = /* @__PURE__ */ P(g, { children: [v, y] }), e[21] = g, e[22] = v, e[23] = y, e[24] = T) : T = e[24];
2472
+ e[21] !== g || e[22] !== v || e[23] !== y ? (T = /* @__PURE__ */ F(g, { children: [v, y] }), e[21] = g, e[22] = v, e[23] = y, e[24] = T) : T = e[24];
2477
2473
  let E;
2478
- return e[25] !== _ || e[26] !== b || e[27] !== S || e[28] !== C || e[29] !== w || e[30] !== T ? (E = /* @__PURE__ */ N(_, {
2474
+ return e[25] !== _ || e[26] !== b || e[27] !== S || e[28] !== C || e[29] !== w || e[30] !== T ? (E = /* @__PURE__ */ P(_, {
2479
2475
  open: b,
2480
2476
  onOpenChange: S,
2481
2477
  modal: C,
@@ -2511,23 +2507,23 @@ var et = oe([L, I], (e, t) => ({
2511
2507
  };
2512
2508
  }, Bt = (e, t) => {
2513
2509
  if (!e) return null;
2514
- let n = setTimeout(() => K(t, { trigger_type: "time_on_page" }), e);
2510
+ let n = setTimeout(() => J(t, { trigger_type: "time_on_page" }), e);
2515
2511
  return () => clearTimeout(n);
2516
2512
  }, Vt = (e, t) => {
2517
2513
  if (e === void 0) return null;
2518
2514
  let n = !1;
2519
2515
  return T.listen((r) => {
2520
- n || r.depth >= e && (n = !0, K(t, { trigger_type: "scroll_depth" }));
2516
+ n || r.depth >= e && (n = !0, J(t, { trigger_type: "scroll_depth" }));
2521
2517
  });
2522
2518
  }, Ht = (e) => {
2523
2519
  let t = !1;
2524
2520
  return S.listen((n) => {
2525
- t || n.status === "idle" && (t = !0, K(e, { trigger_type: "inactivity" }));
2521
+ t || n.status === "idle" && (t = !0, J(e, { trigger_type: "inactivity" }));
2526
2522
  });
2527
2523
  }, Ut = (e, t) => {
2528
- let n = x(11), r = t === void 0 ? !0 : t, { triggers: i, id: a } = e, o = ze(C), s;
2524
+ let n = x(11), r = t === void 0 ? !0 : t, { triggers: i, id: a } = e, o = Re(C), s;
2529
2525
  n[0] === Symbol.for("react.memo_cache_sentinel") ? (s = [], n[0] = s) : s = n[0];
2530
- let c = re(s), l;
2526
+ let c = ne(s), l;
2531
2527
  n[1] !== r || n[2] !== o || n[3] !== e || n[4] !== i ? (l = () => {
2532
2528
  if (!r || !o || !i) return;
2533
2529
  let t = [];
@@ -2539,7 +2535,7 @@ var et = oe([L, I], (e, t) => ({
2539
2535
  let n = Vt(i.scroll_depth.percent, e);
2540
2536
  n && t.push(n);
2541
2537
  }
2542
- return i.exit_intent.enabled && t.push(zt(() => K(e, { trigger_type: "exit_intent" }))), i.inactivity.enabled && t.push(Ht(e)), c.current = t, () => {
2538
+ return i.exit_intent.enabled && t.push(zt(() => J(e, { trigger_type: "exit_intent" }))), i.inactivity.enabled && t.push(Ht(e)), c.current = t, () => {
2543
2539
  t.forEach(Wt), c.current = [];
2544
2540
  };
2545
2541
  }, n[1] = r, n[2] = o, n[3] = e, n[4] = i, n[5] = l) : l = n[5];
@@ -2584,7 +2580,7 @@ var Gt = (e, t) => {
2584
2580
  let o = e.referrer?.exclude ?? [];
2585
2581
  return !(o.length > 0 && n && o.some((e) => Kt(e, n)));
2586
2582
  }, Jt = (e) => {
2587
- let t = x(4), { pageId: n } = e, { popup: r } = _t(), i;
2583
+ let t = x(4), { pageId: n } = e, { popup: r } = mt(), i;
2588
2584
  bb0: {
2589
2585
  if (!r.target) {
2590
2586
  i = !0;
@@ -2607,11 +2603,11 @@ var Gt = (e, t) => {
2607
2603
  let a = i;
2608
2604
  if (Ut(r, a), !a) return null;
2609
2605
  let o;
2610
- return t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ N(Mt, {}), t[3] = o) : o = t[3], o;
2606
+ return t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ P(Mt, {}), t[3] = o) : o = t[3], o;
2611
2607
  }, Yt = (e) => {
2612
2608
  let t = x(16), { popups: n, pageId: r } = e, i = D(), a, o;
2613
2609
  t[0] === n ? (a = t[1], o = t[2]) : (a = () => {
2614
- z(n), V(!1);
2610
+ B(n), H(!1);
2615
2611
  }, o = [n], t[0] = n, t[1] = a, t[2] = o), j(a, o);
2616
2612
  let s;
2617
2613
  t[3] === i ? s = t[4] : (s = (e, t) => {
@@ -2643,18 +2639,18 @@ var Gt = (e, t) => {
2643
2639
  let d = u, f;
2644
2640
  if (t[7] !== d || t[8] !== r || t[9] !== n) {
2645
2641
  let e;
2646
- t[11] !== d || t[12] !== r ? (e = (e) => /* @__PURE__ */ N(jt, {
2642
+ t[11] !== d || t[12] !== r ? (e = (e) => /* @__PURE__ */ P(jt, {
2647
2643
  popupTheme: e.theme,
2648
2644
  siteTheme: e.site?.theme,
2649
- children: /* @__PURE__ */ N(gt, {
2645
+ children: /* @__PURE__ */ P(pt, {
2650
2646
  popup: e,
2651
2647
  callbacks: d,
2652
- children: /* @__PURE__ */ N(Jt, { pageId: r })
2648
+ children: /* @__PURE__ */ P(Jt, { pageId: r })
2653
2649
  })
2654
2650
  }, e.id), t[11] = d, t[12] = r, t[13] = e) : e = t[13], f = n.map(e), t[7] = d, t[8] = r, t[9] = n, t[10] = f;
2655
2651
  } else f = t[10];
2656
2652
  let p;
2657
- return t[14] === f ? p = t[15] : (p = /* @__PURE__ */ N(se, { children: f }), t[14] = f, t[15] = p), p;
2653
+ return t[14] === f ? p = t[15] : (p = /* @__PURE__ */ P(oe, { children: f }), t[14] = f, t[15] = p), p;
2658
2654
  };
2659
2655
  function Xt(e) {
2660
2656
  return {
@@ -2664,6 +2660,6 @@ function Xt(e) {
2664
2660
  placement: e.placement
2665
2661
  };
2666
2662
  }
2667
- var Zt = /* @__PURE__ */ Ye({ PopupRenderer: () => Yt });
2663
+ var Zt = /* @__PURE__ */ Je({ PopupRenderer: () => Yt });
2668
2664
  //#endregion
2669
- export { Ge as _, qe as a, z as c, Z as d, Y as f, Ke as g, jt as h, G as i, X as l, dt as m, B as n, L as o, $ as p, J as r, V as s, R as t, q as u, Ve as v };
2665
+ export { We as _, Y as a, V as c, Z as d, ct as f, Ge as g, z as h, H as i, X as l, dt as m, R as n, q as o, $ as p, B as r, Ke as s, jt as t, ot as u, Be as v };