@cuemath/leap 3.3.12-j2 → 3.3.12-pawar.0

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.
Files changed (74) hide show
  1. package/dist/features/auth/comps/pill-button/pill-button.js +19 -19
  2. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  3. package/dist/features/auth/pla-signup/pla-analytics-events.js +4 -5
  4. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  5. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +42 -45
  6. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
  7. package/dist/features/parent-dashboard/parent-dashboard-types.js +2 -3
  8. package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
  9. package/dist/features/parent-dashboard/parent-dashboard-view.js +127 -139
  10. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
  11. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +7 -8
  12. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -1
  13. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +26 -27
  14. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -1
  15. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +13 -15
  16. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -1
  17. package/dist/features/trial-session/comps/session-report/report-information/report-information.js +1 -1
  18. package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -1
  19. package/dist/features/trial-session/comps/worksheet/worksheet.js +22 -22
  20. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  21. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  22. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +18 -17
  23. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
  24. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  25. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +31 -30
  26. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
  27. package/dist/index.d.ts +18 -54
  28. package/dist/index.js +218 -232
  29. package/dist/index.js.map +1 -1
  30. package/dist/node_modules/query-string/base.js +1 -1
  31. package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +1 -0
  32. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  33. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  34. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  35. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  36. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  37. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  38. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
  39. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  40. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  41. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  42. package/package.json +2 -3
  43. package/dist/features/parent-dashboard/api/get-student-profile-summary.js +0 -9
  44. package/dist/features/parent-dashboard/api/get-student-profile-summary.js.map +0 -1
  45. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js +0 -9
  46. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js.map +0 -1
  47. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +0 -42
  48. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +0 -1
  49. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js +0 -20
  50. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js.map +0 -1
  51. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js +0 -40
  52. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js.map +0 -1
  53. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js +0 -44
  54. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js.map +0 -1
  55. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js +0 -32
  56. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js.map +0 -1
  57. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +0 -13
  58. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +0 -1
  59. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +0 -44
  60. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +0 -1
  61. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +0 -14
  62. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +0 -1
  63. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +0 -28
  64. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +0 -1
  65. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js +0 -43
  66. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js.map +0 -1
  67. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +0 -59
  68. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +0 -1
  69. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js +0 -86
  70. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js.map +0 -1
  71. package/dist/node_modules/decode-uri-component/index.js.map +0 -1
  72. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  73. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  74. /package/dist/node_modules/{decode-uri-component → query-string/node_modules/decode-uri-component}/index.js +0 -0
