@wacht/jsx 0.0.1-alpha.13 → 0.0.1-alpha.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.
package/dist/index.es.js CHANGED
@@ -555,57 +555,57 @@ const mn = fe.use || // This extra generic is to avoid TypeScript mixing up the
555
555
  }), vn = {
556
556
  dedupe: !0
557
557
  }, hd = (e, t, o) => {
558
- const { cache: n, compare: a, suspense: s, fallbackData: p, revalidateOnMount: g, revalidateIfStale: c, refreshInterval: h, refreshWhenHidden: d, refreshWhenOffline: l, keepPreviousData: m } = o, [v, y, w, S] = Sr.get(n), [z, x] = ki(e), E = re(!1), C = re(!1), _ = re(z), b = re(t), f = re(o), O = () => f.current, k = () => O().isVisible() && O().isOnline(), [$, T, I, M] = tc(n, z), R = re({}).current, L = ze(p) ? ze(o.fallback) ? Ke : o.fallback[z] : p, F = (j, N) => {
559
- for (const G in R) {
560
- const D = G;
558
+ const { cache: n, compare: a, suspense: s, fallbackData: p, revalidateOnMount: g, revalidateIfStale: c, refreshInterval: h, refreshWhenHidden: d, refreshWhenOffline: l, keepPreviousData: m } = o, [v, y, w, S] = Sr.get(n), [z, x] = ki(e), E = re(!1), C = re(!1), _ = re(z), b = re(t), f = re(o), O = () => f.current, k = () => O().isVisible() && O().isOnline(), [$, T, I, M] = tc(n, z), R = re({}).current, L = ze(p) ? ze(o.fallback) ? Ke : o.fallback[z] : p, F = (Y, N) => {
559
+ for (const j in R) {
560
+ const D = j;
561
561
  if (D === "data") {
562
- if (!a(j[D], N[D]) && (!ze(j[D]) || !a(Q, N[D])))
562
+ if (!a(Y[D], N[D]) && (!ze(Y[D]) || !a(Q, N[D])))
563
563
  return !1;
564
- } else if (N[D] !== j[D])
564
+ } else if (N[D] !== Y[D])
565
565
  return !1;
566
566
  }
567
567
  return !0;
568
568
  }, A = fr(() => {
569
- const j = !z || !t ? !1 : ze(g) ? O().isPaused() || s ? !1 : c !== !1 : g, N = (Re) => {
569
+ const Y = !z || !t ? !1 : ze(g) ? O().isPaused() || s ? !1 : c !== !1 : g, N = (Re) => {
570
570
  const We = Lr(Re);
571
- return delete We._k, j ? {
571
+ return delete We._k, Y ? {
572
572
  isValidating: !0,
573
573
  isLoading: !0,
574
574
  ...We
575
575
  } : We;
576
- }, G = $(), D = M(), q = N(G), ue = G === D ? q : N(D);
577
- let ke = q;
576
+ }, j = $(), D = M(), G = N(j), ie = j === D ? G : N(D);
577
+ let ve = G;
578
578
  return [
579
579
  () => {
580
580
  const Re = N($());
581
- return F(Re, ke) ? (ke.data = Re.data, ke.isLoading = Re.isLoading, ke.isValidating = Re.isValidating, ke.error = Re.error, ke) : (ke = Re, Re);
581
+ return F(Re, ve) ? (ve.data = Re.data, ve.isLoading = Re.isLoading, ve.isValidating = Re.isValidating, ve.error = Re.error, ve) : (ve = Re, Re);
582
582
  },
583
- () => ue
583
+ () => ie
584
584
  ];
585
585
  }, [
586
586
  n,
587
587
  z
588
588
  ]), B = Nl.useSyncExternalStore(W(
589
- (j) => I(z, (N, G) => {
590
- F(G, N) || j();
589
+ (Y) => I(z, (N, j) => {
590
+ F(j, N) || Y();
591
591
  }),
592
592
  // eslint-disable-next-line react-hooks/exhaustive-deps
593
593
  [
594
594
  n,
595
595
  z
596
596
  ]
597
- ), A[0], A[1]), U = !E.current, ie = v[z] && v[z].length > 0, he = B.data, ne = ze(he) ? L && rc(L) ? mn(L) : L : he, ee = B.error, V = re(ne), Q = m ? ze(he) ? ze(V.current) ? ne : V.current : he : ne, J = ie && !ze(ee) ? !1 : U && !ze(g) ? g : O().isPaused() ? !1 : s ? ze(ne) ? !1 : c : ze(ne) || c, le = !!(z && t && U && J), se = ze(B.isValidating) ? le : B.isValidating, pe = ze(B.isLoading) ? le : B.isLoading, K = W(
598
- async (j) => {
597
+ ), A[0], A[1]), U = !E.current, ne = v[z] && v[z].length > 0, pe = B.data, se = ze(pe) ? L && rc(L) ? mn(L) : L : pe, ee = B.error, V = re(se), Q = m ? ze(pe) ? ze(V.current) ? se : V.current : pe : se, J = ne && !ze(ee) ? !1 : U && !ze(g) ? g : O().isPaused() ? !1 : s ? ze(se) ? !1 : c : ze(se) || c, de = !!(z && t && U && J), ce = ze(B.isValidating) ? de : B.isValidating, he = ze(B.isLoading) ? de : B.isLoading, K = W(
598
+ async (Y) => {
599
599
  const N = b.current;
600
600
  if (!z || !N || C.current || O().isPaused())
601
601
  return !1;
602
- let G, D, q = !0;
603
- const ue = j || {}, ke = !w[z] || !ue.dedupe, Re = () => Gi ? !C.current && z === _.current && E.current : z === _.current, We = {
602
+ let j, D, G = !0;
603
+ const ie = Y || {}, ve = !w[z] || !ie.dedupe, Re = () => Gi ? !C.current && z === _.current && E.current : z === _.current, We = {
604
604
  isValidating: !1,
605
605
  isLoading: !1
606
- }, Y = () => {
606
+ }, q = () => {
607
607
  T(We);
608
- }, ce = () => {
608
+ }, le = () => {
609
609
  const Ce = w[z];
610
610
  Ce && Ce[1] === D && delete w[z];
611
611
  }, $e = {
@@ -613,34 +613,34 @@ const mn = fe.use || // This extra generic is to avoid TypeScript mixing up the
613
613
  };
614
614
  ze($().data) && ($e.isLoading = !0);
615
615
  try {
616
- if (ke && (T($e), o.loadingTimeout && ze($().data) && setTimeout(() => {
617
- q && Re() && O().onLoadingSlow(z, o);
616
+ if (ve && (T($e), o.loadingTimeout && ze($().data) && setTimeout(() => {
617
+ G && Re() && O().onLoadingSlow(z, o);
618
618
  }, o.loadingTimeout), w[z] = [
619
619
  N(x),
620
620
  oi()
621
- ]), [G, D] = w[z], G = await G, ke && setTimeout(ce, o.dedupingInterval), !w[z] || w[z][1] !== D)
622
- return ke && Re() && O().onDiscarded(z), !1;
621
+ ]), [j, D] = w[z], j = await j, ve && setTimeout(le, o.dedupingInterval), !w[z] || w[z][1] !== D)
622
+ return ve && Re() && O().onDiscarded(z), !1;
623
623
  We.error = Ke;
624
624
  const Ce = y[z];
625
625
  if (!ze(Ce) && // case 1
626
626
  (D <= Ce[0] || // case 2
627
627
  D <= Ce[1] || // case 3
628
628
  Ce[1] === 0))
629
- return Y(), ke && Re() && O().onDiscarded(z), !1;
629
+ return q(), ve && Re() && O().onDiscarded(z), !1;
630
630
  const ae = $().data;
631
- We.data = a(ae, G) ? ae : G, ke && Re() && O().onSuccess(G, z, o);
631
+ We.data = a(ae, j) ? ae : j, ve && Re() && O().onSuccess(j, z, o);
632
632
  } catch (Ce) {
633
- ce();
633
+ le();
634
634
  const ae = O(), { shouldRetryOnError: Oe } = ae;
635
- ae.isPaused() || (We.error = Ce, ke && Re() && (ae.onError(Ce, z, ae), (Oe === !0 || pr(Oe) && Oe(Ce)) && (!O().revalidateOnFocus || !O().revalidateOnReconnect || k()) && ae.onErrorRetry(Ce, z, ae, (be) => {
635
+ ae.isPaused() || (We.error = Ce, ve && Re() && (ae.onError(Ce, z, ae), (Oe === !0 || pr(Oe) && Oe(Ce)) && (!O().revalidateOnFocus || !O().revalidateOnReconnect || k()) && ae.onErrorRetry(Ce, z, ae, (xe) => {
636
636
  const Pe = v[z];
637
- Pe && Pe[0] && Pe[0](Wi, be);
637
+ Pe && Pe[0] && Pe[0](Wi, xe);
638
638
  }, {
639
- retryCount: (ue.retryCount || 0) + 1,
639
+ retryCount: (ie.retryCount || 0) + 1,
640
640
  dedupe: !0
641
641
  })));
642
642
  }
643
- return q = !1, Y(), !0;
643
+ return G = !1, q(), !0;
644
644
  },
645
645
  // `setState` is immutable, and `eventsCallback`, `fnArg`, and
646
646
  // `keyValidating` are depending on `key`, so we can exclude them from
@@ -657,63 +657,63 @@ const mn = fe.use || // This extra generic is to avoid TypeScript mixing up the
657
657
  z,
658
658
  n
659
659
  ]
660
- ), de = W(
660
+ ), ue = W(
661
661
  // Use callback to make sure `keyRef.current` returns latest result every time
662
- (...j) => oc(n, _.current, ...j),
662
+ (...Y) => oc(n, _.current, ...Y),
663
663
  // eslint-disable-next-line react-hooks/exhaustive-deps
664
664
  []
665
665
  );
666
666
  if (hn(() => {
667
- b.current = t, f.current = o, ze(he) || (V.current = he);
667
+ b.current = t, f.current = o, ze(pe) || (V.current = pe);
668
668
  }), hn(() => {
669
669
  if (!z) return;
670
- const j = K.bind(Ke, vn);
670
+ const Y = K.bind(Ke, vn);
671
671
  let N = 0;
672
672
  O().revalidateOnFocus && (N = Date.now() + O().focusThrottleInterval);
673
- const D = pd(z, v, (q, ue = {}) => {
674
- if (q == Xs) {
675
- const ke = Date.now();
676
- O().revalidateOnFocus && ke > N && k() && (N = ke + O().focusThrottleInterval, j());
677
- } else if (q == Js)
678
- O().revalidateOnReconnect && k() && j();
673
+ const D = pd(z, v, (G, ie = {}) => {
674
+ if (G == Xs) {
675
+ const ve = Date.now();
676
+ O().revalidateOnFocus && ve > N && k() && (N = ve + O().focusThrottleInterval, Y());
677
+ } else if (G == Js)
678
+ O().revalidateOnReconnect && k() && Y();
679
679
  else {
680
- if (q == ec)
680
+ if (G == ec)
681
681
  return K();
682
- if (q == Wi)
683
- return K(ue);
682
+ if (G == Wi)
683
+ return K(ie);
684
684
  }
685
685
  });
686
686
  return C.current = !1, _.current = z, E.current = !0, T({
687
687
  _k: x
688
- }), J && (w[z] || (ze(ne) || Gt ? j() : ql(j))), () => {
688
+ }), J && (w[z] || (ze(se) || Gt ? Y() : ql(Y))), () => {
689
689
  C.current = !0, D();
690
690
  };
691
691
  }, [
692
692
  z
693
693
  ]), hn(() => {
694
- let j;
694
+ let Y;
695
695
  function N() {
696
696
  const D = pr(h) ? h($().data) : h;
697
- D && j !== -1 && (j = setTimeout(G, D));
697
+ D && Y !== -1 && (Y = setTimeout(j, D));
698
698
  }
699
- function G() {
699
+ function j() {
700
700
  !$().error && (d || O().isVisible()) && (l || O().isOnline()) ? K(vn).then(N) : N();
701
701
  }
702
702
  return N(), () => {
703
- j && (clearTimeout(j), j = -1);
703
+ Y && (clearTimeout(Y), Y = -1);
704
704
  };
705
705
  }, [
706
706
  h,
707
707
  d,
708
708
  l,
709
709
  z
710
- ]), Zn(Q), s && ze(ne) && z) {
710
+ ]), Zn(Q), s && ze(se) && z) {
711
711
  if (!Gi && Gt)
712
712
  throw new Error("Fallback data is required when using Suspense in SSR.");
713
713
  b.current = t, f.current = o, C.current = !1;
714
- const j = S[z];
715
- if (!ze(j)) {
716
- const N = de(j);
714
+ const Y = S[z];
715
+ if (!ze(Y)) {
716
+ const N = ue(Y);
717
717
  mn(N);
718
718
  }
719
719
  if (ze(ee)) {
@@ -723,7 +723,7 @@ const mn = fe.use || // This extra generic is to avoid TypeScript mixing up the
723
723
  throw ee;
724
724
  }
725
725
  return {
726
- mutate: de,
726
+ mutate: ue,
727
727
  get data() {
728
728
  return R.data = !0, Q;
729
729
  },
@@ -731,10 +731,10 @@ const mn = fe.use || // This extra generic is to avoid TypeScript mixing up the
731
731
  return R.error = !0, ee;
732
732
  },
733
733
  get isValidating() {
734
- return R.isValidating = !0, se;
734
+ return R.isValidating = !0, ce;
735
735
  },
736
736
  get isLoading() {
737
- return R.isLoading = !0, pe;
737
+ return R.isLoading = !0, he;
738
738
  }
739
739
  };
740
740
  }, Ze = ud(hd);
@@ -1619,19 +1619,19 @@ const Ci = () => {
1619
1619
  V
1620
1620
  ) : void 0,
1621
1621
  [f, y]
1622
- ), ie = W(
1622
+ ), ne = W(
1623
1623
  async (V) => f ? await w(
1624
1624
  f,
1625
1625
  V
1626
1626
  ) : void 0,
1627
1627
  [f, w]
1628
- ), he = W(
1628
+ ), pe = W(
1629
1629
  async (V) => f ? await S(
1630
1630
  f,
1631
1631
  V
1632
1632
  ) : void 0,
1633
1633
  [f, S]
1634
- ), ne = W(async () => {
1634
+ ), se = W(async () => {
1635
1635
  f && await s(f);
1636
1636
  }, [f, s]), ee = W(async () => f ? await g(f) : [], [f, g]);
1637
1637
  return _ || e ? {
@@ -1667,13 +1667,13 @@ const Ci = () => {
1667
1667
  removeDomain: F,
1668
1668
  getInvitations: ee,
1669
1669
  removeMember: T,
1670
- leave: ne,
1670
+ leave: se,
1671
1671
  removeRole: I,
1672
1672
  addMemberRole: A,
1673
1673
  removeMemberRole: B,
1674
1674
  inviteMember: U,
1675
- discardInvitation: ie,
1676
- resendInvitation: he,
1675
+ discardInvitation: ne,
1676
+ resendInvitation: pe,
1677
1677
  error: null
1678
1678
  };
1679
1679
  };
@@ -2468,30 +2468,30 @@ function Vd({
2468
2468
  v(!0), w(null), x.current = 0, E.current = setInterval(() => {
2469
2469
  U.readyState === WebSocket.OPEN && U.send("ping");
2470
2470
  }, 3e4);
2471
- }, U.onmessage = (ie) => {
2472
- var he, ne;
2471
+ }, U.onmessage = (ne) => {
2472
+ var pe, se;
2473
2473
  try {
2474
- const ee = JSON.parse(ie.data);
2474
+ const ee = JSON.parse(ne.data);
2475
2475
  if (ee.type === "notification" && ee.data)
2476
- (he = C.current) == null || he.call(C, ee.data);
2476
+ (pe = C.current) == null || pe.call(C, ee.data);
2477
2477
  else if (ee.type === "error") {
2478
2478
  const V = ee.error || "Unknown error occurred";
2479
- w(V), (ne = _.current) == null || ne.call(_, V);
2479
+ w(V), (se = _.current) == null || se.call(_, V);
2480
2480
  } else ee.type;
2481
2481
  } catch {
2482
2482
  }
2483
2483
  }, U.onerror = () => {
2484
- var ie;
2485
- w("Connection error occurred"), (ie = _.current) == null || ie.call(_, "Connection error occurred");
2486
- }, U.onclose = (ie) => {
2487
- var he;
2488
- if (v(!1), E.current && (clearInterval(E.current), E.current = null), e && ie.code !== 1e3 && x.current < $.current) {
2484
+ var ne;
2485
+ w("Connection error occurred"), (ne = _.current) == null || ne.call(_, "Connection error occurred");
2486
+ }, U.onclose = (ne) => {
2487
+ var pe;
2488
+ if (v(!1), E.current && (clearInterval(E.current), E.current = null), e && ne.code !== 1e3 && x.current < $.current) {
2489
2489
  x.current++;
2490
- const ne = k.current * Math.pow(2, x.current - 1);
2490
+ const se = k.current * Math.pow(2, x.current - 1);
2491
2491
  z.current = setTimeout(() => {
2492
2492
  I();
2493
- }, ne);
2494
- } else x.current >= $.current && (w("Max reconnection attempts reached"), (he = _.current) == null || he.call(_, "Max reconnection attempts reached"));
2493
+ }, se);
2494
+ } else x.current >= $.current && (w("Max reconnection attempts reached"), (pe = _.current) == null || pe.call(_, "Max reconnection attempts reached"));
2495
2495
  };
2496
2496
  } catch {
2497
2497
  w("Failed to connect"), (B = _.current) == null || B.call(_, "Failed to connect");
@@ -2870,8 +2870,8 @@ function Qd({
2870
2870
  switch (ee.message_type) {
2871
2871
  case "session_connected":
2872
2872
  if (y(!0), C({ status: Cr.CONNECTED }), (V = ee.data) != null && V.execution_status) {
2873
- const le = ee.data.execution_status, se = Yi(le);
2874
- x(se), S(Zi(se));
2873
+ const de = ee.data.execution_status, ce = Yi(de);
2874
+ x(ce), S(Zi(ce));
2875
2875
  }
2876
2876
  break;
2877
2877
  case "conversation_message":
@@ -2898,63 +2898,63 @@ function Qd({
2898
2898
  case "execution_status":
2899
2899
  const J = (Q = ee.data) == null ? void 0 : Q.status;
2900
2900
  if (J) {
2901
- const le = Yi(J);
2902
- x(le), S(Zi(le));
2901
+ const de = Yi(J);
2902
+ x(de), S(Zi(de));
2903
2903
  }
2904
2904
  break;
2905
2905
  }
2906
2906
  },
2907
2907
  [h]
2908
2908
  ), I = W((ee) => {
2909
- var se, pe, K, de, Z, j, N, G;
2910
- const { id: V, message_type: Q, content: J } = ee, le = (D) => g.some((q) => q.id === D);
2909
+ var ce, he, K, ue, Z, Y, N, j;
2910
+ const { id: V, message_type: Q, content: J } = ee, de = (D) => g.some((G) => G.id === D);
2911
2911
  if (Q === "system_decision" || Q === "action_execution_result" || Q === "assistant_task_breakdown" || Q === "assistant_validation" || Q === "assistant_action_planning" || Q === "context_results") {
2912
2912
  d(null), m(null);
2913
2913
  let D = "";
2914
2914
  if (Q === "system_decision") {
2915
- const q = J == null ? void 0 : J.step, ue = J == null ? void 0 : J.reasoning;
2916
- if (q === "gathercontext")
2917
- ue && ue.length > 0 ? D = ue.length > 60 ? `${ue.substring(0, 60)}...` : ue : D = "Gathering context...";
2918
- else if (q === "executeaction")
2915
+ const G = J == null ? void 0 : J.step, ie = J == null ? void 0 : J.reasoning;
2916
+ if (G === "gathercontext")
2917
+ ie && ie.length > 0 ? D = ie.length > 60 ? `${ie.substring(0, 60)}...` : ie : D = "Gathering context...";
2918
+ else if (G === "executeaction")
2919
2919
  D = "Executing action";
2920
- else if (q === "deliverresponse")
2920
+ else if (G === "deliverresponse")
2921
2921
  D = "Preparing response";
2922
- else if (q === "taskplanning")
2922
+ else if (G === "taskplanning")
2923
2923
  D = "Planning approach";
2924
- else if (q === "validateprogress")
2924
+ else if (G === "validateprogress")
2925
2925
  D = "Validating progress";
2926
- else if (q === "acknowledge")
2926
+ else if (G === "acknowledge")
2927
2927
  D = "Processing request";
2928
- else if (q === "finishplanning")
2928
+ else if (G === "finishplanning")
2929
2929
  D = "Finalizing plan";
2930
- else if (q === "executetasks")
2930
+ else if (G === "executetasks")
2931
2931
  D = "Executing tasks";
2932
- else if (q === "requestuserinput")
2932
+ else if (G === "requestuserinput")
2933
2933
  D = "Waiting for input";
2934
- else if (q === "complete")
2934
+ else if (G === "complete")
2935
2935
  D = "Completed";
2936
- else if (q === "examinetool")
2936
+ else if (G === "examinetool")
2937
2937
  D = "Examining tool";
2938
- else if (q === "examineworkflow")
2938
+ else if (G === "examineworkflow")
2939
2939
  D = "Examining workflow";
2940
2940
  else {
2941
- const ke = (J == null ? void 0 : J.confidence) || 0.5;
2942
- ke > 0.8 ? D = "Analyzing" : ke > 0.6 ? D = "Thinking" : D = "Reasoning";
2941
+ const ve = (J == null ? void 0 : J.confidence) || 0.5;
2942
+ ve > 0.8 ? D = "Analyzing" : ve > 0.6 ? D = "Thinking" : D = "Reasoning";
2943
2943
  }
2944
2944
  } else if (Q === "action_execution_result")
2945
- ((se = J.task_execution) == null ? void 0 : se.status) === "completed" ? D = "Task execution completed" : (pe = J.task_execution) != null && pe.approach ? D = J.task_execution.approach : D = "Executing task";
2945
+ ((ce = J.task_execution) == null ? void 0 : ce.status) === "completed" ? D = "Task execution completed" : (he = J.task_execution) != null && he.approach ? D = J.task_execution.approach : D = "Executing task";
2946
2946
  else if (Q === "assistant_task_breakdown")
2947
2947
  (K = J.task_breakdown) != null && K.total_tasks ? D = `Identified ${J.task_breakdown.total_tasks} tasks` : D = "Planning tasks";
2948
2948
  else if (Q === "assistant_validation")
2949
2949
  D = "Validated results";
2950
2950
  else if (Q === "assistant_action_planning")
2951
- (de = J.task_execution) != null && de.total_tasks ? D = `Planned ${J.task_execution.total_tasks} tasks` : (j = (Z = J.task_execution) == null ? void 0 : Z.tasks) != null && j.length ? D = `Planned ${J.task_execution.tasks.length} tasks` : D = "Planning actions";
2951
+ (ue = J.task_execution) != null && ue.total_tasks ? D = `Planned ${J.task_execution.total_tasks} tasks` : (Y = (Z = J.task_execution) == null ? void 0 : Z.tasks) != null && Y.length ? D = `Planned ${J.task_execution.tasks.length} tasks` : D = "Planning actions";
2952
2952
  else if (Q === "context_results") {
2953
- const q = J.query, ue = J.result_count || 0;
2954
- q && q !== "General context gathering" ? D = `${q}: Found ${ue} results` : D = `Found ${ue} results`;
2953
+ const G = J.query, ie = J.result_count || 0;
2954
+ G && G !== "General context gathering" ? D = `${G}: Found ${ie} results` : D = `Found ${ie} results`;
2955
2955
  }
2956
- D && !le(V) && c((q) => [
2957
- ...q,
2956
+ D && !de(V) && c((G) => [
2957
+ ...G,
2958
2958
  {
2959
2959
  id: V,
2960
2960
  role: "system",
@@ -2969,7 +2969,7 @@ function Qd({
2969
2969
  return;
2970
2970
  }
2971
2971
  if (Q === "user_message")
2972
- le(V) || (d(null), m(null), c((D) => [
2972
+ de(V) || (d(null), m(null), c((D) => [
2973
2973
  ...D,
2974
2974
  {
2975
2975
  id: V,
@@ -2980,7 +2980,7 @@ function Qd({
2980
2980
  }
2981
2981
  ]));
2982
2982
  else if (Q === "agent_response")
2983
- le(V) || (d(null), m(null), S(!1), x(Ue.IDLE), $.current = null, c((D) => [
2983
+ de(V) || (d(null), m(null), S(!1), x(Ue.IDLE), $.current = null, c((D) => [
2984
2984
  ...D,
2985
2985
  {
2986
2986
  id: V,
@@ -2991,7 +2991,7 @@ function Qd({
2991
2991
  }
2992
2992
  ]));
2993
2993
  else if (Q === "assistant_acknowledgment")
2994
- le(V) || (d(null), m(null), c((D) => [
2994
+ de(V) || (d(null), m(null), c((D) => [
2995
2995
  ...D,
2996
2996
  {
2997
2997
  id: V,
@@ -3008,14 +3008,14 @@ function Qd({
3008
3008
  D = J.task_execution.approach;
3009
3009
  else if (J.strategic_synthesis)
3010
3010
  D = J.strategic_synthesis;
3011
- else if ((G = J.task_breakdown) != null && G.total_tasks)
3011
+ else if ((j = J.task_breakdown) != null && j.total_tasks)
3012
3012
  D = `Breaking down into ${J.task_breakdown.total_tasks} tasks...`;
3013
3013
  else if (J.acknowledgment_message)
3014
3014
  D = J.acknowledgment_message;
3015
3015
  else
3016
3016
  return;
3017
- c((q) => [
3018
- ...q,
3017
+ c((G) => [
3018
+ ...G,
3019
3019
  {
3020
3020
  id: V,
3021
3021
  role: "assistant",
@@ -3032,8 +3032,8 @@ function Qd({
3032
3032
  default_value: J.default_value,
3033
3033
  placeholder: J.placeholder
3034
3034
  };
3035
- x("waiting_for_input"), c((q) => [
3036
- ...q,
3035
+ x("waiting_for_input"), c((G) => [
3036
+ ...G,
3037
3037
  {
3038
3038
  id: V,
3039
3039
  role: "system",
@@ -3070,12 +3070,12 @@ function Qd({
3070
3070
  [n]
3071
3071
  ), L = W(
3072
3072
  async (ee) => {
3073
- const { function_name: V, function_data: Q } = ee, { parameters: J, execution_id: le } = Q;
3073
+ const { function_name: V, function_data: Q } = ee, { parameters: J, execution_id: de } = Q;
3074
3074
  if (!(n != null && n.onPlatformFunction)) {
3075
3075
  er.send({
3076
3076
  message_type: {
3077
3077
  platform_function_result: [
3078
- le,
3078
+ de,
3079
3079
  {
3080
3080
  error: "No platform function handler registered"
3081
3081
  }
@@ -3086,25 +3086,25 @@ function Qd({
3086
3086
  return;
3087
3087
  }
3088
3088
  try {
3089
- const se = await n.onPlatformFunction(
3089
+ const ce = await n.onPlatformFunction(
3090
3090
  V,
3091
3091
  J,
3092
- le
3093
- ), pe = {
3092
+ de
3093
+ ), he = {
3094
3094
  message_type: {
3095
- platform_function_result: [le, se]
3095
+ platform_function_result: [de, ce]
3096
3096
  },
3097
3097
  data: {}
3098
3098
  };
3099
- er.send(pe);
3100
- } catch (se) {
3099
+ er.send(he);
3100
+ } catch (ce) {
3101
3101
  er.send({
3102
3102
  message_type: {
3103
3103
  platform_function_result: [
3104
- le,
3104
+ de,
3105
3105
  {
3106
- error: se instanceof Error ? se.message : "Function execution failed",
3107
- stack: se instanceof Error ? se.stack : void 0
3106
+ error: ce instanceof Error ? ce.message : "Function execution failed",
3107
+ stack: ce instanceof Error ? ce.stack : void 0
3108
3108
  }
3109
3109
  ]
3110
3110
  },
@@ -3150,7 +3150,7 @@ function Qd({
3150
3150
  }), x(Ue.RUNNING));
3151
3151
  },
3152
3152
  [v, z]
3153
- ), ie = W(
3153
+ ), ne = W(
3154
3154
  async (ee) => {
3155
3155
  var V;
3156
3156
  if (!(!o || !e))
@@ -3160,37 +3160,37 @@ function Qd({
3160
3160
  limit: "50"
3161
3161
  });
3162
3162
  ee && (Q.append("before_id", ee), O(!0));
3163
- const le = await (await p(
3163
+ const de = await (await p(
3164
3164
  `/api/agent/contexts/${e}/messages?${Q}`,
3165
3165
  {
3166
3166
  method: "GET"
3167
3167
  }
3168
3168
  )).json();
3169
- if (le.status === 200 && le.data) {
3170
- const se = le.data;
3171
- if (Array.isArray(se.data)) {
3172
- const pe = se.data.filter((K) => {
3173
- var j;
3174
- let de = K.content;
3169
+ if (de.status === 200 && de.data) {
3170
+ const ce = de.data;
3171
+ if (Array.isArray(ce.data)) {
3172
+ const he = ce.data.filter((K) => {
3173
+ var Y;
3174
+ let ue = K.content;
3175
3175
  if (typeof K.content == "string")
3176
3176
  try {
3177
- de = JSON.parse(K.content);
3177
+ ue = JSON.parse(K.content);
3178
3178
  } catch {
3179
- de = { message: K.content };
3179
+ ue = { message: K.content };
3180
3180
  }
3181
- const Z = ((j = K.metadata) == null ? void 0 : j.message_type) || (de == null ? void 0 : de.message_type);
3181
+ const Z = ((Y = K.metadata) == null ? void 0 : Y.message_type) || (ue == null ? void 0 : ue.message_type);
3182
3182
  return Z === "user_message" || Z === "agent_response" || Z === "assistant_acknowledgment" || Z === "user_input_request" || Z === "system_decision" || Z === "action_execution_result" || Z === "assistant_task_breakdown" || Z === "assistant_validation" || Z === "assistant_action_planning" || Z === "context_results";
3183
3183
  }).map((K) => {
3184
- var D, q, ue, ke, Re, We, Y;
3185
- let de = "", Z, j, N = K.content;
3184
+ var D, G, ie, ve, Re, We, q;
3185
+ let ue = "", Z, Y, N = K.content;
3186
3186
  if (typeof K.content == "string")
3187
3187
  try {
3188
3188
  N = JSON.parse(K.content);
3189
3189
  } catch {
3190
3190
  N = K.content;
3191
3191
  }
3192
- const G = ((D = K.metadata) == null ? void 0 : D.message_type) || (N == null ? void 0 : N.message_type);
3193
- if (G === "user_message" ? (de = (N == null ? void 0 : N.message) || "", Z = (N == null ? void 0 : N.images) || void 0) : G === "agent_response" ? de = (N == null ? void 0 : N.response) || "" : G === "assistant_acknowledgment" ? de = (N == null ? void 0 : N.acknowledgment_message) || "" : G === "user_input_request" && (de = (N == null ? void 0 : N.question) || "", j = {
3192
+ const j = ((D = K.metadata) == null ? void 0 : D.message_type) || (N == null ? void 0 : N.message_type);
3193
+ if (j === "user_message" ? (ue = (N == null ? void 0 : N.message) || "", Z = (N == null ? void 0 : N.images) || void 0) : j === "agent_response" ? ue = (N == null ? void 0 : N.response) || "" : j === "assistant_acknowledgment" ? ue = (N == null ? void 0 : N.acknowledgment_message) || "" : j === "user_input_request" && (ue = (N == null ? void 0 : N.question) || "", Y = {
3194
3194
  type: "user_input_request",
3195
3195
  userInputRequest: {
3196
3196
  question: (N == null ? void 0 : N.question) || "",
@@ -3200,67 +3200,67 @@ function Qd({
3200
3200
  default_value: (N == null ? void 0 : N.default_value) || "",
3201
3201
  placeholder: (N == null ? void 0 : N.placeholder) || ""
3202
3202
  }
3203
- }), G === "system_decision" || G === "action_execution_result" || G === "assistant_task_breakdown" || G === "assistant_validation" || G === "assistant_action_planning" || G === "context_results") {
3204
- let ce = "";
3205
- if (G === "system_decision") {
3203
+ }), j === "system_decision" || j === "action_execution_result" || j === "assistant_task_breakdown" || j === "assistant_validation" || j === "assistant_action_planning" || j === "context_results") {
3204
+ let le = "";
3205
+ if (j === "system_decision") {
3206
3206
  const $e = N == null ? void 0 : N.step, Ce = N == null ? void 0 : N.reasoning;
3207
3207
  if ($e === "gathercontext")
3208
- Ce && Ce.length > 0 ? ce = Ce.length > 60 ? `${Ce.substring(0, 60)}...` : Ce : ce = "Gathering context...";
3208
+ Ce && Ce.length > 0 ? le = Ce.length > 60 ? `${Ce.substring(0, 60)}...` : Ce : le = "Gathering context...";
3209
3209
  else if ($e === "executeaction")
3210
- ce = "Executing action";
3210
+ le = "Executing action";
3211
3211
  else if ($e === "deliverresponse")
3212
- ce = "Preparing response";
3212
+ le = "Preparing response";
3213
3213
  else if ($e === "taskplanning")
3214
- ce = "Planning approach";
3214
+ le = "Planning approach";
3215
3215
  else if ($e === "validateprogress")
3216
- ce = "Validating progress";
3216
+ le = "Validating progress";
3217
3217
  else if ($e === "acknowledge")
3218
- ce = "Processing request";
3218
+ le = "Processing request";
3219
3219
  else if ($e === "finishplanning")
3220
- ce = "Finalizing plan";
3220
+ le = "Finalizing plan";
3221
3221
  else if ($e === "executetasks")
3222
- ce = "Executing tasks";
3222
+ le = "Executing tasks";
3223
3223
  else if ($e === "requestuserinput")
3224
- ce = "Waiting for input";
3224
+ le = "Waiting for input";
3225
3225
  else if ($e === "complete")
3226
- ce = "Completed";
3226
+ le = "Completed";
3227
3227
  else if ($e === "examinetool")
3228
- ce = "Examining tool";
3228
+ le = "Examining tool";
3229
3229
  else if ($e === "examineworkflow")
3230
- ce = "Examining workflow";
3230
+ le = "Examining workflow";
3231
3231
  else {
3232
3232
  const ae = (N == null ? void 0 : N.confidence) || 0.5;
3233
- ae > 0.8 ? ce = "Analyzing" : ae > 0.6 ? ce = "Thinking" : ce = "Reasoning";
3233
+ ae > 0.8 ? le = "Analyzing" : ae > 0.6 ? le = "Thinking" : le = "Reasoning";
3234
3234
  }
3235
- } else if (G === "action_execution_result")
3236
- ((q = N == null ? void 0 : N.task_execution) == null ? void 0 : q.status) === "completed" ? ce = "Task execution completed" : (ue = N == null ? void 0 : N.task_execution) != null && ue.approach ? ce = N.task_execution.approach : ce = "Executing task";
3237
- else if (G === "assistant_task_breakdown")
3238
- (ke = N == null ? void 0 : N.task_breakdown) != null && ke.total_tasks ? ce = `Identified ${N.task_breakdown.total_tasks} tasks` : ce = "Planning tasks";
3239
- else if (G === "assistant_validation")
3240
- ce = "Validated results";
3241
- else if (G === "assistant_action_planning")
3242
- (Re = N == null ? void 0 : N.task_execution) != null && Re.total_tasks ? ce = `Planned ${N.task_execution.total_tasks} tasks` : (Y = (We = N == null ? void 0 : N.task_execution) == null ? void 0 : We.tasks) != null && Y.length ? ce = `Planned ${N.task_execution.tasks.length} tasks` : ce = "Planning actions";
3243
- else if (G === "context_results") {
3235
+ } else if (j === "action_execution_result")
3236
+ ((G = N == null ? void 0 : N.task_execution) == null ? void 0 : G.status) === "completed" ? le = "Task execution completed" : (ie = N == null ? void 0 : N.task_execution) != null && ie.approach ? le = N.task_execution.approach : le = "Executing task";
3237
+ else if (j === "assistant_task_breakdown")
3238
+ (ve = N == null ? void 0 : N.task_breakdown) != null && ve.total_tasks ? le = `Identified ${N.task_breakdown.total_tasks} tasks` : le = "Planning tasks";
3239
+ else if (j === "assistant_validation")
3240
+ le = "Validated results";
3241
+ else if (j === "assistant_action_planning")
3242
+ (Re = N == null ? void 0 : N.task_execution) != null && Re.total_tasks ? le = `Planned ${N.task_execution.total_tasks} tasks` : (q = (We = N == null ? void 0 : N.task_execution) == null ? void 0 : We.tasks) != null && q.length ? le = `Planned ${N.task_execution.tasks.length} tasks` : le = "Planning actions";
3243
+ else if (j === "context_results") {
3244
3244
  const $e = N == null ? void 0 : N.query, Ce = (N == null ? void 0 : N.result_count) || 0;
3245
- $e && $e !== "General context gathering" ? ce = `${$e}: Found ${Ce} results` : ce = `Found ${Ce} results`;
3245
+ $e && $e !== "General context gathering" ? le = `${$e}: Found ${Ce} results` : le = `Found ${Ce} results`;
3246
3246
  }
3247
- de = ce, j = { type: "log", messageType: G };
3247
+ ue = le, Y = { type: "log", messageType: j };
3248
3248
  }
3249
3249
  return {
3250
3250
  id: K.id,
3251
- role: G === "user_message" ? "user" : G === "user_input_request" ? "system" : "assistant",
3252
- content: de,
3251
+ role: j === "user_message" ? "user" : j === "user_input_request" ? "system" : "assistant",
3252
+ content: ue,
3253
3253
  images: Z,
3254
3254
  timestamp: new Date(
3255
3255
  K.timestamp || K.created_at || Date.now()
3256
3256
  ),
3257
- metadata: j
3257
+ metadata: Y
3258
3258
  };
3259
- }).filter((K) => K.content || K.metadata || K.images).sort((K, de) => {
3260
- const Z = BigInt(K.id), j = BigInt(de.id);
3261
- return Z < j ? -1 : Z > j ? 1 : 0;
3259
+ }).filter((K) => K.content || K.metadata || K.images).sort((K, ue) => {
3260
+ const Z = BigInt(K.id), Y = BigInt(ue.id);
3261
+ return Z < Y ? -1 : Z > Y ? 1 : 0;
3262
3262
  });
3263
- pe.length > 0 && (k.current = pe[0].id), ee ? (c((K) => [...pe, ...K]), b(pe.length >= 50)) : (c(pe), pe.length > 0 && ((V = pe[pe.length - 1].metadata) == null ? void 0 : V.type) === "user_input_request" && x(Ue.WAITING_FOR_INPUT)), O(!1);
3263
+ he.length > 0 && (k.current = he[0].id), ee ? (c((K) => [...he, ...K]), b(he.length >= 50)) : (c(he), he.length > 0 && ((V = he[he.length - 1].metadata) == null ? void 0 : V.type) === "user_input_request" && x(Ue.WAITING_FOR_INPUT)), O(!1);
3264
3264
  }
3265
3265
  }
3266
3266
  } catch (Q) {
@@ -3270,18 +3270,18 @@ function Qd({
3270
3270
  [o, e, p]
3271
3271
  );
3272
3272
  oe(() => {
3273
- e && o && ie();
3273
+ e && o && ne();
3274
3274
  }, [e, o]);
3275
- const he = W(async () => {
3275
+ const pe = W(async () => {
3276
3276
  if (!(f || !_ || !k.current)) {
3277
3277
  O(!0);
3278
3278
  try {
3279
- await ie(k.current);
3279
+ await ne(k.current);
3280
3280
  } finally {
3281
3281
  O(!1);
3282
3282
  }
3283
3283
  }
3284
- }, [f, _, ie]), ne = W(() => {
3284
+ }, [f, _, ne]), se = W(() => {
3285
3285
  !v || !w || (er.send({
3286
3286
  message_type: { cancel_execution: null },
3287
3287
  data: {}
@@ -3301,8 +3301,8 @@ function Qd({
3301
3301
  sendMessage: A,
3302
3302
  submitUserInput: U,
3303
3303
  clearMessages: B,
3304
- loadMoreMessages: he,
3305
- cancelExecution: ne,
3304
+ loadMoreMessages: pe,
3305
+ cancelExecution: se,
3306
3306
  connect: F,
3307
3307
  disconnect: () => er.disconnect()
3308
3308
  };
@@ -3383,7 +3383,7 @@ function dc(e) {
3383
3383
  function _r(e, t) {
3384
3384
  return (e = t.exec(e)) ? e[0] : e;
3385
3385
  }
3386
- function xe(e, t, o) {
3386
+ function we(e, t, o) {
3387
3387
  return e.replace(t, o);
3388
3388
  }
3389
3389
  function Io(e, t, o) {
@@ -3541,7 +3541,7 @@ function Ro(e, t, o, n, a, s, p, g, c) {
3541
3541
  // (
3542
3542
  case 40:
3543
3543
  if (y != 108 && He(f, l - 1) == 58) {
3544
- Io(f += xe(yn(x), "&", "&\f"), "&\f", lc(h ? g[h - 1] : 0)) != -1 && (z = -1);
3544
+ Io(f += we(yn(x), "&", "&\f"), "&\f", lc(h ? g[h - 1] : 0)) != -1 && (z = -1);
3545
3545
  break;
3546
3546
  }
3547
3547
  // " ' [
@@ -3586,7 +3586,7 @@ function Ro(e, t, o, n, a, s, p, g, c) {
3586
3586
  S = 0;
3587
3587
  // ;
3588
3588
  case 59 + d:
3589
- z == -1 && (f = xe(f, /\f/g, "")), v > 0 && ur(f) - l && jt(v > 32 ? Xi(f + ";", n, o, l - 1, c) : Xi(xe(f, " ", "") + ";", n, o, l - 2, c), c);
3589
+ z == -1 && (f = we(f, /\f/g, "")), v > 0 && ur(f) - l && jt(v > 32 ? Xi(f + ";", n, o, l - 1, c) : Xi(we(f, " ", "") + ";", n, o, l - 2, c), c);
3590
3590
  break;
3591
3591
  // @ ;
3592
3592
  case 59:
@@ -3644,7 +3644,7 @@ function Ro(e, t, o, n, a, s, p, g, c) {
3644
3644
  function Qi(e, t, o, n, a, s, p, g, c, h, d, l) {
3645
3645
  for (var m = a - 1, v = a === 0 ? s : [""], y = uc(v), w = 0, S = 0, z = 0; w < n; ++w)
3646
3646
  for (var x = 0, E = bt(e, m + 1, m = lc(S = p[w])), C = e; x < y; ++x)
3647
- (C = dc(S > 0 ? v[x] + " " + E : xe(E, /&\f/g, v[x]))) && (c[z++] = C);
3647
+ (C = dc(S > 0 ? v[x] + " " + E : we(E, /&\f/g, v[x]))) && (c[z++] = C);
3648
3648
  return Qo(e, t, o, a === 0 ? Zo : g, c, h, d, l);
3649
3649
  }
3650
3650
  function gu(e, t, o, n) {
@@ -3703,13 +3703,13 @@ function hc(e, t, o) {
3703
3703
  switch (He(e, t + 11)) {
3704
3704
  // vertical-l(r)
3705
3705
  case 114:
3706
- return Ie + e + Me + xe(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
3706
+ return Ie + e + Me + we(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
3707
3707
  // vertical-r(l)
3708
3708
  case 108:
3709
- return Ie + e + Me + xe(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
3709
+ return Ie + e + Me + we(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
3710
3710
  // horizontal(-)tb
3711
3711
  case 45:
3712
- return Ie + e + Me + xe(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
3712
+ return Ie + e + Me + we(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
3713
3713
  }
3714
3714
  // flex, flex-direction, scroll-snap-type, writing-mode
3715
3715
  case 6828:
@@ -3721,35 +3721,35 @@ function hc(e, t, o) {
3721
3721
  return Ie + e + Me + "flex-" + e + e;
3722
3722
  // align-items
3723
3723
  case 5187:
3724
- return Ie + e + xe(e, /(\w+).+(:[^]+)/, Ie + "box-$1$2" + Me + "flex-$1$2") + e;
3724
+ return Ie + e + we(e, /(\w+).+(:[^]+)/, Ie + "box-$1$2" + Me + "flex-$1$2") + e;
3725
3725
  // align-self
3726
3726
  case 5443:
3727
- return Ie + e + Me + "flex-item-" + xe(e, /flex-|-self/g, "") + (_r(e, /flex-|baseline/) ? "" : Me + "grid-row-" + xe(e, /flex-|-self/g, "")) + e;
3727
+ return Ie + e + Me + "flex-item-" + we(e, /flex-|-self/g, "") + (_r(e, /flex-|baseline/) ? "" : Me + "grid-row-" + we(e, /flex-|-self/g, "")) + e;
3728
3728
  // align-content
3729
3729
  case 4675:
3730
- return Ie + e + Me + "flex-line-pack" + xe(e, /align-content|flex-|-self/g, "") + e;
3730
+ return Ie + e + Me + "flex-line-pack" + we(e, /align-content|flex-|-self/g, "") + e;
3731
3731
  // flex-shrink
3732
3732
  case 5548:
3733
- return Ie + e + Me + xe(e, "shrink", "negative") + e;
3733
+ return Ie + e + Me + we(e, "shrink", "negative") + e;
3734
3734
  // flex-basis
3735
3735
  case 5292:
3736
- return Ie + e + Me + xe(e, "basis", "preferred-size") + e;
3736
+ return Ie + e + Me + we(e, "basis", "preferred-size") + e;
3737
3737
  // flex-grow
3738
3738
  case 6060:
3739
- return Ie + "box-" + xe(e, "-grow", "") + Ie + e + Me + xe(e, "grow", "positive") + e;
3739
+ return Ie + "box-" + we(e, "-grow", "") + Ie + e + Me + we(e, "grow", "positive") + e;
3740
3740
  // transition
3741
3741
  case 4554:
3742
- return Ie + xe(e, /([^-])(transform)/g, "$1" + Ie + "$2") + e;
3742
+ return Ie + we(e, /([^-])(transform)/g, "$1" + Ie + "$2") + e;
3743
3743
  // cursor
3744
3744
  case 6187:
3745
- return xe(xe(xe(e, /(zoom-|grab)/, Ie + "$1"), /(image-set)/, Ie + "$1"), e, "") + e;
3745
+ return we(we(we(e, /(zoom-|grab)/, Ie + "$1"), /(image-set)/, Ie + "$1"), e, "") + e;
3746
3746
  // background, background-image
3747
3747
  case 5495:
3748
3748
  case 3959:
3749
- return xe(e, /(image-set\([^]*)/, Ie + "$1$`$1");
3749
+ return we(e, /(image-set\([^]*)/, Ie + "$1$`$1");
3750
3750
  // justify-content
3751
3751
  case 4968:
3752
- return xe(xe(e, /(.+:)(flex-)?(.*)/, Ie + "box-pack:$3" + Me + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Ie + e + e;
3752
+ return we(we(e, /(.+:)(flex-)?(.*)/, Ie + "box-pack:$3" + Me + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Ie + e + e;
3753
3753
  // justify-self
3754
3754
  case 4200:
3755
3755
  if (!_r(e, /flex-|baseline/)) return Me + "grid-column-align" + bt(e, t) + e;
@@ -3757,25 +3757,25 @@ function hc(e, t, o) {
3757
3757
  // grid-template-(columns|rows)
3758
3758
  case 2592:
3759
3759
  case 3360:
3760
- return Me + xe(e, "template-", "") + e;
3760
+ return Me + we(e, "template-", "") + e;
3761
3761
  // grid-(row|column)-start
3762
3762
  case 4384:
3763
3763
  case 3616:
3764
3764
  return o && o.some(function(n, a) {
3765
3765
  return t = a, _r(n.props, /grid-\w+-end/);
3766
- }) ? ~Io(e + (o = o[t].value), "span", 0) ? e : Me + xe(e, "-start", "") + e + Me + "grid-row-span:" + (~Io(o, "span", 0) ? _r(o, /\d+/) : +_r(o, /\d+/) - +_r(e, /\d+/)) + ";" : Me + xe(e, "-start", "") + e;
3766
+ }) ? ~Io(e + (o = o[t].value), "span", 0) ? e : Me + we(e, "-start", "") + e + Me + "grid-row-span:" + (~Io(o, "span", 0) ? _r(o, /\d+/) : +_r(o, /\d+/) - +_r(e, /\d+/)) + ";" : Me + we(e, "-start", "") + e;
3767
3767
  // grid-(row|column)-end
3768
3768
  case 4896:
3769
3769
  case 4128:
3770
3770
  return o && o.some(function(n) {
3771
3771
  return _r(n.props, /grid-\w+-start/);
3772
- }) ? e : Me + xe(xe(e, "-end", "-span"), "span ", "") + e;
3772
+ }) ? e : Me + we(we(e, "-end", "-span"), "span ", "") + e;
3773
3773
  // (margin|padding)-inline-(start|end)
3774
3774
  case 4095:
3775
3775
  case 3583:
3776
3776
  case 4068:
3777
3777
  case 2532:
3778
- return xe(e, /(.+)-inline(.+)/, Ie + "$1$2") + e;
3778
+ return we(e, /(.+)-inline(.+)/, Ie + "$1$2") + e;
3779
3779
  // (min|max)?(width|height|inline-size|block-size)
3780
3780
  case 8116:
3781
3781
  case 7059:
@@ -3797,32 +3797,32 @@ function hc(e, t, o) {
3797
3797
  break;
3798
3798
  // (f)ill-available, (f)it-content
3799
3799
  case 102:
3800
- return xe(e, /(.+:)(.+)-([^]+)/, "$1" + Ie + "$2-$3$1" + Vt + (He(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
3800
+ return we(e, /(.+:)(.+)-([^]+)/, "$1" + Ie + "$2-$3$1" + Vt + (He(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
3801
3801
  // (s)tretch
3802
3802
  case 115:
3803
- return ~Io(e, "stretch", 0) ? hc(xe(e, "stretch", "fill-available"), t, o) + e : e;
3803
+ return ~Io(e, "stretch", 0) ? hc(we(e, "stretch", "fill-available"), t, o) + e : e;
3804
3804
  }
3805
3805
  break;
3806
3806
  // grid-(column|row)
3807
3807
  case 5152:
3808
3808
  case 5920:
3809
- return xe(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, s, p, g, c, h) {
3809
+ return we(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, s, p, g, c, h) {
3810
3810
  return Me + a + ":" + s + h + (p ? Me + a + "-span:" + (g ? c : +c - +s) + h : "") + e;
3811
3811
  });
3812
3812
  // position: sticky
3813
3813
  case 4949:
3814
3814
  if (He(e, t + 6) === 121)
3815
- return xe(e, ":", ":" + Ie) + e;
3815
+ return we(e, ":", ":" + Ie) + e;
3816
3816
  break;
3817
3817
  // display: (flex|inline-flex|grid|inline-grid)
3818
3818
  case 6444:
3819
3819
  switch (He(e, He(e, 14) === 45 ? 18 : 11)) {
3820
3820
  // (inline-)?fle(x)
3821
3821
  case 120:
3822
- return xe(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + Ie + (He(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Ie + "$2$3$1" + Me + "$2box$3") + e;
3822
+ return we(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + Ie + (He(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Ie + "$2$3$1" + Me + "$2box$3") + e;
3823
3823
  // (inline-)?gri(d)
3824
3824
  case 100:
3825
- return xe(e, ":", ":" + Me) + e;
3825
+ return we(e, ":", ":" + Me) + e;
3826
3826
  }
3827
3827
  break;
3828
3828
  // scroll-margin, scroll-margin-(top|right|bottom|left)
@@ -3831,7 +3831,7 @@ function hc(e, t, o) {
3831
3831
  case 2135:
3832
3832
  case 3927:
3833
3833
  case 2391:
3834
- return xe(e, "scroll-", "scroll-snap-") + e;
3834
+ return we(e, "scroll-", "scroll-snap-") + e;
3835
3835
  }
3836
3836
  return e;
3837
3837
  }
@@ -3876,7 +3876,7 @@ function bu(e, t, o, n) {
3876
3876
  e.return = hc(e.value, e.length, o);
3877
3877
  return;
3878
3878
  case cc:
3879
- return Bo([Rr(e, { value: xe(e.value, "@", "@" + Ie) })], n);
3879
+ return Bo([Rr(e, { value: we(e.value, "@", "@" + Ie) })], n);
3880
3880
  case Zo:
3881
3881
  if (e.length)
3882
3882
  return iu(o = e.props, function(a) {
@@ -3884,11 +3884,11 @@ function bu(e, t, o, n) {
3884
3884
  // :read-(only|write)
3885
3885
  case ":read-only":
3886
3886
  case ":read-write":
3887
- dt(Rr(e, { props: [xe(a, /:(read-\w+)/, ":" + Vt + "$1")] })), dt(Rr(e, { props: [a] })), ai(e, { props: Ki(o, n) });
3887
+ dt(Rr(e, { props: [we(a, /:(read-\w+)/, ":" + Vt + "$1")] })), dt(Rr(e, { props: [a] })), ai(e, { props: Ki(o, n) });
3888
3888
  break;
3889
3889
  // :placeholder
3890
3890
  case "::placeholder":
3891
- dt(Rr(e, { props: [xe(a, /:(plac\w+)/, ":" + Ie + "input-$1")] })), dt(Rr(e, { props: [xe(a, /:(plac\w+)/, ":" + Vt + "$1")] })), dt(Rr(e, { props: [xe(a, /:(plac\w+)/, Me + "input-$1")] })), dt(Rr(e, { props: [a] })), ai(e, { props: Ki(o, n) });
3891
+ dt(Rr(e, { props: [we(a, /:(plac\w+)/, ":" + Ie + "input-$1")] })), dt(Rr(e, { props: [we(a, /:(plac\w+)/, ":" + Vt + "$1")] })), dt(Rr(e, { props: [we(a, /:(plac\w+)/, Me + "input-$1")] })), dt(Rr(e, { props: [a] })), ai(e, { props: Ki(o, n) });
3892
3892
  break;
3893
3893
  }
3894
3894
  return "";
@@ -4412,21 +4412,21 @@ function op(e, t, o) {
4412
4412
  return function(b, f, O) {
4413
4413
  var k = b.attrs, $ = b.componentStyle, T = b.defaultProps, I = b.foldedComponentIds, M = b.styledComponentId, R = b.target, L = fe.useContext(Ic), F = sa(), A = b.shouldForwardProp || F.shouldForwardProp;
4414
4414
  process.env.NODE_ENV !== "production" && Zn(M);
4415
- var B = _u(f, L, T) || wt, U = function(Q, J, le) {
4416
- for (var se, pe = Xe(Xe({}, J), { className: void 0, theme: le }), K = 0; K < Q.length; K += 1) {
4417
- var de = kt(se = Q[K]) ? se(pe) : se;
4418
- for (var Z in de) pe[Z] = Z === "className" ? Jr(pe[Z], de[Z]) : Z === "style" ? Xe(Xe({}, pe[Z]), de[Z]) : de[Z];
4415
+ var B = _u(f, L, T) || wt, U = function(Q, J, de) {
4416
+ for (var ce, he = Xe(Xe({}, J), { className: void 0, theme: de }), K = 0; K < Q.length; K += 1) {
4417
+ var ue = kt(ce = Q[K]) ? ce(he) : ce;
4418
+ for (var Z in ue) he[Z] = Z === "className" ? Jr(he[Z], ue[Z]) : Z === "style" ? Xe(Xe({}, he[Z]), ue[Z]) : ue[Z];
4419
4419
  }
4420
- return J.className && (pe.className = Jr(pe.className, J.className)), pe;
4421
- }(k, f, B), ie = U.as || R, he = {};
4422
- for (var ne in U) U[ne] === void 0 || ne[0] === "$" || ne === "as" || ne === "theme" && U.theme === B || (ne === "forwardedAs" ? he.as = U.forwardedAs : A && !A(ne, ie) || (he[ne] = U[ne], A || process.env.NODE_ENV !== "development" || ru(ne) || la.has(ne) || !li.has(ie) || (la.add(ne), console.warn('styled-components: it looks like an unknown prop "'.concat(ne, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
4420
+ return J.className && (he.className = Jr(he.className, J.className)), he;
4421
+ }(k, f, B), ne = U.as || R, pe = {};
4422
+ for (var se in U) U[se] === void 0 || se[0] === "$" || se === "as" || se === "theme" && U.theme === B || (se === "forwardedAs" ? pe.as = U.forwardedAs : A && !A(se, ne) || (pe[se] = U[se], A || process.env.NODE_ENV !== "development" || ru(se) || la.has(se) || !li.has(ne) || (la.add(se), console.warn('styled-components: it looks like an unknown prop "'.concat(se, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
4423
4423
  var ee = function(Q, J) {
4424
- var le = sa(), se = Q.generateAndInjectStyles(J, le.styleSheet, le.stylis);
4425
- return process.env.NODE_ENV !== "production" && Zn(se), se;
4424
+ var de = sa(), ce = Q.generateAndInjectStyles(J, de.styleSheet, de.stylis);
4425
+ return process.env.NODE_ENV !== "production" && Zn(ce), ce;
4426
4426
  }($, U);
4427
4427
  process.env.NODE_ENV !== "production" && b.warnTooManyClasses && b.warnTooManyClasses(ee);
4428
4428
  var V = Jr(I, M);
4429
- return ee && (V += " " + ee), U.className && (V += " " + U.className), he[xn(ie) && !li.has(ie) ? "class" : "className"] = V, O && (he.ref = O), No(ie, he);
4429
+ return ee && (V += " " + ee), U.className && (V += " " + U.className), pe[xn(ne) && !li.has(ne) ? "class" : "className"] = V, O && (pe.ref = O), No(ne, pe);
4430
4430
  }(E, C, _);
4431
4431
  }
4432
4432
  x.displayName = l;
@@ -5814,7 +5814,7 @@ const mr = {
5814
5814
  margin-left: 2px;
5815
5815
  `;
5816
5816
  function Ty() {
5817
- var ie, he, ne, ee, V, Q, J, le, se, pe, K, de, Z, j, N;
5817
+ var ne, pe, se, ee, V, Q, J, de, ce, he, K, ue, Z, Y, N;
5818
5818
  const {
5819
5819
  loading: e,
5820
5820
  signUp: t,
@@ -5828,30 +5828,30 @@ function Ty() {
5828
5828
  password: "",
5829
5829
  username: "",
5830
5830
  phone_number: ""
5831
- }), [m, v] = P({}), [y, w] = P(!1), [S, z] = P(void 0), [x, E] = P(null), [C, _] = P(null), b = ((ie = p == null ? void 0 : p.restrictions) == null ? void 0 : ie.sign_up_mode) === "restricted", f = ((he = p == null ? void 0 : p.restrictions) == null ? void 0 : he.sign_up_mode) === "waitlist";
5831
+ }), [m, v] = P({}), [y, w] = P(!1), [S, z] = P(void 0), [x, E] = P(null), [C, _] = P(null), b = ((ne = p == null ? void 0 : p.restrictions) == null ? void 0 : ne.sign_up_mode) === "restricted", f = ((pe = p == null ? void 0 : p.restrictions) == null ? void 0 : pe.sign_up_mode) === "waitlist";
5832
5832
  oe(() => {
5833
- var q;
5833
+ var G;
5834
5834
  if (!p) return;
5835
5835
  if (f) {
5836
- const ue = ((q = p.ui_settings) == null ? void 0 : q.waitlist_page_url) || `${p.frontend_host}/waitlist` || "/waitlist";
5837
- g(ue);
5836
+ const ie = ((G = p.ui_settings) == null ? void 0 : G.waitlist_page_url) || `${p.frontend_host}/waitlist` || "/waitlist";
5837
+ g(ie);
5838
5838
  return;
5839
5839
  }
5840
5840
  const D = new URLSearchParams(window.location.search).get("invite_token");
5841
- D && !x && t && (_(D), t.validateDeploymentInvitation(D).then((ue) => {
5842
- E(ue), ue.valid && l((ke) => ({
5843
- ...ke,
5844
- first_name: ue.first_name || ke.first_name,
5845
- last_name: ue.last_name || ke.last_name,
5846
- email: ue.email || ke.email
5841
+ D && !x && t && (_(D), t.validateDeploymentInvitation(D).then((ie) => {
5842
+ E(ie), ie.valid && l((ve) => ({
5843
+ ...ve,
5844
+ first_name: ie.first_name || ve.first_name,
5845
+ last_name: ie.last_name || ve.last_name,
5846
+ email: ie.email || ve.email
5847
5847
  }));
5848
- }).catch((ue) => {
5849
- console.error("Failed to validate invitation:", ue);
5848
+ }).catch((ie) => {
5849
+ console.error("Failed to validate invitation:", ie);
5850
5850
  }));
5851
5851
  }, [p, f, g, x, t]);
5852
- const [O, k] = P(!1), [$, T] = P(""), I = (G) => {
5853
- let { name: D, value: q } = G.target;
5854
- D === "phone_number" ? q = q.replace(/[^0-9-]/g, "") : D === "email" && (q = q.toLowerCase()), l((ue) => ({ ...ue, [D]: q })), v((ue) => ({ ...ue, [D]: "" }));
5852
+ const [O, k] = P(!1), [$, T] = P(""), I = (j) => {
5853
+ let { name: D, value: G } = j.target;
5854
+ D === "phone_number" ? G = G.replace(/[^0-9-]/g, "") : D === "email" && (G = G.toLowerCase()), l((ie) => ({ ...ie, [D]: G })), v((ie) => ({ ...ie, [D]: "" }));
5855
5855
  }, M = () => {
5856
5856
  l({
5857
5857
  first_name: "",
@@ -5861,40 +5861,40 @@ function Ty() {
5861
5861
  username: "",
5862
5862
  phone_number: ""
5863
5863
  }), v({}), k(!1), T(""), n();
5864
- }, R = async (G) => {
5865
- if (G.preventDefault(), console.log("Signup form - handleSubmit called"), console.log("Auth settings:", A), console.log("Form data:", d), e || y) return;
5866
- const D = {}, q = /^[a-zA-Z]{3,30}$/, ue = /^[a-zA-Z][a-zA-Z0-9_.]{2,29}$/, ke = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Re = /^\d{7,15}$/, We = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,125}$/;
5867
- if (A != null && A.first_name.enabled && (A != null && A.first_name.required && !d.first_name ? D.first_name = "First name is required" : d.first_name && !q.test(d.first_name) && (D.first_name = "Invalid name")), A != null && A.last_name.enabled && (A != null && A.last_name.required && !d.last_name ? D.last_name = "Last name is required" : d.last_name && !q.test(d.last_name) && (D.last_name = "Invalid last name")), A != null && A.username.enabled && (A != null && A.username.required && !d.username ? D.username = "Username is required" : d.username && !ue.test(d.username) && (D.username = "Username must be 3-20 characters")), A != null && A.email_address.enabled && (A != null && A.email_address.required && !d.email ? D.email = "Email address is required" : d.email && !ke.test(d.email) && (D.email = "Invalid email address")), A != null && A.phone_number.enabled && (A != null && A.phone_number.required && !d.phone_number ? D.phone_number = "Phone number is required" : d.phone_number && !Re.test(d.phone_number) && (D.phone_number = "Phone number must contain 7-15 digits")), A != null && A.password.enabled && (d.password ? We.test(d.password) || (D.password = "Password must be 8-125 characters and include uppercase, lowercase, number, and special character") : D.password = "Password is required"), v(D), Object.keys(D).length > 0) {
5864
+ }, R = async (j) => {
5865
+ if (j.preventDefault(), console.log("Signup form - handleSubmit called"), console.log("Auth settings:", A), console.log("Form data:", d), e || y) return;
5866
+ const D = {}, G = /^[a-zA-Z]{3,30}$/, ie = /^[a-zA-Z][a-zA-Z0-9_.]{2,29}$/, ve = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Re = /^\d{7,15}$/, We = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,125}$/;
5867
+ if (A != null && A.first_name.enabled && (A != null && A.first_name.required && !d.first_name ? D.first_name = "First name is required" : d.first_name && !G.test(d.first_name) && (D.first_name = "Invalid name")), A != null && A.last_name.enabled && (A != null && A.last_name.required && !d.last_name ? D.last_name = "Last name is required" : d.last_name && !G.test(d.last_name) && (D.last_name = "Invalid last name")), A != null && A.username.enabled && (A != null && A.username.required && !d.username ? D.username = "Username is required" : d.username && !ie.test(d.username) && (D.username = "Username must be 3-20 characters")), A != null && A.email_address.enabled && (A != null && A.email_address.required && !d.email ? D.email = "Email address is required" : d.email && !ve.test(d.email) && (D.email = "Invalid email address")), A != null && A.phone_number.enabled && (A != null && A.phone_number.required && !d.phone_number ? D.phone_number = "Phone number is required" : d.phone_number && !Re.test(d.phone_number) && (D.phone_number = "Phone number must contain 7-15 digits")), A != null && A.password.enabled && (d.password ? We.test(d.password) || (D.password = "Password must be 8-125 characters and include uppercase, lowercase, number, and special character") : D.password = "Password is required"), v(D), Object.keys(D).length > 0) {
5868
5868
  console.log("Signup validation failed. Errors:", D);
5869
5869
  return;
5870
5870
  }
5871
5871
  console.log("Signup validation passed"), w(!0);
5872
5872
  try {
5873
- const Y = { ...d };
5874
- d.phone_number && S && (Y.phone_country_code = S), C && (Y.invite_token = C), console.log("Submitting signup data:", Y), console.log("Phone number:", Y.phone_number), console.log("Phone country code:", Y.phone_country_code), await t.create(Y);
5875
- } catch (Y) {
5876
- v({ submit: Y.message });
5873
+ const q = { ...d };
5874
+ d.phone_number && S && (q.phone_country_code = S), C && (q.invite_token = C), console.log("Submitting signup data:", q), console.log("Phone number:", q.phone_number), console.log("Phone country code:", q.phone_country_code), await t.create(q);
5875
+ } catch (q) {
5876
+ v({ submit: q.message });
5877
5877
  } finally {
5878
5878
  w(!1);
5879
5879
  }
5880
- }, L = async (G) => {
5880
+ }, L = async (j) => {
5881
5881
  if (!(e || y)) {
5882
5882
  w(!0);
5883
5883
  try {
5884
- const q = new URLSearchParams(window.location.search).get("redirect_uri") || void 0, { data: ue } = await s.create({
5885
- provider: G.provider,
5886
- redirectUri: q
5884
+ const G = new URLSearchParams(window.location.search).get("redirect_uri") || void 0, { data: ie } = await s.create({
5885
+ provider: j.provider,
5886
+ redirectUri: G
5887
5887
  });
5888
- ue && typeof ue == "object" && "oauth_url" in ue && (window.location.href = ue.oauth_url);
5888
+ ie && typeof ie == "object" && "oauth_url" in ie && (window.location.href = ie.oauth_url);
5889
5889
  } catch (D) {
5890
5890
  v({ submit: D.message });
5891
5891
  } finally {
5892
5892
  w(!1);
5893
5893
  }
5894
5894
  }
5895
- }, F = (p == null ? void 0 : p.social_connections.filter((G) => G.enabled)) || [], A = p == null ? void 0 : p.auth_settings, B = !!((ne = A == null ? void 0 : A.first_name) != null && ne.enabled && ((ee = A == null ? void 0 : A.last_name) != null && ee.enabled)), U = async (G) => {
5896
- var q;
5897
- if (G.preventDefault(), e || y) return;
5895
+ }, F = (p == null ? void 0 : p.social_connections.filter((j) => j.enabled)) || [], A = p == null ? void 0 : p.auth_settings, B = !!((se = A == null ? void 0 : A.first_name) != null && se.enabled && ((ee = A == null ? void 0 : A.last_name) != null && ee.enabled)), U = async (j) => {
5896
+ var G;
5897
+ if (j.preventDefault(), e || y) return;
5898
5898
  w(!0);
5899
5899
  const D = {};
5900
5900
  if (!$) {
@@ -5903,27 +5903,27 @@ function Ty() {
5903
5903
  }
5904
5904
  v(D);
5905
5905
  try {
5906
- const ue = await t.completeVerification($);
5907
- "data" in ue && ((q = ue.data) != null && q.active_signin) && await h();
5908
- } catch (ue) {
5909
- console.error("Verification failed:", ue);
5906
+ const ie = await t.completeVerification($);
5907
+ "data" in ie && ((G = ie.data) != null && G.active_signin) && await h();
5908
+ } catch (ie) {
5909
+ console.error("Verification failed:", ie);
5910
5910
  } finally {
5911
5911
  w(!1);
5912
5912
  }
5913
5913
  };
5914
5914
  return oe(() => {
5915
- var G;
5915
+ var j;
5916
5916
  if (o) {
5917
5917
  if (o.completed) {
5918
5918
  let D = new URLSearchParams(
5919
5919
  window.location.search
5920
5920
  ).get("redirect_uri");
5921
- if (D || (D = ((G = p == null ? void 0 : p.ui_settings) == null ? void 0 : G.after_signup_redirect_url) || null), !D && (p != null && p.frontend_host) && (D = `https://${p.frontend_host}`), D) {
5922
- const q = new URL(D);
5923
- (p == null ? void 0 : p.mode) === "staging" && q.searchParams.set(
5921
+ if (D || (D = ((j = p == null ? void 0 : p.ui_settings) == null ? void 0 : j.after_signup_redirect_url) || null), !D && (p != null && p.frontend_host) && (D = `https://${p.frontend_host}`), D) {
5922
+ const G = new URL(D);
5923
+ (p == null ? void 0 : p.mode) === "staging" && G.searchParams.set(
5924
5924
  "__dev_session__",
5925
5925
  localStorage.getItem("__dev_session__") || ""
5926
- ), g(q.toString());
5926
+ ), g(G.toString());
5927
5927
  }
5928
5928
  return;
5929
5929
  }
@@ -5940,18 +5940,18 @@ function Ty() {
5940
5940
  }
5941
5941
  }
5942
5942
  }, [o, t, O, p, c, g]), oe(() => {
5943
- const G = {};
5943
+ const j = {};
5944
5944
  if (a != null && a.errors && Array.isArray(a == null ? void 0 : a.errors))
5945
5945
  for (const D of a.errors)
5946
- D.code === "USERNAME_EXISTS" && (G.username = D.message), D.code === "EMAIL_EXISTS" && (G.email = D.message), D.code === "PHONE_NUMBER_EXISTS" && (G.phone_number = D.message), D.code === "INVALID_CREDENTIALS" && (G.password = D.message), [
5946
+ D.code === "USERNAME_EXISTS" && (j.username = D.message), D.code === "EMAIL_EXISTS" && (j.email = D.message), D.code === "PHONE_NUMBER_EXISTS" && (j.phone_number = D.message), D.code === "INVALID_CREDENTIALS" && (j.password = D.message), [
5947
5947
  "COUNTRY_RESTRICTED",
5948
5948
  "EMAIL_NOT_ALLOWED",
5949
5949
  "EMAIL_BLOCKED",
5950
5950
  "DISPOSABLE_EMAIL_BLOCKED",
5951
5951
  "VOIP_NUMBER_BLOCKED",
5952
5952
  "BANNED_KEYWORD"
5953
- ].includes(D.code) && (G.submit = D.message);
5954
- v(G);
5953
+ ].includes(D.code) && (j.submit = D.message);
5954
+ v(j);
5955
5955
  }, [a]), b ? /* @__PURE__ */ r(ge, { children: /* @__PURE__ */ i(ha, { children: [
5956
5956
  /* @__PURE__ */ r(Ve, {}),
5957
5957
  /* @__PURE__ */ r(_n, { children: /* @__PURE__ */ r(Cn, { children: "Sign up Restricted!" }) }),
@@ -5986,12 +5986,12 @@ function Ty() {
5986
5986
  /* @__PURE__ */ r(
5987
5987
  lt,
5988
5988
  {
5989
- onComplete: async (G) => {
5990
- T(G);
5989
+ onComplete: async (j) => {
5990
+ T(j);
5991
5991
  },
5992
5992
  onResend: async () => {
5993
- const G = (o == null ? void 0 : o.current_step) === "verify_email" ? "email_otp" : "phone_otp";
5994
- await t.prepareVerification({ strategy: G });
5993
+ const j = (o == null ? void 0 : o.current_step) === "verify_email" ? "email_otp" : "phone_otp";
5994
+ await t.prepareVerification({ strategy: j });
5995
5995
  },
5996
5996
  error: m.otp,
5997
5997
  isSubmitting: y
@@ -6002,7 +6002,7 @@ function Ty() {
6002
6002
  {
6003
6003
  type: "submit",
6004
6004
  disabled: y || e || !$,
6005
- children: y ? "Verifying..." : `Continue to ${(le = p == null ? void 0 : p.ui_settings) == null ? void 0 : le.app_name}`
6005
+ children: y ? "Verifying..." : `Continue to ${(de = p == null ? void 0 : p.ui_settings) == null ? void 0 : de.app_name}`
6006
6006
  }
6007
6007
  )
6008
6008
  ]
@@ -6040,11 +6040,11 @@ function Ty() {
6040
6040
  /* @__PURE__ */ r(Sp, { children: /* @__PURE__ */ r($p, { children: "or" }) })
6041
6041
  ] }),
6042
6042
  /* @__PURE__ */ i(ga, { onSubmit: R, noValidate: !0, children: [
6043
- (((se = A == null ? void 0 : A.first_name) == null ? void 0 : se.enabled) || ((pe = A == null ? void 0 : A.last_name) == null ? void 0 : pe.enabled)) && /* @__PURE__ */ i(zp, { $isBothEnabled: B, children: [
6043
+ (((ce = A == null ? void 0 : A.first_name) == null ? void 0 : ce.enabled) || ((he = A == null ? void 0 : A.last_name) == null ? void 0 : he.enabled)) && /* @__PURE__ */ i(zp, { $isBothEnabled: B, children: [
6044
6044
  ((K = A == null ? void 0 : A.first_name) == null ? void 0 : K.enabled) && /* @__PURE__ */ i(ut, { children: [
6045
6045
  /* @__PURE__ */ i(pt, { htmlFor: "first_name", children: [
6046
6046
  "First name",
6047
- ((de = A == null ? void 0 : A.first_name) == null ? void 0 : de.required) && /* @__PURE__ */ r(ht, { children: "*" })
6047
+ ((ue = A == null ? void 0 : A.first_name) == null ? void 0 : ue.required) && /* @__PURE__ */ r(ht, { children: "*" })
6048
6048
  ] }),
6049
6049
  /* @__PURE__ */ r(
6050
6050
  me,
@@ -6067,7 +6067,7 @@ function Ty() {
6067
6067
  ((Z = A == null ? void 0 : A.last_name) == null ? void 0 : Z.enabled) && /* @__PURE__ */ i(ut, { children: [
6068
6068
  /* @__PURE__ */ i(pt, { htmlFor: "last_name", children: [
6069
6069
  "Last name",
6070
- ((j = A == null ? void 0 : A.last_name) == null ? void 0 : j.required) && /* @__PURE__ */ r(ht, { children: "*" })
6070
+ ((Y = A == null ? void 0 : A.last_name) == null ? void 0 : Y.required) && /* @__PURE__ */ r(ht, { children: "*" })
6071
6071
  ] }),
6072
6072
  /* @__PURE__ */ r(
6073
6073
  me,
@@ -6254,7 +6254,7 @@ const Ap = xi(
6254
6254
  * This source code is licensed under the ISC license.
6255
6255
  * See the LICENSE file in the root directory of this source tree.
6256
6256
  */
6257
- const we = (e, t) => {
6257
+ const ke = (e, t) => {
6258
6258
  const o = xi(
6259
6259
  ({ className: n, ...a }, s) => No(Ap, {
6260
6260
  ref: s,
@@ -6279,7 +6279,7 @@ const Dp = [
6279
6279
  key: "169zse"
6280
6280
  }
6281
6281
  ]
6282
- ], Np = we("Activity", Dp);
6282
+ ], Np = ke("Activity", Dp);
6283
6283
  /**
6284
6284
  * @license lucide-react v0.474.0 - ISC
6285
6285
  *
@@ -6297,7 +6297,7 @@ const Fp = [
6297
6297
  ],
6298
6298
  ["path", { d: "m2 2 20 20", key: "1ooewy" }],
6299
6299
  ["path", { d: "M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05", key: "1hqiys" }]
6300
- ], Bp = we("BellOff", Fp);
6300
+ ], Bp = ke("BellOff", Fp);
6301
6301
  /**
6302
6302
  * @license lucide-react v0.474.0 - ISC
6303
6303
  *
@@ -6315,7 +6315,7 @@ const Up = [
6315
6315
  }
6316
6316
  ],
6317
6317
  ["path", { d: "M4 2C2.8 3.7 2 5.7 2 8", key: "tap9e0" }]
6318
- ], jp = we("BellRing", Up);
6318
+ ], jp = ke("BellRing", Up);
6319
6319
  /**
6320
6320
  * @license lucide-react v0.474.0 - ISC
6321
6321
  *
@@ -6329,7 +6329,7 @@ const Wp = [
6329
6329
  ["path", { d: "M20 14h2", key: "4cs60a" }],
6330
6330
  ["path", { d: "M15 13v2", key: "1xurst" }],
6331
6331
  ["path", { d: "M9 13v2", key: "rq6x2g" }]
6332
- ], $n = we("Bot", Wp);
6332
+ ], $n = ke("Bot", Wp);
6333
6333
  /**
6334
6334
  * @license lucide-react v0.474.0 - ISC
6335
6335
  *
@@ -6344,7 +6344,7 @@ const Vp = [
6344
6344
  ["path", { d: "M10 10h4", key: "tcdvrf" }],
6345
6345
  ["path", { d: "M10 14h4", key: "kelpxr" }],
6346
6346
  ["path", { d: "M10 18h4", key: "1ulq68" }]
6347
- ], Gp = we("Building2", Vp);
6347
+ ], Gp = ke("Building2", Vp);
6348
6348
  /**
6349
6349
  * @license lucide-react v0.474.0 - ISC
6350
6350
  *
@@ -6363,42 +6363,42 @@ const Hp = [
6363
6363
  ["path", { d: "M16 14h.01", key: "1gbofw" }],
6364
6364
  ["path", { d: "M8 10h.01", key: "19clt8" }],
6365
6365
  ["path", { d: "M8 14h.01", key: "6423bh" }]
6366
- ], Ht = we("Building", Hp);
6366
+ ], Ht = ke("Building", Hp);
6367
6367
  /**
6368
6368
  * @license lucide-react v0.474.0 - ISC
6369
6369
  *
6370
6370
  * This source code is licensed under the ISC license.
6371
6371
  * See the LICENSE file in the root directory of this source tree.
6372
6372
  */
6373
- const qp = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], sr = we("Check", qp);
6373
+ const qp = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], sr = ke("Check", qp);
6374
6374
  /**
6375
6375
  * @license lucide-react v0.474.0 - ISC
6376
6376
  *
6377
6377
  * This source code is licensed under the ISC license.
6378
6378
  * See the LICENSE file in the root directory of this source tree.
6379
6379
  */
6380
- const Yp = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], at = we("ChevronDown", Yp);
6380
+ const Yp = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], at = ke("ChevronDown", Yp);
6381
6381
  /**
6382
6382
  * @license lucide-react v0.474.0 - ISC
6383
6383
  *
6384
6384
  * This source code is licensed under the ISC license.
6385
6385
  * See the LICENSE file in the root directory of this source tree.
6386
6386
  */
6387
- const Zp = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Zt = we("ChevronLeft", Zp);
6387
+ const Zp = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Zt = ke("ChevronLeft", Zp);
6388
6388
  /**
6389
6389
  * @license lucide-react v0.474.0 - ISC
6390
6390
  *
6391
6391
  * This source code is licensed under the ISC license.
6392
6392
  * See the LICENSE file in the root directory of this source tree.
6393
6393
  */
6394
- const Kp = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], mi = we("ChevronRight", Kp);
6394
+ const Kp = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], mi = ke("ChevronRight", Kp);
6395
6395
  /**
6396
6396
  * @license lucide-react v0.474.0 - ISC
6397
6397
  *
6398
6398
  * This source code is licensed under the ISC license.
6399
6399
  * See the LICENSE file in the root directory of this source tree.
6400
6400
  */
6401
- const Qp = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Bc = we("ChevronUp", Qp);
6401
+ const Qp = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Bc = ke("ChevronUp", Qp);
6402
6402
  /**
6403
6403
  * @license lucide-react v0.474.0 - ISC
6404
6404
  *
@@ -6408,7 +6408,7 @@ const Qp = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Bc = we("ChevronU
6408
6408
  const Xp = [
6409
6409
  ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
6410
6410
  ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
6411
- ], Jp = we("ChevronsUpDown", Xp);
6411
+ ], Jp = ke("ChevronsUpDown", Xp);
6412
6412
  /**
6413
6413
  * @license lucide-react v0.474.0 - ISC
6414
6414
  *
@@ -6418,7 +6418,7 @@ const Xp = [
6418
6418
  const eh = [
6419
6419
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
6420
6420
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
6421
- ], Uc = we("Copy", eh);
6421
+ ], Uc = ke("Copy", eh);
6422
6422
  /**
6423
6423
  * @license lucide-react v0.474.0 - ISC
6424
6424
  *
@@ -6429,7 +6429,7 @@ const rh = [
6429
6429
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
6430
6430
  ["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
6431
6431
  ["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
6432
- ], tn = we("Download", rh);
6432
+ ], tn = ke("Download", rh);
6433
6433
  /**
6434
6434
  * @license lucide-react v0.474.0 - ISC
6435
6435
  *
@@ -6445,7 +6445,7 @@ const th = [
6445
6445
  ["path", { d: "m3 21 6-6", key: "wwnumi" }],
6446
6446
  ["path", { d: "M3 7.8V3h4.8", key: "1ijppm" }],
6447
6447
  ["path", { d: "M9 9 3 3", key: "v551iv" }]
6448
- ], oh = we("Expand", th);
6448
+ ], oh = ke("Expand", th);
6449
6449
  /**
6450
6450
  * @license lucide-react v0.474.0 - ISC
6451
6451
  *
@@ -6456,7 +6456,7 @@ const nh = [
6456
6456
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
6457
6457
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
6458
6458
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
6459
- ], jc = we("ExternalLink", nh);
6459
+ ], jc = ke("ExternalLink", nh);
6460
6460
  /**
6461
6461
  * @license lucide-react v0.474.0 - ISC
6462
6462
  *
@@ -6480,7 +6480,7 @@ const ih = [
6480
6480
  }
6481
6481
  ],
6482
6482
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
6483
- ], zn = we("EyeOff", ih);
6483
+ ], zn = ke("EyeOff", ih);
6484
6484
  /**
6485
6485
  * @license lucide-react v0.474.0 - ISC
6486
6486
  *
@@ -6496,7 +6496,7 @@ const ah = [
6496
6496
  }
6497
6497
  ],
6498
6498
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
6499
- ], En = we("Eye", ah);
6499
+ ], En = ke("Eye", ah);
6500
6500
  /**
6501
6501
  * @license lucide-react v0.474.0 - ISC
6502
6502
  *
@@ -6507,7 +6507,7 @@ const sh = [
6507
6507
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
6508
6508
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
6509
6509
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
6510
- ], ch = we("Globe", sh);
6510
+ ], ch = ke("Globe", sh);
6511
6511
  /**
6512
6512
  * @license lucide-react v0.474.0 - ISC
6513
6513
  *
@@ -6518,14 +6518,14 @@ const lh = [
6518
6518
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
6519
6519
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
6520
6520
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
6521
- ], dh = we("Link2", lh);
6521
+ ], dh = ke("Link2", lh);
6522
6522
  /**
6523
6523
  * @license lucide-react v0.474.0 - ISC
6524
6524
  *
6525
6525
  * This source code is licensed under the ISC license.
6526
6526
  * See the LICENSE file in the root directory of this source tree.
6527
6527
  */
6528
- const uh = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ct = we("LoaderCircle", uh);
6528
+ const uh = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ct = ke("LoaderCircle", uh);
6529
6529
  /**
6530
6530
  * @license lucide-react v0.474.0 - ISC
6531
6531
  *
@@ -6536,7 +6536,7 @@ const ph = [
6536
6536
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
6537
6537
  ["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
6538
6538
  ["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
6539
- ], Mr = we("LogOut", ph);
6539
+ ], Mr = ke("LogOut", ph);
6540
6540
  /**
6541
6541
  * @license lucide-react v0.474.0 - ISC
6542
6542
  *
@@ -6546,7 +6546,7 @@ const ph = [
6546
6546
  const hh = [
6547
6547
  ["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
6548
6548
  ["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
6549
- ], Kt = we("Mail", hh);
6549
+ ], Kt = ke("Mail", hh);
6550
6550
  /**
6551
6551
  * @license lucide-react v0.474.0 - ISC
6552
6552
  *
@@ -6558,7 +6558,7 @@ const fh = [
6558
6558
  ["polyline", { points: "9 21 3 21 3 15", key: "1avn1i" }],
6559
6559
  ["line", { x1: "21", x2: "14", y1: "3", y2: "10", key: "ota7mn" }],
6560
6560
  ["line", { x1: "3", x2: "10", y1: "21", y2: "14", key: "1atl0r" }]
6561
- ], gh = we("Maximize2", fh);
6561
+ ], gh = ke("Maximize2", fh);
6562
6562
  /**
6563
6563
  * @license lucide-react v0.474.0 - ISC
6564
6564
  *
@@ -6567,7 +6567,7 @@ const fh = [
6567
6567
  */
6568
6568
  const mh = [
6569
6569
  ["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }]
6570
- ], ya = we("MessageCircle", mh);
6570
+ ], ya = ke("MessageCircle", mh);
6571
6571
  /**
6572
6572
  * @license lucide-react v0.474.0 - ISC
6573
6573
  *
@@ -6583,7 +6583,7 @@ const vh = [
6583
6583
  key: "1pkts6"
6584
6584
  }
6585
6585
  ]
6586
- ], yh = we("Paperclip", vh);
6586
+ ], yh = ke("Paperclip", vh);
6587
6587
  /**
6588
6588
  * @license lucide-react v0.474.0 - ISC
6589
6589
  *
@@ -6598,7 +6598,7 @@ const bh = [
6598
6598
  key: "foiqr5"
6599
6599
  }
6600
6600
  ]
6601
- ], xh = we("Phone", bh);
6601
+ ], xh = ke("Phone", bh);
6602
6602
  /**
6603
6603
  * @license lucide-react v0.474.0 - ISC
6604
6604
  *
@@ -6608,7 +6608,7 @@ const bh = [
6608
6608
  const wh = [
6609
6609
  ["path", { d: "M5 12h14", key: "1ays0h" }],
6610
6610
  ["path", { d: "M12 5v14", key: "s699le" }]
6611
- ], ir = we("Plus", wh);
6611
+ ], ir = ke("Plus", wh);
6612
6612
  /**
6613
6613
  * @license lucide-react v0.474.0 - ISC
6614
6614
  *
@@ -6618,7 +6618,7 @@ const wh = [
6618
6618
  const kh = [
6619
6619
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
6620
6620
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
6621
- ], _h = we("Search", kh);
6621
+ ], _h = ke("Search", kh);
6622
6622
  /**
6623
6623
  * @license lucide-react v0.474.0 - ISC
6624
6624
  *
@@ -6634,7 +6634,7 @@ const Ch = [
6634
6634
  }
6635
6635
  ],
6636
6636
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
6637
- ], Wc = we("Send", Ch);
6637
+ ], Wc = ke("Send", Ch);
6638
6638
  /**
6639
6639
  * @license lucide-react v0.474.0 - ISC
6640
6640
  *
@@ -6650,7 +6650,7 @@ const Sh = [
6650
6650
  }
6651
6651
  ],
6652
6652
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
6653
- ], ot = we("Settings", Sh);
6653
+ ], ot = ke("Settings", Sh);
6654
6654
  /**
6655
6655
  * @license lucide-react v0.474.0 - ISC
6656
6656
  *
@@ -6665,7 +6665,7 @@ const $h = [
6665
6665
  key: "oel41y"
6666
6666
  }
6667
6667
  ]
6668
- ], on = we("Shield", $h);
6668
+ ], on = ke("Shield", $h);
6669
6669
  /**
6670
6670
  * @license lucide-react v0.474.0 - ISC
6671
6671
  *
@@ -6678,7 +6678,7 @@ const zh = [
6678
6678
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
6679
6679
  ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
6680
6680
  ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
6681
- ], nn = we("Trash2", zh);
6681
+ ], nn = ke("Trash2", zh);
6682
6682
  /**
6683
6683
  * @license lucide-react v0.474.0 - ISC
6684
6684
  *
@@ -6689,7 +6689,7 @@ const Eh = [
6689
6689
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
6690
6690
  ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
6691
6691
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }]
6692
- ], an = we("Trash", Eh);
6692
+ ], an = ke("Trash", Eh);
6693
6693
  /**
6694
6694
  * @license lucide-react v0.474.0 - ISC
6695
6695
  *
@@ -6706,7 +6706,7 @@ const Ph = [
6706
6706
  ],
6707
6707
  ["path", { d: "M12 9v4", key: "juzpu7" }],
6708
6708
  ["path", { d: "M12 17h.01", key: "p32p05" }]
6709
- ], gr = we("TriangleAlert", Ph);
6709
+ ], gr = ke("TriangleAlert", Ph);
6710
6710
  /**
6711
6711
  * @license lucide-react v0.474.0 - ISC
6712
6712
  *
@@ -6716,7 +6716,7 @@ const Ph = [
6716
6716
  const Ih = [
6717
6717
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
6718
6718
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
6719
- ], Wo = we("User", Ih);
6719
+ ], Wo = ke("User", Ih);
6720
6720
  /**
6721
6721
  * @license lucide-react v0.474.0 - ISC
6722
6722
  *
@@ -6728,7 +6728,7 @@ const Th = [
6728
6728
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
6729
6729
  ["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
6730
6730
  ["path", { d: "M16 3.13a4 4 0 0 1 0 7.75", key: "1da9ce" }]
6731
- ], Vo = we("Users", Th);
6731
+ ], Vo = ke("Users", Th);
6732
6732
  /**
6733
6733
  * @license lucide-react v0.474.0 - ISC
6734
6734
  *
@@ -6738,7 +6738,7 @@ const Th = [
6738
6738
  const Rh = [
6739
6739
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
6740
6740
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
6741
- ], tr = we("X", Rh);
6741
+ ], tr = ke("X", Rh);
6742
6742
  /**
6743
6743
  * @license lucide-react v0.474.0 - ISC
6744
6744
  *
@@ -6750,7 +6750,7 @@ const Oh = [
6750
6750
  ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
6751
6751
  ["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
6752
6752
  ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
6753
- ], Mh = we("ZoomIn", Oh);
6753
+ ], Mh = ke("ZoomIn", Oh);
6754
6754
  /**
6755
6755
  * @license lucide-react v0.474.0 - ISC
6756
6756
  *
@@ -6761,7 +6761,7 @@ const Lh = [
6761
6761
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
6762
6762
  ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
6763
6763
  ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
6764
- ], Ah = we("ZoomOut", Lh), Vc = Ar(void 0), Gc = () => {
6764
+ ], Ah = ke("ZoomOut", Lh), Vc = Ar(void 0), Gc = () => {
6765
6765
  const e = or(Vc);
6766
6766
  if (!e)
6767
6767
  throw new Error("Dialog components must be used within a Dialog");
@@ -6984,11 +6984,11 @@ const Lh = [
6984
6984
  display: flex;
6985
6985
  flex-direction: column;
6986
6986
  gap: var(--space-md);
6987
- `, ye = u.div`
6987
+ `, be = u.div`
6988
6988
  display: flex;
6989
6989
  flex-direction: column;
6990
6990
  gap: var(--space-xs);
6991
- `, ve = u.label`
6991
+ `, ye = u.label`
6992
6992
  font-size: var(--font-xs);
6993
6993
  text-align: left;
6994
6994
  font-weight: 400;
@@ -7730,8 +7730,8 @@ function df({ onBack: e }) {
7730
7730
  /* @__PURE__ */ r(Pn, { children: "Enter your email address and we'll send you a code to reset your password." })
7731
7731
  ] }),
7732
7732
  /* @__PURE__ */ i($r, { onSubmit: _, noValidate: !0, children: [
7733
- /* @__PURE__ */ i(ye, { children: [
7734
- /* @__PURE__ */ r(ve, { htmlFor: "email", children: "Email Address" }),
7733
+ /* @__PURE__ */ i(be, { children: [
7734
+ /* @__PURE__ */ r(ye, { htmlFor: "email", children: "Email Address" }),
7735
7735
  /* @__PURE__ */ r(
7736
7736
  me,
7737
7737
  {
@@ -7797,8 +7797,8 @@ function df({ onBack: e }) {
7797
7797
  /* @__PURE__ */ r(Pn, { children: "Create a new password for your account." })
7798
7798
  ] }),
7799
7799
  /* @__PURE__ */ i($r, { onSubmit: f, noValidate: !0, children: [
7800
- /* @__PURE__ */ i(ye, { children: [
7801
- /* @__PURE__ */ r(ve, { htmlFor: "password", children: "New Password" }),
7800
+ /* @__PURE__ */ i(be, { children: [
7801
+ /* @__PURE__ */ r(ye, { htmlFor: "password", children: "New Password" }),
7802
7802
  /* @__PURE__ */ r(
7803
7803
  me,
7804
7804
  {
@@ -7811,8 +7811,8 @@ function df({ onBack: e }) {
7811
7811
  }
7812
7812
  )
7813
7813
  ] }),
7814
- /* @__PURE__ */ i(ye, { children: [
7815
- /* @__PURE__ */ r(ve, { htmlFor: "confirmPassword", children: "Confirm New Password" }),
7814
+ /* @__PURE__ */ i(be, { children: [
7815
+ /* @__PURE__ */ r(ye, { htmlFor: "confirmPassword", children: "Confirm New Password" }),
7816
7816
  /* @__PURE__ */ r(
7817
7817
  me,
7818
7818
  {
@@ -8077,8 +8077,8 @@ function Nf({
8077
8077
  }
8078
8078
  e(n);
8079
8079
  }, noValidate: !0, children: [
8080
- /* @__PURE__ */ i(ye, { children: [
8081
- /* @__PURE__ */ r(ve, { htmlFor: "lastDigits", children: "Last 4 digits" }),
8080
+ /* @__PURE__ */ i(be, { children: [
8081
+ /* @__PURE__ */ r(ye, { htmlFor: "lastDigits", children: "Last 4 digits" }),
8082
8082
  /* @__PURE__ */ r(
8083
8083
  Df,
8084
8084
  {
@@ -8339,8 +8339,8 @@ function Hf({
8339
8339
  ] })
8340
8340
  ] }),
8341
8341
  /* @__PURE__ */ i($r, { onSubmit: $, noValidate: !0, children: [
8342
- l === "backup_code" ? /* @__PURE__ */ i(ye, { children: [
8343
- /* @__PURE__ */ r(ve, { htmlFor: "code", children: "Backup code" }),
8342
+ l === "backup_code" ? /* @__PURE__ */ i(be, { children: [
8343
+ /* @__PURE__ */ r(ye, { htmlFor: "code", children: "Backup code" }),
8344
8344
  /* @__PURE__ */ r(
8345
8345
  Gf,
8346
8346
  {
@@ -8494,50 +8494,50 @@ function Kf({
8494
8494
  completeVerification: n,
8495
8495
  prepareVerification: a
8496
8496
  }) {
8497
- var B, U, ie, he, ne, ee, V, Q, J;
8498
- const { deployment: s } = Se(), { navigate: p } = Je(), [g, c] = P({}), [h, d] = P({}), [l, m] = P("US"), [v, y] = P(!1), [w, S] = P(!1), [z, x] = P(null), [E, C] = P(!1), _ = z, b = w, f = async (le) => {
8499
- var se;
8497
+ var B, U, ne, pe, se, ee, V, Q, J;
8498
+ const { deployment: s } = Se(), { navigate: p } = Je(), [g, c] = P({}), [h, d] = P({}), [l, m] = P("US"), [v, y] = P(!1), [w, S] = P(!1), [z, x] = P(null), [E, C] = P(!1), _ = z, b = w, f = async (de) => {
8499
+ var ce;
8500
8500
  S(!0), x(null);
8501
8501
  try {
8502
- if (await o(le)) {
8502
+ if (await o(de)) {
8503
8503
  C(!0);
8504
8504
  let K = new URLSearchParams(
8505
8505
  window.location.search
8506
8506
  ).get("redirect_uri");
8507
- if (K || (K = ((se = s == null ? void 0 : s.ui_settings) == null ? void 0 : se.after_signin_redirect_url) || null), !K && (s != null && s.frontend_host) && (K = `https://${s.frontend_host}`), K) {
8508
- const de = new URL(K);
8509
- (s == null ? void 0 : s.mode) === "staging" && de.searchParams.set(
8507
+ if (K || (K = ((ce = s == null ? void 0 : s.ui_settings) == null ? void 0 : ce.after_signin_redirect_url) || null), !K && (s != null && s.frontend_host) && (K = `https://${s.frontend_host}`), K) {
8508
+ const ue = new URL(K);
8509
+ (s == null ? void 0 : s.mode) === "staging" && ue.searchParams.set(
8510
8510
  "__dev_session__",
8511
8511
  localStorage.getItem("__dev_session__") || ""
8512
- ), p(de.toString());
8512
+ ), p(ue.toString());
8513
8513
  }
8514
8514
  }
8515
- } catch (pe) {
8516
- const K = pe;
8515
+ } catch (he) {
8516
+ const K = he;
8517
8517
  throw x(K), K;
8518
8518
  } finally {
8519
8519
  S(!1);
8520
8520
  }
8521
- }, O = async (le) => {
8522
- var se;
8521
+ }, O = async (de) => {
8522
+ var ce;
8523
8523
  S(!0), x(null);
8524
8524
  try {
8525
- if (await n(le)) {
8525
+ if (await n(de)) {
8526
8526
  C(!0);
8527
8527
  let K = new URLSearchParams(
8528
8528
  window.location.search
8529
8529
  ).get("redirect_uri");
8530
- if (K || (K = ((se = s == null ? void 0 : s.ui_settings) == null ? void 0 : se.after_signin_redirect_url) || null), !K && (s != null && s.frontend_host) && (K = `https://${s.frontend_host}`), K) {
8531
- const de = new URL(K);
8532
- (s == null ? void 0 : s.mode) === "staging" && de.searchParams.set(
8530
+ if (K || (K = ((ce = s == null ? void 0 : s.ui_settings) == null ? void 0 : ce.after_signin_redirect_url) || null), !K && (s != null && s.frontend_host) && (K = `https://${s.frontend_host}`), K) {
8531
+ const ue = new URL(K);
8532
+ (s == null ? void 0 : s.mode) === "staging" && ue.searchParams.set(
8533
8533
  "__dev_session__",
8534
8534
  localStorage.getItem("__dev_session__") || ""
8535
- ), p(de.toString());
8535
+ ), p(ue.toString());
8536
8536
  }
8537
8537
  }
8538
8538
  return !0;
8539
- } catch (pe) {
8540
- return x(pe), !1;
8539
+ } catch (he) {
8540
+ return x(he), !1;
8541
8541
  } finally {
8542
8542
  S(!1);
8543
8543
  }
@@ -8547,55 +8547,55 @@ function Kf({
8547
8547
  /* @__PURE__ */ r(Ve, {}),
8548
8548
  /* @__PURE__ */ r(Zf, { children: /* @__PURE__ */ r(Ct, { size: 32 }) })
8549
8549
  ] }) });
8550
- const k = e.missing_fields || [], $ = "Complete Your Profile", T = "Please provide the following information to continue", I = s == null ? void 0 : s.auth_settings, M = (e == null ? void 0 : e.current_step) === "verify_phone_otp" || (e == null ? void 0 : e.current_step) === "verify_email_otp" || v, R = (le) => {
8551
- const { name: se, value: pe } = le.target;
8552
- c((K) => ({ ...K, [se]: pe })), h[se] && d((K) => ({ ...K, [se]: "" }));
8550
+ const k = e.missing_fields || [], $ = "Complete Your Profile", T = "Please provide the following information to continue", I = s == null ? void 0 : s.auth_settings, M = (e == null ? void 0 : e.current_step) === "verify_phone_otp" || (e == null ? void 0 : e.current_step) === "verify_email_otp" || v, R = (de) => {
8551
+ const { name: ce, value: he } = de.target;
8552
+ c((K) => ({ ...K, [ce]: he })), h[ce] && d((K) => ({ ...K, [ce]: "" }));
8553
8553
  }, L = () => {
8554
- const le = {};
8555
- return k.forEach((se) => {
8556
- var de, Z, j, N, G;
8557
- const pe = g[se];
8554
+ const de = {};
8555
+ return k.forEach((ce) => {
8556
+ var ue, Z, Y, N, j;
8557
+ const he = g[ce];
8558
8558
  let K = !1;
8559
- switch (se) {
8559
+ switch (ce) {
8560
8560
  case "first_name":
8561
- K = ((de = I == null ? void 0 : I.first_name) == null ? void 0 : de.enabled) || !1;
8561
+ K = ((ue = I == null ? void 0 : I.first_name) == null ? void 0 : ue.enabled) || !1;
8562
8562
  break;
8563
8563
  case "last_name":
8564
8564
  K = ((Z = I == null ? void 0 : I.last_name) == null ? void 0 : Z.enabled) || !1;
8565
8565
  break;
8566
8566
  case "username":
8567
- K = ((j = I == null ? void 0 : I.username) == null ? void 0 : j.enabled) || !1;
8567
+ K = ((Y = I == null ? void 0 : I.username) == null ? void 0 : Y.enabled) || !1;
8568
8568
  break;
8569
8569
  case "phone_number":
8570
8570
  K = ((N = I == null ? void 0 : I.phone_number) == null ? void 0 : N.enabled) || !1;
8571
8571
  break;
8572
8572
  case "email_address":
8573
- K = ((G = I == null ? void 0 : I.email_address) == null ? void 0 : G.enabled) || !1;
8573
+ K = ((j = I == null ? void 0 : I.email_address) == null ? void 0 : j.enabled) || !1;
8574
8574
  break;
8575
8575
  default:
8576
8576
  K = !0;
8577
8577
  }
8578
- if (K && (!pe || pe.trim() === "")) {
8579
- const D = se.replace("_", " ").replace(/\b\w/g, (q) => q.toUpperCase());
8580
- le[se] = `${D} is required`;
8578
+ if (K && (!he || he.trim() === "")) {
8579
+ const D = ce.replace("_", " ").replace(/\b\w/g, (G) => G.toUpperCase());
8580
+ de[ce] = `${D} is required`;
8581
8581
  }
8582
- }), g.username && k.includes("username") && (/^[a-zA-Z0-9_-]{3,30}$/.test(g.username) || (le.username = "Username must be 3-30 characters and contain only letters, numbers, underscores, and hyphens")), g.phone_number && k.includes("phone_number") && (/^\d{7,15}$/.test(g.phone_number) || (le.phone_number = "Phone number must contain 7-15 digits")), g.email && k.includes("email_address") && (/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(g.email) || (le.email_address = "Please enter a valid email address")), d(le), Object.keys(le).length === 0;
8583
- }, F = async (le) => {
8584
- if (le.preventDefault(), !L())
8582
+ }), g.username && k.includes("username") && (/^[a-zA-Z0-9_-]{3,30}$/.test(g.username) || (de.username = "Username must be 3-30 characters and contain only letters, numbers, underscores, and hyphens")), g.phone_number && k.includes("phone_number") && (/^\d{7,15}$/.test(g.phone_number) || (de.phone_number = "Phone number must contain 7-15 digits")), g.email && k.includes("email_address") && (/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(g.email) || (de.email_address = "Please enter a valid email address")), d(de), Object.keys(de).length === 0;
8583
+ }, F = async (de) => {
8584
+ if (de.preventDefault(), !L())
8585
8585
  return;
8586
- const se = { ...g };
8587
- g.phone_number && l && (se.phone_country_code = l), await f(se);
8588
- }, A = (le) => {
8589
- const se = le.target.value;
8590
- c((pe) => ({ ...pe, phone_number: se })), h.phone_number && d((pe) => ({ ...pe, phone_number: "" }));
8586
+ const ce = { ...g };
8587
+ g.phone_number && l && (ce.phone_country_code = l), await f(ce);
8588
+ }, A = (de) => {
8589
+ const ce = de.target.value;
8590
+ c((he) => ({ ...he, phone_number: ce })), h.phone_number && d((he) => ({ ...he, phone_number: "" }));
8591
8591
  };
8592
8592
  if (M) {
8593
- const le = e.current_step === "verify_phone_otp" ? "Verify Your Phone Number" : "Verify Your Email", se = e.current_step === "verify_phone_otp" ? "Enter the 6-digit code sent to your phone" : "Enter the 6-digit code sent to your email", pe = e.current_step === "verify_phone_otp" ? "phone_otp" : "email_otp";
8593
+ const de = e.current_step === "verify_phone_otp" ? "Verify Your Phone Number" : "Verify Your Email", ce = e.current_step === "verify_phone_otp" ? "Enter the 6-digit code sent to your phone" : "Enter the 6-digit code sent to your email", he = e.current_step === "verify_phone_otp" ? "phone_otp" : "email_otp";
8594
8594
  return /* @__PURE__ */ r(ge, { children: /* @__PURE__ */ i(Rn, { children: [
8595
8595
  /* @__PURE__ */ r(Ve, {}),
8596
8596
  /* @__PURE__ */ i($a, { children: [
8597
- /* @__PURE__ */ r(za, { children: le }),
8598
- /* @__PURE__ */ r(Ea, { children: se })
8597
+ /* @__PURE__ */ r(za, { children: de }),
8598
+ /* @__PURE__ */ r(Ea, { children: ce })
8599
8599
  ] }),
8600
8600
  /* @__PURE__ */ i($r, { onSubmit: (K) => K.preventDefault(), noValidate: !0, children: [
8601
8601
  /* @__PURE__ */ r(
@@ -8603,7 +8603,7 @@ function Kf({
8603
8603
  {
8604
8604
  onComplete: O,
8605
8605
  onResend: async () => {
8606
- await a({ strategy: pe });
8606
+ await a({ strategy: he });
8607
8607
  },
8608
8608
  error: _ == null ? void 0 : _.message,
8609
8609
  isSubmitting: b
@@ -8644,10 +8644,10 @@ function Kf({
8644
8644
  (k.includes("first_name") || k.includes("last_name")) && (((B = I == null ? void 0 : I.first_name) == null ? void 0 : B.enabled) || ((U = I == null ? void 0 : I.last_name) == null ? void 0 : U.enabled)) && /* @__PURE__ */ i(
8645
8645
  qf,
8646
8646
  {
8647
- $isBothEnabled: !!((ie = I == null ? void 0 : I.first_name) != null && ie.enabled && ((he = I == null ? void 0 : I.last_name) != null && he.enabled) && k.includes("first_name") && k.includes("last_name")),
8647
+ $isBothEnabled: !!((ne = I == null ? void 0 : I.first_name) != null && ne.enabled && ((pe = I == null ? void 0 : I.last_name) != null && pe.enabled) && k.includes("first_name") && k.includes("last_name")),
8648
8648
  children: [
8649
- k.includes("first_name") && ((ne = I == null ? void 0 : I.first_name) == null ? void 0 : ne.enabled) && /* @__PURE__ */ i(ye, { children: [
8650
- /* @__PURE__ */ i(ve, { htmlFor: "first_name", children: [
8649
+ k.includes("first_name") && ((se = I == null ? void 0 : I.first_name) == null ? void 0 : se.enabled) && /* @__PURE__ */ i(be, { children: [
8650
+ /* @__PURE__ */ i(ye, { htmlFor: "first_name", children: [
8651
8651
  "First name ",
8652
8652
  I.first_name.required && "*"
8653
8653
  ] }),
@@ -8667,8 +8667,8 @@ function Kf({
8667
8667
  ),
8668
8668
  h.first_name && /* @__PURE__ */ r(jr, { children: h.first_name })
8669
8669
  ] }),
8670
- k.includes("last_name") && ((ee = I == null ? void 0 : I.last_name) == null ? void 0 : ee.enabled) && /* @__PURE__ */ i(ye, { children: [
8671
- /* @__PURE__ */ i(ve, { htmlFor: "last_name", children: [
8670
+ k.includes("last_name") && ((ee = I == null ? void 0 : I.last_name) == null ? void 0 : ee.enabled) && /* @__PURE__ */ i(be, { children: [
8671
+ /* @__PURE__ */ i(ye, { htmlFor: "last_name", children: [
8672
8672
  "Last name ",
8673
8673
  I.last_name.required && "*"
8674
8674
  ] }),
@@ -8691,8 +8691,8 @@ function Kf({
8691
8691
  ]
8692
8692
  }
8693
8693
  ),
8694
- k.includes("username") && ((V = I == null ? void 0 : I.username) == null ? void 0 : V.enabled) && /* @__PURE__ */ i(ye, { children: [
8695
- /* @__PURE__ */ i(ve, { htmlFor: "username", children: [
8694
+ k.includes("username") && ((V = I == null ? void 0 : I.username) == null ? void 0 : V.enabled) && /* @__PURE__ */ i(be, { children: [
8695
+ /* @__PURE__ */ i(ye, { htmlFor: "username", children: [
8696
8696
  "Username ",
8697
8697
  I.username.required && "*"
8698
8698
  ] }),
@@ -8712,8 +8712,8 @@ function Kf({
8712
8712
  ),
8713
8713
  h.username && /* @__PURE__ */ r(jr, { children: h.username })
8714
8714
  ] }),
8715
- k.includes("phone_number") && ((Q = I == null ? void 0 : I.phone_number) == null ? void 0 : Q.enabled) && /* @__PURE__ */ i(ye, { children: [
8716
- /* @__PURE__ */ i(ve, { htmlFor: "phone_number", children: [
8715
+ k.includes("phone_number") && ((Q = I == null ? void 0 : I.phone_number) == null ? void 0 : Q.enabled) && /* @__PURE__ */ i(be, { children: [
8716
+ /* @__PURE__ */ i(ye, { htmlFor: "phone_number", children: [
8717
8717
  "Phone number ",
8718
8718
  I.phone_number.required && "*"
8719
8719
  ] }),
@@ -8729,8 +8729,8 @@ function Kf({
8729
8729
  ),
8730
8730
  h.phone_number && /* @__PURE__ */ r(jr, { children: h.phone_number })
8731
8731
  ] }),
8732
- k.includes("email_address") && ((J = I == null ? void 0 : I.email_address) == null ? void 0 : J.enabled) && /* @__PURE__ */ i(ye, { children: [
8733
- /* @__PURE__ */ i(ve, { htmlFor: "email", children: [
8732
+ k.includes("email_address") && ((J = I == null ? void 0 : I.email_address) == null ? void 0 : J.enabled) && /* @__PURE__ */ i(be, { children: [
8733
+ /* @__PURE__ */ i(ye, { htmlFor: "email", children: [
8734
8734
  "Email address ",
8735
8735
  I.email_address.required && "*"
8736
8736
  ] }),
@@ -8783,94 +8783,94 @@ const Qf = /* @__PURE__ */ new Set([
8783
8783
  Qe.BannedKeyword
8784
8784
  ]), Xf = Et`
8785
8785
  from {
8786
- transform: rotate(0deg);
8787
- }
8786
+ transform: rotate(0deg);
8787
+ }
8788
8788
  to {
8789
- transform: rotate(360deg);
8790
- }
8789
+ transform: rotate(360deg);
8790
+ }
8791
8791
  `, On = u.div`
8792
- max-width: 380px;
8793
- width: 380px;
8794
- padding: var(--space-3xl);
8795
- background: var(--color-background);
8796
- border-radius: var(--radius-lg);
8797
- box-shadow: 0 4px 12px var(--color-shadow);
8792
+ max - width: 380px;
8793
+ width: 380px;
8794
+ padding: var(--space - 3xl);
8795
+ background: var(--color - background);
8796
+ border - radius: var(--radius - lg);
8797
+ box - shadow: 0 4px 12px var(--color - shadow);
8798
8798
  `, Ia = u.div`
8799
- display: flex;
8800
- justify-content: center;
8801
- align-items: center;
8802
- min-height: 200px;
8799
+ display: flex;
8800
+ justify - content: center;
8801
+ align - items: center;
8802
+ min - height: 200px;
8803
8803
 
8804
8804
  svg {
8805
- animation: ${Xf} 1s linear infinite;
8806
- color: var(--color-primary);
8807
- }
8805
+ animation: ${Xf} 1s linear infinite;
8806
+ color: var(--color - primary);
8807
+ }
8808
8808
  `, Ta = u.div`
8809
- text-align: center;
8810
- margin-bottom: var(--space-2xl);
8811
- position: relative;
8809
+ text - align: center;
8810
+ margin - bottom: var(--space - 2xl);
8811
+ position: relative;
8812
8812
  `, Ra = u.h1`
8813
- font-size: var(--font-lg);
8814
- font-weight: 400;
8815
- color: var(--color-foreground);
8816
- margin-bottom: var(--space-xs);
8817
- margin-top: 0;
8813
+ font - size: var(--font - lg);
8814
+ font - weight: 400;
8815
+ color: var(--color - foreground);
8816
+ margin - bottom: var(--space - xs);
8817
+ margin - top: 0;
8818
8818
  `, Oa = u.p`
8819
- color: var(--color-secondary-text);
8820
- font-size: var(--font-xs);
8819
+ color: var(--color - secondary - text);
8820
+ font - size: var(--font - xs);
8821
8821
  `, Jf = u.div`
8822
- position: relative;
8823
- text-align: center;
8824
- margin: var(--space-2xl) 0;
8822
+ position: relative;
8823
+ text - align: center;
8824
+ margin: var(--space - 2xl) 0;
8825
8825
 
8826
8826
  &::before {
8827
- content: "";
8828
- position: absolute;
8829
- top: 50%;
8830
- left: 0;
8831
- right: 0;
8832
- height: 1px;
8833
- background: var(--color-border);
8834
- }
8827
+ content: "";
8828
+ position: absolute;
8829
+ top: 50 %;
8830
+ left: 0;
8831
+ right: 0;
8832
+ height: 1px;
8833
+ background: var(--color - border);
8834
+ }
8835
8835
  `, eg = u.span`
8836
- position: relative;
8837
- background: var(--color-background);
8838
- padding: 0 var(--space-md);
8839
- color: var(--color-muted);
8840
- font-size: var(--font-xs);
8841
- font-weight: 400;
8842
- text-transform: uppercase;
8843
- letter-spacing: 0.05em;
8836
+ position: relative;
8837
+ background: var(--color - background);
8838
+ padding: 0 var(--space - md);
8839
+ color: var(--color - muted);
8840
+ font - size: var(--font - xs);
8841
+ font - weight: 400;
8842
+ text - transform: uppercase;
8843
+ letter - spacing: 0.05em;
8844
8844
  `, rg = u.div`
8845
- position: relative;
8845
+ position: relative;
8846
8846
  `, Nt = u.p`
8847
- font-size: var(--font-2xs);
8848
- color: var(--color-error);
8849
- margin: 0;
8850
- margin-top: var(--space-2xs);
8847
+ font - size: var(--font - 2xs);
8848
+ color: var(--color - error);
8849
+ margin: 0;
8850
+ margin - top: var(--space - 2xs);
8851
8851
  `, Ma = u(X)`
8852
- margin-top: var(--space-lg);
8852
+ margin - top: var(--space - lg);
8853
8853
  `, Mn = u.div`
8854
- margin-top: var(--space-lg);
8855
- text-align: center;
8856
- font-size: var(--font-xs);
8857
- color: var(--color-secondary-text);
8854
+ margin - top: var(--space - lg);
8855
+ text - align: center;
8856
+ font - size: var(--font - xs);
8857
+ color: var(--color - secondary - text);
8858
8858
  `, Wr = u.span`
8859
- color: var(--color-primary);
8860
- text-decoration: none;
8861
- font-weight: 400;
8862
- transition: color 0.2s;
8863
- cursor: pointer;
8859
+ color: var(--color - primary);
8860
+ text - decoration: none;
8861
+ font - weight: 400;
8862
+ transition: color 0.2s;
8863
+ cursor: pointer;
8864
8864
 
8865
8865
  &:hover {
8866
- color: var(--color-primary-hover);
8867
- }
8866
+ color: var(--color - primary - hover);
8867
+ }
8868
8868
  `;
8869
8869
  function My() {
8870
8870
  return /* @__PURE__ */ r(nf, { children: /* @__PURE__ */ r(tg, {}) });
8871
8871
  }
8872
8872
  function tg() {
8873
- var ee, V, Q, J, le, se, pe, K, de, Z;
8873
+ var V, Q, J, de, ce, he, K, ue, Z, Y;
8874
8874
  const { deployment: e } = Se(), { navigate: t } = Je(), { session: o, loading: n } = Ye(), {
8875
8875
  setEmail: a,
8876
8876
  otpSent: s,
@@ -8893,9 +8893,9 @@ function tg() {
8893
8893
  username: "",
8894
8894
  password: "",
8895
8895
  phone: ""
8896
- }), [b, f] = P({}), [O, k] = P(!1), [$, T] = P(""), [I, M] = P("US"), [R, L] = P(!1), F = (j) => {
8897
- let { name: N, value: G } = j.target;
8898
- N === "phone" ? G = G.replace(/[^0-9]/g, "") : N === "email" && (a(G), G = G.toLowerCase()), _((D) => ({ ...D, [N]: G })), f((D) => ({ ...D, [N]: "" }));
8896
+ }), [b, f] = P({}), [O, k] = P(!1), [$, T] = P(""), [I, M] = P("US"), [R, L] = P(!1), F = (N) => {
8897
+ let { name: j, value: D } = N.target;
8898
+ j === "phone" ? D = D.replace(/[^0-9]/g, "") : j === "email" && (a(D), D = D.toLowerCase()), _((G) => ({ ...G, [j]: D })), f((G) => ({ ...G, [j]: "" }));
8899
8899
  }, A = () => {
8900
8900
  _({
8901
8901
  email: "",
@@ -8903,139 +8903,139 @@ function tg() {
8903
8903
  password: "",
8904
8904
  phone: ""
8905
8905
  }), f({}), M("US");
8906
- }, B = async (j) => {
8907
- if (j.preventDefault(), v || O) return;
8906
+ }, B = async (N) => {
8907
+ if (N.preventDefault(), v || O) return;
8908
8908
  S();
8909
- const N = {};
8910
- if (m === "email_password" ? (C.email || (N.email = "Email address is required"), C.password || (N.password = "Password is required")) : m === "username_password" ? (C.username || (N.username = "Username is required"), C.password || (N.password = "Password is required")) : m === "email_otp" || m === "email_magic_link" ? C.email || (N.email = "Email address is required") : m === "phone_otp" && (C.phone ? /^\d{7,15}$/.test(C.phone) || (N.phone = "Phone number must contain 7-15 digits") : N.phone = "Phone number is required"), f(N), Object.keys(N).length > 0)
8909
+ const j = {};
8910
+ if (m === "email_password" ? (C.email || (j.email = "Email address is required"), C.password || (j.password = "Password is required")) : m === "username_password" ? (C.username || (j.username = "Username is required"), C.password || (j.password = "Password is required")) : m === "email_otp" || m === "email_magic_link" ? C.email || (j.email = "Email address is required") : m === "phone_otp" && (C.phone ? /^\d{7,15}$/.test(C.phone) || (j.phone = "Phone number must contain 7-15 digits") : j.phone = "Phone number is required"), f(j), Object.keys(j).length > 0)
8911
8911
  return;
8912
- let G = "";
8912
+ let D = "";
8913
8913
  switch (m) {
8914
8914
  case "email_password":
8915
- G = "plain_email";
8915
+ D = "plain_email";
8916
8916
  break;
8917
8917
  case "username_password":
8918
- G = "plain_username";
8918
+ D = "plain_username";
8919
8919
  break;
8920
8920
  case "email_otp":
8921
- G = "email_otp";
8921
+ D = "email_otp";
8922
8922
  break;
8923
8923
  case "email_magic_link":
8924
- G = "magic_link";
8924
+ D = "magic_link";
8925
8925
  break;
8926
8926
  case "phone_otp":
8927
- G = "phone_otp";
8927
+ D = "phone_otp";
8928
8928
  break;
8929
8929
  }
8930
8930
  k(!0);
8931
8931
  try {
8932
- const D = {
8932
+ const G = {
8933
8933
  ...C,
8934
- strategy: G
8934
+ strategy: D
8935
8935
  };
8936
- m === "phone_otp" && I && (D.phone_country_code = I), await y.create(D);
8937
- } catch (D) {
8938
- f({ submit: D.message }), k(!1);
8936
+ m === "phone_otp" && I && (G.phone_country_code = I), await y.create(G);
8937
+ } catch (G) {
8938
+ f({ submit: G.message }), k(!1);
8939
8939
  }
8940
- }, U = async (j) => {
8941
- if (j.preventDefault(), v || O) return;
8942
- const N = {};
8940
+ }, U = async (N) => {
8941
+ if (N.preventDefault(), v || O) return;
8942
+ const j = {};
8943
8943
  if (!$) {
8944
- N.otp = "OTP code is required", f(N);
8944
+ j.otp = "OTP code is required", f(j);
8945
8945
  return;
8946
8946
  }
8947
8947
  k(!0), f({});
8948
8948
  try {
8949
8949
  await y.completeVerification($), p(!1), T("");
8950
- } catch (G) {
8951
- f({ otp: G.message || "Verification failed" });
8950
+ } catch (D) {
8951
+ f({ otp: D.message || "Verification failed" });
8952
8952
  } finally {
8953
8953
  k(!1);
8954
8954
  }
8955
- }, ie = async (j) => {
8955
+ }, ne = async (N) => {
8956
8956
  if (!(v || O)) {
8957
8957
  k(!0);
8958
8958
  try {
8959
- const G = new URLSearchParams(window.location.search).get("redirect_uri") || void 0, { data: D } = await E.create({
8960
- provider: j.provider,
8961
- redirectUri: G
8959
+ const D = new URLSearchParams(window.location.search).get("redirect_uri") || void 0, { data: G } = await E.create({
8960
+ provider: N.provider,
8961
+ redirectUri: D
8962
8962
  });
8963
- D && typeof D == "object" && "oauth_url" in D && (window.location.href = D.oauth_url);
8964
- } catch (N) {
8965
- f({ submit: N.message });
8963
+ G && typeof G == "object" && "oauth_url" in G && (window.location.href = G.oauth_url);
8964
+ } catch (j) {
8965
+ f({ submit: j.message });
8966
8966
  } finally {
8967
8967
  k(!1);
8968
8968
  }
8969
8969
  }
8970
- };
8970
+ }, pe = re(!1);
8971
8971
  if (oe(() => {
8972
8972
  if (n) return;
8973
- const j = new URLSearchParams(window.location.search), N = j.get("impersonation_token");
8974
- if (N && !w && !v) {
8975
- (async () => {
8973
+ const N = new URLSearchParams(window.location.search), j = N.get("impersonation_token");
8974
+ if (j && !w && !v && !pe.current) {
8975
+ pe.current = !0, N.delete("impersonation_token");
8976
+ const G = N.toString() ? `${window.location.pathname}?${N.toString()} ` : window.location.pathname;
8977
+ window.history.replaceState({}, "", G), (async () => {
8976
8978
  try {
8977
8979
  k(!0), await y.create({
8978
8980
  strategy: "impersonation",
8979
- token: N
8980
- }), j.delete("impersonation_token");
8981
- const q = j.toString() ? `${window.location.pathname}?${j.toString()}` : window.location.pathname;
8982
- window.history.replaceState({}, "", q);
8983
- } catch (q) {
8984
- f({ submit: q.message }), k(!1);
8981
+ token: j
8982
+ });
8983
+ } catch (ve) {
8984
+ f({ submit: ve.message }), k(!1), pe.current = !1;
8985
8985
  }
8986
8986
  })();
8987
8987
  return;
8988
8988
  }
8989
- const G = j.get("signin_attempt_id");
8990
- if (G && (o != null && o.signin_attempts) && !w) {
8991
- const D = o.signin_attempts.find((q) => q.id === G);
8992
- if (D) {
8993
- x(D), j.delete("signin_attempt_id");
8994
- const q = j.toString() ? `${window.location.pathname}?${j.toString()}` : window.location.pathname;
8995
- window.history.replaceState({}, "", q);
8989
+ const D = N.get("signin_attempt_id");
8990
+ if (D && (o != null && o.signin_attempts) && !w) {
8991
+ const G = o.signin_attempts.find((ie) => ie.id === D);
8992
+ if (G) {
8993
+ x(G), N.delete("signin_attempt_id");
8994
+ const ie = N.toString() ? `${window.location.pathname}?${N.toString()} ` : window.location.pathname;
8995
+ window.history.replaceState({}, "", ie);
8996
8996
  }
8997
8997
  }
8998
- }, [o, n, w, x, y, v]), oe(() => {
8999
- var D;
8998
+ }, [o, n, w, x, v]), oe(() => {
8999
+ var G;
9000
9000
  if (!w) return;
9001
9001
  if (w.completed) {
9002
9002
  L(!0);
9003
- let q = new URLSearchParams(
9003
+ let ie = new URLSearchParams(
9004
9004
  window.location.search
9005
9005
  ).get("redirect_uri");
9006
- if (q || (q = ((D = e == null ? void 0 : e.ui_settings) == null ? void 0 : D.after_signin_redirect_url) || null), !q && (e != null && e.frontend_host) && (q = `https://${e.frontend_host}`), q) {
9007
- const ue = new URL(q);
9008
- (e == null ? void 0 : e.mode) === "staging" && ue.searchParams.set(
9006
+ if (ie || (ie = ((G = e == null ? void 0 : e.ui_settings) == null ? void 0 : G.after_signin_redirect_url) || null), !ie && (e != null && e.frontend_host) && (ie = `https://${e.frontend_host}`), ie) {
9007
+ const ve = new URL(ie);
9008
+ (e == null ? void 0 : e.mode) === "staging" && ve.searchParams.set(
9009
9009
  "__dev_session__",
9010
9010
  localStorage.getItem("__dev_session__") || ""
9011
- ), t(ue.toString());
9011
+ ), t(ve.toString());
9012
9012
  }
9013
9013
  return;
9014
9014
  }
9015
9015
  if (!y || s) return;
9016
- const N = {
9016
+ const j = {
9017
9017
  verify_email: "email_otp",
9018
9018
  verify_email_otp: "email_otp",
9019
9019
  verify_email_link: "magic_link",
9020
9020
  verify_phone: "phone_otp",
9021
9021
  verify_phone_otp: "phone_otp"
9022
9022
  }[w.current_step];
9023
- if (!N) return;
9023
+ if (!j) return;
9024
9024
  (async () => {
9025
9025
  try {
9026
- await y.prepareVerification({ strategy: N }), p(!0);
9027
- } catch (q) {
9028
- console.error("Failed to prepare verification:", q), f({ submit: "Failed to send verification. Please try again." });
9026
+ await y.prepareVerification({ strategy: j }), p(!0);
9027
+ } catch (ie) {
9028
+ console.error("Failed to prepare verification:", ie), f({ submit: "Failed to send verification. Please try again." });
9029
9029
  } finally {
9030
9030
  k(!1);
9031
9031
  }
9032
9032
  })();
9033
9033
  }, [w, y, s, p, t, e]), oe(() => {
9034
- const j = {};
9034
+ const N = {};
9035
9035
  if (z != null && z.errors && Array.isArray(z == null ? void 0 : z.errors))
9036
- for (const N of z.errors)
9037
- Qf.has(N.code) && (j.submit = N.message);
9038
- f(j);
9036
+ for (const j of z.errors)
9037
+ Qf.has(j.code) && (N.submit = j.message);
9038
+ f(N);
9039
9039
  }, [z]), h)
9040
9040
  return /* @__PURE__ */ r(mf, { onBack: () => d(!1) });
9041
9041
  if (g)
@@ -9075,7 +9075,7 @@ function tg() {
9075
9075
  /* @__PURE__ */ r(Ve, {}),
9076
9076
  /* @__PURE__ */ r(Ia, { children: /* @__PURE__ */ r(Ct, { size: 32 }) })
9077
9077
  ] }) });
9078
- const ne = (w == null ? void 0 : w.current_step) && [
9078
+ const ee = (w == null ? void 0 : w.current_step) && [
9079
9079
  "verify_email",
9080
9080
  "verify_email_otp",
9081
9081
  "verify_email_link",
@@ -9084,7 +9084,7 @@ function tg() {
9084
9084
  ].includes(w.current_step) && s;
9085
9085
  return /* @__PURE__ */ r(ge, { children: /* @__PURE__ */ i(On, { children: [
9086
9086
  /* @__PURE__ */ r(Ve, {}),
9087
- ne ? /* @__PURE__ */ r(te, { children: /* @__PURE__ */ i(Ta, { children: [
9087
+ ee ? /* @__PURE__ */ r(te, { children: /* @__PURE__ */ i(Ta, { children: [
9088
9088
  /* @__PURE__ */ r(Ra, { children: m === "phone_otp" ? "Check your phone" : "Check your email" }),
9089
9089
  /* @__PURE__ */ r(Oa, { children: m === "email_magic_link" ? `If ${C.email} exists in our records, you will receive a magic link. Click the link to sign in.` : m === "phone_otp" ? `If ${C.phone} exists in our records, you will receive a verification code via SMS. Enter it below to continue.` : `If ${C.email} exists in our records, you will receive a verification code. Enter it below to continue.` })
9090
9090
  ] }) }) : /* @__PURE__ */ i(Ta, { children: [
@@ -9096,7 +9096,7 @@ function tg() {
9096
9096
  "!"
9097
9097
  ] })
9098
9098
  ] }),
9099
- ne ? m === "email_magic_link" ? /* @__PURE__ */ i(Mn, { children: [
9099
+ ee ? m === "email_magic_link" ? /* @__PURE__ */ i(Mn, { children: [
9100
9100
  "Having trouble?",
9101
9101
  " ",
9102
9102
  /* @__PURE__ */ r(Wr, { children: /* @__PURE__ */ r(hr, { to: e.ui_settings.support_page_url, children: "Get help" }) }),
@@ -9121,14 +9121,14 @@ function tg() {
9121
9121
  /* @__PURE__ */ r(
9122
9122
  lt,
9123
9123
  {
9124
- onComplete: async (j) => {
9125
- if (T(j), j && j.length === 6) {
9124
+ onComplete: async (N) => {
9125
+ if (T(N), N && N.length === 6) {
9126
9126
  k(!0), f({});
9127
9127
  try {
9128
- await y.completeVerification(j), p(!1);
9129
- } catch (N) {
9128
+ await y.completeVerification(N), p(!1);
9129
+ } catch (j) {
9130
9130
  f({
9131
- otp: N.message || "Verification failed"
9131
+ otp: j.message || "Verification failed"
9132
9132
  });
9133
9133
  } finally {
9134
9134
  k(!1);
@@ -9136,8 +9136,8 @@ function tg() {
9136
9136
  }
9137
9137
  },
9138
9138
  onResend: async () => {
9139
- const j = m === "email_otp" ? "email_otp" : "phone_otp";
9140
- await y.prepareVerification({ strategy: j });
9139
+ const N = m === "email_otp" ? "email_otp" : "phone_otp";
9140
+ await y.prepareVerification({ strategy: N });
9141
9141
  },
9142
9142
  error: b.otp,
9143
9143
  isSubmitting: O
@@ -9149,7 +9149,7 @@ function tg() {
9149
9149
  type: "submit",
9150
9150
  disabled: O || v || !$,
9151
9151
  style: { margin: 0 },
9152
- children: O ? "Verifying..." : `Continue to ${(Z = e == null ? void 0 : e.ui_settings) == null ? void 0 : Z.app_name}`
9152
+ children: O ? "Verifying..." : `Continue to ${(Y = e == null ? void 0 : e.ui_settings) == null ? void 0 : Y.app_name}`
9153
9153
  }
9154
9154
  )
9155
9155
  ]
@@ -9176,14 +9176,14 @@ function tg() {
9176
9176
  Ti,
9177
9177
  {
9178
9178
  connections: l,
9179
- callback: ie
9179
+ callback: ne
9180
9180
  }
9181
9181
  ),
9182
9182
  /* @__PURE__ */ r(Jf, { children: /* @__PURE__ */ r(eg, { children: "or" }) })
9183
9183
  ] }),
9184
9184
  /* @__PURE__ */ i($r, { onSubmit: B, noValidate: !0, children: [
9185
- (m === "email_password" || m === "email_otp" || m === "email_magic_link") && ((V = (ee = e == null ? void 0 : e.auth_settings) == null ? void 0 : ee.email_address) == null ? void 0 : V.enabled) && /* @__PURE__ */ i(ye, { children: [
9186
- /* @__PURE__ */ r(ve, { htmlFor: "email", children: "Email address" }),
9185
+ (m === "email_password" || m === "email_otp" || m === "email_magic_link") && ((Q = (V = e == null ? void 0 : e.auth_settings) == null ? void 0 : V.email_address) == null ? void 0 : Q.enabled) && /* @__PURE__ */ i(be, { children: [
9186
+ /* @__PURE__ */ r(ye, { htmlFor: "email", children: "Email address" }),
9187
9187
  /* @__PURE__ */ r(
9188
9188
  me,
9189
9189
  {
@@ -9198,8 +9198,8 @@ function tg() {
9198
9198
  ),
9199
9199
  b.email && /* @__PURE__ */ r(Nt, { children: b.email })
9200
9200
  ] }),
9201
- m === "username_password" && ((J = (Q = e == null ? void 0 : e.auth_settings) == null ? void 0 : Q.username) == null ? void 0 : J.enabled) && /* @__PURE__ */ i(ye, { children: [
9202
- /* @__PURE__ */ r(ve, { htmlFor: "username", children: "Username" }),
9201
+ m === "username_password" && ((de = (J = e == null ? void 0 : e.auth_settings) == null ? void 0 : J.username) == null ? void 0 : de.enabled) && /* @__PURE__ */ i(be, { children: [
9202
+ /* @__PURE__ */ r(ye, { htmlFor: "username", children: "Username" }),
9203
9203
  /* @__PURE__ */ r(
9204
9204
  me,
9205
9205
  {
@@ -9214,8 +9214,8 @@ function tg() {
9214
9214
  ),
9215
9215
  b.username && /* @__PURE__ */ r(Nt, { children: b.username })
9216
9216
  ] }),
9217
- m === "phone_otp" && ((se = (le = e == null ? void 0 : e.auth_settings) == null ? void 0 : le.phone_number) == null ? void 0 : se.enabled) && /* @__PURE__ */ i(ye, { children: [
9218
- /* @__PURE__ */ r(ve, { htmlFor: "phone", children: "Phone number" }),
9217
+ m === "phone_otp" && ((he = (ce = e == null ? void 0 : e.auth_settings) == null ? void 0 : ce.phone_number) == null ? void 0 : he.enabled) && /* @__PURE__ */ i(be, { children: [
9218
+ /* @__PURE__ */ r(ye, { htmlFor: "phone", children: "Phone number" }),
9219
9219
  /* @__PURE__ */ r(
9220
9220
  rn,
9221
9221
  {
@@ -9228,7 +9228,7 @@ function tg() {
9228
9228
  ),
9229
9229
  b.phone && /* @__PURE__ */ r(Nt, { children: b.phone })
9230
9230
  ] }),
9231
- (m === "email_password" || m === "username_password") && ((K = (pe = e == null ? void 0 : e.auth_settings) == null ? void 0 : pe.password) == null ? void 0 : K.enabled) && /* @__PURE__ */ i(ye, { children: [
9231
+ (m === "email_password" || m === "username_password") && ((ue = (K = e == null ? void 0 : e.auth_settings) == null ? void 0 : K.password) == null ? void 0 : ue.enabled) && /* @__PURE__ */ i(be, { children: [
9232
9232
  /* @__PURE__ */ i(
9233
9233
  "div",
9234
9234
  {
@@ -9237,7 +9237,7 @@ function tg() {
9237
9237
  justifyContent: "space-between"
9238
9238
  },
9239
9239
  children: [
9240
- /* @__PURE__ */ r(ve, { htmlFor: "password", children: "Password" }),
9240
+ /* @__PURE__ */ r(ye, { htmlFor: "password", children: "Password" }),
9241
9241
  /* @__PURE__ */ r(
9242
9242
  Wr,
9243
9243
  {
@@ -9282,7 +9282,7 @@ function tg() {
9282
9282
  /* @__PURE__ */ r(Wr, { children: /* @__PURE__ */ r(
9283
9283
  hr,
9284
9284
  {
9285
- to: `${(de = e.ui_settings) == null ? void 0 : de.sign_up_page_url}${window.location.search}`,
9285
+ to: `${(Z = e.ui_settings) == null ? void 0 : Z.sign_up_page_url}${window.location.search}`,
9286
9286
  children: "Sign up"
9287
9287
  }
9288
9288
  ) })
@@ -10586,8 +10586,8 @@ const nl = Ar({
10586
10586
  margin: 0
10587
10587
  }, children: "Add the following DNS record to your domain" }) }),
10588
10588
  /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "var(--space-sm)" }, children: [
10589
- /* @__PURE__ */ i(ye, { children: [
10590
- /* @__PURE__ */ r(ve, { children: "Record Type" }),
10589
+ /* @__PURE__ */ i(be, { children: [
10590
+ /* @__PURE__ */ r(ye, { children: "Record Type" }),
10591
10591
  /* @__PURE__ */ r(
10592
10592
  me,
10593
10593
  {
@@ -10596,8 +10596,8 @@ const nl = Ar({
10596
10596
  }
10597
10597
  )
10598
10598
  ] }),
10599
- /* @__PURE__ */ i(ye, { children: [
10600
- /* @__PURE__ */ r(ve, { children: "Record Name" }),
10599
+ /* @__PURE__ */ i(be, { children: [
10600
+ /* @__PURE__ */ r(ye, { children: "Record Name" }),
10601
10601
  /* @__PURE__ */ r(
10602
10602
  me,
10603
10603
  {
@@ -10606,8 +10606,8 @@ const nl = Ar({
10606
10606
  }
10607
10607
  )
10608
10608
  ] }),
10609
- /* @__PURE__ */ i(ye, { children: [
10610
- /* @__PURE__ */ r(ve, { children: "Record Data" }),
10609
+ /* @__PURE__ */ i(be, { children: [
10610
+ /* @__PURE__ */ r(ye, { children: "Record Data" }),
10611
10611
  /* @__PURE__ */ r(
10612
10612
  me,
10613
10613
  {
@@ -10651,8 +10651,8 @@ const nl = Ar({
10651
10651
  /* @__PURE__ */ r(ja, { id: "add-domain-title", children: "Add Domain" }),
10652
10652
  /* @__PURE__ */ r(Ga, { onClick: e, "aria-label": "Close add domain dialog", children: /* @__PURE__ */ r(tr, { size: 16 }) })
10653
10653
  ] }),
10654
- /* @__PURE__ */ r(Wa, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "var(--space-sm)" }, children: /* @__PURE__ */ i(ye, { children: [
10655
- /* @__PURE__ */ r(ve, { children: "Enter FQDN" }),
10654
+ /* @__PURE__ */ r(Wa, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "var(--space-sm)" }, children: /* @__PURE__ */ i(be, { children: [
10655
+ /* @__PURE__ */ r(ye, { children: "Enter FQDN" }),
10656
10656
  /* @__PURE__ */ r(
10657
10657
  me,
10658
10658
  {
@@ -10816,8 +10816,8 @@ const nl = Ar({
10816
10816
  /* @__PURE__ */ r(nm, { onClick: e, "aria-label": "Close invite member dialog", children: /* @__PURE__ */ r(tr, { size: 16 }) })
10817
10817
  ] }),
10818
10818
  /* @__PURE__ */ r(tm, { children: /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "var(--space-sm)" }, children: [
10819
- /* @__PURE__ */ i(ye, { children: [
10820
- /* @__PURE__ */ r(ve, { children: "Email Address" }),
10819
+ /* @__PURE__ */ i(be, { children: [
10820
+ /* @__PURE__ */ r(ye, { children: "Email Address" }),
10821
10821
  /* @__PURE__ */ r(
10822
10822
  me,
10823
10823
  {
@@ -10831,8 +10831,8 @@ const nl = Ar({
10831
10831
  }
10832
10832
  )
10833
10833
  ] }),
10834
- /* @__PURE__ */ i(ye, { children: [
10835
- /* @__PURE__ */ r(ve, { children: "Role" }),
10834
+ /* @__PURE__ */ i(be, { children: [
10835
+ /* @__PURE__ */ r(ye, { children: "Role" }),
10836
10836
  /* @__PURE__ */ r(
10837
10837
  Oi,
10838
10838
  {
@@ -11034,8 +11034,8 @@ const nl = Ar({
11034
11034
  /* @__PURE__ */ r(dm, { onClick: e, "aria-label": `Close ${z ? "edit" : "create"} role dialog`, children: /* @__PURE__ */ r(tr, { size: 16 }) })
11035
11035
  ] }),
11036
11036
  /* @__PURE__ */ r(cm, { children: /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "var(--space-sm)" }, children: [
11037
- /* @__PURE__ */ i(ye, { children: [
11038
- /* @__PURE__ */ r(ve, { children: "Role Name" }),
11037
+ /* @__PURE__ */ i(be, { children: [
11038
+ /* @__PURE__ */ r(ye, { children: "Role Name" }),
11039
11039
  /* @__PURE__ */ r(
11040
11040
  me,
11041
11041
  {
@@ -11049,8 +11049,8 @@ const nl = Ar({
11049
11049
  }
11050
11050
  )
11051
11051
  ] }),
11052
- /* @__PURE__ */ i(ye, { children: [
11053
- /* @__PURE__ */ r(ve, { children: "Permissions" }),
11052
+ /* @__PURE__ */ i(be, { children: [
11053
+ /* @__PURE__ */ r(ye, { children: "Permissions" }),
11054
11054
  /* @__PURE__ */ r(
11055
11055
  el,
11056
11056
  {
@@ -11501,16 +11501,16 @@ const nl = Ar({
11501
11501
  onChange: (B) => {
11502
11502
  var U;
11503
11503
  if ((U = B.target.files) != null && U[0]) {
11504
- const ie = B.target.files[0];
11505
- if (ie.size > 2 * 1024 * 1024) {
11504
+ const ne = B.target.files[0];
11505
+ if (ne.size > 2 * 1024 * 1024) {
11506
11506
  c("File size cannot exceed 2MB", "error");
11507
11507
  return;
11508
11508
  }
11509
- if (!ie.type.startsWith("image/")) {
11509
+ if (!ne.type.startsWith("image/")) {
11510
11510
  c("Please select a valid image file", "error");
11511
11511
  return;
11512
11512
  }
11513
- v && URL.revokeObjectURL(v), y(URL.createObjectURL(ie)), setTimeout(() => $(), 100);
11513
+ v && URL.revokeObjectURL(v), y(URL.createObjectURL(ne)), setTimeout(() => $(), 100);
11514
11514
  }
11515
11515
  },
11516
11516
  "aria-label": "Upload organization logo"
@@ -11651,8 +11651,8 @@ const nl = Ar({
11651
11651
  gap: "var(--space-lg)"
11652
11652
  },
11653
11653
  children: [
11654
- /* @__PURE__ */ i(ye, { children: [
11655
- /* @__PURE__ */ r(ve, { htmlFor: "name", children: "Organization Name" }),
11654
+ /* @__PURE__ */ i(be, { children: [
11655
+ /* @__PURE__ */ r(ye, { htmlFor: "name", children: "Organization Name" }),
11656
11656
  /* @__PURE__ */ r(
11657
11657
  me,
11658
11658
  {
@@ -11666,8 +11666,8 @@ const nl = Ar({
11666
11666
  }
11667
11667
  )
11668
11668
  ] }),
11669
- /* @__PURE__ */ i(ye, { children: [
11670
- /* @__PURE__ */ r(ve, { htmlFor: "description", children: "Description" }),
11669
+ /* @__PURE__ */ i(be, { children: [
11670
+ /* @__PURE__ */ r(ye, { htmlFor: "description", children: "Description" }),
11671
11671
  /* @__PURE__ */ r(
11672
11672
  me,
11673
11673
  {
@@ -11707,7 +11707,7 @@ const nl = Ar({
11707
11707
  children: [
11708
11708
  /* @__PURE__ */ i("div", { children: [
11709
11709
  /* @__PURE__ */ r(
11710
- ve,
11710
+ ye,
11711
11711
  {
11712
11712
  style: {
11713
11713
  fontSize: "var(--font-xs)",
@@ -11757,7 +11757,7 @@ const nl = Ar({
11757
11757
  children: [
11758
11758
  /* @__PURE__ */ i("div", { children: [
11759
11759
  /* @__PURE__ */ r(
11760
- ve,
11760
+ ye,
11761
11761
  {
11762
11762
  style: {
11763
11763
  fontSize: "var(--font-xs)",
@@ -11797,8 +11797,8 @@ const nl = Ar({
11797
11797
  ]
11798
11798
  }
11799
11799
  ),
11800
- x.ip_restrictions && /* @__PURE__ */ i(ye, { children: [
11801
- /* @__PURE__ */ r(ve, { htmlFor: "allowed_ips", children: "Allowed IP Addresses" }),
11800
+ x.ip_restrictions && /* @__PURE__ */ i(be, { children: [
11801
+ /* @__PURE__ */ r(ye, { htmlFor: "allowed_ips", children: "Allowed IP Addresses" }),
11802
11802
  /* @__PURE__ */ r(
11803
11803
  me,
11804
11804
  {
@@ -11832,8 +11832,8 @@ const nl = Ar({
11832
11832
  )
11833
11833
  ] })
11834
11834
  ] }),
11835
- ((F = s == null ? void 0 : s.b2b_settings) == null ? void 0 : F.workspaces_enabled) && T.length > 0 && /* @__PURE__ */ i(ye, { children: [
11836
- /* @__PURE__ */ r(ve, { htmlFor: "default_workspace", children: "Default Workspace" }),
11835
+ ((F = s == null ? void 0 : s.b2b_settings) == null ? void 0 : F.workspaces_enabled) && T.length > 0 && /* @__PURE__ */ i(be, { children: [
11836
+ /* @__PURE__ */ r(ye, { htmlFor: "default_workspace", children: "Default Workspace" }),
11837
11837
  /* @__PURE__ */ r(
11838
11838
  Oi,
11839
11839
  {
@@ -11969,8 +11969,8 @@ const nl = Ar({
11969
11969
  }
11970
11970
  ),
11971
11971
  O && /* @__PURE__ */ i("div", { children: [
11972
- /* @__PURE__ */ i(ye, { children: [
11973
- /* @__PURE__ */ r(ve, { htmlFor: "confirm_name", children: "Confirm by typing the organization name" }),
11972
+ /* @__PURE__ */ i(be, { children: [
11973
+ /* @__PURE__ */ r(ye, { htmlFor: "confirm_name", children: "Confirm by typing the organization name" }),
11974
11974
  /* @__PURE__ */ r(
11975
11975
  me,
11976
11976
  {
@@ -13804,8 +13804,8 @@ const nl = Ar({
13804
13804
  /* @__PURE__ */ r(n0, { onClick: e, "aria-label": "Close invite member dialog", children: /* @__PURE__ */ r(tr, { size: 16 }) })
13805
13805
  ] }),
13806
13806
  /* @__PURE__ */ r(t0, { children: /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "var(--space-sm)" }, children: [
13807
- /* @__PURE__ */ i(ye, { children: [
13808
- /* @__PURE__ */ r(ve, { children: "Email Address" }),
13807
+ /* @__PURE__ */ i(be, { children: [
13808
+ /* @__PURE__ */ r(ye, { children: "Email Address" }),
13809
13809
  /* @__PURE__ */ r(
13810
13810
  me,
13811
13811
  {
@@ -13819,8 +13819,8 @@ const nl = Ar({
13819
13819
  }
13820
13820
  )
13821
13821
  ] }),
13822
- /* @__PURE__ */ i(ye, { children: [
13823
- /* @__PURE__ */ r(ve, { children: "Role" }),
13822
+ /* @__PURE__ */ i(be, { children: [
13823
+ /* @__PURE__ */ r(ye, { children: "Role" }),
13824
13824
  /* @__PURE__ */ r(
13825
13825
  Oi,
13826
13826
  {
@@ -13981,8 +13981,8 @@ const nl = Ar({
13981
13981
  /* @__PURE__ */ r(u0, { onClick: e, children: /* @__PURE__ */ r(tr, { size: 16 }) })
13982
13982
  ] }),
13983
13983
  /* @__PURE__ */ r(l0, { children: /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "var(--space-sm)" }, children: [
13984
- /* @__PURE__ */ i(ye, { children: [
13985
- /* @__PURE__ */ r(ve, { children: "Role Name" }),
13984
+ /* @__PURE__ */ i(be, { children: [
13985
+ /* @__PURE__ */ r(ye, { children: "Role Name" }),
13986
13986
  /* @__PURE__ */ r(
13987
13987
  me,
13988
13988
  {
@@ -13994,8 +13994,8 @@ const nl = Ar({
13994
13994
  }
13995
13995
  )
13996
13996
  ] }),
13997
- /* @__PURE__ */ i(ye, { children: [
13998
- /* @__PURE__ */ r(ve, { children: "Permissions" }),
13997
+ /* @__PURE__ */ i(be, { children: [
13998
+ /* @__PURE__ */ r(ye, { children: "Permissions" }),
13999
13999
  /* @__PURE__ */ r(
14000
14000
  el,
14001
14001
  {
@@ -14681,8 +14681,8 @@ const nl = Ar({
14681
14681
  const k = (B) => {
14682
14682
  var U;
14683
14683
  if ((U = B.target.files) != null && U[0]) {
14684
- const ie = B.target.files[0];
14685
- d(ie), m(URL.createObjectURL(ie)), setTimeout(() => T(), 100);
14684
+ const ne = B.target.files[0];
14685
+ d(ne), m(URL.createObjectURL(ne)), setTimeout(() => T(), 100);
14686
14686
  }
14687
14687
  }, $ = () => {
14688
14688
  f.current && f.current.click();
@@ -14927,8 +14927,8 @@ const nl = Ar({
14927
14927
  gap: "var(--space-lg)"
14928
14928
  },
14929
14929
  children: [
14930
- /* @__PURE__ */ i(ye, { children: [
14931
- /* @__PURE__ */ r(ve, { htmlFor: "name", children: "Workspace Name" }),
14930
+ /* @__PURE__ */ i(be, { children: [
14931
+ /* @__PURE__ */ r(ye, { htmlFor: "name", children: "Workspace Name" }),
14932
14932
  /* @__PURE__ */ r(
14933
14933
  me,
14934
14934
  {
@@ -14942,8 +14942,8 @@ const nl = Ar({
14942
14942
  }
14943
14943
  )
14944
14944
  ] }),
14945
- /* @__PURE__ */ i(ye, { children: [
14946
- /* @__PURE__ */ r(ve, { htmlFor: "description", children: "Description" }),
14945
+ /* @__PURE__ */ i(be, { children: [
14946
+ /* @__PURE__ */ r(ye, { htmlFor: "description", children: "Description" }),
14947
14947
  /* @__PURE__ */ r(
14948
14948
  me,
14949
14949
  {
@@ -15077,8 +15077,8 @@ const nl = Ar({
15077
15077
  }
15078
15078
  ),
15079
15079
  _ && /* @__PURE__ */ i("div", { children: [
15080
- /* @__PURE__ */ i(ye, { children: [
15081
- /* @__PURE__ */ r(ve, { htmlFor: "confirm_workspace_name", children: "Confirm by typing the workspace name" }),
15080
+ /* @__PURE__ */ i(be, { children: [
15081
+ /* @__PURE__ */ r(ye, { htmlFor: "confirm_workspace_name", children: "Confirm by typing the workspace name" }),
15082
15082
  /* @__PURE__ */ r(
15083
15083
  me,
15084
15084
  {
@@ -15864,7 +15864,7 @@ const nl = Ar({
15864
15864
  `, j0 = ({
15865
15865
  showPersonal: e = !0
15866
15866
  }) => {
15867
- var pe, K, de;
15867
+ var he, K, ue;
15868
15868
  const [t, o] = P(!1), [n, a] = P(!1), [s, p] = P(/* @__PURE__ */ new Set()), g = re(null), c = re(null), h = hl({
15869
15869
  triggerRef: g,
15870
15870
  isOpen: t,
@@ -15878,42 +15878,42 @@ const nl = Ar({
15878
15878
  loading: R,
15879
15879
  switchOrganization: L,
15880
15880
  switchWorkspace: F
15881
- } = Ye(), { deployment: A } = Se(), { toast: B } = lr(), U = A == null ? void 0 : A.b2b_settings.organizations_enabled, ie = A == null ? void 0 : A.b2b_settings.workspaces_enabled, he = A == null ? void 0 : A.b2b_settings.allow_users_to_create_orgs, ne = !((pe = M == null ? void 0 : M.active_signin) != null && pe.active_organization_membership_id), ee = fr(() => {
15882
- var j, N;
15883
- if (ne)
15881
+ } = Ye(), { deployment: A } = Se(), { toast: B } = lr(), U = A == null ? void 0 : A.b2b_settings.organizations_enabled, ne = A == null ? void 0 : A.b2b_settings.workspaces_enabled, pe = A == null ? void 0 : A.b2b_settings.allow_users_to_create_orgs, se = !((he = M == null ? void 0 : M.active_signin) != null && he.active_organization_membership_id), ee = fr(() => {
15882
+ var Y, N;
15883
+ if (se)
15884
15884
  return {
15885
15885
  name: "Personal account",
15886
- image_url: (N = (j = M == null ? void 0 : M.active_signin) == null ? void 0 : j.user) == null ? void 0 : N.profile_picture_url,
15886
+ image_url: (N = (Y = M == null ? void 0 : M.active_signin) == null ? void 0 : Y.user) == null ? void 0 : N.profile_picture_url,
15887
15887
  isPersonal: !0
15888
15888
  };
15889
15889
  let Z = (f == null ? void 0 : f.name) || "";
15890
- return ie && k && (Z = `${f == null ? void 0 : f.name} / ${k.name}`), {
15890
+ return ne && k && (Z = `${f == null ? void 0 : f.name} / ${k.name}`), {
15891
15891
  name: Z,
15892
15892
  image_url: f == null ? void 0 : f.image_url,
15893
15893
  isPersonal: !1
15894
15894
  };
15895
15895
  }, [
15896
- ne,
15896
+ se,
15897
15897
  f,
15898
15898
  k,
15899
15899
  M,
15900
- ie
15900
+ ne
15901
15901
  ]);
15902
15902
  oe(() => {
15903
15903
  if (!t) return;
15904
15904
  let Z = null;
15905
- const j = setTimeout(() => {
15906
- const N = (G) => {
15907
- var q, ue;
15908
- const D = G.target;
15909
- (q = g.current) != null && q.contains(D) || (ue = c.current) != null && ue.contains(D) || (o(!1), E(null));
15905
+ const Y = setTimeout(() => {
15906
+ const N = (j) => {
15907
+ var G, ie;
15908
+ const D = j.target;
15909
+ (G = g.current) != null && G.contains(D) || (ie = c.current) != null && ie.contains(D) || (o(!1), E(null));
15910
15910
  };
15911
15911
  document.addEventListener("mousedown", N), Z = () => {
15912
15912
  document.removeEventListener("mousedown", N);
15913
15913
  };
15914
15914
  }, 50);
15915
15915
  return () => {
15916
- clearTimeout(j), Z == null || Z();
15916
+ clearTimeout(Y), Z == null || Z();
15917
15917
  };
15918
15918
  }, [t]), oe(() => {
15919
15919
  if (x) {
@@ -15936,10 +15936,10 @@ const nl = Ar({
15936
15936
  a(!0), F(Z).finally(() => {
15937
15937
  a(!1);
15938
15938
  });
15939
- }, le = (Z) => {
15940
- const j = new Set(s);
15941
- j.has(Z) ? j.delete(Z) : j.add(Z), p(j);
15942
- }, se = (Z) => Z.split(" ").map((j) => j[0]).join("").toUpperCase().slice(0, 2);
15939
+ }, de = (Z) => {
15940
+ const Y = new Set(s);
15941
+ Y.has(Z) ? Y.delete(Z) : Y.add(Z), p(Y);
15942
+ }, ce = (Z) => Z.split(" ").map((Y) => Y[0]).join("").toUpperCase().slice(0, 2);
15943
15943
  return _ || R ? /* @__PURE__ */ r(ge, { children: /* @__PURE__ */ r(es, { children: /* @__PURE__ */ i(N0, { children: [
15944
15944
  /* @__PURE__ */ i(rs, { children: [
15945
15945
  /* @__PURE__ */ r(F0, {}),
@@ -15963,7 +15963,7 @@ const nl = Ar({
15963
15963
  src: ee.image_url,
15964
15964
  alt: ee.name
15965
15965
  }
15966
- ) : ee.isPersonal ? /* @__PURE__ */ r(Wo, { size: 12 }) : se(ee.name) }),
15966
+ ) : ee.isPersonal ? /* @__PURE__ */ r(Wo, { size: 12 }) : ce(ee.name) }),
15967
15967
  /* @__PURE__ */ r(R0, { children: ee.name })
15968
15968
  ] }),
15969
15969
  /* @__PURE__ */ r(Jp, { size: 16 })
@@ -16009,15 +16009,15 @@ const nl = Ar({
16009
16009
  Ao,
16010
16010
  {
16011
16011
  as: "button",
16012
- $isActive: ne,
16012
+ $isActive: se,
16013
16013
  onClick: (Z) => {
16014
- Z.stopPropagation(), ne || Q();
16014
+ Z.stopPropagation(), se || Q();
16015
16015
  },
16016
- disabled: n || ne,
16016
+ disabled: n || se,
16017
16017
  children: [
16018
- ne && /* @__PURE__ */ r(wo, {}),
16018
+ se && /* @__PURE__ */ r(wo, {}),
16019
16019
  /* @__PURE__ */ i(xr, { children: [
16020
- /* @__PURE__ */ r(M0, { children: (de = (K = M == null ? void 0 : M.active_signin) == null ? void 0 : K.user) != null && de.profile_picture_url ? /* @__PURE__ */ r(
16020
+ /* @__PURE__ */ r(M0, { children: (ue = (K = M == null ? void 0 : M.active_signin) == null ? void 0 : K.user) != null && ue.profile_picture_url ? /* @__PURE__ */ r(
16021
16021
  L0,
16022
16022
  {
16023
16023
  src: M.active_signin.user.profile_picture_url,
@@ -16026,24 +16026,24 @@ const nl = Ar({
16026
16026
  ) : /* @__PURE__ */ r(Wo, { size: 12 }) }),
16027
16027
  /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(kr, { children: "Personal account" }) })
16028
16028
  ] }),
16029
- !ne && /* @__PURE__ */ r(bo, { className: "hover-arrow", size: 14 })
16029
+ !se && /* @__PURE__ */ r(bo, { className: "hover-arrow", size: 14 })
16030
16030
  ]
16031
16031
  }
16032
16032
  ),
16033
- !ne && f && /* @__PURE__ */ r(ft, {})
16033
+ !se && f && /* @__PURE__ */ r(ft, {})
16034
16034
  ] }),
16035
- !ne && f && /* @__PURE__ */ i(
16035
+ !se && f && /* @__PURE__ */ i(
16036
16036
  Ao,
16037
16037
  {
16038
16038
  $isActive: !0,
16039
16039
  onClick: () => {
16040
- ie && le(f.id);
16040
+ ne && de(f.id);
16041
16041
  },
16042
16042
  style: n ? { pointerEvents: "none", opacity: 0.7 } : void 0,
16043
16043
  children: [
16044
16044
  /* @__PURE__ */ r(wo, {}),
16045
16045
  /* @__PURE__ */ i(xr, { children: [
16046
- ie && /* @__PURE__ */ r(
16046
+ ne && /* @__PURE__ */ r(
16047
16047
  at,
16048
16048
  {
16049
16049
  size: 12,
@@ -16063,7 +16063,7 @@ const nl = Ar({
16063
16063
  src: f.image_url,
16064
16064
  alt: f.name
16065
16065
  }
16066
- ) : se(f.name) }),
16066
+ ) : ce(f.name) }),
16067
16067
  /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(kr, { children: f.name }) })
16068
16068
  ] }),
16069
16069
  /* @__PURE__ */ i(
@@ -16094,9 +16094,9 @@ const nl = Ar({
16094
16094
  await O(), await b(), setTimeout(() => {
16095
16095
  z(!1);
16096
16096
  }, 500);
16097
- } catch (j) {
16097
+ } catch (Y) {
16098
16098
  E(
16099
- j instanceof Error ? j.message : "Failed to leave organization"
16099
+ Y instanceof Error ? Y.message : "Failed to leave organization"
16100
16100
  ), z(!1);
16101
16101
  }
16102
16102
  },
@@ -16111,25 +16111,25 @@ const nl = Ar({
16111
16111
  ]
16112
16112
  }
16113
16113
  ),
16114
- f && ie && s.has(f.id) && /* @__PURE__ */ i(te, { children: [
16114
+ f && ne && s.has(f.id) && /* @__PURE__ */ i(te, { children: [
16115
16115
  T == null ? void 0 : T.filter(
16116
16116
  (Z) => Z.organization.id === f.id
16117
16117
  ).map((Z) => {
16118
- const j = (k == null ? void 0 : k.id) === Z.id;
16118
+ const Y = (k == null ? void 0 : k.id) === Z.id;
16119
16119
  return /* @__PURE__ */ i(
16120
16120
  ko,
16121
16121
  {
16122
- as: j ? void 0 : "button",
16123
- $isActive: j,
16124
- onClick: j ? void 0 : () => J(Z.id),
16125
- ...j ? {
16122
+ as: Y ? void 0 : "button",
16123
+ $isActive: Y,
16124
+ onClick: Y ? void 0 : () => J(Z.id),
16125
+ ...Y ? {
16126
16126
  style: n ? {
16127
16127
  pointerEvents: "none",
16128
16128
  opacity: 0.7
16129
16129
  } : void 0
16130
16130
  } : { disabled: n },
16131
16131
  children: [
16132
- j && /* @__PURE__ */ r(wo, {}),
16132
+ Y && /* @__PURE__ */ r(wo, {}),
16133
16133
  /* @__PURE__ */ i(xr, { children: [
16134
16134
  /* @__PURE__ */ r(is, { children: Z.image_url ? /* @__PURE__ */ r(
16135
16135
  "img",
@@ -16142,10 +16142,10 @@ const nl = Ar({
16142
16142
  objectFit: "cover"
16143
16143
  }
16144
16144
  }
16145
- ) : se(Z.name).charAt(0) }),
16145
+ ) : ce(Z.name).charAt(0) }),
16146
16146
  /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(kr, { children: Z.name }) })
16147
16147
  ] }),
16148
- j ? /* @__PURE__ */ i(
16148
+ Y ? /* @__PURE__ */ i(
16149
16149
  "div",
16150
16150
  {
16151
16151
  style: {
@@ -16171,8 +16171,8 @@ const nl = Ar({
16171
16171
  N.stopPropagation();
16172
16172
  try {
16173
16173
  $ && await $();
16174
- } catch (G) {
16175
- const D = G.message || "Failed to leave workspace. Please try again.";
16174
+ } catch (j) {
16175
+ const D = j.message || "Failed to leave workspace. Please try again.";
16176
16176
  B(D, "error");
16177
16177
  }
16178
16178
  },
@@ -16229,9 +16229,9 @@ const nl = Ar({
16229
16229
  C && C.length > 0 && /* @__PURE__ */ r(te, { children: C.filter(
16230
16230
  (Z) => Z.organization.id !== (f == null ? void 0 : f.id)
16231
16231
  ).map((Z) => {
16232
- const j = Z.organization, N = (T == null ? void 0 : T.filter(
16233
- (D) => D.organization.id === j.id
16234
- )) || [], G = s.has(j.id);
16232
+ const Y = Z.organization, N = (T == null ? void 0 : T.filter(
16233
+ (D) => D.organization.id === Y.id
16234
+ )) || [], j = s.has(Y.id);
16235
16235
  return /* @__PURE__ */ i(fe.Fragment, { children: [
16236
16236
  /* @__PURE__ */ i(
16237
16237
  Ao,
@@ -16239,31 +16239,31 @@ const nl = Ar({
16239
16239
  as: "button",
16240
16240
  $isActive: !1,
16241
16241
  onClick: () => {
16242
- ie ? le(j.id) : Q(j.id);
16242
+ ne ? de(Y.id) : Q(Y.id);
16243
16243
  },
16244
16244
  disabled: n,
16245
16245
  children: [
16246
16246
  /* @__PURE__ */ i(xr, { children: [
16247
- ie && /* @__PURE__ */ r(
16247
+ ne && /* @__PURE__ */ r(
16248
16248
  at,
16249
16249
  {
16250
16250
  size: 12,
16251
16251
  style: {
16252
16252
  marginRight: "4px",
16253
- transform: G ? "rotate(0deg)" : "rotate(-90deg)",
16253
+ transform: j ? "rotate(0deg)" : "rotate(-90deg)",
16254
16254
  transition: "transform 0.2s ease",
16255
16255
  color: "var(--color-secondary-text)"
16256
16256
  }
16257
16257
  }
16258
16258
  ),
16259
- /* @__PURE__ */ r(ts, { children: j.image_url ? /* @__PURE__ */ r(
16259
+ /* @__PURE__ */ r(ts, { children: Y.image_url ? /* @__PURE__ */ r(
16260
16260
  os,
16261
16261
  {
16262
- src: j.image_url,
16263
- alt: j.name
16262
+ src: Y.image_url,
16263
+ alt: Y.name
16264
16264
  }
16265
- ) : se(j.name) }),
16266
- /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(kr, { children: j.name }) })
16265
+ ) : ce(Y.name) }),
16266
+ /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(kr, { children: Y.name }) })
16267
16267
  ] }),
16268
16268
  /* @__PURE__ */ r(
16269
16269
  bo,
@@ -16275,26 +16275,26 @@ const nl = Ar({
16275
16275
  ]
16276
16276
  }
16277
16277
  ),
16278
- ie && G && /* @__PURE__ */ i(te, { children: [
16278
+ ne && j && /* @__PURE__ */ i(te, { children: [
16279
16279
  N.map(
16280
16280
  (D) => {
16281
- const q = (k == null ? void 0 : k.id) === D.id;
16281
+ const G = (k == null ? void 0 : k.id) === D.id;
16282
16282
  return /* @__PURE__ */ i(
16283
16283
  ko,
16284
16284
  {
16285
- as: q ? void 0 : "button",
16286
- $isActive: q,
16287
- onClick: q ? void 0 : () => J(
16285
+ as: G ? void 0 : "button",
16286
+ $isActive: G,
16287
+ onClick: G ? void 0 : () => J(
16288
16288
  D.id
16289
16289
  ),
16290
- ...q ? {
16290
+ ...G ? {
16291
16291
  style: n ? {
16292
16292
  pointerEvents: "none",
16293
16293
  opacity: 0.7
16294
16294
  } : void 0
16295
16295
  } : { disabled: n },
16296
16296
  children: [
16297
- q && /* @__PURE__ */ r(wo, {}),
16297
+ G && /* @__PURE__ */ r(wo, {}),
16298
16298
  /* @__PURE__ */ i(xr, { children: [
16299
16299
  /* @__PURE__ */ r(is, { children: D.image_url ? /* @__PURE__ */ r(
16300
16300
  "img",
@@ -16307,12 +16307,12 @@ const nl = Ar({
16307
16307
  objectFit: "cover"
16308
16308
  }
16309
16309
  }
16310
- ) : se(
16310
+ ) : ce(
16311
16311
  D.name
16312
16312
  ).charAt(0) }),
16313
16313
  /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(kr, { children: D.name }) })
16314
16314
  ] }),
16315
- q ? /* @__PURE__ */ i(
16315
+ G ? /* @__PURE__ */ i(
16316
16316
  "div",
16317
16317
  {
16318
16318
  style: {
@@ -16324,8 +16324,8 @@ const nl = Ar({
16324
16324
  /* @__PURE__ */ r(
16325
16325
  Do,
16326
16326
  {
16327
- onClick: (ue) => {
16328
- ue.stopPropagation(), v.open();
16327
+ onClick: (ie) => {
16328
+ ie.stopPropagation(), v.open();
16329
16329
  },
16330
16330
  title: "Manage workspace",
16331
16331
  children: /* @__PURE__ */ r(ot, { size: 12 })
@@ -16334,12 +16334,12 @@ const nl = Ar({
16334
16334
  /* @__PURE__ */ r(
16335
16335
  Wn,
16336
16336
  {
16337
- onClick: async (ue) => {
16338
- ue.stopPropagation();
16337
+ onClick: async (ie) => {
16338
+ ie.stopPropagation();
16339
16339
  try {
16340
16340
  $ && await $();
16341
- } catch (ke) {
16342
- const Re = ke.message || "Failed to leave workspace. Please try again.";
16341
+ } catch (ve) {
16342
+ const Re = ve.message || "Failed to leave workspace. Please try again.";
16343
16343
  B(
16344
16344
  Re,
16345
16345
  "error"
@@ -16370,7 +16370,7 @@ const nl = Ar({
16370
16370
  {
16371
16371
  as: "button",
16372
16372
  onClick: () => {
16373
- w(j.id), m.open();
16373
+ w(Y.id), m.open();
16374
16374
  },
16375
16375
  disabled: n,
16376
16376
  children: /* @__PURE__ */ i(xr, { children: [
@@ -16390,9 +16390,9 @@ const nl = Ar({
16390
16390
  )
16391
16391
  ] }),
16392
16392
  /* @__PURE__ */ r(ft, {})
16393
- ] }, j.id);
16393
+ ] }, Y.id);
16394
16394
  }) }),
16395
- ie ? f && /* @__PURE__ */ r(
16395
+ ne ? f && /* @__PURE__ */ r(
16396
16396
  ns,
16397
16397
  {
16398
16398
  onClick: () => {
@@ -16404,7 +16404,7 @@ const nl = Ar({
16404
16404
  /* @__PURE__ */ r(wr, { children: /* @__PURE__ */ r(kr, { children: "Create workspace" }) })
16405
16405
  ] })
16406
16406
  }
16407
- ) : he && /* @__PURE__ */ r(
16407
+ ) : pe && /* @__PURE__ */ r(
16408
16408
  ns,
16409
16409
  {
16410
16410
  onClick: () => {
@@ -16422,7 +16422,7 @@ const nl = Ar({
16422
16422
  ) }),
16423
16423
  document.body
16424
16424
  ),
16425
- U && he && /* @__PURE__ */ r(
16425
+ U && pe && /* @__PURE__ */ r(
16426
16426
  Qg,
16427
16427
  {
16428
16428
  isOpen: d.isOpen,
@@ -17168,10 +17168,10 @@ var K0 = function() {
17168
17168
  ));
17169
17169
  const U = window.devicePixelRatio || 1;
17170
17170
  R.height = R.width = s * U;
17171
- const ie = s / $ * U;
17172
- L.scale(ie, ie), L.fillStyle = g, L.fillRect(0, 0, $, $), L.fillStyle = c, K0 ? L.fill(new Path2D(kl(F, O))) : k.forEach(function(he, ne) {
17173
- he.forEach(function(ee, V) {
17174
- ee && L.fillRect(V + O, ne + O, 1, 1);
17171
+ const ne = s / $ * U;
17172
+ L.scale(ne, ne), L.fillStyle = g, L.fillRect(0, 0, $, $), L.fillStyle = c, K0 ? L.fill(new Path2D(kl(F, O))) : k.forEach(function(pe, se) {
17173
+ pe.forEach(function(ee, V) {
17174
+ ee && L.fillRect(V + O, se + O, 1, 1);
17175
17175
  });
17176
17176
  }), T && (L.globalAlpha = T.opacity), B && L.drawImage(
17177
17177
  A,
@@ -17394,7 +17394,7 @@ const X0 = u.div`
17394
17394
  onClick: (b) => b.stopPropagation(),
17395
17395
  children: m === "email" ? /* @__PURE__ */ i(te, { children: [
17396
17396
  /* @__PURE__ */ r(ds, { children: "Add email address" }),
17397
- /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ i(J0, { children: [
17397
+ /* @__PURE__ */ r(be, { children: /* @__PURE__ */ i(J0, { children: [
17398
17398
  /* @__PURE__ */ r(e1, { children: /* @__PURE__ */ r(Kt, { size: 16 }) }),
17399
17399
  /* @__PURE__ */ r(
17400
17400
  me,
@@ -17517,8 +17517,8 @@ const X0 = u.div`
17517
17517
  if (I) {
17518
17518
  const M = I.getBoundingClientRect(), R = 380, L = 300, F = 8;
17519
17519
  let A = 0, B = 0;
17520
- const U = window.innerHeight - M.bottom, ie = M.top;
17521
- U >= L + F ? (A = M.bottom + F, B = M.right - R, B < F && (B = M.left, B + R > window.innerWidth - F && (B = (window.innerWidth - R) / 2))) : ie >= L + F ? (A = M.top - L - F, B = M.right - R, B < F && (B = M.left, B + R > window.innerWidth - F && (B = (window.innerWidth - R) / 2))) : (A = M.bottom + F, B = M.right - R, B < F && (B = M.left)), d({ top: A, left: B });
17520
+ const U = window.innerHeight - M.bottom, ne = M.top;
17521
+ U >= L + F ? (A = M.bottom + F, B = M.right - R, B < F && (B = M.left, B + R > window.innerWidth - F && (B = (window.innerWidth - R) / 2))) : ne >= L + F ? (A = M.top - L - F, B = M.right - R, B < F && (B = M.left, B + R > window.innerWidth - F && (B = (window.innerWidth - R) / 2))) : (A = M.bottom + F, B = M.right - R, B < F && (B = M.left)), d({ top: A, left: B });
17522
17522
  }
17523
17523
  }, 10), $ = (I) => {
17524
17524
  p.current && !p.current.contains(I.target) && e();
@@ -17570,7 +17570,7 @@ const X0 = u.div`
17570
17570
  onClick: (k) => k.stopPropagation(),
17571
17571
  children: m === "phone" ? /* @__PURE__ */ i(te, { children: [
17572
17572
  /* @__PURE__ */ r(hs, { children: "Add phone number" }),
17573
- /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r(
17573
+ /* @__PURE__ */ r(be, { children: /* @__PURE__ */ r(
17574
17574
  rn,
17575
17575
  {
17576
17576
  value: y,
@@ -17602,7 +17602,7 @@ const X0 = u.div`
17602
17602
  ] })
17603
17603
  ] }) : /* @__PURE__ */ i(te, { children: [
17604
17604
  /* @__PURE__ */ r(hs, { children: "Verify phone number" }),
17605
- /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r(
17605
+ /* @__PURE__ */ r(be, { children: /* @__PURE__ */ r(
17606
17606
  lt,
17607
17607
  {
17608
17608
  onComplete: (k) => E(k),
@@ -18004,8 +18004,8 @@ const X0 = u.div`
18004
18004
  if (M) {
18005
18005
  const R = M.getBoundingClientRect(), L = 380, F = 350, A = 8;
18006
18006
  let B = 0, U = 0;
18007
- const ie = window.innerHeight - R.bottom, he = R.top;
18008
- ie >= F + A ? (B = R.bottom + A, U = R.right - L, U < A && (U = R.left, U + L > window.innerWidth - A && (U = (window.innerWidth - L) / 2))) : he >= F + A ? (B = R.top - F - A, U = R.right - L, U < A && (U = R.left, U + L > window.innerWidth - A && (U = (window.innerWidth - L) / 2))) : (B = R.bottom + A, U = R.right - L, U < A && (U = R.left)), c({ top: B, left: U });
18007
+ const ne = window.innerHeight - R.bottom, pe = R.top;
18008
+ ne >= F + A ? (B = R.bottom + A, U = R.right - L, U < A && (U = R.left, U + L > window.innerWidth - A && (U = (window.innerWidth - L) / 2))) : pe >= F + A ? (B = R.top - F - A, U = R.right - L, U < A && (U = R.left, U + L > window.innerWidth - A && (U = (window.innerWidth - L) / 2))) : (B = R.bottom + A, U = R.right - L, U < A && (U = R.left)), c({ top: B, left: U });
18009
18009
  }
18010
18010
  }, 10), T = (M) => {
18011
18011
  a.current && !a.current.contains(M.target) && e();
@@ -18056,7 +18056,7 @@ const X0 = u.div`
18056
18056
  }
18057
18057
  ),
18058
18058
  !n && /* @__PURE__ */ i(Gn, { children: [
18059
- /* @__PURE__ */ r(ve, { children: "Current Password" }),
18059
+ /* @__PURE__ */ r(ye, { children: "Current Password" }),
18060
18060
  /* @__PURE__ */ i(Hn, { children: [
18061
18061
  /* @__PURE__ */ r(
18062
18062
  me,
@@ -18081,7 +18081,7 @@ const X0 = u.div`
18081
18081
  f.currentPassword && /* @__PURE__ */ r(zo, { children: f.currentPassword })
18082
18082
  ] }),
18083
18083
  /* @__PURE__ */ i(Gn, { children: [
18084
- /* @__PURE__ */ r(ve, { children: n ? "Password" : "New Password" }),
18084
+ /* @__PURE__ */ r(ye, { children: n ? "Password" : "New Password" }),
18085
18085
  /* @__PURE__ */ i(Hn, { children: [
18086
18086
  /* @__PURE__ */ r(
18087
18087
  me,
@@ -18106,7 +18106,7 @@ const X0 = u.div`
18106
18106
  f.newPassword && /* @__PURE__ */ r(zo, { children: f.newPassword })
18107
18107
  ] }),
18108
18108
  /* @__PURE__ */ i(Gn, { children: [
18109
- /* @__PURE__ */ r(ve, { children: "Confirm New Password" }),
18109
+ /* @__PURE__ */ r(ye, { children: "Confirm New Password" }),
18110
18110
  /* @__PURE__ */ i(Hn, { children: [
18111
18111
  /* @__PURE__ */ r(
18112
18112
  me,
@@ -18239,8 +18239,8 @@ const X0 = u.div`
18239
18239
  "Remove Password"
18240
18240
  ] }),
18241
18241
  /* @__PURE__ */ r(d1, { children: /* @__PURE__ */ r(u1, { children: "You're about to remove password authentication from your account. Make sure you have another way to sign in (email, phone, social login, or passkey) before continuing." }) }),
18242
- /* @__PURE__ */ i(ye, { children: [
18243
- /* @__PURE__ */ r(ve, { htmlFor: "current-password", children: "Confirm your current password" }),
18242
+ /* @__PURE__ */ i(be, { children: [
18243
+ /* @__PURE__ */ r(ye, { htmlFor: "current-password", children: "Confirm your current password" }),
18244
18244
  /* @__PURE__ */ r(
18245
18245
  me,
18246
18246
  {
@@ -20094,7 +20094,7 @@ const X0 = u.div`
20094
20094
  }
20095
20095
  ) }) });
20096
20096
  }, N1 = () => {
20097
- var ce, $e, Ce;
20097
+ var le, $e, Ce;
20098
20098
  const { deployment: e } = Se(), {
20099
20099
  user: t,
20100
20100
  updatePassword: o,
@@ -20113,32 +20113,32 @@ const X0 = u.div`
20113
20113
  } catch (Oe) {
20114
20114
  d(Oe.message || "Failed to update second factor policy", "error");
20115
20115
  }
20116
- }, [S, z] = P(!1), [x, E] = P(!1), [C, _] = P(!1), [b, f] = P(!1), O = re(null), k = re(null), $ = re(null), T = re(null), [I, M] = P("table"), [R, L] = P(""), [F, A] = P(""), [B, U] = P(""), [ie, he] = P([
20116
+ }, [S, z] = P(!1), [x, E] = P(!1), [C, _] = P(!1), [b, f] = P(!1), O = re(null), k = re(null), $ = re(null), T = re(null), [I, M] = P("table"), [R, L] = P(""), [F, A] = P(""), [B, U] = P(""), [ne, pe] = P([
20117
20117
  "",
20118
20118
  ""
20119
- ]), [ne, ee] = P([]), [V, Q] = P(!1), [J, le] = P(!1), [se] = P(!1), [pe, K] = P(!1), de = (ce = e == null ? void 0 : e.auth_settings) == null ? void 0 : ce.auth_factors_enabled, Z = (Ce = ($e = e == null ? void 0 : e.auth_settings) == null ? void 0 : $e.password) == null ? void 0 : Ce.enabled;
20120
- if (!(de != null && de.authenticator) && !(de != null && de.backup_code) && !Z)
20119
+ ]), [se, ee] = P([]), [V, Q] = P(!1), [J, de] = P(!1), [ce] = P(!1), [he, K] = P(!1), ue = (le = e == null ? void 0 : e.auth_settings) == null ? void 0 : le.auth_factors_enabled, Z = (Ce = ($e = e == null ? void 0 : e.auth_settings) == null ? void 0 : $e.password) == null ? void 0 : Ce.enabled;
20120
+ if (!(ue != null && ue.authenticator) && !(ue != null && ue.backup_code) && !Z)
20121
20121
  return null;
20122
- const j = async (ae, Oe) => {
20122
+ const Y = async (ae, Oe) => {
20123
20123
  await o(ae, Oe), await t.refetch(), d("Password updated successfully", "info");
20124
20124
  }, N = async (ae) => {
20125
20125
  await n(ae), await t.refetch(), d("Password removed successfully", "info");
20126
- }, G = () => {
20126
+ }, j = () => {
20127
20127
  var Le, Tt, Rt, ln, Ni, Fi;
20128
20128
  if (!t) return !1;
20129
20129
  const ae = (Le = t.user_email_addresses) == null ? void 0 : Le.some(
20130
20130
  (Ot) => Ot.verified
20131
20131
  ), Oe = (Tt = t.user_phone_numbers) == null ? void 0 : Tt.some(
20132
20132
  (Ot) => Ot.verified
20133
- ), be = t.social_connections && t.social_connections.length > 0, Pe = e == null ? void 0 : e.auth_settings;
20134
- return (Pe == null ? void 0 : Pe.first_factor) === "email_otp" && ae || ((Rt = Pe == null ? void 0 : Pe.magic_link) == null ? void 0 : Rt.enabled) && ae || ((ln = Pe == null ? void 0 : Pe.passkey) == null ? void 0 : ln.enabled) || ((Ni = Pe == null ? void 0 : Pe.auth_factors_enabled) == null ? void 0 : Ni.phone_otp) && Oe || be && ((Fi = e == null ? void 0 : e.social_connections) == null ? void 0 : Fi.some((Ot) => Ot.enabled));
20133
+ ), xe = t.social_connections && t.social_connections.length > 0, Pe = e == null ? void 0 : e.auth_settings;
20134
+ return (Pe == null ? void 0 : Pe.first_factor) === "email_otp" && ae || ((Rt = Pe == null ? void 0 : Pe.magic_link) == null ? void 0 : Rt.enabled) && ae || ((ln = Pe == null ? void 0 : Pe.passkey) == null ? void 0 : ln.enabled) || ((Ni = Pe == null ? void 0 : Pe.auth_factors_enabled) == null ? void 0 : Ni.phone_otp) && Oe || xe && ((Fi = e == null ? void 0 : e.social_connections) == null ? void 0 : Fi.some((Ot) => Ot.enabled));
20135
20135
  }, D = async () => {
20136
- if (ie.some((ae) => ae.length !== 6)) {
20136
+ if (ne.some((ae) => ae.length !== 6)) {
20137
20137
  d("Please enter both 6-digit verification codes", "error");
20138
20138
  return;
20139
20139
  }
20140
20140
  try {
20141
- if (le(!0), await s(B, ie), await t.refetch(), de != null && de.backup_code) {
20141
+ if (de(!0), await s(B, ne), await t.refetch(), ue != null && ue.backup_code) {
20142
20142
  const ae = await g();
20143
20143
  ee(ae), await t.refetch(), M("backup");
20144
20144
  } else
@@ -20146,11 +20146,11 @@ const X0 = u.div`
20146
20146
  } catch (ae) {
20147
20147
  d(ae.message || "Invalid verification codes", "error");
20148
20148
  } finally {
20149
- le(!1);
20149
+ de(!1);
20150
20150
  }
20151
- }, q = () => {
20152
- M("table"), L(""), A(""), U(""), he(["", ""]), ee([]), d("Two-factor authentication setup completed successfully!", "info");
20153
- }, ue = async () => {
20151
+ }, G = () => {
20152
+ M("table"), L(""), A(""), U(""), pe(["", ""]), ee([]), d("Two-factor authentication setup completed successfully!", "info");
20153
+ }, ie = async () => {
20154
20154
  var ae;
20155
20155
  if ((ae = t == null ? void 0 : t.user_authenticator) != null && ae.id)
20156
20156
  try {
@@ -20160,7 +20160,7 @@ const X0 = u.div`
20160
20160
  } finally {
20161
20161
  K(!1);
20162
20162
  }
20163
- }, ke = async () => {
20163
+ }, ve = async () => {
20164
20164
  if (!V)
20165
20165
  try {
20166
20166
  Q(!0);
@@ -20172,7 +20172,7 @@ const X0 = u.div`
20172
20172
  Q(!1);
20173
20173
  }
20174
20174
  }, Re = () => {
20175
- const ae = ne.join(`
20175
+ const ae = se.join(`
20176
20176
  `);
20177
20177
  navigator.clipboard.writeText(ae).then(() => {
20178
20178
  d("Backup codes copied to clipboard", "info");
@@ -20180,29 +20180,29 @@ const X0 = u.div`
20180
20180
  d("Failed to copy backup codes", "error");
20181
20181
  });
20182
20182
  }, We = () => {
20183
- const ae = ne.join(`
20184
- `), Oe = new Blob([ae], { type: "text/plain" }), be = URL.createObjectURL(Oe), Pe = document.createElement("a");
20185
- Pe.href = be, Pe.download = "wacht-backup-codes.txt", Pe.click(), URL.revokeObjectURL(be), d("Backup codes downloaded", "info");
20186
- }, Y = [];
20187
- return Z && Y.push({
20183
+ const ae = se.join(`
20184
+ `), Oe = new Blob([ae], { type: "text/plain" }), xe = URL.createObjectURL(Oe), Pe = document.createElement("a");
20185
+ Pe.href = xe, Pe.download = "wacht-backup-codes.txt", Pe.click(), URL.revokeObjectURL(xe), d("Backup codes downloaded", "info");
20186
+ }, q = [];
20187
+ return Z && q.push({
20188
20188
  id: "password",
20189
20189
  name: "Password",
20190
20190
  description: "Secure your account with a strong password",
20191
20191
  status: t != null && t.has_password ? "Enabled" : "Disabled",
20192
20192
  actions: t != null && t.has_password ? ["change"] : ["setup"]
20193
- }), de != null && de.authenticator && Y.push({
20193
+ }), ue != null && ue.authenticator && q.push({
20194
20194
  id: "authenticator",
20195
20195
  name: "Two-Factor Authentication",
20196
20196
  description: "Use an authenticator app for extra security",
20197
20197
  status: t != null && t.user_authenticator ? "Enabled" : "Disabled",
20198
20198
  actions: t != null && t.user_authenticator ? ["remove"] : ["setup"]
20199
- }), t != null && t.user_authenticator && Y.push({
20199
+ }), t != null && t.user_authenticator && q.push({
20200
20200
  id: "backup_codes",
20201
20201
  name: "Backup Codes",
20202
20202
  description: "Recovery codes if you lose your authenticator",
20203
20203
  status: t != null && t.backup_codes_generated ? "Generated" : "Not Generated",
20204
20204
  actions: ["generate"]
20205
- }), (t != null && t.user_authenticator || t != null && t.backup_codes_generated || t.second_factor_policy === "enforced" || t.primary_phone_number_id) && Y.push({
20205
+ }), (t != null && t.user_authenticator || t != null && t.backup_codes_generated || t.second_factor_policy === "enforced" || t.primary_phone_number_id) && q.push({
20206
20206
  id: "second_factor_policy",
20207
20207
  name: "Second Factor Policy",
20208
20208
  description: "Require a second factor for all sign-ins",
@@ -20277,7 +20277,7 @@ const X0 = u.div`
20277
20277
  justifyContent: "center",
20278
20278
  marginBottom: "24px"
20279
20279
  },
20280
- children: se ? /* @__PURE__ */ r(
20280
+ children: ce ? /* @__PURE__ */ r(
20281
20281
  "div",
20282
20282
  {
20283
20283
  style: {
@@ -20435,10 +20435,10 @@ const X0 = u.div`
20435
20435
  {
20436
20436
  type: "text",
20437
20437
  placeholder: "000000",
20438
- value: ie[0],
20438
+ value: ne[0],
20439
20439
  onChange: (ae) => {
20440
20440
  const Oe = ae.target.value.replace(/[^0-9]/g, "").substring(0, 6);
20441
- he([Oe, ie[1]]);
20441
+ pe([Oe, ne[1]]);
20442
20442
  },
20443
20443
  maxLength: 6,
20444
20444
  style: {
@@ -20453,10 +20453,10 @@ const X0 = u.div`
20453
20453
  {
20454
20454
  type: "text",
20455
20455
  placeholder: "000000",
20456
- value: ie[1],
20456
+ value: ne[1],
20457
20457
  onChange: (ae) => {
20458
20458
  const Oe = ae.target.value.replace(/[^0-9]/g, "").substring(0, 6);
20459
- he([ie[0], Oe]);
20459
+ pe([ne[0], Oe]);
20460
20460
  },
20461
20461
  maxLength: 6,
20462
20462
  style: {
@@ -20494,7 +20494,7 @@ const X0 = u.div`
20494
20494
  X,
20495
20495
  {
20496
20496
  onClick: D,
20497
- disabled: J || ie.some((ae) => ae.length !== 6),
20497
+ disabled: J || ne.some((ae) => ae.length !== 6),
20498
20498
  style: {
20499
20499
  padding: "8px 16px",
20500
20500
  background: "var(--color-primary)",
@@ -20558,7 +20558,7 @@ const X0 = u.div`
20558
20558
  maxWidth: "300px",
20559
20559
  margin: "0 auto 24px auto"
20560
20560
  },
20561
- children: ne.map((ae, Oe) => /* @__PURE__ */ r(
20561
+ children: se.map((ae, Oe) => /* @__PURE__ */ r(
20562
20562
  "div",
20563
20563
  {
20564
20564
  style: {
@@ -20623,7 +20623,7 @@ const X0 = u.div`
20623
20623
  /* @__PURE__ */ r(
20624
20624
  X,
20625
20625
  {
20626
- onClick: q,
20626
+ onClick: G,
20627
20627
  style: {
20628
20628
  padding: "10px 20px",
20629
20629
  background: "var(--color-primary)",
@@ -20672,7 +20672,7 @@ const X0 = u.div`
20672
20672
  /* @__PURE__ */ r(
20673
20673
  X,
20674
20674
  {
20675
- onClick: q,
20675
+ onClick: G,
20676
20676
  style: {
20677
20677
  padding: "10px 20px",
20678
20678
  background: "var(--color-primary)",
@@ -20698,7 +20698,7 @@ const X0 = u.div`
20698
20698
  children: "Security Settings"
20699
20699
  }
20700
20700
  ) }) }),
20701
- Y.length ? /* @__PURE__ */ r("div", { children: Y.map((ae, Oe) => /* @__PURE__ */ i("div", { children: [
20701
+ q.length ? /* @__PURE__ */ r("div", { children: q.map((ae, Oe) => /* @__PURE__ */ i("div", { children: [
20702
20702
  /* @__PURE__ */ i(
20703
20703
  "div",
20704
20704
  {
@@ -20775,11 +20775,11 @@ const X0 = u.div`
20775
20775
  {
20776
20776
  triggerRef: k,
20777
20777
  onClose: () => E(!1),
20778
- onChangePassword: j
20778
+ onChangePassword: Y
20779
20779
  }
20780
20780
  )
20781
20781
  ] }),
20782
- G() && /* @__PURE__ */ i("div", { style: { position: "relative" }, children: [
20782
+ j() && /* @__PURE__ */ i("div", { style: { position: "relative" }, children: [
20783
20783
  /* @__PURE__ */ r(
20784
20784
  X,
20785
20785
  {
@@ -20829,7 +20829,7 @@ const X0 = u.div`
20829
20829
  {
20830
20830
  triggerRef: k,
20831
20831
  onClose: () => E(!1),
20832
- onChangePassword: j,
20832
+ onChangePassword: Y,
20833
20833
  isSetup: !0
20834
20834
  }
20835
20835
  )
@@ -20840,7 +20840,7 @@ const X0 = u.div`
20840
20840
  {
20841
20841
  ref: O,
20842
20842
  onClick: () => z(!0),
20843
- disabled: se,
20843
+ disabled: ce,
20844
20844
  style: {
20845
20845
  padding: "6px 12px",
20846
20846
  fontSize: "12px",
@@ -20850,7 +20850,7 @@ const X0 = u.div`
20850
20850
  borderRadius: "var(--radius-md)",
20851
20851
  fontWeight: "400"
20852
20852
  },
20853
- children: se ? "Setting up..." : "Setup"
20853
+ children: ce ? "Setting up..." : "Setup"
20854
20854
  }
20855
20855
  ),
20856
20856
  S && /* @__PURE__ */ r(
@@ -20859,13 +20859,13 @@ const X0 = u.div`
20859
20859
  triggerRef: O,
20860
20860
  onClose: () => z(!1),
20861
20861
  onSetupTOTP: async () => {
20862
- const be = await a();
20863
- return U(be.id), be;
20862
+ const xe = await a();
20863
+ return U(xe.id), xe;
20864
20864
  },
20865
- onVerifyTOTP: async (be) => {
20865
+ onVerifyTOTP: async (xe) => {
20866
20866
  await s(
20867
20867
  B,
20868
- be
20868
+ xe
20869
20869
  ), await t.refetch(), d(
20870
20870
  "Two-factor authentication enabled successfully!",
20871
20871
  "info"
@@ -20879,24 +20879,24 @@ const X0 = u.div`
20879
20879
  X,
20880
20880
  {
20881
20881
  onClick: () => y(!0),
20882
- disabled: pe,
20882
+ disabled: he,
20883
20883
  style: {
20884
20884
  padding: "6px 16px",
20885
20885
  fontSize: "13px",
20886
20886
  background: "var(--color-error)",
20887
20887
  border: "1px solid var(--color-error)",
20888
20888
  color: "white",
20889
- cursor: pe ? "not-allowed" : "pointer",
20890
- opacity: pe ? 0.6 : 1
20889
+ cursor: he ? "not-allowed" : "pointer",
20890
+ opacity: he ? 0.6 : 1
20891
20891
  },
20892
- children: pe ? "Removing..." : "Remove"
20892
+ children: he ? "Removing..." : "Remove"
20893
20893
  }
20894
20894
  ),
20895
20895
  v && /* @__PURE__ */ r(
20896
20896
  sn,
20897
20897
  {
20898
20898
  title: "Remove MFA and reset policy to default?",
20899
- onConfirm: ue,
20899
+ onConfirm: ie,
20900
20900
  onCancel: () => y(!1)
20901
20901
  }
20902
20902
  )
@@ -20906,7 +20906,7 @@ const X0 = u.div`
20906
20906
  X,
20907
20907
  {
20908
20908
  ref: T,
20909
- onClick: ke,
20909
+ onClick: ve,
20910
20910
  disabled: V,
20911
20911
  style: {
20912
20912
  padding: "6px 12px",
@@ -20924,7 +20924,7 @@ const X0 = u.div`
20924
20924
  b1,
20925
20925
  {
20926
20926
  triggerRef: T,
20927
- codes: ne,
20927
+ codes: se,
20928
20928
  onClose: () => f(!1),
20929
20929
  onCopy: Re,
20930
20930
  onDownload: We
@@ -20935,9 +20935,9 @@ const X0 = u.div`
20935
20935
  vi,
20936
20936
  {
20937
20937
  checked: l === "enforced",
20938
- onChange: (be) => {
20938
+ onChange: (xe) => {
20939
20939
  w(
20940
- be ? "enforced" : "none"
20940
+ xe ? "enforced" : "none"
20941
20941
  );
20942
20942
  }
20943
20943
  }
@@ -20949,7 +20949,7 @@ const X0 = u.div`
20949
20949
  ]
20950
20950
  }
20951
20951
  ),
20952
- Oe < Y.length - 1 && /* @__PURE__ */ r(
20952
+ Oe < q.length - 1 && /* @__PURE__ */ r(
20953
20953
  "div",
20954
20954
  {
20955
20955
  style: {
@@ -20996,14 +20996,14 @@ const X0 = u.div`
20996
20996
  }, M = () => {
20997
20997
  f();
20998
20998
  }, R = (U) => {
20999
- var ie;
21000
- if ((ie = U.target.files) != null && ie[0]) {
21001
- const he = U.target.files[0];
21002
- _(URL.createObjectURL(he)), setTimeout(async () => {
20999
+ var ne;
21000
+ if ((ne = U.target.files) != null && ne[0]) {
21001
+ const pe = U.target.files[0];
21002
+ _(URL.createObjectURL(pe)), setTimeout(async () => {
21003
21003
  try {
21004
- await n(he), t.refetch(), s("Profile picture updated successfully", "info");
21005
- } catch (ne) {
21006
- s(ne.message || "Failed to update profile picture", "error"), _((t == null ? void 0 : t.profile_picture_url) || null);
21004
+ await n(pe), t.refetch(), s("Profile picture updated successfully", "info");
21005
+ } catch (se) {
21006
+ s(se.message || "Failed to update profile picture", "error"), _((t == null ? void 0 : t.profile_picture_url) || null);
21007
21007
  }
21008
21008
  }, 100);
21009
21009
  }
@@ -21245,8 +21245,8 @@ const X0 = u.div`
21245
21245
  },
21246
21246
  children: [
21247
21247
  /* @__PURE__ */ i("div", { style: { display: "flex", gap: "var(--space-md)" }, children: [
21248
- /* @__PURE__ */ i(ye, { style: { flex: 1 }, children: [
21249
- /* @__PURE__ */ r(ve, { htmlFor: "firstName", children: "First Name" }),
21248
+ /* @__PURE__ */ i(be, { style: { flex: 1 }, children: [
21249
+ /* @__PURE__ */ r(ye, { htmlFor: "firstName", children: "First Name" }),
21250
21250
  /* @__PURE__ */ r(
21251
21251
  me,
21252
21252
  {
@@ -21260,8 +21260,8 @@ const X0 = u.div`
21260
21260
  }
21261
21261
  )
21262
21262
  ] }),
21263
- /* @__PURE__ */ i(ye, { style: { flex: 1 }, children: [
21264
- /* @__PURE__ */ r(ve, { htmlFor: "lastName", children: "Last Name" }),
21263
+ /* @__PURE__ */ i(be, { style: { flex: 1 }, children: [
21264
+ /* @__PURE__ */ r(ye, { htmlFor: "lastName", children: "Last Name" }),
21265
21265
  /* @__PURE__ */ r(
21266
21266
  me,
21267
21267
  {
@@ -21276,8 +21276,8 @@ const X0 = u.div`
21276
21276
  )
21277
21277
  ] })
21278
21278
  ] }),
21279
- ((B = (A = e == null ? void 0 : e.auth_settings) == null ? void 0 : A.username) == null ? void 0 : B.enabled) && /* @__PURE__ */ i(ye, { children: [
21280
- /* @__PURE__ */ r(ve, { htmlFor: "username", children: "Username" }),
21279
+ ((B = (A = e == null ? void 0 : e.auth_settings) == null ? void 0 : A.username) == null ? void 0 : B.enabled) && /* @__PURE__ */ i(be, { children: [
21280
+ /* @__PURE__ */ r(ye, { htmlFor: "username", children: "Username" }),
21281
21281
  /* @__PURE__ */ r(
21282
21282
  me,
21283
21283
  {
@@ -21396,8 +21396,8 @@ const X0 = u.div`
21396
21396
  }
21397
21397
  ),
21398
21398
  y && /* @__PURE__ */ i("div", { style: { maxWidth: "400px" }, children: [
21399
- /* @__PURE__ */ i(ye, { children: [
21400
- /* @__PURE__ */ r(ve, { htmlFor: "confirm_username", children: "Confirm by typing your username" }),
21399
+ /* @__PURE__ */ i(be, { children: [
21400
+ /* @__PURE__ */ r(ye, { htmlFor: "confirm_username", children: "Confirm by typing your username" }),
21401
21401
  /* @__PURE__ */ r(
21402
21402
  me,
21403
21403
  {
@@ -23006,16 +23006,16 @@ const wv = u.div`
23006
23006
  }
23007
23007
  )
23008
23008
  ] }) }) : e && e.length > 0 ? e.map((M) => {
23009
- var ne, ee, V;
23009
+ var se, ee, V;
23010
23010
  const R = M.organization, L = n == null ? void 0 : n.filter(
23011
23011
  (Q) => Q.organization.id === R.id
23012
- ), F = (L == null ? void 0 : L.length) || 0, A = R.member_count, B = M.roles[0].name, U = M.roles.length - 1, ie = U > 0 ? `${B.charAt(0).toUpperCase() + B.slice(1)} +${U}` : B.charAt(0).toUpperCase() + B.slice(1), he = ((ne = M.eligibility_restriction) == null ? void 0 : ne.type) !== "none" && ((ee = M.eligibility_restriction) == null ? void 0 : ee.type) !== void 0;
23012
+ ), F = (L == null ? void 0 : L.length) || 0, A = R.member_count, B = M.roles[0].name, U = M.roles.length - 1, ne = U > 0 ? `${B.charAt(0).toUpperCase() + B.slice(1)} +${U}` : B.charAt(0).toUpperCase() + B.slice(1), pe = ((se = M.eligibility_restriction) == null ? void 0 : se.type) !== "none" && ((ee = M.eligibility_restriction) == null ? void 0 : ee.type) !== void 0;
23013
23013
  return /* @__PURE__ */ i(
23014
23014
  Ds,
23015
23015
  {
23016
- onClick: () => !he && z(R),
23017
- disabled: g === R.id || he,
23018
- style: { opacity: he ? 0.7 : 1 },
23016
+ onClick: () => !pe && z(R),
23017
+ disabled: g === R.id || pe,
23018
+ style: { opacity: pe ? 0.7 : 1 },
23019
23019
  children: [
23020
23020
  /* @__PURE__ */ r(Ns, { children: R.image_url ? /* @__PURE__ */ r(Fs, { src: R.image_url, alt: R.name }) : S(R.name) }),
23021
23021
  /* @__PURE__ */ i(Bs, { children: [
@@ -23027,7 +23027,7 @@ const wv = u.div`
23027
23027
  F !== 1 ? "s" : ""
23028
23028
  ] }) : /* @__PURE__ */ i(te, { children: [
23029
23029
  /* @__PURE__ */ r(Gp, {}),
23030
- ie,
23030
+ ne,
23031
23031
  " • ",
23032
23032
  A,
23033
23033
  " member",
@@ -23035,7 +23035,7 @@ const wv = u.div`
23035
23035
  ] }) })
23036
23036
  ] }),
23037
23037
  /* @__PURE__ */ r(Ws, { children: /* @__PURE__ */ r(mi, {}) }),
23038
- he && /* @__PURE__ */ i(Vs, { children: [
23038
+ pe && /* @__PURE__ */ i(Vs, { children: [
23039
23039
  /* @__PURE__ */ r(gr, { size: 14 }),
23040
23040
  (V = M.eligibility_restriction) == null ? void 0 : V.message
23041
23041
  ] })
@@ -23978,14 +23978,14 @@ function R2({
23978
23978
  messages: A,
23979
23979
  pendingMessage: B,
23980
23980
  pendingImages: U,
23981
- connectionState: ie,
23982
- isConnected: he,
23983
- isExecuting: ne,
23981
+ connectionState: ne,
23982
+ isConnected: pe,
23983
+ isExecuting: se,
23984
23984
  executionStatus: ee,
23985
23985
  isWaitingForInput: V,
23986
23986
  sendMessage: Q,
23987
23987
  submitUserInput: J,
23988
- cancelExecution: le
23988
+ cancelExecution: de
23989
23989
  } = Qd({
23990
23990
  contextId: g,
23991
23991
  agentName: o,
@@ -23994,31 +23994,31 @@ function R2({
23994
23994
  autoConnect: c
23995
23995
  });
23996
23996
  oe(() => {
23997
- var Y;
23998
- (Y = L.current) == null || Y.scrollIntoView({ behavior: "smooth" });
23997
+ var q;
23998
+ (q = L.current) == null || q.scrollIntoView({ behavior: "smooth" });
23999
23999
  }, [A]), oe(() => {
24000
- var Y;
24000
+ var q;
24001
24001
  if (V) {
24002
- const ce = A.slice().reverse().find(($e) => {
24002
+ const le = A.slice().reverse().find(($e) => {
24003
24003
  var Ce;
24004
24004
  return ((Ce = $e.metadata) == null ? void 0 : Ce.type) === "user_input_request";
24005
24005
  });
24006
- (Y = ce == null ? void 0 : ce.metadata) != null && Y.userInputRequest && S(ce.metadata.userInputRequest);
24006
+ (q = le == null ? void 0 : le.metadata) != null && q.userInputRequest && S(le.metadata.userInputRequest);
24007
24007
  } else
24008
24008
  S(null), x([]);
24009
24009
  }, [V, A]);
24010
- const se = (Y) => {
24011
- if (Y.preventDefault(), !!he)
24010
+ const ce = (q) => {
24011
+ if (q.preventDefault(), !!pe)
24012
24012
  if (V && w) {
24013
- let ce = l.trim();
24014
- w.input_type === "multiselect" && (ce = z.join(",")), ce && (J(ce), m(""), x([]));
24015
- } else !ne && l.trim() && (Q(
24013
+ let le = l.trim();
24014
+ w.input_type === "multiselect" && (le = z.join(",")), le && (J(le), m(""), x([]));
24015
+ } else !se && l.trim() && (Q(
24016
24016
  l,
24017
24017
  E.length > 0 ? E : void 0
24018
24018
  ), m(""), C([]));
24019
- }, pe = (Y) => {
24020
- const ce = Y.target.files;
24021
- ce && (Array.from(ce).forEach(($e) => {
24019
+ }, he = (q) => {
24020
+ const le = q.target.files;
24021
+ le && (Array.from(le).forEach(($e) => {
24022
24022
  if ($e.type.startsWith("image/")) {
24023
24023
  const Ce = new FileReader();
24024
24024
  Ce.onload = (ae) => {
@@ -24036,37 +24036,37 @@ function R2({
24036
24036
  }, Ce.readAsDataURL($e);
24037
24037
  }
24038
24038
  }), F.current && (F.current.value = ""));
24039
- }, K = (Y) => {
24040
- C((ce) => ce.filter(($e, Ce) => Ce !== Y));
24041
- }, de = (Y) => {
24042
- b(Y), O(1), I({ x: 0, y: 0 });
24039
+ }, K = (q) => {
24040
+ C((le) => le.filter(($e, Ce) => Ce !== q));
24041
+ }, ue = (q) => {
24042
+ b(q), O(1), I({ x: 0, y: 0 });
24043
24043
  }, Z = () => {
24044
24044
  b(null), O(1), I({ x: 0, y: 0 }), $(!1);
24045
- }, j = (Y) => {
24046
- const ce = document.createElement("a");
24047
- ce.href = Y, ce.download = `image-${Date.now()}.png`, document.body.appendChild(ce), ce.click(), document.body.removeChild(ce);
24048
- }, N = (Y) => {
24049
- O((ce) => {
24050
- const $e = ce + Y;
24045
+ }, Y = (q) => {
24046
+ const le = document.createElement("a");
24047
+ le.href = q, le.download = `image-${Date.now()}.png`, document.body.appendChild(le), le.click(), document.body.removeChild(le);
24048
+ }, N = (q) => {
24049
+ O((le) => {
24050
+ const $e = le + q;
24051
24051
  return Math.min(Math.max($e, 0.5), 3);
24052
24052
  });
24053
- }, G = (Y) => {
24054
- Y.preventDefault(), Y.stopPropagation();
24055
- const ce = Y.deltaY > 0 ? -0.1 : 0.1;
24056
- N(ce);
24057
- }, D = (Y) => {
24053
+ }, j = (q) => {
24054
+ q.preventDefault(), q.stopPropagation();
24055
+ const le = q.deltaY > 0 ? -0.1 : 0.1;
24056
+ N(le);
24057
+ }, D = (q) => {
24058
24058
  f > 1 && ($(!0), R({
24059
- x: Y.clientX - T.x,
24060
- y: Y.clientY - T.y
24059
+ x: q.clientX - T.x,
24060
+ y: q.clientY - T.y
24061
24061
  }));
24062
- }, q = (Y) => {
24062
+ }, G = (q) => {
24063
24063
  k && f > 1 && I({
24064
- x: Y.clientX - M.x,
24065
- y: Y.clientY - M.y
24064
+ x: q.clientX - M.x,
24065
+ y: q.clientY - M.y
24066
24066
  });
24067
- }, ue = () => {
24067
+ }, ie = () => {
24068
24068
  $(!1);
24069
- }, ke = () => ie.status === Cr.CONNECTING ? "Connecting..." : ie.status === Cr.ERROR ? "Connection error" : ie.status === Cr.DISCONNECTED || !he ? "Disconnected" : V ? "Waiting for your input..." : ne ? "Working..." : "Ready", Re = () => {
24069
+ }, ve = () => ne.status === Cr.CONNECTING ? "Connecting..." : ne.status === Cr.ERROR ? "Connection error" : ne.status === Cr.DISCONNECTED || !pe ? "Disconnected" : V ? "Waiting for your input..." : se ? "Working..." : "Ready", Re = () => {
24070
24070
  if (!V || !w) return "Ask anything";
24071
24071
  switch (w.input_type) {
24072
24072
  case "select":
@@ -24095,8 +24095,8 @@ function R2({
24095
24095
  /* @__PURE__ */ i(o2, { children: [
24096
24096
  /* @__PURE__ */ r(i2, { children: o }),
24097
24097
  /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center" }, children: [
24098
- /* @__PURE__ */ r(n2, { $status: ke() }),
24099
- /* @__PURE__ */ r(a2, { $status: ke(), children: ke() })
24098
+ /* @__PURE__ */ r(n2, { $status: ve() }),
24099
+ /* @__PURE__ */ r(a2, { $status: ve(), children: ve() })
24100
24100
  ] })
24101
24101
  ] })
24102
24102
  ] })
@@ -24107,15 +24107,15 @@ function R2({
24107
24107
  /* @__PURE__ */ r($n, { size: 48, strokeWidth: 1.5 }),
24108
24108
  /* @__PURE__ */ r("p", { children: d })
24109
24109
  ] }) : /* @__PURE__ */ i(te, { children: [
24110
- A.map((Y, ce) => {
24110
+ A.map((q, le) => {
24111
24111
  var $e, Ce, ae, Oe;
24112
- if ((($e = Y.metadata) == null ? void 0 : $e.type) === "user_input_request" && Y.metadata.userInputRequest) {
24113
- const be = Y.metadata.userInputRequest, Pe = !be.input_type || be.input_type === "text" || be.input_type === "number", Fe = V && (w == null ? void 0 : w.input_type) === be.input_type;
24112
+ if ((($e = q.metadata) == null ? void 0 : $e.type) === "user_input_request" && q.metadata.userInputRequest) {
24113
+ const xe = q.metadata.userInputRequest, Pe = !xe.input_type || xe.input_type === "text" || xe.input_type === "number", Fe = V && (w == null ? void 0 : w.input_type) === xe.input_type;
24114
24114
  return /* @__PURE__ */ r(Yn, { $isUser: !1, children: /* @__PURE__ */ i(p2, { children: [
24115
- /* @__PURE__ */ r("div", { className: "question", children: be.question }),
24116
- be.context && be.context.trim() && /* @__PURE__ */ r("div", { className: "context", children: be.context }),
24115
+ /* @__PURE__ */ r("div", { className: "question", children: xe.question }),
24116
+ xe.context && xe.context.trim() && /* @__PURE__ */ r("div", { className: "context", children: xe.context }),
24117
24117
  !Pe && /* @__PURE__ */ i("div", { className: "controls", children: [
24118
- be.input_type === "select" && be.options && /* @__PURE__ */ i(
24118
+ xe.input_type === "select" && xe.options && /* @__PURE__ */ i(
24119
24119
  "select",
24120
24120
  {
24121
24121
  value: Fe ? l : "",
@@ -24123,11 +24123,11 @@ function R2({
24123
24123
  disabled: !Fe,
24124
24124
  children: [
24125
24125
  /* @__PURE__ */ r("option", { value: "", children: "Choose an option..." }),
24126
- be.options.map((Le) => /* @__PURE__ */ r("option", { value: Le, children: Le }, Le))
24126
+ xe.options.map((Le) => /* @__PURE__ */ r("option", { value: Le, children: Le }, Le))
24127
24127
  ]
24128
24128
  }
24129
24129
  ),
24130
- be.input_type === "multiselect" && be.options && /* @__PURE__ */ r("div", { className: "checkbox-group", children: be.options.map((Le) => /* @__PURE__ */ i("label", { className: "checkbox-label", children: [
24130
+ xe.input_type === "multiselect" && xe.options && /* @__PURE__ */ r("div", { className: "checkbox-group", children: xe.options.map((Le) => /* @__PURE__ */ i("label", { className: "checkbox-label", children: [
24131
24131
  /* @__PURE__ */ r(
24132
24132
  "input",
24133
24133
  {
@@ -24148,7 +24148,7 @@ function R2({
24148
24148
  ),
24149
24149
  /* @__PURE__ */ r("span", { children: Le })
24150
24150
  ] }, Le)) }),
24151
- be.input_type === "boolean" && /* @__PURE__ */ i("div", { className: "radio-group", children: [
24151
+ xe.input_type === "boolean" && /* @__PURE__ */ i("div", { className: "radio-group", children: [
24152
24152
  /* @__PURE__ */ i("label", { className: "radio-label", children: [
24153
24153
  /* @__PURE__ */ r(
24154
24154
  "input",
@@ -24178,7 +24178,7 @@ function R2({
24178
24178
  /* @__PURE__ */ r("span", { children: "No" })
24179
24179
  ] })
24180
24180
  ] }),
24181
- be.input_type === "date" && /* @__PURE__ */ r(
24181
+ xe.input_type === "date" && /* @__PURE__ */ r(
24182
24182
  "input",
24183
24183
  {
24184
24184
  type: "date",
@@ -24188,29 +24188,29 @@ function R2({
24188
24188
  }
24189
24189
  )
24190
24190
  ] }),
24191
- /* @__PURE__ */ r("div", { className: "instruction", children: Fe ? Pe ? "Type your response below" : be.input_type === "multiselect" ? "Select options above and click send" : "Make your selection above and click send" : "" })
24192
- ] }) }, Y.id);
24191
+ /* @__PURE__ */ r("div", { className: "instruction", children: Fe ? Pe ? "Type your response below" : xe.input_type === "multiselect" ? "Select options above and click send" : "Make your selection above and click send" : "" })
24192
+ ] }) }, q.id);
24193
24193
  }
24194
- if (((Ce = Y.metadata) == null ? void 0 : Ce.type) === "log") {
24195
- const be = A[ce - 1], Pe = A[ce + 1], Fe = ((ae = be == null ? void 0 : be.metadata) == null ? void 0 : ae.type) === "log", Le = ((Oe = Pe == null ? void 0 : Pe.metadata) == null ? void 0 : Oe.type) === "log";
24194
+ if (((Ce = q.metadata) == null ? void 0 : Ce.type) === "log") {
24195
+ const xe = A[le - 1], Pe = A[le + 1], Fe = ((ae = xe == null ? void 0 : xe.metadata) == null ? void 0 : ae.type) === "log", Le = ((Oe = Pe == null ? void 0 : Pe.metadata) == null ? void 0 : Oe.type) === "log";
24196
24196
  return /* @__PURE__ */ r(
24197
24197
  u2,
24198
24198
  {
24199
24199
  $isGrouped: Fe || Le,
24200
24200
  $isFirstInGroup: !Fe && Le,
24201
24201
  $isLastInGroup: Fe && !Le,
24202
- children: /* @__PURE__ */ r("div", { className: "log-content", children: Y.content })
24202
+ children: /* @__PURE__ */ r("div", { className: "log-content", children: q.content })
24203
24203
  },
24204
- Y.id
24204
+ q.id
24205
24205
  );
24206
24206
  }
24207
- return !Y.content && (!Y.images || Y.images.length === 0) ? null : /* @__PURE__ */ r(
24207
+ return !q.content && (!q.images || q.images.length === 0) ? null : /* @__PURE__ */ r(
24208
24208
  Yn,
24209
24209
  {
24210
- $isUser: Y.role === "user",
24211
- children: /* @__PURE__ */ i(Pl, { $isUser: Y.role === "user", children: [
24212
- /* @__PURE__ */ r("div", { children: Y.content }),
24213
- Y.images && Y.images.length > 0 && /* @__PURE__ */ r(
24210
+ $isUser: q.role === "user",
24211
+ children: /* @__PURE__ */ i(Pl, { $isUser: q.role === "user", children: [
24212
+ /* @__PURE__ */ r("div", { children: q.content }),
24213
+ q.images && q.images.length > 0 && /* @__PURE__ */ r(
24214
24214
  "div",
24215
24215
  {
24216
24216
  style: {
@@ -24219,12 +24219,12 @@ function R2({
24219
24219
  marginTop: "8px",
24220
24220
  flexWrap: "wrap"
24221
24221
  },
24222
- children: Y.images.map((be, Pe) => {
24223
- const Fe = be.url || `data:${be.mime_type};base64,${be.data}`;
24222
+ children: q.images.map((xe, Pe) => {
24223
+ const Fe = xe.url || `data:${xe.mime_type};base64,${xe.data}`;
24224
24224
  return /* @__PURE__ */ i(
24225
24225
  I2,
24226
24226
  {
24227
- onClick: () => de(Fe),
24227
+ onClick: () => ue(Fe),
24228
24228
  title: "Click to preview",
24229
24229
  children: [
24230
24230
  /* @__PURE__ */ r(
@@ -24243,10 +24243,10 @@ function R2({
24243
24243
  })
24244
24244
  }
24245
24245
  ),
24246
- Y.isStreaming && /* @__PURE__ */ r(l2, {})
24246
+ q.isStreaming && /* @__PURE__ */ r(l2, {})
24247
24247
  ] })
24248
24248
  },
24249
- Y.id
24249
+ q.id
24250
24250
  );
24251
24251
  }),
24252
24252
  B && /* @__PURE__ */ r(Yn, { $isUser: !0, children: /* @__PURE__ */ i(d2, { $isUser: !0, children: [
@@ -24260,7 +24260,7 @@ function R2({
24260
24260
  marginTop: "8px",
24261
24261
  flexWrap: "wrap"
24262
24262
  },
24263
- children: U.map((Y, ce) => /* @__PURE__ */ r(
24263
+ children: U.map((q, le) => /* @__PURE__ */ r(
24264
24264
  "div",
24265
24265
  {
24266
24266
  style: {
@@ -24278,8 +24278,8 @@ function R2({
24278
24278
  children: /* @__PURE__ */ r(
24279
24279
  "img",
24280
24280
  {
24281
- src: Y.data ? `data:${Y.mime_type};base64,${Y.data}` : "#",
24282
- alt: `Image ${ce + 1}`,
24281
+ src: q.data ? `data:${q.mime_type};base64,${q.data}` : "#",
24282
+ alt: `Image ${le + 1}`,
24283
24283
  style: {
24284
24284
  maxWidth: "100%",
24285
24285
  maxHeight: "100%",
@@ -24291,42 +24291,42 @@ function R2({
24291
24291
  }
24292
24292
  )
24293
24293
  },
24294
- ce
24294
+ le
24295
24295
  ))
24296
24296
  }
24297
24297
  )
24298
24298
  ] }) }),
24299
24299
  /* @__PURE__ */ r("div", { ref: L })
24300
24300
  ] }) }),
24301
- E.length > 0 && /* @__PURE__ */ r(y2, { children: E.map((Y, ce) => /* @__PURE__ */ i(b2, { children: [
24301
+ E.length > 0 && /* @__PURE__ */ r(y2, { children: E.map((q, le) => /* @__PURE__ */ i(b2, { children: [
24302
24302
  /* @__PURE__ */ r(
24303
24303
  "img",
24304
24304
  {
24305
- src: Y.data ? `data:${Y.mime_type};base64,${Y.data}` : "#",
24306
- alt: `Upload ${ce + 1}`
24305
+ src: q.data ? `data:${q.mime_type};base64,${q.data}` : "#",
24306
+ alt: `Upload ${le + 1}`
24307
24307
  }
24308
24308
  ),
24309
24309
  /* @__PURE__ */ r(
24310
24310
  x2,
24311
24311
  {
24312
24312
  type: "button",
24313
- onClick: () => K(ce),
24313
+ onClick: () => K(le),
24314
24314
  children: /* @__PURE__ */ r(tr, { size: 12 })
24315
24315
  }
24316
24316
  )
24317
- ] }, ce)) }),
24318
- /* @__PURE__ */ r(h2, { onSubmit: se, children: /* @__PURE__ */ i(f2, { children: [
24317
+ ] }, le)) }),
24318
+ /* @__PURE__ */ r(h2, { onSubmit: ce, children: /* @__PURE__ */ i(f2, { children: [
24319
24319
  /* @__PURE__ */ i(g2, { children: [
24320
24320
  /* @__PURE__ */ r(
24321
24321
  m2,
24322
24322
  {
24323
24323
  value: l,
24324
- onChange: (Y) => m(Y.target.value),
24325
- onKeyDown: (Y) => {
24326
- Y.key === "Enter" && !Y.shiftKey && (Y.preventDefault(), se(Y));
24324
+ onChange: (q) => m(q.target.value),
24325
+ onKeyDown: (q) => {
24326
+ q.key === "Enter" && !q.shiftKey && (q.preventDefault(), ce(q));
24327
24327
  },
24328
24328
  placeholder: Re(),
24329
- disabled: !he || ne && !V || We(),
24329
+ disabled: !pe || se && !V || We(),
24330
24330
  rows: 1
24331
24331
  }
24332
24332
  ),
@@ -24334,10 +24334,10 @@ function R2({
24334
24334
  k2,
24335
24335
  {
24336
24336
  type: "button",
24337
- disabled: !he || ne,
24337
+ disabled: !pe || se,
24338
24338
  onClick: () => {
24339
- var Y;
24340
- return (Y = F.current) == null ? void 0 : Y.click();
24339
+ var q;
24340
+ return (q = F.current) == null ? void 0 : q.click();
24341
24341
  },
24342
24342
  children: [
24343
24343
  /* @__PURE__ */ r(yh, { size: 16 }),
@@ -24352,22 +24352,22 @@ function R2({
24352
24352
  type: "file",
24353
24353
  accept: "image/*",
24354
24354
  multiple: !0,
24355
- onChange: pe
24355
+ onChange: he
24356
24356
  }
24357
24357
  )
24358
24358
  ] }),
24359
24359
  /* @__PURE__ */ r(
24360
24360
  _2,
24361
24361
  {
24362
- type: ne ? "button" : "submit",
24363
- disabled: !he || !V && !ne && !l.trim(),
24364
- onClick: ne ? le : void 0,
24362
+ type: se ? "button" : "submit",
24363
+ disabled: !pe || !V && !se && !l.trim(),
24364
+ onClick: se ? de : void 0,
24365
24365
  onMouseEnter: () => y(!0),
24366
24366
  onMouseLeave: () => y(!1),
24367
24367
  style: {
24368
- background: ne && v ? "var(--color-error)" : void 0
24368
+ background: se && v ? "var(--color-error)" : void 0
24369
24369
  },
24370
- children: ne ? v ? /* @__PURE__ */ r(tr, { size: 14 }) : /* @__PURE__ */ r(Ct, { size: 14, className: "animate-spin" }) : /* @__PURE__ */ r(Wc, { size: 14 })
24370
+ children: se ? v ? /* @__PURE__ */ r(tr, { size: 14 }) : /* @__PURE__ */ r(Ct, { size: 14, className: "animate-spin" }) : /* @__PURE__ */ r(Wc, { size: 14 })
24371
24371
  }
24372
24372
  )
24373
24373
  ] }) })
@@ -24381,15 +24381,15 @@ function R2({
24381
24381
  dragPosition: T,
24382
24382
  isDragging: k,
24383
24383
  onClose: Z,
24384
- onDownload: () => _ && j(_),
24384
+ onDownload: () => _ && Y(_),
24385
24385
  onZoom: N,
24386
24386
  onReset: () => {
24387
24387
  O(1), I({ x: 0, y: 0 });
24388
24388
  },
24389
- onWheel: G,
24389
+ onWheel: j,
24390
24390
  onMouseDown: D,
24391
- onMouseMove: q,
24392
- onMouseUp: ue
24391
+ onMouseMove: G,
24392
+ onMouseUp: ie
24393
24393
  }
24394
24394
  )
24395
24395
  ]
@@ -24965,9 +24965,9 @@ export {
24965
24965
  yr as DropdownItems,
24966
24966
  br as DropdownTrigger,
24967
24967
  $r as Form,
24968
- ye as FormGroup,
24968
+ be as FormGroup,
24969
24969
  me as Input,
24970
- ve as Label,
24970
+ ye as Label,
24971
24971
  Dy as MagicLinkVerification,
24972
24972
  D1 as ManageAccount,
24973
24973
  B1 as ManageAccountDialog,