@snabcentr/vue-ui-lib 6.0.4 → 6.0.6

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.
@@ -24131,10 +24131,10 @@ var lE = ib({
24131
24131
  });
24132
24132
  };
24133
24133
  }
24134
- }), xE = { class: "flex flex-col" }, SE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, CE = { class: "font-medium" }, wE = { class: "flex flex-col text-sc-dark-grey" }, TE = { key: 0 }, EE = { class: "font-medium" }, DE = { class: "font-medium" }, OE = { class: "font-medium" }, kE = { class: "font-medium" }, AE = { class: "font-medium" }, jE = { class: "font-medium" }, ME = { class: "font-medium" }, NE = { class: "font-medium" }, PE = { class: "font-medium" }, FE = { class: "font-medium" }, IE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, LE = { class: "font-medium" }, RE = { class: "flex flex-col text-sc-dark-grey" }, zE = { class: "font-medium" }, BE = { class: "font-medium" }, VE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, HE = { class: "font-medium" }, UE = { class: "text-sc-dark-grey" }, WE = { class: "font-medium" }, GE = { class: "text-xs" }, KE = {
24134
+ }), xE = { class: "flex flex-col" }, SE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, CE = { class: "font-medium" }, wE = { class: "flex flex-col text-sc-dark-grey" }, TE = { key: 0 }, EE = { class: "font-medium" }, DE = { class: "font-medium" }, OE = { class: "font-medium" }, kE = { class: "font-medium" }, AE = { class: "font-medium" }, jE = { class: "font-medium" }, ME = { class: "font-medium" }, NE = { class: "font-medium" }, PE = { class: "font-medium" }, FE = { class: "font-medium" }, IE = ["aria-disabled"], LE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, RE = { class: "font-medium" }, zE = { class: "flex flex-col text-sc-dark-grey" }, BE = { class: "font-medium" }, VE = { class: "font-medium" }, HE = ["aria-disabled"], UE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, WE = { class: "font-medium" }, GE = { class: "text-sc-dark-grey" }, KE = { class: "font-medium" }, qE = ["aria-disabled"], JE = { class: "text-xs" }, YE = {
24135
24135
  key: 1,
24136
24136
  class: "text-base font-medium text-nowrap"
24137
- }, qE = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
24137
+ }, XE = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
24138
24138
  __name: "order-item-params",
24139
24139
  props: {
24140
24140
  item: {},
@@ -24146,6 +24146,10 @@ var lE = ib({
24146
24146
  updateQuantityOnInput: {
24147
24147
  type: Boolean,
24148
24148
  default: !0
24149
+ },
24150
+ disabled: {
24151
+ type: Boolean,
24152
+ default: !1
24149
24153
  }
24150
24154
  },
24151
24155
  setup(e) {
@@ -24161,15 +24165,15 @@ var lE = ib({
24161
24165
  d.value = { quantity: e.quantity };
24162
24166
  });
24163
24167
  let f = (e) => {
24164
- e !== null && (d.value.quantity = e, n.eventEmitter?.emit("order-item:edit-quantity", {
24168
+ e === null || n.disabled || (d.value.quantity = e, n.eventEmitter?.emit("order-item:edit-quantity", {
24165
24169
  item: i.value,
24166
24170
  quantity: e,
24167
24171
  loaderRef: r
24168
24172
  }));
24169
24173
  }, p = () => {
24170
- n.eventEmitter?.emit("order-item:open-configurator", { item: i.value });
24174
+ n.disabled || n.eventEmitter?.emit("order-item:open-configurator", { item: i.value });
24171
24175
  }, m = () => {
24172
- n.eventEmitter?.emit("order-item:edit", { item: i.value });
24176
+ n.disabled || n.eventEmitter?.emit("order-item:edit", { item: i.value });
24173
24177
  };
24174
24178
  return (n, i) => {
24175
24179
  let h = yn;
@@ -24183,19 +24187,22 @@ var lE = ib({
24183
24187
  ])]), e.allowEdit ? (L(), j("a", {
24184
24188
  key: 0,
24185
24189
  href: "#",
24186
- class: "text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5",
24190
+ class: lt(["text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5", { "pointer-events-none opacity-50": e.disabled }]),
24191
+ "aria-disabled": e.disabled || void 0,
24187
24192
  onClick: Mt(p, ["prevent"])
24188
- }, " Изменить ")) : A("", !0)], 64)) : o.value && s.value > 0 ? (L(), j(D, { key: 1 }, [M("div", IE, [M("span", null, [i[10] ||= N(" Количество: ", -1), M("span", LE, B(e.item.quantity) + " шт.", 1)]), M("div", RE, [M("span", null, [i[11] ||= N(" Длина: ", -1), M("span", zE, B(s.value) + " " + B(e.item.product.unit.name), 1)]), M("span", null, [i[12] ||= N(" Всего: ", -1), M("span", BE, B(c.value) + " " + B(e.item.product.unit.name), 1)])])]), e.allowEdit ? (L(), j("a", {
24193
+ }, " Изменить ", 10, IE)) : A("", !0)], 64)) : o.value && s.value > 0 ? (L(), j(D, { key: 1 }, [M("div", LE, [M("span", null, [i[10] ||= N(" Количество: ", -1), M("span", RE, B(e.item.quantity) + " шт.", 1)]), M("div", zE, [M("span", null, [i[11] ||= N(" Длина: ", -1), M("span", BE, B(s.value) + " " + B(e.item.product.unit.name), 1)]), M("span", null, [i[12] ||= N(" Всего: ", -1), M("span", VE, B(c.value) + " " + B(e.item.product.unit.name), 1)])])]), e.allowEdit ? (L(), j("a", {
24189
24194
  key: 0,
24190
24195
  href: "#",
24191
- class: "text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5",
24196
+ class: lt(["text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5", { "pointer-events-none opacity-50": e.disabled }]),
24197
+ "aria-disabled": e.disabled || void 0,
24192
24198
  onClick: Mt(m, ["prevent"])
24193
- }, " Изменить ")) : A("", !0)], 64)) : e.item.product.getIsMeasurable() ? (L(), j(D, { key: 2 }, [M("div", VE, [M("span", null, [i[13] ||= N(" Количество: ", -1), M("span", HE, B(e.item.quantity) + " шт.", 1)]), M("span", UE, [i[14] ||= N(" Метраж: ", -1), M("span", WE, B(e.item.length ?? e.item.width) + " " + B(e.item.product.unit.name), 1)])]), e.allowEdit ? (L(), j("a", {
24199
+ }, " Изменить ", 10, HE)) : A("", !0)], 64)) : e.item.product.getIsMeasurable() ? (L(), j(D, { key: 2 }, [M("div", UE, [M("span", null, [i[13] ||= N(" Количество: ", -1), M("span", WE, B(e.item.quantity) + " шт.", 1)]), M("span", GE, [i[14] ||= N(" Метраж: ", -1), M("span", KE, B(e.item.length ?? e.item.width) + " " + B(e.item.product.unit.name), 1)])]), e.allowEdit ? (L(), j("a", {
24194
24200
  key: 0,
24195
24201
  href: "#",
24196
- class: "text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5",
24202
+ class: lt(["text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5", { "pointer-events-none opacity-50": e.disabled }]),
24203
+ "aria-disabled": e.disabled || void 0,
24197
24204
  onClick: Mt(m, ["prevent"])
24198
- }, " Изменить ")) : A("", !0)], 64)) : (L(), j(D, { key: 3 }, [e.allowEdit ? (L(), k(h, {
24205
+ }, " Изменить ", 10, qE)) : A("", !0)], 64)) : (L(), j(D, { key: 3 }, [e.allowEdit ? (L(), k(h, {
24199
24206
  key: 0,
24200
24207
  value: d.value.quantity,
24201
24208
  parse: V(Pr),
@@ -24204,7 +24211,7 @@ var lE = ib({
24204
24211
  "show-button": u.value,
24205
24212
  "button-placement": "both",
24206
24213
  "update-value-on-input": e.updateQuantityOnInput,
24207
- disabled: !!r.value,
24214
+ disabled: e.disabled || !!r.value,
24208
24215
  loading: r.value || void 0,
24209
24216
  placeholder: "Кол-во",
24210
24217
  size: "small",
@@ -24213,7 +24220,7 @@ var lE = ib({
24213
24220
  onFocus: V(Ir),
24214
24221
  "onUpdate:value": f
24215
24222
  }, {
24216
- suffix: U(() => [M("span", GE, B(e.item.product.unit.name), 1)]),
24223
+ suffix: U(() => [M("span", JE, B(e.item.product.unit.name), 1)]),
24217
24224
  _: 1
24218
24225
  }, 8, [
24219
24226
  "value",
@@ -24225,30 +24232,30 @@ var lE = ib({
24225
24232
  "disabled",
24226
24233
  "loading",
24227
24234
  "onFocus"
24228
- ])) : (L(), j("span", KE, B(e.item.quantity) + " " + B(e.item.product.unit.name), 1))], 64))]);
24235
+ ])) : (L(), j("span", YE, B(e.item.quantity) + " " + B(e.item.product.unit.name), 1))], 64))]);
24229
24236
  };
24230
24237
  }
24231
- }), [["__scopeId", "data-v-cdbe0119"]]), JE = {
24238
+ }), [["__scopeId", "data-v-d43affe2"]]), ZE = {
24232
24239
  viewBox: "0 0 24 24",
24233
24240
  width: "1.2em",
24234
24241
  height: "1.2em"
24235
24242
  };