@@ -1,43 +0,0 @@
1
- const N = {
2
- CONFUSING_EXPLANATIONS: "CONFUSING_EXPLANATIONS",
3
- WRONG_PACE: "WRONG_PACE",
4
- NOT_ENGAGING: "NOT_ENGAGING",
5
- PERSONALITY_MISMATCH: "PERSONALITY_MISMATCH",
6
- IMPATIENT: "IMPATIENT",
7
- UNCLEAR_COMMUNICATION: "UNCLEAR_COMMUNICATION",
8
- OTHER: "OTHER"
9
- }, A = [
10
- {
11
- id: N.CONFUSING_EXPLANATIONS,
12
- label: "Explanations were confusing"
13
- },
14
- {
15
- id: N.WRONG_PACE,
16
- label: "Moved too fast or slow"
17
- },
18
- {
19
- id: N.NOT_ENGAGING,
20
- label: "Couldn’t keep my child engaged"
21
- },
22
- {
23
- id: N.PERSONALITY_MISMATCH,
24
- label: "Personality didn't click with my child"
25
- },
26
- {
27
- id: N.IMPATIENT,
28
- label: "Wasn’t patient enough"
29
- },
30
- {
31
- id: N.UNCLEAR_COMMUNICATION,
32
- label: "Communication wasn't clear enough"
33
- },
34
- {
35
- id: N.OTHER,
36
- label: "Something else"
37
- }
38
- ];
39
- export {
40
- N as TUTOR_CHANGE_REASON_IDS,
41
- A as changeTutorReasons
42
- };
43
- //# sourceMappingURL=tutor-change-constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tutor-change-constants.js","sources":["../../../../../src/features/parent-dashboard/modals/tutor-change/tutor-change-constants.ts"],"sourcesContent":["export const TUTOR_CHANGE_REASON_IDS = {\n CONFUSING_EXPLANATIONS: 'CONFUSING_EXPLANATIONS',\n WRONG_PACE: 'WRONG_PACE',\n NOT_ENGAGING: 'NOT_ENGAGING',\n PERSONALITY_MISMATCH: 'PERSONALITY_MISMATCH',\n IMPATIENT: 'IMPATIENT',\n UNCLEAR_COMMUNICATION: 'UNCLEAR_COMMUNICATION',\n OTHER: 'OTHER',\n} as const;\n\nexport const changeTutorReasons = [\n {\n id: TUTOR_CHANGE_REASON_IDS.CONFUSING_EXPLANATIONS,\n label: 'Explanations were confusing',\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.WRONG_PACE,\n label: 'Moved too fast or slow',\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.NOT_ENGAGING,\n label: 'Couldn’t keep my child engaged',\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.PERSONALITY_MISMATCH,\n label: `Personality didn't click with my child`,\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.IMPATIENT,\n label: `Wasn’t patient enough`,\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.UNCLEAR_COMMUNICATION,\n label: `Communication wasn't clear enough`,\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.OTHER,\n label: `Something else`,\n },\n];\n"],"names":["TUTOR_CHANGE_REASON_IDS","changeTutorReasons"],"mappings":"AAAO,MAAMA,IAA0B;AAAA,EACrC,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,WAAW;AAAA,EACX,uBAAuB;AAAA,EACvB,OAAO;AACT,GAEaC,IAAqB;AAAA,EAChC;AAAA,IACE,IAAID,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AACF;"}
@@ -1,59 +0,0 @@
1
- import o from "styled-components";
2
- import t from "../../../ui/layout/flex-view.js";
3
- const s = o(t)`
4
- max-width: 560px;
5
- border: ${({ theme: e }) => `1px solid ${e.colors.BLACK_5}`};
6
- `, x = o(t)`
7
- overflow-y: auto;
8
- max-height: 468px;
9
- ${({ theme: e }) => e.mediaQueries.minWidthTablet} {
10
- max-height: unset;
11
- overflow-y: hidden;
12
- })}
13
- `, h = o(t)`
14
- padding-top: 0;
15
- ${({ theme: e }) => e.mediaQueries.minWidthTablet} {
16
- max-height: 300px;
17
- overflow-y: auto;
18
- })}
19
- `, m = o(t)`
20
- padding-bottom: 24px;
21
- ${({ theme: e }) => e.mediaQueries.minWidthTablet} {
22
- border-top: ${({ theme: e }) => `1px solid ${e.colors.BLACK_5}`};
23
- padding-bottom: 40px;
24
- })}
25
- `, c = o.textarea(({ theme: e }) => {
26
- const {
27
- colors: { WHITE: i, WHITE_T_38: r, BLACK_2: n, BLACK_5: a },
28
- layout: { gutter: p }
29
- } = e;
30
- return `border: 1px solid ${a};
31
- width: 100%;
32
- min-height: ${p * 5}px;
33
- padding: 16px;
34
- background-color: ${n};
35
- white-space: pre-line;
36
- font-family: 'Untitled Sans Regular';
37
- font-weight: 400;
38
- font-size: 14px;
39
- line-height: 24px;
40
- color: ${i};
41
- resize: none;
42
- outline: none;
43
- &::placeholder {
44
- color: ${r};
45
- }
46
-
47
- &:focus {
48
- outline: none;
49
- }
50
- `;
51
- });
52
- export {
53
- s as Container,
54
- h as ContentWrapper,
55
- m as FooterWrapper,
56
- x as OuterWrapper,
57
- c as StyledTextArea
58
- };
59
- //# sourceMappingURL=tutor-change-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tutor-change-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/tutor-change/tutor-change-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n max-width: 560px;\n border: ${({ theme }) => `1px solid ${theme.colors.BLACK_5}`};\n`;\n\nexport const OuterWrapper = styled(FlexView)`\n overflow-y: auto;\n max-height: 468px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-height: unset;\n overflow-y: hidden;\n })}\n`;\n\nexport const ContentWrapper = styled(FlexView)`\n padding-top: 0;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-height: 300px;\n overflow-y: auto;\n })}\n`;\n\nexport const FooterWrapper = styled(FlexView)`\n padding-bottom: 24px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n border-top: ${({ theme }) => `1px solid ${theme.colors.BLACK_5}`};\n padding-bottom: 40px;\n })}\n`;\n\nexport const StyledTextArea = styled.textarea(({ theme }) => {\n const {\n colors: { WHITE, WHITE_T_38, BLACK_2, BLACK_5 },\n layout: { gutter },\n } = theme;\n\n return `border: 1px solid ${BLACK_5};\n width: 100%;\n min-height: ${gutter * 5}px;\n padding: 16px;\n background-color: ${BLACK_2};\n white-space: pre-line;\n font-family: 'Untitled Sans Regular';\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n color: ${WHITE};\n resize: none;\n outline: none;\n &::placeholder {\n color: ${WHITE_T_38};\n }\n\n &:focus {\n outline: none;\n }\n`;\n});\n"],"names":["Container","styled","FlexView","theme","OuterWrapper","ContentWrapper","FooterWrapper","StyledTextArea","WHITE","WHITE_T_38","BLACK_2","BLACK_5","gutter"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,YAE5B,CAAC,EAAE,OAAAC,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA,GAGjDC,IAAeH,EAAOC,CAAQ;AAAA;AAAA;AAAA,IAGvC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA,GAMvCE,IAAiBJ,EAAOC,CAAQ;AAAA;AAAA,IAEzC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA,GAMvCG,IAAgBL,EAAOC,CAAQ;AAAA;AAAA,IAExC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA,kBAClC,CAAC,EAAE,OAAAA,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA;AAAA;AAAA,GAKvDI,IAAiBN,EAAO,SAAS,CAAC,EAAE,OAAAE,QAAY;AACrD,QAAA;AAAA,IACJ,QAAQ,EAAE,OAAAK,GAAO,YAAAC,GAAY,SAAAC,GAAS,SAAAC,EAAQ;AAAA,IAC9C,QAAQ,EAAE,QAAAC,EAAO;AAAA,EACf,IAAAT;AAEJ,SAAO,qBAAqBQ,CAAO;AAAA;AAAA,gBAErBC,IAAS,CAAC;AAAA;AAAA,sBAEJF,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMlBF,CAAK;AAAA;AAAA;AAAA;AAAA,aAIHC,CAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvB,CAAC;"}
@@ -1,86 +0,0 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { useState as p, useRef as R, useCallback as u, useEffect as w } from "react";
3
- import { useTheme as A } from "styled-components";
4
- import E from "../../../auth/comps/pill-button/pill-button.js";
5
- import h from "../../../ui/buttons/text-button/text-button.js";
6
- import O from "../../../ui/layout/flex-view.js";
7
- import I from "../../../ui/modals/use-modal-actions.js";
8
- import X from "../../../ui/modals/use-modal-params.js";
9
- import S from "../../../ui/text/text.js";
10
- import { EDeviceType as W } from "../../../ui/theme/constants.js";
11
- import { changeTutorReasons as k, TUTOR_CHANGE_REASON_IDS as M } from "./tutor-change-constants.js";
12
- import { Container as v, OuterWrapper as B, ContentWrapper as H, StyledTextArea as _, FooterWrapper as D } from "./tutor-change-styled.js";
13
- const y = () => {
14
- const { device: f } = A(), [n, $] = p(""), [l, C] = p(""), o = f <= W.MOBILE, { closeModal: c } = I(), a = R(null), { onContinue: m, demoId: d } = X(), x = u((e) => $(e), []), T = u((e) => {
15
- C(e.target.value);
16
- }, []), t = n === M.OTHER, b = !n || t && !l.trim(), g = u(() => {
17
- c(), m(d, n, t ? l : "");
18
- }, [c, m, d, n, t, l]);
19
- return w(() => {
20
- var e, s;
21
- t && a.current && ((e = a.current) == null || e.scrollIntoView({ behavior: "smooth" }), (s = a.current) == null || s.focus());
22
- }, [t]), /* @__PURE__ */ i(v, { $background: "BLACK_2", $width: "100%", $borderColor: "BLACK_5", children: [
23
- /* @__PURE__ */ i(B, { $flex: 1, children: [
24
- /* @__PURE__ */ r(O, { $gutterX: o ? 1 : 2.5, $gapX: o ? 1.5 : 2.5, children: /* @__PURE__ */ r(S, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "What didn't work well with the current tutor?" }) }),
25
- /* @__PURE__ */ i(
26
- H,
27
- {
28
- $flex: 1,
29
- $gutterX: o ? 1 : 2.5,
30
- $gapX: o ? 1 : 2.5,
31
- $width: "100%",
32
- $alignItems: "flex-start",
33
- $flexRowGapX: 1,
34
- children: [
35
- k.map(({ id: e, label: s }) => /* @__PURE__ */ r(
36
- E,
37
- {
38
- selected: n === e,
39
- label: s,
40
- id: e,
41
- onClick: x,
42
- isTransparent: !0
43
- },
44
- e
45
- )),
46
- t && /* @__PURE__ */ r(
47
- _,
48
- {
49
- placeholder: "Tell us more about your experience...",
50
- id: "text-area",
51
- ref: a,
52
- value: l,
53
- onChange: T
54
- }
55
- )
56
- ]
57
- }
58
- )
59
- ] }),
60
- /* @__PURE__ */ i(
61
- D,
62
- {
63
- $gutterX: o ? 1 : 2.5,
64
- $gapX: o ? 1 : 2.5,
65
- $flexDirection: "row",
66
- $flexColumnGapX: 1.5,
67
- children: [
68
- /* @__PURE__ */ r(
69
- h,
70
- {
71
- label: "Continue",
72
- onClick: g,
73
- color: "WHITE",
74
- disabled: b
75
- }
76
- ),
77
- /* @__PURE__ */ r(h, { label: "Close", onClick: c, color: "WHITE" })
78
- ]
79
- }
80
- )
81
- ] });
82
- }, Q = y;
83
- export {
84
- Q as default
85
- };
86
- //# sourceMappingURL=tutor-change.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tutor-change.js","sources":["../../../../../src/features/parent-dashboard/modals/tutor-change/tutor-change.tsx"],"sourcesContent":["import type { ITutorChangeModalParams } from './tutor-change-types';\n\nimport { useCallback, useEffect, useRef, useState, type ChangeEvent } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport PillButton from '../../../auth/comps/pill-button/pill-button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport useModalActions from '../../../ui/modals/use-modal-actions';\nimport useModalParams from '../../../ui/modals/use-modal-params';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { TUTOR_CHANGE_REASON_IDS, changeTutorReasons } from './tutor-change-constants';\nimport * as Styled from './tutor-change-styled';\n\nconst TutorChange = () => {\n const { device } = useTheme();\n const [reason, setReason] = useState('');\n const [otherReason, setOtherReason] = useState('');\n const isMobile = device <= EDeviceType.MOBILE;\n const { closeModal } = useModalActions();\n const textAreaRef = useRef<HTMLTextAreaElement | null>(null);\n const { onContinue, demoId } = useModalParams<ITutorChangeModalParams>();\n const handleSelectReason = useCallback((id: string) => setReason(id), []);\n\n const handleOtherReasonChange = useCallback((event: ChangeEvent<HTMLTextAreaElement>) => {\n setOtherReason(event.target.value);\n }, []);\n const isOtherReasonSelected = reason === TUTOR_CHANGE_REASON_IDS.OTHER;\n const isSubmitDisabled = !reason || (isOtherReasonSelected && !otherReason.trim());\n\n const handleContinue = useCallback(() => {\n closeModal();\n onContinue(demoId, reason, isOtherReasonSelected ? otherReason : '');\n }, [closeModal, onContinue, demoId, reason, isOtherReasonSelected, otherReason]);\n\n useEffect(() => {\n if (isOtherReasonSelected && textAreaRef.current) {\n textAreaRef.current?.scrollIntoView({ behavior: 'smooth' });\n textAreaRef.current?.focus();\n }\n }, [isOtherReasonSelected]);\n\n return (\n <Styled.Container $background=\"BLACK_2\" $width=\"100%\" $borderColor=\"BLACK_5\">\n <Styled.OuterWrapper $flex={1}>\n <FlexView $gutterX={isMobile ? 1 : 2.5} $gapX={isMobile ? 1.5 : 2.5}>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n What didn't work well with the current tutor?\n </Text>\n </FlexView>\n <Styled.ContentWrapper\n $flex={1}\n $gutterX={isMobile ? 1 : 2.5}\n $gapX={isMobile ? 1 : 2.5}\n $width={'100%'}\n $alignItems=\"flex-start\"\n $flexRowGapX={1}\n >\n {changeTutorReasons.map(({ id, label }) => (\n <PillButton\n selected={reason === id}\n key={id}\n label={label}\n id={id}\n onClick={handleSelectReason}\n isTransparent\n />\n ))}\n {isOtherReasonSelected && (\n <Styled.StyledTextArea\n placeholder=\"Tell us more about your experience...\"\n id=\"text-area\"\n ref={textAreaRef}\n value={otherReason}\n onChange={handleOtherReasonChange}\n />\n )}\n </Styled.ContentWrapper>\n </Styled.OuterWrapper>\n <Styled.FooterWrapper\n $gutterX={isMobile ? 1 : 2.5}\n $gapX={isMobile ? 1 : 2.5}\n $flexDirection=\"row\"\n $flexColumnGapX={1.5}\n >\n <TextButton\n label=\"Continue\"\n onClick={handleContinue}\n color=\"WHITE\"\n disabled={isSubmitDisabled}\n />\n <TextButton label=\"Close\" onClick={closeModal} color=\"WHITE\" />\n </Styled.FooterWrapper>\n </Styled.Container>\n );\n};\n\nexport default TutorChange;\n"],"names":["TutorChange","device","useTheme","reason","setReason","useState","otherReason","setOtherReason","isMobile","EDeviceType","closeModal","useModalActions","textAreaRef","useRef","onContinue","demoId","useModalParams","handleSelectReason","useCallback","id","handleOtherReasonChange","event","isOtherReasonSelected","TUTOR_CHANGE_REASON_IDS","isSubmitDisabled","handleContinue","useEffect","_a","_b","jsxs","Styled.Container","Styled.OuterWrapper","jsx","FlexView","Text","Styled.ContentWrapper","changeTutorReasons","label","PillButton","Styled.StyledTextArea","Styled.FooterWrapper","TextButton","TutorChange$1"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../node_modules/decode-uri-component/index.js"],"sourcesContent":["const token = '%[a-f0-9]{2}';\nconst singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi');\nconst multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn [decodeURIComponent(components.join(''))];\n\t} catch {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tconst left = components.slice(0, split);\n\tconst right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch {\n\t\tlet tokens = input.match(singleMatcher) || [];\n\n\t\tfor (let i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher) || [];\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tconst replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD',\n\t};\n\n\tlet match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch {\n\t\t\tconst result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tconst entries = Object.keys(replaceMap);\n\n\tfor (const key of entries) {\n\t\t// Replace all decoded components\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nexport default function decodeUriComponent(encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n}\n"],"names":["token","singleMatcher","multiMatcher","decodeComponents","components","split","left","right","decode","input","tokens","i","customDecodeURIComponent","replaceMap","match","result","entries","key","decodeUriComponent","encodedURI"],"mappings":"AAAA,MAAMA,IAAQ,gBACRC,IAAgB,IAAI,OAAO,MAAMD,IAAQ,cAAc,IAAI,GAC3DE,IAAe,IAAI,OAAO,MAAMF,IAAQ,MAAM,IAAI;AAExD,SAASG,EAAiBC,GAAYC,GAAO;AAC5C,MAAI;AAEH,WAAO,CAAC,mBAAmBD,EAAW,KAAK,EAAE,CAAC,CAAC;AAAA,EACjD,QAAS;AAAA,EAEP;AAED,MAAIA,EAAW,WAAW;AACzB,WAAOA;AAGR,EAAAC,IAAQA,KAAS;AAGjB,QAAMC,IAAOF,EAAW,MAAM,GAAGC,CAAK,GAChCE,IAAQH,EAAW,MAAMC,CAAK;AAEpC,SAAO,MAAM,UAAU,OAAO,KAAK,CAAA,GAAIF,EAAiBG,CAAI,GAAGH,EAAiBI,CAAK,CAAC;AACvF;AAEA,SAASC,EAAOC,GAAO;AACtB,MAAI;AACH,WAAO,mBAAmBA,CAAK;AAAA,EACjC,QAAS;AACP,QAAIC,IAASD,EAAM,MAAMR,CAAa,KAAK,CAAA;AAE3C,aAASU,IAAI,GAAGA,IAAID,EAAO,QAAQC;AAClC,MAAAF,IAAQN,EAAiBO,GAAQC,CAAC,EAAE,KAAK,EAAE,GAE3CD,IAASD,EAAM,MAAMR,CAAa,KAAK,CAAA;AAGxC,WAAOQ;AAAA,EACP;AACF;AAEA,SAASG,EAAyBH,GAAO;AAExC,QAAMI,IAAa;AAAA,IAClB,UAAU;AAAA,IACV,UAAU;AAAA,EACZ;AAEC,MAAIC,IAAQZ,EAAa,KAAKO,CAAK;AACnC,SAAOK,KAAO;AACb,QAAI;AAEH,MAAAD,EAAWC,EAAM,CAAC,CAAC,IAAI,mBAAmBA,EAAM,CAAC,CAAC;AAAA,IACrD,QAAU;AACP,YAAMC,IAASP,EAAOM,EAAM,CAAC,CAAC;AAE9B,MAAIC,MAAWD,EAAM,CAAC,MACrBD,EAAWC,EAAM,CAAC,CAAC,IAAIC;AAAA,IAExB;AAED,IAAAD,IAAQZ,EAAa,KAAKO,CAAK;AAAA,EAC/B;AAGD,EAAAI,EAAW,KAAK,IAAI;AAEpB,QAAMG,IAAU,OAAO,KAAKH,CAAU;AAEtC,aAAWI,KAAOD;AAEjB,IAAAP,IAAQA,EAAM,QAAQ,IAAI,OAAOQ,GAAK,GAAG,GAAGJ,EAAWI,CAAG,CAAC;AAG5D,SAAOR;AACR;AAEe,SAASS,EAAmBC,GAAY;AACtD,MAAI,OAAOA,KAAe;AACzB,UAAM,IAAI,UAAU,wDAAwD,OAAOA,IAAa,GAAG;AAGpG,MAAI;AAEH,WAAO,mBAAmBA,CAAU;AAAA,EACtC,QAAS;AAEP,WAAOP,EAAyBO,CAAU;AAAA,EAC1C;AACF;","x_google_ignoreList":[0]}
@@ -1,7 +0,0 @@
1
- const o = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), t = {
2
- randomUUID: o
3
- };
4
- export {
5
- t as default
6
- };
7
- //# sourceMappingURL=native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"native.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/native.js"],"sourcesContent":["const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};"],"names":["randomUUID","native"],"mappings":"AAAA,MAAMA,IAAa,OAAO,SAAW,OAAe,OAAO,cAAc,OAAO,WAAW,KAAK,MAAM,GACvFC,IAAA;AAAA,EACb,YAAAD;AACF;","x_google_ignoreList":[0]}