@inno_user/inno_clouds_lib 9.4.6 → 9.4.7
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.
|
@@ -16,7 +16,7 @@ var Ps = (i, a, o, s) => ({
|
|
|
16
16
|
import { createRouter as Ec, createWebHistory as Ic, useRoute as or, useRouter as Fn } from "vue-router";
|
|
17
17
|
import { useRoute as n_, useRouter as r_ } from "vue-router";
|
|
18
18
|
import { defineStore as _r, storeToRefs as He } from "pinia";
|
|
19
|
-
import { toRaw as ja, ref as ce, watchEffect as Pr, computed as we, reactive as Gi, watch as xt, onMounted as bn, onUnmounted as Ln, defineComponent as Ue, nextTick as wn, createElementBlock as Q, openBlock as
|
|
19
|
+
import { toRaw as ja, ref as ce, watchEffect as Pr, computed as we, reactive as Gi, watch as xt, onMounted as bn, onUnmounted as Ln, defineComponent as Ue, nextTick as wn, createElementBlock as Q, openBlock as V, normalizeClass as it, unref as O, renderSlot as Or, createElementVNode as E, onBeforeUnmount as Ai, withDirectives as Yt, createCommentVNode as he, createVNode as pe, withCtx as Wt, Fragment as bt, renderList as rn, toDisplayString as ye, mergeModels as Sc, useModel as Tc, createBlock as Mt, Transition as ti, normalizeStyle as Gt, createTextVNode as nt, Teleport as Ei, vShow as qa, withModifiers as ln, toRefs as Rc, mergeProps as $a, shallowRef as Nc, toValue as qs, withKeys as Oc, vModelText as Sr, createStaticVNode as lo, onUpdated as Za, h as Dn, useTemplateRef as jo, isRef as Kr, isVNode as co } from "vue";
|
|
20
20
|
import { useLocalStorage as Wi, StorageSerializers as Mc, computedAsync as vi, useTemplateRefsList as kc, useVModel as Dc, useWindowSize as Bc, useElementBounding as Vi, useDebounceFn as Pc, useElementSize as Lc, useDocumentVisibility as Fc, useMediaQuery as Uc } from "@vueuse/core";
|
|
21
21
|
import { useMotionValue as qo, animate as rr, AnimatePresence as $o, Motion as pi, motion as Ya } from "motion-v";
|
|
22
22
|
function Hc(i, a) {
|
|
@@ -1289,7 +1289,7 @@ const Ct = _r("mainLib", () => {
|
|
|
1289
1289
|
console.error("WebSocket error:", Ce), N.close(!0);
|
|
1290
1290
|
}
|
|
1291
1291
|
N.on("open", me), N.on("message", ge), N.on("error", Ee), N.connect();
|
|
1292
|
-
},
|
|
1292
|
+
}, X = (ee) => {
|
|
1293
1293
|
s.value = ee, localStorage.setItem("kiosk_timeout", ee);
|
|
1294
1294
|
}, K = (ee) => {
|
|
1295
1295
|
a.value = ee;
|
|
@@ -1316,9 +1316,9 @@ const Ct = _r("mainLib", () => {
|
|
|
1316
1316
|
bi(ee);
|
|
1317
1317
|
}, re = (ee) => {
|
|
1318
1318
|
ee = { ...ee, idSystem: crypto.randomUUID() };
|
|
1319
|
-
const le =
|
|
1320
|
-
h.value.push(le),
|
|
1321
|
-
},
|
|
1319
|
+
const le = W(ee);
|
|
1320
|
+
h.value.push(le), q();
|
|
1321
|
+
}, q = () => {
|
|
1322
1322
|
try {
|
|
1323
1323
|
if (!h.value || h.value.length === 0) {
|
|
1324
1324
|
localStorage.removeItem("cart");
|
|
@@ -1328,7 +1328,7 @@ const Ct = _r("mainLib", () => {
|
|
|
1328
1328
|
} catch (ee) {
|
|
1329
1329
|
console.error("Failed to update cart in localStorage:", ee);
|
|
1330
1330
|
}
|
|
1331
|
-
},
|
|
1331
|
+
}, W = (ee) => Gi({
|
|
1332
1332
|
...ee,
|
|
1333
1333
|
amount: ee.amount ?? 1,
|
|
1334
1334
|
price: ee.old_price,
|
|
@@ -1358,16 +1358,16 @@ const Ct = _r("mainLib", () => {
|
|
|
1358
1358
|
)
|
|
1359
1359
|
}), I = (ee) => {
|
|
1360
1360
|
const le = h.value.find((me) => me.idSystem === ee);
|
|
1361
|
-
le && (le.amount += 1),
|
|
1361
|
+
le && (le.amount += 1), q();
|
|
1362
1362
|
}, $ = (ee) => {
|
|
1363
1363
|
const le = h.value.find((me) => me.idSystem === ee);
|
|
1364
|
-
le && (le.amount >= 1 && (le.amount -= 1),
|
|
1364
|
+
le && (le.amount >= 1 && (le.amount -= 1), q());
|
|
1365
1365
|
}, Z = () => {
|
|
1366
1366
|
try {
|
|
1367
1367
|
const ee = localStorage.getItem("cart");
|
|
1368
1368
|
if (ee) {
|
|
1369
1369
|
const le = JSON.parse(ee);
|
|
1370
|
-
h.value.splice(0, h.value.length, ...le.map(
|
|
1370
|
+
h.value.splice(0, h.value.length, ...le.map(W)), z.value = null;
|
|
1371
1371
|
}
|
|
1372
1372
|
} catch (ee) {
|
|
1373
1373
|
console.error("Failed to load cart from localStorage:", ee);
|
|
@@ -1396,7 +1396,7 @@ const Ct = _r("mainLib", () => {
|
|
|
1396
1396
|
displayCards: D,
|
|
1397
1397
|
isOrderTypeSubmited: m,
|
|
1398
1398
|
removeFromLocalStorage: te,
|
|
1399
|
-
setKioskTimeout:
|
|
1399
|
+
setKioskTimeout: X,
|
|
1400
1400
|
setBonus: oe,
|
|
1401
1401
|
setStateDrum: K,
|
|
1402
1402
|
addToCart: re,
|
|
@@ -1407,12 +1407,12 @@ const Ct = _r("mainLib", () => {
|
|
|
1407
1407
|
if (ee) {
|
|
1408
1408
|
const le = h.value.findIndex((me) => me.idSystem === ee);
|
|
1409
1409
|
if (le === -1) return;
|
|
1410
|
-
h.value.splice(le, 1),
|
|
1410
|
+
h.value.splice(le, 1), q(), z.value = null;
|
|
1411
1411
|
} else
|
|
1412
|
-
h.value = [],
|
|
1412
|
+
h.value = [], q();
|
|
1413
1413
|
},
|
|
1414
|
-
updateCartInLocalStorage:
|
|
1415
|
-
makeProductFullyReactive:
|
|
1414
|
+
updateCartInLocalStorage: q,
|
|
1415
|
+
makeProductFullyReactive: W,
|
|
1416
1416
|
checkHeartbeatApp: U
|
|
1417
1417
|
};
|
|
1418
1418
|
});
|
|
@@ -2455,7 +2455,7 @@ const bl = (i) => {
|
|
|
2455
2455
|
return;
|
|
2456
2456
|
const N = Cn.from(
|
|
2457
2457
|
"getAllResponseHeaders" in B && B.getAllResponseHeaders()
|
|
2458
|
-
),
|
|
2458
|
+
), X = {
|
|
2459
2459
|
data: !p || p === "text" || p === "json" ? B.responseText : B.response,
|
|
2460
2460
|
status: B.status,
|
|
2461
2461
|
statusText: B.statusText,
|
|
@@ -2467,26 +2467,26 @@ const bl = (i) => {
|
|
|
2467
2467
|
o(z), P();
|
|
2468
2468
|
}, function(z) {
|
|
2469
2469
|
s(z), P();
|
|
2470
|
-
},
|
|
2470
|
+
}, X), B = null;
|
|
2471
2471
|
}
|
|
2472
2472
|
"onloadend" in B ? B.onloadend = H : B.onreadystatechange = function() {
|
|
2473
2473
|
!B || B.readyState !== 4 || B.status === 0 && !(B.responseURL && B.responseURL.indexOf("file:") === 0) || setTimeout(H);
|
|
2474
2474
|
}, B.onabort = function() {
|
|
2475
2475
|
B && (s(new Xe("Request aborted", Xe.ECONNABORTED, i, B)), B = null);
|
|
2476
2476
|
}, B.onerror = function(U) {
|
|
2477
|
-
const
|
|
2477
|
+
const X = U && U.message ? U.message : "Network Error", K = new Xe(X, Xe.ERR_NETWORK, i, B);
|
|
2478
2478
|
K.event = U || null, s(K), B = null;
|
|
2479
2479
|
}, B.ontimeout = function() {
|
|
2480
2480
|
let U = u.timeout ? "timeout of " + u.timeout + "ms exceeded" : "timeout exceeded";
|
|
2481
|
-
const
|
|
2481
|
+
const X = u.transitional || xl;
|
|
2482
2482
|
u.timeoutErrorMessage && (U = u.timeoutErrorMessage), s(new Xe(
|
|
2483
2483
|
U,
|
|
2484
|
-
|
|
2484
|
+
X.clarifyTimeoutError ? Xe.ETIMEDOUT : Xe.ECONNABORTED,
|
|
2485
2485
|
i,
|
|
2486
2486
|
B
|
|
2487
2487
|
)), B = null;
|
|
2488
|
-
}, d === void 0 && h.setContentType(null), "setRequestHeader" in B && se.forEach(h.toJSON(), function(U,
|
|
2489
|
-
B.setRequestHeader(
|
|
2488
|
+
}, d === void 0 && h.setContentType(null), "setRequestHeader" in B && se.forEach(h.toJSON(), function(U, X) {
|
|
2489
|
+
B.setRequestHeader(X, U);
|
|
2490
2490
|
}), se.isUndefined(u.withCredentials) || (B.withCredentials = !!u.withCredentials), p && p !== "json" && (B.responseType = u.responseType), x && ([S, T] = ns(x, !0), B.addEventListener("progress", S)), m && B.upload && ([C, k] = ns(m), B.upload.addEventListener("progress", C), B.upload.addEventListener("loadend", k)), (u.cancelToken || u.signal) && (w = (N) => {
|
|
2491
2491
|
B && (s(!N || N.type ? new si(null, i, B) : N), B.abort(), B = null);
|
|
2492
2492
|
}, u.cancelToken && u.cancelToken.subscribe(w), u.signal && (u.signal.aborted ? w() : u.signal.addEventListener("abort", w)));
|
|
@@ -2643,7 +2643,7 @@ const bl = (i) => {
|
|
|
2643
2643
|
signal: D,
|
|
2644
2644
|
cancelToken: N,
|
|
2645
2645
|
timeout: U,
|
|
2646
|
-
onDownloadProgress:
|
|
2646
|
+
onDownloadProgress: X,
|
|
2647
2647
|
onUploadProgress: K,
|
|
2648
2648
|
responseType: z,
|
|
2649
2649
|
headers: L,
|
|
@@ -2651,8 +2651,8 @@ const bl = (i) => {
|
|
|
2651
2651
|
fetchOptions: oe
|
|
2652
2652
|
} = bl(T), te = a || fetch;
|
|
2653
2653
|
z = z ? (z + "").toLowerCase() : "text";
|
|
2654
|
-
let re = Y0([D, N && N.toAbortSignal()], U),
|
|
2655
|
-
const
|
|
2654
|
+
let re = Y0([D, N && N.toAbortSignal()], U), q = null;
|
|
2655
|
+
const W = re && re.unsubscribe && (() => {
|
|
2656
2656
|
re.unsubscribe();
|
|
2657
2657
|
});
|
|
2658
2658
|
let I;
|
|
@@ -2681,44 +2681,44 @@ const bl = (i) => {
|
|
|
2681
2681
|
duplex: "half",
|
|
2682
2682
|
credentials: $ ? F : void 0
|
|
2683
2683
|
};
|
|
2684
|
-
|
|
2685
|
-
let Y = await (d ? te(
|
|
2684
|
+
q = d && new o(P, Z);
|
|
2685
|
+
let Y = await (d ? te(q, oe) : te(P, Z));
|
|
2686
2686
|
const ee = w && (z === "stream" || z === "response");
|
|
2687
|
-
if (w && (
|
|
2687
|
+
if (w && (X || ee && W)) {
|
|
2688
2688
|
const me = {};
|
|
2689
2689
|
["status", "statusText", "headers"].forEach((ze) => {
|
|
2690
2690
|
me[ze] = Y[ze];
|
|
2691
2691
|
});
|
|
2692
|
-
const ge = se.toFiniteNumber(Y.headers.get("content-length")), [Ee, Ce] =
|
|
2692
|
+
const ge = se.toFiniteNumber(Y.headers.get("content-length")), [Ee, Ce] = X && da(
|
|
2693
2693
|
ge,
|
|
2694
|
-
ns(fa(
|
|
2694
|
+
ns(fa(X), !0)
|
|
2695
2695
|
) || [];
|
|
2696
2696
|
Y = new s(
|
|
2697
2697
|
ga(Y.body, pa, Ee, () => {
|
|
2698
|
-
Ce && Ce(),
|
|
2698
|
+
Ce && Ce(), W && W();
|
|
2699
2699
|
}),
|
|
2700
2700
|
me
|
|
2701
2701
|
);
|
|
2702
2702
|
}
|
|
2703
2703
|
z = z || "text";
|
|
2704
2704
|
let le = await C[se.findKey(C, z) || "text"](Y, T);
|
|
2705
|
-
return !ee &&
|
|
2705
|
+
return !ee && W && W(), await new Promise((me, ge) => {
|
|
2706
2706
|
vl(me, ge, {
|
|
2707
2707
|
data: le,
|
|
2708
2708
|
headers: Cn.from(Y.headers),
|
|
2709
2709
|
status: Y.status,
|
|
2710
2710
|
statusText: Y.statusText,
|
|
2711
2711
|
config: T,
|
|
2712
|
-
request:
|
|
2712
|
+
request: q
|
|
2713
2713
|
});
|
|
2714
2714
|
});
|
|
2715
2715
|
} catch ($) {
|
|
2716
|
-
throw
|
|
2717
|
-
new Xe("Network Error", Xe.ERR_NETWORK, T,
|
|
2716
|
+
throw W && W(), $ && $.name === "TypeError" && /Load failed|fetch/i.test($.message) ? Object.assign(
|
|
2717
|
+
new Xe("Network Error", Xe.ERR_NETWORK, T, q),
|
|
2718
2718
|
{
|
|
2719
2719
|
cause: $.cause || $
|
|
2720
2720
|
}
|
|
2721
|
-
) : Xe.from($, $ && $.code, T,
|
|
2721
|
+
) : Xe.from($, $ && $.code, T, q);
|
|
2722
2722
|
}
|
|
2723
2723
|
};
|
|
2724
2724
|
}, n1 = /* @__PURE__ */ new Map(), yl = (i) => {
|
|
@@ -3147,26 +3147,26 @@ function Sl(i) {
|
|
|
3147
3147
|
return Sl(kr(i, u));
|
|
3148
3148
|
}, o;
|
|
3149
3149
|
}
|
|
3150
|
-
const
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3150
|
+
const rt = Sl(Ni);
|
|
3151
|
+
rt.Axios = Mr;
|
|
3152
|
+
rt.CanceledError = si;
|
|
3153
|
+
rt.CancelToken = o1;
|
|
3154
|
+
rt.isCancel = wl;
|
|
3155
|
+
rt.VERSION = El;
|
|
3156
|
+
rt.toFormData = fs;
|
|
3157
|
+
rt.AxiosError = Xe;
|
|
3158
|
+
rt.Cancel = rt.CanceledError;
|
|
3159
|
+
rt.all = function(a) {
|
|
3160
3160
|
return Promise.all(a);
|
|
3161
3161
|
};
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3162
|
+
rt.spread = a1;
|
|
3163
|
+
rt.isAxiosError = l1;
|
|
3164
|
+
rt.mergeConfig = kr;
|
|
3165
|
+
rt.AxiosHeaders = Cn;
|
|
3166
|
+
rt.formToJSON = (i) => _l(se.isHTMLForm(i) ? new FormData(i) : i);
|
|
3167
|
+
rt.getAdapter = Al.getAdapter;
|
|
3168
|
+
rt.HttpStatusCode = ro;
|
|
3169
|
+
rt.default = rt;
|
|
3170
3170
|
const {
|
|
3171
3171
|
Axios: _x,
|
|
3172
3172
|
AxiosError: wx,
|
|
@@ -3184,7 +3184,7 @@ const {
|
|
|
3184
3184
|
formToJSON: Ox,
|
|
3185
3185
|
getAdapter: Mx,
|
|
3186
3186
|
mergeConfig: kx
|
|
3187
|
-
} =
|
|
3187
|
+
} = rt, gs = _r("modulesLib", () => {
|
|
3188
3188
|
const i = ce(!1), a = ce({ textNotification: "" });
|
|
3189
3189
|
return {
|
|
3190
3190
|
is_notification_lib: i,
|
|
@@ -3217,19 +3217,19 @@ const {
|
|
|
3217
3217
|
});
|
|
3218
3218
|
let P = null;
|
|
3219
3219
|
const B = vi(async (L) => {
|
|
3220
|
-
var te;
|
|
3220
|
+
var te, re, q;
|
|
3221
3221
|
u.value;
|
|
3222
3222
|
const F = new AbortController();
|
|
3223
|
-
if (L(() => F.abort()), !S.value) return null;
|
|
3223
|
+
if (L(() => F.abort()), !S.value || !((te = o.config_lib) != null && te.area)) return null;
|
|
3224
3224
|
const oe = C.value || m.value;
|
|
3225
3225
|
if (!oe) return null;
|
|
3226
3226
|
try {
|
|
3227
|
-
return { ...(await
|
|
3227
|
+
return { ...(await rt.get(`/org_unit/${S.value}/table/${oe}/`, {
|
|
3228
3228
|
baseURL: `https://${o.config_lib.area}/api/`,
|
|
3229
3229
|
signal: F.signal
|
|
3230
3230
|
})).data, __v: u.value };
|
|
3231
|
-
} catch (
|
|
3232
|
-
return h.value === "table-tent" ? p.value : oe === (P == null ? void 0 : P.id) ? P : (P = null, s.showNotification(((
|
|
3231
|
+
} catch (W) {
|
|
3232
|
+
return rt.isCancel(W) ? null : h.value === "table-tent" ? p.value : oe === (P == null ? void 0 : P.id) ? P : (P = null, s.showNotification(((q = (re = W == null ? void 0 : W.response) == null ? void 0 : re.data) == null ? void 0 : q.user_friendly_message) || "Ошибка при загрузке данных стола"), null);
|
|
3233
3233
|
}
|
|
3234
3234
|
}, null), H = vi(async (L) => {
|
|
3235
3235
|
var oe;
|
|
@@ -3237,7 +3237,7 @@ const {
|
|
|
3237
3237
|
const F = new AbortController();
|
|
3238
3238
|
if (L(() => F.abort()), !k.value || !((oe = B.value) != null && oe.order)) return null;
|
|
3239
3239
|
try {
|
|
3240
|
-
const te = await
|
|
3240
|
+
const te = await rt.get(`/order/${B.value.order}/`, {
|
|
3241
3241
|
baseURL: `https://${o.config_lib.area}/api/`,
|
|
3242
3242
|
signal: F.signal
|
|
3243
3243
|
});
|
|
@@ -3249,11 +3249,11 @@ const {
|
|
|
3249
3249
|
let D = null;
|
|
3250
3250
|
const N = (L) => {
|
|
3251
3251
|
D && (D == null || D.close(), D = null), L && (D = ls(`wss://${o.config_lib.area}/ws/order/${L.id}/`), D.on("message", (F) => {
|
|
3252
|
-
c1.includes(F == null ? void 0 : F.type) || ((F == null ? void 0 : F.method) === "update_order_status" && d1.includes(F.params.status) && s.showNotification("Ваш заказ был отменён"),
|
|
3252
|
+
c1.includes(F == null ? void 0 : F.type) || ((F == null ? void 0 : F.method) === "update_order_status" && d1.includes(F.params.status) && s.showNotification("Ваш заказ был отменён"), X());
|
|
3253
3253
|
}), D.connect());
|
|
3254
3254
|
}, U = () => {
|
|
3255
3255
|
u.value++;
|
|
3256
|
-
},
|
|
3256
|
+
}, X = () => {
|
|
3257
3257
|
d.value++;
|
|
3258
3258
|
}, K = (L) => {
|
|
3259
3259
|
L && (P = L, h.value === "table-tent" && (p.value = L), m.value !== L.id && (m.value = L.id));
|
|
@@ -3268,7 +3268,7 @@ const {
|
|
|
3268
3268
|
data: B,
|
|
3269
3269
|
order: H,
|
|
3270
3270
|
refresh: U,
|
|
3271
|
-
refreshOrder:
|
|
3271
|
+
refreshOrder: X
|
|
3272
3272
|
};
|
|
3273
3273
|
});
|
|
3274
3274
|
let Jn = null, fn = null;
|
|
@@ -3370,7 +3370,7 @@ async function x1(i, a, o) {
|
|
|
3370
3370
|
}
|
|
3371
3371
|
return C;
|
|
3372
3372
|
} catch (C) {
|
|
3373
|
-
throw
|
|
3373
|
+
throw rt.isCancel(C) || ((w = a.errorHandler) == null || w.handleCreateOrderError(C, a), a.setButtonDisabled(!1)), C;
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
3376
3376
|
const ba = (i) => {
|
|
@@ -3559,7 +3559,7 @@ function b1(i) {
|
|
|
3559
3559
|
};
|
|
3560
3560
|
}
|
|
3561
3561
|
const Kt = _r("cartLib", () => {
|
|
3562
|
-
const i = Fn(), a = or(), o = Vt(), s = Ct(), { config_lib: u, countBonus: d, totalPrice_lib: h, initialCartPrice_lib: p, is18Allowed: m } = He(s), { itemThemes: x } = He(o), w = ce(!1), C = ce(""), S = ce(null), k = ce("wait"), T = ce(!0), P = ce(0), B = ce(""), H = ce([]), D = ce([]), N = ce(), U = ce(0),
|
|
3562
|
+
const i = Fn(), a = or(), o = Vt(), s = Ct(), { config_lib: u, countBonus: d, totalPrice_lib: h, initialCartPrice_lib: p, is18Allowed: m } = He(s), { itemThemes: x } = He(o), w = ce(!1), C = ce(""), S = ce(null), k = ce("wait"), T = ce(!0), P = ce(0), B = ce(""), H = ce([]), D = ce([]), N = ce(), U = ce(0), X = ce(!1), K = ce(), z = ce(null), L = ce([
|
|
3563
3563
|
"failed_payment",
|
|
3564
3564
|
"failed_after_paid",
|
|
3565
3565
|
"failed",
|
|
@@ -3573,10 +3573,10 @@ const Kt = _r("cartLib", () => {
|
|
|
3573
3573
|
set: (Re) => {
|
|
3574
3574
|
(Re == null ? void 0 : Re.length) === 1 && (F.value = Re[0]), H.value = Re;
|
|
3575
3575
|
}
|
|
3576
|
-
}), te = ce(!1), re = ce(null),
|
|
3576
|
+
}), te = ce(!1), re = ce(null), q = ce(0), W = ce(!1), I = ce({
|
|
3577
3577
|
textNotification: ""
|
|
3578
3578
|
}), $ = (Re) => {
|
|
3579
|
-
|
|
3579
|
+
W.value = !0, I.value.textNotification = Re;
|
|
3580
3580
|
}, Z = () => {
|
|
3581
3581
|
var Re, ct;
|
|
3582
3582
|
return (Re = N.value) != null && Re.front_type ? N.value.front_type : ((ct = D.value[0]) == null ? void 0 : ct.front_type) || null;
|
|
@@ -3642,9 +3642,9 @@ const Kt = _r("cartLib", () => {
|
|
|
3642
3642
|
orderCompleted_lib: re,
|
|
3643
3643
|
extraDiscount: P,
|
|
3644
3644
|
orderNumber: z,
|
|
3645
|
-
is_notification_lib:
|
|
3645
|
+
is_notification_lib: W,
|
|
3646
3646
|
notificationData_lib: I,
|
|
3647
|
-
count:
|
|
3647
|
+
count: q,
|
|
3648
3648
|
guestInfo: S,
|
|
3649
3649
|
error: C,
|
|
3650
3650
|
isDrawerOpen: w,
|
|
@@ -3654,7 +3654,7 @@ const Kt = _r("cartLib", () => {
|
|
|
3654
3654
|
linkQR: B,
|
|
3655
3655
|
orderTypes: oe,
|
|
3656
3656
|
providerTypes: D,
|
|
3657
|
-
is_paymentCart:
|
|
3657
|
+
is_paymentCart: X,
|
|
3658
3658
|
selectedOrderType: F,
|
|
3659
3659
|
selectedProvider: N,
|
|
3660
3660
|
configPayment: K,
|
|
@@ -3689,71 +3689,71 @@ const Kt = _r("cartLib", () => {
|
|
|
3689
3689
|
textErrorRequaired: "",
|
|
3690
3690
|
prevLast: {}
|
|
3691
3691
|
}), a = Vt(), o = ce(i()), s = () => o.value = i(), u = ce(!1), d = ce(!1), h = ce(!1), p = ce(), m = ce([]), x = ce({ id: null, visible: !1 }), w = ce(!((re = a.itemThemes) != null && re.kiosk_disable_lock_screen)), C = we(() => {
|
|
3692
|
-
const
|
|
3693
|
-
return S(
|
|
3694
|
-
}), S = (
|
|
3695
|
-
var
|
|
3696
|
-
const
|
|
3697
|
-
return
|
|
3692
|
+
const q = o.value.groupModifiersSelected.findIndex((W) => W.group === o.value.groupCurrentOpen.id);
|
|
3693
|
+
return S(q);
|
|
3694
|
+
}), S = (q) => q === -1 ? 0 : (o.value.groupModifiersSelected[q].modifiers || []).reduce((I, $) => I + ($.amount || 0), 0), k = we(() => {
|
|
3695
|
+
var W;
|
|
3696
|
+
const q = (W = o.value.openCard) == null ? void 0 : W.group_modifiers.findIndex((I) => I.id === o.value.groupCurrentOpen.id);
|
|
3697
|
+
return q === -1 || !o.value.openCard ? 0 : o.value.openCard.modifiers.length > 0 && q === 0 ? o.value.openCard.modifiers.reduce((I, $) => I + $.max_amount, 0) : o.value.groupModifiers[q].max_amount;
|
|
3698
3698
|
}), T = we(() => {
|
|
3699
|
-
var
|
|
3700
|
-
const
|
|
3699
|
+
var W;
|
|
3700
|
+
const q = (o.value.addedProducts ?? []).reduce((I, $) => I + $.price, 0);
|
|
3701
3701
|
if (o.value.openCard) {
|
|
3702
3702
|
const I = o.value.openCard, $ = Ii(I) || 0, Z = I.amount || 1;
|
|
3703
3703
|
return (o.value.groupModifiersSelected.reduce((ee, le) => (le.modifiers.forEach((me) => {
|
|
3704
3704
|
var ge, Ee;
|
|
3705
3705
|
me.sizes && (me.price = ((Ee = (ge = me.sizes) == null ? void 0 : ge.find((Ce) => Ce.id === o.value.selectedSize.id)) == null ? void 0 : Ee.price) ?? me.price), ee += me.price * me.amount;
|
|
3706
|
-
}), ee), 0) + $) * Z +
|
|
3706
|
+
}), ee), 0) + $) * Z + q;
|
|
3707
3707
|
}
|
|
3708
|
-
return (
|
|
3708
|
+
return (W = o.value.addedProducts) != null && W.length ? q : 0;
|
|
3709
3709
|
}), P = we(() => {
|
|
3710
|
-
const
|
|
3711
|
-
if (!
|
|
3712
|
-
const
|
|
3713
|
-
return I === -1 ? !1 : I ===
|
|
3714
|
-
}), B = (
|
|
3715
|
-
const
|
|
3716
|
-
if (!
|
|
3717
|
-
if (
|
|
3710
|
+
const q = o.value.groupCurrentOpen;
|
|
3711
|
+
if (!q) return !1;
|
|
3712
|
+
const W = o.value.groupModifiers, I = W.findIndex(($) => $.id === q.id);
|
|
3713
|
+
return I === -1 ? !1 : I === W.length - 1;
|
|
3714
|
+
}), B = (q) => {
|
|
3715
|
+
const W = o.value.groupModifiers[q], I = o.value.groupModifiersSelected[q];
|
|
3716
|
+
if (!W) return { valid: !1 };
|
|
3717
|
+
if (W.min_amount > 0 && S(q) < W.min_amount)
|
|
3718
3718
|
return {
|
|
3719
3719
|
valid: !1,
|
|
3720
|
-
errorText: `В группе "${
|
|
3720
|
+
errorText: `В группе "${W.name}" должно содержаться не меньше ${W.min_amount} модификатора(ов)`
|
|
3721
3721
|
};
|
|
3722
3722
|
if (I) {
|
|
3723
|
-
for (const $ of
|
|
3723
|
+
for (const $ of W.group_modifiers)
|
|
3724
3724
|
if ($.min_amount > 0) {
|
|
3725
3725
|
const Z = I.modifiers.find((Y) => Y.id === $.id);
|
|
3726
3726
|
if (!Z || Z.amount < $.min_amount)
|
|
3727
3727
|
return {
|
|
3728
3728
|
valid: !1,
|
|
3729
|
-
errorText: `В группе "${
|
|
3729
|
+
errorText: `В группе "${W.name}" выберите все обязательные модификаторы`
|
|
3730
3730
|
};
|
|
3731
3731
|
}
|
|
3732
3732
|
}
|
|
3733
3733
|
return { valid: !0 };
|
|
3734
3734
|
}, H = we(() => {
|
|
3735
|
-
const
|
|
3736
|
-
for (let
|
|
3737
|
-
const I = B(
|
|
3735
|
+
const q = o.value.groupModifiers;
|
|
3736
|
+
for (let W = 0; W < q.length; W++) {
|
|
3737
|
+
const I = B(W);
|
|
3738
3738
|
if (!I.valid)
|
|
3739
|
-
return o.value.textErrorRequaired = I.errorText, { haveRequaire: !0, group:
|
|
3739
|
+
return o.value.textErrorRequaired = I.errorText, { haveRequaire: !0, group: q[W] };
|
|
3740
3740
|
}
|
|
3741
|
-
return { haveRequaire: !1, group:
|
|
3741
|
+
return { haveRequaire: !1, group: q[0] };
|
|
3742
3742
|
}), D = () => {
|
|
3743
|
-
o.value.groupModifiers.forEach((
|
|
3744
|
-
o.value.groupCurrentOpen = { ...
|
|
3743
|
+
o.value.groupModifiers.forEach((q, W) => {
|
|
3744
|
+
o.value.groupCurrentOpen = { ...q, index: W }, q.group_modifiers.forEach((I) => {
|
|
3745
3745
|
I.default_amount > 0 && (I.amount = I.default_amount, oe(I, !0));
|
|
3746
3746
|
});
|
|
3747
3747
|
});
|
|
3748
|
-
}, N = (
|
|
3749
|
-
o.value.addedProducts.push(
|
|
3750
|
-
}, U = (
|
|
3751
|
-
o.value.openCard =
|
|
3752
|
-
},
|
|
3753
|
-
m.value = [...
|
|
3754
|
-
}, K = (
|
|
3748
|
+
}, N = (q) => {
|
|
3749
|
+
o.value.addedProducts.push(q);
|
|
3750
|
+
}, U = (q) => {
|
|
3751
|
+
o.value.openCard = q;
|
|
3752
|
+
}, X = (q) => {
|
|
3753
|
+
m.value = [...q];
|
|
3754
|
+
}, K = (q, W, I) => {
|
|
3755
3755
|
var Z;
|
|
3756
|
-
const $ = o.value.groupModifiers.findIndex((Y) => Y.id ===
|
|
3756
|
+
const $ = o.value.groupModifiers.findIndex((Y) => Y.id === q.id);
|
|
3757
3757
|
if ($ !== -1)
|
|
3758
3758
|
if (I) {
|
|
3759
3759
|
const Y = o.value.groupModifiers, ee = $ + 1;
|
|
@@ -3762,51 +3762,51 @@ const Kt = _r("cartLib", () => {
|
|
|
3762
3762
|
o.value.groupCurrentOpen = { ...le, index: ee }, o.value.isSectionModifier = !0;
|
|
3763
3763
|
}
|
|
3764
3764
|
} else {
|
|
3765
|
-
const Y =
|
|
3766
|
-
o.value.groupCurrentOpen = { ...
|
|
3765
|
+
const Y = q.id !== ((Z = o.value.groupCurrentOpen) == null ? void 0 : Z.id);
|
|
3766
|
+
o.value.groupCurrentOpen = { ...q, index: $ }, o.value.isSectionModifier = Y ? !0 : !o.value.isSectionModifier;
|
|
3767
3767
|
}
|
|
3768
3768
|
}, z = () => {
|
|
3769
3769
|
o.value.modalCount > o.value.currentModifier.min_amount && o.value.modalCount >= 2 && (o.value.modalCount -= 1);
|
|
3770
3770
|
}, L = () => {
|
|
3771
3771
|
o.value.groupCurrentOpen && o.value.modalCount + C.value < k.value && (o.value.currentModifier.max_amount === 0 || o.value.currentModifier.max_amount > o.value.modalCount) && (o.value.modalCount += 1);
|
|
3772
|
-
}, F = (
|
|
3772
|
+
}, F = (q, W) => {
|
|
3773
3773
|
var $;
|
|
3774
3774
|
const I = ($ = o.value.groupCurrentOpen) == null ? void 0 : $.id.toUpperCase();
|
|
3775
|
-
if (!
|
|
3776
|
-
if (I === "Добавки2000" &&
|
|
3775
|
+
if (!q && !o.value.isModifiedAmount && W.max_amount !== 1) {
|
|
3776
|
+
if (I === "Добавки2000" && W.max_amount > 1)
|
|
3777
3777
|
return !0;
|
|
3778
3778
|
if (Math.abs(k.value - C.value) > 1 && I !== "Добавки2000")
|
|
3779
3779
|
return !0;
|
|
3780
3780
|
}
|
|
3781
3781
|
return !1;
|
|
3782
|
-
}, oe = (
|
|
3783
|
-
o.value.modalCount = 1, o.value.currentModifier =
|
|
3782
|
+
}, oe = (q, W = !1) => {
|
|
3783
|
+
o.value.modalCount = 1, o.value.currentModifier = q;
|
|
3784
3784
|
const I = o.value.groupModifiersSelected.findIndex(($) => $.group === o.value.groupCurrentOpen.id);
|
|
3785
|
-
te(I,
|
|
3786
|
-
}, te = (
|
|
3785
|
+
te(I, q, W);
|
|
3786
|
+
}, te = (q, W, I) => {
|
|
3787
3787
|
var Z, Y, ee;
|
|
3788
3788
|
let $ = o.value.groupModifiersSelected;
|
|
3789
|
-
if (
|
|
3790
|
-
F(I,
|
|
3789
|
+
if (q === -1)
|
|
3790
|
+
F(I, W) ? o.value.isModifiedAmount = !0 : $[o.value.groupCurrentOpen.index] = {
|
|
3791
3791
|
group: o.value.groupCurrentOpen.id,
|
|
3792
3792
|
is_fake: ((Z = o.value.groupCurrentOpen) == null ? void 0 : Z.is_fake) || !1,
|
|
3793
3793
|
is_product_determining: ((Y = o.value.groupCurrentOpen) == null ? void 0 : Y.is_product_determining) || !1,
|
|
3794
3794
|
modifier_count: ((ee = o.value.currentModifier) == null ? void 0 : ee.amount) || 0,
|
|
3795
|
-
modifiers: [{ ...
|
|
3795
|
+
modifiers: [{ ...W, amount: (W == null ? void 0 : W.amount) ?? 1 }]
|
|
3796
3796
|
};
|
|
3797
3797
|
else {
|
|
3798
|
-
const le = o.value.groupModifiers[
|
|
3799
|
-
if ($[
|
|
3798
|
+
const le = o.value.groupModifiers[q].group_modifiers.findIndex((ge) => ge.id === W.id);
|
|
3799
|
+
if ($[q].modifiers.findIndex((ge) => ge.id === W.id) === -1) {
|
|
3800
3800
|
if (k.value === 1)
|
|
3801
|
-
$[
|
|
3801
|
+
$[q].modifiers = [];
|
|
3802
3802
|
else if (C.value >= k.value)
|
|
3803
3803
|
return;
|
|
3804
|
-
F(I,
|
|
3805
|
-
...
|
|
3806
|
-
amount: (
|
|
3807
|
-
}), $[
|
|
3804
|
+
F(I, W) ? o.value.isModifiedAmount = !0 : ($[q].modifiers.push({
|
|
3805
|
+
...W,
|
|
3806
|
+
amount: (W == null ? void 0 : W.amount) ?? 1
|
|
3807
|
+
}), $[q].modifier_count = $[q].modifiers.reduce((ge, Ee) => ge += Ee.amount, 0), o.value.isAnimationFly = !0);
|
|
3808
3808
|
} else
|
|
3809
|
-
$[
|
|
3809
|
+
$[q].modifiers = $[q].modifiers.filter((ge) => ge.id !== W.id), $[q].modifier_count = $[q].modifiers.reduce((ge, Ee) => ge += Ee.amount, 0), o.value.groupModifiers[q].group_modifiers[le].amount = 1, o.value.groupModifiers[q].group_modifiers[le].default_amount = 0, o.value.isAnimationFly = !1;
|
|
3810
3810
|
}
|
|
3811
3811
|
o.value.groupModifiersSelected = $;
|
|
3812
3812
|
};
|
|
@@ -3824,7 +3824,7 @@ const Kt = _r("cartLib", () => {
|
|
|
3824
3824
|
openProduct: x,
|
|
3825
3825
|
is_startPage: w,
|
|
3826
3826
|
isLastGroup: P,
|
|
3827
|
-
setProduct:
|
|
3827
|
+
setProduct: X,
|
|
3828
3828
|
summModifierAmount: S,
|
|
3829
3829
|
setAddedProducts: N,
|
|
3830
3830
|
setCurrentCard: U,
|
|
@@ -3846,55 +3846,55 @@ var Nl = { exports: {} };
|
|
|
3846
3846
|
(function(o, s) {
|
|
3847
3847
|
i.exports = s();
|
|
3848
3848
|
})(Yr, function() {
|
|
3849
|
-
var o = 1e3, s = 6e4, u = 36e5, d = "millisecond", h = "second", p = "minute", m = "hour", x = "day", w = "week", C = "month", S = "quarter", k = "year", T = "date", P = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, H = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
|
3850
|
-
var I = ["th", "st", "nd", "rd"], $ =
|
|
3851
|
-
return "[" +
|
|
3852
|
-
} }, N = function(
|
|
3853
|
-
var Z = String(
|
|
3854
|
-
return !Z || Z.length >= I ?
|
|
3855
|
-
}, U = { s: N, z: function(
|
|
3856
|
-
var I = -
|
|
3849
|
+
var o = 1e3, s = 6e4, u = 36e5, d = "millisecond", h = "second", p = "minute", m = "hour", x = "day", w = "week", C = "month", S = "quarter", k = "year", T = "date", P = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, H = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(W) {
|
|
3850
|
+
var I = ["th", "st", "nd", "rd"], $ = W % 100;
|
|
3851
|
+
return "[" + W + (I[($ - 20) % 10] || I[$] || I[0]) + "]";
|
|
3852
|
+
} }, N = function(W, I, $) {
|
|
3853
|
+
var Z = String(W);
|
|
3854
|
+
return !Z || Z.length >= I ? W : "" + Array(I + 1 - Z.length).join($) + W;
|
|
3855
|
+
}, U = { s: N, z: function(W) {
|
|
3856
|
+
var I = -W.utcOffset(), $ = Math.abs(I), Z = Math.floor($ / 60), Y = $ % 60;
|
|
3857
3857
|
return (I <= 0 ? "+" : "-") + N(Z, 2, "0") + ":" + N(Y, 2, "0");
|
|
3858
|
-
}, m: function
|
|
3859
|
-
if (I.date() < $.date()) return -
|
|
3858
|
+
}, m: function W(I, $) {
|
|
3859
|
+
if (I.date() < $.date()) return -W($, I);
|
|
3860
3860
|
var Z = 12 * ($.year() - I.year()) + ($.month() - I.month()), Y = I.clone().add(Z, C), ee = $ - Y < 0, le = I.clone().add(Z + (ee ? -1 : 1), C);
|
|
3861
3861
|
return +(-(Z + ($ - Y) / (ee ? Y - le : le - Y)) || 0);
|
|
3862
|
-
}, a: function(
|
|
3863
|
-
return
|
|
3864
|
-
}, p: function(
|
|
3865
|
-
return { M: C, y: k, w, d: x, D: T, h: m, m: p, s: h, ms: d, Q: S }[
|
|
3866
|
-
}, u: function(
|
|
3867
|
-
return
|
|
3868
|
-
} },
|
|
3869
|
-
K[
|
|
3870
|
-
var z = "$isDayjsObject", L = function(
|
|
3871
|
-
return
|
|
3872
|
-
}, F = function
|
|
3862
|
+
}, a: function(W) {
|
|
3863
|
+
return W < 0 ? Math.ceil(W) || 0 : Math.floor(W);
|
|
3864
|
+
}, p: function(W) {
|
|
3865
|
+
return { M: C, y: k, w, d: x, D: T, h: m, m: p, s: h, ms: d, Q: S }[W] || String(W || "").toLowerCase().replace(/s$/, "");
|
|
3866
|
+
}, u: function(W) {
|
|
3867
|
+
return W === void 0;
|
|
3868
|
+
} }, X = "en", K = {};
|
|
3869
|
+
K[X] = D;
|
|
3870
|
+
var z = "$isDayjsObject", L = function(W) {
|
|
3871
|
+
return W instanceof re || !(!W || !W[z]);
|
|
3872
|
+
}, F = function W(I, $, Z) {
|
|
3873
3873
|
var Y;
|
|
3874
|
-
if (!I) return
|
|
3874
|
+
if (!I) return X;
|
|
3875
3875
|
if (typeof I == "string") {
|
|
3876
3876
|
var ee = I.toLowerCase();
|
|
3877
3877
|
K[ee] && (Y = ee), $ && (K[ee] = $, Y = ee);
|
|
3878
3878
|
var le = I.split("-");
|
|
3879
|
-
if (!Y && le.length > 1) return
|
|
3879
|
+
if (!Y && le.length > 1) return W(le[0]);
|
|
3880
3880
|
} else {
|
|
3881
3881
|
var me = I.name;
|
|
3882
3882
|
K[me] = I, Y = me;
|
|
3883
3883
|
}
|
|
3884
|
-
return !Z && Y && (
|
|
3885
|
-
}, oe = function(
|
|
3886
|
-
if (L(
|
|
3884
|
+
return !Z && Y && (X = Y), Y || !Z && X;
|
|
3885
|
+
}, oe = function(W, I) {
|
|
3886
|
+
if (L(W)) return W.clone();
|
|
3887
3887
|
var $ = typeof I == "object" ? I : {};
|
|
3888
|
-
return $.date =
|
|
3888
|
+
return $.date = W, $.args = arguments, new re($);
|
|
3889
3889
|
}, te = U;
|
|
3890
|
-
te.l = F, te.i = L, te.w = function(
|
|
3891
|
-
return oe(
|
|
3890
|
+
te.l = F, te.i = L, te.w = function(W, I) {
|
|
3891
|
+
return oe(W, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
|
|
3892
3892
|
};
|
|
3893
3893
|
var re = function() {
|
|
3894
|
-
function
|
|
3894
|
+
function W($) {
|
|
3895
3895
|
this.$L = F($.locale, null, !0), this.parse($), this.$x = this.$x || $.x || {}, this[z] = !0;
|
|
3896
3896
|
}
|
|
3897
|
-
var I =
|
|
3897
|
+
var I = W.prototype;
|
|
3898
3898
|
return I.parse = function($) {
|
|
3899
3899
|
this.$d = function(Z) {
|
|
3900
3900
|
var Y = Z.date, ee = Z.utc;
|
|
@@ -4104,34 +4104,34 @@ var Nl = { exports: {} };
|
|
|
4104
4104
|
return this.$d.toISOString();
|
|
4105
4105
|
}, I.toString = function() {
|
|
4106
4106
|
return this.$d.toUTCString();
|
|
4107
|
-
},
|
|
4108
|
-
}(),
|
|
4109
|
-
return oe.prototype =
|
|
4110
|
-
|
|
4111
|
-
return this.$g(I,
|
|
4107
|
+
}, W;
|
|
4108
|
+
}(), q = re.prototype;
|
|
4109
|
+
return oe.prototype = q, [["$ms", d], ["$s", h], ["$m", p], ["$H", m], ["$W", x], ["$M", C], ["$y", k], ["$D", T]].forEach(function(W) {
|
|
4110
|
+
q[W[1]] = function(I) {
|
|
4111
|
+
return this.$g(I, W[0], W[1]);
|
|
4112
4112
|
};
|
|
4113
|
-
}), oe.extend = function(
|
|
4114
|
-
return
|
|
4115
|
-
}, oe.locale = F, oe.isDayjs = L, oe.unix = function(
|
|
4116
|
-
return oe(1e3 *
|
|
4117
|
-
}, oe.en = K[
|
|
4113
|
+
}), oe.extend = function(W, I) {
|
|
4114
|
+
return W.$i || (W(I, re, oe), W.$i = !0), oe;
|
|
4115
|
+
}, oe.locale = F, oe.isDayjs = L, oe.unix = function(W) {
|
|
4116
|
+
return oe(1e3 * W);
|
|
4117
|
+
}, oe.en = K[X], oe.Ls = K, oe.p = {}, oe;
|
|
4118
4118
|
});
|
|
4119
4119
|
})(Nl);
|
|
4120
4120
|
var y1 = Nl.exports;
|
|
4121
4121
|
const ya = /* @__PURE__ */ Rl(y1), A1 = (i) => {
|
|
4122
|
-
const a = Fn(), o = `${i.domain}/api/`, s =
|
|
4122
|
+
const a = Fn(), o = `${i.domain}/api/`, s = rt.create({
|
|
4123
4123
|
baseURL: o
|
|
4124
|
-
}), u =
|
|
4124
|
+
}), u = rt.create({
|
|
4125
4125
|
baseURL: o
|
|
4126
|
-
}), d =
|
|
4126
|
+
}), d = rt.create({
|
|
4127
4127
|
baseURL: o
|
|
4128
|
-
}), h =
|
|
4128
|
+
}), h = rt.create({
|
|
4129
4129
|
baseURL: o
|
|
4130
|
-
}), p =
|
|
4130
|
+
}), p = rt.create({
|
|
4131
4131
|
baseURL: o
|
|
4132
|
-
}), m =
|
|
4132
|
+
}), m = rt.create({
|
|
4133
4133
|
baseURL: o
|
|
4134
|
-
}), x =
|
|
4134
|
+
}), x = rt.create({
|
|
4135
4135
|
baseURL: o
|
|
4136
4136
|
}), w = (D) => {
|
|
4137
4137
|
try {
|
|
@@ -4151,10 +4151,10 @@ const ya = /* @__PURE__ */ Rl(y1), A1 = (i) => {
|
|
|
4151
4151
|
if (!i.user) return D;
|
|
4152
4152
|
const N = i.user.exp ?? 0;
|
|
4153
4153
|
if (!(ya.unix(N).diff(ya()) < 3e3)) return D;
|
|
4154
|
-
const
|
|
4154
|
+
const X = rl("authTokensRefresh", null, "string");
|
|
4155
4155
|
try {
|
|
4156
|
-
const K = await
|
|
4157
|
-
refresh:
|
|
4156
|
+
const K = await rt.post(`${o}user/token/refresh/`, {
|
|
4157
|
+
refresh: X.value
|
|
4158
4158
|
});
|
|
4159
4159
|
if (!K.data.access)
|
|
4160
4160
|
return H(), D;
|
|
@@ -4595,10 +4595,10 @@ const Aa = ce(!1), Ea = ce(window.innerWidth), wr = () => {
|
|
|
4595
4595
|
};
|
|
4596
4596
|
return a({
|
|
4597
4597
|
scrollToElement: h
|
|
4598
|
-
}), (m, x) => (
|
|
4598
|
+
}), (m, x) => (V(), Q("div", {
|
|
4599
4599
|
ref_key: "wrapperRef",
|
|
4600
4600
|
ref: u,
|
|
4601
|
-
class:
|
|
4601
|
+
class: it(["scroll-to-wrapper", { scroll_pdf: O(d) }])
|
|
4602
4602
|
}, [
|
|
4603
4603
|
Or(m.$slots, "default", { handleTargetClick: p }, void 0, !0)
|
|
4604
4604
|
], 2));
|
|
@@ -4617,8 +4617,8 @@ const Aa = ce(!1), Ea = ce(window.innerWidth), wr = () => {
|
|
|
4617
4617
|
H.button === 0 && (h && (cancelAnimationFrame(h), h = 0), a = !0, S = !1, o = H.pageX - i.offsetLeft, s = H.pageY - i.offsetTop, u = i.scrollLeft, d = i.scrollTop, x = H.pageX, w = H.pageY, C = Date.now(), p = 0, m = 0);
|
|
4618
4618
|
}, P = (H) => {
|
|
4619
4619
|
if (!a) return;
|
|
4620
|
-
const D = H.pageX, N = H.pageY, U = Math.abs(D - x),
|
|
4621
|
-
if (!S && (U > k ||
|
|
4620
|
+
const D = H.pageX, N = H.pageY, U = Math.abs(D - x), X = Math.abs(N - w);
|
|
4621
|
+
if (!S && (U > k || X > k) && (S = !0, i.style.pointerEvents = "none"), S) {
|
|
4622
4622
|
H.stopPropagation(), H.preventDefault();
|
|
4623
4623
|
const K = Date.now(), z = K - C;
|
|
4624
4624
|
z > 0 && (p = (D - x) / z * 16, m = (N - w) / z * 16), x = D, w = N, C = K;
|
|
@@ -4657,7 +4657,7 @@ const Aa = ce(!1), Ea = ce(window.innerWidth), wr = () => {
|
|
|
4657
4657
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
4658
4658
|
};
|
|
4659
4659
|
function R1(i, a) {
|
|
4660
|
-
return
|
|
4660
|
+
return V(), Q("svg", T1, [...a[0] || (a[0] = [
|
|
4661
4661
|
E("defs", null, null, -1),
|
|
4662
4662
|
E("path", {
|
|
4663
4663
|
id: "custom_svg_color",
|
|
@@ -4704,12 +4704,12 @@ const xs = /* @__PURE__ */ Qe(S1, [["render", R1]]), N1 = ["id", "onClick"], O1
|
|
|
4704
4704
|
T && ((P = x.value) == null || P.scrollToElement(T));
|
|
4705
4705
|
}), Ai(() => {
|
|
4706
4706
|
h.value = [], s.value.plusButtonsRefs = [];
|
|
4707
|
-
}), (k, T) => (
|
|
4708
|
-
class:
|
|
4707
|
+
}), (k, T) => (V(), Q("div", {
|
|
4708
|
+
class: it({ card_modified_wrapper_many: O(s).groupModifiers.length >= 5 })
|
|
4709
4709
|
}, [
|
|
4710
|
-
O(s).groupModifiersSelected ? Yt((
|
|
4710
|
+
O(s).groupModifiersSelected ? Yt((V(), Q("div", {
|
|
4711
4711
|
key: 0,
|
|
4712
|
-
class:
|
|
4712
|
+
class: it(["card_modified_wrapper", [O(s).groupModifiers.length <= 4 ? "card_modified_wrapper_center" : ""]]),
|
|
4713
4713
|
ref_key: "scrollPlusContainer",
|
|
4714
4714
|
ref: m
|
|
4715
4715
|
}, [
|
|
@@ -4724,9 +4724,9 @@ const xs = /* @__PURE__ */ Qe(S1, [["render", R1]]), N1 = ["id", "onClick"], O1
|
|
|
4724
4724
|
clearContainer: !0
|
|
4725
4725
|
}, {
|
|
4726
4726
|
default: Wt(({ handleTargetClick: P }) => [
|
|
4727
|
-
(
|
|
4727
|
+
(V(!0), Q(bt, null, rn(O(s).groupModifiers, (B, H) => {
|
|
4728
4728
|
var D, N;
|
|
4729
|
-
return
|
|
4729
|
+
return V(), Q("div", {
|
|
4730
4730
|
class: "button_modified",
|
|
4731
4731
|
key: B.id,
|
|
4732
4732
|
ref_for: !0,
|
|
@@ -4738,36 +4738,36 @@ const xs = /* @__PURE__ */ Qe(S1, [["render", R1]]), N1 = ["id", "onClick"], O1
|
|
|
4738
4738
|
}
|
|
4739
4739
|
}, [
|
|
4740
4740
|
E("div", O1, [
|
|
4741
|
-
p.value[H].modifiers.length === 0 ? (
|
|
4741
|
+
p.value[H].modifiers.length === 0 ? (V(), Q("div", {
|
|
4742
4742
|
key: 0,
|
|
4743
|
-
class:
|
|
4743
|
+
class: it([{ modified_plus_btn_active: B.id === ((D = O(s).groupCurrentOpen) == null ? void 0 : D.id) && i.isSectionModifier }, "modified_plus_active"])
|
|
4744
4744
|
}, [
|
|
4745
4745
|
pe(xs, {
|
|
4746
4746
|
"aria-label": `Открыть группу модификаторов ${B.name}`
|
|
4747
4747
|
}, null, 8, ["aria-label"])
|
|
4748
|
-
], 2)) : p.value[H].modifiers.length === 1 ? (
|
|
4748
|
+
], 2)) : p.value[H].modifiers.length === 1 ? (V(), Q("div", {
|
|
4749
4749
|
key: 1,
|
|
4750
|
-
class:
|
|
4750
|
+
class: it(["modified_plus_btn modified_plus_btn_solo", { modified_plus_btn_active: B.id === ((N = O(s).groupCurrentOpen) == null ? void 0 : N.id) && i.isSectionModifier }])
|
|
4751
4751
|
}, [
|
|
4752
4752
|
E("img", {
|
|
4753
4753
|
src: p.value[H].modifiers[0].image_link || O(u).fallback_image || "",
|
|
4754
4754
|
alt: "Модификатор"
|
|
4755
4755
|
}, null, 8, M1)
|
|
4756
|
-
], 2)) : (
|
|
4757
|
-
p.value[H].modifiers.length > 2 ? (
|
|
4758
|
-
p.value[H].modifiers.length === 3 ? (
|
|
4756
|
+
], 2)) : (V(), Q("div", k1, [
|
|
4757
|
+
p.value[H].modifiers.length > 2 ? (V(), Q("div", D1, [
|
|
4758
|
+
p.value[H].modifiers.length === 3 ? (V(), Q("img", {
|
|
4759
4759
|
key: 0,
|
|
4760
4760
|
class: "modifier_plus_item modifier_item_three",
|
|
4761
4761
|
src: p.value[H].modifiers[2].image_link || O(u).fallback_image || ""
|
|
4762
|
-
}, null, 8, B1)) : (
|
|
4762
|
+
}, null, 8, B1)) : (V(), Q("p", P1, " + " + ye(p.value[H].modifiers.length - 2), 1))
|
|
4763
4763
|
])) : he("", !0),
|
|
4764
4764
|
E("div", null, [
|
|
4765
|
-
p.value[H].modifiers.length > 0 ? (
|
|
4765
|
+
p.value[H].modifiers.length > 0 ? (V(), Q("img", {
|
|
4766
4766
|
key: 0,
|
|
4767
4767
|
src: p.value[H].modifiers[0].image_link || O(u).fallback_image || "",
|
|
4768
4768
|
class: "modifier_plus_item modifier_item_first"
|
|
4769
4769
|
}, null, 8, L1)) : he("", !0),
|
|
4770
|
-
p.value[H].modifiers.length > 1 ? (
|
|
4770
|
+
p.value[H].modifiers.length > 1 ? (V(), Q("img", {
|
|
4771
4771
|
key: 1,
|
|
4772
4772
|
src: p.value[H].modifiers[1].image_link || O(u).fallback_image || "",
|
|
4773
4773
|
class: "modifier_plus_item modifier_item_second"
|
|
@@ -4803,7 +4803,7 @@ const xs = /* @__PURE__ */ Qe(S1, [["render", R1]]), N1 = ["id", "onClick"], O1
|
|
|
4803
4803
|
},
|
|
4804
4804
|
setup(i) {
|
|
4805
4805
|
const a = i;
|
|
4806
|
-
return (o, s) => (
|
|
4806
|
+
return (o, s) => (V(), Q("svg", H1, [
|
|
4807
4807
|
E("path", {
|
|
4808
4808
|
d: "M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18",
|
|
4809
4809
|
stroke: a.color,
|
|
@@ -4823,7 +4823,7 @@ const xs = /* @__PURE__ */ Qe(S1, [["render", R1]]), N1 = ["id", "onClick"], O1
|
|
|
4823
4823
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
4824
4824
|
};
|
|
4825
4825
|
function V1(i, a) {
|
|
4826
|
-
return
|
|
4826
|
+
return V(), Q("svg", W1, [...a[0] || (a[0] = [
|
|
4827
4827
|
E("desc", null, " Created with Pixso. ", -1),
|
|
4828
4828
|
E("defs", null, null, -1),
|
|
4829
4829
|
E("circle", {
|
|
@@ -4867,7 +4867,7 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
4867
4867
|
const a = i, o = () => {
|
|
4868
4868
|
a.onClick();
|
|
4869
4869
|
};
|
|
4870
|
-
return (s, u) => (
|
|
4870
|
+
return (s, u) => (V(), Q("button", {
|
|
4871
4871
|
class: "buttonDefaultWrapper",
|
|
4872
4872
|
disabled: i.disabled,
|
|
4873
4873
|
onClick: o,
|
|
@@ -4917,8 +4917,8 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
4917
4917
|
{ immediate: !0 }
|
|
4918
4918
|
), Ln(() => {
|
|
4919
4919
|
x && k();
|
|
4920
|
-
}), (T, P) => (
|
|
4921
|
-
!m.value && w.value ? (
|
|
4920
|
+
}), (T, P) => (V(), Q(bt, null, [
|
|
4921
|
+
!m.value && w.value ? (V(), Mt(ti, {
|
|
4922
4922
|
key: 0,
|
|
4923
4923
|
name: "notificationBlack",
|
|
4924
4924
|
appear: ""
|
|
@@ -4935,7 +4935,7 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
4935
4935
|
default: Wt(() => {
|
|
4936
4936
|
var B;
|
|
4937
4937
|
return [
|
|
4938
|
-
w.value ? (
|
|
4938
|
+
w.value ? (V(), Q("div", {
|
|
4939
4939
|
key: 0,
|
|
4940
4940
|
class: "notification_overlay",
|
|
4941
4941
|
onClick: S
|
|
@@ -4948,7 +4948,7 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
4948
4948
|
})
|
|
4949
4949
|
}, [
|
|
4950
4950
|
E("div", j1, [
|
|
4951
|
-
i.type ? (
|
|
4951
|
+
i.type ? (V(), Q("div", q1, [
|
|
4952
4952
|
E("div", $1, [
|
|
4953
4953
|
E("img", {
|
|
4954
4954
|
src: O(h).adult_disclaimer_image || O(h).fallback_image,
|
|
@@ -4964,9 +4964,9 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
4964
4964
|
style: { fontSize: "1rem", padding: "6px 24px", marginLeft: "10px" }
|
|
4965
4965
|
})
|
|
4966
4966
|
])
|
|
4967
|
-
])) : (
|
|
4967
|
+
])) : (V(), Q("div", Q1, [
|
|
4968
4968
|
nt(ye(i.textNotificationDefault) + " ", 1),
|
|
4969
|
-
(B = i.buttonAccept) != null && B.state ? (
|
|
4969
|
+
(B = i.buttonAccept) != null && B.state ? (V(), Q("div", J1, [
|
|
4970
4970
|
pe(Bn, {
|
|
4971
4971
|
class: "button_accept",
|
|
4972
4972
|
textButtonDefault: i.buttonAccept.text,
|
|
@@ -5020,16 +5020,16 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5020
5020
|
if (!D) return;
|
|
5021
5021
|
const N = h.value.groupModifiers.findIndex((L) => L.id === h.value.groupCurrentOpen.id), U = h.value.plusButtonsRefs[N] || h.value.plusButtonsRefs[0];
|
|
5022
5022
|
if (!U) return;
|
|
5023
|
-
const
|
|
5023
|
+
const X = D.getBoundingClientRect(), K = U.getBoundingClientRect(), z = D.cloneNode(!0);
|
|
5024
5024
|
z.classList.add("flyer"), Object.assign(z.style, {
|
|
5025
|
-
width: `${
|
|
5026
|
-
height: `${
|
|
5027
|
-
left: `${
|
|
5028
|
-
top: `${
|
|
5025
|
+
width: `${X.width}px`,
|
|
5026
|
+
height: `${X.height}px`,
|
|
5027
|
+
left: `${X.left}px`,
|
|
5028
|
+
top: `${X.top}px`,
|
|
5029
5029
|
position: "fixed",
|
|
5030
5030
|
zIndex: "1000"
|
|
5031
5031
|
}), document.body.appendChild(z), S.value = z, requestAnimationFrame(() => {
|
|
5032
|
-
const L = K.left + K.width / 3 - (
|
|
5032
|
+
const L = K.left + K.width / 3 - (X.left + X.width / 2), F = K.top + K.height / 4 - (X.top + X.height / 2), oe = K.width / X.width * 0.2;
|
|
5033
5033
|
z.style.transform = `translate(${L}px, ${F}px) scale(${oe})`, z.style.opacity = "0.4", z.style.transition = "transform 0.5s ease, opacity 0.5s ease";
|
|
5034
5034
|
}), z.addEventListener(
|
|
5035
5035
|
"transitionend",
|
|
@@ -5042,7 +5042,7 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5042
5042
|
h.value.isSectionModifier = !0;
|
|
5043
5043
|
const D = h.value.groupCurrentOpen;
|
|
5044
5044
|
if (!D) return;
|
|
5045
|
-
const N = h.value.groupModifiers.findIndex((
|
|
5045
|
+
const N = h.value.groupModifiers.findIndex((X) => X.id === D.id), U = u.validateGroup(N);
|
|
5046
5046
|
if (!U.valid) {
|
|
5047
5047
|
h.value.textErrorRequaired = U.errorText, T.value = !0;
|
|
5048
5048
|
return;
|
|
@@ -5057,9 +5057,9 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5057
5057
|
);
|
|
5058
5058
|
const H = we(() => d.value.enable_sequential_modifiers ? d.value.enable_sequential_modifiers : !0);
|
|
5059
5059
|
return (D, N) => {
|
|
5060
|
-
var U,
|
|
5061
|
-
return
|
|
5062
|
-
(
|
|
5060
|
+
var U, X, K, z, L, F, oe, te, re, q, W, I, $, Z;
|
|
5061
|
+
return V(), Q(bt, null, [
|
|
5062
|
+
(V(), Mt(Ei, { to: "body" }, [
|
|
5063
5063
|
pe(Co, {
|
|
5064
5064
|
visible: T.value,
|
|
5065
5065
|
textNotificationDefault: O(h).textErrorRequaired,
|
|
@@ -5070,32 +5070,32 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5070
5070
|
E("div", ed, [
|
|
5071
5071
|
E("div", td, [
|
|
5072
5072
|
E("div", {
|
|
5073
|
-
class:
|
|
5073
|
+
class: it(["card_header_inner_back", [(U = O(h).openCard) != null && U.proteins_amount ? "card_header_inner_back_nutrients" : ""]]),
|
|
5074
5074
|
"aria-label": "Закрыть выбор модификаторов",
|
|
5075
5075
|
onClick: N[1] || (N[1] = (Y) => o("close"))
|
|
5076
5076
|
}, [
|
|
5077
5077
|
pe(ri, { class: "arrow_bottom" })
|
|
5078
5078
|
], 2),
|
|
5079
5079
|
E("div", nd, [
|
|
5080
|
-
(
|
|
5080
|
+
(X = O(h).openCard) != null && X.energy_amount ? (V(), Q("div", rd, [
|
|
5081
5081
|
E("b", null, ye((K = O(h).openCard) == null ? void 0 : K.energy_amount), 1),
|
|
5082
5082
|
N[4] || (N[4] = E("p", null, "Килокалории", -1))
|
|
5083
5083
|
])) : he("", !0),
|
|
5084
|
-
(z = O(h).openCard) != null && z.proteins_amount ? (
|
|
5084
|
+
(z = O(h).openCard) != null && z.proteins_amount ? (V(), Q("div", id, [
|
|
5085
5085
|
E("b", null, ye((L = O(h).openCard) == null ? void 0 : L.proteins_amount), 1),
|
|
5086
5086
|
N[5] || (N[5] = E("p", null, "Белки", -1))
|
|
5087
5087
|
])) : he("", !0),
|
|
5088
|
-
(F = O(h).openCard) != null && F.fat_amount ? (
|
|
5088
|
+
(F = O(h).openCard) != null && F.fat_amount ? (V(), Q("div", sd, [
|
|
5089
5089
|
E("b", null, ye((oe = O(h).openCard) == null ? void 0 : oe.fat_amount), 1),
|
|
5090
5090
|
N[6] || (N[6] = E("p", null, "Жиры", -1))
|
|
5091
5091
|
])) : he("", !0),
|
|
5092
|
-
(te = O(h).openCard) != null && te.carbohydrates_amount ? (
|
|
5092
|
+
(te = O(h).openCard) != null && te.carbohydrates_amount ? (V(), Q("div", od, [
|
|
5093
5093
|
E("b", null, ye((re = O(h).openCard) == null ? void 0 : re.carbohydrates_amount), 1),
|
|
5094
5094
|
N[7] || (N[7] = E("p", null, "Углеводы", -1))
|
|
5095
5095
|
])) : he("", !0)
|
|
5096
5096
|
]),
|
|
5097
5097
|
E("div", {
|
|
5098
|
-
class:
|
|
5098
|
+
class: it(["card_header_inner_back card_header_inner_close_back", [(q = O(h).openCard) != null && q.proteins_amount ? "card_header_inner_back_nutrients" : ""]]),
|
|
5099
5099
|
style: { marginRight: "10px" },
|
|
5100
5100
|
"aria-label": "Закрыть выбор модификаторов",
|
|
5101
5101
|
onClick: N[2] || (N[2] = (Y) => o("close"))
|
|
@@ -5107,25 +5107,25 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5107
5107
|
], 2)
|
|
5108
5108
|
]),
|
|
5109
5109
|
E("div", ad, [
|
|
5110
|
-
E("p", ld, ye((
|
|
5110
|
+
E("p", ld, ye((W = O(h).groupCurrentOpen) == null ? void 0 : W.name), 1),
|
|
5111
5111
|
E("p", cd, "Выбрано " + ye(O(p)) + " из " + ye(O(m)), 1),
|
|
5112
|
-
Yt((
|
|
5113
|
-
class:
|
|
5112
|
+
Yt((V(), Q("div", {
|
|
5113
|
+
class: it(
|
|
5114
5114
|
(I = O(h).groupModifiers.find((Y) => {
|
|
5115
5115
|
var ee;
|
|
5116
5116
|
return Y.id === ((ee = O(h).groupCurrentOpen) == null ? void 0 : ee.id);
|
|
5117
5117
|
})) != null && I.group_modifiers.length ? "wrapper_modifiers_card" : "wrapper_modifiers_card_column"
|
|
5118
5118
|
)
|
|
5119
5119
|
}, [
|
|
5120
|
-
(
|
|
5120
|
+
(V(!0), Q(bt, null, rn((($ = O(h).groupCurrentOpen) == null ? void 0 : $.group_modifiers) || [], (Y) => {
|
|
5121
5121
|
var ee, le, me;
|
|
5122
|
-
return
|
|
5122
|
+
return V(), Q("div", {
|
|
5123
5123
|
key: Y.id,
|
|
5124
5124
|
ref_for: !0,
|
|
5125
5125
|
ref: O(k).set,
|
|
5126
5126
|
id: Y.id,
|
|
5127
5127
|
style: Gt({ pointerEvents: O(w) ? "none" : "auto" }),
|
|
5128
|
-
class:
|
|
5128
|
+
class: it(["modifier_card", {
|
|
5129
5129
|
hidden_modifier_card: Y.default_amount === 0 && ((ee = O(h).groupCurrentOpen) == null ? void 0 : ee.id) === "Добавки2000" && Y.min_amount === 0 && Y.max_amount === 0
|
|
5130
5130
|
}]),
|
|
5131
5131
|
tabindex: "0",
|
|
@@ -5135,7 +5135,7 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5135
5135
|
onClick: (ge) => O(u).modifierSelect(Y)
|
|
5136
5136
|
}, [
|
|
5137
5137
|
E("div", {
|
|
5138
|
-
class:
|
|
5138
|
+
class: it([{
|
|
5139
5139
|
modifier_card_active: O(h).groupModifiersSelected.some(
|
|
5140
5140
|
(ge) => {
|
|
5141
5141
|
var Ee;
|
|
@@ -5144,23 +5144,23 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5144
5144
|
)
|
|
5145
5145
|
}, "wrapper_image_corners"])
|
|
5146
5146
|
}, [
|
|
5147
|
-
Y.amount > 1 ? (
|
|
5147
|
+
Y.amount > 1 ? (V(), Q("div", dd, ye(Y.amount), 1)) : he("", !0),
|
|
5148
5148
|
E("div", fd, [
|
|
5149
|
-
Y.video_link ? Yt((
|
|
5149
|
+
Y.video_link ? Yt((V(), Q("video", gd, [
|
|
5150
5150
|
E("source", {
|
|
5151
5151
|
src: Y.video_link || "",
|
|
5152
5152
|
type: "video/webm"
|
|
5153
5153
|
}, null, 8, pd)
|
|
5154
5154
|
])), [
|
|
5155
5155
|
[O(_s)]
|
|
5156
|
-
]) : (
|
|
5156
|
+
]) : (V(), Q("img", {
|
|
5157
5157
|
key: 0,
|
|
5158
5158
|
class: "modifier_image",
|
|
5159
5159
|
src: Y.image_link || O(d).fallback_image || "",
|
|
5160
5160
|
alt: Y.name
|
|
5161
5161
|
}, null, 8, hd)),
|
|
5162
5162
|
E("div", {
|
|
5163
|
-
class:
|
|
5163
|
+
class: it(["wrapper_modifier_title", { wrapper_modifier_title_required: Y.min_amount > 0 || Y.required }])
|
|
5164
5164
|
}, [
|
|
5165
5165
|
E("h3", md, ye(Y.name), 1),
|
|
5166
5166
|
E("p", null, "+" + ye(((me = (le = Y.sizes) == null ? void 0 : le.find((ge) => ge.id === O(h).selectedSize.id)) == null ? void 0 : me.price) || Y.price || 0) + "₽", 1)
|
|
@@ -5175,7 +5175,7 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5175
5175
|
return Y.id === ((ee = O(h).groupCurrentOpen) == null ? void 0 : ee.id);
|
|
5176
5176
|
})) != null && Z.group_modifiers.length ? {} : !1]
|
|
5177
5177
|
]),
|
|
5178
|
-
H.value ? (
|
|
5178
|
+
H.value ? (V(), Q("div", xd, [
|
|
5179
5179
|
E("button", {
|
|
5180
5180
|
onClick: N[3] || (N[3] = (Y) => B()),
|
|
5181
5181
|
class: "modifier_continue_or_add"
|
|
@@ -5225,8 +5225,8 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5225
5225
|
const U = p.value + 1;
|
|
5226
5226
|
N < U ? T() : N > U && P();
|
|
5227
5227
|
} else {
|
|
5228
|
-
const U = o.value.productSizes.length,
|
|
5229
|
-
d.value =
|
|
5228
|
+
const U = o.value.productSizes.length, X = (N + 0.5) * (100 / U);
|
|
5229
|
+
d.value = X;
|
|
5230
5230
|
}
|
|
5231
5231
|
}, T = () => {
|
|
5232
5232
|
var D;
|
|
@@ -5249,9 +5249,9 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5249
5249
|
B();
|
|
5250
5250
|
}
|
|
5251
5251
|
}, B = () => {
|
|
5252
|
-
var
|
|
5252
|
+
var X;
|
|
5253
5253
|
if (o.value.productSizes.length <= 3) return;
|
|
5254
|
-
const D = p.value + 1, N = ((
|
|
5254
|
+
const D = p.value + 1, N = ((X = S.value[D]) == null ? void 0 : X.originalIndex) ?? 0, U = o.value.productSizes[N];
|
|
5255
5255
|
h.value = {
|
|
5256
5256
|
id: U.id,
|
|
5257
5257
|
title: U.name,
|
|
@@ -5261,7 +5261,7 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5261
5261
|
};
|
|
5262
5262
|
xt(() => [o.value.productSizes, x.value], ([D = [], N]) => {
|
|
5263
5263
|
if (Array.isArray(D) && D.length > 0 && N !== null) {
|
|
5264
|
-
let U = D.findIndex((
|
|
5264
|
+
let U = D.findIndex((X) => X.is_default === !0);
|
|
5265
5265
|
D.length < 3 && s.value && parseInt(s.value.style.minWidth) < 767 && (s.value.style.width = "100px"), U > -1 ? (p.value = U, k(D[U], U), m.value = 120 / Gs) : D.length === 2 || D.length === 1 ? (k(D[0], 0), d.value = (0 + 0.5) * (100 / 2)) : (k(D[1], 1), d.value = (1 + 0.5) * (100 / 3));
|
|
5266
5266
|
}
|
|
5267
5267
|
}), xt(
|
|
@@ -5271,9 +5271,9 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5271
5271
|
},
|
|
5272
5272
|
([D, N]) => {
|
|
5273
5273
|
if (!D || !Array.isArray(N)) return;
|
|
5274
|
-
const U = N.map((
|
|
5275
|
-
...
|
|
5276
|
-
modifiers:
|
|
5274
|
+
const U = N.map((X) => ({
|
|
5275
|
+
...X,
|
|
5276
|
+
modifiers: X.modifiers.map((K) => {
|
|
5277
5277
|
if (!K.sizes || K.sizes.length === 0)
|
|
5278
5278
|
return K;
|
|
5279
5279
|
const z = K.sizes.find((L) => L.id === D);
|
|
@@ -5293,7 +5293,7 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5293
5293
|
};
|
|
5294
5294
|
return Ai(() => {
|
|
5295
5295
|
window.removeEventListener("resize", C);
|
|
5296
|
-
}), (D, N) => Yt((
|
|
5296
|
+
}), (D, N) => Yt((V(), Q("div", {
|
|
5297
5297
|
class: "slider_container",
|
|
5298
5298
|
ref_key: "slider_container",
|
|
5299
5299
|
ref: s
|
|
@@ -5303,31 +5303,31 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5303
5303
|
ref_key: "sliderWrapper",
|
|
5304
5304
|
ref: x
|
|
5305
5305
|
}, [
|
|
5306
|
-
O(o).productSizes.length > 1 && h.value ? (
|
|
5307
|
-
O(o).productSizes.length > 3 ? (
|
|
5306
|
+
O(o).productSizes.length > 1 && h.value ? (V(), Q("div", vd, [
|
|
5307
|
+
O(o).productSizes.length > 3 ? (V(), Q("ul", {
|
|
5308
5308
|
key: 0,
|
|
5309
5309
|
class: "card_size",
|
|
5310
5310
|
style: Gt({ transform: `translateX(-${p.value * m.value}px)` })
|
|
5311
5311
|
}, [
|
|
5312
|
-
(
|
|
5313
|
-
key: `${U.id}-${
|
|
5314
|
-
onClick: (K) => k(U,
|
|
5315
|
-
class:
|
|
5312
|
+
(V(!0), Q(bt, null, rn(S.value, (U, X) => (V(), Q("li", {
|
|
5313
|
+
key: `${U.id}-${X}`,
|
|
5314
|
+
onClick: (K) => k(U, X),
|
|
5315
|
+
class: it({ active: h.value.id === U.id && h.value.index === U.originalIndex }),
|
|
5316
5316
|
tabindex: "0",
|
|
5317
5317
|
role: "button",
|
|
5318
5318
|
"aria-label": `Выбрать размер ${U.name}`
|
|
5319
5319
|
}, ye(U.alt_name ? U.alt_name : U.name), 11, Cd))), 128))
|
|
5320
|
-
], 4)) : (
|
|
5321
|
-
(
|
|
5322
|
-
key: `${U.id}-${
|
|
5323
|
-
onClick: (K) => k(U,
|
|
5324
|
-
class:
|
|
5320
|
+
], 4)) : (V(), Q("ul", bd, [
|
|
5321
|
+
(V(!0), Q(bt, null, rn(O(o).productSizes, (U, X) => (V(), Q("li", {
|
|
5322
|
+
key: `${U.id}-${X}`,
|
|
5323
|
+
onClick: (K) => k(U, X),
|
|
5324
|
+
class: it({ active: h.value.id === U.id && h.value.index === X }),
|
|
5325
5325
|
tabindex: "0",
|
|
5326
5326
|
role: "button",
|
|
5327
5327
|
"aria-label": `Выбрать размер ${U.name}`
|
|
5328
5328
|
}, ye(U.alt_name ? U.alt_name : U.name), 11, yd))), 128))
|
|
5329
5329
|
])),
|
|
5330
|
-
w.value ? Yt((
|
|
5330
|
+
w.value ? Yt((V(), Q("div", {
|
|
5331
5331
|
key: 2,
|
|
5332
5332
|
class: "size_active",
|
|
5333
5333
|
style: Gt(O(o).productSizes.length <= 3 ? { left: `${d.value}%` } : {})
|
|
@@ -5360,11 +5360,11 @@ const ri = /* @__PURE__ */ Qe(G1, [["render", V1]]), _s = {
|
|
|
5360
5360
|
};
|
|
5361
5361
|
return (p, m) => {
|
|
5362
5362
|
var x, w;
|
|
5363
|
-
return
|
|
5363
|
+
return V(), Q("div", Sd, [
|
|
5364
5364
|
E("div", Td, [
|
|
5365
5365
|
E("div", Rd, [
|
|
5366
5366
|
E("p", {
|
|
5367
|
-
class:
|
|
5367
|
+
class: it(["cart_circle_minus", [((x = O(o).openCard) == null ? void 0 : x.amount) === 1 ? "card_circle_minus_alone" : ""]]),
|
|
5368
5368
|
"aria-label": "Уменьшить количество продукта",
|
|
5369
5369
|
"data-clickable": "true",
|
|
5370
5370
|
onClick: ln(d, ["stop", "prevent"])
|
|
@@ -5423,7 +5423,7 @@ const Et = /* @__PURE__ */ Ue({
|
|
|
5423
5423
|
const a = i, { displayNumber: o, update: s } = bo(a.price || 0, a.duration || 800);
|
|
5424
5424
|
return Pr(() => {
|
|
5425
5425
|
s(a.price);
|
|
5426
|
-
}), (u, d) => (
|
|
5426
|
+
}), (u, d) => (V(), Q("span", null, ye(O(o).toFixed(i.fixedFloat)), 1));
|
|
5427
5427
|
}
|
|
5428
5428
|
}), kd = { class: "button_price button_price_modifiers" }, Dd = ["src"], Bd = { class: "button_text_container" }, Pd = { class: "button_text_price" }, Ld = /* @__PURE__ */ Ue({
|
|
5429
5429
|
__name: "ButtonPriceCount",
|
|
@@ -5438,8 +5438,8 @@ const Et = /* @__PURE__ */ Ue({
|
|
|
5438
5438
|
isOpenWindow: w,
|
|
5439
5439
|
isAddToCard: C
|
|
5440
5440
|
} = He(u), { isDesktop: S } = wr(), { itemThemes: k } = He(h), T = ce(!0), P = ce(!1), B = we(() => S.value ? !1 : T.value), H = ce([]), D = ce([]), N = () => {
|
|
5441
|
-
var
|
|
5442
|
-
if ((K = (
|
|
5441
|
+
var X, K, z, L, F;
|
|
5442
|
+
if ((K = (X = o.options.history.state) == null ? void 0 : X.back) != null && K.includes("mode=pdf") && p.qr_menu) return;
|
|
5443
5443
|
if (T.value) {
|
|
5444
5444
|
u.setCurrentCard(m.value.openCard), P.value = !0;
|
|
5445
5445
|
const oe = m.value.groupModifiers.findIndex((te) => u.checkedRequiredBtn.group.id === te.id);
|
|
@@ -5449,23 +5449,23 @@ const Et = /* @__PURE__ */ Ue({
|
|
|
5449
5449
|
const U = m.value.groupModifiersSelected || [];
|
|
5450
5450
|
if (H.value = [], D.value = [], Array.isArray(U) && U.length > 0 && U.forEach((oe) => {
|
|
5451
5451
|
const te = oe.group, re = oe.modifiers || [];
|
|
5452
|
-
te === "Добавки2000" ? H.value = re.map((
|
|
5453
|
-
var
|
|
5452
|
+
te === "Добавки2000" ? H.value = re.map((q) => {
|
|
5453
|
+
var W;
|
|
5454
5454
|
return {
|
|
5455
|
-
...
|
|
5456
|
-
old_price:
|
|
5457
|
-
size: Array.isArray(
|
|
5455
|
+
...q,
|
|
5456
|
+
old_price: q.price,
|
|
5457
|
+
size: Array.isArray(q.size) ? q.size.map((I) => I.id).filter(Boolean) : (W = q.size) != null && W.id ? q.size.id : void 0
|
|
5458
5458
|
};
|
|
5459
5459
|
}) : re.length > 0 && D.value.push({
|
|
5460
5460
|
group: te,
|
|
5461
5461
|
is_fake: oe.is_fake || !1,
|
|
5462
5462
|
is_product_determining: oe.is_product_determining || !1,
|
|
5463
|
-
modifiers: re.map((
|
|
5464
|
-
var
|
|
5463
|
+
modifiers: re.map((q) => {
|
|
5464
|
+
var W;
|
|
5465
5465
|
return {
|
|
5466
|
-
...
|
|
5467
|
-
old_price:
|
|
5468
|
-
size: Array.isArray(
|
|
5466
|
+
...q,
|
|
5467
|
+
old_price: q.price,
|
|
5468
|
+
size: Array.isArray(q.size) ? q.size.map((I) => I.id).filter(Boolean) : (W = q.size) != null && W.id ? q.size.id : void 0
|
|
5469
5469
|
};
|
|
5470
5470
|
})
|
|
5471
5471
|
});
|
|
@@ -5503,38 +5503,38 @@ const Et = /* @__PURE__ */ Ue({
|
|
|
5503
5503
|
u.checkedRequiredBtn.haveRequaire ? T.value = !0 : T.value = !1;
|
|
5504
5504
|
}), bn(() => {
|
|
5505
5505
|
C.value = !1;
|
|
5506
|
-
}), a({ addProductToCart: N }), (U,
|
|
5507
|
-
(
|
|
5506
|
+
}), a({ addProductToCart: N }), (U, X) => (V(), Q(bt, null, [
|
|
5507
|
+
(V(), Mt(Ei, { to: "body" }, [
|
|
5508
5508
|
pe(Co, {
|
|
5509
5509
|
visible: P.value,
|
|
5510
5510
|
textNotificationDefault: O(m).textErrorRequaired,
|
|
5511
5511
|
backgroundColor: O(k).accent_color ? O(k).accent_color : "#FF6D2E",
|
|
5512
5512
|
buttonAccept: null,
|
|
5513
|
-
"onUpdate:visible":
|
|
5513
|
+
"onUpdate:visible": X[0] || (X[0] = (K) => P.value = K)
|
|
5514
5514
|
}, null, 8, ["visible", "textNotificationDefault", "backgroundColor"])
|
|
5515
5515
|
])),
|
|
5516
5516
|
E("div", {
|
|
5517
5517
|
class: "button_price_bg_product",
|
|
5518
|
-
onTouchstart:
|
|
5518
|
+
onTouchstart: X[3] || (X[3] = ln(() => {
|
|
5519
5519
|
}, ["stop"])),
|
|
5520
|
-
onPointerdown:
|
|
5520
|
+
onPointerdown: X[4] || (X[4] = ln(() => {
|
|
5521
5521
|
}, ["stop"]))
|
|
5522
5522
|
}, [
|
|
5523
5523
|
E("div", kd, [
|
|
5524
|
-
O(S) ? he("", !0) : (
|
|
5524
|
+
O(S) ? he("", !0) : (V(), Mt(Md, {
|
|
5525
5525
|
key: 0,
|
|
5526
5526
|
qr_menu: i.qr_menu
|
|
5527
5527
|
}, null, 8, ["qr_menu"])),
|
|
5528
5528
|
E("div", {
|
|
5529
|
-
class:
|
|
5529
|
+
class: it(["card_product_button_buy", { buy_active: !B.value }]),
|
|
5530
5530
|
"data-clickable": "true",
|
|
5531
5531
|
onClick: N,
|
|
5532
|
-
onTouchstart:
|
|
5532
|
+
onTouchstart: X[1] || (X[1] = ln(() => {
|
|
5533
5533
|
}, ["stop"])),
|
|
5534
|
-
onPointerdown:
|
|
5534
|
+
onPointerdown: X[2] || (X[2] = ln(() => {
|
|
5535
5535
|
}, ["stop"]))
|
|
5536
5536
|
}, [
|
|
5537
|
-
O(S) ? he("", !0) : (
|
|
5537
|
+
O(S) ? he("", !0) : (V(), Q("img", {
|
|
5538
5538
|
key: 0,
|
|
5539
5539
|
src: O(Id),
|
|
5540
5540
|
class: "card_product_button_icon"
|
|
@@ -5545,7 +5545,7 @@ const Et = /* @__PURE__ */ Ue({
|
|
|
5545
5545
|
price: +O(x),
|
|
5546
5546
|
fixedFloat: 2
|
|
5547
5547
|
}, null, 8, ["price"]),
|
|
5548
|
-
|
|
5548
|
+
X[5] || (X[5] = nt(" ₽ ", -1))
|
|
5549
5549
|
])
|
|
5550
5550
|
])
|
|
5551
5551
|
], 34)
|
|
@@ -5566,7 +5566,7 @@ const Et = /* @__PURE__ */ Ue({
|
|
|
5566
5566
|
};
|
|
5567
5567
|
return (m, x) => {
|
|
5568
5568
|
var w, C;
|
|
5569
|
-
return
|
|
5569
|
+
return V(), Q(bt, null, [
|
|
5570
5570
|
E("div", Ud, [
|
|
5571
5571
|
E("div", Hd, [
|
|
5572
5572
|
E("img", {
|
|
@@ -5662,7 +5662,7 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5662
5662
|
set(Oe) {
|
|
5663
5663
|
[H.value, D.value, N.value] = Oe;
|
|
5664
5664
|
}
|
|
5665
|
-
}),
|
|
5665
|
+
}), X = ce(0), K = ce(0), z = qo(0), L = qo(0), { snapPoints: F } = Rc(s), oe = we(() => F.value ?? [U.value]), { flattenedSnapPoints: te, currentSnapPointIndex: re, closestSnapPointIndex: q, minSnapPoint: W, maxSnapPoint: I } = Qd(oe, X, P);
|
|
5666
5666
|
let $;
|
|
5667
5667
|
function Z(Oe) {
|
|
5668
5668
|
T.value = !0, Y(Oe);
|
|
@@ -5694,15 +5694,15 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5694
5694
|
Pt.getBoundingClientRect().height,
|
|
5695
5695
|
at.getBoundingClientRect().height
|
|
5696
5696
|
], await wn(), re.value = te.value.findIndex(
|
|
5697
|
-
(Ge) => Ge ===
|
|
5697
|
+
(Ge) => Ge === W.value
|
|
5698
5698
|
), s.initialSnapPoint) {
|
|
5699
5699
|
const Ge = s.initialSnapPoint;
|
|
5700
5700
|
if (Ge < 0 || Ge >= oe.value.length) return console.warn("Index out of bounds");
|
|
5701
|
-
|
|
5701
|
+
X.value = typeof oe.value[Ge] == "number" ? In(oe.value[Ge], { max: P.value }) : Ji(oe.value[Ge], P.value);
|
|
5702
5702
|
} else
|
|
5703
|
-
|
|
5704
|
-
K.value =
|
|
5705
|
-
$ = rr(z,
|
|
5703
|
+
X.value = In(W.value, { max: P.value });
|
|
5704
|
+
K.value = X.value, z.jump(X.value), L.jump(X.value), requestAnimationFrame(() => {
|
|
5705
|
+
$ = rr(z, X.value, {
|
|
5706
5706
|
duration: s.duration / 1e3,
|
|
5707
5707
|
ease: "easeInOut"
|
|
5708
5708
|
}), $ = rr(L, 0, {
|
|
@@ -5720,7 +5720,7 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5720
5720
|
};
|
|
5721
5721
|
let Ee = !1;
|
|
5722
5722
|
const Ce = () => {
|
|
5723
|
-
Ee || (me && (me = !1), $ && $.stop(), L.stop(), z.stop(), rr(L,
|
|
5723
|
+
Ee || (me && (me = !1), $ && $.stop(), L.stop(), z.stop(), rr(L, X.value || 500, {
|
|
5724
5724
|
duration: s.duration / 1e3,
|
|
5725
5725
|
ease: "easeInOut"
|
|
5726
5726
|
}), p.value = !1, m.value = !1, Ee = !0, u("closing-started"), window.removeEventListener("keydown", ee), d && clearTimeout(d), d = setTimeout(() => {
|
|
@@ -5732,7 +5732,7 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5732
5732
|
console.warn("Index out of bounds");
|
|
5733
5733
|
return;
|
|
5734
5734
|
}
|
|
5735
|
-
re.value = Oe,
|
|
5735
|
+
re.value = Oe, X.value = typeof oe.value[Oe] == "number" ? In(oe.value[Oe], { max: P.value }) : Ji(oe.value[Oe], P.value), $ = rr(z, X.value, {
|
|
5736
5736
|
duration: s.duration / 1e3,
|
|
5737
5737
|
ease: "easeInOut",
|
|
5738
5738
|
onComplete: () => u("snapped", oe.value.indexOf(oe.value[Oe]))
|
|
@@ -5743,29 +5743,29 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5743
5743
|
Oe > 0 ? u("dragging-down") : Oe < 0 && u("dragging-up");
|
|
5744
5744
|
}
|
|
5745
5745
|
const Rt = () => {
|
|
5746
|
-
p.value = !0,
|
|
5746
|
+
p.value = !0, X.value = B.value, K.value = L.get(), z.jump(X.value), L.jump(K.value);
|
|
5747
5747
|
}, Re = async (Oe, qe) => {
|
|
5748
|
-
await wn(), x.value && (K.value <= 0 && (
|
|
5748
|
+
await wn(), x.value && (K.value <= 0 && (X.value -= qe.delta.y), X.value <= W.value && (X.value = W.value, K.value += qe.delta.y, p.value = !0, L.set(
|
|
5749
5749
|
s.canSwipeClose ? In(K.value, { min: 0 }) : In(Ws(K.value, -B.value, 0, 0.5), { min: 0 })
|
|
5750
|
-
)), z.set(In(Ws(
|
|
5750
|
+
)), z.set(In(Ws(X.value, 0, I.value, 0.25), { min: 0, max: P.value })), Ae(qe.delta.y));
|
|
5751
5751
|
}, ct = () => {
|
|
5752
5752
|
if (s.canSwipeClose) {
|
|
5753
|
-
let Oe =
|
|
5754
|
-
s.swipeCloseThreshold && typeof s.swipeCloseThreshold == "number" && (Oe = s.swipeCloseThreshold), s.swipeCloseThreshold && typeof s.swipeCloseThreshold == "string" && s.swipeCloseThreshold.includes("%") && (Oe =
|
|
5753
|
+
let Oe = X.value / 2;
|
|
5754
|
+
s.swipeCloseThreshold && typeof s.swipeCloseThreshold == "number" && (Oe = s.swipeCloseThreshold), s.swipeCloseThreshold && typeof s.swipeCloseThreshold == "string" && s.swipeCloseThreshold.includes("%") && (Oe = X.value * (Number(s.swipeCloseThreshold.replace("%", "")) / 100)), Math.abs(K.value) > Oe && (K.value = X.value);
|
|
5755
5755
|
} else
|
|
5756
5756
|
K.value = 0;
|
|
5757
|
-
if ($ = rr(L, K.value, { duration: s.duration / 1e3, ease: "easeInOut" }), K.value ===
|
|
5757
|
+
if ($ = rr(L, K.value, { duration: s.duration / 1e3, ease: "easeInOut" }), K.value === X.value) {
|
|
5758
5758
|
K.value = 0, Ce();
|
|
5759
5759
|
return;
|
|
5760
5760
|
}
|
|
5761
|
-
re.value =
|
|
5761
|
+
re.value = q.value, X.value = typeof oe.value[q.value] == "number" ? In(oe.value[q.value], { max: P.value }) : Ji(oe.value[q.value], P.value), $ = rr(z, X.value, {
|
|
5762
5762
|
duration: s.duration / 1e3,
|
|
5763
5763
|
ease: "easeInOut",
|
|
5764
|
-
onComplete: () => u("snapped", oe.value.indexOf(oe.value[
|
|
5764
|
+
onComplete: () => u("snapped", oe.value.indexOf(oe.value[q.value]))
|
|
5765
5765
|
}), $ = rr(L, 0, { duration: s.duration / 1e3, ease: "easeInOut" });
|
|
5766
5766
|
}, ft = (Oe, qe) => {
|
|
5767
|
-
if (
|
|
5768
|
-
const Pt = S.value.scrollTop === 0, gt = qe.delta.y > 0, at = te.value.length === 1, Ge = 0.5 > Math.abs(
|
|
5767
|
+
if (X.value = B.value, K.value = L.get(), $ && $.stop(), !S.value) return;
|
|
5768
|
+
const Pt = S.value.scrollTop === 0, gt = qe.delta.y > 0, at = te.value.length === 1, Ge = 0.5 > Math.abs(X.value - I.value);
|
|
5769
5769
|
if (at) {
|
|
5770
5770
|
if (!s.expandOnContentDrag) return T.value = !1;
|
|
5771
5771
|
L.get() === 0 && Pt && gt && (T.value = !0), L.get() === 0 && Pt && !gt && (T.value = !1);
|
|
@@ -5776,9 +5776,9 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5776
5776
|
}, je = async (Oe, qe) => {
|
|
5777
5777
|
if (await wn(), !s.expandOnContentDrag) return T.value = !1;
|
|
5778
5778
|
if (!x.value) return;
|
|
5779
|
-
K.value === 0 && T.value && s.expandOnContentDrag && (
|
|
5779
|
+
K.value === 0 && T.value && s.expandOnContentDrag && (X.value -= qe.delta.y), X.value <= W.value && (X.value = W.value, T.value && s.expandOnContentDrag && (K.value += qe.delta.y), K.value = In(K.value, { min: 0, max: W.value }), L.set(
|
|
5780
5780
|
s.canSwipeClose ? In(K.value, { min: 0 }) : In(Ws(K.value, -B.value, 0, 0.5), { min: 0 })
|
|
5781
|
-
)),
|
|
5781
|
+
)), X.value > I.value && (X.value = I.value), X.value = In(X.value, { max: P.value }), !(te.value.length === 1) && X.value === I.value && (T.value = !1), z.set(X.value), Ae(qe.delta.y);
|
|
5782
5782
|
}, ht = () => {
|
|
5783
5783
|
if (!S.value) return;
|
|
5784
5784
|
const Oe = S.value.scrollTop === 0;
|
|
@@ -5787,17 +5787,17 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5787
5787
|
return xt(oe, (Oe, qe) => {
|
|
5788
5788
|
if (m.value === !1 || !Oe || !qe) return;
|
|
5789
5789
|
const Pt = Oe[re.value], gt = qe[re.value];
|
|
5790
|
-
typeof Pt != "string" && typeof gt != "string" && (
|
|
5790
|
+
typeof Pt != "string" && typeof gt != "string" && (X.value = In(Pt, { max: P.value }), Pt !== gt && ($ = rr(z, X.value, { duration: s.duration / 1e3, ease: "easeInOut" })));
|
|
5791
5791
|
}), xt(P, () => Fe(re.value)), a({ open: ge, close: Ce, snapToPoint: ze }), Ln(() => {
|
|
5792
5792
|
d && clearTimeout(d);
|
|
5793
|
-
}), (Oe, qe) => (
|
|
5793
|
+
}), (Oe, qe) => (V(), Mt(Ei, {
|
|
5794
5794
|
to: i.teleportTo,
|
|
5795
5795
|
defer: i.teleportDefer
|
|
5796
5796
|
}, [
|
|
5797
5797
|
E("div", $a(Oe.$attrs, { "data-vsbs-container": "" }), [
|
|
5798
5798
|
pe(O($o), null, {
|
|
5799
5799
|
default: Wt(() => [
|
|
5800
|
-
O(m) && i.blocking ? (
|
|
5800
|
+
O(m) && i.blocking ? (V(), Mt(O(pi), {
|
|
5801
5801
|
ref: "backdrop",
|
|
5802
5802
|
key: "backdrop-" + h.value,
|
|
5803
5803
|
"data-vsbs-backdrop": "",
|
|
@@ -5812,7 +5812,7 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5812
5812
|
}),
|
|
5813
5813
|
pe(O($o), null, {
|
|
5814
5814
|
default: Wt(() => [
|
|
5815
|
-
O(m) ? (
|
|
5815
|
+
O(m) ? (V(), Mt(O(pi), {
|
|
5816
5816
|
ref_key: "sheet",
|
|
5817
5817
|
ref: x,
|
|
5818
5818
|
exit: { opacity: 0 },
|
|
@@ -5835,7 +5835,7 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5835
5835
|
onPan: Re,
|
|
5836
5836
|
onPanEnd: ct,
|
|
5837
5837
|
onTouchmove: Z,
|
|
5838
|
-
class:
|
|
5838
|
+
class: it(i.headerClass)
|
|
5839
5839
|
}, {
|
|
5840
5840
|
default: Wt(() => [
|
|
5841
5841
|
Or(Oe.$slots, "header", {}, void 0, !0)
|
|
@@ -5861,7 +5861,7 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5861
5861
|
ref_key: "sheetContent",
|
|
5862
5862
|
ref: k,
|
|
5863
5863
|
"data-vsbs-content": "",
|
|
5864
|
-
class:
|
|
5864
|
+
class: it(i.contentClass)
|
|
5865
5865
|
}, [
|
|
5866
5866
|
Or(Oe.$slots, "default", {}, void 0, !0)
|
|
5867
5867
|
], 2)
|
|
@@ -5877,7 +5877,7 @@ const Jd = /* @__PURE__ */ Ue({
|
|
|
5877
5877
|
onPan: Re,
|
|
5878
5878
|
onPanEnd: ct,
|
|
5879
5879
|
onTouchmove: Z,
|
|
5880
|
-
class:
|
|
5880
|
+
class: it(i.footerClass)
|
|
5881
5881
|
}, {
|
|
5882
5882
|
default: Wt(() => [
|
|
5883
5883
|
Or(Oe.$slots, "footer", {}, void 0, !0)
|
|
@@ -5949,8 +5949,8 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
5949
5949
|
}, { immediate: !0 }), Pr(() => {
|
|
5950
5950
|
u.value || (u.value = x.configPage.is_closeProduct);
|
|
5951
5951
|
}), Ai(() => o.reset()), (H, D) => {
|
|
5952
|
-
var N, U,
|
|
5953
|
-
return
|
|
5952
|
+
var N, U, X, K, z, L;
|
|
5953
|
+
return V(), Q("div", {
|
|
5954
5954
|
class: "card_product_wrapper",
|
|
5955
5955
|
style: Gt(w.value ? "user-select: none;" : "")
|
|
5956
5956
|
}, [
|
|
@@ -5974,8 +5974,8 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
5974
5974
|
]),
|
|
5975
5975
|
_: 1
|
|
5976
5976
|
}, 8, ["modelValue", "teleportTo"]),
|
|
5977
|
-
(
|
|
5978
|
-
O(s).isModifiedAmount ? (
|
|
5977
|
+
(V(), Mt(Ei, { to: "body" }, [
|
|
5978
|
+
O(s).isModifiedAmount ? (V(), Q("div", {
|
|
5979
5979
|
key: 0,
|
|
5980
5980
|
class: "wrapper_modified_amount",
|
|
5981
5981
|
onClick: ln(T, ["stop"])
|
|
@@ -5984,7 +5984,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
5984
5984
|
])) : he("", !0)
|
|
5985
5985
|
])),
|
|
5986
5986
|
E("div", tf, [
|
|
5987
|
-
(N = O(s).openCard) != null && N.video_link && O(C) ? Yt((
|
|
5987
|
+
(N = O(s).openCard) != null && N.video_link && O(C) ? Yt((V(), Q("video", {
|
|
5988
5988
|
key: O(C),
|
|
5989
5989
|
loop: "",
|
|
5990
5990
|
autoplay: "",
|
|
@@ -5998,7 +5998,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
5998
5998
|
}, null, 8, nf)
|
|
5999
5999
|
])), [
|
|
6000
6000
|
[O(_s)]
|
|
6001
|
-
]) : (
|
|
6001
|
+
]) : (V(), Q("img", {
|
|
6002
6002
|
key: 1,
|
|
6003
6003
|
class: "card__pictures_images",
|
|
6004
6004
|
src: O(C) || "",
|
|
@@ -6010,10 +6010,10 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6010
6010
|
onClick: S,
|
|
6011
6011
|
"aria-label": "Вернуться назад"
|
|
6012
6012
|
}),
|
|
6013
|
-
(U = O(s).openCard) != null && U.energy_amount ? (
|
|
6013
|
+
(U = O(s).openCard) != null && U.energy_amount ? (V(), Q("div", of, [
|
|
6014
6014
|
D[2] || (D[2] = E("div", { class: "card_fire_kkal" }, null, -1)),
|
|
6015
6015
|
E("p", null, [
|
|
6016
|
-
E("b", null, ye((
|
|
6016
|
+
E("b", null, ye((X = O(s).openCard) == null ? void 0 : X.energy_amount), 1),
|
|
6017
6017
|
D[1] || (D[1] = nt(" Ккал ", -1))
|
|
6018
6018
|
])
|
|
6019
6019
|
])) : he("", !0)
|
|
@@ -6028,8 +6028,8 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6028
6028
|
E("div", lf, [
|
|
6029
6029
|
pe(Ed)
|
|
6030
6030
|
]),
|
|
6031
|
-
(z = O(s).openCard) != null && z.description ? (
|
|
6032
|
-
O(s).groupModifiers.length ? (
|
|
6031
|
+
(z = O(s).openCard) != null && z.description ? (V(), Q("p", cf, ye((L = O(s).openCard) == null ? void 0 : L.description), 1)) : he("", !0),
|
|
6032
|
+
O(s).groupModifiers.length ? (V(), Q("div", uf, [
|
|
6033
6033
|
D[3] || (D[3] = E("p", { class: "title_info_modifiers" }, "Настрой, как ты любишь", -1)),
|
|
6034
6034
|
pe(Ia, {
|
|
6035
6035
|
isSectionModifier: O(s).isSectionModifier,
|
|
@@ -6070,7 +6070,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6070
6070
|
};
|
|
6071
6071
|
return xt(() => o.visible, async (d) => {
|
|
6072
6072
|
d && await wn(), o.isVisible = d;
|
|
6073
|
-
}), (d, h) => (
|
|
6073
|
+
}), (d, h) => (V(), Q(bt, null, [
|
|
6074
6074
|
pe(ti, {
|
|
6075
6075
|
name: "popupWindowDefaultBlack",
|
|
6076
6076
|
appear: "",
|
|
@@ -6079,7 +6079,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6079
6079
|
})
|
|
6080
6080
|
}, {
|
|
6081
6081
|
default: Wt(() => [
|
|
6082
|
-
o.visible ? (
|
|
6082
|
+
o.visible ? (V(), Q("div", {
|
|
6083
6083
|
key: 0,
|
|
6084
6084
|
class: "background_black",
|
|
6085
6085
|
onClick: u
|
|
@@ -6095,7 +6095,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6095
6095
|
})
|
|
6096
6096
|
}, {
|
|
6097
6097
|
default: Wt(() => [
|
|
6098
|
-
o.visible ? (
|
|
6098
|
+
o.visible ? (V(), Q("div", ff, [
|
|
6099
6099
|
Or(d.$slots, "default", {}, void 0, !0)
|
|
6100
6100
|
])) : he("", !0)
|
|
6101
6101
|
]),
|
|
@@ -6116,7 +6116,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6116
6116
|
setup(i, { emit: a }) {
|
|
6117
6117
|
const o = i, s = Ct(), u = Vt(), d = yo(), { itemThemes: h } = He(u), p = ce(0), m = ce(0), x = ce(!1), w = ce(!1), C = ce(!1), { displayNumber: S, update: k } = bo(0, 800), T = we(() => {
|
|
6118
6118
|
var te, re;
|
|
6119
|
-
const F = ((te = o.cardItem) == null ? void 0 : te.modifiers) ?? [], oe = (((re = o.cardItem) == null ? void 0 : re.group_modifiers) ?? []).flatMap((
|
|
6119
|
+
const F = ((te = o.cardItem) == null ? void 0 : te.modifiers) ?? [], oe = (((re = o.cardItem) == null ? void 0 : re.group_modifiers) ?? []).flatMap((q) => q.modifiers ?? []);
|
|
6120
6120
|
return [...F, ...oe];
|
|
6121
6121
|
}), { mediaUrl: P } = ar(() => {
|
|
6122
6122
|
var F;
|
|
@@ -6133,7 +6133,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6133
6133
|
s.plusAmount(o.cardItem.idSystem);
|
|
6134
6134
|
}, U = () => {
|
|
6135
6135
|
o.cardItem.amount > 1 ? s.minusAmount(o.cardItem.idSystem) : H();
|
|
6136
|
-
},
|
|
6136
|
+
}, X = (F) => {
|
|
6137
6137
|
p.value = F.touches[0].clientX, x.value = !0;
|
|
6138
6138
|
}, K = (F) => {
|
|
6139
6139
|
x.value && (m.value = F.touches[0].clientX - p.value, m.value > 0 && (m.value = 0));
|
|
@@ -6156,10 +6156,10 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6156
6156
|
};
|
|
6157
6157
|
});
|
|
6158
6158
|
return xt(B, k, { immediate: !0 }), (F, oe) => {
|
|
6159
|
-
var te, re,
|
|
6160
|
-
return
|
|
6159
|
+
var te, re, q, W;
|
|
6160
|
+
return V(), Q("div", {
|
|
6161
6161
|
class: "cart_box_wrapper",
|
|
6162
|
-
onTouchstart:
|
|
6162
|
+
onTouchstart: X,
|
|
6163
6163
|
onTouchmove: K,
|
|
6164
6164
|
onTouchend: z,
|
|
6165
6165
|
style: Gt(L.value)
|
|
@@ -6174,7 +6174,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6174
6174
|
E("div", mf, [
|
|
6175
6175
|
E("div", xf, [
|
|
6176
6176
|
E("p", null, ye((te = i.cardItem) == null ? void 0 : te.name), 1),
|
|
6177
|
-
(
|
|
6177
|
+
(V(!0), Q(bt, null, rn(((re = o.cardItem) == null ? void 0 : re.discounts) || [], (I, $) => (V(), Q("div", {
|
|
6178
6178
|
key: $,
|
|
6179
6179
|
class: "discount_banner"
|
|
6180
6180
|
}, [
|
|
@@ -6194,14 +6194,14 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6194
6194
|
}, [
|
|
6195
6195
|
pe(Ol)
|
|
6196
6196
|
]),
|
|
6197
|
-
(
|
|
6197
|
+
(q = o.cardItem) != null && q.new_price ? (V(), Q("p", {
|
|
6198
6198
|
key: 0,
|
|
6199
|
-
class:
|
|
6199
|
+
class: it({ discount_new_price: (W = o.cardItem) == null ? void 0 : W.new_price })
|
|
6200
6200
|
}, ye((o.cardItem.new_price * o.cardItem.amount).toFixed(2) + "₽"), 3)) : he("", !0),
|
|
6201
6201
|
E("p", null, ye(O(S).toFixed(2) + "₽"), 1)
|
|
6202
6202
|
])
|
|
6203
6203
|
]),
|
|
6204
|
-
!C.value && T.value.length > 0 ? (
|
|
6204
|
+
!C.value && T.value.length > 0 ? (V(), Q("div", {
|
|
6205
6205
|
key: 0,
|
|
6206
6206
|
class: "cart_modifier_toggle",
|
|
6207
6207
|
onTouchstart: ln(D, ["stop"])
|
|
@@ -6209,10 +6209,10 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6209
6209
|
E("p", { class: "cart_info_more" }, "Посмотреть модификаторы", -1),
|
|
6210
6210
|
E("p", { class: "cart_arrow" }, null, -1)
|
|
6211
6211
|
])], 32)) : he("", !0),
|
|
6212
|
-
C.value ? (
|
|
6213
|
-
(
|
|
6212
|
+
C.value ? (V(), Q("div", Cf, [
|
|
6213
|
+
(V(!0), Q(bt, null, rn(T.value, (I) => {
|
|
6214
6214
|
var $;
|
|
6215
|
-
return
|
|
6215
|
+
return V(), Q("div", {
|
|
6216
6216
|
class: "cart_modifier_item",
|
|
6217
6217
|
key: I.id
|
|
6218
6218
|
}, [
|
|
@@ -6223,9 +6223,9 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6223
6223
|
E("div", yf, [
|
|
6224
6224
|
E("p", Af, ye(`x${I.amount}`), 1),
|
|
6225
6225
|
E("div", Ef, [
|
|
6226
|
-
I != null && I.new_price ? (
|
|
6226
|
+
I != null && I.new_price ? (V(), Q("p", {
|
|
6227
6227
|
key: 0,
|
|
6228
|
-
class:
|
|
6228
|
+
class: it({ discount_new_price: ($ = I == null ? void 0 : I.new_price) == null ? void 0 : $.toFixed(2) })
|
|
6229
6229
|
}, ye((I.new_price * I.amount).toFixed(2) + "₽"), 3)) : he("", !0),
|
|
6230
6230
|
E("p", null, ye((I.total_new_price ?? I.price * I.amount).toFixed(2) + "₽"), 1)
|
|
6231
6231
|
])
|
|
@@ -6248,7 +6248,7 @@ const ef = { class: "card_product_modifiers_sheet_body" }, tf = { class: "card__
|
|
|
6248
6248
|
viewBox: "0 0 48 48"
|
|
6249
6249
|
};
|
|
6250
6250
|
function Nf(i, a) {
|
|
6251
|
-
return
|
|
6251
|
+
return V(), Q("svg", Rf, [...a[0] || (a[0] = [
|
|
6252
6252
|
E("rect", {
|
|
6253
6253
|
x: "8",
|
|
6254
6254
|
y: "12",
|
|
@@ -6275,7 +6275,7 @@ const Of = /* @__PURE__ */ Qe(Tf, [["render", Nf]]), Mf = {}, kf = {
|
|
|
6275
6275
|
class: "nfc_ok"
|
|
6276
6276
|
};
|
|
6277
6277
|
function Df(i, a) {
|
|
6278
|
-
return
|
|
6278
|
+
return V(), Q("svg", kf, [...a[0] || (a[0] = [
|
|
6279
6279
|
E("rect", {
|
|
6280
6280
|
x: "8",
|
|
6281
6281
|
y: "12",
|
|
@@ -6314,7 +6314,7 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6314
6314
|
styleRetry: { type: Boolean }
|
|
6315
6315
|
},
|
|
6316
6316
|
setup(i) {
|
|
6317
|
-
return (a, o) => i.styleRetry ? he("", !0) : (
|
|
6317
|
+
return (a, o) => i.styleRetry ? he("", !0) : (V(), Q("svg", Pf, [...o[0] || (o[0] = [
|
|
6318
6318
|
E("rect", {
|
|
6319
6319
|
x: "8",
|
|
6320
6320
|
y: "12",
|
|
@@ -6359,7 +6359,7 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6359
6359
|
})), H = we(() => {
|
|
6360
6360
|
const Z = [];
|
|
6361
6361
|
return C.value === "wait" && Z.push("pulse", "show-x"), C.value === "not_found" && Z.push("pulse", "show-x"), C.value === "success" && Z.push("pulse", "show-ok"), Z;
|
|
6362
|
-
}), D = we(() => C.value === "not_found"), N = we(() => C.value === "success"), U = we(() => C.value === "not_found"),
|
|
6362
|
+
}), D = we(() => C.value === "not_found"), N = we(() => C.value === "success"), U = we(() => C.value === "not_found"), X = we(() => ["not_found"].includes(C.value)), K = we(() => ({
|
|
6363
6363
|
wait: "Стикер не распознан. Нажмите «Повторить».",
|
|
6364
6364
|
success: "Стикер распознан. Нажмите «Продолжить».",
|
|
6365
6365
|
not_found: "Стикер не распознан. Нажмите «Повторить»."
|
|
@@ -6385,9 +6385,9 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6385
6385
|
}, re = () => {
|
|
6386
6386
|
var Z, Y;
|
|
6387
6387
|
d.setState("wait"), (Y = (Z = w.value) == null ? void 0 : Z.trim()) != null && Y.length && L(w.value.trim());
|
|
6388
|
-
},
|
|
6389
|
-
Z.stopPropagation(), document.activeElement !== h.value &&
|
|
6390
|
-
},
|
|
6388
|
+
}, q = (Z) => {
|
|
6389
|
+
Z.stopPropagation(), document.activeElement !== h.value && W();
|
|
6390
|
+
}, W = () => {
|
|
6391
6391
|
wn(() => {
|
|
6392
6392
|
h.value && (h.value.focus(), m.value && h.value.select());
|
|
6393
6393
|
});
|
|
@@ -6412,25 +6412,25 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6412
6412
|
document == null || document.removeEventListener("keydown", I);
|
|
6413
6413
|
}), Pr(() => {
|
|
6414
6414
|
S.value && (d.error = "");
|
|
6415
|
-
}), (Z, Y) => (
|
|
6416
|
-
S.value ? (
|
|
6415
|
+
}), (Z, Y) => (V(), Q(bt, null, [
|
|
6416
|
+
S.value ? (V(), Q("div", {
|
|
6417
6417
|
key: 0,
|
|
6418
6418
|
class: "backdrop show",
|
|
6419
6419
|
onClick: te,
|
|
6420
6420
|
"aria-hidden": "true"
|
|
6421
6421
|
})) : he("", !0),
|
|
6422
|
-
S.value ? (
|
|
6422
|
+
S.value ? (V(), Q("section", {
|
|
6423
6423
|
key: 1,
|
|
6424
|
-
class:
|
|
6424
|
+
class: it(["sheet show", { sheet_retry: U.value }]),
|
|
6425
6425
|
"aria-modal": "true",
|
|
6426
6426
|
"aria-labelledby": "sheetTitle",
|
|
6427
|
-
onClick:
|
|
6427
|
+
onClick: q
|
|
6428
6428
|
}, [
|
|
6429
6429
|
E("header", Ff, [
|
|
6430
6430
|
E("div", Uf, ye(k.value), 1),
|
|
6431
|
-
U.value ? (
|
|
6431
|
+
U.value ? (V(), Q("div", {
|
|
6432
6432
|
key: 0,
|
|
6433
|
-
class:
|
|
6433
|
+
class: it(["sheet_status", B.value])
|
|
6434
6434
|
}, ye(p.value), 3)) : he("", !0),
|
|
6435
6435
|
E("button", {
|
|
6436
6436
|
class: "sheet_close",
|
|
@@ -6441,10 +6441,10 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6441
6441
|
E("div", Hf, [
|
|
6442
6442
|
E("div", zf, [
|
|
6443
6443
|
E("div", {
|
|
6444
|
-
class:
|
|
6444
|
+
class: it(["nfc", H.value])
|
|
6445
6445
|
}, [
|
|
6446
|
-
pe(Lf, { styleRetry:
|
|
6447
|
-
D.value ? (
|
|
6446
|
+
pe(Lf, { styleRetry: X.value }, null, 8, ["styleRetry"]),
|
|
6447
|
+
D.value ? (V(), Mt(Of, { key: 0 })) : he("", !0),
|
|
6448
6448
|
E("div", {
|
|
6449
6449
|
class: "overlay check",
|
|
6450
6450
|
style: Gt({ display: N.value ? "grid" : "none" }),
|
|
@@ -6470,19 +6470,19 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6470
6470
|
[Sr, w.value],
|
|
6471
6471
|
[$]
|
|
6472
6472
|
]),
|
|
6473
|
-
U.value ? (
|
|
6473
|
+
U.value ? (V(), Q("button", {
|
|
6474
6474
|
key: 0,
|
|
6475
6475
|
class: "btn btn_ghost",
|
|
6476
6476
|
onClick: oe
|
|
6477
|
-
}, "Повторить")) : (
|
|
6478
|
-
F.value ? he("", !0) : (
|
|
6477
|
+
}, "Повторить")) : (V(), Q("div", Xf, [
|
|
6478
|
+
F.value ? he("", !0) : (V(), Q("button", {
|
|
6479
6479
|
key: 0,
|
|
6480
6480
|
class: "btn btn_ghost",
|
|
6481
6481
|
onClick: Y[1] || (Y[1] = (ee) => U.value ? te : re())
|
|
6482
6482
|
}, "Отправить"))
|
|
6483
6483
|
]))
|
|
6484
6484
|
]),
|
|
6485
|
-
C.value === "wait" && O(u).kiosk_show_loyalty_phone_input_button ? (
|
|
6485
|
+
C.value === "wait" && O(u).kiosk_show_loyalty_phone_input_button ? (V(), Q("div", jf, [
|
|
6486
6486
|
E("button", {
|
|
6487
6487
|
class: "card_phone_auth_button",
|
|
6488
6488
|
onClick: z
|
|
@@ -6515,7 +6515,7 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6515
6515
|
const S = o.provider.front_type;
|
|
6516
6516
|
S && (m.value = !1, p.value = !0, s("select", S), xo(o.orderId, o.provider.type));
|
|
6517
6517
|
}, C = we(() => x[o.provider.front_type] || x.default);
|
|
6518
|
-
return (S, k) => (
|
|
6518
|
+
return (S, k) => (V(), Q("div", {
|
|
6519
6519
|
class: "payment_boxes_wrapper",
|
|
6520
6520
|
onClick: w
|
|
6521
6521
|
}, [
|
|
@@ -6550,10 +6550,10 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6550
6550
|
}, x = () => {
|
|
6551
6551
|
p("selectPayment", "");
|
|
6552
6552
|
};
|
|
6553
|
-
return (w, C) => O(o).providerTypes.length > 1 ? (
|
|
6553
|
+
return (w, C) => O(o).providerTypes.length > 1 ? (V(), Q("div", eh, [
|
|
6554
6554
|
C[2] || (C[2] = E("h2", null, "Выберите способ оплаты", -1)),
|
|
6555
6555
|
C[3] || (C[3] = E("p", { class: "description_payment" }, "Можно изменить позже до оплаты", -1)),
|
|
6556
|
-
(
|
|
6556
|
+
(V(!0), Q(bt, null, rn(O(o).providerTypes, (S, k) => (V(), Q("div", { key: k }, [
|
|
6557
6557
|
pe(Jf, {
|
|
6558
6558
|
provider: S,
|
|
6559
6559
|
"config-page": u.configPage,
|
|
@@ -6605,8 +6605,8 @@ const Bf = /* @__PURE__ */ Qe(Mf, [["render", Df]]), Pf = {
|
|
|
6605
6605
|
};
|
|
6606
6606
|
return Ln(() => {
|
|
6607
6607
|
k && clearInterval(k);
|
|
6608
|
-
}), (P, B) => (
|
|
6609
|
-
Yt((
|
|
6608
|
+
}), (P, B) => (V(), Q("div", sh, [
|
|
6609
|
+
Yt((V(), Q("video", {
|
|
6610
6610
|
loop: "",
|
|
6611
6611
|
autoplay: "",
|
|
6612
6612
|
muted: "",
|
|
@@ -6654,7 +6654,7 @@ function ph(i, a) {
|
|
|
6654
6654
|
}
|
|
6655
6655
|
const mh = /* @__PURE__ */ Qe(gh, [["render", ph], ["__scopeId", "data-v-3e03a6dc"]]), xh = {}, _h = { class: "center" };
|
|
6656
6656
|
function wh(i, a) {
|
|
6657
|
-
return
|
|
6657
|
+
return V(), Q("div", _h, [...a[0] || (a[0] = [
|
|
6658
6658
|
lo('<div class="stack" data-v-f0859fd1><h1 class="title_fiscal" data-v-f0859fd1>Приложите карту для оплаты</h1><p class="reminder" data-v-f0859fd1>Держите карту у терминала, пока операция не завершится.</p><div class="stageCard" aria-hidden="true" data-v-f0859fd1><div class="waves" data-v-f0859fd1><span data-v-f0859fd1></span><span data-v-f0859fd1></span><span data-v-f0859fd1></span></div><div class="nfc" data-v-f0859fd1><svg viewBox="0 0 24 24" data-v-f0859fd1><path d="M6 8c2.5 2.5 2.5 5.5 0 8" data-v-f0859fd1></path><path d="M10 6c4 4 4 8 0 12" data-v-f0859fd1></path><path d="M14 4c5.5 5.5 5.5 11 0 16" data-v-f0859fd1></path></svg></div><div class="card" data-v-f0859fd1><div class="logo" data-v-f0859fd1>inno.</div><div class="chip" data-v-f0859fd1></div><div class="digits" data-v-f0859fd1>4815 1623 4200 0900</div><div class="holder" data-v-f0859fd1>Гость</div></div></div></div>', 1)
|
|
6659
6659
|
])]);
|
|
6660
6660
|
}
|
|
@@ -6722,8 +6722,8 @@ var Br;
|
|
|
6722
6722
|
var N = D[H];
|
|
6723
6723
|
S && T <= h.getNumDataCodewords(k, N) * 8 && (m = N);
|
|
6724
6724
|
}
|
|
6725
|
-
for (var U = [],
|
|
6726
|
-
var z = K[
|
|
6725
|
+
for (var U = [], X = 0, K = p; X < K.length; X++) {
|
|
6726
|
+
var z = K[X];
|
|
6727
6727
|
o(z.mode.modeBits, 4, U), o(z.numChars, z.mode.numCharCountBits(k), U);
|
|
6728
6728
|
for (var L = 0, F = z.getData(); L < F.length; L++) {
|
|
6729
6729
|
var oe = F[L];
|
|
@@ -6735,11 +6735,11 @@ var Br;
|
|
|
6735
6735
|
u(U.length <= te), o(0, Math.min(4, te - U.length), U), o(0, (8 - U.length % 8) % 8, U), u(U.length % 8 == 0);
|
|
6736
6736
|
for (var re = 236; U.length < te; re ^= 253)
|
|
6737
6737
|
o(re, 8, U);
|
|
6738
|
-
for (var
|
|
6739
|
-
|
|
6740
|
-
return U.forEach(function(
|
|
6741
|
-
return
|
|
6742
|
-
}), new h(k, m,
|
|
6738
|
+
for (var q = []; q.length * 8 < U.length; )
|
|
6739
|
+
q.push(0);
|
|
6740
|
+
return U.forEach(function(W, I) {
|
|
6741
|
+
return q[I >>> 3] |= W << 7 - (I & 7);
|
|
6742
|
+
}), new h(k, m, q, C);
|
|
6743
6743
|
}, h.prototype.getModule = function(p, m) {
|
|
6744
6744
|
return 0 <= p && p < this.size && 0 <= m && m < this.size && this.modules[m][p];
|
|
6745
6745
|
}, h.prototype.getModules = function() {
|
|
@@ -6800,13 +6800,13 @@ var Br;
|
|
|
6800
6800
|
var U = h.reedSolomonComputeRemainder(N, B);
|
|
6801
6801
|
H < k && N.push(0), P.push(N.concat(U));
|
|
6802
6802
|
}
|
|
6803
|
-
for (var
|
|
6803
|
+
for (var X = [], K = function(z) {
|
|
6804
6804
|
P.forEach(function(L, F) {
|
|
6805
|
-
(z != T - C || F >= k) &&
|
|
6805
|
+
(z != T - C || F >= k) && X.push(L[z]);
|
|
6806
6806
|
});
|
|
6807
6807
|
}, H = 0; H < P[0].length; H++)
|
|
6808
6808
|
K(H);
|
|
6809
|
-
return u(
|
|
6809
|
+
return u(X.length == S), X;
|
|
6810
6810
|
}, h.prototype.drawCodewords = function(p) {
|
|
6811
6811
|
if (p.length != Math.floor(h.getNumRawDataModules(this.version) / 8))
|
|
6812
6812
|
throw new RangeError("Invalid argument");
|
|
@@ -6873,8 +6873,8 @@ var Br;
|
|
|
6873
6873
|
}
|
|
6874
6874
|
for (var P = 0, B = 0, H = this.modules; B < H.length; B++) {
|
|
6875
6875
|
var D = H[B];
|
|
6876
|
-
P = D.reduce(function(
|
|
6877
|
-
return
|
|
6876
|
+
P = D.reduce(function(X, K) {
|
|
6877
|
+
return X + (K ? 1 : 0);
|
|
6878
6878
|
}, P);
|
|
6879
6879
|
}
|
|
6880
6880
|
var N = this.size * this.size, U = Math.ceil(Math.abs(P * 20 - N * 10) / N) - 1;
|
|
@@ -7266,7 +7266,7 @@ var So = {
|
|
|
7266
7266
|
if (D) {
|
|
7267
7267
|
var N = D.getContext("2d");
|
|
7268
7268
|
if (N) {
|
|
7269
|
-
var U = Qr.QrCode.encodeText(h, Eo[H]).getModules(),
|
|
7269
|
+
var U = Qr.QrCode.encodeText(h, Eo[H]).getModules(), X = U.length + B * 2, K = s.value, z = { x: 0, y: 0, width: 0, height: 0 }, L = i.imageSettings.src && K != null && K.naturalWidth !== 0 && K.naturalHeight !== 0;
|
|
7270
7270
|
if (L) {
|
|
7271
7271
|
var F = Bl(U, i.size, B, i.imageSettings);
|
|
7272
7272
|
z = {
|
|
@@ -7276,15 +7276,15 @@ var So = {
|
|
|
7276
7276
|
height: F.h
|
|
7277
7277
|
}, F.excavation && (U = Pl(U, F.excavation));
|
|
7278
7278
|
}
|
|
7279
|
-
var oe = window.devicePixelRatio || 1, te = m /
|
|
7280
|
-
if (D.height = D.width = m * oe, N.scale(te, te), N.fillStyle = w, N.fillRect(0, 0,
|
|
7279
|
+
var oe = window.devicePixelRatio || 1, te = m / X * oe;
|
|
7280
|
+
if (D.height = D.width = m * oe, N.scale(te, te), N.fillStyle = w, N.fillRect(0, 0, X, X), S) {
|
|
7281
7281
|
var re = void 0;
|
|
7282
|
-
k === "linear" ? re = N.createLinearGradient(0, 0,
|
|
7282
|
+
k === "linear" ? re = N.createLinearGradient(0, 0, X, X) : re = N.createRadialGradient(X / 2, X / 2, 0, X / 2, X / 2, X / 2), re.addColorStop(0, T), re.addColorStop(1, P), N.fillStyle = re;
|
|
7283
7283
|
} else
|
|
7284
7284
|
N.fillStyle = C;
|
|
7285
|
-
Ch ? N.fill(new Path2D(Dl(U, B))) : U.forEach(function(
|
|
7286
|
-
|
|
7287
|
-
I && N.fillRect($ + B,
|
|
7285
|
+
Ch ? N.fill(new Path2D(Dl(U, B))) : U.forEach(function(q, W) {
|
|
7286
|
+
q.forEach(function(I, $) {
|
|
7287
|
+
I && N.fillRect($ + B, W + B, 1, 1);
|
|
7288
7288
|
});
|
|
7289
7289
|
}), L && N.drawImage(K, z.x, z.y, z.width, z.height);
|
|
7290
7290
|
}
|
|
@@ -7329,7 +7329,7 @@ const Ih = {}, Sh = {
|
|
|
7329
7329
|
"aria-hidden": "true"
|
|
7330
7330
|
};
|
|
7331
7331
|
function Th(i, a) {
|
|
7332
|
-
return
|
|
7332
|
+
return V(), Q("svg", Sh, [...a[0] || (a[0] = [
|
|
7333
7333
|
E("path", { d: "M7 4h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z" }, null, -1),
|
|
7334
7334
|
E("path", { d: "M9 7h6" }, null, -1),
|
|
7335
7335
|
E("path", { d: "M10 18h4" }, null, -1)
|
|
@@ -7340,7 +7340,7 @@ const Rh = /* @__PURE__ */ Qe(Ih, [["render", Th]]), Nh = {}, Oh = {
|
|
|
7340
7340
|
"aria-hidden": "true"
|
|
7341
7341
|
};
|
|
7342
7342
|
function Mh(i, a) {
|
|
7343
|
-
return
|
|
7343
|
+
return V(), Q("svg", Oh, [...a[0] || (a[0] = [
|
|
7344
7344
|
lo('<path d="M4 8V6a2 2 0 0 1 2-2h2"></path><path d="M20 8V6a2 2 0 0 0-2-2h-2"></path><path d="M4 16v2a2 2 0 0 0 2 2h2"></path><path d="M20 16v2a2 2 0 0 1-2 2h-2"></path><path d="M7 12h10"></path>', 5)
|
|
7345
7345
|
])]);
|
|
7346
7346
|
}
|
|
@@ -7383,8 +7383,8 @@ const kh = /* @__PURE__ */ Qe(Nh, [["render", Mh]]), Dh = "data:image/svg+xml,%3
|
|
|
7383
7383
|
clearInterval(m);
|
|
7384
7384
|
});
|
|
7385
7385
|
const { mediaUrl: T } = ar(() => a.itemThemes.kiosk_preloader ? "preloader" : null);
|
|
7386
|
-
return (P, B) => (
|
|
7387
|
-
(
|
|
7386
|
+
return (P, B) => (V(), Q("div", Bh, [
|
|
7387
|
+
(V(), Q("video", {
|
|
7388
7388
|
loop: "",
|
|
7389
7389
|
autoplay: "",
|
|
7390
7390
|
muted: "",
|
|
@@ -7491,19 +7491,19 @@ const kh = /* @__PURE__ */ Qe(Nh, [["render", Mh]]), Dh = "data:image/svg+xml,%3
|
|
|
7491
7491
|
},
|
|
7492
7492
|
setup(i) {
|
|
7493
7493
|
const a = Kt(), o = Vt(), { orderNumber: s, orderCompleted_lib: u } = He(a), { mediaUrl: d } = ar(() => o.itemThemes.kiosk_preloader ? "preloader" : null);
|
|
7494
|
-
return (h, p) => (
|
|
7495
|
-
O(u) && O(u) === 1 ? (
|
|
7494
|
+
return (h, p) => (V(), Q(bt, null, [
|
|
7495
|
+
O(u) && O(u) === 1 ? (V(), Q("section", r2, [
|
|
7496
7496
|
pe(mh)
|
|
7497
|
-
])) : O(u) && O(u) === 2 ? (
|
|
7497
|
+
])) : O(u) && O(u) === 2 ? (V(), Q("section", i2, [
|
|
7498
7498
|
pe(vh)
|
|
7499
7499
|
])) : he("", !0),
|
|
7500
|
-
O(u) && O(u) === 3 ? (
|
|
7500
|
+
O(u) && O(u) === 3 ? (V(), Q("section", s2, [
|
|
7501
7501
|
pe(hh, {
|
|
7502
7502
|
orderNumber: O(s),
|
|
7503
7503
|
mediaUrl: O(d)
|
|
7504
7504
|
}, null, 8, ["orderNumber", "mediaUrl"])
|
|
7505
7505
|
])) : he("", !0),
|
|
7506
|
-
O(u) && O(u) === 4 ? (
|
|
7506
|
+
O(u) && O(u) === 4 ? (V(), Q("section", o2, [
|
|
7507
7507
|
pe(n2)
|
|
7508
7508
|
])) : he("", !0)
|
|
7509
7509
|
], 64));
|
|
@@ -7552,7 +7552,7 @@ const u2 = {}, d2 = {
|
|
|
7552
7552
|
fill: "none"
|
|
7553
7553
|
};
|
|
7554
7554
|
function f2(i, a) {
|
|
7555
|
-
return
|
|
7555
|
+
return V(), Q("svg", d2, [...a[0] || (a[0] = [
|
|
7556
7556
|
E("path", {
|
|
7557
7557
|
d: "M19 20H20M16 20H14V17M17 17H20V14H19M14 14H16M4 16.9997C4 16.0679 4 15.6019 4.15224 15.2344C4.35523 14.7443 4.74432 14.3552 5.23438 14.1522C5.60192 14 6.06786 14 6.99974 14C7.93163 14 8.39808 14 8.76562 14.1522C9.25568 14.3552 9.64467 14.7443 9.84766 15.2344C9.9999 15.6019 9.9999 16.0681 9.9999 17C9.9999 17.9319 9.9999 18.3978 9.84766 18.7654C9.64467 19.2554 9.25568 19.6447 8.76562 19.8477C8.39808 19.9999 7.93162 19.9999 6.99974 19.9999C6.06786 19.9999 5.60192 19.9999 5.23438 19.8477C4.74432 19.6447 4.35523 19.2557 4.15224 18.7656C4 18.3981 4 17.9316 4 16.9997ZM14 6.99974C14 6.06786 14 5.60192 14.1522 5.23438C14.3552 4.74432 14.7443 4.35523 15.2344 4.15224C15.6019 4 16.0679 4 16.9997 4C17.9316 4 18.3981 4 18.7656 4.15224C19.2557 4.35523 19.6447 4.74432 19.8477 5.23438C19.9999 5.60192 19.9999 6.06812 19.9999 7C19.9999 7.93188 19.9999 8.39783 19.8477 8.76537C19.6447 9.25542 19.2557 9.64467 18.7656 9.84766C18.3981 9.9999 17.9316 9.9999 16.9997 9.9999C16.0679 9.9999 15.6019 9.9999 15.2344 9.84766C14.7443 9.64467 14.3552 9.25568 14.1522 8.76562C14 8.39808 14 7.93163 14 6.99974ZM4 6.99974C4 6.06786 4 5.60192 4.15224 5.23438C4.35523 4.74432 4.74432 4.35523 5.23438 4.15224C5.60192 4 6.06786 4 6.99974 4C7.93163 4 8.39808 4 8.76562 4.15224C9.25568 4.35523 9.64467 4.74432 9.84766 5.23438C9.9999 5.60192 9.9999 6.06812 9.9999 7C9.9999 7.93188 9.9999 8.39783 9.84766 8.76537C9.64467 9.25542 9.25568 9.64467 8.76562 9.84766C8.39808 9.9999 7.93162 9.9999 6.99974 9.9999C6.06786 9.9999 5.60192 9.9999 5.23438 9.84766C4.74432 9.64467 4.35523 9.25568 4.15224 8.76562C4 8.39808 4 7.93163 4 6.99974Z",
|
|
7558
7558
|
stroke: "white",
|
|
@@ -7575,9 +7575,9 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7575
7575
|
const o = a, { visible: s, context: u, close: d } = Ll("cart-delete-confirm"), h = () => {
|
|
7576
7576
|
o("confirm", u.value.idSystem), d();
|
|
7577
7577
|
};
|
|
7578
|
-
return (p, m) => (
|
|
7578
|
+
return (p, m) => (V(), Mt(ti, { name: "fade" }, {
|
|
7579
7579
|
default: Wt(() => [
|
|
7580
|
-
O(s) ? (
|
|
7580
|
+
O(s) ? (V(), Q("div", {
|
|
7581
7581
|
key: 0,
|
|
7582
7582
|
class: "cart_deletion_modal_overlay",
|
|
7583
7583
|
onClick: m[1] || (m[1] = ln(
|
|
@@ -7612,9 +7612,9 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7612
7612
|
const o = a, { visible: s, context: u, close: d } = Ll("cart-extend-confirm"), h = () => {
|
|
7613
7613
|
o("confirm"), d();
|
|
7614
7614
|
};
|
|
7615
|
-
return (p, m) => (
|
|
7615
|
+
return (p, m) => (V(), Mt(ti, { name: "fade" }, {
|
|
7616
7616
|
default: Wt(() => [
|
|
7617
|
-
O(s) ? (
|
|
7617
|
+
O(s) ? (V(), Q("div", {
|
|
7618
7618
|
key: 0,
|
|
7619
7619
|
class: "cart_extend_modal_overlay",
|
|
7620
7620
|
onClick: m[1] || (m[1] = ln(
|
|
@@ -7682,7 +7682,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7682
7682
|
});
|
|
7683
7683
|
return xt(m, d, { immediate: !0 }), (C, S) => {
|
|
7684
7684
|
var k, T, P, B, H;
|
|
7685
|
-
return
|
|
7685
|
+
return V(), Q("div", y2, [
|
|
7686
7686
|
E("img", {
|
|
7687
7687
|
src: O(p) || "",
|
|
7688
7688
|
class: "order_box_image"
|
|
@@ -7695,21 +7695,21 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7695
7695
|
E("p", T2, ye((T = o.cardItem) == null ? void 0 : T.amount), 1),
|
|
7696
7696
|
S[1] || (S[1] = E("button", { disabled: "" }, "+", -1))
|
|
7697
7697
|
]),
|
|
7698
|
-
w.value ? (
|
|
7698
|
+
w.value ? (V(), Q("div", R2, [
|
|
7699
7699
|
E("span", {
|
|
7700
7700
|
"data-state": (P = i.cardItem) == null ? void 0 : P.cooking_state
|
|
7701
7701
|
}, ye(w.value), 9, N2)
|
|
7702
7702
|
])) : he("", !0)
|
|
7703
7703
|
]),
|
|
7704
7704
|
E("div", O2, [
|
|
7705
|
-
(B = o.cardItem) != null && B.new_price ? (
|
|
7705
|
+
(B = o.cardItem) != null && B.new_price ? (V(), Q("p", {
|
|
7706
7706
|
key: 0,
|
|
7707
|
-
class:
|
|
7707
|
+
class: it({ discount_new_price: (H = o.cardItem) == null ? void 0 : H.new_price })
|
|
7708
7708
|
}, ye((o.cardItem.new_price * o.cardItem.amount).toFixed(2) + "₽"), 3)) : he("", !0),
|
|
7709
7709
|
E("p", null, ye(O(u).toFixed(2) + "₽"), 1)
|
|
7710
7710
|
])
|
|
7711
7711
|
]),
|
|
7712
|
-
!s.value && h.value.length > 0 ? (
|
|
7712
|
+
!s.value && h.value.length > 0 ? (V(), Q("div", {
|
|
7713
7713
|
key: 0,
|
|
7714
7714
|
class: "cart_modifier_toggle",
|
|
7715
7715
|
onClick: ln(x, ["stop"])
|
|
@@ -7717,10 +7717,10 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7717
7717
|
E("p", { class: "cart_info_more" }, "Посмотреть модификаторы", -1),
|
|
7718
7718
|
E("p", { class: "cart_arrow" }, null, -1)
|
|
7719
7719
|
])])) : he("", !0),
|
|
7720
|
-
s.value ? (
|
|
7721
|
-
(
|
|
7720
|
+
s.value ? (V(), Q("div", M2, [
|
|
7721
|
+
(V(!0), Q(bt, null, rn(h.value, (D) => {
|
|
7722
7722
|
var N;
|
|
7723
|
-
return
|
|
7723
|
+
return V(), Q("div", {
|
|
7724
7724
|
class: "cart_modifier_item",
|
|
7725
7725
|
key: D.id
|
|
7726
7726
|
}, [
|
|
@@ -7731,9 +7731,9 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7731
7731
|
E("div", D2, [
|
|
7732
7732
|
E("p", B2, ye(`x${D.amount}`), 1),
|
|
7733
7733
|
E("div", P2, [
|
|
7734
|
-
D != null && D.new_price ? (
|
|
7734
|
+
D != null && D.new_price ? (V(), Q("p", {
|
|
7735
7735
|
key: 0,
|
|
7736
|
-
class:
|
|
7736
|
+
class: it({ discount_new_price: (N = D == null ? void 0 : D.new_price) == null ? void 0 : N.toFixed(2) })
|
|
7737
7737
|
}, ye((D.new_price * D.amount).toFixed(2) + "₽"), 3)) : he("", !0),
|
|
7738
7738
|
E("p", null, ye((D.total_new_price || D.price * D.amount).toFixed(2) + "₽"), 1)
|
|
7739
7739
|
])
|
|
@@ -7810,18 +7810,18 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7810
7810
|
orderNumber: D,
|
|
7811
7811
|
extraDiscount: N,
|
|
7812
7812
|
is_notification_lib: U,
|
|
7813
|
-
isCreateButtonVisible:
|
|
7813
|
+
isCreateButtonVisible: X,
|
|
7814
7814
|
is_paymentCart: K,
|
|
7815
7815
|
providerTypes: z,
|
|
7816
7816
|
notificationData_lib: L,
|
|
7817
7817
|
selectedProvider: F,
|
|
7818
7818
|
configPayment: oe
|
|
7819
|
-
} = He(u), te = Fn(), re = or(),
|
|
7819
|
+
} = He(u), te = Fn(), re = or(), q = jo("stickerLoyality"), W = ce(!1), I = ce(!1), $ = ce(!1), Z = jo("commentEl"), Y = ce(""), ee = ce(!1), le = ce(!1), me = ce(!1), ge = ce(0), Ee = ce(0), Ce = ce(!0), ze = ce(), Ae = we(() => m.configPage.qr_menu ? "YOOKASSA_BASE" : z.value[0].front_type), Rt = we(() => m.configPage.qr_menu ? "YOOKASSA" : z.value[0].type), Re = we(
|
|
7820
7820
|
() => {
|
|
7821
7821
|
var be, ue;
|
|
7822
7822
|
return m.configPage.kiosk_menu && ((be = S.value) == null ? void 0 : be.loyalty) === "IIKO" && (S.value.has_loyalty_default_user || T.value) || m.configPage.qr_menu && ((ue = S.value) == null ? void 0 : ue.loyalty) === "IIKO" && (T.value || P.value.qr_auth_required === !1);
|
|
7823
7823
|
}
|
|
7824
|
-
), ct = we(() => ["АВТОРИЗОВАТЬСЯ ДЛЯ ЗАКАЗА"].includes(m.textPaymentBtn.toUpperCase()) ? m.textPaymentBtn : h.isTableService && h.hasOrder ? "Дополнить заказ" :
|
|
7824
|
+
), ct = we(() => ["АВТОРИЗОВАТЬСЯ ДЛЯ ЗАКАЗА"].includes(m.textPaymentBtn.toUpperCase()) ? m.textPaymentBtn : h.isTableService && h.hasOrder ? "Дополнить заказ" : X.value ? "Создать заказ" : m.textPaymentBtn), { width: ft } = Lc(q, { width: 0, height: 0 }, { box: "border-box" }), je = we(() => {
|
|
7825
7825
|
var Je, Ne, Jt, Un;
|
|
7826
7826
|
const be = {
|
|
7827
7827
|
energy_amount: 0,
|
|
@@ -7845,7 +7845,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7845
7845
|
async (be) => {
|
|
7846
7846
|
var Ne;
|
|
7847
7847
|
const ue = new AbortController();
|
|
7848
|
-
if (be(() => ue.abort()), !
|
|
7848
|
+
if (be(() => ue.abort()), !W.value || !((Ne = T.value) != null && Ne.balance) || !w.value) return 0;
|
|
7849
7849
|
const Je = await a.maxPayByBonuses(
|
|
7850
7850
|
ze.value,
|
|
7851
7851
|
m.configPage.kiosk_menu,
|
|
@@ -7908,7 +7908,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7908
7908
|
p.open("cart-extend-confirm");
|
|
7909
7909
|
else
|
|
7910
7910
|
try {
|
|
7911
|
-
await a.confirmOrder(ze.value), u.deleteCart(), h.refresh(), te.push({ name: "order-ts" });
|
|
7911
|
+
B.value = !0, await a.confirmOrder(ze.value), u.deleteCart(), h.refresh(), te.push({ name: "order-ts" });
|
|
7912
7912
|
} catch (Ne) {
|
|
7913
7913
|
u.showNotification(((Je = (ue = Ne == null ? void 0 : Ne.response) == null ? void 0 : ue.data) == null ? void 0 : Je.user_friendly_message) || "Ошибка при создании заказа"), h.refresh(), B.value = !1, pt();
|
|
7914
7914
|
}
|
|
@@ -7938,29 +7938,29 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7938
7938
|
const _t = await a.calculateDiscount(be, m.configPage.kiosk_menu, !!m.configPage.userData || !!T.value, o.signal);
|
|
7939
7939
|
if (!k.value) return;
|
|
7940
7940
|
k.value.forEach((We) => {
|
|
7941
|
-
const cn = _t.items.find((
|
|
7942
|
-
if (cn && (We.group_modifiers.forEach((
|
|
7943
|
-
const Nt = cn.group_modifiers.find((Lt) => Lt.group ===
|
|
7944
|
-
Nt &&
|
|
7941
|
+
const cn = _t.items.find((st) => st.front_item_id === We.idSystem);
|
|
7942
|
+
if (cn && (We.group_modifiers.forEach((st) => {
|
|
7943
|
+
const Nt = cn.group_modifiers.find((Lt) => Lt.group === st.group);
|
|
7944
|
+
Nt && st.modifiers.forEach((Lt) => {
|
|
7945
7945
|
const It = Nt.modifiers.find(($e) => $e.id === Lt.id);
|
|
7946
7946
|
if (It && Number(Lt.price) !== Number(It == null ? void 0 : It.new_price)) {
|
|
7947
7947
|
const $e = (It.discounts || []).reduce((An, lr) => An += +lr.discount, 0);
|
|
7948
7948
|
ge.value += $e, Lt.new_price = Lt.price, Lt.price = Number(It == null ? void 0 : It.new_price), Lt.total_new_price = Number(It.total_new_price);
|
|
7949
7949
|
}
|
|
7950
7950
|
});
|
|
7951
|
-
}), We.modifiers.forEach((
|
|
7952
|
-
const Nt = cn.modifiers.find((Lt) => Lt.id ===
|
|
7953
|
-
if (Nt && Number(
|
|
7951
|
+
}), We.modifiers.forEach((st) => {
|
|
7952
|
+
const Nt = cn.modifiers.find((Lt) => Lt.id === st.id);
|
|
7953
|
+
if (Nt && Number(st.price) !== Number(Nt == null ? void 0 : Nt.new_price)) {
|
|
7954
7954
|
const Lt = (Nt.discounts || []).reduce((It, $e) => It += +$e.discount, 0);
|
|
7955
|
-
ge.value += Lt,
|
|
7955
|
+
ge.value += Lt, st.new_price = st.price, st.price = Number(Nt == null ? void 0 : Nt.new_price), st.total_new_price = Number(Nt.total_new_price);
|
|
7956
7956
|
}
|
|
7957
7957
|
}), We.price !== Number(cn.new_price))) {
|
|
7958
|
-
const
|
|
7959
|
-
ge.value = ge.value +
|
|
7958
|
+
const st = (cn.discounts || []).reduce((Nt, Lt) => Nt += +Lt.discount, 0);
|
|
7959
|
+
ge.value = ge.value + st, We.new_price = We.price, We.price = cn.new_price, We.discounts = cn.discounts, We.total_new_price = Number(cn.total_new_price);
|
|
7960
7960
|
}
|
|
7961
7961
|
}), k.value = [...k.value], ge.value !== 0 && (w.value = _t.total_cart_price);
|
|
7962
7962
|
} catch (_t) {
|
|
7963
|
-
if (I.value = !1, !
|
|
7963
|
+
if (I.value = !1, !rt.isCancel(_t))
|
|
7964
7964
|
throw u.showNotification(((Un = (Jt = _t == null ? void 0 : _t.response) == null ? void 0 : Jt.data) == null ? void 0 : Un.user_friendly_message) || "Скидки временно недоступны"), _t;
|
|
7965
7965
|
}
|
|
7966
7966
|
}, Qt = async () => {
|
|
@@ -7993,17 +7993,17 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
7993
7993
|
},
|
|
7994
7994
|
ue
|
|
7995
7995
|
);
|
|
7996
|
-
ze.value = (be = Je == null ? void 0 : Je.data) == null ? void 0 : be.id,
|
|
7996
|
+
ze.value = (be = Je == null ? void 0 : Je.data) == null ? void 0 : be.id, X.value = !1;
|
|
7997
7997
|
} catch (ue) {
|
|
7998
|
-
console.log("[cart](createOrder)", ue), !
|
|
7998
|
+
console.log("[cart](createOrder)", ue), !rt.isCancel(ue) && h.isTableService && h.refresh(), B.value = !1, pt();
|
|
7999
7999
|
}
|
|
8000
8000
|
}
|
|
8001
8001
|
}, Hr = () => {
|
|
8002
8002
|
var be;
|
|
8003
|
-
return m.configPage.qr_menu && ["АВТОРИЗОВАТЬСЯ ДЛЯ ЗАКАЗА"].includes(m.textPaymentBtn.toUpperCase()) && !T.value && P.value.qr_auth_required !== !1 ? te.push(`/${re.params.orgId}/register`) : h.isTableService && ((be = h.data) != null && be.available_extend) ? p.open("cart-extend-confirm") :
|
|
8003
|
+
return m.configPage.qr_menu && ["АВТОРИЗОВАТЬСЯ ДЛЯ ЗАКАЗА"].includes(m.textPaymentBtn.toUpperCase()) && !T.value && P.value.qr_auth_required !== !1 ? te.push(`/${re.params.orgId}/register`) : h.isTableService && ((be = h.data) != null && be.available_extend) ? p.open("cart-extend-confirm") : X.value ? Mi() : yn();
|
|
8004
8004
|
}, ws = () => {
|
|
8005
8005
|
var be;
|
|
8006
|
-
(be = T.value) != null && be.balance ? T.value.balance > 0 && (
|
|
8006
|
+
(be = T.value) != null && be.balance ? T.value.balance > 0 && (W.value = !W.value) : u.showNotification("У Вас пока нет бонусов");
|
|
8007
8007
|
};
|
|
8008
8008
|
bn(async () => {
|
|
8009
8009
|
s.loadCart(), H.value = null, w.value = null, N.value = 0, pt();
|
|
@@ -8027,17 +8027,17 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8027
8027
|
Dt.value === 0 && (o = null), o == null || o.abort(), B.value = !1;
|
|
8028
8028
|
});
|
|
8029
8029
|
const pt = () => {
|
|
8030
|
-
|
|
8030
|
+
X.value = !0, s.setBonus(0), k.value.splice(0, k.value.length, ...k.value.map(s.makeProductFullyReactive)), ge.value = 0, w.value = null, N.value = 0;
|
|
8031
8031
|
};
|
|
8032
8032
|
return xt([() => s.cartProducts_lib, ut, Dt, () => u.selectedOrderType], (be) => {
|
|
8033
8033
|
if (Ee.value > 0) {
|
|
8034
8034
|
Ee.value--;
|
|
8035
8035
|
return;
|
|
8036
8036
|
}
|
|
8037
|
-
be && !I.value && (
|
|
8037
|
+
be && !I.value && (W.value = !1, pt(), Ee.value = 1), I.value = !1;
|
|
8038
8038
|
}, { deep: !0 }), (be, ue) => {
|
|
8039
|
-
var Je, Ne, Jt, Un, _t, We, cn,
|
|
8040
|
-
return
|
|
8039
|
+
var Je, Ne, Jt, Un, _t, We, cn, st, Nt, Lt, It;
|
|
8040
|
+
return V(), Q(bt, null, [
|
|
8041
8041
|
E("div", F2, [
|
|
8042
8042
|
pe(_2, { onConfirm: Pt }),
|
|
8043
8043
|
pe(b2, { onConfirm: Qt }),
|
|
@@ -8051,30 +8051,30 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8051
8051
|
_: 1
|
|
8052
8052
|
}, 8, ["visible"]),
|
|
8053
8053
|
E("header", U2, [
|
|
8054
|
-
m.configPage.kiosk_menu ? (
|
|
8054
|
+
m.configPage.kiosk_menu ? (V(), Q("div", H2, [
|
|
8055
8055
|
E("div", z2, [
|
|
8056
8056
|
E("div", {
|
|
8057
|
-
class:
|
|
8057
|
+
class: it(["arrow_wrapper", { arrow_wrapper_kso: m.configPage.kiosk_menu }]),
|
|
8058
8058
|
onClick: Oe
|
|
8059
8059
|
}, [
|
|
8060
8060
|
pe(ri, { class: "cart_header_back_button" }),
|
|
8061
|
-
m.configPage.kiosk_menu ? (
|
|
8061
|
+
m.configPage.kiosk_menu ? (V(), Q("span", G2, "Назад")) : he("", !0)
|
|
8062
8062
|
], 2)
|
|
8063
8063
|
]),
|
|
8064
|
-
ht.value && ht.value.show ? (
|
|
8065
|
-
Xt.value ? he("", !0) : (
|
|
8064
|
+
ht.value && ht.value.show ? (V(), Q("div", W2, [
|
|
8065
|
+
Xt.value ? he("", !0) : (V(), Mt(Bn, {
|
|
8066
8066
|
key: 0,
|
|
8067
8067
|
style: Gt({ visibility: !le.value && O(k).length > 0 ? "visible" : "hidden" }),
|
|
8068
|
-
class:
|
|
8068
|
+
class: it({ button_kso_comment: i.configPage.kiosk_menu }),
|
|
8069
8069
|
textButtonDefault: Y.value.length > 0 ? "Редактировать" : ht.value && ht.value.fieldName || "",
|
|
8070
8070
|
onClick: () => le.value = !le.value,
|
|
8071
8071
|
id: "button_kso_comment"
|
|
8072
8072
|
}, null, 8, ["style", "class", "textButtonDefault", "onClick"]))
|
|
8073
8073
|
])) : he("", !0),
|
|
8074
8074
|
E("div", {
|
|
8075
|
-
class:
|
|
8075
|
+
class: it({ cart_header_wrapper: m.configPage.kiosk_menu })
|
|
8076
8076
|
}, [
|
|
8077
|
-
(O(P).kiosk_show_loyalty_card_button || O(P).kiosk_show_loyalty_phone_input_button) && !m.config_qr ? (
|
|
8077
|
+
(O(P).kiosk_show_loyalty_card_button || O(P).kiosk_show_loyalty_phone_input_button) && !m.config_qr ? (V(), Q("button", {
|
|
8078
8078
|
key: 0,
|
|
8079
8079
|
class: "buttonDefaultWrapper button_payment_cart button_payment_cart_loyal",
|
|
8080
8080
|
style: Gt({
|
|
@@ -8088,17 +8088,17 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8088
8088
|
class: "cart_loyal_program",
|
|
8089
8089
|
style: Gt({ marginRight: `${Math.ceil(O(ft) / 2)}px` })
|
|
8090
8090
|
}, ye(at.value), 5),
|
|
8091
|
-
(Jt = O(P).cart_loyalty_button) != null && Jt.cart_loyalty_button_sticker ? (
|
|
8091
|
+
(Jt = O(P).cart_loyalty_button) != null && Jt.cart_loyalty_button_sticker ? (V(), Q("div", {
|
|
8092
8092
|
key: 0,
|
|
8093
8093
|
ref_key: "stickerLoyality",
|
|
8094
|
-
ref:
|
|
8094
|
+
ref: q,
|
|
8095
8095
|
class: "cart_loyal_program_icon",
|
|
8096
8096
|
style: Gt({ "--sticker-mask": `url(${O(P).cart_loyalty_button.cart_loyalty_button_sticker})` })
|
|
8097
8097
|
}, [
|
|
8098
8098
|
E("img", {
|
|
8099
8099
|
src: O(P).cart_loyalty_button.cart_loyalty_button_sticker
|
|
8100
8100
|
}, null, 8, V2)
|
|
8101
|
-
], 4)) : (
|
|
8101
|
+
], 4)) : (V(), Mt(h2, {
|
|
8102
8102
|
key: 1,
|
|
8103
8103
|
class: "cart_loyal_qr"
|
|
8104
8104
|
}))
|
|
@@ -8106,9 +8106,9 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8106
8106
|
], 2)
|
|
8107
8107
|
])) : he("", !0),
|
|
8108
8108
|
E("div", {
|
|
8109
|
-
class:
|
|
8109
|
+
class: it([i.config_qr ? "cart_kbju_qr_wrapper" : "cart_kbju_kso_wrapper"])
|
|
8110
8110
|
}, [
|
|
8111
|
-
i.config_qr ? (
|
|
8111
|
+
i.config_qr ? (V(), Q("div", X2, [
|
|
8112
8112
|
E("div", {
|
|
8113
8113
|
class: "arrow_wrapper",
|
|
8114
8114
|
onClick: Oe
|
|
@@ -8116,7 +8116,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8116
8116
|
pe(ri, { class: "cart_header_back_button" })
|
|
8117
8117
|
])
|
|
8118
8118
|
])) : he("", !0),
|
|
8119
|
-
O(P).show_nutrition_in_cart ? (
|
|
8119
|
+
O(P).show_nutrition_in_cart ? (V(), Q("div", {
|
|
8120
8120
|
key: 1,
|
|
8121
8121
|
class: "cart_header",
|
|
8122
8122
|
style: Gt({ paddingTop: m.config_qr ? 0 : "10px", paddingRight: m.config_qr ? "10px" : 0 })
|
|
@@ -8163,17 +8163,17 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8163
8163
|
])
|
|
8164
8164
|
], 4)) : he("", !0)
|
|
8165
8165
|
], 2),
|
|
8166
|
-
i.configPage.kiosk_menu && O(u).orderTypes.length > 1 ? (
|
|
8166
|
+
i.configPage.kiosk_menu && O(u).orderTypes.length > 1 ? (V(), Q("div", Y2, [
|
|
8167
8167
|
E("ul", K2, [
|
|
8168
|
-
(
|
|
8168
|
+
(V(!0), Q(bt, null, rn(O(u).orderTypes, ($e) => {
|
|
8169
8169
|
var An, lr;
|
|
8170
|
-
return
|
|
8170
|
+
return V(), Q("li", {
|
|
8171
8171
|
key: $e.id,
|
|
8172
8172
|
class: "cart-tab",
|
|
8173
8173
|
"data-active": $e.id === ((An = O(u).selectedOrderType) == null ? void 0 : An.id),
|
|
8174
8174
|
onClick: (un) => O(u).selectedOrderType = $e
|
|
8175
8175
|
}, [
|
|
8176
|
-
$e.id === ((lr = O(u).selectedOrderType) == null ? void 0 : lr.id) ? (
|
|
8176
|
+
$e.id === ((lr = O(u).selectedOrderType) == null ? void 0 : lr.id) ? (V(), Mt(O(Ya).div, {
|
|
8177
8177
|
key: 0,
|
|
8178
8178
|
class: "cart-underline",
|
|
8179
8179
|
"layout-id": "cart-underline",
|
|
@@ -8185,7 +8185,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8185
8185
|
])
|
|
8186
8186
|
])) : he("", !0)
|
|
8187
8187
|
]),
|
|
8188
|
-
(Xt.value || le.value) && i.configPage.kiosk_menu && ((Un = O(k)) != null && Un.length) ? (
|
|
8188
|
+
(Xt.value || le.value) && i.configPage.kiosk_menu && ((Un = O(k)) != null && Un.length) ? (V(), Q("div", J2, [
|
|
8189
8189
|
E("div", eg, [
|
|
8190
8190
|
Yt(E("textarea", {
|
|
8191
8191
|
ref_key: "commentEl",
|
|
@@ -8201,14 +8201,14 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8201
8201
|
]),
|
|
8202
8202
|
E("p", ng, ye(Y.value.length + " / 50"), 1)
|
|
8203
8203
|
]),
|
|
8204
|
-
Xt.value ? he("", !0) : (
|
|
8204
|
+
Xt.value ? he("", !0) : (V(), Mt(Bn, {
|
|
8205
8205
|
key: 0,
|
|
8206
8206
|
textButtonDefault: "Сохранить",
|
|
8207
8207
|
onClick: gt,
|
|
8208
8208
|
class: "button_bonus_cart"
|
|
8209
8209
|
}))
|
|
8210
8210
|
])) : he("", !0),
|
|
8211
|
-
(Xt.value || me.value) && i.config_qr && ((_t = O(k)) != null && _t.length) && !(O(h).isTableService && O(h).hasOrder) ? (
|
|
8211
|
+
(Xt.value || me.value) && i.config_qr && ((_t = O(k)) != null && _t.length) && !(O(h).isTableService && O(h).hasOrder) ? (V(), Q("div", rg, [
|
|
8212
8212
|
E("div", ig, [
|
|
8213
8213
|
Yt(E("textarea", {
|
|
8214
8214
|
ref_key: "commentEl",
|
|
@@ -8224,42 +8224,42 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8224
8224
|
]),
|
|
8225
8225
|
E("p", og, ye(Y.value.length + " / 50"), 1)
|
|
8226
8226
|
]),
|
|
8227
|
-
Xt.value ? he("", !0) : (
|
|
8227
|
+
Xt.value ? he("", !0) : (V(), Mt(Bn, {
|
|
8228
8228
|
key: 0,
|
|
8229
8229
|
textButtonDefault: "Сохранить",
|
|
8230
8230
|
onClick: Ge,
|
|
8231
8231
|
class: "button_bonus_cart"
|
|
8232
8232
|
}))
|
|
8233
8233
|
])) : he("", !0),
|
|
8234
|
-
i.config_qr && ht.value && ht.value.show && !(O(h).isTableService && O(h).hasOrder) ? (
|
|
8235
|
-
!Xt.value && !me.value && O(k).length > 0 ? (
|
|
8234
|
+
i.config_qr && ht.value && ht.value.show && !(O(h).isTableService && O(h).hasOrder) ? (V(), Q("div", ag, [
|
|
8235
|
+
!Xt.value && !me.value && O(k).length > 0 ? (V(), Mt(Bn, {
|
|
8236
8236
|
key: 0,
|
|
8237
8237
|
textButtonDefault: Y.value.length > 0 ? "Редактировать" : ht.value.fieldName || "",
|
|
8238
8238
|
onClick: () => me.value = !me.value,
|
|
8239
8239
|
id: "button_comments"
|
|
8240
8240
|
}, null, 8, ["textButtonDefault", "onClick"])) : he("", !0)
|
|
8241
8241
|
])) : he("", !0),
|
|
8242
|
-
O(h).isTableService && ((We = O(h).data) != null && We.number.toString()) ? (
|
|
8242
|
+
O(h).isTableService && ((We = O(h).data) != null && We.number.toString()) ? (V(), Q("div", {
|
|
8243
8243
|
key: 3,
|
|
8244
8244
|
class: "table_order_table_wrapper",
|
|
8245
8245
|
onClick: ue[4] || (ue[4] = ($e) => O(h).order && O(te).push({ name: "order-ts" }))
|
|
8246
8246
|
}, [
|
|
8247
8247
|
E("p", lg, ye(`Стол № ${(cn = O(h).data) == null ? void 0 : cn.number}`), 1),
|
|
8248
|
-
(
|
|
8248
|
+
(st = O(h).order) != null && st.id ? (V(), Q("p", cg, ye(`Заказ ${O(h).order.plugin_order.number}`), 1)) : he("", !0)
|
|
8249
8249
|
])) : he("", !0),
|
|
8250
8250
|
E("div", ug, [
|
|
8251
|
-
O(h).hasOrder && ((Lt = (Nt = O(h).order) == null ? void 0 : Nt.items) != null && Lt.length) && Ce.value ? (
|
|
8251
|
+
O(h).hasOrder && ((Lt = (Nt = O(h).order) == null ? void 0 : Nt.items) != null && Lt.length) && Ce.value ? (V(!0), Q(bt, { key: 0 }, rn(O(h).order.items, ($e) => (V(), Mt(Fl, {
|
|
8252
8252
|
key: $e.idSystem,
|
|
8253
8253
|
cardItem: $e
|
|
8254
8254
|
}, null, 8, ["cardItem"]))), 128)) : he("", !0),
|
|
8255
|
-
(
|
|
8255
|
+
(V(!0), Q(bt, null, rn(O(k), ($e) => (V(), Mt(Sf, {
|
|
8256
8256
|
key: $e.idSystem,
|
|
8257
8257
|
cardItem: $e,
|
|
8258
8258
|
onDelete: (An) => Pt($e.idSystem)
|
|
8259
8259
|
}, null, 8, ["cardItem", "onDelete"]))), 128))
|
|
8260
8260
|
]),
|
|
8261
8261
|
E("div", dg, [
|
|
8262
|
-
|
|
8262
|
+
W.value && !O(X) ? (V(), Q("p", fg, [
|
|
8263
8263
|
ue[17] || (ue[17] = nt(" Списать ", -1)),
|
|
8264
8264
|
Yt(E("input", {
|
|
8265
8265
|
type: "number",
|
|
@@ -8282,8 +8282,8 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8282
8282
|
]),
|
|
8283
8283
|
ue[18] || (ue[18] = nt(" бонусов ", -1))
|
|
8284
8284
|
])) : he("", !0),
|
|
8285
|
-
|
|
8286
|
-
|
|
8285
|
+
W.value && !O(X) ? (V(), Q("p", gg, "У вас есть " + ye(O(T) ? O(T).balance : 0) + " B", 1)) : he("", !0),
|
|
8286
|
+
W.value && !O(X) ? Yt((V(), Q("input", {
|
|
8287
8287
|
key: 2,
|
|
8288
8288
|
type: "range",
|
|
8289
8289
|
class: "footer_range",
|
|
@@ -8300,7 +8300,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8300
8300
|
]
|
|
8301
8301
|
]) : he("", !0),
|
|
8302
8302
|
E("ul", mg, [
|
|
8303
|
-
|
|
8303
|
+
W.value && !O(X) ? (V(), Q("li", xg, [
|
|
8304
8304
|
ue[20] || (ue[20] = E("p", null, "Сумма заказа:", -1)),
|
|
8305
8305
|
E("p", null, [
|
|
8306
8306
|
pe(Et, {
|
|
@@ -8310,7 +8310,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8310
8310
|
ue[19] || (ue[19] = nt(" ₽", -1))
|
|
8311
8311
|
])
|
|
8312
8312
|
])) : he("", !0),
|
|
8313
|
-
|
|
8313
|
+
W.value && !O(X) ? (V(), Q("li", _g, [
|
|
8314
8314
|
ue[22] || (ue[22] = E("p", null, "Будет оплачено бонусами:", -1)),
|
|
8315
8315
|
E("p", null, [
|
|
8316
8316
|
pe(Et, {
|
|
@@ -8320,7 +8320,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8320
8320
|
ue[21] || (ue[21] = nt(" Б", -1))
|
|
8321
8321
|
])
|
|
8322
8322
|
])) : he("", !0),
|
|
8323
|
-
O(N) !== 0 ? (
|
|
8323
|
+
O(N) !== 0 ? (V(), Q("li", wg, [
|
|
8324
8324
|
E("p", vg, ye(O(N) > 0 ? "Надбавка" : "Скидка") + ": ", 1),
|
|
8325
8325
|
E("p", Cg, [
|
|
8326
8326
|
pe(Et, {
|
|
@@ -8329,7 +8329,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8329
8329
|
}, null, 8, ["price"]),
|
|
8330
8330
|
ue[23] || (ue[23] = nt(" ₽", -1))
|
|
8331
8331
|
])
|
|
8332
|
-
])) : ge.value !== 0 ? (
|
|
8332
|
+
])) : ge.value !== 0 ? (V(), Q("li", bg, [
|
|
8333
8333
|
E("p", yg, ye(ge.value > 0 ? "Надбавка" : "Скидка") + ": ", 1),
|
|
8334
8334
|
E("p", Ag, [
|
|
8335
8335
|
pe(Et, {
|
|
@@ -8339,7 +8339,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8339
8339
|
ue[24] || (ue[24] = nt(" ₽", -1))
|
|
8340
8340
|
])
|
|
8341
8341
|
])) : he("", !0),
|
|
8342
|
-
O(h).isTableService && O(h).order ? (
|
|
8342
|
+
O(h).isTableService && O(h).order ? (V(), Q("li", Eg, [
|
|
8343
8343
|
ue[26] || (ue[26] = E("p", null, "Сумма заказа:", -1)),
|
|
8344
8344
|
E("p", null, [
|
|
8345
8345
|
pe(Et, {
|
|
@@ -8349,7 +8349,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8349
8349
|
ue[25] || (ue[25] = nt(" ₽", -1))
|
|
8350
8350
|
])
|
|
8351
8351
|
])) : he("", !0),
|
|
8352
|
-
O(h).isTableService && O(h).order ? (
|
|
8352
|
+
O(h).isTableService && O(h).order ? (V(), Q("li", Ig, [
|
|
8353
8353
|
ue[28] || (ue[28] = E("p", null, "К счёту добавится:", -1)),
|
|
8354
8354
|
E("p", null, [
|
|
8355
8355
|
pe(Et, {
|
|
@@ -8361,13 +8361,13 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8361
8361
|
])) : he("", !0),
|
|
8362
8362
|
E("li", null, [
|
|
8363
8363
|
ue[31] || (ue[31] = E("p", { class: "accept_field" }, "Итого к оплате:", -1)),
|
|
8364
|
-
O(h).isTableService && O(h).order ? (
|
|
8364
|
+
O(h).isTableService && O(h).order ? (V(), Q("p", Sg, [
|
|
8365
8365
|
pe(Et, {
|
|
8366
8366
|
price: O(h).order.total_cost + O(w),
|
|
8367
8367
|
fixedFloat: 2
|
|
8368
8368
|
}, null, 8, ["price"]),
|
|
8369
8369
|
ue[29] || (ue[29] = nt(" ₽", -1))
|
|
8370
|
-
])) : (
|
|
8370
|
+
])) : (V(), Q("p", Tg, [
|
|
8371
8371
|
pe(Et, {
|
|
8372
8372
|
price: O(w) - O(C),
|
|
8373
8373
|
fixedFloat: 2
|
|
@@ -8376,7 +8376,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8376
8376
|
]))
|
|
8377
8377
|
])
|
|
8378
8378
|
]),
|
|
8379
|
-
yt.value && yt.value > O(x) && !O(h).hasOrder ? (
|
|
8379
|
+
yt.value && yt.value > O(x) && !O(h).hasOrder ? (V(), Q("div", Rg, [
|
|
8380
8380
|
ue[32] || (ue[32] = nt(" Минимальная сумма заказа ", -1)),
|
|
8381
8381
|
pe(Et, {
|
|
8382
8382
|
price: yt.value,
|
|
@@ -8390,7 +8390,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8390
8390
|
nt(" " + ye(O(S).currency_symbol), 1)
|
|
8391
8391
|
])) : he("", !0),
|
|
8392
8392
|
E("div", Ng, [
|
|
8393
|
-
O(T) && !O(
|
|
8393
|
+
O(T) && !O(X) && !O(h).isTableService ? (V(), Mt(Bn, {
|
|
8394
8394
|
key: 0,
|
|
8395
8395
|
textButtonDefault: O(P).bonuses_button_name || "Бонусы",
|
|
8396
8396
|
onClick: ws,
|
|
@@ -8405,7 +8405,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8405
8405
|
])
|
|
8406
8406
|
])
|
|
8407
8407
|
]),
|
|
8408
|
-
O(h).isTableService ? he("", !0) : (
|
|
8408
|
+
O(h).isTableService ? he("", !0) : (V(), Mt(l2, {
|
|
8409
8409
|
key: 0,
|
|
8410
8410
|
orderNumber: O(D),
|
|
8411
8411
|
pageNumber: 1
|
|
@@ -8444,7 +8444,7 @@ const h2 = /* @__PURE__ */ Qe(u2, [["render", f2]]), Ll = (i) => {
|
|
|
8444
8444
|
}
|
|
8445
8445
|
}), Og = {}, Mg = { viewBox: "0 0 24 24" };
|
|
8446
8446
|
function kg(i, a) {
|
|
8447
|
-
return
|
|
8447
|
+
return V(), Q("svg", Mg, [...a[0] || (a[0] = [
|
|
8448
8448
|
E("path", { d: "M18 6L6 18M6 6l12 12" }, null, -1)
|
|
8449
8449
|
])]);
|
|
8450
8450
|
}
|
|
@@ -8454,7 +8454,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8454
8454
|
const a = Kt(), o = Fn(), s = or(), u = () => {
|
|
8455
8455
|
a.notificationData_lib.textNotification = "", a.is_notification_lib = !1, o.replace(`/${s.params.orgId}/`);
|
|
8456
8456
|
};
|
|
8457
|
-
return (d, h) => (
|
|
8457
|
+
return (d, h) => (V(), Q("section", Bg, [
|
|
8458
8458
|
E("div", Pg, [
|
|
8459
8459
|
E("main", Lg, [
|
|
8460
8460
|
E("div", Fg, [
|
|
@@ -8538,15 +8538,15 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8538
8538
|
} finally {
|
|
8539
8539
|
w.value = !1;
|
|
8540
8540
|
}
|
|
8541
|
-
},
|
|
8541
|
+
}, X = (z) => {
|
|
8542
8542
|
(S.value ? ["a", "A", "+", "-", "."] : ["a", "A", "+", "-", ".", ","]).includes(z.key) && z.preventDefault();
|
|
8543
8543
|
}, K = () => {
|
|
8544
8544
|
let z = S.value ? +d.value.toFixed(2) : Math.floor(d.value) || 0;
|
|
8545
8545
|
z > H.value && (z = H.value), z !== d.value && a.setBonus(z);
|
|
8546
8546
|
};
|
|
8547
8547
|
return (z, L) => {
|
|
8548
|
-
var F, oe, te, re,
|
|
8549
|
-
return
|
|
8548
|
+
var F, oe, te, re, q, W, I, $;
|
|
8549
|
+
return V(), Q("div", zg, [
|
|
8550
8550
|
E("header", Gg, [
|
|
8551
8551
|
E("div", Wg, [
|
|
8552
8552
|
E("div", Vg, [
|
|
@@ -8557,7 +8557,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8557
8557
|
pe(ri, { class: "table_order_header_back_button" })
|
|
8558
8558
|
])
|
|
8559
8559
|
]),
|
|
8560
|
-
O(h).show_nutrition_in_cart ? (
|
|
8560
|
+
O(h).show_nutrition_in_cart ? (V(), Q("div", Xg, [
|
|
8561
8561
|
E("div", jg, [
|
|
8562
8562
|
E("p", null, [
|
|
8563
8563
|
pe(Et, {
|
|
@@ -8601,30 +8601,30 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8601
8601
|
])) : he("", !0)
|
|
8602
8602
|
])
|
|
8603
8603
|
]),
|
|
8604
|
-
(F = O(u).order) != null && F.id ? (
|
|
8604
|
+
(F = O(u).order) != null && F.id ? (V(), Q("div", Yg, [
|
|
8605
8605
|
E("p", Kg, ye(`Стол № ${(oe = O(u).data) == null ? void 0 : oe.number}`), 1),
|
|
8606
8606
|
E("p", Qg, ye(`Заказ ${O(u).order.plugin_order.number}`), 1)
|
|
8607
8607
|
])) : he("", !0),
|
|
8608
8608
|
E("div", Jg, [
|
|
8609
|
-
(re = (te = O(u).order) == null ? void 0 : te.items) != null && re.length ? (
|
|
8609
|
+
(re = (te = O(u).order) == null ? void 0 : te.items) != null && re.length ? (V(!0), Q(bt, { key: 0 }, rn(O(u).order.items, (Z) => (V(), Mt(Fl, {
|
|
8610
8610
|
key: Z.idSystem,
|
|
8611
8611
|
cardItem: Z
|
|
8612
8612
|
}, null, 8, ["cardItem"]))), 128)) : he("", !0)
|
|
8613
8613
|
]),
|
|
8614
8614
|
E("div", ep, [
|
|
8615
|
-
C.value ? (
|
|
8615
|
+
C.value ? (V(), Q("p", tp, [
|
|
8616
8616
|
L[10] || (L[10] = nt(" Списать ", -1)),
|
|
8617
8617
|
Yt(E("input", {
|
|
8618
8618
|
type: "number",
|
|
8619
8619
|
placeholder: "0",
|
|
8620
8620
|
style: Gt({ maxWidth: `${O(d).toString().length || 1}em` }),
|
|
8621
|
-
disabled: O(a).profile === null || ((
|
|
8621
|
+
disabled: O(a).profile === null || ((q = O(a).profile) == null ? void 0 : q.balance) === 0,
|
|
8622
8622
|
"onUpdate:modelValue": L[0] || (L[0] = (Z) => Kr(d) ? d.value = Z : null),
|
|
8623
8623
|
onInput: K,
|
|
8624
8624
|
min: "0",
|
|
8625
8625
|
max: O(H),
|
|
8626
8626
|
step: ".01",
|
|
8627
|
-
onKeypress:
|
|
8627
|
+
onKeypress: X
|
|
8628
8628
|
}, null, 44, np), [
|
|
8629
8629
|
[
|
|
8630
8630
|
Sr,
|
|
@@ -8635,8 +8635,8 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8635
8635
|
]),
|
|
8636
8636
|
L[11] || (L[11] = nt(" бонусов ", -1))
|
|
8637
8637
|
])) : he("", !0),
|
|
8638
|
-
C.value ? (
|
|
8639
|
-
C.value ? Yt((
|
|
8638
|
+
C.value ? (V(), Q("p", rp, " У вас есть " + ye(O(a).profile.balance ?? 0) + " B ", 1)) : he("", !0),
|
|
8639
|
+
C.value ? Yt((V(), Q("input", {
|
|
8640
8640
|
key: 2,
|
|
8641
8641
|
type: "range",
|
|
8642
8642
|
class: "footer_range",
|
|
@@ -8653,17 +8653,17 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8653
8653
|
]
|
|
8654
8654
|
]) : he("", !0),
|
|
8655
8655
|
E("ul", sp, [
|
|
8656
|
-
O(u).order && O(u).order.total_cost - O(u).order.remaining_amount > 0 ? (
|
|
8656
|
+
O(u).order && O(u).order.total_cost - O(u).order.remaining_amount > 0 ? (V(), Q("li", op, [
|
|
8657
8657
|
L[13] || (L[13] = E("p", null, "Сумма заказа:", -1)),
|
|
8658
8658
|
E("p", null, [
|
|
8659
8659
|
pe(Et, {
|
|
8660
|
-
price: (
|
|
8660
|
+
price: (W = O(u).order) == null ? void 0 : W.total_cost,
|
|
8661
8661
|
fixedFloat: 2
|
|
8662
8662
|
}, null, 8, ["price"]),
|
|
8663
8663
|
L[12] || (L[12] = nt(" ₽ ", -1))
|
|
8664
8664
|
])
|
|
8665
8665
|
])) : he("", !0),
|
|
8666
|
-
O(u).order && O(u).order.total_cost - O(u).order.remaining_amount > 0 ? (
|
|
8666
|
+
O(u).order && O(u).order.total_cost - O(u).order.remaining_amount > 0 ? (V(), Q("li", ap, [
|
|
8667
8667
|
L[15] || (L[15] = E("p", null, "Оплачено:", -1)),
|
|
8668
8668
|
E("p", null, [
|
|
8669
8669
|
pe(Et, {
|
|
@@ -8673,7 +8673,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8673
8673
|
L[14] || (L[14] = nt(" ₽ ", -1))
|
|
8674
8674
|
])
|
|
8675
8675
|
])) : he("", !0),
|
|
8676
|
-
C.value ? (
|
|
8676
|
+
C.value ? (V(), Q("li", lp, [
|
|
8677
8677
|
L[17] || (L[17] = E("p", null, "Будет оплачено бонусами:", -1)),
|
|
8678
8678
|
E("p", null, [
|
|
8679
8679
|
pe(Et, {
|
|
@@ -8683,7 +8683,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8683
8683
|
L[16] || (L[16] = nt(" Б ", -1))
|
|
8684
8684
|
])
|
|
8685
8685
|
])) : he("", !0),
|
|
8686
|
-
(I = O(u).order) != null && I.remaining_amount ? (
|
|
8686
|
+
(I = O(u).order) != null && I.remaining_amount ? (V(), Q("li", cp, [
|
|
8687
8687
|
L[19] || (L[19] = E("p", { class: "accept_field" }, "Итого к оплате:", -1)),
|
|
8688
8688
|
E("p", up, [
|
|
8689
8689
|
pe(Et, {
|
|
@@ -8694,7 +8694,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8694
8694
|
])
|
|
8695
8695
|
])) : he("", !0)
|
|
8696
8696
|
]),
|
|
8697
|
-
($ = O(u).order) != null && $.remaining_amount && O(s).itemThemes.qr_show_pay_button_ts !== !1 ? (
|
|
8697
|
+
($ = O(u).order) != null && $.remaining_amount && O(s).itemThemes.qr_show_pay_button_ts !== !1 ? (V(), Q("div", dp, [
|
|
8698
8698
|
pe(Bn, {
|
|
8699
8699
|
textButtonDefault: k.value ? "Запросить счёт" : "Оплатить заказ",
|
|
8700
8700
|
onClick: k.value ? D : U,
|
|
@@ -8715,7 +8715,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8715
8715
|
}
|
|
8716
8716
|
},
|
|
8717
8717
|
setup(i) {
|
|
8718
|
-
return (a, o) => (
|
|
8718
|
+
return (a, o) => (V(), Q("div", hp, [
|
|
8719
8719
|
E("div", {
|
|
8720
8720
|
class: "loader",
|
|
8721
8721
|
style: Gt({ width: i.size })
|
|
@@ -8736,7 +8736,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8736
8736
|
a.value = !0;
|
|
8737
8737
|
}, 0);
|
|
8738
8738
|
}
|
|
8739
|
-
), (o, s) => (
|
|
8739
|
+
), (o, s) => (V(), Q("div", {
|
|
8740
8740
|
class: "opacity-animation",
|
|
8741
8741
|
key: i.id
|
|
8742
8742
|
}, [
|
|
@@ -8815,37 +8815,37 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8815
8815
|
}, w = we(() => p.activeTags.every((S) => p.data.tags.includes(S))), { mediaUrl: C } = ar(() => p.data.id + "_image", () => p.data.image_link);
|
|
8816
8816
|
return (S, k) => {
|
|
8817
8817
|
var T;
|
|
8818
|
-
return ((T = p.activeTags) == null ? void 0 : T.length) === 0 || w.value || p.is_group ? (
|
|
8818
|
+
return ((T = p.activeTags) == null ? void 0 : T.length) === 0 || w.value || p.is_group ? (V(), Q("div", xp, [
|
|
8819
8819
|
pe(mp, {
|
|
8820
8820
|
id: p.data.id
|
|
8821
8821
|
}, {
|
|
8822
8822
|
opacityLoader: Wt(() => [
|
|
8823
8823
|
E("div", _p, [
|
|
8824
|
-
i.is_group ? (
|
|
8824
|
+
i.is_group ? (V(), Q("div", wp)) : he("", !0),
|
|
8825
8825
|
E("div", {
|
|
8826
8826
|
onClick: k[0] || (k[0] = (P) => x(p.data)),
|
|
8827
|
-
class:
|
|
8827
|
+
class: it(["card__main", { card__main_folder: i.is_group }])
|
|
8828
8828
|
}, [
|
|
8829
|
-
i.isLoading ? (
|
|
8829
|
+
i.isLoading ? (V(), Q("div", vp, [
|
|
8830
8830
|
pe(gp)
|
|
8831
|
-
])) : (
|
|
8831
|
+
])) : (V(), Q("div", {
|
|
8832
8832
|
key: 1,
|
|
8833
|
-
class:
|
|
8833
|
+
class: it(["card__main_content", { card_main_desktop_qr: O(h) }])
|
|
8834
8834
|
}, [
|
|
8835
8835
|
E("img", {
|
|
8836
8836
|
src: O(C) || "",
|
|
8837
|
-
class:
|
|
8837
|
+
class: it(["img", { card_blur_image: p.data.adult && !O(u) }]),
|
|
8838
8838
|
loading: "lazy",
|
|
8839
8839
|
alt: i.data.name
|
|
8840
8840
|
}, null, 10, Cp),
|
|
8841
8841
|
E("div", bp, [
|
|
8842
8842
|
E("p", yp, ye(i.data.name), 1),
|
|
8843
|
-
i.is_group ? he("", !0) : (
|
|
8843
|
+
i.is_group ? he("", !0) : (V(), Q("p", Ap, ye(O(Ii)(i.data)) + " ₽", 1))
|
|
8844
8844
|
])
|
|
8845
8845
|
], 2))
|
|
8846
8846
|
], 2),
|
|
8847
|
-
O(h) ? he("", !0) : (
|
|
8848
|
-
i.is_group ? he("", !0) : (
|
|
8847
|
+
O(h) ? he("", !0) : (V(), Q("div", Ep, [
|
|
8848
|
+
i.is_group ? he("", !0) : (V(), Q("div", Ip, [
|
|
8849
8849
|
E("div", {
|
|
8850
8850
|
onClick: k[1] || (k[1] = (P) => m(i.data, p.data)),
|
|
8851
8851
|
class: "add_button"
|
|
@@ -8870,7 +8870,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8870
8870
|
},
|
|
8871
8871
|
setup(i) {
|
|
8872
8872
|
const { shouldUseDragScroll: a } = wr(), o = ce(null);
|
|
8873
|
-
return (s, u) => i.menuGroup.length ? Yt((
|
|
8873
|
+
return (s, u) => i.menuGroup.length ? Yt((V(), Q("ul", {
|
|
8874
8874
|
key: 0,
|
|
8875
8875
|
class: "main__menu",
|
|
8876
8876
|
ref_key: "scrollGroup",
|
|
@@ -8885,7 +8885,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8885
8885
|
clearContainer: !0
|
|
8886
8886
|
}, {
|
|
8887
8887
|
default: Wt(({ handleTargetClick: d }) => [
|
|
8888
|
-
(
|
|
8888
|
+
(V(!0), Q(bt, null, rn(i.menuGroup, (h, p) => (V(), Q("li", {
|
|
8889
8889
|
key: h.id,
|
|
8890
8890
|
id: "scrolling" + h.id,
|
|
8891
8891
|
onClick: (m) => {
|
|
@@ -8920,7 +8920,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8920
8920
|
}
|
|
8921
8921
|
return [];
|
|
8922
8922
|
});
|
|
8923
|
-
return (d, h) => i.menuTags.length > 0 ? Yt((
|
|
8923
|
+
return (d, h) => i.menuTags.length > 0 ? Yt((V(), Q("ul", {
|
|
8924
8924
|
key: 0,
|
|
8925
8925
|
class: "main__filters",
|
|
8926
8926
|
ref_key: "scrollTagContainer",
|
|
@@ -8935,13 +8935,13 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8935
8935
|
clearContainer: !1
|
|
8936
8936
|
}, {
|
|
8937
8937
|
default: Wt(({ handleTargetClick: p }) => [
|
|
8938
|
-
(
|
|
8938
|
+
(V(!0), Q(bt, null, rn(i.menuTags, (m, x) => (V(), Q("li", {
|
|
8939
8939
|
key: x,
|
|
8940
8940
|
id: `scrolling${m}`,
|
|
8941
8941
|
onClick: (w) => {
|
|
8942
8942
|
i.activeTakeTags && (i.groupIndex || i.groupIndex === 0) ? i.activeTakeTags(m, i.groupIndex) : i.activeTakeTagsSolo && i.activeTakeTagsSolo(m), p(w);
|
|
8943
8943
|
},
|
|
8944
|
-
class:
|
|
8944
|
+
class: it({ main__filter_active: (u.value ?? []).includes(m) })
|
|
8945
8945
|
}, ye(m), 11, Op))), 128))
|
|
8946
8946
|
]),
|
|
8947
8947
|
_: 1
|
|
@@ -8962,12 +8962,12 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8962
8962
|
var s, u;
|
|
8963
8963
|
return (s = a.group) != null && s.video_link ? `${a.group.id}_video` : (u = a.group) != null && u.image_link ? `${a.group.id}_image` : null;
|
|
8964
8964
|
});
|
|
8965
|
-
return (s, u) => i.group ? (
|
|
8965
|
+
return (s, u) => i.group ? (V(), Q("div", {
|
|
8966
8966
|
key: 0,
|
|
8967
|
-
class:
|
|
8967
|
+
class: it(["drum_item", { active: a.active }]),
|
|
8968
8968
|
"data-id": i.group.id
|
|
8969
8969
|
}, [
|
|
8970
|
-
i.group.video_link ? Yt((
|
|
8970
|
+
i.group.video_link ? Yt((V(), Q("video", {
|
|
8971
8971
|
key: O(o),
|
|
8972
8972
|
loop: "",
|
|
8973
8973
|
autoplay: "",
|
|
@@ -8981,7 +8981,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8981
8981
|
}, null, 8, Dp)
|
|
8982
8982
|
])), [
|
|
8983
8983
|
[O(_s)]
|
|
8984
|
-
]) : (
|
|
8984
|
+
]) : (V(), Q("img", {
|
|
8985
8985
|
key: 1,
|
|
8986
8986
|
class: "drum_img",
|
|
8987
8987
|
src: O(o) || ""
|
|
@@ -8998,7 +8998,7 @@ const Dg = /* @__PURE__ */ Qe(Og, [["render", kg]]), Bg = { class: "retry_screen
|
|
|
8998
8998
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
8999
8999
|
};
|
|
9000
9000
|
function Up(i, a) {
|
|
9001
|
-
return
|
|
9001
|
+
return V(), Q("svg", Fp, [...a[0] || (a[0] = [
|
|
9002
9002
|
E("desc", null, " Created with Pixso. ", -1),
|
|
9003
9003
|
E("defs", null, null, -1),
|
|
9004
9004
|
E("path", {
|
|
@@ -9022,7 +9022,7 @@ const Hp = /* @__PURE__ */ Qe(Lp, [["render", Up]]), zp = { class: "recommendati
|
|
|
9022
9022
|
};
|
|
9023
9023
|
return Ln(() => {
|
|
9024
9024
|
s.value = null;
|
|
9025
|
-
}), (d, h) => (
|
|
9025
|
+
}), (d, h) => (V(), Q("div", zp, [
|
|
9026
9026
|
E("div", Gp, [
|
|
9027
9027
|
h[0] || (h[0] = E("p", { class: "header_title" }, "Часто берут вместе", -1)),
|
|
9028
9028
|
E("div", {
|
|
@@ -9033,7 +9033,7 @@ const Hp = /* @__PURE__ */ Qe(Lp, [["render", Up]]), zp = { class: "recommendati
|
|
|
9033
9033
|
])
|
|
9034
9034
|
]),
|
|
9035
9035
|
E("div", Wp, [
|
|
9036
|
-
(
|
|
9036
|
+
(V(!0), Q(bt, null, rn(O(s), (p) => (V(), Mt(Tp, {
|
|
9037
9037
|
data: p,
|
|
9038
9038
|
key: p.id,
|
|
9039
9039
|
parent: p.id,
|
|
@@ -9069,7 +9069,7 @@ const Hp = /* @__PURE__ */ Qe(Lp, [["render", Up]]), zp = { class: "recommendati
|
|
|
9069
9069
|
const a = i, o = sn(), { isUpSale: s } = He(o), u = () => {
|
|
9070
9070
|
s.value = !1;
|
|
9071
9071
|
};
|
|
9072
|
-
return (d, h) => (
|
|
9072
|
+
return (d, h) => (V(), Q(bt, null, [
|
|
9073
9073
|
pe(Xp, {
|
|
9074
9074
|
data: a.visible
|
|
9075
9075
|
}, null, 8, ["data"]),
|
|
@@ -9835,11 +9835,11 @@ var Jr = function() {
|
|
|
9835
9835
|
return new U(this.size, this.bits.slice());
|
|
9836
9836
|
}
|
|
9837
9837
|
}
|
|
9838
|
-
var
|
|
9838
|
+
var X;
|
|
9839
9839
|
(function(b) {
|
|
9840
9840
|
b[b.OTHER = 0] = "OTHER", b[b.PURE_BARCODE = 1] = "PURE_BARCODE", b[b.POSSIBLE_FORMATS = 2] = "POSSIBLE_FORMATS", b[b.TRY_HARDER = 3] = "TRY_HARDER", b[b.CHARACTER_SET = 4] = "CHARACTER_SET", b[b.ALLOWED_LENGTHS = 5] = "ALLOWED_LENGTHS", b[b.ASSUME_CODE_39_CHECK_DIGIT = 6] = "ASSUME_CODE_39_CHECK_DIGIT", b[b.ASSUME_GS1 = 7] = "ASSUME_GS1", b[b.RETURN_CODABAR_START_END = 8] = "RETURN_CODABAR_START_END", b[b.NEED_RESULT_POINT_CALLBACK = 9] = "NEED_RESULT_POINT_CALLBACK", b[b.ALLOWED_EAN_EXTENSIONS = 10] = "ALLOWED_EAN_EXTENSIONS";
|
|
9841
|
-
})(
|
|
9842
|
-
var K =
|
|
9841
|
+
})(X || (X = {}));
|
|
9842
|
+
var K = X;
|
|
9843
9843
|
class z extends x {
|
|
9844
9844
|
static getFormatInstance() {
|
|
9845
9845
|
return new z();
|
|
@@ -10006,16 +10006,16 @@ var Jr = function() {
|
|
|
10006
10006
|
if (t != null && t.get(K.CHARACTER_SET) !== void 0)
|
|
10007
10007
|
return t.get(K.CHARACTER_SET).toString();
|
|
10008
10008
|
const n = e.length;
|
|
10009
|
-
let r = !0, l = !0, c = !0, f = 0, g = 0, _ = 0, v = 0, y = 0, A = 0, M = 0, G = 0,
|
|
10009
|
+
let r = !0, l = !0, c = !0, f = 0, g = 0, _ = 0, v = 0, y = 0, A = 0, M = 0, G = 0, j = 0, J = 0, ae = 0;
|
|
10010
10010
|
const xe = e.length > 3 && e[0] === /*(byte) */
|
|
10011
10011
|
239 && e[1] === /*(byte) */
|
|
10012
10012
|
187 && e[2] === /*(byte) */
|
|
10013
10013
|
191;
|
|
10014
10014
|
for (let _e = 0; _e < n && (r || l || c); _e++) {
|
|
10015
10015
|
const fe = e[_e] & 255;
|
|
10016
|
-
c && (f > 0 ? fe & 128 ? f-- : c = !1 : fe & 128 && (fe & 64 ? (f++, fe & 32 ? (f++, fe & 16 ? (f++, fe & 8 ? c = !1 : v++) : _++) : g++) : c = !1)), r && (fe > 127 && fe < 160 ? r = !1 : fe > 159 && (fe < 192 || fe === 215 || fe === 247) && ae++), l && (y > 0 ? fe < 64 || fe === 127 || fe > 252 ? l = !1 : y-- : fe === 128 || fe === 160 || fe > 239 ? l = !1 : fe > 160 && fe < 224 ? (A++, G = 0, M++, M >
|
|
10016
|
+
c && (f > 0 ? fe & 128 ? f-- : c = !1 : fe & 128 && (fe & 64 ? (f++, fe & 32 ? (f++, fe & 16 ? (f++, fe & 8 ? c = !1 : v++) : _++) : g++) : c = !1)), r && (fe > 127 && fe < 160 ? r = !1 : fe > 159 && (fe < 192 || fe === 215 || fe === 247) && ae++), l && (y > 0 ? fe < 64 || fe === 127 || fe > 252 ? l = !1 : y-- : fe === 128 || fe === 160 || fe > 239 ? l = !1 : fe > 160 && fe < 224 ? (A++, G = 0, M++, M > j && (j = M)) : fe > 127 ? (y++, M = 0, G++, G > J && (J = G)) : (M = 0, G = 0));
|
|
10017
10017
|
}
|
|
10018
|
-
return c && f > 0 && (c = !1), l && y > 0 && (l = !1), c && (xe || g + _ + v > 0) ? re.UTF8 : l && (re.ASSUME_SHIFT_JIS ||
|
|
10018
|
+
return c && f > 0 && (c = !1), l && y > 0 && (l = !1), c && (xe || g + _ + v > 0) ? re.UTF8 : l && (re.ASSUME_SHIFT_JIS || j >= 3 || J >= 3) ? re.SHIFT_JIS : r && l ? j === 2 && A === 2 || ae * 10 >= n ? re.SHIFT_JIS : re.ISO88591 : r ? re.ISO88591 : l ? re.SHIFT_JIS : c ? re.UTF8 : re.PLATFORM_DEFAULT_ENCODING;
|
|
10019
10019
|
}
|
|
10020
10020
|
/**
|
|
10021
10021
|
*
|
|
@@ -10057,9 +10057,9 @@ var Jr = function() {
|
|
|
10057
10057
|
break;
|
|
10058
10058
|
}
|
|
10059
10059
|
M = typeof M == "object" ? JSON.stringify(M) : (+M).toString(A);
|
|
10060
|
-
let G = parseInt(g),
|
|
10060
|
+
let G = parseInt(g), j = g && g[0] + "" == "0" ? "0" : " ";
|
|
10061
10061
|
for (; M.length < G; )
|
|
10062
|
-
M = f !== void 0 ? M +
|
|
10062
|
+
M = f !== void 0 ? M + j : j + M;
|
|
10063
10063
|
return M;
|
|
10064
10064
|
}
|
|
10065
10065
|
let l = /%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;
|
|
@@ -10085,7 +10085,7 @@ var Jr = function() {
|
|
|
10085
10085
|
}
|
|
10086
10086
|
}
|
|
10087
10087
|
re.SHIFT_JIS = F.SJIS.getName(), re.GB2312 = "GB2312", re.ISO88591 = F.ISO8859_1.getName(), re.EUC_JP = "EUC_JP", re.UTF8 = F.UTF8.getName(), re.PLATFORM_DEFAULT_ENCODING = re.UTF8, re.ASSUME_SHIFT_JIS = !1;
|
|
10088
|
-
class
|
|
10088
|
+
class q {
|
|
10089
10089
|
constructor(e = "") {
|
|
10090
10090
|
this.value = e;
|
|
10091
10091
|
}
|
|
@@ -10128,7 +10128,7 @@ var Jr = function() {
|
|
|
10128
10128
|
this.value = this.value.substr(0, e) + t + this.value.substr(e + t.length);
|
|
10129
10129
|
}
|
|
10130
10130
|
}
|
|
10131
|
-
class
|
|
10131
|
+
class W {
|
|
10132
10132
|
/**
|
|
10133
10133
|
* Creates an empty square {@link BitMatrix}.
|
|
10134
10134
|
*
|
|
@@ -10165,7 +10165,7 @@ var Jr = function() {
|
|
|
10165
10165
|
* @return {@link BitMatrix} representation of image
|
|
10166
10166
|
*/
|
|
10167
10167
|
static parseFromBooleanArray(e) {
|
|
10168
|
-
const t = e.length, n = e[0].length, r = new
|
|
10168
|
+
const t = e.length, n = e[0].length, r = new W(n, t);
|
|
10169
10169
|
for (let l = 0; l < t; l++) {
|
|
10170
10170
|
const c = e[l];
|
|
10171
10171
|
for (let f = 0; f < n; f++)
|
|
@@ -10209,7 +10209,7 @@ var Jr = function() {
|
|
|
10209
10209
|
throw new C("row lengths do not match");
|
|
10210
10210
|
g++;
|
|
10211
10211
|
}
|
|
10212
|
-
const v = new
|
|
10212
|
+
const v = new W(f, g);
|
|
10213
10213
|
for (let y = 0; y < l; y++)
|
|
10214
10214
|
r[y] && v.set(Math.floor(y % f), Math.floor(y / f));
|
|
10215
10215
|
return v;
|
|
@@ -10410,7 +10410,7 @@ var Jr = function() {
|
|
|
10410
10410
|
}
|
|
10411
10411
|
/*@Override*/
|
|
10412
10412
|
equals(e) {
|
|
10413
|
-
if (!(e instanceof
|
|
10413
|
+
if (!(e instanceof W))
|
|
10414
10414
|
return !1;
|
|
10415
10415
|
const t = e;
|
|
10416
10416
|
return this.width === t.width && this.height === t.height && this.rowSize === t.rowSize && D.equals(this.bits, t.bits);
|
|
@@ -10448,7 +10448,7 @@ var Jr = function() {
|
|
|
10448
10448
|
return this.buildToString(e, t, n);
|
|
10449
10449
|
}
|
|
10450
10450
|
buildToString(e, t, n) {
|
|
10451
|
-
let r = new
|
|
10451
|
+
let r = new q();
|
|
10452
10452
|
for (let l = 0, c = this.height; l < c; l++) {
|
|
10453
10453
|
for (let f = 0, g = this.width; f < g; f++)
|
|
10454
10454
|
r.append(this.get(f, l) ? e : t);
|
|
@@ -10458,7 +10458,7 @@ var Jr = function() {
|
|
|
10458
10458
|
}
|
|
10459
10459
|
/*@Override*/
|
|
10460
10460
|
clone() {
|
|
10461
|
-
return new
|
|
10461
|
+
return new W(this.width, this.height, this.rowSize, this.bits.slice());
|
|
10462
10462
|
}
|
|
10463
10463
|
}
|
|
10464
10464
|
class I extends x {
|
|
@@ -10495,7 +10495,7 @@ var Jr = function() {
|
|
|
10495
10495
|
// Does not sharpen the data, as this call is intended to only be used by 2D Readers.
|
|
10496
10496
|
/*@Override*/
|
|
10497
10497
|
getBlackMatrix() {
|
|
10498
|
-
const e = this.getLuminanceSource(), t = e.getWidth(), n = e.getHeight(), r = new
|
|
10498
|
+
const e = this.getLuminanceSource(), t = e.getWidth(), n = e.getHeight(), r = new W(t, n);
|
|
10499
10499
|
this.initArrays(t);
|
|
10500
10500
|
const l = this.buckets;
|
|
10501
10501
|
for (let g = 1; g < 5; g++) {
|
|
@@ -10568,7 +10568,7 @@ var Jr = function() {
|
|
|
10568
10568
|
t & Z.BLOCK_SIZE_MASK && l++;
|
|
10569
10569
|
let c = n >> Z.BLOCK_SIZE_POWER;
|
|
10570
10570
|
n & Z.BLOCK_SIZE_MASK && c++;
|
|
10571
|
-
const f = Z.calculateBlackPoints(r, l, c, t, n), g = new
|
|
10571
|
+
const f = Z.calculateBlackPoints(r, l, c, t, n), g = new W(t, n);
|
|
10572
10572
|
Z.calculateThresholdForBlock(r, l, c, t, n, f, g), this.matrix = g;
|
|
10573
10573
|
} else
|
|
10574
10574
|
this.matrix = super.getBlackMatrix();
|
|
@@ -10592,11 +10592,11 @@ var Jr = function() {
|
|
|
10592
10592
|
for (let M = 0; M < t; M++) {
|
|
10593
10593
|
let G = M << Z.BLOCK_SIZE_POWER;
|
|
10594
10594
|
G > _ && (G = _);
|
|
10595
|
-
const
|
|
10595
|
+
const j = Z.cap(M, 2, t - 3);
|
|
10596
10596
|
let J = 0;
|
|
10597
10597
|
for (let xe = -2; xe <= 2; xe++) {
|
|
10598
10598
|
const _e = c[A + xe];
|
|
10599
|
-
J += _e[
|
|
10599
|
+
J += _e[j - 2] + _e[j - 1] + _e[j] + _e[j + 1] + _e[j + 2];
|
|
10600
10600
|
}
|
|
10601
10601
|
const ae = J / 25;
|
|
10602
10602
|
Z.thresholdBlock(e, G, y, ae, r, f);
|
|
@@ -10628,19 +10628,19 @@ var Jr = function() {
|
|
|
10628
10628
|
for (let y = 0; y < t; y++) {
|
|
10629
10629
|
let A = y << Z.BLOCK_SIZE_POWER;
|
|
10630
10630
|
A > f && (A = f);
|
|
10631
|
-
let M = 0, G = 255,
|
|
10631
|
+
let M = 0, G = 255, j = 0;
|
|
10632
10632
|
for (let ae = 0, xe = v * r + A; ae < Z.BLOCK_SIZE; ae++, xe += r) {
|
|
10633
10633
|
for (let _e = 0; _e < Z.BLOCK_SIZE; _e++) {
|
|
10634
10634
|
const fe = e[xe + _e] & 255;
|
|
10635
|
-
M += fe, fe < G && (G = fe), fe >
|
|
10635
|
+
M += fe, fe < G && (G = fe), fe > j && (j = fe);
|
|
10636
10636
|
}
|
|
10637
|
-
if (
|
|
10637
|
+
if (j - G > Z.MIN_DYNAMIC_RANGE)
|
|
10638
10638
|
for (ae++, xe += r; ae < Z.BLOCK_SIZE; ae++, xe += r)
|
|
10639
10639
|
for (let _e = 0; _e < Z.BLOCK_SIZE; _e++)
|
|
10640
10640
|
M += e[xe + _e] & 255;
|
|
10641
10641
|
}
|
|
10642
10642
|
let J = M >> Z.BLOCK_SIZE_POWER * 2;
|
|
10643
|
-
if (
|
|
10643
|
+
if (j - G <= Z.MIN_DYNAMIC_RANGE && (J = G / 2, _ > 0 && y > 0)) {
|
|
10644
10644
|
const ae = (g[_ - 1][y] + 2 * g[_][y - 1] + g[_ - 1][y - 1]) / 4;
|
|
10645
10645
|
G < ae && (J = ae);
|
|
10646
10646
|
}
|
|
@@ -10713,7 +10713,7 @@ var Jr = function() {
|
|
|
10713
10713
|
/*@Override*/
|
|
10714
10714
|
toString() {
|
|
10715
10715
|
const e = new Uint8ClampedArray(this.width);
|
|
10716
|
-
let t = new
|
|
10716
|
+
let t = new q();
|
|
10717
10717
|
for (let n = 0; n < this.height; n++) {
|
|
10718
10718
|
const r = this.getRow(n, e);
|
|
10719
10719
|
for (let l = 0; l < this.width; l++) {
|
|
@@ -12005,13 +12005,13 @@ var Jr = function() {
|
|
|
12005
12005
|
if (l = c, f = g, l.isZero())
|
|
12006
12006
|
throw new Oe("r_{i-1} was zero");
|
|
12007
12007
|
c = M;
|
|
12008
|
-
let
|
|
12008
|
+
let j = r.getZero();
|
|
12009
12009
|
const J = l.getCoefficient(l.getDegree()), ae = r.inverse(J);
|
|
12010
12010
|
for (; c.getDegree() >= l.getDegree() && !c.isZero(); ) {
|
|
12011
12011
|
const xe = c.getDegree() - l.getDegree(), _e = r.multiply(c.getCoefficient(c.getDegree()), ae);
|
|
12012
|
-
|
|
12012
|
+
j = j.addOrSubtract(r.buildMonomial(xe, _e)), c = c.addOrSubtract(l.multiplyByMonomial(xe, _e));
|
|
12013
12013
|
}
|
|
12014
|
-
if (g =
|
|
12014
|
+
if (g = j.multiply(f).addOrSubtract(G), c.getDegree() >= l.getDegree())
|
|
12015
12015
|
throw new qe("Division algorithm failed to reduce polynomial?");
|
|
12016
12016
|
}
|
|
12017
12017
|
const _ = g.getCoefficient(0);
|
|
@@ -12584,9 +12584,9 @@ var Jr = function() {
|
|
|
12584
12584
|
l = !0;
|
|
12585
12585
|
break;
|
|
12586
12586
|
}
|
|
12587
|
-
let
|
|
12588
|
-
for (; (
|
|
12589
|
-
|
|
12587
|
+
let j = !0;
|
|
12588
|
+
for (; (j || !_) && r < M; )
|
|
12589
|
+
j = this.containsBlackPoint(e, t, r, !0), j ? (r++, c = !0, _ = !0) : _ || r++;
|
|
12590
12590
|
if (r >= M) {
|
|
12591
12591
|
l = !0;
|
|
12592
12592
|
break;
|
|
@@ -12609,10 +12609,10 @@ var Jr = function() {
|
|
|
12609
12609
|
}
|
|
12610
12610
|
if (!l && f) {
|
|
12611
12611
|
const G = t - e;
|
|
12612
|
-
let
|
|
12613
|
-
for (let _e = 1;
|
|
12614
|
-
|
|
12615
|
-
if (
|
|
12612
|
+
let j = null;
|
|
12613
|
+
for (let _e = 1; j === null && _e < G; _e++)
|
|
12614
|
+
j = this.getBlackPointOnSegment(e, r - _e, e + _e, r);
|
|
12615
|
+
if (j == null)
|
|
12616
12616
|
throw new I();
|
|
12617
12617
|
let J = null;
|
|
12618
12618
|
for (let _e = 1; J === null && _e < G; _e++)
|
|
@@ -12629,7 +12629,7 @@ var Jr = function() {
|
|
|
12629
12629
|
xe = this.getBlackPointOnSegment(t, r - _e, t - _e, r);
|
|
12630
12630
|
if (xe == null)
|
|
12631
12631
|
throw new I();
|
|
12632
|
-
return this.centerEdges(xe,
|
|
12632
|
+
return this.centerEdges(xe, j, ae, J);
|
|
12633
12633
|
} else
|
|
12634
12634
|
throw new I();
|
|
12635
12635
|
}
|
|
@@ -12730,22 +12730,22 @@ var Jr = function() {
|
|
|
12730
12730
|
constructor(e, t, n, r, l, c, f, g, _) {
|
|
12731
12731
|
this.a11 = e, this.a21 = t, this.a31 = n, this.a12 = r, this.a22 = l, this.a32 = c, this.a13 = f, this.a23 = g, this.a33 = _;
|
|
12732
12732
|
}
|
|
12733
|
-
static quadrilateralToQuadrilateral(e, t, n, r, l, c, f, g, _, v, y, A, M, G,
|
|
12733
|
+
static quadrilateralToQuadrilateral(e, t, n, r, l, c, f, g, _, v, y, A, M, G, j, J) {
|
|
12734
12734
|
const ae = yn.quadrilateralToSquare(e, t, n, r, l, c, f, g);
|
|
12735
|
-
return yn.squareToQuadrilateral(_, v, y, A, M, G,
|
|
12735
|
+
return yn.squareToQuadrilateral(_, v, y, A, M, G, j, J).times(ae);
|
|
12736
12736
|
}
|
|
12737
12737
|
transformPoints(e) {
|
|
12738
12738
|
const t = e.length, n = this.a11, r = this.a12, l = this.a13, c = this.a21, f = this.a22, g = this.a23, _ = this.a31, v = this.a32, y = this.a33;
|
|
12739
12739
|
for (let A = 0; A < t; A += 2) {
|
|
12740
|
-
const M = e[A], G = e[A + 1],
|
|
12741
|
-
e[A] = (n * M + c * G + _) /
|
|
12740
|
+
const M = e[A], G = e[A + 1], j = l * M + g * G + y;
|
|
12741
|
+
e[A] = (n * M + c * G + _) / j, e[A + 1] = (r * M + f * G + v) / j;
|
|
12742
12742
|
}
|
|
12743
12743
|
}
|
|
12744
12744
|
transformPointsWithValues(e, t) {
|
|
12745
12745
|
const n = this.a11, r = this.a12, l = this.a13, c = this.a21, f = this.a22, g = this.a23, _ = this.a31, v = this.a32, y = this.a33, A = e.length;
|
|
12746
12746
|
for (let M = 0; M < A; M++) {
|
|
12747
|
-
const G = e[M],
|
|
12748
|
-
e[M] = (n * G + c *
|
|
12747
|
+
const G = e[M], j = t[M], J = l * G + g * j + y;
|
|
12748
|
+
e[M] = (n * G + c * j + _) / J, t[M] = (r * G + f * j + v) / J;
|
|
12749
12749
|
}
|
|
12750
12750
|
}
|
|
12751
12751
|
static squareToQuadrilateral(e, t, n, r, l, c, f, g) {
|
|
@@ -12753,7 +12753,7 @@ var Jr = function() {
|
|
|
12753
12753
|
if (_ === 0 && v === 0)
|
|
12754
12754
|
return new yn(n - e, l - n, e, r - t, c - r, t, 0, 0, 1);
|
|
12755
12755
|
{
|
|
12756
|
-
const y = n - l, A = f - l, M = r - c, G = g - c,
|
|
12756
|
+
const y = n - l, A = f - l, M = r - c, G = g - c, j = y * G - A * M, J = (_ * G - A * v) / j, ae = (y * v - _ * M) / j;
|
|
12757
12757
|
return new yn(n - e + J * n, f - e + ae * f, e, r - t + J * r, g - t + ae * g, t, J, ae, 1);
|
|
12758
12758
|
}
|
|
12759
12759
|
}
|
|
@@ -12769,15 +12769,15 @@ var Jr = function() {
|
|
|
12769
12769
|
}
|
|
12770
12770
|
class Oi extends Ur {
|
|
12771
12771
|
/*@Override*/
|
|
12772
|
-
sampleGrid(e, t, n, r, l, c, f, g, _, v, y, A, M, G,
|
|
12773
|
-
const fe = yn.quadrilateralToQuadrilateral(r, l, c, f, g, _, v, y, A, M, G,
|
|
12772
|
+
sampleGrid(e, t, n, r, l, c, f, g, _, v, y, A, M, G, j, J, ae, xe, _e) {
|
|
12773
|
+
const fe = yn.quadrilateralToQuadrilateral(r, l, c, f, g, _, v, y, A, M, G, j, J, ae, xe, _e);
|
|
12774
12774
|
return this.sampleGridWithTransform(e, t, n, fe);
|
|
12775
12775
|
}
|
|
12776
12776
|
/*@Override*/
|
|
12777
12777
|
sampleGridWithTransform(e, t, n, r) {
|
|
12778
12778
|
if (t <= 0 || n <= 0)
|
|
12779
12779
|
throw new I();
|
|
12780
|
-
const l = new
|
|
12780
|
+
const l = new W(t, n), c = new Float32Array(2 * t);
|
|
12781
12781
|
for (let f = 0; f < n; f++) {
|
|
12782
12782
|
const g = c.length, _ = f + 0.5;
|
|
12783
12783
|
for (let v = 0; v < g; v += 2)
|
|
@@ -12930,8 +12930,8 @@ var Jr = function() {
|
|
|
12930
12930
|
for (this.nbCenterLayers = 1; this.nbCenterLayers < 9; this.nbCenterLayers++) {
|
|
12931
12931
|
let y = this.getFirstDifferent(t, c, 1, -1), A = this.getFirstDifferent(n, c, 1, 1), M = this.getFirstDifferent(r, c, -1, 1), G = this.getFirstDifferent(l, c, -1, -1);
|
|
12932
12932
|
if (this.nbCenterLayers > 2) {
|
|
12933
|
-
let
|
|
12934
|
-
if (
|
|
12933
|
+
let j = this.distancePoint(G, y) * this.nbCenterLayers / (this.distancePoint(l, t) * (this.nbCenterLayers + 2));
|
|
12934
|
+
if (j < 0.75 || j > 1.25 || !this.isWhiteOrBlackRectangle(y, A, M, G))
|
|
12935
12935
|
break;
|
|
12936
12936
|
}
|
|
12937
12937
|
t = y, n = A, r = M, l = G, c = !c;
|
|
@@ -13204,17 +13204,17 @@ var Jr = function() {
|
|
|
13204
13204
|
}
|
|
13205
13205
|
for (let G = 0; G < 2; G++) {
|
|
13206
13206
|
if (G === 1 && (l.reverse(), t && t.get(K.NEED_RESULT_POINT_CALLBACK) === !0)) {
|
|
13207
|
-
const
|
|
13208
|
-
t.forEach((J, ae) =>
|
|
13207
|
+
const j = /* @__PURE__ */ new Map();
|
|
13208
|
+
t.forEach((J, ae) => j.set(ae, J)), j.delete(K.NEED_RESULT_POINT_CALLBACK), t = j;
|
|
13209
13209
|
}
|
|
13210
13210
|
try {
|
|
13211
|
-
const
|
|
13211
|
+
const j = this.decodeRow(M, l, t);
|
|
13212
13212
|
if (G === 1) {
|
|
13213
|
-
|
|
13214
|
-
const J =
|
|
13213
|
+
j.putMetadata(Re.ORIENTATION, 180);
|
|
13214
|
+
const J = j.getResultPoints();
|
|
13215
13215
|
J !== null && (J[0] = new Te(n - J[0].getX() - 1, J[0].getY()), J[1] = new Te(n - J[1].getX() - 1, J[1].getY()));
|
|
13216
13216
|
}
|
|
13217
|
-
return
|
|
13217
|
+
return j;
|
|
13218
13218
|
} catch {
|
|
13219
13219
|
}
|
|
13220
13220
|
}
|
|
@@ -13347,11 +13347,11 @@ var Jr = function() {
|
|
|
13347
13347
|
throw new z();
|
|
13348
13348
|
}
|
|
13349
13349
|
let v = !1, y = !1, A = "", M = l[0], G = l[1];
|
|
13350
|
-
const
|
|
13350
|
+
const j = Int32Array.from([0, 0, 0, 0, 0, 0]);
|
|
13351
13351
|
let J = 0, ae = 0, xe = c, _e = 0, fe = !0, et = !1, Ve = !1;
|
|
13352
13352
|
for (; !v; ) {
|
|
13353
13353
|
const $r = y;
|
|
13354
|
-
switch (y = !1, J = ae, ae = ve.decodeCode(t,
|
|
13354
|
+
switch (y = !1, J = ae, ae = ve.decodeCode(t, j, G), g[f++] = ae, ae !== ve.CODE_STOP && (fe = !0), ae !== ve.CODE_STOP && (_e++, xe += _e * ae), M = G, G += j.reduce((Cc, bc) => Cc + bc, 0), ae) {
|
|
13355
13355
|
case ve.CODE_START_A:
|
|
13356
13356
|
case ve.CODE_START_B:
|
|
13357
13357
|
case ve.CODE_START_C:
|
|
@@ -13600,28 +13600,28 @@ var Jr = function() {
|
|
|
13600
13600
|
let l = Dt.findAsteriskPattern(t, r), c = t.getNextSet(l[1]), f = t.getSize(), g, _;
|
|
13601
13601
|
do {
|
|
13602
13602
|
Dt.recordPattern(t, c, r);
|
|
13603
|
-
let
|
|
13604
|
-
if (
|
|
13603
|
+
let j = Dt.toNarrowWidePattern(r);
|
|
13604
|
+
if (j < 0)
|
|
13605
13605
|
throw new I();
|
|
13606
|
-
g = Dt.patternToChar(
|
|
13606
|
+
g = Dt.patternToChar(j), this.decodeRowResult += g, _ = c;
|
|
13607
13607
|
for (let J of r)
|
|
13608
13608
|
c += J;
|
|
13609
13609
|
c = t.getNextSet(c);
|
|
13610
13610
|
} while (g !== "*");
|
|
13611
13611
|
this.decodeRowResult = this.decodeRowResult.substring(0, this.decodeRowResult.length - 1);
|
|
13612
13612
|
let v = 0;
|
|
13613
|
-
for (let
|
|
13614
|
-
v +=
|
|
13613
|
+
for (let j of r)
|
|
13614
|
+
v += j;
|
|
13615
13615
|
let y = c - _ - v;
|
|
13616
13616
|
if (c !== f && y * 2 < v)
|
|
13617
13617
|
throw new I();
|
|
13618
13618
|
if (this.usingCheckDigit) {
|
|
13619
|
-
let
|
|
13620
|
-
for (let ae = 0; ae <
|
|
13619
|
+
let j = this.decodeRowResult.length - 1, J = 0;
|
|
13620
|
+
for (let ae = 0; ae < j; ae++)
|
|
13621
13621
|
J += Dt.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(ae));
|
|
13622
|
-
if (this.decodeRowResult.charAt(
|
|
13622
|
+
if (this.decodeRowResult.charAt(j) !== Dt.ALPHABET_STRING.charAt(J % 43))
|
|
13623
13623
|
throw new k();
|
|
13624
|
-
this.decodeRowResult = this.decodeRowResult.substring(0,
|
|
13624
|
+
this.decodeRowResult = this.decodeRowResult.substring(0, j);
|
|
13625
13625
|
}
|
|
13626
13626
|
if (this.decodeRowResult.length === 0)
|
|
13627
13627
|
throw new I();
|
|
@@ -13792,7 +13792,7 @@ var Jr = function() {
|
|
|
13792
13792
|
*!/
|
|
13793
13793
|
*/
|
|
13794
13794
|
decodeRow(e, t, n) {
|
|
13795
|
-
let r = this.decodeStart(t), l = this.decodeEnd(t), c = new
|
|
13795
|
+
let r = this.decodeStart(t), l = this.decodeEnd(t), c = new q();
|
|
13796
13796
|
ut.decodeMiddle(t, r[1], l[0], c);
|
|
13797
13797
|
let f = c.toString(), g = null;
|
|
13798
13798
|
n != null && (g = n.get(K.ALLOWED_LENGTHS)), g == null && (g = ut.DEFAULT_ALLOWED_LENGTHS);
|
|
@@ -14256,7 +14256,7 @@ var Jr = function() {
|
|
|
14256
14256
|
throw new z();
|
|
14257
14257
|
if (!Ne.checkChecksum(A))
|
|
14258
14258
|
throw new k();
|
|
14259
|
-
let M = (r[1] + r[0]) / 2, G = (_[1] + _[0]) / 2,
|
|
14259
|
+
let M = (r[1] + r[0]) / 2, G = (_[1] + _[0]) / 2, j = this.getBarcodeFormat(), J = [new Te(M, e), new Te(G, e)], ae = new Ce(A, null, 0, J, j, (/* @__PURE__ */ new Date()).getTime()), xe = 0;
|
|
14260
14260
|
try {
|
|
14261
14261
|
let fe = Je.decodeRow(e, t, _[1]);
|
|
14262
14262
|
ae.putMetadata(Re.UPC_EAN_EXTENSION, fe.getText()), ae.putAllMetadata(fe.getResultMetadata()), ae.addResultPoints(fe.getResultPoints()), xe = fe.getText().length;
|
|
@@ -14486,7 +14486,7 @@ var Jr = function() {
|
|
|
14486
14486
|
* @return equivalent UPC-A code as string of digits
|
|
14487
14487
|
*/
|
|
14488
14488
|
static convertUPCEtoUPCA(e) {
|
|
14489
|
-
const t = e.slice(1, 7).split("").map((l) => l.charCodeAt(0)), n = new
|
|
14489
|
+
const t = e.slice(1, 7).split("").map((l) => l.charCodeAt(0)), n = new q(
|
|
14490
14490
|
/*12*/
|
|
14491
14491
|
);
|
|
14492
14492
|
n.append(e.charAt(0));
|
|
@@ -14544,7 +14544,7 @@ var Jr = function() {
|
|
|
14544
14544
|
e.reset();
|
|
14545
14545
|
}
|
|
14546
14546
|
}
|
|
14547
|
-
class
|
|
14547
|
+
class st extends yt {
|
|
14548
14548
|
constructor() {
|
|
14549
14549
|
super(), this.decodeFinderCounters = new Int32Array(4), this.dataCharacterCounters = new Int32Array(8), this.oddRoundingErrors = new Array(4), this.evenRoundingErrors = new Array(4), this.oddCounts = new Array(this.dataCharacterCounters.length / 2), this.evenCounts = new Array(this.dataCharacterCounters.length / 2);
|
|
14550
14550
|
}
|
|
@@ -14568,7 +14568,7 @@ var Jr = function() {
|
|
|
14568
14568
|
}
|
|
14569
14569
|
parseFinderValue(e, t) {
|
|
14570
14570
|
for (let n = 0; n < t.length; n++)
|
|
14571
|
-
if (yt.patternMatchVariance(e, t[n],
|
|
14571
|
+
if (yt.patternMatchVariance(e, t[n], st.MAX_INDIVIDUAL_VARIANCE) < st.MAX_AVG_VARIANCE)
|
|
14572
14572
|
return n;
|
|
14573
14573
|
throw new I();
|
|
14574
14574
|
}
|
|
@@ -14594,7 +14594,7 @@ var Jr = function() {
|
|
|
14594
14594
|
}
|
|
14595
14595
|
static isFinderPattern(e) {
|
|
14596
14596
|
let t = e[0] + e[1], n = t + e[2] + e[3], r = t / n;
|
|
14597
|
-
if (r >=
|
|
14597
|
+
if (r >= st.MIN_FINDER_PATTERN_RATIO && r <= st.MAX_FINDER_PATTERN_RATIO) {
|
|
14598
14598
|
let l = Number.MAX_SAFE_INTEGER, c = Number.MIN_SAFE_INTEGER;
|
|
14599
14599
|
for (let f of e)
|
|
14600
14600
|
f > c && (c = f), f < l && (l = f);
|
|
@@ -14603,7 +14603,7 @@ var Jr = function() {
|
|
|
14603
14603
|
return !1;
|
|
14604
14604
|
}
|
|
14605
14605
|
}
|
|
14606
|
-
|
|
14606
|
+
st.MAX_AVG_VARIANCE = 0.2, st.MAX_INDIVIDUAL_VARIANCE = 0.45, st.MIN_FINDER_PATTERN_RATIO = 9.5 / 12, st.MAX_FINDER_PATTERN_RATIO = 12.5 / 14;
|
|
14607
14607
|
class Nt {
|
|
14608
14608
|
constructor(e, t) {
|
|
14609
14609
|
this.value = e, this.checksumPortion = t;
|
|
@@ -14954,7 +14954,7 @@ var Jr = function() {
|
|
|
14954
14954
|
];
|
|
14955
14955
|
class zr {
|
|
14956
14956
|
constructor(e) {
|
|
14957
|
-
this.buffer = new
|
|
14957
|
+
this.buffer = new q(), this.information = e;
|
|
14958
14958
|
}
|
|
14959
14959
|
decodeAllCodes(e, t) {
|
|
14960
14960
|
let n = t, r = null;
|
|
@@ -15252,7 +15252,7 @@ var Jr = function() {
|
|
|
15252
15252
|
super(e);
|
|
15253
15253
|
}
|
|
15254
15254
|
parseInformation() {
|
|
15255
|
-
let e = new
|
|
15255
|
+
let e = new q();
|
|
15256
15256
|
e.append("(01)");
|
|
15257
15257
|
let t = e.length(), n = this.getGeneralDecoder().extractNumericValueFromBitArray(Gr.HEADER_SIZE, 4);
|
|
15258
15258
|
return e.append(n), this.encodeCompressedGtinWithoutAI(e, Gr.HEADER_SIZE + 4, t), this.getGeneralDecoder().decodeAllCodes(e, Gr.HEADER_SIZE + 44);
|
|
@@ -15264,7 +15264,7 @@ var Jr = function() {
|
|
|
15264
15264
|
super(e);
|
|
15265
15265
|
}
|
|
15266
15266
|
parseInformation() {
|
|
15267
|
-
let e = new
|
|
15267
|
+
let e = new q();
|
|
15268
15268
|
return this.getGeneralDecoder().decodeAllCodes(e, ki.HEADER_SIZE);
|
|
15269
15269
|
}
|
|
15270
15270
|
}
|
|
@@ -15289,7 +15289,7 @@ var Jr = function() {
|
|
|
15289
15289
|
parseInformation() {
|
|
15290
15290
|
if (this.getInformation().getSize() != jn.HEADER_SIZE + Di.GTIN_SIZE + jn.WEIGHT_SIZE)
|
|
15291
15291
|
throw new I();
|
|
15292
|
-
let e = new
|
|
15292
|
+
let e = new q();
|
|
15293
15293
|
return this.encodeCompressedGtin(e, jn.HEADER_SIZE), this.encodeCompressedWeight(e, jn.HEADER_SIZE + Di.GTIN_SIZE, jn.WEIGHT_SIZE), e.toString();
|
|
15294
15294
|
}
|
|
15295
15295
|
}
|
|
@@ -15323,7 +15323,7 @@ var Jr = function() {
|
|
|
15323
15323
|
parseInformation() {
|
|
15324
15324
|
if (this.getInformation().getSize() < qn.HEADER_SIZE + hn.GTIN_SIZE)
|
|
15325
15325
|
throw new I();
|
|
15326
|
-
let e = new
|
|
15326
|
+
let e = new q();
|
|
15327
15327
|
this.encodeCompressedGtin(e, qn.HEADER_SIZE);
|
|
15328
15328
|
let t = this.getGeneralDecoder().extractNumericValueFromBitArray(qn.HEADER_SIZE + hn.GTIN_SIZE, qn.LAST_DIGIT_SIZE);
|
|
15329
15329
|
e.append("(392"), e.append(t), e.append(")");
|
|
@@ -15339,7 +15339,7 @@ var Jr = function() {
|
|
|
15339
15339
|
parseInformation() {
|
|
15340
15340
|
if (this.getInformation().getSize() < dn.HEADER_SIZE + hn.GTIN_SIZE)
|
|
15341
15341
|
throw new I();
|
|
15342
|
-
let e = new
|
|
15342
|
+
let e = new q();
|
|
15343
15343
|
this.encodeCompressedGtin(e, dn.HEADER_SIZE);
|
|
15344
15344
|
let t = this.getGeneralDecoder().extractNumericValueFromBitArray(dn.HEADER_SIZE + hn.GTIN_SIZE, dn.LAST_DIGIT_SIZE);
|
|
15345
15345
|
e.append("(393"), e.append(t), e.append(")");
|
|
@@ -15357,7 +15357,7 @@ var Jr = function() {
|
|
|
15357
15357
|
parseInformation() {
|
|
15358
15358
|
if (this.getInformation().getSize() != Ot.HEADER_SIZE + Ot.GTIN_SIZE + Ot.WEIGHT_SIZE + Ot.DATE_SIZE)
|
|
15359
15359
|
throw new I();
|
|
15360
|
-
let e = new
|
|
15360
|
+
let e = new q();
|
|
15361
15361
|
return this.encodeCompressedGtin(e, Ot.HEADER_SIZE), this.encodeCompressedWeight(e, Ot.HEADER_SIZE + Ot.GTIN_SIZE, Ot.WEIGHT_SIZE), this.encodeCompressedDate(e, Ot.HEADER_SIZE + Ot.GTIN_SIZE + Ot.WEIGHT_SIZE), e.toString();
|
|
15362
15362
|
}
|
|
15363
15363
|
encodeCompressedDate(e, t) {
|
|
@@ -15492,7 +15492,7 @@ var Jr = function() {
|
|
|
15492
15492
|
}), n;
|
|
15493
15493
|
}
|
|
15494
15494
|
}
|
|
15495
|
-
class de extends
|
|
15495
|
+
class de extends st {
|
|
15496
15496
|
constructor(e) {
|
|
15497
15497
|
super(...arguments), this.pairs = new Array(de.MAX_PAIRS), this.rows = new Array(), this.startEnd = [2], this.verbose = e === !0;
|
|
15498
15498
|
}
|
|
@@ -15759,11 +15759,11 @@ var Jr = function() {
|
|
|
15759
15759
|
vt & 1 ? (v[qr] = En, A[qr] = nn - En) : (_[qr] = En, y[qr] = nn - En);
|
|
15760
15760
|
}
|
|
15761
15761
|
this.adjustOddEvenCounts(c);
|
|
15762
|
-
let M = 4 * t.getValue() + (n ? 0 : 2) + (r ? 0 : 1) - 1, G = 0,
|
|
15762
|
+
let M = 4 * t.getValue() + (n ? 0 : 2) + (r ? 0 : 1) - 1, G = 0, j = 0;
|
|
15763
15763
|
for (let vt = _.length - 1; vt >= 0; vt--) {
|
|
15764
15764
|
if (de.isNotA1left(t, n, r)) {
|
|
15765
15765
|
let nn = de.WEIGHTS[M][2 * vt];
|
|
15766
|
-
|
|
15766
|
+
j += _[vt] * nn;
|
|
15767
15767
|
}
|
|
15768
15768
|
G += _[vt];
|
|
15769
15769
|
}
|
|
@@ -15773,7 +15773,7 @@ var Jr = function() {
|
|
|
15773
15773
|
let nn = de.WEIGHTS[M][2 * vt + 1];
|
|
15774
15774
|
J += v[vt] * nn;
|
|
15775
15775
|
}
|
|
15776
|
-
let ae =
|
|
15776
|
+
let ae = j + J;
|
|
15777
15777
|
if (G & 1 || G > 13 || G < 4)
|
|
15778
15778
|
throw new I();
|
|
15779
15779
|
let xe = (13 - G) / 2, _e = de.SYMBOL_WIDEST[xe], fe = 9 - _e, et = It.getRSSvalue(_, _e, !0), Ve = It.getRSSvalue(v, fe, !1), pn = de.EVEN_TOTAL_SUBSET[xe], Hn = de.GSUM[xe], mn = et * pn + Ve + Hn;
|
|
@@ -15888,7 +15888,7 @@ var Jr = function() {
|
|
|
15888
15888
|
this.count++;
|
|
15889
15889
|
}
|
|
15890
15890
|
}
|
|
15891
|
-
class Ft extends
|
|
15891
|
+
class Ft extends st {
|
|
15892
15892
|
constructor() {
|
|
15893
15893
|
super(...arguments), this.possibleLeftPairs = [], this.possibleRightPairs = [];
|
|
15894
15894
|
}
|
|
@@ -15920,7 +15920,7 @@ var Jr = function() {
|
|
|
15920
15920
|
this.possibleLeftPairs.length = 0, this.possibleRightPairs.length = 0;
|
|
15921
15921
|
}
|
|
15922
15922
|
static constructResult(e, t) {
|
|
15923
|
-
let n = 4537077 * e.getValue() + t.getValue(), r = new String(n).toString(), l = new
|
|
15923
|
+
let n = 4537077 * e.getValue() + t.getValue(), r = new String(n).toString(), l = new q();
|
|
15924
15924
|
for (let _ = 13 - r.length; _ > 0; _--)
|
|
15925
15925
|
l.append("0");
|
|
15926
15926
|
l.append(r);
|
|
@@ -15977,17 +15977,17 @@ var Jr = function() {
|
|
|
15977
15977
|
let M = 0, G = 0;
|
|
15978
15978
|
for (let J = g.length - 1; J >= 0; J--)
|
|
15979
15979
|
M *= 9, M += g[J], G += g[J];
|
|
15980
|
-
let
|
|
15980
|
+
let j = A + 3 * M;
|
|
15981
15981
|
if (n) {
|
|
15982
15982
|
if (y & 1 || y > 12 || y < 4)
|
|
15983
15983
|
throw new I();
|
|
15984
15984
|
let J = (12 - y) / 2, ae = Ft.OUTSIDE_ODD_WIDEST[J], xe = 9 - ae, _e = It.getRSSvalue(f, ae, !1), fe = It.getRSSvalue(g, xe, !0), et = Ft.OUTSIDE_EVEN_TOTAL_SUBSET[J], Ve = Ft.OUTSIDE_GSUM[J];
|
|
15985
|
-
return new Nt(_e * et + fe + Ve,
|
|
15985
|
+
return new Nt(_e * et + fe + Ve, j);
|
|
15986
15986
|
} else {
|
|
15987
15987
|
if (G & 1 || G > 10 || G < 4)
|
|
15988
15988
|
throw new I();
|
|
15989
15989
|
let J = (10 - G) / 2, ae = Ft.INSIDE_ODD_WIDEST[J], xe = 9 - ae, _e = It.getRSSvalue(f, ae, !0), fe = It.getRSSvalue(g, xe, !1), et = Ft.INSIDE_ODD_TOTAL_SUBSET[J], Ve = Ft.INSIDE_GSUM[J];
|
|
15990
|
-
return new Nt(fe * et + _e + Ve,
|
|
15990
|
+
return new Nt(fe * et + _e + Ve, j);
|
|
15991
15991
|
}
|
|
15992
15992
|
}
|
|
15993
15993
|
findFinderPattern(e, t) {
|
|
@@ -16002,7 +16002,7 @@ var Jr = function() {
|
|
|
16002
16002
|
n[f]++;
|
|
16003
16003
|
else {
|
|
16004
16004
|
if (f === 3) {
|
|
16005
|
-
if (
|
|
16005
|
+
if (st.isFinderPattern(n))
|
|
16006
16006
|
return [g, _];
|
|
16007
16007
|
g += n[0] + n[1], n[0] = n[2], n[1] = n[3], n[2] = 0, n[3] = 0, f--;
|
|
16008
16008
|
} else
|
|
@@ -16058,14 +16058,14 @@ var Jr = function() {
|
|
|
16058
16058
|
if (l) {
|
|
16059
16059
|
if (c)
|
|
16060
16060
|
throw new I();
|
|
16061
|
-
|
|
16061
|
+
st.increment(this.getOddCounts(), this.getOddRoundingErrors());
|
|
16062
16062
|
}
|
|
16063
|
-
if (c &&
|
|
16063
|
+
if (c && st.decrement(this.getOddCounts(), this.getOddRoundingErrors()), f) {
|
|
16064
16064
|
if (g)
|
|
16065
16065
|
throw new I();
|
|
16066
|
-
|
|
16066
|
+
st.increment(this.getEvenCounts(), this.getOddRoundingErrors());
|
|
16067
16067
|
}
|
|
16068
|
-
g &&
|
|
16068
|
+
g && st.decrement(this.getEvenCounts(), this.getEvenRoundingErrors());
|
|
16069
16069
|
}
|
|
16070
16070
|
}
|
|
16071
16071
|
Ft.OUTSIDE_EVEN_TOTAL_SUBSET = [1, 10, 34, 70, 126], Ft.INSIDE_ODD_TOTAL_SUBSET = [4, 20, 48, 81], Ft.OUTSIDE_GSUM = [0, 161, 961, 2015, 2715], Ft.INSIDE_GSUM = [0, 336, 1036, 1516], Ft.OUTSIDE_ODD_WIDEST = [8, 6, 4, 3, 1], Ft.INSIDE_ODD_WIDEST = [2, 4, 6, 8], Ft.FINDER_PATTERNS = [
|
|
@@ -16229,7 +16229,7 @@ var Jr = function() {
|
|
|
16229
16229
|
const t = e.getHeight();
|
|
16230
16230
|
if (t < 8 || t > 144 || t & 1)
|
|
16231
16231
|
throw new z();
|
|
16232
|
-
this.version = bs.readVersion(e), this.mappingBitMatrix = this.extractDataRegion(e), this.readMappingMatrix = new
|
|
16232
|
+
this.version = bs.readVersion(e), this.mappingBitMatrix = this.extractDataRegion(e), this.readMappingMatrix = new W(this.mappingBitMatrix.getWidth(), this.mappingBitMatrix.getHeight());
|
|
16233
16233
|
}
|
|
16234
16234
|
getVersion() {
|
|
16235
16235
|
return this.version;
|
|
@@ -16376,13 +16376,13 @@ var Jr = function() {
|
|
|
16376
16376
|
const t = this.version.getSymbolSizeRows(), n = this.version.getSymbolSizeColumns();
|
|
16377
16377
|
if (e.getHeight() !== t)
|
|
16378
16378
|
throw new C("Dimension of bitMatrix must match the version size");
|
|
16379
|
-
const r = this.version.getDataRegionSizeRows(), l = this.version.getDataRegionSizeColumns(), c = t / r | 0, f = n / l | 0, g = c * r, _ = f * l, v = new
|
|
16379
|
+
const r = this.version.getDataRegionSizeRows(), l = this.version.getDataRegionSizeColumns(), c = t / r | 0, f = n / l | 0, g = c * r, _ = f * l, v = new W(_, g);
|
|
16380
16380
|
for (let y = 0; y < c; ++y) {
|
|
16381
16381
|
const A = y * r;
|
|
16382
16382
|
for (let M = 0; M < f; ++M) {
|
|
16383
16383
|
const G = M * l;
|
|
16384
|
-
for (let
|
|
16385
|
-
const J = y * (r + 2) + 1 +
|
|
16384
|
+
for (let j = 0; j < r; ++j) {
|
|
16385
|
+
const J = y * (r + 2) + 1 + j, ae = A + j;
|
|
16386
16386
|
for (let xe = 0; xe < l; ++xe) {
|
|
16387
16387
|
const _e = M * (l + 2) + 1 + xe;
|
|
16388
16388
|
if (e.get(_e, J)) {
|
|
@@ -16414,27 +16414,27 @@ var Jr = function() {
|
|
|
16414
16414
|
const n = t.getECBlocks();
|
|
16415
16415
|
let r = 0;
|
|
16416
16416
|
const l = n.getECBlocks();
|
|
16417
|
-
for (let
|
|
16418
|
-
r +=
|
|
16417
|
+
for (let j of l)
|
|
16418
|
+
r += j.getCount();
|
|
16419
16419
|
const c = new Array(r);
|
|
16420
16420
|
let f = 0;
|
|
16421
|
-
for (let
|
|
16422
|
-
for (let J = 0; J <
|
|
16423
|
-
const ae =
|
|
16421
|
+
for (let j of l)
|
|
16422
|
+
for (let J = 0; J < j.getCount(); J++) {
|
|
16423
|
+
const ae = j.getDataCodewords(), xe = n.getECCodewords() + ae;
|
|
16424
16424
|
c[f++] = new ys(ae, new Uint8Array(xe));
|
|
16425
16425
|
}
|
|
16426
16426
|
const _ = c[0].codewords.length - n.getECCodewords(), v = _ - 1;
|
|
16427
16427
|
let y = 0;
|
|
16428
|
-
for (let
|
|
16428
|
+
for (let j = 0; j < v; j++)
|
|
16429
16429
|
for (let J = 0; J < f; J++)
|
|
16430
|
-
c[J].codewords[
|
|
16430
|
+
c[J].codewords[j] = e[y++];
|
|
16431
16431
|
const A = t.getVersionNumber() === 24, M = A ? 8 : f;
|
|
16432
|
-
for (let
|
|
16433
|
-
c[
|
|
16432
|
+
for (let j = 0; j < M; j++)
|
|
16433
|
+
c[j].codewords[_ - 1] = e[y++];
|
|
16434
16434
|
const G = c[0].codewords.length;
|
|
16435
|
-
for (let
|
|
16435
|
+
for (let j = _; j < G; j++)
|
|
16436
16436
|
for (let J = 0; J < f; J++) {
|
|
16437
|
-
const ae = A ? (J + 8) % f : J, xe = A && ae > 7 ?
|
|
16437
|
+
const ae = A ? (J + 8) % f : J, xe = A && ae > 7 ? j - 1 : j;
|
|
16438
16438
|
c[ae].codewords[xe] = e[y++];
|
|
16439
16439
|
}
|
|
16440
16440
|
if (y !== e.length)
|
|
@@ -16506,7 +16506,7 @@ var Jr = function() {
|
|
|
16506
16506
|
})(jt || (jt = {}));
|
|
16507
16507
|
class ur {
|
|
16508
16508
|
static decode(e) {
|
|
16509
|
-
const t = new As(e), n = new
|
|
16509
|
+
const t = new As(e), n = new q(), r = new q(), l = new Array();
|
|
16510
16510
|
let c = jt.ASCII_ENCODE;
|
|
16511
16511
|
do
|
|
16512
16512
|
if (c === jt.ASCII_ENCODE)
|
|
@@ -17063,12 +17063,12 @@ var Jr = function() {
|
|
|
17063
17063
|
transitionsBetween(e, t) {
|
|
17064
17064
|
let n = Math.trunc(e.getX()), r = Math.trunc(e.getY()), l = Math.trunc(t.getX()), c = Math.trunc(t.getY()), f = Math.abs(c - r) > Math.abs(l - n);
|
|
17065
17065
|
if (f) {
|
|
17066
|
-
let
|
|
17067
|
-
n = r, r =
|
|
17066
|
+
let j = n;
|
|
17067
|
+
n = r, r = j, j = l, l = c, c = j;
|
|
17068
17068
|
}
|
|
17069
17069
|
let g = Math.abs(l - n), _ = Math.abs(c - r), v = -g / 2, y = r < c ? 1 : -1, A = n < l ? 1 : -1, M = 0, G = this.image.get(f ? r : n, f ? n : r);
|
|
17070
|
-
for (let
|
|
17071
|
-
let ae = this.image.get(f ? J :
|
|
17070
|
+
for (let j = n, J = r; j !== l; j += A) {
|
|
17071
|
+
let ae = this.image.get(f ? J : j, f ? j : J);
|
|
17072
17072
|
if (ae !== G && (M++, G = ae), v += _, v > 0) {
|
|
17073
17073
|
if (J === c)
|
|
17074
17074
|
break;
|
|
@@ -17133,11 +17133,11 @@ var Jr = function() {
|
|
|
17133
17133
|
throw new I();
|
|
17134
17134
|
const y = r / 2;
|
|
17135
17135
|
l += y, f += y;
|
|
17136
|
-
const A = new
|
|
17136
|
+
const A = new W(_, v);
|
|
17137
17137
|
for (let M = 0; M < v; M++) {
|
|
17138
17138
|
const G = l + M * r;
|
|
17139
|
-
for (let
|
|
17140
|
-
e.get(f +
|
|
17139
|
+
for (let j = 0; j < _; j++)
|
|
17140
|
+
e.get(f + j * r, G) && A.set(j, M);
|
|
17141
17141
|
}
|
|
17142
17142
|
return A;
|
|
17143
17143
|
}
|
|
@@ -17387,7 +17387,7 @@ var Jr = function() {
|
|
|
17387
17387
|
* See ISO 18004:2006 Annex E
|
|
17388
17388
|
*/
|
|
17389
17389
|
buildFunctionPattern() {
|
|
17390
|
-
const e = this.getDimensionForVersion(), t = new
|
|
17390
|
+
const e = this.getDimensionForVersion(), t = new W(e);
|
|
17391
17391
|
t.setRegion(0, 0, 9, 9), t.setRegion(e - 8, 0, 8, 9), t.setRegion(0, e - 8, 9, 8);
|
|
17392
17392
|
const n = this.alignmentPatternCenters.length;
|
|
17393
17393
|
for (let r = 0; r < n; r++) {
|
|
@@ -17692,7 +17692,7 @@ var Jr = function() {
|
|
|
17692
17692
|
const f = new Array(l);
|
|
17693
17693
|
let g = 0;
|
|
17694
17694
|
for (const G of c)
|
|
17695
|
-
for (let
|
|
17695
|
+
for (let j = 0; j < G.getCount(); j++) {
|
|
17696
17696
|
const J = G.getDataCodewords(), ae = r.getECCodewordsPerBlock() + J;
|
|
17697
17697
|
f[g++] = new Es(J, new Uint8Array(ae));
|
|
17698
17698
|
}
|
|
@@ -17704,15 +17704,15 @@ var Jr = function() {
|
|
|
17704
17704
|
const y = _ - r.getECCodewordsPerBlock();
|
|
17705
17705
|
let A = 0;
|
|
17706
17706
|
for (let G = 0; G < y; G++)
|
|
17707
|
-
for (let
|
|
17708
|
-
f[
|
|
17707
|
+
for (let j = 0; j < g; j++)
|
|
17708
|
+
f[j].codewords[G] = e[A++];
|
|
17709
17709
|
for (let G = v; G < g; G++)
|
|
17710
17710
|
f[G].codewords[y] = e[A++];
|
|
17711
17711
|
const M = f[0].codewords.length;
|
|
17712
17712
|
for (let G = y; G < M; G++)
|
|
17713
|
-
for (let
|
|
17714
|
-
const J =
|
|
17715
|
-
f[
|
|
17713
|
+
for (let j = 0; j < g; j++) {
|
|
17714
|
+
const J = j < v ? G : G + 1;
|
|
17715
|
+
f[j].codewords[J] = e[A++];
|
|
17716
17716
|
}
|
|
17717
17717
|
return f;
|
|
17718
17718
|
}
|
|
@@ -17772,7 +17772,7 @@ var Jr = function() {
|
|
|
17772
17772
|
class Bt {
|
|
17773
17773
|
static decode(e, t, n, r) {
|
|
17774
17774
|
const l = new As(e);
|
|
17775
|
-
let c = new
|
|
17775
|
+
let c = new q();
|
|
17776
17776
|
const f = new Array();
|
|
17777
17777
|
let g = -1, _ = -1;
|
|
17778
17778
|
try {
|
|
@@ -17802,8 +17802,8 @@ var Jr = function() {
|
|
|
17802
17802
|
throw new z();
|
|
17803
17803
|
break;
|
|
17804
17804
|
case De.HANZI:
|
|
17805
|
-
const G = l.readBits(4),
|
|
17806
|
-
G === Bt.GB2312_SUBSET && Bt.decodeHanziSegment(l, c,
|
|
17805
|
+
const G = l.readBits(4), j = l.readBits(A.getCharacterCountBits(t));
|
|
17806
|
+
G === Bt.GB2312_SUBSET && Bt.decodeHanziSegment(l, c, j);
|
|
17807
17807
|
break;
|
|
17808
17808
|
default:
|
|
17809
17809
|
const J = l.readBits(A.getCharacterCountBits(t));
|
|
@@ -17989,7 +17989,7 @@ var Jr = function() {
|
|
|
17989
17989
|
* @throws ChecksumException if error correction fails
|
|
17990
17990
|
*/
|
|
17991
17991
|
decodeBooleanArray(e, t) {
|
|
17992
|
-
return this.decodeBitMatrix(
|
|
17992
|
+
return this.decodeBitMatrix(W.parseFromBooleanArray(e), t);
|
|
17993
17993
|
}
|
|
17994
17994
|
// public decodeBitMatrix(bits: BitMatrix): DecoderResult /*throws ChecksumException, FormatException*/ {
|
|
17995
17995
|
// return decode(bits, null)
|
|
@@ -18309,8 +18309,8 @@ var Jr = function() {
|
|
|
18309
18309
|
if (f = 2, this.hasSkipped === !0)
|
|
18310
18310
|
g = this.haveMultiplyConfirmedCenters();
|
|
18311
18311
|
else {
|
|
18312
|
-
const
|
|
18313
|
-
|
|
18312
|
+
const j = this.findRowSkip();
|
|
18313
|
+
j > _[2] && (y += j - _[2] - f, M = c - 1);
|
|
18314
18314
|
}
|
|
18315
18315
|
else {
|
|
18316
18316
|
_[0] = _[2], _[1] = _[3], _[2] = _[4], _[3] = 1, _[4] = 0, A = 3;
|
|
@@ -18677,12 +18677,12 @@ var Jr = function() {
|
|
|
18677
18677
|
const c = ai.computeDimension(t, n, r, l), f = ke.getProvisionalVersionForDimension(c), g = f.getDimensionForVersion() - 7;
|
|
18678
18678
|
let _ = null;
|
|
18679
18679
|
if (f.getAlignmentPatternCenters().length > 0) {
|
|
18680
|
-
const M = n.getX() - t.getX() + r.getX(), G = n.getY() - t.getY() + r.getY(),
|
|
18680
|
+
const M = n.getX() - t.getX() + r.getX(), G = n.getY() - t.getY() + r.getY(), j = 1 - 3 / g, J = (
|
|
18681
18681
|
/*(int) */
|
|
18682
|
-
Math.floor(t.getX() +
|
|
18682
|
+
Math.floor(t.getX() + j * (M - t.getX()))
|
|
18683
18683
|
), ae = (
|
|
18684
18684
|
/*(int) */
|
|
18685
|
-
Math.floor(t.getY() +
|
|
18685
|
+
Math.floor(t.getY() + j * (G - t.getY()))
|
|
18686
18686
|
);
|
|
18687
18687
|
for (let xe = 4; xe <= 16; xe <<= 1)
|
|
18688
18688
|
try {
|
|
@@ -18802,8 +18802,8 @@ var Jr = function() {
|
|
|
18802
18802
|
let y = 0;
|
|
18803
18803
|
const A = n + _;
|
|
18804
18804
|
for (let M = e, G = t; M !== A; M += _) {
|
|
18805
|
-
const
|
|
18806
|
-
if (y === 1 === this.image.get(
|
|
18805
|
+
const j = l ? G : M, J = l ? M : G;
|
|
18806
|
+
if (y === 1 === this.image.get(j, J)) {
|
|
18807
18807
|
if (y === 2)
|
|
18808
18808
|
return Ge.distance(M, G, e, t);
|
|
18809
18809
|
y++;
|
|
@@ -18920,13 +18920,13 @@ var Jr = function() {
|
|
|
18920
18920
|
throw new I();
|
|
18921
18921
|
l -= M;
|
|
18922
18922
|
}
|
|
18923
|
-
const G = new
|
|
18924
|
-
for (let
|
|
18923
|
+
const G = new W(_, v);
|
|
18924
|
+
for (let j = 0; j < v; j++) {
|
|
18925
18925
|
const J = l + /*(int) */
|
|
18926
|
-
Math.floor(
|
|
18926
|
+
Math.floor(j * r);
|
|
18927
18927
|
for (let ae = 0; ae < _; ae++)
|
|
18928
18928
|
e.get(f + /*(int) */
|
|
18929
|
-
Math.floor(ae * r), J) && G.set(ae,
|
|
18929
|
+
Math.floor(ae * r), J) && G.set(ae, j);
|
|
18930
18930
|
}
|
|
18931
18931
|
return G;
|
|
18932
18932
|
}
|
|
@@ -24915,7 +24915,7 @@ var Jr = function() {
|
|
|
24915
24915
|
*/
|
|
24916
24916
|
// @Override
|
|
24917
24917
|
toString() {
|
|
24918
|
-
let e = new
|
|
24918
|
+
let e = new q(
|
|
24919
24919
|
/*8 * this.getDegree()*/
|
|
24920
24920
|
);
|
|
24921
24921
|
for (let t = this.getDegree(); t >= 0; t--) {
|
|
@@ -25002,23 +25002,23 @@ var Jr = function() {
|
|
|
25002
25002
|
decode(e, t, n) {
|
|
25003
25003
|
let r = new en(this.field, e), l = new Int32Array(t), c = !1;
|
|
25004
25004
|
for (let G = t; G > 0; G--) {
|
|
25005
|
-
let
|
|
25006
|
-
l[t - G] =
|
|
25005
|
+
let j = r.evaluateAt(this.field.exp(G));
|
|
25006
|
+
l[t - G] = j, j !== 0 && (c = !0);
|
|
25007
25007
|
}
|
|
25008
25008
|
if (!c)
|
|
25009
25009
|
return 0;
|
|
25010
25010
|
let f = this.field.getOne();
|
|
25011
25011
|
if (n != null)
|
|
25012
25012
|
for (const G of n) {
|
|
25013
|
-
let
|
|
25013
|
+
let j = this.field.exp(e.length - 1 - G), J = new en(this.field, new Int32Array([this.field.subtract(0, j), 1]));
|
|
25014
25014
|
f = f.multiply(J);
|
|
25015
25015
|
}
|
|
25016
25016
|
let g = new en(this.field, l), _ = this.runEuclideanAlgorithm(this.field.buildMonomial(t, 1), g, t), v = _[0], y = _[1], A = this.findErrorLocations(v), M = this.findErrorMagnitudes(y, v, A);
|
|
25017
25017
|
for (let G = 0; G < A.length; G++) {
|
|
25018
|
-
let
|
|
25019
|
-
if (
|
|
25018
|
+
let j = e.length - 1 - this.field.log(A[G]);
|
|
25019
|
+
if (j < 0)
|
|
25020
25020
|
throw k.getChecksumInstance();
|
|
25021
|
-
e[
|
|
25021
|
+
e[j] = this.field.subtract(e[j], M[G]);
|
|
25022
25022
|
}
|
|
25023
25023
|
return A.length;
|
|
25024
25024
|
}
|
|
@@ -25043,7 +25043,7 @@ var Jr = function() {
|
|
|
25043
25043
|
if (r = l, c = f, r.isZero())
|
|
25044
25044
|
throw k.getChecksumInstance();
|
|
25045
25045
|
l = A;
|
|
25046
|
-
let G = this.field.getZero(),
|
|
25046
|
+
let G = this.field.getZero(), j = r.getCoefficient(r.getDegree()), J = this.field.inverse(j);
|
|
25047
25047
|
for (; l.getDegree() >= r.getDegree() && !l.isZero(); ) {
|
|
25048
25048
|
let ae = l.getDegree() - r.getDegree(), xe = this.field.multiply(l.getCoefficient(l.getDegree()), J);
|
|
25049
25049
|
G = G.add(this.field.buildMonomial(ae, xe)), l = l.subtract(r.multiplyByMonomial(ae, xe));
|
|
@@ -25218,9 +25218,9 @@ var Jr = function() {
|
|
|
25218
25218
|
break;
|
|
25219
25219
|
}
|
|
25220
25220
|
M = typeof M == "object" ? JSON.stringify(M) : (+M).toString(A);
|
|
25221
|
-
let G = parseInt(g),
|
|
25221
|
+
let G = parseInt(g), j = g && g[0] + "" == "0" ? "0" : " ";
|
|
25222
25222
|
for (; M.length < G; )
|
|
25223
|
-
M = f !== void 0 ? M +
|
|
25223
|
+
M = f !== void 0 ? M + j : j + M;
|
|
25224
25224
|
return M;
|
|
25225
25225
|
}
|
|
25226
25226
|
let l = /%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;
|
|
@@ -25352,10 +25352,10 @@ var Jr = function() {
|
|
|
25352
25352
|
else {
|
|
25353
25353
|
let G;
|
|
25354
25354
|
_ > 2 ? G = (_ - 2) * M : G = M;
|
|
25355
|
-
let
|
|
25356
|
-
for (let J = 1; J <= G && !
|
|
25357
|
-
|
|
25358
|
-
|
|
25355
|
+
let j = G >= y;
|
|
25356
|
+
for (let J = 1; J <= G && !j; J++)
|
|
25357
|
+
j = t[y - J] != null;
|
|
25358
|
+
j ? t[y] = null : (g = A.getRowNumber(), v = 1);
|
|
25359
25359
|
}
|
|
25360
25360
|
}
|
|
25361
25361
|
}
|
|
@@ -26149,7 +26149,7 @@ var Jr = function() {
|
|
|
26149
26149
|
* @throws FormatException
|
|
26150
26150
|
*/
|
|
26151
26151
|
static decode(e, t) {
|
|
26152
|
-
let n = new
|
|
26152
|
+
let n = new q(""), r = F.ISO8859_1;
|
|
26153
26153
|
n.enableDecoding(r);
|
|
26154
26154
|
let l = 1, c = e[l++], f = new Do();
|
|
26155
26155
|
for (; l < e[0]; ) {
|
|
@@ -26219,7 +26219,7 @@ var Jr = function() {
|
|
|
26219
26219
|
for (let f = 0; f < ie.NUMBER_OF_SEQUENCE_CODEWORDS; f++, t++)
|
|
26220
26220
|
r[f] = e[t];
|
|
26221
26221
|
n.setSegmentIndex(N.parseInt(ie.decodeBase900toBase10(r, ie.NUMBER_OF_SEQUENCE_CODEWORDS)));
|
|
26222
|
-
let l = new
|
|
26222
|
+
let l = new q();
|
|
26223
26223
|
t = ie.textCompaction(e, t, l), n.setFileId(l.toString());
|
|
26224
26224
|
let c = -1;
|
|
26225
26225
|
for (e[t] === ie.BEGIN_MACRO_PDF417_OPTIONAL_FIELD && (c = t + 1); t < e[0]; )
|
|
@@ -26227,31 +26227,31 @@ var Jr = function() {
|
|
|
26227
26227
|
case ie.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:
|
|
26228
26228
|
switch (t++, e[t]) {
|
|
26229
26229
|
case ie.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:
|
|
26230
|
-
let f = new
|
|
26230
|
+
let f = new q();
|
|
26231
26231
|
t = ie.textCompaction(e, t + 1, f), n.setFileName(f.toString());
|
|
26232
26232
|
break;
|
|
26233
26233
|
case ie.MACRO_PDF417_OPTIONAL_FIELD_SENDER:
|
|
26234
|
-
let g = new
|
|
26234
|
+
let g = new q();
|
|
26235
26235
|
t = ie.textCompaction(e, t + 1, g), n.setSender(g.toString());
|
|
26236
26236
|
break;
|
|
26237
26237
|
case ie.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:
|
|
26238
|
-
let _ = new
|
|
26238
|
+
let _ = new q();
|
|
26239
26239
|
t = ie.textCompaction(e, t + 1, _), n.setAddressee(_.toString());
|
|
26240
26240
|
break;
|
|
26241
26241
|
case ie.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:
|
|
26242
|
-
let v = new
|
|
26242
|
+
let v = new q();
|
|
26243
26243
|
t = ie.numericCompaction(e, t + 1, v), n.setSegmentCount(N.parseInt(v.toString()));
|
|
26244
26244
|
break;
|
|
26245
26245
|
case ie.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:
|
|
26246
|
-
let y = new
|
|
26246
|
+
let y = new q();
|
|
26247
26247
|
t = ie.numericCompaction(e, t + 1, y), n.setTimestamp(Bo.parseLong(y.toString()));
|
|
26248
26248
|
break;
|
|
26249
26249
|
case ie.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:
|
|
26250
|
-
let A = new
|
|
26250
|
+
let A = new q();
|
|
26251
26251
|
t = ie.numericCompaction(e, t + 1, A), n.setChecksum(N.parseInt(A.toString()));
|
|
26252
26252
|
break;
|
|
26253
26253
|
case ie.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:
|
|
26254
|
-
let M = new
|
|
26254
|
+
let M = new q();
|
|
26255
26255
|
t = ie.numericCompaction(e, t + 1, M), n.setFileSize(Bo.parseLong(M.toString()));
|
|
26256
26256
|
break;
|
|
26257
26257
|
default:
|
|
@@ -26675,9 +26675,9 @@ var Jr = function() {
|
|
|
26675
26675
|
for (let G = !0; ; G = !1) {
|
|
26676
26676
|
if (t != null && (_ = Ye.getRowIndicatorColumn(e, g, t, !0, c, f)), r != null && (v = Ye.getRowIndicatorColumn(e, g, r, !1, c, f)), y = Ye.merge(_, v), y == null)
|
|
26677
26677
|
throw I.getNotFoundInstance();
|
|
26678
|
-
let
|
|
26679
|
-
if (G &&
|
|
26680
|
-
g =
|
|
26678
|
+
let j = y.getBoundingBox();
|
|
26679
|
+
if (G && j != null && (j.getMinY() < g.getMinY() || j.getMaxY() > g.getMaxY()))
|
|
26680
|
+
g = j;
|
|
26681
26681
|
else
|
|
26682
26682
|
break;
|
|
26683
26683
|
}
|
|
@@ -26686,15 +26686,15 @@ var Jr = function() {
|
|
|
26686
26686
|
y.setDetectionResultColumn(0, _), y.setDetectionResultColumn(A, v);
|
|
26687
26687
|
let M = _ != null;
|
|
26688
26688
|
for (let G = 1; G <= A; G++) {
|
|
26689
|
-
let
|
|
26690
|
-
if (y.getDetectionResultColumn(
|
|
26689
|
+
let j = M ? G : A - G;
|
|
26690
|
+
if (y.getDetectionResultColumn(j) !== /* null */
|
|
26691
26691
|
void 0)
|
|
26692
26692
|
continue;
|
|
26693
26693
|
let J;
|
|
26694
|
-
|
|
26694
|
+
j === 0 || j === A ? J = new ko(g, j === 0) : J = new ci(g), y.setDetectionResultColumn(j, J);
|
|
26695
26695
|
let ae = -1, xe = ae;
|
|
26696
26696
|
for (let _e = g.getMinY(); _e <= g.getMaxY(); _e++) {
|
|
26697
|
-
if (ae = Ye.getStartColumn(y,
|
|
26697
|
+
if (ae = Ye.getStartColumn(y, j, _e, M), ae < 0 || ae > g.getMaxX()) {
|
|
26698
26698
|
if (xe === -1)
|
|
26699
26699
|
continue;
|
|
26700
26700
|
ae = xe;
|
|
@@ -26908,8 +26908,8 @@ var Jr = function() {
|
|
|
26908
26908
|
v = l + y;
|
|
26909
26909
|
else {
|
|
26910
26910
|
for (let G = 0; G < _.length / 2; G++) {
|
|
26911
|
-
let
|
|
26912
|
-
_[G] = _[_.length - 1 - G], _[_.length - 1 - G] =
|
|
26911
|
+
let j = _[G];
|
|
26912
|
+
_[G] = _[_.length - 1 - G], _[_.length - 1 - G] = j;
|
|
26913
26913
|
}
|
|
26914
26914
|
v = l, l = v - y;
|
|
26915
26915
|
}
|
|
@@ -27446,7 +27446,7 @@ var Jr = function() {
|
|
|
27446
27446
|
}
|
|
27447
27447
|
/*@Override*/
|
|
27448
27448
|
toString() {
|
|
27449
|
-
const e = new
|
|
27449
|
+
const e = new q();
|
|
27450
27450
|
for (let t = 0, n = this.height; t < n; ++t) {
|
|
27451
27451
|
const r = this.bytes[t];
|
|
27452
27452
|
for (let l = 0, c = this.width; l < c; ++l)
|
|
@@ -27488,7 +27488,7 @@ var Jr = function() {
|
|
|
27488
27488
|
}
|
|
27489
27489
|
/*@Override*/
|
|
27490
27490
|
toString() {
|
|
27491
|
-
const e = new
|
|
27491
|
+
const e = new q();
|
|
27492
27492
|
return e.append(`<<
|
|
27493
27493
|
`), e.append(" mode: "), e.append(this.mode ? this.mode.toString() : "null"), e.append(`
|
|
27494
27494
|
ecLevel: `), e.append(this.ecLevel ? this.ecLevel.toString() : "null"), e.append(`
|
|
@@ -27862,10 +27862,10 @@ var Jr = function() {
|
|
|
27862
27862
|
this.appendLengthInfo(y, _, c, v), v.appendBitArray(g);
|
|
27863
27863
|
const A = _.getECBlocksForLevel(t), M = _.getTotalCodewords() - A.getTotalECCodewords();
|
|
27864
27864
|
this.terminateBits(M, v);
|
|
27865
|
-
const G = this.interleaveWithECBytes(v, _.getTotalCodewords(), M, A.getNumBlocks()),
|
|
27866
|
-
|
|
27865
|
+
const G = this.interleaveWithECBytes(v, _.getTotalCodewords(), M, A.getNumBlocks()), j = new yr();
|
|
27866
|
+
j.setECLevel(t), j.setMode(c), j.setVersion(_);
|
|
27867
27867
|
const J = _.getDimensionForVersion(), ae = new Fi(J, J), xe = this.chooseMaskPattern(G, t, _, ae);
|
|
27868
|
-
return
|
|
27868
|
+
return j.setMaskPattern(xe), Pe.buildMatrix(G, t, _, xe, ae), j.setMatrix(ae), j;
|
|
27869
27869
|
}
|
|
27870
27870
|
/**
|
|
27871
27871
|
* Decides the smallest version of QR code that will contain all of the provided data.
|
|
@@ -28000,8 +28000,8 @@ var Jr = function() {
|
|
|
28000
28000
|
St.getNumDataBytesAndNumECBytesForBlockID(t, n, r, v, y, A);
|
|
28001
28001
|
const M = y[0], G = new Uint8Array(M);
|
|
28002
28002
|
e.toBytes(8 * l, G, 0, M);
|
|
28003
|
-
const
|
|
28004
|
-
g.push(new hc(G,
|
|
28003
|
+
const j = St.generateECBytes(G, A[0]);
|
|
28004
|
+
g.push(new hc(G, j)), c = Math.max(c, M), f = Math.max(f, j.length), l += y[0];
|
|
28005
28005
|
}
|
|
28006
28006
|
if (n !== l)
|
|
28007
28007
|
throw new wt("Data bytes does not match offset");
|
|
@@ -28274,14 +28274,14 @@ var Jr = function() {
|
|
|
28274
28274
|
const l = e.getMatrix();
|
|
28275
28275
|
if (l === null)
|
|
28276
28276
|
throw new qe();
|
|
28277
|
-
const c = l.getWidth(), f = l.getHeight(), g = c + r * 2, _ = f + r * 2, v = Math.max(t, g), y = Math.max(n, _), A = Math.min(Math.floor(v / g), Math.floor(y / _)), M = Math.floor((v - c * A) / 2), G = Math.floor((y - f * A) / 2),
|
|
28277
|
+
const c = l.getWidth(), f = l.getHeight(), g = c + r * 2, _ = f + r * 2, v = Math.max(t, g), y = Math.max(n, _), A = Math.min(Math.floor(v / g), Math.floor(y / _)), M = Math.floor((v - c * A) / 2), G = Math.floor((y - f * A) / 2), j = this.createSVGElement(v, y);
|
|
28278
28278
|
for (let J = 0, ae = G; J < f; J++, ae += A)
|
|
28279
28279
|
for (let xe = 0, _e = M; xe < c; xe++, _e += A)
|
|
28280
28280
|
if (l.get(xe, J) === 1) {
|
|
28281
28281
|
const fe = this.createSvgRectElement(_e, ae, A, A);
|
|
28282
|
-
|
|
28282
|
+
j.appendChild(fe);
|
|
28283
28283
|
}
|
|
28284
|
-
return
|
|
28284
|
+
return j;
|
|
28285
28285
|
}
|
|
28286
28286
|
/**
|
|
28287
28287
|
* Creates a SVG element.
|
|
@@ -28332,11 +28332,11 @@ var Jr = function() {
|
|
|
28332
28332
|
const l = e.getMatrix();
|
|
28333
28333
|
if (l === null)
|
|
28334
28334
|
throw new qe();
|
|
28335
|
-
const c = l.getWidth(), f = l.getHeight(), g = c + r * 2, _ = f + r * 2, v = Math.max(t, g), y = Math.max(n, _), A = Math.min(Math.floor(v / g), Math.floor(y / _)), M = Math.floor((v - c * A) / 2), G = Math.floor((y - f * A) / 2),
|
|
28335
|
+
const c = l.getWidth(), f = l.getHeight(), g = c + r * 2, _ = f + r * 2, v = Math.max(t, g), y = Math.max(n, _), A = Math.min(Math.floor(v / g), Math.floor(y / _)), M = Math.floor((v - c * A) / 2), G = Math.floor((y - f * A) / 2), j = new W(v, y);
|
|
28336
28336
|
for (let J = 0, ae = G; J < f; J++, ae += A)
|
|
28337
28337
|
for (let xe = 0, _e = M; xe < c; xe++, _e += A)
|
|
28338
|
-
l.get(xe, J) === 1 &&
|
|
28339
|
-
return
|
|
28338
|
+
l.get(xe, J) === 1 && j.setRegion(_e, ae, A, A);
|
|
28339
|
+
return j;
|
|
28340
28340
|
}
|
|
28341
28341
|
}
|
|
28342
28342
|
Xr.QUIET_ZONE_SIZE = 4;
|
|
@@ -28933,7 +28933,7 @@ var Jr = function() {
|
|
|
28933
28933
|
return t;
|
|
28934
28934
|
}
|
|
28935
28935
|
}
|
|
28936
|
-
class
|
|
28936
|
+
class ot {
|
|
28937
28937
|
constructor() {
|
|
28938
28938
|
}
|
|
28939
28939
|
/**
|
|
@@ -28943,7 +28943,7 @@ var Jr = function() {
|
|
|
28943
28943
|
* @return Aztec symbol matrix with metadata
|
|
28944
28944
|
*/
|
|
28945
28945
|
static encodeBytes(e) {
|
|
28946
|
-
return
|
|
28946
|
+
return ot.encode(e, ot.DEFAULT_EC_PERCENT, ot.DEFAULT_AZTEC_LAYERS);
|
|
28947
28947
|
}
|
|
28948
28948
|
/**
|
|
28949
28949
|
* Encodes the given binary content as an Aztec symbol
|
|
@@ -28956,56 +28956,56 @@ var Jr = function() {
|
|
|
28956
28956
|
*/
|
|
28957
28957
|
static encode(e, t, n) {
|
|
28958
28958
|
let r = new gi(e).encode(), l = N.truncDivision(r.getSize() * t, 100) + 11, c = r.getSize() + l, f, g, _, v, y;
|
|
28959
|
-
if (n !==
|
|
28960
|
-
if (f = n < 0, g = Math.abs(n), g > (f ?
|
|
28959
|
+
if (n !== ot.DEFAULT_AZTEC_LAYERS) {
|
|
28960
|
+
if (f = n < 0, g = Math.abs(n), g > (f ? ot.MAX_NB_BITS_COMPACT : ot.MAX_NB_BITS))
|
|
28961
28961
|
throw new C(re.format("Illegal value %s for layers", n));
|
|
28962
|
-
_ =
|
|
28962
|
+
_ = ot.totalBitsInLayer(g, f), v = ot.WORD_SIZE[g];
|
|
28963
28963
|
let fe = _ - _ % v;
|
|
28964
|
-
if (y =
|
|
28964
|
+
if (y = ot.stuffBits(r, v), y.getSize() + l > fe)
|
|
28965
28965
|
throw new C("Data to large for user specified layer");
|
|
28966
28966
|
if (f && y.getSize() > v * 64)
|
|
28967
28967
|
throw new C("Data to large for user specified layer");
|
|
28968
28968
|
} else {
|
|
28969
28969
|
v = 0, y = null;
|
|
28970
28970
|
for (let fe = 0; ; fe++) {
|
|
28971
|
-
if (fe >
|
|
28971
|
+
if (fe > ot.MAX_NB_BITS)
|
|
28972
28972
|
throw new C("Data too large for an Aztec code");
|
|
28973
|
-
if (f = fe <= 3, g = f ? fe + 1 : fe, _ =
|
|
28973
|
+
if (f = fe <= 3, g = f ? fe + 1 : fe, _ = ot.totalBitsInLayer(g, f), c > _)
|
|
28974
28974
|
continue;
|
|
28975
|
-
(y == null || v !==
|
|
28975
|
+
(y == null || v !== ot.WORD_SIZE[g]) && (v = ot.WORD_SIZE[g], y = ot.stuffBits(r, v));
|
|
28976
28976
|
let et = _ - _ % v;
|
|
28977
28977
|
if (!(f && y.getSize() > v * 64) && y.getSize() + l <= et)
|
|
28978
28978
|
break;
|
|
28979
28979
|
}
|
|
28980
28980
|
}
|
|
28981
|
-
let A =
|
|
28981
|
+
let A = ot.generateCheckWords(y, _, v), M = y.getSize() / v, G = ot.generateModeMessage(f, g, M), j = (f ? 11 : 14) + g * 4, J = new Int32Array(j), ae;
|
|
28982
28982
|
if (f) {
|
|
28983
|
-
ae =
|
|
28983
|
+
ae = j;
|
|
28984
28984
|
for (let fe = 0; fe < J.length; fe++)
|
|
28985
28985
|
J[fe] = fe;
|
|
28986
28986
|
} else {
|
|
28987
|
-
ae =
|
|
28988
|
-
let fe = N.truncDivision(
|
|
28987
|
+
ae = j + 1 + 2 * N.truncDivision(N.truncDivision(j, 2) - 1, 15);
|
|
28988
|
+
let fe = N.truncDivision(j, 2), et = N.truncDivision(ae, 2);
|
|
28989
28989
|
for (let Ve = 0; Ve < fe; Ve++) {
|
|
28990
28990
|
let pn = Ve + N.truncDivision(Ve, 15);
|
|
28991
28991
|
J[fe - Ve - 1] = et - pn - 1, J[fe + Ve] = et + pn + 1;
|
|
28992
28992
|
}
|
|
28993
28993
|
}
|
|
28994
|
-
let xe = new
|
|
28994
|
+
let xe = new W(ae);
|
|
28995
28995
|
for (let fe = 0, et = 0; fe < g; fe++) {
|
|
28996
28996
|
let Ve = (g - fe) * 4 + (f ? 9 : 12);
|
|
28997
28997
|
for (let pn = 0; pn < Ve; pn++) {
|
|
28998
28998
|
let Hn = pn * 2;
|
|
28999
28999
|
for (let mn = 0; mn < 2; mn++)
|
|
29000
|
-
A.get(et + Hn + mn) && xe.set(J[fe * 2 + mn], J[fe * 2 + pn]), A.get(et + Ve * 2 + Hn + mn) && xe.set(J[fe * 2 + pn], J[
|
|
29000
|
+
A.get(et + Hn + mn) && xe.set(J[fe * 2 + mn], J[fe * 2 + pn]), A.get(et + Ve * 2 + Hn + mn) && xe.set(J[fe * 2 + pn], J[j - 1 - fe * 2 - mn]), A.get(et + Ve * 4 + Hn + mn) && xe.set(J[j - 1 - fe * 2 - mn], J[j - 1 - fe * 2 - pn]), A.get(et + Ve * 6 + Hn + mn) && xe.set(J[j - 1 - fe * 2 - pn], J[fe * 2 + mn]);
|
|
29001
29001
|
}
|
|
29002
29002
|
et += Ve * 8;
|
|
29003
29003
|
}
|
|
29004
|
-
if (
|
|
29005
|
-
|
|
29004
|
+
if (ot.drawModeMessage(xe, f, ae, G), f)
|
|
29005
|
+
ot.drawBullsEye(xe, N.truncDivision(ae, 2), 5);
|
|
29006
29006
|
else {
|
|
29007
|
-
|
|
29008
|
-
for (let fe = 0, et = 0; fe < N.truncDivision(
|
|
29007
|
+
ot.drawBullsEye(xe, N.truncDivision(ae, 2), 7);
|
|
29008
|
+
for (let fe = 0, et = 0; fe < N.truncDivision(j, 2) - 1; fe += 15, et += 16)
|
|
29009
29009
|
for (let Ve = N.truncDivision(ae, 2) & 1; Ve < ae; Ve += 2)
|
|
29010
29010
|
xe.set(N.truncDivision(ae, 2) - et, Ve), xe.set(N.truncDivision(ae, 2) + et, Ve), xe.set(Ve, N.truncDivision(ae, 2) - et), xe.set(Ve, N.truncDivision(ae, 2) + et);
|
|
29011
29011
|
}
|
|
@@ -29020,7 +29020,7 @@ var Jr = function() {
|
|
|
29020
29020
|
}
|
|
29021
29021
|
static generateModeMessage(e, t, n) {
|
|
29022
29022
|
let r = new U();
|
|
29023
|
-
return e ? (r.appendBits(t - 1, 2), r.appendBits(n - 1, 6), r =
|
|
29023
|
+
return e ? (r.appendBits(t - 1, 2), r.appendBits(n - 1, 6), r = ot.generateCheckWords(r, 28, 4)) : (r.appendBits(t - 1, 5), r.appendBits(n - 1, 11), r = ot.generateCheckWords(r, 40, 4)), r;
|
|
29024
29024
|
}
|
|
29025
29025
|
static drawModeMessage(e, t, n, r) {
|
|
29026
29026
|
let l = N.truncDivision(n, 2);
|
|
@@ -29036,7 +29036,7 @@ var Jr = function() {
|
|
|
29036
29036
|
}
|
|
29037
29037
|
}
|
|
29038
29038
|
static generateCheckWords(e, t, n) {
|
|
29039
|
-
let r = e.getSize() / n, l = new Ns(
|
|
29039
|
+
let r = e.getSize() / n, l = new Ns(ot.getGF(n)), c = N.truncDivision(t, n), f = ot.bitsToWords(e, n, c);
|
|
29040
29040
|
l.encode(f, c - r);
|
|
29041
29041
|
let g = t % n, _ = new U();
|
|
29042
29042
|
_.appendBits(0, g);
|
|
@@ -29084,7 +29084,7 @@ var Jr = function() {
|
|
|
29084
29084
|
return ((t ? 88 : 112) + 16 * e) * e;
|
|
29085
29085
|
}
|
|
29086
29086
|
}
|
|
29087
|
-
|
|
29087
|
+
ot.DEFAULT_EC_PERCENT = 33, ot.DEFAULT_AZTEC_LAYERS = 0, ot.MAX_NB_BITS = 32, ot.MAX_NB_BITS_COMPACT = 4, ot.WORD_SIZE = Int32Array.from([
|
|
29088
29088
|
4,
|
|
29089
29089
|
6,
|
|
29090
29090
|
6,
|
|
@@ -29126,27 +29126,27 @@ var Jr = function() {
|
|
|
29126
29126
|
}
|
|
29127
29127
|
// @Override
|
|
29128
29128
|
encodeWithHints(e, t, n, r, l) {
|
|
29129
|
-
let c = Ms.ISO_8859_1, f =
|
|
29129
|
+
let c = Ms.ISO_8859_1, f = ot.DEFAULT_EC_PERCENT, g = ot.DEFAULT_AZTEC_LAYERS;
|
|
29130
29130
|
return l != null && (l.has(qt.CHARACTER_SET) && (c = Uo.forName(l.get(qt.CHARACTER_SET).toString())), l.has(qt.ERROR_CORRECTION) && (f = N.parseInt(l.get(qt.ERROR_CORRECTION).toString())), l.has(qt.AZTEC_LAYERS) && (g = N.parseInt(l.get(qt.AZTEC_LAYERS).toString()))), Hi.encodeLayers(e, t, n, r, c, f, g);
|
|
29131
29131
|
}
|
|
29132
29132
|
static encodeLayers(e, t, n, r, l, c, f) {
|
|
29133
29133
|
if (t !== Ae.AZTEC)
|
|
29134
29134
|
throw new C("Can only encode AZTEC, but got " + t);
|
|
29135
|
-
let g =
|
|
29135
|
+
let g = ot.encode(re.getBytes(e, l), c, f);
|
|
29136
29136
|
return Hi.renderResult(g, n, r);
|
|
29137
29137
|
}
|
|
29138
29138
|
static renderResult(e, t, n) {
|
|
29139
29139
|
let r = e.getMatrix();
|
|
29140
29140
|
if (r == null)
|
|
29141
29141
|
throw new qe();
|
|
29142
|
-
let l = r.getWidth(), c = r.getHeight(), f = Math.max(t, l), g = Math.max(n, c), _ = Math.min(f / l, g / c), v = (f - l * _) / 2, y = (g - c * _) / 2, A = new
|
|
29142
|
+
let l = r.getWidth(), c = r.getHeight(), f = Math.max(t, l), g = Math.max(n, c), _ = Math.min(f / l, g / c), v = (f - l * _) / 2, y = (g - c * _) / 2, A = new W(f, g);
|
|
29143
29143
|
for (let M = 0, G = y; M < c; M++, G += _)
|
|
29144
|
-
for (let
|
|
29145
|
-
r.get(
|
|
29144
|
+
for (let j = 0, J = v; j < l; j++, J += _)
|
|
29145
|
+
r.get(j, M) && A.setRegion(J, G, _, _);
|
|
29146
29146
|
return A;
|
|
29147
29147
|
}
|
|
29148
29148
|
}
|
|
29149
|
-
o.AbstractExpandedDecoder = vs, o.ArgumentException = w, o.ArithmeticException = ht, o.AztecCode = Ho, o.AztecCodeReader = Hr, o.AztecCodeWriter = Hi, o.AztecDecoder = at, o.AztecDetector = Mi, o.AztecDetectorResult = oi, o.AztecEncoder =
|
|
29149
|
+
o.AbstractExpandedDecoder = vs, o.ArgumentException = w, o.ArithmeticException = ht, o.AztecCode = Ho, o.AztecCodeReader = Hr, o.AztecCodeWriter = Hi, o.AztecDecoder = at, o.AztecDetector = Mi, o.AztecDetectorResult = oi, o.AztecEncoder = ot, o.AztecHighLevelEncoder = gi, o.AztecPoint = Qt, o.BarcodeFormat = Ae, o.Binarizer = T, o.BinaryBitmap = S, o.BitArray = U, o.BitMatrix = W, o.BitSource = As, o.BrowserAztecCodeReader = ws, o.BrowserBarcodeReader = Kl, o.BrowserCodeReader = Ee, o.BrowserDatamatrixCodeReader = Jl, o.BrowserMultiFormatReader = uc, o.BrowserPDF417Reader = dc, o.BrowserQRCodeReader = fc, o.BrowserQRCodeSvgWriter = Ar, o.CharacterSetECI = F, o.ChecksumException = k, o.Code128Reader = ve, o.Code39Reader = Dt, o.DataMatrixDecodedBitStreamParser = ur, o.DataMatrixReader = dr, o.DecodeHintType = K, o.DecoderResult = ct, o.DefaultGridSampler = Oi, o.DetectorResult = Fr, o.EAN13Reader = Jt, o.EncodeHintType = qt, o.Exception = x, o.FormatException = z, o.GenericGF = Fe, o.GenericGFPoly = je, o.GlobalHistogramBinarizer = $, o.GridSampler = Ur, o.GridSamplerInstance = Xn, o.HTMLCanvasElementLuminanceSource = le, o.HybridBinarizer = Z, o.ITFReader = ut, o.IllegalArgumentException = C, o.IllegalStateException = qe, o.InvertedLuminanceSource = ee, o.LuminanceSource = Y, o.MathUtils = Ge, o.MultiFormatOneDReader = Wr, o.MultiFormatReader = Fo, o.MultiFormatWriter = gc, o.NotFoundException = I, o.OneDReader = yt, o.PDF417DecodedBitStreamParser = ie, o.PDF417DecoderErrorCorrection = Mo, o.PDF417Reader = tn, o.PDF417ResultMetadata = Do, o.PerspectiveTransform = yn, o.PlanarYUVLuminanceSource = $n, o.QRCodeByteMatrix = Fi, o.QRCodeDataMask = Nn, o.QRCodeDecodedBitStreamParser = Bt, o.QRCodeDecoderErrorCorrectionLevel = At, o.QRCodeDecoderFormatInformation = on, o.QRCodeEncoder = St, o.QRCodeEncoderQRCode = yr, o.QRCodeMaskUtil = Ut, o.QRCodeMatrixUtil = Pe, o.QRCodeMode = De, o.QRCodeReader = fr, o.QRCodeVersion = ke, o.QRCodeWriter = Xr, o.RGBLuminanceSource = Os, o.RSS14Reader = Ft, o.RSSExpandedReader = de, o.ReaderException = Li, o.ReedSolomonDecoder = Pt, o.ReedSolomonEncoder = Ns, o.ReedSolomonException = Oe, o.Result = Ce, o.ResultMetadataType = Re, o.ResultPoint = Te, o.StringUtils = re, o.UnsupportedOperationException = oe, o.VideoInputDevice = me, o.WhiteRectangleDetector = Xt, o.WriterException = wt, o.ZXingArrays = D, o.ZXingCharset = Uo, o.ZXingInteger = N, o.ZXingStandardCharsets = Ms, o.ZXingStringBuilder = q, o.ZXingStringEncoding = te, o.ZXingSystem = P, o.createAbstractExpandedDecoder = No, Object.defineProperty(o, "__esModule", { value: !0 });
|
|
29150
29150
|
});
|
|
29151
29151
|
})(oo, oo.exports);
|
|
29152
29152
|
var Tt = oo.exports;
|
|
@@ -30268,10 +30268,10 @@ var gm = function() {
|
|
|
30268
30268
|
}
|
|
30269
30269
|
var P = Tn.FILE_SCAN_HIDDEN_CANVAS_PADDING, B = Math.max(h.width, S.width), H = Math.max(h.height, S.height), D = B + 2 * P, N = H + 2 * P, U = s.createCanvasElement(D, N);
|
|
30270
30270
|
x.appendChild(U);
|
|
30271
|
-
var
|
|
30272
|
-
if (!
|
|
30271
|
+
var X = U.getContext("2d");
|
|
30272
|
+
if (!X)
|
|
30273
30273
|
throw "Unable to get 2d context from canvas";
|
|
30274
|
-
|
|
30274
|
+
X.canvas.width = D, X.canvas.height = N, X.drawImage(h, 0, 0, p, m, P, P, B, H);
|
|
30275
30275
|
try {
|
|
30276
30276
|
s.qrcode.decodeRobustlyAsync(U).then(function(K) {
|
|
30277
30277
|
u(Na.createFromQrcodeResult(K));
|
|
@@ -30546,7 +30546,7 @@ const wm = {
|
|
|
30546
30546
|
}
|
|
30547
30547
|
},
|
|
30548
30548
|
setup(i) {
|
|
30549
|
-
return (a, o) => (
|
|
30549
|
+
return (a, o) => (V(), Q("svg", wm, [
|
|
30550
30550
|
E("path", {
|
|
30551
30551
|
d: "M11 11H7V7h4ZM17 7h-2v2h2ZM13 17h4v-4h-4ZM7 17h2v-2H7Z",
|
|
30552
30552
|
stroke: i.color,
|
|
@@ -30985,16 +30985,16 @@ const wm = {
|
|
|
30985
30985
|
var K, z, L;
|
|
30986
30986
|
if (console.log(H, D), p.value) return;
|
|
30987
30987
|
o.isQr || (p.value = !0), B();
|
|
30988
|
-
const N = /[?&]table_id=([a-zA-Z0-9-]+)/, U = H.match(N),
|
|
30988
|
+
const N = /[?&]table_id=([a-zA-Z0-9-]+)/, U = H.match(N), X = H.match(/\/([a-f0-9\-]{36})\?/);
|
|
30989
30989
|
if (o.isQr) {
|
|
30990
|
-
if (U &&
|
|
30991
|
-
return (K = o.takeDataTable) == null ? void 0 : K.call(o,
|
|
30990
|
+
if (U && X)
|
|
30991
|
+
return (K = o.takeDataTable) == null ? void 0 : K.call(o, X[1], U[1], "qr");
|
|
30992
30992
|
{
|
|
30993
30993
|
const F = localStorage.getItem("orgID");
|
|
30994
30994
|
if (F) {
|
|
30995
30995
|
const oe = await o.axiosInstanceGet.get(`org_unit/${F}/table`, { params: { external_link: H } }).then((te) => {
|
|
30996
|
-
var re,
|
|
30997
|
-
return ((re = te.data) == null ? void 0 : re.length) > 0 ? (
|
|
30996
|
+
var re, q;
|
|
30997
|
+
return ((re = te.data) == null ? void 0 : re.length) > 0 ? (q = te.data[0]) == null ? void 0 : q.id : null;
|
|
30998
30998
|
}).catch(() => null);
|
|
30999
30999
|
if (oe)
|
|
31000
31000
|
return (z = o.takeDataTable) == null ? void 0 : z.call(o, F, oe);
|
|
@@ -31040,20 +31040,20 @@ const wm = {
|
|
|
31040
31040
|
let D;
|
|
31041
31041
|
if (o.isQr)
|
|
31042
31042
|
D = H.find(
|
|
31043
|
-
(
|
|
31044
|
-
(K) => new RegExp(K, "i").test(
|
|
31043
|
+
(X) => Vs.back.some(
|
|
31044
|
+
(K) => new RegExp(K, "i").test(X.label)
|
|
31045
31045
|
)
|
|
31046
31046
|
), D || (D = H.find(
|
|
31047
|
-
(
|
|
31048
|
-
(K) => new RegExp(K, "i").test(
|
|
31047
|
+
(X) => Vs.front.some(
|
|
31048
|
+
(K) => new RegExp(K, "i").test(X.label)
|
|
31049
31049
|
)
|
|
31050
31050
|
));
|
|
31051
31051
|
else if (D = H.find(
|
|
31052
|
-
(
|
|
31053
|
-
(K) => new RegExp(K, "i").test(
|
|
31052
|
+
(X) => Vs.front.some(
|
|
31053
|
+
(K) => new RegExp(K, "i").test(X.label)
|
|
31054
31054
|
)
|
|
31055
31055
|
), D || (D = H.find(
|
|
31056
|
-
(
|
|
31056
|
+
(X) => new RegExp("amera", "i").test(X.label)
|
|
31057
31057
|
)), !D) {
|
|
31058
31058
|
C("update:is_notification", !0), C("update:notificationData", {
|
|
31059
31059
|
textNotification: "Не найдена фронтальная камера. Для сканирования карт нужна фронтальная камера."
|
|
@@ -31091,14 +31091,14 @@ const wm = {
|
|
|
31091
31091
|
};
|
|
31092
31092
|
return Ln(() => {
|
|
31093
31093
|
u.value && B(), m && (clearTimeout(m), m = null), p.value = !1, h.value = !1, d.value = !1;
|
|
31094
|
-
}), (H, D) => (
|
|
31095
|
-
(
|
|
31094
|
+
}), (H, D) => (V(), Q("div", null, [
|
|
31095
|
+
(V(), Mt(Ei, { to: "body" }, [
|
|
31096
31096
|
Yt(E("div", {
|
|
31097
31097
|
class: "blackWindow",
|
|
31098
31098
|
onClick: B
|
|
31099
31099
|
}, [
|
|
31100
31100
|
D[0] || (D[0] = E("div", { id: "reader" }, null, -1)),
|
|
31101
|
-
d.value && !i.isQr ? (
|
|
31101
|
+
d.value && !i.isQr ? (V(), Q("p", Im, "Наведите QR на камеру")) : he("", !0)
|
|
31102
31102
|
], 512), [
|
|
31103
31103
|
[qa, u.value]
|
|
31104
31104
|
])
|
|
@@ -31255,27 +31255,27 @@ const Xx = {
|
|
|
31255
31255
|
[s, m, m, m, m, m, s, s],
|
|
31256
31256
|
[s, s, s, s, s, s, s, s]
|
|
31257
31257
|
];
|
|
31258
|
-
function T(
|
|
31258
|
+
function T(W, I, $, Z, Y, ee) {
|
|
31259
31259
|
const le = I.length, me = I[0].length;
|
|
31260
31260
|
for (let ge = 0; ge < le; ge++)
|
|
31261
31261
|
for (let Ee = 0; Ee < me; Ee++) {
|
|
31262
31262
|
const Ce = I[ge][Ee];
|
|
31263
31263
|
if (!Ce) continue;
|
|
31264
31264
|
const ze = ee ? $ + (me - 1 - Ee) * Y : $ + Ee * Y, Ae = Z + ge * Y;
|
|
31265
|
-
|
|
31265
|
+
W.fillStyle = Ce, W.fillRect(ze, Ae, Y, Y);
|
|
31266
31266
|
}
|
|
31267
31267
|
}
|
|
31268
|
-
let P, B, H, D, N, U,
|
|
31268
|
+
let P, B, H, D, N, U, X, K, z, L, F, oe = !1;
|
|
31269
31269
|
function te() {
|
|
31270
|
-
K = i.height * 0.46, B = -20 * o, H = K, D = 3.2, N = 0, P = "enter", U = 0,
|
|
31270
|
+
K = i.height * 0.46, B = -20 * o, H = K, D = 3.2, N = 0, P = "enter", U = 0, X = 0, F = !1, z = K - 32 * o, L = 0, oe = !0;
|
|
31271
31271
|
}
|
|
31272
31272
|
function re() {
|
|
31273
31273
|
return i.width / 2 - 6 * o;
|
|
31274
31274
|
}
|
|
31275
|
-
function
|
|
31275
|
+
function q() {
|
|
31276
31276
|
if (!oe) return;
|
|
31277
|
-
const
|
|
31278
|
-
a.clearRect(0, 0,
|
|
31277
|
+
const W = i.width, I = i.height;
|
|
31278
|
+
a.clearRect(0, 0, W, I), F && (z += L, L += 0.4, T(a, k, i.width / 2 - 3 * o, z, o, !1), z > I + 16 * o && (F = !1)), (P === "enter" || P === "exit") && (X++, X >= 6 && (X = 0, U = (U + 1) % 3));
|
|
31279
31279
|
const $ = [x, w, C];
|
|
31280
31280
|
if (P === "enter")
|
|
31281
31281
|
B += D, T(a, $[U], B, H, o, !1), B + 5 * o >= re() && (P = "bump_up", D = 0, N = -7);
|
|
@@ -31285,14 +31285,14 @@ const Xx = {
|
|
|
31285
31285
|
N += 0.7, H += N, T(a, S, B, H, o, !1), H >= K && (H = K, N = 0, D = -3.2, P = "exit");
|
|
31286
31286
|
else if (P === "exit" && (B += D, T(a, $[U], B, H, o, !0), B < -20 * o)) {
|
|
31287
31287
|
oe = !1, setTimeout(() => {
|
|
31288
|
-
te(),
|
|
31288
|
+
te(), q();
|
|
31289
31289
|
}, 2500);
|
|
31290
31290
|
return;
|
|
31291
31291
|
}
|
|
31292
|
-
requestAnimationFrame(
|
|
31292
|
+
requestAnimationFrame(q);
|
|
31293
31293
|
}
|
|
31294
31294
|
setTimeout(() => {
|
|
31295
|
-
te(),
|
|
31295
|
+
te(), q();
|
|
31296
31296
|
}, 1200);
|
|
31297
31297
|
},
|
|
31298
31298
|
unmounted(i) {
|
|
@@ -31408,34 +31408,34 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31408
31408
|
try {
|
|
31409
31409
|
if (k.type) return;
|
|
31410
31410
|
h.value.kiosk_hide_menu_update_notification || (x.value.textNotification = "Мы обновили меню");
|
|
31411
|
-
const T = k.params || k, P = T.active_groups || [], B = T.updated_groups || [], H = T.updated_product_groups || [], D = await Lr(), N = new Set(P.map((te) => te)), U = new Map(p.value.map((te) => [te.id, te])),
|
|
31411
|
+
const T = k.params || k, P = T.active_groups || [], B = T.updated_groups || [], H = T.updated_product_groups || [], D = await Lr(), N = new Set(P.map((te) => te)), U = new Map(p.value.map((te) => [te.id, te])), X = [], K = D.transaction("groups", "readwrite");
|
|
31412
31412
|
let L = await K.objectStore("groups").openCursor();
|
|
31413
31413
|
for (; L; ) {
|
|
31414
31414
|
const te = L.key;
|
|
31415
|
-
!N.has(te) && te !== i && (
|
|
31415
|
+
!N.has(te) && te !== i && (X.push(te), await L.delete(), U.delete(te)), L = await L.continue();
|
|
31416
31416
|
}
|
|
31417
|
-
await K.done, p.value = Array.from(U.values()),
|
|
31417
|
+
await K.done, p.value = Array.from(U.values()), X.length > 0 && await Om(N);
|
|
31418
31418
|
const F = [
|
|
31419
31419
|
...B.map((te) => Ga(async () => {
|
|
31420
|
-
const [re,
|
|
31420
|
+
const [re, q] = await Promise.all([
|
|
31421
31421
|
S.getGroupByID(te),
|
|
31422
31422
|
S.loadGroupProducts(te)
|
|
31423
31423
|
]);
|
|
31424
|
-
re.products =
|
|
31424
|
+
re.products = q, U.set(te, re), await Ci(te, re), await Wa(re, q, !0);
|
|
31425
31425
|
})),
|
|
31426
31426
|
...H.map((te) => Ga(async () => {
|
|
31427
|
-
const [re,
|
|
31427
|
+
const [re, q] = await Promise.all([
|
|
31428
31428
|
S.getGroupByID(te),
|
|
31429
31429
|
S.loadGroupProducts(te)
|
|
31430
31430
|
]);
|
|
31431
|
-
re.products =
|
|
31431
|
+
re.products = q, U.set(te, re), await Ci(te, re), await Wa(re, q, !0), await Mm(q, te);
|
|
31432
31432
|
}))
|
|
31433
31433
|
];
|
|
31434
31434
|
await Promise.all(F), p.value = Array.from(U.values()), await nu(i, p), x.value.textNotification.length > 1 && (m.value = !0);
|
|
31435
31435
|
const oe = w.value.openCard;
|
|
31436
31436
|
if (oe != null && oe.id) {
|
|
31437
31437
|
const te = new Set(oe.groups ?? []), re = /* @__PURE__ */ new Set();
|
|
31438
|
-
let
|
|
31438
|
+
let q = !1;
|
|
31439
31439
|
for (const I of U.values()) {
|
|
31440
31440
|
const $ = I == null ? void 0 : I.products;
|
|
31441
31441
|
if (!Array.isArray($)) continue;
|
|
@@ -31444,13 +31444,13 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31444
31444
|
C.value = { id: null, visible: !1 }, d.reset();
|
|
31445
31445
|
return;
|
|
31446
31446
|
}
|
|
31447
|
-
Z && (I == null ? void 0 : I.id) != null && (re.add(I.id), (B.includes(I.id) || H.includes(I.id)) && (
|
|
31447
|
+
Z && (I == null ? void 0 : I.id) != null && (re.add(I.id), (B.includes(I.id) || H.includes(I.id)) && (q = !0));
|
|
31448
31448
|
}
|
|
31449
31449
|
if (re.size === 0) {
|
|
31450
31450
|
C.value = { id: null, visible: !1 }, d.reset();
|
|
31451
31451
|
return;
|
|
31452
31452
|
}
|
|
31453
|
-
(!(te.size === re.size && [...te].every((I) => re.has(I))) ||
|
|
31453
|
+
(!(te.size === re.size && [...te].every((I) => re.has(I))) || q) && await S.getSingleProduct(oe == null ? void 0 : oe.id);
|
|
31454
31454
|
}
|
|
31455
31455
|
} catch (T) {
|
|
31456
31456
|
console.error("ошибка обновления indexedDB [updateIndexedDB]", T);
|
|
@@ -31535,7 +31535,7 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31535
31535
|
};
|
|
31536
31536
|
u.value.push(D);
|
|
31537
31537
|
const U = setTimeout(() => {
|
|
31538
|
-
u.value = u.value.filter((
|
|
31538
|
+
u.value = u.value.filter((X) => X.id !== D.id), clearTimeout(U);
|
|
31539
31539
|
}, (T + k + 1) * 1e3);
|
|
31540
31540
|
}, m = () => {
|
|
31541
31541
|
if (!s.value) {
|
|
@@ -31555,8 +31555,8 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31555
31555
|
x();
|
|
31556
31556
|
}), xt(o, (w, C) => {
|
|
31557
31557
|
w === "visible" && C === "hidden" && m(), w === "hidden" && C === "visible" && x();
|
|
31558
|
-
}), (w, C) => O(s) ? he("", !0) : (
|
|
31559
|
-
(
|
|
31558
|
+
}), (w, C) => O(s) ? he("", !0) : (V(), Q("div", Dm, [
|
|
31559
|
+
(V(!0), Q(bt, null, rn(u.value, (S) => (V(), Q("span", {
|
|
31560
31560
|
key: S.id,
|
|
31561
31561
|
class: "heart",
|
|
31562
31562
|
style: Gt(S.style)
|
|
@@ -31574,7 +31574,7 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31574
31574
|
() => a.id,
|
|
31575
31575
|
() => a.fallback
|
|
31576
31576
|
);
|
|
31577
|
-
return (s, u) => (
|
|
31577
|
+
return (s, u) => (V(), Q("img", {
|
|
31578
31578
|
src: O(o) || ""
|
|
31579
31579
|
}, null, 8, Bm));
|
|
31580
31580
|
}
|
|
@@ -31599,11 +31599,11 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31599
31599
|
if (d.isTableService && d.hasOrder && !((C = p.value) != null && C.length)) return s.push({ name: "order-ts" });
|
|
31600
31600
|
o("goToCart");
|
|
31601
31601
|
};
|
|
31602
|
-
return (C, S) => (
|
|
31602
|
+
return (C, S) => (V(), Q("div", Lm, [
|
|
31603
31603
|
E("div", Fm, [
|
|
31604
31604
|
E("div", Um, [
|
|
31605
|
-
O(h) > 0 && x.value.length > 0 ? (
|
|
31606
|
-
(
|
|
31605
|
+
O(h) > 0 && x.value.length > 0 ? (V(), Q("div", Hm, [
|
|
31606
|
+
(V(!0), Q(bt, null, rn(x.value, (k) => (V(), Q("div", {
|
|
31607
31607
|
key: k.id,
|
|
31608
31608
|
class: "filter_image_product"
|
|
31609
31609
|
}, [
|
|
@@ -31674,7 +31674,7 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31674
31674
|
return i.i = o ? -1 : Rr(a - 1, i.i), i.l = a, s > 0 ? (wi(i.u, s), wi(i.t, s, o), i.o * s) : (i.u.splice(s), (o ? i.t.splice(0, -s) : i.t.splice(s)).reduce((u, d) => u - (d === -1 ? i.o : d), 0));
|
|
31675
31675
|
}, Vm = (i) => i.documentElement, Xm = (i) => i.ownerDocument, jm = (i) => i.defaultView, ql = /* @__PURE__ */ Xl(() => !!/iP(hone|od|ad)/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 0), qm = /* @__PURE__ */ Xl(() => "scrollBehavior" in Vm(document).style), $m = (i, a = 40, o = 0, s, u = !1) => {
|
|
31676
31676
|
let d = !!o, h = 1, p = 0, m = 0, x = 0, w = 0, C = 0, S = 0, k = 0, T = 0, P = yi, B = [0, d ? Gn(o - 1, 0) : -1], H = 0, D = !1;
|
|
31677
|
-
const N = ((
|
|
31677
|
+
const N = ((q, W, I) => ({ o: W, t: I ? wi(I.slice(0, Rr(q, I.length)), Gn(0, q - I.length)) : wi([], q), l: q, i: -1, u: wi([], q + 1) }))(i, s ? s[1] : a, s && s[0]), U = /* @__PURE__ */ new Set(), X = () => x - m, K = () => X() + C + w, z = (q, W) => ((I, $, Z, Y) => {
|
|
31678
31678
|
if (Y = Rr(Y, I.l - 1), es(I, Y) <= $) {
|
|
31679
31679
|
const ee = Zr(I, Z, Y);
|
|
31680
31680
|
return [Zr(I, $, Y, ee), ee];
|
|
@@ -31683,38 +31683,38 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31683
31683
|
const ee = Zr(I, $, void 0, Y);
|
|
31684
31684
|
return [ee, Zr(I, Z, ee)];
|
|
31685
31685
|
}
|
|
31686
|
-
})(N,
|
|
31687
|
-
const I = es(N,
|
|
31688
|
-
return
|
|
31689
|
-
}, oe = (
|
|
31690
|
-
|
|
31686
|
+
})(N, q, W, B[0]), L = () => es(N, N.l), F = (q, W) => {
|
|
31687
|
+
const I = es(N, q) - C;
|
|
31688
|
+
return W ? L() - I - oe(q) : I;
|
|
31689
|
+
}, oe = (q) => jl(N, q), te = (q, W = -1) => N.t[q] === W, re = (q) => {
|
|
31690
|
+
q && (ql() && k !== 0 || P && T === 1 ? C += q : w += q);
|
|
31691
31691
|
};
|
|
31692
31692
|
return { p: () => {
|
|
31693
31693
|
U.clear();
|
|
31694
|
-
}, h: () => h, m: () => ((
|
|
31694
|
+
}, h: () => h, m: () => ((q) => [q.t.slice(), q.o])(N), v: (q = 200) => {
|
|
31695
31695
|
if (!D || d) return B;
|
|
31696
|
-
let
|
|
31697
|
-
if (S) [
|
|
31696
|
+
let W, I;
|
|
31697
|
+
if (S) [W, I] = B;
|
|
31698
31698
|
else {
|
|
31699
31699
|
let $ = Gn(0, K()), Z = $ + p;
|
|
31700
|
-
u || (
|
|
31700
|
+
u || (q = Gn(0, q), k !== 1 && ($ -= q), k !== 2 && (Z += q)), [W, I] = B = z(Gn(0, $), Gn(0, Z)), P && (W = Rr(W, P[0]), I = Gn(I, P[1]));
|
|
31701
31701
|
}
|
|
31702
|
-
return [Gn(
|
|
31703
|
-
}, S: (
|
|
31704
|
-
const I = [
|
|
31702
|
+
return [Gn(W, 0), Rr(I, N.l - 1)];
|
|
31703
|
+
}, S: (q) => Zr(N, q - m), I: te, O: F, k: oe, j: () => N.l, N: () => x, B: () => k !== 0, T: () => p, q: () => m, M: L, P: () => (S = w, w = 0, [S, T === 2]), R: (q, W) => {
|
|
31704
|
+
const I = [q, W];
|
|
31705
31705
|
return U.add(I), () => {
|
|
31706
31706
|
U.delete(I);
|
|
31707
31707
|
};
|
|
31708
|
-
}, A: (
|
|
31708
|
+
}, A: (q, W) => {
|
|
31709
31709
|
let I, $, Z = 0;
|
|
31710
|
-
switch (
|
|
31710
|
+
switch (q) {
|
|
31711
31711
|
case 1: {
|
|
31712
|
-
if (
|
|
31712
|
+
if (W === x && T === 0) break;
|
|
31713
31713
|
const Y = S;
|
|
31714
31714
|
S = 0;
|
|
31715
|
-
const ee =
|
|
31716
|
-
Y && le < Va(Y) + 1 || T !== 0 || (k = ee < 0 ? 2 : 1), d && (d = !1), x =
|
|
31717
|
-
const me =
|
|
31715
|
+
const ee = W - x, le = Va(ee);
|
|
31716
|
+
Y && le < Va(Y) + 1 || T !== 0 || (k = ee < 0 ? 2 : 1), d && (d = !1), x = W, Z = 4;
|
|
31717
|
+
const me = X();
|
|
31718
31718
|
me >= -p && me <= L() && (Z += 1, $ = le > p);
|
|
31719
31719
|
break;
|
|
31720
31720
|
}
|
|
@@ -31722,9 +31722,9 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31722
31722
|
Z = 8, k !== 0 && (I = !0, Z += 1), k = 0, T = 0, P = yi;
|
|
31723
31723
|
break;
|
|
31724
31724
|
case 3: {
|
|
31725
|
-
const Y =
|
|
31725
|
+
const Y = W.filter(([ee, le]) => !te(ee, le));
|
|
31726
31726
|
if (!Y.length) break;
|
|
31727
|
-
re(Y.reduce((ee, [le, me]) => ((T === 2 || (P && T === 1 ? le < P[0] : F(le + (k === 0 && T === 0 ? 1 : 0)) <
|
|
31727
|
+
re(Y.reduce((ee, [le, me]) => ((T === 2 || (P && T === 1 ? le < P[0] : F(le + (k === 0 && T === 0 ? 1 : 0)) < X())) && (ee += me - oe(le)), ee), 0));
|
|
31728
31728
|
for (const [ee, le] of Y) {
|
|
31729
31729
|
const me = oe(ee), ge = Wm(N, ee, le);
|
|
31730
31730
|
u && (H += ge ? le : le - me);
|
|
@@ -31741,19 +31741,19 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31741
31741
|
break;
|
|
31742
31742
|
}
|
|
31743
31743
|
case 4:
|
|
31744
|
-
p !==
|
|
31744
|
+
p !== W && (p || (D = $ = !0), p = W, Z = 3);
|
|
31745
31745
|
break;
|
|
31746
31746
|
case 5:
|
|
31747
|
-
|
|
31747
|
+
W[1] ? (re(Xa(N, W[0], !0)), T = 2, Z = 1) : (Xa(N, W[0]), Z = 1);
|
|
31748
31748
|
break;
|
|
31749
31749
|
case 6:
|
|
31750
|
-
m =
|
|
31750
|
+
m = W;
|
|
31751
31751
|
break;
|
|
31752
31752
|
case 7:
|
|
31753
31753
|
T = 1;
|
|
31754
31754
|
break;
|
|
31755
31755
|
case 8:
|
|
31756
|
-
P = z(
|
|
31756
|
+
P = z(W, W + p), Z = 1;
|
|
31757
31757
|
}
|
|
31758
31758
|
Z && (h = 1 + (2147483647 & h), I && C && (w += C, C = 0), U.forEach(([Y, ee]) => {
|
|
31759
31759
|
Z & Y && ee($);
|
|
@@ -31860,30 +31860,30 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31860
31860
|
const d = i.horizontal, h = ce(), p = $m(i.data.length, i.itemSize, i.ssrCount, i.cache, !i.itemSize), m = ((T, P) => {
|
|
31861
31861
|
let B;
|
|
31862
31862
|
const H = P ? "width" : "height", D = /* @__PURE__ */ new WeakMap(), N = Km((U) => {
|
|
31863
|
-
const
|
|
31863
|
+
const X = [];
|
|
31864
31864
|
for (const { target: K, contentRect: z } of U) if (K.offsetParent) if (K === B) T.A(4, z[H]);
|
|
31865
31865
|
else {
|
|
31866
31866
|
const L = D.get(K);
|
|
31867
|
-
L != yi &&
|
|
31867
|
+
L != yi && X.push([L, z[H]]);
|
|
31868
31868
|
}
|
|
31869
|
-
|
|
31869
|
+
X.length && T.A(3, X);
|
|
31870
31870
|
});
|
|
31871
31871
|
return { te(U) {
|
|
31872
31872
|
N.F(B = U);
|
|
31873
|
-
}, re: (U,
|
|
31873
|
+
}, re: (U, X) => (D.set(U, X), N.F(U), () => {
|
|
31874
31874
|
D.delete(U), N.J(U);
|
|
31875
31875
|
}), p: N.H };
|
|
31876
31876
|
})(p, d), x = ((T, P) => {
|
|
31877
31877
|
let B, H, D = ao(), N = !1;
|
|
31878
|
-
const U = P ? "scrollLeft" : "scrollTop",
|
|
31878
|
+
const U = P ? "scrollLeft" : "scrollTop", X = P ? "overflowX" : "overflowY", [K, z] = Ym(T, () => D[0], (L, F) => {
|
|
31879
31879
|
L = js(L, N), F ? B.scrollTo({ [P ? "left" : "top"]: L, behavior: "smooth" }) : B[U] = L;
|
|
31880
31880
|
});
|
|
31881
31881
|
return { oe(L) {
|
|
31882
31882
|
B = L, P && (N = getComputedStyle(L).direction === "rtl"), H = Zm(T, L, P, () => js(L[U], N), (F, oe, te) => {
|
|
31883
31883
|
if (te) {
|
|
31884
|
-
const re = L.style,
|
|
31885
|
-
re[
|
|
31886
|
-
re[
|
|
31884
|
+
const re = L.style, q = re[X];
|
|
31885
|
+
re[X] = "hidden", Ro(() => {
|
|
31886
|
+
re[X] = q;
|
|
31887
31887
|
});
|
|
31888
31888
|
}
|
|
31889
31889
|
L[U] = js(T.N() + F, N), oe && z();
|
|
@@ -31896,10 +31896,10 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31896
31896
|
L += T.N(), K(() => L);
|
|
31897
31897
|
}, le(L, { align: F, smooth: oe, offset: te = 0 } = {}) {
|
|
31898
31898
|
if (L = Wl(L, 0, T.j() - 1), F === "nearest") {
|
|
31899
|
-
const re = T.O(L),
|
|
31900
|
-
if (re <
|
|
31899
|
+
const re = T.O(L), q = T.N();
|
|
31900
|
+
if (re < q) F = "start";
|
|
31901
31901
|
else {
|
|
31902
|
-
if (!(re + T.k(L) >
|
|
31902
|
+
if (!(re + T.k(L) > q + T.T())) return;
|
|
31903
31903
|
F = "end";
|
|
31904
31904
|
}
|
|
31905
31905
|
}
|
|
@@ -31960,8 +31960,8 @@ const Ga = Rm(5), qx = async (i, a) => {
|
|
|
31960
31960
|
N[D](U(z));
|
|
31961
31961
|
});
|
|
31962
31962
|
} else for (let [K, z] = C.value; K <= z; K++) N[D](U(K));
|
|
31963
|
-
return pe(T, { ref: h, style: { contain: "size style", overflowAnchor: "none", flex: "none", position: "relative", width: d ? B + "px" : "100%", height: d ? "100%" : B + "px", pointerEvents: S.value ? "none" : void 0 } }, typeof (
|
|
31964
|
-
var
|
|
31963
|
+
return pe(T, { ref: h, style: { contain: "size style", overflowAnchor: "none", flex: "none", position: "relative", width: d ? B + "px" : "100%", height: d ? "100%" : B + "px", pointerEvents: S.value ? "none" : void 0 } }, typeof (X = N) == "function" || Object.prototype.toString.call(X) === "[object Object]" && !co(X) ? N : { default: () => [N], _: 2 }, 8, ["style"]);
|
|
31964
|
+
var X;
|
|
31965
31965
|
};
|
|
31966
31966
|
} }), Yx = /* @__PURE__ */ Ue({ props: { data: { type: Array, required: !0 }, bufferSize: Number, itemSize: Number, shift: Boolean, horizontal: Boolean, ssrCount: Number, itemProps: Function, keepMounted: Array, cache: Object }, emits: ["scroll", "scrollEnd"], setup(i, { emit: a, expose: o, slots: s }) {
|
|
31967
31967
|
const u = i.horizontal, d = (m) => {
|