@deepsel/admin 1.4.0 → 1.4.2

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.
@@ -8695,7 +8695,7 @@ const Fj = {
8695
8695
  "--text-line-clamp": typeof n == "number" ? n.toString() : void 0,
8696
8696
  "--text-color": i ? sr(i, e) : void 0
8697
8697
  }
8698
- }), gn = Lr((e, t) => {
8698
+ }), bn = Lr((e, t) => {
8699
8699
  const n = ve("Text", Fj, e), {
8700
8700
  lineClamp: r,
8701
8701
  truncate: o,
@@ -8749,8 +8749,8 @@ const Fj = {
8749
8749
  }
8750
8750
  );
8751
8751
  });
8752
- gn.classes = pD;
8753
- gn.displayName = "@mantine/core/Text";
8752
+ bn.classes = pD;
8753
+ bn.displayName = "@mantine/core/Text";
8754
8754
  var fD = { root: "m_849cf0da" };
8755
8755
  const Bj = {
8756
8756
  underline: "hover"
@@ -8761,7 +8761,7 @@ const Bj = {
8761
8761
  e
8762
8762
  );
8763
8763
  return /* @__PURE__ */ u(
8764
- gn,
8764
+ bn,
8765
8765
  {
8766
8766
  component: "a",
8767
8767
  ref: t,
@@ -18381,12 +18381,12 @@ Xv("CapacitorHttp", {
18381
18381
  web: () => new wK()
18382
18382
  });
18383
18383
  const mo = Xv("Preferences", {
18384
- web: () => import("./web-CyHQhGMv.js").then((e) => new e.PreferencesWeb())
18384
+ web: () => import("./web-DQa9rm7S.js").then((e) => new e.PreferencesWeb())
18385
18385
  }), AL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18386
18386
  __proto__: null,
18387
18387
  Preferences: mo
18388
18388
  }, Symbol.toStringTag, { value: "Module" })), xK = Xv("Device", {
18389
- web: () => import("./web-CAS4VAro.js").then((e) => new e.DeviceWeb())
18389
+ web: () => import("./web-BpYAKYoH.js").then((e) => new e.DeviceWeb())
18390
18390
  }), Jr = [];
18391
18391
  for (let e = 0; e < 256; ++e)
18392
18392
  Jr.push((e + 256).toString(16).slice(1));
@@ -18466,10 +18466,14 @@ function kK(e) {
18466
18466
  credentials: "include",
18467
18467
  body: `username=${N}&password=${M}&otp=${k}`
18468
18468
  });
18469
- if (R.status !== 200) {
18470
- const { detail: P } = await R.json();
18471
- if (typeof P == "string")
18472
- throw c(P), new Error(P);
18469
+ if (!R.ok) {
18470
+ let P = "Login failed";
18471
+ try {
18472
+ const $ = await R.json();
18473
+ P = typeof $.detail == "string" ? $.detail : JSON.stringify($.detail);
18474
+ } catch {
18475
+ }
18476
+ throw c(P), new Error(P);
18473
18477
  }
18474
18478
  const F = await R.json(), { is_require_user_config_2fa: z, user: O } = F || {};
18475
18479
  if (O != null && O.organization_id && O.organization_id !== o && i && i(O.organization_id), z)
@@ -18494,10 +18498,14 @@ function kK(e) {
18494
18498
  organization_id: (n == null ? void 0 : n.organization_id) || o
18495
18499
  })
18496
18500
  });
18497
- if (N.status !== 200) {
18498
- const { detail: M } = await N.json();
18499
- if (typeof M == "string")
18500
- throw c(M), new Error(M);
18501
+ if (!N.ok) {
18502
+ let M = "Signup failed";
18503
+ try {
18504
+ const R = await N.json();
18505
+ M = typeof R.detail == "string" ? R.detail : JSON.stringify(R.detail);
18506
+ } catch {
18507
+ }
18508
+ throw c(M), new Error(M);
18501
18509
  }
18502
18510
  return _ ? S({ username: C, password: k }) : N.json();
18503
18511
  } finally {
@@ -18520,8 +18528,13 @@ function kK(e) {
18520
18528
  const _ = await fetch(`${t}/passwordless-login?token=${E}`, {
18521
18529
  credentials: "include"
18522
18530
  });
18523
- if (_.status !== 200) {
18524
- const { detail: N } = await _.json();
18531
+ if (!_.ok) {
18532
+ let N = "Login failed";
18533
+ try {
18534
+ const M = await _.json();
18535
+ N = typeof M.detail == "string" ? M.detail : JSON.stringify(M.detail);
18536
+ } catch {
18537
+ }
18525
18538
  throw c(N), new Error(N);
18526
18539
  }
18527
18540
  const C = await _.json(), { user: k } = C || {};
@@ -22652,8 +22665,8 @@ function Sh(e) {
22652
22665
  /* @__PURE__ */ u(is.Reject, { children: /* @__PURE__ */ u(cs, { size: 16, className: "text-3xl text-red-500" }) }),
22653
22666
  /* @__PURE__ */ u(is.Idle, { children: o === "image" ? /* @__PURE__ */ u(za, { size: 16, className: "text-3xl text-gray-500" }) : /* @__PURE__ */ u(zE, { size: 16, className: "text-3xl text-gray-500" }) }),
22654
22667
  /* @__PURE__ */ A("div", { className: "text-center", children: [
22655
- /* @__PURE__ */ u(gn, { size: "xl", inline: !0, className: "font-medium", children: b("Drag files here or click to select files") }),
22656
- /* @__PURE__ */ u(gn, { size: "sm", inline: !0, mt: 7, children: b("Upload as many files as you need") })
22668
+ /* @__PURE__ */ u(bn, { size: "xl", inline: !0, className: "font-medium", children: b("Drag files here or click to select files") }),
22669
+ /* @__PURE__ */ u(bn, { size: "sm", inline: !0, mt: 7, children: b("Upload as many files as you need") })
22657
22670
  ] })
22658
22671
  ] })
22659
22672
  }
@@ -26344,8 +26357,8 @@ function nQ({
26344
26357
  /* @__PURE__ */ u(is.Reject, { children: /* @__PURE__ */ u(cs, { size: 16, className: "text-3xl text-danger-main" }) }),
26345
26358
  /* @__PURE__ */ u(is.Idle, { children: /* @__PURE__ */ u(za, { size: 16, className: "text-3xl text-gray-500" }) }),
26346
26359
  /* @__PURE__ */ A("div", { className: "text-center", children: [
26347
- /* @__PURE__ */ u(gn, { size: "xl", inline: !0, className: "font-medium", children: p("Drag files here or click to select files") }),
26348
- /* @__PURE__ */ u(gn, { size: "sm", c: "dimmed", inline: !0, mt: 7, children: p("Upload as many files as you need") })
26360
+ /* @__PURE__ */ u(bn, { size: "xl", inline: !0, className: "font-medium", children: p("Drag files here or click to select files") }),
26361
+ /* @__PURE__ */ u(bn, { size: "sm", c: "dimmed", inline: !0, mt: 7, children: p("Upload as many files as you need") })
26349
26362
  ] })
26350
26363
  ]
26351
26364
  }
@@ -26441,7 +26454,7 @@ function nQ({
26441
26454
  }) }) }),
26442
26455
  !o && !n.length && /* @__PURE__ */ A(ke, { className: "text-center space-y-3 px-6 py-16", children: [
26443
26456
  /* @__PURE__ */ u(hX, { size: 16, className: "text-gray-pale-sky" }),
26444
- /* @__PURE__ */ u(gn, { c: "dimmed", size: "sm", children: p("No images found.") })
26457
+ /* @__PURE__ */ u(bn, { c: "dimmed", size: "sm", children: p("No images found.") })
26445
26458
  ] })
26446
26459
  ] }) });
26447
26460
  }
@@ -26967,7 +26980,7 @@ function cQ({
26967
26980
  className: "cursor-pointer hover:bg-gray-50",
26968
26981
  onClick: () => m(b),
26969
26982
  children: [
26970
- /* @__PURE__ */ u(Rr.Td, { children: /* @__PURE__ */ u(gn, { size: "sm", fw: 500, children: g }) }),
26983
+ /* @__PURE__ */ u(Rr.Td, { children: /* @__PURE__ */ u(bn, { size: "sm", fw: 500, children: g }) }),
26971
26984
  /* @__PURE__ */ u(Rr.Td, { children: /* @__PURE__ */ u("div", { className: "flex gap-1 flex-wrap", children: (v = b.contents) == null ? void 0 : v.map((S, x) => {
26972
26985
  var w, y;
26973
26986
  return /* @__PURE__ */ u(
@@ -26986,7 +26999,7 @@ function cQ({
26986
26999
  );
26987
27000
  }) })
26988
27001
  ] }),
26989
- !p && !f && (!d || d.length === 0) && /* @__PURE__ */ u("div", { className: "text-center py-8", children: /* @__PURE__ */ u(gn, { c: "dimmed", children: l("No templates available") }) }),
27002
+ !p && !f && (!d || d.length === 0) && /* @__PURE__ */ u("div", { className: "text-center py-8", children: /* @__PURE__ */ u(bn, { c: "dimmed", children: l("No templates available") }) }),
26990
27003
  /* @__PURE__ */ u("div", { className: "flex justify-end gap-2 pt-4", children: /* @__PURE__ */ u(Ke, { variant: "outline", onClick: t, children: l("Cancel") }) })
26991
27004
  ] })
26992
27005
  }
