@dskripchenko/laravel-admin 1.22.1 → 1.23.0

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.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { h as Se, ref as A, computed as M, defineComponent as ne, openBlock as c, createElementBlock as h, createVNode as w, unref as n, createBlock as z, withCtx as x, Fragment as X, renderList as ee, createTextVNode as D, toDisplayString as y, createElementVNode as u, createCommentVNode as H, renderSlot as ze, resolveDynamicComponent as $e, normalizeClass as fe, withKeys as A1, withModifiers as me, onMounted as Oe, onUnmounted as z9, watch as Ie, resolveComponent as H9, normalizeStyle as Ve, nextTick as Je, withDirectives as s1, vModelText as q1, onBeforeUnmount as Do, Teleport as lI, Transition as _9, inject as rI, normalizeProps as O2, mergeProps as Qn, provide as Fw, vModelSelect as jw, createSlots as $I, guardReactiveProps as Dw, reactive as TI, createApp as Bw } from "vue";
2
- import { defineStore as e1, createPinia as Rw } from "pinia";
3
- import { useRouter as Ze, useRoute as l1, createWebHistory as UI, createRouter as $w } from "vue-router";
4
- import { UidIcon as ae, UidMenu as je, UidMenuItem as De, UidMenuSeparator as Tw, UidAvatar as dI, UidSidebarItem as Uw, UidSidebar as Ow, UidSkeleton as Re, UidSidebarGroup as Ew, UidModal as Zw, UidSpinner as Ww, UidSidebarLayout as Gw, useToast as ec, provideLocale as Nw, en as Xw, ru as Kw, UidToastProvider as Jw, UidAlert as Ye, UidInput as Le, UidButton as oe, UidCard as we, UidCheckbox as OI, UidErrorState as sI, UidEmptyState as hI, UidTreeView as Yw, UidTable as Co, UidPagination as Qw, UidGrid as uI, UidStack as ex, UidBadge as yI, UidSelect as S9, UidStat as ic, UidGauge as ax, UidFormField as Z2, UidTextarea as tx, UidNumberInput as nx, UidDatePicker as ox, usePopover as cx, UidTabs as EI, UidTabPanel as ZI, UidTab as lc, UidDescriptionList as ix, UidDescriptionItem as lx, UidDrawer as rx, UidStepper as dx, UidFileUpload as sx, UidProgress as hx } from "@dskripchenko/ui";
5
- import { t as v, u as W2, a as WI } from "./i18n-CoD-_QDg.js";
1
+ import { h as Se, ref as A, computed as M, defineComponent as ne, openBlock as c, createElementBlock as h, createVNode as w, unref as n, createBlock as H, withCtx as x, Fragment as X, renderList as ee, createTextVNode as D, toDisplayString as y, createElementVNode as u, createCommentVNode as V, renderSlot as ze, resolveDynamicComponent as $e, normalizeClass as fe, withKeys as A1, withModifiers as me, onMounted as Oe, onUnmounted as z9, watch as Ie, resolveComponent as H9, normalizeStyle as Ve, nextTick as Je, withDirectives as s1, vModelText as q1, onBeforeUnmount as Do, Teleport as lI, Transition as _9, inject as rI, normalizeProps as O2, mergeProps as Qn, provide as jw, vModelSelect as Dw, createSlots as $I, guardReactiveProps as Bw, reactive as TI, createApp as Rw } from "vue";
2
+ import { defineStore as e1, createPinia as $w } from "pinia";
3
+ import { useRouter as Ze, useRoute as l1, createWebHistory as UI, createRouter as Tw } from "vue-router";
4
+ import { UidIcon as ae, UidMenu as je, UidMenuItem as De, UidMenuSeparator as Uw, UidAvatar as dI, UidSidebarItem as Ow, UidSidebar as Ew, UidSkeleton as Re, UidSidebarGroup as Zw, UidModal as Ww, UidSpinner as Gw, UidSidebarLayout as Nw, useToast as ec, provideLocale as Xw, en as Kw, ru as Jw, UidToastProvider as Yw, UidAlert as Ye, UidInput as Le, UidButton as oe, UidCard as we, UidCheckbox as OI, UidErrorState as sI, UidEmptyState as hI, UidTreeView as Qw, UidTable as Co, UidPagination as ex, UidGrid as uI, UidStack as EI, UidBadge as yI, UidSelect as S9, UidStat as ic, UidGauge as ax, UidFormField as Z2, UidTextarea as tx, UidNumberInput as nx, UidDatePicker as ox, usePopover as cx, UidTabs as ZI, UidTabPanel as WI, UidTab as lc, UidDescriptionList as ix, UidDescriptionItem as lx, UidDrawer as rx, UidStepper as dx, UidFileUpload as sx, UidProgress as hx } from "@dskripchenko/ui";
5
+ import { t as v, u as W2, a as GI } from "./i18n-CoD-_QDg.js";
6
6
  import { t as ux, p as V9, u as Pe } from "./formState-DeRZBwWH.js";
7
7
  import yx from "axios";
8
8
  import { DskWysiwyg as px } from "@dskripchenko/wysiwyg";
@@ -19,7 +19,7 @@ var ac = {
19
19
  "stroke-linecap": "round",
20
20
  "stroke-linejoin": "round"
21
21
  };
