bonuspluscomponents 0.0.246 → 0.0.247
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as w from "react";
|
|
2
2
|
import ft, { createContext as Xr, useState as ge, useContext as Ce, useEffect as Ye, useMemo as cu, forwardRef as Tp, Children as Pp, isValidElement as ko, cloneElement as _o, useRef as In, createElement as Dp, useReducer as Op, useLayoutEffect as Mp, useCallback as kp } from "react";
|
|
3
|
-
import { createTheme as uu, responsiveFontSizes as du, ThemeProvider as _p, CssBaseline as Rp, Typography as Qr, Container as Io, Backdrop as fu, CircularProgress as pu, Modal as hu, Box as ln, IconButton as nr, TextField as mu, Rating as Sp, generateUtilityClasses as it, generateUtilityClass as st, unstable_composeClasses as lt, useControlled as $p, useEventCallback as Np, useTheme as jp, Checkbox as Ap, FormControl as vu, InputLabel as gu, Select as yu, MenuItem as bu,
|
|
3
|
+
import { createTheme as uu, responsiveFontSizes as du, ThemeProvider as _p, CssBaseline as Rp, Typography as Qr, Container as Io, Backdrop as fu, CircularProgress as pu, Modal as hu, Box as ln, IconButton as nr, TextField as mu, Rating as Sp, generateUtilityClasses as it, generateUtilityClass as st, unstable_composeClasses as lt, useControlled as $p, useEventCallback as Np, useTheme as jp, Checkbox as Ap, FormControl as vu, InputLabel as gu, Select as yu, MenuItem as bu, Tooltip as Ip, tooltipClasses as Lp, Divider as Aa, Collapse as Bp, Button as Fp, Popper as Vp, Fade as Wp, BottomNavigation as Yp, BottomNavigationAction as zp } from "@mui/material";
|
|
4
4
|
import xu from "axios";
|
|
5
5
|
import Hp from "@emotion/styled";
|
|
6
6
|
import { LoadingButton as Up } from "@mui/lab";
|
|
@@ -21386,47 +21386,114 @@ class JM extends ft.Component {
|
|
|
21386
21386
|
return this.state.hasError ? /* @__PURE__ */ f.jsx("h1", { children: "Что-то пошло не так" }) : this.props.children;
|
|
21387
21387
|
}
|
|
21388
21388
|
}
|
|
21389
|
-
|
|
21389
|
+
const dO = ob(({ className: e, ...t }) => (
|
|
21390
|
+
// @ts-ignore
|
|
21391
|
+
/* @__PURE__ */ f.jsx(Ip, { ...t, leaveDelay: 500, classes: { popper: e } })
|
|
21392
|
+
))(({ theme: e }) => ({
|
|
21393
|
+
[`& .${Lp.tooltip}`]: {
|
|
21394
|
+
//backgroundColor: 'rgba(0,0,0,0.9)',
|
|
21395
|
+
//color: 'rgba(255,255,255)',
|
|
21396
|
+
backgroundColor: "#fff",
|
|
21397
|
+
color: "#000",
|
|
21398
|
+
boxShadow: "rgba(0, 0, 0, 0.4) 0px 30px 90px",
|
|
21399
|
+
maxWidth: 400,
|
|
21400
|
+
display: "flex",
|
|
21401
|
+
justifyContent: "center",
|
|
21402
|
+
fontSize: "1em",
|
|
21403
|
+
fontWeight: 300,
|
|
21404
|
+
padding: "1.5em",
|
|
21405
|
+
borderRadius: "1em",
|
|
21406
|
+
p: {
|
|
21407
|
+
marginBottom: ".5em",
|
|
21408
|
+
span: {
|
|
21409
|
+
color: "var(--primary)"
|
|
21410
|
+
}
|
|
21411
|
+
}
|
|
21412
|
+
//zIndex:99999
|
|
21413
|
+
}
|
|
21414
|
+
}));
|
|
21415
|
+
var Xs = {}, fO = ot;
|
|
21390
21416
|
Object.defineProperty(Xs, "__esModule", {
|
|
21391
21417
|
value: !0
|
|
21392
21418
|
});
|
|
21393
|
-
var Uf = Xs.default = void 0,
|
|
21419
|
+
var Uf = Xs.default = void 0, pO = fO(at()), hO = f, mO = (0, pO.default)(/* @__PURE__ */ (0, hO.jsx)("path", {
|
|
21420
|
+
d: "M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"
|
|
21421
|
+
}), "QuestionMark");
|
|
21422
|
+
Uf = Xs.default = mO;
|
|
21423
|
+
const vO = ({ title: e, color: t }) => (
|
|
21424
|
+
// @ts-ignore
|
|
21425
|
+
/* @__PURE__ */ f.jsx(
|
|
21426
|
+
dO,
|
|
21427
|
+
{
|
|
21428
|
+
className: "question_tooltip",
|
|
21429
|
+
title: e,
|
|
21430
|
+
placement: "top",
|
|
21431
|
+
arrow: !0,
|
|
21432
|
+
children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(
|
|
21433
|
+
"div",
|
|
21434
|
+
{
|
|
21435
|
+
className: "question_tooltip_icon",
|
|
21436
|
+
style: {
|
|
21437
|
+
display: "flex",
|
|
21438
|
+
backgroundColor: t ?? "#e9e9e9",
|
|
21439
|
+
padding: "0.1em",
|
|
21440
|
+
borderRadius: "50%",
|
|
21441
|
+
fontSize: "14px"
|
|
21442
|
+
},
|
|
21443
|
+
children: /* @__PURE__ */ f.jsx(Uf, { fontSize: "inherit" })
|
|
21444
|
+
}
|
|
21445
|
+
) })
|
|
21446
|
+
}
|
|
21447
|
+
)
|
|
21448
|
+
), qf = ({ children: e, questionText: t, labelRightSlot: n, label: r, ...o }) => /* @__PURE__ */ f.jsxs("div", { ...o, className: "text_with_label", children: [
|
|
21449
|
+
/* @__PURE__ */ f.jsxs("div", { className: "text_with_label__label", children: [
|
|
21450
|
+
/* @__PURE__ */ f.jsx("div", { children: r }),
|
|
21451
|
+
n && /* @__PURE__ */ f.jsx("div", { style: { marginLeft: "1em" }, children: n }),
|
|
21452
|
+
t && /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(vO, { title: t }) })
|
|
21453
|
+
] }),
|
|
21454
|
+
/* @__PURE__ */ f.jsx("div", { className: "text_with_label__body", children: e })
|
|
21455
|
+
] });
|
|
21456
|
+
var Qs = {}, gO = ot;
|
|
21457
|
+
Object.defineProperty(Qs, "__esModule", {
|
|
21458
|
+
value: !0
|
|
21459
|
+
});
|
|
21460
|
+
var Gf = Qs.default = void 0, yO = gO(at()), bO = f, xO = (0, yO.default)(/* @__PURE__ */ (0, bO.jsx)("path", {
|
|
21394
21461
|
d: "M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"
|
|
21395
21462
|
}), "Receipt");
|
|
21396
|
-
|
|
21397
|
-
var
|
|
21398
|
-
Object.defineProperty(
|
|
21463
|
+
Gf = Qs.default = xO;
|
|
21464
|
+
var Zs = {}, wO = ot;
|
|
21465
|
+
Object.defineProperty(Zs, "__esModule", {
|
|
21399
21466
|
value: !0
|
|
21400
21467
|
});
|
|
21401
|
-
var
|
|
21468
|
+
var Kf = Zs.default = void 0, CO = wO(at()), EO = f, TO = (0, CO.default)(/* @__PURE__ */ (0, EO.jsx)("path", {
|
|
21402
21469
|
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
21403
21470
|
}), "Person");
|
|
21404
|
-
|
|
21405
|
-
var
|
|
21406
|
-
Object.defineProperty(
|
|
21471
|
+
Kf = Zs.default = TO;
|
|
21472
|
+
var Js = {}, PO = ot;
|
|
21473
|
+
Object.defineProperty(Js, "__esModule", {
|
|
21407
21474
|
value: !0
|
|
21408
21475
|
});
|
|
21409
|
-
var
|
|
21476
|
+
var Xf = Js.default = void 0, DO = PO(at()), OO = f, MO = (0, DO.default)(/* @__PURE__ */ (0, OO.jsx)("path", {
|
|
21410
21477
|
d: "M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"
|
|
21411
21478
|
}), "CreditCard");
|
|
21412
|
-
|
|
21413
|
-
var
|
|
21414
|
-
Object.defineProperty(
|
|
21479
|
+
Xf = Js.default = MO;
|
|
21480
|
+
var el = {}, kO = ot;
|
|
21481
|
+
Object.defineProperty(el, "__esModule", {
|
|
21415
21482
|
value: !0
|
|
21416
21483
|
});
|
|
21417
|
-
var
|
|
21484
|
+
var Qf = el.default = void 0, _O = kO(at()), RO = f, SO = (0, _O.default)(/* @__PURE__ */ (0, RO.jsx)("path", {
|
|
21418
21485
|
d: "M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"
|
|
21419
21486
|
}), "Forum");
|
|
21420
|
-
|
|
21421
|
-
var
|
|
21422
|
-
Object.defineProperty(
|
|
21487
|
+
Qf = el.default = SO;
|
|
21488
|
+
var tl = {}, $O = ot;
|
|
21489
|
+
Object.defineProperty(tl, "__esModule", {
|
|
21423
21490
|
value: !0
|
|
21424
21491
|
});
|
|
21425
|
-
var
|
|
21492
|
+
var Zf = tl.default = void 0, NO = $O(at()), jO = f, AO = (0, NO.default)(/* @__PURE__ */ (0, jO.jsx)("path", {
|
|
21426
21493
|
d: "M10 4h4v4h-4zM4 16h4v4H4zm0-6h4v4H4zm0-6h4v4H4zm10 8.42V10h-4v4h2.42zm6.88-1.13-1.17-1.17c-.16-.16-.42-.16-.58 0l-.88.88L20 12.75l.88-.88c.16-.16.16-.42 0-.58zM11 18.25V20h1.75l6.67-6.67-1.75-1.75zM16 4h4v4h-4z"
|
|
21427
21494
|
}), "AppRegistration");
|
|
21428
|
-
|
|
21429
|
-
const
|
|
21495
|
+
Zf = tl.default = AO;
|
|
21496
|
+
const IO = () => {
|
|
21430
21497
|
const [e, t] = ge(), { phoneNumber: n, cabinetType: r } = Ce(vt), { setIsLoading: o } = Ce(Fn), {
|
|
21431
21498
|
Send: a
|
|
21432
21499
|
} = un({
|
|
@@ -21454,27 +21521,27 @@ const RO = () => {
|
|
|
21454
21521
|
purchaseHistory: e
|
|
21455
21522
|
};
|
|
21456
21523
|
};
|
|
21457
|
-
var
|
|
21458
|
-
var
|
|
21459
|
-
Object.defineProperty(
|
|
21524
|
+
var Jf = /* @__PURE__ */ ((e) => (e[e.Bonuses = 0] = "Bonuses", e[e.Purchases = 1] = "Purchases", e))(Jf || {});
|
|
21525
|
+
var nl = {}, LO = ot;
|
|
21526
|
+
Object.defineProperty(nl, "__esModule", {
|
|
21460
21527
|
value: !0
|
|
21461
21528
|
});
|
|
21462
|
-
var
|
|
21529
|
+
var ep = nl.default = void 0, BO = LO(at()), FO = f, VO = (0, BO.default)(/* @__PURE__ */ (0, FO.jsx)("path", {
|
|
21463
21530
|
d: "m7 10 5 5 5-5z"
|
|
21464
21531
|
}), "ArrowDropDown");
|
|
21465
|
-
|
|
21466
|
-
var
|
|
21467
|
-
Object.defineProperty(
|
|
21532
|
+
ep = nl.default = VO;
|
|
21533
|
+
var rl = {}, WO = ot;
|
|
21534
|
+
Object.defineProperty(rl, "__esModule", {
|
|
21468
21535
|
value: !0
|
|
21469
21536
|
});
|
|
21470
|
-
var
|
|
21537
|
+
var tp = rl.default = void 0, YO = WO(at()), zO = f, HO = (0, YO.default)(/* @__PURE__ */ (0, zO.jsx)("path", {
|
|
21471
21538
|
d: "m7 14 5-5 5 5z"
|
|
21472
21539
|
}), "ArrowDropUp");
|
|
21473
|
-
|
|
21540
|
+
tp = rl.default = HO;
|
|
21474
21541
|
const Li = ({ title: e, text: t }) => /* @__PURE__ */ f.jsx("div", { className: "desc_element", children: /* @__PURE__ */ f.jsxs("div", { children: [
|
|
21475
21542
|
/* @__PURE__ */ f.jsx("div", { children: e }),
|
|
21476
21543
|
/* @__PURE__ */ f.jsx("div", { children: t })
|
|
21477
|
-
] }) }),
|
|
21544
|
+
] }) }), UO = ({ historyElement: e }) => {
|
|
21478
21545
|
var i, s, c, u;
|
|
21479
21546
|
const [t, n] = ge(!1), { ParseDataToRusLocale: r } = so(), o = /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: ".5em" }, children: [
|
|
21480
21547
|
(i = e == null ? void 0 : e.items) == null ? void 0 : i.map((d, p) => {
|
|
@@ -21524,8 +21591,8 @@ const Li = ({ title: e, text: t }) => /* @__PURE__ */ f.jsx("div", { className:
|
|
|
21524
21591
|
] })
|
|
21525
21592
|
] }) })
|
|
21526
21593
|
] }), a = () => {
|
|
21527
|
-
const d = t ? /* @__PURE__ */ f.jsx(
|
|
21528
|
-
return e.operationType !==
|
|
21594
|
+
const d = t ? /* @__PURE__ */ f.jsx(tp, {}) : /* @__PURE__ */ f.jsx(ep, {});
|
|
21595
|
+
return e.operationType !== Jf.Purchases ? null : /* @__PURE__ */ f.jsx(
|
|
21529
21596
|
"div",
|
|
21530
21597
|
{
|
|
21531
21598
|
className: "purchase_history_element__show_more",
|
|
@@ -21569,20 +21636,20 @@ const Li = ({ title: e, text: t }) => /* @__PURE__ */ f.jsx("div", { className:
|
|
|
21569
21636
|
}
|
|
21570
21637
|
)
|
|
21571
21638
|
] }),
|
|
21572
|
-
/* @__PURE__ */ f.jsx("div", { className: "purchase_history_element__purchases", children: /* @__PURE__ */ f.jsx(
|
|
21639
|
+
/* @__PURE__ */ f.jsx("div", { className: "purchase_history_element__purchases", children: /* @__PURE__ */ f.jsx(Bp, { in: t, timeout: "auto", unmountOnExit: !0, children: o }) }),
|
|
21573
21640
|
a()
|
|
21574
21641
|
] }) });
|
|
21575
|
-
},
|
|
21576
|
-
const { purchaseNotFound: e, purchaseHistory: t } =
|
|
21642
|
+
}, qO = () => {
|
|
21643
|
+
const { purchaseNotFound: e, purchaseHistory: t } = IO();
|
|
21577
21644
|
return /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: ".5em" }, children: [
|
|
21578
21645
|
/* @__PURE__ */ f.jsx(oa, { children: /* @__PURE__ */ f.jsxs("div", { children: [
|
|
21579
21646
|
/* @__PURE__ */ f.jsx("div", {}),
|
|
21580
21647
|
/* @__PURE__ */ f.jsx("div", { children: "Ниже отображена ваша история операций" })
|
|
21581
21648
|
] }) }),
|
|
21582
|
-
e || (t == null ? void 0 : t.map((n, r) => /* @__PURE__ */ f.jsx(
|
|
21649
|
+
e || (t == null ? void 0 : t.map((n, r) => /* @__PURE__ */ f.jsx(UO, { historyElement: n }, r)))
|
|
21583
21650
|
] }) });
|
|
21584
21651
|
};
|
|
21585
|
-
const
|
|
21652
|
+
const GO = () => {
|
|
21586
21653
|
const { cabinetUISettings: e, GetCabinetUISettings: t } = Ce(vt);
|
|
21587
21654
|
return Ye(() => {
|
|
21588
21655
|
t();
|
|
@@ -21622,7 +21689,7 @@ const WO = () => {
|
|
|
21622
21689
|
) }),
|
|
21623
21690
|
/* @__PURE__ */ f.jsx("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ f.jsx(Rs, { isLoading: i, onClick: () => d(), children: "Создать новое обращение" }) })
|
|
21624
21691
|
] });
|
|
21625
|
-
},
|
|
21692
|
+
}, KO = () => {
|
|
21626
21693
|
const { phoneNumber: e } = Ce(vt), { showNewPopup: t } = Ce(mn), { setIsLoading: n } = Ce(Fn), [r, o] = ge([]), [a, i] = ge(null), { Send: s } = un({
|
|
21627
21694
|
url: "externalCustomerCabinet/tickets",
|
|
21628
21695
|
method: "get",
|
|
@@ -21642,7 +21709,7 @@ const WO = () => {
|
|
|
21642
21709
|
title: "Создание обращения"
|
|
21643
21710
|
});
|
|
21644
21711
|
}, d = cu(
|
|
21645
|
-
() => /* @__PURE__ */ f.jsx(
|
|
21712
|
+
() => /* @__PURE__ */ f.jsx(Fp, { variant: "contained", onClick: () => u(), children: "Создать обращение" }),
|
|
21646
21713
|
[]
|
|
21647
21714
|
), p = r && (r == null ? void 0 : r.length) === 0 ? /* @__PURE__ */ f.jsx(oa, { children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx("div", { children: "Обращений не было" }) }) }) : null;
|
|
21648
21715
|
return {
|
|
@@ -21651,7 +21718,7 @@ const WO = () => {
|
|
|
21651
21718
|
createAppealButton: d,
|
|
21652
21719
|
additionalInfoState: a
|
|
21653
21720
|
};
|
|
21654
|
-
},
|
|
21721
|
+
}, XO = ({ opened: e, setOpened: t, appeal: n, onSuccess: r, preparedText: o }) => {
|
|
21655
21722
|
const [a, i] = ge([]), { Send: s, isLoading: c } = un({
|
|
21656
21723
|
url: "/externalCustomerCabinet/ticket/messages",
|
|
21657
21724
|
method: "post",
|
|
@@ -21680,13 +21747,13 @@ const WO = () => {
|
|
|
21680
21747
|
}
|
|
21681
21748
|
) });
|
|
21682
21749
|
};
|
|
21683
|
-
const
|
|
21750
|
+
const QO = ({ appeal: e }) => {
|
|
21684
21751
|
const { pageState: t, setPageState: n } = Ce(vt), r = t == null ? void 0 : t.data, { ParseDataToRusLocale: o } = so(), [a, i] = ge(!1);
|
|
21685
21752
|
return Ye(() => {
|
|
21686
21753
|
r && r.id === e.id && (i(!0), n(null));
|
|
21687
21754
|
}, [r]), /* @__PURE__ */ f.jsxs("div", { children: [
|
|
21688
21755
|
a && /* @__PURE__ */ f.jsx(
|
|
21689
|
-
|
|
21756
|
+
XO,
|
|
21690
21757
|
{
|
|
21691
21758
|
preparedText: r == null ? void 0 : r.text,
|
|
21692
21759
|
opened: a,
|
|
@@ -21714,17 +21781,17 @@ const HO = ({ appeal: e }) => {
|
|
|
21714
21781
|
) })
|
|
21715
21782
|
] })
|
|
21716
21783
|
] });
|
|
21717
|
-
},
|
|
21784
|
+
}, ZO = () => {
|
|
21718
21785
|
const {
|
|
21719
21786
|
appeals: e,
|
|
21720
21787
|
createAppealButton: t,
|
|
21721
21788
|
appealsNotFound: n
|
|
21722
|
-
} =
|
|
21789
|
+
} = KO();
|
|
21723
21790
|
return /* @__PURE__ */ f.jsxs("div", { children: [
|
|
21724
21791
|
/* @__PURE__ */ f.jsxs("div", { style: { marginBottom: "1em", display: "flex", flexDirection: "column", gap: "1em" }, children: [
|
|
21725
21792
|
n,
|
|
21726
21793
|
e.map((r, o) => /* @__PURE__ */ f.jsx(
|
|
21727
|
-
|
|
21794
|
+
QO,
|
|
21728
21795
|
{
|
|
21729
21796
|
appeal: r
|
|
21730
21797
|
},
|
|
@@ -21734,78 +21801,11 @@ const HO = ({ appeal: e }) => {
|
|
|
21734
21801
|
/* @__PURE__ */ f.jsx("div", { style: { display: "flex", justifyContent: "center" }, children: t })
|
|
21735
21802
|
] });
|
|
21736
21803
|
};
|
|
21737
|
-
const
|
|
21804
|
+
const JO = ({ isAndroid: e, isIOS: t }) => t || e ? /* @__PURE__ */ f.jsx("div", { className: Lr(
|
|
21738
21805
|
"download_card_button",
|
|
21739
21806
|
{ download_card_button__android: e },
|
|
21740
21807
|
{ download_card_button__ios: t }
|
|
21741
|
-
), children: /* @__PURE__ */ f.jsx("div", {}) }) : null;
|
|
21742
|
-
const GO = ob(({ className: e, ...t }) => (
|
|
21743
|
-
// @ts-ignore
|
|
21744
|
-
/* @__PURE__ */ f.jsx(Bp, { ...t, leaveDelay: 500, classes: { popper: e } })
|
|
21745
|
-
))(({ theme: e }) => ({
|
|
21746
|
-
[`& .${Fp.tooltip}`]: {
|
|
21747
|
-
//backgroundColor: 'rgba(0,0,0,0.9)',
|
|
21748
|
-
//color: 'rgba(255,255,255)',
|
|
21749
|
-
backgroundColor: "#fff",
|
|
21750
|
-
color: "#000",
|
|
21751
|
-
boxShadow: "rgba(0, 0, 0, 0.4) 0px 30px 90px",
|
|
21752
|
-
maxWidth: 400,
|
|
21753
|
-
display: "flex",
|
|
21754
|
-
justifyContent: "center",
|
|
21755
|
-
fontSize: "1em",
|
|
21756
|
-
fontWeight: 300,
|
|
21757
|
-
padding: "1.5em",
|
|
21758
|
-
borderRadius: "1em",
|
|
21759
|
-
p: {
|
|
21760
|
-
marginBottom: ".5em",
|
|
21761
|
-
span: {
|
|
21762
|
-
color: "var(--primary)"
|
|
21763
|
-
}
|
|
21764
|
-
}
|
|
21765
|
-
//zIndex:99999
|
|
21766
|
-
}
|
|
21767
|
-
}));
|
|
21768
|
-
var rl = {}, KO = ot;
|
|
21769
|
-
Object.defineProperty(rl, "__esModule", {
|
|
21770
|
-
value: !0
|
|
21771
|
-
});
|
|
21772
|
-
var ep = rl.default = void 0, XO = KO(at()), QO = f, ZO = (0, XO.default)(/* @__PURE__ */ (0, QO.jsx)("path", {
|
|
21773
|
-
d: "M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"
|
|
21774
|
-
}), "QuestionMark");
|
|
21775
|
-
ep = rl.default = ZO;
|
|
21776
|
-
const JO = ({ title: e, color: t }) => (
|
|
21777
|
-
// @ts-ignore
|
|
21778
|
-
/* @__PURE__ */ f.jsx(
|
|
21779
|
-
GO,
|
|
21780
|
-
{
|
|
21781
|
-
className: "question_tooltip",
|
|
21782
|
-
title: e,
|
|
21783
|
-
placement: "top",
|
|
21784
|
-
arrow: !0,
|
|
21785
|
-
children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(
|
|
21786
|
-
"div",
|
|
21787
|
-
{
|
|
21788
|
-
className: "question_tooltip_icon",
|
|
21789
|
-
style: {
|
|
21790
|
-
display: "flex",
|
|
21791
|
-
backgroundColor: t ?? "#e9e9e9",
|
|
21792
|
-
padding: "0.1em",
|
|
21793
|
-
borderRadius: "50%",
|
|
21794
|
-
fontSize: "14px"
|
|
21795
|
-
},
|
|
21796
|
-
children: /* @__PURE__ */ f.jsx(ep, { fontSize: "inherit" })
|
|
21797
|
-
}
|
|
21798
|
-
) })
|
|
21799
|
-
}
|
|
21800
|
-
)
|
|
21801
|
-
), tp = ({ children: e, questionText: t, labelRightSlot: n, label: r, ...o }) => /* @__PURE__ */ f.jsxs("div", { ...o, className: "text_with_label", children: [
|
|
21802
|
-
/* @__PURE__ */ f.jsxs("div", { className: "text_with_label__label", children: [
|
|
21803
|
-
/* @__PURE__ */ f.jsx("div", { children: r }),
|
|
21804
|
-
n && /* @__PURE__ */ f.jsx("div", { style: { marginLeft: "1em" }, children: n }),
|
|
21805
|
-
t && /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(JO, { title: t }) })
|
|
21806
|
-
] }),
|
|
21807
|
-
/* @__PURE__ */ f.jsx("div", { className: "text_with_label__body", children: e })
|
|
21808
|
-
] }), eM = (e) => e || "—";
|
|
21808
|
+
), children: /* @__PURE__ */ f.jsx("div", {}) }) : null, eM = (e) => e || "—";
|
|
21809
21809
|
var ol = {}, tM = ot;
|
|
21810
21810
|
Object.defineProperty(ol, "__esModule", {
|
|
21811
21811
|
value: !0
|
|
@@ -22631,7 +22631,7 @@ const mp = (e) => /* @__PURE__ */ f.jsx("div", { style: { padding: "1em", backgr
|
|
|
22631
22631
|
/* @__PURE__ */ f.jsx("div", { dangerouslySetInnerHTML: { __html: (e == null ? void 0 : e.shareHtml) ?? "Поделись ссылкой!" } }),
|
|
22632
22632
|
/* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(mp, { value: n }) }),
|
|
22633
22633
|
/* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(
|
|
22634
|
-
|
|
22634
|
+
qf,
|
|
22635
22635
|
{
|
|
22636
22636
|
label: "Ссылка для регистрации",
|
|
22637
22637
|
style: { marginBottom: "1em" },
|
|
@@ -22660,7 +22660,7 @@ const mp = (e) => /* @__PURE__ */ f.jsx("div", { style: { padding: "1em", backgr
|
|
|
22660
22660
|
}, []);
|
|
22661
22661
|
return /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsxs("div", { className: "customer_info", children: [
|
|
22662
22662
|
o && /* @__PURE__ */ f.jsx("div", { className: "qr_element", children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx("div", { className: "qr_element__code", children: /* @__PURE__ */ f.jsx(mp, { value: (o == null ? void 0 : o.discountCardNumber) ?? "" }) }) }) }) }),
|
|
22663
|
-
(r == null ? void 0 : r.canShowECardLink) && (o == null ? void 0 : o.eCardCustomerLink) && (e || t) && /* @__PURE__ */ f.jsx("a", { href: o == null ? void 0 : o.eCardCustomerLink, target: "_blank", children: /* @__PURE__ */ f.jsx(
|
|
22663
|
+
(r == null ? void 0 : r.canShowECardLink) && (o == null ? void 0 : o.eCardCustomerLink) && (e || t) && /* @__PURE__ */ f.jsx("a", { href: o == null ? void 0 : o.eCardCustomerLink, target: "_blank", children: /* @__PURE__ */ f.jsx(JO, { isIOS: e, isAndroid: t }) }),
|
|
22664
22664
|
(a == null ? void 0 : a.useShare) && o && /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(
|
|
22665
22665
|
jn,
|
|
22666
22666
|
{
|
|
@@ -22672,7 +22672,7 @@ const mp = (e) => /* @__PURE__ */ f.jsx("div", { style: { padding: "1em", backgr
|
|
|
22672
22672
|
c.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "person_loyalty_info", children: [
|
|
22673
22673
|
/* @__PURE__ */ f.jsx("div", { children: "Информация по карте лояльности" }),
|
|
22674
22674
|
/* @__PURE__ */ f.jsx("div", { className: "controls", children: c.map((v, g) => /* @__PURE__ */ f.jsx(
|
|
22675
|
-
|
|
22675
|
+
qf,
|
|
22676
22676
|
{
|
|
22677
22677
|
label: v.title,
|
|
22678
22678
|
children: /* @__PURE__ */ f.jsx("div", { children: eM(v.text) })
|
|
@@ -22722,7 +22722,7 @@ const mp = (e) => /* @__PURE__ */ f.jsx("div", { style: { padding: "1em", backgr
|
|
|
22722
22722
|
i(g);
|
|
22723
22723
|
}, { popups: c, closePopupById: u } = Ce(mn), p = [
|
|
22724
22724
|
{
|
|
22725
|
-
icon: /* @__PURE__ */ f.jsx(
|
|
22725
|
+
icon: /* @__PURE__ */ f.jsx(Xf, {}),
|
|
22726
22726
|
value: "info",
|
|
22727
22727
|
label: "Карта",
|
|
22728
22728
|
page: /* @__PURE__ */ f.jsx($M, {}),
|
|
@@ -22730,18 +22730,18 @@ const mp = (e) => /* @__PURE__ */ f.jsx("div", { style: { padding: "1em", backgr
|
|
|
22730
22730
|
disabled: n == null ? void 0 : n.isReg
|
|
22731
22731
|
},
|
|
22732
22732
|
{
|
|
22733
|
-
icon: /* @__PURE__ */ f.jsx(
|
|
22733
|
+
icon: /* @__PURE__ */ f.jsx(Gf, {}),
|
|
22734
22734
|
value: "receipt",
|
|
22735
22735
|
label: "История",
|
|
22736
|
-
page: /* @__PURE__ */ f.jsx(
|
|
22736
|
+
page: /* @__PURE__ */ f.jsx(qO, {}),
|
|
22737
22737
|
active: n == null ? void 0 : n.canShowPurchaseHistory,
|
|
22738
22738
|
disabled: n == null ? void 0 : n.isReg
|
|
22739
22739
|
},
|
|
22740
22740
|
{
|
|
22741
|
-
icon: /* @__PURE__ */ f.jsx(
|
|
22741
|
+
icon: /* @__PURE__ */ f.jsx(Qf, {}),
|
|
22742
22742
|
value: "appeals",
|
|
22743
22743
|
label: "Обращения",
|
|
22744
|
-
page: /* @__PURE__ */ f.jsx(
|
|
22744
|
+
page: /* @__PURE__ */ f.jsx(ZO, {}),
|
|
22745
22745
|
active: n == null ? void 0 : n.canShowAppeals,
|
|
22746
22746
|
disabled: n == null ? void 0 : n.isReg
|
|
22747
22747
|
},
|
|
@@ -22749,12 +22749,12 @@ const mp = (e) => /* @__PURE__ */ f.jsx("div", { style: { padding: "1em", backgr
|
|
|
22749
22749
|
icon: /* @__PURE__ */ f.jsx(Ko, {}),
|
|
22750
22750
|
value: "businessInfo",
|
|
22751
22751
|
label: "Информация",
|
|
22752
|
-
page: /* @__PURE__ */ f.jsx(
|
|
22752
|
+
page: /* @__PURE__ */ f.jsx(GO, {}),
|
|
22753
22753
|
active: n == null ? void 0 : n.canShowBusinessInfo,
|
|
22754
22754
|
disabled: n == null ? void 0 : n.isReg
|
|
22755
22755
|
},
|
|
22756
22756
|
{
|
|
22757
|
-
icon: /* @__PURE__ */ f.jsx(
|
|
22757
|
+
icon: /* @__PURE__ */ f.jsx(Kf, {}),
|
|
22758
22758
|
value: "personInfo",
|
|
22759
22759
|
label: "Клиент",
|
|
22760
22760
|
page: /* @__PURE__ */ f.jsx(jM, {}),
|
|
@@ -22762,7 +22762,7 @@ const mp = (e) => /* @__PURE__ */ f.jsx("div", { style: { padding: "1em", backgr
|
|
|
22762
22762
|
disabled: n == null ? void 0 : n.isReg
|
|
22763
22763
|
},
|
|
22764
22764
|
{
|
|
22765
|
-
icon: /* @__PURE__ */ f.jsx(
|
|
22765
|
+
icon: /* @__PURE__ */ f.jsx(Zf, {}),
|
|
22766
22766
|
value: "registration",
|
|
22767
22767
|
label: "Регистрация",
|
|
22768
22768
|
page: /* @__PURE__ */ f.jsx(NM, {}),
|
|
@@ -22844,6 +22844,7 @@ export {
|
|
|
22844
22844
|
XM as ReviewChat,
|
|
22845
22845
|
ek as Router,
|
|
22846
22846
|
Rs as SubmitButton,
|
|
22847
|
+
qf as TextWithLabel,
|
|
22847
22848
|
$s as UseFormHelper,
|
|
22848
22849
|
un as useAxios,
|
|
22849
22850
|
qM as useQuery
|