@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
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import b from "../decode-uri-component/index.js";
1
+ import b from "./node_modules/decode-uri-component/index.js";
2
2
  import l from "../split-on-first/index.js";
3
3
  import { includeKeys as N } from "../filter-obj/index.js";
4
4
  const j = (r) => r == null, A = (r) => encodeURIComponent(r).replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`), u = Symbol("encodeFragmentIdentifier");
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/query-string/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]}
@@ -0,0 +1,5 @@
1
+ const a = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
2
+ export {
3
+ a as default
4
+ };
5
+ //# sourceMappingURL=regex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regex.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/regex.js"],"sourcesContent":["export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;"],"names":["REGEX"],"mappings":"AAAA,MAAAA,IAAe;","x_google_ignoreList":[0]}
@@ -1,7 +1,6 @@
1
- let t;
2
- const e = new Uint8Array(16);
1
+ var t, e = new Uint8Array(16);
3
2
  function o() {
4
- if (!t && (t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !t))
3
+ if (!t && (t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !t))
5
4
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6
5
  return t(e);
7
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rng.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/rng.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}"],"names":["getRandomValues","rnds8","rng"],"mappings":"AAGA,IAAIA;AACJ,MAAMC,IAAQ,IAAI,WAAW,EAAE;AAChB,SAASC,IAAM;AAE5B,MAAI,CAACF,MAEHA,IAAkB,OAAO,SAAW,OAAe,OAAO,mBAAmB,OAAO,gBAAgB,KAAK,MAAM,GAE3G,CAACA;AACH,UAAM,IAAI,MAAM,0GAA0G;AAI9H,SAAOA,EAAgBC,CAAK;AAC9B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"rng.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/rng.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}"],"names":["getRandomValues","rnds8","rng"],"mappings":"AAGA,IAAIA,GACAC,IAAQ,IAAI,WAAW,EAAE;AACd,SAASC,IAAM;AAE5B,MAAI,CAACF,MAGHA,IAAkB,OAAO,SAAW,OAAe,OAAO,mBAAmB,OAAO,gBAAgB,KAAK,MAAM,KAAK,OAAO,WAAa,OAAe,OAAO,SAAS,mBAAoB,cAAc,SAAS,gBAAgB,KAAK,QAAQ,GAE3O,CAACA;AACH,UAAM,IAAI,MAAM,0GAA0G;AAI9H,SAAOA,EAAgBC,CAAK;AAC9B;","x_google_ignoreList":[0]}
@@ -1,10 +1,14 @@
1
- const i = [];
2
- for (let n = 0; n < 256; ++n)
3
- i.push((n + 256).toString(16).slice(1));
4
- function c(n, u = 0) {
5
- return (i[n[u + 0]] + i[n[u + 1]] + i[n[u + 2]] + i[n[u + 3]] + "-" + i[n[u + 4]] + i[n[u + 5]] + "-" + i[n[u + 6]] + i[n[u + 7]] + "-" + i[n[u + 8]] + i[n[u + 9]] + "-" + i[n[u + 10]] + i[n[u + 11]] + i[n[u + 12]] + i[n[u + 13]] + i[n[u + 14]] + i[n[u + 15]]).toLowerCase();
1
+ import s from "./validate.js";
2
+ var t = [];
3
+ for (var n = 0; n < 256; ++n)
4
+ t.push((n + 256).toString(16).substr(1));
5
+ function f(e) {
6
+ var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = (t[e[i + 0]] + t[e[i + 1]] + t[e[i + 2]] + t[e[i + 3]] + "-" + t[e[i + 4]] + t[e[i + 5]] + "-" + t[e[i + 6]] + t[e[i + 7]] + "-" + t[e[i + 8]] + t[e[i + 9]] + "-" + t[e[i + 10]] + t[e[i + 11]] + t[e[i + 12]] + t[e[i + 13]] + t[e[i + 14]] + t[e[i + 15]]).toLowerCase();
7
+ if (!s(o))
8
+ throw TypeError("Stringified UUID is invalid");
9
+ return o;
6
10
  }
7
11
  export {
8
- c as unsafeStringify
12
+ f as default
9
13
  };
10
14
  //# sourceMappingURL=stringify.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stringify.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/stringify.js"],"sourcesContent":["import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;"],"names":["byteToHex","i","unsafeStringify","arr","offset"],"mappings":"AAMA,MAAMA,IAAY,CAAA;AAElB,SAASC,IAAI,GAAGA,IAAI,KAAK,EAAEA;AACzB,EAAAD,EAAU,MAAMC,IAAI,KAAO,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC;AAG3C,SAASC,EAAgBC,GAAKC,IAAS,GAAG;AAG/C,UAAQJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAI,MAAMJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAI,MAAMJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAI,MAAMJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAI,MAAMJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,GAAG;AACvf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"stringify.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/stringify.js"],"sourcesContent":["import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;"],"names":["byteToHex","i","stringify","arr","offset","uuid","validate"],"mappings":";AAMA,IAAIA,IAAY,CAAA;AAEhB,SAASC,IAAI,GAAGA,IAAI,KAAK,EAAEA;AACzB,EAAAD,EAAU,MAAMC,IAAI,KAAO,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;AAGnD,SAASC,EAAUC,GAAK;AACtB,MAAIC,IAAS,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAY,UAAU,CAAC,IAAI,GAG7EC,KAAQL,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAI,MAAMJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAI,MAAMJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAI,MAAMJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAAI,MAAMJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAAIJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,GAAG;AAMzf,MAAI,CAACE,EAASD,CAAI;AAChB,UAAM,UAAU,6BAA6B;AAG/C,SAAOA;AACT;","x_google_ignoreList":[0]}
@@ -1,20 +1,17 @@
1
- import e from "./native.js";
2
- import i from "./rng.js";
3
- import { unsafeStringify as d } from "./stringify.js";
4
- function g(n, m, t) {
5
- if (e.randomUUID && !m && !n)
6
- return e.randomUUID();
1
+ import d from "./rng.js";
2
+ import f from "./stringify.js";
3
+ function v(n, m, x) {
7
4
  n = n || {};
8
- const r = n.random || (n.rng || i)();
5
+ var r = n.random || (n.rng || d)();
9
6
  if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, m) {
10
- t = t || 0;
11
- for (let a = 0; a < 16; ++a)
12
- m[t + a] = r[a];
7
+ x = x || 0;
8
+ for (var a = 0; a < 16; ++a)
9
+ m[x + a] = r[a];
13
10
  return m;
14
11
  }
15
- return d(r);
12
+ return f(r);
16
13
  }
17
14
  export {
18
- g as default
15
+ v as default
19
16
  };
20
17
  //# sourceMappingURL=v4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"v4.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;"],"names":["v4","options","buf","offset","native","rnds","rng","i","unsafeStringify"],"mappings":";;;AAIA,SAASA,EAAGC,GAASC,GAAKC,GAAQ;AAChC,MAAIC,EAAO,cAAc,CAACF,KAAO,CAACD;AAChC,WAAOG,EAAO;AAGhB,EAAAH,IAAUA,KAAW;AACrB,QAAMI,IAAOJ,EAAQ,WAAWA,EAAQ,OAAOK;AAK/C,MAHAD,EAAK,CAAC,IAAIA,EAAK,CAAC,IAAI,KAAO,IAC3BA,EAAK,CAAC,IAAIA,EAAK,CAAC,IAAI,KAAO,KAEvBH,GAAK;AACP,IAAAC,IAASA,KAAU;AAEnB,aAASI,IAAI,GAAGA,IAAI,IAAI,EAAEA;AACxB,MAAAL,EAAIC,IAASI,CAAC,IAAIF,EAAKE,CAAC;AAG1B,WAAOL;AAAA,EACR;AAED,SAAOM,EAAgBH,CAAI;AAC7B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"v4.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;"],"names":["v4","options","buf","offset","rnds","rng","i","stringify"],"mappings":";;AAGA,SAASA,EAAGC,GAASC,GAAKC,GAAQ;AAChC,EAAAF,IAAUA,KAAW;AACrB,MAAIG,IAAOH,EAAQ,WAAWA,EAAQ,OAAOI;AAK7C,MAHAD,EAAK,CAAC,IAAIA,EAAK,CAAC,IAAI,KAAO,IAC3BA,EAAK,CAAC,IAAIA,EAAK,CAAC,IAAI,KAAO,KAEvBF,GAAK;AACP,IAAAC,IAASA,KAAU;AAEnB,aAASG,IAAI,GAAGA,IAAI,IAAI,EAAEA;AACxB,MAAAJ,EAAIC,IAASG,CAAC,IAAIF,EAAKE,CAAC;AAG1B,WAAOJ;AAAA,EACR;AAED,SAAOK,EAAUH,CAAI;AACvB;","x_google_ignoreList":[0]}
@@ -0,0 +1,8 @@
1
+ import e from "./regex.js";
2
+ function o(t) {
3
+ return typeof t == "string" && e.test(t);
4
+ }
5
+ export {
6
+ o as default
7
+ };
8
+ //# sourceMappingURL=validate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/validate.js"],"sourcesContent":["import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;"],"names":["validate","uuid","REGEX"],"mappings":";AAEA,SAASA,EAASC,GAAM;AACtB,SAAO,OAAOA,KAAS,YAAYC,EAAM,KAAKD,CAAI;AACpD;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "3.3.12-j2",
3
+ "version": "3.3.12-pawar.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -96,6 +96,5 @@
96
96
  "vite-plugin-dts": "3.6.4",
97
97
  "vite-plugin-svgr": "3.2.0",
98
98
  "vite-tsconfig-paths": "^4.2.2"
99
- },
100
- "packageManager": "yarn@4.4.1"
99
+ }
101
100
  }
@@ -1,9 +0,0 @@
1
- import { createGetAPI as t } from "@cuemath/rest-api";
2
- import { BASE_URL_V1 as r } from "../../../constants/api.js";
3
- const { useGet: m } = t({
4
- getURL: (e) => `${r}/students/${e}/course-streams/MATH/goals-preferences/`
5
- });
6
- export {
7
- m as useStudentProfileSummaryGet
8
- };
9
- //# sourceMappingURL=get-student-profile-summary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-student-profile-summary.js","sources":["../../../../src/features/parent-dashboard/api/get-student-profile-summary.ts"],"sourcesContent":["import type { TCourseStream } from '../../milestone/create/milestone-create-types';\nimport type { IMilestoneData } from '../../milestone/milestone-list-container/milestone-list/milestone-list-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\n\nexport type TPreference = {\n preference_category: string;\n preference_code: string;\n preference_name: string;\n};\n\ninterface IStudentPreferences {\n course_stream: TCourseStream;\n preferences: TPreference[];\n student_id: string;\n updated_on_ts: number;\n}\n\nexport interface IStudentProfileSummaryResponse {\n student_preferences: IStudentPreferences;\n user_milestone_data: IMilestoneData[];\n}\n\nconst { useGet: useStudentProfileSummaryGet } = createGetAPI<IStudentProfileSummaryResponse>({\n getURL: studentId =>\n `${BASE_URL_V1}/students/${studentId}/course-streams/MATH/goals-preferences/`,\n});\n\nexport { useStudentProfileSummaryGet };\n"],"names":["useStudentProfileSummaryGet","createGetAPI","studentId","BASE_URL_V1"],"mappings":";;AAyBA,MAAM,EAAE,QAAQA,EAA4B,IAAIC,EAA6C;AAAA,EAC3F,QAAQ,CAAAC,MACN,GAAGC,CAAW,aAAaD,CAAS;AACxC,CAAC;"}
@@ -1,9 +0,0 @@
1
- import r from "styled-components";
2
- import e from "../../../ui/layout/flex-view.js";
3
- const p = r(e)`
4
- max-width: 293px;
5
- `;
6
- export {
7
- p as ImageWrapper
8
- };
9
- //# sourceMappingURL=pla-first-session-introduction-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pla-first-session-introduction-styled.js","sources":["../../../../../src/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst ImageWrapper = styled(FlexView)`\n max-width: 293px;\n`;\n\nexport { ImageWrapper };\n"],"names":["ImageWrapper","styled","FlexView"],"mappings":";;AAIM,MAAAA,IAAeC,EAAOC,CAAQ;AAAA;AAAA;"}
@@ -1,42 +0,0 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { memo as a } from "react";
3
- import { ILLUSTRATIONS as c } from "../../../../assets/illustrations/illustrations.js";
4
- import l from "../../../ui/buttons/button/button.js";
5
- import h from "../../../ui/image/image.js";
6
- import s from "../../../ui/layout/flex-view.js";
7
- import r from "../../../ui/separator/separator.js";
8
- import t from "../../../ui/text/text.js";
9
- import d from "../../hooks/use-parent-home-data.js";
10
- import { ImageWrapper as p } from "./pla-first-session-introduction-styled.js";
11
- const f = ({
12
- studentId: n,
13
- onRunSystemCheck: m
14
- }) => {
15
- const { formattedNextSessionStart: o } = d(n);
16
- return /* @__PURE__ */ i(s, { $justifyContent: "center", $alignItems: "center", $height: "100vh", $width: "100%", children: [
17
- o && /* @__PURE__ */ i(s, { children: [
18
- /* @__PURE__ */ e(t, { $renderAs: "ab1", $color: "BLACK_1", $align: "center", children: "We’re excited for your first session on" }),
19
- /* @__PURE__ */ e(r, { height: 4 }),
20
- /* @__PURE__ */ e(t, { $renderAs: "ab1-bold", $align: "center", children: o })
21
- ] }),
22
- /* @__PURE__ */ e(r, { heightX: 2.5 }),
23
- /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(h, { src: c.LEARNING_PUZZLE_BOT, width: "100%" }) }),
24
- /* @__PURE__ */ e(r, { heightX: 3.5 }),
25
- /* @__PURE__ */ e(t, { $renderAs: "ab2", $color: "BLACK_1", $align: "center", children: "Let's make sure your device is ready for your child's session." }),
26
- /* @__PURE__ */ e(r, { heightX: 1 }),
27
- /* @__PURE__ */ e(
28
- l,
29
- {
30
- renderAs: "primary",
31
- label: "Run a system check",
32
- shape: "square",
33
- size: "small",
34
- onClick: m
35
- }
36
- )
37
- ] });
38
- }, B = a(f);
39
- export {
40
- B as default
41
- };
42
- //# sourceMappingURL=pla-first-session-introduction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pla-first-session-introduction.js","sources":["../../../../../src/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.tsx"],"sourcesContent":["import type { IFirstSessionIntroductionProps } from './pla-first-session-introduction-types';\n\nimport { memo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Button from '../../../ui/buttons/button/button';\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 useParentHomeData from '../../hooks/use-parent-home-data';\nimport * as Styled from './pla-first-session-introduction-styled';\n\nconst PlaFirstSessionIntroduction: FC<IFirstSessionIntroductionProps> = ({\n studentId,\n onRunSystemCheck,\n}) => {\n const { formattedNextSessionStart } = useParentHomeData(studentId);\n\n return (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\" $height=\"100vh\" $width={'100%'}>\n {formattedNextSessionStart && (\n <FlexView>\n <Text $renderAs=\"ab1\" $color=\"BLACK_1\" $align=\"center\">\n We’re excited for your first session on\n </Text>\n <Separator height={4} />\n <Text $renderAs=\"ab1-bold\" $align=\"center\">\n {formattedNextSessionStart}\n </Text>\n </FlexView>\n )}\n <Separator heightX={2.5} />\n <Styled.ImageWrapper>\n <Image src={ILLUSTRATIONS.LEARNING_PUZZLE_BOT} width=\"100%\" />\n </Styled.ImageWrapper>\n <Separator heightX={3.5} />\n <Text $renderAs=\"ab2\" $color=\"BLACK_1\" $align=\"center\">\n Let's make sure your device is ready for your child's session.\n </Text>\n <Separator heightX={1} />\n <Button\n renderAs=\"primary\"\n label=\"Run a system check\"\n shape=\"square\"\n size=\"small\"\n onClick={onRunSystemCheck}\n />\n </FlexView>\n );\n};\n\nexport default memo(PlaFirstSessionIntroduction);\n"],"names":["PlaFirstSessionIntroduction","studentId","onRunSystemCheck","formattedNextSessionStart","useParentHomeData","jsxs","FlexView","jsx","Text","Separator","Styled.ImageWrapper","Image","ILLUSTRATIONS","Button","plaFirstSessionIntroduction","memo"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAkE,CAAC;AAAA,EACvE,WAAAC;AAAA,EACA,kBAAAC;AACF,MAAM;AACJ,QAAM,EAAE,2BAAAC,EAAA,IAA8BC,EAAkBH,CAAS;AAG/D,SAAA,gBAAAI,EAACC,KAAS,iBAAgB,UAAS,aAAY,UAAS,SAAQ,SAAQ,QAAQ,QAC7E,UAAA;AAAA,IAAAH,uBACEG,GACC,EAAA,UAAA;AAAA,MAAA,gBAAAC,EAACC,KAAK,WAAU,OAAM,QAAO,WAAU,QAAO,UAAS,UAEvD,0CAAA,CAAA;AAAA,MACA,gBAAAD,EAACE,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,wBACrBD,GAAK,EAAA,WAAU,YAAW,QAAO,UAC/B,UACHL,GAAA;AAAA,IAAA,GACF;AAAA,IAEF,gBAAAI,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IACzB,gBAAAF,EAACG,GAAA,EACC,UAAA,gBAAAH,EAACI,GAAM,EAAA,KAAKC,EAAc,qBAAqB,OAAM,OAAA,CAAO,EAC9D,CAAA;AAAA,IACA,gBAAAL,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IACzB,gBAAAF,EAACC,KAAK,WAAU,OAAM,QAAO,WAAU,QAAO,UAAS,UAEvD,iEAAA,CAAA;AAAA,IACA,gBAAAD,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IACvB,gBAAAF;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,OAAM;AAAA,QACN,OAAM;AAAA,QACN,MAAK;AAAA,QACL,SAASX;AAAA,MAAA;AAAA,IACX;AAAA,EACF,EAAA,CAAA;AAEJ,GAEeY,IAAAC,EAAKf,CAA2B;"}
@@ -1,20 +0,0 @@
1
- import { useCallback as f, useEffect as n, useMemo as u } from "react";
2
- import { useGetMileStoneConfig as i } from "../../milestone/create/api/milestone-config.js";
3
- import { useStudentProfileSummaryGet as s } from "../api/get-student-profile-summary.js";
4
- import { getLearningProfileSummary as l } from "../modals/student-profile-summary/student-profile-summary-helpers.js";
5
- const C = (e) => {
6
- const { get: o, data: m } = s(e), { get: r, data: a } = i(e, {
7
- demo_type: "TRIAL_V3"
8
- }), t = f(() => {
9
- o(e), r(e, {
10
- demo_type: "TRIAL_V3"
11
- });
12
- }, [o, e, r]);
13
- return n(() => {
14
- t();
15
- }, [t]), { summaryInfo: u(() => l(a, m), [a, m]), fetchSummaryData: t };
16
- };
17
- export {
18
- C as default
19
- };
20
- //# sourceMappingURL=use-student-profile-summary-data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-student-profile-summary-data.js","sources":["../../../../src/features/parent-dashboard/hooks/use-student-profile-summary-data.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo } from 'react';\n\nimport { useGetMileStoneConfig } from '../../milestone/create/api/milestone-config';\nimport { useStudentProfileSummaryGet } from '../api/get-student-profile-summary';\nimport { getLearningProfileSummary } from '../modals/student-profile-summary/student-profile-summary-helpers';\n\nconst useStudentProfileSummaryData = (studentId: string) => {\n const { get: getStudentProfileSummary, data: summaryData } =\n useStudentProfileSummaryGet(studentId);\n\n const { get: getMilestoneConfig, data: milestoneConfigData } = useGetMileStoneConfig(studentId, {\n demo_type: 'TRIAL_V3',\n });\n\n const fetchSummaryData = useCallback(() => {\n getStudentProfileSummary(studentId);\n getMilestoneConfig(studentId, {\n demo_type: 'TRIAL_V3',\n });\n }, [getStudentProfileSummary, studentId, getMilestoneConfig]);\n\n useEffect(() => {\n fetchSummaryData();\n }, [fetchSummaryData]);\n\n const summaryInfo = useMemo(() => {\n return getLearningProfileSummary(milestoneConfigData, summaryData);\n }, [milestoneConfigData, summaryData]);\n\n return { summaryInfo, fetchSummaryData };\n};\n\nexport default useStudentProfileSummaryData;\n"],"names":["useStudentProfileSummaryData","studentId","getStudentProfileSummary","summaryData","useStudentProfileSummaryGet","getMilestoneConfig","milestoneConfigData","useGetMileStoneConfig","fetchSummaryData","useCallback","useEffect","useMemo","getLearningProfileSummary"],"mappings":";;;;AAMM,MAAAA,IAA+B,CAACC,MAAsB;AAC1D,QAAM,EAAE,KAAKC,GAA0B,MAAMC,MAC3CC,EAA4BH,CAAS,GAEjC,EAAE,KAAKI,GAAoB,MAAMC,EAAoB,IAAIC,EAAsBN,GAAW;AAAA,IAC9F,WAAW;AAAA,EAAA,CACZ,GAEKO,IAAmBC,EAAY,MAAM;AACzC,IAAAP,EAAyBD,CAAS,GAClCI,EAAmBJ,GAAW;AAAA,MAC5B,WAAW;AAAA,IAAA,CACZ;AAAA,EACA,GAAA,CAACC,GAA0BD,GAAWI,CAAkB,CAAC;AAE5D,SAAAK,EAAU,MAAM;AACG,IAAAF;EAAA,GAChB,CAACA,CAAgB,CAAC,GAMd,EAAE,aAJWG,EAAQ,MACnBC,EAA0BN,GAAqBH,CAAW,GAChE,CAACG,GAAqBH,CAAW,CAAC,GAEf,kBAAAK;AACxB;"}
@@ -1,40 +0,0 @@
1
- import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
- import { memo as l, useCallback as c } from "react";
3
- import { useTheme as d } from "styled-components";
4
- import { ILLUSTRATIONS as a } from "../../../../assets/illustrations/illustrations.js";
5
- import h from "../../../ui/buttons/text-button/text-button.js";
6
- import p from "../../../ui/image/image.js";
7
- import u from "../../../ui/layout/flex-view.js";
8
- import $ from "../../../ui/modals/use-modal-actions.js";
9
- import r from "../../../ui/separator/separator.js";
10
- import t from "../../../ui/text/text.js";
11
- import { EDeviceType as b } from "../../../ui/theme/constants.js";
12
- const A = ({}) => {
13
- const { device: m } = d(), e = m <= b.MOBILE, { closeModal: i } = $(), n = c(() => {
14
- i();
15
- }, [i]);
16
- return /* @__PURE__ */ s(
17
- u,
18
- {
19
- $gutterX: e ? 1.5 : 2.5,
20
- $gapX: e ? 1.5 : 2.5,
21
- $width: e ? "100%" : 560,
22
- $background: "BLACK_2",
23
- $borderColor: "BLACK_5",
24
- children: [
25
- /* @__PURE__ */ o(p, { src: a.HANDSHAKE_GREEN, width: 64, height: 64 }),
26
- /* @__PURE__ */ o(r, { heightX: 1 }),
27
- /* @__PURE__ */ o(t, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "GREEN_4", children: "Have questions?" }),
28
- /* @__PURE__ */ o(r, { heightX: 1 }),
29
- /* @__PURE__ */ o(t, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE_1", children: "Please reach out to our admissions team at" }),
30
- /* @__PURE__ */ o("a", { href: "mailto:admissions@cuemath.com", children: /* @__PURE__ */ o(t, { $renderAs: "ub1-bold", $inline: !0, $color: "WHITE_1", $textDecoration: "underline", children: "admissions@cuemath.com" }) }),
31
- /* @__PURE__ */ o(r, { heightX: 2.5 }),
32
- /* @__PURE__ */ o(h, { label: "Got it", color: "WHITE", onClick: n, size: "medium" })
33
- ]
34
- }
35
- );
36
- }, _ = l(A);
37
- export {
38
- _ as default
39
- };
40
- //# sourceMappingURL=help-and-support.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help-and-support.js","sources":["../../../../../src/features/parent-dashboard/modals/help-and-support/help-and-support.tsx"],"sourcesContent":["import { memo, useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport useModalActions from '../../../ui/modals/use-modal-actions';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst PLAHelpAndSupport = ({}) => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const { closeModal } = useModalActions();\n\n const handleClick = useCallback(() => {\n closeModal();\n }, [closeModal]);\n\n return (\n <FlexView\n $gutterX={isMobile ? 1.5 : 2.5}\n $gapX={isMobile ? 1.5 : 2.5}\n $width={isMobile ? '100%' : 560}\n $background=\"BLACK_2\"\n $borderColor=\"BLACK_5\"\n >\n <Image src={ILLUSTRATIONS.HANDSHAKE_GREEN} width={64} height={64} />\n <Separator heightX={1} />\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"GREEN_4\">\n Have questions?\n </Text>\n <Separator heightX={1} />\n <Text $renderAs=\"ub1\" $renderOnMobileAs=\"ub2\" $color=\"WHITE_1\">\n Please reach out to our admissions team at\n </Text>\n <a href=\"mailto:admissions@cuemath.com\">\n <Text $renderAs=\"ub1-bold\" $inline $color=\"WHITE_1\" $textDecoration=\"underline\">\n admissions@cuemath.com\n </Text>\n </a>\n <Separator heightX={2.5} />\n <TextButton label=\"Got it\" color=\"WHITE\" onClick={handleClick} size=\"medium\" />\n </FlexView>\n );\n};\n\nexport default memo(PLAHelpAndSupport);\n"],"names":["PLAHelpAndSupport","device","useTheme","isMobile","EDeviceType","closeModal","useModalActions","handleClick","useCallback","jsxs","FlexView","jsx","Image","ILLUSTRATIONS","Separator","Text","TextButton","helpAndSupport","memo"],"mappings":";;;;;;;;;;;AAYA,MAAMA,IAAoB,CAAC,CAAA,MAAO;AAC1B,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAWF,KAAUG,EAAY,QACjC,EAAE,YAAAC,MAAeC,KAEjBC,IAAcC,EAAY,MAAM;AACzB,IAAAH;EAAA,GACV,CAACA,CAAU,CAAC;AAGb,SAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAUP,IAAW,MAAM;AAAA,MAC3B,OAAOA,IAAW,MAAM;AAAA,MACxB,QAAQA,IAAW,SAAS;AAAA,MAC5B,aAAY;AAAA,MACZ,cAAa;AAAA,MAEb,UAAA;AAAA,QAAA,gBAAAQ,EAACC,KAAM,KAAKC,EAAc,iBAAiB,OAAO,IAAI,QAAQ,IAAI;AAAA,QAClE,gBAAAF,EAACG,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACvB,gBAAAH,EAACI,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,WAAU,UAEzE,kBAAA,CAAA;AAAA,QACA,gBAAAJ,EAACG,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACvB,gBAAAH,EAACI,KAAK,WAAU,OAAM,mBAAkB,OAAM,QAAO,WAAU,UAE/D,6CAAA,CAAA;AAAA,QACC,gBAAAJ,EAAA,KAAA,EAAE,MAAK,iCACN,4BAACI,GAAK,EAAA,WAAU,YAAW,SAAO,IAAC,QAAO,WAAU,iBAAgB,aAAY,mCAEhF,CAAA,GACF;AAAA,QACA,gBAAAJ,EAACG,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,QACzB,gBAAAH,EAACK,KAAW,OAAM,UAAS,OAAM,SAAQ,SAAST,GAAa,MAAK,SAAS,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGnF,GAEeU,IAAAC,EAAKlB,CAAiB;"}
@@ -1,44 +0,0 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
- import { memo as m, useCallback as a } from "react";
3
- import { useTheme as u } from "styled-components";
4
- import $ from "../../../ui/buttons/text-button/text-button.js";
5
- import h from "../../../ui/layout/flex-view.js";
6
- import p from "../../../ui/modals/use-modal-actions.js";
7
- import b from "../../../ui/modals/use-modal-params.js";
8
- import l from "../../../ui/separator/separator.js";
9
- import e from "../../../ui/text/text.js";
10
- import { EDeviceType as f } from "../../../ui/theme/constants.js";
11
- const g = () => {
12
- const { device: d } = u(), r = d <= f.MOBILE, { closeModal: t } = p(), { username: c, onAcknowledge: n } = b(), s = a(() => {
13
- t(), n();
14
- }, [t, n]);
15
- return /* @__PURE__ */ i(
16
- h,
17
- {
18
- $gutterX: r ? 1.5 : 2.5,
19
- $gapX: r ? 1.5 : 2.5,
20
- $width: r ? "100%" : 570,
21
- $background: "BLACK_2",
22
- $borderColor: "BLACK_5",
23
- children: [
24
- /* @__PURE__ */ o(e, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE_1", children: "Student login created" }),
25
- /* @__PURE__ */ o(l, { heightX: 0.75 }),
26
- /* @__PURE__ */ i(e, { $renderAs: "ub1", $color: "WHITE_1", children: [
27
- "Your child can directly login to",
28
- " ",
29
- /* @__PURE__ */ o(e, { $renderAs: "ub1-bold", $color: "WHITE_1", $inline: !0, children: "leap.cuemath.com" }),
30
- " ",
31
- "using “",
32
- /* @__PURE__ */ o(e, { $renderAs: "ub1", $inline: !0, $color: "GREEN_4", children: `${c}` }),
33
- "” as both username and password."
34
- ] }),
35
- /* @__PURE__ */ o(l, { heightX: 2.5 }),
36
- /* @__PURE__ */ o($, { label: "Got it", color: "WHITE", onClick: s, size: "medium" })
37
- ]
38
- }
39
- );
40
- }, w = m(g);
41
- export {
42
- w as default
43
- };
44
- //# sourceMappingURL=student-login-info.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"student-login-info.js","sources":["../../../../../src/features/parent-dashboard/modals/student-login-info/student-login-info.tsx"],"sourcesContent":["import { memo, useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\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 Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst StudentLoginInfoModal = () => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const { closeModal } = useModalActions();\n const { username, onAcknowledge } = useModalParams<{\n username: string;\n onAcknowledge: () => void;\n }>();\n\n const handleClick = useCallback(() => {\n closeModal();\n onAcknowledge();\n }, [closeModal, onAcknowledge]);\n\n return (\n <FlexView\n $gutterX={isMobile ? 1.5 : 2.5}\n $gapX={isMobile ? 1.5 : 2.5}\n $width={isMobile ? '100%' : 570}\n $background=\"BLACK_2\"\n $borderColor=\"BLACK_5\"\n >\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE_1\">\n Student login created\n </Text>\n <Separator heightX={0.75} />\n <Text $renderAs=\"ub1\" $color=\"WHITE_1\">\n Your child can directly login to{' '}\n <Text $renderAs=\"ub1-bold\" $color=\"WHITE_1\" $inline>\n leap.cuemath.com\n </Text>{' '}\n using “<Text $renderAs=\"ub1\" $inline $color=\"GREEN_4\">{`${username}`}</Text>” as both\n username and password.\n </Text>\n <Separator heightX={2.5} />\n <TextButton label=\"Got it\" color=\"WHITE\" onClick={handleClick} size=\"medium\" />\n </FlexView>\n );\n};\n\nexport default memo(StudentLoginInfoModal);\n"],"names":["StudentLoginInfoModal","device","useTheme","isMobile","EDeviceType","closeModal","useModalActions","username","onAcknowledge","useModalParams","handleClick","useCallback","jsxs","FlexView","jsx","Text","Separator","TextButton","studentLoginInfo","memo"],"mappings":";;;;;;;;;;AAWA,MAAMA,IAAwB,MAAM;AAC5B,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAWF,KAAUG,EAAY,QACjC,EAAE,YAAAC,MAAeC,KACjB,EAAE,UAAAC,GAAU,eAAAC,EAAc,IAAIC,EAGjC,GAEGC,IAAcC,EAAY,MAAM;AACzB,IAAAN,KACGG;EAAA,GACb,CAACH,GAAYG,CAAa,CAAC;AAG5B,SAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAUV,IAAW,MAAM;AAAA,MAC3B,OAAOA,IAAW,MAAM;AAAA,MACxB,QAAQA,IAAW,SAAS;AAAA,MAC5B,aAAY;AAAA,MACZ,cAAa;AAAA,MAEb,UAAA;AAAA,QAAA,gBAAAW,EAACC,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,WAAU,UAEzE,wBAAA,CAAA;AAAA,QACA,gBAAAD,EAACE,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,QACzB,gBAAAJ,EAAAG,GAAA,EAAK,WAAU,OAAM,QAAO,WAAU,UAAA;AAAA,UAAA;AAAA,UACJ;AAAA,UACjC,gBAAAD,EAACC,KAAK,WAAU,YAAW,QAAO,WAAU,SAAO,IAAC,UAEpD,mBAAA,CAAA;AAAA,UAAQ;AAAA,UAAI;AAAA,UACL,gBAAAD,EAACC,GAAK,EAAA,WAAU,OAAM,SAAO,IAAC,QAAO,WAAW,UAAG,GAAAR,CAAQ,GAAG,CAAA;AAAA,UAAO;AAAA,QAAA,GAE9E;AAAA,QACA,gBAAAO,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,QACzB,gBAAAF,EAACG,KAAW,OAAM,UAAS,OAAM,SAAQ,SAASP,GAAa,MAAK,SAAS,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGnF,GAEeQ,IAAAC,EAAKnB,CAAqB;"}
@@ -1,32 +0,0 @@
1
- import { PREFERENCE_CATEGORY as t, COURSE_STREAMS as S } from "../../../milestone/constants.js";
2
- import { getPreferencesFromConfig as v } from "../../../milestone/create/milestone-create-helpers.js";
3
- import { GOAL_MAPPING as C } from "../../../trial-session/comps/student-profile/constant.js";
4
- const A = (f, c) => {
5
- var a, p, P;
6
- const o = {
7
- studentLevel: "",
8
- studentObjectives: [],
9
- learningPlan: [],
10
- levelPreference: ""
11
- };
12
- if (!f || !c) return o;
13
- const s = ((a = c.student_preferences) == null ? void 0 : a.preferences) ?? [], d = c.user_milestone_data ?? [];
14
- if (s.length === 0) return o;
15
- const l = (e) => s.find((n) => n.preference_category === e), m = (e) => s.filter((n) => n.preference_category === e), i = l(t.POSITION), u = ((p = l(t.LEVEL)) == null ? void 0 : p.preference_name) ?? "", E = m(t.OBJECTIVES), r = i ? (P = v(f, {
16
- grade: "",
17
- courseStream: S.MATH,
18
- preferenceCategory: t.POSITION
19
- })) == null ? void 0 : P.find(({ id: e }) => e === i.preference_code) : null, _ = r != null && r.label && (r != null && r.description) ? `${r.label}: ${r.description}` : "", g = E.map((e) => e.preference_name), O = d.map(
20
- ({ goal_category: e, milestone_name: n }) => `${C[e]}: ${n}`
21
- );
22
- return {
23
- studentLevel: _,
24
- studentObjectives: g,
25
- learningPlan: O,
26
- levelPreference: u
27
- };
28
- };
29
- export {
30
- A as getLearningProfileSummary
31
- };
32
- //# sourceMappingURL=student-profile-summary-helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"student-profile-summary-helpers.js","sources":["../../../../../src/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.ts"],"sourcesContent":["import type {\n IMilestoneConfig,\n TGoalCategory,\n TPreferenceCategory,\n} from '../../../milestone/create/milestone-create-types';\nimport type { IStudentProfileSummaryResponse } from '../../api/get-student-profile-summary';\nimport type { IStudentProfileSummary } from '../../parent-dashboard-types';\n\nimport { COURSE_STREAMS, PREFERENCE_CATEGORY } from '../../../milestone/constants';\nimport { getPreferencesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport { GOAL_MAPPING } from '../../../trial-session/comps/student-profile/constant';\n\nexport const getLearningProfileSummary = (\n configData?: IMilestoneConfig,\n summaryData?: IStudentProfileSummaryResponse,\n): IStudentProfileSummary => {\n const defaultSummary: IStudentProfileSummary = {\n studentLevel: '',\n studentObjectives: [],\n learningPlan: [],\n levelPreference: '',\n };\n\n if (!configData || !summaryData) return defaultSummary;\n\n const preferences = summaryData.student_preferences?.preferences ?? [];\n const userMilestoneData = summaryData.user_milestone_data ?? [];\n\n if (preferences.length === 0) return defaultSummary;\n\n const findPref = (category: TPreferenceCategory) =>\n preferences.find(p => p.preference_category === category);\n\n const filterPrefs = (category: TPreferenceCategory) =>\n preferences.filter(p => p.preference_category === category);\n\n const positionPref = findPref(PREFERENCE_CATEGORY.POSITION);\n const levelPreference = findPref(PREFERENCE_CATEGORY.LEVEL)?.preference_name ?? '';\n const objectivePrefs = filterPrefs(PREFERENCE_CATEGORY.OBJECTIVES);\n\n const positionInfo = positionPref\n ? getPreferencesFromConfig(configData, {\n grade: '',\n courseStream: COURSE_STREAMS.MATH,\n preferenceCategory: PREFERENCE_CATEGORY.POSITION,\n })?.find(({ id }) => id === positionPref.preference_code)\n : null;\n\n const studentLevel =\n positionInfo?.label && positionInfo?.description\n ? `${positionInfo.label}: ${positionInfo.description}`\n : '';\n\n const studentObjectives = objectivePrefs.map(p => p.preference_name);\n\n const learningPlan = userMilestoneData.map(\n ({ goal_category, milestone_name }) =>\n `${GOAL_MAPPING[goal_category as TGoalCategory]}: ${milestone_name}`,\n );\n\n return {\n studentLevel,\n studentObjectives,\n learningPlan,\n levelPreference,\n };\n};\n"],"names":["getLearningProfileSummary","configData","summaryData","defaultSummary","preferences","_a","userMilestoneData","findPref","category","p","filterPrefs","positionPref","PREFERENCE_CATEGORY","levelPreference","_b","objectivePrefs","positionInfo","_c","getPreferencesFromConfig","COURSE_STREAMS","id","studentLevel","studentObjectives","learningPlan","goal_category","milestone_name","GOAL_MAPPING"],"mappings":";;;AAYa,MAAAA,IAA4B,CACvCC,GACAC,MAC2B;;AAC3B,QAAMC,IAAyC;AAAA,IAC7C,cAAc;AAAA,IACd,mBAAmB,CAAC;AAAA,IACpB,cAAc,CAAC;AAAA,IACf,iBAAiB;AAAA,EAAA;AAGnB,MAAI,CAACF,KAAc,CAACC,EAAoB,QAAAC;AAExC,QAAMC,MAAcC,IAAAH,EAAY,wBAAZ,gBAAAG,EAAiC,gBAAe,CAAA,GAC9DC,IAAoBJ,EAAY,uBAAuB;AAEzD,MAAAE,EAAY,WAAW,EAAU,QAAAD;AAE/B,QAAAI,IAAW,CAACC,MAChBJ,EAAY,KAAK,CAAKK,MAAAA,EAAE,wBAAwBD,CAAQ,GAEpDE,IAAc,CAACF,MACnBJ,EAAY,OAAO,CAAKK,MAAAA,EAAE,wBAAwBD,CAAQ,GAEtDG,IAAeJ,EAASK,EAAoB,QAAQ,GACpDC,MAAkBC,IAAAP,EAASK,EAAoB,KAAK,MAAlC,gBAAAE,EAAqC,oBAAmB,IAC1EC,IAAiBL,EAAYE,EAAoB,UAAU,GAE3DI,IAAeL,KACjBM,IAAAC,EAAyBjB,GAAY;AAAA,IACnC,OAAO;AAAA,IACP,cAAckB,EAAe;AAAA,IAC7B,oBAAoBP,EAAoB;AAAA,EAAA,CACzC,MAJD,gBAAAK,EAII,KAAK,CAAC,EAAE,IAAAG,QAASA,MAAOT,EAAa,mBACzC,MAEEU,IACJL,KAAA,QAAAA,EAAc,UAASA,KAAA,QAAAA,EAAc,eACjC,GAAGA,EAAa,KAAK,KAAKA,EAAa,WAAW,KAClD,IAEAM,IAAoBP,EAAe,IAAI,CAAAN,MAAKA,EAAE,eAAe,GAE7Dc,IAAejB,EAAkB;AAAA,IACrC,CAAC,EAAE,eAAAkB,GAAe,gBAAAC,EAAe,MAC/B,GAAGC,EAAaF,CAA8B,CAAC,KAAKC,CAAc;AAAA,EAAA;AAG/D,SAAA;AAAA,IACL,cAAAJ;AAAA,IACA,mBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,iBAAAV;AAAA,EAAA;AAEJ;"}
@@ -1,13 +0,0 @@
1
- import t from "styled-components";
2
- import e from "../../../ui/layout/flex-view.js";
3
- const r = t(e)`
4
- max-width: 100%;
5
- width: 100%;
6
- ${({ theme: i }) => i.mediaQueries.minWidthTablet} {
7
- max-width: 560px;
8
- }
9
- `;
10
- export {
11
- r as Container
12
- };
13
- //# sourceMappingURL=student-profile-summary-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"student-profile-summary-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-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: 100%;\n width: 100%;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-width: 560px;\n }\n`;\n"],"names":["Container","styled","FlexView","theme"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA;AAAA,IAGpC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;"}
@@ -1,44 +0,0 @@
1
- import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
- import { useMemo as u } from "react";
3
- import { useTheme as c } from "styled-components";
4
- import { ILLUSTRATIONS as r } from "../../../../assets/illustrations/illustrations.js";
5
- import p from "../../../trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js";
6
- import o from "../../../ui/layout/flex-view.js";
7
- import f from "../../../ui/loader/app-loader/app-loader.js";
8
- import h from "../../../ui/modals/use-modal-params.js";
9
- import E from "../../../ui/text/text.js";
10
- import { EDeviceType as g } from "../../../ui/theme/constants.js";
11
- import { Container as L } from "./student-profile-summary-styled.js";
12
- const P = () => {
13
- const { studentName: i, summaryData: e } = h(), n = c().device <= g.MOBILE, m = u(() => {
14
- const { studentLevel: l, studentObjectives: s = "", learningPlan: a = "" } = e ?? {};
15
- return [
16
- {
17
- title: "Student Level",
18
- description: l,
19
- illustration: r.KNOWLEDGE_BLUE,
20
- background: "BLUE_1"
21
- },
22
- {
23
- illustration: r.ARROW_BOARD_GREEN,
24
- background: "GREEN_1",
25
- title: "Goals",
26
- description: s
27
- },
28
- {
29
- illustration: r.BOOK_CHECKED_PURPLE,
30
- background: "PURPLE_1",
31
- title: "Learning Plan",
32
- description: a
33
- }
34
- ];
35
- }, [e]);
36
- return e ? /* @__PURE__ */ d(L, { $borderColor: "BLACK_1", children: [
37
- n && /* @__PURE__ */ t(o, { $gutterX: 1, $gapX: 1.5, $background: "BLACK_2", children: /* @__PURE__ */ t(E, { $renderAs: "ab1-bold", $color: "WHITE_1", children: `${i}'s Profile` }) }),
38
- /* @__PURE__ */ t(p, { profileHighlights: m })
39
- ] }) : /* @__PURE__ */ t(o, { $height: 200, $width: 200, children: /* @__PURE__ */ t(f, { height: "100%" }) });
40
- }, D = P;
41
- export {
42
- D as default
43
- };
44
- //# sourceMappingURL=student-profile-summary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"student-profile-summary.js","sources":["../../../../../src/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.tsx"],"sourcesContent":["import type { IStudentProfileSummary } from '../../parent-dashboard-types';\nimport type { TProfileHighlight } from './student-profile-summary-types';\n\nimport { useMemo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport StudentProfileHighlights from '../../../trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights';\nimport FlexView from '../../../ui/layout/flex-view';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport useModalParams from '../../../ui/modals/use-modal-params';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport * as Styled from './student-profile-summary-styled';\n\nconst StudentProfileSummary = () => {\n const { studentName, summaryData } = useModalParams<{\n studentName: string;\n summaryData: IStudentProfileSummary;\n }>();\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n const profileHighlights: TProfileHighlight[] = useMemo(() => {\n const { studentLevel, studentObjectives = '', learningPlan = '' } = summaryData ?? {};\n\n return [\n {\n title: 'Student Level',\n description: studentLevel,\n illustration: ILLUSTRATIONS.KNOWLEDGE_BLUE,\n background: 'BLUE_1',\n },\n {\n illustration: ILLUSTRATIONS.ARROW_BOARD_GREEN,\n background: 'GREEN_1',\n title: 'Goals',\n description: studentObjectives,\n },\n {\n illustration: ILLUSTRATIONS.BOOK_CHECKED_PURPLE,\n background: 'PURPLE_1',\n title: 'Learning Plan',\n description: learningPlan,\n },\n ];\n }, [summaryData]);\n\n if (!summaryData) {\n return (\n <FlexView $height={200} $width={200}>\n <AppLoader height=\"100%\" />\n </FlexView>\n );\n }\n\n return (\n <Styled.Container $borderColor=\"BLACK_1\">\n {isMobile && (\n <FlexView $gutterX={1} $gapX={1.5} $background=\"BLACK_2\">\n <Text $renderAs=\"ab1-bold\" $color=\"WHITE_1\">{`${studentName}'s Profile`}</Text>\n </FlexView>\n )}\n <StudentProfileHighlights profileHighlights={profileHighlights} />\n </Styled.Container>\n );\n};\n\nexport default StudentProfileSummary;\n"],"names":["StudentProfileSummary","studentName","summaryData","useModalParams","isMobile","useTheme","EDeviceType","profileHighlights","useMemo","studentLevel","studentObjectives","learningPlan","ILLUSTRATIONS","jsxs","Styled.Container","FlexView","jsx","Text","StudentProfileHighlights","AppLoader","StudentProfileSummary$1"],"mappings":";;;;;;;;;;;AAeA,MAAMA,IAAwB,MAAM;AAClC,QAAM,EAAE,aAAAC,GAAa,aAAAC,EAAY,IAAIC,EAGlC,GAEGC,IADQC,IACS,UAAUC,EAAY,QAEvCC,IAAyCC,EAAQ,MAAM;AACrD,UAAA,EAAE,cAAAC,GAAc,mBAAAC,IAAoB,IAAI,cAAAC,IAAe,GAAG,IAAIT,KAAe;AAE5E,WAAA;AAAA,MACL;AAAA,QACE,OAAO;AAAA,QACP,aAAaO;AAAA,QACb,cAAcG,EAAc;AAAA,QAC5B,YAAY;AAAA,MACd;AAAA,MACA;AAAA,QACE,cAAcA,EAAc;AAAA,QAC5B,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,aAAaF;AAAA,MACf;AAAA,MACA;AAAA,QACE,cAAcE,EAAc;AAAA,QAC5B,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,aAAaD;AAAA,MACf;AAAA,IAAA;AAAA,EACF,GACC,CAACT,CAAW,CAAC;AAEhB,SAAKA,IASF,gBAAAW,EAAAC,GAAA,EAAiB,cAAa,WAC5B,UAAA;AAAA,IAAAV,uBACEW,GAAS,EAAA,UAAU,GAAG,OAAO,KAAK,aAAY,WAC7C,UAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,QAAO,WAAW,UAAG,GAAAhB,CAAW,cAAa,EAC1E,CAAA;AAAA,IAEF,gBAAAe,EAACE,KAAyB,mBAAAX,GAAsC;AAAA,EAClE,EAAA,CAAA,IAdE,gBAAAS,EAACD,GAAS,EAAA,SAAS,KAAK,QAAQ,KAC9B,UAAC,gBAAAC,EAAAG,GAAA,EAAU,QAAO,OAAO,CAAA,EAC3B,CAAA;AAcN,GAEAC,IAAepB;"}
@@ -1,14 +0,0 @@
1
- import t from "styled-components";
2
- import e from "../../../ui/layout/flex-view.js";
3
- const o = t(e)`
4
- max-width: 100%;
5
- width: 100%;
6
- max-height: 90vh;
7
- ${({ theme: i }) => i.mediaQueries.minWidthTablet} {
8
- max-width: 720px;
9
- }
10
- `;
11
- export {
12
- o as Container
13
- };
14
- //# sourceMappingURL=trial-report-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trial-report-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/trial-report/trial-report-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: 100%;\n width: 100%;\n max-height: 90vh;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-width: 720px;\n }\n`;\n"],"names":["Container","styled","FlexView","theme"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,IAIpC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;"}
@@ -1,28 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useCallback as p, useEffect as f } from "react";
3
- import { useGetSessionReports as d } from "../../../trial-session/api/trial-home.js";
4
- import u from "../../../trial-session/comps/session-report/report-information/report-information.js";
5
- import l from "../../../ui/error/error.js";
6
- import c from "../../../ui/loader/app-loader/app-loader.js";
7
- import h from "../../../ui/modals/use-modal-params.js";
8
- import { Container as g } from "./trial-report-styled.js";
9
- const R = () => {
10
- const { studentName: t, attemptId: r, studentLevel: s } = h(), {
11
- get: i,
12
- isProcessingFailed: a,
13
- data: n,
14
- isProcessing: m
15
- } = d(), o = p(() => {
16
- r && t && i(r, {
17
- student_level: s,
18
- student_name: t
19
- });
20
- }, [r, i, s, t]);
21
- return f(() => {
22
- o();
23
- }, [o]), a ? /* @__PURE__ */ e(l, { height: "50vh", onTryAgain: o }) : m || !n ? /* @__PURE__ */ e(c, { height: 200, width: 200 }) : /* @__PURE__ */ e(g, { $borderColor: "BLACK_1", children: /* @__PURE__ */ e(u, { sessionReports: n, studentName: t }) });
24
- }, b = R;
25
- export {
26
- b as default
27
- };
28
- //# sourceMappingURL=trial-report.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trial-report.js","sources":["../../../../../src/features/parent-dashboard/modals/trial-report/trial-report.tsx"],"sourcesContent":["import { useCallback, useEffect } from 'react';\n\nimport { useGetSessionReports } from '../../../trial-session/api/trial-home';\nimport ReportInformation from '../../../trial-session/comps/session-report/report-information/report-information';\nimport Error from '../../../ui/error/error';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport useModalParams from '../../../ui/modals/use-modal-params';\nimport * as Styled from './trial-report-styled';\n\nconst StudentTrialReport = () => {\n const { studentName, attemptId, studentLevel } = useModalParams<{\n studentName: string;\n attemptId: string;\n studentLevel: string;\n }>();\n\n const {\n get: getSessionReports,\n isProcessingFailed,\n data: sessionReports,\n isProcessing,\n } = useGetSessionReports();\n\n const fetchData = useCallback(() => {\n if (attemptId && studentName) {\n getSessionReports(attemptId, {\n student_level: studentLevel,\n student_name: studentName,\n });\n }\n }, [attemptId, getSessionReports, studentLevel, studentName]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n if (isProcessingFailed) {\n return <Error height=\"50vh\" onTryAgain={fetchData} />;\n }\n\n if (isProcessing || !sessionReports) {\n return <AppLoader height={200} width={200} />;\n }\n\n return (\n <Styled.Container $borderColor=\"BLACK_1\">\n <ReportInformation sessionReports={sessionReports} studentName={studentName} />\n </Styled.Container>\n );\n};\n\nexport default StudentTrialReport;\n"],"names":["StudentTrialReport","studentName","attemptId","studentLevel","useModalParams","getSessionReports","isProcessingFailed","sessionReports","isProcessing","useGetSessionReports","fetchData","useCallback","useEffect","jsx","Error","AppLoader","Styled.Container","ReportInformation","StudentTrialReport$1"],"mappings":";;;;;;;;AASA,MAAMA,IAAqB,MAAM;AAC/B,QAAM,EAAE,aAAAC,GAAa,WAAAC,GAAW,cAAAC,MAAiBC,EAI9C,GAEG;AAAA,IACJ,KAAKC;AAAA,IACL,oBAAAC;AAAA,IACA,MAAMC;AAAA,IACN,cAAAC;AAAA,MACEC,EAAqB,GAEnBC,IAAYC,EAAY,MAAM;AAClC,IAAIT,KAAaD,KACfI,EAAkBH,GAAW;AAAA,MAC3B,eAAeC;AAAA,MACf,cAAcF;AAAA,IAAA,CACf;AAAA,KAEF,CAACC,GAAWG,GAAmBF,GAAcF,CAAW,CAAC;AAM5D,SAJAW,EAAU,MAAM;AACJ,IAAAF;EAAA,GACT,CAACA,CAAS,CAAC,GAEVJ,IACM,gBAAAO,EAAAC,GAAA,EAAM,QAAO,QAAO,YAAYJ,EAAW,CAAA,IAGjDF,KAAgB,CAACD,IACX,gBAAAM,EAAAE,GAAA,EAAU,QAAQ,KAAK,OAAO,IAAK,CAAA,IAI3C,gBAAAF,EAACG,GAAA,EAAiB,cAAa,WAC7B,UAAC,gBAAAH,EAAAI,GAAA,EAAkB,gBAAAV,GAAgC,aAAAN,EAA0B,CAAA,EAC/E,CAAA;AAEJ,GAEAiB,IAAelB;"}