sprof 0.0.65 → 0.0.66

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.
@@ -1,6 +1,6 @@
1
1
  import { Component } from 'vue';
2
2
  export default interface ITab {
3
3
  name: string;
4
- slug?: string;
5
- component?: Component;
4
+ slug: string;
5
+ component: Component;
6
6
  }
package/dist/sprof.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Zo = Object.defineProperty;
2
2
  var Jo = (t, e, i) => e in t ? Zo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var u = (t, e, i) => Jo(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { defineComponent as $, ref as T, onBeforeMount as lt, openBlock as m, createElementBlock as S, Fragment as j, renderSlot as F, unref as g, createElementVNode as f, normalizeStyle as R, createCommentVNode as ee, resolveComponent as E, createVNode as A, withCtx as W, withModifiers as Re, withDirectives as qe, vModelText as Fn, computed as me, mergeProps as Dt, createTextVNode as Ai, toDisplayString as ye, mergeModels as Ee, useModel as ft, vModelCheckbox as Xo, vModelDynamic as Yo, isRef as Ge, withKeys as Qo, watch as Ke, createBlock as q, vModelRadio as Ko, normalizeClass as se, vShow as On, vModelSelect as ea, useCssVars as Ys, onMounted as Kt, renderList as Ie, resolveDirective as Qs, createStaticVNode as Ks, resolveDynamicComponent as _t, nextTick as ta, onUpdated as ia, onBeforeUnmount as zn, onUnmounted as er, Transition as tr, reactive as ot, getCurrentInstance as na, inject as sa, onDeactivated as ra, onActivated as oa } from "vue";
4
+ import { defineComponent as $, ref as T, onBeforeMount as tt, openBlock as m, createElementBlock as S, Fragment as j, renderSlot as F, unref as g, createElementVNode as f, normalizeStyle as R, createCommentVNode as ee, resolveComponent as E, createVNode as A, withCtx as W, withModifiers as Re, withDirectives as qe, vModelText as Fn, computed as me, mergeProps as Dt, createTextVNode as Ai, toDisplayString as ye, mergeModels as Ee, useModel as ft, vModelCheckbox as Xo, vModelDynamic as Yo, isRef as Ge, withKeys as Qo, watch as Ke, createBlock as q, vModelRadio as Ko, normalizeClass as se, vShow as On, vModelSelect as ea, useCssVars as Ys, onMounted as Kt, renderList as Ie, resolveDirective as Qs, createStaticVNode as Ks, resolveDynamicComponent as _t, nextTick as ta, onUpdated as ia, onBeforeUnmount as zn, onUnmounted as er, Transition as tr, reactive as at, getCurrentInstance as na, inject as sa, onDeactivated as ra, onActivated as oa } from "vue";
5
5
  const aa = {
6
6
  key: 0,
7
7
  class: "mainblock"
@@ -23,7 +23,7 @@ const aa = {
23
23
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
24
24
  n.value = !n.value;
25
25
  };
26
- return lt(async () => {
26
+ return tt(async () => {
27
27
  window.addEventListener("resize", () => {
28
28
  switch (e.mobileWidth) {
29
29
  case "1330px":
@@ -115,7 +115,7 @@ const aa = {
115
115
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
116
116
  n.value = !n.value;
117
117
  };
118
- return lt(async () => {
118
+ return tt(async () => {
119
119
  window.addEventListener("resize", () => {
120
120
  switch (e.mobileWidth) {
121
121
  case "1330px":
@@ -733,7 +733,7 @@ const Yi = /* @__PURE__ */ new WeakMap(), Za = (t, e) => {
733
733
  ], 4));
734
734
  }
735
735
  }), el = /* @__PURE__ */ P(Ka, [["__scopeId", "data-v-4e2bdb1a"]]), tl = ["ВС", "ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ"], il = "ru-RU";
736
- class st {
736
+ class rt {
737
737
  constructor() {
738
738
  u(this, "locale", "ru-RU");
739
739
  }
@@ -758,11 +758,11 @@ class st {
758
758
  return this.GetPeriod(n, s, e || { month: "2-digit", day: "numeric", year: void 0 });
759
759
  }
760
760
  static GetDurationInDay(e, i) {
761
- const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = st.SplitHourTime(e), o = st.SplitHourTime(i);
761
+ const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = rt.SplitHourTime(e), o = rt.SplitHourTime(i);
762
762
  return n.setHours(r[0], r[1], 0, 0), s.setHours(o[0], o[1], 0, 0), (s.getTime() - n.getTime()) / 1e3 / 60;
763
763
  }
764
764
  static HourTimeinMunutes(e) {
765
- const i = st.SplitHourTime(e);
765
+ const i = rt.SplitHourTime(e);
766
766
  return i[0] * 60 + i[1];
767
767
  }
768
768
  static SplitHourTime(e) {
@@ -770,7 +770,7 @@ class st {
770
770
  return [Number(i[0]), Number(i[1])];
771
771
  }
772
772
  static AddMinutesToHM(e, i) {
773
- const n = /* @__PURE__ */ new Date(), s = st.SplitHourTime(e);
773
+ const n = /* @__PURE__ */ new Date(), s = rt.SplitHourTime(e);
774
774
  n.setHours(s[0], s[1], 0, 0);
775
775
  const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), l = r.getMinutes();
776
776
  return `${o}:${l}`;
@@ -792,7 +792,7 @@ class st {
792
792
  const n = [new Date(e)];
793
793
  let s = e;
794
794
  for (; s <= i; )
795
- s = st.AddDays(s, 1), n.push(s);
795
+ s = rt.AddDays(s, 1), n.push(s);
796
796
  return n;
797
797
  }
798
798
  static AddDays(e, i) {
@@ -819,10 +819,10 @@ const nl = /* @__PURE__ */ $({
819
819
  }),
820
820
  emits: /* @__PURE__ */ Ee(["update:modelValue", "change", "beforeChange"], ["update:modelValue"]),
821
821
  setup(t, { emit: e }) {
822
- const i = e, n = ft(t, "modelValue"), s = st.Format(n.value), r = T(s), o = (a) => {
822
+ const i = e, n = ft(t, "modelValue"), s = rt.Format(n.value), r = T(s), o = (a) => {
823
823
  if (!l(a))
824
824
  return;
825
- const c = st.FromRuStr(a);
825
+ const c = rt.FromRuStr(a);
826
826
  n.value = c, i("beforeChange", c), i("change", c);
827
827
  }, l = (a) => a.length != 10 ? (r.value = s, M.UI.Notify.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, M.UI.Notify.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, M.UI.Notify.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, M.UI.Notify.Error("Неверный год"), !1) : !0;
828
828
  return (a, c) => {
@@ -1571,7 +1571,7 @@ function rr(t, e) {
1571
1571
  i[n] = t.slice(n * e, n * e + e);
1572
1572
  return i;
1573
1573
  }
1574
- var it = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(it || {});
1574
+ var nt = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(nt || {});
1575
1575
  const _l = { class: "container" }, Zl = { class: "slide-box" }, Jl = { class: "link-number" }, Xl = ["id", "onClick"], Yl = /* @__PURE__ */ $({
1576
1576
  __name: "CarouselImages",
1577
1577
  props: {
@@ -1606,17 +1606,17 @@ const _l = { class: "container" }, Zl = { class: "slide-box" }, Jl = { class: "l
1606
1606
  Ys((y) => ({
1607
1607
  a8527066: i
1608
1608
  }));
1609
- const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(it.None), r = T(rr(e.events, e.quantity)), o = me(() => r.value[n.value]);
1609
+ const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(nt.None), r = T(rr(e.events, e.quantity)), o = me(() => r.value[n.value]);
1610
1610
  Kt(() => {
1611
1611
  });
1612
1612
  const l = () => n.value = n.value + 1 < r.value.length ? n.value + 1 : 0, a = () => n.value = n.value - 1 < 0 ? r.value.length - 1 : n.value - 1, c = (y) => {
1613
- s.value = y, setTimeout(() => s.value = it.None, e.animationTime);
1613
+ s.value = y, setTimeout(() => s.value = nt.None, e.animationTime);
1614
1614
  }, d = (y) => {
1615
- y != n.value && (c(y < n.value ? it.Prev : it.Next), setTimeout(() => n.value = y, e.animationTime / 2));
1615
+ y != n.value && (c(y < n.value ? nt.Prev : nt.Next), setTimeout(() => n.value = y, e.animationTime / 2));
1616
1616
  }, h = () => {
1617
- c(it.Next), setTimeout(l, e.animationTime / 2);
1617
+ c(nt.Next), setTimeout(l, e.animationTime / 2);
1618
1618
  }, p = () => {
1619
- c(it.Prev), setTimeout(a, e.animationTime / 2);
1619
+ c(nt.Prev), setTimeout(a, e.animationTime / 2);
1620
1620
  };
1621
1621
  return (y, v) => (m(), S("div", {
1622
1622
  class: "field",
@@ -1633,8 +1633,8 @@ const _l = { class: "container" }, Zl = { class: "slide-box" }, Jl = { class: "l
1633
1633
  (m(!0), S(j, null, Ie(g(o), (k, b) => (m(), S("div", {
1634
1634
  key: b,
1635
1635
  class: se({
1636
- animationnext: g(s) === g(it).Next,
1637
- animationprev: g(s) === g(it).Prev
1636
+ animationnext: g(s) === g(nt).Next,
1637
+ animationprev: g(s) === g(nt).Prev
1638
1638
  })
1639
1639
  }, v[3] || (v[3] = [
1640
1640
  f("div", { class: "image" }, [
@@ -1823,7 +1823,7 @@ function fu(t, e = 0) {
1823
1823
  const mu = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), bs = {
1824
1824
  randomUUID: mu
1825
1825
  };
1826
- function at(t, e, i) {
1826
+ function lt(t, e, i) {
1827
1827
  if (bs.randomUUID && !e && !t)
1828
1828
  return bs.randomUUID();
1829
1829
  t = t || {};
@@ -2644,7 +2644,7 @@ var Cs;
2644
2644
  })(Cs || (Cs = {}));
2645
2645
  class je {
2646
2646
  static UUID() {
2647
- return at();
2647
+ return lt();
2648
2648
  }
2649
2649
  static GUID() {
2650
2650
  const e = function() {
@@ -2871,11 +2871,11 @@ const or = class It {
2871
2871
  }
2872
2872
  static CreateFilterModel(e, i, n) {
2873
2873
  const s = new It();
2874
- return s.id = at(), s.model = typeof e == "string" ? e : e.GetClassName(), s.col = i ?? "", s.type = n, s.type === ue.Number && (s.value1 = "0"), s.type === ue.String && (s.value1 = ""), s.type === ue.Boolean && (s.value1 = "false"), s;
2874
+ return s.id = lt(), s.model = typeof e == "string" ? e : e.GetClassName(), s.col = i ?? "", s.type = n, s.type === ue.Number && (s.value1 = "0"), s.type === ue.String && (s.value1 = ""), s.type === ue.Boolean && (s.value1 = "false"), s;
2875
2875
  }
2876
2876
  static CreateFilterModelWithJoin(e, i, n, s, r, o, l, a) {
2877
2877
  const c = new It();
2878
- return c.id = at(), c.joinTable = n, c.joinTablePk = s, c.joinTableFk = r, c.col = i, c.type = o, l && (c.joinTableId = l), a && (c.joinTableIdCol = a), c;
2878
+ return c.id = lt(), c.joinTable = n, c.joinTablePk = s, c.joinTableFk = r, c.col = i, c.type = o, l && (c.joinTableId = l), a && (c.joinTableIdCol = a), c;
2879
2879
  }
2880
2880
  static CreateFilterModelWithJoinV2(e, i, n, s, r, o, l) {
2881
2881
  const a = new It();
@@ -2883,7 +2883,7 @@ const or = class It {
2883
2883
  }
2884
2884
  static OnlyIfSecondModelExists(e, i) {
2885
2885
  const n = new It();
2886
- return n.id = at(), n.model = ve.ToCamelCase(e.GetClassName()), n.joinTableModel = ve.ToCamelCase(i.GetClassName()), n.type = ue.Join, n;
2886
+ return n.id = lt(), n.model = ve.ToCamelCase(e.GetClassName()), n.joinTableModel = ve.ToCamelCase(i.GetClassName()), n.type = ue.Join, n;
2887
2887
  }
2888
2888
  addToSet(...e) {
2889
2889
  e.forEach((i) => {
@@ -3067,7 +3067,7 @@ const vu = /* @__PURE__ */ $({
3067
3067
  }), xu = /* @__PURE__ */ P(Cu, [["__scopeId", "data-v-7b102249"]]), Mu = /* @__PURE__ */ $({
3068
3068
  __name: "FTSPPanel",
3069
3069
  setup(t) {
3070
- return lt(async () => {
3070
+ return tt(async () => {
3071
3071
  }), (e, i) => (m(), S("div"));
3072
3072
  }
3073
3073
  }), ku = /* @__PURE__ */ P(Mu, [["__scopeId", "data-v-799d5edf"]]), Iu = /* @__PURE__ */ $({
@@ -4151,7 +4151,7 @@ function $s(t) {
4151
4151
  function Ps(t, e) {
4152
4152
  return Math.pow(t.width - e.width, 2) + Math.pow(t.height - e.height, 2);
4153
4153
  }
4154
- function rt(t) {
4154
+ function ot(t) {
4155
4155
  var e = t.width, i = t.height, n = t.sizeRestrictions, s = { minimum: t.aspectRatio && t.aspectRatio.minimum || 0, maximum: t.aspectRatio && t.aspectRatio.maximum || 1 / 0 }, r = { width: Math.max(n.minWidth, Math.min(n.maxWidth, e)), height: Math.max(n.minHeight, Math.min(n.maxHeight, i)) };
4156
4156
  function o(c, d) {
4157
4157
  return d === void 0 && (d = !1), c.reduce(function(h, p) {
@@ -4176,7 +4176,7 @@ function mc(t) {
4176
4176
  return (Array.isArray(i) ? i : [i]).forEach(function(d) {
4177
4177
  var h = {};
4178
4178
  ge((h = typeof d == "function" ? d({ coordinates: c, imageSize: n, visibleArea: l }) : d).width) && ge(h.height) || (c = function(p, y) {
4179
- var v = N(N(N({}, p), rt({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
4179
+ var v = N(N(N({}, p), ot({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
4180
4180
  return a(v, { left: p.left, top: p.top });
4181
4181
  }(c, N(N({}, c), h))), ge(h.left) && ge(h.top) || (c = a(c, N(N({}, c), h)));
4182
4182
  }), c;
@@ -4188,7 +4188,7 @@ function pc(t) {
4188
4188
  var r = t.stencilSize, o = t.sizeRestrictions, l = t.positionRestrictions;
4189
4189
  t.stencilReference;
4190
4190
  var a, c, d, h = N({}, n), p = N({}, s), y = N({}, r);
4191
- a = ne(y), c = ne(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), rt({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: ne(y), maximum: ne(y) } })));
4191
+ a = ne(y), c = ne(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), ot({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: ne(y), maximum: ne(y) } })));
4192
4192
  var v = Pi(p = Be(p, h.width * i.width / (p.width * y.width)), e({ visibleArea: p, type: "resize" }));
4193
4193
  return v !== 1 && (p = Be(p, v), h = Be(h, v)), p = Ce(p = Ae(p, Et(Se(h), Se(p))), e({ visibleArea: p, type: "move" })), { coordinates: h = Ce(h, Ei(et(p), l)), visibleArea: p };
4194
4194
  }
@@ -4220,11 +4220,11 @@ function yc(t) {
4220
4220
  }
4221
4221
  function wc(t) {
4222
4222
  var e = t.imageSize, i = t.visibleArea, n = t.aspectRatio, s = t.sizeRestrictions, r = i || e, o = Math.min(n.maximum || 1 / 0, Math.max(n.minimum || 0, ne(r))), l = r.width < r.height ? { width: 0.8 * r.width, height: 0.8 * r.width / o } : { height: 0.8 * r.height, width: 0.8 * r.height * o };
4223
- return rt(N(N({}, l), { aspectRatio: n, sizeRestrictions: s }));
4223
+ return ot(N(N({}, l), { aspectRatio: n, sizeRestrictions: s }));
4224
4224
  }
4225
4225
  function bc(t) {
4226
4226
  var e, i, n = t.imageSize, s = t.visibleArea, r = t.boundaries, o = t.aspectRatio, l = t.sizeRestrictions, a = t.stencilSize, c = s || n;
4227
- return ne(c) > ne(r) ? i = (e = a.height * c.height / r.height) * ne(a) : e = (i = a.width * c.width / r.width) / ne(a), rt({ width: i, height: e, aspectRatio: o, sizeRestrictions: l });
4227
+ return ne(c) > ne(r) ? i = (e = a.height * c.height / r.height) * ne(a) : e = (i = a.width * c.width / r.width) / ne(a), ot({ width: i, height: e, aspectRatio: o, sizeRestrictions: l });
4228
4228
  }
4229
4229
  function Sc(t) {
4230
4230
  var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = ne(t.boundaries);
@@ -4248,7 +4248,7 @@ function Cc(t) {
4248
4248
  }
4249
4249
  function xc(t) {
4250
4250
  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), p = dt(Se(N({ left: 0, top: 0 }, a)), c);
4251
- return (d = N(N({}, rt({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), dt(Se(d), c))).left -= p.left - l.width / 2 + d.width / 2, d.top -= p.top - l.height / 2 + d.height / 2, h = Be(h, Pi(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = Ce(d, o), visibleArea: h = Ce(h = Ae(h, Et(Se(d), Se(n))), i({ visibleArea: h, type: "move" })) };
4251
+ return (d = N(N({}, ot({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), dt(Se(d), c))).left -= p.left - l.width / 2 + d.width / 2, d.top -= p.top - l.height / 2 + d.height / 2, h = Be(h, Pi(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = Ce(d, o), visibleArea: h = Ce(h = Ae(h, Et(Se(d), Se(n))), i({ visibleArea: h, type: "move" })) };
4252
4252
  }
4253
4253
  function Mc(t) {
4254
4254
  var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, l = t.imageSize, a = N({}, r), c = N({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
@@ -4698,7 +4698,7 @@ xr.render = function(t, e, i, n, s, r) {
4698
4698
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
4699
4699
  }), _: 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);
4700
4700
  };
4701
- var Oc = ["transitions"], tt = Ve("vue-advanced-cropper"), Mr = { name: "Cropper", components: { BackgroundWrapper: gn }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
4701
+ var Oc = ["transitions"], it = Ve("vue-advanced-cropper"), Mr = { name: "Cropper", components: { BackgroundWrapper: gn }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
4702
4702
  return xr;
4703
4703
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
4704
4704
  return gn;
@@ -4738,7 +4738,7 @@ var Oc = ["transitions"], tt = Ve("vue-advanced-cropper"), Mr = { name: "Cropper
4738
4738
  var e = t.stretcher, i = t.imageSize, n = ne(i);
4739
4739
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
4740
4740
  } }, fitCoordinates: { type: Function, default: function(t) {
4741
- var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = N(N({}, i), rt({ 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) } }));
4741
+ var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = N(N({}, i), ot({ 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) } }));
4742
4742
  return o = Ce(o = Ae(o, Et(Se(i), Se(o))), Ei(et(e), r));
4743
4743
  } }, fitVisibleArea: { type: Function, default: function(t) {
4744
4744
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = N({}, e);
@@ -4793,7 +4793,7 @@ var Oc = ["transitions"], tt = Ve("vue-advanced-cropper"), Mr = { name: "Cropper
4793
4793
  }, positionRestrictions: function() {
4794
4794
  return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
4795
4795
  }, classes: function() {
4796
- return { cropper: tt(), image: fe(tt("image"), this.imageClass), stencil: tt("stencil"), boundaries: fe(tt("boundaries"), this.boundariesClass), stretcher: fe(tt("stretcher")), background: fe(tt("background"), this.backgroundClass), foreground: fe(tt("foreground"), this.foregroundClass), imageWrapper: fe(tt("image-wrapper")), cropperWrapper: fe(tt("cropper-wrapper")) };
4796
+ return { cropper: it(), image: fe(it("image"), this.imageClass), stencil: it("stencil"), boundaries: fe(it("boundaries"), this.boundariesClass), stretcher: fe(it("stretcher")), background: fe(it("background"), this.backgroundClass), foreground: fe(it("foreground"), this.foregroundClass), imageWrapper: fe(it("image-wrapper")), cropperWrapper: fe(it("cropper-wrapper")) };
4797
4797
  }, stencilCoordinates: function() {
4798
4798
  if (this.initialized) {
4799
4799
  var t = this.coordinates, e = t.width, i = t.height, n = t.left, s = t.top;
@@ -4913,7 +4913,7 @@ var Oc = ["transitions"], tt = Ve("vue-advanced-cropper"), Mr = { name: "Cropper
4913
4913
  return c = a, !Number.isNaN(parseFloat(c)) && isFinite(c);
4914
4914
  var c;
4915
4915
  });
4916
- }, r = rt({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
4916
+ }, r = ot({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
4917
4917
  if (n.maxArea && r.width * r.height > n.maxArea) {
4918
4918
  var o = Math.sqrt(n.maxArea / (r.width * r.height));
4919
4919
  r = { width: Math.round(o * r.width), height: Math.round(o * r.height) };
@@ -5101,7 +5101,7 @@ var Oc = ["transitions"], tt = Ve("vue-advanced-cropper"), Mr = { name: "Cropper
5101
5101
  }
5102
5102
  return { minimum: e, maximum: i };
5103
5103
  }, getStencilSize: function() {
5104
- if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, i = t.stencilSize, n = t.aspectRatio, en(ne(s = kt(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = rt({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = rt({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: ne(s), maximum: ne(s) } })), s;
5104
+ if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, i = t.stencilSize, n = t.aspectRatio, en(ne(s = kt(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ot({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = ot({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: ne(s), maximum: ne(s) } })), s;
5105
5105
  var t, e, i, n, s;
5106
5106
  }, getPublicProperties: function() {
5107
5107
  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 };
@@ -5571,7 +5571,7 @@ const sd = /* @__PURE__ */ P(id, [["render", nd]]), rd = $({
5571
5571
  };
5572
5572
  return ia(() => {
5573
5573
  t.activeId && t.activeId !== t.tabId && (i.value = !0);
5574
- }), lt(() => {
5574
+ }), tt(() => {
5575
5575
  t.activeId && t.activeId !== t.tabId && (i.value = !1);
5576
5576
  }), {
5577
5577
  collapsed: i,
@@ -6069,10 +6069,17 @@ const ud = /* @__PURE__ */ P(rd, [["render", ld], ["__scopeId", "data-v-0ea9a95f
6069
6069
  o.value = window.innerWidth, a.value = l.value ? l.value.clientHeight : Number(i.tabHeight.replace(/[^+\d]/g, ""));
6070
6070
  };
6071
6071
  Kt(() => window.addEventListener("resize", c)), er(() => window.removeEventListener("resize", c));
6072
- const d = me(() => `calc(100% - ${a.value}px + 1px)`), h = (p, y) => {
6073
- s.value = p, r.value = y, n("select", p);
6072
+ const d = me(() => `calc(100% - ${a.value}px + 1px)`), h = () => {
6073
+ const y = M.H.Router.GetStringQueryParam("tab"), v = i.tabs.findIndex((k) => k.slug === y);
6074
+ v > -1 && (s.value = i.tabs[v], r.value = v);
6074
6075
  };
6075
- return (p, y) => (m(), S("div", {
6076
+ tt(() => {
6077
+ h();
6078
+ });
6079
+ const p = (y, v) => {
6080
+ s.value = y, r.value = v, M.H.Router.SetQueryParam("tab", y.slug), n("select", y);
6081
+ };
6082
+ return (y, v) => (m(), S("div", {
6076
6083
  class: "mainblock",
6077
6084
  style: R({
6078
6085
  height: `calc(100% - ${t.outTopMargin} - ${t.tabHeight}`
@@ -6086,15 +6093,15 @@ const ud = /* @__PURE__ */ P(rd, [["render", ld], ["__scopeId", "data-v-0ea9a95f
6086
6093
  gridTemplateColumns: `repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`
6087
6094
  })
6088
6095
  }, [
6089
- (m(!0), S(j, null, Ie(t.tabs, (v, k) => (m(), S("div", { key: k }, [
6096
+ (m(!0), S(j, null, Ie(t.tabs, (k, b) => (m(), S("div", { key: b }, [
6090
6097
  f("div", {
6091
- class: se({ "selected-tab": k === g(r), tab: k !== g(r) }),
6098
+ class: se({ "selected-tab": b === g(r), tab: b !== g(r) }),
6092
6099
  style: R({
6093
6100
  minHeight: t.tabHeight,
6094
6101
  maxHeight: t.tabHeight
6095
6102
  }),
6096
- onClick: (b) => h(v, k)
6097
- }, ye(v.name), 15, Ed)
6103
+ onClick: (z) => p(k, b)
6104
+ }, ye(k.name), 15, Ed)
6098
6105
  ]))), 128))
6099
6106
  ], 4),
6100
6107
  f("div", {
@@ -6104,13 +6111,13 @@ const ud = /* @__PURE__ */ P(rd, [["render", ld], ["__scopeId", "data-v-0ea9a95f
6104
6111
  height: g(d)
6105
6112
  })
6106
6113
  }, [
6107
- F(p.$slots, "default", {}, () => [
6114
+ F(y.$slots, "default", {}, () => [
6108
6115
  (m(), q(_t(g(s).component)))
6109
6116
  ], !0)
6110
6117
  ], 4)
6111
6118
  ], 4));
6112
6119
  }
6113
- }), Fd = /* @__PURE__ */ P(Td, [["__scopeId", "data-v-9654b2e3"]]);
6120
+ }), Fd = /* @__PURE__ */ P(Td, [["__scopeId", "data-v-90ffda36"]]);
6114
6121
  class Un {
6115
6122
  static Setup(e) {
6116
6123
  this.staticUrl = e;
@@ -6887,7 +6894,7 @@ const oh = /* @__PURE__ */ P(sh, [["render", rh], ["__scopeId", "data-v-0f1f2f84
6887
6894
  const i = t, n = e, s = T(!1), r = T(window.matchMedia("(max-width: 768px)").matches), o = (a) => {
6888
6895
  n("toggle", a);
6889
6896
  }, l = T(!1);
6890
- return lt(async () => {
6897
+ return tt(async () => {
6891
6898
  window.addEventListener("resize", () => {
6892
6899
  switch (i.mobileWidth) {
6893
6900
  case "1330px":
@@ -7139,7 +7146,7 @@ const Qe = new Hh(), Bh = ["label", "value"], qh = /* @__PURE__ */ $({
7139
7146
  emits: ["load"],
7140
7147
  setup(t, { emit: e }) {
7141
7148
  const i = T(!1), n = e, s = T();
7142
- lt(() => {
7149
+ tt(() => {
7143
7150
  i.value = !0, s.value = Qe.GetDefault(), M.H.FTSP.Get().setSortModel(s.value);
7144
7151
  });
7145
7152
  const r = async (l) => {
@@ -7182,7 +7189,7 @@ const Qe = new Hh(), Bh = ["label", "value"], qh = /* @__PURE__ */ $({
7182
7189
  emits: ["load"],
7183
7190
  setup(t, { emit: e }) {
7184
7191
  const i = e, n = T();
7185
- lt(() => {
7192
+ tt(() => {
7186
7193
  n.value = Qe.GetDefault();
7187
7194
  });
7188
7195
  const s = async (o) => {
@@ -7488,7 +7495,7 @@ const af = {
7488
7495
  }, d = (b) => {
7489
7496
  i.fileInfo.setFile(b), i.fileInfo.fileSystemPath && (s.value = i.fileInfo), o.value = !1, n("crop");
7490
7497
  };
7491
- lt(() => {
7498
+ tt(() => {
7492
7499
  i.fileInfo.fileSystemPath && (s.value = i.fileInfo, s.value.url = i.fileInfo.getFileUrl());
7493
7500
  });
7494
7501
  let h = null;
@@ -10328,7 +10335,7 @@ const rp = [
10328
10335
  name: "NotFound",
10329
10336
  component: Ir
10330
10337
  }
10331
- ], nt = class nt {
10338
+ ], st = class st {
10332
10339
  static SetRouter(e) {
10333
10340
  this.router = e, this.AddRoutes(rp);
10334
10341
  }
@@ -10349,16 +10356,16 @@ const rp = [
10349
10356
  await this.GetRouter().replace(e);
10350
10357
  }
10351
10358
  static Id() {
10352
- return nt.GetStringParam("id");
10359
+ return st.GetStringParam("id");
10353
10360
  }
10354
10361
  static Slug() {
10355
- return nt.GetStringParam("slug");
10362
+ return st.GetStringParam("slug");
10356
10363
  }
10357
10364
  static async Back() {
10358
10365
  this.GetRouter().go(-1);
10359
10366
  }
10360
10367
  static GetQid() {
10361
- return nt.GetStringQueryParam("qid");
10368
+ return st.GetStringQueryParam("qid");
10362
10369
  }
10363
10370
  static Route() {
10364
10371
  return this.GetRouter().currentRoute.value;
@@ -10369,7 +10376,7 @@ const rp = [
10369
10376
  }
10370
10377
  static GetPath() {
10371
10378
  var i;
10372
- const e = (i = nt.Route()) == null ? void 0 : i.path.split("/");
10379
+ const e = (i = st.Route()) == null ? void 0 : i.path.split("/");
10373
10380
  return !e || e.length <= 0 ? "" : e[e.length - 1];
10374
10381
  }
10375
10382
  static async ToAdmin(e) {
@@ -10378,7 +10385,7 @@ const rp = [
10378
10385
  return;
10379
10386
  }
10380
10387
  let i = e;
10381
- i[0] === "/" && (i = e.substring(1)), await nt.To(`/admin/${i}`);
10388
+ i[0] === "/" && (i = e.substring(1)), await st.To(`/admin/${i}`);
10382
10389
  }
10383
10390
  static GetStringQueryParam(e) {
10384
10391
  return String(this.Route().query[e]);
@@ -10390,22 +10397,22 @@ const rp = [
10390
10397
  return this.Route().params[e];
10391
10398
  }
10392
10399
  static SetQueryParam(e, i) {
10393
- return this.GetRouter().replace({ path: nt.Route().path, query: { [e]: i } });
10400
+ return this.GetRouter().replace({ path: st.Route().path, query: { [e]: i } });
10394
10401
  }
10395
10402
  static Resolve(e) {
10396
10403
  return this.GetRouter().resolve(e);
10397
10404
  }
10398
10405
  };
10399
- u(nt, "router");
10400
- let Ot = nt;
10406
+ u(st, "router");
10407
+ let Ot = st;
10401
10408
  class ae {
10402
10409
  constructor(e, i) {
10403
- u(this, "items", ot([]));
10410
+ u(this, "items", at([]));
10404
10411
  u(this, "item");
10405
10412
  u(this, "count", T(0));
10406
10413
  u(this, "classConstructor");
10407
10414
  u(this, "url", "");
10408
- this.classConstructor = e, this.item = ot(new this.classConstructor()), this.url = i;
10415
+ this.classConstructor = e, this.item = at(new this.classConstructor()), this.url = i;
10409
10416
  }
10410
10417
  Set(e) {
10411
10418
  Object.assign(this.item, new this.classConstructor(e));
@@ -10611,7 +10618,7 @@ function co() {
10611
10618
  };
10612
10619
  }
10613
10620
  const cp = (() => {
10614
- const t = (r, o) => lt(async () => {
10621
+ const t = (r, o) => tt(async () => {
10615
10622
  var l;
10616
10623
  M.H.FTSP.Get().reset(), Qe.Set(o == null ? void 0 : o.sortsLib), M.H.FTSP.Get().setSortModel(Qe.GetDefault()), Qe.Set(o == null ? void 0 : o.sortsLib), M.H.FTSP.Get().setSortModel(Qe.GetDefault()), M.Paginator.storeModule = (l = o == null ? void 0 : o.pagination) == null ? void 0 : l.storeModule, await r();
10617
10624
  }), { saveButtonClick: e, showConfirmModal: i } = co(), n = (r) => up((o, l, a) => {
@@ -10893,11 +10900,11 @@ class Ii {
10893
10900
  }
10894
10901
  static Create(e, i, n, s) {
10895
10902
  const r = new Ii();
10896
- return r.id = at(), r.chatId = e, r.message = n, r.userName = s, r;
10903
+ return r.id = lt(), r.chatId = e, r.message = n, r.userName = s, r;
10897
10904
  }
10898
10905
  static CreatePingMessage() {
10899
10906
  const e = new Ii();
10900
- return e.type = "ping", e.id = at(), e;
10907
+ return e.type = "ping", e.id = lt(), e;
10901
10908
  }
10902
10909
  isMessage() {
10903
10910
  return this.type === "message" || this.type === "";
@@ -10949,7 +10956,7 @@ const Fp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10949
10956
  CreateSortModels: Rr,
10950
10957
  Cursor: fp,
10951
10958
  DateMask: wp,
10952
- Dates: st,
10959
+ Dates: rt,
10953
10960
  Dragger: bp,
10954
10961
  Extension: Sp,
10955
10962
  FTSP: Hr,
@@ -11050,8 +11057,8 @@ class Hp {
11050
11057
  const Bp = new Hp();
11051
11058
  class qp {
11052
11059
  constructor() {
11053
- u(this, "Menu", ot(Bp));
11054
- u(this, "Head", ot(Dp));
11060
+ u(this, "Menu", at(Bp));
11061
+ u(this, "Head", at(Dp));
11055
11062
  }
11056
11063
  }
11057
11064
  const Np = new qp();
@@ -11428,8 +11435,8 @@ class cn {
11428
11435
  let yg = class {
11429
11436
  constructor() {
11430
11437
  u(this, "isSearchDrawerOpen", T(!1));
11431
- u(this, "searchModel", ot(new cn()));
11432
- u(this, "searchGroups", ot([]));
11438
+ u(this, "searchModel", at(new cn()));
11439
+ u(this, "searchGroups", at([]));
11433
11440
  u(this, "count", 0);
11434
11441
  }
11435
11442
  async Search(e) {
@@ -11560,7 +11567,7 @@ const xg = new Cg(), Mg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
11560
11567
  }, Symbol.toStringTag, { value: "Module" }));
11561
11568
  class M {
11562
11569
  }
11563
- u(M, "Auth", ot(Lr)), u(M, "UI", ot(Vp)), u(M, "Paginator", ot(zp)), u(M, "S", Mg), u(M, "H", Fp), u(M, "C", Rf);
11570
+ u(M, "Auth", at(Lr)), u(M, "UI", at(Vp)), u(M, "Paginator", at(zp)), u(M, "S", Mg), u(M, "H", Fp), u(M, "C", Rf);
11564
11571
  class wo {
11565
11572
  constructor(e) {
11566
11573
  u(this, "id");
@@ -11850,7 +11857,7 @@ class Ct {
11850
11857
  }
11851
11858
  static Create(e, i) {
11852
11859
  const n = new Ct();
11853
- return n.id = at(), n.fieldFillId = e, n.answerVariantId = i, n;
11860
+ return n.id = lt(), n.fieldFillId = e, n.answerVariantId = i, n;
11854
11861
  }
11855
11862
  static GetClassName() {
11856
11863
  return "selectedAnswerVariant";
@@ -11887,7 +11894,7 @@ const es = class Tn {
11887
11894
  }
11888
11895
  static Create(e, i) {
11889
11896
  const n = new Tn();
11890
- return n.id = at(), n.fieldId = e.id, n.formFillId = i, n.order = e.order, n.valueNumber = 0, n.valueString = "", n.valueDate = /* @__PURE__ */ new Date(), n;
11897
+ return n.id = lt(), n.fieldId = e.id, n.formFillId = i, n.order = e.order, n.valueNumber = 0, n.valueString = "", n.valueDate = /* @__PURE__ */ new Date(), n;
11891
11898
  }
11892
11899
  setString(e) {
11893
11900
  this.valueString = e, this.valueString && (this.filled = this.valueString.length > 0);
@@ -11909,7 +11916,7 @@ const es = class Tn {
11909
11916
  }
11910
11917
  addFile() {
11911
11918
  const e = new Kn();
11912
- return e.id = at(), e.answerId = this.id, this.answerFiles.push(e), e;
11919
+ return e.id = lt(), e.answerId = this.id, this.answerFiles.push(e), e;
11913
11920
  }
11914
11921
  getFileInfos() {
11915
11922
  const e = [];