sprof 0.0.230 → 0.0.232

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 Xl = Object.defineProperty;
2
2
  var Yl = (t, e, i) => e in t ? Xl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var a = (t, e, i) => Yl(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { reactive as ze, ref as T, openBlock as m, createElementBlock as w, createElementVNode as f, getCurrentInstance as Jl, inject as Ql, onUnmounted as Dr, onDeactivated as Kl, onActivated as eu, onBeforeMount as lt, defineComponent as $, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as Ui, toDisplayString as Ie, Fragment as V, normalizeClass as se, normalizeStyle as k, mergeModels as Ee, useModel as pt, withDirectives as Je, vModelCheckbox as tu, createVNode as R, createCommentVNode as J, vModelDynamic as iu, resolveComponent as B, isRef as _e, withKeys as nu, vModelText as Lr, watch as Ze, createBlock as U, vModelRadio as su, vShow as ns, vModelSelect as ru, useCssVars as Br, onMounted as Xt, renderList as Oe, withCtx as X, resolveDirective as Hr, nextTick as ou, Transition as qr, onBeforeUnmount as ss, createStaticVNode as Nr, onUpdated as au, useTemplateRef as lu, resolveDynamicComponent as li } from "vue";
4
+ import { reactive as ze, ref as T, openBlock as m, createElementBlock as w, createElementVNode as f, getCurrentInstance as Jl, inject as Ql, onUnmounted as Dr, onDeactivated as Kl, onActivated as eu, onBeforeMount as ut, defineComponent as $, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as Ui, toDisplayString as Ie, Fragment as V, normalizeClass as se, normalizeStyle as k, mergeModels as Ee, useModel as pt, withDirectives as Je, vModelCheckbox as tu, createVNode as R, createCommentVNode as J, vModelDynamic as iu, resolveComponent as B, isRef as _e, withKeys as nu, vModelText as Lr, watch as Ze, createBlock as U, vModelRadio as su, vShow as ns, vModelSelect as ru, useCssVars as Br, onMounted as Xt, renderList as Oe, withCtx as X, resolveDirective as Hr, nextTick as ou, Transition as qr, onBeforeUnmount as ss, createStaticVNode as Nr, onUpdated as au, useTemplateRef as lu, resolveDynamicComponent as li } from "vue";
5
5
  var Ae = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Ae || {}), xe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(xe || {});
