sprof 0.0.103 → 0.0.104
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Xo = Object.defineProperty;
|
|
2
2
|
var Yo = (t, e, i) => e in t ? Xo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
3
|
var u = (t, e, i) => Yo(t, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
-
import { ref as z, defineComponent as $, resolveComponent as E, openBlock as m, createElementBlock as b, createVNode as A, createElementVNode as f, reactive as ut, getCurrentInstance as Qo, inject as Ko, onUnmounted as ir, onDeactivated as ea, onActivated as ta, onBeforeMount as _e, Fragment as W, renderSlot as T, unref as p, normalizeStyle as R, createCommentVNode as Q, withCtx as G, withModifiers as Pe, withDirectives as Ue, vModelText as zn, computed as de, mergeProps as $t, createTextVNode as Ti, toDisplayString as pe, mergeModels as Me, useModel as dt, vModelCheckbox as ia, vModelDynamic as na, isRef as
|
|
4
|
+
import { ref as z, defineComponent as $, resolveComponent as E, openBlock as m, createElementBlock as b, createVNode as A, createElementVNode as f, reactive as ut, getCurrentInstance as Qo, inject as Ko, onUnmounted as ir, onDeactivated as ea, onActivated as ta, onBeforeMount as _e, Fragment as W, renderSlot as T, unref as p, normalizeStyle as R, createCommentVNode as Q, withCtx as G, withModifiers as Pe, withDirectives as Ue, vModelText as zn, computed as de, mergeProps as $t, createTextVNode as Ti, toDisplayString as pe, mergeModels as Me, useModel as dt, vModelCheckbox as ia, vModelDynamic as na, isRef as et, withKeys as sa, normalizeClass as ne, watch as tt, createBlock as q, vModelRadio as ra, vShow as On, vModelSelect as oa, useCssVars as nr, onMounted as ii, renderList as Re, resolveDirective as sr, createStaticVNode as rr, resolveDynamicComponent as Xt, nextTick as aa, onUpdated as la, onBeforeUnmount as Ln, Transition as or } from "vue";
|
|
5
5
|
var bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (C) Microsoft. All rights reserved.
|
|
@@ -77,7 +77,7 @@ var Ss;
|
|
|
77
77
|
throw new TypeError();
|
|
78
78
|
if (!fe(F) && !V(F) && !Et(F))
|
|
79
79
|
throw new TypeError();
|
|
80
|
-
return Et(F) && (F = void 0), k =
|
|
80
|
+
return Et(F) && (F = void 0), k = Xe(k), Oo(w, C, k, F);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
e("decorate", J);
|
|
@@ -95,51 +95,51 @@ var Ss;
|
|
|
95
95
|
function _(w, C, k, F) {
|
|
96
96
|
if (!fe(k))
|
|
97
97
|
throw new TypeError();
|
|
98
|
-
return V(F) || (F =
|
|
98
|
+
return V(F) || (F = Xe(F)), as(w, C, k, F);
|
|
99
99
|
}
|
|
100
100
|
e("defineMetadata", _);
|
|
101
101
|
function j(w, C, k) {
|
|
102
102
|
if (!fe(C))
|
|
103
103
|
throw new TypeError();
|
|
104
|
-
return V(k) || (k =
|
|
104
|
+
return V(k) || (k = Xe(k)), ss(w, C, k);
|
|
105
105
|
}
|
|
106
106
|
e("hasMetadata", j);
|
|
107
107
|
function ze(w, C, k) {
|
|
108
108
|
if (!fe(C))
|
|
109
109
|
throw new TypeError();
|
|
110
|
-
return V(k) || (k =
|
|
110
|
+
return V(k) || (k = Xe(k)), Ji(w, C, k);
|
|
111
111
|
}
|
|
112
112
|
e("hasOwnMetadata", ze);
|
|
113
113
|
function De(w, C, k) {
|
|
114
114
|
if (!fe(C))
|
|
115
115
|
throw new TypeError();
|
|
116
|
-
return V(k) || (k =
|
|
116
|
+
return V(k) || (k = Xe(k)), rs(w, C, k);
|
|
117
117
|
}
|
|
118
118
|
e("getMetadata", De);
|
|
119
119
|
function ht(w, C, k) {
|
|
120
120
|
if (!fe(C))
|
|
121
121
|
throw new TypeError();
|
|
122
|
-
return V(k) || (k =
|
|
122
|
+
return V(k) || (k = Xe(k)), os(w, C, k);
|
|
123
123
|
}
|
|
124
124
|
e("getOwnMetadata", ht);
|
|
125
125
|
function Pt(w, C) {
|
|
126
126
|
if (!fe(w))
|
|
127
127
|
throw new TypeError();
|
|
128
|
-
return V(C) || (C =
|
|
128
|
+
return V(C) || (C = Xe(C)), ls(w, C);
|
|
129
129
|
}
|
|
130
130
|
e("getMetadataKeys", Pt);
|
|
131
131
|
function di(w, C) {
|
|
132
132
|
if (!fe(w))
|
|
133
133
|
throw new TypeError();
|
|
134
|
-
return V(C) || (C =
|
|
134
|
+
return V(C) || (C = Xe(C)), us(w, C);
|
|
135
135
|
}
|
|
136
136
|
e("getOwnMetadataKeys", di);
|
|
137
137
|
function Fo(w, C, k) {
|
|
138
138
|
if (!fe(C))
|
|
139
139
|
throw new TypeError();
|
|
140
|
-
if (V(k) || (k =
|
|
140
|
+
if (V(k) || (k = Xe(k)), !fe(C))
|
|
141
141
|
throw new TypeError();
|
|
142
|
-
V(k) || (k =
|
|
142
|
+
V(k) || (k = Xe(k));
|
|
143
143
|
var F = Gt(
|
|
144
144
|
C,
|
|
145
145
|
k,
|
|
@@ -322,7 +322,7 @@ var Ss;
|
|
|
322
322
|
function Ho(w) {
|
|
323
323
|
return "" + w;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Xe(w) {
|
|
326
326
|
var C = Do(w);
|
|
327
327
|
return Lo(C) ? C : Ho(C);
|
|
328
328
|
}
|
|
@@ -915,7 +915,7 @@ class Dn {
|
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
u(Dn, "staticUrl", "");
|
|
918
|
-
class
|
|
918
|
+
class nt {
|
|
919
919
|
constructor(e) {
|
|
920
920
|
u(this, "name", "");
|
|
921
921
|
u(this, "url", "");
|
|
@@ -936,7 +936,7 @@ class Ze {
|
|
|
936
936
|
return { name: this.originalName, url: this.url };
|
|
937
937
|
}
|
|
938
938
|
static CreatePreviewFile(e, i) {
|
|
939
|
-
const n = new
|
|
939
|
+
const n = new nt();
|
|
940
940
|
return n.id = i ?? Ve.UUID(), n.originalName = e.name, n.file = e.blob, n.fileSystemPath = Ve.UUID(), n;
|
|
941
941
|
}
|
|
942
942
|
uploadNewFile(e) {
|
|
@@ -973,7 +973,7 @@ class ar {
|
|
|
973
973
|
u(this, "id");
|
|
974
974
|
u(this, "num", "");
|
|
975
975
|
u(this, "fileInfoId");
|
|
976
|
-
u(this, "fileInfo", new
|
|
976
|
+
u(this, "fileInfo", new nt());
|
|
977
977
|
M.H.Classes.BuildClass(this, e);
|
|
978
978
|
}
|
|
979
979
|
}
|
|
@@ -982,7 +982,7 @@ class ni {
|
|
|
982
982
|
u(this, "id");
|
|
983
983
|
u(this, "passportId");
|
|
984
984
|
u(this, "fileInfoId");
|
|
985
|
-
|
|
985
|
+
// fileInfo: FileInfo = new FileInfo();
|
|
986
986
|
u(this, "order", 0);
|
|
987
987
|
M.H.Classes.BuildClass(this, e);
|
|
988
988
|
}
|
|
@@ -1018,7 +1018,7 @@ class lr {
|
|
|
1018
1018
|
u(this, "id");
|
|
1019
1019
|
u(this, "num", "");
|
|
1020
1020
|
u(this, "fileInfoId");
|
|
1021
|
-
u(this, "fileInfo", new
|
|
1021
|
+
u(this, "fileInfo", new nt());
|
|
1022
1022
|
M.H.Classes.BuildClass(this, e);
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
@@ -1506,11 +1506,11 @@ function hr(t, e) {
|
|
|
1506
1506
|
const { toString: ba } = Object.prototype, { getPrototypeOf: qn } = Object, Li = /* @__PURE__ */ ((t) => (e) => {
|
|
1507
1507
|
const i = ba.call(e);
|
|
1508
1508
|
return t[i] || (t[i] = i.slice(8, -1).toLowerCase());
|
|
1509
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
1509
|
+
})(/* @__PURE__ */ Object.create(null)), Ze = (t) => (t = t.toLowerCase(), (e) => Li(e) === t), Di = (t) => (e) => typeof e === t, { isArray: Ut } = Array, Yt = Di("undefined");
|
|
1510
1510
|
function Sa(t) {
|
|
1511
1511
|
return t !== null && !Yt(t) && t.constructor !== null && !Yt(t.constructor) && Le(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
1512
1512
|
}
|
|
1513
|
-
const fr =
|
|
1513
|
+
const fr = Ze("ArrayBuffer");
|
|
1514
1514
|
function Ca(t) {
|
|
1515
1515
|
let e;
|
|
1516
1516
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && fr(t.buffer), e;
|
|
@@ -1520,11 +1520,11 @@ const xa = Di("string"), Le = Di("function"), mr = Di("number"), Bi = (t) => t !
|
|
|
1520
1520
|
return !1;
|
|
1521
1521
|
const e = qn(t);
|
|
1522
1522
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
1523
|
-
}, ka =
|
|
1523
|
+
}, ka = Ze("Date"), Ia = Ze("File"), Ra = Ze("Blob"), Aa = Ze("FileList"), $a = (t) => Bi(t) && Le(t.pipe), Pa = (t) => {
|
|
1524
1524
|
let e;
|
|
1525
1525
|
return t && (typeof FormData == "function" && t instanceof FormData || Le(t.append) && ((e = Li(t)) === "formdata" || // detect form-data instance
|
|
1526
1526
|
e === "object" && Le(t.toString) && t.toString() === "[object FormData]"));
|
|
1527
|
-
}, Ea =
|
|
1527
|
+
}, Ea = Ze("URLSearchParams"), [Ta, Fa, za, Oa] = ["ReadableStream", "Request", "Response", "Headers"].map(Ze), La = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1528
1528
|
function ri(t, e, { allOwnKeys: i = !1 } = {}) {
|
|
1529
1529
|
if (t === null || typeof t > "u")
|
|
1530
1530
|
return;
|
|
@@ -1600,12 +1600,12 @@ const Da = (t, e, i, { allOwnKeys: n } = {}) => (ri(e, (s, r) => {
|
|
|
1600
1600
|
for (; (i = t.exec(e)) !== null; )
|
|
1601
1601
|
n.push(i);
|
|
1602
1602
|
return n;
|
|
1603
|
-
}, Va =
|
|
1603
|
+
}, Va = Ze("HTMLFormElement"), _a = (t) => t.toLowerCase().replace(
|
|
1604
1604
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
1605
1605
|
function(i, n, s) {
|
|
1606
1606
|
return n.toUpperCase() + s;
|
|
1607
1607
|
}
|
|
1608
|
-
), xs = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), Za =
|
|
1608
|
+
), xs = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), Za = Ze("RegExp"), vr = (t, e) => {
|
|
1609
1609
|
const i = Object.getOwnPropertyDescriptors(t), n = {};
|
|
1610
1610
|
ri(i, (s, r) => {
|
|
1611
1611
|
let o;
|
|
@@ -1665,7 +1665,7 @@ const tl = (t) => {
|
|
|
1665
1665
|
return n;
|
|
1666
1666
|
};
|
|
1667
1667
|
return i(t, 0);
|
|
1668
|
-
}, il =
|
|
1668
|
+
}, il = Ze("AsyncFunction"), nl = (t) => t && (Bi(t) || Le(t)) && Le(t.then) && Le(t.catch), wr = ((t, e) => t ? setImmediate : e ? ((i, n) => (wt.addEventListener("message", ({ source: s, data: r }) => {
|
|
1669
1669
|
s === wt && r === i && n.length && n.shift()();
|
|
1670
1670
|
}, !1), (s) => {
|
|
1671
1671
|
n.push(s), wt.postMessage(i, "*");
|
|
@@ -1705,7 +1705,7 @@ const tl = (t) => {
|
|
|
1705
1705
|
inherits: Ha,
|
|
1706
1706
|
toFlatObject: qa,
|
|
1707
1707
|
kindOf: Li,
|
|
1708
|
-
kindOfTest:
|
|
1708
|
+
kindOfTest: Ze,
|
|
1709
1709
|
endsWith: Na,
|
|
1710
1710
|
toArray: Ua,
|
|
1711
1711
|
forEachEntry: Ga,
|
|
@@ -4108,7 +4108,7 @@ class _n {
|
|
|
4108
4108
|
u(this, "answerId");
|
|
4109
4109
|
u(this, "comment", "");
|
|
4110
4110
|
u(this, "fileInfoId");
|
|
4111
|
-
u(this, "fileInfo", new
|
|
4111
|
+
u(this, "fileInfo", new nt());
|
|
4112
4112
|
M.H.Classes.BuildClass(this, e);
|
|
4113
4113
|
}
|
|
4114
4114
|
}
|
|
@@ -4140,7 +4140,7 @@ const Zn = class Mn {
|
|
|
4140
4140
|
u(this, "valueOther");
|
|
4141
4141
|
u(this, "valueNumber");
|
|
4142
4142
|
u(this, "valueDate");
|
|
4143
|
-
u(this, "fileInfo", new
|
|
4143
|
+
u(this, "fileInfo", new nt());
|
|
4144
4144
|
u(this, "fileInfoId");
|
|
4145
4145
|
u(this, "order", 0);
|
|
4146
4146
|
u(this, "selectedAnswerVariants", []);
|
|
@@ -4979,7 +4979,7 @@ class Jn {
|
|
|
4979
4979
|
}
|
|
4980
4980
|
var rt;
|
|
4981
4981
|
let ec = (rt = class {
|
|
4982
|
-
}, u(rt, "Phone", Rt), u(rt, "FileInfo",
|
|
4982
|
+
}, u(rt, "Phone", Rt), u(rt, "FileInfo", nt), u(rt, "PostAddress", Ai), u(rt, "Website", Jn), u(rt, "Email", It), u(rt, "Human", so), u(rt, "Cropper", ui), rt);
|
|
4983
4983
|
function tc(t, e) {
|
|
4984
4984
|
t == "left" && e.next(), t == "right" && e.prev();
|
|
4985
4985
|
}
|
|
@@ -5260,7 +5260,7 @@ class wc {
|
|
|
5260
5260
|
this.list = [], this.defaultSortModel = void 0;
|
|
5261
5261
|
}
|
|
5262
5262
|
}
|
|
5263
|
-
const
|
|
5263
|
+
const Ke = new wc();
|
|
5264
5264
|
function bc() {
|
|
5265
5265
|
const t = z(!1), e = z(!1);
|
|
5266
5266
|
return {
|
|
@@ -5280,7 +5280,7 @@ function bc() {
|
|
|
5280
5280
|
const Sc = (() => {
|
|
5281
5281
|
const t = (r, o) => _e(async () => {
|
|
5282
5282
|
var l;
|
|
5283
|
-
M.FTSP.Get().reset(),
|
|
5283
|
+
M.FTSP.Get().reset(), Ke.Set(o == null ? void 0 : o.sortsLib), M.FTSP.Get().setSortModel(Ke.GetDefault()), Ke.Set(o == null ? void 0 : o.sortsLib), M.FTSP.Get().setSortModel(Ke.GetDefault()), M.Paginator.storeModule = (l = o == null ? void 0 : o.pagination) == null ? void 0 : l.storeModule, await r();
|
|
5284
5284
|
}), { saveButtonClick: e, showConfirmModal: i } = bc(), n = (r) => yc((o, l, a) => {
|
|
5285
5285
|
i((r || s)(), a);
|
|
5286
5286
|
}), s = (r) => async () => {
|
|
@@ -5692,7 +5692,7 @@ let Wc = class extends le {
|
|
|
5692
5692
|
const Gc = new Wc();
|
|
5693
5693
|
let jc = class extends le {
|
|
5694
5694
|
constructor() {
|
|
5695
|
-
super(
|
|
5695
|
+
super(nt, "file-infos");
|
|
5696
5696
|
}
|
|
5697
5697
|
};
|
|
5698
5698
|
const Vc = new jc();
|
|
@@ -6744,7 +6744,7 @@ const ln = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
|
|
|
6744
6744
|
}, [
|
|
6745
6745
|
A(d, {
|
|
6746
6746
|
modelValue: p(r),
|
|
6747
|
-
"onUpdate:modelValue": c[0] || (c[0] = (h) =>
|
|
6747
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => et(r) ? r.value = h : null),
|
|
6748
6748
|
mask: "##.##.####",
|
|
6749
6749
|
placeholder: t.placeholder,
|
|
6750
6750
|
margin: t.margin,
|
|
@@ -6948,7 +6948,7 @@ const ln = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
|
|
|
6948
6948
|
emits: ["open"],
|
|
6949
6949
|
setup(t, { emit: e }) {
|
|
6950
6950
|
const i = t, n = e, s = z(i.open);
|
|
6951
|
-
|
|
6951
|
+
tt(
|
|
6952
6952
|
() => i.open,
|
|
6953
6953
|
() => {
|
|
6954
6954
|
s.value = !s.value;
|
|
@@ -7140,7 +7140,7 @@ const ln = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
|
|
|
7140
7140
|
emits: ["open"],
|
|
7141
7141
|
setup(t, { emit: e }) {
|
|
7142
7142
|
const i = t, n = e, s = z(i.open);
|
|
7143
|
-
|
|
7143
|
+
tt(
|
|
7144
7144
|
() => i.open,
|
|
7145
7145
|
() => {
|
|
7146
7146
|
s.value = !s.value;
|
|
@@ -7453,7 +7453,7 @@ const ln = /* @__PURE__ */ new WeakMap(), ch = (t, e) => {
|
|
|
7453
7453
|
emits: ["open"],
|
|
7454
7454
|
setup(t, { emit: e }) {
|
|
7455
7455
|
const i = t, n = e, s = z(i.open);
|
|
7456
|
-
|
|
7456
|
+
tt(
|
|
7457
7457
|
() => i.open,
|
|
7458
7458
|
() => {
|
|
7459
7459
|
s.value = !s.value;
|
|
@@ -7724,7 +7724,7 @@ const mf = { class: "container" }, gf = { class: "slide-box" }, pf = { class: "l
|
|
|
7724
7724
|
emits: ["update:start", "update:end", "setStart", "setEnd"],
|
|
7725
7725
|
setup(t, { emit: e }) {
|
|
7726
7726
|
const i = t, n = e;
|
|
7727
|
-
|
|
7727
|
+
tt(
|
|
7728
7728
|
() => [i.start, i.end],
|
|
7729
7729
|
() => {
|
|
7730
7730
|
i.start || (s.value = void 0), i.end || (r.value = void 0);
|
|
@@ -7748,13 +7748,13 @@ const mf = { class: "container" }, gf = { class: "slide-box" }, pf = { class: "l
|
|
|
7748
7748
|
return m(), b("div", Sf, [
|
|
7749
7749
|
A(d, {
|
|
7750
7750
|
"model-value": p(s),
|
|
7751
|
-
"onUpdate:modelValue": c[0] || (c[0] = (h) =>
|
|
7751
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => et(s) ? s.value = h : null),
|
|
7752
7752
|
onChange: o
|
|
7753
7753
|
}, null, 8, ["model-value"]),
|
|
7754
7754
|
c[2] || (c[2] = Ti(" - ")),
|
|
7755
7755
|
A(d, {
|
|
7756
7756
|
"model-value": p(r),
|
|
7757
|
-
"onUpdate:modelValue": c[1] || (c[1] = (h) =>
|
|
7757
|
+
"onUpdate:modelValue": c[1] || (c[1] = (h) => et(r) ? r.value = h : null),
|
|
7758
7758
|
onChange: l
|
|
7759
7759
|
}, null, 8, ["model-value"])
|
|
7760
7760
|
]);
|
|
@@ -7832,7 +7832,7 @@ const Rf = /* @__PURE__ */ P(Mf, [["render", If], ["__scopeId", "data-v-d28c6f33
|
|
|
7832
7832
|
const a = E("PCheckBox");
|
|
7833
7833
|
return m(), q(a, {
|
|
7834
7834
|
modelValue: p(n),
|
|
7835
|
-
"onUpdate:modelValue": l[0] || (l[0] = (c) =>
|
|
7835
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => et(n) ? n.value = c : null),
|
|
7836
7836
|
label: t.model.label,
|
|
7837
7837
|
size: "mini",
|
|
7838
7838
|
onChange: r
|
|
@@ -7929,7 +7929,7 @@ const Rf = /* @__PURE__ */ P(Mf, [["render", If], ["__scopeId", "data-v-d28c6f33
|
|
|
7929
7929
|
const c = E("PSelect");
|
|
7930
7930
|
return m(), q(c, {
|
|
7931
7931
|
modelValue: p(s),
|
|
7932
|
-
"onUpdate:modelValue": a[0] || (a[0] = (d) =>
|
|
7932
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => et(s) ? s.value = d : null),
|
|
7933
7933
|
clearable: p(s),
|
|
7934
7934
|
placeholder: t.defaultLabel,
|
|
7935
7935
|
onChange: o
|
|
@@ -8727,7 +8727,7 @@ var _s, bm, gi, ge = (_s = function(t) {
|
|
|
8727
8727
|
return function() {
|
|
8728
8728
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
8729
8729
|
}(e == null && gi.path);
|
|
8730
|
-
} }, gi.exports), gi.exports),
|
|
8730
|
+
} }, gi.exports), gi.exports), Je = function(t) {
|
|
8731
8731
|
return function(e, i) {
|
|
8732
8732
|
if (!e) return t;
|
|
8733
8733
|
var n;
|
|
@@ -8892,7 +8892,7 @@ ts.render = function(t, e, i, n, s, r) {
|
|
|
8892
8892
|
return r.onMouseLeave && r.onMouseLeave.apply(r, arguments);
|
|
8893
8893
|
}) }, [T(t.$slots, "default")], 34);
|
|
8894
8894
|
};
|
|
8895
|
-
var cn =
|
|
8895
|
+
var cn = Je("vue-handler-wrapper"), bo = { name: "HandlerWrapper", components: { DraggableElement: ts }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
|
|
8896
8896
|
var t;
|
|
8897
8897
|
if (this.horizontalPosition || this.verticalPosition) {
|
|
8898
8898
|
var e, i = po(this.horizontalPosition, this.verticalPosition);
|
|
@@ -8914,7 +8914,7 @@ bo.render = function(t, e, i, n, s, r) {
|
|
|
8914
8914
|
return [T(t.$slots, "default")];
|
|
8915
8915
|
}), _: 3 }, 8, ["class"])], 2);
|
|
8916
8916
|
};
|
|
8917
|
-
var xm =
|
|
8917
|
+
var xm = Je("vue-line-wrapper"), So = { name: "LineWrapper", components: { DraggableElement: ts }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
|
|
8918
8918
|
var t;
|
|
8919
8919
|
return xm((qe(t = {}, this.position, !0), qe(t, "disabled", this.disabled), t));
|
|
8920
8920
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
@@ -8932,13 +8932,13 @@ So.render = function(t, e, i, n, s, r) {
|
|
|
8932
8932
|
return [T(t.$slots, "default")];
|
|
8933
8933
|
}), _: 3 }, 8, ["class"]);
|
|
8934
8934
|
};
|
|
8935
|
-
var
|
|
8935
|
+
var Qe = ["left", "right", "top", "bottom"], Mm = ["left", "right"], km = ["top", "bottom"], Im = ["left", "top"], Rm = ["fill-area", "fit-area", "stencil", "none"], Xs = { left: 0, top: 0, width: 0, height: 0 };
|
|
8936
8936
|
function Ys(t, e, i) {
|
|
8937
8937
|
return !(i = i || ["width", "height", "left", "top"]).some(function(n) {
|
|
8938
8938
|
return t[n] !== e[n];
|
|
8939
8939
|
});
|
|
8940
8940
|
}
|
|
8941
|
-
function
|
|
8941
|
+
function it(t) {
|
|
8942
8942
|
return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
|
|
8943
8943
|
}
|
|
8944
8944
|
function Ht(t, e) {
|
|
@@ -8949,12 +8949,12 @@ function Ce(t) {
|
|
|
8949
8949
|
}
|
|
8950
8950
|
function ti(t, e) {
|
|
8951
8951
|
var i = { left: 0, top: 0, right: 0, bottom: 0 };
|
|
8952
|
-
return
|
|
8953
|
-
var s = e[n], r =
|
|
8952
|
+
return Qe.forEach(function(n) {
|
|
8953
|
+
var s = e[n], r = it(t)[n];
|
|
8954
8954
|
i[n] = s !== void 0 && r !== void 0 ? n === "left" || n === "top" ? Math.max(0, s - r) : Math.max(0, r - s) : 0;
|
|
8955
8955
|
}), i;
|
|
8956
8956
|
}
|
|
8957
|
-
function
|
|
8957
|
+
function Ye(t, e) {
|
|
8958
8958
|
return { left: t.left - e.left, top: t.top - e.top, width: t.width + e.left + e.right, height: t.height + e.top + e.bottom };
|
|
8959
8959
|
}
|
|
8960
8960
|
function Vi(t) {
|
|
@@ -9017,7 +9017,7 @@ function Am(t, e) {
|
|
|
9017
9017
|
function Mo(t, e, i) {
|
|
9018
9018
|
i === void 0 && (i = !0);
|
|
9019
9019
|
var n = {};
|
|
9020
|
-
return
|
|
9020
|
+
return Qe.forEach(function(s) {
|
|
9021
9021
|
var r = t[s], o = e[s];
|
|
9022
9022
|
r !== void 0 && o !== void 0 ? n[s] = s === "left" || s === "top" ? i ? Math.max(r, o) : Math.min(r, o) : i ? Math.min(r, o) : Math.max(r, o) : o !== void 0 ? n[s] = o : r !== void 0 && (n[s] = r);
|
|
9023
9023
|
}), n;
|
|
@@ -9071,7 +9071,7 @@ function Pm(t) {
|
|
|
9071
9071
|
var a, c, d, h = N({}, n), g = N({}, s), y = N({}, r);
|
|
9072
9072
|
a = re(y), c = re(h), d === void 0 && (d = 1e-3), (a === 0 || c === 0 ? Math.abs(c - a) < d : Math.abs(c / a) < 1 + d && Math.abs(c / a) > 1 - d) || (h = N(N({}, h), lt({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: re(y), maximum: re(y) } })));
|
|
9073
9073
|
var v = _i(g = Ne(g, h.width * i.width / (g.width * y.width)), e({ visibleArea: g, type: "resize" }));
|
|
9074
|
-
return v !== 1 && (g = Ne(g, v), h = Ne(h, v)), g = xe(g = Fe(g, Ht(Ce(h), Ce(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = xe(h, Zi(
|
|
9074
|
+
return v !== 1 && (g = Ne(g, v), h = Ne(h, v)), g = xe(g = Fe(g, Ht(Ce(h), Ce(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = xe(h, Zi(it(g), l)), visibleArea: g };
|
|
9075
9075
|
}
|
|
9076
9076
|
function Em(t) {
|
|
9077
9077
|
var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
|
|
@@ -9083,7 +9083,7 @@ function Em(t) {
|
|
|
9083
9083
|
var c = { width: 0, height: 0 };
|
|
9084
9084
|
a.width, n.width, re(n) > re(l) ? (c.height = 0.8 * n.height, c.width = c.height * re(l)) : (c.width = 0.8 * n.width, c.height = c.width * re(l));
|
|
9085
9085
|
var d = _i(a = Ne(a, l.width * n.width / (a.width * c.width)), i({ visibleArea: a, type: "resize" }));
|
|
9086
|
-
a = Ne(a, d), d !== 1 && (c.height /= d, c.width /= d), a = xe(a = Fe(a, Ht(Ce(l), Ce(a))), i({ visibleArea: a, type: "move" })), l = xe(l, Zi(
|
|
9086
|
+
a = Ne(a, d), d !== 1 && (c.height /= d, c.width /= d), a = xe(a = Fe(a, Ht(Ce(l), Ce(a))), i({ visibleArea: a, type: "move" })), l = xe(l, Zi(it(a), o));
|
|
9087
9087
|
}
|
|
9088
9088
|
return { coordinates: l, visibleArea: a };
|
|
9089
9089
|
}
|
|
@@ -9091,7 +9091,7 @@ function Tm(t) {
|
|
|
9091
9091
|
var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = N({}, n), o = N({}, i);
|
|
9092
9092
|
if (e.type === "setCoordinates") {
|
|
9093
9093
|
var l = Math.max(0, o.width - r.width), a = Math.max(0, o.height - r.height);
|
|
9094
|
-
l > a ? r = Ne(r, Math.min(o.width / r.width, qt(r, s({ visibleArea: r, type: "resize" })))) : a > l && (r = Ne(r, Math.min(o.height / r.height, qt(r, s({ visibleArea: r, type: "resize" }))))), r = xe(r = Fe(r, Vi(Nt(o,
|
|
9094
|
+
l > a ? r = Ne(r, Math.min(o.width / r.width, qt(r, s({ visibleArea: r, type: "resize" })))) : a > l && (r = Ne(r, Math.min(o.height / r.height, qt(r, s({ visibleArea: r, type: "resize" }))))), r = xe(r = Fe(r, Vi(Nt(o, it(r)))), s({ visibleArea: r, type: "move" }));
|
|
9095
9095
|
}
|
|
9096
9096
|
return { visibleArea: r, coordinates: o };
|
|
9097
9097
|
}
|
|
@@ -9110,14 +9110,14 @@ function Om(t) {
|
|
|
9110
9110
|
function Lm(t) {
|
|
9111
9111
|
var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = re(t.boundaries);
|
|
9112
9112
|
if (i) {
|
|
9113
|
-
var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = Co({ width: re(r) > s ? r.width : r.height * s, height: re(r) > s ? r.width / s : r.height }, Pn(e())), l = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, a = ti(i,
|
|
9113
|
+
var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = Co({ width: re(r) > s ? r.width : r.height * s, height: re(r) > s ? r.width / s : r.height }, Pn(e())), l = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, a = ti(i, it(N({ left: 0, top: 0 }, n))), c = {};
|
|
9114
9114
|
return !a.left && !a.right && l.width <= n.width && (c.left = 0, c.right = n.width), !a.top && !a.bottom && l.height <= n.height && (c.top = 0, c.bottom = n.height), xe(l, c);
|
|
9115
9115
|
}
|
|
9116
9116
|
var d = re(n);
|
|
9117
9117
|
return o = { height: d > s ? n.height : n.width / s, width: d > s ? n.height * s : n.width }, { left: n.width / 2 - o.width / 2, top: n.height / 2 - o.height / 2, width: o.width, height: o.height };
|
|
9118
9118
|
}
|
|
9119
9119
|
function vi(t, e) {
|
|
9120
|
-
return Mo(t,
|
|
9120
|
+
return Mo(t, it(e));
|
|
9121
9121
|
}
|
|
9122
9122
|
function Dm(t) {
|
|
9123
9123
|
var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.sizeRestrictions, r = t.getAreaRestrictions, o = t.positionRestrictions, l = t.adjustStencil, a = e.scale, c = e.move, d = N({}, n), h = N({}, i), g = 1, y = 1, v = a.factor && Math.abs(a.factor - 1) > 1e-3;
|
|
@@ -9125,7 +9125,7 @@ function Dm(t) {
|
|
|
9125
9125
|
var I = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / h.width : 0, s.minHeight ? s.minHeight / h.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / h.width : 1 / 0, s.maxHeight ? s.maxHeight / h.height : 1 / 0, qt(h, o)) }, area: { maximum: qt(d, r({ visibleArea: d, type: "resize" })) } };
|
|
9126
9126
|
a.factor && v && (a.factor < 1 ? (y = Math.max(a.factor, I.stencil.minimum)) > 1 && (y = 1) : a.factor > 1 && (y = Math.min(a.factor, Math.min(I.area.maximum, I.stencil.maximum))) < 1 && (y = 1)), y && (d = Ne(d, y, a.center));
|
|
9127
9127
|
var S = i.left - n.left, O = n.width + n.left - (i.width + i.left), J = i.top - n.top, Y = n.height + n.top - (i.height + i.top);
|
|
9128
|
-
return d = xe(d = Fe(d, Nt(d, { left: o.left !== void 0 ? o.left - S * y : void 0, top: o.top !== void 0 ? o.top - J * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + Y * y : void 0, right: o.right !== void 0 ? o.right + O * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + S * y, h.top = d.top + J * y, h = xe(h, Zi(
|
|
9128
|
+
return d = xe(d = Fe(d, Nt(d, { left: o.left !== void 0 ? o.left - S * y : void 0, top: o.top !== void 0 ? o.top - J * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + Y * y : void 0, right: o.right !== void 0 ? o.right + O * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + S * y, h.top = d.top + J * y, h = xe(h, Zi(it(d), o)), a.factor && v && l && (a.factor > 1 ? g = Math.min(I.area.maximum, a.factor) / y : a.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, a.factor / y)), g !== 1 && (d = Fe(d = xe(d = Ne(d, g, a.factor > 1 ? a.center : Ce(h)), r({ visibleArea: d, type: "move" })), Vi(Nt(h, it(d)))))), { coordinates: h, visibleArea: d };
|
|
9129
9129
|
}
|
|
9130
9130
|
function Bm(t) {
|
|
9131
9131
|
var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, l = t.imageSize, a = t.previousImageSize, c = t.angle, d = N({}, n), h = N({}, s), g = gt(Ce(N({ left: 0, top: 0 }, a)), c);
|
|
@@ -9140,27 +9140,27 @@ function Hm(t) {
|
|
|
9140
9140
|
return { coordinates: a, visibleArea: c };
|
|
9141
9141
|
}
|
|
9142
9142
|
function er(t) {
|
|
9143
|
-
var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, l = t.compensate, a = N({}, e), c =
|
|
9143
|
+
var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, l = t.compensate, a = N({}, e), c = Ye(i, a).width, d = Ye(i, a).height;
|
|
9144
9144
|
c < 0 && (a.left < 0 && a.right < 0 ? (a.left = -(i.width - r.minWidth) / (a.left / a.right), a.right = -(i.width - r.minWidth) / (a.right / a.left)) : a.left < 0 ? a.left = -(i.width - r.minWidth) : a.right < 0 && (a.right = -(i.width - r.minWidth))), d < 0 && (a.top < 0 && a.bottom < 0 ? (a.top = -(i.height - r.minHeight) / (a.top / a.bottom), a.bottom = -(i.height - r.minHeight) / (a.bottom / a.top)) : a.top < 0 ? a.top = -(i.height - r.minHeight) : a.bottom < 0 && (a.bottom = -(i.height - r.minHeight)));
|
|
9145
|
-
var h = ti(
|
|
9146
|
-
l && (h.left && h.left > 0 && h.right === 0 ? (a.right += h.left, a.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (a.left += h.right, a.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (a.bottom += h.top, a.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (a.top += h.bottom, a.bottom -= h.bottom), h = ti(
|
|
9145
|
+
var h = ti(Ye(i, a), s);
|
|
9146
|
+
l && (h.left && h.left > 0 && h.right === 0 ? (a.right += h.left, a.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (a.left += h.right, a.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (a.bottom += h.top, a.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (a.top += h.bottom, a.bottom -= h.bottom), h = ti(Ye(i, a), s));
|
|
9147
9147
|
var g = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
|
|
9148
|
-
if (
|
|
9148
|
+
if (Qe.forEach(function(I) {
|
|
9149
9149
|
var S = h[I];
|
|
9150
9150
|
S && a[I] && (g[I] = Math.max(0, 1 - S / a[I]));
|
|
9151
9151
|
}), o) {
|
|
9152
|
-
var y = Math.min.apply(null,
|
|
9152
|
+
var y = Math.min.apply(null, Qe.map(function(I) {
|
|
9153
9153
|
return g[I];
|
|
9154
9154
|
}));
|
|
9155
|
-
y !== 1 / 0 &&
|
|
9155
|
+
y !== 1 / 0 && Qe.forEach(function(I) {
|
|
9156
9156
|
a[I] *= y;
|
|
9157
9157
|
});
|
|
9158
|
-
} else
|
|
9158
|
+
} else Qe.forEach(function(I) {
|
|
9159
9159
|
g[I] !== 1 / 0 && (a[I] *= g[I]);
|
|
9160
9160
|
});
|
|
9161
|
-
if (c =
|
|
9161
|
+
if (c = Ye(i, a).width, d = Ye(i, a).height, a.right + a.left && (c > r.maxWidth ? g.width = (r.maxWidth - i.width) / (a.right + a.left) : c < r.minWidth && (g.width = (r.minWidth - i.width) / (a.right + a.left))), a.bottom + a.top && (d > r.maxHeight ? g.height = (r.maxHeight - i.height) / (a.bottom + a.top) : d < r.minHeight && (g.height = (r.minHeight - i.height) / (a.bottom + a.top))), o) {
|
|
9162
9162
|
var v = Math.min(g.width, g.height);
|
|
9163
|
-
v !== 1 / 0 &&
|
|
9163
|
+
v !== 1 / 0 && Qe.forEach(function(I) {
|
|
9164
9164
|
a[I] *= v;
|
|
9165
9165
|
});
|
|
9166
9166
|
} else g.width !== 1 / 0 && Mm.forEach(function(I) {
|
|
@@ -9173,7 +9173,7 @@ function er(t) {
|
|
|
9173
9173
|
function yi(t, e, i) {
|
|
9174
9174
|
return e == 0 && i == 0 ? t / 2 : e == 0 ? 0 : i == 0 ? t : t * Math.abs(e / (e + i));
|
|
9175
9175
|
}
|
|
9176
|
-
var qm =
|
|
9176
|
+
var qm = Je("vue-simple-handler"), Nm = Je("vue-simple-handler-wrapper"), is = { name: "SimpleHandler", components: { HandlerWrapper: bo }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
9177
9177
|
return { hover: !1 };
|
|
9178
9178
|
}, computed: { classes: function() {
|
|
9179
9179
|
var t, e = (qe(t = {}, this.horizontalPosition, !!this.horizontalPosition), qe(t, this.verticalPosition, !!this.verticalPosition), qe(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), qe(t, "hover", this.hover), t);
|
|
@@ -9193,7 +9193,7 @@ is.render = function(t, e, i, n, s, r) {
|
|
|
9193
9193
|
return [A("div", { class: r.classes.default }, null, 2)];
|
|
9194
9194
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
9195
9195
|
};
|
|
9196
|
-
var Um =
|
|
9196
|
+
var Um = Je("vue-simple-line"), Wm = Je("vue-simple-line-wrapper"), ns = { name: "SimpleLine", components: { LineWrapper: So }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
9197
9197
|
return { hover: !1 };
|
|
9198
9198
|
}, computed: { classes: function() {
|
|
9199
9199
|
return { root: ge(Um(qe({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: ge(Wm(qe({}, this.position, !0)), this.wrapperClass) };
|
|
@@ -9212,7 +9212,7 @@ ns.render = function(t, e, i, n, s, r) {
|
|
|
9212
9212
|
return [A("div", { class: r.classes.root }, null, 2)];
|
|
9213
9213
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
9214
9214
|
};
|
|
9215
|
-
var hn =
|
|
9215
|
+
var hn = Je("vue-bounding-box"), Gm = ["east", "west", null], jm = ["south", "north", null], ko = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
9216
9216
|
return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
|
|
9217
9217
|
} }, handlersComponent: { type: [Object, String], default: function() {
|
|
9218
9218
|
return is;
|
|
@@ -9288,7 +9288,7 @@ ko.render = function(t, e, i, n, s, r) {
|
|
|
9288
9288
|
}) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
|
|
9289
9289
|
}), 128))], 6);
|
|
9290
9290
|
};
|
|
9291
|
-
var Vm =
|
|
9291
|
+
var Vm = Je("vue-draggable-area"), Io = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
|
|
9292
9292
|
return { default: Vm() };
|
|
9293
9293
|
} }, beforeMount: function() {
|
|
9294
9294
|
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
@@ -9490,7 +9490,7 @@ Tn.render = function(t, e, i, n, s, r) {
|
|
|
9490
9490
|
return [T(t.$slots, "default")];
|
|
9491
9491
|
}), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
|
|
9492
9492
|
};
|
|
9493
|
-
var wi =
|
|
9493
|
+
var wi = Je("vue-preview"), $o = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
|
|
9494
9494
|
return {};
|
|
9495
9495
|
} }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
|
|
9496
9496
|
return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
|
|
@@ -9541,7 +9541,7 @@ Po.render = function(t, e, i, n, s, r) {
|
|
|
9541
9541
|
var o = E("preview");
|
|
9542
9542
|
return m(), q(o, $t(t.$attrs, { fill: !0 }), null, 16);
|
|
9543
9543
|
};
|
|
9544
|
-
var mn =
|
|
9544
|
+
var mn = Je("vue-rectangle-stencil"), Eo = { name: "RectangleStencil", components: { StencilPreview: Po, BoundingBox: ko, DraggableArea: Io }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
|
|
9545
9545
|
return is;
|
|
9546
9546
|
} }, lines: { type: Object }, linesComponent: { type: [Object, String], default: function() {
|
|
9547
9547
|
return ns;
|
|
@@ -9579,7 +9579,7 @@ Eo.render = function(t, e, i, n, s, r) {
|
|
|
9579
9579
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
9580
9580
|
}), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
|
|
9581
9581
|
};
|
|
9582
|
-
var Jm = ["transitions"], st =
|
|
9582
|
+
var Jm = ["transitions"], st = Je("vue-advanced-cropper"), To = { name: "Cropper", components: { BackgroundWrapper: Tn }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
|
|
9583
9583
|
return Eo;
|
|
9584
9584
|
} }, backgroundWrapperComponent: { type: [Object, String], default: function() {
|
|
9585
9585
|
return Tn;
|
|
@@ -9591,10 +9591,10 @@ var Jm = ["transitions"], st = Xe("vue-advanced-cropper"), To = { name: "Cropper
|
|
|
9591
9591
|
return !(typeof t == "string" && t !== "fill" && t !== "fit");
|
|
9592
9592
|
} }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(t) {
|
|
9593
9593
|
var e = t.event, i = t.coordinates, n = t.aspectRatio, s = t.positionRestrictions, r = t.sizeRestrictions, o = N(N({}, i), { right: i.left + i.width, bottom: i.top + i.height }), l = e.params || {}, a = N({}, e.directions), c = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
|
|
9594
|
-
r.widthFrozen && (a.left = 0, a.right = 0), r.heightFrozen && (a.top = 0, a.bottom = 0),
|
|
9594
|
+
r.widthFrozen && (a.left = 0, a.right = 0), r.heightFrozen && (a.top = 0, a.bottom = 0), Qe.forEach(function(_) {
|
|
9595
9595
|
c[_] || (a[_] = 0);
|
|
9596
9596
|
});
|
|
9597
|
-
var d =
|
|
9597
|
+
var d = Ye(o, a = er({ coordinates: o, directions: a, sizeRestrictions: r, positionRestrictions: s })).width, h = Ye(o, a).height, g = l.preserveRatio ? re(o) : dn(d / h, n);
|
|
9598
9598
|
if (g) {
|
|
9599
9599
|
var y = l.respectDirection;
|
|
9600
9600
|
if (y || (y = o.width >= o.height || g === 1 ? "width" : "height"), y === "width") {
|
|
@@ -9612,7 +9612,7 @@ var Jm = ["transitions"], st = Xe("vue-advanced-cropper"), To = { name: "Cropper
|
|
|
9612
9612
|
}
|
|
9613
9613
|
a = er({ directions: a, coordinates: o, sizeRestrictions: r, positionRestrictions: s, preserveRatio: !0, compensate: l.compensate });
|
|
9614
9614
|
}
|
|
9615
|
-
return d =
|
|
9615
|
+
return d = Ye(o, a).width, h = Ye(o, a).height, (g = l.preserveRatio ? re(o) : dn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && Qe.forEach(function(_) {
|
|
9616
9616
|
c[_] || (a[_] = 0);
|
|
9617
9617
|
}), En({ event: new es({ left: -a.left, top: -a.top }), coordinates: { width: i.width + a.right + a.left, height: i.height + a.top + a.bottom, left: i.left, top: i.top }, positionRestrictions: s });
|
|
9618
9618
|
} }, moveAlgorithm: { type: Function, default: En }, initStretcher: { type: Function, default: function(t) {
|
|
@@ -9620,11 +9620,11 @@ var Jm = ["transitions"], st = Xe("vue-advanced-cropper"), To = { name: "Cropper
|
|
|
9620
9620
|
e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
|
|
9621
9621
|
} }, fitCoordinates: { type: Function, default: function(t) {
|
|
9622
9622
|
var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = N(N({}, i), lt({ width: i.width, height: i.height, aspectRatio: n, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
|
|
9623
|
-
return o = xe(o = Fe(o, Ht(Ce(i), Ce(o))), Zi(
|
|
9623
|
+
return o = xe(o = Fe(o, Ht(Ce(i), Ce(o))), Zi(it(e), r));
|
|
9624
9624
|
} }, fitVisibleArea: { type: Function, default: function(t) {
|
|
9625
9625
|
var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = N({}, e);
|
|
9626
9626
|
r.height = r.width / re(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = Ne(r, Math.max(s.height / r.height, s.width / r.width)));
|
|
9627
|
-
var o = Vi(Nt(s,
|
|
9627
|
+
var o = Vi(Nt(s, it(r = Ne(r, _i(r, n({ visibleArea: r, type: "resize" }))))));
|
|
9628
9628
|
return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = xe(r = Fe(r, o), n({ visibleArea: r, type: "move" }));
|
|
9629
9629
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
|
|
9630
9630
|
var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
|
|
@@ -9770,7 +9770,7 @@ var Jm = ["transitions"], st = Xe("vue-advanced-cropper"), To = { name: "Cropper
|
|
|
9770
9770
|
if (i.type === "manipulateImage") return N(N({}, i), { move: { left: i.move && i.move.left ? s * i.move.left : 0, top: i.move && i.move.top ? s * i.move.top : 0 }, scale: { factor: i.scale && i.scale.factor ? i.scale.factor : 1, center: i.scale && i.scale.center ? { left: i.scale.center.left * s + n.left, top: i.scale.center.top * s + n.top } : null } });
|
|
9771
9771
|
if (i.type === "resize") {
|
|
9772
9772
|
var r = N(N({}, i), { directions: N({}, i.directions) });
|
|
9773
|
-
return
|
|
9773
|
+
return Qe.forEach(function(l) {
|
|
9774
9774
|
r.directions[l] *= s;
|
|
9775
9775
|
}), r;
|
|
9776
9776
|
}
|
|
@@ -10065,7 +10065,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
|
|
|
10065
10065
|
default: G(() => [
|
|
10066
10066
|
A(I, {
|
|
10067
10067
|
modelValue: p(r),
|
|
10068
|
-
"onUpdate:modelValue": v[0] || (v[0] = (_) =>
|
|
10068
|
+
"onUpdate:modelValue": v[0] || (v[0] = (_) => et(r) ? r.value = _ : null),
|
|
10069
10069
|
label: "Пропорции изображения",
|
|
10070
10070
|
onChange: o
|
|
10071
10071
|
}, {
|
|
@@ -10164,7 +10164,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
|
|
|
10164
10164
|
emits: ["click", "keyup-enter", "after-close"],
|
|
10165
10165
|
setup(t, { emit: e }) {
|
|
10166
10166
|
const i = t, n = e, s = i.customClass !== "" ? i.customClass : "inside-class", r = z(!1), o = z(!1), l = z(!1), a = z(i.close);
|
|
10167
|
-
|
|
10167
|
+
tt(
|
|
10168
10168
|
() => i.close,
|
|
10169
10169
|
() => {
|
|
10170
10170
|
o.value = !1;
|
|
@@ -10173,7 +10173,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
|
|
|
10173
10173
|
const c = (_) => {
|
|
10174
10174
|
_.stopPropagation(), _.key === "Escape" && (i.showSaveDialog ? l.value = !0 : o.value = !1);
|
|
10175
10175
|
};
|
|
10176
|
-
|
|
10176
|
+
tt(o, async () => {
|
|
10177
10177
|
var _, j;
|
|
10178
10178
|
await aa(), o.value ? ((j = (_ = document.getElementById("info-item-opened-content")) == null ? void 0 : _.querySelector("input")) == null || j.focus(), document.body.addEventListener("keydown", c)) : document.body.removeEventListener("keydown", c, !1), o.value === !1 && n("after-close");
|
|
10179
10179
|
});
|
|
@@ -10410,7 +10410,7 @@ const Qm = { class: "background-container" }, Km = { class: "tools-line" }, eg =
|
|
|
10410
10410
|
const e = z(t.initActiveIdx), i = (n) => {
|
|
10411
10411
|
e.value = n;
|
|
10412
10412
|
};
|
|
10413
|
-
return
|
|
10413
|
+
return tt(
|
|
10414
10414
|
() => t.initActiveIdx,
|
|
10415
10415
|
() => {
|
|
10416
10416
|
i(t.initActiveIdx);
|
|
@@ -11000,7 +11000,7 @@ const Mg = /* @__PURE__ */ P(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
|
|
|
11000
11000
|
fileInfo: {
|
|
11001
11001
|
type: Object,
|
|
11002
11002
|
required: !1,
|
|
11003
|
-
default: new
|
|
11003
|
+
default: new nt()
|
|
11004
11004
|
},
|
|
11005
11005
|
formats: {
|
|
11006
11006
|
type: Array,
|
|
@@ -11169,7 +11169,7 @@ const Mg = /* @__PURE__ */ P(bg, [["render", xg], ["__scopeId", "data-v-0ea9a95f
|
|
|
11169
11169
|
return m(), b("div", np, [
|
|
11170
11170
|
A(g, {
|
|
11171
11171
|
modelValue: p(s),
|
|
11172
|
-
"onUpdate:modelValue": d[0] || (d[0] = (y) =>
|
|
11172
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => et(s) ? s.value = y : null),
|
|
11173
11173
|
placeholder: "Найти",
|
|
11174
11174
|
onInput: o
|
|
11175
11175
|
}, {
|
|
@@ -11481,7 +11481,7 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
|
|
|
11481
11481
|
emits: ["select", "load", "input"],
|
|
11482
11482
|
setup(t, { emit: e }) {
|
|
11483
11483
|
const i = t, n = e, s = z(i.modelValue), r = z(), o = M.S.Search.SearchModel();
|
|
11484
|
-
|
|
11484
|
+
tt(
|
|
11485
11485
|
() => i.focus,
|
|
11486
11486
|
() => {
|
|
11487
11487
|
i.focus && setTimeout(() => {
|
|
@@ -11506,7 +11506,7 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
|
|
|
11506
11506
|
ref_key: "searchForm",
|
|
11507
11507
|
ref: r,
|
|
11508
11508
|
modelValue: p(s),
|
|
11509
|
-
"onUpdate:modelValue": h[0] || (h[0] = (y) =>
|
|
11509
|
+
"onUpdate:modelValue": h[0] || (h[0] = (y) => et(s) ? s.value = y : null),
|
|
11510
11510
|
"value-key": "label",
|
|
11511
11511
|
style: { width: "100%", "margin-right": "10px" },
|
|
11512
11512
|
placeholder: t.placeholder,
|
|
@@ -11597,7 +11597,7 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
|
|
|
11597
11597
|
emits: ["toggle"],
|
|
11598
11598
|
setup(t, { emit: e }) {
|
|
11599
11599
|
const i = t, n = e, s = z(!1);
|
|
11600
|
-
|
|
11600
|
+
tt(
|
|
11601
11601
|
() => i.toggle,
|
|
11602
11602
|
() => {
|
|
11603
11603
|
s.value = !s.value;
|
|
@@ -11901,10 +11901,10 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
|
|
|
11901
11901
|
setup(t, { emit: e }) {
|
|
11902
11902
|
const i = z(!1), n = e, s = z();
|
|
11903
11903
|
_e(() => {
|
|
11904
|
-
i.value = !0, s.value =
|
|
11904
|
+
i.value = !0, s.value = Ke.GetDefault(), M.FTSP.Get().setSortModel(s.value);
|
|
11905
11905
|
});
|
|
11906
11906
|
const r = async (l) => {
|
|
11907
|
-
s.value = l ??
|
|
11907
|
+
s.value = l ?? Ke.GetDefault(), M.FTSP.Get().setSortModel(s.value), M.FTSP.Get().p.drop(), n("load");
|
|
11908
11908
|
}, o = async (l) => {
|
|
11909
11909
|
M.FTSP.Get().p.drop(), await r(l);
|
|
11910
11910
|
};
|
|
@@ -11914,7 +11914,7 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
|
|
|
11914
11914
|
return p(i) ? (m(), q(c, {
|
|
11915
11915
|
key: 0,
|
|
11916
11916
|
modelValue: p(s),
|
|
11917
|
-
"onUpdate:modelValue": a[0] || (a[0] = (h) =>
|
|
11917
|
+
"onUpdate:modelValue": a[0] || (a[0] = (h) => et(s) ? s.value = h : null),
|
|
11918
11918
|
"popper-append-to-body": !1,
|
|
11919
11919
|
clearable: !((d = p(s)) != null && d.default),
|
|
11920
11920
|
"value-key": "label",
|
|
@@ -11922,7 +11922,7 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
|
|
|
11922
11922
|
onClear: a[1] || (a[1] = (h) => o())
|
|
11923
11923
|
}, {
|
|
11924
11924
|
default: G(() => [
|
|
11925
|
-
(m(!0), b(W, null, Re(p(
|
|
11925
|
+
(m(!0), b(W, null, Re(p(Ke).Get(), (h, g) => (m(), b("option", {
|
|
11926
11926
|
key: g,
|
|
11927
11927
|
label: h.label,
|
|
11928
11928
|
value: h
|
|
@@ -11944,10 +11944,10 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
|
|
|
11944
11944
|
setup(t, { emit: e }) {
|
|
11945
11945
|
const i = e, n = z();
|
|
11946
11946
|
_e(() => {
|
|
11947
|
-
n.value =
|
|
11947
|
+
n.value = Ke.GetDefault();
|
|
11948
11948
|
});
|
|
11949
11949
|
const s = async (o) => {
|
|
11950
|
-
o || (n.value =
|
|
11950
|
+
o || (n.value = Ke.GetDefault()), M.FTSP.Get().setSortModel(n.value), M.FTSP.Get().p.drop(), i("load");
|
|
11951
11951
|
}, r = async (o) => {
|
|
11952
11952
|
await s(o);
|
|
11953
11953
|
};
|
|
@@ -11956,14 +11956,14 @@ const pp = /* @__PURE__ */ P(mp, [["render", gp], ["__scopeId", "data-v-0f1f2f84
|
|
|
11956
11956
|
const a = E("PSelect");
|
|
11957
11957
|
return m(), q(a, {
|
|
11958
11958
|
modelValue: p(n),
|
|
11959
|
-
"onUpdate:modelValue": l[0] || (l[0] = (d) =>
|
|
11959
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => et(n) ? n.value = d : null),
|
|
11960
11960
|
"popper-append-to-body": !1,
|
|
11961
11961
|
clearable: !((c = p(n)) != null && c.default),
|
|
11962
11962
|
"value-key": "label",
|
|
11963
11963
|
onChange: r
|
|
11964
11964
|
}, {
|
|
11965
11965
|
default: G(() => [
|
|
11966
|
-
(m(!0), b(W, null, Re(p(
|
|
11966
|
+
(m(!0), b(W, null, Re(p(Ke).Get(), (d, h) => (m(), b("option", {
|
|
11967
11967
|
key: h,
|
|
11968
11968
|
label: d.label,
|
|
11969
11969
|
value: d
|
|
@@ -12138,7 +12138,7 @@ const l1 = /* @__PURE__ */ P(r1, [["render", a1], ["__scopeId", "data-v-5023d414
|
|
|
12138
12138
|
emits: ["toggle"],
|
|
12139
12139
|
setup(t, { emit: e }) {
|
|
12140
12140
|
const i = t, n = e, s = z(!0);
|
|
12141
|
-
|
|
12141
|
+
tt(
|
|
12142
12142
|
() => i.toggle,
|
|
12143
12143
|
() => {
|
|
12144
12144
|
s.value = !s.value;
|
|
@@ -12194,7 +12194,7 @@ const l1 = /* @__PURE__ */ P(r1, [["render", a1], ["__scopeId", "data-v-5023d414
|
|
|
12194
12194
|
default: !0
|
|
12195
12195
|
},
|
|
12196
12196
|
fileInfo: {
|
|
12197
|
-
type:
|
|
12197
|
+
type: nt,
|
|
12198
12198
|
required: !0
|
|
12199
12199
|
},
|
|
12200
12200
|
height: {
|