24236
- function YE(e, t) {
24237
- return L(), j("svg", JE, [...t[0] ||= [M("path", {
24243
+ function QE(e, t) {
24244
+ return L(), j("svg", ZE, [...t[0] ||= [M("path", {
24238
24245
  fill: "currentColor",
24239
24246
  d: "M13 4a1 1 0 0 1 1 1h4a1 1 0 0 1 .783.378l.074.108l3 5l.055.103l.04.107l.029.109l.016.11L22 11v6a1 1 0 0 1-1 1h-1.171a3.001 3.001 0 0 1-5.658 0H9.829a3.001 3.001 0 0 1-5.658 0H3a1 1 0 0 1-1-1V6a2 2 0 0 1 2-2zM7 16a1 1 0 1 0 0 2a1 1 0 0 0 0-2m10 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2m.434-9H14v3h5.234z"
24240
24247
  }, null, -1)]]);
24241
24248
  }
24242
- var XE = it({
24249
+ var $E = it({
24243
24250
  name: "tabler-truck-filled",
24244
- render: YE
24245
- }), ZE = {
24251
+ render: QE
24252
+ }), eD = {
24246
24253
  viewBox: "0 0 24 24",
24247
24254
  width: "1.2em",
24248
24255
  height: "1.2em"
24249
24256
  };
24250
- function QE(e, t) {
24251
- return L(), j("svg", ZE, [...t[0] ||= [M("g", {
24257
+ function tD(e, t) {
24258
+ return L(), j("svg", eD, [...t[0] ||= [M("g", {
24252
24259
  fill: "none",
24253
24260
  stroke: "currentColor",
24254
24261
  "stroke-linecap": "round",
@@ -24256,16 +24263,16 @@ function QE(e, t) {
24256
24263
  "stroke-width": "2"
24257
24264
  }, [M("path", { d: "M5 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0m10 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0" }), M("path", { d: "M5 17H3v-4M2 5h11v12m-4 0h6m4 0h2v-6h-8m0-5h5l3 5M3 9h4" })], -1)]]);
24258
24265
  }
24259
- var $E = it({
24266
+ var nD = it({
24260
24267
  name: "tabler-truck-delivery",
24261
- render: QE
24262
- }), eD = {
24268
+ render: tD
24269
+ }), rD = {
24263
24270
  viewBox: "0 0 24 24",
24264
24271
  width: "1.2em",
24265
24272
  height: "1.2em"
24266
24273
  };
24267
- function tD(e, t) {
24268
- return L(), j("svg", eD, [...t[0] ||= [M("g", {
24274
+ function iD(e, t) {
24275
+ return L(), j("svg", rD, [...t[0] ||= [M("g", {
24269
24276
  fill: "none",
24270
24277
  stroke: "currentColor",
24271
24278
  "stroke-linecap": "round",
@@ -24273,16 +24280,16 @@ function tD(e, t) {
24273
24280
  "stroke-width": "2"
24274
24281
  }, [M("path", { d: "M2 3h1a2 2 0 0 1 2 2v10a2 2 0 0 0 2 2h15" }), M("path", { d: "M9 9a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v2a3 3 0 0 1-3 3h-4a3 3 0 0 1-3-3zM7 19a2 2 0 1 0 4 0a2 2 0 1 0-4 0m9 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0" })], -1)]]);
24275
24282
  }
24276
- var nD = it({
24283
+ var aD = it({
24277
24284
  name: "tabler-truck-loading",
24278
- render: tD
24279
- }), rD = { class: "flex flex-col gap-1" }, iD = {
24285
+ render: iD
24286
+ }), oD = { class: "flex flex-col gap-1" }, sD = {
24280
24287
  key: 0,
24281
24288
  class: "flex flex-row gap-1 text-sm text-sc-grey"
24282
- }, aD = {
24289
+ }, cD = {
24283
24290
  key: 1,
24284
24291
  class: "text-base"
24285
- }, oD = { class: "text-sc-dark-grey mr-1.5" }, sD = { key: 0 }, cD = { key: 1 }, lD = /* @__PURE__ */ F({
24292
+ }, lD = { class: "text-sc-dark-grey mr-1.5" }, uD = { key: 0 }, dD = { key: 1 }, fD = /* @__PURE__ */ F({
24286
24293
  __name: "order-delivery-label",
24287
24294
  props: {
24288
24295
  delivery: {},
@@ -24301,23 +24308,23 @@ var nD = it({
24301
24308
  deletedAt: i.delivery.address.deletedAt
24302
24309
  }) : ""), i = e;
24303
24310
  return (i, a) => {
24304
- let o = nD, s = $E, c = XE;
24305
- return L(), j("div", rD, [e.showType ? (L(), j("span", iD, [
24311
+ let o = aD, s = nD, c = $E;
24312
+ return L(), j("div", oD, [e.showType ? (L(), j("span", sD, [
24306
24313
  t.value?.slug === "self_delivery" ? (L(), k(o, { key: 0 })) : A("", !0),
24307
24314
  t.value?.slug === "delivery" ? (L(), k(s, { key: 1 })) : A("", !0),
24308
24315
  t.value?.slug === "transport_company_delivery" ? (L(), k(c, { key: 2 })) : A("", !0),
24309
24316
  M("span", null, B(t.value?.name), 1)
24310
- ])) : A("", !0), e.showDetails ? (L(), j("span", aD, [
24311
- M("span", oD, B(n.value), 1),
24312
- e.delivery?.address?.address ? (L(), j("span", sD, B(r.value), 1)) : A("", !0),
24313
- e.delivery?.warehouse?.address ? (L(), j("span", cD, " со склада " + B(e.delivery.warehouse.address), 1)) : A("", !0)
24317
+ ])) : A("", !0), e.showDetails ? (L(), j("span", cD, [
24318
+ M("span", lD, B(n.value), 1),
24319
+ e.delivery?.address?.address ? (L(), j("span", uD, B(r.value), 1)) : A("", !0),
24320
+ e.delivery?.warehouse?.address ? (L(), j("span", dD, " со склада " + B(e.delivery.warehouse.address), 1)) : A("", !0)
24314
24321
  ])) : A("", !0)]);
24315
24322
  };
24316
24323
  }
24317
- }), uD = { class: "flex flex-col gap-2.5" }, dD = { class: "text-base" }, fD = ["href"], pD = {
24324
+ }), pD = { class: "flex flex-col gap-2.5" }, mD = { class: "text-base" }, hD = ["href"], gD = {
24318
24325
  key: 1,
24319
24326
  class: "text-sc-grey"
24320
- }, mD = /* @__PURE__ */ F({
24327
+ }, _D = /* @__PURE__ */ F({
24321
24328
  __name: "order-common-info",
24322
24329
  props: {
24323
24330
  order: {},
@@ -24335,14 +24342,14 @@ var nD = it({
24335
24342
  let e = t.order.status?.slug;
24336
24343
  return !!e && (t.highlightSettings?.statuses.includes(e) ?? !1);
24337
24344
  }), o = O(() => _r(t.order).filter((e) => [or.OnOrder, or.NotInStock].includes(e))), s = (e) => t.highlightSettings?.markers.includes(e) ?? !1, c = O(() => t.fields.includes(vr.CreatedAt)), l = O(() => t.fields.includes(vr.ClientInfo) || t.fields.includes(vr.ClientInfoShort) ? t.order.client : void 0), u = O(() => t.fields.includes(vr.DeliveryInfo) ? t.order.delivery : void 0);
24338
- return (t, d) => (L(), j("div", uD, [
24339
- M("span", dD, [
24345
+ return (t, d) => (L(), j("div", pD, [
24346
+ M("span", mD, [
24340
24347
  n.value ? (L(), j("a", {
24341
24348
  key: 0,
24342
24349
  href: e.orderUrl.replace(":id", e.order.id.toString()),
24343
24350
  target: "_blank",
24344
24351
  class: "text-sc-dark-grey"
24345
- }, " #" + B(n.value), 9, fD)) : A("", !0),
24352
+ }, " #" + B(n.value), 9, hD)) : A("", !0),
24346
24353
  c.value ? (L(), j(D, { key: 1 }, [d[0] ||= N(" от ", -1), P(f_, {
24347
24354
  date: e.order.createdAt,
24348
24355
  "is-time-secondary": !0
@@ -24351,7 +24358,7 @@ var nD = it({
24351
24358
  key: 0,
24352
24359
  class: "font-medium",
24353
24360
  style: ut({ color: i.value.color })
24354
- }, B(r.value), 5)) : (L(), j("span", pD, B(r.value), 1))], 64)) : A("", !0),
24361
+ }, B(r.value), 5)) : (L(), j("span", gD, B(r.value), 1))], 64)) : A("", !0),
24355
24362
  (L(!0), j(D, null, bt(o.value, (e) => (L(), j(D, { key: e }, [d[2] ||= N(" - ", -1), M("span", {
24356
24363
  class: lt({
24357
24364
  "font-medium": s(e),
@@ -24365,21 +24372,21 @@ var nD = it({
24365
24372
  client: l.value,
24366
24373
  class: "ml-3"
24367
24374
  }, null, 8, ["client"])) : A("", !0),
24368
- u.value ? (L(), k(lD, {
24375
+ u.value ? (L(), k(fD, {
24369
24376
  key: 1,
24370
24377
  delivery: u.value,
24371
24378
  class: "ml-3"
24372
24379
  }, null, 8, ["delivery"])) : A("", !0)
24373
24380
  ]));
24374
24381
  }
24375
- }), hD = /* @__PURE__ */ F({
24382
+ }), vD = /* @__PURE__ */ F({
24376
24383
  __name: "order-payment",
24377
24384
  props: { payment: {} },
24378
24385
  setup(e) {
24379
24386
  let t = e, n = O(() => ce().paymentTypeReference?.find((e) => e.id === t.payment.type));
24380
24387
  return (e, t) => (L(), j("span", null, B(n.value?.name ?? "-"), 1));
24381
24388
  }
24382
- }), gD = /* @__PURE__ */ F({
24389
+ }), yD = /* @__PURE__ */ F({
24383
24390
  __name: "order-item-specification",
24384
24391
  props: { src: {} },
24385
24392
  setup(e) {
@@ -24393,7 +24400,7 @@ var nD = it({
24393
24400
  "previewed-img-props": { style: "max-width: 80vw; max-height: 80vh; object-fit: contain; border: 12px solid white;" }
24394
24401
  }, null, 8, ["src"]), [[Ot, !1]])], 64));
24395
24402
  }
24396
- }), _D = /* @__PURE__ */ F({
24403
+ }), bD = /* @__PURE__ */ F({
24397
24404
  __name: "creator-user-type-tag",
24398
24405
  props: {
24399
24406
  userType: { default: void 0 },
@@ -24421,7 +24428,7 @@ var nD = it({
24421
24428
  });
24422
24429
  return (e, t) => (L(), j("small", { class: lt(`inline-block py-[0.0625rem] px-1.5 text-xs font-bold text-center whitespace-nowrap rounded text-white no-underline opacity-100 ${r.value}`) }, B(i.value), 3));
24423
24430
  }
24424
- }), vD = { class: "flex flex-col gap-0.5" }, yD = { class: "text-gray-600" }, bD = /* @__PURE__ */ F({
24431
+ }), xD = { class: "flex flex-col gap-0.5" }, SD = { class: "text-gray-600" }, CD = /* @__PURE__ */ F({
24425
24432
  __name: "order-item-name",
24426
24433
  props: {
24427
24434
  item: {},
@@ -24444,7 +24451,7 @@ var nD = it({
24444
24451
  let { creator: e } = t.item;
24445
24452
  return !!e?.type && (!r.value || r.value.creator.guid !== e.guid);
24446
24453
  }), o = O(() => "specificationImgUrl" in t.item ? t.item.specificationImgUrl : void 0), s = O(() => "changedFields" in t.item ? t.item.changedFields : []), c = O(() => "replacement" in t.item ? t.item.replacement?.creator?.type : void 0);
24447
- return (t, n) => (L(), j("div", vD, [
24454
+ return (t, n) => (L(), j("div", xD, [
24448
24455
  M("div", { class: lt(i.value ? "line-through opacity-50" : "") }, [P(go, {
24449
24456
  product: e.item.product,
24450
24457
  "show-additional-sale-icon": e.item.isAdditionalSale ?? !1,
@@ -24457,24 +24464,24 @@ var nD = it({
24457
24464
  e.item.marker ? (L(), j("span", {
24458
24465
  key: 0,
24459
24466
  class: lt(i.value ? "line-through opacity-50" : "")
24460
- }, [n[0] ||= N(" Маркировка: ", -1), M("span", yD, B(e.item.marker), 1)], 2)) : A("", !0),
24467
+ }, [n[0] ||= N(" Маркировка: ", -1), M("span", SD, B(e.item.marker), 1)], 2)) : A("", !0),
24461
24468
  o.value ? (L(), j("div", {
24462
24469
  key: 1,
24463
24470
  class: lt(i.value ? "line-through opacity-50" : "")
24464
- }, [P(gD, { src: o.value }, null, 8, ["src"])], 2)) : A("", !0),
24465
- a.value && !i.value ? (L(), k(_D, {
24471
+ }, [P(yD, { src: o.value }, null, 8, ["src"])], 2)) : A("", !0),
24472
+ a.value && !i.value ? (L(), k(bD, {
24466
24473
  key: 2,
24467
24474
  "user-type": e.item.creator.type,
24468
24475
  class: "mt-1 self-start",
24469
24476
  "prefix-text": "Добавлено"
24470
24477
  }, null, 8, ["user-type"])) : A("", !0),
24471
- e.item.isRemoved && !e.item.replacementId && s.value.length === 0 ? (L(), k(_D, {
24478
+ e.item.isRemoved && !e.item.replacementId && s.value.length === 0 ? (L(), k(bD, {
24472
24479
  key: 3,
24473
24480
  class: "mt-1 self-start",
24474
24481
  "prefix-text": "Удалено",
24475
24482
  variant: "danger"
24476
24483
  })) : A("", !0),
24477
- e.item.replacementId && s.value.length > 0 ? (L(), k(_D, {
24484
+ e.item.replacementId && s.value.length > 0 ? (L(), k(bD, {
24478
24485
  key: 4,
24479
24486
  "user-type": c.value,
24480
24487
  "changed-fields": s.value,
@@ -24482,7 +24489,7 @@ var nD = it({
24482
24489
  }, null, 8, ["user-type", "changed-fields"])) : A("", !0)
24483
24490
  ]));
24484
24491
  }
24485
- }), xD = { class: "flex flex-row gap-1.5" }, SD = { class: "flex flex-1 flex-col gap-2.5" }, CD = { class: "flex items-start gap-1" }, wD = /* @__PURE__ */ F({
24492
+ }), wD = { class: "flex flex-row gap-1.5" }, TD = { class: "flex flex-1 flex-col gap-2.5" }, ED = { class: "flex items-start gap-1" }, DD = /* @__PURE__ */ F({
24486
24493
  __name: "order-product-info",
24487
24494
  props: {
24488
24495
  product: {},
@@ -24503,27 +24510,33 @@ var nD = it({
24503
24510
  showActions: {
24504
24511
  type: Boolean,
24505
24512
  default: void 0
24513
+ },
24514
+ disabled: {
24515
+ type: Boolean,
24516
+ default: !1
24506
24517
  }
24507
24518
  },
24508
24519
  setup(e) {
24509
24520
  let t = e, n = O(() => t.inactive ? "line-through opacity-50" : "");
24510
- return (t, r) => (L(), j("div", xD, [M("span", { class: lt(["flex-none text-nowrap", n.value]) }, B(e.index + 1) + ". ", 3), M("div", SD, [
24511
- P(bD, {
24521
+ return (t, r) => (L(), j("div", wD, [M("span", { class: lt(["flex-none text-nowrap", n.value]) }, B(e.index + 1) + ". ", 3), M("div", TD, [
24522
+ P(CD, {
24512
24523
  item: e.product,
24513
24524
  inactive: e.inactive,
24514
24525
  "show-code": ""
24515
24526
  }, null, 8, ["item", "inactive"]),
24516
- M("div", CD, [P(qE, {
24527
+ M("div", ED, [P(XE, {
24517
24528
  item: e.product,
24518
24529
  "event-emitter": e.eventEmitter,
24519
24530
  "allow-edit": e.allowEdit,
24520
24531
  "update-quantity-on-input": e.updateQuantityOnInput,
24532
+ disabled: e.disabled,
24521
24533
  class: lt(["min-w-0 flex-1", n.value])
24522
24534
  }, null, 8, [
24523
24535
  "item",
24524
24536
  "event-emitter",
24525
24537
  "allow-edit",
24526
24538
  "update-quantity-on-input",
24539
+ "disabled",
24527
24540
  "class"
24528
24541
  ]), e.showActions ?? e.allowEdit ? z(t.$slots, "actions", {}, void 0, void 0, 0) : A("", !0)]),
24529
24542
  M("div", { class: lt(["grid grid-flow-col grid-rows-2 gap-1 text-base", n.value]) }, [
@@ -24541,13 +24554,13 @@ var nD = it({
24541
24554
  z(t.$slots, "extra")
24542
24555
  ])]));
24543
24556
  }
24544
- }), TD = { class: "flex items-center gap-1.5" }, ED = {
24557
+ }), OD = { class: "flex items-center gap-1.5" }, kD = {
24545
24558
  key: 0,
24546
24559
  class: "h-1.5 w-1.5 shrink-0 rounded-full bg-current"
24547
- }, DD = {
24560
+ }, AD = {
24548
24561
  key: 0,
24549
24562
  class: "h-1.5 w-1.5 shrink-0 rounded-full bg-current"
24550
- }, OD = /* @__PURE__ */ F({
24563
+ }, jD = /* @__PURE__ */ F({
24551
24564
  __name: "order-status-tag",
24552
24565
  props: {
24553
24566
  status: {},
@@ -24570,16 +24583,16 @@ var nD = it({
24570
24583
  size: e.size,
24571
24584
  round: ""
24572
24585
  }, {
24573
- default: U(() => [M("span", TD, [e.showDot ? (L(), j("span", ED)) : A("", !0), N(" " + B(i.value), 1)])]),
24586
+ default: U(() => [M("span", OD, [e.showDot ? (L(), j("span", kD)) : A("", !0), N(" " + B(i.value), 1)])]),
24574
24587
  _: 1
24575
24588
  }, 8, ["color", "size"])) : (L(), j("span", {
24576
24589
  key: 1,
24577
24590
  class: "inline-flex items-center gap-1.5 font-medium",
24578
24591
  style: ut({ color: n.value.color })
24579
- }, [e.showDot ? (L(), j("span", DD)) : A("", !0), N(" " + B(i.value), 1)], 4));
24592
+ }, [e.showDot ? (L(), j("span", AD)) : A("", !0), N(" " + B(i.value), 1)], 4));
24580
24593
  };
24581
24594
  }
24582
- }), kD = /* @__PURE__ */ F({
24595
+ }), MD = /* @__PURE__ */ F({
24583
24596
  __name: "order-color-swatch",
24584
24597
  props: { colors: {} },
24585
24598
  setup(e) {
@@ -24592,13 +24605,13 @@ var nD = it({
24592
24605
  })
24593
24606
  }, " Аа ", 4));
24594
24607
  }
24595
- }), AD = {
24608
+ }), ND = {
24596
24609
  viewBox: "0 0 512 512",
24597
24610
  width: "1.2em",
24598
24611
  height: "1.2em"
24599
24612
  };
24600
- function jD(e, t) {
24601
- return L(), j("svg", AD, [...t[0] ||= [
24613
+ function PD(e, t) {
24614
+ return L(), j("svg", ND, [...t[0] ||= [
24602
24615
  M("path", {
24603
24616
  fill: "none",
24604
24617
  stroke: "currentColor",
@@ -24625,22 +24638,22 @@ function jD(e, t) {
24625
24638
  }, null, -1)
24626
24639
  ]]);
24627
24640
  }
24628
- var MD = it({
24641
+ var FD = it({
24629
24642
  name: "ion-trash-outline",
24630
- render: jD
24631
- }), ND = {
24643
+ render: PD
24644
+ }), ID = {
24632
24645
  key: 0,
24633
24646
  class: "!mb-3 !mt-0 text-base font-semibold"
24634
- }, PD = { class: "mb-1 flex flex-wrap items-baseline justify-between gap-2" }, FD = { class: "flex items-baseline gap-2" }, ID = { class: "text-base font-bold text-sc-dark-grey" }, LD = {
24647
+ }, LD = { class: "mb-1 flex flex-wrap items-baseline justify-between gap-2" }, RD = { class: "flex items-baseline gap-2" }, zD = { class: "text-base font-bold text-sc-dark-grey" }, BD = {
24635
24648
  key: 0,
24636
24649
  class: "text-sm text-sc-grey"
24637
- }, RD = {
24650
+ }, VD = {
24638
24651
  key: 0,
24639
24652
  class: "flex items-baseline gap-3"
24640
- }, zD = {
24653
+ }, HD = {
24641
24654
  key: 0,
24642
24655
  class: "text-sm text-sc-dark-grey"
24643
- }, BD = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
24656
+ }, UD = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
24644
24657
  __name: "order-items-list",
24645
24658
  props: /*@__PURE__*/ ot({
24646
24659
  products: {},
@@ -24672,6 +24685,10 @@ var MD = it({
24672
24685
  updateQuantityOnInput: {
24673
24686
  type: Boolean,
24674
24687
  default: !0
24688
+ },
24689
+ disabled: {
24690
+ type: Boolean,
24691
+ default: !1
24675
24692
  }
24676
24693
  }, {
24677
24694
  selectedRowKeys: { default: () => [] },
@@ -24692,10 +24709,11 @@ var MD = it({
24692
24709
  quaternary: !0,
24693
24710
  size: "small",
24694
24711
  type: "error",
24712
+ disabled: t.disabled,
24695
24713
  onClick: () => {
24696
24714
  t.eventEmitter?.emit("order-item:delete", { item: e });
24697
24715
  }
24698
- }, () => I(MD)) : null, f = (e, n) => (t.extraColumns ?? []).flatMap((t) => {
24716
+ }, () => I(FD)) : null, f = (e, n) => (t.extraColumns ?? []).flatMap((t) => {
24699
24717
  let r = t.render?.(e, n);
24700
24718
  if (Te(r) || r === "" || r === !1) return [];
24701
24719
  let i = we(t.title) ? t.title(t) : t.title;
@@ -24721,7 +24739,7 @@ var MD = it({
24721
24739
  key: "name",
24722
24740
  resizable: !0,
24723
24741
  minWidth: Te(t.groups) ? void 0 : 240,
24724
- render: (e) => I(bD, {
24742
+ render: (e) => I(CD, {
24725
24743
  item: e,
24726
24744
  inactive: a(e)
24727
24745
  })
@@ -24732,12 +24750,13 @@ var MD = it({
24732
24750
  resizable: !0,
24733
24751
  width: 180,
24734
24752
  rowSpan: u,
24735
- render: (e) => I(qE, {
24753
+ render: (e) => I(XE, {
24736
24754
  class: a(e) ? "line-through opacity-50" : "",
24737
24755
  item: e,
24738
24756
  eventEmitter: t.eventEmitter,
24739
24757
  allowEdit: t.allowEdit && !a(e),
24740
- updateQuantityOnInput: t.updateQuantityOnInput
24758
+ updateQuantityOnInput: t.updateQuantityOnInput,
24759
+ disabled: t.disabled
24741
24760
  })
24742
24761
  },
24743
24762
  {
@@ -24794,12 +24813,13 @@ var MD = it({
24794
24813
  resizable: !0,
24795
24814
  render: (e, n) => {
24796
24815
  let r = u(e, n) > 0, i = t.allowEdit && !a(e) && r;
24797
- return I(wD, {
24816
+ return I(DD, {
24798
24817
  product: e,
24799
24818
  index: n,
24800
24819
  eventEmitter: t.eventEmitter,
24801
24820
  allowEdit: i,
24802
24821
  updateQuantityOnInput: t.updateQuantityOnInput,
24822
+ disabled: t.disabled,
24803
24823
  inactive: a(e),
24804
24824
  showActions: t.allowEdit && r
24805
24825
  }, {
@@ -24823,10 +24843,10 @@ var MD = it({
24823
24843
  window.removeEventListener("resize", b);
24824
24844
  }), (t, n) => {
24825
24845
  let a = on;
24826
- return L(), j(D, null, [e.title ? (L(), j("h3", ND, B(e.title), 1)) : A("", !0), e.groups ? (L(!0), j(D, { key: 1 }, bt(e.groups, (n) => (L(), j("div", {
24846
+ return L(), j(D, null, [e.title ? (L(), j("h3", ID, B(e.title), 1)) : A("", !0), e.groups ? (L(!0), j(D, { key: 1 }, bt(e.groups, (n) => (L(), j("div", {
24827
24847
  key: n.name,
24828
24848
  class: "mb-6 last:mb-0"
24829
- }, [M("div", PD, [M("div", FD, [M("span", ID, B(n.name), 1), n.description ? (L(), j("span", LD, B(n.description), 1)) : A("", !0)]), n.summary || t.$slots["group-actions"] ? (L(), j("div", RD, [n.summary ? (L(), j("span", zD, B(n.summary), 1)) : A("", !0), z(t.$slots, "group-actions", { group: n }, void 0, !0)])) : A("", !0)]), P(a, {
24849
+ }, [M("div", LD, [M("div", RD, [M("span", zD, B(n.name), 1), n.description ? (L(), j("span", BD, B(n.description), 1)) : A("", !0)]), n.summary || t.$slots["group-actions"] ? (L(), j("div", VD, [n.summary ? (L(), j("span", HD, B(n.summary), 1)) : A("", !0), z(t.$slots, "group-actions", { group: n }, void 0, !0)])) : A("", !0)]), P(a, {
24830
24850
  columns: _.value,
24831
24851
  data: r(n.items),
24832
24852
  "row-key": (e) => e.id,
@@ -24859,13 +24879,13 @@ var MD = it({
24859
24879
  ]))], 64);
24860
24880
  };
24861
24881
  }
24862
- }), [["__scopeId", "data-v-9168f88d"]]), VD = {
24882
+ }), [["__scopeId", "data-v-f7276c88"]]), WD = {
24863
24883
  key: 0,
24864
24884
  class: "text-sc-dark-grey my-2 text-center"
24865
- }, HD = {
24885
+ }, GD = {
24866
24886
  key: 1,
24867
24887
  class: "text-sc-dark-grey my-2"
24868
- }, UD = /* @__PURE__ */ F({
24888
+ }, KD = /* @__PURE__ */ F({
24869
24889
  __name: "order-status-history",
24870
24890
  props: { order: {} },
24871
24891
  setup(e) {
@@ -24885,17 +24905,17 @@ var MD = it({
24885
24905
  a();
24886
24906
  }), (e, t) => {
24887
24907
  let a = On, o = Pn, s = Nn;
24888
- return L(), j("div", null, [t[1] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "История статусов", -1), n.value ? (L(), j("div", VD, [P(a, {
24908
+ return L(), j("div", null, [t[1] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "История статусов", -1), n.value ? (L(), j("div", WD, [P(a, {
24889
24909
  size: "small",
24890
24910
  class: "mb-1 align-middle"
24891
- }), t[0] ||= M("span", { class: "ml-2" }, "Загрузка истории ...", -1)])) : r.value.length === 0 ? (L(), j("div", HD, " История статусов отсутствует. ")) : (L(), k(s, { key: 2 }, {
24911
+ }), t[0] ||= M("span", { class: "ml-2" }, "Загрузка истории ...", -1)])) : r.value.length === 0 ? (L(), j("div", GD, " История статусов отсутствует. ")) : (L(), k(s, { key: 2 }, {
24892
24912
  default: U(() => [(L(!0), j(D, null, bt(r.value, (e, t) => (L(), k(o, {
24893
24913
  key: t,
24894
24914
  color: V(lr)(e.status.slug).color,
24895
24915
  time: i(e.createdAt),
24896
24916
  content: e.user.name
24897
24917
  }, {
24898
- header: U(() => [P(OD, {
24918
+ header: U(() => [P(jD, {
24899
24919
  status: e.status,
24900
24920
  "status-detail": e.statusDetail,
24901
24921
  variant: t === 0 ? "filled" : "text",
@@ -24916,7 +24936,7 @@ var MD = it({
24916
24936
  }))]);
24917
24937
  };
24918
24938
  }
24919
- }), WD = { class: "text-base" }, GD = /* @__PURE__ */ F({
24939
+ }), qD = { class: "text-base" }, JD = /* @__PURE__ */ F({
24920
24940
  __name: "user-short-info",
24921
24941
  props: {
24922
24942
  user: {},
@@ -24930,59 +24950,60 @@ var MD = it({
24930
24950
  }
24931
24951
  },
24932
24952
  setup(e) {
24933
- return (t, n) => (L(), j("div", { class: lt({ "flex flex-col": e.showUserType && e.extraInfoOnSecondLine }) }, [M("span", WD, B(e.user.name), 1), e.showUserType ? (L(), j("span", {
24953
+ return (t, n) => (L(), j("div", { class: lt({ "flex flex-col": e.showUserType && e.extraInfoOnSecondLine }) }, [M("span", qD, B(e.user.name), 1), e.showUserType ? (L(), j("span", {
24934
24954
  key: 0,
24935
24955
  class: lt([{ "ml-1": !e.extraInfoOnSecondLine }, "text-sc-grey"])
24936
24956
  }, " [" + B(e.user.type) + "] ", 3)) : A("", !0)], 2));
24937
24957
  }
24938
- }), KD = { class: "ml-4 grid grid-cols-3 gap-1.5 text-base" }, qD = { class: "col-span-2" }, JD = { class: "col-span-2" }, YD = /* @__PURE__ */ F({
24958
+ }), YD = { class: "ml-4 grid grid-cols-3 gap-1.5 text-base" }, XD = { class: "col-span-2" }, ZD = { class: "col-span-2" }, QD = /* @__PURE__ */ F({
24939
24959
  __name: "order-details",
24940
24960
  props: { order: {} },
24941
24961
  emits: ["click:client-name"],
24942
24962
  setup(e, { emit: t }) {
24943
24963
  let n = t;
24944
- return (t, r) => (L(), j("div", null, [r[11] ||= M("h3", null, "Детали заказа", -1), M("div", KD, [
24945
- e.order.creator.id === e.order.client.id ? A("", !0) : (L(), j(D, { key: 0 }, [r[1] ||= M("span", null, "Создал", -1), P(GD, {
24964
+ return (t, r) => (L(), j("div", null, [r[11] ||= M("h3", null, "Детали заказа", -1), M("div", YD, [
24965
+ r[9] ||= M("span", null, "Создал", -1),
24966
+ P(JD, {
24946
24967
  user: e.order.creator,
24947
24968
  class: "col-span-2"
24948
- }, null, 8, ["user"])], 64)),
24969
+ }, null, 8, ["user"]),
24949
24970
  r[10] ||= M("span", null, "Клиент", -1),
24950
24971
  P(bm, {
24951
24972
  client: e.order.client,
24952
24973
  class: "col-span-2",
24953
24974
  "onClick:clientName": r[0] ||= (t) => n("click:client-name", e.order.client, t)
24954
24975
  }, null, 8, ["client"]),
24955
- e.order.contragent ? (L(), j(D, { key: 1 }, [r[2] ||= M("span", null, "Контрагент", -1), P(Sm, {
24976
+ e.order.contragent ? (L(), j(D, { key: 0 }, [r[1] ||= M("span", null, "Контрагент", -1), P(Sm, {
24956
24977
  contragent: e.order.contragent,
24957
24978
  class: "col-span-2"
24958
24979
  }, null, 8, ["contragent"])], 64)) : A("", !0),
24959
- e.order.image ? (L(), j(D, { key: 2 }, [r[3] ||= M("span", null, "Графический файл клиента", -1), r[4] ||= M("a", {
24980
+ e.order.image ? (L(), j(D, { key: 1 }, [r[2] ||= M("span", null, "Графический файл клиента", -1), r[3] ||= M("a", {
24960
24981
  class: "fancybox col-span-2",
24961
24982
  href: "{{ order.image }}"
24962
24983
  }, " Посмотреть ", -1)], 64)) : A("", !0),
24963
- e.order.barcode ? (L(), j(D, { key: 3 }, [r[5] ||= M("span", null, "Штрих-код", -1), M("span", qD, B(e.order.barcode), 1)], 64)) : A("", !0),
24964
- e.order.payment ? (L(), j(D, { key: 4 }, [r[6] ||= M("span", null, "Оплата", -1), P(hD, {
24984
+ e.order.barcode ? (L(), j(D, { key: 2 }, [r[4] ||= M("span", null, "Штрих-код", -1), M("span", XD, B(e.order.barcode), 1)], 64)) : A("", !0),
24985
+ e.order.payment ? (L(), j(D, { key: 3 }, [r[5] ||= M("span", null, "Оплата", -1), P(vD, {
24965
24986
  payment: e.order.payment,
24966
24987
  class: "col-span-2"
24967
24988
  }, null, 8, ["payment"])], 64)) : A("", !0),
24968
- e.order.delivery ? (L(), j(D, { key: 5 }, [r[7] ||= M("span", null, "Доставка", -1), P(lD, {
24989
+ e.order.delivery ? (L(), j(D, { key: 4 }, [r[6] ||= M("span", null, "Доставка", -1), P(fD, {
24969
24990
  delivery: e.order.delivery,
24970
24991
  class: "col-span-2"
24971
24992
  }, null, 8, ["delivery"])], 64)) : A("", !0),
24972
- e.order.comment ? (L(), j(D, { key: 6 }, [r[8] ||= M("span", null, "Комментарий", -1), M("span", JD, B(e.order.comment), 1)], 64)) : A("", !0),
24973
- e.order.attachedUser ? (L(), j(D, { key: 7 }, [r[9] ||= M("span", null, "Закреплен за", -1), P(GD, {
24993
+ e.order.comment ? (L(), j(D, { key: 5 }, [r[7] ||= M("span", null, "Комментарий", -1), M("span", ZD, B(e.order.comment), 1)], 64)) : A("", !0),
24994
+ e.order.attachedUser ? (L(), j(D, { key: 6 }, [r[8] ||= M("span", null, "Закреплен за", -1), P(JD, {
24974
24995
  user: e.order.attachedUser,
24975
24996
  class: "col-span-2"
24976
24997
  }, null, 8, ["user"])], 64)) : A("", !0)
24977
24998
  ])]));
24978
24999
  }
24979
- }), XD = {
25000
+ }), $D = {
24980
25001
  viewBox: "0 0 512 512",
24981
25002
  width: "1.2em",
24982
25003
  height: "1.2em"
24983
25004
  };
24984
- function ZD(e, t) {
24985
- return L(), j("svg", XD, [...t[0] ||= [M("rect", {
25005
+ function eO(e, t) {
25006
+ return L(), j("svg", $D, [...t[0] ||= [M("rect", {
24986
25007
  width: "336",
24987
25008
  height: "336",
24988
25009
  x: "128",
@@ -25002,10 +25023,10 @@ function ZD(e, t) {
25002
25023
  d: "m383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"
25003
25024
  }, null, -1)]]);
25004
25025
  }
25005
- var QD = it({
25026
+ var tO = it({
25006
25027
  name: "ion-copy-outline",
25007
- render: ZD
25008
- }), $D = { class: "flex flex-col items-stretch gap-1.5 text-base" }, eO = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
25028
+ render: eO
25029
+ }), nO = { class: "flex flex-col items-stretch gap-1.5 text-base" }, rO = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
25009
25030
  __name: "order-external-links",
25010
25031
  props: {
25011
25032
  showErpLink: {
@@ -25020,8 +25041,8 @@ var QD = it({
25020
25041
  return e.showErpLink && !!e.order.erpOrderUrl || t || !!e.order.payment?.onlinePaymentLink;
25021
25042
  });
25022
25043
  return (n, r) => {
25023
- let i = nn, a = QD;
25024
- return t.value ? (L(), j(D, { key: 0 }, [r[2] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "Внешние ссылки", -1), M("div", $D, [
25044
+ let i = nn, a = tO;
25045
+ return t.value ? (L(), j(D, { key: 0 }, [r[2] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "Внешние ссылки", -1), M("div", nO, [
25025
25046
  e.showErpLink && e.order.erpOrderUrl ? (L(), k(i, {
25026
25047
  key: 0,
25027
25048
  tag: "a",
@@ -25055,10 +25076,10 @@ var QD = it({
25055
25076
  ])], 64)) : A("", !0);
25056
25077
  };
25057
25078
  }
25058
- }), [["__scopeId", "data-v-53afb2ef"]]), tO = { key: 0 }, nO = { class: "text-sc-dark-grey my-2 text-center" }, rO = {
25079
+ }), [["__scopeId", "data-v-53afb2ef"]]), iO = { key: 0 }, aO = { class: "text-sc-dark-grey my-2 text-center" }, oO = {
25059
25080
  key: 1,
25060
25081
  class: "text-sc-dark-grey my-2 text-center"
25061
- }, iO = { key: 2 }, aO = { class: "text-sc-dark-grey mt-4 text-right font-bold" }, oO = { class: "text-sc-primary" }, sO = { class: "mb-4 max-w-xs empty:hidden" }, cO = /* @__PURE__ */ F({
25082
+ }, sO = { key: 2 }, cO = { class: "text-sc-dark-grey mt-4 text-right font-bold" }, lO = { class: "text-sc-primary" }, uO = { class: "mb-4 max-w-xs empty:hidden" }, dO = /* @__PURE__ */ F({
25062
25083
  __name: "order-info",
25063
25084
  props: {
25064
25085
  order: {},
@@ -25085,11 +25106,11 @@ var QD = it({
25085
25106
  o();
25086
25107
  }), (t, n) => {
25087
25108
  let o = On;
25088
- return i.value ? (L(), j("div", tO, [M("div", nO, [P(o, {
25109
+ return i.value ? (L(), j("div", iO, [M("div", aO, [P(o, {
25089
25110
  size: "small",
25090
25111
  class: "mb-2.5 align-middle"
25091
- }), n[1] ||= M("div", null, [M("span", null, "Загрузка данных ...")], -1)])])) : !a.value || a.value.products.length === 0 ? (L(), j("div", rO, " --- Не удалось загрузить данные о заказе --- ")) : (L(), j("div", iO, [
25092
- P(BD, {
25112
+ }), n[1] ||= M("div", null, [M("span", null, "Загрузка данных ...")], -1)])])) : !a.value || a.value.products.length === 0 ? (L(), j("div", oO, " --- Не удалось загрузить данные о заказе --- ")) : (L(), j("div", sO, [
25113
+ P(UD, {
25093
25114
  products: s.value,
25094
25115
  "event-emitter": e.eventEmitter,
25095
25116
  "allow-edit": e.allowEdit
@@ -25098,20 +25119,20 @@ var QD = it({
25098
25119
  "event-emitter",
25099
25120
  "allow-edit"
25100
25121
  ]),
25101
- M("div", aO, [n[2] ||= N(" ИТОГО: ", -1), M("span", oO, B(c.value) + " ₽", 1)]),
25102
- P(YD, {
25122
+ M("div", cO, [n[2] ||= N(" ИТОГО: ", -1), M("span", lO, B(c.value) + " ₽", 1)]),
25123
+ P(QD, {
25103
25124
  order: a.value,
25104
25125
  "onClick:clientName": n[0] ||= (e) => r("click:client-name", a.value.client, e)
25105
25126
  }, null, 8, ["order"]),
25106
- M("div", sO, [P(eO, {
25127
+ M("div", uO, [P(rO, {
25107
25128
  order: a.value,
25108
25129
  "show-erp-link": ""
25109
25130
  }, null, 8, ["order"])]),
25110
- P(UD, { order: a.value }, null, 8, ["order"])
25131
+ P(KD, { order: a.value }, null, 8, ["order"])
25111
25132
  ]));
25112
25133
  };
25113
25134
  }
25114
- }), lO = /* @__PURE__ */ F({
25135
+ }), fO = /* @__PURE__ */ F({
25115
25136
  __name: "order-actions",
25116
25137
  props: {
25117
25138
  orderContextButtonsConfig: {
@@ -25149,7 +25170,7 @@ var QD = it({
25149
25170
  }, 8, ["options", "size"])) : A("", !0);
25150
25171
  };
25151
25172
  }
25152
- }), uO = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
25173
+ }), pO = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
25153
25174
  __name: "orders-list",
25154
25175
  props: /*@__PURE__*/ ot({
25155
25176
  fields: {},
@@ -25244,7 +25265,7 @@ var QD = it({
25244
25265
  }, s = {
25245
25266
  type: "expand",
25246
25267
  expandable: fe(!0),
25247
- renderExpand: (e) => I(cO, {
25268
+ renderExpand: (e) => I(dO, {
25248
25269
  order: e,
25249
25270
  class: "pl-10 pt-3 pb-10",
25250
25271
  "onClick:client-name": () => {
@@ -25305,7 +25326,7 @@ var QD = it({
25305
25326
  key: vr.DeliveryInfo,
25306
25327
  resizable: !0,
25307
25328
  minWidth: 320,
25308
- render: (e) => I(lD, { delivery: e.delivery })
25329
+ render: (e) => I(fD, { delivery: e.delivery })
25309
25330
  },
25310
25331
  {
25311
25332
  title: "Клиент",
@@ -25343,7 +25364,7 @@ var QD = it({
25343
25364
  resizable: !0,
25344
25365
  width: 115,
25345
25366
  minWidth: 95,
25346
- render: (e) => e.payment ? I(hD, { payment: e.payment }) : I("span", { class: "text-base" }, "—")
25367
+ render: (e) => e.payment ? I(vD, { payment: e.payment }) : I("span", { class: "text-base" }, "—")
25347
25368
  },
25348
25369
  {
25349
25370
  title: "Напр. продаж",
@@ -25365,7 +25386,7 @@ var QD = it({
25365
25386
  title: "",
25366
25387
  className: "align-top",
25367
25388
  width: 50,
25368
- render: (e) => I(lO, {
25389
+ render: (e) => I(fO, {
25369
25390
  order: e,
25370
25391
  orderContextButtonsConfig: r.orderContextButtonsConfig,
25371
25392
  onOrderContextSelect: r.onOrderContextSelect
@@ -25405,7 +25426,7 @@ var QD = it({
25405
25426
  key: "order",
25406
25427
  title: "Заказ",
25407
25428
  resizable: !0,
25408
- render: (e) => I(mD, {
25429
+ render: (e) => I(_D, {
25409
25430
  order: e,
25410
25431
  fields: t,
25411
25432
  orderUrl: r.orderUrl,
@@ -25546,12 +25567,12 @@ var QD = it({
25546
25567
  ]);
25547
25568
  };
25548
25569
  }
25549
- }), [["__scopeId", "data-v-ee3efccb"]]), dO = O(() => ce().deliveryTypeReference ?? []), fO = O(() => ce().managersList ?? []), pO = O(() => ce().opfReference ?? []), mO = O(() => ce().partnerGroupsReference ?? []), hO = O(() => ce().priceCoefficientsReference ?? []), gO = O(() => ce().productFilesTypesReference ?? []), _O = O(() => ce().resourceTypesReference), vO = O(() => ce().salesDirectionsReference ?? []), yO = O(() => ce().warehousesReference ?? []), bO = O(() => ce().paymentTypeReference ?? []), xO = O(() => ce().orderStatusReference ?? []), SO = O(() => ce().orderStatusDetailReference ?? []), CO = O(() => ce().operatorReference ?? []), wO = O(() => zr.convertReferencesToSelectOptionsList(ce().channelPrimaryInterestsReference ?? [], !0, !1, !0)), TO = O(() => zr.convertReferencesToSelectOptionsList(ce().sourcePrimaryInterestsReference ?? [], !0, !1, !0)), EO = (e) => d.getInstance(T).searchCity(e), DO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e?.isNewRec() ? "-" : `${e.name}, ${e?.region?.name}, ${e?.region?.country?.name}`, (e) => e?.isNewRec()), OO = async (e) => Me(await d.getInstance(T).searchRegion(e), (e) => new E(e)), kO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : Ae(de([e.name, e.country.name]), ", "), (e) => e.isNewRec()), AO = (e) => d.getInstance(r).searchClient(e), jO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : [
25570
+ }), [["__scopeId", "data-v-ee3efccb"]]), mO = O(() => ce().deliveryTypeReference ?? []), hO = O(() => ce().managersList ?? []), gO = O(() => ce().opfReference ?? []), _O = O(() => ce().partnerGroupsReference ?? []), vO = O(() => ce().priceCoefficientsReference ?? []), yO = O(() => ce().productFilesTypesReference ?? []), bO = O(() => ce().resourceTypesReference), xO = O(() => ce().salesDirectionsReference ?? []), SO = O(() => ce().warehousesReference ?? []), CO = O(() => ce().paymentTypeReference ?? []), wO = O(() => ce().orderStatusReference ?? []), TO = O(() => ce().orderStatusDetailReference ?? []), EO = O(() => ce().operatorReference ?? []), DO = O(() => zr.convertReferencesToSelectOptionsList(ce().channelPrimaryInterestsReference ?? [], !0, !1, !0)), OO = O(() => zr.convertReferencesToSelectOptionsList(ce().sourcePrimaryInterestsReference ?? [], !0, !1, !0)), kO = (e) => d.getInstance(T).searchCity(e), AO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e?.isNewRec() ? "-" : `${e.name}, ${e?.region?.name}, ${e?.region?.country?.name}`, (e) => e?.isNewRec()), jO = async (e) => Me(await d.getInstance(T).searchRegion(e), (e) => new E(e)), MO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : Ae(de([e.name, e.country.name]), ", "), (e) => e.isNewRec()), NO = (e) => d.getInstance(r).searchClient(e), PO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : [
25550
25571
  e.name,
25551
25572
  e.salesDirection.name ? `(${e.salesDirection.name})` : void 0,
25552
25573
  e.city.name ? `г. ${e.city.name}${e.city.region.name ? `, ${e.city.region.name}` : ""}` : void 0,
25553
25574
  e.isActive ? void 0 : "[ Деактивирован ]"
25554
- ].filter(Boolean).join(" "), (e) => e?.isNewRec()), MO = { class: "flex flex-col gap-4" }, NO = { class: "flex flex-wrap gap-2" }, PO = { class: "flex flex-col gap-1.5" }, FO = { class: "inline-flex items-center gap-2" }, IO = { class: "flex flex-col gap-1.5" }, LO = { class: "inline-flex items-center gap-2" }, RO = /* @__PURE__ */ F({
25575
+ ].filter(Boolean).join(" "), (e) => e?.isNewRec()), FO = { class: "flex flex-col gap-4" }, IO = { class: "flex flex-wrap gap-2" }, LO = { class: "flex flex-col gap-1.5" }, RO = { class: "inline-flex items-center gap-2" }, zO = { class: "flex flex-col gap-1.5" }, BO = { class: "inline-flex items-center gap-2" }, VO = /* @__PURE__ */ F({
25555
25576
  __name: "order-highlight-settings",
25556
25577
  props: {
25557
25578
  settings: {},
@@ -25559,7 +25580,7 @@ var QD = it({
25559
25580
  },
25560
25581
  emits: ["update:settings"],
25561
25582
  setup(e, { emit: t }) {
25562
- let n = e, r = t, i = O(() => n.statuses ?? xO.value), a = (e) => !!e && n.settings.statuses.includes(e), o = (e, t) => {
25583
+ let n = e, r = t, i = O(() => n.statuses ?? wO.value), a = (e) => !!e && n.settings.statuses.includes(e), o = (e, t) => {
25563
25584
  if (!e) return;
25564
25585
  let i = n.settings.statuses.filter((t) => t !== e);
25565
25586
  r("update:settings", {
@@ -25580,8 +25601,8 @@ var QD = it({
25580
25601
  };
25581
25602
  return (t, n) => {
25582
25603
  let r = nn, l = rn;
25583
- return L(), j("div", MO, [
25584
- M("div", NO, [P(r, {
25604
+ return L(), j("div", FO, [
25605
+ M("div", IO, [P(r, {
25585
25606
  size: "small",
25586
25607
  onClick: n[0] ||= (e) => c(!0)
25587
25608
  }, {
@@ -25594,26 +25615,26 @@ var QD = it({
25594
25615
  default: U(() => [...n[3] ||= [N(" Снять всё ", -1)]]),
25595
25616
  _: 1
25596
25617
  })]),
25597
- M("div", PO, [n[4] ||= M("div", { class: "text-sm font-semibold" }, "Статусы", -1), (L(!0), j(D, null, bt(i.value, (e) => (L(), k(l, {
25618
+ M("div", LO, [n[4] ||= M("div", { class: "text-sm font-semibold" }, "Статусы", -1), (L(!0), j(D, null, bt(i.value, (e) => (L(), k(l, {
25598
25619
  key: e.id,
25599
25620
  checked: a(e.slug),
25600
25621
  "onUpdate:checked": (t) => o(e.slug, t)
25601
25622
  }, {
25602
- default: U(() => [M("span", FO, [P(kD, { colors: V(lr)(e.slug) }, null, 8, ["colors"]), N(" " + B(e.name), 1)])]),
25623
+ default: U(() => [M("span", RO, [P(MD, { colors: V(lr)(e.slug) }, null, 8, ["colors"]), N(" " + B(e.name), 1)])]),
25603
25624
  _: 2
25604
25625
  }, 1032, ["checked", "onUpdate:checked"]))), 128))]),
25605
- M("div", IO, [n[5] ||= M("div", { class: "text-sm font-semibold" }, "Маркеры", -1), (L(!0), j(D, null, bt(V(mr), (t) => (L(), k(l, {
25626
+ M("div", zO, [n[5] ||= M("div", { class: "text-sm font-semibold" }, "Маркеры", -1), (L(!0), j(D, null, bt(V(mr), (t) => (L(), k(l, {
25606
25627
  key: t,
25607
25628
  checked: e.settings.markers.includes(t),
25608
25629
  "onUpdate:checked": (e) => s(t, e)
25609
25630
  }, {
25610
- default: U(() => [M("span", LO, [P(kD, { colors: V(hr)(t) }, null, 8, ["colors"]), N(" " + B(V(gr)(t)), 1)])]),
25631
+ default: U(() => [M("span", BO, [P(MD, { colors: V(hr)(t) }, null, 8, ["colors"]), N(" " + B(V(gr)(t)), 1)])]),
25611
25632
  _: 2
25612
25633
  }, 1032, ["checked", "onUpdate:checked"]))), 128))])
25613
25634
  ]);
25614
25635
  };
25615
25636
  }
25616
- }), zO = ["href"], BO = { class: "text-sc-dark-grey" }, VO = /* @__PURE__ */ F({
25637
+ }), HO = ["href"], UO = { class: "text-sc-dark-grey" }, WO = /* @__PURE__ */ F({
25617
25638
  __name: "short-text-order-info",
25618
25639
  props: {
25619
25640
  order: {},
@@ -25630,20 +25651,20 @@ var QD = it({
25630
25651
  M("a", {
25631
25652
  href: e.orderLink ?? "#",
25632
25653
  onClick: n[0] ||= (e) => a(e)
25633
- }, B(e.order.id), 9, zO),
25654
+ }, B(e.order.id), 9, HO),
25634
25655
  N(" от " + B(i.value), 1)
25635
25656
  ]),
25636
25657
  n[2] ||= N(", ", -1),
25637
- M("span", BO, "автор: " + B(e.order.creator.name) + " [" + B(e.order.creator.type) + "]", 1)
25658
+ M("span", UO, "автор: " + B(e.order.creator.name) + " [" + B(e.order.creator.type) + "]", 1)
25638
25659
  ], 64));
25639
25660
  }
25640
- }), HO = { class: "sc-page flex flex-col bg-inherit" }, UO = { class: "my-2 flex flex-row items-end" }, WO = { class: "sc-title grow" }, GO = {
25661
+ }), GO = { class: "sc-page flex flex-col bg-inherit" }, KO = { class: "my-2 flex flex-row items-end" }, qO = { class: "sc-title grow" }, JO = {
25641
25662
  key: 0,
25642
25663
  class: "sc-title-buttons flex-1 grow-0"
25643
- }, KO = { class: "flex flex-col justify-end gap-1 sm:mt-0 sm:flex-row" }, qO = {
25664
+ }, YO = { class: "flex flex-col justify-end gap-1 sm:mt-0 sm:flex-row" }, XO = {
25644
25665
  key: 0,
25645
25666
  class: "sc-title-extra mt-2 sm:mt-4"
25646
- }, JO = /* @__PURE__ */ F({
25667
+ }, ZO = /* @__PURE__ */ F({
25647
25668
  __name: "page",
25648
25669
  props: {
25649
25670
  title: { default: void 0 },
@@ -25658,20 +25679,20 @@ var QD = it({
25658
25679
  let t = e, n = O(() => t.stickyHeaderOnMobile ? "sticky z-10 bg-inherit" : "lg:sticky z-10 bg-inherit");
25659
25680
  return (t, r) => {
25660
25681
  let i = mn;
25661
- return L(), j("div", HO, [M("div", {
25682
+ return L(), j("div", GO, [M("div", {
25662
25683
  class: lt(e.stickyHeader ? n.value : void 0),
25663
25684
  style: ut(e.stickyHeader ? { top: `${e.stickyTopOffset ?? 0}px` } : void 0)
25664
25685
  }, [
25665
- M("div", UO, [M("div", WO, [z(t.$slots, "title", {}, () => [P(i, { class: "m-0 leading-none lg:mb-3 lg:leading-normal" }, {
25686
+ M("div", KO, [M("div", qO, [z(t.$slots, "title", {}, () => [P(i, { class: "m-0 leading-none lg:mb-3 lg:leading-normal" }, {
25666
25687
  default: U(() => [N(B(e.title ?? ""), 1)]),
25667
25688
  _: 1
25668
- })])]), t.$slots["title-buttons"] ? (L(), j("div", GO, [M("div", KO, [z(t.$slots, "title-buttons")])])) : A("", !0)]),
25669
- t.$slots["title-extra"] ? (L(), j("div", qO, [z(t.$slots, "title-extra")])) : A("", !0),
25689
+ })])]), t.$slots["title-buttons"] ? (L(), j("div", JO, [M("div", YO, [z(t.$slots, "title-buttons")])])) : A("", !0)]),
25690
+ t.$slots["title-extra"] ? (L(), j("div", XO, [z(t.$slots, "title-extra")])) : A("", !0),
25670
25691
  z(t.$slots, "sticky-extra")
25671
25692
  ], 6), z(t.$slots, "default")]);
25672
25693
  };
25673
25694
  }
25674
- }), YO = { class: "overflow-hidden transition-all duration-300" }, XO = { class: "text-lg font-medium leading-none" }, ZO = /* @__PURE__ */ F({
25695
+ }), QO = { class: "overflow-hidden transition-all duration-300" }, $O = { class: "text-lg font-medium leading-none" }, ek = /* @__PURE__ */ F({
25675
25696
  __name: "sliding-content-with-drawer",
25676
25697
  props: {
25677
25698
  drawerWidth: {
@@ -25705,7 +25726,7 @@ var QD = it({
25705
25726
  window.removeEventListener("resize", s);
25706
25727
  }), s(), window.addEventListener("resize", s), (t, n) => {
25707
25728
  let r = ln, o = cn;
25708
- return L(), j(D, null, [M("div", YO, [M("div", {
25729
+ return L(), j(D, null, [M("div", QO, [M("div", {
25709
25730
  style: ut(`margin-left: ${i.value}px;`),
25710
25731
  class: "w-full"
25711
25732
  }, [z(t.$slots, "default")], 4)]), P(o, {
@@ -25716,7 +25737,7 @@ var QD = it({
25716
25737
  placement: "left"
25717
25738
  }, {
25718
25739
  default: U(() => [P(r, { closable: "" }, {
25719
- header: U(() => [z(t.$slots, "drawer-header", {}, () => [M("div", XO, B(e.title), 1)])]),
25740
+ header: U(() => [z(t.$slots, "drawer-header", {}, () => [M("div", $O, B(e.title), 1)])]),
25720
25741
  default: U(() => [z(t.$slots, "drawer-content")]),
25721
25742
  footer: U(() => [z(t.$slots, "drawer-footer")]),
25722
25743
  _: 3
@@ -25725,13 +25746,13 @@ var QD = it({
25725
25746
  }, 8, ["show", "width"])], 64);
25726
25747
  };
25727
25748
  }
25728
- }), QO = {
25749
+ }), tk = {
25729
25750
  ref: "panel-component-ref",
25730
25751
  class: "sc-page-panel flex flex-row gap-2.5 bg-inherit sm:gap-8"
25731
- }, $O = { key: 0 }, ek = { class: "sc-page-preview-panel grow" }, tk = {
25752
+ }, nk = { key: 0 }, rk = { class: "sc-page-preview-panel grow" }, ik = {
25732
25753
  key: 1,
25733
25754
  class: "sc-page-preview-panel-extra flex-none"
25734
- }, nk = /* @__PURE__ */ F({
25755
+ }, ak = /* @__PURE__ */ F({
25735
25756
  __name: "page-with-sliding-panel",
25736
25757
  props: {
25737
25758
  title: {},
@@ -25770,13 +25791,13 @@ var QD = it({
25770
25791
  closePanel: i
25771
25792
  }), (t, r) => {
25772
25793
  let i = nn;
25773
- return L(), k(JO, {
25794
+ return L(), k(ZO, {
25774
25795
  title: e.title,
25775
25796
  "sticky-header": e.stickyHeader,
25776
25797
  "sticky-top-offset": e.stickyTopOffset,
25777
25798
  "sticky-header-on-mobile": e.stickyHeaderOnMobile
25778
25799
  }, $e({
25779
- default: U(() => [P(ZO, {
25800
+ default: U(() => [P(ek, {
25780
25801
  "show-drawer": n.value,
25781
25802
  "onUpdate:showDrawer": r[1] ||= (e) => n.value = e,
25782
25803
  title: e.panelTitle
@@ -25812,8 +25833,8 @@ var QD = it({
25812
25833
  } : void 0,
25813
25834
  t.$slots["preview-panel"] || t.$slots["preview-panel-extra"] || e.isShowPanelButtonVisible ? {
25814
25835
  name: "sticky-extra",
25815
- fn: U(() => [M("div", QO, [
25816
- e.isShowPanelButtonVisible ? (L(), j("div", $O, [z(t.$slots, "show-panel-button", { onClickHandler: () => {
25836
+ fn: U(() => [M("div", tk, [
25837
+ e.isShowPanelButtonVisible ? (L(), j("div", nk, [z(t.$slots, "show-panel-button", { onClickHandler: () => {
25817
25838
  n.value = !0;
25818
25839
  } }, () => [P(i, {
25819
25840
  class: "flex-none sm:px-10 sm:py-4",
@@ -25822,8 +25843,8 @@ var QD = it({
25822
25843
  default: U(() => [N(B(e.showPanelButtonText), 1)]),
25823
25844
  _: 1
25824
25845
  })])])) : A("", !0),
25825
- M("div", ek, [z(t.$slots, "preview-panel")]),
25826
- t.$slots["preview-panel-extra"] ? (L(), j("div", tk, [z(t.$slots, "preview-panel-extra")])) : A("", !0)
25846
+ M("div", rk, [z(t.$slots, "preview-panel")]),
25847
+ t.$slots["preview-panel-extra"] ? (L(), j("div", ik, [z(t.$slots, "preview-panel-extra")])) : A("", !0)
25827
25848
  ], 512)]),
25828
25849
  key: "3"
25829
25850
  } : void 0
@@ -25835,7 +25856,7 @@ var QD = it({
25835
25856
  ]);
25836
25857
  };
25837
25858
  }
25838
- }), rk = /* @__PURE__ */ F({
25859
+ }), ok = /* @__PURE__ */ F({
25839
25860
  __name: "curator-select",
25840
25861
  props: {
25841
25862
  value: { default: null },
@@ -25919,7 +25940,7 @@ var QD = it({
25919
25940
  "options"
25920
25941
  ]));
25921
25942
  }
25922
- }), ik = /* @__PURE__ */ F({
25943
+ }), sk = /* @__PURE__ */ F({
25923
25944
  __name: "manager-operator-select",
25924
25945
  props: {
25925
25946
  value: { default: null },
@@ -26040,7 +26061,7 @@ var QD = it({
26040
26061
  "options"
26041
26062
  ]));
26042
26063
  }
26043
- }), ak = /* @__PURE__ */ F({
26064
+ }), ck = /* @__PURE__ */ F({
26044
26065
  __name: "manager-select",
26045
26066
  props: {
26046
26067
  value: { default: null },
@@ -26132,11 +26153,11 @@ var QD = it({
26132
26153
  "options"
26133
26154
  ]));
26134
26155
  }
26135
- }), ok = { class: "m-0.5 flex flex-col p-0.5" }, sk = { "data-testid": "address-line" }, ck = { key: 0 }, lk = { key: 1 }, uk = { key: 2 }, dk = { key: 3 }, fk = { "data-testid": "address-line" }, pk = { key: 0 }, mk = { key: 1 }, hk = { key: 2 }, gk = { key: 3 }, _k = {
26156
+ }), lk = { class: "m-0.5 flex flex-col p-0.5" }, uk = { "data-testid": "address-line" }, dk = { key: 0 }, fk = { key: 1 }, pk = { key: 2 }, mk = { key: 3 }, hk = { "data-testid": "address-line" }, gk = { key: 0 }, _k = { key: 1 }, vk = { key: 2 }, yk = { key: 3 }, bk = {
26136
26157
  key: 0,
26137
26158
  "data-testid": "address-quality-label",
26138
26159
  class: "text-sc-warning text-xs"
26139
- }, vk = /* @__PURE__ */ F({
26160
+ }, xk = /* @__PURE__ */ F({
26140
26161
  __name: "address-suggestion-label",
26141
26162
  props: {
26142
26163
  addr: {},
@@ -26144,28 +26165,28 @@ var QD = it({
26144
26165
  },
26145
26166
  setup(e) {
26146
26167
  let t = e, n = O(() => Tr.getLabel(t.addr.quality));
26147
- return (t, r) => (L(), j("div", ok, [
26148
- M("span", sk, [
26149
- e.addr.postIndex ? (L(), j("span", ck, B(e.addr.postIndex) + ", ", 1)) : A("", !0),
26150
- e.addr.city ? (L(), j("span", lk, B(e.addr.city) + ", ", 1)) : A("", !0),
26151
- e.addr.locality ? (L(), j("span", uk, B(e.addr.locality) + ", ", 1)) : A("", !0),
26152
- e.addr.region ? (L(), j("span", dk, B(e.addr.region) + ", ", 1)) : A("", !0)
26168
+ return (t, r) => (L(), j("div", lk, [
26169
+ M("span", uk, [
26170
+ e.addr.postIndex ? (L(), j("span", dk, B(e.addr.postIndex) + ", ", 1)) : A("", !0),
26171
+ e.addr.city ? (L(), j("span", fk, B(e.addr.city) + ", ", 1)) : A("", !0),
26172
+ e.addr.locality ? (L(), j("span", pk, B(e.addr.locality) + ", ", 1)) : A("", !0),
26173
+ e.addr.region ? (L(), j("span", mk, B(e.addr.region) + ", ", 1)) : A("", !0)
26153
26174
  ]),
26154
- M("span", fk, [
26155
- e.addr.street ? (L(), j("span", pk, B(e.addr.street) + ", ", 1)) : A("", !0),
26156
- e.addr.building ? (L(), j("span", mk, B(e.addr.building) + ", ", 1)) : A("", !0),
26157
- e.addr.buildingPart ? (L(), j("span", hk, B(e.addr.buildingPart) + ", ", 1)) : A("", !0),
26158
- e.addr.apartments ? (L(), j("span", gk, B(e.addr.apartments) + ", ", 1)) : A("", !0)
26175
+ M("span", hk, [
26176
+ e.addr.street ? (L(), j("span", gk, B(e.addr.street) + ", ", 1)) : A("", !0),
26177
+ e.addr.building ? (L(), j("span", _k, B(e.addr.building) + ", ", 1)) : A("", !0),
26178
+ e.addr.buildingPart ? (L(), j("span", vk, B(e.addr.buildingPart) + ", ", 1)) : A("", !0),
26179
+ e.addr.apartments ? (L(), j("span", yk, B(e.addr.apartments) + ", ", 1)) : A("", !0)
26159
26180
  ]),
26160
- n.value ? (L(), j("span", _k, B(n.value), 1)) : A("", !0)
26181
+ n.value ? (L(), j("span", bk, B(n.value), 1)) : A("", !0)
26161
26182
  ]));
26162
26183
  }
26163
- }), yk = {
26184
+ }), Sk = {
26164
26185
  clearable: !1,
26165
26186
  value: "",
26166
26187
  field: void 0,
26167
26188
  disabled: !1
26168
- }, bk = /* @__PURE__ */ F({
26189
+ }, Ck = /* @__PURE__ */ F({
26169
26190
  __name: "address-suggestion",
26170
26191
  props: /*@__PURE__*/ at({
26171
26192
  disabled: { type: Boolean },
@@ -26177,7 +26198,7 @@ var QD = it({
26177
26198
  wrapContent: { type: Boolean },
26178
26199
  searchDataHandler: { type: Function }
26179
26200
  }, {
26180
- ...yk,
26201
+ ...Sk,
26181
26202
  minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
26182
26203
  searchDataHandler: void 0,
26183
26204
  wrapContent: !0
@@ -26199,7 +26220,7 @@ var QD = it({
26199
26220
  }));
26200
26221
  }, p = (e, t) => {
26201
26222
  let n = s.value.find((t) => t.id === e.value) || {};
26202
- return I(vk, {
26223
+ return I(xk, {
26203
26224
  addr: n,
26204
26225
  selected: t
26205
26226
  }, { default: fe("-") });
@@ -26239,16 +26260,16 @@ var QD = it({
26239
26260
  ]);
26240
26261
  };
26241
26262
  }
26242
- }), xk = { class: "m-0.5 flex flex-col p-0.5" }, Sk = { class: "font-medium" }, Ck = { class: "flex flex-row gap-1 text-xs font-light text-blue-800" }, wk = { key: 0 }, Tk = { key: 1 }, Ek = /* @__PURE__ */ F({
26263
+ }), wk = { class: "m-0.5 flex flex-col p-0.5" }, Tk = { class: "font-medium" }, Ek = { class: "flex flex-row gap-1 text-xs font-light text-blue-800" }, Dk = { key: 0 }, Ok = { key: 1 }, kk = /* @__PURE__ */ F({
26243
26264
  __name: "bank-suggestion-label",
26244
26265
  props: {
26245
26266
  bank: {},
26246
26267
  selected: { type: Boolean }
26247
26268
  },
26248
26269
  setup(e) {
26249
- return (t, n) => (L(), j("div", xk, [M("span", Sk, B(e.bank.name), 1), M("span", Ck, [e.bank.bic ? (L(), j("span", wk, " БИК: " + B(e.bank.bic), 1)) : A("", !0), e.bank.inn ? (L(), j("span", Tk, " ИНН: " + B(e.bank.inn), 1)) : A("", !0)])]));
26270
+ return (t, n) => (L(), j("div", wk, [M("span", Tk, B(e.bank.name), 1), M("span", Ek, [e.bank.bic ? (L(), j("span", Dk, " БИК: " + B(e.bank.bic), 1)) : A("", !0), e.bank.inn ? (L(), j("span", Ok, " ИНН: " + B(e.bank.inn), 1)) : A("", !0)])]));
26250
26271
  }
26251
- }), Dk = /* @__PURE__ */ F({
26272
+ }), Ak = /* @__PURE__ */ F({
26252
26273
  __name: "bank-suggestion",
26253
26274
  props: /*@__PURE__*/ at({
26254
26275
  disabled: { type: Boolean },
@@ -26259,7 +26280,7 @@ var QD = it({
26259
26280
  consistentMenuWidth: { type: Boolean },
26260
26281
  wrapContent: { type: Boolean }
26261
26282
  }, {
26262
- ...yk,
26283
+ ...Sk,
26263
26284
  minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
26264
26285
  wrapContent: !0
26265
26286
  }),
@@ -26285,7 +26306,7 @@ var QD = it({
26285
26306
  }
26286
26307
  }, p = (e, t) => {
26287
26308
  let n = s.value.find((t) => t.id === e.value) || {};
26288
- return I(Ek, {
26309
+ return I(kk, {
26289
26310
  bank: n,
26290
26311
  selected: t
26291
26312
  }, { default: fe("-") });
@@ -26325,18 +26346,18 @@ var QD = it({
26325
26346
  ]);
26326
26347
  };
26327
26348
  }
26328
- }), Ok = { class: "font-medium" }, kk = {
26349
+ }), jk = { class: "font-medium" }, Mk = {
26329
26350
  key: 0,
26330
26351
  "data-testid": "org-details",
26331
26352
  class: "text-xs font-light"
26332
- }, Ak = {
26353
+ }, Nk = {
26333
26354
  key: 0,
26334
26355
  "data-testid": "org-inn",
26335
26356
  class: "mr-2 whitespace-nowrap text-blue-800"
26336
- }, jk = {
26357
+ }, Pk = {
26337
26358
  key: 1,
26338
26359
  class: "text-sc-dark-grey"
26339
- }, Mk = /* @__PURE__ */ F({
26360
+ }, Fk = /* @__PURE__ */ F({
26340
26361
  __name: "org-suggestion-label",
26341
26362
  props: {
26342
26363
  org: {},
@@ -26344,9 +26365,9 @@ var QD = it({
26344
26365
  },
26345
26366
  setup(e) {
26346
26367
  let t = e, n = O(() => t.org.rawData?.state?.liquidationDate ?? !1), r = O(() => t.org.rawData?.address?.value ?? "");
26347
- return (t, i) => (L(), j("div", { class: lt(`m-0.5 flex flex-col p-0.5 ${n.value ? "line-through" : ""}`) }, [M("span", Ok, B(e.org.name), 1), e.org.inn || r.value ? (L(), j("div", kk, [e.org.inn ? (L(), j("span", Ak, B(e.org.inn), 1)) : A("", !0), r.value ? (L(), j("span", jk, B(r.value), 1)) : A("", !0)])) : A("", !0)], 2));
26368
+ return (t, i) => (L(), j("div", { class: lt(`m-0.5 flex flex-col p-0.5 ${n.value ? "line-through" : ""}`) }, [M("span", jk, B(e.org.name), 1), e.org.inn || r.value ? (L(), j("div", Mk, [e.org.inn ? (L(), j("span", Nk, B(e.org.inn), 1)) : A("", !0), r.value ? (L(), j("span", Pk, B(r.value), 1)) : A("", !0)])) : A("", !0)], 2));
26348
26369
  }
26349
- }), Nk = /* @__PURE__ */ F({
26370
+ }), Ik = /* @__PURE__ */ F({
26350
26371
  __name: "org-suggestion",
26351
26372
  props: /*@__PURE__*/ at({
26352
26373
  disabled: { type: Boolean },
@@ -26358,7 +26379,7 @@ var QD = it({
26358
26379
  wrapContent: { type: Boolean },
26359
26380
  allowSelectTerminated: { type: Boolean }
26360
26381
  }, {
26361
- ...yk,
26382
+ ...Sk,
26362
26383
  minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
26363
26384
  wrapContent: !0
26364
26385
  }),
@@ -26381,7 +26402,7 @@ var QD = it({
26381
26402
  }
26382
26403
  }, m = (e, t) => {
26383
26404
  let n = s.value.find((t) => t.id === e.value) || {};
26384
- return I(Mk, {
26405
+ return I(Fk, {
26385
26406
  org: n,
26386
26407
  selected: t
26387
26408
  }, { default: fe("-") });
@@ -26423,4 +26444,4 @@ var QD = it({
26423
26444
  }
26424
26445
  });
26425
26446
  //#endregion
26426
- export { mr as ALL_ORDER_MARKERS, Tr as AddressQualityLabelHelper, Kn as CATEGORY_REQUIRED_HINT, Br as CommonValidators, Xd as ConfiguratorSettingsKozyrek, bh as ConfiguratorSettingsMosquito, Or as ContentHelper, kr as CurrencyHelper, sr as DEFAULT_ORDER_STATUS_COLORS, Vr as DateValidators, jr as EntityNameHelper, Ar as FileHelper, Fd as KozyrekLine, Yd as KozyrekTailTemplate, Jd as KozyrekTemplate, Gr as M2PriceHelper, Wn as MODE_DISABLED_HINT, Lr as NumberHelper, W as NumericValidators, fr as ORDER_MARKER_COLORS, pr as ORDER_MARKER_NAMES, cr as ORDER_STATUS_COLORS, or as OrderMarkerEnum, vr as OrdersTableFields, Gn as PRODUCT_REQUIRED_HINT, Pd as Point, fm as ScAddProductToCartDialog, bk as ScAddressSuggestion, vk as ScAddressSuggestionLabel, Dk as ScBankSuggestion, Ek as ScBankSuggestionLabel, Va as ScBaseDialog, Kr as ScButtonWithConfirmAction, sm as ScCategoryCollapse, Jr as ScChipGroup, bm as ScClientNameWithShortInfo, om as ScCollapse, Ii as ScCollapseItem, N_ as ScCommentEditor, nv as ScCompactCardList, ko as ScConfiguratorsProductInfo, Sm as ScContragentWithShortInfo, _D as ScCreatorUserTypeTag, rk as ScCuratorSelect, u_ as ScDateRange, f_ as ScDateTimeLabel, H_ as ScDebouncedInput, U_ as ScDebouncedInputNumber, p_ as ScDebt, v_ as ScDialogHeader, Hp as ScDynamicConfigurator, Dm as ScEmail, $_ as ScExternalLink, Oa as ScImageGallery, A_ as ScInlineEditableItem, k_ as ScInlineView, $d as ScKozyrekConfigurator, Bo as ScKozyrekConfiguratorParamsForm, qd as ScKozyrekConfiguratorPreview, Ud as ScKozyrekConfiguratorTemplates, q_ as ScKpiGrid, Ta as ScLightGallery, ik as ScManagerOperatorSelect, ak as ScManagerSelect, Lf as ScMetalForDoorsConfigurator, Ff as ScMetalForDoorsConfiguratorForm, bf as ScMosquitoConfigurator, uf as ScMosquitoConfiguratorForm, vf as ScMosquitoConfiguratorMeasurementInstructions, nf as ScMosquitoConfiguratorPreview, kD as ScOrderColorSwatch, mD as ScOrderCommonInfo, lD as ScOrderDeliveryLabel, YD as ScOrderDetails, eO as ScOrderExternalLinks, RO as ScOrderHighlightSettings, cO as ScOrderInfo, qE as ScOrderItemParams, BD as ScOrderItemsList, hD as ScOrderPayment, wD as ScOrderProductInfo, UD as ScOrderStatusHistory, OD as ScOrderStatusTag, uO as ScOrdersList, Nk as ScOrgSuggestion, Mk as ScOrgSuggestionLabel, JO as ScPage, nk as ScPageWithSlidingPanel, yh as ScPersonContactsBlock, eh as ScPhone, W_ as ScPhoneInput, Ra as ScProductInfoContent, Wa as ScProductInfoDialog, qa as ScProductInfoPopover, go as ScProductName, bE as ScProductsList, cm as ScReferenceSelect, ap as ScSandwichConfigurator, np as ScSandwichConfiguratorForm, Ip as ScSandwichM2Configurator, Np as ScSandwichM2ConfiguratorForm, mE as ScSearchableProductSelect, pE as ScSearchableReferenceSelect, lm as ScSetClientPriceFormItem, VO as ScShortTextOrderInfo, L_ as ScSingleFileUploadSelector, ZO as ScSlidingContentWithDrawer, Nf as ScStripConfigurator, Ef as ScStripConfiguratorForm, xf as ScStripConfiguratorLineItem, Af as ScStripConfiguratorPreview, GD as ScUserShortInfo, V_ as ScWarningIcon, zr as SelectOptionHelper, qn as UiNotificationProvider, Hr as Validators, yr as WindowResolutionEnum, br as WindowResolutionProvider, wO as channelPrimaryInterestOptionsList, Bi as componentSizeInjectionKey, Xn as copyToClipboard, dO as deliveryTypeReferenceList, hr as getOrderMarkerColors, gr as getOrderMarkerName, _r as getOrderMarkers, lr as getOrderStatusColors, dr as getOrderStatusCssVariables, ur as getOrderStatusTagColor, Ur as getProductInfoFiles, Nr as handleFloatInput, Mr as handleIntegerInput, Wr as hasProductInfo, xh as isCanSandwichM2Show, Wp as isCanSandwichShow, Up as isConfiguratorType, fO as managersReferenceList, Vi as naiveUiTheme, CO as operatorReferenceList, pO as opfReferenceList, SO as orderStatusDetailReferenceList, xO as orderStatusReferenceList, Rr as paginationItemsPrefix, Pr as parse, mO as partnerGroupReferenceList, bO as paymentTypeReferenceList, hO as priceCoefficientsReferenceList, gO as productFilesTypesReferenceList, Id as renderConfig, Fr as resetInputValidation, _O as resourceReferencesList, vO as salesDirectionsReferenceList, EO as searchCityReferenceDataHandler, DO as searchCityReferenceLabelRenderer, AO as searchClientReferenceDataHandler, jO as searchClientReferenceLabelRenderer, OO as searchRegionReferenceDataHandler, kO as searchRegionReferenceLabelRenderer, Ir as selectAllTextOnFocus, Dr as showAppVersion, TO as sourcePrimaryInterestOptionsList, Sr as useCompactLayout, wr as useHoverSupport, $n as vCopy, ar as vFocusNext, yO as warehousesReferenceList };
26447
+ export { mr as ALL_ORDER_MARKERS, Tr as AddressQualityLabelHelper, Kn as CATEGORY_REQUIRED_HINT, Br as CommonValidators, Xd as ConfiguratorSettingsKozyrek, bh as ConfiguratorSettingsMosquito, Or as ContentHelper, kr as CurrencyHelper, sr as DEFAULT_ORDER_STATUS_COLORS, Vr as DateValidators, jr as EntityNameHelper, Ar as FileHelper, Fd as KozyrekLine, Yd as KozyrekTailTemplate, Jd as KozyrekTemplate, Gr as M2PriceHelper, Wn as MODE_DISABLED_HINT, Lr as NumberHelper, W as NumericValidators, fr as ORDER_MARKER_COLORS, pr as ORDER_MARKER_NAMES, cr as ORDER_STATUS_COLORS, or as OrderMarkerEnum, vr as OrdersTableFields, Gn as PRODUCT_REQUIRED_HINT, Pd as Point, fm as ScAddProductToCartDialog, Ck as ScAddressSuggestion, xk as ScAddressSuggestionLabel, Ak as ScBankSuggestion, kk as ScBankSuggestionLabel, Va as ScBaseDialog, Kr as ScButtonWithConfirmAction, sm as ScCategoryCollapse, Jr as ScChipGroup, bm as ScClientNameWithShortInfo, om as ScCollapse, Ii as ScCollapseItem, N_ as ScCommentEditor, nv as ScCompactCardList, ko as ScConfiguratorsProductInfo, Sm as ScContragentWithShortInfo, bD as ScCreatorUserTypeTag, ok as ScCuratorSelect, u_ as ScDateRange, f_ as ScDateTimeLabel, H_ as ScDebouncedInput, U_ as ScDebouncedInputNumber, p_ as ScDebt, v_ as ScDialogHeader, Hp as ScDynamicConfigurator, Dm as ScEmail, $_ as ScExternalLink, Oa as ScImageGallery, A_ as ScInlineEditableItem, k_ as ScInlineView, $d as ScKozyrekConfigurator, Bo as ScKozyrekConfiguratorParamsForm, qd as ScKozyrekConfiguratorPreview, Ud as ScKozyrekConfiguratorTemplates, q_ as ScKpiGrid, Ta as ScLightGallery, sk as ScManagerOperatorSelect, ck as ScManagerSelect, Lf as ScMetalForDoorsConfigurator, Ff as ScMetalForDoorsConfiguratorForm, bf as ScMosquitoConfigurator, uf as ScMosquitoConfiguratorForm, vf as ScMosquitoConfiguratorMeasurementInstructions, nf as ScMosquitoConfiguratorPreview, MD as ScOrderColorSwatch, _D as ScOrderCommonInfo, fD as ScOrderDeliveryLabel, QD as ScOrderDetails, rO as ScOrderExternalLinks, VO as ScOrderHighlightSettings, dO as ScOrderInfo, XE as ScOrderItemParams, UD as ScOrderItemsList, vD as ScOrderPayment, DD as ScOrderProductInfo, KD as ScOrderStatusHistory, jD as ScOrderStatusTag, pO as ScOrdersList, Ik as ScOrgSuggestion, Fk as ScOrgSuggestionLabel, ZO as ScPage, ak as ScPageWithSlidingPanel, yh as ScPersonContactsBlock, eh as ScPhone, W_ as ScPhoneInput, Ra as ScProductInfoContent, Wa as ScProductInfoDialog, qa as ScProductInfoPopover, go as ScProductName, bE as ScProductsList, cm as ScReferenceSelect, ap as ScSandwichConfigurator, np as ScSandwichConfiguratorForm, Ip as ScSandwichM2Configurator, Np as ScSandwichM2ConfiguratorForm, mE as ScSearchableProductSelect, pE as ScSearchableReferenceSelect, lm as ScSetClientPriceFormItem, WO as ScShortTextOrderInfo, L_ as ScSingleFileUploadSelector, ek as ScSlidingContentWithDrawer, Nf as ScStripConfigurator, Ef as ScStripConfiguratorForm, xf as ScStripConfiguratorLineItem, Af as ScStripConfiguratorPreview, JD as ScUserShortInfo, V_ as ScWarningIcon, zr as SelectOptionHelper, qn as UiNotificationProvider, Hr as Validators, yr as WindowResolutionEnum, br as WindowResolutionProvider, DO as channelPrimaryInterestOptionsList, Bi as componentSizeInjectionKey, Xn as copyToClipboard, mO as deliveryTypeReferenceList, hr as getOrderMarkerColors, gr as getOrderMarkerName, _r as getOrderMarkers, lr as getOrderStatusColors, dr as getOrderStatusCssVariables, ur as getOrderStatusTagColor, Ur as getProductInfoFiles, Nr as handleFloatInput, Mr as handleIntegerInput, Wr as hasProductInfo, xh as isCanSandwichM2Show, Wp as isCanSandwichShow, Up as isConfiguratorType, hO as managersReferenceList, Vi as naiveUiTheme, EO as operatorReferenceList, gO as opfReferenceList, TO as orderStatusDetailReferenceList, wO as orderStatusReferenceList, Rr as paginationItemsPrefix, Pr as parse, _O as partnerGroupReferenceList, CO as paymentTypeReferenceList, vO as priceCoefficientsReferenceList, yO as productFilesTypesReferenceList, Id as renderConfig, Fr as resetInputValidation, bO as resourceReferencesList, xO as salesDirectionsReferenceList, kO as searchCityReferenceDataHandler, AO as searchCityReferenceLabelRenderer, NO as searchClientReferenceDataHandler, PO as searchClientReferenceLabelRenderer, jO as searchRegionReferenceDataHandler, MO as searchRegionReferenceLabelRenderer, Ir as selectAllTextOnFocus, Dr as showAppVersion, OO as sourcePrimaryInterestOptionsList, Sr as useCompactLayout, wr as useHoverSupport, $n as vCopy, ar as vFocusNext, SO as warehousesReferenceList };