@snabcentr/vue-ui-lib 4.0.6-dev → 4.1.2-dev

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.
@@ -6,7 +6,7 @@ var rg = (t, e, i) => e in t ? sg(t, e, { enumerable: !0, configurable: !0, writ
6
6
  var C = (t, e, i) => rg(t, typeof e != "symbol" ? e + "" : e, i), cc = (t, e, i) => e.has(t) || lc("Cannot " + i);
7
7
  var Zt = (t, e, i) => (cc(t, e, "read from private field"), i ? i.call(t) : e.get(t)), fa = (t, e, i) => e.has(t) ? lc("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), uc = (t, e, i, n) => (cc(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i);
8
8
  import { isString as on, groupBy as og, get as fo, isEmpty as xl, noop as Yt, some as Fi, isFunction as kt, isNil as rt, find as dc, forOwn as Cd, forEach as fs, sortBy as kl, cloneDeep as _i, reduce as Sd, every as hc, isArray as _t, keys as ag, debounce as Xi, isUndefined as Zs, unset as lg, isNull as $d, isObject as cg, merge as Dr, upperFirst as ug, map as dg, constant as Eo, union as hg } from "lodash-es";
9
- import { Comment as Io, Text as Td, Fragment as $e, markRaw as Oe, createElementBlock as z, openBlock as w, createElementVNode as P, defineComponent as re, inject as Ke, computed as O, ref as j, readonly as go, normalizeClass as je, createVNode as N, createCommentVNode as U, renderSlot as Te, unref as E, createTextVNode as ie, toDisplayString as Y, Transition as _s, withCtx as I, createBlock as Q, useTemplateRef as nt, onMounted as st, onBeforeUnmount as ki, onUnmounted as Rr, normalizeStyle as tr, renderList as Ot, h as H, watch as ke, withKeys as ir, withModifiers as Ts, nextTick as Rt, onBeforeMount as Fr, toRaw as Bi, provide as bi, createSlots as qn, getCurrentInstance as Pd, withDirectives as Br, Teleport as fg, toRef as et, mergeProps as Cl, onActivated as Rd, onDeactivated as Fd, isVNode as gg, shallowRef as pg, watchEffect as Pn, vShow as Bd, cloneVNode as mg, mergeDefaults as Sl } from "vue";
9
+ import { Comment as Io, Text as Td, Fragment as $e, markRaw as Oe, createElementBlock as z, openBlock as w, createElementVNode as P, defineComponent as re, inject as Ke, computed as O, ref as j, readonly as go, normalizeClass as je, createVNode as N, createCommentVNode as U, renderSlot as Te, unref as E, createTextVNode as ie, toDisplayString as Y, Transition as _s, withCtx as I, createBlock as Q, useTemplateRef as nt, onMounted as st, onBeforeUnmount as ki, onUnmounted as Rr, normalizeStyle as tr, renderList as Ot, h as H, watch as xe, withKeys as ir, withModifiers as Ts, nextTick as Rt, onBeforeMount as Fr, toRaw as Bi, provide as bi, createSlots as qn, getCurrentInstance as Pd, withDirectives as Br, Teleport as fg, toRef as et, mergeProps as Cl, onActivated as Rd, onDeactivated as Fd, isVNode as gg, shallowRef as pg, watchEffect as Pn, vShow as Bd, cloneVNode as mg, mergeDefaults as Sl } from "vue";
10
10
  import { NTooltip as Ar, NButton as De, NDropdown as Oo, NTag as Ad, NPopover as Bn, NText as $n, NScrollbar as Md, NCheckbox as Kn, NSpin as Ps, NForm as nr, NFormItem as tt, NSelect as an, NInputNumber as $t, NInput as An, NModal as $l, NDrawer as Ed, NDrawerContent as Id, NDataTable as Tl, NAlert as Od, NInputGroup as zd, NInputGroupLabel as vg, NDatePicker as yg, NUpload as bg, NUploadDragger as _g, NList as wg, NListItem as xg, NH1 as kg, NAutoComplete as Pl } from "naive-ui";
11
11
  import { useBaseConfigStateStore as ni, OrderItemBase as qt, ClientProduct as Rn, Identity as Cg, ClientCategory as Sg, Reference as $g, useReferencesStore as Mt, PriceCoefficientEnum as Tg, CalculationTypeEnum as Nr, PriceCoefficient as Pg, UnitsHelper as Li, DateTimeProvider as Rg, HttpRequester as qi, ProductCategoryDataProvider as Fg, ProductDataProvider as Bg, UserTypeEnum as Hr, OrdersDataProvider as po, Order as Ag, DataTablePagination as Mg, Curator as fc, CuratedDirection as Eg, ManagerDataFactory as gc, Manager as ga, DataSuggestionProvider as Rl, FieldValidationResultData as Ig, ReferenceDataProvider as Og, ClientDataProvider as zg } from "@snabcentr/common-lib";
12
12
  import { format as ws, endOfDay as Lg, startOfDay as Dg, isTomorrow as Ng } from "date-fns";
@@ -2298,13 +2298,13 @@ const jd = Oe({ name: "ion-plus", render: Dm }), Nm = {
2298
2298
  const $ = new qt(a.value);
2299
2299
  $[v] = y, v === "configuratorParams" && ($.product = new Rn()), s("update:value", $);
2300
2300
  };
2301
- return ke(
2301
+ return xe(
2302
2302
  () => n.previewParams,
2303
2303
  (v) => {
2304
2304
  a.value.configuratorParams.linesWidths = v.linesWidths, a.value.configuratorParams.linesAngles = v.linesAngles;
2305
2305
  },
2306
2306
  { deep: !0 }
2307
- ), ke(
2307
+ ), xe(
2308
2308
  () => n.value,
2309
2309
  (v) => {
2310
2310
  a.value = _i(v);
@@ -18615,7 +18615,7 @@ const qo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
18615
18615
  const h = (g = r.value) == null ? void 0 : g.at(d);
18616
18616
  h && o("init-draw-template", h, u);
18617
18617
  });
18618
- }), ke(
18618
+ }), xe(
18619
18619
  () => [...i.settings.customTemplates],
18620
18620
  (l, c) => {
18621
18621
  Rt(() => {
@@ -18913,7 +18913,7 @@ const qo = Oe({ name: "ion-close", render: V0 }), j0 = { class: "mr-3 flex flex-
18913
18913
  width: s.value.scrollWidth,
18914
18914
  height: s.value.scrollHeight,
18915
18915
  fullscreen: !1
18916
- }).appendTo(s.value), l.scene.scale = c, l.update(), ke(
18916
+ }).appendTo(s.value), l.scene.scale = c, l.update(), xe(
18917
18917
  () => i.value,
18918
18918
  () => {
18919
18919
  W();
@@ -19238,7 +19238,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
19238
19238
  };
19239
19239
  return Fr(() => {
19240
19240
  g();
19241
- }), ke(
19241
+ }), xe(
19242
19242
  () => i.cartItem,
19243
19243
  (b) => {
19244
19244
  a.value = new qt(b), g();
@@ -19408,7 +19408,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
19408
19408
  const T = new qt(n.value);
19409
19409
  T[S] = b, S === "configuratorParams" && (T.product = new Rn()), s("update:value", T);
19410
19410
  };
19411
- return ke(
19411
+ return xe(
19412
19412
  () => n.value,
19413
19413
  (S) => {
19414
19414
  const b = _i(Bi(S)), T = b.configuratorParams.mountType, R = n.settings.widthOverlaps[T] ?? 0, W = n.settings.heightOverlaps[T] ?? 0;
@@ -19834,7 +19834,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
19834
19834
  d.value = !1;
19835
19835
  });
19836
19836
  };
19837
- return ke(
19837
+ return xe(
19838
19838
  () => i.cartItem,
19839
19839
  (p) => {
19840
19840
  a.value = p;
@@ -19932,7 +19932,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
19932
19932
  var h;
19933
19933
  (h = r.value) == null || h.select();
19934
19934
  };
19935
- return ke(
19935
+ return xe(
19936
19936
  () => n.value,
19937
19937
  (h) => {
19938
19938
  a.value = h;
@@ -20079,7 +20079,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
20079
20079
  B[$] = k;
20080
20080
  }), s("update:value", a.value);
20081
20081
  };
20082
- return ke(
20082
+ return xe(
20083
20083
  () => n.value,
20084
20084
  ($) => {
20085
20085
  a.value = _i($);
@@ -20376,7 +20376,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
20376
20376
  }
20377
20377
  }).catch(Yt);
20378
20378
  };
20379
- return ke(
20379
+ return xe(
20380
20380
  () => i.cartItems,
20381
20381
  (f) => {
20382
20382
  r.value = f.map((p) => new qt(p));
@@ -20456,7 +20456,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
20456
20456
  var f;
20457
20457
  (f = o.value) == null || f.select();
20458
20458
  };
20459
- return ke(
20459
+ return xe(
20460
20460
  () => n.value,
20461
20461
  (f) => {
20462
20462
  a.value = _i(f);
@@ -20660,7 +20660,7 @@ const iy = { class: "flex flex-col gap-3" }, ny = { class: "grid gap-5 md:grid-c
20660
20660
  }));
20661
20661
  }).catch(Yt);
20662
20662
  };
20663
- return ke(
20663
+ return xe(
20664
20664
  () => i.cartItem,
20665
20665
  (h) => {
20666
20666
  r.value = new qt(h);
@@ -20860,7 +20860,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
20860
20860
  const te = new qt(n.value);
20861
20861
  te[M] = A, s("update:value", te);
20862
20862
  };
20863
- return ke(
20863
+ return xe(
20864
20864
  () => n.value,
20865
20865
  (M) => {
20866
20866
  const A = _i(Bi(M));
@@ -21165,7 +21165,7 @@ const ob = Oe({ name: "ion-add", render: rb }), ab = {
21165
21165
  i.cartItem.configuratorParams.items.forEach((d, h) => {
21166
21166
  o.value[`items.${h}.width`] = {}, o.value[`items.${h}.length`] = {}, o.value[`items.${h}.count`] = {};
21167
21167
  });
21168
- }), ke(
21168
+ }), xe(
21169
21169
  () => i.cartItem,
21170
21170
  (d) => {
21171
21171
  r.value = new qt(d);
@@ -22346,12 +22346,12 @@ const Eb = {
22346
22346
  o.value = f;
22347
22347
  });
22348
22348
  };
22349
- return ke(
22349
+ return xe(
22350
22350
  () => n.show,
22351
22351
  (g) => {
22352
22352
  g ? u() : d("other");
22353
22353
  }
22354
- ), ke(
22354
+ ), xe(
22355
22355
  () => n.processing,
22356
22356
  (g) => {
22357
22357
  o.value = g;
@@ -23680,7 +23680,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
23680
23680
  s.value = !1, a(), n("editor:cancel");
23681
23681
  };
23682
23682
  return st(() => {
23683
- ke(
23683
+ xe(
23684
23684
  () => i.showEditor,
23685
23685
  (a) => {
23686
23686
  s.value = a;
@@ -23736,7 +23736,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
23736
23736
  ), a = (l) => {
23737
23737
  s.value = l, o();
23738
23738
  };
23739
- return ke(
23739
+ return xe(
23740
23740
  () => i.value,
23741
23741
  (l) => {
23742
23742
  s.value = l;
@@ -23780,7 +23780,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
23780
23780
  ), l = (g) => {
23781
23781
  r.value = g, a();
23782
23782
  };
23783
- ke(
23783
+ xe(
23784
23784
  () => n.value,
23785
23785
  (g) => {
23786
23786
  r.value = g;
@@ -23863,7 +23863,7 @@ const A1 = Oe({ name: "ion-options-outline", render: B1 }), M1 = { class: "flex
23863
23863
  throw u;
23864
23864
  }
23865
23865
  };
23866
- return ke(
23866
+ return xe(
23867
23867
  () => i.value,
23868
23868
  (l) => {
23869
23869
  var c;
@@ -25045,14 +25045,14 @@ function Gw(t) {
25045
25045
  const e = j(!!t.value);
25046
25046
  if (e.value)
25047
25047
  return go(e);
25048
- const i = ke(t, (n) => {
25048
+ const i = xe(t, (n) => {
25049
25049
  n && (e.value = !0, i());
25050
25050
  });
25051
25051
  return go(e);
25052
25052
  }
25053
25053
  function Ai(t) {
25054
25054
  const e = O(t), i = j(e.value);
25055
- return ke(e, (n) => {
25055
+ return xe(e, (n) => {
25056
25056
  i.value = n;
25057
25057
  }), typeof t == "function" ? i : {
25058
25058
  __v_isRef: !0,
@@ -25086,7 +25086,7 @@ function Qw(t) {
25086
25086
  });
25087
25087
  }
25088
25088
  function fl(t, e) {
25089
- return ke(t, (i) => {
25089
+ return xe(t, (i) => {
25090
25090
  i !== void 0 && (e.value = i);
25091
25091
  }), O(() => t.value === void 0 ? e.value : t.value);
25092
25092
  }
@@ -26015,7 +26015,7 @@ const Bx = Vn([
26015
26015
  const S = Ea(h), b = Ea(s.value), { left: T, top: R, placement: W } = Px(k, v, S, B, F, m), D = Rx(W, m), { left: M, top: A, transform: te } = Fx(W, b, v, R, T, m);
26016
26016
  h.setAttribute("v-placement", W), h.style.setProperty("--v-offset-left", `${Math.round(T)}px`), h.style.setProperty("--v-offset-top", `${Math.round(R)}px`), h.style.transform = `translateX(${M}) translateY(${A}) ${te}`, h.style.setProperty("--v-transform-origin", D), h.style.transformOrigin = D;
26017
26017
  };
26018
- ke(i, (h) => {
26018
+ xe(i, (h) => {
26019
26019
  h ? (r(), c()) : o();
26020
26020
  });
26021
26021
  const c = () => {
@@ -26031,10 +26031,10 @@ const Bx = Vn([
26031
26031
  "overlap",
26032
26032
  "minWidth"
26033
26033
  ].forEach((h) => {
26034
- ke(et(t, h), l);
26034
+ xe(et(t, h), l);
26035
26035
  }), ["teleportDisabled"].forEach((h) => {
26036
- ke(et(t, h), c);
26037
- }), ke(et(t, "syncTrigger"), (h) => {
26036
+ xe(et(t, h), c);
26037
+ }), xe(et(t, "syncTrigger"), (h) => {
26038
26038
  h.includes("resize") ? e.addResizeListener(l) : e.removeResizeListener(l), h.includes("scroll") ? e.addScrollListener(l) : e.removeScrollListener(l);
26039
26039
  });
26040
26040
  const u = Uo(), d = Ai(() => {
@@ -26987,7 +26987,7 @@ const o2 = re({
26987
26987
  m.code === "Escape" && a() && ((v = t.onEsc) === null || v === void 0 || v.call(t, m));
26988
26988
  }
26989
26989
  st(() => {
26990
- ke(() => t.active, (m) => {
26990
+ xe(() => t.active, (m) => {
26991
26991
  m ? (d(), ii("keydown", document, l)) : (St("keydown", document, l), s && h());
26992
26992
  }, {
26993
26993
  immediate: !0
@@ -27135,7 +27135,7 @@ function Ff(t, e) {
27135
27135
  value: i
27136
27136
  } = t;
27137
27137
  i && yr.registerHandler(i, e);
27138
- }), ke(t, (i, n) => {
27138
+ }), xe(t, (i, n) => {
27139
27139
  n && yr.unregisterHandler(n);
27140
27140
  }, {
27141
27141
  deep: !1
@@ -28729,7 +28729,7 @@ function wk({
28729
28729
  opacity: 1
28730
28730
  })];
28731
28731
  }
28732
- const xe = {
28732
+ const ke = {
28733
28733
  neutralBase: "#FFF",
28734
28734
  neutralInvertBase: "#000",
28735
28735
  neutralTextBase: "#000",
@@ -28776,7 +28776,7 @@ const xe = {
28776
28776
  successDefault: "#18a058",
28777
28777
  successActive: "#0c7a43",
28778
28778
  successSuppl: "#36ad6a"
28779
- }, xk = $s(xe.neutralBase), Df = $s(xe.neutralInvertBase), kk = `rgba(${Df.slice(0, 3).join(", ")}, `;
28779
+ }, xk = $s(ke.neutralBase), Df = $s(ke.neutralInvertBase), kk = `rgba(${Df.slice(0, 3).join(", ")}, `;
28780
28780
  function vd(t) {
28781
28781
  return `${kk + String(t)})`;
28782
28782
  }
@@ -28787,87 +28787,87 @@ function Lt(t) {
28787
28787
  const Ms = Object.assign(Object.assign({
28788
28788
  name: "common"
28789
28789
  }, Ir), {
28790
- baseColor: xe.neutralBase,
28790
+ baseColor: ke.neutralBase,
28791
28791
  // primary color
28792
- primaryColor: xe.primaryDefault,
28793
- primaryColorHover: xe.primaryHover,
28794
- primaryColorPressed: xe.primaryActive,
28795
- primaryColorSuppl: xe.primarySuppl,
28792
+ primaryColor: ke.primaryDefault,
28793
+ primaryColorHover: ke.primaryHover,
28794
+ primaryColorPressed: ke.primaryActive,
28795
+ primaryColorSuppl: ke.primarySuppl,
28796
28796
  // info color
28797
- infoColor: xe.infoDefault,
28798
- infoColorHover: xe.infoHover,
28799
- infoColorPressed: xe.infoActive,
28800
- infoColorSuppl: xe.infoSuppl,
28797
+ infoColor: ke.infoDefault,
28798
+ infoColorHover: ke.infoHover,
28799
+ infoColorPressed: ke.infoActive,
28800
+ infoColorSuppl: ke.infoSuppl,
28801
28801
  // success color
28802
- successColor: xe.successDefault,
28803
- successColorHover: xe.successHover,
28804
- successColorPressed: xe.successActive,
28805
- successColorSuppl: xe.successSuppl,
28802
+ successColor: ke.successDefault,
28803
+ successColorHover: ke.successHover,
28804
+ successColorPressed: ke.successActive,
28805
+ successColorSuppl: ke.successSuppl,
28806
28806
  // warning color
28807
- warningColor: xe.warningDefault,
28808
- warningColorHover: xe.warningHover,
28809
- warningColorPressed: xe.warningActive,
28810
- warningColorSuppl: xe.warningSuppl,
28807
+ warningColor: ke.warningDefault,
28808
+ warningColorHover: ke.warningHover,
28809
+ warningColorPressed: ke.warningActive,
28810
+ warningColorSuppl: ke.warningSuppl,
28811
28811
  // error color
28812
- errorColor: xe.errorDefault,
28813
- errorColorHover: xe.errorHover,
28814
- errorColorPressed: xe.errorActive,
28815
- errorColorSuppl: xe.errorSuppl,
28812
+ errorColor: ke.errorDefault,
28813
+ errorColorHover: ke.errorHover,
28814
+ errorColorPressed: ke.errorActive,
28815
+ errorColorSuppl: ke.errorSuppl,
28816
28816
  // text color
28817
- textColorBase: xe.neutralTextBase,
28817
+ textColorBase: ke.neutralTextBase,
28818
28818
  textColor1: "rgb(31, 34, 37)",
28819
28819
  textColor2: "rgb(51, 54, 57)",
28820
28820
  textColor3: "rgb(118, 124, 130)",
28821
28821
  // textColor4: neutral(base.alpha4), // disabled, placeholder, icon
28822
28822
  // textColor5: neutral(base.alpha5),
28823
- textColorDisabled: Lt(xe.alpha4),
28824
- placeholderColor: Lt(xe.alpha4),
28825
- placeholderColorDisabled: Lt(xe.alpha5),
28826
- iconColor: Lt(xe.alpha4),
28827
- iconColorHover: Qr(Lt(xe.alpha4), {
28823
+ textColorDisabled: Lt(ke.alpha4),
28824
+ placeholderColor: Lt(ke.alpha4),
28825
+ placeholderColorDisabled: Lt(ke.alpha5),
28826
+ iconColor: Lt(ke.alpha4),
28827
+ iconColorHover: Qr(Lt(ke.alpha4), {
28828
28828
  lightness: 0.75
28829
28829
  }),
28830
- iconColorPressed: Qr(Lt(xe.alpha4), {
28830
+ iconColorPressed: Qr(Lt(ke.alpha4), {
28831
28831
  lightness: 0.9
28832
28832
  }),
28833
- iconColorDisabled: Lt(xe.alpha5),
28834
- opacity1: xe.alpha1,
28835
- opacity2: xe.alpha2,
28836
- opacity3: xe.alpha3,
28837
- opacity4: xe.alpha4,
28838
- opacity5: xe.alpha5,
28833
+ iconColorDisabled: Lt(ke.alpha5),
28834
+ opacity1: ke.alpha1,
28835
+ opacity2: ke.alpha2,
28836
+ opacity3: ke.alpha3,
28837
+ opacity4: ke.alpha4,
28838
+ opacity5: ke.alpha5,
28839
28839
  dividerColor: "rgb(239, 239, 245)",
28840
28840
  borderColor: "rgb(224, 224, 230)",
28841
28841
  // close
28842
- closeIconColor: Lt(Number(xe.alphaClose)),
28843
- closeIconColorHover: Lt(Number(xe.alphaClose)),
28844
- closeIconColorPressed: Lt(Number(xe.alphaClose)),
28842
+ closeIconColor: Lt(Number(ke.alphaClose)),
28843
+ closeIconColorHover: Lt(Number(ke.alphaClose)),
28844
+ closeIconColorPressed: Lt(Number(ke.alphaClose)),
28845
28845
  closeColorHover: "rgba(0, 0, 0, .09)",
28846
28846
  closeColorPressed: "rgba(0, 0, 0, .13)",
28847
28847
  // clear
28848
- clearColor: Lt(xe.alpha4),
28849
- clearColorHover: Qr(Lt(xe.alpha4), {
28848
+ clearColor: Lt(ke.alpha4),
28849
+ clearColorHover: Qr(Lt(ke.alpha4), {
28850
28850
  lightness: 0.75
28851
28851
  }),
28852
- clearColorPressed: Qr(Lt(xe.alpha4), {
28852
+ clearColorPressed: Qr(Lt(ke.alpha4), {
28853
28853
  lightness: 0.9
28854
28854
  }),
28855
- scrollbarColor: vd(xe.alphaScrollbar),
28856
- scrollbarColorHover: vd(xe.alphaScrollbarHover),
28855
+ scrollbarColor: vd(ke.alphaScrollbar),
28856
+ scrollbarColorHover: vd(ke.alphaScrollbarHover),
28857
28857
  scrollbarWidth: "5px",
28858
28858
  scrollbarHeight: "5px",
28859
28859
  scrollbarBorderRadius: "5px",
28860
- progressRailColor: Lt(xe.alphaProgressRail),
28860
+ progressRailColor: Lt(ke.alphaProgressRail),
28861
28861
  railColor: "rgb(219, 219, 223)",
28862
- popoverColor: xe.neutralPopover,
28863
- tableColor: xe.neutralCard,
28864
- cardColor: xe.neutralCard,
28865
- modalColor: xe.neutralModal,
28866
- bodyColor: xe.neutralBody,
28862
+ popoverColor: ke.neutralPopover,
28863
+ tableColor: ke.neutralCard,
28864
+ cardColor: ke.neutralCard,
28865
+ modalColor: ke.neutralModal,
28866
+ bodyColor: ke.neutralBody,
28867
28867
  tagColor: "#eee",
28868
- avatarColor: Lt(xe.alphaAvatar),
28868
+ avatarColor: Lt(ke.alphaAvatar),
28869
28869
  invertedColor: "rgb(0, 20, 40)",
28870
- inputColor: Lt(xe.alphaInput),
28870
+ inputColor: Lt(ke.alphaInput),
28871
28871
  codeColor: "rgb(244, 244, 248)",
28872
28872
  tabColor: "rgb(247, 247, 250)",
28873
28873
  actionColor: "rgb(250, 250, 252)",
@@ -28877,7 +28877,7 @@ const Ms = Object.assign(Object.assign({
28877
28877
  tableColorHover: "rgba(0, 0, 100, 0.03)",
28878
28878
  tableColorStriped: "rgba(0, 0, 100, 0.02)",
28879
28879
  pressedColor: "rgb(237, 237, 239)",
28880
- opacityDisabled: xe.alphaDisabled,
28880
+ opacityDisabled: ke.alphaDisabled,
28881
28881
  inputColorDisabled: "rgb(250, 250, 252)",
28882
28882
  // secondary button color
28883
28883
  // can also be used in tertiary button & quaternary button
@@ -30142,8 +30142,8 @@ const zk = Se("base-select-menu", `
30142
30142
  q && !t.treeMate.getNode(q.key) && (u.value = null);
30143
30143
  }
30144
30144
  let g;
30145
- ke(() => t.show, (q) => {
30146
- q ? g = ke(() => t.treeMate, () => {
30145
+ xe(() => t.show, (q) => {
30146
+ q ? g = xe(() => t.treeMate, () => {
30147
30147
  t.resetMenuOnOptionsChange ? (t.autoPending ? d() : h(), Rt(A)) : h();
30148
30148
  }, {
30149
30149
  immediate: !0
@@ -30776,7 +30776,7 @@ const Vk = re({
30776
30776
  syncPosition: y
30777
30777
  }), ki(() => {
30778
30778
  u.setBodyInstance(null);
30779
- }), ke(et(t, "show"), (b) => {
30779
+ }), xe(et(t, "show"), (b) => {
30780
30780
  t.animated || (b ? h.value = !0 : h.value = !1);
30781
30781
  });
30782
30782
  function y() {
@@ -32228,9 +32228,9 @@ const Uf = {
32228
32228
  } = g;
32229
32229
  se && (se.style.display = "inline-block");
32230
32230
  }
32231
- ke(et(t, "active"), (se) => {
32231
+ xe(et(t, "active"), (se) => {
32232
32232
  se || _();
32233
- }), ke(et(t, "pattern"), () => {
32233
+ }), xe(et(t, "pattern"), () => {
32234
32234
  t.multiple && Rt(F);
32235
32235
  });
32236
32236
  function b(se) {
@@ -32382,7 +32382,7 @@ const Uf = {
32382
32382
  function hn(se) {
32383
32383
  se || (di(), f.value = !1);
32384
32384
  }
32385
- ke(B, (se) => {
32385
+ xe(B, (se) => {
32386
32386
  se || (f.value = !1);
32387
32387
  }), st(() => {
32388
32388
  Pn(() => {
@@ -33378,7 +33378,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
33378
33378
  var L;
33379
33379
  k.value && ((L = F.value) === null || L === void 0 || L.syncPosition());
33380
33380
  }
33381
- _e(), ke(et(t, "options"), _e);
33381
+ _e(), xe(et(t, "options"), _e);
33382
33382
  const Is = {
33383
33383
  focus: () => {
33384
33384
  var L;
@@ -33757,7 +33757,7 @@ const vC = Object.assign(Object.assign({}, Gt.props), {
33757
33757
  }, u = (d) => {
33758
33758
  o.value = o.value.filter((h) => h.id !== d.id), a();
33759
33759
  };
33760
- return ke(
33760
+ return xe(
33761
33761
  () => i.value,
33762
33762
  () => {
33763
33763
  o.value = r();
@@ -34172,64 +34172,11 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34172
34172
  }, " [" + Y(t.user.type) + "] ", 3)) : U("", !0)
34173
34173
  ], 2));
34174
34174
  }
34175
- }), fS = { class: "ml-4 text-base" }, gS = {
34176
- key: 0,
34177
- class: "text-sc-dark-grey my-2 text-center"
34178
- }, pS = {
34179
- key: 1,
34180
- class: "text-sc-dark-grey my-2"
34181
- }, mS = {
34182
- key: 2,
34183
- class: "grid grid-cols-3 gap-1.5"
34184
- }, vS = { class: "text-sc-dark-grey" }, yS = { class: "col-span-2" }, bS = { class: "font-medium" }, _S = {
34185
- key: 0,
34186
- class: "text-sc-dark-grey"
34187
- }, wS = { class: "text-sc-dark-grey text-sm" }, xS = {}, kS = /* @__PURE__ */ re({
34188
- ...xS,
34189
- __name: "order-status-history",
34190
- props: {
34191
- orderId: {}
34192
- },
34193
- setup(t) {
34194
- const e = t, i = j(!1), n = j([]), s = (o) => ws(o, ni().config.dateFormats.uiDateWithTime), r = () => {
34195
- i.value = !0, qi.getInstance(po).getOrderStatusHistory(e.orderId).then((o) => {
34196
- n.value = o;
34197
- }).finally(() => {
34198
- i.value = !1;
34199
- });
34200
- };
34201
- return st(() => {
34202
- r();
34203
- }), (o, a) => {
34204
- const l = Ps;
34205
- return w(), z("div", null, [
34206
- a[1] || (a[1] = P("h3", null, "История статусов", -1)),
34207
- P("div", fS, [
34208
- i.value ? (w(), z("div", gS, [
34209
- N(l, {
34210
- size: "small",
34211
- class: "mb-1 align-middle"
34212
- }),
34213
- a[0] || (a[0] = P("span", { class: "ml-2" }, "Загрузка истории ...", -1))
34214
- ])) : n.value.length === 0 ? (w(), z("div", pS, " История статусов отсутствует. ")) : (w(), z("div", mS, [
34215
- (w(!0), z($e, null, Ot(n.value, (c, u) => (w(), z($e, { key: u }, [
34216
- P("span", vS, Y(s(c.createdAt)), 1),
34217
- P("div", yS, [
34218
- P("span", bS, Y(c.status.name), 1),
34219
- c.statusDetail ? (w(), z("span", _S, "  (" + Y(c.statusDetail.name) + ") ", 1)) : U("", !0),
34220
- P("div", wS, Y(c.user.name), 1)
34221
- ])
34222
- ], 64))), 128))
34223
- ]))
34224
- ])
34225
- ]);
34226
- };
34227
- }
34228
- }), CS = { class: "ml-4 grid grid-cols-3 gap-1.5 text-base" }, SS = { class: "col-span-2" }, $S = { class: "col-span-2" }, TS = {
34175
+ }), fS = { class: "ml-4 grid grid-cols-3 gap-1.5 text-base" }, gS = { class: "col-span-2" }, pS = { class: "col-span-2" }, mS = {
34229
34176
  class: "btn btn-primary",
34230
34177
  href: "{{ invoice }}"
34231
- }, PS = {}, RS = /* @__PURE__ */ re({
34232
- ...PS,
34178
+ }, vS = {}, yS = /* @__PURE__ */ re({
34179
+ ...vS,
34233
34180
  __name: "order-details",
34234
34181
  props: {
34235
34182
  order: {}
@@ -34239,7 +34186,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34239
34186
  const i = e;
34240
34187
  return (n, s) => (w(), z("div", null, [
34241
34188
  s[12] || (s[12] = P("h3", null, "Детали заказа", -1)),
34242
- P("div", CS, [
34189
+ P("div", fS, [
34243
34190
  t.order.creator.id !== t.order.client.id ? (w(), z($e, { key: 0 }, [
34244
34191
  s[1] || (s[1] = P("span", null, "Создал", -1)),
34245
34192
  N(xd, {
@@ -34269,7 +34216,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34269
34216
  ], 64)) : U("", !0),
34270
34217
  t.order.barcode ? (w(), z($e, { key: 3 }, [
34271
34218
  s[5] || (s[5] = P("span", null, "Штрих-код", -1)),
34272
- P("span", SS, Y(t.order.barcode), 1)
34219
+ P("span", gS, Y(t.order.barcode), 1)
34273
34220
  ], 64)) : U("", !0),
34274
34221
  t.order.payment ? (w(), z($e, { key: 4 }, [
34275
34222
  s[6] || (s[6] = P("span", null, "Оплата", -1)),
@@ -34287,7 +34234,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34287
34234
  ], 64)) : U("", !0),
34288
34235
  t.order.comment ? (w(), z($e, { key: 6 }, [
34289
34236
  s[8] || (s[8] = P("span", null, "Комментарий", -1)),
34290
- P("span", $S, Y(t.order.comment), 1)
34237
+ P("span", pS, Y(t.order.comment), 1)
34291
34238
  ], 64)) : U("", !0),
34292
34239
  t.order.attachedUser ? (w(), z($e, { key: 7 }, [
34293
34240
  s[9] || (s[9] = P("span", null, "Закреплен за", -1)),
@@ -34302,15 +34249,70 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34302
34249
  key: o,
34303
34250
  class: "col-span-2"
34304
34251
  }, [
34305
- P("a", TS, " Скачать счет №" + Y(o + 1), 1)
34252
+ P("a", mS, " Скачать счет №" + Y(o + 1), 1)
34306
34253
  ]))), 128))
34307
34254
  ], 64)) : U("", !0)
34308
- ]),
34309
- N(kS, {
34310
- "order-id": t.order.id
34311
- }, null, 8, ["order-id"])
34255
+ ])
34312
34256
  ]));
34313
34257
  }
34258
+ }), bS = { class: "ml-4 text-base" }, _S = {
34259
+ key: 0,
34260
+ class: "text-sc-dark-grey my-2 text-center"
34261
+ }, wS = {
34262
+ key: 1,
34263
+ class: "text-sc-dark-grey my-2"
34264
+ }, xS = {
34265
+ key: 2,
34266
+ class: "grid grid-cols-3 gap-1.5"
34267
+ }, kS = { class: "text-sc-dark-grey" }, CS = { class: "col-span-2" }, SS = { class: "font-medium" }, $S = {
34268
+ key: 0,
34269
+ class: "text-sc-dark-grey"
34270
+ }, TS = { class: "text-sc-dark-grey text-sm" }, PS = {}, RS = /* @__PURE__ */ re({
34271
+ ...PS,
34272
+ __name: "order-status-history",
34273
+ props: {
34274
+ order: {}
34275
+ },
34276
+ setup(t) {
34277
+ const e = t, i = j(!1), n = j([]), s = (o) => ws(o, ni().config.dateFormats.uiDateWithTime), r = (o = !0) => {
34278
+ o && (i.value = !0), qi.getInstance(po).getOrderStatusHistory(e.order.id).then((a) => {
34279
+ n.value = a;
34280
+ }).finally(() => {
34281
+ o && (i.value = !1);
34282
+ });
34283
+ };
34284
+ return xe(
34285
+ () => e.order,
34286
+ () => {
34287
+ r(!1);
34288
+ }
34289
+ ), st(() => {
34290
+ r();
34291
+ }), (o, a) => {
34292
+ const l = Ps;
34293
+ return w(), z("div", null, [
34294
+ a[1] || (a[1] = P("h3", null, "История статусов", -1)),
34295
+ P("div", bS, [
34296
+ i.value ? (w(), z("div", _S, [
34297
+ N(l, {
34298
+ size: "small",
34299
+ class: "mb-1 align-middle"
34300
+ }),
34301
+ a[0] || (a[0] = P("span", { class: "ml-2" }, "Загрузка истории ...", -1))
34302
+ ])) : n.value.length === 0 ? (w(), z("div", wS, " История статусов отсутствует. ")) : (w(), z("div", xS, [
34303
+ (w(!0), z($e, null, Ot(n.value, (c, u) => (w(), z($e, { key: u }, [
34304
+ P("span", kS, Y(s(c.createdAt)), 1),
34305
+ P("div", CS, [
34306
+ P("span", SS, Y(c.status.name), 1),
34307
+ c.statusDetail ? (w(), z("span", $S, "  (" + Y(c.statusDetail.name) + ") ", 1)) : U("", !0),
34308
+ P("div", TS, Y(c.user.name), 1)
34309
+ ])
34310
+ ], 64))), 128))
34311
+ ]))
34312
+ ])
34313
+ ]);
34314
+ };
34315
+ }
34314
34316
  }), FS = { key: 0 }, BS = { class: "text-sc-dark-grey my-2 text-center" }, AS = {
34315
34317
  key: 1,
34316
34318
  class: "text-sc-dark-grey my-2 text-center"
@@ -34322,14 +34324,21 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34322
34324
  },
34323
34325
  emits: ["click:client-name"],
34324
34326
  setup(t, { emit: e }) {
34325
- const i = t, n = e, s = j(!1), r = j(new Ag(i.order)), o = (l = !0) => {
34327
+ const i = t, n = e, s = j(!1), r = j(), o = (l = !0) => {
34328
+ if ("products" in i.order) {
34329
+ r.value = new Ag(i.order);
34330
+ return;
34331
+ }
34326
34332
  l && (s.value = !0), qi.getInstance(po).getOrder(i.order.id).then((c) => {
34327
34333
  r.value = c;
34328
34334
  }).finally(() => {
34329
34335
  l && (s.value = !1);
34330
34336
  });
34331
- }, a = O(() => (r.value.products ?? []).reduce((l, c) => l + c.costRub, 0).toLocaleString("ru-ru", { minimumFractionDigits: 2 }));
34332
- return ke(
34337
+ }, a = O(() => {
34338
+ var l;
34339
+ return (((l = r.value) == null ? void 0 : l.products) ?? []).reduce((c, u) => c + u.costRub, 0).toLocaleString("ru-ru", { minimumFractionDigits: 2 });
34340
+ });
34341
+ return xe(
34333
34342
  () => i.order,
34334
34343
  () => {
34335
34344
  o(!1);
@@ -34348,7 +34357,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34348
34357
  P("span", null, "Загрузка данных ...")
34349
34358
  ], -1))
34350
34359
  ])
34351
- ])) : r.value.products.length === 0 ? (w(), z("div", AS, " --- Не удалось загрузить данные о заказе --- ")) : (w(), z("div", MS, [
34360
+ ])) : !r.value || r.value.products.length === 0 ? (w(), z("div", AS, " --- Не удалось загрузить данные о заказе --- ")) : (w(), z("div", MS, [
34352
34361
  N(uS, {
34353
34362
  products: r.value.products
34354
34363
  }, null, 8, ["products"]),
@@ -34356,10 +34365,11 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34356
34365
  c[2] || (c[2] = ie(" ИТОГО: ", -1)),
34357
34366
  P("span", IS, Y(a.value) + " ₽", 1)
34358
34367
  ]),
34359
- N(RS, {
34368
+ N(yS, {
34360
34369
  order: r.value,
34361
34370
  "onClick:clientName": c[0] || (c[0] = (d) => n("click:client-name", r.value.client, d))
34362
- }, null, 8, ["order"])
34371
+ }, null, 8, ["order"]),
34372
+ N(RS, { order: r.value }, null, 8, ["order"])
34363
34373
  ]));
34364
34374
  };
34365
34375
  }
@@ -34688,12 +34698,12 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34688
34698
  }, S = () => {
34689
34699
  d.value = u(), l.value = window.innerHeight;
34690
34700
  };
34691
- return ke(
34701
+ return xe(
34692
34702
  () => i.filters,
34693
34703
  () => {
34694
34704
  h.value.page = 1, $(), y();
34695
34705
  }
34696
- ), ke(
34706
+ ), xe(
34697
34707
  () => i.sort,
34698
34708
  () => {
34699
34709
  r.value = s(), h.value.page = 1, $(), y();
@@ -34727,7 +34737,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34727
34737
  }, null, 8, ["columns", "data", "row-key", "scroll-x", "pagination", "loading", "max-height"]);
34728
34738
  };
34729
34739
  }
34730
- }), S3 = /* @__PURE__ */ Zn(HS, [["__scopeId", "data-v-eaf03714"]]), WS = ["href"], VS = { class: "text-sc-dark-grey" }, jS = {}, $3 = /* @__PURE__ */ re({
34740
+ }), S3 = /* @__PURE__ */ Zn(HS, [["__scopeId", "data-v-2a162c0c"]]), WS = ["href"], VS = { class: "text-sc-dark-grey" }, jS = {}, $3 = /* @__PURE__ */ re({
34731
34741
  ...jS,
34732
34742
  __name: "short-text-order-info",
34733
34743
  props: {
@@ -34822,17 +34832,17 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
34822
34832
  }, a = () => {
34823
34833
  r.value ? Zs(i.drawerWidth) ? s.value = o() : s.value = kt(i.drawerWidth) ? i.drawerWidth() : i.drawerWidth : s.value = 0;
34824
34834
  };
34825
- return ke(
34835
+ return xe(
34826
34836
  () => i.drawerWidth,
34827
34837
  () => {
34828
34838
  a();
34829
34839
  }
34830
- ), ke(
34840
+ ), xe(
34831
34841
  () => r.value,
34832
34842
  () => {
34833
34843
  a(), n("update:show-drawer", r.value);
34834
34844
  }
34835
- ), ke(
34845
+ ), xe(
34836
34846
  () => i.showDrawer,
34837
34847
  (l) => {
34838
34848
  r.value = l;
@@ -35084,7 +35094,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
35084
35094
  s("update:value", p ?? null);
35085
35095
  }
35086
35096
  };
35087
- return ke(
35097
+ return xe(
35088
35098
  () => n.value,
35089
35099
  () => {
35090
35100
  var f, p;
@@ -35174,7 +35184,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
35174
35184
  s("update:value", p ?? new ga());
35175
35185
  }
35176
35186
  };
35177
- return ke(
35187
+ return xe(
35178
35188
  () => n.value,
35179
35189
  () => {
35180
35190
  var f, p;
@@ -35183,7 +35193,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
35183
35193
  {
35184
35194
  deep: !0
35185
35195
  }
35186
- ), ke(
35196
+ ), xe(
35187
35197
  () => n.disabledManagerReferenceList,
35188
35198
  (f) => {
35189
35199
  if (f.length > 0 && n.value)
@@ -35276,12 +35286,12 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
35276
35286
  value: p.id
35277
35287
  }))
35278
35288
  );
35279
- ke(
35289
+ xe(
35280
35290
  () => n.value,
35281
35291
  (p) => {
35282
35292
  r.value = p;
35283
35293
  }
35284
- ), ke(r, () => {
35294
+ ), xe(r, () => {
35285
35295
  s("update:value", r.value);
35286
35296
  });
35287
35297
  const c = Xi(
@@ -35379,12 +35389,12 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
35379
35389
  value: p.id
35380
35390
  }))
35381
35391
  );
35382
- ke(
35392
+ xe(
35383
35393
  () => n.value,
35384
35394
  (p) => {
35385
35395
  r.value = p;
35386
35396
  }
35387
- ), ke(r, () => {
35397
+ ), xe(r, () => {
35388
35398
  s("update:value", r.value);
35389
35399
  });
35390
35400
  const c = Xi(
@@ -35511,12 +35521,12 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
35511
35521
  (m) => !n.allowSelectTerminated && l(m)
35512
35522
  )
35513
35523
  );
35514
- ke(
35524
+ xe(
35515
35525
  () => n.value,
35516
35526
  (m) => {
35517
35527
  r.value = m;
35518
35528
  }
35519
- ), ke(r, () => {
35529
+ ), xe(r, () => {
35520
35530
  s("update:value", r.value);
35521
35531
  });
35522
35532
  const u = Xi(
@@ -35684,7 +35694,7 @@ const zC = Oe({ name: "tabler-truck-loading", render: OC }), LC = { class: "flex
35684
35694
  emits: ["update:comment"],
35685
35695
  setup(t, { emit: e }) {
35686
35696
  const i = t, n = e, s = j(i.comment);
35687
- ke(
35697
+ xe(
35688
35698
  () => s.value,
35689
35699
  (a) => {
35690
35700
  s.value = a;
@@ -35925,7 +35935,7 @@ export {
35925
35935
  Eu as ScMosquitoConfiguratorPreview,
35926
35936
  KC as ScOrderCommonInfo,
35927
35937
  oc as ScOrderDeliveryLabel,
35928
- RS as ScOrderDetails,
35938
+ yS as ScOrderDetails,
35929
35939
  zS as ScOrderInfo,
35930
35940
  uS as ScOrderItemsList,
35931
35941
  Yf as ScOrderPayment,