sprof 1.25.1 → 1.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sprof.js +445 -445
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/sprof.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ac = Object.defineProperty;
|
|
2
2
|
var Ec = (t, e, n) => e in t ? Ac(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var d = (t, e, n) => Ec(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { Notify as ra, Dialog as la, QBtn as wn, QItemLabel as Hs, QTooltip as Rr, QInput as rs, QMenu as Ia, QList as Oi, QItem as qn, QItemSection as pn, QIcon as ae, QSeparator as Zi, QDialog as Fc, QCard as Kt, QCardSection as kt, QCardActions as ti, ClosePopup as Yn, QSpace as bn, QSlideTransition as Oc, QCheckbox as Dc, QPopupProxy as ki, QDate as to, date as Zn, QSelect as zc, QToggle as wl, QRadio as
|
|
5
|
-
import { reactive as mt, ref as D, openBlock as m, createElementBlock as w, createElementVNode as b, onBeforeMount as kn, computed as
|
|
4
|
+
import { Notify as ra, Dialog as la, QBtn as wn, QItemLabel as Hs, QTooltip as Rr, QInput as rs, QMenu as Ia, QList as Oi, QItem as qn, QItemSection as pn, QIcon as ae, QSeparator as Zi, QDialog as Fc, QCard as Kt, QCardSection as kt, QCardActions as ti, ClosePopup as Yn, QSpace as bn, QSlideTransition as Oc, QCheckbox as Dc, QPopupProxy as ki, QDate as to, date as Zn, QSelect as zc, QToggle as wl, QRadio as _c, QUploader as Lc, QUploaderAddTrigger as Vc, QImg as Uc, QSpinner as Sl, QBadge as Cl, QTime as kl, QTabs as xl, QTab as $l, QTd as qt, QScrollArea as Bc, QSpinnerDots as qc, QTable as Nc, QTr as Ir, QInnerLoading as Hc, QTh as Mr, QTabPanels as Tl, QTabPanel as Pl, QSplitter as jc, QChip as Gc, QForm as Wc, QCarousel as Yc, QCarouselSlide as Qc, Ripple as Xc, Quasar as Jc } from "quasar";
|
|
5
|
+
import { reactive as mt, ref as D, openBlock as m, createElementBlock as w, createElementVNode as b, onBeforeMount as kn, computed as _, defineComponent as Y, useAttrs as ln, createBlock as L, unref as u, mergeProps as rt, withCtx as k, renderSlot as j, createTextVNode as we, toDisplayString as U, normalizeClass as ye, createVNode as g, normalizeStyle as ee, useModel as vt, createSlots as di, mergeModels as De, resolveDirective as Ma, withDirectives as et, Fragment as J, createCommentVNode as H, watch as Me, isRef as $e, TransitionGroup as Rl, renderList as Se, withModifiers as Je, vShow as no, inject as Zc, getCurrentInstance as Kc, provide as ef, normalizeProps as zs, guardReactiveProps as _s, nextTick as Ki, resolveComponent as Ie, resolveDynamicComponent as Mn, onMounted as ci, onBeforeUnmount as ls, withKeys as js, mergeDefaults as tf, markRaw as nf, useCssVars as Il, createStaticVNode as Ml, onUpdated as sf, useTemplateRef as of, onUnmounted as af, defineAsyncComponent as rf, getCurrentScope as Al, onScopeDispose as El } from "vue";
|
|
6
6
|
import { onBeforeRouteLeave as lf, useRouter as Fl } from "vue-router";
|
|
7
7
|
import si from "vuedraggable";
|
|
8
8
|
var Et = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Et || {}), qe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(qe || {});
|
|
@@ -367,7 +367,7 @@ class ua {
|
|
|
367
367
|
return e === i || n === s || e > i && e < s || n > i && n < s || n > s && e < i;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
const zl = 1e3,
|
|
370
|
+
const zl = 1e3, _l = 60 * zl, qo = 60 * _l;
|
|
371
371
|
var es = /* @__PURE__ */ ((t) => (t.FiveMinutes = "5", t.HourQuarter = "15", t.HourHalf = "30", t.Hour = "60", t))(es || {});
|
|
372
372
|
const Gs = {
|
|
373
373
|
5: ["00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"],
|
|
@@ -380,7 +380,7 @@ class Ae {
|
|
|
380
380
|
return zl * e;
|
|
381
381
|
}
|
|
382
382
|
static M(e) {
|
|
383
|
-
return
|
|
383
|
+
return _l * e;
|
|
384
384
|
}
|
|
385
385
|
static H(e) {
|
|
386
386
|
return qo * e;
|
|
@@ -1457,7 +1457,7 @@ function Pf(t, e, n) {
|
|
|
1457
1457
|
throw new Error("Random bytes length must be >= 16");
|
|
1458
1458
|
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, xf(i);
|
|
1459
1459
|
}
|
|
1460
|
-
class
|
|
1460
|
+
class Lt {
|
|
1461
1461
|
static UUID() {
|
|
1462
1462
|
return jn();
|
|
1463
1463
|
}
|
|
@@ -1672,7 +1672,7 @@ const Rn = class Rn {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
static InitClassInstance(e, n) {
|
|
1674
1674
|
const i = e.constructor(n);
|
|
1675
|
-
return Rn.BuildClass(i), i.id =
|
|
1675
|
+
return Rn.BuildClass(i), i.id = Lt.UUID(), i;
|
|
1676
1676
|
}
|
|
1677
1677
|
static ExistsWithId(e, n) {
|
|
1678
1678
|
return e.some((i) => i.id === n);
|
|
@@ -1698,7 +1698,7 @@ d(Rn, "IsDate", (e, n) => {
|
|
|
1698
1698
|
const i = Reflect.getMetadata("class:dateKeys", e.constructor) || [];
|
|
1699
1699
|
i.includes(n) || i.push(n), Reflect.defineMetadata("class:dateKeys", i, e.constructor);
|
|
1700
1700
|
});
|
|
1701
|
-
let xe = Rn, ts = class
|
|
1701
|
+
let xe = Rn, ts = class Ll {
|
|
1702
1702
|
constructor(e) {
|
|
1703
1703
|
d(this, "id");
|
|
1704
1704
|
d(this, "address");
|
|
@@ -1707,8 +1707,8 @@ let xe = Rn, ts = class _l {
|
|
|
1707
1707
|
xe.BuildClass(this, e);
|
|
1708
1708
|
}
|
|
1709
1709
|
static Create() {
|
|
1710
|
-
const e = new
|
|
1711
|
-
return e.id =
|
|
1710
|
+
const e = new Ll();
|
|
1711
|
+
return e.id = Lt.UUID(), e;
|
|
1712
1712
|
}
|
|
1713
1713
|
};
|
|
1714
1714
|
const No = "/api/static";
|
|
@@ -1776,10 +1776,10 @@ class jt {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
static CreatePreviewFile(e, n) {
|
|
1778
1778
|
const i = new jt();
|
|
1779
|
-
return i.id = n ??
|
|
1779
|
+
return i.id = n ?? Lt.UUID(), i.originalName = e.name, i.file = e.blob, i.fileSystemPath = Lt.UUID(), i;
|
|
1780
1780
|
}
|
|
1781
1781
|
setFile(e) {
|
|
1782
|
-
this.id || (this.id =
|
|
1782
|
+
this.id || (this.id = Lt.UUID()), this.originalName = e.name, this.file = e, this.fileSystemPath = Lt.UUID(), this.url = e.src;
|
|
1783
1783
|
}
|
|
1784
1784
|
clearFile() {
|
|
1785
1785
|
this.url = "", this.file = void 0, this.fileSystemPath = "", this.originalName = "";
|
|
@@ -1851,7 +1851,7 @@ class oi {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
static Create() {
|
|
1853
1853
|
const e = new oi();
|
|
1854
|
-
return e.id =
|
|
1854
|
+
return e.id = Lt.UUID(), e;
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
1857
|
class Ws {
|
|
@@ -1872,7 +1872,7 @@ class ao {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
static Create() {
|
|
1874
1874
|
const e = new ao();
|
|
1875
|
-
return e.id =
|
|
1875
|
+
return e.id = Lt.UUID(), e;
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
1878
|
class Ea {
|
|
@@ -2186,8 +2186,8 @@ var Ff = Object.defineProperty, lo = (t, e, n, i) => {
|
|
|
2186
2186
|
for (var s = void 0, o = t.length - 1, a; o >= 0; o--)
|
|
2187
2187
|
(a = t[o]) && (s = a(e, n, s) || s);
|
|
2188
2188
|
return s && Ff(e, n, s), s;
|
|
2189
|
-
},
|
|
2190
|
-
const ds = (
|
|
2189
|
+
}, _t;
|
|
2190
|
+
const ds = (_t = class {
|
|
2191
2191
|
constructor(e) {
|
|
2192
2192
|
d(this, "id");
|
|
2193
2193
|
d(this, "f", []);
|
|
@@ -2197,7 +2197,7 @@ const ds = (Lt = class {
|
|
|
2197
2197
|
xe.BuildClass(this, e);
|
|
2198
2198
|
}
|
|
2199
2199
|
static Get() {
|
|
2200
|
-
return this.instance || (this.instance =
|
|
2200
|
+
return this.instance || (this.instance = _t.create()), this.instance;
|
|
2201
2201
|
}
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Фабрика (Т1 TECH_DEBT): реактивный экземпляр на страницу/компонент.
|
|
@@ -2207,15 +2207,15 @@ const ds = (Lt = class {
|
|
|
2207
2207
|
* чтобы фильтры/пагинация не «перетекали» между разделами.
|
|
2208
2208
|
*/
|
|
2209
2209
|
static create() {
|
|
2210
|
-
return mt(new
|
|
2210
|
+
return mt(new _t());
|
|
2211
2211
|
}
|
|
2212
2212
|
createFrom(e) {
|
|
2213
|
-
const n = new
|
|
2213
|
+
const n = new _t(JSON.parse(e));
|
|
2214
2214
|
this.f = n.f;
|
|
2215
2215
|
}
|
|
2216
2216
|
clearForHTTP() {
|
|
2217
|
-
const e = new
|
|
2218
|
-
return e.f = this.f.filter((n) => !!n && !
|
|
2217
|
+
const e = new _t(this);
|
|
2218
|
+
return e.f = this.f.filter((n) => !!n && !_t.isEmptyFilter(n)).map((n) => _t.EmptyEntiries(n)), e.s = this.s.map((n) => _t.EmptyEntiries(n)), e.p = _t.EmptyEntiries(this.p), e.t = _t.EmptyEntiries(this.t), e;
|
|
2219
2219
|
}
|
|
2220
2220
|
/**
|
|
2221
2221
|
* Фильтр ничего не отбирает — в запрос не идёт.
|
|
@@ -2267,7 +2267,7 @@ const ds = (Lt = class {
|
|
|
2267
2267
|
resetF() {
|
|
2268
2268
|
this.f = [];
|
|
2269
2269
|
}
|
|
2270
|
-
}, d(
|
|
2270
|
+
}, d(_t, "instance"), _t);
|
|
2271
2271
|
lo([
|
|
2272
2272
|
xe.GetClassConstructor(Fa)
|
|
2273
2273
|
], ds.prototype, "f");
|
|
@@ -2296,14 +2296,14 @@ function zf(t) {
|
|
|
2296
2296
|
const e = {};
|
|
2297
2297
|
return t.model && (e.model = t.model), t.col && (e.col = t.col), e.t = ca[t.type] ?? t.type, e.operator = t.operator, t.group && (e.group = t.group), t.joinTableModel && (e.joinTableModel = t.joinTableModel), t.type === Ee.Boolean ? e.boolean = t.boolean : t.type === Ee.Date ? (t.date1 && (e.date1 = t.date1), t.date2 && (e.date2 = t.date2)) : t.type === Ee.Join || t.operator === Ze.In ? e.set = t.set : t.value1 !== void 0 && (e.value1 = t.value1), e;
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2299
|
+
function _f(t) {
|
|
2300
2300
|
const e = new TextEncoder().encode(t);
|
|
2301
2301
|
let n = "";
|
|
2302
2302
|
return e.forEach((i) => {
|
|
2303
2303
|
n += String.fromCharCode(i);
|
|
2304
2304
|
}), btoa(n).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2306
|
+
function Lf(t) {
|
|
2307
2307
|
const e = t.replace(/-/g, "+").replace(/_/g, "/"), n = atob(e), i = new Uint8Array(n.length);
|
|
2308
2308
|
for (let s = 0; s < n.length; s++)
|
|
2309
2309
|
i[s] = n.charCodeAt(s);
|
|
@@ -2347,7 +2347,7 @@ class Qt {
|
|
|
2347
2347
|
return i.length > 0 && (n.f = i), zr(e) || (n.s = e.s.map((s) => {
|
|
2348
2348
|
const o = new $i();
|
|
2349
2349
|
return o.model = s.model, o.col = s.col, o.order = s.order, o;
|
|
2350
|
-
})), e.p.offset > 0 && (n.o = e.p.offset), e.p.rowsPerPage !== new ns().rowsPerPage && (n.n = e.p.rowsPerPage), Object.keys(n).length === 0 ? "" :
|
|
2350
|
+
})), e.p.offset > 0 && (n.o = e.p.offset), e.p.rowsPerPage !== new ns().rowsPerPage && (n.n = e.p.rowsPerPage), Object.keys(n).length === 0 ? "" : _f(JSON.stringify(n));
|
|
2351
2351
|
}
|
|
2352
2352
|
/** Обратная операция: строка параметра `ftsp` → объект (никогда не бросает). */
|
|
2353
2353
|
static Decode(e) {
|
|
@@ -2356,7 +2356,7 @@ class Qt {
|
|
|
2356
2356
|
return n;
|
|
2357
2357
|
let i;
|
|
2358
2358
|
try {
|
|
2359
|
-
const o = JSON.parse(
|
|
2359
|
+
const o = JSON.parse(Lf(e));
|
|
2360
2360
|
if (!fa(o))
|
|
2361
2361
|
return n;
|
|
2362
2362
|
i = o;
|
|
@@ -2425,7 +2425,7 @@ function Hf(t) {
|
|
|
2425
2425
|
let e;
|
|
2426
2426
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Nl(t.buffer), e;
|
|
2427
2427
|
}
|
|
2428
|
-
const jf = uo("string"), Nt = uo("function"), Hl = uo("number"), zi = (t) => t !== null && typeof t == "object", Gf = (t) => t === !0 || t === !1,
|
|
2428
|
+
const jf = uo("string"), Nt = uo("function"), Hl = uo("number"), zi = (t) => t !== null && typeof t == "object", Gf = (t) => t === !0 || t === !1, Ls = (t) => {
|
|
2429
2429
|
if (!zi(t))
|
|
2430
2430
|
return !1;
|
|
2431
2431
|
const e = Ti(t);
|
|
@@ -2445,9 +2445,9 @@ const jf = uo("string"), Nt = uo("function"), Hl = uo("number"), zi = (t) => t !
|
|
|
2445
2445
|
function th() {
|
|
2446
2446
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
2447
2447
|
}
|
|
2448
|
-
const
|
|
2448
|
+
const _r = th(), Lr = typeof _r.FormData < "u" ? _r.FormData : void 0, nh = (t) => {
|
|
2449
2449
|
if (!t) return !1;
|
|
2450
|
-
if (
|
|
2450
|
+
if (Lr && t instanceof Lr) return !0;
|
|
2451
2451
|
const e = Ti(t);
|
|
2452
2452
|
if (!e || e === Object.prototype || !Nt(t.append)) return !1;
|
|
2453
2453
|
const n = Oa(t);
|
|
@@ -2492,7 +2492,7 @@ function ha(...t) {
|
|
|
2492
2492
|
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
2493
2493
|
return;
|
|
2494
2494
|
const l = e && typeof a == "string" && jl(i, a) || a, r = Ys(i, l) ? i[l] : void 0;
|
|
2495
|
-
|
|
2495
|
+
Ls(r) && Ls(o) ? i[l] = ha(r, o) : Ls(o) ? i[l] = ha({}, o) : ai(o) ? i[l] = o.slice() : (!n || !Pi(o)) && (i[l] = o);
|
|
2496
2496
|
};
|
|
2497
2497
|
for (let o = 0, a = t.length; o < a; o++) {
|
|
2498
2498
|
const l = t[o];
|
|
@@ -2645,7 +2645,7 @@ const Ph = (t) => {
|
|
|
2645
2645
|
isNumber: Hl,
|
|
2646
2646
|
isBoolean: Gf,
|
|
2647
2647
|
isObject: zi,
|
|
2648
|
-
isPlainObject:
|
|
2648
|
+
isPlainObject: Ls,
|
|
2649
2649
|
isEmptyObject: Wf,
|
|
2650
2650
|
isReadableStream: sh,
|
|
2651
2651
|
isRequest: oh,
|
|
@@ -2745,11 +2745,11 @@ const Dh = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), zh = new
|
|
|
2745
2745
|
function Da(t, e) {
|
|
2746
2746
|
return F.isArray(t) ? t.map((n) => Da(n, e)) : Oh(String(t).replace(e, ""));
|
|
2747
2747
|
}
|
|
2748
|
-
const
|
|
2748
|
+
const _h = (t) => Da(t, Dh), Lh = (t) => Da(t, zh);
|
|
2749
2749
|
function Xl(t) {
|
|
2750
2750
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2751
2751
|
return F.forEach(t.toJSON(), (n, i) => {
|
|
2752
|
-
e[i] =
|
|
2752
|
+
e[i] = Lh(n);
|
|
2753
2753
|
}), e;
|
|
2754
2754
|
}
|
|
2755
2755
|
const Vr = Symbol("internals");
|
|
@@ -2757,7 +2757,7 @@ function Hi(t) {
|
|
|
2757
2757
|
return t && String(t).trim().toLowerCase();
|
|
2758
2758
|
}
|
|
2759
2759
|
function Vs(t) {
|
|
2760
|
-
return t === !1 || t == null ? t : F.isArray(t) ? t.map(Vs) :
|
|
2760
|
+
return t === !1 || t == null ? t : F.isArray(t) ? t.map(Vs) : _h(String(t));
|
|
2761
2761
|
}
|
|
2762
2762
|
function Vh(t) {
|
|
2763
2763
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -3248,7 +3248,7 @@ class Br {
|
|
|
3248
3248
|
});
|
|
3249
3249
|
}
|
|
3250
3250
|
}
|
|
3251
|
-
const
|
|
3251
|
+
const _a = {
|
|
3252
3252
|
silentJSONParsing: !0,
|
|
3253
3253
|
forcedJSONParsing: !0,
|
|
3254
3254
|
clarifyTimeoutError: !1,
|
|
@@ -3263,10 +3263,10 @@ const La = {
|
|
|
3263
3263
|
Blob: Zh
|
|
3264
3264
|
},
|
|
3265
3265
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
3266
|
-
},
|
|
3267
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", nm =
|
|
3266
|
+
}, La = typeof window < "u" && typeof document < "u", pa = typeof navigator == "object" && navigator || void 0, em = La && (!pa || ["ReactNative", "NativeScript", "NS"].indexOf(pa.product) < 0), tm = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
3267
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", nm = La && window.location.href || "http://localhost", im = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3268
3268
|
__proto__: null,
|
|
3269
|
-
hasBrowserEnv:
|
|
3269
|
+
hasBrowserEnv: La,
|
|
3270
3270
|
hasStandardBrowserEnv: em,
|
|
3271
3271
|
hasStandardBrowserWebWorkerEnv: tm,
|
|
3272
3272
|
navigator: pa,
|
|
@@ -3335,7 +3335,7 @@ function rm(t, e, n) {
|
|
|
3335
3335
|
return (n || JSON.stringify)(t);
|
|
3336
3336
|
}
|
|
3337
3337
|
const hs = {
|
|
3338
|
-
transitional:
|
|
3338
|
+
transitional: _a,
|
|
3339
3339
|
adapter: ["xhr", "http", "fetch"],
|
|
3340
3340
|
transformRequest: [
|
|
3341
3341
|
function(e, n) {
|
|
@@ -3747,7 +3747,7 @@ const Cm = typeof XMLHttpRequest < "u", km = Cm && function(t) {
|
|
|
3747
3747
|
O.event = V || null, i(O), T(), P = null;
|
|
3748
3748
|
}, P.ontimeout = function() {
|
|
3749
3749
|
let V = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
3750
|
-
const A = s.transitional ||
|
|
3750
|
+
const A = s.transitional || _a;
|
|
3751
3751
|
s.timeoutErrorMessage && (V = s.timeoutErrorMessage), i(
|
|
3752
3752
|
new oe(
|
|
3753
3753
|
V,
|
|
@@ -4434,7 +4434,7 @@ let ni = class {
|
|
|
4434
4434
|
if (typeof T.runWhen == "function" && T.runWhen(n) === !1)
|
|
4435
4435
|
return;
|
|
4436
4436
|
r = r && T.synchronous;
|
|
4437
|
-
const P = n.transitional ||
|
|
4437
|
+
const P = n.transitional || _a;
|
|
4438
4438
|
P && P.legacyInterceptorReqResOrdering ? l.unshift(T.fulfilled, T.rejected) : l.push(T.fulfilled, T.rejected);
|
|
4439
4439
|
});
|
|
4440
4440
|
const c = [];
|
|
@@ -4502,7 +4502,7 @@ F.forEach(["post", "put", "patch", "query"], function(e) {
|
|
|
4502
4502
|
}
|
|
4503
4503
|
ni.prototype[e] = n(), e !== "query" && (ni.prototype[e + "Form"] = n(!0));
|
|
4504
4504
|
});
|
|
4505
|
-
let
|
|
4505
|
+
let _m = class du {
|
|
4506
4506
|
constructor(e) {
|
|
4507
4507
|
if (typeof e != "function")
|
|
4508
4508
|
throw new TypeError("executor must be a function.");
|
|
@@ -4575,7 +4575,7 @@ let Lm = class du {
|
|
|
4575
4575
|
};
|
|
4576
4576
|
}
|
|
4577
4577
|
};
|
|
4578
|
-
function
|
|
4578
|
+
function Lm(t) {
|
|
4579
4579
|
return function(n) {
|
|
4580
4580
|
return t.apply(null, n);
|
|
4581
4581
|
};
|
|
@@ -4666,7 +4666,7 @@ function cu(t) {
|
|
|
4666
4666
|
const st = cu(hs);
|
|
4667
4667
|
st.Axios = ni;
|
|
4668
4668
|
st.CanceledError = ms;
|
|
4669
|
-
st.CancelToken =
|
|
4669
|
+
st.CancelToken = _m;
|
|
4670
4670
|
st.isCancel = su;
|
|
4671
4671
|
st.VERSION = Va;
|
|
4672
4672
|
st.toFormData = co;
|
|
@@ -4675,7 +4675,7 @@ st.Cancel = st.CanceledError;
|
|
|
4675
4675
|
st.all = function(e) {
|
|
4676
4676
|
return Promise.all(e);
|
|
4677
4677
|
};
|
|
4678
|
-
st.spread =
|
|
4678
|
+
st.spread = Lm;
|
|
4679
4679
|
st.isAxiosError = Vm;
|
|
4680
4680
|
st.mergeConfig = ri;
|
|
4681
4681
|
st.AxiosHeaders = Dt;
|
|
@@ -5891,7 +5891,7 @@ class Ri {
|
|
|
5891
5891
|
return Ri.Run(e, { silent: !0 });
|
|
5892
5892
|
}
|
|
5893
5893
|
}
|
|
5894
|
-
const
|
|
5894
|
+
const _i = (t) => t === "" || t === null || t === void 0 || Array.isArray(t) && t.length === 0, gp = (t = "Обязательное поле") => (e) => _i(e) ? t : !0, vp = (t = "Некорректный email") => (e) => _i(e) || /^\S+@\S+\.\S+$/.test(String(e)) ? !0 : t, yp = (t, e = `Минимум ${t} символов`) => (n) => _i(n) || String(n).length >= t ? !0 : e, bp = (t, e = `Максимум ${t} символов`) => (n) => _i(n) || String(n).length <= t ? !0 : e, wp = (t, e = "Некорректное значение") => (n) => _i(n) || t.test(String(n)) ? !0 : e, vu = (t = "Некорректная дата", e = !1) => (n) => _i(n) ? e ? t : !0 : At.ParseRu(String(n)) ? !0 : t, Sp = (t, e = "Дата раньше начала периода") => (n) => {
|
|
5895
5895
|
const i = (a) => {
|
|
5896
5896
|
if (a == null || a === "")
|
|
5897
5897
|
return null;
|
|
@@ -5997,7 +5997,7 @@ var Re;
|
|
|
5997
5997
|
let Pp = (Re = class {
|
|
5998
5998
|
}, d(Re, "Arrays", Sn), d(Re, "Axios", Wi), d(Re, "BaseStore", ot), // static Phone = Phone;
|
|
5999
5999
|
d(Re, "Cache", Bn), d(Re, "Classes", xe), d(Re, "CarouselSwipe", Gm), d(Re, "Color", Ym), d(Re, "CreateSortModels", mu), d(Re, "Cursor", Qm), d(Re, "DateMask", tp), d(Re, "Dates", At), d(Re, "Dragger", sp), d(Re, "Extension", pu), d(Re, "Favourite", op), // static FTSP = FTSP;
|
|
6000
|
-
d(Re, "Hooks", gu), d(Re, "HttpClient", He), d(Re, "Id",
|
|
6000
|
+
d(Re, "Hooks", gu), d(Re, "HttpClient", He), d(Re, "Id", Lt), d(Re, "MakeCarousel", up), d(Re, "Period", ua), d(Re, "PhoneService", ba), d(Re, "Rating", dp), d(Re, "Router", nn), d(Re, "RouterGuard", cp), d(Re, "Scheduler", fp), d(Re, "Scroll", mp), // static Sizes = Sizes;
|
|
6001
6001
|
d(Re, "Sorter", pp), d(Re, "Static", oo), // static Statuses = Statuses;
|
|
6002
6002
|
d(Re, "Strings", it), d(Re, "Time", Ae), d(Re, "Timer", Js), d(Re, "Token", ss), d(Re, "Try", Ri), d(Re, "Menus", qa), // static useConfirmLeavePage = useConfirmLeavePage();
|
|
6003
6003
|
d(Re, "Validate", kp), d(Re, "WaitElement", xp), d(Re, "WebSocketClient", Tp), Re);
|
|
@@ -6129,7 +6129,7 @@ const ps = class ku {
|
|
|
6129
6129
|
}
|
|
6130
6130
|
static Create() {
|
|
6131
6131
|
const e = new ku();
|
|
6132
|
-
return e.id =
|
|
6132
|
+
return e.id = Lt.UUID(), e;
|
|
6133
6133
|
}
|
|
6134
6134
|
removeEmail(e) {
|
|
6135
6135
|
xe.RemoveFromClassById(e, this.emails);
|
|
@@ -6179,13 +6179,13 @@ let Dp = ps, zp = class extends ot {
|
|
|
6179
6179
|
super(Dp, "contacts");
|
|
6180
6180
|
}
|
|
6181
6181
|
};
|
|
6182
|
-
const
|
|
6183
|
-
let
|
|
6182
|
+
const _p = new zp();
|
|
6183
|
+
let Lp = class extends ot {
|
|
6184
6184
|
constructor() {
|
|
6185
6185
|
super(ts, "emails");
|
|
6186
6186
|
}
|
|
6187
6187
|
};
|
|
6188
|
-
const Vp = new
|
|
6188
|
+
const Vp = new Lp();
|
|
6189
6189
|
let Up = class extends ot {
|
|
6190
6190
|
constructor() {
|
|
6191
6191
|
super(Vl, "humans");
|
|
@@ -6416,10 +6416,10 @@ let eg = class extends ot {
|
|
|
6416
6416
|
const tg = new eg();
|
|
6417
6417
|
var Yt;
|
|
6418
6418
|
let an = (Yt = class {
|
|
6419
|
-
}, d(Yt, "Auth", Fp), d(Yt, "Contacts",
|
|
6420
|
-
var Ft = /* @__PURE__ */ ((t) => (t.XS = "xs", t.S = "s", t.M = "m", t.L = "l", t.XL = "xl", t))(Ft || {}),
|
|
6421
|
-
let ng = (
|
|
6422
|
-
}, d(
|
|
6419
|
+
}, d(Yt, "Auth", Fp), d(Yt, "Contacts", _p), d(Yt, "Emails", Vp), d(Yt, "FileInfos", new ot(jt, "file-infos")), d(Yt, "Humans", Bp), d(Yt, "Phones", Np), d(Yt, "Schemas", Yp), d(Yt, "UserAccounts", Kp), d(Yt, "ValueTypes", tg), d(Yt, "Search", wa), Yt);
|
|
6420
|
+
var Ft = /* @__PURE__ */ ((t) => (t.XS = "xs", t.S = "s", t.M = "m", t.L = "l", t.XL = "xl", t))(Ft || {}), Ln;
|
|
6421
|
+
let ng = (Ln = class {
|
|
6422
|
+
}, d(Ln, "Orders", Zt), d(Ln, "Sizes", Ft), d(Ln, "Statuses", qe), d(Ln, "DataTypes", Ee), d(Ln, "ValueTypes", Mt), d(Ln, "Operators", Ze), Ln);
|
|
6423
6423
|
class ig {
|
|
6424
6424
|
constructor() {
|
|
6425
6425
|
d(this, "title", "");
|
|
@@ -6445,7 +6445,7 @@ class ig {
|
|
|
6445
6445
|
* «сырого» объекта и не пересчитывается — заголовок в шапке залипал.
|
|
6446
6446
|
*/
|
|
6447
6447
|
get Title() {
|
|
6448
|
-
return
|
|
6448
|
+
return _(() => sg(this.title, this.count)).value;
|
|
6449
6449
|
}
|
|
6450
6450
|
}
|
|
6451
6451
|
function sg(t, e) {
|
|
@@ -6641,12 +6641,12 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6641
6641
|
disabled: { type: Boolean, default: !1, required: !1 }
|
|
6642
6642
|
},
|
|
6643
6643
|
setup(t) {
|
|
6644
|
-
const e = t, n = ln(), i =
|
|
6644
|
+
const e = t, n = ln(), i = _(() => {
|
|
6645
6645
|
const M = {};
|
|
6646
6646
|
for (const x of Object.keys(n))
|
|
6647
6647
|
["disable", "color", "size", "flat", "outline", "unelevated", "type"].includes(x) || (M[x] = n[x]);
|
|
6648
6648
|
return M;
|
|
6649
|
-
}), s = ["submit", "button", "reset"], o =
|
|
6649
|
+
}), s = ["submit", "button", "reset"], o = _(() => s.includes(e.type)), a = _(() => o.value ? e.type : void 0), l = _(() => o.value ? qe.Primary : e.type), r = _(() => {
|
|
6650
6650
|
const M = {};
|
|
6651
6651
|
return e.margin && (M.margin = e.margin), e.padding && (M.padding = e.padding), e.width && (M.maxWidth = e.width, M.minWidth = e.width), e.height && (M.minHeight = e.height, M.maxHeight = e.height), e.fontSize && (M.fontSize = e.fontSize), M;
|
|
6652
6652
|
}), c = {
|
|
@@ -6655,20 +6655,20 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6655
6655
|
[qe.Warning]: "warning",
|
|
6656
6656
|
[qe.Error]: "negative",
|
|
6657
6657
|
[qe.Info]: "info"
|
|
6658
|
-
}, f =
|
|
6658
|
+
}, f = _(() => n.color !== void 0 ? String(n.color) : c[l.value] ?? "primary"), h = {
|
|
6659
6659
|
[Ft.XS]: "xs",
|
|
6660
6660
|
[Ft.S]: "sm",
|
|
6661
6661
|
[Ft.M]: "md",
|
|
6662
6662
|
[Ft.L]: "lg",
|
|
6663
6663
|
[Ft.XL]: "xl"
|
|
6664
|
-
}, p = ["xs", "sm", "md", "lg", "xl"], v =
|
|
6664
|
+
}, p = ["xs", "sm", "md", "lg", "xl"], v = _(() => n.size !== void 0 ? String(n.size) : p.includes(e.size) ? e.size : h[e.size] ?? "md"), C = _(
|
|
6665
6665
|
() => n.flat !== void 0 ? n.flat : ["text", "pag", "text_ano"].includes(e.skin)
|
|
6666
|
-
), T =
|
|
6666
|
+
), T = _(
|
|
6667
6667
|
() => n.outline !== void 0 ? n.outline : e.skin === "invert"
|
|
6668
|
-
), P =
|
|
6668
|
+
), P = _(
|
|
6669
6669
|
() => n.unelevated !== void 0 ? n.unelevated : e.skin === "base"
|
|
6670
|
-
), $ =
|
|
6671
|
-
return (M, x) => (m(),
|
|
6670
|
+
), $ = _(() => n.disable ?? e.disabled);
|
|
6671
|
+
return (M, x) => (m(), L(u(wn), rt(u(i), {
|
|
6672
6672
|
style: u(r),
|
|
6673
6673
|
color: u(f),
|
|
6674
6674
|
size: u(v),
|
|
@@ -6744,7 +6744,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6744
6744
|
level: { type: String, default: "top", required: !1 }
|
|
6745
6745
|
},
|
|
6746
6746
|
setup(t) {
|
|
6747
|
-
const e = t, n = ln(), i =
|
|
6747
|
+
const e = t, n = ln(), i = _(() => {
|
|
6748
6748
|
const r = {};
|
|
6749
6749
|
for (const c of Object.keys(n))
|
|
6750
6750
|
c !== "delay" && (r[c] = n[c]);
|
|
@@ -6755,13 +6755,13 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6755
6755
|
warning: "var(--q-warning)",
|
|
6756
6756
|
danger: "var(--q-negative)",
|
|
6757
6757
|
neutral: "var(--q-dark)"
|
|
6758
|
-
}, o =
|
|
6758
|
+
}, o = _(() => {
|
|
6759
6759
|
const r = e.relPosition === "left" ? "right" : "left";
|
|
6760
6760
|
return `${e.level === "top" ? "top" : "bottom"} ${r}`;
|
|
6761
|
-
}), a =
|
|
6761
|
+
}), a = _(() => {
|
|
6762
6762
|
const r = e.relPosition === "left" ? "right" : "left";
|
|
6763
6763
|
return `${e.level === "top" ? "bottom" : "top"} ${r}`;
|
|
6764
|
-
}), l =
|
|
6764
|
+
}), l = _(() => ({
|
|
6765
6765
|
background: s[e.typeStyle],
|
|
6766
6766
|
whiteSpace: "pre",
|
|
6767
6767
|
height: e.height,
|
|
@@ -6788,7 +6788,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6788
6788
|
]),
|
|
6789
6789
|
_: 1
|
|
6790
6790
|
}, 8, ["delay", "anchor", "self", "style"])
|
|
6791
|
-
], 16)) : (m(),
|
|
6791
|
+
], 16)) : (m(), L(u(Rr), rt({ key: 1 }, u(i), {
|
|
6792
6792
|
delay: t.timeout,
|
|
6793
6793
|
class: "tooltip-box"
|
|
6794
6794
|
}), {
|
|
@@ -6853,18 +6853,18 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6853
6853
|
}),
|
|
6854
6854
|
emits: /* @__PURE__ */ De(["blur", "input", "focus", "clear"], ["update:modelValue"]),
|
|
6855
6855
|
setup(t, { expose: e, emit: n }) {
|
|
6856
|
-
const i = n, s = vt(t, "modelValue"), o = ln(), a =
|
|
6856
|
+
const i = n, s = vt(t, "modelValue"), o = ln(), a = _(() => typeof o.id == "string" ? o.id : void 0), l = _(() => {
|
|
6857
6857
|
const O = {};
|
|
6858
6858
|
for (const R of Object.keys(o))
|
|
6859
|
-
R !== "id" && R !== "disable" && (O[R] = o[R]);
|
|
6859
|
+
R !== "id" && R !== "disable" && R !== "rows" && R !== "autogrow" && (O[R] = o[R]);
|
|
6860
6860
|
return O;
|
|
6861
|
-
}), r = t, c =
|
|
6861
|
+
}), r = t, c = _(() => {
|
|
6862
6862
|
var O;
|
|
6863
6863
|
return !!((O = r.rules) != null && O.length);
|
|
6864
|
-
}), f =
|
|
6864
|
+
}), f = _(() => o.type === "textarea"), h = _(() => {
|
|
6865
6865
|
const O = r.size === "sm" ? Ft.S : r.size === "xs" ? Ft.XS : r.size;
|
|
6866
6866
|
return O === Ft.M ? void 0 : `p-field--${O}`;
|
|
6867
|
-
}), p =
|
|
6867
|
+
}), p = _(() => o.disable ?? r.disabled), v = D(null);
|
|
6868
6868
|
function C() {
|
|
6869
6869
|
var O;
|
|
6870
6870
|
(O = v.value) == null || O.focus();
|
|
@@ -6892,11 +6892,11 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6892
6892
|
e({ focus: C, blur: T, select: P, getNativeElement: $, validate: M, resetValidation: x });
|
|
6893
6893
|
const V = () => {
|
|
6894
6894
|
i("input", s.value);
|
|
6895
|
-
}, A =
|
|
6895
|
+
}, A = _(() => {
|
|
6896
6896
|
const O = {};
|
|
6897
6897
|
return r.margin && (O.margin = r.margin), r.padding && (O.padding = r.padding), r.width && (O.width = r.width), r.borderColor && (O["--p-border-color"] = r.borderColor), O;
|
|
6898
6898
|
});
|
|
6899
|
-
return (O, R) => (m(),
|
|
6899
|
+
return (O, R) => (m(), L(u(rs), rt({
|
|
6900
6900
|
ref_key: "input",
|
|
6901
6901
|
ref: v,
|
|
6902
6902
|
modelValue: s.value,
|
|
@@ -6915,8 +6915,8 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6915
6915
|
class: ["p-input", u(h)],
|
|
6916
6916
|
outlined: "",
|
|
6917
6917
|
dense: !u(f),
|
|
6918
|
-
autogrow: u(f) &&
|
|
6919
|
-
rows: u(f) ?
|
|
6918
|
+
autogrow: u(f) && r.autogrow,
|
|
6919
|
+
rows: u(f) ? r.rows : void 0,
|
|
6920
6920
|
"onUpdate:modelValue": V,
|
|
6921
6921
|
onBlur: R[1] || (R[1] = (E) => O.$emit("blur", s.value)),
|
|
6922
6922
|
onFocus: R[2] || (R[2] = (E) => O.$emit("focus", s.value)),
|
|
@@ -6985,7 +6985,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
6985
6985
|
} : void 0
|
|
6986
6986
|
]), 1040, ["modelValue", "for", "label", "mask", "disable", "rules", "error", "error-message", "hide-bottom-space", "input-style", "style", "class", "dense", "autogrow", "rows"]));
|
|
6987
6987
|
}
|
|
6988
|
-
}), Ne = /* @__PURE__ */ X(bg, [["__scopeId", "data-v-
|
|
6988
|
+
}), Ne = /* @__PURE__ */ X(bg, [["__scopeId", "data-v-e140f4f9"]]), wg = { class: "row items-center no-wrap row-actions" }, Sg = /* @__PURE__ */ Y({
|
|
6989
6989
|
__name: "ContactRowActions",
|
|
6990
6990
|
props: {
|
|
6991
6991
|
copyLabel: {},
|
|
@@ -7014,7 +7014,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7014
7014
|
default: k(() => [
|
|
7015
7015
|
g(u(Oi), { dense: "" }, {
|
|
7016
7016
|
default: k(() => [
|
|
7017
|
-
et((m(),
|
|
7017
|
+
et((m(), L(u(qn), {
|
|
7018
7018
|
clickable: "",
|
|
7019
7019
|
onClick: s[0] || (s[0] = (a) => n("copy"))
|
|
7020
7020
|
}, {
|
|
@@ -7039,7 +7039,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7039
7039
|
})), [
|
|
7040
7040
|
[o]
|
|
7041
7041
|
]),
|
|
7042
|
-
et((m(),
|
|
7042
|
+
et((m(), L(u(qn), {
|
|
7043
7043
|
clickable: "",
|
|
7044
7044
|
onClick: s[1] || (s[1] = (a) => n("edit"))
|
|
7045
7045
|
}, {
|
|
@@ -7066,7 +7066,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7066
7066
|
]),
|
|
7067
7067
|
t.canRemove ? (m(), w(J, { key: 0 }, [
|
|
7068
7068
|
g(u(Zi)),
|
|
7069
|
-
et((m(),
|
|
7069
|
+
et((m(), L(u(qn), {
|
|
7070
7070
|
clickable: "",
|
|
7071
7071
|
onClick: s[2] || (s[2] = (a) => n("remove"))
|
|
7072
7072
|
}, {
|
|
@@ -7129,13 +7129,13 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7129
7129
|
o.value = p, s("update:modelValue", p);
|
|
7130
7130
|
};
|
|
7131
7131
|
e({ show: () => a(!0), hide: () => a(!1), toggle: () => a(!o.value), opened: o });
|
|
7132
|
-
const f = ln(), h =
|
|
7132
|
+
const f = ln(), h = _(() => {
|
|
7133
7133
|
const p = {};
|
|
7134
7134
|
for (const v of Object.keys(f))
|
|
7135
7135
|
["modelValue", "persistent", "maximized", "transition-show", "transition-hide", "onUpdate:modelValue"].includes(v) || (p[v] = f[v]);
|
|
7136
7136
|
return p;
|
|
7137
7137
|
});
|
|
7138
|
-
return (p, v) => (m(),
|
|
7138
|
+
return (p, v) => (m(), L(u(Fc), rt({
|
|
7139
7139
|
modelValue: u(o),
|
|
7140
7140
|
"onUpdate:modelValue": v[0] || (v[0] = (C) => $e(o) ? o.value = C : null)
|
|
7141
7141
|
}, u(h), {
|
|
@@ -7193,7 +7193,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7193
7193
|
emits: /* @__PURE__ */ De(["confirm"], ["update:modelValue"]),
|
|
7194
7194
|
setup(t) {
|
|
7195
7195
|
const e = Yn, n = vt(t, "modelValue");
|
|
7196
|
-
return (i, s) => (m(),
|
|
7196
|
+
return (i, s) => (m(), L(rn, {
|
|
7197
7197
|
modelValue: n.value,
|
|
7198
7198
|
"onUpdate:modelValue": s[1] || (s[1] = (o) => n.value = o),
|
|
7199
7199
|
persistent: ""
|
|
@@ -7256,7 +7256,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7256
7256
|
emits: /* @__PURE__ */ De(["save"], ["update:modelValue"]),
|
|
7257
7257
|
setup(t) {
|
|
7258
7258
|
const e = Yn, n = vt(t, "modelValue");
|
|
7259
|
-
return (i, s) => (m(),
|
|
7259
|
+
return (i, s) => (m(), L(rn, {
|
|
7260
7260
|
modelValue: n.value,
|
|
7261
7261
|
"onUpdate:modelValue": s[1] || (s[1] = (o) => n.value = o),
|
|
7262
7262
|
persistent: ""
|
|
@@ -7338,7 +7338,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7338
7338
|
}, zg = {
|
|
7339
7339
|
key: 1,
|
|
7340
7340
|
class: "column items-center q-py-lg bg-grey-1 rounded-borders"
|
|
7341
|
-
},
|
|
7341
|
+
}, _g = { class: "text-body2 text-grey-7" }, Lg = /* @__PURE__ */ Y({
|
|
7342
7342
|
__name: "PContactFormViewEmails",
|
|
7343
7343
|
props: {
|
|
7344
7344
|
presetted: {},
|
|
@@ -7347,7 +7347,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7347
7347
|
labels: {}
|
|
7348
7348
|
},
|
|
7349
7349
|
setup(t) {
|
|
7350
|
-
const e = t, n =
|
|
7350
|
+
const e = t, n = _(() => ({ ...An, ...e.labels })), i = _(() => e.presetted ?? 0), s = _(() => e.adapter.emails(e.contact)), o = D(!1), a = D(-1), l = D(null), r = D(""), c = D(""), f = D(!1), h = D(!1), p = D(!1), v = D(!1), C = D(-1), T = async (A) => {
|
|
7351
7351
|
A && (await navigator.clipboard.writeText(A), G.UI.Notify.Success(n.value.copiedEmail));
|
|
7352
7352
|
}, P = (A) => {
|
|
7353
7353
|
var O, R;
|
|
@@ -7410,7 +7410,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7410
7410
|
onClick: M
|
|
7411
7411
|
}, null, 8, ["loading"])
|
|
7412
7412
|
]),
|
|
7413
|
-
u(s).length > 0 ? (m(),
|
|
7413
|
+
u(s).length > 0 ? (m(), L(Rl, {
|
|
7414
7414
|
key: 0,
|
|
7415
7415
|
name: "list",
|
|
7416
7416
|
tag: "div",
|
|
@@ -7448,7 +7448,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7448
7448
|
color: "grey-4",
|
|
7449
7449
|
class: "q-mb-sm"
|
|
7450
7450
|
}),
|
|
7451
|
-
b("div",
|
|
7451
|
+
b("div", _g, U(u(n).noEmails), 1),
|
|
7452
7452
|
O[4] || (O[4] = b("div", { class: "text-caption text-grey-5 q-mb-sm" }, "Нажмите «Добавить», чтобы указать email", -1)),
|
|
7453
7453
|
g(ue, {
|
|
7454
7454
|
icon: "add",
|
|
@@ -7469,7 +7469,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7469
7469
|
onSave: $
|
|
7470
7470
|
}, {
|
|
7471
7471
|
default: k(() => [
|
|
7472
|
-
u(l) ? (m(),
|
|
7472
|
+
u(l) ? (m(), L(Ne, {
|
|
7473
7473
|
key: 0,
|
|
7474
7474
|
modelValue: u(r),
|
|
7475
7475
|
"onUpdate:modelValue": O[0] || (O[0] = (R) => $e(r) ? r.value = R : null),
|
|
@@ -7494,7 +7494,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7494
7494
|
]),
|
|
7495
7495
|
_: 1
|
|
7496
7496
|
}, 8, ["modelValue", "rules"])) : H("", !0),
|
|
7497
|
-
u(l) ? (m(),
|
|
7497
|
+
u(l) ? (m(), L(Ne, {
|
|
7498
7498
|
key: 1,
|
|
7499
7499
|
modelValue: u(c),
|
|
7500
7500
|
"onUpdate:modelValue": O[1] || (O[1] = (R) => $e(c) ? c.value = R : null),
|
|
@@ -7524,7 +7524,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7524
7524
|
}, null, 8, ["modelValue", "loading"])
|
|
7525
7525
|
]));
|
|
7526
7526
|
}
|
|
7527
|
-
}),
|
|
7527
|
+
}), Li = /* @__PURE__ */ X(Lg, [["__scopeId", "data-v-b98096df"]]), Vg = { class: "q-mt-sm" }, Ug = { class: "row items-center justify-between q-mb-xs q-px-xs" }, Bg = { class: "row items-center q-gutter-xs" }, qg = { class: "text-uppercase text-caption text-weight-medium text-grey-7" }, Ng = {
|
|
7528
7528
|
key: 0,
|
|
7529
7529
|
class: "text-caption text-grey-5"
|
|
7530
7530
|
}, Hg = {
|
|
@@ -7545,7 +7545,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7545
7545
|
labels: {}
|
|
7546
7546
|
},
|
|
7547
7547
|
setup(t) {
|
|
7548
|
-
const e = t, n =
|
|
7548
|
+
const e = t, n = _(() => ({ ...An, ...e.labels })), i = _(() => e.presetted ?? 0), s = _(() => e.adapter.phones(e.contact)), o = D(!1), a = D(-1), l = D(null), r = _(
|
|
7549
7549
|
() => l.value ? e.adapter.phoneMask(l.value) : void 0
|
|
7550
7550
|
), c = D(""), f = D(""), h = D(!1), p = D(!1), v = D(!1), C = D(!1), T = D(-1), P = async (O) => {
|
|
7551
7551
|
O && (await navigator.clipboard.writeText(O), G.UI.Notify.Success(n.value.copiedNumber));
|
|
@@ -7610,7 +7610,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7610
7610
|
onClick: x
|
|
7611
7611
|
}, null, 8, ["loading"])
|
|
7612
7612
|
]),
|
|
7613
|
-
u(s).length > 0 ? (m(),
|
|
7613
|
+
u(s).length > 0 ? (m(), L(Rl, {
|
|
7614
7614
|
key: 0,
|
|
7615
7615
|
name: "list",
|
|
7616
7616
|
tag: "div",
|
|
@@ -7669,7 +7669,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7669
7669
|
onSave: M
|
|
7670
7670
|
}, {
|
|
7671
7671
|
default: k(() => [
|
|
7672
|
-
u(l) ? (m(),
|
|
7672
|
+
u(l) ? (m(), L(Ne, {
|
|
7673
7673
|
key: 0,
|
|
7674
7674
|
modelValue: u(c),
|
|
7675
7675
|
"onUpdate:modelValue": R[0] || (R[0] = (E) => $e(c) ? c.value = E : null),
|
|
@@ -7691,7 +7691,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7691
7691
|
]),
|
|
7692
7692
|
_: 1
|
|
7693
7693
|
}, 8, ["modelValue", "mask", "rules"])) : H("", !0),
|
|
7694
|
-
u(l) && u(a) >= u(i) ? (m(),
|
|
7694
|
+
u(l) && u(a) >= u(i) ? (m(), L(Ne, {
|
|
7695
7695
|
key: 1,
|
|
7696
7696
|
modelValue: u(f),
|
|
7697
7697
|
"onUpdate:modelValue": R[1] || (R[1] = (E) => $e(f) ? f.value = E : null),
|
|
@@ -7736,13 +7736,13 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7736
7736
|
labels: {}
|
|
7737
7737
|
},
|
|
7738
7738
|
setup(t) {
|
|
7739
|
-
const e = t, n =
|
|
7739
|
+
const e = t, n = _(() => ({ ...An, ...e.labels })), i = _(() => e.adapter.phones(e.contact)), s = _(() => e.adapter.emails(e.contact)), o = _(() => e.adapter.copyAll(e.contact)), a = D(!1), l = () => {
|
|
7740
7740
|
a.value = !a.value;
|
|
7741
7741
|
}, r = async () => {
|
|
7742
7742
|
const c = o.value;
|
|
7743
7743
|
c && (await navigator.clipboard.writeText(c), G.UI.Notify.Success(n.value.copied));
|
|
7744
7744
|
};
|
|
7745
|
-
return (c, f) => (m(),
|
|
7745
|
+
return (c, f) => (m(), L(u(Kt), {
|
|
7746
7746
|
flat: "",
|
|
7747
7747
|
bordered: "",
|
|
7748
7748
|
class: "contact-form-card",
|
|
@@ -7771,7 +7771,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7771
7771
|
onClick: f[0] || (f[0] = Je(() => {
|
|
7772
7772
|
}, ["stop"]))
|
|
7773
7773
|
}, [
|
|
7774
|
-
u(o) ? (m(),
|
|
7774
|
+
u(o) ? (m(), L(ue, {
|
|
7775
7775
|
key: 0,
|
|
7776
7776
|
flat: "",
|
|
7777
7777
|
dense: "",
|
|
@@ -7806,7 +7806,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7806
7806
|
labels: u(n)
|
|
7807
7807
|
}, null, 8, ["contact", "adapter", "presetted", "labels"]),
|
|
7808
7808
|
g(u(Zi), { class: "q-my-sm" }),
|
|
7809
|
-
g(
|
|
7809
|
+
g(Li, {
|
|
7810
7810
|
contact: t.contact,
|
|
7811
7811
|
adapter: t.adapter,
|
|
7812
7812
|
presetted: t.emailsPresetted,
|
|
@@ -7835,7 +7835,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7835
7835
|
labels: {}
|
|
7836
7836
|
},
|
|
7837
7837
|
setup(t) {
|
|
7838
|
-
const e =
|
|
7838
|
+
const e = _(() => ({ ...An }));
|
|
7839
7839
|
return (n, i) => (m(), w("div", tv, [
|
|
7840
7840
|
g(Vi, {
|
|
7841
7841
|
contact: t.contact,
|
|
@@ -7844,7 +7844,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7844
7844
|
labels: u(e)
|
|
7845
7845
|
}, null, 8, ["contact", "adapter", "presetted", "labels"]),
|
|
7846
7846
|
i[0] || (i[0] = b("div", { class: "edit-sections-divider" }, null, -1)),
|
|
7847
|
-
g(
|
|
7847
|
+
g(Li, {
|
|
7848
7848
|
contact: t.contact,
|
|
7849
7849
|
adapter: t.adapter,
|
|
7850
7850
|
presetted: t.emailsPresetted,
|
|
@@ -7861,9 +7861,9 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7861
7861
|
labels: {}
|
|
7862
7862
|
},
|
|
7863
7863
|
setup(t) {
|
|
7864
|
-
const e =
|
|
7864
|
+
const e = _(() => ({ ...An }));
|
|
7865
7865
|
return (n, i) => (m(), w("div", iv, [
|
|
7866
|
-
g(
|
|
7866
|
+
g(Li, {
|
|
7867
7867
|
contact: t.contact,
|
|
7868
7868
|
adapter: t.adapter,
|
|
7869
7869
|
presetted: t.presetted,
|
|
@@ -7880,7 +7880,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7880
7880
|
labels: {}
|
|
7881
7881
|
},
|
|
7882
7882
|
setup(t) {
|
|
7883
|
-
const e =
|
|
7883
|
+
const e = _(() => ({ ...An }));
|
|
7884
7884
|
return (n, i) => (m(), w("div", ov, [
|
|
7885
7885
|
g(Vi, {
|
|
7886
7886
|
contact: t.contact,
|
|
@@ -7898,7 +7898,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7898
7898
|
labels: {}
|
|
7899
7899
|
},
|
|
7900
7900
|
setup(t) {
|
|
7901
|
-
const e = t, n =
|
|
7901
|
+
const e = t, n = _(() => ({ ...An, ...e.labels }));
|
|
7902
7902
|
return (i, s) => (m(), w("div", rv, [
|
|
7903
7903
|
g(Vi, {
|
|
7904
7904
|
contact: t.contact,
|
|
@@ -7906,7 +7906,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7906
7906
|
labels: u(n)
|
|
7907
7907
|
}, null, 8, ["contact", "adapter", "labels"]),
|
|
7908
7908
|
s[0] || (s[0] = b("div", { class: "view-sections-divider" }, null, -1)),
|
|
7909
|
-
g(
|
|
7909
|
+
g(Li, {
|
|
7910
7910
|
contact: t.contact,
|
|
7911
7911
|
adapter: t.adapter,
|
|
7912
7912
|
labels: u(n)
|
|
@@ -7915,7 +7915,7 @@ const ue = /* @__PURE__ */ Y({
|
|
|
7915
7915
|
}
|
|
7916
7916
|
}), Fu = /* @__PURE__ */ X(lv, [["__scopeId", "data-v-a8c71ee4"]]);
|
|
7917
7917
|
function Ou(t) {
|
|
7918
|
-
t.component("PContactForm", Iu), t.component("PContactFormDeleteDialog", mo), t.component("PContactFormEdit", Mu), t.component("PContactFormEditDialog", po), t.component("PContactFormEditEmails", Au), t.component("PContactFormEditPhones", Eu), t.component("PContactFormView", Fu), t.component("PContactFormViewEmails",
|
|
7918
|
+
t.component("PContactForm", Iu), t.component("PContactFormDeleteDialog", mo), t.component("PContactFormEdit", Mu), t.component("PContactFormEditDialog", po), t.component("PContactFormEditEmails", Au), t.component("PContactFormEditPhones", Eu), t.component("PContactFormView", Fu), t.component("PContactFormViewEmails", Li), t.component("PContactFormViewPhones", Vi);
|
|
7919
7919
|
}
|
|
7920
7920
|
const uv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7921
7921
|
__proto__: null,
|
|
@@ -7926,7 +7926,7 @@ const uv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7926
7926
|
PContactFormEditEmails: Au,
|
|
7927
7927
|
PContactFormEditPhones: Eu,
|
|
7928
7928
|
PContactFormView: Fu,
|
|
7929
|
-
PContactFormViewEmails:
|
|
7929
|
+
PContactFormViewEmails: Li,
|
|
7930
7930
|
PContactFormViewPhones: Vi,
|
|
7931
7931
|
default: Ou,
|
|
7932
7932
|
defaultContactsLabels: An
|
|
@@ -7948,7 +7948,7 @@ const uv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7948
7948
|
}),
|
|
7949
7949
|
emits: /* @__PURE__ */ De(["change"], ["update:modelValue"]),
|
|
7950
7950
|
setup(t, { emit: e }) {
|
|
7951
|
-
const n = vt(t, "modelValue"), i = e, s = ln(), o =
|
|
7951
|
+
const n = vt(t, "modelValue"), i = e, s = ln(), o = _(() => {
|
|
7952
7952
|
const l = {};
|
|
7953
7953
|
for (const r of Object.keys(s))
|
|
7954
7954
|
l[r] = s[r];
|
|
@@ -7989,7 +7989,7 @@ function xn() {
|
|
|
7989
7989
|
return Zc(Du, null) ?? Gt.Get();
|
|
7990
7990
|
}
|
|
7991
7991
|
function $3() {
|
|
7992
|
-
return
|
|
7992
|
+
return _(() => xn());
|
|
7993
7993
|
}
|
|
7994
7994
|
const zu = /* @__PURE__ */ Y({
|
|
7995
7995
|
inheritAttrs: !1,
|
|
@@ -8007,7 +8007,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8007
8007
|
const l = (r) => {
|
|
8008
8008
|
o.value = !!r, n.model.setBoolean(!!r), r ? s.setF(n.model) : s.removeF(n.model), i("load");
|
|
8009
8009
|
};
|
|
8010
|
-
return (r, c) => (m(),
|
|
8010
|
+
return (r, c) => (m(), L(os, rt(r.$attrs, {
|
|
8011
8011
|
"model-value": u(o),
|
|
8012
8012
|
label: t.model.label,
|
|
8013
8013
|
size: "mini",
|
|
@@ -8048,7 +8048,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8048
8048
|
}, null, 8, ["model-value", "label"])
|
|
8049
8049
|
]));
|
|
8050
8050
|
}
|
|
8051
|
-
}),
|
|
8051
|
+
}), _u = /* @__PURE__ */ X(mv, [["__scopeId", "data-v-28a0bbfb"]]), pv = { class: "row items-center justify-end q-gutter-sm" }, gv = /* @__PURE__ */ Y({
|
|
8052
8052
|
__name: "PFilterDates",
|
|
8053
8053
|
props: {
|
|
8054
8054
|
model: {},
|
|
@@ -8062,7 +8062,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8062
8062
|
}, l = D({
|
|
8063
8063
|
from: n.model.date1 ? a(n.model.date1) : void 0,
|
|
8064
8064
|
to: n.model.date2 ? a(n.model.date2) : void 0
|
|
8065
|
-
}), r =
|
|
8065
|
+
}), r = _(() => {
|
|
8066
8066
|
const { from: h, to: p } = l.value;
|
|
8067
8067
|
if (h && p) {
|
|
8068
8068
|
const v = (C) => C.toString().padStart(2, "0");
|
|
@@ -8076,7 +8076,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8076
8076
|
};
|
|
8077
8077
|
return (h, p) => {
|
|
8078
8078
|
const v = Ma("close-popup");
|
|
8079
|
-
return m(),
|
|
8079
|
+
return m(), L(Ne, {
|
|
8080
8080
|
"model-value": u(r),
|
|
8081
8081
|
label: t.label,
|
|
8082
8082
|
clearable: "",
|
|
@@ -8137,7 +8137,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8137
8137
|
}, 8, ["model-value", "label"]);
|
|
8138
8138
|
};
|
|
8139
8139
|
}
|
|
8140
|
-
}),
|
|
8140
|
+
}), Lu = /* @__PURE__ */ X(gv, [["__scopeId", "data-v-dfaf8d41"]]), Vu = /* @__PURE__ */ Y({
|
|
8141
8141
|
__name: "PFilterInput",
|
|
8142
8142
|
props: {
|
|
8143
8143
|
model: {},
|
|
@@ -8147,10 +8147,10 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8147
8147
|
},
|
|
8148
8148
|
emits: ["input"],
|
|
8149
8149
|
setup(t, { expose: e, emit: n }) {
|
|
8150
|
-
const i = t, s = n, o = xn(), a = D(), l =
|
|
8150
|
+
const i = t, s = n, o = xn(), a = D(), l = _(() => {
|
|
8151
8151
|
const h = i.model;
|
|
8152
8152
|
return o.f.find((v) => v.col === h.col && v.model === h.model) ?? h;
|
|
8153
|
-
}), r =
|
|
8153
|
+
}), r = _({
|
|
8154
8154
|
get: () => l.value.value1 ?? "",
|
|
8155
8155
|
// ⚠️ `liveModel` — computed, `.value` у него нет; пишем в найденный объект
|
|
8156
8156
|
// FTSP, иначе правка уйдёт в пустоту.
|
|
@@ -8172,7 +8172,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8172
8172
|
return e({ focus: () => {
|
|
8173
8173
|
var h, p;
|
|
8174
8174
|
return (p = (h = a.value) == null ? void 0 : h.focus) == null ? void 0 : p.call(h);
|
|
8175
|
-
} }), (h, p) => (m(),
|
|
8175
|
+
} }), (h, p) => (m(), L(Ne, {
|
|
8176
8176
|
ref_key: "inputRef",
|
|
8177
8177
|
ref: a,
|
|
8178
8178
|
"model-value": u(r),
|
|
@@ -8198,10 +8198,10 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8198
8198
|
},
|
|
8199
8199
|
emits: ["input"],
|
|
8200
8200
|
setup(t, { emit: e }) {
|
|
8201
|
-
const n = t, i = e, s = xn(), o =
|
|
8201
|
+
const n = t, i = e, s = xn(), o = _(() => {
|
|
8202
8202
|
const f = n.models[0], h = s.f.find((p) => p.col === (f == null ? void 0 : f.col) && p.model === (f == null ? void 0 : f.model));
|
|
8203
8203
|
return h && (h.value1 ?? "") !== "" ? h : f ?? h;
|
|
8204
|
-
}), a =
|
|
8204
|
+
}), a = _({
|
|
8205
8205
|
get: () => {
|
|
8206
8206
|
var f;
|
|
8207
8207
|
return ((f = o.value) == null ? void 0 : f.value1) ?? "";
|
|
@@ -8229,7 +8229,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8229
8229
|
f.value1 = "";
|
|
8230
8230
|
}), r();
|
|
8231
8231
|
};
|
|
8232
|
-
return (f, h) => (m(),
|
|
8232
|
+
return (f, h) => (m(), L(Ne, {
|
|
8233
8233
|
"model-value": a.value,
|
|
8234
8234
|
debounce: t.debounce,
|
|
8235
8235
|
placeholder: t.placeholder,
|
|
@@ -8326,23 +8326,23 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8326
8326
|
(A = o.value) == null || A.resetValidation();
|
|
8327
8327
|
}
|
|
8328
8328
|
e({ focus: a, blur: l, showPopup: r, hidePopup: c, validate: f, resetValidation: h });
|
|
8329
|
-
const p = ln(), v =
|
|
8329
|
+
const p = ln(), v = _(() => typeof p.id == "string" ? p.id : void 0), C = _(() => {
|
|
8330
8330
|
const A = {};
|
|
8331
8331
|
for (const O of Object.keys(p))
|
|
8332
8332
|
O === "id" || O === "disable" || O === "onUpdate:modelValue" || O === "onUpdate:model-value" || O === "onChange" || O === "onchange" || (A[O] = p[O]);
|
|
8333
8333
|
return A;
|
|
8334
|
-
}), T = t, P =
|
|
8334
|
+
}), T = t, P = _(() => p.disable ?? T.disabled), $ = _(() => {
|
|
8335
8335
|
const A = T.size === "sm" ? Ft.S : T.size === "xs" ? Ft.XS : T.size;
|
|
8336
8336
|
return A === Ft.M ? void 0 : `p-field--${A}`;
|
|
8337
8337
|
}), M = (A) => {
|
|
8338
8338
|
s("change", A);
|
|
8339
8339
|
}, x = () => {
|
|
8340
8340
|
s("clear", void 0);
|
|
8341
|
-
}, V =
|
|
8341
|
+
}, V = _(() => {
|
|
8342
8342
|
const A = {};
|
|
8343
8343
|
return T.margin && (A.margin = T.margin), T.padding && (A.padding = T.padding), T.width && (A.width = T.width), T.inPadding && (A.padding = T.inPadding), A;
|
|
8344
8344
|
});
|
|
8345
|
-
return (A, O) => (m(),
|
|
8345
|
+
return (A, O) => (m(), L(u(zc), rt({
|
|
8346
8346
|
ref_key: "selectRef",
|
|
8347
8347
|
ref: o,
|
|
8348
8348
|
modelValue: i.value,
|
|
@@ -8447,14 +8447,14 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8447
8447
|
A.$slots.option ? {
|
|
8448
8448
|
name: "option",
|
|
8449
8449
|
fn: k((R) => [
|
|
8450
|
-
j(A.$slots, "option", zs(
|
|
8450
|
+
j(A.$slots, "option", zs(_s(R)))
|
|
8451
8451
|
]),
|
|
8452
8452
|
key: "9"
|
|
8453
8453
|
} : void 0,
|
|
8454
8454
|
A.$slots["no-option"] ? {
|
|
8455
8455
|
name: "no-option",
|
|
8456
8456
|
fn: k((R) => [
|
|
8457
|
-
j(A.$slots, "no-option", zs(
|
|
8457
|
+
j(A.$slots, "no-option", zs(_s(R)))
|
|
8458
8458
|
]),
|
|
8459
8459
|
key: "10"
|
|
8460
8460
|
} : void 0,
|
|
@@ -8475,7 +8475,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8475
8475
|
A.$slots["selected-item"] ? {
|
|
8476
8476
|
name: "selected-item",
|
|
8477
8477
|
fn: k((R) => [
|
|
8478
|
-
j(A.$slots, "selected-item", zs(
|
|
8478
|
+
j(A.$slots, "selected-item", zs(_s(R)))
|
|
8479
8479
|
]),
|
|
8480
8480
|
key: "13"
|
|
8481
8481
|
} : void 0
|
|
@@ -8508,7 +8508,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8508
8508
|
}, c = (f) => {
|
|
8509
8509
|
f ? (a.value && a.value.value !== f.value && s.removeF(a.value.value), a.value = f, s.setF(f.value)) : (a.value && s.removeF(a.value.value), a.value = void 0), i("load");
|
|
8510
8510
|
};
|
|
8511
|
-
return (f, h) => (m(),
|
|
8511
|
+
return (f, h) => (m(), L(Ot, rt(f.$attrs, {
|
|
8512
8512
|
"use-input": "",
|
|
8513
8513
|
options: u(o),
|
|
8514
8514
|
"model-value": u(a),
|
|
@@ -8530,7 +8530,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8530
8530
|
},
|
|
8531
8531
|
emits: ["load"],
|
|
8532
8532
|
setup(t, { emit: e }) {
|
|
8533
|
-
const n = t, i = e, s = xn(), o =
|
|
8533
|
+
const n = t, i = e, s = xn(), o = _(() => n.storeOpts.Options ?? []), a = D([]);
|
|
8534
8534
|
Me(
|
|
8535
8535
|
o,
|
|
8536
8536
|
(h) => {
|
|
@@ -8557,7 +8557,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8557
8557
|
}
|
|
8558
8558
|
i("load");
|
|
8559
8559
|
};
|
|
8560
|
-
return (h, p) => (m(),
|
|
8560
|
+
return (h, p) => (m(), L(Ot, {
|
|
8561
8561
|
modelValue: u(r),
|
|
8562
8562
|
"onUpdate:modelValue": [
|
|
8563
8563
|
p[0] || (p[0] = (v) => $e(r) ? r.value = v : null),
|
|
@@ -8590,7 +8590,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8590
8590
|
},
|
|
8591
8591
|
emits: ["update:modelValue", "change"],
|
|
8592
8592
|
setup(t, { emit: e }) {
|
|
8593
|
-
const n = t, i = e, s = ln(), o =
|
|
8593
|
+
const n = t, i = e, s = ln(), o = _(() => {
|
|
8594
8594
|
const l = {};
|
|
8595
8595
|
for (const r of Object.keys(s))
|
|
8596
8596
|
l[r] = s[r];
|
|
@@ -8621,7 +8621,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8621
8621
|
},
|
|
8622
8622
|
emits: ["load"],
|
|
8623
8623
|
setup(t, { emit: e }) {
|
|
8624
|
-
const n = t, i = e, s = xn(), o = D(void 0), a =
|
|
8624
|
+
const n = t, i = e, s = xn(), o = D(void 0), a = _(() => o.value), l = () => {
|
|
8625
8625
|
const c = s.f.find((f) => f.model === n.model.model && f.col === n.model.col);
|
|
8626
8626
|
o.value = c ? c.boolean : void 0;
|
|
8627
8627
|
};
|
|
@@ -8629,7 +8629,7 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8629
8629
|
const r = (c) => {
|
|
8630
8630
|
o.value = c, s.removeF(n.model), typeof c == "boolean" && (n.model.setBoolean(c), s.setF(n.model)), i("load");
|
|
8631
8631
|
};
|
|
8632
|
-
return (c, f) => (m(),
|
|
8632
|
+
return (c, f) => (m(), L(go, rt(c.$attrs, {
|
|
8633
8633
|
"model-value": u(a),
|
|
8634
8634
|
size: "xs",
|
|
8635
8635
|
"checked-icon": "check",
|
|
@@ -8676,13 +8676,13 @@ const zu = /* @__PURE__ */ Y({
|
|
|
8676
8676
|
}
|
|
8677
8677
|
}), Hu = /* @__PURE__ */ X(xv, [["__scopeId", "data-v-ea3d042c"]]);
|
|
8678
8678
|
function ju(t) {
|
|
8679
|
-
t.component("PFilterCheckbox", zu), t.component("PFilterCodeToggle",
|
|
8679
|
+
t.component("PFilterCheckbox", zu), t.component("PFilterCodeToggle", _u), t.component("PFilterDates", Lu), t.component("PFilterInput", Vu), t.component("PFilterInputOr", Uu), t.component("PFilterSelect", Bu), t.component("PFilterSelectMultiple", qu), t.component("PFilterToggle", Nu), t.component("PFilterWrapper", Hu);
|
|
8680
8680
|
}
|
|
8681
8681
|
const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8682
8682
|
__proto__: null,
|
|
8683
8683
|
PFilterCheckbox: zu,
|
|
8684
|
-
PFilterCodeToggle:
|
|
8685
|
-
PFilterDates:
|
|
8684
|
+
PFilterCodeToggle: _u,
|
|
8685
|
+
PFilterDates: Lu,
|
|
8686
8686
|
PFilterInput: Vu,
|
|
8687
8687
|
PFilterInputOr: Uu,
|
|
8688
8688
|
PFilterSelect: Bu,
|
|
@@ -8723,7 +8723,7 @@ const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8723
8723
|
x instanceof Date ? l.value = "date" : (typeof x == "string" && x || l.value === null) && (l.value = "string");
|
|
8724
8724
|
}, c = (x) => x ? x instanceof Date ? At.ToRu(x) : At.IsoToRu(String(x)) : "", f = (x) => At.ParseRu(x), h = D(c(o.value));
|
|
8725
8725
|
r(o.value);
|
|
8726
|
-
const p =
|
|
8726
|
+
const p = _(() => {
|
|
8727
8727
|
const x = h.value;
|
|
8728
8728
|
return !x || x.length < 10 || vu(i.invalidMessage, !0)(x) === !0 ? "" : i.invalidMessage;
|
|
8729
8729
|
}), v = D(!1);
|
|
@@ -8770,7 +8770,7 @@ const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8770
8770
|
format24h: !0,
|
|
8771
8771
|
pluralDay: "дни"
|
|
8772
8772
|
};
|
|
8773
|
-
return (x, V) => (m(),
|
|
8773
|
+
return (x, V) => (m(), L(Ne, {
|
|
8774
8774
|
modelValue: u(h),
|
|
8775
8775
|
"onUpdate:modelValue": [
|
|
8776
8776
|
V[1] || (V[1] = (A) => $e(h) ? h.value = A : null),
|
|
@@ -8942,7 +8942,7 @@ const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8942
8942
|
}),
|
|
8943
8943
|
emits: /* @__PURE__ */ De(["blur", "input", "change"], ["update:modelValue"]),
|
|
8944
8944
|
setup(t, { emit: e }) {
|
|
8945
|
-
const n = e, i = ln(), s =
|
|
8945
|
+
const n = e, i = ln(), s = _(() => typeof i.id == "string" ? i.id : void 0), o = _(() => {
|
|
8946
8946
|
const A = {};
|
|
8947
8947
|
for (const O of Object.keys(i))
|
|
8948
8948
|
O !== "id" && (A[O] = i[O]);
|
|
@@ -8952,7 +8952,7 @@ const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8952
8952
|
return A.includes(".") ? A.split(".")[1].length : 0;
|
|
8953
8953
|
}, r = l(), c = vt(t, "modelValue"), h = ((A) => Math.min(Math.max(A, a.min), a.max))(c.value);
|
|
8954
8954
|
h !== c.value && (c.value = h);
|
|
8955
|
-
const p = D(h.toFixed(l())), v =
|
|
8955
|
+
const p = D(h.toFixed(l())), v = _(() => {
|
|
8956
8956
|
const A = {};
|
|
8957
8957
|
return a.margin && (A.margin = a.margin), a.padding && (A.padding = a.padding), A;
|
|
8958
8958
|
}), C = (A) => {
|
|
@@ -8963,7 +8963,7 @@ const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8963
8963
|
}, P = (A, ...O) => {
|
|
8964
8964
|
a.disabled || A > a.max || A < a.min || T(A, ...O);
|
|
8965
8965
|
}, $ = () => P(+p.value + a.step, "change"), M = () => P(+p.value - a.step, "change"), x = (A) => P(Number(A), "input"), V = () => P(+p.value, "change", "blur");
|
|
8966
|
-
return (A, O) => (m(),
|
|
8966
|
+
return (A, O) => (m(), L(u(rs), rt(u(o), {
|
|
8967
8967
|
for: u(s),
|
|
8968
8968
|
"model-value": u(p),
|
|
8969
8969
|
label: t.label || void 0,
|
|
@@ -9037,7 +9037,7 @@ const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9037
9037
|
class: "p-radio",
|
|
9038
9038
|
style: ee({ padding: t.padding, margin: t.margin, maxWidth: t.width })
|
|
9039
9039
|
}, [
|
|
9040
|
-
g(u(
|
|
9040
|
+
g(u(_c), {
|
|
9041
9041
|
modelValue: n.value,
|
|
9042
9042
|
"onUpdate:modelValue": [
|
|
9043
9043
|
l[0] || (l[0] = (r) => n.value = r),
|
|
@@ -9070,19 +9070,19 @@ const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9070
9070
|
}),
|
|
9071
9071
|
emits: /* @__PURE__ */ De(["blur", "input", "focus"], ["update:modelValue"]),
|
|
9072
9072
|
setup(t) {
|
|
9073
|
-
const e = vt(t, "modelValue"), n = ln(), i =
|
|
9073
|
+
const e = vt(t, "modelValue"), n = ln(), i = _(() => typeof n.id == "string" ? n.id : void 0), s = _(() => {
|
|
9074
9074
|
const r = {};
|
|
9075
9075
|
for (const c of Object.keys(n))
|
|
9076
9076
|
c !== "id" && (r[c] = n[c]);
|
|
9077
9077
|
return r;
|
|
9078
|
-
}), o = t, a =
|
|
9078
|
+
}), o = t, a = _(() => ({
|
|
9079
9079
|
color: o.color || void 0,
|
|
9080
9080
|
resize: o.resize
|
|
9081
|
-
})), l =
|
|
9081
|
+
})), l = _(() => {
|
|
9082
9082
|
const r = {};
|
|
9083
9083
|
return o.margin && (r.margin = o.margin), o.padding && (r.padding = o.padding), o.borderColor && (r["--p-border-color"] = o.borderColor), r;
|
|
9084
9084
|
});
|
|
9085
|
-
return (r, c) => (m(),
|
|
9085
|
+
return (r, c) => (m(), L(u(rs), rt({
|
|
9086
9086
|
modelValue: e.value,
|
|
9087
9087
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => e.value = f)
|
|
9088
9088
|
}, u(s), {
|
|
@@ -9137,10 +9137,10 @@ const Fv = { class: "p-form-field" }, Ov = { key: 5 }, Dv = { key: 6 }, vo = /*
|
|
|
9137
9137
|
}),
|
|
9138
9138
|
emits: ["update:fill"],
|
|
9139
9139
|
setup(t) {
|
|
9140
|
-
const e = t, n = vt(t, "fill"), i =
|
|
9140
|
+
const e = t, n = vt(t, "fill"), i = _(() => {
|
|
9141
9141
|
var v;
|
|
9142
9142
|
return String(((v = e.field.valueType) == null ? void 0 : v.name) || "string");
|
|
9143
|
-
}), s =
|
|
9143
|
+
}), s = _(() => i.value === "string"), o = _(() => i.value === "text"), a = _(() => i.value === "number"), l = _(() => i.value === "date" || i.value === "dateTime"), r = _(() => i.value === "boolean"), c = _(() => i.value === "radio"), f = _(() => i.value === "set"), h = (v) => {
|
|
9144
9144
|
var C;
|
|
9145
9145
|
return !!((C = n.value.selectedAnswerVariants) != null && C.some((T) => T.answerVariantId === v));
|
|
9146
9146
|
}, p = (v, C) => {
|
|
@@ -9150,28 +9150,28 @@ const Fv = { class: "p-form-field" }, Ov = { key: 5 }, Dv = { key: 6 }, vo = /*
|
|
|
9150
9150
|
C && !T.some((P) => P.answerVariantId === v) ? T.push(En.Create(n.value.id, v)) : C || (n.value.selectedAnswerVariants = T.filter((P) => P.answerVariantId !== v)), n.value.filled = n.value.selectedAnswerVariants.length > 0;
|
|
9151
9151
|
};
|
|
9152
9152
|
return (v, C) => (m(), w("div", Fv, [
|
|
9153
|
-
s.value ? (m(),
|
|
9153
|
+
s.value ? (m(), L(Ne, {
|
|
9154
9154
|
key: 0,
|
|
9155
9155
|
"model-value": n.value.valueString,
|
|
9156
9156
|
"onUpdate:modelValue": C[0] || (C[0] = (T) => n.value.setString(String(T ?? "")))
|
|
9157
|
-
}, null, 8, ["model-value"])) : o.value ? (m(),
|
|
9157
|
+
}, null, 8, ["model-value"])) : o.value ? (m(), L(Yu, {
|
|
9158
9158
|
key: 1,
|
|
9159
9159
|
"model-value": n.value.valueString,
|
|
9160
9160
|
"onUpdate:modelValue": C[1] || (C[1] = (T) => n.value.setString(T ?? ""))
|
|
9161
|
-
}, null, 8, ["model-value"])) : a.value ? (m(),
|
|
9161
|
+
}, null, 8, ["model-value"])) : a.value ? (m(), L(Gu, {
|
|
9162
9162
|
key: 2,
|
|
9163
9163
|
"model-value": n.value.valueNumber,
|
|
9164
9164
|
"onUpdate:modelValue": C[2] || (C[2] = (T) => n.value.setNumber(T ?? 0))
|
|
9165
|
-
}, null, 8, ["model-value"])) : l.value ? (m(),
|
|
9165
|
+
}, null, 8, ["model-value"])) : l.value ? (m(), L(ja, {
|
|
9166
9166
|
key: 3,
|
|
9167
9167
|
"model-value": n.value.valueDate,
|
|
9168
9168
|
"onUpdate:modelValue": C[3] || (C[3] = (T) => n.value.setDate(T ? new Date(T) : void 0))
|
|
9169
|
-
}, null, 8, ["model-value"])) : r.value ? (m(),
|
|
9169
|
+
}, null, 8, ["model-value"])) : r.value ? (m(), L(go, {
|
|
9170
9170
|
key: 4,
|
|
9171
9171
|
"model-value": n.value.valueString === "true",
|
|
9172
9172
|
"onUpdate:modelValue": C[4] || (C[4] = (T) => n.value.setString(T ? "true" : "false"))
|
|
9173
9173
|
}, null, 8, ["model-value"])) : c.value ? (m(), w("div", Ov, [
|
|
9174
|
-
(m(!0), w(J, null, Se(t.field.answerVariants, (T) => (m(),
|
|
9174
|
+
(m(!0), w(J, null, Se(t.field.answerVariants, (T) => (m(), L(Wu, {
|
|
9175
9175
|
key: T.id,
|
|
9176
9176
|
label: T.name,
|
|
9177
9177
|
"model-value": n.value.answerVariantId,
|
|
@@ -9179,13 +9179,13 @@ const Fv = { class: "p-form-field" }, Ov = { key: 5 }, Dv = { key: 6 }, vo = /*
|
|
|
9179
9179
|
onChange: C[5] || (C[5] = (P) => n.value.setRadio(P))
|
|
9180
9180
|
}, null, 8, ["label", "model-value", "value"]))), 128))
|
|
9181
9181
|
])) : f.value ? (m(), w("div", Dv, [
|
|
9182
|
-
(m(!0), w(J, null, Se(t.field.answerVariants, (T) => (m(),
|
|
9182
|
+
(m(!0), w(J, null, Se(t.field.answerVariants, (T) => (m(), L(os, {
|
|
9183
9183
|
key: T.id,
|
|
9184
9184
|
label: T.name,
|
|
9185
9185
|
"model-value": h(T.id),
|
|
9186
9186
|
"onUpdate:modelValue": (P) => p(T.id, !!P)
|
|
9187
9187
|
}, null, 8, ["label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
9188
|
-
])) : (m(),
|
|
9188
|
+
])) : (m(), L(Ne, {
|
|
9189
9189
|
key: 7,
|
|
9190
9190
|
"model-value": n.value.valueString,
|
|
9191
9191
|
"onUpdate:modelValue": C[6] || (C[6] = (T) => n.value.setString(String(T ?? "")))
|
|
@@ -9203,7 +9203,7 @@ function sl(t, e) {
|
|
|
9203
9203
|
}
|
|
9204
9204
|
return n;
|
|
9205
9205
|
}
|
|
9206
|
-
function
|
|
9206
|
+
function _e(t) {
|
|
9207
9207
|
for (var e = 1; e < arguments.length; e++) {
|
|
9208
9208
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
9209
9209
|
e % 2 ? sl(Object(n), !0).forEach(function(i) {
|
|
@@ -9253,7 +9253,7 @@ function Xo(t, e) {
|
|
|
9253
9253
|
for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n];
|
|
9254
9254
|
return i;
|
|
9255
9255
|
}
|
|
9256
|
-
var ol,
|
|
9256
|
+
var ol, _v, Is, ht = (ol = function(t) {
|
|
9257
9257
|
/*!
|
|
9258
9258
|
Copyright (c) 2018 Jed Watson.
|
|
9259
9259
|
Licensed under the MIT License (MIT), see
|
|
@@ -9280,7 +9280,7 @@ var ol, Lv, Is, ht = (ol = function(t) {
|
|
|
9280
9280
|
}
|
|
9281
9281
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
9282
9282
|
})();
|
|
9283
|
-
}, ol(Is = { path:
|
|
9283
|
+
}, ol(Is = { path: _v, exports: {}, require: function(t, e) {
|
|
9284
9284
|
return function() {
|
|
9285
9285
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
9286
9286
|
}(e == null && Is.path);
|
|
@@ -9379,7 +9379,7 @@ function Zu(t, e) {
|
|
|
9379
9379
|
}
|
|
9380
9380
|
var Xi = function(t, e) {
|
|
9381
9381
|
t === void 0 && (t = {}), e === void 0 && (e = {}), this.type = "manipulateImage", this.move = t, this.scale = e;
|
|
9382
|
-
},
|
|
9382
|
+
}, Lv = function(t, e) {
|
|
9383
9383
|
e === void 0 && (e = {}), this.type = "resize", this.directions = t, this.params = e;
|
|
9384
9384
|
}, Ga = function(t) {
|
|
9385
9385
|
this.type = "move", this.directions = t;
|
|
@@ -9439,7 +9439,7 @@ var Xi = function(t, e) {
|
|
|
9439
9439
|
this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
|
|
9440
9440
|
} }, emits: ["drag", "drag-end", "leave", "enter"] };
|
|
9441
9441
|
Wa.render = function(t, e, n, i, s, o) {
|
|
9442
|
-
return m(),
|
|
9442
|
+
return m(), L("div", { ref: "draggable", class: n.classname, onTouchstart: e[1] || (e[1] = function() {
|
|
9443
9443
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
9444
9444
|
}), onMousedown: e[2] || (e[2] = function() {
|
|
9445
9445
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
@@ -9459,7 +9459,7 @@ var Jo = dn("vue-handler-wrapper"), Ku = { name: "HandlerWrapper", components: {
|
|
|
9459
9459
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
9460
9460
|
Ku.render = function(t, e, n, i, s, o) {
|
|
9461
9461
|
var a = Ie("DraggableElement");
|
|
9462
|
-
return m(),
|
|
9462
|
+
return m(), L("div", { class: o.classes.root }, [g(a, { class: o.classes.draggable, onDrag: e[1] || (e[1] = function(l) {
|
|
9463
9463
|
return t.$emit("drag", l);
|
|
9464
9464
|
}), onDragEnd: e[2] || (e[2] = function(l) {
|
|
9465
9465
|
return t.$emit("drag-end");
|
|
@@ -9477,7 +9477,7 @@ var Uv = dn("vue-line-wrapper"), ed = { name: "LineWrapper", components: { Dragg
|
|
|
9477
9477
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
9478
9478
|
ed.render = function(t, e, n, i, s, o) {
|
|
9479
9479
|
var a = Ie("DraggableElement");
|
|
9480
|
-
return m(),
|
|
9480
|
+
return m(), L(a, { class: o.classname, onDrag: e[1] || (e[1] = function(l) {
|
|
9481
9481
|
return t.$emit("drag", l);
|
|
9482
9482
|
}), onDragEnd: e[2] || (e[2] = function(l) {
|
|
9483
9483
|
return t.$emit("drag-end");
|
|
@@ -9746,7 +9746,7 @@ var i1 = dn("vue-simple-handler"), s1 = dn("vue-simple-handler-wrapper"), Ya = {
|
|
|
9746
9746
|
} }, emits: ["drag", "drag-end"] };
|
|
9747
9747
|
Ya.render = function(t, e, n, i, s, o) {
|
|
9748
9748
|
var a = Ie("HandlerWrapper");
|
|
9749
|
-
return m(),
|
|
9749
|
+
return m(), L(a, { class: o.classes.wrapper, "vertical-position": n.verticalPosition, "horizontal-position": n.horizontalPosition, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: k(function() {
|
|
9750
9750
|
return [g("div", { class: o.classes.default }, null, 2)];
|
|
9751
9751
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
9752
9752
|
};
|
|
@@ -9765,7 +9765,7 @@ var o1 = dn("vue-simple-line"), a1 = dn("vue-simple-line-wrapper"), Qa = { name:
|
|
|
9765
9765
|
} }, emits: ["drag", "drag-end"] };
|
|
9766
9766
|
Qa.render = function(t, e, n, i, s, o) {
|
|
9767
9767
|
var a = Ie("LineWrapper");
|
|
9768
|
-
return m(),
|
|
9768
|
+
return m(), L(a, { class: o.classes.wrapper, position: n.position, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: k(function() {
|
|
9769
9769
|
return [g("div", { class: o.classes.root }, null, 2)];
|
|
9770
9770
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
9771
9771
|
};
|
|
@@ -9828,17 +9828,17 @@ var Ko = dn("vue-bounding-box"), r1 = ["east", "west", null], l1 = ["south", "no
|
|
|
9828
9828
|
this.$emit("resize-end");
|
|
9829
9829
|
}, onHandlerDrag: function(t, e, n) {
|
|
9830
9830
|
var i, s = t.shift(), o = s.left, a = s.top, l = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
9831
|
-
e === "west" ? l.left -= o : e === "east" && (l.right += o), n === "north" ? l.top -= a : n === "south" && (l.bottom += a), !n && e ? i = "width" : n && !e && (i = "height"), this.resizable && this.$emit("resize", new
|
|
9831
|
+
e === "west" ? l.left -= o : e === "east" && (l.right += o), n === "north" ? l.top -= a : n === "south" && (l.bottom += a), !n && e ? i = "width" : n && !e && (i = "height"), this.resizable && this.$emit("resize", new Lv(l, { allowedDirections: { left: e === "west" || !e, right: e === "east" || !e, bottom: n === "south" || !n, top: n === "north" || !n }, preserveAspectRatio: t.nativeEvent && t.nativeEvent.shiftKey, respectDirection: i }));
|
|
9832
9832
|
} }, emits: ["resize", "resize-end"] };
|
|
9833
9833
|
sd.render = function(t, e, n, i, s, o) {
|
|
9834
|
-
return m(),
|
|
9835
|
-
return m(),
|
|
9834
|
+
return m(), L("div", { ref: "box", class: o.classes.root, style: o.style }, [j(t.$slots, "default"), g("div", null, [(m(!0), L(J, null, Se(o.lineNodes, function(a) {
|
|
9835
|
+
return m(), L(Mn(a.component), { key: a.name, "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, position: a.name, disabled: a.disabled, onDrag: function(l) {
|
|
9836
9836
|
return o.onHandlerDrag(l, a.horizontalDirection, a.verticalDirection);
|
|
9837
9837
|
}, onDragEnd: e[1] || (e[1] = function(l) {
|
|
9838
9838
|
return o.onEnd();
|
|
9839
9839
|
}) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
|
|
9840
|
-
}), 128))]), (m(!0),
|
|
9841
|
-
return m(),
|
|
9840
|
+
}), 128))]), (m(!0), L(J, null, Se(o.handlerNodes, function(a) {
|
|
9841
|
+
return m(), L("div", { key: a.name, style: a.wrapperStyle, class: a.wrapperClass }, [(m(), L(Mn(a.component), { "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, "horizontal-position": a.horizontalDirection, "vertical-position": a.verticalDirection, disabled: a.disabled, onDrag: function(l) {
|
|
9842
9842
|
return o.onHandlerDrag(l, a.horizontalDirection, a.verticalDirection);
|
|
9843
9843
|
}, onDragEnd: e[2] || (e[2] = function(l) {
|
|
9844
9844
|
return o.onEnd();
|
|
@@ -9884,7 +9884,7 @@ var u1 = dn("vue-draggable-area"), od = { name: "DraggableArea", props: { movabl
|
|
|
9884
9884
|
this.touches.length && this.$emit("move-end"), this.touches = [];
|
|
9885
9885
|
} }, emits: ["move", "move-end"] };
|
|
9886
9886
|
od.render = function(t, e, n, i, s, o) {
|
|
9887
|
-
return m(),
|
|
9887
|
+
return m(), L("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
|
|
9888
9888
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
9889
9889
|
}), onMousedown: e[2] || (e[2] = function() {
|
|
9890
9890
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
@@ -10028,7 +10028,7 @@ var rd = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
|
|
|
10028
10028
|
var a, l;
|
|
10029
10029
|
} }, emits: ["resize", "move", "transform-end"] };
|
|
10030
10030
|
rd.render = function(t, e, n, i, s, o) {
|
|
10031
|
-
return m(),
|
|
10031
|
+
return m(), L("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
|
|
10032
10032
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
10033
10033
|
}), onMousedown: e[2] || (e[2] = function() {
|
|
10034
10034
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
@@ -10039,7 +10039,7 @@ rd.render = function(t, e, n, i, s, o) {
|
|
|
10039
10039
|
var Ta = { components: { TransformableImage: rd }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
|
|
10040
10040
|
Ta.render = function(t, e, n, i, s, o) {
|
|
10041
10041
|
var a = Ie("transformable-image");
|
|
10042
|
-
return m(),
|
|
10042
|
+
return m(), L(a, { "touch-move": n.touchMove, "touch-resize": n.touchResize, "mouse-move": n.mouseMove, "wheel-resize": n.wheelResize, onMove: e[1] || (e[1] = function(l) {
|
|
10043
10043
|
return t.$emit("move", l);
|
|
10044
10044
|
}), onResize: e[2] || (e[2] = function(l) {
|
|
10045
10045
|
return t.$emit("resize", l);
|
|
@@ -10062,7 +10062,7 @@ var Fs = dn("vue-preview"), ld = { props: { coordinates: { type: Object }, trans
|
|
|
10062
10062
|
return this.transitions && this.transitions.enabled && (t.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), t;
|
|
10063
10063
|
}, imageStyle: function() {
|
|
10064
10064
|
if (this.coordinates && this.image) {
|
|
10065
|
-
var t = this.coordinates.width / this.size.width, e =
|
|
10065
|
+
var t = this.coordinates.width / this.size.width, e = _e(_e({ rotate: 0, flip: { horizontal: !1, vertical: !1 } }, this.image.transforms), {}, { scaleX: 1 / t, scaleY: 1 / t }), n = this.imageSize.width, i = this.imageSize.height, s = nd({ width: n, height: i }, e.rotate), o = { width: "".concat(n, "px"), height: "".concat(i, "px"), left: "0px", top: "0px" }, a = { rotate: { left: (n - s.width) * e.scaleX / 2, top: (i - s.height) * e.scaleY / 2 }, scale: { left: (1 - e.scaleX) * n / 2, top: (1 - e.scaleY) * i / 2 } };
|
|
10066
10066
|
return o.transform = `translate(
|
|
10067
10067
|
`.concat(-this.coordinates.left / t - a.rotate.left - a.scale.left, "px,").concat(-this.coordinates.top / t - a.rotate.top - a.scale.top, "px) ") + ad(e), this.transitions && this.transitions.enabled && (o.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), o;
|
|
10068
10068
|
}
|
|
@@ -10091,12 +10091,12 @@ var Fs = dn("vue-preview"), ld = { props: { coordinates: { type: Object }, trans
|
|
|
10091
10091
|
t && t.complete && this.refreshImage(), this.refresh();
|
|
10092
10092
|
} } };
|
|
10093
10093
|
ld.render = function(t, e, n, i, s, o) {
|
|
10094
|
-
return m(),
|
|
10094
|
+
return m(), L("div", { ref: "root", class: o.classes.root, style: o.style }, [g("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [et(g("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[no, n.image && n.image.src]])], 6)], 6);
|
|
10095
10095
|
};
|
|
10096
10096
|
var ud = { components: { Preview: ld }, inheritAttrs: !1 };
|
|
10097
10097
|
ud.render = function(t, e, n, i, s, o) {
|
|
10098
10098
|
var a = Ie("preview");
|
|
10099
|
-
return m(),
|
|
10099
|
+
return m(), L(a, rt(t.$attrs, { fill: !0 }), null, 16);
|
|
10100
10100
|
};
|
|
10101
10101
|
var ta = dn("vue-rectangle-stencil"), dd = { name: "RectangleStencil", components: { StencilPreview: ud, BoundingBox: sd, DraggableArea: od }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
|
|
10102
10102
|
return Ya;
|
|
@@ -10130,7 +10130,7 @@ var ta = dn("vue-rectangle-stencil"), dd = { name: "RectangleStencil", component
|
|
|
10130
10130
|
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
10131
10131
|
dd.render = function(t, e, n, i, s, o) {
|
|
10132
10132
|
var a = Ie("stencil-preview"), l = Ie("draggable-area"), r = Ie("bounding-box");
|
|
10133
|
-
return m(),
|
|
10133
|
+
return m(), L("div", { class: o.classes.stencil, style: o.style }, [g(r, { width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, transitions: n.transitions, class: o.classes.boundingBox, handlers: n.handlers, "handlers-component": n.handlersComponent, "handlers-classes": n.handlersClasses, "handlers-wrappers-classes": n.handlersWrappersClasses, lines: n.lines, "lines-component": n.linesComponent, "lines-classes": n.linesClasses, "lines-wrappers-classes": n.linesWrappersClasses, resizable: n.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: k(function() {
|
|
10134
10134
|
return [g(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: k(function() {
|
|
10135
10135
|
return [g(a, { image: n.image, coordinates: n.coordinates, width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, class: o.classes.preview, transitions: n.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
|
|
10136
10136
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
@@ -10192,7 +10192,7 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10192
10192
|
var e = t.imageSize, n = {};
|
|
10193
10193
|
return t.imageRestriction !== "none" && (n = { left: 0, top: 0, right: e.width, bottom: e.height }), n;
|
|
10194
10194
|
} } }, data: function() {
|
|
10195
|
-
return { transitionsActive: !1, imageLoaded: !1, imageAttributes: { width: null, height: null, crossOrigin: null, src: null }, defaultImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, appliedImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, boundaries: { width: 0, height: 0 }, visibleArea: null, coordinates:
|
|
10195
|
+
return { transitionsActive: !1, imageLoaded: !1, imageAttributes: { width: null, height: null, crossOrigin: null, src: null }, defaultImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, appliedImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, boundaries: { width: 0, height: 0 }, visibleArea: null, coordinates: _e({}, ll) };
|
|
10196
10196
|
}, computed: { image: function() {
|
|
10197
10197
|
return { src: this.imageAttributes.src, width: this.imageAttributes.width, height: this.imageAttributes.height, transforms: this.imageTransforms };
|
|
10198
10198
|
}, imageTransforms: function() {
|
|
@@ -10242,7 +10242,7 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10242
10242
|
var t = { width: this.boundaries.width ? "".concat(Math.round(this.boundaries.width), "px") : "auto", height: this.boundaries.height ? "".concat(Math.round(this.boundaries.height), "px") : "auto", transition: "opacity ".concat(this.transitionTime, "ms"), pointerEvents: this.imageLoaded ? "all" : "none" };
|
|
10243
10243
|
return this.imageLoaded || (t.opacity = "0"), t;
|
|
10244
10244
|
}, imageStyle: function() {
|
|
10245
|
-
var t = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, e = { left: (t.width - this.imageSize.width) / (2 * this.coefficient), top: (t.height - this.imageSize.height) / (2 * this.coefficient) }, n = { left: (1 - 1 / this.coefficient) * t.width / 2, top: (1 - 1 / this.coefficient) * t.height / 2 }, i =
|
|
10245
|
+
var t = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, e = { left: (t.width - this.imageSize.width) / (2 * this.coefficient), top: (t.height - this.imageSize.height) / (2 * this.coefficient) }, n = { left: (1 - 1 / this.coefficient) * t.width / 2, top: (1 - 1 / this.coefficient) * t.height / 2 }, i = _e(_e({}, this.imageTransforms), {}, { scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / t.width), scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / t.height) }), s = { width: "".concat(t.width, "px"), height: "".concat(t.height, "px"), left: "0px", top: "0px", transform: "translate(".concat(-e.left - n.left - this.imageTransforms.translateX, "px, ").concat(-e.top - n.top - this.imageTransforms.translateY, "px)") + ad(i) };
|
|
10246
10246
|
return this.transitionsOptions.enabled && (s.transition = "".concat(this.transitionsOptions.time, "ms ").concat(this.transitionsOptions.timingFunction)), s;
|
|
10247
10247
|
} }, watch: { src: function() {
|
|
10248
10248
|
this.onChangeImage();
|
|
@@ -10272,14 +10272,14 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10272
10272
|
}, unmounted: function() {
|
|
10273
10273
|
window.removeEventListener("resize", this.refresh), window.removeEventListener("orientationchange", this.refresh), this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.debouncedUpdate.clear(), this.debouncedDisableTransitions.clear();
|
|
10274
10274
|
}, methods: { getResult: function() {
|
|
10275
|
-
var t = this.initialized ? this.prepareResult(
|
|
10275
|
+
var t = this.initialized ? this.prepareResult(_e({}, this.coordinates)) : this.defaultCoordinates(), e = { rotate: this.imageTransforms.rotate % 360, flip: _e({}, this.imageTransforms.flip) };
|
|
10276
10276
|
if (this.src && this.imageLoaded) {
|
|
10277
10277
|
var n = this;
|
|
10278
|
-
return { image: this.image, coordinates: t, visibleArea: this.visibleArea ?
|
|
10278
|
+
return { image: this.image, coordinates: t, visibleArea: this.visibleArea ? _e({}, this.visibleArea) : null, imageTransforms: e, get canvas() {
|
|
10279
10279
|
return n.canvas ? n.getCanvas() : void 0;
|
|
10280
10280
|
} };
|
|
10281
10281
|
}
|
|
10282
|
-
return { image: this.image, coordinates: t, visibleArea: this.visibleArea ?
|
|
10282
|
+
return { image: this.image, coordinates: t, visibleArea: this.visibleArea ? _e({}, this.visibleArea) : null, canvas: void 0, imageTransforms: e };
|
|
10283
10283
|
}, zoom: function(t, e) {
|
|
10284
10284
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.transitions, s = i === void 0 || i;
|
|
10285
10285
|
this.onManipulateImage(new Xi({}, { factor: 1 / t, center: e }), { normalize: !1, transitions: s });
|
|
@@ -10312,12 +10312,12 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10312
10312
|
return this.roundResult ? function(e) {
|
|
10313
10313
|
var n = e.coordinates, i = e.sizeRestrictions, s = e.positionRestrictions, o = { width: Math.round(n.width), height: Math.round(n.height), left: Math.round(n.left), top: Math.round(n.top) };
|
|
10314
10314
|
return o.width > i.maxWidth ? o.width = Math.floor(n.width) : o.width < i.minWidth && (o.width = Math.ceil(n.width)), o.height > i.maxHeight ? o.height = Math.floor(n.height) : o.height < i.minHeight && (o.height = Math.ceil(n.height)), Pt(o, s);
|
|
10315
|
-
}(
|
|
10315
|
+
}(_e(_e({}, this.getPublicProperties()), {}, { positionRestrictions: As(this.positionRestrictions, this.visibleArea), coordinates: t })) : t;
|
|
10316
10316
|
}, processAutoZoom: function(t, e, n, i) {
|
|
10317
10317
|
var s = this.autoZoomAlgorithm;
|
|
10318
10318
|
s || (s = this.stencilSize ? Wv : this.autoZoom ? Yv : Qv);
|
|
10319
10319
|
var o = s({ event: { type: t, params: i }, visibleArea: e, coordinates: n, boundaries: this.boundaries, aspectRatio: this.getAspectRatio(), positionRestrictions: this.positionRestrictions, getAreaRestrictions: this.getAreaRestrictions, sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize() });
|
|
10320
|
-
return
|
|
10320
|
+
return _e(_e({}, o), {}, { changed: !ul(o.visibleArea, e) || !ul(o.coordinates, n) });
|
|
10321
10321
|
}, runAutoZoom: function(t) {
|
|
10322
10322
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.transitions, i = n !== void 0 && n, s = zv(e, f1), o = this.processAutoZoom(t, this.visibleArea, this.coordinates, s), a = o.visibleArea, l = o.coordinates, r = o.changed;
|
|
10323
10323
|
i && r && this.enableTransitions(), this.visibleArea = a, this.coordinates = l, i && r && this.debouncedDisableTransitions();
|
|
@@ -10338,7 +10338,7 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10338
10338
|
}), a;
|
|
10339
10339
|
}
|
|
10340
10340
|
return n;
|
|
10341
|
-
}(
|
|
10341
|
+
}(_e(_e({}, this.getPublicProperties()), {}, { event: t }));
|
|
10342
10342
|
}, getCanvas: function() {
|
|
10343
10343
|
if (this.$refs.canvas) {
|
|
10344
10344
|
var t = this.$refs.canvas, e = this.$refs.image, n = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, r, c) {
|
|
@@ -10346,7 +10346,7 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10346
10346
|
l.height = v.height, l.width = v.width, C.save();
|
|
10347
10347
|
var T = Un(Tt(ve({ left: 0, top: 0 }, p)), f);
|
|
10348
10348
|
return C.translate(-(T.left - v.width / 2), -(T.top - v.height / 2)), C.rotate(f * Math.PI / 180), C.translate(h.horizontal ? p.width : 0, h.vertical ? p.height : 0), C.scale(h.horizontal ? -1 : 1, h.vertical ? -1 : 1), C.drawImage(r, 0, 0, p.width, p.height), C.restore(), l;
|
|
10349
|
-
}(this.$refs.sourceCanvas, e, this.imageTransforms) : e, i =
|
|
10349
|
+
}(this.$refs.sourceCanvas, e, this.imageTransforms) : e, i = _e({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), s = function(l) {
|
|
10350
10350
|
return l.find(function(r) {
|
|
10351
10351
|
return c = r, !Number.isNaN(parseFloat(c)) && isFinite(c);
|
|
10352
10352
|
var c;
|
|
@@ -10379,7 +10379,7 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10379
10379
|
n.minWidth, n.minHeight, n.maxWidth, n.maxHeight;
|
|
10380
10380
|
var i = pi(e) ? e({ boundaries: this.boundaries, imageSize: this.imageSize, aspectRatio: this.getAspectRatio(), sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize(), visibleArea: this.visibleArea }) : e, s = this.defaultPosition || Xv, o = [i, function(a) {
|
|
10381
10381
|
var l = a.coordinates;
|
|
10382
|
-
return
|
|
10382
|
+
return _e({}, pi(s) ? s({ coordinates: l, imageSize: t.imageSize, visibleArea: t.visibleArea }) : t.defaultPosition);
|
|
10383
10383
|
}];
|
|
10384
10384
|
this.delayedTransforms && o.push.apply(o, li(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(o, !0), this.delayedTransforms = null;
|
|
10385
10385
|
}
|
|
@@ -10407,7 +10407,7 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10407
10407
|
});
|
|
10408
10408
|
}, resetVisibleArea: function() {
|
|
10409
10409
|
var t = this;
|
|
10410
|
-
return this.appliedImageTransforms =
|
|
10410
|
+
return this.appliedImageTransforms = _e(_e({}, this.defaultImageTransforms), {}, { flip: _e({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then(function() {
|
|
10411
10411
|
t.priority !== "visible-area" && (t.visibleArea = null, t.resetCoordinates());
|
|
10412
10412
|
var e, n, i, s, o, a, l = t.defaultVisibleArea || Kv;
|
|
10413
10413
|
t.visibleArea = pi(l) ? l({ imageSize: t.imageSize, boundaries: t.boundaries, coordinates: t.priority !== "visible-area" ? t.coordinates : null, getAreaRestrictions: t.getAreaRestrictions, stencilSize: t.getStencilSize() }) : t.defaultVisibleArea, t.visibleArea = (e = { visibleArea: t.visibleArea, boundaries: t.boundaries, getAreaRestrictions: t.getAreaRestrictions }, n = e.visibleArea, i = e.boundaries, s = e.getAreaRestrictions, o = ve({}, n), a = Ve(i), o.width / o.height !== a && (o.height = o.width / a), Pt(o, s({ visibleArea: o, type: "move" }))), t.priority === "visible-area" ? t.resetCoordinates() : t.coordinates = t.fitCoordinates({ visibleArea: t.visibleArea, coordinates: t.coordinates, aspectRatio: t.getAspectRatio(), positionRestrictions: t.positionRestrictions, sizeRestrictions: t.sizeRestrictions }), t.runAutoZoom("resetVisibleArea");
|
|
@@ -10493,7 +10493,7 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10493
10493
|
a.rotate = -90;
|
|
10494
10494
|
}
|
|
10495
10495
|
return a;
|
|
10496
|
-
}(s), this.defaultImageTransforms =
|
|
10496
|
+
}(s), this.defaultImageTransforms = _e(_e({}, this.appliedImageTransforms), {}, { flip: _e({}, this.appliedImageTransforms.flip) }), this.$nextTick(function() {
|
|
10497
10497
|
var o = e.$refs.image;
|
|
10498
10498
|
o && o.complete && (function(a) {
|
|
10499
10499
|
return !!a.naturalWidth;
|
|
@@ -10506,20 +10506,20 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10506
10506
|
}, onMove: function(t) {
|
|
10507
10507
|
var e = this;
|
|
10508
10508
|
this.transitionsOptions.enabled || this.awaitRender(function() {
|
|
10509
|
-
e.coordinates = e.moveAlgorithm(
|
|
10509
|
+
e.coordinates = e.moveAlgorithm(_e(_e({}, e.getPublicProperties()), {}, { positionRestrictions: As(e.positionRestrictions, e.visibleArea), coordinates: e.coordinates, event: e.normalizeEvent(t) })), e.onChange();
|
|
10510
10510
|
});
|
|
10511
10511
|
}, onResize: function(t) {
|
|
10512
10512
|
var e = this;
|
|
10513
10513
|
this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender(function() {
|
|
10514
10514
|
var n = e.sizeRestrictions, i = Math.min(e.coordinates.width, e.coordinates.height, 20 * e.coefficient);
|
|
10515
|
-
e.coordinates = e.resizeAlgorithm(
|
|
10515
|
+
e.coordinates = e.resizeAlgorithm(_e(_e({}, e.getPublicProperties()), {}, { positionRestrictions: As(e.positionRestrictions, e.visibleArea), sizeRestrictions: { maxWidth: Math.min(n.maxWidth, e.visibleArea.width), maxHeight: Math.min(n.maxHeight, e.visibleArea.height), minWidth: Math.max(n.minWidth, i), minHeight: Math.max(n.minHeight, i) }, event: e.normalizeEvent(t) })), e.onChange(), e.ticking = !1;
|
|
10516
10516
|
});
|
|
10517
10517
|
}, onManipulateImage: function(t) {
|
|
10518
10518
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
10519
10519
|
if (!this.transitionsOptions.enabled) {
|
|
10520
10520
|
var n = e.transitions, i = n !== void 0 && n, s = e.normalize, o = s === void 0 || s;
|
|
10521
10521
|
i && this.enableTransitions();
|
|
10522
|
-
var a = e1(
|
|
10522
|
+
var a = e1(_e(_e({}, this.getPublicProperties()), {}, { event: o ? this.normalizeEvent(t) : t, getAreaRestrictions: this.getAreaRestrictions, imageRestriction: this.imageRestriction, adjustStencil: !this.stencilSize && this.settings.resizeImage.adjustStencil })), l = a.visibleArea, r = a.coordinates;
|
|
10523
10523
|
this.visibleArea = l, this.coordinates = r, this.runAutoZoom("manipulateImage"), this.onChange(), i && this.debouncedDisableTransitions();
|
|
10524
10524
|
}
|
|
10525
10525
|
}, onPropsChange: function() {
|
|
@@ -10544,28 +10544,28 @@ var f1 = ["transitions"], Tn = dn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
10544
10544
|
}, getPublicProperties: function() {
|
|
10545
10545
|
return { coefficient: this.coefficient, visibleArea: this.visibleArea, coordinates: this.coordinates, boundaries: this.boundaries, sizeRestrictions: this.sizeRestrictions, positionRestrictions: this.positionRestrictions, aspectRatio: this.getAspectRatio(), imageRestriction: this.imageRestriction };
|
|
10546
10546
|
}, defaultCoordinates: function() {
|
|
10547
|
-
return
|
|
10547
|
+
return _e({}, ll);
|
|
10548
10548
|
}, flip: function(t, e) {
|
|
10549
10549
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.transitions, s = i === void 0 || i;
|
|
10550
10550
|
if (!this.transitionsActive) {
|
|
10551
10551
|
s && this.enableTransitions();
|
|
10552
|
-
var o =
|
|
10552
|
+
var o = _e({}, this.imageTransforms.flip), a = n1({ flip: { horizontal: t ? !o.horizontal : o.horizontal, vertical: e ? !o.vertical : o.vertical }, previousFlip: o, rotate: this.imageTransforms.rotate, visibleArea: this.visibleArea, coordinates: this.coordinates, imageSize: this.imageSize, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), l = a.visibleArea, r = a.coordinates;
|
|
10553
10553
|
t && (this.appliedImageTransforms.flip.horizontal = !this.appliedImageTransforms.flip.horizontal), e && (this.appliedImageTransforms.flip.vertical = !this.appliedImageTransforms.flip.vertical), this.visibleArea = l, this.coordinates = r, this.onChange(), s && this.debouncedDisableTransitions();
|
|
10554
10554
|
}
|
|
10555
10555
|
}, rotate: function(t) {
|
|
10556
10556
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.transitions, i = n === void 0 || n;
|
|
10557
10557
|
if (!this.transitionsActive) {
|
|
10558
10558
|
i && this.enableTransitions();
|
|
10559
|
-
var s =
|
|
10559
|
+
var s = _e({}, this.imageSize);
|
|
10560
10560
|
this.appliedImageTransforms.rotate += t;
|
|
10561
10561
|
var o = t1({ visibleArea: this.visibleArea, coordinates: this.coordinates, previousImageSize: s, imageSize: this.imageSize, angle: t, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), a = o.visibleArea, l = o.coordinates, r = this.processAutoZoom("rotateImage", a, l);
|
|
10562
10562
|
a = r.visibleArea, l = r.coordinates, this.visibleArea = a, this.coordinates = l, this.onChange(), i && this.debouncedDisableTransitions();
|
|
10563
10563
|
}
|
|
10564
10564
|
} }, emits: ["change", "error", "ready"] }, h1 = { key: 0, ref: "canvas", style: { display: "none" } }, m1 = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
10565
10565
|
cd.render = function(t, e, n, i, s, o) {
|
|
10566
|
-
return m(),
|
|
10566
|
+
return m(), L("div", { ref: "cropper", class: o.classes.cropper }, [g("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), g("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(m(), L(Mn(n.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: k(function() {
|
|
10567
10567
|
return [g("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), g("div", { class: o.classes.imageWrapper }, [g("img", { ref: "image", crossorigin: s.imageAttributes.crossOrigin, src: s.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: e[1] || (e[1] = Je(function() {
|
|
10568
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), g("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), et((m(),
|
|
10568
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), g("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), et((m(), L(Mn(n.stencilComponent), rt({ ref: "stencil", image: o.image, coordinates: s.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[no, s.imageLoaded]]), n.canvas ? (m(), L("canvas", h1, null, 512)) : H("", !0), n.canvas ? (m(), L("canvas", m1, null, 512)) : H("", !0)];
|
|
10569
10569
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
10570
10570
|
};
|
|
10571
10571
|
const p1 = {
|
|
@@ -10642,7 +10642,7 @@ const g1 = { class: "cropper-wrapper" }, v1 = { class: "row justify-end q-mt-md"
|
|
|
10642
10642
|
},
|
|
10643
10643
|
emits: ["crop", "update:ratio"],
|
|
10644
10644
|
setup(t, { emit: e }) {
|
|
10645
|
-
const n = t, i = e, s = D(n.ratio || ml), o = D(Xa.Create(n.src, n.ratio)), a = D(), l =
|
|
10645
|
+
const n = t, i = e, s = D(n.ratio || ml), o = D(Xa.Create(n.src, n.ratio)), a = D(), l = _(() => [
|
|
10646
10646
|
{ label: "Свободно (вручную)", value: ml },
|
|
10647
10647
|
{ label: "2:3", value: 2 / 3 },
|
|
10648
10648
|
{ label: "3:2", value: 3 / 2 },
|
|
@@ -10652,7 +10652,7 @@ const g1 = { class: "cropper-wrapper" }, v1 = { class: "row justify-end q-mt-md"
|
|
|
10652
10652
|
{ label: "16:9", value: 16 / 9 }
|
|
10653
10653
|
]), r = (h) => {
|
|
10654
10654
|
s.value = h, o.value.setRatio(h);
|
|
10655
|
-
}, c =
|
|
10655
|
+
}, c = _(
|
|
10656
10656
|
() => s.value ? { aspectRatio: s.value } : {}
|
|
10657
10657
|
), f = async () => {
|
|
10658
10658
|
const h = a.value.getResult();
|
|
@@ -10717,11 +10717,11 @@ const g1 = { class: "cropper-wrapper" }, v1 = { class: "row justify-end q-mt-md"
|
|
|
10717
10717
|
M && !M.getAttribute("aria-label") && M.setAttribute("aria-label", "Добавить изображение");
|
|
10718
10718
|
});
|
|
10719
10719
|
});
|
|
10720
|
-
const f = D(i.ratio), h = D(""), p =
|
|
10720
|
+
const f = D(i.ratio), h = D(""), p = _(() => ({
|
|
10721
10721
|
width: `${i.height * f.value}px`,
|
|
10722
10722
|
height: `${i.height}px`,
|
|
10723
10723
|
maxWidth: "100%"
|
|
10724
|
-
})), v =
|
|
10724
|
+
})), v = _(() => ({
|
|
10725
10725
|
width: `${i.height * f.value}px`,
|
|
10726
10726
|
height: `${i.height}px`,
|
|
10727
10727
|
maxWidth: "100%"
|
|
@@ -10806,7 +10806,7 @@ const g1 = { class: "cropper-wrapper" }, v1 = { class: "row justify-end q-mt-md"
|
|
|
10806
10806
|
})
|
|
10807
10807
|
])
|
|
10808
10808
|
])
|
|
10809
|
-
], 4)) : (m(),
|
|
10809
|
+
], 4)) : (m(), L(u(Lc), {
|
|
10810
10810
|
key: 0,
|
|
10811
10811
|
id: u(l),
|
|
10812
10812
|
ref_key: "uploader",
|
|
@@ -11054,7 +11054,7 @@ Za([
|
|
|
11054
11054
|
G.H.Classes.GetClassConstructor(Ja)
|
|
11055
11055
|
], So.prototype, "answerFiles");
|
|
11056
11056
|
let ii = So;
|
|
11057
|
-
const
|
|
11057
|
+
const _n = {
|
|
11058
11058
|
equals: "equals",
|
|
11059
11059
|
notEquals: "notEquals",
|
|
11060
11060
|
contains: "contains",
|
|
@@ -11071,21 +11071,21 @@ function R1(t) {
|
|
|
11071
11071
|
function I1(t, e) {
|
|
11072
11072
|
const n = t.dependsOnFieldId ? e[t.dependsOnFieldId] : void 0, i = R1(n), s = !!(n != null && n.filled) || i !== "";
|
|
11073
11073
|
switch (t.operator) {
|
|
11074
|
-
case
|
|
11074
|
+
case _n.answered:
|
|
11075
11075
|
return s;
|
|
11076
|
-
case
|
|
11076
|
+
case _n.notAnswered:
|
|
11077
11077
|
return !s;
|
|
11078
|
-
case
|
|
11078
|
+
case _n.equals:
|
|
11079
11079
|
return i === t.value;
|
|
11080
|
-
case
|
|
11080
|
+
case _n.notEquals:
|
|
11081
11081
|
return i !== t.value;
|
|
11082
|
-
case
|
|
11082
|
+
case _n.contains:
|
|
11083
11083
|
return i.split("|").includes(t.value);
|
|
11084
|
-
case
|
|
11084
|
+
case _n.notContains:
|
|
11085
11085
|
return !i.split("|").includes(t.value);
|
|
11086
|
-
case
|
|
11086
|
+
case _n.greater:
|
|
11087
11087
|
return s && Number(i) > Number(t.value);
|
|
11088
|
-
case
|
|
11088
|
+
case _n.less:
|
|
11089
11089
|
return s && Number(i) < Number(t.value);
|
|
11090
11090
|
default:
|
|
11091
11091
|
return !0;
|
|
@@ -11104,10 +11104,10 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11104
11104
|
}, D1 = {
|
|
11105
11105
|
key: 0,
|
|
11106
11106
|
class: "text-subtitle1 q-mb-sm"
|
|
11107
|
-
}, z1 = { class: "text-body1 q-mb-xs" },
|
|
11107
|
+
}, z1 = { class: "text-body1 q-mb-xs" }, _1 = {
|
|
11108
11108
|
key: 0,
|
|
11109
11109
|
class: "text-negative"
|
|
11110
|
-
},
|
|
11110
|
+
}, L1 = ["src"], V1 = /* @__PURE__ */ Y({
|
|
11111
11111
|
__name: "PFormRenderer",
|
|
11112
11112
|
props: {
|
|
11113
11113
|
form: {},
|
|
@@ -11119,7 +11119,7 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11119
11119
|
},
|
|
11120
11120
|
emits: ["submit"],
|
|
11121
11121
|
setup(t, { emit: e }) {
|
|
11122
|
-
const n = t, i = e, s = mt({}), o =
|
|
11122
|
+
const n = t, i = e, s = mt({}), o = _(() => n.paramBanner ?? []), a = ($) => M1($, s), l = ($) => ($.fields || []).some((M) => a(M)), r = _(
|
|
11123
11123
|
() => (n.form.formSections || []).every(
|
|
11124
11124
|
($) => ($.fields || []).every((M) => {
|
|
11125
11125
|
var x;
|
|
@@ -11227,15 +11227,15 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11227
11227
|
}, [
|
|
11228
11228
|
b("div", z1, [
|
|
11229
11229
|
we(U(V.name) + " ", 1),
|
|
11230
|
-
V.required ? (m(), w("span",
|
|
11230
|
+
V.required ? (m(), w("span", _1, "*")) : H("", !0)
|
|
11231
11231
|
]),
|
|
11232
11232
|
V.imageUrl ? (m(), w("img", {
|
|
11233
11233
|
key: 0,
|
|
11234
11234
|
src: V.imageUrl,
|
|
11235
11235
|
class: "field-image q-mb-xs",
|
|
11236
11236
|
alt: ""
|
|
11237
|
-
}, null, 8,
|
|
11238
|
-
c(V.id) ? (m(),
|
|
11237
|
+
}, null, 8, L1)) : H("", !0),
|
|
11238
|
+
c(V.id) ? (m(), L(vo, {
|
|
11239
11239
|
key: 1,
|
|
11240
11240
|
field: V,
|
|
11241
11241
|
fill: c(V.id)
|
|
@@ -11317,10 +11317,10 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11317
11317
|
},
|
|
11318
11318
|
emits: ["click"],
|
|
11319
11319
|
setup(t, { emit: e }) {
|
|
11320
|
-
const n = D(null), i = t, s = e, o =
|
|
11320
|
+
const n = D(null), i = t, s = e, o = _(() => i.img ? i.isMain ? "365px" : "200px" : "0"), a = (l) => {
|
|
11321
11321
|
i.noPointer || s("click", l);
|
|
11322
11322
|
};
|
|
11323
|
-
return (l, r) => (m(),
|
|
11323
|
+
return (l, r) => (m(), L(u(Kt), {
|
|
11324
11324
|
class: ye(["card", { "no-hover": t.noHover, "no-border": t.noBorder, "cursor-pointer": !t.noPointer }]),
|
|
11325
11325
|
flat: "",
|
|
11326
11326
|
bordered: !t.noBorder,
|
|
@@ -11368,7 +11368,7 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11368
11368
|
], !0)
|
|
11369
11369
|
])) : H("", !0)
|
|
11370
11370
|
])) : H("", !0),
|
|
11371
|
-
t.title || l.$slots.title ? (m(),
|
|
11371
|
+
t.title || l.$slots.title ? (m(), L(u(Zi), {
|
|
11372
11372
|
key: 1,
|
|
11373
11373
|
class: "header-separator"
|
|
11374
11374
|
})) : H("", !0),
|
|
@@ -11425,12 +11425,12 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11425
11425
|
set: "Несколько вариантов",
|
|
11426
11426
|
boolean: "Да/Нет",
|
|
11427
11427
|
file: "Файл"
|
|
11428
|
-
}, a =
|
|
11428
|
+
}, a = _(
|
|
11429
11429
|
() => i.valueTypes.map((R) => ({
|
|
11430
11430
|
label: (i.typeLabels ?? o)[String(R.name)] || String(R.name),
|
|
11431
11431
|
value: R.id
|
|
11432
11432
|
}))
|
|
11433
|
-
), l =
|
|
11433
|
+
), l = _(() => {
|
|
11434
11434
|
var R, E, q, be;
|
|
11435
11435
|
return ((E = (R = n.value.valueType) == null ? void 0 : R.isRadio) == null ? void 0 : E.call(R)) || ((be = (q = n.value.valueType) == null ? void 0 : q.isSet) == null ? void 0 : be.call(q));
|
|
11436
11436
|
}), r = (R) => {
|
|
@@ -11452,7 +11452,7 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11452
11452
|
{ label: "Не отвечен", value: "notAnswered" },
|
|
11453
11453
|
{ label: "Больше", value: "greater" },
|
|
11454
11454
|
{ label: "Меньше", value: "less" }
|
|
11455
|
-
], C =
|
|
11455
|
+
], C = _(
|
|
11456
11456
|
() => (i.fields ?? []).filter((R) => R.id !== n.value.id).map((R) => ({ label: R.name || R.code || "Вопрос", value: R.id }))
|
|
11457
11457
|
), T = (R) => (i.fields ?? []).find((E) => E.id === R.dependsOnFieldId), P = (R) => ["equals", "notEquals", "contains", "notContains"].includes(R), $ = (R) => {
|
|
11458
11458
|
var be, K, Ue, je;
|
|
@@ -11621,7 +11621,7 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11621
11621
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
11622
11622
|
]),
|
|
11623
11623
|
b("div", hy, [
|
|
11624
|
-
$(q) ? (m(),
|
|
11624
|
+
$(q) ? (m(), L(Ot, {
|
|
11625
11625
|
key: 0,
|
|
11626
11626
|
modelValue: q.value,
|
|
11627
11627
|
"onUpdate:modelValue": [
|
|
@@ -11630,7 +11630,7 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11630
11630
|
],
|
|
11631
11631
|
label: "Значение",
|
|
11632
11632
|
options: x(q)
|
|
11633
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) : M(q) ? (m(),
|
|
11633
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) : M(q) ? (m(), L(Ne, {
|
|
11634
11634
|
key: 1,
|
|
11635
11635
|
modelValue: q.value,
|
|
11636
11636
|
"onUpdate:modelValue": (K) => q.value = K,
|
|
@@ -11681,7 +11681,7 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11681
11681
|
const [v] = p.splice(c, 1);
|
|
11682
11682
|
p.splice(h, 0, v), s(), i("change");
|
|
11683
11683
|
};
|
|
11684
|
-
return (c, f) => (m(),
|
|
11684
|
+
return (c, f) => (m(), L(md, { class: "p-form-section-editor" }, {
|
|
11685
11685
|
default: k(() => [
|
|
11686
11686
|
b("div", vy, [
|
|
11687
11687
|
c.$slots.handle ? (m(), w("div", yy, [
|
|
@@ -11778,7 +11778,7 @@ const A1 = { class: "p-form-renderer" }, E1 = {
|
|
|
11778
11778
|
const n = vt(t, "form"), i = t, s = e, o = D(i.valueTypes ?? []), a = D(!1), l = [
|
|
11779
11779
|
{ label: "Черновик", value: "draft" },
|
|
11780
11780
|
{ label: "Опубликована", value: "published" }
|
|
11781
|
-
], r =
|
|
11781
|
+
], r = _(() => n.value.getFields()), c = D(null), f = () => {
|
|
11782
11782
|
c.value && clearTimeout(c.value), c.value = setTimeout(() => {
|
|
11783
11783
|
s("change", n.value);
|
|
11784
11784
|
}, 600);
|
|
@@ -12184,10 +12184,10 @@ zy([
|
|
|
12184
12184
|
G.H.Classes.GetClassConstructor($o)
|
|
12185
12185
|
], gd.prototype, "fields");
|
|
12186
12186
|
let To = gd;
|
|
12187
|
-
var
|
|
12187
|
+
var _y = Object.defineProperty, Ly = (t, e, n, i) => {
|
|
12188
12188
|
for (var s = void 0, o = t.length - 1, a; o >= 0; o--)
|
|
12189
12189
|
(a = t[o]) && (s = a(e, n, s) || s);
|
|
12190
|
-
return s &&
|
|
12190
|
+
return s && _y(e, n, s), s;
|
|
12191
12191
|
};
|
|
12192
12192
|
const yd = class bd {
|
|
12193
12193
|
constructor(e) {
|
|
@@ -12228,7 +12228,7 @@ const yd = class bd {
|
|
|
12228
12228
|
return e.concat(n).filter((i) => i.children.length === 0);
|
|
12229
12229
|
}
|
|
12230
12230
|
};
|
|
12231
|
-
|
|
12231
|
+
Ly([
|
|
12232
12232
|
G.H.Classes.GetClassConstructor(To)
|
|
12233
12233
|
], yd.prototype, "formSections");
|
|
12234
12234
|
let wd = yd;
|
|
@@ -12424,7 +12424,7 @@ class Po {
|
|
|
12424
12424
|
xe.BuildClass(this, e);
|
|
12425
12425
|
}
|
|
12426
12426
|
addFile(e) {
|
|
12427
|
-
this.icon.id || (this.icon.id =
|
|
12427
|
+
this.icon.id || (this.icon.id = Lt.UUID()), this.icon.originalName = e.name, this.icon.file = e.raw;
|
|
12428
12428
|
}
|
|
12429
12429
|
}
|
|
12430
12430
|
var o0 = Object.defineProperty, a0 = (t, e, n, i) => {
|
|
@@ -12461,7 +12461,7 @@ class tr {
|
|
|
12461
12461
|
}), e;
|
|
12462
12462
|
}
|
|
12463
12463
|
addFile(e) {
|
|
12464
|
-
this.icon.id || (this.icon.id =
|
|
12464
|
+
this.icon.id || (this.icon.id = Lt.UUID()), this.icon.originalName = e.name, this.icon.file = e.raw;
|
|
12465
12465
|
}
|
|
12466
12466
|
addSubMenu() {
|
|
12467
12467
|
this.subMenus.push(new Po());
|
|
@@ -12525,13 +12525,13 @@ const c0 = new d0(), f0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
12525
12525
|
transparent: { type: Boolean, default: !1 }
|
|
12526
12526
|
},
|
|
12527
12527
|
setup(t) {
|
|
12528
|
-
const e = ln(), n =
|
|
12528
|
+
const e = ln(), n = _(() => {
|
|
12529
12529
|
const i = {};
|
|
12530
12530
|
for (const s of Object.keys(e))
|
|
12531
12531
|
["label", "color", "text-color", "outline", "rounded", "floating", "multi-line", "transparent"].includes(s) || (i[s] = e[s]);
|
|
12532
12532
|
return i;
|
|
12533
12533
|
});
|
|
12534
|
-
return (i, s) => (m(),
|
|
12534
|
+
return (i, s) => (m(), L(u(Cl), rt(u(n), {
|
|
12535
12535
|
label: t.label || void 0,
|
|
12536
12536
|
color: t.color || void 0,
|
|
12537
12537
|
"text-color": t.textColor || void 0,
|
|
@@ -12611,7 +12611,7 @@ const m0 = { class: "p-notify-badge" }, p0 = { class: "p-notify-badge__panel" },
|
|
|
12611
12611
|
icon: t.icon
|
|
12612
12612
|
}, {
|
|
12613
12613
|
default: k(() => [
|
|
12614
|
-
u(n).unread.value ? (m(),
|
|
12614
|
+
u(n).unread.value ? (m(), L(Fi, {
|
|
12615
12615
|
key: 0,
|
|
12616
12616
|
label: String(u(n).unread.value),
|
|
12617
12617
|
color: "negative",
|
|
@@ -12626,7 +12626,7 @@ const m0 = { class: "p-notify-badge" }, p0 = { class: "p-notify-badge__panel" },
|
|
|
12626
12626
|
b("div", p0, [
|
|
12627
12627
|
b("div", g0, [
|
|
12628
12628
|
a[2] || (a[2] = b("div", { class: "text-subtitle2" }, "Уведомления", -1)),
|
|
12629
|
-
u(n).unread.value ? (m(),
|
|
12629
|
+
u(n).unread.value ? (m(), L(ue, {
|
|
12630
12630
|
key: 0,
|
|
12631
12631
|
flat: "",
|
|
12632
12632
|
dense: "",
|
|
@@ -12636,12 +12636,12 @@ const m0 = { class: "p-notify-badge" }, p0 = { class: "p-notify-badge__panel" },
|
|
|
12636
12636
|
})) : H("", !0)
|
|
12637
12637
|
]),
|
|
12638
12638
|
g(u(Zi)),
|
|
12639
|
-
u(n).items.value.length ? (m(),
|
|
12639
|
+
u(n).items.value.length ? (m(), L(u(Oi), {
|
|
12640
12640
|
key: 1,
|
|
12641
12641
|
class: "p-notify-badge__list"
|
|
12642
12642
|
}, {
|
|
12643
12643
|
default: k(() => [
|
|
12644
|
-
(m(!0), w(J, null, Se(u(n).items.value, (l) => (m(),
|
|
12644
|
+
(m(!0), w(J, null, Se(u(n).items.value, (l) => (m(), L(u(qn), {
|
|
12645
12645
|
key: l.id,
|
|
12646
12646
|
clickable: "",
|
|
12647
12647
|
class: ye({ "p-notify-badge__item--unread": !l.readAt }),
|
|
@@ -12808,39 +12808,39 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12808
12808
|
SchedulePlace: bs,
|
|
12809
12809
|
ScheduleSession: ys,
|
|
12810
12810
|
ScheduleSlot: Qn
|
|
12811
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12811
|
+
}, Symbol.toStringTag, { value: "Module" })), Le = (t) => t ? G.H.Time.HMtoM(t) : NaN, It = (t) => G.H.Time.ConcatHM(Math.floor(t / 60), t % 60), Jn = (t) => {
|
|
12812
12812
|
if (!t)
|
|
12813
12813
|
return "";
|
|
12814
12814
|
const e = G.H.Time.HmsToHm(t);
|
|
12815
12815
|
return /^\d{1,2}:\d{2}$/.test(e) ? e : "";
|
|
12816
12816
|
}, yi = (t, e) => G.H.Time.DiffM(t ?? "", e ?? ""), on = (t, e) => G.H.Time.AddMtoHM(t, e), Ra = (t, e) => {
|
|
12817
|
-
const n =
|
|
12817
|
+
const n = Le(t.startTime), i = Le(e.startTime);
|
|
12818
12818
|
return isFinite(n) ? isFinite(i) ? n - i : -1 : 1;
|
|
12819
12819
|
}, Yi = (t, e) => {
|
|
12820
|
-
const n =
|
|
12820
|
+
const n = Le(t.startTime), i = Le(t.endTime), s = Le(e.startTime), o = Le(e.endTime);
|
|
12821
12821
|
return !isFinite(n) || !isFinite(i) || !isFinite(s) || !isFinite(o) ? !1 : n < o && s < i;
|
|
12822
12822
|
}, Qi = (t, e) => Math.round(t / e) * e, Fd = (t, e = 8 * 60, n = 20 * 60) => {
|
|
12823
12823
|
let i = e, s = n;
|
|
12824
12824
|
for (const { item: l } of t) {
|
|
12825
|
-
const r =
|
|
12825
|
+
const r = Le(l.startTime), c = Le(l.endTime);
|
|
12826
12826
|
isFinite(r) && (i = Math.min(i, r)), isFinite(c) && (s = Math.max(s, c));
|
|
12827
12827
|
}
|
|
12828
12828
|
const o = Math.floor(i / 60) * 60, a = Math.ceil(s / 60) * 60;
|
|
12829
12829
|
return { start: o, end: a, total: a - o || 60 };
|
|
12830
12830
|
}, Od = (t, e) => {
|
|
12831
|
-
const n =
|
|
12831
|
+
const n = Le(t.item.startTime), i = Le(t.item.endTime);
|
|
12832
12832
|
if (!isFinite(n) || !isFinite(i))
|
|
12833
12833
|
return { top: "0%", height: "48px" };
|
|
12834
12834
|
const s = (n - e.start) / e.total * 100, o = Math.max((i - n) / e.total * 100, 2.5);
|
|
12835
12835
|
return { top: s + "%", height: o + "%" };
|
|
12836
12836
|
}, Dd = (t, e) => {
|
|
12837
|
-
const n =
|
|
12837
|
+
const n = Le(t.startTime), i = Le(t.endTime);
|
|
12838
12838
|
if (!isFinite(n) || !isFinite(i) || i <= n)
|
|
12839
12839
|
return { top: "0%", height: "auto" };
|
|
12840
|
-
const s = i - n, o =
|
|
12840
|
+
const s = i - n, o = Le(e.startTime), a = Le(e.endTime), l = isFinite(o) ? Math.max((o - n) / s * 100, 0) : 0;
|
|
12841
12841
|
let r = isFinite(o) && isFinite(a) ? (a - o) / s * 100 : 8;
|
|
12842
12842
|
return r = Math.min(Math.max(r, 3), 100 - l), { top: l + "%", height: r + "%" };
|
|
12843
|
-
}, zd = (t, e, n) => t.some((i) => i.item.id === e.item.id || e.kind === "session" && i.kind === "slot" && i.item.sessionId === e.item.id ? !1 : n(e.item, i.item)),
|
|
12843
|
+
}, zd = (t, e, n) => t.some((i) => i.item.id === e.item.id || e.kind === "session" && i.kind === "slot" && i.item.sessionId === e.item.id ? !1 : n(e.item, i.item)), _d = (t, e, n) => t.some((i) => i.id !== e.id && n(e, i)), Ld = (t, e, n, i) => {
|
|
12844
12844
|
if (!(!isFinite(e) || !isFinite(n) || n <= e))
|
|
12845
12845
|
return (t || []).find((s) => {
|
|
12846
12846
|
const o = i(s.startTime), a = i(s.endTime);
|
|
@@ -12928,7 +12928,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12928
12928
|
},
|
|
12929
12929
|
emits: ["update:modelValue"],
|
|
12930
12930
|
setup(t, { emit: e }) {
|
|
12931
|
-
const n = t, i = e, s = D(!1), o = D(""), a =
|
|
12931
|
+
const n = t, i = e, s = D(!1), o = D(""), a = _(() => {
|
|
12932
12932
|
if (!n.modelValue) return "";
|
|
12933
12933
|
const c = /* @__PURE__ */ new Date(`${n.modelValue}T00:00:00`);
|
|
12934
12934
|
return isNaN(c.getTime()) ? n.modelValue : c.toLocaleDateString("ru-RU", { day: "2-digit", month: "2-digit", year: "numeric" });
|
|
@@ -13035,7 +13035,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13035
13035
|
}, l = (h) => {
|
|
13036
13036
|
const p = /^(\d{2}):(\d{2})$/.exec(h ?? "");
|
|
13037
13037
|
return p ? `${Number(p[1])}:${p[2]}` : h;
|
|
13038
|
-
}, r =
|
|
13038
|
+
}, r = _(() => n.modelValue || "");
|
|
13039
13039
|
Me(s, (h) => {
|
|
13040
13040
|
h && (o.value = a(n.modelValue));
|
|
13041
13041
|
});
|
|
@@ -13129,10 +13129,10 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13129
13129
|
}, O0 = { class: "schedule-toolbar row items-center q-gutter-sm q-mb-md" }, D0 = {
|
|
13130
13130
|
key: 0,
|
|
13131
13131
|
class: "day-tabs-wrap row items-center"
|
|
13132
|
-
}, z0 = { class: "day-tab-label" },
|
|
13132
|
+
}, z0 = { class: "day-tab-label" }, _0 = {
|
|
13133
13133
|
key: 3,
|
|
13134
13134
|
class: "row items-center q-gutter-xs zoom-control"
|
|
13135
|
-
},
|
|
13135
|
+
}, L0 = {
|
|
13136
13136
|
key: 0,
|
|
13137
13137
|
class: "grid-view"
|
|
13138
13138
|
}, V0 = {
|
|
@@ -13168,7 +13168,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13168
13168
|
}, xb = { class: "text-caption text-grey-6 q-mb-sm" }, $b = { class: "text-h6" }, Tb = { class: "row items-center q-gutter-sm q-mb-md" }, Pb = {
|
|
13169
13169
|
key: 0,
|
|
13170
13170
|
class: "text-grey text-center q-py-md"
|
|
13171
|
-
}, Rb = { class: "col ellipsis" }, Ib = { class: "text-h6" }, Mb = { class: "text-h6" }, Ab = { class: "row q-col-gutter-sm q-mb-sm" }, Eb = { class: "col-6" }, Fb = { class: "col-6" }, Ob = ["onClick"], pl = "schedule-grid-step", gl = "schedule-grid-zoom", Db = 15, zb = 60, vl = 6,
|
|
13171
|
+
}, Rb = { class: "col ellipsis" }, Ib = { class: "text-h6" }, Mb = { class: "text-h6" }, Ab = { class: "row q-col-gutter-sm q-mb-sm" }, Eb = { class: "col-6" }, Fb = { class: "col-6" }, Ob = ["onClick"], pl = "schedule-grid-step", gl = "schedule-grid-zoom", Db = 15, zb = 60, vl = 6, _b = /* @__PURE__ */ Y({
|
|
13172
13172
|
__name: "ScheduleGridEditor",
|
|
13173
13173
|
props: {
|
|
13174
13174
|
days: {},
|
|
@@ -13189,11 +13189,11 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13189
13189
|
},
|
|
13190
13190
|
setup(t) {
|
|
13191
13191
|
var Tr, Pr;
|
|
13192
|
-
const e = t, n =
|
|
13192
|
+
const e = t, n = _(() => e.sessionsEnabled !== !1), i = _(() => e.daysEnabled !== !1), s = _(() => e.placesEnabled !== !1), o = _(() => ({
|
|
13193
13193
|
...Ud,
|
|
13194
13194
|
duplicate: "Дублировать",
|
|
13195
13195
|
...e.labels
|
|
13196
|
-
})), a =
|
|
13196
|
+
})), a = _(() => ({
|
|
13197
13197
|
...Bd,
|
|
13198
13198
|
...e.factories
|
|
13199
13199
|
})), l = (y) => e.slotListOf ? e.slotListOf(y) : (y == null ? void 0 : y.slots) || [], r = (y) => e.nestedSlotListOf ? e.nestedSlotListOf(y) : (y == null ? void 0 : y.slots) || [], c = (y) => (y == null ? void 0 : y.name) || o.value.hall, f = (y) => e.sessionName ? e.sessionName(y) : (y == null ? void 0 : y.name) || `${o.value.session} ${(y == null ? void 0 : y.startTime) || ""}–${(y == null ? void 0 : y.endTime) || ""}`.trim(), h = (y) => e.slotName ? e.slotName(y) : (y == null ? void 0 : y.name) || o.value.slot, p = (y) => e.slotSubtitle ? e.slotSubtitle(y) : "", v = D("grid"), C = D((Pr = (Tr = e.days) == null ? void 0 : Tr[0]) == null ? void 0 : Pr.id), T = D(!1), P = D(""), $ = D(!1), M = D(!1), x = D(null), V = D(null), A = D(null), O = D(void 0), R = D(null), E = D(null), q = D(!1), be = D(0), K = D(null), Ue = [
|
|
@@ -13211,7 +13211,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13211
13211
|
{ label: "160 px/ч", value: 160 },
|
|
13212
13212
|
{ label: "200 px/ч", value: 200 },
|
|
13213
13213
|
{ label: "240 px/ч", value: 240 }
|
|
13214
|
-
], Ge =
|
|
13214
|
+
], Ge = _(() => [
|
|
13215
13215
|
{ label: o.value.grid, value: "grid", icon: "calendar_view_week" },
|
|
13216
13216
|
{ label: o.value.list, value: "list", icon: "view_list" }
|
|
13217
13217
|
]), lt = (y, S, I) => {
|
|
@@ -13221,13 +13221,13 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13221
13221
|
lt(pl, Ue.map((y) => y.value), Db)
|
|
13222
13222
|
), Vt = D(
|
|
13223
13223
|
lt(gl, je.map((y) => y.value), zb)
|
|
13224
|
-
), yt =
|
|
13224
|
+
), yt = _(() => ut.value);
|
|
13225
13225
|
Me(ut, (y) => localStorage.setItem(pl, String(y))), Me(Vt, (y) => localStorage.setItem(gl, String(y)));
|
|
13226
|
-
const cn =
|
|
13226
|
+
const cn = _(() => Math.max(Ke.value.total / 60 * Vt.value, 360)), zt = _(() => cn.value + "px"), Be = _(
|
|
13227
13227
|
() => [...e.days || []].sort(
|
|
13228
13228
|
(y, S) => new Date(y.date).getTime() - new Date(S.date).getTime()
|
|
13229
13229
|
)
|
|
13230
|
-
), re =
|
|
13230
|
+
), re = _(
|
|
13231
13231
|
() => Be.value.find((y) => y.id === C.value)
|
|
13232
13232
|
);
|
|
13233
13233
|
Me(
|
|
@@ -13291,7 +13291,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13291
13291
|
return (S == null ? void 0 : S.name) || o.value.hall;
|
|
13292
13292
|
}, bt = () => {
|
|
13293
13293
|
T.value = !0;
|
|
13294
|
-
}, Fn =
|
|
13294
|
+
}, Fn = _(() => {
|
|
13295
13295
|
const y = re.value, S = new Set(((y == null ? void 0 : y.schedules) || []).map((I) => I.placeId));
|
|
13296
13296
|
return (e.places || []).filter((I) => !S.has(I.id));
|
|
13297
13297
|
}), On = async (y, S) => {
|
|
@@ -13361,34 +13361,34 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13361
13361
|
}, fi = (y) => [
|
|
13362
13362
|
...n.value ? (y.sessions || []).map((S) => ({ kind: "session", item: S })) : [],
|
|
13363
13363
|
...Bi(y).map((S) => ({ kind: "slot", item: S }))
|
|
13364
|
-
], Io = (y) => n.value ? (y.sessions || []).map((S) => ({ kind: "session", item: S })) : [], Ke =
|
|
13364
|
+
], Io = (y) => n.value ? (y.sessions || []).map((S) => ({ kind: "session", item: S })) : [], Ke = _(() => {
|
|
13365
13365
|
var S, I;
|
|
13366
13366
|
const y = (((S = re.value) == null ? void 0 : S.schedules) || []).flatMap((N) => fi(N));
|
|
13367
13367
|
for (const N of ((I = re.value) == null ? void 0 : I.schedules) || [])
|
|
13368
13368
|
for (const te of N.sessions || [])
|
|
13369
13369
|
y.push(...Bt(te).map((he) => ({ kind: "slot", item: he })));
|
|
13370
13370
|
return Fd(y);
|
|
13371
|
-
}), Mo =
|
|
13371
|
+
}), Mo = _(() => {
|
|
13372
13372
|
const y = [];
|
|
13373
13373
|
for (let S = Ke.value.start; S <= Ke.value.end; S += 60)
|
|
13374
13374
|
y.push({ min: S, label: It(S) });
|
|
13375
13375
|
return y;
|
|
13376
|
-
}), Ao =
|
|
13376
|
+
}), Ao = _(() => {
|
|
13377
13377
|
const y = [];
|
|
13378
13378
|
for (let S = Ke.value.start + 30; S < Ke.value.end; S += 60)
|
|
13379
13379
|
y.push({ min: S, label: It(S) });
|
|
13380
13380
|
return y;
|
|
13381
|
-
}), Ss = (y) => Od(y, Ke.value), qi =
|
|
13381
|
+
}), Ss = (y) => Od(y, Ke.value), qi = _(() => {
|
|
13382
13382
|
if (!R.value || !A.value)
|
|
13383
13383
|
return {};
|
|
13384
13384
|
const y = Ke.value, S = (R.value.minutes - y.start) / y.total * 100, I = Math.max(A.value.duration / y.total * 100, 2.5);
|
|
13385
13385
|
return { top: S + "%", height: I + "%" };
|
|
13386
|
-
}), z =
|
|
13386
|
+
}), z = _(() => !R.value || !A.value ? "" : It(R.value.minutes + A.value.duration)), B = _(() => {
|
|
13387
13387
|
if (!R.value)
|
|
13388
13388
|
return {};
|
|
13389
13389
|
const y = Ke.value, S = (R.value.minutes - y.start) / y.total * 100, I = Math.max(yt.value / y.total * 100, 1.5);
|
|
13390
13390
|
return { top: S + "%", height: I + "%" };
|
|
13391
|
-
}), W =
|
|
13391
|
+
}), W = _(() => {
|
|
13392
13392
|
var te, he, ze, nt, ft;
|
|
13393
13393
|
if (!R.value || !A.value || !A.value.id)
|
|
13394
13394
|
return 0;
|
|
@@ -13403,8 +13403,8 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13403
13403
|
for (const Q of Bt(R.value.session))
|
|
13404
13404
|
Q.id !== ((ft = A.value) == null ? void 0 : ft.id) && Yi(S, Q) && N++;
|
|
13405
13405
|
return N;
|
|
13406
|
-
}), ie =
|
|
13407
|
-
const S = Ke.value, I =
|
|
13406
|
+
}), ie = _(() => W.value > 0), ge = (y, S) => zd(fi(y), S, Yi), at = (y, S) => _d(Bt(y), S, Yi), tt = (y, S) => Dd(y, S), Te = (y) => {
|
|
13407
|
+
const S = Ke.value, I = Le(y.item.startTime), N = Le(y.item.endTime);
|
|
13408
13408
|
return !isFinite(I) || !isFinite(N) ? 48 : (N - I) / S.total * cn.value;
|
|
13409
13409
|
}, se = (y) => Vd(Te(y)), le = (y) => {
|
|
13410
13410
|
const S = e.slotName ? e.slotName(y.item) : y.item.name || (y.kind === "session" ? o.value.session : o.value.slot);
|
|
@@ -13491,7 +13491,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13491
13491
|
he.sessions,
|
|
13492
13492
|
ze,
|
|
13493
13493
|
ze + (((ft = A.value) == null ? void 0 : ft.duration) || 30),
|
|
13494
|
-
|
|
13494
|
+
Le
|
|
13495
13495
|
)
|
|
13496
13496
|
} : {}
|
|
13497
13497
|
}, E.value = { x: y, y: S };
|
|
@@ -13544,7 +13544,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13544
13544
|
return xs((y = A.value) == null ? void 0 : y.id);
|
|
13545
13545
|
}, hc = (y, S) => {
|
|
13546
13546
|
S.preventDefault(), S.stopPropagation();
|
|
13547
|
-
const I = y.item, N =
|
|
13547
|
+
const I = y.item, N = Le(I.startTime), te = Le(I.endTime);
|
|
13548
13548
|
if (!isFinite(N) || !isFinite(te))
|
|
13549
13549
|
return;
|
|
13550
13550
|
const he = S.clientY;
|
|
@@ -13563,7 +13563,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13563
13563
|
}, hn = D(null), mc = (y, S, I) => {
|
|
13564
13564
|
if (I.target.closest(".nested-edit, .nested-resize") || I.button !== 0 || q.value)
|
|
13565
13565
|
return;
|
|
13566
|
-
const N = I.target.closest(".session-perfoms"), te =
|
|
13566
|
+
const N = I.target.closest(".session-perfoms"), te = Le(y.startTime), he = Le(y.endTime), ze = yi(S.startTime, S.endTime);
|
|
13567
13567
|
!N || !isFinite(te) || !isFinite(he) || he <= te || (hn.value = {
|
|
13568
13568
|
perfom: S,
|
|
13569
13569
|
session: y,
|
|
@@ -13620,7 +13620,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13620
13620
|
y.key === "Escape" && Do();
|
|
13621
13621
|
}, gc = (y, S, I) => {
|
|
13622
13622
|
I.preventDefault(), I.stopPropagation();
|
|
13623
|
-
const N =
|
|
13623
|
+
const N = Le(y.startTime), te = Le(y.endTime), he = Le(S.startTime), ze = I.target.closest(".nested-perfom"), nt = ze == null ? void 0 : ze.closest(".session-perfoms");
|
|
13624
13624
|
if (!ze || !nt || !isFinite(N) || !isFinite(te) || te <= N || !isFinite(he))
|
|
13625
13625
|
return;
|
|
13626
13626
|
const ft = nt.getBoundingClientRect(), Q = te - N;
|
|
@@ -13648,11 +13648,11 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13648
13648
|
return;
|
|
13649
13649
|
const ze = I.item.startTime;
|
|
13650
13650
|
if (I.item.startTime = N, I.item.endTime = he, I.kind === "slot" && n.value) {
|
|
13651
|
-
const Ce = $s(y.sessions,
|
|
13651
|
+
const Ce = $s(y.sessions, Le(N), Le(he), Le);
|
|
13652
13652
|
Ce ? I.item.sessionId = Ce.id : delete I.item.sessionId;
|
|
13653
13653
|
} else I.kind === "slot" && delete I.item.sessionId;
|
|
13654
13654
|
if (I.kind === "session") {
|
|
13655
|
-
const Ce =
|
|
13655
|
+
const Ce = Le(N) - Le(ze);
|
|
13656
13656
|
for (const me of Bt(I.item))
|
|
13657
13657
|
me.startTime && (me.startTime = on(me.startTime, Ce), me.endTime && (me.endTime = on(me.endTime, Ce)), me.scheduleId = y.id, await Dn(me, "slot"));
|
|
13658
13658
|
}
|
|
@@ -13668,7 +13668,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13668
13668
|
return;
|
|
13669
13669
|
const I = St(S.currentTarget, S.clientY), N = a.value.createSlot(y);
|
|
13670
13670
|
if (N.startTime = It(I), N.endTime = It(I + 30), n.value) {
|
|
13671
|
-
const he = $s(y.sessions, I, I + 30,
|
|
13671
|
+
const he = $s(y.sessions, I, I + 30, Le);
|
|
13672
13672
|
he != null && he.id && (N.sessionId = he.id);
|
|
13673
13673
|
}
|
|
13674
13674
|
await e.persist.createSlot(N), await e.persist.refresh();
|
|
@@ -13689,7 +13689,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13689
13689
|
if (I)
|
|
13690
13690
|
return I;
|
|
13691
13691
|
}
|
|
13692
|
-
}, $s = (y, S, I, N) =>
|
|
13692
|
+
}, $s = (y, S, I, N) => Ld(y, S, I, N), pr = (y) => n.value ? ((y == null ? void 0 : y.sessions) || []).map((S) => ({
|
|
13693
13693
|
id: S.id,
|
|
13694
13694
|
label: f(S)
|
|
13695
13695
|
})) : [], gr = (y) => {
|
|
@@ -13697,11 +13697,11 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13697
13697
|
for (const I of S.schedules || [])
|
|
13698
13698
|
if (l(I).some((N) => N.id === y.id) || y.sessionId && (I.sessions || []).some((N) => N.id === y.sessionId))
|
|
13699
13699
|
return I;
|
|
13700
|
-
}, vr =
|
|
13700
|
+
}, vr = _(() => {
|
|
13701
13701
|
const y = V.value;
|
|
13702
13702
|
if (y)
|
|
13703
13703
|
return y.kind === "session" ? hi(y.item.scheduleId) || yr(y.item, "session") : gr(y.item);
|
|
13704
|
-
}), yc =
|
|
13704
|
+
}), yc = _(() => {
|
|
13705
13705
|
const y = V.value;
|
|
13706
13706
|
return !y || y.kind !== "slot" ? [] : pr(vr.value);
|
|
13707
13707
|
}), yr = (y, S) => {
|
|
@@ -13722,7 +13722,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13722
13722
|
}, bc = async (y, S) => {
|
|
13723
13723
|
const I = a.value.createSlot(y);
|
|
13724
13724
|
if (I.startTime = It(S), I.endTime = on(I.startTime, 30), n.value) {
|
|
13725
|
-
const te = $s(y.sessions, S, S + 30,
|
|
13725
|
+
const te = $s(y.sessions, S, S + 30, Le);
|
|
13726
13726
|
te != null && te.id && (I.sessionId = te.id);
|
|
13727
13727
|
}
|
|
13728
13728
|
await e.persist.createSlot(I), await e.persist.refresh();
|
|
@@ -13733,7 +13733,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13733
13733
|
S.startTime = Jn(I == null ? void 0 : I.endTime) || "9:00", S.endTime = on(S.startTime, 30), await e.persist.createSlot(S), await e.persist.refresh();
|
|
13734
13734
|
}, mn = D(null), wc = (y) => {
|
|
13735
13735
|
mn.value = null, y.action();
|
|
13736
|
-
},
|
|
13736
|
+
}, _o = (y, S) => {
|
|
13737
13737
|
const I = S.length * 34 + 12;
|
|
13738
13738
|
mn.value = {
|
|
13739
13739
|
x: Math.min(y.clientX, window.innerWidth - 210),
|
|
@@ -13748,10 +13748,10 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13748
13748
|
y.key === "Escape" && (mn.value = null);
|
|
13749
13749
|
}, Ts = () => {
|
|
13750
13750
|
mn.value = null;
|
|
13751
|
-
},
|
|
13752
|
-
|
|
13751
|
+
}, Lo = D(!1), Sc = () => {
|
|
13752
|
+
Lo.value || (window.addEventListener("click", Cr), window.addEventListener("contextmenu", kr), window.addEventListener("keydown", xr), window.addEventListener("scroll", Ts, !0), window.addEventListener("resize", Ts), Lo.value = !0);
|
|
13753
13753
|
}, Cc = () => {
|
|
13754
|
-
window.removeEventListener("click", Cr), window.removeEventListener("contextmenu", kr), window.removeEventListener("keydown", xr), window.removeEventListener("scroll", Ts, !0), window.removeEventListener("resize", Ts),
|
|
13754
|
+
window.removeEventListener("click", Cr), window.removeEventListener("contextmenu", kr), window.removeEventListener("keydown", xr), window.removeEventListener("scroll", Ts, !0), window.removeEventListener("resize", Ts), Lo.value = !1;
|
|
13755
13755
|
};
|
|
13756
13756
|
Sc();
|
|
13757
13757
|
const kc = (y, S) => {
|
|
@@ -13769,7 +13769,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13769
13769
|
action: () => void Ni(y.item, y.kind)
|
|
13770
13770
|
}
|
|
13771
13771
|
];
|
|
13772
|
-
|
|
13772
|
+
_o(S, I);
|
|
13773
13773
|
}, xc = (y, S) => {
|
|
13774
13774
|
const I = { kind: "slot", item: y }, N = [
|
|
13775
13775
|
{ icon: "edit", label: o.value.edit, action: () => zn(I) },
|
|
@@ -13785,7 +13785,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13785
13785
|
action: () => void Ni(y, "slot")
|
|
13786
13786
|
}
|
|
13787
13787
|
];
|
|
13788
|
-
|
|
13788
|
+
_o(S, N);
|
|
13789
13789
|
}, $c = (y, S) => {
|
|
13790
13790
|
const I = St(S.currentTarget, S.clientY), N = It(I), te = [
|
|
13791
13791
|
{
|
|
@@ -13798,7 +13798,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13798
13798
|
icon: "groups",
|
|
13799
13799
|
label: `${o.value.addSession} · ${N}`,
|
|
13800
13800
|
action: () => void Tc(y, I)
|
|
13801
|
-
}),
|
|
13801
|
+
}), _o(S, te);
|
|
13802
13802
|
}, Tc = async (y, S) => {
|
|
13803
13803
|
if (!n.value)
|
|
13804
13804
|
return;
|
|
@@ -13859,7 +13859,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13859
13859
|
"active-color": "primary"
|
|
13860
13860
|
}, {
|
|
13861
13861
|
default: k(() => [
|
|
13862
|
-
(m(!0), w(J, null, Se(Be.value, (Q) => (m(),
|
|
13862
|
+
(m(!0), w(J, null, Se(Be.value, (Q) => (m(), L(u($l), {
|
|
13863
13863
|
key: Q.id,
|
|
13864
13864
|
name: Q.id,
|
|
13865
13865
|
class: "day-tab"
|
|
@@ -13909,14 +13909,14 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13909
13909
|
})
|
|
13910
13910
|
])) : H("", !0),
|
|
13911
13911
|
g(u(bn)),
|
|
13912
|
-
i.value && re.value ? (m(),
|
|
13912
|
+
i.value && re.value ? (m(), L(I0, {
|
|
13913
13913
|
key: 1,
|
|
13914
13914
|
"model-value": sn(re.value.date),
|
|
13915
13915
|
label: o.value.date,
|
|
13916
13916
|
class: "date-input",
|
|
13917
13917
|
"onUpdate:modelValue": S[1] || (S[1] = (Q) => Xe(re.value, Q))
|
|
13918
13918
|
}, null, 8, ["model-value", "label"])) : H("", !0),
|
|
13919
|
-
s.value ? (m(),
|
|
13919
|
+
s.value ? (m(), L(I, {
|
|
13920
13920
|
key: 2,
|
|
13921
13921
|
size: "sm",
|
|
13922
13922
|
color: "primary",
|
|
@@ -13925,7 +13925,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13925
13925
|
label: o.value.addHall,
|
|
13926
13926
|
onClick: bt
|
|
13927
13927
|
}, null, 8, ["label"])) : H("", !0),
|
|
13928
|
-
v.value === "grid" ? (m(), w("div",
|
|
13928
|
+
v.value === "grid" ? (m(), w("div", _0, [
|
|
13929
13929
|
g(u(ae), {
|
|
13930
13930
|
name: "grid_on",
|
|
13931
13931
|
size: "18px",
|
|
@@ -13998,7 +13998,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13998
13998
|
_: 1
|
|
13999
13999
|
}, 8, ["modelValue", "options"])
|
|
14000
14000
|
]),
|
|
14001
|
-
v.value === "grid" ? (m(), w("div",
|
|
14001
|
+
v.value === "grid" ? (m(), w("div", L0, [
|
|
14002
14002
|
Oe(re.value).length ? (m(), w("div", {
|
|
14003
14003
|
key: 1,
|
|
14004
14004
|
ref_key: "gridScrollRef",
|
|
@@ -14043,7 +14043,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14043
14043
|
]),
|
|
14044
14044
|
_: 1
|
|
14045
14045
|
}, 8, ["onClick"]),
|
|
14046
|
-
n.value ? (m(),
|
|
14046
|
+
n.value ? (m(), L(I, {
|
|
14047
14047
|
key: 0,
|
|
14048
14048
|
size: "sm",
|
|
14049
14049
|
flat: "",
|
|
@@ -14062,7 +14062,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14062
14062
|
]),
|
|
14063
14063
|
_: 1
|
|
14064
14064
|
}, 8, ["onClick"])) : H("", !0),
|
|
14065
|
-
s.value ? (m(),
|
|
14065
|
+
s.value ? (m(), L(I, {
|
|
14066
14066
|
key: 1,
|
|
14067
14067
|
size: "sm",
|
|
14068
14068
|
flat: "",
|
|
@@ -14157,7 +14157,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14157
14157
|
], 46, J0))), 128))
|
|
14158
14158
|
])) : H("", !0),
|
|
14159
14159
|
b("div", nb, [
|
|
14160
|
-
ge(Q, fe) ? (m(),
|
|
14160
|
+
ge(Q, fe) ? (m(), L(u(ae), {
|
|
14161
14161
|
key: 0,
|
|
14162
14162
|
name: "warning",
|
|
14163
14163
|
size: "12px",
|
|
@@ -14235,7 +14235,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14235
14235
|
], 4)
|
|
14236
14236
|
], 512)) : (m(), w("div", V0, [
|
|
14237
14237
|
we(U(o.value.noHalls) + " ", 1),
|
|
14238
|
-
s.value ? (m(),
|
|
14238
|
+
s.value ? (m(), L(I, {
|
|
14239
14239
|
key: 0,
|
|
14240
14240
|
flat: "",
|
|
14241
14241
|
color: "primary",
|
|
@@ -14283,7 +14283,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14283
14283
|
we(" " + U(hn.value.perfom.startTime) + "–" + U(hn.value.perfom.endTime) + " · " + U(o.value.intoSession), 1)
|
|
14284
14284
|
], 4)) : H("", !0)
|
|
14285
14285
|
])) : (m(), w("div", cb, [
|
|
14286
|
-
(m(!0), w(J, null, Se(Oe(re.value), (Q) => (m(),
|
|
14286
|
+
(m(!0), w(J, null, Se(Oe(re.value), (Q) => (m(), L(u(Kt), {
|
|
14287
14287
|
key: Q.id,
|
|
14288
14288
|
class: "hall-card q-mb-md"
|
|
14289
14289
|
}, {
|
|
@@ -14316,7 +14316,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14316
14316
|
label: o.value.slot,
|
|
14317
14317
|
onClick: (fe) => Sr(Q)
|
|
14318
14318
|
}, null, 8, ["label", "onClick"]),
|
|
14319
|
-
s.value ? (m(),
|
|
14319
|
+
s.value ? (m(), L(I, {
|
|
14320
14320
|
key: 0,
|
|
14321
14321
|
size: "sm",
|
|
14322
14322
|
flat: "",
|
|
@@ -14469,7 +14469,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14469
14469
|
class: "time-input",
|
|
14470
14470
|
"onUpdate:modelValue": (me) => Ps(Ce, "endTime", me, "slot")
|
|
14471
14471
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
|
|
14472
|
-
n.value ? (m(),
|
|
14472
|
+
n.value ? (m(), L(te, {
|
|
14473
14473
|
key: 0,
|
|
14474
14474
|
"model-value": Ce.sessionId,
|
|
14475
14475
|
label: o.value.sessionSelect,
|
|
@@ -14660,7 +14660,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14660
14660
|
}),
|
|
14661
14661
|
_: 1
|
|
14662
14662
|
}),
|
|
14663
|
-
V.value ? (m(),
|
|
14663
|
+
V.value ? (m(), L(u(kt), {
|
|
14664
14664
|
key: 0,
|
|
14665
14665
|
class: "q-pt-none"
|
|
14666
14666
|
}, {
|
|
@@ -14693,7 +14693,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14693
14693
|
}, null, 8, ["modelValue", "label"])
|
|
14694
14694
|
])
|
|
14695
14695
|
]),
|
|
14696
|
-
V.value.kind === "slot" && n.value ? (m(),
|
|
14696
|
+
V.value.kind === "slot" && n.value ? (m(), L(te, {
|
|
14697
14697
|
key: 0,
|
|
14698
14698
|
"model-value": V.value.item.sessionId,
|
|
14699
14699
|
label: o.value.sessionSelect,
|
|
@@ -14711,7 +14711,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14711
14711
|
item: V.value.item,
|
|
14712
14712
|
schedule: vr.value
|
|
14713
14713
|
}, void 0, !0),
|
|
14714
|
-
V.value.kind === "slot" ? (m(),
|
|
14714
|
+
V.value.kind === "slot" ? (m(), L(he, {
|
|
14715
14715
|
key: 1,
|
|
14716
14716
|
modelValue: V.value.item.description,
|
|
14717
14717
|
"onUpdate:modelValue": S[14] || (S[14] = (Q) => V.value.item.description = Q),
|
|
@@ -14726,7 +14726,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14726
14726
|
})) : H("", !0),
|
|
14727
14727
|
g(u(ti), { align: "right" }, {
|
|
14728
14728
|
default: k(() => [
|
|
14729
|
-
V.value ? (m(),
|
|
14729
|
+
V.value ? (m(), L(I, {
|
|
14730
14730
|
key: 0,
|
|
14731
14731
|
flat: "",
|
|
14732
14732
|
color: "negative",
|
|
@@ -14778,7 +14778,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14778
14778
|
]);
|
|
14779
14779
|
};
|
|
14780
14780
|
}
|
|
14781
|
-
}),
|
|
14781
|
+
}), Lb = /* @__PURE__ */ X(_b, [["__scopeId", "data-v-bda5dfed"]]), Vb = { class: "schedule-timeline" }, Ub = {
|
|
14782
14782
|
key: 0,
|
|
14783
14783
|
class: "timeline-container"
|
|
14784
14784
|
}, Bb = { class: "day-header" }, qb = { class: "day-title" }, Nb = { class: "timeline" }, Hb = {
|
|
@@ -14819,7 +14819,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14819
14819
|
},
|
|
14820
14820
|
emits: ["open-participant", "slot-click"],
|
|
14821
14821
|
setup(t, { emit: e }) {
|
|
14822
|
-
const n = t, i = e, s =
|
|
14822
|
+
const n = t, i = e, s = _(() => ({
|
|
14823
14823
|
noProgram: n.noProgramText || "Программа пока не опубликована"
|
|
14824
14824
|
})), o = (x) => {
|
|
14825
14825
|
if (n.dayTitle)
|
|
@@ -14855,7 +14855,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14855
14855
|
))
|
|
14856
14856
|
V.push({ kind: "slot", item: R, nested: !1, index: O++ });
|
|
14857
14857
|
return V;
|
|
14858
|
-
}, $ =
|
|
14858
|
+
}, $ = _(() => {
|
|
14859
14859
|
var x;
|
|
14860
14860
|
return (x = n.days) == null ? void 0 : x.some(
|
|
14861
14861
|
(V) => {
|
|
@@ -14985,7 +14985,7 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14985
14985
|
}
|
|
14986
14986
|
}), gw = /* @__PURE__ */ X(pw, [["__scopeId", "data-v-a0112395"]]), vw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14987
14987
|
__proto__: null,
|
|
14988
|
-
ScheduleGridEditor:
|
|
14988
|
+
ScheduleGridEditor: Lb,
|
|
14989
14989
|
ScheduleTimeline: gw
|
|
14990
14990
|
}, Symbol.toStringTag, { value: "Module" })), yw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14991
14991
|
__proto__: null,
|
|
@@ -14994,16 +14994,16 @@ const T0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14994
14994
|
blockStyle: Od,
|
|
14995
14995
|
byStart: Ra,
|
|
14996
14996
|
diffM: yi,
|
|
14997
|
-
findEnclosingSession:
|
|
14997
|
+
findEnclosingSession: Ld,
|
|
14998
14998
|
fromMin: It,
|
|
14999
14999
|
gridBounds: Fd,
|
|
15000
15000
|
hasConflict: zd,
|
|
15001
15001
|
intersects: Yi,
|
|
15002
|
-
nestedConflict:
|
|
15002
|
+
nestedConflict: _d,
|
|
15003
15003
|
nestedSlotStyle: Dd,
|
|
15004
15004
|
normTime: Jn,
|
|
15005
15005
|
snapMinutes: Qi,
|
|
15006
|
-
toMin:
|
|
15006
|
+
toMin: Le
|
|
15007
15007
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15008
15008
|
let bw = class extends ot {
|
|
15009
15009
|
constructor() {
|
|
@@ -15061,13 +15061,13 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15061
15061
|
cellClass: { default: "" }
|
|
15062
15062
|
},
|
|
15063
15063
|
setup(t) {
|
|
15064
|
-
const e = t, n =
|
|
15064
|
+
const e = t, n = _(
|
|
15065
15065
|
() => e.actions.filter((i) => i.show ? i.show(e.row) : !0)
|
|
15066
15066
|
);
|
|
15067
|
-
return (i, s) => (m(),
|
|
15067
|
+
return (i, s) => (m(), L(Mn(t.bare ? "div" : u(qt)), rt(t.bare ? {} : { autoWidth: !0 }, { class: t.cellClass }), {
|
|
15068
15068
|
default: k(() => [
|
|
15069
15069
|
b("div", Ew, [
|
|
15070
|
-
(m(!0), w(J, null, Se(u(n), (o, a) => (m(),
|
|
15070
|
+
(m(!0), w(J, null, Se(u(n), (o, a) => (m(), L(ue, {
|
|
15071
15071
|
key: a,
|
|
15072
15072
|
size: "sm",
|
|
15073
15073
|
round: "",
|
|
@@ -15095,7 +15095,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15095
15095
|
},
|
|
15096
15096
|
emits: ["select"],
|
|
15097
15097
|
setup(t, { emit: e }) {
|
|
15098
|
-
const n = t, i = D(""), s = n.store.Options, o =
|
|
15098
|
+
const n = t, i = D(""), s = n.store.Options, o = _(
|
|
15099
15099
|
() => s.filter((r) => G.H.Strings.SearchIn(r.label, i.value))
|
|
15100
15100
|
), a = e;
|
|
15101
15101
|
kn(async () => {
|
|
@@ -15123,7 +15123,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15123
15123
|
default: k(() => [
|
|
15124
15124
|
g(u(Oi), { dense: "" }, {
|
|
15125
15125
|
default: k(() => [
|
|
15126
|
-
(m(!0), w(J, null, Se(u(o), (h) => et((m(),
|
|
15126
|
+
(m(!0), w(J, null, Se(u(o), (h) => et((m(), L(u(qn), {
|
|
15127
15127
|
key: h.value,
|
|
15128
15128
|
clickable: "",
|
|
15129
15129
|
class: "tag-item",
|
|
@@ -15151,7 +15151,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15151
15151
|
]);
|
|
15152
15152
|
};
|
|
15153
15153
|
}
|
|
15154
|
-
}), sr = /* @__PURE__ */ X(zw, [["__scopeId", "data-v-6aea6f67"]]),
|
|
15154
|
+
}), sr = /* @__PURE__ */ X(zw, [["__scopeId", "data-v-6aea6f67"]]), _w = {
|
|
15155
15155
|
modelValue: !1,
|
|
15156
15156
|
title: "Редактирование",
|
|
15157
15157
|
confirmLabel: "Сохранить",
|
|
@@ -15159,7 +15159,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15159
15159
|
width: "720px",
|
|
15160
15160
|
disabled: !1,
|
|
15161
15161
|
showConfirm: !0
|
|
15162
|
-
},
|
|
15162
|
+
}, Lw = { class: "edit-dialog-header" }, Vw = { class: "edit-dialog-title" }, Uw = { class: "edit-dialog-content" }, Bw = {
|
|
15163
15163
|
key: 0,
|
|
15164
15164
|
class: "edit-dialog-actions"
|
|
15165
15165
|
}, qw = /* @__PURE__ */ Y({
|
|
@@ -15172,7 +15172,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15172
15172
|
width: {},
|
|
15173
15173
|
disabled: { type: Boolean },
|
|
15174
15174
|
showConfirm: { type: Boolean }
|
|
15175
|
-
},
|
|
15175
|
+
}, _w),
|
|
15176
15176
|
emits: ["update:modelValue", "confirm", "close"],
|
|
15177
15177
|
setup(t, { expose: e, emit: n }) {
|
|
15178
15178
|
const i = Yn, s = t, o = n, a = D(!1);
|
|
@@ -15200,7 +15200,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15200
15200
|
);
|
|
15201
15201
|
p && "focus" in p && p.focus();
|
|
15202
15202
|
};
|
|
15203
|
-
return (p, v) => (m(),
|
|
15203
|
+
return (p, v) => (m(), L(rn, {
|
|
15204
15204
|
modelValue: u(a),
|
|
15205
15205
|
"onUpdate:modelValue": [
|
|
15206
15206
|
v[0] || (v[0] = (C) => $e(a) ? a.value = C : null),
|
|
@@ -15218,7 +15218,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15218
15218
|
class: "edit-dialog",
|
|
15219
15219
|
style: ee({ width: s.width })
|
|
15220
15220
|
}, [
|
|
15221
|
-
b("div",
|
|
15221
|
+
b("div", Lw, [
|
|
15222
15222
|
b("div", Vw, U(s.title), 1),
|
|
15223
15223
|
et(g(ue, {
|
|
15224
15224
|
icon: "close",
|
|
@@ -15281,7 +15281,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15281
15281
|
n.row[n.prop] = l, await n.store.Update(n.row), (r = s.value) == null || r.toggle();
|
|
15282
15282
|
};
|
|
15283
15283
|
return (l, r) => (m(), w(J, null, [
|
|
15284
|
-
(m(),
|
|
15284
|
+
(m(), L(u(qt), {
|
|
15285
15285
|
key: t.prop,
|
|
15286
15286
|
class: "tags-cell"
|
|
15287
15287
|
}, {
|
|
@@ -15338,14 +15338,14 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15338
15338
|
max: { default: 1 }
|
|
15339
15339
|
},
|
|
15340
15340
|
setup(t) {
|
|
15341
|
-
const e = t, n = D(), i =
|
|
15341
|
+
const e = t, n = D(), i = _(
|
|
15342
15342
|
() => e.items !== void 0 ? e.items : e.row ? e.row[e.prop ?? ""] : []
|
|
15343
|
-
), s =
|
|
15343
|
+
), s = _(() => i.value ? (Array.isArray(i.value) ? i.value : [i.value]).filter((f) => f == null ? void 0 : f.id) : []), o = _(() => s.value.length), a = _(() => s.value.slice(0, Math.max(1, e.max))), l = _(() => Math.max(0, o.value - a.value.length)), r = async (c) => {
|
|
15344
15344
|
var f;
|
|
15345
15345
|
e.row && e.prop && e.store && (e.row[e.prop] = c, await e.store.Update(e.row)), (f = n.value) == null || f.toggle();
|
|
15346
15346
|
};
|
|
15347
15347
|
return (c, f) => (m(), w(J, null, [
|
|
15348
|
-
(m(),
|
|
15348
|
+
(m(), L(u(qt), {
|
|
15349
15349
|
key: t.cellKey,
|
|
15350
15350
|
class: "tags-cell"
|
|
15351
15351
|
}, {
|
|
@@ -15381,7 +15381,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15381
15381
|
}, {
|
|
15382
15382
|
default: k(() => [
|
|
15383
15383
|
j(c.$slots, "default", {}, () => [
|
|
15384
|
-
t.storeOpts ? (m(),
|
|
15384
|
+
t.storeOpts ? (m(), L(sr, {
|
|
15385
15385
|
key: 0,
|
|
15386
15386
|
store: t.storeOpts,
|
|
15387
15387
|
onSelect: r
|
|
@@ -15408,7 +15408,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15408
15408
|
const n = t, i = e, s = () => {
|
|
15409
15409
|
n.count !== 0 && (n.to && G.H.Router.To(n.to), i("click"));
|
|
15410
15410
|
};
|
|
15411
|
-
return (o, a) => (m(),
|
|
15411
|
+
return (o, a) => (m(), L(u(qt), {
|
|
15412
15412
|
key: t.cellKey,
|
|
15413
15413
|
class: "relation-cell"
|
|
15414
15414
|
}, {
|
|
@@ -15431,7 +15431,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15431
15431
|
row: {}
|
|
15432
15432
|
},
|
|
15433
15433
|
setup(t) {
|
|
15434
|
-
return (e, n) => (m(),
|
|
15434
|
+
return (e, n) => (m(), L(u(qt), { "auto-width": "" }, {
|
|
15435
15435
|
default: k(() => [
|
|
15436
15436
|
g(ue, {
|
|
15437
15437
|
size: "sm",
|
|
@@ -15477,28 +15477,28 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15477
15477
|
},
|
|
15478
15478
|
emits: ["commit"],
|
|
15479
15479
|
setup(t, { emit: e }) {
|
|
15480
|
-
const n = t, i = e, s =
|
|
15480
|
+
const n = t, i = e, s = _(() => n.kind !== "none" && n.editable), o = _(
|
|
15481
15481
|
() => n.kind === "text" || n.kind === "number" || n.kind === "date"
|
|
15482
|
-
), a =
|
|
15482
|
+
), a = _(() => n.kind === "select" || n.kind === "enum"), l = _(
|
|
15483
15483
|
() => n.modelValue === null || n.modelValue === void 0 || n.modelValue === ""
|
|
15484
|
-
), r =
|
|
15484
|
+
), r = _(() => {
|
|
15485
15485
|
if (n.displayValue != null && n.displayValue !== "")
|
|
15486
15486
|
return n.displayValue;
|
|
15487
15487
|
if (l.value)
|
|
15488
15488
|
return n.emptyText;
|
|
15489
15489
|
const R = n.modelValue;
|
|
15490
15490
|
return n.kind === "number" && n.unit ? `${R} ${n.unit}` : typeof R == "boolean" ? R ? "Да" : "Нет" : String(R);
|
|
15491
|
-
}), c = D(null), f = D(!1), h =
|
|
15491
|
+
}), c = D(null), f = D(!1), h = _({
|
|
15492
15492
|
get: () => c.value === null || c.value === void 0 || c.value === "" ? "" : String(c.value),
|
|
15493
15493
|
set: (R) => {
|
|
15494
15494
|
c.value = R ? String(R) : null;
|
|
15495
15495
|
}
|
|
15496
|
-
}), p =
|
|
15496
|
+
}), p = _({
|
|
15497
15497
|
get: () => typeof c.value == "string" || typeof c.value == "number" ? c.value : "",
|
|
15498
15498
|
set: (R) => {
|
|
15499
15499
|
c.value = R;
|
|
15500
15500
|
}
|
|
15501
|
-
}), v =
|
|
15501
|
+
}), v = _({
|
|
15502
15502
|
get: () => typeof c.value == "string" || typeof c.value == "number" ? c.value : "",
|
|
15503
15503
|
set: (R) => {
|
|
15504
15504
|
c.value = R;
|
|
@@ -15522,7 +15522,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15522
15522
|
return void ((E = n.search) == null ? void 0 : E.call(n, R));
|
|
15523
15523
|
}, n.searchDebounce));
|
|
15524
15524
|
});
|
|
15525
|
-
const V =
|
|
15525
|
+
const V = _(() => {
|
|
15526
15526
|
if (n.search)
|
|
15527
15527
|
return n.options;
|
|
15528
15528
|
const R = $.value.trim().toLowerCase();
|
|
@@ -15535,7 +15535,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15535
15535
|
class: ye(["p-table-editable", { "is-readonly": !u(s) }]),
|
|
15536
15536
|
"data-kind": t.kind
|
|
15537
15537
|
}, [
|
|
15538
|
-
u(s) && t.kind === "toggle" ? (m(),
|
|
15538
|
+
u(s) && t.kind === "toggle" ? (m(), L(u(wl), {
|
|
15539
15539
|
key: 0,
|
|
15540
15540
|
"model-value": !!t.modelValue,
|
|
15541
15541
|
dense: "",
|
|
@@ -15557,7 +15557,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15557
15557
|
class: ye(["cell-text readonly", { empty: u(l), num: t.kind === "number" }])
|
|
15558
15558
|
}, U(u(r)), 3))
|
|
15559
15559
|
], 10, Kw),
|
|
15560
|
-
u(s) && u(o) ? (m(),
|
|
15560
|
+
u(s) && u(o) ? (m(), L(rn, {
|
|
15561
15561
|
key: 0,
|
|
15562
15562
|
modelValue: u(f),
|
|
15563
15563
|
"onUpdate:modelValue": E[6] || (E[6] = (q) => $e(f) ? f.value = q : null),
|
|
@@ -15580,12 +15580,12 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15580
15580
|
onClick: E[1] || (E[1] = (q) => f.value = !1)
|
|
15581
15581
|
})
|
|
15582
15582
|
]),
|
|
15583
|
-
t.kind === "date" ? (m(),
|
|
15583
|
+
t.kind === "date" ? (m(), L(ja, {
|
|
15584
15584
|
key: 0,
|
|
15585
15585
|
modelValue: u(h),
|
|
15586
15586
|
"onUpdate:modelValue": E[2] || (E[2] = (q) => $e(h) ? h.value = q : null),
|
|
15587
15587
|
autofocus: ""
|
|
15588
|
-
}, null, 8, ["modelValue"])) : t.kind === "number" ? (m(),
|
|
15588
|
+
}, null, 8, ["modelValue"])) : t.kind === "number" ? (m(), L(Ne, {
|
|
15589
15589
|
key: 1,
|
|
15590
15590
|
modelValue: u(p),
|
|
15591
15591
|
"onUpdate:modelValue": E[3] || (E[3] = (q) => $e(p) ? p.value = q : null),
|
|
@@ -15595,7 +15595,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15595
15595
|
step: t.step,
|
|
15596
15596
|
placeholder: t.placeholder,
|
|
15597
15597
|
autofocus: ""
|
|
15598
|
-
}, null, 8, ["modelValue", "min", "max", "step", "placeholder"])) : (m(),
|
|
15598
|
+
}, null, 8, ["modelValue", "min", "max", "step", "placeholder"])) : (m(), L(Ne, {
|
|
15599
15599
|
key: 2,
|
|
15600
15600
|
modelValue: u(v),
|
|
15601
15601
|
"onUpdate:modelValue": E[4] || (E[4] = (q) => $e(v) ? v.value = q : null),
|
|
@@ -15625,7 +15625,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15625
15625
|
]),
|
|
15626
15626
|
_: 1
|
|
15627
15627
|
}, 8, ["modelValue"])) : H("", !0),
|
|
15628
|
-
u(s) && u(a) ? (m(),
|
|
15628
|
+
u(s) && u(a) ? (m(), L(rn, {
|
|
15629
15629
|
key: 1,
|
|
15630
15630
|
modelValue: u(P),
|
|
15631
15631
|
"onUpdate:modelValue": E[10] || (E[10] = (q) => $e(P) ? P.value = q : null),
|
|
@@ -15679,7 +15679,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15679
15679
|
class: ye(["pec-picker-item", { "is-active": q.value === u(M) }]),
|
|
15680
15680
|
onClick: (be) => M.value = q.value
|
|
15681
15681
|
}, [
|
|
15682
|
-
q.value === u(M) ? (m(),
|
|
15682
|
+
q.value === u(M) ? (m(), L(u(ae), {
|
|
15683
15683
|
key: 0,
|
|
15684
15684
|
name: "check",
|
|
15685
15685
|
size: "16px"
|
|
@@ -15729,17 +15729,17 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15729
15729
|
tooltipThreshold: { default: 10 }
|
|
15730
15730
|
},
|
|
15731
15731
|
setup(t) {
|
|
15732
|
-
const e = t, n = D(), i =
|
|
15732
|
+
const e = t, n = D(), i = _(() => e.row[e.prop]), s = _(() => !!e.store && !e.readonly), o = _(() => {
|
|
15733
15733
|
const r = i.value;
|
|
15734
15734
|
return r != null && String(r).length > e.tooltipThreshold;
|
|
15735
|
-
}), a =
|
|
15735
|
+
}), a = _(() => {
|
|
15736
15736
|
const r = i.value;
|
|
15737
15737
|
return r == null || r === "" ? e.emptyPlaceholder : typeof r == "number" && e.decimals !== void 0 ? r.toFixed(e.decimals) : String(r);
|
|
15738
15738
|
}), l = async () => {
|
|
15739
15739
|
e.store && await e.store.Update(e.row);
|
|
15740
15740
|
};
|
|
15741
15741
|
return (r, c) => (m(), w(J, null, [
|
|
15742
|
-
(m(),
|
|
15742
|
+
(m(), L(u(qt), {
|
|
15743
15743
|
key: t.prop,
|
|
15744
15744
|
class: "p-table-number-cell"
|
|
15745
15745
|
}, {
|
|
@@ -15752,7 +15752,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15752
15752
|
})
|
|
15753
15753
|
}, [
|
|
15754
15754
|
b("span", p2, U(u(a)), 1),
|
|
15755
|
-
u(o) ? (m(),
|
|
15755
|
+
u(o) ? (m(), L(Gn, { key: 0 }, {
|
|
15756
15756
|
default: k(() => [
|
|
15757
15757
|
we(U(u(i)), 1)
|
|
15758
15758
|
]),
|
|
@@ -15762,7 +15762,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15762
15762
|
]),
|
|
15763
15763
|
_: 1
|
|
15764
15764
|
})),
|
|
15765
|
-
u(s) ? (m(),
|
|
15765
|
+
u(s) ? (m(), L(ws, {
|
|
15766
15766
|
key: 0,
|
|
15767
15767
|
ref_key: "edit",
|
|
15768
15768
|
ref: n,
|
|
@@ -15795,10 +15795,10 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15795
15795
|
store: {}
|
|
15796
15796
|
},
|
|
15797
15797
|
setup(t) {
|
|
15798
|
-
const e = t, n =
|
|
15798
|
+
const e = t, n = _(() => e.storeOpts.Options);
|
|
15799
15799
|
return kn(async () => {
|
|
15800
15800
|
await e.storeOpts.GetOptions();
|
|
15801
|
-
}), (i, s) => (m(),
|
|
15801
|
+
}), (i, s) => (m(), L(u(qt), {
|
|
15802
15802
|
key: t.prop,
|
|
15803
15803
|
class: "relation-cell"
|
|
15804
15804
|
}, {
|
|
@@ -15829,17 +15829,17 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15829
15829
|
label: { default: "" }
|
|
15830
15830
|
},
|
|
15831
15831
|
setup(t) {
|
|
15832
|
-
const e = t, n = D(), i =
|
|
15832
|
+
const e = t, n = D(), i = _(() => e.row[e.prop] || ""), s = _(() => !!e.store && !e.readonly), o = _(() => {
|
|
15833
15833
|
const r = i.value;
|
|
15834
15834
|
return typeof r == "string" && r.length > e.truncateLength;
|
|
15835
|
-
}), a =
|
|
15835
|
+
}), a = _(() => {
|
|
15836
15836
|
const r = i.value;
|
|
15837
15837
|
return typeof r != "string" ? r : r.length > e.truncateLength ? r.slice(0, e.truncateLength) + "..." : r;
|
|
15838
15838
|
}), l = async () => {
|
|
15839
15839
|
e.store && await e.store.Update(e.row);
|
|
15840
15840
|
};
|
|
15841
15841
|
return (r, c) => (m(), w(J, null, [
|
|
15842
|
-
(m(),
|
|
15842
|
+
(m(), L(u(qt), {
|
|
15843
15843
|
key: t.prop,
|
|
15844
15844
|
class: "p-table-string-cell"
|
|
15845
15845
|
}, {
|
|
@@ -15852,7 +15852,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15852
15852
|
})
|
|
15853
15853
|
}, [
|
|
15854
15854
|
b("span", y2, U(u(a)), 1),
|
|
15855
|
-
u(o) ? (m(),
|
|
15855
|
+
u(o) ? (m(), L(Gn, { key: 0 }, {
|
|
15856
15856
|
default: k(() => [
|
|
15857
15857
|
we(U(u(i)), 1)
|
|
15858
15858
|
]),
|
|
@@ -15862,7 +15862,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15862
15862
|
]),
|
|
15863
15863
|
_: 1
|
|
15864
15864
|
})),
|
|
15865
|
-
u(s) ? (m(),
|
|
15865
|
+
u(s) ? (m(), L(ws, {
|
|
15866
15866
|
key: 0,
|
|
15867
15867
|
ref_key: "edit",
|
|
15868
15868
|
ref: n,
|
|
@@ -15903,15 +15903,15 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15903
15903
|
function n(v) {
|
|
15904
15904
|
return v.width ? { width: v.width, maxWidth: v.width } : {};
|
|
15905
15905
|
}
|
|
15906
|
-
const i =
|
|
15906
|
+
const i = _(
|
|
15907
15907
|
() => (s.cols ?? []).some((v) => !!v.width)
|
|
15908
|
-
), s = t, o =
|
|
15908
|
+
), s = t, o = _(() => {
|
|
15909
15909
|
var C;
|
|
15910
15910
|
if (s.loading)
|
|
15911
15911
|
return !0;
|
|
15912
15912
|
const v = (C = s.store) == null ? void 0 : C.loading;
|
|
15913
15913
|
return typeof v == "boolean" ? v : !!(v != null && v.value);
|
|
15914
|
-
}), a = xn(), l =
|
|
15914
|
+
}), a = xn(), l = _(() => s.ftsp ?? a), r = e, c = D({
|
|
15915
15915
|
page: 0,
|
|
15916
15916
|
rowsNumber: f(),
|
|
15917
15917
|
rowsPerPage: 25,
|
|
@@ -15932,7 +15932,7 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15932
15932
|
var C, T;
|
|
15933
15933
|
h(v), s.store && await ((T = (C = s.store).FTSP) == null ? void 0 : T.call(C, { ftsp: l.value })), r("request");
|
|
15934
15934
|
};
|
|
15935
|
-
return (v, C) => (m(),
|
|
15935
|
+
return (v, C) => (m(), L(u(Nc), {
|
|
15936
15936
|
pagination: u(c),
|
|
15937
15937
|
"onUpdate:pagination": C[0] || (C[0] = (T) => $e(c) ? c.value = T : null),
|
|
15938
15938
|
columns: t.cols,
|
|
@@ -15953,11 +15953,11 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15953
15953
|
j(v.$slots, "header", { props: T }, () => [
|
|
15954
15954
|
g(u(Ir), { props: T }, {
|
|
15955
15955
|
default: k(() => [
|
|
15956
|
-
t.lead ? (m(),
|
|
15956
|
+
t.lead ? (m(), L(u(Mr), {
|
|
15957
15957
|
key: 0,
|
|
15958
15958
|
class: "p-table__lead"
|
|
15959
15959
|
})) : H("", !0),
|
|
15960
|
-
(m(!0), w(J, null, Se(T.cols, (P) => (m(),
|
|
15960
|
+
(m(!0), w(J, null, Se(T.cols, (P) => (m(), L(u(Mr), {
|
|
15961
15961
|
key: P.name,
|
|
15962
15962
|
props: T,
|
|
15963
15963
|
style: ee(n(P))
|
|
@@ -15980,12 +15980,12 @@ const Rw = new Pw(), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
15980
15980
|
}, null, 8, ["showing"])
|
|
15981
15981
|
]),
|
|
15982
15982
|
body: k((T) => [
|
|
15983
|
-
j(v.$slots, "body", zs(
|
|
15983
|
+
j(v.$slots, "body", zs(_s(T)), () => {
|
|
15984
15984
|
var P;
|
|
15985
15985
|
return [
|
|
15986
15986
|
g(u(Ir), rt({ props: T }, ((P = t.rowAttrs) == null ? void 0 : P.call(t, T.row)) ?? {}), {
|
|
15987
15987
|
default: k(() => [
|
|
15988
|
-
t.lead ? (m(),
|
|
15988
|
+
t.lead ? (m(), L(u(qt), {
|
|
15989
15989
|
key: 0,
|
|
15990
15990
|
class: "p-table__lead"
|
|
15991
15991
|
}, {
|
|
@@ -16074,7 +16074,7 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16074
16074
|
"onUpdate:modelValue": s
|
|
16075
16075
|
}, {
|
|
16076
16076
|
default: k(() => [
|
|
16077
|
-
(m(!0), w(J, null, Se(t.tabsStore.items, (l) => (m(),
|
|
16077
|
+
(m(!0), w(J, null, Se(t.tabsStore.items, (l) => (m(), L(u($l), {
|
|
16078
16078
|
key: l.value,
|
|
16079
16079
|
name: l.value,
|
|
16080
16080
|
label: l.htmlLabel ? void 0 : l.label,
|
|
@@ -16086,7 +16086,7 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16086
16086
|
key: 0,
|
|
16087
16087
|
innerHTML: l.htmlLabel
|
|
16088
16088
|
}, null, 8, C2)) : H("", !0),
|
|
16089
|
-
l.alert ? (m(),
|
|
16089
|
+
l.alert ? (m(), L(u(Cl), {
|
|
16090
16090
|
key: 1,
|
|
16091
16091
|
color: "negative",
|
|
16092
16092
|
floating: "",
|
|
@@ -16111,7 +16111,7 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16111
16111
|
"transition-next": "slide-left"
|
|
16112
16112
|
}, {
|
|
16113
16113
|
default: k(() => [
|
|
16114
|
-
(m(!0), w(J, null, Se(t.tabsStore.items, (l) => (m(),
|
|
16114
|
+
(m(!0), w(J, null, Se(t.tabsStore.items, (l) => (m(), L(u(Pl), {
|
|
16115
16115
|
key: l.value,
|
|
16116
16116
|
name: l.value,
|
|
16117
16117
|
class: "tab-panel"
|
|
@@ -16121,7 +16121,7 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16121
16121
|
item: l,
|
|
16122
16122
|
tab: l
|
|
16123
16123
|
}, () => [
|
|
16124
|
-
(m(),
|
|
16124
|
+
(m(), L(Mn(l.component)))
|
|
16125
16125
|
], !0)
|
|
16126
16126
|
]),
|
|
16127
16127
|
_: 2
|
|
@@ -16160,7 +16160,7 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16160
16160
|
const h = f.action, p = typeof h == "function" ? h : h == null ? void 0 : h.value;
|
|
16161
16161
|
typeof p == "function" && p();
|
|
16162
16162
|
}, c = D(18);
|
|
16163
|
-
return (f, h) => (m(),
|
|
16163
|
+
return (f, h) => (m(), L(u(jc), {
|
|
16164
16164
|
modelValue: u(c),
|
|
16165
16165
|
"onUpdate:modelValue": h[0] || (h[0] = (p) => $e(c) ? c.value = p : null),
|
|
16166
16166
|
class: "full-height",
|
|
@@ -16172,7 +16172,7 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16172
16172
|
class: "left-menu"
|
|
16173
16173
|
}, {
|
|
16174
16174
|
default: k(() => [
|
|
16175
|
-
(m(!0), w(J, null, Se(t.tabsStore.items, (p) => (m(),
|
|
16175
|
+
(m(!0), w(J, null, Se(t.tabsStore.items, (p) => (m(), L(u(qn), {
|
|
16176
16176
|
key: p.value,
|
|
16177
16177
|
clickable: "",
|
|
16178
16178
|
active: p.value === t.tabsStore.value,
|
|
@@ -16194,7 +16194,7 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16194
16194
|
_: 1
|
|
16195
16195
|
}),
|
|
16196
16196
|
t.buttons.length ? (m(), w("div", x2, [
|
|
16197
|
-
(m(!0), w(J, null, Se(t.buttons, (p, v) => (m(),
|
|
16197
|
+
(m(!0), w(J, null, Se(t.buttons, (p, v) => (m(), L(ue, {
|
|
16198
16198
|
key: v,
|
|
16199
16199
|
label: p.text,
|
|
16200
16200
|
color: l(p),
|
|
@@ -16212,13 +16212,13 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16212
16212
|
class: "left-panels"
|
|
16213
16213
|
}, {
|
|
16214
16214
|
default: k(() => [
|
|
16215
|
-
(m(!0), w(J, null, Se(t.tabsStore.GetItems(), (p) => (m(),
|
|
16215
|
+
(m(!0), w(J, null, Se(t.tabsStore.GetItems(), (p) => (m(), L(u(Pl), {
|
|
16216
16216
|
key: p.value,
|
|
16217
16217
|
name: p.value
|
|
16218
16218
|
}, {
|
|
16219
16219
|
default: k(() => [
|
|
16220
16220
|
j(f.$slots, "default", { item: p }, () => [
|
|
16221
|
-
(m(),
|
|
16221
|
+
(m(), L(Mn(p.component)))
|
|
16222
16222
|
], !0)
|
|
16223
16223
|
]),
|
|
16224
16224
|
_: 2
|
|
@@ -16322,7 +16322,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16322
16322
|
}, P2 = (t, e, n) => !e || !n ? null : t[e] ?? null, R2 = { class: "q-pa-md" }, I2 = { class: "row items-center q-gutter-md q-mb-md" }, M2 = { style: { width: "320px", flex: "0 1 320px" } }, A2 = { class: "text-caption text-grey-6" }, E2 = { class: "actions-cell" }, F2 = { key: 0 }, O2 = {
|
|
16323
16323
|
key: 1,
|
|
16324
16324
|
class: "text-grey-5"
|
|
16325
|
-
}, D2 = { class: "what-row" }, z2 = { class: "what-entity" },
|
|
16325
|
+
}, D2 = { class: "what-row" }, z2 = { class: "what-entity" }, _2 = ["title"], L2 = {
|
|
16326
16326
|
key: 1,
|
|
16327
16327
|
class: "what-object"
|
|
16328
16328
|
}, V2 = { class: "delta-label" }, U2 = { class: "old" }, B2 = { class: "new" }, q2 = ["title"], N2 = {
|
|
@@ -16354,7 +16354,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16354
16354
|
limit: { default: 25 }
|
|
16355
16355
|
},
|
|
16356
16356
|
setup(t) {
|
|
16357
|
-
const e = t, n = D([]), i = D(0), s = D(""), o = D(null), a = D(e.entity), l = D(null), r = D([]), c = D(1), f = D([]), h =
|
|
16357
|
+
const e = t, n = D([]), i = D(0), s = D(""), o = D(null), a = D(e.entity), l = D(null), r = D([]), c = D(1), f = D([]), h = _(() => {
|
|
16358
16358
|
const E = /* @__PURE__ */ new Map();
|
|
16359
16359
|
for (const q of n.value)
|
|
16360
16360
|
q.entity && !E.has(q.entity) && E.set(q.entity, q.entityRus || q.entity);
|
|
@@ -16497,7 +16497,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16497
16497
|
onClick: V
|
|
16498
16498
|
})
|
|
16499
16499
|
]),
|
|
16500
|
-
u(n).length ? (m(),
|
|
16500
|
+
u(n).length ? (m(), L(or, {
|
|
16501
16501
|
key: 0,
|
|
16502
16502
|
dense: "",
|
|
16503
16503
|
cols: p,
|
|
@@ -16506,7 +16506,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16506
16506
|
}, {
|
|
16507
16507
|
lead: k(({ row: K }) => [
|
|
16508
16508
|
b("div", E2, [
|
|
16509
|
-
v(K) ? (m(),
|
|
16509
|
+
v(K) ? (m(), L(ue, {
|
|
16510
16510
|
key: 0,
|
|
16511
16511
|
flat: "",
|
|
16512
16512
|
dense: "",
|
|
@@ -16540,7 +16540,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16540
16540
|
title: "Отменить это изменение и всё, что было после него",
|
|
16541
16541
|
onClick: (Ue) => x(K, "cascade")
|
|
16542
16542
|
}, null, 8, ["loading", "onClick"])
|
|
16543
|
-
], 64)) : (m(),
|
|
16543
|
+
], 64)) : (m(), L(u(ae), {
|
|
16544
16544
|
key: 2,
|
|
16545
16545
|
name: "block",
|
|
16546
16546
|
size: "14px",
|
|
@@ -16581,9 +16581,9 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16581
16581
|
b("span", {
|
|
16582
16582
|
class: "what-object",
|
|
16583
16583
|
title: K.objectTitle
|
|
16584
|
-
}, U(u(Ds)(K.objectTitle, 40)), 9,
|
|
16585
|
-
], 64)) : K.code ? (m(), w("span",
|
|
16586
|
-
K.isRevert ? (m(),
|
|
16584
|
+
}, U(u(Ds)(K.objectTitle, 40)), 9, _2)
|
|
16585
|
+
], 64)) : K.code ? (m(), w("span", L2, U(K.code), 1)) : H("", !0),
|
|
16586
|
+
K.isRevert ? (m(), L(Fi, {
|
|
16587
16587
|
key: 2,
|
|
16588
16588
|
color: "warning",
|
|
16589
16589
|
label: "Откат"
|
|
@@ -16676,7 +16676,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16676
16676
|
operations: { default: () => [] }
|
|
16677
16677
|
},
|
|
16678
16678
|
setup(t) {
|
|
16679
|
-
const e = t, n = D([]), i = D(!1), s = D(null), o = D(null), a = D(""), l = D([]), r =
|
|
16679
|
+
const e = t, n = D([]), i = D(!1), s = D(null), o = D(null), a = D(""), l = D([]), r = _(() => !!(s.value || o.value || a.value)), c = _(() => {
|
|
16680
16680
|
let p = n.value;
|
|
16681
16681
|
if (s.value && (p = p.filter((v) => v.operation === s.value)), o.value && (p = p.filter((v) => v.userName === o.value)), a.value.trim()) {
|
|
16682
16682
|
const v = a.value.trim().toLowerCase();
|
|
@@ -16780,7 +16780,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16780
16780
|
}, null, 8, ["color", "label"]),
|
|
16781
16781
|
C.entityRus ? (m(), w("span", rS, U(C.entityRus), 1)) : H("", !0),
|
|
16782
16782
|
b("span", lS, U(C.userName || "система"), 1),
|
|
16783
|
-
C.isRevert ? (m(),
|
|
16783
|
+
C.isRevert ? (m(), L(Fi, {
|
|
16784
16784
|
key: 1,
|
|
16785
16785
|
color: "warning",
|
|
16786
16786
|
label: "Откат"
|
|
@@ -16820,13 +16820,13 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16820
16820
|
},
|
|
16821
16821
|
emits: ["remove", "update:model-value", "update:selected"],
|
|
16822
16822
|
setup(t, { emit: e }) {
|
|
16823
|
-
const n = e, i = ln(), s =
|
|
16823
|
+
const n = e, i = ln(), s = _(() => {
|
|
16824
16824
|
const o = {};
|
|
16825
16825
|
for (const a of Object.keys(i))
|
|
16826
16826
|
["label", "color", "text-color", "outline", "square", "dense", "removable"].includes(a) || (o[a] = i[a]);
|
|
16827
16827
|
return o;
|
|
16828
16828
|
});
|
|
16829
|
-
return (o, a) => (m(),
|
|
16829
|
+
return (o, a) => (m(), L(u(Gc), rt(u(s), {
|
|
16830
16830
|
label: t.label || void 0,
|
|
16831
16831
|
color: t.color || void 0,
|
|
16832
16832
|
"text-color": t.textColor || void 0,
|
|
@@ -16917,7 +16917,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16917
16917
|
format24h: !0,
|
|
16918
16918
|
pluralDay: "дни"
|
|
16919
16919
|
};
|
|
16920
|
-
return (C, T) => (m(),
|
|
16920
|
+
return (C, T) => (m(), L(Ne, {
|
|
16921
16921
|
"model-value": u(i),
|
|
16922
16922
|
label: t.label,
|
|
16923
16923
|
placeholder: t.placeholder,
|
|
@@ -17082,7 +17082,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17082
17082
|
}, reset: ($) => {
|
|
17083
17083
|
var M;
|
|
17084
17084
|
return (M = l.value) == null ? void 0 : M.reset($);
|
|
17085
|
-
} }), ($, M) => (m(),
|
|
17085
|
+
} }), ($, M) => (m(), L(u(Wc), {
|
|
17086
17086
|
ref_key: "qFormRef",
|
|
17087
17087
|
ref: l,
|
|
17088
17088
|
greedy: t.greedy,
|
|
@@ -17116,7 +17116,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17116
17116
|
setup(t) {
|
|
17117
17117
|
const e = D(!1);
|
|
17118
17118
|
return (n, i) => (m(), w(J, null, [
|
|
17119
|
-
t.text ? (m(),
|
|
17119
|
+
t.text ? (m(), L(u(ae), {
|
|
17120
17120
|
key: 0,
|
|
17121
17121
|
name: "help_outline",
|
|
17122
17122
|
size: "15px",
|
|
@@ -17249,14 +17249,14 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17249
17249
|
onClick: l[0] || (l[0] = (c) => o(!u(s)))
|
|
17250
17250
|
}, {
|
|
17251
17251
|
default: k(() => [
|
|
17252
|
-
u(s) ? (m(),
|
|
17252
|
+
u(s) ? (m(), L(r, {
|
|
17253
17253
|
key: 0,
|
|
17254
17254
|
string: t.titleOpen,
|
|
17255
17255
|
"font-size": "16px",
|
|
17256
17256
|
padding: "0",
|
|
17257
17257
|
color: "inherit"
|
|
17258
17258
|
}, null, 8, ["string"])) : H("", !0),
|
|
17259
|
-
u(s) ? H("", !0) : (m(),
|
|
17259
|
+
u(s) ? H("", !0) : (m(), L(r, {
|
|
17260
17260
|
key: 1,
|
|
17261
17261
|
string: t.titleClose,
|
|
17262
17262
|
"font-size": "16px",
|
|
@@ -17278,7 +17278,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17278
17278
|
width: { type: String, required: !1, default: "300px" }
|
|
17279
17279
|
},
|
|
17280
17280
|
setup(t) {
|
|
17281
|
-
return (e, n) => (m(),
|
|
17281
|
+
return (e, n) => (m(), L(u(Oi), {
|
|
17282
17282
|
tag: "ul",
|
|
17283
17283
|
style: ee({
|
|
17284
17284
|
margin: t.margin,
|
|
@@ -17301,7 +17301,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17301
17301
|
background: { type: String, required: !1, default: "" }
|
|
17302
17302
|
},
|
|
17303
17303
|
setup(t) {
|
|
17304
|
-
return (e, n) => (m(),
|
|
17304
|
+
return (e, n) => (m(), L(u(qn), {
|
|
17305
17305
|
tag: "li",
|
|
17306
17306
|
style: ee({
|
|
17307
17307
|
margin: t.margin,
|
|
@@ -17328,10 +17328,10 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17328
17328
|
}, DS = { class: "p-loader__text" }, zS = {
|
|
17329
17329
|
key: 2,
|
|
17330
17330
|
class: "p-loader__state"
|
|
17331
|
-
},
|
|
17331
|
+
}, _S = {
|
|
17332
17332
|
key: 0,
|
|
17333
17333
|
class: "p-loader__text"
|
|
17334
|
-
},
|
|
17334
|
+
}, LS = /* @__PURE__ */ Y({
|
|
17335
17335
|
name: "PLoader",
|
|
17336
17336
|
__name: "PLoader",
|
|
17337
17337
|
props: {
|
|
@@ -17367,7 +17367,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17367
17367
|
class: "p-loader__icon--error"
|
|
17368
17368
|
}, null, 8, ["size"]),
|
|
17369
17369
|
b("div", DS, U(t.error), 1),
|
|
17370
|
-
t.retryLabel ? (m(),
|
|
17370
|
+
t.retryLabel ? (m(), L(ue, {
|
|
17371
17371
|
key: 0,
|
|
17372
17372
|
unelevated: "",
|
|
17373
17373
|
color: "primary",
|
|
@@ -17384,12 +17384,12 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17384
17384
|
size: t.iconSize,
|
|
17385
17385
|
class: "p-loader__icon--empty"
|
|
17386
17386
|
}, null, 8, ["name", "size"]),
|
|
17387
|
-
t.emptyText ? (m(), w("div",
|
|
17387
|
+
t.emptyText ? (m(), w("div", _S, U(t.emptyText), 1)) : H("", !0),
|
|
17388
17388
|
j(i.$slots, "empty", {}, void 0, !0)
|
|
17389
17389
|
])) : j(i.$slots, "default", {}, void 0, !0, 3)
|
|
17390
17390
|
], 2));
|
|
17391
17391
|
}
|
|
17392
|
-
}), VS = /* @__PURE__ */ X(
|
|
17392
|
+
}), VS = /* @__PURE__ */ X(LS, [["__scopeId", "data-v-fb83c4ac"]]), US = /* @__PURE__ */ Y({
|
|
17393
17393
|
__name: "POpts",
|
|
17394
17394
|
props: {
|
|
17395
17395
|
label: {},
|
|
@@ -17428,7 +17428,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17428
17428
|
return kn(async () => {
|
|
17429
17429
|
var r, c;
|
|
17430
17430
|
n.length > 0 || !e.storeOpts || await ((c = (r = e.storeOpts).GetOptions) == null ? void 0 : c.call(r, e.optLabel, e.optValue));
|
|
17431
|
-
}), (r, c) => (m(),
|
|
17431
|
+
}), (r, c) => (m(), L(Ot, {
|
|
17432
17432
|
"use-input": "",
|
|
17433
17433
|
options: u(i),
|
|
17434
17434
|
"model-value": t.item[t.prop + "Id"],
|
|
@@ -17538,14 +17538,14 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17538
17538
|
onClick: l[0] || (l[0] = (c) => o(!u(s)))
|
|
17539
17539
|
}, {
|
|
17540
17540
|
default: k(() => [
|
|
17541
|
-
u(s) ? (m(),
|
|
17541
|
+
u(s) ? (m(), L(r, {
|
|
17542
17542
|
key: 0,
|
|
17543
17543
|
string: t.titleOpen,
|
|
17544
17544
|
"font-size": "16px",
|
|
17545
17545
|
padding: "0",
|
|
17546
17546
|
color: "inherit"
|
|
17547
17547
|
}, null, 8, ["string"])) : H("", !0),
|
|
17548
|
-
u(s) ? H("", !0) : (m(),
|
|
17548
|
+
u(s) ? H("", !0) : (m(), L(r, {
|
|
17549
17549
|
key: 1,
|
|
17550
17550
|
string: t.titleClose,
|
|
17551
17551
|
"font-size": "16px",
|
|
@@ -17607,10 +17607,10 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17607
17607
|
readonly: { type: Boolean, default: !1 }
|
|
17608
17608
|
},
|
|
17609
17609
|
setup(t) {
|
|
17610
|
-
const e = t, n =
|
|
17610
|
+
const e = t, n = _(() => e.row[e.prop]), i = async () => {
|
|
17611
17611
|
e.row[e.prop] = !e.row[e.prop], await e.store.Update(e.row);
|
|
17612
17612
|
};
|
|
17613
|
-
return (s, o) => (m(),
|
|
17613
|
+
return (s, o) => (m(), L(u(qt), { key: t.prop }, {
|
|
17614
17614
|
default: k(() => [
|
|
17615
17615
|
b("div", {
|
|
17616
17616
|
class: ye(["toggle-cell", { clickable: !e.readonly }]),
|
|
@@ -17688,7 +17688,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17688
17688
|
}
|
|
17689
17689
|
s.value = c.value, i("update:model-value", c.value);
|
|
17690
17690
|
};
|
|
17691
|
-
return (p, v) => (m(),
|
|
17691
|
+
return (p, v) => (m(), L(Ne, {
|
|
17692
17692
|
"model-value": u(s),
|
|
17693
17693
|
label: t.label,
|
|
17694
17694
|
placeholder: t.placeholder,
|
|
@@ -17799,7 +17799,7 @@ const T2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17799
17799
|
tint: { default: "var(--palette-primary-base)" }
|
|
17800
17800
|
},
|
|
17801
17801
|
setup(t) {
|
|
17802
|
-
const e = t, n =
|
|
17802
|
+
const e = t, n = _(() => typeof e.value == "number" ? e.value.toLocaleString("ru-RU") : e.value);
|
|
17803
17803
|
return (i, s) => (m(), w("div", KS, [
|
|
17804
17804
|
t.icon ? (m(), w("div", {
|
|
17805
17805
|
key: 0,
|
|
@@ -17849,7 +17849,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
17849
17849
|
}),
|
|
17850
17850
|
emits: /* @__PURE__ */ De(["addImage", "remove", "sort"], ["update:images"]),
|
|
17851
17851
|
setup(t, { emit: e }) {
|
|
17852
|
-
const n = Yn, i = t, s = vt(t, "images"), o = e, a =
|
|
17852
|
+
const n = Yn, i = t, s = vt(t, "images"), o = e, a = _(() => u(s) ?? []), l = D(), r = D(!1), c = D(!1), f = D(0), h = D(!1), p = D(""), v = D(i.ratio), C = _(
|
|
17853
17853
|
() => v.value > 0 ? { aspectRatio: String(v.value) } : {}
|
|
17854
17854
|
), T = D(), P = D(), $ = (Z) => typeof Z.getFileUrl == "function" ? Z.getFileUrl() : "", M = mt(/* @__PURE__ */ new Set()), x = (Z) => {
|
|
17855
17855
|
Z.id && M.add(Z.id);
|
|
@@ -17898,7 +17898,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
17898
17898
|
return;
|
|
17899
17899
|
}
|
|
17900
17900
|
const ne = new jt();
|
|
17901
|
-
ne.id =
|
|
17901
|
+
ne.id = Lt.UUID(), ne.itemId = A(), ne.type = i.type, ne.originalName = Z.name, ne.file = Z, ne.src = URL.createObjectURL(Z), P.value = ne, T.value = void 0, p.value = ne.src, h.value = !0;
|
|
17902
17902
|
}, Vt = async (Z) => {
|
|
17903
17903
|
var Fe;
|
|
17904
17904
|
const ne = T.value;
|
|
@@ -18048,10 +18048,10 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18048
18048
|
disabled: u(r),
|
|
18049
18049
|
onClick: O
|
|
18050
18050
|
}, [
|
|
18051
|
-
u(r) ? (m(),
|
|
18051
|
+
u(r) ? (m(), L(Fe, {
|
|
18052
18052
|
key: 0,
|
|
18053
18053
|
size: "24px"
|
|
18054
|
-
})) : (m(),
|
|
18054
|
+
})) : (m(), L(u(ae), {
|
|
18055
18055
|
key: 1,
|
|
18056
18056
|
name: "add_photo_alternate",
|
|
18057
18057
|
size: "28px"
|
|
@@ -18111,7 +18111,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18111
18111
|
}),
|
|
18112
18112
|
g(u(kt), { class: "cropper-section" }, {
|
|
18113
18113
|
default: k(() => [
|
|
18114
|
-
u(p) ? (m(),
|
|
18114
|
+
u(p) ? (m(), L(fd, {
|
|
18115
18115
|
key: 0,
|
|
18116
18116
|
src: u(p),
|
|
18117
18117
|
ratio: u(v),
|
|
@@ -18144,7 +18144,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18144
18144
|
height: "100%"
|
|
18145
18145
|
}, {
|
|
18146
18146
|
default: k(() => [
|
|
18147
|
-
(m(!0), w(J, null, Se(u(a), (pe, Oe) => (m(),
|
|
18147
|
+
(m(!0), w(J, null, Se(u(a), (pe, Oe) => (m(), L(u(Qc), {
|
|
18148
18148
|
key: pe.id ?? Oe,
|
|
18149
18149
|
name: Oe,
|
|
18150
18150
|
class: "viewer-slide"
|
|
@@ -18236,7 +18236,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18236
18236
|
};
|
|
18237
18237
|
return (l, r) => {
|
|
18238
18238
|
const c = Ie("PSelect");
|
|
18239
|
-
return m(),
|
|
18239
|
+
return m(), L(c, {
|
|
18240
18240
|
modelValue: u(s),
|
|
18241
18241
|
"onUpdate:modelValue": r[0] || (r[0] = (f) => $e(s) ? s.value = f : null),
|
|
18242
18242
|
clearable: !!u(s),
|
|
@@ -18422,7 +18422,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18422
18422
|
], 4)) : H("", !0)
|
|
18423
18423
|
], 4));
|
|
18424
18424
|
}
|
|
18425
|
-
}), ac = /* @__PURE__ */ X(E8, [["__scopeId", "data-v-d02c66ef"]]), F8 = { style: { display: "flex", "justify-content": "center", width: "100%" } }, O8 = { class: "pag-number" }, D8 = { class: "pag-ul" }, z8 = { key: 2 },
|
|
18425
|
+
}), ac = /* @__PURE__ */ X(E8, [["__scopeId", "data-v-d02c66ef"]]), F8 = { style: { display: "flex", "justify-content": "center", width: "100%" } }, O8 = { class: "pag-number" }, D8 = { class: "pag-ul" }, z8 = { key: 2 }, _8 = /* @__PURE__ */ Y({
|
|
18426
18426
|
__name: "PPagination",
|
|
18427
18427
|
props: {
|
|
18428
18428
|
showConfirm: {
|
|
@@ -18448,7 +18448,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18448
18448
|
return await l(f);
|
|
18449
18449
|
}, l = async (f, h) => {
|
|
18450
18450
|
i.value.setCurPage(f), Gt.Get().p.offset = (f - 1) * i.value.limit, await e.store.FTSP(), c();
|
|
18451
|
-
}, r =
|
|
18451
|
+
}, r = _(() => {
|
|
18452
18452
|
const f = i.value.pagesCount();
|
|
18453
18453
|
return f < 8 ? Sn.GenerateNumsRange(2, f - 1).filter((h) => h < f && h > 1) : Sn.GenerateNumsRange(i.value.curPage - 2, i.value.curPage + 3).filter((h) => h < f && h > 1);
|
|
18454
18454
|
}), c = () => {
|
|
@@ -18495,7 +18495,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18495
18495
|
onClick: h[2] || (h[2] = (M) => a(i.value.curPage - 5))
|
|
18496
18496
|
}, {
|
|
18497
18497
|
default: k(() => [
|
|
18498
|
-
s.value ? (m(),
|
|
18498
|
+
s.value ? (m(), L(C, { key: 0 })) : (m(), L(T, { key: 1 }))
|
|
18499
18499
|
]),
|
|
18500
18500
|
_: 1
|
|
18501
18501
|
})
|
|
@@ -18518,7 +18518,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18518
18518
|
onClick: h[5] || (h[5] = (M) => a(i.value.curPage + 5))
|
|
18519
18519
|
}, {
|
|
18520
18520
|
default: k(() => [
|
|
18521
|
-
o.value ? (m(),
|
|
18521
|
+
o.value ? (m(), L(P, { key: 0 })) : (m(), L(T, { key: 1 }))
|
|
18522
18522
|
]),
|
|
18523
18523
|
_: 1
|
|
18524
18524
|
})
|
|
@@ -18546,7 +18546,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18546
18546
|
]);
|
|
18547
18547
|
};
|
|
18548
18548
|
}
|
|
18549
|
-
}),
|
|
18549
|
+
}), L8 = /* @__PURE__ */ X(_8, [["__scopeId", "data-v-41005b6d"]]), V8 = /* @__PURE__ */ Y({
|
|
18550
18550
|
__name: "RemoteSearch",
|
|
18551
18551
|
props: {
|
|
18552
18552
|
keyValue: {
|
|
@@ -18613,7 +18613,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18613
18613
|
}, c = (f) => {
|
|
18614
18614
|
i("input", f), f.length === 0 && i("input", "");
|
|
18615
18615
|
};
|
|
18616
|
-
return (f, h) => (m(),
|
|
18616
|
+
return (f, h) => (m(), L(ac, {
|
|
18617
18617
|
ref_key: "searchForm",
|
|
18618
18618
|
ref: o,
|
|
18619
18619
|
modelValue: u(s),
|
|
@@ -18684,7 +18684,7 @@ const a8 = { class: "admin-gallery" }, r8 = { class: "groups" }, l8 = ["src", "a
|
|
|
18684
18684
|
}
|
|
18685
18685
|
}), N8 = /* @__PURE__ */ X(q8, [["__scopeId", "data-v-36a59e2b"]]);
|
|
18686
18686
|
function H8(t) {
|
|
18687
|
-
t.component("PageNotFound", hu), t.component("AdminGallery", b8), t.component("DropList", k8), t.component("FilterSelect", T8), t.component("GridContainer", R8), t.component("PAutocomplete", ac), t.component("PPagination",
|
|
18687
|
+
t.component("PageNotFound", hu), t.component("AdminGallery", b8), t.component("DropList", k8), t.component("FilterSelect", T8), t.component("GridContainer", R8), t.component("PAutocomplete", ac), t.component("PPagination", L8), t.component("RemoteSearch", U8), t.component("SelectValueType", N8);
|
|
18688
18688
|
}
|
|
18689
18689
|
const j8 = /* @__PURE__ */ Y({
|
|
18690
18690
|
__name: "IconDownload",
|
|
@@ -19419,10 +19419,10 @@ const R4 = /* @__PURE__ */ X(x4, [["render", P4], ["__scopeId", "data-v-6fb8269e
|
|
|
19419
19419
|
b("div", M4, [
|
|
19420
19420
|
j(i.$slots, "inside-title", {}, void 0, !0)
|
|
19421
19421
|
]),
|
|
19422
|
-
u(e) ? (m(),
|
|
19422
|
+
u(e) ? (m(), L(o, {
|
|
19423
19423
|
key: 0,
|
|
19424
19424
|
"icon-class": "icon-arrow"
|
|
19425
|
-
})) : (m(),
|
|
19425
|
+
})) : (m(), L(a, {
|
|
19426
19426
|
key: 1,
|
|
19427
19427
|
"icon-class": "icon-arrow"
|
|
19428
19428
|
}))
|
|
@@ -19526,7 +19526,7 @@ const R4 = /* @__PURE__ */ X(x4, [["render", P4], ["__scopeId", "data-v-6fb8269e
|
|
|
19526
19526
|
j(e.$slots, "default", {}, void 0, !0)
|
|
19527
19527
|
], 4));
|
|
19528
19528
|
}
|
|
19529
|
-
}),
|
|
19529
|
+
}), _4 = /* @__PURE__ */ X(z4, [["__scopeId", "data-v-30f46b57"]]), L4 = { class: "add-block_body" }, V4 = /* @__PURE__ */ Y({
|
|
19530
19530
|
__name: "PContainerStickyHead",
|
|
19531
19531
|
props: {
|
|
19532
19532
|
background: {
|
|
@@ -19558,7 +19558,7 @@ const R4 = /* @__PURE__ */ X(x4, [["render", P4], ["__scopeId", "data-v-6fb8269e
|
|
|
19558
19558
|
setup(t) {
|
|
19559
19559
|
return (e, n) => {
|
|
19560
19560
|
const i = Ie("PSticky"), s = Ie("PContainer");
|
|
19561
|
-
return m(),
|
|
19561
|
+
return m(), L(s, {
|
|
19562
19562
|
background: t.background,
|
|
19563
19563
|
margin: t.margin,
|
|
19564
19564
|
padding: t.padding
|
|
@@ -19573,7 +19573,7 @@ const R4 = /* @__PURE__ */ X(x4, [["render", P4], ["__scopeId", "data-v-6fb8269e
|
|
|
19573
19573
|
]),
|
|
19574
19574
|
_: 3
|
|
19575
19575
|
}, 8, ["top", "z-index"]),
|
|
19576
|
-
b("div",
|
|
19576
|
+
b("div", L4, [
|
|
19577
19577
|
j(e.$slots, "default", {}, void 0, !0)
|
|
19578
19578
|
])
|
|
19579
19579
|
]),
|
|
@@ -19617,7 +19617,7 @@ const R4 = /* @__PURE__ */ X(x4, [["render", P4], ["__scopeId", "data-v-6fb8269e
|
|
|
19617
19617
|
const P = document.querySelector(".select-dialog-content .q-item");
|
|
19618
19618
|
P && "focus" in P && P.focus();
|
|
19619
19619
|
};
|
|
19620
|
-
return e({ opened: o, toggle: C }), kn(c), (P, $) => (m(),
|
|
19620
|
+
return e({ opened: o, toggle: C }), kn(c), (P, $) => (m(), L(rn, {
|
|
19621
19621
|
modelValue: o.value,
|
|
19622
19622
|
"onUpdate:modelValue": [
|
|
19623
19623
|
$[0] || ($[0] = (M) => o.value = M),
|
|
@@ -19647,7 +19647,7 @@ const R4 = /* @__PURE__ */ X(x4, [["render", P4], ["__scopeId", "data-v-6fb8269e
|
|
|
19647
19647
|
separator: ""
|
|
19648
19648
|
}, {
|
|
19649
19649
|
default: k(() => [
|
|
19650
|
-
(m(!0), w(J, null, Se(u(a), (M) => et((m(),
|
|
19650
|
+
(m(!0), w(J, null, Se(u(a), (M) => et((m(), L(u(qn), {
|
|
19651
19651
|
key: M.value,
|
|
19652
19652
|
clickable: "",
|
|
19653
19653
|
class: "q-px-md q-py-sm",
|
|
@@ -19777,7 +19777,7 @@ const R4 = /* @__PURE__ */ X(x4, [["render", P4], ["__scopeId", "data-v-6fb8269e
|
|
|
19777
19777
|
class: "ordered-list"
|
|
19778
19778
|
}), [
|
|
19779
19779
|
t.title ? (m(), w("div", Y4, U(t.title), 1)) : j(r.$slots, "title", {}, void 0, !0, 1),
|
|
19780
|
-
t.sortable ? (m(),
|
|
19780
|
+
t.sortable ? (m(), L(u(si), {
|
|
19781
19781
|
key: 2,
|
|
19782
19782
|
class: "draggable-list",
|
|
19783
19783
|
list: t.list,
|
|
@@ -19988,7 +19988,7 @@ const R4 = /* @__PURE__ */ X(x4, [["render", P4], ["__scopeId", "data-v-6fb8269e
|
|
|
19988
19988
|
}
|
|
19989
19989
|
}), lc = /* @__PURE__ */ X(lC, [["__scopeId", "data-v-6f3c0556"]]);
|
|
19990
19990
|
function uC(t) {
|
|
19991
|
-
t.component("CollapseContainer", k4), t.component("CollapseItem", R4), t.component("VerticalCollapseContainer", E4), t.component("PAdd", D4), t.component("PAddDialog", W4), t.component("PCard", md), t.component("PCrudList", iC), t.component("PEditDialog", ws), t.component("PModal", lc), t.component("PContainer",
|
|
19991
|
+
t.component("CollapseContainer", k4), t.component("CollapseItem", R4), t.component("VerticalCollapseContainer", E4), t.component("PAdd", D4), t.component("PAddDialog", W4), t.component("PCard", md), t.component("PCrudList", iC), t.component("PEditDialog", ws), t.component("PModal", lc), t.component("PContainer", _4), t.component("PContainerStickyHead", U4), t.component("PDel", rC);
|
|
19992
19992
|
}
|
|
19993
19993
|
const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
19994
19994
|
__name: "PAuthForm",
|
|
@@ -20012,7 +20012,7 @@ const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
|
20012
20012
|
},
|
|
20013
20013
|
emits: ["submit"],
|
|
20014
20014
|
setup(t, { emit: e }) {
|
|
20015
|
-
const n = e, i =
|
|
20015
|
+
const n = e, i = _(() => xt.Form.GetButtons()), s = of("fields"), o = async (l) => {
|
|
20016
20016
|
if (!l.isSubmit) {
|
|
20017
20017
|
xt.Form.SetChunk(l.GetChunk()), a();
|
|
20018
20018
|
return;
|
|
@@ -20045,7 +20045,7 @@ const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
|
20045
20045
|
string: u(xt).Form.GetTitle(),
|
|
20046
20046
|
"font-size": "18px"
|
|
20047
20047
|
}, null, 8, ["string"]),
|
|
20048
|
-
(m(!0), w(J, null, Se(u(xt).Form.GetFields(), (c) => (m(),
|
|
20048
|
+
(m(!0), w(J, null, Se(u(xt).Form.GetFields(), (c) => (m(), L(Ne, {
|
|
20049
20049
|
id: c.id,
|
|
20050
20050
|
key: c.id,
|
|
20051
20051
|
ref_for: !0,
|
|
@@ -20059,7 +20059,7 @@ const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
|
20059
20059
|
margin: "10px 0 0 0"
|
|
20060
20060
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder"]))), 128)),
|
|
20061
20061
|
b("div", dC, [
|
|
20062
|
-
(m(!0), w(J, null, Se(u(i), (c, f) => (m(),
|
|
20062
|
+
(m(!0), w(J, null, Se(u(i), (c, f) => (m(), L(ue, {
|
|
20063
20063
|
id: c.id,
|
|
20064
20064
|
key: c.GetChunk(),
|
|
20065
20065
|
disabled: u(xt).Form.IsBlock,
|
|
@@ -20094,7 +20094,7 @@ const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
|
20094
20094
|
const e = () => {
|
|
20095
20095
|
xt.Form.Reset(), xt.Modal.Close();
|
|
20096
20096
|
};
|
|
20097
|
-
return (n, i) => (m(),
|
|
20097
|
+
return (n, i) => (m(), L(lc, {
|
|
20098
20098
|
show: u(xt).Modal.Visible,
|
|
20099
20099
|
closable: u(xt).Modal.Closable,
|
|
20100
20100
|
width: t.width,
|
|
@@ -20123,7 +20123,7 @@ const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
|
20123
20123
|
return (e, n) => (m(), w("div", hC, [
|
|
20124
20124
|
b("div", mC, U(t.code), 1),
|
|
20125
20125
|
b("div", pC, U(t.text), 1),
|
|
20126
|
-
t.to ? (m(),
|
|
20126
|
+
t.to ? (m(), L(ue, {
|
|
20127
20127
|
key: 0,
|
|
20128
20128
|
class: "q-mt-xl",
|
|
20129
20129
|
color: "primary",
|
|
@@ -20184,7 +20184,7 @@ const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
|
20184
20184
|
s.value = window.innerWidth, a.value = o.value ? o.value.clientHeight : Number(n.tabHeight.replace(/[^+\d]/g, ""));
|
|
20185
20185
|
};
|
|
20186
20186
|
ci(() => window.addEventListener("resize", l)), af(() => window.removeEventListener("resize", l));
|
|
20187
|
-
const r =
|
|
20187
|
+
const r = _(() => `calc(100% - ${a.value}px + 1px)`);
|
|
20188
20188
|
kn(() => {
|
|
20189
20189
|
n.menus.Select();
|
|
20190
20190
|
});
|
|
@@ -20226,7 +20226,7 @@ const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
|
20226
20226
|
})
|
|
20227
20227
|
}, [
|
|
20228
20228
|
j(f.$slots, "default", {}, () => [
|
|
20229
|
-
t.menus.idx > -1 ? (m(),
|
|
20229
|
+
t.menus.idx > -1 ? (m(), L(Mn(t.menus.GetComponent()), { key: 0 })) : H("", !0)
|
|
20230
20230
|
], !0)
|
|
20231
20231
|
], 4)
|
|
20232
20232
|
], 4));
|
|
@@ -20257,7 +20257,7 @@ const dC = { class: "btn-group" }, cC = /* @__PURE__ */ Y({
|
|
|
20257
20257
|
},
|
|
20258
20258
|
emits: ["upload", "remove"],
|
|
20259
20259
|
setup(t, { emit: e }) {
|
|
20260
|
-
const n = t, i = e, s =
|
|
20260
|
+
const n = t, i = e, s = Lt.GUID(), o = Lt.GUID(), a = () => {
|
|
20261
20261
|
const c = document.getElementById(s);
|
|
20262
20262
|
if (!c.files)
|
|
20263
20263
|
return;
|
|
@@ -20413,8 +20413,8 @@ const AC = /* @__PURE__ */ Y({
|
|
|
20413
20413
|
h.LegendComponent,
|
|
20414
20414
|
h.TitleComponent
|
|
20415
20415
|
]), l.default;
|
|
20416
|
-
}), i = t, s =
|
|
20417
|
-
return (l, r) => (m(),
|
|
20416
|
+
}), i = t, s = _(() => typeof i.height == "number" ? `${i.height}px` : i.height), o = e, a = () => o("click");
|
|
20417
|
+
return (l, r) => (m(), L(Mn(u(n)), {
|
|
20418
20418
|
class: "p-chart",
|
|
20419
20419
|
option: t.option,
|
|
20420
20420
|
autoresize: t.autoresize,
|
|
@@ -20434,7 +20434,7 @@ class H3 extends so {
|
|
|
20434
20434
|
}
|
|
20435
20435
|
}
|
|
20436
20436
|
function j3(t, e = {}) {
|
|
20437
|
-
const n = e.ftsp ?? Gt.Get(), i = D(!1), s =
|
|
20437
|
+
const n = e.ftsp ?? Gt.Get(), i = D(!1), s = _(() => t.Items), o = _(() => t.Count.value), a = _(() => t.Item), l = _({
|
|
20438
20438
|
get: () => t.searchStr.value,
|
|
20439
20439
|
set: (C) => {
|
|
20440
20440
|
t.searchStr.value = C;
|
|
@@ -20452,7 +20452,7 @@ function j3(t, e = {}) {
|
|
|
20452
20452
|
} };
|
|
20453
20453
|
}
|
|
20454
20454
|
function G3(t = Gt.Get()) {
|
|
20455
|
-
const e = mt(t), n =
|
|
20455
|
+
const e = mt(t), n = _(() => e.f), i = _(() => e.f.length);
|
|
20456
20456
|
return { filters: n, count: i, add: (c) => {
|
|
20457
20457
|
e.setF(c);
|
|
20458
20458
|
}, replace: (c, f) => {
|
|
@@ -20579,9 +20579,9 @@ function Y3(t, e = {}) {
|
|
|
20579
20579
|
loading: n,
|
|
20580
20580
|
error: i,
|
|
20581
20581
|
data: s,
|
|
20582
|
-
loaded:
|
|
20583
|
-
failed:
|
|
20584
|
-
failedFirstLoad:
|
|
20582
|
+
loaded: _(() => o.value),
|
|
20583
|
+
failed: _(() => !!i.value),
|
|
20584
|
+
failedFirstLoad: _(() => !!i.value && s.value === null),
|
|
20585
20585
|
load: h,
|
|
20586
20586
|
reset: p
|
|
20587
20587
|
};
|
|
@@ -20606,8 +20606,8 @@ function Q3(t, e = {}) {
|
|
|
20606
20606
|
}) : s && ci(() => {
|
|
20607
20607
|
h();
|
|
20608
20608
|
}), {
|
|
20609
|
-
options:
|
|
20610
|
-
isLoading:
|
|
20609
|
+
options: _(() => t.Options),
|
|
20610
|
+
isLoading: _(() => t.Options.length === 0),
|
|
20611
20611
|
load: h,
|
|
20612
20612
|
invalidate: p,
|
|
20613
20613
|
query: c,
|
|
@@ -20615,17 +20615,17 @@ function Q3(t, e = {}) {
|
|
|
20615
20615
|
};
|
|
20616
20616
|
}
|
|
20617
20617
|
function X3(t = Gt.Get()) {
|
|
20618
|
-
const e = mt(t), n =
|
|
20618
|
+
const e = mt(t), n = _({
|
|
20619
20619
|
get: () => e.p.getPageNum(),
|
|
20620
20620
|
set: (C) => {
|
|
20621
20621
|
e.p.offset = (Math.max(1, Math.round(C)) - 1) * e.p.rowsPerPage;
|
|
20622
20622
|
}
|
|
20623
|
-
}), i =
|
|
20623
|
+
}), i = _({
|
|
20624
20624
|
get: () => e.p.rowsPerPage,
|
|
20625
20625
|
set: (C) => {
|
|
20626
20626
|
e.p.rowsPerPage = C, e.p.offset = 0;
|
|
20627
20627
|
}
|
|
20628
|
-
}), s =
|
|
20628
|
+
}), s = _(() => e.p.rowsNumber), o = _(() => ({
|
|
20629
20629
|
page: n.value,
|
|
20630
20630
|
rowsPerPage: i.value,
|
|
20631
20631
|
rowsNumber: s.value
|
|
@@ -20818,7 +20818,7 @@ export {
|
|
|
20818
20818
|
Au as PContactFormEditEmails,
|
|
20819
20819
|
Eu as PContactFormEditPhones,
|
|
20820
20820
|
Fu as PContactFormView,
|
|
20821
|
-
|
|
20821
|
+
Li as PContactFormViewEmails,
|
|
20822
20822
|
Vi as PContactFormViewPhones,
|
|
20823
20823
|
iC as PCrudList,
|
|
20824
20824
|
ja as PDateInput,
|
|
@@ -20854,7 +20854,7 @@ export {
|
|
|
20854
20854
|
Ro as Schedule,
|
|
20855
20855
|
ir as ScheduleDay,
|
|
20856
20856
|
Ud as ScheduleDefaultLabels,
|
|
20857
|
-
|
|
20857
|
+
Lb as ScheduleGridEditor,
|
|
20858
20858
|
bs as SchedulePlace,
|
|
20859
20859
|
ys as ScheduleSession,
|
|
20860
20860
|
Qn as ScheduleSlot,
|