@levo-so/studio 0.3.13 → 0.3.14

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 (3) hide show
  1. package/index.js +573 -557
  2. package/package.json +5 -5
  3. package/studio.css +1 -1
package/index.js CHANGED
@@ -5392,7 +5392,23 @@ var rc = gn.extend({
5392
5392
  renderHTML({ HTMLAttributes: e }) {
5393
5393
  return ["div", nn(e, { "data-type": this.name })];
5394
5394
  }
5395
- }), ac = Qt.create({
5395
+ }), ac = on.extend({
5396
+ addOptions() {
5397
+ return {
5398
+ ...this.parent?.(),
5399
+ HTMLAttributes: { target: "_blank" }
5400
+ };
5401
+ },
5402
+ addAttributes() {
5403
+ return {
5404
+ ...this.parent?.(),
5405
+ rel: {
5406
+ default: null,
5407
+ renderHTML: (e) => e.target === "_blank" ? { rel: "noopener" } : {}
5408
+ }
5409
+ };
5410
+ }
5411
+ }), oc = Qt.create({
5396
5412
  name: "indentAttribute",
5397
5413
  addGlobalAttributes() {
5398
5414
  return [{
@@ -5416,12 +5432,12 @@ var rc = gn.extend({
5416
5432
  });
5417
5433
  //#endregion
5418
5434
  //#region ../../libraries/editor-core/dist/extensions/nodeStyling/nodeBackground.js
5419
- function oc(e, t) {
5435
+ function sc(e, t) {
5420
5436
  if (e.length === 0) return null;
5421
5437
  for (let n of e) if ((n.node.attrs?.backgroundColor ?? null) !== t) return t;
5422
5438
  return null;
5423
5439
  }
5424
- var sc = Qt.create({
5440
+ var cc = Qt.create({
5425
5441
  name: "nodeBackground",
5426
5442
  addOptions() {
5427
5443
  return {
@@ -5460,21 +5476,21 @@ var sc = Qt.create({
5460
5476
  return {
5461
5477
  setNodeBackgroundColor: e((e, t) => t || null),
5462
5478
  unsetNodeBackgroundColor: e(() => null),
5463
- toggleNodeBackgroundColor: e((e, t) => oc(e, t || ""))
5479
+ toggleNodeBackgroundColor: e((e, t) => sc(e, t || ""))
5464
5480
  };
5465
5481
  }
5466
- }), cc = 35, lc = 120, uc = En.extend({
5482
+ }), lc = 35, uc = 120, dc = En.extend({
5467
5483
  group: "layoutBlock",
5468
5484
  addProseMirrorPlugins() {
5469
- let e = this.options.resizable && this.editor.isEditable, t = this.options.cellMinWidth < lc ? lc : this.options.cellMinWidth;
5485
+ let e = this.options.resizable && this.editor.isEditable, t = this.options.cellMinWidth < uc ? uc : this.options.cellMinWidth;
5470
5486
  return [...e ? [xn({
5471
5487
  handleWidth: this.options.handleWidth,
5472
- cellMinWidth: cc,
5488
+ cellMinWidth: lc,
5473
5489
  defaultCellMinWidth: t,
5474
5490
  lastColumnResizable: this.options.lastColumnResizable
5475
5491
  })] : [], Sn({ allowTableNodeSelection: this.options.allowTableNodeSelection })];
5476
5492
  }
5477
- }), dc = Cn.extend({
5493
+ }), fc = Cn.extend({
5478
5494
  content: "paragraph+",
5479
5495
  addAttributes() {
5480
5496
  return { ...this.parent?.() };
@@ -5506,7 +5522,7 @@ var sc = Qt.create({
5506
5522
  }
5507
5523
  };
5508
5524
  }
5509
- }), fc = wn.extend({
5525
+ }), pc = wn.extend({
5510
5526
  content: "paragraph+",
5511
5527
  addAttributes() {
5512
5528
  return { ...this.parent?.() };
@@ -5523,16 +5539,16 @@ var sc = Qt.create({
5523
5539
  0
5524
5540
  ];
5525
5541
  }
5526
- }), pc = Qt.create({
5542
+ }), mc = Qt.create({
5527
5543
  name: "tableKit",
5528
5544
  addExtensions() {
5529
5545
  let e = [];
5530
- return this.options.table !== !1 && e.push(uc.configure({
5546
+ return this.options.table !== !1 && e.push(dc.configure({
5531
5547
  ...this.options.table,
5532
5548
  renderWrapper: !0
5533
- })), this.options.tableCell !== !1 && e.push(dc.configure(this.options.tableCell)), this.options.tableHeader !== !1 && e.push(fc.configure(this.options.tableHeader)), this.options.tableRow !== !1 && e.push(Tn.configure(this.options.tableRow)), e;
5549
+ })), this.options.tableCell !== !1 && e.push(fc.configure(this.options.tableCell)), this.options.tableHeader !== !1 && e.push(pc.configure(this.options.tableHeader)), this.options.tableRow !== !1 && e.push(Tn.configure(this.options.tableRow)), e;
5534
5550
  }
5535
- }), mc = (e) => {
5551
+ }), hc = (e) => {
5536
5552
  let t = j(10), { label: n, href: r, target: i, actionType: a, onActivate: o } = e, s = n || "Button";
5537
5553
  if (bs(a) === "button") {
5538
5554
  let e;
@@ -5553,13 +5569,13 @@ var sc = Qt.create({
5553
5569
  rel: d,
5554
5570
  children: s
5555
5571
  }), t[5] = u, t[6] = c, t[7] = d, t[8] = s, t[9] = f) : f = t[9], f;
5556
- }, hc = (e) => {
5572
+ }, gc = (e) => {
5557
5573
  let t = j(16), { node: n } = e, r;
5558
5574
  t[0] === n?.attrs ? r = t[1] : (r = n?.attrs ?? {}, t[0] = n?.attrs, t[1] = r);
5559
5575
  let i = r, { openPopup: a } = S(), o = i.popupId, s;
5560
5576
  t[2] !== a || t[3] !== o ? (s = o ? () => a(o) : void 0, t[2] = a, t[3] = o, t[4] = s) : s = t[4];
5561
5577
  let c;
5562
- t[5] !== i.actionType || t[6] !== i.href || t[7] !== i.label || t[8] !== i.target || t[9] !== s ? (c = /* @__PURE__ */ B(mc, {
5578
+ t[5] !== i.actionType || t[6] !== i.href || t[7] !== i.label || t[8] !== i.target || t[9] !== s ? (c = /* @__PURE__ */ B(hc, {
5563
5579
  label: i.label,
5564
5580
  href: i.href,
5565
5581
  target: i.target,
@@ -5574,9 +5590,9 @@ var sc = Qt.create({
5574
5590
  "data-align": i.align,
5575
5591
  children: c
5576
5592
  }), t[11] = i.align, t[12] = i.size, t[13] = i.variant, t[14] = c, t[15] = l) : l = t[15], l;
5577
- }, gc = null, _c = () => (gc ??= import("lowlight").then(({ common: e, createLowlight: t }) => t(e)).catch((e) => {
5578
- throw gc = null, e;
5579
- }), gc), vc = (e, t) => {
5593
+ }, _c = null, vc = () => (_c ??= import("lowlight").then(({ common: e, createLowlight: t }) => t(e)).catch((e) => {
5594
+ throw _c = null, e;
5595
+ }), _c), yc = (e, t) => {
5580
5596
  if (e.type === "text") return e.value;
5581
5597
  if (e.type === "element") {
5582
5598
  let { className: n, ...r } = e.properties || {};
@@ -5584,26 +5600,26 @@ var sc = Qt.create({
5584
5600
  key: t,
5585
5601
  ...r,
5586
5602
  className: Array.isArray(n) ? n.join(" ") : n
5587
- }, e.children?.map((e, n) => vc(e, `${t}-${n}`)));
5603
+ }, e.children?.map((e, n) => yc(e, `${t}-${n}`)));
5588
5604
  }
5589
5605
  return null;
5590
- }, yc = (e) => {
5606
+ }, bc = (e) => {
5591
5607
  if (!e) return "";
5592
5608
  if (typeof e == "string") return e;
5593
5609
  if (e.text) return e.text;
5594
5610
  if (typeof e.textContent == "string") return e.textContent;
5595
5611
  if (e.content) {
5596
- if (Array.isArray(e.content)) return e.content.map(yc).join("");
5612
+ if (Array.isArray(e.content)) return e.content.map(bc).join("");
5597
5613
  if (typeof e.content.forEach == "function") {
5598
5614
  let t = "";
5599
5615
  return e.content.forEach((e) => {
5600
- t += yc(e);
5616
+ t += bc(e);
5601
5617
  }), t;
5602
5618
  }
5603
5619
  }
5604
5620
  return "";
5605
- }, bc = ({ node: e, children: t }) => {
5606
- let n = Ie(_c()), r = e?.attrs?.language, i = yc(e);
5621
+ }, xc = ({ node: e, children: t }) => {
5622
+ let n = Ie(vc()), r = e?.attrs?.language, i = bc(e);
5607
5623
  if (!i) return /* @__PURE__ */ B("pre", { children: /* @__PURE__ */ B("code", { children: t }) });
5608
5624
  let a;
5609
5625
  try {
@@ -5613,26 +5629,26 @@ var sc = Qt.create({
5613
5629
  }
5614
5630
  return !a || !a.children || a.children.length === 0 ? /* @__PURE__ */ B("pre", { children: /* @__PURE__ */ B("code", { children: i }) }) : /* @__PURE__ */ B("pre", { children: /* @__PURE__ */ B("code", {
5615
5631
  className: r ? `language-${r}` : "",
5616
- children: a.children.map((e, t) => vc(e, `code-${t}`))
5632
+ children: a.children.map((e, t) => yc(e, `code-${t}`))
5617
5633
  }) });
5618
- }, xc = (e) => {
5634
+ }, Sc = (e) => {
5619
5635
  let t = j(9), n;
5620
- t[0] === e.node ? n = t[1] : (n = yc(e.node), t[0] = e.node, t[1] = n);
5636
+ t[0] === e.node ? n = t[1] : (n = bc(e.node), t[0] = e.node, t[1] = n);
5621
5637
  let r = n, i;
5622
5638
  t[2] === r ? i = t[3] : (i = /* @__PURE__ */ B("pre", { children: /* @__PURE__ */ B("code", { children: r }) }), t[2] = r, t[3] = i);
5623
5639
  let a;
5624
- t[4] === e ? a = t[5] : (a = /* @__PURE__ */ B(bc, { ...e }), t[4] = e, t[5] = a);
5640
+ t[4] === e ? a = t[5] : (a = /* @__PURE__ */ B(xc, { ...e }), t[4] = e, t[5] = a);
5625
5641
  let o;
5626
5642
  return t[6] !== i || t[7] !== a ? (o = /* @__PURE__ */ B(N.Suspense, {
5627
5643
  fallback: i,
5628
5644
  children: a
5629
5645
  }), t[6] = i, t[7] = a, t[8] = o) : o = t[8], o;
5630
- }, Sc = Me({
5646
+ }, Cc = Me({
5631
5647
  open: !1,
5632
5648
  toggle: () => {}
5633
- }), Cc = (e) => {
5649
+ }), wc = (e) => {
5634
5650
  let t = j(15), { node: n, children: r } = e, [i, a] = R(!!n.attrs?.open), o;
5635
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = () => a(Ec), t[0] = o) : o = t[0];
5651
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = () => a(Dc), t[0] = o) : o = t[0];
5636
5652
  let s = o, c = i && "is-open", l;
5637
5653
  t[1] === c ? l = t[2] : (l = Gt("details", c), t[1] = c, t[2] = l);
5638
5654
  let u;
@@ -5647,7 +5663,7 @@ var sc = Qt.create({
5647
5663
  toggle: s
5648
5664
  }, t[5] = i, t[6] = d);
5649
5665
  let f;
5650
- t[7] !== r || t[8] !== d ? (f = /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(Sc.Provider, {
5666
+ t[7] !== r || t[8] !== d ? (f = /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(Cc.Provider, {
5651
5667
  value: d,
5652
5668
  children: r
5653
5669
  }) }), t[7] = r, t[8] = d, t[9] = f) : f = t[9];
@@ -5657,8 +5673,8 @@ var sc = Qt.create({
5657
5673
  "data-open": i,
5658
5674
  children: [u, f]
5659
5675
  }), t[10] = i, t[11] = l, t[12] = u, t[13] = f, t[14] = p) : p = t[14], p;
5660
- }, wc = (e) => {
5661
- let t = j(7), { children: n } = e, { open: r, toggle: i } = Le(Sc), a;
5676
+ }, Tc = (e) => {
5677
+ let t = j(7), { children: n } = e, { open: r, toggle: i } = Le(Cc), a;
5662
5678
  t[0] === i ? a = t[1] : (a = (e) => {
5663
5679
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i());
5664
5680
  }, t[0] = i, t[1] = a);
@@ -5671,8 +5687,8 @@ var sc = Qt.create({
5671
5687
  onKeyDown: a,
5672
5688
  children: n
5673
5689
  }), t[2] = n, t[3] = r, t[4] = a, t[5] = i, t[6] = o) : o = t[6], o;
5674
- }, Tc = (e) => {
5675
- let t = j(5), { children: n } = e, { open: r } = Le(Sc), i;
5690
+ }, Ec = (e) => {
5691
+ let t = j(5), { children: n } = e, { open: r } = Le(Cc), i;
5676
5692
  t[0] === r ? i = t[1] : (i = r ? {} : { hidden: !0 }, t[0] = r, t[1] = i);
5677
5693
  let a;
5678
5694
  return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ B("div", {
@@ -5681,12 +5697,12 @@ var sc = Qt.create({
5681
5697
  children: n
5682
5698
  }), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
5683
5699
  };
5684
- function Ec(e) {
5700
+ function Dc(e) {
5685
5701
  return !e;
5686
5702
  }
5687
5703
  //#endregion
5688
5704
  //#region ../../libraries/blog-renderer/dist/views/ImageView.cssm.js
5689
- var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof e == "string" && e.endsWith("%") ? e : `${e}px` : "fit-content", jc = (e) => {
5705
+ var Oc = "_10kj0ro0", kc = "_10kj0ro1", Ac = "_10kj0ro2", jc = (e) => e ? typeof e == "string" && e.endsWith("%") ? e : `${e}px` : "fit-content", Mc = (e) => {
5690
5706
  let t = j(15), { node: n, children: r, imageRef: i, imageProps: a, caption: o } = e, s = n.attrs, { src: c, alt: l, srcset: u, showCaption: d } = s, f = s["data-link-href"], p = n.content.childCount > 0, m = o === void 0 ? r : o, h = (d || p) && m != null;
5691
5707
  if (!c) return null;
5692
5708
  let g = l || "", _ = u || void 0, v;
@@ -5695,7 +5711,7 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5695
5711
  src: c,
5696
5712
  alt: g,
5697
5713
  srcSet: _,
5698
- className: kc,
5714
+ className: Ac,
5699
5715
  loading: "lazy",
5700
5716
  ...a
5701
5717
  }), t[0] = a, t[1] = i, t[2] = c, t[3] = g, t[4] = _, t[5] = v) : v = t[5];
@@ -5713,31 +5729,31 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5713
5729
  }), t[9] = m, t[10] = h, t[11] = x) : x = t[11];
5714
5730
  let S;
5715
5731
  return t[12] !== b || t[13] !== x ? (S = /* @__PURE__ */ V(z, { children: [b, x] }), t[12] = b, t[13] = x, t[14] = S) : S = t[14], S;
5716
- }, Mc = (e) => {
5732
+ }, Nc = (e) => {
5717
5733
  let t = j(13), { node: n, children: r } = e, i = n.attrs, a = i["data-align"];
5718
5734
  if (!i.src) return null;
5719
5735
  let o;
5720
- t[0] === i.width ? o = t[1] : (o = Ac(i.width), t[0] = i.width, t[1] = o);
5736
+ t[0] === i.width ? o = t[1] : (o = jc(i.width), t[0] = i.width, t[1] = o);
5721
5737
  let s;
5722
5738
  t[2] === o ? s = t[3] : (s = { width: o }, t[2] = o, t[3] = s);
5723
5739
  let c;
5724
- t[4] !== r || t[5] !== n ? (c = /* @__PURE__ */ B(jc, {
5740
+ t[4] !== r || t[5] !== n ? (c = /* @__PURE__ */ B(Mc, {
5725
5741
  node: n,
5726
5742
  children: r
5727
5743
  }), t[4] = r, t[5] = n, t[6] = c) : c = t[6];
5728
5744
  let l;
5729
5745
  t[7] !== s || t[8] !== c ? (l = /* @__PURE__ */ B("div", {
5730
- className: Oc,
5746
+ className: kc,
5731
5747
  style: s,
5732
5748
  children: c
5733
5749
  }), t[7] = s, t[8] = c, t[9] = l) : l = t[9];
5734
5750
  let u;
5735
5751
  return t[10] !== a || t[11] !== l ? (u = /* @__PURE__ */ B("div", {
5736
5752
  "data-align": a,
5737
- className: Dc,
5753
+ className: Oc,
5738
5754
  children: l
5739
5755
  }), t[10] = a, t[11] = l, t[12] = u) : u = t[12], u;
5740
- }, Nc = "_1dotpmp0", Pc = (e) => {
5756
+ }, Pc = "_1dotpmp0", Fc = (e) => {
5741
5757
  let n = j(10), { collectionId: r, workspaceId: i, preview: a, variant: o } = e, s = a === void 0 ? !1 : a, c = o ?? void 0, l;
5742
5758
  n[0] === Symbol.for("react.memo_cache_sentinel") ? (l = {
5743
5759
  show: !0,
@@ -5761,19 +5777,19 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5761
5777
  uiConfig: u,
5762
5778
  theme: d
5763
5779
  }), n[4] = r, n[5] = s, n[6] = c, n[7] = d, n[8] = i, n[9] = f) : f = n[9], f;
5764
- }, Fc = (e) => {
5780
+ }, Ic = (e) => {
5765
5781
  let t = j(4), { node: n } = e, r = n?.attrs?.collectionId, i = n?.attrs?.variant, { workspace: a } = M();
5766
5782
  if (!r || !a) return null;
5767
5783
  let o;
5768
5784
  return t[0] !== r || t[1] !== i || t[2] !== a ? (o = /* @__PURE__ */ B("div", {
5769
- className: Nc,
5770
- children: /* @__PURE__ */ B(Pc, {
5785
+ className: Pc,
5786
+ children: /* @__PURE__ */ B(Fc, {
5771
5787
  collectionId: r,
5772
5788
  workspaceId: a,
5773
5789
  variant: i
5774
5790
  })
5775
5791
  }), t[0] = r, t[1] = i, t[2] = a, t[3] = o) : o = t[3], o;
5776
- }, Ic = [
5792
+ }, Lc = [
5777
5793
  As,
5778
5794
  zn,
5779
5795
  Un,
@@ -5788,7 +5804,7 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5788
5804
  an,
5789
5805
  Nn,
5790
5806
  Gn,
5791
- on.configure({ openOnClick: !1 }),
5807
+ ac,
5792
5808
  mn,
5793
5809
  ee,
5794
5810
  Wn,
@@ -5796,7 +5812,7 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5796
5812
  Vn,
5797
5813
  Mn,
5798
5814
  Fn.configure({ multicolor: !0 }),
5799
- sc,
5815
+ cc,
5800
5816
  k,
5801
5817
  Kn.configure({ types: [
5802
5818
  "table",
@@ -5810,9 +5826,9 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5810
5826
  ] }),
5811
5827
  yn.configure({ itemTypeName: "taskItem" }),
5812
5828
  vn.configure({ nested: !0 }),
5813
- pc.configure({ table: { cellMinWidth: 120 } }),
5829
+ mc.configure({ table: { cellMinWidth: 120 } }),
5814
5830
  rc,
5815
- ac,
5831
+ oc,
5816
5832
  ie,
5817
5833
  _s,
5818
5834
  Ss,
@@ -5830,22 +5846,22 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5830
5846
  Ms,
5831
5847
  ic,
5832
5848
  vs
5833
- ], Lc = (e) => Jn(e, Ic), Rc = (e) => {
5849
+ ], Rc = (e) => Jn(e, Lc), zc = (e) => {
5834
5850
  let t = j(18), n, r, i, a, o;
5835
5851
  t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({content: r, className: n, ref: i, theme: o, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
5836
5852
  let s;
5837
5853
  t[6] === r ? s = t[7] : (s = Yn({
5838
5854
  content: r,
5839
- extensions: Ic,
5855
+ extensions: Lc,
5840
5856
  options: { nodeMapping: {
5841
5857
  bookmark: ps,
5842
- button: hc,
5843
- details: Cc,
5844
- detailsSummary: wc,
5845
- detailsContent: Tc,
5846
- codeBlock: xc,
5847
- imageBlock: Mc,
5848
- levoCollection: Fc
5858
+ button: gc,
5859
+ details: wc,
5860
+ detailsSummary: Tc,
5861
+ detailsContent: Ec,
5862
+ codeBlock: Sc,
5863
+ imageBlock: Nc,
5864
+ levoCollection: Ic
5849
5865
  } }
5850
5866
  }), t[6] = r, t[7] = s);
5851
5867
  let c = s, l;
@@ -5862,13 +5878,13 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5862
5878
  theme: o,
5863
5879
  children: u
5864
5880
  }), t[15] = u, t[16] = o, t[17] = d) : d = t[17], d;
5865
- }, zc = ({ className: e, content: t, config: r, styles: i, elementKey: a, generatedClassName: o, ref: s, ...c }) => {
5881
+ }, Bc = ({ className: e, content: t, config: r, styles: i, elementKey: a, generatedClassName: o, ref: s, ...c }) => {
5866
5882
  let l = I(() => {
5867
5883
  if (t && typeof t == "object") {
5868
5884
  if ("json" in t && t.json) return t.json;
5869
- if ("html" in t) return Lc(t.html || "");
5885
+ if ("html" in t) return Rc(t.html || "");
5870
5886
  }
5871
- return Lc(t || "");
5887
+ return Rc(t || "");
5872
5888
  }, [t]), u = I(() => {
5873
5889
  if (!r?.theme) return;
5874
5890
  let { baseSpacing: e, ...t } = r.theme;
@@ -5877,7 +5893,7 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5877
5893
  ...e ? ae({ baseSpacing: e }) : void 0
5878
5894
  };
5879
5895
  }, [r?.theme]);
5880
- return /* @__PURE__ */ B(Rc, {
5896
+ return /* @__PURE__ */ B(zc, {
5881
5897
  ref: s,
5882
5898
  content: l,
5883
5899
  "data-levo_element_key": a,
@@ -5887,8 +5903,8 @@ var Dc = "_10kj0ro0", Oc = "_10kj0ro1", kc = "_10kj0ro2", Ac = (e) => e ? typeof
5887
5903
  ...c
5888
5904
  });
5889
5905
  };
5890
- zc.displayName = "BaseBlogContent";
5891
- var Bc = d(zc), Vc = ({ backgroundVideo: e }) => e?.media?.location ? /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("video", {
5906
+ Bc.displayName = "BaseBlogContent";
5907
+ var Vc = d(Bc), Hc = ({ backgroundVideo: e }) => e?.media?.location ? /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("video", {
5892
5908
  className: "background_video",
5893
5909
  autoPlay: !0,
5894
5910
  loop: !0,
@@ -5911,22 +5927,22 @@ var Bc = d(zc), Vc = ({ backgroundVideo: e }) => e?.media?.location ? /* @__PURE
5911
5927
  inset: 0,
5912
5928
  zIndex: -1
5913
5929
  }
5914
- })] }) : null, Hc = Ne(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ V("div", {
5930
+ })] }) : null, Uc = Ne(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ V("div", {
5915
5931
  ref: c,
5916
5932
  "data-levo_element_key": n,
5917
5933
  "data-levo_element_type": "Box",
5918
5934
  className: D(t, r),
5919
5935
  ...s,
5920
- children: [/* @__PURE__ */ B(Vc, { backgroundVideo: a?.backgroundVideo }), e]
5936
+ children: [/* @__PURE__ */ B(Hc, { backgroundVideo: a?.backgroundVideo }), e]
5921
5937
  }));
5922
- Hc.displayName = "BaseBox";
5923
- var Uc = d(Hc), Wc = N.createContext(null);
5924
- function Gc() {
5925
- let e = N.useContext(Wc);
5938
+ Uc.displayName = "BaseBox";
5939
+ var Wc = d(Uc), Gc = N.createContext(null);
5940
+ function Kc() {
5941
+ let e = N.useContext(Gc);
5926
5942
  if (!e) throw Error("useCarousel must be used within a <Carousel />");
5927
5943
  return e;
5928
5944
  }
5929
- var Kc = (e) => {
5945
+ var qc = (e) => {
5930
5946
  let [t, n] = N.useState(0), [r, i] = N.useState([]), a = N.useCallback((t) => {
5931
5947
  e && e.scrollTo(t);
5932
5948
  }, [e]), o = N.useCallback((e) => {
@@ -5945,7 +5961,7 @@ var Kc = (e) => {
5945
5961
  scrollSnaps: r,
5946
5962
  onDotButtonClick: a
5947
5963
  };
5948
- }, qc = N.forwardRef(({ orientation: e = "horizontal", opts: t, setApi: n, className: r, children: i, elementKey: a, config: o, styles: s, generatedClassName: c, ...l }, u) => {
5964
+ }, Jc = N.forwardRef(({ orientation: e = "horizontal", opts: t, setApi: n, className: r, children: i, elementKey: a, config: o, styles: s, generatedClassName: c, ...l }, u) => {
5949
5965
  let d = [er()];
5950
5966
  o?.carousel?.autoScroll && d.push(Zn({
5951
5967
  speed: o.carousel.speed ?? 2,
@@ -5980,7 +5996,7 @@ var Kc = (e) => {
5980
5996
  if (p) return v(p), p.on("reInit", v), p.on("select", v), () => {
5981
5997
  p?.off("select", v);
5982
5998
  };
5983
- }, [p, v]), /* @__PURE__ */ B(Wc.Provider, {
5999
+ }, [p, v]), /* @__PURE__ */ B(Gc.Provider, {
5984
6000
  value: {
5985
6001
  carouselRef: f,
5986
6002
  api: p,
@@ -6006,9 +6022,9 @@ var Kc = (e) => {
6006
6022
  })
6007
6023
  });
6008
6024
  });
6009
- qc.displayName = "BaseCarousel";
6010
- var Jc = N.forwardRef(({ className: e, ...t }, n) => {
6011
- let { carouselRef: r, orientation: i } = Gc();
6025
+ Jc.displayName = "BaseCarousel";
6026
+ var Yc = N.forwardRef(({ className: e, ...t }, n) => {
6027
+ let { carouselRef: r, orientation: i } = Kc();
6012
6028
  return /* @__PURE__ */ B("div", {
6013
6029
  ref: r,
6014
6030
  className: "overflow-hidden",
@@ -6019,9 +6035,9 @@ var Jc = N.forwardRef(({ className: e, ...t }, n) => {
6019
6035
  })
6020
6036
  });
6021
6037
  });
6022
- Jc.displayName = "CarouselContent";
6023
- var Yc = N.forwardRef(({ className: e, ...t }, n) => {
6024
- let { orientation: r } = Gc();
6038
+ Yc.displayName = "CarouselContent";
6039
+ var Xc = N.forwardRef(({ className: e, ...t }, n) => {
6040
+ let { orientation: r } = Kc();
6025
6041
  return /* @__PURE__ */ B("div", {
6026
6042
  ref: n,
6027
6043
  role: "group",
@@ -6030,9 +6046,9 @@ var Yc = N.forwardRef(({ className: e, ...t }, n) => {
6030
6046
  ...t
6031
6047
  });
6032
6048
  });
6033
- Yc.displayName = "CarouselItem";
6034
- var Xc = N.forwardRef(({ className: e, ...t }, n) => {
6035
- let { orientation: r, scrollPrev: i, canScrollPrev: a } = Gc();
6049
+ Xc.displayName = "CarouselItem";
6050
+ var Zc = N.forwardRef(({ className: e, ...t }, n) => {
6051
+ let { orientation: r, scrollPrev: i, canScrollPrev: a } = Kc();
6036
6052
  return /* @__PURE__ */ V(y, {
6037
6053
  ref: n,
6038
6054
  className: D("absolute h-8 w-8 rounded-full", r === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", e),
@@ -6045,9 +6061,9 @@ var Xc = N.forwardRef(({ className: e, ...t }, n) => {
6045
6061
  })]
6046
6062
  });
6047
6063
  });
6048
- Xc.displayName = "CarouselPrevious";
6049
- var Zc = N.forwardRef(({ className: e, ...t }, n) => {
6050
- let { orientation: r, scrollNext: i, canScrollNext: a } = Gc();
6064
+ Zc.displayName = "CarouselPrevious";
6065
+ var Qc = N.forwardRef(({ className: e, ...t }, n) => {
6066
+ let { orientation: r, scrollNext: i, canScrollNext: a } = Kc();
6051
6067
  return /* @__PURE__ */ V(y, {
6052
6068
  ref: n,
6053
6069
  className: D("absolute h-8 w-8 rounded-full", r === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", e),
@@ -6060,44 +6076,44 @@ var Zc = N.forwardRef(({ className: e, ...t }, n) => {
6060
6076
  })]
6061
6077
  });
6062
6078
  });
6063
- Zc.displayName = "CarouselNext";
6064
- var Qc = N.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ B("button", {
6079
+ Qc.displayName = "CarouselNext";
6080
+ var $c = N.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ B("button", {
6065
6081
  ref: r,
6066
6082
  type: "button",
6067
6083
  className: D("relative inline-flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border-0 bg-transparent p-0 transition-all", "after:flex after:h-3.5 after:w-3.5 after:items-center after:justify-center after:rounded-full after:border-2 after:border-gray-200 after:content-['']", "hover:after:border-gray-400", e),
6068
6084
  ...n,
6069
6085
  children: t
6070
6086
  }));
6071
- Qc.displayName = "CarouselDotButton";
6072
- var $c = N.forwardRef(({ className: e, ...t }, n) => {
6073
- let { api: r } = Gc(), { selectedIndex: i, scrollSnaps: a, onDotButtonClick: o } = Kc(r);
6087
+ $c.displayName = "CarouselDotButton";
6088
+ var el = N.forwardRef(({ className: e, ...t }, n) => {
6089
+ let { api: r } = Kc(), { selectedIndex: i, scrollSnaps: a, onDotButtonClick: o } = qc(r);
6074
6090
  return /* @__PURE__ */ B("div", {
6075
6091
  ref: n,
6076
6092
  className: D("mt-4 flex flex-wrap items-center justify-center gap-0", e),
6077
6093
  ...t,
6078
- children: a.map((e, t) => /* @__PURE__ */ B(Qc, {
6094
+ children: a.map((e, t) => /* @__PURE__ */ B($c, {
6079
6095
  onClick: () => o(t),
6080
6096
  className: D(t === i && "after:border-white after:bg-white"),
6081
6097
  "aria-label": `Go to slide ${t + 1}`
6082
6098
  }, t))
6083
6099
  });
6084
6100
  });
6085
- $c.displayName = "CarouselDots";
6086
- var el = d(qc), tl = Ne(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ V("div", {
6101
+ el.displayName = "CarouselDots";
6102
+ var tl = d(Jc), nl = Ne(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ V("div", {
6087
6103
  ref: c,
6088
6104
  "data-levo_element_key": n,
6089
6105
  "data-levo_element_type": "Container",
6090
6106
  className: D(t, r),
6091
6107
  ...s,
6092
- children: [/* @__PURE__ */ B(Vc, { backgroundVideo: a?.backgroundVideo }), e]
6108
+ children: [/* @__PURE__ */ B(Hc, { backgroundVideo: a?.backgroundVideo }), e]
6093
6109
  }));
6094
- tl.displayName = "BaseContainer";
6095
- var nl = d(tl), rl = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), il = d(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ B("div", {
6110
+ nl.displayName = "BaseContainer";
6111
+ var rl = d(nl), il = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), al = d(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ B("div", {
6096
6112
  "data-levo_element_key": e,
6097
6113
  className: D(r, t),
6098
6114
  children: /* @__PURE__ */ B(je, {
6099
6115
  fallback: /* @__PURE__ */ B("div", {}),
6100
- children: /* @__PURE__ */ B(rl, {
6116
+ children: /* @__PURE__ */ B(il, {
6101
6117
  uiConfig: {
6102
6118
  hideFormHeading: !0,
6103
6119
  hideSectionHeadings: !0
@@ -6114,7 +6130,7 @@ var nl = d(tl), rl = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then
6114
6130
  isLoading: s
6115
6131
  })
6116
6132
  })
6117
- })), al = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), ol = Pe(() => import("./bookingCard-DcK7qJ97.js").then((e) => ({ default: e.BookingCard }))), sl = Pe(() => import("./BillingStep-Cskl5Sbc.js").then((e) => ({ default: e.BillingStep }))), cl = d(({ elementKey: e, generatedClassName: t, config: r, className: i, initialValues: a, theme: o }) => {
6133
+ })), ol = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), sl = Pe(() => import("./bookingCard-DcK7qJ97.js").then((e) => ({ default: e.BookingCard }))), cl = Pe(() => import("./BillingStep-Cskl5Sbc.js").then((e) => ({ default: e.BillingStep }))), ll = d(({ elementKey: e, generatedClassName: t, config: r, className: i, initialValues: a, theme: o }) => {
6118
6134
  let s = M(), { workspace: c, isLoggedIn: l, isAuthLoaded: u } = C(), d = I(() => {
6119
6135
  if (!r?.theme && !o) return;
6120
6136
  let e = r?.theme;
@@ -6204,7 +6220,7 @@ var nl = d(tl), rl = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then
6204
6220
  className: D(i, t),
6205
6221
  children: /* @__PURE__ */ B(je, {
6206
6222
  fallback: /* @__PURE__ */ B("div", {}),
6207
- children: /* @__PURE__ */ B(sl, {
6223
+ children: /* @__PURE__ */ B(cl, {
6208
6224
  onSubmit: async (e) => {
6209
6225
  _(e);
6210
6226
  let { pendingContentId: t, pendingCollectionKey: n } = m;
@@ -6221,7 +6237,7 @@ var nl = d(tl), rl = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then
6221
6237
  className: D(i, t),
6222
6238
  children: /* @__PURE__ */ B(je, {
6223
6239
  fallback: /* @__PURE__ */ B("div", {}),
6224
- children: /* @__PURE__ */ B(ol, {
6240
+ children: /* @__PURE__ */ B(sl, {
6225
6241
  summary: f.summary,
6226
6242
  billingDetails: g,
6227
6243
  onBillingEdit: _,
@@ -6239,7 +6255,7 @@ var nl = d(tl), rl = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then
6239
6255
  className: D(i, t),
6240
6256
  children: /* @__PURE__ */ B(je, {
6241
6257
  fallback: /* @__PURE__ */ B("div", {}),
6242
- children: /* @__PURE__ */ B(al, {
6258
+ children: /* @__PURE__ */ B(ol, {
6243
6259
  uiConfig: {
6244
6260
  hideFormHeading: !0,
6245
6261
  hideSectionHeadings: !0
@@ -6283,7 +6299,7 @@ function Q({ className: e, ...t }) {
6283
6299
  }
6284
6300
  //#endregion
6285
6301
  //#region src/elements/forum/categoryFilter/CategoryFilter.tsx
6286
- var ll = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className: r }) => {
6302
+ var ul = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className: r }) => {
6287
6303
  let { fetch: i, logger: a } = M(), [o, s] = R([]), [c, l] = R(!1), [u, d] = R(!1), f = L(!1), p = P(async () => {
6288
6304
  if (!(!e || f.current)) {
6289
6305
  l(!0), d(!1);
@@ -6321,7 +6337,7 @@ var ll = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className:
6321
6337
  className: D("rounded-sm border border-[#E5E5E5] px-3 py-1.5 font-medium text-text-1 text-xs uppercase transition-colors", t.includes(e._id) ? "border-brand/25 bg-brand/5" : "bg-white"),
6322
6338
  children: e.name
6323
6339
  }, e._id)) });
6324
- }, ul = Me(void 0), dl = ({ children: e, forum: t, isMember: n, isLoadingMembership: r, isInviteOnly: i, canInteractWithPosts: a, canInteractWithComments: o, joinRequest: s = null, isJoinRequestPending: c = !1, allowJoinRequests: l = !1, submitJoinRequest: u = async () => !1, refreshMembershipStatus: d = async () => {} }) => /* @__PURE__ */ B(ul.Provider, {
6340
+ }, dl = Me(void 0), fl = ({ children: e, forum: t, isMember: n, isLoadingMembership: r, isInviteOnly: i, canInteractWithPosts: a, canInteractWithComments: o, joinRequest: s = null, isJoinRequestPending: c = !1, allowJoinRequests: l = !1, submitJoinRequest: u = async () => !1, refreshMembershipStatus: d = async () => {} }) => /* @__PURE__ */ B(dl.Provider, {
6325
6341
  value: {
6326
6342
  forum: t,
6327
6343
  isMember: n,
@@ -6336,8 +6352,8 @@ var ll = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className:
6336
6352
  refreshMembershipStatus: d
6337
6353
  },
6338
6354
  children: e
6339
- }), fl = () => {
6340
- let e = Le(ul);
6355
+ }), pl = () => {
6356
+ let e = Le(dl);
6341
6357
  return e === void 0 ? {
6342
6358
  forum: null,
6343
6359
  isMember: !1,
@@ -6351,22 +6367,22 @@ var ll = ({ forumKey: e, selectedCategories: t, onCategoryToggle: n, className:
6351
6367
  submitJoinRequest: async () => !1,
6352
6368
  refreshMembershipStatus: async () => {}
6353
6369
  } : e;
6354
- }, pl = Zt.Provider, ml = Zt.Root, hl = Zt.Trigger, gl = Zt.Portal, _l = ke.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ B(Zt.Content, {
6370
+ }, ml = Zt.Provider, hl = Zt.Root, gl = Zt.Trigger, _l = Zt.Portal, vl = ke.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ B(Zt.Content, {
6355
6371
  ref: r,
6356
6372
  sideOffset: t,
6357
6373
  className: D("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 animate-in overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-popover-foreground text-xs shadow-md data-[state=closed]:animate-out", e),
6358
6374
  ...n
6359
6375
  }));
6360
- _l.displayName = Zt.Content.displayName;
6361
- var vl = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentProps: i = {}, side: a }) => /* @__PURE__ */ V(ml, { children: [t && /* @__PURE__ */ B(gl, { children: /* @__PURE__ */ B(_l, {
6376
+ vl.displayName = Zt.Content.displayName;
6377
+ var yl = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentProps: i = {}, side: a }) => /* @__PURE__ */ V(hl, { children: [t && /* @__PURE__ */ B(_l, { children: /* @__PURE__ */ B(vl, {
6362
6378
  side: a,
6363
6379
  className: n,
6364
6380
  ...i,
6365
6381
  children: t
6366
- }) }), /* @__PURE__ */ B(hl, {
6382
+ }) }), /* @__PURE__ */ B(gl, {
6367
6383
  asChild: r,
6368
6384
  children: e
6369
- })] }), yl = ({ isOpen: e, setIsOpen: t, title: n, description: r, onCancel: i, onConfirm: a, isLoading: o = !1, cancelText: s = "Cancel", confirmText: c = "Confirm", confirmButtonClassName: l }) => {
6385
+ })] }), bl = ({ isOpen: e, setIsOpen: t, title: n, description: r, onCancel: i, onConfirm: a, isLoading: o = !1, cancelText: s = "Cancel", confirmText: c = "Confirm", confirmButtonClassName: l }) => {
6370
6386
  let u = () => {
6371
6387
  o || (i?.(), t(!1));
6372
6388
  };
@@ -6409,7 +6425,7 @@ var vl = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentPr
6409
6425
  })]
6410
6426
  })
6411
6427
  });
6412
- }, bl = {
6428
+ }, xl = {
6413
6429
  popoverContent: "_popoverContent_ob3yj_1",
6414
6430
  fadeIn: "_fadeIn_ob3yj_1",
6415
6431
  zoomIn: "_zoomIn_ob3yj_1",
@@ -6419,15 +6435,15 @@ var vl = ({ children: e, label: t, labelClassName: n, asChild: r = !0, contentPr
6419
6435
  slideFromRight: "_slideFromRight_ob3yj_1",
6420
6436
  slideFromLeft: "_slideFromLeft_ob3yj_1",
6421
6437
  slideFromBottom: "_slideFromBottom_ob3yj_1"
6422
- }, xl = W.Root, Sl = ke.forwardRef(({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ...o }, s) => /* @__PURE__ */ B(W.Trigger, {
6438
+ }, Sl = W.Root, Cl = ke.forwardRef(({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ...o }, s) => /* @__PURE__ */ B(W.Trigger, {
6423
6439
  ref: s,
6424
6440
  "data-levo_element_key": t,
6425
6441
  "data-levo_element_type": "PopoverTrigger",
6426
6442
  className: D("PopoverTrigger", e, n),
6427
6443
  ...o
6428
6444
  }));
6429
- Sl.displayName = "BasePopoverTrigger";
6430
- var Cl = ke.forwardRef(({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, inPortal: o = !0, portalContainer: s, align: c = "center", sideOffset: l = 4, ...u }, d) => /* @__PURE__ */ B(z, { children: o ? /* @__PURE__ */ B(W.Portal, {
6445
+ Cl.displayName = "BasePopoverTrigger";
6446
+ var wl = ke.forwardRef(({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, inPortal: o = !0, portalContainer: s, align: c = "center", sideOffset: l = 4, ...u }, d) => /* @__PURE__ */ B(z, { children: o ? /* @__PURE__ */ B(W.Portal, {
6431
6447
  container: s,
6432
6448
  children: /* @__PURE__ */ B(W.Content, {
6433
6449
  ref: d,
@@ -6435,7 +6451,7 @@ var Cl = ke.forwardRef(({ className: e, elementKey: t, generatedClassName: n, co
6435
6451
  sideOffset: l,
6436
6452
  "data-levo_element_key": t,
6437
6453
  "data-levo_element_type": "PopoverContent",
6438
- className: D(bl.popoverContent, e, n),
6454
+ className: D(xl.popoverContent, e, n),
6439
6455
  ...u
6440
6456
  })
6441
6457
  }) : /* @__PURE__ */ B(W.Content, {
@@ -6444,11 +6460,11 @@ var Cl = ke.forwardRef(({ className: e, elementKey: t, generatedClassName: n, co
6444
6460
  sideOffset: l,
6445
6461
  "data-levo_element_key": t,
6446
6462
  "data-levo_element_type": "PopoverContent",
6447
- className: D(bl.popoverContent, e, n),
6463
+ className: D(xl.popoverContent, e, n),
6448
6464
  ...u
6449
6465
  }) }));
6450
- Cl.displayName = "BasePopoverContent";
6451
- var wl = d(Sl), Tl = d(Cl), El = ({ children: e, triggerContainerStyles: t, useCustomOpenState: n = !1, isOpen: r, handleCreateForumPostModalOpen: i, isCreateForumPostModalReady: a = !1, forumKey: o, onSuccess: s, onClose: c, mode: l = "create", initialValues: u }) => {
6466
+ wl.displayName = "BasePopoverContent";
6467
+ var Tl = d(Cl), El = d(wl), Dl = ({ children: e, triggerContainerStyles: t, useCustomOpenState: n = !1, isOpen: r, handleCreateForumPostModalOpen: i, isCreateForumPostModalReady: a = !1, forumKey: o, onSuccess: s, onClose: c, mode: l = "create", initialValues: u }) => {
6452
6468
  let [d, f] = R(!1), { account: p, workspace: h } = C(), { fetch: g, logger: _ } = M(), [v] = R("myself"), [y, b] = R(""), [x, S] = R(""), [w, T] = R(!1), [E, O] = R(!1), [k, ee] = R(""), [te, ne] = R(""), [re, ie] = R(!1), [ae, A] = R([]), [oe, ue] = R(!1), de = L(!1), [me, he] = R(l === "create");
6453
6469
  F(() => {
6454
6470
  if (l === "edit" && u) {
@@ -6532,10 +6548,10 @@ var wl = d(Sl), Tl = d(Cl), El = ({ children: e, triggerContainerStyles: t, useC
6532
6548
  className: "flex items-center gap-2",
6533
6549
  children: [
6534
6550
  l === "create" && oe && /* @__PURE__ */ B("div", { className: "h-8 w-24 animate-pulse rounded-md bg-gray-200" }),
6535
- l === "create" && !oe && ae?.length > 0 && /* @__PURE__ */ V(xl, {
6551
+ l === "create" && !oe && ae?.length > 0 && /* @__PURE__ */ V(Sl, {
6536
6552
  open: re,
6537
6553
  onOpenChange: ie,
6538
- children: [/* @__PURE__ */ B(wl, {
6554
+ children: [/* @__PURE__ */ B(Tl, {
6539
6555
  elementKey: "category-trigger",
6540
6556
  asChild: !0,
6541
6557
  children: /* @__PURE__ */ V("button", {
@@ -6547,7 +6563,7 @@ var wl = d(Sl), Tl = d(Cl), El = ({ children: e, triggerContainerStyles: t, useC
6547
6563
  children: ae.find((e) => e._id === te)?.name || "Category"
6548
6564
  }), /* @__PURE__ */ B(ht, { className: "size-4 text-text-2" })]
6549
6565
  })
6550
- }), /* @__PURE__ */ B(Tl, {
6566
+ }), /* @__PURE__ */ B(El, {
6551
6567
  elementKey: "category-content",
6552
6568
  align: "end",
6553
6569
  className: "!w-[unset] !p-1 min-w-36 rounded-lg border border-gray-200 bg-white shadow-lg",
@@ -6600,7 +6616,7 @@ var wl = d(Sl), Tl = d(Cl), El = ({ children: e, triggerContainerStyles: t, useC
6600
6616
  me ? /* @__PURE__ */ V("div", {
6601
6617
  className: "space-y-4",
6602
6618
  children: [
6603
- /* @__PURE__ */ B(Zl, {
6619
+ /* @__PURE__ */ B(Ql, {
6604
6620
  inputProps: {
6605
6621
  autoFocus: l === "create",
6606
6622
  readOnly: l === "edit"
@@ -6612,7 +6628,7 @@ var wl = d(Sl), Tl = d(Cl), El = ({ children: e, triggerContainerStyles: t, useC
6612
6628
  disabled: w || l === "edit",
6613
6629
  inputStyles: D("h-12 border-[#D1D6E1] bg-white font-medium text-base placeholder:text-[#717C91] focus-visible:ring-1 focus-visible:ring-[#D1D6E1]", l === "edit" && "cursor-not-allowed bg-gray-50")
6614
6630
  }),
6615
- /* @__PURE__ */ B(Ad, {
6631
+ /* @__PURE__ */ B(jd, {
6616
6632
  name: "content",
6617
6633
  placeholder: "Body text (optional)",
6618
6634
  value: x,
@@ -6624,7 +6640,7 @@ var wl = d(Sl), Tl = d(Cl), El = ({ children: e, triggerContainerStyles: t, useC
6624
6640
  style: { minHeight: "256px" }
6625
6641
  }
6626
6642
  }),
6627
- E && /* @__PURE__ */ B(Zl, {
6643
+ E && /* @__PURE__ */ B(Ql, {
6628
6644
  name: "link",
6629
6645
  placeholder: "Enter URL",
6630
6646
  value: k,
@@ -6675,7 +6691,7 @@ U.extend(tr), U.extend(nr), U.updateLocale("en", { relativeTime: {
6675
6691
  y: "1 year",
6676
6692
  yy: "%d years"
6677
6693
  } });
6678
- var Dl = (e) => {
6694
+ var Ol = (e) => {
6679
6695
  if (!e) return "";
6680
6696
  try {
6681
6697
  let t = e.startsWith("http") ? e : `https://${e}`;
@@ -6683,7 +6699,7 @@ var Dl = (e) => {
6683
6699
  } catch {
6684
6700
  return "";
6685
6701
  }
6686
- }, Ol = ({ post: e, isRenderedSolo: t, forumKey: n, postListingPageURL: r, onEditClick: i, onPostUpdated: a }) => {
6702
+ }, kl = ({ post: e, isRenderedSolo: t, forumKey: n, postListingPageURL: r, onEditClick: i, onPostUpdated: a }) => {
6687
6703
  let { account: o } = C(), { fetch: s, logger: c } = M(), [l, u] = R(!1), [d, f] = R(!1), [p, m] = R(!1), [h, g] = R(!1), _ = I(() => !!(e?.organization && e?.organization?.badge_granted_at), [e]), v = I(() => {
6688
6704
  let t = e?.organization?.name?.split(" ") || [];
6689
6705
  return t?.length > 1 ? t?.map((e) => e?.charAt(0)?.toUpperCase())?.join("") : t?.at(0)?.slice(0, 2)?.toUpperCase();
@@ -6723,13 +6739,13 @@ var Dl = (e) => {
6723
6739
  onClick: S,
6724
6740
  children: /* @__PURE__ */ B(ct, { size: 20 })
6725
6741
  }),
6726
- /* @__PURE__ */ V(vd, {
6742
+ /* @__PURE__ */ V(yd, {
6727
6743
  className: "h-8 w-8 rounded-full ring-2 ring-gray-100",
6728
- children: [/* @__PURE__ */ B(bd, {
6744
+ children: [/* @__PURE__ */ B(xd, {
6729
6745
  src: x?.media?.location ?? "",
6730
6746
  alt: x?.alt || "Avatar Media",
6731
6747
  className: "aspect-square w-full object-contain"
6732
- }), /* @__PURE__ */ B(Sd, {
6748
+ }), /* @__PURE__ */ B(Cd, {
6733
6749
  className: "bg-brand text-brand-foreground text-xs",
6734
6750
  children: _ ? v : y
6735
6751
  })]
@@ -6754,10 +6770,10 @@ var Dl = (e) => {
6754
6770
  ]
6755
6771
  }), /* @__PURE__ */ V("div", {
6756
6772
  className: "flex items-center gap-2",
6757
- children: [/* @__PURE__ */ B(Ul, { post: e }), w && /* @__PURE__ */ V(xl, {
6773
+ children: [/* @__PURE__ */ B(Wl, { post: e }), w && /* @__PURE__ */ V(Sl, {
6758
6774
  open: p,
6759
6775
  onOpenChange: m,
6760
- children: [/* @__PURE__ */ B(wl, {
6776
+ children: [/* @__PURE__ */ B(Tl, {
6761
6777
  elementKey: "post_menu_trigger",
6762
6778
  asChild: !0,
6763
6779
  "data-prevent-post-navigation": !0,
@@ -6769,7 +6785,7 @@ var Dl = (e) => {
6769
6785
  className: "flex h-8 w-8 cursor-pointer items-center justify-center rounded text-gray-600 hover:bg-gray-100",
6770
6786
  children: /* @__PURE__ */ B(Ft, { size: 20 })
6771
6787
  })
6772
- }), /* @__PURE__ */ V(Tl, {
6788
+ }), /* @__PURE__ */ V(El, {
6773
6789
  elementKey: "post_menu_content",
6774
6790
  align: "end",
6775
6791
  className: "!w-[unset] !p-1 rounded-lg border border-gray-200 bg-white shadow-lg",
@@ -6793,7 +6809,7 @@ var Dl = (e) => {
6793
6809
  })]
6794
6810
  })]
6795
6811
  }),
6796
- /* @__PURE__ */ B(yl, {
6812
+ /* @__PURE__ */ B(bl, {
6797
6813
  isOpen: l,
6798
6814
  setIsOpen: u,
6799
6815
  title: "Are you absolutely sure?",
@@ -6823,7 +6839,7 @@ var Dl = (e) => {
6823
6839
  cancelText: "Cancel",
6824
6840
  confirmButtonClassName: "bg-gray-900 text-white hover:bg-gray-800"
6825
6841
  }),
6826
- n && h && /* @__PURE__ */ B(El, {
6842
+ n && h && /* @__PURE__ */ B(Dl, {
6827
6843
  isOpen: h,
6828
6844
  handleCreateForumPostModalOpen: g,
6829
6845
  useCustomOpenState: !0,
@@ -6836,28 +6852,28 @@ var Dl = (e) => {
6836
6852
  onClose: () => g(!1)
6837
6853
  })
6838
6854
  ] });
6839
- }, kl = ({ post: e }) => e?.categories?.at(0) ? /* @__PURE__ */ B("p", {
6855
+ }, Al = ({ post: e }) => e?.categories?.at(0) ? /* @__PURE__ */ B("p", {
6840
6856
  className: "font-semibold text-text-3/80 text-xs uppercase",
6841
6857
  children: e?.categories?.at(0)?.name
6842
- }) : null, Al = ({ post: e }) => /* @__PURE__ */ B("h2", {
6858
+ }) : null, jl = ({ post: e }) => /* @__PURE__ */ B("h2", {
6843
6859
  className: "font-bold text-lg text-text-1 leading-tight",
6844
6860
  children: e.title
6845
- }), jl = ({ post: e }) => /* @__PURE__ */ B("div", {
6861
+ }), Ml = ({ post: e }) => /* @__PURE__ */ B("div", {
6846
6862
  className: "max-w-none text-sm text-text-2 leading-relaxed",
6847
6863
  children: /* @__PURE__ */ B("div", { dangerouslySetInnerHTML: { __html: e.content || "" } })
6848
- }), Ml = ({ className: e, children: t, ...n }) => /* @__PURE__ */ B("div", {
6864
+ }), Nl = ({ className: e, children: t, ...n }) => /* @__PURE__ */ B("div", {
6849
6865
  className: D("flex items-center gap-1 rounded-lg border border-[#D1D6E1] bg-[#F0F4FA] px-2 py-1 font-semibold text-sm", e),
6850
6866
  ...n,
6851
6867
  children: t
6852
- }), Nl = ({ post: e, forumKey: t }) => {
6853
- let { fetch: n, logger: r } = M(), { isLoggedIn: i } = C(), { openModal: a } = T(), { canInteractWithPosts: o } = fl(), [s, c] = R(!1), [l, u] = R(!!e?.upvoted_at), [d, f] = R(!!e?.downvoted_at), [p, m] = R((e.upvote_count ?? 0) - (e.downvote_count ?? 0)), h = !i || o;
6868
+ }), Pl = ({ post: e, forumKey: t }) => {
6869
+ let { fetch: n, logger: r } = M(), { isLoggedIn: i } = C(), { openModal: a } = T(), { canInteractWithPosts: o } = pl(), [s, c] = R(!1), [l, u] = R(!!e?.upvoted_at), [d, f] = R(!!e?.downvoted_at), [p, m] = R((e.upvote_count ?? 0) - (e.downvote_count ?? 0)), h = !i || o;
6854
6870
  return F(() => {
6855
6871
  m((e.upvote_count ?? 0) - (e.downvote_count ?? 0));
6856
6872
  }, [e?.upvote_count, e?.downvote_count]), F(() => {
6857
6873
  u(!!e?.upvoted_at);
6858
6874
  }, [e?.upvoted_at]), F(() => {
6859
6875
  f(!!e?.downvoted_at);
6860
- }, [e?.downvoted_at]), /* @__PURE__ */ V(Ml, {
6876
+ }, [e?.downvoted_at]), /* @__PURE__ */ V(Nl, {
6861
6877
  className: "flex items-center gap-0.5 px-1",
6862
6878
  children: [
6863
6879
  /* @__PURE__ */ B("button", {
@@ -6926,18 +6942,18 @@ var Dl = (e) => {
6926
6942
  })
6927
6943
  ]
6928
6944
  });
6929
- }, Pl = ({ post: e, postDetailPageURLPattern: t, isRenderedSolo: n = !1, actionsLoadingState: r, forumKey: i }) => /* @__PURE__ */ B("div", {
6945
+ }, Fl = ({ post: e, postDetailPageURLPattern: t, isRenderedSolo: n = !1, actionsLoadingState: r, forumKey: i }) => /* @__PURE__ */ B("div", {
6930
6946
  className: D("mt-0"),
6931
6947
  children: /* @__PURE__ */ B("div", {
6932
6948
  className: "flex items-center justify-between",
6933
6949
  children: /* @__PURE__ */ V("div", {
6934
6950
  className: "flex items-center gap-4",
6935
6951
  children: [
6936
- r?.engagements ? /* @__PURE__ */ B(Q, { className: "h-7.5 w-17 rounded-lg" }) : /* @__PURE__ */ B(Nl, {
6952
+ r?.engagements ? /* @__PURE__ */ B(Q, { className: "h-7.5 w-17 rounded-lg" }) : /* @__PURE__ */ B(Pl, {
6937
6953
  post: e,
6938
6954
  forumKey: i
6939
6955
  }),
6940
- r?.comments ? /* @__PURE__ */ B(Q, { className: "h-7.5 w-14 rounded-lg" }) : /* @__PURE__ */ V(Ml, {
6956
+ r?.comments ? /* @__PURE__ */ B(Q, { className: "h-7.5 w-14 rounded-lg" }) : /* @__PURE__ */ V(Nl, {
6941
6957
  className: D("cursor-pointer gap-1.5", n && "cursor-default"),
6942
6958
  onClick: (r) => {
6943
6959
  r.stopPropagation(), r.preventDefault();
@@ -6949,7 +6965,7 @@ var Dl = (e) => {
6949
6965
  children: e.comments_count
6950
6966
  })]
6951
6967
  }),
6952
- r?.share ? /* @__PURE__ */ B(Q, { className: "h-7.5 w-20 rounded-lg" }) : /* @__PURE__ */ V(Ml, {
6968
+ r?.share ? /* @__PURE__ */ B(Q, { className: "h-7.5 w-20 rounded-lg" }) : /* @__PURE__ */ V(Nl, {
6953
6969
  className: "cursor-pointer",
6954
6970
  onClick: async (n) => {
6955
6971
  n.stopPropagation(), n.preventDefault();
@@ -6967,8 +6983,8 @@ var Dl = (e) => {
6967
6983
  ]
6968
6984
  })
6969
6985
  })
6970
- }), Fl = ({ post: e }) => {
6971
- let t = I(() => Dl(e?.url), [e?.url]);
6986
+ }), Il = ({ post: e }) => {
6987
+ let t = I(() => Ol(e?.url), [e?.url]);
6972
6988
  return /* @__PURE__ */ V("a", {
6973
6989
  href: e?.url,
6974
6990
  target: "_blank",
@@ -7005,7 +7021,7 @@ var Dl = (e) => {
7005
7021
  ]
7006
7022
  })]
7007
7023
  });
7008
- }, Il = ({ post: e, isRenderedSolo: t = !1 }) => {
7024
+ }, Ll = ({ post: e, isRenderedSolo: t = !1 }) => {
7009
7025
  let n = e?.media;
7010
7026
  return !n || n.length === 0 ? null : n?.length === 1 ? /* @__PURE__ */ B("div", {
7011
7027
  className: "mb-4",
@@ -7021,7 +7037,7 @@ var Dl = (e) => {
7021
7037
  }) : /* @__PURE__ */ B("div", {
7022
7038
  className: "mb-4",
7023
7039
  "data-prevent-post-navigation": !0,
7024
- children: /* @__PURE__ */ V(el, {
7040
+ children: /* @__PURE__ */ V(tl, {
7025
7041
  elementKey: "gallery-carousel",
7026
7042
  opts: {
7027
7043
  loop: !0,
@@ -7030,7 +7046,7 @@ var Dl = (e) => {
7030
7046
  },
7031
7047
  className: "w-full",
7032
7048
  children: [
7033
- /* @__PURE__ */ B(Jc, { children: n.map((e, t) => /* @__PURE__ */ B(Yc, {
7049
+ /* @__PURE__ */ B(Yc, { children: n.map((e, t) => /* @__PURE__ */ B(Xc, {
7034
7050
  className: "basis-full",
7035
7051
  children: /* @__PURE__ */ B("div", {
7036
7052
  className: "group cursor-pointer overflow-hidden rounded-lg",
@@ -7041,8 +7057,8 @@ var Dl = (e) => {
7041
7057
  })
7042
7058
  })
7043
7059
  }, t)) }),
7044
- /* @__PURE__ */ B($c, { className: "absolute bottom-4 left-1/2 -translate-x-1/2" }),
7045
- /* @__PURE__ */ B(Xc, {
7060
+ /* @__PURE__ */ B(el, { className: "absolute bottom-4 left-1/2 -translate-x-1/2" }),
7061
+ /* @__PURE__ */ B(Zc, {
7046
7062
  elementKey: "prev",
7047
7063
  className: "left-2",
7048
7064
  style: {
@@ -7051,7 +7067,7 @@ var Dl = (e) => {
7051
7067
  height: "36px"
7052
7068
  }
7053
7069
  }),
7054
- /* @__PURE__ */ B(Zc, {
7070
+ /* @__PURE__ */ B(Qc, {
7055
7071
  elementKey: "next",
7056
7072
  className: "right-2",
7057
7073
  style: {
@@ -7063,7 +7079,7 @@ var Dl = (e) => {
7063
7079
  ]
7064
7080
  })
7065
7081
  });
7066
- }, Ll = ({ option: e, post: t, setPost: n }) => {
7082
+ }, Rl = ({ option: e, post: t, setPost: n }) => {
7067
7083
  let { fetch: r, logger: i } = M(), a = I(() => {
7068
7084
  let e = U(t?.expires_at), n = U();
7069
7085
  return e?.isValid() ? !!n?.isAfter(e) : !1;
@@ -7130,13 +7146,13 @@ var Dl = (e) => {
7130
7146
  })
7131
7147
  ]
7132
7148
  }, e._id);
7133
- }, Rl = ({ post: e }) => /* @__PURE__ */ B("span", {
7149
+ }, zl = ({ post: e }) => /* @__PURE__ */ B("span", {
7134
7150
  className: "ml-auto font-medium text-gray-600 text-sm",
7135
7151
  children: I(() => {
7136
7152
  let t = U(e?.expires_at), n = U();
7137
7153
  return t?.isValid() ? n?.isAfter(t) ? `Poll ended ${t?.fromNow()}` : `Poll ends in ${U()?.to(t)}` : null;
7138
7154
  }, [e])
7139
- }), zl = ({ post: e }) => {
7155
+ }), Bl = ({ post: e }) => {
7140
7156
  let t = I(() => [
7141
7157
  ,
7142
7158
  ,
@@ -7148,25 +7164,25 @@ var Dl = (e) => {
7148
7164
  })), []), n = I(() => typeof e?.vote_count == "number" && e?.vote_count - 4 > 0 ? e?.vote_count - 4 : null, [e?.vote_count]);
7149
7165
  return /* @__PURE__ */ V("div", {
7150
7166
  className: "flex -space-x-2",
7151
- children: [t?.map((e, t) => /* @__PURE__ */ V(vd, {
7167
+ children: [t?.map((e, t) => /* @__PURE__ */ V(yd, {
7152
7168
  className: "relative h-8 w-8 border-2 border-white shadow-sm",
7153
7169
  style: { zIndex: 5 - t },
7154
- children: [/* @__PURE__ */ B(bd, {
7170
+ children: [/* @__PURE__ */ B(xd, {
7155
7171
  src: e?.imgSource,
7156
7172
  alt: "image"
7157
- }), /* @__PURE__ */ B(Sd, { children: e?.fallback })]
7173
+ }), /* @__PURE__ */ B(Cd, { children: e?.fallback })]
7158
7174
  }, t)), n !== null && /* @__PURE__ */ V("div", {
7159
7175
  className: "flex h-8 w-8 items-center justify-center rounded-full border-2 border-white bg-gray-300 font-bold text-gray-700 text-xs shadow-sm",
7160
7176
  children: ["+", n]
7161
7177
  })]
7162
7178
  });
7163
- }, Bl = ({ post: e }) => /* @__PURE__ */ B("div", {
7179
+ }, Vl = ({ post: e }) => /* @__PURE__ */ B("div", {
7164
7180
  className: "flex items-center gap-3",
7165
- children: e?.show_participant_list ? /* @__PURE__ */ B(zl, { post: e }) : /* @__PURE__ */ V("span", {
7181
+ children: e?.show_participant_list ? /* @__PURE__ */ B(Bl, { post: e }) : /* @__PURE__ */ V("span", {
7166
7182
  className: "font-medium text-gray-700 text-sm",
7167
7183
  children: [typeof e?.vote_count == "number" ? e?.vote_count : 0, " votes"]
7168
7184
  })
7169
- }), Vl = ({ post: e }) => {
7185
+ }), Hl = ({ post: e }) => {
7170
7186
  let [t, n] = R(e);
7171
7187
  return F(() => {
7172
7188
  n({ ...e });
@@ -7174,17 +7190,17 @@ var Dl = (e) => {
7174
7190
  "data-prevent-post-navigation": !0,
7175
7191
  children: [/* @__PURE__ */ B("div", {
7176
7192
  className: "mb-4 space-y-2.5",
7177
- children: t?.options.map((e) => /* @__PURE__ */ B(Ll, {
7193
+ children: t?.options.map((e) => /* @__PURE__ */ B(Rl, {
7178
7194
  option: e,
7179
7195
  post: t,
7180
7196
  setPost: n
7181
7197
  }, e?._id))
7182
7198
  }), /* @__PURE__ */ V("div", {
7183
7199
  className: "mb-4 flex items-center justify-between rounded-lg border border-gray-200 bg-gray-50 px-4 py-3.5",
7184
- children: [/* @__PURE__ */ B(Bl, { post: t }), t?.expires_at && /* @__PURE__ */ B(Rl, { post: t })]
7200
+ children: [/* @__PURE__ */ B(Vl, { post: t }), t?.expires_at && /* @__PURE__ */ B(zl, { post: t })]
7185
7201
  })]
7186
7202
  });
7187
- }, Hl = (e) => {
7203
+ }, Ul = (e) => {
7188
7204
  switch (e) {
7189
7205
  case et.unpublished: return {
7190
7206
  icon: /* @__PURE__ */ B(wt, { size: 14 }),
@@ -7212,9 +7228,9 @@ var Dl = (e) => {
7212
7228
  };
7213
7229
  default: return null;
7214
7230
  }
7215
- }, Ul = ({ post: e }) => {
7216
- let t = I(() => e?.status ? Hl(e.status) : null, [e?.status]);
7217
- return t ? /* @__PURE__ */ B(pl, { children: /* @__PURE__ */ B(vl, {
7231
+ }, Wl = ({ post: e }) => {
7232
+ let t = I(() => e?.status ? Ul(e.status) : null, [e?.status]);
7233
+ return t ? /* @__PURE__ */ B(ml, { children: /* @__PURE__ */ B(yl, {
7218
7234
  label: t.tooltip,
7219
7235
  side: "top",
7220
7236
  labelClassName: "bg-[#171717] text-white",
@@ -7223,7 +7239,7 @@ var Dl = (e) => {
7223
7239
  children: [t.icon, /* @__PURE__ */ B("span", { children: t.label })]
7224
7240
  })
7225
7241
  }) }) : null;
7226
- }, Wl = (e) => {
7242
+ }, Gl = (e) => {
7227
7243
  switch (e) {
7228
7244
  case et.archived: return {
7229
7245
  icon: /* @__PURE__ */ B(at, { size: 14 }),
@@ -7251,9 +7267,9 @@ var Dl = (e) => {
7251
7267
  };
7252
7268
  default: return null;
7253
7269
  }
7254
- }, Gl = ({ comment: e }) => {
7255
- let t = I(() => e?.status ? Wl(e.status) : null, [e?.status]);
7256
- return t ? /* @__PURE__ */ B(pl, { children: /* @__PURE__ */ B(vl, {
7270
+ }, Kl = ({ comment: e }) => {
7271
+ let t = I(() => e?.status ? Gl(e.status) : null, [e?.status]);
7272
+ return t ? /* @__PURE__ */ B(ml, { children: /* @__PURE__ */ B(yl, {
7257
7273
  label: t.tooltip,
7258
7274
  side: "top",
7259
7275
  labelClassName: "bg-[#171717] text-white",
@@ -7265,7 +7281,7 @@ var Dl = (e) => {
7265
7281
  };
7266
7282
  //#endregion
7267
7283
  //#region src/components/ui/base/input.tsx
7268
- function Kl({ className: e, type: t, ...n }) {
7284
+ function ql({ className: e, type: t, ...n }) {
7269
7285
  return /* @__PURE__ */ B("input", {
7270
7286
  type: t,
7271
7287
  "data-slot": "input",
@@ -7275,13 +7291,13 @@ function Kl({ className: e, type: t, ...n }) {
7275
7291
  }
7276
7292
  //#endregion
7277
7293
  //#region src/components/ui/form/utils/FieldError.tsx
7278
- var ql = ({ children: e }) => /* @__PURE__ */ B("p", {
7294
+ var Jl = ({ children: e }) => /* @__PURE__ */ B("p", {
7279
7295
  className: D("mt-2 font-medium text-red-400 text-xs"),
7280
7296
  children: e
7281
- }), Jl = ({ children: e, styles: t = "" }) => /* @__PURE__ */ B("p", {
7297
+ }), Yl = ({ children: e, styles: t = "" }) => /* @__PURE__ */ B("p", {
7282
7298
  className: D("font-medium text-muted-foreground text-xs", t),
7283
7299
  children: e
7284
- }), Yl = ({ children: e, isRequired: t, className: n, ...r }) => /* @__PURE__ */ V("label", {
7300
+ }), Xl = ({ children: e, isRequired: t, className: n, ...r }) => /* @__PURE__ */ V("label", {
7285
7301
  className: D("mb-1 block flex-1 select-none text-sm leading-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-70", n),
7286
7302
  ...r,
7287
7303
  children: [
@@ -7292,36 +7308,36 @@ var ql = ({ children: e }) => /* @__PURE__ */ B("p", {
7292
7308
  children: "*"
7293
7309
  })
7294
7310
  ]
7295
- }), Xl = ({ error: e, touched: t = !1, helperText: n, containerStyles: r, helperTextStyles: i, readOnly: a, children: o, label: s, labelStyles: c, isRequired: l, name: u }) => /* @__PURE__ */ B("div", {
7311
+ }), Zl = ({ error: e, touched: t = !1, helperText: n, containerStyles: r, helperTextStyles: i, readOnly: a, children: o, label: s, labelStyles: c, isRequired: l, name: u }) => /* @__PURE__ */ B("div", {
7296
7312
  className: D("form-control w-full", a ? "pointer-events-none" : "", r),
7297
7313
  children: /* @__PURE__ */ V("div", {
7298
7314
  className: D("w-full shrink-0", "sm:flex-1"),
7299
7315
  children: [
7300
- s && /* @__PURE__ */ B(Yl, {
7316
+ s && /* @__PURE__ */ B(Xl, {
7301
7317
  htmlFor: u,
7302
7318
  isRequired: l,
7303
7319
  className: c,
7304
7320
  children: s
7305
7321
  }),
7306
7322
  o,
7307
- t && e && /* @__PURE__ */ B(ql, { children: e }),
7323
+ t && e && /* @__PURE__ */ B(Jl, { children: e }),
7308
7324
  n && /* @__PURE__ */ B("div", {
7309
7325
  className: D("break-word mt-2 w-full"),
7310
- children: /* @__PURE__ */ B(Jl, {
7326
+ children: /* @__PURE__ */ B(Yl, {
7311
7327
  styles: i,
7312
7328
  children: n
7313
7329
  })
7314
7330
  })
7315
7331
  ]
7316
7332
  })
7317
- }), Zl = ke.forwardRef(({ label: e, type: t, name: n, isRequired: r, labelStyles: i, leftIcon: a, rightIcon: o, leftIconBoxStyles: s, rightIconBoxStyles: c, containerStyles: l, helperTextStyles: u, inputStyles: d, value: f, disabled: p, inputProps: m, placeholder: h, readOnly: g, id: _, onChange: v, onBlur: y, error: b, helperText: x, touched: S, inputContainerStyles: C, leftIconBoxProps: w, rightIconBoxProps: T }, E) => /* @__PURE__ */ V(Xl, {
7333
+ }), Ql = ke.forwardRef(({ label: e, type: t, name: n, isRequired: r, labelStyles: i, leftIcon: a, rightIcon: o, leftIconBoxStyles: s, rightIconBoxStyles: c, containerStyles: l, helperTextStyles: u, inputStyles: d, value: f, disabled: p, inputProps: m, placeholder: h, readOnly: g, id: _, onChange: v, onBlur: y, error: b, helperText: x, touched: S, inputContainerStyles: C, leftIconBoxProps: w, rightIconBoxProps: T }, E) => /* @__PURE__ */ V(Zl, {
7318
7334
  containerStyles: l,
7319
7335
  helperTextStyles: u,
7320
7336
  error: b,
7321
7337
  helperText: x,
7322
7338
  readOnly: g,
7323
7339
  touched: S,
7324
- children: [e && /* @__PURE__ */ B(Yl, {
7340
+ children: [e && /* @__PURE__ */ B(Xl, {
7325
7341
  htmlFor: n,
7326
7342
  isRequired: r,
7327
7343
  className: D("text-3", i),
@@ -7334,7 +7350,7 @@ var ql = ({ children: e }) => /* @__PURE__ */ B("p", {
7334
7350
  ...w,
7335
7351
  children: a
7336
7352
  }) : null,
7337
- /* @__PURE__ */ B(Kl, {
7353
+ /* @__PURE__ */ B(ql, {
7338
7354
  id: _ || n,
7339
7355
  name: n,
7340
7356
  type: t,
@@ -7356,10 +7372,10 @@ var ql = ({ children: e }) => /* @__PURE__ */ B("p", {
7356
7372
  ]
7357
7373
  })]
7358
7374
  }));
7359
- Zl.displayName = "FormInput";
7375
+ Ql.displayName = "FormInput";
7360
7376
  //#endregion
7361
7377
  //#region src/elements/forum/comments/ReplyBox.tsx
7362
- var Ql = ({ isParent: e = !0 }) => {
7378
+ var $l = ({ isParent: e = !0 }) => {
7363
7379
  let { isLoggedIn: t, account: n } = C(), r = I(() => {
7364
7380
  let e = [n?.first_name, n?.last_name]?.filter(Boolean);
7365
7381
  return e?.length === 1 ? e?.at(0)?.slice(0, 2)?.toUpperCase() : e?.length > 1 ? e?.map((e) => e?.at(0)?.toUpperCase()).join("") : n?.username?.slice(0, 2)?.toUpperCase();
@@ -7373,18 +7389,18 @@ var Ql = ({ isParent: e = !0 }) => {
7373
7389
  }
7374
7390
  return null;
7375
7391
  }, [n]);
7376
- return t ? /* @__PURE__ */ V(vd, {
7392
+ return t ? /* @__PURE__ */ V(yd, {
7377
7393
  className: D(e ? "h-10 w-10" : "h-[40px] w-[40px]"),
7378
- children: [/* @__PURE__ */ B(bd, {
7394
+ children: [/* @__PURE__ */ B(xd, {
7379
7395
  src: i?.media?.location,
7380
7396
  alt: i?.alt || "User Profile"
7381
- }), /* @__PURE__ */ B(Sd, {
7397
+ }), /* @__PURE__ */ B(Cd, {
7382
7398
  className: D("bg-brand text-brand-foreground", !e && "text-sm"),
7383
7399
  children: r
7384
7400
  })]
7385
7401
  }) : null;
7386
- }, $l = ({ post: e, isParent: t = !1, parentCommentId: n = null, onCommentAdded: r, forumKey: i }) => {
7387
- let { fetch: a, logger: o } = M(), { account: s, isLoggedIn: c } = C(), { openModal: l } = T(), { canInteractWithComments: u } = fl(), [d, f] = R(!1), [p, h] = R("");
7402
+ }, eu = ({ post: e, isParent: t = !1, parentCommentId: n = null, onCommentAdded: r, forumKey: i }) => {
7403
+ let { fetch: a, logger: o } = M(), { account: s, isLoggedIn: c } = C(), { openModal: l } = T(), { canInteractWithComments: u } = pl(), [d, f] = R(!1), [p, h] = R("");
7388
7404
  if (c && !u) return null;
7389
7405
  let g = () => {
7390
7406
  c || l("login", {});
@@ -7411,11 +7427,11 @@ var Ql = ({ isParent: e = !0 }) => {
7411
7427
  };
7412
7428
  return /* @__PURE__ */ V("div", {
7413
7429
  className: D("flex w-full items-start gap-3", !t && "gap-2.5"),
7414
- children: [/* @__PURE__ */ B(Ql, { isParent: t }), /* @__PURE__ */ V("div", {
7430
+ children: [/* @__PURE__ */ B($l, { isParent: t }), /* @__PURE__ */ V("div", {
7415
7431
  className: "flex w-full items-start justify-between gap-4",
7416
7432
  children: [/* @__PURE__ */ B("div", {
7417
7433
  className: "relative flex-1",
7418
- children: /* @__PURE__ */ B(Zl, {
7434
+ children: /* @__PURE__ */ B(Ql, {
7419
7435
  name: "comment",
7420
7436
  placeholder: c ? t ? "Join the conversation..." : "Add your comment..." : "Login to join the conversation...",
7421
7437
  value: p,
@@ -7462,7 +7478,7 @@ U.extend(tr), U.extend(nr), U.updateLocale("en", { relativeTime: {
7462
7478
  y: "1 year",
7463
7479
  yy: "%d years"
7464
7480
  } });
7465
- var eu = ({ comment: e, avatarStyles: t }) => {
7481
+ var tu = ({ comment: e, avatarStyles: t }) => {
7466
7482
  let n = I(() => !!(e?.organization && e?.organization?.badge_granted_at), [e]), r = I(() => {
7467
7483
  let t = [e?.author?.first_name, e?.author?.last_name]?.filter(Boolean);
7468
7484
  return t?.length === 1 ? t?.at(0)?.slice(0, 2)?.toUpperCase() : t?.length > 1 ? t?.map((e) => e?.at(0)?.toUpperCase()).join("") : e?.author?.username?.slice(0, 2)?.toUpperCase();
@@ -7483,17 +7499,17 @@ var eu = ({ comment: e, avatarStyles: t }) => {
7483
7499
  }
7484
7500
  return null;
7485
7501
  }, [e]);
7486
- return /* @__PURE__ */ V(vd, {
7502
+ return /* @__PURE__ */ V(yd, {
7487
7503
  className: D("h-[28px] w-[28px]", t),
7488
- children: [/* @__PURE__ */ B(bd, {
7504
+ children: [/* @__PURE__ */ B(xd, {
7489
7505
  src: a?.media?.location,
7490
7506
  alt: a?.alt || "User Profile"
7491
- }), /* @__PURE__ */ B(Sd, {
7507
+ }), /* @__PURE__ */ B(Cd, {
7492
7508
  className: "bg-brand text-brand-foreground text-xs",
7493
7509
  children: n ? i : r
7494
7510
  })]
7495
7511
  });
7496
- }, tu = ({ comment: e }) => {
7512
+ }, nu = ({ comment: e }) => {
7497
7513
  let t = I(() => !!(e?.organization && e?.organization?.badge_granted_at), [e]), n = I(() => {
7498
7514
  if (!U(e?.created_at)?.isValid()) return null;
7499
7515
  let t = U(e?.created_at), n = U();
@@ -7527,22 +7543,22 @@ var eu = ({ comment: e, avatarStyles: t }) => {
7527
7543
  })
7528
7544
  ]
7529
7545
  });
7530
- }, nu = ({ replyCount: e, ...t }) => /* @__PURE__ */ V(Ml, {
7546
+ }, ru = ({ replyCount: e, ...t }) => /* @__PURE__ */ V(Nl, {
7531
7547
  className: "cursor-pointer bg-white",
7532
7548
  ...t,
7533
7549
  children: [/* @__PURE__ */ B(Pt, { size: 16 }), /* @__PURE__ */ B("span", {
7534
7550
  className: "text-xs",
7535
7551
  children: e
7536
7552
  })]
7537
- }), ru = ({ comment: e, forumKey: t, userEngagementHashMap: n, setUserEngagementHashMap: r }) => {
7538
- let { fetch: i, logger: a } = M(), { isLoggedIn: o } = C(), { openModal: s } = T(), { canInteractWithComments: c } = fl(), l = n?.[e?._id], [u, d] = R(!1), [f, p] = R(!!l?.upvoted_at), [m, h] = R(!!l?.downvoted_at), [g, _] = R((e.upvote_count ?? 0) - (e.downvote_count ?? 0)), v = !o || c;
7553
+ }), iu = ({ comment: e, forumKey: t, userEngagementHashMap: n, setUserEngagementHashMap: r }) => {
7554
+ let { fetch: i, logger: a } = M(), { isLoggedIn: o } = C(), { openModal: s } = T(), { canInteractWithComments: c } = pl(), l = n?.[e?._id], [u, d] = R(!1), [f, p] = R(!!l?.upvoted_at), [m, h] = R(!!l?.downvoted_at), [g, _] = R((e.upvote_count ?? 0) - (e.downvote_count ?? 0)), v = !o || c;
7539
7555
  return F(() => {
7540
7556
  _((e.upvote_count ?? 0) - (e.downvote_count ?? 0));
7541
7557
  }, [e?.upvote_count, e?.downvote_count]), F(() => {
7542
7558
  p(!!l?.upvoted_at);
7543
7559
  }, [l?.upvoted_at]), F(() => {
7544
7560
  h(!!l?.downvoted_at);
7545
- }, [l?.downvoted_at]), /* @__PURE__ */ V(Ml, {
7561
+ }, [l?.downvoted_at]), /* @__PURE__ */ V(Nl, {
7546
7562
  className: "flex items-center gap-0.5 bg-white px-1",
7547
7563
  children: [
7548
7564
  /* @__PURE__ */ B("button", {
@@ -7631,7 +7647,7 @@ var eu = ({ comment: e, avatarStyles: t }) => {
7631
7647
  })
7632
7648
  ]
7633
7649
  });
7634
- }, iu = ({ forumKey: e, post: t, comment: n, replyCount: r, onReplyAdded: i, onToggleReplies: a, showReplyBox: o, userEngagementHashMap: s, setUserEngagementHashMap: c }) => {
7650
+ }, au = ({ forumKey: e, post: t, comment: n, replyCount: r, onReplyAdded: i, onToggleReplies: a, showReplyBox: o, userEngagementHashMap: s, setUserEngagementHashMap: c }) => {
7635
7651
  let l = !!n?.parent;
7636
7652
  return /* @__PURE__ */ V("div", {
7637
7653
  className: D("w-full space-y-3"),
@@ -7639,17 +7655,17 @@ var eu = ({ comment: e, avatarStyles: t }) => {
7639
7655
  className: "flex items-center justify-between",
7640
7656
  children: [/* @__PURE__ */ V("div", {
7641
7657
  className: "flex justify-start gap-x-4",
7642
- children: [/* @__PURE__ */ B(ru, {
7658
+ children: [/* @__PURE__ */ B(iu, {
7643
7659
  forumKey: e,
7644
7660
  comment: n,
7645
7661
  userEngagementHashMap: s,
7646
7662
  setUserEngagementHashMap: c
7647
- }), !l && /* @__PURE__ */ B(nu, {
7663
+ }), !l && /* @__PURE__ */ B(ru, {
7648
7664
  replyCount: r ?? n?.replies?.length ?? 0,
7649
7665
  onClick: a
7650
7666
  })]
7651
- }), /* @__PURE__ */ B(Gl, { comment: n })]
7652
- }), o && /* @__PURE__ */ B($l, {
7667
+ }), /* @__PURE__ */ B(Kl, { comment: n })]
7668
+ }), o && /* @__PURE__ */ B(eu, {
7653
7669
  post: t,
7654
7670
  parentCommentId: n?._id,
7655
7671
  onCommentAdded: i,
@@ -7660,7 +7676,7 @@ var eu = ({ comment: e, avatarStyles: t }) => {
7660
7676
  //#endregion
7661
7677
  //#region src/elements/forum/comments/Comment.tsx
7662
7678
  U.extend(tr);
7663
- var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7679
+ var ou = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7664
7680
  className: "col-start-2 mt-4 flex w-full gap-2.5",
7665
7681
  style: e,
7666
7682
  children: [/* @__PURE__ */ B(Q, { className: "h-[28px] w-[28px] flex-shrink-0 rounded-full" }), /* @__PURE__ */ V("div", {
@@ -7671,7 +7687,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7671
7687
  /* @__PURE__ */ B(Q, { className: "h-4 w-3/4" })
7672
7688
  ]
7673
7689
  })]
7674
- }), ou = ({ comment: e, replyCount: t, showReplies: n, isShowMoreActive: r }) => {
7690
+ }), su = ({ comment: e, replyCount: t, showReplies: n, isShowMoreActive: r }) => {
7675
7691
  let i = t === 0 ? 2 : t + (n ? 2 : 1) + +!!r;
7676
7692
  return n ? /* @__PURE__ */ B(z, { children: Array(i).fill(0).map((e, n) => /* @__PURE__ */ V("div", {
7677
7693
  className: D("relative col-start-1 col-end-2", n === i - 1 && "grid h-full grid-cols-2 grid-rows-4"),
@@ -7685,7 +7701,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7685
7701
  t > 0 && /* @__PURE__ */ B(z, { children: (n === i - 1 || n > 1) && /* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("div", { className: D("absolute top-0 right-0 left-[14px] h-[30px] rounded-bl-md border-gray-200 border-b border-l", r && n === i - 1 && "h-[20px]") }) }) })
7686
7702
  ]
7687
7703
  }, n)) }) : null;
7688
- }, su = ({ forumKey: e, post: t, comment: n, onChildReplyAdded: r, index: i, userEngagementHashMap: a, setUserEngagementHashMap: o }) => {
7704
+ }, cu = ({ forumKey: e, post: t, comment: n, onChildReplyAdded: r, index: i, userEngagementHashMap: a, setUserEngagementHashMap: o }) => {
7689
7705
  let { fetch: s, logger: c } = M(), [l, u] = R(n?.replies || []), [d, f] = R(1), [p, m] = R((n?.replies?.length ?? 0) >= 5), [h, g] = R(!1), [_, v] = R(!1), [y, b] = R(!1), [x, S] = R(typeof n?.reply_count == "number" ? n.reply_count : 0), C = !n?.parent, w = async (t) => {
7690
7706
  if (C) try {
7691
7707
  g(!0);
@@ -7717,7 +7733,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7717
7733
  ...C ? {} : { gridRowStart: (i ?? 0) + 3 + 1 }
7718
7734
  },
7719
7735
  children: [
7720
- /* @__PURE__ */ B(eu, {
7736
+ /* @__PURE__ */ B(tu, {
7721
7737
  comment: n,
7722
7738
  avatarStyles: "col-start-1 col-end-2"
7723
7739
  }),
@@ -7725,14 +7741,14 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7725
7741
  className: "col-start-2 col-end-3 flex flex-col space-y-0.5",
7726
7742
  children: /* @__PURE__ */ B("div", {
7727
7743
  className: "flex items-center gap-2",
7728
- children: /* @__PURE__ */ B(tu, { comment: n })
7744
+ children: /* @__PURE__ */ B(nu, { comment: n })
7729
7745
  })
7730
7746
  }),
7731
7747
  /* @__PURE__ */ B("p", {
7732
7748
  className: "col-start-2 row-span-1 row-start-2 -mt-2 text-sm text-text-1",
7733
7749
  children: n?.content
7734
7750
  }),
7735
- C && /* @__PURE__ */ B(ou, {
7751
+ C && /* @__PURE__ */ B(su, {
7736
7752
  comment: n,
7737
7753
  replyCount: l?.length,
7738
7754
  showReplies: _,
@@ -7740,7 +7756,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7740
7756
  }),
7741
7757
  /* @__PURE__ */ B("div", {
7742
7758
  className: "col-start-2 row-span-1 row-start-3 mt-2 mb-1 text-text-1",
7743
- children: /* @__PURE__ */ B(iu, {
7759
+ children: /* @__PURE__ */ B(au, {
7744
7760
  post: t,
7745
7761
  comment: n,
7746
7762
  replyCount: x,
@@ -7752,7 +7768,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7752
7768
  forumKey: e
7753
7769
  })
7754
7770
  }),
7755
- _ && Array.isArray(l) && l.length > 0 && l.map((r, i) => /* @__PURE__ */ B(su, {
7771
+ _ && Array.isArray(l) && l.length > 0 && l.map((r, i) => /* @__PURE__ */ B(cu, {
7756
7772
  comment: r,
7757
7773
  post: t,
7758
7774
  onChildReplyAdded: O,
@@ -7767,10 +7783,10 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7767
7783
  style: { gridRowStart: l?.length + 2 + 1 + 1 },
7768
7784
  children: "Show more replies"
7769
7785
  }),
7770
- C && _ && h && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(au, { wrapperStyles: { gridRowStart: l?.length + 2 + 1 + 1 + 1 } }), /* @__PURE__ */ B(au, { wrapperStyles: { gridRowStart: l?.length + 2 + 1 + 1 + 2 } })] })
7786
+ C && _ && h && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(ou, { wrapperStyles: { gridRowStart: l?.length + 2 + 1 + 1 + 1 } }), /* @__PURE__ */ B(ou, { wrapperStyles: { gridRowStart: l?.length + 2 + 1 + 1 + 2 } })] })
7771
7787
  ]
7772
7788
  });
7773
- }, cu = () => /* @__PURE__ */ V("div", {
7789
+ }, lu = () => /* @__PURE__ */ V("div", {
7774
7790
  className: "flex w-full gap-3",
7775
7791
  children: [/* @__PURE__ */ B(Q, { className: "h-10 w-10 flex-shrink-0 rounded-full" }), /* @__PURE__ */ V("div", {
7776
7792
  className: "flex-1 space-y-3",
@@ -7793,7 +7809,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7793
7809
  })
7794
7810
  ]
7795
7811
  })]
7796
- }), lu = ({ forumKey: e, post: t, onCommentCountChange: n }) => {
7812
+ }), uu = ({ forumKey: e, post: t, onCommentCountChange: n }) => {
7797
7813
  let { fetch: r, logger: i } = M(), [a, o] = R(!0), [s, c] = R(!1), [l, u] = R([]), [d, f] = R(1), [p, m] = R(!1), [h, g] = R("desc"), [_, v] = R(!1), y = L(null), [b, x] = R(t?.comments_count ?? 0), [S, C] = R({}), w = async (n = 1, a = h) => {
7798
7814
  try {
7799
7815
  let i = n === 1;
@@ -7849,7 +7865,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7849
7865
  return /* @__PURE__ */ V("div", {
7850
7866
  className: "flex w-full flex-col gap-y-3.5",
7851
7867
  children: [
7852
- /* @__PURE__ */ B($l, {
7868
+ /* @__PURE__ */ B(eu, {
7853
7869
  post: t,
7854
7870
  isParent: !0,
7855
7871
  onCommentAdded: E,
@@ -7885,12 +7901,12 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7885
7901
  /* @__PURE__ */ B("div", {
7886
7902
  className: "comments flex w-full flex-col gap-y-4",
7887
7903
  children: a ? /* @__PURE__ */ V(z, { children: [
7888
- /* @__PURE__ */ B(cu, {}),
7889
- /* @__PURE__ */ B(cu, {}),
7890
- /* @__PURE__ */ B(cu, {}),
7891
- /* @__PURE__ */ B(cu, {})
7904
+ /* @__PURE__ */ B(lu, {}),
7905
+ /* @__PURE__ */ B(lu, {}),
7906
+ /* @__PURE__ */ B(lu, {}),
7907
+ /* @__PURE__ */ B(lu, {})
7892
7908
  ] }) : /* @__PURE__ */ V(z, { children: [
7893
- l?.map((n) => /* @__PURE__ */ B(su, {
7909
+ l?.map((n) => /* @__PURE__ */ B(cu, {
7894
7910
  comment: n,
7895
7911
  post: t,
7896
7912
  forumKey: e,
@@ -7898,7 +7914,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7898
7914
  userEngagementHashMap: S,
7899
7915
  setUserEngagementHashMap: C
7900
7916
  }, n?._id)),
7901
- s && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(cu, {}), /* @__PURE__ */ B(cu, {})] }),
7917
+ s && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(lu, {}), /* @__PURE__ */ B(lu, {})] }),
7902
7918
  p && !s && /* @__PURE__ */ B("div", {
7903
7919
  className: "flex w-full justify-center",
7904
7920
  children: /* @__PURE__ */ B("button", {
@@ -7912,7 +7928,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7912
7928
  })
7913
7929
  ]
7914
7930
  });
7915
- }, uu = () => {
7931
+ }, du = () => {
7916
7932
  let { isLoggedIn: e, account: t } = C(), n = I(() => {
7917
7933
  let e = [t?.first_name, t?.last_name]?.filter(Boolean);
7918
7934
  return e?.length === 1 ? e?.at(0)?.slice(0, 2)?.toUpperCase() : e?.length > 1 ? e?.map((e) => e?.at(0)?.toUpperCase()).join("") : t?.username?.slice(0, 2)?.toUpperCase();
@@ -7926,18 +7942,18 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7926
7942
  }
7927
7943
  return null;
7928
7944
  }, [t]);
7929
- return e ? /* @__PURE__ */ V(vd, {
7945
+ return e ? /* @__PURE__ */ V(yd, {
7930
7946
  className: D("h-11 w-11"),
7931
- children: [/* @__PURE__ */ B(bd, {
7947
+ children: [/* @__PURE__ */ B(xd, {
7932
7948
  src: r?.media?.location,
7933
7949
  alt: r?.alt || "User Profile"
7934
- }), /* @__PURE__ */ B(Sd, {
7950
+ }), /* @__PURE__ */ B(Cd, {
7935
7951
  className: D("bg-brand text-brand-foreground"),
7936
7952
  children: n
7937
7953
  })]
7938
7954
  }) : null;
7939
- }, du = ({ forumKey: e, onPostCreated: t }) => {
7940
- let { forum: n, isMember: r, isLoadingMembership: i, isInviteOnly: a } = fl(), { isAuthLoaded: o, isLoggedIn: s, account: c } = C(), [l, u] = R(!1), d = (e) => {
7955
+ }, fu = ({ forumKey: e, onPostCreated: t }) => {
7956
+ let { forum: n, isMember: r, isLoadingMembership: i, isInviteOnly: a } = pl(), { isAuthLoaded: o, isLoggedIn: s, account: c } = C(), [l, u] = R(!1), d = (e) => {
7941
7957
  t?.(e), u(!1);
7942
7958
  }, f = I(() => {
7943
7959
  if (!c) return "there";
@@ -7967,9 +7983,9 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7967
7983
  })]
7968
7984
  }), /* @__PURE__ */ V("div", {
7969
7985
  className: "flex gap-3",
7970
- children: [/* @__PURE__ */ B(uu, {}), /* @__PURE__ */ B("div", {
7986
+ children: [/* @__PURE__ */ B(du, {}), /* @__PURE__ */ B("div", {
7971
7987
  className: "mt-0.5 w-full flex-1 space-y-2",
7972
- children: /* @__PURE__ */ B(Zl, {
7988
+ children: /* @__PURE__ */ B(Ql, {
7973
7989
  name: "comment",
7974
7990
  placeholder: "What's on your mind?",
7975
7991
  inputStyles: "border-[#D1D6E1] bg-[#F0F4FA] text-sm sm:placeholder:text-sm placeholder:text-[#717C91] focus-visible:ring-[#D1D6E1] focus-visible:ring-1 h-10",
@@ -7977,7 +7993,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7977
7993
  })
7978
7994
  })]
7979
7995
  })]
7980
- }), /* @__PURE__ */ B(El, {
7996
+ }), /* @__PURE__ */ B(Dl, {
7981
7997
  isOpen: l,
7982
7998
  handleCreateForumPostModalOpen: u,
7983
7999
  useCustomOpenState: !0,
@@ -7985,18 +8001,18 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
7985
8001
  onSuccess: d,
7986
8002
  onClose: () => u(!1)
7987
8003
  })] });
7988
- }, fu = ({ post: e, isRenderedSolo: t = !1 }) => {
8004
+ }, pu = ({ post: e, isRenderedSolo: t = !1 }) => {
7989
8005
  switch (e?.kind) {
7990
- case $e.gallery: return /* @__PURE__ */ B(Il, {
8006
+ case $e.gallery: return /* @__PURE__ */ B(Ll, {
7991
8007
  post: e,
7992
8008
  isRenderedSolo: t
7993
8009
  });
7994
- case $e.link: return /* @__PURE__ */ B(Fl, { post: e });
7995
- case $e.poll: return /* @__PURE__ */ B(Vl, { post: e });
8010
+ case $e.link: return /* @__PURE__ */ B(Il, { post: e });
8011
+ case $e.poll: return /* @__PURE__ */ B(Hl, { post: e });
7996
8012
  case $e.post:
7997
8013
  default: return null;
7998
8014
  }
7999
- }, pu = () => /* @__PURE__ */ V("div", {
8015
+ }, mu = () => /* @__PURE__ */ V("div", {
8000
8016
  className: "flex flex-col items-center justify-center gap-2 rounded-lg border border-[#E5E5E5] bg-gray-50/60 p-8",
8001
8017
  children: [/* @__PURE__ */ B("div", {
8002
8018
  className: "flex h-12 w-12 items-center justify-center rounded-full bg-gray-200",
@@ -8008,17 +8024,17 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8008
8024
  className: "font-medium text-sm text-text-1",
8009
8025
  children: "This post has been deleted"
8010
8026
  })]
8011
- }), mu = ({ post: e, isRenderedSolo: t = !1, postDetailPageURLPattern: n, postListingPageURL: r, actionsLoadingState: i, forumKey: a, wrapperStyles: o }) => {
8027
+ }), hu = ({ post: e, isRenderedSolo: t = !1, postDetailPageURLPattern: n, postListingPageURL: r, actionsLoadingState: i, forumKey: a, wrapperStyles: o }) => {
8012
8028
  let [s, c] = R(e);
8013
8029
  return F(() => {
8014
8030
  c(e);
8015
- }, [e]), e?.kind === "poll" ? null : s?.deleted_at ? /* @__PURE__ */ B(pu, {}) : /* @__PURE__ */ B(hu, {
8031
+ }, [e]), e?.kind === "poll" ? null : s?.deleted_at ? /* @__PURE__ */ B(mu, {}) : /* @__PURE__ */ B(gu, {
8016
8032
  post: e,
8017
8033
  postDetailPageURLPattern: t ? null : n,
8018
8034
  children: /* @__PURE__ */ V("div", {
8019
8035
  className: D("flex flex-col gap-3 rounded-lg border border-[#E5E5E5] bg-white p-3", t && "border-none px-0 py-0", o),
8020
8036
  children: [
8021
- /* @__PURE__ */ B(Ol, {
8037
+ /* @__PURE__ */ B(kl, {
8022
8038
  post: e,
8023
8039
  isRenderedSolo: t,
8024
8040
  forumKey: a,
@@ -8029,13 +8045,13 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8029
8045
  }),
8030
8046
  /* @__PURE__ */ V("div", {
8031
8047
  className: "space-y-0",
8032
- children: [/* @__PURE__ */ B(kl, { post: e }), /* @__PURE__ */ V("div", {
8048
+ children: [/* @__PURE__ */ B(Al, { post: e }), /* @__PURE__ */ V("div", {
8033
8049
  className: "space-y-2",
8034
- children: [/* @__PURE__ */ B(Al, { post: e }), /* @__PURE__ */ B(jl, { post: s })]
8050
+ children: [/* @__PURE__ */ B(jl, { post: e }), /* @__PURE__ */ B(Ml, { post: s })]
8035
8051
  })]
8036
8052
  }),
8037
- /* @__PURE__ */ B(fu, { post: e }),
8038
- /* @__PURE__ */ B(Pl, {
8053
+ /* @__PURE__ */ B(pu, { post: e }),
8054
+ /* @__PURE__ */ B(Fl, {
8039
8055
  post: e,
8040
8056
  forumKey: a || "",
8041
8057
  isRenderedSolo: t,
@@ -8045,7 +8061,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8045
8061
  ]
8046
8062
  })
8047
8063
  });
8048
- }, hu = ({ post: e, children: t, postDetailPageURLPattern: n }) => n ? /* @__PURE__ */ B("div", {
8064
+ }, gu = ({ post: e, children: t, postDetailPageURLPattern: n }) => n ? /* @__PURE__ */ B("div", {
8049
8065
  onClick: (t) => {
8050
8066
  if (!n) return;
8051
8067
  let r = t.target;
@@ -8055,7 +8071,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8055
8071
  },
8056
8072
  className: "cursor-pointer",
8057
8073
  children: t
8058
- }) : /* @__PURE__ */ B(z, { children: t }), gu = ({ onSubmit: e, isSubmitting: t, error: n, communityName: r = "this community", className: i }) => {
8074
+ }) : /* @__PURE__ */ B(z, { children: t }), _u = ({ onSubmit: e, isSubmitting: t, error: n, communityName: r = "this community", className: i }) => {
8059
8075
  let [a, o] = R(""), [s, c] = R("idle");
8060
8076
  return s === "success" ? /* @__PURE__ */ V("div", {
8061
8077
  className: D("flex flex-col items-center gap-3", i),
@@ -8088,7 +8104,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8088
8104
  className: "font-medium text-text-2 text-xs",
8089
8105
  children: "Message (optional)"
8090
8106
  }),
8091
- /* @__PURE__ */ B(Ad, {
8107
+ /* @__PURE__ */ B(jd, {
8092
8108
  id: "join-message",
8093
8109
  name: "join-message",
8094
8110
  placeholder: "Tell the admins why you'd like to join...",
@@ -8128,7 +8144,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8128
8144
  })
8129
8145
  ]
8130
8146
  });
8131
- }, _u = ({ opacity: e = 1 }) => /* @__PURE__ */ V("div", {
8147
+ }, vu = ({ opacity: e = 1 }) => /* @__PURE__ */ V("div", {
8132
8148
  className: "flex w-full gap-3",
8133
8149
  style: { opacity: e },
8134
8150
  children: [/* @__PURE__ */ B(Q, { className: "h-10 w-10 flex-shrink-0 rounded-full" }), /* @__PURE__ */ V("div", {
@@ -8152,8 +8168,8 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8152
8168
  })
8153
8169
  ]
8154
8170
  })]
8155
- }), vu = ({ communityName: e = "this community", className: t }) => {
8156
- let { isLoggedIn: n } = C(), { openModal: r } = T(), { isJoinRequestPending: i, allowJoinRequests: a, submitJoinRequest: o } = fl(), [s, c] = R(!1), [l, u] = R(null), d = () => {
8171
+ }), yu = ({ communityName: e = "this community", className: t }) => {
8172
+ let { isLoggedIn: n } = C(), { openModal: r } = T(), { isJoinRequestPending: i, allowJoinRequests: a, submitJoinRequest: o } = pl(), [s, c] = R(!1), [l, u] = R(null), d = () => {
8157
8173
  r("login", {});
8158
8174
  }, f = n && i;
8159
8175
  return /* @__PURE__ */ V("div", {
@@ -8161,9 +8177,9 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8161
8177
  children: [/* @__PURE__ */ V("div", {
8162
8178
  className: "pointer-events-none flex flex-col gap-y-4 blur-[2px]",
8163
8179
  children: [
8164
- /* @__PURE__ */ B(_u, { opacity: .7 }),
8165
- /* @__PURE__ */ B(_u, { opacity: .5 }),
8166
- /* @__PURE__ */ B(_u, { opacity: .3 })
8180
+ /* @__PURE__ */ B(vu, { opacity: .7 }),
8181
+ /* @__PURE__ */ B(vu, { opacity: .5 }),
8182
+ /* @__PURE__ */ B(vu, { opacity: .3 })
8167
8183
  ]
8168
8184
  }), /* @__PURE__ */ B("div", {
8169
8185
  className: "absolute inset-0 flex items-center justify-center bg-white/60 backdrop-blur-[1px]",
@@ -8188,7 +8204,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8188
8204
  }) : a ? /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("p", {
8189
8205
  className: "text-text-2 text-xs",
8190
8206
  children: "This community is invite-only. Submit a request to join and access comments."
8191
- }), /* @__PURE__ */ B(gu, {
8207
+ }), /* @__PURE__ */ B(_u, {
8192
8208
  onSubmit: async (e) => {
8193
8209
  c(!0), u(null);
8194
8210
  try {
@@ -8223,7 +8239,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8223
8239
  })
8224
8240
  })]
8225
8241
  });
8226
- }, yu = ({ communityName: e = "this community", className: t }) => /* @__PURE__ */ V("div", {
8242
+ }, bu = ({ communityName: e = "this community", className: t }) => /* @__PURE__ */ V("div", {
8227
8243
  className: D("flex flex-col items-center gap-3", t),
8228
8244
  children: [
8229
8245
  /* @__PURE__ */ B("div", {
@@ -8243,7 +8259,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8243
8259
  ]
8244
8260
  })
8245
8261
  ]
8246
- }), bu = ({ opacity: e = 1 }) => /* @__PURE__ */ V("div", {
8262
+ }), xu = ({ opacity: e = 1 }) => /* @__PURE__ */ V("div", {
8247
8263
  className: "flex flex-col gap-3 rounded-lg border border-[#E5E5E5] bg-white p-3",
8248
8264
  style: { opacity: e },
8249
8265
  children: [
@@ -8274,8 +8290,8 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8274
8290
  ]
8275
8291
  })
8276
8292
  ]
8277
- }), xu = ({ isOpen: e, communityName: t = "this community", className: n }) => {
8278
- let { isLoggedIn: r } = C(), { openModal: i } = T(), { isJoinRequestPending: a, allowJoinRequests: o, submitJoinRequest: s } = fl(), [c, l] = R(!1), [u, d] = R(null), f = () => {
8293
+ }), Su = ({ isOpen: e, communityName: t = "this community", className: n }) => {
8294
+ let { isLoggedIn: r } = C(), { openModal: i } = T(), { isJoinRequestPending: a, allowJoinRequests: o, submitJoinRequest: s } = pl(), [c, l] = R(!1), [u, d] = R(null), f = () => {
8279
8295
  i("login", {});
8280
8296
  }, p = async (e) => {
8281
8297
  l(!0), d(null);
@@ -8315,7 +8331,7 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8315
8331
  }) : o ? /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(de, {
8316
8332
  className: "text-center text-sm text-text-2",
8317
8333
  children: "This community is invite-only. Submit a request to join and get access to posts."
8318
- }), /* @__PURE__ */ B(gu, {
8334
+ }), /* @__PURE__ */ B(_u, {
8319
8335
  onSubmit: p,
8320
8336
  isSubmitting: c,
8321
8337
  error: u,
@@ -8340,11 +8356,11 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8340
8356
  })
8341
8357
  })
8342
8358
  });
8343
- }, Su = ({ inputStyles: e, ...t }) => /* @__PURE__ */ B(Zl, {
8359
+ }, Cu = ({ inputStyles: e, ...t }) => /* @__PURE__ */ B(Ql, {
8344
8360
  inputStyles: D("border-[#D1D6E1] bg-white text-sm placeholder:text-[#717C91] focus-visible:ring-1 focus-visible:ring-[#D1D6E1] sm:placeholder:text-sm", e),
8345
8361
  leftIcon: /* @__PURE__ */ B(It, { size: 16 }),
8346
8362
  ...t
8347
- }), Cu = Ne(({ children: e, className: t, config: n, content: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
8363
+ }), wu = Ne(({ children: e, className: t, config: n, content: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
8348
8364
  let l = e ?? r;
8349
8365
  return typeof l == "string" ? /* @__PURE__ */ B(`h${n?.heading?.level ?? 2}`, {
8350
8366
  ref: c,
@@ -8355,8 +8371,8 @@ var au = ({ wrapperStyles: e }) => /* @__PURE__ */ V("div", {
8355
8371
  children: l ? Ge(l) : ""
8356
8372
  }) : null;
8357
8373
  });
8358
- Cu.displayName = "BaseHeading";
8359
- var wu = d(Cu), Tu = Ne(({ className: e, elementKey: t, generatedClassName: n, content: i, styles: a, ...o }, s) => {
8374
+ wu.displayName = "BaseHeading";
8375
+ var Tu = d(wu), Eu = Ne(({ className: e, elementKey: t, generatedClassName: n, content: i, styles: a, ...o }, s) => {
8360
8376
  let { isStudio: c } = r();
8361
8377
  return /* @__PURE__ */ B("div", {
8362
8378
  ref: s,
@@ -8367,9 +8383,9 @@ var wu = d(Cu), Tu = Ne(({ className: e, elementKey: t, generatedClassName: n, c
8367
8383
  children: typeof i == "string" ? Ge(i) : ""
8368
8384
  });
8369
8385
  });
8370
- Tu.displayName = "BaseIframe";
8371
- var Eu = d(Tu), Du = "(max-width: 640px)", Ou = "(max-width: 1024px)";
8372
- function ku(e) {
8386
+ Eu.displayName = "BaseIframe";
8387
+ var Du = d(Eu), Ou = "(max-width: 640px)", ku = "(max-width: 1024px)";
8388
+ function Au(e) {
8373
8389
  if (e) {
8374
8390
  if (e.srcset?.path) return e.srcset.path;
8375
8391
  if (e.srcset) {
@@ -8379,17 +8395,17 @@ function ku(e) {
8379
8395
  return e.location || void 0;
8380
8396
  }
8381
8397
  }
8382
- var Au = ({ responsive: e }) => {
8398
+ var ju = ({ responsive: e }) => {
8383
8399
  if (!e) return null;
8384
- let t = ku(e.mobile), n = ku(e.tablet);
8400
+ let t = Au(e.mobile), n = Au(e.tablet);
8385
8401
  return !t && !n ? null : /* @__PURE__ */ V(z, { children: [t && /* @__PURE__ */ B("source", {
8386
- media: Du,
8402
+ media: Ou,
8387
8403
  srcSet: t
8388
8404
  }), n && /* @__PURE__ */ B("source", {
8389
- media: Ou,
8405
+ media: ku,
8390
8406
  srcSet: n
8391
8407
  })] });
8392
- }, ju = Ne(({ className: e, image: t, alt: n, width: r, height: i, config: a, content: o, styles: s, elementKey: c, generatedClassName: l, ...u }, d) => {
8408
+ }, Mu = Ne(({ className: e, image: t, alt: n, width: r, height: i, config: a, content: o, styles: s, elementKey: c, generatedClassName: l, ...u }, d) => {
8393
8409
  let f = t ?? o;
8394
8410
  if (!f?.location) return /* @__PURE__ */ B("span", {
8395
8411
  ref: d,
@@ -8412,11 +8428,11 @@ var Au = ({ responsive: e }) => {
8412
8428
  });
8413
8429
  return !p?.mobile && !p?.tablet ? m : /* @__PURE__ */ V("picture", {
8414
8430
  style: { display: "contents" },
8415
- children: [/* @__PURE__ */ B(Au, { responsive: p }), m]
8431
+ children: [/* @__PURE__ */ B(ju, { responsive: p }), m]
8416
8432
  });
8417
8433
  });
8418
- ju.displayName = "BaseImage";
8419
- var Mu = d(ju), Nu = Ne(({ children: e, className: t, config: n, content: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
8434
+ Mu.displayName = "BaseImage";
8435
+ var Nu = d(Mu), Pu = Ne(({ children: e, className: t, config: n, content: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
8420
8436
  let l = n?.action?.type === "external_link" ? n?.action?.value : n?.action?.type === "email" ? `mailto:${n?.action?.value}` : n?.action?.type === "phone" ? `tel:${n?.action?.value}` : "#";
8421
8437
  return /* @__PURE__ */ B("a", {
8422
8438
  ref: c,
@@ -8428,8 +8444,8 @@ var Mu = d(ju), Nu = Ne(({ children: e, className: t, config: n, content: r, sty
8428
8444
  children: typeof e == "string" ? Ge(Xn.sanitize(e)) : e
8429
8445
  });
8430
8446
  });
8431
- Nu.displayName = "BaseLink";
8432
- var Pu = d(Nu), Fu = Ne(({ className: e, media: t, alt: n, width: r, height: i, content: a, config: o, styles: s, elementKey: c, generatedClassName: l, isVideo: u, ...d }, f) => {
8447
+ Pu.displayName = "BaseLink";
8448
+ var Fu = d(Pu), Iu = Ne(({ className: e, media: t, alt: n, width: r, height: i, content: a, config: o, styles: s, elementKey: c, generatedClassName: l, isVideo: u, ...d }, f) => {
8433
8449
  let p = t ?? a;
8434
8450
  if (!p?.location) return /* @__PURE__ */ B("span", {
8435
8451
  ref: f,
@@ -8476,11 +8492,11 @@ var Pu = d(Nu), Fu = Ne(({ className: e, media: t, alt: n, width: r, height: i,
8476
8492
  });
8477
8493
  return !m?.mobile && !m?.tablet ? h : /* @__PURE__ */ V("picture", {
8478
8494
  style: { display: "contents" },
8479
- children: [/* @__PURE__ */ B(Au, { responsive: m }), h]
8495
+ children: [/* @__PURE__ */ B(ju, { responsive: m }), h]
8480
8496
  });
8481
8497
  });
8482
- Fu.displayName = "BaseMedia";
8483
- var Iu = d(Fu), Lu = [
8498
+ Iu.displayName = "BaseMedia";
8499
+ var Lu = d(Iu), Ru = [
8484
8500
  {
8485
8501
  id: "subtle-grid",
8486
8502
  name: "Subtle Grid",
@@ -8582,7 +8598,7 @@ var Iu = d(Fu), Lu = [
8582
8598
  }
8583
8599
  }
8584
8600
  }
8585
- ], Ru = {
8601
+ ], zu = {
8586
8602
  minimal: {
8587
8603
  label: "Minimal",
8588
8604
  description: "Clean, subtle effects that enhance without overwhelming"
@@ -8599,17 +8615,17 @@ var Iu = d(Fu), Lu = [
8599
8615
  label: "Custom",
8600
8616
  description: "User-created custom presets"
8601
8617
  }
8602
- }, zu = Object.fromEntries(Lu.map((e) => [e.id, e]));
8603
- function Bu(e) {
8604
- return Lu.filter((t) => t.category === e);
8618
+ }, Bu = Object.fromEntries(Ru.map((e) => [e.id, e]));
8619
+ function Vu(e) {
8620
+ return Ru.filter((t) => t.category === e);
8605
8621
  }
8606
- function Vu() {
8607
- return Object.keys(Ru);
8622
+ function Hu() {
8623
+ return Object.keys(zu);
8608
8624
  }
8609
8625
  //#endregion
8610
8626
  //#region src/components/backgroundPresets/presetUtils.ts
8611
- var Hu = (e) => zu[e] || null, Uu = (e) => {
8612
- let t = Hu(e);
8627
+ var Uu = (e) => Bu[e] || null, Wu = (e) => {
8628
+ let t = Uu(e);
8613
8629
  return t ? {
8614
8630
  success: !0,
8615
8631
  config: t.effect
@@ -8617,10 +8633,10 @@ var Hu = (e) => zu[e] || null, Uu = (e) => {
8617
8633
  success: !1,
8618
8634
  error: `Preset with ID "${e}" not found`
8619
8635
  };
8620
- }, Wu = (e) => {
8621
- let t = Uu(e);
8636
+ }, Gu = (e) => {
8637
+ let t = Wu(e);
8622
8638
  return t.success ? t.config : null;
8623
- }, Gu = (e) => /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e) || /^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(e) || /^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*[01]?\.?\d*\s*\)$/.test(e) || /^hsl\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*\)$/.test(e) || /^hsla\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*,\s*[01]?\.?\d*\s*\)$/.test(e) || [
8639
+ }, Ku = (e) => /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e) || /^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(e) || /^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*[01]?\.?\d*\s*\)$/.test(e) || /^hsl\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*\)$/.test(e) || /^hsla\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*,\s*[01]?\.?\d*\s*\)$/.test(e) || [
8624
8640
  "transparent",
8625
8641
  "black",
8626
8642
  "white",
@@ -8639,7 +8655,7 @@ var Hu = (e) => zu[e] || null, Uu = (e) => {
8639
8655
  "purple",
8640
8656
  "brown",
8641
8657
  "pink"
8642
- ].includes(e.toLowerCase()), Ku = (e) => {
8658
+ ].includes(e.toLowerCase()), qu = (e) => {
8643
8659
  let t = {
8644
8660
  type: e.type,
8645
8661
  colors: e.colors ? { ...e.colors } : void 0,
@@ -8647,7 +8663,7 @@ var Hu = (e) => zu[e] || null, Uu = (e) => {
8647
8663
  };
8648
8664
  if (t.colors && (Object.keys(t.colors).forEach((e) => {
8649
8665
  let n = e, r = t.colors[n];
8650
- r && !Gu(r) && delete t.colors[n];
8666
+ r && !Ku(r) && delete t.colors[n];
8651
8667
  }), Object.keys(t.colors).length === 0 && (t.colors = void 0)), t.settings) switch (t.settings.opacity !== void 0 && (t.settings.opacity = Math.max(0, Math.min(1, t.settings.opacity))), e.type) {
8652
8668
  case "grid":
8653
8669
  t.settings.lineWidth !== void 0 && t.settings.lineWidth < 0 && (t.settings.lineWidth = 0), t.settings.spacing !== void 0 && t.settings.spacing <= 0 && (t.settings.spacing = 20);
@@ -8663,9 +8679,9 @@ var Hu = (e) => zu[e] || null, Uu = (e) => {
8663
8679
  break;
8664
8680
  }
8665
8681
  return t;
8666
- }, qu = Pe(() => import("./Beams-WJN38XSv.js").then((e) => ({ default: e.BackgroundBeams }))), Ju = Pe(() => import("./Dots-DggLz5I7.js").then((e) => ({ default: e.BackgroundDots }))), Yu = Pe(() => import("./Grid-BFKl0MUt.js").then((e) => ({ default: e.BackgroundGrid }))), Xu = Pe(() => import("./Gradient-BSWJAu0a.js").then((e) => ({ default: e.BackgroundGradient }))), Zu = Pe(() => import("./Waves-BPEgTYoO.js").then((e) => ({ default: e.BackgroundWaves }))), Qu = Fe(() => /* @__PURE__ */ B("div", { className: "absolute inset-0 z-[-1] bg-transparent" }));
8667
- Qu.displayName = "EffectFallback";
8668
- var $u = Fe(({ config: e }) => {
8682
+ }, Ju = Pe(() => import("./Beams-WJN38XSv.js").then((e) => ({ default: e.BackgroundBeams }))), Yu = Pe(() => import("./Dots-DggLz5I7.js").then((e) => ({ default: e.BackgroundDots }))), Xu = Pe(() => import("./Grid-BFKl0MUt.js").then((e) => ({ default: e.BackgroundGrid }))), Zu = Pe(() => import("./Gradient-BSWJAu0a.js").then((e) => ({ default: e.BackgroundGradient }))), Qu = Pe(() => import("./Waves-BPEgTYoO.js").then((e) => ({ default: e.BackgroundWaves }))), $u = Fe(() => /* @__PURE__ */ B("div", { className: "absolute inset-0 z-[-1] bg-transparent" }));
8683
+ $u.displayName = "EffectFallback";
8684
+ var ed = Fe(({ config: e }) => {
8669
8685
  let { type: t, colors: n, settings: r } = e, i = I(() => {
8670
8686
  switch (t) {
8671
8687
  case "beams": return {
@@ -8707,19 +8723,19 @@ var $u = Fe(({ config: e }) => {
8707
8723
  r
8708
8724
  ]);
8709
8725
  switch (t) {
8710
- case "beams": return /* @__PURE__ */ B(qu, { ...i });
8711
- case "dots": return /* @__PURE__ */ B(Ju, { ...i });
8712
- case "grid": return /* @__PURE__ */ B(Yu, { ...i });
8713
- case "gradient": return /* @__PURE__ */ B(Xu, { ...i });
8714
- case "waves": return /* @__PURE__ */ B(Zu, { ...i });
8726
+ case "beams": return /* @__PURE__ */ B(Ju, { ...i });
8727
+ case "dots": return /* @__PURE__ */ B(Yu, { ...i });
8728
+ case "grid": return /* @__PURE__ */ B(Xu, { ...i });
8729
+ case "gradient": return /* @__PURE__ */ B(Zu, { ...i });
8730
+ case "waves": return /* @__PURE__ */ B(Qu, { ...i });
8715
8731
  default: return null;
8716
8732
  }
8717
8733
  });
8718
- $u.displayName = "EffectRenderer";
8719
- var ed = Fe(({ config: e, presetId: t }) => {
8734
+ ed.displayName = "EffectRenderer";
8735
+ var td = Fe(({ config: e, presetId: t }) => {
8720
8736
  let n = I(() => {
8721
8737
  if (t) {
8722
- let n = Wu(t);
8738
+ let n = Gu(t);
8723
8739
  if (n) return e ? {
8724
8740
  ...n,
8725
8741
  ...e
@@ -8729,28 +8745,28 @@ var ed = Fe(({ config: e, presetId: t }) => {
8729
8745
  return e || null;
8730
8746
  }, [e, t]);
8731
8747
  return n ? /* @__PURE__ */ B(je, {
8732
- fallback: /* @__PURE__ */ B(Qu, {}),
8733
- children: /* @__PURE__ */ B($u, { config: n })
8748
+ fallback: /* @__PURE__ */ B($u, {}),
8749
+ children: /* @__PURE__ */ B(ed, { config: n })
8734
8750
  }) : null;
8735
8751
  });
8736
- ed.displayName = "BackgroundEffects";
8752
+ td.displayName = "BackgroundEffects";
8737
8753
  //#endregion
8738
8754
  //#region src/elements/Section.tsx
8739
- var td = Ne(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ V("section", {
8755
+ var nd = Ne(({ children: e, className: t, elementKey: n, generatedClassName: r, content: i, config: a, styles: o, ...s }, c) => /* @__PURE__ */ V("section", {
8740
8756
  ref: c,
8741
8757
  "data-levo_element_key": n,
8742
8758
  "data-levo_element_type": "Section",
8743
8759
  className: D(t, r),
8744
8760
  ...s,
8745
8761
  children: [
8746
- /* @__PURE__ */ B(Vc, { backgroundVideo: a?.backgroundVideo }),
8747
- /* @__PURE__ */ B(ed, { config: a?.backgroundEffects }),
8762
+ /* @__PURE__ */ B(Hc, { backgroundVideo: a?.backgroundVideo }),
8763
+ /* @__PURE__ */ B(td, { config: a?.backgroundEffects }),
8748
8764
  e
8749
8765
  ]
8750
8766
  }));
8751
- td.displayName = "BaseSection";
8752
- var nd = d(td), rd = Xt.Root;
8753
- function id({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
8767
+ nd.displayName = "BaseSection";
8768
+ var rd = d(nd), id = Xt.Root;
8769
+ function ad({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
8754
8770
  return /* @__PURE__ */ B(Xt.List, {
8755
8771
  ref: o,
8756
8772
  "data-levo_element_key": t,
@@ -8759,8 +8775,8 @@ function id({ className: e, elementKey: t, generatedClassName: n, content: r, co
8759
8775
  ...s
8760
8776
  });
8761
8777
  }
8762
- id.displayName = "BaseTabsList";
8763
- function ad({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
8778
+ ad.displayName = "BaseTabsList";
8779
+ function od({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
8764
8780
  return /* @__PURE__ */ B(Xt.Trigger, {
8765
8781
  ref: o,
8766
8782
  "data-levo_element_key": t,
@@ -8770,8 +8786,8 @@ function ad({ className: e, elementKey: t, generatedClassName: n, content: r, co
8770
8786
  children: r
8771
8787
  });
8772
8788
  }
8773
- ad.displayName = "BaseTabsTrigger";
8774
- function od({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
8789
+ od.displayName = "BaseTabsTrigger";
8790
+ function sd({ className: e, elementKey: t, generatedClassName: n, content: r, config: i, styles: a, ref: o, ...s }) {
8775
8791
  return /* @__PURE__ */ B(Xt.Content, {
8776
8792
  ref: o,
8777
8793
  "data-levo_element_key": t,
@@ -8780,20 +8796,20 @@ function od({ className: e, elementKey: t, generatedClassName: n, content: r, co
8780
8796
  ...s
8781
8797
  });
8782
8798
  }
8783
- od.displayName = "BaseTabsContent";
8784
- var sd = d(id), cd = d(ad), ld = d(od), ud = { TypographyBaseStyles: "_TypographyBaseStyles_wqur5_1" }, dd = Ne(({ children: e, className: t, content: n, config: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
8799
+ sd.displayName = "BaseTabsContent";
8800
+ var cd = d(ad), ld = d(od), ud = d(sd), dd = { TypographyBaseStyles: "_TypographyBaseStyles_wqur5_1" }, fd = Ne(({ children: e, className: t, content: n, config: r, styles: i, elementKey: a, generatedClassName: o, ...s }, c) => {
8785
8801
  let l = Xn.sanitize(e || n);
8786
8802
  return /* @__PURE__ */ B("div", {
8787
8803
  ref: c,
8788
8804
  "data-levo_element_key": a,
8789
8805
  "data-levo_element_type": "Typography",
8790
- className: D(ud.TypographyBaseStyles, t, o, !l && "text-muted-foreground"),
8806
+ className: D(dd.TypographyBaseStyles, t, o, !l && "text-muted-foreground"),
8791
8807
  ...s,
8792
8808
  children: l ? Ge(l) : ""
8793
8809
  });
8794
8810
  });
8795
- dd.displayName = "BaseTypography";
8796
- var fd = d(dd), $ = {
8811
+ fd.displayName = "BaseTypography";
8812
+ var pd = d(fd), $ = {
8797
8813
  userMenu: "_userMenu_366z5_1",
8798
8814
  userAvatar: "_userAvatar_366z5_5",
8799
8815
  avatarCircle: "_avatarCircle_366z5_14",
@@ -8809,7 +8825,7 @@ var fd = d(dd), $ = {
8809
8825
  logoutItem: "_logoutItem_366z5_115",
8810
8826
  spinner: "_spinner_366z5_124",
8811
8827
  spin: "_spin_366z5_124"
8812
- }, pd = ({ elementKey: e, className: t, config: n }) => {
8828
+ }, md = ({ elementKey: e, className: t, config: n }) => {
8813
8829
  let { isLoggedIn: r, account: i, isSignOutLoading: a } = C(), { openModal: o } = T(), { signOut: s } = me();
8814
8830
  if (!n?.enabled) return null;
8815
8831
  let c = () => {
@@ -8827,7 +8843,7 @@ var fd = d(dd), $ = {
8827
8843
  className: D($.userMenu, t),
8828
8844
  "data-levo_element_key": e,
8829
8845
  "data-levo_element_type": "UserMenu",
8830
- children: r ? /* @__PURE__ */ V(xl, { children: [/* @__PURE__ */ B(wl, {
8846
+ children: r ? /* @__PURE__ */ V(Sl, { children: [/* @__PURE__ */ B(Tl, {
8831
8847
  elementKey: `${e}_trigger`,
8832
8848
  children: /* @__PURE__ */ B("div", {
8833
8849
  className: $.userAvatar,
@@ -8836,7 +8852,7 @@ var fd = d(dd), $ = {
8836
8852
  children: f()
8837
8853
  })
8838
8854
  })
8839
- }), /* @__PURE__ */ V(Tl, {
8855
+ }), /* @__PURE__ */ V(El, {
8840
8856
  side: "bottom",
8841
8857
  elementKey: `${e}_content`,
8842
8858
  className: $.userMenuPopover,
@@ -8877,7 +8893,7 @@ var fd = d(dd), $ = {
8877
8893
  children: "Login"
8878
8894
  })
8879
8895
  });
8880
- }, md = d(pd), hd = ({ booking: e, summary: t, onClose: n }) => {
8896
+ }, hd = d(md), gd = ({ booking: e, summary: t, onClose: n }) => {
8881
8897
  let r = (e, t) => {
8882
8898
  let n = e / 100;
8883
8899
  return new Intl.NumberFormat("en-IN", {
@@ -8969,7 +8985,7 @@ var fd = d(dd), $ = {
8969
8985
  })
8970
8986
  ]
8971
8987
  });
8972
- }, gd = ({ summary: e, onPay: t, isLoading: n }) => {
8988
+ }, _d = ({ summary: e, onPay: t, isLoading: n }) => {
8973
8989
  let r = (e, t) => {
8974
8990
  let n = e / 100;
8975
8991
  return new Intl.NumberFormat(void 0, {
@@ -9041,7 +9057,7 @@ var fd = d(dd), $ = {
9041
9057
  })
9042
9058
  ]
9043
9059
  });
9044
- }, _d = ({ isOpen: e, onClose: t, contentId: n, collectionKey: r }) => {
9060
+ }, vd = ({ isOpen: e, onClose: t, contentId: n, collectionKey: r }) => {
9045
9061
  let i = M(), { workspace: a } = C(), { Razorpay: o } = rr(), { stripePromise: s, config: c, isOpen: l, openStripeCheckout: u, closeStripeCheckout: d, setOnComplete: f } = he(), [p, m] = R("loading"), [h, g] = R(null), [_, v] = R(null), [y, b] = R(!1), [x, S] = R(null), w = L(null), T = P(async (e) => {
9046
9062
  try {
9047
9063
  let t = await i?.fetch?.url(`/v1/payment/booking/${e}/summary`)?.options({ headers: { Origin: a?.id || "" } })?.get().json();
@@ -9173,12 +9189,12 @@ var fd = d(dd), $ = {
9173
9189
  children: "Creating your booking..."
9174
9190
  })]
9175
9191
  }),
9176
- p === "summary" && _ && /* @__PURE__ */ B(gd, {
9192
+ p === "summary" && _ && /* @__PURE__ */ B(_d, {
9177
9193
  summary: _,
9178
9194
  onPay: O,
9179
9195
  isLoading: y
9180
9196
  }),
9181
- p === "confirmation" && h && /* @__PURE__ */ B(hd, {
9197
+ p === "confirmation" && h && /* @__PURE__ */ B(gd, {
9182
9198
  booking: h,
9183
9199
  summary: _,
9184
9200
  onClose: te
@@ -9195,14 +9211,14 @@ var fd = d(dd), $ = {
9195
9211
  };
9196
9212
  //#endregion
9197
9213
  //#region src/components/ui/base/avatar.tsx
9198
- function vd({ className: e, ...t }) {
9214
+ function yd({ className: e, ...t }) {
9199
9215
  return /* @__PURE__ */ B(qt.Root, {
9200
9216
  "data-slot": "avatar",
9201
9217
  className: D("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
9202
9218
  ...t
9203
9219
  });
9204
9220
  }
9205
- function yd({ className: e, isActive: t, ...n }) {
9221
+ function bd({ className: e, isActive: t, ...n }) {
9206
9222
  return /* @__PURE__ */ V("div", {
9207
9223
  className: "relative inline-block h-full w-full overflow-hidden",
9208
9224
  children: [/* @__PURE__ */ B(qt.Image, {
@@ -9212,14 +9228,14 @@ function yd({ className: e, isActive: t, ...n }) {
9212
9228
  }), t && /* @__PURE__ */ B("span", { className: "absolute right-0 bottom-0 h-2.5 w-2.5 rounded-full border-2 border-white bg-green-500" })]
9213
9229
  });
9214
9230
  }
9215
- function bd({ className: e, ...t }) {
9231
+ function xd({ className: e, ...t }) {
9216
9232
  return /* @__PURE__ */ B(qt.Image, {
9217
9233
  "data-slot": "avatar-image",
9218
9234
  className: D("aspect-square size-full", e),
9219
9235
  ...t
9220
9236
  });
9221
9237
  }
9222
- function xd({ className: e, isActive: t, ...n }) {
9238
+ function Sd({ className: e, isActive: t, ...n }) {
9223
9239
  return /* @__PURE__ */ V("div", {
9224
9240
  className: "relative inline-block h-full w-full overflow-hidden",
9225
9241
  children: [/* @__PURE__ */ B(qt.Fallback, {
@@ -9229,28 +9245,28 @@ function xd({ className: e, isActive: t, ...n }) {
9229
9245
  }), t && /* @__PURE__ */ B("span", { className: "absolute right-0 bottom-0 h-2.5 w-2.5 rounded-full border-2 border-white bg-green-500" })]
9230
9246
  });
9231
9247
  }
9232
- function Sd({ className: e, ...t }) {
9248
+ function Cd({ className: e, ...t }) {
9233
9249
  return /* @__PURE__ */ B(qt.Fallback, {
9234
9250
  "data-slot": "avatar-fallback",
9235
9251
  className: D("flex size-full items-center justify-center rounded-full bg-muted", e),
9236
9252
  ...t
9237
9253
  });
9238
9254
  }
9239
- function Cd({ className: e, ...t }) {
9255
+ function wd({ className: e, ...t }) {
9240
9256
  return /* @__PURE__ */ B("span", {
9241
9257
  "data-slot": "avatar-badge",
9242
9258
  className: D("absolute right-0 bottom-0 z-10 inline-flex select-none items-center justify-center rounded-full bg-primary text-primary-foreground ring-2 ring-background", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", e),
9243
9259
  ...t
9244
9260
  });
9245
9261
  }
9246
- function wd({ className: e, ...t }) {
9262
+ function Td({ className: e, ...t }) {
9247
9263
  return /* @__PURE__ */ B("div", {
9248
9264
  "data-slot": "avatar-group",
9249
9265
  className: D("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background", e),
9250
9266
  ...t
9251
9267
  });
9252
9268
  }
9253
- function Td({ className: e, ...t }) {
9269
+ function Ed({ className: e, ...t }) {
9254
9270
  return /* @__PURE__ */ B("div", {
9255
9271
  "data-slot": "avatar-group-count",
9256
9272
  className: D("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground text-sm ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3", e),
@@ -9259,14 +9275,14 @@ function Td({ className: e, ...t }) {
9259
9275
  }
9260
9276
  //#endregion
9261
9277
  //#region src/components/ui/base/kbd.tsx
9262
- function Ed({ className: e, ...t }) {
9278
+ function Dd({ className: e, ...t }) {
9263
9279
  return /* @__PURE__ */ B("kbd", {
9264
9280
  "data-slot": "kbd",
9265
9281
  className: D("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm bg-muted in-data-[slot=tooltip-content]:bg-background/20 px-1 font-medium font-sans in-data-[slot=tooltip-content]:text-background text-muted-foreground text-xs dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3", e),
9266
9282
  ...t
9267
9283
  });
9268
9284
  }
9269
- function Dd({ className: e, ...t }) {
9285
+ function Od({ className: e, ...t }) {
9270
9286
  return /* @__PURE__ */ B("kbd", {
9271
9287
  "data-slot": "kbd-group",
9272
9288
  className: D("inline-flex items-center gap-1", e),
@@ -9275,7 +9291,7 @@ function Dd({ className: e, ...t }) {
9275
9291
  }
9276
9292
  //#endregion
9277
9293
  //#region src/components/ui/Calendar.tsx
9278
- var Od = ({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", formatters: i, components: a, ...o }) => /* @__PURE__ */ B(ir, {
9294
+ var kd = ({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", formatters: i, components: a, ...o }) => /* @__PURE__ */ B(ir, {
9279
9295
  showOutsideDays: n,
9280
9296
  className: D("group/calendar bg-background p-0 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
9281
9297
  captionLayout: r,
@@ -9336,7 +9352,7 @@ var Od = ({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout:
9336
9352
  });
9337
9353
  //#endregion
9338
9354
  //#region src/components/ui/base/textarea.tsx
9339
- function kd({ className: e, ...t }) {
9355
+ function Ad({ className: e, ...t }) {
9340
9356
  return /* @__PURE__ */ B("textarea", {
9341
9357
  "data-slot": "textarea",
9342
9358
  className: D("field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40", e),
@@ -9345,18 +9361,18 @@ function kd({ className: e, ...t }) {
9345
9361
  }
9346
9362
  //#endregion
9347
9363
  //#region src/components/ui/form/FormTextarea.tsx
9348
- var Ad = ke.forwardRef(({ name: e, label: t, isRequired: n, labelStyles: r, containerStyles: i, disabled: a, placeholder: o, readOnly: s, textAreaProps: c, textAreaStyles: l, value: u, id: d, onBlur: f, onChange: p, error: m, helperText: h, touched: g }, _) => /* @__PURE__ */ V(Xl, {
9364
+ var jd = ke.forwardRef(({ name: e, label: t, isRequired: n, labelStyles: r, containerStyles: i, disabled: a, placeholder: o, readOnly: s, textAreaProps: c, textAreaStyles: l, value: u, id: d, onBlur: f, onChange: p, error: m, helperText: h, touched: g }, _) => /* @__PURE__ */ V(Zl, {
9349
9365
  containerStyles: i,
9350
9366
  error: m,
9351
9367
  helperText: h,
9352
9368
  readOnly: s,
9353
9369
  touched: g,
9354
- children: [t && /* @__PURE__ */ B(Yl, {
9370
+ children: [t && /* @__PURE__ */ B(Xl, {
9355
9371
  htmlFor: e,
9356
9372
  isRequired: n,
9357
9373
  className: r,
9358
9374
  children: t
9359
- }), /* @__PURE__ */ B(kd, {
9375
+ }), /* @__PURE__ */ B(Ad, {
9360
9376
  id: d || e,
9361
9377
  name: e,
9362
9378
  className: D(s && "focus-visible:ring-0", l),
@@ -9370,22 +9386,22 @@ var Ad = ke.forwardRef(({ name: e, label: t, isRequired: n, labelStyles: r, cont
9370
9386
  ...c
9371
9387
  })]
9372
9388
  }));
9373
- Ad.displayName = "FormTextarea";
9389
+ jd.displayName = "FormTextarea";
9374
9390
  //#endregion
9375
9391
  //#region src/components/globalSearch/GlobalSearchDialog.tsx
9376
- var jd = {
9392
+ var Md = {
9377
9393
  page: "Page",
9378
9394
  collection: "Page",
9379
9395
  blog: "Blog",
9380
9396
  event: "Event",
9381
9397
  community: "Community"
9382
- }, Md = {
9398
+ }, Nd = {
9383
9399
  page: "View page",
9384
9400
  collection: "View page",
9385
9401
  blog: "Read article",
9386
9402
  event: "View event",
9387
9403
  community: "View post"
9388
- }, Nd = ({ result: e }) => /* @__PURE__ */ B("a", {
9404
+ }, Pd = ({ result: e }) => /* @__PURE__ */ B("a", {
9389
9405
  href: e.url,
9390
9406
  className: "cursor-pointer rounded-sm border-transparent border-l-4 bg-white p-4 shadow-sm transition-all duration-300 hover:translate-x-1 hover:border-l-brand hover:shadow-md",
9391
9407
  children: /* @__PURE__ */ V("div", {
@@ -9423,12 +9439,12 @@ var jd = {
9423
9439
  className: "flex w-full flex-wrap items-center justify-between gap-4 sm:w-fit",
9424
9440
  children: [/* @__PURE__ */ B("span", {
9425
9441
  className: "inline-flex items-center rounded-md bg-gray-100 px-2 py-1 font-semibold text-[10px] text-gray-700 uppercase tracking-wide",
9426
- children: jd?.[e?.content_type] ?? e?.content_type
9442
+ children: Md?.[e?.content_type] ?? e?.content_type
9427
9443
  }), /* @__PURE__ */ V("a", {
9428
9444
  href: e.url,
9429
9445
  onClick: (e) => e.stopPropagation(),
9430
9446
  className: "group inline-flex items-center gap-1 font-medium text-sm text-text-2 hover:text-brand",
9431
- children: [/* @__PURE__ */ B("span", { children: Md[e?.content_type] ?? "View page" }), /* @__PURE__ */ V("svg", {
9447
+ children: [/* @__PURE__ */ B("span", { children: Nd[e?.content_type] ?? "View page" }), /* @__PURE__ */ V("svg", {
9432
9448
  className: "h-4 w-4",
9433
9449
  fill: "none",
9434
9450
  stroke: "currentColor",
@@ -9447,7 +9463,7 @@ var jd = {
9447
9463
  ]
9448
9464
  })]
9449
9465
  })
9450
- }), Pd = () => /* @__PURE__ */ B("div", {
9466
+ }), Fd = () => /* @__PURE__ */ B("div", {
9451
9467
  className: "rounded-sm border-transparent border-l-4 bg-white p-4 shadow-sm",
9452
9468
  children: /* @__PURE__ */ V("div", {
9453
9469
  className: "flex flex-col items-stretch gap-4 sm:flex-row",
@@ -9470,7 +9486,7 @@ var jd = {
9470
9486
  ]
9471
9487
  })]
9472
9488
  })
9473
- }), Fd = ({ isOpen: e, handleGlobalSearchDialogOpen: t }) => {
9489
+ }), Id = ({ isOpen: e, handleGlobalSearchDialogOpen: t }) => {
9474
9490
  let n = M(), [r, i] = R(""), [a, o] = R([]), [s, c] = R(!1), [l, u] = R(null), [d, f] = R(!1), p = On(P(async (e) => {
9475
9491
  try {
9476
9492
  let t = await n.fetch.url("/v1/builder/search").query({
@@ -9506,7 +9522,7 @@ var jd = {
9506
9522
  children: [/* @__PURE__ */ B("div", {
9507
9523
  className: "border-b p-4",
9508
9524
  style: { borderColor: "var(--color-border)" },
9509
- children: /* @__PURE__ */ B(Zl, {
9525
+ children: /* @__PURE__ */ B(Ql, {
9510
9526
  name: "global-search",
9511
9527
  placeholder: "Search...",
9512
9528
  value: r,
@@ -9534,7 +9550,7 @@ var jd = {
9534
9550
  }),
9535
9551
  s && /* @__PURE__ */ B("div", {
9536
9552
  className: "flex w-full flex-col gap-y-4 px-4 py-4",
9537
- children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */ B(Pd, {}, t))
9553
+ children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */ B(Fd, {}, t))
9538
9554
  }),
9539
9555
  l && /* @__PURE__ */ B("p", {
9540
9556
  className: "px-4 py-8 text-center text-destructive text-sm",
@@ -9553,7 +9569,7 @@ var jd = {
9553
9569
  }),
9554
9570
  !s && r && a?.length > 0 && /* @__PURE__ */ B("div", {
9555
9571
  className: "flex w-full flex-col gap-y-4 px-4 py-4",
9556
- children: a?.map((e) => /* @__PURE__ */ B(Nd, { result: e }, e?.content_id))
9572
+ children: a?.map((e) => /* @__PURE__ */ B(Pd, { result: e }, e?.content_id))
9557
9573
  }),
9558
9574
  !d && r.length === 0 && !s && /* @__PURE__ */ B("p", {
9559
9575
  className: "px-4 py-8 text-center text-sm text-text-2",
@@ -9563,7 +9579,7 @@ var jd = {
9563
9579
  })]
9564
9580
  })
9565
9581
  });
9566
- }, Id = ({ variant: e = "default", hideKeyboardKey: t = !1 }) => {
9582
+ }, Ld = ({ variant: e = "default", hideKeyboardKey: t = !1 }) => {
9567
9583
  let [n, r] = R(!1);
9568
9584
  F(() => {
9569
9585
  let e = (e) => {
@@ -9593,7 +9609,7 @@ var jd = {
9593
9609
  className: "flex-1 text-left",
9594
9610
  children: "Search"
9595
9611
  }),
9596
- !t && /* @__PURE__ */ V(Dd, { children: [/* @__PURE__ */ B(Ed, { children: "Ctrl" }), /* @__PURE__ */ B(Ed, { children: "K" })] })
9612
+ !t && /* @__PURE__ */ V(Od, { children: [/* @__PURE__ */ B(Dd, { children: "Ctrl" }), /* @__PURE__ */ B(Dd, { children: "K" })] })
9597
9613
  ]
9598
9614
  }),
9599
9615
  e === "icon" && /* @__PURE__ */ B("button", {
@@ -9606,12 +9622,12 @@ var jd = {
9606
9622
  className: "shrink-0"
9607
9623
  })
9608
9624
  }),
9609
- n && /* @__PURE__ */ B(Fd, {
9625
+ n && /* @__PURE__ */ B(Id, {
9610
9626
  isOpen: n,
9611
9627
  handleGlobalSearchDialogOpen: i
9612
9628
  })
9613
9629
  ] });
9614
- }, Ld = (e) => e.length > 1 ? e.replace(/\/$/, "") : e, Rd = ({ current: e, target: t, currentPathname: n }) => {
9630
+ }, Rd = (e) => e.length > 1 ? e.replace(/\/$/, "") : e, zd = ({ current: e, target: t, currentPathname: n }) => {
9615
9631
  let r = t.live_url;
9616
9632
  if (!r) return "";
9617
9633
  if (!r.includes("{")) return r;
@@ -9623,21 +9639,21 @@ var jd = {
9623
9639
  } catch {
9624
9640
  return r;
9625
9641
  }
9626
- let s = Ld(a).split("/"), c = Ld(n).split("/");
9642
+ let s = Rd(a).split("/"), c = Rd(n).split("/");
9627
9643
  if (s.length !== c.length) return r;
9628
9644
  let l = {};
9629
9645
  return s.forEach((e, t) => {
9630
9646
  let n = e.match(/^\{(.+)\}$/);
9631
9647
  n?.[1] && (l[n[1]] = c[t] ?? "");
9632
9648
  }), o.pathname = o.pathname.replace(/\{([^}]+)\}/g, (e, t) => l[t] ?? e), o.toString();
9633
- }, zd = (e) => e.split(/[-_]/)[0]?.toUpperCase() || e.toUpperCase(), Bd = ({ elementKey: e, className: t, contentClassName: n, align: r = "end", config: i }) => {
9649
+ }, Bd = (e) => e.split(/[-_]/)[0]?.toUpperCase() || e.toUpperCase(), Vd = ({ elementKey: e, className: t, contentClassName: n, align: r = "end", config: i }) => {
9634
9650
  let { languageVariants: a } = x();
9635
9651
  if (!i?.enabled) return null;
9636
9652
  let o = /* @__PURE__ */ new Set(), s = a.filter((e) => !e.language || o.has(e.language) ? !1 : (o.add(e.language), !0));
9637
9653
  if (s.length <= 1) return null;
9638
9654
  let c = s.find((e) => e.is_current) ?? s[0], l = (e) => {
9639
9655
  if (e.language === c?.language) return;
9640
- let t = Rd({
9656
+ let t = zd({
9641
9657
  current: c,
9642
9658
  target: e,
9643
9659
  currentPathname: window.location.pathname
@@ -9658,7 +9674,7 @@ var jd = {
9658
9674
  size: 16,
9659
9675
  className: "opacity-70",
9660
9676
  "aria-hidden": !0
9661
- }), /* @__PURE__ */ B("span", { children: c ? zd(c.language) : "" })]
9677
+ }), /* @__PURE__ */ B("span", { children: c ? Bd(c.language) : "" })]
9662
9678
  })
9663
9679
  }), /* @__PURE__ */ B(Jt.Portal, { children: /* @__PURE__ */ B(Jt.Content, {
9664
9680
  align: r,
@@ -9678,14 +9694,14 @@ var jd = {
9678
9694
  })
9679
9695
  }) })] })
9680
9696
  });
9681
- }, Vd = d(Bd), Hd = ({ name: e, value: t, options: n, isSearchable: r = !0, selectProps: i, disabled: a, readOnly: o, onChange: s, onBlur: c, isRequired: l, label: u, labelStyles: d, containerStyles: f, placeholder: p, id: m, error: h, helperText: g, touched: _, isClearable: v = !0, controlStyles: y, listStyles: b, children: x }) => /* @__PURE__ */ V(Xl, {
9697
+ }, Hd = d(Vd), Ud = ({ name: e, value: t, options: n, isSearchable: r = !0, selectProps: i, disabled: a, readOnly: o, onChange: s, onBlur: c, isRequired: l, label: u, labelStyles: d, containerStyles: f, placeholder: p, id: m, error: h, helperText: g, touched: _, isClearable: v = !0, controlStyles: y, listStyles: b, children: x }) => /* @__PURE__ */ V(Zl, {
9682
9698
  containerStyles: f,
9683
9699
  error: h,
9684
9700
  helperText: g,
9685
9701
  readOnly: o,
9686
9702
  touched: _,
9687
9703
  children: [
9688
- u && /* @__PURE__ */ B(Yl, {
9704
+ u && /* @__PURE__ */ B(Xl, {
9689
9705
  htmlFor: e,
9690
9706
  isRequired: l,
9691
9707
  className: d,
@@ -9734,10 +9750,10 @@ var jd = {
9734
9750
  }),
9735
9751
  x
9736
9752
  ]
9737
- }), Ud = {
9753
+ }), Wd = {
9738
9754
  label: "Other",
9739
9755
  value: "other_internal"
9740
- }, Wd = ({ field: e, isMulti: t = !0 }) => {
9756
+ }, Gd = ({ field: e, isMulti: t = !0 }) => {
9741
9757
  let { values: n, errors: r, touched: i, setFieldValue: a, setFieldTouched: o } = sr(), [s, c] = R(void 0), [l, u] = R([]), { key: d = "", label: f = "", values: p = [], options: m = {} } = e, h = d, [g, _] = R(""), [v, y] = R(!1), b = r?.[h], x = i?.[h], S = !!m?.custom_input;
9742
9758
  return F(() => {
9743
9759
  if (p?.length) {
@@ -9745,10 +9761,10 @@ var jd = {
9745
9761
  label: e,
9746
9762
  value: e
9747
9763
  })), t = [...e];
9748
- S && t.push(Ud), u(e);
9764
+ S && t.push(Wd), u(e);
9749
9765
  }
9750
9766
  }, [p]), F(() => {
9751
- !t && S && typeof n?.[h] == "string" && n?.[h] && (l.some((e) => e.value !== Ud.value && e.value === n?.[h]) ? y(!1) : (y(!0), _(n?.[h])));
9767
+ !t && S && typeof n?.[h] == "string" && n?.[h] && (l.some((e) => e.value !== Wd.value && e.value === n?.[h]) ? y(!1) : (y(!0), _(n?.[h])));
9752
9768
  }, [
9753
9769
  n?.[h],
9754
9770
  l,
@@ -9756,7 +9772,7 @@ var jd = {
9756
9772
  t
9757
9773
  ]), ze(() => {
9758
9774
  typeof document < "u" && document?.body && c(document?.body);
9759
- }, []), /* @__PURE__ */ B(Hd, {
9775
+ }, []), /* @__PURE__ */ B(Ud, {
9760
9776
  options: l,
9761
9777
  name: h,
9762
9778
  value: n?.[h],
@@ -9771,7 +9787,7 @@ var jd = {
9771
9787
  },
9772
9788
  children: v && /* @__PURE__ */ B("div", {
9773
9789
  className: "w-full",
9774
- children: /* @__PURE__ */ B(Kl, {
9790
+ children: /* @__PURE__ */ B(ql, {
9775
9791
  name: `select-other-${h}`,
9776
9792
  value: g,
9777
9793
  onChange: (e) => {
@@ -9782,9 +9798,9 @@ var jd = {
9782
9798
  })
9783
9799
  })
9784
9800
  });
9785
- }, Gd = ({ field: e }) => {
9801
+ }, Kd = ({ field: e }) => {
9786
9802
  let { values: t, errors: n, touched: r, handleChange: i, handleBlur: a } = sr(), { key: o = "", label: s = "" } = e, c = o, l = n?.[c], u = r?.[c];
9787
- return /* @__PURE__ */ B(Zl, {
9803
+ return /* @__PURE__ */ B(Ql, {
9788
9804
  name: c,
9789
9805
  label: s,
9790
9806
  touched: u?.[c],
@@ -9793,35 +9809,35 @@ var jd = {
9793
9809
  onChange: i,
9794
9810
  onBlur: a
9795
9811
  });
9796
- }, Kd = (e) => {
9812
+ }, qd = (e) => {
9797
9813
  let { field_interface: t = "", key: n = "", hidden: r } = e.field;
9798
9814
  if (!t || !n || r) return null;
9799
9815
  switch (t) {
9800
- case tt.TextWidget: return /* @__PURE__ */ B(Gd, { ...e });
9801
- case tt.DropdownWidget: return /* @__PURE__ */ B(Wd, { ...e });
9802
- case tt.CheckboxWidget: return /* @__PURE__ */ B(Wd, { ...e });
9816
+ case tt.TextWidget: return /* @__PURE__ */ B(Kd, { ...e });
9817
+ case tt.DropdownWidget: return /* @__PURE__ */ B(Gd, { ...e });
9818
+ case tt.CheckboxWidget: return /* @__PURE__ */ B(Gd, { ...e });
9803
9819
  default: return null;
9804
9820
  }
9805
- }, qd = [
9821
+ }, Jd = [
9806
9822
  tt?.DropdownWidget,
9807
9823
  tt?.TextWidget,
9808
9824
  tt?.CheckboxWidget
9809
- ], Jd = {
9825
+ ], Yd = {
9810
9826
  id: "LEVO_FILTER_SEARCH",
9811
9827
  key: "search",
9812
9828
  kind: "string",
9813
9829
  field_interface: "TextWidget",
9814
9830
  options: {},
9815
9831
  label: "Search"
9816
- }, Yd = ({ schema: t, query: n, setQuery: r, enableSearch: i = !0, selectedFields: a }) => {
9832
+ }, Xd = ({ schema: t, query: n, setQuery: r, enableSearch: i = !0, selectedFields: a }) => {
9817
9833
  let o = I(() => {
9818
- let e = t?.sections?.flatMap((e) => e?.fields)?.filter((e) => qd.includes(e?.field_interface))?.filter((e) => a?.includes(e?.key));
9819
- return i ? [Jd, ...e] : e;
9834
+ let e = t?.sections?.flatMap((e) => e?.fields)?.filter((e) => Jd.includes(e?.field_interface))?.filter((e) => a?.includes(e?.key));
9835
+ return i ? [Yd, ...e] : e;
9820
9836
  }, [t?.sections, i]), s = I(() => e({
9821
9837
  ...t,
9822
9838
  sections: t?.sections?.map((e) => ({
9823
9839
  ...e,
9824
- fields: i ? [Jd, ...e?.fields?.filter((e) => qd.includes(e?.field_interface))] : e?.fields?.filter((e) => qd.includes(e?.field_interface))
9840
+ fields: i ? [Yd, ...e?.fields?.filter((e) => Jd.includes(e?.field_interface))] : e?.fields?.filter((e) => Jd.includes(e?.field_interface))
9825
9841
  }))
9826
9842
  }), [i, t]), c = or({
9827
9843
  initialValues: s,
@@ -9844,9 +9860,9 @@ var jd = {
9844
9860
  });
9845
9861
  }, [l, i]), /* @__PURE__ */ B(ar, {
9846
9862
  value: c,
9847
- children: o?.map((e) => e && !e.hidden ? /* @__PURE__ */ B(Kd, { field: e }, e?.key) : null)
9863
+ children: o?.map((e) => e && !e.hidden ? /* @__PURE__ */ B(qd, { field: e }, e?.key) : null)
9848
9864
  });
9849
- }, Xd = ({ open: e, className: t, children: n }) => /* @__PURE__ */ B("div", {
9865
+ }, Zd = ({ open: e, className: t, children: n }) => /* @__PURE__ */ B("div", {
9850
9866
  inert: !e,
9851
9867
  className: D("grid transition-all duration-250 ease-[cubic-bezier(0.32,0.72,0,1)]", e ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"),
9852
9868
  children: /* @__PURE__ */ B("div", {
@@ -9856,14 +9872,14 @@ var jd = {
9856
9872
  children: n
9857
9873
  })
9858
9874
  })
9859
- }), Zd = (e, t) => {
9875
+ }), Qd = (e, t) => {
9860
9876
  let n = new cr(t.toUpperCase());
9861
9877
  return n.input(e), n.getNationalNumber();
9862
- }, Qd = {
9878
+ }, $d = {
9863
9879
  iso2: "in",
9864
9880
  dialCode: "91",
9865
9881
  national: ""
9866
- }, $d = (e) => e.national ? `+${e.dialCode}${e.national}` : "", ef = ({ value: e, onChange: t, label: n, hint: r, error: i, onBlur: a }) => {
9882
+ }, ef = (e) => e.national ? `+${e.dialCode}${e.national}` : "", tf = ({ value: e, onChange: t, label: n, hint: r, error: i, onBlur: a }) => {
9867
9883
  let [o, s] = R(!1), [c, l] = R(""), [u, d] = R(!1), f = L(null), p = I(() => dr.map(fr), []), m = I(() => {
9868
9884
  let e = c.trim().toLowerCase();
9869
9885
  return e ? p.filter((t) => t.name.toLowerCase().includes(e) || t.dialCode.includes(e)) : p;
@@ -9928,7 +9944,7 @@ var jd = {
9928
9944
  ...e,
9929
9945
  iso2: n.iso2,
9930
9946
  dialCode: n.dialCode,
9931
- national: Zd(e.national, n.iso2)
9947
+ national: Qd(e.national, n.iso2)
9932
9948
  }), s(!1), l("");
9933
9949
  },
9934
9950
  className: D("flex w-full items-center gap-2.5 rounded-lg px-2.5 py-2 text-left text-sm text-text-1 hover:bg-background-2 focus:bg-background-2 focus:outline-none", n.iso2 === e.iso2 && "bg-background-2"),
@@ -9969,7 +9985,7 @@ var jd = {
9969
9985
  },
9970
9986
  onChange: (n) => t({
9971
9987
  ...e,
9972
- national: Zd(n.target.value, e.iso2)
9988
+ national: Qd(n.target.value, e.iso2)
9973
9989
  }),
9974
9990
  className: "w-full rounded-r-xl bg-transparent px-3.5 py-2.5 text-base text-text-1 outline-none placeholder:text-text-3/55"
9975
9991
  })]
@@ -9983,7 +9999,7 @@ var jd = {
9983
9999
  }) : null
9984
10000
  ]
9985
10001
  });
9986
- }, tf = [{
10002
+ }, nf = [{
9987
10003
  key: "organization",
9988
10004
  label: "Company",
9989
10005
  placeholder: "Acme Corporation",
@@ -9995,15 +10011,15 @@ var jd = {
9995
10011
  placeholder: "Product Manager",
9996
10012
  type: "text",
9997
10013
  autoComplete: "organization-title"
9998
- }], nf = (e, t) => {
10014
+ }], rf = (e, t) => {
9999
10015
  let n = {};
10000
- for (let r of tf) {
10016
+ for (let r of nf) {
10001
10017
  if (!t.includes(r.key)) continue;
10002
10018
  let i = e[r.key].trim();
10003
10019
  i && (n[r.key] = i);
10004
10020
  }
10005
- return t.includes("mobile") && e.phone.national && (n.mobile = $d(e.phone)), n;
10006
- }, rf = [{
10021
+ return t.includes("mobile") && e.phone.national && (n.mobile = ef(e.phone)), n;
10022
+ }, af = [{
10007
10023
  key: "name",
10008
10024
  label: "Registered company name",
10009
10025
  placeholder: "Acme Corporation",
@@ -10013,7 +10029,7 @@ var jd = {
10013
10029
  label: "Tax ID / GST number",
10014
10030
  placeholder: "22AAAAA0000A1Z5",
10015
10031
  autoComplete: "off"
10016
- }], af = [
10032
+ }], of = [
10017
10033
  {
10018
10034
  key: "line1",
10019
10035
  label: "Billing address",
@@ -10062,12 +10078,12 @@ var jd = {
10062
10078
  wide: !1,
10063
10079
  optional: !1
10064
10080
  }
10065
- ], of = (e) => D("w-full rounded-xl border bg-page px-3.5 py-2.5 text-base text-text-1 outline-none transition placeholder:text-text-3/55", e ? "border-red-500 focus:ring-[3px] focus:ring-red-500/15" : "[border-color:var(--color-border)] focus:border-brand focus:ring-[3px] focus:ring-brand/20"), sf = "flex items-baseline gap-1.5 font-medium text-sm text-text-1", cf = () => /* @__PURE__ */ B("span", {
10081
+ ], sf = (e) => D("w-full rounded-xl border bg-page px-3.5 py-2.5 text-base text-text-1 outline-none transition placeholder:text-text-3/55", e ? "border-red-500 focus:ring-[3px] focus:ring-red-500/15" : "[border-color:var(--color-border)] focus:border-brand focus:ring-[3px] focus:ring-brand/20"), cf = "flex items-baseline gap-1.5 font-medium text-sm text-text-1", lf = () => /* @__PURE__ */ B("span", {
10066
10082
  "aria-hidden": !0,
10067
10083
  className: "text-red-500",
10068
10084
  children: "*"
10069
- }), lf = ({ values: e, errors: t, touched: n, onChange: r, onBlur: i, additionalFields: a = [], showBusinessBilling: o = !1, autoFocusFirstField: s = !1 }) => {
10070
- let c = tf.filter((e) => a.includes(e.key)), l = L(null);
10085
+ }), uf = ({ values: e, errors: t, touched: n, onChange: r, onBlur: i, additionalFields: a = [], showBusinessBilling: o = !1, autoFocusFirstField: s = !1 }) => {
10086
+ let c = nf.filter((e) => a.includes(e.key)), l = L(null);
10071
10087
  F(() => {
10072
10088
  s && (typeof window > "u" || window.matchMedia("(pointer: fine)").matches && l.current?.focus());
10073
10089
  }, [s]);
@@ -10089,8 +10105,8 @@ var jd = {
10089
10105
  children: [
10090
10106
  /* @__PURE__ */ V("label", {
10091
10107
  htmlFor: "attendee-name",
10092
- className: sf,
10093
- children: ["Your name", /* @__PURE__ */ B(cf, {})]
10108
+ className: cf,
10109
+ children: ["Your name", /* @__PURE__ */ B(lf, {})]
10094
10110
  }),
10095
10111
  /* @__PURE__ */ B("input", {
10096
10112
  ref: l,
@@ -10102,7 +10118,7 @@ var jd = {
10102
10118
  value: e.name,
10103
10119
  onChange: (e) => r("name", e.target.value),
10104
10120
  onBlur: () => i("name"),
10105
- className: of(n.name && !!t.name),
10121
+ className: sf(n.name && !!t.name),
10106
10122
  required: !0
10107
10123
  }),
10108
10124
  n.name && t.name && /* @__PURE__ */ B("p", {
@@ -10116,8 +10132,8 @@ var jd = {
10116
10132
  children: [
10117
10133
  /* @__PURE__ */ V("label", {
10118
10134
  htmlFor: "attendee-email",
10119
- className: sf,
10120
- children: ["Email", /* @__PURE__ */ B(cf, {})]
10135
+ className: cf,
10136
+ children: ["Email", /* @__PURE__ */ B(lf, {})]
10121
10137
  }),
10122
10138
  /* @__PURE__ */ B("input", {
10123
10139
  id: "attendee-email",
@@ -10132,7 +10148,7 @@ var jd = {
10132
10148
  value: e.email,
10133
10149
  onChange: (e) => r("email", e.target.value),
10134
10150
  onBlur: () => i("email"),
10135
- className: of(n.email && !!t.email),
10151
+ className: sf(n.email && !!t.email),
10136
10152
  required: !0
10137
10153
  }),
10138
10154
  n.email && t.email && /* @__PURE__ */ B("p", {
@@ -10145,7 +10161,7 @@ var jd = {
10145
10161
  className: "flex flex-col gap-1.5",
10146
10162
  children: [/* @__PURE__ */ V("label", {
10147
10163
  htmlFor: `attendee-${t.key}`,
10148
- className: sf,
10164
+ className: cf,
10149
10165
  children: [t.label, /* @__PURE__ */ B("span", {
10150
10166
  className: "font-normal text-text-3 text-xs",
10151
10167
  children: "Optional"
@@ -10159,10 +10175,10 @@ var jd = {
10159
10175
  value: e[t.key],
10160
10176
  onChange: (e) => r(t.key, e.target.value),
10161
10177
  onBlur: () => i(t.key),
10162
- className: of()
10178
+ className: sf()
10163
10179
  })]
10164
10180
  }, t.key)),
10165
- a.includes("mobile") && /* @__PURE__ */ B(ef, {
10181
+ a.includes("mobile") && /* @__PURE__ */ B(tf, {
10166
10182
  label: "Phone",
10167
10183
  hint: "For your WhatsApp joining link",
10168
10184
  value: e.phone,
@@ -10189,7 +10205,7 @@ var jd = {
10189
10205
  className: "fade-in-0 animate-in px-3.5 pb-3 text-amber-700 text-xs leading-relaxed duration-200",
10190
10206
  children: "Your billing details are still saved — tick the box to apply them."
10191
10207
  }),
10192
- /* @__PURE__ */ B(Xd, {
10208
+ /* @__PURE__ */ B(Zd, {
10193
10209
  open: e.is_business_purchase,
10194
10210
  className: "px-3.5 pb-3.5",
10195
10211
  children: /* @__PURE__ */ V("div", {
@@ -10199,15 +10215,15 @@ var jd = {
10199
10215
  className: "text-text-3 text-xs leading-relaxed",
10200
10216
  children: "This booking will be billed to your business. The invoice is raised against the details below."
10201
10217
  }),
10202
- rf.map((t) => /* @__PURE__ */ V("div", {
10218
+ af.map((t) => /* @__PURE__ */ V("div", {
10203
10219
  className: "flex flex-col gap-1.5",
10204
10220
  children: [/* @__PURE__ */ V("label", {
10205
10221
  htmlFor: `billing-${t.key}`,
10206
- className: sf,
10207
- children: [t.label, /* @__PURE__ */ B(cf, {})]
10222
+ className: cf,
10223
+ children: [t.label, /* @__PURE__ */ B(lf, {})]
10208
10224
  }), /* @__PURE__ */ B("input", {
10209
10225
  id: `billing-${t.key}`,
10210
- className: of(),
10226
+ className: sf(),
10211
10227
  placeholder: t.placeholder,
10212
10228
  autoComplete: t.autoComplete,
10213
10229
  value: e.billing_details[t.key],
@@ -10217,15 +10233,15 @@ var jd = {
10217
10233
  }, t.key)),
10218
10234
  /* @__PURE__ */ B("div", {
10219
10235
  className: "grid grid-cols-2 gap-3",
10220
- children: af.map((t) => /* @__PURE__ */ V("div", {
10236
+ children: of.map((t) => /* @__PURE__ */ V("div", {
10221
10237
  className: D("flex flex-col gap-1.5", t.wide && "col-span-2"),
10222
10238
  children: [/* @__PURE__ */ V("label", {
10223
10239
  htmlFor: `billing-${t.key}`,
10224
- className: sf,
10225
- children: [t.label, !t.optional && /* @__PURE__ */ B(cf, {})]
10240
+ className: cf,
10241
+ children: [t.label, !t.optional && /* @__PURE__ */ B(lf, {})]
10226
10242
  }), /* @__PURE__ */ B("input", {
10227
10243
  id: `billing-${t.key}`,
10228
- className: of(),
10244
+ className: sf(),
10229
10245
  placeholder: t.placeholder,
10230
10246
  autoComplete: t.autoComplete,
10231
10247
  inputMode: t.key === "postal_code" ? "numeric" : void 0,
@@ -10242,12 +10258,12 @@ var jd = {
10242
10258
  })
10243
10259
  ]
10244
10260
  });
10245
- }, uf = {
10261
+ }, df = {
10246
10262
  USD: "$",
10247
10263
  EUR: "€",
10248
10264
  GBP: "£",
10249
10265
  INR: "₹"
10250
- }, df = (e) => {
10266
+ }, ff = (e) => {
10251
10267
  let t = e?.unit_amount;
10252
10268
  if (t == null) return "";
10253
10269
  if (t === 0) return "Free";
@@ -10260,29 +10276,29 @@ var jd = {
10260
10276
  maximumFractionDigits: 2
10261
10277
  }).format(r);
10262
10278
  } catch {
10263
- return `${uf[n] ?? n} ${r.toLocaleString()}`;
10279
+ return `${df[n] ?? n} ${r.toLocaleString()}`;
10264
10280
  }
10265
- }, ff = (e) => {
10281
+ }, pf = (e) => {
10266
10282
  if (!e) return null;
10267
10283
  let t = e.tax_enabled ?? !1, n = e.tax_inclusive ?? !1, r = e.taxes ?? [];
10268
10284
  return !t || r.length === 0 ? null : n ? "incl. taxes" : "+ taxes";
10269
- }, pf = (e) => !!(e?.taxes && e.taxes.length > 0 && e.tax_amount !== void 0), mf = (e) => {
10285
+ }, mf = (e) => !!(e?.taxes && e.taxes.length > 0 && e.tax_amount !== void 0), hf = (e) => {
10270
10286
  if (!e) return !1;
10271
10287
  let t = e;
10272
10288
  return t.tax_enabled === !0 && t.taxes !== void 0 && t.taxes.length > 0 && t.subtotal !== void 0;
10273
- }, hf = (e, t) => t ? t.total_amount ?? t.sale_amount ?? 0 : mf(e) ? e.total ?? e.unit_amount ?? 0 : e?.unit_amount ?? 0, gf = (e, t) => {
10289
+ }, gf = (e, t) => t ? t.total_amount ?? t.sale_amount ?? 0 : hf(e) ? e.total ?? e.unit_amount ?? 0 : e?.unit_amount ?? 0, _f = (e, t) => {
10274
10290
  if (!e) return null;
10275
- let n = hf(e, t);
10291
+ let n = gf(e, t);
10276
10292
  return {
10277
10293
  amount: n,
10278
10294
  currency: e.currency,
10279
10295
  isFree: n === 0
10280
10296
  };
10281
- }, _f = (e, t) => t ? t.base_amount ?? 0 : mf(e) ? e.subtotal ?? e.unit_amount ?? 0 : e?.unit_amount ?? 0, vf = (e, t) => pf(t) ? t.taxes : !t && mf(e) ? e.taxes : [], yf = (e) => {
10297
+ }, vf = (e, t) => t ? t.base_amount ?? 0 : hf(e) ? e.subtotal ?? e.unit_amount ?? 0 : e?.unit_amount ?? 0, yf = (e, t) => mf(t) ? t.taxes : !t && hf(e) ? e.taxes : [], bf = (e) => {
10282
10298
  if (e < 60) return `${e} min`;
10283
10299
  let t = Math.floor(e / 60), n = e % 60, r = `${t} hr`;
10284
10300
  return n ? `${r} ${n} min` : r;
10285
- }, bf = (e, t) => {
10301
+ }, xf = (e, t) => {
10286
10302
  if (!e) return null;
10287
10303
  let n = new Date(e);
10288
10304
  if (Number.isNaN(n.getTime())) return null;
@@ -10297,26 +10313,26 @@ var jd = {
10297
10313
  }).format(n), a = null;
10298
10314
  if (t) {
10299
10315
  let e = new Date(t), r = Math.round((e.getTime() - n.getTime()) / 6e4);
10300
- !Number.isNaN(r) && r > 0 && (a = yf(r));
10316
+ !Number.isNaN(r) && r > 0 && (a = bf(r));
10301
10317
  }
10302
10318
  return {
10303
10319
  day: r,
10304
10320
  time: i,
10305
10321
  duration: a
10306
10322
  };
10307
- }, xf = 60, Sf = (e) => e.toISOString().replace(/[-:]/g, "").replace(/\.\d+/, ""), Cf = (e) => {
10323
+ }, Sf = 60, Cf = (e) => e.toISOString().replace(/[-:]/g, "").replace(/\.\d+/, ""), wf = (e) => {
10308
10324
  if (!e.startsAt) return null;
10309
10325
  let t = new Date(e.startsAt);
10310
10326
  if (Number.isNaN(t.getTime())) return null;
10311
10327
  let n = e.endsAt ? new Date(e.endsAt) : null;
10312
10328
  return {
10313
10329
  start: t,
10314
- end: n && !Number.isNaN(n.getTime()) && n > t ? n : new Date(t.getTime() + xf * 6e4)
10330
+ end: n && !Number.isNaN(n.getTime()) && n > t ? n : new Date(t.getTime() + Sf * 6e4)
10315
10331
  };
10316
- }, wf = (e) => {
10317
- let t = Cf(e);
10332
+ }, Tf = (e) => {
10333
+ let t = wf(e);
10318
10334
  if (!t) return null;
10319
- let n = Sf(t.start), r = Sf(t.end), i = [e.description, e.url].filter(Boolean).join("\n\n"), a = `https://calendar.google.com/calendar/render?${new URLSearchParams({
10335
+ let n = Cf(t.start), r = Cf(t.end), i = [e.description, e.url].filter(Boolean).join("\n\n"), a = `https://calendar.google.com/calendar/render?${new URLSearchParams({
10320
10336
  action: "TEMPLATE",
10321
10337
  text: e.title,
10322
10338
  dates: `${n}/${r}`,
@@ -10350,23 +10366,23 @@ var jd = {
10350
10366
  "END:VCALENDAR"
10351
10367
  ].filter(Boolean).join("\r\n")
10352
10368
  };
10353
- }, Tf = (e) => `levo:event-registration:${e}`, Ef = (e) => {
10369
+ }, Ef = (e) => `levo:event-registration:${e}`, Df = (e) => {
10354
10370
  if (typeof window > "u") return null;
10355
10371
  try {
10356
- let t = window.localStorage.getItem(Tf(e));
10372
+ let t = window.localStorage.getItem(Ef(e));
10357
10373
  return t ? JSON.parse(t) : null;
10358
10374
  } catch {
10359
10375
  return null;
10360
10376
  }
10361
- }, Df = (e, t) => {
10377
+ }, Of = (e, t) => {
10362
10378
  if (!(typeof window > "u")) try {
10363
- window.localStorage.setItem(Tf(e), JSON.stringify(t));
10379
+ window.localStorage.setItem(Ef(e), JSON.stringify(t));
10364
10380
  } catch {}
10365
- }, Of = (e) => {
10381
+ }, kf = (e) => {
10366
10382
  if (!(typeof window > "u")) try {
10367
- window.localStorage.removeItem(Tf(e));
10383
+ window.localStorage.removeItem(Ef(e));
10368
10384
  } catch {}
10369
- }, kf = (e, t) => !t || e.tickets.length === 0 ? !0 : e.tickets.some((e) => typeof e == "string" ? e === t : e._id === t), Af = (e) => e.kind === "percent" ? `${e.percent_off}% off` : `${uf[e.currency ?? "INR"]}${(e.amount_off ?? 0) / 100} off`, jf = ({ couponCode: e, onCouponCodeChange: t, couponError: n, couponLoading: r, onValidateCoupon: i, onRemoveCoupon: a, publicCoupons: o, discount: s, selectedTicket: c }) => {
10385
+ }, Af = (e, t) => !t || e.tickets.length === 0 ? !0 : e.tickets.some((e) => typeof e == "string" ? e === t : e._id === t), jf = (e) => e.kind === "percent" ? `${e.percent_off}% off` : `${df[e.currency ?? "INR"]}${(e.amount_off ?? 0) / 100} off`, Mf = ({ couponCode: e, onCouponCodeChange: t, couponError: n, couponLoading: r, onValidateCoupon: i, onRemoveCoupon: a, publicCoupons: o, discount: s, selectedTicket: c }) => {
10370
10386
  let [l, u] = R(!1);
10371
10387
  if (s) return /* @__PURE__ */ V("div", {
10372
10388
  className: "fade-in-0 zoom-in-95 flex animate-in items-center justify-between gap-2.5 rounded-xl border border-green-600/40 bg-green-500/10 px-3.5 py-2.5 text-[13px] text-green-800 duration-200",
@@ -10380,7 +10396,7 @@ var jd = {
10380
10396
  children: [
10381
10397
  "saves",
10382
10398
  " ",
10383
- df({
10399
+ ff({
10384
10400
  unit_amount: s.discount,
10385
10401
  currency: c?.currency
10386
10402
  })
@@ -10396,7 +10412,7 @@ var jd = {
10396
10412
  children: /* @__PURE__ */ B(Ut, { className: "size-4" })
10397
10413
  })]
10398
10414
  });
10399
- let d = o.filter((e) => kf(e, c?._id));
10415
+ let d = o.filter((e) => Af(e, c?._id));
10400
10416
  return /* @__PURE__ */ V("div", {
10401
10417
  className: "flex flex-col",
10402
10418
  children: [/* @__PURE__ */ B("button", {
@@ -10405,7 +10421,7 @@ var jd = {
10405
10421
  onClick: () => u((e) => !e),
10406
10422
  className: "self-start text-[13px] text-text-2 underline underline-offset-[3px] hover:text-text-1",
10407
10423
  children: "Have a code?"
10408
- }), /* @__PURE__ */ B(Xd, {
10424
+ }), /* @__PURE__ */ B(Zd, {
10409
10425
  open: l,
10410
10426
  children: /* @__PURE__ */ V("div", {
10411
10427
  className: "flex flex-col gap-2 pt-2",
@@ -10448,7 +10464,7 @@ var jd = {
10448
10464
  children: [
10449
10465
  e.code,
10450
10466
  " · ",
10451
- Af(e)
10467
+ jf(e)
10452
10468
  ]
10453
10469
  }, e._id))
10454
10470
  })
@@ -10456,11 +10472,11 @@ var jd = {
10456
10472
  })
10457
10473
  })]
10458
10474
  });
10459
- }, Mf = ({ selectedTicket: e, discount: t }) => {
10460
- let [n, r] = R(!1), i = e?.currency, a = hf(e, t), o = _f(e, t), s = vf(e, t), c = t?.discount ?? 0, l = s.length > 0 || c > 0 || o !== a, u = /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ V("span", {
10475
+ }, Nf = ({ selectedTicket: e, discount: t }) => {
10476
+ let [n, r] = R(!1), i = e?.currency, a = gf(e, t), o = vf(e, t), s = yf(e, t), c = t?.discount ?? 0, l = s.length > 0 || c > 0 || o !== a, u = /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ V("span", {
10461
10477
  className: "inline-flex items-center gap-1.5",
10462
10478
  children: ["Total", l && /* @__PURE__ */ B(gt, { className: D("size-4 text-text-3 transition-transform", n && "rotate-180") })]
10463
- }), /* @__PURE__ */ B("span", { children: df({
10479
+ }), /* @__PURE__ */ B("span", { children: ff({
10464
10480
  unit_amount: a,
10465
10481
  currency: i
10466
10482
  }) })] });
@@ -10475,21 +10491,21 @@ var jd = {
10475
10491
  }) : /* @__PURE__ */ B("div", {
10476
10492
  className: "flex w-full items-center justify-between gap-3 px-3.5 py-3 font-semibold text-[15px] text-text-1",
10477
10493
  children: u
10478
- }), l && /* @__PURE__ */ B(Xd, {
10494
+ }), l && /* @__PURE__ */ B(Zd, {
10479
10495
  open: n,
10480
10496
  children: /* @__PURE__ */ V("div", {
10481
10497
  className: "flex flex-col gap-1.5 px-3.5 pb-3 text-[13px] text-text-2",
10482
10498
  children: [
10483
10499
  /* @__PURE__ */ V("div", {
10484
10500
  className: "flex items-center justify-between gap-3",
10485
- children: [/* @__PURE__ */ B("span", { children: "Subtotal" }), /* @__PURE__ */ B("span", { children: df({
10501
+ children: [/* @__PURE__ */ B("span", { children: "Subtotal" }), /* @__PURE__ */ B("span", { children: ff({
10486
10502
  unit_amount: o,
10487
10503
  currency: i
10488
10504
  }) })]
10489
10505
  }),
10490
10506
  c > 0 && /* @__PURE__ */ V("div", {
10491
10507
  className: "flex items-center justify-between gap-3 text-green-700",
10492
- children: [/* @__PURE__ */ B("span", { children: "Discount" }), /* @__PURE__ */ V("span", { children: ["-", df({
10508
+ children: [/* @__PURE__ */ B("span", { children: "Discount" }), /* @__PURE__ */ V("span", { children: ["-", ff({
10493
10509
  unit_amount: c,
10494
10510
  currency: i
10495
10511
  })] })]
@@ -10501,7 +10517,7 @@ var jd = {
10501
10517
  " (",
10502
10518
  e.percentage,
10503
10519
  "%)"
10504
- ] }), /* @__PURE__ */ B("span", { children: df({
10520
+ ] }), /* @__PURE__ */ B("span", { children: ff({
10505
10521
  unit_amount: e.amount,
10506
10522
  currency: i
10507
10523
  }) })]
@@ -10514,7 +10530,7 @@ var jd = {
10514
10530
  })
10515
10531
  })]
10516
10532
  });
10517
- }, Nf = () => typeof window < "u" && "Razorpay" in window, Pf = ({ order: e, onSuccess: t, onFailure: n, onDismiss: r }) => {
10533
+ }, Pf = () => typeof window < "u" && "Razorpay" in window, Ff = ({ order: e, onSuccess: t, onFailure: n, onDismiss: r }) => {
10518
10534
  let { Razorpay: i, isLoading: a, error: o } = rr(), s = L({
10519
10535
  onSuccess: t,
10520
10536
  onFailure: n,
@@ -10532,7 +10548,7 @@ var jd = {
10532
10548
  c.current = !0, s.current.onFailure("We couldn't reach the payment provider. Check your connection and try again.");
10533
10549
  return;
10534
10550
  }
10535
- if (!(!i || !Nf())) {
10551
+ if (!(!i || !Pf())) {
10536
10552
  c.current = !0;
10537
10553
  try {
10538
10554
  let t = new i({
@@ -10560,7 +10576,7 @@ var jd = {
10560
10576
  o,
10561
10577
  e
10562
10578
  ]), null;
10563
- }, Ff = 200, If = () => {
10579
+ }, If = 200, Lf = () => {
10564
10580
  let [e, t] = R(null);
10565
10581
  return F(() => {
10566
10582
  let e = typeof window > "u" ? null : window.visualViewport;
@@ -10573,7 +10589,7 @@ var jd = {
10573
10589
  e.removeEventListener("resize", n), e.removeEventListener("scroll", n);
10574
10590
  };
10575
10591
  }, []), e;
10576
- }, Lf = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),summary,[tabindex]:not([tabindex=\"-1\"])", Rf = (e) => {
10592
+ }, Rf = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),summary,[tabindex]:not([tabindex=\"-1\"])", zf = (e) => {
10577
10593
  F(() => {
10578
10594
  if (!e || typeof document > "u") return;
10579
10595
  let { body: t } = document, n = window.scrollY, r = {
@@ -10586,9 +10602,9 @@ var jd = {
10586
10602
  t.style.position = r.position, t.style.top = r.top, t.style.width = r.width, t.style.overflow = r.overflow, window.scrollTo(0, n);
10587
10603
  };
10588
10604
  }, [e]);
10589
- }, zf = ({ title: e, when: t, priceLabel: n, isFree: r, isClosing: i, onClose: a, onSubmit: o, footer: s, wide: c, children: l }) => {
10590
- let u = Re(), d = L(null), f = If(), [p, m] = R(!1);
10591
- Rf(!0);
10605
+ }, Bf = ({ title: e, when: t, priceLabel: n, isFree: r, isClosing: i, onClose: a, onSubmit: o, footer: s, wide: c, children: l }) => {
10606
+ let u = Re(), d = L(null), f = Lf(), [p, m] = R(!1);
10607
+ zf(!0);
10592
10608
  let h = L(a);
10593
10609
  h.current = a, F(() => {
10594
10610
  let e = document.activeElement, t = (e) => {
@@ -10598,7 +10614,7 @@ var jd = {
10598
10614
  return;
10599
10615
  }
10600
10616
  if (e.key !== "Tab" || !d.current) return;
10601
- let t = Array.from(d.current.querySelectorAll(Lf)).filter((e) => e.offsetParent !== null);
10617
+ let t = Array.from(d.current.querySelectorAll(Rf)).filter((e) => e.offsetParent !== null);
10602
10618
  if (t.length === 0) return;
10603
10619
  let n = t[0], r = t[t.length - 1], i = document.activeElement;
10604
10620
  e.shiftKey && (i === n || !d.current.contains(i)) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
@@ -10624,7 +10640,7 @@ var jd = {
10624
10640
  return /* @__PURE__ */ B(Yt.Root, { children: /* @__PURE__ */ B("div", {
10625
10641
  className: D("fixed inset-x-0 z-[2147483000] flex h-[var(--viewport-height)] items-end justify-center bg-black/40 fill-mode-forwards sm:items-start", "sm:backdrop-blur-[3px]", i ? "fade-out-0 pointer-events-none animate-out ease-out" : "fade-in-0 animate-in ease-out"),
10626
10642
  style: {
10627
- animationDuration: `${i ? 160 : Ff}ms`,
10643
+ animationDuration: `${i ? 160 : If}ms`,
10628
10644
  "--viewport-height": f ? `${f.height}px` : "100dvh",
10629
10645
  top: f ? `${f.offsetTop}px` : 0
10630
10646
  },
@@ -10637,7 +10653,7 @@ var jd = {
10637
10653
  "aria-modal": "true",
10638
10654
  "aria-labelledby": u,
10639
10655
  className: D("relative flex h-full max-h-full w-full flex-col overflow-hidden bg-page will-change-transform", "sm:mt-[6vh] sm:h-auto sm:max-h-[88dvh] sm:rounded-2xl sm:border sm:shadow-2xl sm:[border-color:var(--color-border)]", "fill-mode-forwards ease-out", i ? "slide-out-to-bottom-4 fade-out-0 sm:slide-out-to-bottom-2 animate-out" : "slide-in-from-bottom-4 fade-in-0 sm:slide-in-from-bottom-2 animate-in", c ? "sm:max-w-[540px]" : "sm:max-w-[460px]"),
10640
- style: { animationDuration: `${i ? 160 : Ff}ms` },
10656
+ style: { animationDuration: `${i ? 160 : If}ms` },
10641
10657
  children: [/* @__PURE__ */ V("div", {
10642
10658
  className: D("sticky top-0 z-10 shrink-0 border-b bg-page px-5 pt-[max(env(safe-area-inset-top),16px)] pb-3.5 transition-colors", p ? "[border-color:var(--color-border)]" : "border-transparent"),
10643
10659
  children: [/* @__PURE__ */ V("div", {
@@ -10679,8 +10695,8 @@ var jd = {
10679
10695
  }) : g]
10680
10696
  })
10681
10697
  }) });
10682
- }, Bf = "\n@keyframes levo-reg-draw { to { stroke-dashoffset: 0; } }\n@keyframes levo-reg-sweep { to { transform: translateX(240%); } }\n@media (prefers-reduced-motion: reduce) {\n [data-levo-reg-check] { stroke-dashoffset: 0 !important; animation: none !important; }\n [data-levo-reg-sweep] { display: none !important; }\n}\n", Vf = ({ email: e, eventTitle: t, startsAt: n, endsAt: r, eventUrl: i, when: a, bookingRef: o, qrImageUrl: s, invoiceUrl: c, onClose: l, onRegisterAnother: u }) => {
10683
- let d = wf({
10698
+ }, Vf = "\n@keyframes levo-reg-draw { to { stroke-dashoffset: 0; } }\n@keyframes levo-reg-sweep { to { transform: translateX(240%); } }\n@media (prefers-reduced-motion: reduce) {\n [data-levo-reg-check] { stroke-dashoffset: 0 !important; animation: none !important; }\n [data-levo-reg-sweep] { display: none !important; }\n}\n", Hf = ({ email: e, eventTitle: t, startsAt: n, endsAt: r, eventUrl: i, when: a, bookingRef: o, qrImageUrl: s, invoiceUrl: c, onClose: l, onRegisterAnother: u }) => {
10699
+ let d = Tf({
10684
10700
  title: t,
10685
10701
  startsAt: n,
10686
10702
  endsAt: r,
@@ -10691,7 +10707,7 @@ var jd = {
10691
10707
  }, []), /* @__PURE__ */ V("div", {
10692
10708
  className: "flex flex-1 flex-col items-center justify-center px-6 py-9 text-center",
10693
10709
  children: [
10694
- /* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: Bf } }),
10710
+ /* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: Vf } }),
10695
10711
  /* @__PURE__ */ B("div", {
10696
10712
  className: "zoom-in-50 fade-in-0 flex size-[68px] animate-in items-center justify-center rounded-full bg-green-500/10 text-green-700 duration-300 ease-[cubic-bezier(0.32,0.72,0,1)]",
10697
10713
  children: /* @__PURE__ */ V("svg", {
@@ -10836,7 +10852,7 @@ var jd = {
10836
10852
  })
10837
10853
  ]
10838
10854
  });
10839
- }, Hf = ({ tickets: e, selectedTicket: t, onSelect: n, error: r }) => {
10855
+ }, Uf = ({ tickets: e, selectedTicket: t, onSelect: n, error: r }) => {
10840
10856
  let [i, a] = R(!t);
10841
10857
  return /* @__PURE__ */ V("fieldset", {
10842
10858
  className: "flex flex-col gap-2",
@@ -10848,8 +10864,8 @@ var jd = {
10848
10864
  /* @__PURE__ */ B("div", {
10849
10865
  className: "-mb-2 flex flex-col",
10850
10866
  children: e.map((r) => {
10851
- let o = r._id === t?._id, s = i || o, c = ff(r);
10852
- return /* @__PURE__ */ B(Xd, {
10867
+ let o = r._id === t?._id, s = i || o, c = pf(r);
10868
+ return /* @__PURE__ */ B(Zd, {
10853
10869
  open: s,
10854
10870
  children: /* @__PURE__ */ V("label", {
10855
10871
  className: D("mb-2 flex w-full cursor-pointer items-start gap-2.5 rounded-xl border px-3.5 py-3 transition", o ? "border-brand bg-brand/5" : "[border-color:var(--color-border)] hover:border-brand/50"),
@@ -10886,7 +10902,7 @@ var jd = {
10886
10902
  className: "flex shrink-0 flex-col items-end gap-1.5",
10887
10903
  children: [/* @__PURE__ */ V("span", {
10888
10904
  className: "text-right font-medium text-[14.5px] text-text-1",
10889
- children: [df(r), c && /* @__PURE__ */ B("span", {
10905
+ children: [ff(r), c && /* @__PURE__ */ B("span", {
10890
10906
  className: "block font-normal text-[11.5px] text-text-3",
10891
10907
  children: c
10892
10908
  })]
@@ -10913,12 +10929,12 @@ var jd = {
10913
10929
  })
10914
10930
  ]
10915
10931
  });
10916
- }, Uf = {
10932
+ }, Wf = {
10917
10933
  name: "",
10918
10934
  email: "",
10919
10935
  designation: "",
10920
10936
  organization: "",
10921
- phone: Qd,
10937
+ phone: $d,
10922
10938
  is_business_purchase: !1,
10923
10939
  billing_details: {
10924
10940
  name: "",
@@ -10932,11 +10948,11 @@ var jd = {
10932
10948
  country: ""
10933
10949
  }
10934
10950
  }
10935
- }, Wf = (e) => {
10936
- let t = {};
10937
- return e.name.trim() || (t.name = "Please enter your name"), e.email.trim() ? /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e.email.trim()) || (t.email = "That email address doesn't look right") : t.email = "Please enter your email", e.phone.national && !lr($d(e.phone)) && (t.phone = "That doesn't look like a valid phone number"), t;
10938
10951
  }, Gf = (e) => {
10939
- let [t, n] = R(Uf), [r, i] = R({}), [a, o] = R(!1), s = L(!1);
10952
+ let t = {};
10953
+ return e.name.trim() || (t.name = "Please enter your name"), e.email.trim() ? /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e.email.trim()) || (t.email = "That email address doesn't look right") : t.email = "Please enter your email", e.phone.national && !lr(ef(e.phone)) && (t.phone = "That doesn't look like a valid phone number"), t;
10954
+ }, Kf = (e) => {
10955
+ let [t, n] = R(Wf), [r, i] = R({}), [a, o] = R(!1), s = L(!1);
10940
10956
  F(() => {
10941
10957
  s.current || !e || (s.current = !0, n((t) => ({
10942
10958
  ...t,
@@ -10944,14 +10960,14 @@ var jd = {
10944
10960
  email: t.email || e.email || ""
10945
10961
  })));
10946
10962
  }, [e]);
10947
- let c = Wf(t), l = P((e, t) => n((n) => ({
10963
+ let c = Gf(t), l = P((e, t) => n((n) => ({
10948
10964
  ...n,
10949
10965
  [e]: t
10950
10966
  })), []), u = P((e) => i((t) => ({
10951
10967
  ...t,
10952
10968
  [e]: !0
10953
10969
  })), []), d = P(() => {
10954
- n(Uf), i({}), o(!1), s.current = !0;
10970
+ n(Wf), i({}), o(!1), s.current = !0;
10955
10971
  }, []), f = P(() => {
10956
10972
  i({}), o(!1);
10957
10973
  }, []);
@@ -10972,7 +10988,7 @@ var jd = {
10972
10988
  } : r,
10973
10989
  fieldError: (e) => a || r[e] ? c[e] : void 0
10974
10990
  };
10975
- }, Kf = ({ eventID: e, workspaceId: t, selectedTicket: n, enabled: r }) => {
10991
+ }, qf = ({ eventID: e, workspaceId: t, selectedTicket: n, enabled: r }) => {
10976
10992
  let i = M(), [a, o] = R(""), [s, c] = R(null), [l, u] = R(!1), [d, f] = R(null), [p, m] = R([]);
10977
10993
  return F(() => {
10978
10994
  !r || !e || i?.fetch?.url(`/v1/event/event/${e}/coupon/list-public-coupons`)?.options({ headers: { Origin: t || "" } })?.get().json().then((e) => {
@@ -11025,13 +11041,13 @@ var jd = {
11025
11041
  o(""), c(null), f(null);
11026
11042
  }, [])
11027
11043
  };
11028
- }, qf = async (e, t, n) => {
11044
+ }, Jf = async (e, t, n) => {
11029
11045
  let r = new URLSearchParams();
11030
11046
  return r.append("query", JSON.stringify({ where: { status: "active" } })), (await e.fetch?.url(`/v1/event/event/${t}/ticket/query?${r.toString()}`).options({ headers: { Origin: n || "" } }).get().json())?.content?.data ?? [];
11031
- }, Jf = ({ eventID: e, external: t, workspaceId: n }) => {
11047
+ }, Yf = ({ eventID: e, external: t, workspaceId: n }) => {
11032
11048
  let r = M(), [i, a] = R([]), [o, s] = R(!t), [c, l] = R(!1), [u, d] = R(null);
11033
11049
  return F(() => {
11034
- t || !e || (s(!0), qf(r, e, n ?? "").then((e) => {
11050
+ t || !e || (s(!0), Jf(r, e, n ?? "").then((e) => {
11035
11051
  a(e), e.length === 1 && d(e[0] ?? null);
11036
11052
  }).catch((e) => {
11037
11053
  l(!0), r?.logger?.error("Failed to load event tickets", { exception: H(e) });
@@ -11047,20 +11063,20 @@ var jd = {
11047
11063
  selectedTicket: u,
11048
11064
  selectTicket: d
11049
11065
  };
11050
- }, Yf = "register", Xf = () => {
11066
+ }, Xf = "register", Zf = () => {
11051
11067
  if (typeof window > "u") return !1;
11052
- let e = new URLSearchParams(window.location.search).get(Yf);
11068
+ let e = new URLSearchParams(window.location.search).get(Xf);
11053
11069
  return e !== null && e !== "0" && e !== "false";
11054
- }, Zf = () => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, Qf = ({ canAutoOpen: e, onClosed: t }) => {
11070
+ }, Qf = () => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, $f = ({ canAutoOpen: e, onClosed: t }) => {
11055
11071
  let [n, r] = R(!1), [i, a] = R(!1), o = L(null), s = L(!1), c = L(t);
11056
11072
  c.current = t;
11057
11073
  let l = P(() => r(!0), []), u = P(() => {
11058
11074
  o.current === null && (a(!0), o.current = window.setTimeout(() => {
11059
11075
  o.current = null, a(!1), r(!1), c.current();
11060
- }, Zf() ? 0 : 160));
11076
+ }, Qf() ? 0 : 160));
11061
11077
  }, []);
11062
11078
  return F(() => {
11063
- s.current || !e || !Xf() || (s.current = !0, r(!0));
11079
+ s.current || !e || !Zf() || (s.current = !0, r(!0));
11064
11080
  }, [e]), F(() => () => {
11065
11081
  o.current !== null && window.clearTimeout(o.current);
11066
11082
  }, []), {
@@ -11069,33 +11085,33 @@ var jd = {
11069
11085
  open: l,
11070
11086
  close: u
11071
11087
  };
11072
- }, $f = "We took the payment but could not confirm your booking. Please contact the organiser.", ep = ({ eventID: e, title: t, external: n, buttonText: r = "Register Now", additionalFields: i = [], startsAt: a, endsAt: o, eventUrl: s }) => {
11073
- let c = M(), { workspace: l, account: u } = C(), d = Jf({
11088
+ }, ep = "We took the payment but could not confirm your booking. Please contact the organiser.", tp = ({ eventID: e, title: t, external: n, buttonText: r = "Register Now", additionalFields: i = [], startsAt: a, endsAt: o, eventUrl: s }) => {
11089
+ let c = M(), { workspace: l, account: u } = C(), d = Yf({
11074
11090
  eventID: e,
11075
11091
  external: n,
11076
11092
  workspaceId: l?.id
11077
- }), f = Gf(u), p = gf(d.selectedTicket, null)?.isFree === !1, [h, g] = R(!1), [_, v] = R(null), [y, b] = R(null), [x, S] = R(null);
11093
+ }), f = Kf(u), p = _f(d.selectedTicket, null)?.isFree === !1, [h, g] = R(!1), [_, v] = R(null), [y, b] = R(null), [x, S] = R(null);
11078
11094
  F(() => {
11079
- let t = Ef(e);
11095
+ let t = Df(e);
11080
11096
  t && S({ email: t.email });
11081
11097
  }, [e]);
11082
- let [w, T] = R(null), E = L(null), O = Qf({
11098
+ let [w, T] = R(null), E = L(null), O = $f({
11083
11099
  canAutoOpen: !n && !d.isLoading && d.tickets.length > 0 && !x,
11084
11100
  onClosed: P(() => {
11085
11101
  v(null), T(null), f.resetValidationDisplay();
11086
11102
  }, [f.resetValidationDisplay])
11087
- }), k = Kf({
11103
+ }), k = qf({
11088
11104
  eventID: e,
11089
11105
  workspaceId: l?.id,
11090
11106
  selectedTicket: d.selectedTicket,
11091
11107
  enabled: O.isOpen && p
11092
- }), { stripePromise: ee, config: te, isOpen: ne, openStripeCheckout: re, closeStripeCheckout: ie, setOnComplete: ae } = he(), A = gf(d.selectedTicket, k.discount), oe = !!A && !A.isFree, se = d.tickets.length > 1, ce = I(() => bf(a, o), [a, o]), le = t || "this event", ue = se || oe, de = (e) => {
11108
+ }), { stripePromise: ee, config: te, isOpen: ne, openStripeCheckout: re, closeStripeCheckout: ie, setOnComplete: ae } = he(), A = _f(d.selectedTicket, k.discount), oe = !!A && !A.isFree, se = d.tickets.length > 1, ce = I(() => xf(a, o), [a, o]), le = t || "this event", ue = se || oe, de = (e) => {
11093
11109
  k.reset(), v(null), d.selectTicket(e);
11094
11110
  }, fe = () => {
11095
- Of(e), S(null), b(null), f.reset();
11111
+ kf(e), S(null), b(null), f.reset();
11096
11112
  }, pe = P((t) => {
11097
11113
  let n = f.values.email.trim();
11098
- b(t), T(null), v(null), S({ email: n }), Df(e, {
11114
+ b(t), T(null), v(null), S({ email: n }), Of(e, {
11099
11115
  bookingId: t._id,
11100
11116
  email: n,
11101
11117
  at: (/* @__PURE__ */ new Date()).toISOString()
@@ -11103,9 +11119,9 @@ var jd = {
11103
11119
  }, [e, f.values.email]), me = P(async (e, t) => {
11104
11120
  try {
11105
11121
  let n = await c?.fetch?.url(`/v1/event/booking/${e}/confirm-booking`)?.options({ headers: { Origin: l?.id || "" } })?.post(t)?.json();
11106
- n?.content?.data ? pe(n.content.data) : v($f);
11122
+ n?.content?.data ? pe(n.content.data) : v(ep);
11107
11123
  } catch (e) {
11108
- c?.logger?.error("Failed to confirm booking after payment", { exception: H(e) }), v($f);
11124
+ c?.logger?.error("Failed to confirm booking after payment", { exception: H(e) }), v(ep);
11109
11125
  }
11110
11126
  }, [
11111
11127
  c,
@@ -11147,7 +11163,7 @@ var jd = {
11147
11163
  prefill: {
11148
11164
  name: f.values.name.trim(),
11149
11165
  email: f.values.email.trim(),
11150
- contact: $d(f.values.phone)
11166
+ contact: ef(f.values.phone)
11151
11167
  }
11152
11168
  });
11153
11169
  }, ye = async (t) => {
@@ -11161,7 +11177,7 @@ var jd = {
11161
11177
  name: f.values.name.trim(),
11162
11178
  email: f.values.email.trim(),
11163
11179
  ticket: d.selectedTicket._id,
11164
- ...nf(f.values, i),
11180
+ ...rf(f.values, i),
11165
11181
  details: {}
11166
11182
  }]
11167
11183
  };
@@ -11180,7 +11196,7 @@ var jd = {
11180
11196
  }
11181
11197
  }
11182
11198
  };
11183
- if (n) return /* @__PURE__ */ B(Uc, {
11199
+ if (n) return /* @__PURE__ */ B(Wc, {
11184
11200
  elementKey: "register_container",
11185
11201
  className: "my-2 w-fit",
11186
11202
  children: /* @__PURE__ */ B(m, {
@@ -11190,7 +11206,7 @@ var jd = {
11190
11206
  children: r
11191
11207
  })
11192
11208
  });
11193
- if (!d.isLoading && d.tickets.length === 0) return /* @__PURE__ */ B(Uc, {
11209
+ if (!d.isLoading && d.tickets.length === 0) return /* @__PURE__ */ B(Wc, {
11194
11210
  elementKey: "register_container",
11195
11211
  className: "my-2",
11196
11212
  children: /* @__PURE__ */ B("p", {
@@ -11198,12 +11214,12 @@ var jd = {
11198
11214
  children: d.hasFailed ? "We couldn't load tickets for this event. Please refresh the page." : "Registration isn't open for this event yet."
11199
11215
  })
11200
11216
  });
11201
- let be = A ? A.isFree ? "Save my spot" : `Pay ${df({
11217
+ let be = A ? A.isFree ? "Save my spot" : `Pay ${ff({
11202
11218
  unit_amount: A.amount,
11203
11219
  currency: A.currency
11204
11220
  })}` : "Choose a ticket";
11205
11221
  return /* @__PURE__ */ V(z, { children: [
11206
- /* @__PURE__ */ B(Uc, {
11222
+ /* @__PURE__ */ B(Wc, {
11207
11223
  elementKey: "register_container",
11208
11224
  className: "my-2",
11209
11225
  children: x && !O.isOpen ? /* @__PURE__ */ V("span", {
@@ -11227,10 +11243,10 @@ var jd = {
11227
11243
  children: r
11228
11244
  })
11229
11245
  }),
11230
- O.isOpen && /* @__PURE__ */ B(zf, {
11246
+ O.isOpen && /* @__PURE__ */ B(Bf, {
11231
11247
  title: y ? le : `Register for ${le}`,
11232
11248
  when: ce,
11233
- priceLabel: y || !A ? void 0 : df({
11249
+ priceLabel: y || !A ? void 0 : ff({
11234
11250
  unit_amount: A.amount,
11235
11251
  currency: A.currency
11236
11252
  }),
@@ -11255,7 +11271,7 @@ var jd = {
11255
11271
  children: oe ? "Secure payment · confirmation sent to your email" : "No card needed · joining link sent to your email"
11256
11272
  })
11257
11273
  ] }),
11258
- children: y ? /* @__PURE__ */ B(Vf, {
11274
+ children: y ? /* @__PURE__ */ B(Hf, {
11259
11275
  email: f.values.email.trim(),
11260
11276
  eventTitle: le,
11261
11277
  startsAt: a,
@@ -11270,16 +11286,16 @@ var jd = {
11270
11286
  }) : /* @__PURE__ */ V("div", {
11271
11287
  className: "flex flex-col gap-4",
11272
11288
  children: [
11273
- se && /* @__PURE__ */ B(Hf, {
11289
+ se && /* @__PURE__ */ B(Uf, {
11274
11290
  tickets: d.tickets,
11275
11291
  selectedTicket: d.selectedTicket,
11276
11292
  onSelect: de,
11277
11293
  error: f.submitAttempted && !d.selectedTicket ? "Choose a ticket to continue" : void 0
11278
11294
  }),
11279
- oe && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(Mf, {
11295
+ oe && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(Nf, {
11280
11296
  selectedTicket: d.selectedTicket,
11281
11297
  discount: k.discount
11282
- }), /* @__PURE__ */ B(jf, {
11298
+ }), /* @__PURE__ */ B(Mf, {
11283
11299
  couponCode: k.code,
11284
11300
  onCouponCodeChange: k.setCode,
11285
11301
  couponError: k.error,
@@ -11295,7 +11311,7 @@ var jd = {
11295
11311
  children: [ue && /* @__PURE__ */ B("span", {
11296
11312
  className: "font-medium text-sm text-text-1",
11297
11313
  children: "Your details"
11298
- }), /* @__PURE__ */ B(lf, {
11314
+ }), /* @__PURE__ */ B(uf, {
11299
11315
  values: f.values,
11300
11316
  errors: {
11301
11317
  name: f.fieldError("name"),
@@ -11313,7 +11329,7 @@ var jd = {
11313
11329
  ]
11314
11330
  })
11315
11331
  }),
11316
- w && /* @__PURE__ */ B(Pf, {
11332
+ w && /* @__PURE__ */ B(Ff, {
11317
11333
  order: w,
11318
11334
  onSuccess: (e) => {
11319
11335
  w.bookingId && me(w.bookingId, {
@@ -11337,7 +11353,7 @@ var jd = {
11337
11353
  onComplete: _e
11338
11354
  })
11339
11355
  ] });
11340
- }, tp = ({ blockInstance: e, blocks: t, theme: n }) => {
11356
+ }, np = ({ blockInstance: e, blocks: t, theme: n }) => {
11341
11357
  let r = Re(), i = L(null), a = Ya({
11342
11358
  pageTheme: n ?? Va,
11343
11359
  blocks: [e],
@@ -11361,7 +11377,7 @@ var jd = {
11361
11377
  workspace_id: "devtools"
11362
11378
  })
11363
11379
  })] });
11364
- }, np = 300, rp = ({ label: e, value: t, onChange: n }) => {
11380
+ }, rp = 300, ip = ({ label: e, value: t, onChange: n }) => {
11365
11381
  let [r, i] = R(() => JSON.stringify(t, null, 2)), [a, o] = R(null), s = L(null), c = L(JSON.stringify(t, null, 2));
11366
11382
  F(() => {
11367
11383
  let e = JSON.stringify(t, null, 2);
@@ -11376,7 +11392,7 @@ var jd = {
11376
11392
  } catch (e) {
11377
11393
  o(e.message);
11378
11394
  }
11379
- }, np);
11395
+ }, rp);
11380
11396
  }, [n]);
11381
11397
  return F(() => () => {
11382
11398
  s.current && clearTimeout(s.current);
@@ -11429,7 +11445,7 @@ var jd = {
11429
11445
  })
11430
11446
  ]
11431
11447
  });
11432
- }, ip = (e, t = 0) => {
11448
+ }, ap = (e, t = 0) => {
11433
11449
  let n = e.layouts[t];
11434
11450
  if (!n) throw Error(`Layout index ${t} not found on block "${e.key}". Available: ${e.layouts.length}`);
11435
11451
  let r = n.content && Object.keys(n.content).length > 0 ? n.content : Sr(e.content_schema), i = (/* @__PURE__ */ new Date()).toISOString();
@@ -11458,7 +11474,7 @@ var jd = {
11458
11474
  deleted_at: null,
11459
11475
  site_version: "v2"
11460
11476
  };
11461
- }, ap = [
11477
+ }, op = [
11462
11478
  {
11463
11479
  key: "content",
11464
11480
  label: "Content"
@@ -11471,8 +11487,8 @@ var jd = {
11471
11487
  key: "config",
11472
11488
  label: "Config"
11473
11489
  }
11474
- ], op = ({ schema: e, component: t, theme: n, defaultLayoutIndex: r = 0 }) => {
11475
- let [i, a] = R(r), [o, s] = R("content"), [c, l] = R(!0), u = I(() => ip(e, i), [e, i]), [d, f] = R(u.content), [p, m] = R(u.styles), [h, g] = R(u.config), _ = I(() => ({
11490
+ ], sp = ({ schema: e, component: t, theme: n, defaultLayoutIndex: r = 0 }) => {
11491
+ let [i, a] = R(r), [o, s] = R("content"), [c, l] = R(!0), u = I(() => ap(e, i), [e, i]), [d, f] = R(u.content), [p, m] = R(u.styles), [h, g] = R(u.config), _ = I(() => ({
11476
11492
  ...u,
11477
11493
  content: d,
11478
11494
  styles: p,
@@ -11489,18 +11505,18 @@ var jd = {
11489
11505
  ]), y = P((t) => {
11490
11506
  let n = Number(t.target.value);
11491
11507
  a(n);
11492
- let r = ip(e, n);
11508
+ let r = ap(e, n);
11493
11509
  f(r.content), m(r.styles), g(r.config);
11494
11510
  }, [e]), b = P(() => {
11495
- let t = ip(e, i);
11511
+ let t = ap(e, i);
11496
11512
  f(t.content), m(t.styles), g(t.config);
11497
11513
  }, [e, i]);
11498
11514
  return /* @__PURE__ */ V("div", {
11499
- style: sp,
11515
+ style: cp,
11500
11516
  children: [
11501
11517
  /* @__PURE__ */ B("div", {
11502
- style: cp,
11503
- children: /* @__PURE__ */ B(tp, {
11518
+ style: lp,
11519
+ children: /* @__PURE__ */ B(np, {
11504
11520
  blockInstance: _,
11505
11521
  blocks: v,
11506
11522
  theme: n
@@ -11509,7 +11525,7 @@ var jd = {
11509
11525
  !c && /* @__PURE__ */ B("button", {
11510
11526
  type: "button",
11511
11527
  onClick: () => l(!0),
11512
- style: lp,
11528
+ style: up,
11513
11529
  title: "Open DevTools",
11514
11530
  children: /* @__PURE__ */ V("svg", {
11515
11531
  width: "18",
@@ -11524,10 +11540,10 @@ var jd = {
11524
11540
  })
11525
11541
  }),
11526
11542
  c && /* @__PURE__ */ V("div", {
11527
- style: up,
11543
+ style: dp,
11528
11544
  children: [
11529
11545
  /* @__PURE__ */ V("div", {
11530
- style: dp,
11546
+ style: fp,
11531
11547
  children: [/* @__PURE__ */ V("div", {
11532
11548
  style: {
11533
11549
  display: "flex",
@@ -11535,10 +11551,10 @@ var jd = {
11535
11551
  gap: 8
11536
11552
  },
11537
11553
  children: [/* @__PURE__ */ B("span", {
11538
- style: fp,
11554
+ style: pp,
11539
11555
  children: e.title
11540
11556
  }), /* @__PURE__ */ V("span", {
11541
- style: pp,
11557
+ style: mp,
11542
11558
  children: [
11543
11559
  e.key,
11544
11560
  ":",
@@ -11555,7 +11571,7 @@ var jd = {
11555
11571
  e.layouts.length > 1 && /* @__PURE__ */ B("select", {
11556
11572
  value: i,
11557
11573
  onChange: y,
11558
- style: mp,
11574
+ style: hp,
11559
11575
  children: e.layouts.map((e, t) => /* @__PURE__ */ B("option", {
11560
11576
  value: t,
11561
11577
  children: e.title || e.key
@@ -11564,13 +11580,13 @@ var jd = {
11564
11580
  /* @__PURE__ */ B("button", {
11565
11581
  type: "button",
11566
11582
  onClick: b,
11567
- style: hp,
11583
+ style: gp,
11568
11584
  children: "Reset"
11569
11585
  }),
11570
11586
  /* @__PURE__ */ B("button", {
11571
11587
  type: "button",
11572
11588
  onClick: () => l(!1),
11573
- style: gp,
11589
+ style: _p,
11574
11590
  title: "Collapse DevTools",
11575
11591
  children: /* @__PURE__ */ V("svg", {
11576
11592
  width: "14",
@@ -11598,13 +11614,13 @@ var jd = {
11598
11614
  })]
11599
11615
  }),
11600
11616
  /* @__PURE__ */ B("div", {
11601
- style: _p,
11602
- children: ap.map((e) => /* @__PURE__ */ B("button", {
11617
+ style: vp,
11618
+ children: op.map((e) => /* @__PURE__ */ B("button", {
11603
11619
  type: "button",
11604
11620
  onClick: () => s(e.key),
11605
11621
  style: {
11606
- ...vp,
11607
- ...o === e.key ? yp : {}
11622
+ ...yp,
11623
+ ...o === e.key ? bp : {}
11608
11624
  },
11609
11625
  children: e.label
11610
11626
  }, e.key))
@@ -11617,7 +11633,7 @@ var jd = {
11617
11633
  display: o === "content" ? "flex" : "none",
11618
11634
  flexDirection: "column"
11619
11635
  },
11620
- children: /* @__PURE__ */ B(rp, {
11636
+ children: /* @__PURE__ */ B(ip, {
11621
11637
  label: "content",
11622
11638
  value: d,
11623
11639
  onChange: f
@@ -11631,7 +11647,7 @@ var jd = {
11631
11647
  display: o === "styles" ? "flex" : "none",
11632
11648
  flexDirection: "column"
11633
11649
  },
11634
- children: /* @__PURE__ */ B(rp, {
11650
+ children: /* @__PURE__ */ B(ip, {
11635
11651
  label: "styles",
11636
11652
  value: p,
11637
11653
  onChange: m
@@ -11645,7 +11661,7 @@ var jd = {
11645
11661
  display: o === "config" ? "flex" : "none",
11646
11662
  flexDirection: "column"
11647
11663
  },
11648
- children: /* @__PURE__ */ B(rp, {
11664
+ children: /* @__PURE__ */ B(ip, {
11649
11665
  label: "config",
11650
11666
  value: h,
11651
11667
  onChange: g
@@ -11655,16 +11671,16 @@ var jd = {
11655
11671
  })
11656
11672
  ]
11657
11673
  });
11658
- }, sp = {
11674
+ }, cp = {
11659
11675
  position: "relative",
11660
11676
  width: "100%",
11661
11677
  minHeight: "100vh",
11662
11678
  fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
11663
11679
  color: "#1a1a1a"
11664
- }, cp = {
11680
+ }, lp = {
11665
11681
  width: "100%",
11666
11682
  minHeight: "100vh"
11667
- }, lp = {
11683
+ }, up = {
11668
11684
  position: "fixed",
11669
11685
  bottom: 20,
11670
11686
  right: 20,
@@ -11682,7 +11698,7 @@ var jd = {
11682
11698
  justifyContent: "center",
11683
11699
  color: "#374151",
11684
11700
  transition: "transform 0.15s ease, box-shadow 0.15s ease"
11685
- }, up = {
11701
+ }, dp = {
11686
11702
  position: "fixed",
11687
11703
  top: 12,
11688
11704
  right: 12,
@@ -11698,38 +11714,38 @@ var jd = {
11698
11714
  boxShadow: "0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06)",
11699
11715
  overflow: "hidden",
11700
11716
  fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
11701
- }, dp = {
11717
+ }, fp = {
11702
11718
  display: "flex",
11703
11719
  alignItems: "center",
11704
11720
  justifyContent: "space-between",
11705
11721
  padding: "10px 12px",
11706
11722
  borderBottom: "1px solid rgba(0,0,0,0.06)",
11707
11723
  flexShrink: 0
11708
- }, fp = {
11724
+ }, pp = {
11709
11725
  fontSize: 13,
11710
11726
  fontWeight: 600
11711
- }, pp = {
11727
+ }, mp = {
11712
11728
  fontSize: 10,
11713
11729
  fontFamily: "monospace",
11714
11730
  color: "#6b7280",
11715
11731
  backgroundColor: "#f3f4f6",
11716
11732
  padding: "2px 5px",
11717
11733
  borderRadius: 4
11718
- }, mp = {
11734
+ }, hp = {
11719
11735
  fontSize: 12,
11720
11736
  padding: "3px 6px",
11721
11737
  border: "1px solid #d1d5db",
11722
11738
  borderRadius: 4,
11723
11739
  backgroundColor: "#fff",
11724
11740
  cursor: "pointer"
11725
- }, hp = {
11741
+ }, gp = {
11726
11742
  fontSize: 12,
11727
11743
  padding: "3px 8px",
11728
11744
  border: "1px solid #d1d5db",
11729
11745
  borderRadius: 4,
11730
11746
  backgroundColor: "#fff",
11731
11747
  cursor: "pointer"
11732
- }, gp = {
11748
+ }, _p = {
11733
11749
  display: "flex",
11734
11750
  alignItems: "center",
11735
11751
  justifyContent: "center",
@@ -11740,11 +11756,11 @@ var jd = {
11740
11756
  backgroundColor: "transparent",
11741
11757
  cursor: "pointer",
11742
11758
  color: "#6b7280"
11743
- }, _p = {
11759
+ }, vp = {
11744
11760
  display: "flex",
11745
11761
  borderBottom: "1px solid rgba(0,0,0,0.06)",
11746
11762
  flexShrink: 0
11747
- }, vp = {
11763
+ }, yp = {
11748
11764
  fontSize: 12,
11749
11765
  padding: "7px 14px",
11750
11766
  border: "none",
@@ -11752,11 +11768,11 @@ var jd = {
11752
11768
  backgroundColor: "transparent",
11753
11769
  cursor: "pointer",
11754
11770
  color: "#6b7280"
11755
- }, yp = {
11771
+ }, bp = {
11756
11772
  color: "#1a1a1a",
11757
11773
  borderBottomColor: "#1a1a1a",
11758
11774
  fontWeight: 500
11759
- }, bp = ["element", "group"], xp = /* @__PURE__ */ "BoxWidget.ButtonWidget.LayoutWidget.HeadingWidget.IframeWidget.ImageWidget.IconWidget.MediaWidget.TypographyWidget.BlogContentWidget.CarouselWidget.FormWidget.ContainerWidget.UserMenuWidget.TabsListWidget.TabsTriggerWidget.TabsContentWidget.NavMenuWidget.CardWidget.TitleWidget.TextWidget.NumberWidget.URLWidget.ImageUploadWidget.MultiImageUploadWidget.TextareaWidget.RichTextWidget.DropdownWidget.SwitchWidget.DateWidget.ArrayWidget.RecordWidget".split("."), Sp = xp.reduce((e, t) => (e[t] = t, e), {}), Cp = [
11775
+ }, xp = ["element", "group"], Sp = /* @__PURE__ */ "BoxWidget.ButtonWidget.LayoutWidget.HeadingWidget.IframeWidget.ImageWidget.IconWidget.MediaWidget.TypographyWidget.BlogContentWidget.CarouselWidget.FormWidget.ContainerWidget.UserMenuWidget.TabsListWidget.TabsTriggerWidget.TabsContentWidget.NavMenuWidget.CardWidget.TitleWidget.TextWidget.NumberWidget.URLWidget.ImageUploadWidget.MultiImageUploadWidget.TextareaWidget.RichTextWidget.DropdownWidget.SwitchWidget.DateWidget.ArrayWidget.RecordWidget".split("."), Cp = Sp.reduce((e, t) => (e[t] = t, e), {}), wp = [
11760
11776
  "collection",
11761
11777
  "event",
11762
11778
  "blog",
@@ -11766,7 +11782,7 @@ var jd = {
11766
11782
  "blog_author",
11767
11783
  "blog_category",
11768
11784
  "blog_tag"
11769
- ], wp = [
11785
+ ], Tp = [
11770
11786
  "linkedin",
11771
11787
  "google",
11772
11788
  "oauth",
@@ -11777,4 +11793,4 @@ var jd = {
11777
11793
  "password"
11778
11794
  ];
11779
11795
  //#endregion
11780
- export { Te as ALTERNATE_METHOD_VALUES, xe as ALTERNATIVE_AUTH_METHODS, ts as AccordionContent, $o as AccordionItem, Qo as AccordionRoot, es as AccordionTrigger, w as AuthProvider, Ce as AuthenticationOptions, vd as Avatar, Cd as AvatarBadge, xd as AvatarFallback, Sd as AvatarFallbackV2, wd as AvatarGroup, Td as AvatarGroupCount, yd as AvatarImage, bd as AvatarImageV2, Lu as BUILT_IN_PRESETS, ed as BackgroundEffects, zc as BaseBlogContent, y as BaseButton, tl as BaseContainer, Cu as BaseHeading, Bd as BaseLanguageSwitcher, td as BaseSection, dd as BaseTypography, pd as BaseUserMenu, l as BlockProvider, Cp as BlockSourceModuleList, vo as BlocksRegistry, Bc as BlogContent, hd as BookingConfirmation, _d as BookingModal, gd as BookingSummary, Uc as Box, m as Button, Od as Calendar, el as Carousel, Jc as CarouselContent, Qc as CarouselDotButton, $c as CarouselDots, Yc as CarouselItem, Zc as CarouselNext, Xc as CarouselPrevious, ll as CategoryFilter, Gl as CommentStatusBadge, lu as Comments, vu as CommentsRestrictionOverlay, nl as Container, du as CreateForumPost, q as DATA_ATTRIBUTES, Pi as DATE_DISPLAYS, Fi as DATE_FORMATS, Ri as DATE_HOUR12_VALUES, Li as DATE_LOCALES, Ii as DATE_STYLES, zi as DEFAULT_DATE_SPEC, c as DEFAULT_FROM_STATE, Va as DEFAULT_THEME, g as DEFAULT_TRANSITION, p as DEFAULT_VIEWPORT, u as DEFAULT_VISIBLE_STATE, op as DevTools, tp as DevToolsPreview, il as EditForm, cl as Form, Zl as FormInput, Ad as FormTextarea, mu as ForumPost, dl as ForumProvider, Id as GlobalSearch, wu as Heading, wp as IMembershipAuthenticationMethods, _ as Icon, Eu as Iframe, Mu as Image, Kl as Input, Yd as IntegrationFilters, gu as JoinRequestForm, rp as JsonEditor, So as KBChat, Ed as Kbd, Dd as KbdGroup, bp as KindList, Vd as LanguageSwitcher, fo as LazyMotionProvider, wo as LevoBlock, Io as LevoPage, Pu as Link, J as MESSAGE_TYPES, Do as MadeWithLevo, Iu as Media, ye as PENDING_APPROVAL_ERROR_CODE, Ru as PRESET_CATEGORIES, zu as PRESET_MAP, _e as PRIMARY_AUTH_METHODS, Se as PRIMARY_METHOD_VALUES, yu as PendingRequestState, Tl as PopoverContent, xl as PopoverRoot, wl as PopoverTrigger, a as PopupLoader, Pl as PostActions, kl as PostCategory, jl as PostContent, Il as PostGallery, Ol as PostHeader, Fl as PostLink, hu as PostLinkWrapper, Vl as PostPoll, Ul as PostStatusBadge, Al as PostTitle, xu as PostsRestrictionOverlay, ai as PreviewHighlighter, ep as RegisterModal, _u as SampleCommentSkeleton, bu as SamplePostSkeleton, Su as SearchInput, nd as Section, vl as SimpleTooltipWrapper, Q as Skeleton, Ml as StatContainer, Wo as StudioPreview, xp as StudioWidgetList, Sp as StudioWidgetMap, ld as TabsContent, sd as TabsList, rd as TabsRoot, cd as TabsTrigger, ml as Tooltip, _l as TooltipContent, gl as TooltipPortal, pl as TooltipProvider, hl as TooltipTrigger, fd as Typography, md as UserMenu, ua as VARIABLE_SINGLE_TOKEN_REGEX, la as VARIABLE_TOKEN_REGEX, aa as VARIABLE_TRANSFORMS, yo as blocksRegistry, Rd as buildLocalizedHref, wi as clearContentCache, Ca as colorOptions, Lc as convertHtmlToJSON, yr as convertKeysToPascalCase, ka as cssOptionsMap, Wi as dateSpecToArgs, ca as evaluateVariableToken, to as fetchCollectionSchema, eo as fetchSource, Go as findFieldSchema, Ko as flattenVariableMatches, da as format, xa as generateAccentColor, oi as generateBodyContent, Sr as generateDefaultContent, mr as generateSchemaFromJSX, Ja as generateThemeStyles, Ga as generateThemeVariables, i as generateVariantClasses, Vu as getAvailableCategories, Wu as getEffectConfigFromPresetId, lo as getInitialPageContent, Ei as getKeysWithValue, h as getNestedValue, uo as getPageData, oo as getPageSource, Bu as getPresetsByCategory, ba as getWcagContrast, ga as hexToOKLCH, we as isAlternateMethod, v as isConfigWithVariants, ve as isPendingApprovalError, be as isPrimaryMethod, ha as isValidOKLCH, Ua as normalizeColorName, Wa as normalizeFontName, ma as oklchStringToRGBA, ya as oklchToHex, va as oklchToRGBA, Y as oklchToString, Ui as parseDateSpec, o as parseGroupContext, _a as parseOKLCHString, ji as parseVariableToken, so as parseVariablesFromResolvedSource, Ha as processFonts, Ya as processTheme, Ti as resetContentCache, ao as resolveStyles, io as resolveVariables, fa as rgbaToOKLCH, pa as rgbaToOKLCHString, Ku as sanitizeBackgroundEffectConfig, f as sanitizeElementKey, Ci as schemaCache, ip as schemaToBlockInstance, Ji as snapDateStyle, Si as sourceCache, qi as stylesFor, C as useAuth, r as useBlockContext, b as useCommonProps, po as useContentEngine, mo as useContextEngine, Kc as useDotButton, fl as useForumContext, s as useGeneratedClassName, x as useLanguageVariants, me as useLogin, ho as usePageContext, go as usePageMeta, he as useStripePayment, Mi as variableTokenToString };
11796
+ export { Te as ALTERNATE_METHOD_VALUES, xe as ALTERNATIVE_AUTH_METHODS, ts as AccordionContent, $o as AccordionItem, Qo as AccordionRoot, es as AccordionTrigger, w as AuthProvider, Ce as AuthenticationOptions, yd as Avatar, wd as AvatarBadge, Sd as AvatarFallback, Cd as AvatarFallbackV2, Td as AvatarGroup, Ed as AvatarGroupCount, bd as AvatarImage, xd as AvatarImageV2, Ru as BUILT_IN_PRESETS, td as BackgroundEffects, Bc as BaseBlogContent, y as BaseButton, nl as BaseContainer, wu as BaseHeading, Vd as BaseLanguageSwitcher, nd as BaseSection, fd as BaseTypography, md as BaseUserMenu, l as BlockProvider, wp as BlockSourceModuleList, vo as BlocksRegistry, Vc as BlogContent, gd as BookingConfirmation, vd as BookingModal, _d as BookingSummary, Wc as Box, m as Button, kd as Calendar, tl as Carousel, Yc as CarouselContent, $c as CarouselDotButton, el as CarouselDots, Xc as CarouselItem, Qc as CarouselNext, Zc as CarouselPrevious, ul as CategoryFilter, Kl as CommentStatusBadge, uu as Comments, yu as CommentsRestrictionOverlay, rl as Container, fu as CreateForumPost, q as DATA_ATTRIBUTES, Pi as DATE_DISPLAYS, Fi as DATE_FORMATS, Ri as DATE_HOUR12_VALUES, Li as DATE_LOCALES, Ii as DATE_STYLES, zi as DEFAULT_DATE_SPEC, c as DEFAULT_FROM_STATE, Va as DEFAULT_THEME, g as DEFAULT_TRANSITION, p as DEFAULT_VIEWPORT, u as DEFAULT_VISIBLE_STATE, sp as DevTools, np as DevToolsPreview, al as EditForm, ll as Form, Ql as FormInput, jd as FormTextarea, hu as ForumPost, fl as ForumProvider, Ld as GlobalSearch, Tu as Heading, Tp as IMembershipAuthenticationMethods, _ as Icon, Du as Iframe, Nu as Image, ql as Input, Xd as IntegrationFilters, _u as JoinRequestForm, ip as JsonEditor, So as KBChat, Dd as Kbd, Od as KbdGroup, xp as KindList, Hd as LanguageSwitcher, fo as LazyMotionProvider, wo as LevoBlock, Io as LevoPage, Fu as Link, J as MESSAGE_TYPES, Do as MadeWithLevo, Lu as Media, ye as PENDING_APPROVAL_ERROR_CODE, zu as PRESET_CATEGORIES, Bu as PRESET_MAP, _e as PRIMARY_AUTH_METHODS, Se as PRIMARY_METHOD_VALUES, bu as PendingRequestState, El as PopoverContent, Sl as PopoverRoot, Tl as PopoverTrigger, a as PopupLoader, Fl as PostActions, Al as PostCategory, Ml as PostContent, Ll as PostGallery, kl as PostHeader, Il as PostLink, gu as PostLinkWrapper, Hl as PostPoll, Wl as PostStatusBadge, jl as PostTitle, Su as PostsRestrictionOverlay, ai as PreviewHighlighter, tp as RegisterModal, vu as SampleCommentSkeleton, xu as SamplePostSkeleton, Cu as SearchInput, rd as Section, yl as SimpleTooltipWrapper, Q as Skeleton, Nl as StatContainer, Wo as StudioPreview, Sp as StudioWidgetList, Cp as StudioWidgetMap, ud as TabsContent, cd as TabsList, id as TabsRoot, ld as TabsTrigger, hl as Tooltip, vl as TooltipContent, _l as TooltipPortal, ml as TooltipProvider, gl as TooltipTrigger, pd as Typography, hd as UserMenu, ua as VARIABLE_SINGLE_TOKEN_REGEX, la as VARIABLE_TOKEN_REGEX, aa as VARIABLE_TRANSFORMS, yo as blocksRegistry, zd as buildLocalizedHref, wi as clearContentCache, Ca as colorOptions, Rc as convertHtmlToJSON, yr as convertKeysToPascalCase, ka as cssOptionsMap, Wi as dateSpecToArgs, ca as evaluateVariableToken, to as fetchCollectionSchema, eo as fetchSource, Go as findFieldSchema, Ko as flattenVariableMatches, da as format, xa as generateAccentColor, oi as generateBodyContent, Sr as generateDefaultContent, mr as generateSchemaFromJSX, Ja as generateThemeStyles, Ga as generateThemeVariables, i as generateVariantClasses, Hu as getAvailableCategories, Gu as getEffectConfigFromPresetId, lo as getInitialPageContent, Ei as getKeysWithValue, h as getNestedValue, uo as getPageData, oo as getPageSource, Vu as getPresetsByCategory, ba as getWcagContrast, ga as hexToOKLCH, we as isAlternateMethod, v as isConfigWithVariants, ve as isPendingApprovalError, be as isPrimaryMethod, ha as isValidOKLCH, Ua as normalizeColorName, Wa as normalizeFontName, ma as oklchStringToRGBA, ya as oklchToHex, va as oklchToRGBA, Y as oklchToString, Ui as parseDateSpec, o as parseGroupContext, _a as parseOKLCHString, ji as parseVariableToken, so as parseVariablesFromResolvedSource, Ha as processFonts, Ya as processTheme, Ti as resetContentCache, ao as resolveStyles, io as resolveVariables, fa as rgbaToOKLCH, pa as rgbaToOKLCHString, qu as sanitizeBackgroundEffectConfig, f as sanitizeElementKey, Ci as schemaCache, ap as schemaToBlockInstance, Ji as snapDateStyle, Si as sourceCache, qi as stylesFor, C as useAuth, r as useBlockContext, b as useCommonProps, po as useContentEngine, mo as useContextEngine, qc as useDotButton, pl as useForumContext, s as useGeneratedClassName, x as useLanguageVariants, me as useLogin, ho as usePageContext, go as usePageMeta, he as useStripePayment, Mi as variableTokenToString };