@snabcentr/vue-ui-lib 6.5.1-dev → 6.7.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +2 -2
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +233 -197
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +2 -2
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/components/icons/flag-mark.vue.d.ts +19 -0
- package/dist/src/components/orders/blocks/order-items-list.vue.d.ts +11 -0
- package/dist/src/components/orders/simple/order-item-params.vue.d.ts +11 -0
- package/dist/src/components/orders/simple/order-product-info.vue.d.ts +9 -0
- package/package.json +2 -2
package/dist/sc-vue-ui-lib.js
CHANGED
|
@@ -15502,17 +15502,33 @@ var H_ = at({
|
|
|
15502
15502
|
__name: "flag-mark",
|
|
15503
15503
|
props: {
|
|
15504
15504
|
value: { type: Boolean },
|
|
15505
|
-
ariaLabel: { default: "Да" }
|
|
15505
|
+
ariaLabel: { default: "Да" },
|
|
15506
|
+
icon: { default: void 0 },
|
|
15507
|
+
tooltip: { default: "" }
|
|
15506
15508
|
},
|
|
15507
15509
|
setup(e) {
|
|
15508
15510
|
return (t, n) => {
|
|
15509
|
-
let r = H_;
|
|
15510
|
-
return e.value ? (L(), k(
|
|
15511
|
+
let r = H_, i = In;
|
|
15512
|
+
return e.value ? (L(), k(i, {
|
|
15511
15513
|
key: 0,
|
|
15512
|
-
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
},
|
|
15514
|
+
disabled: e.tooltip.length === 0,
|
|
15515
|
+
placement: "bottom",
|
|
15516
|
+
trigger: "hover"
|
|
15517
|
+
}, {
|
|
15518
|
+
trigger: U(() => [e.icon ? (L(), k(St(e.icon), {
|
|
15519
|
+
key: 0,
|
|
15520
|
+
"aria-label": e.ariaLabel,
|
|
15521
|
+
class: "inline text-lg text-sc-success",
|
|
15522
|
+
role: "img"
|
|
15523
|
+
}, null, 8, ["aria-label"])) : (L(), k(r, {
|
|
15524
|
+
key: 1,
|
|
15525
|
+
"aria-label": e.ariaLabel,
|
|
15526
|
+
class: "inline text-lg text-sc-success",
|
|
15527
|
+
role: "img"
|
|
15528
|
+
}, null, 8, ["aria-label"]))]),
|
|
15529
|
+
default: U(() => [N(" " + B(e.tooltip), 1)]),
|
|
15530
|
+
_: 1
|
|
15531
|
+
}, 8, ["disabled"])) : A("", !0);
|
|
15516
15532
|
};
|
|
15517
15533
|
}
|
|
15518
15534
|
}), W_ = {
|
|
@@ -24161,10 +24177,10 @@ var hE = ub({
|
|
|
24161
24177
|
});
|
|
24162
24178
|
};
|
|
24163
24179
|
}
|
|
24164
|
-
}), DE = { class: "flex flex-col" }, OE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, kE = { class: "font-medium" }, AE = { class: "flex flex-col text-sc-dark-grey" }, jE = { key: 0 }, ME = { class: "font-medium" }, NE = { class: "font-medium" }, PE = { class: "font-medium" }, FE = { class: "font-medium" }, IE = { class: "font-medium" }, LE = { class: "font-medium" }, RE = { class: "font-medium" }, zE = { class: "font-medium" }, BE = { class: "font-medium" }, VE = { class: "font-medium" }, HE = { class: "flex flex-col gap-1.5 text-base text-nowrap" },
|
|
24180
|
+
}), DE = { class: "flex flex-col" }, OE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, kE = { class: "font-medium" }, AE = { class: "flex flex-col text-sc-dark-grey" }, jE = { key: 0 }, ME = { class: "font-medium" }, NE = { class: "font-medium" }, PE = { class: "font-medium" }, FE = { class: "font-medium" }, IE = { class: "font-medium" }, LE = { class: "font-medium" }, RE = { class: "font-medium" }, zE = { class: "font-medium" }, 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: "flex flex-col text-sc-dark-grey" }, KE = { class: "font-medium" }, qE = { class: "font-medium" }, JE = ["aria-disabled"], YE = { class: "flex flex-col gap-1.5 text-base text-nowrap" }, XE = { class: "font-medium" }, ZE = { class: "text-sc-dark-grey" }, QE = { class: "font-medium" }, $E = ["aria-disabled"], eD = { class: "text-xs" }, tD = {
|
|
24165
24181
|
key: 1,
|
|
24166
24182
|
class: "text-base font-medium text-nowrap"
|
|
24167
|
-
},
|
|
24183
|
+
}, nD = /*#__PURE__*/ Li(/* @__PURE__ */ F({
|
|
24168
24184
|
__name: "order-item-params",
|
|
24169
24185
|
props: {
|
|
24170
24186
|
item: {},
|
|
@@ -24176,6 +24192,10 @@ var hE = ub({
|
|
|
24176
24192
|
updateQuantityOnInput: {
|
|
24177
24193
|
type: Boolean,
|
|
24178
24194
|
default: !0
|
|
24195
|
+
},
|
|
24196
|
+
disabled: {
|
|
24197
|
+
type: Boolean,
|
|
24198
|
+
default: !1
|
|
24179
24199
|
}
|
|
24180
24200
|
},
|
|
24181
24201
|
setup(e) {
|
|
@@ -24191,15 +24211,15 @@ var hE = ub({
|
|
|
24191
24211
|
d.value = { quantity: e.quantity };
|
|
24192
24212
|
});
|
|
24193
24213
|
let f = (e) => {
|
|
24194
|
-
e
|
|
24214
|
+
e === null || n.disabled || (d.value.quantity = e, n.eventEmitter?.emit("order-item:edit-quantity", {
|
|
24195
24215
|
item: i.value,
|
|
24196
24216
|
quantity: e,
|
|
24197
24217
|
loaderRef: r
|
|
24198
24218
|
}));
|
|
24199
24219
|
}, p = () => {
|
|
24200
|
-
n.eventEmitter?.emit("order-item:open-configurator", { item: i.value });
|
|
24220
|
+
n.disabled || n.eventEmitter?.emit("order-item:open-configurator", { item: i.value });
|
|
24201
24221
|
}, m = () => {
|
|
24202
|
-
n.eventEmitter?.emit("order-item:edit", { item: i.value });
|
|
24222
|
+
n.disabled || n.eventEmitter?.emit("order-item:edit", { item: i.value });
|
|
24203
24223
|
};
|
|
24204
24224
|
return (n, i) => {
|
|
24205
24225
|
let h = bn;
|
|
@@ -24213,19 +24233,22 @@ var hE = ub({
|
|
|
24213
24233
|
])]), e.allowEdit ? (L(), j("a", {
|
|
24214
24234
|
key: 0,
|
|
24215
24235
|
href: "#",
|
|
24216
|
-
class: "text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5",
|
|
24236
|
+
class: ut(["text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5", { "pointer-events-none opacity-50": e.disabled }]),
|
|
24237
|
+
"aria-disabled": e.disabled || void 0,
|
|
24217
24238
|
onClick: Nt(p, ["prevent"])
|
|
24218
|
-
}, " Изменить ")) : A("", !0)], 64)) : o.value && s.value > 0 ? (L(), j(D, { key: 1 }, [M("div",
|
|
24239
|
+
}, " Изменить ", 10, HE)) : A("", !0)], 64)) : o.value && s.value > 0 ? (L(), j(D, { key: 1 }, [M("div", UE, [M("span", null, [i[10] ||= N(" Количество: ", -1), M("span", WE, B(e.item.quantity) + " шт.", 1)]), M("div", GE, [M("span", null, [i[11] ||= N(" Длина: ", -1), M("span", KE, B(s.value) + " " + B(e.item.product.unit.name), 1)]), M("span", null, [i[12] ||= N(" Всего: ", -1), M("span", qE, B(c.value) + " " + B(e.item.product.unit.name), 1)])])]), e.allowEdit ? (L(), j("a", {
|
|
24219
24240
|
key: 0,
|
|
24220
24241
|
href: "#",
|
|
24221
|
-
class: "text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5",
|
|
24242
|
+
class: ut(["text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5", { "pointer-events-none opacity-50": e.disabled }]),
|
|
24243
|
+
"aria-disabled": e.disabled || void 0,
|
|
24222
24244
|
onClick: Nt(m, ["prevent"])
|
|
24223
|
-
}, " Изменить ")) : A("", !0)], 64)) : e.item.product.getIsMeasurable() ? (L(), j(D, { key: 2 }, [M("div",
|
|
24245
|
+
}, " Изменить ", 10, JE)) : A("", !0)], 64)) : e.item.product.getIsMeasurable() ? (L(), j(D, { key: 2 }, [M("div", YE, [M("span", null, [i[13] ||= N(" Количество: ", -1), M("span", XE, B(e.item.quantity) + " шт.", 1)]), M("span", ZE, [i[14] ||= N(" Метраж: ", -1), M("span", QE, B(e.item.length ?? e.item.width) + " " + B(e.item.product.unit.name), 1)])]), e.allowEdit ? (L(), j("a", {
|
|
24224
24246
|
key: 0,
|
|
24225
24247
|
href: "#",
|
|
24226
|
-
class: "text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5",
|
|
24248
|
+
class: ut(["text-xs text-blue-500 hover:text-blue-700 self-start mt-2.5", { "pointer-events-none opacity-50": e.disabled }]),
|
|
24249
|
+
"aria-disabled": e.disabled || void 0,
|
|
24227
24250
|
onClick: Nt(m, ["prevent"])
|
|
24228
|
-
}, " Изменить ")) : A("", !0)], 64)) : (L(), j(D, { key: 3 }, [e.allowEdit ? (L(), k(h, {
|
|
24251
|
+
}, " Изменить ", 10, $E)) : A("", !0)], 64)) : (L(), j(D, { key: 3 }, [e.allowEdit ? (L(), k(h, {
|
|
24229
24252
|
key: 0,
|
|
24230
24253
|
value: d.value.quantity,
|
|
24231
24254
|
parse: V(Ir),
|
|
@@ -24234,7 +24257,7 @@ var hE = ub({
|
|
|
24234
24257
|
"show-button": u.value,
|
|
24235
24258
|
"button-placement": "both",
|
|
24236
24259
|
"update-value-on-input": e.updateQuantityOnInput,
|
|
24237
|
-
disabled: !!r.value,
|
|
24260
|
+
disabled: e.disabled || !!r.value,
|
|
24238
24261
|
loading: r.value || void 0,
|
|
24239
24262
|
placeholder: "Кол-во",
|
|
24240
24263
|
size: "small",
|
|
@@ -24243,7 +24266,7 @@ var hE = ub({
|
|
|
24243
24266
|
onFocus: V(Rr),
|
|
24244
24267
|
"onUpdate:value": f
|
|
24245
24268
|
}, {
|
|
24246
|
-
suffix: U(() => [M("span",
|
|
24269
|
+
suffix: U(() => [M("span", eD, B(e.item.product.unit.name), 1)]),
|
|
24247
24270
|
_: 1
|
|
24248
24271
|
}, 8, [
|
|
24249
24272
|
"value",
|
|
@@ -24255,30 +24278,30 @@ var hE = ub({
|
|
|
24255
24278
|
"disabled",
|
|
24256
24279
|
"loading",
|
|
24257
24280
|
"onFocus"
|
|
24258
|
-
])) : (L(), j("span",
|
|
24281
|
+
])) : (L(), j("span", tD, B(e.item.quantity) + " " + B(e.item.product.unit.name), 1))], 64))]);
|
|
24259
24282
|
};
|
|
24260
24283
|
}
|
|
24261
|
-
}), [["__scopeId", "data-v-
|
|
24284
|
+
}), [["__scopeId", "data-v-d43affe2"]]), rD = {
|
|
24262
24285
|
viewBox: "0 0 24 24",
|
|
24263
24286
|
width: "1.2em",
|
|
24264
24287
|
height: "1.2em"
|
|
24265
24288
|
};
|
|
24266
|
-
function
|
|
24267
|
-
return L(), j("svg",
|
|
24289
|
+
function iD(e, t) {
|
|
24290
|
+
return L(), j("svg", rD, [...t[0] ||= [M("path", {
|
|
24268
24291
|
fill: "currentColor",
|
|
24269
24292
|
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"
|
|
24270
24293
|
}, null, -1)]]);
|
|
24271
24294
|
}
|
|
24272
|
-
var
|
|
24295
|
+
var aD = at({
|
|
24273
24296
|
name: "tabler-truck-filled",
|
|
24274
|
-
render:
|
|
24275
|
-
}),
|
|
24297
|
+
render: iD
|
|
24298
|
+
}), oD = {
|
|
24276
24299
|
viewBox: "0 0 24 24",
|
|
24277
24300
|
width: "1.2em",
|
|
24278
24301
|
height: "1.2em"
|
|
24279
24302
|
};
|
|
24280
|
-
function
|
|
24281
|
-
return L(), j("svg",
|
|
24303
|
+
function sD(e, t) {
|
|
24304
|
+
return L(), j("svg", oD, [...t[0] ||= [M("g", {
|
|
24282
24305
|
fill: "none",
|
|
24283
24306
|
stroke: "currentColor",
|
|
24284
24307
|
"stroke-linecap": "round",
|
|
@@ -24286,16 +24309,16 @@ function iD(e, t) {
|
|
|
24286
24309
|
"stroke-width": "2"
|
|
24287
24310
|
}, [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)]]);
|
|
24288
24311
|
}
|
|
24289
|
-
var
|
|
24312
|
+
var cD = at({
|
|
24290
24313
|
name: "tabler-truck-delivery",
|
|
24291
|
-
render:
|
|
24292
|
-
}),
|
|
24314
|
+
render: sD
|
|
24315
|
+
}), lD = {
|
|
24293
24316
|
viewBox: "0 0 24 24",
|
|
24294
24317
|
width: "1.2em",
|
|
24295
24318
|
height: "1.2em"
|
|
24296
24319
|
};
|
|
24297
|
-
function
|
|
24298
|
-
return L(), j("svg",
|
|
24320
|
+
function uD(e, t) {
|
|
24321
|
+
return L(), j("svg", lD, [...t[0] ||= [M("g", {
|
|
24299
24322
|
fill: "none",
|
|
24300
24323
|
stroke: "currentColor",
|
|
24301
24324
|
"stroke-linecap": "round",
|
|
@@ -24303,16 +24326,16 @@ function sD(e, t) {
|
|
|
24303
24326
|
"stroke-width": "2"
|
|
24304
24327
|
}, [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)]]);
|
|
24305
24328
|
}
|
|
24306
|
-
var
|
|
24329
|
+
var dD = at({
|
|
24307
24330
|
name: "tabler-truck-loading",
|
|
24308
|
-
render:
|
|
24309
|
-
}),
|
|
24331
|
+
render: uD
|
|
24332
|
+
}), fD = { class: "flex flex-col gap-1" }, pD = {
|
|
24310
24333
|
key: 0,
|
|
24311
24334
|
class: "flex flex-row gap-1 text-sm text-sc-grey"
|
|
24312
|
-
},
|
|
24335
|
+
}, mD = {
|
|
24313
24336
|
key: 1,
|
|
24314
24337
|
class: "text-base"
|
|
24315
|
-
},
|
|
24338
|
+
}, hD = { class: "text-sc-dark-grey mr-1.5" }, gD = { key: 0 }, _D = { key: 1 }, vD = /* @__PURE__ */ F({
|
|
24316
24339
|
__name: "order-delivery-label",
|
|
24317
24340
|
props: {
|
|
24318
24341
|
delivery: {},
|
|
@@ -24331,23 +24354,23 @@ var cD = at({
|
|
|
24331
24354
|
deletedAt: i.delivery.address.deletedAt
|
|
24332
24355
|
}) : ""), i = e;
|
|
24333
24356
|
return (i, a) => {
|
|
24334
|
-
let o =
|
|
24335
|
-
return L(), j("div",
|
|
24357
|
+
let o = dD, s = cD, c = aD;
|
|
24358
|
+
return L(), j("div", fD, [e.showType ? (L(), j("span", pD, [
|
|
24336
24359
|
t.value?.slug === "self_delivery" ? (L(), k(o, { key: 0 })) : A("", !0),
|
|
24337
24360
|
t.value?.slug === "delivery" ? (L(), k(s, { key: 1 })) : A("", !0),
|
|
24338
24361
|
t.value?.slug === "transport_company_delivery" ? (L(), k(c, { key: 2 })) : A("", !0),
|
|
24339
24362
|
M("span", null, B(t.value?.name), 1)
|
|
24340
|
-
])) : A("", !0), e.showDetails ? (L(), j("span",
|
|
24341
|
-
M("span",
|
|
24342
|
-
e.delivery?.address?.address ? (L(), j("span",
|
|
24343
|
-
e.delivery?.warehouse?.address ? (L(), j("span",
|
|
24363
|
+
])) : A("", !0), e.showDetails ? (L(), j("span", mD, [
|
|
24364
|
+
M("span", hD, B(n.value), 1),
|
|
24365
|
+
e.delivery?.address?.address ? (L(), j("span", gD, B(r.value), 1)) : A("", !0),
|
|
24366
|
+
e.delivery?.warehouse?.address ? (L(), j("span", _D, " со склада " + B(e.delivery.warehouse.address), 1)) : A("", !0)
|
|
24344
24367
|
])) : A("", !0)]);
|
|
24345
24368
|
};
|
|
24346
24369
|
}
|
|
24347
|
-
}),
|
|
24370
|
+
}), yD = { class: "flex flex-col gap-2.5" }, bD = { class: "text-base" }, xD = ["href"], SD = {
|
|
24348
24371
|
key: 1,
|
|
24349
24372
|
class: "text-sc-grey"
|
|
24350
|
-
},
|
|
24373
|
+
}, CD = /* @__PURE__ */ F({
|
|
24351
24374
|
__name: "order-common-info",
|
|
24352
24375
|
props: {
|
|
24353
24376
|
order: {},
|
|
@@ -24365,14 +24388,14 @@ var cD = at({
|
|
|
24365
24388
|
let e = t.order.status?.slug;
|
|
24366
24389
|
return !!e && (t.highlightSettings?.statuses.includes(e) ?? !1);
|
|
24367
24390
|
}), o = O(() => yr(t.order).filter((e) => [sr.OnOrder, sr.NotInStock].includes(e))), s = (e) => t.highlightSettings?.markers.includes(e) ?? !1, c = O(() => t.fields.includes(br.CreatedAt)), l = O(() => t.fields.includes(br.ClientInfo) || t.fields.includes(br.ClientInfoShort) ? t.order.client : void 0), u = O(() => t.fields.includes(br.DeliveryInfo) ? t.order.delivery : void 0);
|
|
24368
|
-
return (t, d) => (L(), j("div",
|
|
24369
|
-
M("span",
|
|
24391
|
+
return (t, d) => (L(), j("div", yD, [
|
|
24392
|
+
M("span", bD, [
|
|
24370
24393
|
n.value ? (L(), j("a", {
|
|
24371
24394
|
key: 0,
|
|
24372
24395
|
href: e.orderUrl.replace(":id", e.order.id.toString()),
|
|
24373
24396
|
target: "_blank",
|
|
24374
24397
|
class: "text-sc-dark-grey"
|
|
24375
|
-
}, " #" + B(n.value), 9,
|
|
24398
|
+
}, " #" + B(n.value), 9, xD)) : A("", !0),
|
|
24376
24399
|
c.value ? (L(), j(D, { key: 1 }, [d[0] ||= N(" от ", -1), P(m_, {
|
|
24377
24400
|
date: e.order.createdAt,
|
|
24378
24401
|
"is-time-secondary": !0
|
|
@@ -24381,7 +24404,7 @@ var cD = at({
|
|
|
24381
24404
|
key: 0,
|
|
24382
24405
|
class: "font-medium",
|
|
24383
24406
|
style: dt({ color: i.value.color })
|
|
24384
|
-
}, B(r.value), 5)) : (L(), j("span",
|
|
24407
|
+
}, B(r.value), 5)) : (L(), j("span", SD, B(r.value), 1))], 64)) : A("", !0),
|
|
24385
24408
|
(L(!0), j(D, null, xt(o.value, (e) => (L(), j(D, { key: e }, [d[2] ||= N(" - ", -1), M("span", {
|
|
24386
24409
|
class: ut({
|
|
24387
24410
|
"font-medium": s(e),
|
|
@@ -24395,21 +24418,21 @@ var cD = at({
|
|
|
24395
24418
|
client: l.value,
|
|
24396
24419
|
class: "ml-3"
|
|
24397
24420
|
}, null, 8, ["client"])) : A("", !0),
|
|
24398
|
-
u.value ? (L(), k(
|
|
24421
|
+
u.value ? (L(), k(vD, {
|
|
24399
24422
|
key: 1,
|
|
24400
24423
|
delivery: u.value,
|
|
24401
24424
|
class: "ml-3"
|
|
24402
24425
|
}, null, 8, ["delivery"])) : A("", !0)
|
|
24403
24426
|
]));
|
|
24404
24427
|
}
|
|
24405
|
-
}),
|
|
24428
|
+
}), wD = /* @__PURE__ */ F({
|
|
24406
24429
|
__name: "order-payment",
|
|
24407
24430
|
props: { payment: {} },
|
|
24408
24431
|
setup(e) {
|
|
24409
24432
|
let t = e, n = O(() => ce().paymentTypeReference?.find((e) => e.id === t.payment.type));
|
|
24410
24433
|
return (e, t) => (L(), j("span", null, B(n.value?.name ?? "-"), 1));
|
|
24411
24434
|
}
|
|
24412
|
-
}),
|
|
24435
|
+
}), TD = /* @__PURE__ */ F({
|
|
24413
24436
|
__name: "order-item-specification",
|
|
24414
24437
|
props: { src: {} },
|
|
24415
24438
|
setup(e) {
|
|
@@ -24423,7 +24446,7 @@ var cD = at({
|
|
|
24423
24446
|
"previewed-img-props": { style: "max-width: 80vw; max-height: 80vh; object-fit: contain; border: 12px solid white;" }
|
|
24424
24447
|
}, null, 8, ["src"]), [[kt, !1]])], 64));
|
|
24425
24448
|
}
|
|
24426
|
-
}),
|
|
24449
|
+
}), ED = /* @__PURE__ */ F({
|
|
24427
24450
|
__name: "creator-user-type-tag",
|
|
24428
24451
|
props: {
|
|
24429
24452
|
userType: { default: void 0 },
|
|
@@ -24451,7 +24474,7 @@ var cD = at({
|
|
|
24451
24474
|
});
|
|
24452
24475
|
return (e, t) => (L(), j("small", { class: ut(`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));
|
|
24453
24476
|
}
|
|
24454
|
-
}),
|
|
24477
|
+
}), DD = { class: "flex flex-col gap-0.5" }, OD = { class: "text-gray-600" }, kD = /* @__PURE__ */ F({
|
|
24455
24478
|
__name: "order-item-name",
|
|
24456
24479
|
props: {
|
|
24457
24480
|
item: {},
|
|
@@ -24474,7 +24497,7 @@ var cD = at({
|
|
|
24474
24497
|
let { creator: e } = t.item;
|
|
24475
24498
|
return !!e?.type && (!r.value || r.value.creator.guid !== e.guid);
|
|
24476
24499
|
}), 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);
|
|
24477
|
-
return (t, n) => (L(), j("div",
|
|
24500
|
+
return (t, n) => (L(), j("div", DD, [
|
|
24478
24501
|
M("div", { class: ut(i.value ? "line-through opacity-50" : "") }, [P(vo, {
|
|
24479
24502
|
product: e.item.product,
|
|
24480
24503
|
"show-additional-sale-icon": e.item.isAdditionalSale ?? !1,
|
|
@@ -24487,24 +24510,24 @@ var cD = at({
|
|
|
24487
24510
|
e.item.marker ? (L(), j("span", {
|
|
24488
24511
|
key: 0,
|
|
24489
24512
|
class: ut(i.value ? "line-through opacity-50" : "")
|
|
24490
|
-
}, [n[0] ||= N(" Маркировка: ", -1), M("span",
|
|
24513
|
+
}, [n[0] ||= N(" Маркировка: ", -1), M("span", OD, B(e.item.marker), 1)], 2)) : A("", !0),
|
|
24491
24514
|
o.value ? (L(), j("div", {
|
|
24492
24515
|
key: 1,
|
|
24493
24516
|
class: ut(i.value ? "line-through opacity-50" : "")
|
|
24494
|
-
}, [P(
|
|
24495
|
-
a.value && !i.value ? (L(), k(
|
|
24517
|
+
}, [P(TD, { src: o.value }, null, 8, ["src"])], 2)) : A("", !0),
|
|
24518
|
+
a.value && !i.value ? (L(), k(ED, {
|
|
24496
24519
|
key: 2,
|
|
24497
24520
|
"user-type": e.item.creator.type,
|
|
24498
24521
|
class: "mt-1 self-start",
|
|
24499
24522
|
"prefix-text": "Добавлено"
|
|
24500
24523
|
}, null, 8, ["user-type"])) : A("", !0),
|
|
24501
|
-
e.item.isRemoved && !e.item.replacementId && s.value.length === 0 ? (L(), k(
|
|
24524
|
+
e.item.isRemoved && !e.item.replacementId && s.value.length === 0 ? (L(), k(ED, {
|
|
24502
24525
|
key: 3,
|
|
24503
24526
|
class: "mt-1 self-start",
|
|
24504
24527
|
"prefix-text": "Удалено",
|
|
24505
24528
|
variant: "danger"
|
|
24506
24529
|
})) : A("", !0),
|
|
24507
|
-
e.item.replacementId && s.value.length > 0 ? (L(), k(
|
|
24530
|
+
e.item.replacementId && s.value.length > 0 ? (L(), k(ED, {
|
|
24508
24531
|
key: 4,
|
|
24509
24532
|
"user-type": c.value,
|
|
24510
24533
|
"changed-fields": s.value,
|
|
@@ -24512,7 +24535,7 @@ var cD = at({
|
|
|
24512
24535
|
}, null, 8, ["user-type", "changed-fields"])) : A("", !0)
|
|
24513
24536
|
]));
|
|
24514
24537
|
}
|
|
24515
|
-
}),
|
|
24538
|
+
}), AD = { class: "flex flex-row gap-1.5" }, jD = { class: "flex flex-1 flex-col gap-2.5" }, MD = { class: "flex items-start gap-1" }, ND = /* @__PURE__ */ F({
|
|
24516
24539
|
__name: "order-product-info",
|
|
24517
24540
|
props: {
|
|
24518
24541
|
product: {},
|
|
@@ -24533,27 +24556,33 @@ var cD = at({
|
|
|
24533
24556
|
showActions: {
|
|
24534
24557
|
type: Boolean,
|
|
24535
24558
|
default: void 0
|
|
24559
|
+
},
|
|
24560
|
+
disabled: {
|
|
24561
|
+
type: Boolean,
|
|
24562
|
+
default: !1
|
|
24536
24563
|
}
|
|
24537
24564
|
},
|
|
24538
24565
|
setup(e) {
|
|
24539
24566
|
let t = e, n = O(() => t.inactive ? "line-through opacity-50" : "");
|
|
24540
|
-
return (t, r) => (L(), j("div",
|
|
24541
|
-
P(
|
|
24567
|
+
return (t, r) => (L(), j("div", AD, [M("span", { class: ut(["flex-none text-nowrap", n.value]) }, B(e.index + 1) + ". ", 3), M("div", jD, [
|
|
24568
|
+
P(kD, {
|
|
24542
24569
|
item: e.product,
|
|
24543
24570
|
inactive: e.inactive,
|
|
24544
24571
|
"show-code": ""
|
|
24545
24572
|
}, null, 8, ["item", "inactive"]),
|
|
24546
|
-
M("div",
|
|
24573
|
+
M("div", MD, [P(nD, {
|
|
24547
24574
|
item: e.product,
|
|
24548
24575
|
"event-emitter": e.eventEmitter,
|
|
24549
24576
|
"allow-edit": e.allowEdit,
|
|
24550
24577
|
"update-quantity-on-input": e.updateQuantityOnInput,
|
|
24578
|
+
disabled: e.disabled,
|
|
24551
24579
|
class: ut(["min-w-0 flex-1", n.value])
|
|
24552
24580
|
}, null, 8, [
|
|
24553
24581
|
"item",
|
|
24554
24582
|
"event-emitter",
|
|
24555
24583
|
"allow-edit",
|
|
24556
24584
|
"update-quantity-on-input",
|
|
24585
|
+
"disabled",
|
|
24557
24586
|
"class"
|
|
24558
24587
|
]), e.showActions ?? e.allowEdit ? z(t.$slots, "actions", {}, void 0, void 0, 0) : A("", !0)]),
|
|
24559
24588
|
M("div", { class: ut(["grid grid-flow-col grid-rows-2 gap-1 text-base", n.value]) }, [
|
|
@@ -24571,10 +24600,10 @@ var cD = at({
|
|
|
24571
24600
|
z(t.$slots, "extra")
|
|
24572
24601
|
])]));
|
|
24573
24602
|
}
|
|
24574
|
-
}),
|
|
24603
|
+
}), PD = { class: "flex items-center gap-1.5" }, FD = {
|
|
24575
24604
|
key: 0,
|
|
24576
24605
|
class: "h-1.5 w-1.5 shrink-0 rounded-full bg-current"
|
|
24577
|
-
},
|
|
24606
|
+
}, ID = /* @__PURE__ */ F({
|
|
24578
24607
|
__name: "status-tag",
|
|
24579
24608
|
props: {
|
|
24580
24609
|
tag: {},
|
|
@@ -24601,7 +24630,7 @@ var cD = at({
|
|
|
24601
24630
|
bordered: e.bordered,
|
|
24602
24631
|
round: e.round
|
|
24603
24632
|
}, {
|
|
24604
|
-
default: U(() => [M("span",
|
|
24633
|
+
default: U(() => [M("span", PD, [e.showDot ? (L(), j("span", FD)) : A("", !0), N(" " + B(e.tag.label), 1)])]),
|
|
24605
24634
|
_: 1
|
|
24606
24635
|
}, 8, [
|
|
24607
24636
|
"color",
|
|
@@ -24611,10 +24640,10 @@ var cD = at({
|
|
|
24611
24640
|
"round"
|
|
24612
24641
|
]));
|
|
24613
24642
|
}
|
|
24614
|
-
}),
|
|
24643
|
+
}), LD = {
|
|
24615
24644
|
key: 0,
|
|
24616
24645
|
class: "h-1.5 w-1.5 shrink-0 rounded-full bg-current"
|
|
24617
|
-
},
|
|
24646
|
+
}, RD = /* @__PURE__ */ F({
|
|
24618
24647
|
__name: "order-status-tag",
|
|
24619
24648
|
props: {
|
|
24620
24649
|
status: {},
|
|
@@ -24631,7 +24660,7 @@ var cD = at({
|
|
|
24631
24660
|
label: r.value,
|
|
24632
24661
|
colors: n.value
|
|
24633
24662
|
}));
|
|
24634
|
-
return (t, a) => e.variant === "filled" ? (L(), k(
|
|
24663
|
+
return (t, a) => e.variant === "filled" ? (L(), k(ID, {
|
|
24635
24664
|
key: 0,
|
|
24636
24665
|
tag: i.value,
|
|
24637
24666
|
size: e.size,
|
|
@@ -24645,9 +24674,9 @@ var cD = at({
|
|
|
24645
24674
|
key: 1,
|
|
24646
24675
|
class: "inline-flex items-center gap-1.5 font-medium",
|
|
24647
24676
|
style: dt({ color: n.value.color })
|
|
24648
|
-
}, [e.showDot ? (L(), j("span",
|
|
24677
|
+
}, [e.showDot ? (L(), j("span", LD)) : A("", !0), N(" " + B(r.value), 1)], 4));
|
|
24649
24678
|
}
|
|
24650
|
-
}),
|
|
24679
|
+
}), zD = /* @__PURE__ */ F({
|
|
24651
24680
|
__name: "order-color-swatch",
|
|
24652
24681
|
props: { colors: {} },
|
|
24653
24682
|
setup(e) {
|
|
@@ -24660,13 +24689,13 @@ var cD = at({
|
|
|
24660
24689
|
})
|
|
24661
24690
|
}, " Аа ", 4));
|
|
24662
24691
|
}
|
|
24663
|
-
}),
|
|
24692
|
+
}), BD = {
|
|
24664
24693
|
viewBox: "0 0 512 512",
|
|
24665
24694
|
width: "1.2em",
|
|
24666
24695
|
height: "1.2em"
|
|
24667
24696
|
};
|
|
24668
|
-
function
|
|
24669
|
-
return L(), j("svg",
|
|
24697
|
+
function VD(e, t) {
|
|
24698
|
+
return L(), j("svg", BD, [...t[0] ||= [
|
|
24670
24699
|
M("path", {
|
|
24671
24700
|
fill: "none",
|
|
24672
24701
|
stroke: "currentColor",
|
|
@@ -24693,22 +24722,22 @@ function RD(e, t) {
|
|
|
24693
24722
|
}, null, -1)
|
|
24694
24723
|
]]);
|
|
24695
24724
|
}
|
|
24696
|
-
var
|
|
24725
|
+
var HD = at({
|
|
24697
24726
|
name: "ion-trash-outline",
|
|
24698
|
-
render:
|
|
24699
|
-
}),
|
|
24727
|
+
render: VD
|
|
24728
|
+
}), UD = {
|
|
24700
24729
|
key: 0,
|
|
24701
24730
|
class: "!mb-3 !mt-0 text-base font-semibold"
|
|
24702
|
-
},
|
|
24731
|
+
}, WD = { class: "mb-1 flex flex-wrap items-baseline justify-between gap-2" }, GD = { class: "flex items-baseline gap-2" }, KD = { class: "text-base font-bold text-sc-dark-grey" }, qD = {
|
|
24703
24732
|
key: 0,
|
|
24704
24733
|
class: "text-sm text-sc-grey"
|
|
24705
|
-
},
|
|
24734
|
+
}, JD = {
|
|
24706
24735
|
key: 0,
|
|
24707
24736
|
class: "flex items-baseline gap-3"
|
|
24708
|
-
},
|
|
24737
|
+
}, YD = {
|
|
24709
24738
|
key: 0,
|
|
24710
24739
|
class: "text-sm text-sc-dark-grey"
|
|
24711
|
-
},
|
|
24740
|
+
}, XD = /*#__PURE__*/ Li(/* @__PURE__ */ F({
|
|
24712
24741
|
__name: "order-items-list",
|
|
24713
24742
|
props: /*@__PURE__*/ st({
|
|
24714
24743
|
products: {},
|
|
@@ -24740,6 +24769,10 @@ var zD = at({
|
|
|
24740
24769
|
updateQuantityOnInput: {
|
|
24741
24770
|
type: Boolean,
|
|
24742
24771
|
default: !0
|
|
24772
|
+
},
|
|
24773
|
+
disabled: {
|
|
24774
|
+
type: Boolean,
|
|
24775
|
+
default: !1
|
|
24743
24776
|
}
|
|
24744
24777
|
}, {
|
|
24745
24778
|
selectedRowKeys: { default: () => [] },
|
|
@@ -24760,10 +24793,11 @@ var zD = at({
|
|
|
24760
24793
|
quaternary: !0,
|
|
24761
24794
|
size: "small",
|
|
24762
24795
|
type: "error",
|
|
24796
|
+
disabled: t.disabled,
|
|
24763
24797
|
onClick: () => {
|
|
24764
24798
|
t.eventEmitter?.emit("order-item:delete", { item: e });
|
|
24765
24799
|
}
|
|
24766
|
-
}, () => I(
|
|
24800
|
+
}, () => I(HD)) : null, f = (e, n) => (t.extraColumns ?? []).flatMap((t) => {
|
|
24767
24801
|
let r = t.render?.(e, n);
|
|
24768
24802
|
if (Te(r) || r === "" || r === !1) return [];
|
|
24769
24803
|
let i = we(t.title) ? t.title(t) : t.title;
|
|
@@ -24789,7 +24823,7 @@ var zD = at({
|
|
|
24789
24823
|
key: "name",
|
|
24790
24824
|
resizable: !0,
|
|
24791
24825
|
minWidth: Te(t.groups) ? void 0 : 240,
|
|
24792
|
-
render: (e) => I(
|
|
24826
|
+
render: (e) => I(kD, {
|
|
24793
24827
|
item: e,
|
|
24794
24828
|
inactive: a(e)
|
|
24795
24829
|
})
|
|
@@ -24800,12 +24834,13 @@ var zD = at({
|
|
|
24800
24834
|
resizable: !0,
|
|
24801
24835
|
width: 180,
|
|
24802
24836
|
rowSpan: u,
|
|
24803
|
-
render: (e) => I(
|
|
24837
|
+
render: (e) => I(nD, {
|
|
24804
24838
|
class: a(e) ? "line-through opacity-50" : "",
|
|
24805
24839
|
item: e,
|
|
24806
24840
|
eventEmitter: t.eventEmitter,
|
|
24807
24841
|
allowEdit: t.allowEdit && !a(e),
|
|
24808
|
-
updateQuantityOnInput: t.updateQuantityOnInput
|
|
24842
|
+
updateQuantityOnInput: t.updateQuantityOnInput,
|
|
24843
|
+
disabled: t.disabled
|
|
24809
24844
|
})
|
|
24810
24845
|
},
|
|
24811
24846
|
{
|
|
@@ -24862,12 +24897,13 @@ var zD = at({
|
|
|
24862
24897
|
resizable: !0,
|
|
24863
24898
|
render: (e, n) => {
|
|
24864
24899
|
let r = u(e, n) > 0, i = t.allowEdit && !a(e) && r;
|
|
24865
|
-
return I(
|
|
24900
|
+
return I(ND, {
|
|
24866
24901
|
product: e,
|
|
24867
24902
|
index: n,
|
|
24868
24903
|
eventEmitter: t.eventEmitter,
|
|
24869
24904
|
allowEdit: i,
|
|
24870
24905
|
updateQuantityOnInput: t.updateQuantityOnInput,
|
|
24906
|
+
disabled: t.disabled,
|
|
24871
24907
|
inactive: a(e),
|
|
24872
24908
|
showActions: t.allowEdit && r
|
|
24873
24909
|
}, {
|
|
@@ -24891,10 +24927,10 @@ var zD = at({
|
|
|
24891
24927
|
window.removeEventListener("resize", b);
|
|
24892
24928
|
}), (t, n) => {
|
|
24893
24929
|
let a = sn;
|
|
24894
|
-
return L(), j(D, null, [e.title ? (L(), j("h3",
|
|
24930
|
+
return L(), j(D, null, [e.title ? (L(), j("h3", UD, B(e.title), 1)) : A("", !0), e.groups ? (L(!0), j(D, { key: 1 }, xt(e.groups, (n) => (L(), j("div", {
|
|
24895
24931
|
key: n.name,
|
|
24896
24932
|
class: "mb-6 last:mb-0"
|
|
24897
|
-
}, [M("div",
|
|
24933
|
+
}, [M("div", WD, [M("div", GD, [M("span", KD, B(n.name), 1), n.description ? (L(), j("span", qD, B(n.description), 1)) : A("", !0)]), n.summary || t.$slots["group-actions"] ? (L(), j("div", JD, [n.summary ? (L(), j("span", YD, B(n.summary), 1)) : A("", !0), z(t.$slots, "group-actions", { group: n }, void 0, !0)])) : A("", !0)]), P(a, {
|
|
24898
24934
|
columns: _.value,
|
|
24899
24935
|
data: r(n.items),
|
|
24900
24936
|
"row-key": (e) => e.id,
|
|
@@ -24927,13 +24963,13 @@ var zD = at({
|
|
|
24927
24963
|
]))], 64);
|
|
24928
24964
|
};
|
|
24929
24965
|
}
|
|
24930
|
-
}), [["__scopeId", "data-v-
|
|
24966
|
+
}), [["__scopeId", "data-v-f7276c88"]]), ZD = {
|
|
24931
24967
|
key: 0,
|
|
24932
24968
|
class: "text-sc-dark-grey my-2 text-center"
|
|
24933
|
-
},
|
|
24969
|
+
}, QD = {
|
|
24934
24970
|
key: 1,
|
|
24935
24971
|
class: "text-sc-dark-grey my-2"
|
|
24936
|
-
},
|
|
24972
|
+
}, $D = /* @__PURE__ */ F({
|
|
24937
24973
|
__name: "order-status-history",
|
|
24938
24974
|
props: { order: {} },
|
|
24939
24975
|
setup(e) {
|
|
@@ -24953,17 +24989,17 @@ var zD = at({
|
|
|
24953
24989
|
a();
|
|
24954
24990
|
}), (e, t) => {
|
|
24955
24991
|
let a = kn, o = Fn, s = Pn;
|
|
24956
|
-
return L(), j("div", null, [t[1] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "История статусов", -1), n.value ? (L(), j("div",
|
|
24992
|
+
return L(), j("div", null, [t[1] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "История статусов", -1), n.value ? (L(), j("div", ZD, [P(a, {
|
|
24957
24993
|
size: "small",
|
|
24958
24994
|
class: "mb-1 align-middle"
|
|
24959
|
-
}), t[0] ||= M("span", { class: "ml-2" }, "Загрузка истории ...", -1)])) : r.value.length === 0 ? (L(), j("div",
|
|
24995
|
+
}), t[0] ||= M("span", { class: "ml-2" }, "Загрузка истории ...", -1)])) : r.value.length === 0 ? (L(), j("div", QD, " История статусов отсутствует. ")) : (L(), k(s, { key: 2 }, {
|
|
24960
24996
|
default: U(() => [(L(!0), j(D, null, xt(r.value, (e, t) => (L(), k(o, {
|
|
24961
24997
|
key: t,
|
|
24962
24998
|
color: V(dr)(e.status.slug).color,
|
|
24963
24999
|
time: i(e.createdAt),
|
|
24964
25000
|
content: e.user.name
|
|
24965
25001
|
}, {
|
|
24966
|
-
header: U(() => [P(
|
|
25002
|
+
header: U(() => [P(RD, {
|
|
24967
25003
|
status: e.status,
|
|
24968
25004
|
"status-detail": e.statusDetail,
|
|
24969
25005
|
variant: t === 0 ? "filled" : "text",
|
|
@@ -24984,7 +25020,7 @@ var zD = at({
|
|
|
24984
25020
|
}))]);
|
|
24985
25021
|
};
|
|
24986
25022
|
}
|
|
24987
|
-
}),
|
|
25023
|
+
}), eO = { class: "text-base" }, tO = /* @__PURE__ */ F({
|
|
24988
25024
|
__name: "user-short-info",
|
|
24989
25025
|
props: {
|
|
24990
25026
|
user: {},
|
|
@@ -24998,20 +25034,20 @@ var zD = at({
|
|
|
24998
25034
|
}
|
|
24999
25035
|
},
|
|
25000
25036
|
setup(e) {
|
|
25001
|
-
return (t, n) => (L(), j("div", { class: ut({ "flex flex-col": e.showUserType && e.extraInfoOnSecondLine }) }, [M("span",
|
|
25037
|
+
return (t, n) => (L(), j("div", { class: ut({ "flex flex-col": e.showUserType && e.extraInfoOnSecondLine }) }, [M("span", eO, B(e.user.name), 1), e.showUserType ? (L(), j("span", {
|
|
25002
25038
|
key: 0,
|
|
25003
25039
|
class: ut([{ "ml-1": !e.extraInfoOnSecondLine }, "text-sc-grey"])
|
|
25004
25040
|
}, " [" + B(e.user.type) + "] ", 3)) : A("", !0)], 2));
|
|
25005
25041
|
}
|
|
25006
|
-
}),
|
|
25042
|
+
}), nO = { class: "ml-4 grid grid-cols-3 gap-1.5 text-base" }, rO = { class: "col-span-2" }, iO = { class: "col-span-2" }, aO = /* @__PURE__ */ F({
|
|
25007
25043
|
__name: "order-details",
|
|
25008
25044
|
props: { order: {} },
|
|
25009
25045
|
emits: ["click:client-name"],
|
|
25010
25046
|
setup(e, { emit: t }) {
|
|
25011
25047
|
let n = t;
|
|
25012
|
-
return (t, r) => (L(), j("div", null, [r[11] ||= M("h3", null, "Детали заказа", -1), M("div",
|
|
25048
|
+
return (t, r) => (L(), j("div", null, [r[11] ||= M("h3", null, "Детали заказа", -1), M("div", nO, [
|
|
25013
25049
|
r[9] ||= M("span", null, "Создал", -1),
|
|
25014
|
-
P(
|
|
25050
|
+
P(tO, {
|
|
25015
25051
|
user: e.order.creator,
|
|
25016
25052
|
class: "col-span-2"
|
|
25017
25053
|
}, null, 8, ["user"]),
|
|
@@ -25029,29 +25065,29 @@ var zD = at({
|
|
|
25029
25065
|
class: "fancybox col-span-2",
|
|
25030
25066
|
href: "{{ order.image }}"
|
|
25031
25067
|
}, " Посмотреть ", -1)], 64)) : A("", !0),
|
|
25032
|
-
e.order.barcode ? (L(), j(D, { key: 2 }, [r[4] ||= M("span", null, "Штрих-код", -1), M("span",
|
|
25033
|
-
e.order.payment ? (L(), j(D, { key: 3 }, [r[5] ||= M("span", null, "Оплата", -1), P(
|
|
25068
|
+
e.order.barcode ? (L(), j(D, { key: 2 }, [r[4] ||= M("span", null, "Штрих-код", -1), M("span", rO, B(e.order.barcode), 1)], 64)) : A("", !0),
|
|
25069
|
+
e.order.payment ? (L(), j(D, { key: 3 }, [r[5] ||= M("span", null, "Оплата", -1), P(wD, {
|
|
25034
25070
|
payment: e.order.payment,
|
|
25035
25071
|
class: "col-span-2"
|
|
25036
25072
|
}, null, 8, ["payment"])], 64)) : A("", !0),
|
|
25037
|
-
e.order.delivery ? (L(), j(D, { key: 4 }, [r[6] ||= M("span", null, "Доставка", -1), P(
|
|
25073
|
+
e.order.delivery ? (L(), j(D, { key: 4 }, [r[6] ||= M("span", null, "Доставка", -1), P(vD, {
|
|
25038
25074
|
delivery: e.order.delivery,
|
|
25039
25075
|
class: "col-span-2"
|
|
25040
25076
|
}, null, 8, ["delivery"])], 64)) : A("", !0),
|
|
25041
|
-
e.order.comment ? (L(), j(D, { key: 5 }, [r[7] ||= M("span", null, "Комментарий", -1), M("span",
|
|
25042
|
-
e.order.attachedUser ? (L(), j(D, { key: 6 }, [r[8] ||= M("span", null, "Закреплен за", -1), P(
|
|
25077
|
+
e.order.comment ? (L(), j(D, { key: 5 }, [r[7] ||= M("span", null, "Комментарий", -1), M("span", iO, B(e.order.comment), 1)], 64)) : A("", !0),
|
|
25078
|
+
e.order.attachedUser ? (L(), j(D, { key: 6 }, [r[8] ||= M("span", null, "Закреплен за", -1), P(tO, {
|
|
25043
25079
|
user: e.order.attachedUser,
|
|
25044
25080
|
class: "col-span-2"
|
|
25045
25081
|
}, null, 8, ["user"])], 64)) : A("", !0)
|
|
25046
25082
|
])]));
|
|
25047
25083
|
}
|
|
25048
|
-
}),
|
|
25084
|
+
}), oO = {
|
|
25049
25085
|
viewBox: "0 0 512 512",
|
|
25050
25086
|
width: "1.2em",
|
|
25051
25087
|
height: "1.2em"
|
|
25052
25088
|
};
|
|
25053
|
-
function
|
|
25054
|
-
return L(), j("svg",
|
|
25089
|
+
function sO(e, t) {
|
|
25090
|
+
return L(), j("svg", oO, [...t[0] ||= [M("rect", {
|
|
25055
25091
|
width: "336",
|
|
25056
25092
|
height: "336",
|
|
25057
25093
|
x: "128",
|
|
@@ -25071,10 +25107,10 @@ function iO(e, t) {
|
|
|
25071
25107
|
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"
|
|
25072
25108
|
}, null, -1)]]);
|
|
25073
25109
|
}
|
|
25074
|
-
var
|
|
25110
|
+
var cO = at({
|
|
25075
25111
|
name: "ion-copy-outline",
|
|
25076
|
-
render:
|
|
25077
|
-
}),
|
|
25112
|
+
render: sO
|
|
25113
|
+
}), lO = { class: "flex flex-col items-stretch gap-1.5 text-base" }, uO = /*#__PURE__*/ Li(/* @__PURE__ */ F({
|
|
25078
25114
|
__name: "order-external-links",
|
|
25079
25115
|
props: {
|
|
25080
25116
|
showErpLink: {
|
|
@@ -25089,8 +25125,8 @@ var aO = at({
|
|
|
25089
25125
|
return e.showErpLink && !!e.order.erpOrderUrl || t || !!e.order.payment?.onlinePaymentLink;
|
|
25090
25126
|
});
|
|
25091
25127
|
return (n, r) => {
|
|
25092
|
-
let i = rn, a =
|
|
25093
|
-
return t.value ? (L(), j(D, { key: 0 }, [r[2] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "Внешние ссылки", -1), M("div",
|
|
25128
|
+
let i = rn, a = cO;
|
|
25129
|
+
return t.value ? (L(), j(D, { key: 0 }, [r[2] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "Внешние ссылки", -1), M("div", lO, [
|
|
25094
25130
|
e.showErpLink && e.order.erpOrderUrl ? (L(), k(i, {
|
|
25095
25131
|
key: 0,
|
|
25096
25132
|
tag: "a",
|
|
@@ -25124,10 +25160,10 @@ var aO = at({
|
|
|
25124
25160
|
])], 64)) : A("", !0);
|
|
25125
25161
|
};
|
|
25126
25162
|
}
|
|
25127
|
-
}), [["__scopeId", "data-v-53afb2ef"]]),
|
|
25163
|
+
}), [["__scopeId", "data-v-53afb2ef"]]), dO = { key: 0 }, fO = { class: "text-sc-dark-grey my-2 text-center" }, pO = {
|
|
25128
25164
|
key: 1,
|
|
25129
25165
|
class: "text-sc-dark-grey my-2 text-center"
|
|
25130
|
-
},
|
|
25166
|
+
}, mO = { key: 2 }, hO = { class: "text-sc-dark-grey mt-4 text-right font-bold" }, gO = { class: "text-sc-primary" }, _O = { class: "mb-4 max-w-xs empty:hidden" }, vO = /* @__PURE__ */ F({
|
|
25131
25167
|
__name: "order-info",
|
|
25132
25168
|
props: {
|
|
25133
25169
|
order: {},
|
|
@@ -25154,11 +25190,11 @@ var aO = at({
|
|
|
25154
25190
|
o();
|
|
25155
25191
|
}), (t, n) => {
|
|
25156
25192
|
let o = kn;
|
|
25157
|
-
return i.value ? (L(), j("div",
|
|
25193
|
+
return i.value ? (L(), j("div", dO, [M("div", fO, [P(o, {
|
|
25158
25194
|
size: "small",
|
|
25159
25195
|
class: "mb-2.5 align-middle"
|
|
25160
|
-
}), n[1] ||= M("div", null, [M("span", null, "Загрузка данных ...")], -1)])])) : !a.value || a.value.products.length === 0 ? (L(), j("div",
|
|
25161
|
-
P(
|
|
25196
|
+
}), n[1] ||= M("div", null, [M("span", null, "Загрузка данных ...")], -1)])])) : !a.value || a.value.products.length === 0 ? (L(), j("div", pO, " --- Не удалось загрузить данные о заказе --- ")) : (L(), j("div", mO, [
|
|
25197
|
+
P(XD, {
|
|
25162
25198
|
products: s.value,
|
|
25163
25199
|
"event-emitter": e.eventEmitter,
|
|
25164
25200
|
"allow-edit": e.allowEdit
|
|
@@ -25167,20 +25203,20 @@ var aO = at({
|
|
|
25167
25203
|
"event-emitter",
|
|
25168
25204
|
"allow-edit"
|
|
25169
25205
|
]),
|
|
25170
|
-
M("div",
|
|
25171
|
-
P(
|
|
25206
|
+
M("div", hO, [n[2] ||= N(" ИТОГО: ", -1), M("span", gO, B(c.value) + " ₽", 1)]),
|
|
25207
|
+
P(aO, {
|
|
25172
25208
|
order: a.value,
|
|
25173
25209
|
"onClick:clientName": n[0] ||= (e) => r("click:client-name", a.value.client, e)
|
|
25174
25210
|
}, null, 8, ["order"]),
|
|
25175
|
-
M("div",
|
|
25211
|
+
M("div", _O, [P(uO, {
|
|
25176
25212
|
order: a.value,
|
|
25177
25213
|
"show-erp-link": ""
|
|
25178
25214
|
}, null, 8, ["order"])]),
|
|
25179
|
-
P(
|
|
25215
|
+
P($D, { order: a.value }, null, 8, ["order"])
|
|
25180
25216
|
]));
|
|
25181
25217
|
};
|
|
25182
25218
|
}
|
|
25183
|
-
}),
|
|
25219
|
+
}), yO = /* @__PURE__ */ F({
|
|
25184
25220
|
__name: "order-actions",
|
|
25185
25221
|
props: {
|
|
25186
25222
|
orderContextButtonsConfig: {
|
|
@@ -25218,7 +25254,7 @@ var aO = at({
|
|
|
25218
25254
|
}, 8, ["options", "size"])) : A("", !0);
|
|
25219
25255
|
};
|
|
25220
25256
|
}
|
|
25221
|
-
}),
|
|
25257
|
+
}), bO = /*#__PURE__*/ Li(/* @__PURE__ */ F({
|
|
25222
25258
|
__name: "orders-list",
|
|
25223
25259
|
props: /*@__PURE__*/ st({
|
|
25224
25260
|
fields: {},
|
|
@@ -25313,7 +25349,7 @@ var aO = at({
|
|
|
25313
25349
|
}, s = {
|
|
25314
25350
|
type: "expand",
|
|
25315
25351
|
expandable: fe(!0),
|
|
25316
|
-
renderExpand: (e) => I(
|
|
25352
|
+
renderExpand: (e) => I(vO, {
|
|
25317
25353
|
order: e,
|
|
25318
25354
|
class: "pl-10 pt-3 pb-10",
|
|
25319
25355
|
"onClick:client-name": () => {
|
|
@@ -25374,7 +25410,7 @@ var aO = at({
|
|
|
25374
25410
|
key: br.DeliveryInfo,
|
|
25375
25411
|
resizable: !0,
|
|
25376
25412
|
minWidth: 320,
|
|
25377
|
-
render: (e) => I(
|
|
25413
|
+
render: (e) => I(vD, { delivery: e.delivery })
|
|
25378
25414
|
},
|
|
25379
25415
|
{
|
|
25380
25416
|
title: "Клиент",
|
|
@@ -25412,7 +25448,7 @@ var aO = at({
|
|
|
25412
25448
|
resizable: !0,
|
|
25413
25449
|
width: 115,
|
|
25414
25450
|
minWidth: 95,
|
|
25415
|
-
render: (e) => e.payment ? I(
|
|
25451
|
+
render: (e) => e.payment ? I(wD, { payment: e.payment }) : I("span", { class: "text-base" }, "—")
|
|
25416
25452
|
},
|
|
25417
25453
|
{
|
|
25418
25454
|
title: "Напр. продаж",
|
|
@@ -25434,7 +25470,7 @@ var aO = at({
|
|
|
25434
25470
|
title: "",
|
|
25435
25471
|
className: "align-top",
|
|
25436
25472
|
width: 50,
|
|
25437
|
-
render: (e) => I(
|
|
25473
|
+
render: (e) => I(yO, {
|
|
25438
25474
|
order: e,
|
|
25439
25475
|
orderContextButtonsConfig: r.orderContextButtonsConfig,
|
|
25440
25476
|
onOrderContextSelect: r.onOrderContextSelect
|
|
@@ -25474,7 +25510,7 @@ var aO = at({
|
|
|
25474
25510
|
key: "order",
|
|
25475
25511
|
title: "Заказ",
|
|
25476
25512
|
resizable: !0,
|
|
25477
|
-
render: (e) => I(
|
|
25513
|
+
render: (e) => I(CD, {
|
|
25478
25514
|
order: e,
|
|
25479
25515
|
fields: t,
|
|
25480
25516
|
orderUrl: r.orderUrl,
|
|
@@ -25611,12 +25647,12 @@ var aO = at({
|
|
|
25611
25647
|
]);
|
|
25612
25648
|
};
|
|
25613
25649
|
}
|
|
25614
|
-
}), [["__scopeId", "data-v-172e15bf"]]),
|
|
25650
|
+
}), [["__scopeId", "data-v-172e15bf"]]), xO = O(() => ce().deliveryTypeReference ?? []), SO = O(() => ce().managersList ?? []), CO = O(() => ce().opfReference ?? []), wO = O(() => ce().partnerGroupsReference ?? []), TO = O(() => ce().priceCoefficientsReference ?? []), EO = O(() => ce().productFilesTypesReference ?? []), DO = O(() => ce().resourceTypesReference), OO = O(() => ce().salesDirectionsReference ?? []), kO = O(() => ce().warehousesReference ?? []), AO = O(() => ce().paymentTypeReference ?? []), jO = O(() => ce().orderStatusReference ?? []), MO = O(() => ce().orderStatusDetailReference ?? []), NO = O(() => ce().operatorReference ?? []), PO = O(() => Vr.convertReferencesToSelectOptionsList(ce().channelPrimaryInterestsReference ?? [], !0, !1, !0)), FO = O(() => Vr.convertReferencesToSelectOptionsList(ce().sourcePrimaryInterestsReference ?? [], !0, !1, !0)), IO = (e) => d.getInstance(T).searchCity(e), LO = (e) => Vr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e?.isNewRec() ? "-" : `${e.name}, ${e?.region?.name}, ${e?.region?.country?.name}`, (e) => e?.isNewRec()), RO = async (e) => Ne(await d.getInstance(T).searchRegion(e), (e) => new E(e)), zO = (e) => Vr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : je(de([e.name, e.country.name]), ", "), (e) => e.isNewRec()), BO = (e) => d.getInstance(r).searchClient(e), VO = (e) => Vr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : [
|
|
25615
25651
|
e.name,
|
|
25616
25652
|
e.salesDirection.name ? `(${e.salesDirection.name})` : void 0,
|
|
25617
25653
|
e.city.name ? `г. ${e.city.name}${e.city.region.name ? `, ${e.city.region.name}` : ""}` : void 0,
|
|
25618
25654
|
e.isActive ? void 0 : "[ Деактивирован ]"
|
|
25619
|
-
].filter(Boolean).join(" "), (e) => e?.isNewRec()),
|
|
25655
|
+
].filter(Boolean).join(" "), (e) => e?.isNewRec()), HO = { class: "flex flex-col gap-4" }, UO = { class: "flex flex-wrap gap-2" }, WO = { class: "flex flex-col gap-1.5" }, GO = { class: "inline-flex items-center gap-2" }, KO = { class: "flex flex-col gap-1.5" }, qO = { class: "inline-flex items-center gap-2" }, JO = /* @__PURE__ */ F({
|
|
25620
25656
|
__name: "order-highlight-settings",
|
|
25621
25657
|
props: {
|
|
25622
25658
|
settings: {},
|
|
@@ -25624,7 +25660,7 @@ var aO = at({
|
|
|
25624
25660
|
},
|
|
25625
25661
|
emits: ["update:settings"],
|
|
25626
25662
|
setup(e, { emit: t }) {
|
|
25627
|
-
let n = e, r = t, i = O(() => n.statuses ??
|
|
25663
|
+
let n = e, r = t, i = O(() => n.statuses ?? jO.value), a = (e) => !!e && n.settings.statuses.includes(e), o = (e, t) => {
|
|
25628
25664
|
if (!e) return;
|
|
25629
25665
|
let i = n.settings.statuses.filter((t) => t !== e);
|
|
25630
25666
|
r("update:settings", {
|
|
@@ -25645,8 +25681,8 @@ var aO = at({
|
|
|
25645
25681
|
};
|
|
25646
25682
|
return (t, n) => {
|
|
25647
25683
|
let r = rn, l = an;
|
|
25648
|
-
return L(), j("div",
|
|
25649
|
-
M("div",
|
|
25684
|
+
return L(), j("div", HO, [
|
|
25685
|
+
M("div", UO, [P(r, {
|
|
25650
25686
|
size: "small",
|
|
25651
25687
|
onClick: n[0] ||= (e) => c(!0)
|
|
25652
25688
|
}, {
|
|
@@ -25659,26 +25695,26 @@ var aO = at({
|
|
|
25659
25695
|
default: U(() => [...n[3] ||= [N(" Снять всё ", -1)]]),
|
|
25660
25696
|
_: 1
|
|
25661
25697
|
})]),
|
|
25662
|
-
M("div",
|
|
25698
|
+
M("div", WO, [n[4] ||= M("div", { class: "text-sm font-semibold" }, "Статусы", -1), (L(!0), j(D, null, xt(i.value, (e) => (L(), k(l, {
|
|
25663
25699
|
key: e.id,
|
|
25664
25700
|
checked: a(e.slug),
|
|
25665
25701
|
"onUpdate:checked": (t) => o(e.slug, t)
|
|
25666
25702
|
}, {
|
|
25667
|
-
default: U(() => [M("span",
|
|
25703
|
+
default: U(() => [M("span", GO, [P(zD, { colors: V(dr)(e.slug) }, null, 8, ["colors"]), N(" " + B(e.name), 1)])]),
|
|
25668
25704
|
_: 2
|
|
25669
25705
|
}, 1032, ["checked", "onUpdate:checked"]))), 128))]),
|
|
25670
|
-
M("div",
|
|
25706
|
+
M("div", KO, [n[5] ||= M("div", { class: "text-sm font-semibold" }, "Маркеры", -1), (L(!0), j(D, null, xt(V(gr), (t) => (L(), k(l, {
|
|
25671
25707
|
key: t,
|
|
25672
25708
|
checked: e.settings.markers.includes(t),
|
|
25673
25709
|
"onUpdate:checked": (e) => s(t, e)
|
|
25674
25710
|
}, {
|
|
25675
|
-
default: U(() => [M("span",
|
|
25711
|
+
default: U(() => [M("span", qO, [P(zD, { colors: V(_r)(t) }, null, 8, ["colors"]), N(" " + B(V(vr)(t)), 1)])]),
|
|
25676
25712
|
_: 2
|
|
25677
25713
|
}, 1032, ["checked", "onUpdate:checked"]))), 128))])
|
|
25678
25714
|
]);
|
|
25679
25715
|
};
|
|
25680
25716
|
}
|
|
25681
|
-
}),
|
|
25717
|
+
}), YO = ["href"], XO = { class: "text-sc-dark-grey" }, ZO = /* @__PURE__ */ F({
|
|
25682
25718
|
__name: "short-text-order-info",
|
|
25683
25719
|
props: {
|
|
25684
25720
|
order: {},
|
|
@@ -25695,20 +25731,20 @@ var aO = at({
|
|
|
25695
25731
|
M("a", {
|
|
25696
25732
|
href: e.orderLink ?? "#",
|
|
25697
25733
|
onClick: n[0] ||= (e) => a(e)
|
|
25698
|
-
}, B(e.order.id), 9,
|
|
25734
|
+
}, B(e.order.id), 9, YO),
|
|
25699
25735
|
N(" от " + B(i.value), 1)
|
|
25700
25736
|
]),
|
|
25701
25737
|
n[2] ||= N(", ", -1),
|
|
25702
|
-
M("span",
|
|
25738
|
+
M("span", XO, "автор: " + B(e.order.creator.name) + " [" + B(e.order.creator.type) + "]", 1)
|
|
25703
25739
|
], 64));
|
|
25704
25740
|
}
|
|
25705
|
-
}),
|
|
25741
|
+
}), QO = { class: "sc-page flex flex-col bg-inherit" }, $O = { class: "my-2 flex flex-row items-end" }, ek = { class: "sc-title grow" }, tk = {
|
|
25706
25742
|
key: 0,
|
|
25707
25743
|
class: "sc-title-buttons flex-1 grow-0"
|
|
25708
|
-
},
|
|
25744
|
+
}, nk = { class: "flex flex-col justify-end gap-1 sm:mt-0 sm:flex-row" }, rk = {
|
|
25709
25745
|
key: 0,
|
|
25710
25746
|
class: "sc-title-extra mt-2 sm:mt-4"
|
|
25711
|
-
},
|
|
25747
|
+
}, ik = /* @__PURE__ */ F({
|
|
25712
25748
|
__name: "page",
|
|
25713
25749
|
props: {
|
|
25714
25750
|
title: { default: void 0 },
|
|
@@ -25723,20 +25759,20 @@ var aO = at({
|
|
|
25723
25759
|
let t = e, n = O(() => t.stickyHeaderOnMobile ? "sticky z-10 bg-inherit" : "lg:sticky z-10 bg-inherit");
|
|
25724
25760
|
return (t, r) => {
|
|
25725
25761
|
let i = hn;
|
|
25726
|
-
return L(), j("div",
|
|
25762
|
+
return L(), j("div", QO, [M("div", {
|
|
25727
25763
|
class: ut(e.stickyHeader ? n.value : void 0),
|
|
25728
25764
|
style: dt(e.stickyHeader ? { top: `${e.stickyTopOffset ?? 0}px` } : void 0)
|
|
25729
25765
|
}, [
|
|
25730
|
-
M("div",
|
|
25766
|
+
M("div", $O, [M("div", ek, [z(t.$slots, "title", {}, () => [P(i, { class: "m-0 leading-none lg:mb-3 lg:leading-normal" }, {
|
|
25731
25767
|
default: U(() => [N(B(e.title ?? ""), 1)]),
|
|
25732
25768
|
_: 1
|
|
25733
|
-
})])]), t.$slots["title-buttons"] ? (L(), j("div",
|
|
25734
|
-
t.$slots["title-extra"] ? (L(), j("div",
|
|
25769
|
+
})])]), t.$slots["title-buttons"] ? (L(), j("div", tk, [M("div", nk, [z(t.$slots, "title-buttons")])])) : A("", !0)]),
|
|
25770
|
+
t.$slots["title-extra"] ? (L(), j("div", rk, [z(t.$slots, "title-extra")])) : A("", !0),
|
|
25735
25771
|
z(t.$slots, "sticky-extra")
|
|
25736
25772
|
], 6), z(t.$slots, "default")]);
|
|
25737
25773
|
};
|
|
25738
25774
|
}
|
|
25739
|
-
}),
|
|
25775
|
+
}), ak = { class: "overflow-hidden transition-all duration-300" }, ok = { class: "text-lg font-medium leading-none" }, sk = /* @__PURE__ */ F({
|
|
25740
25776
|
__name: "sliding-content-with-drawer",
|
|
25741
25777
|
props: {
|
|
25742
25778
|
drawerWidth: {
|
|
@@ -25770,7 +25806,7 @@ var aO = at({
|
|
|
25770
25806
|
window.removeEventListener("resize", s);
|
|
25771
25807
|
}), s(), window.addEventListener("resize", s), (t, n) => {
|
|
25772
25808
|
let r = un, o = ln;
|
|
25773
|
-
return L(), j(D, null, [M("div",
|
|
25809
|
+
return L(), j(D, null, [M("div", ak, [M("div", {
|
|
25774
25810
|
style: dt(`margin-left: ${i.value}px;`),
|
|
25775
25811
|
class: "w-full"
|
|
25776
25812
|
}, [z(t.$slots, "default")], 4)]), P(o, {
|
|
@@ -25781,7 +25817,7 @@ var aO = at({
|
|
|
25781
25817
|
placement: "left"
|
|
25782
25818
|
}, {
|
|
25783
25819
|
default: U(() => [P(r, { closable: "" }, {
|
|
25784
|
-
header: U(() => [z(t.$slots, "drawer-header", {}, () => [M("div",
|
|
25820
|
+
header: U(() => [z(t.$slots, "drawer-header", {}, () => [M("div", ok, B(e.title), 1)])]),
|
|
25785
25821
|
default: U(() => [z(t.$slots, "drawer-content")]),
|
|
25786
25822
|
footer: U(() => [z(t.$slots, "drawer-footer")]),
|
|
25787
25823
|
_: 3
|
|
@@ -25790,13 +25826,13 @@ var aO = at({
|
|
|
25790
25826
|
}, 8, ["show", "width"])], 64);
|
|
25791
25827
|
};
|
|
25792
25828
|
}
|
|
25793
|
-
}),
|
|
25829
|
+
}), ck = {
|
|
25794
25830
|
ref: "panel-component-ref",
|
|
25795
25831
|
class: "sc-page-panel flex flex-row gap-2.5 bg-inherit sm:gap-8"
|
|
25796
|
-
},
|
|
25832
|
+
}, lk = { key: 0 }, uk = { class: "sc-page-preview-panel grow" }, dk = {
|
|
25797
25833
|
key: 1,
|
|
25798
25834
|
class: "sc-page-preview-panel-extra flex-none"
|
|
25799
|
-
},
|
|
25835
|
+
}, fk = /* @__PURE__ */ F({
|
|
25800
25836
|
__name: "page-with-sliding-panel",
|
|
25801
25837
|
props: {
|
|
25802
25838
|
title: {},
|
|
@@ -25835,13 +25871,13 @@ var aO = at({
|
|
|
25835
25871
|
closePanel: i
|
|
25836
25872
|
}), (t, r) => {
|
|
25837
25873
|
let i = rn;
|
|
25838
|
-
return L(), k(
|
|
25874
|
+
return L(), k(ik, {
|
|
25839
25875
|
title: e.title,
|
|
25840
25876
|
"sticky-header": e.stickyHeader,
|
|
25841
25877
|
"sticky-top-offset": e.stickyTopOffset,
|
|
25842
25878
|
"sticky-header-on-mobile": e.stickyHeaderOnMobile
|
|
25843
25879
|
}, et({
|
|
25844
|
-
default: U(() => [P(
|
|
25880
|
+
default: U(() => [P(sk, {
|
|
25845
25881
|
"show-drawer": n.value,
|
|
25846
25882
|
"onUpdate:showDrawer": r[1] ||= (e) => n.value = e,
|
|
25847
25883
|
title: e.panelTitle
|
|
@@ -25877,8 +25913,8 @@ var aO = at({
|
|
|
25877
25913
|
} : void 0,
|
|
25878
25914
|
t.$slots["preview-panel"] || t.$slots["preview-panel-extra"] || e.isShowPanelButtonVisible ? {
|
|
25879
25915
|
name: "sticky-extra",
|
|
25880
|
-
fn: U(() => [M("div",
|
|
25881
|
-
e.isShowPanelButtonVisible ? (L(), j("div",
|
|
25916
|
+
fn: U(() => [M("div", ck, [
|
|
25917
|
+
e.isShowPanelButtonVisible ? (L(), j("div", lk, [z(t.$slots, "show-panel-button", { onClickHandler: () => {
|
|
25882
25918
|
n.value = !0;
|
|
25883
25919
|
} }, () => [P(i, {
|
|
25884
25920
|
class: "flex-none sm:px-10 sm:py-4",
|
|
@@ -25887,8 +25923,8 @@ var aO = at({
|
|
|
25887
25923
|
default: U(() => [N(B(e.showPanelButtonText), 1)]),
|
|
25888
25924
|
_: 1
|
|
25889
25925
|
})])])) : A("", !0),
|
|
25890
|
-
M("div",
|
|
25891
|
-
t.$slots["preview-panel-extra"] ? (L(), j("div",
|
|
25926
|
+
M("div", uk, [z(t.$slots, "preview-panel")]),
|
|
25927
|
+
t.$slots["preview-panel-extra"] ? (L(), j("div", dk, [z(t.$slots, "preview-panel-extra")])) : A("", !0)
|
|
25892
25928
|
], 512)]),
|
|
25893
25929
|
key: "3"
|
|
25894
25930
|
} : void 0
|
|
@@ -25900,7 +25936,7 @@ var aO = at({
|
|
|
25900
25936
|
]);
|
|
25901
25937
|
};
|
|
25902
25938
|
}
|
|
25903
|
-
}),
|
|
25939
|
+
}), pk = /* @__PURE__ */ F({
|
|
25904
25940
|
__name: "curator-select",
|
|
25905
25941
|
props: {
|
|
25906
25942
|
value: { default: null },
|
|
@@ -25984,7 +26020,7 @@ var aO = at({
|
|
|
25984
26020
|
"options"
|
|
25985
26021
|
]));
|
|
25986
26022
|
}
|
|
25987
|
-
}),
|
|
26023
|
+
}), mk = /* @__PURE__ */ F({
|
|
25988
26024
|
__name: "manager-operator-select",
|
|
25989
26025
|
props: {
|
|
25990
26026
|
value: { default: null },
|
|
@@ -26105,7 +26141,7 @@ var aO = at({
|
|
|
26105
26141
|
"options"
|
|
26106
26142
|
]));
|
|
26107
26143
|
}
|
|
26108
|
-
}),
|
|
26144
|
+
}), hk = /* @__PURE__ */ F({
|
|
26109
26145
|
__name: "manager-select",
|
|
26110
26146
|
props: {
|
|
26111
26147
|
value: { default: null },
|
|
@@ -26197,11 +26233,11 @@ var aO = at({
|
|
|
26197
26233
|
"options"
|
|
26198
26234
|
]));
|
|
26199
26235
|
}
|
|
26200
|
-
}),
|
|
26236
|
+
}), gk = { class: "m-0.5 flex flex-col p-0.5" }, _k = { "data-testid": "address-line" }, vk = { key: 0 }, yk = { key: 1 }, bk = { key: 2 }, xk = { key: 3 }, Sk = { "data-testid": "address-line" }, Ck = { key: 0 }, wk = { key: 1 }, Tk = { key: 2 }, Ek = { key: 3 }, Dk = {
|
|
26201
26237
|
key: 0,
|
|
26202
26238
|
"data-testid": "address-quality-label",
|
|
26203
26239
|
class: "text-sc-warning text-xs"
|
|
26204
|
-
},
|
|
26240
|
+
}, Ok = /* @__PURE__ */ F({
|
|
26205
26241
|
__name: "address-suggestion-label",
|
|
26206
26242
|
props: {
|
|
26207
26243
|
addr: {},
|
|
@@ -26209,28 +26245,28 @@ var aO = at({
|
|
|
26209
26245
|
},
|
|
26210
26246
|
setup(e) {
|
|
26211
26247
|
let t = e, n = O(() => Dr.getLabel(t.addr.quality));
|
|
26212
|
-
return (t, r) => (L(), j("div",
|
|
26213
|
-
M("span",
|
|
26214
|
-
e.addr.postIndex ? (L(), j("span",
|
|
26215
|
-
e.addr.city ? (L(), j("span",
|
|
26216
|
-
e.addr.locality ? (L(), j("span",
|
|
26217
|
-
e.addr.region ? (L(), j("span",
|
|
26248
|
+
return (t, r) => (L(), j("div", gk, [
|
|
26249
|
+
M("span", _k, [
|
|
26250
|
+
e.addr.postIndex ? (L(), j("span", vk, B(e.addr.postIndex) + ", ", 1)) : A("", !0),
|
|
26251
|
+
e.addr.city ? (L(), j("span", yk, B(e.addr.city) + ", ", 1)) : A("", !0),
|
|
26252
|
+
e.addr.locality ? (L(), j("span", bk, B(e.addr.locality) + ", ", 1)) : A("", !0),
|
|
26253
|
+
e.addr.region ? (L(), j("span", xk, B(e.addr.region) + ", ", 1)) : A("", !0)
|
|
26218
26254
|
]),
|
|
26219
|
-
M("span",
|
|
26220
|
-
e.addr.street ? (L(), j("span",
|
|
26221
|
-
e.addr.building ? (L(), j("span",
|
|
26222
|
-
e.addr.buildingPart ? (L(), j("span",
|
|
26223
|
-
e.addr.apartments ? (L(), j("span",
|
|
26255
|
+
M("span", Sk, [
|
|
26256
|
+
e.addr.street ? (L(), j("span", Ck, B(e.addr.street) + ", ", 1)) : A("", !0),
|
|
26257
|
+
e.addr.building ? (L(), j("span", wk, B(e.addr.building) + ", ", 1)) : A("", !0),
|
|
26258
|
+
e.addr.buildingPart ? (L(), j("span", Tk, B(e.addr.buildingPart) + ", ", 1)) : A("", !0),
|
|
26259
|
+
e.addr.apartments ? (L(), j("span", Ek, B(e.addr.apartments) + ", ", 1)) : A("", !0)
|
|
26224
26260
|
]),
|
|
26225
|
-
n.value ? (L(), j("span",
|
|
26261
|
+
n.value ? (L(), j("span", Dk, B(n.value), 1)) : A("", !0)
|
|
26226
26262
|
]));
|
|
26227
26263
|
}
|
|
26228
|
-
}),
|
|
26264
|
+
}), kk = {
|
|
26229
26265
|
clearable: !1,
|
|
26230
26266
|
value: "",
|
|
26231
26267
|
field: void 0,
|
|
26232
26268
|
disabled: !1
|
|
26233
|
-
},
|
|
26269
|
+
}, Ak = /* @__PURE__ */ F({
|
|
26234
26270
|
__name: "address-suggestion",
|
|
26235
26271
|
props: /*@__PURE__*/ ot({
|
|
26236
26272
|
disabled: { type: Boolean },
|
|
@@ -26242,7 +26278,7 @@ var aO = at({
|
|
|
26242
26278
|
wrapContent: { type: Boolean },
|
|
26243
26279
|
searchDataHandler: { type: Function }
|
|
26244
26280
|
}, {
|
|
26245
|
-
...
|
|
26281
|
+
...kk,
|
|
26246
26282
|
minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
|
|
26247
26283
|
searchDataHandler: void 0,
|
|
26248
26284
|
wrapContent: !0
|
|
@@ -26264,7 +26300,7 @@ var aO = at({
|
|
|
26264
26300
|
}));
|
|
26265
26301
|
}, p = (e, t) => {
|
|
26266
26302
|
let n = s.value.find((t) => t.id === e.value) || {};
|
|
26267
|
-
return I(
|
|
26303
|
+
return I(Ok, {
|
|
26268
26304
|
addr: n,
|
|
26269
26305
|
selected: t
|
|
26270
26306
|
}, { default: fe("-") });
|
|
@@ -26304,16 +26340,16 @@ var aO = at({
|
|
|
26304
26340
|
]);
|
|
26305
26341
|
};
|
|
26306
26342
|
}
|
|
26307
|
-
}),
|
|
26343
|
+
}), jk = { class: "m-0.5 flex flex-col p-0.5" }, Mk = { class: "font-medium" }, Nk = { class: "flex flex-row gap-1 text-xs font-light text-blue-800" }, Pk = { key: 0 }, Fk = { key: 1 }, Ik = /* @__PURE__ */ F({
|
|
26308
26344
|
__name: "bank-suggestion-label",
|
|
26309
26345
|
props: {
|
|
26310
26346
|
bank: {},
|
|
26311
26347
|
selected: { type: Boolean }
|
|
26312
26348
|
},
|
|
26313
26349
|
setup(e) {
|
|
26314
|
-
return (t, n) => (L(), j("div",
|
|
26350
|
+
return (t, n) => (L(), j("div", jk, [M("span", Mk, B(e.bank.name), 1), M("span", Nk, [e.bank.bic ? (L(), j("span", Pk, " БИК: " + B(e.bank.bic), 1)) : A("", !0), e.bank.inn ? (L(), j("span", Fk, " ИНН: " + B(e.bank.inn), 1)) : A("", !0)])]));
|
|
26315
26351
|
}
|
|
26316
|
-
}),
|
|
26352
|
+
}), Lk = /* @__PURE__ */ F({
|
|
26317
26353
|
__name: "bank-suggestion",
|
|
26318
26354
|
props: /*@__PURE__*/ ot({
|
|
26319
26355
|
disabled: { type: Boolean },
|
|
@@ -26324,7 +26360,7 @@ var aO = at({
|
|
|
26324
26360
|
consistentMenuWidth: { type: Boolean },
|
|
26325
26361
|
wrapContent: { type: Boolean }
|
|
26326
26362
|
}, {
|
|
26327
|
-
...
|
|
26363
|
+
...kk,
|
|
26328
26364
|
minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
|
|
26329
26365
|
wrapContent: !0
|
|
26330
26366
|
}),
|
|
@@ -26350,7 +26386,7 @@ var aO = at({
|
|
|
26350
26386
|
}
|
|
26351
26387
|
}, p = (e, t) => {
|
|
26352
26388
|
let n = s.value.find((t) => t.id === e.value) || {};
|
|
26353
|
-
return I(
|
|
26389
|
+
return I(Ik, {
|
|
26354
26390
|
bank: n,
|
|
26355
26391
|
selected: t
|
|
26356
26392
|
}, { default: fe("-") });
|
|
@@ -26390,18 +26426,18 @@ var aO = at({
|
|
|
26390
26426
|
]);
|
|
26391
26427
|
};
|
|
26392
26428
|
}
|
|
26393
|
-
}),
|
|
26429
|
+
}), Rk = { class: "font-medium" }, zk = {
|
|
26394
26430
|
key: 0,
|
|
26395
26431
|
"data-testid": "org-details",
|
|
26396
26432
|
class: "text-xs font-light"
|
|
26397
|
-
},
|
|
26433
|
+
}, Bk = {
|
|
26398
26434
|
key: 0,
|
|
26399
26435
|
"data-testid": "org-inn",
|
|
26400
26436
|
class: "mr-2 whitespace-nowrap text-blue-800"
|
|
26401
|
-
},
|
|
26437
|
+
}, Vk = {
|
|
26402
26438
|
key: 1,
|
|
26403
26439
|
class: "text-sc-dark-grey"
|
|
26404
|
-
},
|
|
26440
|
+
}, Hk = /* @__PURE__ */ F({
|
|
26405
26441
|
__name: "org-suggestion-label",
|
|
26406
26442
|
props: {
|
|
26407
26443
|
org: {},
|
|
@@ -26409,9 +26445,9 @@ var aO = at({
|
|
|
26409
26445
|
},
|
|
26410
26446
|
setup(e) {
|
|
26411
26447
|
let t = e, n = O(() => t.org.rawData?.state?.liquidationDate ?? !1), r = O(() => t.org.rawData?.address?.value ?? "");
|
|
26412
|
-
return (t, i) => (L(), j("div", { class: ut(`m-0.5 flex flex-col p-0.5 ${n.value ? "line-through" : ""}`) }, [M("span",
|
|
26448
|
+
return (t, i) => (L(), j("div", { class: ut(`m-0.5 flex flex-col p-0.5 ${n.value ? "line-through" : ""}`) }, [M("span", Rk, B(e.org.name), 1), e.org.inn || r.value ? (L(), j("div", zk, [e.org.inn ? (L(), j("span", Bk, B(e.org.inn), 1)) : A("", !0), r.value ? (L(), j("span", Vk, B(r.value), 1)) : A("", !0)])) : A("", !0)], 2));
|
|
26413
26449
|
}
|
|
26414
|
-
}),
|
|
26450
|
+
}), Uk = /* @__PURE__ */ F({
|
|
26415
26451
|
__name: "org-suggestion",
|
|
26416
26452
|
props: /*@__PURE__*/ ot({
|
|
26417
26453
|
disabled: { type: Boolean },
|
|
@@ -26423,7 +26459,7 @@ var aO = at({
|
|
|
26423
26459
|
wrapContent: { type: Boolean },
|
|
26424
26460
|
allowSelectTerminated: { type: Boolean }
|
|
26425
26461
|
}, {
|
|
26426
|
-
...
|
|
26462
|
+
...kk,
|
|
26427
26463
|
minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
|
|
26428
26464
|
wrapContent: !0
|
|
26429
26465
|
}),
|
|
@@ -26446,7 +26482,7 @@ var aO = at({
|
|
|
26446
26482
|
}
|
|
26447
26483
|
}, m = (e, t) => {
|
|
26448
26484
|
let n = s.value.find((t) => t.id === e.value) || {};
|
|
26449
|
-
return I(
|
|
26485
|
+
return I(Hk, {
|
|
26450
26486
|
org: n,
|
|
26451
26487
|
selected: t
|
|
26452
26488
|
}, { default: fe("-") });
|
|
@@ -26488,4 +26524,4 @@ var aO = at({
|
|
|
26488
26524
|
}
|
|
26489
26525
|
});
|
|
26490
26526
|
//#endregion
|
|
26491
|
-
export { gr as ALL_ORDER_MARKERS, Dr as AddressQualityLabelHelper, qn as CATEGORY_REQUIRED_HINT, Hr as CommonValidators, Qd as ConfiguratorSettingsKozyrek, Sh as ConfiguratorSettingsMosquito, Ar as ContentHelper, jr as CurrencyHelper, lr as DEFAULT_ORDER_STATUS_COLORS, Ur as DateValidators, Nr as EntityNameHelper, Mr as FileHelper, Ld as KozyrekLine, Zd as KozyrekTailTemplate, Xd as KozyrekTemplate, qr as M2PriceHelper, Gn as MODE_DISABLED_HINT, zr as NumberHelper, W as NumericValidators, mr as ORDER_MARKER_COLORS, hr as ORDER_MARKER_NAMES, ur as ORDER_STATUS_COLORS, sr as OrderMarkerEnum, br as OrdersTableFields, Kn as PRODUCT_REQUIRED_HINT, Id as Point, mm as ScAddProductToCartDialog,
|
|
26527
|
+
export { gr as ALL_ORDER_MARKERS, Dr as AddressQualityLabelHelper, qn as CATEGORY_REQUIRED_HINT, Hr as CommonValidators, Qd as ConfiguratorSettingsKozyrek, Sh as ConfiguratorSettingsMosquito, Ar as ContentHelper, jr as CurrencyHelper, lr as DEFAULT_ORDER_STATUS_COLORS, Ur as DateValidators, Nr as EntityNameHelper, Mr as FileHelper, Ld as KozyrekLine, Zd as KozyrekTailTemplate, Xd as KozyrekTemplate, qr as M2PriceHelper, Gn as MODE_DISABLED_HINT, zr as NumberHelper, W as NumericValidators, mr as ORDER_MARKER_COLORS, hr as ORDER_MARKER_NAMES, ur as ORDER_STATUS_COLORS, sr as OrderMarkerEnum, br as OrdersTableFields, Kn as PRODUCT_REQUIRED_HINT, Id as Point, mm as ScAddProductToCartDialog, Ak as ScAddressSuggestion, Ok as ScAddressSuggestionLabel, Lk as ScBankSuggestion, Ik as ScBankSuggestionLabel, Ua as ScBaseDialog, Jr as ScButtonWithConfirmAction, lm as ScCategoryCollapse, Xr as ScChipGroup, Sm as ScClientNameWithShortInfo, cm as ScCollapse, Ri as ScCollapseItem, F_ as ScCommentEditor, cv as ScCompactCardList, jo as ScConfiguratorsProductInfo, wm as ScContragentWithShortInfo, ED as ScCreatorUserTypeTag, pk as ScCuratorSelect, f_ as ScDateRange, m_ as ScDateTimeLabel, J_ as ScDebouncedInput, Y_ as ScDebouncedInputNumber, h_ as ScDebt, b_ as ScDialogHeader, Wp as ScDynamicConfigurator, km as ScEmail, av as ScExternalLink, U_ as ScFlagMark, Aa as ScImageGallery, M_ as ScInlineEditableItem, j_ as ScInlineView, tf as ScKozyrekConfigurator, Ho as ScKozyrekConfiguratorParamsForm, Yd as ScKozyrekConfiguratorPreview, Gd as ScKozyrekConfiguratorTemplates, $_ as ScKpiGrid, Da as ScLightGallery, mk as ScManagerOperatorSelect, hk as ScManagerSelect, zf as ScMetalForDoorsConfigurator, Lf as ScMetalForDoorsConfiguratorForm, Sf as ScMosquitoConfigurator, ff as ScMosquitoConfiguratorForm, bf as ScMosquitoConfiguratorMeasurementInstructions, af as ScMosquitoConfiguratorPreview, zD as ScOrderColorSwatch, CD as ScOrderCommonInfo, vD as ScOrderDeliveryLabel, aO as ScOrderDetails, uO as ScOrderExternalLinks, JO as ScOrderHighlightSettings, vO as ScOrderInfo, nD as ScOrderItemParams, XD as ScOrderItemsList, wD as ScOrderPayment, ND as ScOrderProductInfo, $D as ScOrderStatusHistory, RD as ScOrderStatusTag, bO as ScOrdersList, Uk as ScOrgSuggestion, Hk as ScOrgSuggestionLabel, ik as ScPage, fk as ScPageWithSlidingPanel, xh as ScPersonContactsBlock, nh as ScPhone, X_ as ScPhoneInput, Ba as ScProductInfoContent, Ka as ScProductInfoDialog, Ya as ScProductInfoPopover, vo as ScProductName, EE as ScProductsList, um as ScReferenceSelect, sp as ScSandwichConfigurator, ip as ScSandwichConfiguratorForm, Rp as ScSandwichM2Configurator, Fp as ScSandwichM2ConfiguratorForm, bE as ScSearchableProductSelect, yE as ScSearchableReferenceSelect, dm as ScSetClientPriceFormItem, ZO as ScShortTextOrderInfo, z_ as ScSingleFileUploadSelector, sk as ScSlidingContentWithDrawer, ID as ScStatusTag, Ff as ScStripConfigurator, Of as ScStripConfiguratorForm, Cf as ScStripConfiguratorLineItem, Mf as ScStripConfiguratorPreview, tO as ScUserShortInfo, q_ as ScWarningIcon, Vr as SelectOptionHelper, Jn as UiNotificationProvider, Wr as Validators, xr as WindowResolutionEnum, Sr as WindowResolutionProvider, PO as channelPrimaryInterestOptionsList, Hi as componentSizeInjectionKey, Zn as copyToClipboard, xO as deliveryTypeReferenceList, _r as getOrderMarkerColors, vr as getOrderMarkerName, yr as getOrderMarkers, dr as getOrderStatusColors, pr as getOrderStatusCssVariables, fr as getOrderStatusTagColor, Gr as getProductInfoFiles, cr as getStatusTagColor, Fr as handleFloatInput, Pr as handleIntegerInput, Kr as hasProductInfo, Ch as isCanSandwichM2Show, Kp as isCanSandwichShow, Gp as isConfiguratorType, SO as managersReferenceList, Ui as naiveUiTheme, NO as operatorReferenceList, CO as opfReferenceList, MO as orderStatusDetailReferenceList, jO as orderStatusReferenceList, Br as paginationItemsPrefix, Ir as parse, wO as partnerGroupReferenceList, AO as paymentTypeReferenceList, TO as priceCoefficientsReferenceList, EO as productFilesTypesReferenceList, Rd as renderConfig, Lr as resetInputValidation, DO as resourceReferencesList, OO as salesDirectionsReferenceList, IO as searchCityReferenceDataHandler, LO as searchCityReferenceLabelRenderer, BO as searchClientReferenceDataHandler, VO as searchClientReferenceLabelRenderer, RO as searchRegionReferenceDataHandler, zO as searchRegionReferenceLabelRenderer, Rr as selectAllTextOnFocus, kr as showAppVersion, FO as sourcePrimaryInterestOptionsList, wr as useCompactLayout, Er as useHoverSupport, er as vCopy, or as vFocusNext, kO as warehousesReferenceList };
|