@picked/client 0.0.116-next.3 → 0.0.116-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -3,10 +3,10 @@ import { n as t, t as n } from "../rules-logic-9hh8y_1b.js";
3
3
  import { t as r } from "../logger-DMN6TxJJ.js";
4
4
  import { a as i, c as a, d as o, f as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _ } from "../supports-CO9bJGNl.js";
5
5
  import { a as v, i as y, r as ee, s as b, t as x } from "../dom-v6ulxr_z.js";
6
- import { d as S, l as C, n as w, r as T, u as E } from "../experience-instance-IOIdP1Rd.js";
7
- import { apply as D } from "./logic-engine.js";
8
- import { i as te, n as O, r as ne, t as re } from "../storage-1MW3-_As.js";
9
- import { a as ie, c as ae, l as oe, n as se, o as ce, r as le, s as ue, t as de } from "../preview-unavailable-DC2ldUbl.js";
6
+ import { d as S, l as C, n as w, r as te, u as T } from "../experience-instance-IOIdP1Rd.js";
7
+ import { apply as E } from "./logic-engine.js";
8
+ import { i as ne, n as D, r as re, t as ie } from "../storage-1MW3-_As.js";
9
+ import { a as ae, c as oe, l as se, n as ce, o as le, r as ue, s as de, t as O } from "../preview-unavailable-BYQmVATx.js";
10
10
  import { t as fe } from "../id-Bo4RBeOs.js";
11
11
  import { n as pe, r as me, t as he } from "../inert-script-report-B_bMPRzp.js";
12
12
  import { attach as k, clearNode as ge, combine as A, createApi as j, createDomain as M, createEffect as N, createEvent as P, createNode as _e, createStore as F, is as ve, sample as I, withRegion as ye } from "effector";
