5093 lines
201 KiB
JavaScript
5093 lines
201 KiB
JavaScript
import tt, { createContext as ze, useContext as _e, useState as A, useMemo as Ae, useCallback as se, useDebugValue as nt, useRef as Oe, useEffect as ee, useLayoutEffect as it, startTransition as ot } from "react";
|
||
import { createTheme as _, Box as d, Typography as m, useTheme as M, FormControlLabel as ie, Checkbox as Ze, Button as Q, Link as Y, InputAdornment as rt, TextField as ke, RadioGroup as Ce, FormControl as ve, Radio as fe, IconButton as $e, Skeleton as st, ButtonBase as qe, Modal as at, Slider as lt, Rating as dt, Select as ct, MenuItem as pt, useMediaQuery as ht, FormGroup as xt, Paper as Ct, ThemeProvider as Ue, CssBaseline as ft } from "@mui/material";
|
||
import { DatePicker as gt, LocalizationProvider as ut } from "@mui/x-date-pickers";
|
||
import W from "moment";
|
||
import { enqueueSnackbar as I, SnackbarProvider as mt } from "notistack";
|
||
import { ErrorBoundary as wt } from "react-error-boundary";
|
||
import { produce as yt } from "immer";
|
||
import { nanoid as jt } from "nanoid";
|
||
import { create as bt } from "zustand";
|
||
import kt from "axios";
|
||
import { useDebouncedCallback as le } from "use-debounce";
|
||
var Ye = { exports: {} }, te = {};
|
||
/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var Ie;
|
||
function vt() {
|
||
if (Ie)
|
||
return te;
|
||
Ie = 1;
|
||
var e = tt, i = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
||
function l(a, c, C) {
|
||
var h, p = {}, f = null, j = null;
|
||
C !== void 0 && (f = "" + C), c.key !== void 0 && (f = "" + c.key), c.ref !== void 0 && (j = c.ref);
|
||
for (h in c)
|
||
s.call(c, h) && !o.hasOwnProperty(h) && (p[h] = c[h]);
|
||
if (a && a.defaultProps)
|
||
for (h in c = a.defaultProps, c)
|
||
p[h] === void 0 && (p[h] = c[h]);
|
||
return { $$typeof: i, type: a, key: f, ref: j, props: p, _owner: n.current };
|
||
}
|
||
return te.Fragment = r, te.jsx = l, te.jsxs = l, te;
|
||
}
|
||
Ye.exports = vt();
|
||
var t = Ye.exports;
|
||
const Je = ze(null), D = () => {
|
||
const e = _e(Je);
|
||
if (e === null)
|
||
throw new Error("QuizData context is null");
|
||
return e;
|
||
};
|
||
function pe() {
|
||
return pe = Object.assign ? Object.assign.bind() : function(e) {
|
||
for (var i = 1; i < arguments.length; i++) {
|
||
var r = arguments[i];
|
||
for (var s in r)
|
||
Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]);
|
||
}
|
||
return e;
|
||
}, pe.apply(this, arguments);
|
||
}
|
||
const Ft = {
|
||
// Year
|
||
Y: "year",
|
||
YY: "year",
|
||
YYYY: {
|
||
sectionType: "year",
|
||
contentType: "digit",
|
||
maxLength: 4
|
||
},
|
||
// Month
|
||
M: {
|
||
sectionType: "month",
|
||
contentType: "digit",
|
||
maxLength: 2
|
||
},
|
||
MM: "month",
|
||
MMM: {
|
||
sectionType: "month",
|
||
contentType: "letter"
|
||
},
|
||
MMMM: {
|
||
sectionType: "month",
|
||
contentType: "letter"
|
||
},
|
||
// Day of the month
|
||
D: {
|
||
sectionType: "day",
|
||
contentType: "digit",
|
||
maxLength: 2
|
||
},
|
||
DD: "day",
|
||
Do: {
|
||
sectionType: "day",
|
||
contentType: "digit-with-letter"
|
||
},
|
||
// Day of the week
|
||
E: {
|
||
sectionType: "weekDay",
|
||
contentType: "digit",
|
||
maxLength: 1
|
||
},
|
||
e: {
|
||
sectionType: "weekDay",
|
||
contentType: "digit",
|
||
maxLength: 1
|
||
},
|
||
d: {
|
||
sectionType: "weekDay",
|
||
contentType: "digit",
|
||
maxLength: 1
|
||
},
|
||
dd: {
|
||
sectionType: "weekDay",
|
||
contentType: "letter"
|
||
},
|
||
ddd: {
|
||
sectionType: "weekDay",
|
||
contentType: "letter"
|
||
},
|
||
dddd: {
|
||
sectionType: "weekDay",
|
||
contentType: "letter"
|
||
},
|
||
// Meridiem
|
||
A: "meridiem",
|
||
a: "meridiem",
|
||
// Hours
|
||
H: {
|
||
sectionType: "hours",
|
||
contentType: "digit",
|
||
maxLength: 2
|
||
},
|
||
HH: "hours",
|
||
h: {
|
||
sectionType: "hours",
|
||
contentType: "digit",
|
||
maxLength: 2
|
||
},
|
||
hh: "hours",
|
||
// Minutes
|
||
m: {
|
||
sectionType: "minutes",
|
||
contentType: "digit",
|
||
maxLength: 2
|
||
},
|
||
mm: "minutes",
|
||
// Seconds
|
||
s: {
|
||
sectionType: "seconds",
|
||
contentType: "digit",
|
||
maxLength: 2
|
||
},
|
||
ss: "seconds"
|
||
}, Mt = {
|
||
year: "YYYY",
|
||
month: "MMMM",
|
||
monthShort: "MMM",
|
||
dayOfMonth: "D",
|
||
weekday: "dddd",
|
||
weekdayShort: "ddd",
|
||
hours24h: "HH",
|
||
hours12h: "hh",
|
||
meridiem: "A",
|
||
minutes: "mm",
|
||
seconds: "ss",
|
||
fullDate: "ll",
|
||
fullDateWithWeekday: "dddd, LL",
|
||
keyboardDate: "L",
|
||
shortDate: "MMM D",
|
||
normalDate: "D MMMM",
|
||
normalDateWithWeekday: "ddd, MMM D",
|
||
monthAndYear: "MMMM YYYY",
|
||
monthAndDate: "MMMM D",
|
||
fullTime: "LT",
|
||
fullTime12h: "hh:mm A",
|
||
fullTime24h: "HH:mm",
|
||
fullDateTime: "lll",
|
||
fullDateTime12h: "ll hh:mm A",
|
||
fullDateTime24h: "ll HH:mm",
|
||
keyboardDateTime: "L LT",
|
||
keyboardDateTime12h: "L hh:mm A",
|
||
keyboardDateTime24h: "L HH:mm"
|
||
}, Ve = ["Missing timezone plugin", "To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`", "Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
||
`);
|
||
class Lt {
|
||
constructor({
|
||
locale: i,
|
||
formats: r,
|
||
instance: s
|
||
} = {}) {
|
||
this.isMUIAdapter = !0, this.isTimezoneCompatible = !0, this.lib = "moment", this.moment = void 0, this.locale = void 0, this.formats = void 0, this.escapedCharacters = {
|
||
start: "[",
|
||
end: "]"
|
||
}, this.formatTokenMap = Ft, this.setLocaleToValue = (n) => {
|
||
const o = this.getCurrentLocaleCode();
|
||
return o === n.locale() ? n : n.locale(o);
|
||
}, this.syncMomentLocale = (n) => {
|
||
var o;
|
||
const l = W.locale(), a = (o = this.locale) != null ? o : "en-us";
|
||
if (l !== a) {
|
||
W.locale(a);
|
||
const c = n();
|
||
return W.locale(l), c;
|
||
}
|
||
return n();
|
||
}, this.hasTimezonePlugin = () => typeof this.moment.tz < "u", this.createSystemDate = (n) => {
|
||
const o = this.moment(n).local();
|
||
return this.locale === void 0 ? o : o.locale(this.locale);
|
||
}, this.createUTCDate = (n) => {
|
||
const o = this.moment.utc(n);
|
||
return this.locale === void 0 ? o : o.locale(this.locale);
|
||
}, this.createTZDate = (n, o) => {
|
||
if (!this.hasTimezonePlugin())
|
||
throw new Error(Ve);
|
||
const l = o === "default" ? this.moment(n) : this.moment.tz(n, o);
|
||
return this.locale === void 0 ? l : l.locale(this.locale);
|
||
}, this.date = (n) => {
|
||
if (n === null)
|
||
return null;
|
||
const o = this.moment(n);
|
||
return o.locale(this.getCurrentLocaleCode()), o;
|
||
}, this.dateWithTimezone = (n, o) => n === null ? null : o === "UTC" ? this.createUTCDate(n) : o === "system" || o === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(n) : this.createTZDate(n, o), this.getTimezone = (n) => {
|
||
var o, l, a;
|
||
const c = (o = n._z) == null ? void 0 : o.name, C = n.isUTC() ? "UTC" : "system";
|
||
return (l = c ?? ((a = this.moment.defaultZone) == null ? void 0 : a.name)) != null ? l : C;
|
||
}, this.setTimezone = (n, o) => {
|
||
var l, a;
|
||
if (this.getTimezone(n) === o)
|
||
return n;
|
||
if (o === "UTC")
|
||
return n.clone().utc();
|
||
if (o === "system")
|
||
return n.clone().local();
|
||
if (!this.hasTimezonePlugin()) {
|
||
if (o !== "default")
|
||
throw new Error(Ve);
|
||
return n;
|
||
}
|
||
const c = o === "default" ? (
|
||
// @ts-ignore
|
||
(l = (a = this.moment.defaultZone) == null ? void 0 : a.name) != null ? l : "system"
|
||
) : o;
|
||
if (c === "system")
|
||
return n.clone().local();
|
||
const C = n.clone();
|
||
return C.tz(c), C;
|
||
}, this.toJsDate = (n) => n.toDate(), this.parseISO = (n) => this.moment(n, !0), this.toISO = (n) => n.toISOString(), this.parse = (n, o) => n === "" ? null : this.locale ? this.moment(n, o, this.locale, !0) : this.moment(n, o, !0), this.getCurrentLocaleCode = () => this.locale || W.locale(), this.is12HourCycleInCurrentLocale = () => /A|a/.test(W.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")), this.expandFormat = (n) => {
|
||
const o = /(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;
|
||
return n.match(o).map((l) => {
|
||
const a = l[0];
|
||
return a === "L" || a === ";" ? W.localeData(this.getCurrentLocaleCode()).longDateFormat(l) : l;
|
||
}).join("");
|
||
}, this.getFormatHelperText = (n) => this.expandFormat(n).replace(/a/gi, "(a|p)m").toLocaleLowerCase(), this.isNull = (n) => n === null, this.isValid = (n) => this.moment(n).isValid(), this.format = (n, o) => this.formatByString(n, this.formats[o]), this.formatByString = (n, o) => {
|
||
const l = n.clone();
|
||
return l.locale(this.getCurrentLocaleCode()), l.format(o);
|
||
}, this.formatNumber = (n) => n, this.getDiff = (n, o, l) => n.diff(o, l), this.isEqual = (n, o) => n === null && o === null ? !0 : this.moment(n).isSame(o), this.isSameYear = (n, o) => n.isSame(o, "year"), this.isSameMonth = (n, o) => n.isSame(o, "month"), this.isSameDay = (n, o) => n.isSame(o, "day"), this.isSameHour = (n, o) => n.isSame(o, "hour"), this.isAfter = (n, o) => n.isAfter(o), this.isAfterYear = (n, o) => n.isAfter(o, "year"), this.isAfterDay = (n, o) => n.isAfter(o, "day"), this.isBefore = (n, o) => n.isBefore(o), this.isBeforeYear = (n, o) => n.isBefore(o, "year"), this.isBeforeDay = (n, o) => n.isBefore(o, "day"), this.isWithinRange = (n, [o, l]) => n.isBetween(o, l, null, "[]"), this.startOfYear = (n) => n.clone().startOf("year"), this.startOfMonth = (n) => n.clone().startOf("month"), this.startOfWeek = (n) => n.clone().startOf("week"), this.startOfDay = (n) => n.clone().startOf("day"), this.endOfYear = (n) => n.clone().endOf("year"), this.endOfMonth = (n) => n.clone().endOf("month"), this.endOfWeek = (n) => n.clone().endOf("week"), this.endOfDay = (n) => n.clone().endOf("day"), this.addYears = (n, o) => o < 0 ? n.clone().subtract(Math.abs(o), "years") : n.clone().add(o, "years"), this.addMonths = (n, o) => o < 0 ? n.clone().subtract(Math.abs(o), "months") : n.clone().add(o, "months"), this.addWeeks = (n, o) => o < 0 ? n.clone().subtract(Math.abs(o), "weeks") : n.clone().add(o, "weeks"), this.addDays = (n, o) => o < 0 ? n.clone().subtract(Math.abs(o), "days") : n.clone().add(o, "days"), this.addHours = (n, o) => o < 0 ? n.clone().subtract(Math.abs(o), "hours") : n.clone().add(o, "hours"), this.addMinutes = (n, o) => o < 0 ? n.clone().subtract(Math.abs(o), "minutes") : n.clone().add(o, "minutes"), this.addSeconds = (n, o) => o < 0 ? n.clone().subtract(Math.abs(o), "seconds") : n.clone().add(o, "seconds"), this.getYear = (n) => n.get("year"), this.getMonth = (n) => n.get("month"), this.getDate = (n) => n.get("date"), this.getHours = (n) => n.get("hours"), this.getMinutes = (n) => n.get("minutes"), this.getSeconds = (n) => n.get("seconds"), this.getMilliseconds = (n) => n.get("milliseconds"), this.setYear = (n, o) => n.clone().year(o), this.setMonth = (n, o) => n.clone().month(o), this.setDate = (n, o) => n.clone().date(o), this.setHours = (n, o) => n.clone().hours(o), this.setMinutes = (n, o) => n.clone().minutes(o), this.setSeconds = (n, o) => n.clone().seconds(o), this.setMilliseconds = (n, o) => n.clone().milliseconds(o), this.getDaysInMonth = (n) => n.daysInMonth(), this.getNextMonth = (n) => n.clone().add(1, "month"), this.getPreviousMonth = (n) => n.clone().subtract(1, "month"), this.getMonthArray = (n) => {
|
||
const l = [this.startOfYear(n)];
|
||
for (; l.length < 12; ) {
|
||
const a = l[l.length - 1];
|
||
l.push(this.getNextMonth(a));
|
||
}
|
||
return l;
|
||
}, this.mergeDateAndTime = (n, o) => n.clone().hour(o.hour()).minute(o.minute()).second(o.second()), this.getWeekdays = () => this.syncMomentLocale(() => W.weekdaysShort(!0)), this.getWeekArray = (n) => {
|
||
const o = this.setLocaleToValue(n), l = o.clone().startOf("month").startOf("week"), a = o.clone().endOf("month").endOf("week");
|
||
let c = 0, C = l;
|
||
const h = [];
|
||
for (; C.isBefore(a); ) {
|
||
const p = Math.floor(c / 7);
|
||
h[p] = h[p] || [], h[p].push(C), C = C.clone().add(1, "day"), c += 1;
|
||
}
|
||
return h;
|
||
}, this.getWeekNumber = (n) => n.week(), this.getYearRange = (n, o) => {
|
||
const l = this.moment(n).startOf("year"), a = this.moment(o).endOf("year"), c = [];
|
||
let C = l;
|
||
for (; C.isBefore(a); )
|
||
c.push(C), C = C.clone().add(1, "year");
|
||
return c;
|
||
}, this.getMeridiemText = (n) => this.is12HourCycleInCurrentLocale() ? W.localeData(this.getCurrentLocaleCode()).meridiem(n === "am" ? 0 : 13, 0, !1) : n === "am" ? "AM" : "PM", this.moment = s || W, this.locale = i, this.formats = pe({}, Mt, r);
|
||
}
|
||
}
|
||
const St = (e) => ({
|
||
components: {
|
||
MuiLocalizationProvider: {
|
||
defaultProps: {
|
||
localeText: pe({}, e)
|
||
}
|
||
}
|
||
}
|
||
}), De = {
|
||
hours: "часы",
|
||
minutes: "минуты",
|
||
seconds: "секунды",
|
||
meridiem: "меридием"
|
||
}, Tt = {
|
||
// Calendar navigation
|
||
previousMonth: "Предыдущий месяц",
|
||
nextMonth: "Следующий месяц",
|
||
// View navigation
|
||
openPreviousView: "открыть предыдущий вид",
|
||
openNextView: "открыть следующий вид",
|
||
calendarViewSwitchingButtonAriaLabel: (e) => e === "year" ? "открыт годовой вид, переключить на календарный вид" : "открыт календарный вид, переключить на годовой вид",
|
||
// DateRange placeholders
|
||
start: "Начало",
|
||
end: "Конец",
|
||
// Action bar
|
||
cancelButtonLabel: "Отмена",
|
||
clearButtonLabel: "Очистить",
|
||
okButtonLabel: "Ок",
|
||
todayButtonLabel: "Сегодня",
|
||
// Toolbar titles
|
||
datePickerToolbarTitle: "Выбрать дату",
|
||
dateTimePickerToolbarTitle: "Выбрать дату и время",
|
||
timePickerToolbarTitle: "Выбрать время",
|
||
dateRangePickerToolbarTitle: "Выбрать период",
|
||
// Clock labels
|
||
clockLabelText: (e, i, r) => `Выбрать ${De[e]}. ${i === null ? "Время не выбрано" : `Выбрано время ${r.format(i, "fullTime")}`}`,
|
||
hoursClockNumberText: (e) => `${e} часов`,
|
||
minutesClockNumberText: (e) => `${e} минут`,
|
||
secondsClockNumberText: (e) => `${e} секунд`,
|
||
// Digital clock labels
|
||
selectViewText: (e) => `Выбрать ${De[e]}`,
|
||
// Calendar labels
|
||
calendarWeekNumberHeaderLabel: "Номер недели",
|
||
calendarWeekNumberHeaderText: "№",
|
||
calendarWeekNumberAriaLabelText: (e) => `Неделя ${e}`,
|
||
calendarWeekNumberText: (e) => `${e}`,
|
||
// Open picker labels
|
||
openDatePickerDialogue: (e, i) => e !== null && i.isValid(e) ? `Выберите дату, выбрана дата ${i.format(e, "fullDate")}` : "Выберите дату",
|
||
openTimePickerDialogue: (e, i) => e !== null && i.isValid(e) ? `Выберите время, выбрано время ${i.format(e, "fullTime")}` : "Выберите время",
|
||
fieldClearLabel: "Очистить значение",
|
||
// Table labels
|
||
timeTableLabel: "выбрать время",
|
||
dateTableLabel: "выбрать дату",
|
||
// Field section placeholders
|
||
fieldYearPlaceholder: (e) => "Г".repeat(e.digitAmount),
|
||
fieldMonthPlaceholder: (e) => e.contentType === "letter" ? "ММММ" : "ММ",
|
||
fieldDayPlaceholder: () => "ДД",
|
||
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
|
||
fieldHoursPlaceholder: () => "чч",
|
||
fieldMinutesPlaceholder: () => "мм",
|
||
fieldSecondsPlaceholder: () => "сс",
|
||
fieldMeridiemPlaceholder: () => "(д|п)п"
|
||
}, At = St(Tt);
|
||
function It(e, i) {
|
||
const r = {
|
||
timestamp: Math.floor(Date.now() / 1e3),
|
||
message: e.message,
|
||
callStack: e.stack,
|
||
componentStack: i.componentStack
|
||
};
|
||
Vt(r);
|
||
}
|
||
let de = [], He;
|
||
function Vt(e) {
|
||
de.push(e), clearTimeout(He), He = setTimeout(() => {
|
||
Dt();
|
||
}, 1e3);
|
||
}
|
||
async function Dt() {
|
||
console.log(`Fake-sending ${de.length} errors to server`, de), de = [];
|
||
}
|
||
const J = _({
|
||
breakpoints: {
|
||
values: {
|
||
xs: 0,
|
||
sm: 560,
|
||
md: 900,
|
||
lg: 1200,
|
||
xl: 1536
|
||
}
|
||
},
|
||
components: {
|
||
MuiTypography: {
|
||
defaultProps: {
|
||
variantMapping: {
|
||
p1: "p"
|
||
}
|
||
}
|
||
},
|
||
MuiButton: {
|
||
variants: [
|
||
{
|
||
props: {
|
||
variant: "contained"
|
||
},
|
||
style: {
|
||
backgroundColor: "#7E2AEA",
|
||
padding: "13px 20px",
|
||
borderRadius: "8px",
|
||
color: "#ffffff",
|
||
boxShadow: "none",
|
||
"&:hover": {
|
||
backgroundColor: "#581CA7"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
props: {
|
||
variant: "outlined"
|
||
},
|
||
style: {
|
||
backgroundColor: "#F2F3F7",
|
||
padding: "10px 20px",
|
||
borderRadius: "8px",
|
||
border: "1px solid #7E2AEA",
|
||
color: "#9A9AAF",
|
||
"&:hover": {
|
||
backgroundColor: "#581CA7",
|
||
border: "1px solid #581CA7"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
},
|
||
typography: {
|
||
h5: {
|
||
// H2 в макете
|
||
fontSize: "24px",
|
||
lineHeight: "28.44px",
|
||
fontWeight: 500
|
||
},
|
||
button: {
|
||
fontSize: "18px",
|
||
lineHeight: "24px",
|
||
fontWeight: 400,
|
||
textTransform: "none"
|
||
},
|
||
body1: {
|
||
// T1 в макете
|
||
fontSize: "18px",
|
||
lineHeight: "21.33px",
|
||
fontWeight: 400
|
||
},
|
||
body2: {
|
||
// M1 в макете
|
||
fontSize: "16px",
|
||
lineHeight: "20px",
|
||
fontWeight: 500
|
||
},
|
||
p1: {
|
||
// P1 в макете
|
||
fontSize: "20px",
|
||
lineHeight: "24px",
|
||
fontWeight: 500
|
||
},
|
||
fontFamily: [
|
||
"Twemoji Country Flags",
|
||
"Rubik",
|
||
"-apple-system",
|
||
"BlinkMacSystemFont",
|
||
'"Segoe UI"',
|
||
'"Helvetica Neue"',
|
||
"Arial",
|
||
"sans-serif",
|
||
'"Apple Color Emoji"',
|
||
'"Segoe UI Emoji"',
|
||
'"Segoe UI Symbol"'
|
||
].join(",")
|
||
}
|
||
});
|
||
J.typography.h2 = {
|
||
fontSize: "70px",
|
||
lineHeight: "70px",
|
||
fontWeight: 500,
|
||
[J.breakpoints.down("md")]: {
|
||
fontSize: "42px",
|
||
lineHeight: "50px"
|
||
}
|
||
};
|
||
J.typography.h4 = {
|
||
// H1 в макете
|
||
fontSize: "36px",
|
||
lineHeight: "42.66px",
|
||
fontWeight: 500,
|
||
[J.breakpoints.down("md")]: {
|
||
fontSize: "24px",
|
||
lineHeight: "28.44px"
|
||
}
|
||
};
|
||
J.typography.infographic = {
|
||
fontSize: "80px",
|
||
lineHeight: "94.8px",
|
||
fontWeight: 400,
|
||
[J.breakpoints.down("md")]: {
|
||
fontSize: "50px",
|
||
lineHeight: "59px",
|
||
fontWeight: 400
|
||
}
|
||
};
|
||
const Ee = _({
|
||
...J,
|
||
palette: {
|
||
mode: "light",
|
||
primary: {
|
||
main: "#000000"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#000000",
|
||
secondary: "#7E2AEA"
|
||
},
|
||
background: {
|
||
default: "#F2F3F7"
|
||
},
|
||
lightPurple: {
|
||
main: "#333647"
|
||
},
|
||
darkPurple: {
|
||
main: "#252734"
|
||
},
|
||
brightPurple: {
|
||
main: "#7E2AEA"
|
||
},
|
||
fadePurple: {
|
||
main: "#C19AF5"
|
||
},
|
||
grey1: {
|
||
main: "#434657"
|
||
},
|
||
grey2: {
|
||
main: "#9A9AAF"
|
||
},
|
||
grey3: {
|
||
main: "#4D4D4D"
|
||
},
|
||
grey4: {
|
||
main: "#333647"
|
||
},
|
||
orange: {
|
||
main: "#FB5607"
|
||
},
|
||
navbarbg: {
|
||
main: "#FFFFFF"
|
||
}
|
||
}
|
||
}), Ht = ({ error: e }) => {
|
||
let i = "Что-то пошло не так";
|
||
return e.message === "No questions found" && (i = "Нет созданных вопросов"), e.message === "Quiz already completed" && (i = "Вы уже прошли этот опрос"), /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center",
|
||
height: "100%"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
textAlign: "center"
|
||
},
|
||
children: i
|
||
}
|
||
)
|
||
}
|
||
);
|
||
};
|
||
var me = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
||
const ye = /* @__PURE__ */ new Map(), ae = (e) => {
|
||
const i = ye.get(e);
|
||
return i ? Object.fromEntries(
|
||
Object.entries(i.stores).map(([r, s]) => [r, s.getState()])
|
||
) : {};
|
||
}, Et = (e, i, r) => {
|
||
if (e === void 0)
|
||
return {
|
||
type: "untracked",
|
||
connection: i.connect(r)
|
||
};
|
||
const s = ye.get(r.name);
|
||
if (s)
|
||
return { type: "tracked", store: e, ...s };
|
||
const n = {
|
||
connection: i.connect(r),
|
||
stores: {}
|
||
};
|
||
return ye.set(r.name, n), { type: "tracked", store: e, ...n };
|
||
}, Rt = (e, i = {}) => (r, s, n) => {
|
||
const { enabled: o, anonymousActionType: l, store: a, ...c } = i;
|
||
let C;
|
||
try {
|
||
C = (o ?? (me ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
|
||
} catch {
|
||
}
|
||
if (!C)
|
||
return (me ? "production" : void 0) !== "production" && o && console.warn(
|
||
"[zustand devtools middleware] Please install/enable Redux devtools extension"
|
||
), e(r, s, n);
|
||
const { connection: h, ...p } = Et(a, C, c);
|
||
let f = !0;
|
||
n.setState = (g, F, w) => {
|
||
const S = r(g, F);
|
||
if (!f)
|
||
return S;
|
||
const O = w === void 0 ? { type: l || "anonymous" } : typeof w == "string" ? { type: w } : w;
|
||
return a === void 0 ? (h == null || h.send(O, s()), S) : (h == null || h.send(
|
||
{
|
||
...O,
|
||
type: `${a}/${O.type}`
|
||
},
|
||
{
|
||
...ae(c.name),
|
||
[a]: n.getState()
|
||
}
|
||
), S);
|
||
};
|
||
const j = (...g) => {
|
||
const F = f;
|
||
f = !1, r(...g), f = F;
|
||
}, k = e(n.setState, s, n);
|
||
if (p.type === "untracked" ? h == null || h.init(k) : (p.stores[p.store] = n, h == null || h.init(
|
||
Object.fromEntries(
|
||
Object.entries(p.stores).map(([g, F]) => [
|
||
g,
|
||
g === p.store ? k : F.getState()
|
||
])
|
||
)
|
||
)), n.dispatchFromDevtools && typeof n.dispatch == "function") {
|
||
let g = !1;
|
||
const F = n.dispatch;
|
||
n.dispatch = (...w) => {
|
||
(me ? "production" : void 0) !== "production" && w[0].type === "__setState" && !g && (console.warn(
|
||
'[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
|
||
), g = !0), F(...w);
|
||
};
|
||
}
|
||
return h.subscribe((g) => {
|
||
var F;
|
||
switch (g.type) {
|
||
case "ACTION":
|
||
if (typeof g.payload != "string") {
|
||
console.error(
|
||
"[zustand devtools middleware] Unsupported action format"
|
||
);
|
||
return;
|
||
}
|
||
return we(
|
||
g.payload,
|
||
(w) => {
|
||
if (w.type === "__setState") {
|
||
if (a === void 0) {
|
||
j(w.state);
|
||
return;
|
||
}
|
||
Object.keys(w.state).length !== 1 && console.error(
|
||
`
|
||
[zustand devtools middleware] Unsupported __setState action format.
|
||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||
`
|
||
);
|
||
const S = w.state[a];
|
||
if (S == null)
|
||
return;
|
||
JSON.stringify(n.getState()) !== JSON.stringify(S) && j(S);
|
||
return;
|
||
}
|
||
n.dispatchFromDevtools && typeof n.dispatch == "function" && n.dispatch(w);
|
||
}
|
||
);
|
||
case "DISPATCH":
|
||
switch (g.payload.type) {
|
||
case "RESET":
|
||
return j(k), a === void 0 ? h == null ? void 0 : h.init(n.getState()) : h == null ? void 0 : h.init(ae(c.name));
|
||
case "COMMIT":
|
||
if (a === void 0) {
|
||
h == null || h.init(n.getState());
|
||
return;
|
||
}
|
||
return h == null ? void 0 : h.init(ae(c.name));
|
||
case "ROLLBACK":
|
||
return we(g.state, (w) => {
|
||
if (a === void 0) {
|
||
j(w), h == null || h.init(n.getState());
|
||
return;
|
||
}
|
||
j(w[a]), h == null || h.init(ae(c.name));
|
||
});
|
||
case "JUMP_TO_STATE":
|
||
case "JUMP_TO_ACTION":
|
||
return we(g.state, (w) => {
|
||
if (a === void 0) {
|
||
j(w);
|
||
return;
|
||
}
|
||
JSON.stringify(n.getState()) !== JSON.stringify(w[a]) && j(w[a]);
|
||
});
|
||
case "IMPORT_STATE": {
|
||
const { nextLiftedState: w } = g.payload, S = (F = w.computedStates.slice(-1)[0]) == null ? void 0 : F.state;
|
||
if (!S)
|
||
return;
|
||
j(a === void 0 ? S : S[a]), h == null || h.send(
|
||
null,
|
||
// FIXME no-any
|
||
w
|
||
);
|
||
return;
|
||
}
|
||
case "PAUSE_RECORDING":
|
||
return f = !f;
|
||
}
|
||
return;
|
||
}
|
||
}), k;
|
||
}, Bt = Rt, we = (e, i) => {
|
||
let r;
|
||
try {
|
||
r = JSON.parse(e);
|
||
} catch (s) {
|
||
console.error(
|
||
"[zustand devtools middleware] Could not parse the received json",
|
||
s
|
||
);
|
||
}
|
||
r !== void 0 && i(r);
|
||
}, V = bt()(
|
||
Bt(
|
||
(e, i) => ({
|
||
answers: [],
|
||
ownVariants: [],
|
||
points: {},
|
||
pointsSum: 0,
|
||
currentQuizStep: "startpage"
|
||
}),
|
||
{
|
||
name: "quizView",
|
||
enabled: !1,
|
||
trace: !1
|
||
}
|
||
)
|
||
);
|
||
function Ge(e, i) {
|
||
V.setState((r) => yt(r, e), !1, i);
|
||
}
|
||
const Nt = () => {
|
||
const e = V.getState().points;
|
||
let i = Object.values(e).reduce((r, s) => r + s);
|
||
console.log("сумма ", i), V.setState({ pointsSum: i });
|
||
}, H = (e, i, r) => {
|
||
Ge((n) => {
|
||
const o = n.answers.findIndex((l) => e === l.questionId);
|
||
o < 0 ? n.answers.push({ questionId: e, answer: i }) : n.answers[o] = { questionId: e, answer: i };
|
||
}, {
|
||
type: "updateAnswer",
|
||
questionId: e,
|
||
answer: i
|
||
});
|
||
const s = V.getState().points;
|
||
V.setState({ points: { ...s, [e]: r } }), Nt();
|
||
}, oe = (e) => V.setState((i) => ({
|
||
answers: i.answers.filter((r) => e !== r.questionId)
|
||
}), !1, {
|
||
type: "deleteAnswer",
|
||
questionId: e
|
||
}), Pt = (e, i) => Ge((r) => {
|
||
const s = r.ownVariants.findIndex((n) => n.id === e);
|
||
s < 0 ? r.ownVariants.push({
|
||
id: e,
|
||
variant: {
|
||
id: jt(),
|
||
answer: i,
|
||
extendedText: "",
|
||
hints: "",
|
||
originalImageUrl: ""
|
||
}
|
||
}) : r.ownVariants[s].variant.answer = i;
|
||
}, {
|
||
type: "updateOwnVariant",
|
||
id: e,
|
||
answer: i
|
||
}), he = (e) => V.setState({
|
||
currentQuizStep: e
|
||
}, !1, {
|
||
type: "setCurrentQuizStep",
|
||
currentQuizStep: e
|
||
}), Re = (e) => !(e.title.length > 0 && e.title !== " " || e.description.length > 0 && e.description !== " " || e.content.back.length > 0 && e.content.back !== " " || e.content.originalBack.length > 0 && e.content.originalBack !== " " || e.content.innerName.length > 0 && e.content.innerName !== " " || e.content.text.length > 0 && e.content.text !== " " || e.content.video.length > 0 && e.content.video !== " " || e.content.hint.text.length > 0 && e.content.hint.text !== " ");
|
||
function Wt() {
|
||
const { settings: e, questions: i } = D(), [r, s] = A(a), { answers: n, pointsSum: o } = V((x) => x), l = i.every(({ content: x }) => x.rule.parentId !== "root") ? i.indexOf(r) : null;
|
||
function a() {
|
||
if (i.length === 0)
|
||
throw new Error("No questions found");
|
||
if (e.cfg.haveRoot) {
|
||
const x = i.find(
|
||
(v) => v.id === e.cfg.haveRoot || v.content.id === e.cfg.haveRoot
|
||
);
|
||
if (!x)
|
||
throw new Error("Root question not found");
|
||
return x;
|
||
}
|
||
return i[0];
|
||
}
|
||
const c = () => i.find(
|
||
(x) => x.type === "result" && x.content.rule.parentId === "line"
|
||
), C = () => {
|
||
var v;
|
||
const x = n.find(({ questionId: L }) => L === r.id);
|
||
if (x && !W.isMoment(x.answer)) {
|
||
const L = Array.isArray(x.answer) ? x.answer : [x.answer];
|
||
for (const B of r.content.rule.main)
|
||
if (L.some((q) => B.rules[0].answers.includes(q)))
|
||
return B.next;
|
||
}
|
||
if (!r.required) {
|
||
const L = r.content.rule.default;
|
||
if (L.length > 1 && L !== " ")
|
||
return L;
|
||
if (["date", "page", "text", "number"].includes(r.type) && r.content.rule.children.length === 1)
|
||
return r.content.rule.children[0];
|
||
}
|
||
return (v = i.find((L) => L.type === "result" && L.content.rule.parentId === r.content.id)) == null ? void 0 : v.id;
|
||
}, h = Ae(() => e.cfg.score ? c() : C(), [n, r, i]), p = l !== null ? i[l - 1] : i.find(
|
||
(x) => x.id === r.content.rule.parentId || x.content.id === r.content.rule.parentId
|
||
), f = () => {
|
||
const x = i.filter((B) => B.type === "result" && B.content.rule.minScore !== void 0 && B.content.rule.minScore <= o), v = x.map((B) => B.type === "result" && B.content.rule.minScore !== void 0 ? B.content.rule.minScore : 0), L = Math.max(...v);
|
||
return console.log(x), console.log(v), console.log(L), x[v.indexOf(L)];
|
||
}, k = (() => {
|
||
let x;
|
||
if (console.log(11111111111), e.cfg.score ? (console.log(222222222), l !== null && (console.log(33333333333), x = i[l + 1], console.log(4444444), console.log("перед ифом", x), ((x == null ? void 0 : x.type) === "result" || x == null) && (x = f()), console.log(5555555555))) : (console.log(6666666), l !== null ? (console.log(777777777), x = i[l + 1] ?? i.find(
|
||
(v) => v.type === "result" && v.content.rule.parentId === "line"
|
||
)) : (console.log(88888888888888), x = i.find((v) => v.id === h || v.content.id === h))), console.log("next", x), !x && r.type !== "result")
|
||
throw new Error("Не найден следующий вопрос");
|
||
return x;
|
||
})(), g = se(() => {
|
||
if ((k == null ? void 0 : k.type) !== "result")
|
||
throw new Error("Current question is not result");
|
||
s(k), (e.cfg.resultInfo.showResultForm === "after" || Re(k)) && he("contactform");
|
||
}, [k, e.cfg.resultInfo.showResultForm]), F = se(() => {
|
||
if (r.type !== "result")
|
||
throw new Error("Current question is not result");
|
||
if (Re(r)) {
|
||
I("Данные отправлены");
|
||
return;
|
||
}
|
||
he("question");
|
||
}, [r]), w = se(() => {
|
||
if (!p)
|
||
throw new Error("Previous question not found");
|
||
s(p);
|
||
}, [p]), S = se(() => {
|
||
if (!k)
|
||
throw new Error("Next question not found");
|
||
if (k.type === "result")
|
||
return g();
|
||
s(k);
|
||
}, [k, g]), O = !!p, b = Ae(() => {
|
||
const x = n.some(({ questionId: v }) => v === r.id);
|
||
return "required" in r.content && r.content.required ? x : !!k;
|
||
}, [n, r.content, r.id, k]);
|
||
return nt({
|
||
linearQuestionIndex: l,
|
||
currentQuestion: r,
|
||
prevQuestion: p,
|
||
nextQuestion: k
|
||
}), {
|
||
currentQuestion: r,
|
||
currentQuestionStepNumber: l === null ? null : l + 1,
|
||
isNextButtonEnabled: b,
|
||
isPreviousButtonEnabled: O,
|
||
moveToPrevQuestion: w,
|
||
moveToNextQuestion: S,
|
||
showResultAfterContactForm: F
|
||
};
|
||
}
|
||
function Fe(e) {
|
||
throw new Error(`Shouldn't reach here: ${e}`);
|
||
}
|
||
const $ = _(
|
||
{
|
||
...J,
|
||
components: {
|
||
MuiButton: {
|
||
variants: [
|
||
{
|
||
props: {
|
||
variant: "contained"
|
||
},
|
||
style: {
|
||
padding: "13px 20px",
|
||
borderRadius: "8px",
|
||
boxShadow: "none"
|
||
// "&:hover": {
|
||
// backgroundColor: "#581CA7"
|
||
// }
|
||
}
|
||
},
|
||
{
|
||
props: {
|
||
variant: "outlined"
|
||
},
|
||
style: {
|
||
padding: "10px 20px",
|
||
borderRadius: "8px",
|
||
"&:hover": {
|
||
backgroundColor: "#581CA7",
|
||
border: "1px solid #581CA7"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
), zt = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#7E2AEA"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#333647",
|
||
secondary: "#7E2AEA"
|
||
},
|
||
background: {
|
||
default: "#FFFFFF"
|
||
}
|
||
}
|
||
}), _t = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#7E2AEA"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#FFFFFF",
|
||
secondary: "#7E2AEA"
|
||
},
|
||
background: {
|
||
default: "#333647"
|
||
}
|
||
}
|
||
}), Ot = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#D34085"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#333647",
|
||
secondary: "#D34085"
|
||
},
|
||
background: {
|
||
default: "#FFF9FC"
|
||
}
|
||
}
|
||
}), Zt = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#D34085"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#FFFFFF",
|
||
secondary: "#D34085"
|
||
},
|
||
background: {
|
||
default: "#333647"
|
||
}
|
||
}
|
||
}), $t = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#4E4D51"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#333647",
|
||
secondary: "#FFF9FC"
|
||
},
|
||
background: {
|
||
default: "#FFFFFF"
|
||
}
|
||
}
|
||
}), qt = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#758E4F"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#333647",
|
||
secondary: "#758E4F"
|
||
},
|
||
background: {
|
||
default: "#F9FBF1"
|
||
}
|
||
}
|
||
}), Ut = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#7E2AEA"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#333647",
|
||
secondary: "#7E2AEA"
|
||
},
|
||
background: {
|
||
default: "#FBF8FF"
|
||
}
|
||
}
|
||
}), Yt = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#F2B133"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#333647",
|
||
secondary: "#F2B133"
|
||
},
|
||
background: {
|
||
default: "#FFFCF6"
|
||
}
|
||
}
|
||
}), Jt = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#E6AA37"
|
||
},
|
||
secondary: {
|
||
main: "#FFFCF6"
|
||
},
|
||
text: {
|
||
primary: "#FFFFFF",
|
||
secondary: "#F2B133"
|
||
},
|
||
background: {
|
||
default: "#333647"
|
||
}
|
||
}
|
||
}), Gt = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#4964ED"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#333647",
|
||
secondary: "#4964ED"
|
||
},
|
||
background: {
|
||
default: "#F5F7FF"
|
||
}
|
||
}
|
||
}), Xt = _({
|
||
...$,
|
||
palette: {
|
||
primary: {
|
||
main: "#07A0C3"
|
||
},
|
||
secondary: {
|
||
main: "#252734"
|
||
},
|
||
text: {
|
||
primary: "#FFFFFF",
|
||
secondary: "#07A0C3"
|
||
},
|
||
background: {
|
||
default: "#333647"
|
||
}
|
||
}
|
||
}), z = {
|
||
StandardTheme: { theme: zt, isLight: !0 },
|
||
StandardDarkTheme: { theme: _t, isLight: !1 },
|
||
PinkTheme: { theme: Ot, isLight: !0 },
|
||
PinkDarkTheme: { theme: Zt, isLight: !1 },
|
||
BlackWhiteTheme: { theme: $t, isLight: !0 },
|
||
OliveTheme: { theme: qt, isLight: !0 },
|
||
YellowTheme: { theme: Yt, isLight: !0 },
|
||
GoldDarkTheme: { theme: Jt, isLight: !1 },
|
||
PurpleTheme: { theme: Ut, isLight: !0 },
|
||
BlueTheme: { theme: Gt, isLight: !0 },
|
||
BlueDarkTheme: { theme: Xt, isLight: !1 }
|
||
}, Xe = ze(null), N = () => {
|
||
const e = _e(Xe);
|
||
if (e === null)
|
||
throw new Error("rootContainerSize context is null");
|
||
return e;
|
||
};
|
||
function Kt({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
// height: "38px",
|
||
// width: "45px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "15",
|
||
height: "15",
|
||
viewBox: "0 0 15 15",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M7.5 7.96875C8.53553 7.96875 9.375 7.12928 9.375 6.09375C9.375 5.05822 8.53553 4.21875 7.5 4.21875C6.46447 4.21875 5.625 5.05822 5.625 6.09375C5.625 7.12928 6.46447 7.96875 7.5 7.96875Z",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M12.1875 6.09375C12.1875 10.3125 7.5 13.5938 7.5 13.5938C7.5 13.5938 2.8125 10.3125 2.8125 6.09375C2.8125 4.85055 3.30636 3.65826 4.18544 2.77919C5.06451 1.90011 6.2568 1.40625 7.5 1.40625C8.7432 1.40625 9.93549 1.90011 10.8146 2.77919C11.6936 3.65826 12.1875 4.85055 12.1875 6.09375V6.09375Z",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function Qt({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
// height: "38px",
|
||
// width: "45px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "15",
|
||
height: "15",
|
||
viewBox: "0 0 15 15",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M1.875 3.28125H13.125V11.25C13.125 11.3743 13.0756 11.4935 12.9877 11.5815C12.8998 11.6694 12.7806 11.7188 12.6562 11.7188H2.34375C2.21943 11.7188 2.1002 11.6694 2.01229 11.5815C1.92439 11.4935 1.875 11.3743 1.875 11.25V3.28125Z",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M13.125 3.28125L7.5 8.4375L1.875 3.28125",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function e1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
// height: "38px",
|
||
// width: "45px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "13",
|
||
height: "13",
|
||
viewBox: "0 0 13 13",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M6.5 8.375C8.57107 8.375 10.25 6.69607 10.25 4.625C10.25 2.55393 8.57107 0.875 6.5 0.875C4.42893 0.875 2.75 2.55393 2.75 4.625C2.75 6.69607 4.42893 8.375 6.5 8.375Z",
|
||
stroke: e,
|
||
strokeMiterlimit: "10"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M0.8125 11.6568C1.38844 10.659 2.21689 9.83044 3.21458 9.25436C4.21227 8.67828 5.34403 8.375 6.49609 8.375C7.64816 8.375 8.77992 8.67828 9.77761 9.25436C10.7753 9.83044 11.6037 10.659 12.1797 11.6568",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M0.765625 11.6914H11.9866",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function t1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
// height: "38px",
|
||
// width: "45px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
"svg",
|
||
{
|
||
width: "15",
|
||
height: "15",
|
||
viewBox: "0 0 15 15",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: /* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M5.41992 7.31237C5.90228 8.30847 6.70774 9.11187 7.70508 9.59166C7.77865 9.6265 7.86002 9.64157 7.94118 9.63541C8.02235 9.62925 8.10051 9.60205 8.16797 9.55651L9.63281 8.57799C9.69753 8.5341 9.77232 8.50731 9.85019 8.50014C9.92806 8.49297 10.0065 8.50564 10.0781 8.53698L12.8203 9.71471C12.914 9.75372 12.9923 9.82245 13.0432 9.91033C13.094 9.9982 13.1145 10.1004 13.1016 10.201C13.0146 10.8794 12.6835 11.5029 12.1702 11.9547C11.6568 12.4066 10.9964 12.656 10.3125 12.6561C8.19906 12.6561 6.17217 11.8166 4.67774 10.3221C3.18331 8.82769 2.34375 6.80081 2.34375 4.68737C2.3439 4.00346 2.59325 3.34304 3.04513 2.82968C3.49701 2.31633 4.12047 1.98522 4.79883 1.8983C4.89951 1.88537 5.00166 1.90589 5.08954 1.95671C5.17741 2.00754 5.24615 2.08583 5.28516 2.17955L6.46289 4.9276C6.49352 4.99812 6.50633 5.07508 6.5002 5.15172C6.49407 5.22835 6.46918 5.3023 6.42773 5.36705L5.44922 6.85534C5.40565 6.92265 5.38009 7.00001 5.37496 7.08003C5.36983 7.16005 5.38531 7.24004 5.41992 7.31237V7.31237Z",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function n1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
// height: "38px",
|
||
// width: "45px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "15",
|
||
height: "15",
|
||
viewBox: "0 0 15 15",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M8.67188 1.60156L8.67188 13.3838",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M10.6016 4.21875H13.7768C13.8534 4.21875 13.9268 4.26814 13.9809 4.35604C14.035 4.44395 14.0655 4.56318 14.0655 4.6875V10.3125C14.0655 10.4368 14.035 10.556 13.9809 10.644C13.9268 10.7319 13.8534 10.7812 13.7768 10.7812H10.6016",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M8.67081 10.7812H1.58194C1.41103 10.7812 1.24711 10.7319 1.12625 10.644C1.0054 10.556 0.9375 10.4368 0.9375 10.3125V4.6875C0.9375 4.56318 1.0054 4.44395 1.12625 4.35604C1.24711 4.26814 1.41103 4.21875 1.58194 4.21875H8.67081",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M3.98438 6.5625H5.625",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M7.85156 1.60156H9.49219",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M7.85156 13.3828H9.49219",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M4.80469 6.5625V8.67188",
|
||
stroke: e,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
const xe = ({ checked: e = !1, color: i = "#7E2AEA" }) => (M(), /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "24px",
|
||
width: "24px",
|
||
borderRadius: "6px",
|
||
display: "flex",
|
||
justifyContent: "center",
|
||
alignItems: "center",
|
||
backgroundColor: e ? i : "#F2F3F7",
|
||
border: "1px solid #9A9AAF"
|
||
},
|
||
children: e && /* @__PURE__ */ t.jsx(
|
||
"svg",
|
||
{
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
width: "15",
|
||
height: "15",
|
||
viewBox: "0 0 25 18",
|
||
fill: "none",
|
||
children: /* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M2 9L10 16.5L22.5 1.5",
|
||
stroke: "#ffffff",
|
||
strokeWidth: "4",
|
||
strokeLinecap: "round"
|
||
}
|
||
)
|
||
}
|
||
)
|
||
}
|
||
));
|
||
function i1({ label: e, handleChange: i, checked: r, sx: s, dataCy: n, colorIcon: o }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
ie,
|
||
{
|
||
control: /* @__PURE__ */ t.jsx(
|
||
Ze,
|
||
{
|
||
sx: { padding: "0px 13px 1px 11px" },
|
||
disableRipple: !0,
|
||
icon: /* @__PURE__ */ t.jsx(xe, {}),
|
||
checkedIcon: /* @__PURE__ */ t.jsx(xe, { checked: !0, color: o }),
|
||
onChange: i,
|
||
checked: r,
|
||
"data-cy": n
|
||
}
|
||
),
|
||
label: e,
|
||
sx: {
|
||
color: "#9A9AAF",
|
||
height: "26px",
|
||
...s
|
||
}
|
||
}
|
||
);
|
||
}
|
||
let o1 = "";
|
||
const Me = ({ url: e, body: i }) => kt(e, {
|
||
data: i,
|
||
headers: {
|
||
"X-Sessionkey": o1,
|
||
"Content-Type": "multipart/form-data"
|
||
},
|
||
method: "POST"
|
||
});
|
||
function E({ questionId: e, body: i, qid: r }) {
|
||
const s = new FormData(), n = [
|
||
{
|
||
question_id: e,
|
||
content: i
|
||
//тут массив с ответом
|
||
}
|
||
];
|
||
return s.append("answers", JSON.stringify(n)), console.log("QID", r), s.append("qid", r), Me({
|
||
url: "https://s.hbpn.link/answer/answer",
|
||
body: s,
|
||
method: "POST"
|
||
});
|
||
}
|
||
function r1({ questionId: e, body: i, qid: r }) {
|
||
const s = new FormData(), n = [
|
||
{
|
||
question_id: e,
|
||
content: "file:" + i.name
|
||
}
|
||
];
|
||
return s.append("answers", JSON.stringify(n)), s.append(i.name, i.file), console.log("QID", r), s.append("qid", r), Me({
|
||
url: "https://s.hbpn.link/answer/answer",
|
||
body: s,
|
||
method: "POST"
|
||
});
|
||
}
|
||
function s1({ questionId: e, body: i, qid: r }) {
|
||
const s = new FormData(), n = [
|
||
{
|
||
question_id: e,
|
||
content: JSON.stringify(i),
|
||
result: !0,
|
||
qid: r
|
||
}
|
||
];
|
||
return s.append("answers", JSON.stringify(n)), s.append("qid", r), Me({
|
||
url: "https://s.hbpn.link/answer/answer",
|
||
body: s,
|
||
method: "POST"
|
||
});
|
||
}
|
||
const Le = (e) => /* @__PURE__ */ t.jsxs("svg", { ...e, height: "1em", viewBox: "0 0 89 81", fill: "none", children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
fillRule: "evenodd",
|
||
clipRule: "evenodd",
|
||
d: "M34.5604 0.0885217C24.3105 -1.09878 17.239 9.91147 10.6615 17.8703C4.88905 24.8549 0.590996 32.7441 0.0917664 41.7955C-0.439369 51.4255 1.3075 61.4545 7.86805 68.5172C14.6258 75.7923 24.7486 80.3889 34.5604 78.9028C43.5576 77.54 47.5388 67.6598 54.2372 61.4939C61.5105 54.799 75.061 51.6851 74.8731 41.7955C74.6848 31.8908 60.3836 29.952 53.5024 22.8328C46.3747 15.4585 44.7425 1.26797 34.5604 0.0885217Z",
|
||
fill: "#7E2AEA"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx("circle", { cx: "60.0543", cy: "75.1555", r: "5.65583", fill: "#7E2AEA" }),
|
||
/* @__PURE__ */ t.jsx("circle", { cx: "54.4046", cy: "12.3947", r: "2.1546", fill: "#7E2AEA" }),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M88.866 39.4685C88.2378 33.3607 85.3643 27.7037 80.8025 23.594C76.2408 19.4843 70.3156 17.2146 64.1757 17.2248C63.3039 17.2252 62.4328 17.2708 61.5658 17.3614C55.4608 18.0025 49.8093 20.8814 45.7015 25.443C41.5937 30.0046 39.3205 35.9256 39.3203 42.0642V42.0642V77.549H49.9658V62.468C54.128 65.3636 59.0787 66.9119 64.1491 66.9036C65.0208 66.9033 65.8919 66.8577 66.759 66.767C70.0031 66.426 73.1483 65.4494 76.0151 63.8929C78.8818 62.3364 81.4138 60.2305 83.4667 57.6955C85.5195 55.1604 87.0529 52.2458 87.9793 49.1181C88.9058 45.9904 89.2071 42.7109 88.866 39.4667V39.4685ZM75.1937 51.0011C74.0243 52.4537 72.5783 53.6599 70.9395 54.5498C69.3007 55.4397 67.5017 55.9956 65.6465 56.1854C65.149 56.2371 64.6492 56.2631 64.1491 56.2635C60.9296 56.2605 57.8068 55.1631 55.2932 53.1515C52.7796 51.1398 51.0245 48.3334 50.3161 45.1929C49.6077 42.0523 49.988 38.7642 51.3945 35.8683C52.8011 32.9723 55.1504 30.6406 58.0568 29.2558C60.9632 27.871 64.2541 27.5154 67.3892 28.2473C70.5244 28.9793 73.3176 30.7553 75.3103 33.284C77.303 35.8126 78.3769 38.9436 78.3558 42.1629C78.3346 45.3823 77.2196 48.4989 75.1937 51.0011Z",
|
||
fill: "#151515"
|
||
}
|
||
)
|
||
] }), a1 = ke, je = /^(([^<>()[\].,:\s@"]+(\.[^<>()[\].,:\s@"]+)*)|(".+"))@(([^<>()[\].,:\s@"]+\.)+[^<>()[\].,:\s@"]{2,})$/iu, l1 = ({ currentQuestion: e, onShowResult: i }) => {
|
||
var G;
|
||
const r = M(), { settings: s, questions: n, quizId: o } = D(), [l, a] = A(!1), [c, C] = A(""), [h, p] = A(""), [f, j] = A(""), [k, g] = A(""), [F, w] = A(""), S = Oe(!0), [O, b] = A(!1), x = N() < 850;
|
||
if (!(e.type === "result" ? e : n.find((P) => s != null && s.cfg.haveRoot ? P.type === "result" && P.content.rule.parentId === e.content.id : P.type === "result" && P.content.rule.parentId === "line")))
|
||
throw new Error("Result question not found");
|
||
const L = async () => {
|
||
const P = s.cfg.formContact.fields || s.cfg.formContact, R = {};
|
||
if (c.length > 0 && (R.name = c), h.length > 0 && (R.email = h), f.length > 0 && (R.phone = f), F.length > 0 && (R.address = F), k.length > 0 && (R.customs = { [P.text.text || "Фамилия"]: k }), Object.keys(R).length > 0)
|
||
try {
|
||
await s1({
|
||
questionId: e.id,
|
||
body: R,
|
||
qid: o
|
||
});
|
||
const re = JSON.parse(localStorage.getItem("sessions") || "{}");
|
||
localStorage.setItem(
|
||
"sessions",
|
||
JSON.stringify({ ...re, [o]: (/* @__PURE__ */ new Date()).getTime() })
|
||
);
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
}, B = s.cfg.formContact.fields || s.cfg.formContact, q = {};
|
||
for (const P in B) {
|
||
const R = B[P];
|
||
R.used && (q[P] = R);
|
||
}
|
||
const U = Object.keys(q).length > 2;
|
||
async function Z() {
|
||
if ((s.cfg.formContact.fields || s.cfg.formContact).email.used !== je.test(h))
|
||
return I("введена некорректная почта");
|
||
if (S.current) {
|
||
if (c.length === 0 && h.length === 0 && f.length === 0 && k.length === 0 && F.length === 0)
|
||
return I("Пожалуйста, заполните поля");
|
||
b(!0);
|
||
try {
|
||
await L(), S.current = !1;
|
||
const R = JSON.parse(
|
||
localStorage.getItem("sessions") || "{}"
|
||
);
|
||
R[o] = Date.now(), localStorage.setItem(
|
||
"sessions",
|
||
JSON.stringify(R)
|
||
), I("Данные успешно отправлены");
|
||
} catch {
|
||
I("повторите попытку позже");
|
||
}
|
||
i();
|
||
}
|
||
b(!1);
|
||
}
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center",
|
||
backgroundColor: r.palette.background.default,
|
||
height: "100%",
|
||
overflow: "auto",
|
||
"&::-webkit-scrollbar": {
|
||
width: "0",
|
||
display: "none",
|
||
msOverflowStyle: "none"
|
||
},
|
||
scrollbarWidth: "none",
|
||
msOverflowStyle: "none"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: U && !x ? "100%" : x ? void 0 : "530px",
|
||
borderRadius: "4px",
|
||
height: "90vh",
|
||
display: U && !x ? "flex" : void 0
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: U && !x ? "100%" : void 0,
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
alignItems: "center",
|
||
justifyContent: "center",
|
||
borderRight: U && !x ? "1px solid gray" : void 0
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
textAlign: "center",
|
||
m: "20px 0",
|
||
fontSize: "28px",
|
||
color: r.palette.text.primary,
|
||
wordBreak: "break-word"
|
||
},
|
||
children: s.cfg.formContact.title || "Заполните форму, чтобы получить результаты теста"
|
||
}
|
||
),
|
||
s.cfg.formContact.desc && /* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
color: r.palette.text.primary,
|
||
textAlign: "center",
|
||
m: "20px 0",
|
||
fontSize: "18px",
|
||
wordBreak: "break-word"
|
||
},
|
||
children: s.cfg.formContact.desc
|
||
}
|
||
)
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center",
|
||
flexDirection: "column",
|
||
backgroundColor: r.palette.background.default,
|
||
p: "30px"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
my: "20px"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
d1,
|
||
{
|
||
name: c,
|
||
setName: C,
|
||
email: h,
|
||
setEmail: p,
|
||
phone: f,
|
||
setPhone: j,
|
||
text: k,
|
||
setText: g,
|
||
adress: F,
|
||
setAdress: w
|
||
}
|
||
)
|
||
}
|
||
),
|
||
// resultQuestion &&
|
||
// settings.cfg.resultInfo.when === "after" &&
|
||
/* @__PURE__ */ t.jsx(
|
||
Q,
|
||
{
|
||
disabled: !(l && !O),
|
||
variant: "contained",
|
||
onClick: Z,
|
||
children: ((G = s.cfg.formContact) == null ? void 0 : G.button) || "Получить результаты"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
mt: "20px",
|
||
width: x ? "300px" : "450px"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
i1,
|
||
{
|
||
label: "",
|
||
handleChange: ({ target: P }) => {
|
||
a(P.checked);
|
||
},
|
||
checked: l,
|
||
colorIcon: r.palette.primary.main
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(m, { sx: { color: r.palette.text.primary }, children: [
|
||
"С ",
|
||
/* @__PURE__ */ t.jsxs(Y, { href: "https://shub.pena.digital/ppdd", target: "_blank", children: [
|
||
"Положением об обработке персональных данных",
|
||
" "
|
||
] }),
|
||
" и ",
|
||
/* @__PURE__ */ t.jsxs(
|
||
Y,
|
||
{
|
||
href: "https://shub.pena.digital/docs/privacy",
|
||
target: "_blank",
|
||
children: [
|
||
" ",
|
||
"Политикой конфиденциальности",
|
||
" "
|
||
]
|
||
}
|
||
),
|
||
" ознакомлен"
|
||
] })
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
component: Y,
|
||
target: "_blank",
|
||
href: "https://quiz.pena.digital",
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
mt: "20px",
|
||
gap: "15px",
|
||
textDecoration: "none"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
Le,
|
||
{
|
||
style: {
|
||
fontSize: "34px",
|
||
color: z[s.cfg.theme].isLight ? "#151515" : "#FFFFFF"
|
||
}
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
fontSize: "20px",
|
||
color: z[s.cfg.theme].isLight ? "#4D4D4D" : "#F5F7FF",
|
||
whiteSpace: "nowrap"
|
||
},
|
||
children: "Сделано на PenaQuiz"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}, d1 = ({
|
||
name: e,
|
||
setName: i,
|
||
email: r,
|
||
setEmail: s,
|
||
phone: n,
|
||
setPhone: o,
|
||
text: l,
|
||
setText: a,
|
||
adress: c,
|
||
setAdress: C
|
||
}) => {
|
||
const { settings: h } = D(), p = h.cfg.formContact.fields || h.cfg.formContact;
|
||
if (!p)
|
||
return null;
|
||
const f = /* @__PURE__ */ t.jsx(
|
||
ne,
|
||
{
|
||
onChange: ({ target: w }) => i(w.value),
|
||
id: e,
|
||
title: p.name.innerText || "Введите имя",
|
||
desc: p.name.text || "имя",
|
||
Icon: e1
|
||
}
|
||
), j = /* @__PURE__ */ t.jsx(
|
||
ne,
|
||
{
|
||
error: !je.test(r),
|
||
label: je.test(r) ? "Некорректная почта" : "",
|
||
onChange: ({ target: w }) => s(w.value),
|
||
id: r,
|
||
title: p.email.innerText || "Введите Email",
|
||
desc: p.email.text || "Email",
|
||
Icon: Qt
|
||
}
|
||
), k = /* @__PURE__ */ t.jsx(
|
||
ne,
|
||
{
|
||
onChange: ({ target: w }) => o(w.value),
|
||
id: n,
|
||
title: p.phone.innerText || "Введите номер телефона",
|
||
desc: p.phone.text || "номер телефона",
|
||
Icon: t1
|
||
}
|
||
), g = /* @__PURE__ */ t.jsx(
|
||
ne,
|
||
{
|
||
onChange: ({ target: w }) => a(w.value),
|
||
id: l,
|
||
title: p.text.text || "Введите фамилию",
|
||
desc: p.text.innerText || "фамилию",
|
||
Icon: n1
|
||
}
|
||
), F = /* @__PURE__ */ t.jsx(
|
||
ne,
|
||
{
|
||
onChange: ({ target: w }) => C(w.value),
|
||
id: c,
|
||
title: p.address.innerText || "Введите адрес",
|
||
desc: p.address.text || "адрес",
|
||
Icon: Kt
|
||
}
|
||
);
|
||
return Object.values(p).some((w) => w.used) ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
||
p.name.used ? f : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
||
p.email.used ? j : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
||
p.phone.used ? k : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
||
p.text.used ? g : /* @__PURE__ */ t.jsx(t.Fragment, {}),
|
||
p.address.used ? F : /* @__PURE__ */ t.jsx(t.Fragment, {})
|
||
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
||
f,
|
||
j,
|
||
k
|
||
] });
|
||
}, ne = ({ title: e, desc: i, Icon: r, onChange: s }) => {
|
||
const n = M(), o = N() < 600;
|
||
return /* @__PURE__ */ t.jsxs(d, { m: "15px 0", children: [
|
||
/* @__PURE__ */ t.jsx(m, { mb: "7px", color: n.palette.text.primary, children: e }),
|
||
/* @__PURE__ */ t.jsx(
|
||
a1,
|
||
{
|
||
onChange: s,
|
||
sx: {
|
||
width: o ? "300px" : "350px"
|
||
},
|
||
placeholder: i,
|
||
InputProps: {
|
||
startAdornment: /* @__PURE__ */ t.jsx(rt, { position: "start", children: /* @__PURE__ */ t.jsx(r, { color: "gray" }) })
|
||
}
|
||
}
|
||
)
|
||
] });
|
||
}, c1 = ({ stepNumber: e, nextButton: i, prevButton: r }) => {
|
||
const s = M(), { questions: n } = D();
|
||
return console.log(n), /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
position: "relative",
|
||
padding: "15px 0",
|
||
borderTop: `1px solid ${s.palette.grey[400]}`,
|
||
height: "75px",
|
||
display: "flex"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: "100%",
|
||
maxWidth: "1000px",
|
||
padding: "0 10px",
|
||
margin: "0 auto",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
gap: "10px"
|
||
},
|
||
children: [
|
||
e !== null && /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
gap: "10px",
|
||
marginRight: "auto",
|
||
color: s.palette.text.primary
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(m, { children: "Шаг" }),
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
justifyContent: "center",
|
||
alignItems: "center",
|
||
fontWeight: "bold",
|
||
borderRadius: "50%",
|
||
width: "30px",
|
||
height: "30px",
|
||
color: "#FFF",
|
||
background: s.palette.primary.main
|
||
},
|
||
children: e
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(m, { children: "Из" }),
|
||
/* @__PURE__ */ t.jsx(m, { sx: { fontWeight: "bold" }, children: n.filter((o) => o.type !== "result").length })
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
gap: "10px",
|
||
marginRight: "auto"
|
||
// color: theme.palette.grey1.main,
|
||
}
|
||
}
|
||
),
|
||
r,
|
||
i
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
};
|
||
function p1({ sx: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center",
|
||
flexShrink: 0,
|
||
"&:hover path": {
|
||
stroke: "#581CA7"
|
||
},
|
||
"&:active path": {
|
||
stroke: "#FB5607"
|
||
},
|
||
"&:hover rect": {
|
||
stroke: "#581CA7"
|
||
},
|
||
"&:active rect": {
|
||
stroke: "#FB5607"
|
||
},
|
||
...e
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs("svg", { width: "20", height: "22", viewBox: "0 0 20 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
||
/* @__PURE__ */ t.jsx("rect", { x: "1", y: "2.5", width: "18", height: "18", rx: "5", stroke: "#7E2AEA", strokeWidth: "1.5" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M1 7.5H19", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M14.5 1L14.5 4", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M5.5 1L5.5 4", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M4.5 11.5H5.5", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M9.5 11.5H10.5", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M14.5 11.5H15.5", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M4.5 15.5H5.5", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M9.5 15.5H10.5", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M14.5 15.5H15.5", stroke: "#7E2AEA", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
||
] })
|
||
}
|
||
);
|
||
}
|
||
const h1 = ({ currentQuestion: e }) => {
|
||
var C;
|
||
const i = M(), { settings: r, quizId: s } = D(), { answers: n } = V(), o = (C = n.find(
|
||
({ questionId: h }) => h === e.id
|
||
)) == null ? void 0 : C.answer, l = W(o) || W(), [a, c] = A(!0);
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", color: i.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
width: "100%",
|
||
marginTop: "20px"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
gt,
|
||
{
|
||
slots: {
|
||
openPickerIcon: () => /* @__PURE__ */ t.jsx(
|
||
p1,
|
||
{
|
||
sx: {
|
||
"& path": { stroke: i.palette.primary.main },
|
||
"& rect": { stroke: i.palette.primary.main }
|
||
}
|
||
}
|
||
)
|
||
},
|
||
value: l,
|
||
onChange: async (h) => {
|
||
if (a) {
|
||
if (c(!1), !h)
|
||
return;
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: W(h).format("YYYY.MM.DD"),
|
||
qid: s
|
||
}), H(
|
||
e.id,
|
||
h,
|
||
0
|
||
);
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
c(!0);
|
||
}
|
||
},
|
||
slotProps: {
|
||
openPickerButton: {
|
||
sx: {
|
||
p: 0
|
||
},
|
||
"data-cy": "open-datepicker"
|
||
},
|
||
layout: {
|
||
sx: { backgroundColor: i.palette.background.default }
|
||
}
|
||
},
|
||
sx: {
|
||
"& .MuiInputBase-root": {
|
||
backgroundColor: z[r.cfg.theme].isLight ? "white" : i.palette.background.default,
|
||
borderRadius: "10px",
|
||
maxWidth: "250px",
|
||
pr: "22px",
|
||
"& input": {
|
||
py: "11px",
|
||
pl: "20px",
|
||
lineHeight: "19px"
|
||
},
|
||
"& fieldset": {
|
||
borderColor: "#9A9AAF"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
)
|
||
}
|
||
)
|
||
] });
|
||
};
|
||
function ge({ color: e = "#7E2AEA" }) {
|
||
return M(), /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "26px",
|
||
width: "26px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs("svg", { width: "26", height: "26", viewBox: "0 0 26 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
||
/* @__PURE__ */ t.jsx("rect", { x: "0.5", y: "0.5", width: "25", height: "25", rx: "12.5", fill: e, stroke: e }),
|
||
/* @__PURE__ */ t.jsx("rect", { x: "8", y: "8", width: "10", height: "10", rx: "5", fill: "white" })
|
||
] })
|
||
}
|
||
);
|
||
}
|
||
function ue() {
|
||
return M(), /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "26px",
|
||
width: "26px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx("svg", { width: "26", height: "26", viewBox: "0 0 26 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsx("rect", { x: "0.5", y: "0.5", width: "25", height: "25", rx: "12.5", fill: "#F2F3F7", stroke: "#9A9AAF" }) })
|
||
}
|
||
);
|
||
}
|
||
const x1 = '"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';
|
||
function C1() {
|
||
const e = document.createElement("canvas");
|
||
e.width = e.height = 1;
|
||
const i = e.getContext("2d", { willReadFrequently: !0 });
|
||
return i.textBaseline = "top", i.font = `100px ${x1}`, i.scale(0.01, 0.01), i;
|
||
}
|
||
function Be(e, i, r) {
|
||
return e.clearRect(0, 0, 100, 100), e.fillStyle = r, e.fillText(i, 0, 0), e.getImageData(0, 0, 1, 1).data.join(",");
|
||
}
|
||
function Ne(e) {
|
||
const i = C1(), r = Be(i, e, "#fff"), s = Be(i, e, "#000");
|
||
return s === r && !s.startsWith("0,0,0,");
|
||
}
|
||
function f1(e = "Twemoji Country Flags", i = "https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") {
|
||
if (typeof window < "u" && Ne("😊") && !Ne("🇨🇭")) {
|
||
const r = document.createElement("style");
|
||
return r.textContent = `@font-face {
|
||
font-family: "${e}";
|
||
unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
|
||
U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
|
||
src: url('${i}') format('woff2');
|
||
font-display: swap;
|
||
}`, document.head.appendChild(r), !0;
|
||
}
|
||
return !1;
|
||
}
|
||
f1();
|
||
const g1 = ({ currentQuestion: e }) => {
|
||
const i = M(), { quizId: r } = D(), { answers: s } = V(), { answer: n } = s.find(
|
||
({ questionId: a }) => a === e.id
|
||
) ?? {}, [o, l] = A(!0);
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
variant: "h5",
|
||
color: i.palette.text.primary,
|
||
sx: { wordBreak: "break-word" },
|
||
children: e.title
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
Ce,
|
||
{
|
||
name: e.id,
|
||
value: e.content.variants.findIndex(
|
||
({ id: a }) => n === a
|
||
),
|
||
onChange: ({ target: a }) => {
|
||
H(
|
||
e.id,
|
||
e.content.variants[Number(a.value)].answer,
|
||
e.content.variants[Number(a.value)].points || 0
|
||
);
|
||
},
|
||
sx: {
|
||
display: "flex",
|
||
flexWrap: "wrap",
|
||
flexDirection: "row",
|
||
justifyContent: "space-between",
|
||
marginTop: "20px"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(d, { sx: { display: "flex", width: "100%", gap: "42px", flexWrap: "wrap" }, children: e.content.variants.map((a, c) => /* @__PURE__ */ t.jsxs(
|
||
ve,
|
||
{
|
||
sx: {
|
||
borderRadius: "12px",
|
||
border: "1px solid",
|
||
borderColor: n === a.id ? i.palette.primary.main : "#9A9AAF",
|
||
overflow: "hidden",
|
||
maxWidth: "317px",
|
||
width: "100%",
|
||
height: "255px"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
height: "193px",
|
||
background: "#ffffff"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: "100%",
|
||
display: "flex",
|
||
justifyContent: "center"
|
||
},
|
||
children: a.extendedText && /* @__PURE__ */ t.jsx(m, { fontSize: "100px", children: a.extendedText })
|
||
}
|
||
)
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
ie,
|
||
{
|
||
sx: {
|
||
margin: 0,
|
||
padding: "15px",
|
||
color: i.palette.text.primary,
|
||
display: "flex",
|
||
gap: "10px",
|
||
alignItems: a.answer.length <= 60 ? "center" : "flex-start",
|
||
position: "relative",
|
||
height: "80px",
|
||
"& .MuiFormControlLabel-label": {
|
||
wordBreak: "break-word",
|
||
height: a.answer.length <= 60 ? void 0 : "60px",
|
||
overflow: "auto",
|
||
paddingLeft: "45px",
|
||
"&::-webkit-scrollbar": {
|
||
width: "4px"
|
||
},
|
||
"&::-webkit-scrollbar-thumb": {
|
||
backgroundColor: "#b8babf"
|
||
}
|
||
}
|
||
},
|
||
value: c,
|
||
onClick: async (C) => {
|
||
if (C.preventDefault(), o) {
|
||
l(!1);
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: e.content.variants[c].extendedText + " " + e.content.variants[c].answer,
|
||
qid: r
|
||
}), H(
|
||
e.id,
|
||
e.content.variants[c].id,
|
||
e.content.variants[c].points || 0
|
||
);
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
if (n === e.content.variants[c].id) {
|
||
oe(e.id);
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: "",
|
||
qid: r
|
||
});
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
}
|
||
l(!0);
|
||
}
|
||
},
|
||
control: /* @__PURE__ */ t.jsx(fe, { checkedIcon: /* @__PURE__ */ t.jsx(ge, { color: i.palette.primary.main }), icon: /* @__PURE__ */ t.jsx(ue, {}) }),
|
||
label: /* @__PURE__ */ t.jsx(d, { sx: { display: "flex", gap: "10px" }, children: /* @__PURE__ */ t.jsx(m, { sx: {
|
||
wordBreak: "break-word",
|
||
lineHeight: "normal"
|
||
}, children: a.answer }) })
|
||
},
|
||
a.id
|
||
)
|
||
]
|
||
},
|
||
a.id
|
||
)) })
|
||
}
|
||
)
|
||
] });
|
||
};
|
||
function u1({ width: e }) {
|
||
return M(), /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "35",
|
||
height: "33",
|
||
viewBox: "0 0 35 33",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsxs("g", { id: "Close", children: [
|
||
/* @__PURE__ */ t.jsx("g", { id: "Rectangle 57", opacity: "0.3", filter: "url(#filter0_d_4080_12482)", children: /* @__PURE__ */ t.jsx("rect", { x: "6", y: "4", width: "24", height: "24", rx: "12", fill: "#9A9AAF" }) }),
|
||
/* @__PURE__ */ t.jsxs("g", { id: "Group 331", children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
id: "Vector 586",
|
||
d: "M22.8516 10.9517L12.9521 20.8512",
|
||
stroke: "#FDFDFF",
|
||
strokeWidth: "1.5",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
id: "Vector 587",
|
||
d: "M22.8516 20.8462L12.9521 10.9467",
|
||
stroke: "#FDFDFF",
|
||
strokeWidth: "1.5",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
] })
|
||
] }),
|
||
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsxs(
|
||
"filter",
|
||
{
|
||
id: "filter0_d_4080_12482",
|
||
x: "0",
|
||
y: "0",
|
||
width: "36",
|
||
height: "36",
|
||
filterUnits: "userSpaceOnUse",
|
||
colorInterpolationFilters: "sRGB",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
||
/* @__PURE__ */ t.jsx(
|
||
"feColorMatrix",
|
||
{
|
||
in: "SourceAlpha",
|
||
type: "matrix",
|
||
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
||
result: "hardAlpha"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"feMorphology",
|
||
{
|
||
radius: "1",
|
||
operator: "dilate",
|
||
in: "SourceAlpha",
|
||
result: "effect1_dropShadow_4080_12482"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx("feOffset", { dy: "2" }),
|
||
/* @__PURE__ */ t.jsx("feGaussianBlur", { stdDeviation: "2.5" }),
|
||
/* @__PURE__ */ t.jsx("feComposite", { in2: "hardAlpha", operator: "out" }),
|
||
/* @__PURE__ */ t.jsx(
|
||
"feColorMatrix",
|
||
{
|
||
type: "matrix",
|
||
values: "0 0 0 0 0.416562 0 0 0 0 0.452406 0 0 0 0 0.775 0 0 0 0.18 0"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"feBlend",
|
||
{
|
||
mode: "normal",
|
||
in2: "BackgroundImageFix",
|
||
result: "effect1_dropShadow_4080_12482"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"feBlend",
|
||
{
|
||
mode: "normal",
|
||
in: "SourceGraphic",
|
||
in2: "effect1_dropShadow_4080_12482",
|
||
result: "shape"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
) })
|
||
]
|
||
}
|
||
);
|
||
}
|
||
function m1({ color: e = "#9A9AAF" }) {
|
||
return M(), /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "32px",
|
||
width: "32px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", children: [
|
||
/* @__PURE__ */ t.jsx("path", { d: "M10.75 10.25L16 5L21.25 10.25", stroke: e, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M16 19V5", stroke: e, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M27 19V26C27 26.2652 26.8946 26.5196 26.7071 26.7071C26.5196 26.8946 26.2652 27 26 27H6C5.73478 27 5.48043 26.8946 5.29289 26.7071C5.10536 26.5196 5 26.2652 5 26V19", stroke: e, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
||
] })
|
||
}
|
||
);
|
||
}
|
||
function w1({ width: e = 20, height: i = 20, sx: r, onClick: s, className: n, color: o = "#7e2aea" }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
$e,
|
||
{
|
||
sx: r,
|
||
className: n,
|
||
onClick: s,
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: e,
|
||
height: i,
|
||
viewBox: "0 0 20 20",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10C1 14.9706 5.02944 19 10 19Z",
|
||
stroke: o,
|
||
strokeWidth: "1.5",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M9.25 9.25H10V14.5H10.75",
|
||
stroke: o,
|
||
strokeWidth: "1.5",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M9.8125 7C10.4338 7 10.9375 6.49632 10.9375 5.875C10.9375 5.25368 10.4338 4.75 9.8125 4.75C9.19118 4.75 8.6875 5.25368 8.6875 5.875C8.6875 6.49632 9.19118 7 9.8125 7Z",
|
||
fill: o
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
const y1 = 5 * 2 ** 20, Pe = {
|
||
picture: {
|
||
title: "Добавить изображение",
|
||
description: "Принимает изображения"
|
||
},
|
||
video: {
|
||
title: "Добавить видео",
|
||
description: "Принимает .mp4 и .mov формат — максимум 50мб"
|
||
},
|
||
audio: { title: "Добавить аудиофайл", description: "Принимает аудиофайлы" },
|
||
document: { title: "Добавить документ", description: "Принимает документы" }
|
||
}, be = {
|
||
picture: [
|
||
".jpeg",
|
||
".jpg",
|
||
".png",
|
||
".ico",
|
||
".gif",
|
||
".tiff",
|
||
".webp",
|
||
".eps",
|
||
".svg"
|
||
],
|
||
video: [
|
||
".mp4",
|
||
".mov",
|
||
".wmv",
|
||
".avi",
|
||
".avchd",
|
||
".flv",
|
||
".f4v",
|
||
".swf",
|
||
".mkv",
|
||
".webm",
|
||
".mpeg-2"
|
||
],
|
||
audio: [
|
||
".aac",
|
||
".aiff",
|
||
".dsd",
|
||
".flac",
|
||
".mp3",
|
||
".mqa",
|
||
".ogg",
|
||
".wav",
|
||
".wma"
|
||
],
|
||
document: [
|
||
".doc",
|
||
".docx",
|
||
".dotx",
|
||
".rtf",
|
||
".odt",
|
||
".pdf",
|
||
".txt",
|
||
".xls",
|
||
".ppt",
|
||
".xlsx",
|
||
".pptx",
|
||
".pages"
|
||
]
|
||
}, j1 = ({ currentQuestion: e }) => {
|
||
var k;
|
||
const i = M(), { answers: r } = V(), { quizId: s } = D(), [n, o] = A(null), [l, a] = A(!1), [c, C] = A(!1), h = N() < 500, p = (k = r.find(
|
||
({ questionId: g }) => g === e.id
|
||
)) == null ? void 0 : k.answer, f = async (g) => {
|
||
if (l || !g)
|
||
return;
|
||
if (g.size > y1)
|
||
return o("errorSize");
|
||
if (!be[e.content.type].some(
|
||
(w) => g.name.toLowerCase().endsWith(w)
|
||
))
|
||
return o("errorType");
|
||
a(!0);
|
||
try {
|
||
const w = await r1({
|
||
questionId: e.id,
|
||
body: {
|
||
file: g,
|
||
name: g.name
|
||
},
|
||
qid: s
|
||
});
|
||
console.log(w), await E({
|
||
questionId: e.id,
|
||
body: `https://storage.yandexcloud.net/squizanswer/${s}/${e.id}/${w.data.fileIDMap[e.id]}`,
|
||
qid: s
|
||
}), H(e.id, `${g.name}|${URL.createObjectURL(g)}`, 0);
|
||
} catch (w) {
|
||
console.log(w), I("ответ не был засчитан");
|
||
}
|
||
a(!1);
|
||
}, j = (g) => {
|
||
g.preventDefault(), C(!1);
|
||
const F = g.dataTransfer.files[0];
|
||
f(F);
|
||
};
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
variant: "h5",
|
||
color: i.palette.text.primary,
|
||
sx: { wordBreak: "break-word" },
|
||
children: e.title
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
width: "100%",
|
||
marginTop: "20px",
|
||
maxWidth: p != null && p.split("|")[0] ? "640px" : "600px"
|
||
},
|
||
children: [
|
||
p != null && p.split("|")[0] ? /* @__PURE__ */ t.jsxs(d, { sx: { display: "flex", alignItems: "center", gap: "15px" }, children: [
|
||
/* @__PURE__ */ t.jsx(m, { color: i.palette.text.primary, children: "Вы загрузили:" }),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
padding: "5px 5px 5px 16px",
|
||
backgroundColor: i.palette.primary.main,
|
||
borderRadius: "8px",
|
||
color: "#FFFFFF",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
overflow: "hidden",
|
||
gap: "15px"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
whiteSpace: "nowrap",
|
||
textOverflow: "ellipsis",
|
||
overflow: "hidden"
|
||
},
|
||
children: p == null ? void 0 : p.split("|")[0]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
$e,
|
||
{
|
||
sx: { p: 0 },
|
||
onClick: async () => {
|
||
p.length > 0 && (a(!0), await E({
|
||
questionId: e.id,
|
||
body: "",
|
||
qid: s
|
||
})), console.log(p), H(e.id, "", 0), a(!1);
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(u1, {})
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
] }) : /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center"
|
||
},
|
||
children: [
|
||
l ? /* @__PURE__ */ t.jsx(
|
||
st,
|
||
{
|
||
variant: "rounded",
|
||
sx: {
|
||
width: "100%",
|
||
height: "120px",
|
||
maxWidth: "560px"
|
||
}
|
||
}
|
||
) : /* @__PURE__ */ t.jsxs(
|
||
qe,
|
||
{
|
||
component: "label",
|
||
sx: { justifyContent: "flex-start", width: "100%" },
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"input",
|
||
{
|
||
onChange: (g) => {
|
||
var F;
|
||
return f((F = g.target.files) == null ? void 0 : F[0]);
|
||
},
|
||
hidden: !0,
|
||
accept: be[e.content.type].join(","),
|
||
multiple: !0,
|
||
type: "file"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
onDragEnter: () => !(p != null && p.split("|")[0]) && C(!0),
|
||
onDragLeave: () => C(!1),
|
||
onDragOver: (g) => g.preventDefault(),
|
||
onDrop: j,
|
||
sx: {
|
||
width: "100%",
|
||
height: h ? void 0 : "120px",
|
||
display: "flex",
|
||
gap: "50px",
|
||
justifyContent: "flex-start",
|
||
alignItems: "center",
|
||
padding: "33px 44px 33px 55px",
|
||
backgroundColor: i.palette.background.default,
|
||
border: `1px solid ${c ? "red" : "#9A9AAF"}`,
|
||
borderRadius: "8px"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(m1, {}),
|
||
/* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
color: "#9A9AAF",
|
||
// color: theme.palette.grey2.main,
|
||
fontWeight: 500
|
||
},
|
||
children: Pe[e.content.type].title
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
color: "#9A9AAF",
|
||
// color: theme.palette.grey2.main,
|
||
fontSize: "16px",
|
||
lineHeight: "19px"
|
||
},
|
||
children: Pe[e.content.type].description
|
||
}
|
||
)
|
||
] })
|
||
]
|
||
}
|
||
)
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
w1,
|
||
{
|
||
sx: { width: "40px", height: "40px" },
|
||
color: i.palette.primary.main,
|
||
onClick: () => o(e.content.type)
|
||
}
|
||
)
|
||
]
|
||
}
|
||
),
|
||
p && e.content.type === "picture" && /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: p.split("|")[1],
|
||
alt: "",
|
||
style: {
|
||
marginTop: "15px",
|
||
maxWidth: "300px",
|
||
maxHeight: "300px"
|
||
}
|
||
}
|
||
),
|
||
p && e.content.type === "video" && /* @__PURE__ */ t.jsx(
|
||
"video",
|
||
{
|
||
src: p.split("|")[1],
|
||
style: {
|
||
marginTop: "15px",
|
||
maxWidth: "300px",
|
||
maxHeight: "300px",
|
||
objectFit: "cover"
|
||
}
|
||
}
|
||
)
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
at,
|
||
{
|
||
open: n !== null,
|
||
onClose: () => o(null),
|
||
children: /* @__PURE__ */ t.jsx(d, { sx: {
|
||
position: "absolute",
|
||
top: "50%",
|
||
left: "50%",
|
||
transform: "translate(-50%, -50%)",
|
||
width: h ? 300 : 400,
|
||
bgcolor: "background.paper",
|
||
borderRadius: 3,
|
||
boxShadow: 24,
|
||
p: 4
|
||
}, children: /* @__PURE__ */ t.jsx(b1, { status: n }) })
|
||
}
|
||
)
|
||
] });
|
||
}, b1 = ({ status: e }) => {
|
||
switch (e) {
|
||
case null:
|
||
return null;
|
||
case "errorType":
|
||
return /* @__PURE__ */ t.jsx(m, { children: "Выбран некорректный тип файла" });
|
||
case "errorSize":
|
||
return /* @__PURE__ */ t.jsx(m, { children: "Файл слишком большой. Максимальный размер 50 МБ" });
|
||
default:
|
||
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { children: "Допустимые расширения файлов:" }),
|
||
/* @__PURE__ */ t.jsx(m, { children: be[e].join(" ") })
|
||
] });
|
||
}
|
||
}, k1 = ({ currentQuestion: e }) => {
|
||
var a;
|
||
const { quizId: i } = D(), { answers: r } = V(), s = M(), n = (a = r.find(({ questionId: c }) => c === e.id)) == null ? void 0 : a.answer, o = N() < 1e3, l = N() < 500;
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", color: s.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsx(
|
||
Ce,
|
||
{
|
||
name: e.id,
|
||
value: e.content.variants.findIndex(
|
||
({ id: c }) => n === c
|
||
),
|
||
sx: {
|
||
display: "flex",
|
||
flexWrap: "wrap",
|
||
flexDirection: "row",
|
||
justifyContent: "space-between",
|
||
marginTop: "20px"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "grid",
|
||
gap: "15px",
|
||
gridTemplateColumns: o ? l ? "repeat(1, 1fr)" : "repeat(2, 1fr)" : "repeat(3, 1fr)",
|
||
width: "100%"
|
||
},
|
||
children: e.content.variants.map((c, C) => /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
cursor: "pointer",
|
||
borderRadius: "5px",
|
||
border: "1px solid",
|
||
borderColor: n === c.id ? s.palette.primary.main : "#9A9AAF"
|
||
},
|
||
onClick: async (h) => {
|
||
h.preventDefault();
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: `${e.content.variants[C].answer} <img style="width:100%; max-width:250px; max-height:250px" src="${e.content.variants[C].extendedText}"/>`,
|
||
qid: i
|
||
}), H(
|
||
e.id,
|
||
e.content.variants[C].id,
|
||
e.content.variants[C].points || 0
|
||
);
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
if (n === e.content.variants[C].id) {
|
||
oe(e.id);
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: "",
|
||
qid: i
|
||
});
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
}
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(d, { sx: { display: "flex", alignItems: "center", gap: "10px" }, children: /* @__PURE__ */ t.jsx(d, { sx: { width: "100%", height: "300px" }, children: c.extendedText && /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: c.extendedText,
|
||
alt: "",
|
||
style: {
|
||
display: "block",
|
||
width: "100%",
|
||
height: "100%",
|
||
objectFit: "cover"
|
||
}
|
||
}
|
||
) }) }),
|
||
/* @__PURE__ */ t.jsx(
|
||
ie,
|
||
{
|
||
sx: {
|
||
textAlign: "center",
|
||
color: s.palette.text.primary,
|
||
marginTop: "10px",
|
||
marginLeft: 0,
|
||
padding: "10px",
|
||
display: "flex",
|
||
alignItems: c.answer.length <= 60 ? "center" : "flex-start",
|
||
position: "relative",
|
||
height: "80px",
|
||
"& .MuiFormControlLabel-label": {
|
||
wordBreak: "break-word",
|
||
height: c.answer.length <= 60 ? void 0 : "60px",
|
||
overflow: "auto",
|
||
lineHeight: "normal",
|
||
paddingLeft: "45px",
|
||
"&::-webkit-scrollbar": {
|
||
width: "4px"
|
||
},
|
||
"&::-webkit-scrollbar-thumb": {
|
||
backgroundColor: "#b8babf"
|
||
}
|
||
}
|
||
},
|
||
value: C,
|
||
control: /* @__PURE__ */ t.jsx(fe, { checkedIcon: /* @__PURE__ */ t.jsx(ge, { color: s.palette.primary.main }), icon: /* @__PURE__ */ t.jsx(ue, {}) }),
|
||
label: c.answer
|
||
},
|
||
c.id
|
||
)
|
||
]
|
||
},
|
||
C
|
||
))
|
||
}
|
||
)
|
||
}
|
||
)
|
||
] });
|
||
}, v1 = ({
|
||
defaultValue: e,
|
||
value: i,
|
||
min: r = 0,
|
||
max: s = 100,
|
||
step: n,
|
||
onChange: o,
|
||
onChangeCommitted: l,
|
||
valueLabelFormat: a,
|
||
sx: c
|
||
}) => (M(), /* @__PURE__ */ t.jsx(
|
||
lt,
|
||
{
|
||
value: i,
|
||
defaultValue: e,
|
||
min: r,
|
||
max: s,
|
||
step: n,
|
||
onChange: o,
|
||
valueLabelDisplay: "on",
|
||
onChangeCommitted: l,
|
||
valueLabelFormat: a,
|
||
onMouseDown: (C) => C.stopPropagation(),
|
||
"data-cy": "slider",
|
||
sx: {
|
||
color: "#7E2AEA",
|
||
padding: "0",
|
||
marginTop: "75px",
|
||
"& .MuiSlider-valueLabel": {
|
||
background: "#7E2AEA",
|
||
borderRadius: "8px",
|
||
minWidth: "60px",
|
||
width: "auto",
|
||
whiteSpace: "nowrap",
|
||
textAlign: "center",
|
||
height: "36px"
|
||
},
|
||
"& .MuiSlider-valueLabel::before": {
|
||
width: "6px",
|
||
height: "2px",
|
||
transform: "translate(-50%, 50%) rotate(90deg)",
|
||
bottom: "-5px"
|
||
},
|
||
"& .MuiSlider-rail": {
|
||
backgroundColor: "#F2F3F7",
|
||
border: "1px solid #9A9AAF",
|
||
height: "12px"
|
||
},
|
||
"& .MuiSlider-thumb": {
|
||
border: "3px #f2f3f7 solid",
|
||
height: "23px",
|
||
width: "23px"
|
||
},
|
||
"& .MuiSlider-track": {
|
||
height: "12px"
|
||
},
|
||
...c
|
||
}
|
||
}
|
||
)), F1 = ke;
|
||
function ce({
|
||
placeholder: e,
|
||
value: i,
|
||
text: r,
|
||
sx: s,
|
||
error: n,
|
||
onChange: o,
|
||
onKeyDown: l,
|
||
onBlur: a,
|
||
InputProps: c
|
||
}) {
|
||
const C = M();
|
||
return /* @__PURE__ */ t.jsx(ve, { fullWidth: !0, variant: "standard", sx: { p: 0 }, children: /* @__PURE__ */ t.jsx(
|
||
F1,
|
||
{
|
||
defaultValue: r,
|
||
fullWidth: !0,
|
||
value: i,
|
||
placeholder: e,
|
||
error: !!n,
|
||
label: n,
|
||
onChange: o,
|
||
onKeyDown: l,
|
||
onBlur: a,
|
||
sx: {
|
||
"& .MuiInputBase-root": {
|
||
backgroundColor: C.palette.background.default,
|
||
height: "48px",
|
||
borderRadius: "10px"
|
||
},
|
||
"& .MuiInputLabel-root": {
|
||
fontSize: "13.5px",
|
||
marginTop: "3px"
|
||
},
|
||
...s
|
||
},
|
||
InputProps: c,
|
||
inputProps: {
|
||
sx: {
|
||
borderRadius: "10px",
|
||
fontSize: "18px",
|
||
lineHeight: "21px",
|
||
py: 0
|
||
}
|
||
},
|
||
"data-cy": "textfield"
|
||
}
|
||
) });
|
||
}
|
||
const M1 = ({ currentQuestion: e }) => {
|
||
var Te;
|
||
const { settings: i, quizId: r } = D(), [s, n] = A("0"), [o, l] = A("0"), [a, c] = A("100000000000"), [C, h] = A("0"), [p, f] = A("0"), [j, k] = A("100000000000"), g = M(), { answers: F } = V(), w = N() < 650, [S, O] = e.content.range.split("—").map(window.Number), b = S < O ? S : O, x = S < O ? O : S, v = S > O, L = async (y, u = !1) => {
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: y,
|
||
qid: r
|
||
}), u || H(e.id, y, 0);
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
}, B = le(async (y) => {
|
||
if (v) {
|
||
const T = window.Number(y) < window.Number(b) ? String(b) : window.Number(y) > window.Number(x) ? String(x) : y;
|
||
h(T), H(
|
||
e.id,
|
||
String(x + b - window.Number(T)),
|
||
0
|
||
), await L(String(window.Number(T)), !0);
|
||
return;
|
||
}
|
||
const u = window.Number(y) < window.Number(o) ? o : window.Number(y) > window.Number(a) ? a : y;
|
||
n(u), await L(u);
|
||
}, 1e3), q = le(
|
||
async (y, u = !1) => {
|
||
if (v) {
|
||
const K = u ? window.Number(y.split("—")[1]) : x + b - window.Number(y.split("—")[0]) < b ? b : x + b - window.Number(y.split("—")[0]), X = window.Number(y.split("—")[0]) > x ? String(x) : y.split("—")[0];
|
||
f(
|
||
u ? String(x + b - window.Number(X)) : X
|
||
), H(
|
||
e.id,
|
||
`${K}—${y.split("—")[1]}`,
|
||
0
|
||
), await L(
|
||
`${X}—${y.split("—")[1]}`,
|
||
!0
|
||
);
|
||
return;
|
||
}
|
||
const T = u ? a : window.Number(y.split("—")[0]) < b ? String(b) : y.split("—")[0];
|
||
l(T), await L(`${T}—${y.split("—")[1]}`);
|
||
},
|
||
1e3
|
||
), U = le(
|
||
async (y, u = !1) => {
|
||
if (v) {
|
||
const K = u ? window.Number(y.split("—")[1]) : x + b - window.Number(y.split("—")[1]) > x ? x : x + b - window.Number(y.split("—")[1]), X = window.Number(y.split("—")[1]) < b ? String(b) : y.split("—")[1];
|
||
k(
|
||
u ? String(x + b - window.Number(X)) : X
|
||
), H(
|
||
e.id,
|
||
`${y.split("—")[0]}—${K}`,
|
||
0
|
||
), await L(
|
||
`${y.split("—")[0]}—${X}`,
|
||
!0
|
||
);
|
||
return;
|
||
}
|
||
const T = u ? o : window.Number(y.split("—")[1]) > x ? String(x) : y.split("—")[1];
|
||
c(T), await L(`${y.split("—")[0]}—${T}`);
|
||
},
|
||
1e3
|
||
), Z = (Te = F.find(
|
||
({ questionId: y }) => y === e.id
|
||
)) == null ? void 0 : Te.answer, G = Z || (v ? x + b - e.content.start + "—" + x : e.content.start + "—" + x);
|
||
ee(() => {
|
||
Z && (Z.includes("—") ? v ? (f(
|
||
String(x + b - window.Number(Z.split("—")[0]))
|
||
), k(
|
||
String(x + b - window.Number(Z.split("—")[1]))
|
||
)) : (l(Z.split("—")[0]), c(Z.split("—")[1])) : v ? h(String(x + b - window.Number(Z))) : n(Z)), Z || (l(String(e.content.start)), c(String(x)), e.content.chooseRange && (f(String(e.content.start)), k(String(b))), h(String(e.content.start)), n(String(e.content.start)));
|
||
}, []);
|
||
const P = (y, u) => {
|
||
const T = Array.isArray(u) ? `${u[0]}—${u[1]}` : String(u);
|
||
H(e.id, T, 0);
|
||
}, R = async (y, u) => {
|
||
if (e.content.chooseRange && Array.isArray(u)) {
|
||
if (v) {
|
||
const T = String(x + b - u[0]), K = String(x + b - u[1]);
|
||
l(String(u[0])), c(String(u[1])), f(T), k(K), await L(
|
||
`${T}—${K}`,
|
||
!0
|
||
);
|
||
return;
|
||
}
|
||
l(String(u[0])), c(String(u[1])), await L(`${u[0]}—${u[1]}`);
|
||
return;
|
||
}
|
||
v ? h(String(x + b - window.Number(u))) : n(String(u)), await L(String(u));
|
||
}, re = (y) => {
|
||
if (!v)
|
||
return y;
|
||
const [u, T] = G.split("—").map(window.Number);
|
||
return y === u ? x + b - u : x + b - T;
|
||
}, Ke = ({ target: y }) => {
|
||
const u = y.value.replace(/\D/g, "");
|
||
v ? h(u) : n(u), B(u);
|
||
}, Qe = ({ target: y }) => {
|
||
const u = y.value.replace(/\D/g, "");
|
||
if (v) {
|
||
if (f(u), window.Number(u) <= window.Number(j)) {
|
||
const T = x + b - window.Number(j);
|
||
q(`${T}—${T}`, !0);
|
||
return;
|
||
}
|
||
q(
|
||
`${u}—${x + b - window.Number(j)}`
|
||
);
|
||
return;
|
||
}
|
||
if (l(u), window.Number(u) >= window.Number(a)) {
|
||
q(`${a}—${a}`, !0);
|
||
return;
|
||
}
|
||
q(`${u}—${a}`);
|
||
}, et = ({ target: y }) => {
|
||
const u = y.value.replace(/\D/g, "");
|
||
if (v) {
|
||
if (k(u), window.Number(u) >= window.Number(p)) {
|
||
const T = x + b - window.Number(p);
|
||
U(`${T}—${T}`, !0);
|
||
return;
|
||
}
|
||
U(
|
||
`${x + b - window.Number(p)}—${u}`
|
||
);
|
||
return;
|
||
}
|
||
if (c(u), window.Number(u) <= window.Number(o)) {
|
||
U(`${o}—${o}`, !0);
|
||
return;
|
||
}
|
||
U(`${o}—${u}`);
|
||
};
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", color: g.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
width: "100%",
|
||
marginTop: "20px",
|
||
gap: "30px",
|
||
paddingRight: w ? "10px" : void 0
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
v1,
|
||
{
|
||
value: e.content.chooseRange ? G.split("—").length || 0 > 1 ? G.split("—").map((y) => window.Number(y)) : [b, b + 1] : window.Number(G.split("—")[0]),
|
||
min: b,
|
||
max: x,
|
||
step: e.content.step || 1,
|
||
onChange: P,
|
||
onChangeCommitted: R,
|
||
valueLabelFormat: re,
|
||
sx: {
|
||
color: g.palette.primary.main,
|
||
"& .MuiSlider-valueLabel": {
|
||
background: g.palette.primary.main
|
||
}
|
||
}
|
||
}
|
||
),
|
||
!e.content.chooseRange && /* @__PURE__ */ t.jsx(
|
||
ce,
|
||
{
|
||
placeholder: "0",
|
||
value: v ? C : s,
|
||
onChange: Ke,
|
||
sx: {
|
||
maxWidth: "80px",
|
||
borderColor: g.palette.text.primary,
|
||
"& .MuiInputBase-input": {
|
||
textAlign: "center",
|
||
backgroundColor: z[i.cfg.theme].isLight ? "white" : g.palette.background.default
|
||
}
|
||
}
|
||
}
|
||
),
|
||
e.content.chooseRange && /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
gap: "15px",
|
||
alignItems: "center",
|
||
"& .MuiFormControl-root": { width: "auto" }
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
ce,
|
||
{
|
||
placeholder: "0",
|
||
value: v ? String(p) : o,
|
||
onChange: Qe,
|
||
sx: {
|
||
maxWidth: "80px",
|
||
borderColor: g.palette.text.primary,
|
||
"& .MuiInputBase-input": {
|
||
textAlign: "center",
|
||
backgroundColor: z[i.cfg.theme].isLight ? "white" : g.palette.background.default
|
||
}
|
||
}
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(m, { color: g.palette.text.primary, children: "до" }),
|
||
/* @__PURE__ */ t.jsx(
|
||
ce,
|
||
{
|
||
placeholder: "0",
|
||
value: v ? String(j) : a,
|
||
onChange: et,
|
||
sx: {
|
||
maxWidth: "80px",
|
||
borderColor: g.palette.text.primary,
|
||
"& .MuiInputBase-input": {
|
||
textAlign: "center",
|
||
backgroundColor: z[i.cfg.theme].isLight ? "white" : g.palette.background.default
|
||
}
|
||
}
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
] });
|
||
};
|
||
function Se({ videoUrl: e, containerSX: i }) {
|
||
var s;
|
||
return (s = /(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/gi.exec(e)) == null || s[1], /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: "100%",
|
||
height: "100%",
|
||
pointerEvents: "none",
|
||
"& iframe": {
|
||
width: "100%",
|
||
height: "100%"
|
||
},
|
||
...i
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
component: "video",
|
||
sx: {
|
||
width: "100%",
|
||
height: "100%"
|
||
},
|
||
autoPlay: !0,
|
||
muted: !0,
|
||
src: e
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
const L1 = ({ currentQuestion: e }) => {
|
||
const i = M();
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", sx: { paddingBottom: "25px", color: i.palette.text.primary, wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsx(m, { color: i.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.content.text }),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
width: "100%",
|
||
marginTop: "20px"
|
||
},
|
||
//@ts-ignore
|
||
children: e.content.useImage ? /* @__PURE__ */ t.jsx(d, { sx: { borderRadius: "12px", border: "1px solid #9A9AAF", overflow: "hidden" }, children: /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: e.content.back,
|
||
alt: "",
|
||
style: {
|
||
display: "block",
|
||
width: "100%",
|
||
height: "100%",
|
||
objectFit: "contain"
|
||
}
|
||
},
|
||
e.id
|
||
) }) : /* @__PURE__ */ t.jsx(
|
||
Se,
|
||
{
|
||
containerSX: {
|
||
width: "100%",
|
||
height: "calc(100% - 270px)",
|
||
maxHeight: "80vh",
|
||
objectFit: "contain"
|
||
},
|
||
videoUrl: e.content.video
|
||
}
|
||
)
|
||
}
|
||
)
|
||
] });
|
||
};
|
||
function S1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "30px",
|
||
width: "30px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "32",
|
||
height: "32",
|
||
viewBox: "0 0 32 32",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M5 27V6",
|
||
stroke: e,
|
||
strokeWidth: "2",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158215 5 6.00158",
|
||
fill: e
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158203 5 6.00158",
|
||
stroke: e,
|
||
strokeWidth: "1.6",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function T1({ color: e, width: i = 30, sx: r }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "50px",
|
||
width: i + "px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center",
|
||
...r
|
||
},
|
||
children: /* @__PURE__ */ t.jsx("svg", { width: i, height: i, viewBox: "0 0 28 27", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M14.551 21.8375L20.851 25.8375C21.6635 26.35 22.6635 25.5875 22.426 24.65L20.601 17.475C20.5516 17.2762 20.5595 17.0674 20.6236 16.8728C20.6877 16.6781 20.8056 16.5056 20.9635 16.375L26.6135 11.6625C27.351 11.05 26.976 9.81253 26.0135 9.75003L18.6385 9.27503C18.4372 9.26332 18.2438 9.19325 18.0817 9.07338C17.9197 8.95351 17.7961 8.78902 17.726 8.60003L14.976 1.67503C14.9032 1.47491 14.7706 1.30204 14.5961 1.17988C14.4217 1.05772 14.2139 0.992188 14.001 0.992188C13.788 0.992188 13.5802 1.05772 13.4058 1.17988C13.2314 1.30204 13.0988 1.47491 13.026 1.67503L10.276 8.60003C10.2059 8.78902 10.0823 8.95351 9.92021 9.07338C9.75816 9.19325 9.5647 9.26332 9.36347 9.27503L1.98847 9.75003C1.02597 9.81253 0.650971 11.05 1.38847 11.6625L7.03847 16.375C7.19639 16.5056 7.3142 16.6781 7.37834 16.8728C7.44247 17.0674 7.45032 17.2762 7.40097 17.475L5.71347 24.125C5.42597 25.25 6.62597 26.1625 7.58847 25.55L13.451 21.8375C13.6154 21.733 13.8062 21.6775 14.001 21.6775C14.1958 21.6775 14.3866 21.733 14.551 21.8375Z",
|
||
fill: e,
|
||
stroke: e,
|
||
strokeWidth: "1.6",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
) })
|
||
}
|
||
);
|
||
}
|
||
function A1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "30px",
|
||
width: "30px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
"svg",
|
||
{
|
||
width: "32",
|
||
height: "32",
|
||
viewBox: "0 0 32 32",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: /* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M3 11.3333H29M3 20.6667H29M13.6364 2L8.90909 30M23.0909 2L18.3636 30",
|
||
stroke: e,
|
||
strokeWidth: "3",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function I1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "30px",
|
||
width: "30px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
"svg",
|
||
{
|
||
width: "32",
|
||
height: "32",
|
||
viewBox: "0 0 32 32",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: /* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M16 27C16 27 3.5 20 3.5 11.5C3.5 9.99737 4.02062 8.54114 4.97328 7.37908C5.92593 6.21703 7.25178 5.42093 8.72525 5.12624C10.1987 4.83154 11.7288 5.05646 13.0551 5.76272C14.3814 6.46898 15.4221 7.61296 16 9.00001C16.5779 7.61296 17.6186 6.46898 18.9449 5.76272C20.2712 5.05646 21.8013 4.83154 23.2748 5.12624C24.7482 5.42093 26.0741 6.21703 27.0267 7.37908C27.9794 8.54114 28.5 9.99737 28.5 11.5C28.5 20 16 27 16 27Z",
|
||
fill: e,
|
||
stroke: e,
|
||
strokeWidth: "1.6",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function V1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "30px",
|
||
width: "30px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "32",
|
||
height: "32",
|
||
viewBox: "0 0 32 32",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M11 29H21",
|
||
stroke: e,
|
||
strokeWidth: "2",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M9.83761 20.8739C8.6471 19.9482 7.68288 18.7637 7.01801 17.4102C6.35313 16.0566 6.00504 14.5694 6.00011 13.0614C5.97511 7.6364 10.3376 3.1239 15.7626 2.9989C17.8622 2.94913 19.9242 3.56166 21.6561 4.74961C23.388 5.93756 24.7019 7.64064 25.4115 9.6173C26.1211 11.594 26.1904 13.7439 25.6094 15.7621C25.0285 17.7803 23.827 19.5644 22.1751 20.8614C21.8102 21.1435 21.5146 21.5052 21.311 21.919C21.1073 22.3328 21.001 22.7877 21.0001 23.2489V23.9989C21.0001 24.2641 20.8948 24.5185 20.7072 24.706C20.5197 24.8935 20.2653 24.9989 20.0001 24.9989H12.0001C11.7349 24.9989 11.4805 24.8935 11.293 24.706C11.1055 24.5185 11.0001 24.2641 11.0001 23.9989V23.2489C10.997 22.7912 10.8909 22.34 10.6896 21.9289C10.4884 21.5177 10.1972 21.1572 9.83761 20.8739V20.8739Z",
|
||
stroke: e,
|
||
strokeWidth: "1.6",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
fillRule: "evenodd",
|
||
clipRule: "evenodd",
|
||
d: "M7.01801 17.4102C7.68288 18.7637 8.6471 19.9482 9.83761 20.8739C10.1972 21.1572 10.4884 21.5177 10.6896 21.9289C10.8909 22.34 10.997 22.7912 11.0001 23.2489V23.9989C11.0001 24.2641 11.1055 24.5185 11.293 24.706C11.4805 24.8935 11.7349 24.9989 12.0001 24.9989H20.0001C20.2653 24.9989 20.5197 24.8935 20.7072 24.706C20.8948 24.5185 21.0001 24.2641 21.0001 23.9989V23.2489C21.001 22.7877 21.1073 22.3328 21.311 21.919C21.5146 21.5052 21.8102 21.1435 22.1751 20.8614C23.827 19.5644 25.0285 17.7803 25.6094 15.7621C26.1904 13.7439 26.1211 11.594 25.4115 9.6173C24.7019 7.64064 23.388 5.93756 21.6561 4.74961C19.9242 3.56166 17.8622 2.94913 15.7626 2.9989C10.3376 3.1239 5.97511 7.6364 6.00011 13.0614C6.00504 14.5694 6.35313 16.0566 7.01801 17.4102ZM17.1464 6.31013C16.7108 6.23629 16.2978 6.52956 16.2239 6.96517C16.1501 7.40078 16.4434 7.81378 16.879 7.88762C17.9379 8.06713 18.915 8.57088 19.6754 9.32936C20.4358 10.0878 20.9421 11.0636 21.1243 12.1221C21.1992 12.5575 21.613 12.8497 22.0484 12.7748C22.4838 12.6998 22.7761 12.2861 22.7011 11.8507C22.4627 10.4657 21.8003 9.18896 20.8053 8.19655C19.8104 7.20413 18.5319 6.545 17.1464 6.31013Z",
|
||
fill: e
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function D1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "30px",
|
||
width: "30px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "40",
|
||
height: "40",
|
||
viewBox: "0 0 40 40",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M8 17H14V30H8C7.73478 30 7.48043 29.8946 7.29289 29.7071C7.10536 29.5196 7 29.2652 7 29V18C7 17.7348 7.10536 17.4804 7.29289 17.2929C7.48043 17.1054 7.73478 17 8 17V17Z",
|
||
stroke: e,
|
||
strokeWidth: "2",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",
|
||
fill: e
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",
|
||
stroke: e,
|
||
strokeWidth: "1.6",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
function H1({ color: e }) {
|
||
return /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "30px",
|
||
width: "30px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
"svg",
|
||
{
|
||
width: "32",
|
||
height: "32",
|
||
viewBox: "0 0 32 32",
|
||
fill: "none",
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M7 7V13.8875C7 18.85 10.975 22.9625 15.9375 23C17.1246 23.0082 18.3017 22.7815 19.4008 22.3329C20.5 21.8843 21.4995 21.2227 22.3419 20.3862C23.1843 19.5496 23.8528 18.5547 24.309 17.4586C24.7652 16.3626 25 15.1872 25 14V7C25 6.73478 24.8946 6.48043 24.7071 6.29289C24.5196 6.10536 24.2652 6 24 6H8C7.73478 6 7.48043 6.10536 7.29289 6.29289C7.10536 6.48043 7 6.73478 7 7Z",
|
||
fill: e,
|
||
stroke: e,
|
||
strokeWidth: "1.6",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M12 28H20",
|
||
stroke: e,
|
||
strokeWidth: "2",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M16 23V28",
|
||
stroke: e,
|
||
strokeWidth: "2",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M24.7754 16H26.0004C27.0613 16 28.0787 15.5786 28.8288 14.8284C29.579 14.0783 30.0004 13.0609 30.0004 12V10C30.0004 9.73478 29.895 9.48043 29.7075 9.29289C29.52 9.10536 29.2656 9 29.0004 9H25.0004",
|
||
stroke: e,
|
||
strokeWidth: "2",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
"path",
|
||
{
|
||
d: "M7.25078 16H5.98828C4.92742 16 3.91 15.5786 3.15985 14.8284C2.40971 14.0783 1.98828 13.0609 1.98828 12V10C1.98828 9.73478 2.09364 9.48043 2.28117 9.29289C2.46871 9.10536 2.72306 9 2.98828 9H6.98828",
|
||
stroke: e,
|
||
strokeWidth: "2",
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}
|
||
const E1 = [
|
||
{
|
||
name: "star",
|
||
icon: (e) => /* @__PURE__ */ t.jsx(T1, { width: 50, color: e })
|
||
},
|
||
{
|
||
name: "trophie",
|
||
icon: (e) => /* @__PURE__ */ t.jsx(H1, { color: e })
|
||
},
|
||
{
|
||
name: "flag",
|
||
icon: (e) => /* @__PURE__ */ t.jsx(S1, { color: e })
|
||
},
|
||
{
|
||
name: "heart",
|
||
icon: (e) => /* @__PURE__ */ t.jsx(I1, { color: e })
|
||
},
|
||
{
|
||
name: "like",
|
||
icon: (e) => /* @__PURE__ */ t.jsx(D1, { color: e })
|
||
},
|
||
{
|
||
name: "bubble",
|
||
icon: (e) => /* @__PURE__ */ t.jsx(V1, { color: e })
|
||
},
|
||
{
|
||
name: "hashtag",
|
||
icon: (e) => /* @__PURE__ */ t.jsx(A1, { color: e })
|
||
}
|
||
], R1 = ({ currentQuestion: e }) => {
|
||
const { quizId: i } = D(), { answers: r } = V(), s = M(), n = N() < 650, { answer: o } = r.find(
|
||
({ questionId: a }) => a === e.id
|
||
) ?? {}, l = E1.find(
|
||
({ name: a }) => a === e.content.form
|
||
);
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", color: s.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "inline-flex",
|
||
alignItems: "center",
|
||
gap: "20px",
|
||
marginTop: "20px",
|
||
flexDirection: "column",
|
||
width: n ? "100%" : void 0
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "inline-block",
|
||
width: "100%"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
dt,
|
||
{
|
||
value: Number(o || 0),
|
||
onChange: async (a, c) => {
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: String(c) + " из " + e.content.steps,
|
||
qid: i
|
||
}), H(e.id, String(c), 0);
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
},
|
||
sx: {
|
||
height: "50px",
|
||
gap: n ? void 0 : "15px",
|
||
justifyContent: n ? "space-between" : void 0,
|
||
width: n ? "100%" : void 0
|
||
},
|
||
max: e.content.steps,
|
||
icon: l == null ? void 0 : l.icon(s.palette.primary.main),
|
||
emptyIcon: l == null ? void 0 : l.icon("#9A9AAF")
|
||
}
|
||
)
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
justifyContent: "space-between",
|
||
gap: 2,
|
||
width: "100%"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(m, { sx: {
|
||
color: "#9A9AAF"
|
||
// color: theme.palette.grey2.main
|
||
}, children: e.content.ratingNegativeDescription }),
|
||
/* @__PURE__ */ t.jsx(m, { sx: { color: "#9A9AAF" }, children: e.content.ratingPositiveDescription })
|
||
]
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
] });
|
||
};
|
||
function B1(e, { color: i = "#7E2AEA" }) {
|
||
return M(), /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
...e,
|
||
sx: {
|
||
top: "25% !important",
|
||
height: "24px",
|
||
width: "24px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ t.jsx("path", { d: "M19.5 9L12 16.5L4.5 9", stroke: i, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
||
}
|
||
);
|
||
}
|
||
const N1 = ({
|
||
items: e,
|
||
activeItemIndex: i = 0,
|
||
empty: r,
|
||
onChange: s,
|
||
sx: n,
|
||
placeholder: o = "",
|
||
colorMain: l = "#7E2AEA",
|
||
colorPlaceholder: a = "#9A9AAF"
|
||
}) => {
|
||
const [c, C] = A(
|
||
r ? -1 : i
|
||
), h = M();
|
||
ee(() => {
|
||
C(i);
|
||
}, [i]);
|
||
const p = (f) => {
|
||
const j = Number(f.target.value);
|
||
if (j === c) {
|
||
C(-1), s == null || s("", -1);
|
||
return;
|
||
}
|
||
C(j), s == null || s(e[j], j);
|
||
};
|
||
return /* @__PURE__ */ t.jsx(
|
||
ve,
|
||
{
|
||
fullWidth: !0,
|
||
size: "small",
|
||
sx: { width: "100%", height: "48px", ...n },
|
||
children: /* @__PURE__ */ t.jsx(
|
||
ct,
|
||
{
|
||
displayEmpty: !0,
|
||
renderValue: (f) => f ? e[Number(f)] : /* @__PURE__ */ t.jsx(m, { sx: { color: a }, children: o }),
|
||
id: "display-select",
|
||
variant: "outlined",
|
||
value: c === -1 ? "" : String(c),
|
||
onChange: p,
|
||
sx: {
|
||
width: "100%",
|
||
height: "48px",
|
||
borderRadius: "8px",
|
||
"& .MuiOutlinedInput-notchedOutline": {
|
||
border: `1px solid ${l} !important`,
|
||
height: "48px",
|
||
borderRadius: "10px"
|
||
}
|
||
},
|
||
MenuProps: {
|
||
PaperProps: {
|
||
sx: {
|
||
mt: "8px",
|
||
p: "4px",
|
||
borderRadius: "8px",
|
||
border: "1px solid #EEE4FC",
|
||
boxShadow: "0px 8px 24px rgba(210, 208, 225, 0.4)"
|
||
}
|
||
},
|
||
MenuListProps: {
|
||
sx: {
|
||
py: 0,
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
gap: "8px",
|
||
"& .Mui-selected": {
|
||
backgroundColor: h.palette.background.default,
|
||
color: l
|
||
}
|
||
}
|
||
}
|
||
},
|
||
inputProps: {
|
||
sx: {
|
||
color: l,
|
||
display: "block",
|
||
px: "9px",
|
||
gap: "20px",
|
||
"& .MuiTypography-root": {
|
||
overflow: "hidden",
|
||
textOverflow: "ellipsis"
|
||
}
|
||
}
|
||
},
|
||
IconComponent: (f) => /* @__PURE__ */ t.jsx(B1, { ...f }),
|
||
children: e.map((f, j) => /* @__PURE__ */ t.jsx(
|
||
pt,
|
||
{
|
||
value: j,
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
gap: "20px",
|
||
padding: "10px",
|
||
borderRadius: "5px",
|
||
color: a,
|
||
whiteSpace: "normal",
|
||
wordBreak: "break-word"
|
||
},
|
||
children: f
|
||
},
|
||
f + j
|
||
))
|
||
}
|
||
)
|
||
}
|
||
);
|
||
}, P1 = ({ currentQuestion: e }) => {
|
||
const i = M(), { quizId: r } = D(), { answers: s } = V(), { answer: n } = s.find(
|
||
({ questionId: o }) => o === e.id
|
||
) ?? {};
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", color: i.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
width: "100%",
|
||
marginTop: "20px"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
N1,
|
||
{
|
||
placeholder: e.content.default,
|
||
activeItemIndex: n ? Number(n) : -1,
|
||
items: e.content.variants.map(({ answer: o }) => o),
|
||
colorMain: i.palette.primary.main,
|
||
onChange: async (o, l) => {
|
||
if (l < 0) {
|
||
oe(e.id);
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: "",
|
||
qid: r
|
||
});
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
return;
|
||
}
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: String(e.content.variants[Number(l)].answer),
|
||
qid: r
|
||
}), H(e.id, String(l), 0);
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
}
|
||
}
|
||
)
|
||
}
|
||
)
|
||
] });
|
||
}, W1 = ({ currentQuestion: e }) => {
|
||
const i = M(), { quizId: r } = D(), { answers: s } = V(), n = ht(i.breakpoints.down(650)), { answer: o } = s.find(({ questionId: a }) => a === e.id) ?? {}, l = le(async (a) => {
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: a,
|
||
qid: r
|
||
});
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
}, 400);
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", color: i.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
width: "100%",
|
||
marginTop: "20px",
|
||
flexDirection: n ? "column-reverse" : void 0,
|
||
alignItems: "center"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
ce,
|
||
{
|
||
placeholder: e.content.placeholder,
|
||
value: o || "",
|
||
onChange: async ({ target: a }) => {
|
||
H(e.id, a.value, 0), l(a.value);
|
||
},
|
||
sx: {
|
||
"&:focus-visible": {
|
||
borderColor: i.palette.primary.main
|
||
}
|
||
}
|
||
}
|
||
),
|
||
e.content.back && e.content.back !== " " && /* @__PURE__ */ t.jsx(d, { sx: { maxWidth: "400px", width: "100%", height: "300px", margin: "15px" }, children: /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: e.content.back,
|
||
style: { width: "100%", height: "100%", objectFit: "cover" },
|
||
alt: ""
|
||
},
|
||
e.id
|
||
) })
|
||
]
|
||
}
|
||
)
|
||
] });
|
||
}, z1 = ke, _1 = ({ currentQuestion: e }) => {
|
||
const i = M(), r = N() < 650, { answers: s, ownVariants: n } = V(), { answer: o } = s.find(
|
||
({ questionId: h }) => h === e.id
|
||
) ?? {}, l = n.find(
|
||
(h) => h.id === e.id
|
||
), [a, c] = A(!0), C = e.content.multi ? xt : Ce;
|
||
return ee(() => {
|
||
l || Pt(e.id, "");
|
||
}, []), /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", color: i.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsxs(d, { sx: {
|
||
display: "flex",
|
||
gap: "20px",
|
||
flexDirection: r ? "column-reverse" : void 0,
|
||
alignItems: r ? "center" : void 0
|
||
}, children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
C,
|
||
{
|
||
name: e.id.toString(),
|
||
value: e.content.variants.findIndex(
|
||
({ id: h }) => o === h
|
||
),
|
||
sx: {
|
||
display: "flex",
|
||
flexWrap: "wrap",
|
||
flexDirection: "row",
|
||
justifyContent: "space-between",
|
||
flexBasis: "100%",
|
||
marginTop: "20px"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "row",
|
||
flexWrap: "wrap",
|
||
width: "100%",
|
||
gap: "20px"
|
||
},
|
||
children: [
|
||
e.content.variants.map((h, p) => /* @__PURE__ */ t.jsx(
|
||
We,
|
||
{
|
||
currentQuestion: e,
|
||
variant: h,
|
||
answer: o,
|
||
index: p,
|
||
readySend: a,
|
||
setReadySend: c
|
||
},
|
||
h.id
|
||
)),
|
||
e.content.own && l && /* @__PURE__ */ t.jsx(
|
||
We,
|
||
{
|
||
own: !0,
|
||
currentQuestion: e,
|
||
variant: l.variant,
|
||
answer: o,
|
||
index: e.content.variants.length + 2,
|
||
readySend: a,
|
||
setReadySend: c
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
),
|
||
e.content.back && e.content.back !== " " && /* @__PURE__ */ t.jsx(d, { sx: { maxWidth: "400px", width: "100%", height: "300px" }, children: /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: e.content.back,
|
||
style: { width: "100%", height: "100%", objectFit: "cover" },
|
||
alt: ""
|
||
},
|
||
e.id
|
||
) })
|
||
] })
|
||
] });
|
||
}, We = ({
|
||
currentQuestion: e,
|
||
variant: i,
|
||
answer: r,
|
||
index: s,
|
||
own: n = !1,
|
||
readySend: o,
|
||
setReadySend: l
|
||
}) => {
|
||
const a = M(), { settings: c, quizId: C } = D();
|
||
return /* @__PURE__ */ t.jsx(
|
||
ie,
|
||
{
|
||
sx: {
|
||
margin: "0",
|
||
borderRadius: "12px",
|
||
color: a.palette.text.primary,
|
||
padding: "15px",
|
||
border: "1px solid",
|
||
borderColor: r === i.id ? a.palette.primary.main : "#9A9AAF",
|
||
backgroundColor: z[c.cfg.theme].isLight ? "white" : a.palette.background.default,
|
||
display: "flex",
|
||
maxWidth: "685px",
|
||
maxHeight: "85px",
|
||
justifyContent: "space-between",
|
||
width: "100%",
|
||
"&.MuiFormControl-root": {
|
||
width: "100%"
|
||
},
|
||
"& .MuiFormControlLabel-label": {
|
||
wordBreak: "break-word",
|
||
height: i.answer.length <= 60 ? void 0 : "60px",
|
||
overflow: "auto",
|
||
lineHeight: "normal",
|
||
"&::-webkit-scrollbar": {
|
||
width: "4px"
|
||
},
|
||
"&::-webkit-scrollbar-thumb": {
|
||
backgroundColor: "#b8babf"
|
||
}
|
||
}
|
||
},
|
||
value: s,
|
||
labelPlacement: "start",
|
||
control: e.content.multi ? /* @__PURE__ */ t.jsx(
|
||
Ze,
|
||
{
|
||
checked: !!(r != null && r.includes(i.id)),
|
||
checkedIcon: /* @__PURE__ */ t.jsx(xe, { checked: !0, color: a.palette.primary.main }),
|
||
icon: /* @__PURE__ */ t.jsx(xe, {})
|
||
}
|
||
) : /* @__PURE__ */ t.jsx(fe, { checkedIcon: /* @__PURE__ */ t.jsx(ge, { color: a.palette.primary.main }), icon: /* @__PURE__ */ t.jsx(ue, {}) }),
|
||
label: n ? /* @__PURE__ */ t.jsx(z1, { label: "Другое..." }) : i.answer,
|
||
onClick: async (h) => {
|
||
if (h.preventDefault(), o) {
|
||
l(!1);
|
||
const p = e.content.variants[s].id;
|
||
if (console.log(r), e.content.multi) {
|
||
const f = typeof r != "string" ? r || [] : [];
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: f.includes(p) ? f == null ? void 0 : f.filter((j) => j !== p) : [...f, p],
|
||
qid: C
|
||
}), H(
|
||
e.id,
|
||
f.includes(p) ? f == null ? void 0 : f.filter((j) => j !== p) : [...f, p],
|
||
e.content.variants[s].points || 0
|
||
);
|
||
} catch (j) {
|
||
console.log(j), I("ответ не был засчитан");
|
||
}
|
||
return;
|
||
}
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: e.content.variants[s].answer,
|
||
qid: C
|
||
}), H(
|
||
e.id,
|
||
p,
|
||
r === p ? 0 : e.content.variants[s].points || 0
|
||
);
|
||
} catch (f) {
|
||
console.log(f), I("ответ не был засчитан");
|
||
}
|
||
if (r === p) {
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: "",
|
||
qid: C
|
||
});
|
||
} catch (f) {
|
||
console.log(f), I("ответ не был засчитан");
|
||
}
|
||
oe(e.id);
|
||
}
|
||
l(!0);
|
||
}
|
||
}
|
||
},
|
||
i.id
|
||
);
|
||
};
|
||
function O1() {
|
||
return /* @__PURE__ */ t.jsxs("svg", { width: "100%", height: "100%", viewBox: "0 -70 800 535", fill: "none", display: "block", preserveAspectRatio: "xMidYMax meet", xmlns: "http://www.w3.org/2000/svg", children: [
|
||
/* @__PURE__ */ t.jsx("path", { fill: "#F0F0F0", d: "M555 47a47.003 47.003 0 0 1 29.014-43.422 46.999 46.999 0 0 1 61.408 61.408 46.997 46.997 0 0 1-76.656 15.248A47 47 0 0 1 555 47Z" }),
|
||
/* @__PURE__ */ t.jsx("path", { fill: "#F3F3F3", d: "M641.874 240.665c7.74-7.74 20.263-7.82 28.102-.181L1051 611.837 779.035 883.805 383.869 498.67l258.005-258.005Z" }),
|
||
/* @__PURE__ */ t.jsx("path", { fill: "#EDEDED", d: "M183.393 61.546c7.692-7.037 19.499-6.985 27.129.12l677.42 630.746-690.929 382.738L-397 592.531 183.393 61.546Z" })
|
||
] });
|
||
}
|
||
const Z1 = ({ currentQuestion: e }) => {
|
||
const { settings: i, quizId: r } = D(), { answers: s } = V(), n = M(), o = N() < 650, { answer: l } = s.find(
|
||
({ questionId: c }) => c === e.id
|
||
) ?? {}, a = e.content.variants.find(
|
||
({ id: c }) => l === c
|
||
);
|
||
return /* @__PURE__ */ t.jsxs(d, { children: [
|
||
/* @__PURE__ */ t.jsx(m, { variant: "h5", color: n.palette.text.primary, sx: { wordBreak: "break-word" }, children: e.title }),
|
||
/* @__PURE__ */ t.jsxs(d, { sx: {
|
||
display: "flex",
|
||
marginTop: "20px",
|
||
flexDirection: o ? "column-reverse" : void 0,
|
||
gap: o ? "30px" : void 0,
|
||
alignItems: o ? "center" : void 0
|
||
}, children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
Ce,
|
||
{
|
||
name: e.id,
|
||
value: e.content.variants.findIndex(
|
||
({ id: c }) => l === c
|
||
),
|
||
sx: {
|
||
display: "flex",
|
||
flexWrap: "wrap",
|
||
flexDirection: "row",
|
||
justifyContent: "space-between",
|
||
flexBasis: "100%"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(d, { sx: { display: "flex", flexDirection: "column", width: "100%", gap: o ? "20px" : void 0 }, children: e.content.variants.map((c, C) => /* @__PURE__ */ t.jsx(
|
||
ie,
|
||
{
|
||
sx: {
|
||
marginBottom: "15px",
|
||
borderRadius: "5px",
|
||
padding: "15px",
|
||
color: n.palette.text.primary,
|
||
backgroundColor: z[i.cfg.theme].isLight ? "white" : n.palette.background.default,
|
||
border: "1px solid",
|
||
borderColor: l === c.id ? n.palette.primary.main : "#9A9AAF",
|
||
display: "flex",
|
||
margin: o ? 0 : void 0,
|
||
"& .MuiFormControlLabel-label": {
|
||
wordBreak: "break-word",
|
||
height: c.answer.length <= 60 ? void 0 : "60px",
|
||
overflow: "auto",
|
||
lineHeight: "normal",
|
||
paddingLeft: "45px",
|
||
"&::-webkit-scrollbar": {
|
||
width: "4px"
|
||
},
|
||
"&::-webkit-scrollbar-thumb": {
|
||
backgroundColor: "#b8babf"
|
||
}
|
||
}
|
||
},
|
||
value: C,
|
||
onClick: async (h) => {
|
||
h.preventDefault();
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: `${e.content.variants[C].answer} <img style="width:100%; max-width:250px; max-height:250px" src="${e.content.variants[C].extendedText}"/>`,
|
||
qid: r
|
||
}), H(
|
||
e.id,
|
||
e.content.variants[C].id,
|
||
e.content.variants[C].points || 0
|
||
);
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
if (l === e.content.variants[C].id) {
|
||
try {
|
||
await E({
|
||
questionId: e.id,
|
||
body: "",
|
||
qid: r
|
||
});
|
||
} catch {
|
||
I("ответ не был засчитан");
|
||
}
|
||
oe(e.id);
|
||
}
|
||
},
|
||
control: /* @__PURE__ */ t.jsx(fe, { checkedIcon: /* @__PURE__ */ t.jsx(ge, { color: n.palette.primary.main }), icon: /* @__PURE__ */ t.jsx(ue, {}) }),
|
||
label: c.answer
|
||
},
|
||
c.id
|
||
)) })
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
maxWidth: "450px",
|
||
width: "100%",
|
||
height: "450px",
|
||
border: "1px solid #9A9AAF",
|
||
borderRadius: "12px",
|
||
overflow: "hidden",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "center",
|
||
backgroundColor: "#9A9AAF12",
|
||
color: "#9A9AAF",
|
||
textAlign: "center"
|
||
},
|
||
children: l ? a != null && a.extendedText ? /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: a == null ? void 0 : a.extendedText,
|
||
style: { width: "100%", height: "100%", objectFit: "cover" },
|
||
alt: ""
|
||
}
|
||
) : /* @__PURE__ */ t.jsx(O1, {}) : e.content.back !== " " && e.content.back !== null && e.content.back.length > 0 ? /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: e.content.back,
|
||
style: { width: "100%", height: "100%", objectFit: "cover" },
|
||
alt: ""
|
||
}
|
||
) : e.content.replText !== " " && e.content.replText.length > 0 ? e.content.replText : a != null && a.extendedText || o ? "Выберите вариант ответа ниже" : "Выберите вариант ответа слева"
|
||
}
|
||
)
|
||
] })
|
||
] });
|
||
}, $1 = (e) => /* @__PURE__ */ t.jsxs("svg", { ...e, width: "750", height: "140", viewBox: "0 0 750 140", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
||
/* @__PURE__ */ t.jsx("rect", { width: "750", height: "140", rx: "70", fill: "white" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z", fill: "#4D4D4D" }),
|
||
/* @__PURE__ */ t.jsxs("g", { clipPath: "url(#clip0_4819_14395)", children: [
|
||
/* @__PURE__ */ t.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M461.886 33.8256C453.446 32.8479 447.622 41.9149 442.205 48.4691C437.452 54.221 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z", fill: "#7E2AEA" }),
|
||
/* @__PURE__ */ t.jsx("circle", { cx: "482.884", cy: "95.6408", r: "4.65763", fill: "#7E2AEA" }),
|
||
/* @__PURE__ */ t.jsx("circle", { cx: "478.227", cy: "43.9516", r: "1.77434", fill: "#7E2AEA" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9414 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2575V66.259ZM495.347 75.7562C494.384 76.9524 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0895 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5593 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.621 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z", fill: "#151515" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6198 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3101 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8412 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z", fill: "#151515" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.2049C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.2049V88.8521H589.379V66.2049C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z", fill: "#151515" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2181 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9111 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z", fill: "#151515" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2163 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.828 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z", fill: "black" })
|
||
] }),
|
||
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_4819_14395", children: /* @__PURE__ */ t.jsx("rect", { width: "207", height: "80.129", fill: "white", transform: "translate(432 30)" }) }) })
|
||
] }), q1 = (e) => /* @__PURE__ */ t.jsxs("svg", { ...e, width: "750", height: "140", viewBox: "0 0 750 140", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
||
/* @__PURE__ */ t.jsx("rect", { width: "750", height: "140", rx: "70", fill: "#444757" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z", fill: "#F2F3F7" }),
|
||
/* @__PURE__ */ t.jsxs("g", { clipPath: "url(#clip0_4819_14374)", children: [
|
||
/* @__PURE__ */ t.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M461.886 33.8256C453.446 32.8478 447.622 41.9149 442.205 48.4691C437.452 54.2209 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z", fill: "#7E2AEA" }),
|
||
/* @__PURE__ */ t.jsx("circle", { cx: "482.884", cy: "95.6408", r: "4.65763", fill: "#7E2AEA" }),
|
||
/* @__PURE__ */ t.jsx("circle", { cx: "478.227", cy: "43.9516", r: "1.77434", fill: "#7E2AEA" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9415 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2576V66.259ZM495.347 75.7562C494.384 76.9525 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0896 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5594 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.6211 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z", fill: "#F9F9F9" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6199 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3102 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8413 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z", fill: "#F9F9F9" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.205C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.205V88.8521H589.379V66.205C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z", fill: "#F9F9F9" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2182 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9112 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z", fill: "#F9F9F9" }),
|
||
/* @__PURE__ */ t.jsx("path", { d: "M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2162 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.827 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z", fill: "#F7F7F7" })
|
||
] }),
|
||
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_4819_14374", children: /* @__PURE__ */ t.jsx("rect", { width: "207", height: "80.129", fill: "white", transform: "translate(432 30)" }) }) })
|
||
] }), U1 = ({
|
||
currentQuestion: e,
|
||
currentQuestionStepNumber: i,
|
||
nextButton: r,
|
||
prevButton: s
|
||
}) => {
|
||
const n = M(), { settings: o } = D(), l = N() < 650;
|
||
return console.log(o), /* @__PURE__ */ t.jsxs(d, { sx: {
|
||
backgroundColor: n.palette.background.default,
|
||
height: l ? "100%" : "100vh"
|
||
}, children: [
|
||
/* @__PURE__ */ t.jsxs(d, { sx: {
|
||
height: "calc(100% - 75px)",
|
||
width: "100%",
|
||
maxWidth: "1440px",
|
||
padding: "40px 25px 20px",
|
||
margin: "0 auto",
|
||
overflow: "auto",
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
justifyContent: "space-between"
|
||
}, children: [
|
||
/* @__PURE__ */ t.jsx(Y1, { question: e }, e.id),
|
||
z[o.cfg.theme].isLight ? /* @__PURE__ */ t.jsx(Y, { target: "_blank", href: "https://quiz.pena.digital", children: /* @__PURE__ */ t.jsx($1, { style: { fontSize: "34px", width: "200px", height: "auto" } }) }) : /* @__PURE__ */ t.jsx(Y, { target: "_blank", href: "https://quiz.pena.digital", children: /* @__PURE__ */ t.jsx(q1, { style: { fontSize: "34px", width: "200px", height: "auto" } }) })
|
||
] }),
|
||
/* @__PURE__ */ t.jsx(
|
||
c1,
|
||
{
|
||
stepNumber: i,
|
||
prevButton: s,
|
||
nextButton: r
|
||
}
|
||
)
|
||
] });
|
||
};
|
||
function Y1({ question: e }) {
|
||
switch (e.type) {
|
||
case "variant":
|
||
return /* @__PURE__ */ t.jsx(_1, { currentQuestion: e });
|
||
case "images":
|
||
return /* @__PURE__ */ t.jsx(k1, { currentQuestion: e });
|
||
case "varimg":
|
||
return /* @__PURE__ */ t.jsx(Z1, { currentQuestion: e });
|
||
case "emoji":
|
||
return /* @__PURE__ */ t.jsx(g1, { currentQuestion: e });
|
||
case "text":
|
||
return /* @__PURE__ */ t.jsx(W1, { currentQuestion: e });
|
||
case "select":
|
||
return /* @__PURE__ */ t.jsx(P1, { currentQuestion: e });
|
||
case "date":
|
||
return /* @__PURE__ */ t.jsx(h1, { currentQuestion: e });
|
||
case "number":
|
||
return /* @__PURE__ */ t.jsx(M1, { currentQuestion: e });
|
||
case "file":
|
||
return /* @__PURE__ */ t.jsx(j1, { currentQuestion: e });
|
||
case "page":
|
||
return /* @__PURE__ */ t.jsx(L1, { currentQuestion: e });
|
||
case "rating":
|
||
return /* @__PURE__ */ t.jsx(R1, { currentQuestion: e });
|
||
default:
|
||
Fe(e);
|
||
}
|
||
}
|
||
const J1 = ({ resultQuestion: e }) => {
|
||
const i = M(), r = N() < 650, { settings: s } = D();
|
||
return /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
alignItems: "center",
|
||
justifyContent: "space-between",
|
||
height: "100%",
|
||
width: "100vw",
|
||
pt: "28px",
|
||
overflow: "auto"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
alignItems: "start",
|
||
width: r ? "100%" : "490px",
|
||
padding: r ? "0 16px" : void 0
|
||
},
|
||
children: [
|
||
!(e != null && e.content.useImage) && e.content.video && /* @__PURE__ */ t.jsx(
|
||
Se,
|
||
{
|
||
videoUrl: e.content.video,
|
||
containerSX: {
|
||
width: r ? "100%" : "490px",
|
||
height: r ? "100%" : "280px"
|
||
}
|
||
}
|
||
),
|
||
(e == null ? void 0 : e.content.useImage) && e.content.back && /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
component: "img",
|
||
src: e.content.back,
|
||
sx: {
|
||
width: r ? "100%" : "490px",
|
||
height: r ? "100%" : "280px"
|
||
}
|
||
}
|
||
),
|
||
e.description !== "" && e.description !== " " && /* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
fontSize: "23px",
|
||
fontWeight: 700,
|
||
m: "20px 0",
|
||
color: i.palette.text.primary,
|
||
wordBreak: "break-word"
|
||
},
|
||
children: e.description
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
m: "20px 0",
|
||
color: i.palette.text.primary,
|
||
wordBreak: "break-word"
|
||
},
|
||
children: e.title
|
||
}
|
||
),
|
||
e.content.text !== "" && e.content.text !== " " && /* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
fontSize: "18px",
|
||
m: "20px 0",
|
||
wordBreak: "break-word",
|
||
color: i.palette.text.primary
|
||
},
|
||
children: e.content.text
|
||
}
|
||
)
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(d, { width: "100%", children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
width: "100%",
|
||
justifyContent: "end",
|
||
px: "20px"
|
||
},
|
||
children: /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
component: Y,
|
||
target: "_blank",
|
||
href: "https://quiz.pena.digital",
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
mt: "15px",
|
||
gap: "10px",
|
||
textDecoration: "none",
|
||
mb: "5px"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
Le,
|
||
{
|
||
style: {
|
||
fontSize: "34px",
|
||
color: z[s.cfg.theme].isLight ? "#000000" : "#F5F7FF"
|
||
}
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
fontSize: "20px",
|
||
color: z[s.cfg.theme].isLight ? "#4D4D4D" : "#F5F7FF",
|
||
whiteSpace: "nowrap"
|
||
},
|
||
children: "Сделано на PenaQuiz"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
boxShadow: "0 0 15px 0 rgba(0,0,0,.08)",
|
||
width: "100%",
|
||
flexDirection: "column",
|
||
display: "flex",
|
||
justifyContent: "center",
|
||
alignItems: "center",
|
||
p: s.cfg.resultInfo.showResultForm === "before" && !s.cfg.score || s.cfg.resultInfo.showResultForm === "after" && e.content.redirect ? "20px" : "0"
|
||
},
|
||
children: [
|
||
s.cfg.resultInfo.showResultForm === "before" && !s.cfg.score && /* @__PURE__ */ t.jsx(
|
||
Q,
|
||
{
|
||
onClick: () => he("contactform"),
|
||
variant: "contained",
|
||
sx: {
|
||
p: "10px 20px",
|
||
width: "auto",
|
||
height: "50px"
|
||
},
|
||
children: e.content.hint.text || "Узнать подробнее"
|
||
}
|
||
),
|
||
s.cfg.resultInfo.showResultForm === "after" && e.content.redirect && /* @__PURE__ */ t.jsx(
|
||
Q,
|
||
{
|
||
href: e.content.redirect,
|
||
variant: "contained",
|
||
sx: { p: "10px 20px", width: "auto", height: "50px" },
|
||
children: e.content.hint.text || "Перейти на сайт"
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
] })
|
||
]
|
||
}
|
||
);
|
||
};
|
||
function G1() {
|
||
const [e, i] = A(!1);
|
||
return ee(() => {
|
||
const r = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||
i(r);
|
||
}, [navigator.userAgent]), { isMobileDevice: e };
|
||
}
|
||
const X1 = () => {
|
||
const e = M(), { settings: i } = D(), { isMobileDevice: r } = G1(), s = N() < 650, n = N() < 800, o = () => {
|
||
navigator.clipboard.writeText(i.cfg.info.phonenumber);
|
||
};
|
||
console.log(i.cfg.startpage.background.type);
|
||
const l = i.cfg.startpage.background.type === "image" ? i.cfg.startpage.background.desktop ? /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: i.cfg.startpage.background.desktop,
|
||
alt: "",
|
||
style: {
|
||
width: s || i.cfg.startpageType === "expanded" ? "100%" : void 0,
|
||
height: "100%",
|
||
objectFit: "cover",
|
||
overflow: "hidden"
|
||
}
|
||
}
|
||
) : null : i.cfg.startpage.background.type === "video" && i.cfg.startpage.background.video ? /* @__PURE__ */ t.jsx(
|
||
Se,
|
||
{
|
||
videoUrl: i.cfg.startpage.background.video,
|
||
containerSX: {
|
||
width: i.cfg.startpageType === "centered" ? "550px" : i.cfg.startpageType === "expanded" ? "100vw" : "100%",
|
||
height: i.cfg.startpageType === "centered" ? "275px" : "100%",
|
||
borderRadius: i.cfg.startpageType === "centered" ? "10px" : "0",
|
||
overflow: "hidden",
|
||
"& iframe": {
|
||
width: "100%",
|
||
height: "100%",
|
||
transform: i.cfg.startpageType === "centered" ? "" : i.cfg.startpageType === "expanded" ? "scale(1.5)" : "scale(2.4)"
|
||
}
|
||
}
|
||
}
|
||
) : null;
|
||
return /* @__PURE__ */ t.jsx(
|
||
Ct,
|
||
{
|
||
className: "settings-preview-draghandle",
|
||
sx: {
|
||
height: "100%",
|
||
width: "100%",
|
||
background: i.cfg.startpageType === "expanded" && !s ? i.cfg.startpage.position === "left" ? "linear-gradient(90deg,#272626,transparent)" : i.cfg.startpage.position === "center" ? "linear-gradient(180deg,transparent,#272626)" : "linear-gradient(270deg,#272626,transparent)" : e.palette.background.default,
|
||
color: i.cfg.startpageType === "expanded" ? "white" : "black"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
K1,
|
||
{
|
||
quizHeaderBlock: /* @__PURE__ */ t.jsxs(d, { p: i.cfg.startpageType === "standard" ? "" : "16px", children: [
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
gap: "20px",
|
||
mb: "7px"
|
||
},
|
||
children: [
|
||
i.cfg.startpage.logo && /* @__PURE__ */ t.jsx(
|
||
"img",
|
||
{
|
||
src: i.cfg.startpage.logo,
|
||
style: {
|
||
height: "37px",
|
||
maxWidth: "43px",
|
||
objectFit: "cover"
|
||
},
|
||
alt: ""
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
fontSize: "14px",
|
||
color: i.cfg.startpageType === "expanded" && !s ? "white" : e.palette.text.primary,
|
||
wordBreak: "break-word"
|
||
},
|
||
children: i.cfg.info.orgname
|
||
}
|
||
)
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(Y, { mb: "16px", href: i.cfg.info.site, children: /* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
fontSize: "16px",
|
||
color: e.palette.primary.main,
|
||
overflow: "hidden",
|
||
textOverflow: "ellipsis",
|
||
whiteSpace: "nowrap",
|
||
maxWidth: n ? "200px" : "300px"
|
||
},
|
||
children: i.cfg.info.site
|
||
}
|
||
) })
|
||
] }),
|
||
quizMainBlock: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
justifyContent: "center",
|
||
alignItems: i.cfg.startpageType === "centered" || i.cfg.startpageType === "expanded" && i.cfg.startpage.position === "center" ? "center" : "start",
|
||
mt: "28px",
|
||
width: "100%"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
fontWeight: "bold",
|
||
fontSize: "26px",
|
||
fontStyle: "normal",
|
||
fontStretch: "normal",
|
||
lineHeight: "1.2",
|
||
overflowWrap: "break-word",
|
||
width: "100%",
|
||
textAlign: i.cfg.startpageType === "centered" || i.cfg.startpage.position === "center" ? "center" : "-moz-initial",
|
||
color: i.cfg.startpageType === "expanded" && !s ? "white" : e.palette.text.primary
|
||
},
|
||
children: i.name
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
m,
|
||
{
|
||
sx: {
|
||
fontSize: "16px",
|
||
m: "16px 0",
|
||
overflowWrap: "break-word",
|
||
width: "100%",
|
||
textAlign: i.cfg.startpageType === "centered" || i.cfg.startpage.position === "center" ? "center" : "-moz-initial",
|
||
color: i.cfg.startpageType === "expanded" && !s ? "white" : e.palette.text.primary
|
||
},
|
||
children: i.cfg.startpage.description
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(d, { width: i.cfg.startpageType === "standard" ? "100%" : "auto", children: /* @__PURE__ */ t.jsx(
|
||
Q,
|
||
{
|
||
variant: "contained",
|
||
sx: {
|
||
fontSize: "16px",
|
||
padding: "10px 15px",
|
||
width: i.cfg.startpageType === "standard" ? "100%" : "auto"
|
||
},
|
||
onClick: () => he("question"),
|
||
children: i.cfg.startpage.button.trim() ? i.cfg.startpage.button : "Пройти тест"
|
||
}
|
||
) })
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
mt: "46px",
|
||
display: "flex",
|
||
alignItems: "center",
|
||
justifyContent: "space-between",
|
||
width: "100%",
|
||
flexDirection: "column"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsxs(d, { sx: { maxWidth: n ? "240px" : "300px" }, children: [
|
||
i.cfg.info.clickable ? r ? /* @__PURE__ */ t.jsx(Y, { href: `tel:${i.cfg.info.phonenumber}`, children: /* @__PURE__ */ t.jsx(m, { sx: { fontSize: "16px", color: e.palette.primary.main }, children: i.cfg.info.phonenumber }) }) : /* @__PURE__ */ t.jsx(qe, { onClick: o, children: /* @__PURE__ */ t.jsx(m, { sx: { fontSize: "16px", color: e.palette.primary.main }, children: i.cfg.info.phonenumber }) }) : /* @__PURE__ */ t.jsx(m, { sx: { fontSize: "16px", color: e.palette.primary.main }, children: i.cfg.info.phonenumber }),
|
||
/* @__PURE__ */ t.jsx(m, { sx: {
|
||
width: "100%",
|
||
overflowWrap: "break-word",
|
||
fontSize: "12px",
|
||
textAlign: "end",
|
||
maxHeight: "120px",
|
||
overflow: "auto",
|
||
color: i.cfg.startpageType === "expanded" && !s ? "white" : e.palette.text.primary
|
||
}, children: i.cfg.info.law })
|
||
] }),
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
component: Y,
|
||
target: "_blank",
|
||
href: "https://quiz.pena.digital",
|
||
sx: {
|
||
display: "flex",
|
||
alignItems: "center",
|
||
gap: "15px",
|
||
textDecoration: "none"
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(Le, { style: { fontSize: "34px", color: i.cfg.startpageType === "expanded" && !s ? "#FFFFFF" : z[i.cfg.theme].isLight ? "#151515" : "#FFFFFF" } }),
|
||
/* @__PURE__ */ t.jsx(m, { sx: { fontSize: "20px", color: i.cfg.startpageType === "expanded" && !s ? "#F5F7FF" : z[i.cfg.theme].isLight ? "#4D4D4D" : "#F5F7FF", whiteSpace: "nowrap" }, children: "Сделано на PenaQuiz" })
|
||
]
|
||
}
|
||
)
|
||
]
|
||
}
|
||
)
|
||
] }),
|
||
backgroundBlock: l,
|
||
startpageType: i.cfg.startpageType,
|
||
alignType: i.cfg.startpage.position
|
||
}
|
||
)
|
||
}
|
||
);
|
||
};
|
||
function K1({
|
||
quizHeaderBlock: e,
|
||
quizMainBlock: i,
|
||
backgroundBlock: r,
|
||
startpageType: s,
|
||
alignType: n
|
||
}) {
|
||
const o = N() < 650;
|
||
function l() {
|
||
return /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: "column-reverse",
|
||
flexGrow: 1,
|
||
justifyContent: "flex-end",
|
||
height: "100%",
|
||
"&::-webkit-scrollbar": { width: 0 }
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: "100%",
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
justifyContent: "space-between",
|
||
alignItems: "flex-start",
|
||
p: "25px",
|
||
height: "80%",
|
||
overflowY: "auto",
|
||
overflowX: "hidden"
|
||
},
|
||
children: [
|
||
e,
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
height: "80%",
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
justifyContent: "space-between",
|
||
width: "100%"
|
||
},
|
||
children: i
|
||
}
|
||
)
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: "100%",
|
||
overflow: "hidden"
|
||
},
|
||
children: r
|
||
}
|
||
)
|
||
]
|
||
}
|
||
);
|
||
}
|
||
switch (s) {
|
||
case null:
|
||
case "standard":
|
||
return /* @__PURE__ */ t.jsx(t.Fragment, { children: o ? /* @__PURE__ */ t.jsx(l, {}) : /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
display: "flex",
|
||
flexDirection: n === "left" ? o ? "column-reverse" : "row" : "row-reverse",
|
||
flexGrow: 1,
|
||
justifyContent: o ? "flex-end" : void 0,
|
||
height: "100%",
|
||
"&::-webkit-scrollbar": { width: 0 }
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: o ? "100%" : "40%",
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
justifyContent: "space-between",
|
||
alignItems: "flex-start",
|
||
p: "25px",
|
||
height: o ? "80%" : void 0
|
||
},
|
||
children: [
|
||
e,
|
||
i
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: o ? "100%" : "60%",
|
||
overflow: "hidden"
|
||
},
|
||
children: r
|
||
}
|
||
)
|
||
]
|
||
}
|
||
) });
|
||
case "expanded":
|
||
return /* @__PURE__ */ t.jsx(t.Fragment, { children: o ? /* @__PURE__ */ t.jsx(l, {}) : /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
position: "relative",
|
||
display: "flex",
|
||
justifyContent: Q1[n],
|
||
flexGrow: 1,
|
||
height: "100%",
|
||
"&::-webkit-scrollbar": { width: 0 }
|
||
},
|
||
children: [
|
||
/* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: "40%",
|
||
position: "relative",
|
||
padding: "16px",
|
||
zIndex: 3,
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
justifyContent: "space-between",
|
||
alignItems: n === "center" ? "center" : "start"
|
||
},
|
||
children: [
|
||
e,
|
||
i
|
||
]
|
||
}
|
||
),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
position: "absolute",
|
||
zIndex: -1,
|
||
left: 0,
|
||
top: 0,
|
||
height: "100%",
|
||
width: "100%",
|
||
overflow: "hidden"
|
||
},
|
||
children: r
|
||
}
|
||
)
|
||
]
|
||
}
|
||
) });
|
||
case "centered":
|
||
return /* @__PURE__ */ t.jsx(t.Fragment, { children: o ? /* @__PURE__ */ t.jsx(l, {}) : /* @__PURE__ */ t.jsxs(
|
||
d,
|
||
{
|
||
sx: {
|
||
padding: "16px",
|
||
display: "flex",
|
||
flexDirection: "column",
|
||
justifyContent: "space-between",
|
||
alignItems: "center",
|
||
height: "100%",
|
||
"&::-webkit-scrollbar": { width: 0 },
|
||
overflow: "auto"
|
||
},
|
||
children: [
|
||
e,
|
||
r && /* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
sx: {
|
||
width: "60%",
|
||
height: "275px",
|
||
// overflow: "hidden",
|
||
display: "flex",
|
||
justifyContent: "center"
|
||
},
|
||
children: r
|
||
}
|
||
),
|
||
i
|
||
]
|
||
}
|
||
) });
|
||
default:
|
||
Fe(s);
|
||
}
|
||
}
|
||
const Q1 = {
|
||
left: "start",
|
||
center: "center",
|
||
right: "end"
|
||
};
|
||
function e5() {
|
||
const { settings: e, recentlyCompleted: i } = D();
|
||
let r = V((f) => f.currentQuizStep);
|
||
const s = N() < 382, {
|
||
currentQuestion: n,
|
||
currentQuestionStepNumber: o,
|
||
isNextButtonEnabled: l,
|
||
isPreviousButtonEnabled: a,
|
||
moveToPrevQuestion: c,
|
||
moveToNextQuestion: C,
|
||
showResultAfterContactForm: h
|
||
} = Wt();
|
||
if (ee(function() {
|
||
const j = document.querySelector('link[rel="icon"]');
|
||
j && e.cfg.startpage.favIcon && j.setAttribute("href", e.cfg.startpage.favIcon), document.title = e.name;
|
||
}, [e]), i)
|
||
throw new Error("Quiz already completed");
|
||
r === "startpage" && e.cfg.noStartPage && (r = "question");
|
||
let p;
|
||
switch (r) {
|
||
case "startpage": {
|
||
p = /* @__PURE__ */ t.jsx(X1, {});
|
||
break;
|
||
}
|
||
case "question": {
|
||
if (n.type === "result") {
|
||
p = /* @__PURE__ */ t.jsx(J1, { resultQuestion: n });
|
||
break;
|
||
}
|
||
p = /* @__PURE__ */ t.jsx(
|
||
U1,
|
||
{
|
||
currentQuestion: n,
|
||
currentQuestionStepNumber: o,
|
||
prevButton: /* @__PURE__ */ t.jsx(
|
||
Q,
|
||
{
|
||
disabled: !a,
|
||
variant: "contained",
|
||
sx: { fontSize: "16px", padding: "10px 15px" },
|
||
onClick: c,
|
||
children: s ? "←" : "← Назад"
|
||
}
|
||
),
|
||
nextButton: /* @__PURE__ */ t.jsx(
|
||
Q,
|
||
{
|
||
disabled: !l,
|
||
variant: "contained",
|
||
sx: { fontSize: "16px", padding: "10px 15px" },
|
||
onClick: C,
|
||
children: "Далее →"
|
||
}
|
||
)
|
||
}
|
||
);
|
||
break;
|
||
}
|
||
case "contactform": {
|
||
p = /* @__PURE__ */ t.jsx(
|
||
l1,
|
||
{
|
||
currentQuestion: n,
|
||
onShowResult: h
|
||
}
|
||
);
|
||
break;
|
||
}
|
||
default:
|
||
Fe(r);
|
||
}
|
||
return /* @__PURE__ */ t.jsx(Ue, { theme: z[e.cfg.theme || "StandardTheme"].theme, children: p });
|
||
}
|
||
W.locale("ru");
|
||
const t5 = At.components.MuiLocalizationProvider.defaultProps.localeText;
|
||
function x5({ quizSettings: e, quizId: i, preview: r = !1 }) {
|
||
const [s, n] = A(() => window.innerWidth), o = Oe(null);
|
||
return it(() => {
|
||
o.current && n(o.current.clientWidth);
|
||
}, []), ee(() => {
|
||
const l = () => {
|
||
ot(() => {
|
||
o.current && n(o.current.clientWidth);
|
||
});
|
||
};
|
||
return window.addEventListener("resize", l), () => {
|
||
window.removeEventListener("resize", l);
|
||
};
|
||
}, []), /* @__PURE__ */ t.jsx(Xe.Provider, { value: s, children: /* @__PURE__ */ t.jsx(Je.Provider, { value: { ...e, quizId: i, preview: r }, children: /* @__PURE__ */ t.jsx(ut, { dateAdapter: Lt, adapterLocale: "ru", localeText: t5, children: /* @__PURE__ */ t.jsx(Ue, { theme: Ee, children: /* @__PURE__ */ t.jsxs(
|
||
mt,
|
||
{
|
||
preventDuplicate: !0,
|
||
style: { backgroundColor: Ee.palette.brightPurple.main },
|
||
children: [
|
||
/* @__PURE__ */ t.jsx(ft, {}),
|
||
/* @__PURE__ */ t.jsx(
|
||
d,
|
||
{
|
||
ref: o,
|
||
sx: {
|
||
width: "100%",
|
||
height: "100%"
|
||
},
|
||
children: /* @__PURE__ */ t.jsx(
|
||
wt,
|
||
{
|
||
FallbackComponent: Ht,
|
||
onError: It,
|
||
children: /* @__PURE__ */ t.jsx(e5, {})
|
||
}
|
||
)
|
||
}
|
||
)
|
||
]
|
||
}
|
||
) }) }) }) });
|
||
}
|
||
export {
|
||
x5 as QuizAnswerer
|
||
};
|