@opengis/admin 0.1.67 → 0.1.69
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-DN0s3TF_.js → IconChevronDown-D29D5cN_.js} +1 -1
- package/dist/add-page-w-DxgCiS.js +97 -0
- package/dist/{admin-interface-DUuz9KgB.js → admin-interface-DA_PeVj7.js} +265 -240
- package/dist/{admin-view-MSa57inW.js → admin-view-DrOVwYHu.js} +198 -188
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +48 -48
- package/dist/{card-page-B1zuuqAR.js → card-page-Pw97vvNR.js} +19 -19
- package/dist/{card-view-Bzt2AvI2.js → card-view-eMucbOjz.js} +1 -1
- package/dist/edit-page-DqEf35J2.js +101 -0
- package/dist/{import-file-B80Ws8by.js → import-file-z-nSvLVJ.js} +255 -244
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/server/plugins/hook.js +11 -44
- package/server/routes/calendar/index.mjs +2 -12
- package/server/routes/calendar/schema.js +22 -0
- package/server/routes/data/controllers/tableData.js +5 -107
- package/server/routes/data/index.mjs +4 -4
- package/server/routes/data/schema.js +49 -2
- package/server/routes/menu/controllers/getMenu.js +3 -1
- package/server/routes/menu/schema.js +0 -0
- package/server/routes/notifications/controllers/readNotifications.js +7 -14
- package/server/routes/notifications/controllers/userNotifications.js +15 -22
- package/server/routes/notifications/index.mjs +5 -30
- package/server/routes/notifications/schema.js +11 -0
- package/server/routes/properties/index.mjs +6 -18
- package/server/routes/properties/schema.js +11 -0
- package/server/routes/templates/scheme.js +9 -0
- package/dist/add-page-Cm4aSGoA.js +0 -92
- package/dist/edit-page-DoY4S7v6.js +0 -103
@@ -1,4 +1,4 @@
|
|
1
|
-
import { resolveComponent as
|
1
|
+
import { resolveComponent as Rt, openBlock as Ee, createBlock as gn, shallowRef as CE, unref as nc, shallowReactive as EE, inject as _c, nextTick as gS, defineComponent as ro, reactive as AE, computed as Ks, h as kc, provide as Ay, ref as Rs, watch as T_, getCurrentInstance as M_, watchEffect as yS, createElementBlock as Re, createElementVNode as Y, withCtx as on, normalizeClass as ca, toDisplayString as It, renderSlot as _S, withDirectives as sm, vModelText as vS, createCommentVNode as Ls, Fragment as yn, renderList as Cr, normalizeStyle as pa, vModelCheckbox as PE, vShow as IE, createVNode as ii, createTextVNode as Ys, createStaticVNode as C_, onMounted as E_, withModifiers as wb, onBeforeUnmount as A_, markRaw as DE, customRef as OE, resolveDynamicComponent as zE } from "vue";
|
2
2
|
function xS(t, e) {
|
3
3
|
return function() {
|
4
4
|
return t.apply(e, arguments);
|
@@ -1680,37 +1680,37 @@ function US(t) {
|
|
1680
1680
|
return US(vc(t, r));
|
1681
1681
|
}, i;
|
1682
1682
|
}
|
1683
|
-
const
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1683
|
+
const zt = US(up);
|
1684
|
+
zt.Axios = cc;
|
1685
|
+
zt.CanceledError = sh;
|
1686
|
+
zt.CancelToken = z_;
|
1687
|
+
zt.isCancel = RS;
|
1688
|
+
zt.VERSION = jS;
|
1689
|
+
zt.toFormData = Nm;
|
1690
|
+
zt.AxiosError = Gt;
|
1691
|
+
zt.Cancel = zt.CanceledError;
|
1692
|
+
zt.all = function(e) {
|
1693
1693
|
return Promise.all(e);
|
1694
1694
|
};
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
const
|
1695
|
+
zt.spread = lP;
|
1696
|
+
zt.isAxiosError = cP;
|
1697
|
+
zt.mergeConfig = vc;
|
1698
|
+
zt.AxiosHeaders = Gr;
|
1699
|
+
zt.formToJSON = (t) => zS(Pe.isHTMLForm(t) ? new FormData(t) : t);
|
1700
|
+
zt.getAdapter = VS.getAdapter;
|
1701
|
+
zt.HttpStatusCode = O0;
|
1702
|
+
zt.default = zt;
|
1703
|
+
const Ft = (t, e) => {
|
1704
1704
|
const i = t.__vccOpts || t;
|
1705
1705
|
for (const [n, r] of e)
|
1706
1706
|
i[n] = r;
|
1707
1707
|
return i;
|
1708
1708
|
}, uP = {};
|
1709
1709
|
function hP(t, e, i, n, r, l) {
|
1710
|
-
const u =
|
1710
|
+
const u = Rt("router-view");
|
1711
1711
|
return Ee(), gn(u);
|
1712
1712
|
}
|
1713
|
-
const dP = /* @__PURE__ */
|
1713
|
+
const dP = /* @__PURE__ */ Ft(uP, [["render", hP]]);
|
1714
1714
|
function pP() {
|
1715
1715
|
return HS().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
1716
1716
|
}
|
@@ -3590,17 +3590,17 @@ function KH(t) {
|
|
3590
3590
|
}
|
3591
3591
|
const $I = [
|
3592
3592
|
// { name: 'profile', path: '/profile', component: () => import('../components/profile/vs-profile.vue') },
|
3593
|
-
{ name: "edit", path: "/edit", component: () => import("./edit-page-
|
3594
|
-
{ name: "add", path: "/add", component: () => import("./add-page-
|
3593
|
+
{ name: "edit", path: "/edit", component: () => import("./edit-page-DqEf35J2.js") },
|
3594
|
+
{ name: "add", path: "/add", component: () => import("./add-page-w-DxgCiS.js") },
|
3595
3595
|
{
|
3596
3596
|
name: "card-view",
|
3597
3597
|
path: "/card",
|
3598
|
-
component: () => import("./card-view-
|
3598
|
+
component: () => import("./card-view-eMucbOjz.js"),
|
3599
3599
|
children: [{
|
3600
3600
|
name: "table",
|
3601
3601
|
path: ":table",
|
3602
|
-
component: () => import("./card-view-
|
3603
|
-
children: [{ name: "card", path: ":id", component: () => import("./card-page-
|
3602
|
+
component: () => import("./card-view-eMucbOjz.js"),
|
3603
|
+
children: [{ name: "card", path: ":id", component: () => import("./card-page-Pw97vvNR.js") }]
|
3604
3604
|
}]
|
3605
3605
|
}
|
3606
3606
|
], VI = {}, jI = { class: "bg-gray-200 w-full px-16 md:px-0 h-screen flex items-center justify-center" }, UI = { class: "bg-white border border-gray-200 flex flex-col items-center justify-center px-4 md:px-8 lg:px-24 py-8 rounded-lg shadow-2xl" };
|
@@ -3632,7 +3632,7 @@ function HI(t, e, i, n, r, l) {
|
|
3632
3632
|
])
|
3633
3633
|
]);
|
3634
3634
|
}
|
3635
|
-
const qI = /* @__PURE__ */
|
3635
|
+
const qI = /* @__PURE__ */ Ft(VI, [["render", HI]]), WI = (t) => {
|
3636
3636
|
const e = $I.map((n) => ({
|
3637
3637
|
...n
|
3638
3638
|
}));
|
@@ -3648,14 +3648,14 @@ const qI = /* @__PURE__ */ Lt(VI, [["render", HI]]), WI = (t) => {
|
|
3648
3648
|
{
|
3649
3649
|
path: "/",
|
3650
3650
|
name: "home",
|
3651
|
-
component: () => import("./admin-view-
|
3651
|
+
component: () => import("./admin-view-DrOVwYHu.js"),
|
3652
3652
|
children: [
|
3653
3653
|
...e,
|
3654
3654
|
...t,
|
3655
3655
|
// { path: '/', redirect: '/home' },
|
3656
3656
|
{
|
3657
3657
|
path: "/:catchAll(.*)",
|
3658
|
-
component: () => import("./admin-interface-
|
3658
|
+
component: () => import("./admin-interface-DA_PeVj7.js")
|
3659
3659
|
}
|
3660
3660
|
]
|
3661
3661
|
}
|
@@ -3672,6 +3672,7 @@ const qI = /* @__PURE__ */ Lt(VI, [["render", HI]]), WI = (t) => {
|
|
3672
3672
|
data: { type: Object },
|
3673
3673
|
table: { type: String },
|
3674
3674
|
name: String,
|
3675
|
+
data: Object,
|
3675
3676
|
edit: { type: null, default: () => !1 },
|
3676
3677
|
column: Object
|
3677
3678
|
},
|
@@ -3679,8 +3680,11 @@ const qI = /* @__PURE__ */ Lt(VI, [["render", HI]]), WI = (t) => {
|
|
3679
3680
|
async changeData(t) {
|
3680
3681
|
var e;
|
3681
3682
|
try {
|
3682
|
-
|
3683
|
-
|
3683
|
+
const { data: i } = await zt.get(
|
3684
|
+
`/api/table/${this.table}/${(e = this.data) == null ? void 0 : e.id}`
|
3685
|
+
);
|
3686
|
+
await zt.put(`/api/table/${i == null ? void 0 : i.token}`, {
|
3687
|
+
...i,
|
3684
3688
|
[this.name]: t
|
3685
3689
|
}), await this.$emit("update-table");
|
3686
3690
|
} catch (i) {
|
@@ -3694,7 +3698,7 @@ const qI = /* @__PURE__ */ Lt(VI, [["render", HI]]), WI = (t) => {
|
|
3694
3698
|
};
|
3695
3699
|
function YI(t, e, i, n, r, l) {
|
3696
3700
|
var a, g;
|
3697
|
-
const u =
|
3701
|
+
const u = Rt("VsInlineEdit");
|
3698
3702
|
return i.edit ? (Ee(), gn(u, {
|
3699
3703
|
key: 0,
|
3700
3704
|
"model-value": i.value,
|
@@ -3712,7 +3716,7 @@ function YI(t, e, i, n, r, l) {
|
|
3712
3716
|
_: 1
|
3713
3717
|
}, 8, ["model-value", "onUpdateValue", "title"])) : (Ee(), Re("div", ZI, It(i.value), 1));
|
3714
3718
|
}
|
3715
|
-
const t1 = /* @__PURE__ */
|
3719
|
+
const t1 = /* @__PURE__ */ Ft(GI, [["render", YI]]), XI = {}, KI = {
|
3716
3720
|
xmlns: "http://www.w3.org/2000/svg",
|
3717
3721
|
width: "24",
|
3718
3722
|
height: "24",
|
@@ -3728,7 +3732,7 @@ function JI(t, e, i, n, r, l) {
|
|
3728
3732
|
Y("path", { d: "M20 6 9 17l-5-5" }, null, -1)
|
3729
3733
|
]));
|
3730
3734
|
}
|
3731
|
-
const QI = /* @__PURE__ */
|
3735
|
+
const QI = /* @__PURE__ */ Ft(XI, [["render", JI]]), eD = { class: "w-[170px]" }, tD = {
|
3732
3736
|
key: 0,
|
3733
3737
|
class: "p-1 border-b border-gray-200 dark:border-neutral-800"
|
3734
3738
|
}, iD = { class: "grid gap-y-0.5 p-1 max-h-[220px] overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, nD = ["value", "onChange"], rD = { class: "text-sm text-gray-800 ms-2" }, sD = {
|
@@ -3736,7 +3740,7 @@ const QI = /* @__PURE__ */ Lt(XI, [["render", JI]]), eD = { class: "w-[170px]" }
|
|
3736
3740
|
class: "flex items-center px-3 text-[13px] py-1 rounded-md cursor-pointer group"
|
3737
3741
|
}, ck = {
|
3738
3742
|
__name: "admin-badge-edit",
|
3739
|
-
props: { options: Array, value: String },
|
3743
|
+
props: { options: Array, value: [String, Number, Boolean] },
|
3740
3744
|
emits: ["update:value"],
|
3741
3745
|
setup(t, { emit: e }) {
|
3742
3746
|
const i = e, n = t, r = Rs(n.value), l = Rs(""), u = Rs("popover"), a = Ks(
|
@@ -3753,7 +3757,7 @@ const QI = /* @__PURE__ */ Lt(XI, [["render", JI]]), eD = { class: "w-[170px]" }
|
|
3753
3757
|
r.value === _ ? r.value = "" : r.value = _, i("update:value", r), u.value.togglePopover();
|
3754
3758
|
};
|
3755
3759
|
return (_, S) => {
|
3756
|
-
const k =
|
3760
|
+
const k = Rt("VsPopover");
|
3757
3761
|
return Ee(), gn(k, {
|
3758
3762
|
ref_key: "popover",
|
3759
3763
|
ref: u
|
@@ -3808,10 +3812,6 @@ const QI = /* @__PURE__ */ Lt(XI, [["render", JI]]), eD = { class: "w-[170px]" }
|
|
3808
3812
|
}, oD = {
|
3809
3813
|
components: { AdminBadgeEdit: ck },
|
3810
3814
|
props: {
|
3811
|
-
value: {
|
3812
|
-
type: [String, Number],
|
3813
|
-
default: () => ""
|
3814
|
-
},
|
3815
3815
|
data: Object,
|
3816
3816
|
name: String,
|
3817
3817
|
table: String,
|
@@ -3840,7 +3840,7 @@ const QI = /* @__PURE__ */ Lt(XI, [["render", JI]]), eD = { class: "w-[170px]" }
|
|
3840
3840
|
async getOptions() {
|
3841
3841
|
var t;
|
3842
3842
|
try {
|
3843
|
-
const { data: e } = await
|
3843
|
+
const { data: e } = await zt.get(`/api/suggest/${(t = this.column) == null ? void 0 : t.data}`);
|
3844
3844
|
this.optionsList = e;
|
3845
3845
|
} catch {
|
3846
3846
|
}
|
@@ -3860,14 +3860,17 @@ const QI = /* @__PURE__ */ Lt(XI, [["render", JI]]), eD = { class: "w-[170px]" }
|
|
3860
3860
|
throw new Error("Invalid color format");
|
3861
3861
|
},
|
3862
3862
|
async changeData(t) {
|
3863
|
-
var e;
|
3863
|
+
var e, i;
|
3864
3864
|
try {
|
3865
|
-
|
3866
|
-
|
3865
|
+
const n = await zt.get(
|
3866
|
+
`/api/table/${this.table}/${(e = this.data) == null ? void 0 : e.id}`
|
3867
|
+
);
|
3868
|
+
await zt.put(`/api/table/${(i = n == null ? void 0 : n.data) == null ? void 0 : i.token}`, {
|
3869
|
+
...n == null ? void 0 : n.data,
|
3867
3870
|
[this.name]: t
|
3868
3871
|
}), await this.$emit("update-table");
|
3869
|
-
} catch (
|
3870
|
-
console.log(
|
3872
|
+
} catch (n) {
|
3873
|
+
console.log(n);
|
3871
3874
|
}
|
3872
3875
|
}
|
3873
3876
|
}
|
@@ -3877,7 +3880,7 @@ const QI = /* @__PURE__ */ Lt(XI, [["render", JI]]), eD = { class: "w-[170px]" }
|
|
3877
3880
|
}, cD = { key: 1 };
|
3878
3881
|
function uD(t, e, i, n, r, l) {
|
3879
3882
|
var a, g, _;
|
3880
|
-
const u =
|
3883
|
+
const u = Rt("AdminBadgeEdit");
|
3881
3884
|
return i.edit ? (Ee(), gn(u, {
|
3882
3885
|
key: 0,
|
3883
3886
|
options: r.optionsList,
|
@@ -3914,7 +3917,7 @@ function uD(t, e, i, n, r, l) {
|
|
3914
3917
|
}, It((_ = l.getData) == null ? void 0 : _.text), 5)) : (Ee(), Re("div", cD, "-"))
|
3915
3918
|
]));
|
3916
3919
|
}
|
3917
|
-
const hD = /* @__PURE__ */
|
3920
|
+
const hD = /* @__PURE__ */ Ft(oD, [["render", uD]]), dD = {}, pD = {
|
3918
3921
|
xmlns: "http://www.w3.org/2000/svg",
|
3919
3922
|
viewBox: "0 0 24 24",
|
3920
3923
|
fill: "none",
|
@@ -3934,12 +3937,12 @@ function fD(t, e, i, n, r, l) {
|
|
3934
3937
|
Y("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
3935
3938
|
]));
|
3936
3939
|
}
|
3937
|
-
const uk = /* @__PURE__ */
|
3940
|
+
const uk = /* @__PURE__ */ Ft(dD, [["render", fD]]), mD = {
|
3938
3941
|
components: { IconCheck: uk },
|
3939
3942
|
props: { value: Boolean }
|
3940
3943
|
}, gD = { class: "px-[20px]" }, yD = { key: 1 };
|
3941
3944
|
function _D(t, e, i, n, r, l) {
|
3942
|
-
const u =
|
3945
|
+
const u = Rt("IconCheck");
|
3943
3946
|
return Ee(), Re("div", gD, [
|
3944
3947
|
i.value ? (Ee(), gn(u, {
|
3945
3948
|
key: 0,
|
@@ -3949,7 +3952,7 @@ function _D(t, e, i, n, r, l) {
|
|
3949
3952
|
})) : (Ee(), Re("div", yD))
|
3950
3953
|
]);
|
3951
3954
|
}
|
3952
|
-
const i1 = /* @__PURE__ */
|
3955
|
+
const i1 = /* @__PURE__ */ Ft(mD, [["render", _D]]), vD = {
|
3953
3956
|
components: { AdminBadgeEdit: ck },
|
3954
3957
|
props: {
|
3955
3958
|
data: Object,
|
@@ -3980,20 +3983,23 @@ const i1 = /* @__PURE__ */ Lt(mD, [["render", _D]]), vD = {
|
|
3980
3983
|
async getOptions() {
|
3981
3984
|
var t;
|
3982
3985
|
try {
|
3983
|
-
const { data: e } = await
|
3986
|
+
const { data: e } = await zt.get(`/api/suggest/${(t = this.column) == null ? void 0 : t.data}`);
|
3984
3987
|
this.optionsList = e;
|
3985
3988
|
} catch {
|
3986
3989
|
}
|
3987
3990
|
},
|
3988
3991
|
async changeData(t) {
|
3989
|
-
var e;
|
3992
|
+
var e, i;
|
3990
3993
|
try {
|
3991
|
-
|
3992
|
-
|
3994
|
+
const n = await zt.get(
|
3995
|
+
`/api/table/${this.table}/${(e = this.data) == null ? void 0 : e.id}`
|
3996
|
+
);
|
3997
|
+
await zt.put(`/api/table/${(i = n == null ? void 0 : n.data) == null ? void 0 : i.token}`, {
|
3998
|
+
...n.data,
|
3993
3999
|
[this.name]: t
|
3994
4000
|
}), await this.$emit("update-table");
|
3995
|
-
} catch (
|
3996
|
-
console.log(
|
4001
|
+
} catch (n) {
|
4002
|
+
console.log(n);
|
3997
4003
|
}
|
3998
4004
|
}
|
3999
4005
|
}
|
@@ -4005,7 +4011,7 @@ const i1 = /* @__PURE__ */ Lt(mD, [["render", _D]]), vD = {
|
|
4005
4011
|
class: "cursor-pointer"
|
4006
4012
|
}, SD = { key: 0 }, kD = { key: 1 }, TD = { key: 1 };
|
4007
4013
|
function MD(t, e, i, n, r, l) {
|
4008
|
-
const u =
|
4014
|
+
const u = Rt("AdminBadgeEdit");
|
4009
4015
|
return Ee(), Re("div", xD, [
|
4010
4016
|
i.edit ? (Ee(), gn(u, {
|
4011
4017
|
key: 0,
|
@@ -4032,7 +4038,7 @@ function MD(t, e, i, n, r, l) {
|
|
4032
4038
|
], 64))
|
4033
4039
|
]);
|
4034
4040
|
}
|
4035
|
-
const CD = /* @__PURE__ */
|
4041
|
+
const CD = /* @__PURE__ */ Ft(vD, [["render", MD]]), ED = {
|
4036
4042
|
props: {
|
4037
4043
|
value: {
|
4038
4044
|
type: [String, Number],
|
@@ -4057,7 +4063,7 @@ function DD(t, e, i, n, r, l) {
|
|
4057
4063
|
l.getData ? (Ee(), Re("div", PD, It(l.getData), 1)) : (Ee(), Re("div", ID, "-"))
|
4058
4064
|
]);
|
4059
4065
|
}
|
4060
|
-
const OD = /* @__PURE__ */
|
4066
|
+
const OD = /* @__PURE__ */ Ft(ED, [["render", DD]]);
|
4061
4067
|
//! moment.js
|
4062
4068
|
//! version : 2.30.1
|
4063
4069
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
@@ -6638,7 +6644,9 @@ const zL = {
|
|
6638
6644
|
data: Object,
|
6639
6645
|
name: String,
|
6640
6646
|
table: String,
|
6641
|
-
edit: { type: null, default: () => !1 }
|
6647
|
+
edit: { type: null, default: () => !1 },
|
6648
|
+
value: null,
|
6649
|
+
column: Object
|
6642
6650
|
},
|
6643
6651
|
computed: {
|
6644
6652
|
dateValue() {
|
@@ -6658,14 +6666,17 @@ const zL = {
|
|
6658
6666
|
},
|
6659
6667
|
methods: {
|
6660
6668
|
async changeData(t) {
|
6661
|
-
var e;
|
6669
|
+
var e, i;
|
6662
6670
|
try {
|
6663
|
-
|
6664
|
-
|
6671
|
+
const n = await zt.get(
|
6672
|
+
`/api/table/${this.table}/${(e = this.data) == null ? void 0 : e.id}`
|
6673
|
+
);
|
6674
|
+
await zt.put(`/api/table/${(i = n == null ? void 0 : n.data) == null ? void 0 : i.token}`, {
|
6675
|
+
...n == null ? void 0 : n.data,
|
6665
6676
|
[this.name]: t
|
6666
6677
|
}), await this.$emit("update-table");
|
6667
|
-
} catch (
|
6668
|
-
console.log(
|
6678
|
+
} catch (n) {
|
6679
|
+
console.log(n);
|
6669
6680
|
}
|
6670
6681
|
}
|
6671
6682
|
}
|
@@ -6675,7 +6686,7 @@ const zL = {
|
|
6675
6686
|
};
|
6676
6687
|
function FL(t, e, i, n, r, l) {
|
6677
6688
|
var a;
|
6678
|
-
const u =
|
6689
|
+
const u = Rt("VsInlineEdit");
|
6679
6690
|
return i.edit ? (Ee(), gn(u, {
|
6680
6691
|
key: 0,
|
6681
6692
|
"model-value": ((a = i.data) == null ? void 0 : a[i.name]) || null,
|
@@ -6688,7 +6699,7 @@ function FL(t, e, i, n, r, l) {
|
|
6688
6699
|
_: 1
|
6689
6700
|
}, 8, ["model-value", "onUpdateValue"])) : (Ee(), Re("div", LL, It(l.dateValue), 1));
|
6690
6701
|
}
|
6691
|
-
const BL = /* @__PURE__ */
|
6702
|
+
const BL = /* @__PURE__ */ Ft(zL, [["render", FL]]), NL = ro({
|
6692
6703
|
name: "VsNumberValue",
|
6693
6704
|
props: {
|
6694
6705
|
data: {
|
@@ -6711,7 +6722,7 @@ const BL = /* @__PURE__ */ Lt(zL, [["render", FL]]), NL = ro({
|
|
6711
6722
|
function VL(t, e, i, n, r, l) {
|
6712
6723
|
return Ee(), Re("span", $L, It(t.formattedValue), 1);
|
6713
6724
|
}
|
6714
|
-
const jL = /* @__PURE__ */
|
6725
|
+
const jL = /* @__PURE__ */ Ft(NL, [["render", VL]]), UL = {
|
6715
6726
|
// formats
|
6716
6727
|
"table-format-text": t1,
|
6717
6728
|
"table-format-select": CD,
|
@@ -6833,7 +6844,7 @@ function c1(t, e = {}) {
|
|
6833
6844
|
var n2 = { exports: {} };
|
6834
6845
|
/**
|
6835
6846
|
* MapLibre GL JS
|
6836
|
-
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.
|
6847
|
+
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.0/LICENSE.txt
|
6837
6848
|
*/
|
6838
6849
|
(function(t, e) {
|
6839
6850
|
(function(i, n) {
|
@@ -7307,7 +7318,7 @@ var n2 = { exports: {} };
|
|
7307
7318
|
return c.kind === "array" && o.kind === "array" ? c.itemType.kind === o.itemType.kind && typeof c.N == "number" : c.kind === o.kind;
|
7308
7319
|
}
|
7309
7320
|
const ue = 0.96422, Ce = 0.82521, Le = 4 / 29, ke = 6 / 29, Ue = 3 * ke * ke, xt = ke * ke * ke, St = Math.PI / 180, li = 180 / Math.PI;
|
7310
|
-
function
|
7321
|
+
function Bt(c) {
|
7311
7322
|
return (c %= 360) < 0 && (c += 360), c;
|
7312
7323
|
}
|
7313
7324
|
function ci([c, o, h, p]) {
|
@@ -7389,7 +7400,7 @@ var n2 = { exports: {} };
|
|
7389
7400
|
const nt = (Be + oe / 30) % 12, kt = ve * Math.min(pe, 1 - pe);
|
7390
7401
|
return pe - kt * Math.max(-1, Math.min(nt - 3, 9 - nt, 1));
|
7391
7402
|
}
|
7392
|
-
return oe =
|
7403
|
+
return oe = Bt(oe), ve /= 100, pe /= 100, [Te(0), Te(8), Te(4), ye];
|
7393
7404
|
}(ie);
|
7394
7405
|
}
|
7395
7406
|
}
|
@@ -7403,7 +7414,7 @@ var n2 = { exports: {} };
|
|
7403
7414
|
get hcl() {
|
7404
7415
|
return this.overwriteGetter("hcl", function(o) {
|
7405
7416
|
const [h, p, y, b] = ci(o), w = Math.sqrt(p * p + y * y);
|
7406
|
-
return [Math.round(1e4 * w) ?
|
7417
|
+
return [Math.round(1e4 * w) ? Bt(Math.atan2(y, p) * li) : NaN, w, h, b];
|
7407
7418
|
}(this.rgb));
|
7408
7419
|
}
|
7409
7420
|
get lab() {
|
@@ -15102,12 +15113,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
15102
15113
|
const jt = new AbortController();
|
15103
15114
|
this.inFlightDependencies.push(jt), li = te.sendAsync({ type: "GI", data: { icons: St, source: this.source, tileID: this.tileID, type: "patterns" } }, jt);
|
15104
15115
|
}
|
15105
|
-
const [
|
15116
|
+
const [Bt, ci, Zt] = yield Promise.all([ke, xt, li]), cn = new g(Bt), Xi = new u.bo(ci, Zt);
|
15106
15117
|
for (const jt in _e) {
|
15107
15118
|
const wi = _e[jt];
|
15108
|
-
wi instanceof u.a6 ? (S(wi.layers, this.zoom, Z), u.bp({ bucket: wi, glyphMap:
|
15119
|
+
wi instanceof u.a6 ? (S(wi.layers, this.zoom, Z), u.bp({ bucket: wi, glyphMap: Bt, glyphPositions: cn.positions, imageMap: ci, imagePositions: Xi.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : wi.hasPattern && (wi instanceof u.bq || wi instanceof u.br || wi instanceof u.bs) && (S(wi.layers, this.zoom, Z), wi.addFeatures(ue, this.tileID.canonical, Xi.patternPositions));
|
15109
15120
|
}
|
15110
|
-
return this.status = "done", { buckets: Object.values(_e).filter((jt) => !jt.isEmpty()), featureIndex: fe, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: cn.image, imageAtlas: Xi, glyphMap: this.returnDependencies ?
|
15121
|
+
return this.status = "done", { buckets: Object.values(_e).filter((jt) => !jt.isEmpty()), featureIndex: fe, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: cn.image, imageAtlas: Xi, glyphMap: this.returnDependencies ? Bt : null, iconMap: this.returnDependencies ? ci : null, glyphPositions: this.returnDependencies ? cn.positions : null };
|
15111
15122
|
});
|
15112
15123
|
}
|
15113
15124
|
}
|
@@ -15411,8 +15422,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
15411
15422
|
else {
|
15412
15423
|
const li = this.points[j[ue + zi]];
|
15413
15424
|
Le = li.properties;
|
15414
|
-
const [
|
15415
|
-
ke = Me(
|
15425
|
+
const [Bt, ci] = li.geometry.coordinates;
|
15426
|
+
ke = Me(Bt), Ue = je(ci);
|
15416
15427
|
}
|
15417
15428
|
const xt = { type: 1, geometry: [[Math.round(this.options.extent * (ke * de - Z)), Math.round(this.options.extent * (Ue * de - te))]], tags: Le };
|
15418
15429
|
let St;
|
@@ -15428,12 +15439,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
15428
15439
|
if (ue[ke + 2] <= j) continue;
|
15429
15440
|
ue[ke + 2] = j;
|
15430
15441
|
const Ue = ue[ke], xt = ue[ke + 1], St = U.within(ue[ke], ue[ke + 1], _e), li = ue[ke + bi];
|
15431
|
-
let
|
15442
|
+
let Bt = li;
|
15432
15443
|
for (const ci of St) {
|
15433
15444
|
const Zt = ci * Le;
|
15434
|
-
ue[Zt + 2] > j && (
|
15445
|
+
ue[Zt + 2] > j && (Bt += ue[Zt + bi]);
|
15435
15446
|
}
|
15436
|
-
if (
|
15447
|
+
if (Bt > li && Bt >= fe) {
|
15437
15448
|
let ci, Zt = Ue * li, cn = xt * li, Xi = -1;
|
15438
15449
|
const jt = ((ke / Le | 0) << 5) + (j + 1) + this.points.length;
|
15439
15450
|
for (const wi of St) {
|
@@ -15443,10 +15454,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
15443
15454
|
const vn = ue[Wi + bi];
|
15444
15455
|
Zt += ue[Wi] * vn, cn += ue[Wi + 1] * vn, ue[Wi + 4] = jt, de && (ci || (ci = this._map(ue, ke, !0), Xi = this.clusterProps.length, this.clusterProps.push(ci)), de(ci, this._map(ue, Wi)));
|
15445
15456
|
}
|
15446
|
-
ue[ke + 4] = jt, Ce.push(Zt /
|
15457
|
+
ue[ke + 4] = jt, Ce.push(Zt / Bt, cn / Bt, 1 / 0, jt, -1, Bt), de && Ce.push(Xi);
|
15447
15458
|
} else {
|
15448
15459
|
for (let ci = 0; ci < Le; ci++) Ce.push(ue[ke + ci]);
|
15449
|
-
if (
|
15460
|
+
if (Bt > 1) for (const ci of St) {
|
15450
15461
|
const Zt = ci * Le;
|
15451
15462
|
if (!(ue[Zt + 2] <= j)) {
|
15452
15463
|
ue[Zt + 2] = j;
|
@@ -15600,8 +15611,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
15600
15611
|
else if (ke === "MultiLineString") Ir(Le, St, j, Z, te, !1);
|
15601
15612
|
else if (ke === "Polygon") Ir(Le, St, j, Z, te, !0);
|
15602
15613
|
else if (ke === "MultiPolygon") for (const li of Le) {
|
15603
|
-
const
|
15604
|
-
Ir(li,
|
15614
|
+
const Bt = [];
|
15615
|
+
Ir(li, Bt, j, Z, te, !0), Bt.length && St.push(Bt);
|
15605
15616
|
}
|
15606
15617
|
if (St.length) {
|
15607
15618
|
if (_e.lineMetrics && ke === "LineString") {
|
@@ -15623,8 +15634,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
15623
15634
|
let _e = Mn(re);
|
15624
15635
|
const ue = te === 0 ? vs : xs;
|
15625
15636
|
let Ce, Le, ke = re.start;
|
15626
|
-
for (let
|
15627
|
-
const ci = re[
|
15637
|
+
for (let Bt = 0; Bt < re.length - 3; Bt += 3) {
|
15638
|
+
const ci = re[Bt], Zt = re[Bt + 1], cn = re[Bt + 2], Xi = re[Bt + 3], jt = re[Bt + 4], wi = te === 0 ? ci : Zt, Wi = te === 0 ? Xi : jt;
|
15628
15639
|
let vn = !1;
|
15629
15640
|
fe && (Ce = Math.sqrt(Math.pow(ci - Xi, 2) + Math.pow(Zt - jt, 2))), wi < j ? Wi > j && (Le = ue(_e, ci, Zt, Xi, jt, j), fe && (_e.start = ke + Ce * Le)) : wi > Z ? Wi < Z && (Le = ue(_e, ci, Zt, Xi, jt, Z), fe && (_e.start = ke + Ce * Le)) : Cn(_e, ci, Zt, cn), Wi < j && wi >= j && (Le = ue(_e, ci, Zt, Xi, jt, j), vn = !0), Wi > Z && wi <= Z && (Le = ue(_e, ci, Zt, Xi, jt, Z), vn = !0), !de && vn && (fe && (_e.end = ke + Ce * Le), U.push(_e), _e = Mn(re)), fe && (ke += Ce);
|
15630
15641
|
}
|
@@ -15777,9 +15788,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
15777
15788
|
}
|
15778
15789
|
if (xt.source = null, U.length === 0) continue;
|
15779
15790
|
Le > 1 && console.time("clipping");
|
15780
|
-
const St = 0.5 * Ce.buffer / Ce.extent, li = 0.5 - St,
|
15781
|
-
let Zt = null, cn = null, Xi = null, jt = null, wi = gi(U, ke, Z - St, Z +
|
15782
|
-
U = null, wi && (Zt = gi(wi, ke, te - St, te +
|
15791
|
+
const St = 0.5 * Ce.buffer / Ce.extent, li = 0.5 - St, Bt = 0.5 + St, ci = 1 + St;
|
15792
|
+
let Zt = null, cn = null, Xi = null, jt = null, wi = gi(U, ke, Z - St, Z + Bt, 0, xt.minX, xt.maxX, Ce), Wi = gi(U, ke, Z + li, Z + ci, 0, xt.minX, xt.maxX, Ce);
|
15793
|
+
U = null, wi && (Zt = gi(wi, ke, te - St, te + Bt, 1, xt.minY, xt.maxY, Ce), cn = gi(wi, ke, te + li, te + ci, 1, xt.minY, xt.maxY, Ce), wi = null), Wi && (Xi = gi(Wi, ke, te - St, te + Bt, 1, xt.minY, xt.maxY, Ce), jt = gi(Wi, ke, te + li, te + ci, 1, xt.minY, xt.maxY, Ce), Wi = null), Le > 1 && console.timeEnd("clipping"), ue.push(Zt || [], j + 1, 2 * Z, 2 * te), ue.push(cn || [], j + 1, 2 * Z, 2 * te + 1), ue.push(Xi || [], j + 1, 2 * Z + 1, 2 * te), ue.push(jt || [], j + 1, 2 * Z + 1, 2 * te + 1);
|
15783
15794
|
}
|
15784
15795
|
}
|
15785
15796
|
getTile(U, j, Z) {
|
@@ -15876,8 +15887,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
15876
15887
|
if (!_e || !fe) return fe;
|
15877
15888
|
const ue = {}, Ce = {}, Le = { accumulated: null, zoom: 0 }, ke = { properties: null }, Ue = Object.keys(_e);
|
15878
15889
|
for (const xt of Ue) {
|
15879
|
-
const [St, li] = _e[xt],
|
15880
|
-
ue[xt] =
|
15890
|
+
const [St, li] = _e[xt], Bt = u.bC(li), ci = u.bC(typeof St == "string" ? [St, ["accumulated"], ["get", xt]] : St);
|
15891
|
+
ue[xt] = Bt.value, Ce[xt] = ci.value;
|
15881
15892
|
}
|
15882
15893
|
return fe.map = (xt) => {
|
15883
15894
|
ke.properties = xt;
|
@@ -16054,7 +16065,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
16054
16065
|
}
|
16055
16066
|
return u.i(self) && (self.worker = new _r(self)), _r;
|
16056
16067
|
}), r("index", ["exports", "./shared"], function(u, a) {
|
16057
|
-
var g = "4.7.
|
16068
|
+
var g = "4.7.0";
|
16058
16069
|
let _, S;
|
16059
16070
|
const k = { now: typeof performance < "u" && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (x) => new Promise((s, d) => {
|
16060
16071
|
const f = requestAnimationFrame(s);
|
@@ -18277,10 +18288,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
18277
18288
|
const f = s[0], m = s[1];
|
18278
18289
|
return x[0] = d[0] * f + d[4] * m + d[12], x[1] = d[1] * f + d[5] * m + d[13], x[3] = d[3] * f + d[7] * m + d[15], x;
|
18279
18290
|
}
|
18280
|
-
const
|
18291
|
+
const Bt = 100;
|
18281
18292
|
class ci {
|
18282
18293
|
constructor(s, d, f = new en(s.width + 200, s.height + 200, 25), m = new en(s.width + 200, s.height + 200, 25)) {
|
18283
|
-
this.transform = s, this.mapProjection = d, this.grid = f, this.ignoredGrid = m, this.pitchFactor = Math.cos(s._pitch) * s.cameraToCenterDistance, this.screenRightBoundary = s.width +
|
18294
|
+
this.transform = s, this.mapProjection = d, this.grid = f, this.ignoredGrid = m, this.pitchFactor = Math.cos(s._pitch) * s.cameraToCenterDistance, this.screenRightBoundary = s.width + Bt, this.screenBottomBoundary = s.height + Bt, this.gridRightBoundary = s.width + 200, this.gridBottomBoundary = s.height + 200, this.perspectiveRatioCutoff = 0.6;
|
18284
18295
|
}
|
18285
18296
|
placeCollisionBox(s, d, f, m, v, C, A, D, R, F, B) {
|
18286
18297
|
const q = s.anchorPointX + D[0], K = s.anchorPointY + D[1], J = this.projectAndGetPerspectiveRatio(m, q, K, v, F), ne = f * J.perspectiveRatio;
|
@@ -18317,7 +18328,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
18317
18328
|
let Yt = 0;
|
18318
18329
|
Yt = pt.length <= 0.5 * rt ? 1 : Math.ceil(pt.paddedLength / At) + 1;
|
18319
18330
|
for (let Vi = 0; Vi < Yt; Vi++) {
|
18320
|
-
const zn = Vi / Math.max(Yt - 1, 1), ns = pt.lerp(zn), ji = ns.x +
|
18331
|
+
const zn = Vi / Math.max(Yt - 1, 1), ns = pt.lerp(zn), ji = ns.x + Bt, ar = ns.y + Bt;
|
18321
18332
|
le.push(ji, ar, rt, 0);
|
18322
18333
|
const Yn = ji - rt, Rn = ar - rt, Xn = ji + rt, Ts = ar + rt;
|
18323
18334
|
if (Je = Je && this.isOffscreen(Yn, Rn, Xn, Ts), $e = $e || this.isInsideGrid(Yn, Rn, Xn, Ts), s !== "always" && this.grid.hitTestCircle(ji, ar, rt, s, q) && (ze = !0, !F)) return { circles: [], offscreen: !1, collisionDetected: ze };
|
@@ -18334,7 +18345,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
18334
18345
|
const d = [];
|
18335
18346
|
let f = 1 / 0, m = 1 / 0, v = -1 / 0, C = -1 / 0;
|
18336
18347
|
for (const F of s) {
|
18337
|
-
const B = new a.P(F.x +
|
18348
|
+
const B = new a.P(F.x + Bt, F.y + Bt);
|
18338
18349
|
f = Math.min(f, B.x), m = Math.min(m, B.y), v = Math.max(v, B.x), C = Math.max(C, B.y), d.push(B);
|
18339
18350
|
}
|
18340
18351
|
const A = this.grid.query(f, m, v, C).concat(this.ignoredGrid.query(f, m, v, C)), D = {}, R = {};
|
@@ -18357,14 +18368,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
18357
18368
|
let C;
|
18358
18369
|
v ? (C = [d, f, v(d, f), 1], a.af(C, C, s)) : (C = [d, f, 0, 1], li(C, C, s));
|
18359
18370
|
const A = C[3];
|
18360
|
-
return { point: new a.P((C[0] / A + 1) / 2 * this.transform.width +
|
18371
|
+
return { point: new a.P((C[0] / A + 1) / 2 * this.transform.width + Bt, (-C[1] / A + 1) / 2 * this.transform.height + Bt), perspectiveRatio: 0.5 + this.transform.cameraToCenterDistance / A * 0.5, isOccluded: !1, signedDistanceFromCamera: A };
|
18361
18372
|
}
|
18362
18373
|
getPerspectiveRatio(s, d, f, m, v) {
|
18363
18374
|
const C = this.mapProjection.useSpecialProjectionForSymbols ? this.mapProjection.projectTileCoordinates(d, f, m, v) : re(d, f, s, v);
|
18364
18375
|
return 0.5 + this.transform.cameraToCenterDistance / C.signedDistanceFromCamera * 0.5;
|
18365
18376
|
}
|
18366
18377
|
isOffscreen(s, d, f, m) {
|
18367
|
-
return f <
|
18378
|
+
return f < Bt || s >= this.screenRightBoundary || m < Bt || d > this.screenBottomBoundary;
|
18368
18379
|
}
|
18369
18380
|
isInsideGrid(s, d, f, m) {
|
18370
18381
|
return f >= 0 && s < this.gridRightBoundary && m >= 0 && d < this.gridBottomBoundary;
|
@@ -18704,7 +18715,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
18704
18715
|
}
|
18705
18716
|
function _a(x, s, d, f, m, v) {
|
18706
18717
|
f && f.length !== 0 || (f = [0, 0, 0, 0]);
|
18707
|
-
const C = f[0] -
|
18718
|
+
const C = f[0] - Bt, A = f[1] - Bt, D = f[2] - Bt, R = f[3] - Bt;
|
18708
18719
|
x.emplaceBack(s ? 1 : 0, d ? 1 : 0, m || 0, v || 0, C, A), x.emplaceBack(s ? 1 : 0, d ? 1 : 0, m || 0, v || 0, D, A), x.emplaceBack(s ? 1 : 0, d ? 1 : 0, m || 0, v || 0, D, R), x.emplaceBack(s ? 1 : 0, d ? 1 : 0, m || 0, v || 0, C, R);
|
18709
18720
|
}
|
18710
18721
|
const Si = Math.pow(2, 25), hh = Math.pow(2, 24), dh = Math.pow(2, 17), vr = Math.pow(2, 16), xr = Math.pow(2, 9), fg = Math.pow(2, 8), zr = Math.pow(2, 1);
|
@@ -19604,7 +19615,7 @@ void main() {
|
|
19604
19615
|
#pragma mapbox: initialize highp vec4 stroke_color
|
19605
19616
|
#pragma mapbox: initialize mediump float stroke_width
|
19606
19617
|
#pragma mapbox: initialize lowp float stroke_opacity
|
19607
|
-
vec2 extrude=v_data.xy;float extrude_length=length(extrude);float
|
19618
|
+
vec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);
|
19608
19619
|
#ifdef OVERDRAW_INSPECTOR
|
19609
19620
|
gl_FragColor=vec4(1.0);
|
19610
19621
|
#endif
|
@@ -19624,7 +19635,7 @@ void main(void) {
|
|
19624
19635
|
#pragma mapbox: initialize highp vec4 stroke_color
|
19625
19636
|
#pragma mapbox: initialize mediump float stroke_width
|
19626
19637
|
#pragma mapbox: initialize lowp float stroke_opacity
|
19627
|
-
vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur
|
19638
|
+
vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`), clippingMask: yi("void main() {gl_FragColor=vec4(1.0);}", "attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), heatmap: yi(`uniform highp float u_intensity;varying vec2 v_extrude;
|
19628
19639
|
#pragma mapbox: define highp float weight
|
19629
19640
|
#define GAUSS_COEF 0.3989422804014327
|
19630
19641
|
void main() {
|
@@ -21894,7 +21905,7 @@ uniform ${F} ${B} u_${q};
|
|
21894
21905
|
}
|
21895
21906
|
return !1;
|
21896
21907
|
}, this._updateHashUnthrottled = () => {
|
21897
|
-
const d = window.location.href.replace(/(
|
21908
|
+
const d = window.location.href.replace(/(#.+)?$/, this.getHashString());
|
21898
21909
|
window.history.replaceState(window.history.state, null, d);
|
21899
21910
|
}, this._removeHash = () => {
|
21900
21911
|
const d = this._getCurrentHash();
|
@@ -24898,7 +24909,7 @@ Ur.point = async (t = {}, e = {}, i = null) => {
|
|
24898
24909
|
const Ae = (se = (G = t.meta) == null ? void 0 : G.columns) == null ? void 0 : se.find((Oe) => {
|
24899
24910
|
var Qe;
|
24900
24911
|
return Oe.name === ((Qe = t == null ? void 0 : t.style) == null ? void 0 : Qe.iconAttr);
|
24901
|
-
}), Xe = (Ae == null ? void 0 : Ae.values) || await
|
24912
|
+
}), Xe = (Ae == null ? void 0 : Ae.values) || await zt.get(`/api-user/gis-ir/${t.id}/${(ce = t.style) == null ? void 0 : ce.iconAttr}`).then((Oe) => Oe.data.rows);
|
24902
24913
|
if (Xe != null && Xe.length) {
|
24903
24914
|
const Oe = r.replace("{{color}}", a.length ? a : XL(a) || [0]).split("+")[1].split(/[.-]/)[0];
|
24904
24915
|
Xe.forEach((Qe, lt) => {
|
@@ -24909,7 +24920,7 @@ Ur.point = async (t = {}, e = {}, i = null) => {
|
|
24909
24920
|
r = n ? "pin6-m-fa-star+{{color}}.png" : `pin6-m-fa-star+${a == null ? void 0 : a.replace("#", "")}.png`;
|
24910
24921
|
}
|
24911
24922
|
if (r != null && r.includes("{{color}}") ? r = r.replace("{{color}}", "222") : e != null && e.icon && e.iconAttr, n) {
|
24912
|
-
const Ae = (De = (Q = t.meta) == null ? void 0 : Q.columns) == null ? void 0 : De.find((Oe) => Oe.name === n), Xe = (Ae == null ? void 0 : Ae.values) || await
|
24923
|
+
const Ae = (De = (Q = t.meta) == null ? void 0 : Q.columns) == null ? void 0 : De.find((Oe) => Oe.name === n), Xe = (Ae == null ? void 0 : Ae.values) || await zt.get(`/api-user/gis-ir/${t.id}/${n}`).then((Oe) => Oe.data.rows);
|
24913
24924
|
t.style.color = Xe != null && Xe.length ? ["match", ["get", n]].concat(Xe.filter((Oe) => Oe.id).reduce((Oe, Qe, lt) => Oe.concat([Qe.id, Qe.color || fm[lt]]), [])).concat(["#aaa"]) : a, t.style.colorArr = t.style.color, t.legendAuto.colorText = (Ae == null ? void 0 : Ae.title) || n, Xe.forEach((Oe) => t.legendAuto.color.push(Oe)), t.legendAuto.color.push({ color: "#aaa", text: "Не визначено" }), !((Se = t.style) != null && Se.iconAttr) && !(r != null && r.includes("+sdf")) && r && (Xe.forEach((Oe, Qe) => Oe.icon = _(r, Oe.color || fm[Qe])), t.style.iconArr = ["match", ["get", n]].concat(Xe.filter((Oe) => Oe.id).reduce((Oe, Qe) => Oe.concat([Qe.id, Qe.icon]), [])).concat([_(r, g)]), await Promise.all(Xe.map((Oe) => Oe.icon).map((Oe) => Mf(Oe, i))));
|
24914
24925
|
}
|
24915
24926
|
if (r && !(r != null && r.includes("{"))) {
|
@@ -25095,7 +25106,7 @@ Ur.polygon = async (t = {}, e = {}, i = null) => {
|
|
25095
25106
|
const { colorAttr: n } = e, r = ((l = t.style) == null ? void 0 : l.color) || "blue";
|
25096
25107
|
if (e.colorAttr) {
|
25097
25108
|
i.getSource(t.id) && i.getSource(i.getSource(t.id).setData(`${i.getSource(t.id)._data.split("&props")[0]}&props=${n}`));
|
25098
|
-
const _ = ((a = (u = t.meta) == null ? void 0 : u.columns.find((S) => S.name === n)) == null ? void 0 : a.values) || await
|
25109
|
+
const _ = ((a = (u = t.meta) == null ? void 0 : u.columns.find((S) => S.name === n)) == null ? void 0 : a.values) || await zt.get(`/api-user/gis-ir/${t.id}/${n}`).then((S) => S.data.rows);
|
25099
25110
|
t.legendAuto = { color: [] }, _.forEach((S) => t.legendAuto.color.push(S)), t.legendAuto.color.push({ color: "#aaa", text: "Не визначено" }), t.style.color = _ ? ["match", ["get", n]].concat(_.filter((S) => S.id).reduce((S, k, M) => S.concat([k.id, k.color || fm[M]]), [])).concat(["#aaa"]) : r;
|
25100
25111
|
}
|
25101
25112
|
return [{
|
@@ -25331,7 +25342,7 @@ const JL = {
|
|
25331
25342
|
await this.createGeometryLayer({ data: t }, "vector");
|
25332
25343
|
},
|
25333
25344
|
async addVectorLayer(t, e) {
|
25334
|
-
const { data: i } = await
|
25345
|
+
const { data: i } = await zt.get(t.layer), n = { ...t, source: t.id, layers: [] };
|
25335
25346
|
Object.keys(i.sources).forEach(async (r) => {
|
25336
25347
|
await e.addSource(t.id, {
|
25337
25348
|
type: i.sources[r].type,
|
@@ -25360,7 +25371,7 @@ const JL = {
|
|
25360
25371
|
return;
|
25361
25372
|
}
|
25362
25373
|
try {
|
25363
|
-
const i = await
|
25374
|
+
const i = await zt.get((t == null ? void 0 : t.geojson) || (t == null ? void 0 : t.url)), n = await i.data;
|
25364
25375
|
if (i.statusText === "OK")
|
25365
25376
|
this.createGeometryLayer({ data: t, geojson: n }, "geojson");
|
25366
25377
|
else
|
@@ -25446,7 +25457,7 @@ const JL = {
|
|
25446
25457
|
`${window.location.origin}${i.geojson || i.url}${i.url.includes("?") ? "&" : "?"}filter=${e}${i.props ? `&props=${i.props}` : ""}`
|
25447
25458
|
]);
|
25448
25459
|
else if (i.service === "geojson") {
|
25449
|
-
const { data: r } = await
|
25460
|
+
const { data: r } = await zt.get((i == null ? void 0 : i.geojson) || `${i == null ? void 0 : i.url}?filter=${e}`);
|
25450
25461
|
await this.map.getSource(t).setData(r);
|
25451
25462
|
}
|
25452
25463
|
},
|
@@ -25457,7 +25468,7 @@ const JL = {
|
|
25457
25468
|
const r = (n = this.layerList) == null ? void 0 : n.find((u) => u.id === i);
|
25458
25469
|
if (r)
|
25459
25470
|
return r;
|
25460
|
-
const l = await
|
25471
|
+
const l = await zt.get(`/api-user/gis-ir/${i}${t != null && t.service ? `?service=${t == null ? void 0 : t.service}` : ""}`);
|
25461
25472
|
if (l.statusText === "OK") {
|
25462
25473
|
const u = await l.data;
|
25463
25474
|
return !e || await e(u), u;
|
@@ -25598,7 +25609,7 @@ function oF(t, e, i, n, r, l) {
|
|
25598
25609
|
]))
|
25599
25610
|
], 4);
|
25600
25611
|
}
|
25601
|
-
const aF = /* @__PURE__ */
|
25612
|
+
const aF = /* @__PURE__ */ Ft(QL, [["render", oF], ["__scopeId", "data-v-3f5a9aff"]]), u1 = {
|
25602
25613
|
width: 200,
|
25603
25614
|
show: !0,
|
25604
25615
|
position: "horizontal"
|
@@ -25714,7 +25725,7 @@ const aF = /* @__PURE__ */ Lt(QL, [["render", oF], ["__scopeId", "data-v-3f5a9af
|
|
25714
25725
|
};
|
25715
25726
|
function mF(t, e, i, n, r, l) {
|
25716
25727
|
var a, g, _, S, k, M, P, I, N, V, G;
|
25717
|
-
const u =
|
25728
|
+
const u = Rt("VsPopupBody");
|
25718
25729
|
return Ee(), Re("div", {
|
25719
25730
|
class: ca((((a = r.popupSettings) == null ? void 0 : a.position) || "horizontal") + "-position")
|
25720
25731
|
}, [
|
@@ -25742,7 +25753,7 @@ function mF(t, e, i, n, r, l) {
|
|
25742
25753
|
]))
|
25743
25754
|
], 2);
|
25744
25755
|
}
|
25745
|
-
const gF = /* @__PURE__ */
|
25756
|
+
const gF = /* @__PURE__ */ Ft(lF, [["render", mF], ["__scopeId", "data-v-deb51e0a"]]), { Map: yF, NavigationControl: _F, Popup: vF } = YL, xF = {
|
25746
25757
|
mixins: [JL],
|
25747
25758
|
components: { VsMapPopup: gF },
|
25748
25759
|
props: {
|
@@ -25882,7 +25893,7 @@ const gF = /* @__PURE__ */ Lt(lF, [["render", mF], ["__scopeId", "data-v-deb51e0
|
|
25882
25893
|
}
|
25883
25894
|
}, bF = { class: "relative" }, wF = ["id"];
|
25884
25895
|
function SF(t, e, i, n, r, l) {
|
25885
|
-
const u =
|
25896
|
+
const u = Rt("VsMapPopup");
|
25886
25897
|
return Ee(), Re("div", bF, [
|
25887
25898
|
Y("div", {
|
25888
25899
|
id: r.mapId,
|
@@ -25895,7 +25906,7 @@ function SF(t, e, i, n, r, l) {
|
|
25895
25906
|
}, null, 8, ["object", "map-ref"])
|
25896
25907
|
]);
|
25897
25908
|
}
|
25898
|
-
const kF = /* @__PURE__ */
|
25909
|
+
const kF = /* @__PURE__ */ Ft(xF, [["render", SF]]), yo = "widget-map-source", TF = {
|
25899
25910
|
components: { VsMap: kF },
|
25900
25911
|
props: {
|
25901
25912
|
geometry: {
|
@@ -26000,7 +26011,7 @@ const kF = /* @__PURE__ */ Lt(xF, [["render", SF]]), yo = "widget-map-source", T
|
|
26000
26011
|
}
|
26001
26012
|
};
|
26002
26013
|
function MF(t, e, i, n, r, l) {
|
26003
|
-
const u =
|
26014
|
+
const u = Rt("VsMap");
|
26004
26015
|
return Ee(), Re("div", null, [
|
26005
26016
|
ii(u, {
|
26006
26017
|
map: r.map,
|
@@ -26009,7 +26020,7 @@ function MF(t, e, i, n, r, l) {
|
|
26009
26020
|
}, null, 8, ["map", "onLoad"])
|
26010
26021
|
]);
|
26011
26022
|
}
|
26012
|
-
const CF = /* @__PURE__ */
|
26023
|
+
const CF = /* @__PURE__ */ Ft(TF, [["render", MF]]), at = (t, e = 1e4) => (t = parseFloat(t + "") || 0, Math.round((t + Number.EPSILON) * e) / e), Z0 = function(t) {
|
26013
26024
|
if (!(t && t instanceof Element && t.offsetParent)) return !1;
|
26014
26025
|
const e = t.scrollHeight > t.clientHeight, i = window.getComputedStyle(t).overflowY, n = i.indexOf("hidden") !== -1, r = i.indexOf("visible") !== -1;
|
26015
26026
|
return e && !n && !r;
|
@@ -28987,7 +28998,7 @@ function qF(t, e, i, n, r, l) {
|
|
28987
28998
|
_S(t.$slots, "default")
|
28988
28999
|
], 512);
|
28989
29000
|
}
|
28990
|
-
const WF = /* @__PURE__ */
|
29001
|
+
const WF = /* @__PURE__ */ Ft(UF, [["render", qF]]), GF = {}, ZF = {
|
28991
29002
|
xmlns: "http://www.w3.org/2000/svg",
|
28992
29003
|
viewBox: "0 0 24 24",
|
28993
29004
|
fill: "none",
|
@@ -29008,7 +29019,7 @@ function YF(t, e, i, n, r, l) {
|
|
29008
29019
|
Y("path", { d: "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" }, null, -1)
|
29009
29020
|
]));
|
29010
29021
|
}
|
29011
|
-
const XF = /* @__PURE__ */
|
29022
|
+
const XF = /* @__PURE__ */ Ft(GF, [["render", YF]]), KF = {
|
29012
29023
|
componens: {
|
29013
29024
|
IconFile: XF
|
29014
29025
|
},
|
@@ -29042,7 +29053,7 @@ function tB(t, e, i, n, r, l) {
|
|
29042
29053
|
])
|
29043
29054
|
], 64);
|
29044
29055
|
}
|
29045
|
-
const iB = /* @__PURE__ */
|
29056
|
+
const iB = /* @__PURE__ */ Ft(KF, [["render", tB]]), nB = {}, rB = {
|
29046
29057
|
xmlns: "http://www.w3.org/2000/svg",
|
29047
29058
|
viewBox: "0 0 24 24",
|
29048
29059
|
fill: "none",
|
@@ -29064,7 +29075,7 @@ function sB(t, e, i, n, r, l) {
|
|
29064
29075
|
Y("path", { d: "M12 4l0 12" }, null, -1)
|
29065
29076
|
]));
|
29066
29077
|
}
|
29067
|
-
const S2 = /* @__PURE__ */
|
29078
|
+
const S2 = /* @__PURE__ */ Ft(nB, [["render", sB]]), oB = {}, aB = {
|
29068
29079
|
xmlns: "http://www.w3.org/2000/svg",
|
29069
29080
|
viewBox: "0 0 24 24",
|
29070
29081
|
fill: "none",
|
@@ -29079,7 +29090,7 @@ function lB(t, e, i, n, r, l) {
|
|
29079
29090
|
C_('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 6)
|
29080
29091
|
]));
|
29081
29092
|
}
|
29082
|
-
const k2 = /* @__PURE__ */
|
29093
|
+
const k2 = /* @__PURE__ */ Ft(oB, [["render", lB]]), cB = {
|
29083
29094
|
components: {
|
29084
29095
|
Fancybox: WF,
|
29085
29096
|
VsWidgetFileInfo: iB,
|
@@ -29130,7 +29141,7 @@ const k2 = /* @__PURE__ */ Lt(oB, [["render", lB]]), cB = {
|
|
29130
29141
|
},
|
29131
29142
|
async deleteFile() {
|
29132
29143
|
try {
|
29133
|
-
await
|
29144
|
+
await zt.delete(
|
29134
29145
|
`/api/widget/file/${this.item.entity_id}/${this.item.file_id}`
|
29135
29146
|
), this.$emit("update");
|
29136
29147
|
} catch (t) {
|
@@ -29149,7 +29160,7 @@ const k2 = /* @__PURE__ */ Lt(oB, [["render", lB]]), cB = {
|
|
29149
29160
|
class: "flex gap-x-3 w-full"
|
29150
29161
|
}, gB = { class: "lg:absolute lg:top-3 lg:end-3 group-hover:opacity-100 lg:opacity-0" }, yB = { class: "p-0.5 sm:p-1 inline-flex items-center gap-0.5 bg-white border border-gray-200 lg:shadow rounded-lg dark:bg-neutral-800 dark:border-neutral-700" }, _B = { class: "hs-tooltip inline-block" }, vB = { class: "hs-tooltip inline-block" };
|
29151
29162
|
function xB(t, e, i, n, r, l) {
|
29152
|
-
const u =
|
29163
|
+
const u = Rt("VsWidgetFileInfo"), a = Rt("Fancybox"), g = Rt("IconDownload"), _ = Rt("IconTrash");
|
29153
29164
|
return Ee(), Re("div", uB, [
|
29154
29165
|
i.item.ext === "jpg" || i.item.ext === "png" ? (Ee(), Re("div", hB, [
|
29155
29166
|
ii(a, null, {
|
@@ -29213,7 +29224,7 @@ function xB(t, e, i, n, r, l) {
|
|
29213
29224
|
])
|
29214
29225
|
]);
|
29215
29226
|
}
|
29216
|
-
const bB = /* @__PURE__ */
|
29227
|
+
const bB = /* @__PURE__ */ Ft(cB, [["render", xB]]), wB = {
|
29217
29228
|
props: ["text"]
|
29218
29229
|
}, SB = { class: "pl-3 text-sm font-medium text-gray-600" };
|
29219
29230
|
function kB(t, e, i, n, r, l) {
|
@@ -29221,7 +29232,7 @@ function kB(t, e, i, n, r, l) {
|
|
29221
29232
|
Y("p", SB, It(i.text), 1)
|
29222
29233
|
]);
|
29223
29234
|
}
|
29224
|
-
const T2 = /* @__PURE__ */
|
29235
|
+
const T2 = /* @__PURE__ */ Ft(wB, [["render", kB]]), TB = {}, MB = {
|
29225
29236
|
xmlns: "http://www.w3.org/2000/svg",
|
29226
29237
|
viewBox: "0 0 24 24",
|
29227
29238
|
fill: "none",
|
@@ -29243,7 +29254,7 @@ function CB(t, e, i, n, r, l) {
|
|
29243
29254
|
Y("path", { d: "M12 4l0 12" }, null, -1)
|
29244
29255
|
]));
|
29245
29256
|
}
|
29246
|
-
const M2 = /* @__PURE__ */
|
29257
|
+
const M2 = /* @__PURE__ */ Ft(TB, [["render", CB]]), EB = {
|
29247
29258
|
components: {
|
29248
29259
|
VsWidgetFileItem: bB,
|
29249
29260
|
VsEmptyWidget: T2,
|
@@ -29283,7 +29294,7 @@ const M2 = /* @__PURE__ */ Lt(TB, [["render", CB]]), EB = {
|
|
29283
29294
|
return;
|
29284
29295
|
}
|
29285
29296
|
try {
|
29286
|
-
const { data: t } = await
|
29297
|
+
const { data: t } = await zt.get(`/api/widget/file/${this.id}`);
|
29287
29298
|
this.files = t == null ? void 0 : t.rows;
|
29288
29299
|
} catch (t) {
|
29289
29300
|
console.error(t);
|
@@ -29296,7 +29307,7 @@ const M2 = /* @__PURE__ */ Lt(TB, [["render", CB]]), EB = {
|
|
29296
29307
|
i.append("file", e);
|
29297
29308
|
try {
|
29298
29309
|
const n = `/api/widget/file/${this.id}`;
|
29299
|
-
return await
|
29310
|
+
return await zt.post(n, i), this.$emit("update", "file-list"), e;
|
29300
29311
|
} catch (n) {
|
29301
29312
|
return console.error(n), null;
|
29302
29313
|
}
|
@@ -29327,7 +29338,7 @@ const M2 = /* @__PURE__ */ Lt(TB, [["render", CB]]), EB = {
|
|
29327
29338
|
}, FB = { key: 0 }, BB = { class: "p-4" }, NB = { class: "mt-1 text-gray-500 dark:text-neutral-500" }, $B = { class: "flex justify-end mt-4 gap-x-3" };
|
29328
29339
|
function VB(t, e, i, n, r, l) {
|
29329
29340
|
var S, k, M;
|
29330
|
-
const u =
|
29341
|
+
const u = Rt("IconUpload"), a = Rt("VsWidgetFileItem"), g = Rt("VsEmptyWidget"), _ = Rt("VsDialog");
|
29331
29342
|
return Ee(), Re("div", AB, [
|
29332
29343
|
Y("div", PB, [
|
29333
29344
|
(S = r.files) != null && S.length ? (Ee(), Re("h2", IB, " Кількість: " + It(r.files.length), 1)) : Ls("", !0),
|
@@ -29429,7 +29440,7 @@ function VB(t, e, i, n, r, l) {
|
|
29429
29440
|
}, 8, ["title", "visible"])
|
29430
29441
|
]);
|
29431
29442
|
}
|
29432
|
-
const jB = /* @__PURE__ */
|
29443
|
+
const jB = /* @__PURE__ */ Ft(EB, [["render", VB]]), UB = { class: "flex flex-col vs-widget-images xl:bg-white xl:rounded-xl dark:xl:bg-neutral-800 dark:xl:border-neutral-700" }, HB = { class: "flex items-center justify-between mb-4 gap-x-2" }, qB = { class: "flex items-center justify-end gap-x-2" }, WB = { class: "inline-flex items-center p-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white" }, GB = { class: "flex flex-wrap gap-[16px]" }, ZB = ["href", "data-caption"], YB = ["src", "alt"], XB = { class: "item__text-content bg-white opacity-0 rounded-b-lg absolute w-full bottom-0 p-3 flex gap-2.5 items-center justify-between" }, KB = { class: "text-xs w-[180px] block overflow-hidden overflow-ellipsis" }, JB = { class: "flex flex-wrap items-center text-xs text-gray-600 widget-images__item-desc" }, QB = { class: "flex items-center" }, eN = { class: "text-xs" }, tN = ["onClick"], iN = ["onClick"], nN = { class: "p-4" }, rN = { class: "mt-1 text-gray-500 dark:text-neutral-500" }, sN = { class: "flex justify-end mt-4 gap-x-3" }, oN = {
|
29433
29444
|
__name: "vs-widget-gallery",
|
29434
29445
|
props: {
|
29435
29446
|
id: {
|
@@ -29453,7 +29464,7 @@ const jB = /* @__PURE__ */ Lt(EB, [["render", VB]]), UB = { class: "flex flex-co
|
|
29453
29464
|
return;
|
29454
29465
|
}
|
29455
29466
|
try {
|
29456
|
-
const { data: I } = await
|
29467
|
+
const { data: I } = await zt.get(`/api/widget/gallery/${e == null ? void 0 : e.id}`);
|
29457
29468
|
i.value = I == null ? void 0 : I.rows, pi.bind("[data-fancybox='gallery']");
|
29458
29469
|
} catch (I) {
|
29459
29470
|
console.error(I);
|
@@ -29466,7 +29477,7 @@ const jB = /* @__PURE__ */ Lt(EB, [["render", VB]]), UB = { class: "flex flex-co
|
|
29466
29477
|
const G = new FormData();
|
29467
29478
|
G.append("file", V);
|
29468
29479
|
try {
|
29469
|
-
await
|
29480
|
+
await zt.post(`/api/widget/file/${e == null ? void 0 : e.id}`, G);
|
29470
29481
|
} catch (se) {
|
29471
29482
|
console.error(se);
|
29472
29483
|
}
|
@@ -29477,10 +29488,10 @@ const jB = /* @__PURE__ */ Lt(EB, [["render", VB]]), UB = { class: "flex flex-co
|
|
29477
29488
|
I.setAttribute("download", P == null ? void 0 : P.uploaded_name), I.href = P == null ? void 0 : P.file_path, I.click();
|
29478
29489
|
}, _ = (P) => {
|
29479
29490
|
r.value = P, l.value = {
|
29480
|
-
title: "
|
29481
|
-
message: "
|
29482
|
-
confirmButtonText: "
|
29483
|
-
cancelButtonText: "
|
29491
|
+
title: "Ви впевнені?",
|
29492
|
+
message: "Ви впевнені що хочете видалити зображення?",
|
29493
|
+
confirmButtonText: "Так, видалити ",
|
29494
|
+
cancelButtonText: "Відмінити",
|
29484
29495
|
confirm: async () => {
|
29485
29496
|
await S(), n.value = !1, await u();
|
29486
29497
|
},
|
@@ -29491,7 +29502,7 @@ const jB = /* @__PURE__ */ Lt(EB, [["render", VB]]), UB = { class: "flex flex-co
|
|
29491
29502
|
}, S = async () => {
|
29492
29503
|
var P, I;
|
29493
29504
|
try {
|
29494
|
-
await
|
29505
|
+
await zt.delete(
|
29495
29506
|
`/api/widget/gallery/${(P = r.value) == null ? void 0 : P.entity_id}/${(I = r.value) == null ? void 0 : I.file_id}`
|
29496
29507
|
);
|
29497
29508
|
} catch (N) {
|
@@ -29512,10 +29523,10 @@ const jB = /* @__PURE__ */ Lt(EB, [["render", VB]]), UB = { class: "flex flex-co
|
|
29512
29523
|
return new Date(P).toLocaleDateString("ru-RU", I);
|
29513
29524
|
};
|
29514
29525
|
return T_(() => e.id, u), E_(u), (P, I) => {
|
29515
|
-
const N =
|
29526
|
+
const N = Rt("VsDialog");
|
29516
29527
|
return Ee(), Re("div", UB, [
|
29517
29528
|
Y("div", HB, [
|
29518
|
-
I[3] || (I[3] = Y("h2", { class: "inline-block font-semibold text-gray-800 dark:text-neutral-200" },
|
29529
|
+
I[3] || (I[3] = Y("h2", { class: "inline-block font-semibold text-gray-800 dark:text-neutral-200" }, null, -1)),
|
29519
29530
|
Y("div", qB, [
|
29520
29531
|
Y("div", null, [
|
29521
29532
|
Y("label", null, [
|
@@ -34168,7 +34179,7 @@ class ng {
|
|
34168
34179
|
return Ut.between(e.resolve(this.anchor), e.resolve(this.head));
|
34169
34180
|
}
|
34170
34181
|
}
|
34171
|
-
class
|
34182
|
+
class Lt extends Kt {
|
34172
34183
|
/**
|
34173
34184
|
Create a node selection. Does not verify the validity of its
|
34174
34185
|
argument.
|
@@ -34179,13 +34190,13 @@ class Rt extends Kt {
|
|
34179
34190
|
}
|
34180
34191
|
map(e, i) {
|
34181
34192
|
let { deleted: n, pos: r } = i.mapResult(this.anchor), l = e.resolve(r);
|
34182
|
-
return n ? Kt.near(l) : new
|
34193
|
+
return n ? Kt.near(l) : new Lt(l);
|
34183
34194
|
}
|
34184
34195
|
content() {
|
34185
34196
|
return new ft(Ve.from(this.node), 0, 0);
|
34186
34197
|
}
|
34187
34198
|
eq(e) {
|
34188
|
-
return e instanceof
|
34199
|
+
return e instanceof Lt && e.anchor == this.anchor;
|
34189
34200
|
}
|
34190
34201
|
toJSON() {
|
34191
34202
|
return { type: "node", anchor: this.anchor };
|
@@ -34199,13 +34210,13 @@ class Rt extends Kt {
|
|
34199
34210
|
static fromJSON(e, i) {
|
34200
34211
|
if (typeof i.anchor != "number")
|
34201
34212
|
throw new RangeError("Invalid input for NodeSelection.fromJSON");
|
34202
|
-
return new
|
34213
|
+
return new Lt(e.resolve(i.anchor));
|
34203
34214
|
}
|
34204
34215
|
/**
|
34205
34216
|
Create a node selection from non-resolved positions.
|
34206
34217
|
*/
|
34207
34218
|
static create(e, i) {
|
34208
|
-
return new
|
34219
|
+
return new Lt(e.resolve(i));
|
34209
34220
|
}
|
34210
34221
|
/**
|
34211
34222
|
Determines whether the given node may be selected as a node
|
@@ -34215,8 +34226,8 @@ class Rt extends Kt {
|
|
34215
34226
|
return !e.isText && e.type.spec.selectable !== !1;
|
34216
34227
|
}
|
34217
34228
|
}
|
34218
|
-
|
34219
|
-
Kt.jsonID("node",
|
34229
|
+
Lt.prototype.visible = !1;
|
34230
|
+
Kt.jsonID("node", Lt);
|
34220
34231
|
class hv {
|
34221
34232
|
constructor(e) {
|
34222
34233
|
this.anchor = e;
|
@@ -34227,7 +34238,7 @@ class hv {
|
|
34227
34238
|
}
|
34228
34239
|
resolve(e) {
|
34229
34240
|
let i = e.resolve(this.anchor), n = i.nodeAfter;
|
34230
|
-
return n &&
|
34241
|
+
return n && Lt.isSelectable(n) ? new Lt(i) : Kt.near(i);
|
34231
34242
|
}
|
34232
34243
|
}
|
34233
34244
|
class eo extends Kt {
|
@@ -34279,8 +34290,8 @@ function Ou(t, e, i, n, r, l = !1) {
|
|
34279
34290
|
for (let u = n - (r > 0 ? 0 : 1); r > 0 ? u < e.childCount : u >= 0; u += r) {
|
34280
34291
|
let a = e.child(u);
|
34281
34292
|
if (a.isAtom) {
|
34282
|
-
if (!l &&
|
34283
|
-
return
|
34293
|
+
if (!l && Lt.isSelectable(a))
|
34294
|
+
return Lt.create(t, i - (r < 0 ? a.nodeSize : 0));
|
34284
34295
|
} else {
|
34285
34296
|
let g = Ou(t, a, i + r, r < 0 ? a.childCount : 0, r, l);
|
34286
34297
|
if (g)
|
@@ -36172,9 +36183,9 @@ function pv(t, e = null) {
|
|
36172
36183
|
for (g = u; r && !r.node; )
|
36173
36184
|
r = r.parent;
|
36174
36185
|
let k = r.node;
|
36175
|
-
if (r && k.isAtom &&
|
36186
|
+
if (r && k.isAtom && Lt.isSelectable(k) && r.parent && !(k.isInline && a3(i.focusNode, i.focusOffset, r.dom))) {
|
36176
36187
|
let M = r.posBefore;
|
36177
|
-
_ = new
|
36188
|
+
_ = new Lt(u == M ? a : n.resolve(M));
|
36178
36189
|
}
|
36179
36190
|
} else {
|
36180
36191
|
if (i instanceof t.dom.ownerDocument.defaultView.Selection && i.rangeCount > 1) {
|
@@ -36256,7 +36267,7 @@ function F3(t) {
|
|
36256
36267
|
r ? i.setStart(n.parentNode, er(n) + 1) : i.setStart(n, 0), i.collapse(!0), e.removeAllRanges(), e.addRange(i), !r && !t.state.selection.visible && Zr && pl <= 11 && (n.disabled = !0, n.disabled = !1);
|
36257
36268
|
}
|
36258
36269
|
function xT(t, e) {
|
36259
|
-
if (e instanceof
|
36270
|
+
if (e instanceof Lt) {
|
36260
36271
|
let i = t.docView.descAt(e.from);
|
36261
36272
|
i != t.lastSelectedViewDesc && (_w(t), i && i.selectNode(), t.lastSelectedViewDesc = i);
|
36262
36273
|
} else
|
@@ -36304,17 +36315,17 @@ function xw(t, e, i) {
|
|
36304
36315
|
} else if (n.empty) {
|
36305
36316
|
if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
36306
36317
|
let r = c_(t.state, e);
|
36307
|
-
return r && r instanceof
|
36318
|
+
return r && r instanceof Lt ? nl(t, r) : !1;
|
36308
36319
|
} else if (!(Ds && i.indexOf("m") > -1)) {
|
36309
36320
|
let r = n.$head, l = r.textOffset ? null : e < 0 ? r.nodeBefore : r.nodeAfter, u;
|
36310
36321
|
if (!l || l.isText)
|
36311
36322
|
return !1;
|
36312
36323
|
let a = e < 0 ? r.pos - l.nodeSize : r.pos;
|
36313
|
-
return l.isAtom || (u = t.docView.descAt(a)) && !u.contentDOM ?
|
36324
|
+
return l.isAtom || (u = t.docView.descAt(a)) && !u.contentDOM ? Lt.isSelectable(l) ? nl(t, new Lt(e < 0 ? t.state.doc.resolve(r.pos - l.nodeSize) : r)) : gp ? nl(t, new Ut(t.state.doc.resolve(e < 0 ? a : a + l.nodeSize))) : !1 : !1;
|
36314
36325
|
}
|
36315
36326
|
} else return !1;
|
36316
36327
|
else {
|
36317
|
-
if (n instanceof
|
36328
|
+
if (n instanceof Lt && n.node.isInline)
|
36318
36329
|
return nl(t, new Ut(e > 0 ? n.$to : n.$from));
|
36319
36330
|
{
|
36320
36331
|
let r = c_(t.state, e);
|
@@ -36470,7 +36481,7 @@ function ww(t, e, i) {
|
|
36470
36481
|
let { $from: r, $to: l } = n;
|
36471
36482
|
if (!r.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
|
36472
36483
|
let u = c_(t.state, e);
|
36473
|
-
if (u && u instanceof
|
36484
|
+
if (u && u instanceof Lt)
|
36474
36485
|
return nl(t, u);
|
36475
36486
|
}
|
36476
36487
|
if (!r.parent.inlineContent) {
|
@@ -36826,22 +36837,22 @@ function s5(t, e) {
|
|
36826
36837
|
if (e == -1)
|
36827
36838
|
return !1;
|
36828
36839
|
let i = t.state.doc.resolve(e), n = i.nodeAfter;
|
36829
|
-
return n && n.isAtom &&
|
36840
|
+
return n && n.isAtom && Lt.isSelectable(n) ? (qu(t, new Lt(i)), !0) : !1;
|
36830
36841
|
}
|
36831
36842
|
function o5(t, e) {
|
36832
36843
|
if (e == -1)
|
36833
36844
|
return !1;
|
36834
36845
|
let i = t.state.selection, n, r;
|
36835
|
-
i instanceof
|
36846
|
+
i instanceof Lt && (n = i.node);
|
36836
36847
|
let l = t.state.doc.resolve(e);
|
36837
36848
|
for (let u = l.depth + 1; u > 0; u--) {
|
36838
36849
|
let a = u > l.depth ? l.nodeAfter : l.node(u);
|
36839
|
-
if (
|
36850
|
+
if (Lt.isSelectable(a)) {
|
36840
36851
|
n && i.$from.depth > 0 && u >= i.$from.depth && l.before(i.$from.depth + 1) == i.$from.pos ? r = l.before(i.$from.depth) : r = l.before(u);
|
36841
36852
|
break;
|
36842
36853
|
}
|
36843
36854
|
}
|
36844
|
-
return r != null ? (qu(t,
|
36855
|
+
return r != null ? (qu(t, Lt.create(t.state.doc, r)), !0) : !1;
|
36845
36856
|
}
|
36846
36857
|
function a5(t, e, i, n, r) {
|
36847
36858
|
return gv(t, "handleClickOn", e, i, n) || t.someProp("handleClick", (l) => l(t, e, n)) || (r ? o5(t, i) : s5(t, i));
|
@@ -36863,8 +36874,8 @@ function u5(t, e, i) {
|
|
36863
36874
|
let u = l > r.depth ? r.nodeAfter : r.node(l), a = r.before(l);
|
36864
36875
|
if (u.inlineContent)
|
36865
36876
|
qu(t, Ut.create(n, a + 1, a + 1 + u.content.size));
|
36866
|
-
else if (
|
36867
|
-
qu(t,
|
36877
|
+
else if (Lt.isSelectable(u))
|
36878
|
+
qu(t, Lt.create(n, a));
|
36868
36879
|
else
|
36869
36880
|
continue;
|
36870
36881
|
return !0;
|
@@ -36895,7 +36906,7 @@ class h5 {
|
|
36895
36906
|
const a = r ? null : n.target, g = a ? e.docView.nearestDesc(a, !0) : null;
|
36896
36907
|
this.target = g && g.dom.nodeType == 1 ? g.dom : null;
|
36897
36908
|
let { selection: _ } = e.state;
|
36898
|
-
(n.button == 0 && l.type.spec.draggable && l.type.spec.selectable !== !1 || _ instanceof
|
36909
|
+
(n.button == 0 && l.type.spec.draggable && l.type.spec.selectable !== !1 || _ instanceof Lt && _.from <= u && _.to > u) && (this.mightDrag = {
|
36899
36910
|
node: l,
|
36900
36911
|
pos: u,
|
36901
36912
|
addAttr: !!(this.target && !this.target.draggable),
|
@@ -37070,12 +37081,12 @@ Ar.dragstart = (t, e) => {
|
|
37070
37081
|
if (n && n.done(), !i.dataTransfer)
|
37071
37082
|
return;
|
37072
37083
|
let r = t.state.selection, l = r.empty ? null : t.posAtCoords(og(i)), u;
|
37073
|
-
if (!(l && l.pos >= r.from && l.pos <= (r instanceof
|
37084
|
+
if (!(l && l.pos >= r.from && l.pos <= (r instanceof Lt ? r.to - 1 : r.to))) {
|
37074
37085
|
if (n && n.mightDrag)
|
37075
|
-
u =
|
37086
|
+
u = Lt.create(t.state.doc, n.mightDrag.pos);
|
37076
37087
|
else if (i.target && i.target.nodeType == 1) {
|
37077
37088
|
let k = t.docView.nearestDesc(i.target, !0);
|
37078
|
-
k && k.node.type.spec.draggable && k != t.docView && (u =
|
37089
|
+
k && k.node.type.spec.draggable && k != t.docView && (u = Lt.create(t.state.doc, k.posBefore));
|
37079
37090
|
}
|
37080
37091
|
}
|
37081
37092
|
let a = (u || t.state.selection).content(), { dom: g, text: _, slice: S } = ST(t, a);
|
@@ -37118,8 +37129,8 @@ Pr.drop = (t, e) => {
|
|
37118
37129
|
if (k ? _.replaceRangeWith(S, S, u.content.firstChild) : _.replaceRange(S, S, u), _.doc.eq(M))
|
37119
37130
|
return;
|
37120
37131
|
let P = _.doc.resolve(S);
|
37121
|
-
if (k &&
|
37122
|
-
_.setSelection(new
|
37132
|
+
if (k && Lt.isSelectable(u.content.firstChild) && P.nodeAfter && P.nodeAfter.sameMarkup(u.content.firstChild))
|
37133
|
+
_.setSelection(new Lt(P));
|
37123
37134
|
else {
|
37124
37135
|
let I = _.mapping.map(g);
|
37125
37136
|
_.mapping.maps[_.mapping.maps.length - 1].forEach((N, V, G, se) => I = se), _.setSelection(fv(t, P, _.doc.resolve(I)));
|
@@ -38135,7 +38146,7 @@ class z5 {
|
|
38135
38146
|
*/
|
38136
38147
|
scrollToSelection() {
|
38137
38148
|
let e = this.domSelectionRange().focusNode;
|
38138
|
-
if (!this.someProp("handleScrollToSelection", (i) => i(this))) if (this.state.selection instanceof
|
38149
|
+
if (!this.someProp("handleScrollToSelection", (i) => i(this))) if (this.state.selection instanceof Lt) {
|
38139
38150
|
let i = this.docView.domAfterPos(this.state.selection.from);
|
38140
38151
|
i.nodeType == 1 && aw(this, i.getBoundingClientRect(), e);
|
38141
38152
|
} else
|
@@ -38171,7 +38182,7 @@ class z5 {
|
|
38171
38182
|
let l = n.from + (this.state.doc.content.size - i.doc.content.size);
|
38172
38183
|
(l > 0 && this.state.doc.nodeAt(l)) == n.node && (r = l);
|
38173
38184
|
}
|
38174
|
-
this.dragging = new RT(e.slice, e.move, r < 0 ? void 0 :
|
38185
|
+
this.dragging = new RT(e.slice, e.move, r < 0 ? void 0 : Lt.create(this.state.doc, r));
|
38175
38186
|
}
|
38176
38187
|
someProp(e, i) {
|
38177
38188
|
let n = this._props && this._props[e], r;
|
@@ -38581,13 +38592,13 @@ const q5 = (t, e, i) => {
|
|
38581
38592
|
let l = r.nodeBefore;
|
38582
38593
|
if (qT(t, r, e, -1))
|
38583
38594
|
return !0;
|
38584
|
-
if (n.parent.content.size == 0 && (Ku(l, "end") ||
|
38595
|
+
if (n.parent.content.size == 0 && (Ku(l, "end") || Lt.isSelectable(l)))
|
38585
38596
|
for (let u = n.depth; ; u--) {
|
38586
38597
|
let a = ig(t.doc, n.before(u), n.after(u), ft.empty);
|
38587
38598
|
if (a && a.slice.size < a.to - a.from) {
|
38588
38599
|
if (e) {
|
38589
38600
|
let g = t.tr.step(a);
|
38590
|
-
g.setSelection(Ku(l, "end") ? Kt.findFrom(g.doc.resolve(g.mapping.map(r.pos, -1)), -1) :
|
38601
|
+
g.setSelection(Ku(l, "end") ? Kt.findFrom(g.doc.resolve(g.mapping.map(r.pos, -1)), -1) : Lt.create(g.doc, r.pos - l.nodeSize)), e(g.scrollIntoView());
|
38591
38602
|
}
|
38592
38603
|
return !0;
|
38593
38604
|
}
|
@@ -38655,7 +38666,7 @@ const Z5 = (t, e, i) => {
|
|
38655
38666
|
l = xv(n);
|
38656
38667
|
}
|
38657
38668
|
let u = l && l.nodeBefore;
|
38658
|
-
return !u || !
|
38669
|
+
return !u || !Lt.isSelectable(u) ? !1 : (e && e(t.tr.setSelection(Lt.create(t.doc, l.pos - u.nodeSize)).scrollIntoView()), !0);
|
38659
38670
|
};
|
38660
38671
|
function xv(t) {
|
38661
38672
|
if (!t.parent.type.spec.isolating)
|
@@ -38681,12 +38692,12 @@ const Y5 = (t, e, i) => {
|
|
38681
38692
|
let l = r.nodeAfter;
|
38682
38693
|
if (qT(t, r, e, 1))
|
38683
38694
|
return !0;
|
38684
|
-
if (n.parent.content.size == 0 && (Ku(l, "start") ||
|
38695
|
+
if (n.parent.content.size == 0 && (Ku(l, "start") || Lt.isSelectable(l))) {
|
38685
38696
|
let u = ig(t.doc, n.before(), n.after(), ft.empty);
|
38686
38697
|
if (u && u.slice.size < u.to - u.from) {
|
38687
38698
|
if (e) {
|
38688
38699
|
let a = t.tr.step(u);
|
38689
|
-
a.setSelection(Ku(l, "start") ? Kt.findFrom(a.doc.resolve(a.mapping.map(r.pos)), 1) :
|
38700
|
+
a.setSelection(Ku(l, "start") ? Kt.findFrom(a.doc.resolve(a.mapping.map(r.pos)), 1) : Lt.create(a.doc, a.mapping.map(r.pos))), e(a.scrollIntoView());
|
38690
38701
|
}
|
38691
38702
|
return !0;
|
38692
38703
|
}
|
@@ -38702,7 +38713,7 @@ const Y5 = (t, e, i) => {
|
|
38702
38713
|
l = bv(n);
|
38703
38714
|
}
|
38704
38715
|
let u = l && l.nodeAfter;
|
38705
|
-
return !u || !
|
38716
|
+
return !u || !Lt.isSelectable(u) ? !1 : (e && e(t.tr.setSelection(Lt.create(t.doc, l.pos)).scrollIntoView()), !0);
|
38706
38717
|
};
|
38707
38718
|
function bv(t) {
|
38708
38719
|
if (!t.parent.type.spec.isolating)
|
@@ -38716,7 +38727,7 @@ function bv(t) {
|
|
38716
38727
|
return null;
|
38717
38728
|
}
|
38718
38729
|
const K5 = (t, e) => {
|
38719
|
-
let i = t.selection, n = i instanceof
|
38730
|
+
let i = t.selection, n = i instanceof Lt, r;
|
38720
38731
|
if (n) {
|
38721
38732
|
if (i.node.isTextblock || !vl(t.doc, i.from))
|
38722
38733
|
return !1;
|
@@ -38725,12 +38736,12 @@ const K5 = (t, e) => {
|
|
38725
38736
|
return !1;
|
38726
38737
|
if (e) {
|
38727
38738
|
let l = t.tr.join(r);
|
38728
|
-
n && l.setSelection(
|
38739
|
+
n && l.setSelection(Lt.create(l.doc, r - t.doc.resolve(r).nodeBefore.nodeSize)), e(l.scrollIntoView());
|
38729
38740
|
}
|
38730
38741
|
return !0;
|
38731
38742
|
}, J5 = (t, e) => {
|
38732
38743
|
let i = t.selection, n;
|
38733
|
-
if (i instanceof
|
38744
|
+
if (i instanceof Lt) {
|
38734
38745
|
if (i.node.isTextblock || !vl(t.doc, i.to))
|
38735
38746
|
return !1;
|
38736
38747
|
n = i.to;
|
@@ -38790,7 +38801,7 @@ const t4 = (t, e) => {
|
|
38790
38801
|
return r == null ? !1 : (e && e(t.tr.lift(n, r).scrollIntoView()), !0);
|
38791
38802
|
}, r4 = (t, e) => {
|
38792
38803
|
let { $from: i, to: n } = t.selection, r, l = i.sharedDepth(n);
|
38793
|
-
return l == 0 ? !1 : (r = i.before(l), e && e(t.tr.setSelection(
|
38804
|
+
return l == 0 ? !1 : (r = i.before(l), e && e(t.tr.setSelection(Lt.create(t.doc, r))), !0);
|
38794
38805
|
};
|
38795
38806
|
function s4(t, e, i) {
|
38796
38807
|
let n = e.nodeBefore, r = e.nodeAfter, l = e.index();
|
@@ -40383,7 +40394,7 @@ function Ev(t, { checkChildren: e = !0, ignoreWhitespace: i = !1 } = {}) {
|
|
40383
40394
|
return !1;
|
40384
40395
|
}
|
40385
40396
|
function tM(t) {
|
40386
|
-
return t instanceof
|
40397
|
+
return t instanceof Lt;
|
40387
40398
|
}
|
40388
40399
|
function iM(t, e, i) {
|
40389
40400
|
const r = t.state.doc.content.size, l = la(e, 0, r), u = la(i, 0, r), a = t.coordsAtPos(l), g = t.coordsAtPos(u, -1), _ = Math.min(a.top, g.top), S = Math.max(a.bottom, g.bottom), k = Math.min(a.left, g.left), M = Math.max(a.right, g.right), P = M - k, I = S - _, G = {
|
@@ -40451,7 +40462,7 @@ const A$ = (t, e = {}) => ({ tr: i, state: n, dispatch: r }) => {
|
|
40451
40462
|
return l.isTextblock ? r().command(({ commands: u }) => Bw(l, e)(i) ? !0 : u.clearNodes()).command(({ state: u }) => Bw(l, e)(u, n)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
40452
40463
|
}, D$ = (t) => ({ tr: e, dispatch: i }) => {
|
40453
40464
|
if (i) {
|
40454
|
-
const { doc: n } = e, r = la(t, 0, n.content.size), l =
|
40465
|
+
const { doc: n } = e, r = la(t, 0, n.content.size), l = Lt.create(n, r);
|
40455
40466
|
e.setSelection(l);
|
40456
40467
|
}
|
40457
40468
|
return !0;
|
@@ -40474,7 +40485,7 @@ function Hw(t, e) {
|
|
40474
40485
|
}
|
40475
40486
|
const R$ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: i, dispatch: n, editor: r }) => {
|
40476
40487
|
const { selection: l, doc: u } = e, { $from: a, $to: g } = l, _ = r.extensionManager.attributes, S = im(_, a.node().type.name, a.node().attrs);
|
40477
|
-
if (l instanceof
|
40488
|
+
if (l instanceof Lt && l.node.isBlock)
|
40478
40489
|
return !a.parentOffset || !Uu(u, a.pos) ? !1 : (n && (t && Hw(i, r.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
40479
40490
|
if (!a.parent.isBlock)
|
40480
40491
|
return !1;
|
@@ -44236,7 +44247,7 @@ class dn extends Kt {
|
|
44236
44247
|
for (; ; ) {
|
44237
44248
|
let u = i > 0 ? l.firstChild : l.lastChild;
|
44238
44249
|
if (!u) {
|
44239
|
-
if (l.isAtom && !l.isText && !
|
44250
|
+
if (l.isAtom && !l.isText && !Lt.isSelectable(l)) {
|
44240
44251
|
e = e.doc.resolve(r + l.nodeSize * i), n = !1;
|
44241
44252
|
continue e;
|
44242
44253
|
}
|
@@ -44339,7 +44350,7 @@ function uj(t, e, i) {
|
|
44339
44350
|
if (!dn.valid(n))
|
44340
44351
|
return !1;
|
44341
44352
|
let r = t.posAtCoords({ left: i.clientX, top: i.clientY });
|
44342
|
-
return r && r.inside > -1 &&
|
44353
|
+
return r && r.inside > -1 && Lt.isSelectable(t.state.doc.nodeAt(r.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new dn(n))), !0);
|
44343
44354
|
}
|
44344
44355
|
function hj(t, e) {
|
44345
44356
|
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof dn))
|
@@ -44871,7 +44882,7 @@ const AM = EM(!1, !0), PM = EM(!0, !0), Tj = Wn.create({
|
|
44871
44882
|
if (a) {
|
44872
44883
|
const { $to: _ } = u.selection, S = _.end();
|
44873
44884
|
if (_.nodeAfter)
|
44874
|
-
_.nodeAfter.isTextblock ? u.setSelection(Ut.create(u.doc, _.pos + 1)) : _.nodeAfter.isBlock ? u.setSelection(
|
44885
|
+
_.nodeAfter.isTextblock ? u.setSelection(Ut.create(u.doc, _.pos + 1)) : _.nodeAfter.isBlock ? u.setSelection(Lt.create(u.doc, _.pos)) : u.setSelection(Ut.create(u.doc, _.pos));
|
44875
44886
|
else {
|
44876
44887
|
const k = (g = _.parent.type.contentMatch.defaultType) === null || g === void 0 ? void 0 : g.create();
|
44877
44888
|
k && (u.insert(S, k), u.setSelection(Ut.create(u.doc, S + 1)));
|
@@ -45452,7 +45463,7 @@ function Wj(t, e, i, n, r, l) {
|
|
45452
45463
|
], -1)
|
45453
45464
|
]));
|
45454
45465
|
}
|
45455
|
-
const Gj = /* @__PURE__ */
|
45466
|
+
const Gj = /* @__PURE__ */ Ft(qj, [["render", Wj]]), Zj = {
|
45456
45467
|
props: { editor: Object },
|
45457
45468
|
methods: {
|
45458
45469
|
toggleBulletList() {
|
@@ -45480,7 +45491,7 @@ function Yj(t, e, i, n, r, l) {
|
|
45480
45491
|
], -1)
|
45481
45492
|
]));
|
45482
45493
|
}
|
45483
|
-
const Xj = /* @__PURE__ */
|
45494
|
+
const Xj = /* @__PURE__ */ Ft(Zj, [["render", Yj]]), Kj = {
|
45484
45495
|
props: { editor: Object },
|
45485
45496
|
methods: {
|
45486
45497
|
toggleOrderedList() {
|
@@ -45509,7 +45520,7 @@ function Jj(t, e, i, n, r, l) {
|
|
45509
45520
|
], -1)
|
45510
45521
|
]));
|
45511
45522
|
}
|
45512
|
-
const Qj = /* @__PURE__ */
|
45523
|
+
const Qj = /* @__PURE__ */ Ft(Kj, [["render", Jj]]), e8 = {
|
45513
45524
|
props: { editor: Object },
|
45514
45525
|
methods: {
|
45515
45526
|
toggleCodeBlock() {
|
@@ -45540,7 +45551,7 @@ function t8(t, e, i, n, r, l) {
|
|
45540
45551
|
], -1)
|
45541
45552
|
]));
|
45542
45553
|
}
|
45543
|
-
const i8 = /* @__PURE__ */
|
45554
|
+
const i8 = /* @__PURE__ */ Ft(e8, [["render", t8]]), n8 = {
|
45544
45555
|
props: {
|
45545
45556
|
editor: Object
|
45546
45557
|
},
|
@@ -45575,7 +45586,7 @@ function r8(t, e, i, n, r, l) {
|
|
45575
45586
|
Y("span", { class: "sr-only" }, "Bold", -1)
|
45576
45587
|
]), 2);
|
45577
45588
|
}
|
45578
|
-
const s8 = /* @__PURE__ */
|
45589
|
+
const s8 = /* @__PURE__ */ Ft(n8, [["render", r8]]), o8 = {
|
45579
45590
|
props: {
|
45580
45591
|
editor: Object
|
45581
45592
|
},
|
@@ -45610,7 +45621,7 @@ function a8(t, e, i, n, r, l) {
|
|
45610
45621
|
Y("span", { class: "sr-only" }, "Italic", -1)
|
45611
45622
|
]), 2);
|
45612
45623
|
}
|
45613
|
-
const l8 = /* @__PURE__ */
|
45624
|
+
const l8 = /* @__PURE__ */ Ft(o8, [["render", a8]]), c8 = {}, u8 = {
|
45614
45625
|
"aria-hidden": "true",
|
45615
45626
|
xmlns: "http://www.w3.org/2000/svg",
|
45616
45627
|
fill: "none",
|
@@ -45626,7 +45637,7 @@ function h8(t, e, i, n, r, l) {
|
|
45626
45637
|
}, null, -1)
|
45627
45638
|
]));
|
45628
45639
|
}
|
45629
|
-
const d8 = /* @__PURE__ */
|
45640
|
+
const d8 = /* @__PURE__ */ Ft(c8, [["render", h8]]), p8 = {
|
45630
45641
|
components: { IconA: d8 },
|
45631
45642
|
props: { editor: Object },
|
45632
45643
|
data() {
|
@@ -45655,7 +45666,7 @@ const d8 = /* @__PURE__ */ Lt(c8, [["render", h8]]), p8 = {
|
|
45655
45666
|
}
|
45656
45667
|
}, f8 = { class: "relative flex" }, m8 = { class: "flex w-[160px] flex-wrap gap-[4px]" }, g8 = ["onClick"];
|
45657
45668
|
function y8(t, e, i, n, r, l) {
|
45658
|
-
const u =
|
45669
|
+
const u = Rt("IconA"), a = Rt("VsPopover");
|
45659
45670
|
return Ee(), gn(a, {
|
45660
45671
|
ref: "popover",
|
45661
45672
|
placement: "bottom"
|
@@ -45688,7 +45699,7 @@ function y8(t, e, i, n, r, l) {
|
|
45688
45699
|
_: 1
|
45689
45700
|
}, 512);
|
45690
45701
|
}
|
45691
|
-
const _8 = /* @__PURE__ */
|
45702
|
+
const _8 = /* @__PURE__ */ Ft(p8, [["render", y8]]), v8 = {}, x8 = {
|
45692
45703
|
xmlns: "http://www.w3.org/2000/svg",
|
45693
45704
|
viewBox: "0 0 24 24",
|
45694
45705
|
fill: "none",
|
@@ -45710,7 +45721,7 @@ function b8(t, e, i, n, r, l) {
|
|
45710
45721
|
Y("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
45711
45722
|
]));
|
45712
45723
|
}
|
45713
|
-
const w8 = /* @__PURE__ */
|
45724
|
+
const w8 = /* @__PURE__ */ Ft(v8, [["render", b8]]), S8 = {
|
45714
45725
|
components: { IconMore: w8 },
|
45715
45726
|
props: { editor: Object },
|
45716
45727
|
methods: {
|
@@ -45723,7 +45734,7 @@ const w8 = /* @__PURE__ */ Lt(v8, [["render", b8]]), S8 = {
|
|
45723
45734
|
}
|
45724
45735
|
};
|
45725
45736
|
function k8(t, e, i, n, r, l) {
|
45726
|
-
const u =
|
45737
|
+
const u = Rt("IconMore"), a = Rt("VsPopover");
|
45727
45738
|
return Ee(), gn(a, {
|
45728
45739
|
ref: "popover",
|
45729
45740
|
placement: "bottom"
|
@@ -45760,7 +45771,7 @@ function k8(t, e, i, n, r, l) {
|
|
45760
45771
|
_: 1
|
45761
45772
|
}, 512);
|
45762
45773
|
}
|
45763
|
-
const T8 = /* @__PURE__ */
|
45774
|
+
const T8 = /* @__PURE__ */ Ft(S8, [["render", k8]]), M8 = {
|
45764
45775
|
bold: s8,
|
45765
45776
|
italic: l8,
|
45766
45777
|
text_more: T8,
|
@@ -45889,7 +45900,7 @@ const T8 = /* @__PURE__ */ Lt(S8, [["render", k8]]), M8 = {
|
|
45889
45900
|
class: "flex flex-wrap items-center w-full gap-2 px-3 py-2 border-b editor-toolbar dark:border-gray-600"
|
45890
45901
|
};
|
45891
45902
|
function P8(t, e, i, n, r, l) {
|
45892
|
-
const u =
|
45903
|
+
const u = Rt("EditorContent");
|
45893
45904
|
return Ee(), Re("div", E8, [
|
45894
45905
|
r.editor ? (Ee(), Re("div", A8, [
|
45895
45906
|
(Ee(!0), Re(yn, null, Cr(l.controlsList, (a, g) => (Ee(), gn(zE(a), {
|
@@ -45908,7 +45919,7 @@ function P8(t, e, i, n, r, l) {
|
|
45908
45919
|
])
|
45909
45920
|
]);
|
45910
45921
|
}
|
45911
|
-
const DM = /* @__PURE__ */
|
45922
|
+
const DM = /* @__PURE__ */ Ft(C8, [["render", P8]]), I8 = (t) => {
|
45912
45923
|
const e = /(\b\S)?/g, i = t.match(e);
|
45913
45924
|
return i ? i.join("").toUpperCase() : "";
|
45914
45925
|
}, D8 = {
|
@@ -45952,7 +45963,7 @@ function B8(t, e, i, n, r, l) {
|
|
45952
45963
|
])) : Ls("", !0)
|
45953
45964
|
]);
|
45954
45965
|
}
|
45955
|
-
const N8 = /* @__PURE__ */
|
45966
|
+
const N8 = /* @__PURE__ */ Ft(D8, [["render", B8]]), $8 = {
|
45956
45967
|
components: {
|
45957
45968
|
VsWidgetCommentsAvatar: N8,
|
45958
45969
|
VsTextEditor: DM
|
@@ -46015,7 +46026,7 @@ const N8 = /* @__PURE__ */ Lt(D8, [["render", B8]]), $8 = {
|
|
46015
46026
|
},
|
46016
46027
|
async updateComment() {
|
46017
46028
|
try {
|
46018
|
-
await
|
46029
|
+
await zt.post(
|
46019
46030
|
`/api/widget/comment/${this.id}/${this.comment.communication_id}`,
|
46020
46031
|
{
|
46021
46032
|
body: this.textareaValue
|
@@ -46034,7 +46045,7 @@ const N8 = /* @__PURE__ */ Lt(D8, [["render", B8]]), $8 = {
|
|
46034
46045
|
},
|
46035
46046
|
async deleteComment() {
|
46036
46047
|
try {
|
46037
|
-
await
|
46048
|
+
await zt.delete(
|
46038
46049
|
`/api/widget/comment/${this.id}/${this.comment.communication_id}`
|
46039
46050
|
), this.$emit("list-update"), this.isCommentActionVisible = !1;
|
46040
46051
|
} catch {
|
@@ -46051,7 +46062,7 @@ const N8 = /* @__PURE__ */ Lt(D8, [["render", B8]]), $8 = {
|
|
46051
46062
|
}
|
46052
46063
|
}, V8 = { class: "p-6 pl-1 text-base bg-white dark:bg-gray-900" }, j8 = { class: "flex justify-between items-center mb-2" }, U8 = { class: "flex items-center" }, H8 = { class: "inline-flex items-center mr-3 text-sm text-gray-900 dark:text-white font-semibold" }, q8 = { class: "text-sm text-gray-600 dark:text-gray-400" }, W8 = { class: "flex flex-col items-center gap-[4px]" }, G8 = ["innerHTML"], Z8 = { class: "flex flex-col gap-[8px] text-sm font-medium text-gray-500" }, Y8 = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" };
|
46053
46064
|
function X8(t, e, i, n, r, l) {
|
46054
|
-
const u =
|
46065
|
+
const u = Rt("VsWidgetCommentsAvatar"), a = Rt("VsPopover"), g = Rt("VsTextEditor"), _ = Rt("VsDialog");
|
46055
46066
|
return Ee(), Re(yn, null, [
|
46056
46067
|
Y("div", V8, [
|
46057
46068
|
Y("div", j8, [
|
@@ -46138,7 +46149,7 @@ function X8(t, e, i, n, r, l) {
|
|
46138
46149
|
}, 8, ["visible"])
|
46139
46150
|
], 64);
|
46140
46151
|
}
|
46141
|
-
const K8 = /* @__PURE__ */
|
46152
|
+
const K8 = /* @__PURE__ */ Ft($8, [["render", X8]]), J8 = {
|
46142
46153
|
components: {
|
46143
46154
|
VsWidgetCommentsItem: K8
|
46144
46155
|
},
|
@@ -46175,7 +46186,7 @@ const K8 = /* @__PURE__ */ Lt($8, [["render", X8]]), J8 = {
|
|
46175
46186
|
return;
|
46176
46187
|
}
|
46177
46188
|
try {
|
46178
|
-
const { data: t } = await
|
46189
|
+
const { data: t } = await zt.get(`/api/widget/comment/${this.id}`);
|
46179
46190
|
this.comments = t.rows, this.user = t.user;
|
46180
46191
|
} catch (t) {
|
46181
46192
|
this.isLoadFailed = !0, console.error(t);
|
@@ -46199,7 +46210,7 @@ const K8 = /* @__PURE__ */ Lt($8, [["render", X8]]), J8 = {
|
|
46199
46210
|
class: "max-h-[300px] overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
|
46200
46211
|
}, tU = { key: 1 }, iU = { class: "p-4" }, nU = { class: "mt-1 text-gray-500 dark:text-neutral-500" }, rU = { class: "mt-4 flex justify-end gap-x-3" };
|
46201
46212
|
function sU(t, e, i, n, r, l) {
|
46202
|
-
const u =
|
46213
|
+
const u = Rt("VsErrorOnLoading"), a = Rt("VsWidgetCommentsItem"), g = Rt("VsLoader"), _ = Rt("VsDialog");
|
46203
46214
|
return Ee(), Re("div", Q8, [
|
46204
46215
|
r.isLoaded ? (Ee(), Re(yn, { key: 0 }, [
|
46205
46216
|
r.isLoadFailed ? (Ee(), gn(u, { key: 0 })) : (Ee(), Re(yn, { key: 1 }, [
|
@@ -46251,7 +46262,7 @@ function sU(t, e, i, n, r, l) {
|
|
46251
46262
|
}, 8, ["title", "visible"])
|
46252
46263
|
]);
|
46253
46264
|
}
|
46254
|
-
const oU = /* @__PURE__ */
|
46265
|
+
const oU = /* @__PURE__ */ Ft(J8, [["render", sU]]), aU = {
|
46255
46266
|
components: { VsTextEditor: DM },
|
46256
46267
|
props: {
|
46257
46268
|
id: { type: String, default: () => "" },
|
@@ -46268,7 +46279,7 @@ const oU = /* @__PURE__ */ Lt(J8, [["render", sU]]), aU = {
|
|
46268
46279
|
async addNewComment() {
|
46269
46280
|
if (this.commentContent)
|
46270
46281
|
try {
|
46271
|
-
await
|
46282
|
+
await zt.post(`/api/widget/comment/${this.id}`, {
|
46272
46283
|
body: this.commentContent
|
46273
46284
|
}), this.commentContent = "", this.$emit("list-update");
|
46274
46285
|
} catch (t) {
|
@@ -46281,7 +46292,7 @@ const oU = /* @__PURE__ */ Lt(J8, [["render", sU]]), aU = {
|
|
46281
46292
|
}
|
46282
46293
|
}, lU = { class: "flex flex-col items-start w-full widget-comment-form" }, cU = { class: "w-full mb-4 bg-white border-gray-200 dark:bg-gray-800 dark:border-gray-700" }, uU = { class: "flex" };
|
46283
46294
|
function hU(t, e, i, n, r, l) {
|
46284
|
-
const u =
|
46295
|
+
const u = Rt("VsTextEditor");
|
46285
46296
|
return Ee(), Re("div", lU, [
|
46286
46297
|
Y("div", cU, [
|
46287
46298
|
ii(u, {
|
@@ -46299,7 +46310,7 @@ function hU(t, e, i, n, r, l) {
|
|
46299
46310
|
])
|
46300
46311
|
]);
|
46301
46312
|
}
|
46302
|
-
const dU = /* @__PURE__ */
|
46313
|
+
const dU = /* @__PURE__ */ Ft(aU, [["render", hU]]), pU = {
|
46303
46314
|
components: {
|
46304
46315
|
VsWidgetCommentsList: oU,
|
46305
46316
|
VsWidgetCommentsAddForm: dU
|
@@ -46332,7 +46343,7 @@ const dU = /* @__PURE__ */ Lt(aU, [["render", hU]]), pU = {
|
|
46332
46343
|
methods: {
|
46333
46344
|
async getUsersList() {
|
46334
46345
|
try {
|
46335
|
-
const { data: t } = await
|
46346
|
+
const { data: t } = await zt.get("/api/suggest/core.user_mentioned");
|
46336
46347
|
this.options = t;
|
46337
46348
|
} catch (t) {
|
46338
46349
|
console.log(t);
|
@@ -46347,7 +46358,7 @@ const dU = /* @__PURE__ */ Lt(aU, [["render", hU]]), pU = {
|
|
46347
46358
|
}
|
46348
46359
|
}, fU = { class: "w-full bg-white-200" };
|
46349
46360
|
function mU(t, e, i, n, r, l) {
|
46350
|
-
const u =
|
46361
|
+
const u = Rt("VsWidgetCommentsAddForm"), a = Rt("VsWidgetCommentsList");
|
46351
46362
|
return Ee(), Re("div", fU, [
|
46352
46363
|
e[2] || (e[2] = Y("div", { class: "flex items-center justify-between w-full mb-4 gap-x-2" }, null, -1)),
|
46353
46364
|
ii(u, {
|
@@ -46365,7 +46376,7 @@ function mU(t, e, i, n, r, l) {
|
|
46365
46376
|
}, null, 8, ["options", "id", "prefilled-data"])
|
46366
46377
|
]);
|
46367
46378
|
}
|
46368
|
-
const gU = /* @__PURE__ */
|
46379
|
+
const gU = /* @__PURE__ */ Ft(pU, [["render", mU]]), mS = (t) => new Date(t).toLocaleDateString("uk-UK", {
|
46369
46380
|
day: "numeric",
|
46370
46381
|
month: "long",
|
46371
46382
|
year: "numeric",
|
@@ -46393,7 +46404,7 @@ const gU = /* @__PURE__ */ Lt(pU, [["render", mU]]), mS = (t) => new Date(t).toL
|
|
46393
46404
|
function bU(t, e, i, n, r, l) {
|
46394
46405
|
return Ee(), Re("div", xU, It(t.inItials), 1);
|
46395
46406
|
}
|
46396
|
-
const wU = /* @__PURE__ */
|
46407
|
+
const wU = /* @__PURE__ */ Ft(vU, [["render", bU]]), k_ = {
|
46397
46408
|
load() {
|
46398
46409
|
try {
|
46399
46410
|
const t = Array.from(arguments);
|
@@ -46470,7 +46481,7 @@ const wU = /* @__PURE__ */ Lt(vU, [["render", bU]]), k_ = {
|
|
46470
46481
|
function TU(t, e, i, n, r, l) {
|
46471
46482
|
return Ee(), Re("div", kU);
|
46472
46483
|
}
|
46473
|
-
const MU = /* @__PURE__ */
|
46484
|
+
const MU = /* @__PURE__ */ Ft(SU, [["render", TU]]), CU = ro({
|
46474
46485
|
components: {
|
46475
46486
|
VsWidgetHistoryItemAvatar: wU,
|
46476
46487
|
VsWidgetHistoryItemMap: MU
|
@@ -46501,7 +46512,7 @@ const MU = /* @__PURE__ */ Lt(SU, [["render", TU]]), CU = ro({
|
|
46501
46512
|
class: "flex items-center gap-2 text-gray-700 text-sm"
|
46502
46513
|
}, FU = { class: "font-medium" }, BU = { class: "font-medium" };
|
46503
46514
|
function NU(t, e, i, n, r, l) {
|
46504
|
-
const u =
|
46515
|
+
const u = Rt("VsWidgetHistoryItemAvatar"), a = Rt("VsWidgetHistoryItemMap");
|
46505
46516
|
return Ee(), Re("div", EU, [
|
46506
46517
|
Y("div", AU, [
|
46507
46518
|
ii(u, {
|
@@ -46533,7 +46544,7 @@ function NU(t, e, i, n, r, l) {
|
|
46533
46544
|
])
|
46534
46545
|
]);
|
46535
46546
|
}
|
46536
|
-
const $U = /* @__PURE__ */
|
46547
|
+
const $U = /* @__PURE__ */ Ft(CU, [["render", NU]]), VU = ro({
|
46537
46548
|
components: {
|
46538
46549
|
VsWidgetHistoryItem: $U,
|
46539
46550
|
VsEmptyWidget: T2
|
@@ -46563,7 +46574,7 @@ const $U = /* @__PURE__ */ Lt(CU, [["render", NU]]), VU = ro({
|
|
46563
46574
|
return;
|
46564
46575
|
}
|
46565
46576
|
try {
|
46566
|
-
const { data: t } = await
|
46577
|
+
const { data: t } = await zt.get(
|
46567
46578
|
`/api/widget/history/${this.id}`
|
46568
46579
|
);
|
46569
46580
|
this.history = t;
|
@@ -46589,7 +46600,7 @@ const $U = /* @__PURE__ */ Lt(CU, [["render", NU]]), VU = ro({
|
|
46589
46600
|
};
|
46590
46601
|
function qU(t, e, i, n, r, l) {
|
46591
46602
|
var a;
|
46592
|
-
const u =
|
46603
|
+
const u = Rt("VsWidgetHistoryItem");
|
46593
46604
|
return Ee(), Re("div", jU, [
|
46594
46605
|
e[0] || (e[0] = Y("div", { class: "flex items-center justify-between mb-4 gap-x-2" }, null, -1)),
|
46595
46606
|
(a = t.history.rows) != null && a.length ? (Ee(), Re("ul", UU, [
|
@@ -46602,7 +46613,7 @@ function qU(t, e, i, n, r, l) {
|
|
46602
46613
|
])) : (Ee(), Re("div", HU, " Історія відсутні "))
|
46603
46614
|
]);
|
46604
46615
|
}
|
46605
|
-
const WU = /* @__PURE__ */
|
46616
|
+
const WU = /* @__PURE__ */ Ft(VU, [["render", qU]]), GU = {
|
46606
46617
|
"vs-widget-map": CF,
|
46607
46618
|
"vs-widget-gallery": oN,
|
46608
46619
|
"vs-widget-comments": gU,
|
@@ -47013,7 +47024,7 @@ function QU(t, e, i, n, r, l) {
|
|
47013
47024
|
Y("path", { d: "m21 21-4.3-4.3" }, null, -1)
|
47014
47025
|
]));
|
47015
47026
|
}
|
47016
|
-
const eH = /* @__PURE__ */
|
47027
|
+
const eH = /* @__PURE__ */ Ft(KU, [["render", QU]]), tH = {
|
47017
47028
|
components: { IconSearch: eH },
|
47018
47029
|
data() {
|
47019
47030
|
return {
|
@@ -47038,7 +47049,7 @@ const eH = /* @__PURE__ */ Lt(KU, [["render", QU]]), tH = {
|
|
47038
47049
|
methods: {
|
47039
47050
|
async getData() {
|
47040
47051
|
try {
|
47041
|
-
const { data: t } = await
|
47052
|
+
const { data: t } = await zt.get("/api/user-cls");
|
47042
47053
|
this.data = t;
|
47043
47054
|
} catch {
|
47044
47055
|
}
|
@@ -47052,7 +47063,7 @@ const eH = /* @__PURE__ */ Lt(KU, [["render", QU]]), tH = {
|
|
47052
47063
|
style: { height: "calc(100vh - 100px)" }
|
47053
47064
|
}, sH = { class: "w-[99%] overflow-hidden overflow-ellipsis" }, oH = { class: "ml-auto text-[10px] h-[16px] px-[6px] flex items-center justify-center rounded-full bg-gray-200" };
|
47054
47065
|
function aH(t, e, i, n, r, l) {
|
47055
|
-
const u =
|
47066
|
+
const u = Rt("IconSearch"), a = Rt("VsText"), g = Rt("router-link");
|
47056
47067
|
return Ee(), Re("div", iH, [
|
47057
47068
|
Y("div", nH, [
|
47058
47069
|
ii(u, {
|
@@ -47091,7 +47102,7 @@ function aH(t, e, i, n, r, l) {
|
|
47091
47102
|
])
|
47092
47103
|
]);
|
47093
47104
|
}
|
47094
|
-
const lH = /* @__PURE__ */
|
47105
|
+
const lH = /* @__PURE__ */ Ft(tH, [["render", aH]]), cH = {
|
47095
47106
|
props: {
|
47096
47107
|
title: { type: String, default: () => "Дані для відображення відсутні" },
|
47097
47108
|
text: {
|
@@ -47111,7 +47122,7 @@ function mH(t, e, i, n, r, l) {
|
|
47111
47122
|
])
|
47112
47123
|
]);
|
47113
47124
|
}
|
47114
|
-
const gH = /* @__PURE__ */
|
47125
|
+
const gH = /* @__PURE__ */ Ft(cH, [["render", mH]]), yH = {
|
47115
47126
|
props: {
|
47116
47127
|
modelValue: { type: String, default: () => "#172B4D" },
|
47117
47128
|
colors: {
|
@@ -47139,7 +47150,7 @@ const gH = /* @__PURE__ */ Lt(cH, [["render", mH]]), yH = {
|
|
47139
47150
|
}
|
47140
47151
|
}, _H = { class: "flex w-[160px] flex-wrap gap-[4px]" }, vH = ["onClick"];
|
47141
47152
|
function xH(t, e, i, n, r, l) {
|
47142
|
-
const u =
|
47153
|
+
const u = Rt("VsPopover");
|
47143
47154
|
return Ee(), gn(u, {
|
47144
47155
|
ref: "popover",
|
47145
47156
|
placement: "bottom"
|
@@ -47165,7 +47176,7 @@ function xH(t, e, i, n, r, l) {
|
|
47165
47176
|
_: 1
|
47166
47177
|
}, 512);
|
47167
47178
|
}
|
47168
|
-
const OM = /* @__PURE__ */
|
47179
|
+
const OM = /* @__PURE__ */ Ft(yH, [["render", xH]]), bH = {
|
47169
47180
|
components: { VsChoceColor: OM },
|
47170
47181
|
props: { item: Object },
|
47171
47182
|
data() {
|
@@ -47190,7 +47201,7 @@ const OM = /* @__PURE__ */ Lt(yH, [["render", xH]]), bH = {
|
|
47190
47201
|
}, wH = { class: "relative flex items-center p-3 bg-white border border-gray-200 group gap-x-3 rounded-xl" }, SH = { class: "flex flex-col" }, kH = { class: "flex gap-[30px]" }, TH = { class: "block text-sm font-semibold text-gray-800 text-start z-[10] cursor-pointer" }, MH = { class: "block text-sm font-semibold text-gray-400 text-start z-[10] cursor-pointer" }, CH = { class: "block text-xs text-gray-500 truncate dark:text-neutral-500" };
|
47191
47202
|
function EH(t, e, i, n, r, l) {
|
47192
47203
|
var g;
|
47193
|
-
const u =
|
47204
|
+
const u = Rt("VsChoceColor"), a = Rt("VsInlineEdit");
|
47194
47205
|
return Ee(), Re("div", wH, [
|
47195
47206
|
ii(u, {
|
47196
47207
|
modelValue: r.color,
|
@@ -47223,7 +47234,7 @@ function EH(t, e, i, n, r, l) {
|
|
47223
47234
|
])
|
47224
47235
|
]);
|
47225
47236
|
}
|
47226
|
-
const AH = /* @__PURE__ */
|
47237
|
+
const AH = /* @__PURE__ */ Ft(bH, [["render", EH]]), PH = {
|
47227
47238
|
components: { VsReesterUsersItem: AH },
|
47228
47239
|
props: { list: Array },
|
47229
47240
|
data() {
|
@@ -47261,7 +47272,7 @@ const AH = /* @__PURE__ */ Lt(bH, [["render", EH]]), PH = {
|
|
47261
47272
|
style: { width: "calc(100vw - 1000px)", "max-height": "calc(100vh - 430px)" }
|
47262
47273
|
}, DH = ["onDragstart", "onDrop"];
|
47263
47274
|
function OH(t, e, i, n, r, l) {
|
47264
|
-
const u =
|
47275
|
+
const u = Rt("VsReesterUsersItem");
|
47265
47276
|
return Ee(), Re("ul", IH, [
|
47266
47277
|
(Ee(!0), Re(yn, null, Cr(i.list, (a, g) => (Ee(), Re("li", {
|
47267
47278
|
key: a == null ? void 0 : a.id,
|
@@ -47278,7 +47289,7 @@ function OH(t, e, i, n, r, l) {
|
|
47278
47289
|
], 40, DH))), 128))
|
47279
47290
|
]);
|
47280
47291
|
}
|
47281
|
-
const zH = /* @__PURE__ */
|
47292
|
+
const zH = /* @__PURE__ */ Ft(PH, [["render", OH], ["__scopeId", "data-v-87c0b333"]]), RH = {
|
47282
47293
|
components: {
|
47283
47294
|
VsNoData: gH,
|
47284
47295
|
VsChoceColor: OM,
|
@@ -47316,7 +47327,7 @@ const zH = /* @__PURE__ */ Lt(PH, [["render", OH], ["__scopeId", "data-v-87c0b33
|
|
47316
47327
|
var t;
|
47317
47328
|
this.data = null;
|
47318
47329
|
try {
|
47319
|
-
const { data: e } = await
|
47330
|
+
const { data: e } = await zt.get(
|
47320
47331
|
`/api/user-cls/${(t = this.$route.query) == null ? void 0 : t.name}`
|
47321
47332
|
);
|
47322
47333
|
this.data = e;
|
@@ -47327,7 +47338,7 @@ const zH = /* @__PURE__ */ Lt(PH, [["render", OH], ["__scopeId", "data-v-87c0b33
|
|
47327
47338
|
var t, e, i, n;
|
47328
47339
|
try {
|
47329
47340
|
const { form: r } = this.$refs;
|
47330
|
-
await r.doValidation(), await
|
47341
|
+
await r.doValidation(), await zt.post("/api/user-cls", {
|
47331
47342
|
name: (t = this.$route.query) == null ? void 0 : t.name,
|
47332
47343
|
children: [
|
47333
47344
|
...((e = this.data) == null ? void 0 : e.children) || [],
|
@@ -47346,7 +47357,7 @@ const zH = /* @__PURE__ */ Lt(PH, [["render", OH], ["__scopeId", "data-v-87c0b33
|
|
47346
47357
|
var e, i;
|
47347
47358
|
this.data.children = t;
|
47348
47359
|
try {
|
47349
|
-
await
|
47360
|
+
await zt.post("/api/user-cls", {
|
47350
47361
|
name: (e = this.$route.query) == null ? void 0 : e.name,
|
47351
47362
|
children: [...((i = this.data) == null ? void 0 : i.children) || []]
|
47352
47363
|
}), await this.getData();
|
@@ -47365,7 +47376,7 @@ const zH = /* @__PURE__ */ Lt(PH, [["render", OH], ["__scopeId", "data-v-87c0b33
|
|
47365
47376
|
}, BH = { class: "flex items-end w-full gap-[4px]" };
|
47366
47377
|
function NH(t, e, i, n, r, l) {
|
47367
47378
|
var k, M, P, I, N;
|
47368
|
-
const u =
|
47379
|
+
const u = Rt("VsForm"), a = Rt("VsChoceColor"), g = Rt("IconCheck"), _ = Rt("VsReesterUsersList"), S = Rt("VsNoData");
|
47369
47380
|
return Ee(), Re("div", LH, [
|
47370
47381
|
(M = (k = t.$route) == null ? void 0 : k.query) != null && M.name ? (Ee(), Re("div", FH, [
|
47371
47382
|
e[3] || (e[3] = Y("h2", { class: "font-bold mb-[10px]" }, "Створити", -1)),
|
@@ -47404,17 +47415,17 @@ function NH(t, e, i, n, r, l) {
|
|
47404
47415
|
}))
|
47405
47416
|
]);
|
47406
47417
|
}
|
47407
|
-
const $H = /* @__PURE__ */
|
47418
|
+
const $H = /* @__PURE__ */ Ft(RH, [["render", NH]]), VH = {
|
47408
47419
|
components: { VsReesterNavList: lH, VsReesterContent: $H }
|
47409
47420
|
}, jH = { class: "flex items-start gap-0" };
|
47410
47421
|
function UH(t, e, i, n, r, l) {
|
47411
|
-
const u =
|
47422
|
+
const u = Rt("VsReesterNavList"), a = Rt("VsReesterContent");
|
47412
47423
|
return Ee(), Re("div", jH, [
|
47413
47424
|
ii(u),
|
47414
47425
|
ii(a)
|
47415
47426
|
]);
|
47416
47427
|
}
|
47417
|
-
const HH = /* @__PURE__ */
|
47428
|
+
const HH = /* @__PURE__ */ Ft(VH, [["render", UH]]), qH = {
|
47418
47429
|
"user-cls-page": HH
|
47419
47430
|
}, M0 = {
|
47420
47431
|
...GU,
|
@@ -47429,7 +47440,7 @@ const HH = /* @__PURE__ */ Lt(VH, [["render", UH]]), qH = {
|
|
47429
47440
|
}), e;
|
47430
47441
|
}, WH = Rs(null), GH = async () => {
|
47431
47442
|
try {
|
47432
|
-
const { data: t } = await
|
47443
|
+
const { data: t } = await zt.get("/api/user-menu");
|
47433
47444
|
return WH.value = t, zM(t);
|
47434
47445
|
} catch (t) {
|
47435
47446
|
return console.error(t), [];
|
@@ -47461,8 +47472,8 @@ const HH = /* @__PURE__ */ Lt(VH, [["render", UH]]), qH = {
|
|
47461
47472
|
export {
|
47462
47473
|
eH as I,
|
47463
47474
|
BL as V,
|
47464
|
-
|
47465
|
-
|
47475
|
+
Ft as _,
|
47476
|
+
zt as a,
|
47466
47477
|
w8 as b,
|
47467
47478
|
gH as c,
|
47468
47479
|
gU as d,
|