@@ -24,7 +24,7 @@ var z = M("experience"), be = L(({ client: e, experience: r }) => {
24
24
  targetSelectors: e.targets,
25
25
  initializeOpenLogic: e.initializeOpen
26
26
  })), s = A(i, e.components.listStore, (e, t) => (e.componentName ? t.find((t) => t.name === e.componentName) : void 0) || t.find((t) => t.name === `experience:${e.id}`) || t.find((e) => e.name === "experience"), { skipVoid: !1 }), c = A(i, e.steps.indexStore, e.conditions.indexStore, (e, t, n) => {
27
- let r = e.nodes.filter(S).map((e) => t[e.stepId]).filter((e) => e !== void 0), i = e.nodes.filter(E).map((e) => n[e.conditionId]).filter((e) => e !== void 0);
27
+ let r = e.nodes.filter(S).map((e) => t[e.stepId]).filter((e) => e !== void 0), i = e.nodes.filter(T).map((e) => n[e.conditionId]).filter((e) => e !== void 0);
28
28
  return {
29
29
  steps: r,
30
30
  nodes: e.nodes,
@@ -319,22 +319,22 @@ function ze(e, t, n) {
319
319
  return new Proxy(Object.create(null), { get(r, i) {
320
320
  if (typeof i != "string") return;
321
321
  let a = e.find((e) => e.key === i);
322
- if (a !== void 0) return async () => !n.has(i) && await D(a.logic, {
322
+ if (a !== void 0) return async () => !n.has(i) && await E(a.logic, {
323
323
  ...t,
324
324
  conditions: ze(e, t, new Set(n).add(i))
325
325
  }) === !0;
326
326
  } });
327
327
  }
328
- function Be(e, t = [], n = /* @__PURE__ */ new WeakSet()) {
328
+ function B(e, t = [], n = /* @__PURE__ */ new WeakSet()) {
329
329
  if (e == null || typeof e == "string" || typeof e == "number" || typeof e == "boolean") return !0;
330
330
  if (typeof e != "object" || t.includes(e)) return !1;
331
331
  if (n.has(e)) return !0;
332
332
  let r = Object.getPrototypeOf(e);
333
333
  if (!Array.isArray(e) && r !== Object.prototype && r !== null) return !1;
334
334
  let i = [...t, e];
335
- return Object.values(e).every((e) => Be(e, i, n)) ? (n.add(e), !0) : !1;
335
+ return Object.values(e).every((e) => B(e, i, n)) ? (n.add(e), !0) : !1;
336
336
  }
337
- var Ve = L(({ client: e }) => k({
337
+ var Be = L(({ client: e }) => k({
338
338
  source: {
339
339
  stateSnapshot: e.stateSnapshotStore,
340
340
  predicates: e.predicates.listStore,
@@ -352,7 +352,7 @@ var Ve = L(({ client: e }) => k({
352
352
  ...e,
353
353
  args: t
354
354
  }, null);
355
- return Be(r) ? r : void 0;
355
+ return B(r) ? r : void 0;
356
356
  }, t), {}), u = r.reduce((e, t) => (e[t.id] = async () => {
357
357
  let { bucket: e } = await t.getBucket();
358
358
  return e;
@@ -377,27 +377,27 @@ var Ve = L(({ client: e }) => k({
377
377
  ...d,
378
378
  conditions: ze(a, d, /* @__PURE__ */ new Set())
379
379
  };
380
- return await D(o, f);
380
+ return await E(o, f);
381
381
  }
382
382
  }));
383
- function He(e) {
384
- return R(Ve, e);
383
+ function Ve(e) {
384
+ return R(Be, e);
385
385
  }
386
386
  //#endregion
387
387
  //#region src/lifecycle/lifecycle.ts
388
- var B = M("lifecycle"), Ue = L(({ client: e }) => {
389
- let t = B.store(!1), r = F(void 0, {
388
+ var V = M("lifecycle"), He = L(({ client: e }) => {
389
+ let t = V.store(!1), r = F(void 0, {
390
390
  skipVoid: !1,
391
- domain: B
391
+ domain: V
392
392
  }), i = F(void 0, {
393
393
  skipVoid: !1,
394
- domain: B
395
- }), a = B.store("idle"), o = B.store([]), s = F(void 0, {
394
+ domain: V
395
+ }), a = V.store("idle"), o = V.store([]), s = F(void 0, {
396
396
  skipVoid: !1,
397
- domain: B
397
+ domain: V
398
398
  }), l = F(void 0, {
399
399
  skipVoid: !1,
400
- domain: B
400
+ domain: V
401
401
  }), u = P(), d = P(), f = P(), p = P(), m = P(), h = P();
402
402
  o.on(p, (e, t) => [...e, t]), s.on(m, (e, t) => t), l.on(h, (e, t) => t), t.on(d, () => !0);
403
403
  let g = N(async () => {
@@ -468,24 +468,24 @@ var B = M("lifecycle"), Ue = L(({ client: e }) => {
468
468
  fn: () => ({ type: "initialize" }),
469
469
  target: e.eventBus
470
470
  });
471
- let C = F(!1).on(g.done, () => !0), w = F(!1).on(f, () => !0), T = F(!1).on(v.done, () => !0), E = A(r, i, (e, t) => e === !0 && t === !0);
471
+ let C = F(!1).on(g.done, () => !0), w = F(!1).on(f, () => !0), te = F(!1).on(v.done, () => !0), T = A(r, i, (e, t) => e === !0 && t === !0);
472
472
  I({
473
473
  clock: f,
474
- source: E,
474
+ source: T,
475
475
  filter: (e) => e,
476
476
  fn: () => void 0,
477
477
  target: _
478
478
  });
479
- let D = A(C, w, E, (e, t, n) => e && t && n);
479
+ let E = A(C, w, T, (e, t, n) => e && t && n);
480
480
  I({
481
- clock: D,
481
+ clock: E,
482
482
  filter: (e) => e,
483
483
  fn: () => void 0,
484
484
  target: v
485
485
  });
486
- let te = A(C, w, E, T, (e, t, n, r) => e && t && (!n || r));
486
+ let ne = A(C, w, T, te, (e, t, n, r) => e && t && (!n || r));
487
487
  return I({
488
- clock: te,
488
+ clock: ne,
489
489
  filter: (e) => e,
490
490
  fn: () => void 0,
491
491
  target: d
@@ -529,13 +529,13 @@ var B = M("lifecycle"), Ue = L(({ client: e }) => {
529
529
  setCondition: h
530
530
  };
531
531
  });
532
- function We(e) {
533
- return R(Ue, e);
532
+ function Ue(e) {
533
+ return R(He, e);
534
534
  }
535
535
  //#endregion
536
536
  //#region src/entities/predicate/predicate.ts
537
- var Ge = M("predicate"), Ke = L(({ client: e }) => {
538
- let t = Ge.store({}), n = j(t, { register(e, t) {
537
+ var We = M("predicate"), Ge = L(({ client: e }) => {
538
+ let t = We.store({}), n = j(t, { register(e, t) {
539
539
  return {
540
540
  ...e,
541
541
  [t.name]: {
@@ -593,16 +593,16 @@ var Ge = M("predicate"), Ke = L(({ client: e }) => {
593
593
  getEvokablePredicate: s
594
594
  };
595
595
  });
596
- function qe(e) {
597
- return R(Ke, e);
596
+ function Ke(e) {
597
+ return R(Ge, e);
598
598
  }
599
- var Je = (e, t, n) => {
599
+ var qe = (e, t, n) => {
600
600
  n.register({
601
601
  name: e,
602
602
  predicate: t
603
603
  });
604
- }, V = M("history");
605
- function H(e, t) {
604
+ }, H = M("history");
605
+ function U(e, t) {
606
606
  return {
607
607
  id: fe(`history-entry-${Date.now()}-${Math.random()}}`),
608
608
  node: t,
@@ -610,9 +610,9 @@ function H(e, t) {
610
610
  experienceId: e
611
611
  };
612
612
  }
613
- var Ye = L(() => {
614
- let e = V.store({ entries: [] }), t = V.event(), n = V.event(), r = V.event(), i = V.event();
615
- e.on(t, (e, t) => ({ entries: [...e.entries, H(t.experienceId, t.node)] })), e.on(n, (e, t) => ({ entries: [...e.entries.slice(0, -1), H(t.experienceId, t.node)] })), e.on(i, (e, t) => t);
613
+ var Je = L(() => {
614
+ let e = H.store({ entries: [] }), t = H.event(), n = H.event(), r = H.event(), i = H.event();
615
+ e.on(t, (e, t) => ({ entries: [...e.entries, U(t.experienceId, t.node)] })), e.on(n, (e, t) => ({ entries: [...e.entries.slice(0, -1), U(t.experienceId, t.node)] })), e.on(i, (e, t) => t);
616
616
  function a(e, t) {
617
617
  let n = {
618
618
  lastStepIndex: -1,
@@ -644,22 +644,22 @@ var Ye = L(() => {
644
644
  entriesStore: e.map((e) => e.entries)
645
645
  };
646
646
  });
647
- function Xe() {
648
- return R(Ye);
647
+ function Ye() {
648
+ return R(Je);
649
649
  }
650
650
  //#endregion
651
651
  //#region src/utils/events.ts
652
- var Ze = 0, Qe = (e) => {
652
+ var Xe = 0, Ze = (e) => {
653
653
  let t = F([]);
654
654
  return t.on(e, (e, t) => [...e, {
655
- id: Ze++,
655
+ id: Xe++,
656
656
  at: /* @__PURE__ */ new Date(),
657
657
  payload: t
658
658
  }]), t;
659
659
  };
660
660
  //#endregion
661
661
  //#region src/entities/field/policies.ts
662
- function U(e) {
662
+ function W(e) {
663
663
  let { doNotTrackValue: t, doNotStoreValue: n } = e ?? {}, r = e?.trackValue ?? t === !1, i = e?.storeValue ?? n === !1;
664
664
  return {
665
665
  trackValue: r,
@@ -670,10 +670,10 @@ function U(e) {
670
670
  }
671
671
  //#endregion
672
672
  //#region src/entities/field/field.ts
673
- var $e = M("field"), et = L(() => {
674
- let e = $e.store({}), t = j(e, {
673
+ var Qe = M("field"), $e = L(() => {
674
+ let e = Qe.store({}), t = j(e, {
675
675
  register(e, t) {
676
- let n = Object.assign({}, t.field, { policies: U(t.field.policies) });
676
+ let n = Object.assign({}, t.field, { policies: W(t.field.policies) });
677
677
  return {
678
678
  ...e,
679
679
  [n.id]: n
@@ -685,7 +685,7 @@ var $e = M("field"), et = L(() => {
685
685
  let r = Object.assign({}, n, t.updates);
686
686
  return {
687
687
  ...e,
688
- [n.id]: Object.assign({}, r, { policies: U(r.policies) })
688
+ [n.id]: Object.assign({}, r, { policies: W(r.policies) })
689
689
  };
690
690
  }
691
691
  });
@@ -722,13 +722,13 @@ var $e = M("field"), et = L(() => {
722
722
  getByName: c
723
723
  };
724
724
  });
725
- function tt() {
726
- return R(et);
725
+ function et() {
726
+ return R($e);
727
727
  }
728
728
  //#endregion
729
729
  //#region src/entities/step/step.ts
730
- var nt = M("step"), rt = L(() => {
731
- let e = nt.store({}), t = j(e, { register(e, t) {
730
+ var tt = M("step"), nt = L(() => {
731
+ let e = tt.store({}), t = j(e, { register(e, t) {
732
732
  return {
733
733
  ...e,
734
734
  [t.step.id]: t.step
@@ -752,16 +752,16 @@ var nt = M("step"), rt = L(() => {
752
752
  indexStore: e
753
753
  };
754
754
  });
755
- function it() {
756
- return R(rt);
755
+ function rt() {
756
+ return R(nt);
757
757
  }
758
- function at(e, t) {
758
+ function it(e, t) {
759
759
  t.register(e);
760
760
  }
761
761
  //#endregion
762
762
  //#region src/entities/content/content.ts
763
- var ot = M("content"), st = L(() => {
764
- let e = ot.store({}), t = j(e, {
763
+ var at = M("content"), ot = L(() => {
764
+ let e = at.store({}), t = j(e, {
765
765
  register(e, t) {
766
766
  return {
767
767
  ...e,
@@ -802,34 +802,34 @@ var ot = M("content"), st = L(() => {
802
802
  indexStore: e
803
803
  };
804
804
  });
805
- function ct() {
806
- return R(st);
805
+ function st() {
806
+ return R(ot);
807
807
  }
808
- function lt(e, t) {
808
+ function ct(e, t) {
809
809
  t.register(e);
810
810
  }
811
811
  //#endregion
812
812
  //#region src/entities/action/action.ts
813
- var ut = M("action"), W = {
813
+ var lt = M("action"), G = {
814
814
  status: "idle",
815
815
  response: void 0,
816
816
  error: void 0
817
- }, dt = {
818
- ...W,
817
+ }, ut = {
818
+ ...G,
819
819
  status: "running"
820
- }, G = {};
821
- function K(e) {
822
- let t = /* @__PURE__ */ new WeakMap(), n = (e, n) => t.get(n?.experience ?? G)?.get(e);
820
+ }, K = {};
821
+ function q(e) {
822
+ let t = /* @__PURE__ */ new WeakMap(), n = (e, n) => t.get(n?.experience ?? K)?.get(e);
823
823
  return Object.assign((r, i) => {
824
824
  let a = n(r, i);
825
825
  if (a === void 0) {
826
- let n = i?.experience ?? G;
826
+ let n = i?.experience ?? K;
827
827
  a = e(r, i), t.set(n, (t.get(n) ?? /* @__PURE__ */ new Map()).set(r, a));
828
828
  }
829
829
  return a;
830
830
  }, { find: n });
831
831
  }
832
- function ft(e) {
832
+ function dt(e) {
833
833
  return e.status === "succeeded" ? {
834
834
  status: "succeeded",
835
835
  response: e.response,
@@ -840,8 +840,8 @@ function ft(e) {
840
840
  error: e.error
841
841
  };
842
842
  }
843
- var pt = L(({ client: e }) => {
844
- let t = ut.store({}), n = j(t, {
843
+ var ft = L(({ client: e }) => {
844
+ let t = lt.store({}), n = j(t, {
845
845
  register(e, t) {
846
846
  return {
847
847
  ...e,
@@ -889,7 +889,7 @@ var pt = L(({ client: e }) => {
889
889
  }
890
890
  let l = /* @__PURE__ */ new WeakMap(), u = [];
891
891
  function d(e, t, n) {
892
- let r = e?.experience ?? G, i = l.get(r) ?? {
892
+ let r = e?.experience ?? K, i = l.get(r) ?? {
893
893
  region: !e || u.includes(e.experience) ? _e() : null,
894
894
  builders: [],
895
895
  unlinkers: []
@@ -914,7 +914,7 @@ var pt = L(({ client: e }) => {
914
914
  }
915
915
  u = e;
916
916
  });
917
- let f = K((t, n) => {
917
+ let f = q((t, n) => {
918
918
  let r = P(), i = F(c(t, n), { skipVoid: !1 }).on(r, (e, t) => t);
919
919
  return d(n, () => {
920
920
  let i = A(s(t), e.stateSnapshotStore, (e, r) => c(t, n, r));
@@ -929,7 +929,7 @@ var pt = L(({ client: e }) => {
929
929
  async function p(n, r = {}) {
930
930
  let i = t.getState()[n]?.action;
931
931
  if (!i) throw Error(`Action '${n}' is not registered`);
932
- let a = r.experience ? { experience: r.experience } : null, o = e.stateSnapshotStore.getState(), s = r.args ?? [], c = mt(r.signal, r.timeoutMs);
932
+ let a = r.experience ? { experience: r.experience } : null, o = e.stateSnapshotStore.getState(), s = r.args ?? [], c = pt(r.signal, r.timeoutMs);
933
933
  return c ? (c.throwIfAborted(), new Promise((e, t) => {
934
934
  let n = () => {
935
935
  t(c.reason);
@@ -946,7 +946,7 @@ var pt = L(({ client: e }) => {
946
946
  args: s
947
947
  }, a);
948
948
  }
949
- let m = K((e, t) => {
949
+ let m = q((e, t) => {
950
950
  let n = P(), r = P(), i = 0, a = async (...a) => {
951
951
  i += 1;
952
952
  let o = i;
@@ -971,8 +971,8 @@ var pt = L(({ client: e }) => {
971
971
  ...n,
972
972
  run: a
973
973
  });
974
- return F(o(W)).on(n, () => o(dt)).on(r, (e, t) => o(ft(t)));
975
- }), h = K((n, r) => {
974
+ return F(o(G)).on(n, () => o(ut)).on(r, (e, t) => o(dt(t)));
975
+ }), h = q((n, r) => {
976
976
  let i = f(n, r), a = F(void 0, { skipVoid: !1 }), o = 0, s = !1, l = !1, u = () => [t.getState()[n]?.action, e.stateSnapshotStore.getState()], d = [], p = N(async (e) => {
977
977
  o += 1;
978
978
  let t = o;
@@ -1039,14 +1039,14 @@ var pt = L(({ client: e }) => {
1039
1039
  isPublished: y
1040
1040
  };
1041
1041
  });
1042
- function mt(e, t) {
1042
+ function pt(e, t) {
1043
1043
  let n = t === void 0 ? void 0 : AbortSignal.timeout(t);
1044
1044
  return e && n ? AbortSignal.any([e, n]) : e ?? n;
1045
1045
  }
1046
- function ht(e) {
1047
- return R(pt, e);
1046
+ function mt(e) {
1047
+ return R(ft, e);
1048
1048
  }
1049
- var gt = (e, t, n) => {
1049
+ var ht = (e, t, n) => {
1050
1050
  n.register({
1051
1051
  key: e,
1052
1052
  action: t
@@ -1054,7 +1054,7 @@ var gt = (e, t, n) => {
1054
1054
  };
1055
1055
  //#endregion
1056
1056
  //#region src/entities/response/response-validation.ts
1057
- function q(e, t, n, r) {
1057
+ function J(e, t, n, r) {
1058
1058
  return {
1059
1059
  fieldKey: e.key,
1060
1060
  userMessage: n,
@@ -1062,62 +1062,62 @@ function q(e, t, n, r) {
1062
1062
  value: t
1063
1063
  };
1064
1064
  }
1065
- function J(e) {
1065
+ function Y(e) {
1066
1066
  return e === null || e === "" || Array.isArray(e) && !e.length;
1067
1067
  }
1068
- function _t(e) {
1068
+ function gt(e) {
1069
1069
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
1070
1070
  }
1071
- function vt(e) {
1071
+ function _t(e) {
1072
1072
  try {
1073
1073
  return JSON.stringify(e), !0;
1074
1074
  } catch {
1075
1075
  return !1;
1076
1076
  }
1077
1077
  }
1078
- function yt(e, t) {
1078
+ function vt(e, t) {
1079
1079
  return t.find((t) => t.key === e) ?? null;
1080
1080
  }
1081
- function bt(e, t) {
1081
+ function yt(e, t) {
1082
1082
  return e.multiple && (typeof t == "string" || typeof t == "number" || typeof t == "boolean") ? [t] : t;
1083
1083
  }
1084
- function xt(e, t) {
1085
- if (e.type !== "object" || J(t)) return null;
1084
+ function bt(e, t) {
1085
+ if (e.type !== "object" || Y(t)) return null;
1086
1086
  if (e.multiple) {
1087
- if (!Array.isArray(t)) return q(e, t, "This field expects multiple values", "Field expects an array of objects.");
1087
+ if (!Array.isArray(t)) return J(e, t, "This field expects multiple values", "Field expects an array of objects.");
1088
1088
  for (let n of t) {
1089
- if (typeof n != "object" || !n) return q(e, t, "This field expects object values", "Field expects an array of objects, but received non-object value.");
1090
- if (!vt(n)) return q(e, t, "This field contains non-serializable data", "Field value contains non-JSON-serializable data (functions, circular references, etc.).");
1089
+ if (typeof n != "object" || !n) return J(e, t, "This field expects object values", "Field expects an array of objects, but received non-object value.");
1090
+ if (!_t(n)) return J(e, t, "This field contains non-serializable data", "Field value contains non-JSON-serializable data (functions, circular references, etc.).");
1091
1091
  }
1092
1092
  return null;
1093
1093
  }
1094
- return Array.isArray(t) ? q(e, t, "This field expects a single value", "Field expects a single object, not an array.") : typeof t != "object" || !t ? q(e, t, "This field expects an object value", "Field expects an object value.") : vt(t) ? null : q(e, t, "This field contains non-serializable data", "Field value contains non-JSON-serializable data (functions, circular references, etc.).");
1094
+ return Array.isArray(t) ? J(e, t, "This field expects a single value", "Field expects a single object, not an array.") : typeof t != "object" || !t ? J(e, t, "This field expects an object value", "Field expects an object value.") : _t(t) ? null : J(e, t, "This field contains non-serializable data", "Field value contains non-JSON-serializable data (functions, circular references, etc.).");
1095
1095
  }
1096
- function St(e, t) {
1097
- if (J(t) || !Array.isArray(e.options) || e.options.length === 0) return null;
1096
+ function xt(e, t) {
1097
+ if (Y(t) || !Array.isArray(e.options) || e.options.length === 0) return null;
1098
1098
  let n = Array.isArray(t) ? t : [t];
1099
1099
  if (e.type === "object") {
1100
1100
  let r = new Set(e.options.map((e) => JSON.stringify(e.value)));
1101
- return n.every((e) => r.has(JSON.stringify(e))) ? null : q(e, t, "This field expects a valid option", "Field expects a valid option from the defined choices.");
1101
+ return n.every((e) => r.has(JSON.stringify(e))) ? null : J(e, t, "This field expects a valid option", "Field expects a valid option from the defined choices.");
1102
1102
  }
1103
1103
  let r = e.options.map((e) => e.value);
1104
- return n.every((e) => !_t(e) || e === null ? !1 : r.includes(e)) ? null : q(e, t, "This field expects a valid option", `Field expects a valid option. Valid options are: ${r.join(", ")}`);
1104
+ return n.every((e) => !gt(e) || e === null ? !1 : r.includes(e)) ? null : J(e, t, "This field expects a valid option", `Field expects a valid option. Valid options are: ${r.join(", ")}`);
1105
1105
  }
1106
- async function Ct(t, n, r, i) {
1107
- if (n.validation && !e(n.validation) && !J(r)) {
1106
+ async function St(t, n, r, i) {
1107
+ if (n.validation && !e(n.validation) && !Y(r)) {
1108
1108
  let e = i ? {
1109
1109
  $input: r,
1110
1110
  responses: i
1111
1111
  } : { $input: r }, a = await t(n.validation, e);
1112
- if (typeof a == "string") return q(n, r, a, `Field validation resulted in an error: ${a}.`);
1113
- if (a === !1) return q(n, r, "This field is invalid", "Field validation resulted in an unspecified error.");
1112
+ if (typeof a == "string") return J(n, r, a, `Field validation resulted in an error: ${a}.`);
1113
+ if (a === !1) return J(n, r, "This field is invalid", "Field validation resulted in an unspecified error.");
1114
1114
  }
1115
- return n.required && J(r) ? q(n, r, "This field is required", "Field is required.") : !n.multiple && Array.isArray(r) && r.length > 1 ? q(n, r, "This field expects a single response", "Field expects a single response.") : null;
1115
+ return n.required && Y(r) ? J(n, r, "This field is required", "Field is required.") : !n.multiple && Array.isArray(r) && r.length > 1 ? J(n, r, "This field expects a single response", "Field expects a single response.") : null;
1116
1116
  }
1117
1117
  //#endregion
1118
1118
  //#region src/entities/response/response.ts
1119
- var wt = M("response"), Tt = L(({ client: e }) => {
1120
- let t = wt.store({}), r = P(), i = P(), a = j(t, {
1119
+ var Ct = M("response"), wt = L(({ client: e }) => {
1120
+ let t = Ct.store({}), r = P(), i = P(), a = j(t, {
1121
1121
  register(e, t) {
1122
1122
  return {
1123
1123
  ...e,
@@ -1156,7 +1156,7 @@ var wt = M("response"), Tt = L(({ client: e }) => {
1156
1156
  ...t,
1157
1157
  ...n
1158
1158
  }, o = Object.entries(n), c = await Promise.allSettled(o.map(async ([t, n]) => {
1159
- let o = yt(t, e);
1159
+ let o = vt(t, e);
1160
1160
  if (!o) {
1161
1161
  r.push({
1162
1162
  fieldKey: t,
@@ -1166,17 +1166,17 @@ var wt = M("response"), Tt = L(({ client: e }) => {
1166
1166
  });
1167
1167
  return;
1168
1168
  }
1169
- let c = bt(o, n), l = await Ct(s, o, c, a);
1169
+ let c = yt(o, n), l = await St(s, o, c, a);
1170
1170
  if (l) {
1171
1171
  r.push(l);
1172
1172
  return;
1173
1173
  }
1174
- let u = xt(o, c);
1174
+ let u = bt(o, c);
1175
1175
  if (u) {
1176
1176
  r.push(u);
1177
1177
  return;
1178
1178
  }
1179
- let d = St(o, c);
1179
+ let d = xt(o, c);
1180
1180
  d ? r.push(d) : i[o.key] = n;
1181
1181
  }));
1182
1182
  for (let [e, t] of c.entries()) {
@@ -1251,13 +1251,13 @@ var wt = M("response"), Tt = L(({ client: e }) => {
1251
1251
  getByFieldName: _
1252
1252
  };
1253
1253
  });
1254
- function Et(e) {
1255
- return R(Tt, e);
1254
+ function Tt(e) {
1255
+ return R(wt, e);
1256
1256
  }
1257
1257
  //#endregion
1258
1258
  //#region src/entities/condition/condition.ts
1259
- var Dt = M("condition"), Ot = L(() => {
1260
- let e = Dt.store({}), t = j(e, { register(e, t) {
1259
+ var Et = M("condition"), Dt = L(() => {
1260
+ let e = Et.store({}), t = j(e, { register(e, t) {
1261
1261
  return {
1262
1262
  ...e,
1263
1263
  [t.condition.id]: t.condition
@@ -1281,12 +1281,12 @@ var Dt = M("condition"), Ot = L(() => {
1281
1281
  indexStore: e
1282
1282
  };
1283
1283
  });
1284
- function kt() {
1285
- return R(Ot);
1284
+ function Ot() {
1285
+ return R(Dt);
1286
1286
  }
1287
1287
  //#endregion
1288
1288
  //#region src/utils/api-url.ts
1289
- function At() {
1289
+ function kt() {
1290
1290
  if (c()) {
1291
1291
  let e = [
1292
1292
  document.currentScript,
@@ -1301,25 +1301,25 @@ function At() {
1301
1301
  }
1302
1302
  //#endregion
1303
1303
  //#region src/utils/user-timing.ts
1304
- var jt = "picked:start:begin", Mt = "picked:start";
1305
- function Nt() {
1304
+ var At = "picked:start:begin", jt = "picked:start";
1305
+ function Mt() {
1306
1306
  try {
1307
1307
  return s() && !!p.window && "performance" in p;
1308
1308
  } catch {
1309
1309
  return !1;
1310
1310
  }
1311
1311
  }
1312
- function Pt() {
1312
+ function Nt() {
1313
1313
  let e = null, t = null;
1314
1314
  return {
1315
1315
  markBegin: () => {
1316
- if (Nt()) try {
1317
- e = performance.mark(jt).startTime;
1316
+ if (Mt()) try {
1317
+ e = performance.mark(At).startTime;
1318
1318
  } catch {}
1319
1319
  },
1320
1320
  measure: () => {
1321
- if (Nt() && e !== null) try {
1322
- t = performance.measure(Mt, { start: e });
1321
+ if (Mt() && e !== null) try {
1322
+ t = performance.measure(jt, { start: e });
1323
1323
  } catch {}
1324
1324
  },
1325
1325
  get startMeasure() {
@@ -1329,7 +1329,7 @@ function Pt() {
1329
1329
  }
1330
1330
  //#endregion
1331
1331
  //#region src/utils/client-telemetry.ts
1332
- function Ft() {
1332
+ function Pt() {
1333
1333
  let e = null;
1334
1334
  return {
1335
1335
  observeDeliveryAPIRequests: (t) => {
@@ -1342,13 +1342,13 @@ function Ft() {
1342
1342
  }
1343
1343
  //#endregion
1344
1344
  //#region src/entities/session/session.ts
1345
- var Y = re("session", "global");
1345
+ var Ft = ie("session", "global");
1346
1346
  function It() {
1347
1347
  return m() ? crypto.randomUUID() : `${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 15)}-${Math.random().toString(36).substring(2, 15)}-${Math.random().toString(36).substring(2, 15)}`;
1348
1348
  }
1349
1349
  function Lt() {
1350
1350
  if (!h()) return null;
1351
- let e = O.get(Y);
1351
+ let e = D.get(Ft);
1352
1352
  if (!e.isSet()) return null;
1353
1353
  try {
1354
1354
  return e.json();
@@ -1383,7 +1383,7 @@ var Rt = L(() => {
1383
1383
  source: n,
1384
1384
  effect: (e) => {
1385
1385
  if (h()) try {
1386
- O.get(Y).set(e);
1386
+ D.get(Ft).set(e);
1387
1387
  } catch {}
1388
1388
  }
1389
1389
  });
@@ -1401,23 +1401,32 @@ function zt() {
1401
1401
  return R(Rt, void 0);
1402
1402
  }
1403
1403
  //#endregion
1404
- //#region src/utils/picked-config.ts
1404
+ //#region src/entities/workspace/workspace.ts
1405
1405
  function Bt() {
1406
- if (s()) return globalThis.window.pickedConfig;
1406
+ let e = P();
1407
+ return {
1408
+ store: F(null).on(e, (e, t) => t),
1409
+ set: e
1410
+ };
1407
1411
  }
1412
+ //#endregion
1413
+ //#region src/utils/picked-config.ts
1408
1414
  function Vt() {
1409
- if (s()) return Bt()?.projectId;
1415
+ if (s()) return globalThis.window.pickedConfig;
1410
1416
  }
1411
1417
  function Ht() {
1418
+ if (s()) return Vt()?.projectId;
1419
+ }
1420
+ function Ut() {
1412
1421
  if (!c()) return;
1413
1422
  let e = document.getElementById("picked_script") || document.querySelector("script#picked") || document.getElementById("cvly");
1414
1423
  if (e) return e.dataset.projectid || e.getAttribute("project-id") || void 0;
1415
1424
  }
1416
- function Ut(e) {
1425
+ function Wt(e) {
1417
1426
  if (e.projectId) return e.projectId;
1418
- let t = Vt();
1427
+ let t = Ht();
1419
1428
  if (t) return t;
1420
- let n = Ht();
1429
+ let n = Ut();
1421
1430
  if (n) return n;
1422
1431
  throw Error("projectId is required. You can provide it via one of:\n (1) createClient({ projectId }) options;\n (2) window.pickedConfig = { projectId };\n (3) a <script> tag with id 'picked_script', 'picked', or 'cvly' that includes a data-projectid (or project-id) attribute.");
1423
1432
  }
@@ -1426,7 +1435,7 @@ function Ut(e) {
1426
1435
  function X(e) {
1427
1436
  return e == null || e === "" || Number.isNaN(e);
1428
1437
  }
1429
- var Wt = {
1438
+ var Gt = {
1430
1439
  default: (e, t) => X(e) ? String(t ?? "") : String(e),
1431
1440
  append: (e, t) => t && !X(e) ? `${e} ${t}` : e,
1432
1441
  prepend: (e, t) => t && !X(e) ? `${t} ${e}` : e,
@@ -1447,24 +1456,24 @@ var Wt = {
1447
1456
  return e instanceof Set ? t.format(Array.from(e).map(String)) : e;
1448
1457
  }
1449
1458
  };
1450
- function Gt(e) {
1459
+ function Kt(e) {
1451
1460
  return typeof e == "object" && !!e;
1452
1461
  }
1453
- function Kt(e, t) {
1462
+ function qt(e, t) {
1454
1463
  let n = t;
1455
- for (let t of e.split(".")) if (Gt(n) && t in n) n = n[t];
1464
+ for (let t of e.split(".")) if (Kt(n) && t in n) n = n[t];
1456
1465
  else return;
1457
1466
  return typeof n == "function" ? n() : n;
1458
1467
  }
1459
- function qt(e, t) {
1460
- let n = e.split("|").map((e) => e.trim()), r = Kt(n.shift() ?? "", t);
1468
+ function Jt(e, t) {
1469
+ let n = e.split("|").map((e) => e.trim()), r = qt(n.shift() ?? "", t);
1461
1470
  for (let e of n) {
1462
- let [t, ...n] = e.split(":"), i = t?.trim() ?? "", a = n.join(":").trim().replaceAll(/(?:^['"]|['"]$)/g, ""), o = Wt[i];
1471
+ let [t, ...n] = e.split(":"), i = t?.trim() ?? "", a = n.join(":").trim().replaceAll(/(?:^['"]|['"]$)/g, ""), o = Gt[i];
1463
1472
  o && (r = o(r, a));
1464
1473
  }
1465
1474
  return X(r) ? "" : typeof r == "object" ? JSON.stringify(r) : String(r);
1466
1475
  }
1467
- function Jt(e, t) {
1476
+ function Yt(e, t) {
1468
1477
  let n = "", r = 0;
1469
1478
  for (; r < e.length;) if (e[r] === "{" && e[r + 1] === "{") {
1470
1479
  r += 2;
@@ -1476,13 +1485,13 @@ function Jt(e, t) {
1476
1485
  }
1477
1486
  i += e[r++];
1478
1487
  }
1479
- n += qt(i.trim(), t);
1488
+ n += Jt(i.trim(), t);
1480
1489
  } else n += e[r++];
1481
1490
  return n;
1482
1491
  }
1483
1492
  //#endregion
1484
1493
  //#region src/picked.ts
1485
- var Yt = class {
1494
+ var Xt = class {
1486
1495
  static logger = r;
1487
1496
  options;
1488
1497
  dataSource = null;
@@ -1493,7 +1502,7 @@ var Yt = class {
1493
1502
  previewEmbedderOrigins = null;
1494
1503
  setPreviewEmbedderOrigins = P();
1495
1504
  plugins = {};
1496
- telemetry = Ft();
1505
+ telemetry = Pt();
1497
1506
  dataProviders = /* @__PURE__ */ new Map();
1498
1507
  eventBus = P();
1499
1508
  events;
@@ -1502,53 +1511,54 @@ var Yt = class {
1502
1511
  dashboardUrl;
1503
1512
  documentationSiteUrl;
1504
1513
  session = zt();
1505
- performance = Pt();
1506
- searchParams = ie();
1507
- history = Xe();
1514
+ workspace = Bt();
1515
+ performance = Nt();
1516
+ searchParams = ae();
1517
+ history = Ye();
1508
1518
  components = je({ client: this });
1509
1519
  experienceInstances = w({ client: this });
1510
1520
  experiences = Ce({ client: this });
1511
1521
  frameworks = Fe({ client: this });
1512
- predicates = qe({ client: this });
1513
- features = ue({ client: this });
1514
- conditions = kt();
1515
- fields = tt();
1516
- responses = Et({ client: this });
1517
- steps = it();
1518
- contents = ct();
1519
- actions = ht({ client: this });
1520
- conditionResults = T();
1522
+ predicates = Ke({ client: this });
1523
+ features = de({ client: this });
1524
+ conditions = Ot();
1525
+ fields = et();
1526
+ responses = Tt({ client: this });
1527
+ steps = rt();
1528
+ contents = st();
1529
+ actions = mt({ client: this });
1530
+ conditionResults = te();
1521
1531
  stateSnapshotStore = Re({ client: this });
1522
- evaluateRuleLogicFx = He({ client: this });
1532
+ evaluateRuleLogicFx = Ve({ client: this });
1523
1533
  start;
1524
1534
  readyStore;
1525
1535
  preconditionPassedStore;
1526
1536
  conditionPassedStore;
1527
1537
  lifecycleStageStore;
1528
- lifecycle = We({ client: this });
1538
+ lifecycle = Ue({ client: this });
1529
1539
  renderStringFx = k({
1530
1540
  source: this.responses.listStore,
1531
1541
  effect: (e, { template: t, context: n }) => {
1532
1542
  let r = {};
1533
1543
  for (let t of e) r[t.fieldKey] = t.value;
1534
- return Jt(t, {
1544
+ return Yt(t, {
1535
1545
  ...n,
1536
1546
  responses: r
1537
1547
  });
1538
1548
  }
1539
1549
  });
1540
1550
  constructor(e) {
1541
- this.events = Qe(this.eventBus), this.setPreviewEmbedderOrigins.watch((e) => {
1551
+ this.events = Ze(this.eventBus), this.setPreviewEmbedderOrigins.watch((e) => {
1542
1552
  this.previewEmbedderOrigins = e;
1543
- }), this.projectId = Ut(e), this.options = Object.freeze(e), this.apiUrl = e.apiUrl || At(), this.dashboardUrl = e.dashboardUrl ?? "https://dashboard.picked.app", this.documentationSiteUrl = e.documentationSiteUrl ?? "https://docs.picked.app", this.start = this.lifecycle.start, this.readyStore = this.lifecycle.readyStore, this.preconditionPassedStore = this.lifecycle.preconditionPassedStore, this.conditionPassedStore = this.lifecycle.conditionPassedStore, this.lifecycleStageStore = this.lifecycle.lifecycleStageStore, this.setupPlugins(), this.setupFeatures(), this.setupPredicates(), this.setupActions(), this.setupFields(), this.setupComponents(), this.lifecycle.setPrecondition(e.precondition), this.lifecycle.setCondition(e.condition), this.eventBus({
1553
+ }), this.projectId = Wt(e), this.options = Object.freeze(e), this.apiUrl = e.apiUrl || kt(), this.dashboardUrl = e.dashboardUrl ?? "https://dashboard.picked.app", this.documentationSiteUrl = e.documentationSiteUrl ?? "https://docs.picked.app", this.start = this.lifecycle.start, this.readyStore = this.lifecycle.readyStore, this.preconditionPassedStore = this.lifecycle.preconditionPassedStore, this.conditionPassedStore = this.lifecycle.conditionPassedStore, this.lifecycleStageStore = this.lifecycle.lifecycleStageStore, this.setupPlugins(), this.setupFeatures(), this.setupPredicates(), this.setupActions(), this.setupFields(), this.setupComponents(), this.lifecycle.setPrecondition(e.precondition), this.lifecycle.setCondition(e.condition), this.eventBus({
1544
1554
  type: "load",
1545
- version: ce()
1555
+ version: le()
1546
1556
  }), this.maybeStartPreviewChannel();
1547
1557
  }
1548
1558
  dataProviderFor(e) {
1549
1559
  let t = e ?? "", n = this.dataProviders.get(t);
1550
1560
  if (n) return n;
1551
- let r = import("../provider-M5S2FlQb.js").then((t) => t.createPickedDataProvider({
1561
+ let r = import("../provider-C6jO4a7j.js").then((t) => t.createPickedDataProvider({
1552
1562
  apiUrl: this.apiUrl,
1553
1563
  projectId: this.projectId,
1554
1564
  getRequestObserver: () => this.telemetry.deliveryAPIRequestObserver,
@@ -1558,7 +1568,7 @@ var Yt = class {
1558
1568
  }
1559
1569
  async getProjectConfig(e) {
1560
1570
  let t = await this.dataProviderFor(e?.previewToken), n = await t.getProjectConfig();
1561
- if (this.dataSource = t.meta.manifest, n === null && t.meta.previewUnavailable) throw new de(this.projectId);
1571
+ if (this.dataSource = t.meta.manifest, n === null && t.meta.previewUnavailable) throw new O(this.projectId);
1562
1572
  if (n === null) throw Error(`Picked could not resolve the configuration for project "${this.projectId}" from ${this.apiUrl}.`);
1563
1573
  return n;
1564
1574
  }
@@ -1566,7 +1576,7 @@ var Yt = class {
1566
1576
  return (await this.dataProviderFor(t?.previewToken)).getContent(e, t?.signal === void 0 ? void 0 : { signal: t.signal });
1567
1577
  }
1568
1578
  maybeStartPreviewChannel() {
1569
- le() && import("../preview-channel-CN0-S8KE.js").then((e) => e.initPreviewChannel(this)).catch(() => void 0);
1579
+ ue() && import("../preview-channel-CN0-S8KE.js").then((e) => e.initPreviewChannel(this)).catch(() => void 0);
1570
1580
  }
1571
1581
  registerFramework = (e) => {
1572
1582
  Ie(e, this.frameworks);
@@ -1580,10 +1590,10 @@ var Yt = class {
1580
1590
  t?.onStart && this.lifecycle.registerPluginStartHook(t.onStart);
1581
1591
  };
1582
1592
  registerFeature = (e, t) => {
1583
- oe(e, t, this.features);
1593
+ se(e, t, this.features);
1584
1594
  };
1585
1595
  registerPredicate = (e, t) => {
1586
- Je(e, t, this.predicates);
1596
+ qe(e, t, this.predicates);
1587
1597
  };
1588
1598
  registerCondition = (e) => {
1589
1599
  this.conditions.register(e);
@@ -1592,16 +1602,16 @@ var Yt = class {
1592
1602
  this.fields.register(e);
1593
1603
  };
1594
1604
  registerStep = (e) => {
1595
- at(e, this.steps);
1605
+ it(e, this.steps);
1596
1606
  };
1597
1607
  registerContent = (e) => {
1598
- lt(e, this.contents);
1608
+ ct(e, this.contents);
1599
1609
  };
1600
1610
  patchContent = (e, t) => {
1601
1611
  this.contents.patch(e, t);
1602
1612
  };
1603
1613
  registerAction = (e, t) => {
1604
- gt(e, t, this.actions);
1614
+ ht(e, t, this.actions);
1605
1615
  };
1606
1616
  registerExperience = (e) => {
1607
1617
  e.component && Me(`experience:${e.id}`, e.component, this.components), this.experiences.register(e);
@@ -1643,7 +1653,7 @@ var Yt = class {
1643
1653
  this.registerFeature(e, n);
1644
1654
  }), this.searchParams.feature && this.searchParams.feature.forEach((e) => {
1645
1655
  try {
1646
- let t = ae(e);
1656
+ let t = oe(e);
1647
1657
  if (!t) return;
1648
1658
  let { id: n, bucket: r } = t;
1649
1659
  this.registerFeature(n, {
@@ -1685,8 +1695,8 @@ var Yt = class {
1685
1695
  });
1686
1696
  }
1687
1697
  getPluginConfig = (e) => this.plugins[e] ?? {};
1688
- }, Xt = "application/picked-javascript", Zt = "application/picked-module", Qt = "data-picked-hydrated";
1689
- async function $t(e) {
1698
+ }, Zt = "application/picked-javascript", Qt = "application/picked-module", $t = "data-picked-hydrated";
1699
+ async function en(e) {
1690
1700
  if (!("document" in globalThis)) return;
1691
1701
  let t = "application/picked-module", n = "data-picked-hydrated";
1692
1702
  function r(e) {
@@ -1715,23 +1725,23 @@ async function $t(e) {
1715
1725
  a && await a;
1716
1726
  }
1717
1727
  }
1718
- function en() {
1719
- return `<script>(${$t.toString()})(document)<\/script>`;
1728
+ function tn() {
1729
+ return `<script>(${en.toString()})(document)<\/script>`;
1720
1730
  }
1721
1731
  //#endregion
1722
1732
  //#region src/utils/html-asset-value.ts
1723
- function tn(e) {
1733
+ function nn(e) {
1724
1734
  return typeof e == "object" && !!e && "id" in e && typeof e.id == "string" && "content" in e && (typeof e.content == "string" || e.content === null);
1725
1735
  }
1726
1736
  //#endregion
1727
1737
  //#region src/entities/component/lazyComponent.ts
1728
- function nn(e) {
1738
+ function rn(e) {
1729
1739
  return {
1730
1740
  $$type: "lazy-component",
1731
1741
  load: e
1732
1742
  };
1733
1743
  }
1734
- function rn(e) {
1744
+ function an(e) {
1735
1745
  return typeof e == "object" && !!e && "$$type" in e && e.$$type === "lazy-component";
1736
1746
  }
1737
1747
  //#endregion
@@ -1747,10 +1757,10 @@ function $(e) {
1747
1757
  for (let e of t) Z(e) && n.push(e.contentEntryId);
1748
1758
  return n;
1749
1759
  }
1750
- function an(e, t) {
1760
+ function on(e, t) {
1751
1761
  return t === null ? null : e[t] ?? null;
1752
1762
  }
1753
- function on(e, t) {
1763
+ function sn(e, t) {
1754
1764
  let n = [];
1755
1765
  for (let r of t) {
1756
1766
  let t = e[r];
@@ -1758,32 +1768,32 @@ function on(e, t) {
1758
1768
  }
1759
1769
  return n;
1760
1770
  }
1761
- function sn(e, t) {
1762
- if (ve.store(t)) return A(t, e.indexStore, (e, t) => an(t, Q(e)));
1771
+ function cn(e, t) {
1772
+ if (ve.store(t)) return A(t, e.indexStore, (e, t) => on(t, Q(e)));
1763
1773
  let n = Q(t);
1764
- return e.indexStore.map((e) => an(e, n), { skipVoid: !1 });
1774
+ return e.indexStore.map((e) => on(e, n), { skipVoid: !1 });
1765
1775
  }
1766
- function cn(e, t) {
1767
- if (ve.store(t)) return A(t, e.indexStore, (e, t) => on(t, $(e)));
1776
+ function ln(e, t) {
1777
+ if (ve.store(t)) return A(t, e.indexStore, (e, t) => sn(t, $(e)));
1768
1778
  let n = $(t);
1769
- return e.indexStore.map((e) => on(e, n), { skipVoid: !1 });
1779
+ return e.indexStore.map((e) => sn(e, n), { skipVoid: !1 });
1770
1780
  }
1771
1781
  //#endregion
1772
1782
  //#region src/exports.ts
1773
- var ln = (e) => {
1774
- let t = new Yt(e);
1783
+ var un = (e) => {
1784
+ let t = new Xt(e);
1775
1785
  return u(t), t;
1776
1786
  };
1777
1787
  //#endregion
1778
1788
  //#region src/typed-content.ts
1779
- function un(e) {
1789
+ function dn(e) {
1780
1790
  return typeof e.data == "object";
1781
1791
  }
1782
- function dn(e) {
1783
- return e.map((e) => !e || !un(e) ? null : e, { skipVoid: !1 });
1792
+ function fn(e) {
1793
+ return e.map((e) => !e || !dn(e) ? null : e, { skipVoid: !1 });
1784
1794
  }
1785
- function fn(e, t) {
1795
+ function pn(e, t) {
1786
1796
  return e.contentModelKey === t;
1787
1797
  }
1788
1798
  //#endregion
1789
- export { Qt as PICKED_HYDRATED_ATTR, Zt as PICKED_MODULE_SCRIPT_TYPE, Xt as PICKED_SCRIPT_TYPE, se as PREVIEW_TOKEN_PARAM, Yt as Picked, de as PreviewUnavailableError, en as buildRehydrateBootstrap, ln as createClient, Te as createPluginEffect, re as createStorageKey, sn as deriveReference, cn as deriveReferences, n as evaluateRuleLogic, Bt as getPickedConfig, fn as isContentOfModel, Z as isContentReference, tn as isHtmlAssetValue, g as isInsideIframe, rn as isLazyLoader, v as isPickedRoot, le as isPreviewSession, nn as lazyComponent, O as localStore, he as onInertScriptSubtrees, Q as readReferenceId, $ as readReferenceIds, $t as rehydrateScripts, pe as reportInertScriptSubtrees, me as resetInertScriptReport, ne as sessionStore, te as subscribe, d as supportsCookies, m as supportsCryptoRandomUUID, c as supportsDocument, i as supportsHistory, f as supportsIntersectionObserver, h as supportsLocalStorage, a as supportsLocation, l as supportsSessionStorage, _ as supportsShadowRoot, o as supportsWebComponents, s as supportsWindow, dn as toTypedContentStore };
1799
+ export { $t as PICKED_HYDRATED_ATTR, Qt as PICKED_MODULE_SCRIPT_TYPE, Zt as PICKED_SCRIPT_TYPE, ce as PREVIEW_TOKEN_PARAM, Xt as Picked, O as PreviewUnavailableError, tn as buildRehydrateBootstrap, un as createClient, Te as createPluginEffect, ie as createStorageKey, cn as deriveReference, ln as deriveReferences, n as evaluateRuleLogic, Vt as getPickedConfig, pn as isContentOfModel, Z as isContentReference, nn as isHtmlAssetValue, g as isInsideIframe, an as isLazyLoader, v as isPickedRoot, ue as isPreviewSession, rn as lazyComponent, D as localStore, he as onInertScriptSubtrees, Q as readReferenceId, $ as readReferenceIds, en as rehydrateScripts, pe as reportInertScriptSubtrees, me as resetInertScriptReport, re as sessionStore, ne as subscribe, d as supportsCookies, m as supportsCryptoRandomUUID, c as supportsDocument, i as supportsHistory, f as supportsIntersectionObserver, h as supportsLocalStorage, a as supportsLocation, l as supportsSessionStorage, _ as supportsShadowRoot, o as supportsWebComponents, s as supportsWindow, fn as toTypedContentStore };