@wacht/jsx 1.0.0-beta.61 → 1.0.0-beta.62

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
@@ -87,7 +87,7 @@ function jn(e, t) {
87
87
  const ki = sa(
88
88
  void 0
89
89
  );
90
- function J6({
90
+ function X6({
91
91
  children: e,
92
92
  publicKey: t,
93
93
  adapter: n,
@@ -3501,7 +3501,7 @@ function wd({
3501
3501
  return o.toString();
3502
3502
  }
3503
3503
  const gd = 5e3, vd = 5e3;
3504
- function X6({
3504
+ function ep({
3505
3505
  threadId: e,
3506
3506
  initialThread: t = null,
3507
3507
  boardItemId: n,
@@ -3906,7 +3906,7 @@ function X6({
3906
3906
  downloadMessageFile: B
3907
3907
  };
3908
3908
  }
3909
- function ep(e) {
3909
+ function tp(e) {
3910
3910
  const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c = j(!1), p = j(!1), u = j(null), f = n, h = I(async () => {
3911
3911
  const E = await t("/ai/session", {
3912
3912
  method: "GET"
@@ -4090,7 +4090,7 @@ function Eo(e, t = []) {
4090
4090
  n.append("files", i);
4091
4091
  return n;
4092
4092
  }
4093
- function tp(e = {}) {
4093
+ function ap(e = {}) {
4094
4094
  const { client: t } = Me(), { includeArchived: n = !1, enabled: i = !0 } = e, s = i ? `wacht-ai-actor-projects:${n}` : null, o = I(async () => {
4095
4095
  const g = await t(`/ai/projects${bd("include_archived", n)}`);
4096
4096
  return (await D(g)).data;
@@ -4144,7 +4144,7 @@ function tp(e = {}) {
4144
4144
  }
4145
4145
  };
4146
4146
  }
4147
- function ap(e = {}) {
4147
+ function np(e = {}) {
4148
4148
  const { client: t } = Me(), {
4149
4149
  enabled: n = !0,
4150
4150
  query: i = "",
@@ -4166,7 +4166,7 @@ function ap(e = {}) {
4166
4166
  }
4167
4167
  };
4168
4168
  }
4169
- function np(e, t = {}) {
4169
+ function rp(e, t = {}) {
4170
4170
  const { client: n } = Me(), { includeArchived: i = !1, enabled: s = !0 } = t, o = s && e ? `wacht-ai-threads:${e}:${i}` : null, m = I(async () => {
4171
4171
  if (!e) return { data: [], has_more: !1, next_cursor: "" };
4172
4172
  const w = new URLSearchParams({ limit: "100" });
@@ -4217,7 +4217,7 @@ function np(e, t = {}) {
4217
4217
  }
4218
4218
  };
4219
4219
  }
4220
- function rp(e, t = {}) {
4220
+ function ip(e, t = {}) {
4221
4221
  var g, v;
4222
4222
  const { client: n } = Me(), {
4223
4223
  includeArchived: i = !1,
@@ -4267,7 +4267,7 @@ function rp(e, t = {}) {
4267
4267
  }
4268
4268
  };
4269
4269
  }
4270
- function ip(e = {}) {
4270
+ function sp(e = {}) {
4271
4271
  const { client: t } = Me(), {
4272
4272
  enabled: n = !0,
4273
4273
  query: i = "",
@@ -4289,7 +4289,7 @@ function ip(e = {}) {
4289
4289
  }
4290
4290
  };
4291
4291
  }
4292
- function sp(e, t = !0) {
4292
+ function op(e, t = !0) {
4293
4293
  const { client: n } = Me(), i = t && e ? `wacht-ai-thread:${e}` : null, s = I(async () => {
4294
4294
  if (!e) return null;
4295
4295
  const u = await n(`/ai/threads/${e}`);
@@ -4336,7 +4336,7 @@ function sp(e, t = !0) {
4336
4336
  }
4337
4337
  };
4338
4338
  }
4339
- function op(e, t = !0) {
4339
+ function lp(e, t = !0) {
4340
4340
  const { client: n } = Me(), i = t && e ? `wacht-ai-thread-filesystem:${e}` : null, s = I(async (l) => {
4341
4341
  if (!e) throw new Error("threadId is required");
4342
4342
  const c = await n(
@@ -4374,7 +4374,7 @@ function op(e, t = !0) {
4374
4374
  }
4375
4375
  };
4376
4376
  }
4377
- function lp(e, t = {}) {
4377
+ function cp(e, t = {}) {
4378
4378
  var f, h;
4379
4379
  const { client: n } = Me(), { enabled: i = !0, limit: s = 40, order: o = "asc" } = t, m = Math.min(Math.max(s, 1), 200), l = dn(
4380
4380
  (g, v) => {
@@ -4417,7 +4417,7 @@ function Nd(e = {}, t) {
4417
4417
  const i = n.toString();
4418
4418
  return i ? `?${i}` : "";
4419
4419
  }
4420
- function cp(e, t = !0, n = {}) {
4420
+ function dp(e, t = !0, n = {}) {
4421
4421
  var v, w, y;
4422
4422
  const { client: i } = Me(), s = ((v = n.statuses) == null ? void 0 : v.join(",")) || "all", o = n.archivedOnly ? "archived-only" : n.includeArchived ? "with-archived" : "active-only", m = n.limit || 60, l = dn(
4423
4423
  (x, b) => {
@@ -4491,7 +4491,7 @@ function cp(e, t = !0, n = {}) {
4491
4491
  }
4492
4492
  };
4493
4493
  }
4494
- function dp(e, t, n = !0, i = {}) {
4494
+ function up(e, t, n = !0, i = {}) {
4495
4495
  var z, O;
4496
4496
  const { client: s } = Me(), o = i.includeArchived ? "with-archived" : "active-only", m = i.includeArchived ? "?include_archived=true" : "", l = i.assignmentsOrder ?? "asc", c = Math.min(Math.max(i.assignmentsLimit ?? 40, 1), 200), p = n && e && t ? `wacht-ai-board-item:${e}:${t}:${o}` : null, u = n && e && t ? `wacht-ai-board-item-workspace:${e}:${t}:${o}` : null, f = I(async () => {
4497
4497
  if (!e || !t) return null;
@@ -4639,7 +4639,7 @@ function dp(e, t, n = !0, i = {}) {
4639
4639
  }
4640
4640
  };
4641
4641
  }
4642
- function up(e, t = !0) {
4642
+ function mp(e, t = !0) {
4643
4643
  var g;
4644
4644
  const { client: n } = Me(), {
4645
4645
  data: i,
@@ -4693,7 +4693,7 @@ function up(e, t = !0) {
4693
4693
  }
4694
4694
  };
4695
4695
  }
4696
- function mp(e, t, n = !0) {
4696
+ function pp(e, t, n = !0) {
4697
4697
  const { client: i } = Me(), s = n && e && t ? `wacht-ai-board-item-comments:${e}:${t}` : null, o = I(async () => {
4698
4698
  if (!e || !t) return [];
4699
4699
  const c = await i(
@@ -4730,7 +4730,7 @@ function mp(e, t, n = !0) {
4730
4730
  }
4731
4731
  };
4732
4732
  }
4733
- function pp(e = !0) {
4733
+ function hp(e = !0) {
4734
4734
  const { client: t } = Me(), n = e ? "wacht-ai-actor-mcp-servers" : null, i = I(async () => {
4735
4735
  const u = await t("/ai/mcp-servers");
4736
4736
  return (await D(u)).data;
@@ -4766,7 +4766,7 @@ function pp(e = !0) {
4766
4766
  }
4767
4767
  };
4768
4768
  }
4769
- function hp(e = !0) {
4769
+ function fp(e = !0) {
4770
4770
  const { client: t } = Me(), n = e ? "wacht-ai-external-agent-connections" : null, i = I(async () => {
4771
4771
  const u = await t("/ai/external-connections");
4772
4772
  return (await D(u)).data;
@@ -4966,7 +4966,7 @@ async function Vd(e, { taskId: t }) {
4966
4966
  "Failed to cancel replay task"
4967
4967
  );
4968
4968
  }
4969
- function fp(e) {
4969
+ function wp(e) {
4970
4970
  const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c = j(!1), p = j(!1), u = j(null), f = n, h = I(async () => Sd(t), [t]), { data: g, error: v, isLoading: w, mutate: y } = $e(
4971
4971
  f ? "wacht-webhook-app-session" : null,
4972
4972
  h,
@@ -5045,7 +5045,7 @@ function fp(e) {
5045
5045
  fetchDeliveryDetail: M
5046
5046
  };
5047
5047
  }
5048
- function wp() {
5048
+ function gp() {
5049
5049
  const { client: e } = Me(), t = I(async () => {
5050
5050
  const m = await e("/webhook/stats", {
5051
5051
  method: "GET"
@@ -5066,7 +5066,7 @@ function wp() {
5066
5066
  refetch: () => o()
5067
5067
  };
5068
5068
  }
5069
- function gp() {
5069
+ function vp() {
5070
5070
  const { client: e } = Me(), t = I(async () => {
5071
5071
  const m = await e("/webhook/endpoints", {
5072
5072
  method: "GET"
@@ -5087,7 +5087,7 @@ function gp() {
5087
5087
  refetch: () => o()
5088
5088
  };
5089
5089
  }
5090
- function vp() {
5090
+ function bp() {
5091
5091
  const { client: e } = Me();
5092
5092
  return {
5093
5093
  createEndpoint: I(async (n) => {
@@ -5104,7 +5104,7 @@ function vp() {
5104
5104
  error: null
5105
5105
  };
5106
5106
  }
5107
- function bp() {
5107
+ function yp() {
5108
5108
  const { client: e } = Me(), t = I(async () => {
5109
5109
  const m = await e("/webhook/events", {
5110
5110
  method: "GET"
@@ -5125,7 +5125,7 @@ function bp() {
5125
5125
  refetch: () => o()
5126
5126
  };
5127
5127
  }
5128
- function yp(e = {}) {
5128
+ function _p(e = {}) {
5129
5129
  const { client: t } = Me(), n = I(async () => {
5130
5130
  const l = new URLSearchParams();
5131
5131
  e.endpoint_id && l.set("endpoint_id", e.endpoint_id), e.status && l.set("status", e.status), e.event_name && l.set("event_name", e.event_name), e.limit && l.set("limit", e.limit.toString()), e.cursor && l.set("cursor", e.cursor);
@@ -5153,7 +5153,7 @@ function yp(e = {}) {
5153
5153
  refetch: () => m()
5154
5154
  };
5155
5155
  }
5156
- function _p(e = {}) {
5156
+ function xp(e = {}) {
5157
5157
  const { client: t } = Me(), n = I(async () => {
5158
5158
  const l = new URLSearchParams();
5159
5159
  e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date), e.endpoint_id && l.set("endpoint_id", e.endpoint_id), e.fields && e.fields.length > 0 && l.set("fields", e.fields.join(","));
@@ -5179,7 +5179,7 @@ function _p(e = {}) {
5179
5179
  refetch: () => m()
5180
5180
  };
5181
5181
  }
5182
- function xp(e = {}) {
5182
+ function kp(e = {}) {
5183
5183
  const { client: t } = Me(), n = I(async () => {
5184
5184
  const l = new URLSearchParams();
5185
5185
  e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date), e.interval && l.set("interval", e.interval), e.endpoint_id && l.set("endpoint_id", e.endpoint_id);
@@ -5206,7 +5206,7 @@ function xp(e = {}) {
5206
5206
  refetch: () => m()
5207
5207
  };
5208
5208
  }
5209
- function kp(e) {
5209
+ function Np(e) {
5210
5210
  const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c = j(!1), p = j(!1), u = j(null), f = n, h = I(async () => {
5211
5211
  const E = await t("/api-auth/session", {
5212
5212
  method: "GET"
@@ -5251,7 +5251,7 @@ function kp(e) {
5251
5251
  }
5252
5252
  };
5253
5253
  }
5254
- function Np(e = {}) {
5254
+ function Ap(e = {}) {
5255
5255
  const { client: t } = Me(), n = I(async () => {
5256
5256
  const u = new URLSearchParams();
5257
5257
  e.status && u.set("status", e.status);
@@ -5298,7 +5298,7 @@ function Np(e = {}) {
5298
5298
  refetch: () => m()
5299
5299
  };
5300
5300
  }
5301
- function Ap(e = {}) {
5301
+ function Cp(e = {}) {
5302
5302
  const { client: t } = Me(), n = I(async () => {
5303
5303
  const l = new URLSearchParams();
5304
5304
  e.limit && l.set("limit", e.limit.toString()), e.cursor && l.set("cursor", e.cursor), e.outcome && l.set("outcome", e.outcome), e.key_id && l.set("key_id", e.key_id), e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date);
@@ -5327,7 +5327,7 @@ function Ap(e = {}) {
5327
5327
  refetch: () => m()
5328
5328
  };
5329
5329
  }
5330
- function Cp(e = {}) {
5330
+ function Ep(e = {}) {
5331
5331
  const { client: t } = Me(), n = I(async () => {
5332
5332
  const l = new URLSearchParams();
5333
5333
  e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date), e.key_id && l.set("key_id", e.key_id), e.include_top_keys && l.set("include_top_keys", "true"), e.include_top_paths && l.set("include_top_paths", "true"), e.include_blocked_reasons && l.set("include_blocked_reasons", "true"), e.include_rate_limits && l.set("include_rate_limits", "true"), e.top_limit && l.set("top_limit", e.top_limit.toString());
@@ -5363,7 +5363,7 @@ function Cp(e = {}) {
5363
5363
  refetch: () => m()
5364
5364
  };
5365
5365
  }
5366
- function Ep(e = {}) {
5366
+ function Sp(e = {}) {
5367
5367
  const { client: t } = Me(), n = I(async () => {
5368
5368
  const l = new URLSearchParams();
5369
5369
  e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date), e.interval && l.set("interval", e.interval), e.key_id && l.set("key_id", e.key_id);
@@ -5419,12 +5419,12 @@ const zd = () => {
5419
5419
  error: i,
5420
5420
  reset: c
5421
5421
  };
5422
- }, Sp = ({
5422
+ }, Mp = ({
5423
5423
  children: e
5424
5424
  }) => {
5425
5425
  const { loading: t } = Oe();
5426
5426
  return t ? null : /* @__PURE__ */ a(se, { children: e });
5427
- }, Mp = ({
5427
+ }, Lp = ({
5428
5428
  children: e
5429
5429
  }) => {
5430
5430
  const { loading: t } = Oe();
@@ -9214,12 +9214,12 @@ function Ou(e, t) {
9214
9214
  function At(e, t) {
9215
9215
  return t && Ou(e, t) ? t : null;
9216
9216
  }
9217
- const Zu = "https://cdn.wacht.services/captcha/wacht-challenge.min.js", Rs = "wacht-challenge-script";
9218
- function Hu(e) {
9217
+ const Zu = "https://cdn.wacht.services/captcha/wacht-challenge.min.js", Hu = "https://cdn.wacht.services/captcha/cap_wasm_bg.wasm", Rs = "wacht-challenge-script";
9218
+ function Tu(e) {
9219
9219
  const t = e.trim().replace(/\/$/, "");
9220
9220
  return t ? /^https?:\/\//i.test(t) ? t : `https://${t}` : "";
9221
9221
  }
9222
- function Tu() {
9222
+ function Fu() {
9223
9223
  return document.getElementById(Rs) ? Promise.resolve() : new Promise((e, t) => {
9224
9224
  const n = document.createElement("script");
9225
9225
  n.id = Rs, n.src = Zu, n.async = !0, n.onload = () => e(), n.onerror = () => t(new Error("Failed to load challenge script")), document.head.appendChild(n);
@@ -9230,14 +9230,14 @@ function bc({ apiHost: e, onSolve: t, onError: n }) {
9230
9230
  return m.current = t, l.current = n, X(() => {
9231
9231
  if (c.current) return;
9232
9232
  c.current = !0;
9233
- const p = Hu(e);
9233
+ const p = Tu(e);
9234
9234
  if (!p) return;
9235
9235
  let u = !1;
9236
9236
  return (async () => {
9237
9237
  var f;
9238
9238
  try {
9239
- if (await Tu(), u || !window.Cap) return;
9240
- window.CAP_SILENT = !0, window.CAP_DISABLE_WIDGET_REF = !0;
9239
+ if (await Fu(), u || !window.Cap) return;
9240
+ window.CAP_SILENT = !0, window.CAP_DISABLE_WIDGET_REF = !0, window.CAP_CUSTOM_WASM_URL = Hu;
9241
9241
  const h = new window.Cap({ apiEndpoint: `${p}/captcha/` });
9242
9242
  i.current = h;
9243
9243
  const g = await h.solve();
@@ -9254,7 +9254,7 @@ function bc({ apiHost: e, onSolve: t, onError: n }) {
9254
9254
  };
9255
9255
  }, [e]), s ? /* @__PURE__ */ a("div", { style: { fontSize: 12, color: "var(--wa-error)", marginBottom: 12 }, children: s }) : null;
9256
9256
  }
9257
- function Lp() {
9257
+ function Rp() {
9258
9258
  var _e, de, oe, ue, Ie, J, dt, qe, Qe, Fe, fe, K, Q, ne, pe, Ze;
9259
9259
  const { loading: e, signUp: t, signupAttempt: n, discardSignupAttempt: i } = W0(), { signIn: s } = vn("oauth"), { deployment: o } = Oe(), { navigate: m } = Ot(), {
9260
9260
  session: l,
@@ -9790,7 +9790,7 @@ function xc() {
9790
9790
  throw new Error("useSignIn must be used within a SignInProvider");
9791
9791
  return e;
9792
9792
  }
9793
- function Fu({ children: e }) {
9793
+ function Iu({ children: e }) {
9794
9794
  var x;
9795
9795
  const { deployment: t } = Oe(), [n, i] = C(
9796
9796
  (t == null ? void 0 : t.auth_settings.first_factor) || "email_password"
@@ -9824,7 +9824,7 @@ function Fu({ children: e }) {
9824
9824
  }
9825
9825
  );
9826
9826
  }
9827
- const Iu = [
9827
+ const Vu = [
9828
9828
  {
9829
9829
  key: "email_magic_link",
9830
9830
  icon: /* @__PURE__ */ a(e8, {}),
@@ -9870,7 +9870,7 @@ function kc() {
9870
9870
  l(!1);
9871
9871
  }
9872
9872
  }
9873
- }, f = Iu.filter((v) => {
9873
+ }, f = Vu.filter((v) => {
9874
9874
  if (v.key === i) return !1;
9875
9875
  const w = c == null ? void 0 : c.auth_factors_enabled;
9876
9876
  return w ? w[v.key] : !1;
@@ -9898,7 +9898,7 @@ function kc() {
9898
9898
  )) })
9899
9899
  ] });
9900
9900
  }
9901
- function Vu({ onBack: e }) {
9901
+ function zu({ onBack: e }) {
9902
9902
  var F;
9903
9903
  const { deployment: t } = Oe(), { navigate: n } = Ot(), [i, s] = C(
9904
9904
  "start"
@@ -10161,7 +10161,7 @@ function Vu({ onBack: e }) {
10161
10161
  ] })
10162
10162
  ] });
10163
10163
  }
10164
- function zu({ onBack: e }) {
10164
+ function Du({ onBack: e }) {
10165
10165
  var i;
10166
10166
  const { deployment: t } = Oe(), n = (i = t == null ? void 0 : t.ui_settings) == null ? void 0 : i.app_name;
10167
10167
  return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ d(
@@ -10189,7 +10189,7 @@ function zu({ onBack: e }) {
10189
10189
  }
10190
10190
  ) });
10191
10191
  }
10192
- function Du({
10192
+ function Uu({
10193
10193
  methods: e,
10194
10194
  onSelectMethod: t,
10195
10195
  onBack: n
@@ -10229,7 +10229,7 @@ function Du({
10229
10229
  }
10230
10230
  ) });
10231
10231
  }
10232
- function Uu({
10232
+ function Wu({
10233
10233
  onVerify: e,
10234
10234
  onBack: t,
10235
10235
  loading: n
@@ -10311,7 +10311,7 @@ function Uu({
10311
10311
  }
10312
10312
  ) });
10313
10313
  }
10314
- const Wu = () => /* @__PURE__ */ a(
10314
+ const Bu = () => /* @__PURE__ */ a(
10315
10315
  "svg",
10316
10316
  {
10317
10317
  viewBox: "0 0 24 24",
@@ -10322,7 +10322,7 @@ const Wu = () => /* @__PURE__ */ a(
10322
10322
  strokeLinejoin: "round",
10323
10323
  children: /* @__PURE__ */ a("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" })
10324
10324
  }
10325
- ), Bu = () => /* @__PURE__ */ d(
10325
+ ), ju = () => /* @__PURE__ */ d(
10326
10326
  "svg",
10327
10327
  {
10328
10328
  viewBox: "0 0 24 24",
@@ -10336,7 +10336,7 @@ const Wu = () => /* @__PURE__ */ a(
10336
10336
  /* @__PURE__ */ a("path", { d: "M12 18h.01" })
10337
10337
  ]
10338
10338
  }
10339
- ), ju = () => /* @__PURE__ */ a(
10339
+ ), Gu = () => /* @__PURE__ */ a(
10340
10340
  "svg",
10341
10341
  {
10342
10342
  viewBox: "0 0 24 24",
@@ -10348,7 +10348,7 @@ const Wu = () => /* @__PURE__ */ a(
10348
10348
  children: /* @__PURE__ */ a("path", { d: "m21 2-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4" })
10349
10349
  }
10350
10350
  );
10351
- function Gu({
10351
+ function qu({
10352
10352
  onBack: e,
10353
10353
  attempt: t,
10354
10354
  completeVerification: n,
@@ -10359,14 +10359,14 @@ function Gu({
10359
10359
  id: "authenticator",
10360
10360
  name: "Authenticator app",
10361
10361
  description: "Use your authenticator app",
10362
- icon: /* @__PURE__ */ a(Wu, {}),
10362
+ icon: /* @__PURE__ */ a(Bu, {}),
10363
10363
  available: A.includes("authenticator")
10364
10364
  },
10365
10365
  {
10366
10366
  id: "phone_otp",
10367
10367
  name: "Text message",
10368
10368
  description: "Get a code via SMS",
10369
- icon: /* @__PURE__ */ a(Bu, {}),
10369
+ icon: /* @__PURE__ */ a(ju, {}),
10370
10370
  available: A.includes("phone_otp"),
10371
10371
  phoneNumber: x
10372
10372
  },
@@ -10374,7 +10374,7 @@ function Gu({
10374
10374
  id: "backup_code",
10375
10375
  name: "Backup code",
10376
10376
  description: "Use one of your backup codes",
10377
- icon: /* @__PURE__ */ a(ju, {}),
10377
+ icon: /* @__PURE__ */ a(Gu, {}),
10378
10378
  available: A.includes("backup_code")
10379
10379
  }
10380
10380
  ].filter((O) => O.available), M = async (O) => {
@@ -10472,7 +10472,7 @@ function Gu({
10472
10472
  ]
10473
10473
  }
10474
10474
  ) }) : /* @__PURE__ */ a(
10475
- Du,
10475
+ Uu,
10476
10476
  {
10477
10477
  methods: _,
10478
10478
  onSelectMethod: M,
@@ -10481,7 +10481,7 @@ function Gu({
10481
10481
  );
10482
10482
  if (w && f === "phone_otp")
10483
10483
  return /* @__PURE__ */ a(
10484
- Uu,
10484
+ Wu,
10485
10485
  {
10486
10486
  onVerify: L,
10487
10487
  onBack: () => {
@@ -10617,7 +10617,7 @@ function Gu({
10617
10617
  }
10618
10618
  ) });
10619
10619
  }
10620
- function qu({
10620
+ function Ku({
10621
10621
  attempt: e,
10622
10622
  onBack: t,
10623
10623
  completeProfile: n,
@@ -11005,10 +11005,10 @@ function Nc({ onComplete: e, onSkip: t }) {
11005
11005
  s && /* @__PURE__ */ a("p", { className: "w-input-err", style: { marginTop: 14 }, children: s })
11006
11006
  ] });
11007
11007
  }
11008
- function Rp() {
11009
- return /* @__PURE__ */ a(Fu, { children: /* @__PURE__ */ a(Ku, {}) });
11008
+ function Pp() {
11009
+ return /* @__PURE__ */ a(Iu, { children: /* @__PURE__ */ a(Yu, {}) });
11010
11010
  }
11011
- function Ku() {
11011
+ function Yu() {
11012
11012
  var Mt, pa, ha, fa, wa, me, Ce, He, ae, Ee, it, Ke, Lt, Rt, tt, Nt, Jt, ga, va, ba, Bi, ji, Gi;
11013
11013
  const { deployment: e } = Oe(), { navigate: t } = Ot(), {
11014
11014
  session: n,
@@ -11383,12 +11383,12 @@ function Ku() {
11383
11383
  }
11384
11384
  })();
11385
11385
  }, [A, k, p, u, t, e]), g)
11386
- return /* @__PURE__ */ a(zu, { onBack: () => v(!1) });
11386
+ return /* @__PURE__ */ a(Du, { onBack: () => v(!1) });
11387
11387
  if (f)
11388
- return /* @__PURE__ */ a(Vu, { onBack: () => h(!1) });
11388
+ return /* @__PURE__ */ a(zu, { onBack: () => h(!1) });
11389
11389
  if ((A == null ? void 0 : A.current_step) === "verify_second_factor")
11390
11390
  return /* @__PURE__ */ a(
11391
- Gu,
11391
+ qu,
11392
11392
  {
11393
11393
  attempt: A,
11394
11394
  completeVerification: k.completeVerification,
@@ -11400,7 +11400,7 @@ function Ku() {
11400
11400
  );
11401
11401
  if ((A == null ? void 0 : A.current_step) === "complete_profile")
11402
11402
  return /* @__PURE__ */ a(
11403
- qu,
11403
+ Ku,
11404
11404
  {
11405
11405
  attempt: A,
11406
11406
  completeProfile: k.completeProfile,
@@ -11968,7 +11968,7 @@ function Ku() {
11968
11968
  Qt
11969
11969
  ] }) });
11970
11970
  }
11971
- function Pp() {
11971
+ function $p() {
11972
11972
  var y, x, b, N, E, k, A, _, M, L, F, R;
11973
11973
  const { deployment: e } = Oe(), { loading: t, joinWaitlist: n } = Z1(), [i, s] = C({
11974
11974
  first_name: "",
@@ -12157,7 +12157,7 @@ function Ur({
12157
12157
  ] })
12158
12158
  ] }) });
12159
12159
  }
12160
- function $p() {
12160
+ function Op() {
12161
12161
  const { deployment: e } = Oe(), { navigate: t } = Ot(), { error: n, session: i, processed: s, signinAttempt: o, redirectUri: m, loading: l } = H1(), [c, p] = C(!1), [u, f] = C(
12162
12162
  null
12163
12163
  ), h = () => {
@@ -12284,7 +12284,7 @@ function $p() {
12284
12284
  }
12285
12285
  );
12286
12286
  }
12287
- function Op({
12287
+ function Zp({
12288
12288
  onSuccess: e,
12289
12289
  onError: t
12290
12290
  } = {}) {
@@ -12356,7 +12356,7 @@ function Op({
12356
12356
  ] })
12357
12357
  ] }) });
12358
12358
  }
12359
- function Zp(e) {
12359
+ function Hp(e) {
12360
12360
  var i, s;
12361
12361
  return e ? ((i = e.signin_attempts) == null ? void 0 : i.find(
12362
12362
  (o) => o.requires_completion && !o.completed
@@ -12367,7 +12367,7 @@ function Zp(e) {
12367
12367
  }
12368
12368
  )) : !1;
12369
12369
  }
12370
- function Hp(e) {
12370
+ function Tp(e) {
12371
12371
  const t = e ? `/profile-completion?redirect_uri=${encodeURIComponent(e)}` : "/profile-completion";
12372
12372
  window.location.href = t;
12373
12373
  }
@@ -12396,7 +12396,7 @@ function Sa({
12396
12396
  ] })
12397
12397
  ] }) });
12398
12398
  }
12399
- function Tp({
12399
+ function Fp({
12400
12400
  token: e,
12401
12401
  onSuccess: t,
12402
12402
  onError: n
@@ -12561,7 +12561,7 @@ const Ac = sa(void 0), Cc = () => {
12561
12561
  if (!e)
12562
12562
  throw new Error("Dialog components must be used within a Dialog");
12563
12563
  return e;
12564
- }, Yu = ({ isOpen: e, onClose: t, children: n }) => {
12564
+ }, Qu = ({ isOpen: e, onClose: t, children: n }) => {
12565
12565
  const [i, s] = C(!1), o = Rn();
12566
12566
  return X(() => {
12567
12567
  s(!0);
@@ -12575,12 +12575,12 @@ const Ac = sa(void 0), Cc = () => {
12575
12575
  /* @__PURE__ */ a("div", { className: "wacht-root", style: o, children: /* @__PURE__ */ a(Ac.Provider, { value: { isOpen: e, onClose: t }, children: n }) }),
12576
12576
  document.body
12577
12577
  );
12578
- }, Qu = ({ children: e }) => {
12578
+ }, Ju = ({ children: e }) => {
12579
12579
  const { onClose: t } = Cc(), n = j(null);
12580
12580
  return /* @__PURE__ */ a("div", { className: "w-modal", onClick: (s) => {
12581
12581
  n.current && !n.current.contains(s.target) && (t == null || t());
12582
12582
  }, children: /* @__PURE__ */ a("div", { ref: n, style: { maxWidth: "100%", minWidth: 0 }, children: e }) });
12583
- }, Ju = ({
12583
+ }, Xu = ({
12584
12584
  children: e,
12585
12585
  style: t,
12586
12586
  className: n
@@ -12591,7 +12591,7 @@ const Ac = sa(void 0), Cc = () => {
12591
12591
  style: { maxHeight: "90vh", overflowY: "auto", ...t },
12592
12592
  children: e
12593
12593
  }
12594
- ), Xu = ({
12594
+ ), e4 = ({
12595
12595
  children: e,
12596
12596
  showCloseButton: t = !0
12597
12597
  }) => {
@@ -12600,20 +12600,20 @@ const Ac = sa(void 0), Cc = () => {
12600
12600
  typeof e == "string" ? /* @__PURE__ */ a("h2", { className: "w-dialog-title", children: e }) : e,
12601
12601
  t && /* @__PURE__ */ a("button", { className: "w-btn w-btn--icon", onClick: n, children: /* @__PURE__ */ a(Ta, { size: 18 }) })
12602
12602
  ] });
12603
- }, e4 = ({ children: e, style: t, className: n }) => /* @__PURE__ */ a(
12603
+ }, t4 = ({ children: e, style: t, className: n }) => /* @__PURE__ */ a(
12604
12604
  "div",
12605
12605
  {
12606
12606
  className: `w-dialog-body${n ? ` ${n}` : ""}`,
12607
12607
  style: t,
12608
12608
  children: e
12609
12609
  }
12610
- ), t4 = ({ children: e }) => /* @__PURE__ */ a("div", { className: "w-dialog-foot", children: e }), Xe = Object.assign(Yu, {
12611
- Overlay: Qu,
12612
- Content: Ju,
12613
- Header: Xu,
12614
- Body: e4,
12615
- Footer: t4
12616
- }), Fp = ({
12610
+ ), a4 = ({ children: e }) => /* @__PURE__ */ a("div", { className: "w-dialog-foot", children: e }), Xe = Object.assign(Qu, {
12611
+ Overlay: Ju,
12612
+ Content: Xu,
12613
+ Header: e4,
12614
+ Body: t4,
12615
+ Footer: a4
12616
+ }), Ip = ({
12617
12617
  isOpen: e,
12618
12618
  onClose: t,
12619
12619
  title: n,
@@ -12622,7 +12622,7 @@ const Ac = sa(void 0), Cc = () => {
12622
12622
  }) => /* @__PURE__ */ a(Xe, { isOpen: e, onClose: t, children: /* @__PURE__ */ a(Xe.Overlay, { children: /* @__PURE__ */ d(Xe.Content, { children: [
12623
12623
  n && /* @__PURE__ */ a(Xe.Header, { showCloseButton: s, children: n }),
12624
12624
  /* @__PURE__ */ a(Xe.Body, { children: i })
12625
- ] }) }) }), Ip = ({
12625
+ ] }) }) }), Vp = ({
12626
12626
  trigger: e,
12627
12627
  renderDialog: t
12628
12628
  }) => {
@@ -12731,7 +12731,7 @@ const Ac = sa(void 0), Cc = () => {
12731
12731
  )
12732
12732
  );
12733
12733
  Ca.displayName = "DropdownItem";
12734
- const a4 = () => /* @__PURE__ */ a(
12734
+ const n4 = () => /* @__PURE__ */ a(
12735
12735
  "div",
12736
12736
  {
12737
12737
  style: {
@@ -12741,7 +12741,7 @@ const a4 = () => /* @__PURE__ */ a(
12741
12741
  margin: "4px 0"
12742
12742
  }
12743
12743
  }
12744
- ), n4 = ce(({ className: e, style: t, ...n }, i) => /* @__PURE__ */ a(
12744
+ ), r4 = ce(({ className: e, style: t, ...n }, i) => /* @__PURE__ */ a(
12745
12745
  "form",
12746
12746
  {
12747
12747
  ref: i,
@@ -12755,7 +12755,7 @@ const a4 = () => /* @__PURE__ */ a(
12755
12755
  ...n
12756
12756
  }
12757
12757
  ));
12758
- n4.displayName = "Form";
12758
+ r4.displayName = "Form";
12759
12759
  const at = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
12760
12760
  "div",
12761
12761
  {
@@ -13149,7 +13149,7 @@ const Lc = (e) => ({
13149
13149
  ]
13150
13150
  }
13151
13151
  );
13152
- }, Dn = (e) => e.split(" ").map((t) => t[0]).join("").toUpperCase().slice(0, 2) || "?", Ps = (e) => e.trim().replace(/[<>"'&]/g, ""), r4 = (e) => e.length >= 2 && e.length <= 100 && /^[a-zA-Z0-9\s_.-]+$/.test(e), i4 = (e) => /.+@.+\..+/.test(e), $s = (e, t) => e.length ? e.find((n) => n.name === t) || e[0] : null, s4 = ({
13152
+ }, Dn = (e) => e.split(" ").map((t) => t[0]).join("").toUpperCase().slice(0, 2) || "?", Ps = (e) => e.trim().replace(/[<>"'&]/g, ""), i4 = (e) => e.length >= 2 && e.length <= 100 && /^[a-zA-Z0-9\s_.-]+$/.test(e), s4 = (e) => /.+@.+\..+/.test(e), $s = (e, t) => e.length ? e.find((n) => n.name === t) || e[0] : null, o4 = ({
13153
13153
  roles: e,
13154
13154
  value: t,
13155
13155
  onChange: n,
@@ -13230,7 +13230,7 @@ const Lc = (e) => ({
13230
13230
  }, J = async () => {
13231
13231
  var ne;
13232
13232
  const K = Ps(b), Q = Ps(E);
13233
- if (!r4(K)) {
13233
+ if (!i4(K)) {
13234
13234
  O(`Enter a valid ${m} name (2–100 characters).`);
13235
13235
  return;
13236
13236
  }
@@ -13275,7 +13275,7 @@ const Lc = (e) => ({
13275
13275
  }
13276
13276
  }, dt = () => {
13277
13277
  const K = we.trim();
13278
- !i4(K) || Y.some((Q) => Q.email === K) || de && (ee((Q) => [
13278
+ !s4(K) || Y.some((Q) => Q.email === K) || de && (ee((Q) => [
13279
13279
  ...Q,
13280
13280
  { email: K, roleId: de.id, roleName: de.name }
13281
13281
  ]), _e(""));
@@ -13524,7 +13524,7 @@ const Lc = (e) => ({
13524
13524
  }
13525
13525
  ),
13526
13526
  /* @__PURE__ */ a(
13527
- s4,
13527
+ o4,
13528
13528
  {
13529
13529
  roles: G,
13530
13530
  value: de,
@@ -13910,7 +13910,7 @@ const Lc = (e) => ({
13910
13910
  docUrl: "",
13911
13911
  placeholders: {}
13912
13912
  }
13913
- ], o4 = ({ template: e }) => {
13913
+ ], l4 = ({ template: e }) => {
13914
13914
  const [t, n] = C(!1);
13915
13915
  return !e.logo || t ? /* @__PURE__ */ a("span", { className: "w-avatar w-avatar--square w-avatar--md w-sso-logo--ph", children: /* @__PURE__ */ a(ia, { size: 18, className: "w-text-muted" }) }) : /* @__PURE__ */ a(
13916
13916
  "img",
@@ -13921,7 +13921,7 @@ const Lc = (e) => ({
13921
13921
  onError: () => n(!0)
13922
13922
  }
13923
13923
  );
13924
- }, l4 = ({
13924
+ }, c4 = ({
13925
13925
  organization: e
13926
13926
  }) => {
13927
13927
  const {
@@ -13954,7 +13954,7 @@ const Lc = (e) => ({
13954
13954
  h(null);
13955
13955
  };
13956
13956
  return v ? /* @__PURE__ */ a("div", { className: "w-loading", children: /* @__PURE__ */ a(Re, {}) }) : p ? /* @__PURE__ */ a(
13957
- d4,
13957
+ u4,
13958
13958
  {
13959
13959
  organization: e,
13960
13960
  onClose: () => u(!1),
@@ -13988,7 +13988,7 @@ const Lc = (e) => ({
13988
13988
  /* @__PURE__ */ a("p", { className: "w-sub", children: "Configure SAML or OIDC SSO for your organization" })
13989
13989
  ] }) }),
13990
13990
  g.map((x) => /* @__PURE__ */ a(
13991
- c4,
13991
+ d4,
13992
13992
  {
13993
13993
  connection: x,
13994
13994
  onDelete: (b) => h(b),
@@ -14004,7 +14004,7 @@ const Lc = (e) => ({
14004
14004
  x.id
14005
14005
  ))
14006
14006
  ] }) });
14007
- }, c4 = ({
14007
+ }, d4 = ({
14008
14008
  connection: e,
14009
14009
  onDelete: t,
14010
14010
  connectionToDelete: n,
@@ -14221,7 +14221,7 @@ const Lc = (e) => ({
14221
14221
  ] })
14222
14222
  ] })
14223
14223
  ] });
14224
- }, d4 = ({
14224
+ }, u4 = ({
14225
14225
  onCreate: e,
14226
14226
  organization: t
14227
14227
  }) => {
@@ -14375,7 +14375,7 @@ const Lc = (e) => ({
14375
14375
  } finally {
14376
14376
  N(!1);
14377
14377
  }
14378
- }, Z = (T) => /* @__PURE__ */ a(o4, { template: T });
14378
+ }, Z = (T) => /* @__PURE__ */ a(l4, { template: T });
14379
14379
  return /* @__PURE__ */ d("form", { onSubmit: O, autoComplete: "off", className: "w-flex-col w-gap-4", children: [
14380
14380
  c ? /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-4 w-sso-template", children: [
14381
14381
  Z(c),
@@ -14826,7 +14826,7 @@ const Lc = (e) => ({
14826
14826
  className: xt("w-card", "w-flex-col", "w-full", "w-minh-full", e),
14827
14827
  ...t
14828
14828
  }
14829
- ), u4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-tabsbar", e), ...t }), m4 = ({ className: e, ...t }) => /* @__PURE__ */ a(
14829
+ ), m4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-tabsbar", e), ...t }), p4 = ({ className: e, ...t }) => /* @__PURE__ */ a(
14830
14830
  "div",
14831
14831
  {
14832
14832
  className: xt("w-flex", "w-items-center", "w-gap-1", "w-tabs", e),
@@ -14842,7 +14842,7 @@ const Lc = (e) => ({
14842
14842
  className: xt("w-tab", t && "w-tab--active", e),
14843
14843
  ...n
14844
14844
  }
14845
- ), Ja = ({ className: e, ...t }) => /* @__PURE__ */ a("span", { className: xt("w-inline", "w-gap-2", e), ...t }), p4 = ({ className: e, children: t, ...n }) => /* @__PURE__ */ a("div", { className: xt("w-tabbody", e), ...n, children: /* @__PURE__ */ a("div", { className: "w-tabpane", children: t }) }), Fi = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-sechead", e), ...t }), Hs = ({ className: e, ...t }) => /* @__PURE__ */ a(
14845
+ ), Ja = ({ className: e, ...t }) => /* @__PURE__ */ a("span", { className: xt("w-inline", "w-gap-2", e), ...t }), h4 = ({ className: e, children: t, ...n }) => /* @__PURE__ */ a("div", { className: xt("w-tabbody", e), ...n, children: /* @__PURE__ */ a("div", { className: "w-tabpane", children: t }) }), Fi = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-sechead", e), ...t }), Hs = ({ className: e, ...t }) => /* @__PURE__ */ a(
14846
14846
  "div",
14847
14847
  {
14848
14848
  className: xt(
@@ -14860,7 +14860,7 @@ const Lc = (e) => ({
14860
14860
  className: xt("w-flex", "w-items-center", "w-gap-3", "w-none", e),
14861
14861
  ...t
14862
14862
  }
14863
- ), _r = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-full", e), ...t }), h4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-page-head", e), ...t }), f4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-grow", "w-flex-col", "w-gap-1", e), ...t }), w4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-sec", "w-truncate", e), ...t }), g4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-secsub", "w-truncate", e), ...t }), v4 = {
14863
+ ), _r = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-full", e), ...t }), f4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-page-head", e), ...t }), w4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-grow", "w-flex-col", "w-gap-1", e), ...t }), g4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-sec", "w-truncate", e), ...t }), v4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-secsub", "w-truncate", e), ...t }), b4 = {
14864
14864
  primary: "w-pill--current",
14865
14865
  success: "w-pill--success",
14866
14866
  warning: "w-pill--pending",
@@ -14871,14 +14871,14 @@ const Lc = (e) => ({
14871
14871
  $variant: t = "neutral",
14872
14872
  children: n,
14873
14873
  ...i
14874
- }) => /* @__PURE__ */ d("span", { className: xt("w-pill", v4[t], e), ...i, children: [
14874
+ }) => /* @__PURE__ */ d("span", { className: xt("w-pill", b4[t], e), ...i, children: [
14875
14875
  /* @__PURE__ */ a("span", { className: "w-dot" }),
14876
14876
  n
14877
14877
  ] }), Is = ({
14878
14878
  className: e,
14879
14879
  $first: t,
14880
14880
  ...n
14881
- }) => /* @__PURE__ */ a("div", { className: xt("w-sec", e), ...n }), b4 = ({
14881
+ }) => /* @__PURE__ */ a("div", { className: xt("w-sec", e), ...n }), y4 = ({
14882
14882
  organization: e
14883
14883
  }) => {
14884
14884
  var R, z, O, S, Z, T;
@@ -15117,8 +15117,8 @@ const We = ce((e, t) => /* @__PURE__ */ a("th", { ref: t, ...e }));
15117
15117
  We.displayName = "TableHeader";
15118
15118
  const st = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("td", { ref: n, className: e, ...t }));
15119
15119
  st.displayName = "TableCell";
15120
- const y4 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("td", { ref: n, className: Ii("w-td--flex", e), ...t }));
15121
- y4.displayName = "TableCellFlex";
15120
+ const _4 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("td", { ref: n, className: Ii("w-td--flex", e), ...t }));
15121
+ _4.displayName = "TableCellFlex";
15122
15122
  const Bt = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("td", { ref: n, className: Ii("w-td--actions", e), ...t }));
15123
15123
  Bt.displayName = "ActionsCell";
15124
15124
  const $t = ({
@@ -15302,7 +15302,7 @@ const $t = ({
15302
15302
  ]
15303
15303
  }
15304
15304
  );
15305
- }, _4 = ({ organization: e }) => {
15305
+ }, x4 = ({ organization: e }) => {
15306
15306
  const {
15307
15307
  getOrganizationDomains: t,
15308
15308
  removeOrganizationDomain: n
@@ -15529,7 +15529,7 @@ const $t = ({
15529
15529
  ]
15530
15530
  }
15531
15531
  ) : null;
15532
- }, x4 = ({
15532
+ }, k4 = ({
15533
15533
  organization: e
15534
15534
  }) => {
15535
15535
  const {
@@ -15630,10 +15630,10 @@ const $t = ({
15630
15630
  var P, $;
15631
15631
  const Z = ((P = S.user) == null ? void 0 : P.id) === (($ = m == null ? void 0 : m.active_signin) == null ? void 0 : $.user_id), T = w.has(S.id);
15632
15632
  return /* @__PURE__ */ d(ht, { children: [
15633
- /* @__PURE__ */ a(st, { children: /* @__PURE__ */ a(k4, { member: S, isCurrentUser: Z }) }),
15633
+ /* @__PURE__ */ a(st, { children: /* @__PURE__ */ a(N4, { member: S, isCurrentUser: Z }) }),
15634
15634
  /* @__PURE__ */ a(st, { children: new Date(S.created_at).toLocaleDateString() }),
15635
15635
  /* @__PURE__ */ a(st, { children: /* @__PURE__ */ a(
15636
- N4,
15636
+ A4,
15637
15637
  {
15638
15638
  member: S,
15639
15639
  roles: F,
@@ -15666,7 +15666,7 @@ const $t = ({
15666
15666
  /* @__PURE__ */ a(le, { onClick: () => f((S) => Math.min(M, S + 1)), disabled: u === M, $size: "sm", $outline: !0, children: "Next" })
15667
15667
  ] })
15668
15668
  ] }) : /* @__PURE__ */ a(Re, {});
15669
- }, k4 = ({ member: e, isCurrentUser: t }) => {
15669
+ }, N4 = ({ member: e, isCurrentUser: t }) => {
15670
15670
  var o, m;
15671
15671
  const n = e.user, i = (l = "", c = "") => `${l[0] || ""}${c[0] || ""}`.toUpperCase() || "?", s = n ? `${n.first_name || ""} ${n.last_name || ""}`.trim() || ((o = n.primary_email_address) == null ? void 0 : o.email) : "Unknown";
15672
15672
  return /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-3 w-grow", children: [
@@ -15679,7 +15679,7 @@ const $t = ({
15679
15679
  /* @__PURE__ */ a("span", { className: "w-secsub", children: (m = n == null ? void 0 : n.primary_email_address) == null ? void 0 : m.email })
15680
15680
  ] })
15681
15681
  ] });
15682
- }, N4 = ({
15682
+ }, A4 = ({
15683
15683
  member: e,
15684
15684
  roles: t,
15685
15685
  onToggle: n,
@@ -15716,10 +15716,10 @@ const $t = ({
15716
15716
  );
15717
15717
  }) })
15718
15718
  ] });
15719
- }, A4 = (e) => {
15719
+ }, C4 = (e) => {
15720
15720
  const t = e.expires_at;
15721
15721
  return t ? new Date(t).getTime() < Date.now() : !1;
15722
- }, C4 = ({ organization: e }) => {
15722
+ }, E4 = ({ organization: e }) => {
15723
15723
  const {
15724
15724
  getOrganizationInvitations: t,
15725
15725
  getOrganizationRoles: n,
@@ -15802,7 +15802,7 @@ const $t = ({
15802
15802
  ] }) }),
15803
15803
  /* @__PURE__ */ a(Wt, { children: f.map((E) => {
15804
15804
  var _;
15805
- const k = A4(E), A = c.has(E.id);
15805
+ const k = C4(E), A = c.has(E.id);
15806
15806
  return /* @__PURE__ */ d(ht, { children: [
15807
15807
  /* @__PURE__ */ a(st, { children: E.email }),
15808
15808
  /* @__PURE__ */ a(st, { children: ((_ = E.initial_organization_role) == null ? void 0 : _.name) || "No role" }),
@@ -15962,22 +15962,22 @@ function Hc(e, t) {
15962
15962
  const n = e[t];
15963
15963
  return typeof n == "string" ? n.length > 0 && n !== "0" : typeof n == "number" ? Number.isFinite(n) && n > 0 : !1;
15964
15964
  }
15965
- function E4(e, t) {
15965
+ function S4(e, t) {
15966
15966
  const n = e[t];
15967
15967
  return typeof n == "boolean" ? n : null;
15968
15968
  }
15969
15969
  function Tc(e) {
15970
15970
  if (!Vi(e)) return !1;
15971
- const t = E4(e, "is_deployment_level");
15971
+ const t = S4(e, "is_deployment_level");
15972
15972
  return t !== null ? t : !1;
15973
15973
  }
15974
- function S4(e) {
15974
+ function M4(e) {
15975
15975
  return !Vi(e) || Tc(e) ? !1 : Hc(e, "organization_id");
15976
15976
  }
15977
15977
  function bi(e) {
15978
15978
  return !Vi(e) || Tc(e) ? !1 : Hc(e, "workspace_id");
15979
15979
  }
15980
- const M4 = ({
15980
+ const L4 = ({
15981
15981
  organization: e
15982
15982
  }) => {
15983
15983
  var k;
@@ -16018,7 +16018,7 @@ const M4 = ({
16018
16018
  };
16019
16019
  if (w && v.length === 0) return /* @__PURE__ */ a(Re, {});
16020
16020
  const E = (A) => {
16021
- const _ = S4(A), M = u.has(A.id), L = A.permissions.length;
16021
+ const _ = M4(A), M = u.has(A.id), L = A.permissions.length;
16022
16022
  return /* @__PURE__ */ d(ht, { children: [
16023
16023
  /* @__PURE__ */ a(st, { children: /* @__PURE__ */ d("span", { className: "w-inline w-gap-2 w-sec", children: [
16024
16024
  A.name,
@@ -16143,14 +16143,14 @@ const M4 = ({
16143
16143
  }
16144
16144
  )
16145
16145
  ] });
16146
- }, L4 = () => {
16146
+ }, R4 = () => {
16147
16147
  const { activeOrganization: e, loading: t } = Da(), [n, i] = C(null);
16148
16148
  return X(() => {
16149
16149
  e ? i(e) : !t && !e && n && i(null);
16150
16150
  }, [e, t, n]), { activeOrganization: n || e, loading: t };
16151
- }, R4 = () => {
16151
+ }, P4 = () => {
16152
16152
  var w, y, x;
16153
- const { loading: e, activeOrganization: t } = L4(), { updateOrganization: n } = Da(), { deployment: i } = Oe(), [s, o] = C("general"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h = j(null), g = I(
16153
+ const { loading: e, activeOrganization: t } = R4(), { updateOrganization: n } = Da(), { deployment: i } = Oe(), [s, o] = C("general"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h = j(null), g = I(
16154
16154
  (b, N = "info") => {
16155
16155
  l(b), p(N), setTimeout(() => l(null), 3e3);
16156
16156
  },
@@ -16178,7 +16178,7 @@ const M4 = ({
16178
16178
  };
16179
16179
  return e && !t ? /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(Wr, { className: "w-items-center w-justify-center", children: /* @__PURE__ */ a(Re, {}) }) }) : t ? /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(Zs, { children: /* @__PURE__ */ a(Ti.Provider, { value: { screen: null, setScreen: () => {
16180
16180
  }, toast: g }, children: /* @__PURE__ */ d(Wr, { className: "w-relative", children: [
16181
- /* @__PURE__ */ d(h4, { children: [
16181
+ /* @__PURE__ */ d(f4, { children: [
16182
16182
  /* @__PURE__ */ d(
16183
16183
  "button",
16184
16184
  {
@@ -16208,12 +16208,12 @@ const M4 = ({
16208
16208
  onChange: v
16209
16209
  }
16210
16210
  ),
16211
- /* @__PURE__ */ d(f4, { children: [
16212
- /* @__PURE__ */ a(w4, { children: t.name }),
16213
- /* @__PURE__ */ a(g4, { children: t.member_count != null ? `${t.member_count} members` : "Organization settings" })
16211
+ /* @__PURE__ */ d(w4, { children: [
16212
+ /* @__PURE__ */ a(g4, { children: t.name }),
16213
+ /* @__PURE__ */ a(v4, { children: t.member_count != null ? `${t.member_count} members` : "Organization settings" })
16214
16214
  ] })
16215
16215
  ] }),
16216
- /* @__PURE__ */ a(u4, { children: /* @__PURE__ */ d(m4, { children: [
16216
+ /* @__PURE__ */ a(m4, { children: /* @__PURE__ */ d(p4, { children: [
16217
16217
  /* @__PURE__ */ a(Qa, { $isActive: s === "general", onClick: () => o("general"), children: /* @__PURE__ */ d(Ja, { children: [
16218
16218
  /* @__PURE__ */ a($a, { size: 16 }),
16219
16219
  " General"
@@ -16239,13 +16239,13 @@ const M4 = ({
16239
16239
  " SSO"
16240
16240
  ] }) })
16241
16241
  ] }) }),
16242
- /* @__PURE__ */ d(p4, { children: [
16243
- s === "general" && /* @__PURE__ */ a(b4, { organization: t }),
16244
- s === "domains" && /* @__PURE__ */ a(_4, { organization: t }),
16245
- s === "members" && /* @__PURE__ */ a(x4, { organization: t }),
16246
- s === "invitations" && /* @__PURE__ */ a(C4, { organization: t }),
16247
- s === "roles" && /* @__PURE__ */ a(M4, { organization: t }),
16248
- s === "sso" && /* @__PURE__ */ a(l4, { organization: t })
16242
+ /* @__PURE__ */ d(h4, { children: [
16243
+ s === "general" && /* @__PURE__ */ a(y4, { organization: t }),
16244
+ s === "domains" && /* @__PURE__ */ a(x4, { organization: t }),
16245
+ s === "members" && /* @__PURE__ */ a(k4, { organization: t }),
16246
+ s === "invitations" && /* @__PURE__ */ a(E4, { organization: t }),
16247
+ s === "roles" && /* @__PURE__ */ a(L4, { organization: t }),
16248
+ s === "sso" && /* @__PURE__ */ a(c4, { organization: t })
16249
16249
  ] }),
16250
16250
  m && /* @__PURE__ */ d(
16251
16251
  "div",
@@ -16260,7 +16260,7 @@ const M4 = ({
16260
16260
  ] }) }) }) }) : /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(Zs, { children: /* @__PURE__ */ a(Wr, { className: "w-items-center w-justify-center", children: /* @__PURE__ */ d("div", { className: "w-empty", children: [
16261
16261
  /* @__PURE__ */ a("span", { className: "w-empty-ic", children: /* @__PURE__ */ a(kn, { size: 20 }) }),
16262
16262
  /* @__PURE__ */ a("h4", { children: "No Organization Selected" }),
16263
- /* @__PURE__ */ a(am, {})
16263
+ /* @__PURE__ */ a(nm, {})
16264
16264
  ] }) }) }) });
16265
16265
  }, Fc = ({
16266
16266
  isOpen: e,
@@ -16274,7 +16274,7 @@ const M4 = ({
16274
16274
  showCloseButton: c
16275
16275
  }) => /* @__PURE__ */ a(Xe, { isOpen: e, onClose: t, children: /* @__PURE__ */ a(Xe.Overlay, { children: /* @__PURE__ */ d(Xe.Content, { className: "w-dialog--panel", children: [
16276
16276
  i && /* @__PURE__ */ a(Xe.Header, { showCloseButton: c, children: s || n }),
16277
- m || l || /* @__PURE__ */ a(R4, {}),
16277
+ m || l || /* @__PURE__ */ a(P4, {}),
16278
16278
  o && /* @__PURE__ */ a(Xe.Footer, { children: o })
16279
16279
  ] }) }) }), Ic = ({
16280
16280
  organizationId: e,
@@ -16320,13 +16320,13 @@ const M4 = ({
16320
16320
  onCreateOrganization: p
16321
16321
  }
16322
16322
  ) }) }) }) });
16323
- }, kt = (...e) => e.filter(Boolean).join(" "), P4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-contents", e), ...t }), Ds = ({ className: e, ...t }) => /* @__PURE__ */ a(
16323
+ }, kt = (...e) => e.filter(Boolean).join(" "), $4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-contents", e), ...t }), Ds = ({ className: e, ...t }) => /* @__PURE__ */ a(
16324
16324
  "div",
16325
16325
  {
16326
16326
  className: kt("w-card", "w-flex-col", "w-full", "w-minh-full", e),
16327
16327
  ...t
16328
16328
  }
16329
- ), $4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-tabsbar", e), ...t }), O4 = ({ className: e, ...t }) => /* @__PURE__ */ a(
16329
+ ), O4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-tabsbar", e), ...t }), Z4 = ({ className: e, ...t }) => /* @__PURE__ */ a(
16330
16330
  "div",
16331
16331
  {
16332
16332
  className: kt("w-flex", "w-items-center", "w-gap-1", "w-tabs", e),
@@ -16345,7 +16345,7 @@ const M4 = ({
16345
16345
  ), Wn = ({
16346
16346
  className: e,
16347
16347
  ...t
16348
- }) => /* @__PURE__ */ a("span", { className: kt("w-inline", "w-gap-2", e), ...t }), Z4 = ({ className: e, children: t, ...n }) => /* @__PURE__ */ a("div", { className: kt("w-tabbody", e), ...n, children: /* @__PURE__ */ a("div", { className: "w-tabpane", children: t }) }), ir = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("button", { ref: n, className: kt("w-kebab", e), ...t }));
16348
+ }) => /* @__PURE__ */ a("span", { className: kt("w-inline", "w-gap-2", e), ...t }), H4 = ({ className: e, children: t, ...n }) => /* @__PURE__ */ a("div", { className: kt("w-tabbody", e), ...n, children: /* @__PURE__ */ a("div", { className: "w-tabpane", children: t }) }), ir = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("button", { ref: n, className: kt("w-kebab", e), ...t }));
16349
16349
  ir.displayName = "IconButton";
16350
16350
  const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-sechead", e), ...t }), Us = ({ className: e, ...t }) => /* @__PURE__ */ a(
16351
16351
  "div",
@@ -16365,11 +16365,11 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16365
16365
  className: kt("w-flex", "w-items-center", "w-gap-3", "w-none", e),
16366
16366
  ...t
16367
16367
  }
16368
- ), zi = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-full", e), ...t }), H4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-page-head", e), ...t }), T4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-grow", "w-flex-col", "w-gap-1", e), ...t }), F4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-sec", "w-truncate", e), ...t }), I4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-secsub", "w-truncate", e), ...t }), js = ({
16368
+ ), zi = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-full", e), ...t }), T4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-page-head", e), ...t }), F4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-grow", "w-flex-col", "w-gap-1", e), ...t }), I4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-sec", "w-truncate", e), ...t }), V4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-secsub", "w-truncate", e), ...t }), js = ({
16369
16369
  $first: e,
16370
16370
  className: t,
16371
16371
  ...n
16372
- }) => /* @__PURE__ */ a("div", { className: kt("w-sec", t), ...n }), V4 = () => {
16372
+ }) => /* @__PURE__ */ a("div", { className: kt("w-sec", t), ...n }), z4 = () => {
16373
16373
  var M, L;
16374
16374
  const { activeWorkspace: e, loading: t, updateWorkspace: n } = ca(), { deleteWorkspace: i } = Wa(), { deployment: s } = Oe(), { toast: o } = Pt(), [m, l] = C((e == null ? void 0 : e.name) || ""), [c, p] = C((e == null ? void 0 : e.description) || ""), [u, f] = C({
16375
16375
  mfa_required: !1,
@@ -16557,7 +16557,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16557
16557
  ] })
16558
16558
  ] })
16559
16559
  ] });
16560
- }, z4 = ({
16560
+ }, D4 = ({
16561
16561
  onClose: e,
16562
16562
  onSuccess: t,
16563
16563
  roles: n,
@@ -16675,7 +16675,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16675
16675
  ]
16676
16676
  }
16677
16677
  ) : null;
16678
- }, D4 = () => {
16678
+ }, U4 = () => {
16679
16679
  const {
16680
16680
  activeWorkspace: e,
16681
16681
  getMembers: t,
@@ -16738,7 +16738,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16738
16738
  ] })
16739
16739
  ] }),
16740
16740
  w && /* @__PURE__ */ a(
16741
- z4,
16741
+ D4,
16742
16742
  {
16743
16743
  onClose: () => y(!1),
16744
16744
  onSuccess: () => {
@@ -16762,7 +16762,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16762
16762
  ] }) }),
16763
16763
  /* @__PURE__ */ a(Wt, { children: E.map((R) => /* @__PURE__ */ d(ht, { children: [
16764
16764
  /* @__PURE__ */ a(st, { children: /* @__PURE__ */ a(
16765
- U4,
16765
+ W4,
16766
16766
  {
16767
16767
  member: R,
16768
16768
  session: m
@@ -16772,7 +16772,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16772
16772
  R.created_at
16773
16773
  ).toLocaleDateString() }),
16774
16774
  /* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(
16775
- W4,
16775
+ B4,
16776
16776
  {
16777
16777
  member: R,
16778
16778
  roles: M,
@@ -16814,7 +16814,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16814
16814
  )
16815
16815
  ] })
16816
16816
  ] }) : /* @__PURE__ */ a(Re, {});
16817
- }, U4 = ({ member: e, session: t, subtitle: n }) => {
16817
+ }, W4 = ({ member: e, session: t, subtitle: n }) => {
16818
16818
  var m, l, c;
16819
16819
  const i = e.public_user_data || e.user, s = (i == null ? void 0 : i.id) === ((m = t == null ? void 0 : t.active_signin) == null ? void 0 : m.user_id), o = (p = "", u = "") => `${p[0] || ""}${u[0] || ""} `.toUpperCase();
16820
16820
  return /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-3", children: [
@@ -16833,7 +16833,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16833
16833
  ] })
16834
16834
  ] })
16835
16835
  ] });
16836
- }, W4 = ({ member: e, roles: t, onToggle: n, onRemove: i }) => {
16836
+ }, B4 = ({ member: e, roles: t, onToggle: n, onRemove: i }) => {
16837
16837
  var m;
16838
16838
  const s = e.roles || [], o = (l) => s.some((c) => c.id === l);
16839
16839
  return /* @__PURE__ */ d(gr, { children: [
@@ -16865,14 +16865,14 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16865
16865
  l.id
16866
16866
  );
16867
16867
  }),
16868
- /* @__PURE__ */ a(a4, {}),
16868
+ /* @__PURE__ */ a(n4, {}),
16869
16869
  /* @__PURE__ */ a(Ca, { $destructive: !0, onClick: i, children: /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-2", children: [
16870
16870
  /* @__PURE__ */ a(Ei, { size: 14 }),
16871
16871
  " Remove Member"
16872
16872
  ] }) })
16873
16873
  ] })
16874
16874
  ] });
16875
- }, B4 = ({
16875
+ }, j4 = ({
16876
16876
  onClose: e,
16877
16877
  onSuccess: t,
16878
16878
  roles: n,
@@ -16993,7 +16993,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
16993
16993
  ]
16994
16994
  }
16995
16995
  ) : null;
16996
- }, j4 = () => {
16996
+ }, G4 = () => {
16997
16997
  const {
16998
16998
  activeWorkspace: e,
16999
16999
  loading: t,
@@ -17050,7 +17050,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17050
17050
  )
17051
17051
  ] }),
17052
17052
  y && /* @__PURE__ */ a(
17053
- B4,
17053
+ j4,
17054
17054
  {
17055
17055
  onClose: () => x(!1),
17056
17056
  onSuccess: () => {
@@ -17081,7 +17081,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17081
17081
  /* @__PURE__ */ a(st, { children: ((_ = A.initial_workspace_role) == null ? void 0 : _.name) || ((M = A.initial_organization_role) == null ? void 0 : M.name) || "No role" }),
17082
17082
  /* @__PURE__ */ a(st, { children: new Date(A.created_at).toLocaleDateString() }),
17083
17083
  /* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(
17084
- G4,
17084
+ q4,
17085
17085
  {
17086
17086
  onResend: () => k(A.id),
17087
17087
  onCancel: () => E(A.id)
@@ -17091,7 +17091,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17091
17091
  }) })
17092
17092
  ] }) }) })
17093
17093
  ] });
17094
- }, G4 = ({ onResend: e, onCancel: t }) => /* @__PURE__ */ d(gr, { children: [
17094
+ }, q4 = ({ onResend: e, onCancel: t }) => /* @__PURE__ */ d(gr, { children: [
17095
17095
  /* @__PURE__ */ a(br, { children: /* @__PURE__ */ a(ir, { children: "•••" }) }),
17096
17096
  /* @__PURE__ */ d(vr, { children: [
17097
17097
  /* @__PURE__ */ d(Ca, { onClick: e, children: [
@@ -17229,7 +17229,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17229
17229
  ]
17230
17230
  }
17231
17231
  ) : null;
17232
- }, q4 = () => {
17232
+ }, K4 = () => {
17233
17233
  var E;
17234
17234
  const {
17235
17235
  activeWorkspace: e,
@@ -17305,7 +17305,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17305
17305
  !bi(k) && " • Cannot be edited or deleted"
17306
17306
  ] }) }),
17307
17307
  /* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(
17308
- K4,
17308
+ Y4,
17309
17309
  {
17310
17310
  role: k,
17311
17311
  onEdit: (_) => c({ isOpen: !0, role: k, triggerElement: _ }),
@@ -17340,7 +17340,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17340
17340
  }
17341
17341
  )
17342
17342
  ] });
17343
- }, K4 = ({
17343
+ }, Y4 = ({
17344
17344
  role: e,
17345
17345
  onEdit: t,
17346
17346
  onDelete: n,
@@ -17378,7 +17378,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17378
17378
  "aria-label": "Deployment roles cannot be edited",
17379
17379
  children: "•••"
17380
17380
  }
17381
- ), Y4 = (e) => (e || "").slice(0, 2).toUpperCase() || "W", Q4 = () => {
17381
+ ), Q4 = (e) => (e || "").slice(0, 2).toUpperCase() || "W", J4 = () => {
17382
17382
  var y, x;
17383
17383
  const { activeWorkspace: e, loading: t, updateWorkspace: n } = ca(), { deployment: i } = Oe(), [s, o] = C("general"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h = j(null), g = I(
17384
17384
  (b, N = "info") => {
@@ -17410,13 +17410,13 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17410
17410
  return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(Ds, { className: "w-items-center w-justify-center", children: /* @__PURE__ */ a(Re, {}) }) });
17411
17411
  if (!e) return null;
17412
17412
  const w = (y = e.organization) == null ? void 0 : y.name;
17413
- return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(P4, { children: /* @__PURE__ */ a(
17413
+ return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a($4, { children: /* @__PURE__ */ a(
17414
17414
  Ti.Provider,
17415
17415
  {
17416
17416
  value: { screen: null, setScreen: () => {
17417
17417
  }, toast: g },
17418
17418
  children: /* @__PURE__ */ d(Ds, { className: "w-relative", children: [
17419
- /* @__PURE__ */ d(H4, { children: [
17419
+ /* @__PURE__ */ d(T4, { children: [
17420
17420
  /* @__PURE__ */ d(
17421
17421
  "button",
17422
17422
  {
@@ -17431,7 +17431,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17431
17431
  title: "Change logo",
17432
17432
  "aria-label": "Change workspace logo",
17433
17433
  children: [
17434
- e.image_url ? /* @__PURE__ */ a("img", { src: e.image_url, alt: e.name }) : Y4(e.name),
17434
+ e.image_url ? /* @__PURE__ */ a("img", { src: e.image_url, alt: e.name }) : Q4(e.name),
17435
17435
  /* @__PURE__ */ a("span", { className: "w-avatar-veil", children: u ? /* @__PURE__ */ a(Re, { size: 14 }) : /* @__PURE__ */ a(cr, { size: 16 }) })
17436
17436
  ]
17437
17437
  }
@@ -17447,12 +17447,12 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17447
17447
  onChange: v
17448
17448
  }
17449
17449
  ),
17450
- /* @__PURE__ */ d(T4, { children: [
17451
- /* @__PURE__ */ a(F4, { children: e.name }),
17452
- /* @__PURE__ */ a(I4, { children: w ? `${w} · Workspace settings` : "Workspace settings" })
17450
+ /* @__PURE__ */ d(F4, { children: [
17451
+ /* @__PURE__ */ a(I4, { children: e.name }),
17452
+ /* @__PURE__ */ a(V4, { children: w ? `${w} · Workspace settings` : "Workspace settings" })
17453
17453
  ] })
17454
17454
  ] }),
17455
- /* @__PURE__ */ a($4, { children: /* @__PURE__ */ d(O4, { children: [
17455
+ /* @__PURE__ */ a(O4, { children: /* @__PURE__ */ d(Z4, { children: [
17456
17456
  /* @__PURE__ */ a(
17457
17457
  Un,
17458
17458
  {
@@ -17498,11 +17498,11 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17498
17498
  }
17499
17499
  )
17500
17500
  ] }) }),
17501
- /* @__PURE__ */ d(Z4, { children: [
17502
- s === "general" && /* @__PURE__ */ a(V4, {}),
17503
- s === "members" && /* @__PURE__ */ a(D4, {}),
17504
- s === "invitations" && /* @__PURE__ */ a(j4, {}),
17505
- s === "roles" && /* @__PURE__ */ a(q4, {})
17501
+ /* @__PURE__ */ d(H4, { children: [
17502
+ s === "general" && /* @__PURE__ */ a(z4, {}),
17503
+ s === "members" && /* @__PURE__ */ a(U4, {}),
17504
+ s === "invitations" && /* @__PURE__ */ a(G4, {}),
17505
+ s === "roles" && /* @__PURE__ */ a(K4, {})
17506
17506
  ] }),
17507
17507
  m && /* @__PURE__ */ d(
17508
17508
  "div",
@@ -17529,12 +17529,12 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
17529
17529
  showCloseButton: c
17530
17530
  }) => /* @__PURE__ */ a(Xe, { isOpen: e, onClose: t, children: /* @__PURE__ */ a(Xe.Overlay, { children: /* @__PURE__ */ d(Xe.Content, { className: "w-dialog--panel", children: [
17531
17531
  i && /* @__PURE__ */ a(Xe.Header, { showCloseButton: c, children: s || n }),
17532
- m || l || /* @__PURE__ */ a(Q4, {}),
17532
+ m || l || /* @__PURE__ */ a(J4, {}),
17533
17533
  o && /* @__PURE__ */ a(Xe.Footer, { children: o })
17534
- ] }) }) }), J4 = ["organization:admin"], X4 = [
17534
+ ] }) }) }), X4 = ["organization:admin"], em = [
17535
17535
  "organization:admin",
17536
17536
  "organization:manage"
17537
- ], em = ["workspace:admin"], tm = [
17537
+ ], tm = ["workspace:admin"], am = [
17538
17538
  "workspace:admin",
17539
17539
  "workspace:manage"
17540
17540
  ];
@@ -17549,10 +17549,10 @@ function Uc(e, t) {
17549
17549
  ) : !1;
17550
17550
  }
17551
17551
  function Wc(e) {
17552
- return Uc(e, X4);
17552
+ return Uc(e, em);
17553
17553
  }
17554
- function Vp(e) {
17555
- return Uc(e, J4);
17554
+ function zp(e) {
17555
+ return Uc(e, X4);
17556
17556
  }
17557
17557
  function Bc(e, t) {
17558
17558
  return e != null && e.roles ? e.roles.some(
@@ -17565,12 +17565,12 @@ function Bc(e, t) {
17565
17565
  ) : !1;
17566
17566
  }
17567
17567
  function jc(e) {
17568
- return Bc(e, tm);
17568
+ return Bc(e, am);
17569
17569
  }
17570
- function zp(e) {
17571
- return Bc(e, em);
17570
+ function Dp(e) {
17571
+ return Bc(e, tm);
17572
17572
  }
17573
- const am = ({ showPersonal: e = !0 }) => {
17573
+ const nm = ({ showPersonal: e = !0 }) => {
17574
17574
  var Fe, fe, K;
17575
17575
  const [t, n] = C(!1), [i, s] = C(!1), [o, m] = C(/* @__PURE__ */ new Set()), l = j(null), c = j(null), p = St({ triggerRef: l, isOpen: t, minWidth: 300 }), u = ta(!1), f = ta(!1), h = ta(!1), g = ta(!1), [v, w] = C(null), [y, x] = C(null), b = Rn(), { organizationMemberships: N, loading: E, refetch: k } = Ua(), { activeOrganization: A, activeMembership: _, leave: M } = Da(), { activeWorkspace: L, activeMembership: F, leave: R } = ca(), { workspaces: z, loading: O } = Wa(), { session: S, switchOrganization: Z, switchWorkspace: T } = gt(), { deployment: P } = Oe(), $ = P == null ? void 0 : P.b2b_settings.organizations_enabled, H = $ && (P == null ? void 0 : P.b2b_settings.workspaces_enabled), V = P == null ? void 0 : P.b2b_settings.allow_users_to_create_orgs, q = !_, G = ot(() => {
17576
17576
  var ne, pe;
@@ -17886,7 +17886,7 @@ const La = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("span", { ref: n,
17886
17886
  La.displayName = "TabIcon";
17887
17887
  const Qc = ce(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ a("div", { ref: i, className: ye("w-tabbody", e), ...n, children: /* @__PURE__ */ a("div", { className: "w-tabpane", children: t }) }));
17888
17888
  Qc.displayName = "TabContent";
17889
- const nm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17889
+ const rm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17890
17890
  "button",
17891
17891
  {
17892
17892
  ref: n,
@@ -17894,7 +17894,7 @@ const nm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17894
17894
  ...t
17895
17895
  }
17896
17896
  ));
17897
- nm.displayName = "IconButton";
17897
+ rm.displayName = "IconButton";
17898
17898
  const Jc = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17899
17899
  "div",
17900
17900
  {
@@ -17911,7 +17911,7 @@ const Jc = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17911
17911
  }
17912
17912
  ));
17913
17913
  Jc.displayName = "HeaderCTAContainer";
17914
- const rm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17914
+ const im = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17915
17915
  "div",
17916
17916
  {
17917
17917
  ref: n,
@@ -17919,9 +17919,9 @@ const rm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17919
17919
  ...t
17920
17920
  }
17921
17921
  ));
17922
- rm.displayName = "ProfileSectionLayout";
17923
- const im = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-none", e), ...t }));
17924
- im.displayName = "ProfileImageContainer";
17922
+ im.displayName = "ProfileSectionLayout";
17923
+ const sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-none", e), ...t }));
17924
+ sm.displayName = "ProfileImageContainer";
17925
17925
  const Xc = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17926
17926
  "div",
17927
17927
  {
@@ -17955,7 +17955,7 @@ const xr = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n,
17955
17955
  xr.displayName = "DesktopTableContainer";
17956
17956
  const a0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-flex", "w-gap-3", e), ...t }));
17957
17957
  a0.displayName = "FormRow";
17958
- const sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17958
+ const om = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17959
17959
  "div",
17960
17960
  {
17961
17961
  ref: n,
@@ -17963,8 +17963,8 @@ const sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17963
17963
  ...t
17964
17964
  }
17965
17965
  ));
17966
- sm.displayName = "ConnectionItemRow";
17967
- const om = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17966
+ om.displayName = "ConnectionItemRow";
17967
+ const lm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17968
17968
  "div",
17969
17969
  {
17970
17970
  ref: n,
@@ -17972,8 +17972,8 @@ const om = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17972
17972
  ...t
17973
17973
  }
17974
17974
  ));
17975
- om.displayName = "ConnectionLeft";
17976
- const lm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17975
+ lm.displayName = "ConnectionLeft";
17976
+ const cm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17977
17977
  "div",
17978
17978
  {
17979
17979
  ref: n,
@@ -17988,7 +17988,7 @@ const lm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17988
17988
  ...t
17989
17989
  }
17990
17990
  ));
17991
- lm.displayName = "ConnectionRight";
17991
+ cm.displayName = "ConnectionRight";
17992
17992
  const Ui = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17993
17993
  "div",
17994
17994
  {
@@ -17998,7 +17998,7 @@ const Ui = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
17998
17998
  }
17999
17999
  ));
18000
18000
  Ui.displayName = "IconWrapper";
18001
- const cm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18001
+ const dm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18002
18002
  "div",
18003
18003
  {
18004
18004
  ref: n,
@@ -18006,7 +18006,7 @@ const cm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18006
18006
  ...t
18007
18007
  }
18008
18008
  ));
18009
- cm.displayName = "ButtonActions";
18009
+ dm.displayName = "ButtonActions";
18010
18010
  const n0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18011
18011
  "div",
18012
18012
  {
@@ -18016,8 +18016,8 @@ const n0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18016
18016
  }
18017
18017
  ));
18018
18018
  n0.displayName = "PageHeader";
18019
- const dm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-avatar", e), ...t }));
18020
- dm.displayName = "PageHeaderAvatar";
18019
+ const um = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-avatar", e), ...t }));
18020
+ um.displayName = "PageHeaderAvatar";
18021
18021
  const r0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18022
18022
  "div",
18023
18023
  {
@@ -18038,7 +18038,7 @@ const s0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18038
18038
  }
18039
18039
  ));
18040
18040
  s0.displayName = "PageHeaderSub";
18041
- const um = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18041
+ const mm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18042
18042
  "div",
18043
18043
  {
18044
18044
  ref: n,
@@ -18052,14 +18052,14 @@ const um = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18052
18052
  ...t
18053
18053
  }
18054
18054
  ));
18055
- um.displayName = "PageHeaderActions";
18056
- const mm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-flex-col", "w-gap-4", e), ...t }));
18057
- mm.displayName = "PageContent";
18058
- const pm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("section", { ref: n, className: ye("w-card", e), ...t }));
18059
- pm.displayName = "Card";
18060
- const hm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("section", { ref: n, className: ye("w-card", "w-danger", e), ...t }));
18061
- hm.displayName = "DangerCard";
18062
- const fm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18055
+ mm.displayName = "PageHeaderActions";
18056
+ const pm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-flex-col", "w-gap-4", e), ...t }));
18057
+ pm.displayName = "PageContent";
18058
+ const hm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("section", { ref: n, className: ye("w-card", e), ...t }));
18059
+ hm.displayName = "Card";
18060
+ const fm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("section", { ref: n, className: ye("w-card", "w-danger", e), ...t }));
18061
+ fm.displayName = "DangerCard";
18062
+ const wm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18063
18063
  "div",
18064
18064
  {
18065
18065
  ref: n,
@@ -18067,8 +18067,8 @@ const fm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18067
18067
  ...t
18068
18068
  }
18069
18069
  ));
18070
- fm.displayName = "CardHeader";
18071
- const wm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18070
+ wm.displayName = "CardHeader";
18071
+ const gm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18072
18072
  "div",
18073
18073
  {
18074
18074
  ref: n,
@@ -18076,12 +18076,12 @@ const wm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18076
18076
  ...t
18077
18077
  }
18078
18078
  ));
18079
- wm.displayName = "CardTitleBlock";
18080
- const gm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("h3", { ref: n, className: ye("w-sec", e), ...t }));
18081
- gm.displayName = "CardTitle";
18082
- const vm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("p", { ref: n, className: ye("w-secsub", e), ...t }));
18083
- vm.displayName = "CardSubtitle";
18084
- const bm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18079
+ gm.displayName = "CardTitleBlock";
18080
+ const vm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("h3", { ref: n, className: ye("w-sec", e), ...t }));
18081
+ vm.displayName = "CardTitle";
18082
+ const bm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("p", { ref: n, className: ye("w-secsub", e), ...t }));
18083
+ bm.displayName = "CardSubtitle";
18084
+ const ym = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18085
18085
  "div",
18086
18086
  {
18087
18087
  ref: n,
@@ -18089,12 +18089,12 @@ const bm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18089
18089
  ...t
18090
18090
  }
18091
18091
  ));
18092
- bm.displayName = "CardActions";
18093
- const ym = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-hr", e), ...t }));
18094
- ym.displayName = "CardDivider";
18095
- const _m = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-card-body", e), ...t }));
18096
- _m.displayName = "CardBody";
18097
- const xm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18092
+ ym.displayName = "CardActions";
18093
+ const _m = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-hr", e), ...t }));
18094
+ _m.displayName = "CardDivider";
18095
+ const xm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-card-body", e), ...t }));
18096
+ xm.displayName = "CardBody";
18097
+ const km = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18098
18098
  "div",
18099
18099
  {
18100
18100
  ref: n,
@@ -18102,10 +18102,10 @@ const xm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18102
18102
  ...t
18103
18103
  }
18104
18104
  ));
18105
- xm.displayName = "CardFooter";
18106
- const km = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-list", e), ...t }));
18107
- km.displayName = "RowList";
18108
- const Nm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18105
+ km.displayName = "CardFooter";
18106
+ const Nm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-list", e), ...t }));
18107
+ Nm.displayName = "RowList";
18108
+ const Am = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18109
18109
  "div",
18110
18110
  {
18111
18111
  ref: n,
@@ -18113,8 +18113,8 @@ const Nm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18113
18113
  ...t
18114
18114
  }
18115
18115
  ));
18116
- Nm.displayName = "RowItem";
18117
- const Am = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18116
+ Am.displayName = "RowItem";
18117
+ const Cm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18118
18118
  "div",
18119
18119
  {
18120
18120
  ref: n,
@@ -18122,12 +18122,12 @@ const Am = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18122
18122
  ...t
18123
18123
  }
18124
18124
  ));
18125
- Am.displayName = "RowInfo";
18126
- const Cm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-sec", e), ...t }));
18127
- Cm.displayName = "RowTitle";
18128
- const Em = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-secsub", e), ...t }));
18129
- Em.displayName = "RowSub";
18130
- const Sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18125
+ Cm.displayName = "RowInfo";
18126
+ const Em = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-sec", e), ...t }));
18127
+ Em.displayName = "RowTitle";
18128
+ const Sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-secsub", e), ...t }));
18129
+ Sm.displayName = "RowSub";
18130
+ const Mm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18131
18131
  "div",
18132
18132
  {
18133
18133
  ref: n,
@@ -18135,8 +18135,8 @@ const Sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18135
18135
  ...t
18136
18136
  }
18137
18137
  ));
18138
- Sm.displayName = "RowActions";
18139
- const Mm = {
18138
+ Mm.displayName = "RowActions";
18139
+ const Lm = {
18140
18140
  primary: "w-pill--current",
18141
18141
  success: "w-pill--success",
18142
18142
  warning: "w-pill--pending",
@@ -18150,16 +18150,16 @@ const Mm = {
18150
18150
  }) => /* @__PURE__ */ d(
18151
18151
  "span",
18152
18152
  {
18153
- className: ye("w-pill", Mm[e], t),
18153
+ className: ye("w-pill", Lm[e], t),
18154
18154
  ...i,
18155
18155
  children: [
18156
18156
  /* @__PURE__ */ a("span", { className: "w-dot" }),
18157
18157
  n
18158
18158
  ]
18159
18159
  }
18160
- ), Lm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-list", e), ...t }));
18161
- Lm.displayName = "Table";
18162
- const Rm = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */ a(
18160
+ ), Rm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-list", e), ...t }));
18161
+ Rm.displayName = "Table";
18162
+ const Pm = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */ a(
18163
18163
  "div",
18164
18164
  {
18165
18165
  ref: s,
@@ -18168,10 +18168,10 @@ const Rm = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */
18168
18168
  ...i
18169
18169
  }
18170
18170
  ));
18171
- Rm.displayName = "TableHead";
18172
- const Pm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: e, ...t }));
18173
- Pm.displayName = "Th";
18174
- const $m = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */ a(
18171
+ Pm.displayName = "TableHead";
18172
+ const $m = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: e, ...t }));
18173
+ $m.displayName = "Th";
18174
+ const Om = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */ a(
18175
18175
  "div",
18176
18176
  {
18177
18177
  ref: s,
@@ -18180,8 +18180,8 @@ const $m = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */
18180
18180
  ...i
18181
18181
  }
18182
18182
  ));
18183
- $m.displayName = "Tr";
18184
- const Om = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18183
+ Om.displayName = "Tr";
18184
+ const Zm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18185
18185
  "div",
18186
18186
  {
18187
18187
  ref: n,
@@ -18189,8 +18189,8 @@ const Om = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18189
18189
  ...t
18190
18190
  }
18191
18191
  ));
18192
- Om.displayName = "Td";
18193
- const Zm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18192
+ Zm.displayName = "Td";
18193
+ const Hm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18194
18194
  "div",
18195
18195
  {
18196
18196
  ref: n,
@@ -18198,12 +18198,12 @@ const Zm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
18198
18198
  ...t
18199
18199
  }
18200
18200
  ));
18201
- Zm.displayName = "FieldGrid";
18202
- const Hm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-field", e), ...t }));
18203
- Hm.displayName = "Field";
18204
- const Tm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("label", { ref: n, className: ye("w-label", e), ...t }));
18205
- Tm.displayName = "FieldLabel";
18206
- const Fm = () => {
18201
+ Hm.displayName = "FieldGrid";
18202
+ const Tm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-field", e), ...t }));
18203
+ Tm.displayName = "Field";
18204
+ const Fm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("label", { ref: n, className: ye("w-label", e), ...t }));
18205
+ Fm.displayName = "FieldLabel";
18206
+ const Im = () => {
18207
18207
  var z, O;
18208
18208
  const { deployment: e } = Oe(), { refetch: t } = gt(), { user: n, updateProfile: i, deleteAccount: s } = Ba(), { toast: o } = da(), [m, l] = C(""), [c, p] = C(""), [u, f] = C(""), [h, g] = C(!1), [v, w] = C(!1), [y, x] = C(!1), [b, N] = C("");
18209
18209
  X(() => {
@@ -18475,7 +18475,7 @@ const Fm = () => {
18475
18475
  ] })
18476
18476
  }
18477
18477
  ) : null;
18478
- }, Im = () => {
18478
+ }, Vm = () => {
18479
18479
  var L, F, R, z;
18480
18480
  const { deployment: e } = Oe(), { toast: t } = da(), [n, i] = C(""), [s, o] = C(!1), [m, l] = C(null), [c, p] = C(/* @__PURE__ */ new Set()), u = j(null), f = j({}), {
18481
18481
  user: h,
@@ -18763,7 +18763,7 @@ const Fm = () => {
18763
18763
  ] })
18764
18764
  }
18765
18765
  ) : null;
18766
- }, Vm = () => {
18766
+ }, zm = () => {
18767
18767
  var F, R, z, O;
18768
18768
  const { deployment: e } = Oe(), { toast: t } = da(), [n, i] = C(""), [s, o] = C(!1), [m, l] = C(null), [c, p] = C(/* @__PURE__ */ new Set()), u = j(null), f = j({}), {
18769
18769
  user: h,
@@ -18928,7 +18928,7 @@ const Fm = () => {
18928
18928
  }
18929
18929
  )
18930
18930
  ] });
18931
- }, zm = (e) => /* @__PURE__ */ d(
18931
+ }, Dm = (e) => /* @__PURE__ */ d(
18932
18932
  "svg",
18933
18933
  {
18934
18934
  width: "800px",
@@ -18944,15 +18944,15 @@ const Fm = () => {
18944
18944
  /* @__PURE__ */ a("path", { fill: "#FFBA08", d: "M8.5 8.5H15V15H8.5V8.5z" })
18945
18945
  ]
18946
18946
  }
18947
- ), Dm = {
18947
+ ), Um = {
18948
18948
  google_oauth: { icon: /* @__PURE__ */ a(pc, {}), label: "Google" },
18949
- microsoft_oauth: { icon: /* @__PURE__ */ a(zm, {}), label: "Microsoft" },
18949
+ microsoft_oauth: { icon: /* @__PURE__ */ a(Dm, {}), label: "Microsoft" },
18950
18950
  github_oauth: { icon: /* @__PURE__ */ a(mc, {}), label: "GitHub" },
18951
18951
  gitlab_oauth: { icon: /* @__PURE__ */ a(wc, {}), label: "GitLab" },
18952
18952
  linkedin_oauth: { icon: /* @__PURE__ */ a(fc, {}), label: "LinkedIn" },
18953
18953
  discord_oauth: { icon: /* @__PURE__ */ a(gc, {}), label: "Discord" },
18954
18954
  x_oauth: { icon: /* @__PURE__ */ a(hc, {}), label: "X" }
18955
- }, Um = () => {
18955
+ }, Wm = () => {
18956
18956
  const { user: e, disconnectSocialConnection: t, connectSocialAccount: n } = Ba(), { deployment: i } = Oe(), s = (i == null ? void 0 : i.social_connections.filter((l) => l.enabled)) || [], o = (l) => {
18957
18957
  n({ provider: l, redirectUri: window.location.href });
18958
18958
  }, m = async (l) => {
@@ -18971,7 +18971,7 @@ const Fm = () => {
18971
18971
  ] }) }),
18972
18972
  /* @__PURE__ */ a("div", { className: "w-list", children: s.map((l) => {
18973
18973
  var f;
18974
- const c = Dm[l.provider];
18974
+ const c = Um[l.provider];
18975
18975
  if (!c) return null;
18976
18976
  const p = ((f = e == null ? void 0 : e.social_connections) == null ? void 0 : f.filter(
18977
18977
  (h) => h.provider === l.provider
@@ -19032,7 +19032,7 @@ const Fm = () => {
19032
19032
  }) })
19033
19033
  ] });
19034
19034
  };
19035
- var Wm = Object.defineProperty, sr = Object.getOwnPropertySymbols, o0 = Object.prototype.hasOwnProperty, l0 = Object.prototype.propertyIsEnumerable, Ys = (e, t, n) => t in e ? Wm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _i = (e, t) => {
19035
+ var Bm = Object.defineProperty, sr = Object.getOwnPropertySymbols, o0 = Object.prototype.hasOwnProperty, l0 = Object.prototype.propertyIsEnumerable, Ys = (e, t, n) => t in e ? Bm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _i = (e, t) => {
19036
19036
  for (var n in t || (t = {}))
19037
19037
  o0.call(t, n) && Ys(e, n, t[n]);
19038
19038
  if (sr)
@@ -19594,12 +19594,12 @@ var en = za;
19594
19594
  * Copyright (c) Paul O'Shannessy
19595
19595
  * SPDX-License-Identifier: ISC
19596
19596
  */
19597
- var Bm = {
19597
+ var jm = {
19598
19598
  L: en.QrCode.Ecc.LOW,
19599
19599
  M: en.QrCode.Ecc.MEDIUM,
19600
19600
  Q: en.QrCode.Ecc.QUARTILE,
19601
19601
  H: en.QrCode.Ecc.HIGH
19602
- }, c0 = 128, d0 = "L", u0 = "#FFFFFF", m0 = "#000000", p0 = !1, h0 = 1, jm = 4, Gm = 0, qm = 0.1;
19602
+ }, c0 = 128, d0 = "L", u0 = "#FFFFFF", m0 = "#000000", p0 = !1, h0 = 1, Gm = 4, qm = 0, Km = 0.1;
19603
19603
  function f0(e, t = 0) {
19604
19604
  const n = [];
19605
19605
  return e.forEach(function(i, s) {
@@ -19626,10 +19626,10 @@ function f0(e, t = 0) {
19626
19626
  function w0(e, t) {
19627
19627
  return e.slice().map((n, i) => i < t.y || i >= t.y + t.h ? n : n.map((s, o) => o < t.x || o >= t.x + t.w ? s : !1));
19628
19628
  }
19629
- function Km(e, t, n, i) {
19629
+ function Ym(e, t, n, i) {
19630
19630
  if (i == null)
19631
19631
  return null;
19632
- const s = e.length + n * 2, o = Math.floor(t * qm), m = s / t, l = (i.width || o) * m, c = (i.height || o) * m, p = i.x == null ? e.length / 2 - l / 2 : i.x * m, u = i.y == null ? e.length / 2 - c / 2 : i.y * m, f = i.opacity == null ? 1 : i.opacity;
19632
+ const s = e.length + n * 2, o = Math.floor(t * Km), m = s / t, l = (i.width || o) * m, c = (i.height || o) * m, p = i.x == null ? e.length / 2 - l / 2 : i.x * m, u = i.y == null ? e.length / 2 - c / 2 : i.y * m, f = i.opacity == null ? 1 : i.opacity;
19633
19633
  let h = null;
19634
19634
  if (i.excavate) {
19635
19635
  let v = Math.floor(p), w = Math.floor(u), y = Math.ceil(l + p - v), x = Math.ceil(c + u - w);
@@ -19638,8 +19638,8 @@ function Km(e, t, n, i) {
19638
19638
  const g = i.crossOrigin;
19639
19639
  return { x: p, y: u, h: c, w: l, excavation: h, opacity: f, crossOrigin: g };
19640
19640
  }
19641
- function Ym(e, t) {
19642
- return t != null ? Math.max(Math.floor(t), 0) : e ? jm : Gm;
19641
+ function Qm(e, t) {
19642
+ return t != null ? Math.max(Math.floor(t), 0) : e ? Gm : qm;
19643
19643
  }
19644
19644
  function g0({
19645
19645
  value: e,
@@ -19655,7 +19655,7 @@ function g0({
19655
19655
  const v = (Array.isArray(e) ? e : [e]).reduce((w, y) => (w.push(...en.QrSegment.makeSegments(y)), w), []);
19656
19656
  return en.QrCode.encodeSegments(
19657
19657
  v,
19658
- Bm[t],
19658
+ jm[t],
19659
19659
  n,
19660
19660
  void 0,
19661
19661
  void 0,
@@ -19664,7 +19664,7 @@ function g0({
19664
19664
  }, [e, t, n, l]);
19665
19665
  const { cells: p, margin: u, numCells: f, calculatedImageSettings: h } = xe.useMemo(() => {
19666
19666
  let g = c.getModules();
19667
- const v = Ym(i, s), w = g.length + v * 2, y = Km(
19667
+ const v = Qm(i, s), w = g.length + v * 2, y = Ym(
19668
19668
  g,
19669
19669
  m,
19670
19670
  v,
@@ -19685,14 +19685,14 @@ function g0({
19685
19685
  calculatedImageSettings: h
19686
19686
  };
19687
19687
  }
19688
- var Qm = (function() {
19688
+ var Jm = (function() {
19689
19689
  try {
19690
19690
  new Path2D().addPath(new Path2D());
19691
19691
  } catch {
19692
19692
  return !1;
19693
19693
  }
19694
19694
  return !0;
19695
- })(), Jm = xe.forwardRef(
19695
+ })(), Xm = xe.forwardRef(
19696
19696
  function(t, n) {
19697
19697
  const i = t, {
19698
19698
  value: s,
@@ -19745,7 +19745,7 @@ var Qm = (function() {
19745
19745
  const H = window.devicePixelRatio || 1;
19746
19746
  S.height = S.width = o * H;
19747
19747
  const V = o / F * H;
19748
- Z.scale(V, V), Z.fillStyle = l, Z.fillRect(0, 0, F, F), Z.fillStyle = c, Qm ? Z.fill(new Path2D(f0(T, M))) : L.forEach(function(q, G) {
19748
+ Z.scale(V, V), Z.fillStyle = l, Z.fillRect(0, 0, F, F), Z.fillStyle = c, Jm ? Z.fill(new Path2D(f0(T, M))) : L.forEach(function(q, G) {
19749
19749
  q.forEach(function(U, Y) {
19750
19750
  U && Z.fillRect(Y + M, G + M, 1, 1);
19751
19751
  });
@@ -19786,7 +19786,7 @@ var Qm = (function() {
19786
19786
  ), O);
19787
19787
  }
19788
19788
  );
19789
- Jm.displayName = "QRCodeCanvas";
19789
+ Xm.displayName = "QRCodeCanvas";
19790
19790
  var Wi = xe.forwardRef(
19791
19791
  function(t, n) {
19792
19792
  const i = t, {
@@ -20025,7 +20025,7 @@ const Qs = ({
20025
20025
  ]
20026
20026
  }
20027
20027
  ) : null;
20028
- }, Xm = ({
20028
+ }, e6 = ({
20029
20029
  onClose: e,
20030
20030
  onRemovePassword: t,
20031
20031
  triggerRef: n
@@ -20115,7 +20115,7 @@ const Qs = ({
20115
20115
  ]
20116
20116
  }
20117
20117
  ) : null;
20118
- }, e6 = ({
20118
+ }, t6 = ({
20119
20119
  onClose: e,
20120
20120
  onSetupTOTP: t,
20121
20121
  onVerifyTOTP: n,
@@ -20270,7 +20270,7 @@ const Qs = ({
20270
20270
  ] })
20271
20271
  }
20272
20272
  ) : null;
20273
- }, t6 = ({
20273
+ }, a6 = ({
20274
20274
  codes: e,
20275
20275
  onClose: t,
20276
20276
  onCopy: n,
@@ -20347,7 +20347,7 @@ const Qs = ({
20347
20347
  ] })
20348
20348
  }
20349
20349
  ) : null;
20350
- }, a6 = ({
20350
+ }, n6 = ({
20351
20351
  onClose: e,
20352
20352
  onAddPasskey: t,
20353
20353
  triggerRef: n
@@ -20428,9 +20428,9 @@ const Qs = ({
20428
20428
  ]
20429
20429
  }
20430
20430
  ) : null;
20431
- }, n6 = ({
20431
+ }, r6 = ({
20432
20432
  children: e
20433
- }) => /* @__PURE__ */ a("div", { className: "w-eyebrow", children: e }), r6 = () => {
20433
+ }) => /* @__PURE__ */ a("div", { className: "w-eyebrow", children: e }), i6 = () => {
20434
20434
  var pa, ha, fa, wa, me, Ce, He;
20435
20435
  const { deployment: e } = Oe(), {
20436
20436
  user: t,
@@ -20765,7 +20765,7 @@ const Qs = ({
20765
20765
  ] }) : /* @__PURE__ */ a(se, { children: Mt.length ? /* @__PURE__ */ a("div", { children: Mt.map((ae, Ee) => {
20766
20766
  const it = Ee > 0 ? Mt[Ee - 1].group : null, Ke = ae.group !== it, Lt = Mt[Ee + 1], Rt = Lt && Lt.group === ae.group;
20767
20767
  return /* @__PURE__ */ d("div", { children: [
20768
- Ke && /* @__PURE__ */ a(n6, { $first: Ee === 0, children: ae.group === "sign-in" ? "Sign-in methods" : "Recovery" }),
20768
+ Ke && /* @__PURE__ */ a(r6, { $first: Ee === 0, children: ae.group === "sign-in" ? "Sign-in methods" : "Recovery" }),
20769
20769
  /* @__PURE__ */ d(Xc, { children: [
20770
20770
  /* @__PURE__ */ d(e0, { children: [
20771
20771
  /* @__PURE__ */ a("div", { className: "w-flex w-items-center w-wrap w-gap-2 w-sec", children: /* @__PURE__ */ a("span", { children: ae.name }) }),
@@ -20820,7 +20820,7 @@ const Qs = ({
20820
20820
  }
20821
20821
  ),
20822
20822
  _ && /* @__PURE__ */ a(
20823
- Xm,
20823
+ e6,
20824
20824
  {
20825
20825
  triggerRef: O,
20826
20826
  onClose: () => M(
@@ -20880,7 +20880,7 @@ const Qs = ({
20880
20880
  }
20881
20881
  ),
20882
20882
  N && /* @__PURE__ */ a(
20883
- e6,
20883
+ t6,
20884
20884
  {
20885
20885
  triggerRef: R,
20886
20886
  onClose: () => E(
@@ -20952,7 +20952,7 @@ const Qs = ({
20952
20952
  }
20953
20953
  ),
20954
20954
  L && /* @__PURE__ */ a(
20955
- t6,
20955
+ a6,
20956
20956
  {
20957
20957
  triggerRef: S,
20958
20958
  codes: K,
@@ -21023,7 +21023,7 @@ const Qs = ({
21023
21023
  }
21024
21024
  ),
21025
21025
  U && /* @__PURE__ */ a(
21026
- a6,
21026
+ n6,
21027
21027
  {
21028
21028
  triggerRef: _e,
21029
21029
  onClose: () => Y(
@@ -21101,7 +21101,7 @@ const Qs = ({
21101
21101
  description: "Contact your administrator to enable security features."
21102
21102
  }
21103
21103
  ) });
21104
- }, i6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", ...e, children: [
21104
+ }, s6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", ...e, children: [
21105
21105
  /* @__PURE__ */ d("defs", { children: [
21106
21106
  /* @__PURE__ */ d(
21107
21107
  "linearGradient",
@@ -21207,7 +21207,7 @@ const Qs = ({
21207
21207
  }
21208
21208
  }
21209
21209
  )
21210
- ] }), s6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", width: 512, height: 512, viewBox: "0 0 512 512", ...e, children: [
21210
+ ] }), o6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", width: 512, height: 512, viewBox: "0 0 512 512", ...e, children: [
21211
21211
  /* @__PURE__ */ d("defs", { children: [
21212
21212
  /* @__PURE__ */ d("radialGradient", { id: "g", cx: "210%", cy: "-100%", r: "290%", children: [
21213
21213
  /* @__PURE__ */ a("stop", { offset: 0.1, stopColor: "#ffe226" }),
@@ -21397,7 +21397,7 @@ const Qs = ({
21397
21397
  d: "M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0 .039.015.136.047.4C427.706 111.135 381.627 83.823 344 24.355c-1.9-3.007-3.805-6.022-5.661-9.2a73.716 73.716 0 0 1-2.646-4.972A43.7 43.7 0 0 1 332.1.677a.626.626 0 0 0-.546-.644.818.818 0 0 0-.451 0c-.034.012-.084.051-.12.065-.053.021-.12.069-.176.1.027-.036.083-.117.1-.136-60.37 35.356-80.85 100.761-82.732 133.484 2.8-.194 5.592-.429 8.442-.429 45.053 0 84.291 24.77 105.3 61.484-12.832-9.014-35.81-17.917-57.947-14.067 86.441 43.214 63.235 192.026-56.545 186.408a106.743 106.743 0 0 1-31.271-6.031 134.51 134.51 0 0 1-7.059-2.886c-1.356-.618-2.711-1.243-4.05-1.935.048.033.114.07.163.1a144.108 144.108 0 0 1-3.5-1.743c1.124.537 2.18 1.124 3.334 1.639-29.35-15.168-53.584-43.833-56.611-78.643 0 0 11.093-41.335 79.432-41.335 7.388 0 28.509-20.615 28.9-26.593-.089-1.952-41.917-18.59-58.223-34.656-8.713-8.584-12.85-12.723-16.514-15.828a71.355 71.355 0 0 0-6.225-4.7 111.338 111.338 0 0 1-.674-58.732c-24.688 11.241-43.89 29.01-57.85 44.7h-.111c-9.527-12.067-8.855-51.873-8.312-60.184-.114-.515-7.107 3.63-8.023 4.255a175.073 175.073 0 0 0-23.486 20.12 210.478 210.478 0 0 0-22.435 26.916c0 .012-.007.026-.011.038 0-.013.007-.026.011-.038a202.838 202.838 0 0 0-32.247 72.805c-.115.521-.212 1.061-.324 1.586-.452 2.116-2.486 12.853-2.77 15.156-.022.177.021-.176 0 0a279.565 279.565 0 0 0-3.544 33.53c0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746zm-23.841 12.341c.012.085.027.174.04.259l-.008-.026-.032-.233z"
21398
21398
  }
21399
21399
  )
21400
- ] }), o6 = (e) => /* @__PURE__ */ d(
21400
+ ] }), l6 = (e) => /* @__PURE__ */ d(
21401
21401
  "svg",
21402
21402
  {
21403
21403
  xmlns: "http://www.w3.org/2000/svg",
@@ -21540,7 +21540,7 @@ const Qs = ({
21540
21540
  /* @__PURE__ */ a("path", { d: "m12.967 50.59 23.416-15.752L53.2 12.173z", opacity: 0.243 })
21541
21541
  ]
21542
21542
  }
21543
- ), l6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...e, children: [
21543
+ ), c6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...e, children: [
21544
21544
  /* @__PURE__ */ d("defs", { children: [
21545
21545
  /* @__PURE__ */ d(
21546
21546
  "radialGradient",
@@ -21706,7 +21706,7 @@ const Qs = ({
21706
21706
  transform: "translate(-4.6 -5)"
21707
21707
  }
21708
21708
  )
21709
- ] }), c6 = (e) => /* @__PURE__ */ d(
21709
+ ] }), d6 = (e) => /* @__PURE__ */ d(
21710
21710
  "svg",
21711
21711
  {
21712
21712
  width: "20",
@@ -21728,7 +21728,7 @@ const Qs = ({
21728
21728
  /* @__PURE__ */ a("path", { d: "M12 8.5c-1.4 0-2.5 1.6-2.5 3.5s1.1 3.5 2.5 3.5 2.5-1.6 2.5-3.5-1.1-3.5-2.5-3.5z", fill: "url(#opera-gradient)" })
21729
21729
  ]
21730
21730
  }
21731
- ), d6 = (e) => /* @__PURE__ */ d(
21731
+ ), u6 = (e) => /* @__PURE__ */ d(
21732
21732
  "svg",
21733
21733
  {
21734
21734
  width: "20",
@@ -21750,7 +21750,7 @@ const Qs = ({
21750
21750
  /* @__PURE__ */ a("circle", { cx: "12", cy: "16", r: "1", fill: "url(#brave-gradient)" })
21751
21751
  ]
21752
21752
  }
21753
- ), u6 = () => /* @__PURE__ */ d(
21753
+ ), m6 = () => /* @__PURE__ */ d(
21754
21754
  "svg",
21755
21755
  {
21756
21756
  width: "20",
@@ -21806,10 +21806,10 @@ const Qs = ({
21806
21806
  )
21807
21807
  ]
21808
21808
  }
21809
- ), m6 = ({ browser: e }) => {
21809
+ ), p6 = ({ browser: e }) => {
21810
21810
  const t = (e == null ? void 0 : e.toLowerCase()) || "", n = { width: 20, height: 20 };
21811
- return t.includes("chrome") ? /* @__PURE__ */ a(i6, { ...n }) : t.includes("firefox") ? /* @__PURE__ */ a(s6, { ...n }) : t.includes("safari") ? /* @__PURE__ */ a(o6, { ...n }) : t.includes("edge") ? /* @__PURE__ */ a(l6, { ...n }) : t.includes("opera") ? /* @__PURE__ */ a(c6, { ...n }) : t.includes("brave") ? /* @__PURE__ */ a(d6, { ...n }) : /* @__PURE__ */ a(u6, {});
21812
- }, p6 = () => {
21811
+ return t.includes("chrome") ? /* @__PURE__ */ a(s6, { ...n }) : t.includes("firefox") ? /* @__PURE__ */ a(o6, { ...n }) : t.includes("safari") ? /* @__PURE__ */ a(l6, { ...n }) : t.includes("edge") ? /* @__PURE__ */ a(c6, { ...n }) : t.includes("opera") ? /* @__PURE__ */ a(d6, { ...n }) : t.includes("brave") ? /* @__PURE__ */ a(u6, { ...n }) : /* @__PURE__ */ a(m6, {});
21812
+ }, h6 = () => {
21813
21813
  const { signins: e, removeSignin: t, refetch: n, loading: i } = $1(), { refetch: s } = gt(), { toast: o } = da(), m = e, l = async (p) => {
21814
21814
  try {
21815
21815
  await t(p), await Promise.all([n(), s()]), o("Session ended successfully", "info");
@@ -21837,7 +21837,7 @@ const Qs = ({
21837
21837
  ] }) }),
21838
21838
  /* @__PURE__ */ a(Wt, { children: m.map((p) => /* @__PURE__ */ d(ht, { children: [
21839
21839
  /* @__PURE__ */ a(st, { children: /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-3", children: [
21840
- /* @__PURE__ */ a(Ui, { children: /* @__PURE__ */ a(m6, { browser: p.browser || "Unknown" }) }),
21840
+ /* @__PURE__ */ a(Ui, { children: /* @__PURE__ */ a(p6, { browser: p.browser || "Unknown" }) }),
21841
21841
  /* @__PURE__ */ d("div", { className: "w-flex-col w-gap-1", children: [
21842
21842
  /* @__PURE__ */ a("div", { children: p.browser || "Unknown Browser" }),
21843
21843
  p.device && /* @__PURE__ */ a("div", { className: "w-text-muted", children: p.device })
@@ -21869,7 +21869,7 @@ const Qs = ({
21869
21869
  description: "You don't have any active sessions at the moment."
21870
21870
  }
21871
21871
  ) });
21872
- }, h6 = (e, t) => `${(e == null ? void 0 : e[0]) || ""}${(t == null ? void 0 : t[0]) || ""}`.toUpperCase() || "U", f6 = () => {
21872
+ }, f6 = (e, t) => `${(e == null ? void 0 : e[0]) || ""}${(t == null ? void 0 : t[0]) || ""}`.toUpperCase() || "U", w6 = () => {
21873
21873
  var E, k, A, _, M, L, F, R;
21874
21874
  const { loading: e, user: t, updateProfilePicture: n } = Ba(), { deployment: i } = Oe(), [s, o] = C("profile"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h = j(null), g = I(
21875
21875
  (z, O = "info") => {
@@ -21921,7 +21921,7 @@ const Qs = ({
21921
21921
  title: "Change profile picture",
21922
21922
  "aria-label": "Change profile picture",
21923
21923
  children: [
21924
- /* @__PURE__ */ a("span", { className: "w-avatar w-avatar--lg", children: t.profile_picture_url ? /* @__PURE__ */ a("img", { src: t.profile_picture_url, alt: "" }) : h6(t.first_name, t.last_name) }),
21924
+ /* @__PURE__ */ a("span", { className: "w-avatar w-avatar--lg", children: t.profile_picture_url ? /* @__PURE__ */ a("img", { src: t.profile_picture_url, alt: "" }) : f6(t.first_name, t.last_name) }),
21925
21925
  /* @__PURE__ */ a("span", { className: "w-avatar-veil", children: u ? /* @__PURE__ */ a(Re, { size: 14 }) : /* @__PURE__ */ a(cr, { size: 16 }) })
21926
21926
  ]
21927
21927
  }
@@ -22010,12 +22010,12 @@ const Qs = ({
22010
22010
  )
22011
22011
  ] }) }),
22012
22012
  /* @__PURE__ */ d(Qc, { children: [
22013
- s === "profile" && /* @__PURE__ */ a(Fm, {}),
22014
- s === "email" && y && /* @__PURE__ */ a(Im, {}),
22015
- s === "phone" && x && /* @__PURE__ */ a(Vm, {}),
22016
- s === "social" && b && /* @__PURE__ */ a(Um, {}),
22017
- s === "security" && N && /* @__PURE__ */ a(r6, {}),
22018
- s === "sessions" && /* @__PURE__ */ a(p6, {})
22013
+ s === "profile" && /* @__PURE__ */ a(Im, {}),
22014
+ s === "email" && y && /* @__PURE__ */ a(Vm, {}),
22015
+ s === "phone" && x && /* @__PURE__ */ a(zm, {}),
22016
+ s === "social" && b && /* @__PURE__ */ a(Wm, {}),
22017
+ s === "security" && N && /* @__PURE__ */ a(i6, {}),
22018
+ s === "sessions" && /* @__PURE__ */ a(h6, {})
22019
22019
  ] }),
22020
22020
  m && /* @__PURE__ */ d(
22021
22021
  "div",
@@ -22031,7 +22031,7 @@ const Qs = ({
22031
22031
  ] })
22032
22032
  }
22033
22033
  ) }) });
22034
- }, w6 = ({
22034
+ }, g6 = ({
22035
22035
  isOpen: e,
22036
22036
  onClose: t,
22037
22037
  title: n,
@@ -22043,9 +22043,9 @@ const Qs = ({
22043
22043
  showCloseButton: c
22044
22044
  }) => /* @__PURE__ */ a(Xe, { isOpen: e, onClose: t, children: /* @__PURE__ */ a(Xe.Overlay, { children: /* @__PURE__ */ d(Xe.Content, { className: "w-dialog--panel", children: [
22045
22045
  i && /* @__PURE__ */ a(Xe.Header, { showCloseButton: c, children: s || n }),
22046
- m || l || /* @__PURE__ */ a(f6, {}),
22046
+ m || l || /* @__PURE__ */ a(w6, {}),
22047
22047
  o && /* @__PURE__ */ a(Xe.Footer, { children: o })
22048
- ] }) }) }), ze = (...e) => e.filter(Boolean).join(" "), g6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-relative", e.className) }), v0 = xe.forwardRef(
22048
+ ] }) }) }), ze = (...e) => e.filter(Boolean).join(" "), v6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-relative", e.className) }), v0 = xe.forwardRef(
22049
22049
  (e, t) => /* @__PURE__ */ a(
22050
22050
  "button",
22051
22051
  {
@@ -22057,7 +22057,7 @@ const Qs = ({
22057
22057
  )
22058
22058
  );
22059
22059
  v0.displayName = "AccountButton";
22060
- const v6 = ({ children: e, ...t }) => /* @__PURE__ */ a(
22060
+ const b6 = ({ children: e, ...t }) => /* @__PURE__ */ a(
22061
22061
  "div",
22062
22062
  {
22063
22063
  ...t,
@@ -22065,7 +22065,7 @@ const v6 = ({ children: e, ...t }) => /* @__PURE__ */ a(
22065
22065
  style: { width: 28, height: 28, fontSize: 11, ...t.style },
22066
22066
  children: e
22067
22067
  }
22068
- ), b6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-text-secondary", e.className) }), b0 = xe.forwardRef(({ $position: e, $isOpen: t, $maxHeight: n, children: i, ...s }, o) => /* @__PURE__ */ a(
22068
+ ), y6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-text-secondary", e.className) }), b0 = xe.forwardRef(({ $position: e, $isOpen: t, $maxHeight: n, children: i, ...s }, o) => /* @__PURE__ */ a(
22069
22069
  "div",
22070
22070
  {
22071
22071
  ...s,
@@ -22117,7 +22117,7 @@ const y0 = xe.forwardRef(({ $top: e, $left: t, $isOpen: n, $maxHeight: i, childr
22117
22117
  }
22118
22118
  ));
22119
22119
  y0.displayName = "SidePanel";
22120
- const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.className) }), y6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "16px 14px 8px", ...e.style } }), _6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-gap-3", e.className) }), x6 = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "w-avatar--lg", t.className), children: e }), k6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex-col", "w-grow", e.className), style: { gap: 2, ...e.style } }), N6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-truncate", e.className) }), A6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-truncate", e.className) }), C6 = ({ $active: e, ...t }) => /* @__PURE__ */ a(
22120
+ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.className) }), _6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "16px 14px 8px", ...e.style } }), x6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-gap-3", e.className) }), k6 = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "w-avatar--lg", t.className), children: e }), N6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex-col", "w-grow", e.className), style: { gap: 2, ...e.style } }), A6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-truncate", e.className) }), C6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-truncate", e.className) }), E6 = ({ $active: e, ...t }) => /* @__PURE__ */ a(
22121
22121
  "button",
22122
22122
  {
22123
22123
  ...t,
@@ -22128,7 +22128,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22128
22128
  ...t.style
22129
22129
  }
22130
22130
  }
22131
- ), E6 = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: "w-avatar w-avatar--sm", children: e }), S6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), M6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-none", e.className) }), L6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), R6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-menu-item", e.className) }), P6 = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-grow", e.className) }), $6 = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-menu-trail", e.className) }), O6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), Z6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-menu-label", e.className) }), Br = ({ $active: e, ...t }) => /* @__PURE__ */ a(
22131
+ ), S6 = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: "w-avatar w-avatar--sm", children: e }), M6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), L6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-none", e.className) }), R6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), P6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-menu-item", e.className) }), $6 = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-grow", e.className) }), O6 = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-menu-trail", e.className) }), Z6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), H6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-menu-label", e.className) }), Br = ({ $active: e, ...t }) => /* @__PURE__ */ a(
22132
22132
  "button",
22133
22133
  {
22134
22134
  ...t,
@@ -22143,14 +22143,14 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22143
22143
  style: { width: 14, height: 14, color: "var(--wa-primary)", ...t.style },
22144
22144
  children: e
22145
22145
  }
22146
- ), H6 = (e) => /* @__PURE__ */ a("div", { ...e, className: "w-none", style: { width: 14, ...e.style } }), Gr = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), Xs = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-none", e.className) }), T6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), F6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-menu-item", "w-menu-item--danger", e.className) }), I6 = (e) => /* @__PURE__ */ a(
22146
+ ), T6 = (e) => /* @__PURE__ */ a("div", { ...e, className: "w-none", style: { width: 14, ...e.style } }), Gr = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), Xs = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-none", e.className) }), F6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), I6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-menu-item", "w-menu-item--danger", e.className) }), V6 = (e) => /* @__PURE__ */ a(
22147
22147
  "button",
22148
22148
  {
22149
22149
  ...e,
22150
22150
  className: ze("w-menu-item", e.className),
22151
22151
  style: { borderBottom: "0.5px solid var(--wa-border)", borderRadius: 0, flex: "none", ...e.style }
22152
22152
  }
22153
- ), V6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { flex: "1 1 auto", overflowY: "auto", padding: 5, ...e.style } }), eo = ({ $active: e, ...t }) => /* @__PURE__ */ a(
22153
+ ), z6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { flex: "1 1 auto", overflowY: "auto", padding: 5, ...e.style } }), eo = ({ $active: e, ...t }) => /* @__PURE__ */ a(
22154
22154
  "button",
22155
22155
  {
22156
22156
  ...t,
@@ -22172,21 +22172,21 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22172
22172
  className: ze("w-avatar", "w-avatar--sm", !e && "", n.className),
22173
22173
  children: t
22174
22174
  }
22175
- ), no = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "", "w-avatar--sm", t.className), children: e }), ro = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), io = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-secsub", "w-grow", "w-truncate", e.className) }), qr = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-none", e.className), style: { gap: 4, ...e.style } }), z6 = ({ $open: e, ...t }) => /* @__PURE__ */ a(
22175
+ ), no = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "", "w-avatar--sm", t.className), children: e }), ro = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), io = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-secsub", "w-grow", "w-truncate", e.className) }), qr = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-none", e.className), style: { gap: 4, ...e.style } }), D6 = ({ $open: e, ...t }) => /* @__PURE__ */ a(
22176
22176
  Yt,
22177
22177
  {
22178
22178
  ...t,
22179
22179
  className: "w-text-muted",
22180
22180
  style: { flexShrink: 0, transition: "transform 0.2s ease", transform: e ? "rotate(0deg)" : "rotate(-90deg)" }
22181
22181
  }
22182
- ), Kr = (e) => /* @__PURE__ */ a(nt, { ...e, className: "w-text-primary", style: { flexShrink: 0 } }), D6 = (e) => /* @__PURE__ */ a(
22182
+ ), Kr = (e) => /* @__PURE__ */ a(nt, { ...e, className: "w-text-primary", style: { flexShrink: 0 } }), U6 = (e) => /* @__PURE__ */ a(
22183
22183
  "div",
22184
22184
  {
22185
22185
  ...e,
22186
22186
  className: ze("w-flex-col", "w-gap-3", "w-none", e.className),
22187
22187
  style: { padding: "12px 12px 16px", borderBottom: "0.5px solid var(--wa-border)", ...e.style }
22188
22188
  }
22189
- ), U6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-btn", "w-btn--icon", e.className), style: { width: 24, height: 24, ...e.style } }), so = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-gap-3", e.className), style: { padding: "4px 4px 0", minWidth: 0, ...e.style } }), oo = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "", "w-avatar--md", t.className), children: e }), lo = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex-col", "w-grow", e.className), style: { gap: 1, minWidth: 0, ...e.style } }), co = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-truncate", e.className) }), uo = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-none", e.className), style: { gap: 2, ...e.style } }), Bn = ({ $destructive: e, ...t }) => /* @__PURE__ */ a(
22189
+ ), W6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-btn", "w-btn--icon", e.className), style: { width: 24, height: 24, ...e.style } }), so = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-gap-3", e.className), style: { padding: "4px 4px 0", minWidth: 0, ...e.style } }), oo = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "", "w-avatar--md", t.className), children: e }), lo = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex-col", "w-grow", e.className), style: { gap: 1, minWidth: 0, ...e.style } }), co = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-truncate", e.className) }), uo = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-none", e.className), style: { gap: 2, ...e.style } }), Bn = ({ $destructive: e, ...t }) => /* @__PURE__ */ a(
22190
22190
  "button",
22191
22191
  {
22192
22192
  ...t,
@@ -22324,7 +22324,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22324
22324
  const He = me.user.id === (J == null ? void 0 : J.id), ae = Ce.user.id === (J == null ? void 0 : J.id);
22325
22325
  return He === ae ? 0 : He ? -1 : 1;
22326
22326
  }), ve = ((Qt = he.find((me) => me.user.id === (J == null ? void 0 : J.id))) == null ? void 0 : Qt.id) || "", je = ((pa = (Mt = ee == null ? void 0 : ee.roles) == null ? void 0 : Mt[0]) == null ? void 0 : pa.name) ?? null;
22327
- return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ d(g6, { children: [
22327
+ return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ d(v6, { children: [
22328
22328
  /* @__PURE__ */ d(
22329
22329
  v0,
22330
22330
  {
@@ -22336,9 +22336,9 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22336
22336
  J == null ? void 0 : J.profile_picture_url,
22337
22337
  J == null ? void 0 : J.first_name,
22338
22338
  J == null ? void 0 : J.last_name,
22339
- v6
22339
+ b6
22340
22340
  ),
22341
- e && /* @__PURE__ */ a(b6, { children: `${(J == null ? void 0 : J.first_name) || ""} ${(J == null ? void 0 : J.last_name) || ""}`.trim() })
22341
+ e && /* @__PURE__ */ a(y6, { children: `${(J == null ? void 0 : J.first_name) || ""} ${(J == null ? void 0 : J.last_name) || ""}`.trim() })
22342
22342
  ]
22343
22343
  }
22344
22344
  ),
@@ -22352,28 +22352,28 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22352
22352
  $isOpen: o && !(p && l),
22353
22353
  $maxHeight: F == null ? void 0 : F.maxHeight,
22354
22354
  children: [
22355
- /* @__PURE__ */ a(y6, { children: /* @__PURE__ */ d(_6, { children: [
22355
+ /* @__PURE__ */ a(_6, { children: /* @__PURE__ */ d(x6, { children: [
22356
22356
  ke(
22357
22357
  J == null ? void 0 : J.has_profile_picture,
22358
22358
  J == null ? void 0 : J.profile_picture_url,
22359
22359
  J == null ? void 0 : J.first_name,
22360
22360
  J == null ? void 0 : J.last_name,
22361
- x6
22361
+ k6
22362
22362
  ),
22363
- /* @__PURE__ */ d(k6, { children: [
22364
- /* @__PURE__ */ a(N6, { children: `${(J == null ? void 0 : J.first_name) || ""} ${(J == null ? void 0 : J.last_name) || ""}`.trim() }),
22365
- /* @__PURE__ */ a(A6, { children: (ha = J == null ? void 0 : J.primary_email_address) == null ? void 0 : ha.email })
22363
+ /* @__PURE__ */ d(N6, { children: [
22364
+ /* @__PURE__ */ a(A6, { children: `${(J == null ? void 0 : J.first_name) || ""} ${(J == null ? void 0 : J.last_name) || ""}`.trim() }),
22365
+ /* @__PURE__ */ a(C6, { children: (ha = J == null ? void 0 : J.primary_email_address) == null ? void 0 : ha.email })
22366
22366
  ] })
22367
22367
  ] }) }),
22368
- /* @__PURE__ */ d(L6, { children: [
22368
+ /* @__PURE__ */ d(R6, { children: [
22369
22369
  fe && /* @__PURE__ */ d(
22370
- C6,
22370
+ E6,
22371
22371
  {
22372
22372
  $active: l,
22373
22373
  onClick: Ze,
22374
22374
  style: { marginBottom: 8 },
22375
22375
  children: [
22376
- /* @__PURE__ */ a(E6, { children: Y ? Y.image_url ? /* @__PURE__ */ a(
22376
+ /* @__PURE__ */ a(S6, { children: Y ? Y.image_url ? /* @__PURE__ */ a(
22377
22377
  "img",
22378
22378
  {
22379
22379
  src: Y.image_url,
@@ -22388,20 +22388,20 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22388
22388
  ) : B(
22389
22389
  `${(J == null ? void 0 : J.first_name) || ""} ${(J == null ? void 0 : J.last_name) || ""}`
22390
22390
  ) }),
22391
- /* @__PURE__ */ a(S6, { children: (Y == null ? void 0 : Y.name) ?? "Personal account" }),
22392
- je && /* @__PURE__ */ a(M6, { children: je })
22391
+ /* @__PURE__ */ a(M6, { children: (Y == null ? void 0 : Y.name) ?? "Personal account" }),
22392
+ je && /* @__PURE__ */ a(L6, { children: je })
22393
22393
  ]
22394
22394
  }
22395
22395
  ),
22396
- /* @__PURE__ */ d(R6, { onClick: te, children: [
22396
+ /* @__PURE__ */ d(P6, { onClick: te, children: [
22397
22397
  /* @__PURE__ */ a($a, {}),
22398
- /* @__PURE__ */ a(P6, { children: "Manage account" }),
22399
- /* @__PURE__ */ a($6, { children: "⌘," })
22398
+ /* @__PURE__ */ a($6, { children: "Manage account" }),
22399
+ /* @__PURE__ */ a(O6, { children: "⌘," })
22400
22400
  ] })
22401
22401
  ] }),
22402
22402
  /* @__PURE__ */ a(Js, {}),
22403
- /* @__PURE__ */ d(O6, { children: [
22404
- /* @__PURE__ */ a(Z6, { children: "Accounts" }),
22403
+ /* @__PURE__ */ d(Z6, { children: [
22404
+ /* @__PURE__ */ a(H6, { children: "Accounts" }),
22405
22405
  dt ? he.map(
22406
22406
  ({ user: me, id: Ce }) => {
22407
22407
  var ae;
@@ -22414,7 +22414,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22414
22414
  Ce
22415
22415
  ),
22416
22416
  children: [
22417
- He ? /* @__PURE__ */ a(jr, { children: /* @__PURE__ */ a(nt, {}) }) : /* @__PURE__ */ a(H6, {}),
22417
+ He ? /* @__PURE__ */ a(jr, { children: /* @__PURE__ */ a(nt, {}) }) : /* @__PURE__ */ a(T6, {}),
22418
22418
  /* @__PURE__ */ a(Gr, { children: (ae = me.primary_email_address) == null ? void 0 : ae.email }),
22419
22419
  He && /* @__PURE__ */ a(Xs, { children: "Current" })
22420
22420
  ]
@@ -22441,8 +22441,8 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22441
22441
  )
22442
22442
  ] }),
22443
22443
  /* @__PURE__ */ a(Js, {}),
22444
- /* @__PURE__ */ a(T6, { children: /* @__PURE__ */ d(
22445
- F6,
22444
+ /* @__PURE__ */ a(F6, { children: /* @__PURE__ */ d(
22445
+ I6,
22446
22446
  {
22447
22447
  onClick: () => Ne(ve),
22448
22448
  children: [
@@ -22464,7 +22464,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22464
22464
  $maxHeight: x.maxHeight,
22465
22465
  children: [
22466
22466
  p && /* @__PURE__ */ d(
22467
- I6,
22467
+ V6,
22468
22468
  {
22469
22469
  onClick: () => c(!1),
22470
22470
  children: [
@@ -22502,7 +22502,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22502
22502
  if (!me) return null;
22503
22503
  const tt = Ee === "org" ? "ws" : "org", Nt = tt === "ws" ? "Switch to workspace context" : "Switch to organization context";
22504
22504
  return /* @__PURE__ */ a(
22505
- U6,
22505
+ W6,
22506
22506
  {
22507
22507
  type: "button",
22508
22508
  onClick: () => v(tt),
@@ -22512,7 +22512,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22512
22512
  }
22513
22513
  );
22514
22514
  };
22515
- return /* @__PURE__ */ d(D6, { children: [
22515
+ return /* @__PURE__ */ d(U6, { children: [
22516
22516
  Ee === "org" && Y && /* @__PURE__ */ d(so, { children: [
22517
22517
  Lt(),
22518
22518
  /* @__PURE__ */ a(oo, { children: Y.image_url ? /* @__PURE__ */ a(
@@ -22613,7 +22613,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22613
22613
  ] })
22614
22614
  ] });
22615
22615
  })(),
22616
- /* @__PURE__ */ d(V6, { children: [
22616
+ /* @__PURE__ */ d(z6, { children: [
22617
22617
  /* @__PURE__ */ d(
22618
22618
  eo,
22619
22619
  {
@@ -22696,7 +22696,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22696
22696
  }
22697
22697
  ),
22698
22698
  Fe && /* @__PURE__ */ a(
22699
- z6,
22699
+ D6,
22700
22700
  {
22701
22701
  size: 11,
22702
22702
  $open: ae
@@ -22835,7 +22835,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22835
22835
  document.body
22836
22836
  ),
22837
22837
  /* @__PURE__ */ a(
22838
- w6,
22838
+ g6,
22839
22839
  {
22840
22840
  isOpen: R.isOpen,
22841
22841
  onClose: R.close
@@ -22878,7 +22878,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
22878
22878
  ] })
22879
22879
  ] }) });
22880
22880
  };
22881
- function W6({
22881
+ function B6({
22882
22882
  notification: e,
22883
22883
  onAction: t
22884
22884
  }) {
@@ -22969,7 +22969,7 @@ function W6({
22969
22969
  }
22970
22970
  );
22971
22971
  }
22972
- const B6 = ce(
22972
+ const j6 = ce(
22973
22973
  ({ scope: e = "all", onAction: t, fullWidth: n, maxHeight: i, className: s }, o) => {
22974
22974
  const [m, l] = C("inbox"), [c, p] = C(!1), [u, f] = C(!1), h = j(null), g = {
22975
22975
  scope: e,
@@ -23107,7 +23107,7 @@ const B6 = ce(
23107
23107
  }
23108
23108
  ) : /* @__PURE__ */ d(se, { children: [
23109
23109
  v.map((z) => /* @__PURE__ */ a(
23110
- W6,
23110
+ B6,
23111
23111
  {
23112
23112
  notification: z,
23113
23113
  onAction: L
@@ -23120,7 +23120,7 @@ const B6 = ce(
23120
23120
  }
23121
23121
  );
23122
23122
  }
23123
- ), j6 = ce(
23123
+ ), G6 = ce(
23124
23124
  ({
23125
23125
  position: e,
23126
23126
  scope: t,
@@ -23140,7 +23140,7 @@ const B6 = ce(
23140
23140
  maxHeight: e != null && e.maxHeight ? e.maxHeight : "90vh"
23141
23141
  },
23142
23142
  children: /* @__PURE__ */ a(
23143
- B6,
23143
+ j6,
23144
23144
  {
23145
23145
  scope: t,
23146
23146
  onAction: n,
@@ -23151,7 +23151,7 @@ const B6 = ce(
23151
23151
  }
23152
23152
  )
23153
23153
  );
23154
- function G6({
23154
+ function q6({
23155
23155
  className: e,
23156
23156
  showBadge: t = !0,
23157
23157
  scope: n = "all",
@@ -23213,7 +23213,7 @@ function G6({
23213
23213
  ),
23214
23214
  typeof window < "u" && s && or.createPortal(
23215
23215
  /* @__PURE__ */ a("div", { className: "wacht-root", style: m, children: /* @__PURE__ */ a(
23216
- j6,
23216
+ G6,
23217
23217
  {
23218
23218
  ref: c,
23219
23219
  position: g,
@@ -23228,21 +23228,21 @@ function G6({
23228
23228
  }
23229
23229
  ) });
23230
23230
  }
23231
- const Wp = ({
23231
+ const Bp = ({
23232
23232
  showName: e = !0,
23233
23233
  showNotifications: t = !0
23234
23234
  }) => /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-2", children: [
23235
- t && /* @__PURE__ */ a(G6, {}),
23235
+ t && /* @__PURE__ */ a(q6, {}),
23236
23236
  /* @__PURE__ */ a(_0, { showName: e })
23237
- ] }), Bp = ({ children: e }) => {
23237
+ ] }), jp = ({ children: e }) => {
23238
23238
  var i;
23239
23239
  const { session: t, loading: n } = gt();
23240
23240
  return n || !((i = t.signins) != null && i.length) || !t.active_signin ? null : /* @__PURE__ */ a(se, { children: e });
23241
- }, jp = ({ children: e }) => {
23241
+ }, Gp = ({ children: e }) => {
23242
23242
  var i;
23243
23243
  const { loading: t, session: n } = gt();
23244
23244
  return t || (i = n.signins) != null && i.length && n.active_signin ? null : /* @__PURE__ */ a(se, { children: e });
23245
- }, Gp = ({
23245
+ }, qp = ({
23246
23246
  onAccountSelect: e,
23247
23247
  showAddAccount: t = !0
23248
23248
  }) => {
@@ -23379,17 +23379,17 @@ const Wp = ({
23379
23379
  ]
23380
23380
  }
23381
23381
  ) }) : null;
23382
- }, qp = () => {
23382
+ }, Kp = () => {
23383
23383
  const { navigateToSignIn: e } = Ot();
23384
23384
  return X(() => {
23385
23385
  e();
23386
23386
  }, [e]), null;
23387
- }, Kp = () => {
23387
+ }, Yp = () => {
23388
23388
  const { navigateToSignUp: e } = Ot();
23389
23389
  return X(() => {
23390
23390
  e();
23391
23391
  }, [e]), null;
23392
- }, q6 = () => {
23392
+ }, K6 = () => {
23393
23393
  var R, z;
23394
23394
  const {
23395
23395
  organizationMemberships: e,
@@ -23672,7 +23672,7 @@ const Wp = ({
23672
23672
  )
23673
23673
  ] })
23674
23674
  ] });
23675
- }, Yp = ({
23675
+ }, Qp = ({
23676
23676
  children: e
23677
23677
  }) => {
23678
23678
  var f, h, g, v;
@@ -23686,10 +23686,10 @@ const Wp = ({
23686
23686
  {
23687
23687
  className: "w-flex w-justify-center",
23688
23688
  style: { padding: 0, width: 900, maxWidth: "90vw" },
23689
- children: /* @__PURE__ */ a(q6, {})
23689
+ children: /* @__PURE__ */ a(K6, {})
23690
23690
  }
23691
23691
  ) }) }) });
23692
- }, Qp = (e) => {
23692
+ }, Jp = (e) => {
23693
23693
  const t = e.toLowerCase().trim();
23694
23694
  return ["javascript:", "data:", "vbscript:"].some((s) => t.startsWith(s)) ? !0 : [
23695
23695
  "http://",
@@ -23705,104 +23705,104 @@ const Wp = ({
23705
23705
  ].some(
23706
23706
  (s) => t.startsWith(s)
23707
23707
  );
23708
- }, Jp = (e) => {
23708
+ }, Xp = (e) => {
23709
23709
  const t = e.toLowerCase().trim();
23710
23710
  return !["javascript:", "data:", "vbscript:"].some(
23711
23711
  (i) => t.startsWith(i)
23712
23712
  );
23713
23713
  };
23714
23714
  export {
23715
- Tp as AcceptInvite,
23715
+ Fp as AcceptInvite,
23716
23716
  vc as AuthFormImage,
23717
23717
  Hi as CreateOrganizationForm,
23718
23718
  Vc as CreateWorkspaceDialog,
23719
23719
  Ic as CreateWorkspaceForm,
23720
23720
  Be as DefaultStylesProvider,
23721
- Sp as DeploymentInitialized,
23722
- Mp as DeploymentInitializing,
23723
- J6 as DeploymentProvider,
23721
+ Mp as DeploymentInitialized,
23722
+ Lp as DeploymentInitializing,
23723
+ X6 as DeploymentProvider,
23724
23724
  Xe as Dialog,
23725
- Ip as DialogTrigger,
23725
+ Vp as DialogTrigger,
23726
23726
  gr as Dropdown,
23727
- a4 as DropdownDivider,
23727
+ n4 as DropdownDivider,
23728
23728
  Ca as DropdownItem,
23729
23729
  vr as DropdownItems,
23730
23730
  br as DropdownTrigger,
23731
- n4 as Form,
23731
+ r4 as Form,
23732
23732
  at as FormGroup,
23733
23733
  Se as Input,
23734
23734
  Ye as Label,
23735
- Op as MagicLinkVerification,
23736
- f6 as ManageAccount,
23737
- w6 as ManageAccountDialog,
23738
- R4 as ManageOrganization,
23739
- Q4 as ManageWorkspace,
23735
+ Zp as MagicLinkVerification,
23736
+ w6 as ManageAccount,
23737
+ g6 as ManageAccountDialog,
23738
+ P4 as ManageOrganization,
23739
+ J4 as ManageWorkspace,
23740
23740
  Dc as ManageWorkspaceDialog,
23741
- qp as NavigateToSignIn,
23742
- Kp as NavigateToSignUp,
23741
+ Kp as NavigateToSignIn,
23742
+ Yp as NavigateToSignUp,
23743
23743
  Vt as NavigationLink,
23744
- G6 as NotificationBell,
23745
- W6 as NotificationItem,
23746
- B6 as NotificationPanel,
23747
- j6 as NotificationPopover,
23744
+ q6 as NotificationBell,
23745
+ B6 as NotificationItem,
23746
+ j6 as NotificationPanel,
23747
+ G6 as NotificationPopover,
23748
23748
  P0 as OAuthProvider,
23749
- J4 as ORG_ADMIN_PERMISSIONS,
23750
- X4 as ORG_MANAGEMENT_PERMISSIONS,
23749
+ X4 as ORG_ADMIN_PERMISSIONS,
23750
+ em as ORG_MANAGEMENT_PERMISSIONS,
23751
23751
  Ga as OTPInput,
23752
- am as OrganizationSwitcher,
23752
+ nm as OrganizationSwitcher,
23753
23753
  wr as PhoneNumberInput,
23754
- Uu as PhoneVerification,
23755
- qu as ProfileCompletion,
23756
- Yp as RequireActiveTenancy,
23757
- Rp as SignInForm,
23758
- Lp as SignUpForm,
23759
- Bp as SignedIn,
23760
- Gp as SignedInAccounts,
23761
- jp as SignedOut,
23762
- Fp as SimpleDialog,
23763
- $p as SocialCallback,
23754
+ Wu as PhoneVerification,
23755
+ Ku as ProfileCompletion,
23756
+ Qp as RequireActiveTenancy,
23757
+ Pp as SignInForm,
23758
+ Rp as SignUpForm,
23759
+ jp as SignedIn,
23760
+ qp as SignedInAccounts,
23761
+ Gp as SignedOut,
23762
+ Ip as SimpleDialog,
23763
+ Op as SocialCallback,
23764
23764
  Re as Spinner,
23765
23765
  on as Switch,
23766
- Du as TwoFactorMethodSelector,
23767
- Gu as TwoFactorVerification,
23766
+ Uu as TwoFactorMethodSelector,
23767
+ qu as TwoFactorVerification,
23768
23768
  _0 as UserButton,
23769
- Wp as UserControls,
23770
- em as WORKSPACE_ADMIN_PERMISSIONS,
23771
- tm as WORKSPACE_MANAGEMENT_PERMISSIONS,
23772
- Pp as WaitlistForm,
23769
+ Bp as UserControls,
23770
+ tm as WORKSPACE_ADMIN_PERMISSIONS,
23771
+ am as WORKSPACE_MANAGEMENT_PERMISSIONS,
23772
+ $p as WaitlistForm,
23773
23773
  Wc as canManageOrganization,
23774
23774
  jc as canManageWorkspace,
23775
23775
  Kt as clearTokenCache,
23776
- Zp as hasIncompleteProfile,
23776
+ Hp as hasIncompleteProfile,
23777
23777
  Uc as hasOrgPermission,
23778
23778
  Bc as hasWorkspacePermission,
23779
- Qp as isExternalUrl,
23780
- Vp as isOrgAdmin,
23781
- Jp as isSafeUrl,
23782
- zp as isWorkspaceAdmin,
23783
- Hp as redirectToProfileCompletion,
23779
+ Jp as isExternalUrl,
23780
+ zp as isOrgAdmin,
23781
+ Xp as isSafeUrl,
23782
+ Dp as isWorkspaceAdmin,
23783
+ Tp as redirectToProfileCompletion,
23784
23784
  Da as useActiveOrganization,
23785
23785
  O1 as useActiveTenancy,
23786
23786
  ca as useActiveWorkspace,
23787
- pp as useActorMcpServers,
23788
- ap as useActorProjectSearch,
23789
- tp as useActorProjects,
23790
- ip as useActorThreadSearch,
23791
- ep as useAgentSession,
23792
- sp as useAgentThread,
23793
- lp as useAgentThreadAssignments,
23794
- X6 as useAgentThreadConversation,
23795
- op as useAgentThreadFilesystem,
23796
- up as useAgentThreadTaskGraphs,
23797
- kp as useApiAuthAppSession,
23798
- Cp as useApiAuthAuditAnalytics,
23799
- Ap as useApiAuthAuditLogs,
23800
- Ep as useApiAuthAuditTimeseries,
23801
- Np as useApiAuthKeys,
23787
+ hp as useActorMcpServers,
23788
+ np as useActorProjectSearch,
23789
+ ap as useActorProjects,
23790
+ sp as useActorThreadSearch,
23791
+ tp as useAgentSession,
23792
+ op as useAgentThread,
23793
+ cp as useAgentThreadAssignments,
23794
+ ep as useAgentThreadConversation,
23795
+ lp as useAgentThreadFilesystem,
23796
+ mp as useAgentThreadTaskGraphs,
23797
+ Np as useApiAuthAppSession,
23798
+ Ep as useApiAuthAuditAnalytics,
23799
+ Cp as useApiAuthAuditLogs,
23800
+ Sp as useApiAuthAuditTimeseries,
23801
+ Ap as useApiAuthKeys,
23802
23802
  Me as useClient,
23803
- vp as useCreateWebhookEndpoint,
23803
+ bp as useCreateWebhookEndpoint,
23804
23804
  Oe as useDeployment,
23805
- hp as useExternalAgentConnections,
23805
+ fp as useExternalAgentConnections,
23806
23806
  I1 as useForgotPassword,
23807
23807
  zd as useInvitation,
23808
23808
  T1 as useMagicLinkVerification,
@@ -23812,11 +23812,11 @@ export {
23812
23812
  ad as useNotifications,
23813
23813
  la as useOrganizationList,
23814
23814
  Ua as useOrganizationMemberships,
23815
- dp as useProjectTaskBoardItem,
23816
- mp as useProjectTaskBoardItemComments,
23817
- cp as useProjectTasks,
23818
- rp as useProjectThreadFeed,
23819
- np as useProjectThreads,
23815
+ up as useProjectTaskBoardItem,
23816
+ pp as useProjectTaskBoardItemComments,
23817
+ dp as useProjectTasks,
23818
+ ip as useProjectThreadFeed,
23819
+ rp as useProjectThreads,
23820
23820
  gt as useSession,
23821
23821
  D0 as useSignIn,
23822
23822
  W0 as useSignUp,
@@ -23825,13 +23825,13 @@ export {
23825
23825
  Ba as useUser,
23826
23826
  $1 as useUserSignins,
23827
23827
  Z1 as useWaitlist,
23828
- _p as useWebhookAnalytics,
23829
- fp as useWebhookAppSession,
23830
- yp as useWebhookDeliveries,
23831
- gp as useWebhookEndpoints,
23832
- bp as useWebhookEvents,
23833
- wp as useWebhookStats,
23834
- xp as useWebhookTimeseries,
23828
+ xp as useWebhookAnalytics,
23829
+ wp as useWebhookAppSession,
23830
+ _p as useWebhookDeliveries,
23831
+ vp as useWebhookEndpoints,
23832
+ yp as useWebhookEvents,
23833
+ gp as useWebhookStats,
23834
+ kp as useWebhookTimeseries,
23835
23835
  Wa as useWorkspaceList,
23836
23836
  Ci as useWorkspaceMemberships
23837
23837
  };