@@ -27414,7 +27427,7 @@ const mQ = ({
27414
27427
  }
27415
27428
  ), uC = Ye.memo(
27416
27429
  ({ label: e, description: t, required: n = !1 }) => /* @__PURE__ */ A(pt, { children: [
27417
- e && /* @__PURE__ */ A(gn, { size: "sm", fw: 500, mb: 0, children: [
27430
+ e && /* @__PURE__ */ A(bn, { size: "sm", fw: 500, mb: 0, children: [
27418
27431
  e,
27419
27432
  " ",
27420
27433
  n && /* @__PURE__ */ A(ke, { component: "span", className: "text-danger-main", children: [
@@ -27422,7 +27435,7 @@ const mQ = ({
27422
27435
  "*"
27423
27436
  ] })
27424
27437
  ] }),
27425
- t && /* @__PURE__ */ u(gn, { size: "xs", c: "dimmed", mb: 8, children: t })
27438
+ t && /* @__PURE__ */ u(bn, { size: "xs", c: "dimmed", mb: 8, children: t })
27426
27439
  ] })
27427
27440
  );
27428
27441
  uC.displayName = "LabelAndDescription";
@@ -54054,7 +54067,7 @@ const She = {
54054
54067
  }, gt = Che(She), Ehe = {
54055
54068
  isFirst: !0
54056
54069
  };
54057
- function mn(e, t, n) {
54070
+ function gn(e, t, n) {
54058
54071
  gt(e, t, n, Ehe);
54059
54072
  }
54060
54073
  const SR = 1, _he = 1.5, khe = (e) => {
@@ -54697,7 +54710,7 @@ function Khe(e, t) {
54697
54710
  const N = T.useRef(null);
54698
54711
  gt(e, "viewportInnerSizeChange", (z) => {
54699
54712
  N.current !== z.width && (N.current = z.width, l(M4(Kc(e.current.state), z.width)));
54700
- }), mn(e, "columnVisibilityChange", t.onColumnVisibilityChange);
54713
+ }), gn(e, "columnVisibilityChange", t.onColumnVisibilityChange);
54701
54714
  const R = T.useCallback(() => {
54702
54715
  o.info("Columns pipe processing have changed, regenerating the columns");
54703
54716
  const z = eu({
@@ -56054,7 +56067,7 @@ const Pme = (e, t) => {
56054
56067
  props: _
56055
56068
  }));
56056
56069
  }, [e]);
56057
- gt(e, "cellKeyDown", o(d)), gt(e, "cellDoubleClick", o(p)), gt(e, "cellFocusOut", o(m)), gt(e, "columnHeaderDragStart", o(b)), gt(e, "cellEditStart", o(g)), gt(e, "cellEditStop", o(v)), gt(e, "cellEditCommit", o(S)), gt(e, "editCellPropsChange", o(x)), mn(e, "cellEditCommit", t.onCellEditCommit), mn(e, "cellEditStart", t.onCellEditStart), mn(e, "cellEditStop", t.onCellEditStop);
56070
+ gt(e, "cellKeyDown", o(d)), gt(e, "cellDoubleClick", o(p)), gt(e, "cellFocusOut", o(m)), gt(e, "columnHeaderDragStart", o(b)), gt(e, "cellEditStart", o(g)), gt(e, "cellEditStop", o(v)), gt(e, "cellEditCommit", o(S)), gt(e, "editCellPropsChange", o(x)), gn(e, "cellEditCommit", t.onCellEditCommit), gn(e, "cellEditStart", t.onCellEditStart), gn(e, "cellEditStop", t.onCellEditStop);
56058
56071
  }, Ame = (e, t) => {
56059
56072
  var n, r;
56060
56073
  const o = T.useRef(null), i = T.useRef(null), s = _t(e, Ai), a = (C) => (...k) => {
@@ -56214,7 +56227,7 @@ const Pme = (e, t) => {
56214
56227
  const k = e.current.getCellParams(C.id, C.field);
56215
56228
  y(k, {});
56216
56229
  });
56217
- gt(e, "cellKeyDown", a(m)), gt(e, "cellDoubleClick", a(b)), gt(e, "editCellPropsChange", a(g)), gt(e, "rowEditStart", a(v)), gt(e, "rowEditStop", a(S)), gt(e, "rowEditCommit", a(x)), gt(e, "cellFocusIn", a(w)), gt(e, "cellFocusOut", a(E)), gt(e, "columnHeaderDragStart", a(_)), mn(e, "rowEditCommit", t.onRowEditCommit), mn(e, "rowEditStart", t.onRowEditStart), mn(e, "rowEditStop", t.onRowEditStop);
56230
+ gt(e, "cellKeyDown", a(m)), gt(e, "cellDoubleClick", a(b)), gt(e, "editCellPropsChange", a(g)), gt(e, "rowEditStart", a(v)), gt(e, "rowEditStop", a(S)), gt(e, "rowEditCommit", a(x)), gt(e, "cellFocusIn", a(w)), gt(e, "cellFocusOut", a(E)), gt(e, "columnHeaderDragStart", a(_)), gn(e, "rowEditCommit", t.onRowEditCommit), gn(e, "rowEditStart", t.onRowEditStart), gn(e, "rowEditStop", t.onRowEditStop);
56218
56231
  }, Dme = (e) => H({}, e, {
56219
56232
  editRows: {}
56220
56233
  });
@@ -56302,7 +56315,7 @@ function Lme(e, t) {
56302
56315
  const S = v.detail > 1;
56303
56316
  g.isEditable && g.cellMode === ln.View && S && v.preventDefault();
56304
56317
  }, []);
56305
- gt(e, "cellMouseDown", m), mn(e, "editCellPropsChange", t.onEditCellPropsChange), Tn(e, {
56318
+ gt(e, "cellMouseDown", m), gn(e, "editCellPropsChange", t.onEditCellPropsChange), Tn(e, {
56306
56319
  isCellEditable: i,
56307
56320
  setEditRowsModel: p,
56308
56321
  getEditRowsModel: f,
@@ -56395,7 +56408,7 @@ const $me = ["id", "field"], Fme = ["id", "field"], zme = Ji(["MUI: A call to `p
56395
56408
  cellToFocusAfter: I
56396
56409
  });
56397
56410
  }, [e, t.disableIgnoreModificationsIfProcessingProps]);
56398
- gt(e, "cellDoubleClick", p(b)), gt(e, "cellFocusOut", p(g)), gt(e, "cellKeyDown", p(v)), gt(e, "cellEditStart", p(S)), gt(e, "cellEditStop", p(x)), mn(e, "cellEditStart", t.onCellEditStart), mn(e, "cellEditStop", t.onCellEditStop);
56411
+ gt(e, "cellDoubleClick", p(b)), gt(e, "cellFocusOut", p(g)), gt(e, "cellKeyDown", p(v)), gt(e, "cellEditStart", p(S)), gt(e, "cellEditStop", p(x)), gn(e, "cellEditStart", t.onCellEditStart), gn(e, "cellEditStop", t.onCellEditStop);
56399
56412
  const w = T.useCallback((O, P) => {
56400
56413
  const $ = vr(e.current.state);
56401
56414
  return $[O] && $[O][P] ? ln.Edit : ln.View;
@@ -56670,7 +56683,7 @@ const $me = ["id", "field"], Fme = ["id", "field"], zme = Ji(["MUI: A call to `p
56670
56683
  cellToFocusAfter: U
56671
56684
  });
56672
56685
  }, [e, t.disableIgnoreModificationsIfProcessingProps]);
56673
- gt(e, "cellDoubleClick", m(v)), gt(e, "cellFocusIn", m(S)), gt(e, "cellFocusOut", m(x)), gt(e, "cellKeyDown", m(w)), gt(e, "rowEditStart", m(y)), gt(e, "rowEditStop", m(E)), mn(e, "rowEditStart", t.onRowEditStart), mn(e, "rowEditStop", t.onRowEditStop);
56686
+ gt(e, "cellDoubleClick", m(v)), gt(e, "cellFocusIn", m(S)), gt(e, "cellFocusOut", m(x)), gt(e, "cellKeyDown", m(w)), gt(e, "rowEditStart", m(y)), gt(e, "rowEditStop", m(E)), gn(e, "rowEditStart", t.onRowEditStart), gn(e, "rowEditStop", t.onRowEditStop);
56674
56687
  const _ = T.useCallback((I) => {
56675
56688
  if (t.editMode === vo.Cell)
56676
56689
  return yn.View;
@@ -57879,7 +57892,7 @@ const fge = (e, t) => {
57879
57892
  });
57880
57893
  };
57881
57894
  function hge(e, t) {
57882
- mn(e, "columnHeaderClick", t.onColumnHeaderClick), mn(e, "columnHeaderDoubleClick", t.onColumnHeaderDoubleClick), mn(e, "columnHeaderOver", t.onColumnHeaderOver), mn(e, "columnHeaderOut", t.onColumnHeaderOut), mn(e, "columnHeaderEnter", t.onColumnHeaderEnter), mn(e, "columnHeaderLeave", t.onColumnHeaderLeave), mn(e, "columnOrderChange", t.onColumnOrderChange), mn(e, "cellClick", t.onCellClick), mn(e, "cellDoubleClick", t.onCellDoubleClick), mn(e, "cellKeyDown", t.onCellKeyDown), mn(e, "cellFocusOut", t.onCellFocusOut), mn(e, "preferencePanelClose", t.onPreferencePanelClose), mn(e, "preferencePanelOpen", t.onPreferencePanelOpen), mn(e, "menuOpen", t.onMenuOpen), mn(e, "menuClose", t.onMenuClose), mn(e, "rowDoubleClick", t.onRowDoubleClick), mn(e, "rowClick", t.onRowClick), mn(e, "componentError", t.onError), mn(e, "stateChange", t.onStateChange);
57895
+ gn(e, "columnHeaderClick", t.onColumnHeaderClick), gn(e, "columnHeaderDoubleClick", t.onColumnHeaderDoubleClick), gn(e, "columnHeaderOver", t.onColumnHeaderOver), gn(e, "columnHeaderOut", t.onColumnHeaderOut), gn(e, "columnHeaderEnter", t.onColumnHeaderEnter), gn(e, "columnHeaderLeave", t.onColumnHeaderLeave), gn(e, "columnOrderChange", t.onColumnOrderChange), gn(e, "cellClick", t.onCellClick), gn(e, "cellDoubleClick", t.onCellDoubleClick), gn(e, "cellKeyDown", t.onCellKeyDown), gn(e, "cellFocusOut", t.onCellFocusOut), gn(e, "preferencePanelClose", t.onPreferencePanelClose), gn(e, "preferencePanelOpen", t.onPreferencePanelOpen), gn(e, "menuOpen", t.onMenuOpen), gn(e, "menuClose", t.onMenuClose), gn(e, "rowDoubleClick", t.onRowDoubleClick), gn(e, "rowClick", t.onRowClick), gn(e, "componentError", t.onError), gn(e, "stateChange", t.onStateChange);
57883
57896
  }
57884
57897
  const mge = process.env.NODE_ENV === "test", gge = ({
57885
57898
  content: e,
@@ -57981,7 +57994,7 @@ function bge(e, t) {
57981
57994
  }
57982
57995
  m();
57983
57996
  }, [t.autoHeight, m, n, c]);
57984
- yr(() => l(), [l]), mn(e, "sortedRowsSet", l), mn(e, "pageChange", l), mn(e, "pageSizeChange", l), mn(e, "columnsChange", l), gt(e, "resize", g), mn(e, "debouncedResize", t.onResize);
57997
+ yr(() => l(), [l]), gn(e, "sortedRowsSet", l), gn(e, "pageChange", l), gn(e, "pageSizeChange", l), gn(e, "columnsChange", l), gt(e, "resize", g), gn(e, "debouncedResize", t.onResize);
57985
57998
  }
57986
57999
  const vge = (e) => H({}, e, {
57987
58000
  rowsMeta: {
@@ -60700,7 +60713,7 @@ pbe().then((e) => {
60700
60713
  console.log(`backendHost ${Il} (source: ${hbe})`);
60701
60714
  const mbe = {
60702
60715
  backendHost: localStorage.getItem("backendHost") || Il
60703
- }, bn = hs((e) => ({
60716
+ }, hn = hs((e) => ({
60704
60717
  ...mbe,
60705
60718
  setBackendHost: (t) => {
60706
60719
  localStorage.setItem("backendHost", t), e(() => ({ backendHost: t }));
@@ -60719,7 +60732,7 @@ const mbe = {
60719
60732
  logout: () => e(() => ({ user: null }))
60720
60733
  }));
60721
60734
  function Ln() {
60722
- const { backendHost: e } = bn(), { user: t, setUser: n } = ea(), { organizationId: r, setOrganizationId: o } = so();
60735
+ const { backendHost: e } = hn(), { user: t, setUser: n } = ea(), { organizationId: r, setOrganizationId: o } = so();
60723
60736
  return kK({
60724
60737
  backendHost: e,
60725
60738
  user: t,
@@ -60729,7 +60742,7 @@ function Ln() {
60729
60742
  });
60730
60743
  }
60731
60744
  function jt(e, t = {}) {
60732
- const { t: n } = et(), { backendHost: r } = bn(), { user: o, setUser: i } = Ln(), { organizationId: s } = so();
60745
+ const { t: n } = et(), { backendHost: r } = hn(), { user: o, setUser: i } = Ln(), { organizationId: s } = so();
60733
60746
  return Ca(e, { backendHost: r, user: o, setUser: i, t: n }, t);
60734
60747
  }
60735
60748
  const vbe = {
@@ -61083,7 +61096,7 @@ const Xy = hs((e) => ({
61083
61096
  }
61084
61097
  }));
61085
61098
  function To(e) {
61086
- const { backendHost: t } = bn(), { user: n, setUser: r } = ea();
61099
+ const { backendHost: t } = hn(), { user: n, setUser: r } = ea();
61087
61100
  return /* @__PURE__ */ u(fQ, { backendHost: t, user: n, setUser: r, ...e });
61088
61101
  }
61089
61102
  var Fo = {}, $R;
@@ -62492,7 +62505,7 @@ Prism.languages.js = Prism.languages.javascript;
62492
62505
  })(Prism);
62493
62506
  function zR({ onSuccess: e }) {
62494
62507
  var Ee, ze, Ie, tt, Bt, Pt;
62495
- const { t } = et(), n = $n(), { id: r } = gi(), { notify: o } = dn(), { organizationId: i } = so(), { settings: s } = Lo(), { backendHost: a } = bn(), { setShowBackButton: l } = Xy(), { setNavigationConfirmation: c, clearNavigationConfirmation: d } = mk(), { isCollapsed: p, temporaryCollapse: f, clearTemporaryOverride: m } = aB(), b = !r, [g, v] = ee({
62508
+ const { t } = et(), n = $n(), { id: r } = gi(), { notify: o } = dn(), { organizationId: i } = so(), { settings: s } = Lo(), { backendHost: a } = hn(), { setShowBackButton: l } = Xy(), { setNavigationConfirmation: c, clearNavigationConfirmation: d } = mk(), { isCollapsed: p, temporaryCollapse: f, clearTemporaryOverride: m } = aB(), b = !r, [g, v] = ee({
62496
62509
  name: "",
62497
62510
  contents: []
62498
62511
  }), S = jt("template", { id: r, autoFetch: !!r }), x = b ? g : S.record, w = b ? v : S.setRecord, { update: y, create: E, loading: _ } = S, { data: C } = jt("locale", {
@@ -63330,7 +63343,7 @@ const _be = {
63330
63343
  if (!(t().APISchema || t().isLoading)) {
63331
63344
  e({ isLoading: !0, error: null });
63332
63345
  try {
63333
- const { backendHost: n } = bn.getState(), r = n.replace(/\/api\/v1\/?$/, ""), o = r === "" ? "/api/v1/openapi.json" : `${r}/openapi.json`, i = await fetch(o, {
63346
+ const { backendHost: n } = hn.getState(), r = n.replace(/\/api\/v1\/?$/, ""), o = r === "" ? "/api/v1/openapi.json" : `${r}/openapi.json`, i = await fetch(o, {
63334
63347
  credentials: "include"
63335
63348
  });
63336
63349
  if (!i.ok)
@@ -63562,7 +63575,7 @@ async function Nbe(e = null, t = null, n = null) {
63562
63575
  }
63563
63576
  }
63564
63577
  function Tbe() {
63565
- const { t: e } = et(), t = $n(), { backendHost: n } = bn(), { user: r } = Ln(), { settings: o, setSettings: i } = Lo(), { notify: s } = dn((z) => z), [a, l] = ee([]), [c, d] = ee(!0), [p, f] = ee(null), [m, b] = ee(null), [g, v] = ee(null), [S, x] = ee(!1), [w, y] = ee(null), [E, _] = ee(!1);
63578
+ const { t: e } = et(), t = $n(), { backendHost: n } = hn(), { user: r } = Ln(), { settings: o, setSettings: i } = Lo(), { notify: s } = dn((z) => z), [a, l] = ee([]), [c, d] = ee(!0), [p, f] = ee(null), [m, b] = ee(null), [g, v] = ee(null), [S, x] = ee(!1), [w, y] = ee(null), [E, _] = ee(!1);
63566
63579
  _e(() => {
63567
63580
  C();
63568
63581
  }, []);
@@ -63695,7 +63708,7 @@ function Tbe() {
63695
63708
  }, F = (z) => {
63696
63709
  zi.openConfirmModal({
63697
63710
  title: e("Reset Theme to Default"),
63698
- children: /* @__PURE__ */ u(gn, { size: "sm", children: e(
63711
+ children: /* @__PURE__ */ u(bn, { size: "sm", children: e(
63699
63712
  "This will reset all theme file edits to the original defaults. This action cannot be undone."
63700
63713
  ) }),
63701
63714
  labels: { confirm: e("Reset"), cancel: e("Cancel") },
@@ -63763,8 +63776,8 @@ function Tbe() {
63763
63776
  ] }),
63764
63777
  E && /* @__PURE__ */ u("div", { className: "fixed inset-0 bg-black/50 flex items-center justify-center z-50", children: /* @__PURE__ */ A("div", { className: "bg-white rounded-lg p-8 flex flex-col items-center gap-4 shadow-xl", children: [
63765
63778
  /* @__PURE__ */ u(ka, { size: "xl" }),
63766
- /* @__PURE__ */ u(gn, { size: "lg", fw: 600, children: e("Rebuilding site with new theme...") }),
63767
- /* @__PURE__ */ u(gn, { size: "sm", c: "dimmed", children: e("This may take a minute. Please wait.") })
63779
+ /* @__PURE__ */ u(bn, { size: "lg", fw: 600, children: e("Rebuilding site with new theme...") }),
63780
+ /* @__PURE__ */ u(bn, { size: "sm", c: "dimmed", children: e("This may take a minute. Please wait.") })
63768
63781
  ] }) }),
63769
63782
  p && /* @__PURE__ */ u(
63770
63783
  Xo,
@@ -64025,7 +64038,7 @@ function cB({ node: e, onSelectFile: t, selectedPath: n, level: r = 0 }) {
64025
64038
  }
64026
64039
  function Obe() {
64027
64040
  var B;
64028
- const { t: e } = et(), { themeName: t } = gi(), [n] = C1(), { notify: r } = dn(), { backendHost: o } = bn(), { setShowBackButton: i } = Xy(), [s, a] = ee([]), [l, c] = ee(null), [d, p] = ee(null), [f, m] = ee(!1), [b, g] = ee(!1), [v, S] = ee(null), [x, w] = ee(null), [y, E] = ee(!1), [_, C] = ee(null), { data: k } = jt("locale", {
64041
+ const { t: e } = et(), { themeName: t } = gi(), [n] = C1(), { notify: r } = dn(), { backendHost: o } = hn(), { setShowBackButton: i } = Xy(), [s, a] = ee([]), [l, c] = ee(null), [d, p] = ee(null), [f, m] = ee(!1), [b, g] = ee(!1), [v, S] = ee(null), [x, w] = ee(null), [y, E] = ee(!1), [_, C] = ee(null), { data: k } = jt("locale", {
64029
64042
  autoFetch: !0,
64030
64043
  pageSize: null
64031
64044
  });
@@ -64348,7 +64361,7 @@ function gk({
64348
64361
  autoTranslate: r = !1,
64349
64362
  contentType: o = "page"
64350
64363
  }) {
64351
- const { t: i } = et(), { notify: s } = dn(), { backendHost: a } = bn(), { settings: l } = Lo(), [c, d] = ee(null), [p, f] = ee(null), [m, b] = ee(!1), [g, { open: v, close: S }] = ir(!1), [x, { open: w, close: y }] = ir(!1);
64364
+ const { t: i } = et(), { notify: s } = dn(), { backendHost: a } = hn(), { settings: l } = Lo(), [c, d] = ee(null), [p, f] = ee(null), [m, b] = ee(!1), [g, { open: v, close: S }] = ir(!1), [x, { open: w, close: y }] = ir(!1);
64352
64365
  _e(() => {
64353
64366
  var $;
64354
64367
  if ((n == null ? void 0 : n.length) > 0 && (($ = e == null ? void 0 : e.contents) == null ? void 0 : $.length) === 0 && l) {
@@ -78869,7 +78882,7 @@ const Zk = Re((e, t) => {
78869
78882
  });
78870
78883
  Zk.classes = Td;
78871
78884
  Zk.displayName = "@mantine/tiptap/RichTextEditorContent";
78872
- function hn(e) {
78885
+ function mn(e) {
78873
78886
  return /* @__PURE__ */ u(
78874
78887
  "svg",
78875
78888
  {
@@ -78885,14 +78898,14 @@ function hn(e) {
78885
78898
  );
78886
78899
  }
78887
78900
  function MCe(e) {
78888
- return /* @__PURE__ */ A(hn, { ...e, children: [
78901
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78889
78902
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78890
78903
  /* @__PURE__ */ u("path", { d: "M7 5h6a3.5 3.5 0 0 1 0 7h-6z" }),
78891
78904
  /* @__PURE__ */ u("path", { d: "M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7" })
78892
78905
  ] });
78893
78906
  }
78894
78907
  function OCe(e) {
78895
- return /* @__PURE__ */ A(hn, { ...e, children: [
78908
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78896
78909
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78897
78910
  /* @__PURE__ */ u("path", { d: "M11 5l6 0" }),
78898
78911
  /* @__PURE__ */ u("path", { d: "M7 19l6 0" }),
@@ -78900,21 +78913,21 @@ function OCe(e) {
78900
78913
  ] });
78901
78914
  }
78902
78915
  function RCe(e) {
78903
- return /* @__PURE__ */ A(hn, { ...e, children: [
78916
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78904
78917
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78905
78918
  /* @__PURE__ */ u("path", { d: "M7 5v5a5 5 0 0 0 10 0v-5" }),
78906
78919
  /* @__PURE__ */ u("path", { d: "M5 19h14" })
78907
78920
  ] });
78908
78921
  }
78909
78922
  function ICe(e) {
78910
- return /* @__PURE__ */ A(hn, { ...e, children: [
78923
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78911
78924
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78912
78925
  /* @__PURE__ */ u("path", { d: "M5 12l14 0" }),
78913
78926
  /* @__PURE__ */ u("path", { d: "M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5" })
78914
78927
  ] });
78915
78928
  }
78916
78929
  function PCe(e) {
78917
- return /* @__PURE__ */ A(hn, { ...e, children: [
78930
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78918
78931
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78919
78932
  /* @__PURE__ */ u("path", { d: "M17 15l4 4m0 -4l-4 4" }),
78920
78933
  /* @__PURE__ */ u("path", { d: "M7 6v-1h11v1" }),
@@ -78923,7 +78936,7 @@ function PCe(e) {
78923
78936
  ] });
78924
78937
  }
78925
78938
  function ACe(e) {
78926
- return /* @__PURE__ */ A(hn, { ...e, children: [
78939
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78927
78940
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78928
78941
  /* @__PURE__ */ u("path", { d: "M19 18v-8l-2 2" }),
78929
78942
  /* @__PURE__ */ u("path", { d: "M4 6v12" }),
@@ -78936,7 +78949,7 @@ function ACe(e) {
78936
78949
  ] });
78937
78950
  }
78938
78951
  function DCe(e) {
78939
- return /* @__PURE__ */ A(hn, { ...e, children: [
78952
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78940
78953
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78941
78954
  /* @__PURE__ */ u("path", { d: "M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0" }),
78942
78955
  /* @__PURE__ */ u("path", { d: "M4 6v12" }),
@@ -78949,7 +78962,7 @@ function DCe(e) {
78949
78962
  ] });
78950
78963
  }
78951
78964
  function LCe(e) {
78952
- return /* @__PURE__ */ A(hn, { ...e, children: [
78965
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78953
78966
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78954
78967
  /* @__PURE__ */ u("path", { d: "M19 14a2 2 0 1 0 -2 -2" }),
78955
78968
  /* @__PURE__ */ u("path", { d: "M17 16a2 2 0 1 0 2 -2" }),
@@ -78963,7 +78976,7 @@ function LCe(e) {
78963
78976
  ] });
78964
78977
  }
78965
78978
  function $Ce(e) {
78966
- return /* @__PURE__ */ A(hn, { ...e, children: [
78979
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78967
78980
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78968
78981
  /* @__PURE__ */ u("path", { d: "M20 18v-8l-4 6h5" }),
78969
78982
  /* @__PURE__ */ u("path", { d: "M4 6v12" }),
@@ -78976,7 +78989,7 @@ function $Ce(e) {
78976
78989
  ] });
78977
78990
  }
78978
78991
  function FCe(e) {
78979
- return /* @__PURE__ */ A(hn, { ...e, children: [
78992
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78980
78993
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78981
78994
  /* @__PURE__ */ u("path", { d: "M17 18h2a2 2 0 1 0 0 -4h-2v-4h4" }),
78982
78995
  /* @__PURE__ */ u("path", { d: "M4 6v12" }),
@@ -78989,7 +79002,7 @@ function FCe(e) {
78989
79002
  ] });
78990
79003
  }
78991
79004
  function zCe(e) {
78992
- return /* @__PURE__ */ A(hn, { ...e, children: [
79005
+ return /* @__PURE__ */ A(mn, { ...e, children: [
78993
79006
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
78994
79007
  /* @__PURE__ */ u("path", { d: "M19 14a2 2 0 1 0 0 4a2 2 0 0 0 0 -4z" }),
78995
79008
  /* @__PURE__ */ u("path", { d: "M21 12a2 2 0 1 0 -4 0v4" }),
@@ -79003,7 +79016,7 @@ function zCe(e) {
79003
79016
  ] });
79004
79017
  }
79005
79018
  function BCe(e) {
79006
- return /* @__PURE__ */ A(hn, { ...e, children: [
79019
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79007
79020
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79008
79021
  /* @__PURE__ */ u("path", { d: "M9 6l11 0" }),
79009
79022
  /* @__PURE__ */ u("path", { d: "M9 12l11 0" }),
@@ -79014,7 +79027,7 @@ function BCe(e) {
79014
79027
  ] });
79015
79028
  }
79016
79029
  function HCe(e) {
79017
- return /* @__PURE__ */ A(hn, { ...e, children: [
79030
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79018
79031
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79019
79032
  /* @__PURE__ */ u("path", { d: "M11 6h9" }),
79020
79033
  /* @__PURE__ */ u("path", { d: "M11 12h9" }),
@@ -79024,7 +79037,7 @@ function HCe(e) {
79024
79037
  ] });
79025
79038
  }
79026
79039
  function VCe(e) {
79027
- return /* @__PURE__ */ A(hn, { ...e, children: [
79040
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79028
79041
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79029
79042
  /* @__PURE__ */ u("path", { d: "M17 22v-2" }),
79030
79043
  /* @__PURE__ */ u("path", { d: "M9 15l6 -6" }),
@@ -79036,7 +79049,7 @@ function VCe(e) {
79036
79049
  ] });
79037
79050
  }
79038
79051
  function UCe(e) {
79039
- return /* @__PURE__ */ A(hn, { ...e, children: [
79052
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79040
79053
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79041
79054
  /* @__PURE__ */ u("path", { d: "M6 15h15" }),
79042
79055
  /* @__PURE__ */ u("path", { d: "M21 19h-15" }),
@@ -79047,7 +79060,7 @@ function UCe(e) {
79047
79060
  ] });
79048
79061
  }
79049
79062
  function jCe(e) {
79050
- return /* @__PURE__ */ A(hn, { ...e, children: [
79063
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79051
79064
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79052
79065
  /* @__PURE__ */ u("path", { d: "M4 6l16 0" }),
79053
79066
  /* @__PURE__ */ u("path", { d: "M4 12l10 0" }),
@@ -79055,7 +79068,7 @@ function jCe(e) {
79055
79068
  ] });
79056
79069
  }
79057
79070
  function WCe(e) {
79058
- return /* @__PURE__ */ A(hn, { ...e, children: [
79071
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79059
79072
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79060
79073
  /* @__PURE__ */ u("path", { d: "M4 6l16 0" }),
79061
79074
  /* @__PURE__ */ u("path", { d: "M10 12l10 0" }),
@@ -79063,7 +79076,7 @@ function WCe(e) {
79063
79076
  ] });
79064
79077
  }
79065
79078
  function GCe(e) {
79066
- return /* @__PURE__ */ A(hn, { ...e, children: [
79079
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79067
79080
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79068
79081
  /* @__PURE__ */ u("path", { d: "M4 6l16 0" }),
79069
79082
  /* @__PURE__ */ u("path", { d: "M8 12l8 0" }),
@@ -79071,7 +79084,7 @@ function GCe(e) {
79071
79084
  ] });
79072
79085
  }
79073
79086
  function qCe(e) {
79074
- return /* @__PURE__ */ A(hn, { ...e, children: [
79087
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79075
79088
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79076
79089
  /* @__PURE__ */ u("path", { d: "M4 6l16 0" }),
79077
79090
  /* @__PURE__ */ u("path", { d: "M4 12l16 0" }),
@@ -79079,21 +79092,21 @@ function qCe(e) {
79079
79092
  ] });
79080
79093
  }
79081
79094
  function KCe(e) {
79082
- return /* @__PURE__ */ A(hn, { ...e, children: [
79095
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79083
79096
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79084
79097
  /* @__PURE__ */ u("path", { d: "M5 7l8 10m-8 0l8 -10" }),
79085
79098
  /* @__PURE__ */ u("path", { d: "M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" })
79086
79099
  ] });
79087
79100
  }
79088
79101
  function YCe(e) {
79089
- return /* @__PURE__ */ A(hn, { ...e, children: [
79102
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79090
79103
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79091
79104
  /* @__PURE__ */ u("path", { d: "M5 7l8 10m-8 0l8 -10" }),
79092
79105
  /* @__PURE__ */ u("path", { d: "M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" })
79093
79106
  ] });
79094
79107
  }
79095
79108
  function l3(e) {
79096
- return /* @__PURE__ */ A(hn, { ...e, children: [
79109
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79097
79110
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79098
79111
  /* @__PURE__ */ u("path", { d: "M7 8l-4 4l4 4" }),
79099
79112
  /* @__PURE__ */ u("path", { d: "M17 8l4 4l-4 4" }),
@@ -79101,7 +79114,7 @@ function l3(e) {
79101
79114
  ] });
79102
79115
  }
79103
79116
  function JCe(e) {
79104
- return /* @__PURE__ */ A(hn, { ...e, children: [
79117
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79105
79118
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79106
79119
  /* @__PURE__ */ u("path", { d: "M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4" }),
79107
79120
  /* @__PURE__ */ u("path", { d: "M12.5 5.5l4 4" }),
@@ -79110,7 +79123,7 @@ function JCe(e) {
79110
79123
  ] });
79111
79124
  }
79112
79125
  function XCe(e) {
79113
- return /* @__PURE__ */ A(hn, { ...e, children: [
79126
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79114
79127
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79115
79128
  /* @__PURE__ */ u("path", { d: "M5 12h2" }),
79116
79129
  /* @__PURE__ */ u("path", { d: "M17 12h2" }),
@@ -79118,28 +79131,28 @@ function XCe(e) {
79118
79131
  ] });
79119
79132
  }
79120
79133
  function c3(e) {
79121
- return /* @__PURE__ */ A(hn, { ...e, children: [
79134
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79122
79135
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79123
79136
  /* @__PURE__ */ u("path", { d: "M20.042 16.045a9 9 0 0 0 -12.087 -12.087m-2.318 1.677a9 9 0 1 0 12.725 12.73" }),
79124
79137
  /* @__PURE__ */ u("path", { d: "M3 3l18 18" })
79125
79138
  ] });
79126
79139
  }
79127
79140
  function ZCe(e) {
79128
- return /* @__PURE__ */ A(hn, { ...e, children: [
79141
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79129
79142
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79130
79143
  /* @__PURE__ */ u("path", { d: "M11 7l6 6" }),
79131
79144
  /* @__PURE__ */ u("path", { d: "M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z" })
79132
79145
  ] });
79133
79146
  }
79134
79147
  function QCe(e) {
79135
- return /* @__PURE__ */ A(hn, { ...e, children: [
79148
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79136
79149
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79137
79150
  /* @__PURE__ */ u("path", { d: "M18 6l-12 12" }),
79138
79151
  /* @__PURE__ */ u("path", { d: "M6 6l12 12" })
79139
79152
  ] });
79140
79153
  }
79141
79154
  function e1e(e) {
79142
- return /* @__PURE__ */ A(hn, { ...e, children: [
79155
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79143
79156
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79144
79157
  /* @__PURE__ */ u("path", { d: "M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25" }),
79145
79158
  /* @__PURE__ */ u("path", { d: "M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }),
@@ -79148,13 +79161,13 @@ function e1e(e) {
79148
79161
  ] });
79149
79162
  }
79150
79163
  function t1e(e) {
79151
- return /* @__PURE__ */ A(hn, { ...e, children: [
79164
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79152
79165
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79153
79166
  /* @__PURE__ */ u("path", { d: "M5 12l5 5l10 -10" })
79154
79167
  ] });
79155
79168
  }
79156
79169
  function n1e(e) {
79157
- return /* @__PURE__ */ A(hn, { ...e, children: [
79170
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79158
79171
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79159
79172
  /* @__PURE__ */ u("path", { d: "M9 15l6 -6" }),
79160
79173
  /* @__PURE__ */ u("path", { d: "M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" }),
@@ -79162,7 +79175,7 @@ function n1e(e) {
79162
79175
  ] });
79163
79176
  }
79164
79177
  function r1e(e) {
79165
- return /* @__PURE__ */ A(hn, { ...e, children: [
79178
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79166
79179
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79167
79180
  /* @__PURE__ */ u("path", { d: "M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6" }),
79168
79181
  /* @__PURE__ */ u("path", { d: "M11 13l9 -9" }),
@@ -79170,21 +79183,21 @@ function r1e(e) {
79170
79183
  ] });
79171
79184
  }
79172
79185
  function o1e(e) {
79173
- return /* @__PURE__ */ A(hn, { ...e, children: [
79186
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79174
79187
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79175
79188
  /* @__PURE__ */ u("path", { d: "M9 14l-4 -4l4 -4" }),
79176
79189
  /* @__PURE__ */ u("path", { d: "M5 10h11a4 4 0 1 1 0 8h-1" })
79177
79190
  ] });
79178
79191
  }
79179
79192
  function i1e(e) {
79180
- return /* @__PURE__ */ A(hn, { ...e, children: [
79193
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79181
79194
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79182
79195
  /* @__PURE__ */ u("path", { d: "M15 14l4 -4l-4 -4" }),
79183
79196
  /* @__PURE__ */ u("path", { d: "M19 10h-11a4 4 0 1 0 0 8h1" })
79184
79197
  ] });
79185
79198
  }
79186
79199
  function s1e(e) {
79187
- return /* @__PURE__ */ A(hn, { ...e, children: [
79200
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79188
79201
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79189
79202
  /* @__PURE__ */ u("path", { d: "M3.5 5.5l1.5 1.5l2.5 -2.5" }),
79190
79203
  /* @__PURE__ */ u("path", { d: "M3.5 11.5l1.5 1.5l2.5 -2.5" }),
@@ -79195,7 +79208,7 @@ function s1e(e) {
79195
79208
  ] });
79196
79209
  }
79197
79210
  function a1e(e) {
79198
- return /* @__PURE__ */ A(hn, { ...e, children: [
79211
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79199
79212
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79200
79213
  /* @__PURE__ */ u("path", { d: "M20 6l-11 0" }),
79201
79214
  /* @__PURE__ */ u("path", { d: "M20 12l-7 0" }),
@@ -79204,7 +79217,7 @@ function a1e(e) {
79204
79217
  ] });
79205
79218
  }
79206
79219
  function l1e(e) {
79207
- return /* @__PURE__ */ A(hn, { ...e, children: [
79220
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79208
79221
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79209
79222
  /* @__PURE__ */ u("path", { d: "M20 6l-7 0" }),
79210
79223
  /* @__PURE__ */ u("path", { d: "M20 12l-9 0" }),
@@ -79213,7 +79226,7 @@ function l1e(e) {
79213
79226
  ] });
79214
79227
  }
79215
79228
  function c1e(e) {
79216
- return /* @__PURE__ */ A(hn, { ...e, children: [
79229
+ return /* @__PURE__ */ A(mn, { ...e, children: [
79217
79230
  /* @__PURE__ */ u("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
79218
79231
  /* @__PURE__ */ u(
79219
79232
  "path",
@@ -83482,7 +83495,7 @@ const N3 = k3(!1, !0), T3 = k3(!0, !0), KEe = Vr.create({
83482
83495
  ),
83483
83496
  /* @__PURE__ */ u(av, { in: p, children: /* @__PURE__ */ A(gu, { children: [
83484
83497
  /* @__PURE__ */ A(Hr, { children: [
83485
- /* @__PURE__ */ A(gn, { size: "sm", children: [
83498
+ /* @__PURE__ */ A(bn, { size: "sm", children: [
83486
83499
  o("Jump Marks"),
83487
83500
  " (",
83488
83501
  c.length,
@@ -83490,7 +83503,7 @@ const N3 = k3(!1, !0), T3 = k3(!0, !0), KEe = Vr.create({
83490
83503
  ] }),
83491
83504
  /* @__PURE__ */ u(cn, { size: "xs", leftSection: /* @__PURE__ */ u(Yn, { size: 16 }), onClick: S, children: o("Add Jump Mark") })
83492
83505
  ] }),
83493
- c.length === 0 ? /* @__PURE__ */ u(gn, { size: "sm", ta: "center", py: "xl", children: o("No jump marks added yet.") }) : /* @__PURE__ */ u(gu, { children: c.map((N, M) => /* @__PURE__ */ A(
83506
+ c.length === 0 ? /* @__PURE__ */ u(bn, { size: "sm", ta: "center", py: "xl", children: o("No jump marks added yet.") }) : /* @__PURE__ */ u(gu, { children: c.map((N, M) => /* @__PURE__ */ A(
83494
83507
  "div",
83495
83508
  {
83496
83509
  className: "border border-gray-200 rounded-lg p-3 bg-gray-50 space-y-3",
@@ -102010,7 +102023,7 @@ function OTe({
102010
102023
  onClose: t,
102011
102024
  title: /* @__PURE__ */ A("div", { className: "flex items-center", children: [
102012
102025
  /* @__PURE__ */ u(za, { size: 18, className: "mr-2" }),
102013
- /* @__PURE__ */ u(gn, { size: "lg", fw: 500, children: c(n ? "Edit Gallery" : "Create Gallery") })
102026
+ /* @__PURE__ */ u(bn, { size: "lg", fw: 500, children: c(n ? "Edit Gallery" : "Create Gallery") })
102014
102027
  ] }),
102015
102028
  size: "100%",
102016
102029
  children: [
@@ -103088,7 +103101,7 @@ const ITe = [
103088
103101
  });
103089
103102
  pN.displayName = "RichTextInput";
103090
103103
  const g0 = Ye.forwardRef(function(t, n) {
103091
- const { backendHost: r } = bn(), { user: o, setUser: i } = ea(), { notify: s } = dn(), { settings: a } = Lo(), { organizationId: l } = so();
103104
+ const { backendHost: r } = hn(), { user: o, setUser: i } = ea(), { notify: s } = dn(), { settings: a } = Lo(), { organizationId: l } = so();
103092
103105
  return /* @__PURE__ */ u(
103093
103106
  pN,
103094
103107
  {
@@ -103104,7 +103117,7 @@ const g0 = Ye.forwardRef(function(t, n) {
103104
103117
  );
103105
103118
  });
103106
103119
  function fs(e, t = {}) {
103107
- const { backendHost: n } = bn(), { setUser: r } = ea();
103120
+ const { backendHost: n } = hn(), { setUser: r } = ea();
103108
103121
  return iB(e, { backendHost: n, setUser: r }, t);
103109
103122
  }
103110
103123
  function sd(e) {
@@ -103162,7 +103175,7 @@ const p6 = Ye.forwardRef(({ page: e, setPage: t }, n) => {
103162
103175
  p6.displayName = "HomepageSwitch";
103163
103176
  const f6 = "/";
103164
103177
  function fN(e) {
103165
- const { backendHost: t } = bn(), { user: n, setUser: r } = ea();
103178
+ const { backendHost: t } = hn(), { user: n, setUser: r } = ea();
103166
103179
  return /* @__PURE__ */ u(lQ, { backendHost: t, user: n, setUser: r, ...e });
103167
103180
  }
103168
103181
  const b0 = Ye.memo(({ pageContent: e, updateContentField: t }) => {
@@ -103428,7 +103441,7 @@ function hN({
103428
103441
  onContentInserted: o,
103429
103442
  contentType: i = "page"
103430
103443
  }) {
103431
- const { t: s } = et(), { user: a } = Ln(), { notify: l } = dn(), { backendHost: c } = bn(), d = Ve(null), { record: p } = jt("organization", {
103444
+ const { t: s } = et(), { user: a } = Ln(), { notify: l } = dn(), { backendHost: c } = hn(), d = Ve(null), { record: p } = jt("organization", {
103432
103445
  id: 1,
103433
103446
  autoFetch: !0
103434
103447
  }), [f, m] = ee(""), [b, g] = ee(""), [v, S] = ee(!1), [x, w] = ee([]);
@@ -103647,7 +103660,7 @@ const VTe = (e = "redirect") => {
103647
103660
  }, [n.search, t, e]);
103648
103661
  };
103649
103662
  function v6(e, t, n = null) {
103650
- const { backendHost: r } = bn(), { user: o } = Ln(), [i, s] = ee(!1), [a, l] = ee(null), [c, d] = ee(!0), p = Ve(null), f = Ve(null), m = Ve(0), b = 5, g = async () => {
103663
+ const { backendHost: r } = hn(), { user: o } = Ln(), [i, s] = ee(!1), [a, l] = ee(null), [c, d] = ee(!0), p = Ve(null), f = Ve(null), m = Ve(0), b = 5, g = async () => {
103651
103664
  if (!(!e || !t || !o))
103652
103665
  try {
103653
103666
  const x = await mo.get({ key: "token" });
@@ -103875,7 +103888,7 @@ function y6({
103875
103888
  /* @__PURE__ */ A("div", { className: "flex items-center justify-between mb-4 pb-2 border-b", children: [
103876
103889
  /* @__PURE__ */ A("div", { className: "flex items-center gap-2", children: [
103877
103890
  /* @__PURE__ */ u(ny, { size: 16, className: "text-blue-500" }),
103878
- /* @__PURE__ */ A(gn, { size: "lg", fw: 600, children: [
103891
+ /* @__PURE__ */ A(bn, { size: "lg", fw: 600, children: [
103879
103892
  S(M),
103880
103893
  " ",
103881
103894
  v(M)
@@ -103884,7 +103897,7 @@ function y6({
103884
103897
  /* @__PURE__ */ u(Uc, { size: "sm", variant: "filled", color: $ ? "red" : "green", children: $ ? "Has Differences" : "No Differences" })
103885
103898
  ] }),
103886
103899
  O && /* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ A("div", { className: "flex items-center gap-2 px-3 py-2 bg-yellow-50 border border-yellow-200 rounded", children: [
103887
- /* @__PURE__ */ u(gn, { size: "sm", fw: 500, c: B ? "green" : "red", children: c(F ? B ? "Keep server version" : "Remove server version" : B ? "Keep your version" : "Remove your version") }),
103900
+ /* @__PURE__ */ u(bn, { size: "sm", fw: 500, c: B ? "green" : "red", children: c(F ? B ? "Keep server version" : "Remove server version" : B ? "Keep your version" : "Remove your version") }),
103888
103901
  /* @__PURE__ */ u(
103889
103902
  Oi,
103890
103903
  {
@@ -103906,14 +103919,14 @@ function y6({
103906
103919
  ] }),
103907
103920
  N ? /* @__PURE__ */ A("div", { className: "space-y-3", children: [
103908
103921
  /* @__PURE__ */ A("div", { children: [
103909
- /* @__PURE__ */ A(gn, { size: "sm", fw: 500, c: "dimmed", children: [
103922
+ /* @__PURE__ */ A(bn, { size: "sm", fw: 500, c: "dimmed", children: [
103910
103923
  c("Title"),
103911
103924
  ":"
103912
103925
  ] }),
103913
- /* @__PURE__ */ u(gn, { size: "md", children: N.title || c("No title") })
103926
+ /* @__PURE__ */ u(bn, { size: "md", children: N.title || c("No title") })
103914
103927
  ] }),
103915
103928
  /* @__PURE__ */ A("div", { children: [
103916
- /* @__PURE__ */ A(gn, { size: "sm", fw: 500, c: "dimmed", children: [
103929
+ /* @__PURE__ */ A(bn, { size: "sm", fw: 500, c: "dimmed", children: [
103917
103930
  c("Content"),
103918
103931
  ":"
103919
103932
  ] }),
@@ -103924,7 +103937,7 @@ function y6({
103924
103937
  __html: y(N.content)
103925
103938
  }
103926
103939
  }
103927
- ) : /* @__PURE__ */ u(gn, { size: "sm", c: "dimmed", children: c("No content") }) })
103940
+ ) : /* @__PURE__ */ u(bn, { size: "sm", c: "dimmed", children: c("No content") }) })
103928
103941
  ] })
103929
103942
  ] }) : /* @__PURE__ */ u("div", { className: "text-center py-8 text-gray-400 italic", children: c("No server version") })
103930
103943
  ] }),
@@ -103932,7 +103945,7 @@ function y6({
103932
103945
  /* @__PURE__ */ u("h4", { className: "font-semibold text-blue-700 mb-3", children: c("Your Version") }),
103933
103946
  k ? /* @__PURE__ */ A("div", { className: "space-y-3", children: [
103934
103947
  /* @__PURE__ */ A("div", { children: [
103935
- /* @__PURE__ */ A(gn, { size: "sm", fw: 500, c: "dimmed", mb: "xs", children: [
103948
+ /* @__PURE__ */ A(bn, { size: "sm", fw: 500, c: "dimmed", mb: "xs", children: [
103936
103949
  c("Title"),
103937
103950
  ":"
103938
103951
  ] }),
@@ -103947,7 +103960,7 @@ function y6({
103947
103960
  )
103948
103961
  ] }),
103949
103962
  /* @__PURE__ */ A("div", { children: [
103950
- /* @__PURE__ */ A(gn, { size: "sm", fw: 500, c: "dimmed", mb: "xs", children: [
103963
+ /* @__PURE__ */ A(bn, { size: "sm", fw: 500, c: "dimmed", mb: "xs", children: [
103951
103964
  c("Content"),
103952
103965
  ":"
103953
103966
  ] }),
@@ -104177,7 +104190,7 @@ function tA({ onSuccess: e }) {
104177
104190
  labels: { confirm: t("Leave"), cancel: t("Stay") },
104178
104191
  onConfirm: Ze
104179
104192
  }) : Ze();
104180
- }, { backendHost: qn } = bn();
104193
+ }, { backendHost: qn } = hn();
104181
104194
  _e(() => {
104182
104195
  var Rt;
104183
104196
  if (v || !((Rt = y == null ? void 0 : y.contents) != null && Rt.length) || !(i != null && i.selected_theme)) return;
@@ -105201,7 +105214,7 @@ function jTe() {
105201
105214
  const xs = (e) => "_isThemeRow" in e && e._isThemeRow === !0, WTe = (e) => e === "/" ? "Home" : e.replace(/^\//, "").split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" ");
105202
105215
  function GTe() {
105203
105216
  var z;
105204
- const { t: e } = et(), { user: t } = Ln(), { organizationId: n } = so(), { settings: r } = Lo((O) => O), { organizations: o } = Zc(), { backendHost: i } = bn(), s = Ke, [a, l] = ee([]);
105217
+ const { t: e } = et(), { user: t } = Ln(), { organizationId: n } = so(), { settings: r } = Lo((O) => O), { organizations: o } = Zc(), { backendHost: i } = hn(), s = Ke, [a, l] = ee([]);
105205
105218
  _e(() => {
105206
105219
  const O = r == null ? void 0 : r.selected_theme;
105207
105220
  if (!O || !i) return;
@@ -105803,7 +105816,7 @@ const qTe = ({
105803
105816
  // for adding child items
105804
105817
  }) => {
105805
105818
  var z, O;
105806
- const { t: i } = et(), { settings: s } = Lo((P) => P), { organizationId: a } = so(), { backendHost: l } = bn(), c = !!n, [d, p] = ee({}), [f, m] = ee(null), [b, g] = ee(!1), [v, S] = ee(null), [x, w] = ee(!1), [y, E] = ee([]), { data: _ } = jt("locale", {
105819
+ const { t: i } = et(), { settings: s } = Lo((P) => P), { organizationId: a } = so(), { backendHost: l } = hn(), c = !!n, [d, p] = ee({}), [f, m] = ee(null), [b, g] = ee(!1), [v, S] = ee(null), [x, w] = ee(!1), [y, E] = ee([]), { data: _ } = jt("locale", {
105807
105820
  autoFetch: !0,
105808
105821
  pageSize: null
105809
105822
  });
@@ -107071,7 +107084,7 @@ const eMe = hs((e, t) => {
107071
107084
  };
107072
107085
  });
107073
107086
  function C6(e) {
107074
- const { backendHost: t } = bn(), { user: n, setUser: r } = ea(), { notify: o } = dn(), { uploadSizeLimit: i, fetchUploadSizeLimit: s } = eMe();
107087
+ const { backendHost: t } = hn(), { user: n, setUser: r } = ea(), { notify: o } = dn(), { uploadSizeLimit: i, fetchUploadSizeLimit: s } = eMe();
107075
107088
  return /* @__PURE__ */ u(
107076
107089
  Sh,
107077
107090
  {
@@ -107117,7 +107130,7 @@ const mN = Ye.memo(({ value: e, onChange: t }) => {
107117
107130
  });
107118
107131
  mN.displayName = "AuthorSelector";
107119
107132
  function tMe({ modalMode: e, onSuccess: t }) {
107120
- const { t: n } = et(), r = $n(), { notify: o } = dn((Z) => Z), { organizationId: i } = so(), { backendHost: s } = bn((Z) => Z), { settings: a } = Lo((Z) => Z), { user: l } = ea(), [c, d] = ee(!0), [p, f] = ee(!1), [m, b] = ee(0), [
107133
+ const { t: n } = et(), r = $n(), { notify: o } = dn((Z) => Z), { organizationId: i } = so(), { backendHost: s } = hn((Z) => Z), { settings: a } = Lo((Z) => Z), { user: l } = ea(), [c, d] = ee(!0), [p, f] = ee(!1), [m, b] = ee(0), [
107121
107134
  g,
107122
107135
  { open: v, close: S }
107123
107136
  ] = ir(!1), x = !!(a != null && a.has_openrouter_api_key) && !!(a != null && a.ai_autocomplete_model_id), w = !!(a != null && a.has_openrouter_api_key) && !!(a != null && a.ai_default_writing_model_id), y = n(
@@ -107518,7 +107531,7 @@ function tMe({ modalMode: e, onSuccess: t }) {
107518
107531
  }
107519
107532
  function nMe() {
107520
107533
  var pe, he;
107521
- const { t: e } = et(), t = $n(), { id: n } = gi(), { notify: r } = dn((fe) => fe), { backendHost: o } = bn((fe) => fe), i = Lo((fe) => fe.settings), s = jt("blog_post", { id: n, autoFetch: !0 }), { record: a, setRecord: l, update: c, loading: d } = s, { data: p } = jt("locale", {
107534
+ const { t: e } = et(), t = $n(), { id: n } = gi(), { notify: r } = dn((fe) => fe), { backendHost: o } = hn((fe) => fe), i = Lo((fe) => fe.settings), s = jt("blog_post", { id: n, autoFetch: !0 }), { record: a, setRecord: l, update: c, loading: d } = s, { data: p } = jt("locale", {
107522
107535
  autoFetch: !0,
107523
107536
  pageSize: null
107524
107537
  }), {
@@ -108104,7 +108117,7 @@ function nMe() {
108104
108117
  }
108105
108118
  function rMe() {
108106
108119
  var x;
108107
- const { t: e } = et(), { user: t } = Ln(), { organizations: n } = Zc(), { id: r } = gi(), o = jt("blog_post", { id: r, autoFetch: !0 }), { record: i, update: s, getOne: a } = o, { notify: l } = dn((w) => w), { backendHost: c } = bn((w) => w), { data: d } = jt("locale", {
108120
+ const { t: e } = et(), { user: t } = Ln(), { organizations: n } = Zc(), { id: r } = gi(), o = jt("blog_post", { id: r, autoFetch: !0 }), { record: i, update: s, getOne: a } = o, { notify: l } = dn((w) => w), { backendHost: c } = hn((w) => w), { data: d } = jt("locale", {
108108
108121
  autoFetch: !0,
108109
108122
  pageSize: null
108110
108123
  }), p = !t.roles.some((w) => w.string_id === "website_author_role") || t.roles.some((w) => w.string_id === "website_author_role") && !t.roles.some(
@@ -108563,7 +108576,7 @@ const aMe = ({ links: e, user: t, opened: n, toggle: r }) => {
108563
108576
  ] }) : null;
108564
108577
  }, cMe = () => {
108565
108578
  var i;
108566
- const e = $n(), { t } = et(), { backendHost: n } = bn(), { user: r, logout: o } = Ln();
108579
+ const e = $n(), { t } = et(), { backendHost: n } = hn(), { user: r, logout: o } = Ln();
108567
108580
  return r ? /* @__PURE__ */ A(ut, { shadow: "md", width: 200, children: [
108568
108581
  /* @__PURE__ */ u(ut.Target, { children: /* @__PURE__ */ A("div", { className: "flex gap-2 items-center cursor-pointer font-[500] text-[13px]", children: [
108569
108582
  /* @__PURE__ */ u(
@@ -109030,7 +109043,7 @@ function CMe() {
109030
109043
  }
109031
109044
  const _6 = Jo("/admin"), SMe = _6.Provider, gN = () => Po(_6);
109032
109045
  function EMe() {
109033
- const e = mi(), t = $n(), { t: n } = et(), r = gN(), { backendHost: o } = bn((Y) => Y), [i, s] = ee(""), [a, l] = ee(""), [c, d] = ee(""), [p, f] = ee(""), [m, b] = ee(""), [g, v] = ee(""), { notify: S } = dn((Y) => Y), { login: x, signup: w, passwordlessLogin: y } = Ln(), [E, _] = ee(!1), [C, k] = ee(!1), [N, M] = ee(""), [R, F] = ee(!1), [z, O] = ee(!1), [P, $] = ee(!1), { organizationId: D } = so((Y) => Y), [I, B] = ee({}), [L, V] = ee(0), [U, { open: j, close: W }] = ir(), { post: q, loading: G } = fs(
109046
+ const e = mi(), t = $n(), { t: n } = et(), r = gN(), { backendHost: o } = hn((Y) => Y), [i, s] = ee(""), [a, l] = ee(""), [c, d] = ee(""), [p, f] = ee(""), [m, b] = ee(""), [g, v] = ee(""), { notify: S } = dn((Y) => Y), { login: x, signup: w, passwordlessLogin: y } = Ln(), [E, _] = ee(!1), [C, k] = ee(!1), [N, M] = ee(""), [R, F] = ee(!1), [z, O] = ee(!1), [P, $] = ee(!1), { organizationId: D } = so((Y) => Y), [I, B] = ee({}), [L, V] = ee(0), [U, { open: j, close: W }] = ir(), { post: q, loading: G } = fs(
109034
109047
  "passwordless-login-request"
109035
109048
  ), K = C1()[0].get("passwordless");
109036
109049
  _e(() => {
@@ -109351,7 +109364,7 @@ function EMe() {
109351
109364
  ] });
109352
109365
  }
109353
109366
  function _Me() {
109354
- const { t: e } = et(), t = $n(), [n, r] = ee(!1), { token: o } = gi(), [i, s] = ee(""), [a, l] = ee(""), { backendHost: c } = bn((f) => f), { notify: d } = dn((f) => f);
109367
+ const { t: e } = et(), t = $n(), [n, r] = ee(!1), { token: o } = gi(), [i, s] = ee(""), [a, l] = ee(""), { backendHost: c } = hn((f) => f), { notify: d } = dn((f) => f);
109355
109368
  async function p(f) {
109356
109369
  r(!0), f.preventDefault();
109357
109370
  try {
@@ -109415,7 +109428,7 @@ function _Me() {
109415
109428
  ] }) });
109416
109429
  }
109417
109430
  function k6(e) {
109418
- const { backendHost: t } = bn();
109431
+ const { backendHost: t } = hn();
109419
109432
  return /* @__PURE__ */ u(aQ, { backendHost: t, ...e });
109420
109433
  }
109421
109434
  function iA() {
@@ -109578,7 +109591,7 @@ function iA() {
109578
109591
  ] });
109579
109592
  }
109580
109593
  function Ku(e) {
109581
- const { backendHost: t } = bn(), { user: n, setUser: r } = ea();
109594
+ const { backendHost: t } = hn(), { user: n, setUser: r } = ea();
109582
109595
  return /* @__PURE__ */ u(hQ, { backendHost: t, user: n, setUser: r, ...e });
109583
109596
  }
109584
109597
  const N6 = [
@@ -111522,7 +111535,7 @@ var qMe = GMe();
111522
111535
  const I6 = /* @__PURE__ */ gd(qMe);
111523
111536
  function KMe({ isOpen: e, close: t, onConfirmUsed2Fa: n = () => {
111524
111537
  } }) {
111525
- const { t: r } = et(), { get: o, put: i } = fs("user/me/2fa-config"), { notify: s } = dn((E) => E), [a, { open: l, close: c }] = ir(!1), [d, p] = ee(!1), [f, m] = ee("idle"), [b, g] = ee(""), [v, S] = ee("");
111538
+ const { t: r } = et(), { get: o } = fs("user/me/2fa-config"), { backendHost: i } = hn(), { notify: s } = dn((E) => E), [a, { open: l, close: c }] = ir(!1), [d, p] = ee(!1), [f, m] = ee("idle"), [b, g] = ee(""), [v, S] = ee("");
111526
111539
  _e(() => {
111527
111540
  e && (async () => {
111528
111541
  l();
@@ -111537,10 +111550,19 @@ function KMe({ isOpen: e, close: t, onConfirmUsed2Fa: n = () => {
111537
111550
  async function x() {
111538
111551
  l();
111539
111552
  try {
111540
- const { totp_uri: E } = await i({ action: "setup" });
111541
- if (E) {
111542
- const _ = await I6.toDataURL(E, { type: "image/png" });
111543
- g(_), m("qr"), S("");
111553
+ const E = await fetch(`${i}/user/me/2fa-config`, {
111554
+ method: "PUT",
111555
+ headers: { "Content-Type": "application/json" },
111556
+ credentials: "include",
111557
+ body: JSON.stringify({ action: "setup" })
111558
+ }), _ = await E.json();
111559
+ if (!E.ok) {
111560
+ s({ message: (_ == null ? void 0 : _.detail) || r("Failed to setup 2FA"), type: "error" });
111561
+ return;
111562
+ }
111563
+ if (_.totp_uri) {
111564
+ const C = await I6.toDataURL(_.totp_uri, { type: "image/png" });
111565
+ g(C), m("qr"), S("");
111544
111566
  }
111545
111567
  } catch (E) {
111546
111568
  s({ message: E.message, type: "error" });
@@ -111550,11 +111572,20 @@ function KMe({ isOpen: e, close: t, onConfirmUsed2Fa: n = () => {
111550
111572
  }
111551
111573
  async function w(E) {
111552
111574
  var _;
111553
- if (E.preventDefault(), !!E.target.reportValidity()) {
111575
+ if (E.preventDefault(), E.stopPropagation(), !!E.target.reportValidity()) {
111554
111576
  l();
111555
111577
  try {
111556
- const C = await i({ action: "confirm", otp: v });
111557
- p(!0), m("idle"), g(""), S(""), s({ message: r("Two-Factor Authentication enabled!"), type: "success" }), t(), (_ = C == null ? void 0 : C.recovery_codes) != null && _.length && n(C.recovery_codes);
111578
+ const C = await fetch(`${i}/user/me/2fa-config`, {
111579
+ method: "PUT",
111580
+ headers: { "Content-Type": "application/json" },
111581
+ credentials: "include",
111582
+ body: JSON.stringify({ action: "confirm", otp: v })
111583
+ }), k = await C.json();
111584
+ if (!C.ok) {
111585
+ s({ message: (k == null ? void 0 : k.detail) || r("Invalid OTP"), type: "error" }), S("");
111586
+ return;
111587
+ }
111588
+ p(!0), m("idle"), g(""), S(""), s({ message: r("Two-Factor Authentication enabled!"), type: "success" }), t(), (_ = k == null ? void 0 : k.recovery_codes) != null && _.length && n(k.recovery_codes);
111558
111589
  } catch (C) {
111559
111590
  s({ message: C.message, type: "error" });
111560
111591
  } finally {
@@ -111563,10 +111594,20 @@ function KMe({ isOpen: e, close: t, onConfirmUsed2Fa: n = () => {
111563
111594
  }
111564
111595
  }
111565
111596
  async function y(E) {
111566
- if (E.preventDefault(), !!E.target.reportValidity()) {
111597
+ if (E.preventDefault(), E.stopPropagation(), !!E.target.reportValidity()) {
111567
111598
  l();
111568
111599
  try {
111569
- await i({ action: "disable", otp: v }), p(!1), m("idle"), S(""), s({ message: r("Two-Factor Authentication disabled"), type: "success" }), t();
111600
+ const _ = await fetch(`${i}/user/me/2fa-config`, {
111601
+ method: "PUT",
111602
+ headers: { "Content-Type": "application/json" },
111603
+ credentials: "include",
111604
+ body: JSON.stringify({ action: "disable", otp: v })
111605
+ }), C = await _.json();
111606
+ if (!_.ok) {
111607
+ s({ message: (C == null ? void 0 : C.detail) || r("Invalid OTP"), type: "error" }), S("");
111608
+ return;
111609
+ }
111610
+ p(!1), m("idle"), S(""), s({ message: r("Two-Factor Authentication disabled"), type: "success" }), t();
111570
111611
  } catch (_) {
111571
111612
  s({ message: _.message, type: "error" });
111572
111613
  } finally {
@@ -111778,7 +111819,7 @@ function Ix() {
111778
111819
  const { t: e } = et(), t = $n(), { user: n, fetchUser: r } = Ln(), { id: o } = gi(), { hashParams: i, updateHash: s } = vN(), a = i.get("tab"), l = jt("user", {
111779
111820
  id: o,
111780
111821
  autoFetch: !0
111781
- }), { record: c, setRecord: d, update: p, loading: f } = l, { user: m } = Ln(), [b, g] = ee(!1), [v, S] = ee(""), [x, w] = ee(""), [y, E] = ee(""), [_, C] = ee(!1), { notify: k } = dn((G) => G), { backendHost: N } = bn((G) => G), [M, { open: R, close: F }] = ir(), [
111822
+ }), { record: c, setRecord: d, update: p, loading: f } = l, { user: m } = Ln(), [b, g] = ee(!1), [v, S] = ee(""), [x, w] = ee(""), [y, E] = ee(""), [_, C] = ee(!1), { notify: k } = dn((G) => G), { backendHost: N } = hn((G) => G), [M, { open: R, close: F }] = ir(), [
111782
111823
  z,
111783
111824
  { open: O, close: P }
111784
111825
  ] = ir(), [$, D] = ee([]), I = n.roles.find((G) => ["admin_role", "super_admin_role"].includes(G.string_id)) || !["admin_user", "super_user", "public_user"].includes(c == null ? void 0 : c.string_id);
@@ -113078,7 +113119,7 @@ function eOe() {
113078
113119
  return /* @__PURE__ */ u(E6, { navbarLinks: QMe });
113079
113120
  }
113080
113121
  function tOe() {
113081
- const e = mi(), t = $n(), { t: n } = et(), { backendHost: r } = bn((N) => N), [o, i] = ee(""), [s, a] = ee(""), [l, c] = ee(!1), { notify: d } = dn((N) => N), { post: p } = fs("check-2fa-config"), [f, m] = ee(""), [b, g] = ee(!1), [
113122
+ const e = mi(), t = $n(), { t: n } = et(), { backendHost: r } = hn((N) => N), [o, i] = ee(""), [s, a] = ee(""), [l, c] = ee(!1), { notify: d } = dn((N) => N), { post: p } = fs("check-2fa-config"), [f, m] = ee(""), [b, g] = ee(!1), [
113082
113123
  v,
113083
113124
  { open: S, close: x }
113084
113125
  ] = ir(), [w, y] = ee([]), [E, _] = ee("");
@@ -113222,7 +113263,7 @@ function nOe() {
113222
113263
  const { t: e } = et(), t = jt("organization", {
113223
113264
  id: 1,
113224
113265
  autoFetch: !0
113225
- }), { record: n, setRecord: r, update: o, loading: i } = t, { notify: s } = dn((C) => C), a = $n(), { user: l } = Ln(), { backendHost: c, setBackendHost: d, resetDefault: p } = bn((C) => C), [f, m] = ee(!1), b = i || f, [g, v] = ee(!1), [S, x] = ee(c), { data: w } = jt("apps", {
113266
+ }), { record: n, setRecord: r, update: o, loading: i } = t, { notify: s } = dn((C) => C), a = $n(), { user: l } = Ln(), { backendHost: c, setBackendHost: d, resetDefault: p } = hn((C) => C), [f, m] = ee(!1), b = i || f, [g, v] = ee(!1), [S, x] = ee(c), { data: w } = jt("apps", {
113226
113267
  autoFetch: !0
113227
113268
  });
113228
113269
  async function y(C) {
@@ -113468,7 +113509,7 @@ function oOe() {
113468
113509
  }, [o]), /* @__PURE__ */ u(pt, {});
113469
113510
  }
113470
113511
  function iOe() {
113471
- const { t: e } = et(), { backendHost: t } = bn((d) => d), { record: n, setRecord: r, update: o, loading: i } = jt("organization", {
113512
+ const { t: e } = et(), { backendHost: t } = hn((d) => d), { record: n, setRecord: r, update: o, loading: i } = jt("organization", {
113472
113513
  id: 1,
113473
113514
  autoFetch: !0
113474
113515
  }), { notify: s } = dn();
@@ -113568,7 +113609,7 @@ function iOe() {
113568
113609
  }
113569
113610
  function sOe() {
113570
113611
  var p, f;
113571
- const { t: e } = et(), { backendHost: t } = bn((m) => m), { record: n, setRecord: r, update: o, loading: i } = jt("organization", {
113612
+ const { t: e } = et(), { backendHost: t } = hn((m) => m), { record: n, setRecord: r, update: o, loading: i } = jt("organization", {
113572
113613
  id: 1,
113573
113614
  autoFetch: !0
113574
113615
  }), { notify: s } = dn();
@@ -113793,7 +113834,7 @@ MIICXjCCAcegAwIBAgIBADANBgkqhkiG9w0BAQ0FADBLMQswCQYDVQQGEwJ1czE...
113793
113834
  }
113794
113835
  function aOe() {
113795
113836
  var I, B;
113796
- const { t: e } = et(), { user: t } = Ln(), { organizationId: n } = so(), { backendHost: r } = bn(), o = jt("organization", {
113837
+ const { t: e } = et(), { user: t } = Ln(), { organizationId: n } = so(), { backendHost: r } = hn(), o = jt("organization", {
113797
113838
  id: n,
113798
113839
  // Use the selected organization ID without fallback
113799
113840
  autoFetch: !!n
@@ -114062,14 +114103,14 @@ function aOe() {
114062
114103
  /* @__PURE__ */ u(Lg, { size: 16, className: "text-gray-600" }),
114063
114104
  /* @__PURE__ */ u(Ir, { children: e("AI Writing") })
114064
114105
  ] }),
114065
- /* @__PURE__ */ u(gn, { c: "dimmed", size: "sm", className: "mb-2", children: e(
114106
+ /* @__PURE__ */ u(bn, { c: "dimmed", size: "sm", className: "mb-2", children: e(
114066
114107
  "Configure AI-powered content generation and translation features. Requires an OpenRouter API key to function."
114067
114108
  ) }),
114068
114109
  /* @__PURE__ */ A("div", { className: "relative grid grid-cols-1 md:grid-cols-2 gap-4 mb-4", children: [
114069
114110
  /* @__PURE__ */ A("div", { children: [
114070
114111
  /* @__PURE__ */ A("div", { className: "flex items-center gap-2 mb-2", children: [
114071
114112
  /* @__PURE__ */ u(LE, { size: 16, className: "text-gray-500" }),
114072
- /* @__PURE__ */ u(gn, { size: "sm", weight: 500, children: e("API Keys") })
114113
+ /* @__PURE__ */ u(bn, { size: "sm", weight: 500, children: e("API Keys") })
114073
114114
  ] }),
114074
114115
  /* @__PURE__ */ u(
114075
114116
  D$,
@@ -114175,7 +114216,7 @@ function aOe() {
114175
114216
  /* @__PURE__ */ u(Lg, { size: 16, className: "text-gray-600" }),
114176
114217
  /* @__PURE__ */ u(Ir, { children: e("Website AI Assistant") })
114177
114218
  ] }),
114178
- /* @__PURE__ */ u(gn, { c: "dimmed", size: "sm", className: "ml-1", children: e(
114219
+ /* @__PURE__ */ u(bn, { c: "dimmed", size: "sm", className: "ml-1", children: e(
114179
114220
  "Enable the website AI assistant in a popup chat box to help users with their queries and provide support."
114180
114221
  ) }),
114181
114222
  /* @__PURE__ */ A("div", { className: "relative grid grid-cols-1 md:grid-cols-2 gap-4 mb-4", children: [
@@ -114263,7 +114304,7 @@ function aOe() {
114263
114304
  /* @__PURE__ */ u(ME, { size: 16, className: "text-gray-600" }),
114264
114305
  /* @__PURE__ */ u(Ir, { children: e("Custom Code") })
114265
114306
  ] }),
114266
- /* @__PURE__ */ u(gn, { c: "dimmed", size: "sm", className: "ml-1", children: e(
114307
+ /* @__PURE__ */ u(bn, { c: "dimmed", size: "sm", className: "ml-1", children: e(
114267
114308
  "Inject custom code (HTML, CSS, or JavaScript) on every page, inserted before the closing </body> tag."
114268
114309
  ) }),
114269
114310
  /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u("div", { className: "border border-gray-300 rounded", style: { height: "200px" }, children: /* @__PURE__ */ u(
@@ -114291,7 +114332,7 @@ function aOe() {
114291
114332
  /* @__PURE__ */ u(MJ, { size: 16, className: "text-gray-600" }),
114292
114333
  /* @__PURE__ */ u(Ir, { children: e("Backup & Restore") })
114293
114334
  ] }),
114294
- /* @__PURE__ */ u(gn, { c: "dimmed", size: "sm", className: "ml-1", children: e(
114335
+ /* @__PURE__ */ u(bn, { c: "dimmed", size: "sm", className: "ml-1", children: e(
114295
114336
  "Export your site content (Pages, Blog Posts, Menus, Attachments) as a ZIP file or restore from a previous backup."
114296
114337
  ) }),
114297
114338
  /* @__PURE__ */ A("div", { className: "flex gap-4", children: [
@@ -114566,7 +114607,7 @@ function lOe() {
114566
114607
  /* @__PURE__ */ u(Lg, { size: 16, className: "text-gray-600" }),
114567
114608
  /* @__PURE__ */ u(Ir, { children: e("AI Writing") })
114568
114609
  ] }),
114569
- /* @__PURE__ */ u(gn, { color: "dimmed", size: "sm", className: "mb-2", children: e(
114610
+ /* @__PURE__ */ u(bn, { color: "dimmed", size: "sm", className: "mb-2", children: e(
114570
114611
  "Configure AI-powered content generation and translation features. Requires an OpenRouter API key to function."
114571
114612
  ) }),
114572
114613
  /* @__PURE__ */ A("div", { className: "relative grid grid-cols-1 md:grid-cols-2 gap-4 mb-4", children: [
@@ -114603,7 +114644,7 @@ function lOe() {
114603
114644
  /* @__PURE__ */ A("div", { children: [
114604
114645
  /* @__PURE__ */ A("div", { className: "flex items-center gap-2 mb-2", children: [
114605
114646
  /* @__PURE__ */ u(LE, { size: 16, className: "text-gray-500" }),
114606
- /* @__PURE__ */ u(gn, { size: "sm", weight: 500, children: e("API Keys") })
114647
+ /* @__PURE__ */ u(bn, { size: "sm", weight: 500, children: e("API Keys") })
114607
114648
  ] }),
114608
114649
  /* @__PURE__ */ u(
114609
114650
  Oc,
@@ -114680,7 +114721,7 @@ function lOe() {
114680
114721
  /* @__PURE__ */ u(Lg, { size: 16, className: "text-gray-600" }),
114681
114722
  /* @__PURE__ */ u(Ir, { children: e("Website AI Assistant") })
114682
114723
  ] }),
114683
- /* @__PURE__ */ u(gn, { c: "dimmed", size: "sm", className: "ml-1", children: e(
114724
+ /* @__PURE__ */ u(bn, { c: "dimmed", size: "sm", className: "ml-1", children: e(
114684
114725
  "Enable the website AI assistant in a popup chat box to help users with their queries and provide support."
114685
114726
  ) }),
114686
114727
  /* @__PURE__ */ A("div", { className: "relative grid grid-cols-1 md:grid-cols-2 gap-4 mb-4", children: [
@@ -114754,7 +114795,7 @@ function lOe() {
114754
114795
  ] });
114755
114796
  }
114756
114797
  function cOe() {
114757
- const { user: e } = Ln(), { backendHost: t } = bn();
114798
+ const { user: e } = Ln(), { backendHost: t } = hn();
114758
114799
  return Zv({ backendHost: t, token: e == null ? void 0 : e.token });
114759
114800
  }
114760
114801
  function dOe(e) {
@@ -114785,7 +114826,7 @@ function uOe(e) {
114785
114826
  }
114786
114827
  function pOe({ file: e, onDelete: t }) {
114787
114828
  var f;
114788
- const { t: n } = et(), { backendHost: r } = bn((m) => m), { notify: o } = dn((m) => m), [i, s] = ee(!1), a = (m) => {
114829
+ const { t: n } = et(), { backendHost: r } = hn((m) => m), { notify: o } = dn((m) => m), [i, s] = ee(!1), a = (m) => {
114789
114830
  m.stopPropagation();
114790
114831
  const b = Tr(r, e.name);
114791
114832
  Ch(b);
@@ -114898,7 +114939,7 @@ function pOe({ file: e, onDelete: t }) {
114898
114939
  );
114899
114940
  }
114900
114941
  function fOe() {
114901
- const { t: e } = et(), { user: t } = Ln(), { notify: n } = dn((E) => E), { backendHost: r } = bn((E) => E), o = [
114942
+ const { t: e } = et(), { user: t } = Ln(), { notify: n } = dn((E) => E), { backendHost: r } = hn((E) => E), o = [
114902
114943
  {
114903
114944
  field: "owner_id",
114904
114945
  operator: "=",
@@ -115005,8 +115046,8 @@ function fOe() {
115005
115046
  /* @__PURE__ */ u(is.Accept, { children: /* @__PURE__ */ u(TE, { size: 16, className: "text-3xl text-green-500" }) }),
115006
115047
  /* @__PURE__ */ u(is.Idle, { children: /* @__PURE__ */ u(za, { size: 16, className: "text-3xl text-gray-500" }) }),
115007
115048
  /* @__PURE__ */ A("div", { className: "text-center", children: [
115008
- /* @__PURE__ */ u(gn, { size: "xl", inline: !0, className: "font-medium", children: e("Drag files here or click to select files") }),
115009
- /* @__PURE__ */ u(gn, { size: "sm", color: "dimmed", inline: !0, mt: 7, children: e("Upload as many files as you need") })
115049
+ /* @__PURE__ */ u(bn, { size: "xl", inline: !0, className: "font-medium", children: e("Drag files here or click to select files") }),
115050
+ /* @__PURE__ */ u(bn, { size: "sm", color: "dimmed", inline: !0, mt: 7, children: e("Upload as many files as you need") })
115010
115051
  ] })
115011
115052
  ] })
115012
115053
  }
@@ -115025,7 +115066,7 @@ function hOe() {
115025
115066
  let d = a == null ? void 0 : a.authless;
115026
115067
  if (!a)
115027
115068
  try {
115028
- const { backendHost: p } = bn.getState(), f = await fetch(`${p}/util/public_settings/1`, {
115069
+ const { backendHost: p } = hn.getState(), f = await fetch(`${p}/util/public_settings/1`, {
115029
115070
  credentials: "include"
115030
115071
  });
115031
115072
  if (f.ok) {
@@ -115283,7 +115324,7 @@ function GOe(e) {
115283
115324
  }, [o.language]), _e(() => {
115284
115325
  t && i(t);
115285
115326
  }, [o, i, t]), _e(() => {
115286
- r && bn.getState().setBackendHost(r), lB.getState().fetchAPISchema();
115327
+ r && hn.getState().setBackendHost(r), lB.getState().fetchAPISchema();
115287
115328
  }, [r]), /* @__PURE__ */ u(SMe, { value: n, children: /* @__PURE__ */ u(u2, { theme: vOe, children: /* @__PURE__ */ u(uK, { children: /* @__PURE__ */ u(kF, { theme: yOe, children: /* @__PURE__ */ u(W6, { basename: n, children: /* @__PURE__ */ A(G6, { children: [
115288
115329
  /* @__PURE__ */ A(qt, { element: /* @__PURE__ */ u(bOe, {}), children: [
115289
115330
  /* @__PURE__ */ u(qt, { path: "/google-authenticated", element: /* @__PURE__ */ u(rOe, {}) }),
@@ -115348,4 +115389,4 @@ export {
115348
115389
  GOe as A,
115349
115390
  PL as W
115350
115391
  };
115351
- //# sourceMappingURL=index-DUaFobPv.js.map
115392
+ //# sourceMappingURL=index-B8JjIk5G.js.map