sprof 0.0.199 → 0.0.201

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.
@@ -19,6 +19,7 @@ interface IWithDate {
19
19
  export default abstract class Dates {
20
20
  locale: string;
21
21
  static Format(date?: Date, options?: CustomDateTimeFormatOptions): string;
22
+ static FormatWithTime(date?: Date): string;
22
23
  static FromRuStr(value: string): Date;
23
24
  static GetPeriod(start: Date, end: Date, options?: CustomDateTimeFormatOptions): string;
24
25
  static GetShortDayName(date?: Date): string;
package/dist/sprof.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var _l = Object.defineProperty;
2
2
  var Zl = (t, e, i) => e in t ? _l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var a = (t, e, i) => Zl(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { reactive as Ee, ref as T, openBlock as g, createElementBlock as w, createElementVNode as f, getCurrentInstance as Xl, inject as Yl, onUnmounted as Fr, onDeactivated as Jl, onActivated as Ql, onBeforeMount as ot, defineComponent as $, computed as he, mergeProps as Mt, unref as p, withModifiers as Fe, renderSlot as P, createTextVNode as is, toDisplayString as xe, Fragment as G, normalizeClass as ie, normalizeStyle as I, mergeModels as Ae, useModel as mt, withDirectives as Xe, vModelCheckbox as Kl, createVNode as R, createCommentVNode as J, vModelDynamic as eu, resolveComponent as H, isRef as Ve, withKeys as tu, vModelText as Dr, watch as Ye, createBlock as N, vModelRadio as iu, vShow as ns, vModelSelect as nu, useCssVars as Lr, onMounted as Zt, renderList as Te, withCtx as X, resolveDirective as Br, nextTick as su, Transition as Hr, onBeforeUnmount as ss, createStaticVNode as qr, onUpdated as ru, useTemplateRef as ou, resolveDynamicComponent as ai } from "vue";
4
+ import { reactive as Ee, ref as T, openBlock as g, createElementBlock as w, createElementVNode as f, getCurrentInstance as Xl, inject as Yl, onUnmounted as Fr, onDeactivated as Jl, onActivated as Ql, onBeforeMount as at, defineComponent as $, computed as he, mergeProps as Mt, unref as p, withModifiers as Fe, renderSlot as P, createTextVNode as is, toDisplayString as xe, Fragment as G, normalizeClass as ie, normalizeStyle as I, mergeModels as Ae, useModel as mt, withDirectives as Xe, vModelCheckbox as Kl, createVNode as R, createCommentVNode as J, vModelDynamic as eu, resolveComponent as H, isRef as Ve, withKeys as tu, vModelText as Dr, watch as Ye, createBlock as N, vModelRadio as iu, vShow as ns, vModelSelect as nu, useCssVars as Lr, onMounted as Zt, renderList as Te, withCtx as X, resolveDirective as Br, nextTick as su, Transition as Hr, onBeforeUnmount as ss, createStaticVNode as qr, onUpdated as ru, useTemplateRef as ou, resolveDynamicComponent as ai } from "vue";
5
5
  var Re = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Re || {}), Pe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(Pe || {});
6
6
  class It {
7
7
  constructor(e, i, n, s) {
@@ -4329,7 +4329,7 @@ function bd(t) {
4329
4329
  i.length === 0 && Number(s) > 3 && (i = "3", t.preventDefault()), i.length === 1 && Number(s) > 31 && (i = "31", t.preventDefault()), s.length === 5 && Number(s.substring(3, 5)) > 12 && (i = i.substring(0, 3) + "12", t.preventDefault()), i = wd(i, n), t.srcElement.value = i;
4330
4330
  }
4331
4331
  const Sd = ["ВС", "ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ"], Cd = "ru-RU";
4332
- class ct {
4332
+ class nt {
4333
4333
  constructor() {
4334
4334
  a(this, "locale", "ru-RU");
4335
4335
  }
@@ -4339,6 +4339,15 @@ class ct {
4339
4339
  const n = { year: "numeric", month: "2-digit", day: "2-digit", hour: void 0, minute: void 0 };
4340
4340
  return i && (n.year = i.year || i.year === void 0 ? i.year : n.year, n.month = i.month || i.month === void 0 ? i.month : n.month, n.day = i.day || i.day === void 0 ? i.day : n.day, n.hour = i.hour ?? n.hour, n.minute = i.minute ?? n.minute), Intl.DateTimeFormat(Cd, n).format(new Date(e));
4341
4341
  }
4342
+ static FormatWithTime(e) {
4343
+ return nt.Format(e, {
4344
+ month: "2-digit",
4345
+ day: "2-digit",
4346
+ year: "numeric",
4347
+ hour: "numeric",
4348
+ minute: "numeric"
4349
+ });
4350
+ }
4342
4351
  static FromRuStr(e) {
4343
4352
  const i = e.split(".");
4344
4353
  return /* @__PURE__ */ new Date(`${i[2]}-${i[1]}-${i[0]}`);
@@ -4354,11 +4363,11 @@ class ct {
4354
4363
  return this.GetPeriod(n, s, e || { month: "2-digit", day: "numeric", year: void 0 });
4355
4364
  }
4356
4365
  static GetDurationInDay(e, i) {
4357
- const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = ct.SplitHourTime(e), o = ct.SplitHourTime(i);
4366
+ const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = nt.SplitHourTime(e), o = nt.SplitHourTime(i);
4358
4367
  return n.setHours(r[0], r[1], 0, 0), s.setHours(o[0], o[1], 0, 0), (s.getTime() - n.getTime()) / 1e3 / 60;
4359
4368
  }
4360
4369
  static HourTimeinMunutes(e) {
4361
- const i = ct.SplitHourTime(e);
4370
+ const i = nt.SplitHourTime(e);
4362
4371
  return i[0] * 60 + i[1];
4363
4372
  }
4364
4373
  static SplitHourTime(e) {
@@ -4366,7 +4375,7 @@ class ct {
4366
4375
  return [Number(i[0]), Number(i[1])];
4367
4376
  }
4368
4377
  static AddMinutesToHM(e, i) {
4369
- const n = /* @__PURE__ */ new Date(), s = ct.SplitHourTime(e);
4378
+ const n = /* @__PURE__ */ new Date(), s = nt.SplitHourTime(e);
4370
4379
  n.setHours(s[0], s[1], 0, 0);
4371
4380
  const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), u = r.getMinutes();
4372
4381
  return `${o}:${u}`;
@@ -4388,7 +4397,7 @@ class ct {
4388
4397
  const n = [new Date(e)];
4389
4398
  let s = e;
4390
4399
  for (; s <= i; )
4391
- s = ct.AddDays(s, 1), n.push(s);
4400
+ s = nt.AddDays(s, 1), n.push(s);
4392
4401
  return n;
4393
4402
  }
4394
4403
  static AddDays(e, i) {
@@ -4548,8 +4557,8 @@ function Ad() {
4548
4557
  };
4549
4558
  }
4550
4559
  const Pd = (() => {
4551
- const t = (r, o) => ot(async () => {
4552
- At.Set(o == null ? void 0 : o.sortsLib), await r();
4560
+ const t = (r, o) => at(async () => {
4561
+ z.FTSP.Get().reset(), At.Set(o == null ? void 0 : o.sortsLib), await r();
4553
4562
  }), { saveButtonClick: e, showConfirmModal: i } = Ad(), n = (r) => Rd((o, u, l) => {
4554
4563
  i((r || s)(), l);
4555
4564
  }), s = (r) => async () => {
@@ -4796,7 +4805,7 @@ class qd {
4796
4805
  var K;
4797
4806
  let Nd = (K = class {
4798
4807
  }, a(K, "Arrays", ft), a(K, "Axios", si), a(K, "BaseStore", ue), // static Phone = Phone;
4799
- a(K, "Cache", Ki), a(K, "Classes", L), a(K, "CarouselSwipe", dd), a(K, "Color", fd), a(K, "CreateSortModels", So), a(K, "Cursor", md), a(K, "DateMask", bd), a(K, "Dates", ct), a(K, "Dragger", xd), a(K, "Extension", Co), a(K, "Favourite", Md), // static FTSP = FTSP;
4808
+ a(K, "Cache", Ki), a(K, "Classes", L), a(K, "CarouselSwipe", dd), a(K, "Color", fd), a(K, "CreateSortModels", So), a(K, "Cursor", md), a(K, "DateMask", bd), a(K, "Dates", nt), a(K, "Dragger", xd), a(K, "Extension", Co), a(K, "Favourite", Md), // static FTSP = FTSP;
4800
4809
  a(K, "Hooks", Pd), a(K, "HttpClient", de), a(K, "Id", Me), a(K, "MakeCarousel", xo), a(K, "Period", Ln), a(K, "PhoneService", _n), a(K, "Rating", Ed), a(K, "Router", xt), a(K, "RouterGuard", Td), a(K, "Scheduler", zd), a(K, "Scroll", Fd), // static Sizes = Sizes;
4801
4810
  a(K, "Sorter", Dd), a(K, "Static", rs), // static Statuses = Statuses;
4802
4811
  a(K, "Strings", ne), a(K, "Time", ee), a(K, "Timer", ui), a(K, "Token", hi), a(K, "Menus", ms), // static useConfirmLeavePage = useConfirmLeavePage();
@@ -5319,7 +5328,7 @@ class kh extends Wr {
5319
5328
  this.resolve = void 0, this.reject = void 0, super.hide();
5320
5329
  }
5321
5330
  }
5322
- const lt = new kh();
5331
+ const ut = new kh();
5323
5332
  class Ih extends jr {
5324
5333
  Show() {
5325
5334
  super.show();
@@ -5331,7 +5340,7 @@ class Ih extends jr {
5331
5340
  const Rh = new Ih();
5332
5341
  class kt {
5333
5342
  }
5334
- a(kt, "Admin", Mh), a(kt, "Dialog", lt), a(kt, "Loading", Rh), a(kt, "Notify", Ee(Oe)), a(kt, "Btn", It), a(kt, "Input", Nr);
5343
+ a(kt, "Admin", Mh), a(kt, "Dialog", ut), a(kt, "Loading", Rh), a(kt, "Notify", Ee(Oe)), a(kt, "Btn", It), a(kt, "Input", Nr);
5335
5344
  class z {
5336
5345
  }
5337
5346
  a(z, "Auth", Ee(dt)), a(z, "UI", Ee(kt)), a(z, "Paginator", Ee(jd)), /**
@@ -6975,10 +6984,10 @@ const Pn = /* @__PURE__ */ new WeakMap(), wm = (t, e) => {
6975
6984
  }),
6976
6985
  emits: /* @__PURE__ */ Ae(["update:modelValue", "change", "beforeChange"], ["update:modelValue"]),
6977
6986
  setup(t, { emit: e }) {
6978
- const i = e, n = mt(t, "modelValue"), s = ct.Format(n.value), r = T(s), o = (l) => {
6987
+ const i = e, n = mt(t, "modelValue"), s = nt.Format(n.value), r = T(s), o = (l) => {
6979
6988
  if (!u(l))
6980
6989
  return;
6981
- const c = ct.FromRuStr(l);
6990
+ const c = nt.FromRuStr(l);
6982
6991
  n.value = c, i("beforeChange", c), i("change", c);
6983
6992
  }, u = (l) => l.length != 10 ? (r.value = s, Oe.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, Oe.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, Oe.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, Oe.Error("Неверный год"), !1) : !0;
6984
6993
  return (l, c) => {
@@ -7743,7 +7752,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7743
7752
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
7744
7753
  n.value = !n.value;
7745
7754
  };
7746
- return ot(async () => {
7755
+ return at(async () => {
7747
7756
  window.addEventListener("resize", () => {
7748
7757
  switch (e.mobileWidth) {
7749
7758
  case "1330px":
@@ -7830,7 +7839,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7830
7839
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
7831
7840
  n.value = !n.value;
7832
7841
  };
7833
- return ot(async () => {
7842
+ return at(async () => {
7834
7843
  window.addEventListener("resize", () => {
7835
7844
  switch (e.mobileWidth) {
7836
7845
  case "1330px":
@@ -7959,7 +7968,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7959
7968
  ], 2));
7960
7969
  }
7961
7970
  }), Rs = /* @__PURE__ */ A(dg, [["__scopeId", "data-v-a3c4743c"]]);
7962
- var ut = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(ut || {});
7971
+ var ct = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(ct || {});
7963
7972
  const hg = { class: "container" }, fg = { class: "slide-box" }, mg = { class: "link-number" }, gg = ["id", "onClick"], pg = /* @__PURE__ */ $({
7964
7973
  __name: "CarouselImages",
7965
7974
  props: {
@@ -7994,17 +8003,17 @@ const hg = { class: "container" }, fg = { class: "slide-box" }, mg = { class: "l
7994
8003
  Lr((y) => ({
7995
8004
  a8527066: i
7996
8005
  }));
7997
- const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(ut.None), r = T(xo(e.events, e.quantity)), o = he(() => r.value[n.value]);
8006
+ const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(ct.None), r = T(xo(e.events, e.quantity)), o = he(() => r.value[n.value]);
7998
8007
  Zt(() => {
7999
8008
  });
8000
8009
  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) => {
8001
- s.value = y, setTimeout(() => s.value = ut.None, e.animationTime);
8010
+ s.value = y, setTimeout(() => s.value = ct.None, e.animationTime);
8002
8011
  }, d = (y) => {
8003
- y != n.value && (c(y < n.value ? ut.Prev : ut.Next), setTimeout(() => n.value = y, e.animationTime / 2));
8012
+ y != n.value && (c(y < n.value ? ct.Prev : ct.Next), setTimeout(() => n.value = y, e.animationTime / 2));
8004
8013
  }, h = () => {
8005
- c(ut.Next), setTimeout(u, e.animationTime / 2);
8014
+ c(ct.Next), setTimeout(u, e.animationTime / 2);
8006
8015
  }, m = () => {
8007
- c(ut.Prev), setTimeout(l, e.animationTime / 2);
8016
+ c(ct.Prev), setTimeout(l, e.animationTime / 2);
8008
8017
  };
8009
8018
  return (y, x) => (g(), w("div", {
8010
8019
  class: "field",
@@ -8021,8 +8030,8 @@ const hg = { class: "container" }, fg = { class: "slide-box" }, mg = { class: "l
8021
8030
  (g(!0), w(G, null, Te(p(o), (M, S) => (g(), w("div", {
8022
8031
  key: S,
8023
8032
  class: ie({
8024
- animationnext: p(s) === p(ut).Next,
8025
- animationprev: p(s) === p(ut).Prev
8033
+ animationnext: p(s) === p(ct).Next,
8034
+ animationprev: p(s) === p(ct).Prev
8026
8035
  })
8027
8036
  }, x[3] || (x[3] = [
8028
8037
  f("div", { class: "image" }, [
@@ -8320,7 +8329,7 @@ const ha = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8320
8329
  }), pa = /* @__PURE__ */ A($g, [["__scopeId", "data-v-ae66df57"]]), Ag = /* @__PURE__ */ $({
8321
8330
  __name: "FTSPPanel",
8322
8331
  setup(t) {
8323
- return ot(async () => {
8332
+ return at(async () => {
8324
8333
  }), (e, i) => (g(), w("div"));
8325
8334
  }
8326
8335
  }), va = /* @__PURE__ */ A(Ag, [["__scopeId", "data-v-c3fae891"]]), Pg = /* @__PURE__ */ $({
@@ -8804,7 +8813,7 @@ const ha = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8804
8813
  __name: "PDialog",
8805
8814
  setup(t) {
8806
8815
  const e = he(() => {
8807
- switch (lt.GetType()) {
8816
+ switch (ut.GetType()) {
8808
8817
  case "info":
8809
8818
  return "message primary";
8810
8819
  case "success":
@@ -8821,26 +8830,26 @@ const ha = /* @__PURE__ */ A(wg, [["render", Sg], ["__scopeId", "data-v-d28c6f33
8821
8830
  const s = H("MessageBody"), r = H("PButton");
8822
8831
  return g(), N(Hr, { name: "fade" }, {
8823
8832
  default: X(() => [
8824
- p(lt).IsVisible() ? (g(), w("div", {
8833
+ p(ut).IsVisible() ? (g(), w("div", {
8825
8834
  key: 0,
8826
8835
  class: ie(p(e))
8827
8836
  }, [
8828
8837
  R(s, {
8829
- title: p(lt).GetTitle(),
8830
- text: p(lt).GetText()
8838
+ title: p(ut).GetTitle(),
8839
+ text: p(ut).GetText()
8831
8840
  }, null, 8, ["title", "text"]),
8832
8841
  f("div", Vg, [
8833
8842
  R(r, {
8834
8843
  type: "primary",
8835
- text: p(lt).GetConfirmButtonText(),
8844
+ text: p(ut).GetConfirmButtonText(),
8836
8845
  margin: "10px 0 0 0",
8837
- onClick: n[0] || (n[0] = (o) => p(lt).Submit())
8846
+ onClick: n[0] || (n[0] = (o) => p(ut).Submit())
8838
8847
  }, null, 8, ["text"]),
8839
8848
  R(r, {
8840
8849
  type: "warning",
8841
- text: p(lt).GetCancelButtonText(),
8850
+ text: p(ut).GetCancelButtonText(),
8842
8851
  margin: "10px 0 0 0",
8843
- onClick: n[1] || (n[1] = (o) => p(lt).Cancel())
8852
+ onClick: n[1] || (n[1] = (o) => p(ut).Cancel())
8844
8853
  }, null, 8, ["text"])
8845
8854
  ])
8846
8855
  ], 2)) : J("", !0)
@@ -9244,7 +9253,7 @@ const Ma = /* @__PURE__ */ A(Xg, [["render", Yg], ["__scopeId", "data-v-0f1f2f84
9244
9253
  const i = t, n = e, s = T(!1), r = T(window.matchMedia("(max-width: 768px)").matches), o = (l) => {
9245
9254
  n("toggle", l);
9246
9255
  }, u = T(!1);
9247
- return ot(async () => {
9256
+ return at(async () => {
9248
9257
  window.addEventListener("resize", () => {
9249
9258
  switch (i.mobileWidth) {
9250
9259
  case "1330px":
@@ -9366,7 +9375,7 @@ const Ma = /* @__PURE__ */ A(Xg, [["render", Yg], ["__scopeId", "data-v-0f1f2f84
9366
9375
  emits: ["load"],
9367
9376
  setup(t, { emit: e }) {
9368
9377
  const i = T(!1), n = e, s = T();
9369
- ot(() => {
9378
+ at(() => {
9370
9379
  i.value = !0, s.value = At.GetDefault();
9371
9380
  });
9372
9381
  const r = async (u) => {
@@ -9409,7 +9418,7 @@ const Ma = /* @__PURE__ */ A(Xg, [["render", Yg], ["__scopeId", "data-v-0f1f2f84
9409
9418
  emits: ["load"],
9410
9419
  setup(t, { emit: e }) {
9411
9420
  const i = e, n = T();
9412
- ot(() => {
9421
+ at(() => {
9413
9422
  n.value = At.GetDefault();
9414
9423
  });
9415
9424
  const s = async (o) => {
@@ -10265,7 +10274,7 @@ const Qa = /* @__PURE__ */ A(G1, [["render", V1]]), _1 = $({
10265
10274
  };
10266
10275
  return ru(() => {
10267
10276
  t.activeId && t.activeId !== t.tabId && (i.value = !0);
10268
- }), ot(() => {
10277
+ }), at(() => {
10269
10278
  t.activeId && t.activeId !== t.tabId && (i.value = !1);
10270
10279
  }), {
10271
10280
  collapsed: i,
@@ -10952,7 +10961,7 @@ const fv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10952
10961
  };
10953
10962
  Zt(() => window.addEventListener("resize", u)), Fr(() => window.removeEventListener("resize", u));
10954
10963
  const l = he(() => `calc(100% - ${o.value}px + 1px)`);
10955
- ot(() => {
10964
+ at(() => {
10956
10965
  i.menus.Select();
10957
10966
  });
10958
10967
  const c = (d) => {
@@ -11435,13 +11444,13 @@ pl.render = function(t, e, i, n, s, r) {
11435
11444
  return [P(t.$slots, "default")];
11436
11445
  }), _: 3 }, 8, ["class"]);
11437
11446
  };
11438
- var st = ["left", "right", "top", "bottom"], $p = ["left", "right"], Ap = ["top", "bottom"], Pp = ["left", "top"], Ep = ["fill-area", "fit-area", "stencil", "none"], Ar = { left: 0, top: 0, width: 0, height: 0 };
11447
+ var rt = ["left", "right", "top", "bottom"], $p = ["left", "right"], Ap = ["top", "bottom"], Pp = ["left", "top"], Ep = ["fill-area", "fit-area", "stencil", "none"], Ar = { left: 0, top: 0, width: 0, height: 0 };
11439
11448
  function Pr(t, e, i) {
11440
11449
  return !(i = i || ["width", "height", "left", "top"]).some(function(n) {
11441
11450
  return t[n] !== e[n];
11442
11451
  });
11443
11452
  }
11444
- function rt(t) {
11453
+ function ot(t) {
11445
11454
  return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
11446
11455
  }
11447
11456
  function Gt(t, e) {
@@ -11452,12 +11461,12 @@ function Se(t) {
11452
11461
  }
11453
11462
  function fi(t, e) {
11454
11463
  var i = { left: 0, top: 0, right: 0, bottom: 0 };
11455
- return st.forEach(function(n) {
11456
- var s = e[n], r = rt(t)[n];
11464
+ return rt.forEach(function(n) {
11465
+ var s = e[n], r = ot(t)[n];
11457
11466
  i[n] = s !== void 0 && r !== void 0 ? n === "left" || n === "top" ? Math.max(0, s - r) : Math.max(0, r - s) : 0;
11458
11467
  }), i;
11459
11468
  }
11460
- function nt(t, e) {
11469
+ function st(t, e) {
11461
11470
  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 };
11462
11471
  }
11463
11472
  function mn(t) {
@@ -11520,7 +11529,7 @@ function Tp(t, e) {
11520
11529
  function wl(t, e, i) {
11521
11530
  i === void 0 && (i = !0);
11522
11531
  var n = {};
11523
- return st.forEach(function(s) {
11532
+ return rt.forEach(function(s) {
11524
11533
  var r = t[s], o = e[s];
11525
11534
  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);
11526
11535
  }), n;
@@ -11574,7 +11583,7 @@ function Op(t) {
11574
11583
  var l, c, d, h = U({}, n), m = U({}, s), y = U({}, r);
11575
11584
  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 = U(U({}, h), ht({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(y), maximum: oe(y) } })));
11576
11585
  var x = gn(m = Ge(m, h.width * i.width / (m.width * y.width)), e({ visibleArea: m, type: "resize" }));
11577
- return x !== 1 && (m = Ge(m, x), h = Ge(h, x)), m = Ce(m = Le(m, Gt(Se(h), Se(m))), e({ visibleArea: m, type: "move" })), { coordinates: h = Ce(h, pn(rt(m), u)), visibleArea: m };
11586
+ return x !== 1 && (m = Ge(m, x), h = Ge(h, x)), m = Ce(m = Le(m, Gt(Se(h), Se(m))), e({ visibleArea: m, type: "move" })), { coordinates: h = Ce(h, pn(ot(m), u)), visibleArea: m };
11578
11587
  }
11579
11588
  function Fp(t) {
11580
11589
  var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
@@ -11586,7 +11595,7 @@ function Fp(t) {
11586
11595
  var c = { width: 0, height: 0 };
11587
11596
  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));
11588
11597
  var d = gn(l = Ge(l, u.width * n.width / (l.width * c.width)), i({ visibleArea: l, type: "resize" }));
11589
- l = Ge(l, d), d !== 1 && (c.height /= d, c.width /= d), l = Ce(l = Le(l, Gt(Se(u), Se(l))), i({ visibleArea: l, type: "move" })), u = Ce(u, pn(rt(l), o));
11598
+ l = Ge(l, d), d !== 1 && (c.height /= d, c.width /= d), l = Ce(l = Le(l, Gt(Se(u), Se(l))), i({ visibleArea: l, type: "move" })), u = Ce(u, pn(ot(l), o));
11590
11599
  }
11591
11600
  return { coordinates: u, visibleArea: l };
11592
11601
  }
@@ -11594,7 +11603,7 @@ function Dp(t) {
11594
11603
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = U({}, n), o = U({}, i);
11595
11604
  if (e.type === "setCoordinates") {
11596
11605
  var u = Math.max(0, o.width - r.width), l = Math.max(0, o.height - r.height);
11597
- u > l ? r = Ge(r, Math.min(o.width / r.width, Vt(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ge(r, Math.min(o.height / r.height, Vt(r, s({ visibleArea: r, type: "resize" }))))), r = Ce(r = Le(r, mn(_t(o, rt(r)))), s({ visibleArea: r, type: "move" }));
11606
+ u > l ? r = Ge(r, Math.min(o.width / r.width, Vt(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ge(r, Math.min(o.height / r.height, Vt(r, s({ visibleArea: r, type: "resize" }))))), r = Ce(r = Le(r, mn(_t(o, ot(r)))), s({ visibleArea: r, type: "move" }));
11598
11607
  }
11599
11608
  return { visibleArea: r, coordinates: o };
11600
11609
  }
@@ -11613,14 +11622,14 @@ function Hp(t) {
11613
11622
  function qp(t) {
11614
11623
  var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = oe(t.boundaries);
11615
11624
  if (i) {
11616
- var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = vl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, Kn(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, rt(U({ left: 0, top: 0 }, n))), c = {};
11625
+ var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = vl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, Kn(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, ot(U({ left: 0, top: 0 }, n))), c = {};
11617
11626
  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), Ce(u, c);
11618
11627
  }
11619
11628
  var d = oe(n);
11620
11629
  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 };
11621
11630
  }
11622
11631
  function Ri(t, e) {
11623
- return wl(t, rt(e));
11632
+ return wl(t, ot(e));
11624
11633
  }
11625
11634
  function Np(t) {
11626
11635
  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 = U({}, n), h = U({}, i), m = 1, y = 1, x = l.factor && Math.abs(l.factor - 1) > 1e-3;
@@ -11628,7 +11637,7 @@ function Np(t) {
11628
11637
  var M = { 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, Vt(h, o)) }, area: { maximum: Vt(d, r({ visibleArea: d, type: "resize" })) } };
11629
11638
  l.factor && x && (l.factor < 1 ? (y = Math.max(l.factor, M.stencil.minimum)) > 1 && (y = 1) : l.factor > 1 && (y = Math.min(l.factor, Math.min(M.area.maximum, M.stencil.maximum))) < 1 && (y = 1)), y && (d = Ge(d, y, l.center));
11630
11639
  var S = i.left - n.left, F = n.width + n.left - (i.width + i.left), _ = i.top - n.top, Y = n.height + n.top - (i.height + i.top);
11631
- return d = Ce(d = Le(d, _t(d, { left: o.left !== void 0 ? o.left - S * y : void 0, top: o.top !== void 0 ? o.top - _ * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + Y * y : void 0, right: o.right !== void 0 ? o.right + F * 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 + _ * y, h = Ce(h, pn(rt(d), o)), l.factor && x && u && (l.factor > 1 ? m = Math.min(M.area.maximum, l.factor) / y : l.factor < 1 && (m = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), m !== 1 && (d = Le(d = Ce(d = Ge(d, m, l.factor > 1 ? l.center : Se(h)), r({ visibleArea: d, type: "move" })), mn(_t(h, rt(d)))))), { coordinates: h, visibleArea: d };
11640
+ return d = Ce(d = Le(d, _t(d, { left: o.left !== void 0 ? o.left - S * y : void 0, top: o.top !== void 0 ? o.top - _ * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + Y * y : void 0, right: o.right !== void 0 ? o.right + F * 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 + _ * y, h = Ce(h, pn(ot(d), o)), l.factor && x && u && (l.factor > 1 ? m = Math.min(M.area.maximum, l.factor) / y : l.factor < 1 && (m = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), m !== 1 && (d = Le(d = Ce(d = Ge(d, m, l.factor > 1 ? l.center : Se(h)), r({ visibleArea: d, type: "move" })), mn(_t(h, ot(d)))))), { coordinates: h, visibleArea: d };
11632
11641
  }
11633
11642
  function Up(t) {
11634
11643
  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 = U({}, n), h = U({}, s), m = wt(Se(U({ left: 0, top: 0 }, l)), c);
@@ -11643,27 +11652,27 @@ function jp(t) {
11643
11652
  return { coordinates: l, visibleArea: c };
11644
11653
  }
11645
11654
  function zr(t) {
11646
- var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, u = t.compensate, l = U({}, e), c = nt(i, l).width, d = nt(i, l).height;
11655
+ var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, u = t.compensate, l = U({}, e), c = st(i, l).width, d = st(i, l).height;
11647
11656
  c < 0 && (l.left < 0 && l.right < 0 ? (l.left = -(i.width - r.minWidth) / (l.left / l.right), l.right = -(i.width - r.minWidth) / (l.right / l.left)) : l.left < 0 ? l.left = -(i.width - r.minWidth) : l.right < 0 && (l.right = -(i.width - r.minWidth))), d < 0 && (l.top < 0 && l.bottom < 0 ? (l.top = -(i.height - r.minHeight) / (l.top / l.bottom), l.bottom = -(i.height - r.minHeight) / (l.bottom / l.top)) : l.top < 0 ? l.top = -(i.height - r.minHeight) : l.bottom < 0 && (l.bottom = -(i.height - r.minHeight)));
11648
- var h = fi(nt(i, l), s);
11649
- u && (h.left && h.left > 0 && h.right === 0 ? (l.right += h.left, l.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (l.left += h.right, l.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (l.bottom += h.top, l.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (l.top += h.bottom, l.bottom -= h.bottom), h = fi(nt(i, l), s));
11657
+ var h = fi(st(i, l), s);
11658
+ u && (h.left && h.left > 0 && h.right === 0 ? (l.right += h.left, l.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (l.left += h.right, l.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (l.bottom += h.top, l.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (l.top += h.bottom, l.bottom -= h.bottom), h = fi(st(i, l), s));
11650
11659
  var m = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
11651
- if (st.forEach(function(M) {
11660
+ if (rt.forEach(function(M) {
11652
11661
  var S = h[M];
11653
11662
  S && l[M] && (m[M] = Math.max(0, 1 - S / l[M]));
11654
11663
  }), o) {
11655
- var y = Math.min.apply(null, st.map(function(M) {
11664
+ var y = Math.min.apply(null, rt.map(function(M) {
11656
11665
  return m[M];
11657
11666
  }));
11658
- y !== 1 / 0 && st.forEach(function(M) {
11667
+ y !== 1 / 0 && rt.forEach(function(M) {
11659
11668
  l[M] *= y;
11660
11669
  });
11661
- } else st.forEach(function(M) {
11670
+ } else rt.forEach(function(M) {
11662
11671
  m[M] !== 1 / 0 && (l[M] *= m[M]);
11663
11672
  });
11664
- if (c = nt(i, l).width, d = nt(i, l).height, l.right + l.left && (c > r.maxWidth ? m.width = (r.maxWidth - i.width) / (l.right + l.left) : c < r.minWidth && (m.width = (r.minWidth - i.width) / (l.right + l.left))), l.bottom + l.top && (d > r.maxHeight ? m.height = (r.maxHeight - i.height) / (l.bottom + l.top) : d < r.minHeight && (m.height = (r.minHeight - i.height) / (l.bottom + l.top))), o) {
11673
+ if (c = st(i, l).width, d = st(i, l).height, l.right + l.left && (c > r.maxWidth ? m.width = (r.maxWidth - i.width) / (l.right + l.left) : c < r.minWidth && (m.width = (r.minWidth - i.width) / (l.right + l.left))), l.bottom + l.top && (d > r.maxHeight ? m.height = (r.maxHeight - i.height) / (l.bottom + l.top) : d < r.minHeight && (m.height = (r.minHeight - i.height) / (l.bottom + l.top))), o) {
11665
11674
  var x = Math.min(m.width, m.height);
11666
- x !== 1 / 0 && st.forEach(function(M) {
11675
+ x !== 1 / 0 && rt.forEach(function(M) {
11667
11676
  l[M] *= x;
11668
11677
  });
11669
11678
  } else m.width !== 1 / 0 && $p.forEach(function(M) {
@@ -12082,7 +12091,7 @@ Il.render = function(t, e, i, n, s, r) {
12082
12091
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
12083
12092
  }), _: 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);
12084
12093
  };
12085
- var Kp = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper", components: { BackgroundWrapper: ts }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
12094
+ var Kp = ["transitions"], lt = Qe("vue-advanced-cropper"), Rl = { name: "Cropper", components: { BackgroundWrapper: ts }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
12086
12095
  return Il;
12087
12096
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
12088
12097
  return ts;
@@ -12094,10 +12103,10 @@ var Kp = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12094
12103
  return !(typeof t == "string" && t !== "fill" && t !== "fit");
12095
12104
  } }, 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) {
12096
12105
  var e = t.event, i = t.coordinates, n = t.aspectRatio, s = t.positionRestrictions, r = t.sizeRestrictions, o = U(U({}, i), { right: i.left + i.width, bottom: i.top + i.height }), u = e.params || {}, l = U({}, e.directions), c = u.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
12097
- r.widthFrozen && (l.left = 0, l.right = 0), r.heightFrozen && (l.top = 0, l.bottom = 0), st.forEach(function(j) {
12106
+ r.widthFrozen && (l.left = 0, l.right = 0), r.heightFrozen && (l.top = 0, l.bottom = 0), rt.forEach(function(j) {
12098
12107
  c[j] || (l[j] = 0);
12099
12108
  });
12100
- var d = nt(o, l = zr({ coordinates: o, directions: l, sizeRestrictions: r, positionRestrictions: s })).width, h = nt(o, l).height, m = u.preserveRatio ? oe(o) : zn(d / h, n);
12109
+ var d = st(o, l = zr({ coordinates: o, directions: l, sizeRestrictions: r, positionRestrictions: s })).width, h = st(o, l).height, m = u.preserveRatio ? oe(o) : zn(d / h, n);
12101
12110
  if (m) {
12102
12111
  var y = u.respectDirection;
12103
12112
  if (y || (y = o.width >= o.height || m === 1 ? "width" : "height"), y === "width") {
@@ -12115,7 +12124,7 @@ var Kp = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12115
12124
  }
12116
12125
  l = zr({ directions: l, coordinates: o, sizeRestrictions: r, positionRestrictions: s, preserveRatio: !0, compensate: u.compensate });
12117
12126
  }
12118
- return d = nt(o, l).width, h = nt(o, l).height, (m = u.preserveRatio ? oe(o) : zn(d / h, n)) && Math.abs(m - d / h) > 1e-3 && st.forEach(function(j) {
12127
+ return d = st(o, l).width, h = st(o, l).height, (m = u.preserveRatio ? oe(o) : zn(d / h, n)) && Math.abs(m - d / h) > 1e-3 && rt.forEach(function(j) {
12119
12128
  c[j] || (l[j] = 0);
12120
12129
  }), es({ event: new Ts({ left: -l.left, top: -l.top }), coordinates: { width: i.width + l.right + l.left, height: i.height + l.top + l.bottom, left: i.left, top: i.top }, positionRestrictions: s });
12121
12130
  } }, moveAlgorithm: { type: Function, default: es }, initStretcher: { type: Function, default: function(t) {
@@ -12123,11 +12132,11 @@ var Kp = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12123
12132
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
12124
12133
  } }, fitCoordinates: { type: Function, default: function(t) {
12125
12134
  var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = U(U({}, 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) } }));
12126
- return o = Ce(o = Le(o, Gt(Se(i), Se(o))), pn(rt(e), r));
12135
+ return o = Ce(o = Le(o, Gt(Se(i), Se(o))), pn(ot(e), r));
12127
12136
  } }, fitVisibleArea: { type: Function, default: function(t) {
12128
12137
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = U({}, e);
12129
12138
  r.height = r.width / oe(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = Ge(r, Math.max(s.height / r.height, s.width / r.width)));
12130
- var o = mn(_t(s, rt(r = Ge(r, gn(r, n({ visibleArea: r, type: "resize" }))))));
12139
+ var o = mn(_t(s, ot(r = Ge(r, gn(r, n({ visibleArea: r, type: "resize" }))))));
12131
12140
  return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = Ce(r = Le(r, o), n({ visibleArea: r, type: "move" }));
12132
12141
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
12133
12142
  var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
@@ -12177,7 +12186,7 @@ var Kp = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12177
12186
  }, positionRestrictions: function() {
12178
12187
  return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
12179
12188
  }, classes: function() {
12180
- return { cropper: at(), image: pe(at("image"), this.imageClass), stencil: at("stencil"), boundaries: pe(at("boundaries"), this.boundariesClass), stretcher: pe(at("stretcher")), background: pe(at("background"), this.backgroundClass), foreground: pe(at("foreground"), this.foregroundClass), imageWrapper: pe(at("image-wrapper")), cropperWrapper: pe(at("cropper-wrapper")) };
12189
+ return { cropper: lt(), image: pe(lt("image"), this.imageClass), stencil: lt("stencil"), boundaries: pe(lt("boundaries"), this.boundariesClass), stretcher: pe(lt("stretcher")), background: pe(lt("background"), this.backgroundClass), foreground: pe(lt("foreground"), this.foregroundClass), imageWrapper: pe(lt("image-wrapper")), cropperWrapper: pe(lt("cropper-wrapper")) };
12181
12190
  }, stencilCoordinates: function() {
12182
12191
  if (this.initialized) {
12183
12192
  var t = this.coordinates, e = t.width, i = t.height, n = t.left, s = t.top;
@@ -12273,7 +12282,7 @@ var Kp = ["transitions"], at = Qe("vue-advanced-cropper"), Rl = { name: "Cropper
12273
12282
  if (i.type === "manipulateImage") return U(U({}, 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 } });
12274
12283
  if (i.type === "resize") {
12275
12284
  var r = U(U({}, i), { directions: U({}, i.directions) });
12276
- return st.forEach(function(u) {
12285
+ return rt.forEach(function(u) {
12277
12286
  r.directions[u] *= s;
12278
12287
  }), r;
12279
12288
  }
@@ -12804,7 +12813,7 @@ const n0 = { class: "background-container" }, s0 = { class: "dialog-footer" }, r
12804
12813
  }, h = (S) => {
12805
12814
  i.fileInfo.setFile(S), i.fileInfo.fileSystemPath && (s.value = i.fileInfo), o.value = !1, n("crop");
12806
12815
  };
12807
- ot(() => {
12816
+ at(() => {
12808
12817
  i.fileInfo.fileSystemPath && (s.value = i.fileInfo, s.value.url = i.fileInfo.getFileUrl());
12809
12818
  });
12810
12819
  let m = null;