6
6
  class Rt {
7
7
  constructor(e, i, n, s) {
@@ -1766,7 +1766,7 @@ class os {
1766
1766
  var yt;
1767
1767
  let $u = (yt = class {
1768
1768
  }, a(yt, "Phone", Tt), a(yt, "FileInfo", Te), a(yt, "PostAddress", Di), a(yt, "Website", os), a(yt, "Email", Et), a(yt, "Human", Zr), yt);
1769
- class ft {
1769
+ class mt {
1770
1770
  static Shuffle(e) {
1771
1771
  for (let i = e.length - 1; i > 0; i--) {
1772
1772
  const n = Math.floor(Math.random() * (i + 1));
@@ -1844,12 +1844,12 @@ const Xr = class ni {
1844
1844
  return !1;
1845
1845
  if (this.type === we.Join) {
1846
1846
  const i = e.model === this.model && e.operator === this.operator && this.joinTableModel === e.joinTableModel;
1847
- return e.operator === Re.In ? i && ft.Eq(this.set, e.set) : i;
1847
+ return e.operator === Re.In ? i && mt.Eq(this.set, e.set) : i;
1848
1848
  }
1849
1849
  return e.model === this.model && e.col === this.col && e.operator === this.operator;
1850
1850
  }
1851
1851
  valueEq(e) {
1852
- return !this || !e || !this.eq(e) ? !1 : this.type === we.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === we.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === we.Join && this.set.length ? ft.Eq(this.set, e.set) : !1;
1852
+ return !this || !e || !this.eq(e) ? !1 : this.type === we.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === we.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === we.Join && this.set.length ? mt.Eq(this.set, e.set) : !1;
1853
1853
  }
1854
1854
  toUrlQuery() {
1855
1855
  const e = this.type ? `"type":"${this.type}"` : "", i = this.model ? `"model":"${this.model}"` : "", n = this.col ? `"col":"${this.col}"` : "", s = this.operator ? `"operator":"${this.operator}"` : "", r = this.value1 ? `"value1":"${this.value1}"` : "", o = this.type === we.Boolean ? `"boolean":${this.boolean}` : "", u = this.type === we.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", l = this.type === we.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", c = this.type === we.Number ? `"number":${this.number}` : "", d = this.type === we.Set || this.operator === Re.In ? `"set":${JSON.stringify(this.set)}` : "", h = this.type === we.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
@@ -2075,7 +2075,7 @@ const gi = (qe = class {
2075
2075
  return this.f.find((i) => e.id === i.id);
2076
2076
  }
2077
2077
  getFirstSortModel() {
2078
- return ft.GetLast(this.s);
2078
+ return mt.GetLast(this.s);
2079
2079
  }
2080
2080
  setSortModel(e) {
2081
2081
  e && (this.s[0] = e);
@@ -2112,10 +2112,10 @@ _i([
2112
2112
  _i([
2113
2113
  F.GetClassConstructor(Vi)
2114
2114
  ], gi.prototype, "t");
2115
- let mt = gi;
2115
+ let gt = gi;
2116
2116
  var ii;
2117
2117
  let zu = (ii = class {
2118
- }, a(ii, "SortModel", Gi), a(ii, "FilterModel", as), a(ii, "FTSP", ze(mt)), ii);
2118
+ }, a(ii, "SortModel", Gi), a(ii, "FilterModel", as), a(ii, "FTSP", ze(gt)), ii);
2119
2119
  function Yr(t, e) {
2120
2120
  return function() {
2121
2121
  return t.apply(e, arguments);
@@ -4114,7 +4114,7 @@ a(it, "router"), a(it, "ChangeDocumentTitle", (e = "") => {
4114
4114
  let i = it.Route().meta.title ?? e;
4115
4115
  i && e && (i = i + ` | ${e}`), document.title = i;
4116
4116
  });
4117
- let gt = it;
4117
+ let at = it;
4118
4118
  class ce {
4119
4119
  constructor(e, i) {
4120
4120
  a(this, "items", ze([]));
@@ -4139,11 +4139,14 @@ class ce {
4139
4139
  e && e.withCache ? i = await en.TryGet(this.getUrl(), n) : i = await n({ query: this.getUrl() }), Array.isArray(i) ? this.SetAll(i) : this.SetAllWithCount(i);
4140
4140
  }
4141
4141
  async Get(e) {
4142
- e || (e = gt.Id()), this.Set(await he.Get({ query: this.getUrl(e) }));
4142
+ e || (e = at.Id()), this.Set(await he.Get({ query: this.getUrl(e) }));
4143
+ }
4144
+ async GetBySlug(e) {
4145
+ e || (e = at.Slug()), this.Set(await N.H.HttpClient.Get({ query: this.getUrl("by-slug/" + e) }));
4143
4146
  }
4144
4147
  async FTSP(e) {
4145
4148
  var o;
4146
- const n = ((e == null ? void 0 : e.ftsp) ?? mt.Get()).clearForHTTP(), s = {
4149
+ const n = ((e == null ? void 0 : e.ftsp) ?? gt.Get()).clearForHTTP(), s = {
4147
4150
  payload: { ftsp: n },
4148
4151
  query: this.getUrl("ftsp")
4149
4152
  }, r = await he.Post(s);
@@ -4267,7 +4270,7 @@ function fd(t, e) {
4267
4270
  const md = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
4268
4271
  class gd {
4269
4272
  static GetRandColor(e) {
4270
- return ft.GetRandEL(e ?? md);
4273
+ return mt.GetRandEL(e ?? md);
4271
4274
  }
4272
4275
  }
4273
4276
  function Co(t, e) {
@@ -4310,7 +4313,7 @@ let pd = class {
4310
4313
  return this.timelinePxHeight * this.timelines.length;
4311
4314
  }
4312
4315
  getHoursArr() {
4313
- return ft.GenerateNumsRange(this.startHour, this.endHour);
4316
+ return mt.GenerateNumsRange(this.startHour, this.endHour);
4314
4317
  }
4315
4318
  };
4316
4319
  const _n = (t) => t === 8 || t === 46, vd = (t) => t > 46 && t < 58, yd = (t) => t > 34 && t < 41, wd = (t) => t + ".", bd = (t, e, i) => {
@@ -4568,7 +4571,7 @@ function Ed() {
4568
4571
  };
4569
4572
  }
4570
4573
  const Td = (() => {
4571
- const t = (r, o) => lt(async () => {
4574
+ const t = (r, o) => ut(async () => {
4572
4575
  N.F.FTSP.Get().reset(), Pt.Set(o == null ? void 0 : o.sortsLib), await r();
4573
4576
  }), { saveButtonClick: e, showConfirmModal: i } = Ed(), n = (r) => Ad((o, u, l) => {
4574
4577
  i((r || s)(), l);
@@ -4601,7 +4604,7 @@ class ms {
4601
4604
  a(this, "key", "");
4602
4605
  }
4603
4606
  preSelect() {
4604
- const e = gt.GetStringQueryParam(this.key);
4607
+ const e = at.GetStringQueryParam(this.key);
4605
4608
  if (!e || e === "undefined") {
4606
4609
  this.Select(0);
4607
4610
  return;
@@ -4617,7 +4620,7 @@ class ms {
4617
4620
  if (this.items.length) {
4618
4621
  if (e === void 0)
4619
4622
  return this.preSelect();
4620
- this.idx = e, gt.SetQueryParam(this.key, this.GetSlug());
4623
+ this.idx = e, at.SetQueryParam(this.key, this.GetSlug());
4621
4624
  }
4622
4625
  }
4623
4626
  GetMenu() {
@@ -4712,7 +4715,7 @@ class Fd {
4712
4715
  return this.timelinePxHeight * this.timelines.length;
4713
4716
  }
4714
4717
  getHoursArr() {
4715
- return ft.GenerateNumsRange(this.startHour, this.endHour);
4718
+ return mt.GenerateNumsRange(this.startHour, this.endHour);
4716
4719
  }
4717
4720
  timeIsFree(e, i, n, s) {
4718
4721
  return s.filter((r) => r.id !== n).every(
@@ -4815,9 +4818,9 @@ class Ud {
4815
4818
  }
4816
4819
  var ee;
4817
4820
  let jd = (ee = class {
4818
- }, a(ee, "Arrays", ft), a(ee, "Axios", ri), a(ee, "BaseStore", ce), // static Phone = Phone;
4821
+ }, a(ee, "Arrays", mt), a(ee, "Axios", ri), a(ee, "BaseStore", ce), // static Phone = Phone;
4819
4822
  a(ee, "Cache", en), a(ee, "Classes", F), a(ee, "CarouselSwipe", fd), a(ee, "Color", gd), a(ee, "CreateSortModels", Co), a(ee, "Cursor", pd), a(ee, "DateMask", Cd), a(ee, "Dates", st), a(ee, "Dragger", kd), a(ee, "Extension", xo), a(ee, "Favourite", Id), // static FTSP = FTSP;
4820
- a(ee, "Hooks", Td), a(ee, "HttpClient", he), a(ee, "Id", ve), a(ee, "MakeCarousel", Mo), a(ee, "Period", Bn), a(ee, "PhoneService", Zn), a(ee, "Rating", zd), a(ee, "Router", gt), a(ee, "RouterGuard", Od), a(ee, "Scheduler", Fd), a(ee, "Scroll", Ld), // static Sizes = Sizes;
4823
+ a(ee, "Hooks", Td), a(ee, "HttpClient", he), a(ee, "Id", ve), a(ee, "MakeCarousel", Mo), a(ee, "Period", Bn), a(ee, "PhoneService", Zn), a(ee, "Rating", zd), a(ee, "Router", at), a(ee, "RouterGuard", Od), a(ee, "Scheduler", Fd), a(ee, "Scroll", Ld), // static Sizes = Sizes;
4821
4824
  a(ee, "Sorter", Bd), a(ee, "Static", rs), // static Statuses = Statuses;
4822
4825
  a(ee, "Strings", ne), a(ee, "Time", te), a(ee, "Timer", ci), a(ee, "Token", hi), a(ee, "Menus", ms), // static useConfirmLeavePage = useConfirmLeavePage();
4823
4826
  a(ee, "validate", Hd), a(ee, "WaitElement", qd), a(ee, "WebSocketClient", Ud), ee);
@@ -4864,7 +4867,7 @@ let Gd = class {
4864
4867
  await he.Post({ query: "auth/restore-password", payload: e });
4865
4868
  }
4866
4869
  async PasswordChange(e = Ce.Form.GetValues()) {
4867
- e.id = gt.GetStringParam("userId"), await he.Put({
4870
+ e.id = at.GetStringParam("userId"), await he.Put({
4868
4871
  query: "auth/password-change",
4869
4872
  payload: e
4870
4873
  });
@@ -5104,10 +5107,10 @@ class Pn {
5104
5107
  i ? this.searchGroup = i : this.searchGroup = new Ut();
5105
5108
  }
5106
5109
  async reproduceFromRoute() {
5107
- this.setQuery(), await this.setSearchGroup(gt.Route().query.groupId);
5110
+ this.setQuery(), await this.setSearchGroup(at.Route().query.groupId);
5108
5111
  }
5109
5112
  setQuery() {
5110
- const e = gt.Route().query.query;
5113
+ const e = at.Route().query.query;
5111
5114
  e && (this.query = e);
5112
5115
  }
5113
5116
  }
@@ -5333,7 +5336,7 @@ class xh extends Gr {
5333
5336
  this.resolve = void 0, this.reject = void 0, super.hide();
5334
5337
  }
5335
5338
  }
5336
- const ct = new xh();
5339
+ const dt = new xh();
5337
5340
  class Mh extends Wr {
5338
5341
  Show() {
5339
5342
  super.show();
@@ -5345,7 +5348,7 @@ class Mh extends Wr {
5345
5348
  const kh = new Mh();
5346
5349
  class bt {
5347
5350
  }
5348
- a(bt, "Admin", Ch), a(bt, "Dialog", ct), a(bt, "Loading", kh), a(bt, "Notify", ze(Fe)), a(bt, "Btn", Rt), a(bt, "Input", Ur);
5351
+ a(bt, "Admin", Ch), a(bt, "Dialog", dt), a(bt, "Loading", kh), a(bt, "Notify", ze(Fe)), a(bt, "Btn", Rt), a(bt, "Input", Ur);
5349
5352
  class N {
5350
5353
  }
5351
5354
  a(N, "Auth", ze(Ce)), a(N, "UI", ze(bt)), a(N, "Paginator", ze(ko)), /**
@@ -7358,7 +7361,8 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7358
7361
  return m(), w("div", {
7359
7362
  class: "wrapper",
7360
7363
  style: k({
7361
- maxHeight: t.height
7364
+ maxHeight: t.height,
7365
+ height: t.height
7362
7366
  })
7363
7367
  }, [
7364
7368
  f("div", {
@@ -7382,7 +7386,8 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7382
7386
  f("div", {
7383
7387
  class: "click-line",
7384
7388
  style: k({
7385
- width: t.widthClosed
7389
+ width: t.widthClosed,
7390
+ height: t.height
7386
7391
  }),
7387
7392
  onClick: u[0] || (u[0] = (c) => r(!p(s)))
7388
7393
  }, [
@@ -7405,7 +7410,8 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7405
7410
  class: "RS-content",
7406
7411
  style: k({
7407
7412
  width: `calc(${t.widthOpened} - ${t.widthClosed} - 2px)`,
7408
- background: t.background
7413
+ background: t.background,
7414
+ height: t.height
7409
7415
  })
7410
7416
  }, [
7411
7417
  P(o.$slots, "default", {}, void 0, !0)
@@ -7414,7 +7420,7 @@ const En = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7414
7420
  ], 4);
7415
7421
  };
7416
7422
  }
7417
- }), sa = /* @__PURE__ */ A(zm, [["__scopeId", "data-v-ed3b13c2"]]), Om = /* @__PURE__ */ $({
7423
+ }), sa = /* @__PURE__ */ A(zm, [["__scopeId", "data-v-45d26c84"]]), Om = /* @__PURE__ */ $({
7418
7424
  __name: "IconClose",
7419
7425
  props: {
7420
7426
  size: { type: String, default: "24px" },
@@ -7826,7 +7832,7 @@ const av = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7826
7832
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
7827
7833
  n.value = !n.value;
7828
7834
  };
7829
- return lt(async () => {
7835
+ return ut(async () => {
7830
7836
  window.addEventListener("resize", () => {
7831
7837
  switch (e.mobileWidth) {
7832
7838
  case "1330px":
@@ -7917,7 +7923,7 @@ const av = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7917
7923
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
7918
7924
  n.value = !n.value;
7919
7925
  };
7920
- return lt(async () => {
7926
+ return ut(async () => {
7921
7927
  window.addEventListener("resize", () => {
7922
7928
  switch (e.mobileWidth) {
7923
7929
  case "1330px":
@@ -8046,7 +8052,7 @@ const av = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8046
8052
  ], 2));
8047
8053
  }
8048
8054
  }), $s = /* @__PURE__ */ A(ag, [["__scopeId", "data-v-a3c4743c"]]);
8049
- var dt = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(dt || {});
8055
+ var ht = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(ht || {});
8050
8056
  const lg = { class: "container" }, ug = { class: "slide-box" }, cg = { class: "image" }, dg = { class: "image-box" }, hg = ["id", "src", "alt"], fg = { class: "link-number" }, mg = ["id", "onClick"], gg = /* @__PURE__ */ $({
8051
8057
  __name: "CarouselImages",
8052
8058
  props: {
@@ -8081,17 +8087,17 @@ const lg = { class: "container" }, ug = { class: "slide-box" }, cg = { class: "i
8081
8087
  Br((y) => ({
8082
8088
  "582c9d05": i
8083
8089
  }));
8084
- const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(dt.None), r = T(Mo(e.events, e.quantity)), o = ue(() => r.value[n.value]);
8090
+ const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(ht.None), r = T(Mo(e.events, e.quantity)), o = ue(() => r.value[n.value]);
8085
8091
  Xt(() => {
8086
8092
  });
8087
8093
  const u = () => n.value = n.value + 1 < r.value.length ? n.value + 1 : 0, l = () => n.value = n.value - 1 < 0 ? r.value.length - 1 : n.value - 1, c = (y) => {
8088
- s.value = y, setTimeout(() => s.value = dt.None, e.animationTime);
8094
+ s.value = y, setTimeout(() => s.value = ht.None, e.animationTime);
8089
8095
  }, d = (y) => {
8090
- y != n.value && (c(y < n.value ? dt.Prev : dt.Next), setTimeout(() => n.value = y, e.animationTime / 2));
8096
+ y != n.value && (c(y < n.value ? ht.Prev : ht.Next), setTimeout(() => n.value = y, e.animationTime / 2));
8091
8097
  }, h = () => {
8092
- c(dt.Next), setTimeout(u, e.animationTime / 2);
8098
+ c(ht.Next), setTimeout(u, e.animationTime / 2);
8093
8099
  }, g = () => {
8094
- c(dt.Prev), setTimeout(l, e.animationTime / 2);
8100
+ c(ht.Prev), setTimeout(l, e.animationTime / 2);
8095
8101
  };
8096
8102
  return (y, x) => (m(), w("div", {
8097
8103
  class: "field",
@@ -8108,8 +8114,8 @@ const lg = { class: "container" }, ug = { class: "slide-box" }, cg = { class: "i
8108
8114
  (m(!0), w(V, null, Oe(p(o), (C, M) => (m(), w("div", {
8109
8115
  key: M,
8110
8116
  class: se({
8111
- animationnext: p(s) === p(dt).Next,
8112
- animationprev: p(s) === p(dt).Prev
8117
+ animationnext: p(s) === p(ht).Next,
8118
+ animationprev: p(s) === p(ht).Prev
8113
8119
  })
8114
8120
  }, [
8115
8121
  f("div", cg, [
@@ -8322,7 +8328,7 @@ const ga = /* @__PURE__ */ A(yg, [["render", bg], ["__scopeId", "data-v-d28c6f33
8322
8328
  emits: ["load"],
8323
8329
  setup(t, { emit: e }) {
8324
8330
  const i = e, n = T(void 0), s = async (o) => {
8325
- mt.Get().replaceF(o, n.value), n.value = o, mt.Get().p.drop();
8331
+ gt.Get().replaceF(o, n.value), n.value = o, gt.Get().p.drop();
8326
8332
  }, r = async (o) => {
8327
8333
  await s(o), i("load");
8328
8334
  };
@@ -8387,7 +8393,7 @@ const ga = /* @__PURE__ */ A(yg, [["render", bg], ["__scopeId", "data-v-d28c6f33
8387
8393
  },
8388
8394
  emits: ["load"],
8389
8395
  setup(t, { emit: e }) {
8390
- const i = e, n = mt.Get(), s = T(void 0), r = async (u) => {
8396
+ const i = e, n = gt.Get(), s = T(void 0), r = async (u) => {
8391
8397
  n.replaceF(u, s.value), s.value = u;
8392
8398
  }, o = async (u) => {
8393
8399
  u ? await r(s.value) : await r(void 0), i("load");
@@ -8415,7 +8421,7 @@ const ga = /* @__PURE__ */ A(yg, [["render", bg], ["__scopeId", "data-v-d28c6f33
8415
8421
  }), wa = /* @__PURE__ */ A(Rg, [["__scopeId", "data-v-ae66df57"]]), $g = /* @__PURE__ */ $({
8416
8422
  __name: "FTSPPanel",
8417
8423
  setup(t) {
8418
- return lt(async () => {
8424
+ return ut(async () => {
8419
8425
  }), (e, i) => (m(), w("div"));
8420
8426
  }
8421
8427
  }), ba = /* @__PURE__ */ A($g, [["__scopeId", "data-v-e280d85b"]]), Ag = /* @__PURE__ */ $({
@@ -8899,7 +8905,7 @@ const ga = /* @__PURE__ */ A(yg, [["render", bg], ["__scopeId", "data-v-d28c6f33
8899
8905
  __name: "PDialog",
8900
8906
  setup(t) {
8901
8907
  const e = ue(() => {
8902
- switch (ct.GetType()) {
8908
+ switch (dt.GetType()) {
8903
8909
  case "info":
8904
8910
  return "message primary";
8905
8911
  case "success":
@@ -8916,26 +8922,26 @@ const ga = /* @__PURE__ */ A(yg, [["render", bg], ["__scopeId", "data-v-d28c6f33
8916
8922
  const s = B("MessageBody"), r = B("PButton");
8917
8923
  return m(), U(qr, { name: "fade" }, {
8918
8924
  default: X(() => [
8919
- p(ct).IsVisible() ? (m(), w("div", {
8925
+ p(dt).IsVisible() ? (m(), w("div", {
8920
8926
  key: 0,
8921
8927
  class: se(p(e))
8922
8928
  }, [
8923
8929
  R(s, {
8924
- title: p(ct).GetTitle(),
8925
- text: p(ct).GetText()
8930
+ title: p(dt).GetTitle(),
8931
+ text: p(dt).GetText()
8926
8932
  }, null, 8, ["title", "text"]),
8927
8933
  f("div", Gg, [
8928
8934
  R(r, {
8929
8935
  type: "primary",
8930
- text: p(ct).GetConfirmButtonText(),
8936
+ text: p(dt).GetConfirmButtonText(),
8931
8937
  margin: "10px 0 0 0",
8932
- onClick: n[0] || (n[0] = (o) => p(ct).Submit())
8938
+ onClick: n[0] || (n[0] = (o) => p(dt).Submit())
8933
8939
  }, null, 8, ["text"]),
8934
8940
  R(r, {
8935
8941
  type: "warning",
8936
- text: p(ct).GetCancelButtonText(),
8942
+ text: p(dt).GetCancelButtonText(),
8937
8943
  margin: "10px 0 0 0",
8938
- onClick: n[1] || (n[1] = (o) => p(ct).Cancel())
8944
+ onClick: n[1] || (n[1] = (o) => p(dt).Cancel())
8939
8945
  }, null, 8, ["text"])
8940
8946
  ])
8941
8947
  ], 2)) : J("", !0)
@@ -9006,16 +9012,16 @@ const Ra = /* @__PURE__ */ A(Zg, [["render", Xg], ["__scopeId", "data-v-0f1f2f84
9006
9012
  if (g !== r.value.curPage && (g < 1 && (g = 1), g > r.value.pagesCount() && (g = r.value.pagesCount()), !i.showConfirm))
9007
9013
  return await c(g);
9008
9014
  }, c = async (g, y) => {
9009
- r.value.setCurPage(g), mt.Get().p.offset = (g - 1) * r.value.limit, await i.store.FTSP(), h();
9015
+ r.value.setCurPage(g), gt.Get().p.offset = (g - 1) * r.value.limit, await i.store.FTSP(), h();
9010
9016
  }, d = ue(() => {
9011
9017
  const g = r.value.pagesCount();
9012
- return g < 8 ? ft.GenerateNumsRange(2, g - 1).filter((y) => y < g && y > 1) : ft.GenerateNumsRange(r.value.curPage - 2, r.value.curPage + 3).filter((y) => y < g && y > 1);
9018
+ return g < 8 ? mt.GenerateNumsRange(2, g - 1).filter((y) => y < g && y > 1) : mt.GenerateNumsRange(r.value.curPage - 2, r.value.curPage + 3).filter((y) => y < g && y > 1);
9013
9019
  }), h = () => {
9014
9020
  const g = document.querySelector(".el-table__body-wrapper"), y = document.querySelector("#list");
9015
9021
  g ? g.scrollTo({ top: 0 }) : y && y.scrollTo({ top: 0 });
9016
9022
  };
9017
9023
  return ss(() => {
9018
- mt.Get().p.drop();
9024
+ gt.Get().p.drop();
9019
9025
  }), (g, y) => {
9020
9026
  const x = B("ArrowLeft"), C = B("PButton"), M = B("DoubleArrowLeft"), D = B("EllipsisSvg"), Y = B("DoubleArrowRight"), W = B("ArrowRight");
9021
9027
  return m(), w("div", Yg, [
@@ -9339,7 +9345,7 @@ const Ra = /* @__PURE__ */ A(Zg, [["render", Xg], ["__scopeId", "data-v-0f1f2f84
9339
9345
  const i = t, n = e, s = T(!1), r = T(window.matchMedia("(max-width: 768px)").matches), o = (l) => {
9340
9346
  n("toggle", l);
9341
9347
  }, u = T(!1);
9342
- return lt(async () => {
9348
+ return ut(async () => {
9343
9349
  window.addEventListener("resize", () => {
9344
9350
  switch (i.mobileWidth) {
9345
9351
  case "1330px":
@@ -9461,7 +9467,7 @@ const Ra = /* @__PURE__ */ A(Zg, [["render", Xg], ["__scopeId", "data-v-0f1f2f84
9461
9467
  emits: ["load"],
9462
9468
  setup(t, { emit: e }) {
9463
9469
  const i = T(!1), n = e, s = T();
9464
- lt(() => {
9470
+ ut(() => {
9465
9471
  i.value = !0, s.value = Pt.GetDefault();
9466
9472
  });
9467
9473
  const r = async (u) => {
@@ -9504,11 +9510,11 @@ const Ra = /* @__PURE__ */ A(Zg, [["render", Xg], ["__scopeId", "data-v-0f1f2f84
9504
9510
  emits: ["load"],
9505
9511
  setup(t, { emit: e }) {
9506
9512
  const i = e, n = T();
9507
- lt(() => {
9513
+ ut(() => {
9508
9514
  n.value = Pt.GetDefault();
9509
9515
  });
9510
9516
  const s = async (o) => {
9511
- o || (n.value = Pt.GetDefault()), mt.Get().setSortModel(n.value), mt.Get().p.drop(), i("load");
9517
+ o || (n.value = Pt.GetDefault()), gt.Get().setSortModel(n.value), gt.Get().p.drop(), i("load");
9512
9518
  }, r = async (o) => {
9513
9519
  await s(o);
9514
9520
  };
@@ -10319,7 +10325,7 @@ const el = /* @__PURE__ */ A(j1, [["render", W1]]), G1 = $({
10319
10325
  };
10320
10326
  return au(() => {
10321
10327
  t.activeId && t.activeId !== t.tabId && (i.value = !0);
10322
- }), lt(() => {
10328
+ }), ut(() => {
10323
10329
  t.activeId && t.activeId !== t.tabId && (i.value = !1);
10324
10330
  }), {
10325
10331
  collapsed: i,
@@ -11000,7 +11006,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11000
11006
  };
11001
11007
  Xt(() => window.addEventListener("resize", u)), Dr(() => window.removeEventListener("resize", u));
11002
11008
  const l = ue(() => `calc(100% - ${o.value}px + 1px)`);
11003
- lt(() => {
11009
+ ut(() => {
11004
11010
  i.menus.Select();
11005
11011
  });
11006
11012
  const c = (d) => {
@@ -11489,7 +11495,7 @@ function Er(t, e, i) {
11489
11495
  return t[n] !== e[n];
11490
11496
  });
11491
11497
  }
11492
- function at(t) {
11498
+ function lt(t) {
11493
11499
  return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
11494
11500
  }
11495
11501
  function Vt(t, e) {
@@ -11501,7 +11507,7 @@ function Me(t) {
11501
11507
  function fi(t, e) {
11502
11508
  var i = { left: 0, top: 0, right: 0, bottom: 0 };
11503
11509
  return ot.forEach(function(n) {
11504
- var s = e[n], r = at(t)[n];
11510
+ var s = e[n], r = lt(t)[n];
11505
11511
  i[n] = s !== void 0 && r !== void 0 ? n === "left" || n === "top" ? Math.max(0, s - r) : Math.max(0, r - s) : 0;
11506
11512
  }), i;
11507
11513
  }
@@ -11583,7 +11589,7 @@ function Tr(t) {
11583
11589
  function zr(t, e) {
11584
11590
  return Math.pow(t.width - e.width, 2) + Math.pow(t.height - e.height, 2);
11585
11591
  }
11586
- function ht(t) {
11592
+ function ft(t) {
11587
11593
  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)) };
11588
11594
  function o(c, d) {
11589
11595
  return d === void 0 && (d = !1), c.reduce(function(h, g) {
@@ -11608,7 +11614,7 @@ function Ep(t) {
11608
11614
  return (Array.isArray(i) ? i : [i]).forEach(function(d) {
11609
11615
  var h = {};
11610
11616
  be((h = typeof d == "function" ? d({ coordinates: c, imageSize: n, visibleArea: u }) : d).width) && be(h.height) || (c = function(g, y) {
11611
- var x = j(j(j({}, g), ht({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
11617
+ var x = j(j(j({}, g), ft({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
11612
11618
  return l(x, { left: g.left, top: g.top });
11613
11619
  }(c, j(j({}, c), h))), be(h.left) && be(h.top) || (c = l(c, j(j({}, c), h)));
11614
11620
  }), c;
@@ -11620,9 +11626,9 @@ function Tp(t) {
11620
11626
  var r = t.stencilSize, o = t.sizeRestrictions, u = t.positionRestrictions;
11621
11627
  t.stencilReference;
11622
11628
  var l, c, d, h = j({}, n), g = j({}, s), y = j({}, r);
11623
- l = oe(y), c = oe(h), d === void 0 && (d = 1e-3), (l === 0 || c === 0 ? Math.abs(c - l) < d : Math.abs(c / l) < 1 + d && Math.abs(c / l) > 1 - d) || (h = j(j({}, h), ht({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(y), maximum: oe(y) } })));
11629
+ l = oe(y), c = oe(h), d === void 0 && (d = 1e-3), (l === 0 || c === 0 ? Math.abs(c - l) < d : Math.abs(c / l) < 1 + d && Math.abs(c / l) > 1 - d) || (h = j(j({}, h), ft({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(y), maximum: oe(y) } })));
11624
11630
  var x = pn(g = Ve(g, h.width * i.width / (g.width * y.width)), e({ visibleArea: g, type: "resize" }));
11625
- return x !== 1 && (g = Ve(g, x), h = Ve(h, x)), g = ke(g = Be(g, Vt(Me(h), Me(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = ke(h, vn(at(g), u)), visibleArea: g };
11631
+ return x !== 1 && (g = Ve(g, x), h = Ve(h, x)), g = ke(g = Be(g, Vt(Me(h), Me(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = ke(h, vn(lt(g), u)), visibleArea: g };
11626
11632
  }
11627
11633
  function zp(t) {
11628
11634
  var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
@@ -11634,7 +11640,7 @@ function zp(t) {
11634
11640
  var c = { width: 0, height: 0 };
11635
11641
  l.width, n.width, oe(n) > oe(u) ? (c.height = 0.8 * n.height, c.width = c.height * oe(u)) : (c.width = 0.8 * n.width, c.height = c.width * oe(u));
11636
11642
  var d = pn(l = Ve(l, u.width * n.width / (l.width * c.width)), i({ visibleArea: l, type: "resize" }));
11637
- l = Ve(l, d), d !== 1 && (c.height /= d, c.width /= d), l = ke(l = Be(l, Vt(Me(u), Me(l))), i({ visibleArea: l, type: "move" })), u = ke(u, vn(at(l), o));
11643
+ l = Ve(l, d), d !== 1 && (c.height /= d, c.width /= d), l = ke(l = Be(l, Vt(Me(u), Me(l))), i({ visibleArea: l, type: "move" })), u = ke(u, vn(lt(l), o));
11638
11644
  }
11639
11645
  return { coordinates: u, visibleArea: l };
11640
11646
  }
@@ -11642,7 +11648,7 @@ function Op(t) {
11642
11648
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = j({}, n), o = j({}, i);
11643
11649
  if (e.type === "setCoordinates") {
11644
11650
  var u = Math.max(0, o.width - r.width), l = Math.max(0, o.height - r.height);
11645
- u > l ? r = Ve(r, Math.min(o.width / r.width, _t(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ve(r, Math.min(o.height / r.height, _t(r, s({ visibleArea: r, type: "resize" }))))), r = ke(r = Be(r, gn(Zt(o, at(r)))), s({ visibleArea: r, type: "move" }));
11651
+ u > l ? r = Ve(r, Math.min(o.width / r.width, _t(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ve(r, Math.min(o.height / r.height, _t(r, s({ visibleArea: r, type: "resize" }))))), r = ke(r = Be(r, gn(Zt(o, lt(r)))), s({ visibleArea: r, type: "move" }));
11646
11652
  }
11647
11653
  return { visibleArea: r, coordinates: o };
11648
11654
  }
@@ -11652,23 +11658,23 @@ function Fp(t) {
11652
11658
  }
11653
11659
  function Dp(t) {
11654
11660
  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, oe(r))), u = 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 };
11655
- return ht(j(j({}, u), { aspectRatio: n, sizeRestrictions: s }));
11661
+ return ft(j(j({}, u), { aspectRatio: n, sizeRestrictions: s }));
11656
11662
  }
11657
11663
  function Lp(t) {
11658
11664
  var e, i, n = t.imageSize, s = t.visibleArea, r = t.boundaries, o = t.aspectRatio, u = t.sizeRestrictions, l = t.stencilSize, c = s || n;
11659
- return oe(c) > oe(r) ? i = (e = l.height * c.height / r.height) * oe(l) : e = (i = l.width * c.width / r.width) / oe(l), ht({ width: i, height: e, aspectRatio: o, sizeRestrictions: u });
11665
+ return oe(c) > oe(r) ? i = (e = l.height * c.height / r.height) * oe(l) : e = (i = l.width * c.width / r.width) / oe(l), ft({ width: i, height: e, aspectRatio: o, sizeRestrictions: u });
11660
11666
  }
11661
11667
  function Bp(t) {
11662
11668
  var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = oe(t.boundaries);
11663
11669
  if (i) {
11664
- var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = wl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, es(e())), u = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, l = fi(i, at(j({ left: 0, top: 0 }, n))), c = {};
11670
+ var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = wl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, es(e())), u = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, l = fi(i, lt(j({ left: 0, top: 0 }, n))), c = {};
11665
11671
  return !l.left && !l.right && u.width <= n.width && (c.left = 0, c.right = n.width), !l.top && !l.bottom && u.height <= n.height && (c.top = 0, c.bottom = n.height), ke(u, c);
11666
11672
  }
11667
11673
  var d = oe(n);
11668
11674
  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 };
11669
11675
  }
11670
11676
  function Ri(t, e) {
11671
- return Sl(t, at(e));
11677
+ return Sl(t, lt(e));
11672
11678
  }
11673
11679
  function Hp(t) {
11674
11680
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.sizeRestrictions, r = t.getAreaRestrictions, o = t.positionRestrictions, u = t.adjustStencil, l = e.scale, c = e.move, d = j({}, n), h = j({}, i), g = 1, y = 1, x = l.factor && Math.abs(l.factor - 1) > 1e-3;
@@ -11676,11 +11682,11 @@ function Hp(t) {
11676
11682
  var C = { 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, _t(h, o)) }, area: { maximum: _t(d, r({ visibleArea: d, type: "resize" })) } };
11677
11683
  l.factor && x && (l.factor < 1 ? (y = Math.max(l.factor, C.stencil.minimum)) > 1 && (y = 1) : l.factor > 1 && (y = Math.min(l.factor, Math.min(C.area.maximum, C.stencil.maximum))) < 1 && (y = 1)), y && (d = Ve(d, y, l.center));
11678
11684
  var M = i.left - n.left, D = n.width + n.left - (i.width + i.left), Y = i.top - n.top, W = n.height + n.top - (i.height + i.top);
11679
- return d = ke(d = Be(d, Zt(d, { left: o.left !== void 0 ? o.left - M * y : void 0, top: o.top !== void 0 ? o.top - Y * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + W * y : void 0, right: o.right !== void 0 ? o.right + D * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + M * y, h.top = d.top + Y * y, h = ke(h, vn(at(d), o)), l.factor && x && u && (l.factor > 1 ? g = Math.min(C.area.maximum, l.factor) / y : l.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), g !== 1 && (d = Be(d = ke(d = Ve(d, g, l.factor > 1 ? l.center : Me(h)), r({ visibleArea: d, type: "move" })), gn(Zt(h, at(d)))))), { coordinates: h, visibleArea: d };
11685
+ return d = ke(d = Be(d, Zt(d, { left: o.left !== void 0 ? o.left - M * y : void 0, top: o.top !== void 0 ? o.top - Y * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + W * y : void 0, right: o.right !== void 0 ? o.right + D * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + M * y, h.top = d.top + Y * y, h = ke(h, vn(lt(d), o)), l.factor && x && u && (l.factor > 1 ? g = Math.min(C.area.maximum, l.factor) / y : l.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), g !== 1 && (d = Be(d = ke(d = Ve(d, g, l.factor > 1 ? l.center : Me(h)), r({ visibleArea: d, type: "move" })), gn(Zt(h, lt(d)))))), { coordinates: h, visibleArea: d };
11680
11686
  }
11681
11687
  function qp(t) {
11682
11688
  var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, u = t.imageSize, l = t.previousImageSize, c = t.angle, d = j({}, n), h = j({}, s), g = Ct(Me(j({ left: 0, top: 0 }, l)), c);
11683
- return (d = j(j({}, ht({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(Me(d), c))).left -= g.left - u.width / 2 + d.width / 2, d.top -= g.top - u.height / 2 + d.height / 2, h = Ve(h, pn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = ke(d, o), visibleArea: h = ke(h = Be(h, Vt(Me(d), Me(n))), i({ visibleArea: h, type: "move" })) };
11689
+ return (d = j(j({}, ft({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(Me(d), c))).left -= g.left - u.width / 2 + d.width / 2, d.top -= g.top - u.height / 2 + d.height / 2, h = Ve(h, pn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = ke(d, o), visibleArea: h = ke(h = Be(h, Vt(Me(d), Me(n))), i({ visibleArea: h, type: "move" })) };
11684
11690
  }
11685
11691
  function Np(t) {
11686
11692
  var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, u = t.imageSize, l = j({}, r), c = j({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
@@ -12130,7 +12136,7 @@ $l.render = function(t, e, i, n, s, r) {
12130
12136
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
12131
12137
  }), _: 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);
12132
12138
  };
12133
- var Jp = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper", components: { BackgroundWrapper: is }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
12139
+ var Jp = ["transitions"], ct = Ke("vue-advanced-cropper"), Al = { name: "Cropper", components: { BackgroundWrapper: is }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
12134
12140
  return $l;
12135
12141
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
12136
12142
  return is;
@@ -12170,12 +12176,12 @@ var Jp = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12170
12176
  var e = t.stretcher, i = t.imageSize, n = oe(i);
12171
12177
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
12172
12178
  } }, fitCoordinates: { type: Function, default: function(t) {
12173
- var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = j(j({}, i), ht({ 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) } }));
12174
- return o = ke(o = Be(o, Vt(Me(i), Me(o))), vn(at(e), r));
12179
+ var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = j(j({}, i), ft({ 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) } }));
12180
+ return o = ke(o = Be(o, Vt(Me(i), Me(o))), vn(lt(e), r));
12175
12181
  } }, fitVisibleArea: { type: Function, default: function(t) {
12176
12182
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = j({}, e);
12177
12183
  r.height = r.width / oe(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = Ve(r, Math.max(s.height / r.height, s.width / r.width)));
12178
- var o = gn(Zt(s, at(r = Ve(r, pn(r, n({ visibleArea: r, type: "resize" }))))));
12184
+ var o = gn(Zt(s, lt(r = Ve(r, pn(r, n({ visibleArea: r, type: "resize" }))))));
12179
12185
  return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = ke(r = Be(r, o), n({ visibleArea: r, type: "move" }));
12180
12186
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
12181
12187
  var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
@@ -12225,7 +12231,7 @@ var Jp = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12225
12231
  }, positionRestrictions: function() {
12226
12232
  return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
12227
12233
  }, classes: function() {
12228
- return { cropper: ut(), image: pe(ut("image"), this.imageClass), stencil: ut("stencil"), boundaries: pe(ut("boundaries"), this.boundariesClass), stretcher: pe(ut("stretcher")), background: pe(ut("background"), this.backgroundClass), foreground: pe(ut("foreground"), this.foregroundClass), imageWrapper: pe(ut("image-wrapper")), cropperWrapper: pe(ut("cropper-wrapper")) };
12234
+ return { cropper: ct(), image: pe(ct("image"), this.imageClass), stencil: ct("stencil"), boundaries: pe(ct("boundaries"), this.boundariesClass), stretcher: pe(ct("stretcher")), background: pe(ct("background"), this.backgroundClass), foreground: pe(ct("foreground"), this.foregroundClass), imageWrapper: pe(ct("image-wrapper")), cropperWrapper: pe(ct("cropper-wrapper")) };
12229
12235
  }, stencilCoordinates: function() {
12230
12236
  if (this.initialized) {
12231
12237
  var t = this.coordinates, e = t.width, i = t.height, n = t.left, s = t.top;
@@ -12345,7 +12351,7 @@ var Jp = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12345
12351
  return c = l, !Number.isNaN(parseFloat(c)) && isFinite(c);
12346
12352
  var c;
12347
12353
  });
12348
- }, r = ht({ 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 } });
12354
+ }, r = ft({ 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 } });
12349
12355
  if (n.maxArea && r.width * r.height > n.maxArea) {
12350
12356
  var o = Math.sqrt(n.maxArea / (r.width * r.height));
12351
12357
  r = { width: Math.round(o * r.width), height: Math.round(o * r.height) };
@@ -12533,7 +12539,7 @@ var Jp = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12533
12539
  }
12534
12540
  return { minimum: e, maximum: i };
12535
12541
  }, getStencilSize: function() {
12536
- 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, On(oe(s = qt(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ht({ 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 = ht({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: oe(s), maximum: oe(s) } })), s;
12542
+ 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, On(oe(s = qt(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ft({ 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 = ft({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: oe(s), maximum: oe(s) } })), s;
12537
12543
  var t, e, i, n, s;
12538
12544
  }, getPublicProperties: function() {
12539
12545
  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 };
@@ -12864,7 +12870,7 @@ const t0 = { class: "background-container" }, i0 = { class: "dialog-footer" }, n
12864
12870
  () => {
12865
12871
  r.fileInfo.fileSystemPath && (u.value = r.fileInfo, u.value.url = r.fileInfo.getFileUrl());
12866
12872
  }
12867
- ), lt(() => {
12873
+ ), ut(() => {
12868
12874
  r.fileInfo.fileSystemPath && (u.value = r.fileInfo, u.value.url = r.fileInfo.getFileUrl());
12869
12875
  });
12870
12876
  let C = null;