22
- const GI = ({ size: a, strokeWidth: t = 2, absoluteStrokeWidth: o, color: l, iconNode: d, name: i, class: s, ...r }, { slots: p }) => Se(
22
+ const NI = ({ size: a, strokeWidth: t = 2, absoluteStrokeWidth: o, color: l, iconNode: d, name: i, class: s, ...r }, { slots: p }) => Se(
23
23
  "svg",
24
24
  {
25
25
  ...ac,
@@ -33,7 +33,7 @@ const GI = ({ size: a, strokeWidth: t = 2, absoluteStrokeWidth: o, color: l, ico
33
33
  [...d.map((m) => Se(...m)), ...p.default ? [p.default()] : []]
34
34
  );
35
35
  const e = (a, t) => (o, { slots: l }) => Se(
36
- GI,
36
+ NI,
37
37
  {
38
38
  ...o,
39
39
  iconNode: t,
@@ -15984,7 +15984,7 @@ const vx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15984
15984
  IceCreamCone: lt,
15985
15985
  IceCreamConeIcon: lt,
15986
15986
  IceCreamIcon: lt,
15987
- Icon: GI,
15987
+ Icon: NI,
15988
15988
  IdCard: Xk,
15989
15989
  IdCardIcon: Xk,
15990
15990
  Image: to,
@@ -19476,7 +19476,7 @@ const vx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19476
19476
  icons: mx
19477
19477
  }, Symbol.toStringTag, { value: "Module" }));
19478
19478
  let E2 = null;
19479
- function NI(a) {
19479
+ function XI(a) {
19480
19480
  E2 = a;
19481
19481
  }
19482
19482
  function Me() {
@@ -19497,7 +19497,7 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19497
19497
  clearAdminClient: fx,
19498
19498
  getAdminClient: Me,
19499
19499
  hasAdminClient: gx,
19500
- setAdminClient: NI
19500
+ setAdminClient: XI
19501
19501
  }, Symbol.toStringTag, { value: "Module" })), pI = e1("admin-theme", () => {
19502
19502
  const a = A("light"), t = A(["light", "dark"]), o = M(() => a.value === "dark");
19503
19503
  function l(r) {
@@ -19530,7 +19530,7 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19530
19530
  applyLocal: d,
19531
19531
  setTheme: i
19532
19532
  };
19533
- }), Mx = ["aria-label", "aria-pressed"], XI = /* @__PURE__ */ ne({
19533
+ }), Mx = ["aria-label", "aria-pressed"], KI = /* @__PURE__ */ ne({
19534
19534
  __name: "ThemeToggle",
19535
19535
  setup(a) {
19536
19536
  const t = pI(), o = M(() => t.current === "dark"), l = M(() => o.value ? F2 : x2), d = M(() => o.value ? "sun" : "moon"), i = M(
@@ -19596,14 +19596,14 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19596
19596
  setLocale: i,
19597
19597
  release: d
19598
19598
  };
19599
- }), Ix = ["aria-label"], KI = /* @__PURE__ */ ne({
19599
+ }), Ix = ["aria-label"], JI = /* @__PURE__ */ ne({
19600
19600
  __name: "LocaleSwitcher",
19601
19601
  setup(a) {
19602
19602
  const t = co();
19603
19603
  async function o(l) {
19604
19604
  l !== t.current && (await t.setLocale(l), typeof window < "u" && window.location.reload());
19605
19605
  }
19606
- return (l, d) => (c(), z(n(je), null, {
19606
+ return (l, d) => (c(), H(n(je), null, {
19607
19607
  trigger: x(() => [
19608
19608
  u("button", {
19609
19609
  type: "button",
@@ -19620,7 +19620,7 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19620
19620
  ], 8, Ix)
19621
19621
  ]),
19622
19622
  default: x(() => [
19623
- (c(!0), h(X, null, ee(n(t).available, (i) => (c(), z(n(De), {
19623
+ (c(!0), h(X, null, ee(n(t).available, (i) => (c(), H(n(De), {
19624
19624
  key: i,
19625
19625
  onClick: (s) => o(i)
19626
19626
  }, {
@@ -19732,7 +19732,7 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19732
19732
  key: 0,
19733
19733
  class: "admin-topbar__bell-badge",
19734
19734
  title: `Непрочитанных: ${n(t).unreadCount}`
19735
- }, y(o.value), 9, xx)) : H("", !0)
19735
+ }, y(o.value), 9, xx)) : V("", !0)
19736
19736
  ], 8, wx));
19737
19737
  }
19738
19738
  });
@@ -19744,7 +19744,7 @@ class We extends Error {
19744
19744
  super(o.message ?? `API error ${t}`), this.name = "ApiError", this.status = t, this.errorKey = o.errorKey ?? "unknown", this.payload = o;
19745
19745
  }
19746
19746
  }
19747
- class JI extends We {
19747
+ class YI extends We {
19748
19748
  constructor(t) {
19749
19749
  super(401, t), this.name = "UnauthenticatedError";
19750
19750
  }
@@ -19781,7 +19781,7 @@ class F9 extends Error {
19781
19781
  function LI(a, t) {
19782
19782
  switch (a) {
19783
19783
  case 401:
19784
- return new JI(t);
19784
+ return new YI(t);
19785
19785
  case 403:
19786
19786
  return new Lx(t);
19787
19787
  case 404:
@@ -19905,7 +19905,7 @@ const Qe = e1("admin-auth", () => {
19905
19905
  function d() {
19906
19906
  o.push({ name: "admin.profile" });
19907
19907
  }
19908
- return (i, s) => (c(), z(n(je), null, {
19908
+ return (i, s) => (c(), H(n(je), null, {
19909
19909
  trigger: x(() => [
19910
19910
  u("button", {
19911
19911
  type: "button",
@@ -19929,7 +19929,7 @@ const Qe = e1("admin-auth", () => {
19929
19929
  ]),
19930
19930
  _: 1
19931
19931
  }),
19932
- w(n(Tw)),
19932
+ w(n(Uw)),
19933
19933
  w(n(De), {
19934
19934
  variant: "danger",
19935
19935
  onClick: l
@@ -19968,12 +19968,12 @@ const Qe = e1("admin-auth", () => {
19968
19968
  size: 18,
19969
19969
  "data-icon": "panel-left"
19970
19970
  }, null, 8, ["icon"])
19971
- ], 8, Ax)) : H("", !0),
19971
+ ], 8, Ax)) : V("", !0),
19972
19972
  u("div", zx, [
19973
19973
  ze(i.$slots, "breadcrumbs", {}, () => [
19974
19974
  (c(!0), h(X, null, ee(a.breadcrumbs, (r, p) => (c(), h(X, { key: p }, [
19975
- p > 0 ? (c(), h("span", Hx, "›")) : H("", !0),
19976
- (c(), z($e(r.to ? "a" : "span"), {
19975
+ p > 0 ? (c(), h("span", Hx, "›")) : V("", !0),
19976
+ (c(), H($e(r.to ? "a" : "span"), {
19977
19977
  href: typeof r.to == "string" ? r.to : void 0,
19978
19978
  class: fe(p === d.value ? "cur" : "")
19979
19979
  }, {
@@ -20009,8 +20009,8 @@ const Qe = e1("admin-auth", () => {
20009
20009
  ]),
20010
20010
  ze(i.$slots, "actions"),
20011
20011
  w(bx),
20012
- w(XI),
20013
20012
  w(KI),
20013
+ w(JI),
20014
20014
  w(Sx)
20015
20015
  ]));
20016
20016
  }
@@ -20122,7 +20122,7 @@ const Qe = e1("admin-auth", () => {
20122
20122
  reset: f
20123
20123
  };
20124
20124
  }), Px = 1500;
20125
- function YI() {
20125
+ function QI() {
20126
20126
  const a = Ee(), t = j9(), o = A(!1);
20127
20127
  let l = null;
20128
20128
  return Oe(() => {
@@ -20299,10 +20299,10 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20299
20299
  onClick: C
20300
20300
  }, [
20301
20301
  u("span", Bx, [
20302
- (c(), z($e(b(a.item.icon))))
20302
+ (c(), H($e(b(a.item.icon))))
20303
20303
  ]),
20304
- a.collapsed ? H("", !0) : (c(), h("span", Rx, y(a.item.label), 1)),
20305
- a.collapsed ? H("", !0) : (c(), h("span", {
20304
+ a.collapsed ? V("", !0) : (c(), h("span", Rx, y(a.item.label), 1)),
20305
+ a.collapsed ? V("", !0) : (c(), h("span", {
20306
20306
  key: 1,
20307
20307
  class: fe(["admin-sidebar-node__chev", { "admin-sidebar-node__chev--open": d.value }]),
20308
20308
  "aria-hidden": "true"
@@ -20312,7 +20312,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20312
20312
  size: 14
20313
20313
  }, null, 8, ["icon"])
20314
20314
  ], 2))
20315
- ], 10, Dx)) : (c(), z(n(Uw), {
20315
+ ], 10, Dx)) : (c(), H(n(Ow), {
20316
20316
  key: 1,
20317
20317
  class: "admin-sidebar-node__leaf",
20318
20318
  "data-testid": `menu-${a.item.key}`,
@@ -20322,7 +20322,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20322
20322
  title: a.collapsed ? a.item.label : void 0
20323
20323
  }, {
20324
20324
  icon: x(() => [
20325
- (c(), z($e(b(a.item.icon))))
20325
+ (c(), H($e(b(a.item.icon))))
20326
20326
  ]),
20327
20327
  default: x(() => [
20328
20328
  D(" " + y(a.item.label), 1)
@@ -20330,7 +20330,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20330
20330
  _: 1
20331
20331
  }, 8, ["data-testid", "to", "active", "badge", "title"])),
20332
20332
  l.value && d.value ? (c(), h("div", $x, [
20333
- (c(!0), h(X, null, ee(a.item.children, (S) => (c(), z(f, {
20333
+ (c(!0), h(X, null, ee(a.item.children, (S) => (c(), H(f, {
20334
20334
  key: S.key,
20335
20335
  item: S,
20336
20336
  depth: a.depth + 1,
@@ -20338,7 +20338,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20338
20338
  "stripe-at": a.stripeAt,
20339
20339
  "indent-step": a.indentStep
20340
20340
  }, null, 8, ["item", "depth", "collapsed", "stripe-at", "indent-step"]))), 128))
20341
- ])) : H("", !0)
20341
+ ])) : V("", !0)
20342
20342
  ], 14, jx);
20343
20343
  };
20344
20344
  }
@@ -20407,10 +20407,10 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20407
20407
  docsUrl: { default: null }
20408
20408
  },
20409
20409
  setup(a) {
20410
- const t = j9(), o = M(() => t.groupedItems), l = YI(), d = M(() => l.value || t.isLoaded);
20410
+ const t = j9(), o = M(() => t.groupedItems), l = QI(), d = M(() => l.value || t.isLoaded);
20411
20411
  return (i, s) => {
20412
20412
  const r = H9("router-link");
20413
- return c(), z(n(Ow), { collapsed: a.collapsed }, {
20413
+ return c(), H(n(Ew), { collapsed: a.collapsed }, {
20414
20414
  header: x(() => [
20415
20415
  w(r, {
20416
20416
  to: { name: a.homeRouteName },
@@ -20424,26 +20424,26 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20424
20424
  class: "admin-sidebar-brand__logo",
20425
20425
  src: a.brandLogo,
20426
20426
  alt: a.brandName
20427
- }, null, 8, Zx)) : a.brandMark ? (c(), h("div", Wx, y(a.brandMark), 1)) : (c(), z(D9, {
20427
+ }, null, 8, Zx)) : a.brandMark ? (c(), h("div", Wx, y(a.brandMark), 1)) : (c(), H(D9, {
20428
20428
  key: 2,
20429
20429
  size: 28
20430
20430
  })),
20431
- a.collapsed ? H("", !0) : (c(), h("div", Gx, y(a.brandName), 1))
20431
+ a.collapsed ? V("", !0) : (c(), h("div", Gx, y(a.brandName), 1))
20432
20432
  ]),
20433
20433
  _: 1
20434
20434
  }, 8, ["to", "title", "aria-label"]),
20435
20435
  a.tenant && !a.collapsed ? (c(), h("div", Nx, [
20436
20436
  u("span", null, y(a.tenant.label), 1),
20437
20437
  u("b", null, y(a.tenant.name), 1)
20438
- ])) : H("", !0)
20438
+ ])) : V("", !0)
20439
20439
  ]),
20440
20440
  nav: x(() => [
20441
- d.value ? (c(!0), h(X, { key: 1 }, ee(o.value, (p, m) => (c(), z(n(Ew), {
20441
+ d.value ? (c(!0), h(X, { key: 1 }, ee(o.value, (p, m) => (c(), H(n(Zw), {
20442
20442
  key: `grp-${m}`,
20443
20443
  title: p.group ?? void 0
20444
20444
  }, {
20445
20445
  default: x(() => [
20446
- (c(!0), h(X, null, ee(p.items, (k) => (c(), z(Tx, {
20446
+ (c(!0), h(X, null, ee(p.items, (k) => (c(), H(Tx, {
20447
20447
  key: k.key,
20448
20448
  item: k,
20449
20449
  collapsed: a.collapsed
@@ -20473,7 +20473,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20473
20473
  key: 0,
20474
20474
  href: a.docsUrl,
20475
20475
  class: "admin-sidebar-foot__text admin-sidebar-foot__link"
20476
- }, " Docs ", 8, Yx)) : H("", !0)
20476
+ }, " Docs ", 8, Yx)) : V("", !0)
20477
20477
  ])
20478
20478
  ]),
20479
20479
  _: 1
@@ -20517,13 +20517,13 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20517
20517
  }), S = M(() => f.value.flatMap((G) => G.items)), Z = M(() => p.value.trim().length >= 2), U = M(
20518
20518
  () => Z.value && !m.value && S.value.length === 0
20519
20519
  );
20520
- let V = null, T = 0;
20520
+ let z = null, T = 0;
20521
20521
  Ie(p, (G) => {
20522
- if (g.value = 0, V && clearTimeout(V), G.trim().length < 2) {
20522
+ if (g.value = 0, z && clearTimeout(z), G.trim().length < 2) {
20523
20523
  k.value = [], m.value = !1;
20524
20524
  return;
20525
20525
  }
20526
- m.value = !0, V = setTimeout(() => {
20526
+ m.value = !0, z = setTimeout(() => {
20527
20527
  P(G);
20528
20528
  }, 220);
20529
20529
  });
@@ -20558,7 +20558,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20558
20558
  }
20559
20559
  return Ie(C, (G) => {
20560
20560
  G && (p.value = "", k.value = [], g.value = 0, Je(() => b.value?.focus()));
20561
- }), (G, te) => (c(), z(n(Zw), {
20561
+ }), (G, te) => (c(), H(n(Ww), {
20562
20562
  modelValue: C.value,
20563
20563
  "onUpdate:modelValue": te[4] || (te[4] = (W) => C.value = W),
20564
20564
  size: "md"
@@ -20589,23 +20589,23 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20589
20589
  }, null, 40, ab), [
20590
20590
  [q1, p.value]
20591
20591
  ]),
20592
- m.value ? (c(), z(n(Ww), {
20592
+ m.value ? (c(), H(n(Gw), {
20593
20593
  key: 0,
20594
20594
  size: "sm"
20595
- })) : H("", !0)
20595
+ })) : V("", !0)
20596
20596
  ]),
20597
20597
  u("div", tb, [
20598
- Z.value ? U.value ? (c(), h("p", ob, y(r("admin.search.hint_empty", "Ничего не найдено по запросу")) + " «" + y(p.value) + "». ", 1)) : H("", !0) : (c(), h("p", nb, y(r("admin.search.hint_min", "Введите минимум 2 символа. Ищет по разделам и записям всех ресурсов.")), 1)),
20598
+ Z.value ? U.value ? (c(), h("p", ob, y(r("admin.search.hint_empty", "Ничего не найдено по запросу")) + " «" + y(p.value) + "». ", 1)) : V("", !0) : (c(), h("p", nb, y(r("admin.search.hint_min", "Введите минимум 2 символа. Ищет по разделам и записям всех ресурсов.")), 1)),
20599
20599
  (c(!0), h(X, null, ee(f.value, (W) => (c(), h("div", {
20600
20600
  key: W.label,
20601
20601
  class: "admin-search__group"
20602
20602
  }, [
20603
20603
  u("div", cb, [
20604
- n(q9)(W.icon) ? (c(), z(n(ae), {
20604
+ n(q9)(W.icon) ? (c(), H(n(ae), {
20605
20605
  key: 0,
20606
20606
  icon: n(q9)(W.icon),
20607
20607
  size: 12
20608
- }, null, 8, ["icon"])) : H("", !0),
20608
+ }, null, 8, ["icon"])) : V("", !0),
20609
20609
  u("span", null, y(W.label), 1)
20610
20610
  ]),
20611
20611
  (c(!0), h(X, null, ee(W.items, (J) => (c(), h("button", {
@@ -20617,13 +20617,13 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20617
20617
  onMousemove: (R) => g.value = B(W, J)
20618
20618
  }, [
20619
20619
  u("span", lb, y(J.title), 1),
20620
- J.subtitle ? (c(), h("span", rb, y(J.subtitle), 1)) : H("", !0),
20621
- B(W, J) === g.value ? (c(), z(n(ae), {
20620
+ J.subtitle ? (c(), h("span", rb, y(J.subtitle), 1)) : V("", !0),
20621
+ B(W, J) === g.value ? (c(), H(n(ae), {
20622
20622
  key: 1,
20623
20623
  icon: n(No),
20624
20624
  size: 13,
20625
20625
  class: "admin-search__item-enter"
20626
- }, null, 8, ["icon"])) : H("", !0)
20626
+ }, null, 8, ["icon"])) : V("", !0)
20627
20627
  ], 42, ib))), 128))
20628
20628
  ]))), 128))
20629
20629
  ])
@@ -20687,13 +20687,13 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20687
20687
  g?.removeEventListener("change", Z);
20688
20688
  });
20689
20689
  const U = A(!1);
20690
- function V(T) {
20690
+ function z(T) {
20691
20691
  (T.metaKey || T.ctrlKey) && (T.key === "k" || T.key === "K") && (T.preventDefault(), U.value = !0);
20692
20692
  }
20693
20693
  return Oe(() => {
20694
- typeof window < "u" && window.addEventListener("keydown", V);
20694
+ typeof window < "u" && window.addEventListener("keydown", z);
20695
20695
  }), Do(() => {
20696
- typeof window < "u" && window.removeEventListener("keydown", V);
20696
+ typeof window < "u" && window.removeEventListener("keydown", z);
20697
20697
  }), (T, P) => (c(), h("div", sb, [
20698
20698
  a.impersonation ? (c(), h("div", hb, [
20699
20699
  u("span", null, [
@@ -20706,8 +20706,8 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20706
20706
  class: "admin-impersonation-banner__exit",
20707
20707
  onClick: S
20708
20708
  }, y(n(v)("Выйти из режима")), 1)
20709
- ])) : H("", !0),
20710
- w(n(Gw), {
20709
+ ])) : V("", !0),
20710
+ w(n(Nw), {
20711
20711
  "model-value": L.value,
20712
20712
  class: "admin-shell",
20713
20713
  "onUpdate:modelValue": f
@@ -20736,7 +20736,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20736
20736
  footer: x(() => [
20737
20737
  ze(T.$slots, "footer", {}, () => [
20738
20738
  u("div", ub, [
20739
- r.value ? (c(), h("span", yb, y(r.value), 1)) : H("", !0)
20739
+ r.value ? (c(), h("span", yb, y(r.value), 1)) : V("", !0)
20740
20740
  ])
20741
20741
  ])
20742
20742
  ]),
@@ -20905,7 +20905,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20905
20905
  }
20906
20906
  return z9(() => {
20907
20907
  document.removeEventListener("keydown", I);
20908
- }), (L, f) => (c(), z(lI, { to: "body" }, [
20908
+ }), (L, f) => (c(), H(lI, { to: "body" }, [
20909
20909
  w(_9, { name: "admin-notif-drawer" }, {
20910
20910
  default: x(() => [
20911
20911
  o.value ? (c(), h("div", wb, [
@@ -20917,7 +20917,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20917
20917
  u("header", bb, [
20918
20918
  u("h2", Lb, [
20919
20919
  D(y(n(v)("Уведомления")) + " ", 1),
20920
- n(t).unreadCount > 0 ? (c(), h("span", Cb, y(n(t).unreadCount), 1)) : H("", !0)
20920
+ n(t).unreadCount > 0 ? (c(), h("span", Cb, y(n(t).unreadCount), 1)) : V("", !0)
20921
20921
  ]),
20922
20922
  u("div", _b, [
20923
20923
  n(t).unreadCount > 0 ? (c(), h("button", {
@@ -20931,7 +20931,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20931
20931
  size: 14
20932
20932
  }, null, 8, ["icon"]),
20933
20933
  D(" " + y(n(v)("Прочитать все")), 1)
20934
- ])) : H("", !0),
20934
+ ])) : V("", !0),
20935
20935
  u("button", {
20936
20936
  type: "button",
20937
20937
  class: "admin-notif-drawer__close",
@@ -20988,9 +20988,9 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
20988
20988
  u("span", $b, y(b(S).title), 1),
20989
20989
  u("span", Tb, y(g(S.created_at)), 1)
20990
20990
  ]),
20991
- b(S).description ? (c(), h("div", Ub, y(b(S).description), 1)) : H("", !0)
20991
+ b(S).description ? (c(), h("div", Ub, y(b(S).description), 1)) : V("", !0)
20992
20992
  ]),
20993
- S.read_at === null ? (c(), h("span", Ob)) : H("", !0),
20993
+ S.read_at === null ? (c(), h("span", Ob)) : V("", !0),
20994
20994
  u("button", {
20995
20995
  type: "button",
20996
20996
  class: "admin-notif-drawer__item-delete",
@@ -21006,7 +21006,7 @@ const jx = ["data-depth"], Dx = ["aria-expanded", "title"], Bx = { class: "uid-s
21006
21006
  ]))
21007
21007
  ])
21008
21008
  ])
21009
- ])) : H("", !0)
21009
+ ])) : V("", !0)
21010
21010
  ]),
21011
21011
  _: 1
21012
21012
  })
@@ -21029,9 +21029,9 @@ const pe = {
21029
21029
  info(a, t) {
21030
21030
  ec().info(tc(a, t));
21031
21031
  }
21032
- }, QI = /* @__PURE__ */ Symbol("adminBrand");
21032
+ }, ew = /* @__PURE__ */ Symbol("adminBrand");
21033
21033
  function B9() {
21034
- return rI(QI, {});
21034
+ return rI(ew, {});
21035
21035
  }
21036
21036
  function Wb(a, t) {
21037
21037
  const o = M(
@@ -21043,7 +21043,7 @@ const Gb = { class: "admin-page-host" }, Nb = /* @__PURE__ */ ne({
21043
21043
  __name: "AdminApp",
21044
21044
  setup(a) {
21045
21045
  const t = l1(), o = Qe(), l = B9(), d = co();
21046
- Nw(M(() => d.current === "en" ? Xw : Kw));
21046
+ Xw(M(() => d.current === "en" ? Kw : Jw));
21047
21047
  const i = M(() => {
21048
21048
  const b = o.user;
21049
21049
  return b?.impersonator ? { asName: String(b?.name ?? "?") } : null;
@@ -21056,7 +21056,7 @@ const Gb = { class: "admin-page-host" }, Nb = /* @__PURE__ */ ne({
21056
21056
  pe.error(v("Не удалось выйти из режима импертонации."));
21057
21057
  }
21058
21058
  }
21059
- const r = YI(), { useShell: p } = Wb(t, r), m = r, k = A(!1);
21059
+ const r = QI(), { useShell: p } = Wb(t, r), m = r, k = A(!1);
21060
21060
  Ie(m, (b) => {
21061
21061
  b && Je(() => k.value = !0);
21062
21062
  }, { immediate: !0 });
@@ -21065,7 +21065,7 @@ const Gb = { class: "admin-page-host" }, Nb = /* @__PURE__ */ ne({
21065
21065
  const I = H9("router-view");
21066
21066
  return c(), h(X, null, [
21067
21067
  w(Ib),
21068
- n(p) ? (c(), z(kb, {
21068
+ n(p) ? (c(), H(kb, {
21069
21069
  key: 0,
21070
21070
  impersonation: i.value,
21071
21071
  brand: n(l),
@@ -21077,7 +21077,7 @@ const Gb = { class: "admin-page-host" }, Nb = /* @__PURE__ */ ne({
21077
21077
  default: x(({ Component: L }) => [
21078
21078
  w(_9, { name: g.value }, {
21079
21079
  default: x(() => [
21080
- n(m) ? (c(), z($e(L), { key: 0 })) : (c(), z(gb, { key: 1 }))
21080
+ n(m) ? (c(), H($e(L), { key: 0 })) : (c(), H(gb, { key: 1 }))
21081
21081
  ]),
21082
21082
  _: 2
21083
21083
  }, 1032, ["name"])
@@ -21087,11 +21087,11 @@ const Gb = { class: "admin-page-host" }, Nb = /* @__PURE__ */ ne({
21087
21087
  ])
21088
21088
  ]),
21089
21089
  _: 1
21090
- }, 8, ["impersonation", "brand"])) : (c(), z(I, { key: 1 }, {
21090
+ }, 8, ["impersonation", "brand"])) : (c(), H(I, { key: 1 }, {
21091
21091
  default: x(({ Component: L }) => [
21092
21092
  w(_9, { name: "admin-page" }, {
21093
21093
  default: x(() => [
21094
- (c(), z($e(L)))
21094
+ (c(), H($e(L)))
21095
21095
  ]),
21096
21096
  _: 2
21097
21097
  }, 1024)
@@ -21099,11 +21099,11 @@ const Gb = { class: "admin-page-host" }, Nb = /* @__PURE__ */ ne({
21099
21099
  _: 1
21100
21100
  })),
21101
21101
  w(Zb),
21102
- w(n(Jw))
21102
+ w(n(Yw))
21103
21103
  ], 64);
21104
21104
  };
21105
21105
  }
21106
- }), ew = e1("admin-dashboard", () => {
21106
+ }), aw = e1("admin-dashboard", () => {
21107
21107
  const a = A(null), t = A(!1), o = A([]), l = A([]), d = A(!1), i = A(!1), s = A(null), r = M(() => JSON.stringify(o.value) !== JSON.stringify(l.value));
21108
21108
  async function p(P) {
21109
21109
  a.value = P, i.value = !0;
@@ -21187,7 +21187,7 @@ const Gb = { class: "admin-page-host" }, Nb = /* @__PURE__ */ ne({
21187
21187
  function U(P) {
21188
21188
  o.value = P;
21189
21189
  }
21190
- function V() {
21190
+ function z() {
21191
21191
  a.value = null, t.value = !1, o.value = [], l.value = [], s.value = null;
21192
21192
  }
21193
21193
  async function T(P, B) {
@@ -21219,7 +21219,7 @@ const Gb = { class: "admin-page-host" }, Nb = /* @__PURE__ */ ne({
21219
21219
  updateWidget: S,
21220
21220
  moveWidget: Z,
21221
21221
  setDraft: U,
21222
- reset: V
21222
+ reset: z
21223
21223
  };
21224
21224
  });
21225
21225
  function R9() {
@@ -21246,13 +21246,13 @@ function R9() {
21246
21246
  }
21247
21247
  };
21248
21248
  }
21249
- const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF = _o.clear, NF = _o.registerBundle, aw = /* @__PURE__ */ ne({
21249
+ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF = _o.clear, NF = _o.registerBundle, tw = /* @__PURE__ */ ne({
21250
21250
  __name: "UnknownWidget",
21251
21251
  props: {
21252
21252
  type: {}
21253
21253
  },
21254
21254
  setup(a) {
21255
- return (t, o) => (c(), z(n(Ye), { variant: "warning" }, {
21255
+ return (t, o) => (c(), H(n(Ye), { variant: "warning" }, {
21256
21256
  title: x(() => [
21257
21257
  D("Неизвестный widget-тип: " + y(a.type), 1)
21258
21258
  ]),
@@ -21264,7 +21264,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21264
21264
  _: 1
21265
21265
  }));
21266
21266
  }
21267
- }), tw = /* @__PURE__ */ ne({
21267
+ }), nw = /* @__PURE__ */ ne({
21268
21268
  __name: "WidgetRenderer",
21269
21269
  props: {
21270
21270
  node: {}
@@ -21286,7 +21286,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21286
21286
  } = t.node;
21287
21287
  return C && typeof C == "object" && !Array.isArray(C) ? { ...I, ...C, data: C } : C !== void 0 ? { ...I, data: C } : I;
21288
21288
  });
21289
- return (d, i) => o.value ? (c(), z($e(o.value), O2(Qn({ key: 0 }, l.value)), null, 16)) : (c(), z(aw, {
21289
+ return (d, i) => o.value ? (c(), H($e(o.value), O2(Qn({ key: 0 }, l.value)), null, 16)) : (c(), H(tw, {
21290
21290
  key: 1,
21291
21291
  type: a.node.type
21292
21292
  }, null, 8, ["type"]));
@@ -21428,7 +21428,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21428
21428
  function U(B) {
21429
21429
  return B === "markdown" ? "markdown" : B === "stat" || B === "stats" ? "stat" : B === "gauge" ? "gauge" : B === "chart" || B === "bar-chart" || B === "donut-chart" ? "chart" : B === "recent-table" || B === "recent_list" || B === "recent-list" ? "recent" : null;
21430
21430
  }
21431
- function V() {
21431
+ function z() {
21432
21432
  const B = { title: r.value };
21433
21433
  switch (U(s.value)) {
21434
21434
  case "markdown":
@@ -21453,7 +21453,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21453
21453
  }
21454
21454
  function T() {
21455
21455
  if (!S.value) return;
21456
- const B = Math.max(1, Math.min(12, Number(p.value) || 6)), F = V();
21456
+ const B = Math.max(1, Math.min(12, Number(p.value) || 6)), F = z();
21457
21457
  if (o.mode === "configure" && o.item)
21458
21458
  l("save", { size: B, type: s.value, config: F });
21459
21459
  else {
@@ -21470,7 +21470,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21470
21470
  function P() {
21471
21471
  l("close");
21472
21472
  }
21473
- return (B, F) => (c(), z(lI, { to: "body" }, [
21473
+ return (B, F) => (c(), H(lI, { to: "body" }, [
21474
21474
  w(_9, { name: "admin-dialog" }, {
21475
21475
  default: x(() => [
21476
21476
  a.open ? (c(), h("div", oL, [
@@ -21508,7 +21508,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21508
21508
  u("span", mL, y(n(v)("Вернуть на дашборд")), 1)
21509
21509
  ], 8, pL))), 128))
21510
21510
  ]))
21511
- ])) : H("", !0),
21511
+ ])) : V("", !0),
21512
21512
  a.mode === "add" ? (c(), h("div", vL, [
21513
21513
  F[10] || (F[10] = u("label", { class: "admin-dialog__label" }, [
21514
21514
  D(" Тип виджета "),
@@ -21616,10 +21616,10 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21616
21616
  type: "number"
21617
21617
  }, null, 8, ["modelValue"])
21618
21618
  ])
21619
- ], 64)) : H("", !0)
21619
+ ], 64)) : V("", !0)
21620
21620
  ]),
21621
21621
  u("footer", OL, [
21622
- S.value ? H("", !0) : (c(), h("span", EL, [...F[14] || (F[14] = [
21622
+ S.value ? V("", !0) : (c(), h("span", EL, [...F[14] || (F[14] = [
21623
21623
  D(" Заполните ", -1),
21624
21624
  u("span", { class: "admin-dialog__required" }, "*", -1),
21625
21625
  D("-поля ", -1)
@@ -21646,7 +21646,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21646
21646
  }, 8, ["disabled", "title"])
21647
21647
  ])
21648
21648
  ])
21649
- ])) : H("", !0)
21649
+ ])) : V("", !0)
21650
21650
  ]),
21651
21651
  _: 1
21652
21652
  })
@@ -21655,7 +21655,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21655
21655
  }), WL = { class: "admin-page admin-dashboard" }, GL = { class: "admin-page__hd" }, NL = { class: "admin-page__title-wrap" }, XL = { class: "admin-page__title" }, KL = {
21656
21656
  key: 0,
21657
21657
  class: "admin-page__count"
21658
- }, JL = { class: "admin-page__actions" }, YL = ["draggable", "onDragstart", "onDragover", "onDrop"], QL = ["aria-label", "onMousedown"], eC = 140, aC = 16, nw = /* @__PURE__ */ ne({
21658
+ }, JL = { class: "admin-page__actions" }, YL = ["draggable", "onDragstart", "onDragover", "onDrop"], QL = ["aria-label", "onMousedown"], eC = 140, aC = 16, ow = /* @__PURE__ */ ne({
21659
21659
  __name: "DashboardPage",
21660
21660
  props: {
21661
21661
  slug: { default: void 0 },
@@ -21665,7 +21665,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21665
21665
  },
21666
21666
  emits: ["change-period", "export"],
21667
21667
  setup(a, { emit: t }) {
21668
- const o = a, l = t, d = Ee(), i = ew(), s = W2(), r = (Y) => s.tr(Y), p = l1(), m = M(() => {
21668
+ const o = a, l = t, d = Ee(), i = aw(), s = W2(), r = (Y) => s.tr(Y), p = l1(), m = M(() => {
21669
21669
  if (o.slug) return o.slug;
21670
21670
  const Y = p?.meta?.slug;
21671
21671
  if (typeof Y == "string" && Y.length > 0) return Y;
@@ -21674,7 +21674,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21674
21674
  }), k = (Y, ie) => s.has(Y) ? s.t(Y) : ie, g = M(() => {
21675
21675
  const Y = m.value;
21676
21676
  return !Y || !d.manifest ? null : d.manifest.dashboards?.find((le) => le.slug === Y) ?? null;
21677
- }), b = M(() => o.widgets ? o.widgets : V.value !== null ? V.value : g.value?.widgets ?? []), C = M(
21677
+ }), b = M(() => o.widgets ? o.widgets : z.value !== null ? z.value : g.value?.widgets ?? []), C = M(
21678
21678
  () => o.title ?? g.value?.label ?? "Dashboard"
21679
21679
  ), I = M(
21680
21680
  () => o.subtitle ?? g.value?.description ?? null
@@ -21731,7 +21731,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21731
21731
  { key: "30d", label: k("admin.dashboard.period.30d", "За 30 дней") },
21732
21732
  { key: "90d", label: k("admin.dashboard.period.90d", "За 90 дней") },
21733
21733
  { key: "all", label: k("admin.dashboard.period.all", "Всё время") }
21734
- ]), U = A("30d"), V = A(null);
21734
+ ]), U = A("30d"), z = A(null);
21735
21735
  async function T(Y, ie) {
21736
21736
  U.value = Y, l("change-period", Y);
21737
21737
  const le = m.value;
@@ -21744,7 +21744,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21744
21744
  const { getAdminClient: ie } = await Promise.resolve().then(() => qe), re = await ie().get(
21745
21745
  `/dashboard/widgets?key=${encodeURIComponent(Y)}&period=${encodeURIComponent(U.value)}`
21746
21746
  );
21747
- V.value = re.widgets;
21747
+ z.value = re.widgets;
21748
21748
  } catch {
21749
21749
  }
21750
21750
  }
@@ -21954,7 +21954,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21954
21954
  u("header", GL, [
21955
21955
  u("div", NL, [
21956
21956
  u("h1", XL, y(C.value), 1),
21957
- I.value ? (c(), h("div", KL, y(I.value), 1)) : H("", !0)
21957
+ I.value ? (c(), h("div", KL, y(I.value), 1)) : V("", !0)
21958
21958
  ]),
21959
21959
  u("div", JL, [
21960
21960
  ze(Y.$slots, "actions"),
@@ -21984,7 +21984,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
21984
21984
  })
21985
21985
  ]),
21986
21986
  default: x(() => [
21987
- (c(!0), h(X, null, ee(Z.value, (le) => (c(), z(n(De), {
21987
+ (c(!0), h(X, null, ee(Z.value, (le) => (c(), H(n(De), {
21988
21988
  key: le.key,
21989
21989
  onClick: (re) => T(le.key)
21990
21990
  }, {
@@ -22069,7 +22069,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
22069
22069
  ]),
22070
22070
  _: 1
22071
22071
  }, 8, ["loading", "disabled"])
22072
- ], 64)) : (c(), z(n(oe), {
22072
+ ], 64)) : (c(), H(n(oe), {
22073
22073
  key: 0,
22074
22074
  variant: "secondary",
22075
22075
  size: "md",
@@ -22113,20 +22113,20 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
22113
22113
  onDrop: (ve) => U9(re, ve),
22114
22114
  onDragend: $9
22115
22115
  }, [
22116
- w(tw, {
22116
+ w(nw, {
22117
22117
  node: le.node
22118
22118
  }, null, 8, ["node"]),
22119
- n(i).editMode ? (c(), z(nL, {
22119
+ n(i).editMode ? (c(), H(nL, {
22120
22120
  key: 0,
22121
22121
  onConfigure: (ve) => xe(le.layoutSlug),
22122
22122
  onRemove: (ve) => de(le.layoutSlug)
22123
- }, null, 8, ["onConfigure", "onRemove"])) : H("", !0),
22123
+ }, null, 8, ["onConfigure", "onRemove"])) : V("", !0),
22124
22124
  n(i).editMode ? (c(), h("span", {
22125
22125
  key: 1,
22126
22126
  class: "admin-dashboard__resize",
22127
22127
  "aria-label": r("Изменить размер"),
22128
22128
  onMousedown: (ve) => t1(ve, le.layoutSlug, f(le.node), S(le.layoutSlug, le.node))
22129
- }, null, 40, QL)) : H("", !0)
22129
+ }, null, 40, QL)) : V("", !0)
22130
22130
  ], 46, YL))), 128))
22131
22131
  ], 2),
22132
22132
  w(ZL, {
@@ -22155,14 +22155,14 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
22155
22155
  () => t.manifest?.dashboards ?? []
22156
22156
  ), r = M(
22157
22157
  () => s.value[0]?.slug ?? null
22158
- ), p = ew();
22158
+ ), p = aw();
22159
22159
  return Ie(
22160
22160
  r,
22161
22161
  (m) => {
22162
22162
  m && p.openDashboard(m);
22163
22163
  },
22164
22164
  { immediate: !0 }
22165
- ), (m, k) => r.value ? (c(), z(nw, {
22165
+ ), (m, k) => r.value ? (c(), H(ow, {
22166
22166
  key: 0,
22167
22167
  slug: r.value
22168
22168
  }, null, 8, ["slug"])) : (c(), h("div", tC, [
@@ -22192,7 +22192,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
22192
22192
  ], 8, rC)
22193
22193
  ]))), 128))
22194
22194
  ])
22195
- ])) : H("", !0)
22195
+ ])) : V("", !0)
22196
22196
  ]));
22197
22197
  }
22198
22198
  }), uC = { class: "admin-status-page" }, yC = { class: "admin-status-page__message" }, pC = /* @__PURE__ */ ne({
@@ -22300,7 +22300,7 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
22300
22300
  k.value = !1;
22301
22301
  }
22302
22302
  }
22303
- async function V(F, O) {
22303
+ async function z(F, O) {
22304
22304
  if (!a.value)
22305
22305
  throw new Error("useScreenStore.runMethod() before slug set");
22306
22306
  if (g.value)
@@ -22356,14 +22356,14 @@ const _o = R9(), Xb = _o.register, Kb = _o.get, Jb = _o.has, Yb = _o.list, GF =
22356
22356
  // actions
22357
22357
  reset: Z,
22358
22358
  load: U,
22359
- runMethod: V,
22359
+ runMethod: z,
22360
22360
  setField: T,
22361
22361
  setErrors: P,
22362
22362
  clearErrors: B
22363
22363
  };
22364
22364
  }), mI = /* @__PURE__ */ Symbol("admin.infolist-record");
22365
- function ow(a) {
22366
- Fw(mI, a);
22365
+ function cw(a) {
22366
+ jw(mI, a);
22367
22367
  }
22368
22368
  function XF() {
22369
22369
  const a = rI(mI);
@@ -22374,21 +22374,21 @@ function XF() {
22374
22374
  function N2() {
22375
22375
  return rI(mI, null);
22376
22376
  }
22377
- const So = R9(), qo = R9(), bC = So.register, cw = So.get, LC = So.has, KF = So.list, CC = qo.register, CI = qo.get, _C = qo.has, JF = qo.list;
22377
+ const So = R9(), qo = R9(), bC = So.register, iw = So.get, LC = So.has, KF = So.list, CC = qo.register, CI = qo.get, _C = qo.has, JF = qo.list;
22378
22378
  function YF() {
22379
22379
  So.clear(), qo.clear();
22380
22380
  }
22381
22381
  function QF(a) {
22382
22382
  a.fields && So.registerBundle(a.fields), a.layouts && qo.registerBundle(a.layouts);
22383
22383
  }
22384
- const iw = /* @__PURE__ */ ne({
22384
+ const lw = /* @__PURE__ */ ne({
22385
22385
  __name: "UnknownField",
22386
22386
  props: {
22387
22387
  type: {},
22388
22388
  name: {}
22389
22389
  },
22390
22390
  setup(a) {
22391
- return (t, o) => (c(), z(n(Ye), { variant: "warning" }, {
22391
+ return (t, o) => (c(), H(n(Ye), { variant: "warning" }, {
22392
22392
  title: x(() => [
22393
22393
  D("Неизвестный тип поля: " + y(a.type), 1)
22394
22394
  ]),
@@ -22398,7 +22398,7 @@ const iw = /* @__PURE__ */ ne({
22398
22398
  o[0] || (o[0] = D(" — зарегистрируйте field-компонент через ", -1)),
22399
22399
  u("code", null, "registerField('" + y(a.type) + "', YourComponent)", 1),
22400
22400
  o[1] || (o[1] = D(". ", -1))
22401
- ], 64)) : H("", !0)
22401
+ ], 64)) : V("", !0)
22402
22402
  ]),
22403
22403
  _: 1
22404
22404
  }));
@@ -22409,7 +22409,7 @@ const iw = /* @__PURE__ */ ne({
22409
22409
  node: {}
22410
22410
  },
22411
22411
  setup(a) {
22412
- const t = a, o = M(() => cw(t.node.type)), l = ux(), d = M(() => {
22412
+ const t = a, o = M(() => iw(t.node.type)), l = ux(), d = M(() => {
22413
22413
  const r = l?.mode;
22414
22414
  return r ? t.node.visibility?.[r] !== !1 : !0;
22415
22415
  }), i = M(() => {
@@ -22428,12 +22428,12 @@ const iw = /* @__PURE__ */ ne({
22428
22428
  return { ...m, ...p ?? {} };
22429
22429
  });
22430
22430
  return (r, p) => d.value && i.value ? (c(), h(X, { key: 0 }, [
22431
- o.value ? (c(), z($e(o.value), O2(Qn({ key: 0 }, s.value)), null, 16)) : (c(), z(iw, {
22431
+ o.value ? (c(), H($e(o.value), O2(Qn({ key: 0 }, s.value)), null, 16)) : (c(), H(lw, {
22432
22432
  key: 1,
22433
22433
  type: a.node.type,
22434
22434
  name: a.node.name
22435
22435
  }, null, 8, ["type", "name"]))
22436
- ], 64)) : H("", !0);
22436
+ ], 64)) : V("", !0);
22437
22437
  }
22438
22438
  }), bo = /* @__PURE__ */ ne({
22439
22439
  __name: "LayoutRenderer",
@@ -22449,15 +22449,15 @@ const iw = /* @__PURE__ */ ne({
22449
22449
  return s ? { kind: "layout", component: s } : { kind: "unknown" };
22450
22450
  }
22451
22451
  const i = CI(t.node.type);
22452
- return i ? { kind: "layout", component: i } : cw(t.node.type) ? { kind: "field" } : { kind: "unknown" };
22452
+ return i ? { kind: "layout", component: i } : iw(t.node.type) ? { kind: "field" } : { kind: "unknown" };
22453
22453
  }), l = M(() => {
22454
22454
  const { type: i, kind: s, ...r } = t.node;
22455
22455
  return r;
22456
22456
  }), d = M(() => t.node);
22457
- return (i, s) => o.value.kind === "layout" && o.value.component ? (c(), z($e(o.value.component), O2(Qn({ key: 0 }, l.value)), null, 16)) : o.value.kind === "field" ? (c(), z(vI, {
22457
+ return (i, s) => o.value.kind === "layout" && o.value.component ? (c(), H($e(o.value.component), O2(Qn({ key: 0 }, l.value)), null, 16)) : o.value.kind === "field" ? (c(), H(vI, {
22458
22458
  key: 1,
22459
22459
  node: d.value
22460
- }, null, 8, ["node"])) : (c(), z(iw, {
22460
+ }, null, 8, ["node"])) : (c(), H(lw, {
22461
22461
  key: 2,
22462
22462
  type: a.node.type,
22463
22463
  name: a.node.name
@@ -22479,7 +22479,7 @@ const iw = /* @__PURE__ */ ne({
22479
22479
  },
22480
22480
  setup(a) {
22481
22481
  const t = a, o = l1(), l = xC(), d = M(() => t.slug ? t.slug : String(o.params.slug ?? o.meta?.slug ?? "")), i = V9(l.state, l.errors);
22482
- ow(l.state), Ie(
22482
+ cw(l.state), Ie(
22483
22483
  () => l.errors,
22484
22484
  (k) => {
22485
22485
  i.setErrors({ ...k });
@@ -22514,10 +22514,10 @@ const iw = /* @__PURE__ */ ne({
22514
22514
  u("header", qC, [
22515
22515
  u("div", AC, [
22516
22516
  u("h1", zC, y(n(l).name || d.value), 1),
22517
- n(l).description ? (c(), h("p", HC, y(n(l).description), 1)) : H("", !0)
22517
+ n(l).description ? (c(), h("p", HC, y(n(l).description), 1)) : V("", !0)
22518
22518
  ]),
22519
22519
  n(l).commandBar.length > 0 ? (c(), h("div", VC, [
22520
- (c(!0), h(X, null, ee(n(l).commandBar, (b) => (c(), z(n(oe), {
22520
+ (c(!0), h(X, null, ee(n(l).commandBar, (b) => (c(), H(n(oe), {
22521
22521
  key: b.name,
22522
22522
  variant: m(b),
22523
22523
  icon: b.icon ?? void 0,
@@ -22530,9 +22530,9 @@ const iw = /* @__PURE__ */ ne({
22530
22530
  ]),
22531
22531
  _: 2
22532
22532
  }, 1032, ["variant", "icon", "loading", "disabled", "onClick"]))), 128))
22533
- ])) : H("", !0)
22533
+ ])) : V("", !0)
22534
22534
  ]),
22535
- n(l).hasError ? (c(), z(n(Ye), {
22535
+ n(l).hasError ? (c(), H(n(Ye), {
22536
22536
  key: 0,
22537
22537
  variant: "danger",
22538
22538
  class: "admin-screen-page__alert",
@@ -22542,7 +22542,7 @@ const iw = /* @__PURE__ */ ne({
22542
22542
  D(y(n(l).error?.message ?? n(v)("Не удалось выполнить действие")), 1)
22543
22543
  ]),
22544
22544
  _: 1
22545
- })) : n(l).lastMessage ? (c(), z(n(Ye), {
22545
+ })) : n(l).lastMessage ? (c(), H(n(Ye), {
22546
22546
  key: 1,
22547
22547
  variant: "success",
22548
22548
  class: "admin-screen-page__alert",
@@ -22552,25 +22552,25 @@ const iw = /* @__PURE__ */ ne({
22552
22552
  D(y(n(l).lastMessage), 1)
22553
22553
  ]),
22554
22554
  _: 1
22555
- })) : H("", !0),
22555
+ })) : V("", !0),
22556
22556
  n(l).loading ? (c(), h("div", PC, [
22557
22557
  (c(), h(X, null, ee(4, (b) => w(n(Re), {
22558
22558
  key: b,
22559
22559
  height: "40px"
22560
22560
  })), 64))
22561
- ])) : r.value ? (c(), z(n(we), {
22561
+ ])) : r.value ? (c(), H(n(we), {
22562
22562
  key: 3,
22563
22563
  padding: "md",
22564
22564
  class: "admin-screen-page__body"
22565
22565
  }, {
22566
22566
  default: x(() => [
22567
- (c(!0), h(X, null, ee(s.value, (b, C) => (c(), z(bo, {
22567
+ (c(!0), h(X, null, ee(s.value, (b, C) => (c(), H(bo, {
22568
22568
  key: C,
22569
22569
  node: b
22570
22570
  }, null, 8, ["node"]))), 128))
22571
22571
  ]),
22572
22572
  _: 1
22573
- })) : H("", !0)
22573
+ })) : V("", !0)
22574
22574
  ]));
22575
22575
  }
22576
22576
  }), jC = { class: "admin-auth-card__row" }, DC = ["href"], BC = {
@@ -22608,7 +22608,7 @@ const iw = /* @__PURE__ */ ne({
22608
22608
  novalidate: "",
22609
22609
  onSubmit: me(b, ["prevent"])
22610
22610
  }, [
22611
- p.value ? (c(), z(n(Ye), {
22611
+ p.value ? (c(), H(n(Ye), {
22612
22612
  key: 0,
22613
22613
  variant: "danger",
22614
22614
  class: "admin-auth-card__alert",
@@ -22618,7 +22618,7 @@ const iw = /* @__PURE__ */ ne({
22618
22618
  D(y(p.value), 1)
22619
22619
  ]),
22620
22620
  _: 1
22621
- })) : H("", !0),
22621
+ })) : V("", !0),
22622
22622
  w(n(Le), {
22623
22623
  modelValue: d.value,
22624
22624
  "onUpdate:modelValue": I[0] || (I[0] = (L) => d.value = L),
@@ -22655,7 +22655,7 @@ const iw = /* @__PURE__ */ ne({
22655
22655
  key: 0,
22656
22656
  href: a.forgotUrl,
22657
22657
  class: "admin-auth-card__link"
22658
- }, y(n(v)("Забыли пароль?")), 9, DC)) : H("", !0)
22658
+ }, y(n(v)("Забыли пароль?")), 9, DC)) : V("", !0)
22659
22659
  ]),
22660
22660
  w(n(oe), {
22661
22661
  type: "submit",
@@ -22676,7 +22676,7 @@ const iw = /* @__PURE__ */ ne({
22676
22676
  href: a.ssoUrl,
22677
22677
  class: "admin-auth-card__link"
22678
22678
  }, y(a.ssoLinkLabel), 9, RC)
22679
- ])) : H("", !0)
22679
+ ])) : V("", !0)
22680
22680
  ], 32));
22681
22681
  }
22682
22682
  }), TC = ["value", "disabled", "aria-label", "onInput", "onKeydown"], UC = { class: "admin-auth-card__row" }, OC = /* @__PURE__ */ ne({
@@ -22684,20 +22684,20 @@ const iw = /* @__PURE__ */ ne({
22684
22684
  emits: ["success", "cancel"],
22685
22685
  setup(a, { emit: t }) {
22686
22686
  const o = t, l = Qe(), d = A("totp"), i = A(["", "", "", "", "", ""]), s = A(""), r = A([]), p = A(!1), m = A(null), k = A(null), g = M(() => i.value.join("")), b = M(() => d.value === "totp" ? g.value.length === 6 : s.value.trim().length > 0);
22687
- function C(V, T) {
22688
- T instanceof HTMLInputElement && (r.value[V] = T);
22687
+ function C(z, T) {
22688
+ T instanceof HTMLInputElement && (r.value[z] = T);
22689
22689
  }
22690
- function I(V, T) {
22690
+ function I(z, T) {
22691
22691
  const P = T.target, B = P.value.replace(/\D/g, "").slice(-1);
22692
- i.value[V] = B, P.value = B, B && V < i.value.length - 1 && Je(() => r.value[V + 1]?.focus()), g.value.length === i.value.length && S();
22692
+ i.value[z] = B, P.value = B, B && z < i.value.length - 1 && Je(() => r.value[z + 1]?.focus()), g.value.length === i.value.length && S();
22693
22693
  }
22694
- function L(V, T) {
22695
- T.key === "Backspace" && !i.value[V] && V > 0 ? Je(() => r.value[V - 1]?.focus()) : T.key === "ArrowLeft" && V > 0 ? (r.value[V - 1]?.focus(), T.preventDefault()) : T.key === "ArrowRight" && V < i.value.length - 1 && (r.value[V + 1]?.focus(), T.preventDefault());
22694
+ function L(z, T) {
22695
+ T.key === "Backspace" && !i.value[z] && z > 0 ? Je(() => r.value[z - 1]?.focus()) : T.key === "ArrowLeft" && z > 0 ? (r.value[z - 1]?.focus(), T.preventDefault()) : T.key === "ArrowRight" && z < i.value.length - 1 && (r.value[z + 1]?.focus(), T.preventDefault());
22696
22696
  }
22697
- function f(V) {
22698
- const P = (V.clipboardData?.getData("text") ?? "").replace(/\D/g, "").slice(0, i.value.length);
22697
+ function f(z) {
22698
+ const P = (z.clipboardData?.getData("text") ?? "").replace(/\D/g, "").slice(0, i.value.length);
22699
22699
  if (P.length !== 0) {
22700
- V.preventDefault();
22700
+ z.preventDefault();
22701
22701
  for (let B = 0; B < i.value.length; B++)
22702
22702
  i.value[B] = P[B] ?? "";
22703
22703
  Je(() => {
@@ -22712,12 +22712,12 @@ const iw = /* @__PURE__ */ ne({
22712
22712
  if (d.value === "totp")
22713
22713
  await l.twoFactorChallenge(g.value);
22714
22714
  else {
22715
- const V = await l.twoFactorRecovery(s.value.trim());
22716
- k.value = V.remaining;
22715
+ const z = await l.twoFactorRecovery(s.value.trim());
22716
+ k.value = z.remaining;
22717
22717
  }
22718
22718
  o("success");
22719
- } catch (V) {
22720
- V instanceof G2 ? m.value = V.firstFieldMessage() ?? v("Неверный код") : V instanceof F9 ? m.value = v("Нет соединения с сервером") : V instanceof We ? m.value = V.message || v("Не удалось проверить код") : m.value = V.message;
22719
+ } catch (z) {
22720
+ z instanceof G2 ? m.value = z.firstFieldMessage() ?? v("Неверный код") : z instanceof F9 ? m.value = v("Нет соединения с сервером") : z instanceof We ? m.value = z.message || v("Не удалось проверить код") : m.value = z.message;
22721
22721
  } finally {
22722
22722
  p.value = !1;
22723
22723
  }
@@ -22729,12 +22729,12 @@ const iw = /* @__PURE__ */ ne({
22729
22729
  function U() {
22730
22730
  d.value = d.value === "totp" ? "recovery" : "totp", m.value = null;
22731
22731
  }
22732
- return (V, T) => (c(), h("form", {
22732
+ return (z, T) => (c(), h("form", {
22733
22733
  class: "admin-auth-card__bd",
22734
22734
  novalidate: "",
22735
22735
  onSubmit: me(S, ["prevent"])
22736
22736
  }, [
22737
- m.value ? (c(), z(n(Ye), {
22737
+ m.value ? (c(), H(n(Ye), {
22738
22738
  key: 0,
22739
22739
  variant: "danger",
22740
22740
  class: "admin-auth-card__alert",
@@ -22744,8 +22744,8 @@ const iw = /* @__PURE__ */ ne({
22744
22744
  D(y(m.value), 1)
22745
22745
  ]),
22746
22746
  _: 1
22747
- })) : H("", !0),
22748
- k.value !== null ? (c(), z(n(Ye), {
22747
+ })) : V("", !0),
22748
+ k.value !== null ? (c(), H(n(Ye), {
22749
22749
  key: 1,
22750
22750
  variant: "info",
22751
22751
  class: "admin-auth-card__alert",
@@ -22755,7 +22755,7 @@ const iw = /* @__PURE__ */ ne({
22755
22755
  D(" Использован recovery-код. Осталось: " + y(k.value), 1)
22756
22756
  ]),
22757
22757
  _: 1
22758
- })) : H("", !0),
22758
+ })) : V("", !0),
22759
22759
  d.value === "totp" ? (c(), h("div", {
22760
22760
  key: 2,
22761
22761
  class: "admin-code-input",
@@ -22775,7 +22775,7 @@ const iw = /* @__PURE__ */ ne({
22775
22775
  onInput: (F) => I(B, F),
22776
22776
  onKeydown: (F) => L(B, F)
22777
22777
  }, null, 40, TC))), 128))
22778
- ], 32)) : (c(), z(n(Le), {
22778
+ ], 32)) : (c(), H(n(Le), {
22779
22779
  key: 3,
22780
22780
  modelValue: s.value,
22781
22781
  "onUpdate:modelValue": T[0] || (T[0] = (P) => s.value = P),
@@ -22855,9 +22855,9 @@ const iw = /* @__PURE__ */ ne({
22855
22855
  o.isAuthenticated && m();
22856
22856
  }), (k, g) => (c(), h("div", EC, [
22857
22857
  a.showCornerActions ? (c(), h("div", ZC, [
22858
- w(XI),
22859
- w(KI)
22860
- ])) : H("", !0),
22858
+ w(KI),
22859
+ w(JI)
22860
+ ])) : V("", !0),
22861
22861
  w(n(we), {
22862
22862
  class: fe(["admin-auth-card", n(o).isChallengePending ? "admin-auth-card--wide" : ""]),
22863
22863
  padding: "none"
@@ -22871,7 +22871,7 @@ const iw = /* @__PURE__ */ ne({
22871
22871
  key: 0,
22872
22872
  src: r.value,
22873
22873
  alt: s.value
22874
- }, null, 8, GC)) : n(o).isChallengePending ? (c(), h("span", NC, "🛡")) : p.value ? (c(), h("span", XC, y(p.value), 1)) : (c(), z(D9, {
22874
+ }, null, 8, GC)) : n(o).isChallengePending ? (c(), h("span", NC, "🛡")) : p.value ? (c(), h("span", XC, y(p.value), 1)) : (c(), H(D9, {
22875
22875
  key: 3,
22876
22876
  size: 40
22877
22877
  }))
@@ -22891,13 +22891,13 @@ const iw = /* @__PURE__ */ ne({
22891
22891
  ], 64))
22892
22892
  ])
22893
22893
  ]),
22894
- n(o).isChallengePending ? (c(), z(OC, {
22894
+ n(o).isChallengePending ? (c(), H(OC, {
22895
22895
  key: 0,
22896
22896
  onSuccess: g[0] || (g[0] = () => {
22897
22897
  }),
22898
22898
  onCancel: g[1] || (g[1] = () => {
22899
22899
  })
22900
- })) : (c(), z($C, {
22900
+ })) : (c(), H($C, {
22901
22901
  key: 1,
22902
22902
  "forgot-url": a.forgotUrl,
22903
22903
  "sso-link-label": a.ssoLinkLabel,
@@ -22945,7 +22945,7 @@ const iw = /* @__PURE__ */ ne({
22945
22945
  key: 0,
22946
22946
  src: n(t).logo,
22947
22947
  alt: n(t).name ?? "Logo"
22948
- }, null, 8, t_)) : n(t).mark ? (c(), h("span", n_, y(n(t).mark), 1)) : (c(), z(D9, {
22948
+ }, null, 8, t_)) : n(t).mark ? (c(), h("span", n_, y(n(t).mark), 1)) : (c(), H(D9, {
22949
22949
  key: 2,
22950
22950
  size: 40
22951
22951
  }))
@@ -22954,7 +22954,7 @@ const iw = /* @__PURE__ */ ne({
22954
22954
  u("div", c_, y(d.value ? n(v)("Если такой email зарегистрирован — мы отправили письмо со ссылкой на сброс.") : n(v)("Введите email — отправим ссылку для сброса пароля.")), 1)
22955
22955
  ]),
22956
22956
  u("div", i_, [
22957
- d.value ? H("", !0) : (c(), h("form", {
22957
+ d.value ? V("", !0) : (c(), h("form", {
22958
22958
  key: 0,
22959
22959
  onSubmit: me(s, ["prevent"])
22960
22960
  }, [
@@ -23046,7 +23046,7 @@ const iw = /* @__PURE__ */ ne({
23046
23046
  key: 0,
23047
23047
  src: n(t).logo,
23048
23048
  alt: n(t).name ?? "Logo"
23049
- }, null, 8, h_)) : n(t).mark ? (c(), h("span", u_, y(n(t).mark), 1)) : (c(), z(D9, {
23049
+ }, null, 8, h_)) : n(t).mark ? (c(), h("span", u_, y(n(t).mark), 1)) : (c(), H(D9, {
23050
23050
  key: 2,
23051
23051
  size: 40
23052
23052
  }))
@@ -23081,7 +23081,7 @@ const iw = /* @__PURE__ */ ne({
23081
23081
  autocomplete: "new-password",
23082
23082
  required: ""
23083
23083
  }, null, 8, ["modelValue", "placeholder"]),
23084
- k.value ? (c(), h("p", m_, y(k.value), 1)) : H("", !0),
23084
+ k.value ? (c(), h("p", m_, y(k.value), 1)) : V("", !0),
23085
23085
  w(n(oe), {
23086
23086
  type: "submit",
23087
23087
  variant: "primary",
@@ -23106,7 +23106,7 @@ const iw = /* @__PURE__ */ ne({
23106
23106
  })
23107
23107
  ]));
23108
23108
  }
23109
- }), _I = { page: 1, per_page: 20, total: 0, last_page: 1 }, lw = e1("admin-resource-index", () => {
23109
+ }), _I = { page: 1, per_page: 20, total: 0, last_page: 1 }, rw = e1("admin-resource-index", () => {
23110
23110
  const a = A(null), t = A([]), o = A({ ..._I }), l = A(!1), d = A(!1), i = A(null);
23111
23111
  let s = null;
23112
23112
  const r = 200, p = A(""), m = A({}), k = A(null), g = A(null), b = A(/* @__PURE__ */ new Set()), C = M(() => !l.value && i.value === null && t.value.length === 0), I = M(() => b.value.size), L = M(() => b.value.size > 0), f = M(() => i.value !== null), S = M(() => b.value.size === 0 || t.value.length === 0 ? "none" : t.value.every((E) => b.value.has(Z(E))) ? "all" : "mixed");
@@ -23114,9 +23114,9 @@ const iw = /* @__PURE__ */ ne({
23114
23114
  return q.id ?? q.key ?? "";
23115
23115
  }
23116
23116
  function U(q) {
23117
- a.value !== q && (a.value = q, V(), l.value = !0);
23117
+ a.value !== q && (a.value = q, z(), l.value = !0);
23118
23118
  }
23119
- function V() {
23119
+ function z() {
23120
23120
  t.value = [], o.value = { ..._I }, l.value = !1, i.value = null, p.value = "", m.value = {}, k.value = null, g.value = null, b.value = /* @__PURE__ */ new Set();
23121
23121
  }
23122
23122
  function T(q = {}) {
@@ -23205,7 +23205,7 @@ const iw = /* @__PURE__ */ ne({
23205
23205
  selectionState: S,
23206
23206
  // actions
23207
23207
  setSlug: U,
23208
- reset: V,
23208
+ reset: z,
23209
23209
  load: P,
23210
23210
  setSearch: B,
23211
23211
  setFilter: F,
@@ -23221,7 +23221,7 @@ const iw = /* @__PURE__ */ ne({
23221
23221
  };
23222
23222
  }), f_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23223
23223
  __proto__: null,
23224
- useResourceIndexStore: lw
23224
+ useResourceIndexStore: rw
23225
23225
  }, Symbol.toStringTag, { value: "Module" })), SI = "d.m.Y H:i:s", g_ = "d.m.Y", M_ = /^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}/;
23226
23226
  function X2(a, t, o = {}) {
23227
23227
  if (a == null) return "";
@@ -23497,7 +23497,7 @@ const AI = ne({
23497
23497
  function U(_, j) {
23498
23498
  l("apply-filter", _, f.value[_] ?? null), j();
23499
23499
  }
23500
- function V(_, j, q) {
23500
+ function z(_, j, q) {
23501
23501
  if (!q) {
23502
23502
  Z(_, j);
23503
23503
  return;
@@ -23555,17 +23555,17 @@ const AI = ne({
23555
23555
  [q1, d.value]
23556
23556
  ])
23557
23557
  ]),
23558
- a.filters.length > 0 ? (c(), h("span", S_)) : H("", !0),
23559
- (c(!0), h(X, null, ee(r.value, (q) => (c(), z(n(je), {
23558
+ a.filters.length > 0 ? (c(), h("span", S_)) : V("", !0),
23559
+ (c(!0), h(X, null, ee(r.value, (q) => (c(), H(n(je), {
23560
23560
  key: `active-${q.name}`
23561
23561
  }, {
23562
23562
  trigger: x(() => [
23563
23563
  u("button", q_, [
23564
- R(q.icon) !== null ? (c(), z(n(ae), {
23564
+ R(q.icon) !== null ? (c(), H(n(ae), {
23565
23565
  key: 0,
23566
23566
  icon: R(q.icon),
23567
23567
  size: 14
23568
- }, null, 8, ["icon"])) : H("", !0),
23568
+ }, null, 8, ["icon"])) : V("", !0),
23569
23569
  u("span", A_, y(L(q)), 1),
23570
23570
  u("span", {
23571
23571
  role: "button",
@@ -23592,7 +23592,7 @@ const AI = ne({
23592
23592
  filter: q,
23593
23593
  draft: S(q.name),
23594
23594
  "is-checked": (E) => T(q.name, E),
23595
- onToggleOption: (E) => V(q.name, E, q.multiple ?? !1),
23595
+ onToggleOption: (E) => z(q.name, E, q.multiple ?? !1),
23596
23596
  onSetDraft: (E) => Z(q.name, E)
23597
23597
  }, null, 8, ["filter", "draft", "is-checked", "onToggleOption", "onSetDraft"]),
23598
23598
  u("div", H_, [
@@ -23622,16 +23622,16 @@ const AI = ne({
23622
23622
  ]),
23623
23623
  _: 2
23624
23624
  }, 1024))), 128)),
23625
- (c(!0), h(X, null, ee(k.value, (q) => (c(), z(n(je), {
23625
+ (c(!0), h(X, null, ee(k.value, (q) => (c(), H(n(je), {
23626
23626
  key: `inactive-${q.name}`
23627
23627
  }, {
23628
23628
  trigger: x(() => [
23629
23629
  u("button", V_, [
23630
- R(q.icon) !== null ? (c(), z(n(ae), {
23630
+ R(q.icon) !== null ? (c(), H(n(ae), {
23631
23631
  key: 0,
23632
23632
  icon: R(q.icon),
23633
23633
  size: 14
23634
- }, null, 8, ["icon"])) : H("", !0),
23634
+ }, null, 8, ["icon"])) : V("", !0),
23635
23635
  u("span", P_, y(q.label), 1)
23636
23636
  ])
23637
23637
  ]),
@@ -23645,7 +23645,7 @@ const AI = ne({
23645
23645
  filter: q,
23646
23646
  draft: S(q.name),
23647
23647
  "is-checked": (E) => T(q.name, E),
23648
- onToggleOption: (E) => V(q.name, E, q.multiple ?? !1),
23648
+ onToggleOption: (E) => z(q.name, E, q.multiple ?? !1),
23649
23649
  onSetDraft: (E) => Z(q.name, E)
23650
23650
  }, null, 8, ["filter", "draft", "is-checked", "onToggleOption", "onSetDraft"]),
23651
23651
  u("div", F_, [
@@ -23675,7 +23675,7 @@ const AI = ne({
23675
23675
  ]),
23676
23676
  _: 2
23677
23677
  }, 1024))), 128)),
23678
- g.value.length > 0 ? (c(), z(n(je), { key: 1 }, {
23678
+ g.value.length > 0 ? (c(), H(n(je), { key: 1 }, {
23679
23679
  trigger: x(() => [
23680
23680
  u("button", j_, [
23681
23681
  w(n(ae), {
@@ -23698,19 +23698,19 @@ const AI = ne({
23698
23698
  class: "admin-toolbar__list-item",
23699
23699
  onClick: (E) => b(q.name)
23700
23700
  }, [
23701
- R(q.icon) !== null ? (c(), z(n(ae), {
23701
+ R(q.icon) !== null ? (c(), H(n(ae), {
23702
23702
  key: 0,
23703
23703
  icon: R(q.icon),
23704
23704
  size: 14
23705
- }, null, 8, ["icon"])) : H("", !0),
23705
+ }, null, 8, ["icon"])) : V("", !0),
23706
23706
  D(" " + y(q.label), 1)
23707
23707
  ], 8, D_))), 128))
23708
23708
  ], 32)
23709
23709
  ]),
23710
23710
  _: 1
23711
- })) : H("", !0),
23711
+ })) : V("", !0),
23712
23712
  j[13] || (j[13] = u("span", { class: "admin-toolbar__spacer" }, null, -1)),
23713
- C.value ? (c(), z(n(oe), {
23713
+ C.value ? (c(), H(n(oe), {
23714
23714
  key: 2,
23715
23715
  variant: "ghost",
23716
23716
  size: "md",
@@ -23726,9 +23726,9 @@ const AI = ne({
23726
23726
  D(" " + y(n(v)("Сбросить")), 1)
23727
23727
  ]),
23728
23728
  _: 1
23729
- })) : H("", !0),
23730
- P.value.length > 0 || a.columns.length > 0 || a.enableSavedViews ? (c(), h("span", B_)) : H("", !0),
23731
- P.value.length > 0 ? (c(), z(n(je), { key: 4 }, {
23729
+ })) : V("", !0),
23730
+ P.value.length > 0 || a.columns.length > 0 || a.enableSavedViews ? (c(), h("span", B_)) : V("", !0),
23731
+ P.value.length > 0 ? (c(), H(n(je), { key: 4 }, {
23732
23732
  trigger: x(() => [
23733
23733
  u("button", R_, [
23734
23734
  w(n(ae), {
@@ -23751,7 +23751,7 @@ const AI = ne({
23751
23751
  onClick: j[5] || (j[5] = (q) => B(null, () => {
23752
23752
  }))
23753
23753
  }, [
23754
- a.groupBy ? H("", !0) : (c(), z(n(ae), {
23754
+ a.groupBy ? V("", !0) : (c(), H(n(ae), {
23755
23755
  key: 0,
23756
23756
  icon: n(i1),
23757
23757
  size: 14
@@ -23766,18 +23766,18 @@ const AI = ne({
23766
23766
  onClick: (E) => B(F(q), () => {
23767
23767
  })
23768
23768
  }, [
23769
- a.groupBy === F(q) ? (c(), z(n(ae), {
23769
+ a.groupBy === F(q) ? (c(), H(n(ae), {
23770
23770
  key: 0,
23771
23771
  icon: n(i1),
23772
23772
  size: 14
23773
- }, null, 8, ["icon"])) : H("", !0),
23773
+ }, null, 8, ["icon"])) : V("", !0),
23774
23774
  u("span", null, y(O(q)), 1)
23775
23775
  ], 8, T_))), 128))
23776
23776
  ], 32)
23777
23777
  ]),
23778
23778
  _: 1
23779
- })) : H("", !0),
23780
- a.columns.length > 0 ? (c(), z(n(je), { key: 5 }, {
23779
+ })) : V("", !0),
23780
+ a.columns.length > 0 ? (c(), H(n(je), { key: 5 }, {
23781
23781
  trigger: x(() => [
23782
23782
  u("button", U_, [
23783
23783
  w(n(ae), {
@@ -23807,8 +23807,8 @@ const AI = ne({
23807
23807
  ], 32)
23808
23808
  ]),
23809
23809
  _: 1
23810
- })) : H("", !0),
23811
- a.enableSavedViews ? (c(), z(n(je), { key: 6 }, {
23810
+ })) : V("", !0),
23811
+ a.enableSavedViews ? (c(), H(n(je), { key: 6 }, {
23812
23812
  trigger: x(() => [
23813
23813
  u("button", Z_, [
23814
23814
  w(n(ae), {
@@ -23851,11 +23851,11 @@ const AI = ne({
23851
23851
  ], 32)
23852
23852
  ]),
23853
23853
  _: 1
23854
- })) : H("", !0)
23854
+ })) : V("", !0)
23855
23855
  ])
23856
23856
  ]));
23857
23857
  }
23858
- }), K_ = ["title"], J_ = ["disabled"], Y_ = ["disabled"], Q_ = ["disabled"], eS = ["value"], aS = ["disabled"], tS = ["disabled"], rw = /* @__PURE__ */ ne({
23858
+ }), K_ = ["title"], J_ = ["disabled"], Y_ = ["disabled"], Q_ = ["disabled"], eS = ["value"], aS = ["disabled"], tS = ["disabled"], dw = /* @__PURE__ */ ne({
23859
23859
  __name: "InlineEditCell",
23860
23860
  props: {
23861
23861
  resourceSlug: {},
@@ -23961,7 +23961,7 @@ const AI = ne({
23961
23961
  value: S.value
23962
23962
  }, y(S.label), 9, eS))), 128))
23963
23963
  ], 40, Q_)), [
23964
- [jw, i.value]
23964
+ [Dw, i.value]
23965
23965
  ]) : a.inputType === "textarea" ? s1((c(), h("textarea", {
23966
23966
  key: 4,
23967
23967
  ref_key: "inputRef",
@@ -24043,7 +24043,7 @@ const AI = ne({
24043
24043
  function U() {
24044
24044
  k.value = [];
24045
24045
  }
24046
- const V = M(() => g.value[0] ?? null);
24046
+ const z = M(() => g.value[0] ?? null);
24047
24047
  function T(q, E) {
24048
24048
  for (const ce of q) {
24049
24049
  if (ce.key === E) return ce;
@@ -24055,7 +24055,7 @@ const AI = ne({
24055
24055
  return null;
24056
24056
  }
24057
24057
  const P = M(
24058
- () => V.value === null ? null : T(i.value, V.value)
24058
+ () => z.value === null ? null : T(i.value, z.value)
24059
24059
  ), B = M(() => P.value?.slug ?? t.slug), F = M(() => {
24060
24060
  const q = P.value;
24061
24061
  if (!q) return null;
@@ -24116,12 +24116,12 @@ const AI = ne({
24116
24116
  u("div", null, [
24117
24117
  u("h1", cS, [
24118
24118
  D(y(b.value) + " ", 1),
24119
- s.value > 0 ? (c(), h("span", iS, y(s.value), 1)) : H("", !0)
24119
+ s.value > 0 ? (c(), h("span", iS, y(s.value), 1)) : V("", !0)
24120
24120
  ]),
24121
- C.value ? (c(), h("p", lS, y(C.value), 1)) : H("", !0)
24121
+ C.value ? (c(), h("p", lS, y(C.value), 1)) : V("", !0)
24122
24122
  ]),
24123
24123
  u("div", rS, [
24124
- I.value ? (c(), z(n(oe), {
24124
+ I.value ? (c(), H(n(oe), {
24125
24125
  key: 0,
24126
24126
  variant: "primary",
24127
24127
  onClick: O
@@ -24131,7 +24131,7 @@ const AI = ne({
24131
24131
  E[4] || (E[4] = D(" Создать ", -1))
24132
24132
  ]),
24133
24133
  _: 1
24134
- })) : H("", !0)
24134
+ })) : V("", !0)
24135
24135
  ])
24136
24136
  ]),
24137
24137
  u("div", dS, [
@@ -24168,12 +24168,12 @@ const AI = ne({
24168
24168
  ]),
24169
24169
  _: 1
24170
24170
  }),
24171
- V.value !== null ? (c(), h(X, { key: 0 }, [
24171
+ z.value !== null ? (c(), h(X, { key: 0 }, [
24172
24172
  E[9] || (E[9] = u("span", {
24173
24173
  class: "admin-resource-tree-page__selection-divider",
24174
24174
  "aria-hidden": "true"
24175
24175
  }, "|", -1)),
24176
- u("span", sS, y(P.value?.label ?? V.value), 1),
24176
+ u("span", sS, y(P.value?.label ?? z.value), 1),
24177
24177
  w(n(oe), {
24178
24178
  variant: "ghost",
24179
24179
  onClick: te
@@ -24194,7 +24194,7 @@ const AI = ne({
24194
24194
  ]),
24195
24195
  _: 1
24196
24196
  }),
24197
- (c(!0), h(X, null, ee(W.value, (ce) => (c(), z(n(oe), {
24197
+ (c(!0), h(X, null, ee(W.value, (ce) => (c(), H(n(oe), {
24198
24198
  key: ce.id,
24199
24199
  variant: ce.variant ?? "secondary",
24200
24200
  onClick: (ye) => R(ce)
@@ -24204,7 +24204,7 @@ const AI = ne({
24204
24204
  ]),
24205
24205
  _: 2
24206
24206
  }, 1032, ["variant", "onClick"]))), 128)),
24207
- d.value?.permissions?.delete ? (c(), z(n(oe), {
24207
+ d.value?.permissions?.delete ? (c(), H(n(oe), {
24208
24208
  key: 0,
24209
24209
  variant: "danger",
24210
24210
  onClick: _
@@ -24214,7 +24214,7 @@ const AI = ne({
24214
24214
  E[8] || (E[8] = D(" Удалить ", -1))
24215
24215
  ]),
24216
24216
  _: 1
24217
- })) : H("", !0),
24217
+ })) : V("", !0),
24218
24218
  w(n(oe), {
24219
24219
  variant: "ghost",
24220
24220
  onClick: E[1] || (E[1] = (ce) => g.value = [])
@@ -24224,18 +24224,18 @@ const AI = ne({
24224
24224
  ]),
24225
24225
  _: 1
24226
24226
  })
24227
- ], 64)) : H("", !0)
24227
+ ], 64)) : V("", !0)
24228
24228
  ]),
24229
24229
  u("div", hS, [
24230
- r.value && i.value.length === 0 ? (c(), h(X, { key: 0 }, ee(6, (ce) => w(n(Re), { key: ce })), 64)) : p.value ? (c(), z(n(sI), {
24230
+ r.value && i.value.length === 0 ? (c(), h(X, { key: 0 }, ee(6, (ce) => w(n(Re), { key: ce })), 64)) : p.value ? (c(), H(n(sI), {
24231
24231
  key: 1,
24232
24232
  message: p.value.message,
24233
24233
  onRetry: f
24234
- }, null, 8, ["message"])) : i.value.length === 0 ? (c(), z(n(hI), {
24234
+ }, null, 8, ["message"])) : i.value.length === 0 ? (c(), H(n(hI), {
24235
24235
  key: 2,
24236
24236
  title: n(v)("Нет данных"),
24237
24237
  hint: m.value.length > 0 ? n(v)("Ничего не найдено по запросу.") : null
24238
- }, null, 8, ["title", "hint"])) : (c(), z(n(Yw), {
24238
+ }, null, 8, ["title", "hint"])) : (c(), H(n(Qw), {
24239
24239
  key: 3,
24240
24240
  nodes: i.value,
24241
24241
  "virtual-root": L.value,
@@ -24295,7 +24295,7 @@ const AI = ne({
24295
24295
  },
24296
24296
  emits: ["bulk-action", "row-click", "import", "header-action"],
24297
24297
  setup(a, { emit: t }) {
24298
- const o = W2(), l = ($) => o.tr($), d = ($, N, K) => o.has($) ? o.t($, K) : N, i = a, s = t, r = lw(), p = Ee(), m = kI(), k = Ze(), g = M(() => p.getResource(i.slug)), b = M(
24298
+ const o = W2(), l = ($) => o.tr($), d = ($, N, K) => o.has($) ? o.t($, K) : N, i = a, s = t, r = rw(), p = Ee(), m = kI(), k = Ze(), g = M(() => p.getResource(i.slug)), b = M(
24299
24299
  () => i.title ?? g.value?.label ?? i.slug
24300
24300
  ), C = M(() => {
24301
24301
  if (i.createRouteName !== null)
@@ -24362,7 +24362,7 @@ const AI = ne({
24362
24362
  }
24363
24363
  }
24364
24364
  }
24365
- async function V($ = "csv") {
24365
+ async function z($ = "csv") {
24366
24366
  s("header-action", "export");
24367
24367
  try {
24368
24368
  m.start();
@@ -24655,38 +24655,38 @@ const AI = ne({
24655
24655
  async function Z9($) {
24656
24656
  await Je(), await r.setSort($, r.sortDirection);
24657
24657
  }
24658
- async function Mw($) {
24658
+ async function Iw($) {
24659
24659
  await Je(), await r.setSort(r.sortKey, $);
24660
24660
  }
24661
- function Iw($) {
24661
+ function ww($) {
24662
24662
  r.selection = $;
24663
24663
  }
24664
- async function ww($) {
24664
+ async function xw($) {
24665
24665
  await r.setPage($);
24666
24666
  }
24667
24667
  function F1($) {
24668
24668
  const N = $?.id ?? $?.key;
24669
24669
  return typeof N == "string" || typeof N == "number" ? N : null;
24670
24670
  }
24671
- function xw($) {
24671
+ function bw($) {
24672
24672
  return F1(de($) ?? {}) ?? "";
24673
24673
  }
24674
- function bw($) {
24674
+ function Lw($) {
24675
24675
  s("row-click", $);
24676
24676
  const N = F1($);
24677
24677
  N !== null && k.push({ name: `admin.resource.${i.slug}.view`, params: { id: String(N) } });
24678
24678
  }
24679
- function Lw($, N) {
24679
+ function Cw($, N) {
24680
24680
  N?.stopPropagation();
24681
24681
  const K = F1($);
24682
24682
  K !== null && k.push({ name: `admin.resource.${i.slug}.view`, params: { id: String(K) } });
24683
24683
  }
24684
- function Cw($, N) {
24684
+ function _w($, N) {
24685
24685
  N?.stopPropagation();
24686
24686
  const K = F1($);
24687
24687
  K !== null && k.push({ name: `admin.resource.${i.slug}.edit`, params: { id: String(K) } });
24688
24688
  }
24689
- async function _w($, N) {
24689
+ async function Sw($, N) {
24690
24690
  N?.stopPropagation();
24691
24691
  const K = F1($);
24692
24692
  if (K !== null && window.confirm(d("admin.resource.delete_confirm", "Удалить запись?")))
@@ -24701,10 +24701,10 @@ const AI = ne({
24701
24701
  m.end();
24702
24702
  }
24703
24703
  }
24704
- function Sw($) {
24704
+ function qw($) {
24705
24705
  return $.deleted_at !== null && $.deleted_at !== void 0;
24706
24706
  }
24707
- async function qw($, N) {
24707
+ async function Aw($, N) {
24708
24708
  N?.stopPropagation();
24709
24709
  const K = F1($);
24710
24710
  if (K !== null)
@@ -24720,7 +24720,7 @@ const AI = ne({
24720
24720
  }
24721
24721
  }
24722
24722
  const k1 = A(null), j1 = A(null), J2 = A("before");
24723
- function Aw($, N) {
24723
+ function zw($, N) {
24724
24724
  if (!O.value || !N.dataTransfer) return;
24725
24725
  if (!N.target?.closest('[data-row-drag-handle="true"]')) {
24726
24726
  N.preventDefault();
@@ -24728,7 +24728,7 @@ const AI = ne({
24728
24728
  }
24729
24729
  k1.value = $, N.dataTransfer.effectAllowed = "move", N.dataTransfer.setData("text/plain", String($));
24730
24730
  }
24731
- function zw($, N) {
24731
+ function Hw($, N) {
24732
24732
  if (!O.value || k1.value === null) return;
24733
24733
  N.preventDefault();
24734
24734
  const K = N.currentTarget;
@@ -24738,10 +24738,10 @@ const AI = ne({
24738
24738
  }
24739
24739
  j1.value = $;
24740
24740
  }
24741
- function Hw() {
24741
+ function Vw() {
24742
24742
  k1.value = null, j1.value = null;
24743
24743
  }
24744
- async function Vw($, N) {
24744
+ async function Pw($, N) {
24745
24745
  if (N.preventDefault(), !O.value || k1.value === null) return;
24746
24746
  const K = k1.value, Q = J2.value === "after" ? $ + 1 : $, se = Q > K ? Q - 1 : Q;
24747
24747
  if (k1.value = null, j1.value = null, K === se) return;
@@ -24758,7 +24758,7 @@ const AI = ne({
24758
24758
  m.end();
24759
24759
  }
24760
24760
  }
24761
- async function Pw($, N) {
24761
+ async function Fw($, N) {
24762
24762
  N?.stopPropagation();
24763
24763
  const K = F1($);
24764
24764
  if (K !== null && window.confirm(d("admin.resource.force_delete_confirm", "Удалить запись НАВСЕГДА? Действие необратимо.")))
@@ -24777,7 +24777,7 @@ const AI = ne({
24777
24777
  await r.load().catch(() => {
24778
24778
  });
24779
24779
  }
24780
- return ($, N) => g.value?.view_mode === "tree" ? (c(), z(yS, {
24780
+ return ($, N) => g.value?.view_mode === "tree" ? (c(), H(yS, {
24781
24781
  key: 0,
24782
24782
  slug: a.slug,
24783
24783
  title: a.title,
@@ -24793,23 +24793,23 @@ const AI = ne({
24793
24793
  "aria-hidden": "true"
24794
24794
  }, null, -1)),
24795
24795
  D(" " + y(P1.value), 1)
24796
- ])) : H("", !0)
24796
+ ])) : V("", !0)
24797
24797
  ]),
24798
24798
  a.subtitle || le.value ? (c(), h("div", MS, [
24799
24799
  a.subtitle ? (c(), h(X, { key: 0 }, [
24800
24800
  D(y(a.subtitle), 1)
24801
- ], 64)) : H("", !0),
24801
+ ], 64)) : V("", !0),
24802
24802
  a.subtitle && le.value ? (c(), h(X, { key: 1 }, [
24803
24803
  D(" · ")
24804
- ], 64)) : H("", !0),
24804
+ ], 64)) : V("", !0),
24805
24805
  le.value ? (c(), h(X, { key: 2 }, [
24806
24806
  D(y(le.value), 1)
24807
- ], 64)) : H("", !0)
24808
- ])) : H("", !0)
24807
+ ], 64)) : V("", !0)
24808
+ ])) : V("", !0)
24809
24809
  ]),
24810
24810
  u("div", IS, [
24811
24811
  ze($.$slots, "actions"),
24812
- W.value ? (c(), z(n(je), { key: 0 }, {
24812
+ W.value ? (c(), H(n(je), { key: 0 }, {
24813
24813
  trigger: x(() => [
24814
24814
  w(n(oe), {
24815
24815
  variant: "ghost",
@@ -24841,7 +24841,7 @@ const AI = ne({
24841
24841
  ]),
24842
24842
  _: 1
24843
24843
  }),
24844
- (c(!0), h(X, null, ee(p1.value, (K) => (c(), z(n(De), {
24844
+ (c(!0), h(X, null, ee(p1.value, (K) => (c(), H(n(De), {
24845
24845
  key: K.id,
24846
24846
  onClick: (Q) => K2(K)
24847
24847
  }, {
@@ -24849,7 +24849,7 @@ const AI = ne({
24849
24849
  u("span", wS, [
24850
24850
  u("span", xS, [
24851
24851
  D(y(K.name) + " ", 1),
24852
- K.is_default ? (c(), h("span", bS, "default")) : H("", !0)
24852
+ K.is_default ? (c(), h("span", bS, "default")) : V("", !0)
24853
24853
  ]),
24854
24854
  K.owned ? (c(), h("button", {
24855
24855
  key: 0,
@@ -24862,14 +24862,14 @@ const AI = ne({
24862
24862
  icon: n(Ue),
24863
24863
  size: 12
24864
24864
  }, null, 8, ["icon"])
24865
- ], 8, LS)) : H("", !0)
24865
+ ], 8, LS)) : V("", !0)
24866
24866
  ])
24867
24867
  ]),
24868
24868
  _: 2
24869
24869
  }, 1032, ["onClick"]))), 128))
24870
24870
  ]),
24871
24871
  _: 1
24872
- })) : H("", !0),
24872
+ })) : V("", !0),
24873
24873
  w(n(je), null, {
24874
24874
  trigger: x(() => [
24875
24875
  w(n(oe), {
@@ -24894,16 +24894,16 @@ const AI = ne({
24894
24894
  ]),
24895
24895
  _: 1
24896
24896
  }),
24897
- (c(!0), h(X, null, ee(R.value, (K) => (c(), z(n(De), {
24897
+ (c(!0), h(X, null, ee(R.value, (K) => (c(), H(n(De), {
24898
24898
  key: K,
24899
- onClick: (Q) => V(K)
24899
+ onClick: (Q) => z(K)
24900
24900
  }, {
24901
24901
  default: x(() => [
24902
24902
  D(" Экспорт " + y(_[K] ?? K.toUpperCase()), 1)
24903
24903
  ]),
24904
24904
  _: 2
24905
24905
  }, 1032, ["onClick"]))), 128)),
24906
- (c(!0), h(X, null, ee(L.value, (K) => (c(), z(n(De), {
24906
+ (c(!0), h(X, null, ee(L.value, (K) => (c(), H(n(De), {
24907
24907
  key: K.key,
24908
24908
  onClick: (Q) => S(K)
24909
24909
  }, {
@@ -24916,7 +24916,7 @@ const AI = ne({
24916
24916
  ]),
24917
24917
  _: 3
24918
24918
  }),
24919
- J.value ? (c(), z(n(oe), {
24919
+ J.value ? (c(), H(n(oe), {
24920
24920
  key: 1,
24921
24921
  variant: "secondary",
24922
24922
  size: "md",
@@ -24932,7 +24932,7 @@ const AI = ne({
24932
24932
  D(" " + y(l("Импорт")), 1)
24933
24933
  ]),
24934
24934
  _: 1
24935
- })) : H("", !0),
24935
+ })) : V("", !0),
24936
24936
  u("input", {
24937
24937
  ref_key: "importInput",
24938
24938
  ref: T,
@@ -24941,7 +24941,7 @@ const AI = ne({
24941
24941
  accept: ".csv,.json,.xlsx,.xls,application/json,text/csv",
24942
24942
  onChange: B
24943
24943
  }, null, 544),
24944
- C.value && G.value ? (c(), z(n(oe), {
24944
+ C.value && G.value ? (c(), H(n(oe), {
24945
24945
  key: 2,
24946
24946
  "data-testid": "resource-create",
24947
24947
  variant: "primary",
@@ -24958,7 +24958,7 @@ const AI = ne({
24958
24958
  D(" " + y(a.createLabel ?? l("Создать")), 1)
24959
24959
  ]),
24960
24960
  _: 1
24961
- })) : H("", !0)
24961
+ })) : V("", !0)
24962
24962
  ])
24963
24963
  ]),
24964
24964
  n(r).hasSelection ? (c(), h("div", CS, [
@@ -24967,7 +24967,7 @@ const AI = ne({
24967
24967
  u("b", null, y(n(r).selectedCount), 1)
24968
24968
  ]),
24969
24969
  N[5] || (N[5] = u("span", { class: "admin-bulk-toolbar__divider" }, null, -1)),
24970
- (c(!0), h(X, null, ee(f.value, (K) => (c(), z(n(oe), {
24970
+ (c(!0), h(X, null, ee(f.value, (K) => (c(), H(n(oe), {
24971
24971
  key: K.key,
24972
24972
  size: "sm",
24973
24973
  variant: K.destructive ? "danger" : "ghost",
@@ -24981,14 +24981,14 @@ const AI = ne({
24981
24981
  w(n(oe), {
24982
24982
  size: "sm",
24983
24983
  variant: "ghost",
24984
- onClick: N[1] || (N[1] = (K) => V("csv"))
24984
+ onClick: N[1] || (N[1] = (K) => z("csv"))
24985
24985
  }, {
24986
24986
  default: x(() => [
24987
24987
  D(y(l("Экспорт")), 1)
24988
24988
  ]),
24989
24989
  _: 1
24990
24990
  }),
24991
- te.value ? (c(), z(n(oe), {
24991
+ te.value ? (c(), H(n(oe), {
24992
24992
  key: 0,
24993
24993
  size: "sm",
24994
24994
  variant: "danger",
@@ -24999,7 +24999,7 @@ const AI = ne({
24999
24999
  D(y(l("Удалить")), 1)
25000
25000
  ]),
25001
25001
  _: 1
25002
- }, 8, ["loading"])) : H("", !0),
25002
+ }, 8, ["loading"])) : V("", !0),
25003
25003
  N[6] || (N[6] = u("span", { class: "admin-bulk-toolbar__spacer" }, null, -1)),
25004
25004
  w(n(oe), {
25005
25005
  size: "sm",
@@ -25011,7 +25011,7 @@ const AI = ne({
25011
25011
  ]),
25012
25012
  _: 1
25013
25013
  }, 8, ["onClick"])
25014
- ])) : Ce.value ? (c(), z(X_, {
25014
+ ])) : Ce.value ? (c(), H(X_, {
25015
25015
  key: 1,
25016
25016
  search: n(r).search,
25017
25017
  "search-placeholder": lo.value,
@@ -25035,13 +25035,13 @@ const AI = ne({
25035
25035
  })
25036
25036
  ]),
25037
25037
  _: 3
25038
- }, 8, ["search", "search-placeholder", "filters", "values", "columns", "group-by", "column-visibility", "enable-saved-views"])) : H("", !0),
25038
+ }, 8, ["search", "search-placeholder", "filters", "values", "columns", "group-by", "column-visibility", "enable-saved-views"])) : V("", !0),
25039
25039
  n(r).loading && n(r).items.length === 0 ? (c(), h("div", SS, [
25040
25040
  n(r).slowLoading ? (c(), h(X, { key: 0 }, ee(8, (K) => w(n(Re), {
25041
25041
  key: K,
25042
25042
  height: "40px"
25043
- })), 64)) : H("", !0)
25044
- ])) : n(r).hasError ? (c(), z(n(sI), {
25043
+ })), 64)) : V("", !0)
25044
+ ])) : n(r).hasError ? (c(), H(n(sI), {
25045
25045
  key: 3,
25046
25046
  title: l("Не удалось загрузить данные"),
25047
25047
  description: n(r).error?.message ?? l("Попробуйте обновить страницу."),
@@ -25059,14 +25059,14 @@ const AI = ne({
25059
25059
  })
25060
25060
  ]),
25061
25061
  _: 1
25062
- }, 8, ["title", "description"])) : n(r).isEmpty ? (c(), z(n(hI), {
25062
+ }, 8, ["title", "description"])) : n(r).isEmpty ? (c(), H(n(hI), {
25063
25063
  key: 4,
25064
25064
  title: l("Пока пусто"),
25065
25065
  description: l("Создайте первую запись или измените фильтры."),
25066
25066
  class: "admin-resource-index__state"
25067
25067
  }, {
25068
25068
  actions: x(() => [
25069
- a.createRouteName && G.value ? (c(), z(n(oe), {
25069
+ a.createRouteName && G.value ? (c(), H(n(oe), {
25070
25070
  key: 0,
25071
25071
  variant: "primary",
25072
25072
  onClick: N[2] || (N[2] = (K) => $.$router.push({ name: a.createRouteName }))
@@ -25075,7 +25075,7 @@ const AI = ne({
25075
25075
  D(y(a.createLabel ?? l("Создать")), 1)
25076
25076
  ]),
25077
25077
  _: 1
25078
- })) : H("", !0)
25078
+ })) : V("", !0)
25079
25079
  ]),
25080
25080
  _: 1
25081
25081
  }, 8, ["title", "description"])) : (c(), h("div", qS, [
@@ -25088,9 +25088,9 @@ const AI = ne({
25088
25088
  selection: n(r).selection,
25089
25089
  "row-key": (K) => n(r).rowId(K),
25090
25090
  "onUpdate:sortKey": Z9,
25091
- "onUpdate:sortDirection": Mw,
25092
- "onUpdate:selection": Iw,
25093
- onRowClick: bw
25091
+ "onUpdate:sortDirection": Iw,
25092
+ "onUpdate:selection": ww,
25093
+ onRowClick: Lw
25094
25094
  }, $I({ _: 2 }, [
25095
25095
  ee(j.value, (K) => ({
25096
25096
  name: K.key,
@@ -25108,16 +25108,16 @@ const AI = ne({
25108
25108
  "data-row-drag-handle": "true",
25109
25109
  draggable: O.value,
25110
25110
  title: l("Перетащить"),
25111
- onDragstart: (se) => Aw(
25111
+ onDragstart: (se) => zw(
25112
25112
  n(r).items.indexOf(de(Q) ?? {}),
25113
25113
  se
25114
25114
  ),
25115
- onDragover: (se) => zw(
25115
+ onDragover: (se) => Hw(
25116
25116
  n(r).items.indexOf(de(Q) ?? {}),
25117
25117
  se
25118
25118
  ),
25119
- onDragend: Hw,
25120
- onDrop: (se) => Vw(
25119
+ onDragend: Vw,
25120
+ onDrop: (se) => Pw(
25121
25121
  n(r).items.indexOf(de(Q) ?? {}),
25122
25122
  se
25123
25123
  )
@@ -25131,19 +25131,19 @@ const AI = ne({
25131
25131
  type: "button",
25132
25132
  class: "admin-resource-index__row-action",
25133
25133
  title: l("Просмотр"),
25134
- onClick: me((se) => Lw(de(Q) ?? {}, se), ["stop"])
25134
+ onClick: me((se) => Cw(de(Q) ?? {}, se), ["stop"])
25135
25135
  }, [
25136
25136
  w(n(ae), {
25137
25137
  icon: n(Ko),
25138
25138
  size: 16
25139
25139
  }, null, 8, ["icon"])
25140
25140
  ], 8, HS),
25141
- Sw(de(Q) ?? {}) ? (c(), h(X, { key: 1 }, [
25141
+ qw(de(Q) ?? {}) ? (c(), h(X, { key: 1 }, [
25142
25142
  u("button", {
25143
25143
  type: "button",
25144
25144
  class: "admin-resource-index__row-action",
25145
25145
  title: l("Восстановить"),
25146
- onClick: me((se) => qw(de(Q) ?? {}, se), ["stop"])
25146
+ onClick: me((se) => Aw(de(Q) ?? {}, se), ["stop"])
25147
25147
  }, [
25148
25148
  w(n(ae), {
25149
25149
  icon: n(no),
@@ -25154,7 +25154,7 @@ const AI = ne({
25154
25154
  type: "button",
25155
25155
  class: "admin-resource-index__row-action admin-resource-index__row-action--danger",
25156
25156
  title: l("Удалить навсегда"),
25157
- onClick: me((se) => Pw(de(Q) ?? {}, se), ["stop"])
25157
+ onClick: me((se) => Fw(de(Q) ?? {}, se), ["stop"])
25158
25158
  }, [
25159
25159
  w(n(ae), {
25160
25160
  icon: n(Ue),
@@ -25167,33 +25167,33 @@ const AI = ne({
25167
25167
  type: "button",
25168
25168
  class: "admin-resource-index__row-action",
25169
25169
  title: l("Редактировать"),
25170
- onClick: me((se) => Cw(de(Q) ?? {}, se), ["stop"])
25170
+ onClick: me((se) => _w(de(Q) ?? {}, se), ["stop"])
25171
25171
  }, [
25172
25172
  w(n(ae), {
25173
25173
  icon: n(u1),
25174
25174
  size: 16
25175
25175
  }, null, 8, ["icon"])
25176
- ], 8, VS)) : H("", !0),
25176
+ ], 8, VS)) : V("", !0),
25177
25177
  te.value ? (c(), h("button", {
25178
25178
  key: 1,
25179
25179
  type: "button",
25180
25180
  class: "admin-resource-index__row-action admin-resource-index__row-action--danger",
25181
25181
  title: l("Удалить"),
25182
- onClick: me((se) => _w(de(Q) ?? {}, se), ["stop"])
25182
+ onClick: me((se) => Sw(de(Q) ?? {}, se), ["stop"])
25183
25183
  }, [
25184
25184
  w(n(ae), {
25185
25185
  icon: n(Ue),
25186
25186
  size: 16
25187
25187
  }, null, 8, ["icon"])
25188
- ], 8, PS)) : H("", !0)
25188
+ ], 8, PS)) : V("", !0)
25189
25189
  ], 64))
25190
25190
  ])) : ze($.$slots, `cell-${K.key}`, {
25191
25191
  row: de(Q)
25192
25192
  }, () => [
25193
- q(K.key) ? (c(), z(rw, {
25193
+ q(K.key) ? (c(), H(dw, {
25194
25194
  key: 0,
25195
25195
  "resource-slug": a.slug,
25196
- "row-id": xw(Q),
25196
+ "row-id": bw(Q),
25197
25197
  column: K.key,
25198
25198
  value: (de(Q) ?? {})[K.key],
25199
25199
  editable: !0,
@@ -25227,13 +25227,13 @@ const AI = ne({
25227
25227
  ]), 1032, ["columns", "data", "sort-key", "sort-direction", "selection", "row-key"])
25228
25228
  ])),
25229
25229
  !n(r).loading && !n(r).hasError && !n(r).isEmpty ? (c(), h("footer", $S, [
25230
- w(n(Qw), {
25230
+ w(n(ex), {
25231
25231
  "model-value": n(r).meta.page,
25232
25232
  total: n(r).meta.total,
25233
25233
  "per-page": n(r).meta.per_page,
25234
- "onUpdate:modelValue": ww
25234
+ "onUpdate:modelValue": xw
25235
25235
  }, null, 8, ["model-value", "total", "per-page"])
25236
- ])) : H("", !0)
25236
+ ])) : V("", !0)
25237
25237
  ]));
25238
25238
  }
25239
25239
  }), fI = e1("admin-resource-form", () => {
@@ -25276,7 +25276,7 @@ const AI = ne({
25276
25276
  delete te[O], i.value = te;
25277
25277
  }
25278
25278
  }
25279
- function V(O) {
25279
+ function z(O) {
25280
25280
  i.value = { ...O };
25281
25281
  }
25282
25282
  function T(O) {
@@ -25339,7 +25339,7 @@ const AI = ne({
25339
25339
  prepareCreate: S,
25340
25340
  load: Z,
25341
25341
  setField: U,
25342
- setErrors: V,
25342
+ setErrors: z,
25343
25343
  seedDefaults: T,
25344
25344
  clearErrors: P,
25345
25345
  save: B,
@@ -25358,7 +25358,7 @@ const AI = ne({
25358
25358
  return Number.isFinite(r) && r >= 1 && r <= 12 ? r : 0;
25359
25359
  }
25360
25360
  const l = M(() => t.items.some((d) => o(d) > 0));
25361
- return (d, i) => l.value ? (c(), z(n(uI), {
25361
+ return (d, i) => l.value ? (c(), H(n(uI), {
25362
25362
  key: 0,
25363
25363
  cols: 12,
25364
25364
  "col-gap": a.gap,
@@ -25373,14 +25373,14 @@ const AI = ne({
25373
25373
  ], 4))), 128))
25374
25374
  ]),
25375
25375
  _: 1
25376
- }, 8, ["col-gap"])) : (c(), z(n(ex), {
25376
+ }, 8, ["col-gap"])) : (c(), H(n(EI), {
25377
25377
  key: 1,
25378
25378
  direction: "column",
25379
25379
  gap: a.gap,
25380
25380
  align: "stretch"
25381
25381
  }, {
25382
25382
  default: x(() => [
25383
- (c(!0), h(X, null, ee(a.items, (s, r) => (c(), z(bo, {
25383
+ (c(!0), h(X, null, ee(a.items, (s, r) => (c(), H(bo, {
25384
25384
  key: r,
25385
25385
  node: s
25386
25386
  }, null, 8, ["node"]))), 128))
@@ -25404,16 +25404,16 @@ const AI = ne({
25404
25404
  setup(a) {
25405
25405
  const t = a, o = fI(), l = Ee(), d = Ze(), i = l1();
25406
25406
  function s() {
25407
- const V = {};
25407
+ const z = {};
25408
25408
  for (const [T, P] of Object.entries(i.query))
25409
25409
  if (P != null) {
25410
25410
  if (Array.isArray(P)) {
25411
- V[T] = P;
25411
+ z[T] = P;
25412
25412
  continue;
25413
25413
  }
25414
- /^-?\d+$/.test(P) ? V[T] = parseInt(P, 10) : V[T] = P;
25414
+ /^-?\d+$/.test(P) ? z[T] = parseInt(P, 10) : z[T] = P;
25415
25415
  }
25416
- return V;
25416
+ return z;
25417
25417
  }
25418
25418
  const r = V9(
25419
25419
  o.state,
@@ -25422,28 +25422,29 @@ const AI = ne({
25422
25422
  );
25423
25423
  Ie(
25424
25424
  () => o.errors,
25425
- (V) => {
25426
- r.setErrors({ ...V });
25425
+ (z) => {
25426
+ r.setErrors({ ...z });
25427
25427
  }
25428
25428
  );
25429
25429
  const p = M(() => l.getResource(t.slug)), m = M(
25430
25430
  () => !o.isCreate && o.hasError && o.error instanceof We && o.error.status === 404
25431
- ), k = M(
25432
- () => p.value?.fields ?? []
25433
- );
25434
- function g(V, T) {
25435
- for (const P of V) {
25431
+ ), k = M(() => {
25432
+ const z = p.value;
25433
+ return o.isCreate && z?.create_fields ? z.create_fields : z?.fields ?? [];
25434
+ });
25435
+ function g(z, T) {
25436
+ for (const P of z) {
25436
25437
  const B = P;
25437
25438
  Array.isArray(B.items) && g(B.items, T), !(B.kind !== "field" || typeof B.name != "string") && (B.defaultValue === null || B.defaultValue === void 0 || (T[B.name] = B.defaultValue));
25438
25439
  }
25439
25440
  }
25440
25441
  function b() {
25441
- const V = {};
25442
- g(k.value, V), Object.keys(V).length > 0 && o.seedDefaults(V);
25442
+ const z = {};
25443
+ g(k.value, z), Object.keys(z).length > 0 && o.seedDefaults(z);
25443
25444
  }
25444
- const C = M(() => o.isCreate ? `${v("Создать")}: ${p.value?.label ?? t.slug}` : `${p.value?.label ?? t.slug}: ${WI("запись #:id", { id: t.id ?? "" })}`), I = M(() => {
25445
- const V = o.state.status;
25446
- return typeof V == "string" ? V : null;
25445
+ const C = M(() => o.isCreate ? `${v("Создать")}: ${p.value?.label ?? t.slug}` : `${p.value?.label ?? t.slug}: ${GI("запись #:id", { id: t.id ?? "" })}`), I = M(() => {
25446
+ const z = o.state.status;
25447
+ return typeof z == "string" ? z : null;
25447
25448
  }), L = M(() => {
25448
25449
  switch (I.value) {
25449
25450
  case "published":
@@ -25463,17 +25464,17 @@ const AI = ne({
25463
25464
  }) : (o.prepareCreate(t.slug, s()), b());
25464
25465
  }), Ie(
25465
25466
  () => [t.slug, t.id],
25466
- async ([V, T]) => {
25467
- T != null ? await o.load(V, T, "edit").catch(() => {
25468
- }) : (o.prepareCreate(V, s()), b());
25467
+ async ([z, T]) => {
25468
+ T != null ? await o.load(z, T, "edit").catch(() => {
25469
+ }) : (o.prepareCreate(z, s()), b());
25469
25470
  }
25470
25471
  );
25471
25472
  async function f() {
25472
25473
  try {
25473
- const V = await o.save();
25474
+ const z = await o.save();
25474
25475
  o.isCreate && d.push({
25475
25476
  name: `admin.resource.${t.slug}.edit`,
25476
- params: { id: V }
25477
+ params: { id: z }
25477
25478
  }).catch(() => {
25478
25479
  });
25479
25480
  } catch {
@@ -25481,8 +25482,8 @@ const AI = ne({
25481
25482
  }
25482
25483
  const S = M(() => {
25483
25484
  if (t.indexRouteName) return t.indexRouteName;
25484
- const V = l.getResource(t.slug)?.parent_slug;
25485
- return V ? `admin.resource.${V}.index` : `admin.resource.${t.slug}.index`;
25485
+ const z = l.getResource(t.slug)?.parent_slug;
25486
+ return z ? `admin.resource.${z}.index` : `admin.resource.${t.slug}.index`;
25486
25487
  });
25487
25488
  async function Z() {
25488
25489
  confirm(v("Удалить запись?")) && (await o.destroy().catch(() => {
@@ -25493,7 +25494,7 @@ const AI = ne({
25493
25494
  o.isDirty && !confirm(v("Несохранённые изменения будут потеряны. Продолжить?")) || d.push({ name: S.value }).catch(() => {
25494
25495
  });
25495
25496
  }
25496
- return (V, T) => (c(), h("section", US, [
25497
+ return (z, T) => (c(), h("section", US, [
25497
25498
  u("header", OS, [
25498
25499
  u("div", ES, [
25499
25500
  u("a", {
@@ -25501,7 +25502,7 @@ const AI = ne({
25501
25502
  onClick: U
25502
25503
  }, y(n(v)("← Назад")), 1),
25503
25504
  u("h1", ZS, y(C.value), 1),
25504
- I.value ? (c(), z(n(yI), {
25505
+ I.value ? (c(), H(n(yI), {
25505
25506
  key: 0,
25506
25507
  variant: L.value
25507
25508
  }, {
@@ -25509,7 +25510,7 @@ const AI = ne({
25509
25510
  D(y(I.value), 1)
25510
25511
  ]),
25511
25512
  _: 1
25512
- }, 8, ["variant"])) : H("", !0)
25513
+ }, 8, ["variant"])) : V("", !0)
25513
25514
  ]),
25514
25515
  u("div", WS, [
25515
25516
  w(n(oe), {
@@ -25522,7 +25523,7 @@ const AI = ne({
25522
25523
  ]),
25523
25524
  _: 1
25524
25525
  }, 8, ["disabled"]),
25525
- n(o).isEdit && !m.value ? (c(), z(n(oe), {
25526
+ n(o).isEdit && !m.value ? (c(), H(n(oe), {
25526
25527
  key: 0,
25527
25528
  variant: "danger",
25528
25529
  disabled: n(o).saving || n(o).deleting,
@@ -25534,8 +25535,8 @@ const AI = ne({
25534
25535
  D(y(n(v)("Удалить")), 1)
25535
25536
  ]),
25536
25537
  _: 1
25537
- }, 8, ["disabled", "loading"])) : H("", !0),
25538
- m.value ? H("", !0) : (c(), z(n(oe), {
25538
+ }, 8, ["disabled", "loading"])) : V("", !0),
25539
+ m.value ? V("", !0) : (c(), H(n(oe), {
25539
25540
  key: 1,
25540
25541
  variant: "primary",
25541
25542
  disabled: n(o).saving || n(o).loading,
@@ -25550,7 +25551,7 @@ const AI = ne({
25550
25551
  }, 8, ["disabled", "loading"]))
25551
25552
  ])
25552
25553
  ]),
25553
- m.value ? (c(), z(n(we), {
25554
+ m.value ? (c(), H(n(we), {
25554
25555
  key: 0,
25555
25556
  padding: "lg",
25556
25557
  class: "admin-resource-form__notfound"
@@ -25571,7 +25572,7 @@ const AI = ne({
25571
25572
  ]),
25572
25573
  _: 1
25573
25574
  })) : (c(), h(X, { key: 1 }, [
25574
- n(o).hasError ? (c(), z(n(Ye), {
25575
+ n(o).hasError ? (c(), H(n(Ye), {
25575
25576
  key: 0,
25576
25577
  variant: "danger",
25577
25578
  class: "admin-resource-form__alert",
@@ -25581,13 +25582,13 @@ const AI = ne({
25581
25582
  D(y(n(o).error?.message ?? n(v)("Не удалось сохранить запись")), 1)
25582
25583
  ]),
25583
25584
  _: 1
25584
- })) : H("", !0),
25585
+ })) : V("", !0),
25585
25586
  n(o).loading ? (c(), h("div", XS, [
25586
25587
  (c(), h(X, null, ee(6, (P) => w(n(Re), {
25587
25588
  key: P,
25588
25589
  height: "40px"
25589
25590
  })), 64))
25590
- ])) : (c(), z(n(we), {
25591
+ ])) : (c(), H(n(we), {
25591
25592
  key: 2,
25592
25593
  padding: "md",
25593
25594
  class: "admin-resource-form__body"
@@ -25622,7 +25623,7 @@ const AI = ne({
25622
25623
  ]),
25623
25624
  _: 1
25624
25625
  }, 8, ["loading", "disabled"])
25625
- ])) : H("", !0)
25626
+ ])) : V("", !0)
25626
25627
  ]));
25627
25628
  }
25628
25629
  }), Ao = R9(), ej = Ao.register, tI = Ao.get, aj = Ao.has, tj = Ao.list, nj = Ao.clear, YS = Ao.registerBundle, QS = /* @__PURE__ */ ne({
@@ -25632,7 +25633,7 @@ const AI = ne({
25632
25633
  name: {}
25633
25634
  },
25634
25635
  setup(a) {
25635
- return (t, o) => (c(), z(n(Ye), { variant: "warning" }, {
25636
+ return (t, o) => (c(), H(n(Ye), { variant: "warning" }, {
25636
25637
  title: x(() => [
25637
25638
  D("Неизвестный тип infolist-entry: " + y(a.type), 1)
25638
25639
  ]),
@@ -25689,8 +25690,8 @@ const AI = ne({
25689
25690
  const k = tI(t.node.type);
25690
25691
  return k ? { kind: "entry", component: k } : { kind: "unknown" };
25691
25692
  }), d = M(() => {
25692
- const { type: k, kind: g, items: b, attributes: C, ...I } = t.node, L = C ?? {}, { preset: f, format: S, currency: Z, decimals: U, ...V } = L, T = {};
25693
- return S !== void 0 && (T.format = S), Z !== void 0 && (T.currency = Z), U !== void 0 && (T.decimals = U), { ...I, ...V, preset: f, meta: T };
25693
+ const { type: k, kind: g, items: b, attributes: C, ...I } = t.node, L = C ?? {}, { preset: f, format: S, currency: Z, decimals: U, ...z } = L, T = {};
25694
+ return S !== void 0 && (T.format = S), Z !== void 0 && (T.currency = Z), U !== void 0 && (T.decimals = U), { ...I, ...z, preset: f, meta: T };
25694
25695
  }), i = M(
25695
25696
  () => t.node.items ?? []
25696
25697
  ), s = M(() => t.node.title ?? null), r = M(
@@ -25703,9 +25704,9 @@ const AI = ne({
25703
25704
  const b = H9("InfolistRenderer", !0);
25704
25705
  return l.value.kind === "entry" && a.node.label ? (c(), h("div", eq, [
25705
25706
  u("span", aq, y(a.node.label), 1),
25706
- (c(), z($e(l.value.component), O2(Dw(d.value)), null, 16))
25707
- ])) : l.value.kind === "entry" ? (c(), z($e(l.value.component), O2(Qn({ key: 1 }, d.value)), null, 16)) : l.value.kind === "layout" && l.value.layoutType === "rows" ? (c(), h("div", tq, [
25708
- (c(!0), h(X, null, ee(i.value, (C, I) => (c(), z(b, {
25707
+ (c(), H($e(l.value.component), O2(Bw(d.value)), null, 16))
25708
+ ])) : l.value.kind === "entry" ? (c(), H($e(l.value.component), O2(Qn({ key: 1 }, d.value)), null, 16)) : l.value.kind === "layout" && l.value.layoutType === "rows" ? (c(), h("div", tq, [
25709
+ (c(!0), h(X, null, ee(i.value, (C, I) => (c(), H(b, {
25709
25710
  key: I,
25710
25711
  node: C
25711
25712
  }, null, 8, ["node"]))), 128))
@@ -25721,11 +25722,11 @@ const AI = ne({
25721
25722
  ], 4))), 128))
25722
25723
  ])) : l.value.kind === "layout" && (l.value.layoutType === "section" || l.value.layoutType === "block") ? (c(), h("section", oq, [
25723
25724
  s.value || r.value ? (c(), h("header", cq, [
25724
- s.value ? (c(), h("h3", iq, y(s.value), 1)) : H("", !0),
25725
- r.value ? (c(), h("p", lq, y(r.value), 1)) : H("", !0)
25726
- ])) : H("", !0),
25725
+ s.value ? (c(), h("h3", iq, y(s.value), 1)) : V("", !0),
25726
+ r.value ? (c(), h("p", lq, y(r.value), 1)) : V("", !0)
25727
+ ])) : V("", !0),
25727
25728
  u("div", rq, [
25728
- (c(!0), h(X, null, ee(i.value, (C, I) => (c(), z(b, {
25729
+ (c(!0), h(X, null, ee(i.value, (C, I) => (c(), H(b, {
25729
25730
  key: I,
25730
25731
  node: C
25731
25732
  }, null, 8, ["node"]))), 128))
@@ -25741,12 +25742,12 @@ const AI = ne({
25741
25742
  }, y(C.label), 3))), 128))
25742
25743
  ]),
25743
25744
  u("div", hq, [
25744
- (c(!0), h(X, null, ee(m.value[p.value]?.items ?? [], (C, I) => (c(), z(b, {
25745
+ (c(!0), h(X, null, ee(m.value[p.value]?.items ?? [], (C, I) => (c(), H(b, {
25745
25746
  key: I,
25746
25747
  node: C
25747
25748
  }, null, 8, ["node"]))), 128))
25748
25749
  ])
25749
- ])) : (c(), z(QS, {
25750
+ ])) : (c(), H(QS, {
25750
25751
  key: 6,
25751
25752
  type: a.node.type,
25752
25753
  name: a.node.name
@@ -25899,7 +25900,7 @@ const AI = ne({
25899
25900
  ], 64))
25900
25901
  ])
25901
25902
  ], 2))), 128))
25902
- ])) : g(f) ? (c(), h("div", Hq, y(g(f)), 1)) : H("", !0)
25903
+ ])) : g(f) ? (c(), h("div", Hq, y(g(f)), 1)) : V("", !0)
25903
25904
  ])
25904
25905
  ]))), 128))
25905
25906
  ])) : (c(), h("div", vq, y(n(v)("Записей в истории пока нет.")), 1))
@@ -25924,7 +25925,7 @@ const AI = ne({
25924
25925
  },
25925
25926
  setup(a) {
25926
25927
  const t = a, o = fI(), l = Ee(), d = Ze();
25927
- ow(o.state);
25928
+ cw(o.state);
25928
25929
  const i = M(() => l.getResource(t.slug)), s = M(() => (i.value?.features ?? {}).editable !== !1), r = M(
25929
25930
  () => i.value?.infolist ?? i.value?.fields ?? []
25930
25931
  ), p = M(() => t.auditSubjectType !== null ? t.auditSubjectType : i.value?.subject_type ?? null), m = M(() => {
@@ -25946,7 +25947,7 @@ const AI = ne({
25946
25947
  return te && B.push({ label: v("Автор"), value: te }), B;
25947
25948
  }), k = M(() => {
25948
25949
  const P = o.state, B = P.title ?? P.name ?? P.label;
25949
- return typeof B == "string" && B.length > 0 ? B : `${i.value?.label ?? t.slug}: ${WI("запись #:id", { id: t.id })}`;
25950
+ return typeof B == "string" && B.length > 0 ? B : `${i.value?.label ?? t.slug}: ${GI("запись #:id", { id: t.id })}`;
25950
25951
  }), g = M(
25951
25952
  () => i.value?.label ?? t.slug
25952
25953
  ), b = M(() => `${t.uidPrefix}${t.id}`), C = M(() => {
@@ -26005,7 +26006,7 @@ const AI = ne({
26005
26006
  d.push(`/r/${t.slug}`);
26006
26007
  });
26007
26008
  }
26008
- function V() {
26009
+ function z() {
26009
26010
  if (!t.editRouteName) {
26010
26011
  d.push(`/r/${t.slug}/${t.id}/edit`).catch(() => {
26011
26012
  });
@@ -26046,16 +26047,16 @@ const AI = ne({
26046
26047
  "aria-hidden": "true"
26047
26048
  }, null, -1)),
26048
26049
  D(" " + y(C.value), 1)
26049
- ], 8, Rq)) : H("", !0),
26050
+ ], 8, Rq)) : V("", !0),
26050
26051
  u("span", $q, y(b.value), 1)
26051
26052
  ])
26052
26053
  ]),
26053
26054
  u("div", Tq, [
26054
- s.value ? (c(), z(n(oe), {
26055
+ s.value ? (c(), H(n(oe), {
26055
26056
  key: 0,
26056
26057
  variant: "secondary",
26057
26058
  size: "md",
26058
- onClick: V
26059
+ onClick: z
26059
26060
  }, {
26060
26061
  prepend: x(() => [
26061
26062
  w(n(ae), {
@@ -26067,7 +26068,7 @@ const AI = ne({
26067
26068
  D(" " + y(n(v)("Редактировать")), 1)
26068
26069
  ]),
26069
26070
  _: 1
26070
- })) : H("", !0),
26071
+ })) : V("", !0),
26071
26072
  w(n(je), null, {
26072
26073
  trigger: x(() => [
26073
26074
  w(n(oe), {
@@ -26086,7 +26087,7 @@ const AI = ne({
26086
26087
  }, 8, ["aria-label"])
26087
26088
  ]),
26088
26089
  default: x(() => [
26089
- (c(!0), h(X, null, ee(f.value, (F) => (c(), z(n(De), {
26090
+ (c(!0), h(X, null, ee(f.value, (F) => (c(), H(n(De), {
26090
26091
  key: F.key,
26091
26092
  onClick: (O) => S(F)
26092
26093
  }, {
@@ -26115,7 +26116,7 @@ const AI = ne({
26115
26116
  })
26116
26117
  ])
26117
26118
  ]),
26118
- n(o).hasError ? (c(), z(n(Ye), {
26119
+ n(o).hasError ? (c(), H(n(Ye), {
26119
26120
  key: 0,
26120
26121
  variant: "danger",
26121
26122
  class: "admin-resource-view__alert",
@@ -26125,7 +26126,7 @@ const AI = ne({
26125
26126
  D(y(n(o).error?.message ?? n(v)("Не удалось загрузить запись")), 1)
26126
26127
  ]),
26127
26128
  _: 1
26128
- })) : H("", !0),
26129
+ })) : V("", !0),
26129
26130
  n(o).loading ? (c(), h("div", Uq, [
26130
26131
  (c(), h(X, null, ee(8, (F) => w(n(Re), {
26131
26132
  key: F,
@@ -26139,7 +26140,7 @@ const AI = ne({
26139
26140
  }, {
26140
26141
  default: x(() => [
26141
26142
  u("h2", Zq, y(n(v)("Основные данные")), 1),
26142
- (c(!0), h(X, null, ee(r.value, (F, O) => (c(), z(uq, {
26143
+ (c(!0), h(X, null, ee(r.value, (F, O) => (c(), H(uq, {
26143
26144
  key: O,
26144
26145
  node: F
26145
26146
  }, null, 8, ["node"]))), 128))
@@ -26160,7 +26161,7 @@ const AI = ne({
26160
26161
  })
26161
26162
  ]),
26162
26163
  u("aside", Wq, [
26163
- m.value.length > 0 ? (c(), z(n(we), {
26164
+ m.value.length > 0 ? (c(), H(n(we), {
26164
26165
  key: 0,
26165
26166
  padding: "md",
26166
26167
  class: "admin-resource-view__card"
@@ -26177,7 +26178,7 @@ const AI = ne({
26177
26178
  ])
26178
26179
  ]),
26179
26180
  _: 1
26180
- })) : H("", !0),
26181
+ })) : V("", !0),
26181
26182
  ze(P.$slots, "sidebar", {
26182
26183
  record: n(o).state,
26183
26184
  resource: i.value
@@ -26192,16 +26193,16 @@ const AI = ne({
26192
26193
  }, eA = { min: 0, L: 0, M: 1, Q: 2, H: 3, max: 3 }, io = (a) => new Uint8Array(a), jo = (a) => {
26193
26194
  const t = new Error(`lean-qr error ${a}`);
26194
26195
  throw t.code = a, t;
26195
- }, nc = (a) => "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(a), nI = (a) => a.charCodeAt(0), dw = (...a) => (t, o) => a.forEach((l) => l(t, o)), sw = (a) => (t) => {
26196
+ }, nc = (a) => "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(a), nI = (a) => a.charCodeAt(0), sw = (...a) => (t, o) => a.forEach((l) => l(t, o)), hw = (a) => (t) => {
26196
26197
  t.eci !== a && (t.push(7, 4), a < 128 ? t.push(a, 8) : a < 16384 ? t.push(32768 | a, 16) : t.push(12582912 | a, 24), t.eci = a);
26197
26198
  }, gI = (a) => (t, o) => {
26198
26199
  t.push(4, 4), t.push(a.length, 8 + 8 * (o > 9)), a.forEach((l) => t.push(l, 8));
26199
- }, zo = (a, t, o, l, d = (s, r) => o(s.length, r), i = l ? (s) => dw(sw(l), a(s)) : a) => (i.test = t, i.l = o, i.est = d, i.eci = l && [l], i), hw = zo((a) => (t, o) => {
26200
+ }, zo = (a, t, o, l, d = (s, r) => o(s.length, r), i = l ? (s) => sw(hw(l), a(s)) : a) => (i.test = t, i.l = o, i.est = d, i.eci = l && [l], i), uw = zo((a) => (t, o) => {
26200
26201
  t.push(1, 4), t.push(a.length, 10 + 2 * (o > 26) + 2 * (o > 9));
26201
26202
  let l = 0;
26202
26203
  for (; l < a.length - 2; l += 3) t.push(+a.slice(l, l + 3), 10);
26203
26204
  l < a.length - 1 ? t.push(+a.slice(l), 7) : l < a.length && t.push(+a[l], 4);
26204
- }, (a) => /[0-9]/.test(a), (a, t) => 14 + 2 * (t > 26) + 2 * (t > 9) + 10 * a / 3), uw = zo((a) => (t, o) => {
26205
+ }, (a) => /[0-9]/.test(a), (a, t) => 14 + 2 * (t > 26) + 2 * (t > 9) + 10 * a / 3), yw = zo((a) => (t, o) => {
26205
26206
  t.push(2, 4), t.push(a.length, 9 + 2 * (o > 26) + 2 * (o > 9));
26206
26207
  let l = 0;
26207
26208
  for (; l < a.length - 1; l += 2) t.push(45 * nc(a[l]) + nc(a[l + 1]), 11);
@@ -26222,7 +26223,7 @@ const wI = zo((a) => (t, o) => {
26222
26223
  for (const l of a) t.push(oI().get(l), 13);
26223
26224
  }, (a) => oI().has(a), (a, t) => 12 + 2 * (t > 26) + 2 * (t > 9) + 13 * a);
26224
26225
  wI._ = !0;
26225
- const yw = [hw, uw, Lo, MI, wI, II], aA = { auto: (a, { modes: t = yw } = {}) => (o, l) => {
26226
+ const pw = [uw, yw, Lo, MI, wI, II], aA = { auto: (a, { modes: t = pw } = {}) => (o, l) => {
26226
26227
  const d = t.map((k, g) => {
26227
26228
  const b = /* @__PURE__ */ new Map(), C = (I, L) => (b.has(I) || b.set(I, L(I, l)), b.get(I));
26228
26229
  return { m: k, h: 1 << g, C: k.est("", l), S: k.l ? (I, L) => C(L - I, k.l) : (I, L) => C(a.slice(I, L), k.est) };
@@ -26237,12 +26238,12 @@ const yw = [hw, uw, Lo, MI, wI, II], aA = { auto: (a, { modes: t = yw } = {}) =>
26237
26238
  for (const { m: I, C: L, S: f, h: S } of d) if (p & S) {
26238
26239
  const Z = f(s, r);
26239
26240
  for (const U of I.eci ?? b) if (!I.u || !U) {
26240
- let V;
26241
+ let z;
26241
26242
  for (const T of i) if (T.D === U || I.eci) {
26242
26243
  const P = T.m === I && T.D === U, B = P ? T.V : T, F = I._ && P ? T.v + Z - L : B.v + 12 * (B.D !== U) + (P ? f(P ? T.$ : s, r) : Z);
26243
- (!V || F < V.v) && (V = { $: P ? T.$ : s, V: B, m: I, D: U, A: r, v: F });
26244
+ (!z || F < z.v) && (z = { $: P ? T.$ : s, V: B, m: I, D: U, A: r, v: F });
26244
26245
  }
26245
- V && C.push(V);
26246
+ z && C.push(z);
26246
26247
  }
26247
26248
  }
26248
26249
  i = C;
@@ -26255,7 +26256,7 @@ const yw = [hw, uw, Lo, MI, wI, II], aA = { auto: (a, { modes: t = yw } = {}) =>
26255
26256
  const m = [];
26256
26257
  for (let k = i.reduce((g, b) => b.v < g.v ? b : g); k.m; k = k.V) m.push(k.m(a.slice(k.$, k.A)));
26257
26258
  m.reverse().forEach((k) => k(o, l));
26258
- }, multi: dw, eci: sw, bytes: gI, numeric: hw, alphaNumeric: uw, ascii: Lo, iso8859_1: MI, shift_jis: wI, utf8: II }, tA = () => ({ F: io(2956), I: 0, push(a, t) {
26259
+ }, multi: sw, eci: hw, bytes: gI, numeric: uw, alphaNumeric: yw, ascii: Lo, iso8859_1: MI, shift_jis: wI, utf8: II }, tA = () => ({ F: io(2956), I: 0, push(a, t) {
26259
26260
  for (let o = t, l = 8 - (7 & this.I); o > 0; o -= l, l = 8) this.F[this.I >> 3] |= a << l >> o, this.I += o < l ? o : l;
26260
26261
  } }), X9 = (a, t = a * a, o = io(t)) => ({ size: a, K: o, get: (l, d) => l >= 0 && l < a && !!(1 & o[d * a + l]), toString({ on: l = "##", off: d = " ", lf: i = `
26261
26262
  `, pad: s = 4, padX: r = s, padY: p = s } = {}) {
@@ -26281,16 +26282,16 @@ const yw = [hw, uw, Lo, MI, wI, II], aA = { auto: (a, { modes: t = yw } = {}) =>
26281
26282
  return s.width = p.width * d, s.height = p.height * d, r.putImageData(p, 0, 0), r.imageSmoothingEnabled = !1, r.globalCompositeOperation = "copy", r.drawImage(s, 0, 0, p.width, p.height, 0, 0, s.width, s.height), s.toDataURL(l, 1);
26282
26283
  } }), K9 = [(a, t) => 1 & (a ^ t), (a, t) => 1 & t, (a) => a % 3, (a, t) => (a + t) % 3, (a, t) => 1 & (a / 3 ^ t >> 1), (a, t) => (a & t & 1) + a * t % 3, (a, t) => (a & t) + a * t % 3 & 1, (a, t) => (a ^ t) + a * t % 3 & 1], A9 = io(511);
26283
26284
  for (let a = 0, t = 1; a < 255; t = 2 * t ^ 285 * (t > 127)) A9[A9[t + 255] = a++] = t;
26284
- const pw = (a) => A9[a % 255], kw = (a) => A9[a + 255], nA = (a, t) => {
26285
+ const kw = (a) => A9[a % 255], mw = (a) => A9[a + 255], nA = (a, t) => {
26285
26286
  const o = io(a.length + t.length - 1);
26286
- for (let l = 0; l < a.length; ++l) for (let d = 0; d < t.length; ++d) o[l + d] ^= pw(a[l] + t[d]);
26287
- return o.map(kw);
26287
+ for (let l = 0; l < a.length; ++l) for (let d = 0; d < t.length; ++d) o[l + d] ^= kw(a[l] + t[d]);
26288
+ return o.map(mw);
26288
26289
  }, oA = (a, t) => {
26289
26290
  const o = io(a.length + t.length - 1);
26290
26291
  o.set(a, 0);
26291
26292
  for (let l = 0; l < a.length; ++l) if (o[l]) {
26292
- const d = kw(o[l]);
26293
- for (let i = 0; i < t.length; ++i) o[l + i] ^= pw(t[i] + d);
26293
+ const d = mw(o[l]);
26294
+ for (let i = 0; i < t.length; ++i) o[l + i] ^= kw(t[i] + d);
26294
26295
  }
26295
26296
  return o.slice(a.length);
26296
26297
  }, cI = [[0], [0, 0]];
@@ -26309,7 +26310,7 @@ const cA = (a, t) => {
26309
26310
  for (const m of s) r < m.length && (i[d++] = m[r]);
26310
26311
  }
26311
26312
  return i;
26312
- }, mw = (a, t, o) => {
26313
+ }, vw = (a, t, o) => {
26313
26314
  let l = a <<= o;
26314
26315
  for (let d = 134217728; d >>= 1; ) l & d && (l ^= t * (d >> o));
26315
26316
  return l | a;
@@ -26323,7 +26324,7 @@ const cA = (a, t) => {
26323
26324
  for (let r = s; r > 8; r -= i) d(s, r, 5);
26324
26325
  s < a - 7 && d(s, 6, 5);
26325
26326
  }
26326
- if (o > 6) for (let s = mw(o, 7973, 12), r = 1; r < 7; ++r) for (let p = 12; p-- > 9; s >>= 1) t[r * a - p] = 2 | 1 & s;
26327
+ if (o > 6) for (let s = vw(o, 7973, 12), r = 1; r < 7; ++r) for (let p = 12; p-- > 9; s >>= 1) t[r * a - p] = 2 | 1 & s;
26327
26328
  l(7, 2, 9, 2), l(a - 8, 8, 9, 2);
26328
26329
  for (let s = 0; s < a; ++s) t[6 * a + s] = 3 ^ 1 & s;
26329
26330
  d(3, 3, 7), d(a - 4, 3, 7);
@@ -26344,7 +26345,7 @@ const cA = (a, t) => {
26344
26345
  const p = s * a + r;
26345
26346
  t[p] ^= !(o(r, s) || 2 & t[p]);
26346
26347
  }
26347
- let i = 21522 ^ mw((1 ^ d) << 3 | l, 1335, 10);
26348
+ let i = 21522 ^ vw((1 ^ d) << 3 | l, 1335, 10);
26348
26349
  for (let s = 0; s++ < 8; i >>= 1) t[(s - (s < 7)) * a + 8] = 1 & i, t[9 * a - s] = 1 & i;
26349
26350
  for (let s = 8; --s, i; i >>= 1) t[8 * a + s - (s < 7)] = 1 & i, t[(a - s) * a + 8] = 1 & i;
26350
26351
  }, sA = ({ size: a, K: t }, o = 0, l = 0) => {
@@ -26381,7 +26382,7 @@ const cA = (a, t) => {
26381
26382
  }
26382
26383
  jo(4);
26383
26384
  };
26384
- iI.with = (...a) => (t, o) => iI(t, { modes: [...yw, ...a], ...o });
26385
+ iI.with = (...a) => (t, o) => iI(t, { modes: [...pw, ...a], ...o });
26385
26386
  const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...Object.entries(o).map(([d, i]) => ` ${d}="${`${i}`.replace(/[^ -~]|["&]/g, "")}"`), ">", ...l, `</${t}>`].join(""), yA = (a) => {
26386
26387
  const t = /* @__PURE__ */ new Map(), o = [], l = (d) => {
26387
26388
  const i = t.get(d);
@@ -26440,7 +26441,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26440
26441
  async function b() {
26441
26442
  k.value = !0, g.value = "";
26442
26443
  try {
26443
- const { getAdminClient: V } = await Promise.resolve().then(() => qe), P = await V().post("/profile/twoFactorEnable");
26444
+ const { getAdminClient: z } = await Promise.resolve().then(() => qe), P = await z().post("/profile/twoFactorEnable");
26444
26445
  i.value = P.secret, s.value = P.qr_uri, p.value = P.recovery_codes ?? [], d.value = "setup";
26445
26446
  } catch {
26446
26447
  g.value = v("Не удалось инициализировать 2FA.");
@@ -26452,7 +26453,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26452
26453
  if (!(r.value.length < 4)) {
26453
26454
  k.value = !0, g.value = "";
26454
26455
  try {
26455
- const { getAdminClient: V } = await Promise.resolve().then(() => qe), P = await V().post(
26456
+ const { getAdminClient: z } = await Promise.resolve().then(() => qe), P = await z().post(
26456
26457
  "/profile/twoFactorConfirm",
26457
26458
  { code: r.value }
26458
26459
  );
@@ -26472,8 +26473,8 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26472
26473
  if (window.confirm(v("Отключить 2FA? Аккаунт станет менее защищённым."))) {
26473
26474
  k.value = !0, g.value = "";
26474
26475
  try {
26475
- const { getAdminClient: V } = await Promise.resolve().then(() => qe);
26476
- await V().post("/profile/twoFactorDisable", { password: m.value }), d.value = "idle", pe.success(v("2FA отключена.")), l("disabled");
26476
+ const { getAdminClient: z } = await Promise.resolve().then(() => qe);
26477
+ await z().post("/profile/twoFactorDisable", { password: m.value }), d.value = "idle", pe.success(v("2FA отключена.")), l("disabled");
26477
26478
  } catch {
26478
26479
  pe.error(v("Не удалось отключить 2FA."));
26479
26480
  } finally {
@@ -26488,7 +26489,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26488
26489
  }
26489
26490
  k.value = !0, g.value = "";
26490
26491
  try {
26491
- const { getAdminClient: V } = await Promise.resolve().then(() => qe), P = await V().post(
26492
+ const { getAdminClient: z } = await Promise.resolve().then(() => qe), P = await z().post(
26492
26493
  "/profile/twoFactorRegenerateCodes",
26493
26494
  { password: m.value }
26494
26495
  );
@@ -26517,13 +26518,13 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26517
26518
  const Z = M(() => i.value.match(/.{1,4}/g)?.join(" ") ?? i.value), U = M(() => {
26518
26519
  if (s.value === "") return "";
26519
26520
  try {
26520
- const V = iI(s.value, { minCorrectionLevel: eA.M });
26521
- return kA(V, { on: "#18181b", off: "transparent", padX: 1, padY: 1 });
26521
+ const z = iI(s.value, { minCorrectionLevel: eA.M });
26522
+ return kA(z, { on: "#18181b", off: "transparent", padX: 1, padY: 1 });
26522
26523
  } catch {
26523
26524
  return "";
26524
26525
  }
26525
26526
  });
26526
- return (V, T) => (c(), h("div", mA, [
26527
+ return (z, T) => (c(), h("div", mA, [
26527
26528
  d.value === "idle" ? (c(), h("div", vA, [
26528
26529
  u("p", fA, y(n(v)("Двухфакторная аутентификация добавляет второй слой защиты — даже если пароль попадёт")) + " " + y(n(v)("в чужие руки, без OTP-кода из приложения войти не получится.")), 1),
26529
26530
  w(n(oe), {
@@ -26543,7 +26544,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26543
26544
  ]),
26544
26545
  _: 1
26545
26546
  }, 8, ["loading"]),
26546
- g.value ? (c(), h("p", gA, y(g.value), 1)) : H("", !0)
26547
+ g.value ? (c(), h("p", gA, y(g.value), 1)) : V("", !0)
26547
26548
  ])) : d.value === "setup" ? (c(), h("div", MA, [
26548
26549
  u("ol", IA, [
26549
26550
  u("li", null, y(n(v)("Откройте Authenticator-приложение (Google Authenticator, 1Password, Authy…).")), 1),
@@ -26563,7 +26564,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26563
26564
  D(" " + y(n(v)("Копировать")), 1)
26564
26565
  ])
26565
26566
  ]),
26566
- ze(V.$slots, "qr-code", { uri: s.value }, () => [
26567
+ ze(z.$slots, "qr-code", { uri: s.value }, () => [
26567
26568
  U.value ? (c(), h("div", {
26568
26569
  key: 0,
26569
26570
  class: "admin-2fa__qr",
@@ -26600,7 +26601,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26600
26601
  ])
26601
26602
  ])
26602
26603
  ]),
26603
- g.value ? (c(), h("p", _A, y(g.value), 1)) : H("", !0)
26604
+ g.value ? (c(), h("p", _A, y(g.value), 1)) : V("", !0)
26604
26605
  ])) : d.value === "confirmed" ? (c(), h("div", SA, [
26605
26606
  u("p", qA, y(n(v)("2FA активирована. Сохраните recovery-коды в безопасном месте — они нужны если вы")) + " " + y(n(v)("потеряете доступ к Authenticator-приложению.")), 1),
26606
26607
  u("div", AA, [
@@ -26676,14 +26677,14 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26676
26677
  _: 1
26677
26678
  }, 8, ["loading"])
26678
26679
  ]),
26679
- g.value ? (c(), h("p", PA, y(g.value), 1)) : H("", !0),
26680
+ g.value ? (c(), h("p", PA, y(g.value), 1)) : V("", !0),
26680
26681
  p.value.length > 0 ? (c(), h("div", FA, [
26681
26682
  (c(!0), h(X, null, ee(p.value, (P) => (c(), h("code", {
26682
26683
  key: P,
26683
26684
  class: "admin-2fa__codes-item"
26684
26685
  }, y(P), 1))), 128))
26685
- ])) : H("", !0)
26686
- ])) : H("", !0)
26686
+ ])) : V("", !0)
26687
+ ])) : V("", !0)
26687
26688
  ]));
26688
26689
  }
26689
26690
  }), DA = { class: "admin-page admin-profile" }, BA = { class: "admin-page__hd" }, RA = { class: "admin-page__title-wrap" }, $A = { class: "admin-page__title" }, TA = { class: "admin-page__count" }, UA = { class: "admin-profile__layout" }, OA = {
@@ -26719,16 +26720,16 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26719
26720
  );
26720
26721
  Ie(
26721
26722
  () => k.value.locale,
26722
- (U, V) => {
26723
- U === V || !U || s.setLocale(U).then(() => {
26723
+ (U, z) => {
26724
+ U === z || !U || s.setLocale(U).then(() => {
26724
26725
  typeof window < "u" && window.location.reload();
26725
26726
  }).catch(() => {
26726
26727
  });
26727
26728
  }
26728
26729
  ), Ie(
26729
26730
  () => k.value.theme,
26730
- (U, V) => {
26731
- U === V || !U || i.setTheme(U).catch(() => {
26731
+ (U, z) => {
26732
+ U === z || !U || i.setTheme(U).catch(() => {
26732
26733
  });
26733
26734
  }
26734
26735
  );
@@ -26745,7 +26746,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26745
26746
  function Z() {
26746
26747
  L.value = !1, d.user && (d.user.twoFactorEnabled = !1), l("two-factor-disable");
26747
26748
  }
26748
- return (U, V) => (c(), h("section", DA, [
26749
+ return (U, z) => (c(), h("section", DA, [
26749
26750
  u("header", BA, [
26750
26751
  u("div", RA, [
26751
26752
  u("h1", $A, y(a.title), 1),
@@ -26771,7 +26772,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26771
26772
  ], 10, EA)), 64))
26772
26773
  ]),
26773
26774
  u("div", WA, [
26774
- p.value === "general" ? (c(), z(n(we), {
26775
+ p.value === "general" ? (c(), H(n(we), {
26775
26776
  key: 0,
26776
26777
  padding: "md"
26777
26778
  }, {
@@ -26789,7 +26790,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26789
26790
  u("div", JA, y(n(d).user?.name ?? "—"), 1),
26790
26791
  u("div", YA, y(n(d).user?.email ?? "—"), 1)
26791
26792
  ]),
26792
- V[4] || (V[4] = u("div", { style: { flex: "1" } }, null, -1)),
26793
+ z[4] || (z[4] = u("div", { style: { flex: "1" } }, null, -1)),
26793
26794
  w(n(oe), {
26794
26795
  variant: "ghost",
26795
26796
  size: "sm",
@@ -26804,26 +26805,26 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26804
26805
  u("div", QA, [
26805
26806
  w(n(Le), {
26806
26807
  modelValue: k.value.name,
26807
- "onUpdate:modelValue": V[0] || (V[0] = (T) => k.value.name = T),
26808
+ "onUpdate:modelValue": z[0] || (z[0] = (T) => k.value.name = T),
26808
26809
  label: n(v)("Имя"),
26809
26810
  name: "name"
26810
26811
  }, null, 8, ["modelValue", "label"]),
26811
26812
  w(n(Le), {
26812
26813
  modelValue: k.value.email,
26813
- "onUpdate:modelValue": V[1] || (V[1] = (T) => k.value.email = T),
26814
+ "onUpdate:modelValue": z[1] || (z[1] = (T) => k.value.email = T),
26814
26815
  label: "Email",
26815
26816
  type: "email",
26816
26817
  name: "email"
26817
26818
  }, null, 8, ["modelValue"]),
26818
26819
  w(n(S9), {
26819
26820
  modelValue: k.value.locale,
26820
- "onUpdate:modelValue": V[2] || (V[2] = (T) => k.value.locale = T),
26821
+ "onUpdate:modelValue": z[2] || (z[2] = (T) => k.value.locale = T),
26821
26822
  options: g.value,
26822
26823
  label: n(v)("Язык")
26823
26824
  }, null, 8, ["modelValue", "options", "label"]),
26824
26825
  w(n(S9), {
26825
26826
  modelValue: k.value.theme,
26826
- "onUpdate:modelValue": V[3] || (V[3] = (T) => k.value.theme = T),
26827
+ "onUpdate:modelValue": z[3] || (z[3] = (T) => k.value.theme = T),
26827
26828
  options: b.value,
26828
26829
  label: n(v)("Тема")
26829
26830
  }, null, 8, ["modelValue", "options", "label"])
@@ -26841,7 +26842,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26841
26842
  ])
26842
26843
  ]),
26843
26844
  _: 1
26844
- })) : p.value === "security" ? (c(), z(n(we), {
26845
+ })) : p.value === "security" ? (c(), H(n(we), {
26845
26846
  key: 1,
26846
26847
  padding: "md"
26847
26848
  }, {
@@ -26906,7 +26907,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26906
26907
  const k = d.value.change;
26907
26908
  return k && typeof k.delta == "number" ? k.delta : t.trend;
26908
26909
  });
26909
- return (k, g) => (c(), z(n(ic), {
26910
+ return (k, g) => (c(), H(n(ic), {
26910
26911
  title: a.title || i.value,
26911
26912
  value: s.value,
26912
26913
  prefix: r.value,
@@ -26929,7 +26930,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26929
26930
  }, rz = {
26930
26931
  key: 1,
26931
26932
  class: "admin-widget__empty"
26932
- }, dz = ["viewBox", "height", "aria-label"], sz = ["x", "y", "width", "height", "fill", "data-label", "data-value"], vw = /* @__PURE__ */ ne({
26933
+ }, dz = ["viewBox", "height", "aria-label"], sz = ["x", "y", "width", "height", "fill", "data-label", "data-value"], fw = /* @__PURE__ */ ne({
26933
26934
  __name: "BarChartWidget",
26934
26935
  props: {
26935
26936
  title: { default: "" },
@@ -26951,15 +26952,15 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26951
26952
  heightPct: r.value / l.value * 100
26952
26953
  }));
26953
26954
  });
26954
- return (i, s) => (c(), z(n(we), {
26955
+ return (i, s) => (c(), H(n(we), {
26955
26956
  padding: "md",
26956
26957
  class: "admin-widget"
26957
26958
  }, {
26958
26959
  default: x(() => [
26959
26960
  a.title || a.description ? (c(), h("header", cz, [
26960
- a.title ? (c(), h("h3", iz, y(a.title), 1)) : H("", !0),
26961
- a.description ? (c(), h("p", lz, y(a.description), 1)) : H("", !0)
26962
- ])) : H("", !0),
26961
+ a.title ? (c(), h("h3", iz, y(a.title), 1)) : V("", !0),
26962
+ a.description ? (c(), h("p", lz, y(a.description), 1)) : V("", !0)
26963
+ ])) : V("", !0),
26963
26964
  o.value ? (c(), h("div", rz, y(n(v)("Нет данных за период")), 1)) : (c(), h("svg", {
26964
26965
  key: 2,
26965
26966
  class: "admin-widget-bar-chart",
@@ -26997,7 +26998,7 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
26997
26998
  }, pz = {
26998
26999
  key: 2,
26999
27000
  class: "admin-donut-widget__row"
27000
- }, kz = ["aria-label"], mz = ["d", "fill"], vz = { class: "admin-donut-widget__legend" }, fz = { class: "admin-donut-widget__label" }, gz = { class: "admin-donut-widget__value" }, fw = /* @__PURE__ */ ne({
27001
+ }, kz = ["aria-label"], mz = ["d", "fill"], vz = { class: "admin-donut-widget__legend" }, fz = { class: "admin-donut-widget__label" }, gz = { class: "admin-donut-widget__value" }, gw = /* @__PURE__ */ ne({
27001
27002
  __name: "DonutChartWidget",
27002
27003
  props: {
27003
27004
  title: { default: "" },
@@ -27026,14 +27027,14 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
27026
27027
  };
27027
27028
  });
27028
27029
  });
27029
- return (s, r) => (c(), z(n(we), {
27030
+ return (s, r) => (c(), H(n(we), {
27030
27031
  padding: "md",
27031
27032
  class: "admin-widget admin-donut-widget"
27032
27033
  }, {
27033
27034
  default: x(() => [
27034
27035
  a.title ? (c(), h("header", hz, [
27035
27036
  u("h3", uz, y(a.title), 1)
27036
- ])) : H("", !0),
27037
+ ])) : V("", !0),
27037
27038
  l.value ? (c(), h("div", yz, y(n(v)("Нет данных")), 1)) : (c(), h("div", pz, [
27038
27039
  (c(), h("svg", {
27039
27040
  viewBox: "0 0 120 120",
@@ -27105,14 +27106,14 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
27105
27106
  return r;
27106
27107
  })
27107
27108
  );
27108
- return (s, r) => (c(), z(n(we), {
27109
+ return (s, r) => (c(), H(n(we), {
27109
27110
  padding: "md",
27110
27111
  class: "admin-widget"
27111
27112
  }, {
27112
27113
  default: x(() => [
27113
27114
  a.title ? (c(), h("header", Mz, [
27114
27115
  u("h3", Iz, y(a.title), 1)
27115
- ])) : H("", !0),
27116
+ ])) : V("", !0),
27116
27117
  w(n(Co), {
27117
27118
  columns: d.value,
27118
27119
  data: i.value,
@@ -27158,14 +27159,14 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
27158
27159
  const p = t.rows[s] ?? "", m = t.cols[r] ?? "";
27159
27160
  return t.formatValue ? t.formatValue(i, p, m) : `${p} ${m}: ${i}`;
27160
27161
  }
27161
- return (i, s) => (c(), z(n(we), {
27162
+ return (i, s) => (c(), H(n(we), {
27162
27163
  padding: "md",
27163
27164
  class: "admin-widget admin-heatmap-widget"
27164
27165
  }, {
27165
27166
  default: x(() => [
27166
27167
  a.title ? (c(), h("header", xz, [
27167
27168
  u("h3", bz, y(a.title), 1)
27168
- ])) : H("", !0),
27169
+ ])) : V("", !0),
27169
27170
  a.rows.length > 0 && a.cols.length > 0 && a.matrix.length > 0 ? (c(), h("div", {
27170
27171
  key: 1,
27171
27172
  class: "admin-heatmap",
@@ -27227,14 +27228,14 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
27227
27228
  ), i = M(
27228
27229
  () => t.suffix || t.unit || ""
27229
27230
  );
27230
- return (s, r) => (c(), z(n(we), {
27231
+ return (s, r) => (c(), H(n(we), {
27231
27232
  padding: "md",
27232
27233
  class: "admin-widget"
27233
27234
  }, {
27234
27235
  default: x(() => [
27235
27236
  a.title ? (c(), h("header", zz, [
27236
27237
  u("h3", Hz, y(a.title), 1)
27237
- ])) : H("", !0),
27238
+ ])) : V("", !0),
27238
27239
  u("div", Vz, [
27239
27240
  w(n(ax), {
27240
27241
  value: a.value,
@@ -27263,14 +27264,14 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
27263
27264
  content: {}
27264
27265
  },
27265
27266
  setup(a) {
27266
- return (t, o) => (c(), z(n(we), {
27267
+ return (t, o) => (c(), H(n(we), {
27267
27268
  padding: "md",
27268
27269
  class: "admin-widget"
27269
27270
  }, {
27270
27271
  default: x(() => [
27271
27272
  a.title ? (c(), h("header", Fz, [
27272
27273
  u("h3", jz, y(a.title), 1)
27273
- ])) : H("", !0),
27274
+ ])) : V("", !0),
27274
27275
  u("div", Dz, y(a.content), 1)
27275
27276
  ]),
27276
27277
  _: 1
@@ -27318,16 +27319,16 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
27318
27319
  color: r.color ?? l[m % l.length]
27319
27320
  })) : [];
27320
27321
  });
27321
- return (r, p) => o.value === "doughnut" || o.value === "pie" ? (c(), z(fw, {
27322
+ return (r, p) => o.value === "doughnut" || o.value === "pie" ? (c(), H(gw, {
27322
27323
  key: 0,
27323
27324
  title: a.title,
27324
27325
  data: s.value
27325
- }, null, 8, ["title", "data"])) : o.value === "bar" || o.value === "line" || o.value === "area" ? (c(), z(vw, {
27326
+ }, null, 8, ["title", "data"])) : o.value === "bar" || o.value === "line" || o.value === "area" ? (c(), H(fw, {
27326
27327
  key: 1,
27327
27328
  title: a.title,
27328
27329
  data: d.value,
27329
27330
  accent: i.value
27330
- }, null, 8, ["title", "data", "accent"])) : (c(), z(aw, {
27331
+ }, null, 8, ["title", "data", "accent"])) : (c(), H(tw, {
27331
27332
  key: 2,
27332
27333
  type: `chart:${o.value}`
27333
27334
  }, null, 8, ["type"]));
@@ -27359,14 +27360,14 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
27359
27360
  return i;
27360
27361
  })
27361
27362
  );
27362
- return (d, i) => (c(), z(n(we), {
27363
+ return (d, i) => (c(), H(n(we), {
27363
27364
  padding: "md",
27364
27365
  class: "admin-widget"
27365
27366
  }, {
27366
27367
  default: x(() => [
27367
27368
  a.title ? (c(), h("header", $z, [
27368
27369
  u("h3", Tz, y(a.title), 1)
27369
- ])) : H("", !0),
27370
+ ])) : V("", !0),
27370
27371
  w(n(Co), {
27371
27372
  columns: o.value,
27372
27373
  data: l.value,
@@ -27394,14 +27395,14 @@ const hA = "http://www.w3.org/2000/svg", uA = (a, t, o, l = []) => [`<${t}`, ...
27394
27395
  const t = a, o = M(() => ({
27395
27396
  height: t.height ? `${t.height}px` : "320px"
27396
27397
  }));
27397
- return (l, d) => (c(), z(n(we), {
27398
+ return (l, d) => (c(), H(n(we), {
27398
27399
  padding: "md",
27399
27400
  class: "admin-widget admin-widget--iframe"
27400
27401
  }, {
27401
27402
  default: x(() => [
27402
27403
  a.title ? (c(), h("header", Oz, [
27403
27404
  u("h3", Ez, y(a.title), 1)
27404
- ])) : H("", !0),
27405
+ ])) : V("", !0),
27405
27406
  a.src ? (c(), h("iframe", {
27406
27407
  key: 1,
27407
27408
  src: a.src,
@@ -27426,8 +27427,8 @@ function Xz() {
27426
27427
  stats: DI,
27427
27428
  // Charts: универсальный диспетчер по data.type → bar/donut/...
27428
27429
  chart: Rz,
27429
- "bar-chart": vw,
27430
- "donut-chart": fw,
27430
+ "bar-chart": fw,
27431
+ "donut-chart": gw,
27431
27432
  // Recent list (таблица последних записей)
27432
27433
  "recent-table": J9,
27433
27434
  recent_list: J9,
@@ -27475,7 +27476,7 @@ function Jz(a) {
27475
27476
  errorKey: "unknown",
27476
27477
  message: d.message
27477
27478
  }, r = LI(i, s);
27478
- return r instanceof JI && a.onUnauthenticated?.(), Promise.reject(r);
27479
+ return r instanceof YI && a.onUnauthenticated?.(), Promise.reject(r);
27479
27480
  }
27480
27481
  return Promise.reject(new F9(d.message));
27481
27482
  }
@@ -27720,7 +27721,7 @@ function hH(a) {
27720
27721
  name: "admin.notFound",
27721
27722
  component: a.components.notFound,
27722
27723
  meta: { kind: "system", title: "404", requiresAuth: !0 }
27723
- }, i = $w({
27724
+ }, i = Tw({
27724
27725
  history: o,
27725
27726
  routes: [...l, ...a.extraRoutes ?? [], d]
27726
27727
  });
@@ -27753,7 +27754,7 @@ const m1 = /* @__PURE__ */ ne({
27753
27754
  function i(s) {
27754
27755
  o.setField(t.name, s);
27755
27756
  }
27756
- return (s, r) => (c(), z(n(Le), {
27757
+ return (s, r) => (c(), H(n(Le), {
27757
27758
  "model-value": l.value,
27758
27759
  type: a.inputType,
27759
27760
  label: a.label ?? void 0,
@@ -27785,7 +27786,7 @@ const m1 = /* @__PURE__ */ ne({
27785
27786
  function i(s) {
27786
27787
  o.setField(t.name, s);
27787
27788
  }
27788
- return (s, r) => (c(), z(n(Z2), {
27789
+ return (s, r) => (c(), H(n(Z2), {
27789
27790
  label: a.label ?? void 0,
27790
27791
  hint: a.help ?? void 0,
27791
27792
  error: d.value,
@@ -27828,7 +27829,7 @@ const m1 = /* @__PURE__ */ ne({
27828
27829
  function i(s) {
27829
27830
  o.setField(t.name, s);
27830
27831
  }
27831
- return (s, r) => (c(), z(n(Z2), {
27832
+ return (s, r) => (c(), H(n(Z2), {
27832
27833
  label: a.label ?? void 0,
27833
27834
  hint: a.help ?? void 0,
27834
27835
  error: d.value,
@@ -27874,7 +27875,7 @@ const m1 = /* @__PURE__ */ ne({
27874
27875
  function s(r) {
27875
27876
  l.setField(t.name, r);
27876
27877
  }
27877
- return (r, p) => (c(), z(n(Z2), {
27878
+ return (r, p) => (c(), H(n(Z2), {
27878
27879
  label: a.label ?? void 0,
27879
27880
  hint: a.help ?? void 0,
27880
27881
  error: i.value,
@@ -27911,7 +27912,7 @@ const m1 = /* @__PURE__ */ ne({
27911
27912
  function i(s) {
27912
27913
  o.setField(t.name, s);
27913
27914
  }
27914
- return (s, r) => (c(), z(n(Z2), {
27915
+ return (s, r) => (c(), H(n(Z2), {
27915
27916
  hint: a.help ?? void 0,
27916
27917
  error: d.value,
27917
27918
  disabled: a.disabled
@@ -27949,7 +27950,7 @@ const m1 = /* @__PURE__ */ ne({
27949
27950
  function i(s) {
27950
27951
  o.setField(t.name, s);
27951
27952
  }
27952
- return (s, r) => (c(), z(n(Z2), {
27953
+ return (s, r) => (c(), H(n(Z2), {
27953
27954
  label: a.label ?? void 0,
27954
27955
  hint: a.help ?? void 0,
27955
27956
  error: d.value,
@@ -28036,7 +28037,7 @@ const m1 = /* @__PURE__ */ ne({
28036
28037
  J.splice(W, 1), L(J);
28037
28038
  }
28038
28039
  function Z(W) {
28039
- W.key === "Enter" ? (W.preventDefault(), V.value >= 0 && B.value[V.value] ? f(B.value[V.value]) : i.value.trim() !== "" && f(i.value)) : W.key === "Backspace" && i.value === "" && l.value.length > 0 ? S(l.value.length - 1) : W.key === "ArrowDown" ? (W.preventDefault(), V.value = Math.min(V.value + 1, B.value.length - 1)) : W.key === "ArrowUp" ? (W.preventDefault(), V.value = Math.max(V.value - 1, -1)) : W.key === "Escape" && (s.value = !1, r.value?.blur());
28040
+ W.key === "Enter" ? (W.preventDefault(), z.value >= 0 && B.value[z.value] ? f(B.value[z.value]) : i.value.trim() !== "" && f(i.value)) : W.key === "Backspace" && i.value === "" && l.value.length > 0 ? S(l.value.length - 1) : W.key === "ArrowDown" ? (W.preventDefault(), z.value = Math.min(z.value + 1, B.value.length - 1)) : W.key === "ArrowUp" ? (W.preventDefault(), z.value = Math.max(z.value - 1, -1)) : W.key === "Escape" && (s.value = !1, r.value?.blur());
28040
28041
  }
28041
28042
  function U(W) {
28042
28043
  const J = W.target.value;
@@ -28047,7 +28048,7 @@ const m1 = /* @__PURE__ */ ne({
28047
28048
  }
28048
28049
  i.value = J;
28049
28050
  }
28050
- const V = A(-1), T = M(
28051
+ const z = A(-1), T = M(
28051
28052
  () => Array.isArray(t.suggestionsByGroup) && t.suggestionsByGroup.length > 0
28052
28053
  ), P = M(() => {
28053
28054
  const W = i.value.trim().toLowerCase(), J = new Set(l.value);
@@ -28064,10 +28065,10 @@ const m1 = /* @__PURE__ */ ne({
28064
28065
  return t.suggestions.filter((R) => !J.has(R)).filter((R) => W === "" || R.toLowerCase().includes(W)).slice(0, 200);
28065
28066
  });
28066
28067
  function F(W) {
28067
- return W === V.value;
28068
+ return W === z.value;
28068
28069
  }
28069
28070
  Ie(i, () => {
28070
- V.value = -1;
28071
+ z.value = -1;
28071
28072
  });
28072
28073
  function O() {
28073
28074
  t.disabled || r.value?.focus();
@@ -28090,8 +28091,8 @@ const m1 = /* @__PURE__ */ ne({
28090
28091
  }, [
28091
28092
  a.label ? (c(), h("label", uH, [
28092
28093
  u("span", null, y(a.label), 1),
28093
- a.required ? (c(), h("span", yH, "*")) : H("", !0)
28094
- ])) : H("", !0),
28094
+ a.required ? (c(), h("span", yH, "*")) : V("", !0)
28095
+ ])) : V("", !0),
28095
28096
  u("div", {
28096
28097
  ref_key: "containerRef",
28097
28098
  ref: p,
@@ -28109,7 +28110,7 @@ const m1 = /* @__PURE__ */ ne({
28109
28110
  class: "admin-tags__chip"
28110
28111
  }, [
28111
28112
  u("span", pH, y(R), 1),
28112
- a.disabled ? H("", !0) : (c(), h("button", {
28113
+ a.disabled ? V("", !0) : (c(), h("button", {
28113
28114
  key: 0,
28114
28115
  type: "button",
28115
28116
  class: "admin-tags__chip-remove",
@@ -28135,7 +28136,7 @@ const m1 = /* @__PURE__ */ ne({
28135
28136
  onFocus: J[0] || (J[0] = (R) => s.value = !0),
28136
28137
  onBlur: te
28137
28138
  }, null, 40, mH),
28138
- (c(), z(lI, { to: "body" }, [
28139
+ (c(), H(lI, { to: "body" }, [
28139
28140
  s.value && B.value.length > 0 ? (c(), h("div", {
28140
28141
  key: 0,
28141
28142
  ref_key: "dropdownRef",
@@ -28162,21 +28163,21 @@ const m1 = /* @__PURE__ */ ne({
28162
28163
  ]),
28163
28164
  "aria-selected": F(B.value.indexOf(j)),
28164
28165
  onMousedown: me((q) => G(j), ["prevent"]),
28165
- onMouseenter: (q) => V.value = B.value.indexOf(j)
28166
+ onMouseenter: (q) => z.value = B.value.indexOf(j)
28166
28167
  }, y(j), 43, fH))), 128))
28167
28168
  ], 64))), 128)) : (c(!0), h(X, { key: 1 }, ee(B.value, (R, _) => (c(), h("button", {
28168
28169
  key: R,
28169
28170
  type: "button",
28170
28171
  role: "option",
28171
- class: fe(["admin-tags__option", { "admin-tags__option--active": _ === V.value }]),
28172
- "aria-selected": _ === V.value,
28172
+ class: fe(["admin-tags__option", { "admin-tags__option--active": _ === z.value }]),
28173
+ "aria-selected": _ === z.value,
28173
28174
  onMousedown: me((j) => G(R), ["prevent"]),
28174
- onMouseenter: (j) => V.value = _
28175
+ onMouseenter: (j) => z.value = _
28175
28176
  }, y(R), 43, gH))), 128))
28176
- ], 4)) : H("", !0)
28177
+ ], 4)) : V("", !0)
28177
28178
  ]))
28178
28179
  ], 2),
28179
- d.value ? (c(), h("p", MH, y(d.value), 1)) : a.help ? (c(), h("p", IH, y(a.help), 1)) : H("", !0)
28180
+ d.value ? (c(), h("p", MH, y(d.value), 1)) : a.help ? (c(), h("p", IH, y(a.help), 1)) : V("", !0)
28180
28181
  ], 2));
28181
28182
  }
28182
28183
  }), xH = {
@@ -28240,8 +28241,8 @@ const m1 = /* @__PURE__ */ ne({
28240
28241
  }, [
28241
28242
  a.label ? (c(), h("label", xH, [
28242
28243
  u("span", null, y(a.label), 1),
28243
- a.required ? (c(), h("span", bH, "*")) : H("", !0)
28244
- ])) : H("", !0),
28244
+ a.required ? (c(), h("span", bH, "*")) : V("", !0)
28245
+ ])) : V("", !0),
28245
28246
  u("div", LH, [
28246
28247
  u("div", CH, [
28247
28248
  (c(!0), h(X, null, ee(d.value, (b) => (c(), h("button", {
@@ -28259,7 +28260,7 @@ const m1 = /* @__PURE__ */ ne({
28259
28260
  onClick: (C) => i.value = b
28260
28261
  }, [
28261
28262
  D(y(b.toUpperCase()) + " ", 1),
28262
- m(b) ? (c(), h("span", SH)) : H("", !0)
28263
+ m(b) ? (c(), h("span", SH)) : V("", !0)
28263
28264
  ], 10, _H))), 128))
28264
28265
  ]),
28265
28266
  u("div", qH, [
@@ -28271,7 +28272,7 @@ const m1 = /* @__PURE__ */ ne({
28271
28272
  disabled: a.disabled,
28272
28273
  class: "admin-translatable__textarea",
28273
28274
  onInput: g[1] || (g[1] = (b) => r(i.value, b.target.value))
28274
- }, null, 40, AH)) : (c(), z(n(Le), {
28275
+ }, null, 40, AH)) : (c(), H(n(Le), {
28275
28276
  key: 0,
28276
28277
  "model-value": s.value[i.value] ?? "",
28277
28278
  placeholder: a.placeholder ?? "",
@@ -28280,7 +28281,7 @@ const m1 = /* @__PURE__ */ ne({
28280
28281
  }, null, 8, ["model-value", "placeholder", "disabled"]))
28281
28282
  ])
28282
28283
  ]),
28283
- p.value ? (c(), h("p", zH, y(p.value), 1)) : a.help ? (c(), h("p", HH, y(a.help), 1)) : H("", !0)
28284
+ p.value ? (c(), h("p", zH, y(p.value), 1)) : a.help ? (c(), h("p", HH, y(a.help), 1)) : V("", !0)
28284
28285
  ], 2));
28285
28286
  }
28286
28287
  }), VH = {
@@ -28357,7 +28358,7 @@ const m1 = /* @__PURE__ */ ne({
28357
28358
  h: R.height
28358
28359
  };
28359
28360
  }
28360
- function V(R) {
28361
+ function z(R) {
28361
28362
  C.value !== R && (C.value && C.value.classList.remove("admin-wysiwyg-img--selected"), C.value = R, R.classList.add("admin-wysiwyg-img--selected"), R.setAttribute("draggable", "true"), U());
28362
28363
  }
28363
28364
  function T() {
@@ -28367,7 +28368,7 @@ const m1 = /* @__PURE__ */ ne({
28367
28368
  f = R;
28368
28369
  const _ = (ue) => {
28369
28370
  const he = ue.target?.closest("img");
28370
- he && f?.contains(he) ? V(he) : T();
28371
+ he && f?.contains(he) ? z(he) : T();
28371
28372
  };
28372
28373
  f.addEventListener("click", _), S.push(() => f?.removeEventListener("click", _));
28373
28374
  const j = (ue) => {
@@ -28380,7 +28381,7 @@ const m1 = /* @__PURE__ */ ne({
28380
28381
  const E = (ue) => {
28381
28382
  const ke = ue.target;
28382
28383
  if (!ke || !f?.contains(ke) || ke.tagName !== "IMG") return;
28383
- V(ke), ue.dataTransfer?.setData("text/plain", "img"), ue.dataTransfer && (ue.dataTransfer.effectAllowed = "move");
28384
+ z(ke), ue.dataTransfer?.setData("text/plain", "img"), ue.dataTransfer && (ue.dataTransfer.effectAllowed = "move");
28384
28385
  };
28385
28386
  f.addEventListener("dragstart", E), S.push(() => f?.removeEventListener("dragstart", E));
28386
28387
  const ce = (ue) => {
@@ -28462,8 +28463,8 @@ const m1 = /* @__PURE__ */ ne({
28462
28463
  }, [
28463
28464
  a.label ? (c(), h("label", VH, [
28464
28465
  u("span", null, y(a.label), 1),
28465
- a.required ? (c(), h("span", PH, "*")) : H("", !0)
28466
- ])) : H("", !0),
28466
+ a.required ? (c(), h("span", PH, "*")) : V("", !0)
28467
+ ])) : V("", !0),
28467
28468
  u("div", {
28468
28469
  ref_key: "containerRef",
28469
28470
  ref: p,
@@ -28493,7 +28494,7 @@ const m1 = /* @__PURE__ */ ne({
28493
28494
  class: fe(["admin-wysiwyg-img__handle", `admin-wysiwyg-img__handle--${j}`]),
28494
28495
  style: Ve(J(j, I.value)),
28495
28496
  onMousedown: (q) => G(j, q)
28496
- }, null, 46, FH)), 64)) : H("", !0),
28497
+ }, null, 46, FH)), 64)) : V("", !0),
28497
28498
  L.value ? (c(), h("div", {
28498
28499
  key: 1,
28499
28500
  class: "admin-wysiwyg-img__dropline",
@@ -28502,9 +28503,9 @@ const m1 = /* @__PURE__ */ ne({
28502
28503
  top: L.value.y + "px",
28503
28504
  width: L.value.w + "px"
28504
28505
  })
28505
- }, null, 4)) : H("", !0)
28506
+ }, null, 4)) : V("", !0)
28506
28507
  ], 512),
28507
- d.value ? (c(), h("p", jH, y(d.value), 1)) : a.help ? (c(), h("p", DH, y(a.help), 1)) : H("", !0)
28508
+ d.value ? (c(), h("p", jH, y(d.value), 1)) : a.help ? (c(), h("p", DH, y(a.help), 1)) : V("", !0)
28508
28509
  ], 2));
28509
28510
  }
28510
28511
  }), RH = /* @__PURE__ */ a1(BH, [["__scopeId", "data-v-e1cee25f"]]), $H = { class: "admin-file-field" }, TH = {
@@ -28575,8 +28576,8 @@ const m1 = /* @__PURE__ */ ne({
28575
28576
  return (C, I) => (c(), h("div", $H, [
28576
28577
  a.label ? (c(), h("label", TH, [
28577
28578
  D(y(a.label), 1),
28578
- a.required ? (c(), h("span", UH, "*")) : H("", !0)
28579
- ])) : H("", !0),
28579
+ a.required ? (c(), h("span", UH, "*")) : V("", !0)
28580
+ ])) : V("", !0),
28580
28581
  l.value ? (c(), h("div", WH, [
28581
28582
  u("div", GH, [
28582
28583
  u("a", {
@@ -28620,8 +28621,8 @@ const m1 = /* @__PURE__ */ ne({
28620
28621
  onChange: m
28621
28622
  }, null, 40, ZH)
28622
28623
  ])),
28623
- a.help && !d.value ? (c(), h("p", KH, y(a.help), 1)) : H("", !0),
28624
- d.value ? (c(), h("p", JH, y(d.value), 1)) : H("", !0)
28624
+ a.help && !d.value ? (c(), h("p", KH, y(a.help), 1)) : V("", !0),
28625
+ d.value ? (c(), h("p", JH, y(d.value), 1)) : V("", !0)
28625
28626
  ]));
28626
28627
  }
28627
28628
  }), RI = /* @__PURE__ */ a1(YH, [["__scopeId", "data-v-7aaddf6d"]]), QH = { class: "admin-image-cropper" }, eV = {
@@ -28708,7 +28709,7 @@ const m1 = /* @__PURE__ */ ne({
28708
28709
  b.value = { x: j, y: j, w: R - 2 * j, h: _ - 2 * j };
28709
28710
  }
28710
28711
  }
28711
- const V = A(null), T = A({
28712
+ const z = A(null), T = A({
28712
28713
  mx: 0,
28713
28714
  my: 0,
28714
28715
  cx: 0,
@@ -28717,7 +28718,7 @@ const m1 = /* @__PURE__ */ ne({
28717
28718
  ch: 0
28718
28719
  });
28719
28720
  function P(R, _) {
28720
- V.value = R, T.value = {
28721
+ z.value = R, T.value = {
28721
28722
  mx: _.clientX,
28722
28723
  my: _.clientY,
28723
28724
  cx: b.value.x,
@@ -28727,24 +28728,24 @@ const m1 = /* @__PURE__ */ ne({
28727
28728
  }, window.addEventListener("mousemove", B), window.addEventListener("mouseup", F), _.preventDefault();
28728
28729
  }
28729
28730
  function B(R) {
28730
- if (V.value === null) return;
28731
+ if (z.value === null) return;
28731
28732
  const _ = R.clientX - T.value.mx, j = R.clientY - T.value.my, q = T.value, E = g.value, ce = (t.minCropWidth ?? 32) * k.value, ye = (t.minCropHeight ?? 32) * k.value;
28732
- if (V.value === "move") {
28733
+ if (z.value === "move") {
28733
28734
  let _e = Math.max(0, Math.min(q.cx + _, E.w - q.cw)), Ge = Math.max(0, Math.min(q.cy + j, E.h - q.ch));
28734
28735
  b.value = { x: _e, y: Ge, w: q.cw, h: q.ch };
28735
28736
  return;
28736
28737
  }
28737
28738
  let de = q.cx, xe = q.cy, ue = q.cx + q.cw, ke = q.cy + q.ch;
28738
- V.value === "nw" && (de = q.cx + _, xe = q.cy + j), V.value === "ne" && (ue = q.cx + q.cw + _, xe = q.cy + j), V.value === "sw" && (de = q.cx + _, ke = q.cy + q.ch + j), V.value === "se" && (ue = q.cx + q.cw + _, ke = q.cy + q.ch + j), de = Math.max(0, Math.min(de, ue - ce)), xe = Math.max(0, Math.min(xe, ke - ye)), ue = Math.min(E.w, Math.max(ue, de + ce)), ke = Math.min(E.h, Math.max(ke, xe + ye));
28739
+ z.value === "nw" && (de = q.cx + _, xe = q.cy + j), z.value === "ne" && (ue = q.cx + q.cw + _, xe = q.cy + j), z.value === "sw" && (de = q.cx + _, ke = q.cy + q.ch + j), z.value === "se" && (ue = q.cx + q.cw + _, ke = q.cy + q.ch + j), de = Math.max(0, Math.min(de, ue - ce)), xe = Math.max(0, Math.min(xe, ke - ye)), ue = Math.min(E.w, Math.max(ue, de + ce)), ke = Math.min(E.h, Math.max(ke, xe + ye));
28739
28740
  let he = ue - de, Ce = ke - xe;
28740
28741
  if (C.value !== null) {
28741
28742
  const _e = C.value;
28742
- Math.abs(he - q.cw) >= Math.abs(Ce - q.ch) ? Ce = he / _e : he = Ce * _e, V.value === "nw" && (de = ue - he, xe = ke - Ce), V.value === "ne" && (xe = ke - Ce), V.value === "sw" && (de = ue - he), de < 0 && (he += de, de = 0, Ce = he / _e, xe = V.value === "nw" || V.value === "ne" ? ke - Ce : xe), xe < 0 && (Ce += xe, xe = 0, he = Ce * _e, de = V.value === "nw" || V.value === "sw" ? ue - he : de), de + he > E.w && (he = E.w - de, Ce = he / _e), xe + Ce > E.h && (Ce = E.h - xe, he = Ce * _e);
28743
+ Math.abs(he - q.cw) >= Math.abs(Ce - q.ch) ? Ce = he / _e : he = Ce * _e, z.value === "nw" && (de = ue - he, xe = ke - Ce), z.value === "ne" && (xe = ke - Ce), z.value === "sw" && (de = ue - he), de < 0 && (he += de, de = 0, Ce = he / _e, xe = z.value === "nw" || z.value === "ne" ? ke - Ce : xe), xe < 0 && (Ce += xe, xe = 0, he = Ce * _e, de = z.value === "nw" || z.value === "sw" ? ue - he : de), de + he > E.w && (he = E.w - de, Ce = he / _e), xe + Ce > E.h && (Ce = E.h - xe, he = Ce * _e);
28743
28744
  }
28744
28745
  b.value = { x: de, y: xe, w: he, h: Ce };
28745
28746
  }
28746
28747
  function F() {
28747
- V.value = null, window.removeEventListener("mousemove", B), window.removeEventListener("mouseup", F);
28748
+ z.value = null, window.removeEventListener("mousemove", B), window.removeEventListener("mouseup", F);
28748
28749
  }
28749
28750
  async function O() {
28750
28751
  if (!p.value) return;
@@ -28792,8 +28793,8 @@ const m1 = /* @__PURE__ */ ne({
28792
28793
  return Do(te), (R, _) => (c(), h("div", QH, [
28793
28794
  a.label ? (c(), h("label", eV, [
28794
28795
  D(y(a.label), 1),
28795
- a.required ? (c(), h("span", aV, "*")) : H("", !0)
28796
- ])) : H("", !0),
28796
+ a.required ? (c(), h("span", aV, "*")) : V("", !0)
28797
+ ])) : V("", !0),
28797
28798
  !l.value && !p.value ? (c(), h("div", tV, [
28798
28799
  u("div", {
28799
28800
  class: fe(["admin-image-cropper__drop", { "admin-image-cropper__drop--over": s.value }]),
@@ -28807,7 +28808,7 @@ const m1 = /* @__PURE__ */ ne({
28807
28808
  size: 28
28808
28809
  }, null, 8, ["icon"]),
28809
28810
  u("p", nV, y(n(v)("Кликните или перетащите картинку")), 1),
28810
- a.outputWidth && a.outputHeight ? (c(), h("p", oV, " Будет обрезано до " + y(a.outputWidth) + "×" + y(a.outputHeight) + " px ", 1)) : H("", !0)
28811
+ a.outputWidth && a.outputHeight ? (c(), h("p", oV, " Будет обрезано до " + y(a.outputWidth) + "×" + y(a.outputHeight) + " px ", 1)) : V("", !0)
28811
28812
  ], 34),
28812
28813
  u("input", {
28813
28814
  ref_key: "fileInput",
@@ -28912,9 +28913,9 @@ const m1 = /* @__PURE__ */ ne({
28912
28913
  })
28913
28914
  ])
28914
28915
  ])
28915
- ])) : H("", !0),
28916
- a.help && !d.value ? (c(), h("p", kV, y(a.help), 1)) : H("", !0),
28917
- d.value ? (c(), h("p", mV, y(d.value), 1)) : H("", !0)
28916
+ ])) : V("", !0),
28917
+ a.help && !d.value ? (c(), h("p", kV, y(a.help), 1)) : V("", !0),
28918
+ d.value ? (c(), h("p", mV, y(d.value), 1)) : V("", !0)
28918
28919
  ]));
28919
28920
  }
28920
28921
  }), MV = /* @__PURE__ */ a1(gV, [["__scopeId", "data-v-32d412e9"]]), IV = {
@@ -28978,8 +28979,8 @@ const m1 = /* @__PURE__ */ ne({
28978
28979
  }, [
28979
28980
  a.label ? (c(), h("label", IV, [
28980
28981
  D(y(a.label), 1),
28981
- a.required ? (c(), h("span", wV, "*")) : H("", !0)
28982
- ])) : H("", !0),
28982
+ a.required ? (c(), h("span", wV, "*")) : V("", !0)
28983
+ ])) : V("", !0),
28983
28984
  u("div", xV, [
28984
28985
  u("div", bV, [
28985
28986
  u("span", null, y(n(v)(a.keyLabel)), 1),
@@ -29003,7 +29004,7 @@ const m1 = /* @__PURE__ */ ne({
29003
29004
  placeholder: n(v)(a.valueLabel),
29004
29005
  onBlur: i
29005
29006
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
29006
- a.removable ? (c(), z(n(oe), {
29007
+ a.removable ? (c(), H(n(oe), {
29007
29008
  key: 0,
29008
29009
  variant: "ghost",
29009
29010
  size: "sm",
@@ -29017,7 +29018,7 @@ const m1 = /* @__PURE__ */ ne({
29017
29018
  }, null, 8, ["icon"])
29018
29019
  ]),
29019
29020
  _: 1
29020
- }, 8, ["aria-label", "onClick"])) : H("", !0)
29021
+ }, 8, ["aria-label", "onClick"])) : V("", !0)
29021
29022
  ]))), 128)),
29022
29023
  a.allowedKeys.length > 0 ? (c(), h("datalist", {
29023
29024
  key: 0,
@@ -29027,9 +29028,9 @@ const m1 = /* @__PURE__ */ ne({
29027
29028
  key: b,
29028
29029
  value: b
29029
29030
  }, null, 8, CV))), 128))
29030
- ], 8, LV)) : H("", !0)
29031
+ ], 8, LV)) : V("", !0)
29031
29032
  ]),
29032
- a.addable ? (c(), z(n(oe), {
29033
+ a.addable ? (c(), H(n(oe), {
29033
29034
  key: 1,
29034
29035
  variant: "secondary",
29035
29036
  size: "sm",
@@ -29046,8 +29047,8 @@ const m1 = /* @__PURE__ */ ne({
29046
29047
  D(" " + y(n(v)("Добавить")), 1)
29047
29048
  ]),
29048
29049
  _: 1
29049
- })) : H("", !0),
29050
- p.value ? (c(), h("p", _V, y(p.value), 1)) : a.help ? (c(), h("p", SV, y(a.help), 1)) : H("", !0)
29050
+ })) : V("", !0),
29051
+ p.value ? (c(), h("p", _V, y(p.value), 1)) : a.help ? (c(), h("p", SV, y(a.help), 1)) : V("", !0)
29051
29052
  ], 2));
29052
29053
  }
29053
29054
  }), AV = /* @__PURE__ */ a1(qV, [["__scopeId", "data-v-e0d5df59"]]), zV = { class: "admin-nested-fields" }, HV = /* @__PURE__ */ ne({
@@ -29064,13 +29065,13 @@ const m1 = /* @__PURE__ */ ne({
29064
29065
  () => l("update:modelValue", { ...d }),
29065
29066
  { deep: !0 }
29066
29067
  ), (i, s) => (c(), h("div", zV, [
29067
- (c(!0), h(X, null, ee(a.fields, (r) => (c(), z(vI, {
29068
+ (c(!0), h(X, null, ee(a.fields, (r) => (c(), H(vI, {
29068
29069
  key: r.name,
29069
29070
  node: r
29070
29071
  }, null, 8, ["node"]))), 128))
29071
29072
  ]));
29072
29073
  }
29073
- }), gw = /* @__PURE__ */ a1(HV, [["__scopeId", "data-v-fdba98be"]]), VV = {
29074
+ }), Mw = /* @__PURE__ */ a1(HV, [["__scopeId", "data-v-fdba98be"]]), VV = {
29074
29075
  key: 0,
29075
29076
  class: "uid-form-field__label"
29076
29077
  }, PV = {
@@ -29141,9 +29142,9 @@ const m1 = /* @__PURE__ */ ne({
29141
29142
  }, [
29142
29143
  a.label ? (c(), h("label", VV, [
29143
29144
  D(y(a.label), 1),
29144
- a.required ? (c(), h("span", PV, "*")) : H("", !0)
29145
- ])) : H("", !0),
29146
- (c(!0), h(X, null, ee(d.value, (L, f) => (c(), z(n(we), {
29145
+ a.required ? (c(), h("span", PV, "*")) : V("", !0)
29146
+ ])) : V("", !0),
29147
+ (c(!0), h(X, null, ee(d.value, (L, f) => (c(), H(n(we), {
29147
29148
  key: f,
29148
29149
  padding: "md",
29149
29150
  class: "admin-repeater__item"
@@ -29152,7 +29153,7 @@ const m1 = /* @__PURE__ */ ne({
29152
29153
  u("header", FV, [
29153
29154
  u("span", jV, "#" + y(f + 1), 1),
29154
29155
  u("span", DV, [
29155
- a.reorderable ? (c(), z(n(oe), {
29156
+ a.reorderable ? (c(), H(n(oe), {
29156
29157
  key: 0,
29157
29158
  variant: "ghost",
29158
29159
  size: "sm",
@@ -29167,8 +29168,8 @@ const m1 = /* @__PURE__ */ ne({
29167
29168
  }, null, 8, ["icon"])
29168
29169
  ]),
29169
29170
  _: 1
29170
- }, 8, ["disabled", "aria-label", "onClick"])) : H("", !0),
29171
- a.reorderable ? (c(), z(n(oe), {
29171
+ }, 8, ["disabled", "aria-label", "onClick"])) : V("", !0),
29172
+ a.reorderable ? (c(), H(n(oe), {
29172
29173
  key: 1,
29173
29174
  variant: "ghost",
29174
29175
  size: "sm",
@@ -29183,8 +29184,8 @@ const m1 = /* @__PURE__ */ ne({
29183
29184
  }, null, 8, ["icon"])
29184
29185
  ]),
29185
29186
  _: 1
29186
- }, 8, ["disabled", "aria-label", "onClick"])) : H("", !0),
29187
- m.value ? (c(), z(n(oe), {
29187
+ }, 8, ["disabled", "aria-label", "onClick"])) : V("", !0),
29188
+ m.value ? (c(), H(n(oe), {
29188
29189
  key: 2,
29189
29190
  variant: "ghost",
29190
29191
  size: "sm",
@@ -29198,10 +29199,10 @@ const m1 = /* @__PURE__ */ ne({
29198
29199
  }, null, 8, ["icon"])
29199
29200
  ]),
29200
29201
  _: 1
29201
- }, 8, ["aria-label", "onClick"])) : H("", !0)
29202
+ }, 8, ["aria-label", "onClick"])) : V("", !0)
29202
29203
  ])
29203
29204
  ]),
29204
- w(gw, {
29205
+ w(Mw, {
29205
29206
  fields: a.fields,
29206
29207
  "model-value": L,
29207
29208
  "onUpdate:modelValue": (S) => s(f, S)
@@ -29209,7 +29210,7 @@ const m1 = /* @__PURE__ */ ne({
29209
29210
  ]),
29210
29211
  _: 2
29211
29212
  }, 1024))), 128)),
29212
- r.value ? (c(), z(n(oe), {
29213
+ r.value ? (c(), H(n(oe), {
29213
29214
  key: 1,
29214
29215
  variant: "secondary",
29215
29216
  size: "sm",
@@ -29226,8 +29227,8 @@ const m1 = /* @__PURE__ */ ne({
29226
29227
  D(" " + y(n(v)("Добавить элемент")), 1)
29227
29228
  ]),
29228
29229
  _: 1
29229
- })) : H("", !0),
29230
- b.value ? (c(), h("p", BV, y(b.value), 1)) : a.help ? (c(), h("p", RV, y(a.help), 1)) : H("", !0)
29230
+ })) : V("", !0),
29231
+ b.value ? (c(), h("p", BV, y(b.value), 1)) : a.help ? (c(), h("p", RV, y(a.help), 1)) : V("", !0)
29231
29232
  ], 2));
29232
29233
  }
29233
29234
  }), TV = /* @__PURE__ */ a1($V, [["__scopeId", "data-v-8b51df90"]]), UV = {
@@ -29300,9 +29301,9 @@ const m1 = /* @__PURE__ */ ne({
29300
29301
  }, [
29301
29302
  a.label ? (c(), h("label", UV, [
29302
29303
  D(y(a.label), 1),
29303
- a.required ? (c(), h("span", OV, "*")) : H("", !0)
29304
- ])) : H("", !0),
29305
- (c(!0), h(X, null, ee(d.value, (f, S) => (c(), z(n(we), {
29304
+ a.required ? (c(), h("span", OV, "*")) : V("", !0)
29305
+ ])) : V("", !0),
29306
+ (c(!0), h(X, null, ee(d.value, (f, S) => (c(), H(n(we), {
29306
29307
  key: S,
29307
29308
  padding: "md",
29308
29309
  class: "admin-builder__block"
@@ -29311,7 +29312,7 @@ const m1 = /* @__PURE__ */ ne({
29311
29312
  u("header", EV, [
29312
29313
  u("span", ZV, y(b(f.type)?.label ?? f.type), 1),
29313
29314
  u("span", WV, [
29314
- a.reorderable ? (c(), z(n(oe), {
29315
+ a.reorderable ? (c(), H(n(oe), {
29315
29316
  key: 0,
29316
29317
  variant: "ghost",
29317
29318
  size: "sm",
@@ -29326,8 +29327,8 @@ const m1 = /* @__PURE__ */ ne({
29326
29327
  }, null, 8, ["icon"])
29327
29328
  ]),
29328
29329
  _: 1
29329
- }, 8, ["disabled", "aria-label", "onClick"])) : H("", !0),
29330
- a.reorderable ? (c(), z(n(oe), {
29330
+ }, 8, ["disabled", "aria-label", "onClick"])) : V("", !0),
29331
+ a.reorderable ? (c(), H(n(oe), {
29331
29332
  key: 1,
29332
29333
  variant: "ghost",
29333
29334
  size: "sm",
@@ -29342,7 +29343,7 @@ const m1 = /* @__PURE__ */ ne({
29342
29343
  }, null, 8, ["icon"])
29343
29344
  ]),
29344
29345
  _: 1
29345
- }, 8, ["disabled", "aria-label", "onClick"])) : H("", !0),
29346
+ }, 8, ["disabled", "aria-label", "onClick"])) : V("", !0),
29346
29347
  w(n(oe), {
29347
29348
  variant: "ghost",
29348
29349
  size: "sm",
@@ -29359,7 +29360,7 @@ const m1 = /* @__PURE__ */ ne({
29359
29360
  }, 8, ["aria-label", "onClick"])
29360
29361
  ])
29361
29362
  ]),
29362
- b(f.type) ? (c(), z(gw, {
29363
+ b(f.type) ? (c(), H(Mw, {
29363
29364
  key: 0,
29364
29365
  fields: b(f.type).fields,
29365
29366
  "model-value": f.data,
@@ -29368,7 +29369,7 @@ const m1 = /* @__PURE__ */ ne({
29368
29369
  ]),
29369
29370
  _: 2
29370
29371
  }, 1024))), 128)),
29371
- r.value && s.value.length > 0 ? (c(), z(n(je), { key: 1 }, {
29372
+ r.value && s.value.length > 0 ? (c(), H(n(je), { key: 1 }, {
29372
29373
  trigger: x(() => [
29373
29374
  w(n(oe), {
29374
29375
  variant: "secondary",
@@ -29388,7 +29389,7 @@ const m1 = /* @__PURE__ */ ne({
29388
29389
  })
29389
29390
  ]),
29390
29391
  default: x(() => [
29391
- (c(!0), h(X, null, ee(s.value, (f) => (c(), z(n(De), {
29392
+ (c(!0), h(X, null, ee(s.value, (f) => (c(), H(n(De), {
29392
29393
  key: f.type,
29393
29394
  onClick: (S) => p(f.type)
29394
29395
  }, {
@@ -29399,8 +29400,8 @@ const m1 = /* @__PURE__ */ ne({
29399
29400
  }, 1032, ["onClick"]))), 128))
29400
29401
  ]),
29401
29402
  _: 1
29402
- })) : H("", !0),
29403
- C.value ? (c(), h("p", NV, y(C.value), 1)) : a.help ? (c(), h("p", XV, y(a.help), 1)) : H("", !0)
29403
+ })) : V("", !0),
29404
+ C.value ? (c(), h("p", NV, y(C.value), 1)) : a.help ? (c(), h("p", XV, y(a.help), 1)) : V("", !0)
29404
29405
  ], 2));
29405
29406
  }
29406
29407
  }), JV = /* @__PURE__ */ a1(KV, [["__scopeId", "data-v-b8372057"]]), YV = { class: "uid-form-field admin-relation-table" }, QV = {
@@ -29436,7 +29437,7 @@ const m1 = /* @__PURE__ */ ne({
29436
29437
  }))
29437
29438
  );
29438
29439
  return (i, s) => (c(), h("div", YV, [
29439
- a.label ? (c(), h("label", QV, y(a.label), 1)) : H("", !0),
29440
+ a.label ? (c(), h("label", QV, y(a.label), 1)) : V("", !0),
29440
29441
  w(n(we), { padding: "sm" }, {
29441
29442
  default: x(() => [
29442
29443
  w(n(Co), {
@@ -29447,7 +29448,7 @@ const m1 = /* @__PURE__ */ ne({
29447
29448
  ]),
29448
29449
  _: 1
29449
29450
  }),
29450
- a.help ? (c(), h("p", eP, y(a.help), 1)) : H("", !0)
29451
+ a.help ? (c(), h("p", eP, y(a.help), 1)) : V("", !0)
29451
29452
  ]));
29452
29453
  }
29453
29454
  }), tP = {
@@ -29508,8 +29509,8 @@ const m1 = /* @__PURE__ */ ne({
29508
29509
  }, [
29509
29510
  a.label ? (c(), h("label", tP, [
29510
29511
  D(y(a.label), 1),
29511
- a.required ? (c(), h("span", nP, "*")) : H("", !0)
29512
- ])) : H("", !0),
29512
+ a.required ? (c(), h("span", nP, "*")) : V("", !0)
29513
+ ])) : V("", !0),
29513
29514
  u("div", oP, [
29514
29515
  w(n(Le), {
29515
29516
  "model-value": d.value,
@@ -29521,7 +29522,7 @@ const m1 = /* @__PURE__ */ ne({
29521
29522
  class: "admin-generated__input",
29522
29523
  "onUpdate:modelValue": k
29523
29524
  }, null, 8, ["model-value", "error", "placeholder", "required", "disabled", "name"]),
29524
- s ? (c(), z(n(oe), {
29525
+ s ? (c(), H(n(oe), {
29525
29526
  key: 0,
29526
29527
  variant: "secondary",
29527
29528
  size: "md",
@@ -29533,9 +29534,9 @@ const m1 = /* @__PURE__ */ ne({
29533
29534
  D(y(n(l).has("admin.fields.generate") ? n(l).t("admin.fields.generate") : n(v)("Сгенерировать")), 1)
29534
29535
  ]),
29535
29536
  _: 1
29536
- }, 8, ["disabled"])) : H("", !0)
29537
+ }, 8, ["disabled"])) : V("", !0)
29537
29538
  ]),
29538
- i.value ? (c(), h("p", cP, y(i.value), 1)) : a.help ? (c(), h("p", iP, y(a.help), 1)) : H("", !0)
29539
+ i.value ? (c(), h("p", cP, y(i.value), 1)) : a.help ? (c(), h("p", iP, y(a.help), 1)) : V("", !0)
29539
29540
  ], 2));
29540
29541
  }
29541
29542
  }), rP = /* @__PURE__ */ ne({
@@ -29551,7 +29552,7 @@ const m1 = /* @__PURE__ */ ne({
29551
29552
  const i = d.span;
29552
29553
  return typeof i == "number" && i > 0 ? Math.min(i, t.cols) : o.value;
29553
29554
  }
29554
- return (d, i) => (c(), z(n(uI), {
29555
+ return (d, i) => (c(), H(n(uI), {
29555
29556
  cols: a.cols,
29556
29557
  gap: a.gap
29557
29558
  }, {
@@ -29584,17 +29585,17 @@ const m1 = /* @__PURE__ */ ne({
29584
29585
  description: { default: null }
29585
29586
  },
29586
29587
  setup(a) {
29587
- return (t, o) => (c(), z(n(we), {
29588
+ return (t, o) => (c(), H(n(we), {
29588
29589
  padding: "md",
29589
29590
  class: "admin-section"
29590
29591
  }, {
29591
29592
  default: x(() => [
29592
29593
  a.title || a.description ? (c(), h("header", dP, [
29593
- a.title ? (c(), h("h3", sP, y(a.title), 1)) : H("", !0),
29594
- a.description ? (c(), h("p", hP, y(a.description), 1)) : H("", !0)
29595
- ])) : H("", !0),
29594
+ a.title ? (c(), h("h3", sP, y(a.title), 1)) : V("", !0),
29595
+ a.description ? (c(), h("p", hP, y(a.description), 1)) : V("", !0)
29596
+ ])) : V("", !0),
29596
29597
  u("div", uP, [
29597
- (c(!0), h(X, null, ee(a.items, (l, d) => (c(), z(bo, {
29598
+ (c(!0), h(X, null, ee(a.items, (l, d) => (c(), H(bo, {
29598
29599
  key: d,
29599
29600
  node: l
29600
29601
  }, null, 8, ["node"]))), 128))
@@ -29607,7 +29608,8 @@ const m1 = /* @__PURE__ */ ne({
29607
29608
  __name: "TabsLayout",
29608
29609
  props: {
29609
29610
  items: {},
29610
- active: { default: 0 }
29611
+ active: { default: 0 },
29612
+ gap: { default: "var(--uid-space-lg)" }
29611
29613
  },
29612
29614
  emits: ["update:active"],
29613
29615
  setup(a, { emit: t }) {
@@ -29619,12 +29621,12 @@ const m1 = /* @__PURE__ */ ne({
29619
29621
  function s(r) {
29620
29622
  i.value = r, l("update:active", r);
29621
29623
  }
29622
- return (r, p) => (c(), z(n(EI), {
29624
+ return (r, p) => (c(), H(n(ZI), {
29623
29625
  "model-value": i.value,
29624
29626
  "onUpdate:modelValue": s
29625
29627
  }, {
29626
29628
  list: x(() => [
29627
- (c(!0), h(X, null, ee(a.items, (m, k) => (c(), z(n(lc), {
29629
+ (c(!0), h(X, null, ee(a.items, (m, k) => (c(), H(n(lc), {
29628
29630
  key: d(m, k),
29629
29631
  value: d(m, k)
29630
29632
  }, {
@@ -29635,15 +29637,24 @@ const m1 = /* @__PURE__ */ ne({
29635
29637
  }, 1032, ["value"]))), 128))
29636
29638
  ]),
29637
29639
  default: x(() => [
29638
- (c(!0), h(X, null, ee(a.items, (m, k) => (c(), z(n(ZI), {
29640
+ (c(!0), h(X, null, ee(a.items, (m, k) => (c(), H(n(WI), {
29639
29641
  key: `panel-${d(m, k)}`,
29640
29642
  value: d(m, k)
29641
29643
  }, {
29642
29644
  default: x(() => [
29643
- (c(!0), h(X, null, ee(m.items, (g, b) => (c(), z(bo, {
29644
- key: b,
29645
- node: g
29646
- }, null, 8, ["node"]))), 128))
29645
+ w(n(EI), {
29646
+ direction: "column",
29647
+ gap: a.gap,
29648
+ align: "stretch"
29649
+ }, {
29650
+ default: x(() => [
29651
+ (c(!0), h(X, null, ee(m.items, (g, b) => (c(), H(bo, {
29652
+ key: b,
29653
+ node: g
29654
+ }, null, 8, ["node"]))), 128))
29655
+ ]),
29656
+ _: 2
29657
+ }, 1032, ["gap"])
29647
29658
  ]),
29648
29659
  _: 2
29649
29660
  }, 1032, ["value"]))), 128))
@@ -29711,7 +29722,7 @@ const m1 = /* @__PURE__ */ ne({
29711
29722
  function U(J) {
29712
29723
  return J?.row;
29713
29724
  }
29714
- function V(J) {
29725
+ function z(J) {
29715
29726
  const R = Z(J), _ = new Set(p.value);
29716
29727
  _.has(R) ? _.delete(R) : _.add(R), p.value = _;
29717
29728
  }
@@ -29761,7 +29772,7 @@ const m1 = /* @__PURE__ */ ne({
29761
29772
  }
29762
29773
  return (J, R) => (c(), h("div", pP, [
29763
29774
  u("div", kP, [
29764
- C.value ? (c(), z(n(oe), {
29775
+ C.value ? (c(), H(n(oe), {
29765
29776
  key: 0,
29766
29777
  variant: "primary",
29767
29778
  size: "sm",
@@ -29773,8 +29784,8 @@ const m1 = /* @__PURE__ */ ne({
29773
29784
  R[0] || (R[0] = D(" Добавить ", -1))
29774
29785
  ]),
29775
29786
  _: 1
29776
- }, 8, ["disabled"])) : H("", !0),
29777
- L.value && p.value.size > 0 ? (c(), z(n(oe), {
29787
+ }, 8, ["disabled"])) : V("", !0),
29788
+ L.value && p.value.size > 0 ? (c(), H(n(oe), {
29778
29789
  key: 1,
29779
29790
  variant: "danger",
29780
29791
  size: "sm",
@@ -29785,30 +29796,30 @@ const m1 = /* @__PURE__ */ ne({
29785
29796
  D(" Удалить выбранные (" + y(p.value.size) + ") ", 1)
29786
29797
  ]),
29787
29798
  _: 1
29788
- })) : H("", !0)
29799
+ })) : V("", !0)
29789
29800
  ]),
29790
- s.value && i.value.length === 0 ? (c(), z(n(Re), { key: 0 })) : r.value ? (c(), z(n(sI), {
29801
+ s.value && i.value.length === 0 ? (c(), H(n(Re), { key: 0 })) : r.value ? (c(), H(n(sI), {
29791
29802
  key: 1,
29792
29803
  message: r.value.message,
29793
29804
  onRetry: S
29794
- }, null, 8, ["message"])) : !s.value && i.value.length === 0 && m.value === null ? (c(), z(n(hI), {
29805
+ }, null, 8, ["message"])) : !s.value && i.value.length === 0 && m.value === null ? (c(), H(n(hI), {
29795
29806
  key: 2,
29796
29807
  title: n(v)("Нет данных"),
29797
29808
  hint: n(v)("Нажмите «Добавить», чтобы создать первую запись.")
29798
- }, null, 8, ["title", "hint"])) : (c(), z(n(Co), {
29809
+ }, null, 8, ["title", "hint"])) : (c(), H(n(Co), {
29799
29810
  key: 3,
29800
29811
  columns: b.value,
29801
29812
  data: i.value,
29802
29813
  selectable: L.value,
29803
29814
  selection: p.value,
29804
29815
  "row-key": "id",
29805
- onSelectRow: V,
29816
+ onSelectRow: z,
29806
29817
  onSelectAll: T
29807
29818
  }, $I({ _: 2 }, [
29808
29819
  ee(b.value, (_) => ({
29809
29820
  name: _.key,
29810
29821
  fn: x((j) => [
29811
- U(j) && f(_.key) ? (c(), z(rw, {
29822
+ U(j) && f(_.key) ? (c(), H(dw, {
29812
29823
  key: 0,
29813
29824
  "resource-slug": a.resource,
29814
29825
  "row-id": Z(U(j)),
@@ -29899,7 +29910,7 @@ const m1 = /* @__PURE__ */ ne({
29899
29910
  _: 1
29900
29911
  })
29901
29912
  ])
29902
- ])) : H("", !0)
29913
+ ])) : V("", !0)
29903
29914
  ]));
29904
29915
  }
29905
29916
  }), CP = /* @__PURE__ */ a1(LP, [["__scopeId", "data-v-17c526a7"]]), _P = /* @__PURE__ */ ne({
@@ -29915,7 +29926,7 @@ const m1 = /* @__PURE__ */ ne({
29915
29926
  const d = l.size ?? l.span, i = Number(d), s = Number.isFinite(i) && i >= 1 ? i : t.gridColumns;
29916
29927
  return Math.min(s, t.gridColumns);
29917
29928
  }
29918
- return (l, d) => (c(), z(n(uI), {
29929
+ return (l, d) => (c(), H(n(uI), {
29919
29930
  cols: a.gridColumns,
29920
29931
  "col-gap": a.gap,
29921
29932
  "row-gap": "var(--uid-space-lg)"
@@ -29926,7 +29937,7 @@ const m1 = /* @__PURE__ */ ne({
29926
29937
  class: "admin-dashboard-layout__cell",
29927
29938
  style: Ve({ gridColumn: `span ${o(i)}` })
29928
29939
  }, [
29929
- w(tw, { node: i }, null, 8, ["node"])
29940
+ w(nw, { node: i }, null, 8, ["node"])
29930
29941
  ], 4))), 128))
29931
29942
  ]),
29932
29943
  _: 1
@@ -30075,7 +30086,7 @@ const ge = /* @__PURE__ */ ne({
30075
30086
  ...t.map,
30076
30087
  ...t.colors
30077
30088
  })), i = M(() => t.variant ? t.variant : d.value[l.value] ?? "default"), s = M(() => t.labels[l.value] ?? l.value);
30078
- return (r, p) => l.value ? (c(), z(n(yI), {
30089
+ return (r, p) => l.value ? (c(), H(n(yI), {
30079
30090
  key: 0,
30080
30091
  variant: i.value
30081
30092
  }, {
@@ -30111,13 +30122,13 @@ const ge = /* @__PURE__ */ ne({
30111
30122
  return (r, p) => (c(), h("span", {
30112
30123
  class: fe(["admin-infolist-icon", l.value ? "admin-infolist-icon--on" : "admin-infolist-icon--off"])
30113
30124
  }, [
30114
- i.value ? (c(), z(n(ae), {
30125
+ i.value ? (c(), H(n(ae), {
30115
30126
  key: 0,
30116
30127
  icon: i.value,
30117
30128
  size: 14,
30118
30129
  class: "admin-infolist-icon__glyph"
30119
- }, null, 8, ["icon"])) : H("", !0),
30120
- s.value ? (c(), h("span", HP, y(s.value), 1)) : H("", !0)
30130
+ }, null, 8, ["icon"])) : V("", !0),
30131
+ s.value ? (c(), h("span", HP, y(s.value), 1)) : V("", !0)
30121
30132
  ], 2));
30122
30133
  }
30123
30134
  }), PP = {
@@ -30138,13 +30149,13 @@ const ge = /* @__PURE__ */ ne({
30138
30149
  function d(i) {
30139
30150
  return i == null ? "—" : typeof i == "boolean" ? i ? v("Да") : v("Нет") : i === 0 ? v("Нет") : i === 1 ? v("Да") : typeof i == "object" ? JSON.stringify(i) : String(i);
30140
30151
  }
30141
- return (i, s) => l.value.length > 0 ? (c(), z(n(ix), {
30152
+ return (i, s) => l.value.length > 0 ? (c(), H(n(ix), {
30142
30153
  key: 0,
30143
30154
  direction: "vertical",
30144
30155
  columns: 1
30145
30156
  }, {
30146
30157
  default: x(() => [
30147
- (c(!0), h(X, null, ee(l.value, ([r, p]) => (c(), z(n(lx), {
30158
+ (c(!0), h(X, null, ee(l.value, ([r, p]) => (c(), H(n(lx), {
30148
30159
  key: r,
30149
30160
  label: r
30150
30161
  }, {
@@ -30211,7 +30222,7 @@ const ge = /* @__PURE__ */ ne({
30211
30222
  };
30212
30223
  }
30213
30224
  return (r, p) => (c(), h("div", FP, [
30214
- a.label ? (c(), h("span", jP, y(a.label), 1)) : H("", !0),
30225
+ a.label ? (c(), h("span", jP, y(a.label), 1)) : V("", !0),
30215
30226
  l.value.length === 0 ? (c(), h("p", DP, y(a.placeholder), 1)) : a.layout === "columns" ? (c(), h("table", BP, [
30216
30227
  u("thead", null, [
30217
30228
  u("tr", null, [
@@ -30227,7 +30238,7 @@ const ge = /* @__PURE__ */ ne({
30227
30238
  (c(!0), h(X, null, ee(a.entries, (g) => (c(), h("td", {
30228
30239
  key: g.name
30229
30240
  }, [
30230
- (c(), z($e(i(g.type) || "span"), Qn({ ref_for: !0 }, s(g, m)), null, 16))
30241
+ (c(), H($e(i(g.type) || "span"), Qn({ ref_for: !0 }, s(g, m)), null, 16))
30231
30242
  ]))), 128))
30232
30243
  ]))), 128))
30233
30244
  ])
@@ -30243,7 +30254,7 @@ const ge = /* @__PURE__ */ ne({
30243
30254
  }, [
30244
30255
  u("dt", null, y(d(g)), 1),
30245
30256
  u("dd", null, [
30246
- (c(), z($e(i(g.type) || "span"), Qn({ ref_for: !0 }, s(g, m)), null, 16))
30257
+ (c(), H($e(i(g.type) || "span"), Qn({ ref_for: !0 }, s(g, m)), null, 16))
30247
30258
  ])
30248
30259
  ], 64))), 128))
30249
30260
  ])
@@ -30253,7 +30264,7 @@ const ge = /* @__PURE__ */ ne({
30253
30264
  key: k,
30254
30265
  class: "admin-repeatable__chip"
30255
30266
  }, [
30256
- (c(!0), h(X, null, ee(a.entries, (g) => (c(), z($e(i(g.type) || "span"), Qn({
30267
+ (c(!0), h(X, null, ee(a.entries, (g) => (c(), H($e(i(g.type) || "span"), Qn({
30257
30268
  key: g.name,
30258
30269
  ref_for: !0
30259
30270
  }, s(g, m)), null, 16))), 128))
@@ -30317,11 +30328,11 @@ function cj(a, t = {}) {
30317
30328
  baseURL: a.apiUrl,
30318
30329
  csrfToken: a.csrf
30319
30330
  });
30320
- NI(d);
30321
- const i = Bw(Nb), s = Rw();
30331
+ XI(d);
30332
+ const i = Rw(Nb), s = $w();
30322
30333
  i.use(s);
30323
30334
  const r = a.brand ?? {};
30324
- i.provide(QI, r), GP(r.favicon), Qe().hydrate(a), co().hydrate(a), pI().hydrate(a), P9().hydrate(a), W2().hydrate(a), qP(), Xz(), ZP();
30335
+ i.provide(ew, r), GP(r.favicon), Qe().hydrate(a), co().hydrate(a), pI().hydrate(a), P9().hydrate(a), W2().hydrate(a), qP(), Xz(), ZP();
30325
30336
  const p = hH({
30326
30337
  base: l,
30327
30338
  history: t.router?.history ?? UI(l),
@@ -30337,7 +30348,7 @@ function cj(a, t = {}) {
30337
30348
  resourceCreate: o.resourceCreate ?? PI,
30338
30349
  resourceEdit: o.resourceEdit ?? PI,
30339
30350
  resourceView: o.resourceView ?? Jq,
30340
- dashboard: o.dashboard ?? nw,
30351
+ dashboard: o.dashboard ?? ow,
30341
30352
  settings: o.settings ?? wC,
30342
30353
  screen: o.screen ?? FC
30343
30354
  },
@@ -30520,10 +30531,10 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30520
30531
  if (Z < 60) return `${Z} мин назад`;
30521
30532
  const U = Math.floor(Z / 60);
30522
30533
  if (U < 24) return `${U} ч назад`;
30523
- const V = Math.floor(U / 24);
30524
- return V < 7 ? `${V} д назад` : f.toLocaleDateString("ru-RU");
30534
+ const z = Math.floor(U / 24);
30535
+ return z < 7 ? `${z} д назад` : f.toLocaleDateString("ru-RU");
30525
30536
  }
30526
- return (L, f) => (c(), z(n(rx), {
30537
+ return (L, f) => (c(), H(n(rx), {
30527
30538
  "model-value": a.open,
30528
30539
  side: "right",
30529
30540
  width: "400px",
@@ -30534,9 +30545,9 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30534
30545
  u("div", YP, [
30535
30546
  u("h2", QP, [
30536
30547
  D(y(n(v)("Уведомления")) + " ", 1),
30537
- n(d).unreadCount > 0 ? (c(), h("span", eF, " (" + y(n(d).unreadCount) + ") ", 1)) : H("", !0)
30548
+ n(d).unreadCount > 0 ? (c(), h("span", eF, " (" + y(n(d).unreadCount) + ") ", 1)) : V("", !0)
30538
30549
  ]),
30539
- n(d).unreadCount > 0 ? (c(), z(n(oe), {
30550
+ n(d).unreadCount > 0 ? (c(), H(n(oe), {
30540
30551
  key: 0,
30541
30552
  variant: "ghost",
30542
30553
  size: "sm",
@@ -30546,11 +30557,11 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30546
30557
  D(y(n(v)("Прочитать все")), 1)
30547
30558
  ]),
30548
30559
  _: 1
30549
- })) : H("", !0)
30560
+ })) : V("", !0)
30550
30561
  ])
30551
30562
  ]),
30552
30563
  default: x(() => [
30553
- w(n(EI), {
30564
+ w(n(ZI), {
30554
30565
  "model-value": s.value,
30555
30566
  "onUpdate:modelValue": r
30556
30567
  }, {
@@ -30566,7 +30577,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30566
30577
  f[0] || (f[0] = D(" Непрочитанные", -1)),
30567
30578
  n(d).unreadCount > 0 ? (c(), h(X, { key: 0 }, [
30568
30579
  D(" (" + y(n(d).unreadCount) + ") ", 1)
30569
- ], 64)) : H("", !0)
30580
+ ], 64)) : V("", !0)
30570
30581
  ]),
30571
30582
  _: 1
30572
30583
  }),
@@ -30578,13 +30589,13 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30578
30589
  })
30579
30590
  ]),
30580
30591
  default: x(() => [
30581
- (c(), h(X, null, ee(["all", "unread", "read"], (S) => w(n(ZI), {
30592
+ (c(), h(X, null, ee(["all", "unread", "read"], (S) => w(n(WI), {
30582
30593
  key: S,
30583
30594
  value: S
30584
30595
  }, {
30585
30596
  default: x(() => [
30586
30597
  u("ul", aF, [
30587
- n(d).loading ? (c(), h("li", tF, y(n(v)("Загрузка…")), 1)) : n(d).items.length === 0 ? (c(), h("li", nF, y(n(v)("Нет уведомлений")), 1)) : H("", !0),
30598
+ n(d).loading ? (c(), h("li", tF, y(n(v)("Загрузка…")), 1)) : n(d).items.length === 0 ? (c(), h("li", nF, y(n(v)("Нет уведомлений")), 1)) : V("", !0),
30588
30599
  (c(!0), h(X, null, ee(n(d).items, (Z) => (c(), h("li", {
30589
30600
  key: Z.id,
30590
30601
  class: fe([
@@ -30603,7 +30614,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30603
30614
  Z.read_at ? (c(), h("span", dF, y(b(Z)), 1)) : (c(), h("strong", rF, y(b(Z)), 1)),
30604
30615
  u("span", sF, y(I(Z.created_at)), 1)
30605
30616
  ]),
30606
- C(Z) ? (c(), h("p", hF, y(C(Z)), 1)) : H("", !0)
30617
+ C(Z) ? (c(), h("p", hF, y(C(Z)), 1)) : V("", !0)
30607
30618
  ]),
30608
30619
  u("button", {
30609
30620
  type: "button",
@@ -30665,8 +30676,8 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30665
30676
  p.value = U, U.length > 0 && l("file-uploaded", U[0].file);
30666
30677
  }
30667
30678
  const k = A({});
30668
- function g(U, V) {
30669
- k.value[U] = V === null || V === "" ? null : String(V);
30679
+ function g(U, z) {
30680
+ k.value[U] = z === null || z === "" ? null : String(z);
30670
30681
  }
30671
30682
  function b() {
30672
30683
  return o.headers.map((U) => ({
@@ -30698,7 +30709,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30698
30709
  function Z() {
30699
30710
  l("cancel");
30700
30711
  }
30701
- return (U, V) => (c(), h("section", yF, [
30712
+ return (U, z) => (c(), h("section", yF, [
30702
30713
  u("header", pF, [
30703
30714
  u("div", kF, [
30704
30715
  u("h1", mF, y(n(v)(a.title)), 1)
@@ -30719,7 +30730,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30719
30730
  steps: d,
30720
30731
  current: s.value
30721
30732
  }, null, 8, ["current"]),
30722
- s.value === 0 ? (c(), z(n(we), {
30733
+ s.value === 0 ? (c(), H(n(we), {
30723
30734
  key: 0,
30724
30735
  padding: "md",
30725
30736
  class: "admin-import-wizard__card"
@@ -30740,7 +30751,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30740
30751
  }, null, 8, ["model-value"])
30741
30752
  ]),
30742
30753
  _: 1
30743
- })) : s.value === 1 ? (c(), z(n(we), {
30754
+ })) : s.value === 1 ? (c(), H(n(we), {
30744
30755
  key: 1,
30745
30756
  padding: "md",
30746
30757
  class: "admin-import-wizard__card"
@@ -30757,9 +30768,9 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30757
30768
  }, [
30758
30769
  u("div", wF, [
30759
30770
  u("strong", null, y(T.label), 1),
30760
- T.sample ? (c(), h("span", xF, " «" + y(T.sample) + "» ", 1)) : H("", !0)
30771
+ T.sample ? (c(), h("span", xF, " «" + y(T.sample) + "» ", 1)) : V("", !0)
30761
30772
  ]),
30762
- V[2] || (V[2] = u("span", { class: "admin-import-wizard__map-arrow" }, "→", -1)),
30773
+ z[2] || (z[2] = u("span", { class: "admin-import-wizard__map-arrow" }, "→", -1)),
30763
30774
  w(n(S9), {
30764
30775
  "model-value": k.value[T.key] ?? "",
30765
30776
  options: S.value,
@@ -30770,7 +30781,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30770
30781
  ]))
30771
30782
  ]),
30772
30783
  _: 1
30773
- })) : s.value === 2 ? (c(), z(n(we), {
30784
+ })) : s.value === 2 ? (c(), H(n(we), {
30774
30785
  key: 2,
30775
30786
  padding: "md",
30776
30787
  class: "admin-import-wizard__card"
@@ -30780,7 +30791,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30780
30791
  u("h3", null, y(n(v)("3. Предпросмотр")), 1),
30781
30792
  u("p", null, "Первые " + y(a.preview.length) + " строк перед импортом", 1)
30782
30793
  ]),
30783
- a.preview.some((T) => T.__warning) ? (c(), z(n(Ye), {
30794
+ a.preview.some((T) => T.__warning) ? (c(), H(n(Ye), {
30784
30795
  key: 0,
30785
30796
  variant: "warning",
30786
30797
  style: { "margin-bottom": "var(--uid-space-md)" }
@@ -30789,15 +30800,15 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30789
30800
  D(y(n(v)("Часть строк имеет предупреждения — проверьте перед импортом.")), 1)
30790
30801
  ]),
30791
30802
  _: 1
30792
- })) : H("", !0),
30793
- a.previewColumns.length > 0 ? (c(), z(n(Co), {
30803
+ })) : V("", !0),
30804
+ a.previewColumns.length > 0 ? (c(), H(n(Co), {
30794
30805
  key: 1,
30795
30806
  columns: a.previewColumns,
30796
30807
  data: a.preview
30797
30808
  }, null, 8, ["columns", "data"])) : (c(), h("div", LF, y(n(v)("Host не передал previewColumns/preview.")), 1))
30798
30809
  ]),
30799
30810
  _: 1
30800
- })) : (c(), z(n(we), {
30811
+ })) : (c(), H(n(we), {
30801
30812
  key: 3,
30802
30813
  padding: "md",
30803
30814
  class: "admin-import-wizard__card"
@@ -30807,11 +30818,11 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30807
30818
  u("h3", null, y(n(v)("4. Импорт")), 1)
30808
30819
  ]),
30809
30820
  a.progress ? (c(), h(X, { key: 1 }, [
30810
- a.progress.total > 0 ? (c(), z(n(hx), {
30821
+ a.progress.total > 0 ? (c(), H(n(hx), {
30811
30822
  key: 0,
30812
30823
  "model-value": a.progress.created + a.progress.updated + a.progress.errors,
30813
30824
  max: a.progress.total
30814
- }, null, 8, ["model-value", "max"])) : H("", !0),
30825
+ }, null, 8, ["model-value", "max"])) : V("", !0),
30815
30826
  u("div", SF, [
30816
30827
  w(n(ic), {
30817
30828
  title: n(v)("Создано"),
@@ -30834,28 +30845,28 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30834
30845
  _: 1
30835
30846
  })),
30836
30847
  u("footer", qF, [
30837
- L.value ? (c(), z(n(oe), {
30848
+ L.value ? (c(), H(n(oe), {
30838
30849
  key: 0,
30839
30850
  variant: "ghost",
30840
- onClick: V[0] || (V[0] = (T) => r(s.value - 1))
30851
+ onClick: z[0] || (z[0] = (T) => r(s.value - 1))
30841
30852
  }, {
30842
30853
  default: x(() => [
30843
30854
  D(y(n(v)("Назад")), 1)
30844
30855
  ]),
30845
30856
  _: 1
30846
- })) : H("", !0),
30847
- V[3] || (V[3] = u("span", { style: { flex: "1" } }, null, -1)),
30848
- s.value === 0 ? (c(), z(n(oe), {
30857
+ })) : V("", !0),
30858
+ z[3] || (z[3] = u("span", { style: { flex: "1" } }, null, -1)),
30859
+ s.value === 0 ? (c(), H(n(oe), {
30849
30860
  key: 1,
30850
30861
  variant: "primary",
30851
30862
  disabled: !f.value,
30852
- onClick: V[1] || (V[1] = (T) => r(1))
30863
+ onClick: z[1] || (z[1] = (T) => r(1))
30853
30864
  }, {
30854
30865
  default: x(() => [
30855
30866
  D(y(n(v)("Далее")), 1)
30856
30867
  ]),
30857
30868
  _: 1
30858
- }, 8, ["disabled"])) : s.value === 1 ? (c(), z(n(oe), {
30869
+ }, 8, ["disabled"])) : s.value === 1 ? (c(), H(n(oe), {
30859
30870
  key: 2,
30860
30871
  variant: "primary",
30861
30872
  disabled: !f.value,
@@ -30865,7 +30876,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30865
30876
  D(y(n(v)("Подтвердить mapping")), 1)
30866
30877
  ]),
30867
30878
  _: 1
30868
- }, 8, ["disabled"])) : s.value === 2 ? (c(), z(n(oe), {
30879
+ }, 8, ["disabled"])) : s.value === 2 ? (c(), H(n(oe), {
30869
30880
  key: 3,
30870
30881
  variant: "primary",
30871
30882
  onClick: I
@@ -30874,7 +30885,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30874
30885
  D(y(n(v)("Запустить импорт")), 1)
30875
30886
  ]),
30876
30887
  _: 1
30877
- })) : H("", !0)
30888
+ })) : V("", !0)
30878
30889
  ])
30879
30890
  ]));
30880
30891
  }
@@ -30958,7 +30969,7 @@ const YP = { class: "admin-notifs__hd" }, QP = { class: "admin-notifs__title" },
30958
30969
  }, [
30959
30970
  u("h2", zF, y(r), 1),
30960
30971
  u("div", HF, [
30961
- (c(!0), h(X, null, ee(s, (p) => (c(), z(n(we), {
30972
+ (c(!0), h(X, null, ee(s, (p) => (c(), H(n(we), {
30962
30973
  key: p.type + p.title,
30963
30974
  padding: "md",
30964
30975
  class: "admin-gallery__card"
@@ -30988,14 +30999,14 @@ export {
30988
30999
  Qx as AdminSidebar,
30989
31000
  Vx as AdminTopBar,
30990
31001
  We as ApiError,
30991
- QI as BRAND_KEY,
31002
+ ew as BRAND_KEY,
30992
31003
  zP as BadgeEntry,
30993
- vw as BarChartWidget,
31004
+ fw as BarChartWidget,
30994
31005
  cc as CheckboxField,
30995
31006
  rP as ColumnsLayout,
30996
- nw as DashboardPage,
31007
+ ow as DashboardPage,
30997
31008
  D1 as DateField,
30998
- fw as DonutChartWidget,
31009
+ gw as DonutChartWidget,
30999
31010
  hj as FieldGalleryPage,
31000
31011
  vI as FieldRenderer,
31001
31012
  Lx as ForbiddenError,
@@ -31009,7 +31020,7 @@ export {
31009
31020
  uq as InfolistRenderer,
31010
31021
  eI as KeyValueEntry,
31011
31022
  bo as LayoutRenderer,
31012
- KI as LocaleSwitcher,
31023
+ JI as LocaleSwitcher,
31013
31024
  $C as LoginForm,
31014
31025
  YC as LoginPage,
31015
31026
  Bz as MarkdownWidget,
@@ -31034,16 +31045,16 @@ export {
31034
31045
  Y9 as TextAreaField,
31035
31046
  ge as TextEntry,
31036
31047
  m1 as TextField,
31037
- XI as ThemeToggle,
31048
+ KI as ThemeToggle,
31038
31049
  OC as TwoFactorForm,
31039
- JI as UnauthenticatedError,
31050
+ YI as UnauthenticatedError,
31040
31051
  QS as UnknownEntry,
31041
- iw as UnknownField,
31052
+ lw as UnknownField,
31042
31053
  ij as UnknownScreenPage,
31043
- aw as UnknownWidget,
31054
+ tw as UnknownWidget,
31044
31055
  Sx as UserMenu,
31045
31056
  G2 as ValidationError,
31046
- tw as WidgetRenderer,
31057
+ nw as WidgetRenderer,
31047
31058
  iH as buildRoutesFromManifest,
31048
31059
  fx as clearAdminClient,
31049
31060
  nj as clearInfolistRegistry,
@@ -31055,7 +31066,7 @@ export {
31055
31066
  lH as createAuthGuard,
31056
31067
  rH as createTitleGuard,
31057
31068
  Me as getAdminClient,
31058
- cw as getField,
31069
+ iw as getField,
31059
31070
  tI as getInfolistEntry,
31060
31071
  CI as getLayout,
31061
31072
  Kb as getWidget,
@@ -31072,7 +31083,7 @@ export {
31072
31083
  Yb as listWidgets,
31073
31084
  lj as loadBootstrap,
31074
31085
  V9 as provideFormState,
31075
- ow as provideRecord,
31086
+ cw as provideRecord,
31076
31087
  rj as readCsrfFromMeta,
31077
31088
  JP as readInlineBootstrap,
31078
31089
  qP as registerBuiltinComponents,
@@ -31085,8 +31096,8 @@ export {
31085
31096
  CC as registerLayout,
31086
31097
  Xb as registerWidget,
31087
31098
  NF as registerWidgets,
31088
- NI as setAdminClient,
31089
- WI as tRaw,
31099
+ XI as setAdminClient,
31100
+ GI as tRaw,
31090
31101
  LI as toApiError,
31091
31102
  v as trSafe,
31092
31103
  ux as tryUseFormState,
@@ -31101,7 +31112,7 @@ export {
31101
31112
  P9 as useNotificationsStore,
31102
31113
  XF as useRecord,
31103
31114
  fI as useResourceFormStore,
31104
- lw as useResourceIndexStore,
31115
+ rw as useResourceIndexStore,
31105
31116
  pI as useThemeStore
31106
31117
  };
31107
31118
  //# sourceMappingURL=index.mjs.map