@opengis/richtext 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/richtext.js +177 -168
- package/dist/richtext.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/richtext.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ce, h as En, ref as D, getCurrentInstance as Nr, watchEffect as af, nextTick as Lt, unref as ae, onBeforeUnmount as po, shallowRef as cf, onMounted as nt, markRaw as Jm, customRef as Ym, computed as F, watch as be, createElementBlock as C, openBlock as b, normalizeClass as j, createElementVNode as m, createBlock as ve, Teleport as Vr, createCommentVNode as
|
|
1
|
+
import { defineComponent as ce, h as En, ref as D, getCurrentInstance as Nr, watchEffect as af, nextTick as Lt, unref as ae, onBeforeUnmount as po, shallowRef as cf, onMounted as nt, markRaw as Jm, customRef as Ym, computed as F, watch as be, createElementBlock as C, openBlock as b, normalizeClass as j, createElementVNode as m, createBlock as ve, Teleport as Vr, createCommentVNode as Y, createVNode as le, Transition as ho, withCtx as Ne, toDisplayString as ie, renderSlot as kt, resolveComponent as Zr, withDirectives as Le, mergeProps as ar, vModelDynamic as uf, Fragment as xe, normalizeStyle as Je, vShow as no, renderList as Ae, onUnmounted as an, resolveDynamicComponent as pn, vModelText as ut, createStaticVNode as dt, reactive as Ta, createApp as df, useAttrs as Xm, mergeModels as Fe, useModel as Ye, toRef as Zm, provide as Oc, withModifiers as $t, normalizeProps as Ma, guardReactiveProps as Aa, createTextVNode as Ft, inject as Un, withKeys as Qm, vModelRadio as ff, vModelCheckbox as pf, isRef as hf, effectScope as eg, Text as tg } from "vue";
|
|
2
2
|
function vt(t) {
|
|
3
3
|
this.content = t;
|
|
4
4
|
}
|
|
@@ -8328,7 +8328,7 @@ function Ey(t, e, n, r, o) {
|
|
|
8328
8328
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
8329
8329
|
let E = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, O = Pa(t, E);
|
|
8330
8330
|
if (O && !t.state.selection.eq(O)) {
|
|
8331
|
-
if (St && Vn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (
|
|
8331
|
+
if (St && Vn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (J) => J(t, br(13, "Enter"))))
|
|
8332
8332
|
return;
|
|
8333
8333
|
let V = t.state.tr.setSelection(O);
|
|
8334
8334
|
E == "pointer" ? V.setMeta("pointer", !0) : E == "key" && V.scrollIntoView(), s && V.setMeta("composition", s), t.dispatch(V);
|
|
@@ -10517,8 +10517,8 @@ function Mv(t) {
|
|
|
10517
10517
|
Tv(E, s.find, l).forEach((V) => {
|
|
10518
10518
|
if (V.index === void 0)
|
|
10519
10519
|
return;
|
|
10520
|
-
const
|
|
10521
|
-
from: n.tr.mapping.map(
|
|
10520
|
+
const J = w + V.index + 1, R = J + V[0].length, I = {
|
|
10521
|
+
from: n.tr.mapping.map(J),
|
|
10522
10522
|
to: n.tr.mapping.map(R)
|
|
10523
10523
|
}, G = s.handler({
|
|
10524
10524
|
state: n,
|
|
@@ -16135,8 +16135,8 @@ function Kx({
|
|
|
16135
16135
|
we(S, t.numeric, k);
|
|
16136
16136
|
const w = Xt(Ss), M = Xt();
|
|
16137
16137
|
we(w, e, w), we(w, n, M), we(M, e, w), we(M, n, M), K(x, wn, w), K(k, wn, w);
|
|
16138
|
-
const E = K(i, er), O = K(a, er), V = K(O, wn),
|
|
16139
|
-
we(i, t.domain, l), K(i, kn, v), K(i, Qt, y), we(a, t.domain, l), K(a, kn, v), K(a, Qt, y), we(E, t.domain, w), K(E, wn, w), K(E, Po, w), we(
|
|
16138
|
+
const E = K(i, er), O = K(a, er), V = K(O, wn), J = K(V, wn);
|
|
16139
|
+
we(i, t.domain, l), K(i, kn, v), K(i, Qt, y), we(a, t.domain, l), K(a, kn, v), K(a, Qt, y), we(E, t.domain, w), K(E, wn, w), K(E, Po, w), we(J, t.domain, w), we(J, e, w), K(J, wn, w);
|
|
16140
16140
|
const R = [
|
|
16141
16141
|
[Io, Do],
|
|
16142
16142
|
// {}
|
|
@@ -18684,13 +18684,13 @@ function _w(t, e, n, r, o, s) {
|
|
|
18684
18684
|
handleConfirm: s.handleConfirm,
|
|
18685
18685
|
handleCancel: s.handleCancel
|
|
18686
18686
|
}, void 0, !0)
|
|
18687
|
-
])) :
|
|
18687
|
+
])) : Y("", !0)
|
|
18688
18688
|
], 2)
|
|
18689
18689
|
]),
|
|
18690
18690
|
_: 3
|
|
18691
18691
|
})
|
|
18692
18692
|
], 32)
|
|
18693
|
-
])) :
|
|
18693
|
+
])) : Y("", !0)
|
|
18694
18694
|
]);
|
|
18695
18695
|
}
|
|
18696
18696
|
const sm = /* @__PURE__ */ qe(xw, [["render", _w], ["__scopeId", "data-v-6d0970a6"]]), Tw = {}, Mw = {
|
|
@@ -18863,7 +18863,7 @@ function jw(t, e, n, r, o, s) {
|
|
|
18863
18863
|
height: "15px",
|
|
18864
18864
|
class: "stroke-gray-500 hover:stroke-red-500 transition-all"
|
|
18865
18865
|
})
|
|
18866
|
-
])) :
|
|
18866
|
+
])) : Y("", !0),
|
|
18867
18867
|
t.icon && t.icon === "search" ? (b(), C("div", {
|
|
18868
18868
|
key: 1,
|
|
18869
18869
|
class: j(["absolute bottom-2/4 translate-y-2/4 cursor-pointer", t.iconStylePosition])
|
|
@@ -18893,7 +18893,7 @@ function jw(t, e, n, r, o, s) {
|
|
|
18893
18893
|
height: "15px",
|
|
18894
18894
|
class: "stroke-gray-500 hover:stroke-red-500 transition-all"
|
|
18895
18895
|
})
|
|
18896
|
-
])) :
|
|
18896
|
+
])) : Y("", !0),
|
|
18897
18897
|
Le(m("input", ar({
|
|
18898
18898
|
ref: "vsText",
|
|
18899
18899
|
disabled: t.disabled,
|
|
@@ -19071,7 +19071,7 @@ const Uw = { class: "flex flex-col gap-3 p-[20px]" }, Ww = { class: "relative fl
|
|
|
19071
19071
|
})
|
|
19072
19072
|
], -1)
|
|
19073
19073
|
])])
|
|
19074
|
-
])) :
|
|
19074
|
+
])) : Y("", !0)
|
|
19075
19075
|
])
|
|
19076
19076
|
])
|
|
19077
19077
|
]),
|
|
@@ -19195,7 +19195,7 @@ const Uw = { class: "flex flex-col gap-3 p-[20px]" }, Ww = { class: "relative fl
|
|
|
19195
19195
|
kt(S.$slots, "reference", {}, () => [
|
|
19196
19196
|
k[0] || (k[0] = m("button", null, "Click me!", -1))
|
|
19197
19197
|
])
|
|
19198
|
-
], 2)) :
|
|
19198
|
+
], 2)) : Y("", !0),
|
|
19199
19199
|
t.trigger === "hover" ? (b(), C("div", {
|
|
19200
19200
|
key: 1,
|
|
19201
19201
|
ref_key: "popoverRef",
|
|
@@ -19207,7 +19207,7 @@ const Uw = { class: "flex flex-col gap-3 p-[20px]" }, Ww = { class: "relative fl
|
|
|
19207
19207
|
kt(S.$slots, "reference", {}, () => [
|
|
19208
19208
|
k[1] || (k[1] = m("button", null, "Click me!", -1))
|
|
19209
19209
|
])
|
|
19210
|
-
], 34)) :
|
|
19210
|
+
], 34)) : Y("", !0),
|
|
19211
19211
|
(b(), ve(Vr, { to: t.teleport }, [
|
|
19212
19212
|
le(ho, { name: "fade" }, {
|
|
19213
19213
|
default: Ne(() => [
|
|
@@ -19592,7 +19592,7 @@ function A2(t, e, n, r, o, s) {
|
|
|
19592
19592
|
class: "ml-2 w-full",
|
|
19593
19593
|
disabled: n.disabled,
|
|
19594
19594
|
clearable: n.clearable
|
|
19595
|
-
}, null, 8, ["modelValue", "disabled", "clearable"])) :
|
|
19595
|
+
}, null, 8, ["modelValue", "disabled", "clearable"])) : Y("", !0)
|
|
19596
19596
|
]);
|
|
19597
19597
|
}
|
|
19598
19598
|
const im = /* @__PURE__ */ qe(_2, [["render", A2]]), N2 = { class: "flex gap-[4px] mb-[8px]" }, L2 = { class: "grid grid-rows-3 grid-cols-7" }, O2 = { class: "w-full h-full rounded border border-gray-300 overflow-hidden" }, I2 = ["onClick", "title"], D2 = {
|
|
@@ -19704,7 +19704,7 @@ const im = /* @__PURE__ */ qe(_2, [["render", A2]]), N2 = { class: "flex gap-[4p
|
|
|
19704
19704
|
r.value === p ? (b(), ve(Fo, {
|
|
19705
19705
|
key: 0,
|
|
19706
19706
|
class: "h-5 w-5 text-gray-500"
|
|
19707
|
-
})) :
|
|
19707
|
+
})) : Y("", !0)
|
|
19708
19708
|
], 12, I2)
|
|
19709
19709
|
])
|
|
19710
19710
|
]))), 128))
|
|
@@ -19867,8 +19867,8 @@ const im = /* @__PURE__ */ qe(_2, [["render", A2]]), N2 = { class: "flex gap-[4p
|
|
|
19867
19867
|
r.value === p ? (b(), ve(Fo, {
|
|
19868
19868
|
key: 0,
|
|
19869
19869
|
class: "h-5 w-5 text-gray-500"
|
|
19870
|
-
})) :
|
|
19871
|
-
], 12, F2)) :
|
|
19870
|
+
})) : Y("", !0)
|
|
19871
|
+
], 12, F2)) : Y("", !0),
|
|
19872
19872
|
p === "transparent" ? (b(), C("button", {
|
|
19873
19873
|
key: 1,
|
|
19874
19874
|
class: "flex items-center justify-center w-full h-full",
|
|
@@ -19878,8 +19878,8 @@ const im = /* @__PURE__ */ qe(_2, [["render", A2]]), N2 = { class: "flex gap-[4p
|
|
|
19878
19878
|
r.value === p ? (b(), ve(Fo, {
|
|
19879
19879
|
key: 0,
|
|
19880
19880
|
class: "h-5 w-5 text-gray-500"
|
|
19881
|
-
})) :
|
|
19882
|
-
], 8, B2)) :
|
|
19881
|
+
})) : Y("", !0)
|
|
19882
|
+
], 8, B2)) : Y("", !0)
|
|
19883
19883
|
])
|
|
19884
19884
|
]))), 128))
|
|
19885
19885
|
])
|
|
@@ -20341,7 +20341,7 @@ const fC = {
|
|
|
20341
20341
|
]),
|
|
20342
20342
|
u.$slots.footer ? (b(), C("div", gC, [
|
|
20343
20343
|
kt(u.$slots, "footer", { handleClose: i }, void 0, !0)
|
|
20344
|
-
])) :
|
|
20344
|
+
])) : Y("", !0),
|
|
20345
20345
|
u.buttonText ? (b(), C("div", yC, [
|
|
20346
20346
|
m("button", {
|
|
20347
20347
|
type: "button",
|
|
@@ -20353,13 +20353,13 @@ const fC = {
|
|
|
20353
20353
|
onClick: l,
|
|
20354
20354
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-hidden focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"
|
|
20355
20355
|
}, ie(u.buttonText), 1)
|
|
20356
|
-
])) :
|
|
20356
|
+
])) : Y("", !0)
|
|
20357
20357
|
], 2)
|
|
20358
20358
|
]),
|
|
20359
20359
|
_: 3
|
|
20360
20360
|
})
|
|
20361
20361
|
], 34)
|
|
20362
|
-
])) :
|
|
20362
|
+
])) : Y("", !0)
|
|
20363
20363
|
], 8, ["to"]));
|
|
20364
20364
|
}
|
|
20365
20365
|
}), vc = /* @__PURE__ */ us(vC, [["__scopeId", "data-v-a6807cab"]]), bC = {}, xC = {
|
|
@@ -20584,12 +20584,12 @@ const zC = (t) => {
|
|
|
20584
20584
|
}), (r, o) => (b(), C("div", HC, [
|
|
20585
20585
|
r.ua || r.label ? (b(), C("div", jC, [
|
|
20586
20586
|
m("span", UC, ie(r.item[e.value] || r.ua || r.label), 1),
|
|
20587
|
-
r.item?.rules?.includes("required") ? (b(), C("span", WC, "*")) :
|
|
20588
|
-
])) :
|
|
20587
|
+
r.item?.rules?.includes("required") ? (b(), C("span", WC, "*")) : Y("", !0)
|
|
20588
|
+
])) : Y("", !0),
|
|
20589
20589
|
kt(r.$slots, "default", ar(r.$attrs, {
|
|
20590
20590
|
class: { "opacity-60": r.item.disabled }
|
|
20591
20591
|
})),
|
|
20592
|
-
r.error ? (b(), C("span", KC, ie(r.error), 1)) :
|
|
20592
|
+
r.error ? (b(), C("span", KC, ie(r.error), 1)) : Y("", !0)
|
|
20593
20593
|
]));
|
|
20594
20594
|
}
|
|
20595
20595
|
}), GC = { class: "w-full relative flex flex-row items-center gap-2" }, JC = {
|
|
@@ -20637,15 +20637,15 @@ const zC = (t) => {
|
|
|
20637
20637
|
style: Je(s.value)
|
|
20638
20638
|
}, [
|
|
20639
20639
|
Ft(ie(i.ua || i.label) + " ", 1),
|
|
20640
|
-
i.item?.rules?.includes("required") && (i.ua || i.label) ? (b(), C("span", JC, "*")) :
|
|
20641
|
-
], 4)) :
|
|
20640
|
+
i.item?.rules?.includes("required") && (i.ua || i.label) ? (b(), C("span", JC, "*")) : Y("", !0)
|
|
20641
|
+
], 4)) : Y("", !0),
|
|
20642
20642
|
m("div", {
|
|
20643
20643
|
class: "flex-1 min-w-0",
|
|
20644
20644
|
style: Je(l.value)
|
|
20645
20645
|
}, [
|
|
20646
20646
|
kt(i.$slots, "default", Ma(Aa(i.$attrs)))
|
|
20647
20647
|
], 4),
|
|
20648
|
-
i.error ? (b(), C("span", YC, ie(i.error), 1)) :
|
|
20648
|
+
i.error ? (b(), C("span", YC, ie(i.error), 1)) : Y("", !0)
|
|
20649
20649
|
]));
|
|
20650
20650
|
}
|
|
20651
20651
|
}), ZC = { class: "w-full relative" }, QC = {
|
|
@@ -20668,7 +20668,7 @@ const zC = (t) => {
|
|
|
20668
20668
|
setup(t) {
|
|
20669
20669
|
return (e, n) => (b(), C("div", ZC, [
|
|
20670
20670
|
kt(e.$slots, "default", Ma(Aa(e.$attrs))),
|
|
20671
|
-
e.error ? (b(), C("span", QC, ie(e.error), 1)) :
|
|
20671
|
+
e.error ? (b(), C("span", QC, ie(e.error), 1)) : Y("", !0)
|
|
20672
20672
|
]));
|
|
20673
20673
|
}
|
|
20674
20674
|
}), tE = { class: "flex-1 min-w-0" }, nE = {
|
|
@@ -20720,9 +20720,9 @@ const zC = (t) => {
|
|
|
20720
20720
|
m("div", tE, [
|
|
20721
20721
|
i.ua || i.label ? (b(), C("p", nE, [
|
|
20722
20722
|
m("span", rE, ie(i.item[n.value] || i.ua || i.label), 1),
|
|
20723
|
-
o.value ? (b(), C("span", oE, "*")) :
|
|
20724
|
-
])) :
|
|
20725
|
-
r.value ? (b(), C("p", sE, ie(r.value), 1)) :
|
|
20723
|
+
o.value ? (b(), C("span", oE, "*")) : Y("", !0)
|
|
20724
|
+
])) : Y("", !0),
|
|
20725
|
+
r.value ? (b(), C("p", sE, ie(r.value), 1)) : Y("", !0)
|
|
20726
20726
|
]),
|
|
20727
20727
|
m("div", {
|
|
20728
20728
|
class: j(["w-full", ["select", "native-select"].includes(i.item.type) ? "md:w-[30%]" : "md:w-auto"])
|
|
@@ -20730,7 +20730,7 @@ const zC = (t) => {
|
|
|
20730
20730
|
kt(i.$slots, "default", Ma(Aa(i.$attrs)))
|
|
20731
20731
|
], 2)
|
|
20732
20732
|
], 2),
|
|
20733
|
-
s.value ? (b(), C("p", lE, ie(s.value), 1)) :
|
|
20733
|
+
s.value ? (b(), C("p", lE, ie(s.value), 1)) : Y("", !0)
|
|
20734
20734
|
], 2));
|
|
20735
20735
|
}
|
|
20736
20736
|
}), aE = {
|
|
@@ -20956,15 +20956,15 @@ const yE = /* @__PURE__ */ _e(hE, [["render", gE]]), vE = { class: "flex items-c
|
|
|
20956
20956
|
i.icon ? (b(), C("i", {
|
|
20957
20957
|
key: 0,
|
|
20958
20958
|
class: j(i.icon)
|
|
20959
|
-
}, null, 2)) :
|
|
20959
|
+
}, null, 2)) : Y("", !0),
|
|
20960
20960
|
i.imgUrl ? (b(), C("img", {
|
|
20961
20961
|
key: 1,
|
|
20962
20962
|
src: i.imgUrl,
|
|
20963
20963
|
width: "16",
|
|
20964
20964
|
height: "16",
|
|
20965
20965
|
alt: "icon"
|
|
20966
|
-
}, null, 8, _E)) :
|
|
20967
|
-
])) :
|
|
20966
|
+
}, null, 8, _E)) : Y("", !0)
|
|
20967
|
+
])) : Y("", !0),
|
|
20968
20968
|
kt(i.$slots, "default", {}, () => [
|
|
20969
20969
|
Ft(ie(i.label), 1)
|
|
20970
20970
|
])
|
|
@@ -21118,7 +21118,7 @@ const VE = /* @__PURE__ */ _e($E, [["render", BE]]), zE = {
|
|
|
21118
21118
|
label: r.text,
|
|
21119
21119
|
error: r.error || ""
|
|
21120
21120
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
21121
|
-
r.rules?.includes("required") ? (b(), C("span", HE, "*")) :
|
|
21121
|
+
r.rules?.includes("required") ? (b(), C("span", HE, "*")) : Y("", !0),
|
|
21122
21122
|
r.i ? (b(), C("button", {
|
|
21123
21123
|
key: 1,
|
|
21124
21124
|
class: "cursor-pointer",
|
|
@@ -21127,7 +21127,7 @@ const VE = /* @__PURE__ */ _e($E, [["render", BE]]), zE = {
|
|
|
21127
21127
|
}, ["prevent"]))
|
|
21128
21128
|
}, [
|
|
21129
21129
|
le(ae(VE), { class: "text-gray-500 w-[14px] h-[14px]" })
|
|
21130
|
-
], 8, jE)) :
|
|
21130
|
+
], 8, jE)) : Y("", !0)
|
|
21131
21131
|
])) : (b(), C("button", {
|
|
21132
21132
|
key: 1,
|
|
21133
21133
|
type: "button",
|
|
@@ -21297,7 +21297,7 @@ const VE = /* @__PURE__ */ _e($E, [["render", BE]]), zE = {
|
|
|
21297
21297
|
n.value == e.value ? (b(), C("span", {
|
|
21298
21298
|
key: 0,
|
|
21299
21299
|
class: j(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${e.style?.primaryColor || "blue"}-500`]])
|
|
21300
|
-
}, null, 2)) :
|
|
21300
|
+
}, null, 2)) : Y("", !0)
|
|
21301
21301
|
], 2),
|
|
21302
21302
|
m("span", ZE, ie(e.text), 1)
|
|
21303
21303
|
], 2));
|
|
@@ -21508,7 +21508,7 @@ const VE = /* @__PURE__ */ _e($E, [["render", BE]]), zE = {
|
|
|
21508
21508
|
key: g.key,
|
|
21509
21509
|
class: "flex flex-col gap-2"
|
|
21510
21510
|
}, [
|
|
21511
|
-
g.label ? (b(), C("span", sS, ie(g.label), 1)) :
|
|
21511
|
+
g.label ? (b(), C("span", sS, ie(g.label), 1)) : Y("", !0),
|
|
21512
21512
|
m("div", {
|
|
21513
21513
|
class: j(["p-0 w-full gap-[12px]", c.value])
|
|
21514
21514
|
}, [
|
|
@@ -21942,8 +21942,8 @@ const um = /* @__PURE__ */ _e(BS, [["render", zS]]), HS = ["title"], jS = { clas
|
|
|
21942
21942
|
class: "w-6 h-6"
|
|
21943
21943
|
}))
|
|
21944
21944
|
], 2)
|
|
21945
|
-
])) :
|
|
21946
|
-
u.multiple ?
|
|
21945
|
+
])) : Y("", !0),
|
|
21946
|
+
u.multiple ? Y("", !0) : (b(), C("div", {
|
|
21947
21947
|
key: 2,
|
|
21948
21948
|
onClick: d[4] || (d[4] = (f) => s.value?.click()),
|
|
21949
21949
|
class: j([u.disabled || l.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500", "relative h-[120px] w-[120px] border text-gray-300 hover:text-blue-500 border-dashed border-gray-300 rounded-lg flex items-center justify-center cursor-pointer hover:border-blue-500 transition-all duration-300 hover:bg-blue-50"])
|
|
@@ -22249,7 +22249,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22249
22249
|
])
|
|
22250
22250
|
])
|
|
22251
22251
|
])
|
|
22252
|
-
])) :
|
|
22252
|
+
])) : Y("", !0),
|
|
22253
22253
|
u.value?.length ? (b(), C("div", S_, [
|
|
22254
22254
|
(b(!0), C(xe, null, Ae(p.value, (E, O) => (b(), ve(p_, {
|
|
22255
22255
|
key: O,
|
|
@@ -22260,10 +22260,10 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22260
22260
|
onOpenModal: k[3] || (k[3] = (V) => x(V)),
|
|
22261
22261
|
onOpenLightbox: k[4] || (k[4] = (V) => h(V))
|
|
22262
22262
|
}, null, 8, ["prefix", "item", "index"]))), 128)),
|
|
22263
|
-
p.value.length ?
|
|
22263
|
+
p.value.length ? Y("", !0) : (b(), C("div", __, k[9] || (k[9] = [
|
|
22264
22264
|
m("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
|
|
22265
22265
|
])))
|
|
22266
|
-
])) :
|
|
22266
|
+
])) : Y("", !0),
|
|
22267
22267
|
le(w, {
|
|
22268
22268
|
modelValue: s.value,
|
|
22269
22269
|
"onUpdate:modelValue": k[5] || (k[5] = (E) => s.value = E),
|
|
@@ -22493,7 +22493,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22493
22493
|
}), null, 16, ["item", "modelValue", "onUpdate:modelValue", "style", "error"]))), 128))
|
|
22494
22494
|
]),
|
|
22495
22495
|
_: 1
|
|
22496
|
-
}, 8, ["title", "style"])) :
|
|
22496
|
+
}, 8, ["title", "style"])) : Y("", !0);
|
|
22497
22497
|
}
|
|
22498
22498
|
}), Q_ = ["aria-expanded", "data-focus"], eT = {
|
|
22499
22499
|
key: 0,
|
|
@@ -22546,7 +22546,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22546
22546
|
return w.value.map((X) => H.get(X?.toString())).filter((X) => !!X);
|
|
22547
22547
|
}), E = F(() => n.placeholder || "Select..."), O = F(() => Q(p.value));
|
|
22548
22548
|
F(() => o.value ? !w.value.length && v.value === "" : !O.value && v.value === "");
|
|
22549
|
-
const V = F(() => s.value ? !1 : o.value ? w.value.length > 0 : !!l.value),
|
|
22549
|
+
const V = F(() => s.value ? !1 : o.value ? w.value.length > 0 : !!l.value), J = (P) => o.value ? w.value.some((H) => H?.toString() === P?.toString()) : l.value?.toString() === P?.toString(), R = F(() => {
|
|
22550
22550
|
let P = h.value ?? [];
|
|
22551
22551
|
if (!n.data && v.value.trim() !== "") {
|
|
22552
22552
|
const H = v.value.toLowerCase();
|
|
@@ -22632,11 +22632,11 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22632
22632
|
}, yr = (P) => {
|
|
22633
22633
|
o.value && (w.value = w.value.filter((H) => H?.toString() !== P?.toString()), l.value = [...w.value], r("change", l.value), Lt(() => x.value?.focus()));
|
|
22634
22634
|
}, Nt = (P) => {
|
|
22635
|
-
o.value ? (
|
|
22635
|
+
o.value ? (J(P.id) || (w.value = [...w.value, P.id], l.value = [...w.value], r("change", l.value)), v.value = "", Lt(() => {
|
|
22636
22636
|
x.value?.focus(), g.value = Math.min(g.value, R.value.length - 1);
|
|
22637
22637
|
}), de(null)) : (p.value = P, l.value = P.id, r("change", l.value), v.value = "", At(), de(P));
|
|
22638
22638
|
}, Jt = (P) => {
|
|
22639
|
-
|
|
22639
|
+
J(P.id) || Nt(P);
|
|
22640
22640
|
}, yn = (P, H) => {
|
|
22641
22641
|
if (!P || !H) return;
|
|
22642
22642
|
const X = P.offsetTop, ye = X + P.offsetHeight, Pe = H.scrollTop, pt = Pe + H.clientHeight;
|
|
@@ -22838,7 +22838,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22838
22838
|
key: 0,
|
|
22839
22839
|
class: "w-[16px] h-[16px] rounded-md block ml-1.5 flex-shrink-0",
|
|
22840
22840
|
style: Je({ backgroundColor: X?.color })
|
|
22841
|
-
}, null, 4)) :
|
|
22841
|
+
}, null, 4)) : Y("", !0),
|
|
22842
22842
|
m("div", {
|
|
22843
22843
|
class: "truncate text-gray-900 overflow-hidden max-w-[200px] px-0.5 py-[2px] pl-1.5",
|
|
22844
22844
|
title: Q(X)
|
|
@@ -22888,7 +22888,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22888
22888
|
onKeydown: vn
|
|
22889
22889
|
}, null, 40, lT)), [
|
|
22890
22890
|
[ut, v.value]
|
|
22891
|
-
]) :
|
|
22891
|
+
]) : Y("", !0)
|
|
22892
22892
|
])
|
|
22893
22893
|
])) : !o.value && !f.value && O.value && v.value === "" ? (b(), C("div", {
|
|
22894
22894
|
key: 1,
|
|
@@ -22899,7 +22899,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22899
22899
|
key: 0,
|
|
22900
22900
|
class: "w-[14px] h-[14px] rounded-md block mr-1 mt-1 absolute",
|
|
22901
22901
|
style: Je({ backgroundColor: p.value?.color })
|
|
22902
|
-
}, null, 4)) :
|
|
22902
|
+
}, null, 4)) : Y("", !0),
|
|
22903
22903
|
W.value ? (b(), C("span", {
|
|
22904
22904
|
key: 1,
|
|
22905
22905
|
class: j({ "pl-5": p.value?.color }),
|
|
@@ -22908,8 +22908,8 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22908
22908
|
key: 2,
|
|
22909
22909
|
class: j({ "pl-5": p.value?.color })
|
|
22910
22910
|
}, ie(p.value?.text), 3))
|
|
22911
|
-
], 8, iT)) :
|
|
22912
|
-
o.value ?
|
|
22911
|
+
], 8, iT)) : Y("", !0),
|
|
22912
|
+
o.value ? Y("", !0) : (b(), C("div", cT, [
|
|
22913
22913
|
!s.value && P.search ? Le((b(), C("input", {
|
|
22914
22914
|
key: 0,
|
|
22915
22915
|
ref_key: "inputRef",
|
|
@@ -22929,7 +22929,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22929
22929
|
onKeydown: vn
|
|
22930
22930
|
}, null, 40, uT)), [
|
|
22931
22931
|
[ut, v.value]
|
|
22932
|
-
]) :
|
|
22932
|
+
]) : Y("", !0)
|
|
22933
22933
|
]))
|
|
22934
22934
|
], 512),
|
|
22935
22935
|
m("div", dT, [
|
|
@@ -22949,7 +22949,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22949
22949
|
}, [
|
|
22950
22950
|
m("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
|
|
22951
22951
|
], -1)
|
|
22952
|
-
]), 8, fT)) :
|
|
22952
|
+
]), 8, fT)) : Y("", !0),
|
|
22953
22953
|
H[9] || (H[9] = m("div", { class: "self-stretch w-px bg-[#ccc] my-[1px]" }, null, -1)),
|
|
22954
22954
|
m("button", {
|
|
22955
22955
|
type: "button",
|
|
@@ -22993,10 +22993,10 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
22993
22993
|
ref: (Pe) => y.value[ye] = Pe,
|
|
22994
22994
|
class: j([
|
|
22995
22995
|
"flex px-3 py-2 cursor-default select-none text-gray-900 ",
|
|
22996
|
-
|
|
22997
|
-
g.value === ye && !
|
|
22996
|
+
J(X.id) ? "bg-blue-500 text-white" : "bg-white hover:bg-blue-100",
|
|
22997
|
+
g.value === ye && !J(X.id) ? "bg-blue-100" : ""
|
|
22998
22998
|
]),
|
|
22999
|
-
"aria-disabled":
|
|
22999
|
+
"aria-disabled": J(X.id) ? "true" : "false",
|
|
23000
23000
|
role: "option",
|
|
23001
23001
|
tabindex: "-1",
|
|
23002
23002
|
onClick: (Pe) => Jt(X)
|
|
@@ -23005,7 +23005,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
23005
23005
|
key: 0,
|
|
23006
23006
|
class: "w-[11px] h-[11px] rounded-full block mr-1 mt-1.5",
|
|
23007
23007
|
style: Je({ backgroundColor: X?.color })
|
|
23008
|
-
}, null, 4)) :
|
|
23008
|
+
}, null, 4)) : Y("", !0),
|
|
23009
23009
|
m("div", {
|
|
23010
23010
|
class: j([
|
|
23011
23011
|
"leading-[19px]",
|
|
@@ -23023,7 +23023,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
23023
23023
|
], 2)
|
|
23024
23024
|
], 10, hT))), 128)) : (b(), C("div", gT, " No options "))
|
|
23025
23025
|
], 4)
|
|
23026
|
-
], 4)) :
|
|
23026
|
+
], 4)) : Y("", !0)
|
|
23027
23027
|
]))
|
|
23028
23028
|
], 2),
|
|
23029
23029
|
n.add ? (b(), C("button", {
|
|
@@ -23038,7 +23038,7 @@ const y_ = /* @__PURE__ */ _e(h_, [["render", g_]]), v_ = { class: "flex flex-co
|
|
|
23038
23038
|
height: "16"
|
|
23039
23039
|
}),
|
|
23040
23040
|
H[12] || (H[12] = m("span", null, "Додати", -1))
|
|
23041
|
-
], 8, yT)) :
|
|
23041
|
+
], 8, yT)) : Y("", !0)
|
|
23042
23042
|
], 512)
|
|
23043
23043
|
], 64));
|
|
23044
23044
|
}
|
|
@@ -23284,7 +23284,7 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
|
|
|
23284
23284
|
async function V() {
|
|
23285
23285
|
S.value = "Додати", k.value = !0, w = "add", E.value = {};
|
|
23286
23286
|
}
|
|
23287
|
-
function
|
|
23287
|
+
function J(W, Z) {
|
|
23288
23288
|
const Q = Z.key || Z.name;
|
|
23289
23289
|
return r.value[Q] && W[Q] ? r.value[Q].find((de) => de.id.toString() === W[Q].toString())?.text ?? W[Q] : W[Q] || "-";
|
|
23290
23290
|
}
|
|
@@ -23382,7 +23382,7 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
|
|
|
23382
23382
|
])
|
|
23383
23383
|
])
|
|
23384
23384
|
])
|
|
23385
|
-
], 4)) :
|
|
23385
|
+
], 4)) : Y("", !0)
|
|
23386
23386
|
])),
|
|
23387
23387
|
m("button", {
|
|
23388
23388
|
onClick: V,
|
|
@@ -23423,7 +23423,7 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
|
|
|
23423
23423
|
], -1))
|
|
23424
23424
|
])
|
|
23425
23425
|
])
|
|
23426
|
-
])) :
|
|
23426
|
+
])) : Y("", !0),
|
|
23427
23427
|
(b(!0), C(xe, null, Ae(s.value, (Q, de) => (b(), C("tr", {
|
|
23428
23428
|
key: Q.id,
|
|
23429
23429
|
class: j(["border-b data-[state=selected]:bg-muted transition-all duration-200 hover:bg-slate-50/60 dark:hover:bg-slate-700/60 cursor-move", {
|
|
@@ -23449,9 +23449,9 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
|
|
|
23449
23449
|
class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
|
|
23450
23450
|
}, [
|
|
23451
23451
|
he.type === "file" ? (b(), C("div", hM, [
|
|
23452
|
-
y(
|
|
23452
|
+
y(J(Q, he)) ? (b(), C("div", mM, [
|
|
23453
23453
|
m("img", {
|
|
23454
|
-
src:
|
|
23454
|
+
src: J(Q, he),
|
|
23455
23455
|
alt: "alt",
|
|
23456
23456
|
width: "45",
|
|
23457
23457
|
class: "rounded-md max-w-[45px] h-[45px] object-cover"
|
|
@@ -23462,8 +23462,8 @@ const KT = /* @__PURE__ */ _e(jT, [["render", WT]]), qT = { class: "vs-datatable
|
|
|
23462
23462
|
])) : he.type === "tiptap-editor" ? (b(), C("div", {
|
|
23463
23463
|
key: 1,
|
|
23464
23464
|
class: "rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors line-clamp-3",
|
|
23465
|
-
innerHTML:
|
|
23466
|
-
}, null, 8, vM)) : he.type === "reference" ? (b(), C("div", bM, ie(
|
|
23465
|
+
innerHTML: J(Q, he)
|
|
23466
|
+
}, null, 8, vM)) : he.type === "reference" ? (b(), C("div", bM, ie(J(Q, he)), 1)) : (b(), C("div", xM, ie(J(Q, he)), 1))
|
|
23467
23467
|
]))), 128)),
|
|
23468
23468
|
m("td", kM, [
|
|
23469
23469
|
m("div", wM, [
|
|
@@ -23814,14 +23814,14 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
23814
23814
|
if (M.length < 2) return null;
|
|
23815
23815
|
const E = M.slice(0, 2).map(Number);
|
|
23816
23816
|
if (!E.every((ne) => Number.isFinite(ne))) return null;
|
|
23817
|
-
let [O, V] = E,
|
|
23817
|
+
let [O, V] = E, J = O, R = V;
|
|
23818
23818
|
const I = (ne) => Math.abs(ne) <= 90, G = (ne) => Math.abs(ne) <= 180;
|
|
23819
|
-
if (!I(
|
|
23820
|
-
if (I(R) && G(
|
|
23821
|
-
|
|
23819
|
+
if (!I(J) || !G(R))
|
|
23820
|
+
if (I(R) && G(J))
|
|
23821
|
+
J = V, R = O;
|
|
23822
23822
|
else
|
|
23823
23823
|
return null;
|
|
23824
|
-
return { lat:
|
|
23824
|
+
return { lat: J, lng: R };
|
|
23825
23825
|
}
|
|
23826
23826
|
function g(k) {
|
|
23827
23827
|
return (k?.items || []).map((w, M) => ({
|
|
@@ -23933,8 +23933,8 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
23933
23933
|
onClick: (E) => d(M)
|
|
23934
23934
|
}, ie(p(M)), 9, XM))), 128))
|
|
23935
23935
|
])
|
|
23936
|
-
])) :
|
|
23937
|
-
], 512)) :
|
|
23936
|
+
])) : Y("", !0)
|
|
23937
|
+
], 512)) : Y("", !0),
|
|
23938
23938
|
m("div", ZM, [
|
|
23939
23939
|
Le(m("input", {
|
|
23940
23940
|
"onUpdate:modelValue": w[1] || (w[1] = (M) => a.value = M),
|
|
@@ -24077,7 +24077,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24077
24077
|
function V(_, N) {
|
|
24078
24078
|
return _?.id ? String(_.id) : _?.url ? `${_.url}-${N}` : `layer-${N}`;
|
|
24079
24079
|
}
|
|
24080
|
-
function
|
|
24080
|
+
function J(_) {
|
|
24081
24081
|
if (!_) return "";
|
|
24082
24082
|
if (/^https?:\/\//i.test(_))
|
|
24083
24083
|
return _.replace(/\/+$/, "");
|
|
@@ -24090,7 +24090,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24090
24090
|
const q = typeof window < "u" && window.location?.origin ? window.location.origin : "";
|
|
24091
24091
|
if (N.startsWith("/"))
|
|
24092
24092
|
return q ? `${q}${N}` : N;
|
|
24093
|
-
const ee =
|
|
24093
|
+
const ee = J(_?.prefix), se = J(r.prefix), ke = ee || se, P = N.replace(/^\/+/, ""), H = ke ? `${ke.replace(/\/$/, "")}/${P}` : `/${P}`;
|
|
24094
24094
|
return q ? `${q}${H}` : H;
|
|
24095
24095
|
}
|
|
24096
24096
|
function I(_) {
|
|
@@ -24592,7 +24592,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24592
24592
|
m("div", uA, [
|
|
24593
24593
|
m("p", dA, ie(d.value), 1)
|
|
24594
24594
|
])
|
|
24595
|
-
])) :
|
|
24595
|
+
])) : Y("", !0)
|
|
24596
24596
|
]),
|
|
24597
24597
|
_: 1
|
|
24598
24598
|
}),
|
|
@@ -24600,7 +24600,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24600
24600
|
s.value.search ? (b(), ve(rA, {
|
|
24601
24601
|
key: 0,
|
|
24602
24602
|
onGoToCoordinates: $
|
|
24603
|
-
})) :
|
|
24603
|
+
})) : Y("", !0),
|
|
24604
24604
|
s.value.import || s.value.export ? (b(), C("div", pA, [
|
|
24605
24605
|
m("div", hA, [
|
|
24606
24606
|
s.value.import ? (b(), C("button", {
|
|
@@ -24609,14 +24609,14 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24609
24609
|
class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white transition",
|
|
24610
24610
|
onClick: yn,
|
|
24611
24611
|
disabled: l.value
|
|
24612
|
-
}, " Import ", 8, mA)) :
|
|
24612
|
+
}, " Import ", 8, mA)) : Y("", !0),
|
|
24613
24613
|
s.value.export ? (b(), C("button", {
|
|
24614
24614
|
key: 1,
|
|
24615
24615
|
type: "button",
|
|
24616
24616
|
class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white transition",
|
|
24617
24617
|
onClick: Ie,
|
|
24618
24618
|
disabled: l.value || zt.value === 0
|
|
24619
|
-
}, " Export ", 8, gA)) :
|
|
24619
|
+
}, " Export ", 8, gA)) : Y("", !0)
|
|
24620
24620
|
]),
|
|
24621
24621
|
m("input", {
|
|
24622
24622
|
ref_key: "importRef",
|
|
@@ -24627,8 +24627,8 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24627
24627
|
class: "hidden",
|
|
24628
24628
|
disabled: l.value
|
|
24629
24629
|
}, null, 40, yA)
|
|
24630
|
-
])) :
|
|
24631
|
-
])) :
|
|
24630
|
+
])) : Y("", !0)
|
|
24631
|
+
])) : Y("", !0),
|
|
24632
24632
|
m("div", vA, [
|
|
24633
24633
|
m("div", bA, [
|
|
24634
24634
|
s.value.point ? (b(), C("button", {
|
|
@@ -24639,7 +24639,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24639
24639
|
disabled: l.value
|
|
24640
24640
|
}, [
|
|
24641
24641
|
le(OM)
|
|
24642
|
-
], 10, xA)) :
|
|
24642
|
+
], 10, xA)) : Y("", !0),
|
|
24643
24643
|
s.value.line ? (b(), C("button", {
|
|
24644
24644
|
key: 1,
|
|
24645
24645
|
class: j(["vs-btn", { "vs-active": at.value === "polyline" }]),
|
|
@@ -24648,7 +24648,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24648
24648
|
disabled: l.value
|
|
24649
24649
|
}, [
|
|
24650
24650
|
le(PM)
|
|
24651
|
-
], 10, kA)) :
|
|
24651
|
+
], 10, kA)) : Y("", !0),
|
|
24652
24652
|
s.value.polygon ? (b(), C("button", {
|
|
24653
24653
|
key: 2,
|
|
24654
24654
|
class: j(["vs-btn", { "vs-active": at.value === "polygon" }]),
|
|
@@ -24657,7 +24657,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24657
24657
|
disabled: l.value
|
|
24658
24658
|
}, [
|
|
24659
24659
|
le(VM)
|
|
24660
|
-
], 10, wA)) :
|
|
24660
|
+
], 10, wA)) : Y("", !0),
|
|
24661
24661
|
s.value.rectangle ? (b(), C("button", {
|
|
24662
24662
|
key: 3,
|
|
24663
24663
|
class: j(["vs-btn", { "vs-active": at.value === "rectangle" }]),
|
|
@@ -24666,7 +24666,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24666
24666
|
disabled: l.value
|
|
24667
24667
|
}, [
|
|
24668
24668
|
le(UM)
|
|
24669
|
-
], 10, CA)) :
|
|
24669
|
+
], 10, CA)) : Y("", !0),
|
|
24670
24670
|
m("button", {
|
|
24671
24671
|
class: "vs-btn mt-5",
|
|
24672
24672
|
onClick: N[4] || (N[4] = (q) => Ee.value = !Ee.value),
|
|
@@ -24701,7 +24701,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24701
24701
|
m("span", MA, ie(q.config.title || q.config.name || q.id), 1)
|
|
24702
24702
|
]))), 128))
|
|
24703
24703
|
])
|
|
24704
|
-
])) :
|
|
24704
|
+
])) : Y("", !0)
|
|
24705
24705
|
])
|
|
24706
24706
|
], 2),
|
|
24707
24707
|
m("div", AA, [
|
|
@@ -24721,13 +24721,13 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24721
24721
|
ref: c,
|
|
24722
24722
|
class: "text-gray-500 text-xs truncate cursor-help",
|
|
24723
24723
|
style: { "max-width": "260px" }
|
|
24724
|
-
}, " Address: " + ie(k.value), 513)) :
|
|
24724
|
+
}, " Address: " + ie(k.value), 513)) : Y("", !0),
|
|
24725
24725
|
(b(), ve(Vr, { to: "body" }, [
|
|
24726
24726
|
i.value && k.value && a.value ? (b(), C("div", {
|
|
24727
24727
|
key: 0,
|
|
24728
24728
|
class: "fixed z-[99999] pointer-events-none bg-gray-800 text-white text-xs px-2 py-1 rounded shadow whitespace-nowrap",
|
|
24729
24729
|
style: Je({ top: a.value.top + "px", left: a.value.left + "px" })
|
|
24730
|
-
}, ie(k.value), 5)) :
|
|
24730
|
+
}, ie(k.value), 5)) : Y("", !0)
|
|
24731
24731
|
]))
|
|
24732
24732
|
], 32),
|
|
24733
24733
|
m("div", IA, [
|
|
@@ -24759,7 +24759,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24759
24759
|
le(ql, { class: "w-3 h-3" })
|
|
24760
24760
|
], 8, FA)
|
|
24761
24761
|
])
|
|
24762
|
-
])) :
|
|
24762
|
+
])) : Y("", !0)
|
|
24763
24763
|
])
|
|
24764
24764
|
], 2));
|
|
24765
24765
|
}
|
|
@@ -24843,7 +24843,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24843
24843
|
m("div", {
|
|
24844
24844
|
role: "button",
|
|
24845
24845
|
class: "flex items-center rounded-sm px-1 box-border hover:bg-[#ffbdad] hover:text-[#de350b]",
|
|
24846
|
-
onClick: $t((
|
|
24846
|
+
onClick: $t((J) => v(V), ["stop"]),
|
|
24847
24847
|
"aria-label": `Remove ${O}`
|
|
24848
24848
|
}, E[2] || (E[2] = [
|
|
24849
24849
|
m("svg", {
|
|
@@ -24858,9 +24858,9 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24858
24858
|
], -1)
|
|
24859
24859
|
]), 8, UA)
|
|
24860
24860
|
]))), 128)),
|
|
24861
|
-
d.value ? (b(), C("div", WA, ie(u.value), 1)) :
|
|
24861
|
+
d.value ? (b(), C("div", WA, ie(u.value), 1)) : Y("", !0),
|
|
24862
24862
|
m("div", KA, [
|
|
24863
|
-
p.value ?
|
|
24863
|
+
p.value ? Y("", !0) : Le((b(), C("input", {
|
|
24864
24864
|
key: 0,
|
|
24865
24865
|
ref_key: "inputRef",
|
|
24866
24866
|
ref: l,
|
|
@@ -24899,7 +24899,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
24899
24899
|
}, [
|
|
24900
24900
|
m("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
|
|
24901
24901
|
], -1)
|
|
24902
|
-
]), 8, JA)) :
|
|
24902
|
+
]), 8, JA)) : Y("", !0)
|
|
24903
24903
|
])
|
|
24904
24904
|
], 10, zA)
|
|
24905
24905
|
], 2)
|
|
@@ -25138,7 +25138,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
25138
25138
|
], 8, pN)
|
|
25139
25139
|
], 42, uN))), 128))
|
|
25140
25140
|
], 512),
|
|
25141
|
-
a.value.length ?
|
|
25141
|
+
a.value.length ? Y("", !0) : (b(), C("span", hN, " Дані для відображення відсутні ")),
|
|
25142
25142
|
m("div", mN, [
|
|
25143
25143
|
m("button", {
|
|
25144
25144
|
type: "button",
|
|
@@ -25404,7 +25404,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
25404
25404
|
m("path", { d: "M12 16v-4" }),
|
|
25405
25405
|
m("path", { d: "M12 8h.01" })
|
|
25406
25406
|
], -1)
|
|
25407
|
-
]))) :
|
|
25407
|
+
]))) : Y("", !0)
|
|
25408
25408
|
]),
|
|
25409
25409
|
m("button", {
|
|
25410
25410
|
type: "button",
|
|
@@ -25483,9 +25483,9 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
25483
25483
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-100 border-b text-sm"
|
|
25484
25484
|
}, ie(S.display_name), 9, FN))), 128))
|
|
25485
25485
|
]),
|
|
25486
|
-
a.value.length ?
|
|
25486
|
+
a.value.length ? Y("", !0) : (b(), C("div", BN, " No results found "))
|
|
25487
25487
|
])
|
|
25488
|
-
])) :
|
|
25488
|
+
])) : Y("", !0)
|
|
25489
25489
|
]))
|
|
25490
25490
|
]));
|
|
25491
25491
|
}
|
|
@@ -25596,9 +25596,9 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
25596
25596
|
modelValue: n.value,
|
|
25597
25597
|
"onUpdate:modelValue": a[0] || (a[0] = (c) => n.value = c)
|
|
25598
25598
|
}), null, 16, ["modelValue"])),
|
|
25599
|
-
i.item.description && e.layout !== "settings" ? (b(), C("p", UN, ie(i.item.description), 1)) :
|
|
25599
|
+
i.item.description && e.layout !== "settings" ? (b(), C("p", UN, ie(i.item.description), 1)) : Y("", !0)
|
|
25600
25600
|
]),
|
|
25601
|
-
i.item.behavior?.api && i.item.behavior?.button ? (b(), ve(HN, ar({ key: 0 }, i.item.behavior, { value: n.value }), null, 16, ["value"])) :
|
|
25601
|
+
i.item.behavior?.api && i.item.behavior?.button ? (b(), ve(HN, ar({ key: 0 }, i.item.behavior, { value: n.value }), null, 16, ["value"])) : Y("", !0)
|
|
25602
25602
|
], 2)
|
|
25603
25603
|
]),
|
|
25604
25604
|
_: 1
|
|
@@ -25724,7 +25724,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
25724
25724
|
O(), d = 0;
|
|
25725
25725
|
}));
|
|
25726
25726
|
}
|
|
25727
|
-
function
|
|
25727
|
+
function J(R) {
|
|
25728
25728
|
if (!l.value) return;
|
|
25729
25729
|
const I = document.getElementById(R);
|
|
25730
25730
|
if (!I) return;
|
|
@@ -25748,7 +25748,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
25748
25748
|
}, [
|
|
25749
25749
|
m("button", {
|
|
25750
25750
|
type: "button",
|
|
25751
|
-
onClick: (ne) =>
|
|
25751
|
+
onClick: (ne) => J(G.id),
|
|
25752
25752
|
class: j([
|
|
25753
25753
|
"vs-compact-form-navigation__button flex gap-x-3 py-[6px] pr-3 text-sm duration-200 hover:text-gray-800",
|
|
25754
25754
|
G.level === 2 ? "pl-[15px]" : "pl-[18px]",
|
|
@@ -25759,7 +25759,7 @@ const GM = /* @__PURE__ */ _e(WM, [["render", qM]]), JM = { class: "map-search-w
|
|
|
25759
25759
|
], 10, qN)
|
|
25760
25760
|
], 2))), 128))
|
|
25761
25761
|
])
|
|
25762
|
-
], 6)) :
|
|
25762
|
+
], 6)) : Y("", !0);
|
|
25763
25763
|
}
|
|
25764
25764
|
}), JN = /* @__PURE__ */ _e(GN, [["__scopeId", "data-v-1584a562"]]), pm = {
|
|
25765
25765
|
required: "Це поле є обов’язковим",
|
|
@@ -25901,8 +25901,8 @@ const rL = { class: "flex w-full h-full min-h-0 gap-6" }, oL = {
|
|
|
25901
25901
|
function E(O, V) {
|
|
25902
25902
|
if (O === V) return !0;
|
|
25903
25903
|
if (typeof O != "object" || typeof V != "object" || !O || !V) return !1;
|
|
25904
|
-
const
|
|
25905
|
-
return
|
|
25904
|
+
const J = Object.keys(O), R = Object.keys(V);
|
|
25905
|
+
return J.length !== R.length ? !1 : J.every((I) => O[I] === V[I]);
|
|
25906
25906
|
}
|
|
25907
25907
|
return Oc("form", s), Oc("values", l), (O, V) => (b(), C("div", rL, [
|
|
25908
25908
|
m("div", {
|
|
@@ -25916,23 +25916,23 @@ const rL = { class: "flex w-full h-full min-h-0 gap-6" }, oL = {
|
|
|
25916
25916
|
onSubmit: $t(M, ["prevent"]),
|
|
25917
25917
|
class: j(["grid grid-cols-12 p-1", S.value === "default" ? "gap-6" : "gap-4"])
|
|
25918
25918
|
}, [
|
|
25919
|
-
(b(!0), C(xe, null, Ae(ae(u), (
|
|
25920
|
-
key:
|
|
25921
|
-
class: j(k(
|
|
25919
|
+
(b(!0), C(xe, null, Ae(ae(u), (J, R) => (b(), C("div", {
|
|
25920
|
+
key: J.name,
|
|
25921
|
+
class: j(k(J) === "horizontal" ? "col-span-12" : `col-span-${J.col || 12}`)
|
|
25922
25922
|
}, [
|
|
25923
25923
|
le(fm, {
|
|
25924
25924
|
style: Je(O.style),
|
|
25925
|
-
item:
|
|
25926
|
-
layout: k(
|
|
25927
|
-
columns: w(
|
|
25928
|
-
"model-value": l.value[
|
|
25925
|
+
item: J,
|
|
25926
|
+
layout: k(J),
|
|
25927
|
+
columns: w(J),
|
|
25928
|
+
"model-value": l.value[J.name],
|
|
25929
25929
|
"onUpdate:modelValue": (I) => {
|
|
25930
|
-
const G = l.value[
|
|
25931
|
-
E(G, I) || (l.value[
|
|
25930
|
+
const G = l.value[J.name];
|
|
25931
|
+
E(G, I) || (l.value[J.name] = I);
|
|
25932
25932
|
},
|
|
25933
|
-
error: ae(i)[
|
|
25933
|
+
error: ae(i)[J.name]
|
|
25934
25934
|
}, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
|
|
25935
|
-
k(
|
|
25935
|
+
k(J) === "settings" && R + 1 !== ae(u).length ? (b(), C("div", oL)) : Y("", !0)
|
|
25936
25936
|
], 2))), 128))
|
|
25937
25937
|
], 34)
|
|
25938
25938
|
], 512),
|
|
@@ -26076,7 +26076,7 @@ const rL = { class: "flex w-full h-full min-h-0 gap-6" }, oL = {
|
|
|
26076
26076
|
"onUpdate:values": f[0] || (f[0] = (p) => s.value = p),
|
|
26077
26077
|
form: l.value,
|
|
26078
26078
|
"onUpdate:form": f[1] || (f[1] = (p) => l.value = p)
|
|
26079
|
-
}, null, 8, ["schema", "values", "form"])) :
|
|
26079
|
+
}, null, 8, ["schema", "values", "form"])) : Y("", !0)
|
|
26080
26080
|
]),
|
|
26081
26081
|
m("div", { class: "vs-form__head mr-5 mb-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, [
|
|
26082
26082
|
m("button", {
|
|
@@ -26138,7 +26138,8 @@ const fL = { class: "relative" }, pL = {
|
|
|
26138
26138
|
setup(t) {
|
|
26139
26139
|
const e = t, n = D(!1), r = D(!1), o = D({}), s = D(!1), l = D([]), i = D({
|
|
26140
26140
|
src: "",
|
|
26141
|
-
file:
|
|
26141
|
+
file: [],
|
|
26142
|
+
// Завжди масив
|
|
26142
26143
|
alt: "",
|
|
26143
26144
|
title: "",
|
|
26144
26145
|
width: "",
|
|
@@ -26150,11 +26151,15 @@ const fL = { class: "relative" }, pL = {
|
|
|
26150
26151
|
return "";
|
|
26151
26152
|
if (i.value.src)
|
|
26152
26153
|
return i.value.src;
|
|
26153
|
-
if (c.value
|
|
26154
|
-
const w =
|
|
26155
|
-
|
|
26154
|
+
if (c.value) {
|
|
26155
|
+
const w = i.value.file[0];
|
|
26156
|
+
if (w instanceof File) {
|
|
26157
|
+
const M = l.value.find((E) => E.file === w);
|
|
26158
|
+
return M ? M.preview : "";
|
|
26159
|
+
} else if (typeof w == "string")
|
|
26160
|
+
return w;
|
|
26156
26161
|
}
|
|
26157
|
-
return
|
|
26162
|
+
return "";
|
|
26158
26163
|
}), d = F(() => [
|
|
26159
26164
|
{
|
|
26160
26165
|
name: "src",
|
|
@@ -26221,10 +26226,12 @@ const fL = { class: "relative" }, pL = {
|
|
|
26221
26226
|
s.value = !0;
|
|
26222
26227
|
let E = "", O = !1;
|
|
26223
26228
|
const V = e.editor.getAttributes("link");
|
|
26224
|
-
V && V.href && (E = V.href, O = V.target === "_blank")
|
|
26229
|
+
V && V.href && (E = V.href, O = V.target === "_blank");
|
|
26230
|
+
const J = M.src ? [M.src] : [];
|
|
26231
|
+
i.value = {
|
|
26225
26232
|
src: M.src || "",
|
|
26226
|
-
file:
|
|
26227
|
-
//
|
|
26233
|
+
file: J,
|
|
26234
|
+
// Завжди масив
|
|
26228
26235
|
alt: M.alt || "",
|
|
26229
26236
|
title: M.title || "",
|
|
26230
26237
|
width: M.width || "",
|
|
@@ -26235,7 +26242,8 @@ const fL = { class: "relative" }, pL = {
|
|
|
26235
26242
|
} else
|
|
26236
26243
|
s.value = !1, i.value = {
|
|
26237
26244
|
src: "",
|
|
26238
|
-
file:
|
|
26245
|
+
file: [],
|
|
26246
|
+
// Завжди масив
|
|
26239
26247
|
alt: "",
|
|
26240
26248
|
title: "",
|
|
26241
26249
|
width: "",
|
|
@@ -26247,7 +26255,8 @@ const fL = { class: "relative" }, pL = {
|
|
|
26247
26255
|
}, p = () => {
|
|
26248
26256
|
n.value = !1, r.value = !1, s.value = !1, l.value = [], i.value = {
|
|
26249
26257
|
src: "",
|
|
26250
|
-
file:
|
|
26258
|
+
file: [],
|
|
26259
|
+
// Завжди масив
|
|
26251
26260
|
alt: "",
|
|
26252
26261
|
title: "",
|
|
26253
26262
|
width: "",
|
|
@@ -26273,7 +26282,7 @@ const fL = { class: "relative" }, pL = {
|
|
|
26273
26282
|
}, E.readAsDataURL(M);
|
|
26274
26283
|
}
|
|
26275
26284
|
}, g = (w) => {
|
|
26276
|
-
l.value.splice(w, 1), Array.isArray(i.value.file) &&
|
|
26285
|
+
l.value.splice(w, 1), Array.isArray(i.value.file) && i.value.file.splice(w, 1);
|
|
26277
26286
|
}, y = async () => {
|
|
26278
26287
|
if (a.value && (l.value.length === 0 && await h(i.value.file), l.value.length > 0)) {
|
|
26279
26288
|
await x();
|
|
@@ -26285,8 +26294,8 @@ const fL = { class: "relative" }, pL = {
|
|
|
26285
26294
|
if (E instanceof File)
|
|
26286
26295
|
try {
|
|
26287
26296
|
const O = new FileReader();
|
|
26288
|
-
w = await new Promise((
|
|
26289
|
-
O.onload = (I) =>
|
|
26297
|
+
w = await new Promise((J, R) => {
|
|
26298
|
+
O.onload = (I) => J(I.target.result), O.onerror = R, O.readAsDataURL(E);
|
|
26290
26299
|
});
|
|
26291
26300
|
} catch (O) {
|
|
26292
26301
|
console.error("Помилка при читанні файлу:", O), Ge({
|
|
@@ -26297,8 +26306,8 @@ const fL = { class: "relative" }, pL = {
|
|
|
26297
26306
|
return;
|
|
26298
26307
|
}
|
|
26299
26308
|
else typeof E == "string" && (w = E);
|
|
26300
|
-
} else
|
|
26301
|
-
const M = w ||
|
|
26309
|
+
} else c.value && typeof i.value.file[0] == "string" && (w = i.value.file[0]);
|
|
26310
|
+
const M = w || Array.isArray(i.value.file) && i.value.file.length > 0 || i.value.file instanceof FileList && i.value.file.length > 0;
|
|
26302
26311
|
if (!w && !M) {
|
|
26303
26312
|
Ge({
|
|
26304
26313
|
type: "warning",
|
|
@@ -26317,7 +26326,7 @@ const fL = { class: "relative" }, pL = {
|
|
|
26317
26326
|
}
|
|
26318
26327
|
if (e.editor && w)
|
|
26319
26328
|
if (s.value) {
|
|
26320
|
-
const { state: E } = e.editor, { selection: O } = E, { $anchor: V } = O,
|
|
26329
|
+
const { state: E } = e.editor, { selection: O } = E, { $anchor: V } = O, J = e.editor.getAttributes("link"), R = J && J.href;
|
|
26321
26330
|
if (e.editor.chain().focus().updateAttributes("image", {
|
|
26322
26331
|
src: w,
|
|
26323
26332
|
alt: i.value.alt || "",
|
|
@@ -26336,18 +26345,18 @@ const fL = { class: "relative" }, pL = {
|
|
|
26336
26345
|
} else R && e.editor.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
26337
26346
|
} else {
|
|
26338
26347
|
const { state: E } = e.editor, { selection: O } = E, { $anchor: V } = O;
|
|
26339
|
-
let
|
|
26348
|
+
let J = null;
|
|
26340
26349
|
for (let I = V.depth; I > 0; I--) {
|
|
26341
26350
|
const G = V.node(I);
|
|
26342
26351
|
if (G && G.type.name === "paragraph") {
|
|
26343
|
-
|
|
26352
|
+
J = G;
|
|
26344
26353
|
break;
|
|
26345
26354
|
}
|
|
26346
26355
|
}
|
|
26347
|
-
if (
|
|
26356
|
+
if (J && J.content.content.some(
|
|
26348
26357
|
(I) => I.type.name === "image"
|
|
26349
26358
|
)) {
|
|
26350
|
-
const I = v(
|
|
26359
|
+
const I = v(J, V.before(V.depth));
|
|
26351
26360
|
if (I !== null) {
|
|
26352
26361
|
const G = E.schema.nodes.image.create({
|
|
26353
26362
|
src: w,
|
|
@@ -26429,7 +26438,7 @@ const fL = { class: "relative" }, pL = {
|
|
|
26429
26438
|
w.length > 0 && e.editor.chain().focus().command(({ tr: M, dispatch: E }) => {
|
|
26430
26439
|
if (E) {
|
|
26431
26440
|
const { selection: O } = M, { $anchor: V } = O;
|
|
26432
|
-
let
|
|
26441
|
+
let J = O.$anchor.pos, R = null, I = null;
|
|
26433
26442
|
for (let ne = V.depth; ne > 0; ne--) {
|
|
26434
26443
|
const W = V.node(ne);
|
|
26435
26444
|
if (W && W.type.name === "paragraph") {
|
|
@@ -26441,9 +26450,9 @@ const fL = { class: "relative" }, pL = {
|
|
|
26441
26450
|
let ne = null;
|
|
26442
26451
|
R.forEach((W, Z) => {
|
|
26443
26452
|
W.type.name === "image" && (ne = I + Z + 1);
|
|
26444
|
-
}), ne !== null ?
|
|
26453
|
+
}), ne !== null ? J = ne + 1 : J = I + R.content.size;
|
|
26445
26454
|
}
|
|
26446
|
-
let G =
|
|
26455
|
+
let G = J;
|
|
26447
26456
|
return w.forEach((ne) => {
|
|
26448
26457
|
M.insert(G, ne), G += ne.nodeSize;
|
|
26449
26458
|
}), !0;
|
|
@@ -26515,8 +26524,8 @@ const fL = { class: "relative" }, pL = {
|
|
|
26515
26524
|
}, null, 40, hL), [
|
|
26516
26525
|
[no, !r.value]
|
|
26517
26526
|
]),
|
|
26518
|
-
r.value ? (b(), C("p", mL, " Не вдалося завантажити попередній перегляд зображення ")) :
|
|
26519
|
-
])) :
|
|
26527
|
+
r.value ? (b(), C("p", mL, " Не вдалося завантажити попередній перегляд зображення ")) : Y("", !0)
|
|
26528
|
+
])) : Y("", !0),
|
|
26520
26529
|
l.value.length > 0 ? (b(), C("div", gL, [
|
|
26521
26530
|
m("p", yL, "Попередній перегляд (" + ie(l.value.length) + " зображень):", 1),
|
|
26522
26531
|
M[6] || (M[6] = m("p", { class: "text-xs text-gray-500 mb-2" }, " Зображення будуть розміщені в ряд, якщо вони помістяться по ширині ", -1)),
|
|
@@ -26540,7 +26549,7 @@ const fL = { class: "relative" }, pL = {
|
|
|
26540
26549
|
}, " × ", 8, xL)
|
|
26541
26550
|
]))), 128))
|
|
26542
26551
|
])
|
|
26543
|
-
])) :
|
|
26552
|
+
])) : Y("", !0)
|
|
26544
26553
|
]),
|
|
26545
26554
|
_: 1
|
|
26546
26555
|
}, 8, ["modelValue", "title"])
|
|
@@ -26685,7 +26694,7 @@ const fL = { class: "relative" }, pL = {
|
|
|
26685
26694
|
l[4] || (l[4] = dt('<div class="space-y-6" data-v-72ce3024><div data-v-72ce3024><h3 class="text-lg font-medium text-gray-800 mb-3" data-v-72ce3024>Markdown Syntax</h3><div class="overflow-x-auto" data-v-72ce3024><table class="w-full border-collapse" data-v-72ce3024><thead data-v-72ce3024><tr class="bg-gray-50" data-v-72ce3024><th class="border border-gray-200 px-3 py-2 text-left font-medium text-gray-700" data-v-72ce3024>Element</th><th class="border border-gray-200 px-3 py-2 text-left font-medium text-gray-700" data-v-72ce3024>Example</th></tr></thead><tbody class="text-sm" data-v-72ce3024><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Bold</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>**bold text**</code> or <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>__bold text__</code></td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Italics</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>*italic text*</code> or <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>_italic text_</code></td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Strikethrough</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>~strikethrough text~</code></td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Headings</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024># Heading 1</code>, <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>## Heading 2</code>, etc., up to <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>###### Heading 6</code></td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Unordered Lists</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Use an asterisk (*), dash (-), or plus sign (+) followed by a space. </td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Ordered Lists</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Use a number followed by a period and a space (e.g., <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>1. First item</code>). </td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Blockquotes</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Start with a greater-than sign (>) followed by a space. </td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Inline Code</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Surround with backticks (<code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>`</code>). </td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Code Blocks</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Enclose with three backticks (<code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>```</code>) before and after the code. </td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Images</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Use <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024></code> syntax. </td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Links</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Use <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>[Link Text](url)</code> syntax. </td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024>Checklists</td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024> Create a list item with <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>- [ ]</code> for an incomplete task or <code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>- [x]</code> for a completed one. </td></tr></tbody></table></div></div><div data-v-72ce3024><h3 class="text-lg font-medium text-gray-800 mb-3" data-v-72ce3024>Common Editing Shortcuts</h3><div class="overflow-x-auto" data-v-72ce3024><table class="w-full border-collapse" data-v-72ce3024><thead data-v-72ce3024><tr class="bg-gray-50" data-v-72ce3024><th class="border border-gray-200 px-3 py-2 text-left font-medium text-gray-700" data-v-72ce3024>Shortcut</th><th class="border border-gray-200 px-3 py-2 text-left font-medium text-gray-700" data-v-72ce3024>Action</th></tr></thead><tbody class="text-sm" data-v-72ce3024><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+A</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Select all text</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+B</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Apply bold formatting</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+C</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Copy selected text</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+I</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Apply italic formatting</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+K</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Open the insert link dialog</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+S</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Save the current document</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+V</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Paste copied text</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+X</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Cut selected text</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+Y</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Redo the last action</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Alt+Shift+Backspace</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Redo the last action</td></tr><tr data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Ctrl+Z</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Undo the last action</td></tr><tr class="bg-gray-25" data-v-72ce3024><td class="border border-gray-200 px-3 py-2 font-medium" data-v-72ce3024><code class="bg-gray-100 px-2 py-1 rounded" data-v-72ce3024>Alt+Backspace</code></td><td class="border border-gray-200 px-3 py-2" data-v-72ce3024>Undo the last action</td></tr></tbody></table></div></div></div>', 1))
|
|
26686
26695
|
])
|
|
26687
26696
|
])
|
|
26688
|
-
])) :
|
|
26697
|
+
])) : Y("", !0)
|
|
26689
26698
|
]));
|
|
26690
26699
|
}
|
|
26691
26700
|
}), NL = /* @__PURE__ */ qe(AL, [["__scopeId", "data-v-72ce3024"]]), LL = {
|
|
@@ -27325,21 +27334,21 @@ const fL = { class: "relative" }, pL = {
|
|
|
27325
27334
|
} catch (R) {
|
|
27326
27335
|
console.warn("HTML completion provider failed:", R);
|
|
27327
27336
|
}
|
|
27328
|
-
},
|
|
27337
|
+
}, J = () => {
|
|
27329
27338
|
l && l.layout();
|
|
27330
27339
|
};
|
|
27331
27340
|
return nt(async () => {
|
|
27332
27341
|
await Lt();
|
|
27333
27342
|
try {
|
|
27334
|
-
await p(), await Lt(), await g(), V(), window.addEventListener("resize",
|
|
27343
|
+
await p(), await Lt(), await g(), V(), window.addEventListener("resize", J);
|
|
27335
27344
|
} catch (R) {
|
|
27336
27345
|
console.error("Failed to initialize Monaco Editor:", R);
|
|
27337
27346
|
}
|
|
27338
27347
|
}), an(() => {
|
|
27339
|
-
l && l.dispose(), window.removeEventListener("resize",
|
|
27348
|
+
l && l.dispose(), window.removeEventListener("resize", J);
|
|
27340
27349
|
}), be(() => r.modelValue, y), be(() => r.theme, v), be(() => r.language, x), be(() => r.height, () => {
|
|
27341
27350
|
Lt(() => {
|
|
27342
|
-
|
|
27351
|
+
J();
|
|
27343
27352
|
});
|
|
27344
27353
|
}), e({
|
|
27345
27354
|
editor: l,
|
|
@@ -27399,7 +27408,7 @@ const fL = { class: "relative" }, pL = {
|
|
|
27399
27408
|
editor: ae(o),
|
|
27400
27409
|
onToggleFullscreen: ae(f),
|
|
27401
27410
|
onToggleHtmlMode: ae(c)
|
|
27402
|
-
}, null, 40, ["editor", "onToggleFullscreen", "onToggleHtmlMode"])) :
|
|
27411
|
+
}, null, 40, ["editor", "onToggleFullscreen", "onToggleHtmlMode"])) : Y("", !0)
|
|
27403
27412
|
], 64))), 128))
|
|
27404
27413
|
]),
|
|
27405
27414
|
m("div", {
|
|
@@ -27484,7 +27493,7 @@ const fL = { class: "relative" }, pL = {
|
|
|
27484
27493
|
editor: ae(s),
|
|
27485
27494
|
onToggleFullscreen: ae(a),
|
|
27486
27495
|
onToggleHtmlMode: ae(i)
|
|
27487
|
-
}, null, 40, ["editor", "onToggleFullscreen", "onToggleHtmlMode"])) :
|
|
27496
|
+
}, null, 40, ["editor", "onToggleFullscreen", "onToggleHtmlMode"])) : Y("", !0)
|
|
27488
27497
|
], 64))), 128))
|
|
27489
27498
|
])
|
|
27490
27499
|
])
|
|
@@ -27833,7 +27842,7 @@ function hO(t, e = {}) {
|
|
|
27833
27842
|
}, Ie = oe();
|
|
27834
27843
|
return T.resetPeek(), Ie;
|
|
27835
27844
|
}
|
|
27836
|
-
function
|
|
27845
|
+
function J(T) {
|
|
27837
27846
|
g(T);
|
|
27838
27847
|
const A = T.currentPeek() === "|";
|
|
27839
27848
|
return T.resetPeek(), A;
|
|
@@ -27904,7 +27913,7 @@ function hO(t, e = {}) {
|
|
|
27904
27913
|
if (R(T))
|
|
27905
27914
|
A += z, T.next();
|
|
27906
27915
|
else {
|
|
27907
|
-
if (
|
|
27916
|
+
if (J(T))
|
|
27908
27917
|
break;
|
|
27909
27918
|
A += z, T.next();
|
|
27910
27919
|
}
|
|
@@ -28021,7 +28030,7 @@ function hO(t, e = {}) {
|
|
|
28021
28030
|
return A.braceNest > 0 && d(ge.UNTERMINATED_CLOSING_BRACE, s(), 0), z = cn(T, A) || p(A), A.braceNest = 0, z;
|
|
28022
28031
|
default: {
|
|
28023
28032
|
let Ie = !0, He = !0, Ce = !0;
|
|
28024
|
-
if (
|
|
28033
|
+
if (J(T))
|
|
28025
28034
|
return A.braceNest > 0 && d(ge.UNTERMINATED_CLOSING_BRACE, s(), 0), z = f(A, 1, at(T)), A.braceNest = 0, A.inLinked = !1, z;
|
|
28026
28035
|
if (A.braceNest > 0 && (A.currentType === 4 || A.currentType === 5 || A.currentType === 6))
|
|
28027
28036
|
return d(ge.UNTERMINATED_CLOSING_BRACE, s(), 0), A.braceNest = 0, vn(T, A);
|
|
@@ -28065,7 +28074,7 @@ function hO(t, e = {}) {
|
|
|
28065
28074
|
/* TokenChars.LinkedDelimiter */
|
|
28066
28075
|
);
|
|
28067
28076
|
default:
|
|
28068
|
-
return
|
|
28077
|
+
return J(T) ? (oe = f(A, 1, at(T)), A.braceNest = 0, A.inLinked = !1, oe) : M(T, A) || O(T, A) ? (y(T), cn(T, A)) : E(T, A) ? (y(T), f(A, 11, Jt(T))) : V(T, A) ? (y(T), Ie === "{" ? Yt(T, A) || oe : f(A, 10, yn(T))) : (z === 7 && d(ge.INVALID_LINKED_FORMAT, s(), 0), A.braceNest = 0, A.inLinked = !1, vn(T, A));
|
|
28069
28078
|
}
|
|
28070
28079
|
}
|
|
28071
28080
|
function vn(T, A) {
|
|
@@ -28090,7 +28099,7 @@ function hO(t, e = {}) {
|
|
|
28090
28099
|
case "@":
|
|
28091
28100
|
return cn(T, A) || p(A);
|
|
28092
28101
|
default: {
|
|
28093
|
-
if (
|
|
28102
|
+
if (J(T))
|
|
28094
28103
|
return z = f(A, 1, at(T)), A.braceNest = 0, A.inLinked = !1, z;
|
|
28095
28104
|
if (R(T))
|
|
28096
28105
|
return f(A, 0, zt(T));
|
|
@@ -28229,8 +28238,8 @@ function vO(t = {}) {
|
|
|
28229
28238
|
V.value == null && r(v, ge.UNEXPECTED_LEXICAL_ANALYSIS, x.lastStartLoc, 0, xn(V)), w.items.push(c(v, V.value || ""));
|
|
28230
28239
|
break;
|
|
28231
28240
|
case 7: {
|
|
28232
|
-
const
|
|
28233
|
-
w.items.push(
|
|
28241
|
+
const J = f(v);
|
|
28242
|
+
w.items.push(J.node), M = J.nextConsumeToken || null;
|
|
28234
28243
|
break;
|
|
28235
28244
|
}
|
|
28236
28245
|
}
|
|
@@ -29176,7 +29185,7 @@ let Bd = 0;
|
|
|
29176
29185
|
function y4(t = {}) {
|
|
29177
29186
|
const e = Ve(t.onWarn) ? t.onWarn : Tn, n = re(t.version) ? t.version : c4, r = re(t.locale) || Ve(t.locale) ? t.locale : ts, o = Ve(r) ? ts : r, s = Ze(t.fallbackLocale) || Se(t.fallbackLocale) || re(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : o, l = Se(t.messages) ? t.messages : Mi(o), i = Se(t.datetimeFormats) ? t.datetimeFormats : Mi(o), a = Se(t.numberFormats) ? t.numberFormats : Mi(o), c = ct($e(), t.modifiers, u4()), u = t.pluralRules || $e(), d = Ve(t.missing) ? t.missing : null, f = Me(t.missingWarn) || co(t.missingWarn) ? t.missingWarn : !0, p = Me(t.fallbackWarn) || co(t.fallbackWarn) ? t.fallbackWarn : !0, h = !!t.fallbackFormat, g = !!t.unresolving, y = Ve(t.postTranslation) ? t.postTranslation : null, v = Se(t.processor) ? t.processor : null, x = Me(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, S = !!t.escapeParameter, k = Ve(t.messageCompiler) ? t.messageCompiler : _m;
|
|
29178
29187
|
process.env.NODE_ENV !== "production" && Ve(t.messageCompiler) && bc(Fr(Rt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
29179
|
-
const w = Ve(t.messageResolver) ? t.messageResolver : Tm || s4, M = Ve(t.localeFallbacker) ? t.localeFallbacker : Mm || YO, E = Te(t.fallbackContext) ? t.fallbackContext : void 0, O = t, V = Te(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(),
|
|
29188
|
+
const w = Ve(t.messageResolver) ? t.messageResolver : Tm || s4, M = Ve(t.localeFallbacker) ? t.localeFallbacker : Mm || YO, E = Te(t.fallbackContext) ? t.fallbackContext : void 0, O = t, V = Te(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), J = Te(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), R = Te(O.__meta) ? O.__meta : {};
|
|
29180
29189
|
Bd++;
|
|
29181
29190
|
const I = {
|
|
29182
29191
|
version: n,
|
|
@@ -29202,7 +29211,7 @@ function y4(t = {}) {
|
|
|
29202
29211
|
onWarn: e,
|
|
29203
29212
|
__meta: R
|
|
29204
29213
|
};
|
|
29205
|
-
return I.datetimeFormats = i, I.numberFormats = a, I.__datetimeFormatters = V, I.__numberFormatters =
|
|
29214
|
+
return I.datetimeFormats = i, I.numberFormats = a, I.__datetimeFormatters = V, I.__numberFormatters = J, process.env.NODE_ENV !== "production" && (I.__v_emitter = O.__v_emitter != null ? O.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && WO(I, n, R), I;
|
|
29206
29215
|
}
|
|
29207
29216
|
const Mi = (t) => ({ [t]: $e() });
|
|
29208
29217
|
function Xl(t, e) {
|
|
@@ -29267,8 +29276,8 @@ function zd(t, ...e) {
|
|
|
29267
29276
|
key: a,
|
|
29268
29277
|
target: x
|
|
29269
29278
|
})), process.env.NODE_ENV !== "production" && g !== x) {
|
|
29270
|
-
const
|
|
29271
|
-
|
|
29279
|
+
const J = t.__v_emitter;
|
|
29280
|
+
J && J.emit("fallback", {
|
|
29272
29281
|
type: M,
|
|
29273
29282
|
key: a,
|
|
29274
29283
|
from: k,
|
|
@@ -29361,8 +29370,8 @@ function jd(t, ...e) {
|
|
|
29361
29370
|
key: a,
|
|
29362
29371
|
target: x
|
|
29363
29372
|
})), process.env.NODE_ENV !== "production" && g !== x) {
|
|
29364
|
-
const
|
|
29365
|
-
|
|
29373
|
+
const J = t.__v_emitter;
|
|
29374
|
+
J && J.emit("fallback", {
|
|
29366
29375
|
type: M,
|
|
29367
29376
|
key: a,
|
|
29368
29377
|
from: k,
|
|
@@ -29480,7 +29489,7 @@ function qd(t, ...e) {
|
|
|
29480
29489
|
}, O = tn(k) ? k : $m(t, a, x, k, w, E);
|
|
29481
29490
|
if (M)
|
|
29482
29491
|
return k;
|
|
29483
|
-
const V = L4(t, x, S, c),
|
|
29492
|
+
const V = L4(t, x, S, c), J = _4(V), R = M4(t, O, J);
|
|
29484
29493
|
let I = r ? r(R, a) : R;
|
|
29485
29494
|
if (f && re(I) && (I = XL(I)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
29486
29495
|
const G = {
|
|
@@ -29949,7 +29958,7 @@ function Mc(t = {}) {
|
|
|
29949
29958
|
d.value
|
|
29950
29959
|
];
|
|
29951
29960
|
}
|
|
29952
|
-
const
|
|
29961
|
+
const J = F({
|
|
29953
29962
|
get: () => i.value,
|
|
29954
29963
|
set: ($) => {
|
|
29955
29964
|
E.locale = $, i.value = $;
|
|
@@ -30118,7 +30127,7 @@ function Mc(t = {}) {
|
|
|
30118
30127
|
}));
|
|
30119
30128
|
const Ce = {
|
|
30120
30129
|
id: Xd,
|
|
30121
|
-
locale:
|
|
30130
|
+
locale: J,
|
|
30122
30131
|
fallbackLocale: R,
|
|
30123
30132
|
get inheritLocale() {
|
|
30124
30133
|
return l;
|