@vc-shell/framework 1.0.184 → 1.0.186
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/CHANGELOG.md +18 -0
- package/core/composables/usePermissions/index.ts +1 -1
- package/core/interceptors/index.ts +1 -1
- package/dist/framework.js +668 -667
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +5 -4
- package/ui/components/organisms/vc-table/vc-table.vue +1 -0
package/dist/framework.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Ae, openBlock as x, createElementBlock as B, normalizeClass as De, renderSlot as Le, computed as re, createBlock as we, unref as
|
|
1
|
+
import { defineComponent as Ae, openBlock as x, createElementBlock as B, normalizeClass as De, renderSlot as Le, computed as re, createBlock as we, unref as I, createCommentVNode as ie, ref as K, createElementVNode as Y, toDisplayString as ue, createVNode as oe, Transition as Lu, withCtx as le, withDirectives as Ht, vShow as ba, shallowRef as kr, watch as Ge, getCurrentScope as Ty, onScopeDispose as Ay, shallowReadonly as xo, Teleport as Ri, normalizeStyle as Et, createSlots as xr, createTextVNode as Re, vModelCheckbox as gE, onMounted as ct, nextTick as Vt, Fragment as je, renderList as ot, mergeProps as Lt, onBeforeUnmount as wa, h as Te, onUpdated as us, getCurrentInstance as pr, effectScope as Ny, inject as Ot, onUnmounted as zr, onBeforeMount as _a, isRef as Zi, Text as yE, resolveDirective as Ea, withModifiers as nt, vModelDynamic as ky, version as bE, toRefs as Cn, reactive as qt, toRef as Cy, readonly as Du, customRef as dh, onBeforeUpdate as hh, watchEffect as Yr, normalizeProps as td, guardReactiveProps as Py, resolveComponent as $e, withKeys as Ru, onErrorCaptured as wE, createApp as _E, provide as Cr, isVNode as xy, markRaw as Ft, warn as EE, resolveDynamicComponent as Kn, shallowReactive as SE, cloneVNode as OE, toValue as Be, useSlots as TE, useAttrs as AE } from "vue";
|
|
2
2
|
import * as NE from "vee-validate";
|
|
3
3
|
import { useField as kE, useForm as cs, useIsFormValid as Sa, useIsFormDirty as Oa, Field as jr, validate as CE, validateObject as PE, defineRule as fs } from "vee-validate";
|
|
4
4
|
import { RouterView as xE, useRoute as ph, useRouter as Ta } from "vue-router";
|
|
@@ -76,7 +76,7 @@ const IE = /* @__PURE__ */ Ae({
|
|
|
76
76
|
disabled: s.disabled,
|
|
77
77
|
onClick: o
|
|
78
78
|
}, [
|
|
79
|
-
s.icon ? (x(), we(
|
|
79
|
+
s.icon ? (x(), we(I(Ve), {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: De(["vc-button__icon", s.iconClass]),
|
|
82
82
|
icon: s.icon,
|
|
@@ -114,7 +114,7 @@ const IE = /* @__PURE__ */ Ae({
|
|
|
114
114
|
class: "vc-card__header",
|
|
115
115
|
onClick: o
|
|
116
116
|
}, [
|
|
117
|
-
s.icon ? (x(), we(
|
|
117
|
+
s.icon ? (x(), we(I(Ve), {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "vc-card__icon",
|
|
120
120
|
icon: s.icon,
|
|
@@ -124,7 +124,7 @@ const IE = /* @__PURE__ */ Ae({
|
|
|
124
124
|
s.$slots.actions ? (x(), B("div", $E, [
|
|
125
125
|
Le(s.$slots, "actions")
|
|
126
126
|
])) : ie("", !0),
|
|
127
|
-
s.isCollapsable ? (x(), we(
|
|
127
|
+
s.isCollapsable ? (x(), we(I(Ve), {
|
|
128
128
|
key: 2,
|
|
129
129
|
class: "vc-card__collapse",
|
|
130
130
|
icon: `fas fa-chevron-${i.value ? "down" : "up"}`,
|
|
@@ -1086,7 +1086,7 @@ function bS(t) {
|
|
|
1086
1086
|
name: "arrow",
|
|
1087
1087
|
options: t,
|
|
1088
1088
|
fn(e) {
|
|
1089
|
-
const r = id(
|
|
1089
|
+
const r = id(I(t.element));
|
|
1090
1090
|
return r == null ? {} : gS({
|
|
1091
1091
|
element: r,
|
|
1092
1092
|
padding: t.padding
|
|
@@ -1105,16 +1105,16 @@ function Vu(t, e, r) {
|
|
|
1105
1105
|
r === void 0 && (r = {});
|
|
1106
1106
|
const n = r.whileElementsMounted, i = re(() => {
|
|
1107
1107
|
var S;
|
|
1108
|
-
return (S =
|
|
1109
|
-
}), o = re(() =>
|
|
1108
|
+
return (S = I(r.open)) != null ? S : !0;
|
|
1109
|
+
}), o = re(() => I(r.middleware)), s = re(() => {
|
|
1110
1110
|
var S;
|
|
1111
|
-
return (S =
|
|
1111
|
+
return (S = I(r.placement)) != null ? S : "bottom";
|
|
1112
1112
|
}), a = re(() => {
|
|
1113
1113
|
var S;
|
|
1114
|
-
return (S =
|
|
1114
|
+
return (S = I(r.strategy)) != null ? S : "absolute";
|
|
1115
1115
|
}), l = re(() => {
|
|
1116
1116
|
var S;
|
|
1117
|
-
return (S =
|
|
1117
|
+
return (S = I(r.transform)) != null ? S : !0;
|
|
1118
1118
|
}), u = re(() => id(t.value)), c = re(() => id(e.value)), f = K(0), d = K(0), h = K(a.value), b = K(s.value), p = kr({}), v = K(!1), y = re(() => {
|
|
1119
1119
|
const S = {
|
|
1120
1120
|
position: h.value,
|
|
@@ -1209,7 +1209,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1209
1209
|
o.required ? (x(), B("span", SS, "*")) : ie("", !0)
|
|
1210
1210
|
]),
|
|
1211
1211
|
o.$slots.tooltip ? (x(), B("span", OS, [
|
|
1212
|
-
oe(
|
|
1212
|
+
oe(I(Ve), {
|
|
1213
1213
|
ref_key: "tooltipIconRef",
|
|
1214
1214
|
ref: r,
|
|
1215
1215
|
class: "tw-text-[color:var(--label-tooltip-color)]",
|
|
@@ -1223,7 +1223,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1223
1223
|
key: 0,
|
|
1224
1224
|
ref_key: "tooltipRef",
|
|
1225
1225
|
ref: n,
|
|
1226
|
-
style: Et(
|
|
1226
|
+
style: Et(I(i)),
|
|
1227
1227
|
class: "tw-absolute tw-z-10 tw-bg-white tw-border tw-border-solid tw-border-[color:#eef0f2] tw-shadow-[1px_1px_8px_rgba(126,142,157,0.25)] tw-rounded-[3px] tw-text-[color:#8e9daa] tw-font-normal tw-py-1 tw-px-2 tw-ml-4"
|
|
1228
1228
|
}, [
|
|
1229
1229
|
Le(o.$slots, "tooltip")
|
|
@@ -1256,7 +1256,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1256
1256
|
setup(t, { emit: e }) {
|
|
1257
1257
|
const r = t, n = e, i = re({
|
|
1258
1258
|
get() {
|
|
1259
|
-
return
|
|
1259
|
+
return I(r.modelValue);
|
|
1260
1260
|
},
|
|
1261
1261
|
set(o) {
|
|
1262
1262
|
n("update:modelValue", o);
|
|
@@ -1265,7 +1265,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1265
1265
|
return (o, s) => (x(), B("div", {
|
|
1266
1266
|
class: De(["vc-checkbox", { "vc-checkbox_disabled": o.disabled }])
|
|
1267
1267
|
}, [
|
|
1268
|
-
o.label ? (x(), we(
|
|
1268
|
+
o.label ? (x(), we(I(vn), {
|
|
1269
1269
|
key: 0,
|
|
1270
1270
|
class: "tw-mb-2",
|
|
1271
1271
|
required: o.required
|
|
@@ -1301,7 +1301,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1301
1301
|
!o.label && o.required ? (x(), B("span", PS, "*")) : ie("", !0)
|
|
1302
1302
|
]),
|
|
1303
1303
|
o.errorMessage ? Le(o.$slots, "error", { key: 1 }, () => [
|
|
1304
|
-
oe(
|
|
1304
|
+
oe(I(Jr), { class: "vc-checkbox__error tw-mt-1" }, {
|
|
1305
1305
|
default: le(() => [
|
|
1306
1306
|
Re(ue(o.errorMessage), 1)
|
|
1307
1307
|
]),
|
|
@@ -1399,7 +1399,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1399
1399
|
class: De(["vc-container__overscroll", { "vc-container__overscroll_passed": f.value === "loosing" }]),
|
|
1400
1400
|
style: Et({ height: c.value ? `${c.value}px` : "0px" })
|
|
1401
1401
|
}, [
|
|
1402
|
-
oe(
|
|
1402
|
+
oe(I(Ve), {
|
|
1403
1403
|
icon: f.value === "pulling" ? "fas fa-arrow-down" : "fas fa-sync",
|
|
1404
1404
|
class: De([b.value]),
|
|
1405
1405
|
style: Et({ transform: f.value === "pulling" ? `rotate(${c.value * 3}deg)` : "" })
|
|
@@ -1450,7 +1450,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1450
1450
|
onClick: o
|
|
1451
1451
|
}, [
|
|
1452
1452
|
s.src ? ie("", !0) : (x(), B("div", RS, [
|
|
1453
|
-
oe(
|
|
1453
|
+
oe(I(Ve), {
|
|
1454
1454
|
icon: "fas fa-image",
|
|
1455
1455
|
size: "xl"
|
|
1456
1456
|
})
|
|
@@ -1550,11 +1550,11 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1550
1550
|
},
|
|
1551
1551
|
setup(t) {
|
|
1552
1552
|
return (e, r) => (x(), B("div", null, [
|
|
1553
|
-
e.status ? (x(), we(
|
|
1553
|
+
e.status ? (x(), we(I(Ve), {
|
|
1554
1554
|
key: 0,
|
|
1555
1555
|
icon: "fas fa-check-circle",
|
|
1556
1556
|
class: "tw-text-[color:#87b563]"
|
|
1557
|
-
})) : (x(), we(
|
|
1557
|
+
})) : (x(), we(I(Ve), {
|
|
1558
1558
|
key: 1,
|
|
1559
1559
|
icon: "fas fa-times-circle",
|
|
1560
1560
|
class: "tw-text-[color:#bdd1df]"
|
|
@@ -1578,7 +1578,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1578
1578
|
r("update:modelValue", o);
|
|
1579
1579
|
}
|
|
1580
1580
|
return (i, o) => (x(), B("div", null, [
|
|
1581
|
-
i.label ? (x(), we(
|
|
1581
|
+
i.label ? (x(), we(I(vn), {
|
|
1582
1582
|
key: 0,
|
|
1583
1583
|
class: "tw-mb-2",
|
|
1584
1584
|
required: i.required
|
|
@@ -1599,7 +1599,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1599
1599
|
}, null, 40, YS),
|
|
1600
1600
|
JS
|
|
1601
1601
|
]),
|
|
1602
|
-
i.tooltip ? (x(), we(
|
|
1602
|
+
i.tooltip ? (x(), we(I(Jr), {
|
|
1603
1603
|
key: 0,
|
|
1604
1604
|
class: "tw-mt-2 tw-w-max"
|
|
1605
1605
|
}, {
|
|
@@ -1629,7 +1629,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1629
1629
|
return (e, r) => (x(), B("div", {
|
|
1630
1630
|
class: De(["vc-video", [`vc-video_${e.size}`]])
|
|
1631
1631
|
}, [
|
|
1632
|
-
e.label ? (x(), we(
|
|
1632
|
+
e.label ? (x(), we(I(vn), {
|
|
1633
1633
|
key: 0,
|
|
1634
1634
|
class: "tw-mb-2"
|
|
1635
1635
|
}, xr({
|
|
@@ -1657,7 +1657,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1657
1657
|
allowfullscreen: "false"
|
|
1658
1658
|
}, null, 8, QS)
|
|
1659
1659
|
])) : (x(), B("div", eO, [
|
|
1660
|
-
oe(
|
|
1660
|
+
oe(I(Ve), {
|
|
1661
1661
|
icon: "fas fa-film",
|
|
1662
1662
|
size: "xl"
|
|
1663
1663
|
})
|
|
@@ -1689,7 +1689,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1689
1689
|
class: De(["vc-widget tw-relative", { "vc-widget_disabled": o.disabled }]),
|
|
1690
1690
|
onClick: i
|
|
1691
1691
|
}, [
|
|
1692
|
-
o.icon ? (x(), we(
|
|
1692
|
+
o.icon ? (x(), we(I(Ve), {
|
|
1693
1693
|
key: 0,
|
|
1694
1694
|
class: "vc-widget__icon",
|
|
1695
1695
|
icon: o.icon,
|
|
@@ -1720,7 +1720,7 @@ const wS = { class: "tw-flex tw-flex-row tw-justify-between tw-items-center tw-r
|
|
|
1720
1720
|
}]),
|
|
1721
1721
|
onClick: i
|
|
1722
1722
|
}, [
|
|
1723
|
-
o.icon ? (x(), we(
|
|
1723
|
+
o.icon ? (x(), we(I(Ve), {
|
|
1724
1724
|
key: 0,
|
|
1725
1725
|
class: "vc-breadcrumbs-item__icon",
|
|
1726
1726
|
icon: o.icon,
|
|
@@ -2261,8 +2261,8 @@ var Yy = { exports: {} };
|
|
|
2261
2261
|
`), de = Z.shift();
|
|
2262
2262
|
de.length > 0 && (D < this.length() - 1 || this.children.tail == null ? s(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "insertAt", this).call(this, Math.min(D, this.length() - 1), de) : this.children.tail.insertAt(this.children.tail.length(), de), this.cache = {});
|
|
2263
2263
|
var J = this;
|
|
2264
|
-
Z.reduce(function(U,
|
|
2265
|
-
return J = J.split(U, !0), J.insertAt(0,
|
|
2264
|
+
Z.reduce(function(U, L) {
|
|
2265
|
+
return J = J.split(U, !0), J.insertAt(0, L), L.length;
|
|
2266
2266
|
}, D + de.length);
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
@@ -2329,10 +2329,10 @@ var Yy = { exports: {} };
|
|
|
2329
2329
|
} : function(J) {
|
|
2330
2330
|
return J && typeof Symbol == "function" && J.constructor === Symbol && J !== Symbol.prototype ? "symbol" : typeof J;
|
|
2331
2331
|
}, s = /* @__PURE__ */ function() {
|
|
2332
|
-
function J(U,
|
|
2332
|
+
function J(U, L) {
|
|
2333
2333
|
var F = [], H = !0, ne = !1, W = void 0;
|
|
2334
2334
|
try {
|
|
2335
|
-
for (var j = U[Symbol.iterator](), X; !(H = (X = j.next()).done) && (F.push(X.value), !(
|
|
2335
|
+
for (var j = U[Symbol.iterator](), X; !(H = (X = j.next()).done) && (F.push(X.value), !(L && F.length === L)); H = !0)
|
|
2336
2336
|
;
|
|
2337
2337
|
} catch (se) {
|
|
2338
2338
|
ne = !0, W = se;
|
|
@@ -2346,22 +2346,22 @@ var Yy = { exports: {} };
|
|
|
2346
2346
|
}
|
|
2347
2347
|
return F;
|
|
2348
2348
|
}
|
|
2349
|
-
return function(U,
|
|
2349
|
+
return function(U, L) {
|
|
2350
2350
|
if (Array.isArray(U))
|
|
2351
2351
|
return U;
|
|
2352
2352
|
if (Symbol.iterator in Object(U))
|
|
2353
|
-
return J(U,
|
|
2353
|
+
return J(U, L);
|
|
2354
2354
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
2355
2355
|
};
|
|
2356
2356
|
}(), a = /* @__PURE__ */ function() {
|
|
2357
|
-
function J(U,
|
|
2358
|
-
for (var F = 0; F <
|
|
2359
|
-
var H =
|
|
2357
|
+
function J(U, L) {
|
|
2358
|
+
for (var F = 0; F < L.length; F++) {
|
|
2359
|
+
var H = L[F];
|
|
2360
2360
|
H.enumerable = H.enumerable || !1, H.configurable = !0, "value" in H && (H.writable = !0), Object.defineProperty(U, H.key, H);
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
|
-
return function(U,
|
|
2364
|
-
return
|
|
2363
|
+
return function(U, L, F) {
|
|
2364
|
+
return L && J(U.prototype, L), F && J(U, F), U;
|
|
2365
2365
|
};
|
|
2366
2366
|
}();
|
|
2367
2367
|
i(50);
|
|
@@ -2369,8 +2369,8 @@ var Yy = { exports: {} };
|
|
|
2369
2369
|
function O(J) {
|
|
2370
2370
|
return J && J.__esModule ? J : { default: J };
|
|
2371
2371
|
}
|
|
2372
|
-
function E(J, U,
|
|
2373
|
-
return U in J ? Object.defineProperty(J, U, { value:
|
|
2372
|
+
function E(J, U, L) {
|
|
2373
|
+
return U in J ? Object.defineProperty(J, U, { value: L, enumerable: !0, configurable: !0, writable: !0 }) : J[U] = L, J;
|
|
2374
2374
|
}
|
|
2375
2375
|
function N(J, U) {
|
|
2376
2376
|
if (!(J instanceof U))
|
|
@@ -2379,34 +2379,34 @@ var Yy = { exports: {} };
|
|
|
2379
2379
|
var P = (0, S.default)("quill"), D = function() {
|
|
2380
2380
|
a(J, null, [{
|
|
2381
2381
|
key: "debug",
|
|
2382
|
-
value: function(
|
|
2383
|
-
|
|
2382
|
+
value: function(L) {
|
|
2383
|
+
L === !0 && (L = "log"), S.default.level(L);
|
|
2384
2384
|
}
|
|
2385
2385
|
}, {
|
|
2386
2386
|
key: "find",
|
|
2387
|
-
value: function(
|
|
2388
|
-
return
|
|
2387
|
+
value: function(L) {
|
|
2388
|
+
return L.__quill || y.default.find(L);
|
|
2389
2389
|
}
|
|
2390
2390
|
}, {
|
|
2391
2391
|
key: "import",
|
|
2392
|
-
value: function(
|
|
2393
|
-
return this.imports[
|
|
2392
|
+
value: function(L) {
|
|
2393
|
+
return this.imports[L] == null && P.error("Cannot import " + L + ". Are you sure it was registered?"), this.imports[L];
|
|
2394
2394
|
}
|
|
2395
2395
|
}, {
|
|
2396
2396
|
key: "register",
|
|
2397
|
-
value: function(
|
|
2397
|
+
value: function(L, F) {
|
|
2398
2398
|
var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
2399
|
-
if (typeof
|
|
2400
|
-
var W =
|
|
2401
|
-
typeof W == "string" ? this.register("formats/" + W,
|
|
2402
|
-
H.register(j,
|
|
2399
|
+
if (typeof L != "string") {
|
|
2400
|
+
var W = L.attrName || L.blotName;
|
|
2401
|
+
typeof W == "string" ? this.register("formats/" + W, L, F) : Object.keys(L).forEach(function(j) {
|
|
2402
|
+
H.register(j, L[j], F);
|
|
2403
2403
|
});
|
|
2404
2404
|
} else
|
|
2405
|
-
this.imports[
|
|
2405
|
+
this.imports[L] != null && !ne && P.warn("Overwriting " + L + " with", F), this.imports[L] = F, (L.startsWith("blots/") || L.startsWith("formats/")) && F.blotName !== "abstract" ? y.default.register(F) : L.startsWith("modules") && typeof F.register == "function" && F.register();
|
|
2406
2406
|
}
|
|
2407
2407
|
}]);
|
|
2408
2408
|
function J(U) {
|
|
2409
|
-
var
|
|
2409
|
+
var L = this, F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2410
2410
|
if (N(this, J), this.options = M(U, F), this.container = this.options.container, this.container == null)
|
|
2411
2411
|
return P.error("Invalid Quill container", U);
|
|
2412
2412
|
this.options.debug && J.debug(this.options.debug);
|
|
@@ -2415,11 +2415,11 @@ var Yy = { exports: {} };
|
|
|
2415
2415
|
emitter: this.emitter,
|
|
2416
2416
|
whitelist: this.options.formats
|
|
2417
2417
|
}), this.editor = new f.default(this.scroll), this.selection = new w.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(h.default.events.EDITOR_CHANGE, function(W) {
|
|
2418
|
-
W === h.default.events.TEXT_CHANGE &&
|
|
2418
|
+
W === h.default.events.TEXT_CHANGE && L.root.classList.toggle("ql-blank", L.editor.isBlank());
|
|
2419
2419
|
}), this.emitter.on(h.default.events.SCROLL_UPDATE, function(W, j) {
|
|
2420
|
-
var X =
|
|
2421
|
-
G.call(
|
|
2422
|
-
return
|
|
2420
|
+
var X = L.selection.lastRange, se = X && X.length === 0 ? X.index : void 0;
|
|
2421
|
+
G.call(L, function() {
|
|
2422
|
+
return L.editor.update(null, j, se);
|
|
2423
2423
|
}, W);
|
|
2424
2424
|
});
|
|
2425
2425
|
var ne = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + H + "<p><br></p></div>");
|
|
@@ -2427,13 +2427,13 @@ var Yy = { exports: {} };
|
|
|
2427
2427
|
}
|
|
2428
2428
|
return a(J, [{
|
|
2429
2429
|
key: "addContainer",
|
|
2430
|
-
value: function(
|
|
2430
|
+
value: function(L) {
|
|
2431
2431
|
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
2432
|
-
if (typeof
|
|
2433
|
-
var H =
|
|
2434
|
-
|
|
2432
|
+
if (typeof L == "string") {
|
|
2433
|
+
var H = L;
|
|
2434
|
+
L = document.createElement("div"), L.classList.add(H);
|
|
2435
2435
|
}
|
|
2436
|
-
return this.container.insertBefore(
|
|
2436
|
+
return this.container.insertBefore(L, F), L;
|
|
2437
2437
|
}
|
|
2438
2438
|
}, {
|
|
2439
2439
|
key: "blur",
|
|
@@ -2442,11 +2442,11 @@ var Yy = { exports: {} };
|
|
|
2442
2442
|
}
|
|
2443
2443
|
}, {
|
|
2444
2444
|
key: "deleteText",
|
|
2445
|
-
value: function(
|
|
2446
|
-
var ne = this, W = Z(
|
|
2447
|
-
return
|
|
2448
|
-
return ne.editor.deleteText(
|
|
2449
|
-
}, H,
|
|
2445
|
+
value: function(L, F, H) {
|
|
2446
|
+
var ne = this, W = Z(L, F, H), j = s(W, 4);
|
|
2447
|
+
return L = j[0], F = j[1], H = j[3], G.call(this, function() {
|
|
2448
|
+
return ne.editor.deleteText(L, F);
|
|
2449
|
+
}, H, L, -1 * F);
|
|
2450
2450
|
}
|
|
2451
2451
|
}, {
|
|
2452
2452
|
key: "disable",
|
|
@@ -2456,54 +2456,54 @@ var Yy = { exports: {} };
|
|
|
2456
2456
|
}, {
|
|
2457
2457
|
key: "enable",
|
|
2458
2458
|
value: function() {
|
|
2459
|
-
var
|
|
2460
|
-
this.scroll.enable(
|
|
2459
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
2460
|
+
this.scroll.enable(L), this.container.classList.toggle("ql-disabled", !L);
|
|
2461
2461
|
}
|
|
2462
2462
|
}, {
|
|
2463
2463
|
key: "focus",
|
|
2464
2464
|
value: function() {
|
|
2465
|
-
var
|
|
2466
|
-
this.selection.focus(), this.scrollingContainer.scrollTop =
|
|
2465
|
+
var L = this.scrollingContainer.scrollTop;
|
|
2466
|
+
this.selection.focus(), this.scrollingContainer.scrollTop = L, this.scrollIntoView();
|
|
2467
2467
|
}
|
|
2468
2468
|
}, {
|
|
2469
2469
|
key: "format",
|
|
2470
|
-
value: function(
|
|
2470
|
+
value: function(L, F) {
|
|
2471
2471
|
var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : h.default.sources.API;
|
|
2472
2472
|
return G.call(this, function() {
|
|
2473
2473
|
var W = H.getSelection(!0), j = new u.default();
|
|
2474
2474
|
if (W == null)
|
|
2475
2475
|
return j;
|
|
2476
|
-
if (y.default.query(
|
|
2477
|
-
j = H.editor.formatLine(W.index, W.length, E({},
|
|
2476
|
+
if (y.default.query(L, y.default.Scope.BLOCK))
|
|
2477
|
+
j = H.editor.formatLine(W.index, W.length, E({}, L, F));
|
|
2478
2478
|
else {
|
|
2479
2479
|
if (W.length === 0)
|
|
2480
|
-
return H.selection.format(
|
|
2481
|
-
j = H.editor.formatText(W.index, W.length, E({},
|
|
2480
|
+
return H.selection.format(L, F), j;
|
|
2481
|
+
j = H.editor.formatText(W.index, W.length, E({}, L, F));
|
|
2482
2482
|
}
|
|
2483
2483
|
return H.setSelection(W, h.default.sources.SILENT), j;
|
|
2484
2484
|
}, ne);
|
|
2485
2485
|
}
|
|
2486
2486
|
}, {
|
|
2487
2487
|
key: "formatLine",
|
|
2488
|
-
value: function(
|
|
2489
|
-
var j = this, X = void 0, se = Z(
|
|
2490
|
-
return
|
|
2491
|
-
return j.editor.formatLine(
|
|
2492
|
-
}, W,
|
|
2488
|
+
value: function(L, F, H, ne, W) {
|
|
2489
|
+
var j = this, X = void 0, se = Z(L, F, H, ne, W), ce = s(se, 4);
|
|
2490
|
+
return L = ce[0], F = ce[1], X = ce[2], W = ce[3], G.call(this, function() {
|
|
2491
|
+
return j.editor.formatLine(L, F, X);
|
|
2492
|
+
}, W, L, 0);
|
|
2493
2493
|
}
|
|
2494
2494
|
}, {
|
|
2495
2495
|
key: "formatText",
|
|
2496
|
-
value: function(
|
|
2497
|
-
var j = this, X = void 0, se = Z(
|
|
2498
|
-
return
|
|
2499
|
-
return j.editor.formatText(
|
|
2500
|
-
}, W,
|
|
2496
|
+
value: function(L, F, H, ne, W) {
|
|
2497
|
+
var j = this, X = void 0, se = Z(L, F, H, ne, W), ce = s(se, 4);
|
|
2498
|
+
return L = ce[0], F = ce[1], X = ce[2], W = ce[3], G.call(this, function() {
|
|
2499
|
+
return j.editor.formatText(L, F, X);
|
|
2500
|
+
}, W, L, 0);
|
|
2501
2501
|
}
|
|
2502
2502
|
}, {
|
|
2503
2503
|
key: "getBounds",
|
|
2504
|
-
value: function(
|
|
2504
|
+
value: function(L) {
|
|
2505
2505
|
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, H = void 0;
|
|
2506
|
-
typeof
|
|
2506
|
+
typeof L == "number" ? H = this.selection.getBounds(L, F) : H = this.selection.getBounds(L.index, L.length);
|
|
2507
2507
|
var ne = this.container.getBoundingClientRect();
|
|
2508
2508
|
return {
|
|
2509
2509
|
bottom: H.bottom - ne.top,
|
|
@@ -2517,19 +2517,19 @@ var Yy = { exports: {} };
|
|
|
2517
2517
|
}, {
|
|
2518
2518
|
key: "getContents",
|
|
2519
2519
|
value: function() {
|
|
2520
|
-
var
|
|
2521
|
-
return
|
|
2520
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - L, H = Z(L, F), ne = s(H, 2);
|
|
2521
|
+
return L = ne[0], F = ne[1], this.editor.getContents(L, F);
|
|
2522
2522
|
}
|
|
2523
2523
|
}, {
|
|
2524
2524
|
key: "getFormat",
|
|
2525
2525
|
value: function() {
|
|
2526
|
-
var
|
|
2527
|
-
return typeof
|
|
2526
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
2527
|
+
return typeof L == "number" ? this.editor.getFormat(L, F) : this.editor.getFormat(L.index, L.length);
|
|
2528
2528
|
}
|
|
2529
2529
|
}, {
|
|
2530
2530
|
key: "getIndex",
|
|
2531
|
-
value: function(
|
|
2532
|
-
return
|
|
2531
|
+
value: function(L) {
|
|
2532
|
+
return L.offset(this.scroll);
|
|
2533
2533
|
}
|
|
2534
2534
|
}, {
|
|
2535
2535
|
key: "getLength",
|
|
@@ -2538,36 +2538,36 @@ var Yy = { exports: {} };
|
|
|
2538
2538
|
}
|
|
2539
2539
|
}, {
|
|
2540
2540
|
key: "getLeaf",
|
|
2541
|
-
value: function(
|
|
2542
|
-
return this.scroll.leaf(
|
|
2541
|
+
value: function(L) {
|
|
2542
|
+
return this.scroll.leaf(L);
|
|
2543
2543
|
}
|
|
2544
2544
|
}, {
|
|
2545
2545
|
key: "getLine",
|
|
2546
|
-
value: function(
|
|
2547
|
-
return this.scroll.line(
|
|
2546
|
+
value: function(L) {
|
|
2547
|
+
return this.scroll.line(L);
|
|
2548
2548
|
}
|
|
2549
2549
|
}, {
|
|
2550
2550
|
key: "getLines",
|
|
2551
2551
|
value: function() {
|
|
2552
|
-
var
|
|
2553
|
-
return typeof
|
|
2552
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
|
|
2553
|
+
return typeof L != "number" ? this.scroll.lines(L.index, L.length) : this.scroll.lines(L, F);
|
|
2554
2554
|
}
|
|
2555
2555
|
}, {
|
|
2556
2556
|
key: "getModule",
|
|
2557
|
-
value: function(
|
|
2558
|
-
return this.theme.modules[
|
|
2557
|
+
value: function(L) {
|
|
2558
|
+
return this.theme.modules[L];
|
|
2559
2559
|
}
|
|
2560
2560
|
}, {
|
|
2561
2561
|
key: "getSelection",
|
|
2562
2562
|
value: function() {
|
|
2563
|
-
var
|
|
2564
|
-
return
|
|
2563
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
2564
|
+
return L && this.focus(), this.update(), this.selection.getRange()[0];
|
|
2565
2565
|
}
|
|
2566
2566
|
}, {
|
|
2567
2567
|
key: "getText",
|
|
2568
2568
|
value: function() {
|
|
2569
|
-
var
|
|
2570
|
-
return
|
|
2569
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - L, H = Z(L, F), ne = s(H, 2);
|
|
2570
|
+
return L = ne[0], F = ne[1], this.editor.getText(L, F);
|
|
2571
2571
|
}
|
|
2572
2572
|
}, {
|
|
2573
2573
|
key: "hasFocus",
|
|
@@ -2576,19 +2576,19 @@ var Yy = { exports: {} };
|
|
|
2576
2576
|
}
|
|
2577
2577
|
}, {
|
|
2578
2578
|
key: "insertEmbed",
|
|
2579
|
-
value: function(
|
|
2579
|
+
value: function(L, F, H) {
|
|
2580
2580
|
var ne = this, W = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : J.sources.API;
|
|
2581
2581
|
return G.call(this, function() {
|
|
2582
|
-
return ne.editor.insertEmbed(
|
|
2583
|
-
}, W,
|
|
2582
|
+
return ne.editor.insertEmbed(L, F, H);
|
|
2583
|
+
}, W, L);
|
|
2584
2584
|
}
|
|
2585
2585
|
}, {
|
|
2586
2586
|
key: "insertText",
|
|
2587
|
-
value: function(
|
|
2588
|
-
var j = this, X = void 0, se = Z(
|
|
2589
|
-
return
|
|
2590
|
-
return j.editor.insertText(
|
|
2591
|
-
}, W,
|
|
2587
|
+
value: function(L, F, H, ne, W) {
|
|
2588
|
+
var j = this, X = void 0, se = Z(L, 0, H, ne, W), ce = s(se, 4);
|
|
2589
|
+
return L = ce[0], X = ce[2], W = ce[3], G.call(this, function() {
|
|
2590
|
+
return j.editor.insertText(L, F, X);
|
|
2591
|
+
}, W, L, F.length);
|
|
2592
2592
|
}
|
|
2593
2593
|
}, {
|
|
2594
2594
|
key: "isEnabled",
|
|
@@ -2612,16 +2612,16 @@ var Yy = { exports: {} };
|
|
|
2612
2612
|
}
|
|
2613
2613
|
}, {
|
|
2614
2614
|
key: "pasteHTML",
|
|
2615
|
-
value: function(
|
|
2616
|
-
this.clipboard.dangerouslyPasteHTML(
|
|
2615
|
+
value: function(L, F, H) {
|
|
2616
|
+
this.clipboard.dangerouslyPasteHTML(L, F, H);
|
|
2617
2617
|
}
|
|
2618
2618
|
}, {
|
|
2619
2619
|
key: "removeFormat",
|
|
2620
|
-
value: function(
|
|
2621
|
-
var ne = this, W = Z(
|
|
2622
|
-
return
|
|
2623
|
-
return ne.editor.removeFormat(
|
|
2624
|
-
}, H,
|
|
2620
|
+
value: function(L, F, H) {
|
|
2621
|
+
var ne = this, W = Z(L, F, H), j = s(W, 4);
|
|
2622
|
+
return L = j[0], F = j[1], H = j[3], G.call(this, function() {
|
|
2623
|
+
return ne.editor.removeFormat(L, F);
|
|
2624
|
+
}, H, L);
|
|
2625
2625
|
}
|
|
2626
2626
|
}, {
|
|
2627
2627
|
key: "scrollIntoView",
|
|
@@ -2630,11 +2630,11 @@ var Yy = { exports: {} };
|
|
|
2630
2630
|
}
|
|
2631
2631
|
}, {
|
|
2632
2632
|
key: "setContents",
|
|
2633
|
-
value: function(
|
|
2633
|
+
value: function(L) {
|
|
2634
2634
|
var F = this, H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : h.default.sources.API;
|
|
2635
2635
|
return G.call(this, function() {
|
|
2636
|
-
|
|
2637
|
-
var ne = F.getLength(), W = F.editor.deleteText(0, ne), j = F.editor.applyDelta(
|
|
2636
|
+
L = new u.default(L);
|
|
2637
|
+
var ne = F.getLength(), W = F.editor.deleteText(0, ne), j = F.editor.applyDelta(L), X = j.ops[j.ops.length - 1];
|
|
2638
2638
|
X != null && typeof X.insert == "string" && X.insert[X.insert.length - 1] === `
|
|
2639
2639
|
` && (F.editor.deleteText(F.getLength() - 1, 1), j.delete(1));
|
|
2640
2640
|
var se = W.compose(j);
|
|
@@ -2643,32 +2643,32 @@ var Yy = { exports: {} };
|
|
|
2643
2643
|
}
|
|
2644
2644
|
}, {
|
|
2645
2645
|
key: "setSelection",
|
|
2646
|
-
value: function(
|
|
2647
|
-
if (
|
|
2646
|
+
value: function(L, F, H) {
|
|
2647
|
+
if (L == null)
|
|
2648
2648
|
this.selection.setRange(null, F || J.sources.API);
|
|
2649
2649
|
else {
|
|
2650
|
-
var ne = Z(
|
|
2651
|
-
|
|
2650
|
+
var ne = Z(L, F, H), W = s(ne, 4);
|
|
2651
|
+
L = W[0], F = W[1], H = W[3], this.selection.setRange(new g.Range(L, F), H), H !== h.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
2654
|
}, {
|
|
2655
2655
|
key: "setText",
|
|
2656
|
-
value: function(
|
|
2657
|
-
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : h.default.sources.API, H = new u.default().insert(
|
|
2656
|
+
value: function(L) {
|
|
2657
|
+
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : h.default.sources.API, H = new u.default().insert(L);
|
|
2658
2658
|
return this.setContents(H, F);
|
|
2659
2659
|
}
|
|
2660
2660
|
}, {
|
|
2661
2661
|
key: "update",
|
|
2662
2662
|
value: function() {
|
|
2663
|
-
var
|
|
2664
|
-
return this.selection.update(
|
|
2663
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : h.default.sources.USER, F = this.scroll.update(L);
|
|
2664
|
+
return this.selection.update(L), F;
|
|
2665
2665
|
}
|
|
2666
2666
|
}, {
|
|
2667
2667
|
key: "updateContents",
|
|
2668
|
-
value: function(
|
|
2668
|
+
value: function(L) {
|
|
2669
2669
|
var F = this, H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : h.default.sources.API;
|
|
2670
2670
|
return G.call(this, function() {
|
|
2671
|
-
return
|
|
2671
|
+
return L = new u.default(L), F.editor.applyDelta(L, H);
|
|
2672
2672
|
}, H, !0);
|
|
2673
2673
|
}
|
|
2674
2674
|
}]), J;
|
|
@@ -2700,29 +2700,29 @@ var Yy = { exports: {} };
|
|
|
2700
2700
|
U.theme = C.default;
|
|
2701
2701
|
else if (U.theme = D.import("themes/" + U.theme), U.theme == null)
|
|
2702
2702
|
throw new Error("Invalid theme " + U.theme + ". Did you register it?");
|
|
2703
|
-
var
|
|
2704
|
-
[
|
|
2703
|
+
var L = (0, _.default)(!0, {}, U.theme.DEFAULTS);
|
|
2704
|
+
[L, U].forEach(function(ne) {
|
|
2705
2705
|
ne.modules = ne.modules || {}, Object.keys(ne.modules).forEach(function(W) {
|
|
2706
2706
|
ne.modules[W] === !0 && (ne.modules[W] = {});
|
|
2707
2707
|
});
|
|
2708
2708
|
});
|
|
2709
|
-
var F = Object.keys(
|
|
2709
|
+
var F = Object.keys(L.modules).concat(Object.keys(U.modules)), H = F.reduce(function(ne, W) {
|
|
2710
2710
|
var j = D.import("modules/" + W);
|
|
2711
2711
|
return j == null ? P.error("Cannot load " + W + " module. Are you sure you registered it?") : ne[W] = j.DEFAULTS || {}, ne;
|
|
2712
2712
|
}, {});
|
|
2713
2713
|
return U.modules != null && U.modules.toolbar && U.modules.toolbar.constructor !== Object && (U.modules.toolbar = {
|
|
2714
2714
|
container: U.modules.toolbar
|
|
2715
|
-
}), U = (0, _.default)(!0, {}, D.DEFAULTS, { modules: H },
|
|
2715
|
+
}), U = (0, _.default)(!0, {}, D.DEFAULTS, { modules: H }, L, U), ["bounds", "container", "scrollingContainer"].forEach(function(ne) {
|
|
2716
2716
|
typeof U[ne] == "string" && (U[ne] = document.querySelector(U[ne]));
|
|
2717
2717
|
}), U.modules = Object.keys(U.modules).reduce(function(ne, W) {
|
|
2718
2718
|
return U.modules[W] && (ne[W] = U.modules[W]), ne;
|
|
2719
2719
|
}, {}), U;
|
|
2720
2720
|
}
|
|
2721
|
-
function G(J, U,
|
|
2721
|
+
function G(J, U, L, F) {
|
|
2722
2722
|
if (this.options.strict && !this.isEnabled() && U === h.default.sources.USER)
|
|
2723
2723
|
return new u.default();
|
|
2724
|
-
var H =
|
|
2725
|
-
if (H != null && (
|
|
2724
|
+
var H = L == null ? null : this.getSelection(), ne = this.editor.delta, W = J();
|
|
2725
|
+
if (H != null && (L === !0 && (L = H.index), F == null ? H = de(H, W, U) : F !== 0 && (H = de(H, L, F, U)), this.setSelection(H, h.default.sources.SILENT)), W.length() > 0) {
|
|
2726
2726
|
var j, X = [h.default.events.TEXT_CHANGE, W, ne, U];
|
|
2727
2727
|
if ((j = this.emitter).emit.apply(j, [h.default.events.EDITOR_CHANGE].concat(X)), U !== h.default.sources.SILENT) {
|
|
2728
2728
|
var se;
|
|
@@ -2731,11 +2731,11 @@ var Yy = { exports: {} };
|
|
|
2731
2731
|
}
|
|
2732
2732
|
return W;
|
|
2733
2733
|
}
|
|
2734
|
-
function Z(J, U,
|
|
2734
|
+
function Z(J, U, L, F, H) {
|
|
2735
2735
|
var ne = {};
|
|
2736
|
-
return typeof J.index == "number" && typeof J.length == "number" ? typeof U != "number" ? (H = F, F =
|
|
2736
|
+
return typeof J.index == "number" && typeof J.length == "number" ? typeof U != "number" ? (H = F, F = L, L = U, U = J.length, J = J.index) : (U = J.length, J = J.index) : typeof U != "number" && (H = F, F = L, L = U, U = 0), (typeof L > "u" ? "undefined" : o(L)) === "object" ? (ne = L, H = F) : typeof L == "string" && (F != null ? ne[L] = F : H = L), H = H || h.default.sources.API, [J, U, ne, H];
|
|
2737
2737
|
}
|
|
2738
|
-
function de(J, U,
|
|
2738
|
+
function de(J, U, L, F) {
|
|
2739
2739
|
if (J == null)
|
|
2740
2740
|
return null;
|
|
2741
2741
|
var H = void 0, ne = void 0;
|
|
@@ -2746,7 +2746,7 @@ var Yy = { exports: {} };
|
|
|
2746
2746
|
H = j[0], ne = j[1];
|
|
2747
2747
|
} else {
|
|
2748
2748
|
var X = [J.index, J.index + J.length].map(function(ce) {
|
|
2749
|
-
return ce < U || ce === U && F === h.default.sources.USER ? ce :
|
|
2749
|
+
return ce < U || ce === U && F === h.default.sources.USER ? ce : L >= 0 ? ce + L : Math.max(U, ce + L);
|
|
2750
2750
|
}), se = s(X, 2);
|
|
2751
2751
|
H = se[0], ne = se[1];
|
|
2752
2752
|
}
|
|
@@ -3273,10 +3273,10 @@ var Yy = { exports: {} };
|
|
|
3273
3273
|
} : function(J) {
|
|
3274
3274
|
return J && typeof Symbol == "function" && J.constructor === Symbol && J !== Symbol.prototype ? "symbol" : typeof J;
|
|
3275
3275
|
}, s = /* @__PURE__ */ function() {
|
|
3276
|
-
function J(U,
|
|
3276
|
+
function J(U, L) {
|
|
3277
3277
|
var F = [], H = !0, ne = !1, W = void 0;
|
|
3278
3278
|
try {
|
|
3279
|
-
for (var j = U[Symbol.iterator](), X; !(H = (X = j.next()).done) && (F.push(X.value), !(
|
|
3279
|
+
for (var j = U[Symbol.iterator](), X; !(H = (X = j.next()).done) && (F.push(X.value), !(L && F.length === L)); H = !0)
|
|
3280
3280
|
;
|
|
3281
3281
|
} catch (se) {
|
|
3282
3282
|
ne = !0, W = se;
|
|
@@ -3290,29 +3290,29 @@ var Yy = { exports: {} };
|
|
|
3290
3290
|
}
|
|
3291
3291
|
return F;
|
|
3292
3292
|
}
|
|
3293
|
-
return function(U,
|
|
3293
|
+
return function(U, L) {
|
|
3294
3294
|
if (Array.isArray(U))
|
|
3295
3295
|
return U;
|
|
3296
3296
|
if (Symbol.iterator in Object(U))
|
|
3297
|
-
return J(U,
|
|
3297
|
+
return J(U, L);
|
|
3298
3298
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
3299
3299
|
};
|
|
3300
3300
|
}(), a = /* @__PURE__ */ function() {
|
|
3301
|
-
function J(U,
|
|
3302
|
-
for (var F = 0; F <
|
|
3303
|
-
var H =
|
|
3301
|
+
function J(U, L) {
|
|
3302
|
+
for (var F = 0; F < L.length; F++) {
|
|
3303
|
+
var H = L[F];
|
|
3304
3304
|
H.enumerable = H.enumerable || !1, H.configurable = !0, "value" in H && (H.writable = !0), Object.defineProperty(U, H.key, H);
|
|
3305
3305
|
}
|
|
3306
3306
|
}
|
|
3307
|
-
return function(U,
|
|
3308
|
-
return
|
|
3307
|
+
return function(U, L, F) {
|
|
3308
|
+
return L && J(U.prototype, L), F && J(U, F), U;
|
|
3309
3309
|
};
|
|
3310
3310
|
}(), l = i(2), u = N(l), c = i(20), f = N(c), d = i(0), h = N(d), b = i(13), p = N(b), v = i(24), y = N(v), g = i(4), w = N(g), m = i(16), _ = N(m), A = i(21), S = N(A), T = i(11), C = N(T), O = i(3), E = N(O);
|
|
3311
3311
|
function N(J) {
|
|
3312
3312
|
return J && J.__esModule ? J : { default: J };
|
|
3313
3313
|
}
|
|
3314
|
-
function P(J, U,
|
|
3315
|
-
return U in J ? Object.defineProperty(J, U, { value:
|
|
3314
|
+
function P(J, U, L) {
|
|
3315
|
+
return U in J ? Object.defineProperty(J, U, { value: L, enumerable: !0, configurable: !0, writable: !0 }) : J[U] = L, J;
|
|
3316
3316
|
}
|
|
3317
3317
|
function D(J, U) {
|
|
3318
3318
|
if (!(J instanceof U))
|
|
@@ -3324,11 +3324,11 @@ var Yy = { exports: {} };
|
|
|
3324
3324
|
}
|
|
3325
3325
|
return a(J, [{
|
|
3326
3326
|
key: "applyDelta",
|
|
3327
|
-
value: function(
|
|
3327
|
+
value: function(L) {
|
|
3328
3328
|
var F = this, H = !1;
|
|
3329
3329
|
this.scroll.update();
|
|
3330
3330
|
var ne = this.scroll.length();
|
|
3331
|
-
return this.scroll.batchStart(),
|
|
3331
|
+
return this.scroll.batchStart(), L = de(L), L.reduce(function(W, j) {
|
|
3332
3332
|
var X = j.retain || j.delete || j.insert.length || 1, se = j.attributes || {};
|
|
3333
3333
|
if (j.insert != null) {
|
|
3334
3334
|
if (typeof j.insert == "string") {
|
|
@@ -3353,63 +3353,63 @@ var Yy = { exports: {} };
|
|
|
3353
3353
|
return Object.keys(se).forEach(function(fe) {
|
|
3354
3354
|
F.scroll.formatAt(W, X, fe, se[fe]);
|
|
3355
3355
|
}), W + X;
|
|
3356
|
-
}, 0),
|
|
3356
|
+
}, 0), L.reduce(function(W, j) {
|
|
3357
3357
|
return typeof j.delete == "number" ? (F.scroll.deleteAt(W, j.delete), W) : W + (j.retain || j.insert.length || 1);
|
|
3358
|
-
}, 0), this.scroll.batchEnd(), this.update(
|
|
3358
|
+
}, 0), this.scroll.batchEnd(), this.update(L);
|
|
3359
3359
|
}
|
|
3360
3360
|
}, {
|
|
3361
3361
|
key: "deleteText",
|
|
3362
|
-
value: function(
|
|
3363
|
-
return this.scroll.deleteAt(
|
|
3362
|
+
value: function(L, F) {
|
|
3363
|
+
return this.scroll.deleteAt(L, F), this.update(new u.default().retain(L).delete(F));
|
|
3364
3364
|
}
|
|
3365
3365
|
}, {
|
|
3366
3366
|
key: "formatLine",
|
|
3367
|
-
value: function(
|
|
3367
|
+
value: function(L, F) {
|
|
3368
3368
|
var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3369
3369
|
return this.scroll.update(), Object.keys(ne).forEach(function(W) {
|
|
3370
3370
|
if (!(H.scroll.whitelist != null && !H.scroll.whitelist[W])) {
|
|
3371
|
-
var j = H.scroll.lines(
|
|
3371
|
+
var j = H.scroll.lines(L, Math.max(F, 1)), X = F;
|
|
3372
3372
|
j.forEach(function(se) {
|
|
3373
3373
|
var ce = se.length();
|
|
3374
3374
|
if (!(se instanceof p.default))
|
|
3375
3375
|
se.format(W, ne[W]);
|
|
3376
3376
|
else {
|
|
3377
|
-
var me =
|
|
3377
|
+
var me = L - se.offset(H.scroll), ke = se.newlineIndex(me + X) - me + 1;
|
|
3378
3378
|
se.formatAt(me, ke, W, ne[W]);
|
|
3379
3379
|
}
|
|
3380
3380
|
X -= ce;
|
|
3381
3381
|
});
|
|
3382
3382
|
}
|
|
3383
|
-
}), this.scroll.optimize(), this.update(new u.default().retain(
|
|
3383
|
+
}), this.scroll.optimize(), this.update(new u.default().retain(L).retain(F, (0, S.default)(ne)));
|
|
3384
3384
|
}
|
|
3385
3385
|
}, {
|
|
3386
3386
|
key: "formatText",
|
|
3387
|
-
value: function(
|
|
3387
|
+
value: function(L, F) {
|
|
3388
3388
|
var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3389
3389
|
return Object.keys(ne).forEach(function(W) {
|
|
3390
|
-
H.scroll.formatAt(
|
|
3391
|
-
}), this.update(new u.default().retain(
|
|
3390
|
+
H.scroll.formatAt(L, F, W, ne[W]);
|
|
3391
|
+
}), this.update(new u.default().retain(L).retain(F, (0, S.default)(ne)));
|
|
3392
3392
|
}
|
|
3393
3393
|
}, {
|
|
3394
3394
|
key: "getContents",
|
|
3395
|
-
value: function(
|
|
3396
|
-
return this.delta.slice(
|
|
3395
|
+
value: function(L, F) {
|
|
3396
|
+
return this.delta.slice(L, L + F);
|
|
3397
3397
|
}
|
|
3398
3398
|
}, {
|
|
3399
3399
|
key: "getDelta",
|
|
3400
3400
|
value: function() {
|
|
3401
|
-
return this.scroll.lines().reduce(function(
|
|
3402
|
-
return
|
|
3401
|
+
return this.scroll.lines().reduce(function(L, F) {
|
|
3402
|
+
return L.concat(F.delta());
|
|
3403
3403
|
}, new u.default());
|
|
3404
3404
|
}
|
|
3405
3405
|
}, {
|
|
3406
3406
|
key: "getFormat",
|
|
3407
|
-
value: function(
|
|
3407
|
+
value: function(L) {
|
|
3408
3408
|
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, H = [], ne = [];
|
|
3409
|
-
F === 0 ? this.scroll.path(
|
|
3409
|
+
F === 0 ? this.scroll.path(L).forEach(function(j) {
|
|
3410
3410
|
var X = s(j, 1), se = X[0];
|
|
3411
3411
|
se instanceof w.default ? H.push(se) : se instanceof h.default.Leaf && ne.push(se);
|
|
3412
|
-
}) : (H = this.scroll.lines(
|
|
3412
|
+
}) : (H = this.scroll.lines(L, F), ne = this.scroll.descendants(h.default.Leaf, L, F));
|
|
3413
3413
|
var W = [H, ne].map(function(j) {
|
|
3414
3414
|
if (j.length === 0)
|
|
3415
3415
|
return {};
|
|
@@ -3425,8 +3425,8 @@ var Yy = { exports: {} };
|
|
|
3425
3425
|
}
|
|
3426
3426
|
}, {
|
|
3427
3427
|
key: "getText",
|
|
3428
|
-
value: function(
|
|
3429
|
-
return this.getContents(
|
|
3428
|
+
value: function(L, F) {
|
|
3429
|
+
return this.getContents(L, F).filter(function(H) {
|
|
3430
3430
|
return typeof H.insert == "string";
|
|
3431
3431
|
}).map(function(H) {
|
|
3432
3432
|
return H.insert;
|
|
@@ -3434,18 +3434,18 @@ var Yy = { exports: {} };
|
|
|
3434
3434
|
}
|
|
3435
3435
|
}, {
|
|
3436
3436
|
key: "insertEmbed",
|
|
3437
|
-
value: function(
|
|
3438
|
-
return this.scroll.insertAt(
|
|
3437
|
+
value: function(L, F, H) {
|
|
3438
|
+
return this.scroll.insertAt(L, F, H), this.update(new u.default().retain(L).insert(P({}, F, H)));
|
|
3439
3439
|
}
|
|
3440
3440
|
}, {
|
|
3441
3441
|
key: "insertText",
|
|
3442
|
-
value: function(
|
|
3442
|
+
value: function(L, F) {
|
|
3443
3443
|
var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3444
3444
|
return F = F.replace(/\r\n/g, `
|
|
3445
3445
|
`).replace(/\r/g, `
|
|
3446
|
-
`), this.scroll.insertAt(
|
|
3447
|
-
H.scroll.formatAt(
|
|
3448
|
-
}), this.update(new u.default().retain(
|
|
3446
|
+
`), this.scroll.insertAt(L, F), Object.keys(ne).forEach(function(W) {
|
|
3447
|
+
H.scroll.formatAt(L, F.length, W, ne[W]);
|
|
3448
|
+
}), this.update(new u.default().retain(L).insert(F, (0, S.default)(ne)));
|
|
3449
3449
|
}
|
|
3450
3450
|
}, {
|
|
3451
3451
|
key: "isBlank",
|
|
@@ -3454,51 +3454,51 @@ var Yy = { exports: {} };
|
|
|
3454
3454
|
return !0;
|
|
3455
3455
|
if (this.scroll.children.length > 1)
|
|
3456
3456
|
return !1;
|
|
3457
|
-
var
|
|
3458
|
-
return
|
|
3457
|
+
var L = this.scroll.children.head;
|
|
3458
|
+
return L.statics.blotName !== w.default.blotName || L.children.length > 1 ? !1 : L.children.head instanceof _.default;
|
|
3459
3459
|
}
|
|
3460
3460
|
}, {
|
|
3461
3461
|
key: "removeFormat",
|
|
3462
|
-
value: function(
|
|
3463
|
-
var H = this.getText(
|
|
3462
|
+
value: function(L, F) {
|
|
3463
|
+
var H = this.getText(L, F), ne = this.scroll.line(L + F), W = s(ne, 2), j = W[0], X = W[1], se = 0, ce = new u.default();
|
|
3464
3464
|
j != null && (j instanceof p.default ? se = j.newlineIndex(X) - X + 1 : se = j.length() - X, ce = j.delta().slice(X, X + se - 1).insert(`
|
|
3465
3465
|
`));
|
|
3466
|
-
var me = this.getContents(
|
|
3466
|
+
var me = this.getContents(L, F + se), ke = me.diff(new u.default().insert(H).concat(ce)), ae = new u.default().retain(L).concat(ke);
|
|
3467
3467
|
return this.applyDelta(ae);
|
|
3468
3468
|
}
|
|
3469
3469
|
}, {
|
|
3470
3470
|
key: "update",
|
|
3471
|
-
value: function(
|
|
3471
|
+
value: function(L) {
|
|
3472
3472
|
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], H = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, ne = this.delta;
|
|
3473
3473
|
if (F.length === 1 && F[0].type === "characterData" && F[0].target.data.match(M) && h.default.find(F[0].target)) {
|
|
3474
3474
|
var W = h.default.find(F[0].target), j = (0, g.bubbleFormats)(W), X = W.offset(this.scroll), se = F[0].oldValue.replace(y.default.CONTENTS, ""), ce = new u.default().insert(se), me = new u.default().insert(W.value()), ke = new u.default().retain(X).concat(ce.diff(me, H));
|
|
3475
|
-
|
|
3475
|
+
L = ke.reduce(function(ae, V) {
|
|
3476
3476
|
return V.insert ? ae.insert(V.insert, j) : ae.push(V);
|
|
3477
|
-
}, new u.default()), this.delta = ne.compose(
|
|
3477
|
+
}, new u.default()), this.delta = ne.compose(L);
|
|
3478
3478
|
} else
|
|
3479
|
-
this.delta = this.getDelta(), (!
|
|
3480
|
-
return
|
|
3479
|
+
this.delta = this.getDelta(), (!L || !(0, C.default)(ne.compose(L), this.delta)) && (L = ne.diff(this.delta, H));
|
|
3480
|
+
return L;
|
|
3481
3481
|
}
|
|
3482
3482
|
}]), J;
|
|
3483
3483
|
}();
|
|
3484
3484
|
function Z(J, U) {
|
|
3485
|
-
return Object.keys(U).reduce(function(
|
|
3486
|
-
return J[F] == null || (U[F] === J[F] ?
|
|
3485
|
+
return Object.keys(U).reduce(function(L, F) {
|
|
3486
|
+
return J[F] == null || (U[F] === J[F] ? L[F] = U[F] : Array.isArray(U[F]) ? U[F].indexOf(J[F]) < 0 && (L[F] = U[F].concat([J[F]])) : L[F] = [U[F], J[F]]), L;
|
|
3487
3487
|
}, {});
|
|
3488
3488
|
}
|
|
3489
3489
|
function de(J) {
|
|
3490
|
-
return J.reduce(function(U,
|
|
3491
|
-
if (
|
|
3492
|
-
var F = (0, S.default)(
|
|
3493
|
-
return delete F.image, U.insert({ image:
|
|
3490
|
+
return J.reduce(function(U, L) {
|
|
3491
|
+
if (L.insert === 1) {
|
|
3492
|
+
var F = (0, S.default)(L.attributes);
|
|
3493
|
+
return delete F.image, U.insert({ image: L.attributes.image }, F);
|
|
3494
3494
|
}
|
|
3495
|
-
if (
|
|
3496
|
-
var H =
|
|
3495
|
+
if (L.attributes != null && (L.attributes.list === !0 || L.attributes.bullet === !0) && (L = (0, S.default)(L), L.attributes.list ? L.attributes.list = "ordered" : (L.attributes.list = "bullet", delete L.attributes.bullet)), typeof L.insert == "string") {
|
|
3496
|
+
var H = L.insert.replace(/\r\n/g, `
|
|
3497
3497
|
`).replace(/\r/g, `
|
|
3498
3498
|
`);
|
|
3499
|
-
return U.insert(H,
|
|
3499
|
+
return U.insert(H, L.attributes);
|
|
3500
3500
|
}
|
|
3501
|
-
return U.push(
|
|
3501
|
+
return U.push(L);
|
|
3502
3502
|
}, new u.default());
|
|
3503
3503
|
}
|
|
3504
3504
|
n.default = G;
|
|
@@ -3654,7 +3654,7 @@ var Yy = { exports: {} };
|
|
|
3654
3654
|
var U = document.createRange();
|
|
3655
3655
|
if (E > 0) {
|
|
3656
3656
|
U.setStart(P, Z);
|
|
3657
|
-
var
|
|
3657
|
+
var L = this.scroll.leaf(O + E), F = o(L, 2);
|
|
3658
3658
|
if (G = F[0], Z = F[1], G == null)
|
|
3659
3659
|
return null;
|
|
3660
3660
|
var H = G.position(Z, !0), ne = o(H, 2);
|
|
@@ -3703,8 +3703,8 @@ var Yy = { exports: {} };
|
|
|
3703
3703
|
var E = this, N = [[O.start.node, O.start.offset]];
|
|
3704
3704
|
O.native.collapsed || N.push([O.end.node, O.end.offset]);
|
|
3705
3705
|
var P = N.map(function(G) {
|
|
3706
|
-
var Z = o(G, 2), de = Z[0], J = Z[1], U = l.default.find(de, !0),
|
|
3707
|
-
return J === 0 ?
|
|
3706
|
+
var Z = o(G, 2), de = Z[0], J = Z[1], U = l.default.find(de, !0), L = U.offset(E.scroll);
|
|
3707
|
+
return J === 0 ? L : U instanceof l.default.Container ? L + U.length() : L + U.index(de, J);
|
|
3708
3708
|
}), D = Math.min(Math.max.apply(Math, g(P)), this.scroll.length() - 1), M = Math.min.apply(Math, [D].concat(g(P)));
|
|
3709
3709
|
return new _(M, D - M);
|
|
3710
3710
|
}
|
|
@@ -3735,8 +3735,8 @@ var Yy = { exports: {} };
|
|
|
3735
3735
|
var E = this, N = O.collapsed ? [O.index] : [O.index, O.index + O.length], P = [], D = this.scroll.length();
|
|
3736
3736
|
return N.forEach(function(M, G) {
|
|
3737
3737
|
M = Math.min(D - 1, M);
|
|
3738
|
-
var Z = void 0, de = E.scroll.leaf(M), J = o(de, 2), U = J[0],
|
|
3739
|
-
Z = H[0],
|
|
3738
|
+
var Z = void 0, de = E.scroll.leaf(M), J = o(de, 2), U = J[0], L = J[1], F = U.position(L, G !== 0), H = o(F, 2);
|
|
3739
|
+
Z = H[0], L = H[1], P.push(Z, L);
|
|
3740
3740
|
}), P.length < 2 && (P = P.concat(P)), P;
|
|
3741
3741
|
}
|
|
3742
3742
|
}, {
|
|
@@ -4257,11 +4257,11 @@ var Yy = { exports: {} };
|
|
|
4257
4257
|
else if (o(T, a))
|
|
4258
4258
|
O = new a();
|
|
4259
4259
|
else if (o(T, l))
|
|
4260
|
-
O = new l(function(U,
|
|
4260
|
+
O = new l(function(U, L) {
|
|
4261
4261
|
T.then(function(F) {
|
|
4262
4262
|
U(S(F, C - 1));
|
|
4263
4263
|
}, function(F) {
|
|
4264
|
-
|
|
4264
|
+
L(S(F, C - 1));
|
|
4265
4265
|
});
|
|
4266
4266
|
});
|
|
4267
4267
|
else if (u.__isArray(T))
|
|
@@ -4281,12 +4281,12 @@ var Yy = { exports: {} };
|
|
|
4281
4281
|
return _[N];
|
|
4282
4282
|
m.push(T), _.push(O);
|
|
4283
4283
|
}
|
|
4284
|
-
o(T, s) && T.forEach(function(U,
|
|
4285
|
-
var F = S(
|
|
4284
|
+
o(T, s) && T.forEach(function(U, L) {
|
|
4285
|
+
var F = S(L, C - 1), H = S(U, C - 1);
|
|
4286
4286
|
O.set(F, H);
|
|
4287
4287
|
}), o(T, a) && T.forEach(function(U) {
|
|
4288
|
-
var
|
|
4289
|
-
O.add(
|
|
4288
|
+
var L = S(U, C - 1);
|
|
4289
|
+
O.add(L);
|
|
4290
4290
|
});
|
|
4291
4291
|
for (var P in T) {
|
|
4292
4292
|
var D;
|
|
@@ -4438,24 +4438,24 @@ var Yy = { exports: {} };
|
|
|
4438
4438
|
}, {
|
|
4439
4439
|
key: "deleteAt",
|
|
4440
4440
|
value: function(P, D) {
|
|
4441
|
-
var M = this.line(P), G = o(M, 2), Z = G[0], de = G[1], J = this.line(P + D), U = o(J, 1),
|
|
4442
|
-
if (a(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "deleteAt", this).call(this, P, D),
|
|
4443
|
-
if (Z instanceof d.BlockEmbed ||
|
|
4441
|
+
var M = this.line(P), G = o(M, 2), Z = G[0], de = G[1], J = this.line(P + D), U = o(J, 1), L = U[0];
|
|
4442
|
+
if (a(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "deleteAt", this).call(this, P, D), L != null && Z !== L && de > 0) {
|
|
4443
|
+
if (Z instanceof d.BlockEmbed || L instanceof d.BlockEmbed) {
|
|
4444
4444
|
this.optimize();
|
|
4445
4445
|
return;
|
|
4446
4446
|
}
|
|
4447
4447
|
if (Z instanceof y.default) {
|
|
4448
4448
|
var F = Z.newlineIndex(Z.length(), !0);
|
|
4449
|
-
if (F > -1 && (Z = Z.split(F + 1), Z ===
|
|
4449
|
+
if (F > -1 && (Z = Z.split(F + 1), Z === L)) {
|
|
4450
4450
|
this.optimize();
|
|
4451
4451
|
return;
|
|
4452
4452
|
}
|
|
4453
|
-
} else if (
|
|
4454
|
-
var H =
|
|
4455
|
-
H > -1 &&
|
|
4453
|
+
} else if (L instanceof y.default) {
|
|
4454
|
+
var H = L.newlineIndex(0);
|
|
4455
|
+
H > -1 && L.split(H + 1);
|
|
4456
4456
|
}
|
|
4457
|
-
var ne =
|
|
4458
|
-
Z.moveChildren(
|
|
4457
|
+
var ne = L.children.head instanceof p.default ? null : L.children.head;
|
|
4458
|
+
Z.moveChildren(L, ne), Z.remove();
|
|
4459
4459
|
}
|
|
4460
4460
|
this.optimize();
|
|
4461
4461
|
}
|
|
@@ -4511,9 +4511,9 @@ var Yy = { exports: {} };
|
|
|
4511
4511
|
key: "lines",
|
|
4512
4512
|
value: function() {
|
|
4513
4513
|
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, M = function G(Z, de, J) {
|
|
4514
|
-
var U = [],
|
|
4514
|
+
var U = [], L = J;
|
|
4515
4515
|
return Z.children.forEachAt(de, J, function(F, H, ne) {
|
|
4516
|
-
T(F) ? U.push(F) : F instanceof u.default.Container && (U = U.concat(G(F, H,
|
|
4516
|
+
T(F) ? U.push(F) : F instanceof u.default.Container && (U = U.concat(G(F, H, L))), L -= ne;
|
|
4517
4517
|
}), U;
|
|
4518
4518
|
};
|
|
4519
4519
|
return M(this, P, D);
|
|
@@ -4622,7 +4622,7 @@ var Yy = { exports: {} };
|
|
|
4622
4622
|
return me.bindings = {}, Object.keys(me.options.bindings).forEach(function(ke) {
|
|
4623
4623
|
ke === "list autofill" && se.scroll.whitelist != null && !se.scroll.whitelist.list || me.options.bindings[ke] && me.addBinding(me.options.bindings[ke]);
|
|
4624
4624
|
}), me.addBinding({ key: X.keys.ENTER, shiftKey: null }, F), me.addBinding({ key: X.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
4625
|
-
}), /Firefox/i.test(navigator.userAgent) ? (me.addBinding({ key: X.keys.BACKSPACE }, { collapsed: !0 }, J), me.addBinding({ key: X.keys.DELETE }, { collapsed: !0 }, U)) : (me.addBinding({ key: X.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, J), me.addBinding({ key: X.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, U)), me.addBinding({ key: X.keys.BACKSPACE }, { collapsed: !1 },
|
|
4625
|
+
}), /Firefox/i.test(navigator.userAgent) ? (me.addBinding({ key: X.keys.BACKSPACE }, { collapsed: !0 }, J), me.addBinding({ key: X.keys.DELETE }, { collapsed: !0 }, U)) : (me.addBinding({ key: X.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, J), me.addBinding({ key: X.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, U)), me.addBinding({ key: X.keys.BACKSPACE }, { collapsed: !1 }, L), me.addBinding({ key: X.keys.DELETE }, { collapsed: !1 }, L), me.addBinding({ key: X.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, J), me.listen(), me;
|
|
4626
4626
|
}
|
|
4627
4627
|
return a(X, [{
|
|
4628
4628
|
key: "addBinding",
|
|
@@ -4859,7 +4859,7 @@ var Yy = { exports: {} };
|
|
|
4859
4859
|
this.quill.deleteText(j.index, se, _.default.sources.USER), Object.keys(ce).length > 0 && this.quill.formatLine(j.index + me - 1, se, ce, _.default.sources.USER);
|
|
4860
4860
|
}
|
|
4861
4861
|
}
|
|
4862
|
-
function
|
|
4862
|
+
function L(j) {
|
|
4863
4863
|
var X = this.quill.getLines(j), se = {};
|
|
4864
4864
|
if (X.length > 1) {
|
|
4865
4865
|
var ce = X[0].formats(), me = X[X.length - 1].formats();
|
|
@@ -6187,12 +6187,12 @@ var Yy = { exports: {} };
|
|
|
6187
6187
|
var X = this;
|
|
6188
6188
|
this.pickers = W.map(function(ce) {
|
|
6189
6189
|
if (ce.classList.contains("ql-align"))
|
|
6190
|
-
return ce.querySelector("option") == null &&
|
|
6190
|
+
return ce.querySelector("option") == null && L(ce, P), new m.default(ce, j.align);
|
|
6191
6191
|
if (ce.classList.contains("ql-background") || ce.classList.contains("ql-color")) {
|
|
6192
6192
|
var me = ce.classList.contains("ql-background") ? "background" : "color";
|
|
6193
|
-
return ce.querySelector("option") == null &&
|
|
6193
|
+
return ce.querySelector("option") == null && L(ce, D, me === "background" ? "#ffffff" : "#000000"), new g.default(ce, j[me]);
|
|
6194
6194
|
} else
|
|
6195
|
-
return ce.querySelector("option") == null && (ce.classList.contains("ql-font") ?
|
|
6195
|
+
return ce.querySelector("option") == null && (ce.classList.contains("ql-font") ? L(ce, M) : ce.classList.contains("ql-header") ? L(ce, G) : ce.classList.contains("ql-size") && L(ce, Z)), new A.default(ce);
|
|
6196
6196
|
});
|
|
6197
6197
|
var se = function() {
|
|
6198
6198
|
X.pickers.forEach(function(me) {
|
|
@@ -6292,7 +6292,7 @@ var Yy = { exports: {} };
|
|
|
6292
6292
|
var H = F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
6293
6293
|
return H ? (H[1] || "https") + "://www.youtube.com/embed/" + H[2] + "?showinfo=0" : (H = F.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (H[1] || "https") + "://player.vimeo.com/video/" + H[2] + "/" : F;
|
|
6294
6294
|
}
|
|
6295
|
-
function
|
|
6295
|
+
function L(F, H) {
|
|
6296
6296
|
var ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
6297
6297
|
H.forEach(function(W) {
|
|
6298
6298
|
var j = document.createElement("option");
|
|
@@ -6736,17 +6736,17 @@ var Yy = { exports: {} };
|
|
|
6736
6736
|
E[P] = -1, N[P] = -1;
|
|
6737
6737
|
E[C + 1] = 0, N[C + 1] = 0;
|
|
6738
6738
|
for (var D = A - S, M = D % 2 != 0, G = 0, Z = 0, de = 0, J = 0, U = 0; U < T; U++) {
|
|
6739
|
-
for (var
|
|
6740
|
-
var F = C +
|
|
6741
|
-
|
|
6742
|
-
for (var ne = H -
|
|
6739
|
+
for (var L = -U + G; L <= U - Z; L += 2) {
|
|
6740
|
+
var F = C + L, H;
|
|
6741
|
+
L == -U || L != U && E[F - 1] < E[F + 1] ? H = E[F + 1] : H = E[F - 1] + 1;
|
|
6742
|
+
for (var ne = H - L; H < A && ne < S && m.charAt(H) == _.charAt(ne); )
|
|
6743
6743
|
H++, ne++;
|
|
6744
6744
|
if (E[F] = H, H > A)
|
|
6745
6745
|
Z += 2;
|
|
6746
6746
|
else if (ne > S)
|
|
6747
6747
|
G += 2;
|
|
6748
6748
|
else if (M) {
|
|
6749
|
-
var W = C + D -
|
|
6749
|
+
var W = C + D - L;
|
|
6750
6750
|
if (W >= 0 && W < O && N[W] != -1) {
|
|
6751
6751
|
var j = A - N[W];
|
|
6752
6752
|
if (H >= j)
|
|
@@ -6798,15 +6798,15 @@ var Yy = { exports: {} };
|
|
|
6798
6798
|
if (A.length < 4 || S.length * 2 < A.length)
|
|
6799
6799
|
return null;
|
|
6800
6800
|
function T(Z, de, J) {
|
|
6801
|
-
for (var U = Z.substring(J, J + Math.floor(Z.length / 4)),
|
|
6801
|
+
for (var U = Z.substring(J, J + Math.floor(Z.length / 4)), L = -1, F = "", H, ne, W, j; (L = de.indexOf(U, L + 1)) != -1; ) {
|
|
6802
6802
|
var X = f(
|
|
6803
6803
|
Z.substring(J),
|
|
6804
|
-
de.substring(
|
|
6804
|
+
de.substring(L)
|
|
6805
6805
|
), se = d(
|
|
6806
6806
|
Z.substring(0, J),
|
|
6807
|
-
de.substring(0,
|
|
6807
|
+
de.substring(0, L)
|
|
6808
6808
|
);
|
|
6809
|
-
F.length < se + X && (F = de.substring(
|
|
6809
|
+
F.length < se + X && (F = de.substring(L - se, L) + de.substring(L, L + X), H = Z.substring(0, J - se), ne = Z.substring(J + X), W = de.substring(0, L - se), j = de.substring(L + X));
|
|
6810
6810
|
}
|
|
6811
6811
|
return F.length * 2 >= Z.length ? [
|
|
6812
6812
|
H,
|
|
@@ -7127,7 +7127,7 @@ var Yy = { exports: {} };
|
|
|
7127
7127
|
}
|
|
7128
7128
|
var Z = (0, y.default)("quill:clipboard"), de = "__ql-matcher", J = [[Node.TEXT_NODE, Pe], [Node.TEXT_NODE, R], ["br", ke], [Node.ELEMENT_NODE, R], [Node.ELEMENT_NODE, me], [Node.ELEMENT_NODE, ee], [Node.ELEMENT_NODE, ce], [Node.ELEMENT_NODE, ve], ["li", V], ["b", se.bind(se, "bold")], ["i", se.bind(se, "italic")], ["style", ae]], U = [m.AlignAttribute, C.DirectionAttribute].reduce(function(q, fe) {
|
|
7129
7129
|
return q[fe.keyName] = fe, q;
|
|
7130
|
-
}, {}),
|
|
7130
|
+
}, {}), L = [m.AlignStyle, _.BackgroundStyle, T.ColorStyle, C.DirectionStyle, O.FontStyle, E.SizeStyle].reduce(function(q, fe) {
|
|
7131
7131
|
return q[fe.keyName] = fe, q;
|
|
7132
7132
|
}, {}), F = function(q) {
|
|
7133
7133
|
G(fe, q);
|
|
@@ -7254,7 +7254,7 @@ var Yy = { exports: {} };
|
|
|
7254
7254
|
var ye = h.default.Attributor.Attribute.keys(q), Se = h.default.Attributor.Class.keys(q), ge = h.default.Attributor.Style.keys(q), Fe = {};
|
|
7255
7255
|
return ye.concat(Se).concat(ge).forEach(function(He) {
|
|
7256
7256
|
var Ce = h.default.query(He, h.default.Scope.ATTRIBUTE);
|
|
7257
|
-
Ce != null && (Fe[Ce.attrName] = Ce.value(q), Fe[Ce.attrName]) || (Ce = U[He], Ce != null && (Ce.attrName === He || Ce.keyName === He) && (Fe[Ce.attrName] = Ce.value(q) || void 0), Ce =
|
|
7257
|
+
Ce != null && (Fe[Ce.attrName] = Ce.value(q), Fe[Ce.attrName]) || (Ce = U[He], Ce != null && (Ce.attrName === He || Ce.keyName === He) && (Fe[Ce.attrName] = Ce.value(q) || void 0), Ce = L[He], Ce != null && (Ce.attrName === He || Ce.keyName === He) && (Ce = L[He], Fe[Ce.attrName] = Ce.value(q) || void 0));
|
|
7258
7258
|
}), Object.keys(Fe).length > 0 && (fe = H(fe, Fe)), fe;
|
|
7259
7259
|
}
|
|
7260
7260
|
function me(q, fe) {
|
|
@@ -7510,7 +7510,7 @@ var Yy = { exports: {} };
|
|
|
7510
7510
|
} else
|
|
7511
7511
|
D.classList.contains("ql-active") ? J = !1 : J = D.value || !D.hasAttribute("value"), de.preventDefault();
|
|
7512
7512
|
M.quill.focus();
|
|
7513
|
-
var
|
|
7513
|
+
var L = M.quill.selection.getRange(), F = o(L, 1), H = F[0];
|
|
7514
7514
|
if (M.handlers[G] != null)
|
|
7515
7515
|
M.handlers[G].call(M, J);
|
|
7516
7516
|
else if (c.default.query(G).prototype instanceof c.default.Embed) {
|
|
@@ -7536,8 +7536,8 @@ var Yy = { exports: {} };
|
|
|
7536
7536
|
else if (M[de] == null)
|
|
7537
7537
|
U = J.querySelector("option[selected]");
|
|
7538
7538
|
else if (!Array.isArray(M[de])) {
|
|
7539
|
-
var
|
|
7540
|
-
typeof
|
|
7539
|
+
var L = M[de];
|
|
7540
|
+
typeof L == "string" && (L = L.replace(/\"/g, '\\"')), U = J.querySelector('option[value="' + L + '"]');
|
|
7541
7541
|
}
|
|
7542
7542
|
U == null ? (J.value = "", J.selectedIndex = -1) : U.selected = !0;
|
|
7543
7543
|
} else if (D == null)
|
|
@@ -7938,8 +7938,8 @@ var Yy = { exports: {} };
|
|
|
7938
7938
|
var Z = P.quill.scroll.descendant(p.default, D.index), de = o(Z, 2), J = de[0], U = de[1];
|
|
7939
7939
|
if (J != null) {
|
|
7940
7940
|
P.linkRange = new v.Range(D.index - U, J.length());
|
|
7941
|
-
var
|
|
7942
|
-
P.preview.textContent =
|
|
7941
|
+
var L = p.default.formats(J.domNode);
|
|
7942
|
+
P.preview.textContent = L, P.preview.setAttribute("href", L), P.show(), P.position(P.quill.getBounds(P.linkRange));
|
|
7943
7943
|
return;
|
|
7944
7944
|
}
|
|
7945
7945
|
} else
|
|
@@ -7963,7 +7963,7 @@ var Yy = { exports: {} };
|
|
|
7963
7963
|
Object.defineProperty(n, "__esModule", {
|
|
7964
7964
|
value: !0
|
|
7965
7965
|
});
|
|
7966
|
-
var o = i(29), s = ge(o), a = i(36), l = i(38), u = i(64), c = i(65), f = ge(c), d = i(66), h = ge(d), b = i(67), p = ge(b), v = i(37), y = i(26), g = i(39), w = i(40), m = i(56), _ = ge(m), A = i(68), S = ge(A), T = i(27), C = ge(T), O = i(69), E = ge(O), N = i(70), P = ge(N), D = i(71), M = ge(D), G = i(72), Z = ge(G), de = i(73), J = ge(de), U = i(13),
|
|
7966
|
+
var o = i(29), s = ge(o), a = i(36), l = i(38), u = i(64), c = i(65), f = ge(c), d = i(66), h = ge(d), b = i(67), p = ge(b), v = i(37), y = i(26), g = i(39), w = i(40), m = i(56), _ = ge(m), A = i(68), S = ge(A), T = i(27), C = ge(T), O = i(69), E = ge(O), N = i(70), P = ge(N), D = i(71), M = ge(D), G = i(72), Z = ge(G), de = i(73), J = ge(de), U = i(13), L = ge(U), F = i(74), H = ge(F), ne = i(75), W = ge(ne), j = i(57), X = ge(j), se = i(41), ce = ge(se), me = i(28), ke = ge(me), ae = i(59), V = ge(ae), R = i(60), ee = ge(R), ve = i(61), Pe = ge(ve), q = i(108), fe = ge(q), ye = i(62), Se = ge(ye);
|
|
7967
7967
|
function ge(Fe) {
|
|
7968
7968
|
return Fe && Fe.__esModule ? Fe : { default: Fe };
|
|
7969
7969
|
}
|
|
@@ -7990,7 +7990,7 @@ var Yy = { exports: {} };
|
|
|
7990
7990
|
"formats/font": g.FontClass,
|
|
7991
7991
|
"formats/size": w.SizeClass,
|
|
7992
7992
|
"formats/blockquote": f.default,
|
|
7993
|
-
"formats/code-block":
|
|
7993
|
+
"formats/code-block": L.default,
|
|
7994
7994
|
"formats/header": h.default,
|
|
7995
7995
|
"formats/list": p.default,
|
|
7996
7996
|
"formats/bold": _.default,
|
|
@@ -9408,7 +9408,7 @@ iu.exports;
|
|
|
9408
9408
|
(function(t, e) {
|
|
9409
9409
|
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", s = "[object Array]", a = "[object Boolean]", l = "[object Date]", u = "[object Error]", c = "[object Function]", f = "[object GeneratorFunction]", d = "[object Map]", h = "[object Number]", b = "[object Object]", p = "[object Promise]", v = "[object RegExp]", y = "[object Set]", g = "[object String]", w = "[object Symbol]", m = "[object WeakMap]", _ = "[object ArrayBuffer]", A = "[object DataView]", S = "[object Float32Array]", T = "[object Float64Array]", C = "[object Int8Array]", O = "[object Int16Array]", E = "[object Int32Array]", N = "[object Uint8Array]", P = "[object Uint8ClampedArray]", D = "[object Uint16Array]", M = "[object Uint32Array]", G = /[\\^$.*+?()[\]{}|]/g, Z = /\w*$/, de = /^\[object .+?Constructor\]$/, J = /^(?:0|[1-9]\d*)$/, U = {};
|
|
9410
9410
|
U[o] = U[s] = U[_] = U[A] = U[a] = U[l] = U[S] = U[T] = U[C] = U[O] = U[E] = U[d] = U[h] = U[b] = U[v] = U[y] = U[g] = U[w] = U[N] = U[P] = U[D] = U[M] = !0, U[u] = U[c] = U[m] = !1;
|
|
9411
|
-
var
|
|
9411
|
+
var L = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, F = typeof self == "object" && self && self.Object === Object && self, H = L || F || Function("return this")(), ne = e && !e.nodeType && e, W = ne && !0 && t && !t.nodeType && t, j = W && W.exports === ne;
|
|
9412
9412
|
function X(k, $) {
|
|
9413
9413
|
return k.set($[0], $[1]), k;
|
|
9414
9414
|
}
|
|
@@ -9852,8 +9852,8 @@ iu.exports;
|
|
|
9852
9852
|
var eb = iu.exports, ou = { exports: {} };
|
|
9853
9853
|
ou.exports;
|
|
9854
9854
|
(function(t, e) {
|
|
9855
|
-
var r = 200, n = "__lodash_hash_undefined__", i = 1, o = 2, s = 9007199254740991, a = "[object Arguments]", l = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", d = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", p = "[object Map]", v = "[object Number]", y = "[object Null]", g = "[object Object]", w = "[object Promise]", m = "[object Proxy]", _ = "[object RegExp]", A = "[object Set]", S = "[object String]", T = "[object Symbol]", C = "[object Undefined]", O = "[object WeakMap]", E = "[object ArrayBuffer]", N = "[object DataView]", P = "[object Float32Array]", D = "[object Float64Array]", M = "[object Int8Array]", G = "[object Int16Array]", Z = "[object Int32Array]", de = "[object Uint8Array]", J = "[object Uint8ClampedArray]", U = "[object Uint16Array]",
|
|
9856
|
-
W[P] = W[D] = W[M] = W[G] = W[Z] = W[de] = W[J] = W[U] = W[
|
|
9855
|
+
var r = 200, n = "__lodash_hash_undefined__", i = 1, o = 2, s = 9007199254740991, a = "[object Arguments]", l = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", d = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", p = "[object Map]", v = "[object Number]", y = "[object Null]", g = "[object Object]", w = "[object Promise]", m = "[object Proxy]", _ = "[object RegExp]", A = "[object Set]", S = "[object String]", T = "[object Symbol]", C = "[object Undefined]", O = "[object WeakMap]", E = "[object ArrayBuffer]", N = "[object DataView]", P = "[object Float32Array]", D = "[object Float64Array]", M = "[object Int8Array]", G = "[object Int16Array]", Z = "[object Int32Array]", de = "[object Uint8Array]", J = "[object Uint8ClampedArray]", U = "[object Uint16Array]", L = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, H = /^\[object .+?Constructor\]$/, ne = /^(?:0|[1-9]\d*)$/, W = {};
|
|
9856
|
+
W[P] = W[D] = W[M] = W[G] = W[Z] = W[de] = W[J] = W[U] = W[L] = !0, W[a] = W[l] = W[E] = W[c] = W[N] = W[f] = W[d] = W[h] = W[p] = W[v] = W[g] = W[_] = W[A] = W[S] = W[O] = !1;
|
|
9857
9857
|
var j = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, X = typeof self == "object" && self && self.Object === Object && self, se = j || X || Function("return this")(), ce = e && !e.nodeType && e, me = ce && !0 && t && !t.nodeType && t, ke = me && me.exports === ce, ae = ke && j.process, V = function() {
|
|
9858
9858
|
try {
|
|
9859
9859
|
return ae && ae.binding && ae.binding("util");
|
|
@@ -11048,7 +11048,7 @@ const ob = /* @__PURE__ */ Ae({
|
|
|
11048
11048
|
o.value?.setText(f);
|
|
11049
11049
|
return;
|
|
11050
11050
|
}
|
|
11051
|
-
i.value =
|
|
11051
|
+
i.value = I(f);
|
|
11052
11052
|
},
|
|
11053
11053
|
{ immediate: !0 }
|
|
11054
11054
|
);
|
|
@@ -11070,7 +11070,7 @@ const ob = /* @__PURE__ */ Ae({
|
|
|
11070
11070
|
}
|
|
11071
11071
|
]])
|
|
11072
11072
|
}, [
|
|
11073
|
-
f.label ? (x(), we(
|
|
11073
|
+
f.label ? (x(), we(I(vn), {
|
|
11074
11074
|
key: 0,
|
|
11075
11075
|
class: "tw-mb-2",
|
|
11076
11076
|
required: f.required,
|
|
@@ -11090,7 +11090,7 @@ const ob = /* @__PURE__ */ Ae({
|
|
|
11090
11090
|
key: "0"
|
|
11091
11091
|
} : void 0
|
|
11092
11092
|
]), 1032, ["required", "multilanguage", "current-language"])) : ie("", !0),
|
|
11093
|
-
(x(), we(
|
|
11093
|
+
(x(), we(I(AO), {
|
|
11094
11094
|
key: `${f.disabled}`,
|
|
11095
11095
|
ref_key: "quillRef",
|
|
11096
11096
|
ref: o,
|
|
@@ -11108,7 +11108,7 @@ const ob = /* @__PURE__ */ Ae({
|
|
|
11108
11108
|
placeholder: f.placeholder
|
|
11109
11109
|
}, null, 8, ["content", "class", "read-only", "placeholder"])),
|
|
11110
11110
|
f.errorMessage ? Le(f.$slots, "error", { key: 1 }, () => [
|
|
11111
|
-
oe(
|
|
11111
|
+
oe(I(Jr), { class: "vc-editor__error !tw-text-[color:var(--editor-border-color-error)] tw-mt-1" }, {
|
|
11112
11112
|
default: le(() => [
|
|
11113
11113
|
Re(ue(f.errorMessage), 1)
|
|
11114
11114
|
]),
|
|
@@ -11556,7 +11556,7 @@ function tT(t, e = {}) {
|
|
|
11556
11556
|
ee += R;
|
|
11557
11557
|
return V.currentChar() === mi && f(Je.UNTERMINATED_CLOSING_BRACE, o(), 0), ee;
|
|
11558
11558
|
}
|
|
11559
|
-
function
|
|
11559
|
+
function L(V) {
|
|
11560
11560
|
v(V);
|
|
11561
11561
|
let R = "";
|
|
11562
11562
|
return V.currentChar() === "-" ? (V.next(), R += `-${Z(V)}`) : R += Z(V), V.currentChar() === mi && f(Je.UNTERMINATED_CLOSING_BRACE, o(), 0), R;
|
|
@@ -11655,7 +11655,7 @@ function tT(t, e = {}) {
|
|
|
11655
11655
|
if (Pe = w(V, R))
|
|
11656
11656
|
return ee = d(R, 5, U(V)), v(V), ee;
|
|
11657
11657
|
if (q = m(V, R))
|
|
11658
|
-
return ee = d(R, 6,
|
|
11658
|
+
return ee = d(R, 6, L(V)), v(V), ee;
|
|
11659
11659
|
if (fe = _(V, R))
|
|
11660
11660
|
return ee = d(R, 7, F(V)), v(V), ee;
|
|
11661
11661
|
if (!Pe && !q && !fe)
|
|
@@ -13490,7 +13490,7 @@ function Dh(t = {}, e) {
|
|
|
13490
13490
|
function U(he, _e) {
|
|
13491
13491
|
return he !== "translate" || !_e.resolvedMessage;
|
|
13492
13492
|
}
|
|
13493
|
-
const
|
|
13493
|
+
const L = (he, _e, Ue, gt, Ke, Ct) => {
|
|
13494
13494
|
O();
|
|
13495
13495
|
let wr;
|
|
13496
13496
|
try {
|
|
@@ -13521,7 +13521,7 @@ function Dh(t = {}, e) {
|
|
|
13521
13521
|
}
|
|
13522
13522
|
};
|
|
13523
13523
|
function F(...he) {
|
|
13524
|
-
return
|
|
13524
|
+
return L((_e) => Reflect.apply(uv, null, [_e, ...he]), () => ld(...he), "translate", (_e) => Reflect.apply(_e.t, _e, [...he]), (_e) => _e, (_e) => Ie(_e));
|
|
13525
13525
|
}
|
|
13526
13526
|
function H(...he) {
|
|
13527
13527
|
const [_e, Ue, gt] = he;
|
|
@@ -13530,10 +13530,10 @@ function Dh(t = {}, e) {
|
|
|
13530
13530
|
return F(_e, Ue, lr({ resolvedMessage: !0 }, gt || {}));
|
|
13531
13531
|
}
|
|
13532
13532
|
function ne(...he) {
|
|
13533
|
-
return
|
|
13533
|
+
return L((_e) => Reflect.apply(fv, null, [_e, ...he]), () => ud(...he), "datetime format", (_e) => Reflect.apply(_e.d, _e, [...he]), () => au, (_e) => Ie(_e));
|
|
13534
13534
|
}
|
|
13535
13535
|
function W(...he) {
|
|
13536
|
-
return
|
|
13536
|
+
return L((_e) => Reflect.apply(hv, null, [_e, ...he]), () => cd(...he), "number format", (_e) => Reflect.apply(_e.n, _e, [...he]), () => au, (_e) => Ie(_e));
|
|
13537
13537
|
}
|
|
13538
13538
|
function j(he) {
|
|
13539
13539
|
return he.map((_e) => Ie(_e) || Zt(_e) || it(_e) ? mv(String(_e)) : _e);
|
|
@@ -13544,7 +13544,7 @@ function Dh(t = {}, e) {
|
|
|
13544
13544
|
type: "vnode"
|
|
13545
13545
|
};
|
|
13546
13546
|
function ce(...he) {
|
|
13547
|
-
return
|
|
13547
|
+
return L(
|
|
13548
13548
|
(_e) => {
|
|
13549
13549
|
let Ue;
|
|
13550
13550
|
const gt = _e;
|
|
@@ -13564,7 +13564,7 @@ function Dh(t = {}, e) {
|
|
|
13564
13564
|
);
|
|
13565
13565
|
}
|
|
13566
13566
|
function me(...he) {
|
|
13567
|
-
return
|
|
13567
|
+
return L(
|
|
13568
13568
|
(_e) => Reflect.apply(hv, null, [_e, ...he]),
|
|
13569
13569
|
() => cd(...he),
|
|
13570
13570
|
"number format",
|
|
@@ -13575,7 +13575,7 @@ function Dh(t = {}, e) {
|
|
|
13575
13575
|
);
|
|
13576
13576
|
}
|
|
13577
13577
|
function ke(...he) {
|
|
13578
|
-
return
|
|
13578
|
+
return L(
|
|
13579
13579
|
(_e) => Reflect.apply(fv, null, [_e, ...he]),
|
|
13580
13580
|
() => ud(...he),
|
|
13581
13581
|
"datetime format",
|
|
@@ -13589,7 +13589,7 @@ function Dh(t = {}, e) {
|
|
|
13589
13589
|
S = he, T.pluralRules = S;
|
|
13590
13590
|
}
|
|
13591
13591
|
function V(he, _e) {
|
|
13592
|
-
return
|
|
13592
|
+
return L(() => {
|
|
13593
13593
|
if (!he)
|
|
13594
13594
|
return !1;
|
|
13595
13595
|
const Ue = Ie(_e) ? _e : l.value, gt = ve(Ue), Ke = T.messageResolver(gt, he);
|
|
@@ -14717,7 +14717,7 @@ function QA(t, e, r, n = {}) {
|
|
|
14717
14717
|
function U(...R) {
|
|
14718
14718
|
return o.value ? G(() => Reflect.apply(o.value.n, null, [...R])) : G(() => "");
|
|
14719
14719
|
}
|
|
14720
|
-
function
|
|
14720
|
+
function L(R) {
|
|
14721
14721
|
return o.value ? o.value.tm(R) : {};
|
|
14722
14722
|
}
|
|
14723
14723
|
function F(R, ee) {
|
|
@@ -14821,7 +14821,7 @@ function QA(t, e, r, n = {}) {
|
|
|
14821
14821
|
rt: de,
|
|
14822
14822
|
d: J,
|
|
14823
14823
|
n: U,
|
|
14824
|
-
tm:
|
|
14824
|
+
tm: L,
|
|
14825
14825
|
te: F,
|
|
14826
14826
|
getLocaleMessage: H,
|
|
14827
14827
|
setLocaleMessage: ne,
|
|
@@ -14907,7 +14907,7 @@ const rN = { class: "tw-flex tw-flex-col tw-flex-1" }, nN = { class: "tw-text-[#
|
|
|
14907
14907
|
},
|
|
14908
14908
|
emits: ["upload"],
|
|
14909
14909
|
setup(t, { emit: e }) {
|
|
14910
|
-
const r = t, n = e, { t: i } = mt({ useScope: "global" }), o = pr(), s =
|
|
14910
|
+
const r = t, n = e, { t: i } = mt({ useScope: "global" }), o = pr(), s = I(r.rules) || "", a = K(!1), { errorMessage: l, handleChange: u, validate: c } = kE(
|
|
14911
14911
|
`${r.name === "Gallery" ? o?.uid : r.name}`,
|
|
14912
14912
|
s
|
|
14913
14913
|
), f = K(), d = async (y) => {
|
|
@@ -14952,18 +14952,18 @@ const rN = { class: "tw-flex tw-flex-col tw-flex-1" }, nN = { class: "tw-text-[#
|
|
|
14952
14952
|
}, ["stop", "prevent"])),
|
|
14953
14953
|
onDragleave: nt(v, ["stop", "prevent"])
|
|
14954
14954
|
}, [
|
|
14955
|
-
oe(
|
|
14955
|
+
oe(I(Ve), {
|
|
14956
14956
|
class: "tw-text-[#c8dbea]",
|
|
14957
14957
|
icon: y.icon,
|
|
14958
14958
|
size: "xxl"
|
|
14959
14959
|
}, null, 8, ["icon"]),
|
|
14960
14960
|
Y("div", nN, [
|
|
14961
|
-
Y("span", null, ue(
|
|
14961
|
+
Y("span", null, ue(I(i)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.DRAG_HERE")), 1),
|
|
14962
14962
|
Re(" "),
|
|
14963
14963
|
iN,
|
|
14964
|
-
oe(
|
|
14964
|
+
oe(I(Hu), { onClick: h }, {
|
|
14965
14965
|
default: le(() => [
|
|
14966
|
-
Re(ue(
|
|
14966
|
+
Re(ue(I(i)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.BROWSE")), 1)
|
|
14967
14967
|
]),
|
|
14968
14968
|
_: 1
|
|
14969
14969
|
})
|
|
@@ -14981,10 +14981,10 @@ const rN = { class: "tw-flex tw-flex-col tw-flex-1" }, nN = { class: "tw-text-[#
|
|
|
14981
14981
|
], 34)), [
|
|
14982
14982
|
[w, y.loading]
|
|
14983
14983
|
]),
|
|
14984
|
-
|
|
14985
|
-
oe(
|
|
14984
|
+
I(l) ? Le(y.$slots, "error", { key: 0 }, () => [
|
|
14985
|
+
oe(I(Jr), { class: "vc-input__error" }, {
|
|
14986
14986
|
default: le(() => [
|
|
14987
|
-
Re(ue(
|
|
14987
|
+
Re(ue(I(l)), 1)
|
|
14988
14988
|
]),
|
|
14989
14989
|
_: 1
|
|
14990
14990
|
})
|
|
@@ -17618,7 +17618,7 @@ const ax = { class: "tw-flex tw-flex-nowrap tw-items-start" }, lx = { class: "tw
|
|
|
17618
17618
|
setup(t, { emit: e }) {
|
|
17619
17619
|
const r = t, n = e;
|
|
17620
17620
|
let i, o;
|
|
17621
|
-
const s = K(), a = K(), l = K(
|
|
17621
|
+
const s = K(), a = K(), l = K(I(r.type)), u = re(() => r.type === "date" && "9999-12-31" || void 0), c = re(() => I(r.modelValue)), f = K();
|
|
17622
17622
|
Ge(
|
|
17623
17623
|
c,
|
|
17624
17624
|
(p) => {
|
|
@@ -17654,7 +17654,7 @@ const ax = { class: "tw-flex tw-flex-nowrap tw-items-start" }, lx = { class: "tw
|
|
|
17654
17654
|
}
|
|
17655
17655
|
]])
|
|
17656
17656
|
}, [
|
|
17657
|
-
p.label ? (x(), we(
|
|
17657
|
+
p.label ? (x(), we(I(vn), {
|
|
17658
17658
|
key: 0,
|
|
17659
17659
|
class: "tw-mb-2",
|
|
17660
17660
|
required: p.required,
|
|
@@ -17717,7 +17717,7 @@ const ax = { class: "tw-flex tw-flex-nowrap tw-items-start" }, lx = { class: "tw
|
|
|
17717
17717
|
class: "vc-input__clear",
|
|
17718
17718
|
onClick: b
|
|
17719
17719
|
}, [
|
|
17720
|
-
oe(
|
|
17720
|
+
oe(I(Ve), {
|
|
17721
17721
|
size: "s",
|
|
17722
17722
|
icon: "fas fa-times"
|
|
17723
17723
|
})
|
|
@@ -17727,7 +17727,7 @@ const ax = { class: "tw-flex tw-flex-nowrap tw-items-start" }, lx = { class: "tw
|
|
|
17727
17727
|
class: "vc-input__showhide",
|
|
17728
17728
|
onClick: v[1] || (v[1] = (y) => l.value = "text")
|
|
17729
17729
|
}, [
|
|
17730
|
-
oe(
|
|
17730
|
+
oe(I(Ve), {
|
|
17731
17731
|
size: "s",
|
|
17732
17732
|
icon: "fas fa-eye-slash"
|
|
17733
17733
|
})
|
|
@@ -17737,7 +17737,7 @@ const ax = { class: "tw-flex tw-flex-nowrap tw-items-start" }, lx = { class: "tw
|
|
|
17737
17737
|
class: "vc-input__showhide",
|
|
17738
17738
|
onClick: v[2] || (v[2] = (y) => l.value = "password")
|
|
17739
17739
|
}, [
|
|
17740
|
-
oe(
|
|
17740
|
+
oe(I(Ve), {
|
|
17741
17741
|
size: "s",
|
|
17742
17742
|
icon: "fas fa-eye"
|
|
17743
17743
|
})
|
|
@@ -17747,7 +17747,7 @@ const ax = { class: "tw-flex tw-flex-nowrap tw-items-start" }, lx = { class: "tw
|
|
|
17747
17747
|
Le(p.$slots, "append-inner")
|
|
17748
17748
|
])) : ie("", !0),
|
|
17749
17749
|
p.loading ? (x(), B("div", bx, [
|
|
17750
|
-
oe(
|
|
17750
|
+
oe(I(Ve), {
|
|
17751
17751
|
icon: "fas fa-spinner tw-animate-spin",
|
|
17752
17752
|
class: "tw-text-[var(--input-clear-color)]",
|
|
17753
17753
|
size: "m"
|
|
@@ -17762,7 +17762,7 @@ const ax = { class: "tw-flex tw-flex-nowrap tw-items-start" }, lx = { class: "tw
|
|
|
17762
17762
|
default: le(() => [
|
|
17763
17763
|
p.error ? (x(), B("div", wx, [
|
|
17764
17764
|
Le(p.$slots, "error", {}, () => [
|
|
17765
|
-
p.errorMessage ? (x(), we(
|
|
17765
|
+
p.errorMessage ? (x(), we(I(Jr), {
|
|
17766
17766
|
key: 0,
|
|
17767
17767
|
class: "vc-input__error"
|
|
17768
17768
|
}, {
|
|
@@ -17774,7 +17774,7 @@ const ax = { class: "tw-flex tw-flex-nowrap tw-items-start" }, lx = { class: "tw
|
|
|
17774
17774
|
])
|
|
17775
17775
|
])) : (x(), B("div", _x, [
|
|
17776
17776
|
Le(p.$slots, "hint", {}, () => [
|
|
17777
|
-
p.hint ? (x(), we(
|
|
17777
|
+
p.hint ? (x(), we(I(Jr), {
|
|
17778
17778
|
key: 0,
|
|
17779
17779
|
class: "vc-input__desc"
|
|
17780
17780
|
}, {
|
|
@@ -18148,7 +18148,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18148
18148
|
}
|
|
18149
18149
|
), Ge(s, (a) => {
|
|
18150
18150
|
n("update:model-value", a);
|
|
18151
|
-
}), (a, l) => (x(), we(
|
|
18151
|
+
}), (a, l) => (x(), we(I(Wa), {
|
|
18152
18152
|
options: a.options,
|
|
18153
18153
|
"option-label": a.optionLabel,
|
|
18154
18154
|
"option-value": a.optionValue,
|
|
@@ -18162,7 +18162,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18162
18162
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => a.$emit("update:option", u))
|
|
18163
18163
|
}, {
|
|
18164
18164
|
control: le(({ toggleHandler: u }) => [
|
|
18165
|
-
oe(
|
|
18165
|
+
oe(I($r), {
|
|
18166
18166
|
placeholder: a.placeholder,
|
|
18167
18167
|
hint: a.hint,
|
|
18168
18168
|
clearable: a.clearable,
|
|
@@ -18183,7 +18183,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18183
18183
|
Y("button", {
|
|
18184
18184
|
class: "tw-text-[#43b0e6] tw-not-italic tw-font-medium tw-text-[13px] tw-leading-[20px] tw-cursor-pointer",
|
|
18185
18185
|
onClick: nt(u, ["stop", "prevent"])
|
|
18186
|
-
}, ue(
|
|
18186
|
+
}, ue(I(a.option)), 9, xx)
|
|
18187
18187
|
])
|
|
18188
18188
|
]),
|
|
18189
18189
|
control: le(({ placeholder: c }) => [
|
|
@@ -18262,7 +18262,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18262
18262
|
onMouseleave: a
|
|
18263
18263
|
}, [
|
|
18264
18264
|
Y("div", Dx, [
|
|
18265
|
-
oe(
|
|
18265
|
+
oe(I(Ve), {
|
|
18266
18266
|
icon: r[l.type ?? "default"]?.icon,
|
|
18267
18267
|
style: Et({ color: r[l.type ?? "default"]?.color }),
|
|
18268
18268
|
size: "l",
|
|
@@ -18270,7 +18270,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18270
18270
|
}, null, 8, ["icon", "style"]),
|
|
18271
18271
|
Y("div", Rx, ue(l.content), 1)
|
|
18272
18272
|
]),
|
|
18273
|
-
oe(
|
|
18273
|
+
oe(I(Ve), {
|
|
18274
18274
|
icon: "fas fa-times",
|
|
18275
18275
|
class: "tw-cursor-pointer tw-text-[color:var(--notification-dismiss-color)] tw-ml-2",
|
|
18276
18276
|
size: "s",
|
|
@@ -18294,7 +18294,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18294
18294
|
}]),
|
|
18295
18295
|
onClick: r[0] || (r[0] = (n) => e.currentPage !== 1 && e.$emit("itemClick", 1))
|
|
18296
18296
|
}, [
|
|
18297
|
-
oe(
|
|
18297
|
+
oe(I(Ve), {
|
|
18298
18298
|
size: "xs",
|
|
18299
18299
|
icon: "fas fa-angle-double-left"
|
|
18300
18300
|
})
|
|
@@ -18305,7 +18305,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18305
18305
|
}]),
|
|
18306
18306
|
onClick: r[1] || (r[1] = (n) => e.currentPage !== 1 && e.$emit("itemClick", e.currentPage - 1))
|
|
18307
18307
|
}, [
|
|
18308
|
-
oe(
|
|
18308
|
+
oe(I(Ve), {
|
|
18309
18309
|
size: "xs",
|
|
18310
18310
|
icon: "fas fa-arrow-left"
|
|
18311
18311
|
})
|
|
@@ -18341,7 +18341,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18341
18341
|
}]),
|
|
18342
18342
|
onClick: r[6] || (r[6] = (n) => e.currentPage !== e.pages && e.$emit("itemClick", e.currentPage + 1))
|
|
18343
18343
|
}, [
|
|
18344
|
-
oe(
|
|
18344
|
+
oe(I(Ve), {
|
|
18345
18345
|
size: "xs",
|
|
18346
18346
|
icon: "fas fa-arrow-right"
|
|
18347
18347
|
})
|
|
@@ -18352,7 +18352,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18352
18352
|
}]),
|
|
18353
18353
|
onClick: r[7] || (r[7] = (n) => e.currentPage !== e.pages && e.$emit("itemClick", e.pages))
|
|
18354
18354
|
}, [
|
|
18355
|
-
oe(
|
|
18355
|
+
oe(I(Ve), {
|
|
18356
18356
|
size: "xs",
|
|
18357
18357
|
icon: "fas fa-angle-double-right"
|
|
18358
18358
|
})
|
|
@@ -18374,7 +18374,7 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18374
18374
|
},
|
|
18375
18375
|
setup(t) {
|
|
18376
18376
|
return (e, r) => (x(), B("div", Fx, [
|
|
18377
|
-
e.label ? (x(), we(
|
|
18377
|
+
e.label ? (x(), we(I(vn), {
|
|
18378
18378
|
key: 0,
|
|
18379
18379
|
class: "tw-mb-2"
|
|
18380
18380
|
}, xr({
|
|
@@ -18393,18 +18393,18 @@ const xx = ["onClick"], Ix = ["disabled", "placeholder"], Lw = /* @__PURE__ */ A
|
|
|
18393
18393
|
]), 1024)) : ie("", !0),
|
|
18394
18394
|
e.modelValue ? (x(), B(je, { key: 1 }, [
|
|
18395
18395
|
e.variant == "stars" ? (x(), B(je, { key: 0 }, [
|
|
18396
|
-
(x(!0), B(je, null, ot(e.modelValue, (n) => (x(), we(
|
|
18396
|
+
(x(!0), B(je, null, ot(e.modelValue, (n) => (x(), we(I(Ve), {
|
|
18397
18397
|
key: n,
|
|
18398
18398
|
icon: "fas fa-star",
|
|
18399
18399
|
class: "vc-rating__icon"
|
|
18400
18400
|
}))), 128)),
|
|
18401
|
-
(x(!0), B(je, null, ot(e.max - e.modelValue, (n) => (x(), we(
|
|
18401
|
+
(x(!0), B(je, null, ot(e.max - e.modelValue, (n) => (x(), we(I(Ve), {
|
|
18402
18402
|
key: n,
|
|
18403
18403
|
icon: "far fa-star",
|
|
18404
18404
|
class: "vc-rating__icon"
|
|
18405
18405
|
}))), 128))
|
|
18406
18406
|
], 64)) : (x(), B(je, { key: 1 }, [
|
|
18407
|
-
e.variant == "star-and-text" ? (x(), we(
|
|
18407
|
+
e.variant == "star-and-text" ? (x(), we(I(Ve), {
|
|
18408
18408
|
key: 0,
|
|
18409
18409
|
icon: "fas fa-star",
|
|
18410
18410
|
class: "vc-rating__icon"
|
|
@@ -18443,10 +18443,10 @@ function sc(t) {
|
|
|
18443
18443
|
return (...o) => (e += 1, r || (n = Ny(!0), r = n.run(() => t(...o))), vs(i), r);
|
|
18444
18444
|
}
|
|
18445
18445
|
function At(t) {
|
|
18446
|
-
return typeof t == "function" ? t() :
|
|
18446
|
+
return typeof t == "function" ? t() : I(t);
|
|
18447
18447
|
}
|
|
18448
18448
|
function Mw(t, e) {
|
|
18449
|
-
const r = e?.computedGetter === !1 ?
|
|
18449
|
+
const r = e?.computedGetter === !1 ? I : At;
|
|
18450
18450
|
return function(...n) {
|
|
18451
18451
|
return re(() => t.apply(this, n.map((i) => r(i))));
|
|
18452
18452
|
};
|
|
@@ -18456,7 +18456,7 @@ function ac(t) {
|
|
|
18456
18456
|
return qt(t);
|
|
18457
18457
|
const e = new Proxy({}, {
|
|
18458
18458
|
get(r, n, i) {
|
|
18459
|
-
return
|
|
18459
|
+
return I(Reflect.get(t.value, n, i));
|
|
18460
18460
|
},
|
|
18461
18461
|
set(r, n, i) {
|
|
18462
18462
|
return Zi(t.value[n]) && !Zi(i) ? t.value[n].value = i : t.value[n] = i, !0;
|
|
@@ -20745,7 +20745,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20745
20745
|
opt: ae,
|
|
20746
20746
|
selected: !0,
|
|
20747
20747
|
toggleOption: X,
|
|
20748
|
-
removeAtIndex:
|
|
20748
|
+
removeAtIndex: L
|
|
20749
20749
|
}))
|
|
20750
20750
|
), P = re(() => J(E.value)), D = re(() => E.value.map((ae) => C.value(ae))), M = re(() => v.value.map((ae, V) => ({
|
|
20751
20751
|
index: V,
|
|
@@ -20772,7 +20772,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20772
20772
|
function U(ae) {
|
|
20773
20773
|
return O.value(ae);
|
|
20774
20774
|
}
|
|
20775
|
-
function
|
|
20775
|
+
function L(ae) {
|
|
20776
20776
|
if (ae > -1 && ae < E.value.length)
|
|
20777
20777
|
if (r.multiple === !0) {
|
|
20778
20778
|
const V = r.modelValue.slice();
|
|
@@ -20880,7 +20880,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20880
20880
|
"tw-pb-[20px]": ae.error || ae.hint
|
|
20881
20881
|
}])
|
|
20882
20882
|
}, [
|
|
20883
|
-
ae.label ? (x(), we(
|
|
20883
|
+
ae.label ? (x(), we(I(vn), {
|
|
20884
20884
|
key: 0,
|
|
20885
20885
|
class: "tw-mb-2",
|
|
20886
20886
|
required: ae.required,
|
|
@@ -20932,12 +20932,12 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20932
20932
|
}), [
|
|
20933
20933
|
ae.multiple ? (x(), B("div", MM, [
|
|
20934
20934
|
Y("span", null, ue(O.value(R.opt)), 1),
|
|
20935
|
-
ae.disabled ? ie("", !0) : (x(), we(
|
|
20935
|
+
ae.disabled ? ie("", !0) : (x(), we(I(Ve), {
|
|
20936
20936
|
key: 0,
|
|
20937
20937
|
class: "tw-text-[#a9bfd2] tw-ml-2 tw-cursor-pointer hover:tw-text-[color:var(--select-clear-color-hover)]",
|
|
20938
20938
|
icon: "fas fa-times",
|
|
20939
20939
|
size: "s",
|
|
20940
|
-
onClick: nt((ve) =>
|
|
20940
|
+
onClick: nt((ve) => L(R.index), ["stop"])
|
|
20941
20941
|
}, null, 8, ["onClick"]))
|
|
20942
20942
|
])) : ae.multiple ? ie("", !0) : (x(), B(je, { key: 1 }, [
|
|
20943
20943
|
Re(ue(U(R.opt)), 1)
|
|
@@ -20948,7 +20948,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20948
20948
|
ae.placeholder ? (x(), B(je, { key: 0 }, [
|
|
20949
20949
|
Re(ue(ae.placeholder), 1)
|
|
20950
20950
|
], 64)) : (x(), B(je, { key: 1 }, [
|
|
20951
|
-
Re(ue(
|
|
20951
|
+
Re(ue(I(i)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
|
|
20952
20952
|
], 64))
|
|
20953
20953
|
]))
|
|
20954
20954
|
]),
|
|
@@ -20958,7 +20958,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20958
20958
|
class: "tw-cursor-pointer tw-flex tw-items-center tw-pl-3 tw-text-[color:var(--select-clear-color)] hover:tw-text-[color:var(--select-clear-color-hover)]",
|
|
20959
20959
|
onClick: ke
|
|
20960
20960
|
}, [
|
|
20961
|
-
oe(
|
|
20961
|
+
oe(I(Ve), {
|
|
20962
20962
|
size: "s",
|
|
20963
20963
|
icon: "fas fa-times"
|
|
20964
20964
|
})
|
|
@@ -20968,7 +20968,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20968
20968
|
Le(ae.$slots, "append-inner")
|
|
20969
20969
|
])) : ie("", !0),
|
|
20970
20970
|
ae.loading || h.value ? (x(), B("div", UM, [
|
|
20971
|
-
oe(
|
|
20971
|
+
oe(I(Ve), {
|
|
20972
20972
|
icon: "fas fa-spinner tw-animate-spin",
|
|
20973
20973
|
size: "m"
|
|
20974
20974
|
})
|
|
@@ -20978,7 +20978,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20978
20978
|
class: "vc-select__chevron tw-cursor-pointer tw-flex-nowrap tw-text-[color:var(--select-chevron-color)] hover:tw-text-[color:var(--select-chevron-color-hover)]",
|
|
20979
20979
|
onClick: nt(W, ["stop"])
|
|
20980
20980
|
}, [
|
|
20981
|
-
oe(
|
|
20981
|
+
oe(I(Ve), {
|
|
20982
20982
|
size: "s",
|
|
20983
20983
|
icon: "fas fa-chevron-down"
|
|
20984
20984
|
})
|
|
@@ -20995,7 +20995,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
20995
20995
|
default: le(() => [
|
|
20996
20996
|
ae.error ? (x(), B("div", HM, [
|
|
20997
20997
|
Le(ae.$slots, "error", {}, () => [
|
|
20998
|
-
ae.errorMessage ? (x(), we(
|
|
20998
|
+
ae.errorMessage ? (x(), we(I(Jr), {
|
|
20999
20999
|
key: 0,
|
|
21000
21000
|
class: "tw-mt-1 tw-text-[color:var(--select-border-color-error)]"
|
|
21001
21001
|
}, {
|
|
@@ -21007,7 +21007,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
21007
21007
|
])
|
|
21008
21008
|
])) : (x(), B("div", qM, [
|
|
21009
21009
|
Le(ae.$slots, "hint", {}, () => [
|
|
21010
|
-
ae.hint ? (x(), we(
|
|
21010
|
+
ae.hint ? (x(), we(I(Jr), {
|
|
21011
21011
|
key: 0,
|
|
21012
21012
|
class: "tw-text-[color:var(--select-placeholder-color)] tw-mt-1 tw-break-words tw-p-0"
|
|
21013
21013
|
}, {
|
|
@@ -21044,7 +21044,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
21044
21044
|
class: "tw-w-full tw-box-border tw-border tw-border-solid tw-border-[#eaecf2] tw-rounded-[4px] tw-h-[32px] tw-leading-[32px] tw-outline-none tw-mb-3 tw-px-2",
|
|
21045
21045
|
onInput: ce
|
|
21046
21046
|
}, null, 544)) : ie("", !0),
|
|
21047
|
-
oe(
|
|
21047
|
+
oe(I(mo), {
|
|
21048
21048
|
ref_key: "root",
|
|
21049
21049
|
ref: f,
|
|
21050
21050
|
"no-padding": !0
|
|
@@ -21072,7 +21072,7 @@ const OM = ["innerHTML"], TM = { class: "tw-flex tw-flex-nowrap tw-items-start t
|
|
|
21072
21072
|
_: 3
|
|
21073
21073
|
}, 512)
|
|
21074
21074
|
], 4)), [
|
|
21075
|
-
[
|
|
21075
|
+
[I(ui), [W, { ignore: [u.value] }]]
|
|
21076
21076
|
]) : ie("", !0)
|
|
21077
21077
|
]))
|
|
21078
21078
|
])
|
|
@@ -22140,8 +22140,8 @@ function rF() {
|
|
|
22140
22140
|
}
|
|
22141
22141
|
if (P.css("display") !== "none") {
|
|
22142
22142
|
if (n.slidesPerView === "auto") {
|
|
22143
|
-
var U = getComputedStyle(P[0]),
|
|
22144
|
-
if (
|
|
22143
|
+
var U = getComputedStyle(P[0]), L = P[0].style.transform, F = P[0].style.webkitTransform;
|
|
22144
|
+
if (L && (P[0].style.transform = "none"), F && (P[0].style.webkitTransform = "none"), n.roundLengths)
|
|
22145
22145
|
T = t.isHorizontal() ? P.outerWidth(!0) : P.outerHeight(!0);
|
|
22146
22146
|
else {
|
|
22147
22147
|
var H = r(U, "width"), ne = r(U, "padding-left"), W = r(U, "padding-right"), j = r(U, "margin-left"), X = r(U, "margin-right"), se = U.getPropertyValue("box-sizing");
|
|
@@ -22152,7 +22152,7 @@ function rF() {
|
|
|
22152
22152
|
T = H + ne + W + j + X + (ke - me);
|
|
22153
22153
|
}
|
|
22154
22154
|
}
|
|
22155
|
-
|
|
22155
|
+
L && (P[0].style.transform = L), F && (P[0].style.webkitTransform = F), n.roundLengths && (T = Math.floor(T));
|
|
22156
22156
|
} else
|
|
22157
22157
|
T = (o - (n.slidesPerView - 1) * w) / n.slidesPerView, n.roundLengths && (T = Math.floor(T)), c[N] && (c[N].style[e("width")] = T + "px");
|
|
22158
22158
|
c[N] && (c[N].swiperSlideSize = T), b.push(T), n.centeredSlides ? (m = m + T / 2 + _ / 2 + w, _ === 0 && N !== 0 && (m = m - o / 2 - w), N === 0 && (m = m - o / 2 - w), Math.abs(m) < 1 / 1e3 && (m = 0), n.roundLengths && (m = Math.floor(m)), A % n.slidesPerGroup === 0 && d.push(m), h.push(m)) : (n.roundLengths && (m = Math.floor(m)), (A - Math.min(t.params.slidesPerGroupSkip, A)) % t.params.slidesPerGroup === 0 && d.push(m), h.push(m), m = m + T + w), t.virtualSize += T + w, _ = T, A += 1;
|
|
@@ -24567,7 +24567,7 @@ const E4 = { class: "vc-slider tw-relative" }, S4 = { class: "vc-slider__prev tw
|
|
|
24567
24567
|
prevEl: ".vc-slider__prev"
|
|
24568
24568
|
}));
|
|
24569
24569
|
return (r, n) => (x(), B("div", E4, [
|
|
24570
|
-
oe(
|
|
24570
|
+
oe(I(w4), {
|
|
24571
24571
|
class: De([
|
|
24572
24572
|
"vc-slider__swiper",
|
|
24573
24573
|
{
|
|
@@ -24581,9 +24581,9 @@ const E4 = { class: "vc-slider tw-relative" }, S4 = { class: "vc-slider__prev tw
|
|
|
24581
24581
|
"resize-observer": !0
|
|
24582
24582
|
}, {
|
|
24583
24583
|
default: le(() => [
|
|
24584
|
-
(x(!0), B(je, null, ot(r.slides, (i, o) => (x(), we(
|
|
24584
|
+
(x(!0), B(je, null, ot(r.slides, (i, o) => (x(), we(I(_4), {
|
|
24585
24585
|
key: o,
|
|
24586
|
-
"swiper-ref":
|
|
24586
|
+
"swiper-ref": I(Di)
|
|
24587
24587
|
}, {
|
|
24588
24588
|
default: le(() => [
|
|
24589
24589
|
Le(r.$slots, "default", { slide: i }, void 0, !0)
|
|
@@ -24597,14 +24597,14 @@ const E4 = { class: "vc-slider tw-relative" }, S4 = { class: "vc-slider__prev tw
|
|
|
24597
24597
|
Y("div", S4, [
|
|
24598
24598
|
Le(r.$slots, "prevBtn", {}, () => [
|
|
24599
24599
|
Y("button", O4, [
|
|
24600
|
-
oe(
|
|
24600
|
+
oe(I(Ve), { icon: "fas fa-chevron-left" })
|
|
24601
24601
|
])
|
|
24602
24602
|
], !0)
|
|
24603
24603
|
]),
|
|
24604
24604
|
Y("div", T4, [
|
|
24605
24605
|
Le(r.$slots, "nextBtn", {}, () => [
|
|
24606
24606
|
Y("button", A4, [
|
|
24607
|
-
oe(
|
|
24607
|
+
oe(I(Ve), { icon: "fas fa-chevron-right" })
|
|
24608
24608
|
])
|
|
24609
24609
|
], !0)
|
|
24610
24610
|
])
|
|
@@ -24647,7 +24647,7 @@ const E4 = { class: "vc-slider tw-relative" }, S4 = { class: "vc-slider__prev tw
|
|
|
24647
24647
|
"vc-textarea_disabled": o.disabled
|
|
24648
24648
|
}])
|
|
24649
24649
|
}, [
|
|
24650
|
-
o.label ? (x(), we(
|
|
24650
|
+
o.label ? (x(), we(I(vn), {
|
|
24651
24651
|
key: 0,
|
|
24652
24652
|
class: "tw-mb-2",
|
|
24653
24653
|
required: o.required,
|
|
@@ -24678,7 +24678,7 @@ const E4 = { class: "vc-slider tw-relative" }, S4 = { class: "vc-slider__prev tw
|
|
|
24678
24678
|
}, null, 40, I4)
|
|
24679
24679
|
]),
|
|
24680
24680
|
o.errorMessage ? Le(o.$slots, "error", { key: 1 }, () => [
|
|
24681
|
-
oe(
|
|
24681
|
+
oe(I(Jr), { class: "vc-textarea__error" }, {
|
|
24682
24682
|
default: le(() => [
|
|
24683
24683
|
Re(ue(o.errorMessage), 1)
|
|
24684
24684
|
]),
|
|
@@ -24757,7 +24757,7 @@ const D4 = {
|
|
|
24757
24757
|
n("update:model-value", [...r.modelValue, m]), n("close"), g();
|
|
24758
24758
|
}
|
|
24759
24759
|
function p(m) {
|
|
24760
|
-
const _ =
|
|
24760
|
+
const _ = I(r.modelValue);
|
|
24761
24761
|
_.splice(m, 1), n("update:model-value", [..._]);
|
|
24762
24762
|
}
|
|
24763
24763
|
function v() {
|
|
@@ -24829,7 +24829,7 @@ const D4 = {
|
|
|
24829
24829
|
class: "vc-multivalue__field-wrapper"
|
|
24830
24830
|
}, [
|
|
24831
24831
|
(x(!0), B(je, null, ot(m.modelValue, (E, N) => (x(), B("div", {
|
|
24832
|
-
key: `${E?.id}_${
|
|
24832
|
+
key: `${E?.id}_${I(M0)()}`,
|
|
24833
24833
|
class: "vc-multivalue__field-value-wrapper"
|
|
24834
24834
|
}, [
|
|
24835
24835
|
E ? (x(), B("div", D4, [
|
|
@@ -24887,7 +24887,7 @@ const D4 = {
|
|
|
24887
24887
|
_: 3
|
|
24888
24888
|
}, 512)
|
|
24889
24889
|
], 4)), [
|
|
24890
|
-
[
|
|
24890
|
+
[I(ui), [y, { ignore: [i.value] }]]
|
|
24891
24891
|
]) : ie("", !0)
|
|
24892
24892
|
]))
|
|
24893
24893
|
])) : Ht((x(), B("input", {
|
|
@@ -24980,7 +24980,7 @@ const D4 = {
|
|
|
24980
24980
|
])) : ie("", !0),
|
|
24981
24981
|
n.type === "date-ago" ? (x(), B("div", G4, [
|
|
24982
24982
|
Y("div", W4, [
|
|
24983
|
-
Y("p", null, ue(
|
|
24983
|
+
Y("p", null, ue(I(xe)(n.value).fromNow() ?? "N/A"), 1)
|
|
24984
24984
|
])
|
|
24985
24985
|
])) : ie("", !0),
|
|
24986
24986
|
n.type === "link" ? (x(), B("div", z4, [
|
|
@@ -25035,11 +25035,11 @@ const D4 = {
|
|
|
25035
25035
|
"tw-flex "
|
|
25036
25036
|
])
|
|
25037
25037
|
}, [
|
|
25038
|
-
oe(
|
|
25038
|
+
oe(I(so), {
|
|
25039
25039
|
size: r.aspectRatio[0]
|
|
25040
25040
|
}, {
|
|
25041
25041
|
default: le(() => [
|
|
25042
|
-
r.label ? (x(), we(
|
|
25042
|
+
r.label ? (x(), we(I(vn), { key: 0 }, xr({
|
|
25043
25043
|
default: le(() => [
|
|
25044
25044
|
Y("span", null, ue(r.label), 1)
|
|
25045
25045
|
]),
|
|
@@ -25056,7 +25056,7 @@ const D4 = {
|
|
|
25056
25056
|
]),
|
|
25057
25057
|
_: 1
|
|
25058
25058
|
}, 8, ["size"]),
|
|
25059
|
-
oe(
|
|
25059
|
+
oe(I(so), {
|
|
25060
25060
|
size: r.aspectRatio[1]
|
|
25061
25061
|
}, {
|
|
25062
25062
|
default: le(() => [
|
|
@@ -30210,14 +30210,13 @@ function Ec() {
|
|
|
30210
30210
|
const { user: t } = Mn();
|
|
30211
30211
|
t.value && (Df.value = t.value?.permissions ?? []);
|
|
30212
30212
|
function e(r) {
|
|
30213
|
-
if (r)
|
|
30214
|
-
if (Array.isArray(r))
|
|
30215
|
-
return r.some((n) => Df.value.includes(n));
|
|
30216
|
-
if (typeof r == "string")
|
|
30217
|
-
return Df.value.includes(r);
|
|
30218
|
-
throw new Error("Permissions must be a string or an array of strings");
|
|
30219
|
-
} else
|
|
30213
|
+
if (!r || t.value?.isAdministrator)
|
|
30220
30214
|
return !0;
|
|
30215
|
+
if (Array.isArray(r))
|
|
30216
|
+
return r.some((n) => Df.value.includes(n));
|
|
30217
|
+
if (typeof r == "string")
|
|
30218
|
+
return Df.value.includes(r);
|
|
30219
|
+
throw new Error("Permissions must be a string or an array of strings");
|
|
30221
30220
|
}
|
|
30222
30221
|
return {
|
|
30223
30222
|
hasAccess: e
|
|
@@ -30363,7 +30362,7 @@ const r_ = sc(IU), LU = (t) => {
|
|
|
30363
30362
|
window.removeEventListener("beforeunload", e);
|
|
30364
30363
|
});
|
|
30365
30364
|
function e(r) {
|
|
30366
|
-
|
|
30365
|
+
I(t) && r.preventDefault();
|
|
30367
30366
|
}
|
|
30368
30367
|
return {
|
|
30369
30368
|
modified: t
|
|
@@ -31397,9 +31396,9 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31397
31396
|
}
|
|
31398
31397
|
return (p, v) => {
|
|
31399
31398
|
const y = $e("VcIcon"), g = $e("VcLabel"), w = $e("VcHint"), m = $e("VcCol"), _ = $e("VcLink"), A = $e("VcButton"), S = $e("VcRow");
|
|
31400
|
-
return x(), we(
|
|
31399
|
+
return x(), we(I(iE), {
|
|
31401
31400
|
title: p.options?.asset?.name,
|
|
31402
|
-
subtitle:
|
|
31401
|
+
subtitle: I(s)("ASSETS.PAGES.DETAILS.SUBTITLE"),
|
|
31403
31402
|
expanded: p.expanded,
|
|
31404
31403
|
closable: p.closable,
|
|
31405
31404
|
"toolbar-items": f.value,
|
|
@@ -31410,14 +31409,14 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31410
31409
|
default: le(() => [
|
|
31411
31410
|
Y("div", WU, [
|
|
31412
31411
|
Y("div", zU, [
|
|
31413
|
-
oe(
|
|
31412
|
+
oe(I(mo), { "no-padding": !0 }, {
|
|
31414
31413
|
default: le(() => [
|
|
31415
31414
|
Y("div", YU, [
|
|
31416
|
-
oe(
|
|
31415
|
+
oe(I(Nh), null, {
|
|
31417
31416
|
default: le(() => [
|
|
31418
31417
|
oe(S, { class: "tw-mb-4 !tw-flex" }, {
|
|
31419
31418
|
default: le(() => [
|
|
31420
|
-
|
|
31419
|
+
I(Vd)(a.value.name) ? (x(), we(I(Pa), {
|
|
31421
31420
|
key: 0,
|
|
31422
31421
|
src: a.value.url,
|
|
31423
31422
|
size: "xl",
|
|
@@ -31425,7 +31424,7 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31425
31424
|
class: "tw-shrink-0"
|
|
31426
31425
|
}, null, 8, ["src"])) : (x(), we(y, {
|
|
31427
31426
|
key: 1,
|
|
31428
|
-
icon:
|
|
31427
|
+
icon: I(Hd)(a.value.name),
|
|
31429
31428
|
class: "tw-text-[#a9bfd2] tw-text-[128px] tw-shrink-0"
|
|
31430
31429
|
}, null, 8, ["icon"])),
|
|
31431
31430
|
oe(m, { class: "tw-ml-6" }, {
|
|
@@ -31436,13 +31435,13 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31436
31435
|
default: le(() => [
|
|
31437
31436
|
oe(g, null, {
|
|
31438
31437
|
default: le(() => [
|
|
31439
|
-
Re(ue(
|
|
31438
|
+
Re(ue(I(s)("ASSETS.PAGES.DETAILS.FIELDS.SIZE")), 1)
|
|
31440
31439
|
]),
|
|
31441
31440
|
_: 1
|
|
31442
31441
|
}),
|
|
31443
31442
|
oe(w, { class: "tw-text-s" }, {
|
|
31444
31443
|
default: le(() => [
|
|
31445
|
-
Re(ue(
|
|
31444
|
+
Re(ue(I(qd)(a.value.size)), 1)
|
|
31446
31445
|
]),
|
|
31447
31446
|
_: 1
|
|
31448
31447
|
})
|
|
@@ -31453,13 +31452,13 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31453
31452
|
default: le(() => [
|
|
31454
31453
|
oe(g, null, {
|
|
31455
31454
|
default: le(() => [
|
|
31456
|
-
Re(ue(
|
|
31455
|
+
Re(ue(I(s)("ASSETS.PAGES.DETAILS.FIELDS.CREATED_DATE")), 1)
|
|
31457
31456
|
]),
|
|
31458
31457
|
_: 1
|
|
31459
31458
|
}),
|
|
31460
31459
|
oe(w, { class: "tw-text-s" }, {
|
|
31461
31460
|
default: le(() => [
|
|
31462
|
-
Re(ue(a.value.createdDate &&
|
|
31461
|
+
Re(ue(a.value.createdDate && I(xe)(a.value.createdDate).fromNow() || "N/A"), 1)
|
|
31463
31462
|
]),
|
|
31464
31463
|
_: 1
|
|
31465
31464
|
})
|
|
@@ -31470,7 +31469,7 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31470
31469
|
default: le(() => [
|
|
31471
31470
|
oe(g, null, {
|
|
31472
31471
|
default: le(() => [
|
|
31473
|
-
Re(ue(
|
|
31472
|
+
Re(ue(I(s)("ASSETS.PAGES.DETAILS.FIELDS.URL")), 1)
|
|
31474
31473
|
]),
|
|
31475
31474
|
_: 1
|
|
31476
31475
|
}),
|
|
@@ -31491,7 +31490,7 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31491
31490
|
size: "m",
|
|
31492
31491
|
class: "tw-ml-2",
|
|
31493
31492
|
text: "",
|
|
31494
|
-
title:
|
|
31493
|
+
title: I(s)("ASSETS.PAGES.DETAILS.FIELDS.COPY"),
|
|
31495
31494
|
onClick: v[1] || (v[1] = (T) => h(a.value.url))
|
|
31496
31495
|
}, null, 8, ["title"])
|
|
31497
31496
|
])
|
|
@@ -31507,48 +31506,48 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31507
31506
|
]),
|
|
31508
31507
|
_: 1
|
|
31509
31508
|
}),
|
|
31510
|
-
oe(
|
|
31511
|
-
label:
|
|
31509
|
+
oe(I(jr), {
|
|
31510
|
+
label: I(s)("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),
|
|
31512
31511
|
name: "asset_name",
|
|
31513
31512
|
rules: "required",
|
|
31514
31513
|
"model-value": a.value.name
|
|
31515
31514
|
}, {
|
|
31516
31515
|
default: le(({ errorMessage: T, handleChange: C, errors: O }) => [
|
|
31517
|
-
oe(
|
|
31516
|
+
oe(I($r), {
|
|
31518
31517
|
modelValue: u.value,
|
|
31519
31518
|
"onUpdate:modelValue": [
|
|
31520
31519
|
v[2] || (v[2] = (E) => u.value = E),
|
|
31521
31520
|
C
|
|
31522
31521
|
],
|
|
31523
31522
|
class: "tw-mb-4",
|
|
31524
|
-
label:
|
|
31523
|
+
label: I(s)("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),
|
|
31525
31524
|
clearable: "",
|
|
31526
31525
|
required: "",
|
|
31527
31526
|
error: !!O.length,
|
|
31528
31527
|
"error-message": T,
|
|
31529
|
-
placeholder:
|
|
31528
|
+
placeholder: I(s)("ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER"),
|
|
31530
31529
|
disabled: l.value
|
|
31531
31530
|
}, null, 8, ["modelValue", "label", "error", "error-message", "placeholder", "disabled", "onUpdate:modelValue"])
|
|
31532
31531
|
]),
|
|
31533
31532
|
_: 1
|
|
31534
31533
|
}, 8, ["label", "model-value"]),
|
|
31535
|
-
d.value === "Image" ? (x(), we(
|
|
31534
|
+
d.value === "Image" ? (x(), we(I($r), {
|
|
31536
31535
|
key: 0,
|
|
31537
31536
|
modelValue: a.value.altText,
|
|
31538
31537
|
"onUpdate:modelValue": v[3] || (v[3] = (T) => a.value.altText = T),
|
|
31539
31538
|
class: "tw-mb-4",
|
|
31540
|
-
label:
|
|
31539
|
+
label: I(s)("ASSETS.PAGES.DETAILS.FIELDS.ALT.TITLE"),
|
|
31541
31540
|
clearable: "",
|
|
31542
|
-
placeholder:
|
|
31543
|
-
tooltip:
|
|
31541
|
+
placeholder: I(s)("ASSETS.PAGES.DETAILS.FIELDS.ALT.PLACEHOLDER"),
|
|
31542
|
+
tooltip: I(s)("ASSETS.PAGES.DETAILS.FIELDS.ALT.TOOLTIP"),
|
|
31544
31543
|
disabled: l.value
|
|
31545
31544
|
}, null, 8, ["modelValue", "label", "placeholder", "tooltip", "disabled"])) : ie("", !0),
|
|
31546
|
-
oe(
|
|
31545
|
+
oe(I(vc), {
|
|
31547
31546
|
modelValue: a.value.description,
|
|
31548
31547
|
"onUpdate:modelValue": v[4] || (v[4] = (T) => a.value.description = T),
|
|
31549
31548
|
class: "tw-mb-4",
|
|
31550
|
-
label:
|
|
31551
|
-
placeholder:
|
|
31549
|
+
label: I(s)("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE"),
|
|
31550
|
+
placeholder: I(s)("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER"),
|
|
31552
31551
|
disabled: l.value
|
|
31553
31552
|
}, null, 8, ["modelValue", "label", "placeholder", "disabled"])
|
|
31554
31553
|
]),
|
|
@@ -31614,7 +31613,7 @@ const WU = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[
|
|
|
31614
31613
|
])
|
|
31615
31614
|
])) : ie("", !0)
|
|
31616
31615
|
])), [
|
|
31617
|
-
[
|
|
31616
|
+
[I(ui), c]
|
|
31618
31617
|
]);
|
|
31619
31618
|
}
|
|
31620
31619
|
}), lB = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -34880,7 +34879,7 @@ const f6 = ["innerHTML"], d6 = /* @__PURE__ */ Ae({
|
|
|
34880
34879
|
__name: "vc-popup-container",
|
|
34881
34880
|
setup(t) {
|
|
34882
34881
|
const e = c6();
|
|
34883
|
-
return (r, n) => (x(!0), B(je, null, ot(
|
|
34882
|
+
return (r, n) => (x(!0), B(je, null, ot(I(e)?.popups, (i) => (x(), we(Kn(i.component), Lt({
|
|
34884
34883
|
key: i.id
|
|
34885
34884
|
}, { ...i.props, ...i.emits }, {
|
|
34886
34885
|
onClose: () => i.close?.()
|
|
@@ -35597,7 +35596,7 @@ Ae({ name: "Description", props: { as: { type: [Object, String], default: "p" },
|
|
|
35597
35596
|
var n;
|
|
35598
35597
|
let i = (n = t.id) != null ? n : `headlessui-description-${So()}`, o = K6();
|
|
35599
35598
|
return ct(() => zr(o.register(i))), () => {
|
|
35600
|
-
let { name: s = "Description", slot: a = K({}), props: l = {} } = o, { ...u } = t, c = { ...Object.entries(l).reduce((f, [d, h]) => Object.assign(f, { [d]:
|
|
35599
|
+
let { name: s = "Description", slot: a = K({}), props: l = {} } = o, { ...u } = t, c = { ...Object.entries(l).reduce((f, [d, h]) => Object.assign(f, { [d]: I(h) }), {}), id: i };
|
|
35601
35600
|
return Hr({ ourProps: c, theirProps: u, slot: a.value, attrs: e, slots: r, name: s });
|
|
35602
35601
|
};
|
|
35603
35602
|
} });
|
|
@@ -35686,40 +35685,40 @@ let Ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", rq = Ae({ name: "Dialog", inher
|
|
|
35686
35685
|
if (typeof h.value != "boolean")
|
|
35687
35686
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value === Ul ? void 0 : t.open}`);
|
|
35688
35687
|
let v = re(() => l.value && h.value ? 0 : 1), y = re(() => v.value === 0), g = re(() => f.value > 1), w = Ot(lh, null) !== null, [m, _] = Q6(), { resolveContainers: A, mainTreeNodeRef: S, MainTreeNode: T } = W6({ portals: m, defaultContainers: [re(() => {
|
|
35689
|
-
var
|
|
35690
|
-
return (
|
|
35688
|
+
var L;
|
|
35689
|
+
return (L = Z.panelRef.value) != null ? L : b.value;
|
|
35691
35690
|
})] }), C = re(() => g.value ? "parent" : "leaf"), O = re(() => d !== null ? (d.value & Lr.Closing) === Lr.Closing : !1), E = re(() => w || O.value ? !1 : y.value), N = re(() => {
|
|
35692
|
-
var
|
|
35693
|
-
return (H = Array.from((F = (
|
|
35691
|
+
var L, F, H;
|
|
35692
|
+
return (H = Array.from((F = (L = p.value) == null ? void 0 : L.querySelectorAll("body > *")) != null ? F : []).find((ne) => ne.id === "headlessui-portal-root" ? !1 : ne.contains(zt(S)) && ne instanceof HTMLElement)) != null ? H : null;
|
|
35694
35693
|
});
|
|
35695
35694
|
py(N, E);
|
|
35696
35695
|
let P = re(() => g.value ? !0 : y.value), D = re(() => {
|
|
35697
|
-
var
|
|
35698
|
-
return (H = Array.from((F = (
|
|
35696
|
+
var L, F, H;
|
|
35697
|
+
return (H = Array.from((F = (L = p.value) == null ? void 0 : L.querySelectorAll("[data-headlessui-portal]")) != null ? F : []).find((ne) => ne.contains(zt(S)) && ne instanceof HTMLElement)) != null ? H : null;
|
|
35699
35698
|
});
|
|
35700
|
-
py(D, P), J6({ type: "Dialog", enabled: re(() => v.value === 0), element: b, onUpdate: (
|
|
35699
|
+
py(D, P), J6({ type: "Dialog", enabled: re(() => v.value === 0), element: b, onUpdate: (L, F) => {
|
|
35701
35700
|
if (F === "Dialog")
|
|
35702
|
-
return In(
|
|
35701
|
+
return In(L, { [sh.Add]: () => f.value += 1, [sh.Remove]: () => f.value -= 1 });
|
|
35703
35702
|
} });
|
|
35704
|
-
let M = Z6({ name: "DialogDescription", slot: re(() => ({ open: h.value })) }), G = K(null), Z = { titleId: G, panelRef: K(null), dialogState: v, setTitleId(
|
|
35705
|
-
G.value !==
|
|
35703
|
+
let M = Z6({ name: "DialogDescription", slot: re(() => ({ open: h.value })) }), G = K(null), Z = { titleId: G, panelRef: K(null), dialogState: v, setTitleId(L) {
|
|
35704
|
+
G.value !== L && (G.value = L);
|
|
35706
35705
|
}, close() {
|
|
35707
35706
|
e("close", !1);
|
|
35708
35707
|
} };
|
|
35709
35708
|
Cr(lh, Z);
|
|
35710
35709
|
let de = re(() => !(!y.value || g.value));
|
|
35711
|
-
C6(A, (
|
|
35710
|
+
C6(A, (L, F) => {
|
|
35712
35711
|
Z.close(), Vt(() => F?.focus());
|
|
35713
35712
|
}, de);
|
|
35714
35713
|
let J = re(() => !(g.value || v.value !== 0));
|
|
35715
|
-
A1((s = p.value) == null ? void 0 : s.defaultView, "keydown", (
|
|
35716
|
-
J.value && (
|
|
35714
|
+
A1((s = p.value) == null ? void 0 : s.defaultView, "keydown", (L) => {
|
|
35715
|
+
J.value && (L.defaultPrevented || L.key === T1.Escape && (L.preventDefault(), L.stopPropagation(), Z.close()));
|
|
35717
35716
|
});
|
|
35718
35717
|
let U = re(() => !(O.value || v.value !== 0 || w));
|
|
35719
|
-
return G6(p, U, (
|
|
35718
|
+
return G6(p, U, (L) => {
|
|
35720
35719
|
var F;
|
|
35721
|
-
return { containers: [...(F =
|
|
35722
|
-
}), Yr((
|
|
35720
|
+
return { containers: [...(F = L.containers) != null ? F : [], A] };
|
|
35721
|
+
}), Yr((L) => {
|
|
35723
35722
|
if (v.value !== 0)
|
|
35724
35723
|
return;
|
|
35725
35724
|
let F = zt(b);
|
|
@@ -35731,9 +35730,9 @@ let Ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", rq = Ae({ name: "Dialog", inher
|
|
|
35731
35730
|
j.x === 0 && j.y === 0 && j.width === 0 && j.height === 0 && Z.close();
|
|
35732
35731
|
}
|
|
35733
35732
|
});
|
|
35734
|
-
H.observe(F),
|
|
35733
|
+
H.observe(F), L(() => H.disconnect());
|
|
35735
35734
|
}), () => {
|
|
35736
|
-
let { open:
|
|
35735
|
+
let { open: L, initialFocus: F, ...H } = t, ne = { ...r, ref: b, id: a, role: c.value, "aria-modal": v.value === 0 ? !0 : void 0, "aria-labelledby": G.value, "aria-describedby": M.value }, W = { open: v.value === 0 };
|
|
35737
35736
|
return Te(oh, { force: !0 }, () => [Te(L1, () => Te(eq, { target: b.value }, () => Te(oh, { force: !1 }, () => Te(Fs, { initialFocus: F, containers: A, features: y.value ? In(C.value, { parent: Fs.features.RestoreFocus, leaf: Fs.features.All & ~Fs.features.FocusLock }) : Fs.features.None }, () => Te(_, {}, () => Hr({ ourProps: ne, theirProps: { ...H, ...r }, slot: W, attrs: r, slots: n, visible: v.value === 0, features: xu.RenderStrategy | xu.Static, name: "Dialog" })))))), Te(T)]);
|
|
35738
35737
|
};
|
|
35739
35738
|
} });
|
|
@@ -35908,7 +35907,7 @@ let $1 = xu.RenderStrategy, ch = Ae({ props: { as: { type: [Object, String], def
|
|
|
35908
35907
|
N(M), y.value = !1;
|
|
35909
35908
|
}, { immediate: !0 });
|
|
35910
35909
|
}), Cr(Im, m), I6(re(() => In(v.value, { visible: Lr.Open, hidden: Lr.Closed }) | o.value)), () => {
|
|
35911
|
-
let { appear: P, show: D, enter: M, enterFrom: G, enterTo: Z, entered: de, leave: J, leaveFrom: U, leaveTo:
|
|
35910
|
+
let { appear: P, show: D, enter: M, enterFrom: G, enterTo: Z, entered: de, leave: J, leaveFrom: U, leaveTo: L, ...F } = t, H = { ref: c }, ne = { ...F, ...h.value && d.value && el.isServer ? { class: De([r.class, F.class, ..._, ...A]) } : {} };
|
|
35912
35911
|
return Hr({ theirProps: ne, ourProps: H, slot: {}, slots: n, attrs: r, features: $1, visible: v.value === "visible", name: "TransitionChild" });
|
|
35913
35912
|
};
|
|
35914
35913
|
} }), fq = ch, M1 = Ae({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(t, { emit: e, attrs: r, slots: n }) {
|
|
@@ -35984,19 +35983,19 @@ const dq = /* @__PURE__ */ Y("div", { class: "tw-fixed tw-inset-0 tw-bg-black/25
|
|
|
35984
35983
|
}
|
|
35985
35984
|
return (u, c) => {
|
|
35986
35985
|
const f = $e("VcIcon"), d = $e("VcButton");
|
|
35987
|
-
return x(), we(
|
|
35986
|
+
return x(), we(I(M1), {
|
|
35988
35987
|
appear: "",
|
|
35989
35988
|
show: "",
|
|
35990
35989
|
as: "template"
|
|
35991
35990
|
}, {
|
|
35992
35991
|
default: le(() => [
|
|
35993
|
-
oe(
|
|
35992
|
+
oe(I(rq), {
|
|
35994
35993
|
as: "div",
|
|
35995
35994
|
class: "tw-relative tw-z-10",
|
|
35996
35995
|
onClose: l
|
|
35997
35996
|
}, {
|
|
35998
35997
|
default: le(() => [
|
|
35999
|
-
oe(
|
|
35998
|
+
oe(I(ch), {
|
|
36000
35999
|
as: "template",
|
|
36001
36000
|
enter: "tw-duration-300 tw-ease-out",
|
|
36002
36001
|
"enter-from": "tw-opacity-0",
|
|
@@ -36017,7 +36016,7 @@ const dq = /* @__PURE__ */ Y("div", { class: "tw-fixed tw-inset-0 tw-bg-black/25
|
|
|
36017
36016
|
}])
|
|
36018
36017
|
}, [
|
|
36019
36018
|
Y("div", hq, [
|
|
36020
|
-
oe(
|
|
36019
|
+
oe(I(ch), {
|
|
36021
36020
|
as: "template",
|
|
36022
36021
|
enter: "tw-duration-300 tw-ease-out",
|
|
36023
36022
|
"enter-from": "tw-opacity-0 tw-scale-95",
|
|
@@ -36027,7 +36026,7 @@ const dq = /* @__PURE__ */ Y("div", { class: "tw-fixed tw-inset-0 tw-bg-black/25
|
|
|
36027
36026
|
"leave-to": "tw-opacity-0 tw-scale-95"
|
|
36028
36027
|
}, {
|
|
36029
36028
|
default: le(() => [
|
|
36030
|
-
oe(
|
|
36029
|
+
oe(I(nq), {
|
|
36031
36030
|
class: De(["tw-w-full tw-transform tw-overflow-hidden tw-rounded-[5px] tw-bg-white tw-text-left tw-align-middle tw-shadow-xl tw-transition-all", [
|
|
36032
36031
|
{
|
|
36033
36032
|
"tw-flex tw-flex-col [max-height:calc(100vh-40px)]": !a.value,
|
|
@@ -36038,7 +36037,7 @@ const dq = /* @__PURE__ */ Y("div", { class: "tw-fixed tw-inset-0 tw-bg-black/25
|
|
|
36038
36037
|
]])
|
|
36039
36038
|
}, {
|
|
36040
36039
|
default: le(() => [
|
|
36041
|
-
oe(
|
|
36040
|
+
oe(I(iq), {
|
|
36042
36041
|
as: "h3",
|
|
36043
36042
|
class: "tw-text-[18px] tw-font-semibold tw-leading-5 tw-text-[var(--header-color)] tw-flex tw-px-6 tw-py-5"
|
|
36044
36043
|
}, {
|
|
@@ -36186,10 +36185,10 @@ function vy() {
|
|
|
36186
36185
|
function Ss(t) {
|
|
36187
36186
|
const { t: e } = mt({ useScope: "global" }), r = vy();
|
|
36188
36187
|
let n;
|
|
36189
|
-
t && (n = u(
|
|
36188
|
+
t && (n = u(I(t))), Ge(
|
|
36190
36189
|
() => t,
|
|
36191
36190
|
(c) => {
|
|
36192
|
-
c && (n = u(
|
|
36191
|
+
c && (n = u(I(c)));
|
|
36193
36192
|
},
|
|
36194
36193
|
{ deep: !0 }
|
|
36195
36194
|
);
|
|
@@ -36295,22 +36294,22 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36295
36294
|
(u.password || u.confirmPassword) && (u.errors = (await s(u.password)).errors ?? [], u.confirmPassword !== u.password && u.errors.push({ code: "Repeat-password" }), u.confirmPassword === u.currentPassword && u.password === u.currentPassword && u.errors.push({ code: "Equal-passwords" }), u.isValid = u.errors.length == 0);
|
|
36296
36295
|
});
|
|
36297
36296
|
}
|
|
36298
|
-
return (h, b) => (x(), we(
|
|
36299
|
-
title:
|
|
36297
|
+
return (h, b) => (x(), we(I(nl), {
|
|
36298
|
+
title: I(n)("COMPONENTS.CHANGE_PASSWORD.TITLE"),
|
|
36300
36299
|
"is-mobile-fullscreen": "",
|
|
36301
36300
|
onClose: b[4] || (b[4] = (p) => h.$emit("close"))
|
|
36302
36301
|
}, {
|
|
36303
36302
|
content: le(() => [
|
|
36304
|
-
oe(
|
|
36303
|
+
oe(I(Nh), { class: "tw-flex tw-flex-col tw-flex-auto" }, {
|
|
36305
36304
|
default: le(() => [
|
|
36306
|
-
oe(
|
|
36307
|
-
label:
|
|
36305
|
+
oe(I(jr), {
|
|
36306
|
+
label: I(n)("COMPONENTS.CHANGE_PASSWORD.CURRENT_PASSWORD.LABEL"),
|
|
36308
36307
|
name: "current",
|
|
36309
36308
|
rules: "required|min:6",
|
|
36310
36309
|
"model-value": u.currentPassword
|
|
36311
36310
|
}, {
|
|
36312
36311
|
default: le(({ field: p, errorMessage: v, errors: y }) => [
|
|
36313
|
-
oe(
|
|
36312
|
+
oe(I($r), Lt(p, {
|
|
36314
36313
|
ref: "passwordField",
|
|
36315
36314
|
modelValue: u.currentPassword,
|
|
36316
36315
|
"onUpdate:modelValue": [
|
|
@@ -36318,8 +36317,8 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36318
36317
|
d
|
|
36319
36318
|
],
|
|
36320
36319
|
class: "tw-mb-4 tw-mt-1",
|
|
36321
|
-
label:
|
|
36322
|
-
placeholder:
|
|
36320
|
+
label: I(n)("COMPONENTS.CHANGE_PASSWORD.CURRENT_PASSWORD.LABEL"),
|
|
36321
|
+
placeholder: I(n)("COMPONENTS.CHANGE_PASSWORD.CURRENT_PASSWORD.PLACEHOLDER"),
|
|
36323
36322
|
type: "password",
|
|
36324
36323
|
required: "",
|
|
36325
36324
|
error: !!y.length,
|
|
@@ -36328,14 +36327,14 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36328
36327
|
]),
|
|
36329
36328
|
_: 1
|
|
36330
36329
|
}, 8, ["label", "model-value"]),
|
|
36331
|
-
oe(
|
|
36332
|
-
label:
|
|
36330
|
+
oe(I(jr), {
|
|
36331
|
+
label: I(n)("COMPONENTS.CHANGE_PASSWORD.NEW_PASSWORD.LABEL"),
|
|
36333
36332
|
name: "new_pass",
|
|
36334
36333
|
rules: "required|min:6",
|
|
36335
36334
|
"model-value": u.password
|
|
36336
36335
|
}, {
|
|
36337
36336
|
default: le(({ field: p, errorMessage: v, errors: y }) => [
|
|
36338
|
-
oe(
|
|
36337
|
+
oe(I($r), Lt(p, {
|
|
36339
36338
|
ref: "newPasswordField",
|
|
36340
36339
|
modelValue: u.password,
|
|
36341
36340
|
"onUpdate:modelValue": [
|
|
@@ -36343,8 +36342,8 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36343
36342
|
d
|
|
36344
36343
|
],
|
|
36345
36344
|
class: "tw-mb-4 tw-mt-1",
|
|
36346
|
-
label:
|
|
36347
|
-
placeholder:
|
|
36345
|
+
label: I(n)("COMPONENTS.CHANGE_PASSWORD.NEW_PASSWORD.LABEL"),
|
|
36346
|
+
placeholder: I(n)("COMPONENTS.CHANGE_PASSWORD.NEW_PASSWORD.PLACEHOLDER"),
|
|
36348
36347
|
type: "password",
|
|
36349
36348
|
required: "",
|
|
36350
36349
|
error: !!y.length,
|
|
@@ -36353,14 +36352,14 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36353
36352
|
]),
|
|
36354
36353
|
_: 1
|
|
36355
36354
|
}, 8, ["label", "model-value"]),
|
|
36356
|
-
oe(
|
|
36357
|
-
label:
|
|
36355
|
+
oe(I(jr), {
|
|
36356
|
+
label: I(n)("COMPONENTS.CHANGE_PASSWORD.CONFIRM_PASSWORD.LABEL"),
|
|
36358
36357
|
name: "confirm_pass",
|
|
36359
36358
|
rules: "required|min:6",
|
|
36360
36359
|
"model-value": u.confirmPassword
|
|
36361
36360
|
}, {
|
|
36362
36361
|
default: le(({ field: p, errorMessage: v, errors: y }) => [
|
|
36363
|
-
oe(
|
|
36362
|
+
oe(I($r), Lt(p, {
|
|
36364
36363
|
ref: "confirmPasswordField",
|
|
36365
36364
|
modelValue: u.confirmPassword,
|
|
36366
36365
|
"onUpdate:modelValue": [
|
|
@@ -36368,8 +36367,8 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36368
36367
|
d
|
|
36369
36368
|
],
|
|
36370
36369
|
class: "tw-mb-4",
|
|
36371
|
-
label:
|
|
36372
|
-
placeholder:
|
|
36370
|
+
label: I(n)("COMPONENTS.CHANGE_PASSWORD.CONFIRM_PASSWORD.LABEL"),
|
|
36371
|
+
placeholder: I(n)("COMPONENTS.CHANGE_PASSWORD.CONFIRM_PASSWORD.PLACEHOLDER"),
|
|
36373
36372
|
type: "password",
|
|
36374
36373
|
required: "",
|
|
36375
36374
|
error: !!y.length,
|
|
@@ -36385,32 +36384,32 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36385
36384
|
footer: le(() => [
|
|
36386
36385
|
Y("div", Sq, [
|
|
36387
36386
|
Y("div", Oq, [
|
|
36388
|
-
oe(
|
|
36387
|
+
oe(I(ln), {
|
|
36389
36388
|
outline: !0,
|
|
36390
36389
|
class: "tw-mr-3",
|
|
36391
36390
|
onClick: b[3] || (b[3] = (p) => h.$emit("close"))
|
|
36392
36391
|
}, {
|
|
36393
36392
|
default: le(() => [
|
|
36394
|
-
Re(ue(
|
|
36393
|
+
Re(ue(I(n)("COMPONENTS.CHANGE_PASSWORD.CANCEL")), 1)
|
|
36395
36394
|
]),
|
|
36396
36395
|
_: 1
|
|
36397
36396
|
}),
|
|
36398
|
-
oe(
|
|
36399
|
-
disabled:
|
|
36397
|
+
oe(I(ln), {
|
|
36398
|
+
disabled: I(o) || !u.isValid || c.value,
|
|
36400
36399
|
onClick: f
|
|
36401
36400
|
}, {
|
|
36402
36401
|
default: le(() => [
|
|
36403
|
-
Re(ue(
|
|
36402
|
+
Re(ue(I(n)("COMPONENTS.CHANGE_PASSWORD.SAVE")), 1)
|
|
36404
36403
|
]),
|
|
36405
36404
|
_: 1
|
|
36406
36405
|
}, 8, ["disabled"])
|
|
36407
36406
|
]),
|
|
36408
|
-
(x(!0), B(je, null, ot(u.errors, (p, v) => (x(), we(
|
|
36407
|
+
(x(!0), B(je, null, ot(u.errors, (p, v) => (x(), we(I(Jr), {
|
|
36409
36408
|
key: v,
|
|
36410
36409
|
class: "tw-mt-3 !tw-text-[#f14e4e]"
|
|
36411
36410
|
}, {
|
|
36412
36411
|
default: le(() => [
|
|
36413
|
-
Re(ue(p.code ?
|
|
36412
|
+
Re(ue(p.code ? I(n)(`COMPONENTS.CHANGE_PASSWORD.ERRORS.${p.code}`) : p), 1)
|
|
36414
36413
|
]),
|
|
36415
36414
|
_: 2
|
|
36416
36415
|
}, 1024))), 128))
|
|
@@ -36445,13 +36444,13 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36445
36444
|
"tw-relative tw-h-full tw-flex tw-items-center tw-justify-center tw-w-[var(--app-bar-button-width)] tw-border-l tw-border-solid tw-border-l-[color:var(--app-bar-button-border-color)] tw-cursor-pointer tw-text-[color:var(--app-bar-button-color)] tw-bg-[color:var(--app-bar-button-background-color)] tw-transition-[color] tw-duration-200 hover:tw-text-[color:var(--app-bar-button-color-hover)] hover:tw-bg-[color:var(--app-bar-button-background-color-hover)]"
|
|
36446
36445
|
])
|
|
36447
36446
|
}, [
|
|
36448
|
-
oe(
|
|
36447
|
+
oe(I(Ve), {
|
|
36449
36448
|
icon: "fas fa-globe",
|
|
36450
36449
|
size: "xl"
|
|
36451
36450
|
})
|
|
36452
36451
|
], 2),
|
|
36453
36452
|
i.value ? (x(), B("div", kq, [
|
|
36454
|
-
(x(!0), B(je, null, ot(
|
|
36453
|
+
(x(!0), B(je, null, ot(I(o), (l, u) => (x(), B("div", {
|
|
36455
36454
|
key: u,
|
|
36456
36455
|
class: "tw-p-3 tw-text-lg tw-text-black tw-border-l tw-border-solid tw-border-l-[#eef0f2] tw-border-b tw-border-b-[#eef0f2] tw-white tw-cursor-pointer hover:tw-bg-[#eff7fc]",
|
|
36457
36456
|
onClick: (c) => l.hasOwnProperty("clickHandler") && l.clickHandler(l.lang)
|
|
@@ -36459,7 +36458,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36459
36458
|
])) : ie("", !0)
|
|
36460
36459
|
], 8, Nq)), [
|
|
36461
36460
|
[
|
|
36462
|
-
|
|
36461
|
+
I(ui),
|
|
36463
36462
|
() => {
|
|
36464
36463
|
i.value = !1;
|
|
36465
36464
|
}
|
|
@@ -36515,18 +36514,18 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36515
36514
|
key: 0,
|
|
36516
36515
|
class: "user-dropdown-button__avatar",
|
|
36517
36516
|
style: Et(d.value)
|
|
36518
|
-
}, null, 4)) : (x(), we(
|
|
36517
|
+
}, null, 4)) : (x(), we(I(Ve), {
|
|
36519
36518
|
key: 1,
|
|
36520
36519
|
icon: "fas fa-user-circle",
|
|
36521
36520
|
size: "xxl",
|
|
36522
36521
|
class: "tw-text-[color:var(--app-bar-button-color)]"
|
|
36523
36522
|
})),
|
|
36524
36523
|
Y("div", Iq, [
|
|
36525
|
-
Y("div", Lq, ue(h.name ||
|
|
36526
|
-
Y("div", Dq, ue(h.role && h.$t(`SHELL.USER.ROLE.${h.role}`) || (
|
|
36524
|
+
Y("div", Lq, ue(h.name || I(r)?.userName), 1),
|
|
36525
|
+
Y("div", Dq, ue(h.role && h.$t(`SHELL.USER.ROLE.${h.role}`) || (I(r)?.isAdministrator ? h.$t("SHELL.USER.ROLE.ADMINISTRATOR") : "")), 1)
|
|
36527
36526
|
]),
|
|
36528
36527
|
!h.disabled && u.value && u.value.length ? (x(), B("div", Rq, [
|
|
36529
|
-
oe(
|
|
36528
|
+
oe(I(Ve), {
|
|
36530
36529
|
icon: "fas fa-chevron-down",
|
|
36531
36530
|
size: "xl"
|
|
36532
36531
|
})
|
|
@@ -36544,7 +36543,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36544
36543
|
}, ue(p.title), 9, $q))), 128))
|
|
36545
36544
|
])) : ie("", !0)
|
|
36546
36545
|
], 2)), [
|
|
36547
|
-
[
|
|
36546
|
+
[I(ui), f]
|
|
36548
36547
|
]);
|
|
36549
36548
|
}
|
|
36550
36549
|
}), Vl = Mq, jq = { class: "tw-flex flex-row tw-justify-between tw-grow tw-basis-0" }, Fq = { class: "tw-flex tw-items-center" }, Uq = { class: "tw-flex tw-shrink-0" }, Bq = { class: "tw-text-s tw-leading-[18px] tw-text-[#8e8e8e] tw-m-0" }, Vq = /* @__PURE__ */ Ae({
|
|
@@ -36563,7 +36562,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36563
36562
|
class: "tw-w-[41px] tw-h-[41px] tw-rounded-full tw-text-white tw-mr-4 tw-flex tw-items-center tw-justify-center tw-shrink-0",
|
|
36564
36563
|
style: Et({ "background-color": i.color })
|
|
36565
36564
|
}, [
|
|
36566
|
-
oe(
|
|
36565
|
+
oe(I(Ve), {
|
|
36567
36566
|
icon: i.icon,
|
|
36568
36567
|
size: "l"
|
|
36569
36568
|
}, null, 8, ["icon"])
|
|
@@ -36599,9 +36598,9 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36599
36598
|
return (a, l) => {
|
|
36600
36599
|
const u = $e("VcHint");
|
|
36601
36600
|
return x(), B("div", qq, [
|
|
36602
|
-
oe(
|
|
36601
|
+
oe(I(Qs), { class: "tw-justify-between tw-grow tw-basis-0" }, {
|
|
36603
36602
|
default: le(() => [
|
|
36604
|
-
o.value ? (x(), we(s, { key: 0 })) : (x(), we(
|
|
36603
|
+
o.value ? (x(), we(s, { key: 0 })) : (x(), we(I(Hq), {
|
|
36605
36604
|
key: 1,
|
|
36606
36605
|
color: i.value.color,
|
|
36607
36606
|
title: a.notification.title ?? "",
|
|
@@ -36656,7 +36655,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36656
36655
|
}
|
|
36657
36656
|
])
|
|
36658
36657
|
}, [
|
|
36659
|
-
oe(
|
|
36658
|
+
oe(I(Ve), {
|
|
36660
36659
|
icon: "fas fa-bell",
|
|
36661
36660
|
size: "xl"
|
|
36662
36661
|
}),
|
|
@@ -36679,40 +36678,40 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36679
36678
|
}])
|
|
36680
36679
|
}, [
|
|
36681
36680
|
u.$isMobile.value ? (x(), B("div", zq, [
|
|
36682
|
-
oe(
|
|
36681
|
+
oe(I(Ve), {
|
|
36683
36682
|
icon: "fas fa-times",
|
|
36684
36683
|
size: "xl",
|
|
36685
36684
|
onClick: c[0] || (c[0] = nt((f) => o.value = !1, ["stop"]))
|
|
36686
36685
|
})
|
|
36687
36686
|
])) : ie("", !0),
|
|
36688
|
-
oe(
|
|
36687
|
+
oe(I(mo), {
|
|
36689
36688
|
"no-padding": !0,
|
|
36690
36689
|
onClick: c[2] || (c[2] = nt(() => {
|
|
36691
36690
|
}, ["stop"]))
|
|
36692
36691
|
}, {
|
|
36693
36692
|
default: le(() => [
|
|
36694
|
-
|
|
36693
|
+
I(n) && I(n).length ? (x(), we(I(so), { key: 0 }, {
|
|
36695
36694
|
default: le(() => [
|
|
36696
|
-
(x(!0), B(je, null, ot(
|
|
36695
|
+
(x(!0), B(je, null, ot(I(n), (f) => (x(), B("div", {
|
|
36697
36696
|
key: `notification_${f.id}`,
|
|
36698
36697
|
class: "tw-py-[18px] tw-px-[15px] tw-border-b tw-border-solid tw-border-b-[#e3e7ec] tw-cursor-pointer last-of-type:tw-border-b-0"
|
|
36699
36698
|
}, [
|
|
36700
36699
|
oe(Gq, {
|
|
36701
36700
|
notification: f,
|
|
36702
|
-
templates:
|
|
36701
|
+
templates: I(e) || [],
|
|
36703
36702
|
onOnClick: c[1] || (c[1] = () => o.value = !1)
|
|
36704
36703
|
}, null, 8, ["notification", "templates"])
|
|
36705
36704
|
]))), 128))
|
|
36706
36705
|
]),
|
|
36707
36706
|
_: 1
|
|
36708
|
-
})) : (x(), B("div", Yq, ue(
|
|
36707
|
+
})) : (x(), B("div", Yq, ue(I(r)("COMPONENTS.NOTIFICATION_DROPDOWN.EMPTY")), 1))
|
|
36709
36708
|
]),
|
|
36710
36709
|
_: 1
|
|
36711
36710
|
})
|
|
36712
36711
|
], 2)) : ie("", !0)
|
|
36713
36712
|
], 8, Wq)), [
|
|
36714
36713
|
[
|
|
36715
|
-
|
|
36714
|
+
I(ui),
|
|
36716
36715
|
() => {
|
|
36717
36716
|
o.value = !1;
|
|
36718
36717
|
}
|
|
@@ -36832,7 +36831,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36832
36831
|
f({
|
|
36833
36832
|
blade: d("AssetsDetails"),
|
|
36834
36833
|
options: {
|
|
36835
|
-
asset:
|
|
36834
|
+
asset: I(C),
|
|
36836
36835
|
disabled: l.value,
|
|
36837
36836
|
assetEditHandler: (O) => {
|
|
36838
36837
|
if (r.options.assetsEditHandler && typeof r.options.assetsEditHandler == "function")
|
|
@@ -36876,7 +36875,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36876
36875
|
}), (C, O) => {
|
|
36877
36876
|
const E = $e("VcIcon"), N = $e("VcButton"), P = $e("VcImage"), D = $e("VcHint"), M = $e("VcTable"), G = $e("VcBlade"), Z = Ea("loading");
|
|
36878
36877
|
return x(), we(G, {
|
|
36879
|
-
title:
|
|
36878
|
+
title: I(n)("ASSETS_MANAGER.TITLE"),
|
|
36880
36879
|
expanded: C.expanded,
|
|
36881
36880
|
closable: C.closable,
|
|
36882
36881
|
"toolbar-items": h.value,
|
|
@@ -36910,15 +36909,15 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36910
36909
|
}, {
|
|
36911
36910
|
empty: le(() => [
|
|
36912
36911
|
Y("div", Kq, [
|
|
36913
|
-
l.value ? (x(), B("div", Xq, ue(
|
|
36912
|
+
l.value ? (x(), B("div", Xq, ue(I(n)("ASSETS_MANAGER.EMPTY.NO_ASSETS")), 1)) : (x(), B(je, { key: 0 }, [
|
|
36914
36913
|
oe(E, {
|
|
36915
36914
|
icon: "fas fa-cloud-upload-alt",
|
|
36916
36915
|
class: "tw-text-[100px] tw-text-[#41afe6]"
|
|
36917
36916
|
}),
|
|
36918
|
-
Y("div", Zq, ue(
|
|
36917
|
+
Y("div", Zq, ue(I(n)("ASSETS_MANAGER.EMPTY.UPLOAD_ASSETS")), 1),
|
|
36919
36918
|
oe(N, { onClick: w }, {
|
|
36920
36919
|
default: le(() => [
|
|
36921
|
-
Re(ue(
|
|
36920
|
+
Re(ue(I(n)("ASSETS_MANAGER.EMPTY.UPLOAD")), 1)
|
|
36922
36921
|
]),
|
|
36923
36922
|
_: 1
|
|
36924
36923
|
})
|
|
@@ -36926,11 +36925,11 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36926
36925
|
])
|
|
36927
36926
|
]),
|
|
36928
36927
|
item_size: le(({ item: de }) => [
|
|
36929
|
-
Y("div", null, ue(
|
|
36928
|
+
Y("div", null, ue(I(qd)(de.size ?? 0)), 1)
|
|
36930
36929
|
]),
|
|
36931
36930
|
item_url: le(({ item: de }) => [
|
|
36932
36931
|
Y("div", Qq, [
|
|
36933
|
-
|
|
36932
|
+
I(Vd)(de.name ?? "") ? (x(), we(P, {
|
|
36934
36933
|
key: 0,
|
|
36935
36934
|
bordered: !0,
|
|
36936
36935
|
size: "s",
|
|
@@ -36939,7 +36938,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36939
36938
|
background: "contain"
|
|
36940
36939
|
}, null, 8, ["src"])) : (x(), we(E, {
|
|
36941
36940
|
key: 1,
|
|
36942
|
-
icon:
|
|
36941
|
+
icon: I(Hd)(de.name ?? ""),
|
|
36943
36942
|
class: "tw-text-[#a9bfd2] tw-text-[38px]"
|
|
36944
36943
|
}, null, 8, ["icon"]))
|
|
36945
36944
|
])
|
|
@@ -36949,7 +36948,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36949
36948
|
]),
|
|
36950
36949
|
"mobile-item": le(({ item: de }) => [
|
|
36951
36950
|
Y("div", eG, [
|
|
36952
|
-
|
|
36951
|
+
I(Vd)(de.name ?? "") ? (x(), we(P, {
|
|
36953
36952
|
key: 0,
|
|
36954
36953
|
bordered: !0,
|
|
36955
36954
|
size: "s",
|
|
@@ -36958,7 +36957,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36958
36957
|
background: "contain"
|
|
36959
36958
|
}, null, 8, ["src"])) : (x(), B("div", tG, [
|
|
36960
36959
|
oe(E, {
|
|
36961
|
-
icon:
|
|
36960
|
+
icon: I(Hd)(de.name ?? ""),
|
|
36962
36961
|
class: "tw-text-[#a9bfd2] tw-w-12 tw-text-[48px]"
|
|
36963
36962
|
}, null, 8, ["icon"])
|
|
36964
36963
|
])),
|
|
@@ -36968,25 +36967,25 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
36968
36967
|
Y("div", oG, [
|
|
36969
36968
|
oe(D, null, {
|
|
36970
36969
|
default: le(() => [
|
|
36971
|
-
Re(ue(
|
|
36970
|
+
Re(ue(I(n)("ASSETS_MANAGER.TABLE.HEADER.SIZE")), 1)
|
|
36972
36971
|
]),
|
|
36973
36972
|
_: 1
|
|
36974
36973
|
}),
|
|
36975
|
-
Y("div", sG, ue(
|
|
36974
|
+
Y("div", sG, ue(I(qd)(de.size ?? 0)), 1)
|
|
36976
36975
|
]),
|
|
36977
36976
|
Y("div", aG, [
|
|
36978
36977
|
oe(D, null, {
|
|
36979
36978
|
default: le(() => [
|
|
36980
|
-
Re(ue(
|
|
36979
|
+
Re(ue(I(n)("ASSETS_MANAGER.TABLE.HEADER.CREATED_DATE")), 1)
|
|
36981
36980
|
]),
|
|
36982
36981
|
_: 1
|
|
36983
36982
|
}),
|
|
36984
|
-
Y("div", lG, ue(de.createdDate &&
|
|
36983
|
+
Y("div", lG, ue(de.createdDate && I(xe)(de.createdDate).fromNow()), 1)
|
|
36985
36984
|
]),
|
|
36986
36985
|
Y("div", uG, [
|
|
36987
36986
|
oe(D, null, {
|
|
36988
36987
|
default: le(() => [
|
|
36989
|
-
Re(ue(
|
|
36988
|
+
Re(ue(I(n)("ASSETS_MANAGER.TABLE.HEADER.SORT_ORDER")), 1)
|
|
36990
36989
|
]),
|
|
36991
36990
|
_: 1
|
|
36992
36991
|
}),
|
|
@@ -37205,7 +37204,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
37205
37204
|
const m = w.controls.reduce(
|
|
37206
37205
|
(_, A) => {
|
|
37207
37206
|
if (A.component === "vc-checkbox") {
|
|
37208
|
-
const S = A.data, T =
|
|
37207
|
+
const S = A.data, T = I(t.scope)?.[S] ?? [], C = h(T, A);
|
|
37209
37208
|
C && (_ = C);
|
|
37210
37209
|
}
|
|
37211
37210
|
return A.component === "vc-input" && (_[A.field] = b(A)), _;
|
|
@@ -37249,13 +37248,13 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
37249
37248
|
a.value = {
|
|
37250
37249
|
...i.value
|
|
37251
37250
|
}, w(), await e({
|
|
37252
|
-
...
|
|
37251
|
+
...I(t.query),
|
|
37253
37252
|
...i.value
|
|
37254
37253
|
});
|
|
37255
37254
|
}
|
|
37256
37255
|
async function v(w) {
|
|
37257
37256
|
w(), await g(), await e({
|
|
37258
|
-
...
|
|
37257
|
+
...I(t.query),
|
|
37259
37258
|
...i.value
|
|
37260
37259
|
});
|
|
37261
37260
|
}
|
|
@@ -37276,7 +37275,7 @@ const Sq = { class: "tw-flex tw-flex-col tw-flex-auto" }, Oq = { class: "tw-flex
|
|
|
37276
37275
|
Te(
|
|
37277
37276
|
"div",
|
|
37278
37277
|
{ class: "tw-mb-4 tw-text-[#a1c0d4] tw-font-bold tw-text-[17px]" },
|
|
37279
|
-
|
|
37278
|
+
I(re(() => o(m)))
|
|
37280
37279
|
),
|
|
37281
37280
|
Object.values(_).map((A) => {
|
|
37282
37281
|
if ("component" in A && A.component)
|
|
@@ -37487,7 +37486,7 @@ const gG = {
|
|
|
37487
37486
|
activeFilterCount: de,
|
|
37488
37487
|
isFilterVisible: J,
|
|
37489
37488
|
reset: U,
|
|
37490
|
-
filter:
|
|
37489
|
+
filter: L
|
|
37491
37490
|
} = vG({
|
|
37492
37491
|
data: G.tableData?.filter,
|
|
37493
37492
|
query: E,
|
|
@@ -37579,7 +37578,7 @@ const gG = {
|
|
|
37579
37578
|
item: q
|
|
37580
37579
|
}));
|
|
37581
37580
|
}, j = (q) => {
|
|
37582
|
-
const fe =
|
|
37581
|
+
const fe = I(q).map((ye) => ye.id).filter((ye) => ye !== null);
|
|
37583
37582
|
b.value = fe;
|
|
37584
37583
|
};
|
|
37585
37584
|
async function X() {
|
|
@@ -37639,7 +37638,7 @@ const gG = {
|
|
|
37639
37638
|
async function ae() {
|
|
37640
37639
|
f.value = "", await U(), await A({
|
|
37641
37640
|
...E.value,
|
|
37642
|
-
...
|
|
37641
|
+
...L,
|
|
37643
37642
|
keyword: ""
|
|
37644
37643
|
});
|
|
37645
37644
|
}
|
|
@@ -37693,7 +37692,7 @@ const gG = {
|
|
|
37693
37692
|
expanded: q.expanded,
|
|
37694
37693
|
closable: q.closable,
|
|
37695
37694
|
width: l.value?.width || "50%",
|
|
37696
|
-
"toolbar-items":
|
|
37695
|
+
"toolbar-items": I(H),
|
|
37697
37696
|
title: u.value,
|
|
37698
37697
|
class: De({
|
|
37699
37698
|
"tw-flex tw-flex-auto": q.isWidgetView
|
|
@@ -37705,65 +37704,65 @@ const gG = {
|
|
|
37705
37704
|
default: le(() => [
|
|
37706
37705
|
q.isWidgetView && q.$isMobile.value ? Le(q.$slots, "widget-mobile", {
|
|
37707
37706
|
key: 0,
|
|
37708
|
-
totalCount:
|
|
37709
|
-
loading:
|
|
37707
|
+
totalCount: I(O).totalCount,
|
|
37708
|
+
loading: I(C)
|
|
37710
37709
|
}, () => [
|
|
37711
|
-
Re(ue(
|
|
37710
|
+
Re(ue(I(O).totalCount), 1)
|
|
37712
37711
|
]) : (x(), B(je, { key: 1 }, [
|
|
37713
|
-
!q.isWidgetView &&
|
|
37712
|
+
!q.isWidgetView && I(N)?.breadcrumbs ? (x(), B("div", {
|
|
37714
37713
|
key: 0,
|
|
37715
37714
|
class: De([
|
|
37716
37715
|
{
|
|
37717
|
-
"-tw-mb-4":
|
|
37716
|
+
"-tw-mb-4": I(w)?.header
|
|
37718
37717
|
},
|
|
37719
37718
|
"tw-p-4"
|
|
37720
37719
|
])
|
|
37721
37720
|
}, [
|
|
37722
37721
|
oe(ye, {
|
|
37723
|
-
items:
|
|
37722
|
+
items: I(N)?.breadcrumbs
|
|
37724
37723
|
}, null, 8, ["items"])
|
|
37725
37724
|
], 2)) : ie("", !0),
|
|
37726
37725
|
oe(ge, {
|
|
37727
37726
|
class: "tw-grow tw-basis-0",
|
|
37728
|
-
loading:
|
|
37727
|
+
loading: I(C),
|
|
37729
37728
|
expanded: q.expanded,
|
|
37730
|
-
columns:
|
|
37731
|
-
"state-key":
|
|
37729
|
+
columns: I(m) ?? [],
|
|
37730
|
+
"state-key": I(_) ?? "",
|
|
37732
37731
|
items: p.value,
|
|
37733
|
-
multiselect: q.isWidgetView ? !1 :
|
|
37734
|
-
header: q.isWidgetView ? !1 :
|
|
37732
|
+
multiselect: q.isWidgetView ? !1 : I(w)?.multiselect,
|
|
37733
|
+
header: q.isWidgetView ? !1 : I(w)?.header,
|
|
37735
37734
|
"item-action-builder": Pe,
|
|
37736
|
-
"enable-item-actions": !!
|
|
37735
|
+
"enable-item-actions": !!I(w)?.actions && !q.isWidgetView,
|
|
37737
37736
|
footer: !q.isWidgetView,
|
|
37738
37737
|
sort: h.value,
|
|
37739
|
-
pages:
|
|
37740
|
-
"current-page":
|
|
37738
|
+
pages: I(O)?.pages,
|
|
37739
|
+
"current-page": I(O)?.currentPage,
|
|
37741
37740
|
"search-value": f.value,
|
|
37742
37741
|
"selected-item-id": d.value,
|
|
37743
37742
|
"total-label": q.$t(`${l.value?.localizationPrefix.trim().toUpperCase()}.PAGES.LIST.TABLE.TOTALS`),
|
|
37744
|
-
"total-count":
|
|
37745
|
-
"active-filter-count":
|
|
37746
|
-
"reorderable-rows": q.isWidgetView ? !1 :
|
|
37743
|
+
"total-count": I(O)?.totalCount,
|
|
37744
|
+
"active-filter-count": I(de),
|
|
37745
|
+
"reorderable-rows": q.isWidgetView ? !1 : I(w)?.reorderableRows,
|
|
37747
37746
|
"pull-to-reload": !q.isWidgetView,
|
|
37748
|
-
"select-all":
|
|
37747
|
+
"select-all": I(w)?.selectAll,
|
|
37749
37748
|
onItemClick: W,
|
|
37750
37749
|
onPaginationClick: ce,
|
|
37751
37750
|
onSelectionChanged: j,
|
|
37752
37751
|
onHeaderClick: me,
|
|
37753
|
-
"onLoad:change":
|
|
37752
|
+
"onLoad:change": I(ke),
|
|
37754
37753
|
"onScroll:ptr": se,
|
|
37755
|
-
"onSearch:change":
|
|
37754
|
+
"onSearch:change": I(ke),
|
|
37756
37755
|
"onRow:reorder": V,
|
|
37757
37756
|
"onSelect:all": ee
|
|
37758
37757
|
}, xr({
|
|
37759
37758
|
notfound: le(() => [
|
|
37760
|
-
|
|
37759
|
+
I(P)?.notFound ? (x(), we(Kn(I(P).notFound), {
|
|
37761
37760
|
key: 0,
|
|
37762
37761
|
context: F.value,
|
|
37763
37762
|
onReset: ae
|
|
37764
37763
|
}, null, 40, ["context"])) : (x(), B("div", gG, [
|
|
37765
37764
|
Y("div", yG, ue(q.$t(`${l.value?.localizationPrefix.trim().toUpperCase()}.PAGES.LIST.NOT_FOUND.EMPTY`)), 1),
|
|
37766
|
-
|
|
37765
|
+
I(J) ? (x(), we(Se, {
|
|
37767
37766
|
key: 0,
|
|
37768
37767
|
onClick: ae
|
|
37769
37768
|
}, {
|
|
@@ -37775,7 +37774,7 @@ const gG = {
|
|
|
37775
37774
|
]))
|
|
37776
37775
|
]),
|
|
37777
37776
|
empty: le(() => [
|
|
37778
|
-
|
|
37777
|
+
I(P)?.empty ? (x(), we(Kn(I(P).empty), {
|
|
37779
37778
|
key: 0,
|
|
37780
37779
|
class: De({
|
|
37781
37780
|
"tw-py-6": q.isWidgetView
|
|
@@ -37788,23 +37787,23 @@ const gG = {
|
|
|
37788
37787
|
]),
|
|
37789
37788
|
_: 2
|
|
37790
37789
|
}, [
|
|
37791
|
-
|
|
37790
|
+
I(J) ? {
|
|
37792
37791
|
name: "filters",
|
|
37793
37792
|
fn: le(({ closePanel: Fe }) => [
|
|
37794
|
-
oe(
|
|
37793
|
+
oe(I(Z), { close: Fe }, null, 8, ["close"])
|
|
37795
37794
|
]),
|
|
37796
37795
|
key: "0"
|
|
37797
37796
|
} : void 0,
|
|
37798
|
-
ot(
|
|
37797
|
+
ot(I(P)?.templateOverrideComponents, (Fe, He, Ce) => ({
|
|
37799
37798
|
name: `item_${He}`,
|
|
37800
37799
|
fn: le((he) => [
|
|
37801
37800
|
(x(), we(Kn(Fe), { context: he }, null, 8, ["context"]))
|
|
37802
37801
|
])
|
|
37803
37802
|
})),
|
|
37804
|
-
|
|
37803
|
+
I(P)?.mobileView ? {
|
|
37805
37804
|
name: "mobile-item",
|
|
37806
37805
|
fn: le((Fe) => [
|
|
37807
|
-
(x(), we(Kn(
|
|
37806
|
+
(x(), we(Kn(I(P).mobileView), { context: Fe }, null, 8, ["context"]))
|
|
37808
37807
|
]),
|
|
37809
37808
|
key: "1"
|
|
37810
37809
|
} : void 0
|
|
@@ -37857,7 +37856,7 @@ const gG = {
|
|
|
37857
37856
|
props: EG,
|
|
37858
37857
|
setup(t) {
|
|
37859
37858
|
const e = TE(), r = re(
|
|
37860
|
-
() =>
|
|
37859
|
+
() => I(t.props)?.multilanguage ? `${String(t.props?.key)}_${I(t.props?.currentLanguage)}` : String(t.props?.key)
|
|
37861
37860
|
), n = Mw((i) => t.props?.multilanguage ? i + "_" + t.props.currentLanguage : i);
|
|
37862
37861
|
return () => Te(
|
|
37863
37862
|
jr,
|
|
@@ -37886,7 +37885,7 @@ const gG = {
|
|
|
37886
37885
|
function tt(t) {
|
|
37887
37886
|
const e = {};
|
|
37888
37887
|
return t && (Object.keys(t).forEach((r) => {
|
|
37889
|
-
e[r] =
|
|
37888
|
+
e[r] = I(t[r]);
|
|
37890
37889
|
}), e);
|
|
37891
37890
|
}
|
|
37892
37891
|
const SG = {
|
|
@@ -38138,7 +38137,7 @@ const kG = {
|
|
|
38138
38137
|
option: At(Ks(t.element.optionProperty, t.fieldContext ?? {})),
|
|
38139
38138
|
optionLabel: t.element.optionLabel,
|
|
38140
38139
|
optionValue: t.element.optionValue,
|
|
38141
|
-
options:
|
|
38140
|
+
options: I(t.bladeContext.scope)?.currencies,
|
|
38142
38141
|
"onUpdate:option": (n) => {
|
|
38143
38142
|
Nc({
|
|
38144
38143
|
value: n,
|
|
@@ -38191,7 +38190,7 @@ const CG = {
|
|
|
38191
38190
|
}
|
|
38192
38191
|
),
|
|
38193
38192
|
slots: {
|
|
38194
|
-
default: () =>
|
|
38193
|
+
default: () => I(re(() => e(nE(t.element.content, At(t.fieldContext)))))
|
|
38195
38194
|
}
|
|
38196
38195
|
}), n = Te(r.component, r.props, r.slots);
|
|
38197
38196
|
return r.props.rules ? Te(
|
|
@@ -38283,7 +38282,7 @@ const CG = {
|
|
|
38283
38282
|
{},
|
|
38284
38283
|
{
|
|
38285
38284
|
currentLanguage: t.currentLocale,
|
|
38286
|
-
assetsFolder:
|
|
38285
|
+
assetsFolder: I(t.formData).id || I(t.formData).categoryId
|
|
38287
38286
|
},
|
|
38288
38287
|
tt(t.baseProps),
|
|
38289
38288
|
{
|
|
@@ -38412,7 +38411,7 @@ const CG = {
|
|
|
38412
38411
|
iconSize: t.element?.iconSize,
|
|
38413
38412
|
text: t.element?.text,
|
|
38414
38413
|
onClick: () => {
|
|
38415
|
-
|
|
38414
|
+
I(t.bladeContext.scope)?.[t.element.method]();
|
|
38416
38415
|
}
|
|
38417
38416
|
},
|
|
38418
38417
|
tt(t.baseProps),
|
|
@@ -38421,7 +38420,7 @@ const CG = {
|
|
|
38421
38420
|
}
|
|
38422
38421
|
),
|
|
38423
38422
|
slots: {
|
|
38424
|
-
default: () =>
|
|
38423
|
+
default: () => I(re(() => e(t.element.content)))
|
|
38425
38424
|
}
|
|
38426
38425
|
});
|
|
38427
38426
|
return Te(r.component, r.props, r.slots);
|
|
@@ -38437,7 +38436,7 @@ const CG = {
|
|
|
38437
38436
|
if (t.element.content && typeof t.element.content == "string")
|
|
38438
38437
|
return t.element.content;
|
|
38439
38438
|
if (t.element.content?.method) {
|
|
38440
|
-
const i =
|
|
38439
|
+
const i = I(t.bladeContext.scope)?.[t.element.content?.method];
|
|
38441
38440
|
return i === "function" ? i() : i;
|
|
38442
38441
|
}
|
|
38443
38442
|
return null;
|
|
@@ -38654,7 +38653,7 @@ const CG = {
|
|
|
38654
38653
|
),
|
|
38655
38654
|
slots: {
|
|
38656
38655
|
...Object.entries(e.templateOverrideComponents).reduce(
|
|
38657
|
-
(i, [o, s], a) => (i[`item_${o}`] = (l) => Te(
|
|
38656
|
+
(i, [o, s], a) => (i[`item_${o}`] = (l) => Te(I(s), { context: l, key: `template_override_${t.element.id}_${a}` }), i),
|
|
38658
38657
|
{}
|
|
38659
38658
|
),
|
|
38660
38659
|
notfound: e?.notFound ? (i) => Te(e.notFound, { context: i }) : () => {
|
|
@@ -38744,7 +38743,7 @@ function ya({
|
|
|
38744
38743
|
}) {
|
|
38745
38744
|
if (!t)
|
|
38746
38745
|
throw new Error("There is no controlSchema provided");
|
|
38747
|
-
const { t: a } = Dt.global, l = t.id, u = xt("rules", t) && t.rules || void 0, c = xt("placeholder", t) && t.placeholder || void 0, f = xt("rules", t) && t.rules?.required, d = xt("property", t) && t.property && Ks(t.property, r), b = (xt("property", t) && t.property && n.scope && n.scope[t.property]) ?? d ?? void 0, p = xt("tooltip", t) && t.tooltip || void 0, v = xt("multilanguage", t) && t.multilanguage, y = xt("label", t) && t.label ?
|
|
38746
|
+
const { t: a } = Dt.global, l = t.id, u = xt("rules", t) && t.rules || void 0, c = xt("placeholder", t) && t.placeholder || void 0, f = xt("rules", t) && t.rules?.required, d = xt("property", t) && t.property && Ks(t.property, r), b = (xt("property", t) && t.property && n.scope && n.scope[t.property]) ?? d ?? void 0, p = xt("tooltip", t) && t.tooltip || void 0, v = xt("multilanguage", t) && t.multilanguage, y = xt("label", t) && t.label ? I(nE(t.label, r)) : void 0, g = n.scope && xt("disabled", n.scope) && n.scope.disabled || xt("disabled", t) && t.disabled && GG(t.disabled, n), w = async (T) => {
|
|
38748
38747
|
if (xt("property", t) && t.property && (Nc({
|
|
38749
38748
|
property: t.property,
|
|
38750
38749
|
value: T,
|
|
@@ -38800,7 +38799,7 @@ function ya({
|
|
|
38800
38799
|
baseProps: Qx(m),
|
|
38801
38800
|
bladeContext: n,
|
|
38802
38801
|
element: t,
|
|
38803
|
-
currentLocale:
|
|
38802
|
+
currentLocale: I(i),
|
|
38804
38803
|
fields: A,
|
|
38805
38804
|
formData: o,
|
|
38806
38805
|
fieldContext: r
|
|
@@ -38908,7 +38907,7 @@ const WG = {
|
|
|
38908
38907
|
);
|
|
38909
38908
|
const S = re(() => {
|
|
38910
38909
|
const J = qa(Be(f)?.toolbarOverrides, "saveChanges");
|
|
38911
|
-
return J && "disabled" in J && J.disabled !== void 0 && !
|
|
38910
|
+
return J && "disabled" in J && J.disabled !== void 0 && !I(J.disabled) || c.value.modified;
|
|
38912
38911
|
});
|
|
38913
38912
|
LU(S);
|
|
38914
38913
|
const T = re(
|
|
@@ -38986,7 +38985,7 @@ const WG = {
|
|
|
38986
38985
|
const U = typeof J == "string" ? $e(J) : J;
|
|
38987
38986
|
await Vt(
|
|
38988
38987
|
() => w.value = a.value.find(
|
|
38989
|
-
(
|
|
38988
|
+
(L) => br(L.component, typeof U != "string" ? U : $e(U))
|
|
38990
38989
|
)?.el
|
|
38991
38990
|
);
|
|
38992
38991
|
}
|
|
@@ -39001,9 +39000,9 @@ const WG = {
|
|
|
39001
39000
|
return _a(async () => {
|
|
39002
39001
|
n.composables && await de();
|
|
39003
39002
|
}), v(async () => {
|
|
39004
|
-
if (
|
|
39003
|
+
if (I(S))
|
|
39005
39004
|
return await s(
|
|
39006
|
-
|
|
39005
|
+
I(
|
|
39007
39006
|
re(() => o(`${m.value?.localizationPrefix.trim().toUpperCase()}.PAGES.ALERTS.CLOSE_CONFIRMATION`))
|
|
39008
39007
|
)
|
|
39009
39008
|
);
|
|
@@ -39012,13 +39011,13 @@ const WG = {
|
|
|
39012
39011
|
updateActiveWidgetCount: Z,
|
|
39013
39012
|
...Cn(f?.value ?? {})
|
|
39014
39013
|
}), (J, U) => {
|
|
39015
|
-
const
|
|
39014
|
+
const L = $e("VcForm"), F = $e("VcContainer"), H = $e("VcBlade"), ne = Ea("loading");
|
|
39016
39015
|
return J.composables ? ie("", !0) : Ht((x(), we(H, {
|
|
39017
39016
|
key: 0,
|
|
39018
39017
|
expanded: J.expanded,
|
|
39019
39018
|
closable: J.closable,
|
|
39020
39019
|
width: m.value?.width || "50%",
|
|
39021
|
-
"toolbar-items":
|
|
39020
|
+
"toolbar-items": I(M),
|
|
39022
39021
|
title: y.value,
|
|
39023
39022
|
onClose: U[2] || (U[2] = (W) => J.$emit("close:blade")),
|
|
39024
39023
|
onExpand: U[3] || (U[3] = (W) => J.$emit("expand:blade")),
|
|
@@ -39027,16 +39026,16 @@ const WG = {
|
|
|
39027
39026
|
default: le(() => [
|
|
39028
39027
|
oe(F, { "no-padding": !0 }, {
|
|
39029
39028
|
default: le(() => [
|
|
39030
|
-
g.value &&
|
|
39029
|
+
g.value && I(u) && Object.keys(I(u)) ? (x(), B("div", JG, [
|
|
39031
39030
|
Y("div", KG, [
|
|
39032
|
-
oe(
|
|
39031
|
+
oe(L, { class: "tw-grow tw-p-4" }, {
|
|
39033
39032
|
default: le(() => [
|
|
39034
|
-
oe(
|
|
39035
|
-
modelValue:
|
|
39033
|
+
oe(I(zG), {
|
|
39034
|
+
modelValue: I(u),
|
|
39036
39035
|
"onUpdate:modelValue": U[0] || (U[0] = (W) => Zi(u) ? u.value = W : null),
|
|
39037
39036
|
"ui-schema": T.value.children,
|
|
39038
39037
|
context: O.value,
|
|
39039
|
-
"current-locale":
|
|
39038
|
+
"current-locale": I(f)?.multilanguage?.currentLocale
|
|
39040
39039
|
}, null, 8, ["modelValue", "ui-schema", "context", "current-locale"])
|
|
39041
39040
|
]),
|
|
39042
39041
|
_: 1
|
|
@@ -39046,7 +39045,7 @@ const WG = {
|
|
|
39046
39045
|
(x(!0), B(je, null, ot(P.value, (W, j) => (x(), B("div", { key: j }, [
|
|
39047
39046
|
(x(), we(Kn(W), {
|
|
39048
39047
|
ref_for: !0,
|
|
39049
|
-
ref: (X) =>
|
|
39048
|
+
ref: (X) => I(a).set({ component: W, el: X }),
|
|
39050
39049
|
modelValue: O.value,
|
|
39051
39050
|
"onUpdate:modelValue": U[1] || (U[1] = (X) => O.value = X),
|
|
39052
39051
|
onClick: (X) => G(W)
|
|
@@ -39072,7 +39071,7 @@ const WG = {
|
|
|
39072
39071
|
key: "0"
|
|
39073
39072
|
} : void 0
|
|
39074
39073
|
]), 1032, ["expanded", "closable", "width", "toolbar-items", "title"])), [
|
|
39075
|
-
[ne,
|
|
39074
|
+
[ne, I(l)]
|
|
39076
39075
|
]);
|
|
39077
39076
|
};
|
|
39078
39077
|
}
|
|
@@ -39349,27 +39348,27 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39349
39348
|
return (p, v) => {
|
|
39350
39349
|
const y = $e("VcLoading"), g = $e("VcInput"), w = $e("vc-button"), m = $e("VcHint"), _ = $e("VcForm"), A = $e("VcLoginForm");
|
|
39351
39350
|
return x(), B("div", _W, [
|
|
39352
|
-
|
|
39351
|
+
I(s) ? (x(), we(y, {
|
|
39353
39352
|
key: 0,
|
|
39354
39353
|
active: ""
|
|
39355
39354
|
})) : ie("", !0),
|
|
39356
39355
|
oe(A, {
|
|
39357
39356
|
logo: "/assets/logo-white.svg",
|
|
39358
39357
|
background: "/assets/background.jpg",
|
|
39359
|
-
title:
|
|
39358
|
+
title: I(l)("INVITATION.TITLE")
|
|
39360
39359
|
}, {
|
|
39361
39360
|
default: le(() => [
|
|
39362
39361
|
oe(_, null, {
|
|
39363
39362
|
default: le(() => [
|
|
39364
39363
|
oe(g, {
|
|
39365
39364
|
class: "tw-mb-4 tw-mt-1",
|
|
39366
|
-
label:
|
|
39365
|
+
label: I(l)("INVITATION.FIELDS.EMAIL.LABEL"),
|
|
39367
39366
|
"model-value": p.userName,
|
|
39368
39367
|
name: "username",
|
|
39369
39368
|
disabled: ""
|
|
39370
39369
|
}, null, 8, ["label", "model-value"]),
|
|
39371
|
-
oe(
|
|
39372
|
-
label:
|
|
39370
|
+
oe(I(jr), {
|
|
39371
|
+
label: I(l)("INVITATION.FIELDS.PASSWORD.LABEL"),
|
|
39373
39372
|
"model-value": f.password,
|
|
39374
39373
|
rules: "required",
|
|
39375
39374
|
name: "password"
|
|
@@ -39385,8 +39384,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39385
39384
|
}
|
|
39386
39385
|
],
|
|
39387
39386
|
class: "tw-mb-4 tw-mt-1",
|
|
39388
|
-
label:
|
|
39389
|
-
placeholder:
|
|
39387
|
+
label: I(l)("INVITATION.FIELDS.PASSWORD.LABEL"),
|
|
39388
|
+
placeholder: I(l)("INVITATION.FIELDS.PASSWORD.PLACEHOLDER"),
|
|
39390
39389
|
type: "password",
|
|
39391
39390
|
disabled: !f.tokenIsValid,
|
|
39392
39391
|
error: !!O.length,
|
|
@@ -39396,8 +39395,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39396
39395
|
]),
|
|
39397
39396
|
_: 1
|
|
39398
39397
|
}, 8, ["label", "model-value"]),
|
|
39399
|
-
oe(
|
|
39400
|
-
label:
|
|
39398
|
+
oe(I(jr), {
|
|
39399
|
+
label: I(l)("INVITATION.FIELDS.CONFIRM_PASSWORD.LABEL"),
|
|
39401
39400
|
"model-value": f.confirmPassword,
|
|
39402
39401
|
rules: "required",
|
|
39403
39402
|
name: "confirm_password"
|
|
@@ -39413,8 +39412,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39413
39412
|
}
|
|
39414
39413
|
],
|
|
39415
39414
|
class: "tw-mb-4",
|
|
39416
|
-
label:
|
|
39417
|
-
placeholder:
|
|
39415
|
+
label: I(l)("INVITATION.FIELDS.CONFIRM_PASSWORD.LABEL"),
|
|
39416
|
+
placeholder: I(l)("INVITATION.FIELDS.CONFIRM_PASSWORD.PLACEHOLDER"),
|
|
39418
39417
|
disabled: !f.tokenIsValid,
|
|
39419
39418
|
type: "password",
|
|
39420
39419
|
error: !!O.length,
|
|
@@ -39428,11 +39427,11 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39428
39427
|
Y("div", EW, [
|
|
39429
39428
|
p.$isDesktop.value ? (x(), B("span", SW)) : ie("", !0),
|
|
39430
39429
|
oe(w, {
|
|
39431
|
-
disabled:
|
|
39430
|
+
disabled: I(s) || !f.isValid || !f.tokenIsValid,
|
|
39432
39431
|
onClick: b
|
|
39433
39432
|
}, {
|
|
39434
39433
|
default: le(() => [
|
|
39435
|
-
Re(ue(
|
|
39434
|
+
Re(ue(I(l)("INVITATION.ACCEPT_INVITATION")), 1)
|
|
39436
39435
|
]),
|
|
39437
39436
|
_: 1
|
|
39438
39437
|
}, 8, ["disabled"])
|
|
@@ -39443,7 +39442,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39443
39442
|
style: { color: "#f14e4e" }
|
|
39444
39443
|
}, {
|
|
39445
39444
|
default: le(() => [
|
|
39446
|
-
Re(ue(
|
|
39445
|
+
Re(ue(I(l)(`INVITATION.ERRORS.${S}`)), 1)
|
|
39447
39446
|
]),
|
|
39448
39447
|
_: 2
|
|
39449
39448
|
}, 1024))), 128))
|
|
@@ -39513,7 +39512,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39513
39512
|
await v(Z, window.location.pathname);
|
|
39514
39513
|
};
|
|
39515
39514
|
return console.debug("Init login-page"), (Z, de) => {
|
|
39516
|
-
const J = $e("VcInput"), U = $e("VcButton"),
|
|
39515
|
+
const J = $e("VcInput"), U = $e("VcButton"), L = $e("vc-button"), F = $e("VcForm"), H = $e("VcHint"), ne = $e("VcLoginForm");
|
|
39517
39516
|
return x(), we(ne, {
|
|
39518
39517
|
logo: C.value.logo,
|
|
39519
39518
|
background: Z.background,
|
|
@@ -39525,8 +39524,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39525
39524
|
onSubmit: nt(P, ["prevent"])
|
|
39526
39525
|
}, {
|
|
39527
39526
|
default: le(() => [
|
|
39528
|
-
oe(
|
|
39529
|
-
label:
|
|
39527
|
+
oe(I(jr), {
|
|
39528
|
+
label: I(u)("LOGIN.FIELDS.LOGIN.LABEL"),
|
|
39530
39529
|
name: "username",
|
|
39531
39530
|
"model-value": E.username,
|
|
39532
39531
|
rules: "required"
|
|
@@ -39540,8 +39539,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39540
39539
|
j
|
|
39541
39540
|
],
|
|
39542
39541
|
class: "tw-mb-4 tw-mt-1",
|
|
39543
|
-
label:
|
|
39544
|
-
placeholder:
|
|
39542
|
+
label: I(u)("LOGIN.FIELDS.LOGIN.LABEL"),
|
|
39543
|
+
placeholder: I(u)("LOGIN.FIELDS.LOGIN.PLACEHOLDER"),
|
|
39545
39544
|
required: "",
|
|
39546
39545
|
error: !!X.length,
|
|
39547
39546
|
"error-message": W
|
|
@@ -39549,8 +39548,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39549
39548
|
]),
|
|
39550
39549
|
_: 1
|
|
39551
39550
|
}, 8, ["label", "model-value"]),
|
|
39552
|
-
oe(
|
|
39553
|
-
label:
|
|
39551
|
+
oe(I(jr), {
|
|
39552
|
+
label: I(u)("LOGIN.FIELDS.PASSWORD.LABEL"),
|
|
39554
39553
|
name: "password",
|
|
39555
39554
|
"model-value": E.password,
|
|
39556
39555
|
rules: "required"
|
|
@@ -39564,8 +39563,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39564
39563
|
j
|
|
39565
39564
|
],
|
|
39566
39565
|
class: "tw-mb-4",
|
|
39567
|
-
label:
|
|
39568
|
-
placeholder:
|
|
39566
|
+
label: I(u)("LOGIN.FIELDS.PASSWORD.LABEL"),
|
|
39567
|
+
placeholder: I(u)("LOGIN.FIELDS.PASSWORD.PLACEHOLDER"),
|
|
39569
39568
|
type: "password",
|
|
39570
39569
|
required: "",
|
|
39571
39570
|
error: !!X.length,
|
|
@@ -39575,26 +39574,26 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39575
39574
|
]),
|
|
39576
39575
|
_: 1
|
|
39577
39576
|
}, 8, ["label", "model-value"]),
|
|
39578
|
-
|
|
39577
|
+
I(S) ? (x(), B("div", kW, [
|
|
39579
39578
|
oe(U, {
|
|
39580
39579
|
text: "",
|
|
39581
39580
|
type: "button",
|
|
39582
39581
|
onClick: M
|
|
39583
39582
|
}, {
|
|
39584
39583
|
default: le(() => [
|
|
39585
|
-
Re(ue(
|
|
39584
|
+
Re(ue(I(u)("LOGIN.FORGOT_PASSWORD_BUTTON")), 1)
|
|
39586
39585
|
]),
|
|
39587
39586
|
_: 1
|
|
39588
39587
|
})
|
|
39589
39588
|
])) : ie("", !0),
|
|
39590
39589
|
Y("div", CW, [
|
|
39591
|
-
oe(
|
|
39592
|
-
disabled:
|
|
39590
|
+
oe(L, {
|
|
39591
|
+
disabled: I(p) || !I(w),
|
|
39593
39592
|
class: "tw-w-28",
|
|
39594
39593
|
onClick: P
|
|
39595
39594
|
}, {
|
|
39596
39595
|
default: le(() => [
|
|
39597
|
-
Re(ue(
|
|
39596
|
+
Re(ue(I(u)("LOGIN.BUTTON")), 1)
|
|
39598
39597
|
]),
|
|
39599
39598
|
_: 1
|
|
39600
39599
|
}, 8, ["disabled"])
|
|
@@ -39630,8 +39629,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39630
39629
|
onSubmit: nt(D, ["prevent"])
|
|
39631
39630
|
}, {
|
|
39632
39631
|
default: le(() => [
|
|
39633
|
-
oe(
|
|
39634
|
-
label:
|
|
39632
|
+
oe(I(jr), {
|
|
39633
|
+
label: I(u)("LOGIN.FIELDS.FORGOT_PASSWORD.LABEL"),
|
|
39635
39634
|
name: "loginOrEmail",
|
|
39636
39635
|
"model-value": N.loginOrEmail,
|
|
39637
39636
|
rules: "required|email"
|
|
@@ -39645,9 +39644,9 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39645
39644
|
X
|
|
39646
39645
|
],
|
|
39647
39646
|
class: "tw-mb-4 tw-mt-1",
|
|
39648
|
-
label:
|
|
39649
|
-
placeholder:
|
|
39650
|
-
hint:
|
|
39647
|
+
label: I(u)("LOGIN.FIELDS.FORGOT_PASSWORD.LABEL"),
|
|
39648
|
+
placeholder: I(u)("LOGIN.FIELDS.FORGOT_PASSWORD.PLACEHOLDER"),
|
|
39649
|
+
hint: I(u)("LOGIN.RESET_EMAIL_TEXT"),
|
|
39651
39650
|
required: "",
|
|
39652
39651
|
error: !!se.length,
|
|
39653
39652
|
"error-message": j
|
|
@@ -39656,22 +39655,22 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39656
39655
|
_: 1
|
|
39657
39656
|
}, 8, ["label", "model-value"]),
|
|
39658
39657
|
Y("div", RW, [
|
|
39659
|
-
oe(
|
|
39658
|
+
oe(L, {
|
|
39660
39659
|
text: "",
|
|
39661
39660
|
type: "button",
|
|
39662
39661
|
onClick: M
|
|
39663
39662
|
}, {
|
|
39664
39663
|
default: le(() => [
|
|
39665
|
-
Re(ue(
|
|
39664
|
+
Re(ue(I(u)("LOGIN.BACK_BUTTON")), 1)
|
|
39666
39665
|
]),
|
|
39667
39666
|
_: 1
|
|
39668
39667
|
}),
|
|
39669
|
-
oe(
|
|
39670
|
-
disabled:
|
|
39668
|
+
oe(L, {
|
|
39669
|
+
disabled: I(p) || O.value || _.value,
|
|
39671
39670
|
onClick: D
|
|
39672
39671
|
}, {
|
|
39673
39672
|
default: le(() => [
|
|
39674
|
-
Re(ue(
|
|
39673
|
+
Re(ue(I(u)("LOGIN.FORGOT_BUTTON")), 1)
|
|
39675
39674
|
]),
|
|
39676
39675
|
_: 1
|
|
39677
39676
|
}, 8, ["disabled"])
|
|
@@ -39680,15 +39679,15 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39680
39679
|
_: 1
|
|
39681
39680
|
})),
|
|
39682
39681
|
d.value.succeeded && h.value ? (x(), B(je, { key: 1 }, [
|
|
39683
|
-
Y("div", null, ue(
|
|
39682
|
+
Y("div", null, ue(I(u)("LOGIN.RESET_EMAIL_SENT")), 1),
|
|
39684
39683
|
Y("div", $W, [
|
|
39685
39684
|
Z.$isDesktop.value ? (x(), B("span", MW)) : ie("", !0),
|
|
39686
|
-
oe(
|
|
39687
|
-
disabled:
|
|
39685
|
+
oe(L, {
|
|
39686
|
+
disabled: I(p),
|
|
39688
39687
|
onClick: M
|
|
39689
39688
|
}, {
|
|
39690
39689
|
default: le(() => [
|
|
39691
|
-
Re(ue(
|
|
39690
|
+
Re(ue(I(u)("LOGIN.BUTTON_OK")), 1)
|
|
39692
39691
|
]),
|
|
39693
39692
|
_: 1
|
|
39694
39693
|
}, 8, ["disabled"])
|
|
@@ -39763,20 +39762,20 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39763
39762
|
return (b, p) => {
|
|
39764
39763
|
const v = $e("VcLoading"), y = $e("VcInput"), g = $e("vc-button"), w = $e("VcHint"), m = $e("VcForm"), _ = $e("VcLoginForm");
|
|
39765
39764
|
return x(), B("div", BW, [
|
|
39766
|
-
|
|
39765
|
+
I(s) ? (x(), we(v, {
|
|
39767
39766
|
key: 0,
|
|
39768
39767
|
active: ""
|
|
39769
39768
|
})) : ie("", !0),
|
|
39770
39769
|
oe(_, {
|
|
39771
39770
|
logo: "/assets/logo-white.svg",
|
|
39772
39771
|
background: "/assets/background.jpg",
|
|
39773
|
-
title:
|
|
39772
|
+
title: I(l)("PASSWORDRESET.TITLE")
|
|
39774
39773
|
}, {
|
|
39775
39774
|
default: le(() => [
|
|
39776
39775
|
oe(m, null, {
|
|
39777
39776
|
default: le(() => [
|
|
39778
|
-
oe(
|
|
39779
|
-
label:
|
|
39777
|
+
oe(I(jr), {
|
|
39778
|
+
label: I(l)("PASSWORDRESET.FIELDS.PASSWORD.LABEL"),
|
|
39780
39779
|
name: "password",
|
|
39781
39780
|
"model-value": c.password,
|
|
39782
39781
|
rules: "required"
|
|
@@ -39792,8 +39791,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39792
39791
|
}
|
|
39793
39792
|
],
|
|
39794
39793
|
class: "tw-mb-4 tw-mt-1",
|
|
39795
|
-
label:
|
|
39796
|
-
placeholder:
|
|
39794
|
+
label: I(l)("PASSWORDRESET.FIELDS.PASSWORD.LABEL"),
|
|
39795
|
+
placeholder: I(l)("PASSWORDRESET.FIELDS.PASSWORD.PLACEHOLDER"),
|
|
39797
39796
|
type: "password",
|
|
39798
39797
|
disabled: !c.tokenIsValid,
|
|
39799
39798
|
required: "",
|
|
@@ -39803,8 +39802,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39803
39802
|
]),
|
|
39804
39803
|
_: 1
|
|
39805
39804
|
}, 8, ["label", "model-value"]),
|
|
39806
|
-
oe(
|
|
39807
|
-
label:
|
|
39805
|
+
oe(I(jr), {
|
|
39806
|
+
label: I(l)("PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL"),
|
|
39808
39807
|
name: "confirm_password",
|
|
39809
39808
|
"model-value": c.confirmPassword,
|
|
39810
39809
|
rules: "required"
|
|
@@ -39820,8 +39819,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39820
39819
|
}
|
|
39821
39820
|
],
|
|
39822
39821
|
class: "tw-mb-4",
|
|
39823
|
-
label:
|
|
39824
|
-
placeholder:
|
|
39822
|
+
label: I(l)("PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL"),
|
|
39823
|
+
placeholder: I(l)("PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.PLACEHOLDER"),
|
|
39825
39824
|
disabled: !c.tokenIsValid,
|
|
39826
39825
|
type: "password",
|
|
39827
39826
|
required: "",
|
|
@@ -39839,7 +39838,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39839
39838
|
onClick: h
|
|
39840
39839
|
}, {
|
|
39841
39840
|
default: le(() => [
|
|
39842
|
-
Re(ue(
|
|
39841
|
+
Re(ue(I(l)("PASSWORDRESET.SAVE_PASSWORD")), 1)
|
|
39843
39842
|
]),
|
|
39844
39843
|
_: 1
|
|
39845
39844
|
}, 8, ["disabled"])
|
|
@@ -39849,7 +39848,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39849
39848
|
class: "tw-mt-3 !tw-text-[#f14e4e]"
|
|
39850
39849
|
}, {
|
|
39851
39850
|
default: le(() => [
|
|
39852
|
-
Re(ue(
|
|
39851
|
+
Re(ue(I(l)(`PASSWORDRESET.ERRORS.${+A}`)), 1)
|
|
39853
39852
|
]),
|
|
39854
39853
|
_: 2
|
|
39855
39854
|
}, 1024))), 128))
|
|
@@ -39893,7 +39892,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39893
39892
|
await Vt().then(() => {
|
|
39894
39893
|
n = Cy(
|
|
39895
39894
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39896
|
-
|
|
39895
|
+
I(o.value[o.value.length - 1]?.props?.navigation?.instance),
|
|
39897
39896
|
"title"
|
|
39898
39897
|
), i.value = o.value.length;
|
|
39899
39898
|
});
|
|
@@ -39913,17 +39912,17 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39913
39912
|
o.title ? (x(), B("div", JW, ue(o.title), 1)) : ie("", !0)
|
|
39914
39913
|
], 64)) : ie("", !0),
|
|
39915
39914
|
o.$isMobile.value ? (x(), B(je, { key: 1 }, [
|
|
39916
|
-
i.value === 1 ? (x(), B("div", KW, ue(
|
|
39915
|
+
i.value === 1 ? (x(), B("div", KW, ue(I(n)), 1)) : i.value > 1 ? (x(), we(I(Hu), {
|
|
39917
39916
|
key: 1,
|
|
39918
39917
|
class: "tw-ml-3",
|
|
39919
39918
|
onClick: s[1] || (s[1] = (a) => o.$emit("backlink:click"))
|
|
39920
39919
|
}, {
|
|
39921
39920
|
default: le(() => [
|
|
39922
|
-
oe(
|
|
39921
|
+
oe(I(Ve), {
|
|
39923
39922
|
icon: "fas fa-chevron-left",
|
|
39924
39923
|
size: "s"
|
|
39925
39924
|
}),
|
|
39926
|
-
Y("span", ZW, ue(
|
|
39925
|
+
Y("span", ZW, ue(I(e)("COMPONENTS.ORGANISMS.VC_APP.INTERNAL.VC_APP_BAR.BACK")), 1)
|
|
39927
39926
|
]),
|
|
39928
39927
|
_: 1
|
|
39929
39928
|
})) : ie("", !0)
|
|
@@ -39937,7 +39936,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39937
39936
|
class: "tw-text-[#319ed4] tw-w-[var(--app-bar-button-width)] tw-flex tw-items-center tw-justify-center tw-h-full tw-box-border tw-cursor-pointer",
|
|
39938
39937
|
onClick: s[2] || (s[2] = (a) => o.$emit("menubutton:click"))
|
|
39939
39938
|
}, [
|
|
39940
|
-
oe(
|
|
39939
|
+
oe(I(Ve), { icon: "fas fa-bars" })
|
|
39941
39940
|
])) : ie("", !0)
|
|
39942
39941
|
], 2));
|
|
39943
39942
|
}
|
|
@@ -39989,20 +39988,20 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39989
39988
|
Y("div", {
|
|
39990
39989
|
class: De(["vc-app-menu-item__handler", { "vc-app-menu-item__handler_enabled": !l.sticky }])
|
|
39991
39990
|
}, [
|
|
39992
|
-
oe(
|
|
39991
|
+
oe(I(Ve), {
|
|
39993
39992
|
icon: "fas fa-ellipsis-v",
|
|
39994
39993
|
size: "m"
|
|
39995
39994
|
})
|
|
39996
39995
|
], 2),
|
|
39997
39996
|
l.icon ? (x(), B("div", t9, [
|
|
39998
|
-
oe(
|
|
39997
|
+
oe(I(Ve), {
|
|
39999
39998
|
icon: l.icon,
|
|
40000
39999
|
size: "m"
|
|
40001
40000
|
}, null, 8, ["icon"])
|
|
40002
40001
|
])) : ie("", !0),
|
|
40003
40002
|
Y("div", r9, [
|
|
40004
40003
|
Re(ue(l.title) + " ", 1),
|
|
40005
|
-
l.children?.length ? (x(), we(
|
|
40004
|
+
l.children?.length ? (x(), we(I(Ve), {
|
|
40006
40005
|
key: 0,
|
|
40007
40006
|
class: "vc-app-menu-item__title-icon",
|
|
40008
40007
|
icon: `fas fa-chevron-${i.value ? "up" : "down"}`,
|
|
@@ -40109,20 +40108,20 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40109
40108
|
})) : ie("", !0),
|
|
40110
40109
|
Y("div", s9, [
|
|
40111
40110
|
o.$isMobile.value ? (x(), B("div", a9, [
|
|
40112
|
-
oe(
|
|
40111
|
+
oe(I(Ve), {
|
|
40113
40112
|
icon: "fas fa-times",
|
|
40114
40113
|
size: "xl",
|
|
40115
40114
|
onClick: s[1] || (s[1] = (a) => n.value = !1)
|
|
40116
40115
|
})
|
|
40117
40116
|
])) : ie("", !0),
|
|
40118
|
-
oe(
|
|
40117
|
+
oe(I(mo), {
|
|
40119
40118
|
"no-padding": !0,
|
|
40120
40119
|
class: "tw-grow tw-basis-0"
|
|
40121
40120
|
}, {
|
|
40122
40121
|
default: le(() => [
|
|
40123
40122
|
Y("div", l9, [
|
|
40124
40123
|
o.$isDesktop.value ? ie("", !0) : Le(o.$slots, "mobile", { key: 0 }),
|
|
40125
|
-
(x(!0), B(je, null, ot(
|
|
40124
|
+
(x(!0), B(je, null, ot(I(r), (a) => (x(), we(o9, {
|
|
40126
40125
|
key: a?.id,
|
|
40127
40126
|
"is-visible": o.$hasAccess(a.permissions) && (a.children?.some((l) => o.$hasAccess(l.permissions)) ?? !0),
|
|
40128
40127
|
url: a.url,
|
|
@@ -40196,35 +40195,35 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40196
40195
|
title: v.title,
|
|
40197
40196
|
"disable-menu": v.disableMenu,
|
|
40198
40197
|
"onMenubutton:click": y[1] || (y[1] = (_) => v.$refs.menu.isMobileVisible = !0),
|
|
40199
|
-
"onBacklink:click": y[2] || (y[2] = (_) =>
|
|
40198
|
+
"onBacklink:click": y[2] || (y[2] = (_) => I(o)(I(a).length - 1)),
|
|
40200
40199
|
"onLogo:click": p
|
|
40201
40200
|
}, {
|
|
40202
40201
|
"app-switcher": le(() => [
|
|
40203
40202
|
Le(v.$slots, "app-switcher", {}, () => [
|
|
40204
40203
|
oe(w, {
|
|
40205
|
-
"apps-list":
|
|
40206
|
-
onOnClick: y[0] || (y[0] = (_) =>
|
|
40204
|
+
"apps-list": I(l),
|
|
40205
|
+
onOnClick: y[0] || (y[0] = (_) => I(u)(_))
|
|
40207
40206
|
}, null, 8, ["apps-list"])
|
|
40208
40207
|
])
|
|
40209
40208
|
]),
|
|
40210
40209
|
toolbar: le(() => [
|
|
40211
40210
|
Le(v.$slots, "toolbar", td(Py({
|
|
40212
|
-
LanguageSelector:
|
|
40213
|
-
UserDropdownButton:
|
|
40214
|
-
NotificationDropdown:
|
|
40211
|
+
LanguageSelector: I(gy),
|
|
40212
|
+
UserDropdownButton: I(Vl),
|
|
40213
|
+
NotificationDropdown: I(yy)
|
|
40215
40214
|
})), () => [
|
|
40216
40215
|
v.$slots["toolbar:prepend"] ? Le(v.$slots, "toolbar:prepend", { key: 0 }) : ie("", !0),
|
|
40217
40216
|
Le(v.$slots, "toolbar:language-selector", {}, () => [
|
|
40218
|
-
(v.$isDesktop.value ? v.$isDesktop.value : v.$isMobile.value &&
|
|
40217
|
+
(v.$isDesktop.value ? v.$isDesktop.value : v.$isMobile.value && I(d).path === "/") ? (x(), we(I(gy), { key: 0 })) : ie("", !0)
|
|
40219
40218
|
]),
|
|
40220
40219
|
Le(v.$slots, "toolbar:notifications-dropdown", {}, () => [
|
|
40221
|
-
oe(
|
|
40220
|
+
oe(I(yy))
|
|
40222
40221
|
]),
|
|
40223
40222
|
v.$isDesktop.value ? Le(v.$slots, "toolbar:user-dropdown", {
|
|
40224
40223
|
key: 1,
|
|
40225
|
-
userDropdown:
|
|
40224
|
+
userDropdown: I(Vl)
|
|
40226
40225
|
}, () => [
|
|
40227
|
-
oe(
|
|
40226
|
+
oe(I(Vl))
|
|
40228
40227
|
]) : ie("", !0)
|
|
40229
40228
|
])
|
|
40230
40229
|
]),
|
|
@@ -40239,16 +40238,16 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40239
40238
|
"onItem:click": b
|
|
40240
40239
|
}, {
|
|
40241
40240
|
mobile: le(() => [
|
|
40242
|
-
oe(
|
|
40241
|
+
oe(I(Vl), { class: "tw-p-0 tw-mb-2 tw-w-full tw-h-auto" })
|
|
40243
40242
|
]),
|
|
40244
40243
|
_: 1
|
|
40245
40244
|
}, 8, ["version"])),
|
|
40246
|
-
|
|
40245
|
+
I(h) ? (x(), B("div", f9, [
|
|
40247
40246
|
Le(v.$slots, "blade-navigation", {}, () => [
|
|
40248
40247
|
oe(m)
|
|
40249
40248
|
])
|
|
40250
40249
|
])) : ie("", !0),
|
|
40251
|
-
oe(
|
|
40250
|
+
oe(I(m1))
|
|
40252
40251
|
])
|
|
40253
40252
|
], 2)) : (x(), we(g, {
|
|
40254
40253
|
key: 0,
|
|
@@ -40290,7 +40289,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40290
40289
|
}
|
|
40291
40290
|
return (a, l) => (x(), B("div", h9, [
|
|
40292
40291
|
a.icon ? (x(), B("div", p9, [
|
|
40293
|
-
oe(
|
|
40292
|
+
oe(I(Ve), {
|
|
40294
40293
|
icon: a.icon,
|
|
40295
40294
|
size: "xxl"
|
|
40296
40295
|
}, null, 8, ["icon"])
|
|
@@ -40313,7 +40312,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40313
40312
|
class: "tw-text-[color:var(--blade-header-button-color)] tw-ml-4 tw-cursor-pointer hover:tw-text-[color:var(--blade-header-button-color-hover)]",
|
|
40314
40313
|
onClick: o
|
|
40315
40314
|
}, [
|
|
40316
|
-
oe(
|
|
40315
|
+
oe(I(Ve), {
|
|
40317
40316
|
icon: "fas fa-window-minimize",
|
|
40318
40317
|
size: "s"
|
|
40319
40318
|
})
|
|
@@ -40322,7 +40321,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40322
40321
|
class: "tw-text-[color:var(--blade-header-button-color)] tw-ml-4 tw-cursor-pointer hover:tw-text-[color:var(--blade-header-button-color-hover)]",
|
|
40323
40322
|
onClick: i
|
|
40324
40323
|
}, [
|
|
40325
|
-
oe(
|
|
40324
|
+
oe(I(Ve), {
|
|
40326
40325
|
icon: "fas fa-window-maximize",
|
|
40327
40326
|
size: "s"
|
|
40328
40327
|
})
|
|
@@ -40333,7 +40332,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40333
40332
|
class: "tw-text-[color:var(--blade-header-button-color)] tw-ml-4 tw-cursor-pointer hover:tw-text-[color:var(--blade-header-button-color-hover)]",
|
|
40334
40333
|
onClick: s
|
|
40335
40334
|
}, [
|
|
40336
|
-
oe(
|
|
40335
|
+
oe(I(Ve), { icon: "fas fa-times" })
|
|
40337
40336
|
])) : ie("", !0)
|
|
40338
40337
|
]))
|
|
40339
40338
|
]));
|
|
@@ -40395,7 +40394,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40395
40394
|
ref: a,
|
|
40396
40395
|
class: "vc-blade-toolbar-button__wrap"
|
|
40397
40396
|
}, [
|
|
40398
|
-
oe(
|
|
40397
|
+
oe(I(Ve), {
|
|
40399
40398
|
class: "vc-blade-toolbar-button__icon",
|
|
40400
40399
|
icon: b.icon,
|
|
40401
40400
|
size: "m"
|
|
@@ -40415,7 +40414,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40415
40414
|
class: "vc-blade-toolbar-button__dropdown-item",
|
|
40416
40415
|
onClick: (g) => h(v)
|
|
40417
40416
|
}, [
|
|
40418
|
-
oe(
|
|
40417
|
+
oe(I(Ve), {
|
|
40419
40418
|
icon: v.icon,
|
|
40420
40419
|
class: "vc-blade-toolbar-button__dropdown-item-icon"
|
|
40421
40420
|
}, null, 8, ["icon"]),
|
|
@@ -40458,14 +40457,14 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40458
40457
|
key: 0,
|
|
40459
40458
|
"is-expanded": r.value,
|
|
40460
40459
|
icon: a.icon,
|
|
40461
|
-
title:
|
|
40460
|
+
title: I(a.title),
|
|
40462
40461
|
disabled: a.disabled,
|
|
40463
40462
|
"dropdown-items": a.dropdownItems,
|
|
40464
40463
|
"click-handler": a.clickHandler
|
|
40465
40464
|
}, null, 8, ["is-expanded", "icon", "title", "disabled", "dropdown-items", "click-handler"])) : ie("", !0)
|
|
40466
40465
|
], 64))), 128))
|
|
40467
40466
|
]),
|
|
40468
|
-
oe(
|
|
40467
|
+
oe(I(Ve), {
|
|
40469
40468
|
class: "tw-self-center tw-justify-self-center tw-text-[#a1c0d4] tw-cursor-pointer tw-mr-4 hover:tw-text-[#7ea8c4]",
|
|
40470
40469
|
icon: `fas fa-chevron-${r.value ? "up" : "down"}`,
|
|
40471
40470
|
onClick: n
|
|
@@ -40505,7 +40504,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40505
40504
|
{
|
|
40506
40505
|
"!tw-w-full": s.$isMobile.value,
|
|
40507
40506
|
"!tw-w-full !tw-shrink": s.expanded,
|
|
40508
|
-
"!tw-absolute !tw-z-[2] !tw-top-0 !tw-bottom-0 !tw-left-0 ![width:-webkit-fill-available] !tw-shrink":
|
|
40507
|
+
"!tw-absolute !tw-z-[2] !tw-top-0 !tw-bottom-0 !tw-left-0 ![width:-webkit-fill-available] !tw-shrink": I(r)
|
|
40509
40508
|
}
|
|
40510
40509
|
]]),
|
|
40511
40510
|
style: Et({ width: typeof s.width == "number" ? `${s.width}px` : s.width })
|
|
@@ -40513,7 +40512,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40513
40512
|
!s.$isMobile.value || s.closable ? (x(), we(b9, {
|
|
40514
40513
|
key: 0,
|
|
40515
40514
|
class: "tw-shrink-0",
|
|
40516
|
-
maximized:
|
|
40515
|
+
maximized: I(r),
|
|
40517
40516
|
expandable: s.expandable,
|
|
40518
40517
|
closable: s.closable,
|
|
40519
40518
|
icon: s.icon,
|
|
@@ -40531,19 +40530,19 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40531
40530
|
key: "0"
|
|
40532
40531
|
} : void 0
|
|
40533
40532
|
]), 1032, ["maximized", "expandable", "closable", "icon", "title", "subtitle"])) : ie("", !0),
|
|
40534
|
-
|
|
40535
|
-
oe(
|
|
40533
|
+
I(n) ? (x(), B("div", A9, [
|
|
40534
|
+
oe(I(Ve), {
|
|
40536
40535
|
size: "s",
|
|
40537
40536
|
icon: "fas fa-exclamation-triangle"
|
|
40538
40537
|
}),
|
|
40539
|
-
Y("div", N9, ue(
|
|
40540
|
-
oe(
|
|
40538
|
+
Y("div", N9, ue(I(n)), 1),
|
|
40539
|
+
oe(I(ln), {
|
|
40541
40540
|
text: "",
|
|
40542
40541
|
class: "tw-shrink-0 tw-opacity-80 tw-text-white hover:!tw-opacity-100 hover:!tw-text-white",
|
|
40543
|
-
onClick: a[3] || (a[3] = (l) =>
|
|
40542
|
+
onClick: a[3] || (a[3] = (l) => I(o)())
|
|
40544
40543
|
}, {
|
|
40545
40544
|
default: le(() => [
|
|
40546
|
-
Re(ue(
|
|
40545
|
+
Re(ue(I(i)("COMPONENTS.ORGANISMS.VC_BLADE.SEE_DETAILS")), 1)
|
|
40547
40546
|
]),
|
|
40548
40547
|
_: 1
|
|
40549
40548
|
})
|
|
@@ -40628,7 +40627,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40628
40627
|
}
|
|
40629
40628
|
return (b, p) => {
|
|
40630
40629
|
const v = $e("VcMultivalue");
|
|
40631
|
-
return x(), we(
|
|
40630
|
+
return x(), we(I(jr), {
|
|
40632
40631
|
key: u.value.key,
|
|
40633
40632
|
label: u.value.displayName,
|
|
40634
40633
|
name: u.value.name,
|
|
@@ -40636,7 +40635,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40636
40635
|
rules: u.value.rules
|
|
40637
40636
|
}, {
|
|
40638
40637
|
default: le(({ errorMessage: y, errors: g }) => [
|
|
40639
|
-
u.value.dictionary && !u.value.multivalue ? (x(), we(
|
|
40638
|
+
u.value.dictionary && !u.value.multivalue ? (x(), we(I(Wa), Lt({ key: 0 }, b.$attrs, {
|
|
40640
40639
|
modelValue: c.value,
|
|
40641
40640
|
"onUpdate:modelValue": p[0] || (p[0] = (w) => c.value = w),
|
|
40642
40641
|
error: !!g.length,
|
|
@@ -40683,7 +40682,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40683
40682
|
multivalue: u.value.multivalue,
|
|
40684
40683
|
onSearch: d,
|
|
40685
40684
|
onClose: h
|
|
40686
|
-
}), null, 16, ["modelValue", "error", "error-message", "label", "required", "disabled", "multilanguage", "current-language", "options", "option-label", "multivalue"])) : u.value.valueType === "ShortText" ? (x(), we(
|
|
40685
|
+
}), null, 16, ["modelValue", "error", "error-message", "label", "required", "disabled", "multilanguage", "current-language", "options", "option-label", "multivalue"])) : u.value.valueType === "ShortText" ? (x(), we(I($r), Lt({ key: 3 }, b.$attrs, {
|
|
40687
40686
|
modelValue: c.value,
|
|
40688
40687
|
"onUpdate:modelValue": p[3] || (p[3] = (w) => c.value = w),
|
|
40689
40688
|
error: !!g.length,
|
|
@@ -40718,7 +40717,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40718
40717
|
error: !!g.length,
|
|
40719
40718
|
"error-message": y,
|
|
40720
40719
|
options: a.value
|
|
40721
|
-
}), null, 16, ["modelValue", "label", "required", "disabled", "error", "error-message", "options"])) : u.value.valueType === "Number" ? (x(), we(
|
|
40720
|
+
}), null, 16, ["modelValue", "label", "required", "disabled", "error", "error-message", "options"])) : u.value.valueType === "Number" ? (x(), we(I($r), Lt({ key: 6 }, b.$attrs, {
|
|
40722
40721
|
modelValue: c.value,
|
|
40723
40722
|
"onUpdate:modelValue": p[6] || (p[6] = (w) => c.value = w),
|
|
40724
40723
|
error: !!g.length,
|
|
@@ -40730,7 +40729,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40730
40729
|
placeholder: u.value.placeholder,
|
|
40731
40730
|
disabled: b.disabled,
|
|
40732
40731
|
loading: l.value
|
|
40733
|
-
}), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : u.value.valueType === "Integer" ? (x(), we(
|
|
40732
|
+
}), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : u.value.valueType === "Integer" ? (x(), we(I($r), Lt({ key: 7 }, b.$attrs, {
|
|
40734
40733
|
modelValue: c.value,
|
|
40735
40734
|
"onUpdate:modelValue": p[7] || (p[7] = (w) => c.value = w),
|
|
40736
40735
|
error: !!g.length,
|
|
@@ -40743,7 +40742,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40743
40742
|
placeholder: u.value.placeholder,
|
|
40744
40743
|
disabled: b.disabled,
|
|
40745
40744
|
loading: l.value
|
|
40746
|
-
}), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : u.value.valueType === "DateTime" ? (x(), we(
|
|
40745
|
+
}), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : u.value.valueType === "DateTime" ? (x(), we(I($r), Lt({ key: 8 }, b.$attrs, {
|
|
40747
40746
|
modelValue: c.value,
|
|
40748
40747
|
"onUpdate:modelValue": p[8] || (p[8] = (w) => c.value = w),
|
|
40749
40748
|
error: !!g.length,
|
|
@@ -40754,7 +40753,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40754
40753
|
placeholder: u.value.placeholder,
|
|
40755
40754
|
disabled: b.disabled,
|
|
40756
40755
|
loading: l.value
|
|
40757
|
-
}), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : u.value.valueType === "LongText" ? (x(), we(
|
|
40756
|
+
}), null, 16, ["modelValue", "error", "error-message", "label", "required", "placeholder", "disabled", "loading"])) : u.value.valueType === "LongText" ? (x(), we(I(vc), Lt({ key: 9 }, b.$attrs, {
|
|
40758
40757
|
modelValue: c.value,
|
|
40759
40758
|
"onUpdate:modelValue": p[9] || (p[9] = (w) => c.value = w),
|
|
40760
40759
|
"error-message": y,
|
|
@@ -40764,7 +40763,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40764
40763
|
disabled: b.disabled,
|
|
40765
40764
|
multilanguage: b.multilanguage,
|
|
40766
40765
|
"current-language": b.currentLanguage
|
|
40767
|
-
}), null, 16, ["modelValue", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language"])) : u.value.valueType === "Boolean" ? (x(), we(
|
|
40766
|
+
}), null, 16, ["modelValue", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language"])) : u.value.valueType === "Boolean" ? (x(), we(I(Xs), Lt({ key: 10 }, b.$attrs, {
|
|
40768
40767
|
modelValue: c.value,
|
|
40769
40768
|
"onUpdate:modelValue": p[10] || (p[10] = (w) => c.value = w),
|
|
40770
40769
|
"error-message": y,
|
|
@@ -40808,14 +40807,14 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40808
40807
|
}]),
|
|
40809
40808
|
onTap: o[3] || (o[3] = nt((s) => r.value = !r.value, ["stop"]))
|
|
40810
40809
|
}, [
|
|
40811
|
-
oe(
|
|
40810
|
+
oe(I(Pa), {
|
|
40812
40811
|
aspect: "1x1",
|
|
40813
40812
|
src: i.image.url,
|
|
40814
40813
|
background: "contain"
|
|
40815
40814
|
}, null, 8, ["src"]),
|
|
40816
40815
|
Y("div", k9, [
|
|
40817
40816
|
Y("div", C9, [
|
|
40818
|
-
!i.readonly && !i.disableDrag ? (x(), we(
|
|
40817
|
+
!i.readonly && !i.disableDrag ? (x(), we(I(Ve), {
|
|
40819
40818
|
key: 0,
|
|
40820
40819
|
class: "vc-gallery-item__move",
|
|
40821
40820
|
icon: "fas fa-arrows-alt",
|
|
@@ -40832,18 +40831,18 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40832
40831
|
class: "vc-gallery-item__button",
|
|
40833
40832
|
onClick: o[0] || (o[0] = (s) => i.$emit("preview", i.image))
|
|
40834
40833
|
}, [
|
|
40835
|
-
oe(
|
|
40834
|
+
oe(I(Ve), {
|
|
40836
40835
|
class: "vc-gallery-item__button-icon",
|
|
40837
40836
|
icon: "fas fa-eye"
|
|
40838
40837
|
}),
|
|
40839
|
-
Y("div", I9, ue(
|
|
40838
|
+
Y("div", I9, ue(I(e)("COMPONENTS.ORGANISMS.VC_GALLERY.INTERNAL.VC_GALLERY_ITEM.FULLSCREEN")), 1)
|
|
40840
40839
|
])) : ie("", !0),
|
|
40841
40840
|
!i.readonly && i.actions && i.actions.edit ? (x(), B("div", {
|
|
40842
40841
|
key: 1,
|
|
40843
40842
|
class: "vc-gallery-item__button",
|
|
40844
40843
|
onClick: o[1] || (o[1] = (s) => i.$emit("edit", i.image))
|
|
40845
40844
|
}, [
|
|
40846
|
-
oe(
|
|
40845
|
+
oe(I(Ve), {
|
|
40847
40846
|
class: "vc-gallery-item__button-icon",
|
|
40848
40847
|
icon: "fas fa-pen"
|
|
40849
40848
|
}),
|
|
@@ -40854,7 +40853,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40854
40853
|
class: "vc-gallery-item__button",
|
|
40855
40854
|
onClick: o[2] || (o[2] = (s) => i.$emit("remove", i.image))
|
|
40856
40855
|
}, [
|
|
40857
|
-
oe(
|
|
40856
|
+
oe(I(Ve), {
|
|
40858
40857
|
class: "vc-gallery-item__button-icon",
|
|
40859
40858
|
icon: "fas fa-trash"
|
|
40860
40859
|
}),
|
|
@@ -40863,7 +40862,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40863
40862
|
])
|
|
40864
40863
|
])
|
|
40865
40864
|
], 34)), [
|
|
40866
|
-
[
|
|
40865
|
+
[I(ui), n]
|
|
40867
40866
|
]);
|
|
40868
40867
|
}
|
|
40869
40868
|
}), $9 = /* @__PURE__ */ Y("span", null, ")", -1), M9 = { class: "tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center" }, j9 = { class: "tw-box-border p-5 tw-grow tw-basis-0 tw-w-full" }, F9 = { class: "tw-p-4 tw-pb-[40px] tw-max-w-full tw-overflow-x-auto tw-box-border tw-shrink tw-flex" }, U9 = /* @__PURE__ */ Ae({
|
|
@@ -40883,7 +40882,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40883
40882
|
function a(l) {
|
|
40884
40883
|
l.key === "ArrowLeft" && n.value > 0 ? n.value-- : l.key === "ArrowRight" && n.value < e.images.length - 1 && n.value++;
|
|
40885
40884
|
}
|
|
40886
|
-
return (l, u) => o.value ? (x(), we(
|
|
40885
|
+
return (l, u) => o.value ? (x(), we(I(nl), {
|
|
40887
40886
|
key: 0,
|
|
40888
40887
|
title: o.value?.title,
|
|
40889
40888
|
"is-mobile-fullscreen": "",
|
|
@@ -40895,11 +40894,11 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40895
40894
|
header: le(() => [
|
|
40896
40895
|
Y("div", null, [
|
|
40897
40896
|
Y("span", null, ue(o.value.name) + " (", 1),
|
|
40898
|
-
oe(
|
|
40897
|
+
oe(I(Hu), {
|
|
40899
40898
|
onClick: u[0] || (u[0] = (c) => s(o.value.url ?? ""))
|
|
40900
40899
|
}, {
|
|
40901
40900
|
default: le(() => [
|
|
40902
|
-
Re(ue(
|
|
40901
|
+
Re(ue(I(r)("COMPONENTS.ORGANISMS.VC_GALLERY.INTERNAL.VC_GALLERY_PREVIEW.COPY_IMAGE_LINK")), 1)
|
|
40903
40902
|
]),
|
|
40904
40903
|
_: 1
|
|
40905
40904
|
}),
|
|
@@ -40918,7 +40917,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40918
40917
|
class: "tw-absolute tw-top-2/4 -tw-mt-9 tw-h-[72px] tw-w-[72px] tw-flex tw-items-center tw-justify-center tw-rounded-full tw-bg-[#f1f6fa] tw-cursor-pointer tw-text-[#a1c0d4] [--icon-size-xl: 36px] hover:tw-shadow-[0_0_20px_rgba(31,40,50,0.15)] tw-left-[25px]",
|
|
40919
40918
|
onClick: u[1] || (u[1] = (c) => n.value--)
|
|
40920
40919
|
}, [
|
|
40921
|
-
oe(
|
|
40920
|
+
oe(I(Ve), {
|
|
40922
40921
|
icon: "fas fa-arrow-left",
|
|
40923
40922
|
size: "xl"
|
|
40924
40923
|
})
|
|
@@ -40928,7 +40927,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40928
40927
|
class: "tw-absolute tw-top-2/4 -tw-mt-9 tw-h-[72px] tw-w-[72px] tw-flex tw-items-center tw-justify-center tw-rounded-full tw-bg-[#f1f6fa] tw-cursor-pointer tw-text-[#a1c0d4] [--icon-size-xl: 36px] hover:tw-shadow-[0_0_20px_rgba(31,40,50,0.15)] tw-right-[25px]",
|
|
40929
40928
|
onClick: u[2] || (u[2] = (c) => n.value++)
|
|
40930
40929
|
}, [
|
|
40931
|
-
oe(
|
|
40930
|
+
oe(I(Ve), {
|
|
40932
40931
|
icon: "fas fa-arrow-right",
|
|
40933
40932
|
size: "xl"
|
|
40934
40933
|
})
|
|
@@ -40941,7 +40940,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40941
40940
|
"vc-gallery-preview__images-item_current": f === n.value
|
|
40942
40941
|
}])
|
|
40943
40942
|
}, [
|
|
40944
|
-
oe(
|
|
40943
|
+
oe(I(Pa), {
|
|
40945
40944
|
src: c.url,
|
|
40946
40945
|
size: "xl",
|
|
40947
40946
|
background: "contain",
|
|
@@ -40997,7 +40996,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
40997
40996
|
Ge(
|
|
40998
40997
|
() => r.images,
|
|
40999
40998
|
(O) => {
|
|
41000
|
-
s.value =
|
|
40999
|
+
s.value = I(O), r.hideAfterUpload && (b.value = !!s.value.length);
|
|
41001
41000
|
},
|
|
41002
41001
|
{ deep: !0, immediate: !0 }
|
|
41003
41002
|
);
|
|
@@ -41053,7 +41052,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41053
41052
|
}
|
|
41054
41053
|
}
|
|
41055
41054
|
return (O, E) => (x(), B("div", B9, [
|
|
41056
|
-
O.label ? (x(), we(
|
|
41055
|
+
O.label ? (x(), we(I(vn), {
|
|
41057
41056
|
key: 0,
|
|
41058
41057
|
required: O.required
|
|
41059
41058
|
}, xr({
|
|
@@ -41092,7 +41091,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41092
41091
|
onDragleave: A,
|
|
41093
41092
|
onDrop: (D) => S(D, N)
|
|
41094
41093
|
}, null, 8, ["image", "readonly", "actions", "disable-drag", "onPreview", "onDragstart", "onDrop"]))), 128)),
|
|
41095
|
-
!O.disabled && !b.value ? (x(), we(
|
|
41094
|
+
!O.disabled && !b.value ? (x(), we(I(jb), {
|
|
41096
41095
|
key: 0,
|
|
41097
41096
|
class: "tw-m-2",
|
|
41098
41097
|
icon: O.uploadIcon,
|
|
@@ -41110,9 +41109,9 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41110
41109
|
class: "tw-w-0.5 tw-bg-[#41afe6] tw-h-full tw-absolute tw-top-0 tw-bottom-0 tw-z-[2] tw-hidden"
|
|
41111
41110
|
}, null, 512)
|
|
41112
41111
|
])) : (x(), B("div", H9, [
|
|
41113
|
-
oe(
|
|
41112
|
+
oe(I(Jr), null, {
|
|
41114
41113
|
default: le(() => [
|
|
41115
|
-
Re(ue(
|
|
41114
|
+
Re(ue(I(i)("COMPONENTS.ORGANISMS.VC_GALLERY.GALLERY_IS_EMPTY")), 1)
|
|
41116
41115
|
]),
|
|
41117
41116
|
_: 1
|
|
41118
41117
|
})
|
|
@@ -41308,7 +41307,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41308
41307
|
Y("div", {
|
|
41309
41308
|
ref_key: "target",
|
|
41310
41309
|
ref: a,
|
|
41311
|
-
class: De(["tw-top-0 tw-left-0 tw-bottom-0 tw-right-0 tw-w-full tw-h-full tw-absolute tw-flex-shrink-0 tw-bg-white", { animated: !
|
|
41310
|
+
class: De(["tw-top-0 tw-left-0 tw-bottom-0 tw-right-0 tw-w-full tw-h-full tw-absolute tw-flex-shrink-0 tw-bg-white", { animated: !I(d), "vc-table-mobile__item_selected": A.isSelected }]),
|
|
41312
41311
|
style: Et({ left: c.value })
|
|
41313
41312
|
}, [
|
|
41314
41313
|
Le(A.$slots, "default")
|
|
@@ -41363,7 +41362,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41363
41362
|
Y("div", az, [
|
|
41364
41363
|
Y("div", lz, [
|
|
41365
41364
|
Y("div", uz, [
|
|
41366
|
-
Y("span", cz, ue(
|
|
41365
|
+
Y("span", cz, ue(I(i)("COMPONENTS.ORGANISMS.VC_TABLE.ALL_ACTIONS")), 1),
|
|
41367
41366
|
oe(T, {
|
|
41368
41367
|
class: "tw-text-[#c2d7e4]",
|
|
41369
41368
|
icon: "fas fa-times-circle",
|
|
@@ -41391,7 +41390,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41391
41390
|
], 4)) : ie("", !0)
|
|
41392
41391
|
])
|
|
41393
41392
|
], 32)), [
|
|
41394
|
-
[
|
|
41393
|
+
[I(ui), v],
|
|
41395
41394
|
[C, m, "hold"]
|
|
41396
41395
|
]);
|
|
41397
41396
|
};
|
|
@@ -41402,10 +41401,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41402
41401
|
}, vz = { class: "tw-truncate" }, gz = { class: "tw-text-[#a5a5a5] tw-text-xs tw-truncate" }, yz = {
|
|
41403
41402
|
key: 1,
|
|
41404
41403
|
class: "tw-truncate"
|
|
41405
|
-
}, bz = {
|
|
41406
|
-
key: 1,
|
|
41407
|
-
class: "tw-text-[#a5a5a5]"
|
|
41408
|
-
}, wz = {
|
|
41404
|
+
}, bz = ["title"], wz = {
|
|
41409
41405
|
key: 0,
|
|
41410
41406
|
class: "tw-truncate"
|
|
41411
41407
|
}, _z = {
|
|
@@ -41460,14 +41456,18 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41460
41456
|
Y("span", vz, ue(Math.trunc(Number(n.value))), 1),
|
|
41461
41457
|
Y("span", gz, "." + ue(`${Number(n.value) * 100 % 100}`.padEnd(2, "0").slice(0, 2)), 1)
|
|
41462
41458
|
])) : (x(), B("div", yz, "N/A"))
|
|
41463
|
-
], 64)) : i.cell.type === "date-ago" ? (x(), B("span",
|
|
41464
|
-
|
|
41465
|
-
|
|
41459
|
+
], 64)) : i.cell.type === "date-ago" ? (x(), B("span", {
|
|
41460
|
+
key: 1,
|
|
41461
|
+
class: "tw-text-[#a5a5a5]",
|
|
41462
|
+
title: n.value instanceof Date && n.value.toLocaleString(I(r)) || ""
|
|
41463
|
+
}, [
|
|
41464
|
+
n.value ? (x(), B("div", wz, ue(I(xe)(n.value).fromNow()), 1)) : (x(), B("div", _z, " N/A "))
|
|
41465
|
+
], 8, bz)) : i.cell.type === "date" || i.cell.type === "time" || i.cell.type === "date-time" ? (x(), B("div", Ez, [
|
|
41466
41466
|
n.value ? (x(), B(je, { key: 0 }, [
|
|
41467
|
-
i.cell.format ? (x(), B("div", Sz, ue(
|
|
41468
|
-
i.cell.type === "date" ? (x(), B("div", Oz, ue(n.value instanceof Date && n.value.toLocaleDateString()), 1)) : ie("", !0),
|
|
41469
|
-
i.cell.type === "time" ? (x(), B("div", Tz, ue(n.value instanceof Date && n.value.toLocaleTimeString()), 1)) : ie("", !0),
|
|
41470
|
-
i.cell.type === "date-time" ? (x(), B("p", Az, ue(n.value.toLocaleString()), 1)) : ie("", !0)
|
|
41467
|
+
i.cell.format ? (x(), B("div", Sz, ue(I(xe)(n.value).locale(I(r)).format(i.cell.format)), 1)) : (x(), B(je, { key: 1 }, [
|
|
41468
|
+
i.cell.type === "date" ? (x(), B("div", Oz, ue(n.value instanceof Date && n.value.toLocaleDateString(I(r))), 1)) : ie("", !0),
|
|
41469
|
+
i.cell.type === "time" ? (x(), B("div", Tz, ue(n.value instanceof Date && n.value.toLocaleTimeString(I(r))), 1)) : ie("", !0),
|
|
41470
|
+
i.cell.type === "date-time" ? (x(), B("p", Az, ue(n.value instanceof Date && n.value.toLocaleString(I(r))), 1)) : ie("", !0)
|
|
41471
41471
|
], 64))
|
|
41472
41472
|
], 64)) : (x(), B("div", Nz, " N/A "))
|
|
41473
41473
|
])) : i.cell.type === "image" ? (x(), we(s, {
|
|
@@ -41558,7 +41558,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41558
41558
|
_: 1
|
|
41559
41559
|
})) : ie("", !0)
|
|
41560
41560
|
], 4)), [
|
|
41561
|
-
[
|
|
41561
|
+
[I(ui), [c, { ignore: [i.value] }]]
|
|
41562
41562
|
]) : ie("", !0)
|
|
41563
41563
|
]))
|
|
41564
41564
|
]);
|
|
@@ -41655,7 +41655,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41655
41655
|
}), J = re(() => {
|
|
41656
41656
|
const te = r.sort?.split(":");
|
|
41657
41657
|
return te && te.length === 2 && te[0];
|
|
41658
|
-
}), U = re(() => r.columns.map((te) => O.value.find((Ee) => te.id === Ee.id))),
|
|
41658
|
+
}), U = re(() => r.columns.map((te) => O.value.find((Ee) => te.id === Ee.id))), L = {
|
|
41659
41659
|
start: "tw-justify-start",
|
|
41660
41660
|
end: "tw-justify-end",
|
|
41661
41661
|
center: "tw-justify-center",
|
|
@@ -41872,6 +41872,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41872
41872
|
// visible: column.visible,
|
|
41873
41873
|
sortable: Ee.sortable,
|
|
41874
41874
|
alwaysVisible: Ee.alwaysVisible,
|
|
41875
|
+
width: Ee.width,
|
|
41875
41876
|
type: Ee.type
|
|
41876
41877
|
} : te;
|
|
41877
41878
|
}));
|
|
@@ -41932,7 +41933,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41932
41933
|
_: 3
|
|
41933
41934
|
}, 8, ["counter"])
|
|
41934
41935
|
])) : ie("", !0),
|
|
41935
|
-
oe(
|
|
41936
|
+
oe(I($r), {
|
|
41936
41937
|
class: "tw-grow tw-basis-0",
|
|
41937
41938
|
placeholder: te.searchPlaceholder || te.$t("COMPONENTS.ORGANISMS.VC_TABLE.SEARCH"),
|
|
41938
41939
|
clearable: "",
|
|
@@ -41942,7 +41943,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41942
41943
|
}, null, 8, ["placeholder", "model-value"]),
|
|
41943
41944
|
te.$isDesktop.value && te.$slots.filters ? (x(), B("div", Fz, [
|
|
41944
41945
|
oe(Ey, {
|
|
41945
|
-
title:
|
|
41946
|
+
title: I(i)("COMPONENTS.ORGANISMS.VC_TABLE.ALL_FILTERS"),
|
|
41946
41947
|
counter: te.activeFilterCount,
|
|
41947
41948
|
"parent-expanded": te.expanded
|
|
41948
41949
|
}, {
|
|
@@ -41955,7 +41956,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41955
41956
|
])
|
|
41956
41957
|
]) : ie("", !0),
|
|
41957
41958
|
Ht((x(), B("div", Uz, [
|
|
41958
|
-
te.items && te.items.length ? (x(), we(
|
|
41959
|
+
te.items && te.items.length ? (x(), we(I(mo), {
|
|
41959
41960
|
key: 0,
|
|
41960
41961
|
ref_key: "scrollContainer",
|
|
41961
41962
|
ref: p,
|
|
@@ -41994,7 +41995,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41994
41995
|
Y("tr", Hz, [
|
|
41995
41996
|
te.multiselect ? (x(), B("th", qz, [
|
|
41996
41997
|
Y("div", Gz, [
|
|
41997
|
-
oe(
|
|
41998
|
+
oe(I(Xs), {
|
|
41998
41999
|
modelValue: F.value,
|
|
41999
42000
|
"onUpdate:modelValue": Ee[1] || (Ee[1] = (Oe) => F.value = Oe),
|
|
42000
42001
|
onClick: Ee[2] || (Ee[2] = nt(() => {
|
|
@@ -42019,7 +42020,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42019
42020
|
onClick: (st) => Pe(Oe)
|
|
42020
42021
|
}, [
|
|
42021
42022
|
Y("div", {
|
|
42022
|
-
class: De(["tw-flex tw-items-center tw-flex-nowrap tw-truncate tw-px-3", Oe.align ?
|
|
42023
|
+
class: De(["tw-flex tw-items-center tw-flex-nowrap tw-truncate tw-px-3", Oe.align ? L[Oe.align] : ""])
|
|
42023
42024
|
}, [
|
|
42024
42025
|
Y("div", Zz, [
|
|
42025
42026
|
Le(te.$slots, `header_${Oe.id}`, {}, () => [
|
|
@@ -42027,16 +42028,16 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42027
42028
|
])
|
|
42028
42029
|
]),
|
|
42029
42030
|
J.value === Oe.id ? (x(), B("div", Xz, [
|
|
42030
|
-
oe(
|
|
42031
|
+
oe(I(Ve), {
|
|
42031
42032
|
size: "xs",
|
|
42032
42033
|
icon: `fas fa-caret-${de.value === "DESC" ? "down" : "up"}`
|
|
42033
42034
|
}, null, 8, ["icon"])
|
|
42034
42035
|
])) : (x(), B("div", Qz, [
|
|
42035
|
-
oe(
|
|
42036
|
+
oe(I(Ve), {
|
|
42036
42037
|
size: "xs",
|
|
42037
42038
|
icon: "fas fa-caret-up"
|
|
42038
42039
|
}),
|
|
42039
|
-
oe(
|
|
42040
|
+
oe(I(Ve), {
|
|
42040
42041
|
size: "xs",
|
|
42041
42042
|
icon: "fas fa-caret-down"
|
|
42042
42043
|
})
|
|
@@ -42071,14 +42072,14 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42071
42072
|
te.selectAll && ne.value ? (x(), B("div", o7, [
|
|
42072
42073
|
Y("div", s7, [
|
|
42073
42074
|
Y("div", null, [
|
|
42074
|
-
Re(ue(d.value ?
|
|
42075
|
-
oe(
|
|
42075
|
+
Re(ue(d.value ? I(i)("COMPONENTS.ORGANISMS.VC_TABLE.ALL_SELECTED") : I(i)("COMPONENTS.ORGANISMS.VC_TABLE.CURRENT_PAGE_SELECTED")) + " ", 1),
|
|
42076
|
+
oe(I(ln), {
|
|
42076
42077
|
text: "",
|
|
42077
42078
|
class: "tw-text-[13px]",
|
|
42078
42079
|
onClick: W
|
|
42079
42080
|
}, {
|
|
42080
42081
|
default: le(() => [
|
|
42081
|
-
Re(ue(d.value ?
|
|
42082
|
+
Re(ue(d.value ? I(i)("COMPONENTS.ORGANISMS.VC_TABLE.CANCEL") : I(i)("COMPONENTS.ORGANISMS.VC_TABLE.SELECT_ALL")), 1)
|
|
42082
42083
|
]),
|
|
42083
42084
|
_: 1
|
|
42084
42085
|
})
|
|
@@ -42111,7 +42112,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42111
42112
|
}, ["stop"]))
|
|
42112
42113
|
}, [
|
|
42113
42114
|
Y("div", l7, [
|
|
42114
|
-
oe(
|
|
42115
|
+
oe(I(Xs), {
|
|
42115
42116
|
"model-value": j(Oe),
|
|
42116
42117
|
"onUpdate:modelValue": (Ze) => X(Oe)
|
|
42117
42118
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
@@ -42134,7 +42135,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42134
42135
|
disabled: !(y.value[st] && y.value[st].length),
|
|
42135
42136
|
onClick: nt((Ze) => ke(Oe, Oe.id), ["stop"])
|
|
42136
42137
|
}, [
|
|
42137
|
-
oe(
|
|
42138
|
+
oe(I(Ve), {
|
|
42138
42139
|
icon: "fas fa-ellipsis-v",
|
|
42139
42140
|
size: "m"
|
|
42140
42141
|
})
|
|
@@ -42155,7 +42156,7 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42155
42156
|
]),
|
|
42156
42157
|
onClick: nt((wn) => Ze.clickHandler(Oe), ["stop"])
|
|
42157
42158
|
}, [
|
|
42158
|
-
oe(
|
|
42159
|
+
oe(I(Ve), {
|
|
42159
42160
|
icon: Ze.icon,
|
|
42160
42161
|
size: "m"
|
|
42161
42162
|
}, null, 8, ["icon"]),
|
|
@@ -42203,8 +42204,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42203
42204
|
key: 0,
|
|
42204
42205
|
src: te.notfound.image
|
|
42205
42206
|
}, null, 8, y7)) : ie("", !0),
|
|
42206
|
-
Y("div", b7, ue(te.notfound.text ||
|
|
42207
|
-
te.notfound.action ? (x(), we(
|
|
42207
|
+
Y("div", b7, ue(te.notfound.text || I(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_FOUND")), 1),
|
|
42208
|
+
te.notfound.action ? (x(), we(I(ln), {
|
|
42208
42209
|
key: 1,
|
|
42209
42210
|
onClick: te.notfound.clickHandler
|
|
42210
42211
|
}, {
|
|
@@ -42220,8 +42221,8 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42220
42221
|
key: 0,
|
|
42221
42222
|
src: te.empty.image
|
|
42222
42223
|
}, null, 8, _7)) : ie("", !0),
|
|
42223
|
-
Y("div", E7, ue(te.empty.text ||
|
|
42224
|
-
te.empty.action ? (x(), we(
|
|
42224
|
+
Y("div", E7, ue(te.empty.text || I(i)("COMPONENTS.ORGANISMS.VC_TABLE.EMPTY")), 1),
|
|
42225
|
+
te.empty.action ? (x(), we(I(ln), {
|
|
42225
42226
|
key: 1,
|
|
42226
42227
|
onClick: te.empty.clickHandler
|
|
42227
42228
|
}, {
|
|
@@ -42234,11 +42235,11 @@ const nY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42234
42235
|
])
|
|
42235
42236
|
], 64))
|
|
42236
42237
|
])), [
|
|
42237
|
-
[Ye,
|
|
42238
|
+
[Ye, I(te.loading)]
|
|
42238
42239
|
]),
|
|
42239
42240
|
(te.$slots.footer || te.footer) && te.items && te.items.length ? Le(te.$slots, "footer", { key: 1 }, () => [
|
|
42240
42241
|
Y("div", S7, [
|
|
42241
|
-
oe(
|
|
42242
|
+
oe(I(Rw), {
|
|
42242
42243
|
expanded: te.expanded,
|
|
42243
42244
|
pages: te.pages,
|
|
42244
42245
|
"current-page": te.currentPage,
|
|
@@ -42335,7 +42336,7 @@ function I7(t) {
|
|
|
42335
42336
|
});
|
|
42336
42337
|
{
|
|
42337
42338
|
const o = await e(...i);
|
|
42338
|
-
return
|
|
42339
|
+
return o.status === 401 && n.value && r().then(() => {
|
|
42339
42340
|
L7(t);
|
|
42340
42341
|
}), o;
|
|
42341
42342
|
}
|