@cuemath/leap 3.2.17-mb → 3.2.17-pzd-0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/illustrations/illustrations.js +6 -5
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/line-icons/icons/cue-board-filled.js +33 -0
- package/dist/assets/line-icons/icons/cue-board-filled.js.map +1 -0
- package/dist/assets/line-icons/icons/cue-board.js +23 -0
- package/dist/assets/line-icons/icons/cue-board.js.map +1 -0
- package/dist/assets/line-icons/icons/hint-fill.js +35 -0
- package/dist/assets/line-icons/icons/hint-fill.js.map +1 -0
- package/dist/assets/line-icons/icons/screen-grab-filled.js +35 -0
- package/dist/assets/line-icons/icons/screen-grab-filled.js.map +1 -0
- package/dist/assets/line-icons/icons/screen-grab.js +23 -0
- package/dist/assets/line-icons/icons/screen-grab.js.map +1 -0
- package/dist/assets/line-icons/icons/sticker-filled.js +64 -0
- package/dist/assets/line-icons/icons/sticker-filled.js.map +1 -0
- package/dist/assets/line-icons/icons/sticker.js +46 -0
- package/dist/assets/line-icons/icons/sticker.js.map +1 -0
- package/dist/assets/lottie/lottie.js +6 -1
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/analytics-events/platform-events-student.js +2 -1
- package/dist/features/analytics-events/platform-events-student.js.map +1 -1
- package/dist/features/analytics-events/platform-events-teacher.js +6 -4
- package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
- package/dist/features/analytics-events/whitelist-events.js +10 -8
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector.js +26 -25
- package/dist/features/auth/account-selector/account-selector.js.map +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +15 -14
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +30 -31
- package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-list.js +35 -34
- package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
- package/dist/features/auth/forgot-password/forgot-password-styled.js +14 -15
- package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +6 -7
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
- package/dist/features/auth/login/login-styled.js +8 -9
- package/dist/features/auth/login/login-styled.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +9 -9
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js +4 -4
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +85 -85
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +121 -98
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +29 -28
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +43 -42
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/games/tutorial/tutorial.js +43 -35
- package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +26 -24
- package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
- package/dist/features/circle-games/sign-up/constants.js +3 -1
- package/dist/features/circle-games/sign-up/constants.js.map +1 -1
- package/dist/features/communication/pub-sub/constants.js +7 -4
- package/dist/features/communication/pub-sub/constants.js.map +1 -1
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
- package/dist/features/homework/homework-card-view.js +85 -97
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/homework/homework-card.js +44 -42
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +31 -29
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +54 -48
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/utils.js +33 -27
- package/dist/features/homework/utils.js.map +1 -1
- package/dist/features/journey/comps/coachmark/coachmark.js +29 -27
- package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +17 -11
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +72 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +59 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +63 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +67 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +70 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +59 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +59 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +70 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +1 -0
- package/dist/features/journey/journey-id/journey-id-student.js +2 -2
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
- package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
- package/dist/features/journey/use-journey/journey-context-provider.js +73 -72
- package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
- package/dist/features/journey/use-journey/journey-styled.js +6 -4
- package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
- package/dist/features/puzzles/api/puzzle-dashboard.js +10 -0
- package/dist/features/puzzles/api/puzzle-dashboard.js.map +1 -0
- package/dist/features/puzzles/app/puzzle-app-styled.js +85 -0
- package/dist/features/puzzles/app/puzzle-app-styled.js.map +1 -0
- package/dist/features/puzzles/app/puzzle-app-view.js +120 -0
- package/dist/features/puzzles/app/puzzle-app-view.js.map +1 -0
- package/dist/features/puzzles/app/puzzle-app.js +62 -0
- package/dist/features/puzzles/app/puzzle-app.js.map +1 -0
- package/dist/features/puzzles/comps/puzzle-card-styled.js +24 -69
- package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
- package/dist/features/puzzles/comps/puzzle-card.js +79 -30
- package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
- package/dist/features/puzzles/constants/puzzle-container.js +8 -0
- package/dist/features/puzzles/constants/puzzle-container.js.map +1 -0
- package/dist/features/puzzles/puzzle-analytics-events.js +11 -0
- package/dist/features/puzzles/puzzle-analytics-events.js.map +1 -0
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +55 -25
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +55 -0
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +1 -0
- package/dist/features/puzzles/puzzle-container/puzzle-container.js +100 -107
- package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +37 -0
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +1 -0
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +110 -0
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +1 -0
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -1
- package/dist/features/puzzles/utils/puzzle-pattern.js +28 -13
- package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +6 -0
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +12 -60
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +72 -77
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +63 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +21 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -0
- package/dist/features/ui/error/error.js +65 -27
- package/dist/features/ui/error/error.js.map +1 -1
- package/dist/features/ui/lottie-animation/lottie-animation.js +25 -29
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +34 -58
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +40 -14
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/ui/nudge/nudge-styled.js +14 -7
- package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
- package/dist/features/ui/nudge/nudge.js +13 -12
- package/dist/features/ui/nudge/nudge.js.map +1 -1
- package/dist/features/{stickers/sticker-selector/sticker-selector-styles.js → ui/sticker-grid/sticker-grid-styles.js} +3 -4
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +1 -0
- package/dist/features/ui/sticker-grid/sticker-grid.js +24 -0
- package/dist/features/ui/sticker-grid/sticker-grid.js.map +1 -0
- package/dist/features/ui/sticker-grid/sticker.js +57 -0
- package/dist/features/ui/sticker-grid/sticker.js.map +1 -0
- package/dist/features/ui/stickers/constants.js +6 -0
- package/dist/features/ui/stickers/constants.js.map +1 -0
- package/dist/features/{stickers/stickers-effects/effects.js → ui/stickers/stickers-effects.js} +6 -6
- package/dist/features/ui/stickers/stickers-effects.js.map +1 -0
- package/dist/features/{stickers/stickers-effects/stickers-effects-styled.js → ui/stickers/stickers-styled.js} +2 -2
- package/dist/features/ui/stickers/stickers-styled.js.map +1 -0
- package/dist/features/{stickers/stickers-effects/stickers-effects-utils.js → ui/stickers/stickers-utils.js} +6 -6
- package/dist/features/ui/stickers/stickers-utils.js.map +1 -0
- package/dist/features/ui/stickers/stickers.js +40 -0
- package/dist/features/ui/stickers/stickers.js.map +1 -0
- package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
- package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
- package/dist/features/ui/streak-icon/streak-icon.js +17 -15
- package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
- package/dist/features/ui/text/text.js +40 -36
- package/dist/features/ui/text/text.js.map +1 -1
- package/dist/features/ui/theme/constants.js +4 -2
- package/dist/features/ui/theme/constants.js.map +1 -1
- package/dist/features/ui/theme/get-device.js +3 -3
- package/dist/features/ui/theme/get-device.js.map +1 -1
- package/dist/features/worksheet/worksheet/constants.js +12 -13
- package/dist/features/worksheet/worksheet/constants.js.map +1 -1
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +28 -0
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +20 -19
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +29 -25
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +101 -47
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +244 -255
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +242 -207
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +45 -36
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +321 -325
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +44 -35
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +152 -56
- package/dist/index.js +563 -539
- package/dist/index.js.map +1 -1
- package/dist/static/nudge-tap.0591aef4.json +1 -0
- package/dist/static/puzzle-blue-lottie.7017e2e8.json +1 -0
- package/dist/static/puzzle-blue-lottie.bf64ebc5.json +12760 -0
- package/dist/static/puzzle-dashboard-banner.b7956519.svg +1 -0
- package/dist/static/puzzle-green-lottie.1da90698.json +1 -0
- package/dist/static/puzzle-orange-lottie.cfcf3724.json +1 -0
- package/dist/static/puzzle-pattern-blue.abff0164.svg +1 -0
- package/dist/static/puzzle-pattern-green.b8ba1840.svg +1 -0
- package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +1 -0
- package/dist/static/puzzle-pattern-purple.14b09759.svg +1 -0
- package/dist/static/puzzle-pattern-yellow.50917fab.svg +1 -0
- package/dist/static/puzzle-purple-lottie.e70de110.json +9860 -0
- package/dist/static/puzzle-yellow-lottie.275b5cf4.json +1 -0
- package/package.json +1 -1
- package/dist/features/hooks/use-viewport/use-viewport.js +0 -22
- package/dist/features/hooks/use-viewport/use-viewport.js.map +0 -1
- package/dist/features/stickers/sticker-data.js +0 -234
- package/dist/features/stickers/sticker-data.js.map +0 -1
- package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +0 -1
- package/dist/features/stickers/sticker-selector/sticker-selector.js +0 -25
- package/dist/features/stickers/sticker-selector/sticker-selector.js.map +0 -1
- package/dist/features/stickers/sticker-selector/sticker.js +0 -57
- package/dist/features/stickers/sticker-selector/sticker.js.map +0 -1
- package/dist/features/stickers/stickers-effects/effects.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects.js +0 -39
- package/dist/features/stickers/stickers-effects/stickers-effects.js.map +0 -1
- package/dist/static/nudge-tap.5cb30093.json +0 -1057
- package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +0 -1
- package/dist/static/puzzle-pattern-green.c9f84bbc.svg +0 -1
- package/dist/static/puzzle-pattern-orange.3da09665.svg +0 -1
- package/dist/static/puzzle-pattern-purple.5fb5a319.svg +0 -1
- package/dist/static/puzzle-pattern-yellow.aadbf457.svg +0 -1
@@ -1,23 +1,24 @@
|
|
1
|
-
import { jsxs as i, jsx as
|
2
|
-
import { memo as
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { memo as s } from "react";
|
3
|
+
import { useTheme as $ } from "styled-components";
|
3
4
|
import { ILLUSTRATIONS as a } from "../../../assets/illustrations/illustrations.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import t from "../../ui/
|
7
|
-
import o from "../../ui/separator/separator.js";
|
5
|
+
import d from "../../ui/image/image.js";
|
6
|
+
import r from "../../ui/layout/flex-view.js";
|
7
|
+
import t from "../../ui/separator/separator.js";
|
8
8
|
import c from "../../ui/text/text.js";
|
9
|
-
import f from "
|
10
|
-
import
|
11
|
-
import
|
12
|
-
|
9
|
+
import { EDeviceType as f } from "../../ui/theme/constants.js";
|
10
|
+
import g from "../comps/overlay-loader/overlay-loader.js";
|
11
|
+
import T from "../comps/user-list/user-list.js";
|
12
|
+
import { ImageWrapper as u } from "./account-selector-styled.js";
|
13
|
+
const w = ({
|
13
14
|
userAccounts: m,
|
14
15
|
onSelect: n,
|
15
16
|
onAddNew: p,
|
16
17
|
isLoading: h
|
17
18
|
}) => {
|
18
|
-
const {
|
19
|
+
const { device: l } = $(), o = l <= f.TABLET;
|
19
20
|
return /* @__PURE__ */ i(
|
20
|
-
|
21
|
+
r,
|
21
22
|
{
|
22
23
|
$flex: 1,
|
23
24
|
$alignItems: "center",
|
@@ -26,15 +27,15 @@ const u = ({
|
|
26
27
|
$height: "100%",
|
27
28
|
$gapX: 2,
|
28
29
|
children: [
|
29
|
-
/* @__PURE__ */
|
30
|
-
/* @__PURE__ */
|
31
|
-
/* @__PURE__ */
|
32
|
-
/* @__PURE__ */
|
33
|
-
/* @__PURE__ */
|
34
|
-
/* @__PURE__ */
|
35
|
-
/* @__PURE__ */
|
30
|
+
/* @__PURE__ */ e(g, { isLoading: h }),
|
31
|
+
/* @__PURE__ */ e(d, { src: a.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Parent Signup", withLoader: !1 }),
|
32
|
+
/* @__PURE__ */ e(t, { heightX: 1 }),
|
33
|
+
/* @__PURE__ */ e(c, { $renderAs: "ab1", $color: "WHITE_T_60", $align: "center", children: "Switch between accounts" }),
|
34
|
+
/* @__PURE__ */ e(t, { heightX: o ? 1.5 : 5 }),
|
35
|
+
/* @__PURE__ */ e(T, { users: m, onSelect: n, onAddNew: p }),
|
36
|
+
/* @__PURE__ */ e(t, { heightX: o ? 1.5 : 5 }),
|
36
37
|
/* @__PURE__ */ i(
|
37
|
-
|
38
|
+
r,
|
38
39
|
{
|
39
40
|
$gutterX: 0.5,
|
40
41
|
$gapX: 1,
|
@@ -44,8 +45,8 @@ const u = ({
|
|
44
45
|
$background: "BLACK_3",
|
45
46
|
$flexDirection: "row",
|
46
47
|
children: [
|
47
|
-
/* @__PURE__ */
|
48
|
-
|
48
|
+
/* @__PURE__ */ e(
|
49
|
+
u,
|
49
50
|
{
|
50
51
|
src: a.CUEMATH_APP_QR_CODE,
|
51
52
|
width: 80,
|
@@ -53,15 +54,15 @@ const u = ({
|
|
53
54
|
withLoader: !1
|
54
55
|
}
|
55
56
|
),
|
56
|
-
/* @__PURE__ */ r
|
57
|
+
/* @__PURE__ */ e(r, { $gapX: 0.5, $flex: 1, children: /* @__PURE__ */ e(c, { $color: "WHITE", $renderOnTabletAs: "ab3", $renderAs: "ab2", children: "Download the cuemath app to view your children’s report" }) })
|
57
58
|
]
|
58
59
|
}
|
59
60
|
)
|
60
61
|
]
|
61
62
|
}
|
62
63
|
);
|
63
|
-
},
|
64
|
+
}, v = s(w);
|
64
65
|
export {
|
65
|
-
|
66
|
+
v as default
|
66
67
|
};
|
67
68
|
//# sourceMappingURL=account-selector.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account-selector.js","sources":["../../../../src/features/auth/account-selector/account-selector.tsx"],"sourcesContent":["import type { IAccountSelectorViewProps } from './account-selector-types';\n\nimport { memo } from 'react';\
|
1
|
+
{"version":3,"file":"account-selector.js","sources":["../../../../src/features/auth/account-selector/account-selector.tsx"],"sourcesContent":["import type { IAccountSelectorViewProps } from './account-selector-types';\n\nimport { memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport Image from '../../ui/image/image';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport { EDeviceType } from '../../ui/theme/constants';\nimport OverlayLoader from '../comps/overlay-loader/overlay-loader';\nimport UserList from '../comps/user-list/user-list';\nimport * as Styled from './account-selector-styled';\n\nconst AccountSelector = ({\n userAccounts,\n onSelect,\n onAddNew,\n isLoading,\n}: IAccountSelectorViewProps) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n\n return (\n <FlexView\n $flex={1}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n $gapX={2}\n >\n <OverlayLoader isLoading={isLoading} />\n <Image src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} alt=\"Parent Signup\" withLoader={false} />\n <Separator heightX={1} />\n <Text $renderAs=\"ab1\" $color=\"WHITE_T_60\" $align=\"center\">\n Switch between accounts\n </Text>\n <Separator heightX={isCompact ? 1.5 : 5} />\n <UserList users={userAccounts} onSelect={onSelect} onAddNew={onAddNew} />\n <Separator heightX={isCompact ? 1.5 : 5} />\n <FlexView\n $gutterX={0.5}\n $gapX={1}\n $flexGapX={0.5}\n $width={280}\n $borderColor=\"BLACK_5\"\n $background=\"BLACK_3\"\n $flexDirection=\"row\"\n >\n <Styled.ImageWrapper\n src={ILLUSTRATIONS.CUEMATH_APP_QR_CODE}\n width={80}\n height={80}\n withLoader={false}\n />\n <FlexView $gapX={0.5} $flex={1}>\n <Text $color=\"WHITE\" $renderOnTabletAs=\"ab3\" $renderAs=\"ab2\">\n Download the cuemath app to view your children’s report\n </Text>\n </FlexView>\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(AccountSelector);\n"],"names":["AccountSelector","userAccounts","onSelect","onAddNew","isLoading","device","useTheme","isCompact","EDeviceType","jsxs","FlexView","jsx","OverlayLoader","Image","ILLUSTRATIONS","Separator","Text","UserList","Styled.ImageWrapper","accountSelector","memo"],"mappings":";;;;;;;;;;;;AAeA,MAAMA,IAAkB,CAAC;AAAA,EACvB,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAAiC;AACzB,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY;AAGtC,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,OAAO;AAAA,MAEP,UAAA;AAAA,QAAA,gBAAAC,EAACC,KAAc,WAAAR,GAAsB;AAAA,QACrC,gBAAAO,EAACE,KAAM,KAAKC,EAAc,2BAA2B,KAAI,iBAAgB,YAAY,IAAO;AAAA,QAC5F,gBAAAH,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACvB,gBAAAJ,EAACK,KAAK,WAAU,OAAM,QAAO,cAAa,QAAO,UAAS,UAE1D,0BAAA,CAAA;AAAA,QACC,gBAAAL,EAAAI,GAAA,EAAU,SAASR,IAAY,MAAM,GAAG;AAAA,QACxC,gBAAAI,EAAAM,GAAA,EAAS,OAAOhB,GAAc,UAAAC,GAAoB,UAAAC,GAAoB;AAAA,QACtE,gBAAAQ,EAAAI,GAAA,EAAU,SAASR,IAAY,MAAM,GAAG;AAAA,QACzC,gBAAAE;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAU;AAAA,YACV,OAAO;AAAA,YACP,WAAW;AAAA,YACX,QAAQ;AAAA,YACR,cAAa;AAAA,YACb,aAAY;AAAA,YACZ,gBAAe;AAAA,YAEf,UAAA;AAAA,cAAA,gBAAAC;AAAA,gBAACO;AAAAA,gBAAA;AAAA,kBACC,KAAKJ,EAAc;AAAA,kBACnB,OAAO;AAAA,kBACP,QAAQ;AAAA,kBACR,YAAY;AAAA,gBAAA;AAAA,cACd;AAAA,cACC,gBAAAH,EAAAD,GAAA,EAAS,OAAO,KAAK,OAAO,GAC3B,UAAA,gBAAAC,EAACK,GAAK,EAAA,QAAO,SAAQ,mBAAkB,OAAM,WAAU,OAAM,oEAE7D,CAAA,GACF;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeG,IAAAC,EAAKpB,CAAe;"}
|
@@ -1,23 +1,24 @@
|
|
1
|
-
import { jsxs as n, jsx as
|
2
|
-
import { memo as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
2
|
+
import { memo as c } from "react";
|
3
|
+
import { useTheme as h } from "styled-components";
|
4
|
+
import a from "../../../ui/layout/flex-view.js";
|
5
|
+
import { EDeviceType as s } from "../../../ui/theme/constants.js";
|
6
|
+
import { Container as p, ContentWrapper as d } from "./auth-page-layout-styled.js";
|
7
|
+
const f = ({ leftBlock: i, rightBlock: o, isFullWidth: t }) => {
|
8
|
+
const { device: m } = h(), e = m <= s.TABLET;
|
9
|
+
return /* @__PURE__ */ n(p, { $width: "100%", $height: "100%", $flexDirection: "row", children: [
|
10
|
+
/* @__PURE__ */ r(
|
11
|
+
d,
|
11
12
|
{
|
12
|
-
$width: t ||
|
13
|
+
$width: t || e ? "100%" : "50%",
|
13
14
|
$background: "BLACK_1",
|
14
15
|
children: i
|
15
16
|
}
|
16
17
|
),
|
17
|
-
!
|
18
|
+
!e && o && !t && /* @__PURE__ */ r(a, { $width: "50%", $background: "BLACK_2", children: o })
|
18
19
|
] });
|
19
|
-
},
|
20
|
+
}, L = c(f);
|
20
21
|
export {
|
21
|
-
|
22
|
+
L as default
|
22
23
|
};
|
23
24
|
//# sourceMappingURL=auth-page-layout.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-page-layout.js","sources":["../../../../../src/features/auth/comps/auth-page-layout/auth-page-layout.tsx"],"sourcesContent":["import type { IAuthPageLayoutProps } from './auth-page-layout-types';\n\nimport { memo, type FC } from 'react';\
|
1
|
+
{"version":3,"file":"auth-page-layout.js","sources":["../../../../../src/features/auth/comps/auth-page-layout/auth-page-layout.tsx"],"sourcesContent":["import type { IAuthPageLayoutProps } from './auth-page-layout-types';\n\nimport { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport * as Styled from './auth-page-layout-styled';\n\nconst AuthPageLayout: FC<IAuthPageLayoutProps> = ({ leftBlock, rightBlock, isFullWidth }) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const showRightBlock = !isCompact && rightBlock && !isFullWidth;\n\n return (\n <Styled.Container $width=\"100%\" $height=\"100%\" $flexDirection=\"row\">\n <Styled.ContentWrapper\n $width={isFullWidth || isCompact ? '100%' : '50%'}\n $background=\"BLACK_1\"\n >\n {leftBlock}\n </Styled.ContentWrapper>\n {showRightBlock && (\n <FlexView $width=\"50%\" $background=\"BLACK_2\">\n {rightBlock}\n </FlexView>\n )}\n </Styled.Container>\n );\n};\n\nexport default memo(AuthPageLayout);\n"],"names":["AuthPageLayout","leftBlock","rightBlock","isFullWidth","device","useTheme","isCompact","EDeviceType","jsxs","Styled.Container","jsx","Styled.ContentWrapper","FlexView","authPageLayout","memo"],"mappings":";;;;;;AASA,MAAMA,IAA2C,CAAC,EAAE,WAAAC,GAAW,YAAAC,GAAY,aAAAC,QAAkB;AACrF,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY;AAItC,SAAA,gBAAAC,EAACC,GAAA,EAAiB,QAAO,QAAO,SAAQ,QAAO,gBAAe,OAC5D,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,QAAQR,KAAeG,IAAY,SAAS;AAAA,QAC5C,aAAY;AAAA,QAEX,UAAAL;AAAA,MAAA;AAAA,IACH;AAAA,IATmB,CAACK,KAAaJ,KAAc,CAACC,KAW7C,gBAAAO,EAAAE,GAAA,EAAS,QAAO,OAAM,aAAY,WAChC,UACHV,GAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEeW,IAAAC,EAAKd,CAAc;"}
|
@@ -1,50 +1,49 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { memo as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import {
|
8
|
-
|
9
|
-
const T = ({
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
2
|
+
import { memo as g, useCallback as A } from "react";
|
3
|
+
import u from "../../../../ui/avatar/avatar.js";
|
4
|
+
import C from "../../../../ui/separator/separator.js";
|
5
|
+
import I from "../../../../ui/text/text.js";
|
6
|
+
import { AVATAR_CONFIGURATIONS as m } from "../user-list-constants.js";
|
7
|
+
import { UserItemCard as b } from "./user-item-styled.js";
|
8
|
+
const d = ({
|
10
9
|
id: r,
|
11
|
-
phone:
|
12
|
-
username:
|
10
|
+
phone: n,
|
11
|
+
username: s,
|
13
12
|
avatar: i,
|
14
|
-
index:
|
13
|
+
index: e,
|
15
14
|
isLastItem: c,
|
16
|
-
onSelect:
|
17
|
-
avatarSize:
|
18
|
-
maxColumns:
|
19
|
-
cardSize:
|
15
|
+
onSelect: o,
|
16
|
+
avatarSize: l,
|
17
|
+
maxColumns: $,
|
18
|
+
cardSize: a
|
20
19
|
}) => {
|
21
|
-
const
|
22
|
-
|
23
|
-
}, [r,
|
24
|
-
return /* @__PURE__ */
|
25
|
-
|
20
|
+
const p = A(() => {
|
21
|
+
o(r);
|
22
|
+
}, [r, o]), f = i ?? m[e % m.length];
|
23
|
+
return /* @__PURE__ */ h(
|
24
|
+
b,
|
26
25
|
{
|
27
|
-
onClick:
|
28
|
-
maxColumns:
|
26
|
+
onClick: p,
|
27
|
+
maxColumns: $,
|
29
28
|
$gutterX: 1.5,
|
30
29
|
$gapX: 1.5,
|
31
|
-
$width:
|
32
|
-
$height:
|
30
|
+
$width: a,
|
31
|
+
$height: a,
|
33
32
|
$alignItems: "center",
|
34
33
|
$justifyContent: "center",
|
35
|
-
index:
|
34
|
+
index: e,
|
36
35
|
isLastItem: c,
|
37
36
|
$background: "BLACK_1",
|
38
37
|
children: [
|
39
|
-
/* @__PURE__ */ t(
|
40
|
-
/* @__PURE__ */ t(
|
41
|
-
/* @__PURE__ */ t(
|
38
|
+
/* @__PURE__ */ t(u, { size: l, avatar: f }),
|
39
|
+
/* @__PURE__ */ t(C, { heightX: 0.5 }),
|
40
|
+
/* @__PURE__ */ t(I, { $color: "WHITE", $renderOnTabletAs: "ab3", $renderAs: "ab2", $align: "center", children: s || n })
|
42
41
|
]
|
43
42
|
},
|
44
43
|
r
|
45
44
|
);
|
46
|
-
},
|
45
|
+
}, X = g(d);
|
47
46
|
export {
|
48
|
-
|
47
|
+
X as default
|
49
48
|
};
|
50
49
|
//# sourceMappingURL=user-item.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-item.js","sources":["../../../../../../src/features/auth/comps/user-list/user-item/user-item.tsx"],"sourcesContent":["import type { IUserItemProps } from './user-item-types';\n\nimport { useCallback, type FC, memo } from 'react';\n\nimport
|
1
|
+
{"version":3,"file":"user-item.js","sources":["../../../../../../src/features/auth/comps/user-list/user-item/user-item.tsx"],"sourcesContent":["import type { IUserItemProps } from './user-item-types';\n\nimport { useCallback, type FC, memo } from 'react';\n\nimport Avatar from '../../../../ui/avatar/avatar';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { AVATAR_CONFIGURATIONS } from '../user-list-constants';\nimport * as Styled from './user-item-styled';\n\nconst UserItem: FC<IUserItemProps> = ({\n id,\n phone,\n username,\n avatar,\n index,\n isLastItem,\n onSelect,\n avatarSize,\n maxColumns,\n cardSize,\n}) => {\n const handleClick = useCallback(() => {\n onSelect(id);\n }, [id, onSelect]);\n\n const avatarSource = avatar ?? AVATAR_CONFIGURATIONS[index % AVATAR_CONFIGURATIONS.length];\n\n return (\n <Styled.UserItemCard\n key={id}\n onClick={handleClick}\n maxColumns={maxColumns}\n $gutterX={1.5}\n $gapX={1.5}\n $width={cardSize}\n $height={cardSize}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n index={index}\n isLastItem={isLastItem}\n $background=\"BLACK_1\"\n >\n <Avatar size={avatarSize} avatar={avatarSource} />\n <Separator heightX={0.5} />\n <Text $color=\"WHITE\" $renderOnTabletAs=\"ab3\" $renderAs=\"ab2\" $align=\"center\">\n {username || phone}\n </Text>\n </Styled.UserItemCard>\n );\n};\n\nexport default memo(UserItem);\n"],"names":["UserItem","id","phone","username","avatar","index","isLastItem","onSelect","avatarSize","maxColumns","cardSize","handleClick","useCallback","avatarSource","AVATAR_CONFIGURATIONS","jsxs","Styled.UserItemCard","jsx","Avatar","Separator","Text","UserItem$1","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAA+B,CAAC;AAAA,EACpC,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AACF,MAAM;AACE,QAAAC,IAAcC,EAAY,MAAM;AACpC,IAAAL,EAASN,CAAE;AAAA,EAAA,GACV,CAACA,GAAIM,CAAQ,CAAC,GAEXM,IAAeT,KAAUU,EAAsBT,IAAQS,EAAsB,MAAM;AAGvF,SAAA,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MAEC,SAASL;AAAA,MACT,YAAAF;AAAA,MACA,UAAU;AAAA,MACV,OAAO;AAAA,MACP,QAAQC;AAAA,MACR,SAASA;AAAA,MACT,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,OAAAL;AAAA,MACA,YAAAC;AAAA,MACA,aAAY;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAW,EAACC,GAAO,EAAA,MAAMV,GAAY,QAAQK,GAAc;AAAA,QAChD,gBAAAI,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,QACzB,gBAAAF,EAACG,GAAK,EAAA,QAAO,SAAQ,mBAAkB,OAAM,WAAU,OAAM,QAAO,UACjE,UAAAjB,KAAYD,EACf,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAjBKD;AAAA,EAAA;AAoBX,GAEeoB,IAAAC,EAAKtB,CAAQ;"}
|
@@ -1,49 +1,50 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { memo as
|
3
|
-
import
|
4
|
-
import I from "
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
|
1
|
+
import { jsxs as g, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { memo as x } from "react";
|
3
|
+
import { useTheme as L } from "styled-components";
|
4
|
+
import I from "../../../../assets/line-icons/icons/plus.js";
|
5
|
+
import v from "../../../ui/layout/flex-view.js";
|
6
|
+
import { EDeviceType as T } from "../../../ui/theme/constants.js";
|
7
|
+
import U from "./user-item/user-item.js";
|
8
|
+
import { UserListWrapper as j, AddAccountButton as w } from "./user-list-styled.js";
|
9
|
+
const A = ({
|
9
10
|
users: s,
|
10
|
-
onSelect:
|
11
|
+
onSelect: a,
|
11
12
|
showAddButton: i = !1,
|
12
|
-
onAddNew:
|
13
|
-
maxColumns:
|
14
|
-
cardSize:
|
15
|
-
avatarSize:
|
13
|
+
onAddNew: p,
|
14
|
+
maxColumns: l = 5,
|
15
|
+
cardSize: h = 200,
|
16
|
+
avatarSize: u = 80
|
16
17
|
}) => {
|
17
|
-
const
|
18
|
-
return /* @__PURE__ */
|
19
|
-
|
18
|
+
const o = s.length + (i ? 1 : 0), { device: d } = L(), m = d <= T.TABLET, r = m ? 2 : l, t = m ? 180 : h;
|
19
|
+
return /* @__PURE__ */ g(
|
20
|
+
j,
|
20
21
|
{
|
21
|
-
itemCount:
|
22
|
-
maxColumns:
|
22
|
+
itemCount: o,
|
23
|
+
maxColumns: r,
|
23
24
|
cardWidth: t,
|
24
25
|
children: [
|
25
|
-
s.map(({ id: n, username:
|
26
|
-
|
26
|
+
s.map(({ id: n, username: f, user_avatar: C, phone: $ }, c) => /* @__PURE__ */ e(
|
27
|
+
U,
|
27
28
|
{
|
28
29
|
id: n,
|
29
|
-
onSelect:
|
30
|
+
onSelect: a,
|
30
31
|
cardSize: t,
|
31
|
-
index:
|
32
|
-
maxColumns:
|
33
|
-
avatarSize:
|
32
|
+
index: c,
|
33
|
+
maxColumns: r,
|
34
|
+
avatarSize: u,
|
34
35
|
avatar: C,
|
35
|
-
phone:
|
36
|
-
username:
|
37
|
-
isLastItem:
|
36
|
+
phone: $,
|
37
|
+
username: f,
|
38
|
+
isLastItem: c === o - 1
|
38
39
|
},
|
39
40
|
n
|
40
41
|
)),
|
41
|
-
i && /* @__PURE__ */
|
42
|
-
|
42
|
+
i && /* @__PURE__ */ e(
|
43
|
+
w,
|
43
44
|
{
|
44
45
|
isLastItem: !0,
|
45
|
-
index:
|
46
|
-
maxColumns:
|
46
|
+
index: o,
|
47
|
+
maxColumns: r,
|
47
48
|
$gutterX: 5,
|
48
49
|
$gapX: 5,
|
49
50
|
$background: "BLACK_3",
|
@@ -51,14 +52,14 @@ const v = ({
|
|
51
52
|
$height: t,
|
52
53
|
$alignItems: "center",
|
53
54
|
$justifyContent: "center",
|
54
|
-
onClick:
|
55
|
-
children: /* @__PURE__ */
|
55
|
+
onClick: p,
|
56
|
+
children: /* @__PURE__ */ e(v, { $width: 40, $height: 40, children: /* @__PURE__ */ e(I, { color: "WHITE", width: 40, height: 40 }) })
|
56
57
|
}
|
57
58
|
)
|
58
59
|
]
|
59
60
|
}
|
60
61
|
);
|
61
|
-
}, _ =
|
62
|
+
}, _ = x(A);
|
62
63
|
export {
|
63
64
|
_ as default
|
64
65
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-list.js","sources":["../../../../../src/features/auth/comps/user-list/user-list.tsx"],"sourcesContent":["import type { IUserListProps } from './user-list-types';\n\nimport { type FC, memo } from 'react';\n\nimport PlusIcon from '../../../../assets/line-icons/icons/plus';\nimport
|
1
|
+
{"version":3,"file":"user-list.js","sources":["../../../../../src/features/auth/comps/user-list/user-list.tsx"],"sourcesContent":["import type { IUserListProps } from './user-list-types';\n\nimport { type FC, memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport PlusIcon from '../../../../assets/line-icons/icons/plus';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport UserItem from './user-item/user-item';\nimport * as Styled from './user-list-styled';\n\nconst UserList: FC<IUserListProps> = ({\n users,\n onSelect,\n showAddButton = false,\n onAddNew,\n maxColumns = 5,\n cardSize = 200,\n avatarSize = 80,\n}) => {\n const totalCards = users.length + (showAddButton ? 1 : 0);\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n\n const responsiveColumnNos = isCompact ? 2 : maxColumns;\n const responsiveCardSize = isCompact ? 180 : cardSize;\n\n return (\n <Styled.UserListWrapper\n itemCount={totalCards}\n maxColumns={responsiveColumnNos}\n cardWidth={responsiveCardSize}\n >\n {users.map(({ id, username, user_avatar: avatar, phone }, index) => (\n <UserItem\n key={id}\n id={id}\n onSelect={onSelect}\n cardSize={responsiveCardSize}\n index={index}\n maxColumns={responsiveColumnNos}\n avatarSize={avatarSize}\n avatar={avatar}\n phone={phone}\n username={username}\n isLastItem={index === totalCards - 1}\n />\n ))}\n\n {showAddButton && (\n <Styled.AddAccountButton\n isLastItem\n index={totalCards}\n maxColumns={responsiveColumnNos}\n $gutterX={5}\n $gapX={5}\n $background=\"BLACK_3\"\n $width={responsiveCardSize}\n $height={responsiveCardSize}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n onClick={onAddNew}\n >\n <FlexView $width={40} $height={40}>\n <PlusIcon color=\"WHITE\" width={40} height={40} />\n </FlexView>\n </Styled.AddAccountButton>\n )}\n </Styled.UserListWrapper>\n );\n};\n\nexport default memo(UserList);\n"],"names":["UserList","users","onSelect","showAddButton","onAddNew","maxColumns","cardSize","avatarSize","totalCards","device","useTheme","isCompact","EDeviceType","responsiveColumnNos","responsiveCardSize","jsxs","Styled.UserListWrapper","id","username","avatar","phone","index","jsx","UserItem","Styled.AddAccountButton","FlexView","PlusIcon","UserList$1","memo"],"mappings":";;;;;;;;AAWA,MAAMA,IAA+B,CAAC;AAAA,EACpC,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,UAAAC,IAAW;AAAA,EACX,YAAAC,IAAa;AACf,MAAM;AACJ,QAAMC,IAAaP,EAAM,UAAUE,IAAgB,IAAI,IACjD,EAAE,QAAAM,MAAWC,KACbC,IAAYF,KAAUG,EAAY,QAElCC,IAAsBF,IAAY,IAAIN,GACtCS,IAAqBH,IAAY,MAAML;AAG3C,SAAA,gBAAAS;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAWR;AAAA,MACX,YAAYK;AAAA,MACZ,WAAWC;AAAA,MAEV,UAAA;AAAA,QAAMb,EAAA,IAAI,CAAC,EAAE,IAAAgB,GAAI,UAAAC,GAAU,aAAaC,GAAQ,OAAAC,KAASC,MACxD,gBAAAC;AAAA,UAACC;AAAA,UAAA;AAAA,YAEC,IAAAN;AAAA,YACA,UAAAf;AAAA,YACA,UAAUY;AAAA,YACV,OAAAO;AAAA,YACA,YAAYR;AAAA,YACZ,YAAAN;AAAA,YACA,QAAAY;AAAA,YACA,OAAAC;AAAA,YACA,UAAAF;AAAA,YACA,YAAYG,MAAUb,IAAa;AAAA,UAAA;AAAA,UAV9BS;AAAA,QAAA,CAYR;AAAA,QAEAd,KACC,gBAAAmB;AAAA,UAACE;AAAAA,UAAA;AAAA,YACC,YAAU;AAAA,YACV,OAAOhB;AAAA,YACP,YAAYK;AAAA,YACZ,UAAU;AAAA,YACV,OAAO;AAAA,YACP,aAAY;AAAA,YACZ,QAAQC;AAAA,YACR,SAASA;AAAA,YACT,aAAY;AAAA,YACZ,iBAAgB;AAAA,YAChB,SAASV;AAAA,YAET,UAAC,gBAAAkB,EAAAG,GAAA,EAAS,QAAQ,IAAI,SAAS,IAC7B,UAAA,gBAAAH,EAACI,GAAS,EAAA,OAAM,SAAQ,OAAO,IAAI,QAAQ,GAAI,CAAA,GACjD;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,GAEeC,IAAAC,EAAK5B,CAAQ;"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { styled as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
|
5
|
-
const { mediaQueries: i } = p(), x = t.form`
|
1
|
+
import { styled as e } from "styled-components";
|
2
|
+
import o from "../../ui/buttons/button/button.js";
|
3
|
+
import i from "../../ui/layout/flex-view.js";
|
4
|
+
const n = e.form`
|
6
5
|
display: flex;
|
7
6
|
flex: 1;
|
8
7
|
margin-top: 0;
|
@@ -11,28 +10,28 @@ const { mediaQueries: i } = p(), x = t.form`
|
|
11
10
|
max-width: 336px;
|
12
11
|
width: 100%;
|
13
12
|
height: 308px;
|
14
|
-
${
|
13
|
+
${({ theme: { mediaQueries: t } }) => t.minWidthDesktop} {
|
15
14
|
margin-top: 8px;
|
16
15
|
}
|
17
|
-
`,
|
16
|
+
`, h = e(i)`
|
18
17
|
margin-top: 0;
|
19
18
|
max-width: 336px;
|
20
19
|
width: 100%;
|
21
|
-
${
|
20
|
+
${({ theme: { mediaQueries: t } }) => t.minWidthDesktop} {
|
22
21
|
margin-top: 8px;
|
23
22
|
}
|
24
|
-
`,
|
23
|
+
`, x = e(i)`
|
25
24
|
min-height: 300px;
|
26
|
-
${
|
25
|
+
${({ theme: { mediaQueries: t } }) => t.minWidthDesktop} {
|
27
26
|
height: 308px;
|
28
27
|
}
|
29
|
-
`,
|
28
|
+
`, a = e(o)`
|
30
29
|
width: 100%;
|
31
30
|
`;
|
32
31
|
export {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
a as ButtonWrapper,
|
33
|
+
x as Container,
|
34
|
+
n as FormWrapper,
|
35
|
+
h as OtpFormWrapper
|
37
36
|
};
|
38
37
|
//# sourceMappingURL=forgot-password-styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"forgot-password-styled.js","sources":["../../../../src/features/auth/forgot-password/forgot-password-styled.tsx"],"sourcesContent":["import { styled } from 'styled-components';\n\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\
|
1
|
+
{"version":3,"file":"forgot-password-styled.js","sources":["../../../../src/features/auth/forgot-password/forgot-password-styled.tsx"],"sourcesContent":["import { styled } from 'styled-components';\n\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\n\nexport const FormWrapper = styled.form`\n display: flex;\n flex: 1;\n margin-top: 0;\n flex-direction: column;\n justify-content: space-between;\n max-width: 336px;\n width: 100%;\n height: 308px;\n ${({ theme: { mediaQueries } }) => mediaQueries.minWidthDesktop} {\n margin-top: 8px;\n }\n`;\n\nexport const OtpFormWrapper = styled(FlexView)`\n margin-top: 0;\n max-width: 336px;\n width: 100%;\n ${({ theme: { mediaQueries } }) => mediaQueries.minWidthDesktop} {\n margin-top: 8px;\n }\n`;\n\nexport const Container = styled(FlexView)`\n min-height: 300px;\n ${({ theme: { mediaQueries } }) => mediaQueries.minWidthDesktop} {\n height: 308px;\n }\n`;\n\nexport const ButtonWrapper = styled(Button)`\n width: 100%;\n`;\n"],"names":["FormWrapper","styled","mediaQueries","OtpFormWrapper","FlexView","Container","ButtonWrapper","Button"],"mappings":";;;AAKO,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAS9B,CAAC,EAAE,OAAO,EAAE,cAAAC,IAAe,MAAMA,EAAa,eAAe;AAAA;AAAA;AAAA,GAKpDC,IAAiBF,EAAOG,CAAQ;AAAA;AAAA;AAAA;AAAA,IAIzC,CAAC,EAAE,OAAO,EAAE,cAAAF,IAAe,MAAMA,EAAa,eAAe;AAAA;AAAA;AAAA,GAKpDG,IAAYJ,EAAOG,CAAQ;AAAA;AAAA,IAEpC,CAAC,EAAE,OAAO,EAAE,cAAAF,IAAe,MAAMA,EAAa,eAAe;AAAA;AAAA;AAAA,GAKpDI,IAAgBL,EAAOM,CAAM;AAAA;AAAA;"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import e from "styled-components";
|
2
2
|
import i from "../../../ui/layout/flex-view.js";
|
3
|
-
|
4
|
-
const { mediaQueries: t } = o(), n = e.form`
|
3
|
+
const m = e.form`
|
5
4
|
display: flex;
|
6
5
|
flex-direction: column;
|
7
6
|
justify-content: space-between;
|
@@ -9,17 +8,17 @@ const { mediaQueries: t } = o(), n = e.form`
|
|
9
8
|
flex: 1;
|
10
9
|
width: 100%;
|
11
10
|
max-width: 336px;
|
12
|
-
${t.minWidthDesktop} {
|
11
|
+
${({ theme: { mediaQueries: t } }) => t.minWidthDesktop} {
|
13
12
|
margin-top: 8px;
|
14
13
|
}
|
15
|
-
`,
|
14
|
+
`, n = e(i)`
|
16
15
|
height: 300px;
|
17
|
-
${t.minWidthDesktop} {
|
16
|
+
${({ theme: { mediaQueries: t } }) => t.minWidthDesktop} {
|
18
17
|
height: 308px;
|
19
18
|
}
|
20
19
|
`;
|
21
20
|
export {
|
22
|
-
|
23
|
-
|
21
|
+
n as Container,
|
22
|
+
m as FormWrapper
|
24
23
|
};
|
25
24
|
//# sourceMappingURL=identifier-otp-form-styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"identifier-otp-form-styled.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\
|
1
|
+
{"version":3,"file":"identifier-otp-form-styled.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst FormWrapper = styled.form`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-top: 0;\n flex: 1;\n width: 100%;\n max-width: 336px;\n ${({ theme: { mediaQueries } }) => mediaQueries.minWidthDesktop} {\n margin-top: 8px;\n }\n`;\n\nconst Container = styled(FlexView)`\n height: 300px;\n ${({ theme: { mediaQueries } }) => mediaQueries.minWidthDesktop} {\n height: 308px;\n }\n`;\n\nexport { FormWrapper, Container };\n"],"names":["FormWrapper","styled","mediaQueries","Container","FlexView"],"mappings":";;AAIA,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQvB,CAAC,EAAE,OAAO,EAAE,cAAAC,IAAe,MAAMA,EAAa,eAAe;AAAA;AAAA;AAAA,GAK3DC,IAAYF,EAAOG,CAAQ;AAAA;AAAA,IAE7B,CAAC,EAAE,OAAO,EAAE,cAAAF,IAAe,MAAMA,EAAa,eAAe;AAAA;AAAA;AAAA;"}
|
@@ -1,26 +1,25 @@
|
|
1
|
-
import
|
1
|
+
import i from "styled-components";
|
2
2
|
import o from "../../ui/buttons/button/button.js";
|
3
3
|
import m from "../../ui/layout/flex-view.js";
|
4
|
-
|
5
|
-
const { mediaQueries: i } = e(), x = t.form`
|
4
|
+
const n = i.form`
|
6
5
|
max-width: 336px;
|
7
6
|
width: 100%;
|
8
7
|
margin-top: 0;
|
9
|
-
${
|
8
|
+
${({ theme: { mediaQueries: t } }) => t.minWidthDesktop} {
|
10
9
|
margin-top: 8px;
|
11
10
|
}
|
12
11
|
`;
|
13
|
-
|
12
|
+
i(o)`
|
14
13
|
max-width: 160px;
|
15
14
|
`;
|
16
|
-
const
|
15
|
+
const h = i(m)`
|
17
16
|
min-height: 300px;
|
18
|
-
${
|
17
|
+
${({ theme: { mediaQueries: t } }) => t.minWidthDesktop} {
|
19
18
|
height: 308px;
|
20
19
|
}
|
21
20
|
`;
|
22
21
|
export {
|
23
|
-
|
24
|
-
|
22
|
+
h as Container,
|
23
|
+
n as FormContainer
|
25
24
|
};
|
26
25
|
//# sourceMappingURL=login-styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"login-styled.js","sources":["../../../../src/features/auth/login/login-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\
|
1
|
+
{"version":3,"file":"login-styled.js","sources":["../../../../src/features/auth/login/login-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\n\nexport const FormContainer = styled.form`\n max-width: 336px;\n width: 100%;\n margin-top: 0;\n ${({ theme: { mediaQueries } }) => mediaQueries.minWidthDesktop} {\n margin-top: 8px;\n }\n`;\n\nconst ButtonWrapper = styled(Button)`\n max-width: 160px;\n`;\n\nconst Container = styled(FlexView)`\n min-height: 300px;\n ${({ theme: { mediaQueries } }) => mediaQueries.minWidthDesktop} {\n height: 308px;\n }\n`;\n\nexport { ButtonWrapper, Container };\n"],"names":["FormContainer","styled","mediaQueries","Button","Container","FlexView"],"mappings":";;;AAKO,MAAMA,IAAgBC,EAAO;AAAA;AAAA;AAAA;AAAA,IAIhC,CAAC,EAAE,OAAO,EAAE,cAAAC,IAAe,MAAMA,EAAa,eAAe;AAAA;AAAA;AAAA;AAK3CD,EAAOE,CAAM;AAAA;AAAA;AAI7B,MAAAC,IAAYH,EAAOI,CAAQ;AAAA;AAAA,IAE7B,CAAC,EAAE,OAAO,EAAE,cAAAH,IAAe,MAAMA,EAAa,eAAe;AAAA;AAAA;AAAA;"}
|
@@ -9,14 +9,14 @@ import E from "../../ui/arrow-tooltip/arrow-tooltip.js";
|
|
9
9
|
import I from "../../ui/text/text.js";
|
10
10
|
import { InProgressIconWrapper as d } from "../comps/node-card/node-card-styled.js";
|
11
11
|
import A from "../comps/tag/tag.js";
|
12
|
-
const
|
12
|
+
const u = 60 * 60 * 24, _ = ["NOT_STARTED"], C = (r, c) => {
|
13
13
|
if (!r || c)
|
14
14
|
return { isOverdue: !1, daysText: "", differenceInDays: 0 };
|
15
|
-
const i = Math.floor(Date.now() / 1e3), s = r - i, o = Math.ceil(s /
|
15
|
+
const i = Math.floor(Date.now() / 1e3), s = r - i, o = Math.ceil(s / u), a = o < 0, n = o > 0 ? `${Math.abs(o)}D` : "";
|
16
16
|
return { isOverdue: a, daysText: n, differenceInDays: o };
|
17
|
-
},
|
17
|
+
}, x = (r, c, i, s, o) => {
|
18
18
|
const { isOverdue: a, daysText: n, differenceInDays: T } = C(s, o);
|
19
|
-
if (!o && a &&
|
19
|
+
if (!o && a && _.includes(r))
|
20
20
|
return {
|
21
21
|
icon: /* @__PURE__ */ e(
|
22
22
|
E,
|
@@ -64,8 +64,8 @@ const _ = 60 * 60 * 24, u = ["NOT_STARTED", "IN_PROGRESS"], C = (r, c) => {
|
|
64
64
|
case "LOCKED":
|
65
65
|
return {
|
66
66
|
icon: /* @__PURE__ */ e(m, { width: 32, height: 32 }),
|
67
|
-
top: -
|
68
|
-
right: -
|
67
|
+
top: -16,
|
68
|
+
right: -16
|
69
69
|
};
|
70
70
|
case "IN_PROGRESS":
|
71
71
|
return {
|
@@ -117,7 +117,7 @@ const _ = 60 * 60 * 24, u = ["NOT_STARTED", "IN_PROGRESS"], C = (r, c) => {
|
|
117
117
|
icon: void 0
|
118
118
|
};
|
119
119
|
}
|
120
|
-
},
|
120
|
+
}, y = (r) => {
|
121
121
|
switch (r) {
|
122
122
|
case "LEVEL2":
|
123
123
|
case "LEVEL3":
|
@@ -186,7 +186,7 @@ const _ = 60 * 60 * 24, u = ["NOT_STARTED", "IN_PROGRESS"], C = (r, c) => {
|
|
186
186
|
}
|
187
187
|
};
|
188
188
|
export {
|
189
|
-
|
190
|
-
|
189
|
+
y as getNodeCardBasedIcon,
|
190
|
+
x as getNodeStateBasedTagInfo
|
191
191
|
};
|
192
192
|
//# sourceMappingURL=node-card-utils.js.map
|