@dskripchenko/laravel-admin 1.21.2 → 1.21.4
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/composables/useShellVisibility.d.ts +28 -0
- package/dist/composables/useShellVisibility.test.d.ts +1 -0
- package/dist/{formState-DeRZBwWH.js → formState-DC25j4xe.js} +2 -2
- package/dist/{formState-DeRZBwWH.js.map → formState-DC25j4xe.js.map} +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +881 -871
- package/dist/index.mjs.map +1 -1
- package/dist/quill.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tinymce.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { defineStore as e1, createPinia as Bw } from "pinia";
|
|
|
3
3
|
import { useRouter as Ze, useRoute as l1, createWebHistory as UI, createRouter as Rw } from "vue-router";
|
|
4
4
|
import { UidIcon as ae, UidMenu as je, UidMenuItem as De, UidMenuSeparator as $w, UidAvatar as dI, UidSidebarItem as Tw, UidSidebar as Uw, UidSkeleton as Re, UidSidebarGroup as Ow, UidModal as Ew, UidSpinner as Zw, UidSidebarLayout as Ww, useToast as ec, provideLocale as Gw, en as Nw, ru as Xw, UidToastProvider as Kw, UidAlert as Ye, UidInput as Le, UidButton as oe, UidCard as we, UidCheckbox as OI, UidErrorState as sI, UidEmptyState as hI, UidTreeView as Jw, UidTable as Co, UidPagination as Yw, UidGrid as uI, UidStack as Qw, UidBadge as yI, UidSelect as S9, UidStat as ic, UidGauge as ex, UidFormField as Z2, UidTextarea as ax, UidNumberInput as tx, UidDatePicker as nx, usePopover as ox, UidTabs as EI, UidTabPanel as ZI, UidTab as lc, UidDescriptionList as cx, UidDescriptionItem as ix, UidDrawer as lx, UidStepper as rx, UidFileUpload as dx, UidProgress as sx } from "@dskripchenko/ui";
|
|
5
5
|
import { t as v, u as W2 } from "./i18n-CoRTQbVV.js";
|
|
6
|
-
import { t as hx, p as V9, u as Pe } from "./formState-
|
|
6
|
+
import { t as hx, p as V9, u as Pe } from "./formState-DC25j4xe.js";
|
|
7
7
|
import ux from "axios";
|
|
8
8
|
import { DskWysiwyg as yx } from "@dskripchenko/wysiwyg";
|
|
9
9
|
import "@dskripchenko/wysiwyg/style.css";
|
|
@@ -21033,7 +21033,13 @@ const pe = {
|
|
|
21033
21033
|
function B9() {
|
|
21034
21034
|
return rI(YI, {});
|
|
21035
21035
|
}
|
|
21036
|
-
|
|
21036
|
+
function Zb(a, t) {
|
|
21037
|
+
const o = M(
|
|
21038
|
+
() => a.name === "admin.notFound" && t.value
|
|
21039
|
+
), l = M(() => !(a.meta?.fullscreen === !0 || a.meta?.kind === "auth" || o.value));
|
|
21040
|
+
return { settledNotFound: o, useShell: l };
|
|
21041
|
+
}
|
|
21042
|
+
const Wb = { class: "admin-page-host" }, Gb = /* @__PURE__ */ ne({
|
|
21037
21043
|
__name: "AdminApp",
|
|
21038
21044
|
setup(a) {
|
|
21039
21045
|
const t = l1(), o = Qe(), l = B9(), d = co();
|
|
@@ -21050,7 +21056,7 @@ const Zb = { class: "admin-page-host" }, Wb = /* @__PURE__ */ ne({
|
|
|
21050
21056
|
pe.error(v("Не удалось выйти из режима импертонации."));
|
|
21051
21057
|
}
|
|
21052
21058
|
}
|
|
21053
|
-
const r =
|
|
21059
|
+
const r = JI(), { useShell: p } = Zb(t, r), m = r, k = A(!1);
|
|
21054
21060
|
Ie(m, (b) => {
|
|
21055
21061
|
b && Je(() => k.value = !0);
|
|
21056
21062
|
}, { immediate: !0 });
|
|
@@ -21059,14 +21065,14 @@ const Zb = { class: "admin-page-host" }, Wb = /* @__PURE__ */ ne({
|
|
|
21059
21065
|
const I = H9("router-view");
|
|
21060
21066
|
return c(), h(X, null, [
|
|
21061
21067
|
w(Mb),
|
|
21062
|
-
|
|
21068
|
+
n(p) ? (c(), z(pb, {
|
|
21063
21069
|
key: 0,
|
|
21064
21070
|
impersonation: i.value,
|
|
21065
21071
|
brand: n(l),
|
|
21066
21072
|
onExitImpersonation: s
|
|
21067
21073
|
}, {
|
|
21068
21074
|
default: x(() => [
|
|
21069
|
-
u("div",
|
|
21075
|
+
u("div", Wb, [
|
|
21070
21076
|
w(I, null, {
|
|
21071
21077
|
default: x(({ Component: L }) => [
|
|
21072
21078
|
w(_9, { name: g.value }, {
|
|
@@ -21240,7 +21246,7 @@ function R9() {
|
|
|
21240
21246
|
}
|
|
21241
21247
|
};
|
|
21242
21248
|
}
|
|
21243
|
-
const _o = R9(),
|
|
21249
|
+
const _o = R9(), Nb = _o.register, Xb = _o.get, Kb = _o.has, Jb = _o.list, WF = _o.clear, GF = _o.registerBundle, ew = /* @__PURE__ */ ne({
|
|
21244
21250
|
__name: "UnknownWidget",
|
|
21245
21251
|
props: {
|
|
21246
21252
|
type: {}
|
|
@@ -21264,7 +21270,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21264
21270
|
node: {}
|
|
21265
21271
|
},
|
|
21266
21272
|
setup(a) {
|
|
21267
|
-
const t = a, o = M(() =>
|
|
21273
|
+
const t = a, o = M(() => Xb(t.node.type)), l = M(() => {
|
|
21268
21274
|
const {
|
|
21269
21275
|
type: d,
|
|
21270
21276
|
span: i,
|
|
@@ -21285,7 +21291,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21285
21291
|
type: a.node.type
|
|
21286
21292
|
}, null, 8, ["type"]));
|
|
21287
21293
|
}
|
|
21288
|
-
}),
|
|
21294
|
+
}), Yb = ["aria-label"], Qb = ["aria-label", "title"], eL = ["aria-label", "title"], aL = ["aria-label", "title"], tL = /* @__PURE__ */ ne({
|
|
21289
21295
|
__name: "WidgetActionsOverlay",
|
|
21290
21296
|
emits: ["configure", "remove"],
|
|
21291
21297
|
setup(a) {
|
|
@@ -21305,7 +21311,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21305
21311
|
icon: n(vo),
|
|
21306
21312
|
size: 14
|
|
21307
21313
|
}, null, 8, ["icon"])
|
|
21308
|
-
], 8,
|
|
21314
|
+
], 8, Qb),
|
|
21309
21315
|
u("button", {
|
|
21310
21316
|
type: "button",
|
|
21311
21317
|
class: "admin-widget-actions__btn",
|
|
@@ -21317,7 +21323,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21317
21323
|
icon: n(Io),
|
|
21318
21324
|
size: 14
|
|
21319
21325
|
}, null, 8, ["icon"])
|
|
21320
|
-
], 8,
|
|
21326
|
+
], 8, eL),
|
|
21321
21327
|
u("button", {
|
|
21322
21328
|
type: "button",
|
|
21323
21329
|
class: "admin-widget-actions__btn admin-widget-actions__btn--danger",
|
|
@@ -21329,49 +21335,49 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21329
21335
|
icon: n(He),
|
|
21330
21336
|
size: 14
|
|
21331
21337
|
}, null, 8, ["icon"])
|
|
21332
|
-
], 8,
|
|
21333
|
-
], 8,
|
|
21338
|
+
], 8, aL)
|
|
21339
|
+
], 8, Yb));
|
|
21334
21340
|
}
|
|
21335
|
-
}),
|
|
21341
|
+
}), nL = {
|
|
21336
21342
|
key: 0,
|
|
21337
21343
|
class: "admin-dialog-root",
|
|
21338
21344
|
role: "dialog",
|
|
21339
21345
|
"aria-modal": "true",
|
|
21340
21346
|
"aria-labelledby": "widget-config-title"
|
|
21341
|
-
},
|
|
21347
|
+
}, oL = { class: "admin-dialog" }, cL = { class: "admin-dialog__hd" }, iL = {
|
|
21342
21348
|
id: "widget-config-title",
|
|
21343
21349
|
class: "admin-dialog__title"
|
|
21344
|
-
},
|
|
21350
|
+
}, lL = ["aria-label"], rL = { class: "admin-dialog__body" }, dL = {
|
|
21345
21351
|
key: 0,
|
|
21346
21352
|
class: "admin-dialog__field"
|
|
21347
|
-
},
|
|
21353
|
+
}, sL = { class: "admin-dialog__label" }, hL = {
|
|
21348
21354
|
key: 0,
|
|
21349
21355
|
class: "admin-dialog__empty"
|
|
21350
|
-
},
|
|
21356
|
+
}, uL = {
|
|
21351
21357
|
key: 1,
|
|
21352
21358
|
class: "admin-dialog__restore-list"
|
|
21353
|
-
},
|
|
21359
|
+
}, yL = ["data-testid", "onClick"], pL = { class: "admin-dialog__type-name" }, kL = { class: "admin-dialog__type-help" }, mL = {
|
|
21354
21360
|
key: 1,
|
|
21355
21361
|
class: "admin-dialog__field"
|
|
21356
|
-
},
|
|
21362
|
+
}, vL = {
|
|
21357
21363
|
key: 0,
|
|
21358
21364
|
class: "admin-dialog__empty"
|
|
21359
|
-
},
|
|
21365
|
+
}, fL = {
|
|
21360
21366
|
key: 1,
|
|
21361
21367
|
class: "admin-dialog__type-grid"
|
|
21362
|
-
},
|
|
21368
|
+
}, gL = ["onClick"], ML = { class: "admin-dialog__type-name" }, IL = { class: "admin-dialog__type-help" }, wL = {
|
|
21363
21369
|
key: 2,
|
|
21364
21370
|
class: "admin-dialog__field"
|
|
21365
|
-
},
|
|
21371
|
+
}, xL = { class: "admin-dialog__label" }, bL = { class: "admin-dialog__readonly" }, LL = { class: "admin-dialog__field" }, CL = { class: "admin-dialog__field" }, _L = { class: "admin-dialog__label" }, SL = {
|
|
21366
21372
|
key: 3,
|
|
21367
21373
|
class: "admin-dialog__field"
|
|
21368
|
-
},
|
|
21374
|
+
}, qL = { class: "admin-dialog__label" }, AL = { class: "admin-dialog__field" }, zL = { class: "admin-dialog__label" }, HL = { class: "admin-dialog__field" }, VL = { class: "admin-dialog__label" }, PL = {
|
|
21369
21375
|
key: 5,
|
|
21370
21376
|
class: "admin-dialog__field"
|
|
21371
|
-
},
|
|
21377
|
+
}, FL = { class: "admin-dialog__label" }, jL = { class: "admin-dialog__field" }, DL = { class: "admin-dialog__label" }, BL = { class: "admin-dialog__field" }, RL = { class: "admin-dialog__label" }, $L = { class: "admin-dialog__field" }, TL = { class: "admin-dialog__field" }, UL = { class: "admin-dialog__ft" }, OL = {
|
|
21372
21378
|
key: 0,
|
|
21373
21379
|
class: "admin-dialog__hint"
|
|
21374
|
-
},
|
|
21380
|
+
}, EL = /* @__PURE__ */ ne({
|
|
21375
21381
|
__name: "WidgetConfigDialog",
|
|
21376
21382
|
props: {
|
|
21377
21383
|
open: { type: Boolean },
|
|
@@ -21386,7 +21392,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21386
21392
|
function d(B) {
|
|
21387
21393
|
l("restore", B), l("close");
|
|
21388
21394
|
}
|
|
21389
|
-
const i = M(() =>
|
|
21395
|
+
const i = M(() => Jb()), s = A(""), r = A(""), p = A("6"), m = A(`# Новая заметка
|
|
21390
21396
|
|
|
21391
21397
|
Текст…`), k = A("LABEL"), g = A("0"), b = A("50"), C = A(v("Янв, Фев, Мар, Апр")), I = A("10, 20, 15, 30"), L = A(""), f = A("5");
|
|
21392
21398
|
Ie(
|
|
@@ -21467,14 +21473,14 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21467
21473
|
return (B, F) => (c(), z(lI, { to: "body" }, [
|
|
21468
21474
|
w(_9, { name: "admin-dialog" }, {
|
|
21469
21475
|
default: x(() => [
|
|
21470
|
-
a.open ? (c(), h("div",
|
|
21476
|
+
a.open ? (c(), h("div", nL, [
|
|
21471
21477
|
u("div", {
|
|
21472
21478
|
class: "admin-dialog-root__backdrop",
|
|
21473
21479
|
onClick: P
|
|
21474
21480
|
}),
|
|
21475
|
-
u("div",
|
|
21476
|
-
u("header",
|
|
21477
|
-
u("h2",
|
|
21481
|
+
u("div", oL, [
|
|
21482
|
+
u("header", cL, [
|
|
21483
|
+
u("h2", iL, y(a.mode === "add" ? n(v)("Добавить виджет") : n(v)("Настроить виджет")), 1),
|
|
21478
21484
|
u("button", {
|
|
21479
21485
|
type: "button",
|
|
21480
21486
|
class: "admin-dialog__close",
|
|
@@ -21485,12 +21491,12 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21485
21491
|
icon: n(He),
|
|
21486
21492
|
size: 16
|
|
21487
21493
|
}, null, 8, ["icon"])
|
|
21488
|
-
], 8,
|
|
21494
|
+
], 8, lL)
|
|
21489
21495
|
]),
|
|
21490
|
-
u("div",
|
|
21491
|
-
a.mode === "add" ? (c(), h("div",
|
|
21492
|
-
u("label",
|
|
21493
|
-
a.restorable.length === 0 ? (c(), h("p",
|
|
21496
|
+
u("div", rL, [
|
|
21497
|
+
a.mode === "add" ? (c(), h("div", dL, [
|
|
21498
|
+
u("label", sL, y(n(v)("Скрытые виджеты")), 1),
|
|
21499
|
+
a.restorable.length === 0 ? (c(), h("p", hL, y(n(v)("Нечего добавлять — все виджеты дашборда уже показаны.")), 1)) : (c(), h("div", uL, [
|
|
21494
21500
|
(c(!0), h(X, null, ee(a.restorable, (O) => (c(), h("button", {
|
|
21495
21501
|
key: O.slug,
|
|
21496
21502
|
type: "button",
|
|
@@ -21498,17 +21504,17 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21498
21504
|
"data-testid": `restore-widget-${O.slug}`,
|
|
21499
21505
|
onClick: (G) => d(O.slug)
|
|
21500
21506
|
}, [
|
|
21501
|
-
u("span",
|
|
21502
|
-
u("span",
|
|
21503
|
-
], 8,
|
|
21507
|
+
u("span", pL, y(O.title), 1),
|
|
21508
|
+
u("span", kL, y(n(v)("Вернуть на дашборд")), 1)
|
|
21509
|
+
], 8, yL))), 128))
|
|
21504
21510
|
]))
|
|
21505
21511
|
])) : H("", !0),
|
|
21506
|
-
a.mode === "add" ? (c(), h("div",
|
|
21512
|
+
a.mode === "add" ? (c(), h("div", mL, [
|
|
21507
21513
|
F[10] || (F[10] = u("label", { class: "admin-dialog__label" }, [
|
|
21508
21514
|
D(" Тип виджета "),
|
|
21509
21515
|
u("span", { class: "admin-dialog__required" }, "*")
|
|
21510
21516
|
], -1)),
|
|
21511
|
-
i.value.length === 0 ? (c(), h("p",
|
|
21517
|
+
i.value.length === 0 ? (c(), h("p", vL, y(n(v)("Нет виджетов для добавления — все доступные типы уже на дашборде")) + " " + y(n(v)("или ни один не зарегистрирован.")), 1)) : (c(), h("div", fL, [
|
|
21512
21518
|
(c(!0), h(X, null, ee(i.value, (O) => (c(), h("button", {
|
|
21513
21519
|
key: O,
|
|
21514
21520
|
type: "button",
|
|
@@ -21518,15 +21524,15 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21518
21524
|
]),
|
|
21519
21525
|
onClick: (G) => s.value = O
|
|
21520
21526
|
}, [
|
|
21521
|
-
u("span",
|
|
21522
|
-
u("span",
|
|
21523
|
-
], 10,
|
|
21527
|
+
u("span", ML, y(Z[O] ?? O), 1),
|
|
21528
|
+
u("span", IL, y(O), 1)
|
|
21529
|
+
], 10, gL))), 128))
|
|
21524
21530
|
]))
|
|
21525
|
-
])) : (c(), h("div",
|
|
21526
|
-
u("label",
|
|
21527
|
-
u("div",
|
|
21531
|
+
])) : (c(), h("div", wL, [
|
|
21532
|
+
u("label", xL, y(n(v)("Тип")), 1),
|
|
21533
|
+
u("div", bL, y(s.value || "unknown"), 1)
|
|
21528
21534
|
])),
|
|
21529
|
-
u("div",
|
|
21535
|
+
u("div", LL, [
|
|
21530
21536
|
F[11] || (F[11] = u("label", { class: "admin-dialog__label" }, [
|
|
21531
21537
|
D(" Заголовок "),
|
|
21532
21538
|
u("span", { class: "admin-dialog__required" }, "*")
|
|
@@ -21537,16 +21543,16 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21537
21543
|
placeholder: n(v)("Название виджета")
|
|
21538
21544
|
}, null, 8, ["modelValue", "placeholder"])
|
|
21539
21545
|
]),
|
|
21540
|
-
u("div",
|
|
21541
|
-
u("label",
|
|
21546
|
+
u("div", CL, [
|
|
21547
|
+
u("label", _L, y(n(v)("Ширина (1..12)")), 1),
|
|
21542
21548
|
w(n(Le), {
|
|
21543
21549
|
modelValue: p.value,
|
|
21544
21550
|
"onUpdate:modelValue": F[1] || (F[1] = (O) => p.value = O),
|
|
21545
21551
|
type: "number"
|
|
21546
21552
|
}, null, 8, ["modelValue"])
|
|
21547
21553
|
]),
|
|
21548
|
-
U(s.value) === "markdown" ? (c(), h("div",
|
|
21549
|
-
u("label",
|
|
21554
|
+
U(s.value) === "markdown" ? (c(), h("div", SL, [
|
|
21555
|
+
u("label", qL, y(n(v)("Markdown содержимое")), 1),
|
|
21550
21556
|
s1(u("textarea", {
|
|
21551
21557
|
"onUpdate:modelValue": F[2] || (F[2] = (O) => m.value = O),
|
|
21552
21558
|
class: "admin-dialog__textarea",
|
|
@@ -21555,38 +21561,38 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21555
21561
|
[q1, m.value]
|
|
21556
21562
|
])
|
|
21557
21563
|
])) : U(s.value) === "stat" ? (c(), h(X, { key: 4 }, [
|
|
21558
|
-
u("div",
|
|
21559
|
-
u("label",
|
|
21564
|
+
u("div", AL, [
|
|
21565
|
+
u("label", zL, y(n(v)("Метка")), 1),
|
|
21560
21566
|
w(n(Le), {
|
|
21561
21567
|
modelValue: k.value,
|
|
21562
21568
|
"onUpdate:modelValue": F[3] || (F[3] = (O) => k.value = O)
|
|
21563
21569
|
}, null, 8, ["modelValue"])
|
|
21564
21570
|
]),
|
|
21565
|
-
u("div",
|
|
21566
|
-
u("label",
|
|
21571
|
+
u("div", HL, [
|
|
21572
|
+
u("label", VL, y(n(v)("Значение")), 1),
|
|
21567
21573
|
w(n(Le), {
|
|
21568
21574
|
modelValue: g.value,
|
|
21569
21575
|
"onUpdate:modelValue": F[4] || (F[4] = (O) => g.value = O)
|
|
21570
21576
|
}, null, 8, ["modelValue"])
|
|
21571
21577
|
])
|
|
21572
|
-
], 64)) : U(s.value) === "gauge" ? (c(), h("div",
|
|
21573
|
-
u("label",
|
|
21578
|
+
], 64)) : U(s.value) === "gauge" ? (c(), h("div", PL, [
|
|
21579
|
+
u("label", FL, y(n(v)("Значение (0..100)")), 1),
|
|
21574
21580
|
w(n(Le), {
|
|
21575
21581
|
modelValue: b.value,
|
|
21576
21582
|
"onUpdate:modelValue": F[5] || (F[5] = (O) => b.value = O),
|
|
21577
21583
|
type: "number"
|
|
21578
21584
|
}, null, 8, ["modelValue"])
|
|
21579
21585
|
])) : U(s.value) === "chart" ? (c(), h(X, { key: 6 }, [
|
|
21580
|
-
u("div",
|
|
21581
|
-
u("label",
|
|
21586
|
+
u("div", jL, [
|
|
21587
|
+
u("label", DL, y(n(v)("Метки (через запятую)")), 1),
|
|
21582
21588
|
w(n(Le), {
|
|
21583
21589
|
modelValue: C.value,
|
|
21584
21590
|
"onUpdate:modelValue": F[6] || (F[6] = (O) => C.value = O),
|
|
21585
21591
|
placeholder: n(v)("Янв, Фев, Мар")
|
|
21586
21592
|
}, null, 8, ["modelValue", "placeholder"])
|
|
21587
21593
|
]),
|
|
21588
|
-
u("div",
|
|
21589
|
-
u("label",
|
|
21594
|
+
u("div", BL, [
|
|
21595
|
+
u("label", RL, y(n(v)("Значения (через запятую)")), 1),
|
|
21590
21596
|
w(n(Le), {
|
|
21591
21597
|
modelValue: I.value,
|
|
21592
21598
|
"onUpdate:modelValue": F[7] || (F[7] = (O) => I.value = O),
|
|
@@ -21594,7 +21600,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21594
21600
|
}, null, 8, ["modelValue"])
|
|
21595
21601
|
])
|
|
21596
21602
|
], 64)) : U(s.value) === "recent" ? (c(), h(X, { key: 7 }, [
|
|
21597
|
-
u("div",
|
|
21603
|
+
u("div", $L, [
|
|
21598
21604
|
F[12] || (F[12] = u("label", { class: "admin-dialog__label" }, "Resource slug", -1)),
|
|
21599
21605
|
w(n(Le), {
|
|
21600
21606
|
modelValue: L.value,
|
|
@@ -21602,7 +21608,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21602
21608
|
placeholder: "articles"
|
|
21603
21609
|
}, null, 8, ["modelValue"])
|
|
21604
21610
|
]),
|
|
21605
|
-
u("div",
|
|
21611
|
+
u("div", TL, [
|
|
21606
21612
|
F[13] || (F[13] = u("label", { class: "admin-dialog__label" }, "Limit", -1)),
|
|
21607
21613
|
w(n(Le), {
|
|
21608
21614
|
modelValue: f.value,
|
|
@@ -21612,8 +21618,8 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21612
21618
|
])
|
|
21613
21619
|
], 64)) : H("", !0)
|
|
21614
21620
|
]),
|
|
21615
|
-
u("footer",
|
|
21616
|
-
S.value ? H("", !0) : (c(), h("span",
|
|
21621
|
+
u("footer", UL, [
|
|
21622
|
+
S.value ? H("", !0) : (c(), h("span", OL, [...F[14] || (F[14] = [
|
|
21617
21623
|
D(" Заполните ", -1),
|
|
21618
21624
|
u("span", { class: "admin-dialog__required" }, "*", -1),
|
|
21619
21625
|
D("-поля ", -1)
|
|
@@ -21646,10 +21652,10 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21646
21652
|
})
|
|
21647
21653
|
]));
|
|
21648
21654
|
}
|
|
21649
|
-
}),
|
|
21655
|
+
}), ZL = { class: "admin-page admin-dashboard" }, WL = { class: "admin-page__hd" }, GL = { class: "admin-page__title-wrap" }, NL = { class: "admin-page__title" }, XL = {
|
|
21650
21656
|
key: 0,
|
|
21651
21657
|
class: "admin-page__count"
|
|
21652
|
-
},
|
|
21658
|
+
}, KL = { class: "admin-page__actions" }, JL = ["draggable", "onDragstart", "onDragover", "onDrop"], YL = ["aria-label", "onMousedown"], QL = 140, eC = 16, tw = /* @__PURE__ */ ne({
|
|
21653
21659
|
__name: "DashboardPage",
|
|
21654
21660
|
props: {
|
|
21655
21661
|
slug: { default: void 0 },
|
|
@@ -21919,7 +21925,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21919
21925
|
}
|
|
21920
21926
|
function V1(Y) {
|
|
21921
21927
|
if (!Ne.value) return;
|
|
21922
|
-
const ie = p1 / 12, le = Math.round((Y.clientX - Ne.value.startX) / ie), re = Math.max(1, Math.min(12, Ne.value.startSpan + le)), ve =
|
|
21928
|
+
const ie = p1 / 12, le = Math.round((Y.clientX - Ne.value.startX) / ie), re = Math.max(1, Math.min(12, Ne.value.startSpan + le)), ve = QL + eC, be = Math.round((Y.clientY - Ne.value.startY) / ve), Be = Math.max(1, Math.min(6, Ne.value.startRowSpan + be)), P1 = i.draft.find((Z9) => Z9.slug === Ne.value.slug);
|
|
21923
21929
|
if (!P1) return;
|
|
21924
21930
|
const E9 = P1.config?.rowSpan, r1 = {};
|
|
21925
21931
|
P1.size !== re && (r1.size = re), E9 !== Be && (r1.config = { ...P1.config ?? {}, rowSpan: Be }), Object.keys(r1).length > 0 && i.updateWidget(Ne.value.slug, r1);
|
|
@@ -21944,13 +21950,13 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
21944
21950
|
}, ie = new Blob([JSON.stringify(Y, null, 2)], { type: "application/json" }), le = URL.createObjectURL(ie), re = document.createElement("a");
|
|
21945
21951
|
re.href = le, re.download = `dashboard-${m.value ?? "export"}-${U.value}.json`, document.body.appendChild(re), re.click(), re.remove(), URL.revokeObjectURL(le);
|
|
21946
21952
|
}
|
|
21947
|
-
return (Y, ie) => (c(), h("section",
|
|
21948
|
-
u("header",
|
|
21949
|
-
u("div",
|
|
21950
|
-
u("h1",
|
|
21951
|
-
I.value ? (c(), h("div",
|
|
21953
|
+
return (Y, ie) => (c(), h("section", ZL, [
|
|
21954
|
+
u("header", WL, [
|
|
21955
|
+
u("div", GL, [
|
|
21956
|
+
u("h1", NL, y(C.value), 1),
|
|
21957
|
+
I.value ? (c(), h("div", XL, y(I.value), 1)) : H("", !0)
|
|
21952
21958
|
]),
|
|
21953
|
-
u("div",
|
|
21959
|
+
u("div", KL, [
|
|
21954
21960
|
ze(Y.$slots, "actions"),
|
|
21955
21961
|
w(n(je), null, {
|
|
21956
21962
|
trigger: x(() => [
|
|
@@ -22110,7 +22116,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
22110
22116
|
w(aw, {
|
|
22111
22117
|
node: le.node
|
|
22112
22118
|
}, null, 8, ["node"]),
|
|
22113
|
-
n(i).editMode ? (c(), z(
|
|
22119
|
+
n(i).editMode ? (c(), z(tL, {
|
|
22114
22120
|
key: 0,
|
|
22115
22121
|
onConfigure: (ve) => xe(le.layoutSlug),
|
|
22116
22122
|
onRemove: (ve) => de(le.layoutSlug)
|
|
@@ -22120,10 +22126,10 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
22120
22126
|
class: "admin-dashboard__resize",
|
|
22121
22127
|
"aria-label": r("Изменить размер"),
|
|
22122
22128
|
onMousedown: (ve) => t1(ve, le.layoutSlug, f(le.node), S(le.layoutSlug, le.node))
|
|
22123
|
-
}, null, 40,
|
|
22124
|
-
], 46,
|
|
22129
|
+
}, null, 40, YL)) : H("", !0)
|
|
22130
|
+
], 46, JL))), 128))
|
|
22125
22131
|
], 2),
|
|
22126
|
-
w(
|
|
22132
|
+
w(EL, {
|
|
22127
22133
|
open: W.value !== null,
|
|
22128
22134
|
mode: W.value ?? "add",
|
|
22129
22135
|
item: J.value,
|
|
@@ -22136,13 +22142,13 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
22136
22142
|
}, null, 8, ["open", "mode", "item", "initial-title", "restorable"])
|
|
22137
22143
|
]));
|
|
22138
22144
|
}
|
|
22139
|
-
}),
|
|
22145
|
+
}), aC = {
|
|
22140
22146
|
key: 1,
|
|
22141
22147
|
class: "admin-home"
|
|
22142
|
-
},
|
|
22148
|
+
}, tC = { class: "admin-home__title" }, nC = { class: "admin-home__lead" }, oC = {
|
|
22143
22149
|
key: 0,
|
|
22144
22150
|
class: "admin-home__resources"
|
|
22145
|
-
},
|
|
22151
|
+
}, cC = { class: "admin-home__heading" }, iC = { class: "admin-home__grid" }, lC = ["onClick"], rC = { class: "admin-home__card-label" }, dC = { class: "admin-home__card-slug" }, sC = /* @__PURE__ */ ne({
|
|
22146
22152
|
__name: "HomePage",
|
|
22147
22153
|
setup(a) {
|
|
22148
22154
|
const t = Ee(), o = Qe(), l = Ze(), d = M(() => o.user?.name ?? ""), i = M(() => t.manifest?.resources ?? []), s = M(
|
|
@@ -22159,20 +22165,20 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
22159
22165
|
), (m, k) => r.value ? (c(), z(tw, {
|
|
22160
22166
|
key: 0,
|
|
22161
22167
|
slug: r.value
|
|
22162
|
-
}, null, 8, ["slug"])) : (c(), h("div",
|
|
22168
|
+
}, null, 8, ["slug"])) : (c(), h("div", aC, [
|
|
22163
22169
|
w(n(we), {
|
|
22164
22170
|
padding: "lg",
|
|
22165
22171
|
class: "admin-home__hero"
|
|
22166
22172
|
}, {
|
|
22167
22173
|
default: x(() => [
|
|
22168
|
-
u("h1",
|
|
22169
|
-
u("p",
|
|
22174
|
+
u("h1", tC, "Добро пожаловать" + y(d.value ? ", " + d.value : ""), 1),
|
|
22175
|
+
u("p", nC, y(n(v)("Админ-панель готова. Зарегистрируйте DashboardScreen чтобы увидеть widget-grid здесь,")) + " " + y(n(v)("либо переходите к ресурсам ниже.")), 1)
|
|
22170
22176
|
]),
|
|
22171
22177
|
_: 1
|
|
22172
22178
|
}),
|
|
22173
|
-
i.value.length ? (c(), h("section",
|
|
22174
|
-
u("h2",
|
|
22175
|
-
u("ul",
|
|
22179
|
+
i.value.length ? (c(), h("section", oC, [
|
|
22180
|
+
u("h2", cC, y(n(v)("Ресурсы")), 1),
|
|
22181
|
+
u("ul", iC, [
|
|
22176
22182
|
(c(!0), h(X, null, ee(i.value, (g) => (c(), h("li", {
|
|
22177
22183
|
key: g.slug
|
|
22178
22184
|
}, [
|
|
@@ -22181,26 +22187,26 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
22181
22187
|
class: "admin-home__card",
|
|
22182
22188
|
onClick: (b) => n(l).push({ name: `admin.resource.${g.slug}.index` })
|
|
22183
22189
|
}, [
|
|
22184
|
-
u("span",
|
|
22185
|
-
u("span",
|
|
22186
|
-
], 8,
|
|
22190
|
+
u("span", rC, y(g.label), 1),
|
|
22191
|
+
u("span", dC, y(g.slug), 1)
|
|
22192
|
+
], 8, lC)
|
|
22187
22193
|
]))), 128))
|
|
22188
22194
|
])
|
|
22189
22195
|
])) : H("", !0)
|
|
22190
22196
|
]));
|
|
22191
22197
|
}
|
|
22192
|
-
}),
|
|
22198
|
+
}), hC = { class: "admin-status-page" }, uC = { class: "admin-status-page__message" }, yC = /* @__PURE__ */ ne({
|
|
22193
22199
|
__name: "ForbiddenPage",
|
|
22194
22200
|
setup(a) {
|
|
22195
22201
|
const t = Ze();
|
|
22196
|
-
return (o, l) => (c(), h("div",
|
|
22202
|
+
return (o, l) => (c(), h("div", hC, [
|
|
22197
22203
|
w(n(we), {
|
|
22198
22204
|
padding: "lg",
|
|
22199
22205
|
class: "admin-status-page__card"
|
|
22200
22206
|
}, {
|
|
22201
22207
|
default: x(() => [
|
|
22202
22208
|
l[1] || (l[1] = u("h1", { class: "admin-status-page__code" }, "403", -1)),
|
|
22203
|
-
u("p",
|
|
22209
|
+
u("p", uC, y(n(v)("Доступ запрещён.")), 1),
|
|
22204
22210
|
w(n(oe), {
|
|
22205
22211
|
variant: "ghost",
|
|
22206
22212
|
onClick: l[0] || (l[0] = (d) => n(t).replace({ name: "admin.home" }))
|
|
@@ -22215,18 +22221,18 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
22215
22221
|
})
|
|
22216
22222
|
]));
|
|
22217
22223
|
}
|
|
22218
|
-
}),
|
|
22224
|
+
}), pC = { class: "admin-status-page" }, kC = { class: "admin-status-page__message" }, mC = /* @__PURE__ */ ne({
|
|
22219
22225
|
__name: "NotFoundPage",
|
|
22220
22226
|
setup(a) {
|
|
22221
22227
|
const t = Ze();
|
|
22222
|
-
return (o, l) => (c(), h("div",
|
|
22228
|
+
return (o, l) => (c(), h("div", pC, [
|
|
22223
22229
|
w(n(we), {
|
|
22224
22230
|
padding: "lg",
|
|
22225
22231
|
class: "admin-status-page__card"
|
|
22226
22232
|
}, {
|
|
22227
22233
|
default: x(() => [
|
|
22228
22234
|
l[1] || (l[1] = u("h1", { class: "admin-status-page__code" }, "404", -1)),
|
|
22229
|
-
u("p",
|
|
22235
|
+
u("p", kC, y(n(v)("Страница не найдена.")), 1),
|
|
22230
22236
|
w(n(oe), {
|
|
22231
22237
|
variant: "ghost",
|
|
22232
22238
|
onClick: l[0] || (l[0] = (d) => n(t).replace({ name: "admin.home" }))
|
|
@@ -22241,27 +22247,27 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
22241
22247
|
})
|
|
22242
22248
|
]));
|
|
22243
22249
|
}
|
|
22244
|
-
}),
|
|
22250
|
+
}), vC = { class: "admin-settings-page" }, fC = { class: "admin-settings-page__title" }, gC = {
|
|
22245
22251
|
key: 0,
|
|
22246
22252
|
class: "admin-settings-page__hint"
|
|
22247
|
-
},
|
|
22253
|
+
}, MC = {
|
|
22248
22254
|
key: 1,
|
|
22249
22255
|
class: "admin-settings-page__debug"
|
|
22250
|
-
},
|
|
22256
|
+
}, IC = /* @__PURE__ */ ne({
|
|
22251
22257
|
__name: "SettingsPage",
|
|
22252
22258
|
setup(a) {
|
|
22253
22259
|
const t = l1(), o = Ee(), l = M(() => String(t.params.slug ?? "")), d = M(() => o.manifest?.settings?.find((i) => i.slug === l.value) ?? null);
|
|
22254
|
-
return (i, s) => (c(), h("div",
|
|
22260
|
+
return (i, s) => (c(), h("div", vC, [
|
|
22255
22261
|
w(n(we), { padding: "lg" }, {
|
|
22256
22262
|
default: x(() => [
|
|
22257
|
-
u("h1",
|
|
22258
|
-
d.value ? (c(), h("pre",
|
|
22263
|
+
u("h1", fC, y(d.value?.label ?? l.value), 1),
|
|
22264
|
+
d.value ? (c(), h("pre", MC, y(JSON.stringify(d.value.fields, null, 2)), 1)) : (c(), h("p", gC, " Settings «" + y(l.value) + "» не найдено в manifest'е. ", 1))
|
|
22259
22265
|
]),
|
|
22260
22266
|
_: 1
|
|
22261
22267
|
})
|
|
22262
22268
|
]));
|
|
22263
22269
|
}
|
|
22264
|
-
}),
|
|
22270
|
+
}), wC = e1("admin-screen", () => {
|
|
22265
22271
|
const a = A(null), t = A(""), o = A(null), l = A([]), d = A([]), i = A([]), s = A(null), r = A({}), p = A({}), m = A({}), k = A(!1), g = A(!1), b = A(null), C = A(null), I = M(() => b.value !== null);
|
|
22266
22272
|
function L(F, O) {
|
|
22267
22273
|
for (const G of Object.keys(F)) delete F[G];
|
|
@@ -22359,7 +22365,7 @@ const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF =
|
|
|
22359
22365
|
function nw(a) {
|
|
22360
22366
|
Pw(mI, a);
|
|
22361
22367
|
}
|
|
22362
|
-
function
|
|
22368
|
+
function NF() {
|
|
22363
22369
|
const a = rI(mI);
|
|
22364
22370
|
if (!a)
|
|
22365
22371
|
throw new Error("useRecord() called outside of provideRecord() scope");
|
|
@@ -22368,11 +22374,11 @@ function GF() {
|
|
|
22368
22374
|
function N2() {
|
|
22369
22375
|
return rI(mI, null);
|
|
22370
22376
|
}
|
|
22371
|
-
const So = R9(), qo = R9(),
|
|
22372
|
-
function
|
|
22377
|
+
const So = R9(), qo = R9(), xC = So.register, ow = So.get, bC = So.has, XF = So.list, LC = qo.register, CI = qo.get, CC = qo.has, KF = qo.list;
|
|
22378
|
+
function JF() {
|
|
22373
22379
|
So.clear(), qo.clear();
|
|
22374
22380
|
}
|
|
22375
|
-
function
|
|
22381
|
+
function YF(a) {
|
|
22376
22382
|
a.fields && So.registerBundle(a.fields), a.layouts && qo.registerBundle(a.layouts);
|
|
22377
22383
|
}
|
|
22378
22384
|
const cw = /* @__PURE__ */ ne({
|
|
@@ -22457,22 +22463,22 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22457
22463
|
name: a.node.name
|
|
22458
22464
|
}, null, 8, ["type", "name"]));
|
|
22459
22465
|
}
|
|
22460
|
-
}),
|
|
22466
|
+
}), _C = { class: "admin-page admin-screen-page" }, SC = { class: "admin-page__hd" }, qC = { class: "admin-page__title-wrap" }, AC = { class: "admin-page__title" }, zC = {
|
|
22461
22467
|
key: 0,
|
|
22462
22468
|
class: "admin-screen-page__description"
|
|
22463
|
-
},
|
|
22469
|
+
}, HC = {
|
|
22464
22470
|
key: 0,
|
|
22465
22471
|
class: "admin-page__actions"
|
|
22466
|
-
},
|
|
22472
|
+
}, VC = {
|
|
22467
22473
|
key: 2,
|
|
22468
22474
|
class: "admin-screen-page__loading"
|
|
22469
|
-
},
|
|
22475
|
+
}, PC = /* @__PURE__ */ ne({
|
|
22470
22476
|
__name: "ScreenPage",
|
|
22471
22477
|
props: {
|
|
22472
22478
|
slug: { default: null }
|
|
22473
22479
|
},
|
|
22474
22480
|
setup(a) {
|
|
22475
|
-
const t = a, o = l1(), l =
|
|
22481
|
+
const t = a, o = l1(), l = wC(), d = M(() => t.slug ? t.slug : String(o.params.slug ?? o.meta?.slug ?? "")), i = V9(l.state, l.errors);
|
|
22476
22482
|
nw(l.state), Ie(
|
|
22477
22483
|
() => l.errors,
|
|
22478
22484
|
(k) => {
|
|
@@ -22504,13 +22510,13 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22504
22510
|
function m(k) {
|
|
22505
22511
|
return k.destructive ? "danger" : k.primary ? "primary" : "secondary";
|
|
22506
22512
|
}
|
|
22507
|
-
return (k, g) => (c(), h("section",
|
|
22508
|
-
u("header",
|
|
22509
|
-
u("div",
|
|
22510
|
-
u("h1",
|
|
22511
|
-
n(l).description ? (c(), h("p",
|
|
22513
|
+
return (k, g) => (c(), h("section", _C, [
|
|
22514
|
+
u("header", SC, [
|
|
22515
|
+
u("div", qC, [
|
|
22516
|
+
u("h1", AC, y(n(l).name || d.value), 1),
|
|
22517
|
+
n(l).description ? (c(), h("p", zC, y(n(l).description), 1)) : H("", !0)
|
|
22512
22518
|
]),
|
|
22513
|
-
n(l).commandBar.length > 0 ? (c(), h("div",
|
|
22519
|
+
n(l).commandBar.length > 0 ? (c(), h("div", HC, [
|
|
22514
22520
|
(c(!0), h(X, null, ee(n(l).commandBar, (b) => (c(), z(n(oe), {
|
|
22515
22521
|
key: b.name,
|
|
22516
22522
|
variant: m(b),
|
|
@@ -22547,7 +22553,7 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22547
22553
|
]),
|
|
22548
22554
|
_: 1
|
|
22549
22555
|
})) : H("", !0),
|
|
22550
|
-
n(l).loading ? (c(), h("div",
|
|
22556
|
+
n(l).loading ? (c(), h("div", VC, [
|
|
22551
22557
|
(c(), h(X, null, ee(4, (b) => w(n(Re), {
|
|
22552
22558
|
key: b,
|
|
22553
22559
|
height: "40px"
|
|
@@ -22567,10 +22573,10 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22567
22573
|
})) : H("", !0)
|
|
22568
22574
|
]));
|
|
22569
22575
|
}
|
|
22570
|
-
}),
|
|
22576
|
+
}), FC = { class: "admin-auth-card__row" }, jC = ["href"], DC = {
|
|
22571
22577
|
key: 1,
|
|
22572
22578
|
style: { "text-align": "center", "font-size": "var(--uid-font-size-xs)", color: "var(--uid-text-secondary)", "padding-top": "4px" }
|
|
22573
|
-
},
|
|
22579
|
+
}, BC = ["href"], RC = /* @__PURE__ */ ne({
|
|
22574
22580
|
__name: "LoginForm",
|
|
22575
22581
|
props: {
|
|
22576
22582
|
forgotUrl: { default: null },
|
|
@@ -22638,7 +22644,7 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22638
22644
|
name: "password",
|
|
22639
22645
|
"data-testid": "login-password"
|
|
22640
22646
|
}, null, 8, ["modelValue", "label", "disabled", "error"]),
|
|
22641
|
-
u("div",
|
|
22647
|
+
u("div", FC, [
|
|
22642
22648
|
w(n(OI), {
|
|
22643
22649
|
modelValue: s.value,
|
|
22644
22650
|
"onUpdate:modelValue": I[2] || (I[2] = (L) => s.value = L),
|
|
@@ -22649,7 +22655,7 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22649
22655
|
key: 0,
|
|
22650
22656
|
href: a.forgotUrl,
|
|
22651
22657
|
class: "admin-auth-card__link"
|
|
22652
|
-
}, y(n(v)("Забыли пароль?")), 9,
|
|
22658
|
+
}, y(n(v)("Забыли пароль?")), 9, jC)) : H("", !0)
|
|
22653
22659
|
]),
|
|
22654
22660
|
w(n(oe), {
|
|
22655
22661
|
type: "submit",
|
|
@@ -22664,16 +22670,16 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22664
22670
|
]),
|
|
22665
22671
|
_: 1
|
|
22666
22672
|
}, 8, ["loading", "disabled"]),
|
|
22667
|
-
a.ssoLinkLabel && a.ssoUrl ? (c(), h("div",
|
|
22673
|
+
a.ssoLinkLabel && a.ssoUrl ? (c(), h("div", DC, [
|
|
22668
22674
|
D(y(n(v)("или войдите через")) + " ", 1),
|
|
22669
22675
|
u("a", {
|
|
22670
22676
|
href: a.ssoUrl,
|
|
22671
22677
|
class: "admin-auth-card__link"
|
|
22672
|
-
}, y(a.ssoLinkLabel), 9,
|
|
22678
|
+
}, y(a.ssoLinkLabel), 9, BC)
|
|
22673
22679
|
])) : H("", !0)
|
|
22674
22680
|
], 32));
|
|
22675
22681
|
}
|
|
22676
|
-
}),
|
|
22682
|
+
}), $C = ["value", "disabled", "aria-label", "onInput", "onKeydown"], TC = { class: "admin-auth-card__row" }, UC = /* @__PURE__ */ ne({
|
|
22677
22683
|
__name: "TwoFactorForm",
|
|
22678
22684
|
emits: ["success", "cancel"],
|
|
22679
22685
|
setup(a, { emit: t }) {
|
|
@@ -22768,7 +22774,7 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22768
22774
|
"aria-label": `Цифра ${B + 1}`,
|
|
22769
22775
|
onInput: (F) => I(B, F),
|
|
22770
22776
|
onKeydown: (F) => L(B, F)
|
|
22771
|
-
}, null, 40,
|
|
22777
|
+
}, null, 40, $C))), 128))
|
|
22772
22778
|
], 32)) : (c(), z(n(Le), {
|
|
22773
22779
|
key: 3,
|
|
22774
22780
|
modelValue: s.value,
|
|
@@ -22791,7 +22797,7 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22791
22797
|
]),
|
|
22792
22798
|
_: 1
|
|
22793
22799
|
}, 8, ["loading", "disabled"]),
|
|
22794
|
-
u("div",
|
|
22800
|
+
u("div", TC, [
|
|
22795
22801
|
u("button", {
|
|
22796
22802
|
type: "button",
|
|
22797
22803
|
class: "admin-auth-card__link",
|
|
@@ -22811,13 +22817,13 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22811
22817
|
])
|
|
22812
22818
|
], 32));
|
|
22813
22819
|
}
|
|
22814
|
-
}),
|
|
22820
|
+
}), OC = { class: "admin-auth-page" }, EC = {
|
|
22815
22821
|
key: 0,
|
|
22816
22822
|
class: "admin-auth-page__corner"
|
|
22817
|
-
},
|
|
22823
|
+
}, ZC = { class: "admin-auth-card__hd" }, WC = ["src", "alt"], GC = {
|
|
22818
22824
|
key: 1,
|
|
22819
22825
|
"aria-hidden": "true"
|
|
22820
|
-
},
|
|
22826
|
+
}, NC = { key: 2 }, XC = { class: "admin-auth-card__title" }, KC = { class: "admin-auth-card__sub" }, JC = /* @__PURE__ */ ne({
|
|
22821
22827
|
__name: "LoginPage",
|
|
22822
22828
|
props: {
|
|
22823
22829
|
brandName: { default: void 0 },
|
|
@@ -22847,8 +22853,8 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22847
22853
|
}
|
|
22848
22854
|
), Oe(() => {
|
|
22849
22855
|
o.isAuthenticated && m();
|
|
22850
|
-
}), (k, g) => (c(), h("div",
|
|
22851
|
-
a.showCornerActions ? (c(), h("div",
|
|
22856
|
+
}), (k, g) => (c(), h("div", OC, [
|
|
22857
|
+
a.showCornerActions ? (c(), h("div", EC, [
|
|
22852
22858
|
w(NI),
|
|
22853
22859
|
w(XI)
|
|
22854
22860
|
])) : H("", !0),
|
|
@@ -22857,7 +22863,7 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22857
22863
|
padding: "none"
|
|
22858
22864
|
}, {
|
|
22859
22865
|
default: x(() => [
|
|
22860
|
-
u("div",
|
|
22866
|
+
u("div", ZC, [
|
|
22861
22867
|
u("div", {
|
|
22862
22868
|
class: fe(["admin-auth-card__logo", n(o).isChallengePending ? "admin-auth-card__logo--accent" : ""])
|
|
22863
22869
|
}, [
|
|
@@ -22865,19 +22871,19 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22865
22871
|
key: 0,
|
|
22866
22872
|
src: r.value,
|
|
22867
22873
|
alt: s.value
|
|
22868
|
-
}, null, 8,
|
|
22874
|
+
}, null, 8, WC)) : n(o).isChallengePending ? (c(), h("span", GC, "🛡")) : p.value ? (c(), h("span", NC, y(p.value), 1)) : (c(), z(D9, {
|
|
22869
22875
|
key: 3,
|
|
22870
22876
|
size: 40
|
|
22871
22877
|
}))
|
|
22872
22878
|
], 2),
|
|
22873
|
-
u("div",
|
|
22879
|
+
u("div", XC, [
|
|
22874
22880
|
n(o).isChallengePending ? (c(), h(X, { key: 0 }, [
|
|
22875
22881
|
D(y(n(v)("Двухфакторная проверка")), 1)
|
|
22876
22882
|
], 64)) : (c(), h(X, { key: 1 }, [
|
|
22877
22883
|
D(y(s.value), 1)
|
|
22878
22884
|
], 64))
|
|
22879
22885
|
]),
|
|
22880
|
-
u("div",
|
|
22886
|
+
u("div", KC, [
|
|
22881
22887
|
n(o).isChallengePending ? (c(), h(X, { key: 0 }, [
|
|
22882
22888
|
D(y(n(v)("Введите 6-значный код из приложения-аутентификатора")), 1)
|
|
22883
22889
|
], 64)) : (c(), h(X, { key: 1 }, [
|
|
@@ -22885,13 +22891,13 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22885
22891
|
], 64))
|
|
22886
22892
|
])
|
|
22887
22893
|
]),
|
|
22888
|
-
n(o).isChallengePending ? (c(), z(
|
|
22894
|
+
n(o).isChallengePending ? (c(), z(UC, {
|
|
22889
22895
|
key: 0,
|
|
22890
22896
|
onSuccess: g[0] || (g[0] = () => {
|
|
22891
22897
|
}),
|
|
22892
22898
|
onCancel: g[1] || (g[1] = () => {
|
|
22893
22899
|
})
|
|
22894
|
-
})) : (c(), z(
|
|
22900
|
+
})) : (c(), z(RC, {
|
|
22895
22901
|
key: 1,
|
|
22896
22902
|
"forgot-url": a.forgotUrl,
|
|
22897
22903
|
"sso-link-label": a.ssoLinkLabel,
|
|
@@ -22904,7 +22910,7 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22904
22910
|
}, 8, ["class"])
|
|
22905
22911
|
]));
|
|
22906
22912
|
}
|
|
22907
|
-
}),
|
|
22913
|
+
}), YC = { class: "admin-auth-page" }, QC = { class: "admin-auth-card__hd" }, e_ = { class: "admin-auth-card__logo" }, a_ = ["src", "alt"], t_ = { key: 1 }, n_ = { class: "admin-auth-card__title" }, o_ = { class: "admin-auth-card__sub" }, c_ = { class: "admin-auth-card__body" }, i_ = /* @__PURE__ */ ne({
|
|
22908
22914
|
__name: "ForgotPasswordPage",
|
|
22909
22915
|
props: {
|
|
22910
22916
|
brandName: { default: "Laravel Admin" },
|
|
@@ -22927,27 +22933,27 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22927
22933
|
i.value = !1;
|
|
22928
22934
|
}
|
|
22929
22935
|
}
|
|
22930
|
-
return (r, p) => (c(), h("div",
|
|
22936
|
+
return (r, p) => (c(), h("div", YC, [
|
|
22931
22937
|
w(n(we), {
|
|
22932
22938
|
padding: "none",
|
|
22933
22939
|
class: "admin-auth-card"
|
|
22934
22940
|
}, {
|
|
22935
22941
|
default: x(() => [
|
|
22936
|
-
u("div",
|
|
22937
|
-
u("div",
|
|
22942
|
+
u("div", QC, [
|
|
22943
|
+
u("div", e_, [
|
|
22938
22944
|
n(t).logo ? (c(), h("img", {
|
|
22939
22945
|
key: 0,
|
|
22940
22946
|
src: n(t).logo,
|
|
22941
22947
|
alt: n(t).name ?? "Logo"
|
|
22942
|
-
}, null, 8,
|
|
22948
|
+
}, null, 8, a_)) : n(t).mark ? (c(), h("span", t_, y(n(t).mark), 1)) : (c(), z(D9, {
|
|
22943
22949
|
key: 2,
|
|
22944
22950
|
size: 40
|
|
22945
22951
|
}))
|
|
22946
22952
|
]),
|
|
22947
|
-
u("div",
|
|
22948
|
-
u("div",
|
|
22953
|
+
u("div", n_, y(n(v)("Восстановление пароля")), 1),
|
|
22954
|
+
u("div", o_, y(d.value ? n(v)("Если такой email зарегистрирован — мы отправили письмо со ссылкой на сброс.") : n(v)("Введите email — отправим ссылку для сброса пароля.")), 1)
|
|
22949
22955
|
]),
|
|
22950
|
-
u("div",
|
|
22956
|
+
u("div", c_, [
|
|
22951
22957
|
d.value ? H("", !0) : (c(), h("form", {
|
|
22952
22958
|
key: 0,
|
|
22953
22959
|
onSubmit: me(s, ["prevent"])
|
|
@@ -22994,10 +23000,10 @@ const cw = /* @__PURE__ */ ne({
|
|
|
22994
23000
|
})
|
|
22995
23001
|
]));
|
|
22996
23002
|
}
|
|
22997
|
-
}),
|
|
23003
|
+
}), l_ = { class: "admin-auth-page" }, r_ = { class: "admin-auth-card__hd" }, d_ = { class: "admin-auth-card__logo" }, s_ = ["src", "alt"], h_ = { key: 1 }, u_ = { class: "admin-auth-card__title" }, y_ = { class: "admin-auth-card__sub" }, p_ = { class: "admin-auth-card__body" }, k_ = {
|
|
22998
23004
|
key: 0,
|
|
22999
23005
|
class: "admin-auth-card__error"
|
|
23000
|
-
},
|
|
23006
|
+
}, m_ = /* @__PURE__ */ ne({
|
|
23001
23007
|
__name: "ResetPasswordPage",
|
|
23002
23008
|
props: {
|
|
23003
23009
|
loginRouteName: { default: "admin.login" }
|
|
@@ -23028,27 +23034,27 @@ const cw = /* @__PURE__ */ ne({
|
|
|
23028
23034
|
m.value = !1;
|
|
23029
23035
|
}
|
|
23030
23036
|
}
|
|
23031
|
-
return (b, C) => (c(), h("div",
|
|
23037
|
+
return (b, C) => (c(), h("div", l_, [
|
|
23032
23038
|
w(n(we), {
|
|
23033
23039
|
padding: "none",
|
|
23034
23040
|
class: "admin-auth-card"
|
|
23035
23041
|
}, {
|
|
23036
23042
|
default: x(() => [
|
|
23037
|
-
u("div",
|
|
23038
|
-
u("div",
|
|
23043
|
+
u("div", r_, [
|
|
23044
|
+
u("div", d_, [
|
|
23039
23045
|
n(t).logo ? (c(), h("img", {
|
|
23040
23046
|
key: 0,
|
|
23041
23047
|
src: n(t).logo,
|
|
23042
23048
|
alt: n(t).name ?? "Logo"
|
|
23043
|
-
}, null, 8,
|
|
23049
|
+
}, null, 8, s_)) : n(t).mark ? (c(), h("span", h_, y(n(t).mark), 1)) : (c(), z(D9, {
|
|
23044
23050
|
key: 2,
|
|
23045
23051
|
size: 40
|
|
23046
23052
|
}))
|
|
23047
23053
|
]),
|
|
23048
|
-
u("div",
|
|
23049
|
-
u("div",
|
|
23054
|
+
u("div", u_, y(n(v)("Новый пароль")), 1),
|
|
23055
|
+
u("div", y_, y(n(v)("Задайте новый пароль для своего аккаунта.")), 1)
|
|
23050
23056
|
]),
|
|
23051
|
-
u("div",
|
|
23057
|
+
u("div", p_, [
|
|
23052
23058
|
u("form", {
|
|
23053
23059
|
onSubmit: me(g, ["prevent"])
|
|
23054
23060
|
}, [
|
|
@@ -23075,7 +23081,7 @@ const cw = /* @__PURE__ */ ne({
|
|
|
23075
23081
|
autocomplete: "new-password",
|
|
23076
23082
|
required: ""
|
|
23077
23083
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
23078
|
-
k.value ? (c(), h("p",
|
|
23084
|
+
k.value ? (c(), h("p", k_, y(k.value), 1)) : H("", !0),
|
|
23079
23085
|
w(n(oe), {
|
|
23080
23086
|
type: "submit",
|
|
23081
23087
|
variant: "primary",
|
|
@@ -23213,25 +23219,25 @@ const cw = /* @__PURE__ */ ne({
|
|
|
23213
23219
|
isSelected: j,
|
|
23214
23220
|
rowId: Z
|
|
23215
23221
|
};
|
|
23216
|
-
}),
|
|
23222
|
+
}), v_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23217
23223
|
__proto__: null,
|
|
23218
23224
|
useResourceIndexStore: iw
|
|
23219
|
-
}, Symbol.toStringTag, { value: "Module" })), SI = "d.m.Y H:i:s",
|
|
23225
|
+
}, Symbol.toStringTag, { value: "Module" })), SI = "d.m.Y H:i:s", f_ = "d.m.Y", g_ = /^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}/;
|
|
23220
23226
|
function X2(a, t, o = {}) {
|
|
23221
23227
|
if (a == null) return "";
|
|
23222
|
-
if (!t && typeof a == "string" &&
|
|
23228
|
+
if (!t && typeof a == "string" && g_.test(a))
|
|
23223
23229
|
return N9(a, SI);
|
|
23224
23230
|
switch (t) {
|
|
23225
23231
|
case "date":
|
|
23226
|
-
return N9(String(a), o.format ??
|
|
23232
|
+
return N9(String(a), o.format ?? f_);
|
|
23227
23233
|
case "datetime":
|
|
23228
23234
|
return N9(String(a), o.format ?? SI);
|
|
23229
23235
|
case "money":
|
|
23230
|
-
return
|
|
23236
|
+
return M_(a, o.currency ?? "RUB", o.decimals ?? 2);
|
|
23231
23237
|
case "boolean":
|
|
23232
|
-
return
|
|
23238
|
+
return I_(a, v(o.trueLabel ?? "Да"), v(o.falseLabel ?? "Нет"));
|
|
23233
23239
|
case "bytes":
|
|
23234
|
-
return
|
|
23240
|
+
return w_(a);
|
|
23235
23241
|
case "json":
|
|
23236
23242
|
return qI(a);
|
|
23237
23243
|
default:
|
|
@@ -23273,14 +23279,14 @@ function N9(a, t) {
|
|
|
23273
23279
|
}
|
|
23274
23280
|
return i;
|
|
23275
23281
|
}
|
|
23276
|
-
function
|
|
23282
|
+
function M_(a, t, o) {
|
|
23277
23283
|
const l = typeof a == "number" ? a : Number(a);
|
|
23278
23284
|
return isNaN(l) ? String(a) : `${l.toFixed(o)} ${t}`;
|
|
23279
23285
|
}
|
|
23280
|
-
function
|
|
23286
|
+
function I_(a, t, o) {
|
|
23281
23287
|
return a === !0 || a === 1 || a === "1" || a === "true" ? t : o;
|
|
23282
23288
|
}
|
|
23283
|
-
function
|
|
23289
|
+
function w_(a) {
|
|
23284
23290
|
const t = typeof a == "number" ? a : Number(a);
|
|
23285
23291
|
return isNaN(t) ? String(a) : t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : t < 1024 * 1024 * 1024 ? `${(t / 1024 / 1024).toFixed(1)} MB` : `${(t / 1024 / 1024 / 1024).toFixed(1)} GB`;
|
|
23286
23292
|
}
|
|
@@ -23393,31 +23399,31 @@ const AI = ne({
|
|
|
23393
23399
|
});
|
|
23394
23400
|
};
|
|
23395
23401
|
}
|
|
23396
|
-
}),
|
|
23402
|
+
}), x_ = { class: "admin-toolbar" }, b_ = { class: "admin-toolbar__row admin-toolbar__row--filters" }, L_ = { class: "admin-toolbar__search" }, C_ = ["placeholder"], __ = {
|
|
23397
23403
|
key: 0,
|
|
23398
23404
|
class: "admin-toolbar__divider"
|
|
23399
|
-
},
|
|
23405
|
+
}, S_ = {
|
|
23400
23406
|
type: "button",
|
|
23401
23407
|
class: "admin-toolbar__chip admin-toolbar__chip--active"
|
|
23402
|
-
},
|
|
23408
|
+
}, q_ = { class: "admin-toolbar__chip-text" }, A_ = ["aria-label", "onClick", "onKeydown"], z_ = { class: "admin-toolbar__popover-actions" }, H_ = {
|
|
23403
23409
|
type: "button",
|
|
23404
23410
|
class: "admin-toolbar__chip"
|
|
23405
|
-
},
|
|
23411
|
+
}, V_ = { class: "admin-toolbar__chip-text" }, P_ = { class: "admin-toolbar__popover-actions" }, F_ = {
|
|
23406
23412
|
type: "button",
|
|
23407
23413
|
class: "admin-toolbar__chip"
|
|
23408
|
-
},
|
|
23414
|
+
}, j_ = ["onClick"], D_ = {
|
|
23409
23415
|
key: 3,
|
|
23410
23416
|
class: "admin-toolbar__spacer admin-toolbar__spacer--actions"
|
|
23411
|
-
},
|
|
23417
|
+
}, B_ = {
|
|
23412
23418
|
type: "button",
|
|
23413
23419
|
class: "admin-toolbar__chip"
|
|
23414
|
-
},
|
|
23420
|
+
}, R_ = { class: "admin-toolbar__chip-text" }, $_ = ["onClick"], T_ = {
|
|
23415
23421
|
type: "button",
|
|
23416
23422
|
class: "admin-toolbar__chip"
|
|
23417
|
-
},
|
|
23423
|
+
}, U_ = { class: "admin-toolbar__chip-text" }, O_ = ["checked", "onChange"], E_ = {
|
|
23418
23424
|
type: "button",
|
|
23419
23425
|
class: "admin-toolbar__chip"
|
|
23420
|
-
},
|
|
23426
|
+
}, Z_ = { class: "admin-toolbar__chip-text" }, W_ = ["placeholder"], G_ = { class: "admin-toolbar__popover-actions" }, zI = 4, N_ = /* @__PURE__ */ ne({
|
|
23421
23427
|
__name: "AdminFilterToolbar",
|
|
23422
23428
|
props: {
|
|
23423
23429
|
search: {},
|
|
@@ -23530,9 +23536,9 @@ const AI = ne({
|
|
|
23530
23536
|
function R(_) {
|
|
23531
23537
|
return q9(_) ?? null;
|
|
23532
23538
|
}
|
|
23533
|
-
return (_, j) => (c(), h("div",
|
|
23534
|
-
u("div",
|
|
23535
|
-
u("label",
|
|
23539
|
+
return (_, j) => (c(), h("div", x_, [
|
|
23540
|
+
u("div", b_, [
|
|
23541
|
+
u("label", L_, [
|
|
23536
23542
|
w(n(ae), {
|
|
23537
23543
|
icon: n(z1),
|
|
23538
23544
|
size: 14,
|
|
@@ -23545,22 +23551,22 @@ const AI = ne({
|
|
|
23545
23551
|
class: "admin-toolbar__search-input",
|
|
23546
23552
|
onKeydown: A1(i, ["enter"]),
|
|
23547
23553
|
onBlur: i
|
|
23548
|
-
}, null, 40,
|
|
23554
|
+
}, null, 40, C_), [
|
|
23549
23555
|
[q1, d.value]
|
|
23550
23556
|
])
|
|
23551
23557
|
]),
|
|
23552
|
-
a.filters.length > 0 ? (c(), h("span",
|
|
23558
|
+
a.filters.length > 0 ? (c(), h("span", __)) : H("", !0),
|
|
23553
23559
|
(c(!0), h(X, null, ee(r.value, (q) => (c(), z(n(je), {
|
|
23554
23560
|
key: `active-${q.name}`
|
|
23555
23561
|
}, {
|
|
23556
23562
|
trigger: x(() => [
|
|
23557
|
-
u("button",
|
|
23563
|
+
u("button", S_, [
|
|
23558
23564
|
R(q.icon) !== null ? (c(), z(n(ae), {
|
|
23559
23565
|
key: 0,
|
|
23560
23566
|
icon: R(q.icon),
|
|
23561
23567
|
size: 14
|
|
23562
23568
|
}, null, 8, ["icon"])) : H("", !0),
|
|
23563
|
-
u("span",
|
|
23569
|
+
u("span", q_, y(L(q)), 1),
|
|
23564
23570
|
u("span", {
|
|
23565
23571
|
role: "button",
|
|
23566
23572
|
tabindex: "0",
|
|
@@ -23573,7 +23579,7 @@ const AI = ne({
|
|
|
23573
23579
|
icon: n(He),
|
|
23574
23580
|
size: 12
|
|
23575
23581
|
}, null, 8, ["icon"])
|
|
23576
|
-
], 40,
|
|
23582
|
+
], 40, A_)
|
|
23577
23583
|
])
|
|
23578
23584
|
]),
|
|
23579
23585
|
default: x(() => [
|
|
@@ -23589,7 +23595,7 @@ const AI = ne({
|
|
|
23589
23595
|
onToggleOption: (E) => V(q.name, E, q.multiple ?? !1),
|
|
23590
23596
|
onSetDraft: (E) => Z(q.name, E)
|
|
23591
23597
|
}, null, 8, ["filter", "draft", "is-checked", "onToggleOption", "onSetDraft"]),
|
|
23592
|
-
u("div",
|
|
23598
|
+
u("div", z_, [
|
|
23593
23599
|
w(n(oe), {
|
|
23594
23600
|
size: "sm",
|
|
23595
23601
|
variant: "ghost",
|
|
@@ -23620,13 +23626,13 @@ const AI = ne({
|
|
|
23620
23626
|
key: `inactive-${q.name}`
|
|
23621
23627
|
}, {
|
|
23622
23628
|
trigger: x(() => [
|
|
23623
|
-
u("button",
|
|
23629
|
+
u("button", H_, [
|
|
23624
23630
|
R(q.icon) !== null ? (c(), z(n(ae), {
|
|
23625
23631
|
key: 0,
|
|
23626
23632
|
icon: R(q.icon),
|
|
23627
23633
|
size: 14
|
|
23628
23634
|
}, null, 8, ["icon"])) : H("", !0),
|
|
23629
|
-
u("span",
|
|
23635
|
+
u("span", V_, y(q.label), 1)
|
|
23630
23636
|
])
|
|
23631
23637
|
]),
|
|
23632
23638
|
default: x(() => [
|
|
@@ -23642,7 +23648,7 @@ const AI = ne({
|
|
|
23642
23648
|
onToggleOption: (E) => V(q.name, E, q.multiple ?? !1),
|
|
23643
23649
|
onSetDraft: (E) => Z(q.name, E)
|
|
23644
23650
|
}, null, 8, ["filter", "draft", "is-checked", "onToggleOption", "onSetDraft"]),
|
|
23645
|
-
u("div",
|
|
23651
|
+
u("div", P_, [
|
|
23646
23652
|
w(n(oe), {
|
|
23647
23653
|
size: "sm",
|
|
23648
23654
|
variant: "ghost",
|
|
@@ -23671,7 +23677,7 @@ const AI = ne({
|
|
|
23671
23677
|
}, 1024))), 128)),
|
|
23672
23678
|
g.value.length > 0 ? (c(), z(n(je), { key: 1 }, {
|
|
23673
23679
|
trigger: x(() => [
|
|
23674
|
-
u("button",
|
|
23680
|
+
u("button", F_, [
|
|
23675
23681
|
w(n(ae), {
|
|
23676
23682
|
icon: n(Te),
|
|
23677
23683
|
size: 14
|
|
@@ -23698,7 +23704,7 @@ const AI = ne({
|
|
|
23698
23704
|
size: 14
|
|
23699
23705
|
}, null, 8, ["icon"])) : H("", !0),
|
|
23700
23706
|
D(" " + y(q.label), 1)
|
|
23701
|
-
], 8,
|
|
23707
|
+
], 8, j_))), 128))
|
|
23702
23708
|
], 32)
|
|
23703
23709
|
]),
|
|
23704
23710
|
_: 1
|
|
@@ -23721,15 +23727,15 @@ const AI = ne({
|
|
|
23721
23727
|
]),
|
|
23722
23728
|
_: 1
|
|
23723
23729
|
})) : H("", !0),
|
|
23724
|
-
P.value.length > 0 || a.columns.length > 0 || a.enableSavedViews ? (c(), h("span",
|
|
23730
|
+
P.value.length > 0 || a.columns.length > 0 || a.enableSavedViews ? (c(), h("span", D_)) : H("", !0),
|
|
23725
23731
|
P.value.length > 0 ? (c(), z(n(je), { key: 4 }, {
|
|
23726
23732
|
trigger: x(() => [
|
|
23727
|
-
u("button",
|
|
23733
|
+
u("button", B_, [
|
|
23728
23734
|
w(n(ae), {
|
|
23729
23735
|
icon: n(y2),
|
|
23730
23736
|
size: 14
|
|
23731
23737
|
}, null, 8, ["icon"]),
|
|
23732
|
-
u("span",
|
|
23738
|
+
u("span", R_, y(a.groupBy ? `Группа: ${O(a.columns.find((q) => F(q) === a.groupBy) ?? {})}` : n(v)("Группировать")), 1)
|
|
23733
23739
|
])
|
|
23734
23740
|
]),
|
|
23735
23741
|
default: x(() => [
|
|
@@ -23766,19 +23772,19 @@ const AI = ne({
|
|
|
23766
23772
|
size: 14
|
|
23767
23773
|
}, null, 8, ["icon"])) : H("", !0),
|
|
23768
23774
|
u("span", null, y(O(q)), 1)
|
|
23769
|
-
], 8,
|
|
23775
|
+
], 8, $_))), 128))
|
|
23770
23776
|
], 32)
|
|
23771
23777
|
]),
|
|
23772
23778
|
_: 1
|
|
23773
23779
|
})) : H("", !0),
|
|
23774
23780
|
a.columns.length > 0 ? (c(), z(n(je), { key: 5 }, {
|
|
23775
23781
|
trigger: x(() => [
|
|
23776
|
-
u("button",
|
|
23782
|
+
u("button", T_, [
|
|
23777
23783
|
w(n(ae), {
|
|
23778
23784
|
icon: n(x1),
|
|
23779
23785
|
size: 14
|
|
23780
23786
|
}, null, 8, ["icon"]),
|
|
23781
|
-
u("span",
|
|
23787
|
+
u("span", U_, y(n(v)("Колонки")), 1)
|
|
23782
23788
|
])
|
|
23783
23789
|
]),
|
|
23784
23790
|
default: x(() => [
|
|
@@ -23795,7 +23801,7 @@ const AI = ne({
|
|
|
23795
23801
|
type: "checkbox",
|
|
23796
23802
|
checked: G(q),
|
|
23797
23803
|
onChange: (E) => te(q)
|
|
23798
|
-
}, null, 40,
|
|
23804
|
+
}, null, 40, O_),
|
|
23799
23805
|
u("span", null, y(O(q)), 1)
|
|
23800
23806
|
]))), 128))
|
|
23801
23807
|
], 32)
|
|
@@ -23804,12 +23810,12 @@ const AI = ne({
|
|
|
23804
23810
|
})) : H("", !0),
|
|
23805
23811
|
a.enableSavedViews ? (c(), z(n(je), { key: 6 }, {
|
|
23806
23812
|
trigger: x(() => [
|
|
23807
|
-
u("button",
|
|
23813
|
+
u("button", E_, [
|
|
23808
23814
|
w(n(ae), {
|
|
23809
23815
|
icon: n(ao),
|
|
23810
23816
|
size: 14
|
|
23811
23817
|
}, null, 8, ["icon"]),
|
|
23812
|
-
u("span",
|
|
23818
|
+
u("span", Z_, y(n(v)("Сохранить")), 1)
|
|
23813
23819
|
])
|
|
23814
23820
|
]),
|
|
23815
23821
|
default: x(() => [
|
|
@@ -23825,10 +23831,10 @@ const AI = ne({
|
|
|
23825
23831
|
class: "admin-toolbar__input",
|
|
23826
23832
|
onKeydown: j[9] || (j[9] = A1((q) => J(() => {
|
|
23827
23833
|
}), ["enter"]))
|
|
23828
|
-
}, null, 40,
|
|
23834
|
+
}, null, 40, W_), [
|
|
23829
23835
|
[q1, W.value]
|
|
23830
23836
|
]),
|
|
23831
|
-
u("div",
|
|
23837
|
+
u("div", G_, [
|
|
23832
23838
|
w(n(oe), {
|
|
23833
23839
|
size: "sm",
|
|
23834
23840
|
variant: "primary",
|
|
@@ -23849,7 +23855,7 @@ const AI = ne({
|
|
|
23849
23855
|
])
|
|
23850
23856
|
]));
|
|
23851
23857
|
}
|
|
23852
|
-
}),
|
|
23858
|
+
}), X_ = ["title"], K_ = ["disabled"], J_ = ["disabled"], Y_ = ["disabled"], Q_ = ["value"], eS = ["disabled"], aS = ["disabled"], lw = /* @__PURE__ */ ne({
|
|
23853
23859
|
__name: "InlineEditCell",
|
|
23854
23860
|
props: {
|
|
23855
23861
|
resourceSlug: {},
|
|
@@ -23921,7 +23927,7 @@ const AI = ne({
|
|
|
23921
23927
|
onBlur: g,
|
|
23922
23928
|
onClick: f[1] || (f[1] = me(() => {
|
|
23923
23929
|
}, ["stop"]))
|
|
23924
|
-
}, null, 40,
|
|
23930
|
+
}, null, 40, K_)), [
|
|
23925
23931
|
[q1, i.value]
|
|
23926
23932
|
]) : a.inputType === "date" ? s1((c(), h("input", {
|
|
23927
23933
|
key: 2,
|
|
@@ -23935,7 +23941,7 @@ const AI = ne({
|
|
|
23935
23941
|
onBlur: g,
|
|
23936
23942
|
onClick: f[3] || (f[3] = me(() => {
|
|
23937
23943
|
}, ["stop"]))
|
|
23938
|
-
}, null, 40,
|
|
23944
|
+
}, null, 40, J_)), [
|
|
23939
23945
|
[q1, i.value]
|
|
23940
23946
|
]) : a.inputType === "select" ? s1((c(), h("select", {
|
|
23941
23947
|
key: 3,
|
|
@@ -23953,8 +23959,8 @@ const AI = ne({
|
|
|
23953
23959
|
(c(!0), h(X, null, ee(I.value, (S) => (c(), h("option", {
|
|
23954
23960
|
key: S.value,
|
|
23955
23961
|
value: S.value
|
|
23956
|
-
}, y(S.label), 9,
|
|
23957
|
-
], 40,
|
|
23962
|
+
}, y(S.label), 9, Q_))), 128))
|
|
23963
|
+
], 40, Y_)), [
|
|
23958
23964
|
[Fw, i.value]
|
|
23959
23965
|
]) : a.inputType === "textarea" ? s1((c(), h("textarea", {
|
|
23960
23966
|
key: 4,
|
|
@@ -23968,7 +23974,7 @@ const AI = ne({
|
|
|
23968
23974
|
onBlur: g,
|
|
23969
23975
|
onClick: f[7] || (f[7] = me(() => {
|
|
23970
23976
|
}, ["stop"]))
|
|
23971
|
-
}, null, 40,
|
|
23977
|
+
}, null, 40, eS)), [
|
|
23972
23978
|
[q1, i.value]
|
|
23973
23979
|
]) : s1((c(), h("input", {
|
|
23974
23980
|
key: 5,
|
|
@@ -23982,7 +23988,7 @@ const AI = ne({
|
|
|
23982
23988
|
onBlur: g,
|
|
23983
23989
|
onClick: f[9] || (f[9] = me(() => {
|
|
23984
23990
|
}, ["stop"]))
|
|
23985
|
-
}, null, 40,
|
|
23991
|
+
}, null, 40, aS)), [
|
|
23986
23992
|
[q1, i.value]
|
|
23987
23993
|
]) : (c(), h("span", {
|
|
23988
23994
|
key: 0,
|
|
@@ -23993,16 +23999,16 @@ const AI = ne({
|
|
|
23993
23999
|
ze(L.$slots, "default", {}, () => [
|
|
23994
24000
|
D(y(a.value), 1)
|
|
23995
24001
|
])
|
|
23996
|
-
], 42,
|
|
24002
|
+
], 42, X_))
|
|
23997
24003
|
], 64));
|
|
23998
24004
|
}
|
|
23999
|
-
}),
|
|
24005
|
+
}), tS = { class: "admin-resource-tree-page" }, nS = { class: "admin-resource-tree-page__header" }, oS = { class: "admin-resource-tree-page__title" }, cS = {
|
|
24000
24006
|
key: 0,
|
|
24001
24007
|
class: "admin-resource-tree-page__count"
|
|
24002
|
-
},
|
|
24008
|
+
}, iS = {
|
|
24003
24009
|
key: 0,
|
|
24004
24010
|
class: "admin-resource-tree-page__subtitle"
|
|
24005
|
-
},
|
|
24011
|
+
}, lS = { class: "admin-resource-tree-page__actions" }, rS = { class: "admin-resource-tree-page__toolbar" }, dS = { class: "admin-resource-tree-page__selection-label" }, sS = { class: "admin-resource-tree-page__body" }, hS = /* @__PURE__ */ ne({
|
|
24006
24012
|
__name: "ResourceTreePage",
|
|
24007
24013
|
props: {
|
|
24008
24014
|
slug: {},
|
|
@@ -24105,16 +24111,16 @@ const AI = ne({
|
|
|
24105
24111
|
j !== null && clearTimeout(j), j = setTimeout(() => {
|
|
24106
24112
|
f();
|
|
24107
24113
|
}, 300);
|
|
24108
|
-
}), Oe(f), (q, E) => (c(), h("div",
|
|
24109
|
-
u("header",
|
|
24114
|
+
}), Oe(f), (q, E) => (c(), h("div", tS, [
|
|
24115
|
+
u("header", nS, [
|
|
24110
24116
|
u("div", null, [
|
|
24111
|
-
u("h1",
|
|
24117
|
+
u("h1", oS, [
|
|
24112
24118
|
D(y(b.value) + " ", 1),
|
|
24113
|
-
s.value > 0 ? (c(), h("span",
|
|
24119
|
+
s.value > 0 ? (c(), h("span", cS, y(s.value), 1)) : H("", !0)
|
|
24114
24120
|
]),
|
|
24115
|
-
C.value ? (c(), h("p",
|
|
24121
|
+
C.value ? (c(), h("p", iS, y(C.value), 1)) : H("", !0)
|
|
24116
24122
|
]),
|
|
24117
|
-
u("div",
|
|
24123
|
+
u("div", lS, [
|
|
24118
24124
|
I.value ? (c(), z(n(oe), {
|
|
24119
24125
|
key: 0,
|
|
24120
24126
|
variant: "primary",
|
|
@@ -24128,7 +24134,7 @@ const AI = ne({
|
|
|
24128
24134
|
})) : H("", !0)
|
|
24129
24135
|
])
|
|
24130
24136
|
]),
|
|
24131
|
-
u("div",
|
|
24137
|
+
u("div", rS, [
|
|
24132
24138
|
w(n(Le), {
|
|
24133
24139
|
modelValue: m.value,
|
|
24134
24140
|
"onUpdate:modelValue": E[0] || (E[0] = (ce) => m.value = ce),
|
|
@@ -24167,7 +24173,7 @@ const AI = ne({
|
|
|
24167
24173
|
class: "admin-resource-tree-page__selection-divider",
|
|
24168
24174
|
"aria-hidden": "true"
|
|
24169
24175
|
}, "|", -1)),
|
|
24170
|
-
u("span",
|
|
24176
|
+
u("span", dS, y(P.value?.label ?? V.value), 1),
|
|
24171
24177
|
w(n(oe), {
|
|
24172
24178
|
variant: "ghost",
|
|
24173
24179
|
onClick: te
|
|
@@ -24220,7 +24226,7 @@ const AI = ne({
|
|
|
24220
24226
|
})
|
|
24221
24227
|
], 64)) : H("", !0)
|
|
24222
24228
|
]),
|
|
24223
|
-
u("div",
|
|
24229
|
+
u("div", sS, [
|
|
24224
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), {
|
|
24225
24231
|
key: 1,
|
|
24226
24232
|
message: p.value.message,
|
|
@@ -24248,37 +24254,37 @@ const AI = ne({
|
|
|
24248
24254
|
for (const [l, d] of t)
|
|
24249
24255
|
o[l] = d;
|
|
24250
24256
|
return o;
|
|
24251
|
-
},
|
|
24257
|
+
}, uS = /* @__PURE__ */ a1(hS, [["__scopeId", "data-v-80b2213a"]]), yS = {
|
|
24252
24258
|
key: 1,
|
|
24253
24259
|
class: "admin-page admin-resource-index"
|
|
24254
|
-
},
|
|
24260
|
+
}, pS = { class: "admin-page__hd" }, kS = { class: "admin-page__title-wrap" }, mS = { class: "admin-page__title-row" }, vS = { class: "admin-page__title" }, fS = {
|
|
24255
24261
|
key: 0,
|
|
24256
24262
|
class: "admin-page__live",
|
|
24257
24263
|
role: "status"
|
|
24258
|
-
},
|
|
24264
|
+
}, gS = {
|
|
24259
24265
|
key: 0,
|
|
24260
24266
|
class: "admin-page__count"
|
|
24261
|
-
},
|
|
24267
|
+
}, MS = { class: "admin-page__actions" }, IS = { class: "admin-page__view-row" }, wS = { class: "admin-page__view-name" }, xS = {
|
|
24262
24268
|
key: 0,
|
|
24263
24269
|
class: "admin-page__view-badge"
|
|
24264
|
-
},
|
|
24270
|
+
}, bS = ["aria-label", "onClick"], LS = {
|
|
24265
24271
|
key: 0,
|
|
24266
24272
|
class: "admin-bulk-toolbar",
|
|
24267
24273
|
"data-testid": "bulk-bar",
|
|
24268
24274
|
role: "toolbar"
|
|
24269
|
-
},
|
|
24275
|
+
}, CS = { class: "admin-bulk-toolbar__count" }, _S = {
|
|
24270
24276
|
key: 2,
|
|
24271
24277
|
class: "admin-resource-index__loading"
|
|
24272
|
-
},
|
|
24278
|
+
}, SS = {
|
|
24273
24279
|
key: 5,
|
|
24274
24280
|
class: "admin-resource-index__table"
|
|
24275
|
-
},
|
|
24281
|
+
}, qS = ["draggable", "title", "onDragstart", "onDragover", "onDrop"], AS = {
|
|
24276
24282
|
key: 1,
|
|
24277
24283
|
class: "admin-resource-index__row-actions"
|
|
24278
|
-
},
|
|
24284
|
+
}, zS = ["title", "onClick"], HS = ["title", "onClick"], VS = ["title", "onClick"], PS = ["title", "onClick"], FS = ["title", "onClick"], jS = { class: "admin-cell-truncate" }, DS = ["href", "target", "title"], BS = ["title"], RS = {
|
|
24279
24285
|
key: 6,
|
|
24280
24286
|
class: "admin-resource-index__footer"
|
|
24281
|
-
}, HI = "__row_actions__", VI = "__row_reorder__",
|
|
24287
|
+
}, HI = "__row_actions__", VI = "__row_reorder__", $S = /* @__PURE__ */ ne({
|
|
24282
24288
|
__name: "ResourceIndexPage",
|
|
24283
24289
|
props: {
|
|
24284
24290
|
slug: {},
|
|
@@ -24771,17 +24777,17 @@ const AI = ne({
|
|
|
24771
24777
|
await r.load().catch(() => {
|
|
24772
24778
|
});
|
|
24773
24779
|
}
|
|
24774
|
-
return ($, N) => g.value?.view_mode === "tree" ? (c(), z(
|
|
24780
|
+
return ($, N) => g.value?.view_mode === "tree" ? (c(), z(uS, {
|
|
24775
24781
|
key: 0,
|
|
24776
24782
|
slug: a.slug,
|
|
24777
24783
|
title: a.title,
|
|
24778
24784
|
subtitle: a.subtitle
|
|
24779
|
-
}, null, 8, ["slug", "title", "subtitle"])) : (c(), h("section",
|
|
24780
|
-
u("header",
|
|
24781
|
-
u("div",
|
|
24782
|
-
u("div",
|
|
24783
|
-
u("h1",
|
|
24784
|
-
P1.value ? (c(), h("span",
|
|
24785
|
+
}, null, 8, ["slug", "title", "subtitle"])) : (c(), h("section", yS, [
|
|
24786
|
+
u("header", pS, [
|
|
24787
|
+
u("div", kS, [
|
|
24788
|
+
u("div", mS, [
|
|
24789
|
+
u("h1", vS, y(b.value), 1),
|
|
24790
|
+
P1.value ? (c(), h("span", fS, [
|
|
24785
24791
|
N[3] || (N[3] = u("span", {
|
|
24786
24792
|
class: "admin-page__live-dot",
|
|
24787
24793
|
"aria-hidden": "true"
|
|
@@ -24789,7 +24795,7 @@ const AI = ne({
|
|
|
24789
24795
|
D(" " + y(P1.value), 1)
|
|
24790
24796
|
])) : H("", !0)
|
|
24791
24797
|
]),
|
|
24792
|
-
a.subtitle || le.value ? (c(), h("div",
|
|
24798
|
+
a.subtitle || le.value ? (c(), h("div", gS, [
|
|
24793
24799
|
a.subtitle ? (c(), h(X, { key: 0 }, [
|
|
24794
24800
|
D(y(a.subtitle), 1)
|
|
24795
24801
|
], 64)) : H("", !0),
|
|
@@ -24801,7 +24807,7 @@ const AI = ne({
|
|
|
24801
24807
|
], 64)) : H("", !0)
|
|
24802
24808
|
])) : H("", !0)
|
|
24803
24809
|
]),
|
|
24804
|
-
u("div",
|
|
24810
|
+
u("div", MS, [
|
|
24805
24811
|
ze($.$slots, "actions"),
|
|
24806
24812
|
W.value ? (c(), z(n(je), { key: 0 }, {
|
|
24807
24813
|
trigger: x(() => [
|
|
@@ -24840,10 +24846,10 @@ const AI = ne({
|
|
|
24840
24846
|
onClick: (Q) => K2(K)
|
|
24841
24847
|
}, {
|
|
24842
24848
|
default: x(() => [
|
|
24843
|
-
u("span",
|
|
24844
|
-
u("span",
|
|
24849
|
+
u("span", IS, [
|
|
24850
|
+
u("span", wS, [
|
|
24845
24851
|
D(y(K.name) + " ", 1),
|
|
24846
|
-
K.is_default ? (c(), h("span",
|
|
24852
|
+
K.is_default ? (c(), h("span", xS, "default")) : H("", !0)
|
|
24847
24853
|
]),
|
|
24848
24854
|
K.owned ? (c(), h("button", {
|
|
24849
24855
|
key: 0,
|
|
@@ -24856,7 +24862,7 @@ const AI = ne({
|
|
|
24856
24862
|
icon: n(Ue),
|
|
24857
24863
|
size: 12
|
|
24858
24864
|
}, null, 8, ["icon"])
|
|
24859
|
-
], 8,
|
|
24865
|
+
], 8, bS)) : H("", !0)
|
|
24860
24866
|
])
|
|
24861
24867
|
]),
|
|
24862
24868
|
_: 2
|
|
@@ -24955,8 +24961,8 @@ const AI = ne({
|
|
|
24955
24961
|
})) : H("", !0)
|
|
24956
24962
|
])
|
|
24957
24963
|
]),
|
|
24958
|
-
n(r).hasSelection ? (c(), h("div",
|
|
24959
|
-
u("span",
|
|
24964
|
+
n(r).hasSelection ? (c(), h("div", LS, [
|
|
24965
|
+
u("span", CS, [
|
|
24960
24966
|
N[4] || (N[4] = D(" Выбрано ", -1)),
|
|
24961
24967
|
u("b", null, y(n(r).selectedCount), 1)
|
|
24962
24968
|
]),
|
|
@@ -25005,7 +25011,7 @@ const AI = ne({
|
|
|
25005
25011
|
]),
|
|
25006
25012
|
_: 1
|
|
25007
25013
|
}, 8, ["onClick"])
|
|
25008
|
-
])) : Ce.value ? (c(), z(
|
|
25014
|
+
])) : Ce.value ? (c(), z(N_, {
|
|
25009
25015
|
key: 1,
|
|
25010
25016
|
search: n(r).search,
|
|
25011
25017
|
"search-placeholder": lo.value,
|
|
@@ -25030,7 +25036,7 @@ const AI = ne({
|
|
|
25030
25036
|
]),
|
|
25031
25037
|
_: 3
|
|
25032
25038
|
}, 8, ["search", "search-placeholder", "filters", "values", "columns", "group-by", "column-visibility", "enable-saved-views"])) : H("", !0),
|
|
25033
|
-
n(r).loading && n(r).items.length === 0 ? (c(), h("div",
|
|
25039
|
+
n(r).loading && n(r).items.length === 0 ? (c(), h("div", _S, [
|
|
25034
25040
|
n(r).slowLoading ? (c(), h(X, { key: 0 }, ee(8, (K) => w(n(Re), {
|
|
25035
25041
|
key: K,
|
|
25036
25042
|
height: "40px"
|
|
@@ -25072,7 +25078,7 @@ const AI = ne({
|
|
|
25072
25078
|
})) : H("", !0)
|
|
25073
25079
|
]),
|
|
25074
25080
|
_: 1
|
|
25075
|
-
}, 8, ["title", "description"])) : (c(), h("div",
|
|
25081
|
+
}, 8, ["title", "description"])) : (c(), h("div", SS, [
|
|
25076
25082
|
w(n(Co), {
|
|
25077
25083
|
columns: j.value,
|
|
25078
25084
|
data: n(r).items,
|
|
@@ -25120,7 +25126,7 @@ const AI = ne({
|
|
|
25120
25126
|
icon: n(vo),
|
|
25121
25127
|
size: 14
|
|
25122
25128
|
}, null, 8, ["icon"])
|
|
25123
|
-
], 42,
|
|
25129
|
+
], 42, qS)) : K.key === HI ? (c(), h("div", AS, [
|
|
25124
25130
|
u("button", {
|
|
25125
25131
|
type: "button",
|
|
25126
25132
|
class: "admin-resource-index__row-action",
|
|
@@ -25131,7 +25137,7 @@ const AI = ne({
|
|
|
25131
25137
|
icon: n(Ko),
|
|
25132
25138
|
size: 16
|
|
25133
25139
|
}, null, 8, ["icon"])
|
|
25134
|
-
], 8,
|
|
25140
|
+
], 8, zS),
|
|
25135
25141
|
_w(de(Q) ?? {}) ? (c(), h(X, { key: 1 }, [
|
|
25136
25142
|
u("button", {
|
|
25137
25143
|
type: "button",
|
|
@@ -25143,7 +25149,7 @@ const AI = ne({
|
|
|
25143
25149
|
icon: n(no),
|
|
25144
25150
|
size: 16
|
|
25145
25151
|
}, null, 8, ["icon"])
|
|
25146
|
-
], 8,
|
|
25152
|
+
], 8, PS),
|
|
25147
25153
|
u("button", {
|
|
25148
25154
|
type: "button",
|
|
25149
25155
|
class: "admin-resource-index__row-action admin-resource-index__row-action--danger",
|
|
@@ -25154,7 +25160,7 @@ const AI = ne({
|
|
|
25154
25160
|
icon: n(Ue),
|
|
25155
25161
|
size: 16
|
|
25156
25162
|
}, null, 8, ["icon"])
|
|
25157
|
-
], 8,
|
|
25163
|
+
], 8, FS)
|
|
25158
25164
|
], 64)) : (c(), h(X, { key: 0 }, [
|
|
25159
25165
|
te.value ? (c(), h("button", {
|
|
25160
25166
|
key: 0,
|
|
@@ -25167,7 +25173,7 @@ const AI = ne({
|
|
|
25167
25173
|
icon: n(u1),
|
|
25168
25174
|
size: 16
|
|
25169
25175
|
}, null, 8, ["icon"])
|
|
25170
|
-
], 8,
|
|
25176
|
+
], 8, HS)) : H("", !0),
|
|
25171
25177
|
te.value ? (c(), h("button", {
|
|
25172
25178
|
key: 1,
|
|
25173
25179
|
type: "button",
|
|
@@ -25179,9 +25185,10 @@ const AI = ne({
|
|
|
25179
25185
|
icon: n(Ue),
|
|
25180
25186
|
size: 16
|
|
25181
25187
|
}, null, 8, ["icon"])
|
|
25182
|
-
], 8,
|
|
25188
|
+
], 8, VS)) : H("", !0)
|
|
25183
25189
|
], 64))
|
|
25184
25190
|
])) : ze($.$slots, `cell-${K.key}`, {
|
|
25191
|
+
key: 2,
|
|
25185
25192
|
row: de(Q)
|
|
25186
25193
|
}, () => [
|
|
25187
25194
|
q(K.key) ? (c(), z(lw, {
|
|
@@ -25200,7 +25207,7 @@ const AI = ne({
|
|
|
25200
25207
|
}
|
|
25201
25208
|
}, {
|
|
25202
25209
|
default: x(() => [
|
|
25203
|
-
u("span",
|
|
25210
|
+
u("span", jS, y(ye(K.key, Q)), 1)
|
|
25204
25211
|
]),
|
|
25205
25212
|
_: 2
|
|
25206
25213
|
}, 1032, ["resource-slug", "row-id", "column", "value", "input-type", "options", "row-override", "onSaved"])) : xe(K.key) && ue(K.key, Q) ? (c(), h("a", {
|
|
@@ -25210,17 +25217,17 @@ const AI = ne({
|
|
|
25210
25217
|
target: ke(K.key),
|
|
25211
25218
|
rel: "noopener",
|
|
25212
25219
|
title: ye(K.key, Q)
|
|
25213
|
-
}, y(ye(K.key, Q)), 9,
|
|
25220
|
+
}, y(ye(K.key, Q)), 9, DS)) : (c(), h("span", {
|
|
25214
25221
|
key: 2,
|
|
25215
25222
|
class: "admin-cell-truncate",
|
|
25216
25223
|
title: ye(K.key, Q)
|
|
25217
|
-
}, y(ye(K.key, Q)), 9,
|
|
25218
|
-
]
|
|
25224
|
+
}, y(ye(K.key, Q)), 9, BS))
|
|
25225
|
+
])
|
|
25219
25226
|
])
|
|
25220
25227
|
}))
|
|
25221
25228
|
]), 1032, ["columns", "data", "sort-key", "sort-direction", "selection", "row-key"])
|
|
25222
25229
|
])),
|
|
25223
|
-
!n(r).loading && !n(r).hasError && !n(r).isEmpty ? (c(), h("footer",
|
|
25230
|
+
!n(r).loading && !n(r).hasError && !n(r).isEmpty ? (c(), h("footer", RS, [
|
|
25224
25231
|
w(n(Yw), {
|
|
25225
25232
|
"model-value": n(r).meta.page,
|
|
25226
25233
|
total: n(r).meta.total,
|
|
@@ -25382,13 +25389,13 @@ const AI = ne({
|
|
|
25382
25389
|
_: 1
|
|
25383
25390
|
}, 8, ["gap"]));
|
|
25384
25391
|
}
|
|
25385
|
-
}),
|
|
25392
|
+
}), TS = { class: "admin-page admin-resource-form" }, US = { class: "admin-page__hd" }, OS = { class: "admin-page__title-wrap" }, ES = { class: "admin-page__title" }, ZS = { class: "admin-page__actions" }, WS = { class: "admin-resource-form__notfound-title" }, GS = { class: "admin-resource-form__notfound-hint" }, NS = {
|
|
25386
25393
|
key: 1,
|
|
25387
25394
|
class: "admin-resource-form__loading"
|
|
25388
|
-
},
|
|
25395
|
+
}, XS = {
|
|
25389
25396
|
key: 2,
|
|
25390
25397
|
class: "admin-resource-form__savebar"
|
|
25391
|
-
},
|
|
25398
|
+
}, KS = { class: "admin-resource-form__savebar-hint" }, PI = /* @__PURE__ */ ne({
|
|
25392
25399
|
__name: "ResourceFormPage",
|
|
25393
25400
|
props: {
|
|
25394
25401
|
slug: {},
|
|
@@ -25487,14 +25494,14 @@ const AI = ne({
|
|
|
25487
25494
|
o.isDirty && !confirm(v("Несохранённые изменения будут потеряны. Продолжить?")) || d.push({ name: S.value }).catch(() => {
|
|
25488
25495
|
});
|
|
25489
25496
|
}
|
|
25490
|
-
return (V, T) => (c(), h("section",
|
|
25491
|
-
u("header",
|
|
25492
|
-
u("div",
|
|
25497
|
+
return (V, T) => (c(), h("section", TS, [
|
|
25498
|
+
u("header", US, [
|
|
25499
|
+
u("div", OS, [
|
|
25493
25500
|
u("a", {
|
|
25494
25501
|
class: "admin-resource-form__back",
|
|
25495
25502
|
onClick: U
|
|
25496
25503
|
}, y(n(v)("← Назад")), 1),
|
|
25497
|
-
u("h1",
|
|
25504
|
+
u("h1", ES, y(C.value), 1),
|
|
25498
25505
|
I.value ? (c(), z(n(yI), {
|
|
25499
25506
|
key: 0,
|
|
25500
25507
|
variant: L.value
|
|
@@ -25505,7 +25512,7 @@ const AI = ne({
|
|
|
25505
25512
|
_: 1
|
|
25506
25513
|
}, 8, ["variant"])) : H("", !0)
|
|
25507
25514
|
]),
|
|
25508
|
-
u("div",
|
|
25515
|
+
u("div", ZS, [
|
|
25509
25516
|
w(n(oe), {
|
|
25510
25517
|
variant: "ghost",
|
|
25511
25518
|
disabled: n(o).saving || n(o).deleting,
|
|
@@ -25550,8 +25557,8 @@ const AI = ne({
|
|
|
25550
25557
|
class: "admin-resource-form__notfound"
|
|
25551
25558
|
}, {
|
|
25552
25559
|
default: x(() => [
|
|
25553
|
-
u("p",
|
|
25554
|
-
u("p",
|
|
25560
|
+
u("p", WS, y(n(v)("Запись не найдена")), 1),
|
|
25561
|
+
u("p", GS, y(n(v)("Возможно, она была удалена. Вернитесь к списку.")), 1),
|
|
25555
25562
|
w(n(oe), {
|
|
25556
25563
|
variant: "primary",
|
|
25557
25564
|
size: "sm",
|
|
@@ -25576,7 +25583,7 @@ const AI = ne({
|
|
|
25576
25583
|
]),
|
|
25577
25584
|
_: 1
|
|
25578
25585
|
})) : H("", !0),
|
|
25579
|
-
n(o).loading ? (c(), h("div",
|
|
25586
|
+
n(o).loading ? (c(), h("div", NS, [
|
|
25580
25587
|
(c(), h(X, null, ee(6, (P) => w(n(Re), {
|
|
25581
25588
|
key: P,
|
|
25582
25589
|
height: "40px"
|
|
@@ -25592,8 +25599,8 @@ const AI = ne({
|
|
|
25592
25599
|
_: 1
|
|
25593
25600
|
}))
|
|
25594
25601
|
], 64)),
|
|
25595
|
-
n(o).isDirty && !n(o).loading && !m.value ? (c(), h("div",
|
|
25596
|
-
u("span",
|
|
25602
|
+
n(o).isDirty && !n(o).loading && !m.value ? (c(), h("div", XS, [
|
|
25603
|
+
u("span", KS, y(n(v)("Есть несохранённые изменения")), 1),
|
|
25597
25604
|
w(n(oe), {
|
|
25598
25605
|
variant: "ghost",
|
|
25599
25606
|
size: "sm",
|
|
@@ -25619,7 +25626,7 @@ const AI = ne({
|
|
|
25619
25626
|
])) : H("", !0)
|
|
25620
25627
|
]));
|
|
25621
25628
|
}
|
|
25622
|
-
}), Ao = R9(),
|
|
25629
|
+
}), Ao = R9(), QF = Ao.register, tI = Ao.get, ej = Ao.has, aj = Ao.list, tj = Ao.clear, JS = Ao.registerBundle, YS = /* @__PURE__ */ ne({
|
|
25623
25630
|
__name: "UnknownEntry",
|
|
25624
25631
|
props: {
|
|
25625
25632
|
type: {},
|
|
@@ -25638,34 +25645,34 @@ const AI = ne({
|
|
|
25638
25645
|
_: 1
|
|
25639
25646
|
}));
|
|
25640
25647
|
}
|
|
25641
|
-
}),
|
|
25648
|
+
}), QS = {
|
|
25642
25649
|
key: 0,
|
|
25643
25650
|
class: "admin-infolist-entry"
|
|
25644
|
-
},
|
|
25651
|
+
}, eq = { class: "admin-infolist-entry__label" }, aq = {
|
|
25645
25652
|
key: 2,
|
|
25646
25653
|
class: "admin-infolist-rows"
|
|
25647
|
-
},
|
|
25654
|
+
}, tq = {
|
|
25648
25655
|
key: 3,
|
|
25649
25656
|
class: "admin-infolist-cols"
|
|
25650
|
-
},
|
|
25657
|
+
}, nq = {
|
|
25651
25658
|
key: 4,
|
|
25652
25659
|
class: "admin-infolist-section"
|
|
25653
|
-
},
|
|
25660
|
+
}, oq = {
|
|
25654
25661
|
key: 0,
|
|
25655
25662
|
class: "admin-infolist-section__hd"
|
|
25656
|
-
},
|
|
25663
|
+
}, cq = {
|
|
25657
25664
|
key: 0,
|
|
25658
25665
|
class: "admin-infolist-section__title"
|
|
25659
|
-
},
|
|
25666
|
+
}, iq = {
|
|
25660
25667
|
key: 1,
|
|
25661
25668
|
class: "admin-infolist-section__description"
|
|
25662
|
-
},
|
|
25669
|
+
}, lq = { class: "admin-infolist-section__body" }, rq = {
|
|
25663
25670
|
key: 5,
|
|
25664
25671
|
class: "admin-infolist-tabs"
|
|
25665
|
-
},
|
|
25672
|
+
}, dq = {
|
|
25666
25673
|
class: "admin-infolist-tabs__list",
|
|
25667
25674
|
role: "tablist"
|
|
25668
|
-
},
|
|
25675
|
+
}, sq = { class: "admin-infolist-tabs__panel" }, hq = /* @__PURE__ */ ne({
|
|
25669
25676
|
__name: "InfolistRenderer",
|
|
25670
25677
|
props: {
|
|
25671
25678
|
node: {}
|
|
@@ -25695,15 +25702,15 @@ const AI = ne({
|
|
|
25695
25702
|
}), m = M(() => t.node.items ?? []);
|
|
25696
25703
|
return (k, g) => {
|
|
25697
25704
|
const b = H9("InfolistRenderer", !0);
|
|
25698
|
-
return l.value.kind === "entry" && a.node.label ? (c(), h("div",
|
|
25699
|
-
u("span",
|
|
25705
|
+
return l.value.kind === "entry" && a.node.label ? (c(), h("div", QS, [
|
|
25706
|
+
u("span", eq, y(a.node.label), 1),
|
|
25700
25707
|
(c(), z($e(l.value.component), O2(jw(d.value)), null, 16))
|
|
25701
|
-
])) : 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",
|
|
25708
|
+
])) : 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", aq, [
|
|
25702
25709
|
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), z(b, {
|
|
25703
25710
|
key: I,
|
|
25704
25711
|
node: C
|
|
25705
25712
|
}, null, 8, ["node"]))), 128))
|
|
25706
|
-
])) : l.value.kind === "layout" && l.value.layoutType === "columns" ? (c(), h("div",
|
|
25713
|
+
])) : l.value.kind === "layout" && l.value.layoutType === "columns" ? (c(), h("div", tq, [
|
|
25707
25714
|
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), h("div", {
|
|
25708
25715
|
key: I,
|
|
25709
25716
|
class: "admin-infolist-cols__item",
|
|
@@ -25713,19 +25720,19 @@ const AI = ne({
|
|
|
25713
25720
|
}, [
|
|
25714
25721
|
w(b, { node: C }, null, 8, ["node"])
|
|
25715
25722
|
], 4))), 128))
|
|
25716
|
-
])) : l.value.kind === "layout" && (l.value.layoutType === "section" || l.value.layoutType === "block") ? (c(), h("section",
|
|
25717
|
-
s.value || r.value ? (c(), h("header",
|
|
25718
|
-
s.value ? (c(), h("h3",
|
|
25719
|
-
r.value ? (c(), h("p",
|
|
25723
|
+
])) : l.value.kind === "layout" && (l.value.layoutType === "section" || l.value.layoutType === "block") ? (c(), h("section", nq, [
|
|
25724
|
+
s.value || r.value ? (c(), h("header", oq, [
|
|
25725
|
+
s.value ? (c(), h("h3", cq, y(s.value), 1)) : H("", !0),
|
|
25726
|
+
r.value ? (c(), h("p", iq, y(r.value), 1)) : H("", !0)
|
|
25720
25727
|
])) : H("", !0),
|
|
25721
|
-
u("div",
|
|
25728
|
+
u("div", lq, [
|
|
25722
25729
|
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), z(b, {
|
|
25723
25730
|
key: I,
|
|
25724
25731
|
node: C
|
|
25725
25732
|
}, null, 8, ["node"]))), 128))
|
|
25726
25733
|
])
|
|
25727
|
-
])) : l.value.kind === "layout" && l.value.layoutType === "tabs" ? (c(), h("div",
|
|
25728
|
-
u("ul",
|
|
25734
|
+
])) : l.value.kind === "layout" && l.value.layoutType === "tabs" ? (c(), h("div", rq, [
|
|
25735
|
+
u("ul", dq, [
|
|
25729
25736
|
(c(!0), h(X, null, ee(m.value, (C, I) => (c(), h("li", {
|
|
25730
25737
|
key: C.key ?? I,
|
|
25731
25738
|
class: fe([
|
|
@@ -25734,44 +25741,44 @@ const AI = ne({
|
|
|
25734
25741
|
])
|
|
25735
25742
|
}, y(C.label), 3))), 128))
|
|
25736
25743
|
]),
|
|
25737
|
-
u("div",
|
|
25744
|
+
u("div", sq, [
|
|
25738
25745
|
(c(!0), h(X, null, ee(m.value[p.value]?.items ?? [], (C, I) => (c(), z(b, {
|
|
25739
25746
|
key: I,
|
|
25740
25747
|
node: C
|
|
25741
25748
|
}, null, 8, ["node"]))), 128))
|
|
25742
25749
|
])
|
|
25743
|
-
])) : (c(), z(
|
|
25750
|
+
])) : (c(), z(YS, {
|
|
25744
25751
|
key: 6,
|
|
25745
25752
|
type: a.node.type,
|
|
25746
25753
|
name: a.node.name
|
|
25747
25754
|
}, null, 8, ["type", "name"]));
|
|
25748
25755
|
};
|
|
25749
25756
|
}
|
|
25750
|
-
}),
|
|
25757
|
+
}), uq = { class: "admin-audit-timeline" }, yq = { class: "admin-audit-timeline__title" }, pq = {
|
|
25751
25758
|
key: 0,
|
|
25752
25759
|
class: "admin-audit-timeline__loading"
|
|
25753
|
-
},
|
|
25760
|
+
}, kq = {
|
|
25754
25761
|
key: 1,
|
|
25755
25762
|
class: "admin-audit-timeline__error"
|
|
25756
|
-
},
|
|
25763
|
+
}, mq = {
|
|
25757
25764
|
key: 2,
|
|
25758
25765
|
class: "admin-audit-timeline__empty"
|
|
25759
|
-
},
|
|
25766
|
+
}, vq = {
|
|
25760
25767
|
key: 3,
|
|
25761
25768
|
class: "admin-audit-timeline__list"
|
|
25762
|
-
},
|
|
25769
|
+
}, fq = {
|
|
25763
25770
|
class: "admin-audit-timeline__icon",
|
|
25764
25771
|
"aria-hidden": "true"
|
|
25765
|
-
},
|
|
25772
|
+
}, gq = { class: "admin-audit-timeline__body" }, Mq = { class: "admin-audit-timeline__row" }, Iq = { class: "admin-audit-timeline__actor" }, wq = { class: "admin-audit-timeline__verb" }, xq = { class: "admin-audit-timeline__when" }, bq = {
|
|
25766
25773
|
key: 0,
|
|
25767
25774
|
class: "admin-audit-timeline__diff"
|
|
25768
|
-
},
|
|
25775
|
+
}, Lq = { class: "admin-audit-timeline__diff-field" }, Cq = { class: "admin-audit-timeline__diff-values" }, _q = { class: "admin-audit-timeline__diff-after" }, Sq = {
|
|
25769
25776
|
key: 1,
|
|
25770
25777
|
class: "admin-audit-timeline__diff-before"
|
|
25771
|
-
},
|
|
25778
|
+
}, qq = { class: "admin-audit-timeline__diff-before" }, Aq = { class: "admin-audit-timeline__diff-after" }, zq = {
|
|
25772
25779
|
key: 1,
|
|
25773
25780
|
class: "admin-audit-timeline__detail"
|
|
25774
|
-
},
|
|
25781
|
+
}, Hq = /* @__PURE__ */ ne({
|
|
25775
25782
|
__name: "AuditTimeline",
|
|
25776
25783
|
props: {
|
|
25777
25784
|
subjectType: {},
|
|
@@ -25841,71 +25848,71 @@ const AI = ne({
|
|
|
25841
25848
|
}
|
|
25842
25849
|
return String(I);
|
|
25843
25850
|
}
|
|
25844
|
-
return (I, L) => (c(), h("section",
|
|
25845
|
-
u("h2",
|
|
25846
|
-
l.value ? (c(), h("div",
|
|
25851
|
+
return (I, L) => (c(), h("section", uq, [
|
|
25852
|
+
u("h2", yq, y(n(v)("История изменений")), 1),
|
|
25853
|
+
l.value ? (c(), h("div", pq, [
|
|
25847
25854
|
(c(), h(X, null, ee(3, (f) => w(n(Re), {
|
|
25848
25855
|
key: f,
|
|
25849
25856
|
height: "48px"
|
|
25850
25857
|
})), 64))
|
|
25851
|
-
])) : d.value ? (c(), h("div",
|
|
25858
|
+
])) : d.value ? (c(), h("div", kq, " Не удалось загрузить историю: " + y(d.value.message), 1)) : s.value ? (c(), h("ol", vq, [
|
|
25852
25859
|
(c(!0), h(X, null, ee(o.value, (f) => (c(), h("li", {
|
|
25853
25860
|
key: f.id,
|
|
25854
25861
|
class: "admin-audit-timeline__item"
|
|
25855
25862
|
}, [
|
|
25856
|
-
u("span",
|
|
25863
|
+
u("span", fq, [
|
|
25857
25864
|
w(n(ae), {
|
|
25858
25865
|
icon: r(f.event),
|
|
25859
25866
|
size: 14
|
|
25860
25867
|
}, null, 8, ["icon"])
|
|
25861
25868
|
]),
|
|
25862
|
-
u("div",
|
|
25863
|
-
u("div",
|
|
25869
|
+
u("div", gq, [
|
|
25870
|
+
u("div", Mq, [
|
|
25864
25871
|
w(n(dI), {
|
|
25865
25872
|
name: f.actor?.name ?? "?",
|
|
25866
25873
|
alt: f.actor?.name ?? n(v)("Неизвестный"),
|
|
25867
25874
|
size: "xs"
|
|
25868
25875
|
}, null, 8, ["name", "alt"]),
|
|
25869
|
-
u("span",
|
|
25870
|
-
u("span",
|
|
25871
|
-
u("span",
|
|
25876
|
+
u("span", Iq, y(f.actor?.name ?? n(v)("Система")), 1),
|
|
25877
|
+
u("span", wq, y(p(f.event)), 1),
|
|
25878
|
+
u("span", xq, y(m(f.created_at)), 1)
|
|
25872
25879
|
]),
|
|
25873
|
-
k(f) ? (c(), h("ul",
|
|
25880
|
+
k(f) ? (c(), h("ul", bq, [
|
|
25874
25881
|
(c(!0), h(X, null, ee(f.diff, (S) => (c(), h("li", {
|
|
25875
25882
|
key: S.field,
|
|
25876
25883
|
class: fe(["admin-audit-timeline__diff-row", `admin-audit-timeline__diff-row--${f.event}`])
|
|
25877
25884
|
}, [
|
|
25878
|
-
u("span",
|
|
25879
|
-
u("span",
|
|
25885
|
+
u("span", Lq, y(S.field), 1),
|
|
25886
|
+
u("span", Cq, [
|
|
25880
25887
|
f.event === "created" || f.event === "restored" ? (c(), h(X, { key: 0 }, [
|
|
25881
25888
|
L[0] || (L[0] = u("span", {
|
|
25882
25889
|
class: "admin-audit-timeline__diff-arrow",
|
|
25883
25890
|
"aria-hidden": "true"
|
|
25884
25891
|
}, "→", -1)),
|
|
25885
|
-
u("span",
|
|
25886
|
-
], 64)) : f.event === "deleted" || f.event === "destroyed" ? (c(), h("span",
|
|
25887
|
-
u("span",
|
|
25892
|
+
u("span", _q, y(C(S.after)), 1)
|
|
25893
|
+
], 64)) : f.event === "deleted" || f.event === "destroyed" ? (c(), h("span", Sq, y(C(S.before)), 1)) : (c(), h(X, { key: 2 }, [
|
|
25894
|
+
u("span", qq, y(C(S.before)), 1),
|
|
25888
25895
|
L[1] || (L[1] = u("span", {
|
|
25889
25896
|
class: "admin-audit-timeline__diff-arrow",
|
|
25890
25897
|
"aria-hidden": "true"
|
|
25891
25898
|
}, "→", -1)),
|
|
25892
|
-
u("span",
|
|
25899
|
+
u("span", Aq, y(C(S.after)), 1)
|
|
25893
25900
|
], 64))
|
|
25894
25901
|
])
|
|
25895
25902
|
], 2))), 128))
|
|
25896
|
-
])) : g(f) ? (c(), h("div",
|
|
25903
|
+
])) : g(f) ? (c(), h("div", zq, y(g(f)), 1)) : H("", !0)
|
|
25897
25904
|
])
|
|
25898
25905
|
]))), 128))
|
|
25899
|
-
])) : (c(), h("div",
|
|
25906
|
+
])) : (c(), h("div", mq, y(n(v)("Записей в истории пока нет.")), 1))
|
|
25900
25907
|
]));
|
|
25901
25908
|
}
|
|
25902
|
-
}),
|
|
25909
|
+
}), Vq = { class: "admin-page admin-resource-view" }, Pq = { class: "admin-resource-view__hd" }, Fq = { class: "admin-resource-view__hd-left" }, jq = { class: "admin-page__title" }, Dq = { class: "admin-resource-view__meta" }, Bq = ["data-variant", "data-status"], Rq = { class: "admin-resource-view__uid" }, $q = { class: "admin-resource-view__hd-right" }, Tq = {
|
|
25903
25910
|
key: 1,
|
|
25904
25911
|
class: "admin-resource-view__loading"
|
|
25905
|
-
},
|
|
25912
|
+
}, Uq = {
|
|
25906
25913
|
key: 2,
|
|
25907
25914
|
class: "admin-resource-view__grid"
|
|
25908
|
-
},
|
|
25915
|
+
}, Oq = { class: "admin-resource-view__main" }, Eq = { class: "admin-resource-view__card-title" }, Zq = { class: "admin-resource-view__aside" }, Wq = { class: "admin-resource-view__card-title" }, Gq = { class: "admin-resource-view__metrics" }, Nq = { class: "admin-resource-view__metric-label" }, Xq = { class: "admin-resource-view__metric-value" }, Kq = /* @__PURE__ */ ne({
|
|
25909
25916
|
__name: "ResourceViewPage",
|
|
25910
25917
|
props: {
|
|
25911
25918
|
slug: {},
|
|
@@ -26013,9 +26020,9 @@ const AI = ne({
|
|
|
26013
26020
|
}), o.hasError || d.push({ name: Z.value }).catch(() => {
|
|
26014
26021
|
}));
|
|
26015
26022
|
}
|
|
26016
|
-
return (P, B) => (c(), h("section",
|
|
26017
|
-
u("header",
|
|
26018
|
-
u("div",
|
|
26023
|
+
return (P, B) => (c(), h("section", Vq, [
|
|
26024
|
+
u("header", Pq, [
|
|
26025
|
+
u("div", Fq, [
|
|
26019
26026
|
u("button", {
|
|
26020
26027
|
type: "button",
|
|
26021
26028
|
class: "admin-resource-view__back",
|
|
@@ -26027,8 +26034,8 @@ const AI = ne({
|
|
|
26027
26034
|
}, null, 8, ["icon"]),
|
|
26028
26035
|
D(" " + y(g.value), 1)
|
|
26029
26036
|
]),
|
|
26030
|
-
u("h1",
|
|
26031
|
-
u("div",
|
|
26037
|
+
u("h1", jq, y(k.value), 1),
|
|
26038
|
+
u("div", Dq, [
|
|
26032
26039
|
C.value ? (c(), h("span", {
|
|
26033
26040
|
key: 0,
|
|
26034
26041
|
class: "admin-status-badge",
|
|
@@ -26040,11 +26047,11 @@ const AI = ne({
|
|
|
26040
26047
|
"aria-hidden": "true"
|
|
26041
26048
|
}, null, -1)),
|
|
26042
26049
|
D(" " + y(C.value), 1)
|
|
26043
|
-
], 8,
|
|
26044
|
-
u("span",
|
|
26050
|
+
], 8, Bq)) : H("", !0),
|
|
26051
|
+
u("span", Rq, y(b.value), 1)
|
|
26045
26052
|
])
|
|
26046
26053
|
]),
|
|
26047
|
-
u("div",
|
|
26054
|
+
u("div", $q, [
|
|
26048
26055
|
s.value ? (c(), z(n(oe), {
|
|
26049
26056
|
key: 0,
|
|
26050
26057
|
variant: "secondary",
|
|
@@ -26120,20 +26127,20 @@ const AI = ne({
|
|
|
26120
26127
|
]),
|
|
26121
26128
|
_: 1
|
|
26122
26129
|
})) : H("", !0),
|
|
26123
|
-
n(o).loading ? (c(), h("div",
|
|
26130
|
+
n(o).loading ? (c(), h("div", Tq, [
|
|
26124
26131
|
(c(), h(X, null, ee(8, (F) => w(n(Re), {
|
|
26125
26132
|
key: F,
|
|
26126
26133
|
height: "24px"
|
|
26127
26134
|
})), 64))
|
|
26128
|
-
])) : (c(), h("div",
|
|
26129
|
-
u("div",
|
|
26135
|
+
])) : (c(), h("div", Uq, [
|
|
26136
|
+
u("div", Oq, [
|
|
26130
26137
|
w(n(we), {
|
|
26131
26138
|
padding: "md",
|
|
26132
26139
|
class: "admin-resource-view__card"
|
|
26133
26140
|
}, {
|
|
26134
26141
|
default: x(() => [
|
|
26135
|
-
u("h2",
|
|
26136
|
-
(c(!0), h(X, null, ee(r.value, (F, O) => (c(), z(
|
|
26142
|
+
u("h2", Eq, y(n(v)("Основные данные")), 1),
|
|
26143
|
+
(c(!0), h(X, null, ee(r.value, (F, O) => (c(), z(hq, {
|
|
26137
26144
|
key: O,
|
|
26138
26145
|
node: F
|
|
26139
26146
|
}, null, 8, ["node"]))), 128))
|
|
@@ -26145,7 +26152,7 @@ const AI = ne({
|
|
|
26145
26152
|
class: "admin-resource-view__card"
|
|
26146
26153
|
}, {
|
|
26147
26154
|
default: x(() => [
|
|
26148
|
-
w(
|
|
26155
|
+
w(Hq, {
|
|
26149
26156
|
"subject-type": p.value,
|
|
26150
26157
|
"subject-id": a.id
|
|
26151
26158
|
}, null, 8, ["subject-type", "subject-id"])
|
|
@@ -26153,20 +26160,20 @@ const AI = ne({
|
|
|
26153
26160
|
_: 1
|
|
26154
26161
|
})
|
|
26155
26162
|
]),
|
|
26156
|
-
u("aside",
|
|
26163
|
+
u("aside", Zq, [
|
|
26157
26164
|
m.value.length > 0 ? (c(), z(n(we), {
|
|
26158
26165
|
key: 0,
|
|
26159
26166
|
padding: "md",
|
|
26160
26167
|
class: "admin-resource-view__card"
|
|
26161
26168
|
}, {
|
|
26162
26169
|
default: x(() => [
|
|
26163
|
-
u("h2",
|
|
26164
|
-
u("dl",
|
|
26170
|
+
u("h2", Wq, y(n(v)("Метрики")), 1),
|
|
26171
|
+
u("dl", Gq, [
|
|
26165
26172
|
(c(!0), h(X, null, ee(m.value, (F) => (c(), h(X, {
|
|
26166
26173
|
key: F.label
|
|
26167
26174
|
}, [
|
|
26168
|
-
u("dt",
|
|
26169
|
-
u("dd",
|
|
26175
|
+
u("dt", Nq, y(F.label), 1),
|
|
26176
|
+
u("dd", Xq, y(F.value), 1)
|
|
26170
26177
|
], 64))), 128))
|
|
26171
26178
|
])
|
|
26172
26179
|
]),
|
|
@@ -26180,10 +26187,10 @@ const AI = ne({
|
|
|
26180
26187
|
]))
|
|
26181
26188
|
]));
|
|
26182
26189
|
}
|
|
26183
|
-
}),
|
|
26184
|
-
const l = 4 * a + o - 4, d = "*-04-39?2$%%$%%'$%''%'''%')(%'))%(++'(++'(+.'+-.',/3',33)-/5)-43).36)058*18<+37<+4:<,4:E,5<A-7>C/8@F/:EH/<EK0=FM1?IP2@KS3BNV4DPY5FS\\6HV_6IXb7K[e8N^i9Pam;Rdp<Tgt".charCodeAt(l) - 35, i = l > 8 ? d : 1, s = t / i | 0, r = t % i, p = i - r, m = l > 8 ? s *
|
|
26190
|
+
}), Jq = [0.2, 3 / 8, 5 / 9, 2 / 3], Yq = (a, t) => (o) => {
|
|
26191
|
+
const l = 4 * a + o - 4, d = "*-04-39?2$%%$%%'$%''%'''%')(%'))%(++'(++'(+.'+-.',/3',33)-/5)-43).36)058*18<+37<+4:<,4:E,5<A-7>C/8@F/:EH/<EK0=FM1?IP2@KS3BNV4DPY5FS\\6HV_6IXb7K[e8N^i9Pam;Rdp<Tgt".charCodeAt(l) - 35, i = l > 8 ? d : 1, s = t / i | 0, r = t % i, p = i - r, m = l > 8 ? s * Jq[o] + (a > 5) & -2 : d, k = s - m;
|
|
26185
26192
|
return { t: p * k + r * k + r, o: [[p, k], [r, k + 1]], i: m };
|
|
26186
|
-
},
|
|
26193
|
+
}, Qq = { min: 0, L: 0, M: 1, Q: 2, H: 3, max: 3 }, io = (a) => new Uint8Array(a), jo = (a) => {
|
|
26187
26194
|
const t = new Error(`lean-qr error ${a}`);
|
|
26188
26195
|
throw t.code = a, t;
|
|
26189
26196
|
}, nc = (a) => "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(a), nI = (a) => a.charCodeAt(0), rw = (...a) => (t, o) => a.forEach((l) => l(t, o)), dw = (a) => (t) => {
|
|
@@ -26216,7 +26223,7 @@ const wI = zo((a) => (t, o) => {
|
|
|
26216
26223
|
for (const l of a) t.push(oI().get(l), 13);
|
|
26217
26224
|
}, (a) => oI().has(a), (a, t) => 12 + 2 * (t > 26) + 2 * (t > 9) + 13 * a);
|
|
26218
26225
|
wI._ = !0;
|
|
26219
|
-
const uw = [sw, hw, Lo, MI, wI, II],
|
|
26226
|
+
const uw = [sw, hw, Lo, MI, wI, II], eA = { auto: (a, { modes: t = uw } = {}) => (o, l) => {
|
|
26220
26227
|
const d = t.map((k, g) => {
|
|
26221
26228
|
const b = /* @__PURE__ */ new Map(), C = (I, L) => (b.has(I) || b.set(I, L(I, l)), b.get(I));
|
|
26222
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) };
|
|
@@ -26249,7 +26256,7 @@ const uw = [sw, hw, Lo, MI, wI, II], Qq = { auto: (a, { modes: t = uw } = {}) =>
|
|
|
26249
26256
|
const m = [];
|
|
26250
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)));
|
|
26251
26258
|
m.reverse().forEach((k) => k(o, l));
|
|
26252
|
-
}, multi: rw, eci: dw, bytes: gI, numeric: sw, alphaNumeric: hw, ascii: Lo, iso8859_1: MI, shift_jis: wI, utf8: II },
|
|
26259
|
+
}, multi: rw, eci: dw, bytes: gI, numeric: sw, alphaNumeric: hw, ascii: Lo, iso8859_1: MI, shift_jis: wI, utf8: II }, aA = () => ({ F: io(2956), I: 0, push(a, t) {
|
|
26253
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;
|
|
26254
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 = `
|
|
26255
26262
|
`, pad: s = 4, padX: r = s, padY: p = s } = {}) {
|
|
@@ -26275,11 +26282,11 @@ const uw = [sw, hw, Lo, MI, wI, II], Qq = { auto: (a, { modes: t = uw } = {}) =>
|
|
|
26275
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);
|
|
26276
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);
|
|
26277
26284
|
for (let a = 0, t = 1; a < 255; t = 2 * t ^ 285 * (t > 127)) A9[A9[t + 255] = a++] = t;
|
|
26278
|
-
const yw = (a) => A9[a % 255], pw = (a) => A9[a + 255],
|
|
26285
|
+
const yw = (a) => A9[a % 255], pw = (a) => A9[a + 255], tA = (a, t) => {
|
|
26279
26286
|
const o = io(a.length + t.length - 1);
|
|
26280
26287
|
for (let l = 0; l < a.length; ++l) for (let d = 0; d < t.length; ++d) o[l + d] ^= yw(a[l] + t[d]);
|
|
26281
26288
|
return o.map(pw);
|
|
26282
|
-
},
|
|
26289
|
+
}, nA = (a, t) => {
|
|
26283
26290
|
const o = io(a.length + t.length - 1);
|
|
26284
26291
|
o.set(a, 0);
|
|
26285
26292
|
for (let l = 0; l < a.length; ++l) if (o[l]) {
|
|
@@ -26288,26 +26295,26 @@ const yw = (a) => A9[a % 255], pw = (a) => A9[a + 255], aA = (a, t) => {
|
|
|
26288
26295
|
}
|
|
26289
26296
|
return o.slice(a.length);
|
|
26290
26297
|
}, cI = [[0], [0, 0]];
|
|
26291
|
-
for (let a = 1; a < 30; ++a) cI.push(
|
|
26292
|
-
const
|
|
26298
|
+
for (let a = 1; a < 30; ++a) cI.push(tA(cI[a], [0, a]));
|
|
26299
|
+
const oA = (a, t) => {
|
|
26293
26300
|
const o = [[], []];
|
|
26294
26301
|
let l = 0, d = 0;
|
|
26295
26302
|
for (const [s, r] of t.o) for (let p = 0; p < s; ++p, l += r) {
|
|
26296
26303
|
const m = a.slice(l, l + r);
|
|
26297
|
-
o[0].push(m), o[1].push(
|
|
26304
|
+
o[0].push(m), o[1].push(nA(m, cI[t.i])), d += r + t.i;
|
|
26298
26305
|
}
|
|
26299
26306
|
const i = io(d);
|
|
26300
26307
|
d = 0;
|
|
26301
|
-
for (const s of o) for (let r
|
|
26302
|
-
|
|
26303
|
-
for (const m of s)
|
|
26308
|
+
for (const s of o) for (let r, p = 0; d !== r; ++p) {
|
|
26309
|
+
r = d;
|
|
26310
|
+
for (const m of s) p < m.length && (i[d++] = m[p]);
|
|
26304
26311
|
}
|
|
26305
26312
|
return i;
|
|
26306
26313
|
}, kw = (a, t, o) => {
|
|
26307
26314
|
let l = a <<= o;
|
|
26308
26315
|
for (let d = 134217728; d >>= 1; ) l & d && (l ^= t * (d >> o));
|
|
26309
26316
|
return l | a;
|
|
26310
|
-
},
|
|
26317
|
+
}, cA = ({ size: a, K: t }, o) => {
|
|
26311
26318
|
const l = (s, r, p, m) => {
|
|
26312
26319
|
for (; p-- > 0; s += a) t.fill(m, s, s + r);
|
|
26313
26320
|
}, d = (s, r, p) => {
|
|
@@ -26323,7 +26330,7 @@ const nA = (a, t) => {
|
|
|
26323
26330
|
d(3, 3, 7), d(a - 4, 3, 7);
|
|
26324
26331
|
for (let s = 0; s < a; ++s) for (let r = s; r < a; ++r) t[r * a + s] = t[s * a + r];
|
|
26325
26332
|
t[(a - 8) * a + 8] = 3;
|
|
26326
|
-
},
|
|
26333
|
+
}, iA = ({ size: a, K: t }) => {
|
|
26327
26334
|
const o = [];
|
|
26328
26335
|
for (let l = a - 2, d = a, i = -1; l >= 0; l -= 2) {
|
|
26329
26336
|
for (l === 5 && (l = 4); d += i, d !== -1 && d !== a; ) {
|
|
@@ -26333,7 +26340,7 @@ const nA = (a, t) => {
|
|
|
26333
26340
|
i *= -1;
|
|
26334
26341
|
}
|
|
26335
26342
|
return o;
|
|
26336
|
-
},
|
|
26343
|
+
}, lA = ({ K: a }, t, o) => t.forEach((l, d) => a[l] = o[d >> 3] >> (7 & ~d) & 1), rA = ({ size: a, K: t }, o, l, d) => {
|
|
26337
26344
|
for (let s = 0; s < a; ++s) for (let r = 0; r < a; ++r) {
|
|
26338
26345
|
const p = s * a + r;
|
|
26339
26346
|
t[p] ^= !(o(r, s) || 2 & t[p]);
|
|
@@ -26341,11 +26348,11 @@ const nA = (a, t) => {
|
|
|
26341
26348
|
let i = 21522 ^ kw((1 ^ d) << 3 | l, 1335, 10);
|
|
26342
26349
|
for (let s = 0; s++ < 8; i >>= 1) t[(s - (s < 7)) * a + 8] = 1 & i, t[9 * a - s] = 1 & i;
|
|
26343
26350
|
for (let s = 8; --s, i; i >>= 1) t[8 * a + s - (s < 7)] = 1 & i, t[(a - s) * a + 8] = 1 & i;
|
|
26344
|
-
},
|
|
26351
|
+
}, dA = ({ size: a, K: t }, o = 0, l = 0) => {
|
|
26345
26352
|
for (let d = 0; d < a; ++d) {
|
|
26346
|
-
for (let i = 0; i < 2; ++i) for (let s, r = 0, p = 0, m =
|
|
26353
|
+
for (let i = 0; i < 2; ++i) for (let s, r = 0, p = 0, m = 0; r < a; ++r) {
|
|
26347
26354
|
const k = 1 & t[i ? d * a + r : r * a + d];
|
|
26348
|
-
l += k, p = (p >> 1 | 2098176) & (3047517 ^ k - 1), 2049 & p && (o += 40), k
|
|
26355
|
+
l += k, p = (p >> 1 | 2098176) & (3047517 ^ k - 1), 2049 & p && (o += 40), k !== s && (m = 0), s = k, o += ++m === 5 ? 3 : m > 5;
|
|
26349
26356
|
}
|
|
26350
26357
|
if (d) for (let i = a + d, s = 5 * t[d - 1] ^ t[d]; i < a * a; i += a) {
|
|
26351
26358
|
const r = 5 * t[i - 1] ^ t[i];
|
|
@@ -26354,29 +26361,29 @@ const nA = (a, t) => {
|
|
|
26354
26361
|
}
|
|
26355
26362
|
return o + 10 * (10 * Math.abs(l / (a * a) - 1) | 0);
|
|
26356
26363
|
}, jI = [], iI = (a = jo(1), { minCorrectionLevel: t = 0, maxCorrectionLevel: o = 3, minVersion: l = 1, maxVersion: d = 40, mask: i, trailer: s = 60433, ...r } = {}) => {
|
|
26357
|
-
o < t && jo(3), d < l && jo(2), typeof a == "string" && (a =
|
|
26364
|
+
o < t && jo(3), d < l && jo(2), typeof a == "string" && (a = eA.auto(a, r));
|
|
26358
26365
|
for (let p = l, m = 0; p <= d; ++p) {
|
|
26359
26366
|
let k = jI[p];
|
|
26360
|
-
k || (jI[p] = k = X9(4 * p + 17),
|
|
26361
|
-
const g =
|
|
26367
|
+
k || (jI[p] = k = X9(4 * p + 17), cA(k, p), k.p = iA(k));
|
|
26368
|
+
const g = Yq(p, k.p.length >> 3);
|
|
26362
26369
|
if (8 * g(t).t < m) continue;
|
|
26363
|
-
const b =
|
|
26370
|
+
const b = aA();
|
|
26364
26371
|
a(b, p), m = b.I;
|
|
26365
26372
|
for (let C = o; C >= t; --C) {
|
|
26366
26373
|
const I = g(C);
|
|
26367
26374
|
if (8 * I.t < m) continue;
|
|
26368
26375
|
for (b.I = m + 11 & -8; b.I < 8 * I.t; ) b.push(s, 16);
|
|
26369
26376
|
const L = X9(k.size, k.K);
|
|
26370
|
-
return
|
|
26377
|
+
return lA(L, k.p, oA(b.F, I)), (K9[i ?? -1] ? [K9[i]] : K9).map((f, S) => {
|
|
26371
26378
|
const Z = X9(L.size, L.K);
|
|
26372
|
-
return
|
|
26379
|
+
return rA(Z, f, i ?? S, C), Z.s = dA(Z), Z;
|
|
26373
26380
|
}).reduce((f, S) => S.s < f.s ? S : f);
|
|
26374
26381
|
}
|
|
26375
26382
|
}
|
|
26376
26383
|
jo(4);
|
|
26377
26384
|
};
|
|
26378
26385
|
iI.with = (...a) => (t, o) => iI(t, { modes: [...uw, ...a], ...o });
|
|
26379
|
-
const
|
|
26386
|
+
const sA = "http://www.w3.org/2000/svg", hA = (a, t, o, l = []) => [`<${t}`, ...Object.entries(o).map(([d, i]) => ` ${d}="${`${i}`.replace(/[^ -~]|["&]/g, "")}"`), ">", ...l, `</${t}>`].join(""), uA = (a) => {
|
|
26380
26387
|
const t = /* @__PURE__ */ new Map(), o = [], l = (d) => {
|
|
26381
26388
|
const i = t.get(d);
|
|
26382
26389
|
return t.delete(d), i;
|
|
@@ -26390,40 +26397,40 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26390
26397
|
}
|
|
26391
26398
|
}
|
|
26392
26399
|
return o.map((d) => `M${d.join("L")}Z`).join("");
|
|
26393
|
-
},
|
|
26400
|
+
}, yA = (a, { on: t = "black", off: o, pad: l = 4, padX: d = l, padY: i = l, width: s, height: r, scale: p = 1 }, m, k, g) => {
|
|
26394
26401
|
const b = a.size + 2 * d, C = a.size + 2 * i;
|
|
26395
|
-
return m(k, "svg", { xmlns:
|
|
26396
|
-
},
|
|
26402
|
+
return m(k, "svg", { xmlns: sA, version: "1.1", viewBox: `${-d} ${-i} ${b} ${C}`, width: s ?? b * p, height: r ?? C * p, "shape-rendering": "crispedges" }, [o ? m(k, "rect", { x: -d, y: -i, width: b, height: C, fill: o }) : "", m(k, "path", { d: uA(a), fill: t })], g);
|
|
26403
|
+
}, pA = (a, t = {}) => (t.xmlDeclaration ? '<?xml version="1.0" encoding="UTF-8" ?>' : "") + yA(a, t, hA), kA = { class: "admin-2fa" }, mA = {
|
|
26397
26404
|
key: 0,
|
|
26398
26405
|
class: "admin-2fa__panel"
|
|
26399
|
-
},
|
|
26406
|
+
}, vA = { class: "admin-2fa__lead" }, fA = {
|
|
26400
26407
|
key: 0,
|
|
26401
26408
|
class: "admin-2fa__error"
|
|
26402
|
-
},
|
|
26409
|
+
}, gA = {
|
|
26403
26410
|
key: 1,
|
|
26404
26411
|
class: "admin-2fa__panel"
|
|
26405
|
-
},
|
|
26412
|
+
}, MA = { class: "admin-2fa__steps" }, IA = {
|
|
26406
26413
|
class: "admin-2fa__secret",
|
|
26407
26414
|
"data-testid": "2fa-secret"
|
|
26408
|
-
},
|
|
26415
|
+
}, wA = ["innerHTML"], xA = {
|
|
26409
26416
|
key: 1,
|
|
26410
26417
|
class: "admin-2fa__hint"
|
|
26411
|
-
},
|
|
26418
|
+
}, bA = { class: "admin-2fa__uri" }, LA = { class: "admin-2fa__code-row" }, CA = {
|
|
26412
26419
|
key: 0,
|
|
26413
26420
|
class: "admin-2fa__error"
|
|
26414
|
-
},
|
|
26421
|
+
}, _A = {
|
|
26415
26422
|
key: 2,
|
|
26416
26423
|
class: "admin-2fa__panel admin-2fa__panel--success"
|
|
26417
|
-
},
|
|
26424
|
+
}, SA = { class: "admin-2fa__lead" }, qA = { class: "admin-2fa__codes" }, AA = {
|
|
26418
26425
|
key: 3,
|
|
26419
26426
|
class: "admin-2fa__panel"
|
|
26420
|
-
},
|
|
26427
|
+
}, zA = { class: "admin-2fa__lead" }, HA = { class: "admin-2fa__manage" }, VA = {
|
|
26421
26428
|
key: 0,
|
|
26422
26429
|
class: "admin-2fa__error"
|
|
26423
|
-
},
|
|
26430
|
+
}, PA = {
|
|
26424
26431
|
key: 1,
|
|
26425
26432
|
class: "admin-2fa__codes"
|
|
26426
|
-
},
|
|
26433
|
+
}, FA = /* @__PURE__ */ ne({
|
|
26427
26434
|
__name: "TwoFactorSetup",
|
|
26428
26435
|
props: {
|
|
26429
26436
|
enabled: { type: Boolean }
|
|
@@ -26511,15 +26518,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26511
26518
|
const Z = M(() => i.value.match(/.{1,4}/g)?.join(" ") ?? i.value), U = M(() => {
|
|
26512
26519
|
if (s.value === "") return "";
|
|
26513
26520
|
try {
|
|
26514
|
-
const V = iI(s.value, { minCorrectionLevel:
|
|
26515
|
-
return
|
|
26521
|
+
const V = iI(s.value, { minCorrectionLevel: Qq.M });
|
|
26522
|
+
return pA(V, { on: "#18181b", off: "transparent", padX: 1, padY: 1 });
|
|
26516
26523
|
} catch {
|
|
26517
26524
|
return "";
|
|
26518
26525
|
}
|
|
26519
26526
|
});
|
|
26520
|
-
return (V, T) => (c(), h("div",
|
|
26521
|
-
d.value === "idle" ? (c(), h("div",
|
|
26522
|
-
u("p",
|
|
26527
|
+
return (V, T) => (c(), h("div", kA, [
|
|
26528
|
+
d.value === "idle" ? (c(), h("div", mA, [
|
|
26529
|
+
u("p", vA, y(n(v)("Двухфакторная аутентификация добавляет второй слой защиты — даже если пароль попадёт")) + " " + y(n(v)("в чужие руки, без OTP-кода из приложения войти не получится.")), 1),
|
|
26523
26530
|
w(n(oe), {
|
|
26524
26531
|
variant: "primary",
|
|
26525
26532
|
loading: k.value,
|
|
@@ -26537,13 +26544,13 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26537
26544
|
]),
|
|
26538
26545
|
_: 1
|
|
26539
26546
|
}, 8, ["loading"]),
|
|
26540
|
-
g.value ? (c(), h("p",
|
|
26541
|
-
])) : d.value === "setup" ? (c(), h("div",
|
|
26542
|
-
u("ol",
|
|
26547
|
+
g.value ? (c(), h("p", fA, y(g.value), 1)) : H("", !0)
|
|
26548
|
+
])) : d.value === "setup" ? (c(), h("div", gA, [
|
|
26549
|
+
u("ol", MA, [
|
|
26543
26550
|
u("li", null, y(n(v)("Откройте Authenticator-приложение (Google Authenticator, 1Password, Authy…).")), 1),
|
|
26544
26551
|
u("li", null, [
|
|
26545
26552
|
D(y(n(v)("Добавьте новый аккаунт вручную, скопировав ключ:")) + " ", 1),
|
|
26546
|
-
u("div",
|
|
26553
|
+
u("div", IA, [
|
|
26547
26554
|
u("code", null, y(Z.value), 1),
|
|
26548
26555
|
u("button", {
|
|
26549
26556
|
type: "button",
|
|
@@ -26562,15 +26569,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26562
26569
|
key: 0,
|
|
26563
26570
|
class: "admin-2fa__qr",
|
|
26564
26571
|
innerHTML: U.value
|
|
26565
|
-
}, null, 8,
|
|
26572
|
+
}, null, 8, wA)) : (c(), h("p", xA, [
|
|
26566
26573
|
D(y(n(v)("Либо отсканируйте QR с другого устройства — поделитесь URI:")) + " ", 1),
|
|
26567
|
-
u("code",
|
|
26574
|
+
u("code", bA, y(s.value), 1)
|
|
26568
26575
|
]))
|
|
26569
26576
|
])
|
|
26570
26577
|
]),
|
|
26571
26578
|
u("li", null, [
|
|
26572
26579
|
D(y(n(v)("Введите 6-значный код из приложения:")) + " ", 1),
|
|
26573
|
-
u("div",
|
|
26580
|
+
u("div", LA, [
|
|
26574
26581
|
w(n(Le), {
|
|
26575
26582
|
modelValue: r.value,
|
|
26576
26583
|
"onUpdate:modelValue": T[0] || (T[0] = (P) => r.value = P),
|
|
@@ -26594,10 +26601,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26594
26601
|
])
|
|
26595
26602
|
])
|
|
26596
26603
|
]),
|
|
26597
|
-
g.value ? (c(), h("p",
|
|
26598
|
-
])) : d.value === "confirmed" ? (c(), h("div",
|
|
26599
|
-
u("p",
|
|
26600
|
-
u("div",
|
|
26604
|
+
g.value ? (c(), h("p", CA, y(g.value), 1)) : H("", !0)
|
|
26605
|
+
])) : d.value === "confirmed" ? (c(), h("div", _A, [
|
|
26606
|
+
u("p", SA, y(n(v)("2FA активирована. Сохраните recovery-коды в безопасном месте — они нужны если вы")) + " " + y(n(v)("потеряете доступ к Authenticator-приложению.")), 1),
|
|
26607
|
+
u("div", qA, [
|
|
26601
26608
|
(c(!0), h(X, null, ee(p.value, (P) => (c(), h("code", {
|
|
26602
26609
|
key: P,
|
|
26603
26610
|
class: "admin-2fa__codes-item"
|
|
@@ -26627,9 +26634,9 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26627
26634
|
]),
|
|
26628
26635
|
_: 1
|
|
26629
26636
|
})
|
|
26630
|
-
])) : d.value === "enabled" ? (c(), h("div",
|
|
26631
|
-
u("p",
|
|
26632
|
-
u("div",
|
|
26637
|
+
])) : d.value === "enabled" ? (c(), h("div", AA, [
|
|
26638
|
+
u("p", zA, y(n(v)("2FA включена. Если у вас остался доступ к Authenticator app — всё в порядке.")), 1),
|
|
26639
|
+
u("div", HA, [
|
|
26633
26640
|
w(n(Le), {
|
|
26634
26641
|
modelValue: m.value,
|
|
26635
26642
|
"onUpdate:modelValue": T[2] || (T[2] = (P) => m.value = P),
|
|
@@ -26670,8 +26677,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26670
26677
|
_: 1
|
|
26671
26678
|
}, 8, ["loading"])
|
|
26672
26679
|
]),
|
|
26673
|
-
g.value ? (c(), h("p",
|
|
26674
|
-
p.value.length > 0 ? (c(), h("div",
|
|
26680
|
+
g.value ? (c(), h("p", VA, y(g.value), 1)) : H("", !0),
|
|
26681
|
+
p.value.length > 0 ? (c(), h("div", PA, [
|
|
26675
26682
|
(c(!0), h(X, null, ee(p.value, (P) => (c(), h("code", {
|
|
26676
26683
|
key: P,
|
|
26677
26684
|
class: "admin-2fa__codes-item"
|
|
@@ -26680,10 +26687,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26680
26687
|
])) : H("", !0)
|
|
26681
26688
|
]));
|
|
26682
26689
|
}
|
|
26683
|
-
}),
|
|
26690
|
+
}), jA = { class: "admin-page admin-profile" }, DA = { class: "admin-page__hd" }, BA = { class: "admin-page__title-wrap" }, RA = { class: "admin-page__title" }, $A = { class: "admin-page__count" }, TA = { class: "admin-profile__layout" }, UA = {
|
|
26684
26691
|
class: "admin-profile__nav",
|
|
26685
26692
|
"aria-label": "Profile sections"
|
|
26686
|
-
},
|
|
26693
|
+
}, OA = ["onClick"], EA = ["data-icon"], ZA = { class: "admin-profile__content" }, WA = { class: "admin-profile__card-hd" }, GA = { class: "admin-profile__card-title" }, NA = { class: "admin-profile__hero" }, XA = { class: "admin-profile__hero-text" }, KA = { class: "admin-profile__hero-name" }, JA = { class: "admin-profile__hero-meta" }, YA = { class: "admin-profile__form" }, QA = { class: "admin-profile__card-ft" }, ez = { class: "admin-profile__card-hd" }, az = { class: "admin-profile__card-title" }, tz = { class: "admin-profile__hint" }, nz = /* @__PURE__ */ ne({
|
|
26687
26694
|
__name: "ProfilePage",
|
|
26688
26695
|
props: {
|
|
26689
26696
|
title: { default: "Profile" },
|
|
@@ -26739,15 +26746,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26739
26746
|
function Z() {
|
|
26740
26747
|
L.value = !1, d.user && (d.user.twoFactorEnabled = !1), l("two-factor-disable");
|
|
26741
26748
|
}
|
|
26742
|
-
return (U, V) => (c(), h("section",
|
|
26743
|
-
u("header",
|
|
26744
|
-
u("div",
|
|
26745
|
-
u("h1",
|
|
26746
|
-
u("div",
|
|
26749
|
+
return (U, V) => (c(), h("section", jA, [
|
|
26750
|
+
u("header", DA, [
|
|
26751
|
+
u("div", BA, [
|
|
26752
|
+
u("h1", RA, y(a.title), 1),
|
|
26753
|
+
u("div", $A, y(a.subtitle ?? n(v)("Личные данные, безопасность, токены")), 1)
|
|
26747
26754
|
])
|
|
26748
26755
|
]),
|
|
26749
|
-
u("div",
|
|
26750
|
-
u("nav",
|
|
26756
|
+
u("div", TA, [
|
|
26757
|
+
u("nav", UA, [
|
|
26751
26758
|
(c(), h(X, null, ee(r, (T) => u("button", {
|
|
26752
26759
|
key: T.id,
|
|
26753
26760
|
type: "button",
|
|
@@ -26760,28 +26767,28 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26760
26767
|
u("span", {
|
|
26761
26768
|
class: "admin-profile__nav-icon",
|
|
26762
26769
|
"data-icon": T.icon
|
|
26763
|
-
}, null, 8,
|
|
26770
|
+
}, null, 8, EA),
|
|
26764
26771
|
u("span", null, y(T.label), 1)
|
|
26765
|
-
], 10,
|
|
26772
|
+
], 10, OA)), 64))
|
|
26766
26773
|
]),
|
|
26767
|
-
u("div",
|
|
26774
|
+
u("div", ZA, [
|
|
26768
26775
|
p.value === "general" ? (c(), z(n(we), {
|
|
26769
26776
|
key: 0,
|
|
26770
26777
|
padding: "md"
|
|
26771
26778
|
}, {
|
|
26772
26779
|
default: x(() => [
|
|
26773
|
-
u("header",
|
|
26774
|
-
u("h3",
|
|
26780
|
+
u("header", WA, [
|
|
26781
|
+
u("h3", GA, y(n(v)("Профиль")), 1)
|
|
26775
26782
|
]),
|
|
26776
|
-
u("div",
|
|
26783
|
+
u("div", NA, [
|
|
26777
26784
|
w(n(dI), {
|
|
26778
26785
|
src: n(d).user?.avatar ?? void 0,
|
|
26779
26786
|
name: n(d).user?.name ?? "?",
|
|
26780
26787
|
size: "lg"
|
|
26781
26788
|
}, null, 8, ["src", "name"]),
|
|
26782
|
-
u("div",
|
|
26783
|
-
u("div",
|
|
26784
|
-
u("div",
|
|
26789
|
+
u("div", XA, [
|
|
26790
|
+
u("div", KA, y(n(d).user?.name ?? "—"), 1),
|
|
26791
|
+
u("div", JA, y(n(d).user?.email ?? "—"), 1)
|
|
26785
26792
|
]),
|
|
26786
26793
|
V[4] || (V[4] = u("div", { style: { flex: "1" } }, null, -1)),
|
|
26787
26794
|
w(n(oe), {
|
|
@@ -26795,7 +26802,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26795
26802
|
_: 1
|
|
26796
26803
|
})
|
|
26797
26804
|
]),
|
|
26798
|
-
u("div",
|
|
26805
|
+
u("div", YA, [
|
|
26799
26806
|
w(n(Le), {
|
|
26800
26807
|
modelValue: k.value.name,
|
|
26801
26808
|
"onUpdate:modelValue": V[0] || (V[0] = (T) => k.value.name = T),
|
|
@@ -26822,7 +26829,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26822
26829
|
label: n(v)("Тема")
|
|
26823
26830
|
}, null, 8, ["modelValue", "options", "label"])
|
|
26824
26831
|
]),
|
|
26825
|
-
u("footer",
|
|
26832
|
+
u("footer", QA, [
|
|
26826
26833
|
w(n(oe), {
|
|
26827
26834
|
variant: "primary",
|
|
26828
26835
|
onClick: C
|
|
@@ -26840,8 +26847,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26840
26847
|
padding: "md"
|
|
26841
26848
|
}, {
|
|
26842
26849
|
default: x(() => [
|
|
26843
|
-
u("header",
|
|
26844
|
-
u("h3",
|
|
26850
|
+
u("header", ez, [
|
|
26851
|
+
u("h3", az, y(n(v)("Двухфакторная аутентификация")), 1),
|
|
26845
26852
|
w(n(yI), {
|
|
26846
26853
|
variant: f.value ? "success" : "default"
|
|
26847
26854
|
}, {
|
|
@@ -26852,7 +26859,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26852
26859
|
}, 8, ["variant"])
|
|
26853
26860
|
]),
|
|
26854
26861
|
ze(U.$slots, "enable-2fa", {}, () => [
|
|
26855
|
-
w(
|
|
26862
|
+
w(FA, {
|
|
26856
26863
|
enabled: f.value,
|
|
26857
26864
|
onEnabled: S,
|
|
26858
26865
|
onDisabled: Z
|
|
@@ -26860,14 +26867,17 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26860
26867
|
])
|
|
26861
26868
|
]),
|
|
26862
26869
|
_: 3
|
|
26863
|
-
})) : ze(U.$slots, p.value, {
|
|
26870
|
+
})) : ze(U.$slots, p.value, {
|
|
26871
|
+
key: 2,
|
|
26872
|
+
section: p.value
|
|
26873
|
+
}, () => [
|
|
26864
26874
|
w(n(we), { padding: "md" }, {
|
|
26865
26875
|
default: x(() => [
|
|
26866
|
-
u("p",
|
|
26876
|
+
u("p", tz, " Section «" + y(p.value) + "» не реализована библиотекой — host-проект подключает её через slot " + y(p.value) + ". ", 1)
|
|
26867
26877
|
]),
|
|
26868
26878
|
_: 1
|
|
26869
26879
|
})
|
|
26870
|
-
]
|
|
26880
|
+
])
|
|
26871
26881
|
])
|
|
26872
26882
|
])
|
|
26873
26883
|
]));
|
|
@@ -26911,19 +26921,19 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26911
26921
|
loading: a.loading
|
|
26912
26922
|
}, null, 8, ["title", "value", "prefix", "suffix", "trend", "precision", "tone", "loading"]));
|
|
26913
26923
|
}
|
|
26914
|
-
}),
|
|
26924
|
+
}), oz = {
|
|
26915
26925
|
key: 0,
|
|
26916
26926
|
class: "admin-widget__hd"
|
|
26917
|
-
},
|
|
26927
|
+
}, cz = {
|
|
26918
26928
|
key: 0,
|
|
26919
26929
|
class: "admin-widget__title"
|
|
26920
|
-
},
|
|
26930
|
+
}, iz = {
|
|
26921
26931
|
key: 1,
|
|
26922
26932
|
class: "admin-widget__desc"
|
|
26923
|
-
},
|
|
26933
|
+
}, lz = {
|
|
26924
26934
|
key: 1,
|
|
26925
26935
|
class: "admin-widget__empty"
|
|
26926
|
-
},
|
|
26936
|
+
}, rz = ["viewBox", "height", "aria-label"], dz = ["x", "y", "width", "height", "fill", "data-label", "data-value"], mw = /* @__PURE__ */ ne({
|
|
26927
26937
|
__name: "BarChartWidget",
|
|
26928
26938
|
props: {
|
|
26929
26939
|
title: { default: "" },
|
|
@@ -26950,11 +26960,11 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26950
26960
|
class: "admin-widget"
|
|
26951
26961
|
}, {
|
|
26952
26962
|
default: x(() => [
|
|
26953
|
-
a.title || a.description ? (c(), h("header",
|
|
26954
|
-
a.title ? (c(), h("h3",
|
|
26955
|
-
a.description ? (c(), h("p",
|
|
26963
|
+
a.title || a.description ? (c(), h("header", oz, [
|
|
26964
|
+
a.title ? (c(), h("h3", cz, y(a.title), 1)) : H("", !0),
|
|
26965
|
+
a.description ? (c(), h("p", iz, y(a.description), 1)) : H("", !0)
|
|
26956
26966
|
])) : H("", !0),
|
|
26957
|
-
o.value ? (c(), h("div",
|
|
26967
|
+
o.value ? (c(), h("div", lz, y(n(v)("Нет данных за период")), 1)) : (c(), h("svg", {
|
|
26958
26968
|
key: 2,
|
|
26959
26969
|
class: "admin-widget-bar-chart",
|
|
26960
26970
|
viewBox: `0 0 100 ${a.height}`,
|
|
@@ -26976,22 +26986,22 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26976
26986
|
"data-value": r.value
|
|
26977
26987
|
}, [
|
|
26978
26988
|
u("title", null, y(r.label) + ": " + y(r.value), 1)
|
|
26979
|
-
], 8,
|
|
26980
|
-
], 8,
|
|
26989
|
+
], 8, dz))), 128))
|
|
26990
|
+
], 8, rz))
|
|
26981
26991
|
]),
|
|
26982
26992
|
_: 1
|
|
26983
26993
|
}));
|
|
26984
26994
|
}
|
|
26985
|
-
}),
|
|
26995
|
+
}), sz = {
|
|
26986
26996
|
key: 0,
|
|
26987
26997
|
class: "admin-widget__hd"
|
|
26988
|
-
},
|
|
26998
|
+
}, hz = { class: "admin-widget__title" }, uz = {
|
|
26989
26999
|
key: 1,
|
|
26990
27000
|
class: "admin-widget__empty"
|
|
26991
|
-
},
|
|
27001
|
+
}, yz = {
|
|
26992
27002
|
key: 2,
|
|
26993
27003
|
class: "admin-donut-widget__row"
|
|
26994
|
-
},
|
|
27004
|
+
}, pz = ["aria-label"], kz = ["d", "fill"], mz = { class: "admin-donut-widget__legend" }, vz = { class: "admin-donut-widget__label" }, fz = { class: "admin-donut-widget__value" }, vw = /* @__PURE__ */ ne({
|
|
26995
27005
|
__name: "DonutChartWidget",
|
|
26996
27006
|
props: {
|
|
26997
27007
|
title: { default: "" },
|
|
@@ -27025,10 +27035,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27025
27035
|
class: "admin-widget admin-donut-widget"
|
|
27026
27036
|
}, {
|
|
27027
27037
|
default: x(() => [
|
|
27028
|
-
a.title ? (c(), h("header",
|
|
27029
|
-
u("h3",
|
|
27038
|
+
a.title ? (c(), h("header", sz, [
|
|
27039
|
+
u("h3", hz, y(a.title), 1)
|
|
27030
27040
|
])) : H("", !0),
|
|
27031
|
-
l.value ? (c(), h("div",
|
|
27041
|
+
l.value ? (c(), h("div", uz, y(n(v)("Нет данных")), 1)) : (c(), h("div", yz, [
|
|
27032
27042
|
(c(), h("svg", {
|
|
27033
27043
|
viewBox: "0 0 120 120",
|
|
27034
27044
|
class: "admin-donut-widget__svg",
|
|
@@ -27041,22 +27051,22 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27041
27051
|
fill: p.color
|
|
27042
27052
|
}, [
|
|
27043
27053
|
u("title", null, y(p.label) + ": " + y(p.value) + " (" + y(p.pct) + "%)", 1)
|
|
27044
|
-
], 8,
|
|
27054
|
+
], 8, kz))), 128)),
|
|
27045
27055
|
r[0] || (r[0] = u("circle", {
|
|
27046
27056
|
cx: "60",
|
|
27047
27057
|
cy: "60",
|
|
27048
27058
|
r: "30",
|
|
27049
27059
|
fill: "var(--uid-surface-raised)"
|
|
27050
27060
|
}, null, -1))
|
|
27051
|
-
], 8,
|
|
27052
|
-
u("ul",
|
|
27061
|
+
], 8, pz)),
|
|
27062
|
+
u("ul", mz, [
|
|
27053
27063
|
(c(!0), h(X, null, ee(i.value, (p, m) => (c(), h("li", { key: m }, [
|
|
27054
27064
|
u("span", {
|
|
27055
27065
|
class: "admin-donut-widget__dot",
|
|
27056
27066
|
style: Ve({ background: p.color })
|
|
27057
27067
|
}, null, 4),
|
|
27058
|
-
u("span",
|
|
27059
|
-
u("span",
|
|
27068
|
+
u("span", vz, y(p.label), 1),
|
|
27069
|
+
u("span", fz, y(p.pct) + "%", 1)
|
|
27060
27070
|
]))), 128))
|
|
27061
27071
|
])
|
|
27062
27072
|
]))
|
|
@@ -27064,10 +27074,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27064
27074
|
_: 1
|
|
27065
27075
|
}));
|
|
27066
27076
|
}
|
|
27067
|
-
}),
|
|
27077
|
+
}), gz = {
|
|
27068
27078
|
key: 0,
|
|
27069
27079
|
class: "admin-widget__hd"
|
|
27070
|
-
},
|
|
27080
|
+
}, Mz = { class: "admin-widget__title" }, Iz = /* @__PURE__ */ ne({
|
|
27071
27081
|
__name: "RecentTableWidget",
|
|
27072
27082
|
props: {
|
|
27073
27083
|
title: { default: "" },
|
|
@@ -27104,8 +27114,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27104
27114
|
class: "admin-widget"
|
|
27105
27115
|
}, {
|
|
27106
27116
|
default: x(() => [
|
|
27107
|
-
a.title ? (c(), h("header",
|
|
27108
|
-
u("h3",
|
|
27117
|
+
a.title ? (c(), h("header", gz, [
|
|
27118
|
+
u("h3", Mz, y(a.title), 1)
|
|
27109
27119
|
])) : H("", !0),
|
|
27110
27120
|
w(n(Co), {
|
|
27111
27121
|
columns: d.value,
|
|
@@ -27118,16 +27128,16 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27118
27128
|
_: 1
|
|
27119
27129
|
}));
|
|
27120
27130
|
}
|
|
27121
|
-
}), J9 = /* @__PURE__ */ a1(
|
|
27131
|
+
}), J9 = /* @__PURE__ */ a1(Iz, [["__scopeId", "data-v-fbaa3502"]]), wz = {
|
|
27122
27132
|
key: 0,
|
|
27123
27133
|
class: "admin-widget__hd"
|
|
27124
|
-
},
|
|
27134
|
+
}, xz = { class: "admin-widget__title" }, bz = {
|
|
27125
27135
|
class: "admin-heatmap__cols-axis",
|
|
27126
27136
|
"aria-hidden": "true"
|
|
27127
|
-
},
|
|
27137
|
+
}, Lz = { class: "admin-heatmap__row-label" }, Cz = { class: "admin-heatmap__cells" }, _z = ["title"], Sz = {
|
|
27128
27138
|
key: 2,
|
|
27129
27139
|
class: "admin-heatmap__empty"
|
|
27130
|
-
},
|
|
27140
|
+
}, qz = /* @__PURE__ */ ne({
|
|
27131
27141
|
__name: "HeatmapWidget",
|
|
27132
27142
|
props: {
|
|
27133
27143
|
title: { default: "" },
|
|
@@ -27157,15 +27167,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27157
27167
|
class: "admin-widget admin-heatmap-widget"
|
|
27158
27168
|
}, {
|
|
27159
27169
|
default: x(() => [
|
|
27160
|
-
a.title ? (c(), h("header",
|
|
27161
|
-
u("h3",
|
|
27170
|
+
a.title ? (c(), h("header", wz, [
|
|
27171
|
+
u("h3", xz, y(a.title), 1)
|
|
27162
27172
|
])) : H("", !0),
|
|
27163
27173
|
a.rows.length > 0 && a.cols.length > 0 && a.matrix.length > 0 ? (c(), h("div", {
|
|
27164
27174
|
key: 1,
|
|
27165
27175
|
class: "admin-heatmap",
|
|
27166
27176
|
style: Ve({ "--admin-heatmap-cols": a.cols.length })
|
|
27167
27177
|
}, [
|
|
27168
|
-
u("div",
|
|
27178
|
+
u("div", bz, [
|
|
27169
27179
|
(c(!0), h(X, null, ee(a.cols, (r, p) => (c(), h("span", {
|
|
27170
27180
|
key: `c-${p}`,
|
|
27171
27181
|
class: "admin-heatmap__col-label"
|
|
@@ -27175,25 +27185,25 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27175
27185
|
key: `r-${p}`,
|
|
27176
27186
|
class: "admin-heatmap__row"
|
|
27177
27187
|
}, [
|
|
27178
|
-
u("span",
|
|
27179
|
-
u("div",
|
|
27188
|
+
u("span", Lz, y(a.rows[p] ?? ""), 1),
|
|
27189
|
+
u("div", Cz, [
|
|
27180
27190
|
(c(!0), h(X, null, ee(r, (m, k) => (c(), h("span", {
|
|
27181
27191
|
key: `cell-${p}-${k}`,
|
|
27182
27192
|
class: "admin-heatmap__cell",
|
|
27183
27193
|
style: Ve({ background: a.color, opacity: l(m) }),
|
|
27184
27194
|
title: d(m, p, k)
|
|
27185
|
-
}, null, 12,
|
|
27195
|
+
}, null, 12, _z))), 128))
|
|
27186
27196
|
])
|
|
27187
27197
|
]))), 128))
|
|
27188
|
-
], 4)) : (c(), h("div",
|
|
27198
|
+
], 4)) : (c(), h("div", Sz, y(n(v)("Нет данных")), 1))
|
|
27189
27199
|
]),
|
|
27190
27200
|
_: 1
|
|
27191
27201
|
}));
|
|
27192
27202
|
}
|
|
27193
|
-
}),
|
|
27203
|
+
}), Az = {
|
|
27194
27204
|
key: 0,
|
|
27195
27205
|
class: "admin-widget__hd"
|
|
27196
|
-
},
|
|
27206
|
+
}, zz = { class: "admin-widget__title" }, Hz = { class: "admin-gauge-widget__body" }, Vz = /* @__PURE__ */ ne({
|
|
27197
27207
|
__name: "GaugeWidget",
|
|
27198
27208
|
props: {
|
|
27199
27209
|
title: { default: "" },
|
|
@@ -27226,10 +27236,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27226
27236
|
class: "admin-widget"
|
|
27227
27237
|
}, {
|
|
27228
27238
|
default: x(() => [
|
|
27229
|
-
a.title ? (c(), h("header",
|
|
27230
|
-
u("h3",
|
|
27239
|
+
a.title ? (c(), h("header", Az, [
|
|
27240
|
+
u("h3", zz, y(a.title), 1)
|
|
27231
27241
|
])) : H("", !0),
|
|
27232
|
-
u("div",
|
|
27242
|
+
u("div", Hz, [
|
|
27233
27243
|
w(n(ex), {
|
|
27234
27244
|
value: a.value,
|
|
27235
27245
|
min: a.min,
|
|
@@ -27247,10 +27257,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27247
27257
|
_: 1
|
|
27248
27258
|
}));
|
|
27249
27259
|
}
|
|
27250
|
-
}),
|
|
27260
|
+
}), Pz = {
|
|
27251
27261
|
key: 0,
|
|
27252
27262
|
class: "admin-widget__hd"
|
|
27253
|
-
},
|
|
27263
|
+
}, Fz = { class: "admin-widget__title" }, jz = { class: "admin-markdown-widget" }, Dz = /* @__PURE__ */ ne({
|
|
27254
27264
|
__name: "MarkdownWidget",
|
|
27255
27265
|
props: {
|
|
27256
27266
|
title: { default: "" },
|
|
@@ -27262,15 +27272,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27262
27272
|
class: "admin-widget"
|
|
27263
27273
|
}, {
|
|
27264
27274
|
default: x(() => [
|
|
27265
|
-
a.title ? (c(), h("header",
|
|
27266
|
-
u("h3",
|
|
27275
|
+
a.title ? (c(), h("header", Pz, [
|
|
27276
|
+
u("h3", Fz, y(a.title), 1)
|
|
27267
27277
|
])) : H("", !0),
|
|
27268
|
-
u("div",
|
|
27278
|
+
u("div", jz, y(a.content), 1)
|
|
27269
27279
|
]),
|
|
27270
27280
|
_: 1
|
|
27271
27281
|
}));
|
|
27272
27282
|
}
|
|
27273
|
-
}),
|
|
27283
|
+
}), Bz = /* @__PURE__ */ ne({
|
|
27274
27284
|
__name: "ChartWidget",
|
|
27275
27285
|
props: {
|
|
27276
27286
|
type: {},
|
|
@@ -27326,10 +27336,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27326
27336
|
type: `chart:${o.value}`
|
|
27327
27337
|
}, null, 8, ["type"]));
|
|
27328
27338
|
}
|
|
27329
|
-
}),
|
|
27339
|
+
}), Rz = {
|
|
27330
27340
|
key: 0,
|
|
27331
27341
|
class: "admin-widget__hd"
|
|
27332
|
-
},
|
|
27342
|
+
}, $z = { class: "admin-widget__title" }, Tz = /* @__PURE__ */ ne({
|
|
27333
27343
|
__name: "TableWidget",
|
|
27334
27344
|
props: {
|
|
27335
27345
|
title: { default: "" },
|
|
@@ -27358,8 +27368,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27358
27368
|
class: "admin-widget"
|
|
27359
27369
|
}, {
|
|
27360
27370
|
default: x(() => [
|
|
27361
|
-
a.title ? (c(), h("header",
|
|
27362
|
-
u("h3",
|
|
27371
|
+
a.title ? (c(), h("header", Rz, [
|
|
27372
|
+
u("h3", $z, y(a.title), 1)
|
|
27363
27373
|
])) : H("", !0),
|
|
27364
27374
|
w(n(Co), {
|
|
27365
27375
|
columns: o.value,
|
|
@@ -27370,13 +27380,13 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27370
27380
|
_: 1
|
|
27371
27381
|
}));
|
|
27372
27382
|
}
|
|
27373
|
-
}),
|
|
27383
|
+
}), Uz = {
|
|
27374
27384
|
key: 0,
|
|
27375
27385
|
class: "admin-widget__hd"
|
|
27376
|
-
},
|
|
27386
|
+
}, Oz = { class: "admin-widget__title" }, Ez = ["src", "sandbox"], Zz = {
|
|
27377
27387
|
key: 2,
|
|
27378
27388
|
class: "admin-widget__empty"
|
|
27379
|
-
},
|
|
27389
|
+
}, Wz = /* @__PURE__ */ ne({
|
|
27380
27390
|
__name: "IframeWidget",
|
|
27381
27391
|
props: {
|
|
27382
27392
|
title: { default: "" },
|
|
@@ -27393,8 +27403,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27393
27403
|
class: "admin-widget admin-widget--iframe"
|
|
27394
27404
|
}, {
|
|
27395
27405
|
default: x(() => [
|
|
27396
|
-
a.title ? (c(), h("header",
|
|
27397
|
-
u("h3",
|
|
27406
|
+
a.title ? (c(), h("header", Uz, [
|
|
27407
|
+
u("h3", Oz, y(a.title), 1)
|
|
27398
27408
|
])) : H("", !0),
|
|
27399
27409
|
a.src ? (c(), h("iframe", {
|
|
27400
27410
|
key: 1,
|
|
@@ -27404,22 +27414,22 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27404
27414
|
class: "admin-widget__iframe",
|
|
27405
27415
|
loading: "lazy",
|
|
27406
27416
|
referrerpolicy: "no-referrer"
|
|
27407
|
-
}, null, 12,
|
|
27417
|
+
}, null, 12, Ez)) : (c(), h("p", Zz, y(n(v)("Не задан src")), 1))
|
|
27408
27418
|
]),
|
|
27409
27419
|
_: 1
|
|
27410
27420
|
}));
|
|
27411
27421
|
}
|
|
27412
|
-
}),
|
|
27413
|
-
function
|
|
27422
|
+
}), Gz = /* @__PURE__ */ a1(Wz, [["__scopeId", "data-v-ff47a97f"]]);
|
|
27423
|
+
function Nz() {
|
|
27414
27424
|
((t) => {
|
|
27415
27425
|
for (const [o, l] of Object.entries(t))
|
|
27416
|
-
|
|
27426
|
+
Kb(o) || Nb(o, l);
|
|
27417
27427
|
})({
|
|
27418
27428
|
// Stat / Stats overview
|
|
27419
27429
|
stat: DI,
|
|
27420
27430
|
stats: DI,
|
|
27421
27431
|
// Charts: универсальный диспетчер по data.type → bar/donut/...
|
|
27422
|
-
chart:
|
|
27432
|
+
chart: Bz,
|
|
27423
27433
|
"bar-chart": mw,
|
|
27424
27434
|
"donut-chart": vw,
|
|
27425
27435
|
// Recent list (таблица последних записей)
|
|
@@ -27427,21 +27437,21 @@ function Gz() {
|
|
|
27427
27437
|
recent_list: J9,
|
|
27428
27438
|
"recent-list": J9,
|
|
27429
27439
|
// Heatmap / Gauge / Markdown
|
|
27430
|
-
heatmap:
|
|
27431
|
-
gauge:
|
|
27432
|
-
markdown:
|
|
27440
|
+
heatmap: qz,
|
|
27441
|
+
gauge: Vz,
|
|
27442
|
+
markdown: Dz,
|
|
27433
27443
|
// Полнофункциональная таблица (resource-колонки) и iframe-встройка
|
|
27434
|
-
table:
|
|
27435
|
-
iframe:
|
|
27444
|
+
table: Tz,
|
|
27445
|
+
iframe: Gz
|
|
27436
27446
|
});
|
|
27437
27447
|
}
|
|
27438
|
-
function
|
|
27448
|
+
function Xz(a) {
|
|
27439
27449
|
return a.success === !0;
|
|
27440
27450
|
}
|
|
27441
|
-
function
|
|
27451
|
+
function nj(a) {
|
|
27442
27452
|
return a.success === !1;
|
|
27443
27453
|
}
|
|
27444
|
-
function
|
|
27454
|
+
function Kz(a) {
|
|
27445
27455
|
const t = ux.create({
|
|
27446
27456
|
baseURL: a.baseURL,
|
|
27447
27457
|
withCredentials: !0,
|
|
@@ -27451,13 +27461,13 @@ function Xz(a) {
|
|
|
27451
27461
|
}
|
|
27452
27462
|
});
|
|
27453
27463
|
a.csrfToken && (t.defaults.headers.common["X-CSRF-TOKEN"] = a.csrfToken), a.locale && (t.defaults.headers.common["X-Admin-Locale"] = a.locale), t.interceptors.request.use((d) => {
|
|
27454
|
-
const i =
|
|
27464
|
+
const i = Jz("XSRF-TOKEN");
|
|
27455
27465
|
return i && (d.headers.set("X-XSRF-TOKEN", decodeURIComponent(i)), d.headers.delete("X-CSRF-TOKEN")), d;
|
|
27456
27466
|
}), t.interceptors.response.use(
|
|
27457
27467
|
(d) => {
|
|
27458
27468
|
const i = d.data;
|
|
27459
27469
|
if (i && typeof i == "object" && "success" in i) {
|
|
27460
|
-
if (
|
|
27470
|
+
if (Xz(i))
|
|
27461
27471
|
return d.data = i.payload, d;
|
|
27462
27472
|
throw LI(d.status, i.payload);
|
|
27463
27473
|
}
|
|
@@ -27490,26 +27500,26 @@ function Xz(a) {
|
|
|
27490
27500
|
}
|
|
27491
27501
|
};
|
|
27492
27502
|
}
|
|
27493
|
-
function
|
|
27503
|
+
function Jz(a) {
|
|
27494
27504
|
if (typeof document > "u") return null;
|
|
27495
|
-
const t = document.cookie.match(new RegExp("(^|; )" +
|
|
27505
|
+
const t = document.cookie.match(new RegExp("(^|; )" + Yz(a) + "=([^;]*)"));
|
|
27496
27506
|
return t ? t[2] : null;
|
|
27497
27507
|
}
|
|
27498
|
-
function
|
|
27508
|
+
function Yz(a) {
|
|
27499
27509
|
return a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
27500
27510
|
}
|
|
27501
27511
|
function oc(a, t) {
|
|
27502
27512
|
const o = a.permissions?.[t];
|
|
27503
27513
|
return typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27504
27514
|
}
|
|
27505
|
-
function
|
|
27515
|
+
function Qz(a, t) {
|
|
27506
27516
|
const o = a.permissions?.[t];
|
|
27507
27517
|
return typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27508
27518
|
}
|
|
27509
|
-
function
|
|
27519
|
+
function eH(a) {
|
|
27510
27520
|
return Array.isArray(a.permission) ? a.permission : typeof a.permission == "string" && a.permission.length > 0 ? [a.permission] : [];
|
|
27511
27521
|
}
|
|
27512
|
-
function
|
|
27522
|
+
function aH(a, t) {
|
|
27513
27523
|
const o = a.slug, l = `/r/${o}`;
|
|
27514
27524
|
return [
|
|
27515
27525
|
{
|
|
@@ -27570,7 +27580,7 @@ function eH(a, t) {
|
|
|
27570
27580
|
}
|
|
27571
27581
|
];
|
|
27572
27582
|
}
|
|
27573
|
-
function
|
|
27583
|
+
function tH(a, t) {
|
|
27574
27584
|
return {
|
|
27575
27585
|
path: `/screens/${a.slug}`,
|
|
27576
27586
|
name: `admin.screen.${a.slug}`,
|
|
@@ -27580,11 +27590,11 @@ function aH(a, t) {
|
|
|
27580
27590
|
kind: "screen",
|
|
27581
27591
|
slug: a.slug,
|
|
27582
27592
|
title: a.name,
|
|
27583
|
-
permissions:
|
|
27593
|
+
permissions: eH(a)
|
|
27584
27594
|
}
|
|
27585
27595
|
};
|
|
27586
27596
|
}
|
|
27587
|
-
function
|
|
27597
|
+
function nH(a, t) {
|
|
27588
27598
|
return {
|
|
27589
27599
|
path: `/settings/${a.slug}`,
|
|
27590
27600
|
name: `admin.settings.${a.slug}`,
|
|
@@ -27594,11 +27604,11 @@ function tH(a, t) {
|
|
|
27594
27604
|
kind: "settings",
|
|
27595
27605
|
slug: a.slug,
|
|
27596
27606
|
title: a.label,
|
|
27597
|
-
permissions:
|
|
27607
|
+
permissions: Qz(a, "view")
|
|
27598
27608
|
}
|
|
27599
27609
|
};
|
|
27600
27610
|
}
|
|
27601
|
-
function
|
|
27611
|
+
function oH(a, t) {
|
|
27602
27612
|
if (typeof a.slug != "string" || a.slug.length === 0) return null;
|
|
27603
27613
|
const o = a.permission, l = Array.isArray(o) ? o : typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27604
27614
|
return {
|
|
@@ -27614,22 +27624,22 @@ function nH(a, t) {
|
|
|
27614
27624
|
}
|
|
27615
27625
|
};
|
|
27616
27626
|
}
|
|
27617
|
-
function
|
|
27627
|
+
function cH(a, t) {
|
|
27618
27628
|
if (a === null) return [];
|
|
27619
27629
|
const o = [];
|
|
27620
27630
|
for (const l of a.resources)
|
|
27621
|
-
o.push(...
|
|
27631
|
+
o.push(...aH(l, t));
|
|
27622
27632
|
for (const l of a.screens)
|
|
27623
|
-
o.push(aH(l, t));
|
|
27624
|
-
for (const l of a.settings)
|
|
27625
27633
|
o.push(tH(l, t));
|
|
27634
|
+
for (const l of a.settings)
|
|
27635
|
+
o.push(nH(l, t));
|
|
27626
27636
|
for (const l of a.dashboards) {
|
|
27627
|
-
const d =
|
|
27637
|
+
const d = oH(l, t);
|
|
27628
27638
|
d && o.push(d);
|
|
27629
27639
|
}
|
|
27630
27640
|
return o;
|
|
27631
27641
|
}
|
|
27632
|
-
function
|
|
27642
|
+
function iH(a = {}) {
|
|
27633
27643
|
const t = a.loginRouteName ?? "admin.login", o = a.forbiddenRouteName ?? "admin.forbidden", l = a.redirectQueryKey ?? "redirect";
|
|
27634
27644
|
return (d) => {
|
|
27635
27645
|
if (d.name === t)
|
|
@@ -27649,7 +27659,7 @@ function cH(a = {}) {
|
|
|
27649
27659
|
return Array.isArray(r) && r.length > 0 && !i.hasAnyPermission(r) ? { name: o } : !0;
|
|
27650
27660
|
};
|
|
27651
27661
|
}
|
|
27652
|
-
function
|
|
27662
|
+
function lH(a = {}) {
|
|
27653
27663
|
const t = a.template, o = a.brand ?? "", l = a.fallback ?? "";
|
|
27654
27664
|
return (d) => {
|
|
27655
27665
|
if (typeof document > "u") return;
|
|
@@ -27658,16 +27668,16 @@ function iH(a = {}) {
|
|
|
27658
27668
|
t ? s = t.replace("{title}", i).replace("{brand}", o) : i && o ? s = `${i} · ${o}` : s = i || o, document.title = s;
|
|
27659
27669
|
};
|
|
27660
27670
|
}
|
|
27661
|
-
const
|
|
27671
|
+
const rH = [
|
|
27662
27672
|
"admin.resource.",
|
|
27663
27673
|
"admin.screen.",
|
|
27664
27674
|
"admin.settings.",
|
|
27665
27675
|
"admin.dashboard."
|
|
27666
27676
|
];
|
|
27667
|
-
function rH(a) {
|
|
27668
|
-
return typeof a != "string" ? !1 : lH.some((t) => a.startsWith(t));
|
|
27669
|
-
}
|
|
27670
27677
|
function dH(a) {
|
|
27678
|
+
return typeof a != "string" ? !1 : rH.some((t) => a.startsWith(t));
|
|
27679
|
+
}
|
|
27680
|
+
function sH(a) {
|
|
27671
27681
|
const t = a.base ?? "/admin", o = a.history ?? UI(t), l = [
|
|
27672
27682
|
{
|
|
27673
27683
|
path: "/login",
|
|
@@ -27718,12 +27728,12 @@ function dH(a) {
|
|
|
27718
27728
|
history: o,
|
|
27719
27729
|
routes: [...l, ...a.extraRoutes ?? [], d]
|
|
27720
27730
|
});
|
|
27721
|
-
return i.beforeEach(
|
|
27731
|
+
return i.beforeEach(iH(a.authGuard)), i.afterEach(lH(a.titleGuard)), i.replaceManifestRoutes = (s) => {
|
|
27722
27732
|
const r = i.getRoutes();
|
|
27723
27733
|
for (const m of r)
|
|
27724
|
-
|
|
27734
|
+
dH(m.name) && i.removeRoute(m.name);
|
|
27725
27735
|
i.hasRoute("admin.notFound") && i.removeRoute("admin.notFound");
|
|
27726
|
-
const p =
|
|
27736
|
+
const p = cH(s, a.components);
|
|
27727
27737
|
for (const m of p)
|
|
27728
27738
|
i.addRoute(m);
|
|
27729
27739
|
i.addRoute(d);
|
|
@@ -27963,20 +27973,20 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
27963
27973
|
_: 1
|
|
27964
27974
|
}, 8, ["label", "hint", "error", "required", "disabled"]));
|
|
27965
27975
|
}
|
|
27966
|
-
}),
|
|
27976
|
+
}), hH = {
|
|
27967
27977
|
key: 0,
|
|
27968
27978
|
class: "admin-field__label"
|
|
27969
|
-
},
|
|
27979
|
+
}, uH = {
|
|
27970
27980
|
key: 0,
|
|
27971
27981
|
class: "admin-field__required",
|
|
27972
27982
|
"aria-hidden": "true"
|
|
27973
|
-
},
|
|
27983
|
+
}, yH = { class: "admin-tags__chip-text" }, pH = ["aria-label", "onClick"], kH = ["value", "placeholder", "disabled"], mH = { class: "admin-tags__group-label" }, vH = ["aria-selected", "onMousedown", "onMouseenter"], fH = ["aria-selected", "onMousedown", "onMouseenter"], gH = {
|
|
27974
27984
|
key: 1,
|
|
27975
27985
|
class: "admin-field__error"
|
|
27976
|
-
},
|
|
27986
|
+
}, MH = {
|
|
27977
27987
|
key: 2,
|
|
27978
27988
|
class: "admin-field__help"
|
|
27979
|
-
},
|
|
27989
|
+
}, IH = /* @__PURE__ */ ne({
|
|
27980
27990
|
__name: "TagsField",
|
|
27981
27991
|
props: {
|
|
27982
27992
|
name: {},
|
|
@@ -28082,9 +28092,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28082
28092
|
), (W, J) => (c(), h("div", {
|
|
28083
28093
|
class: fe(["admin-field", { "admin-field--invalid": d.value !== void 0 }])
|
|
28084
28094
|
}, [
|
|
28085
|
-
a.label ? (c(), h("label",
|
|
28095
|
+
a.label ? (c(), h("label", hH, [
|
|
28086
28096
|
u("span", null, y(a.label), 1),
|
|
28087
|
-
a.required ? (c(), h("span",
|
|
28097
|
+
a.required ? (c(), h("span", uH, "*")) : H("", !0)
|
|
28088
28098
|
])) : H("", !0),
|
|
28089
28099
|
u("div", {
|
|
28090
28100
|
ref_key: "containerRef",
|
|
@@ -28102,7 +28112,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28102
28112
|
key: `${R}-${_}`,
|
|
28103
28113
|
class: "admin-tags__chip"
|
|
28104
28114
|
}, [
|
|
28105
|
-
u("span",
|
|
28115
|
+
u("span", yH, y(R), 1),
|
|
28106
28116
|
a.disabled ? H("", !0) : (c(), h("button", {
|
|
28107
28117
|
key: 0,
|
|
28108
28118
|
type: "button",
|
|
@@ -28114,7 +28124,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28114
28124
|
icon: n(He),
|
|
28115
28125
|
size: 10
|
|
28116
28126
|
}, null, 8, ["icon"])
|
|
28117
|
-
], 8,
|
|
28127
|
+
], 8, pH))
|
|
28118
28128
|
]))), 128)),
|
|
28119
28129
|
u("input", {
|
|
28120
28130
|
ref_key: "inputRef",
|
|
@@ -28128,7 +28138,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28128
28138
|
onKeydown: Z,
|
|
28129
28139
|
onFocus: J[0] || (J[0] = (R) => s.value = !0),
|
|
28130
28140
|
onBlur: te
|
|
28131
|
-
}, null, 40,
|
|
28141
|
+
}, null, 40, kH),
|
|
28132
28142
|
(c(), z(lI, { to: "body" }, [
|
|
28133
28143
|
s.value && B.value.length > 0 ? (c(), h("div", {
|
|
28134
28144
|
key: 0,
|
|
@@ -28141,7 +28151,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28141
28151
|
T.value ? (c(!0), h(X, { key: 0 }, ee(P.value, (R, _) => (c(), h(X, {
|
|
28142
28152
|
key: `g-${_}-${R.label}`
|
|
28143
28153
|
}, [
|
|
28144
|
-
u("div",
|
|
28154
|
+
u("div", mH, y(R.label), 1),
|
|
28145
28155
|
(c(!0), h(X, null, ee(R.items, (j) => (c(), h("button", {
|
|
28146
28156
|
key: j,
|
|
28147
28157
|
type: "button",
|
|
@@ -28157,7 +28167,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28157
28167
|
"aria-selected": F(B.value.indexOf(j)),
|
|
28158
28168
|
onMousedown: me((q) => G(j), ["prevent"]),
|
|
28159
28169
|
onMouseenter: (q) => V.value = B.value.indexOf(j)
|
|
28160
|
-
}, y(j), 43,
|
|
28170
|
+
}, y(j), 43, vH))), 128))
|
|
28161
28171
|
], 64))), 128)) : (c(!0), h(X, { key: 1 }, ee(B.value, (R, _) => (c(), h("button", {
|
|
28162
28172
|
key: R,
|
|
28163
28173
|
type: "button",
|
|
@@ -28166,31 +28176,31 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28166
28176
|
"aria-selected": _ === V.value,
|
|
28167
28177
|
onMousedown: me((j) => G(R), ["prevent"]),
|
|
28168
28178
|
onMouseenter: (j) => V.value = _
|
|
28169
|
-
}, y(R), 43,
|
|
28179
|
+
}, y(R), 43, fH))), 128))
|
|
28170
28180
|
], 4)) : H("", !0)
|
|
28171
28181
|
]))
|
|
28172
28182
|
], 2),
|
|
28173
|
-
d.value ? (c(), h("p",
|
|
28183
|
+
d.value ? (c(), h("p", gH, y(d.value), 1)) : a.help ? (c(), h("p", MH, y(a.help), 1)) : H("", !0)
|
|
28174
28184
|
], 2));
|
|
28175
28185
|
}
|
|
28176
|
-
}),
|
|
28186
|
+
}), wH = {
|
|
28177
28187
|
key: 0,
|
|
28178
28188
|
class: "admin-field__label"
|
|
28179
|
-
},
|
|
28189
|
+
}, xH = {
|
|
28180
28190
|
key: 0,
|
|
28181
28191
|
class: "admin-field__required",
|
|
28182
28192
|
"aria-hidden": "true"
|
|
28183
|
-
},
|
|
28193
|
+
}, bH = { class: "admin-translatable" }, LH = {
|
|
28184
28194
|
class: "admin-translatable__tabs",
|
|
28185
28195
|
role: "tablist"
|
|
28186
|
-
},
|
|
28196
|
+
}, CH = ["aria-selected", "onClick"], _H = {
|
|
28187
28197
|
key: 0,
|
|
28188
28198
|
class: "admin-translatable__dot",
|
|
28189
28199
|
"aria-hidden": "true"
|
|
28190
|
-
},
|
|
28200
|
+
}, SH = { class: "admin-translatable__panel" }, qH = ["value", "placeholder", "rows", "disabled"], AH = {
|
|
28191
28201
|
key: 1,
|
|
28192
28202
|
class: "admin-field__error"
|
|
28193
|
-
},
|
|
28203
|
+
}, zH = {
|
|
28194
28204
|
key: 2,
|
|
28195
28205
|
class: "admin-field__help"
|
|
28196
28206
|
}, BI = /* @__PURE__ */ ne({
|
|
@@ -28232,12 +28242,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28232
28242
|
return (k, g) => (c(), h("div", {
|
|
28233
28243
|
class: fe(["admin-field", { "admin-field--invalid": p.value !== void 0 }])
|
|
28234
28244
|
}, [
|
|
28235
|
-
a.label ? (c(), h("label",
|
|
28245
|
+
a.label ? (c(), h("label", wH, [
|
|
28236
28246
|
u("span", null, y(a.label), 1),
|
|
28237
|
-
a.required ? (c(), h("span",
|
|
28247
|
+
a.required ? (c(), h("span", xH, "*")) : H("", !0)
|
|
28238
28248
|
])) : H("", !0),
|
|
28239
|
-
u("div",
|
|
28240
|
-
u("div",
|
|
28249
|
+
u("div", bH, [
|
|
28250
|
+
u("div", LH, [
|
|
28241
28251
|
(c(!0), h(X, null, ee(d.value, (b) => (c(), h("button", {
|
|
28242
28252
|
key: b,
|
|
28243
28253
|
type: "button",
|
|
@@ -28253,10 +28263,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28253
28263
|
onClick: (C) => i.value = b
|
|
28254
28264
|
}, [
|
|
28255
28265
|
D(y(b.toUpperCase()) + " ", 1),
|
|
28256
|
-
m(b) ? (c(), h("span",
|
|
28257
|
-
], 10,
|
|
28266
|
+
m(b) ? (c(), h("span", _H)) : H("", !0)
|
|
28267
|
+
], 10, CH))), 128))
|
|
28258
28268
|
]),
|
|
28259
|
-
u("div",
|
|
28269
|
+
u("div", SH, [
|
|
28260
28270
|
a.multiline ? (c(), h("textarea", {
|
|
28261
28271
|
key: 1,
|
|
28262
28272
|
value: s.value[i.value] ?? "",
|
|
@@ -28265,7 +28275,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28265
28275
|
disabled: a.disabled,
|
|
28266
28276
|
class: "admin-translatable__textarea",
|
|
28267
28277
|
onInput: g[1] || (g[1] = (b) => r(i.value, b.target.value))
|
|
28268
|
-
}, null, 40,
|
|
28278
|
+
}, null, 40, qH)) : (c(), z(n(Le), {
|
|
28269
28279
|
key: 0,
|
|
28270
28280
|
"model-value": s.value[i.value] ?? "",
|
|
28271
28281
|
placeholder: a.placeholder ?? "",
|
|
@@ -28274,23 +28284,23 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28274
28284
|
}, null, 8, ["model-value", "placeholder", "disabled"]))
|
|
28275
28285
|
])
|
|
28276
28286
|
]),
|
|
28277
|
-
p.value ? (c(), h("p",
|
|
28287
|
+
p.value ? (c(), h("p", AH, y(p.value), 1)) : a.help ? (c(), h("p", zH, y(a.help), 1)) : H("", !0)
|
|
28278
28288
|
], 2));
|
|
28279
28289
|
}
|
|
28280
|
-
}),
|
|
28290
|
+
}), HH = {
|
|
28281
28291
|
key: 0,
|
|
28282
28292
|
class: "admin-field__label"
|
|
28283
|
-
},
|
|
28293
|
+
}, VH = {
|
|
28284
28294
|
key: 0,
|
|
28285
28295
|
class: "admin-field__required",
|
|
28286
28296
|
"aria-hidden": "true"
|
|
28287
|
-
},
|
|
28297
|
+
}, PH = ["onMousedown"], FH = {
|
|
28288
28298
|
key: 1,
|
|
28289
28299
|
class: "admin-field__error"
|
|
28290
|
-
},
|
|
28300
|
+
}, jH = {
|
|
28291
28301
|
key: 2,
|
|
28292
28302
|
class: "admin-field__help"
|
|
28293
|
-
},
|
|
28303
|
+
}, DH = /* @__PURE__ */ ne({
|
|
28294
28304
|
__name: "WysiwygField",
|
|
28295
28305
|
props: {
|
|
28296
28306
|
name: {},
|
|
@@ -28454,9 +28464,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28454
28464
|
}), (R, _) => (c(), h("div", {
|
|
28455
28465
|
class: fe(["admin-field", { "admin-field--invalid": d.value !== void 0 }])
|
|
28456
28466
|
}, [
|
|
28457
|
-
a.label ? (c(), h("label",
|
|
28467
|
+
a.label ? (c(), h("label", HH, [
|
|
28458
28468
|
u("span", null, y(a.label), 1),
|
|
28459
|
-
a.required ? (c(), h("span",
|
|
28469
|
+
a.required ? (c(), h("span", VH, "*")) : H("", !0)
|
|
28460
28470
|
])) : H("", !0),
|
|
28461
28471
|
u("div", {
|
|
28462
28472
|
ref_key: "containerRef",
|
|
@@ -28487,7 +28497,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28487
28497
|
class: fe(["admin-wysiwyg-img__handle", `admin-wysiwyg-img__handle--${j}`]),
|
|
28488
28498
|
style: Ve(J(j, I.value)),
|
|
28489
28499
|
onMousedown: (q) => G(j, q)
|
|
28490
|
-
}, null, 46,
|
|
28500
|
+
}, null, 46, PH)), 64)) : H("", !0),
|
|
28491
28501
|
L.value ? (c(), h("div", {
|
|
28492
28502
|
key: 1,
|
|
28493
28503
|
class: "admin-wysiwyg-img__dropline",
|
|
@@ -28498,25 +28508,25 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28498
28508
|
})
|
|
28499
28509
|
}, null, 4)) : H("", !0)
|
|
28500
28510
|
], 512),
|
|
28501
|
-
d.value ? (c(), h("p",
|
|
28511
|
+
d.value ? (c(), h("p", FH, y(d.value), 1)) : a.help ? (c(), h("p", jH, y(a.help), 1)) : H("", !0)
|
|
28502
28512
|
], 2));
|
|
28503
28513
|
}
|
|
28504
|
-
}),
|
|
28514
|
+
}), BH = /* @__PURE__ */ a1(DH, [["__scopeId", "data-v-e1cee25f"]]), RH = { class: "admin-file-field" }, $H = {
|
|
28505
28515
|
key: 0,
|
|
28506
28516
|
class: "admin-file-field__label"
|
|
28507
|
-
},
|
|
28517
|
+
}, TH = {
|
|
28508
28518
|
key: 0,
|
|
28509
28519
|
class: "admin-file-field__required"
|
|
28510
|
-
},
|
|
28520
|
+
}, UH = { key: 1 }, OH = { class: "admin-file-field__hint" }, EH = ["accept"], ZH = {
|
|
28511
28521
|
key: 2,
|
|
28512
28522
|
class: "admin-file-field__preview"
|
|
28513
|
-
},
|
|
28523
|
+
}, WH = { class: "admin-file-field__preview-info" }, GH = ["href"], NH = { class: "admin-file-field__preview-meta" }, XH = {
|
|
28514
28524
|
key: 3,
|
|
28515
28525
|
class: "admin-file-field__help"
|
|
28516
|
-
},
|
|
28526
|
+
}, KH = {
|
|
28517
28527
|
key: 4,
|
|
28518
28528
|
class: "admin-file-field__error"
|
|
28519
|
-
},
|
|
28529
|
+
}, JH = /* @__PURE__ */ ne({
|
|
28520
28530
|
__name: "FileField",
|
|
28521
28531
|
props: {
|
|
28522
28532
|
name: {},
|
|
@@ -28566,19 +28576,19 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28566
28576
|
function b() {
|
|
28567
28577
|
o.setField(t.name, null);
|
|
28568
28578
|
}
|
|
28569
|
-
return (C, I) => (c(), h("div",
|
|
28570
|
-
a.label ? (c(), h("label",
|
|
28579
|
+
return (C, I) => (c(), h("div", RH, [
|
|
28580
|
+
a.label ? (c(), h("label", $H, [
|
|
28571
28581
|
D(y(a.label), 1),
|
|
28572
|
-
a.required ? (c(), h("span",
|
|
28582
|
+
a.required ? (c(), h("span", TH, "*")) : H("", !0)
|
|
28573
28583
|
])) : H("", !0),
|
|
28574
|
-
l.value ? (c(), h("div",
|
|
28575
|
-
u("div",
|
|
28584
|
+
l.value ? (c(), h("div", ZH, [
|
|
28585
|
+
u("div", WH, [
|
|
28576
28586
|
u("a", {
|
|
28577
28587
|
href: l.value.url,
|
|
28578
28588
|
target: "_blank",
|
|
28579
28589
|
rel: "noopener"
|
|
28580
|
-
}, y(l.value.name), 9,
|
|
28581
|
-
u("span",
|
|
28590
|
+
}, y(l.value.name), 9, GH),
|
|
28591
|
+
u("span", NH, y(l.value.mime), 1)
|
|
28582
28592
|
]),
|
|
28583
28593
|
w(n(oe), {
|
|
28584
28594
|
variant: "ghost",
|
|
@@ -28591,7 +28601,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28591
28601
|
]),
|
|
28592
28602
|
_: 1
|
|
28593
28603
|
})
|
|
28594
|
-
])) : (c(), h("div",
|
|
28604
|
+
])) : (c(), h("div", UH, [
|
|
28595
28605
|
u("div", {
|
|
28596
28606
|
class: fe(["admin-file-field__drop", { "admin-file-field__drop--over": r.value }]),
|
|
28597
28607
|
onClick: p,
|
|
@@ -28603,7 +28613,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28603
28613
|
icon: n(oo),
|
|
28604
28614
|
size: 24
|
|
28605
28615
|
}, null, 8, ["icon"]),
|
|
28606
|
-
u("p",
|
|
28616
|
+
u("p", OH, y(s.value ? n(v)("Загрузка…") : n(v)("Кликните или перетащите файл сюда")), 1)
|
|
28607
28617
|
], 34),
|
|
28608
28618
|
u("input", {
|
|
28609
28619
|
ref_key: "fileInput",
|
|
@@ -28612,34 +28622,34 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28612
28622
|
accept: a.accept ?? void 0,
|
|
28613
28623
|
class: "admin-file-field__input",
|
|
28614
28624
|
onChange: m
|
|
28615
|
-
}, null, 40,
|
|
28625
|
+
}, null, 40, EH)
|
|
28616
28626
|
])),
|
|
28617
|
-
a.help && !d.value ? (c(), h("p",
|
|
28618
|
-
d.value ? (c(), h("p",
|
|
28627
|
+
a.help && !d.value ? (c(), h("p", XH, y(a.help), 1)) : H("", !0),
|
|
28628
|
+
d.value ? (c(), h("p", KH, y(d.value), 1)) : H("", !0)
|
|
28619
28629
|
]));
|
|
28620
28630
|
}
|
|
28621
|
-
}), RI = /* @__PURE__ */ a1(
|
|
28631
|
+
}), RI = /* @__PURE__ */ a1(JH, [["__scopeId", "data-v-7aaddf6d"]]), YH = { class: "admin-image-cropper" }, QH = {
|
|
28622
28632
|
key: 0,
|
|
28623
28633
|
class: "admin-image-cropper__label"
|
|
28624
|
-
},
|
|
28634
|
+
}, eV = {
|
|
28625
28635
|
key: 0,
|
|
28626
28636
|
class: "admin-image-cropper__required"
|
|
28627
|
-
},
|
|
28637
|
+
}, aV = { key: 1 }, tV = { class: "admin-image-cropper__hint" }, nV = {
|
|
28628
28638
|
key: 0,
|
|
28629
28639
|
class: "admin-image-cropper__hint-sub"
|
|
28630
|
-
},
|
|
28640
|
+
}, oV = ["accept"], cV = {
|
|
28631
28641
|
key: 2,
|
|
28632
28642
|
class: "admin-image-cropper__crop"
|
|
28633
|
-
},
|
|
28643
|
+
}, iV = ["src", "width", "height"], lV = { class: "admin-image-cropper__actions" }, rV = {
|
|
28634
28644
|
key: 3,
|
|
28635
28645
|
class: "admin-image-cropper__preview"
|
|
28636
|
-
},
|
|
28646
|
+
}, dV = ["src", "alt"], sV = { class: "admin-image-cropper__preview-info" }, hV = { class: "admin-image-cropper__preview-name" }, uV = { class: "admin-image-cropper__preview-meta" }, yV = { class: "admin-image-cropper__preview-actions" }, pV = {
|
|
28637
28647
|
key: 4,
|
|
28638
28648
|
class: "admin-image-cropper__help"
|
|
28639
|
-
},
|
|
28649
|
+
}, kV = {
|
|
28640
28650
|
key: 5,
|
|
28641
28651
|
class: "admin-image-cropper__error"
|
|
28642
|
-
},
|
|
28652
|
+
}, mV = 500, vV = 400, fV = /* @__PURE__ */ ne({
|
|
28643
28653
|
__name: "ImageCropperField",
|
|
28644
28654
|
props: {
|
|
28645
28655
|
name: {},
|
|
@@ -28689,7 +28699,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28689
28699
|
}
|
|
28690
28700
|
function Z() {
|
|
28691
28701
|
if (!p.value) return;
|
|
28692
|
-
const R = p.value.naturalWidth, _ = p.value.naturalHeight, j = Math.min(
|
|
28702
|
+
const R = p.value.naturalWidth, _ = p.value.naturalHeight, j = Math.min(mV / R, vV / _, 1);
|
|
28693
28703
|
k.value = j, g.value = { w: R * j, h: _ * j };
|
|
28694
28704
|
}
|
|
28695
28705
|
function U() {
|
|
@@ -28783,12 +28793,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28783
28793
|
function J() {
|
|
28784
28794
|
o.setField(t.name, null);
|
|
28785
28795
|
}
|
|
28786
|
-
return Do(te), (R, _) => (c(), h("div",
|
|
28787
|
-
a.label ? (c(), h("label",
|
|
28796
|
+
return Do(te), (R, _) => (c(), h("div", YH, [
|
|
28797
|
+
a.label ? (c(), h("label", QH, [
|
|
28788
28798
|
D(y(a.label), 1),
|
|
28789
|
-
a.required ? (c(), h("span",
|
|
28799
|
+
a.required ? (c(), h("span", eV, "*")) : H("", !0)
|
|
28790
28800
|
])) : H("", !0),
|
|
28791
|
-
!l.value && !p.value ? (c(), h("div",
|
|
28801
|
+
!l.value && !p.value ? (c(), h("div", aV, [
|
|
28792
28802
|
u("div", {
|
|
28793
28803
|
class: fe(["admin-image-cropper__drop", { "admin-image-cropper__drop--over": s.value }]),
|
|
28794
28804
|
onClick: I,
|
|
@@ -28800,8 +28810,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28800
28810
|
icon: n(to),
|
|
28801
28811
|
size: 28
|
|
28802
28812
|
}, null, 8, ["icon"]),
|
|
28803
|
-
u("p",
|
|
28804
|
-
a.outputWidth && a.outputHeight ? (c(), h("p",
|
|
28813
|
+
u("p", tV, y(n(v)("Кликните или перетащите картинку")), 1),
|
|
28814
|
+
a.outputWidth && a.outputHeight ? (c(), h("p", nV, " Будет обрезано до " + y(a.outputWidth) + "×" + y(a.outputHeight) + " px ", 1)) : H("", !0)
|
|
28805
28815
|
], 34),
|
|
28806
28816
|
u("input", {
|
|
28807
28817
|
ref_key: "fileInput",
|
|
@@ -28810,8 +28820,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28810
28820
|
accept: a.accept ?? "image/*",
|
|
28811
28821
|
class: "admin-image-cropper__input",
|
|
28812
28822
|
onChange: L
|
|
28813
|
-
}, null, 40,
|
|
28814
|
-
])) : p.value ? (c(), h("div",
|
|
28823
|
+
}, null, 40, oV)
|
|
28824
|
+
])) : p.value ? (c(), h("div", cV, [
|
|
28815
28825
|
u("div", {
|
|
28816
28826
|
class: "admin-image-cropper__canvas-wrap",
|
|
28817
28827
|
style: Ve({ width: g.value.w + "px", height: g.value.h + "px" })
|
|
@@ -28822,7 +28832,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28822
28832
|
height: g.value.h,
|
|
28823
28833
|
class: "admin-image-cropper__img",
|
|
28824
28834
|
alt: ""
|
|
28825
|
-
}, null, 8,
|
|
28835
|
+
}, null, 8, iV),
|
|
28826
28836
|
u("div", {
|
|
28827
28837
|
class: "admin-image-cropper__rect",
|
|
28828
28838
|
style: Ve({ left: b.value.x + "px", top: b.value.y + "px", width: b.value.w + "px", height: b.value.h + "px" }),
|
|
@@ -28846,7 +28856,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28846
28856
|
}, null, 32)
|
|
28847
28857
|
], 36)
|
|
28848
28858
|
], 4),
|
|
28849
|
-
u("div",
|
|
28859
|
+
u("div", lV, [
|
|
28850
28860
|
w(n(oe), {
|
|
28851
28861
|
variant: "primary",
|
|
28852
28862
|
size: "sm",
|
|
@@ -28872,16 +28882,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28872
28882
|
_: 1
|
|
28873
28883
|
}, 8, ["disabled"])
|
|
28874
28884
|
])
|
|
28875
|
-
])) : l.value ? (c(), h("div",
|
|
28885
|
+
])) : l.value ? (c(), h("div", rV, [
|
|
28876
28886
|
u("img", {
|
|
28877
28887
|
src: l.value.url,
|
|
28878
28888
|
alt: l.value.name,
|
|
28879
28889
|
class: "admin-image-cropper__preview-img"
|
|
28880
|
-
}, null, 8,
|
|
28881
|
-
u("div",
|
|
28882
|
-
u("div",
|
|
28883
|
-
u("div",
|
|
28884
|
-
u("div",
|
|
28890
|
+
}, null, 8, dV),
|
|
28891
|
+
u("div", sV, [
|
|
28892
|
+
u("div", hV, y(l.value.name), 1),
|
|
28893
|
+
u("div", uV, y(l.value.mime) + " · " + y((l.value.size / 1024).toFixed(1)) + " KB", 1),
|
|
28894
|
+
u("div", yV, [
|
|
28885
28895
|
w(n(oe), {
|
|
28886
28896
|
variant: "ghost",
|
|
28887
28897
|
size: "sm",
|
|
@@ -28907,24 +28917,24 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28907
28917
|
])
|
|
28908
28918
|
])
|
|
28909
28919
|
])) : H("", !0),
|
|
28910
|
-
a.help && !d.value ? (c(), h("p",
|
|
28911
|
-
d.value ? (c(), h("p",
|
|
28920
|
+
a.help && !d.value ? (c(), h("p", pV, y(a.help), 1)) : H("", !0),
|
|
28921
|
+
d.value ? (c(), h("p", kV, y(d.value), 1)) : H("", !0)
|
|
28912
28922
|
]));
|
|
28913
28923
|
}
|
|
28914
|
-
}),
|
|
28924
|
+
}), gV = /* @__PURE__ */ a1(fV, [["__scopeId", "data-v-32d412e9"]]), MV = {
|
|
28915
28925
|
key: 0,
|
|
28916
28926
|
class: "uid-form-field__label"
|
|
28917
|
-
},
|
|
28927
|
+
}, IV = {
|
|
28918
28928
|
key: 0,
|
|
28919
28929
|
class: "uid-form-field__required",
|
|
28920
28930
|
"aria-hidden": "true"
|
|
28921
|
-
},
|
|
28931
|
+
}, wV = { class: "admin-keyvalue__rows" }, xV = { class: "admin-keyvalue__head" }, bV = ["id"], LV = ["value"], CV = {
|
|
28922
28932
|
key: 2,
|
|
28923
28933
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
28924
|
-
},
|
|
28934
|
+
}, _V = {
|
|
28925
28935
|
key: 3,
|
|
28926
28936
|
class: "uid-form-field__hint"
|
|
28927
|
-
},
|
|
28937
|
+
}, SV = /* @__PURE__ */ ne({
|
|
28928
28938
|
__name: "KeyValueField",
|
|
28929
28939
|
props: {
|
|
28930
28940
|
name: {},
|
|
@@ -28970,12 +28980,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28970
28980
|
return (k, g) => (c(), h("div", {
|
|
28971
28981
|
class: fe(["uid-form-field admin-keyvalue", { "uid-form-field--error": !!p.value }])
|
|
28972
28982
|
}, [
|
|
28973
|
-
a.label ? (c(), h("label",
|
|
28983
|
+
a.label ? (c(), h("label", MV, [
|
|
28974
28984
|
D(y(a.label), 1),
|
|
28975
|
-
a.required ? (c(), h("span",
|
|
28985
|
+
a.required ? (c(), h("span", IV, "*")) : H("", !0)
|
|
28976
28986
|
])) : H("", !0),
|
|
28977
|
-
u("div",
|
|
28978
|
-
u("div",
|
|
28987
|
+
u("div", wV, [
|
|
28988
|
+
u("div", xV, [
|
|
28979
28989
|
u("span", null, y(n(v)(a.keyLabel)), 1),
|
|
28980
28990
|
u("span", null, y(n(v)(a.valueLabel)), 1),
|
|
28981
28991
|
g[0] || (g[0] = u("span", null, null, -1))
|
|
@@ -29020,8 +29030,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29020
29030
|
(c(!0), h(X, null, ee(a.allowedKeys, (b) => (c(), h("option", {
|
|
29021
29031
|
key: b,
|
|
29022
29032
|
value: b
|
|
29023
|
-
}, null, 8,
|
|
29024
|
-
], 8,
|
|
29033
|
+
}, null, 8, LV))), 128))
|
|
29034
|
+
], 8, bV)) : H("", !0)
|
|
29025
29035
|
]),
|
|
29026
29036
|
a.addable ? (c(), z(n(oe), {
|
|
29027
29037
|
key: 1,
|
|
@@ -29041,10 +29051,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29041
29051
|
]),
|
|
29042
29052
|
_: 1
|
|
29043
29053
|
})) : H("", !0),
|
|
29044
|
-
p.value ? (c(), h("p",
|
|
29054
|
+
p.value ? (c(), h("p", CV, y(p.value), 1)) : a.help ? (c(), h("p", _V, y(a.help), 1)) : H("", !0)
|
|
29045
29055
|
], 2));
|
|
29046
29056
|
}
|
|
29047
|
-
}),
|
|
29057
|
+
}), qV = /* @__PURE__ */ a1(SV, [["__scopeId", "data-v-e0d5df59"]]), AV = { class: "admin-nested-fields" }, zV = /* @__PURE__ */ ne({
|
|
29048
29058
|
__name: "NestedFieldsGroup",
|
|
29049
29059
|
props: {
|
|
29050
29060
|
fields: {},
|
|
@@ -29057,27 +29067,27 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29057
29067
|
d,
|
|
29058
29068
|
() => l("update:modelValue", { ...d }),
|
|
29059
29069
|
{ deep: !0 }
|
|
29060
|
-
), (i, s) => (c(), h("div",
|
|
29070
|
+
), (i, s) => (c(), h("div", AV, [
|
|
29061
29071
|
(c(!0), h(X, null, ee(a.fields, (r) => (c(), z(vI, {
|
|
29062
29072
|
key: r.name,
|
|
29063
29073
|
node: r
|
|
29064
29074
|
}, null, 8, ["node"]))), 128))
|
|
29065
29075
|
]));
|
|
29066
29076
|
}
|
|
29067
|
-
}), fw = /* @__PURE__ */ a1(
|
|
29077
|
+
}), fw = /* @__PURE__ */ a1(zV, [["__scopeId", "data-v-fdba98be"]]), HV = {
|
|
29068
29078
|
key: 0,
|
|
29069
29079
|
class: "uid-form-field__label"
|
|
29070
|
-
},
|
|
29080
|
+
}, VV = {
|
|
29071
29081
|
key: 0,
|
|
29072
29082
|
class: "uid-form-field__required",
|
|
29073
29083
|
"aria-hidden": "true"
|
|
29074
|
-
},
|
|
29084
|
+
}, PV = { class: "admin-repeater__item-hd" }, FV = { class: "admin-repeater__item-no" }, jV = { class: "admin-repeater__item-actions" }, DV = {
|
|
29075
29085
|
key: 2,
|
|
29076
29086
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29077
|
-
},
|
|
29087
|
+
}, BV = {
|
|
29078
29088
|
key: 3,
|
|
29079
29089
|
class: "uid-form-field__hint"
|
|
29080
|
-
},
|
|
29090
|
+
}, RV = /* @__PURE__ */ ne({
|
|
29081
29091
|
__name: "RepeaterField",
|
|
29082
29092
|
props: {
|
|
29083
29093
|
name: {},
|
|
@@ -29133,9 +29143,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29133
29143
|
return (C, I) => (c(), h("div", {
|
|
29134
29144
|
class: fe(["uid-form-field admin-repeater", { "uid-form-field--error": !!b.value }])
|
|
29135
29145
|
}, [
|
|
29136
|
-
a.label ? (c(), h("label",
|
|
29146
|
+
a.label ? (c(), h("label", HV, [
|
|
29137
29147
|
D(y(a.label), 1),
|
|
29138
|
-
a.required ? (c(), h("span",
|
|
29148
|
+
a.required ? (c(), h("span", VV, "*")) : H("", !0)
|
|
29139
29149
|
])) : H("", !0),
|
|
29140
29150
|
(c(!0), h(X, null, ee(d.value, (L, f) => (c(), z(n(we), {
|
|
29141
29151
|
key: f,
|
|
@@ -29143,9 +29153,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29143
29153
|
class: "admin-repeater__item"
|
|
29144
29154
|
}, {
|
|
29145
29155
|
default: x(() => [
|
|
29146
|
-
u("header",
|
|
29147
|
-
u("span",
|
|
29148
|
-
u("span",
|
|
29156
|
+
u("header", PV, [
|
|
29157
|
+
u("span", FV, "#" + y(f + 1), 1),
|
|
29158
|
+
u("span", jV, [
|
|
29149
29159
|
a.reorderable ? (c(), z(n(oe), {
|
|
29150
29160
|
key: 0,
|
|
29151
29161
|
variant: "ghost",
|
|
@@ -29221,26 +29231,26 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29221
29231
|
]),
|
|
29222
29232
|
_: 1
|
|
29223
29233
|
})) : H("", !0),
|
|
29224
|
-
b.value ? (c(), h("p",
|
|
29234
|
+
b.value ? (c(), h("p", DV, y(b.value), 1)) : a.help ? (c(), h("p", BV, y(a.help), 1)) : H("", !0)
|
|
29225
29235
|
], 2));
|
|
29226
29236
|
}
|
|
29227
|
-
}),
|
|
29237
|
+
}), $V = /* @__PURE__ */ a1(RV, [["__scopeId", "data-v-8b51df90"]]), TV = {
|
|
29228
29238
|
key: 0,
|
|
29229
29239
|
class: "uid-form-field__label"
|
|
29230
|
-
},
|
|
29240
|
+
}, UV = {
|
|
29231
29241
|
key: 0,
|
|
29232
29242
|
class: "uid-form-field__required",
|
|
29233
29243
|
"aria-hidden": "true"
|
|
29234
|
-
},
|
|
29244
|
+
}, OV = { class: "admin-builder__block-hd" }, EV = { class: "admin-builder__block-type" }, ZV = { class: "admin-builder__block-actions" }, WV = {
|
|
29235
29245
|
key: 1,
|
|
29236
29246
|
class: "uid-form-field__hint"
|
|
29237
|
-
},
|
|
29247
|
+
}, GV = {
|
|
29238
29248
|
key: 2,
|
|
29239
29249
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29240
|
-
},
|
|
29250
|
+
}, NV = {
|
|
29241
29251
|
key: 3,
|
|
29242
29252
|
class: "uid-form-field__hint"
|
|
29243
|
-
},
|
|
29253
|
+
}, XV = /* @__PURE__ */ ne({
|
|
29244
29254
|
__name: "BuilderField",
|
|
29245
29255
|
props: {
|
|
29246
29256
|
name: {},
|
|
@@ -29292,9 +29302,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29292
29302
|
return (I, L) => (c(), h("div", {
|
|
29293
29303
|
class: fe(["uid-form-field admin-builder", { "uid-form-field--error": !!C.value }])
|
|
29294
29304
|
}, [
|
|
29295
|
-
a.label ? (c(), h("label",
|
|
29305
|
+
a.label ? (c(), h("label", TV, [
|
|
29296
29306
|
D(y(a.label), 1),
|
|
29297
|
-
a.required ? (c(), h("span",
|
|
29307
|
+
a.required ? (c(), h("span", UV, "*")) : H("", !0)
|
|
29298
29308
|
])) : H("", !0),
|
|
29299
29309
|
(c(!0), h(X, null, ee(d.value, (f, S) => (c(), z(n(we), {
|
|
29300
29310
|
key: S,
|
|
@@ -29302,9 +29312,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29302
29312
|
class: "admin-builder__block"
|
|
29303
29313
|
}, {
|
|
29304
29314
|
default: x(() => [
|
|
29305
|
-
u("header",
|
|
29306
|
-
u("span",
|
|
29307
|
-
u("span",
|
|
29315
|
+
u("header", OV, [
|
|
29316
|
+
u("span", EV, y(b(f.type)?.label ?? f.type), 1),
|
|
29317
|
+
u("span", ZV, [
|
|
29308
29318
|
a.reorderable ? (c(), z(n(oe), {
|
|
29309
29319
|
key: 0,
|
|
29310
29320
|
variant: "ghost",
|
|
@@ -29358,7 +29368,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29358
29368
|
fields: b(f.type).fields,
|
|
29359
29369
|
"model-value": f.data,
|
|
29360
29370
|
"onUpdate:modelValue": (Z) => g(S, Z)
|
|
29361
|
-
}, null, 8, ["fields", "model-value", "onUpdate:modelValue"])) : (c(), h("p",
|
|
29371
|
+
}, null, 8, ["fields", "model-value", "onUpdate:modelValue"])) : (c(), h("p", WV, "Неизвестный тип блока: " + y(f.type), 1))
|
|
29362
29372
|
]),
|
|
29363
29373
|
_: 2
|
|
29364
29374
|
}, 1024))), 128)),
|
|
@@ -29394,16 +29404,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29394
29404
|
]),
|
|
29395
29405
|
_: 1
|
|
29396
29406
|
})) : H("", !0),
|
|
29397
|
-
C.value ? (c(), h("p",
|
|
29407
|
+
C.value ? (c(), h("p", GV, y(C.value), 1)) : a.help ? (c(), h("p", NV, y(a.help), 1)) : H("", !0)
|
|
29398
29408
|
], 2));
|
|
29399
29409
|
}
|
|
29400
|
-
}),
|
|
29410
|
+
}), KV = /* @__PURE__ */ a1(XV, [["__scopeId", "data-v-b8372057"]]), JV = { class: "uid-form-field admin-relation-table" }, YV = {
|
|
29401
29411
|
key: 0,
|
|
29402
29412
|
class: "uid-form-field__label"
|
|
29403
|
-
},
|
|
29413
|
+
}, QV = {
|
|
29404
29414
|
key: 1,
|
|
29405
29415
|
class: "uid-form-field__hint"
|
|
29406
|
-
},
|
|
29416
|
+
}, eP = /* @__PURE__ */ ne({
|
|
29407
29417
|
__name: "RelationTableField",
|
|
29408
29418
|
props: {
|
|
29409
29419
|
name: {},
|
|
@@ -29429,8 +29439,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29429
29439
|
width: i.width ?? void 0
|
|
29430
29440
|
}))
|
|
29431
29441
|
);
|
|
29432
|
-
return (i, s) => (c(), h("div",
|
|
29433
|
-
a.label ? (c(), h("label",
|
|
29442
|
+
return (i, s) => (c(), h("div", JV, [
|
|
29443
|
+
a.label ? (c(), h("label", YV, y(a.label), 1)) : H("", !0),
|
|
29434
29444
|
w(n(we), { padding: "sm" }, {
|
|
29435
29445
|
default: x(() => [
|
|
29436
29446
|
w(n(Co), {
|
|
@@ -29441,23 +29451,23 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29441
29451
|
]),
|
|
29442
29452
|
_: 1
|
|
29443
29453
|
}),
|
|
29444
|
-
a.help ? (c(), h("p",
|
|
29454
|
+
a.help ? (c(), h("p", QV, y(a.help), 1)) : H("", !0)
|
|
29445
29455
|
]));
|
|
29446
29456
|
}
|
|
29447
|
-
}),
|
|
29457
|
+
}), aP = {
|
|
29448
29458
|
key: 0,
|
|
29449
29459
|
class: "uid-form-field__label"
|
|
29450
|
-
},
|
|
29460
|
+
}, tP = {
|
|
29451
29461
|
key: 0,
|
|
29452
29462
|
class: "uid-form-field__required",
|
|
29453
29463
|
"aria-hidden": "true"
|
|
29454
|
-
},
|
|
29464
|
+
}, nP = { class: "admin-generated__row" }, oP = {
|
|
29455
29465
|
key: 1,
|
|
29456
29466
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29457
|
-
},
|
|
29467
|
+
}, cP = {
|
|
29458
29468
|
key: 2,
|
|
29459
29469
|
class: "uid-form-field__hint"
|
|
29460
|
-
},
|
|
29470
|
+
}, iP = /* @__PURE__ */ ne({
|
|
29461
29471
|
__name: "GeneratedField",
|
|
29462
29472
|
props: {
|
|
29463
29473
|
name: {},
|
|
@@ -29500,11 +29510,11 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29500
29510
|
), (g, b) => (c(), h("div", {
|
|
29501
29511
|
class: fe(["uid-form-field admin-generated", { "uid-form-field--error": !!i.value }])
|
|
29502
29512
|
}, [
|
|
29503
|
-
a.label ? (c(), h("label",
|
|
29513
|
+
a.label ? (c(), h("label", aP, [
|
|
29504
29514
|
D(y(a.label), 1),
|
|
29505
|
-
a.required ? (c(), h("span",
|
|
29515
|
+
a.required ? (c(), h("span", tP, "*")) : H("", !0)
|
|
29506
29516
|
])) : H("", !0),
|
|
29507
|
-
u("div",
|
|
29517
|
+
u("div", nP, [
|
|
29508
29518
|
w(n(Le), {
|
|
29509
29519
|
"model-value": d.value,
|
|
29510
29520
|
error: i.value,
|
|
@@ -29529,10 +29539,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29529
29539
|
_: 1
|
|
29530
29540
|
}, 8, ["disabled"])) : H("", !0)
|
|
29531
29541
|
]),
|
|
29532
|
-
i.value ? (c(), h("p",
|
|
29542
|
+
i.value ? (c(), h("p", oP, y(i.value), 1)) : a.help ? (c(), h("p", cP, y(a.help), 1)) : H("", !0)
|
|
29533
29543
|
], 2));
|
|
29534
29544
|
}
|
|
29535
|
-
}),
|
|
29545
|
+
}), lP = /* @__PURE__ */ ne({
|
|
29536
29546
|
__name: "ColumnsLayout",
|
|
29537
29547
|
props: {
|
|
29538
29548
|
items: {},
|
|
@@ -29561,16 +29571,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29561
29571
|
_: 1
|
|
29562
29572
|
}, 8, ["cols", "gap"]));
|
|
29563
29573
|
}
|
|
29564
|
-
}),
|
|
29574
|
+
}), rP = {
|
|
29565
29575
|
key: 0,
|
|
29566
29576
|
class: "admin-section__header"
|
|
29567
|
-
},
|
|
29577
|
+
}, dP = {
|
|
29568
29578
|
key: 0,
|
|
29569
29579
|
class: "admin-section__title"
|
|
29570
|
-
},
|
|
29580
|
+
}, sP = {
|
|
29571
29581
|
key: 1,
|
|
29572
29582
|
class: "admin-section__description"
|
|
29573
|
-
},
|
|
29583
|
+
}, hP = { class: "admin-section__body" }, Po = /* @__PURE__ */ ne({
|
|
29574
29584
|
__name: "SectionLayout",
|
|
29575
29585
|
props: {
|
|
29576
29586
|
items: {},
|
|
@@ -29583,11 +29593,11 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29583
29593
|
class: "admin-section"
|
|
29584
29594
|
}, {
|
|
29585
29595
|
default: x(() => [
|
|
29586
|
-
a.title || a.description ? (c(), h("header",
|
|
29587
|
-
a.title ? (c(), h("h3",
|
|
29588
|
-
a.description ? (c(), h("p",
|
|
29596
|
+
a.title || a.description ? (c(), h("header", rP, [
|
|
29597
|
+
a.title ? (c(), h("h3", dP, y(a.title), 1)) : H("", !0),
|
|
29598
|
+
a.description ? (c(), h("p", sP, y(a.description), 1)) : H("", !0)
|
|
29589
29599
|
])) : H("", !0),
|
|
29590
|
-
u("div",
|
|
29600
|
+
u("div", hP, [
|
|
29591
29601
|
(c(!0), h(X, null, ee(a.items, (l, d) => (c(), z(bo, {
|
|
29592
29602
|
key: d,
|
|
29593
29603
|
node: l
|
|
@@ -29597,7 +29607,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29597
29607
|
_: 1
|
|
29598
29608
|
}));
|
|
29599
29609
|
}
|
|
29600
|
-
}),
|
|
29610
|
+
}), uP = /* @__PURE__ */ ne({
|
|
29601
29611
|
__name: "TabsLayout",
|
|
29602
29612
|
props: {
|
|
29603
29613
|
items: {},
|
|
@@ -29645,10 +29655,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29645
29655
|
_: 1
|
|
29646
29656
|
}, 8, ["model-value"]));
|
|
29647
29657
|
}
|
|
29648
|
-
}),
|
|
29658
|
+
}), yP = { class: "admin-embedded-table" }, pP = { class: "admin-embedded-table__toolbar" }, kP = { key: 1 }, mP = ["aria-label", "onClick"], vP = {
|
|
29649
29659
|
key: 4,
|
|
29650
29660
|
class: "admin-embedded-table__draft"
|
|
29651
|
-
},
|
|
29661
|
+
}, fP = { class: "admin-embedded-table__draft-cells" }, gP = { class: "admin-embedded-table__draft-label" }, MP = ["value", "onChange"], IP = ["value"], wP = ["type", "value", "onInput"], xP = { class: "admin-embedded-table__draft-actions" }, bP = /* @__PURE__ */ ne({
|
|
29652
29662
|
__name: "EmbeddedResourceTable",
|
|
29653
29663
|
props: {
|
|
29654
29664
|
resource: {},
|
|
@@ -29753,8 +29763,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29753
29763
|
const _ = J[R];
|
|
29754
29764
|
return _ == null ? "" : String(_);
|
|
29755
29765
|
}
|
|
29756
|
-
return (J, R) => (c(), h("div",
|
|
29757
|
-
u("div",
|
|
29766
|
+
return (J, R) => (c(), h("div", yP, [
|
|
29767
|
+
u("div", pP, [
|
|
29758
29768
|
C.value ? (c(), z(n(oe), {
|
|
29759
29769
|
key: 0,
|
|
29760
29770
|
variant: "primary",
|
|
@@ -29821,7 +29831,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29821
29831
|
u("span", null, y(W(U(j), _.key)), 1)
|
|
29822
29832
|
]),
|
|
29823
29833
|
_: 2
|
|
29824
|
-
}, 1032, ["resource-slug", "row-id", "column", "value", "input-type", "options", "row-override", "onSaved"])) : (c(), h("span",
|
|
29834
|
+
}, 1032, ["resource-slug", "row-id", "column", "value", "input-type", "options", "row-override", "onSaved"])) : (c(), h("span", kP, y(W(U(j) ?? {}, _.key)), 1))
|
|
29825
29835
|
])
|
|
29826
29836
|
})),
|
|
29827
29837
|
I.value ? {
|
|
@@ -29837,18 +29847,18 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29837
29847
|
icon: n(Ue),
|
|
29838
29848
|
size: 14
|
|
29839
29849
|
}, null, 8, ["icon"])
|
|
29840
|
-
], 8,
|
|
29850
|
+
], 8, mP)
|
|
29841
29851
|
]),
|
|
29842
29852
|
key: "0"
|
|
29843
29853
|
} : void 0
|
|
29844
29854
|
]), 1032, ["columns", "data", "selectable", "selection"])),
|
|
29845
|
-
m.value !== null ? (c(), h("div",
|
|
29846
|
-
u("div",
|
|
29855
|
+
m.value !== null ? (c(), h("div", vP, [
|
|
29856
|
+
u("div", fP, [
|
|
29847
29857
|
(c(!0), h(X, null, ee(b.value, (_) => (c(), h("div", {
|
|
29848
29858
|
key: _.key,
|
|
29849
29859
|
class: "admin-embedded-table__draft-cell"
|
|
29850
29860
|
}, [
|
|
29851
|
-
u("label",
|
|
29861
|
+
u("label", gP, y(_.label), 1),
|
|
29852
29862
|
f(_.key)?.as === "select" ? (c(), h("select", {
|
|
29853
29863
|
key: 0,
|
|
29854
29864
|
class: "admin-embedded-table__draft-input",
|
|
@@ -29859,17 +29869,17 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29859
29869
|
(c(!0), h(X, null, ee(f(_.key).options, (j, q) => (c(), h("option", {
|
|
29860
29870
|
key: q,
|
|
29861
29871
|
value: q
|
|
29862
|
-
}, y(j), 9,
|
|
29863
|
-
], 40,
|
|
29872
|
+
}, y(j), 9, IP))), 128))
|
|
29873
|
+
], 40, MP)) : (c(), h("input", {
|
|
29864
29874
|
key: 1,
|
|
29865
29875
|
class: "admin-embedded-table__draft-input",
|
|
29866
29876
|
type: f(_.key)?.as === "number" ? "number" : f(_.key)?.as === "date" ? "date" : "text",
|
|
29867
29877
|
value: m.value[_.key] ?? "",
|
|
29868
29878
|
onInput: (j) => te(_.key, j.target.value)
|
|
29869
|
-
}, null, 40,
|
|
29879
|
+
}, null, 40, wP))
|
|
29870
29880
|
]))), 128))
|
|
29871
29881
|
]),
|
|
29872
|
-
u("div",
|
|
29882
|
+
u("div", xP, [
|
|
29873
29883
|
w(n(oe), {
|
|
29874
29884
|
variant: "primary",
|
|
29875
29885
|
size: "sm",
|
|
@@ -29896,7 +29906,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29896
29906
|
])) : H("", !0)
|
|
29897
29907
|
]));
|
|
29898
29908
|
}
|
|
29899
|
-
}),
|
|
29909
|
+
}), LP = /* @__PURE__ */ a1(bP, [["__scopeId", "data-v-17c526a7"]]), CP = /* @__PURE__ */ ne({
|
|
29900
29910
|
__name: "DashboardLayout",
|
|
29901
29911
|
props: {
|
|
29902
29912
|
items: { default: () => [] },
|
|
@@ -29937,14 +29947,14 @@ function Fo(a) {
|
|
|
29937
29947
|
}
|
|
29938
29948
|
});
|
|
29939
29949
|
}
|
|
29940
|
-
function
|
|
29950
|
+
function _P(a) {
|
|
29941
29951
|
for (const [t, o] of Object.entries(a.fields ?? {}))
|
|
29942
|
-
|
|
29952
|
+
bC(t) || xC(t, o);
|
|
29943
29953
|
for (const [t, o] of Object.entries(a.layouts ?? {}))
|
|
29944
|
-
|
|
29954
|
+
CC(t) || LC(t, o);
|
|
29945
29955
|
}
|
|
29946
|
-
function
|
|
29947
|
-
|
|
29956
|
+
function SP() {
|
|
29957
|
+
_P({
|
|
29948
29958
|
fields: {
|
|
29949
29959
|
// Backend Field-классы из dskripchenko/laravel-admin отдают эти fieldType()
|
|
29950
29960
|
// строки. Соответствие см. core/src/Field/{Input,TextArea,Select,...}.php.
|
|
@@ -29963,7 +29973,7 @@ function _P() {
|
|
|
29963
29973
|
// ~7 KB gzip). Host может перебить:
|
|
29964
29974
|
// import { QuillField } from '@dskripchenko/laravel-admin/quill'
|
|
29965
29975
|
// registerField('wysiwyg', QuillField)
|
|
29966
|
-
wysiwyg:
|
|
29976
|
+
wysiwyg: BH,
|
|
29967
29977
|
markdown: Y9,
|
|
29968
29978
|
code: Y9,
|
|
29969
29979
|
number: Q9,
|
|
@@ -29972,7 +29982,7 @@ function _P() {
|
|
|
29972
29982
|
select: n1,
|
|
29973
29983
|
combobox: n1,
|
|
29974
29984
|
radio: n1,
|
|
29975
|
-
tags:
|
|
29985
|
+
tags: IH,
|
|
29976
29986
|
// Translatable: backend Field\TranslatableInput → fieldType()='translatable'.
|
|
29977
29987
|
// Хранит value как Record<locale, string>; UI показывает табы по локалям.
|
|
29978
29988
|
translatable: BI,
|
|
@@ -30001,27 +30011,27 @@ function _P() {
|
|
|
30001
30011
|
"color-picker": m1,
|
|
30002
30012
|
file: RI,
|
|
30003
30013
|
image: RI,
|
|
30004
|
-
image_cropper:
|
|
30014
|
+
image_cropper: gV,
|
|
30005
30015
|
// Составные поля (backlog ROADMAP): рендерились UnknownField.
|
|
30006
|
-
key_value:
|
|
30007
|
-
repeater:
|
|
30008
|
-
"generated-field":
|
|
30009
|
-
builder:
|
|
30010
|
-
relation_table:
|
|
30016
|
+
key_value: qV,
|
|
30017
|
+
repeater: $V,
|
|
30018
|
+
"generated-field": iP,
|
|
30019
|
+
builder: KV,
|
|
30020
|
+
relation_table: eP
|
|
30011
30021
|
},
|
|
30012
30022
|
layouts: {
|
|
30013
30023
|
rows: aI,
|
|
30014
|
-
columns:
|
|
30024
|
+
columns: lP,
|
|
30015
30025
|
section: Po,
|
|
30016
30026
|
block: Po,
|
|
30017
|
-
tabs:
|
|
30027
|
+
tabs: uP,
|
|
30018
30028
|
accordion: Po,
|
|
30019
30029
|
group: aI,
|
|
30020
30030
|
step: Po,
|
|
30021
30031
|
wizard: Po,
|
|
30022
30032
|
// Widgets on an ordinary screen: `Layout\Dashboard::make([...])`.
|
|
30023
|
-
dashboard:
|
|
30024
|
-
"admin.resource-table":
|
|
30033
|
+
dashboard: CP,
|
|
30034
|
+
"admin.resource-table": LP
|
|
30025
30035
|
}
|
|
30026
30036
|
});
|
|
30027
30037
|
}
|
|
@@ -30047,10 +30057,10 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30047
30057
|
class: fe(["admin-infolist-text", a.mono ? "admin-infolist-text--mono" : ""])
|
|
30048
30058
|
}, y(l.value), 3));
|
|
30049
30059
|
}
|
|
30050
|
-
}),
|
|
30060
|
+
}), qP = {
|
|
30051
30061
|
key: 1,
|
|
30052
30062
|
class: "admin-infolist-text"
|
|
30053
|
-
},
|
|
30063
|
+
}, AP = /* @__PURE__ */ ne({
|
|
30054
30064
|
__name: "BadgeEntry",
|
|
30055
30065
|
props: {
|
|
30056
30066
|
name: { default: "" },
|
|
@@ -30077,9 +30087,9 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30077
30087
|
D(y(s.value), 1)
|
|
30078
30088
|
]),
|
|
30079
30089
|
_: 1
|
|
30080
|
-
}, 8, ["variant"])) : (c(), h("span",
|
|
30090
|
+
}, 8, ["variant"])) : (c(), h("span", qP, "—"));
|
|
30081
30091
|
}
|
|
30082
|
-
}),
|
|
30092
|
+
}), zP = { key: 1 }, HP = /* @__PURE__ */ ne({
|
|
30083
30093
|
__name: "IconEntry",
|
|
30084
30094
|
props: {
|
|
30085
30095
|
name: { default: "" },
|
|
@@ -30111,10 +30121,10 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30111
30121
|
size: 14,
|
|
30112
30122
|
class: "admin-infolist-icon__glyph"
|
|
30113
30123
|
}, null, 8, ["icon"])) : H("", !0),
|
|
30114
|
-
s.value ? (c(), h("span",
|
|
30124
|
+
s.value ? (c(), h("span", zP, y(s.value), 1)) : H("", !0)
|
|
30115
30125
|
], 2));
|
|
30116
30126
|
}
|
|
30117
|
-
}),
|
|
30127
|
+
}), VP = {
|
|
30118
30128
|
key: 1,
|
|
30119
30129
|
class: "admin-infolist-text"
|
|
30120
30130
|
}, eI = /* @__PURE__ */ ne({
|
|
@@ -30149,24 +30159,24 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30149
30159
|
}, 1032, ["label"]))), 128))
|
|
30150
30160
|
]),
|
|
30151
30161
|
_: 1
|
|
30152
|
-
})) : (c(), h("span",
|
|
30162
|
+
})) : (c(), h("span", VP, "—"));
|
|
30153
30163
|
}
|
|
30154
|
-
}),
|
|
30164
|
+
}), PP = { class: "admin-repeatable" }, FP = {
|
|
30155
30165
|
key: 0,
|
|
30156
30166
|
class: "admin-repeatable__lbl"
|
|
30157
|
-
},
|
|
30167
|
+
}, jP = {
|
|
30158
30168
|
key: 1,
|
|
30159
30169
|
class: "admin-repeatable__empty"
|
|
30160
|
-
},
|
|
30170
|
+
}, DP = {
|
|
30161
30171
|
key: 2,
|
|
30162
30172
|
class: "admin-repeatable__tbl"
|
|
30163
|
-
},
|
|
30173
|
+
}, BP = { class: "admin-repeatable__idx" }, RP = {
|
|
30164
30174
|
key: 3,
|
|
30165
30175
|
class: "admin-repeatable__cards"
|
|
30166
|
-
},
|
|
30176
|
+
}, $P = { class: "admin-repeatable__card-hd" }, TP = { class: "admin-repeatable__dl" }, UP = {
|
|
30167
30177
|
key: 4,
|
|
30168
30178
|
class: "admin-repeatable__inline"
|
|
30169
|
-
},
|
|
30179
|
+
}, OP = /* @__PURE__ */ ne({
|
|
30170
30180
|
__name: "RepeatableEntry",
|
|
30171
30181
|
props: {
|
|
30172
30182
|
name: { default: "" },
|
|
@@ -30204,9 +30214,9 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30204
30214
|
name: r.name
|
|
30205
30215
|
};
|
|
30206
30216
|
}
|
|
30207
|
-
return (r, p) => (c(), h("div",
|
|
30208
|
-
a.label ? (c(), h("span",
|
|
30209
|
-
l.value.length === 0 ? (c(), h("p",
|
|
30217
|
+
return (r, p) => (c(), h("div", PP, [
|
|
30218
|
+
a.label ? (c(), h("span", FP, y(a.label), 1)) : H("", !0),
|
|
30219
|
+
l.value.length === 0 ? (c(), h("p", jP, y(a.placeholder), 1)) : a.layout === "columns" ? (c(), h("table", DP, [
|
|
30210
30220
|
u("thead", null, [
|
|
30211
30221
|
u("tr", null, [
|
|
30212
30222
|
p[0] || (p[0] = u("th", { class: "admin-repeatable__idx" }, "#", -1)),
|
|
@@ -30217,7 +30227,7 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30217
30227
|
]),
|
|
30218
30228
|
u("tbody", null, [
|
|
30219
30229
|
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("tr", { key: k }, [
|
|
30220
|
-
u("td",
|
|
30230
|
+
u("td", BP, y(k + 1), 1),
|
|
30221
30231
|
(c(!0), h(X, null, ee(a.entries, (g) => (c(), h("td", {
|
|
30222
30232
|
key: g.name
|
|
30223
30233
|
}, [
|
|
@@ -30225,13 +30235,13 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30225
30235
|
]))), 128))
|
|
30226
30236
|
]))), 128))
|
|
30227
30237
|
])
|
|
30228
|
-
])) : a.layout === "rows" ? (c(), h("div",
|
|
30238
|
+
])) : a.layout === "rows" ? (c(), h("div", RP, [
|
|
30229
30239
|
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("article", {
|
|
30230
30240
|
key: k,
|
|
30231
30241
|
class: "admin-repeatable__card"
|
|
30232
30242
|
}, [
|
|
30233
|
-
u("header",
|
|
30234
|
-
u("dl",
|
|
30243
|
+
u("header", $P, "#" + y(k + 1), 1),
|
|
30244
|
+
u("dl", TP, [
|
|
30235
30245
|
(c(!0), h(X, null, ee(a.entries, (g) => (c(), h(X, {
|
|
30236
30246
|
key: g.name
|
|
30237
30247
|
}, [
|
|
@@ -30242,7 +30252,7 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30242
30252
|
], 64))), 128))
|
|
30243
30253
|
])
|
|
30244
30254
|
]))), 128))
|
|
30245
|
-
])) : (c(), h("div",
|
|
30255
|
+
])) : (c(), h("div", UP, [
|
|
30246
30256
|
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("span", {
|
|
30247
30257
|
key: k,
|
|
30248
30258
|
class: "admin-repeatable__chip"
|
|
@@ -30256,17 +30266,17 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30256
30266
|
]));
|
|
30257
30267
|
}
|
|
30258
30268
|
});
|
|
30259
|
-
function
|
|
30260
|
-
|
|
30269
|
+
function EP() {
|
|
30270
|
+
JS({
|
|
30261
30271
|
// Дефолтные типы infolist (BadgeEntry::make() и т.п.).
|
|
30262
30272
|
text: ge,
|
|
30263
|
-
badge:
|
|
30264
|
-
icon:
|
|
30273
|
+
badge: AP,
|
|
30274
|
+
icon: HP,
|
|
30265
30275
|
keyvalue: eI,
|
|
30266
30276
|
key_value: eI,
|
|
30267
30277
|
"key-value": eI,
|
|
30268
30278
|
// Repeatable: коллекция объектов с nested-entries (таблица/cards/inline).
|
|
30269
|
-
repeatable:
|
|
30279
|
+
repeatable: OP,
|
|
30270
30280
|
// Маппинг от backend Field::fieldType() → TextEntry для view-режима.
|
|
30271
30281
|
// Host'ы могут перебить registerInfolistEntry('wysiwyg', WysiwygEntry).
|
|
30272
30282
|
input: ge,
|
|
@@ -30306,34 +30316,34 @@ function OP() {
|
|
|
30306
30316
|
"color-picker": ge
|
|
30307
30317
|
});
|
|
30308
30318
|
}
|
|
30309
|
-
function
|
|
30310
|
-
const o = t.pages ?? {}, l = t.base ??
|
|
30319
|
+
function oj(a, t = {}) {
|
|
30320
|
+
const o = t.pages ?? {}, l = t.base ?? ZP(a.baseUrl) ?? "/admin", d = Kz({
|
|
30311
30321
|
baseURL: a.apiUrl,
|
|
30312
30322
|
csrfToken: a.csrf
|
|
30313
30323
|
});
|
|
30314
30324
|
GI(d);
|
|
30315
|
-
const i = Dw(
|
|
30325
|
+
const i = Dw(Gb), s = Bw();
|
|
30316
30326
|
i.use(s);
|
|
30317
30327
|
const r = a.brand ?? {};
|
|
30318
|
-
i.provide(YI, r),
|
|
30319
|
-
const p =
|
|
30328
|
+
i.provide(YI, r), WP(r.favicon), Qe().hydrate(a), co().hydrate(a), pI().hydrate(a), P9().hydrate(a), W2().hydrate(a), SP(), Nz(), EP();
|
|
30329
|
+
const p = sH({
|
|
30320
30330
|
base: l,
|
|
30321
30331
|
history: t.router?.history ?? UI(l),
|
|
30322
30332
|
components: {
|
|
30323
|
-
login: o.login ??
|
|
30324
|
-
home: o.home ??
|
|
30325
|
-
forbidden: o.forbidden ??
|
|
30326
|
-
notFound: o.notFound ??
|
|
30327
|
-
profile: o.profile ??
|
|
30328
|
-
forgotPassword: o.forgotPassword ??
|
|
30329
|
-
resetPassword: o.resetPassword ??
|
|
30330
|
-
resourceIndex: o.resourceIndex ??
|
|
30333
|
+
login: o.login ?? JC,
|
|
30334
|
+
home: o.home ?? sC,
|
|
30335
|
+
forbidden: o.forbidden ?? yC,
|
|
30336
|
+
notFound: o.notFound ?? mC,
|
|
30337
|
+
profile: o.profile ?? nz,
|
|
30338
|
+
forgotPassword: o.forgotPassword ?? i_,
|
|
30339
|
+
resetPassword: o.resetPassword ?? m_,
|
|
30340
|
+
resourceIndex: o.resourceIndex ?? $S,
|
|
30331
30341
|
resourceCreate: o.resourceCreate ?? PI,
|
|
30332
30342
|
resourceEdit: o.resourceEdit ?? PI,
|
|
30333
|
-
resourceView: o.resourceView ??
|
|
30343
|
+
resourceView: o.resourceView ?? Kq,
|
|
30334
30344
|
dashboard: o.dashboard ?? tw,
|
|
30335
|
-
settings: o.settings ??
|
|
30336
|
-
screen: o.screen ??
|
|
30345
|
+
settings: o.settings ?? IC,
|
|
30346
|
+
screen: o.screen ?? PC
|
|
30337
30347
|
},
|
|
30338
30348
|
extraRoutes: t.router?.extraRoutes,
|
|
30339
30349
|
authGuard: t.router?.authGuard,
|
|
@@ -30353,7 +30363,7 @@ function nj(a, t = {}) {
|
|
|
30353
30363
|
const I = k.params.slug ?? k.meta.slug;
|
|
30354
30364
|
if (I)
|
|
30355
30365
|
try {
|
|
30356
|
-
const { useResourceIndexStore: L } = await Promise.resolve().then(() =>
|
|
30366
|
+
const { useResourceIndexStore: L } = await Promise.resolve().then(() => v_), f = L();
|
|
30357
30367
|
(f.slug !== I || f.items.length === 0) && (f.setSlug(I), await f.load().catch(() => {
|
|
30358
30368
|
}));
|
|
30359
30369
|
} catch {
|
|
@@ -30387,7 +30397,7 @@ function nj(a, t = {}) {
|
|
|
30387
30397
|
}
|
|
30388
30398
|
return t.onAppCreated?.(i), { app: i, router: p, client: d };
|
|
30389
30399
|
}
|
|
30390
|
-
function
|
|
30400
|
+
function ZP(a) {
|
|
30391
30401
|
if (!a) return null;
|
|
30392
30402
|
try {
|
|
30393
30403
|
return new URL(a).pathname || "/admin";
|
|
@@ -30395,23 +30405,23 @@ function EP(a) {
|
|
|
30395
30405
|
return a.startsWith("/") ? a : null;
|
|
30396
30406
|
}
|
|
30397
30407
|
}
|
|
30398
|
-
function
|
|
30408
|
+
function WP(a) {
|
|
30399
30409
|
if (typeof document > "u" || !a) return;
|
|
30400
30410
|
let t = document.querySelector('link[rel~="icon"]');
|
|
30401
30411
|
t === null && (t = document.createElement("link"), t.rel = "icon", document.head.appendChild(t)), t.href = a;
|
|
30402
30412
|
}
|
|
30403
|
-
const
|
|
30413
|
+
const GP = { class: "admin-status-page" }, NP = { class: "admin-status-page__title" }, XP = { class: "admin-status-page__hint" }, cj = /* @__PURE__ */ ne({
|
|
30404
30414
|
__name: "UnknownScreenPage",
|
|
30405
30415
|
setup(a) {
|
|
30406
30416
|
const t = l1(), o = M(() => String(t.params.slug ?? "")), l = M(() => String(t.meta?.title ?? o.value));
|
|
30407
|
-
return (d, i) => (c(), h("div",
|
|
30417
|
+
return (d, i) => (c(), h("div", GP, [
|
|
30408
30418
|
w(n(we), {
|
|
30409
30419
|
padding: "lg",
|
|
30410
30420
|
class: "admin-status-page__card"
|
|
30411
30421
|
}, {
|
|
30412
30422
|
default: x(() => [
|
|
30413
|
-
u("h1",
|
|
30414
|
-
u("p",
|
|
30423
|
+
u("h1", NP, y(l.value), 1),
|
|
30424
|
+
u("p", XP, [
|
|
30415
30425
|
D(" Это заглушка для screen «" + y(o.value) + "». Передайте свой компонент через ", 1),
|
|
30416
30426
|
i[0] || (i[0] = u("code", null, "createAdminApp(" + y("{") + " pages: " + y("{") + " screen: MyScreen " + y("}") + " " + y("}") + ")", -1)),
|
|
30417
30427
|
i[1] || (i[1] = D(". ", -1))
|
|
@@ -30422,8 +30432,8 @@ const WP = { class: "admin-status-page" }, GP = { class: "admin-status-page__tit
|
|
|
30422
30432
|
]));
|
|
30423
30433
|
}
|
|
30424
30434
|
});
|
|
30425
|
-
async function
|
|
30426
|
-
const t =
|
|
30435
|
+
async function ij(a = {}) {
|
|
30436
|
+
const t = KP();
|
|
30427
30437
|
if (t)
|
|
30428
30438
|
return t;
|
|
30429
30439
|
if (a.client)
|
|
@@ -30437,31 +30447,31 @@ async function cj(a = {}) {
|
|
|
30437
30447
|
}
|
|
30438
30448
|
return null;
|
|
30439
30449
|
}
|
|
30440
|
-
function
|
|
30450
|
+
function KP() {
|
|
30441
30451
|
return typeof window > "u" ? null : window.__ADMIN_BOOTSTRAP__ ?? null;
|
|
30442
30452
|
}
|
|
30443
|
-
function
|
|
30453
|
+
function lj() {
|
|
30444
30454
|
return typeof document > "u" ? null : document.querySelector('meta[name="csrf-token"]')?.getAttribute("content") ?? null;
|
|
30445
30455
|
}
|
|
30446
|
-
const
|
|
30456
|
+
const JP = { class: "admin-notifs__hd" }, YP = { class: "admin-notifs__title" }, QP = {
|
|
30447
30457
|
key: 0,
|
|
30448
30458
|
class: "admin-notifs__count"
|
|
30449
|
-
},
|
|
30459
|
+
}, eF = { class: "admin-notifs__list" }, aF = {
|
|
30450
30460
|
key: 0,
|
|
30451
30461
|
class: "admin-notifs__empty"
|
|
30452
|
-
},
|
|
30462
|
+
}, tF = {
|
|
30453
30463
|
key: 1,
|
|
30454
30464
|
class: "admin-notifs__empty"
|
|
30455
|
-
},
|
|
30465
|
+
}, nF = ["onClick"], oF = ["data-kind"], cF = { class: "admin-notifs__body" }, iF = { class: "admin-notifs__row1" }, lF = {
|
|
30456
30466
|
key: 0,
|
|
30457
30467
|
class: "admin-notifs__title-strong"
|
|
30458
|
-
},
|
|
30468
|
+
}, rF = {
|
|
30459
30469
|
key: 1,
|
|
30460
30470
|
class: "admin-notifs__title-soft"
|
|
30461
|
-
},
|
|
30471
|
+
}, dF = { class: "admin-notifs__time" }, sF = {
|
|
30462
30472
|
key: 0,
|
|
30463
30473
|
class: "admin-notifs__text"
|
|
30464
|
-
},
|
|
30474
|
+
}, hF = ["aria-label", "onClick"], rj = /* @__PURE__ */ ne({
|
|
30465
30475
|
__name: "NotificationsDrawer",
|
|
30466
30476
|
props: {
|
|
30467
30477
|
open: { type: Boolean }
|
|
@@ -30525,10 +30535,10 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30525
30535
|
"onUpdate:modelValue": i
|
|
30526
30536
|
}, {
|
|
30527
30537
|
header: x(() => [
|
|
30528
|
-
u("div",
|
|
30529
|
-
u("h2",
|
|
30538
|
+
u("div", JP, [
|
|
30539
|
+
u("h2", YP, [
|
|
30530
30540
|
D(y(n(v)("Уведомления")) + " ", 1),
|
|
30531
|
-
n(d).unreadCount > 0 ? (c(), h("span",
|
|
30541
|
+
n(d).unreadCount > 0 ? (c(), h("span", QP, " (" + y(n(d).unreadCount) + ") ", 1)) : H("", !0)
|
|
30532
30542
|
]),
|
|
30533
30543
|
n(d).unreadCount > 0 ? (c(), z(n(oe), {
|
|
30534
30544
|
key: 0,
|
|
@@ -30577,8 +30587,8 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30577
30587
|
value: S
|
|
30578
30588
|
}, {
|
|
30579
30589
|
default: x(() => [
|
|
30580
|
-
u("ul",
|
|
30581
|
-
n(d).loading ? (c(), h("li",
|
|
30590
|
+
u("ul", eF, [
|
|
30591
|
+
n(d).loading ? (c(), h("li", aF, y(n(v)("Загрузка…")), 1)) : n(d).items.length === 0 ? (c(), h("li", tF, y(n(v)("Нет уведомлений")), 1)) : H("", !0),
|
|
30582
30592
|
(c(!0), h(X, null, ee(n(d).items, (Z) => (c(), h("li", {
|
|
30583
30593
|
key: Z.id,
|
|
30584
30594
|
class: fe([
|
|
@@ -30591,21 +30601,21 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30591
30601
|
u("span", {
|
|
30592
30602
|
class: "admin-notifs__icon",
|
|
30593
30603
|
"data-kind": g(Z)
|
|
30594
|
-
}, null, 8,
|
|
30595
|
-
u("div",
|
|
30596
|
-
u("div",
|
|
30597
|
-
Z.read_at ? (c(), h("span",
|
|
30598
|
-
u("span",
|
|
30604
|
+
}, null, 8, oF),
|
|
30605
|
+
u("div", cF, [
|
|
30606
|
+
u("div", iF, [
|
|
30607
|
+
Z.read_at ? (c(), h("span", rF, y(b(Z)), 1)) : (c(), h("strong", lF, y(b(Z)), 1)),
|
|
30608
|
+
u("span", dF, y(I(Z.created_at)), 1)
|
|
30599
30609
|
]),
|
|
30600
|
-
C(Z) ? (c(), h("p",
|
|
30610
|
+
C(Z) ? (c(), h("p", sF, y(C(Z)), 1)) : H("", !0)
|
|
30601
30611
|
]),
|
|
30602
30612
|
u("button", {
|
|
30603
30613
|
type: "button",
|
|
30604
30614
|
class: "admin-notifs__close",
|
|
30605
30615
|
"aria-label": n(v)("Удалить"),
|
|
30606
30616
|
onClick: (U) => k(Z, U)
|
|
30607
|
-
}, " × ", 8,
|
|
30608
|
-
], 10,
|
|
30617
|
+
}, " × ", 8, hF)
|
|
30618
|
+
], 10, nF))), 128))
|
|
30609
30619
|
])
|
|
30610
30620
|
]),
|
|
30611
30621
|
_: 1
|
|
@@ -30617,22 +30627,22 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30617
30627
|
_: 1
|
|
30618
30628
|
}, 8, ["model-value", "title"]));
|
|
30619
30629
|
}
|
|
30620
|
-
}),
|
|
30630
|
+
}), uF = { class: "admin-page admin-import-wizard" }, yF = { class: "admin-page__hd" }, pF = { class: "admin-page__title-wrap" }, kF = { class: "admin-page__title" }, mF = { class: "admin-page__actions" }, vF = { class: "admin-import-wizard__card-hd" }, fF = { class: "admin-import-wizard__card-hd" }, gF = {
|
|
30621
30631
|
key: 0,
|
|
30622
30632
|
class: "admin-import-wizard__empty"
|
|
30623
|
-
},
|
|
30633
|
+
}, MF = {
|
|
30624
30634
|
key: 1,
|
|
30625
30635
|
class: "admin-import-wizard__mapping"
|
|
30626
|
-
},
|
|
30636
|
+
}, IF = { class: "admin-import-wizard__map-source" }, wF = {
|
|
30627
30637
|
key: 0,
|
|
30628
30638
|
class: "admin-import-wizard__map-sample"
|
|
30629
|
-
},
|
|
30639
|
+
}, xF = { class: "admin-import-wizard__card-hd" }, bF = {
|
|
30630
30640
|
key: 2,
|
|
30631
30641
|
class: "admin-import-wizard__empty"
|
|
30632
|
-
},
|
|
30642
|
+
}, LF = { class: "admin-import-wizard__card-hd" }, CF = {
|
|
30633
30643
|
key: 0,
|
|
30634
30644
|
class: "admin-import-wizard__empty"
|
|
30635
|
-
},
|
|
30645
|
+
}, _F = { class: "admin-import-wizard__kpi" }, SF = { class: "admin-import-wizard__nav" }, dj = /* @__PURE__ */ ne({
|
|
30636
30646
|
__name: "ImportWizardPage",
|
|
30637
30647
|
props: {
|
|
30638
30648
|
title: { default: "Импорт" },
|
|
@@ -30692,12 +30702,12 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30692
30702
|
function Z() {
|
|
30693
30703
|
l("cancel");
|
|
30694
30704
|
}
|
|
30695
|
-
return (U, V) => (c(), h("section",
|
|
30696
|
-
u("header",
|
|
30697
|
-
u("div",
|
|
30698
|
-
u("h1",
|
|
30705
|
+
return (U, V) => (c(), h("section", uF, [
|
|
30706
|
+
u("header", yF, [
|
|
30707
|
+
u("div", pF, [
|
|
30708
|
+
u("h1", kF, y(n(v)(a.title)), 1)
|
|
30699
30709
|
]),
|
|
30700
|
-
u("div",
|
|
30710
|
+
u("div", mF, [
|
|
30701
30711
|
w(n(oe), {
|
|
30702
30712
|
variant: "ghost",
|
|
30703
30713
|
onClick: Z
|
|
@@ -30719,7 +30729,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30719
30729
|
class: "admin-import-wizard__card"
|
|
30720
30730
|
}, {
|
|
30721
30731
|
default: x(() => [
|
|
30722
|
-
u("header",
|
|
30732
|
+
u("header", vF, [
|
|
30723
30733
|
u("h3", null, y(n(v)("1. Загрузите файл")), 1),
|
|
30724
30734
|
u("p", null, y(n(v)("CSV / TSV / XLSX, до 50 MB")), 1)
|
|
30725
30735
|
]),
|
|
@@ -30740,18 +30750,18 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30740
30750
|
class: "admin-import-wizard__card"
|
|
30741
30751
|
}, {
|
|
30742
30752
|
default: x(() => [
|
|
30743
|
-
u("header",
|
|
30753
|
+
u("header", fF, [
|
|
30744
30754
|
u("h3", null, y(n(v)("2. Сопоставьте колонки")), 1),
|
|
30745
30755
|
u("p", null, y(n(v)("Выберите поле ресурса для каждой колонки файла")), 1)
|
|
30746
30756
|
]),
|
|
30747
|
-
a.headers.length === 0 ? (c(), h("div",
|
|
30757
|
+
a.headers.length === 0 ? (c(), h("div", gF, y(n(v)("Нет данных — host ещё не отдал headers. Загрузите файл сначала.")), 1)) : (c(), h("div", MF, [
|
|
30748
30758
|
(c(!0), h(X, null, ee(a.headers, (T) => (c(), h("div", {
|
|
30749
30759
|
key: T.key,
|
|
30750
30760
|
class: "admin-import-wizard__map-row"
|
|
30751
30761
|
}, [
|
|
30752
|
-
u("div",
|
|
30762
|
+
u("div", IF, [
|
|
30753
30763
|
u("strong", null, y(T.label), 1),
|
|
30754
|
-
T.sample ? (c(), h("span",
|
|
30764
|
+
T.sample ? (c(), h("span", wF, " «" + y(T.sample) + "» ", 1)) : H("", !0)
|
|
30755
30765
|
]),
|
|
30756
30766
|
V[2] || (V[2] = u("span", { class: "admin-import-wizard__map-arrow" }, "→", -1)),
|
|
30757
30767
|
w(n(S9), {
|
|
@@ -30770,7 +30780,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30770
30780
|
class: "admin-import-wizard__card"
|
|
30771
30781
|
}, {
|
|
30772
30782
|
default: x(() => [
|
|
30773
|
-
u("header",
|
|
30783
|
+
u("header", xF, [
|
|
30774
30784
|
u("h3", null, y(n(v)("3. Предпросмотр")), 1),
|
|
30775
30785
|
u("p", null, "Первые " + y(a.preview.length) + " строк перед импортом", 1)
|
|
30776
30786
|
]),
|
|
@@ -30788,7 +30798,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30788
30798
|
key: 1,
|
|
30789
30799
|
columns: a.previewColumns,
|
|
30790
30800
|
data: a.preview
|
|
30791
|
-
}, null, 8, ["columns", "data"])) : (c(), h("div",
|
|
30801
|
+
}, null, 8, ["columns", "data"])) : (c(), h("div", bF, y(n(v)("Host не передал previewColumns/preview.")), 1))
|
|
30792
30802
|
]),
|
|
30793
30803
|
_: 1
|
|
30794
30804
|
})) : (c(), z(n(we), {
|
|
@@ -30797,7 +30807,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30797
30807
|
class: "admin-import-wizard__card"
|
|
30798
30808
|
}, {
|
|
30799
30809
|
default: x(() => [
|
|
30800
|
-
u("header",
|
|
30810
|
+
u("header", LF, [
|
|
30801
30811
|
u("h3", null, y(n(v)("4. Импорт")), 1)
|
|
30802
30812
|
]),
|
|
30803
30813
|
a.progress ? (c(), h(X, { key: 1 }, [
|
|
@@ -30806,7 +30816,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30806
30816
|
"model-value": a.progress.created + a.progress.updated + a.progress.errors,
|
|
30807
30817
|
max: a.progress.total
|
|
30808
30818
|
}, null, 8, ["model-value", "max"])) : H("", !0),
|
|
30809
|
-
u("div",
|
|
30819
|
+
u("div", _F, [
|
|
30810
30820
|
w(n(ic), {
|
|
30811
30821
|
title: n(v)("Создано"),
|
|
30812
30822
|
value: a.progress.created,
|
|
@@ -30823,11 +30833,11 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30823
30833
|
tone: "danger"
|
|
30824
30834
|
}, null, 8, ["title", "value"])
|
|
30825
30835
|
])
|
|
30826
|
-
], 64)) : (c(), h("div",
|
|
30836
|
+
], 64)) : (c(), h("div", CF, y(n(v)("Запускается импорт…")), 1))
|
|
30827
30837
|
]),
|
|
30828
30838
|
_: 1
|
|
30829
30839
|
})),
|
|
30830
|
-
u("footer",
|
|
30840
|
+
u("footer", SF, [
|
|
30831
30841
|
L.value ? (c(), z(n(oe), {
|
|
30832
30842
|
key: 0,
|
|
30833
30843
|
variant: "ghost",
|
|
@@ -30872,7 +30882,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30872
30882
|
])
|
|
30873
30883
|
]));
|
|
30874
30884
|
}
|
|
30875
|
-
}),
|
|
30885
|
+
}), qF = { class: "admin-page admin-field-gallery" }, AF = { class: "admin-gallery__group-title" }, zF = { class: "admin-gallery__grid" }, HF = { class: "admin-gallery__card-hd" }, VF = { class: "admin-gallery__card-title" }, PF = { class: "admin-gallery__card-type" }, FF = { class: "admin-gallery__card-desc" }, jF = { class: "admin-gallery__card-demo" }, sj = /* @__PURE__ */ ne({
|
|
30876
30886
|
__name: "FieldGalleryPage",
|
|
30877
30887
|
setup(a) {
|
|
30878
30888
|
const t = [
|
|
@@ -30939,7 +30949,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30939
30949
|
], o = t.reduce((d, i) => (d[i.group] || (d[i.group] = []), d[i.group].push(i), d), {}), l = TI(
|
|
30940
30950
|
t.reduce((d, i) => Object.assign(d, i.initial), {})
|
|
30941
30951
|
);
|
|
30942
|
-
return V9(l), (d, i) => (c(), h("section",
|
|
30952
|
+
return V9(l), (d, i) => (c(), h("section", qF, [
|
|
30943
30953
|
i[0] || (i[0] = u("header", { class: "admin-page__hd" }, [
|
|
30944
30954
|
u("div", { class: "admin-page__title-wrap" }, [
|
|
30945
30955
|
u("h1", { class: "admin-page__title" }, "Field Gallery"),
|
|
@@ -30950,20 +30960,20 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30950
30960
|
key: r,
|
|
30951
30961
|
class: "admin-gallery__group"
|
|
30952
30962
|
}, [
|
|
30953
|
-
u("h2",
|
|
30954
|
-
u("div",
|
|
30963
|
+
u("h2", AF, y(r), 1),
|
|
30964
|
+
u("div", zF, [
|
|
30955
30965
|
(c(!0), h(X, null, ee(s, (p) => (c(), z(n(we), {
|
|
30956
30966
|
key: p.type + p.title,
|
|
30957
30967
|
padding: "md",
|
|
30958
30968
|
class: "admin-gallery__card"
|
|
30959
30969
|
}, {
|
|
30960
30970
|
default: x(() => [
|
|
30961
|
-
u("header",
|
|
30962
|
-
u("h3",
|
|
30963
|
-
u("code",
|
|
30971
|
+
u("header", HF, [
|
|
30972
|
+
u("h3", VF, y(p.title), 1),
|
|
30973
|
+
u("code", PF, "type: " + y(p.type), 1)
|
|
30964
30974
|
]),
|
|
30965
|
-
u("p",
|
|
30966
|
-
u("div",
|
|
30975
|
+
u("p", FF, y(p.description), 1),
|
|
30976
|
+
u("div", jF, [
|
|
30967
30977
|
w(vI, {
|
|
30968
30978
|
node: p.node
|
|
30969
30979
|
}, null, 8, ["node"])
|
|
@@ -30977,108 +30987,108 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30977
30987
|
}
|
|
30978
30988
|
});
|
|
30979
30989
|
export {
|
|
30980
|
-
|
|
30990
|
+
Gb as AdminApp,
|
|
30981
30991
|
pb as AdminShell,
|
|
30982
30992
|
Yx as AdminSidebar,
|
|
30983
30993
|
Hx as AdminTopBar,
|
|
30984
30994
|
We as ApiError,
|
|
30985
30995
|
YI as BRAND_KEY,
|
|
30986
|
-
|
|
30996
|
+
AP as BadgeEntry,
|
|
30987
30997
|
mw as BarChartWidget,
|
|
30988
30998
|
cc as CheckboxField,
|
|
30989
|
-
|
|
30999
|
+
lP as ColumnsLayout,
|
|
30990
31000
|
tw as DashboardPage,
|
|
30991
31001
|
D1 as DateField,
|
|
30992
31002
|
vw as DonutChartWidget,
|
|
30993
|
-
|
|
31003
|
+
sj as FieldGalleryPage,
|
|
30994
31004
|
vI as FieldRenderer,
|
|
30995
31005
|
bx as ForbiddenError,
|
|
30996
|
-
|
|
30997
|
-
|
|
31006
|
+
yC as ForbiddenPage,
|
|
31007
|
+
Vz as GaugeWidget,
|
|
30998
31008
|
rb as GlobalSearch,
|
|
30999
|
-
|
|
31000
|
-
|
|
31001
|
-
|
|
31002
|
-
|
|
31003
|
-
|
|
31009
|
+
qz as HeatmapWidget,
|
|
31010
|
+
sC as HomePage,
|
|
31011
|
+
HP as IconEntry,
|
|
31012
|
+
dj as ImportWizardPage,
|
|
31013
|
+
hq as InfolistRenderer,
|
|
31004
31014
|
eI as KeyValueEntry,
|
|
31005
31015
|
bo as LayoutRenderer,
|
|
31006
31016
|
XI as LocaleSwitcher,
|
|
31007
|
-
|
|
31008
|
-
|
|
31009
|
-
|
|
31017
|
+
RC as LoginForm,
|
|
31018
|
+
JC as LoginPage,
|
|
31019
|
+
Dz as MarkdownWidget,
|
|
31010
31020
|
F9 as NetworkError,
|
|
31011
31021
|
Lx as NotFoundError,
|
|
31012
|
-
|
|
31022
|
+
mC as NotFoundPage,
|
|
31013
31023
|
xx as NotificationBell,
|
|
31014
|
-
|
|
31024
|
+
rj as NotificationsDrawer,
|
|
31015
31025
|
Q9 as NumberField,
|
|
31016
|
-
|
|
31026
|
+
nz as ProfilePage,
|
|
31017
31027
|
J9 as RecentTableWidget,
|
|
31018
31028
|
PI as ResourceFormPage,
|
|
31019
|
-
|
|
31020
|
-
|
|
31029
|
+
$S as ResourceIndexPage,
|
|
31030
|
+
Kq as ResourceViewPage,
|
|
31021
31031
|
aI as RowsLayout,
|
|
31022
|
-
|
|
31032
|
+
PC as ScreenPage,
|
|
31023
31033
|
Po as SectionLayout,
|
|
31024
31034
|
n1 as SelectField,
|
|
31025
|
-
|
|
31035
|
+
IC as SettingsPage,
|
|
31026
31036
|
DI as StatWidget,
|
|
31027
|
-
|
|
31037
|
+
uP as TabsLayout,
|
|
31028
31038
|
Y9 as TextAreaField,
|
|
31029
31039
|
ge as TextEntry,
|
|
31030
31040
|
m1 as TextField,
|
|
31031
31041
|
NI as ThemeToggle,
|
|
31032
|
-
|
|
31042
|
+
UC as TwoFactorForm,
|
|
31033
31043
|
KI as UnauthenticatedError,
|
|
31034
|
-
|
|
31044
|
+
YS as UnknownEntry,
|
|
31035
31045
|
cw as UnknownField,
|
|
31036
|
-
|
|
31046
|
+
cj as UnknownScreenPage,
|
|
31037
31047
|
ew as UnknownWidget,
|
|
31038
31048
|
_x as UserMenu,
|
|
31039
31049
|
G2 as ValidationError,
|
|
31040
31050
|
aw as WidgetRenderer,
|
|
31041
|
-
|
|
31051
|
+
cH as buildRoutesFromManifest,
|
|
31042
31052
|
vx as clearAdminClient,
|
|
31043
|
-
|
|
31044
|
-
|
|
31045
|
-
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31053
|
+
tj as clearInfolistRegistry,
|
|
31054
|
+
JF as clearRegistry,
|
|
31055
|
+
WF as clearWidgetRegistry,
|
|
31056
|
+
oj as createAdminApp,
|
|
31057
|
+
Kz as createAdminClient,
|
|
31058
|
+
sH as createAdminRouter,
|
|
31059
|
+
iH as createAuthGuard,
|
|
31060
|
+
lH as createTitleGuard,
|
|
31051
31061
|
Me as getAdminClient,
|
|
31052
31062
|
ow as getField,
|
|
31053
31063
|
tI as getInfolistEntry,
|
|
31054
31064
|
CI as getLayout,
|
|
31055
|
-
|
|
31065
|
+
Xb as getWidget,
|
|
31056
31066
|
fx as hasAdminClient,
|
|
31057
|
-
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
|
|
31061
|
-
|
|
31062
|
-
|
|
31063
|
-
|
|
31064
|
-
|
|
31065
|
-
|
|
31066
|
-
|
|
31067
|
-
|
|
31067
|
+
bC as hasField,
|
|
31068
|
+
ej as hasInfolistEntry,
|
|
31069
|
+
CC as hasLayout,
|
|
31070
|
+
Kb as hasWidget,
|
|
31071
|
+
nj as isError,
|
|
31072
|
+
Xz as isSuccess,
|
|
31073
|
+
XF as listFields,
|
|
31074
|
+
aj as listInfolistEntries,
|
|
31075
|
+
KF as listLayouts,
|
|
31076
|
+
Jb as listWidgets,
|
|
31077
|
+
ij as loadBootstrap,
|
|
31068
31078
|
V9 as provideFormState,
|
|
31069
31079
|
nw as provideRecord,
|
|
31070
|
-
|
|
31071
|
-
|
|
31072
|
-
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31078
|
-
|
|
31079
|
-
|
|
31080
|
-
|
|
31081
|
-
|
|
31080
|
+
lj as readCsrfFromMeta,
|
|
31081
|
+
KP as readInlineBootstrap,
|
|
31082
|
+
SP as registerBuiltinComponents,
|
|
31083
|
+
EP as registerBuiltinInfolistEntries,
|
|
31084
|
+
Nz as registerBuiltinWidgets,
|
|
31085
|
+
YF as registerComponents,
|
|
31086
|
+
xC as registerField,
|
|
31087
|
+
JS as registerInfolistEntries,
|
|
31088
|
+
QF as registerInfolistEntry,
|
|
31089
|
+
LC as registerLayout,
|
|
31090
|
+
Nb as registerWidget,
|
|
31091
|
+
GF as registerWidgets,
|
|
31082
31092
|
GI as setAdminClient,
|
|
31083
31093
|
LI as toApiError,
|
|
31084
31094
|
hx as tryUseFormState,
|
|
@@ -31090,7 +31100,7 @@ export {
|
|
|
31090
31100
|
Ee as useManifestStore,
|
|
31091
31101
|
j9 as useMenuStore,
|
|
31092
31102
|
P9 as useNotificationsStore,
|
|
31093
|
-
|
|
31103
|
+
NF as useRecord,
|
|
31094
31104
|
fI as useResourceFormStore,
|
|
31095
31105
|
iw as useResourceIndexStore,
|
|
31096
31106
|
pI as useThemeStore
|