@dskripchenko/laravel-admin 1.21.2 → 1.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -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,7 +25185,7 @@ 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}`, {
|
|
25185
25191
|
row: de(Q)
|
|
@@ -25200,7 +25206,7 @@ const AI = ne({
|
|
|
25200
25206
|
}
|
|
25201
25207
|
}, {
|
|
25202
25208
|
default: x(() => [
|
|
25203
|
-
u("span",
|
|
25209
|
+
u("span", jS, y(ye(K.key, Q)), 1)
|
|
25204
25210
|
]),
|
|
25205
25211
|
_: 2
|
|
25206
25212
|
}, 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 +25216,17 @@ const AI = ne({
|
|
|
25210
25216
|
target: ke(K.key),
|
|
25211
25217
|
rel: "noopener",
|
|
25212
25218
|
title: ye(K.key, Q)
|
|
25213
|
-
}, y(ye(K.key, Q)), 9,
|
|
25219
|
+
}, y(ye(K.key, Q)), 9, DS)) : (c(), h("span", {
|
|
25214
25220
|
key: 2,
|
|
25215
25221
|
class: "admin-cell-truncate",
|
|
25216
25222
|
title: ye(K.key, Q)
|
|
25217
|
-
}, y(ye(K.key, Q)), 9,
|
|
25223
|
+
}, y(ye(K.key, Q)), 9, BS))
|
|
25218
25224
|
], void 0, 2)
|
|
25219
25225
|
])
|
|
25220
25226
|
}))
|
|
25221
25227
|
]), 1032, ["columns", "data", "sort-key", "sort-direction", "selection", "row-key"])
|
|
25222
25228
|
])),
|
|
25223
|
-
!n(r).loading && !n(r).hasError && !n(r).isEmpty ? (c(), h("footer",
|
|
25229
|
+
!n(r).loading && !n(r).hasError && !n(r).isEmpty ? (c(), h("footer", RS, [
|
|
25224
25230
|
w(n(Yw), {
|
|
25225
25231
|
"model-value": n(r).meta.page,
|
|
25226
25232
|
total: n(r).meta.total,
|
|
@@ -25382,13 +25388,13 @@ const AI = ne({
|
|
|
25382
25388
|
_: 1
|
|
25383
25389
|
}, 8, ["gap"]));
|
|
25384
25390
|
}
|
|
25385
|
-
}),
|
|
25391
|
+
}), 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
25392
|
key: 1,
|
|
25387
25393
|
class: "admin-resource-form__loading"
|
|
25388
|
-
},
|
|
25394
|
+
}, XS = {
|
|
25389
25395
|
key: 2,
|
|
25390
25396
|
class: "admin-resource-form__savebar"
|
|
25391
|
-
},
|
|
25397
|
+
}, KS = { class: "admin-resource-form__savebar-hint" }, PI = /* @__PURE__ */ ne({
|
|
25392
25398
|
__name: "ResourceFormPage",
|
|
25393
25399
|
props: {
|
|
25394
25400
|
slug: {},
|
|
@@ -25487,14 +25493,14 @@ const AI = ne({
|
|
|
25487
25493
|
o.isDirty && !confirm(v("Несохранённые изменения будут потеряны. Продолжить?")) || d.push({ name: S.value }).catch(() => {
|
|
25488
25494
|
});
|
|
25489
25495
|
}
|
|
25490
|
-
return (V, T) => (c(), h("section",
|
|
25491
|
-
u("header",
|
|
25492
|
-
u("div",
|
|
25496
|
+
return (V, T) => (c(), h("section", TS, [
|
|
25497
|
+
u("header", US, [
|
|
25498
|
+
u("div", OS, [
|
|
25493
25499
|
u("a", {
|
|
25494
25500
|
class: "admin-resource-form__back",
|
|
25495
25501
|
onClick: U
|
|
25496
25502
|
}, y(n(v)("← Назад")), 1),
|
|
25497
|
-
u("h1",
|
|
25503
|
+
u("h1", ES, y(C.value), 1),
|
|
25498
25504
|
I.value ? (c(), z(n(yI), {
|
|
25499
25505
|
key: 0,
|
|
25500
25506
|
variant: L.value
|
|
@@ -25505,7 +25511,7 @@ const AI = ne({
|
|
|
25505
25511
|
_: 1
|
|
25506
25512
|
}, 8, ["variant"])) : H("", !0)
|
|
25507
25513
|
]),
|
|
25508
|
-
u("div",
|
|
25514
|
+
u("div", ZS, [
|
|
25509
25515
|
w(n(oe), {
|
|
25510
25516
|
variant: "ghost",
|
|
25511
25517
|
disabled: n(o).saving || n(o).deleting,
|
|
@@ -25550,8 +25556,8 @@ const AI = ne({
|
|
|
25550
25556
|
class: "admin-resource-form__notfound"
|
|
25551
25557
|
}, {
|
|
25552
25558
|
default: x(() => [
|
|
25553
|
-
u("p",
|
|
25554
|
-
u("p",
|
|
25559
|
+
u("p", WS, y(n(v)("Запись не найдена")), 1),
|
|
25560
|
+
u("p", GS, y(n(v)("Возможно, она была удалена. Вернитесь к списку.")), 1),
|
|
25555
25561
|
w(n(oe), {
|
|
25556
25562
|
variant: "primary",
|
|
25557
25563
|
size: "sm",
|
|
@@ -25576,7 +25582,7 @@ const AI = ne({
|
|
|
25576
25582
|
]),
|
|
25577
25583
|
_: 1
|
|
25578
25584
|
})) : H("", !0),
|
|
25579
|
-
n(o).loading ? (c(), h("div",
|
|
25585
|
+
n(o).loading ? (c(), h("div", NS, [
|
|
25580
25586
|
(c(), h(X, null, ee(6, (P) => w(n(Re), {
|
|
25581
25587
|
key: P,
|
|
25582
25588
|
height: "40px"
|
|
@@ -25592,8 +25598,8 @@ const AI = ne({
|
|
|
25592
25598
|
_: 1
|
|
25593
25599
|
}))
|
|
25594
25600
|
], 64)),
|
|
25595
|
-
n(o).isDirty && !n(o).loading && !m.value ? (c(), h("div",
|
|
25596
|
-
u("span",
|
|
25601
|
+
n(o).isDirty && !n(o).loading && !m.value ? (c(), h("div", XS, [
|
|
25602
|
+
u("span", KS, y(n(v)("Есть несохранённые изменения")), 1),
|
|
25597
25603
|
w(n(oe), {
|
|
25598
25604
|
variant: "ghost",
|
|
25599
25605
|
size: "sm",
|
|
@@ -25619,7 +25625,7 @@ const AI = ne({
|
|
|
25619
25625
|
])) : H("", !0)
|
|
25620
25626
|
]));
|
|
25621
25627
|
}
|
|
25622
|
-
}), Ao = R9(),
|
|
25628
|
+
}), Ao = R9(), QF = Ao.register, tI = Ao.get, ej = Ao.has, aj = Ao.list, tj = Ao.clear, JS = Ao.registerBundle, YS = /* @__PURE__ */ ne({
|
|
25623
25629
|
__name: "UnknownEntry",
|
|
25624
25630
|
props: {
|
|
25625
25631
|
type: {},
|
|
@@ -25638,34 +25644,34 @@ const AI = ne({
|
|
|
25638
25644
|
_: 1
|
|
25639
25645
|
}));
|
|
25640
25646
|
}
|
|
25641
|
-
}),
|
|
25647
|
+
}), QS = {
|
|
25642
25648
|
key: 0,
|
|
25643
25649
|
class: "admin-infolist-entry"
|
|
25644
|
-
},
|
|
25650
|
+
}, eq = { class: "admin-infolist-entry__label" }, aq = {
|
|
25645
25651
|
key: 2,
|
|
25646
25652
|
class: "admin-infolist-rows"
|
|
25647
|
-
},
|
|
25653
|
+
}, tq = {
|
|
25648
25654
|
key: 3,
|
|
25649
25655
|
class: "admin-infolist-cols"
|
|
25650
|
-
},
|
|
25656
|
+
}, nq = {
|
|
25651
25657
|
key: 4,
|
|
25652
25658
|
class: "admin-infolist-section"
|
|
25653
|
-
},
|
|
25659
|
+
}, oq = {
|
|
25654
25660
|
key: 0,
|
|
25655
25661
|
class: "admin-infolist-section__hd"
|
|
25656
|
-
},
|
|
25662
|
+
}, cq = {
|
|
25657
25663
|
key: 0,
|
|
25658
25664
|
class: "admin-infolist-section__title"
|
|
25659
|
-
},
|
|
25665
|
+
}, iq = {
|
|
25660
25666
|
key: 1,
|
|
25661
25667
|
class: "admin-infolist-section__description"
|
|
25662
|
-
},
|
|
25668
|
+
}, lq = { class: "admin-infolist-section__body" }, rq = {
|
|
25663
25669
|
key: 5,
|
|
25664
25670
|
class: "admin-infolist-tabs"
|
|
25665
|
-
},
|
|
25671
|
+
}, dq = {
|
|
25666
25672
|
class: "admin-infolist-tabs__list",
|
|
25667
25673
|
role: "tablist"
|
|
25668
|
-
},
|
|
25674
|
+
}, sq = { class: "admin-infolist-tabs__panel" }, hq = /* @__PURE__ */ ne({
|
|
25669
25675
|
__name: "InfolistRenderer",
|
|
25670
25676
|
props: {
|
|
25671
25677
|
node: {}
|
|
@@ -25695,15 +25701,15 @@ const AI = ne({
|
|
|
25695
25701
|
}), m = M(() => t.node.items ?? []);
|
|
25696
25702
|
return (k, g) => {
|
|
25697
25703
|
const b = H9("InfolistRenderer", !0);
|
|
25698
|
-
return l.value.kind === "entry" && a.node.label ? (c(), h("div",
|
|
25699
|
-
u("span",
|
|
25704
|
+
return l.value.kind === "entry" && a.node.label ? (c(), h("div", QS, [
|
|
25705
|
+
u("span", eq, y(a.node.label), 1),
|
|
25700
25706
|
(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",
|
|
25707
|
+
])) : l.value.kind === "entry" ? (c(), z($e(l.value.component), O2(Qn({ key: 1 }, d.value)), null, 16)) : l.value.kind === "layout" && l.value.layoutType === "rows" ? (c(), h("div", aq, [
|
|
25702
25708
|
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), z(b, {
|
|
25703
25709
|
key: I,
|
|
25704
25710
|
node: C
|
|
25705
25711
|
}, null, 8, ["node"]))), 128))
|
|
25706
|
-
])) : l.value.kind === "layout" && l.value.layoutType === "columns" ? (c(), h("div",
|
|
25712
|
+
])) : l.value.kind === "layout" && l.value.layoutType === "columns" ? (c(), h("div", tq, [
|
|
25707
25713
|
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), h("div", {
|
|
25708
25714
|
key: I,
|
|
25709
25715
|
class: "admin-infolist-cols__item",
|
|
@@ -25713,19 +25719,19 @@ const AI = ne({
|
|
|
25713
25719
|
}, [
|
|
25714
25720
|
w(b, { node: C }, null, 8, ["node"])
|
|
25715
25721
|
], 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",
|
|
25722
|
+
])) : l.value.kind === "layout" && (l.value.layoutType === "section" || l.value.layoutType === "block") ? (c(), h("section", nq, [
|
|
25723
|
+
s.value || r.value ? (c(), h("header", oq, [
|
|
25724
|
+
s.value ? (c(), h("h3", cq, y(s.value), 1)) : H("", !0),
|
|
25725
|
+
r.value ? (c(), h("p", iq, y(r.value), 1)) : H("", !0)
|
|
25720
25726
|
])) : H("", !0),
|
|
25721
|
-
u("div",
|
|
25727
|
+
u("div", lq, [
|
|
25722
25728
|
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), z(b, {
|
|
25723
25729
|
key: I,
|
|
25724
25730
|
node: C
|
|
25725
25731
|
}, null, 8, ["node"]))), 128))
|
|
25726
25732
|
])
|
|
25727
|
-
])) : l.value.kind === "layout" && l.value.layoutType === "tabs" ? (c(), h("div",
|
|
25728
|
-
u("ul",
|
|
25733
|
+
])) : l.value.kind === "layout" && l.value.layoutType === "tabs" ? (c(), h("div", rq, [
|
|
25734
|
+
u("ul", dq, [
|
|
25729
25735
|
(c(!0), h(X, null, ee(m.value, (C, I) => (c(), h("li", {
|
|
25730
25736
|
key: C.key ?? I,
|
|
25731
25737
|
class: fe([
|
|
@@ -25734,44 +25740,44 @@ const AI = ne({
|
|
|
25734
25740
|
])
|
|
25735
25741
|
}, y(C.label), 3))), 128))
|
|
25736
25742
|
]),
|
|
25737
|
-
u("div",
|
|
25743
|
+
u("div", sq, [
|
|
25738
25744
|
(c(!0), h(X, null, ee(m.value[p.value]?.items ?? [], (C, I) => (c(), z(b, {
|
|
25739
25745
|
key: I,
|
|
25740
25746
|
node: C
|
|
25741
25747
|
}, null, 8, ["node"]))), 128))
|
|
25742
25748
|
])
|
|
25743
|
-
])) : (c(), z(
|
|
25749
|
+
])) : (c(), z(YS, {
|
|
25744
25750
|
key: 6,
|
|
25745
25751
|
type: a.node.type,
|
|
25746
25752
|
name: a.node.name
|
|
25747
25753
|
}, null, 8, ["type", "name"]));
|
|
25748
25754
|
};
|
|
25749
25755
|
}
|
|
25750
|
-
}),
|
|
25756
|
+
}), uq = { class: "admin-audit-timeline" }, yq = { class: "admin-audit-timeline__title" }, pq = {
|
|
25751
25757
|
key: 0,
|
|
25752
25758
|
class: "admin-audit-timeline__loading"
|
|
25753
|
-
},
|
|
25759
|
+
}, kq = {
|
|
25754
25760
|
key: 1,
|
|
25755
25761
|
class: "admin-audit-timeline__error"
|
|
25756
|
-
},
|
|
25762
|
+
}, mq = {
|
|
25757
25763
|
key: 2,
|
|
25758
25764
|
class: "admin-audit-timeline__empty"
|
|
25759
|
-
},
|
|
25765
|
+
}, vq = {
|
|
25760
25766
|
key: 3,
|
|
25761
25767
|
class: "admin-audit-timeline__list"
|
|
25762
|
-
},
|
|
25768
|
+
}, fq = {
|
|
25763
25769
|
class: "admin-audit-timeline__icon",
|
|
25764
25770
|
"aria-hidden": "true"
|
|
25765
|
-
},
|
|
25771
|
+
}, 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
25772
|
key: 0,
|
|
25767
25773
|
class: "admin-audit-timeline__diff"
|
|
25768
|
-
},
|
|
25774
|
+
}, Lq = { class: "admin-audit-timeline__diff-field" }, Cq = { class: "admin-audit-timeline__diff-values" }, _q = { class: "admin-audit-timeline__diff-after" }, Sq = {
|
|
25769
25775
|
key: 1,
|
|
25770
25776
|
class: "admin-audit-timeline__diff-before"
|
|
25771
|
-
},
|
|
25777
|
+
}, qq = { class: "admin-audit-timeline__diff-before" }, Aq = { class: "admin-audit-timeline__diff-after" }, zq = {
|
|
25772
25778
|
key: 1,
|
|
25773
25779
|
class: "admin-audit-timeline__detail"
|
|
25774
|
-
},
|
|
25780
|
+
}, Hq = /* @__PURE__ */ ne({
|
|
25775
25781
|
__name: "AuditTimeline",
|
|
25776
25782
|
props: {
|
|
25777
25783
|
subjectType: {},
|
|
@@ -25841,71 +25847,71 @@ const AI = ne({
|
|
|
25841
25847
|
}
|
|
25842
25848
|
return String(I);
|
|
25843
25849
|
}
|
|
25844
|
-
return (I, L) => (c(), h("section",
|
|
25845
|
-
u("h2",
|
|
25846
|
-
l.value ? (c(), h("div",
|
|
25850
|
+
return (I, L) => (c(), h("section", uq, [
|
|
25851
|
+
u("h2", yq, y(n(v)("История изменений")), 1),
|
|
25852
|
+
l.value ? (c(), h("div", pq, [
|
|
25847
25853
|
(c(), h(X, null, ee(3, (f) => w(n(Re), {
|
|
25848
25854
|
key: f,
|
|
25849
25855
|
height: "48px"
|
|
25850
25856
|
})), 64))
|
|
25851
|
-
])) : d.value ? (c(), h("div",
|
|
25857
|
+
])) : d.value ? (c(), h("div", kq, " Не удалось загрузить историю: " + y(d.value.message), 1)) : s.value ? (c(), h("ol", vq, [
|
|
25852
25858
|
(c(!0), h(X, null, ee(o.value, (f) => (c(), h("li", {
|
|
25853
25859
|
key: f.id,
|
|
25854
25860
|
class: "admin-audit-timeline__item"
|
|
25855
25861
|
}, [
|
|
25856
|
-
u("span",
|
|
25862
|
+
u("span", fq, [
|
|
25857
25863
|
w(n(ae), {
|
|
25858
25864
|
icon: r(f.event),
|
|
25859
25865
|
size: 14
|
|
25860
25866
|
}, null, 8, ["icon"])
|
|
25861
25867
|
]),
|
|
25862
|
-
u("div",
|
|
25863
|
-
u("div",
|
|
25868
|
+
u("div", gq, [
|
|
25869
|
+
u("div", Mq, [
|
|
25864
25870
|
w(n(dI), {
|
|
25865
25871
|
name: f.actor?.name ?? "?",
|
|
25866
25872
|
alt: f.actor?.name ?? n(v)("Неизвестный"),
|
|
25867
25873
|
size: "xs"
|
|
25868
25874
|
}, null, 8, ["name", "alt"]),
|
|
25869
|
-
u("span",
|
|
25870
|
-
u("span",
|
|
25871
|
-
u("span",
|
|
25875
|
+
u("span", Iq, y(f.actor?.name ?? n(v)("Система")), 1),
|
|
25876
|
+
u("span", wq, y(p(f.event)), 1),
|
|
25877
|
+
u("span", xq, y(m(f.created_at)), 1)
|
|
25872
25878
|
]),
|
|
25873
|
-
k(f) ? (c(), h("ul",
|
|
25879
|
+
k(f) ? (c(), h("ul", bq, [
|
|
25874
25880
|
(c(!0), h(X, null, ee(f.diff, (S) => (c(), h("li", {
|
|
25875
25881
|
key: S.field,
|
|
25876
25882
|
class: fe(["admin-audit-timeline__diff-row", `admin-audit-timeline__diff-row--${f.event}`])
|
|
25877
25883
|
}, [
|
|
25878
|
-
u("span",
|
|
25879
|
-
u("span",
|
|
25884
|
+
u("span", Lq, y(S.field), 1),
|
|
25885
|
+
u("span", Cq, [
|
|
25880
25886
|
f.event === "created" || f.event === "restored" ? (c(), h(X, { key: 0 }, [
|
|
25881
25887
|
L[0] || (L[0] = u("span", {
|
|
25882
25888
|
class: "admin-audit-timeline__diff-arrow",
|
|
25883
25889
|
"aria-hidden": "true"
|
|
25884
25890
|
}, "→", -1)),
|
|
25885
|
-
u("span",
|
|
25886
|
-
], 64)) : f.event === "deleted" || f.event === "destroyed" ? (c(), h("span",
|
|
25887
|
-
u("span",
|
|
25891
|
+
u("span", _q, y(C(S.after)), 1)
|
|
25892
|
+
], 64)) : f.event === "deleted" || f.event === "destroyed" ? (c(), h("span", Sq, y(C(S.before)), 1)) : (c(), h(X, { key: 2 }, [
|
|
25893
|
+
u("span", qq, y(C(S.before)), 1),
|
|
25888
25894
|
L[1] || (L[1] = u("span", {
|
|
25889
25895
|
class: "admin-audit-timeline__diff-arrow",
|
|
25890
25896
|
"aria-hidden": "true"
|
|
25891
25897
|
}, "→", -1)),
|
|
25892
|
-
u("span",
|
|
25898
|
+
u("span", Aq, y(C(S.after)), 1)
|
|
25893
25899
|
], 64))
|
|
25894
25900
|
])
|
|
25895
25901
|
], 2))), 128))
|
|
25896
|
-
])) : g(f) ? (c(), h("div",
|
|
25902
|
+
])) : g(f) ? (c(), h("div", zq, y(g(f)), 1)) : H("", !0)
|
|
25897
25903
|
])
|
|
25898
25904
|
]))), 128))
|
|
25899
|
-
])) : (c(), h("div",
|
|
25905
|
+
])) : (c(), h("div", mq, y(n(v)("Записей в истории пока нет.")), 1))
|
|
25900
25906
|
]));
|
|
25901
25907
|
}
|
|
25902
|
-
}),
|
|
25908
|
+
}), 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
25909
|
key: 1,
|
|
25904
25910
|
class: "admin-resource-view__loading"
|
|
25905
|
-
},
|
|
25911
|
+
}, Uq = {
|
|
25906
25912
|
key: 2,
|
|
25907
25913
|
class: "admin-resource-view__grid"
|
|
25908
|
-
},
|
|
25914
|
+
}, 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
25915
|
__name: "ResourceViewPage",
|
|
25910
25916
|
props: {
|
|
25911
25917
|
slug: {},
|
|
@@ -26013,9 +26019,9 @@ const AI = ne({
|
|
|
26013
26019
|
}), o.hasError || d.push({ name: Z.value }).catch(() => {
|
|
26014
26020
|
}));
|
|
26015
26021
|
}
|
|
26016
|
-
return (P, B) => (c(), h("section",
|
|
26017
|
-
u("header",
|
|
26018
|
-
u("div",
|
|
26022
|
+
return (P, B) => (c(), h("section", Vq, [
|
|
26023
|
+
u("header", Pq, [
|
|
26024
|
+
u("div", Fq, [
|
|
26019
26025
|
u("button", {
|
|
26020
26026
|
type: "button",
|
|
26021
26027
|
class: "admin-resource-view__back",
|
|
@@ -26027,8 +26033,8 @@ const AI = ne({
|
|
|
26027
26033
|
}, null, 8, ["icon"]),
|
|
26028
26034
|
D(" " + y(g.value), 1)
|
|
26029
26035
|
]),
|
|
26030
|
-
u("h1",
|
|
26031
|
-
u("div",
|
|
26036
|
+
u("h1", jq, y(k.value), 1),
|
|
26037
|
+
u("div", Dq, [
|
|
26032
26038
|
C.value ? (c(), h("span", {
|
|
26033
26039
|
key: 0,
|
|
26034
26040
|
class: "admin-status-badge",
|
|
@@ -26040,11 +26046,11 @@ const AI = ne({
|
|
|
26040
26046
|
"aria-hidden": "true"
|
|
26041
26047
|
}, null, -1)),
|
|
26042
26048
|
D(" " + y(C.value), 1)
|
|
26043
|
-
], 8,
|
|
26044
|
-
u("span",
|
|
26049
|
+
], 8, Bq)) : H("", !0),
|
|
26050
|
+
u("span", Rq, y(b.value), 1)
|
|
26045
26051
|
])
|
|
26046
26052
|
]),
|
|
26047
|
-
u("div",
|
|
26053
|
+
u("div", $q, [
|
|
26048
26054
|
s.value ? (c(), z(n(oe), {
|
|
26049
26055
|
key: 0,
|
|
26050
26056
|
variant: "secondary",
|
|
@@ -26120,20 +26126,20 @@ const AI = ne({
|
|
|
26120
26126
|
]),
|
|
26121
26127
|
_: 1
|
|
26122
26128
|
})) : H("", !0),
|
|
26123
|
-
n(o).loading ? (c(), h("div",
|
|
26129
|
+
n(o).loading ? (c(), h("div", Tq, [
|
|
26124
26130
|
(c(), h(X, null, ee(8, (F) => w(n(Re), {
|
|
26125
26131
|
key: F,
|
|
26126
26132
|
height: "24px"
|
|
26127
26133
|
})), 64))
|
|
26128
|
-
])) : (c(), h("div",
|
|
26129
|
-
u("div",
|
|
26134
|
+
])) : (c(), h("div", Uq, [
|
|
26135
|
+
u("div", Oq, [
|
|
26130
26136
|
w(n(we), {
|
|
26131
26137
|
padding: "md",
|
|
26132
26138
|
class: "admin-resource-view__card"
|
|
26133
26139
|
}, {
|
|
26134
26140
|
default: x(() => [
|
|
26135
|
-
u("h2",
|
|
26136
|
-
(c(!0), h(X, null, ee(r.value, (F, O) => (c(), z(
|
|
26141
|
+
u("h2", Eq, y(n(v)("Основные данные")), 1),
|
|
26142
|
+
(c(!0), h(X, null, ee(r.value, (F, O) => (c(), z(hq, {
|
|
26137
26143
|
key: O,
|
|
26138
26144
|
node: F
|
|
26139
26145
|
}, null, 8, ["node"]))), 128))
|
|
@@ -26145,7 +26151,7 @@ const AI = ne({
|
|
|
26145
26151
|
class: "admin-resource-view__card"
|
|
26146
26152
|
}, {
|
|
26147
26153
|
default: x(() => [
|
|
26148
|
-
w(
|
|
26154
|
+
w(Hq, {
|
|
26149
26155
|
"subject-type": p.value,
|
|
26150
26156
|
"subject-id": a.id
|
|
26151
26157
|
}, null, 8, ["subject-type", "subject-id"])
|
|
@@ -26153,20 +26159,20 @@ const AI = ne({
|
|
|
26153
26159
|
_: 1
|
|
26154
26160
|
})
|
|
26155
26161
|
]),
|
|
26156
|
-
u("aside",
|
|
26162
|
+
u("aside", Zq, [
|
|
26157
26163
|
m.value.length > 0 ? (c(), z(n(we), {
|
|
26158
26164
|
key: 0,
|
|
26159
26165
|
padding: "md",
|
|
26160
26166
|
class: "admin-resource-view__card"
|
|
26161
26167
|
}, {
|
|
26162
26168
|
default: x(() => [
|
|
26163
|
-
u("h2",
|
|
26164
|
-
u("dl",
|
|
26169
|
+
u("h2", Wq, y(n(v)("Метрики")), 1),
|
|
26170
|
+
u("dl", Gq, [
|
|
26165
26171
|
(c(!0), h(X, null, ee(m.value, (F) => (c(), h(X, {
|
|
26166
26172
|
key: F.label
|
|
26167
26173
|
}, [
|
|
26168
|
-
u("dt",
|
|
26169
|
-
u("dd",
|
|
26174
|
+
u("dt", Nq, y(F.label), 1),
|
|
26175
|
+
u("dd", Xq, y(F.value), 1)
|
|
26170
26176
|
], 64))), 128))
|
|
26171
26177
|
])
|
|
26172
26178
|
]),
|
|
@@ -26180,10 +26186,10 @@ const AI = ne({
|
|
|
26180
26186
|
]))
|
|
26181
26187
|
]));
|
|
26182
26188
|
}
|
|
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 *
|
|
26189
|
+
}), Jq = [0.2, 3 / 8, 5 / 9, 2 / 3], Yq = (a, t) => (o) => {
|
|
26190
|
+
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
26191
|
return { t: p * k + r * k + r, o: [[p, k], [r, k + 1]], i: m };
|
|
26186
|
-
},
|
|
26192
|
+
}, Qq = { min: 0, L: 0, M: 1, Q: 2, H: 3, max: 3 }, io = (a) => new Uint8Array(a), jo = (a) => {
|
|
26187
26193
|
const t = new Error(`lean-qr error ${a}`);
|
|
26188
26194
|
throw t.code = a, t;
|
|
26189
26195
|
}, 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 +26222,7 @@ const wI = zo((a) => (t, o) => {
|
|
|
26216
26222
|
for (const l of a) t.push(oI().get(l), 13);
|
|
26217
26223
|
}, (a) => oI().has(a), (a, t) => 12 + 2 * (t > 26) + 2 * (t > 9) + 13 * a);
|
|
26218
26224
|
wI._ = !0;
|
|
26219
|
-
const uw = [sw, hw, Lo, MI, wI, II],
|
|
26225
|
+
const uw = [sw, hw, Lo, MI, wI, II], eA = { auto: (a, { modes: t = uw } = {}) => (o, l) => {
|
|
26220
26226
|
const d = t.map((k, g) => {
|
|
26221
26227
|
const b = /* @__PURE__ */ new Map(), C = (I, L) => (b.has(I) || b.set(I, L(I, l)), b.get(I));
|
|
26222
26228
|
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 +26255,7 @@ const uw = [sw, hw, Lo, MI, wI, II], Qq = { auto: (a, { modes: t = uw } = {}) =>
|
|
|
26249
26255
|
const m = [];
|
|
26250
26256
|
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
26257
|
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 },
|
|
26258
|
+
}, 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
26259
|
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
26260
|
} }), 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
26261
|
`, pad: s = 4, padX: r = s, padY: p = s } = {}) {
|
|
@@ -26275,11 +26281,11 @@ const uw = [sw, hw, Lo, MI, wI, II], Qq = { auto: (a, { modes: t = uw } = {}) =>
|
|
|
26275
26281
|
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
26282
|
} }), 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
26283
|
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],
|
|
26284
|
+
const yw = (a) => A9[a % 255], pw = (a) => A9[a + 255], tA = (a, t) => {
|
|
26279
26285
|
const o = io(a.length + t.length - 1);
|
|
26280
26286
|
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
26287
|
return o.map(pw);
|
|
26282
|
-
},
|
|
26288
|
+
}, nA = (a, t) => {
|
|
26283
26289
|
const o = io(a.length + t.length - 1);
|
|
26284
26290
|
o.set(a, 0);
|
|
26285
26291
|
for (let l = 0; l < a.length; ++l) if (o[l]) {
|
|
@@ -26288,13 +26294,13 @@ const yw = (a) => A9[a % 255], pw = (a) => A9[a + 255], aA = (a, t) => {
|
|
|
26288
26294
|
}
|
|
26289
26295
|
return o.slice(a.length);
|
|
26290
26296
|
}, cI = [[0], [0, 0]];
|
|
26291
|
-
for (let a = 1; a < 30; ++a) cI.push(
|
|
26292
|
-
const
|
|
26297
|
+
for (let a = 1; a < 30; ++a) cI.push(tA(cI[a], [0, a]));
|
|
26298
|
+
const oA = (a, t) => {
|
|
26293
26299
|
const o = [[], []];
|
|
26294
26300
|
let l = 0, d = 0;
|
|
26295
26301
|
for (const [s, r] of t.o) for (let p = 0; p < s; ++p, l += r) {
|
|
26296
26302
|
const m = a.slice(l, l + r);
|
|
26297
|
-
o[0].push(m), o[1].push(
|
|
26303
|
+
o[0].push(m), o[1].push(nA(m, cI[t.i])), d += r + t.i;
|
|
26298
26304
|
}
|
|
26299
26305
|
const i = io(d);
|
|
26300
26306
|
d = 0;
|
|
@@ -26307,7 +26313,7 @@ const nA = (a, t) => {
|
|
|
26307
26313
|
let l = a <<= o;
|
|
26308
26314
|
for (let d = 134217728; d >>= 1; ) l & d && (l ^= t * (d >> o));
|
|
26309
26315
|
return l | a;
|
|
26310
|
-
},
|
|
26316
|
+
}, cA = ({ size: a, K: t }, o) => {
|
|
26311
26317
|
const l = (s, r, p, m) => {
|
|
26312
26318
|
for (; p-- > 0; s += a) t.fill(m, s, s + r);
|
|
26313
26319
|
}, d = (s, r, p) => {
|
|
@@ -26323,7 +26329,7 @@ const nA = (a, t) => {
|
|
|
26323
26329
|
d(3, 3, 7), d(a - 4, 3, 7);
|
|
26324
26330
|
for (let s = 0; s < a; ++s) for (let r = s; r < a; ++r) t[r * a + s] = t[s * a + r];
|
|
26325
26331
|
t[(a - 8) * a + 8] = 3;
|
|
26326
|
-
},
|
|
26332
|
+
}, iA = ({ size: a, K: t }) => {
|
|
26327
26333
|
const o = [];
|
|
26328
26334
|
for (let l = a - 2, d = a, i = -1; l >= 0; l -= 2) {
|
|
26329
26335
|
for (l === 5 && (l = 4); d += i, d !== -1 && d !== a; ) {
|
|
@@ -26333,7 +26339,7 @@ const nA = (a, t) => {
|
|
|
26333
26339
|
i *= -1;
|
|
26334
26340
|
}
|
|
26335
26341
|
return o;
|
|
26336
|
-
},
|
|
26342
|
+
}, 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
26343
|
for (let s = 0; s < a; ++s) for (let r = 0; r < a; ++r) {
|
|
26338
26344
|
const p = s * a + r;
|
|
26339
26345
|
t[p] ^= !(o(r, s) || 2 & t[p]);
|
|
@@ -26341,7 +26347,7 @@ const nA = (a, t) => {
|
|
|
26341
26347
|
let i = 21522 ^ kw((1 ^ d) << 3 | l, 1335, 10);
|
|
26342
26348
|
for (let s = 0; s++ < 8; i >>= 1) t[(s - (s < 7)) * a + 8] = 1 & i, t[9 * a - s] = 1 & i;
|
|
26343
26349
|
for (let s = 8; --s, i; i >>= 1) t[8 * a + s - (s < 7)] = 1 & i, t[(a - s) * a + 8] = 1 & i;
|
|
26344
|
-
},
|
|
26350
|
+
}, dA = ({ size: a, K: t }, o = 0, l = 0) => {
|
|
26345
26351
|
for (let d = 0; d < a; ++d) {
|
|
26346
26352
|
for (let i = 0; i < 2; ++i) for (let s, r = 0, p = 0, m = 2; r < a; ++r) {
|
|
26347
26353
|
const k = 1 & t[i ? d * a + r : r * a + d];
|
|
@@ -26354,29 +26360,29 @@ const nA = (a, t) => {
|
|
|
26354
26360
|
}
|
|
26355
26361
|
return o + 10 * (10 * Math.abs(l / (a * a) - 1) | 0);
|
|
26356
26362
|
}, 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 =
|
|
26363
|
+
o < t && jo(3), d < l && jo(2), typeof a == "string" && (a = eA.auto(a, r));
|
|
26358
26364
|
for (let p = l, m = 0; p <= d; ++p) {
|
|
26359
26365
|
let k = jI[p];
|
|
26360
|
-
k || (jI[p] = k = X9(4 * p + 17),
|
|
26361
|
-
const g =
|
|
26366
|
+
k || (jI[p] = k = X9(4 * p + 17), cA(k, p), k.p = iA(k));
|
|
26367
|
+
const g = Yq(p, k.p.length >> 3);
|
|
26362
26368
|
if (8 * g(t).t < m) continue;
|
|
26363
|
-
const b =
|
|
26369
|
+
const b = aA();
|
|
26364
26370
|
a(b, p), m = b.I;
|
|
26365
26371
|
for (let C = o; C >= t; --C) {
|
|
26366
26372
|
const I = g(C);
|
|
26367
26373
|
if (8 * I.t < m) continue;
|
|
26368
26374
|
for (b.I = m + 11 & -8; b.I < 8 * I.t; ) b.push(s, 16);
|
|
26369
26375
|
const L = X9(k.size, k.K);
|
|
26370
|
-
return
|
|
26376
|
+
return lA(L, k.p, oA(b.F, I)), (K9[i ?? -1] ? [K9[i]] : K9).map((f, S) => {
|
|
26371
26377
|
const Z = X9(L.size, L.K);
|
|
26372
|
-
return
|
|
26378
|
+
return rA(Z, f, i ?? S, C), Z.s = dA(Z), Z;
|
|
26373
26379
|
}).reduce((f, S) => S.s < f.s ? S : f);
|
|
26374
26380
|
}
|
|
26375
26381
|
}
|
|
26376
26382
|
jo(4);
|
|
26377
26383
|
};
|
|
26378
26384
|
iI.with = (...a) => (t, o) => iI(t, { modes: [...uw, ...a], ...o });
|
|
26379
|
-
const
|
|
26385
|
+
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
26386
|
const t = /* @__PURE__ */ new Map(), o = [], l = (d) => {
|
|
26381
26387
|
const i = t.get(d);
|
|
26382
26388
|
return t.delete(d), i;
|
|
@@ -26390,40 +26396,40 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26390
26396
|
}
|
|
26391
26397
|
}
|
|
26392
26398
|
return o.map((d) => `M${d.join("L")}Z`).join("");
|
|
26393
|
-
},
|
|
26399
|
+
}, 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
26400
|
const b = a.size + 2 * d, C = a.size + 2 * i;
|
|
26395
|
-
return m(k, "svg", { xmlns:
|
|
26396
|
-
},
|
|
26401
|
+
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);
|
|
26402
|
+
}, pA = (a, t = {}) => (t.xmlDeclaration ? '<?xml version="1.0" encoding="UTF-8" ?>' : "") + yA(a, t, hA), kA = { class: "admin-2fa" }, mA = {
|
|
26397
26403
|
key: 0,
|
|
26398
26404
|
class: "admin-2fa__panel"
|
|
26399
|
-
},
|
|
26405
|
+
}, vA = { class: "admin-2fa__lead" }, fA = {
|
|
26400
26406
|
key: 0,
|
|
26401
26407
|
class: "admin-2fa__error"
|
|
26402
|
-
},
|
|
26408
|
+
}, gA = {
|
|
26403
26409
|
key: 1,
|
|
26404
26410
|
class: "admin-2fa__panel"
|
|
26405
|
-
},
|
|
26411
|
+
}, MA = { class: "admin-2fa__steps" }, IA = {
|
|
26406
26412
|
class: "admin-2fa__secret",
|
|
26407
26413
|
"data-testid": "2fa-secret"
|
|
26408
|
-
},
|
|
26414
|
+
}, wA = ["innerHTML"], xA = {
|
|
26409
26415
|
key: 1,
|
|
26410
26416
|
class: "admin-2fa__hint"
|
|
26411
|
-
},
|
|
26417
|
+
}, bA = { class: "admin-2fa__uri" }, LA = { class: "admin-2fa__code-row" }, CA = {
|
|
26412
26418
|
key: 0,
|
|
26413
26419
|
class: "admin-2fa__error"
|
|
26414
|
-
},
|
|
26420
|
+
}, _A = {
|
|
26415
26421
|
key: 2,
|
|
26416
26422
|
class: "admin-2fa__panel admin-2fa__panel--success"
|
|
26417
|
-
},
|
|
26423
|
+
}, SA = { class: "admin-2fa__lead" }, qA = { class: "admin-2fa__codes" }, AA = {
|
|
26418
26424
|
key: 3,
|
|
26419
26425
|
class: "admin-2fa__panel"
|
|
26420
|
-
},
|
|
26426
|
+
}, zA = { class: "admin-2fa__lead" }, HA = { class: "admin-2fa__manage" }, VA = {
|
|
26421
26427
|
key: 0,
|
|
26422
26428
|
class: "admin-2fa__error"
|
|
26423
|
-
},
|
|
26429
|
+
}, PA = {
|
|
26424
26430
|
key: 1,
|
|
26425
26431
|
class: "admin-2fa__codes"
|
|
26426
|
-
},
|
|
26432
|
+
}, FA = /* @__PURE__ */ ne({
|
|
26427
26433
|
__name: "TwoFactorSetup",
|
|
26428
26434
|
props: {
|
|
26429
26435
|
enabled: { type: Boolean }
|
|
@@ -26511,15 +26517,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26511
26517
|
const Z = M(() => i.value.match(/.{1,4}/g)?.join(" ") ?? i.value), U = M(() => {
|
|
26512
26518
|
if (s.value === "") return "";
|
|
26513
26519
|
try {
|
|
26514
|
-
const V = iI(s.value, { minCorrectionLevel:
|
|
26515
|
-
return
|
|
26520
|
+
const V = iI(s.value, { minCorrectionLevel: Qq.M });
|
|
26521
|
+
return pA(V, { on: "#18181b", off: "transparent", padX: 1, padY: 1 });
|
|
26516
26522
|
} catch {
|
|
26517
26523
|
return "";
|
|
26518
26524
|
}
|
|
26519
26525
|
});
|
|
26520
|
-
return (V, T) => (c(), h("div",
|
|
26521
|
-
d.value === "idle" ? (c(), h("div",
|
|
26522
|
-
u("p",
|
|
26526
|
+
return (V, T) => (c(), h("div", kA, [
|
|
26527
|
+
d.value === "idle" ? (c(), h("div", mA, [
|
|
26528
|
+
u("p", vA, y(n(v)("Двухфакторная аутентификация добавляет второй слой защиты — даже если пароль попадёт")) + " " + y(n(v)("в чужие руки, без OTP-кода из приложения войти не получится.")), 1),
|
|
26523
26529
|
w(n(oe), {
|
|
26524
26530
|
variant: "primary",
|
|
26525
26531
|
loading: k.value,
|
|
@@ -26537,13 +26543,13 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26537
26543
|
]),
|
|
26538
26544
|
_: 1
|
|
26539
26545
|
}, 8, ["loading"]),
|
|
26540
|
-
g.value ? (c(), h("p",
|
|
26541
|
-
])) : d.value === "setup" ? (c(), h("div",
|
|
26542
|
-
u("ol",
|
|
26546
|
+
g.value ? (c(), h("p", fA, y(g.value), 1)) : H("", !0)
|
|
26547
|
+
])) : d.value === "setup" ? (c(), h("div", gA, [
|
|
26548
|
+
u("ol", MA, [
|
|
26543
26549
|
u("li", null, y(n(v)("Откройте Authenticator-приложение (Google Authenticator, 1Password, Authy…).")), 1),
|
|
26544
26550
|
u("li", null, [
|
|
26545
26551
|
D(y(n(v)("Добавьте новый аккаунт вручную, скопировав ключ:")) + " ", 1),
|
|
26546
|
-
u("div",
|
|
26552
|
+
u("div", IA, [
|
|
26547
26553
|
u("code", null, y(Z.value), 1),
|
|
26548
26554
|
u("button", {
|
|
26549
26555
|
type: "button",
|
|
@@ -26562,15 +26568,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26562
26568
|
key: 0,
|
|
26563
26569
|
class: "admin-2fa__qr",
|
|
26564
26570
|
innerHTML: U.value
|
|
26565
|
-
}, null, 8,
|
|
26571
|
+
}, null, 8, wA)) : (c(), h("p", xA, [
|
|
26566
26572
|
D(y(n(v)("Либо отсканируйте QR с другого устройства — поделитесь URI:")) + " ", 1),
|
|
26567
|
-
u("code",
|
|
26573
|
+
u("code", bA, y(s.value), 1)
|
|
26568
26574
|
]))
|
|
26569
26575
|
])
|
|
26570
26576
|
]),
|
|
26571
26577
|
u("li", null, [
|
|
26572
26578
|
D(y(n(v)("Введите 6-значный код из приложения:")) + " ", 1),
|
|
26573
|
-
u("div",
|
|
26579
|
+
u("div", LA, [
|
|
26574
26580
|
w(n(Le), {
|
|
26575
26581
|
modelValue: r.value,
|
|
26576
26582
|
"onUpdate:modelValue": T[0] || (T[0] = (P) => r.value = P),
|
|
@@ -26594,10 +26600,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26594
26600
|
])
|
|
26595
26601
|
])
|
|
26596
26602
|
]),
|
|
26597
|
-
g.value ? (c(), h("p",
|
|
26598
|
-
])) : d.value === "confirmed" ? (c(), h("div",
|
|
26599
|
-
u("p",
|
|
26600
|
-
u("div",
|
|
26603
|
+
g.value ? (c(), h("p", CA, y(g.value), 1)) : H("", !0)
|
|
26604
|
+
])) : d.value === "confirmed" ? (c(), h("div", _A, [
|
|
26605
|
+
u("p", SA, y(n(v)("2FA активирована. Сохраните recovery-коды в безопасном месте — они нужны если вы")) + " " + y(n(v)("потеряете доступ к Authenticator-приложению.")), 1),
|
|
26606
|
+
u("div", qA, [
|
|
26601
26607
|
(c(!0), h(X, null, ee(p.value, (P) => (c(), h("code", {
|
|
26602
26608
|
key: P,
|
|
26603
26609
|
class: "admin-2fa__codes-item"
|
|
@@ -26627,9 +26633,9 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26627
26633
|
]),
|
|
26628
26634
|
_: 1
|
|
26629
26635
|
})
|
|
26630
|
-
])) : d.value === "enabled" ? (c(), h("div",
|
|
26631
|
-
u("p",
|
|
26632
|
-
u("div",
|
|
26636
|
+
])) : d.value === "enabled" ? (c(), h("div", AA, [
|
|
26637
|
+
u("p", zA, y(n(v)("2FA включена. Если у вас остался доступ к Authenticator app — всё в порядке.")), 1),
|
|
26638
|
+
u("div", HA, [
|
|
26633
26639
|
w(n(Le), {
|
|
26634
26640
|
modelValue: m.value,
|
|
26635
26641
|
"onUpdate:modelValue": T[2] || (T[2] = (P) => m.value = P),
|
|
@@ -26670,8 +26676,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26670
26676
|
_: 1
|
|
26671
26677
|
}, 8, ["loading"])
|
|
26672
26678
|
]),
|
|
26673
|
-
g.value ? (c(), h("p",
|
|
26674
|
-
p.value.length > 0 ? (c(), h("div",
|
|
26679
|
+
g.value ? (c(), h("p", VA, y(g.value), 1)) : H("", !0),
|
|
26680
|
+
p.value.length > 0 ? (c(), h("div", PA, [
|
|
26675
26681
|
(c(!0), h(X, null, ee(p.value, (P) => (c(), h("code", {
|
|
26676
26682
|
key: P,
|
|
26677
26683
|
class: "admin-2fa__codes-item"
|
|
@@ -26680,10 +26686,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26680
26686
|
])) : H("", !0)
|
|
26681
26687
|
]));
|
|
26682
26688
|
}
|
|
26683
|
-
}),
|
|
26689
|
+
}), 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
26690
|
class: "admin-profile__nav",
|
|
26685
26691
|
"aria-label": "Profile sections"
|
|
26686
|
-
},
|
|
26692
|
+
}, 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
26693
|
__name: "ProfilePage",
|
|
26688
26694
|
props: {
|
|
26689
26695
|
title: { default: "Profile" },
|
|
@@ -26739,15 +26745,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26739
26745
|
function Z() {
|
|
26740
26746
|
L.value = !1, d.user && (d.user.twoFactorEnabled = !1), l("two-factor-disable");
|
|
26741
26747
|
}
|
|
26742
|
-
return (U, V) => (c(), h("section",
|
|
26743
|
-
u("header",
|
|
26744
|
-
u("div",
|
|
26745
|
-
u("h1",
|
|
26746
|
-
u("div",
|
|
26748
|
+
return (U, V) => (c(), h("section", jA, [
|
|
26749
|
+
u("header", DA, [
|
|
26750
|
+
u("div", BA, [
|
|
26751
|
+
u("h1", RA, y(a.title), 1),
|
|
26752
|
+
u("div", $A, y(a.subtitle ?? n(v)("Личные данные, безопасность, токены")), 1)
|
|
26747
26753
|
])
|
|
26748
26754
|
]),
|
|
26749
|
-
u("div",
|
|
26750
|
-
u("nav",
|
|
26755
|
+
u("div", TA, [
|
|
26756
|
+
u("nav", UA, [
|
|
26751
26757
|
(c(), h(X, null, ee(r, (T) => u("button", {
|
|
26752
26758
|
key: T.id,
|
|
26753
26759
|
type: "button",
|
|
@@ -26760,28 +26766,28 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26760
26766
|
u("span", {
|
|
26761
26767
|
class: "admin-profile__nav-icon",
|
|
26762
26768
|
"data-icon": T.icon
|
|
26763
|
-
}, null, 8,
|
|
26769
|
+
}, null, 8, EA),
|
|
26764
26770
|
u("span", null, y(T.label), 1)
|
|
26765
|
-
], 10,
|
|
26771
|
+
], 10, OA)), 64))
|
|
26766
26772
|
]),
|
|
26767
|
-
u("div",
|
|
26773
|
+
u("div", ZA, [
|
|
26768
26774
|
p.value === "general" ? (c(), z(n(we), {
|
|
26769
26775
|
key: 0,
|
|
26770
26776
|
padding: "md"
|
|
26771
26777
|
}, {
|
|
26772
26778
|
default: x(() => [
|
|
26773
|
-
u("header",
|
|
26774
|
-
u("h3",
|
|
26779
|
+
u("header", WA, [
|
|
26780
|
+
u("h3", GA, y(n(v)("Профиль")), 1)
|
|
26775
26781
|
]),
|
|
26776
|
-
u("div",
|
|
26782
|
+
u("div", NA, [
|
|
26777
26783
|
w(n(dI), {
|
|
26778
26784
|
src: n(d).user?.avatar ?? void 0,
|
|
26779
26785
|
name: n(d).user?.name ?? "?",
|
|
26780
26786
|
size: "lg"
|
|
26781
26787
|
}, null, 8, ["src", "name"]),
|
|
26782
|
-
u("div",
|
|
26783
|
-
u("div",
|
|
26784
|
-
u("div",
|
|
26788
|
+
u("div", XA, [
|
|
26789
|
+
u("div", KA, y(n(d).user?.name ?? "—"), 1),
|
|
26790
|
+
u("div", JA, y(n(d).user?.email ?? "—"), 1)
|
|
26785
26791
|
]),
|
|
26786
26792
|
V[4] || (V[4] = u("div", { style: { flex: "1" } }, null, -1)),
|
|
26787
26793
|
w(n(oe), {
|
|
@@ -26795,7 +26801,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26795
26801
|
_: 1
|
|
26796
26802
|
})
|
|
26797
26803
|
]),
|
|
26798
|
-
u("div",
|
|
26804
|
+
u("div", YA, [
|
|
26799
26805
|
w(n(Le), {
|
|
26800
26806
|
modelValue: k.value.name,
|
|
26801
26807
|
"onUpdate:modelValue": V[0] || (V[0] = (T) => k.value.name = T),
|
|
@@ -26822,7 +26828,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26822
26828
|
label: n(v)("Тема")
|
|
26823
26829
|
}, null, 8, ["modelValue", "options", "label"])
|
|
26824
26830
|
]),
|
|
26825
|
-
u("footer",
|
|
26831
|
+
u("footer", QA, [
|
|
26826
26832
|
w(n(oe), {
|
|
26827
26833
|
variant: "primary",
|
|
26828
26834
|
onClick: C
|
|
@@ -26840,8 +26846,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26840
26846
|
padding: "md"
|
|
26841
26847
|
}, {
|
|
26842
26848
|
default: x(() => [
|
|
26843
|
-
u("header",
|
|
26844
|
-
u("h3",
|
|
26849
|
+
u("header", ez, [
|
|
26850
|
+
u("h3", az, y(n(v)("Двухфакторная аутентификация")), 1),
|
|
26845
26851
|
w(n(yI), {
|
|
26846
26852
|
variant: f.value ? "success" : "default"
|
|
26847
26853
|
}, {
|
|
@@ -26852,7 +26858,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26852
26858
|
}, 8, ["variant"])
|
|
26853
26859
|
]),
|
|
26854
26860
|
ze(U.$slots, "enable-2fa", {}, () => [
|
|
26855
|
-
w(
|
|
26861
|
+
w(FA, {
|
|
26856
26862
|
enabled: f.value,
|
|
26857
26863
|
onEnabled: S,
|
|
26858
26864
|
onDisabled: Z
|
|
@@ -26863,7 +26869,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26863
26869
|
})) : ze(U.$slots, p.value, { section: p.value }, () => [
|
|
26864
26870
|
w(n(we), { padding: "md" }, {
|
|
26865
26871
|
default: x(() => [
|
|
26866
|
-
u("p",
|
|
26872
|
+
u("p", tz, " Section «" + y(p.value) + "» не реализована библиотекой — host-проект подключает её через slot " + y(p.value) + ". ", 1)
|
|
26867
26873
|
]),
|
|
26868
26874
|
_: 1
|
|
26869
26875
|
})
|
|
@@ -26911,19 +26917,19 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26911
26917
|
loading: a.loading
|
|
26912
26918
|
}, null, 8, ["title", "value", "prefix", "suffix", "trend", "precision", "tone", "loading"]));
|
|
26913
26919
|
}
|
|
26914
|
-
}),
|
|
26920
|
+
}), oz = {
|
|
26915
26921
|
key: 0,
|
|
26916
26922
|
class: "admin-widget__hd"
|
|
26917
|
-
},
|
|
26923
|
+
}, cz = {
|
|
26918
26924
|
key: 0,
|
|
26919
26925
|
class: "admin-widget__title"
|
|
26920
|
-
},
|
|
26926
|
+
}, iz = {
|
|
26921
26927
|
key: 1,
|
|
26922
26928
|
class: "admin-widget__desc"
|
|
26923
|
-
},
|
|
26929
|
+
}, lz = {
|
|
26924
26930
|
key: 1,
|
|
26925
26931
|
class: "admin-widget__empty"
|
|
26926
|
-
},
|
|
26932
|
+
}, rz = ["viewBox", "height", "aria-label"], dz = ["x", "y", "width", "height", "fill", "data-label", "data-value"], mw = /* @__PURE__ */ ne({
|
|
26927
26933
|
__name: "BarChartWidget",
|
|
26928
26934
|
props: {
|
|
26929
26935
|
title: { default: "" },
|
|
@@ -26950,11 +26956,11 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26950
26956
|
class: "admin-widget"
|
|
26951
26957
|
}, {
|
|
26952
26958
|
default: x(() => [
|
|
26953
|
-
a.title || a.description ? (c(), h("header",
|
|
26954
|
-
a.title ? (c(), h("h3",
|
|
26955
|
-
a.description ? (c(), h("p",
|
|
26959
|
+
a.title || a.description ? (c(), h("header", oz, [
|
|
26960
|
+
a.title ? (c(), h("h3", cz, y(a.title), 1)) : H("", !0),
|
|
26961
|
+
a.description ? (c(), h("p", iz, y(a.description), 1)) : H("", !0)
|
|
26956
26962
|
])) : H("", !0),
|
|
26957
|
-
o.value ? (c(), h("div",
|
|
26963
|
+
o.value ? (c(), h("div", lz, y(n(v)("Нет данных за период")), 1)) : (c(), h("svg", {
|
|
26958
26964
|
key: 2,
|
|
26959
26965
|
class: "admin-widget-bar-chart",
|
|
26960
26966
|
viewBox: `0 0 100 ${a.height}`,
|
|
@@ -26976,22 +26982,22 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26976
26982
|
"data-value": r.value
|
|
26977
26983
|
}, [
|
|
26978
26984
|
u("title", null, y(r.label) + ": " + y(r.value), 1)
|
|
26979
|
-
], 8,
|
|
26980
|
-
], 8,
|
|
26985
|
+
], 8, dz))), 128))
|
|
26986
|
+
], 8, rz))
|
|
26981
26987
|
]),
|
|
26982
26988
|
_: 1
|
|
26983
26989
|
}));
|
|
26984
26990
|
}
|
|
26985
|
-
}),
|
|
26991
|
+
}), sz = {
|
|
26986
26992
|
key: 0,
|
|
26987
26993
|
class: "admin-widget__hd"
|
|
26988
|
-
},
|
|
26994
|
+
}, hz = { class: "admin-widget__title" }, uz = {
|
|
26989
26995
|
key: 1,
|
|
26990
26996
|
class: "admin-widget__empty"
|
|
26991
|
-
},
|
|
26997
|
+
}, yz = {
|
|
26992
26998
|
key: 2,
|
|
26993
26999
|
class: "admin-donut-widget__row"
|
|
26994
|
-
},
|
|
27000
|
+
}, 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
27001
|
__name: "DonutChartWidget",
|
|
26996
27002
|
props: {
|
|
26997
27003
|
title: { default: "" },
|
|
@@ -27025,10 +27031,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27025
27031
|
class: "admin-widget admin-donut-widget"
|
|
27026
27032
|
}, {
|
|
27027
27033
|
default: x(() => [
|
|
27028
|
-
a.title ? (c(), h("header",
|
|
27029
|
-
u("h3",
|
|
27034
|
+
a.title ? (c(), h("header", sz, [
|
|
27035
|
+
u("h3", hz, y(a.title), 1)
|
|
27030
27036
|
])) : H("", !0),
|
|
27031
|
-
l.value ? (c(), h("div",
|
|
27037
|
+
l.value ? (c(), h("div", uz, y(n(v)("Нет данных")), 1)) : (c(), h("div", yz, [
|
|
27032
27038
|
(c(), h("svg", {
|
|
27033
27039
|
viewBox: "0 0 120 120",
|
|
27034
27040
|
class: "admin-donut-widget__svg",
|
|
@@ -27041,22 +27047,22 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27041
27047
|
fill: p.color
|
|
27042
27048
|
}, [
|
|
27043
27049
|
u("title", null, y(p.label) + ": " + y(p.value) + " (" + y(p.pct) + "%)", 1)
|
|
27044
|
-
], 8,
|
|
27050
|
+
], 8, kz))), 128)),
|
|
27045
27051
|
r[0] || (r[0] = u("circle", {
|
|
27046
27052
|
cx: "60",
|
|
27047
27053
|
cy: "60",
|
|
27048
27054
|
r: "30",
|
|
27049
27055
|
fill: "var(--uid-surface-raised)"
|
|
27050
27056
|
}, null, -1))
|
|
27051
|
-
], 8,
|
|
27052
|
-
u("ul",
|
|
27057
|
+
], 8, pz)),
|
|
27058
|
+
u("ul", mz, [
|
|
27053
27059
|
(c(!0), h(X, null, ee(i.value, (p, m) => (c(), h("li", { key: m }, [
|
|
27054
27060
|
u("span", {
|
|
27055
27061
|
class: "admin-donut-widget__dot",
|
|
27056
27062
|
style: Ve({ background: p.color })
|
|
27057
27063
|
}, null, 4),
|
|
27058
|
-
u("span",
|
|
27059
|
-
u("span",
|
|
27064
|
+
u("span", vz, y(p.label), 1),
|
|
27065
|
+
u("span", fz, y(p.pct) + "%", 1)
|
|
27060
27066
|
]))), 128))
|
|
27061
27067
|
])
|
|
27062
27068
|
]))
|
|
@@ -27064,10 +27070,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27064
27070
|
_: 1
|
|
27065
27071
|
}));
|
|
27066
27072
|
}
|
|
27067
|
-
}),
|
|
27073
|
+
}), gz = {
|
|
27068
27074
|
key: 0,
|
|
27069
27075
|
class: "admin-widget__hd"
|
|
27070
|
-
},
|
|
27076
|
+
}, Mz = { class: "admin-widget__title" }, Iz = /* @__PURE__ */ ne({
|
|
27071
27077
|
__name: "RecentTableWidget",
|
|
27072
27078
|
props: {
|
|
27073
27079
|
title: { default: "" },
|
|
@@ -27104,8 +27110,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27104
27110
|
class: "admin-widget"
|
|
27105
27111
|
}, {
|
|
27106
27112
|
default: x(() => [
|
|
27107
|
-
a.title ? (c(), h("header",
|
|
27108
|
-
u("h3",
|
|
27113
|
+
a.title ? (c(), h("header", gz, [
|
|
27114
|
+
u("h3", Mz, y(a.title), 1)
|
|
27109
27115
|
])) : H("", !0),
|
|
27110
27116
|
w(n(Co), {
|
|
27111
27117
|
columns: d.value,
|
|
@@ -27118,16 +27124,16 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27118
27124
|
_: 1
|
|
27119
27125
|
}));
|
|
27120
27126
|
}
|
|
27121
|
-
}), J9 = /* @__PURE__ */ a1(
|
|
27127
|
+
}), J9 = /* @__PURE__ */ a1(Iz, [["__scopeId", "data-v-fbaa3502"]]), wz = {
|
|
27122
27128
|
key: 0,
|
|
27123
27129
|
class: "admin-widget__hd"
|
|
27124
|
-
},
|
|
27130
|
+
}, xz = { class: "admin-widget__title" }, bz = {
|
|
27125
27131
|
class: "admin-heatmap__cols-axis",
|
|
27126
27132
|
"aria-hidden": "true"
|
|
27127
|
-
},
|
|
27133
|
+
}, Lz = { class: "admin-heatmap__row-label" }, Cz = { class: "admin-heatmap__cells" }, _z = ["title"], Sz = {
|
|
27128
27134
|
key: 2,
|
|
27129
27135
|
class: "admin-heatmap__empty"
|
|
27130
|
-
},
|
|
27136
|
+
}, qz = /* @__PURE__ */ ne({
|
|
27131
27137
|
__name: "HeatmapWidget",
|
|
27132
27138
|
props: {
|
|
27133
27139
|
title: { default: "" },
|
|
@@ -27157,15 +27163,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27157
27163
|
class: "admin-widget admin-heatmap-widget"
|
|
27158
27164
|
}, {
|
|
27159
27165
|
default: x(() => [
|
|
27160
|
-
a.title ? (c(), h("header",
|
|
27161
|
-
u("h3",
|
|
27166
|
+
a.title ? (c(), h("header", wz, [
|
|
27167
|
+
u("h3", xz, y(a.title), 1)
|
|
27162
27168
|
])) : H("", !0),
|
|
27163
27169
|
a.rows.length > 0 && a.cols.length > 0 && a.matrix.length > 0 ? (c(), h("div", {
|
|
27164
27170
|
key: 1,
|
|
27165
27171
|
class: "admin-heatmap",
|
|
27166
27172
|
style: Ve({ "--admin-heatmap-cols": a.cols.length })
|
|
27167
27173
|
}, [
|
|
27168
|
-
u("div",
|
|
27174
|
+
u("div", bz, [
|
|
27169
27175
|
(c(!0), h(X, null, ee(a.cols, (r, p) => (c(), h("span", {
|
|
27170
27176
|
key: `c-${p}`,
|
|
27171
27177
|
class: "admin-heatmap__col-label"
|
|
@@ -27175,25 +27181,25 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27175
27181
|
key: `r-${p}`,
|
|
27176
27182
|
class: "admin-heatmap__row"
|
|
27177
27183
|
}, [
|
|
27178
|
-
u("span",
|
|
27179
|
-
u("div",
|
|
27184
|
+
u("span", Lz, y(a.rows[p] ?? ""), 1),
|
|
27185
|
+
u("div", Cz, [
|
|
27180
27186
|
(c(!0), h(X, null, ee(r, (m, k) => (c(), h("span", {
|
|
27181
27187
|
key: `cell-${p}-${k}`,
|
|
27182
27188
|
class: "admin-heatmap__cell",
|
|
27183
27189
|
style: Ve({ background: a.color, opacity: l(m) }),
|
|
27184
27190
|
title: d(m, p, k)
|
|
27185
|
-
}, null, 12,
|
|
27191
|
+
}, null, 12, _z))), 128))
|
|
27186
27192
|
])
|
|
27187
27193
|
]))), 128))
|
|
27188
|
-
], 4)) : (c(), h("div",
|
|
27194
|
+
], 4)) : (c(), h("div", Sz, y(n(v)("Нет данных")), 1))
|
|
27189
27195
|
]),
|
|
27190
27196
|
_: 1
|
|
27191
27197
|
}));
|
|
27192
27198
|
}
|
|
27193
|
-
}),
|
|
27199
|
+
}), Az = {
|
|
27194
27200
|
key: 0,
|
|
27195
27201
|
class: "admin-widget__hd"
|
|
27196
|
-
},
|
|
27202
|
+
}, zz = { class: "admin-widget__title" }, Hz = { class: "admin-gauge-widget__body" }, Vz = /* @__PURE__ */ ne({
|
|
27197
27203
|
__name: "GaugeWidget",
|
|
27198
27204
|
props: {
|
|
27199
27205
|
title: { default: "" },
|
|
@@ -27226,10 +27232,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27226
27232
|
class: "admin-widget"
|
|
27227
27233
|
}, {
|
|
27228
27234
|
default: x(() => [
|
|
27229
|
-
a.title ? (c(), h("header",
|
|
27230
|
-
u("h3",
|
|
27235
|
+
a.title ? (c(), h("header", Az, [
|
|
27236
|
+
u("h3", zz, y(a.title), 1)
|
|
27231
27237
|
])) : H("", !0),
|
|
27232
|
-
u("div",
|
|
27238
|
+
u("div", Hz, [
|
|
27233
27239
|
w(n(ex), {
|
|
27234
27240
|
value: a.value,
|
|
27235
27241
|
min: a.min,
|
|
@@ -27247,10 +27253,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27247
27253
|
_: 1
|
|
27248
27254
|
}));
|
|
27249
27255
|
}
|
|
27250
|
-
}),
|
|
27256
|
+
}), Pz = {
|
|
27251
27257
|
key: 0,
|
|
27252
27258
|
class: "admin-widget__hd"
|
|
27253
|
-
},
|
|
27259
|
+
}, Fz = { class: "admin-widget__title" }, jz = { class: "admin-markdown-widget" }, Dz = /* @__PURE__ */ ne({
|
|
27254
27260
|
__name: "MarkdownWidget",
|
|
27255
27261
|
props: {
|
|
27256
27262
|
title: { default: "" },
|
|
@@ -27262,15 +27268,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27262
27268
|
class: "admin-widget"
|
|
27263
27269
|
}, {
|
|
27264
27270
|
default: x(() => [
|
|
27265
|
-
a.title ? (c(), h("header",
|
|
27266
|
-
u("h3",
|
|
27271
|
+
a.title ? (c(), h("header", Pz, [
|
|
27272
|
+
u("h3", Fz, y(a.title), 1)
|
|
27267
27273
|
])) : H("", !0),
|
|
27268
|
-
u("div",
|
|
27274
|
+
u("div", jz, y(a.content), 1)
|
|
27269
27275
|
]),
|
|
27270
27276
|
_: 1
|
|
27271
27277
|
}));
|
|
27272
27278
|
}
|
|
27273
|
-
}),
|
|
27279
|
+
}), Bz = /* @__PURE__ */ ne({
|
|
27274
27280
|
__name: "ChartWidget",
|
|
27275
27281
|
props: {
|
|
27276
27282
|
type: {},
|
|
@@ -27326,10 +27332,10 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27326
27332
|
type: `chart:${o.value}`
|
|
27327
27333
|
}, null, 8, ["type"]));
|
|
27328
27334
|
}
|
|
27329
|
-
}),
|
|
27335
|
+
}), Rz = {
|
|
27330
27336
|
key: 0,
|
|
27331
27337
|
class: "admin-widget__hd"
|
|
27332
|
-
},
|
|
27338
|
+
}, $z = { class: "admin-widget__title" }, Tz = /* @__PURE__ */ ne({
|
|
27333
27339
|
__name: "TableWidget",
|
|
27334
27340
|
props: {
|
|
27335
27341
|
title: { default: "" },
|
|
@@ -27358,8 +27364,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27358
27364
|
class: "admin-widget"
|
|
27359
27365
|
}, {
|
|
27360
27366
|
default: x(() => [
|
|
27361
|
-
a.title ? (c(), h("header",
|
|
27362
|
-
u("h3",
|
|
27367
|
+
a.title ? (c(), h("header", Rz, [
|
|
27368
|
+
u("h3", $z, y(a.title), 1)
|
|
27363
27369
|
])) : H("", !0),
|
|
27364
27370
|
w(n(Co), {
|
|
27365
27371
|
columns: o.value,
|
|
@@ -27370,13 +27376,13 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27370
27376
|
_: 1
|
|
27371
27377
|
}));
|
|
27372
27378
|
}
|
|
27373
|
-
}),
|
|
27379
|
+
}), Uz = {
|
|
27374
27380
|
key: 0,
|
|
27375
27381
|
class: "admin-widget__hd"
|
|
27376
|
-
},
|
|
27382
|
+
}, Oz = { class: "admin-widget__title" }, Ez = ["src", "sandbox"], Zz = {
|
|
27377
27383
|
key: 2,
|
|
27378
27384
|
class: "admin-widget__empty"
|
|
27379
|
-
},
|
|
27385
|
+
}, Wz = /* @__PURE__ */ ne({
|
|
27380
27386
|
__name: "IframeWidget",
|
|
27381
27387
|
props: {
|
|
27382
27388
|
title: { default: "" },
|
|
@@ -27393,8 +27399,8 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27393
27399
|
class: "admin-widget admin-widget--iframe"
|
|
27394
27400
|
}, {
|
|
27395
27401
|
default: x(() => [
|
|
27396
|
-
a.title ? (c(), h("header",
|
|
27397
|
-
u("h3",
|
|
27402
|
+
a.title ? (c(), h("header", Uz, [
|
|
27403
|
+
u("h3", Oz, y(a.title), 1)
|
|
27398
27404
|
])) : H("", !0),
|
|
27399
27405
|
a.src ? (c(), h("iframe", {
|
|
27400
27406
|
key: 1,
|
|
@@ -27404,22 +27410,22 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27404
27410
|
class: "admin-widget__iframe",
|
|
27405
27411
|
loading: "lazy",
|
|
27406
27412
|
referrerpolicy: "no-referrer"
|
|
27407
|
-
}, null, 12,
|
|
27413
|
+
}, null, 12, Ez)) : (c(), h("p", Zz, y(n(v)("Не задан src")), 1))
|
|
27408
27414
|
]),
|
|
27409
27415
|
_: 1
|
|
27410
27416
|
}));
|
|
27411
27417
|
}
|
|
27412
|
-
}),
|
|
27413
|
-
function
|
|
27418
|
+
}), Gz = /* @__PURE__ */ a1(Wz, [["__scopeId", "data-v-ff47a97f"]]);
|
|
27419
|
+
function Nz() {
|
|
27414
27420
|
((t) => {
|
|
27415
27421
|
for (const [o, l] of Object.entries(t))
|
|
27416
|
-
|
|
27422
|
+
Kb(o) || Nb(o, l);
|
|
27417
27423
|
})({
|
|
27418
27424
|
// Stat / Stats overview
|
|
27419
27425
|
stat: DI,
|
|
27420
27426
|
stats: DI,
|
|
27421
27427
|
// Charts: универсальный диспетчер по data.type → bar/donut/...
|
|
27422
|
-
chart:
|
|
27428
|
+
chart: Bz,
|
|
27423
27429
|
"bar-chart": mw,
|
|
27424
27430
|
"donut-chart": vw,
|
|
27425
27431
|
// Recent list (таблица последних записей)
|
|
@@ -27427,21 +27433,21 @@ function Gz() {
|
|
|
27427
27433
|
recent_list: J9,
|
|
27428
27434
|
"recent-list": J9,
|
|
27429
27435
|
// Heatmap / Gauge / Markdown
|
|
27430
|
-
heatmap:
|
|
27431
|
-
gauge:
|
|
27432
|
-
markdown:
|
|
27436
|
+
heatmap: qz,
|
|
27437
|
+
gauge: Vz,
|
|
27438
|
+
markdown: Dz,
|
|
27433
27439
|
// Полнофункциональная таблица (resource-колонки) и iframe-встройка
|
|
27434
|
-
table:
|
|
27435
|
-
iframe:
|
|
27440
|
+
table: Tz,
|
|
27441
|
+
iframe: Gz
|
|
27436
27442
|
});
|
|
27437
27443
|
}
|
|
27438
|
-
function
|
|
27444
|
+
function Xz(a) {
|
|
27439
27445
|
return a.success === !0;
|
|
27440
27446
|
}
|
|
27441
|
-
function
|
|
27447
|
+
function nj(a) {
|
|
27442
27448
|
return a.success === !1;
|
|
27443
27449
|
}
|
|
27444
|
-
function
|
|
27450
|
+
function Kz(a) {
|
|
27445
27451
|
const t = ux.create({
|
|
27446
27452
|
baseURL: a.baseURL,
|
|
27447
27453
|
withCredentials: !0,
|
|
@@ -27451,13 +27457,13 @@ function Xz(a) {
|
|
|
27451
27457
|
}
|
|
27452
27458
|
});
|
|
27453
27459
|
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 =
|
|
27460
|
+
const i = Jz("XSRF-TOKEN");
|
|
27455
27461
|
return i && (d.headers.set("X-XSRF-TOKEN", decodeURIComponent(i)), d.headers.delete("X-CSRF-TOKEN")), d;
|
|
27456
27462
|
}), t.interceptors.response.use(
|
|
27457
27463
|
(d) => {
|
|
27458
27464
|
const i = d.data;
|
|
27459
27465
|
if (i && typeof i == "object" && "success" in i) {
|
|
27460
|
-
if (
|
|
27466
|
+
if (Xz(i))
|
|
27461
27467
|
return d.data = i.payload, d;
|
|
27462
27468
|
throw LI(d.status, i.payload);
|
|
27463
27469
|
}
|
|
@@ -27490,26 +27496,26 @@ function Xz(a) {
|
|
|
27490
27496
|
}
|
|
27491
27497
|
};
|
|
27492
27498
|
}
|
|
27493
|
-
function
|
|
27499
|
+
function Jz(a) {
|
|
27494
27500
|
if (typeof document > "u") return null;
|
|
27495
|
-
const t = document.cookie.match(new RegExp("(^|; )" +
|
|
27501
|
+
const t = document.cookie.match(new RegExp("(^|; )" + Yz(a) + "=([^;]*)"));
|
|
27496
27502
|
return t ? t[2] : null;
|
|
27497
27503
|
}
|
|
27498
|
-
function
|
|
27504
|
+
function Yz(a) {
|
|
27499
27505
|
return a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
27500
27506
|
}
|
|
27501
27507
|
function oc(a, t) {
|
|
27502
27508
|
const o = a.permissions?.[t];
|
|
27503
27509
|
return typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27504
27510
|
}
|
|
27505
|
-
function
|
|
27511
|
+
function Qz(a, t) {
|
|
27506
27512
|
const o = a.permissions?.[t];
|
|
27507
27513
|
return typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27508
27514
|
}
|
|
27509
|
-
function
|
|
27515
|
+
function eH(a) {
|
|
27510
27516
|
return Array.isArray(a.permission) ? a.permission : typeof a.permission == "string" && a.permission.length > 0 ? [a.permission] : [];
|
|
27511
27517
|
}
|
|
27512
|
-
function
|
|
27518
|
+
function aH(a, t) {
|
|
27513
27519
|
const o = a.slug, l = `/r/${o}`;
|
|
27514
27520
|
return [
|
|
27515
27521
|
{
|
|
@@ -27570,7 +27576,7 @@ function eH(a, t) {
|
|
|
27570
27576
|
}
|
|
27571
27577
|
];
|
|
27572
27578
|
}
|
|
27573
|
-
function
|
|
27579
|
+
function tH(a, t) {
|
|
27574
27580
|
return {
|
|
27575
27581
|
path: `/screens/${a.slug}`,
|
|
27576
27582
|
name: `admin.screen.${a.slug}`,
|
|
@@ -27580,11 +27586,11 @@ function aH(a, t) {
|
|
|
27580
27586
|
kind: "screen",
|
|
27581
27587
|
slug: a.slug,
|
|
27582
27588
|
title: a.name,
|
|
27583
|
-
permissions:
|
|
27589
|
+
permissions: eH(a)
|
|
27584
27590
|
}
|
|
27585
27591
|
};
|
|
27586
27592
|
}
|
|
27587
|
-
function
|
|
27593
|
+
function nH(a, t) {
|
|
27588
27594
|
return {
|
|
27589
27595
|
path: `/settings/${a.slug}`,
|
|
27590
27596
|
name: `admin.settings.${a.slug}`,
|
|
@@ -27594,11 +27600,11 @@ function tH(a, t) {
|
|
|
27594
27600
|
kind: "settings",
|
|
27595
27601
|
slug: a.slug,
|
|
27596
27602
|
title: a.label,
|
|
27597
|
-
permissions:
|
|
27603
|
+
permissions: Qz(a, "view")
|
|
27598
27604
|
}
|
|
27599
27605
|
};
|
|
27600
27606
|
}
|
|
27601
|
-
function
|
|
27607
|
+
function oH(a, t) {
|
|
27602
27608
|
if (typeof a.slug != "string" || a.slug.length === 0) return null;
|
|
27603
27609
|
const o = a.permission, l = Array.isArray(o) ? o : typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27604
27610
|
return {
|
|
@@ -27614,22 +27620,22 @@ function nH(a, t) {
|
|
|
27614
27620
|
}
|
|
27615
27621
|
};
|
|
27616
27622
|
}
|
|
27617
|
-
function
|
|
27623
|
+
function cH(a, t) {
|
|
27618
27624
|
if (a === null) return [];
|
|
27619
27625
|
const o = [];
|
|
27620
27626
|
for (const l of a.resources)
|
|
27621
|
-
o.push(...
|
|
27627
|
+
o.push(...aH(l, t));
|
|
27622
27628
|
for (const l of a.screens)
|
|
27623
|
-
o.push(aH(l, t));
|
|
27624
|
-
for (const l of a.settings)
|
|
27625
27629
|
o.push(tH(l, t));
|
|
27630
|
+
for (const l of a.settings)
|
|
27631
|
+
o.push(nH(l, t));
|
|
27626
27632
|
for (const l of a.dashboards) {
|
|
27627
|
-
const d =
|
|
27633
|
+
const d = oH(l, t);
|
|
27628
27634
|
d && o.push(d);
|
|
27629
27635
|
}
|
|
27630
27636
|
return o;
|
|
27631
27637
|
}
|
|
27632
|
-
function
|
|
27638
|
+
function iH(a = {}) {
|
|
27633
27639
|
const t = a.loginRouteName ?? "admin.login", o = a.forbiddenRouteName ?? "admin.forbidden", l = a.redirectQueryKey ?? "redirect";
|
|
27634
27640
|
return (d) => {
|
|
27635
27641
|
if (d.name === t)
|
|
@@ -27649,7 +27655,7 @@ function cH(a = {}) {
|
|
|
27649
27655
|
return Array.isArray(r) && r.length > 0 && !i.hasAnyPermission(r) ? { name: o } : !0;
|
|
27650
27656
|
};
|
|
27651
27657
|
}
|
|
27652
|
-
function
|
|
27658
|
+
function lH(a = {}) {
|
|
27653
27659
|
const t = a.template, o = a.brand ?? "", l = a.fallback ?? "";
|
|
27654
27660
|
return (d) => {
|
|
27655
27661
|
if (typeof document > "u") return;
|
|
@@ -27658,16 +27664,16 @@ function iH(a = {}) {
|
|
|
27658
27664
|
t ? s = t.replace("{title}", i).replace("{brand}", o) : i && o ? s = `${i} · ${o}` : s = i || o, document.title = s;
|
|
27659
27665
|
};
|
|
27660
27666
|
}
|
|
27661
|
-
const
|
|
27667
|
+
const rH = [
|
|
27662
27668
|
"admin.resource.",
|
|
27663
27669
|
"admin.screen.",
|
|
27664
27670
|
"admin.settings.",
|
|
27665
27671
|
"admin.dashboard."
|
|
27666
27672
|
];
|
|
27667
|
-
function rH(a) {
|
|
27668
|
-
return typeof a != "string" ? !1 : lH.some((t) => a.startsWith(t));
|
|
27669
|
-
}
|
|
27670
27673
|
function dH(a) {
|
|
27674
|
+
return typeof a != "string" ? !1 : rH.some((t) => a.startsWith(t));
|
|
27675
|
+
}
|
|
27676
|
+
function sH(a) {
|
|
27671
27677
|
const t = a.base ?? "/admin", o = a.history ?? UI(t), l = [
|
|
27672
27678
|
{
|
|
27673
27679
|
path: "/login",
|
|
@@ -27718,12 +27724,12 @@ function dH(a) {
|
|
|
27718
27724
|
history: o,
|
|
27719
27725
|
routes: [...l, ...a.extraRoutes ?? [], d]
|
|
27720
27726
|
});
|
|
27721
|
-
return i.beforeEach(
|
|
27727
|
+
return i.beforeEach(iH(a.authGuard)), i.afterEach(lH(a.titleGuard)), i.replaceManifestRoutes = (s) => {
|
|
27722
27728
|
const r = i.getRoutes();
|
|
27723
27729
|
for (const m of r)
|
|
27724
|
-
|
|
27730
|
+
dH(m.name) && i.removeRoute(m.name);
|
|
27725
27731
|
i.hasRoute("admin.notFound") && i.removeRoute("admin.notFound");
|
|
27726
|
-
const p =
|
|
27732
|
+
const p = cH(s, a.components);
|
|
27727
27733
|
for (const m of p)
|
|
27728
27734
|
i.addRoute(m);
|
|
27729
27735
|
i.addRoute(d);
|
|
@@ -27963,20 +27969,20 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
27963
27969
|
_: 1
|
|
27964
27970
|
}, 8, ["label", "hint", "error", "required", "disabled"]));
|
|
27965
27971
|
}
|
|
27966
|
-
}),
|
|
27972
|
+
}), hH = {
|
|
27967
27973
|
key: 0,
|
|
27968
27974
|
class: "admin-field__label"
|
|
27969
|
-
},
|
|
27975
|
+
}, uH = {
|
|
27970
27976
|
key: 0,
|
|
27971
27977
|
class: "admin-field__required",
|
|
27972
27978
|
"aria-hidden": "true"
|
|
27973
|
-
},
|
|
27979
|
+
}, 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
27980
|
key: 1,
|
|
27975
27981
|
class: "admin-field__error"
|
|
27976
|
-
},
|
|
27982
|
+
}, MH = {
|
|
27977
27983
|
key: 2,
|
|
27978
27984
|
class: "admin-field__help"
|
|
27979
|
-
},
|
|
27985
|
+
}, IH = /* @__PURE__ */ ne({
|
|
27980
27986
|
__name: "TagsField",
|
|
27981
27987
|
props: {
|
|
27982
27988
|
name: {},
|
|
@@ -28082,9 +28088,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28082
28088
|
), (W, J) => (c(), h("div", {
|
|
28083
28089
|
class: fe(["admin-field", { "admin-field--invalid": d.value !== void 0 }])
|
|
28084
28090
|
}, [
|
|
28085
|
-
a.label ? (c(), h("label",
|
|
28091
|
+
a.label ? (c(), h("label", hH, [
|
|
28086
28092
|
u("span", null, y(a.label), 1),
|
|
28087
|
-
a.required ? (c(), h("span",
|
|
28093
|
+
a.required ? (c(), h("span", uH, "*")) : H("", !0)
|
|
28088
28094
|
])) : H("", !0),
|
|
28089
28095
|
u("div", {
|
|
28090
28096
|
ref_key: "containerRef",
|
|
@@ -28102,7 +28108,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28102
28108
|
key: `${R}-${_}`,
|
|
28103
28109
|
class: "admin-tags__chip"
|
|
28104
28110
|
}, [
|
|
28105
|
-
u("span",
|
|
28111
|
+
u("span", yH, y(R), 1),
|
|
28106
28112
|
a.disabled ? H("", !0) : (c(), h("button", {
|
|
28107
28113
|
key: 0,
|
|
28108
28114
|
type: "button",
|
|
@@ -28114,7 +28120,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28114
28120
|
icon: n(He),
|
|
28115
28121
|
size: 10
|
|
28116
28122
|
}, null, 8, ["icon"])
|
|
28117
|
-
], 8,
|
|
28123
|
+
], 8, pH))
|
|
28118
28124
|
]))), 128)),
|
|
28119
28125
|
u("input", {
|
|
28120
28126
|
ref_key: "inputRef",
|
|
@@ -28128,7 +28134,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28128
28134
|
onKeydown: Z,
|
|
28129
28135
|
onFocus: J[0] || (J[0] = (R) => s.value = !0),
|
|
28130
28136
|
onBlur: te
|
|
28131
|
-
}, null, 40,
|
|
28137
|
+
}, null, 40, kH),
|
|
28132
28138
|
(c(), z(lI, { to: "body" }, [
|
|
28133
28139
|
s.value && B.value.length > 0 ? (c(), h("div", {
|
|
28134
28140
|
key: 0,
|
|
@@ -28141,7 +28147,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28141
28147
|
T.value ? (c(!0), h(X, { key: 0 }, ee(P.value, (R, _) => (c(), h(X, {
|
|
28142
28148
|
key: `g-${_}-${R.label}`
|
|
28143
28149
|
}, [
|
|
28144
|
-
u("div",
|
|
28150
|
+
u("div", mH, y(R.label), 1),
|
|
28145
28151
|
(c(!0), h(X, null, ee(R.items, (j) => (c(), h("button", {
|
|
28146
28152
|
key: j,
|
|
28147
28153
|
type: "button",
|
|
@@ -28157,7 +28163,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28157
28163
|
"aria-selected": F(B.value.indexOf(j)),
|
|
28158
28164
|
onMousedown: me((q) => G(j), ["prevent"]),
|
|
28159
28165
|
onMouseenter: (q) => V.value = B.value.indexOf(j)
|
|
28160
|
-
}, y(j), 43,
|
|
28166
|
+
}, y(j), 43, vH))), 128))
|
|
28161
28167
|
], 64))), 128)) : (c(!0), h(X, { key: 1 }, ee(B.value, (R, _) => (c(), h("button", {
|
|
28162
28168
|
key: R,
|
|
28163
28169
|
type: "button",
|
|
@@ -28166,31 +28172,31 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28166
28172
|
"aria-selected": _ === V.value,
|
|
28167
28173
|
onMousedown: me((j) => G(R), ["prevent"]),
|
|
28168
28174
|
onMouseenter: (j) => V.value = _
|
|
28169
|
-
}, y(R), 43,
|
|
28175
|
+
}, y(R), 43, fH))), 128))
|
|
28170
28176
|
], 4)) : H("", !0)
|
|
28171
28177
|
]))
|
|
28172
28178
|
], 2),
|
|
28173
|
-
d.value ? (c(), h("p",
|
|
28179
|
+
d.value ? (c(), h("p", gH, y(d.value), 1)) : a.help ? (c(), h("p", MH, y(a.help), 1)) : H("", !0)
|
|
28174
28180
|
], 2));
|
|
28175
28181
|
}
|
|
28176
|
-
}),
|
|
28182
|
+
}), wH = {
|
|
28177
28183
|
key: 0,
|
|
28178
28184
|
class: "admin-field__label"
|
|
28179
|
-
},
|
|
28185
|
+
}, xH = {
|
|
28180
28186
|
key: 0,
|
|
28181
28187
|
class: "admin-field__required",
|
|
28182
28188
|
"aria-hidden": "true"
|
|
28183
|
-
},
|
|
28189
|
+
}, bH = { class: "admin-translatable" }, LH = {
|
|
28184
28190
|
class: "admin-translatable__tabs",
|
|
28185
28191
|
role: "tablist"
|
|
28186
|
-
},
|
|
28192
|
+
}, CH = ["aria-selected", "onClick"], _H = {
|
|
28187
28193
|
key: 0,
|
|
28188
28194
|
class: "admin-translatable__dot",
|
|
28189
28195
|
"aria-hidden": "true"
|
|
28190
|
-
},
|
|
28196
|
+
}, SH = { class: "admin-translatable__panel" }, qH = ["value", "placeholder", "rows", "disabled"], AH = {
|
|
28191
28197
|
key: 1,
|
|
28192
28198
|
class: "admin-field__error"
|
|
28193
|
-
},
|
|
28199
|
+
}, zH = {
|
|
28194
28200
|
key: 2,
|
|
28195
28201
|
class: "admin-field__help"
|
|
28196
28202
|
}, BI = /* @__PURE__ */ ne({
|
|
@@ -28232,12 +28238,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28232
28238
|
return (k, g) => (c(), h("div", {
|
|
28233
28239
|
class: fe(["admin-field", { "admin-field--invalid": p.value !== void 0 }])
|
|
28234
28240
|
}, [
|
|
28235
|
-
a.label ? (c(), h("label",
|
|
28241
|
+
a.label ? (c(), h("label", wH, [
|
|
28236
28242
|
u("span", null, y(a.label), 1),
|
|
28237
|
-
a.required ? (c(), h("span",
|
|
28243
|
+
a.required ? (c(), h("span", xH, "*")) : H("", !0)
|
|
28238
28244
|
])) : H("", !0),
|
|
28239
|
-
u("div",
|
|
28240
|
-
u("div",
|
|
28245
|
+
u("div", bH, [
|
|
28246
|
+
u("div", LH, [
|
|
28241
28247
|
(c(!0), h(X, null, ee(d.value, (b) => (c(), h("button", {
|
|
28242
28248
|
key: b,
|
|
28243
28249
|
type: "button",
|
|
@@ -28253,10 +28259,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28253
28259
|
onClick: (C) => i.value = b
|
|
28254
28260
|
}, [
|
|
28255
28261
|
D(y(b.toUpperCase()) + " ", 1),
|
|
28256
|
-
m(b) ? (c(), h("span",
|
|
28257
|
-
], 10,
|
|
28262
|
+
m(b) ? (c(), h("span", _H)) : H("", !0)
|
|
28263
|
+
], 10, CH))), 128))
|
|
28258
28264
|
]),
|
|
28259
|
-
u("div",
|
|
28265
|
+
u("div", SH, [
|
|
28260
28266
|
a.multiline ? (c(), h("textarea", {
|
|
28261
28267
|
key: 1,
|
|
28262
28268
|
value: s.value[i.value] ?? "",
|
|
@@ -28265,7 +28271,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28265
28271
|
disabled: a.disabled,
|
|
28266
28272
|
class: "admin-translatable__textarea",
|
|
28267
28273
|
onInput: g[1] || (g[1] = (b) => r(i.value, b.target.value))
|
|
28268
|
-
}, null, 40,
|
|
28274
|
+
}, null, 40, qH)) : (c(), z(n(Le), {
|
|
28269
28275
|
key: 0,
|
|
28270
28276
|
"model-value": s.value[i.value] ?? "",
|
|
28271
28277
|
placeholder: a.placeholder ?? "",
|
|
@@ -28274,23 +28280,23 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28274
28280
|
}, null, 8, ["model-value", "placeholder", "disabled"]))
|
|
28275
28281
|
])
|
|
28276
28282
|
]),
|
|
28277
|
-
p.value ? (c(), h("p",
|
|
28283
|
+
p.value ? (c(), h("p", AH, y(p.value), 1)) : a.help ? (c(), h("p", zH, y(a.help), 1)) : H("", !0)
|
|
28278
28284
|
], 2));
|
|
28279
28285
|
}
|
|
28280
|
-
}),
|
|
28286
|
+
}), HH = {
|
|
28281
28287
|
key: 0,
|
|
28282
28288
|
class: "admin-field__label"
|
|
28283
|
-
},
|
|
28289
|
+
}, VH = {
|
|
28284
28290
|
key: 0,
|
|
28285
28291
|
class: "admin-field__required",
|
|
28286
28292
|
"aria-hidden": "true"
|
|
28287
|
-
},
|
|
28293
|
+
}, PH = ["onMousedown"], FH = {
|
|
28288
28294
|
key: 1,
|
|
28289
28295
|
class: "admin-field__error"
|
|
28290
|
-
},
|
|
28296
|
+
}, jH = {
|
|
28291
28297
|
key: 2,
|
|
28292
28298
|
class: "admin-field__help"
|
|
28293
|
-
},
|
|
28299
|
+
}, DH = /* @__PURE__ */ ne({
|
|
28294
28300
|
__name: "WysiwygField",
|
|
28295
28301
|
props: {
|
|
28296
28302
|
name: {},
|
|
@@ -28454,9 +28460,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28454
28460
|
}), (R, _) => (c(), h("div", {
|
|
28455
28461
|
class: fe(["admin-field", { "admin-field--invalid": d.value !== void 0 }])
|
|
28456
28462
|
}, [
|
|
28457
|
-
a.label ? (c(), h("label",
|
|
28463
|
+
a.label ? (c(), h("label", HH, [
|
|
28458
28464
|
u("span", null, y(a.label), 1),
|
|
28459
|
-
a.required ? (c(), h("span",
|
|
28465
|
+
a.required ? (c(), h("span", VH, "*")) : H("", !0)
|
|
28460
28466
|
])) : H("", !0),
|
|
28461
28467
|
u("div", {
|
|
28462
28468
|
ref_key: "containerRef",
|
|
@@ -28487,7 +28493,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28487
28493
|
class: fe(["admin-wysiwyg-img__handle", `admin-wysiwyg-img__handle--${j}`]),
|
|
28488
28494
|
style: Ve(J(j, I.value)),
|
|
28489
28495
|
onMousedown: (q) => G(j, q)
|
|
28490
|
-
}, null, 46,
|
|
28496
|
+
}, null, 46, PH)), 64)) : H("", !0),
|
|
28491
28497
|
L.value ? (c(), h("div", {
|
|
28492
28498
|
key: 1,
|
|
28493
28499
|
class: "admin-wysiwyg-img__dropline",
|
|
@@ -28498,25 +28504,25 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28498
28504
|
})
|
|
28499
28505
|
}, null, 4)) : H("", !0)
|
|
28500
28506
|
], 512),
|
|
28501
|
-
d.value ? (c(), h("p",
|
|
28507
|
+
d.value ? (c(), h("p", FH, y(d.value), 1)) : a.help ? (c(), h("p", jH, y(a.help), 1)) : H("", !0)
|
|
28502
28508
|
], 2));
|
|
28503
28509
|
}
|
|
28504
|
-
}),
|
|
28510
|
+
}), BH = /* @__PURE__ */ a1(DH, [["__scopeId", "data-v-e1cee25f"]]), RH = { class: "admin-file-field" }, $H = {
|
|
28505
28511
|
key: 0,
|
|
28506
28512
|
class: "admin-file-field__label"
|
|
28507
|
-
},
|
|
28513
|
+
}, TH = {
|
|
28508
28514
|
key: 0,
|
|
28509
28515
|
class: "admin-file-field__required"
|
|
28510
|
-
},
|
|
28516
|
+
}, UH = { key: 1 }, OH = { class: "admin-file-field__hint" }, EH = ["accept"], ZH = {
|
|
28511
28517
|
key: 2,
|
|
28512
28518
|
class: "admin-file-field__preview"
|
|
28513
|
-
},
|
|
28519
|
+
}, WH = { class: "admin-file-field__preview-info" }, GH = ["href"], NH = { class: "admin-file-field__preview-meta" }, XH = {
|
|
28514
28520
|
key: 3,
|
|
28515
28521
|
class: "admin-file-field__help"
|
|
28516
|
-
},
|
|
28522
|
+
}, KH = {
|
|
28517
28523
|
key: 4,
|
|
28518
28524
|
class: "admin-file-field__error"
|
|
28519
|
-
},
|
|
28525
|
+
}, JH = /* @__PURE__ */ ne({
|
|
28520
28526
|
__name: "FileField",
|
|
28521
28527
|
props: {
|
|
28522
28528
|
name: {},
|
|
@@ -28566,19 +28572,19 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28566
28572
|
function b() {
|
|
28567
28573
|
o.setField(t.name, null);
|
|
28568
28574
|
}
|
|
28569
|
-
return (C, I) => (c(), h("div",
|
|
28570
|
-
a.label ? (c(), h("label",
|
|
28575
|
+
return (C, I) => (c(), h("div", RH, [
|
|
28576
|
+
a.label ? (c(), h("label", $H, [
|
|
28571
28577
|
D(y(a.label), 1),
|
|
28572
|
-
a.required ? (c(), h("span",
|
|
28578
|
+
a.required ? (c(), h("span", TH, "*")) : H("", !0)
|
|
28573
28579
|
])) : H("", !0),
|
|
28574
|
-
l.value ? (c(), h("div",
|
|
28575
|
-
u("div",
|
|
28580
|
+
l.value ? (c(), h("div", ZH, [
|
|
28581
|
+
u("div", WH, [
|
|
28576
28582
|
u("a", {
|
|
28577
28583
|
href: l.value.url,
|
|
28578
28584
|
target: "_blank",
|
|
28579
28585
|
rel: "noopener"
|
|
28580
|
-
}, y(l.value.name), 9,
|
|
28581
|
-
u("span",
|
|
28586
|
+
}, y(l.value.name), 9, GH),
|
|
28587
|
+
u("span", NH, y(l.value.mime), 1)
|
|
28582
28588
|
]),
|
|
28583
28589
|
w(n(oe), {
|
|
28584
28590
|
variant: "ghost",
|
|
@@ -28591,7 +28597,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28591
28597
|
]),
|
|
28592
28598
|
_: 1
|
|
28593
28599
|
})
|
|
28594
|
-
])) : (c(), h("div",
|
|
28600
|
+
])) : (c(), h("div", UH, [
|
|
28595
28601
|
u("div", {
|
|
28596
28602
|
class: fe(["admin-file-field__drop", { "admin-file-field__drop--over": r.value }]),
|
|
28597
28603
|
onClick: p,
|
|
@@ -28603,7 +28609,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28603
28609
|
icon: n(oo),
|
|
28604
28610
|
size: 24
|
|
28605
28611
|
}, null, 8, ["icon"]),
|
|
28606
|
-
u("p",
|
|
28612
|
+
u("p", OH, y(s.value ? n(v)("Загрузка…") : n(v)("Кликните или перетащите файл сюда")), 1)
|
|
28607
28613
|
], 34),
|
|
28608
28614
|
u("input", {
|
|
28609
28615
|
ref_key: "fileInput",
|
|
@@ -28612,34 +28618,34 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28612
28618
|
accept: a.accept ?? void 0,
|
|
28613
28619
|
class: "admin-file-field__input",
|
|
28614
28620
|
onChange: m
|
|
28615
|
-
}, null, 40,
|
|
28621
|
+
}, null, 40, EH)
|
|
28616
28622
|
])),
|
|
28617
|
-
a.help && !d.value ? (c(), h("p",
|
|
28618
|
-
d.value ? (c(), h("p",
|
|
28623
|
+
a.help && !d.value ? (c(), h("p", XH, y(a.help), 1)) : H("", !0),
|
|
28624
|
+
d.value ? (c(), h("p", KH, y(d.value), 1)) : H("", !0)
|
|
28619
28625
|
]));
|
|
28620
28626
|
}
|
|
28621
|
-
}), RI = /* @__PURE__ */ a1(
|
|
28627
|
+
}), RI = /* @__PURE__ */ a1(JH, [["__scopeId", "data-v-ec4a41a3"]]), YH = { class: "admin-image-cropper" }, QH = {
|
|
28622
28628
|
key: 0,
|
|
28623
28629
|
class: "admin-image-cropper__label"
|
|
28624
|
-
},
|
|
28630
|
+
}, eV = {
|
|
28625
28631
|
key: 0,
|
|
28626
28632
|
class: "admin-image-cropper__required"
|
|
28627
|
-
},
|
|
28633
|
+
}, aV = { key: 1 }, tV = { class: "admin-image-cropper__hint" }, nV = {
|
|
28628
28634
|
key: 0,
|
|
28629
28635
|
class: "admin-image-cropper__hint-sub"
|
|
28630
|
-
},
|
|
28636
|
+
}, oV = ["accept"], cV = {
|
|
28631
28637
|
key: 2,
|
|
28632
28638
|
class: "admin-image-cropper__crop"
|
|
28633
|
-
},
|
|
28639
|
+
}, iV = ["src", "width", "height"], lV = { class: "admin-image-cropper__actions" }, rV = {
|
|
28634
28640
|
key: 3,
|
|
28635
28641
|
class: "admin-image-cropper__preview"
|
|
28636
|
-
},
|
|
28642
|
+
}, 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
28643
|
key: 4,
|
|
28638
28644
|
class: "admin-image-cropper__help"
|
|
28639
|
-
},
|
|
28645
|
+
}, kV = {
|
|
28640
28646
|
key: 5,
|
|
28641
28647
|
class: "admin-image-cropper__error"
|
|
28642
|
-
},
|
|
28648
|
+
}, mV = 500, vV = 400, fV = /* @__PURE__ */ ne({
|
|
28643
28649
|
__name: "ImageCropperField",
|
|
28644
28650
|
props: {
|
|
28645
28651
|
name: {},
|
|
@@ -28689,7 +28695,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28689
28695
|
}
|
|
28690
28696
|
function Z() {
|
|
28691
28697
|
if (!p.value) return;
|
|
28692
|
-
const R = p.value.naturalWidth, _ = p.value.naturalHeight, j = Math.min(
|
|
28698
|
+
const R = p.value.naturalWidth, _ = p.value.naturalHeight, j = Math.min(mV / R, vV / _, 1);
|
|
28693
28699
|
k.value = j, g.value = { w: R * j, h: _ * j };
|
|
28694
28700
|
}
|
|
28695
28701
|
function U() {
|
|
@@ -28783,12 +28789,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28783
28789
|
function J() {
|
|
28784
28790
|
o.setField(t.name, null);
|
|
28785
28791
|
}
|
|
28786
|
-
return Do(te), (R, _) => (c(), h("div",
|
|
28787
|
-
a.label ? (c(), h("label",
|
|
28792
|
+
return Do(te), (R, _) => (c(), h("div", YH, [
|
|
28793
|
+
a.label ? (c(), h("label", QH, [
|
|
28788
28794
|
D(y(a.label), 1),
|
|
28789
|
-
a.required ? (c(), h("span",
|
|
28795
|
+
a.required ? (c(), h("span", eV, "*")) : H("", !0)
|
|
28790
28796
|
])) : H("", !0),
|
|
28791
|
-
!l.value && !p.value ? (c(), h("div",
|
|
28797
|
+
!l.value && !p.value ? (c(), h("div", aV, [
|
|
28792
28798
|
u("div", {
|
|
28793
28799
|
class: fe(["admin-image-cropper__drop", { "admin-image-cropper__drop--over": s.value }]),
|
|
28794
28800
|
onClick: I,
|
|
@@ -28800,8 +28806,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28800
28806
|
icon: n(to),
|
|
28801
28807
|
size: 28
|
|
28802
28808
|
}, null, 8, ["icon"]),
|
|
28803
|
-
u("p",
|
|
28804
|
-
a.outputWidth && a.outputHeight ? (c(), h("p",
|
|
28809
|
+
u("p", tV, y(n(v)("Кликните или перетащите картинку")), 1),
|
|
28810
|
+
a.outputWidth && a.outputHeight ? (c(), h("p", nV, " Будет обрезано до " + y(a.outputWidth) + "×" + y(a.outputHeight) + " px ", 1)) : H("", !0)
|
|
28805
28811
|
], 34),
|
|
28806
28812
|
u("input", {
|
|
28807
28813
|
ref_key: "fileInput",
|
|
@@ -28810,8 +28816,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28810
28816
|
accept: a.accept ?? "image/*",
|
|
28811
28817
|
class: "admin-image-cropper__input",
|
|
28812
28818
|
onChange: L
|
|
28813
|
-
}, null, 40,
|
|
28814
|
-
])) : p.value ? (c(), h("div",
|
|
28819
|
+
}, null, 40, oV)
|
|
28820
|
+
])) : p.value ? (c(), h("div", cV, [
|
|
28815
28821
|
u("div", {
|
|
28816
28822
|
class: "admin-image-cropper__canvas-wrap",
|
|
28817
28823
|
style: Ve({ width: g.value.w + "px", height: g.value.h + "px" })
|
|
@@ -28822,7 +28828,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28822
28828
|
height: g.value.h,
|
|
28823
28829
|
class: "admin-image-cropper__img",
|
|
28824
28830
|
alt: ""
|
|
28825
|
-
}, null, 8,
|
|
28831
|
+
}, null, 8, iV),
|
|
28826
28832
|
u("div", {
|
|
28827
28833
|
class: "admin-image-cropper__rect",
|
|
28828
28834
|
style: Ve({ left: b.value.x + "px", top: b.value.y + "px", width: b.value.w + "px", height: b.value.h + "px" }),
|
|
@@ -28846,7 +28852,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28846
28852
|
}, null, 32)
|
|
28847
28853
|
], 36)
|
|
28848
28854
|
], 4),
|
|
28849
|
-
u("div",
|
|
28855
|
+
u("div", lV, [
|
|
28850
28856
|
w(n(oe), {
|
|
28851
28857
|
variant: "primary",
|
|
28852
28858
|
size: "sm",
|
|
@@ -28872,16 +28878,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28872
28878
|
_: 1
|
|
28873
28879
|
}, 8, ["disabled"])
|
|
28874
28880
|
])
|
|
28875
|
-
])) : l.value ? (c(), h("div",
|
|
28881
|
+
])) : l.value ? (c(), h("div", rV, [
|
|
28876
28882
|
u("img", {
|
|
28877
28883
|
src: l.value.url,
|
|
28878
28884
|
alt: l.value.name,
|
|
28879
28885
|
class: "admin-image-cropper__preview-img"
|
|
28880
|
-
}, null, 8,
|
|
28881
|
-
u("div",
|
|
28882
|
-
u("div",
|
|
28883
|
-
u("div",
|
|
28884
|
-
u("div",
|
|
28886
|
+
}, null, 8, dV),
|
|
28887
|
+
u("div", sV, [
|
|
28888
|
+
u("div", hV, y(l.value.name), 1),
|
|
28889
|
+
u("div", uV, y(l.value.mime) + " · " + y((l.value.size / 1024).toFixed(1)) + " KB", 1),
|
|
28890
|
+
u("div", yV, [
|
|
28885
28891
|
w(n(oe), {
|
|
28886
28892
|
variant: "ghost",
|
|
28887
28893
|
size: "sm",
|
|
@@ -28907,24 +28913,24 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28907
28913
|
])
|
|
28908
28914
|
])
|
|
28909
28915
|
])) : H("", !0),
|
|
28910
|
-
a.help && !d.value ? (c(), h("p",
|
|
28911
|
-
d.value ? (c(), h("p",
|
|
28916
|
+
a.help && !d.value ? (c(), h("p", pV, y(a.help), 1)) : H("", !0),
|
|
28917
|
+
d.value ? (c(), h("p", kV, y(d.value), 1)) : H("", !0)
|
|
28912
28918
|
]));
|
|
28913
28919
|
}
|
|
28914
|
-
}),
|
|
28920
|
+
}), gV = /* @__PURE__ */ a1(fV, [["__scopeId", "data-v-f528da4d"]]), MV = {
|
|
28915
28921
|
key: 0,
|
|
28916
28922
|
class: "uid-form-field__label"
|
|
28917
|
-
},
|
|
28923
|
+
}, IV = {
|
|
28918
28924
|
key: 0,
|
|
28919
28925
|
class: "uid-form-field__required",
|
|
28920
28926
|
"aria-hidden": "true"
|
|
28921
|
-
},
|
|
28927
|
+
}, wV = { class: "admin-keyvalue__rows" }, xV = { class: "admin-keyvalue__head" }, bV = ["id"], LV = ["value"], CV = {
|
|
28922
28928
|
key: 2,
|
|
28923
28929
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
28924
|
-
},
|
|
28930
|
+
}, _V = {
|
|
28925
28931
|
key: 3,
|
|
28926
28932
|
class: "uid-form-field__hint"
|
|
28927
|
-
},
|
|
28933
|
+
}, SV = /* @__PURE__ */ ne({
|
|
28928
28934
|
__name: "KeyValueField",
|
|
28929
28935
|
props: {
|
|
28930
28936
|
name: {},
|
|
@@ -28970,12 +28976,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28970
28976
|
return (k, g) => (c(), h("div", {
|
|
28971
28977
|
class: fe(["uid-form-field admin-keyvalue", { "uid-form-field--error": !!p.value }])
|
|
28972
28978
|
}, [
|
|
28973
|
-
a.label ? (c(), h("label",
|
|
28979
|
+
a.label ? (c(), h("label", MV, [
|
|
28974
28980
|
D(y(a.label), 1),
|
|
28975
|
-
a.required ? (c(), h("span",
|
|
28981
|
+
a.required ? (c(), h("span", IV, "*")) : H("", !0)
|
|
28976
28982
|
])) : H("", !0),
|
|
28977
|
-
u("div",
|
|
28978
|
-
u("div",
|
|
28983
|
+
u("div", wV, [
|
|
28984
|
+
u("div", xV, [
|
|
28979
28985
|
u("span", null, y(n(v)(a.keyLabel)), 1),
|
|
28980
28986
|
u("span", null, y(n(v)(a.valueLabel)), 1),
|
|
28981
28987
|
g[0] || (g[0] = u("span", null, null, -1))
|
|
@@ -29020,8 +29026,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29020
29026
|
(c(!0), h(X, null, ee(a.allowedKeys, (b) => (c(), h("option", {
|
|
29021
29027
|
key: b,
|
|
29022
29028
|
value: b
|
|
29023
|
-
}, null, 8,
|
|
29024
|
-
], 8,
|
|
29029
|
+
}, null, 8, LV))), 128))
|
|
29030
|
+
], 8, bV)) : H("", !0)
|
|
29025
29031
|
]),
|
|
29026
29032
|
a.addable ? (c(), z(n(oe), {
|
|
29027
29033
|
key: 1,
|
|
@@ -29041,10 +29047,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29041
29047
|
]),
|
|
29042
29048
|
_: 1
|
|
29043
29049
|
})) : H("", !0),
|
|
29044
|
-
p.value ? (c(), h("p",
|
|
29050
|
+
p.value ? (c(), h("p", CV, y(p.value), 1)) : a.help ? (c(), h("p", _V, y(a.help), 1)) : H("", !0)
|
|
29045
29051
|
], 2));
|
|
29046
29052
|
}
|
|
29047
|
-
}),
|
|
29053
|
+
}), qV = /* @__PURE__ */ a1(SV, [["__scopeId", "data-v-e0d5df59"]]), AV = { class: "admin-nested-fields" }, zV = /* @__PURE__ */ ne({
|
|
29048
29054
|
__name: "NestedFieldsGroup",
|
|
29049
29055
|
props: {
|
|
29050
29056
|
fields: {},
|
|
@@ -29057,27 +29063,27 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29057
29063
|
d,
|
|
29058
29064
|
() => l("update:modelValue", { ...d }),
|
|
29059
29065
|
{ deep: !0 }
|
|
29060
|
-
), (i, s) => (c(), h("div",
|
|
29066
|
+
), (i, s) => (c(), h("div", AV, [
|
|
29061
29067
|
(c(!0), h(X, null, ee(a.fields, (r) => (c(), z(vI, {
|
|
29062
29068
|
key: r.name,
|
|
29063
29069
|
node: r
|
|
29064
29070
|
}, null, 8, ["node"]))), 128))
|
|
29065
29071
|
]));
|
|
29066
29072
|
}
|
|
29067
|
-
}), fw = /* @__PURE__ */ a1(
|
|
29073
|
+
}), fw = /* @__PURE__ */ a1(zV, [["__scopeId", "data-v-fdba98be"]]), HV = {
|
|
29068
29074
|
key: 0,
|
|
29069
29075
|
class: "uid-form-field__label"
|
|
29070
|
-
},
|
|
29076
|
+
}, VV = {
|
|
29071
29077
|
key: 0,
|
|
29072
29078
|
class: "uid-form-field__required",
|
|
29073
29079
|
"aria-hidden": "true"
|
|
29074
|
-
},
|
|
29080
|
+
}, PV = { class: "admin-repeater__item-hd" }, FV = { class: "admin-repeater__item-no" }, jV = { class: "admin-repeater__item-actions" }, DV = {
|
|
29075
29081
|
key: 2,
|
|
29076
29082
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29077
|
-
},
|
|
29083
|
+
}, BV = {
|
|
29078
29084
|
key: 3,
|
|
29079
29085
|
class: "uid-form-field__hint"
|
|
29080
|
-
},
|
|
29086
|
+
}, RV = /* @__PURE__ */ ne({
|
|
29081
29087
|
__name: "RepeaterField",
|
|
29082
29088
|
props: {
|
|
29083
29089
|
name: {},
|
|
@@ -29133,9 +29139,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29133
29139
|
return (C, I) => (c(), h("div", {
|
|
29134
29140
|
class: fe(["uid-form-field admin-repeater", { "uid-form-field--error": !!b.value }])
|
|
29135
29141
|
}, [
|
|
29136
|
-
a.label ? (c(), h("label",
|
|
29142
|
+
a.label ? (c(), h("label", HV, [
|
|
29137
29143
|
D(y(a.label), 1),
|
|
29138
|
-
a.required ? (c(), h("span",
|
|
29144
|
+
a.required ? (c(), h("span", VV, "*")) : H("", !0)
|
|
29139
29145
|
])) : H("", !0),
|
|
29140
29146
|
(c(!0), h(X, null, ee(d.value, (L, f) => (c(), z(n(we), {
|
|
29141
29147
|
key: f,
|
|
@@ -29143,9 +29149,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29143
29149
|
class: "admin-repeater__item"
|
|
29144
29150
|
}, {
|
|
29145
29151
|
default: x(() => [
|
|
29146
|
-
u("header",
|
|
29147
|
-
u("span",
|
|
29148
|
-
u("span",
|
|
29152
|
+
u("header", PV, [
|
|
29153
|
+
u("span", FV, "#" + y(f + 1), 1),
|
|
29154
|
+
u("span", jV, [
|
|
29149
29155
|
a.reorderable ? (c(), z(n(oe), {
|
|
29150
29156
|
key: 0,
|
|
29151
29157
|
variant: "ghost",
|
|
@@ -29221,26 +29227,26 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29221
29227
|
]),
|
|
29222
29228
|
_: 1
|
|
29223
29229
|
})) : H("", !0),
|
|
29224
|
-
b.value ? (c(), h("p",
|
|
29230
|
+
b.value ? (c(), h("p", DV, y(b.value), 1)) : a.help ? (c(), h("p", BV, y(a.help), 1)) : H("", !0)
|
|
29225
29231
|
], 2));
|
|
29226
29232
|
}
|
|
29227
|
-
}),
|
|
29233
|
+
}), $V = /* @__PURE__ */ a1(RV, [["__scopeId", "data-v-8b51df90"]]), TV = {
|
|
29228
29234
|
key: 0,
|
|
29229
29235
|
class: "uid-form-field__label"
|
|
29230
|
-
},
|
|
29236
|
+
}, UV = {
|
|
29231
29237
|
key: 0,
|
|
29232
29238
|
class: "uid-form-field__required",
|
|
29233
29239
|
"aria-hidden": "true"
|
|
29234
|
-
},
|
|
29240
|
+
}, OV = { class: "admin-builder__block-hd" }, EV = { class: "admin-builder__block-type" }, ZV = { class: "admin-builder__block-actions" }, WV = {
|
|
29235
29241
|
key: 1,
|
|
29236
29242
|
class: "uid-form-field__hint"
|
|
29237
|
-
},
|
|
29243
|
+
}, GV = {
|
|
29238
29244
|
key: 2,
|
|
29239
29245
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29240
|
-
},
|
|
29246
|
+
}, NV = {
|
|
29241
29247
|
key: 3,
|
|
29242
29248
|
class: "uid-form-field__hint"
|
|
29243
|
-
},
|
|
29249
|
+
}, XV = /* @__PURE__ */ ne({
|
|
29244
29250
|
__name: "BuilderField",
|
|
29245
29251
|
props: {
|
|
29246
29252
|
name: {},
|
|
@@ -29292,9 +29298,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29292
29298
|
return (I, L) => (c(), h("div", {
|
|
29293
29299
|
class: fe(["uid-form-field admin-builder", { "uid-form-field--error": !!C.value }])
|
|
29294
29300
|
}, [
|
|
29295
|
-
a.label ? (c(), h("label",
|
|
29301
|
+
a.label ? (c(), h("label", TV, [
|
|
29296
29302
|
D(y(a.label), 1),
|
|
29297
|
-
a.required ? (c(), h("span",
|
|
29303
|
+
a.required ? (c(), h("span", UV, "*")) : H("", !0)
|
|
29298
29304
|
])) : H("", !0),
|
|
29299
29305
|
(c(!0), h(X, null, ee(d.value, (f, S) => (c(), z(n(we), {
|
|
29300
29306
|
key: S,
|
|
@@ -29302,9 +29308,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29302
29308
|
class: "admin-builder__block"
|
|
29303
29309
|
}, {
|
|
29304
29310
|
default: x(() => [
|
|
29305
|
-
u("header",
|
|
29306
|
-
u("span",
|
|
29307
|
-
u("span",
|
|
29311
|
+
u("header", OV, [
|
|
29312
|
+
u("span", EV, y(b(f.type)?.label ?? f.type), 1),
|
|
29313
|
+
u("span", ZV, [
|
|
29308
29314
|
a.reorderable ? (c(), z(n(oe), {
|
|
29309
29315
|
key: 0,
|
|
29310
29316
|
variant: "ghost",
|
|
@@ -29358,7 +29364,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29358
29364
|
fields: b(f.type).fields,
|
|
29359
29365
|
"model-value": f.data,
|
|
29360
29366
|
"onUpdate:modelValue": (Z) => g(S, Z)
|
|
29361
|
-
}, null, 8, ["fields", "model-value", "onUpdate:modelValue"])) : (c(), h("p",
|
|
29367
|
+
}, null, 8, ["fields", "model-value", "onUpdate:modelValue"])) : (c(), h("p", WV, "Неизвестный тип блока: " + y(f.type), 1))
|
|
29362
29368
|
]),
|
|
29363
29369
|
_: 2
|
|
29364
29370
|
}, 1024))), 128)),
|
|
@@ -29394,16 +29400,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29394
29400
|
]),
|
|
29395
29401
|
_: 1
|
|
29396
29402
|
})) : H("", !0),
|
|
29397
|
-
C.value ? (c(), h("p",
|
|
29403
|
+
C.value ? (c(), h("p", GV, y(C.value), 1)) : a.help ? (c(), h("p", NV, y(a.help), 1)) : H("", !0)
|
|
29398
29404
|
], 2));
|
|
29399
29405
|
}
|
|
29400
|
-
}),
|
|
29406
|
+
}), KV = /* @__PURE__ */ a1(XV, [["__scopeId", "data-v-b8372057"]]), JV = { class: "uid-form-field admin-relation-table" }, YV = {
|
|
29401
29407
|
key: 0,
|
|
29402
29408
|
class: "uid-form-field__label"
|
|
29403
|
-
},
|
|
29409
|
+
}, QV = {
|
|
29404
29410
|
key: 1,
|
|
29405
29411
|
class: "uid-form-field__hint"
|
|
29406
|
-
},
|
|
29412
|
+
}, eP = /* @__PURE__ */ ne({
|
|
29407
29413
|
__name: "RelationTableField",
|
|
29408
29414
|
props: {
|
|
29409
29415
|
name: {},
|
|
@@ -29429,8 +29435,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29429
29435
|
width: i.width ?? void 0
|
|
29430
29436
|
}))
|
|
29431
29437
|
);
|
|
29432
|
-
return (i, s) => (c(), h("div",
|
|
29433
|
-
a.label ? (c(), h("label",
|
|
29438
|
+
return (i, s) => (c(), h("div", JV, [
|
|
29439
|
+
a.label ? (c(), h("label", YV, y(a.label), 1)) : H("", !0),
|
|
29434
29440
|
w(n(we), { padding: "sm" }, {
|
|
29435
29441
|
default: x(() => [
|
|
29436
29442
|
w(n(Co), {
|
|
@@ -29441,23 +29447,23 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29441
29447
|
]),
|
|
29442
29448
|
_: 1
|
|
29443
29449
|
}),
|
|
29444
|
-
a.help ? (c(), h("p",
|
|
29450
|
+
a.help ? (c(), h("p", QV, y(a.help), 1)) : H("", !0)
|
|
29445
29451
|
]));
|
|
29446
29452
|
}
|
|
29447
|
-
}),
|
|
29453
|
+
}), aP = {
|
|
29448
29454
|
key: 0,
|
|
29449
29455
|
class: "uid-form-field__label"
|
|
29450
|
-
},
|
|
29456
|
+
}, tP = {
|
|
29451
29457
|
key: 0,
|
|
29452
29458
|
class: "uid-form-field__required",
|
|
29453
29459
|
"aria-hidden": "true"
|
|
29454
|
-
},
|
|
29460
|
+
}, nP = { class: "admin-generated__row" }, oP = {
|
|
29455
29461
|
key: 1,
|
|
29456
29462
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29457
|
-
},
|
|
29463
|
+
}, cP = {
|
|
29458
29464
|
key: 2,
|
|
29459
29465
|
class: "uid-form-field__hint"
|
|
29460
|
-
},
|
|
29466
|
+
}, iP = /* @__PURE__ */ ne({
|
|
29461
29467
|
__name: "GeneratedField",
|
|
29462
29468
|
props: {
|
|
29463
29469
|
name: {},
|
|
@@ -29500,11 +29506,11 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29500
29506
|
), (g, b) => (c(), h("div", {
|
|
29501
29507
|
class: fe(["uid-form-field admin-generated", { "uid-form-field--error": !!i.value }])
|
|
29502
29508
|
}, [
|
|
29503
|
-
a.label ? (c(), h("label",
|
|
29509
|
+
a.label ? (c(), h("label", aP, [
|
|
29504
29510
|
D(y(a.label), 1),
|
|
29505
|
-
a.required ? (c(), h("span",
|
|
29511
|
+
a.required ? (c(), h("span", tP, "*")) : H("", !0)
|
|
29506
29512
|
])) : H("", !0),
|
|
29507
|
-
u("div",
|
|
29513
|
+
u("div", nP, [
|
|
29508
29514
|
w(n(Le), {
|
|
29509
29515
|
"model-value": d.value,
|
|
29510
29516
|
error: i.value,
|
|
@@ -29529,10 +29535,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29529
29535
|
_: 1
|
|
29530
29536
|
}, 8, ["disabled"])) : H("", !0)
|
|
29531
29537
|
]),
|
|
29532
|
-
i.value ? (c(), h("p",
|
|
29538
|
+
i.value ? (c(), h("p", oP, y(i.value), 1)) : a.help ? (c(), h("p", cP, y(a.help), 1)) : H("", !0)
|
|
29533
29539
|
], 2));
|
|
29534
29540
|
}
|
|
29535
|
-
}),
|
|
29541
|
+
}), lP = /* @__PURE__ */ ne({
|
|
29536
29542
|
__name: "ColumnsLayout",
|
|
29537
29543
|
props: {
|
|
29538
29544
|
items: {},
|
|
@@ -29561,16 +29567,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29561
29567
|
_: 1
|
|
29562
29568
|
}, 8, ["cols", "gap"]));
|
|
29563
29569
|
}
|
|
29564
|
-
}),
|
|
29570
|
+
}), rP = {
|
|
29565
29571
|
key: 0,
|
|
29566
29572
|
class: "admin-section__header"
|
|
29567
|
-
},
|
|
29573
|
+
}, dP = {
|
|
29568
29574
|
key: 0,
|
|
29569
29575
|
class: "admin-section__title"
|
|
29570
|
-
},
|
|
29576
|
+
}, sP = {
|
|
29571
29577
|
key: 1,
|
|
29572
29578
|
class: "admin-section__description"
|
|
29573
|
-
},
|
|
29579
|
+
}, hP = { class: "admin-section__body" }, Po = /* @__PURE__ */ ne({
|
|
29574
29580
|
__name: "SectionLayout",
|
|
29575
29581
|
props: {
|
|
29576
29582
|
items: {},
|
|
@@ -29583,11 +29589,11 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29583
29589
|
class: "admin-section"
|
|
29584
29590
|
}, {
|
|
29585
29591
|
default: x(() => [
|
|
29586
|
-
a.title || a.description ? (c(), h("header",
|
|
29587
|
-
a.title ? (c(), h("h3",
|
|
29588
|
-
a.description ? (c(), h("p",
|
|
29592
|
+
a.title || a.description ? (c(), h("header", rP, [
|
|
29593
|
+
a.title ? (c(), h("h3", dP, y(a.title), 1)) : H("", !0),
|
|
29594
|
+
a.description ? (c(), h("p", sP, y(a.description), 1)) : H("", !0)
|
|
29589
29595
|
])) : H("", !0),
|
|
29590
|
-
u("div",
|
|
29596
|
+
u("div", hP, [
|
|
29591
29597
|
(c(!0), h(X, null, ee(a.items, (l, d) => (c(), z(bo, {
|
|
29592
29598
|
key: d,
|
|
29593
29599
|
node: l
|
|
@@ -29597,7 +29603,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29597
29603
|
_: 1
|
|
29598
29604
|
}));
|
|
29599
29605
|
}
|
|
29600
|
-
}),
|
|
29606
|
+
}), uP = /* @__PURE__ */ ne({
|
|
29601
29607
|
__name: "TabsLayout",
|
|
29602
29608
|
props: {
|
|
29603
29609
|
items: {},
|
|
@@ -29645,10 +29651,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29645
29651
|
_: 1
|
|
29646
29652
|
}, 8, ["model-value"]));
|
|
29647
29653
|
}
|
|
29648
|
-
}),
|
|
29654
|
+
}), yP = { class: "admin-embedded-table" }, pP = { class: "admin-embedded-table__toolbar" }, kP = { key: 1 }, mP = ["aria-label", "onClick"], vP = {
|
|
29649
29655
|
key: 4,
|
|
29650
29656
|
class: "admin-embedded-table__draft"
|
|
29651
|
-
},
|
|
29657
|
+
}, 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
29658
|
__name: "EmbeddedResourceTable",
|
|
29653
29659
|
props: {
|
|
29654
29660
|
resource: {},
|
|
@@ -29753,8 +29759,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29753
29759
|
const _ = J[R];
|
|
29754
29760
|
return _ == null ? "" : String(_);
|
|
29755
29761
|
}
|
|
29756
|
-
return (J, R) => (c(), h("div",
|
|
29757
|
-
u("div",
|
|
29762
|
+
return (J, R) => (c(), h("div", yP, [
|
|
29763
|
+
u("div", pP, [
|
|
29758
29764
|
C.value ? (c(), z(n(oe), {
|
|
29759
29765
|
key: 0,
|
|
29760
29766
|
variant: "primary",
|
|
@@ -29821,7 +29827,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29821
29827
|
u("span", null, y(W(U(j), _.key)), 1)
|
|
29822
29828
|
]),
|
|
29823
29829
|
_: 2
|
|
29824
|
-
}, 1032, ["resource-slug", "row-id", "column", "value", "input-type", "options", "row-override", "onSaved"])) : (c(), h("span",
|
|
29830
|
+
}, 1032, ["resource-slug", "row-id", "column", "value", "input-type", "options", "row-override", "onSaved"])) : (c(), h("span", kP, y(W(U(j) ?? {}, _.key)), 1))
|
|
29825
29831
|
])
|
|
29826
29832
|
})),
|
|
29827
29833
|
I.value ? {
|
|
@@ -29837,18 +29843,18 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29837
29843
|
icon: n(Ue),
|
|
29838
29844
|
size: 14
|
|
29839
29845
|
}, null, 8, ["icon"])
|
|
29840
|
-
], 8,
|
|
29846
|
+
], 8, mP)
|
|
29841
29847
|
]),
|
|
29842
29848
|
key: "0"
|
|
29843
29849
|
} : void 0
|
|
29844
29850
|
]), 1032, ["columns", "data", "selectable", "selection"])),
|
|
29845
|
-
m.value !== null ? (c(), h("div",
|
|
29846
|
-
u("div",
|
|
29851
|
+
m.value !== null ? (c(), h("div", vP, [
|
|
29852
|
+
u("div", fP, [
|
|
29847
29853
|
(c(!0), h(X, null, ee(b.value, (_) => (c(), h("div", {
|
|
29848
29854
|
key: _.key,
|
|
29849
29855
|
class: "admin-embedded-table__draft-cell"
|
|
29850
29856
|
}, [
|
|
29851
|
-
u("label",
|
|
29857
|
+
u("label", gP, y(_.label), 1),
|
|
29852
29858
|
f(_.key)?.as === "select" ? (c(), h("select", {
|
|
29853
29859
|
key: 0,
|
|
29854
29860
|
class: "admin-embedded-table__draft-input",
|
|
@@ -29859,17 +29865,17 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29859
29865
|
(c(!0), h(X, null, ee(f(_.key).options, (j, q) => (c(), h("option", {
|
|
29860
29866
|
key: q,
|
|
29861
29867
|
value: q
|
|
29862
|
-
}, y(j), 9,
|
|
29863
|
-
], 40,
|
|
29868
|
+
}, y(j), 9, IP))), 128))
|
|
29869
|
+
], 40, MP)) : (c(), h("input", {
|
|
29864
29870
|
key: 1,
|
|
29865
29871
|
class: "admin-embedded-table__draft-input",
|
|
29866
29872
|
type: f(_.key)?.as === "number" ? "number" : f(_.key)?.as === "date" ? "date" : "text",
|
|
29867
29873
|
value: m.value[_.key] ?? "",
|
|
29868
29874
|
onInput: (j) => te(_.key, j.target.value)
|
|
29869
|
-
}, null, 40,
|
|
29875
|
+
}, null, 40, wP))
|
|
29870
29876
|
]))), 128))
|
|
29871
29877
|
]),
|
|
29872
|
-
u("div",
|
|
29878
|
+
u("div", xP, [
|
|
29873
29879
|
w(n(oe), {
|
|
29874
29880
|
variant: "primary",
|
|
29875
29881
|
size: "sm",
|
|
@@ -29896,7 +29902,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29896
29902
|
])) : H("", !0)
|
|
29897
29903
|
]));
|
|
29898
29904
|
}
|
|
29899
|
-
}),
|
|
29905
|
+
}), LP = /* @__PURE__ */ a1(bP, [["__scopeId", "data-v-17c526a7"]]), CP = /* @__PURE__ */ ne({
|
|
29900
29906
|
__name: "DashboardLayout",
|
|
29901
29907
|
props: {
|
|
29902
29908
|
items: { default: () => [] },
|
|
@@ -29937,14 +29943,14 @@ function Fo(a) {
|
|
|
29937
29943
|
}
|
|
29938
29944
|
});
|
|
29939
29945
|
}
|
|
29940
|
-
function
|
|
29946
|
+
function _P(a) {
|
|
29941
29947
|
for (const [t, o] of Object.entries(a.fields ?? {}))
|
|
29942
|
-
|
|
29948
|
+
bC(t) || xC(t, o);
|
|
29943
29949
|
for (const [t, o] of Object.entries(a.layouts ?? {}))
|
|
29944
|
-
|
|
29950
|
+
CC(t) || LC(t, o);
|
|
29945
29951
|
}
|
|
29946
|
-
function
|
|
29947
|
-
|
|
29952
|
+
function SP() {
|
|
29953
|
+
_P({
|
|
29948
29954
|
fields: {
|
|
29949
29955
|
// Backend Field-классы из dskripchenko/laravel-admin отдают эти fieldType()
|
|
29950
29956
|
// строки. Соответствие см. core/src/Field/{Input,TextArea,Select,...}.php.
|
|
@@ -29963,7 +29969,7 @@ function _P() {
|
|
|
29963
29969
|
// ~7 KB gzip). Host может перебить:
|
|
29964
29970
|
// import { QuillField } from '@dskripchenko/laravel-admin/quill'
|
|
29965
29971
|
// registerField('wysiwyg', QuillField)
|
|
29966
|
-
wysiwyg:
|
|
29972
|
+
wysiwyg: BH,
|
|
29967
29973
|
markdown: Y9,
|
|
29968
29974
|
code: Y9,
|
|
29969
29975
|
number: Q9,
|
|
@@ -29972,7 +29978,7 @@ function _P() {
|
|
|
29972
29978
|
select: n1,
|
|
29973
29979
|
combobox: n1,
|
|
29974
29980
|
radio: n1,
|
|
29975
|
-
tags:
|
|
29981
|
+
tags: IH,
|
|
29976
29982
|
// Translatable: backend Field\TranslatableInput → fieldType()='translatable'.
|
|
29977
29983
|
// Хранит value как Record<locale, string>; UI показывает табы по локалям.
|
|
29978
29984
|
translatable: BI,
|
|
@@ -30001,27 +30007,27 @@ function _P() {
|
|
|
30001
30007
|
"color-picker": m1,
|
|
30002
30008
|
file: RI,
|
|
30003
30009
|
image: RI,
|
|
30004
|
-
image_cropper:
|
|
30010
|
+
image_cropper: gV,
|
|
30005
30011
|
// Составные поля (backlog ROADMAP): рендерились UnknownField.
|
|
30006
|
-
key_value:
|
|
30007
|
-
repeater:
|
|
30008
|
-
"generated-field":
|
|
30009
|
-
builder:
|
|
30010
|
-
relation_table:
|
|
30012
|
+
key_value: qV,
|
|
30013
|
+
repeater: $V,
|
|
30014
|
+
"generated-field": iP,
|
|
30015
|
+
builder: KV,
|
|
30016
|
+
relation_table: eP
|
|
30011
30017
|
},
|
|
30012
30018
|
layouts: {
|
|
30013
30019
|
rows: aI,
|
|
30014
|
-
columns:
|
|
30020
|
+
columns: lP,
|
|
30015
30021
|
section: Po,
|
|
30016
30022
|
block: Po,
|
|
30017
|
-
tabs:
|
|
30023
|
+
tabs: uP,
|
|
30018
30024
|
accordion: Po,
|
|
30019
30025
|
group: aI,
|
|
30020
30026
|
step: Po,
|
|
30021
30027
|
wizard: Po,
|
|
30022
30028
|
// Widgets on an ordinary screen: `Layout\Dashboard::make([...])`.
|
|
30023
|
-
dashboard:
|
|
30024
|
-
"admin.resource-table":
|
|
30029
|
+
dashboard: CP,
|
|
30030
|
+
"admin.resource-table": LP
|
|
30025
30031
|
}
|
|
30026
30032
|
});
|
|
30027
30033
|
}
|
|
@@ -30047,10 +30053,10 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30047
30053
|
class: fe(["admin-infolist-text", a.mono ? "admin-infolist-text--mono" : ""])
|
|
30048
30054
|
}, y(l.value), 3));
|
|
30049
30055
|
}
|
|
30050
|
-
}),
|
|
30056
|
+
}), qP = {
|
|
30051
30057
|
key: 1,
|
|
30052
30058
|
class: "admin-infolist-text"
|
|
30053
|
-
},
|
|
30059
|
+
}, AP = /* @__PURE__ */ ne({
|
|
30054
30060
|
__name: "BadgeEntry",
|
|
30055
30061
|
props: {
|
|
30056
30062
|
name: { default: "" },
|
|
@@ -30077,9 +30083,9 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30077
30083
|
D(y(s.value), 1)
|
|
30078
30084
|
]),
|
|
30079
30085
|
_: 1
|
|
30080
|
-
}, 8, ["variant"])) : (c(), h("span",
|
|
30086
|
+
}, 8, ["variant"])) : (c(), h("span", qP, "—"));
|
|
30081
30087
|
}
|
|
30082
|
-
}),
|
|
30088
|
+
}), zP = { key: 1 }, HP = /* @__PURE__ */ ne({
|
|
30083
30089
|
__name: "IconEntry",
|
|
30084
30090
|
props: {
|
|
30085
30091
|
name: { default: "" },
|
|
@@ -30111,10 +30117,10 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30111
30117
|
size: 14,
|
|
30112
30118
|
class: "admin-infolist-icon__glyph"
|
|
30113
30119
|
}, null, 8, ["icon"])) : H("", !0),
|
|
30114
|
-
s.value ? (c(), h("span",
|
|
30120
|
+
s.value ? (c(), h("span", zP, y(s.value), 1)) : H("", !0)
|
|
30115
30121
|
], 2));
|
|
30116
30122
|
}
|
|
30117
|
-
}),
|
|
30123
|
+
}), VP = {
|
|
30118
30124
|
key: 1,
|
|
30119
30125
|
class: "admin-infolist-text"
|
|
30120
30126
|
}, eI = /* @__PURE__ */ ne({
|
|
@@ -30149,24 +30155,24 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30149
30155
|
}, 1032, ["label"]))), 128))
|
|
30150
30156
|
]),
|
|
30151
30157
|
_: 1
|
|
30152
|
-
})) : (c(), h("span",
|
|
30158
|
+
})) : (c(), h("span", VP, "—"));
|
|
30153
30159
|
}
|
|
30154
|
-
}),
|
|
30160
|
+
}), PP = { class: "admin-repeatable" }, FP = {
|
|
30155
30161
|
key: 0,
|
|
30156
30162
|
class: "admin-repeatable__lbl"
|
|
30157
|
-
},
|
|
30163
|
+
}, jP = {
|
|
30158
30164
|
key: 1,
|
|
30159
30165
|
class: "admin-repeatable__empty"
|
|
30160
|
-
},
|
|
30166
|
+
}, DP = {
|
|
30161
30167
|
key: 2,
|
|
30162
30168
|
class: "admin-repeatable__tbl"
|
|
30163
|
-
},
|
|
30169
|
+
}, BP = { class: "admin-repeatable__idx" }, RP = {
|
|
30164
30170
|
key: 3,
|
|
30165
30171
|
class: "admin-repeatable__cards"
|
|
30166
|
-
},
|
|
30172
|
+
}, $P = { class: "admin-repeatable__card-hd" }, TP = { class: "admin-repeatable__dl" }, UP = {
|
|
30167
30173
|
key: 4,
|
|
30168
30174
|
class: "admin-repeatable__inline"
|
|
30169
|
-
},
|
|
30175
|
+
}, OP = /* @__PURE__ */ ne({
|
|
30170
30176
|
__name: "RepeatableEntry",
|
|
30171
30177
|
props: {
|
|
30172
30178
|
name: { default: "" },
|
|
@@ -30204,9 +30210,9 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30204
30210
|
name: r.name
|
|
30205
30211
|
};
|
|
30206
30212
|
}
|
|
30207
|
-
return (r, p) => (c(), h("div",
|
|
30208
|
-
a.label ? (c(), h("span",
|
|
30209
|
-
l.value.length === 0 ? (c(), h("p",
|
|
30213
|
+
return (r, p) => (c(), h("div", PP, [
|
|
30214
|
+
a.label ? (c(), h("span", FP, y(a.label), 1)) : H("", !0),
|
|
30215
|
+
l.value.length === 0 ? (c(), h("p", jP, y(a.placeholder), 1)) : a.layout === "columns" ? (c(), h("table", DP, [
|
|
30210
30216
|
u("thead", null, [
|
|
30211
30217
|
u("tr", null, [
|
|
30212
30218
|
p[0] || (p[0] = u("th", { class: "admin-repeatable__idx" }, "#", -1)),
|
|
@@ -30217,7 +30223,7 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30217
30223
|
]),
|
|
30218
30224
|
u("tbody", null, [
|
|
30219
30225
|
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("tr", { key: k }, [
|
|
30220
|
-
u("td",
|
|
30226
|
+
u("td", BP, y(k + 1), 1),
|
|
30221
30227
|
(c(!0), h(X, null, ee(a.entries, (g) => (c(), h("td", {
|
|
30222
30228
|
key: g.name
|
|
30223
30229
|
}, [
|
|
@@ -30225,13 +30231,13 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30225
30231
|
]))), 128))
|
|
30226
30232
|
]))), 128))
|
|
30227
30233
|
])
|
|
30228
|
-
])) : a.layout === "rows" ? (c(), h("div",
|
|
30234
|
+
])) : a.layout === "rows" ? (c(), h("div", RP, [
|
|
30229
30235
|
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("article", {
|
|
30230
30236
|
key: k,
|
|
30231
30237
|
class: "admin-repeatable__card"
|
|
30232
30238
|
}, [
|
|
30233
|
-
u("header",
|
|
30234
|
-
u("dl",
|
|
30239
|
+
u("header", $P, "#" + y(k + 1), 1),
|
|
30240
|
+
u("dl", TP, [
|
|
30235
30241
|
(c(!0), h(X, null, ee(a.entries, (g) => (c(), h(X, {
|
|
30236
30242
|
key: g.name
|
|
30237
30243
|
}, [
|
|
@@ -30242,7 +30248,7 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30242
30248
|
], 64))), 128))
|
|
30243
30249
|
])
|
|
30244
30250
|
]))), 128))
|
|
30245
|
-
])) : (c(), h("div",
|
|
30251
|
+
])) : (c(), h("div", UP, [
|
|
30246
30252
|
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("span", {
|
|
30247
30253
|
key: k,
|
|
30248
30254
|
class: "admin-repeatable__chip"
|
|
@@ -30256,17 +30262,17 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30256
30262
|
]));
|
|
30257
30263
|
}
|
|
30258
30264
|
});
|
|
30259
|
-
function
|
|
30260
|
-
|
|
30265
|
+
function EP() {
|
|
30266
|
+
JS({
|
|
30261
30267
|
// Дефолтные типы infolist (BadgeEntry::make() и т.п.).
|
|
30262
30268
|
text: ge,
|
|
30263
|
-
badge:
|
|
30264
|
-
icon:
|
|
30269
|
+
badge: AP,
|
|
30270
|
+
icon: HP,
|
|
30265
30271
|
keyvalue: eI,
|
|
30266
30272
|
key_value: eI,
|
|
30267
30273
|
"key-value": eI,
|
|
30268
30274
|
// Repeatable: коллекция объектов с nested-entries (таблица/cards/inline).
|
|
30269
|
-
repeatable:
|
|
30275
|
+
repeatable: OP,
|
|
30270
30276
|
// Маппинг от backend Field::fieldType() → TextEntry для view-режима.
|
|
30271
30277
|
// Host'ы могут перебить registerInfolistEntry('wysiwyg', WysiwygEntry).
|
|
30272
30278
|
input: ge,
|
|
@@ -30306,34 +30312,34 @@ function OP() {
|
|
|
30306
30312
|
"color-picker": ge
|
|
30307
30313
|
});
|
|
30308
30314
|
}
|
|
30309
|
-
function
|
|
30310
|
-
const o = t.pages ?? {}, l = t.base ??
|
|
30315
|
+
function oj(a, t = {}) {
|
|
30316
|
+
const o = t.pages ?? {}, l = t.base ?? ZP(a.baseUrl) ?? "/admin", d = Kz({
|
|
30311
30317
|
baseURL: a.apiUrl,
|
|
30312
30318
|
csrfToken: a.csrf
|
|
30313
30319
|
});
|
|
30314
30320
|
GI(d);
|
|
30315
|
-
const i = Dw(
|
|
30321
|
+
const i = Dw(Gb), s = Bw();
|
|
30316
30322
|
i.use(s);
|
|
30317
30323
|
const r = a.brand ?? {};
|
|
30318
|
-
i.provide(YI, r),
|
|
30319
|
-
const p =
|
|
30324
|
+
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();
|
|
30325
|
+
const p = sH({
|
|
30320
30326
|
base: l,
|
|
30321
30327
|
history: t.router?.history ?? UI(l),
|
|
30322
30328
|
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 ??
|
|
30329
|
+
login: o.login ?? JC,
|
|
30330
|
+
home: o.home ?? sC,
|
|
30331
|
+
forbidden: o.forbidden ?? yC,
|
|
30332
|
+
notFound: o.notFound ?? mC,
|
|
30333
|
+
profile: o.profile ?? nz,
|
|
30334
|
+
forgotPassword: o.forgotPassword ?? i_,
|
|
30335
|
+
resetPassword: o.resetPassword ?? m_,
|
|
30336
|
+
resourceIndex: o.resourceIndex ?? $S,
|
|
30331
30337
|
resourceCreate: o.resourceCreate ?? PI,
|
|
30332
30338
|
resourceEdit: o.resourceEdit ?? PI,
|
|
30333
|
-
resourceView: o.resourceView ??
|
|
30339
|
+
resourceView: o.resourceView ?? Kq,
|
|
30334
30340
|
dashboard: o.dashboard ?? tw,
|
|
30335
|
-
settings: o.settings ??
|
|
30336
|
-
screen: o.screen ??
|
|
30341
|
+
settings: o.settings ?? IC,
|
|
30342
|
+
screen: o.screen ?? PC
|
|
30337
30343
|
},
|
|
30338
30344
|
extraRoutes: t.router?.extraRoutes,
|
|
30339
30345
|
authGuard: t.router?.authGuard,
|
|
@@ -30353,7 +30359,7 @@ function nj(a, t = {}) {
|
|
|
30353
30359
|
const I = k.params.slug ?? k.meta.slug;
|
|
30354
30360
|
if (I)
|
|
30355
30361
|
try {
|
|
30356
|
-
const { useResourceIndexStore: L } = await Promise.resolve().then(() =>
|
|
30362
|
+
const { useResourceIndexStore: L } = await Promise.resolve().then(() => v_), f = L();
|
|
30357
30363
|
(f.slug !== I || f.items.length === 0) && (f.setSlug(I), await f.load().catch(() => {
|
|
30358
30364
|
}));
|
|
30359
30365
|
} catch {
|
|
@@ -30387,7 +30393,7 @@ function nj(a, t = {}) {
|
|
|
30387
30393
|
}
|
|
30388
30394
|
return t.onAppCreated?.(i), { app: i, router: p, client: d };
|
|
30389
30395
|
}
|
|
30390
|
-
function
|
|
30396
|
+
function ZP(a) {
|
|
30391
30397
|
if (!a) return null;
|
|
30392
30398
|
try {
|
|
30393
30399
|
return new URL(a).pathname || "/admin";
|
|
@@ -30395,23 +30401,23 @@ function EP(a) {
|
|
|
30395
30401
|
return a.startsWith("/") ? a : null;
|
|
30396
30402
|
}
|
|
30397
30403
|
}
|
|
30398
|
-
function
|
|
30404
|
+
function WP(a) {
|
|
30399
30405
|
if (typeof document > "u" || !a) return;
|
|
30400
30406
|
let t = document.querySelector('link[rel~="icon"]');
|
|
30401
30407
|
t === null && (t = document.createElement("link"), t.rel = "icon", document.head.appendChild(t)), t.href = a;
|
|
30402
30408
|
}
|
|
30403
|
-
const
|
|
30409
|
+
const GP = { class: "admin-status-page" }, NP = { class: "admin-status-page__title" }, XP = { class: "admin-status-page__hint" }, cj = /* @__PURE__ */ ne({
|
|
30404
30410
|
__name: "UnknownScreenPage",
|
|
30405
30411
|
setup(a) {
|
|
30406
30412
|
const t = l1(), o = M(() => String(t.params.slug ?? "")), l = M(() => String(t.meta?.title ?? o.value));
|
|
30407
|
-
return (d, i) => (c(), h("div",
|
|
30413
|
+
return (d, i) => (c(), h("div", GP, [
|
|
30408
30414
|
w(n(we), {
|
|
30409
30415
|
padding: "lg",
|
|
30410
30416
|
class: "admin-status-page__card"
|
|
30411
30417
|
}, {
|
|
30412
30418
|
default: x(() => [
|
|
30413
|
-
u("h1",
|
|
30414
|
-
u("p",
|
|
30419
|
+
u("h1", NP, y(l.value), 1),
|
|
30420
|
+
u("p", XP, [
|
|
30415
30421
|
D(" Это заглушка для screen «" + y(o.value) + "». Передайте свой компонент через ", 1),
|
|
30416
30422
|
i[0] || (i[0] = u("code", null, "createAdminApp(" + y("{") + " pages: " + y("{") + " screen: MyScreen " + y("}") + " " + y("}") + ")", -1)),
|
|
30417
30423
|
i[1] || (i[1] = D(". ", -1))
|
|
@@ -30422,8 +30428,8 @@ const WP = { class: "admin-status-page" }, GP = { class: "admin-status-page__tit
|
|
|
30422
30428
|
]));
|
|
30423
30429
|
}
|
|
30424
30430
|
});
|
|
30425
|
-
async function
|
|
30426
|
-
const t =
|
|
30431
|
+
async function ij(a = {}) {
|
|
30432
|
+
const t = KP();
|
|
30427
30433
|
if (t)
|
|
30428
30434
|
return t;
|
|
30429
30435
|
if (a.client)
|
|
@@ -30437,31 +30443,31 @@ async function cj(a = {}) {
|
|
|
30437
30443
|
}
|
|
30438
30444
|
return null;
|
|
30439
30445
|
}
|
|
30440
|
-
function
|
|
30446
|
+
function KP() {
|
|
30441
30447
|
return typeof window > "u" ? null : window.__ADMIN_BOOTSTRAP__ ?? null;
|
|
30442
30448
|
}
|
|
30443
|
-
function
|
|
30449
|
+
function lj() {
|
|
30444
30450
|
return typeof document > "u" ? null : document.querySelector('meta[name="csrf-token"]')?.getAttribute("content") ?? null;
|
|
30445
30451
|
}
|
|
30446
|
-
const
|
|
30452
|
+
const JP = { class: "admin-notifs__hd" }, YP = { class: "admin-notifs__title" }, QP = {
|
|
30447
30453
|
key: 0,
|
|
30448
30454
|
class: "admin-notifs__count"
|
|
30449
|
-
},
|
|
30455
|
+
}, eF = { class: "admin-notifs__list" }, aF = {
|
|
30450
30456
|
key: 0,
|
|
30451
30457
|
class: "admin-notifs__empty"
|
|
30452
|
-
},
|
|
30458
|
+
}, tF = {
|
|
30453
30459
|
key: 1,
|
|
30454
30460
|
class: "admin-notifs__empty"
|
|
30455
|
-
},
|
|
30461
|
+
}, nF = ["onClick"], oF = ["data-kind"], cF = { class: "admin-notifs__body" }, iF = { class: "admin-notifs__row1" }, lF = {
|
|
30456
30462
|
key: 0,
|
|
30457
30463
|
class: "admin-notifs__title-strong"
|
|
30458
|
-
},
|
|
30464
|
+
}, rF = {
|
|
30459
30465
|
key: 1,
|
|
30460
30466
|
class: "admin-notifs__title-soft"
|
|
30461
|
-
},
|
|
30467
|
+
}, dF = { class: "admin-notifs__time" }, sF = {
|
|
30462
30468
|
key: 0,
|
|
30463
30469
|
class: "admin-notifs__text"
|
|
30464
|
-
},
|
|
30470
|
+
}, hF = ["aria-label", "onClick"], rj = /* @__PURE__ */ ne({
|
|
30465
30471
|
__name: "NotificationsDrawer",
|
|
30466
30472
|
props: {
|
|
30467
30473
|
open: { type: Boolean }
|
|
@@ -30525,10 +30531,10 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30525
30531
|
"onUpdate:modelValue": i
|
|
30526
30532
|
}, {
|
|
30527
30533
|
header: x(() => [
|
|
30528
|
-
u("div",
|
|
30529
|
-
u("h2",
|
|
30534
|
+
u("div", JP, [
|
|
30535
|
+
u("h2", YP, [
|
|
30530
30536
|
D(y(n(v)("Уведомления")) + " ", 1),
|
|
30531
|
-
n(d).unreadCount > 0 ? (c(), h("span",
|
|
30537
|
+
n(d).unreadCount > 0 ? (c(), h("span", QP, " (" + y(n(d).unreadCount) + ") ", 1)) : H("", !0)
|
|
30532
30538
|
]),
|
|
30533
30539
|
n(d).unreadCount > 0 ? (c(), z(n(oe), {
|
|
30534
30540
|
key: 0,
|
|
@@ -30577,8 +30583,8 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30577
30583
|
value: S
|
|
30578
30584
|
}, {
|
|
30579
30585
|
default: x(() => [
|
|
30580
|
-
u("ul",
|
|
30581
|
-
n(d).loading ? (c(), h("li",
|
|
30586
|
+
u("ul", eF, [
|
|
30587
|
+
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
30588
|
(c(!0), h(X, null, ee(n(d).items, (Z) => (c(), h("li", {
|
|
30583
30589
|
key: Z.id,
|
|
30584
30590
|
class: fe([
|
|
@@ -30591,21 +30597,21 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30591
30597
|
u("span", {
|
|
30592
30598
|
class: "admin-notifs__icon",
|
|
30593
30599
|
"data-kind": g(Z)
|
|
30594
|
-
}, null, 8,
|
|
30595
|
-
u("div",
|
|
30596
|
-
u("div",
|
|
30597
|
-
Z.read_at ? (c(), h("span",
|
|
30598
|
-
u("span",
|
|
30600
|
+
}, null, 8, oF),
|
|
30601
|
+
u("div", cF, [
|
|
30602
|
+
u("div", iF, [
|
|
30603
|
+
Z.read_at ? (c(), h("span", rF, y(b(Z)), 1)) : (c(), h("strong", lF, y(b(Z)), 1)),
|
|
30604
|
+
u("span", dF, y(I(Z.created_at)), 1)
|
|
30599
30605
|
]),
|
|
30600
|
-
C(Z) ? (c(), h("p",
|
|
30606
|
+
C(Z) ? (c(), h("p", sF, y(C(Z)), 1)) : H("", !0)
|
|
30601
30607
|
]),
|
|
30602
30608
|
u("button", {
|
|
30603
30609
|
type: "button",
|
|
30604
30610
|
class: "admin-notifs__close",
|
|
30605
30611
|
"aria-label": n(v)("Удалить"),
|
|
30606
30612
|
onClick: (U) => k(Z, U)
|
|
30607
|
-
}, " × ", 8,
|
|
30608
|
-
], 10,
|
|
30613
|
+
}, " × ", 8, hF)
|
|
30614
|
+
], 10, nF))), 128))
|
|
30609
30615
|
])
|
|
30610
30616
|
]),
|
|
30611
30617
|
_: 1
|
|
@@ -30617,22 +30623,22 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30617
30623
|
_: 1
|
|
30618
30624
|
}, 8, ["model-value", "title"]));
|
|
30619
30625
|
}
|
|
30620
|
-
}),
|
|
30626
|
+
}), 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
30627
|
key: 0,
|
|
30622
30628
|
class: "admin-import-wizard__empty"
|
|
30623
|
-
},
|
|
30629
|
+
}, MF = {
|
|
30624
30630
|
key: 1,
|
|
30625
30631
|
class: "admin-import-wizard__mapping"
|
|
30626
|
-
},
|
|
30632
|
+
}, IF = { class: "admin-import-wizard__map-source" }, wF = {
|
|
30627
30633
|
key: 0,
|
|
30628
30634
|
class: "admin-import-wizard__map-sample"
|
|
30629
|
-
},
|
|
30635
|
+
}, xF = { class: "admin-import-wizard__card-hd" }, bF = {
|
|
30630
30636
|
key: 2,
|
|
30631
30637
|
class: "admin-import-wizard__empty"
|
|
30632
|
-
},
|
|
30638
|
+
}, LF = { class: "admin-import-wizard__card-hd" }, CF = {
|
|
30633
30639
|
key: 0,
|
|
30634
30640
|
class: "admin-import-wizard__empty"
|
|
30635
|
-
},
|
|
30641
|
+
}, _F = { class: "admin-import-wizard__kpi" }, SF = { class: "admin-import-wizard__nav" }, dj = /* @__PURE__ */ ne({
|
|
30636
30642
|
__name: "ImportWizardPage",
|
|
30637
30643
|
props: {
|
|
30638
30644
|
title: { default: "Импорт" },
|
|
@@ -30692,12 +30698,12 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30692
30698
|
function Z() {
|
|
30693
30699
|
l("cancel");
|
|
30694
30700
|
}
|
|
30695
|
-
return (U, V) => (c(), h("section",
|
|
30696
|
-
u("header",
|
|
30697
|
-
u("div",
|
|
30698
|
-
u("h1",
|
|
30701
|
+
return (U, V) => (c(), h("section", uF, [
|
|
30702
|
+
u("header", yF, [
|
|
30703
|
+
u("div", pF, [
|
|
30704
|
+
u("h1", kF, y(n(v)(a.title)), 1)
|
|
30699
30705
|
]),
|
|
30700
|
-
u("div",
|
|
30706
|
+
u("div", mF, [
|
|
30701
30707
|
w(n(oe), {
|
|
30702
30708
|
variant: "ghost",
|
|
30703
30709
|
onClick: Z
|
|
@@ -30719,7 +30725,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30719
30725
|
class: "admin-import-wizard__card"
|
|
30720
30726
|
}, {
|
|
30721
30727
|
default: x(() => [
|
|
30722
|
-
u("header",
|
|
30728
|
+
u("header", vF, [
|
|
30723
30729
|
u("h3", null, y(n(v)("1. Загрузите файл")), 1),
|
|
30724
30730
|
u("p", null, y(n(v)("CSV / TSV / XLSX, до 50 MB")), 1)
|
|
30725
30731
|
]),
|
|
@@ -30740,18 +30746,18 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30740
30746
|
class: "admin-import-wizard__card"
|
|
30741
30747
|
}, {
|
|
30742
30748
|
default: x(() => [
|
|
30743
|
-
u("header",
|
|
30749
|
+
u("header", fF, [
|
|
30744
30750
|
u("h3", null, y(n(v)("2. Сопоставьте колонки")), 1),
|
|
30745
30751
|
u("p", null, y(n(v)("Выберите поле ресурса для каждой колонки файла")), 1)
|
|
30746
30752
|
]),
|
|
30747
|
-
a.headers.length === 0 ? (c(), h("div",
|
|
30753
|
+
a.headers.length === 0 ? (c(), h("div", gF, y(n(v)("Нет данных — host ещё не отдал headers. Загрузите файл сначала.")), 1)) : (c(), h("div", MF, [
|
|
30748
30754
|
(c(!0), h(X, null, ee(a.headers, (T) => (c(), h("div", {
|
|
30749
30755
|
key: T.key,
|
|
30750
30756
|
class: "admin-import-wizard__map-row"
|
|
30751
30757
|
}, [
|
|
30752
|
-
u("div",
|
|
30758
|
+
u("div", IF, [
|
|
30753
30759
|
u("strong", null, y(T.label), 1),
|
|
30754
|
-
T.sample ? (c(), h("span",
|
|
30760
|
+
T.sample ? (c(), h("span", wF, " «" + y(T.sample) + "» ", 1)) : H("", !0)
|
|
30755
30761
|
]),
|
|
30756
30762
|
V[2] || (V[2] = u("span", { class: "admin-import-wizard__map-arrow" }, "→", -1)),
|
|
30757
30763
|
w(n(S9), {
|
|
@@ -30770,7 +30776,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30770
30776
|
class: "admin-import-wizard__card"
|
|
30771
30777
|
}, {
|
|
30772
30778
|
default: x(() => [
|
|
30773
|
-
u("header",
|
|
30779
|
+
u("header", xF, [
|
|
30774
30780
|
u("h3", null, y(n(v)("3. Предпросмотр")), 1),
|
|
30775
30781
|
u("p", null, "Первые " + y(a.preview.length) + " строк перед импортом", 1)
|
|
30776
30782
|
]),
|
|
@@ -30788,7 +30794,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30788
30794
|
key: 1,
|
|
30789
30795
|
columns: a.previewColumns,
|
|
30790
30796
|
data: a.preview
|
|
30791
|
-
}, null, 8, ["columns", "data"])) : (c(), h("div",
|
|
30797
|
+
}, null, 8, ["columns", "data"])) : (c(), h("div", bF, y(n(v)("Host не передал previewColumns/preview.")), 1))
|
|
30792
30798
|
]),
|
|
30793
30799
|
_: 1
|
|
30794
30800
|
})) : (c(), z(n(we), {
|
|
@@ -30797,7 +30803,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30797
30803
|
class: "admin-import-wizard__card"
|
|
30798
30804
|
}, {
|
|
30799
30805
|
default: x(() => [
|
|
30800
|
-
u("header",
|
|
30806
|
+
u("header", LF, [
|
|
30801
30807
|
u("h3", null, y(n(v)("4. Импорт")), 1)
|
|
30802
30808
|
]),
|
|
30803
30809
|
a.progress ? (c(), h(X, { key: 1 }, [
|
|
@@ -30806,7 +30812,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30806
30812
|
"model-value": a.progress.created + a.progress.updated + a.progress.errors,
|
|
30807
30813
|
max: a.progress.total
|
|
30808
30814
|
}, null, 8, ["model-value", "max"])) : H("", !0),
|
|
30809
|
-
u("div",
|
|
30815
|
+
u("div", _F, [
|
|
30810
30816
|
w(n(ic), {
|
|
30811
30817
|
title: n(v)("Создано"),
|
|
30812
30818
|
value: a.progress.created,
|
|
@@ -30823,11 +30829,11 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30823
30829
|
tone: "danger"
|
|
30824
30830
|
}, null, 8, ["title", "value"])
|
|
30825
30831
|
])
|
|
30826
|
-
], 64)) : (c(), h("div",
|
|
30832
|
+
], 64)) : (c(), h("div", CF, y(n(v)("Запускается импорт…")), 1))
|
|
30827
30833
|
]),
|
|
30828
30834
|
_: 1
|
|
30829
30835
|
})),
|
|
30830
|
-
u("footer",
|
|
30836
|
+
u("footer", SF, [
|
|
30831
30837
|
L.value ? (c(), z(n(oe), {
|
|
30832
30838
|
key: 0,
|
|
30833
30839
|
variant: "ghost",
|
|
@@ -30872,7 +30878,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30872
30878
|
])
|
|
30873
30879
|
]));
|
|
30874
30880
|
}
|
|
30875
|
-
}),
|
|
30881
|
+
}), 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
30882
|
__name: "FieldGalleryPage",
|
|
30877
30883
|
setup(a) {
|
|
30878
30884
|
const t = [
|
|
@@ -30939,7 +30945,7 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30939
30945
|
], o = t.reduce((d, i) => (d[i.group] || (d[i.group] = []), d[i.group].push(i), d), {}), l = TI(
|
|
30940
30946
|
t.reduce((d, i) => Object.assign(d, i.initial), {})
|
|
30941
30947
|
);
|
|
30942
|
-
return V9(l), (d, i) => (c(), h("section",
|
|
30948
|
+
return V9(l), (d, i) => (c(), h("section", qF, [
|
|
30943
30949
|
i[0] || (i[0] = u("header", { class: "admin-page__hd" }, [
|
|
30944
30950
|
u("div", { class: "admin-page__title-wrap" }, [
|
|
30945
30951
|
u("h1", { class: "admin-page__title" }, "Field Gallery"),
|
|
@@ -30950,20 +30956,20 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30950
30956
|
key: r,
|
|
30951
30957
|
class: "admin-gallery__group"
|
|
30952
30958
|
}, [
|
|
30953
|
-
u("h2",
|
|
30954
|
-
u("div",
|
|
30959
|
+
u("h2", AF, y(r), 1),
|
|
30960
|
+
u("div", zF, [
|
|
30955
30961
|
(c(!0), h(X, null, ee(s, (p) => (c(), z(n(we), {
|
|
30956
30962
|
key: p.type + p.title,
|
|
30957
30963
|
padding: "md",
|
|
30958
30964
|
class: "admin-gallery__card"
|
|
30959
30965
|
}, {
|
|
30960
30966
|
default: x(() => [
|
|
30961
|
-
u("header",
|
|
30962
|
-
u("h3",
|
|
30963
|
-
u("code",
|
|
30967
|
+
u("header", HF, [
|
|
30968
|
+
u("h3", VF, y(p.title), 1),
|
|
30969
|
+
u("code", PF, "type: " + y(p.type), 1)
|
|
30964
30970
|
]),
|
|
30965
|
-
u("p",
|
|
30966
|
-
u("div",
|
|
30971
|
+
u("p", FF, y(p.description), 1),
|
|
30972
|
+
u("div", jF, [
|
|
30967
30973
|
w(vI, {
|
|
30968
30974
|
node: p.node
|
|
30969
30975
|
}, null, 8, ["node"])
|
|
@@ -30977,108 +30983,108 @@ const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" },
|
|
|
30977
30983
|
}
|
|
30978
30984
|
});
|
|
30979
30985
|
export {
|
|
30980
|
-
|
|
30986
|
+
Gb as AdminApp,
|
|
30981
30987
|
pb as AdminShell,
|
|
30982
30988
|
Yx as AdminSidebar,
|
|
30983
30989
|
Hx as AdminTopBar,
|
|
30984
30990
|
We as ApiError,
|
|
30985
30991
|
YI as BRAND_KEY,
|
|
30986
|
-
|
|
30992
|
+
AP as BadgeEntry,
|
|
30987
30993
|
mw as BarChartWidget,
|
|
30988
30994
|
cc as CheckboxField,
|
|
30989
|
-
|
|
30995
|
+
lP as ColumnsLayout,
|
|
30990
30996
|
tw as DashboardPage,
|
|
30991
30997
|
D1 as DateField,
|
|
30992
30998
|
vw as DonutChartWidget,
|
|
30993
|
-
|
|
30999
|
+
sj as FieldGalleryPage,
|
|
30994
31000
|
vI as FieldRenderer,
|
|
30995
31001
|
bx as ForbiddenError,
|
|
30996
|
-
|
|
30997
|
-
|
|
31002
|
+
yC as ForbiddenPage,
|
|
31003
|
+
Vz as GaugeWidget,
|
|
30998
31004
|
rb as GlobalSearch,
|
|
30999
|
-
|
|
31000
|
-
|
|
31001
|
-
|
|
31002
|
-
|
|
31003
|
-
|
|
31005
|
+
qz as HeatmapWidget,
|
|
31006
|
+
sC as HomePage,
|
|
31007
|
+
HP as IconEntry,
|
|
31008
|
+
dj as ImportWizardPage,
|
|
31009
|
+
hq as InfolistRenderer,
|
|
31004
31010
|
eI as KeyValueEntry,
|
|
31005
31011
|
bo as LayoutRenderer,
|
|
31006
31012
|
XI as LocaleSwitcher,
|
|
31007
|
-
|
|
31008
|
-
|
|
31009
|
-
|
|
31013
|
+
RC as LoginForm,
|
|
31014
|
+
JC as LoginPage,
|
|
31015
|
+
Dz as MarkdownWidget,
|
|
31010
31016
|
F9 as NetworkError,
|
|
31011
31017
|
Lx as NotFoundError,
|
|
31012
|
-
|
|
31018
|
+
mC as NotFoundPage,
|
|
31013
31019
|
xx as NotificationBell,
|
|
31014
|
-
|
|
31020
|
+
rj as NotificationsDrawer,
|
|
31015
31021
|
Q9 as NumberField,
|
|
31016
|
-
|
|
31022
|
+
nz as ProfilePage,
|
|
31017
31023
|
J9 as RecentTableWidget,
|
|
31018
31024
|
PI as ResourceFormPage,
|
|
31019
|
-
|
|
31020
|
-
|
|
31025
|
+
$S as ResourceIndexPage,
|
|
31026
|
+
Kq as ResourceViewPage,
|
|
31021
31027
|
aI as RowsLayout,
|
|
31022
|
-
|
|
31028
|
+
PC as ScreenPage,
|
|
31023
31029
|
Po as SectionLayout,
|
|
31024
31030
|
n1 as SelectField,
|
|
31025
|
-
|
|
31031
|
+
IC as SettingsPage,
|
|
31026
31032
|
DI as StatWidget,
|
|
31027
|
-
|
|
31033
|
+
uP as TabsLayout,
|
|
31028
31034
|
Y9 as TextAreaField,
|
|
31029
31035
|
ge as TextEntry,
|
|
31030
31036
|
m1 as TextField,
|
|
31031
31037
|
NI as ThemeToggle,
|
|
31032
|
-
|
|
31038
|
+
UC as TwoFactorForm,
|
|
31033
31039
|
KI as UnauthenticatedError,
|
|
31034
|
-
|
|
31040
|
+
YS as UnknownEntry,
|
|
31035
31041
|
cw as UnknownField,
|
|
31036
|
-
|
|
31042
|
+
cj as UnknownScreenPage,
|
|
31037
31043
|
ew as UnknownWidget,
|
|
31038
31044
|
_x as UserMenu,
|
|
31039
31045
|
G2 as ValidationError,
|
|
31040
31046
|
aw as WidgetRenderer,
|
|
31041
|
-
|
|
31047
|
+
cH as buildRoutesFromManifest,
|
|
31042
31048
|
vx as clearAdminClient,
|
|
31043
|
-
|
|
31044
|
-
|
|
31045
|
-
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31049
|
+
tj as clearInfolistRegistry,
|
|
31050
|
+
JF as clearRegistry,
|
|
31051
|
+
WF as clearWidgetRegistry,
|
|
31052
|
+
oj as createAdminApp,
|
|
31053
|
+
Kz as createAdminClient,
|
|
31054
|
+
sH as createAdminRouter,
|
|
31055
|
+
iH as createAuthGuard,
|
|
31056
|
+
lH as createTitleGuard,
|
|
31051
31057
|
Me as getAdminClient,
|
|
31052
31058
|
ow as getField,
|
|
31053
31059
|
tI as getInfolistEntry,
|
|
31054
31060
|
CI as getLayout,
|
|
31055
|
-
|
|
31061
|
+
Xb as getWidget,
|
|
31056
31062
|
fx as hasAdminClient,
|
|
31057
|
-
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
|
|
31061
|
-
|
|
31062
|
-
|
|
31063
|
-
|
|
31064
|
-
|
|
31065
|
-
|
|
31066
|
-
|
|
31067
|
-
|
|
31063
|
+
bC as hasField,
|
|
31064
|
+
ej as hasInfolistEntry,
|
|
31065
|
+
CC as hasLayout,
|
|
31066
|
+
Kb as hasWidget,
|
|
31067
|
+
nj as isError,
|
|
31068
|
+
Xz as isSuccess,
|
|
31069
|
+
XF as listFields,
|
|
31070
|
+
aj as listInfolistEntries,
|
|
31071
|
+
KF as listLayouts,
|
|
31072
|
+
Jb as listWidgets,
|
|
31073
|
+
ij as loadBootstrap,
|
|
31068
31074
|
V9 as provideFormState,
|
|
31069
31075
|
nw as provideRecord,
|
|
31070
|
-
|
|
31071
|
-
|
|
31072
|
-
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31078
|
-
|
|
31079
|
-
|
|
31080
|
-
|
|
31081
|
-
|
|
31076
|
+
lj as readCsrfFromMeta,
|
|
31077
|
+
KP as readInlineBootstrap,
|
|
31078
|
+
SP as registerBuiltinComponents,
|
|
31079
|
+
EP as registerBuiltinInfolistEntries,
|
|
31080
|
+
Nz as registerBuiltinWidgets,
|
|
31081
|
+
YF as registerComponents,
|
|
31082
|
+
xC as registerField,
|
|
31083
|
+
JS as registerInfolistEntries,
|
|
31084
|
+
QF as registerInfolistEntry,
|
|
31085
|
+
LC as registerLayout,
|
|
31086
|
+
Nb as registerWidget,
|
|
31087
|
+
GF as registerWidgets,
|
|
31082
31088
|
GI as setAdminClient,
|
|
31083
31089
|
LI as toApiError,
|
|
31084
31090
|
hx as tryUseFormState,
|
|
@@ -31090,7 +31096,7 @@ export {
|
|
|
31090
31096
|
Ee as useManifestStore,
|
|
31091
31097
|
j9 as useMenuStore,
|
|
31092
31098
|
P9 as useNotificationsStore,
|
|
31093
|
-
|
|
31099
|
+
NF as useRecord,
|
|
31094
31100
|
fI as useResourceFormStore,
|
|
31095
31101
|
iw as useResourceIndexStore,
|
|
31096
31102
|
pI as useThemeStore
|