sprof 0.0.68 → 0.0.69
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/core/helpers/index.d.ts +5 -4
- package/dist/sprof.js +142 -141
- package/dist/sprof.umd.cjs +7 -7
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as FTSP } from '../classes/filters/FTSP';
|
|
2
|
+
import { default as Phone } from '../classes/Phone';
|
|
2
3
|
import { Sizes } from '../types/Sizes';
|
|
3
4
|
import { Statuses } from '../types/Statuses';
|
|
4
5
|
import { default as Arrays } from './Arrays';
|
|
5
6
|
import { default as Axios } from './Axios';
|
|
7
|
+
import { default as BaseStore } from './BaseStore';
|
|
6
8
|
import { default as Cache } from './Cache';
|
|
7
9
|
import { default as CarouselSwipe } from './CarouselSwipe';
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as Phone } from '../classes/Phone';
|
|
10
|
-
import { default as BaseStore } from './BaseStore';
|
|
10
|
+
import { default as Classes } from './Classes';
|
|
11
11
|
import { default as Color } from './Color';
|
|
12
12
|
import { default as CreateSortModels } from './CreateSortModels';
|
|
13
13
|
import { default as Cursor } from './Cursor';
|
|
@@ -16,6 +16,7 @@ import { default as Dates } from './Dates';
|
|
|
16
16
|
import { default as Dragger } from './Dragger';
|
|
17
17
|
import { default as Extension } from './Extension';
|
|
18
18
|
import { default as HttpClient } from './HttpClient';
|
|
19
|
+
import { default as Id } from './Id';
|
|
19
20
|
import { default as MakeCarousel } from './MakeCarousel';
|
|
20
21
|
import { default as Period } from './Period';
|
|
21
22
|
import { default as PhoneService } from './PhoneService';
|
|
@@ -31,13 +32,13 @@ import { default as Time } from './Time';
|
|
|
31
32
|
import { default as Timer } from './Timer';
|
|
32
33
|
import { default as validate } from './validate';
|
|
33
34
|
import { default as WebSocketClient } from './WebSocketClient';
|
|
34
|
-
export { default as Classes } from './Classes';
|
|
35
35
|
export default abstract class H {
|
|
36
36
|
Arrays: typeof Arrays;
|
|
37
37
|
Axios: typeof Axios;
|
|
38
38
|
BaseStore: typeof BaseStore;
|
|
39
39
|
Phone: typeof Phone;
|
|
40
40
|
Cache: typeof Cache;
|
|
41
|
+
Classes: typeof Classes;
|
|
41
42
|
CarouselSwipe: typeof CarouselSwipe;
|
|
42
43
|
Color: typeof Color;
|
|
43
44
|
CreateSortModels: typeof CreateSortModels;
|
package/dist/sprof.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _o = Object.defineProperty;
|
|
2
2
|
var Zo = (t, e, i) => e in t ? _o(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
3
|
var u = (t, e, i) => Zo(t, typeof e != "symbol" ? e + "" : e, i);
|
|
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 Jo, vModelDynamic as Xo, isRef as Ge, withKeys as Yo, watch as Ke, createBlock as q, vModelRadio as Qo, normalizeClass as se, vShow as zn, vModelSelect as Ko, useCssVars as Ys, onMounted as Kt, renderList as Ie, resolveDirective as Qs, createStaticVNode as Ks, resolveDynamicComponent as _t, nextTick as ea, onUpdated as ta, onBeforeUnmount as On, onUnmounted as er, Transition as tr, getCurrentInstance as ia, inject as na, onDeactivated as sa, onActivated as ra
|
|
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 Jo, vModelDynamic as Xo, isRef as Ge, withKeys as Yo, watch as Ke, createBlock as q, vModelRadio as Qo, normalizeClass as se, vShow as zn, vModelSelect as Ko, useCssVars as Ys, onMounted as Kt, renderList as Ie, resolveDirective as Qs, createStaticVNode as Ks, resolveDynamicComponent as _t, nextTick as ea, onUpdated as ta, onBeforeUnmount as On, onUnmounted as er, Transition as tr, reactive as at, getCurrentInstance as ia, inject as na, onDeactivated as sa, onActivated as ra } from "vue";
|
|
5
5
|
const oa = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "mainblock"
|
|
@@ -8394,6 +8394,19 @@ Li([
|
|
|
8394
8394
|
Z.GetClassConstructor(Oi)
|
|
8395
8395
|
], ei.prototype, "t");
|
|
8396
8396
|
let Hr = ei;
|
|
8397
|
+
class wt {
|
|
8398
|
+
constructor(e) {
|
|
8399
|
+
u(this, "id");
|
|
8400
|
+
u(this, "number");
|
|
8401
|
+
u(this, "description");
|
|
8402
|
+
u(this, "contactId");
|
|
8403
|
+
Z.BuildClass(this, e);
|
|
8404
|
+
}
|
|
8405
|
+
static Create() {
|
|
8406
|
+
const e = new wt();
|
|
8407
|
+
return e.id = je.UUID(), e;
|
|
8408
|
+
}
|
|
8409
|
+
}
|
|
8397
8410
|
function Br(t, e) {
|
|
8398
8411
|
return function() {
|
|
8399
8412
|
return t.apply(e, arguments);
|
|
@@ -9336,7 +9349,7 @@ function io(t, e) {
|
|
|
9336
9349
|
return t && !Nm(e) ? Um(t, e) : e;
|
|
9337
9350
|
}
|
|
9338
9351
|
const Ns = (t) => t instanceof Pe ? { ...t } : t;
|
|
9339
|
-
function
|
|
9352
|
+
function bt(t, e) {
|
|
9340
9353
|
e = e || {};
|
|
9341
9354
|
const i = {};
|
|
9342
9355
|
function n(c, d, h) {
|
|
@@ -9401,7 +9414,7 @@ function wt(t, e) {
|
|
|
9401
9414
|
}), i;
|
|
9402
9415
|
}
|
|
9403
9416
|
const no = (t) => {
|
|
9404
|
-
const e =
|
|
9417
|
+
const e = bt({}, t);
|
|
9405
9418
|
let { data: i, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: r, headers: o, auth: l } = e;
|
|
9406
9419
|
e.headers = o = Pe.from(o), e.url = Yr(io(e.baseURL, e.url), t.params, t.paramsSerializer), l && o.set(
|
|
9407
9420
|
"Authorization",
|
|
@@ -9832,7 +9845,7 @@ class gt {
|
|
|
9832
9845
|
}
|
|
9833
9846
|
}
|
|
9834
9847
|
_request(e, i) {
|
|
9835
|
-
typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i =
|
|
9848
|
+
typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = bt(this.defaults, i);
|
|
9836
9849
|
const { transitional: n, paramsSerializer: s, headers: r } = i;
|
|
9837
9850
|
n !== void 0 && In.assertOptions(n, {
|
|
9838
9851
|
silentJSONParsing: ct.transitional(ct.boolean),
|
|
@@ -9891,14 +9904,14 @@ class gt {
|
|
|
9891
9904
|
return d;
|
|
9892
9905
|
}
|
|
9893
9906
|
getUri(e) {
|
|
9894
|
-
e =
|
|
9907
|
+
e = bt(this.defaults, e);
|
|
9895
9908
|
const i = io(e.baseURL, e.url);
|
|
9896
9909
|
return Yr(i, e.params, e.paramsSerializer);
|
|
9897
9910
|
}
|
|
9898
9911
|
}
|
|
9899
9912
|
x.forEach(["delete", "get", "head", "options"], function(e) {
|
|
9900
9913
|
gt.prototype[e] = function(i, n) {
|
|
9901
|
-
return this.request(
|
|
9914
|
+
return this.request(bt(n || {}, {
|
|
9902
9915
|
method: e,
|
|
9903
9916
|
url: i,
|
|
9904
9917
|
data: (n || {}).data
|
|
@@ -9908,7 +9921,7 @@ x.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
9908
9921
|
x.forEach(["post", "put", "patch"], function(e) {
|
|
9909
9922
|
function i(n) {
|
|
9910
9923
|
return function(r, o, l) {
|
|
9911
|
-
return this.request(
|
|
9924
|
+
return this.request(bt(l || {}, {
|
|
9912
9925
|
method: e,
|
|
9913
9926
|
headers: n ? {
|
|
9914
9927
|
"Content-Type": "multipart/form-data"
|
|
@@ -10072,7 +10085,7 @@ Object.entries(Rn).forEach(([t, e]) => {
|
|
|
10072
10085
|
function lo(t) {
|
|
10073
10086
|
const e = new gt(t), i = Br(gt.prototype.request, e);
|
|
10074
10087
|
return x.extend(i, gt.prototype, e, { allOwnKeys: !0 }), x.extend(i, e, null, { allOwnKeys: !0 }), i.create = function(s) {
|
|
10075
|
-
return lo(
|
|
10088
|
+
return lo(bt(t, s));
|
|
10076
10089
|
}, i;
|
|
10077
10090
|
}
|
|
10078
10091
|
const ce = lo(ii);
|
|
@@ -10089,7 +10102,7 @@ ce.all = function(e) {
|
|
|
10089
10102
|
};
|
|
10090
10103
|
ce.spread = ip;
|
|
10091
10104
|
ce.isAxiosError = np;
|
|
10092
|
-
ce.mergeConfig =
|
|
10105
|
+
ce.mergeConfig = bt;
|
|
10093
10106
|
ce.AxiosHeaders = Pe;
|
|
10094
10107
|
ce.formToJSON = (t) => Kr(x.isHTMLForm(t) ? new FormData(t) : t);
|
|
10095
10108
|
ce.getAdapter = oo.getAdapter;
|
|
@@ -10231,110 +10244,6 @@ class Ui {
|
|
|
10231
10244
|
return s = Ui.Get(e, n), s || (s = await i()), s;
|
|
10232
10245
|
}
|
|
10233
10246
|
}
|
|
10234
|
-
function sp(t, e) {
|
|
10235
|
-
t == "left" && e.next(), t == "right" && e.prev();
|
|
10236
|
-
}
|
|
10237
|
-
/*!
|
|
10238
|
-
* vue-router v4.4.5
|
|
10239
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
10240
|
-
* @license MIT
|
|
10241
|
-
*/
|
|
10242
|
-
function _s(t) {
|
|
10243
|
-
const e = Array.from(arguments).slice(1);
|
|
10244
|
-
console.warn.apply(console, ["[Vue Router warn]: " + t].concat(e));
|
|
10245
|
-
}
|
|
10246
|
-
var Zs;
|
|
10247
|
-
(function(t) {
|
|
10248
|
-
t.pop = "pop", t.push = "push";
|
|
10249
|
-
})(Zs || (Zs = {}));
|
|
10250
|
-
var Js;
|
|
10251
|
-
(function(t) {
|
|
10252
|
-
t.back = "back", t.forward = "forward", t.unknown = "";
|
|
10253
|
-
})(Js || (Js = {}));
|
|
10254
|
-
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
10255
|
-
var Xs;
|
|
10256
|
-
(function(t) {
|
|
10257
|
-
t[t.aborted = 4] = "aborted", t[t.cancelled = 8] = "cancelled", t[t.duplicated = 16] = "duplicated";
|
|
10258
|
-
})(Xs || (Xs = {}));
|
|
10259
|
-
const rp = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
10260
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
10261
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
10262
|
-
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
10263
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
10264
|
-
function op(t, e, i) {
|
|
10265
|
-
const n = () => {
|
|
10266
|
-
t[e].delete(i);
|
|
10267
|
-
};
|
|
10268
|
-
er(n), sa(n), ra(() => {
|
|
10269
|
-
t[e].add(i);
|
|
10270
|
-
}), t[e].add(i);
|
|
10271
|
-
}
|
|
10272
|
-
function ap(t) {
|
|
10273
|
-
if (process.env.NODE_ENV !== "production" && !ia()) {
|
|
10274
|
-
_s("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");
|
|
10275
|
-
return;
|
|
10276
|
-
}
|
|
10277
|
-
const e = na(
|
|
10278
|
-
rp,
|
|
10279
|
-
// to avoid warning
|
|
10280
|
-
{}
|
|
10281
|
-
).value;
|
|
10282
|
-
if (!e) {
|
|
10283
|
-
process.env.NODE_ENV !== "production" && _s("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");
|
|
10284
|
-
return;
|
|
10285
|
-
}
|
|
10286
|
-
op(e, "leaveGuards", t);
|
|
10287
|
-
}
|
|
10288
|
-
function lp() {
|
|
10289
|
-
const t = T(!1), e = T(!1);
|
|
10290
|
-
return {
|
|
10291
|
-
confirmLeave: t,
|
|
10292
|
-
saveButtonClick: e,
|
|
10293
|
-
beforeWindowUnload: (r) => {
|
|
10294
|
-
t.value && r.preventDefault();
|
|
10295
|
-
},
|
|
10296
|
-
formUpdated: () => {
|
|
10297
|
-
t.value = !0;
|
|
10298
|
-
},
|
|
10299
|
-
showConfirmModal: (r, o) => {
|
|
10300
|
-
t.value && !e.value ? r() : o();
|
|
10301
|
-
}
|
|
10302
|
-
};
|
|
10303
|
-
}
|
|
10304
|
-
const up = (() => {
|
|
10305
|
-
const t = (r, o) => tt(async () => {
|
|
10306
|
-
var l;
|
|
10307
|
-
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();
|
|
10308
|
-
}), { saveButtonClick: e, showConfirmModal: i } = lp(), n = (r) => ap((o, l, a) => {
|
|
10309
|
-
i((r || s)(), a);
|
|
10310
|
-
}), s = (r) => async () => {
|
|
10311
|
-
e.value = !0;
|
|
10312
|
-
try {
|
|
10313
|
-
r && await r(), M.UI.Notify.Success("Сохранено");
|
|
10314
|
-
} catch (o) {
|
|
10315
|
-
M.UI.Notify.Success("Что-то пошло не так. " + o);
|
|
10316
|
-
return;
|
|
10317
|
-
}
|
|
10318
|
-
};
|
|
10319
|
-
return {
|
|
10320
|
-
onBeforeMount: t,
|
|
10321
|
-
onBeforeRouteLeave: n,
|
|
10322
|
-
submit: s
|
|
10323
|
-
};
|
|
10324
|
-
})();
|
|
10325
|
-
class bt {
|
|
10326
|
-
constructor(e) {
|
|
10327
|
-
u(this, "id");
|
|
10328
|
-
u(this, "number");
|
|
10329
|
-
u(this, "description");
|
|
10330
|
-
u(this, "contactId");
|
|
10331
|
-
Z.BuildClass(this, e);
|
|
10332
|
-
}
|
|
10333
|
-
static Create() {
|
|
10334
|
-
const e = new bt();
|
|
10335
|
-
return e.id = je.UUID(), e;
|
|
10336
|
-
}
|
|
10337
|
-
}
|
|
10338
10247
|
var An = /* @__PURE__ */ ((t) => (t.ContentType = "Content-Type", t.Token = "token", t))(An || {}), uo = /* @__PURE__ */ ((t) => (t.ApplicationJson = "application/json", t.MultipartFormData = "multipart/form-data", t))(uo || {});
|
|
10339
10248
|
const re = class re {
|
|
10340
10249
|
static Setup(e, i, n) {
|
|
@@ -10422,7 +10331,7 @@ u(re, "baseUrl", ""), u(re, "apiVersion", ""), u(re, "apiHost", ""), u(re, "head
|
|
|
10422
10331
|
[An.ContentType]: uo.ApplicationJson
|
|
10423
10332
|
});
|
|
10424
10333
|
let be = re;
|
|
10425
|
-
const
|
|
10334
|
+
const sp = [
|
|
10426
10335
|
{
|
|
10427
10336
|
path: "/",
|
|
10428
10337
|
redirect: "/login"
|
|
@@ -10441,7 +10350,7 @@ const cp = [
|
|
|
10441
10350
|
}
|
|
10442
10351
|
], st = class st {
|
|
10443
10352
|
static SetRouter(e) {
|
|
10444
|
-
this.router = e, this.AddRoutes(
|
|
10353
|
+
this.router = e, this.AddRoutes(sp);
|
|
10445
10354
|
}
|
|
10446
10355
|
static GetRouter() {
|
|
10447
10356
|
return this.router;
|
|
@@ -10651,13 +10560,16 @@ class ae {
|
|
|
10651
10560
|
return this.count;
|
|
10652
10561
|
}
|
|
10653
10562
|
}
|
|
10654
|
-
|
|
10655
|
-
|
|
10563
|
+
function rp(t, e) {
|
|
10564
|
+
t == "left" && e.next(), t == "right" && e.prev();
|
|
10565
|
+
}
|
|
10566
|
+
const op = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
|
|
10567
|
+
class ap {
|
|
10656
10568
|
static GetRandColor(e) {
|
|
10657
|
-
return ht.GetRandEL(e ??
|
|
10569
|
+
return ht.GetRandEL(e ?? op);
|
|
10658
10570
|
}
|
|
10659
10571
|
}
|
|
10660
|
-
let
|
|
10572
|
+
let lp = class {
|
|
10661
10573
|
constructor() {
|
|
10662
10574
|
u(this, "startHour", 9);
|
|
10663
10575
|
u(this, "endHour", 19);
|
|
@@ -10692,10 +10604,10 @@ let fp = class {
|
|
|
10692
10604
|
return ht.GenerateNumsRange(this.startHour, this.endHour);
|
|
10693
10605
|
}
|
|
10694
10606
|
};
|
|
10695
|
-
const $n = (t) => t === 8 || t === 46,
|
|
10696
|
-
$n(e) ||
|
|
10607
|
+
const $n = (t) => t === 8 || t === 46, up = (t) => t > 46 && t < 58, cp = (t) => t > 34 && t < 41, dp = (t) => t + ".", hp = (t, e, i) => {
|
|
10608
|
+
$n(e) || cp(e) || (!up(e) || i > 9) && t.preventDefault();
|
|
10697
10609
|
};
|
|
10698
|
-
function
|
|
10610
|
+
function fp(t, e) {
|
|
10699
10611
|
if (e > 8) {
|
|
10700
10612
|
let i = t.substring(0, 2).replace(".", "1");
|
|
10701
10613
|
Number(i) > 31 && (i = "31");
|
|
@@ -10706,19 +10618,19 @@ function yp(t, e) {
|
|
|
10706
10618
|
}
|
|
10707
10619
|
return t;
|
|
10708
10620
|
}
|
|
10709
|
-
function
|
|
10621
|
+
function mp(t) {
|
|
10710
10622
|
const e = t.keyCode;
|
|
10711
10623
|
let i = t.srcElement.value;
|
|
10712
10624
|
const n = i.length;
|
|
10713
|
-
|
|
10625
|
+
hp(t, e, n), !$n(e) && (n === 2 || n === 5) && (i = dp(i));
|
|
10714
10626
|
const s = t.srcElement.value + String.fromCharCode(t.which);
|
|
10715
10627
|
if ($n(e)) {
|
|
10716
10628
|
t.srcElement.value = i;
|
|
10717
10629
|
return;
|
|
10718
10630
|
}
|
|
10719
|
-
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 =
|
|
10631
|
+
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 = fp(i, n), t.srcElement.value = i;
|
|
10720
10632
|
}
|
|
10721
|
-
class
|
|
10633
|
+
class pp {
|
|
10722
10634
|
constructor() {
|
|
10723
10635
|
u(this, "dragged", !1);
|
|
10724
10636
|
u(this, "dragImg", new Image());
|
|
@@ -10734,13 +10646,13 @@ class bp {
|
|
|
10734
10646
|
return this.dragged;
|
|
10735
10647
|
}
|
|
10736
10648
|
}
|
|
10737
|
-
class
|
|
10649
|
+
class gp {
|
|
10738
10650
|
static Get(e) {
|
|
10739
10651
|
const i = e.split(".");
|
|
10740
10652
|
return i[i.length - 1];
|
|
10741
10653
|
}
|
|
10742
10654
|
}
|
|
10743
|
-
const
|
|
10655
|
+
const vp = /* @__PURE__ */ (() => {
|
|
10744
10656
|
function t(r, o) {
|
|
10745
10657
|
localStorage.setItem(`${r}_favourite`, o.toString());
|
|
10746
10658
|
}
|
|
@@ -10775,6 +10687,94 @@ const Cp = /* @__PURE__ */ (() => {
|
|
|
10775
10687
|
isFavourite: e,
|
|
10776
10688
|
clearFavourite: s
|
|
10777
10689
|
};
|
|
10690
|
+
})();
|
|
10691
|
+
/*!
|
|
10692
|
+
* vue-router v4.4.5
|
|
10693
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
10694
|
+
* @license MIT
|
|
10695
|
+
*/
|
|
10696
|
+
function _s(t) {
|
|
10697
|
+
const e = Array.from(arguments).slice(1);
|
|
10698
|
+
console.warn.apply(console, ["[Vue Router warn]: " + t].concat(e));
|
|
10699
|
+
}
|
|
10700
|
+
var Zs;
|
|
10701
|
+
(function(t) {
|
|
10702
|
+
t.pop = "pop", t.push = "push";
|
|
10703
|
+
})(Zs || (Zs = {}));
|
|
10704
|
+
var Js;
|
|
10705
|
+
(function(t) {
|
|
10706
|
+
t.back = "back", t.forward = "forward", t.unknown = "";
|
|
10707
|
+
})(Js || (Js = {}));
|
|
10708
|
+
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
10709
|
+
var Xs;
|
|
10710
|
+
(function(t) {
|
|
10711
|
+
t[t.aborted = 4] = "aborted", t[t.cancelled = 8] = "cancelled", t[t.duplicated = 16] = "duplicated";
|
|
10712
|
+
})(Xs || (Xs = {}));
|
|
10713
|
+
const yp = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
10714
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
10715
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
10716
|
+
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
10717
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
10718
|
+
function wp(t, e, i) {
|
|
10719
|
+
const n = () => {
|
|
10720
|
+
t[e].delete(i);
|
|
10721
|
+
};
|
|
10722
|
+
er(n), sa(n), ra(() => {
|
|
10723
|
+
t[e].add(i);
|
|
10724
|
+
}), t[e].add(i);
|
|
10725
|
+
}
|
|
10726
|
+
function bp(t) {
|
|
10727
|
+
if (process.env.NODE_ENV !== "production" && !ia()) {
|
|
10728
|
+
_s("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");
|
|
10729
|
+
return;
|
|
10730
|
+
}
|
|
10731
|
+
const e = na(
|
|
10732
|
+
yp,
|
|
10733
|
+
// to avoid warning
|
|
10734
|
+
{}
|
|
10735
|
+
).value;
|
|
10736
|
+
if (!e) {
|
|
10737
|
+
process.env.NODE_ENV !== "production" && _s("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");
|
|
10738
|
+
return;
|
|
10739
|
+
}
|
|
10740
|
+
wp(e, "leaveGuards", t);
|
|
10741
|
+
}
|
|
10742
|
+
function Sp() {
|
|
10743
|
+
const t = T(!1), e = T(!1);
|
|
10744
|
+
return {
|
|
10745
|
+
confirmLeave: t,
|
|
10746
|
+
saveButtonClick: e,
|
|
10747
|
+
beforeWindowUnload: (r) => {
|
|
10748
|
+
t.value && r.preventDefault();
|
|
10749
|
+
},
|
|
10750
|
+
formUpdated: () => {
|
|
10751
|
+
t.value = !0;
|
|
10752
|
+
},
|
|
10753
|
+
showConfirmModal: (r, o) => {
|
|
10754
|
+
t.value && !e.value ? r() : o();
|
|
10755
|
+
}
|
|
10756
|
+
};
|
|
10757
|
+
}
|
|
10758
|
+
const Cp = (() => {
|
|
10759
|
+
const t = (r, o) => tt(async () => {
|
|
10760
|
+
var l;
|
|
10761
|
+
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();
|
|
10762
|
+
}), { saveButtonClick: e, showConfirmModal: i } = Sp(), n = (r) => bp((o, l, a) => {
|
|
10763
|
+
i((r || s)(), a);
|
|
10764
|
+
}), s = (r) => async () => {
|
|
10765
|
+
e.value = !0;
|
|
10766
|
+
try {
|
|
10767
|
+
r && await r(), M.UI.Notify.Success("Сохранено");
|
|
10768
|
+
} catch (o) {
|
|
10769
|
+
M.UI.Notify.Success("Что-то пошло не так. " + o);
|
|
10770
|
+
return;
|
|
10771
|
+
}
|
|
10772
|
+
};
|
|
10773
|
+
return {
|
|
10774
|
+
onBeforeMount: t,
|
|
10775
|
+
onBeforeRouteLeave: n,
|
|
10776
|
+
submit: s
|
|
10777
|
+
};
|
|
10778
10778
|
})(), Ri = class Ri {
|
|
10779
10779
|
static Format(e) {
|
|
10780
10780
|
let i = e;
|
|
@@ -10963,19 +10963,20 @@ class Fp {
|
|
|
10963
10963
|
u(this, "Arrays", ht);
|
|
10964
10964
|
u(this, "Axios", jt);
|
|
10965
10965
|
u(this, "BaseStore", ae);
|
|
10966
|
-
u(this, "Phone",
|
|
10966
|
+
u(this, "Phone", wt);
|
|
10967
10967
|
u(this, "Cache", Ui);
|
|
10968
|
-
u(this, "
|
|
10969
|
-
u(this, "
|
|
10968
|
+
u(this, "Classes", Z);
|
|
10969
|
+
u(this, "CarouselSwipe", rp);
|
|
10970
|
+
u(this, "Color", ap);
|
|
10970
10971
|
u(this, "CreateSortModels", Rr);
|
|
10971
|
-
u(this, "Cursor",
|
|
10972
|
-
u(this, "DateMask",
|
|
10972
|
+
u(this, "Cursor", lp);
|
|
10973
|
+
u(this, "DateMask", mp);
|
|
10973
10974
|
u(this, "Dates", rt);
|
|
10974
|
-
u(this, "Dragger",
|
|
10975
|
-
u(this, "Extension",
|
|
10976
|
-
u(this, "Favourite",
|
|
10975
|
+
u(this, "Dragger", pp);
|
|
10976
|
+
u(this, "Extension", gp);
|
|
10977
|
+
u(this, "Favourite", vp);
|
|
10977
10978
|
u(this, "FTSP", Hr);
|
|
10978
|
-
u(this, "Hooks",
|
|
10979
|
+
u(this, "Hooks", Cp);
|
|
10979
10980
|
u(this, "HttpClient", be);
|
|
10980
10981
|
u(this, "Id", je);
|
|
10981
10982
|
u(this, "MakeCarousel", rr);
|
|
@@ -11211,7 +11212,7 @@ const ni = class ho {
|
|
|
11211
11212
|
return e.contactId = this.id, this.emails.push(e), e;
|
|
11212
11213
|
}
|
|
11213
11214
|
addPhone() {
|
|
11214
|
-
const e =
|
|
11215
|
+
const e = wt.Create();
|
|
11215
11216
|
return e.contactId = this.id, this.phones.push(e), e;
|
|
11216
11217
|
}
|
|
11217
11218
|
static Create() {
|
|
@@ -11231,7 +11232,7 @@ const ni = class ho {
|
|
|
11231
11232
|
this.websites.push(new co());
|
|
11232
11233
|
}
|
|
11233
11234
|
pushFirst() {
|
|
11234
|
-
this.emails.length || this.emails.push(new yt()), this.phones.length || this.phones.push(new
|
|
11235
|
+
this.emails.length || this.emails.push(new yt()), this.phones.length || this.phones.push(new wt());
|
|
11235
11236
|
}
|
|
11236
11237
|
getCoords() {
|
|
11237
11238
|
return [Number(this.latitude), Number(this.longitude)];
|
|
@@ -11256,7 +11257,7 @@ Wi([
|
|
|
11256
11257
|
Z.GetClassConstructor(En)
|
|
11257
11258
|
], ni.prototype, "postAddresses");
|
|
11258
11259
|
Wi([
|
|
11259
|
-
Z.GetClassConstructor(
|
|
11260
|
+
Z.GetClassConstructor(wt)
|
|
11260
11261
|
], ni.prototype, "phones");
|
|
11261
11262
|
Wi([
|
|
11262
11263
|
Z.GetClassConstructor(co)
|
|
@@ -11320,7 +11321,7 @@ let ag = class extends ae {
|
|
|
11320
11321
|
const lg = new ag();
|
|
11321
11322
|
let ug = class extends ae {
|
|
11322
11323
|
constructor() {
|
|
11323
|
-
super(
|
|
11324
|
+
super(wt, "phones");
|
|
11324
11325
|
}
|
|
11325
11326
|
};
|
|
11326
11327
|
const cg = new ug();
|