@webx-ui/module-delivery 0.1.0 → 0.2.0

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.
@@ -1,7 +1,7 @@
1
- import { defineComponent as Z, useModel as se, ref as m, onMounted as Je, computed as M, openBlock as i, createBlock as x, unref as e, mergeModels as ie, watch as X, withCtx as d, createElementVNode as g, createElementBlock as V, Fragment as K, createCommentVNode as D, toDisplayString as s, renderList as le, createVNode as y, createTextVNode as P, withKeys as Ye, nextTick as Qe, isRef as Ae, createSlots as Ne } from "vue";
2
- import { WxSelect as pe, WxDialog as _e, WxSkeleton as xe, WxAlert as de, WxBadge as ce, WxButton as j, WxSpace as ue, toast as J, confirm as Xe, WxAutocomplete as ge, WxIcon as Ze, WxLink as et, WxText as ae, WxFormItem as E, WxInput as Y, WxDatePicker as tt, WxAction as at, useModal as Oe, WxRadioGroup as lt, WxInputNumber as we, WxSwitch as ot, createModal as De, WxCard as ke, WxEmpty as nt, WxTooltip as rt, WxPopconfirm as it } from "@webx-ui/core";
3
- import { useAdmin as ee, useTranslate as st, useErrorText as ye, useDefaultLocale as Ue, WxScreen as dt, useHistorySubject as ct, WxDate as ut } from "@webx-ui/module-admin";
4
- function Q(_) {
1
+ import { defineComponent as Z, useModel as se, ref as m, onMounted as Je, computed as F, openBlock as i, createBlock as x, unref as e, mergeModels as ie, watch as Q, withCtx as d, createElementVNode as g, createElementBlock as V, Fragment as K, createCommentVNode as D, toDisplayString as s, renderList as le, createVNode as y, createTextVNode as P, withKeys as Ye, nextTick as Qe, isRef as Ae, createSlots as Ne } from "vue";
2
+ import { WxSelect as pe, WxDialog as _e, WxSkeleton as xe, WxAlert as de, WxBadge as ce, WxButton as j, WxSpace as ue, toast as J, confirm as Xe, WxAutocomplete as ge, WxIcon as Ze, WxLink as et, WxText as ae, WxFormItem as E, WxInput as X, WxDatePicker as tt, WxAction as at, useModal as Oe, WxRadioGroup as lt, WxInputNumber as we, WxSwitch as ot, createModal as De, WxCard as ke, WxEmpty as nt, WxTooltip as rt, WxPopconfirm as it } from "@webx-ui/core";
3
+ import { useAdmin as ee, useTranslate as st, useErrorText as ye, useDefaultLocale as Ue, WxScreen as dt, WxCodeField as ct, useHistorySubject as ut, WxDate as ht } from "@webx-ui/module-admin";
4
+ function Y(_) {
5
5
  const a = new URLSearchParams();
6
6
  for (const [l, r] of Object.entries(_))
7
7
  r == null || r === "" || r === !1 || a.set(l, String(r === !0 ? 1 : r));
@@ -12,7 +12,7 @@ function oe(_) {
12
12
  return {
13
13
  methods: () => l.get(`${a}/methods`).then(r),
14
14
  method: (t) => l.get(`${a}/methods/${t}`).then(r),
15
- blank: (t) => l.get(`${a}/methods/blank${Q({ type: t })}`).then(r),
15
+ blank: (t) => l.get(`${a}/methods/blank${Y({ type: t })}`).then(r),
16
16
  createMethod: (t, o) => l.post(`${a}/methods`, { type: t, values: o }).then(r),
17
17
  saveMethod: (t, o) => l.put(`${a}/methods/${t}`, { values: o }).then(r),
18
18
  removeMethod: (t) => l.delete(`${a}/methods/${t}`).then(() => {
@@ -20,7 +20,7 @@ function oe(_) {
20
20
  orderMethods: (t) => l.put(`${a}/methods/order`, { ids: t }).then(() => {
21
21
  }),
22
22
  defineKind: (t, o) => l.post(`${a}/methods/point-kinds`, { kind: t, names: o }).then(r),
23
- points: (t) => l.get(`${a}/points${Q(t)}`),
23
+ points: (t) => l.get(`${a}/points${Y(t)}`),
24
24
  point: (t) => l.get(`${a}/points/${t}`).then(r),
25
25
  createPoint: (t) => l.post(`${a}/points`, { values: t }).then(r),
26
26
  savePoint: (t, o) => l.put(`${a}/points/${t}`, { values: o }).then(r),
@@ -38,7 +38,7 @@ function oe(_) {
38
38
  for (const [C, v] of Object.entries(n.values ?? {}))
39
39
  v != null && v !== "" && (f[`values[${C}]`] = String(v));
40
40
  return l.get(
41
- `${a}/carriers/${t}/options/${o}${Q({
41
+ `${a}/carriers/${t}/options/${o}${Y({
42
42
  ...f,
43
43
  q: n.q || void 0,
44
44
  fresh: n.fresh ? 1 : void 0
@@ -62,7 +62,7 @@ function oe(_) {
62
62
  }),
63
63
  lead: (t, o) => l.put(`${a}/geography/countries/${t}/leader`, { carrier: o }).then(() => {
64
64
  }),
65
- regions: (t) => l.get(`${a}/geography/regions${Q({ country: t })}`).then(r),
65
+ regions: (t) => l.get(`${a}/geography/regions${Y({ country: t })}`).then(r),
66
66
  createRegion: (t, o, n) => l.post(`${a}/geography/regions`, { country: t, names: o, code: n }).then(r),
67
67
  saveRegion: (t, o) => l.put(`${a}/geography/regions/${t}`, o).then(() => {
68
68
  }),
@@ -71,8 +71,8 @@ function oe(_) {
71
71
  }),
72
72
  removeRegion: (t) => l.delete(`${a}/geography/regions/${t}`).then(() => {
73
73
  }),
74
- localities: (t) => l.get(`${a}/geography/localities${Q(t)}`),
75
- suggest: (t, o) => l.get(`${a}/geography/localities/suggest${Q({ q: t, country: o })}`).then(r),
74
+ localities: (t) => l.get(`${a}/geography/localities${Y(t)}`),
75
+ suggest: (t, o) => l.get(`${a}/geography/localities/suggest${Y({ q: t, country: o })}`).then(r),
76
76
  brief: (t) => {
77
77
  const o = new URLSearchParams();
78
78
  for (const n of t) o.append("ids[]", String(n));
@@ -90,7 +90,7 @@ function oe(_) {
90
90
  setPopular: (t) => l.put(`${a}/popular`, { ids: t }).then(r),
91
91
  addPopular: (t) => l.post(`${a}/popular`, { locality_id: t }).then(r),
92
92
  removePopular: (t) => l.delete(`${a}/popular/${t}`).then(r),
93
- bindings: (t) => l.get(`${a}/bindings${Q(t)}`),
93
+ bindings: (t) => l.get(`${a}/bindings${Y(t)}`),
94
94
  batch: (t) => l.post(`${a}/bindings/batch`, t).then(r),
95
95
  /** The tab «Delivery» of an order's card (§14.2). */
96
96
  orderDelivery: (t) => l.get(`${a}/orders/${t}`).then(r),
@@ -100,24 +100,24 @@ function oe(_) {
100
100
  dry_run: !0
101
101
  }).then((n) => n.data.request),
102
102
  /** «Change delivery» (decision of 02.11.2026): the checkout's search, for the order's lines. */
103
- changeTowns: (t, o) => l.get(`${a}/orders/${t}/change/localities${Q({ q: o })}`).then(r),
104
- changeMethods: (t, o) => l.get(`${a}/orders/${t}/change/methods${Q({ locality: o })}`).then(r),
105
- changePoints: (t, o, n, f, C = 1) => l.get(`${a}/orders/${t}/change/points${Q({ locality: o, method: n, q: f, page: C })}`).then(r),
106
- changeStreets: (t, o, n, f) => l.get(`${a}/orders/${t}/change/streets${Q({ locality: o, method: n, q: f })}`).then(r),
103
+ changeTowns: (t, o) => l.get(`${a}/orders/${t}/change/localities${Y({ q: o })}`).then(r),
104
+ changeMethods: (t, o) => l.get(`${a}/orders/${t}/change/methods${Y({ locality: o })}`).then(r),
105
+ changePoints: (t, o, n, f, C = 1) => l.get(`${a}/orders/${t}/change/points${Y({ locality: o, method: n, q: f, page: C })}`).then(r),
106
+ changeStreets: (t, o, n, f) => l.get(`${a}/orders/${t}/change/streets${Y({ locality: o, method: n, q: f })}`).then(r),
107
107
  changeDelivery: (t, o) => l.post(`${a}/orders/${t}/change`, o).then(r),
108
108
  trackOrder: (t) => l.post(`${a}/orders/${t}/track`, {}).then(r),
109
109
  cancelShipment: (t) => l.post(`${a}/shipments/${t}/cancel`, {}).then(r),
110
110
  shipmentLabel: (t) => l.get(`${a}/shipments/${t}/label`).then(r)
111
111
  };
112
112
  }
113
- function ht(_) {
113
+ function vt(_) {
114
114
  return _?.body ?? null;
115
115
  }
116
- function vt(_) {
116
+ function pt(_) {
117
117
  const a = _?.status;
118
118
  return typeof a == "number" ? a : null;
119
119
  }
120
- const pt = /* @__PURE__ */ Z({
120
+ const yt = /* @__PURE__ */ Z({
121
121
  name: "WxDeliveryCountryField",
122
122
  __name: "CountryField",
123
123
  props: /* @__PURE__ */ ie({
@@ -138,7 +138,7 @@ const pt = /* @__PURE__ */ Z({
138
138
  const n = t.value.filter((f) => f.active);
139
139
  l.value === null && n.length === 1 && (l.value = n[0].code);
140
140
  });
141
- const o = M(
141
+ const o = F(
142
142
  () => t.value.map((n) => ({ value: n.code, label: `${n.name} (${n.code})` }))
143
143
  );
144
144
  return (n, f) => (i(), x(e(pe), {
@@ -149,7 +149,7 @@ const pt = /* @__PURE__ */ Z({
149
149
  disabled: a.disabled
150
150
  }, null, 8, ["modelValue", "options", "disabled"]));
151
151
  }
152
- }), yt = {
152
+ }), mt = {
153
153
  panel: {
154
154
  sections: {
155
155
  group: "Delivery",
@@ -565,19 +565,19 @@ const pt = /* @__PURE__ */ Z({
565
565
  }
566
566
  }
567
567
  }, We = /* @__PURE__ */ new WeakSet();
568
- function mt() {
568
+ function ft() {
569
569
  try {
570
570
  const { i18n: _ } = ee();
571
- We.has(_) || (_.defaults("webx-delivery", yt), We.add(_));
571
+ We.has(_) || (_.defaults("webx-delivery", mt), We.add(_));
572
572
  } catch {
573
573
  }
574
574
  }
575
575
  function ne() {
576
- mt();
576
+ ft();
577
577
  const _ = st("webx-delivery");
578
578
  return (a, l) => _(`panel.${a}`, l);
579
579
  }
580
- const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-locality__help" }, _t = { class: "wx-delivery-locality__similar" }, bt = { class: "wx-delivery-locality__label" }, wt = /* @__PURE__ */ Z({
580
+ const gt = { class: "wx-delivery-locality" }, _t = { class: "wx-delivery-locality__help" }, bt = { class: "wx-delivery-locality__similar" }, wt = { class: "wx-delivery-locality__label" }, kt = /* @__PURE__ */ Z({
581
581
  __name: "LocalityDialog",
582
582
  props: /* @__PURE__ */ ie({
583
583
  id: { default: null },
@@ -590,9 +590,9 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
590
590
  }),
591
591
  emits: /* @__PURE__ */ ie(["saved", "removed"], ["update:open"]),
592
592
  setup(_, { emit: a }) {
593
- const l = _, r = se(_, "open"), t = a, o = oe(ee()), n = ne(), f = ye(), C = Ue(), v = m({}), S = m(null), O = m({}), T = m([]), F = m(!1), B = m(!1), W = M(
593
+ const l = _, r = se(_, "open"), t = a, o = oe(ee()), n = ne(), f = ye(), C = Ue(), v = m({}), S = m(null), O = m({}), T = m([]), M = m(!1), B = m(!1), W = F(
594
594
  () => l.id === null ? n("locality.new") : S.value?.locality.label ?? n("locality.title")
595
- ), q = M(
595
+ ), q = F(
596
596
  () => l.short ? [...l.country ? ["country"] : [], "coordinates", "weight", "active"].map((L) => ({
597
597
  op: "remove",
598
598
  target: L
@@ -615,16 +615,16 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
615
615
  };
616
616
  return;
617
617
  }
618
- F.value = !0;
618
+ M.value = !0;
619
619
  try {
620
620
  S.value = await o.locality(l.id), v.value = S.value.values;
621
621
  } catch (L) {
622
622
  J.danger(f(L)), r.value = !1;
623
623
  } finally {
624
- F.value = !1;
624
+ M.value = !1;
625
625
  }
626
626
  }
627
- X(r, (L) => {
627
+ Q(r, (L) => {
628
628
  L && z();
629
629
  });
630
630
  async function u(L = !1) {
@@ -634,8 +634,8 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
634
634
  const I = l.id === null ? await o.createLocality(v.value, L) : await o.saveLocality(l.id, v.value, L);
635
635
  T.value = [], J.success(n(l.id === null ? "locality.created" : "locality.saved")), t("saved", I.locality), r.value = !1;
636
636
  } catch (I) {
637
- if (vt(I) === 409) {
638
- T.value = ht(I)?.similar ?? [];
637
+ if (pt(I) === 409) {
638
+ T.value = vt(I)?.similar ?? [];
639
639
  return;
640
640
  }
641
641
  const w = I.errors;
@@ -666,7 +666,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
666
666
  J.danger(f(R));
667
667
  }
668
668
  }
669
- const b = M(() => S.value?.locality.manual_fields ?? []);
669
+ const b = F(() => S.value?.locality.manual_fields ?? []);
670
670
  return (L, I) => (i(), x(e(_e), {
671
671
  open: r.value,
672
672
  "onUpdate:open": I[4] || (I[4] = (w) => r.value = w),
@@ -716,7 +716,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
716
716
  key: 2,
717
717
  type: "primary",
718
718
  loading: B.value,
719
- disabled: F.value,
719
+ disabled: M.value,
720
720
  onClick: I[3] || (I[3] = (w) => u())
721
721
  }, {
722
722
  default: d(() => [
@@ -729,8 +729,8 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
729
729
  })
730
730
  ]),
731
731
  default: d(() => [
732
- g("div", ft, [
733
- F.value ? (i(), x(e(xe), {
732
+ g("div", gt, [
733
+ M.value ? (i(), x(e(xe), {
734
734
  key: 0,
735
735
  rows: 4
736
736
  })) : (i(), V(K, { key: 1 }, [
@@ -746,12 +746,12 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
746
746
  "data-test": "duplicate"
747
747
  }, {
748
748
  default: d(() => [
749
- g("p", gt, s(e(n)("locality.duplicate-help")), 1),
750
- g("ul", _t, [
749
+ g("p", _t, s(e(n)("locality.duplicate-help")), 1),
750
+ g("ul", bt, [
751
751
  (i(!0), V(K, null, le(T.value, (w) => (i(), V("li", {
752
752
  key: w.id
753
753
  }, [
754
- g("span", bt, s(w.label), 1),
754
+ g("span", wt, s(w.label), 1),
755
755
  y(e(ce), { size: "sm" }, {
756
756
  default: d(() => [
757
757
  P(s(e(n)(`locality.sources.${w.source}`)), 1)
@@ -802,14 +802,14 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
802
802
  for (const [r, t] of a)
803
803
  l[r] = t;
804
804
  return l;
805
- }, kt = /* @__PURE__ */ re(wt, [["__scopeId", "data-v-169d3b1d"]]), xt = { class: "wx-delivery-locality-search" }, $t = {
805
+ }, xt = /* @__PURE__ */ re(kt, [["__scopeId", "data-v-169d3b1d"]]), $t = { class: "wx-delivery-locality-search" }, Vt = {
806
806
  key: 0,
807
807
  class: "wx-delivery-locality-search__add",
808
808
  "data-test": "add-locality"
809
- }, Vt = { class: "wx-delivery-locality-search__add-label" }, Ct = { class: "wx-delivery-locality-search__name" }, Tt = {
809
+ }, Ct = { class: "wx-delivery-locality-search__add-label" }, Tt = { class: "wx-delivery-locality-search__name" }, St = {
810
810
  key: 0,
811
811
  class: "wx-delivery-locality-search__label"
812
- }, St = /* @__PURE__ */ Z({
812
+ }, Nt = /* @__PURE__ */ Z({
813
813
  __name: "LocalitySearch",
814
814
  props: {
815
815
  country: { default: null },
@@ -820,10 +820,10 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
820
820
  },
821
821
  emits: ["pick"],
822
822
  setup(_, { emit: a }) {
823
- const l = _, r = a, t = oe(ee()), o = ne(), n = m(""), f = m([]), C = m(""), v = m(!1), S = m(!1), O = m(""), T = M(() => f.value.filter((h) => !l.exclude.includes(h.id))), F = M(
823
+ const l = _, r = a, t = oe(ee()), o = ne(), n = m(""), f = m([]), C = m(""), v = m(!1), S = m(!1), O = m(""), T = F(() => f.value.filter((h) => !l.exclude.includes(h.id))), M = F(
824
824
  () => l.creatable && !v.value && C.value !== "" && C.value === n.value.trim() && T.value.length === 0
825
- ), B = M(
826
- () => F.value ? [
825
+ ), B = F(
826
+ () => M.value ? [
827
827
  {
828
828
  // The typed text as the value: picking the line leaves the field as it was.
829
829
  value: n.value,
@@ -857,7 +857,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
857
857
  function u(h) {
858
858
  r("pick", h), n.value = "", C.value = "";
859
859
  }
860
- return (h, p) => (i(), V("div", xt, [
860
+ return (h, p) => (i(), V("div", $t, [
861
861
  y(e(ge), {
862
862
  modelValue: n.value,
863
863
  "onUpdate:modelValue": p[0] || (p[0] = (b) => n.value = b),
@@ -874,17 +874,17 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
874
874
  onSelect: z
875
875
  }, {
876
876
  option: d(({ option: b }) => [
877
- b.action ? (i(), V("span", $t, [
877
+ b.action ? (i(), V("span", Vt, [
878
878
  y(e(Ze), { name: "plus" }),
879
- g("span", Vt, s(b.label), 1)
879
+ g("span", Ct, s(b.label), 1)
880
880
  ])) : (i(), V(K, { key: 1 }, [
881
- g("span", Ct, s(b.value), 1),
882
- b.description ? (i(), V("span", Tt, s(b.description), 1)) : D("", !0)
881
+ g("span", Tt, s(b.value), 1),
882
+ b.description ? (i(), V("span", St, s(b.description), 1)) : D("", !0)
883
883
  ], 64))
884
884
  ]),
885
885
  _: 1
886
886
  }, 8, ["modelValue", "options", "loading", "empty-text", "placeholder", "aria-label", "disabled"]),
887
- y(kt, {
887
+ y(xt, {
888
888
  open: S.value,
889
889
  "onUpdate:open": p[1] || (p[1] = (b) => S.value = b),
890
890
  country: _.country,
@@ -894,10 +894,10 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
894
894
  }, null, 8, ["open", "country", "name"])
895
895
  ]));
896
896
  }
897
- }), Le = /* @__PURE__ */ re(St, [["__scopeId", "data-v-165fdb46"]]), Nt = { class: "wx-delivery-localities-field" }, Dt = {
897
+ }), Le = /* @__PURE__ */ re(Nt, [["__scopeId", "data-v-165fdb46"]]), Dt = { class: "wx-delivery-localities-field" }, Wt = {
898
898
  key: 0,
899
899
  class: "wx-delivery-localities-field__tags"
900
- }, Wt = /* @__PURE__ */ Z({
900
+ }, At = /* @__PURE__ */ Z({
901
901
  name: "WxDeliveryLocalitiesField",
902
902
  __name: "LocalitiesField",
903
903
  props: /* @__PURE__ */ ie({
@@ -908,15 +908,15 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
908
908
  }),
909
909
  emits: ["update:modelValue"],
910
910
  setup(_) {
911
- const a = _, l = se(_, "modelValue"), r = oe(ee()), t = ne(), o = m(/* @__PURE__ */ new Map()), n = M(() => Array.isArray(l.value) ? l.value : []);
912
- X(
911
+ const a = _, l = se(_, "modelValue"), r = oe(ee()), t = ne(), o = m(/* @__PURE__ */ new Map()), n = F(() => Array.isArray(l.value) ? l.value : []);
912
+ Q(
913
913
  n,
914
914
  async (v) => {
915
915
  const S = v.filter((O) => !o.value.has(O));
916
916
  if (S.length !== 0)
917
917
  try {
918
918
  const O = await r.brief(S), T = new Map(o.value);
919
- for (const F of O) T.set(F.id, F);
919
+ for (const M of O) T.set(M.id, M);
920
920
  o.value = T;
921
921
  } catch {
922
922
  }
@@ -929,8 +929,8 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
929
929
  function C(v) {
930
930
  l.value = n.value.filter((S) => S !== v);
931
931
  }
932
- return (v, S) => (i(), V("div", Nt, [
933
- n.value.length > 0 ? (i(), V("div", Dt, [
932
+ return (v, S) => (i(), V("div", Dt, [
933
+ n.value.length > 0 ? (i(), V("div", Wt, [
934
934
  (i(!0), V(K, null, le(n.value, (O) => (i(), x(e(ce), {
935
935
  key: O,
936
936
  closable: !a.disabled,
@@ -952,13 +952,13 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
952
952
  }, null, 8, ["exclude", "placeholder"]))
953
953
  ]));
954
954
  }
955
- }), At = /* @__PURE__ */ re(Wt, [["__scopeId", "data-v-14fcba6f"]]), Ot = {
955
+ }), Ot = /* @__PURE__ */ re(At, [["__scopeId", "data-v-14fcba6f"]]), Ut = {
956
956
  key: 0,
957
957
  class: "wx-delivery-locality-field__chosen"
958
- }, Ut = { class: "wx-delivery-locality-field__label" }, Lt = {
958
+ }, Lt = { class: "wx-delivery-locality-field__label" }, Pt = {
959
959
  key: 1,
960
960
  class: "wx-delivery-locality-field__search"
961
- }, Pt = /* @__PURE__ */ Z({
961
+ }, It = /* @__PURE__ */ Z({
962
962
  name: "WxDeliveryLocalityField",
963
963
  __name: "LocalityField",
964
964
  props: /* @__PURE__ */ ie({
@@ -970,7 +970,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
970
970
  emits: ["update:modelValue"],
971
971
  setup(_) {
972
972
  const a = _, l = se(_, "modelValue"), r = oe(ee()), t = ne(), o = m(null), n = m(!1);
973
- X(
973
+ Q(
974
974
  l,
975
975
  async (T) => {
976
976
  if (T == null) {
@@ -999,14 +999,14 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
999
999
  function O(T) {
1000
1000
  !n.value || o.value === null || (T.stopPropagation(), S());
1001
1001
  }
1002
- return (T, F) => (i(), V("div", {
1002
+ return (T, M) => (i(), V("div", {
1003
1003
  ref_key: "root",
1004
1004
  ref: f,
1005
1005
  class: "wx-delivery-locality-field",
1006
1006
  onKeydown: Ye(O, ["esc"])
1007
1007
  }, [
1008
- o.value && !n.value ? (i(), V("div", Ot, [
1009
- g("span", Ut, s(o.value.label), 1),
1008
+ o.value && !n.value ? (i(), V("div", Ut, [
1009
+ g("span", Lt, s(o.value.label), 1),
1010
1010
  o.value.active ? D("", !0) : (i(), x(e(ce), {
1011
1011
  key: 0,
1012
1012
  size: "sm",
@@ -1030,7 +1030,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1030
1030
  ]),
1031
1031
  _: 1
1032
1032
  }))
1033
- ])) : (i(), V("div", Lt, [
1033
+ ])) : (i(), V("div", Pt, [
1034
1034
  y(Le, {
1035
1035
  creatable: "",
1036
1036
  disabled: a.disabled,
@@ -1051,7 +1051,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1051
1051
  ]))
1052
1052
  ], 544));
1053
1053
  }
1054
- }), It = /* @__PURE__ */ re(Pt, [["__scopeId", "data-v-66cad5c9"]]), zt = { class: "wx-delivery-point-kind" }, Rt = { class: "wx-delivery-point-kind__form" }, Mt = /* @__PURE__ */ Z({
1054
+ }), zt = /* @__PURE__ */ re(It, [["__scopeId", "data-v-66cad5c9"]]), Rt = { class: "wx-delivery-point-kind" }, Ft = { class: "wx-delivery-point-kind__form" }, Mt = /* @__PURE__ */ Z({
1055
1055
  name: "WxDeliveryPointKindField",
1056
1056
  __name: "PointKindField",
1057
1057
  props: /* @__PURE__ */ ie({
@@ -1064,23 +1064,23 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1064
1064
  }),
1065
1065
  emits: ["update:modelValue"],
1066
1066
  setup(_) {
1067
- const a = _, l = se(_, "modelValue"), r = oe(ee()), t = ne(), o = ye(), n = Ue(), f = m(null), C = M(() => f.value ?? a.options), v = m(!1), S = m(""), O = m(""), T = m({}), F = m(!1);
1067
+ const a = _, l = se(_, "modelValue"), r = oe(ee()), t = ne(), o = ye(), n = Ue(), f = m(null), C = F(() => f.value ?? a.options), v = m(!1), S = m(""), O = m(""), T = m({}), M = m(!1);
1068
1068
  function B(q) {
1069
1069
  q?.preventDefault(), S.value = "", O.value = "", T.value = {}, v.value = !0;
1070
1070
  }
1071
1071
  async function W() {
1072
- if (!F.value) {
1073
- F.value = !0, T.value = {};
1072
+ if (!M.value) {
1073
+ M.value = !0, T.value = {};
1074
1074
  try {
1075
1075
  f.value = await r.defineKind(S.value.trim(), { [n.value]: O.value.trim() }), l.value = S.value.trim(), J.success(t("method.kind-created")), v.value = !1;
1076
1076
  } catch (q) {
1077
1077
  T.value = q.errors ?? {}, Object.keys(T.value).length === 0 && J.danger(o(q));
1078
1078
  } finally {
1079
- F.value = !1;
1079
+ M.value = !1;
1080
1080
  }
1081
1081
  }
1082
1082
  }
1083
- return (q, z) => (i(), V("div", zt, [
1083
+ return (q, z) => (i(), V("div", Rt, [
1084
1084
  y(e(pe), {
1085
1085
  modelValue: l.value,
1086
1086
  "onUpdate:modelValue": z[0] || (z[0] = (u) => l.value = u),
@@ -1120,7 +1120,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1120
1120
  }),
1121
1121
  y(e(j), {
1122
1122
  type: "primary",
1123
- loading: F.value,
1123
+ loading: M.value,
1124
1124
  disabled: S.value.trim() === "" || O.value.trim() === "",
1125
1125
  onClick: W
1126
1126
  }, {
@@ -1134,7 +1134,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1134
1134
  })
1135
1135
  ]),
1136
1136
  default: d(() => [
1137
- g("div", Rt, [
1137
+ g("div", Ft, [
1138
1138
  y(e(ae), {
1139
1139
  tone: "muted",
1140
1140
  size: "sm"
@@ -1149,7 +1149,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1149
1149
  error: T.value.names?.[0]
1150
1150
  }, {
1151
1151
  default: d(() => [
1152
- y(e(Y), {
1152
+ y(e(X), {
1153
1153
  modelValue: O.value,
1154
1154
  "onUpdate:modelValue": z[1] || (z[1] = (u) => O.value = u),
1155
1155
  maxlength: 60,
@@ -1164,10 +1164,11 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1164
1164
  error: T.value.kind?.[0]
1165
1165
  }, {
1166
1166
  default: d(() => [
1167
- y(e(Y), {
1167
+ y(e(ct), {
1168
1168
  modelValue: S.value,
1169
1169
  "onUpdate:modelValue": z[2] || (z[2] = (u) => S.value = u),
1170
- maxlength: 32
1170
+ maxlength: 32,
1171
+ placeholder: "parcel-shop"
1171
1172
  }, null, 8, ["modelValue"])
1172
1173
  ]),
1173
1174
  _: 1
@@ -1178,7 +1179,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1178
1179
  }, 8, ["open", "title"])
1179
1180
  ]));
1180
1181
  }
1181
- }), Ft = /* @__PURE__ */ re(Mt, [["__scopeId", "data-v-e4f84750"]]), qt = /* @__PURE__ */ Z({
1182
+ }), qt = /* @__PURE__ */ re(Mt, [["__scopeId", "data-v-4275dde4"]]), Bt = /* @__PURE__ */ Z({
1182
1183
  name: "WxDeliveryRegionField",
1183
1184
  __name: "RegionField",
1184
1185
  props: /* @__PURE__ */ ie({
@@ -1191,11 +1192,11 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1191
1192
  }),
1192
1193
  emits: ["update:modelValue"],
1193
1194
  setup(_) {
1194
- const a = _, l = se(_, "modelValue"), r = oe(ee()), t = ne(), o = m([]), n = M(() => {
1195
+ const a = _, l = se(_, "modelValue"), r = oe(ee()), t = ne(), o = m([]), n = F(() => {
1195
1196
  const C = a.context?.model[a.countryField];
1196
1197
  return typeof C == "string" ? C : "";
1197
1198
  });
1198
- X(
1199
+ Q(
1199
1200
  n,
1200
1201
  async (C, v) => {
1201
1202
  if (C === "") {
@@ -1211,7 +1212,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1211
1212
  },
1212
1213
  { immediate: !0 }
1213
1214
  );
1214
- const f = M(() => o.value.map((C) => ({ value: C.id, label: C.name })));
1215
+ const f = F(() => o.value.map((C) => ({ value: C.id, label: C.name })));
1215
1216
  return (C, v) => (i(), x(e(pe), {
1216
1217
  modelValue: l.value,
1217
1218
  "onUpdate:modelValue": v[0] || (v[0] = (S) => l.value = S),
@@ -1222,7 +1223,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1222
1223
  disabled: a.disabled || n.value === ""
1223
1224
  }, null, 8, ["modelValue", "options", "placeholder", "disabled"]));
1224
1225
  }
1225
- }), Bt = { class: "wx-delivery-schedule" }, jt = { class: "wx-delivery-schedule__name" }, Et = { class: "wx-delivery-schedule__exceptions" }, Kt = { class: "wx-delivery-schedule__title" }, Ht = /* @__PURE__ */ Z({
1226
+ }), jt = { class: "wx-delivery-schedule" }, Et = { class: "wx-delivery-schedule__name" }, Kt = { class: "wx-delivery-schedule__exceptions" }, Ht = { class: "wx-delivery-schedule__title" }, Gt = /* @__PURE__ */ Z({
1226
1227
  name: "WxDeliveryScheduleField",
1227
1228
  __name: "ScheduleField",
1228
1229
  props: /* @__PURE__ */ ie({
@@ -1233,7 +1234,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1233
1234
  }),
1234
1235
  emits: ["update:modelValue"],
1235
1236
  setup(_) {
1236
- const a = _, l = se(_, "modelValue"), r = ne(), t = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"], o = M(() => [
1237
+ const a = _, l = se(_, "modelValue"), r = ne(), t = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"], o = F(() => [
1237
1238
  { value: "unknown", label: r("schedule.not-said") },
1238
1239
  { value: "closed", label: r("schedule.closed") },
1239
1240
  { value: "hours", label: r("schedule.hours") },
@@ -1256,7 +1257,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1256
1257
  return u == null ? "unknown" : u.length === 0 ? "closed" : u.length === 1 && u[0][0] === "00:00" && u[0][1] === "24:00" ? "around" : "hours";
1257
1258
  }
1258
1259
  const v = m({}), S = m({});
1259
- X(
1260
+ Q(
1260
1261
  l,
1261
1262
  (u) => {
1262
1263
  for (const h of t) {
@@ -1283,12 +1284,12 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1283
1284
  }
1284
1285
  });
1285
1286
  }
1286
- function F(u, h) {
1287
+ function M(u, h) {
1287
1288
  v.value[u] = h;
1288
1289
  const p = f(h);
1289
1290
  S.value[u] = p === null || p.length === 0, S.value[u] || O((b) => (b.week ??= {})[u] = p);
1290
1291
  }
1291
- const B = M(() => l.value?.exceptions ?? []);
1292
+ const B = F(() => l.value?.exceptions ?? []);
1292
1293
  function W() {
1293
1294
  O((u) => {
1294
1295
  u.exceptions = [
@@ -1308,12 +1309,12 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1308
1309
  h.exceptions = (h.exceptions ?? []).filter((p, b) => b !== u);
1309
1310
  });
1310
1311
  }
1311
- return (u, h) => (i(), V("div", Bt, [
1312
+ return (u, h) => (i(), V("div", jt, [
1312
1313
  (i(), V(K, null, le(t, (p) => g("div", {
1313
1314
  key: p,
1314
1315
  class: "wx-delivery-schedule__day"
1315
1316
  }, [
1316
- g("span", jt, s(e(r)(`schedule.days.${p}`)), 1),
1317
+ g("span", Et, s(e(r)(`schedule.days.${p}`)), 1),
1317
1318
  y(e(pe), {
1318
1319
  class: "wx-delivery-schedule__mode",
1319
1320
  size: "sm",
@@ -1323,7 +1324,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1323
1324
  disabled: a.disabled,
1324
1325
  "onUpdate:modelValue": (b) => T(p, b)
1325
1326
  }, null, 8, ["model-value", "options", "aria-label", "disabled", "onUpdate:modelValue"]),
1326
- C(l.value?.week?.[p]) === "hours" ? (i(), x(e(Y), {
1327
+ C(l.value?.week?.[p]) === "hours" ? (i(), x(e(X), {
1327
1328
  key: 0,
1328
1329
  class: "wx-delivery-schedule__hours",
1329
1330
  size: "sm",
@@ -1332,11 +1333,11 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1332
1333
  "aria-label": e(r)("schedule.hours"),
1333
1334
  placeholder: "09:00–18:00",
1334
1335
  disabled: a.disabled,
1335
- "onUpdate:modelValue": (b) => F(p, String(b ?? ""))
1336
+ "onUpdate:modelValue": (b) => M(p, String(b ?? ""))
1336
1337
  }, null, 8, ["model-value", "status", "aria-label", "disabled", "onUpdate:modelValue"])) : D("", !0)
1337
1338
  ])), 64)),
1338
- g("div", Et, [
1339
- g("span", Kt, s(e(r)("schedule.exceptions")), 1),
1339
+ g("div", Kt, [
1340
+ g("span", Ht, s(e(r)("schedule.exceptions")), 1),
1340
1341
  (i(!0), V(K, null, le(B.value, (p, b) => (i(), V("div", {
1341
1342
  key: b,
1342
1343
  class: "wx-delivery-schedule__day"
@@ -1349,7 +1350,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1349
1350
  disabled: a.disabled,
1350
1351
  "onUpdate:modelValue": (L) => q(b, { date: String(L ?? "") })
1351
1352
  }, null, 8, ["model-value", "aria-label", "disabled", "onUpdate:modelValue"]),
1352
- y(e(Y), {
1353
+ y(e(X), {
1353
1354
  class: "wx-delivery-schedule__hours",
1354
1355
  size: "sm",
1355
1356
  "model-value": p.hours.length === 0 ? "" : n(p.hours),
@@ -1382,21 +1383,21 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1382
1383
  ])
1383
1384
  ]));
1384
1385
  }
1385
- }), Gt = /* @__PURE__ */ re(Ht, [["__scopeId", "data-v-bd98b4bb"]]), Jt = { class: "wx-delivery-change" }, Yt = { class: "wx-delivery-change__town" }, Qt = {
1386
+ }), Jt = /* @__PURE__ */ re(Gt, [["__scopeId", "data-v-bd98b4bb"]]), Yt = { class: "wx-delivery-change" }, Qt = { class: "wx-delivery-change__town" }, Xt = {
1386
1387
  key: 0,
1387
1388
  class: "wx-delivery-change__chosen",
1388
1389
  "data-test": "change-town"
1389
- }, Xt = {
1390
+ }, Zt = {
1390
1391
  key: 2,
1391
1392
  class: "wx-delivery-change__methods"
1392
- }, Zt = { class: "wx-delivery-change__pair" }, ea = {
1393
+ }, ea = { class: "wx-delivery-change__pair" }, ta = {
1393
1394
  key: 4,
1394
1395
  class: "wx-delivery-change__outcome",
1395
1396
  "data-test": "change-outcome"
1396
- }, ta = { class: "wx-delivery-change__row" }, aa = { class: "wx-delivery-change__label" }, la = { class: "wx-delivery-change__row" }, oa = { class: "wx-delivery-change__label" }, na = {
1397
+ }, aa = { class: "wx-delivery-change__row" }, la = { class: "wx-delivery-change__label" }, oa = { class: "wx-delivery-change__row" }, na = { class: "wx-delivery-change__label" }, ra = {
1397
1398
  key: 0,
1398
1399
  class: "wx-delivery-change__strong"
1399
- }, ra = { key: 1 }, ia = /* @__PURE__ */ Z({
1400
+ }, ia = { key: 1 }, sa = /* @__PURE__ */ Z({
1400
1401
  name: "WxDeliveryOrderChangeDialog",
1401
1402
  __name: "OrderChangeDialog",
1402
1403
  props: {
@@ -1404,21 +1405,21 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1404
1405
  start: {}
1405
1406
  },
1406
1407
  setup(_) {
1407
- const a = _, { open: l, resolve: r } = Oe(), t = oe(ee()), o = ne(), n = ye(), f = m(a.start.locality), C = m(""), v = m([]), S = m([]), O = m(!1), T = m([]), F = m(!1), B = m(null), W = m(""), q = m([]), z = m(!1), u = m(null), h = m(a.start.address?.street ?? ""), p = m([]), b = m(a.start.address?.street_id ?? null), L = m(a.start.address?.house ?? ""), I = m(a.start.address?.apartment ?? ""), w = m(a.start.address?.note ?? ""), R = m(""), k = m({}), U = m(null), N = m(!1), H = m(!1), G = M(() => T.value.find((c) => c.id === B.value) ?? null), he = M(() => G.value?.carrier === "store"), Pe = M(
1408
+ const a = _, { open: l, resolve: r } = Oe(), t = oe(ee()), o = ne(), n = ye(), f = m(a.start.locality), C = m(""), v = m([]), S = m([]), O = m(!1), T = m([]), M = m(!1), B = m(null), W = m(""), q = m([]), z = m(!1), u = m(null), h = m(a.start.address?.street ?? ""), p = m([]), b = m(a.start.address?.street_id ?? null), L = m(a.start.address?.house ?? ""), I = m(a.start.address?.apartment ?? ""), w = m(a.start.address?.note ?? ""), R = m(""), k = m({}), U = m(null), N = m(!1), H = m(!1), G = F(() => T.value.find((c) => c.id === B.value) ?? null), he = F(() => G.value?.carrier === "store"), Pe = F(
1408
1409
  () => T.value.map((c) => ({
1409
1410
  value: c.id,
1410
1411
  label: c.price ? `${c.title} · ${c.price.text}` : c.title,
1411
1412
  disabled: c.disabled
1412
1413
  }))
1413
- ), te = (c) => k.value[c]?.[0], Ie = M(
1414
+ ), te = (c) => k.value[c]?.[0], Ie = F(
1414
1415
  () => v.value.map((c) => ({ value: c.name, description: c.label, id: c.id }))
1415
- ), ze = M(
1416
+ ), ze = F(
1416
1417
  () => q.value.map((c) => ({
1417
1418
  value: c.label,
1418
1419
  description: c.hint ?? void 0,
1419
1420
  id: Number(c.value)
1420
1421
  }))
1421
- ), Re = M(
1422
+ ), Re = F(
1422
1423
  () => p.value.map((c) => ({ value: c.label, id: c.value }))
1423
1424
  );
1424
1425
  let me = 0;
@@ -1438,13 +1439,13 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1438
1439
  function Ve(c) {
1439
1440
  f.value = { id: c.id, label: c.label }, C.value = "", v.value = [];
1440
1441
  }
1441
- function Me(c) {
1442
+ function Fe(c) {
1442
1443
  const $ = v.value.find((A) => A.id === c.id);
1443
1444
  $ && Ve($);
1444
1445
  }
1445
- async function Fe() {
1446
+ async function Me() {
1446
1447
  if (f.value) {
1447
- F.value = !0, U.value = null;
1448
+ M.value = !0, U.value = null;
1448
1449
  try {
1449
1450
  const c = await t.changeMethods(a.orderId, f.value.id);
1450
1451
  T.value = c.methods;
@@ -1453,7 +1454,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1453
1454
  } catch (c) {
1454
1455
  T.value = [], k.value = { method: [n(c)] };
1455
1456
  } finally {
1456
- F.value = !1;
1457
+ M.value = !1;
1457
1458
  }
1458
1459
  }
1459
1460
  }
@@ -1489,7 +1490,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1489
1490
  function Ee(c) {
1490
1491
  he.value || (b.value = null), h.value = c;
1491
1492
  }
1492
- const be = M(() => {
1493
+ const be = F(() => {
1493
1494
  if (!f.value || !G.value) return null;
1494
1495
  const c = { locality: f.value.id, method: G.value.id };
1495
1496
  return G.value.asks === "point" && (c.point = u.value?.id ?? null), G.value.asks === "address" && (c.address = {
@@ -1533,20 +1534,20 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1533
1534
  }
1534
1535
  }
1535
1536
  }
1536
- X(
1537
+ Q(
1537
1538
  f,
1538
1539
  (c, $) => {
1539
- c?.id !== $?.id && (u.value = null, W.value = "", q.value = [], p.value = []), Fe();
1540
+ c?.id !== $?.id && (u.value = null, W.value = "", q.value = [], p.value = []), Me();
1540
1541
  },
1541
1542
  { immediate: !0 }
1542
- ), X(B, (c, $) => {
1543
+ ), Q(B, (c, $) => {
1543
1544
  U.value = null, $ !== null && c !== $ && (u.value = null, W.value = "", q.value = [], p.value = [], he.value || (b.value = null));
1544
- }), X(
1545
+ }), Q(
1545
1546
  () => [G.value?.id, G.value?.asks, f.value?.id],
1546
1547
  ([, c]) => {
1547
1548
  c === "point" && Ce("");
1548
1549
  }
1549
- ), X([u, h, L, I], () => U.value = null), $e(""), X(T, (c) => {
1550
+ ), Q([u, h, L, I], () => U.value = null), $e(""), Q(T, (c) => {
1550
1551
  if (u.value || a.start.point === null) return;
1551
1552
  const $ = c.find((A) => A.key === a.start.method);
1552
1553
  !$ || $.id !== B.value || f.value?.id !== a.start.locality?.id || (async () => {
@@ -1555,7 +1556,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1555
1556
  })().catch(() => {
1556
1557
  });
1557
1558
  });
1558
- const Se = M({
1559
+ const Se = F({
1559
1560
  get: () => B.value,
1560
1561
  set: (c) => B.value = c === null ? null : Number(c)
1561
1562
  });
@@ -1600,7 +1601,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1600
1601
  }, 8, ["disabled", "loading"]))
1601
1602
  ]),
1602
1603
  default: d(() => [
1603
- g("div", Jt, [
1604
+ g("div", Yt, [
1604
1605
  y(e(ae), {
1605
1606
  tone: "muted",
1606
1607
  size: "sm"
@@ -1621,8 +1622,8 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1621
1622
  required: ""
1622
1623
  }, {
1623
1624
  default: d(() => [
1624
- g("div", Yt, [
1625
- f.value ? (i(), V("span", Qt, s(f.value.label), 1)) : D("", !0),
1625
+ g("div", Qt, [
1626
+ f.value ? (i(), V("span", Xt, s(f.value.label), 1)) : D("", !0),
1626
1627
  y(e(ge), {
1627
1628
  modelValue: C.value,
1628
1629
  "onUpdate:modelValue": $[0] || ($[0] = (A) => C.value = A),
@@ -1635,7 +1636,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1635
1636
  "aria-label": e(o)("order.change-town-search"),
1636
1637
  "data-test": "change-town-search",
1637
1638
  onSearch: $e,
1638
- onSelect: Me
1639
+ onSelect: Fe
1639
1640
  }, null, 8, ["modelValue", "options", "loading", "empty-text", "placeholder", "aria-label"]),
1640
1641
  S.value.length > 0 ? (i(), x(e(ue), {
1641
1642
  key: 1,
@@ -1670,7 +1671,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1670
1671
  required: ""
1671
1672
  }, {
1672
1673
  default: d(() => [
1673
- F.value ? (i(), x(e(xe), {
1674
+ M.value ? (i(), x(e(xe), {
1674
1675
  key: 0,
1675
1676
  rows: 2
1676
1677
  })) : T.value.length === 0 ? (i(), x(e(ae), {
@@ -1681,7 +1682,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1681
1682
  P(s(e(o)("order.change-no-methods")), 1)
1682
1683
  ]),
1683
1684
  _: 1
1684
- })) : (i(), V("div", Xt, [
1685
+ })) : (i(), V("div", Zt, [
1685
1686
  y(e(lt), {
1686
1687
  modelValue: Se.value,
1687
1688
  "onUpdate:modelValue": $[1] || ($[1] = (A) => Se.value = A),
@@ -1749,14 +1750,14 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1749
1750
  ]),
1750
1751
  _: 1
1751
1752
  }, 8, ["label", "help", "error"]),
1752
- g("div", Zt, [
1753
+ g("div", ea, [
1753
1754
  y(e(E), {
1754
1755
  label: e(o)("order.change-house"),
1755
1756
  error: te("address.house"),
1756
1757
  required: ""
1757
1758
  }, {
1758
1759
  default: d(() => [
1759
- y(e(Y), {
1760
+ y(e(X), {
1760
1761
  modelValue: L.value,
1761
1762
  "onUpdate:modelValue": $[3] || ($[3] = (A) => L.value = A),
1762
1763
  maxlength: 32,
@@ -1770,7 +1771,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1770
1771
  error: te("address.apartment")
1771
1772
  }, {
1772
1773
  default: d(() => [
1773
- y(e(Y), {
1774
+ y(e(X), {
1774
1775
  modelValue: I.value,
1775
1776
  "onUpdate:modelValue": $[4] || ($[4] = (A) => I.value = A),
1776
1777
  maxlength: 32
@@ -1784,7 +1785,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1784
1785
  error: te("address.note")
1785
1786
  }, {
1786
1787
  default: d(() => [
1787
- y(e(Y), {
1788
+ y(e(X), {
1788
1789
  modelValue: w.value,
1789
1790
  "onUpdate:modelValue": $[5] || ($[5] = (A) => w.value = A),
1790
1791
  maxlength: 500
@@ -1798,7 +1799,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1798
1799
  help: e(o)("order.change-reason-help")
1799
1800
  }, {
1800
1801
  default: d(() => [
1801
- y(e(Y), {
1802
+ y(e(X), {
1802
1803
  modelValue: R.value,
1803
1804
  "onUpdate:modelValue": $[6] || ($[6] = (A) => R.value = A),
1804
1805
  maxlength: 300,
@@ -1807,14 +1808,14 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1807
1808
  ]),
1808
1809
  _: 1
1809
1810
  }, 8, ["label", "help"]),
1810
- U.value ? (i(), V("div", ea, [
1811
- g("div", ta, [
1812
- g("span", aa, s(e(o)("order.cost")), 1),
1811
+ U.value ? (i(), V("div", ta, [
1812
+ g("div", aa, [
1813
+ g("span", la, s(e(o)("order.cost")), 1),
1813
1814
  g("span", null, s(e(o)("order.change-from-to", { from: U.value.amount_from, to: U.value.amount_to })), 1)
1814
1815
  ]),
1815
- g("div", la, [
1816
- g("span", oa, s(e(o)("order.change-total")), 1),
1817
- U.value.total_changes ? (i(), V("span", na, s(e(o)("order.change-from-to", { from: U.value.total_from, to: U.value.total_to })), 1)) : (i(), V("span", ra, s(e(o)("order.change-same", { amount: U.value.total_to })), 1))
1816
+ g("div", oa, [
1817
+ g("span", na, s(e(o)("order.change-total")), 1),
1818
+ U.value.total_changes ? (i(), V("span", ra, s(e(o)("order.change-from-to", { from: U.value.total_from, to: U.value.total_to })), 1)) : (i(), V("span", ia, s(e(o)("order.change-same", { amount: U.value.total_to })), 1))
1818
1819
  ]),
1819
1820
  U.value.balance ? (i(), x(e(de), {
1820
1821
  key: 0,
@@ -1829,14 +1830,14 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1829
1830
  _: 1
1830
1831
  }, 8, ["open", "title"]));
1831
1832
  }
1832
- }), sa = /* @__PURE__ */ re(ia, [["__scopeId", "data-v-ececa6e7"]]), da = { class: "wx-delivery-waybill" }, ca = { class: "wx-delivery-waybill__pair" }, ua = { class: "wx-delivery-waybill__pair" }, ha = {
1833
+ }), da = /* @__PURE__ */ re(sa, [["__scopeId", "data-v-ececa6e7"]]), ca = { class: "wx-delivery-waybill" }, ua = { class: "wx-delivery-waybill__pair" }, ha = { class: "wx-delivery-waybill__pair" }, va = {
1833
1834
  key: 2,
1834
1835
  class: "wx-delivery-waybill__fact",
1835
1836
  "data-test": "waybill-extra"
1836
- }, va = { class: "wx-delivery-waybill__label" }, pa = { class: "wx-delivery-waybill__pair" }, ya = { class: "wx-delivery-waybill__fact" }, ma = { class: "wx-delivery-waybill__label" }, fa = {
1837
+ }, pa = { class: "wx-delivery-waybill__label" }, ya = { class: "wx-delivery-waybill__pair" }, ma = { class: "wx-delivery-waybill__fact" }, fa = { class: "wx-delivery-waybill__label" }, ga = {
1837
1838
  key: 3,
1838
1839
  class: "wx-delivery-waybill__fact"
1839
- }, ga = { class: "wx-delivery-waybill__label" }, _a = { class: "wx-delivery-waybill__lines" }, ba = { class: "wx-delivery-waybill__line-name" }, wa = { class: "wx-delivery-waybill__line-qty" }, ka = { class: "wx-delivery-waybill__line-price" }, xa = /* @__PURE__ */ Z({
1840
+ }, _a = { class: "wx-delivery-waybill__label" }, ba = { class: "wx-delivery-waybill__lines" }, wa = { class: "wx-delivery-waybill__line-name" }, ka = { class: "wx-delivery-waybill__line-qty" }, xa = { class: "wx-delivery-waybill__line-price" }, $a = /* @__PURE__ */ Z({
1840
1841
  name: "WxDeliveryWaybillDialog",
1841
1842
  __name: "WaybillDialog",
1842
1843
  props: {
@@ -1845,7 +1846,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1845
1846
  exponent: {}
1846
1847
  },
1847
1848
  setup(_) {
1848
- const a = _, { open: l, resolve: r } = Oe(), t = ee(), o = oe(t), n = ne(), f = ye(), C = 10 ** a.exponent, v = (k) => k === null ? null : k / C, S = (k) => k == null ? null : Math.round(k * C), O = m(a.draft.recipient.first_name), T = m(a.draft.recipient.last_name), F = m(a.draft.recipient.phone ?? ""), B = m(v(a.draft.declared_value)), W = m(v(a.draft.cod)), q = m({}), z = M(() => a.draft.form?.fields ?? []), u = M(() => a.draft.form?.cod ?? !0), h = m(
1849
+ const a = _, { open: l, resolve: r } = Oe(), t = ee(), o = oe(t), n = ne(), f = ye(), C = 10 ** a.exponent, v = (k) => k === null ? null : k / C, S = (k) => k == null ? null : Math.round(k * C), O = m(a.draft.recipient.first_name), T = m(a.draft.recipient.last_name), M = m(a.draft.recipient.phone ?? ""), B = m(v(a.draft.declared_value)), W = m(v(a.draft.cod)), q = m({}), z = F(() => a.draft.form?.fields ?? []), u = F(() => a.draft.form?.cod ?? !0), h = m(
1849
1850
  Object.fromEntries(
1850
1851
  z.value.map((k) => [
1851
1852
  k.name,
@@ -1861,7 +1862,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1861
1862
  currency: a.draft.currency,
1862
1863
  minimumFractionDigits: a.exponent,
1863
1864
  maximumFractionDigits: a.exponent
1864
- }).format(k / C), I = M(
1865
+ }).format(k / C), I = F(
1865
1866
  () => a.draft.payer === "sender" ? n("order.payer-sender") : n("order.payer-recipient")
1866
1867
  ), w = (k) => q.value[k]?.[0];
1867
1868
  async function R() {
@@ -1872,7 +1873,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1872
1873
  await o.createWaybill(a.orderId, {
1873
1874
  recipient_first_name: O.value.trim(),
1874
1875
  recipient_last_name: T.value.trim(),
1875
- recipient_phone: F.value.trim() || null,
1876
+ recipient_phone: M.value.trim() || null,
1876
1877
  declared_value: S(B.value),
1877
1878
  ...u.value ? { cod: S(W.value) } : {},
1878
1879
  ...z.value.length > 0 ? { extra: h.value } : {}
@@ -1920,7 +1921,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1920
1921
  })
1921
1922
  ]),
1922
1923
  default: d(() => [
1923
- g("div", da, [
1924
+ g("div", ca, [
1924
1925
  y(e(ae), {
1925
1926
  tone: "muted",
1926
1927
  size: "sm"
@@ -1935,14 +1936,14 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1935
1936
  type: "danger",
1936
1937
  description: w("waybill")
1937
1938
  }, null, 8, ["description"])) : D("", !0),
1938
- g("div", ca, [
1939
+ g("div", ua, [
1939
1940
  y(e(E), {
1940
1941
  label: e(n)("order.recipient-first-name"),
1941
1942
  error: w("recipient_first_name"),
1942
1943
  required: ""
1943
1944
  }, {
1944
1945
  default: d(() => [
1945
- y(e(Y), {
1946
+ y(e(X), {
1946
1947
  modelValue: O.value,
1947
1948
  "onUpdate:modelValue": U[0] || (U[0] = (N) => O.value = N),
1948
1949
  maxlength: 190,
@@ -1957,7 +1958,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1957
1958
  error: w("recipient_last_name")
1958
1959
  }, {
1959
1960
  default: d(() => [
1960
- y(e(Y), {
1961
+ y(e(X), {
1961
1962
  modelValue: T.value,
1962
1963
  "onUpdate:modelValue": U[1] || (U[1] = (N) => T.value = N),
1963
1964
  maxlength: 190,
@@ -1968,15 +1969,15 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
1968
1969
  _: 1
1969
1970
  }, 8, ["label", "error"])
1970
1971
  ]),
1971
- g("div", ua, [
1972
+ g("div", ha, [
1972
1973
  y(e(E), {
1973
1974
  label: e(n)("order.recipient-phone"),
1974
1975
  error: w("recipient_phone")
1975
1976
  }, {
1976
1977
  default: d(() => [
1977
- y(e(Y), {
1978
- modelValue: F.value,
1979
- "onUpdate:modelValue": U[2] || (U[2] = (N) => F.value = N),
1978
+ y(e(X), {
1979
+ modelValue: M.value,
1980
+ "onUpdate:modelValue": U[2] || (U[2] = (N) => M.value = N),
1980
1981
  maxlength: 32,
1981
1982
  autocomplete: "off"
1982
1983
  }, null, 8, ["modelValue"])
@@ -2017,9 +2018,9 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2017
2018
  ]),
2018
2019
  _: 1
2019
2020
  }, 8, ["label", "help", "error"])) : D("", !0),
2020
- z.value.length > 0 ? (i(), V("div", ha, [
2021
- g("span", va, s(e(n)("order.carrier-fields")), 1),
2022
- g("div", pa, [
2021
+ z.value.length > 0 ? (i(), V("div", va, [
2022
+ g("span", pa, s(e(n)("order.carrier-fields")), 1),
2023
+ g("div", ya, [
2023
2024
  (i(!0), V(K, null, le(z.value, (N) => (i(), x(e(E), {
2024
2025
  key: N.name,
2025
2026
  label: p(N),
@@ -2044,7 +2045,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2044
2045
  modelValue: h.value[N.name],
2045
2046
  "onUpdate:modelValue": (H) => h.value[N.name] = H,
2046
2047
  options: N.options
2047
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) : (i(), x(e(Y), {
2048
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) : (i(), x(e(X), {
2048
2049
  key: 3,
2049
2050
  modelValue: h.value[N.name],
2050
2051
  "onUpdate:modelValue": (H) => h.value[N.name] = H,
@@ -2055,17 +2056,17 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2055
2056
  }, 1032, ["label", "required", "error"]))), 128))
2056
2057
  ])
2057
2058
  ])) : D("", !0),
2058
- g("div", ya, [
2059
- g("span", ma, s(e(n)("order.payer")), 1),
2059
+ g("div", ma, [
2060
+ g("span", fa, s(e(n)("order.payer")), 1),
2060
2061
  g("span", null, s(I.value), 1)
2061
2062
  ]),
2062
- _.draft.lines.length > 0 ? (i(), V("div", fa, [
2063
- g("span", ga, s(e(n)("order.lines")), 1),
2064
- g("ul", _a, [
2063
+ _.draft.lines.length > 0 ? (i(), V("div", ga, [
2064
+ g("span", _a, s(e(n)("order.lines")), 1),
2065
+ g("ul", ba, [
2065
2066
  (i(!0), V(K, null, le(_.draft.lines, (N, H) => (i(), V("li", { key: H }, [
2066
- g("span", ba, s(N.name), 1),
2067
- g("span", wa, "× " + s(N.qty), 1),
2068
- g("span", ka, s(L(N.price)), 1)
2067
+ g("span", wa, s(N.name), 1),
2068
+ g("span", ka, "× " + s(N.qty), 1),
2069
+ g("span", xa, s(L(N.price)), 1)
2069
2070
  ]))), 128))
2070
2071
  ])
2071
2072
  ])) : D("", !0)
@@ -2074,52 +2075,52 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2074
2075
  _: 1
2075
2076
  }, 8, ["open", "title"]));
2076
2077
  }
2077
- }), $a = /* @__PURE__ */ re(xa, [["__scopeId", "data-v-ac182efe"]]), Va = { class: "wx-delivery-order" }, Ca = {
2078
+ }), Va = /* @__PURE__ */ re($a, [["__scopeId", "data-v-ac182efe"]]), Ca = { class: "wx-delivery-order" }, Ta = {
2078
2079
  class: "wx-delivery-order__facts",
2079
2080
  "data-test": "order-delivery-facts"
2080
- }, Ta = { class: "wx-delivery-order__fact" }, Sa = {
2081
+ }, Sa = { class: "wx-delivery-order__fact" }, Na = {
2081
2082
  key: 0,
2082
2083
  class: "wx-delivery-order__fact"
2083
- }, Na = {
2084
+ }, Da = {
2084
2085
  key: 1,
2085
2086
  class: "wx-delivery-order__fact"
2086
- }, Da = { class: "wx-delivery-order__strong" }, Wa = { key: 0 }, Aa = {
2087
+ }, Wa = { class: "wx-delivery-order__strong" }, Aa = { key: 0 }, Oa = {
2087
2088
  key: 1,
2088
2089
  class: "wx-delivery-order__muted"
2089
- }, Oa = {
2090
+ }, Ua = {
2090
2091
  key: 2,
2091
2092
  class: "wx-delivery-order__fact"
2092
- }, Ua = {
2093
+ }, La = {
2093
2094
  key: 0,
2094
2095
  class: "wx-delivery-order__muted"
2095
- }, La = { class: "wx-delivery-order__fact" }, Pa = {
2096
+ }, Pa = { class: "wx-delivery-order__fact" }, Ia = {
2096
2097
  key: 0,
2097
2098
  class: "wx-delivery-order__muted"
2098
- }, Ia = {
2099
+ }, za = {
2099
2100
  key: 1,
2100
2101
  class: "wx-delivery-order__muted"
2101
- }, za = {
2102
+ }, Ra = {
2102
2103
  key: 3,
2103
2104
  class: "wx-delivery-order__fact"
2104
- }, Ra = {
2105
+ }, Fa = {
2105
2106
  key: 2,
2106
2107
  class: "wx-delivery-order__parcels",
2107
2108
  "data-test": "order-parcels"
2108
- }, Ma = { class: "wx-delivery-order__parcel-head" }, Fa = { class: "wx-delivery-order__strong" }, qa = {
2109
+ }, Ma = { class: "wx-delivery-order__parcel-head" }, qa = { class: "wx-delivery-order__strong" }, Ba = {
2109
2110
  key: 0,
2110
2111
  class: "wx-delivery-order__muted"
2111
- }, Ba = { class: "wx-delivery-order__events" }, ja = {
2112
+ }, ja = { class: "wx-delivery-order__events" }, Ea = {
2112
2113
  key: 0,
2113
2114
  class: "wx-delivery-order__muted"
2114
- }, Ea = /* @__PURE__ */ Z({
2115
+ }, Ka = /* @__PURE__ */ Z({
2115
2116
  name: "WxDeliveryOrder",
2116
2117
  __name: "OrderDeliveryNode",
2117
2118
  setup(_) {
2118
- const a = ee(), l = oe(a), r = ne(), t = ye(), o = ct(), n = m(null), f = m(!1), C = m(!1), v = m(!1), S = M(() => {
2119
+ const a = ee(), l = oe(a), r = ne(), t = ye(), o = ut(), n = m(null), f = m(!1), C = m(!1), v = m(!1), S = F(() => {
2119
2120
  const w = Number(o?.id.value);
2120
2121
  return Number.isInteger(w) && w > 0 ? w : null;
2121
- }), O = De($a), T = De(sa);
2122
- async function F() {
2122
+ }), O = De(Va), T = De(da);
2123
+ async function M() {
2123
2124
  const w = n.value;
2124
2125
  if (!w?.change || w.change.refusal) return;
2125
2126
  const R = await T({ orderId: w.order_id, start: w.change });
@@ -2137,10 +2138,10 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2137
2138
  }
2138
2139
  }
2139
2140
  }
2140
- X(S, () => {
2141
+ Q(S, () => {
2141
2142
  B();
2142
2143
  }, { immediate: !0 });
2143
- const W = M(() => n.value?.delivery ?? null), q = M(() => n.value?.shipments.some((w) => !w.final) ?? !1), z = M(
2144
+ const W = F(() => n.value?.delivery ?? null), q = F(() => n.value?.shipments.some((w) => !w.final) ?? !1), z = F(
2144
2145
  () => !!n.value?.can_ship && !!n.value.waybills && n.value.active === null && !!n.value.draft
2145
2146
  ), u = {
2146
2147
  created: "info",
@@ -2189,7 +2190,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2189
2190
  J.danger(t(R));
2190
2191
  }
2191
2192
  }
2192
- return (w, R) => (i(), V("div", Va, [
2193
+ return (w, R) => (i(), V("div", Ca, [
2193
2194
  f.value && !n.value ? (i(), x(e(xe), {
2194
2195
  key: 0,
2195
2196
  rows: 4
@@ -2203,37 +2204,37 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2203
2204
  title: e(r)("order.chosen")
2204
2205
  }, Ne({
2205
2206
  default: d(() => [
2206
- g("dl", Ca, [
2207
- g("div", Ta, [
2207
+ g("dl", Ta, [
2208
+ g("div", Sa, [
2208
2209
  g("dt", null, s(e(r)("order.method")), 1),
2209
2210
  g("dd", null, s(W.value.method), 1)
2210
2211
  ]),
2211
- W.value.locality ? (i(), V("div", Sa, [
2212
+ W.value.locality ? (i(), V("div", Na, [
2212
2213
  g("dt", null, s(e(r)("order.locality")), 1),
2213
2214
  g("dd", null, s(W.value.locality), 1)
2214
2215
  ])) : D("", !0),
2215
- W.value.point ? (i(), V("div", Na, [
2216
+ W.value.point ? (i(), V("div", Da, [
2216
2217
  g("dt", null, s(e(r)("order.point")), 1),
2217
2218
  g("dd", null, [
2218
- g("span", Da, s(W.value.point.title), 1),
2219
- W.value.point.address ? (i(), V("span", Wa, s(W.value.point.address), 1)) : D("", !0),
2220
- W.value.point.schedule ? (i(), V("span", Aa, s(W.value.point.schedule), 1)) : D("", !0)
2219
+ g("span", Wa, s(W.value.point.title), 1),
2220
+ W.value.point.address ? (i(), V("span", Aa, s(W.value.point.address), 1)) : D("", !0),
2221
+ W.value.point.schedule ? (i(), V("span", Oa, s(W.value.point.schedule), 1)) : D("", !0)
2221
2222
  ])
2222
2223
  ])) : D("", !0),
2223
- W.value.address ? (i(), V("div", Oa, [
2224
+ W.value.address ? (i(), V("div", Ua, [
2224
2225
  g("dt", null, s(e(r)("order.address")), 1),
2225
2226
  g("dd", null, [
2226
2227
  g("span", null, s(W.value.address), 1),
2227
- W.value.note ? (i(), V("span", Ua, s(W.value.note), 1)) : D("", !0)
2228
+ W.value.note ? (i(), V("span", La, s(W.value.note), 1)) : D("", !0)
2228
2229
  ])
2229
2230
  ])) : D("", !0),
2230
- g("div", La, [
2231
+ g("div", Pa, [
2231
2232
  g("dt", null, s(e(r)("order.cost")), 1),
2232
2233
  g("dd", null, [
2233
2234
  g("span", null, [
2234
- W.value.was ? (i(), V("s", Pa, s(W.value.was), 1)) : D("", !0),
2235
+ W.value.was ? (i(), V("s", Ia, s(W.value.was), 1)) : D("", !0),
2235
2236
  P(" " + s(W.value.price ?? "—") + " ", 1),
2236
- W.value.estimate ? (i(), V("span", Ia, " ≈ " + s(W.value.estimate), 1)) : D("", !0)
2237
+ W.value.estimate ? (i(), V("span", za, " ≈ " + s(W.value.estimate), 1)) : D("", !0)
2237
2238
  ]),
2238
2239
  W.value.paid_by_store ? (i(), x(e(ce), {
2239
2240
  key: 0,
@@ -2247,7 +2248,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2247
2248
  })) : D("", !0)
2248
2249
  ])
2249
2250
  ]),
2250
- W.value.payer ? (i(), V("div", za, [
2251
+ W.value.payer ? (i(), V("div", Ra, [
2251
2252
  g("dt", null, s(e(r)("order.payer")), 1),
2252
2253
  g("dd", null, s(W.value.payer === "sender" ? e(r)("order.payer-sender") : e(r)("order.payer-recipient")), 1)
2253
2254
  ])) : D("", !0)
@@ -2282,7 +2283,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2282
2283
  icon: "edit",
2283
2284
  disabled: !!n.value.change.refusal || v.value,
2284
2285
  "data-test": "order-change",
2285
- onClick: F
2286
+ onClick: M
2286
2287
  }, {
2287
2288
  default: d(() => [
2288
2289
  P(s(e(r)("order.change")), 1)
@@ -2309,13 +2310,13 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2309
2310
  P(s(e(r)("order.no-parcels")), 1)
2310
2311
  ]),
2311
2312
  _: 1
2312
- })) : (i(), V("ul", Ra, [
2313
+ })) : (i(), V("ul", Fa, [
2313
2314
  (i(!0), V(K, null, le(n.value.shipments, (k) => (i(), V("li", {
2314
2315
  key: k.id,
2315
2316
  class: "wx-delivery-order__parcel"
2316
2317
  }, [
2317
2318
  g("div", Ma, [
2318
- g("span", Fa, s(k.number ?? "—"), 1),
2319
+ g("span", qa, s(k.number ?? "—"), 1),
2319
2320
  y(e(ce), {
2320
2321
  size: "sm",
2321
2322
  type: u[k.status]
@@ -2325,7 +2326,7 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2325
2326
  ]),
2326
2327
  _: 2
2327
2328
  }, 1032, ["type"]),
2328
- k.cost_formatted ? (i(), V("span", qa, s(e(r)("order.carrier-cost")) + ": " + s(k.cost_formatted), 1)) : D("", !0),
2329
+ k.cost_formatted ? (i(), V("span", Ba, s(e(r)("order.carrier-cost")) + ": " + s(k.cost_formatted), 1)) : D("", !0),
2329
2330
  R[0] || (R[0] = g("span", { class: "wx-delivery-order__gap" }, null, -1)),
2330
2331
  y(e(ue), {
2331
2332
  size: 8,
@@ -2372,18 +2373,18 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2372
2373
  _: 2
2373
2374
  }, 1024)
2374
2375
  ]),
2375
- g("ol", Ba, [
2376
+ g("ol", ja, [
2376
2377
  (i(!0), V(K, null, le(k.events, (U, N) => (i(), V("li", {
2377
2378
  key: N,
2378
2379
  class: "wx-delivery-order__event"
2379
2380
  }, [
2380
- y(e(ut), {
2381
+ y(e(ht), {
2381
2382
  value: U.at,
2382
2383
  size: "sm",
2383
2384
  tone: "muted"
2384
2385
  }, null, 8, ["value"]),
2385
2386
  g("span", null, s(U.label), 1),
2386
- U.text ? (i(), V("span", ja, s(U.text), 1)) : D("", !0)
2387
+ U.text ? (i(), V("span", Ea, s(U.text), 1)) : D("", !0)
2387
2388
  ]))), 128))
2388
2389
  ]),
2389
2390
  k.final ? (i(), x(e(ae), {
@@ -2473,8 +2474,8 @@ const ft = { class: "wx-delivery-locality" }, gt = { class: "wx-delivery-localit
2473
2474
  ], 64)) : D("", !0)
2474
2475
  ]));
2475
2476
  }
2476
- }), Ka = /* @__PURE__ */ re(Ea, [["__scopeId", "data-v-0e98475a"]]);
2477
- function Ya(_ = {}) {
2477
+ }), Ha = /* @__PURE__ */ re(Ka, [["__scopeId", "data-v-0e98475a"]]);
2478
+ function Qa(_ = {}) {
2478
2479
  const a = _.path ?? "/delivery", l = (r, t, o, n) => ({
2479
2480
  id: r,
2480
2481
  path: t === "" ? a : `${a}/${t}`,
@@ -2482,58 +2483,59 @@ function Ya(_ = {}) {
2482
2483
  {
2483
2484
  path: t === "" ? a : `${a}/${t}`,
2484
2485
  name: o,
2486
+ meta: { help: t === "" ? "delivery.index" : `delivery.${t}` },
2485
2487
  component: n
2486
2488
  }
2487
2489
  ]
2488
2490
  });
2489
2491
  return [
2490
2492
  {
2491
- ...l("delivery", "", "webx.delivery", () => import("./MethodsPage-Bpzsa_6v.js")),
2493
+ ...l("delivery", "", "webx.delivery", () => import("./MethodsPage-tSsXLSUX.js")),
2492
2494
  types: {
2493
- "wx-delivery-locality": { component: It, kind: "field" },
2494
- "wx-delivery-localities": { component: At, kind: "field", wide: !0 },
2495
- "wx-delivery-region": { component: qt, kind: "field", nested: !0 },
2496
- "wx-delivery-country": { component: pt, kind: "field" },
2497
- "wx-delivery-schedule": { component: Gt, kind: "field", wide: !0 },
2498
- "wx-delivery-point-kind": { component: Ft, kind: "field" },
2495
+ "wx-delivery-locality": { component: zt, kind: "field" },
2496
+ "wx-delivery-localities": { component: Ot, kind: "field", wide: !0 },
2497
+ "wx-delivery-region": { component: Bt, kind: "field", nested: !0 },
2498
+ "wx-delivery-country": { component: yt, kind: "field" },
2499
+ "wx-delivery-schedule": { component: Jt, kind: "field", wide: !0 },
2500
+ "wx-delivery-point-kind": { component: qt, kind: "field" },
2499
2501
  // The tab «Delivery» of the order's card, patched onto `orders.show` by the server.
2500
- "wx-delivery-order": { component: Ka, kind: "display" }
2502
+ "wx-delivery-order": { component: Ha, kind: "display" }
2501
2503
  }
2502
2504
  },
2503
- l("delivery-points", "points", "webx.delivery.points", () => import("./PointsPage-CzYIM86R.js")),
2505
+ l("delivery-points", "points", "webx.delivery.points", () => import("./PointsPage-DzcGDwjQ.js")),
2504
2506
  l(
2505
2507
  "delivery-carriers",
2506
2508
  "carriers",
2507
2509
  "webx.delivery.carriers",
2508
- () => import("./CarriersPage-Dpre8dbl.js")
2510
+ () => import("./CarriersPage-CV9uFlXk.js")
2509
2511
  ),
2510
2512
  l(
2511
2513
  "delivery-geography",
2512
2514
  "geography",
2513
2515
  "webx.delivery.geography",
2514
- () => import("./GeographyPage-IBg0JnNH.js")
2516
+ () => import("./GeographyPage-BvhBUFBv.js")
2515
2517
  ),
2516
2518
  l(
2517
2519
  "delivery-popular",
2518
2520
  "popular",
2519
2521
  "webx.delivery.popular",
2520
- () => import("./PopularPage-CSrvVg4o.js")
2522
+ () => import("./PopularPage-CaN3vwKt.js")
2521
2523
  ),
2522
2524
  l(
2523
2525
  "delivery-bindings",
2524
2526
  "bindings",
2525
2527
  "webx.delivery.bindings",
2526
- () => import("./BindingsPage-pjTbDDWA.js")
2528
+ () => import("./BindingsPage-BssjF4sQ.js")
2527
2529
  )
2528
2530
  ];
2529
2531
  }
2530
2532
  export {
2531
- kt as L,
2533
+ xt as L,
2532
2534
  re as _,
2533
2535
  Le as a,
2534
- yt as b,
2536
+ mt as b,
2535
2537
  oe as c,
2536
- Ya as d,
2538
+ Qa as d,
2537
2539
  ne as u
2538
2540
  };
2539
- //# sourceMappingURL=index-5nt0M0In.js.map
2541
+ //# sourceMappingURL=index-CAiJkqKq.js.map