sprof 1.20.0 → 1.20.1

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
@@ -645,8 +645,8 @@ var $r;
645
645
  var n = typeof globalThis == "object" ? globalThis : typeof xr == "object" ? xr : typeof self == "object" ? self : typeof this == "object" ? this : l(), i = s(t);
646
646
  typeof n.Reflect < "u" && (i = s(n.Reflect, i)), e(i, n), typeof n.Reflect > "u" && (n.Reflect = t);
647
647
  function s(r, d) {
648
- return function(f, h) {
649
- Object.defineProperty(r, f, { configurable: !0, writable: !0, value: h }), d && d(f, h);
648
+ return function(h, f) {
649
+ Object.defineProperty(r, h, { configurable: !0, writable: !0, value: f }), d && d(h, f);
650
650
  };
651
651
  }
652
652
  function o() {
@@ -665,7 +665,7 @@ var $r;
665
665
  return o() || a();
666
666
  }
667
667
  })(function(e, n) {
668
- var i = Object.prototype.hasOwnProperty, s = typeof Symbol == "function", o = s && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", a = s && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", l = typeof Object.create == "function", r = { __proto__: [] } instanceof Array, d = !l && !r, f = {
668
+ var i = Object.prototype.hasOwnProperty, s = typeof Symbol == "function", o = s && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", a = s && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", l = typeof Object.create == "function", r = { __proto__: [] } instanceof Array, d = !l && !r, h = {
669
669
  // create an object in dictionary mode (a.k.a. "slow" mode in v8)
670
670
  create: l ? function() {
671
671
  return Oi(/* @__PURE__ */ Object.create(null));
@@ -684,7 +684,7 @@ var $r;
684
684
  } : function(F, _) {
685
685
  return F[_];
686
686
  }
687
- }, h = Object.getPrototypeOf(Function), g = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : To(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Po(), $ = typeof WeakMap == "function" ? WeakMap : fs(), I = s ? Symbol.for("@reflect-metadata:registry") : void 0, E = Fi(), T = li(E);
687
+ }, f = Object.getPrototypeOf(Function), g = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : To(), b = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Po(), $ = typeof WeakMap == "function" ? WeakMap : fs(), I = s ? Symbol.for("@reflect-metadata:registry") : void 0, E = Fi(), T = li(E);
688
688
  function M(F, _, H, ne) {
689
689
  if (oe(H)) {
690
690
  if (!mt(F))
@@ -845,7 +845,7 @@ var $r;
845
845
  return H;
846
846
  if (H.length <= 0)
847
847
  return pe;
848
- for (var nt = new w(), Ze = [], $e = 0, ie = H; $e < ie.length; $e++) {
848
+ for (var nt = new b(), Ze = [], $e = 0, ie = H; $e < ie.length; $e++) {
849
849
  var le = ie[$e], ue = nt.has(le);
850
850
  ue || (nt.add(le), Ze.push(le));
851
851
  }
@@ -1000,7 +1000,7 @@ var $r;
1000
1000
  }
1001
1001
  function Wn(F) {
1002
1002
  var _ = Object.getPrototypeOf(F);
1003
- if (typeof F != "function" || F === h || _ !== h)
1003
+ if (typeof F != "function" || F === f || _ !== f)
1004
1004
  return _;
1005
1005
  var H = F.prototype, ne = H && Object.getPrototypeOf(H);
1006
1006
  if (ne == null || ne === Object.prototype)
@@ -1034,7 +1034,7 @@ var $r;
1034
1034
  case H === de:
1035
1035
  break;
1036
1036
  default:
1037
- ne === void 0 && (ne = new w()), ne.add(de);
1037
+ ne === void 0 && (ne = new b()), ne.add(de);
1038
1038
  break;
1039
1039
  }
1040
1040
  }
@@ -1193,7 +1193,7 @@ var $r;
1193
1193
  var _ = F.defineMetadata, H = F.hasOwnMetadata, ne = F.getOwnMetadata, pe = F.getOwnMetadataKeys, nt = F.deleteMetadata, Ze = new $(), $e = {
1194
1194
  isProviderFor: function(ie, le) {
1195
1195
  var ue = Ze.get(ie);
1196
- return !oe(ue) && ue.has(le) ? !0 : pe(ie, le).length ? (oe(ue) && (ue = new w(), Ze.set(ie, ue)), ue.add(le), !0) : !1;
1196
+ return !oe(ue) && ue.has(le) ? !0 : pe(ie, le).length ? (oe(ue) && (ue = new b(), Ze.set(ie, ue)), ue.add(le), !0) : !1;
1197
1197
  },
1198
1198
  OrdinaryDefineOwnMetadata: _,
1199
1199
  OrdinaryHasOwnMetadata: H,
@@ -1354,7 +1354,7 @@ var $r;
1354
1354
  return F;
1355
1355
  }
1356
1356
  function fs() {
1357
- var F = 16, _ = f.create(), H = ne();
1357
+ var F = 16, _ = h.create(), H = ne();
1358
1358
  return (
1359
1359
  /** @class */
1360
1360
  function() {
@@ -1367,14 +1367,14 @@ var $r;
1367
1367
  /*create*/
1368
1368
  !1
1369
1369
  );
1370
- return ue !== void 0 ? f.has(ue, this._key) : !1;
1370
+ return ue !== void 0 ? h.has(ue, this._key) : !1;
1371
1371
  }, ie.prototype.get = function(le) {
1372
1372
  var ue = pe(
1373
1373
  le,
1374
1374
  /*create*/
1375
1375
  !1
1376
1376
  );
1377
- return ue !== void 0 ? f.get(ue, this._key) : void 0;
1377
+ return ue !== void 0 ? h.get(ue, this._key) : void 0;
1378
1378
  }, ie.prototype.set = function(le, ue) {
1379
1379
  var de = pe(
1380
1380
  le,
@@ -1398,14 +1398,14 @@ var $r;
1398
1398
  var ie;
1399
1399
  do
1400
1400
  ie = "@@WeakMap@@" + $e();
1401
- while (f.has(_, ie));
1401
+ while (h.has(_, ie));
1402
1402
  return _[ie] = !0, ie;
1403
1403
  }
1404
1404
  function pe(ie, le) {
1405
1405
  if (!i.call(ie, H)) {
1406
1406
  if (!le)
1407
1407
  return;
1408
- Object.defineProperty(ie, H, { value: f.create() });
1408
+ Object.defineProperty(ie, H, { value: h.create() });
1409
1409
  }
1410
1410
  return ie[H];
1411
1411
  }
@@ -1977,8 +1977,8 @@ const Rl = class Vi {
1977
1977
  return !this || !e || !this.eq(e) ? !1 : this.type === pt.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === pt.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === pt.Join && this.set.length ? vn.Eq(this.set, e.set) : !1;
1978
1978
  }
1979
1979
  toUrlQuery() {
1980
- const e = this.type ? `"type":"${this.type}"` : "", n = this.group ? `"group":${this.group}` : "", i = this.model ? `"model":"${this.model}"` : "", s = this.col ? `"col":"${this.col}"` : "", o = this.operator ? `"operator":"${this.operator}"` : "", a = this.value1 ? `"value1":"${this.value1}"` : "", l = this.type === pt.Boolean ? `"boolean":${this.boolean}` : "", r = this.type === pt.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", d = this.type === pt.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", f = this.type === pt.Number ? `"number":${this.number}` : "", h = this.type === pt.Set || this.operator === It.In ? `"set":${JSON.stringify(this.set)}` : "", g = this.type === pt.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
1981
- return [e, i, s, o, a, l, r, d, f, h, g, n].filter((w) => w !== "").toString();
1980
+ const e = this.type ? `"type":"${this.type}"` : "", n = this.group ? `"group":${this.group}` : "", i = this.model ? `"model":"${this.model}"` : "", s = this.col ? `"col":"${this.col}"` : "", o = this.operator ? `"operator":"${this.operator}"` : "", a = this.value1 ? `"value1":"${this.value1}"` : "", l = this.type === pt.Boolean ? `"boolean":${this.boolean}` : "", r = this.type === pt.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", d = this.type === pt.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", h = this.type === pt.Number ? `"number":${this.number}` : "", f = this.type === pt.Set || this.operator === It.In ? `"set":${JSON.stringify(this.set)}` : "", g = this.type === pt.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
1981
+ return [e, i, s, o, a, l, r, d, h, f, g, n].filter((b) => b !== "").toString();
1982
1982
  }
1983
1983
  /**
1984
1984
  * ⚠️ `fromUrlQuery(URLSearchParams)` удалён (Ф3.3): единственным его
@@ -2371,8 +2371,8 @@ function oa(...t) {
2371
2371
  continue;
2372
2372
  const r = Object.getOwnPropertySymbols(l);
2373
2373
  for (let d = 0; d < r.length; d++) {
2374
- const f = r[d];
2375
- Kf.call(l, f) && s(l[f], f);
2374
+ const h = r[d];
2375
+ Kf.call(l, h) && s(l[h], h);
2376
2376
  }
2377
2377
  }
2378
2378
  return i;
@@ -2672,23 +2672,23 @@ let Ot = class {
2672
2672
  set(e, n, i) {
2673
2673
  const s = this;
2674
2674
  function o(l, r, d) {
2675
- const f = zi(r);
2676
- if (!f)
2675
+ const h = zi(r);
2676
+ if (!h)
2677
2677
  return;
2678
- const h = A.findKey(s, f);
2679
- (!h || s[h] === void 0 || d === !0 || d === void 0 && s[h] !== !1) && (s[h || r] = Is(l));
2678
+ const f = A.findKey(s, h);
2679
+ (!f || s[f] === void 0 || d === !0 || d === void 0 && s[f] !== !1) && (s[f || r] = Is(l));
2680
2680
  }
2681
- const a = (l, r) => A.forEach(l, (d, f) => o(d, f, r));
2681
+ const a = (l, r) => A.forEach(l, (d, h) => o(d, h, r));
2682
2682
  if (A.isPlainObject(e) || e instanceof this.constructor)
2683
2683
  a(e, n);
2684
2684
  else if (A.isString(e) && (e = e.trim()) && !bh(e))
2685
2685
  a(fh(e), n);
2686
2686
  else if (A.isObject(e) && A.isSafeIterable(e)) {
2687
2687
  let l = /* @__PURE__ */ Object.create(null), r, d;
2688
- for (const f of e) {
2689
- if (!A.isArray(f))
2688
+ for (const h of e) {
2689
+ if (!A.isArray(h))
2690
2690
  throw new TypeError("Object iterator must return a key-value pair");
2691
- d = f[0], A.hasOwnProp(l, d) ? (r = l[d], l[d] = A.isArray(r) ? [...r, f[1]] : [r, f[1]]) : l[d] = f[1];
2691
+ d = h[0], A.hasOwnProp(l, d) ? (r = l[d], l[d] = A.isArray(r) ? [...r, h[1]] : [r, h[1]]) : l[d] = h[1];
2692
2692
  }
2693
2693
  a(l, n);
2694
2694
  } else
@@ -2946,10 +2946,10 @@ function ao(t, e, n) {
2946
2946
  return !A.isUndefined(k[M]);
2947
2947
  }
2948
2948
  );
2949
- const i = n.metaTokens, s = n.visitor || $, o = n.dots, a = n.indexes, l = n.Blob || typeof Blob < "u" && Blob, r = n.maxDepth === void 0 ? Bl : n.maxDepth, d = l && A.isSpecCompliantForm(e), f = [];
2949
+ const i = n.metaTokens, s = n.visitor || $, o = n.dots, a = n.indexes, l = n.Blob || typeof Blob < "u" && Blob, r = n.maxDepth === void 0 ? Bl : n.maxDepth, d = l && A.isSpecCompliantForm(e), h = [];
2950
2950
  if (!A.isFunction(s))
2951
2951
  throw new TypeError("visitor must be a function");
2952
- function h(T) {
2952
+ function f(T) {
2953
2953
  if (T === null) return "";
2954
2954
  if (A.isDate(T))
2955
2955
  return T.toISOString();
@@ -2973,7 +2973,7 @@ function ao(t, e, n) {
2973
2973
  se.ERR_FORM_DATA_DEPTH_EXCEEDED
2974
2974
  );
2975
2975
  }
2976
- function w(T, M) {
2976
+ function b(T, M) {
2977
2977
  if (r === 1 / 0)
2978
2978
  return JSON.stringify(T);
2979
2979
  const k = [];
@@ -2988,33 +2988,33 @@ function ao(t, e, n) {
2988
2988
  function $(T, M, k) {
2989
2989
  let V = T;
2990
2990
  if (A.isReactNative(e) && A.isReactNativeBlob(T))
2991
- return e.append(Bo(k, M, o), h(T)), !1;
2991
+ return e.append(Bo(k, M, o), f(T)), !1;
2992
2992
  if (T && !k && typeof T == "object") {
2993
2993
  if (A.endsWith(M, "{}"))
2994
- M = i ? M : M.slice(0, -2), T = w(T, 1);
2994
+ M = i ? M : M.slice(0, -2), T = b(T, 1);
2995
2995
  else if (A.isArray(T) && Th(T) || (A.isFileList(T) || A.endsWith(M, "[]")) && (V = A.toArray(T)))
2996
2996
  return M = ql(M), V.forEach(function(U, R) {
2997
2997
  !(A.isUndefined(U) || U === null) && e.append(
2998
2998
  // eslint-disable-next-line no-nested-ternary
2999
2999
  a === !0 ? Bo([M], R, o) : a === null ? M : M + "[]",
3000
- h(U)
3000
+ f(U)
3001
3001
  );
3002
3002
  }), !1;
3003
3003
  }
3004
- return aa(T) ? !0 : (e.append(Bo(k, M, o), h(T)), !1);
3004
+ return aa(T) ? !0 : (e.append(Bo(k, M, o), f(T)), !1);
3005
3005
  }
3006
3006
  const I = Object.assign(Ph, {
3007
3007
  defaultVisitor: $,
3008
- convertValue: h,
3008
+ convertValue: f,
3009
3009
  isVisitable: aa
3010
3010
  });
3011
3011
  function E(T, M, k = 0) {
3012
3012
  if (!A.isUndefined(T)) {
3013
- if (g(k), f.indexOf(T) !== -1)
3013
+ if (g(k), h.indexOf(T) !== -1)
3014
3014
  throw new Error("Circular reference detected in " + M.join("."));
3015
- f.push(T), A.forEach(T, function(x, U) {
3015
+ h.push(T), A.forEach(T, function(x, U) {
3016
3016
  (!(A.isUndefined(x) || x === null) && s.call(e, x, A.isString(U) ? U.trim() : U, M, I)) === !0 && E(x, M ? M.concat(U) : [U], k + 1);
3017
- }), f.pop();
3017
+ }), h.pop();
3018
3018
  }
3019
3019
  }
3020
3020
  if (!A.isObject(t))
@@ -3225,10 +3225,10 @@ const is = {
3225
3225
  if (i.indexOf("application/x-www-form-urlencoded") > -1)
3226
3226
  return Lh(e, r).toString();
3227
3227
  if ((l = A.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
3228
- const d = di(this, "env"), f = d && d.FormData;
3228
+ const d = di(this, "env"), h = d && d.FormData;
3229
3229
  return ao(
3230
3230
  l ? { "files[]": e } : e,
3231
- f && new f(),
3231
+ h && new h(),
3232
3232
  r
3233
3233
  );
3234
3234
  }
@@ -3322,27 +3322,27 @@ function qh(t, e) {
3322
3322
  const n = new Array(t), i = new Array(t);
3323
3323
  let s = 0, o = 0, a;
3324
3324
  return e = e !== void 0 ? e : 1e3, function(r) {
3325
- const d = Date.now(), f = i[o];
3325
+ const d = Date.now(), h = i[o];
3326
3326
  a || (a = d), n[s] = r, i[s] = d;
3327
- let h = o, g = 0;
3328
- for (; h !== s; )
3329
- g += n[h++], h = h % t;
3327
+ let f = o, g = 0;
3328
+ for (; f !== s; )
3329
+ g += n[f++], f = f % t;
3330
3330
  if (s = (s + 1) % t, s === o && (o = (o + 1) % t), d - a < e)
3331
3331
  return;
3332
- const w = f && d - f;
3333
- return w ? Math.round(g * 1e3 / w) : void 0;
3332
+ const b = h && d - h;
3333
+ return b ? Math.round(g * 1e3 / b) : void 0;
3334
3334
  };
3335
3335
  }
3336
3336
  function Nh(t, e) {
3337
3337
  let n = 0, i = 1e3 / e, s, o;
3338
- const a = (d, f = Date.now()) => {
3339
- n = f, s = null, o && (clearTimeout(o), o = null), t(...d);
3338
+ const a = (d, h = Date.now()) => {
3339
+ n = h, s = null, o && (clearTimeout(o), o = null), t(...d);
3340
3340
  };
3341
3341
  return [(...d) => {
3342
- const f = Date.now(), h = f - n;
3343
- h >= i ? a(d, f) : (s = d, o || (o = setTimeout(() => {
3342
+ const h = Date.now(), f = h - n;
3343
+ f >= i ? a(d, h) : (s = d, o || (o = setTimeout(() => {
3344
3344
  o = null, a(s);
3345
- }, i - h)));
3345
+ }, i - f)));
3346
3346
  }, () => s && a(s)];
3347
3347
  }
3348
3348
  const Bs = (t, e, n = 3) => {
@@ -3351,20 +3351,20 @@ const Bs = (t, e, n = 3) => {
3351
3351
  return Nh((o) => {
3352
3352
  if (!o || typeof o.loaded != "number")
3353
3353
  return;
3354
- const a = o.loaded, l = o.lengthComputable ? o.total : void 0, r = l != null ? Math.min(a, l) : a, d = Math.max(0, r - i), f = s(d);
3354
+ const a = o.loaded, l = o.lengthComputable ? o.total : void 0, r = l != null ? Math.min(a, l) : a, d = Math.max(0, r - i), h = s(d);
3355
3355
  i = Math.max(i, r);
3356
- const h = {
3356
+ const f = {
3357
3357
  loaded: r,
3358
3358
  total: l,
3359
3359
  progress: l ? r / l : void 0,
3360
3360
  bytes: d,
3361
- rate: f || void 0,
3362
- estimated: f && l ? (l - r) / f : void 0,
3361
+ rate: h || void 0,
3362
+ estimated: h && l ? (l - r) / h : void 0,
3363
3363
  event: o,
3364
3364
  lengthComputable: l != null,
3365
3365
  [e ? "download" : "upload"]: !0
3366
3366
  };
3367
- t(h);
3367
+ t(f);
3368
3368
  }, n);
3369
3369
  }, Er = (t, e) => {
3370
3370
  const n = t != null;
@@ -3459,42 +3459,42 @@ function si(t, e) {
3459
3459
  writable: !0,
3460
3460
  configurable: !0
3461
3461
  });
3462
- function i(f, h, g, w) {
3463
- return A.isPlainObject(f) && A.isPlainObject(h) ? A.merge.call({ caseless: w }, f, h) : A.isPlainObject(h) ? A.merge({}, h) : A.isArray(h) ? h.slice() : h;
3462
+ function i(h, f, g, b) {
3463
+ return A.isPlainObject(h) && A.isPlainObject(f) ? A.merge.call({ caseless: b }, h, f) : A.isPlainObject(f) ? A.merge({}, f) : A.isArray(f) ? f.slice() : f;
3464
3464
  }
3465
- function s(f, h, g, w) {
3466
- if (A.isUndefined(h)) {
3467
- if (!A.isUndefined(f))
3468
- return i(void 0, f, g, w);
3469
- } else return i(f, h, g, w);
3465
+ function s(h, f, g, b) {
3466
+ if (A.isUndefined(f)) {
3467
+ if (!A.isUndefined(h))
3468
+ return i(void 0, h, g, b);
3469
+ } else return i(h, f, g, b);
3470
3470
  }
3471
- function o(f, h) {
3472
- if (!A.isUndefined(h))
3473
- return i(void 0, h);
3471
+ function o(h, f) {
3472
+ if (!A.isUndefined(f))
3473
+ return i(void 0, f);
3474
3474
  }
3475
- function a(f, h) {
3476
- if (A.isUndefined(h)) {
3477
- if (!A.isUndefined(f))
3478
- return i(void 0, f);
3479
- } else return i(void 0, h);
3480
- }
3481
- function l(f) {
3482
- const h = A.hasOwnProp(e, "transitional") ? e.transitional : void 0;
3483
- if (!A.isUndefined(h))
3484
- if (A.isPlainObject(h)) {
3485
- if (A.hasOwnProp(h, f))
3486
- return h[f];
3475
+ function a(h, f) {
3476
+ if (A.isUndefined(f)) {
3477
+ if (!A.isUndefined(h))
3478
+ return i(void 0, h);
3479
+ } else return i(void 0, f);
3480
+ }
3481
+ function l(h) {
3482
+ const f = A.hasOwnProp(e, "transitional") ? e.transitional : void 0;
3483
+ if (!A.isUndefined(f))
3484
+ if (A.isPlainObject(f)) {
3485
+ if (A.hasOwnProp(f, h))
3486
+ return f[h];
3487
3487
  } else
3488
3488
  return;
3489
3489
  const g = A.hasOwnProp(t, "transitional") ? t.transitional : void 0;
3490
- if (A.isPlainObject(g) && A.hasOwnProp(g, f))
3491
- return g[f];
3490
+ if (A.isPlainObject(g) && A.hasOwnProp(g, h))
3491
+ return g[h];
3492
3492
  }
3493
- function r(f, h, g) {
3493
+ function r(h, f, g) {
3494
3494
  if (A.hasOwnProp(e, g))
3495
- return i(f, h);
3495
+ return i(h, f);
3496
3496
  if (A.hasOwnProp(t, g))
3497
- return i(void 0, f);
3497
+ return i(void 0, h);
3498
3498
  }
3499
3499
  const d = {
3500
3500
  url: o,
@@ -3526,12 +3526,12 @@ function si(t, e) {
3526
3526
  allowedSocketPaths: a,
3527
3527
  responseEncoding: a,
3528
3528
  validateStatus: r,
3529
- headers: (f, h, g) => s(Dr(f), Dr(h), g, !0)
3529
+ headers: (h, f, g) => s(Dr(h), Dr(f), g, !0)
3530
3530
  };
3531
- return A.forEach(Object.keys({ ...t, ...e }), function(h) {
3532
- if (h === "__proto__" || h === "constructor" || h === "prototype") return;
3533
- const g = A.hasOwnProp(d, h) ? d[h] : s, w = A.hasOwnProp(t, h) ? t[h] : void 0, $ = A.hasOwnProp(e, h) ? e[h] : void 0, I = g(w, $, h);
3534
- A.isUndefined(I) && g !== r || (n[h] = I);
3531
+ return A.forEach(Object.keys({ ...t, ...e }), function(f) {
3532
+ if (f === "__proto__" || f === "constructor" || f === "prototype") return;
3533
+ const g = A.hasOwnProp(d, f) ? d[f] : s, b = A.hasOwnProp(t, f) ? t[f] : void 0, $ = A.hasOwnProp(e, f) ? e[f] : void 0, I = g(b, $, f);
3534
+ A.isUndefined(I) && g !== r || (n[f] = I);
3535
3535
  }), A.hasOwnProp(e, "validateStatus") && A.isUndefined(e.validateStatus) && l("validateStatusUndefinedResolves") === !1 && (A.hasOwnProp(t, "validateStatus") ? n.validateStatus = i(void 0, t.validateStatus) : delete n.validateStatus), n;
3536
3536
  }
3537
3537
  const Jh = ["content-type", "content-length"];
@@ -3553,25 +3553,25 @@ function Ql(t) {
3553
3553
  let s = n("withXSRFToken");
3554
3554
  const o = n("xsrfHeaderName"), a = n("xsrfCookieName");
3555
3555
  let l = n("headers");
3556
- const r = n("auth"), d = n("baseURL"), f = n("allowAbsoluteUrls"), h = n("url");
3556
+ const r = n("auth"), d = n("baseURL"), h = n("allowAbsoluteUrls"), f = n("url");
3557
3557
  if (e.headers = l = Ot.from(l), e.url = Hl(
3558
- Xl(d, h, f, e),
3558
+ Xl(d, f, h, e),
3559
3559
  n("params"),
3560
3560
  n("paramsSerializer")
3561
3561
  ), r) {
3562
- const g = A.getSafeProp(r, "username") || "", w = A.getSafeProp(r, "password") || "";
3562
+ const g = A.getSafeProp(r, "username") || "", b = A.getSafeProp(r, "password") || "";
3563
3563
  try {
3564
3564
  l.set(
3565
3565
  "Authorization",
3566
- "Basic " + btoa(g + ":" + (w ? em(w) : ""))
3566
+ "Basic " + btoa(g + ":" + (b ? em(b) : ""))
3567
3567
  );
3568
3568
  } catch ($) {
3569
3569
  throw se.from($, se.ERR_BAD_OPTION_VALUE, t);
3570
3570
  }
3571
3571
  }
3572
3572
  if (A.isFormData(i) && (xt.hasStandardBrowserEnv || xt.hasStandardBrowserWebWorkerEnv || A.isReactNative(i) ? l.setContentType(void 0) : A.isFunction(i.getHeaders) && Kh(l, i.getHeaders(), n("formDataHeaderPolicy"))), xt.hasStandardBrowserEnv && (A.isFunction(s) && (s = s(e)), s === !0 || s == null && Hh(e.url))) {
3573
- const w = o && a && jh.read(a);
3574
- w && l.set(o, w);
3573
+ const b = o && a && jh.read(a);
3574
+ b && l.set(o, b);
3575
3575
  }
3576
3576
  return e;
3577
3577
  }
@@ -3580,9 +3580,9 @@ const tm = typeof XMLHttpRequest < "u", nm = tm && function(t) {
3580
3580
  const s = Ql(t);
3581
3581
  let o = s.data;
3582
3582
  const a = Ot.from(s.headers).normalize();
3583
- let { responseType: l, onUploadProgress: r, onDownloadProgress: d } = s, f, h, g, w, $;
3583
+ let { responseType: l, onUploadProgress: r, onDownloadProgress: d } = s, h, f, g, b, $;
3584
3584
  function I() {
3585
- w && w(), $ && $(), s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
3585
+ b && b(), $ && $(), s.cancelToken && s.cancelToken.unsubscribe(h), s.signal && s.signal.removeEventListener("abort", h);
3586
3586
  }
3587
3587
  let E = new XMLHttpRequest();
3588
3588
  E.open(s.method.toUpperCase(), s.url, !0), E.timeout = s.timeout;
@@ -3629,9 +3629,9 @@ const tm = typeof XMLHttpRequest < "u", nm = tm && function(t) {
3629
3629
  ), I(), E = null;
3630
3630
  }, o === void 0 && a.setContentType(null), "setRequestHeader" in E && A.forEach(_l(a), function(V, x) {
3631
3631
  E.setRequestHeader(x, V);
3632
- }), A.isUndefined(s.withCredentials) || (E.withCredentials = !!s.withCredentials), l && l !== "json" && (E.responseType = s.responseType), d && ([g, $] = Bs(d, !0), E.addEventListener("progress", g)), r && E.upload && ([h, w] = Bs(r), E.upload.addEventListener("progress", h), E.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (f = (k) => {
3632
+ }), A.isUndefined(s.withCredentials) || (E.withCredentials = !!s.withCredentials), l && l !== "json" && (E.responseType = s.responseType), d && ([g, $] = Bs(d, !0), E.addEventListener("progress", g)), r && E.upload && ([f, b] = Bs(r), E.upload.addEventListener("progress", f), E.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (h = (k) => {
3633
3633
  E && (i(!k || k.type ? new ss(null, t, E) : k), E.abort(), I(), E = null);
3634
- }, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
3634
+ }, s.cancelToken && s.cancelToken.subscribe(h), s.signal && (s.signal.aborted ? h() : s.signal.addEventListener("abort", h)));
3635
3635
  const M = Bh(s.url);
3636
3636
  if (M && !xt.protocols.includes(M)) {
3637
3637
  i(
@@ -3707,17 +3707,17 @@ const tm = typeof XMLHttpRequest < "u", nm = tm && function(t) {
3707
3707
  {
3708
3708
  async pull(r) {
3709
3709
  try {
3710
- const { done: d, value: f } = await s.next();
3710
+ const { done: d, value: h } = await s.next();
3711
3711
  if (d) {
3712
3712
  l(), r.close();
3713
3713
  return;
3714
3714
  }
3715
- let h = f.byteLength;
3715
+ let f = h.byteLength;
3716
3716
  if (n) {
3717
- let g = o += h;
3717
+ let g = o += f;
3718
3718
  n(g);
3719
3719
  }
3720
- r.enqueue(new Uint8Array(f));
3720
+ r.enqueue(new Uint8Array(h));
3721
3721
  } catch (d) {
3722
3722
  throw l(d), d;
3723
3723
  }
@@ -3739,16 +3739,16 @@ function lm(t) {
3739
3739
  if (/;base64/i.test(n)) {
3740
3740
  let a = i.length;
3741
3741
  const l = i.length;
3742
- for (let w = 0; w < l; w++)
3743
- if (i.charCodeAt(w) === 37 && w + 2 < l) {
3744
- const $ = i.charCodeAt(w + 1), I = i.charCodeAt(w + 2);
3745
- qs($) && qs(I) && (a -= 2, w += 2);
3742
+ for (let b = 0; b < l; b++)
3743
+ if (i.charCodeAt(b) === 37 && b + 2 < l) {
3744
+ const $ = i.charCodeAt(b + 1), I = i.charCodeAt(b + 2);
3745
+ qs($) && qs(I) && (a -= 2, b += 2);
3746
3746
  }
3747
3747
  let r = 0, d = l - 1;
3748
- const f = (w) => w >= 2 && i.charCodeAt(w - 2) === 37 && // '%'
3749
- i.charCodeAt(w - 1) === 51 && // '3'
3750
- (i.charCodeAt(w) === 68 || i.charCodeAt(w) === 100);
3751
- d >= 0 && (i.charCodeAt(d) === 61 ? (r++, d--) : f(d) && (r++, d -= 3)), r === 1 && d >= 0 && (i.charCodeAt(d) === 61 || f(d)) && r++;
3748
+ const h = (b) => b >= 2 && i.charCodeAt(b - 2) === 37 && // '%'
3749
+ i.charCodeAt(b - 1) === 51 && // '3'
3750
+ (i.charCodeAt(b) === 68 || i.charCodeAt(b) === 100);
3751
+ d >= 0 && (i.charCodeAt(d) === 61 ? (r++, d--) : h(d) && (r++, d -= 3)), r === 1 && d >= 0 && (i.charCodeAt(d) === 61 || h(d)) && r++;
3752
3752
  const g = Math.floor(a / 4) * 3 - (r || 0);
3753
3753
  return g > 0 ? g : 0;
3754
3754
  }
@@ -3805,7 +3805,7 @@ const Aa = "1.18.1", Lr = 64 * 1024, { isFunction: bs } = A, um = (t) => encodeU
3805
3805
  const { fetch: s, Request: o, Response: a } = t, l = s ? bs(s) : typeof fetch == "function", r = bs(o), d = bs(a);
3806
3806
  if (!l)
3807
3807
  return !1;
3808
- const f = l && bs(n), h = l && (typeof i == "function" ? /* @__PURE__ */ ((T) => (M) => T.encode(M))(new i()) : async (T) => new Uint8Array(await new o(T).arrayBuffer())), g = r && f && _r(() => {
3808
+ const h = l && bs(n), f = l && (typeof i == "function" ? /* @__PURE__ */ ((T) => (M) => T.encode(M))(new i()) : async (T) => new Uint8Array(await new o(T).arrayBuffer())), g = r && h && _r(() => {
3809
3809
  let T = !1;
3810
3810
  const M = new o(xt.origin, {
3811
3811
  body: new n(),
@@ -3815,8 +3815,8 @@ const Aa = "1.18.1", Lr = 64 * 1024, { isFunction: bs } = A, um = (t) => encodeU
3815
3815
  }
3816
3816
  }), k = M.headers.has("Content-Type");
3817
3817
  return M.body != null && M.body.cancel(), T && !k;
3818
- }), w = d && f && _r(() => A.isReadableStream(new a("").body)), $ = {
3819
- stream: w && ((T) => T.body)
3818
+ }), b = d && h && _r(() => A.isReadableStream(new a("").body)), $ = {
3819
+ stream: b && ((T) => T.body)
3820
3820
  };
3821
3821
  l && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((T) => {
3822
3822
  !$[T] && ($[T] = (M, k) => {
@@ -3843,7 +3843,7 @@ const Aa = "1.18.1", Lr = 64 * 1024, { isFunction: bs } = A, um = (t) => encodeU
3843
3843
  if (A.isArrayBufferView(T) || A.isArrayBuffer(T))
3844
3844
  return T.byteLength;
3845
3845
  if (A.isURLSearchParams(T) && (T = T + ""), A.isString(T))
3846
- return (await h(T)).byteLength;
3846
+ return (await f(T)).byteLength;
3847
3847
  }, E = async (T, M) => {
3848
3848
  const k = A.toFiniteNumber(T.getContentLength());
3849
3849
  return k ?? I(M);
@@ -3943,7 +3943,7 @@ const Aa = "1.18.1", Lr = 64 * 1024, { isFunction: bs } = A, um = (t) => encodeU
3943
3943
  V = me(Se.body, Vt, jt);
3944
3944
  }
3945
3945
  }
3946
- } else if (Ee && !r && f && k !== "get" && k !== "head")
3946
+ } else if (Ee && !r && h && k !== "get" && k !== "head")
3947
3947
  V = me(V);
3948
3948
  else if (Ee && r && !g && k !== "get" && k !== "head")
3949
3949
  throw new se(
@@ -3981,8 +3981,8 @@ const Aa = "1.18.1", Lr = 64 * 1024, { isFunction: bs } = A, um = (t) => encodeU
3981
3981
  Ve
3982
3982
  );
3983
3983
  }
3984
- const En = w && (xe === "stream" || xe === "response");
3985
- if (w && yt.body && (L || at || En && oe)) {
3984
+ const En = b && (xe === "stream" || xe === "response");
3985
+ if (b && yt.body && (L || at || En && oe)) {
3986
3986
  const Se = {};
3987
3987
  ["status", "statusText", "headers"].forEach((dn) => {
3988
3988
  Se[dn] = yt[dn];
@@ -4014,7 +4014,7 @@ const Aa = "1.18.1", Lr = 64 * 1024, { isFunction: bs } = A, um = (t) => encodeU
4014
4014
  yt,
4015
4015
  T
4016
4016
  );
4017
- if (at && !w && !En) {
4017
+ if (at && !b && !En) {
4018
4018
  let Se;
4019
4019
  if (bt != null && (typeof bt.byteLength == "number" ? Se = bt.byteLength : typeof bt.size == "number" ? Se = bt.size : typeof bt == "string" && (Se = typeof i == "function" ? new i().encode(bt).byteLength : bt.length)), typeof Se == "number" && Se > Ye)
4020
4020
  throw new se(
@@ -4071,9 +4071,9 @@ const Aa = "1.18.1", Lr = 64 * 1024, { isFunction: bs } = A, um = (t) => encodeU
4071
4071
  }, fm = /* @__PURE__ */ new Map(), Zl = (t) => {
4072
4072
  let e = t && t.env || {};
4073
4073
  const { fetch: n, Request: i, Response: s } = e, o = [i, s, n];
4074
- let a = o.length, l = a, r, d, f = fm;
4074
+ let a = o.length, l = a, r, d, h = fm;
4075
4075
  for (; l--; )
4076
- r = o[l], d = f.get(r), d === void 0 && f.set(r, d = l ? /* @__PURE__ */ new Map() : cm(e)), f = d;
4076
+ r = o[l], d = h.get(r), d === void 0 && h.set(r, d = l ? /* @__PURE__ */ new Map() : cm(e)), h = d;
4077
4077
  return d;
4078
4078
  };
4079
4079
  Zl();
@@ -4312,32 +4312,32 @@ let Kn = class {
4312
4312
  this.interceptors.response.forEach(function(I) {
4313
4313
  d.push(I.fulfilled, I.rejected);
4314
4314
  });
4315
- let f, h = 0, g;
4315
+ let h, f = 0, g;
4316
4316
  if (!r) {
4317
4317
  const $ = [Br.bind(this), void 0];
4318
- for ($.unshift(...l), $.push(...d), g = $.length, f = Promise.resolve(n); h < g; )
4319
- f = f.then($[h++], $[h++]);
4320
- return f;
4318
+ for ($.unshift(...l), $.push(...d), g = $.length, h = Promise.resolve(n); f < g; )
4319
+ h = h.then($[f++], $[f++]);
4320
+ return h;
4321
4321
  }
4322
4322
  g = l.length;
4323
- let w = n;
4324
- for (; h < g; ) {
4325
- const $ = l[h++], I = l[h++];
4323
+ let b = n;
4324
+ for (; f < g; ) {
4325
+ const $ = l[f++], I = l[f++];
4326
4326
  try {
4327
- w = $(w);
4327
+ b = $(b);
4328
4328
  } catch (E) {
4329
4329
  I.call(this, E);
4330
4330
  break;
4331
4331
  }
4332
4332
  }
4333
4333
  try {
4334
- f = Br.call(this, w);
4334
+ h = Br.call(this, b);
4335
4335
  } catch ($) {
4336
4336
  return Promise.reject($);
4337
4337
  }
4338
- for (h = 0, g = d.length; h < g; )
4339
- f = f.then(d[h++], d[h++]);
4340
- return f;
4338
+ for (f = 0, g = d.length; f < g; )
4339
+ h = h.then(d[f++], d[f++]);
4340
+ return h;
4341
4341
  }
4342
4342
  getUri(e) {
4343
4343
  e = si(this.defaults, e);
@@ -6491,13 +6491,13 @@ const as = /* @__PURE__ */ G({
6491
6491
  [_e.Warning]: "warning",
6492
6492
  [_e.Error]: "negative",
6493
6493
  [_e.Info]: "info"
6494
- }, f = z(() => n.color !== void 0 ? String(n.color) : d[l.value] ?? "primary"), h = {
6494
+ }, h = z(() => n.color !== void 0 ? String(n.color) : d[l.value] ?? "primary"), f = {
6495
6495
  [Ft.XS]: "xs",
6496
6496
  [Ft.S]: "sm",
6497
6497
  [Ft.M]: "md",
6498
6498
  [Ft.L]: "lg",
6499
6499
  [Ft.XL]: "xl"
6500
- }, g = ["xs", "sm", "md", "lg", "xl"], w = z(() => n.size !== void 0 ? String(n.size) : g.includes(e.size) ? e.size : h[e.size] ?? "md"), $ = z(
6500
+ }, g = ["xs", "sm", "md", "lg", "xl"], b = z(() => n.size !== void 0 ? String(n.size) : g.includes(e.size) ? e.size : f[e.size] ?? "md"), $ = z(
6501
6501
  () => n.flat !== void 0 ? n.flat : ["text", "pag", "text_ano"].includes(e.skin)
6502
6502
  ), I = z(
6503
6503
  () => n.outline !== void 0 ? n.outline : e.skin === "invert"
@@ -6506,8 +6506,8 @@ const as = /* @__PURE__ */ G({
6506
6506
  ), T = z(() => n.disable ?? e.disabled);
6507
6507
  return (M, k) => (m(), D(c(gn), st(c(i), {
6508
6508
  style: c(r),
6509
- color: c(f),
6510
- size: c(w),
6509
+ color: c(h),
6510
+ size: c(b),
6511
6511
  flat: c($),
6512
6512
  outline: c(I),
6513
6513
  unelevated: c(E),
@@ -6691,11 +6691,11 @@ const as = /* @__PURE__ */ G({
6691
6691
  }), r = t, d = z(() => {
6692
6692
  var x;
6693
6693
  return !!((x = r.rules) != null && x.length);
6694
- }), f = z(() => {
6694
+ }), h = z(() => {
6695
6695
  const x = r.size === "sm" ? Ft.S : r.size === "xs" ? Ft.XS : r.size;
6696
6696
  return x === Ft.M ? void 0 : `p-field--${x}`;
6697
- }), h = z(() => o.disable ?? r.disabled), g = O(null);
6698
- function w() {
6697
+ }), f = z(() => o.disable ?? r.disabled), g = O(null);
6698
+ function b() {
6699
6699
  var x;
6700
6700
  (x = g.value) == null || x.focus();
6701
6701
  }
@@ -6719,7 +6719,7 @@ const as = /* @__PURE__ */ G({
6719
6719
  var x;
6720
6720
  (x = g.value) == null || x.resetValidation();
6721
6721
  }
6722
- e({ focus: w, blur: $, select: I, getNativeElement: E, validate: T, resetValidation: M });
6722
+ e({ focus: b, blur: $, select: I, getNativeElement: E, validate: T, resetValidation: M });
6723
6723
  const k = () => {
6724
6724
  i("input", s.value);
6725
6725
  }, V = z(() => {
@@ -6735,14 +6735,14 @@ const as = /* @__PURE__ */ G({
6735
6735
  for: c(a),
6736
6736
  label: t.label || void 0,
6737
6737
  mask: t.mask,
6738
- disable: c(h),
6738
+ disable: c(f),
6739
6739
  rules: t.rules,
6740
6740
  error: t.error,
6741
6741
  "error-message": t.errorMessage,
6742
6742
  "hide-bottom-space": !t.error && !t.errorMessage && !c(d),
6743
6743
  "input-style": { color: t.color || void 0 },
6744
6744
  style: c(V),
6745
- class: ["p-input", c(f)],
6745
+ class: ["p-input", c(h)],
6746
6746
  outlined: "",
6747
6747
  dense: "",
6748
6748
  "onUpdate:modelValue": k,
@@ -6837,16 +6837,16 @@ const as = /* @__PURE__ */ G({
6837
6837
  o.value = g, s("update:modelValue", g);
6838
6838
  };
6839
6839
  e({ show: () => a(!0), hide: () => a(!1), toggle: () => a(!o.value), opened: o });
6840
- const f = an(), h = z(() => {
6840
+ const h = an(), f = z(() => {
6841
6841
  const g = {};
6842
- for (const w of Object.keys(f))
6843
- ["modelValue", "persistent", "maximized", "transition-show", "transition-hide", "onUpdate:modelValue"].includes(w) || (g[w] = f[w]);
6842
+ for (const b of Object.keys(h))
6843
+ ["modelValue", "persistent", "maximized", "transition-show", "transition-hide", "onUpdate:modelValue"].includes(b) || (g[b] = h[b]);
6844
6844
  return g;
6845
6845
  });
6846
- return (g, w) => (m(), D(c(bc), st({
6846
+ return (g, b) => (m(), D(c(bc), st({
6847
6847
  modelValue: c(o),
6848
- "onUpdate:modelValue": w[0] || (w[0] = ($) => Re(o) ? o.value = $ : null)
6849
- }, c(h), {
6848
+ "onUpdate:modelValue": b[0] || (b[0] = ($) => Re(o) ? o.value = $ : null)
6849
+ }, c(f), {
6850
6850
  persistent: t.persistent,
6851
6851
  maximized: t.maximized,
6852
6852
  "transition-show": t.transitionShow,
@@ -7052,7 +7052,7 @@ const as = /* @__PURE__ */ G({
7052
7052
  labels: {}
7053
7053
  },
7054
7054
  setup(t) {
7055
- const e = t, n = z(() => ({ ...In, ...e.labels })), i = z(() => e.presetted ?? 0), s = z(() => e.adapter.emails(e.contact)), o = O(!1), a = O(-1), l = O(null), r = O(""), d = O(""), f = O(!1), h = O(!1), g = O(!1), w = O(!1), $ = O(-1), I = async (x) => {
7055
+ const e = t, n = z(() => ({ ...In, ...e.labels })), i = z(() => e.presetted ?? 0), s = z(() => e.adapter.emails(e.contact)), o = O(!1), a = O(-1), l = O(null), r = O(""), d = O(""), h = O(!1), f = O(!1), g = O(!1), b = O(!1), $ = O(-1), I = async (x) => {
7056
7056
  x && (await navigator.clipboard.writeText(x), Y.UI.Notify.Success(n.value.copiedEmail));
7057
7057
  }, E = (x) => {
7058
7058
  var U, R;
@@ -7062,7 +7062,7 @@ const as = /* @__PURE__ */ G({
7062
7062
  Y.UI.Notify.Warning(n.value.enterEmail);
7063
7063
  return;
7064
7064
  }
7065
- f.value = !0;
7065
+ h.value = !0;
7066
7066
  try {
7067
7067
  Object.assign(l.value, {
7068
7068
  ...l.value,
@@ -7072,25 +7072,25 @@ const as = /* @__PURE__ */ G({
7072
7072
  } catch {
7073
7073
  Y.UI.Notify.Error("Ошибка при сохранении");
7074
7074
  } finally {
7075
- f.value = !1;
7075
+ h.value = !1;
7076
7076
  }
7077
7077
  }, M = async () => {
7078
- h.value = !0;
7078
+ f.value = !0;
7079
7079
  try {
7080
7080
  await e.adapter.addEmail(e.contact), E(s.value.length - 1);
7081
7081
  } catch {
7082
7082
  Y.UI.Notify.Error("Ошибка при добавлении");
7083
7083
  } finally {
7084
- h.value = !1;
7084
+ f.value = !1;
7085
7085
  }
7086
7086
  }, k = (x) => {
7087
- $.value = x, w.value = !0;
7087
+ $.value = x, b.value = !0;
7088
7088
  }, V = async () => {
7089
7089
  var x, U;
7090
7090
  g.value = !0;
7091
7091
  try {
7092
7092
  const R = s.value[$.value];
7093
- await e.adapter.removeEmail((U = (x = e.adapter).emailId) == null ? void 0 : U.call(x, R)), s.value.splice($.value, 1), w.value = !1, Y.UI.Notify.Success(n.value.deleted);
7093
+ await e.adapter.removeEmail((U = (x = e.adapter).emailId) == null ? void 0 : U.call(x, R)), s.value.splice($.value, 1), b.value = !1, Y.UI.Notify.Success(n.value.deleted);
7094
7094
  } catch {
7095
7095
  Y.UI.Notify.Error("Ошибка при удалении");
7096
7096
  } finally {
@@ -7125,7 +7125,7 @@ const as = /* @__PURE__ */ G({
7125
7125
  size: "sm",
7126
7126
  color: "primary",
7127
7127
  "no-caps": "",
7128
- loading: c(h),
7128
+ loading: c(f),
7129
7129
  onClick: M
7130
7130
  }, null, 8, ["loading"])
7131
7131
  ]),
@@ -7233,7 +7233,7 @@ const as = /* @__PURE__ */ G({
7233
7233
  color: "primary",
7234
7234
  outline: "",
7235
7235
  size: "sm",
7236
- loading: c(h),
7236
+ loading: c(f),
7237
7237
  onClick: M
7238
7238
  }, null, 8, ["loading"])
7239
7239
  ])),
@@ -7242,7 +7242,7 @@ const as = /* @__PURE__ */ G({
7242
7242
  "onUpdate:modelValue": U[2] || (U[2] = (R) => Re(o) ? o.value = R : null),
7243
7243
  icon: "email",
7244
7244
  title: "Редактирование email",
7245
- saving: c(f),
7245
+ saving: c(h),
7246
7246
  onSave: T
7247
7247
  }, {
7248
7248
  default: C(() => [
@@ -7292,8 +7292,8 @@ const as = /* @__PURE__ */ G({
7292
7292
  _: 1
7293
7293
  }, 8, ["modelValue", "saving"]),
7294
7294
  p(uo, {
7295
- modelValue: c(w),
7296
- "onUpdate:modelValue": U[3] || (U[3] = (R) => Re(w) ? w.value = R : null),
7295
+ modelValue: c(b),
7296
+ "onUpdate:modelValue": U[3] || (U[3] = (R) => Re(b) ? b.value = R : null),
7297
7297
  title: "Удалить email адрес?",
7298
7298
  subtitle: "Это действие нельзя отменить.",
7299
7299
  loading: c(g),
@@ -7321,27 +7321,27 @@ const as = /* @__PURE__ */ G({
7321
7321
  setup(t) {
7322
7322
  const e = t, n = z(() => ({ ...In, ...e.labels })), i = z(() => e.presetted ?? 0), s = z(() => e.adapter.phones(e.contact)), o = O(!1), a = O(-1), l = O(null), r = z(
7323
7323
  () => l.value ? e.adapter.phoneMask(l.value) : void 0
7324
- ), d = O(""), f = O(""), h = O(!1), g = O(!1), w = O(!1), $ = O(!1), I = O(-1), E = async (U) => {
7324
+ ), d = O(""), h = O(""), f = O(!1), g = O(!1), b = O(!1), $ = O(!1), I = O(-1), E = async (U) => {
7325
7325
  U && (await navigator.clipboard.writeText(U), Y.UI.Notify.Success(n.value.copiedNumber));
7326
7326
  }, T = (U) => {
7327
7327
  var R, L;
7328
- a.value = U, l.value = s.value[U], d.value = e.adapter.phoneNumber(s.value[U]), f.value = ((L = (R = e.adapter).phoneDescription) == null ? void 0 : L.call(R, s.value[U])) ?? "", o.value = !0;
7328
+ a.value = U, l.value = s.value[U], d.value = e.adapter.phoneNumber(s.value[U]), h.value = ((L = (R = e.adapter).phoneDescription) == null ? void 0 : L.call(R, s.value[U])) ?? "", o.value = !0;
7329
7329
  }, M = async () => {
7330
7330
  if (!l.value || !d.value) {
7331
7331
  Y.UI.Notify.Warning(n.value.enterPhone);
7332
7332
  return;
7333
7333
  }
7334
- h.value = !0;
7334
+ f.value = !0;
7335
7335
  try {
7336
7336
  Object.assign(l.value, {
7337
7337
  ...l.value,
7338
7338
  number: d.value,
7339
- description: f.value
7339
+ description: h.value
7340
7340
  }), await e.adapter.updatePhone(l.value), o.value = !1, Y.UI.Notify.Success(n.value.saved);
7341
7341
  } catch {
7342
7342
  Y.UI.Notify.Error("Ошибка при сохранении");
7343
7343
  } finally {
7344
- h.value = !1;
7344
+ f.value = !1;
7345
7345
  }
7346
7346
  }, k = async () => {
7347
7347
  g.value = !0;
@@ -7356,14 +7356,14 @@ const as = /* @__PURE__ */ G({
7356
7356
  I.value = U, $.value = !0;
7357
7357
  }, x = async () => {
7358
7358
  var U, R;
7359
- w.value = !0;
7359
+ b.value = !0;
7360
7360
  try {
7361
7361
  const L = s.value[I.value];
7362
7362
  await e.adapter.removePhone((R = (U = e.adapter).phoneId) == null ? void 0 : R.call(U, L)), s.value.splice(I.value, 1), $.value = !1, Y.UI.Notify.Success(n.value.deleted);
7363
7363
  } catch {
7364
7364
  Y.UI.Notify.Error("Ошибка при удалении");
7365
7365
  } finally {
7366
- w.value = !1;
7366
+ b.value = !1;
7367
7367
  }
7368
7368
  };
7369
7369
  return (U, R) => (m(), S("div", pg, [
@@ -7511,7 +7511,7 @@ const as = /* @__PURE__ */ G({
7511
7511
  "onUpdate:modelValue": R[2] || (R[2] = (L) => Re(o) ? o.value = L : null),
7512
7512
  icon: "phone",
7513
7513
  title: "Редактирование телефона",
7514
- saving: c(h),
7514
+ saving: c(f),
7515
7515
  onSave: M
7516
7516
  }, {
7517
7517
  default: C(() => [
@@ -7539,8 +7539,8 @@ const as = /* @__PURE__ */ G({
7539
7539
  }, 8, ["modelValue", "mask", "rules"])) : j("", !0),
7540
7540
  c(l) && c(a) >= c(i) ? (m(), D(qe, {
7541
7541
  key: 1,
7542
- modelValue: c(f),
7543
- "onUpdate:modelValue": R[1] || (R[1] = (L) => Re(f) ? f.value = L : null),
7542
+ modelValue: c(h),
7543
+ "onUpdate:modelValue": R[1] || (R[1] = (L) => Re(h) ? h.value = L : null),
7544
7544
  dense: "",
7545
7545
  label: "Описание (например: Рабочий, Личный)",
7546
7546
  outlined: "",
@@ -7562,7 +7562,7 @@ const as = /* @__PURE__ */ G({
7562
7562
  "onUpdate:modelValue": R[3] || (R[3] = (L) => Re($) ? $.value = L : null),
7563
7563
  title: "Удалить телефонный номер?",
7564
7564
  subtitle: "Это действие нельзя отменить.",
7565
- loading: c(w),
7565
+ loading: c(b),
7566
7566
  onConfirm: x
7567
7567
  }, null, 8, ["modelValue", "loading"])
7568
7568
  ]));
@@ -7585,7 +7585,7 @@ const as = /* @__PURE__ */ G({
7585
7585
  const d = o.value;
7586
7586
  d && (await navigator.clipboard.writeText(d), Y.UI.Notify.Success(n.value.copied));
7587
7587
  };
7588
- return (d, f) => (m(), D(c(Qt), {
7588
+ return (d, h) => (m(), D(c(Qt), {
7589
7589
  flat: "",
7590
7590
  bordered: "",
7591
7591
  class: "contact-form-card",
@@ -7625,7 +7625,7 @@ const as = /* @__PURE__ */ G({
7625
7625
  p(c(_n)),
7626
7626
  y("div", {
7627
7627
  class: "row items-center q-gutter-xs",
7628
- onClick: f[0] || (f[0] = We(() => {
7628
+ onClick: h[0] || (h[0] = We(() => {
7629
7629
  }, ["stop"]))
7630
7630
  }, [
7631
7631
  c(o) ? (m(), D(re, {
@@ -7640,7 +7640,7 @@ const as = /* @__PURE__ */ G({
7640
7640
  }, {
7641
7641
  default: C(() => [
7642
7642
  p(qt, null, {
7643
- default: C(() => [...f[1] || (f[1] = [
7643
+ default: C(() => [...h[1] || (h[1] = [
7644
7644
  ve("Скопировать все контакты", -1)
7645
7645
  ])]),
7646
7646
  _: 1
@@ -7903,33 +7903,33 @@ const xu = /* @__PURE__ */ G({
7903
7903
  },
7904
7904
  emits: ["load"],
7905
7905
  setup(t, { emit: e }) {
7906
- const n = t, i = e, s = Cn(), o = O(!1), a = (h) => {
7907
- const g = new Date(h);
7906
+ const n = t, i = e, s = Cn(), o = O(!1), a = (f) => {
7907
+ const g = new Date(f);
7908
7908
  return { day: g.getDate(), month: g.getMonth() + 1, year: g.getFullYear() };
7909
7909
  }, l = O({
7910
7910
  from: n.model.date1 ? a(n.model.date1) : void 0,
7911
7911
  to: n.model.date2 ? a(n.model.date2) : void 0
7912
7912
  }), r = z(() => {
7913
- const { from: h, to: g } = l.value;
7914
- if (h && g) {
7915
- const w = ($) => $.toString().padStart(2, "0");
7916
- return `${w(h.day)}.${w(h.month)}.${h.year} – ${w(g.day)}.${w(g.month)}.${g.year}`;
7913
+ const { from: f, to: g } = l.value;
7914
+ if (f && g) {
7915
+ const b = ($) => $.toString().padStart(2, "0");
7916
+ return `${b(f.day)}.${b(f.month)}.${f.year} – ${b(g.day)}.${b(g.month)}.${g.year}`;
7917
7917
  }
7918
7918
  return "";
7919
- }), d = (h) => {
7920
- h.from && h.to ? (l.value = h, n.model.date1 = Xn.buildDate(h.from), n.model.date2 = Xn.buildDate(h.to), s.replaceF(n.model, n.model), i("load")) : s.removeF(n.model);
7921
- }, f = () => {
7919
+ }), d = (f) => {
7920
+ f.from && f.to ? (l.value = f, n.model.date1 = Xn.buildDate(f.from), n.model.date2 = Xn.buildDate(f.to), s.replaceF(n.model, n.model), i("load")) : s.removeF(n.model);
7921
+ }, h = () => {
7922
7922
  s.removeF(n.model), l.value = {}, i("load");
7923
7923
  };
7924
- return (h, g) => {
7925
- const w = vl("close-popup");
7924
+ return (f, g) => {
7925
+ const b = vl("close-popup");
7926
7926
  return m(), D(qe, {
7927
7927
  "model-value": c(r),
7928
7928
  label: t.label,
7929
7929
  clearable: "",
7930
7930
  readonly: "",
7931
7931
  onClick: g[2] || (g[2] = ($) => o.value = !0),
7932
- onClear: f
7932
+ onClear: h
7933
7933
  }, {
7934
7934
  append: C(() => [
7935
7935
  p(c(ae), {
@@ -7959,15 +7959,15 @@ const xu = /* @__PURE__ */ G({
7959
7959
  color: "primary",
7960
7960
  flat: ""
7961
7961
  }, null, 512), [
7962
- [w]
7962
+ [b]
7963
7963
  ]),
7964
7964
  it(p(re, {
7965
7965
  label: "Очистить",
7966
7966
  color: "negative",
7967
7967
  flat: "",
7968
- onClick: f
7968
+ onClick: h
7969
7969
  }, null, 512), [
7970
- [w]
7970
+ [b]
7971
7971
  ])
7972
7972
  ])
7973
7973
  ]),
@@ -7998,14 +7998,14 @@ const xu = /* @__PURE__ */ G({
7998
7998
  i.model.value1 = l.value, l.value ? o.replaceF(i.model, i.model) : o.removeF(i.model), s("input");
7999
7999
  };
8000
8000
  return e({ focus: () => {
8001
- var d, f;
8002
- return (f = (d = a.value) == null ? void 0 : d.focus) == null ? void 0 : f.call(d);
8003
- } }), (d, f) => (m(), D(qe, {
8001
+ var d, h;
8002
+ return (h = (d = a.value) == null ? void 0 : d.focus) == null ? void 0 : h.call(d);
8003
+ } }), (d, h) => (m(), D(qe, {
8004
8004
  ref_key: "inputRef",
8005
8005
  ref: a,
8006
8006
  modelValue: c(l),
8007
8007
  "onUpdate:modelValue": [
8008
- f[0] || (f[0] = (h) => Re(l) ? l.value = h : null),
8008
+ h[0] || (h[0] = (f) => Re(l) ? l.value = f : null),
8009
8009
  r
8010
8010
  ],
8011
8011
  debounce: t.debounce,
@@ -8040,7 +8040,7 @@ const xu = /* @__PURE__ */ G({
8040
8040
  return (r, d) => (m(), D(qe, {
8041
8041
  modelValue: c(o),
8042
8042
  "onUpdate:modelValue": [
8043
- d[0] || (d[0] = (f) => Re(o) ? o.value = f : null),
8043
+ d[0] || (d[0] = (h) => Re(o) ? o.value = h : null),
8044
8044
  a
8045
8045
  ],
8046
8046
  debounce: t.debounce,
@@ -8128,16 +8128,16 @@ const xu = /* @__PURE__ */ G({
8128
8128
  var x;
8129
8129
  (x = o.value) == null || x.hidePopup();
8130
8130
  }
8131
- async function f() {
8131
+ async function h() {
8132
8132
  var x;
8133
8133
  return await ((x = o.value) == null ? void 0 : x.validate()) ?? !0;
8134
8134
  }
8135
- function h() {
8135
+ function f() {
8136
8136
  var x;
8137
8137
  (x = o.value) == null || x.resetValidation();
8138
8138
  }
8139
- e({ focus: a, blur: l, showPopup: r, hidePopup: d, validate: f, resetValidation: h });
8140
- const g = an(), w = z(() => typeof g.id == "string" ? g.id : void 0), $ = z(() => {
8139
+ e({ focus: a, blur: l, showPopup: r, hidePopup: d, validate: h, resetValidation: f });
8140
+ const g = an(), b = z(() => typeof g.id == "string" ? g.id : void 0), $ = z(() => {
8141
8141
  const x = {};
8142
8142
  for (const U of Object.keys(g))
8143
8143
  U !== "id" && U !== "disable" && (x[U] = g[U]);
@@ -8159,7 +8159,7 @@ const xu = /* @__PURE__ */ G({
8159
8159
  modelValue: i.value,
8160
8160
  "onUpdate:modelValue": U[0] || (U[0] = (R) => i.value = R)
8161
8161
  }, c($), {
8162
- for: c(w),
8162
+ for: c(b),
8163
8163
  options: t.options,
8164
8164
  label: t.label || void 0,
8165
8165
  placeholder: t.placeholder,
@@ -8301,20 +8301,20 @@ const xu = /* @__PURE__ */ G({
8301
8301
  },
8302
8302
  emits: ["load"],
8303
8303
  setup(t, { emit: e }) {
8304
- const n = t, i = e, s = Cn(), o = O(n.options), a = O(void 0), l = (d, f) => {
8304
+ const n = t, i = e, s = Cn(), o = O(n.options), a = O(void 0), l = (d, h) => {
8305
8305
  if (d === "") {
8306
- f(() => {
8306
+ h(() => {
8307
8307
  o.value = n.options;
8308
8308
  });
8309
8309
  return;
8310
8310
  }
8311
- f(() => {
8312
- o.value = n.options.filter((h) => Y.H.Strings.SearchInFields(d, [h.label]));
8311
+ h(() => {
8312
+ o.value = n.options.filter((f) => Y.H.Strings.SearchInFields(d, [f.label]));
8313
8313
  });
8314
8314
  }, r = (d) => {
8315
8315
  d ? (a.value = d, s.replaceF(d.value, d.value)) : (a.value && s.removeF(a.value.value), a.value = void 0), i("load");
8316
8316
  };
8317
- return (d, f) => (m(), D(nn, st(d.$attrs, {
8317
+ return (d, h) => (m(), D(nn, st(d.$attrs, {
8318
8318
  "use-input": "",
8319
8319
  options: c(o),
8320
8320
  "model-value": c(a),
@@ -8339,35 +8339,35 @@ const xu = /* @__PURE__ */ G({
8339
8339
  const n = t, i = e, s = Cn(), o = z(() => n.storeOpts.Options ?? []), a = O([]);
8340
8340
  Be(
8341
8341
  o,
8342
- (h) => {
8343
- a.value = h;
8342
+ (f) => {
8343
+ a.value = f;
8344
8344
  },
8345
8345
  { immediate: !0 }
8346
8346
  );
8347
- const l = O(n.model), r = O([]), d = (h, g) => {
8348
- if (h === "") {
8347
+ const l = O(n.model), r = O([]), d = (f, g) => {
8348
+ if (f === "") {
8349
8349
  g(() => {
8350
8350
  a.value = o.value;
8351
8351
  });
8352
8352
  return;
8353
8353
  }
8354
8354
  g(() => {
8355
- a.value = o.value.filter((w) => Y.H.Strings.SearchInFields(h, [w.label]));
8355
+ a.value = o.value.filter((b) => Y.H.Strings.SearchInFields(f, [b.label]));
8356
8356
  });
8357
- }, f = () => {
8357
+ }, h = () => {
8358
8358
  if (r.value && r.value.length > 0)
8359
8359
  r.value.length === 1 && l.value.set.length === 0 && s.setF(l.value), l.value.set = r.value;
8360
8360
  else {
8361
- const h = s.f.findIndex((g) => g.eq(l.value));
8362
- Y.H.Classes.RemoveFromClassByIndex(h, s.f);
8361
+ const f = s.f.findIndex((g) => g.eq(l.value));
8362
+ Y.H.Classes.RemoveFromClassByIndex(f, s.f);
8363
8363
  }
8364
8364
  i("load");
8365
8365
  };
8366
- return (h, g) => (m(), D(nn, {
8366
+ return (f, g) => (m(), D(nn, {
8367
8367
  modelValue: c(r),
8368
8368
  "onUpdate:modelValue": [
8369
- g[0] || (g[0] = (w) => Re(r) ? r.value = w : null),
8370
- f
8369
+ g[0] || (g[0] = (b) => Re(r) ? r.value = b : null),
8370
+ h
8371
8371
  ],
8372
8372
  "use-input": "",
8373
8373
  options: c(a),
@@ -8522,16 +8522,16 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8522
8522
  return;
8523
8523
  }
8524
8524
  k instanceof Date ? l.value = "date" : (typeof k == "string" && k || l.value === null) && (l.value = "string");
8525
- }, d = (k) => k ? k instanceof Date ? At.ToRu(k) : At.IsoToRu(String(k)) : "", f = (k) => At.ParseRu(k), h = O(d(o.value));
8525
+ }, d = (k) => k ? k instanceof Date ? At.ToRu(k) : At.IsoToRu(String(k)) : "", h = (k) => At.ParseRu(k), f = O(d(o.value));
8526
8526
  r(o.value);
8527
8527
  const g = z(() => {
8528
- const k = h.value;
8528
+ const k = f.value;
8529
8529
  return !k || k.length < 10 || au(i.invalidMessage, !0)(k) === !0 ? "" : i.invalidMessage;
8530
- }), w = O(!1);
8530
+ }), b = O(!1);
8531
8531
  Be(o, (k) => {
8532
8532
  r(k);
8533
8533
  const V = d(k);
8534
- V !== h.value && (w.value = !0, h.value = V, w.value = !1);
8534
+ V !== f.value && (b.value = !0, f.value = V, b.value = !1);
8535
8535
  });
8536
8536
  const $ = (k) => {
8537
8537
  if (!k) {
@@ -8541,7 +8541,7 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8541
8541
  }
8542
8542
  const V = k instanceof Date ? At.ToRu(k) : String(k);
8543
8543
  if (!/^\d{2}\.\d{2}\.\d{4}$/.test(V)) return;
8544
- const x = f(V);
8544
+ const x = h(V);
8545
8545
  if (!x) return;
8546
8546
  if (l.value === "date") {
8547
8547
  o.value = x, s("input", x);
@@ -8550,14 +8550,14 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8550
8550
  const U = At.RuToIso(V);
8551
8551
  U && (o.value = U, s("input", U));
8552
8552
  };
8553
- Be(h, (k) => {
8554
- w.value || $(k);
8553
+ Be(f, (k) => {
8554
+ b.value || $(k);
8555
8555
  });
8556
8556
  const I = (k) => {
8557
8557
  $(typeof k == "number" ? String(k) : k);
8558
8558
  }, E = () => {
8559
- const k = h.value;
8560
- !k || k.length === 10 && !!f(k) || (w.value = !0, h.value = d(o.value), w.value = !1), h.value !== d(o.value) && s("blur", o.value);
8559
+ const k = f.value;
8560
+ !k || k.length === 10 && !!h(k) || (b.value = !0, f.value = d(o.value), b.value = !1), f.value !== d(o.value) && s("blur", o.value);
8561
8561
  }, T = async () => {
8562
8562
  await ji(), await ji(), s("blur", o.value);
8563
8563
  }, M = {
@@ -8572,9 +8572,9 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8572
8572
  pluralDay: "дни"
8573
8573
  };
8574
8574
  return (k, V) => (m(), D(qe, {
8575
- modelValue: c(h),
8575
+ modelValue: c(f),
8576
8576
  "onUpdate:modelValue": [
8577
- V[1] || (V[1] = (x) => Re(h) ? h.value = x : null),
8577
+ V[1] || (V[1] = (x) => Re(f) ? f.value = x : null),
8578
8578
  I
8579
8579
  ],
8580
8580
  class: "fit",
@@ -8608,9 +8608,9 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8608
8608
  }, {
8609
8609
  default: C(() => [
8610
8610
  p(c(Ws), {
8611
- modelValue: c(h),
8611
+ modelValue: c(f),
8612
8612
  "onUpdate:modelValue": [
8613
- V[0] || (V[0] = (x) => Re(h) ? h.value = x : null),
8613
+ V[0] || (V[0] = (x) => Re(f) ? f.value = x : null),
8614
8614
  T
8615
8615
  ],
8616
8616
  mask: Gr,
@@ -8750,9 +8750,9 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8750
8750
  }), a = t, l = () => {
8751
8751
  const x = a.step.toString();
8752
8752
  return x.includes(".") ? x.split(".")[1].length : 0;
8753
- }, r = l(), d = ft(t, "modelValue"), h = ((x) => Math.min(Math.max(x, a.min), a.max))(d.value);
8754
- h !== d.value && (d.value = h);
8755
- const g = O(h.toFixed(l())), w = z(() => {
8753
+ }, r = l(), d = ft(t, "modelValue"), f = ((x) => Math.min(Math.max(x, a.min), a.max))(d.value);
8754
+ f !== d.value && (d.value = f);
8755
+ const g = O(f.toFixed(l())), b = z(() => {
8756
8756
  const x = {};
8757
8757
  return a.margin && (x.margin = a.margin), a.padding && (x.padding = a.padding), x;
8758
8758
  }), $ = (x) => {
@@ -8772,7 +8772,7 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8772
8772
  type: "number",
8773
8773
  disable: t.disabled,
8774
8774
  "input-style": { color: t.disabled ? "var(--font-secondary-disabled-color)" : t.color, textAlign: "center" },
8775
- style: c(w),
8775
+ style: c(b),
8776
8776
  outlined: "",
8777
8777
  dense: "",
8778
8778
  "hide-bottom-space": "",
@@ -8884,7 +8884,7 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8884
8884
  });
8885
8885
  return (r, d) => (m(), D(c(Ji), st({
8886
8886
  modelValue: e.value,
8887
- "onUpdate:modelValue": d[0] || (d[0] = (f) => e.value = f)
8887
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => e.value = h)
8888
8888
  }, c(s), {
8889
8889
  for: c(i),
8890
8890
  label: t.label || void 0,
@@ -8897,9 +8897,9 @@ const ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8897
8897
  outlined: "",
8898
8898
  dense: "",
8899
8899
  "hide-bottom-space": "",
8900
- "onUpdate:modelValue": d[1] || (d[1] = (f) => r.$emit("input", e.value)),
8901
- onBlur: d[2] || (d[2] = (f) => r.$emit("blur", e.value)),
8902
- onFocus: d[3] || (d[3] = (f) => r.$emit("focus", e.value))
8900
+ "onUpdate:modelValue": d[1] || (d[1] = (h) => r.$emit("input", e.value)),
8901
+ onBlur: d[2] || (d[2] = (h) => r.$emit("blur", e.value)),
8902
+ onFocus: d[3] || (d[3] = (h) => r.$emit("focus", e.value))
8903
8903
  }), {
8904
8904
  before: C(() => [
8905
8905
  N(r.$slots, "default", {}, void 0, !0)
@@ -8938,18 +8938,18 @@ const lv = { class: "p-form-field" }, uv = { key: 5 }, dv = { key: 6 }, ho = /*
8938
8938
  emits: ["update:fill"],
8939
8939
  setup(t) {
8940
8940
  const e = t, n = ft(t, "fill"), i = z(() => {
8941
- var w;
8942
- return String(((w = e.field.valueType) == null ? void 0 : w.name) || "string");
8943
- }), s = z(() => i.value === "string"), o = z(() => i.value === "text"), a = z(() => i.value === "number"), l = z(() => i.value === "date" || i.value === "dateTime"), r = z(() => i.value === "boolean"), d = z(() => i.value === "radio"), f = z(() => i.value === "set"), h = (w) => {
8941
+ var b;
8942
+ return String(((b = e.field.valueType) == null ? void 0 : b.name) || "string");
8943
+ }), s = z(() => i.value === "string"), o = z(() => i.value === "text"), a = z(() => i.value === "number"), l = z(() => i.value === "date" || i.value === "dateTime"), r = z(() => i.value === "boolean"), d = z(() => i.value === "radio"), h = z(() => i.value === "set"), f = (b) => {
8944
8944
  var $;
8945
- return !!(($ = n.value.selectedAnswerVariants) != null && $.some((I) => I.answerVariantId === w));
8946
- }, g = (w, $) => {
8947
- if (!w)
8945
+ return !!(($ = n.value.selectedAnswerVariants) != null && $.some((I) => I.answerVariantId === b));
8946
+ }, g = (b, $) => {
8947
+ if (!b)
8948
8948
  return;
8949
8949
  const I = n.value.selectedAnswerVariants;
8950
- $ && !I.some((E) => E.answerVariantId === w) ? I.push(Mn.Create(n.value.id, w)) : $ || (n.value.selectedAnswerVariants = I.filter((E) => E.answerVariantId !== w)), n.value.filled = n.value.selectedAnswerVariants.length > 0;
8950
+ $ && !I.some((E) => E.answerVariantId === b) ? I.push(Mn.Create(n.value.id, b)) : $ || (n.value.selectedAnswerVariants = I.filter((E) => E.answerVariantId !== b)), n.value.filled = n.value.selectedAnswerVariants.length > 0;
8951
8951
  };
8952
- return (w, $) => (m(), S("div", lv, [
8952
+ return (b, $) => (m(), S("div", lv, [
8953
8953
  s.value ? (m(), D(qe, {
8954
8954
  key: 0,
8955
8955
  "model-value": n.value.valueString,
@@ -8978,11 +8978,11 @@ const lv = { class: "p-form-field" }, uv = { key: 5 }, dv = { key: 6 }, ho = /*
8978
8978
  value: I.id,
8979
8979
  onChange: $[5] || ($[5] = (E) => n.value.setRadio(E))
8980
8980
  }, null, 8, ["label", "model-value", "value"]))), 128))
8981
- ])) : f.value ? (m(), S("div", dv, [
8981
+ ])) : h.value ? (m(), S("div", dv, [
8982
8982
  (m(!0), S(K, null, we(t.field.answerVariants, (I) => (m(), D(Qi, {
8983
8983
  key: I.id,
8984
8984
  label: I.name,
8985
- "model-value": h(I.id),
8985
+ "model-value": f(I.id),
8986
8986
  "onUpdate:modelValue": (E) => g(I.id, !!E)
8987
8987
  }, null, 8, ["label", "model-value", "onUpdate:modelValue"]))), 128))
8988
8988
  ])) : (m(), D(qe, {
@@ -9021,9 +9021,9 @@ function cv(t, e) {
9021
9021
  if (t == null) return {};
9022
9022
  var n, i, s = function(a, l) {
9023
9023
  if (a == null) return {};
9024
- var r, d, f = {}, h = Object.keys(a);
9025
- for (d = 0; d < h.length; d++) r = h[d], l.indexOf(r) >= 0 || (f[r] = a[r]);
9026
- return f;
9024
+ var r, d, h = {}, f = Object.keys(a);
9025
+ for (d = 0; d < f.length; d++) r = f[d], l.indexOf(r) >= 0 || (h[r] = a[r]);
9026
+ return h;
9027
9027
  }(t, e);
9028
9028
  if (Object.getOwnPropertySymbols) {
9029
9029
  var o = Object.getOwnPropertySymbols(t);
@@ -9099,14 +9099,14 @@ var Yr, fv, ws, dt = (Yr = function(t) {
9099
9099
  function ha(t, e, n) {
9100
9100
  var i, s, o, a, l;
9101
9101
  function r() {
9102
- var f = Date.now() - a;
9103
- f < e && f >= 0 ? i = setTimeout(r, e - f) : (i = null, n || (l = t.apply(o, s), o = s = null));
9102
+ var h = Date.now() - a;
9103
+ h < e && h >= 0 ? i = setTimeout(r, e - h) : (i = null, n || (l = t.apply(o, s), o = s = null));
9104
9104
  }
9105
9105
  e == null && (e = 100);
9106
9106
  var d = function() {
9107
9107
  o = this, s = arguments, a = Date.now();
9108
- var f = n && !i;
9109
- return i || (i = setTimeout(r, e)), f && (l = t.apply(o, s), o = s = null), l;
9108
+ var h = n && !i;
9109
+ return i || (i = setTimeout(r, e)), h && (l = t.apply(o, s), o = s = null), l;
9110
9110
  };
9111
9111
  return d.clear = function() {
9112
9112
  i && (clearTimeout(i), i = null);
@@ -9391,9 +9391,9 @@ function el(t, e) {
9391
9391
  }
9392
9392
  function Pn(t) {
9393
9393
  var e = t.width, n = t.height, i = t.sizeRestrictions, s = { minimum: t.aspectRatio && t.aspectRatio.minimum || 0, maximum: t.aspectRatio && t.aspectRatio.maximum || 1 / 0 }, o = { width: Math.max(i.minWidth, Math.min(i.maxWidth, e)), height: Math.max(i.minHeight, Math.min(i.maxHeight, n)) };
9394
- function a(d, f) {
9395
- return f === void 0 && (f = !1), d.reduce(function(h, g) {
9396
- return Kr({ size: g, aspectRatio: s, sizeRestrictions: i, ignoreMinimum: f }) && (!h || el(g, { width: e, height: n }) < el(h, { width: e, height: n })) ? g : h;
9394
+ function a(d, h) {
9395
+ return h === void 0 && (h = !1), d.reduce(function(f, g) {
9396
+ return Kr({ size: g, aspectRatio: s, sizeRestrictions: i, ignoreMinimum: h }) && (!f || el(g, { width: e, height: n }) < el(f, { width: e, height: n })) ? g : f;
9397
9397
  }, null);
9398
9398
  }
9399
9399
  var l = [];
@@ -9408,15 +9408,15 @@ function va(t) {
9408
9408
  return Nt(o, xi(o, s));
9409
9409
  }
9410
9410
  function Sv(t) {
9411
- var e = t.coordinates, n = t.transform, i = t.imageSize, s = t.sizeRestrictions, o = t.positionRestrictions, a = t.aspectRatio, l = t.visibleArea, r = function(f, h) {
9412
- return va({ coordinates: f, positionRestrictions: o, event: new Va({ left: h.left - f.left, top: h.top - f.top }) });
9411
+ var e = t.coordinates, n = t.transform, i = t.imageSize, s = t.sizeRestrictions, o = t.positionRestrictions, a = t.aspectRatio, l = t.visibleArea, r = function(h, f) {
9412
+ return va({ coordinates: h, positionRestrictions: o, event: new Va({ left: f.left - h.left, top: f.top - h.top }) });
9413
9413
  }, d = ge({}, e);
9414
- return (Array.isArray(n) ? n : [n]).forEach(function(f) {
9415
- var h = {};
9416
- gt((h = typeof f == "function" ? f({ coordinates: d, imageSize: i, visibleArea: l }) : f).width) && gt(h.height) || (d = function(g, w) {
9417
- var $ = ge(ge(ge({}, g), Pn({ width: w.width, height: w.height, sizeRestrictions: s, aspectRatio: a })), { left: 0, top: 0 });
9414
+ return (Array.isArray(n) ? n : [n]).forEach(function(h) {
9415
+ var f = {};
9416
+ gt((f = typeof h == "function" ? h({ coordinates: d, imageSize: i, visibleArea: l }) : h).width) && gt(f.height) || (d = function(g, b) {
9417
+ var $ = ge(ge(ge({}, g), Pn({ width: b.width, height: b.height, sizeRestrictions: s, aspectRatio: a })), { left: 0, top: 0 });
9418
9418
  return r($, { left: g.left, top: g.top });
9419
- }(d, ge(ge({}, d), h))), gt(h.left) && gt(h.top) || (d = r(d, ge(ge({}, d), h)));
9419
+ }(d, ge(ge({}, d), f))), gt(f.left) && gt(f.top) || (d = r(d, ge(ge({}, d), f)));
9420
9420
  }), d;
9421
9421
  }
9422
9422
  function Cv(t) {
@@ -9425,10 +9425,10 @@ function Cv(t) {
9425
9425
  t.aspectRatio;
9426
9426
  var o = t.stencilSize, a = t.sizeRestrictions, l = t.positionRestrictions;
9427
9427
  t.stencilReference;
9428
- var r, d, f, h = ge({}, i), g = ge({}, s), w = ge({}, o);
9429
- r = Le(w), d = Le(h), f === void 0 && (f = 1e-3), (r === 0 || d === 0 ? Math.abs(d - r) < f : Math.abs(d / r) < 1 + f && Math.abs(d / r) > 1 - f) || (h = ge(ge({}, h), Pn({ sizeRestrictions: a, width: h.width, height: h.height, aspectRatio: { minimum: Le(w), maximum: Le(w) } })));
9430
- var $ = po(g = Jt(g, h.width * n.width / (g.width * w.width)), e({ visibleArea: g, type: "resize" }));
9431
- return $ !== 1 && (g = Jt(g, $), h = Jt(h, $)), g = Tt(g = Nt(g, Ci($t(h), $t(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = Tt(h, go(bn(g), l)), visibleArea: g };
9428
+ var r, d, h, f = ge({}, i), g = ge({}, s), b = ge({}, o);
9429
+ r = Le(b), d = Le(f), h === void 0 && (h = 1e-3), (r === 0 || d === 0 ? Math.abs(d - r) < h : Math.abs(d / r) < 1 + h && Math.abs(d / r) > 1 - h) || (f = ge(ge({}, f), Pn({ sizeRestrictions: a, width: f.width, height: f.height, aspectRatio: { minimum: Le(b), maximum: Le(b) } })));
9430
+ var $ = po(g = Jt(g, f.width * n.width / (g.width * b.width)), e({ visibleArea: g, type: "resize" }));
9431
+ return $ !== 1 && (g = Jt(g, $), f = Jt(f, $)), g = Tt(g = Nt(g, Ci($t(f), $t(g))), e({ visibleArea: g, type: "move" })), { coordinates: f = Tt(f, go(bn(g), l)), visibleArea: g };
9432
9432
  }
9433
9433
  function kv(t) {
9434
9434
  var e = t.event, n = t.getAreaRestrictions, i = t.boundaries, s = t.coordinates, o = t.visibleArea;
@@ -9439,8 +9439,8 @@ function kv(t) {
9439
9439
  if (s && o && e.type !== "manipulateImage") {
9440
9440
  var d = { width: 0, height: 0 };
9441
9441
  r.width, i.width, Le(i) > Le(l) ? (d.height = 0.8 * i.height, d.width = d.height * Le(l)) : (d.width = 0.8 * i.width, d.height = d.width * Le(l));
9442
- var f = po(r = Jt(r, l.width * i.width / (r.width * d.width)), n({ visibleArea: r, type: "resize" }));
9443
- r = Jt(r, f), f !== 1 && (d.height /= f, d.width /= f), r = Tt(r = Nt(r, Ci($t(l), $t(r))), n({ visibleArea: r, type: "move" })), l = Tt(l, go(bn(r), a));
9442
+ var h = po(r = Jt(r, l.width * i.width / (r.width * d.width)), n({ visibleArea: r, type: "resize" }));
9443
+ r = Jt(r, h), h !== 1 && (d.height /= h, d.width /= h), r = Tt(r = Nt(r, Ci($t(l), $t(r))), n({ visibleArea: r, type: "move" })), l = Tt(l, go(bn(r), a));
9444
9444
  }
9445
9445
  return { coordinates: l, visibleArea: r };
9446
9446
  }
@@ -9470,52 +9470,52 @@ function Rv(t) {
9470
9470
  var o = { height: Math.max(n.height, i.height), width: Math.max(n.width, i.width) }, a = Nu({ width: Le(o) > s ? o.width : o.height * s, height: Le(o) > s ? o.width / s : o.height }, ga(e())), l = { left: n.left + n.width / 2 - a.width / 2, top: n.top + n.height / 2 - a.height / 2, width: a.width, height: a.height }, r = Zi(n, bn(ge({ left: 0, top: 0 }, i))), d = {};
9471
9471
  return !r.left && !r.right && l.width <= i.width && (d.left = 0, d.right = i.width), !r.top && !r.bottom && l.height <= i.height && (d.top = 0, d.bottom = i.height), Tt(l, d);
9472
9472
  }
9473
- var f = Le(i);
9474
- return a = { height: f > s ? i.height : i.width / s, width: f > s ? i.height * s : i.width }, { left: i.width / 2 - a.width / 2, top: i.height / 2 - a.height / 2, width: a.width, height: a.height };
9473
+ var h = Le(i);
9474
+ return a = { height: h > s ? i.height : i.width / s, width: h > s ? i.height * s : i.width }, { left: i.width / 2 - a.width / 2, top: i.height / 2 - a.height / 2, width: a.width, height: a.height };
9475
9475
  }
9476
9476
  function Cs(t, e) {
9477
9477
  return ju(t, bn(e));
9478
9478
  }
9479
9479
  function Iv(t) {
9480
- var e = t.event, n = t.coordinates, i = t.visibleArea, s = t.sizeRestrictions, o = t.getAreaRestrictions, a = t.positionRestrictions, l = t.adjustStencil, r = e.scale, d = e.move, f = ge({}, i), h = ge({}, n), g = 1, w = 1, $ = r.factor && Math.abs(r.factor - 1) > 1e-3;
9481
- f = Nt(f, { left: d.left || 0, top: d.top || 0 });
9482
- var I = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / h.width : 0, s.minHeight ? s.minHeight / h.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / h.width : 1 / 0, s.maxHeight ? s.maxHeight / h.height : 1 / 0, ki(h, a)) }, area: { maximum: ki(f, o({ visibleArea: f, type: "resize" })) } };
9483
- r.factor && $ && (r.factor < 1 ? (w = Math.max(r.factor, I.stencil.minimum)) > 1 && (w = 1) : r.factor > 1 && (w = Math.min(r.factor, Math.min(I.area.maximum, I.stencil.maximum))) < 1 && (w = 1)), w && (f = Jt(f, w, r.center));
9480
+ var e = t.event, n = t.coordinates, i = t.visibleArea, s = t.sizeRestrictions, o = t.getAreaRestrictions, a = t.positionRestrictions, l = t.adjustStencil, r = e.scale, d = e.move, h = ge({}, i), f = ge({}, n), g = 1, b = 1, $ = r.factor && Math.abs(r.factor - 1) > 1e-3;
9481
+ h = Nt(h, { left: d.left || 0, top: d.top || 0 });
9482
+ var I = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / f.width : 0, s.minHeight ? s.minHeight / f.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / f.width : 1 / 0, s.maxHeight ? s.maxHeight / f.height : 1 / 0, ki(f, a)) }, area: { maximum: ki(h, o({ visibleArea: h, type: "resize" })) } };
9483
+ r.factor && $ && (r.factor < 1 ? (b = Math.max(r.factor, I.stencil.minimum)) > 1 && (b = 1) : r.factor > 1 && (b = Math.min(r.factor, Math.min(I.area.maximum, I.stencil.maximum))) < 1 && (b = 1)), b && (h = Jt(h, b, r.center));
9484
9484
  var E = n.left - i.left, T = i.width + i.left - (n.width + n.left), M = n.top - i.top, k = i.height + i.top - (n.height + n.top);
9485
- return f = Tt(f = Nt(f, xi(f, { left: a.left !== void 0 ? a.left - E * w : void 0, top: a.top !== void 0 ? a.top - M * w : void 0, bottom: a.bottom !== void 0 ? a.bottom + k * w : void 0, right: a.right !== void 0 ? a.right + T * w : void 0 })), o({ visibleArea: f, type: "move" })), h.width = h.width * w, h.height = h.height * w, h.left = f.left + E * w, h.top = f.top + M * w, h = Tt(h, go(bn(f), a)), r.factor && $ && l && (r.factor > 1 ? g = Math.min(I.area.maximum, r.factor) / w : r.factor < 1 && (g = Math.max(h.height / f.height, h.width / f.width, r.factor / w)), g !== 1 && (f = Nt(f = Tt(f = Jt(f, g, r.factor > 1 ? r.center : $t(h)), o({ visibleArea: f, type: "move" })), mo(xi(h, bn(f)))))), { coordinates: h, visibleArea: f };
9485
+ return h = Tt(h = Nt(h, xi(h, { left: a.left !== void 0 ? a.left - E * b : void 0, top: a.top !== void 0 ? a.top - M * b : void 0, bottom: a.bottom !== void 0 ? a.bottom + k * b : void 0, right: a.right !== void 0 ? a.right + T * b : void 0 })), o({ visibleArea: h, type: "move" })), f.width = f.width * b, f.height = f.height * b, f.left = h.left + E * b, f.top = h.top + M * b, f = Tt(f, go(bn(h), a)), r.factor && $ && l && (r.factor > 1 ? g = Math.min(I.area.maximum, r.factor) / b : r.factor < 1 && (g = Math.max(f.height / h.height, f.width / h.width, r.factor / b)), g !== 1 && (h = Nt(h = Tt(h = Jt(h, g, r.factor > 1 ? r.center : $t(f)), o({ visibleArea: h, type: "move" })), mo(xi(f, bn(h)))))), { coordinates: f, visibleArea: h };
9486
9486
  }
9487
9487
  function Mv(t) {
9488
- var e = t.aspectRatio, n = t.getAreaRestrictions, i = t.coordinates, s = t.visibleArea, o = t.sizeRestrictions, a = t.positionRestrictions, l = t.imageSize, r = t.previousImageSize, d = t.angle, f = ge({}, i), h = ge({}, s), g = Vn($t(ge({ left: 0, top: 0 }, r)), d);
9489
- return (f = ge(ge({}, Pn({ sizeRestrictions: o, aspectRatio: e, width: f.width, height: f.height })), Vn($t(f), d))).left -= g.left - l.width / 2 + f.width / 2, f.top -= g.top - l.height / 2 + f.height / 2, h = Jt(h, po(h, n({ visibleArea: h, type: "resize" }))), { coordinates: f = Tt(f, a), visibleArea: h = Tt(h = Nt(h, Ci($t(f), $t(i))), n({ visibleArea: h, type: "move" })) };
9488
+ var e = t.aspectRatio, n = t.getAreaRestrictions, i = t.coordinates, s = t.visibleArea, o = t.sizeRestrictions, a = t.positionRestrictions, l = t.imageSize, r = t.previousImageSize, d = t.angle, h = ge({}, i), f = ge({}, s), g = Vn($t(ge({ left: 0, top: 0 }, r)), d);
9489
+ return (h = ge(ge({}, Pn({ sizeRestrictions: o, aspectRatio: e, width: h.width, height: h.height })), Vn($t(h), d))).left -= g.left - l.width / 2 + h.width / 2, h.top -= g.top - l.height / 2 + h.height / 2, f = Jt(f, po(f, n({ visibleArea: f, type: "resize" }))), { coordinates: h = Tt(h, a), visibleArea: f = Tt(f = Nt(f, Ci($t(h), $t(i))), n({ visibleArea: f, type: "move" })) };
9490
9490
  }
9491
9491
  function Av(t) {
9492
- var e = t.flip, n = t.previousFlip, i = t.rotate, s = t.getAreaRestrictions, o = t.coordinates, a = t.visibleArea, l = t.imageSize, r = ge({}, o), d = ge({}, a), f = n.horizontal !== e.horizontal, h = n.vertical !== e.vertical;
9493
- if (f || h) {
9494
- var g = Vn({ left: l.width / 2, top: l.height / 2 }, -i), w = Vn($t(r), -i), $ = Vn({ left: f ? g.left - (w.left - g.left) : w.left, top: h ? g.top - (w.top - g.top) : w.top }, i);
9495
- r = Nt(r, Ci($, $t(r))), w = Vn($t(d), -i), d = Tt(d = Nt(d, Ci($ = Vn({ left: f ? g.left - (w.left - g.left) : w.left, top: h ? g.top - (w.top - g.top) : w.top }, i), $t(d))), s({ visibleArea: d, type: "move" }));
9492
+ var e = t.flip, n = t.previousFlip, i = t.rotate, s = t.getAreaRestrictions, o = t.coordinates, a = t.visibleArea, l = t.imageSize, r = ge({}, o), d = ge({}, a), h = n.horizontal !== e.horizontal, f = n.vertical !== e.vertical;
9493
+ if (h || f) {
9494
+ var g = Vn({ left: l.width / 2, top: l.height / 2 }, -i), b = Vn($t(r), -i), $ = Vn({ left: h ? g.left - (b.left - g.left) : b.left, top: f ? g.top - (b.top - g.top) : b.top }, i);
9495
+ r = Nt(r, Ci($, $t(r))), b = Vn($t(d), -i), d = Tt(d = Nt(d, Ci($ = Vn({ left: h ? g.left - (b.left - g.left) : b.left, top: f ? g.top - (b.top - g.top) : b.top }, i), $t(d))), s({ visibleArea: d, type: "move" }));
9496
9496
  }
9497
9497
  return { coordinates: r, visibleArea: d };
9498
9498
  }
9499
9499
  function tl(t) {
9500
- var e = t.directions, n = t.coordinates, i = t.positionRestrictions, s = i === void 0 ? {} : i, o = t.sizeRestrictions, a = t.preserveRatio, l = t.compensate, r = ge({}, e), d = mn(n, r).width, f = mn(n, r).height;
9501
- d < 0 && (r.left < 0 && r.right < 0 ? (r.left = -(n.width - o.minWidth) / (r.left / r.right), r.right = -(n.width - o.minWidth) / (r.right / r.left)) : r.left < 0 ? r.left = -(n.width - o.minWidth) : r.right < 0 && (r.right = -(n.width - o.minWidth))), f < 0 && (r.top < 0 && r.bottom < 0 ? (r.top = -(n.height - o.minHeight) / (r.top / r.bottom), r.bottom = -(n.height - o.minHeight) / (r.bottom / r.top)) : r.top < 0 ? r.top = -(n.height - o.minHeight) : r.bottom < 0 && (r.bottom = -(n.height - o.minHeight)));
9502
- var h = Zi(mn(n, r), s);
9503
- l && (h.left && h.left > 0 && h.right === 0 ? (r.right += h.left, r.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (r.left += h.right, r.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (r.bottom += h.top, r.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (r.top += h.bottom, r.bottom -= h.bottom), h = Zi(mn(n, r), s));
9500
+ var e = t.directions, n = t.coordinates, i = t.positionRestrictions, s = i === void 0 ? {} : i, o = t.sizeRestrictions, a = t.preserveRatio, l = t.compensate, r = ge({}, e), d = mn(n, r).width, h = mn(n, r).height;
9501
+ d < 0 && (r.left < 0 && r.right < 0 ? (r.left = -(n.width - o.minWidth) / (r.left / r.right), r.right = -(n.width - o.minWidth) / (r.right / r.left)) : r.left < 0 ? r.left = -(n.width - o.minWidth) : r.right < 0 && (r.right = -(n.width - o.minWidth))), h < 0 && (r.top < 0 && r.bottom < 0 ? (r.top = -(n.height - o.minHeight) / (r.top / r.bottom), r.bottom = -(n.height - o.minHeight) / (r.bottom / r.top)) : r.top < 0 ? r.top = -(n.height - o.minHeight) : r.bottom < 0 && (r.bottom = -(n.height - o.minHeight)));
9502
+ var f = Zi(mn(n, r), s);
9503
+ l && (f.left && f.left > 0 && f.right === 0 ? (r.right += f.left, r.left -= f.left) : f.right && f.right > 0 && f.left === 0 && (r.left += f.right, r.right -= f.right), f.top && f.top > 0 && f.bottom === 0 ? (r.bottom += f.top, r.top -= f.top) : f.bottom && f.bottom > 0 && f.top === 0 && (r.top += f.bottom, r.bottom -= f.bottom), f = Zi(mn(n, r), s));
9504
9504
  var g = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
9505
9505
  if (pn.forEach(function(I) {
9506
- var E = h[I];
9506
+ var E = f[I];
9507
9507
  E && r[I] && (g[I] = Math.max(0, 1 - E / r[I]));
9508
9508
  }), a) {
9509
- var w = Math.min.apply(null, pn.map(function(I) {
9509
+ var b = Math.min.apply(null, pn.map(function(I) {
9510
9510
  return g[I];
9511
9511
  }));
9512
- w !== 1 / 0 && pn.forEach(function(I) {
9513
- r[I] *= w;
9512
+ b !== 1 / 0 && pn.forEach(function(I) {
9513
+ r[I] *= b;
9514
9514
  });
9515
9515
  } else pn.forEach(function(I) {
9516
9516
  g[I] !== 1 / 0 && (r[I] *= g[I]);
9517
9517
  });
9518
- if (d = mn(n, r).width, f = mn(n, r).height, r.right + r.left && (d > o.maxWidth ? g.width = (o.maxWidth - n.width) / (r.right + r.left) : d < o.minWidth && (g.width = (o.minWidth - n.width) / (r.right + r.left))), r.bottom + r.top && (f > o.maxHeight ? g.height = (o.maxHeight - n.height) / (r.bottom + r.top) : f < o.minHeight && (g.height = (o.minHeight - n.height) / (r.bottom + r.top))), a) {
9518
+ if (d = mn(n, r).width, h = mn(n, r).height, r.right + r.left && (d > o.maxWidth ? g.width = (o.maxWidth - n.width) / (r.right + r.left) : d < o.minWidth && (g.width = (o.minWidth - n.width) / (r.right + r.left))), r.bottom + r.top && (h > o.maxHeight ? g.height = (o.maxHeight - n.height) / (r.bottom + r.top) : h < o.minHeight && (g.height = (o.minHeight - n.height) / (r.bottom + r.top))), a) {
9519
9519
  var $ = Math.min(g.width, g.height);
9520
9520
  $ !== 1 / 0 && pn.forEach(function(I) {
9521
9521
  r[I] *= $;
@@ -9699,8 +9699,8 @@ function _v(t) {
9699
9699
  try {
9700
9700
  if (t) if (/^data:/i.test(t)) e(function(r) {
9701
9701
  r = r.replace(/^data:([^;]+);base64,/gim, "");
9702
- for (var d = atob(r), f = d.length, h = new ArrayBuffer(f), g = new Uint8Array(h), w = 0; w < f; w++) g[w] = d.charCodeAt(w);
9703
- return h;
9702
+ for (var d = atob(r), h = d.length, f = new ArrayBuffer(h), g = new Uint8Array(f), b = 0; b < h; b++) g[b] = d.charCodeAt(b);
9703
+ return f;
9704
9704
  }(t));
9705
9705
  else if (/^blob:/i.test(t)) {
9706
9706
  var i = new FileReader();
@@ -9740,19 +9740,19 @@ function Uv(t) {
9740
9740
  }
9741
9741
  r++;
9742
9742
  }
9743
- if (o && (i = o + 10, function(w, $, I) {
9743
+ if (o && (i = o + 10, function(b, $, I) {
9744
9744
  var E, T = "";
9745
- for (E = $, I += $; E < I; E++) T += String.fromCharCode(w.getUint8(E));
9745
+ for (E = $, I += $; E < I; E++) T += String.fromCharCode(b.getUint8(E));
9746
9746
  return T;
9747
9747
  }(n, o + 4, 4) === "Exif")) {
9748
9748
  var d = n.getUint16(i);
9749
9749
  if (((s = d === 18761) || d === 19789) && n.getUint16(i + 2, s) === 42) {
9750
- var f = n.getUint32(i + 4, s);
9751
- f >= 8 && (a = i + f);
9750
+ var h = n.getUint32(i + 4, s);
9751
+ h >= 8 && (a = i + h);
9752
9752
  }
9753
9753
  }
9754
9754
  if (a) {
9755
- for (var h = n.getUint16(a, s), g = 0; g < h; g++)
9755
+ for (var f = n.getUint16(a, s), g = 0; g < f; g++)
9756
9756
  if (r = a + 12 * g + 2, n.getUint16(r, s) === 274) {
9757
9757
  r += 8, e = n.getUint16(r, s), n.setUint16(r, 1, s);
9758
9758
  break;
@@ -9951,17 +9951,17 @@ var Bv = ["transitions"], xn = ln("vue-advanced-cropper"), Ku = { name: "Cropper
9951
9951
  o.widthFrozen && (r.left = 0, r.right = 0), o.heightFrozen && (r.top = 0, r.bottom = 0), pn.forEach(function(V) {
9952
9952
  d[V] || (r[V] = 0);
9953
9953
  });
9954
- var f = mn(a, r = tl({ coordinates: a, directions: r, sizeRestrictions: o, positionRestrictions: s })).width, h = mn(a, r).height, g = l.preserveRatio ? Le(a) : Yo(f / h, i);
9954
+ var h = mn(a, r = tl({ coordinates: a, directions: r, sizeRestrictions: o, positionRestrictions: s })).width, f = mn(a, r).height, g = l.preserveRatio ? Le(a) : Yo(h / f, i);
9955
9955
  if (g) {
9956
- var w = l.respectDirection;
9957
- if (w || (w = a.width >= a.height || g === 1 ? "width" : "height"), w === "width") {
9958
- var $ = f / g - a.height;
9956
+ var b = l.respectDirection;
9957
+ if (b || (b = a.width >= a.height || g === 1 ? "width" : "height"), b === "width") {
9958
+ var $ = h / g - a.height;
9959
9959
  if (d.top && d.bottom) {
9960
9960
  var I = r.top, E = r.bottom;
9961
9961
  r.bottom = ks($, E, I), r.top = ks($, I, E);
9962
9962
  } else d.bottom ? r.bottom = $ : d.top ? r.top = $ : d.right ? r.right = 0 : d.left && (r.left = 0);
9963
- } else if (w === "height") {
9964
- var T = a.width - h * g;
9963
+ } else if (b === "height") {
9964
+ var T = a.width - f * g;
9965
9965
  if (d.left && d.right) {
9966
9966
  var M = r.left, k = r.right;
9967
9967
  r.left = -ks(T, M, k), r.right = -ks(T, k, M);
@@ -9969,7 +9969,7 @@ var Bv = ["transitions"], xn = ln("vue-advanced-cropper"), Ku = { name: "Cropper
9969
9969
  }
9970
9970
  r = tl({ directions: r, coordinates: a, sizeRestrictions: o, positionRestrictions: s, preserveRatio: !0, compensate: l.compensate });
9971
9971
  }
9972
- return f = mn(a, r).width, h = mn(a, r).height, (g = l.preserveRatio ? Le(a) : Yo(f / h, i)) && Math.abs(g - f / h) > 1e-3 && pn.forEach(function(V) {
9972
+ return h = mn(a, r).width, f = mn(a, r).height, (g = l.preserveRatio ? Le(a) : Yo(h / f, i)) && Math.abs(g - h / f) > 1e-3 && pn.forEach(function(V) {
9973
9973
  d[V] || (r[V] = 0);
9974
9974
  }), va({ event: new Va({ left: -r.left, top: -r.top }), coordinates: { width: n.width + r.right + r.left, height: n.height + r.top + r.bottom, left: n.left, top: n.top }, positionRestrictions: s });
9975
9975
  } }, moveAlgorithm: { type: Function, default: va }, initStretcher: { type: Function, default: function(t) {
@@ -10019,8 +10019,8 @@ var Bv = ["transitions"], xn = ln("vue-advanced-cropper"), Ku = { name: "Cropper
10019
10019
  if (t = function(i) {
10020
10020
  var s = i.areaRestrictions, o = i.sizeRestrictions, a = i.boundaries, l = i.positionRestrictions, r = ge(ge({}, o), { minWidth: o.minWidth !== void 0 ? o.minWidth : 0, minHeight: o.minHeight !== void 0 ? o.minHeight : 0, maxWidth: o.maxWidth !== void 0 ? o.maxWidth : 1 / 0, maxHeight: o.maxHeight !== void 0 ? o.maxHeight : 1 / 0 });
10021
10021
  l.left !== void 0 && l.right !== void 0 && (r.maxWidth = Math.min(r.maxWidth, l.right - l.left)), l.bottom !== void 0 && l.top !== void 0 && (r.maxHeight = Math.min(r.maxHeight, l.bottom - l.top));
10022
- var d = ga(s), f = Nu(a, d);
10023
- return d.width < 1 / 0 && (!r.maxWidth || r.maxWidth > f.width) && (r.maxWidth = Math.min(r.maxWidth, f.width)), d.height < 1 / 0 && (!r.maxHeight || r.maxHeight > f.height) && (r.maxHeight = Math.min(r.maxHeight, f.height)), r.minWidth > r.maxWidth && (r.minWidth = r.maxWidth, r.widthFrozen = !0), r.minHeight > r.maxHeight && (r.minHeight = r.maxHeight, r.heightFrozen = !0), r;
10022
+ var d = ga(s), h = Nu(a, d);
10023
+ return d.width < 1 / 0 && (!r.maxWidth || r.maxWidth > h.width) && (r.maxWidth = Math.min(r.maxWidth, h.width)), d.height < 1 / 0 && (!r.maxHeight || r.maxHeight > h.height) && (r.maxHeight = Math.min(r.maxHeight, h.height)), r.minWidth > r.maxWidth && (r.minWidth = r.maxWidth, r.widthFrozen = !0), r.minHeight > r.maxHeight && (r.minHeight = r.maxHeight, r.heightFrozen = !0), r;
10024
10024
  }({ sizeRestrictions: t, areaRestrictions: this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }), imageSize: this.imageSize, boundaries: this.boundaries, positionRestrictions: this.positionRestrictions, imageRestriction: this.imageRestriction, visibleArea: this.visibleArea, stencilSize: this.getStencilSize() }), this.visibleArea && this.stencilSize) {
10025
10025
  var e = this.getStencilSize(), n = ga(this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }));
10026
10026
  t.maxWidth = Math.min(t.maxWidth, n.width * e.width / this.boundaries.width), t.maxHeight = Math.min(t.maxHeight, n.height * e.height / this.boundaries.height), t.maxWidth < t.minWidth && (t.minWidth = t.maxWidth), t.maxHeight < t.minHeight && (t.minHeight = t.maxHeight);
@@ -10142,10 +10142,10 @@ var Bv = ["transitions"], xn = ln("vue-advanced-cropper"), Ku = { name: "Cropper
10142
10142
  }, getCanvas: function() {
10143
10143
  if (this.$refs.canvas) {
10144
10144
  var t = this.$refs.canvas, e = this.$refs.image, n = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, r, d) {
10145
- var f = d.rotate, h = d.flip, g = { width: r.naturalWidth, height: r.naturalHeight }, w = Hu(g, f), $ = l.getContext("2d");
10146
- l.height = w.height, l.width = w.width, $.save();
10147
- var I = Vn($t(ge({ left: 0, top: 0 }, g)), f);
10148
- return $.translate(-(I.left - w.width / 2), -(I.top - w.height / 2)), $.rotate(f * Math.PI / 180), $.translate(h.horizontal ? g.width : 0, h.vertical ? g.height : 0), $.scale(h.horizontal ? -1 : 1, h.vertical ? -1 : 1), $.drawImage(r, 0, 0, g.width, g.height), $.restore(), l;
10145
+ var h = d.rotate, f = d.flip, g = { width: r.naturalWidth, height: r.naturalHeight }, b = Hu(g, h), $ = l.getContext("2d");
10146
+ l.height = b.height, l.width = b.width, $.save();
10147
+ var I = Vn($t(ge({ left: 0, top: 0 }, g)), h);
10148
+ return $.translate(-(I.left - b.width / 2), -(I.top - b.height / 2)), $.rotate(h * Math.PI / 180), $.translate(f.horizontal ? g.width : 0, f.vertical ? g.height : 0), $.scale(f.horizontal ? -1 : 1, f.vertical ? -1 : 1), $.drawImage(r, 0, 0, g.width, g.height), $.restore(), l;
10149
10149
  }(this.$refs.sourceCanvas, e, this.imageTransforms) : e, i = De({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), s = function(l) {
10150
10150
  return l.find(function(r) {
10151
10151
  return d = r, !Number.isNaN(parseFloat(d)) && isFinite(d);
@@ -10156,12 +10156,12 @@ var Bv = ["transitions"], xn = ln("vue-advanced-cropper"), Ku = { name: "Cropper
10156
10156
  var a = Math.sqrt(i.maxArea / (o.width * o.height));
10157
10157
  o = { width: Math.round(a * o.width), height: Math.round(a * o.height) };
10158
10158
  }
10159
- return function(l, r, d, f, h) {
10160
- l.width = f ? f.width : d.width, l.height = f ? f.height : d.height;
10159
+ return function(l, r, d, h, f) {
10160
+ l.width = h ? h.width : d.width, l.height = h ? h.height : d.height;
10161
10161
  var g = l.getContext("2d");
10162
- g.clearRect(0, 0, l.width, l.height), h && (h.imageSmoothingEnabled && (g.imageSmoothingEnabled = h.imageSmoothingEnabled), h.imageSmoothingQuality && (g.imageSmoothingQuality = h.imageSmoothingQuality), h.fillColor && (g.fillStyle = h.fillColor, g.fillRect(0, 0, l.width, l.height), g.save()));
10163
- var w = d.left < 0 ? -d.left : 0, $ = d.top < 0 ? -d.top : 0;
10164
- g.drawImage(r, d.left + w, d.top + $, d.width, d.height, w * (l.width / d.width), $ * (l.height / d.height), l.width, l.height);
10162
+ g.clearRect(0, 0, l.width, l.height), f && (f.imageSmoothingEnabled && (g.imageSmoothingEnabled = f.imageSmoothingEnabled), f.imageSmoothingQuality && (g.imageSmoothingQuality = f.imageSmoothingQuality), f.fillColor && (g.fillStyle = f.fillColor, g.fillRect(0, 0, l.width, l.height), g.save()));
10163
+ var b = d.left < 0 ? -d.left : 0, $ = d.top < 0 ? -d.top : 0;
10164
+ g.drawImage(r, d.left + b, d.top + $, d.width, d.height, b * (l.width / d.width), $ * (l.height / d.height), l.width, l.height);
10165
10165
  }(t, n, this.coordinates, o, i), t;
10166
10166
  }
10167
10167
  }, update: function() {
@@ -10198,8 +10198,8 @@ var Bv = ["transitions"], xn = ln("vue-advanced-cropper"), Ku = { name: "Cropper
10198
10198
  return this.initStretcher({ cropper: n, stretcher: e, imageSize: this.imageSize }), this.$nextTick().then(function() {
10199
10199
  var i = { cropper: n, imageSize: t.imageSize };
10200
10200
  if (ci(t.defaultBoundaries) ? t.boundaries = t.defaultBoundaries(i) : t.defaultBoundaries === "fit" ? t.boundaries = function(s) {
10201
- var o = s.cropper, a = s.imageSize, l = o.clientHeight, r = o.clientWidth, d = l, f = a.width * l / a.height;
10202
- return f > r && (f = r, d = a.height * r / a.width), { width: f, height: d };
10201
+ var o = s.cropper, a = s.imageSize, l = o.clientHeight, r = o.clientWidth, d = l, h = a.width * l / a.height;
10202
+ return h > r && (h = r, d = a.height * r / a.width), { width: h, height: d };
10203
10203
  }(i) : t.boundaries = function(s) {
10204
10204
  var o = s.cropper;
10205
10205
  return { width: o.clientWidth, height: o.clientHeight };
@@ -10450,26 +10450,26 @@ const jv = { class: "cropper-wrapper" }, Gv = { class: "row justify-end q-mt-md"
10450
10450
  { label: "3:4", value: 3 / 4 },
10451
10451
  { label: "1:1", value: 1 },
10452
10452
  { label: "16:9", value: 16 / 9 }
10453
- ]), r = (h) => {
10454
- s.value = h, o.value.setRatio(h);
10453
+ ]), r = (f) => {
10454
+ s.value = f, o.value.setRatio(f);
10455
10455
  }, d = z(
10456
10456
  () => s.value ? { aspectRatio: s.value } : {}
10457
- ), f = async () => {
10458
- const h = a.value.getResult();
10459
- h && h.canvas.toBlob((g) => {
10460
- var w;
10457
+ ), h = async () => {
10458
+ const f = a.value.getResult();
10459
+ f && f.canvas.toBlob((g) => {
10460
+ var b;
10461
10461
  i("crop", {
10462
10462
  blob: g,
10463
- src: (w = h.canvas) == null ? void 0 : w.toDataURL()
10463
+ src: (b = f.canvas) == null ? void 0 : b.toDataURL()
10464
10464
  }), i("update:ratio", o.value.getRatio());
10465
10465
  });
10466
10466
  };
10467
- return (h, g) => (m(), S("div", jv, [
10467
+ return (f, g) => (m(), S("div", jv, [
10468
10468
  p(nn, {
10469
10469
  modelValue: s.value,
10470
10470
  "onUpdate:modelValue": [
10471
- g[0] || (g[0] = (w) => s.value = w),
10472
- g[1] || (g[1] = (w) => r(w))
10471
+ g[0] || (g[0] = (b) => s.value = b),
10472
+ g[1] || (g[1] = (b) => r(b))
10473
10473
  ],
10474
10474
  clearable: !1,
10475
10475
  options: l.value,
@@ -10484,14 +10484,14 @@ const jv = { class: "cropper-wrapper" }, Gv = { class: "row justify-end q-mt-md"
10484
10484
  src: o.value.src,
10485
10485
  "stencil-props": d.value,
10486
10486
  class: "cropper-container",
10487
- onChange: g[2] || (g[2] = (w) => o.value.setCoordinates(w.coordinates))
10487
+ onChange: g[2] || (g[2] = (b) => o.value.setCoordinates(b.coordinates))
10488
10488
  }, null, 8, ["src", "stencil-props"]),
10489
10489
  y("div", Gv, [
10490
10490
  p(re, {
10491
10491
  flat: "",
10492
10492
  label: "Сохранить",
10493
10493
  color: "primary",
10494
- onClick: f
10494
+ onClick: h
10495
10495
  })
10496
10496
  ])
10497
10497
  ]));
@@ -10517,26 +10517,26 @@ const jv = { class: "cropper-wrapper" }, Gv = { class: "row justify-end q-mt-md"
10517
10517
  M && !M.getAttribute("aria-label") && M.setAttribute("aria-label", "Добавить изображение");
10518
10518
  });
10519
10519
  });
10520
- const f = O(i.ratio), h = O(""), g = z(() => ({
10521
- width: `${i.height * f.value}px`,
10520
+ const h = O(i.ratio), f = O(""), g = z(() => ({
10521
+ width: `${i.height * h.value}px`,
10522
10522
  height: `${i.height}px`,
10523
10523
  maxWidth: "100%"
10524
- })), w = z(() => ({
10525
- width: `${i.height * f.value}px`,
10524
+ })), b = z(() => ({
10525
+ width: `${i.height * h.value}px`,
10526
10526
  height: `${i.height}px`,
10527
10527
  maxWidth: "100%"
10528
10528
  })), $ = () => {
10529
- o.value = void 0, f.value = 1, s("update:ratio", 1), s("removeFile");
10529
+ o.value = void 0, h.value = 1, s("update:ratio", 1), s("removeFile");
10530
10530
  }, I = (M) => {
10531
10531
  M.blob.src = M.src, i.fileInfo.setFile && i.fileInfo.setFile(M.blob), i.fileInfo.fileSystemPath && (o.value = i.fileInfo), r.value = !1, s("crop");
10532
10532
  }, E = (M) => {
10533
- h.value = M.url, r.value = !0;
10533
+ f.value = M.url, r.value = !0;
10534
10534
  }, T = (M) => {
10535
10535
  if (M.length === 0) return;
10536
10536
  const k = M[0];
10537
10537
  k.url = URL.createObjectURL(k), o.value = k, i.fileInfo.setFile && i.fileInfo.setFile(k), i.withCrop && E(o.value);
10538
10538
  };
10539
- return Be(f, (M) => {
10539
+ return Be(h, (M) => {
10540
10540
  s("update:ratio", M);
10541
10541
  }), Be(
10542
10542
  () => [i.fileInfo.description, i.fileInfo.order, i.fileInfo.fileSystemPath],
@@ -10557,7 +10557,7 @@ const jv = { class: "cropper-wrapper" }, Gv = { class: "row justify-end q-mt-md"
10557
10557
  }, [
10558
10558
  p(c(Tc), {
10559
10559
  src: c(o).url,
10560
- ratio: c(f),
10560
+ ratio: c(h),
10561
10561
  class: "uploaded-image",
10562
10562
  alt: "Загруженное изображение",
10563
10563
  "spinner-color": "primary"
@@ -10612,7 +10612,7 @@ const jv = { class: "cropper-wrapper" }, Gv = { class: "row justify-end q-mt-md"
10612
10612
  ref_key: "uploader",
10613
10613
  ref: d,
10614
10614
  class: "img-uploader",
10615
- style: J(c(w)),
10615
+ style: J(c(b)),
10616
10616
  flat: "",
10617
10617
  bordered: "",
10618
10618
  accept: t.acceptTypes,
@@ -10665,9 +10665,9 @@ const jv = { class: "cropper-wrapper" }, Gv = { class: "row justify-end q-mt-md"
10665
10665
  p(c(Ct), { class: "cropper-section" }, {
10666
10666
  default: C(() => [
10667
10667
  p(ed, {
10668
- ratio: c(f),
10669
- "onUpdate:ratio": k[1] || (k[1] = (V) => Re(f) ? f.value = V : null),
10670
- src: c(h),
10668
+ ratio: c(h),
10669
+ "onUpdate:ratio": k[1] || (k[1] = (V) => Re(h) ? h.value = V : null),
10670
+ src: c(f),
10671
10671
  onCrop: I,
10672
10672
  onClose: k[2] || (k[2] = (V) => r.value = !1)
10673
10673
  }, null, 8, ["ratio", "src"])
@@ -10720,11 +10720,11 @@ const jv = { class: "cropper-wrapper" }, Gv = { class: "row justify-end q-mt-md"
10720
10720
  (!n.originalName || !/\.(jpe?g|png|webp|gif)$/i.test(n.originalName)) && (n.originalName = `image-${Date.now()}${s(l.type || "")}`), n.url = "";
10721
10721
  const d = await tn.FileInfos.Create(
10722
10722
  n
10723
- ), f = d == null ? void 0 : d.fileSystemPath;
10724
- if (!f)
10723
+ ), h = d == null ? void 0 : d.fileSystemPath;
10724
+ if (!h)
10725
10725
  throw new Error("сервер не вернул путь к файлу");
10726
- const h = `/api/static/${f}`;
10727
- return n.url = h, n.fileSystemPath = f, e.value = h, h;
10726
+ const f = `/api/static/${h}`;
10727
+ return n.url = f, n.fileSystemPath = h, e.value = f, f;
10728
10728
  },
10729
10729
  { message: "Не удалось загрузить изображение" }
10730
10730
  );
@@ -10937,7 +10937,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
10937
10937
  k.code && T[k.code] !== void 0 && V.setString(T[k.code]), s[k.id] = V;
10938
10938
  }
10939
10939
  }, { immediate: !0 });
10940
- const h = () => {
10940
+ const f = () => {
10941
10941
  const T = {};
10942
10942
  for (const [M, k] of Object.entries(s))
10943
10943
  T[M] = {
@@ -10952,10 +10952,10 @@ const a1 = { class: "p-form-renderer" }, r1 = {
10952
10952
  }, g = () => {
10953
10953
  if (n.draftKey)
10954
10954
  try {
10955
- localStorage.setItem(n.draftKey, JSON.stringify(h()));
10955
+ localStorage.setItem(n.draftKey, JSON.stringify(f()));
10956
10956
  } catch {
10957
10957
  }
10958
- }, w = () => {
10958
+ }, b = () => {
10959
10959
  var k;
10960
10960
  if (!n.draftKey)
10961
10961
  return;
@@ -10980,12 +10980,12 @@ const a1 = { class: "p-form-renderer" }, r1 = {
10980
10980
  };
10981
10981
  let $ = null;
10982
10982
  Be(
10983
- () => h(),
10983
+ () => f(),
10984
10984
  () => {
10985
10985
  $ && clearTimeout($), $ = setTimeout(g, 500);
10986
10986
  },
10987
10987
  { deep: !0 }
10988
- ), w();
10988
+ ), b();
10989
10989
  const I = () => {
10990
10990
  const T = Object.entries(s).filter(([M, k]) => {
10991
10991
  const V = E().find((x) => x.id === M);
@@ -11237,13 +11237,13 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11237
11237
  n.value.valueTypeId = R, n.value.changeRelation(i.valueTypes), s("change");
11238
11238
  }, d = () => {
11239
11239
  n.value.addAnswerVariant(), s("change");
11240
- }, f = () => {
11241
- n.value.answerVariants.forEach((R, L) => R.order = L);
11242
11240
  }, h = () => {
11243
- f(), s("change");
11241
+ n.value.answerVariants.forEach((R, L) => R.order = L);
11242
+ }, f = () => {
11243
+ h(), s("change");
11244
11244
  }, g = (R) => {
11245
11245
  n.value.removeRadioItem(R), s("change");
11246
- }, w = [
11246
+ }, b = [
11247
11247
  { label: "Равно", value: "equals" },
11248
11248
  { label: "Не равно", value: "notEquals" },
11249
11249
  { label: "Содержит", value: "contains" },
@@ -11350,7 +11350,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11350
11350
  "item-key": "id",
11351
11351
  handle: ".drag-handle",
11352
11352
  class: "variant-list",
11353
- onEnd: h
11353
+ onEnd: f
11354
11354
  }, {
11355
11355
  item: C(({ element: X, index: xe }) => [
11356
11356
  y("div", D1, [
@@ -11417,7 +11417,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11417
11417
  L[11] || (L[11] = (ke) => s("change"))
11418
11418
  ],
11419
11419
  label: "Условие",
11420
- options: w
11420
+ options: b
11421
11421
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
11422
11422
  ]),
11423
11423
  y("div", q1, [
@@ -11474,14 +11474,14 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11474
11474
  n.value.addField(), i("change");
11475
11475
  }, l = (d) => {
11476
11476
  n.value.fields.splice(d, 1), s(), i("change");
11477
- }, r = (d, f) => {
11478
- const h = d + f, g = n.value.fields;
11479
- if (h < 0 || h >= g.length)
11477
+ }, r = (d, h) => {
11478
+ const f = d + h, g = n.value.fields;
11479
+ if (f < 0 || f >= g.length)
11480
11480
  return;
11481
- const [w] = g.splice(d, 1);
11482
- g.splice(h, 0, w), s(), i("change");
11481
+ const [b] = g.splice(d, 1);
11482
+ g.splice(f, 0, b), s(), i("change");
11483
11483
  };
11484
- return (d, f) => (m(), D(nd, { class: "p-form-section-editor" }, {
11484
+ return (d, h) => (m(), D(nd, { class: "p-form-section-editor" }, {
11485
11485
  default: C(() => [
11486
11486
  y("div", G1, [
11487
11487
  d.$slots.handle ? (m(), S("div", W1, [
@@ -11490,10 +11490,10 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11490
11490
  y("div", Y1, [
11491
11491
  p(qe, {
11492
11492
  modelValue: n.value.name,
11493
- "onUpdate:modelValue": f[0] || (f[0] = (h) => n.value.name = h),
11493
+ "onUpdate:modelValue": h[0] || (h[0] = (f) => n.value.name = f),
11494
11494
  label: "Секция",
11495
11495
  placeholder: "Название раздела",
11496
- onBlur: f[1] || (f[1] = (h) => i("change"))
11496
+ onBlur: h[1] || (h[1] = (f) => i("change"))
11497
11497
  }, null, 8, ["modelValue"])
11498
11498
  ]),
11499
11499
  y("div", X1, [
@@ -11503,14 +11503,14 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11503
11503
  flat: "",
11504
11504
  dense: "",
11505
11505
  round: "",
11506
- onClick: f[2] || (f[2] = (h) => i("move", -1))
11506
+ onClick: h[2] || (h[2] = (f) => i("move", -1))
11507
11507
  }),
11508
11508
  p(re, {
11509
11509
  icon: "arrow_downward",
11510
11510
  flat: "",
11511
11511
  dense: "",
11512
11512
  round: "",
11513
- onClick: f[3] || (f[3] = (h) => i("move", 1))
11513
+ onClick: h[3] || (h[3] = (f) => i("move", 1))
11514
11514
  }),
11515
11515
  p(re, {
11516
11516
  icon: "delete",
@@ -11518,7 +11518,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11518
11518
  dense: "",
11519
11519
  round: "",
11520
11520
  color: "negative",
11521
- onClick: f[4] || (f[4] = (h) => i("remove"))
11521
+ onClick: h[4] || (h[4] = (f) => i("remove"))
11522
11522
  })
11523
11523
  ], !0)
11524
11524
  ])
@@ -11530,15 +11530,15 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11530
11530
  class: "fields",
11531
11531
  onEnd: o
11532
11532
  }, {
11533
- item: C(({ index: h }) => [
11533
+ item: C(({ index: f }) => [
11534
11534
  p(bo, {
11535
- field: n.value.fields[h],
11536
- "onUpdate:field": (g) => n.value.fields[h] = g,
11535
+ field: n.value.fields[f],
11536
+ "onUpdate:field": (g) => n.value.fields[f] = g,
11537
11537
  "value-types": t.valueTypes,
11538
11538
  fields: t.fields,
11539
- onMove: (g) => r(h, g),
11540
- onRemove: (g) => l(h),
11541
- onChange: f[5] || (f[5] = (g) => i("change"))
11539
+ onMove: (g) => r(f, g),
11540
+ onRemove: (g) => l(f),
11541
+ onChange: h[5] || (h[5] = (g) => i("change"))
11542
11542
  }, {
11543
11543
  handle: C(() => [
11544
11544
  y("span", Q1, [
@@ -11578,24 +11578,24 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11578
11578
  const n = ft(t, "form"), i = t, s = e, o = O(i.valueTypes ?? []), a = O(!1), l = [
11579
11579
  { label: "Черновик", value: "draft" },
11580
11580
  { label: "Опубликована", value: "published" }
11581
- ], r = z(() => n.value.getFields()), d = O(null), f = () => {
11581
+ ], r = z(() => n.value.getFields()), d = O(null), h = () => {
11582
11582
  d.value && clearTimeout(d.value), d.value = setTimeout(() => {
11583
11583
  s("change", n.value);
11584
11584
  }, 600);
11585
- }, h = () => {
11585
+ }, f = () => {
11586
11586
  Y.H.Sorter.Sort(n.value.formSections);
11587
11587
  }, g = () => {
11588
- h(), f();
11589
- }, w = () => {
11590
- n.value.addFormSection(), f();
11588
+ f(), h();
11589
+ }, b = () => {
11590
+ n.value.addFormSection(), h();
11591
11591
  }, $ = (E) => {
11592
- n.value.formSections.splice(E, 1), h(), f();
11592
+ n.value.formSections.splice(E, 1), f(), h();
11593
11593
  }, I = (E, T) => {
11594
11594
  const M = E + T;
11595
11595
  if (M < 0 || M >= n.value.formSections.length)
11596
11596
  return;
11597
11597
  const [k] = n.value.formSections.splice(E, 1);
11598
- n.value.formSections.splice(M, 0, k), h(), f();
11598
+ n.value.formSections.splice(M, 0, k), f(), h();
11599
11599
  };
11600
11600
  return Sn(async () => {
11601
11601
  var E;
@@ -11607,7 +11607,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11607
11607
  modelValue: n.value.name,
11608
11608
  "onUpdate:modelValue": T[0] || (T[0] = (M) => n.value.name = M),
11609
11609
  label: "Название формы",
11610
- onBlur: f
11610
+ onBlur: h
11611
11611
  }, null, 8, ["modelValue"])
11612
11612
  ]),
11613
11613
  y("div", ty, [
@@ -11616,7 +11616,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11616
11616
  modelValue: n.value.status,
11617
11617
  "onUpdate:modelValue": [
11618
11618
  T[1] || (T[1] = (M) => n.value.status = M),
11619
- f
11619
+ h
11620
11620
  ],
11621
11621
  label: "Статус формы",
11622
11622
  options: l
@@ -11640,7 +11640,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11640
11640
  modelValue: n.value.imageUrl,
11641
11641
  "onUpdate:modelValue": [
11642
11642
  T[3] || (T[3] = (M) => n.value.imageUrl = M),
11643
- f
11643
+ h
11644
11644
  ],
11645
11645
  height: 160,
11646
11646
  ratio: 16 / 5
@@ -11661,7 +11661,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11661
11661
  fields: c(r),
11662
11662
  onMove: (k) => I(M, k),
11663
11663
  onRemove: (k) => $(M),
11664
- onChange: f
11664
+ onChange: h
11665
11665
  }, {
11666
11666
  handle: C(() => [
11667
11667
  y("span", sy, [
@@ -11677,7 +11677,7 @@ const a1 = { class: "p-form-renderer" }, r1 = {
11677
11677
  icon: "add",
11678
11678
  label: "Добавить секцию",
11679
11679
  flat: "",
11680
- onClick: w
11680
+ onClick: b
11681
11681
  }),
11682
11682
  p(on, {
11683
11683
  modelValue: c(a),
@@ -12705,7 +12705,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12705
12705
  }, r = () => {
12706
12706
  s.value = !1;
12707
12707
  };
12708
- return (d, f) => (m(), S("div", n0, [
12708
+ return (d, h) => (m(), S("div", n0, [
12709
12709
  p(c(Ji), {
12710
12710
  "model-value": a.value,
12711
12711
  label: t.label,
@@ -12731,7 +12731,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12731
12731
  default: C(() => [
12732
12732
  p(c(vi), {
12733
12733
  modelValue: s.value,
12734
- "onUpdate:modelValue": f[1] || (f[1] = (h) => s.value = h),
12734
+ "onUpdate:modelValue": h[1] || (h[1] = (f) => s.value = f),
12735
12735
  "transition-show": "scale",
12736
12736
  "transition-hide": "scale"
12737
12737
  }, {
@@ -12743,7 +12743,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12743
12743
  default: C(() => [
12744
12744
  p(c(Ws), {
12745
12745
  modelValue: o.value,
12746
- "onUpdate:modelValue": f[0] || (f[0] = (h) => o.value = h),
12746
+ "onUpdate:modelValue": h[0] || (h[0] = (f) => o.value = f),
12747
12747
  mask: "YYYY-MM-DD",
12748
12748
  color: "primary",
12749
12749
  navigation: "",
@@ -12793,22 +12793,22 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12793
12793
  },
12794
12794
  emits: ["update:modelValue"],
12795
12795
  setup(t, { emit: e }) {
12796
- const n = t, i = e, s = O(!1), o = O("09:00"), a = (h) => {
12797
- const g = /^(\d{1,2}):(\d{2})$/.exec((h ?? "").trim());
12796
+ const n = t, i = e, s = O(!1), o = O("09:00"), a = (f) => {
12797
+ const g = /^(\d{1,2}):(\d{2})$/.exec((f ?? "").trim());
12798
12798
  return g ? `${g[1].padStart(2, "0")}:${g[2]}` : "09:00";
12799
- }, l = (h) => {
12800
- const g = /^(\d{2}):(\d{2})$/.exec(h ?? "");
12801
- return g ? `${Number(g[1])}:${g[2]}` : h;
12799
+ }, l = (f) => {
12800
+ const g = /^(\d{2}):(\d{2})$/.exec(f ?? "");
12801
+ return g ? `${Number(g[1])}:${g[2]}` : f;
12802
12802
  }, r = z(() => n.modelValue || "");
12803
- Be(s, (h) => {
12804
- h && (o.value = a(n.modelValue));
12803
+ Be(s, (f) => {
12804
+ f && (o.value = a(n.modelValue));
12805
12805
  });
12806
12806
  const d = () => {
12807
12807
  i("update:modelValue", l(o.value)), s.value = !1;
12808
- }, f = () => {
12808
+ }, h = () => {
12809
12809
  s.value = !1;
12810
12810
  };
12811
- return (h, g) => (m(), S("div", o0, [
12811
+ return (f, g) => (m(), S("div", o0, [
12812
12812
  p(c(Ji), {
12813
12813
  "model-value": r.value,
12814
12814
  label: t.label,
@@ -12834,7 +12834,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12834
12834
  default: C(() => [
12835
12835
  p(c(vi), {
12836
12836
  modelValue: s.value,
12837
- "onUpdate:modelValue": g[1] || (g[1] = (w) => s.value = w),
12837
+ "onUpdate:modelValue": g[1] || (g[1] = (b) => s.value = b),
12838
12838
  "transition-show": "scale",
12839
12839
  "transition-hide": "scale"
12840
12840
  }, {
@@ -12846,7 +12846,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12846
12846
  default: C(() => [
12847
12847
  p(c(hl), {
12848
12848
  modelValue: o.value,
12849
- "onUpdate:modelValue": g[0] || (g[0] = (w) => o.value = w),
12849
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b),
12850
12850
  format24h: "",
12851
12851
  color: "primary",
12852
12852
  class: "q-pa-sm"
@@ -12861,7 +12861,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12861
12861
  dense: "",
12862
12862
  label: "Отмена",
12863
12863
  color: "grey-7",
12864
- onClick: f
12864
+ onClick: h
12865
12865
  }),
12866
12866
  p(c(gn), {
12867
12867
  flat: "",
@@ -12960,7 +12960,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12960
12960
  })), a = z(() => ({
12961
12961
  ...Id,
12962
12962
  ...e.factories
12963
- })), l = (v) => e.slotListOf ? e.slotListOf(v) : (v == null ? void 0 : v.slots) || [], r = (v) => e.nestedSlotListOf ? e.nestedSlotListOf(v) : (v == null ? void 0 : v.slots) || [], d = (v) => (v == null ? void 0 : v.name) || o.value.hall, f = (v) => e.sessionName ? e.sessionName(v) : (v == null ? void 0 : v.name) || `${o.value.session} ${(v == null ? void 0 : v.startTime) || ""}–${(v == null ? void 0 : v.endTime) || ""}`.trim(), h = (v) => e.slotName ? e.slotName(v) : (v == null ? void 0 : v.name) || o.value.slot, g = (v) => e.slotSubtitle ? e.slotSubtitle(v) : "", w = O("grid"), $ = O((yr = (vr = e.days) == null ? void 0 : vr[0]) == null ? void 0 : yr.id), I = O(!1), E = O(""), T = O(!1), M = O(!1), k = O(null), V = O(null), x = O(null), U = O(void 0), R = O(null), L = O(null), X = O(!1), xe = O(0), ke = O(null), Qe = [
12963
+ })), l = (v) => e.slotListOf ? e.slotListOf(v) : (v == null ? void 0 : v.slots) || [], r = (v) => e.nestedSlotListOf ? e.nestedSlotListOf(v) : (v == null ? void 0 : v.slots) || [], d = (v) => (v == null ? void 0 : v.name) || o.value.hall, h = (v) => e.sessionName ? e.sessionName(v) : (v == null ? void 0 : v.name) || `${o.value.session} ${(v == null ? void 0 : v.startTime) || ""}–${(v == null ? void 0 : v.endTime) || ""}`.trim(), f = (v) => e.slotName ? e.slotName(v) : (v == null ? void 0 : v.name) || o.value.slot, g = (v) => e.slotSubtitle ? e.slotSubtitle(v) : "", b = O("grid"), $ = O((yr = (vr = e.days) == null ? void 0 : vr[0]) == null ? void 0 : yr.id), I = O(!1), E = O(""), T = O(!1), M = O(!1), k = O(null), V = O(null), x = O(null), U = O(void 0), R = O(null), L = O(null), X = O(!1), xe = O(0), ke = O(null), Qe = [
12964
12964
  { label: "5 мин", value: 5 },
12965
12965
  { label: "10 мин", value: 10 },
12966
12966
  { label: "15 мин", value: 15 },
@@ -12978,9 +12978,9 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12978
12978
  ], Ye = z(() => [
12979
12979
  { label: o.value.grid, value: "grid", icon: "calendar_view_week" },
12980
12980
  { label: o.value.list, value: "list", icon: "view_list" }
12981
- ]), ot = (v, b, P) => {
12981
+ ]), ot = (v, w, P) => {
12982
12982
  const q = Number(localStorage.getItem(v));
12983
- return b.includes(q) ? q : P;
12983
+ return w.includes(q) ? q : P;
12984
12984
  }, at = O(
12985
12985
  ot(sl, Qe.map((v) => v.value), db)
12986
12986
  ), Lt = O(
@@ -12989,7 +12989,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12989
12989
  Be(at, (v) => localStorage.setItem(sl, String(v))), Be(Lt, (v) => localStorage.setItem(ol, String(v)));
12990
12990
  const un = z(() => Math.max(Xe.value.total / 60 * Lt.value, 360)), Dt = z(() => un.value + "px"), Ve = z(
12991
12991
  () => [...e.days || []].sort(
12992
- (v, b) => new Date(v.date).getTime() - new Date(b.date).getTime()
12992
+ (v, w) => new Date(v.date).getTime() - new Date(w.date).getTime()
12993
12993
  )
12994
12994
  ), oe = z(
12995
12995
  () => Ve.value.find((v) => v.id === $.value)
@@ -12998,19 +12998,19 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12998
12998
  () => Ve.value.map((v) => v.id).join(","),
12999
12999
  () => {
13000
13000
  var v;
13001
- (!$.value || !Ve.value.some((b) => b.id === $.value)) && ($.value = (v = Ve.value[0]) == null ? void 0 : v.id);
13001
+ (!$.value || !Ve.value.some((w) => w.id === $.value)) && ($.value = (v = Ve.value[0]) == null ? void 0 : v.id);
13002
13002
  }
13003
13003
  );
13004
13004
  const rt = (v) => {
13005
13005
  if (e.dayTitle)
13006
13006
  return e.dayTitle(v);
13007
- const b = new Date(v.date);
13008
- return isNaN(b.getTime()) || b.getFullYear() < 2e3 ? "Дата" : b.toLocaleDateString("ru-RU", { day: "2-digit", month: "2-digit", year: "numeric" });
13007
+ const w = new Date(v.date);
13008
+ return isNaN(w.getTime()) || w.getFullYear() < 2e3 ? "Дата" : w.toLocaleDateString("ru-RU", { day: "2-digit", month: "2-digit", year: "numeric" });
13009
13009
  }, Kt = (v) => {
13010
- const b = new Date(v);
13011
- return isNaN(b.getTime()) || b.getFullYear() < 2e3 ? "" : b.toISOString().slice(0, 10);
13012
- }, Ge = async (v, b) => {
13013
- b && (v.date = new Date(b), await e.persist.updateDay(v), await e.persist.refresh());
13010
+ const w = new Date(v);
13011
+ return isNaN(w.getTime()) || w.getFullYear() < 2e3 ? "" : w.toISOString().slice(0, 10);
13012
+ }, Ge = async (v, w) => {
13013
+ w && (v.date = new Date(w), await e.persist.updateDay(v), await e.persist.refresh());
13014
13014
  }, Z = (v) => {
13015
13015
  k.value = v, M.value = !0;
13016
13016
  }, te = async () => {
@@ -13023,11 +13023,11 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13023
13023
  for (const q of Fe(v))
13024
13024
  await Vt(q);
13025
13025
  await e.persist.removeDay(v);
13026
- const b = (e.days || []).indexOf(v);
13027
- b >= 0 && e.days.splice(b, 1), await e.persist.refresh(), $.value = (P = Ve.value[0]) == null ? void 0 : P.id;
13026
+ const w = (e.days || []).indexOf(v);
13027
+ w >= 0 && e.days.splice(w, 1), await e.persist.refresh(), $.value = (P = Ve.value[0]) == null ? void 0 : P.id;
13028
13028
  }, me = async () => {
13029
13029
  var ee, fe;
13030
- const v = Ve.value, b = v[v.length - 1], P = b ? new Date(new Date(b.date).getTime() + 864e5) : /* @__PURE__ */ new Date();
13030
+ const v = Ve.value, w = v[v.length - 1], P = w ? new Date(new Date(w.date).getTime() + 864e5) : /* @__PURE__ */ new Date();
13031
13031
  let q;
13032
13032
  try {
13033
13033
  q = a.value.createDay(P);
@@ -13045,44 +13045,44 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13045
13045
  return;
13046
13046
  }
13047
13047
  $.value = q.id, e.persist.notify("positive", `${o.value.dayAdded}: ${rt(q)}`);
13048
- }, Fe = (v) => ((v == null ? void 0 : v.schedules) || []).slice().sort((b, P) => {
13049
- const q = mt(b), ee = mt(P);
13048
+ }, Fe = (v) => ((v == null ? void 0 : v.schedules) || []).slice().sort((w, P) => {
13049
+ const q = mt(w), ee = mt(P);
13050
13050
  return q.localeCompare(ee, "ru");
13051
13051
  }), mt = (v) => {
13052
13052
  if (e.hallName)
13053
13053
  return e.hallName(v);
13054
- const b = v.place || (e.places || []).find((P) => P.id === v.placeId);
13055
- return (b == null ? void 0 : b.name) || o.value.hall;
13054
+ const w = v.place || (e.places || []).find((P) => P.id === v.placeId);
13055
+ return (w == null ? void 0 : w.name) || o.value.hall;
13056
13056
  }, yt = () => {
13057
13057
  I.value = !0;
13058
13058
  }, An = z(() => {
13059
- const v = oe.value, b = new Set(((v == null ? void 0 : v.schedules) || []).map((P) => P.placeId));
13060
- return (e.places || []).filter((P) => !b.has(P.id));
13061
- }), En = async (v, b) => {
13059
+ const v = oe.value, w = new Set(((v == null ? void 0 : v.schedules) || []).map((P) => P.placeId));
13060
+ return (e.places || []).filter((P) => !w.has(P.id));
13061
+ }), En = async (v, w) => {
13062
13062
  if (e.persist.bindPlaceToDay) {
13063
- await e.persist.bindPlaceToDay(v, b, a.value.createSchedule);
13063
+ await e.persist.bindPlaceToDay(v, w, a.value.createSchedule);
13064
13064
  return;
13065
13065
  }
13066
- const P = a.value.createSchedule(v.id, b.id);
13066
+ const P = a.value.createSchedule(v.id, w.id);
13067
13067
  await e.persist.createSchedule(P);
13068
13068
  }, bt = async (v) => {
13069
13069
  I.value = !1;
13070
- const b = oe.value;
13071
- if (!b) {
13070
+ const w = oe.value;
13071
+ if (!w) {
13072
13072
  e.persist.notify("warning", o.value.selectDayFirst);
13073
13073
  return;
13074
13074
  }
13075
- if (Fe(b).some((P) => P.placeId === v.id)) {
13075
+ if (Fe(w).some((P) => P.placeId === v.id)) {
13076
13076
  e.persist.notify("warning", o.value.alreadyAdded);
13077
13077
  return;
13078
13078
  }
13079
13079
  try {
13080
- await En(v, b);
13080
+ await En(v, w);
13081
13081
  } catch (P) {
13082
13082
  console.warn("addPlaceToDay failed:", P), e.persist.notify("negative", o.value.createFailed), await e.persist.refresh();
13083
13083
  return;
13084
13084
  }
13085
- await e.persist.refresh(), $.value = b.id;
13085
+ await e.persist.refresh(), $.value = w.id;
13086
13086
  }, Se = async () => {
13087
13087
  var P, q, ee;
13088
13088
  const v = (P = E.value) == null ? void 0 : P.trim();
@@ -13090,9 +13090,9 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13090
13090
  e.persist.notify("warning", o.value.enterName);
13091
13091
  return;
13092
13092
  }
13093
- const b = a.value.createPlace(v);
13093
+ const w = a.value.createPlace(v);
13094
13094
  try {
13095
- if (!await ((ee = (q = e.persist).createPlace) == null ? void 0 : ee.call(q, b))) {
13095
+ if (!await ((ee = (q = e.persist).createPlace) == null ? void 0 : ee.call(q, w))) {
13096
13096
  e.persist.notify("negative", o.value.hallCreateFailed);
13097
13097
  return;
13098
13098
  }
@@ -13100,58 +13100,58 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13100
13100
  console.warn("createPlace failed:", fe), e.persist.notify("negative", o.value.hallCreateFailed);
13101
13101
  return;
13102
13102
  }
13103
- E.value = "", await bt(b), e.persist.notify("positive", o.value.hallCreated.replace("{name}", v));
13103
+ E.value = "", await bt(w), e.persist.notify("positive", o.value.hallCreated.replace("{name}", v));
13104
13104
  }, lt = async (v) => {
13105
13105
  await Vt(v);
13106
- const b = jt(v);
13107
- b && (b.schedules = (b.schedules || []).filter((P) => P.id !== v.id)), await e.persist.refresh();
13106
+ const w = jt(v);
13107
+ w && (w.schedules = (w.schedules || []).filter((P) => P.id !== v.id)), await e.persist.refresh();
13108
13108
  }, Vt = async (v) => {
13109
- for (const b of v.sessions || []) {
13110
- for (const P of r(b))
13109
+ for (const w of v.sessions || []) {
13110
+ for (const P of r(w))
13111
13111
  await e.persist.removeSlot(P);
13112
- await e.persist.removeSession(b);
13112
+ await e.persist.removeSession(w);
13113
13113
  }
13114
- for (const b of l(v))
13115
- await e.persist.removeSlot(b);
13114
+ for (const w of l(v))
13115
+ await e.persist.removeSlot(w);
13116
13116
  await e.persist.removeSchedule(v);
13117
13117
  }, jt = (v) => (e.days || []).find(
13118
- (b) => (b.schedules || []).some((P) => P.id === v.id)
13119
- ), _t = (v) => [...r(v)].sort(wa), Wn = (v) => (v.sessions || []).some((b) => r(b).length > 0), dn = /* @__PURE__ */ new WeakMap(), Fi = (v) => {
13120
- const b = dn.get(v), P = l(v);
13121
- if (b && b.src === P)
13122
- return b.list;
13118
+ (w) => (w.schedules || []).some((P) => P.id === v.id)
13119
+ ), _t = (v) => [...r(v)].sort(wa), Wn = (v) => (v.sessions || []).some((w) => r(w).length > 0), dn = /* @__PURE__ */ new WeakMap(), Fi = (v) => {
13120
+ const w = dn.get(v), P = l(v);
13121
+ if (w && w.src === P)
13122
+ return w.list;
13123
13123
  const q = new Set((v.sessions || []).map((fe) => fe.id)), ee = P.filter((fe) => !fe.sessionId || !q.has(fe.sessionId));
13124
13124
  return dn.set(v, { src: P, list: ee }), ee;
13125
13125
  }, li = (v) => [
13126
- ...n.value ? (v.sessions || []).map((b) => ({ kind: "session", item: b })) : [],
13127
- ...Fi(v).map((b) => ({ kind: "slot", item: b }))
13128
- ], $o = (v) => n.value ? (v.sessions || []).map((b) => ({ kind: "session", item: b })) : [], Xe = z(() => {
13129
- var b, P;
13130
- const v = (((b = oe.value) == null ? void 0 : b.schedules) || []).flatMap((q) => li(q));
13126
+ ...n.value ? (v.sessions || []).map((w) => ({ kind: "session", item: w })) : [],
13127
+ ...Fi(v).map((w) => ({ kind: "slot", item: w }))
13128
+ ], $o = (v) => n.value ? (v.sessions || []).map((w) => ({ kind: "session", item: w })) : [], Xe = z(() => {
13129
+ var w, P;
13130
+ const v = (((w = oe.value) == null ? void 0 : w.schedules) || []).flatMap((q) => li(q));
13131
13131
  for (const q of ((P = oe.value) == null ? void 0 : P.schedules) || [])
13132
13132
  for (const ee of q.sessions || [])
13133
13133
  v.push(..._t(ee).map((fe) => ({ kind: "slot", item: fe })));
13134
13134
  return Sd(v);
13135
13135
  }), To = z(() => {
13136
13136
  const v = [];
13137
- for (let b = Xe.value.start; b <= Xe.value.end; b += 60)
13138
- v.push({ min: b, label: Rt(b) });
13137
+ for (let w = Xe.value.start; w <= Xe.value.end; w += 60)
13138
+ v.push({ min: w, label: Rt(w) });
13139
13139
  return v;
13140
13140
  }), Po = z(() => {
13141
13141
  const v = [];
13142
- for (let b = Xe.value.start + 30; b < Xe.value.end; b += 60)
13143
- v.push({ min: b, label: Rt(b) });
13142
+ for (let w = Xe.value.start + 30; w < Xe.value.end; w += 60)
13143
+ v.push({ min: w, label: Rt(w) });
13144
13144
  return v;
13145
13145
  }), fs = (v) => Cd(v, Xe.value), Oi = z(() => {
13146
13146
  if (!R.value || !x.value)
13147
13147
  return {};
13148
- const v = Xe.value, b = (R.value.minutes - v.start) / v.total * 100, P = Math.max(x.value.duration / v.total * 100, 2.5);
13149
- return { top: b + "%", height: P + "%" };
13148
+ const v = Xe.value, w = (R.value.minutes - v.start) / v.total * 100, P = Math.max(x.value.duration / v.total * 100, 2.5);
13149
+ return { top: w + "%", height: P + "%" };
13150
13150
  }), F = z(() => !R.value || !x.value ? "" : Rt(R.value.minutes + x.value.duration)), _ = z(() => {
13151
13151
  if (!R.value)
13152
13152
  return {};
13153
- const v = Xe.value, b = (R.value.minutes - v.start) / v.total * 100, P = Math.max(vt.value / v.total * 100, 1.5);
13154
- return { top: b + "%", height: P + "%" };
13153
+ const v = Xe.value, w = (R.value.minutes - v.start) / v.total * 100, P = Math.max(vt.value / v.total * 100, 1.5);
13154
+ return { top: w + "%", height: P + "%" };
13155
13155
  }), H = z(() => {
13156
13156
  var ee, fe, Oe, Je, ut;
13157
13157
  if (!R.value || !x.value || !x.value.id)
@@ -13159,82 +13159,82 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13159
13159
  const v = ui(R.value.scheduleId);
13160
13160
  if (!v)
13161
13161
  return 0;
13162
- const b = { startTime: R.value.time, endTime: F.value }, P = (ee = R.value.session) == null ? void 0 : ee.id;
13162
+ const w = { startTime: R.value.time, endTime: F.value }, P = (ee = R.value.session) == null ? void 0 : ee.id;
13163
13163
  let q = 0;
13164
13164
  for (const W of li(v))
13165
- W.item.id !== ((fe = x.value) == null ? void 0 : fe.id) && (((Oe = x.value) == null ? void 0 : Oe.kind) === "slot" && W.kind === "session" && W.item.id === P || Bi(b, W.item) && q++);
13165
+ W.item.id !== ((fe = x.value) == null ? void 0 : fe.id) && (((Oe = x.value) == null ? void 0 : Oe.kind) === "slot" && W.kind === "session" && W.item.id === P || Bi(w, W.item) && q++);
13166
13166
  if (((Je = x.value) == null ? void 0 : Je.kind) === "slot" && R.value.session)
13167
13167
  for (const W of _t(R.value.session))
13168
- W.id !== ((ut = x.value) == null ? void 0 : ut.id) && Bi(b, W) && q++;
13168
+ W.id !== ((ut = x.value) == null ? void 0 : ut.id) && Bi(w, W) && q++;
13169
13169
  return q;
13170
- }), ne = z(() => H.value > 0), pe = (v, b) => xd(li(v), b, Bi), nt = (v, b) => $d(_t(v), b, Bi), Ze = (v, b) => kd(v, b), $e = (v) => {
13171
- const b = Xe.value, P = ze(v.item.startTime), q = ze(v.item.endTime);
13172
- return !isFinite(P) || !isFinite(q) ? 48 : (q - P) / b.total * un.value;
13170
+ }), ne = z(() => H.value > 0), pe = (v, w) => xd(li(v), w, Bi), nt = (v, w) => $d(_t(v), w, Bi), Ze = (v, w) => kd(v, w), $e = (v) => {
13171
+ const w = Xe.value, P = ze(v.item.startTime), q = ze(v.item.endTime);
13172
+ return !isFinite(P) || !isFinite(q) ? 48 : (q - P) / w.total * un.value;
13173
13173
  }, ie = (v) => Pd($e(v)), le = (v) => {
13174
- const b = e.slotName ? e.slotName(v.item) : v.item.name || (v.kind === "session" ? o.value.session : o.value.slot);
13174
+ const w = e.slotName ? e.slotName(v.item) : v.item.name || (v.kind === "session" ? o.value.session : o.value.slot);
13175
13175
  if (v.kind === "slot" && ie(v) !== "h-full") {
13176
13176
  const P = g(v.item);
13177
13177
  if (P)
13178
- return `${b} — ${P}`;
13178
+ return `${w} — ${P}`;
13179
13179
  }
13180
- return b;
13181
- }, ue = (v, b) => {
13182
- const P = h(v);
13183
- if (b !== "h-full") {
13180
+ return w;
13181
+ }, ue = (v, w) => {
13182
+ const P = f(v);
13183
+ if (w !== "h-full") {
13184
13184
  const q = g(v);
13185
13185
  if (q)
13186
13186
  return `${P} — ${q}`;
13187
13187
  }
13188
13188
  return P;
13189
13189
  }, de = (v) => {
13190
- const b = `${v.item.startTime || "?"}–${v.item.endTime || "?"}`;
13190
+ const w = `${v.item.startTime || "?"}–${v.item.endTime || "?"}`;
13191
13191
  if (v.kind === "slot") {
13192
13192
  const P = g(v.item);
13193
- return [h(v.item), b, P ? `${o.value.participants}: ${P}` : ""].filter(Boolean).join(`
13193
+ return [f(v.item), w, P ? `${o.value.participants}: ${P}` : ""].filter(Boolean).join(`
13194
13194
  `);
13195
13195
  }
13196
- return [f(v.item), b].filter(Boolean).join(`
13196
+ return [h(v.item), w].filter(Boolean).join(`
13197
13197
  `);
13198
13198
  }, Te = (v) => {
13199
- const b = g(v);
13199
+ const w = g(v);
13200
13200
  return [
13201
- h(v),
13201
+ f(v),
13202
13202
  `${v.startTime}–${v.endTime}`,
13203
- b ? `${o.value.participants}: ${b}` : ""
13203
+ w ? `${o.value.participants}: ${w}` : ""
13204
13204
  ].filter(Boolean).join(`
13205
13205
  `);
13206
- }, Ne = (v, b) => {
13206
+ }, Ne = (v, w) => {
13207
13207
  var P;
13208
13208
  return {
13209
- conflict: nt(v.item, b),
13210
- dragging: ((P = cn.value) == null ? void 0 : P.perfom.id) === b.id,
13209
+ conflict: nt(v.item, w),
13210
+ dragging: ((P = cn.value) == null ? void 0 : P.perfom.id) === w.id,
13211
13211
  [ie(v)]: !0
13212
13212
  };
13213
- }, He = O(null), wt = (v, b) => {
13214
- const P = v.getBoundingClientRect(), q = Math.min(Math.max((b - P.top) / P.height, 0), 1);
13213
+ }, He = O(null), wt = (v, w) => {
13214
+ const P = v.getBoundingClientRect(), q = Math.min(Math.max((w - P.top) / P.height, 0), 1);
13215
13215
  return Xe.value.start + qi(q * Xe.value.total, vt.value);
13216
- }, hs = (v, b) => {
13217
- b.target.closest(".block-actions, .block-resize") || b.button !== 0 || X.value || (He.value = { gi: v, startX: b.clientX, startY: b.clientY, moved: !1 }, window.addEventListener("pointermove", ms), window.addEventListener("pointerup", Ja), window.addEventListener("pointercancel", Mo), window.addEventListener("keydown", er));
13216
+ }, hs = (v, w) => {
13217
+ w.target.closest(".block-actions, .block-resize") || w.button !== 0 || X.value || (He.value = { gi: v, startX: w.clientX, startY: w.clientY, moved: !1 }, window.addEventListener("pointermove", ms), window.addEventListener("pointerup", Ja), window.addEventListener("pointercancel", Mo), window.addEventListener("keydown", er));
13218
13218
  }, ms = (v) => {
13219
- const b = He.value;
13220
- if (b) {
13221
- if (!b.moved) {
13222
- if (Math.hypot(v.clientX - b.startX, v.clientY - b.startY) < al)
13219
+ const w = He.value;
13220
+ if (w) {
13221
+ if (!w.moved) {
13222
+ if (Math.hypot(v.clientX - w.startX, v.clientY - w.startY) < al)
13223
13223
  return;
13224
- b.moved = !0;
13225
- const P = hi(b.gi.item.startTime, b.gi.item.endTime);
13224
+ w.moved = !0;
13225
+ const P = hi(w.gi.item.startTime, w.gi.item.endTime);
13226
13226
  x.value = {
13227
- kind: b.gi.kind,
13228
- id: b.gi.item.id,
13229
- name: b.gi.item.name || (b.gi.kind === "session" ? o.value.session : o.value.slot),
13227
+ kind: w.gi.kind,
13228
+ id: w.gi.item.id,
13229
+ name: w.gi.item.name || (w.gi.kind === "session" ? o.value.session : o.value.slot),
13230
13230
  duration: isFinite(P) && P > 0 ? P : 30
13231
13231
  }, document.body.style.userSelect = "none", document.body.style.cursor = "grabbing";
13232
13232
  }
13233
13233
  Ro(v.clientX, v.clientY), Qd(v.clientX, v.clientY);
13234
13234
  }
13235
- }, Ro = (v, b) => {
13235
+ }, Ro = (v, w) => {
13236
13236
  var Je, ut;
13237
- const P = document.elementFromPoint(v, b), q = P == null ? void 0 : P.closest(".hall-col"), ee = q == null ? void 0 : q.getAttribute("data-schedule-id");
13237
+ const P = document.elementFromPoint(v, w), q = P == null ? void 0 : P.closest(".hall-col"), ee = q == null ? void 0 : q.getAttribute("data-schedule-id");
13238
13238
  if (!q || !ee) {
13239
13239
  U.value = void 0, R.value = null;
13240
13240
  return;
@@ -13243,7 +13243,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13243
13243
  if (!fe)
13244
13244
  return;
13245
13245
  U.value = fe.id;
13246
- const Oe = wt(q, b);
13246
+ const Oe = wt(q, w);
13247
13247
  R.value = {
13248
13248
  scheduleId: fe.id,
13249
13249
  minutes: Oe,
@@ -13258,18 +13258,18 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13258
13258
  ze
13259
13259
  )
13260
13260
  } : {}
13261
- }, L.value = { x: v, y: b };
13262
- }, Qd = (v, b) => {
13261
+ }, L.value = { x: v, y: w };
13262
+ }, Qd = (v, w) => {
13263
13263
  const P = ke.value;
13264
13264
  if (!P)
13265
13265
  return;
13266
13266
  const q = P.getBoundingClientRect();
13267
- b < q.top + 48 ? P.scrollTop -= 14 : b > q.bottom - 48 && (P.scrollTop += 14), v < q.left + 48 ? P.scrollLeft -= 14 : v > q.right - 48 && (P.scrollLeft += 14);
13267
+ w < q.top + 48 ? P.scrollTop -= 14 : w > q.bottom - 48 && (P.scrollTop += 14), v < q.left + 48 ? P.scrollLeft -= 14 : v > q.right - 48 && (P.scrollLeft += 14);
13268
13268
  }, Ja = (v) => {
13269
13269
  Zd(v);
13270
13270
  }, Zd = async (v) => {
13271
- const b = He.value;
13272
- if (Io(), He.value = null, !b || !b.moved)
13271
+ const w = He.value;
13272
+ if (Io(), He.value = null, !w || !w.moved)
13273
13273
  return;
13274
13274
  xe.value = Date.now();
13275
13275
  const P = document.elementFromPoint(v.clientX, v.clientY), q = P == null ? void 0 : P.closest(".hall-col"), ee = q == null ? void 0 : q.getAttribute("data-schedule-id"), fe = ee ? ui(ee) : void 0;
@@ -13293,8 +13293,8 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13293
13293
  const ps = (v) => {
13294
13294
  if (!v)
13295
13295
  return null;
13296
- for (const b of e.days || [])
13297
- for (const P of b.schedules || []) {
13296
+ for (const w of e.days || [])
13297
+ for (const P of w.schedules || []) {
13298
13298
  const q = (P.sessions || []).find((fe) => fe.id === v);
13299
13299
  if (q)
13300
13300
  return { kind: "session", item: q, schedule: P };
@@ -13306,12 +13306,12 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13306
13306
  }, Jd = () => {
13307
13307
  var v;
13308
13308
  return ps((v = x.value) == null ? void 0 : v.id);
13309
- }, Kd = (v, b) => {
13310
- b.preventDefault(), b.stopPropagation();
13309
+ }, Kd = (v, w) => {
13310
+ w.preventDefault(), w.stopPropagation();
13311
13311
  const P = v.item, q = ze(P.startTime), ee = ze(P.endTime);
13312
13312
  if (!isFinite(q) || !isFinite(ee))
13313
13313
  return;
13314
- const fe = b.clientY;
13314
+ const fe = w.clientY;
13315
13315
  X.value = !0;
13316
13316
  const Oe = (W) => {
13317
13317
  const ce = (W.clientY - fe) / Lt.value * 60, be = qi(ee + ce, vt.value);
@@ -13324,57 +13324,57 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13324
13324
  Je();
13325
13325
  };
13326
13326
  window.addEventListener("pointermove", Oe), window.addEventListener("pointerup", ut);
13327
- }, cn = O(null), ec = (v, b, P) => {
13327
+ }, cn = O(null), ec = (v, w, P) => {
13328
13328
  if (P.target.closest(".nested-edit, .nested-resize") || P.button !== 0 || X.value)
13329
13329
  return;
13330
- const q = P.target.closest(".session-perfoms"), ee = ze(v.startTime), fe = ze(v.endTime), Oe = hi(b.startTime, b.endTime);
13330
+ const q = P.target.closest(".session-perfoms"), ee = ze(v.startTime), fe = ze(v.endTime), Oe = hi(w.startTime, w.endTime);
13331
13331
  !q || !isFinite(ee) || !isFinite(fe) || fe <= ee || (cn.value = {
13332
- perfom: b,
13332
+ perfom: w,
13333
13333
  session: v,
13334
13334
  startX: P.clientX,
13335
13335
  startY: P.clientY,
13336
13336
  moved: !1,
13337
- savedStart: b.startTime,
13338
- savedEnd: b.endTime,
13337
+ savedStart: w.startTime,
13338
+ savedEnd: w.endTime,
13339
13339
  sessionStart: ee,
13340
13340
  sessionDur: fe - ee,
13341
13341
  durMin: isFinite(Oe) && Oe > 0 ? Oe : 30,
13342
13342
  container: q
13343
13343
  }, window.addEventListener("pointermove", tr), window.addEventListener("pointerup", nr), window.addEventListener("pointercancel", Ao), window.addEventListener("keydown", ir));
13344
13344
  }, tr = (v) => {
13345
- const b = cn.value;
13346
- if (!b)
13345
+ const w = cn.value;
13346
+ if (!w)
13347
13347
  return;
13348
- if (!b.moved) {
13349
- if (Math.hypot(v.clientX - b.startX, v.clientY - b.startY) < al)
13348
+ if (!w.moved) {
13349
+ if (Math.hypot(v.clientX - w.startX, v.clientY - w.startY) < al)
13350
13350
  return;
13351
- b.moved = !0, document.body.style.userSelect = "none", document.body.style.cursor = "grabbing";
13351
+ w.moved = !0, document.body.style.userSelect = "none", document.body.style.cursor = "grabbing";
13352
13352
  }
13353
- const P = b.container.getBoundingClientRect(), q = Math.min(Math.max((v.clientY - P.top) / P.height, 0), 1);
13354
- let ee = b.sessionStart + qi(q * b.sessionDur, vt.value);
13355
- const fe = b.sessionStart + b.sessionDur - b.durMin;
13356
- ee = Math.min(Math.max(ee, b.sessionStart), Math.max(fe, b.sessionStart)), b.perfom.startTime = Rt(ee), b.perfom.endTime = Rt(ee + b.durMin), L.value = { x: v.clientX, y: v.clientY };
13353
+ const P = w.container.getBoundingClientRect(), q = Math.min(Math.max((v.clientY - P.top) / P.height, 0), 1);
13354
+ let ee = w.sessionStart + qi(q * w.sessionDur, vt.value);
13355
+ const fe = w.sessionStart + w.sessionDur - w.durMin;
13356
+ ee = Math.min(Math.max(ee, w.sessionStart), Math.max(fe, w.sessionStart)), w.perfom.startTime = Rt(ee), w.perfom.endTime = Rt(ee + w.durMin), L.value = { x: v.clientX, y: v.clientY };
13357
13357
  }, nr = (v) => {
13358
13358
  tc(v);
13359
13359
  }, tc = async (v) => {
13360
13360
  var Oe;
13361
- const b = cn.value;
13362
- if (Eo(), cn.value = null, L.value = null, document.body.style.userSelect = "", document.body.style.cursor = "", !b || !b.moved)
13361
+ const w = cn.value;
13362
+ if (Eo(), cn.value = null, L.value = null, document.body.style.userSelect = "", document.body.style.cursor = "", !w || !w.moved)
13363
13363
  return;
13364
13364
  xe.value = Date.now();
13365
13365
  const P = document.elementFromPoint(v.clientX, v.clientY), q = P == null ? void 0 : P.closest(".hall-col"), ee = q == null ? void 0 : q.getAttribute("data-schedule-id"), fe = ee ? ui(ee) : void 0;
13366
13366
  if (q && fe) {
13367
13367
  x.value = {
13368
13368
  kind: "slot",
13369
- id: b.perfom.id,
13370
- name: b.perfom.name || o.value.slot,
13371
- duration: b.durMin
13369
+ id: w.perfom.id,
13370
+ name: w.perfom.name || o.value.slot,
13371
+ duration: w.durMin
13372
13372
  };
13373
- const Je = wt(q, v.clientY), ut = Rt(Je), W = hi(b.perfom.startTime, b.perfom.endTime), ce = en(ut, W > 0 ? W : 30), be = ((Oe = rr(b.perfom)) == null ? void 0 : Oe.id) === fe.id && b.perfom.startTime === ut && b.perfom.endTime === ce;
13374
- await sr(fe, Je), be && (await e.persist.updateSlot(b.perfom), await e.persist.refresh()), x.value = null;
13373
+ const Je = wt(q, v.clientY), ut = Rt(Je), W = hi(w.perfom.startTime, w.perfom.endTime), ce = en(ut, W > 0 ? W : 30), be = ((Oe = rr(w.perfom)) == null ? void 0 : Oe.id) === fe.id && w.perfom.startTime === ut && w.perfom.endTime === ce;
13374
+ await sr(fe, Je), be && (await e.persist.updateSlot(w.perfom), await e.persist.refresh()), x.value = null;
13375
13375
  return;
13376
13376
  }
13377
- b.perfom.startTime = Yn(b.perfom.startTime), b.perfom.endTime = Yn(b.perfom.endTime), b.perfom.startTime && (await e.persist.updateSlot(b.perfom), await e.persist.refresh());
13377
+ w.perfom.startTime = Yn(w.perfom.startTime), w.perfom.endTime = Yn(w.perfom.endTime), w.perfom.startTime && (await e.persist.updateSlot(w.perfom), await e.persist.refresh());
13378
13378
  }, Ao = () => {
13379
13379
  const v = cn.value;
13380
13380
  Eo(), v && (v.perfom.startTime = v.savedStart, v.perfom.endTime = v.savedEnd), cn.value = null, L.value = null, document.body.style.userSelect = "", document.body.style.cursor = "";
@@ -13382,9 +13382,9 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13382
13382
  window.removeEventListener("pointermove", tr), window.removeEventListener("pointerup", nr), window.removeEventListener("pointercancel", Ao), window.removeEventListener("keydown", ir);
13383
13383
  }, ir = (v) => {
13384
13384
  v.key === "Escape" && Ao();
13385
- }, nc = (v, b, P) => {
13385
+ }, nc = (v, w, P) => {
13386
13386
  P.preventDefault(), P.stopPropagation();
13387
- const q = ze(v.startTime), ee = ze(v.endTime), fe = ze(b.startTime), Oe = P.target.closest(".nested-perfom"), Je = Oe == null ? void 0 : Oe.closest(".session-perfoms");
13387
+ const q = ze(v.startTime), ee = ze(v.endTime), fe = ze(w.startTime), Oe = P.target.closest(".nested-perfom"), Je = Oe == null ? void 0 : Oe.closest(".session-perfoms");
13388
13388
  if (!Oe || !Je || !isFinite(q) || !isFinite(ee) || ee <= q || !isFinite(fe))
13389
13389
  return;
13390
13390
  const ut = Je.getBoundingClientRect(), W = ee - q;
@@ -13394,20 +13394,20 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13394
13394
  Math.max(fe + vt.value, q + qi(pc * W, vt.value)),
13395
13395
  ee
13396
13396
  );
13397
- b.endTime = Rt(gc);
13397
+ w.endTime = Rt(gc);
13398
13398
  }, be = async () => {
13399
- window.removeEventListener("pointermove", ce), window.removeEventListener("pointerup", he), X.value = !1, xe.value = Date.now(), await e.persist.updateSlot(b), await e.persist.refresh();
13399
+ window.removeEventListener("pointermove", ce), window.removeEventListener("pointerup", he), X.value = !1, xe.value = Date.now(), await e.persist.updateSlot(w), await e.persist.refresh();
13400
13400
  }, he = () => {
13401
13401
  be();
13402
13402
  };
13403
13403
  window.addEventListener("pointermove", ce), window.addEventListener("pointerup", he);
13404
- }, sr = async (v, b) => {
13404
+ }, sr = async (v, w) => {
13405
13405
  var ce;
13406
13406
  U.value = void 0, R.value = null, L.value = null;
13407
13407
  const P = Jd();
13408
13408
  if (!P)
13409
13409
  return;
13410
- const q = Rt(b), ee = hi(P.item.startTime, P.item.endTime), fe = en(q, ee > 0 ? ee : 30);
13410
+ const q = Rt(w), ee = hi(P.item.startTime, P.item.endTime), fe = en(q, ee > 0 ? ee : 30);
13411
13411
  if (((ce = P.schedule) == null ? void 0 : ce.id) === v.id && P.item.startTime === q && P.item.endTime === fe)
13412
13412
  return;
13413
13413
  const Oe = P.item.startTime;
@@ -13427,10 +13427,10 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13427
13427
  Y.H.Classes.RemoveFromClassById(W.id, be, []), ut.push(W);
13428
13428
  }
13429
13429
  await Fn(W, P.kind), await e.persist.refresh();
13430
- }, ic = async (v, b) => {
13431
- if (b.target.closest(".timeline-block"))
13430
+ }, ic = async (v, w) => {
13431
+ if (w.target.closest(".timeline-block"))
13432
13432
  return;
13433
- const P = wt(b.currentTarget, b.clientY), q = a.value.createSlot(v);
13433
+ const P = wt(w.currentTarget, w.clientY), q = a.value.createSlot(v);
13434
13434
  if (q.startTime = Rt(P), q.endTime = Rt(P + 30), n.value) {
13435
13435
  const fe = gs(v.sessions, P, P + 30, ze);
13436
13436
  fe != null && fe.id && (q.sessionId = fe.id);
@@ -13438,27 +13438,27 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13438
13438
  await e.persist.createSlot(q), await e.persist.refresh();
13439
13439
  const ee = ps(q.id);
13440
13440
  ee && On(ee);
13441
- }, or = async (v, b, P) => {
13441
+ }, or = async (v, w, P) => {
13442
13442
  if (v.added) {
13443
- if (v.added.element.scheduleId = b.id, P === "slot" && v.added.element.sessionId && ((b.sessions || []).some(
13443
+ if (v.added.element.scheduleId = w.id, P === "slot" && v.added.element.sessionId && ((w.sessions || []).some(
13444
13444
  (ee) => ee.id === v.added.element.sessionId
13445
13445
  ) || delete v.added.element.sessionId), await Fn(v.added.element, P), P === "session")
13446
13446
  for (const q of r(v.added.element))
13447
- q.scheduleId = b.id, await e.persist.updateSlot(q);
13447
+ q.scheduleId = w.id, await e.persist.updateSlot(q);
13448
13448
  await e.persist.refresh();
13449
13449
  }
13450
13450
  }, ui = (v) => {
13451
- for (const b of e.days || []) {
13452
- const P = (b.schedules || []).find((q) => q.id === v);
13451
+ for (const w of e.days || []) {
13452
+ const P = (w.schedules || []).find((q) => q.id === v);
13453
13453
  if (P)
13454
13454
  return P;
13455
13455
  }
13456
- }, gs = (v, b, P, q) => Td(v, b, P, q), ar = (v) => n.value ? ((v == null ? void 0 : v.sessions) || []).map((b) => ({
13457
- id: b.id,
13458
- label: f(b)
13456
+ }, gs = (v, w, P, q) => Td(v, w, P, q), ar = (v) => n.value ? ((v == null ? void 0 : v.sessions) || []).map((w) => ({
13457
+ id: w.id,
13458
+ label: h(w)
13459
13459
  })) : [], rr = (v) => {
13460
- for (const b of e.days || [])
13461
- for (const P of b.schedules || [])
13460
+ for (const w of e.days || [])
13461
+ for (const P of w.schedules || [])
13462
13462
  if (l(P).some((q) => q.id === v.id) || v.sessionId && (P.sessions || []).some((q) => q.id === v.sessionId))
13463
13463
  return P;
13464
13464
  }, lr = z(() => {
@@ -13468,41 +13468,41 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13468
13468
  }), sc = z(() => {
13469
13469
  const v = V.value;
13470
13470
  return !v || v.kind !== "slot" ? [] : ar(lr.value);
13471
- }), ur = (v, b) => {
13471
+ }), ur = (v, w) => {
13472
13472
  for (const P of e.days || [])
13473
13473
  for (const q of P.schedules || [])
13474
- if (b === "session") {
13474
+ if (w === "session") {
13475
13475
  if ((q.sessions || []).some((ee) => ee.id === v.id))
13476
13476
  return q;
13477
13477
  } else if (l(q).some((ee) => ee.id === v.id))
13478
13478
  return q;
13479
- }, dr = async (v, b) => {
13480
- b ? v.sessionId = b : delete v.sessionId, await e.persist.updateSlot(v), await e.persist.refresh();
13479
+ }, dr = async (v, w) => {
13480
+ w ? v.sessionId = w : delete v.sessionId, await e.persist.updateSlot(v), await e.persist.refresh();
13481
13481
  }, cr = async (v) => {
13482
13482
  if (!n.value)
13483
13483
  return;
13484
- const b = a.value.createSession(v);
13485
- await e.persist.createSession(b), await e.persist.refresh();
13486
- }, oc = async (v, b) => {
13484
+ const w = a.value.createSession(v);
13485
+ await e.persist.createSession(w), await e.persist.refresh();
13486
+ }, oc = async (v, w) => {
13487
13487
  const P = a.value.createSlot(v);
13488
- if (P.startTime = Rt(b), P.endTime = en(P.startTime, 30), n.value) {
13489
- const ee = gs(v.sessions, b, b + 30, ze);
13488
+ if (P.startTime = Rt(w), P.endTime = en(P.startTime, 30), n.value) {
13489
+ const ee = gs(v.sessions, w, w + 30, ze);
13490
13490
  ee != null && ee.id && (P.sessionId = ee.id);
13491
13491
  }
13492
13492
  await e.persist.createSlot(P), await e.persist.refresh();
13493
13493
  const q = ps(P.id);
13494
13494
  q && On(q);
13495
13495
  }, fr = async (v) => {
13496
- const b = a.value.createSlot(v), P = [...l(v)].sort(wa).slice(-1)[0];
13497
- b.startTime = Yn(P == null ? void 0 : P.endTime) || "9:00", b.endTime = en(b.startTime, 30), await e.persist.createSlot(b), await e.persist.refresh();
13496
+ const w = a.value.createSlot(v), P = [...l(v)].sort(wa).slice(-1)[0];
13497
+ w.startTime = Yn(P == null ? void 0 : P.endTime) || "9:00", w.endTime = en(w.startTime, 30), await e.persist.createSlot(w), await e.persist.refresh();
13498
13498
  }, fn = O(null), ac = (v) => {
13499
13499
  fn.value = null, v.action();
13500
- }, Fo = (v, b) => {
13501
- const P = b.length * 34 + 12;
13500
+ }, Fo = (v, w) => {
13501
+ const P = w.length * 34 + 12;
13502
13502
  fn.value = {
13503
13503
  x: Math.min(v.clientX, window.innerWidth - 210),
13504
13504
  y: Math.min(v.clientY, window.innerHeight - P - 8),
13505
- items: b
13505
+ items: w
13506
13506
  };
13507
13507
  }, hr = () => {
13508
13508
  fn.value = null;
@@ -13518,7 +13518,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13518
13518
  window.removeEventListener("click", hr), window.removeEventListener("contextmenu", mr), window.removeEventListener("keydown", pr), window.removeEventListener("scroll", vs, !0), window.removeEventListener("resize", vs), Oo.value = !1;
13519
13519
  };
13520
13520
  rc();
13521
- const uc = (v, b) => {
13521
+ const uc = (v, w) => {
13522
13522
  const P = [
13523
13523
  { icon: "edit", label: o.value.edit, action: () => On(v) },
13524
13524
  {
@@ -13533,8 +13533,8 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13533
13533
  action: () => void Di(v.item, v.kind)
13534
13534
  }
13535
13535
  ];
13536
- Fo(b, P);
13537
- }, dc = (v, b) => {
13536
+ Fo(w, P);
13537
+ }, dc = (v, w) => {
13538
13538
  const P = { kind: "slot", item: v }, q = [
13539
13539
  { icon: "edit", label: o.value.edit, action: () => On(P) },
13540
13540
  {
@@ -13549,9 +13549,9 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13549
13549
  action: () => void Di(v, "slot")
13550
13550
  }
13551
13551
  ];
13552
- Fo(b, q);
13553
- }, cc = (v, b) => {
13554
- const P = wt(b.currentTarget, b.clientY), q = Rt(P), ee = [
13552
+ Fo(w, q);
13553
+ }, cc = (v, w) => {
13554
+ const P = wt(w.currentTarget, w.clientY), q = Rt(P), ee = [
13555
13555
  {
13556
13556
  icon: "mic",
13557
13557
  label: `${o.value.addSlot} · ${q}`,
@@ -13562,27 +13562,27 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13562
13562
  icon: "groups",
13563
13563
  label: `${o.value.addSession} · ${q}`,
13564
13564
  action: () => void fc(v, P)
13565
- }), Fo(b, ee);
13566
- }, fc = async (v, b) => {
13565
+ }), Fo(w, ee);
13566
+ }, fc = async (v, w) => {
13567
13567
  if (!n.value)
13568
13568
  return;
13569
13569
  const P = a.value.createSession(v);
13570
- P.startTime = Rt(b), P.endTime = en(P.startTime, 30), await e.persist.createSession(P), await e.persist.refresh();
13570
+ P.startTime = Rt(w), P.endTime = en(P.startTime, 30), await e.persist.createSession(P), await e.persist.refresh();
13571
13571
  }, gr = async (v) => {
13572
- const b = ui(v.item.scheduleId) || ur(v.item, v.kind);
13573
- if (!b)
13572
+ const w = ui(v.item.scheduleId) || ur(v.item, v.kind);
13573
+ if (!w)
13574
13574
  return;
13575
13575
  const P = hi(v.item.startTime, v.item.endTime) || 30, q = Yn(v.item.endTime) || "9:00";
13576
13576
  if (v.kind === "slot") {
13577
- const ee = a.value.createSlot(b);
13577
+ const ee = a.value.createSlot(w);
13578
13578
  ee.name = v.item.name ? `${v.item.name} (копия)` : v.item.name, ee.startTime = q, ee.endTime = en(q, P), ee.sessionId = v.item.sessionId, v.item.description && (ee.description = v.item.description), v.item.payload && (ee.payload = { ...v.item.payload }), await e.persist.createSlot(ee);
13579
13579
  } else {
13580
- const ee = a.value.createSession(b);
13581
- ee.name = v.item.name ? `${v.item.name} (копия)` : v.item.name, ee.startTime = q, ee.endTime = en(q, P), ee.scheduleId = b.id, await e.persist.createSession(ee);
13580
+ const ee = a.value.createSession(w);
13581
+ ee.name = v.item.name ? `${v.item.name} (копия)` : v.item.name, ee.startTime = q, ee.endTime = en(q, P), ee.scheduleId = w.id, await e.persist.createSession(ee);
13582
13582
  }
13583
13583
  await e.persist.refresh();
13584
- }, Di = async (v, b) => {
13585
- if (b === "slot")
13584
+ }, Di = async (v, w) => {
13585
+ if (w === "slot")
13586
13586
  await e.persist.removeSlot(v);
13587
13587
  else {
13588
13588
  for (const P of r(v))
@@ -13590,13 +13590,13 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13590
13590
  await e.persist.removeSession(v);
13591
13591
  }
13592
13592
  await e.persist.refresh();
13593
- }, Fn = async (v, b) => {
13593
+ }, Fn = async (v, w) => {
13594
13594
  const P = Yn(v.startTime), q = Yn(v.endTime);
13595
13595
  if (!P) {
13596
13596
  e.persist.notify("warning", o.value.correctStartTime);
13597
13597
  return;
13598
13598
  }
13599
- v.startTime = P, v.endTime = q || en(P, 30), b === "slot" ? await e.persist.updateSlot(v) : await e.persist.updateSession(v);
13599
+ v.startTime = P, v.endTime = q || en(P, 30), w === "slot" ? await e.persist.updateSlot(v) : await e.persist.updateSession(v);
13600
13600
  }, On = (v) => {
13601
13601
  X.value || Date.now() - xe.value < 400 || (V.value = { kind: v.kind, item: v.item }, T.value = !0);
13602
13602
  }, hc = async () => {
@@ -13605,10 +13605,10 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13605
13605
  }, mc = async () => {
13606
13606
  const v = V.value;
13607
13607
  v && (await Di(v.item, v.kind), T.value = !1, V.value = null);
13608
- }, ys = (v, b, P, q) => {
13609
- v[b] = P, Fn(v, q);
13608
+ }, ys = (v, w, P, q) => {
13609
+ v[w] = P, Fn(v, q);
13610
13610
  };
13611
- return e.persist.loadOptions && e.persist.loadOptions(), (v, b) => {
13611
+ return e.persist.loadOptions && e.persist.loadOptions(), (v, w) => {
13612
13612
  var Je, ut;
13613
13613
  const P = Me("PButton"), q = Me("PTooltip"), ee = Me("PSelect"), fe = Me("PInput"), Oe = Me("PDialog");
13614
13614
  return m(), S("div", r0, [
@@ -13617,7 +13617,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13617
13617
  i.value ? (m(), S("div", d0, [
13618
13618
  p(c(Ca), {
13619
13619
  modelValue: $.value,
13620
- "onUpdate:modelValue": b[0] || (b[0] = (W) => $.value = W),
13620
+ "onUpdate:modelValue": w[0] || (w[0] = (W) => $.value = W),
13621
13621
  dense: "",
13622
13622
  class: "day-tabs",
13623
13623
  "active-color": "primary"
@@ -13678,7 +13678,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13678
13678
  "model-value": Kt(oe.value.date),
13679
13679
  label: o.value.date,
13680
13680
  class: "date-input",
13681
- "onUpdate:modelValue": b[1] || (b[1] = (W) => Ge(oe.value, W))
13681
+ "onUpdate:modelValue": w[1] || (w[1] = (W) => Ge(oe.value, W))
13682
13682
  }, null, 8, ["model-value", "label"])) : j("", !0),
13683
13683
  s.value ? (m(), D(P, {
13684
13684
  key: 2,
@@ -13689,7 +13689,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13689
13689
  label: o.value.addHall,
13690
13690
  onClick: yt
13691
13691
  }, null, 8, ["label"])) : j("", !0),
13692
- w.value === "grid" ? (m(), S("div", f0, [
13692
+ b.value === "grid" ? (m(), S("div", f0, [
13693
13693
  p(c(ae), {
13694
13694
  name: "grid_on",
13695
13695
  size: "18px",
@@ -13697,7 +13697,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13697
13697
  }),
13698
13698
  p(ee, {
13699
13699
  modelValue: at.value,
13700
- "onUpdate:modelValue": b[2] || (b[2] = (W) => at.value = W),
13700
+ "onUpdate:modelValue": w[2] || (w[2] = (W) => at.value = W),
13701
13701
  options: Qe,
13702
13702
  clearable: !1,
13703
13703
  size: "sm",
@@ -13722,7 +13722,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13722
13722
  }),
13723
13723
  p(ee, {
13724
13724
  modelValue: Lt.value,
13725
- "onUpdate:modelValue": b[3] || (b[3] = (W) => Lt.value = W),
13725
+ "onUpdate:modelValue": w[3] || (w[3] = (W) => Lt.value = W),
13726
13726
  options: ht,
13727
13727
  clearable: !1,
13728
13728
  size: "sm",
@@ -13742,8 +13742,8 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13742
13742
  }, 8, ["modelValue"])
13743
13743
  ])) : j("", !0),
13744
13744
  p(ee, {
13745
- modelValue: w.value,
13746
- "onUpdate:modelValue": b[4] || (b[4] = (W) => w.value = W),
13745
+ modelValue: b.value,
13746
+ "onUpdate:modelValue": w[4] || (w[4] = (W) => b.value = W),
13747
13747
  options: Ye.value,
13748
13748
  clearable: !1,
13749
13749
  size: "sm",
@@ -13762,7 +13762,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13762
13762
  _: 1
13763
13763
  }, 8, ["modelValue", "options"])
13764
13764
  ]),
13765
- w.value === "grid" ? (m(), S("div", h0, [
13765
+ b.value === "grid" ? (m(), S("div", h0, [
13766
13766
  Fe(oe.value).length ? (m(), S("div", {
13767
13767
  key: 1,
13768
13768
  ref_key: "gridScrollRef",
@@ -13778,7 +13778,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13778
13778
  })
13779
13779
  }, [
13780
13780
  y("div", p0, [
13781
- b[19] || (b[19] = y("div", { class: "time-gutter" }, null, -1)),
13781
+ w[19] || (w[19] = y("div", { class: "time-gutter" }, null, -1)),
13782
13782
  (m(!0), S(K, null, we(Fe(oe.value), (W) => (m(), S("div", {
13783
13783
  key: W.id,
13784
13784
  class: ye(["hall-head", { "drag-over": U.value === W.id }])
@@ -13967,13 +13967,13 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13967
13967
  key: "spine-" + ce.item.id,
13968
13968
  class: ye(["session-spine", { dragging: ((be = x.value) == null ? void 0 : be.id) === ce.item.id }]),
13969
13969
  style: J(fs(ce)),
13970
- title: f(ce.item)
13970
+ title: h(ce.item)
13971
13971
  }, [
13972
13972
  p(c(ae), {
13973
13973
  name: "groups",
13974
13974
  size: "11px"
13975
13975
  }),
13976
- y("span", O0, B(f(ce.item)), 1)
13976
+ y("span", O0, B(h(ce.item)), 1)
13977
13977
  ], 14, F0);
13978
13978
  }), 128)),
13979
13979
  R.value && R.value.scheduleId === W.id && x.value ? (m(), S("div", {
@@ -14019,15 +14019,15 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14019
14019
  }),
14020
14020
  ve(" " + B(R.value.time) + " · " + B(R.value.hallName) + " ", 1),
14021
14021
  R.value.session ? (m(), S(K, { key: 0 }, [
14022
- b[20] || (b[20] = ve(" · ", -1)),
14022
+ w[20] || (w[20] = ve(" · ", -1)),
14023
14023
  p(c(ae), {
14024
14024
  name: "groups",
14025
14025
  size: "12px"
14026
14026
  }),
14027
- ve(" " + B(o.value.intoSession) + " «" + B(f(R.value.session)) + "» ", 1)
14027
+ ve(" " + B(o.value.intoSession) + " «" + B(h(R.value.session)) + "» ", 1)
14028
14028
  ], 64)) : j("", !0),
14029
14029
  H.value ? (m(), S(K, { key: 1 }, [
14030
- b[21] || (b[21] = ve(" · ", -1)),
14030
+ w[21] || (w[21] = ve(" · ", -1)),
14031
14031
  p(c(ae), {
14032
14032
  name: "warning",
14033
14033
  size: "12px"
@@ -14173,7 +14173,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14173
14173
  size: "14px",
14174
14174
  class: "nested-icon"
14175
14175
  }),
14176
- y("div", W0, B(h(he)), 1),
14176
+ y("div", W0, B(f(he)), 1),
14177
14177
  y("div", Y0, B(he.startTime) + "–" + B(he.endTime), 1),
14178
14178
  p(c(_n)),
14179
14179
  p(P, {
@@ -14291,7 +14291,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14291
14291
  ])),
14292
14292
  p(Oe, {
14293
14293
  modelValue: I.value,
14294
- "onUpdate:modelValue": b[7] || (b[7] = (W) => I.value = W)
14294
+ "onUpdate:modelValue": w[7] || (w[7] = (W) => I.value = W)
14295
14295
  }, {
14296
14296
  default: C(() => [
14297
14297
  p(c(Qt), { style: { width: "700px", "max-width": "80vw" } }, {
@@ -14307,7 +14307,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14307
14307
  y("div", tb, [
14308
14308
  p(fe, {
14309
14309
  modelValue: E.value,
14310
- "onUpdate:modelValue": b[5] || (b[5] = (W) => E.value = W),
14310
+ "onUpdate:modelValue": w[5] || (w[5] = (W) => E.value = W),
14311
14311
  label: o.value.newHallPlaceholder,
14312
14312
  dense: "",
14313
14313
  outlined: "",
@@ -14356,7 +14356,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14356
14356
  p(P, {
14357
14357
  label: o.value.close,
14358
14358
  color: "primary",
14359
- onClick: b[6] || (b[6] = (W) => I.value = !1)
14359
+ onClick: w[6] || (w[6] = (W) => I.value = !1)
14360
14360
  }, null, 8, ["label"])
14361
14361
  ]),
14362
14362
  _: 1
@@ -14369,7 +14369,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14369
14369
  }, 8, ["modelValue"]),
14370
14370
  p(Oe, {
14371
14371
  modelValue: M.value,
14372
- "onUpdate:modelValue": b[9] || (b[9] = (W) => M.value = W)
14372
+ "onUpdate:modelValue": w[9] || (w[9] = (W) => M.value = W)
14373
14373
  }, {
14374
14374
  default: C(() => [
14375
14375
  p(c(Qt), { style: { width: "420px", "max-width": "90vw" } }, {
@@ -14392,7 +14392,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14392
14392
  flat: "",
14393
14393
  label: o.value.cancel,
14394
14394
  color: "primary",
14395
- onClick: b[8] || (b[8] = (W) => M.value = !1)
14395
+ onClick: w[8] || (w[8] = (W) => M.value = !1)
14396
14396
  }, null, 8, ["label"]),
14397
14397
  p(P, {
14398
14398
  label: o.value.delete,
@@ -14410,7 +14410,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14410
14410
  }, 8, ["modelValue"]),
14411
14411
  p(Oe, {
14412
14412
  modelValue: T.value,
14413
- "onUpdate:modelValue": b[16] || (b[16] = (W) => T.value = W)
14413
+ "onUpdate:modelValue": w[16] || (w[16] = (W) => T.value = W)
14414
14414
  }, {
14415
14415
  default: C(() => [
14416
14416
  p(c(Qt), { style: { width: "640px", "max-width": "90vw" } }, {
@@ -14431,7 +14431,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14431
14431
  default: C(() => [
14432
14432
  p(fe, {
14433
14433
  modelValue: V.value.item.name,
14434
- "onUpdate:modelValue": b[10] || (b[10] = (W) => V.value.item.name = W),
14434
+ "onUpdate:modelValue": w[10] || (w[10] = (W) => V.value.item.name = W),
14435
14435
  label: o.value.name,
14436
14436
  dense: "",
14437
14437
  outlined: "",
@@ -14441,7 +14441,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14441
14441
  y("div", rb, [
14442
14442
  p(fi, {
14443
14443
  modelValue: V.value.item.startTime,
14444
- "onUpdate:modelValue": b[11] || (b[11] = (W) => V.value.item.startTime = W),
14444
+ "onUpdate:modelValue": w[11] || (w[11] = (W) => V.value.item.startTime = W),
14445
14445
  label: o.value.startTime,
14446
14446
  dense: "",
14447
14447
  outlined: ""
@@ -14450,7 +14450,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14450
14450
  y("div", lb, [
14451
14451
  p(fi, {
14452
14452
  modelValue: V.value.item.endTime,
14453
- "onUpdate:modelValue": b[12] || (b[12] = (W) => V.value.item.endTime = W),
14453
+ "onUpdate:modelValue": w[12] || (w[12] = (W) => V.value.item.endTime = W),
14454
14454
  label: o.value.endTime,
14455
14455
  dense: "",
14456
14456
  outlined: ""
@@ -14468,7 +14468,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14468
14468
  options: sc.value,
14469
14469
  "option-value": "id",
14470
14470
  "option-label": "label",
14471
- "onUpdate:modelValue": b[13] || (b[13] = (W) => dr(V.value.item, W))
14471
+ "onUpdate:modelValue": w[13] || (w[13] = (W) => dr(V.value.item, W))
14472
14472
  }, null, 8, ["model-value", "label", "options"])) : j("", !0),
14473
14473
  N(v.$slots, "edit-form", {
14474
14474
  kind: V.value.kind,
@@ -14478,7 +14478,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14478
14478
  V.value.kind === "slot" ? (m(), D(fe, {
14479
14479
  key: 1,
14480
14480
  modelValue: V.value.item.description,
14481
- "onUpdate:modelValue": b[14] || (b[14] = (W) => V.value.item.description = W),
14481
+ "onUpdate:modelValue": w[14] || (w[14] = (W) => V.value.item.description = W),
14482
14482
  label: o.value.description,
14483
14483
  type: "textarea",
14484
14484
  rows: "2",
@@ -14502,7 +14502,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14502
14502
  flat: "",
14503
14503
  label: o.value.cancel,
14504
14504
  color: "primary",
14505
- onClick: b[15] || (b[15] = (W) => T.value = !1)
14505
+ onClick: w[15] || (w[15] = (W) => T.value = !1)
14506
14506
  }, null, 8, ["label"]),
14507
14507
  p(P, {
14508
14508
  label: o.value.save,
@@ -14522,9 +14522,9 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14522
14522
  key: 2,
14523
14523
  class: "ctx-menu",
14524
14524
  style: J({ left: fn.value.x + "px", top: fn.value.y + "px" }),
14525
- onClick: b[17] || (b[17] = We(() => {
14525
+ onClick: w[17] || (w[17] = We(() => {
14526
14526
  }, ["stop"])),
14527
- onContextmenu: b[18] || (b[18] = We(() => {
14527
+ onContextmenu: w[18] || (w[18] = We(() => {
14528
14528
  }, ["prevent", "stop"]))
14529
14529
  }, [
14530
14530
  (m(!0), S(K, null, we(fn.value.items, (W, ce) => (m(), S("div", {
@@ -14598,13 +14598,13 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14598
14598
  }, a = (k) => {
14599
14599
  var V;
14600
14600
  return n.placeName ? n.placeName(k) : ((V = k.place) == null ? void 0 : V.name) || k.placeName || "";
14601
- }, l = (k) => n.slotName ? n.slotName(k) : (k == null ? void 0 : k.name) || "", r = (k) => n.sessionName ? n.sessionName(k) : (k == null ? void 0 : k.name) || "", d = (k) => n.slotParticipants ? n.slotParticipants(k) : (k == null ? void 0 : k.participants) || [], f = (k) => n.sessionParticipants ? n.sessionParticipants(k) : (k == null ? void 0 : k.participants) || [], h = (k) => {
14601
+ }, l = (k) => n.slotName ? n.slotName(k) : (k == null ? void 0 : k.name) || "", r = (k) => n.sessionName ? n.sessionName(k) : (k == null ? void 0 : k.name) || "", d = (k) => n.slotParticipants ? n.slotParticipants(k) : (k == null ? void 0 : k.participants) || [], h = (k) => n.sessionParticipants ? n.sessionParticipants(k) : (k == null ? void 0 : k.participants) || [], f = (k) => {
14602
14602
  var V, x;
14603
14603
  return n.participantName ? n.participantName(k) : (k == null ? void 0 : k.name) || (k == null ? void 0 : k.fullName) || ((x = (V = k == null ? void 0 : k.human) == null ? void 0 : V.getFullName) == null ? void 0 : x.call(V)) || "";
14604
- }, g = (k) => n.participantBio ? n.participantBio(k) : (k == null ? void 0 : k.bio) || (k == null ? void 0 : k.regalias) || "", w = (k) => n.slotListOf ? n.slotListOf(k) : (k == null ? void 0 : k.slots) || [], $ = (k) => n.nestedSlotListOf ? n.nestedSlotListOf(k) : (k == null ? void 0 : k.slots) || [], I = (k) => k.schedules.filter(
14604
+ }, g = (k) => n.participantBio ? n.participantBio(k) : (k == null ? void 0 : k.bio) || (k == null ? void 0 : k.regalias) || "", b = (k) => n.slotListOf ? n.slotListOf(k) : (k == null ? void 0 : k.slots) || [], $ = (k) => n.nestedSlotListOf ? n.nestedSlotListOf(k) : (k == null ? void 0 : k.slots) || [], I = (k) => k.schedules.filter(
14605
14605
  (V) => {
14606
14606
  var x;
14607
- return w(V).length > 0 || (((x = V.sessions) == null ? void 0 : x.length) || 0) > 0;
14607
+ return b(V).length > 0 || (((x = V.sessions) == null ? void 0 : x.length) || 0) > 0;
14608
14608
  }
14609
14609
  ), E = (k) => {
14610
14610
  const V = [], x = new Set((k.sessions || []).map((R) => R.id));
@@ -14614,7 +14614,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14614
14614
  V.push({ kind: "slot", item: L, nested: !0, index: 0 });
14615
14615
  }
14616
14616
  let U = 0;
14617
- for (const R of w(k).filter(
14617
+ for (const R of b(k).filter(
14618
14618
  (L) => !L.sessionId || !x.has(L.sessionId)
14619
14619
  ))
14620
14620
  V.push({ kind: "slot", item: R, nested: !1, index: U++ });
@@ -14627,7 +14627,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14627
14627
  return (x = V.schedules) == null ? void 0 : x.some(
14628
14628
  (U) => {
14629
14629
  var R;
14630
- return w(U).length > 0 || (((R = U.sessions) == null ? void 0 : R.length) || 0) > 0;
14630
+ return b(U).length > 0 || (((R = U.sessions) == null ? void 0 : R.length) || 0) > 0;
14631
14631
  }
14632
14632
  );
14633
14633
  }
@@ -14670,8 +14670,8 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14670
14670
  y("div", kb, B(M(R.item.startTime, R.item.endTime)), 1),
14671
14671
  y("div", xb, [
14672
14672
  y("div", $b, B(r(R.item)), 1),
14673
- f(R.item).length ? (m(), S("div", Tb, [
14674
- (m(!0), S(K, null, we(f(R.item), (L) => (m(), S("div", {
14673
+ h(R.item).length ? (m(), S("div", Tb, [
14674
+ (m(!0), S(K, null, we(h(R.item), (L) => (m(), S("div", {
14675
14675
  key: L.id,
14676
14676
  class: "speaker-item",
14677
14677
  onClick: (X) => i("open-participant", L)
@@ -14683,7 +14683,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14683
14683
  size: "13px",
14684
14684
  class: "chair-icon"
14685
14685
  }),
14686
- ve(" " + B(h(L)), 1)
14686
+ ve(" " + B(f(L)), 1)
14687
14687
  ]),
14688
14688
  y("div", Mb, B(g(L)), 1)
14689
14689
  ])
@@ -14722,7 +14722,7 @@ const t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14722
14722
  size: "13px",
14723
14723
  class: "chair-icon"
14724
14724
  }),
14725
- ve(" " + B(h(L)), 1)
14725
+ ve(" " + B(f(L)), 1)
14726
14726
  ]),
14727
14727
  y("div", qb, B(g(L)), 1)
14728
14728
  ])
@@ -14868,11 +14868,11 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
14868
14868
  await n.store.Get(r.value), a("select", n.store.Item);
14869
14869
  };
14870
14870
  return (r, d) => {
14871
- const f = vl("ripple");
14871
+ const h = vl("ripple");
14872
14872
  return m(), S("div", uw, [
14873
14873
  p(qe, {
14874
14874
  modelValue: c(i),
14875
- "onUpdate:modelValue": d[0] || (d[0] = (h) => Re(i) ? i.value = h : null),
14875
+ "onUpdate:modelValue": d[0] || (d[0] = (f) => Re(i) ? i.value = f : null),
14876
14876
  placeholder: "Поиск...",
14877
14877
  dense: "",
14878
14878
  outlined: "",
@@ -14886,23 +14886,23 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
14886
14886
  default: C(() => [
14887
14887
  p(c(Ys), { dense: "" }, {
14888
14888
  default: C(() => [
14889
- (m(!0), S(K, null, we(c(o), (h) => it((m(), D(c(Xs), {
14890
- key: h.value,
14889
+ (m(!0), S(K, null, we(c(o), (f) => it((m(), D(c(Xs), {
14890
+ key: f.value,
14891
14891
  clickable: "",
14892
14892
  class: "tag-item",
14893
- onClick: (g) => l(h)
14893
+ onClick: (g) => l(f)
14894
14894
  }, {
14895
14895
  default: C(() => [
14896
14896
  p(c(Sa), null, {
14897
14897
  default: C(() => [
14898
- ve(B(h.label), 1)
14898
+ ve(B(f.label), 1)
14899
14899
  ]),
14900
14900
  _: 2
14901
14901
  }, 1024)
14902
14902
  ]),
14903
14903
  _: 2
14904
14904
  }, 1032, ["onClick"])), [
14905
- [f]
14905
+ [h]
14906
14906
  ])), 128)),
14907
14907
  c(o).length ? j("", !0) : (m(), S("div", dw, "Ничего не найдено"))
14908
14908
  ]),
@@ -14956,17 +14956,17 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
14956
14956
  e({ opened: a, toggle: () => {
14957
14957
  a.value = !a.value, o("update:modelValue", a.value);
14958
14958
  } });
14959
- const h = async () => {
14959
+ const f = async () => {
14960
14960
  await ji();
14961
14961
  const g = document.querySelector(
14962
14962
  '.edit-dialog-content input, .edit-dialog-content textarea, .edit-dialog-content [tabindex]:not([tabindex="-1"])'
14963
14963
  );
14964
14964
  g && "focus" in g && g.focus();
14965
14965
  };
14966
- return (g, w) => (m(), D(on, {
14966
+ return (g, b) => (m(), D(on, {
14967
14967
  modelValue: c(a),
14968
14968
  "onUpdate:modelValue": [
14969
- w[0] || (w[0] = ($) => Re(a) ? a.value = $ : null),
14969
+ b[0] || (b[0] = ($) => Re(a) ? a.value = $ : null),
14970
14970
  r
14971
14971
  ],
14972
14972
  position: "top",
@@ -14974,7 +14974,7 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
14974
14974
  zs(l, ["enter"]),
14975
14975
  zs(d, ["escape"])
14976
14976
  ],
14977
- onShow: h
14977
+ onShow: f
14978
14978
  }, {
14979
14979
  default: C(() => [
14980
14980
  y("div", {
@@ -15049,14 +15049,14 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15049
15049
  class: "tags-cell"
15050
15050
  }, {
15051
15051
  default: C(() => {
15052
- var d, f, h, g;
15052
+ var d, h, f, g;
15053
15053
  return [
15054
15054
  y("div", {
15055
15055
  class: ye(["tags-chip", { empty: !((d = t.row[t.prop]) != null && d.id) }]),
15056
- title: (f = t.row[t.prop]) != null && f.id ? "Изменить" : "Добавить",
15056
+ title: (h = t.row[t.prop]) != null && h.id ? "Изменить" : "Добавить",
15057
15057
  onClick: o
15058
15058
  }, [
15059
- (h = t.row[t.prop]) != null && h.id ? (m(), S("span", bw, B(t.row[t.prop][t.labelKey]), 1)) : (m(), S("span", ww, "Добавить")),
15059
+ (f = t.row[t.prop]) != null && f.id ? (m(), S("span", bw, B(t.row[t.prop][t.labelKey]), 1)) : (m(), S("span", ww, "Добавить")),
15060
15060
  p(c(ae), {
15061
15061
  class: "tags-action",
15062
15062
  name: (g = t.row[t.prop]) != null && g.id ? "edit" : "add",
@@ -15103,11 +15103,11 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15103
15103
  setup(t) {
15104
15104
  const e = t, n = O(), i = z(
15105
15105
  () => e.items !== void 0 ? e.items : e.row ? e.row[e.prop ?? ""] : []
15106
- ), s = z(() => i.value ? (Array.isArray(i.value) ? i.value : [i.value]).filter((f) => f == null ? void 0 : f.id) : []), o = z(() => s.value.length), a = z(() => s.value.slice(0, Math.max(1, e.max))), l = z(() => Math.max(0, o.value - a.value.length)), r = async (d) => {
15107
- var f;
15108
- e.row && e.prop && e.store && (e.row[e.prop] = d, await e.store.Update(e.row)), (f = n.value) == null || f.toggle();
15106
+ ), s = z(() => i.value ? (Array.isArray(i.value) ? i.value : [i.value]).filter((h) => h == null ? void 0 : h.id) : []), o = z(() => s.value.length), a = z(() => s.value.slice(0, Math.max(1, e.max))), l = z(() => Math.max(0, o.value - a.value.length)), r = async (d) => {
15107
+ var h;
15108
+ e.row && e.prop && e.store && (e.row[e.prop] = d, await e.store.Update(e.row)), (h = n.value) == null || h.toggle();
15109
15109
  };
15110
- return (d, f) => (m(), S(K, null, [
15110
+ return (d, h) => (m(), S(K, null, [
15111
15111
  (m(), D(c(wn), {
15112
15112
  key: t.cellKey,
15113
15113
  class: "tags-cell"
@@ -15116,16 +15116,16 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15116
15116
  y("div", {
15117
15117
  class: ye(["tags-badge", { empty: !c(o) }]),
15118
15118
  title: c(o) ? "Изменить" : "Добавить",
15119
- onClick: f[0] || (f[0] = We((h) => {
15119
+ onClick: h[0] || (h[0] = We((f) => {
15120
15120
  var g;
15121
15121
  return (g = c(n)) == null ? void 0 : g.toggle();
15122
15122
  }, ["stop"]))
15123
15123
  }, [
15124
15124
  c(o) ? (m(), S(K, { key: 0 }, [
15125
- (m(!0), S(K, null, we(c(a), (h) => (m(), S("span", {
15126
- key: h.id,
15125
+ (m(!0), S(K, null, we(c(a), (f) => (m(), S("span", {
15126
+ key: f.id,
15127
15127
  class: "tag-name"
15128
- }, B(h[t.labelKey]), 1))), 128)),
15128
+ }, B(f[t.labelKey]), 1))), 128)),
15129
15129
  c(l) ? (m(), S("span", kw, "+" + B(c(l)), 1)) : j("", !0)
15130
15130
  ], 64)) : j("", !0),
15131
15131
  p(c(ae), {
@@ -15251,7 +15251,7 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15251
15251
  return n.emptyText;
15252
15252
  const R = n.modelValue;
15253
15253
  return n.kind === "number" && n.unit ? `${R} ${n.unit}` : typeof R == "boolean" ? R ? "Да" : "Нет" : String(R);
15254
- }), d = O(null), f = O(!1), h = z({
15254
+ }), d = O(null), h = O(!1), f = z({
15255
15255
  get: () => d.value === null || d.value === void 0 || d.value === "" ? "" : String(d.value),
15256
15256
  set: (R) => {
15257
15257
  d.value = R ? String(R) : null;
@@ -15261,7 +15261,7 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15261
15261
  set: (R) => {
15262
15262
  d.value = R;
15263
15263
  }
15264
- }), w = z({
15264
+ }), b = z({
15265
15265
  get: () => typeof d.value == "string" || typeof d.value == "number" ? d.value : "",
15266
15266
  set: (R) => {
15267
15267
  d.value = R;
@@ -15270,13 +15270,13 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15270
15270
  if (!(!s.value || n.saving)) {
15271
15271
  if (o.value) {
15272
15272
  const R = n.modelValue;
15273
- d.value = typeof R == "string" || typeof R == "number" ? R : "", f.value = !0;
15273
+ d.value = typeof R == "string" || typeof R == "number" ? R : "", h.value = !0;
15274
15274
  return;
15275
15275
  }
15276
15276
  a.value && (M.value = n.modelValue ?? null, T.value = "", E.value = !0, n.search && n.search(""));
15277
15277
  }
15278
15278
  }, I = () => {
15279
- i("commit", d.value), f.value = !1;
15279
+ i("commit", d.value), h.value = !1;
15280
15280
  }, E = O(!1), T = O(""), M = O(null);
15281
15281
  let k;
15282
15282
  Be(T, (R) => {
@@ -15308,7 +15308,7 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15308
15308
  "onUpdate:modelValue": L[0] || (L[0] = (X) => U(X))
15309
15309
  }, null, 8, ["model-value", "disable"])) : c(s) ? (m(), S("div", {
15310
15310
  key: 1,
15311
- class: ye(["editable-cell", { "is-open": c(f) || c(E) }]),
15311
+ class: ye(["editable-cell", { "is-open": c(h) || c(E) }]),
15312
15312
  title: `Клик — правка: ${t.label}`,
15313
15313
  onClick: $
15314
15314
  }, [
@@ -15322,8 +15322,8 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15322
15322
  ], 10, Rw),
15323
15323
  c(s) && c(o) ? (m(), D(on, {
15324
15324
  key: 0,
15325
- modelValue: c(f),
15326
- "onUpdate:modelValue": L[6] || (L[6] = (X) => Re(f) ? f.value = X : null),
15325
+ modelValue: c(h),
15326
+ "onUpdate:modelValue": L[6] || (L[6] = (X) => Re(h) ? h.value = X : null),
15327
15327
  seamless: !1,
15328
15328
  position: "standard",
15329
15329
  "transition-show": "fade",
@@ -15340,13 +15340,13 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15340
15340
  round: "",
15341
15341
  size: "sm",
15342
15342
  icon: "close",
15343
- onClick: L[1] || (L[1] = (X) => f.value = !1)
15343
+ onClick: L[1] || (L[1] = (X) => h.value = !1)
15344
15344
  })
15345
15345
  ]),
15346
15346
  t.kind === "date" ? (m(), D(La, {
15347
15347
  key: 0,
15348
- modelValue: c(h),
15349
- "onUpdate:modelValue": L[2] || (L[2] = (X) => Re(h) ? h.value = X : null),
15348
+ modelValue: c(f),
15349
+ "onUpdate:modelValue": L[2] || (L[2] = (X) => Re(f) ? f.value = X : null),
15350
15350
  autofocus: ""
15351
15351
  }, null, 8, ["modelValue"])) : t.kind === "number" ? (m(), D(qe, {
15352
15352
  key: 1,
@@ -15360,8 +15360,8 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15360
15360
  autofocus: ""
15361
15361
  }, null, 8, ["modelValue", "min", "max", "step", "placeholder"])) : (m(), D(qe, {
15362
15362
  key: 2,
15363
- modelValue: c(w),
15364
- "onUpdate:modelValue": L[4] || (L[4] = (X) => Re(w) ? w.value = X : null),
15363
+ modelValue: c(b),
15364
+ "onUpdate:modelValue": L[4] || (L[4] = (X) => Re(b) ? b.value = X : null),
15365
15365
  type: t.multiline ? "textarea" : "text",
15366
15366
  mask: t.mask,
15367
15367
  placeholder: t.mask || t.placeholder,
@@ -15373,7 +15373,7 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15373
15373
  dense: "",
15374
15374
  size: "sm",
15375
15375
  label: "Отмена",
15376
- onClick: L[5] || (L[5] = (X) => f.value = !1)
15376
+ onClick: L[5] || (L[5] = (X) => h.value = !1)
15377
15377
  }),
15378
15378
  p(re, {
15379
15379
  flat: "",
@@ -15509,9 +15509,9 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15509
15509
  default: C(() => [
15510
15510
  y("div", {
15511
15511
  class: ye(["editable-cell", { clickable: c(s) }]),
15512
- onClick: d[0] || (d[0] = (f) => {
15513
- var h;
15514
- return c(s) ? (h = c(n)) == null ? void 0 : h.toggle() : void 0;
15512
+ onClick: d[0] || (d[0] = (h) => {
15513
+ var f;
15514
+ return c(s) ? (f = c(n)) == null ? void 0 : f.toggle() : void 0;
15515
15515
  })
15516
15516
  }, [
15517
15517
  y("span", Hw, B(c(a)), 1),
@@ -15534,7 +15534,7 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15534
15534
  default: C(() => [
15535
15535
  p(qe, {
15536
15536
  modelValue: t.row[t.prop],
15537
- "onUpdate:modelValue": d[1] || (d[1] = (f) => t.row[t.prop] = f),
15537
+ "onUpdate:modelValue": d[1] || (d[1] = (h) => t.row[t.prop] = h),
15538
15538
  modelModifiers: { number: !0 },
15539
15539
  type: "number",
15540
15540
  class: "q-mb-md",
@@ -15609,9 +15609,9 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15609
15609
  default: C(() => [
15610
15610
  y("div", {
15611
15611
  class: ye(["editable-cell", { clickable: c(s) }]),
15612
- onClick: d[0] || (d[0] = (f) => {
15613
- var h;
15614
- return c(s) ? (h = c(n)) == null ? void 0 : h.toggle() : void 0;
15612
+ onClick: d[0] || (d[0] = (h) => {
15613
+ var f;
15614
+ return c(s) ? (f = c(n)) == null ? void 0 : f.toggle() : void 0;
15615
15615
  })
15616
15616
  }, [
15617
15617
  y("span", Ww, B(c(a)), 1),
@@ -15634,7 +15634,7 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15634
15634
  default: C(() => [
15635
15635
  p(qe, {
15636
15636
  modelValue: t.row[t.prop],
15637
- "onUpdate:modelValue": d[1] || (d[1] = (f) => t.row[t.prop] = f),
15637
+ "onUpdate:modelValue": d[1] || (d[1] = (h) => t.row[t.prop] = h),
15638
15638
  class: "q-mb-md",
15639
15639
  maxlength: t.maxLength,
15640
15640
  autofocus: "",
@@ -15663,30 +15663,33 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15663
15663
  },
15664
15664
  emits: ["request"],
15665
15665
  setup(t, { emit: e }) {
15666
- const n = t, i = Cn(), s = z(() => n.ftsp ?? i), o = e, a = O({
15666
+ function n(f) {
15667
+ return f.width ? { width: f.width, maxWidth: f.width } : {};
15668
+ }
15669
+ const i = t, s = Cn(), o = z(() => i.ftsp ?? s), a = e, l = O({
15667
15670
  page: 0,
15668
- rowsNumber: l(),
15671
+ rowsNumber: r(),
15669
15672
  rowsPerPage: 25,
15670
15673
  sortBy: "desc",
15671
15674
  descending: !1
15672
15675
  });
15673
- function l() {
15674
- var h;
15675
- const f = (h = n.store) == null ? void 0 : h.Count;
15676
+ function r() {
15677
+ var g;
15678
+ const f = (g = i.store) == null ? void 0 : g.Count;
15676
15679
  return typeof f == "number" ? f : Number((f == null ? void 0 : f.value) ?? 0) || 0;
15677
15680
  }
15678
- Be(l, (f) => {
15679
- a.value.rowsNumber = f;
15681
+ Be(r, (f) => {
15682
+ l.value.rowsNumber = f;
15680
15683
  });
15681
- const r = (f) => {
15682
- s.value.p.offset = (f.pagination.page - 1) * f.pagination.rowsPerPage, s.value.p.rowsPerPage = f.pagination.rowsPerPage, a.value.page = f.pagination.page, a.value.rowsPerPage = f.pagination.rowsPerPage;
15683
- }, d = async (f) => {
15684
- var h, g;
15685
- r(f), n.store && await ((g = (h = n.store).FTSP) == null ? void 0 : g.call(h, { ftsp: s.value })), o("request");
15684
+ const d = (f) => {
15685
+ o.value.p.offset = (f.pagination.page - 1) * f.pagination.rowsPerPage, o.value.p.rowsPerPage = f.pagination.rowsPerPage, l.value.page = f.pagination.page, l.value.rowsPerPage = f.pagination.rowsPerPage;
15686
+ }, h = async (f) => {
15687
+ var g, b;
15688
+ d(f), i.store && await ((b = (g = i.store).FTSP) == null ? void 0 : b.call(g, { ftsp: o.value })), a("request");
15686
15689
  };
15687
- return (f, h) => (m(), D(c(Ic), {
15688
- pagination: c(a),
15689
- "onUpdate:pagination": h[0] || (h[0] = (g) => Re(a) ? a.value = g : null),
15690
+ return (f, g) => (m(), D(c(Ic), {
15691
+ pagination: c(l),
15692
+ "onUpdate:pagination": g[0] || (g[0] = (b) => Re(l) ? l.value = b : null),
15690
15693
  columns: t.cols,
15691
15694
  rows: t.items,
15692
15695
  "row-key": t.rowKey,
@@ -15699,35 +15702,36 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15699
15702
  "hide-bottom": t.hideBottom,
15700
15703
  loading: t.loading,
15701
15704
  class: "p-table",
15702
- onRequest: d
15705
+ onRequest: h
15703
15706
  }, {
15704
- header: C((g) => [
15705
- N(f.$slots, "header", { props: g }, () => [
15706
- p(c(wr), { props: g }, {
15707
+ header: C((b) => [
15708
+ N(f.$slots, "header", { props: b }, () => [
15709
+ p(c(wr), { props: b }, {
15707
15710
  default: C(() => [
15708
15711
  t.lead ? (m(), D(c(Sr), {
15709
15712
  key: 0,
15710
15713
  "auto-width": ""
15711
15714
  })) : j("", !0),
15712
- (m(!0), S(K, null, we(g.cols, (w) => (m(), D(c(Sr), {
15713
- key: w.name,
15714
- props: g
15715
+ (m(!0), S(K, null, we(b.cols, ($) => (m(), D(c(Sr), {
15716
+ key: $.name,
15717
+ props: b,
15718
+ style: J(n($))
15715
15719
  }, {
15716
15720
  default: C(() => [
15717
- ve(B(w.label), 1)
15721
+ ve(B($.label), 1)
15718
15722
  ]),
15719
15723
  _: 2
15720
- }, 1032, ["props"]))), 128))
15724
+ }, 1032, ["props", "style"]))), 128))
15721
15725
  ]),
15722
15726
  _: 2
15723
15727
  }, 1032, ["props"])
15724
15728
  ], !0)
15725
15729
  ]),
15726
- body: C((g) => [
15727
- N(f.$slots, "body", Ts(Ps(g)), () => {
15728
- var w;
15730
+ body: C((b) => [
15731
+ N(f.$slots, "body", Ts(Ps(b)), () => {
15732
+ var $;
15729
15733
  return [
15730
- p(c(wr), st({ props: g }, ((w = t.rowAttrs) == null ? void 0 : w.call(t, g.row)) ?? {}), {
15734
+ p(c(wr), st({ props: b }, (($ = t.rowAttrs) == null ? void 0 : $.call(t, b.row)) ?? {}), {
15731
15735
  default: C(() => [
15732
15736
  t.lead ? (m(), D(c(wn), {
15733
15737
  key: 0,
@@ -15735,14 +15739,14 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15735
15739
  }, {
15736
15740
  default: C(() => [
15737
15741
  N(f.$slots, "lead", {
15738
- row: g.row
15742
+ row: b.row
15739
15743
  }, void 0, !0)
15740
15744
  ]),
15741
15745
  _: 2
15742
15746
  }, 1024)) : j("", !0),
15743
15747
  N(f.$slots, "default", {
15744
- row: g.row,
15745
- props: g
15748
+ row: b.row,
15749
+ props: b
15746
15750
  }, void 0, !0)
15747
15751
  ]),
15748
15752
  _: 2
@@ -15753,7 +15757,7 @@ const iw = new nw(), sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
15753
15757
  _: 3
15754
15758
  }, 8, ["pagination", "columns", "rows", "row-key", "pagination-label", "rows-per-page-options", "dense", "hide-bottom", "loading"]));
15755
15759
  }
15756
- }), _d = /* @__PURE__ */ Q(Xw, [["__scopeId", "data-v-dada9c3d"]]);
15760
+ }), _d = /* @__PURE__ */ Q(Xw, [["__scopeId", "data-v-bcf46ea2"]]);
15757
15761
  function Ud(t) {
15758
15762
  t.component("PTable", _d), t.component("PTableActions", Md), t.component("PTableBadge", Ad), t.component("PTableBadges", Ed), t.component("PTableCount", Fd), t.component("PTableEdit", Od), t.component("PTableEditableCell", Dd), t.component("PTableNumber", zd), t.component("PTableSelect", Ld), t.component("PTableString", Vd);
15759
15763
  }
@@ -15898,12 +15902,12 @@ const Qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15898
15902
  error: "negative",
15899
15903
  info: "info"
15900
15904
  }, a = (d) => o[String(d.type)] ?? "primary", l = (d) => {
15901
- const f = d.action, h = typeof f == "function" ? f : f == null ? void 0 : f.value;
15902
- typeof h == "function" && h();
15905
+ const h = d.action, f = typeof h == "function" ? h : h == null ? void 0 : h.value;
15906
+ typeof f == "function" && f();
15903
15907
  }, r = O(20);
15904
- return (d, f) => (m(), D(c(Mc), {
15908
+ return (d, h) => (m(), D(c(Mc), {
15905
15909
  modelValue: c(r),
15906
- "onUpdate:modelValue": f[0] || (f[0] = (h) => Re(r) ? r.value = h : null),
15910
+ "onUpdate:modelValue": h[0] || (h[0] = (f) => Re(r) ? r.value = f : null),
15907
15911
  class: "full-height"
15908
15912
  }, {
15909
15913
  before: C(() => [
@@ -15914,23 +15918,23 @@ const Qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15914
15918
  "onUpdate:modelValue": s
15915
15919
  }, {
15916
15920
  default: C(() => [
15917
- (m(!0), S(K, null, we(t.tabsStore.items, (h) => (m(), D(c(ka), {
15918
- key: h.value,
15919
- name: h.value,
15920
- label: h.label,
15921
+ (m(!0), S(K, null, we(t.tabsStore.items, (f) => (m(), D(c(ka), {
15922
+ key: f.value,
15923
+ name: f.value,
15924
+ label: f.label,
15921
15925
  "no-caps": ""
15922
15926
  }, null, 8, ["name", "label"]))), 128))
15923
15927
  ]),
15924
15928
  _: 1
15925
15929
  }, 8, ["model-value"]),
15926
15930
  y("div", Kw, [
15927
- (m(!0), S(K, null, we(t.buttons, (h, g) => (m(), D(re, {
15931
+ (m(!0), S(K, null, we(t.buttons, (f, g) => (m(), D(re, {
15928
15932
  key: g,
15929
- label: h.text,
15930
- color: a(h),
15931
- disable: !h.action,
15933
+ label: f.text,
15934
+ color: a(f),
15935
+ disable: !f.action,
15932
15936
  class: "q-mb-sm full-width",
15933
- onClick: (w) => l(h)
15937
+ onClick: (b) => l(f)
15934
15938
  }, null, 8, ["label", "color", "disable", "onClick"]))), 128))
15935
15939
  ])
15936
15940
  ]),
@@ -15941,13 +15945,13 @@ const Qw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15941
15945
  class: "shadow-2 rounded-borders"
15942
15946
  }, {
15943
15947
  default: C(() => [
15944
- (m(!0), S(K, null, we(t.tabsStore.GetItems(), (h) => (m(), D(c(pl), {
15945
- key: h.value,
15946
- name: h.value
15948
+ (m(!0), S(K, null, we(t.tabsStore.GetItems(), (f) => (m(), D(c(pl), {
15949
+ key: f.value,
15950
+ name: f.value
15947
15951
  }, {
15948
15952
  default: C(() => [
15949
- N(d.$slots, "default", { item: h }, () => [
15950
- (m(), D(Rn(h.component)))
15953
+ N(d.$slots, "default", { item: f }, () => [
15954
+ (m(), D(Rn(f.component)))
15951
15955
  ], !0)
15952
15956
  ]),
15953
15957
  _: 2
@@ -16113,10 +16117,10 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16113
16117
  }, d = ($) => {
16114
16118
  const I = String($ ?? "");
16115
16119
  i.value = I.replace(/[_\s]/g, "") === "" ? "" : I;
16116
- }, f = () => {
16120
+ }, h = () => {
16117
16121
  const $ = l(i.value);
16118
16122
  $ ? r($) : i.value === "" ? r(null) : i.value = a(n.value);
16119
- }, h = () => {
16123
+ }, f = () => {
16120
16124
  if (s.value) {
16121
16125
  const $ = n.value ? Xn.formatDate(n.value, "HH:mm") : "00:00", I = `${s.value} ${$}`, E = l(I);
16122
16126
  E && (i.value = a(E), r(E));
@@ -16136,7 +16140,7 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16136
16140
  },
16137
16141
  { immediate: !0 }
16138
16142
  );
16139
- const w = {
16143
+ const b = {
16140
16144
  days: "Понедельник_Вторник_Среда_Четверг_Пятница_Суббота_Воскресенье".split("_"),
16141
16145
  daysShort: "Пн_Вт_Ср_Чт_Пт_Сб_Вс".split("_"),
16142
16146
  months: "Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split(
@@ -16159,7 +16163,7 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16159
16163
  mask: "##.##.#### ##:##",
16160
16164
  "fill-mask": "",
16161
16165
  "onUpdate:modelValue": d,
16162
- onBlur: f
16166
+ onBlur: h
16163
16167
  }, {
16164
16168
  prepend: C(() => [
16165
16169
  p(c(ae), {
@@ -16173,7 +16177,7 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16173
16177
  modelValue: c(s),
16174
16178
  "onUpdate:modelValue": I[0] || (I[0] = (E) => Re(s) ? s.value = E : null),
16175
16179
  mask: "DD.MM.YYYY",
16176
- locale: w
16180
+ locale: b
16177
16181
  }, {
16178
16182
  default: C(() => [
16179
16183
  y("div", i2, [
@@ -16181,7 +16185,7 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16181
16185
  label: "OK",
16182
16186
  color: "primary",
16183
16187
  flat: "",
16184
- onClick: h
16188
+ onClick: f
16185
16189
  }, null, 512), [
16186
16190
  [c(e)]
16187
16191
  ])
@@ -16209,7 +16213,7 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16209
16213
  "onUpdate:modelValue": I[1] || (I[1] = (E) => Re(o) ? o.value = E : null),
16210
16214
  mask: "HH:mm",
16211
16215
  format24h: "",
16212
- locale: w
16216
+ locale: b
16213
16217
  }, {
16214
16218
  default: C(() => [
16215
16219
  y("div", s2, [
@@ -16290,20 +16294,20 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16290
16294
  a(!0), i("validation-success");
16291
16295
  }, d = () => {
16292
16296
  a(!1), i("validation-error");
16293
- }, f = (T) => {
16297
+ }, h = (T) => {
16294
16298
  i("submit", T);
16295
- }, h = () => {
16299
+ }, f = () => {
16296
16300
  var T;
16297
16301
  (T = l.value) == null || T.resetValidation(), a(!0), i("reset");
16298
16302
  }, g = async () => {
16299
16303
  var M;
16300
16304
  const T = await ((M = l.value) == null ? void 0 : M.validate()) ?? !1;
16301
16305
  return a(T), T;
16302
- }, w = () => {
16306
+ }, b = () => {
16303
16307
  var T;
16304
16308
  (T = l.value) == null || T.resetValidation(), a(!0);
16305
16309
  };
16306
- return e({ validate: g, resetValidation: w, focus: () => {
16310
+ return e({ validate: g, resetValidation: b, focus: () => {
16307
16311
  var T;
16308
16312
  return (T = l.value) == null ? void 0 : T.focus();
16309
16313
  }, submit: (T) => {
@@ -16320,8 +16324,8 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16320
16324
  "no-error-focus": t.noErrorFocus,
16321
16325
  "no-reset-focus": t.noResetFocus,
16322
16326
  class: "p-form",
16323
- onSubmit: f,
16324
- onReset: h,
16327
+ onSubmit: h,
16328
+ onReset: f,
16325
16329
  onValidationSuccess: r,
16326
16330
  onValidationError: d
16327
16331
  }, {
@@ -16331,7 +16335,7 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16331
16335
  N(T.$slots, "actions", {
16332
16336
  valid: c(o),
16333
16337
  validate: g,
16334
- resetValidation: w
16338
+ resetValidation: b
16335
16339
  }, void 0, !0)
16336
16340
  ])) : j("", !0)
16337
16341
  ]),
@@ -16635,10 +16639,10 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16635
16639
  setup(t) {
16636
16640
  var l;
16637
16641
  const e = t, n = ((l = e.storeOpts) == null ? void 0 : l.Options) ?? [], i = O(n);
16638
- async function s(r, d, f, h) {
16642
+ async function s(r, d, h, f) {
16639
16643
  var I, E;
16640
- const w = "set" + (((I = d[0]) == null ? void 0 : I.toUpperCase()) + d.slice(1)), $ = r[w];
16641
- typeof $ == "function" ? $(f) : (r[d] = f, r[d + "Id"] = f == null ? void 0 : f.id), await ((E = h == null ? void 0 : h.Update) == null ? void 0 : E.call(h, r));
16644
+ const b = "set" + (((I = d[0]) == null ? void 0 : I.toUpperCase()) + d.slice(1)), $ = r[b];
16645
+ typeof $ == "function" ? $(h) : (r[d] = h, r[d + "Id"] = h == null ? void 0 : h.id), await ((E = f == null ? void 0 : f.Update) == null ? void 0 : E.call(f, r));
16642
16646
  }
16643
16647
  const o = (r, d) => {
16644
16648
  if (r === "") {
@@ -16648,12 +16652,12 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16648
16652
  return;
16649
16653
  }
16650
16654
  d(() => {
16651
- i.value = n.filter((f) => Y.H.Strings.SearchInFields(r, [f.label]));
16655
+ i.value = n.filter((h) => Y.H.Strings.SearchInFields(r, [h.label]));
16652
16656
  });
16653
16657
  }, a = async (r) => {
16654
- var f, h;
16658
+ var h, f;
16655
16659
  const d = r == null ? "" : typeof r == "string" ? r : r.value;
16656
- d && e.storeOpts ? (await ((h = (f = e.storeOpts).Get) == null ? void 0 : h.call(f, d)), await s(e.item, e.prop, e.storeOpts.Item, e.store)) : await s(e.item, e.prop, void 0, e.store);
16660
+ d && e.storeOpts ? (await ((f = (h = e.storeOpts).Get) == null ? void 0 : f.call(h, d)), await s(e.item, e.prop, e.storeOpts.Item, e.store)) : await s(e.item, e.prop, void 0, e.store);
16657
16661
  };
16658
16662
  return Sn(async () => {
16659
16663
  var r, d;
@@ -16879,37 +16883,37 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16879
16883
  (g) => {
16880
16884
  if (o.value)
16881
16885
  return;
16882
- const w = l(g);
16883
- w !== s.value && (s.value = w);
16886
+ const b = l(g);
16887
+ b !== s.value && (s.value = b);
16884
16888
  }
16885
16889
  );
16886
16890
  function a(g) {
16887
16891
  return String(g ?? "").replace(/\D/g, "").slice(0, 4);
16888
16892
  }
16889
16893
  function l(g) {
16890
- const w = a(g);
16891
- if (!w)
16894
+ const b = a(g);
16895
+ if (!b)
16892
16896
  return "";
16893
16897
  let $, I;
16894
- w.length <= 2 ? ($ = w, I = "00") : ($ = w.slice(0, w.length - 2), I = w.slice(-2));
16898
+ b.length <= 2 ? ($ = b, I = "00") : ($ = b.slice(0, b.length - 2), I = b.slice(-2));
16895
16899
  const E = `${$.padStart(2, "0")}:${I.padStart(2, "0")}`;
16896
16900
  return r(E) ? E : "";
16897
16901
  }
16898
16902
  function r(g) {
16899
- const w = /^(\d{2}):(\d{2})$/.exec(g);
16900
- return w ? Number(w[1]) <= 23 && Number(w[2]) <= 59 : !1;
16903
+ const b = /^(\d{2}):(\d{2})$/.exec(g);
16904
+ return b ? Number(b[1]) <= 23 && Number(b[2]) <= 59 : !1;
16901
16905
  }
16902
- const d = O(r(l(n.modelValue)) ? l(n.modelValue) : ""), f = (g) => {
16903
- const w = String(g ?? "");
16904
- s.value = w;
16905
- const $ = a(w);
16906
+ const d = O(r(l(n.modelValue)) ? l(n.modelValue) : ""), h = (g) => {
16907
+ const b = String(g ?? "");
16908
+ s.value = b;
16909
+ const $ = a(b);
16906
16910
  if ($.length === 0) {
16907
16911
  d.value = "", i("update:model-value", "");
16908
16912
  return;
16909
16913
  }
16910
- const I = l(w);
16914
+ const I = l(b);
16911
16915
  $.length >= 3 && I && (d.value = I, i("update:model-value", I));
16912
- }, h = () => {
16916
+ }, f = () => {
16913
16917
  o.value = !1;
16914
16918
  const g = l(s.value);
16915
16919
  if (g) {
@@ -16918,16 +16922,16 @@ const t2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16918
16922
  }
16919
16923
  s.value = d.value, i("update:model-value", d.value);
16920
16924
  };
16921
- return (g, w) => (m(), D(qe, {
16925
+ return (g, b) => (m(), D(qe, {
16922
16926
  "model-value": c(s),
16923
16927
  label: t.label,
16924
16928
  placeholder: t.placeholder,
16925
16929
  disable: t.disable,
16926
16930
  maxlength: 5,
16927
16931
  inputmode: "numeric",
16928
- "onUpdate:modelValue": f,
16929
- onFocus: w[0] || (w[0] = ($) => o.value = !0),
16930
- onBlur: h
16932
+ "onUpdate:modelValue": h,
16933
+ onFocus: b[0] || (b[0] = ($) => o.value = !0),
16934
+ onBlur: f
16931
16935
  }, ri({ _: 2 }, [
16932
16936
  g.$slots.prepend ? {
16933
16937
  name: "prepend",
@@ -17079,8 +17083,8 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17079
17083
  }),
17080
17084
  emits: /* @__PURE__ */ Ae(["addImage", "remove", "sort"], ["update:images"]),
17081
17085
  setup(t, { emit: e }) {
17082
- const n = jn, i = t, s = ft(t, "images"), o = e, a = z(() => c(s) ?? []), l = O(), r = O(!1), d = O(!1), f = O(0), h = O(!1), g = O(""), w = O(i.ratio), $ = z(
17083
- () => w.value > 0 ? { aspectRatio: String(w.value) } : {}
17086
+ const n = jn, i = t, s = ft(t, "images"), o = e, a = z(() => c(s) ?? []), l = O(), r = O(!1), d = O(!1), h = O(0), f = O(!1), g = O(""), b = O(i.ratio), $ = z(
17087
+ () => b.value > 0 ? { aspectRatio: String(b.value) } : {}
17084
17088
  ), I = O(), E = O(), T = (Z) => typeof Z.getFileUrl == "function" ? Z.getFileUrl() : "", M = ct(/* @__PURE__ */ new Set()), k = (Z) => {
17085
17089
  Z.id && M.add(Z.id);
17086
17090
  }, V = (Z) => s.value.findIndex((te) => te.id === Z.id), x = () => i.id || null, U = () => {
@@ -17128,12 +17132,12 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17128
17132
  return;
17129
17133
  }
17130
17134
  const te = new Ht();
17131
- te.id = zt.UUID(), te.itemId = x(), te.type = i.type, te.originalName = Z.name, te.file = Z, te.src = URL.createObjectURL(Z), E.value = te, I.value = void 0, g.value = te.src, h.value = !0;
17135
+ te.id = zt.UUID(), te.itemId = x(), te.type = i.type, te.originalName = Z.name, te.file = Z, te.src = URL.createObjectURL(Z), E.value = te, I.value = void 0, g.value = te.src, f.value = !0;
17132
17136
  }, Lt = async (Z) => {
17133
17137
  var Ee;
17134
17138
  const te = I.value;
17135
17139
  if (te) {
17136
- I.value = void 0, h.value = !1, te.setFile(Object.assign(Z.blob, { name: te.originalName, src: Z.src })), r.value = !0;
17140
+ I.value = void 0, f.value = !1, te.setFile(Object.assign(Z.blob, { name: te.originalName, src: Z.src })), r.value = !0;
17137
17141
  try {
17138
17142
  const me = await tn.FileInfos.Update(te);
17139
17143
  me && (te.fileSystemPath = me.fileSystemPath || te.fileSystemPath), (Ee = te.url) != null && Ee.startsWith("blob:") && URL.revokeObjectURL(te.url), te.url = "", M.delete(te.id ?? "");
@@ -17148,7 +17152,7 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17148
17152
  }, un = async (Z) => {
17149
17153
  const te = E.value;
17150
17154
  if (te) {
17151
- h.value = !1, te.setFile(Object.assign(Z.blob, { name: te.originalName, src: Z.src })), te.order = s.value.length, r.value = !0;
17155
+ f.value = !1, te.setFile(Object.assign(Z.blob, { name: te.originalName, src: Z.src })), te.order = s.value.length, r.value = !0;
17152
17156
  try {
17153
17157
  const Ee = await tn.FileInfos.Create(te), me = Ee ? new Ht(Ee) : te;
17154
17158
  me.url = "", s.value.push(me), E.value = void 0, o("addImage", me);
@@ -17159,12 +17163,12 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17159
17163
  }
17160
17164
  }
17161
17165
  }, Dt = () => {
17162
- h.value = !1, E.value = void 0, I.value = void 0;
17166
+ f.value = !1, E.value = void 0, I.value = void 0;
17163
17167
  }, Ve = (Z) => {
17164
17168
  const te = s.value.findIndex((Ee) => Ee.id === Z.id);
17165
- f.value = te > -1 ? te : 0, d.value = !0;
17169
+ h.value = te > -1 ? te : 0, d.value = !0;
17166
17170
  }, oe = (Z) => {
17167
- I.value = Z, g.value = T(Z), h.value = !0;
17171
+ I.value = Z, g.value = T(Z), f.value = !0;
17168
17172
  }, rt = async (Z) => {
17169
17173
  const te = s.value.findIndex((Ee) => Ee.id === Z.id);
17170
17174
  te !== -1 && s.value.splice(te, 1);
@@ -17316,8 +17320,8 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17316
17320
  onChange: ot
17317
17321
  }, null, 40, eS),
17318
17322
  p(on, {
17319
- modelValue: c(h),
17320
- "onUpdate:modelValue": te[2] || (te[2] = (me) => Re(h) ? h.value = me : null),
17323
+ modelValue: c(f),
17324
+ "onUpdate:modelValue": te[2] || (te[2] = (me) => Re(f) ? f.value = me : null),
17321
17325
  persistent: ""
17322
17326
  }, {
17323
17327
  default: C(() => [
@@ -17344,9 +17348,9 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17344
17348
  c(g) ? (m(), D(ed, {
17345
17349
  key: 0,
17346
17350
  src: c(g),
17347
- ratio: c(w),
17351
+ ratio: c(b),
17348
17352
  onCrop: te[0] || (te[0] = (me) => c(I) ? Lt(me) : un(me)),
17349
- "onUpdate:ratio": te[1] || (te[1] = (me) => w.value = me)
17353
+ "onUpdate:ratio": te[1] || (te[1] = (me) => b.value = me)
17350
17354
  }, null, 8, ["src", "ratio"])) : j("", !0)
17351
17355
  ]),
17352
17356
  _: 1
@@ -17364,8 +17368,8 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17364
17368
  }, {
17365
17369
  default: C(() => [
17366
17370
  p(c(Fc), {
17367
- modelValue: c(f),
17368
- "onUpdate:modelValue": te[3] || (te[3] = (me) => Re(f) ? f.value = me : null),
17371
+ modelValue: c(h),
17372
+ "onUpdate:modelValue": te[3] || (te[3] = (me) => Re(h) ? h.value = me : null),
17369
17373
  swipeable: "",
17370
17374
  animated: "",
17371
17375
  infinite: "",
@@ -17468,16 +17472,16 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17468
17472
  const d = Me("PSelect");
17469
17473
  return m(), D(d, {
17470
17474
  modelValue: c(s),
17471
- "onUpdate:modelValue": r[0] || (r[0] = (f) => Re(s) ? s.value = f : null),
17475
+ "onUpdate:modelValue": r[0] || (r[0] = (h) => Re(s) ? s.value = h : null),
17472
17476
  clearable: !!c(s),
17473
17477
  placeholder: t.defaultLabel,
17474
17478
  onChange: a
17475
17479
  }, {
17476
17480
  default: C(() => [
17477
- (m(!0), S(K, null, we(t.models, (f, h) => (m(), S("option", {
17478
- key: h,
17479
- value: f,
17480
- label: f.label
17481
+ (m(!0), S(K, null, we(t.models, (h, f) => (m(), S("option", {
17482
+ key: f,
17483
+ value: h,
17484
+ label: h.label
17481
17485
  }, null, 8, uS))), 128))
17482
17486
  ]),
17483
17487
  _: 1
@@ -17623,13 +17627,13 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17623
17627
  async function r(d) {
17624
17628
  s.value = "", n("select", d);
17625
17629
  }
17626
- return (d, f) => (m(), S("div", {
17630
+ return (d, h) => (m(), S("div", {
17627
17631
  class: "container",
17628
17632
  style: J({ width: t.width })
17629
17633
  }, [
17630
17634
  p(qe, {
17631
17635
  modelValue: c(s),
17632
- "onUpdate:modelValue": f[0] || (f[0] = (h) => Re(s) ? s.value = h : null),
17636
+ "onUpdate:modelValue": h[0] || (h[0] = (f) => Re(s) ? s.value = f : null),
17633
17637
  placeholder: "Найти",
17634
17638
  onInput: a
17635
17639
  }, {
@@ -17644,10 +17648,10 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17644
17648
  style: J({ maxHeight: t.maxHeightResultList, zIndex: t.zIndexResultList, boxShadow: t.boxShadowResultList })
17645
17649
  }, [
17646
17650
  y("ul", pS, [
17647
- (m(!0), S(K, null, we(c(o), (h) => (m(), S("li", {
17648
- key: h.value,
17649
- onClick: (g) => r(h)
17650
- }, B(h.label), 9, gS))), 128))
17651
+ (m(!0), S(K, null, we(c(o), (f) => (m(), S("li", {
17652
+ key: f.value,
17653
+ onClick: (g) => r(f)
17654
+ }, B(f.label), 9, gS))), 128))
17651
17655
  ])
17652
17656
  ], 4)) : j("", !0)
17653
17657
  ], 4));
@@ -17669,26 +17673,26 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17669
17673
  }
17670
17674
  },
17671
17675
  setup(t) {
17672
- const e = t, n = (f) => f === i.value.curPage ? "primary" : "grey-8", i = O(ru), s = O(!1), o = O(!1);
17676
+ const e = t, n = (h) => h === i.value.curPage ? "primary" : "grey-8", i = O(ru), s = O(!1), o = O(!1);
17673
17677
  i.value.count = e.store.Count.value, Be(e.store.Count, () => {
17674
17678
  i.value.count = e.store.Count.value;
17675
17679
  });
17676
- const a = async (f) => {
17677
- if (f !== i.value.curPage && (f < 1 && (f = 1), f > i.value.pagesCount() && (f = i.value.pagesCount()), !e.showConfirm))
17678
- return await l(f);
17679
- }, l = async (f, h) => {
17680
- i.value.setCurPage(f), yn.Get().p.offset = (f - 1) * i.value.limit, await e.store.FTSP(), d();
17680
+ const a = async (h) => {
17681
+ if (h !== i.value.curPage && (h < 1 && (h = 1), h > i.value.pagesCount() && (h = i.value.pagesCount()), !e.showConfirm))
17682
+ return await l(h);
17683
+ }, l = async (h, f) => {
17684
+ i.value.setCurPage(h), yn.Get().p.offset = (h - 1) * i.value.limit, await e.store.FTSP(), d();
17681
17685
  }, r = z(() => {
17682
- const f = i.value.pagesCount();
17683
- return f < 8 ? vn.GenerateNumsRange(2, f - 1).filter((h) => h < f && h > 1) : vn.GenerateNumsRange(i.value.curPage - 2, i.value.curPage + 3).filter((h) => h < f && h > 1);
17686
+ const h = i.value.pagesCount();
17687
+ return h < 8 ? vn.GenerateNumsRange(2, h - 1).filter((f) => f < h && f > 1) : vn.GenerateNumsRange(i.value.curPage - 2, i.value.curPage + 3).filter((f) => f < h && f > 1);
17684
17688
  }), d = () => {
17685
- const f = document.querySelector(".el-table__body-wrapper"), h = document.querySelector("#list");
17686
- f ? f.scrollTo({ top: 0 }) : h && h.scrollTo({ top: 0 });
17689
+ const h = document.querySelector(".el-table__body-wrapper"), f = document.querySelector("#list");
17690
+ h ? h.scrollTo({ top: 0 }) : f && f.scrollTo({ top: 0 });
17687
17691
  };
17688
17692
  return Zs(() => {
17689
17693
  yn.Get().p.drop();
17690
- }), (f, h) => {
17691
- const g = Me("ArrowLeft"), w = Me("PButton"), $ = Me("DoubleArrowLeft"), I = Me("EllipsisSvg"), E = Me("DoubleArrowRight"), T = Me("ArrowRight");
17694
+ }), (h, f) => {
17695
+ const g = Me("ArrowLeft"), b = Me("PButton"), $ = Me("DoubleArrowLeft"), I = Me("EllipsisSvg"), E = Me("DoubleArrowRight"), T = Me("ArrowRight");
17692
17696
  return m(), S("div", yS, [
17693
17697
  y("div", {
17694
17698
  class: "pag-container",
@@ -17697,9 +17701,9 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17697
17701
  })
17698
17702
  }, [
17699
17703
  y("div", bS, [
17700
- p(w, {
17704
+ p(b, {
17701
17705
  skin: "pag",
17702
- onClick: h[0] || (h[0] = (M) => a(i.value.curPage - 1))
17706
+ onClick: f[0] || (f[0] = (M) => a(i.value.curPage - 1))
17703
17707
  }, {
17704
17708
  default: C(() => [
17705
17709
  p(g)
@@ -17708,21 +17712,21 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17708
17712
  }),
17709
17713
  y("ul", wS, [
17710
17714
  y("li", null, [
17711
- p(w, {
17715
+ p(b, {
17712
17716
  skin: "pag",
17713
17717
  color: n(1),
17714
17718
  text: "1",
17715
- onClick: h[1] || (h[1] = (M) => a(1))
17719
+ onClick: f[1] || (f[1] = (M) => a(1))
17716
17720
  }, null, 8, ["color"])
17717
17721
  ]),
17718
17722
  i.value.pagesCount() > 8 && i.value.curPage > 4 ? (m(), S("li", {
17719
17723
  key: 0,
17720
- onMouseenter: h[3] || (h[3] = (M) => s.value = !0),
17721
- onMouseleave: h[4] || (h[4] = (M) => s.value = !1)
17724
+ onMouseenter: f[3] || (f[3] = (M) => s.value = !0),
17725
+ onMouseleave: f[4] || (f[4] = (M) => s.value = !1)
17722
17726
  }, [
17723
- p(w, {
17727
+ p(b, {
17724
17728
  skin: "pag",
17725
- onClick: h[2] || (h[2] = (M) => a(i.value.curPage - 5))
17729
+ onClick: f[2] || (f[2] = (M) => a(i.value.curPage - 5))
17726
17730
  }, {
17727
17731
  default: C(() => [
17728
17732
  s.value ? (m(), D($, { key: 0 })) : (m(), D(I, { key: 1 }))
@@ -17731,7 +17735,7 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17731
17735
  })
17732
17736
  ], 32)) : j("", !0),
17733
17737
  (m(!0), S(K, null, we(c(r), (M) => (m(), S("li", { key: M }, [
17734
- p(w, {
17738
+ p(b, {
17735
17739
  skin: "pag",
17736
17740
  color: n(M),
17737
17741
  text: String(M),
@@ -17740,12 +17744,12 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17740
17744
  ]))), 128)),
17741
17745
  i.value.pagesCount() >= 8 && i.value.curPage < i.value.pagesCount() - 3 ? (m(), S("li", {
17742
17746
  key: 1,
17743
- onMouseenter: h[6] || (h[6] = (M) => o.value = !0),
17744
- onMouseleave: h[7] || (h[7] = (M) => o.value = !1)
17747
+ onMouseenter: f[6] || (f[6] = (M) => o.value = !0),
17748
+ onMouseleave: f[7] || (f[7] = (M) => o.value = !1)
17745
17749
  }, [
17746
- p(w, {
17750
+ p(b, {
17747
17751
  skin: "pag",
17748
- onClick: h[5] || (h[5] = (M) => a(i.value.curPage + 5))
17752
+ onClick: f[5] || (f[5] = (M) => a(i.value.curPage + 5))
17749
17753
  }, {
17750
17754
  default: C(() => [
17751
17755
  o.value ? (m(), D(E, { key: 0 })) : (m(), D(I, { key: 1 }))
@@ -17754,17 +17758,17 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17754
17758
  })
17755
17759
  ], 32)) : j("", !0),
17756
17760
  i.value.pagesCount() > 1 ? (m(), S("li", SS, [
17757
- p(w, {
17761
+ p(b, {
17758
17762
  skin: "pag",
17759
17763
  color: n(i.value.pagesCount()),
17760
17764
  text: String(i.value.pagesCount()),
17761
- onClick: h[8] || (h[8] = (M) => a(i.value.pagesCount()))
17765
+ onClick: f[8] || (f[8] = (M) => a(i.value.pagesCount()))
17762
17766
  }, null, 8, ["color", "text"])
17763
17767
  ])) : j("", !0)
17764
17768
  ]),
17765
- p(w, {
17769
+ p(b, {
17766
17770
  skin: "pag",
17767
- onClick: h[9] || (h[9] = (M) => a(i.value.curPage + 1))
17771
+ onClick: f[9] || (f[9] = (M) => a(i.value.curPage + 1))
17768
17772
  }, {
17769
17773
  default: C(() => [
17770
17774
  p(T)
@@ -17832,22 +17836,22 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17832
17836
  }, 500);
17833
17837
  }
17834
17838
  );
17835
- const l = async (f) => {
17836
- if (f.length < 2)
17839
+ const l = async (h) => {
17840
+ if (h.length < 2)
17837
17841
  return;
17838
- o.value.activated = !0, a = fa.SearchModel(), a.searchObjects = [], a.query = f, a.key = n.keyValue;
17839
- const h = a.searchGroups.find((g) => g.key === n.keyValue);
17840
- return h && (a.searchGroup = h), await tn.Search.Search(a), a.searchObjects;
17841
- }, r = async (f) => {
17842
- i("select", f), s.value = "";
17843
- }, d = (f) => {
17844
- i("input", f), f.length === 0 && i("input", "");
17842
+ o.value.activated = !0, a = fa.SearchModel(), a.searchObjects = [], a.query = h, a.key = n.keyValue;
17843
+ const f = a.searchGroups.find((g) => g.key === n.keyValue);
17844
+ return f && (a.searchGroup = f), await tn.Search.Search(a), a.searchObjects;
17845
+ }, r = async (h) => {
17846
+ i("select", h), s.value = "";
17847
+ }, d = (h) => {
17848
+ i("input", h), h.length === 0 && i("input", "");
17845
17849
  };
17846
- return (f, h) => (m(), D(Gd, {
17850
+ return (h, f) => (m(), D(Gd, {
17847
17851
  ref_key: "searchForm",
17848
17852
  ref: o,
17849
17853
  modelValue: c(s),
17850
- "onUpdate:modelValue": h[0] || (h[0] = (g) => Re(s) ? s.value = g : null),
17854
+ "onUpdate:modelValue": f[0] || (f[0] = (g) => Re(s) ? s.value = g : null),
17851
17855
  "max-height-result-list": t.maxHeightResultList,
17852
17856
  "z-index-result-list": t.zIndexResultList,
17853
17857
  "box-shadow-result-list": t.boxShadowResultList,
@@ -17901,10 +17905,10 @@ const j2 = { class: "admin-gallery" }, G2 = { class: "groups" }, W2 = ["src", "a
17901
17905
  onChange: s
17902
17906
  }, {
17903
17907
  default: C(() => [
17904
- (m(), S(K, null, we(n, (d, f) => y("option", {
17908
+ (m(), S(K, null, we(n, (d, h) => y("option", {
17905
17909
  key: d,
17906
17910
  label: d,
17907
- value: f
17911
+ value: h
17908
17912
  }, null, 8, TS)), 64))
17909
17913
  ]),
17910
17914
  _: 1
@@ -18830,16 +18834,16 @@ const h8 = /* @__PURE__ */ Q(u8, [["render", f8], ["__scopeId", "data-v-6fb8269e
18830
18834
  setup(t, { expose: e, emit: n }) {
18831
18835
  const i = t, s = n, o = ft(t, "modelValue"), a = O([]), l = Dc, r = jn, d = async () => {
18832
18836
  await i.store.GetOptions(), a.value = i.store.Options;
18833
- }, f = async (E) => {
18837
+ }, h = async (E) => {
18834
18838
  await i.store.Get(E.value);
18835
18839
  const T = i.store.Item, M = T.constructor, k = new M(T);
18836
- s("add", k), h();
18837
- }, h = () => {
18840
+ s("add", k), f();
18841
+ }, f = () => {
18838
18842
  s("close"), o.value = !1;
18839
18843
  }, g = (E) => {
18840
18844
  E || s("close");
18841
- }, w = () => {
18842
- o.value && h();
18845
+ }, b = () => {
18846
+ o.value && f();
18843
18847
  }, $ = () => {
18844
18848
  o.value = !o.value;
18845
18849
  }, I = async () => {
@@ -18854,7 +18858,7 @@ const h8 = /* @__PURE__ */ Q(u8, [["render", f8], ["__scopeId", "data-v-6fb8269e
18854
18858
  g
18855
18859
  ],
18856
18860
  position: "top",
18857
- onKeydown: zs(w, ["escape"]),
18861
+ onKeydown: zs(b, ["escape"]),
18858
18862
  onShow: I
18859
18863
  }, {
18860
18864
  default: C(() => [
@@ -18881,7 +18885,7 @@ const h8 = /* @__PURE__ */ Q(u8, [["render", f8], ["__scopeId", "data-v-6fb8269e
18881
18885
  key: M.value,
18882
18886
  clickable: "",
18883
18887
  class: "q-px-md q-py-sm",
18884
- onClick: (k) => f(M)
18888
+ onClick: (k) => h(M)
18885
18889
  }, {
18886
18890
  default: C(() => [
18887
18891
  p(c(Sa), null, {
@@ -19015,7 +19019,7 @@ const h8 = /* @__PURE__ */ Q(u8, [["render", f8], ["__scopeId", "data-v-6fb8269e
19015
19019
  handle: ".drag-handle",
19016
19020
  onEnd: l
19017
19021
  }, {
19018
- item: C(({ element: f, index: h }) => [
19022
+ item: C(({ element: h, index: f }) => [
19019
19023
  y("div", O8, [
19020
19024
  y("div", D8, [
19021
19025
  p(c(ae), {
@@ -19025,17 +19029,17 @@ const h8 = /* @__PURE__ */ Q(u8, [["render", f8], ["__scopeId", "data-v-6fb8269e
19025
19029
  ]),
19026
19030
  y("div", z8, [
19027
19031
  N(r.$slots, "default", {
19028
- item: f,
19032
+ item: h,
19029
19033
  update: a,
19030
- index: h
19034
+ index: f
19031
19035
  }, () => [
19032
19036
  p(qe, {
19033
- modelValue: f.name,
19034
- "onUpdate:modelValue": (g) => f.name = g,
19037
+ modelValue: h.name,
19038
+ "onUpdate:modelValue": (g) => h.name = g,
19035
19039
  outlined: "",
19036
19040
  dense: "",
19037
19041
  class: "content-input",
19038
- onBlur: (g) => a(f)
19042
+ onBlur: (g) => a(h)
19039
19043
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onBlur"])
19040
19044
  ], !0)
19041
19045
  ]),
@@ -19047,30 +19051,30 @@ const h8 = /* @__PURE__ */ Q(u8, [["render", f8], ["__scopeId", "data-v-6fb8269e
19047
19051
  dense: "",
19048
19052
  color: "negative",
19049
19053
  class: "delete-btn",
19050
- onClick: (g) => o(f.id)
19054
+ onClick: (g) => o(h.id)
19051
19055
  }, null, 8, ["onClick"])
19052
19056
  ])) : j("", !0)
19053
19057
  ])
19054
19058
  ]),
19055
19059
  _: 3
19056
- }, 8, ["list"])) : (m(!0), S(K, { key: 3 }, we(t.list, (f, h) => (m(), S("div", {
19057
- key: f.id,
19060
+ }, 8, ["list"])) : (m(!0), S(K, { key: 3 }, we(t.list, (h, f) => (m(), S("div", {
19061
+ key: h.id,
19058
19062
  class: "static-item",
19059
19063
  style: J({ background: t.background })
19060
19064
  }, [
19061
19065
  y("div", V8, [
19062
19066
  N(r.$slots, "default", {
19063
- item: f,
19067
+ item: h,
19064
19068
  update: a,
19065
- index: h
19069
+ index: f
19066
19070
  }, () => [
19067
19071
  p(qe, {
19068
- modelValue: f.name,
19069
- "onUpdate:modelValue": (g) => f.name = g,
19072
+ modelValue: h.name,
19073
+ "onUpdate:modelValue": (g) => h.name = g,
19070
19074
  outlined: "",
19071
19075
  dense: "",
19072
19076
  class: "content-input",
19073
- onBlur: (g) => a(f)
19077
+ onBlur: (g) => a(h)
19074
19078
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onBlur"])
19075
19079
  ], !0)
19076
19080
  ]),
@@ -19082,7 +19086,7 @@ const h8 = /* @__PURE__ */ Q(u8, [["render", f8], ["__scopeId", "data-v-6fb8269e
19082
19086
  dense: "",
19083
19087
  color: "negative",
19084
19088
  class: "delete-btn",
19085
- onClick: (g) => o(f.id)
19089
+ onClick: (g) => o(h.id)
19086
19090
  }, null, 8, ["onClick"])
19087
19091
  ])) : j("", !0)
19088
19092
  ], 4))), 128)),
@@ -19282,23 +19286,23 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19282
19286
  ref_key: "fields",
19283
19287
  ref: s,
19284
19288
  modelValue: d.value,
19285
- "onUpdate:modelValue": (f) => d.value = f,
19289
+ "onUpdate:modelValue": (h) => d.value = h,
19286
19290
  autocomplete: "nope",
19287
19291
  type: d.IsPassword ? "password" : "text",
19288
19292
  placeholder: d.label,
19289
19293
  margin: "10px 0 0 0"
19290
19294
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder"]))), 128)),
19291
19295
  y("div", X8, [
19292
- (m(!0), S(K, null, we(c(i), (d, f) => (m(), D(re, {
19296
+ (m(!0), S(K, null, we(c(i), (d, h) => (m(), D(re, {
19293
19297
  id: d.id,
19294
19298
  key: d.GetChunk(),
19295
19299
  disabled: c(kt).Form.IsBlock,
19296
- type: f === 0 ? c(_e).Success : c(_e).Primary,
19300
+ type: h === 0 ? c(_e).Success : c(_e).Primary,
19297
19301
  skin: "base",
19298
19302
  text: d.text,
19299
19303
  margin: "10px 0 0 0",
19300
19304
  width: "100%",
19301
- onClick: (h) => o(d)
19305
+ onClick: (f) => o(d)
19302
19306
  }, null, 8, ["id", "disabled", "type", "text", "onClick"]))), 128))
19303
19307
  ])
19304
19308
  ], 4));
@@ -19418,10 +19422,10 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19418
19422
  Sn(() => {
19419
19423
  n.menus.Select();
19420
19424
  });
19421
- const d = (f) => {
19422
- n.menus.Select(f), i("select");
19425
+ const d = (h) => {
19426
+ n.menus.Select(h), i("select");
19423
19427
  };
19424
- return (f, h) => (m(), S("div", {
19428
+ return (h, f) => (m(), S("div", {
19425
19429
  class: "mainblock",
19426
19430
  style: J({
19427
19431
  height: `calc(100% - ${t.outTopMargin} - ${t.tabHeight}`,
@@ -19437,14 +19441,14 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19437
19441
  gridTemplateColumns: `repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`
19438
19442
  })
19439
19443
  }, [
19440
- (m(!0), S(K, null, we(t.menus.items, (g, w) => (m(), S("div", { key: w }, [
19444
+ (m(!0), S(K, null, we(t.menus.items, (g, b) => (m(), S("div", { key: b }, [
19441
19445
  y("div", {
19442
- class: ye({ "selected-tab": w === t.menus.idx, tab: w !== t.menus.idx }),
19446
+ class: ye({ "selected-tab": b === t.menus.idx, tab: b !== t.menus.idx }),
19443
19447
  style: J({
19444
19448
  minHeight: t.tabHeight,
19445
19449
  maxHeight: t.tabHeight
19446
19450
  }),
19447
- onClick: ($) => d(w)
19451
+ onClick: ($) => d(b)
19448
19452
  }, B(g.name), 15, iC)
19449
19453
  ]))), 128))
19450
19454
  ], 4),
@@ -19455,7 +19459,7 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19455
19459
  height: c(r)
19456
19460
  })
19457
19461
  }, [
19458
- N(f.$slots, "default", {}, () => [
19462
+ N(h.$slots, "default", {}, () => [
19459
19463
  t.menus.idx > -1 ? (m(), D(Rn(t.menus.GetComponent()), { key: 0 })) : j("", !0)
19460
19464
  ], !0)
19461
19465
  ], 4)
@@ -19491,31 +19495,31 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19491
19495
  const d = document.getElementById(s);
19492
19496
  if (!d.files)
19493
19497
  return;
19494
- const f = d.files[0];
19495
- if (!f)
19498
+ const h = d.files[0];
19499
+ if (!h)
19496
19500
  return;
19497
- if (!r(f.name)) {
19501
+ if (!r(h.name)) {
19498
19502
  Bn.Error(`Загруженный файл должен быть в одном из форматов: ${n.formats.join(", ")}`);
19499
19503
  return;
19500
19504
  }
19501
- const h = new Ht();
19502
- h.setFile(f), h.url = URL.createObjectURL(f), i("upload", h);
19505
+ const f = new Ht();
19506
+ f.setFile(h), f.url = URL.createObjectURL(h), i("upload", f);
19503
19507
  }, l = () => {
19504
19508
  i("remove");
19505
19509
  };
19506
19510
  Ti(() => {
19507
19511
  const d = document.getElementById(o);
19508
19512
  d && (d.onclick = () => {
19509
- var f;
19510
- return (f = document.getElementById(s)) == null ? void 0 : f.click();
19513
+ var h;
19514
+ return (h = document.getElementById(s)) == null ? void 0 : h.click();
19511
19515
  });
19512
19516
  });
19513
19517
  const r = (d) => {
19514
- let f = su.Get(d);
19515
- return !!n.formats.includes(f.toLowerCase());
19518
+ let h = su.Get(d);
19519
+ return !!n.formats.includes(h.toLowerCase());
19516
19520
  };
19517
- return (d, f) => {
19518
- const h = Me("PString"), g = Me("PFlex"), w = Me("PButton");
19521
+ return (d, h) => {
19522
+ const f = Me("PString"), g = Me("PFlex"), b = Me("PButton");
19519
19523
  return m(), S(K, null, [
19520
19524
  y("input", {
19521
19525
  id: c(s),
@@ -19542,7 +19546,7 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19542
19546
  p(g, null, {
19543
19547
  default: C(() => [
19544
19548
  N(d.$slots, "default", {}, void 0, !0),
19545
- p(h, {
19549
+ p(f, {
19546
19550
  string: t.placeholder,
19547
19551
  "font-size": "var(--font-size-default:)",
19548
19552
  color: "var(--input-label-color)",
@@ -19566,7 +19570,7 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19566
19570
  }, [
19567
19571
  y("div", null, B(t.fileInfo.originalName), 1)
19568
19572
  ], 8, uC),
19569
- p(w, {
19573
+ p(b, {
19570
19574
  skin: "text",
19571
19575
  color: "negative",
19572
19576
  onClick: l
@@ -19580,7 +19584,7 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19580
19584
  _: 1
19581
19585
  })
19582
19586
  ], 4)) : (m(), S("div", dC, [
19583
- p(h, {
19587
+ p(f, {
19584
19588
  string: "Файл не загружен",
19585
19589
  "font-size": "var(--inpur-font-size-default)",
19586
19590
  color: "var(--palette-warning)",
@@ -19588,7 +19592,7 @@ const X8 = { class: "btn-group" }, Q8 = /* @__PURE__ */ G({
19588
19592
  })
19589
19593
  ])),
19590
19594
  y("div", cC, [
19591
- p(w, {
19595
+ p(b, {
19592
19596
  id: c(o),
19593
19597
  skin: "text",
19594
19598
  color: "primary",
@@ -19626,7 +19630,7 @@ const gC = /* @__PURE__ */ G({
19626
19630
  emits: ["click"],
19627
19631
  setup(t, { emit: e }) {
19628
19632
  const n = jc(async () => {
19629
- const [l, r, d, f, h] = await Promise.all([
19633
+ const [l, r, d, h, f] = await Promise.all([
19630
19634
  import("vue-echarts"),
19631
19635
  import("echarts/core"),
19632
19636
  import("echarts/renderers"),
@@ -19635,13 +19639,13 @@ const gC = /* @__PURE__ */ G({
19635
19639
  ]);
19636
19640
  return r.use([
19637
19641
  d.CanvasRenderer,
19638
- f.BarChart,
19639
- f.LineChart,
19640
- f.PieChart,
19641
- h.GridComponent,
19642
- h.TooltipComponent,
19643
- h.LegendComponent,
19644
- h.TitleComponent
19642
+ h.BarChart,
19643
+ h.LineChart,
19644
+ h.PieChart,
19645
+ f.GridComponent,
19646
+ f.TooltipComponent,
19647
+ f.LegendComponent,
19648
+ f.TitleComponent
19645
19649
  ]), l.default;
19646
19650
  }), i = t, s = z(() => typeof i.height == "number" ? `${i.height}px` : i.height), o = e, a = () => o("click");
19647
19651
  return (l, r) => (m(), D(Rn(c(n)), {
@@ -19685,8 +19689,8 @@ function R4(t = yn.Get()) {
19685
19689
  const e = ct(t), n = z(() => e.f), i = z(() => e.f.length);
19686
19690
  return { filters: n, count: i, add: (d) => {
19687
19691
  e.setF(d);
19688
- }, replace: (d, f) => {
19689
- e.replaceF(d, f);
19692
+ }, replace: (d, h) => {
19693
+ e.replaceF(d, h);
19690
19694
  }, remove: (d) => {
19691
19695
  e.removeF(d);
19692
19696
  }, has: (d) => !!e.findFilterModel(d), clear: () => {
@@ -19699,12 +19703,12 @@ function I4(t, e = {}) {
19699
19703
  e.disposeOnUnmount !== !1 && wl() && Sl(() => {
19700
19704
  l = !0;
19701
19705
  });
19702
- const r = Math.max(1, Math.floor(e.attempts ?? 1)), d = Math.max(0, e.delay ?? 2e3), f = (w) => new Promise(($) => setTimeout($, w)), h = async (w = !1) => {
19703
- if (!(l || a) && !(e.once && o.value && !w)) {
19706
+ const r = Math.max(1, Math.floor(e.attempts ?? 1)), d = Math.max(0, e.delay ?? 2e3), h = (b) => new Promise(($) => setTimeout($, b)), f = async (b = !1) => {
19707
+ if (!(l || a) && !(e.once && o.value && !b)) {
19704
19708
  a = !0, n.value = !0, i.value = "";
19705
19709
  try {
19706
19710
  for (let $ = 1; $ <= r; $++) {
19707
- const I = await Si.Run(() => Promise.resolve(t(w)), { silent: !e.notify });
19711
+ const I = await Si.Run(() => Promise.resolve(t(b)), { silent: !e.notify });
19708
19712
  if (I.ok) {
19709
19713
  if (l)
19710
19714
  return;
@@ -19717,7 +19721,7 @@ function I4(t, e = {}) {
19717
19721
  i.value = Si.Message(I.error) || e.message || "Не удалось загрузить данные";
19718
19722
  return;
19719
19723
  }
19720
- await f(d * $);
19724
+ await h(d * $);
19721
19725
  }
19722
19726
  } finally {
19723
19727
  a = !1, l || (n.value = !1);
@@ -19726,14 +19730,14 @@ function I4(t, e = {}) {
19726
19730
  }, g = () => {
19727
19731
  s.value = null, i.value = "", o.value = !1;
19728
19732
  };
19729
- return e.immediate && h(), {
19733
+ return e.immediate && f(), {
19730
19734
  loading: n,
19731
19735
  error: i,
19732
19736
  data: s,
19733
19737
  loaded: z(() => o.value),
19734
19738
  failed: z(() => !!i.value),
19735
19739
  failedFirstLoad: z(() => !!i.value && s.value === null),
19736
- load: h,
19740
+ load: f,
19737
19741
  reset: g
19738
19742
  };
19739
19743
  }
@@ -19747,22 +19751,22 @@ function M4(t, e = {}) {
19747
19751
  limit: l,
19748
19752
  ...r
19749
19753
  } = e, d = O("");
19750
- let f;
19751
- const h = ($) => t.GetOptions(n, i, { ...r, ...$ }), g = () => t.InvalidateOptions(n, i), w = ($) => t.SearchOptions($, n, i, l).then(() => {
19754
+ let h;
19755
+ const f = ($) => t.GetOptions(n, i, { ...r, ...$ }), g = () => t.InvalidateOptions(n, i), b = ($) => t.SearchOptions($, n, i, l).then(() => {
19752
19756
  });
19753
19757
  return o ? Be(d, ($) => {
19754
- f && clearTimeout(f), f = setTimeout(() => {
19755
- w($);
19758
+ h && clearTimeout(h), h = setTimeout(() => {
19759
+ b($);
19756
19760
  }, a);
19757
19761
  }) : s && Ti(() => {
19758
- h();
19762
+ f();
19759
19763
  }), {
19760
19764
  options: z(() => t.Options),
19761
19765
  isLoading: z(() => t.Options.length === 0),
19762
- load: h,
19766
+ load: f,
19763
19767
  invalidate: g,
19764
19768
  query: d,
19765
- search: w
19769
+ search: b
19766
19770
  };
19767
19771
  }
19768
19772
  function A4(t = yn.Get()) {
@@ -19818,8 +19822,8 @@ function O4(t = {}) {
19818
19822
  storageKey: i = "pf-theme",
19819
19823
  defaultTheme: s,
19820
19824
  autoPlatform: o = !1
19821
- } = t, a = document.documentElement, l = typeof localStorage < "u" ? localStorage.getItem(i) : null, d = O(Hi ? "light" : l === "dark" || l === "light" ? l : s ?? "light"), f = typeof window < "u" ? window.innerWidth : 1440, h = typeof window < "u" && window.matchMedia("(pointer: coarse)").matches, g = O(
19822
- o ? rl(f, h) : n ?? vC
19825
+ } = t, a = document.documentElement, l = typeof localStorage < "u" ? localStorage.getItem(i) : null, d = O(Hi ? "light" : l === "dark" || l === "light" ? l : s ?? "light"), h = typeof window < "u" ? window.innerWidth : 1440, f = typeof window < "u" && window.matchMedia("(pointer: coarse)").matches, g = O(
19826
+ o ? rl(h, f) : n ?? vC
19823
19827
  );
19824
19828
  e && a.setAttribute("data-brandbook", e), a.setAttribute("data-theme", d.value), a.setAttribute("data-platform", g.value), Be(
19825
19829
  d,
@@ -19835,12 +19839,12 @@ function O4(t = {}) {
19835
19839
  },
19836
19840
  { immediate: !0 }
19837
19841
  );
19838
- let w;
19842
+ let b;
19839
19843
  const $ = () => {
19840
- g.value = rl(window.innerWidth, (w == null ? void 0 : w.matches) ?? !1);
19844
+ g.value = rl(window.innerWidth, (b == null ? void 0 : b.matches) ?? !1);
19841
19845
  };
19842
- o && typeof window < "u" && (w = window.matchMedia("(pointer: coarse)"), window.addEventListener("resize", $, { passive: !0 }), w.addEventListener("change", $), wl() && Sl(() => {
19843
- window.removeEventListener("resize", $), w == null || w.removeEventListener("change", $);
19846
+ o && typeof window < "u" && (b = window.matchMedia("(pointer: coarse)"), window.addEventListener("resize", $, { passive: !0 }), b.addEventListener("change", $), wl() && Sl(() => {
19847
+ window.removeEventListener("resize", $), b == null || b.removeEventListener("change", $);
19844
19848
  }));
19845
19849
  const I = O(d.value === "dark");
19846
19850
  return Be(d, (E) => {