@cuemath/leap 3.3.30-beta.1 → 3.3.30
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/features/auth/pla-signup/pla-analytics-events.js +3 -9
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js +8 -8
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-helpers.js +7 -13
- package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +30 -32
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +16 -17
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +4 -8
- package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +1 -1
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +3 -3
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-constants.js +4 -5
- package/dist/features/parent-dashboard/parent-dashboard-constants.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-view.js +145 -170
- package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference.js +49 -61
- package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
- package/dist/features/trial-session/comps/navigation-bar/index.js +25 -25
- package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +53 -55
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +15 -15
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +43 -44
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js +0 -5
- package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback.js +51 -96
- package/dist/features/trial-session/comps/student-feedback/student-feedback.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile.js +63 -70
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep.js +39 -40
- package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
- package/dist/features/trial-session/helper.js +53 -69
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +130 -150
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +112 -103
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/utils/utils.js +1 -1
- package/dist/features/utils/utils.js.map +1 -1
- package/dist/index.d.ts +5 -45
- package/dist/index.js +106 -116
- package/dist/index.js.map +1 -1
- package/dist/node_modules/decode-uri-component/index.js.map +1 -0
- package/dist/node_modules/query-string/base.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +7 -0
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +6 -10
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +12 -9
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/package.json +3 -2
- package/dist/features/parent-dashboard/api/cancel-subscription.js +0 -9
- package/dist/features/parent-dashboard/api/cancel-subscription.js.map +0 -1
- package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js +0 -20
- package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js.map +0 -1
- package/dist/features/parent-dashboard/comps/billing-information/billing-information.js +0 -96
- package/dist/features/parent-dashboard/comps/billing-information/billing-information.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js +0 -21
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js +0 -85
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js +0 -23
- package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js +0 -55
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js +0 -59
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js +0 -93
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js.map +0 -1
- package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js +0 -66
- package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js.map +0 -1
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +0 -12
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +0 -1
- package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js +0 -76
- package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js.map +0 -1
- package/dist/features/student-username/add/add-student-username-constants.js +0 -6
- package/dist/features/student-username/add/add-student-username-constants.js.map +0 -1
- package/dist/features/student-username/add/add-student-username-helpers.js +0 -6
- package/dist/features/student-username/add/add-student-username-helpers.js.map +0 -1
- package/dist/features/student-username/add/add-student-username-styled.js +0 -10
- package/dist/features/student-username/add/add-student-username-styled.js.map +0 -1
- package/dist/features/student-username/add/add-student-username.js +0 -78
- package/dist/features/student-username/add/add-student-username.js.map +0 -1
- package/dist/features/student-username/add/api/update-username.js +0 -9
- package/dist/features/student-username/add/api/update-username.js.map +0 -1
- package/dist/features/student-username/add/api/username-availability.js +0 -10
- package/dist/features/student-username/add/api/username-availability.js.map +0 -1
- package/dist/features/student-username/add/hooks/use-check-username-availability.js +0 -41
- package/dist/features/student-username/add/hooks/use-check-username-availability.js.map +0 -1
- package/dist/features/trial-session/api/teacher-availability.js +0 -9
- package/dist/features/trial-session/api/teacher-availability.js.map +0 -1
- package/dist/features/trial-session/comps/class-preference/helpers.js +0 -28
- package/dist/features/trial-session/comps/class-preference/helpers.js.map +0 -1
- package/dist/features/trial-session/hooks/use-slide-config-update.js +0 -49
- package/dist/features/trial-session/hooks/use-slide-config-update.js.map +0 -1
- package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +0 -5
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +0 -8
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +0 -1
- /package/dist/node_modules/{query-string/node_modules/decode-uri-component → decode-uri-component}/index.js +0 -0
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
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();
|
|
10
6
|
}
|
|
11
7
|
export {
|
|
12
|
-
|
|
8
|
+
c as unsafeStringify
|
|
13
9
|
};
|
|
14
10
|
//# 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\
|
|
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,17 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
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();
|
|
4
7
|
n = n || {};
|
|
5
|
-
|
|
8
|
+
const r = n.random || (n.rng || i)();
|
|
6
9
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, m) {
|
|
7
|
-
|
|
8
|
-
for (
|
|
9
|
-
m[
|
|
10
|
+
t = t || 0;
|
|
11
|
+
for (let a = 0; a < 16; ++a)
|
|
12
|
+
m[t + a] = r[a];
|
|
10
13
|
return m;
|
|
11
14
|
}
|
|
12
|
-
return
|
|
15
|
+
return d(r);
|
|
13
16
|
}
|
|
14
17
|
export {
|
|
15
|
-
|
|
18
|
+
g as default
|
|
16
19
|
};
|
|
17
20
|
//# sourceMappingURL=v4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v4.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import rng from './rng.js';\nimport
|
|
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]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuemath/leap",
|
|
3
|
-
"version": "3.3.30
|
|
3
|
+
"version": "3.3.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -96,5 +96,6 @@
|
|
|
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
|
-
}
|
|
99
|
+
},
|
|
100
|
+
"packageManager": "yarn@4.4.1"
|
|
100
101
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createPatchAPI as c } from "@cuemath/rest-api";
|
|
2
|
-
import { BASE_URL_V1 as e } from "../../../constants/api.js";
|
|
3
|
-
const { usePatch: s } = c({
|
|
4
|
-
getURL: (t) => `${e}/students/${t}/cancel-subscription`
|
|
5
|
-
});
|
|
6
|
-
export {
|
|
7
|
-
s as useCancelSubscriptionPatch
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=cancel-subscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-subscription.js","sources":["../../../../src/features/parent-dashboard/api/cancel-subscription.ts"],"sourcesContent":["import { createPatchAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\n\nconst { usePatch: useCancelSubscriptionPatch } = createPatchAPI({\n getURL: studentId => `${BASE_URL_V1}/students/${studentId}/cancel-subscription`,\n});\n\nexport { useCancelSubscriptionPatch };\n"],"names":["useCancelSubscriptionPatch","createPatchAPI","studentId","BASE_URL_V1"],"mappings":";;AAIA,MAAM,EAAE,UAAUA,EAA2B,IAAIC,EAAe;AAAA,EAC9D,QAAQ,CAAAC,MAAa,GAAGC,CAAW,aAAaD,CAAS;AAC3D,CAAC;"}
|
package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import o from "styled-components";
|
|
2
|
-
import t from "../../../../assets/line-icons/icons/more-vertical.js";
|
|
3
|
-
import e from "../../../ui/layout/flex-view.js";
|
|
4
|
-
const c = o(t)(
|
|
5
|
-
({ theme: r }) => `
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
path {
|
|
8
|
-
stroke: ${r.colors.WHITE};
|
|
9
|
-
}
|
|
10
|
-
`
|
|
11
|
-
), l = o(e)`
|
|
12
|
-
top: 0;
|
|
13
|
-
right: 32px;
|
|
14
|
-
z-index: 100;
|
|
15
|
-
`;
|
|
16
|
-
export {
|
|
17
|
-
l as DropdownMenu,
|
|
18
|
-
c as StyledVerticalMenu
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=billing-information-styled.js.map
|
package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"billing-information-styled.js","sources":["../../../../../src/features/parent-dashboard/comps/billing-information/billing-information-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport MoreVerticalIcon from '../../../../assets/line-icons/icons/more-vertical';\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst StyledVerticalMenu = styled(MoreVerticalIcon)(\n ({ theme }) => `\n cursor: pointer;\n path {\n stroke: ${theme.colors.WHITE};\n }\n `,\n);\n\nconst DropdownMenu = styled(FlexView)`\n top: 0;\n right: 32px;\n z-index: 100;\n`;\n\nexport { StyledVerticalMenu, DropdownMenu };\n"],"names":["StyledVerticalMenu","styled","MoreVerticalIcon","theme","DropdownMenu","FlexView"],"mappings":";;;AAKM,MAAAA,IAAqBC,EAAOC,CAAgB;AAAA,EAChD,CAAC,EAAE,OAAAC,EAAA,MAAY;AAAA;AAAA;AAAA,gBAGDA,EAAM,OAAO,KAAK;AAAA;AAAA;AAGlC,GAEMC,IAAeH,EAAOI,CAAQ;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { memo as E, useState as k, useRef as x, useCallback as m, useEffect as w } from "react";
|
|
3
|
-
import { useTheme as y } from "styled-components";
|
|
4
|
-
import l from "../../../ui/layout/flex-view.js";
|
|
5
|
-
import L from "../../../ui/separator/separator.js";
|
|
6
|
-
import o from "../../../ui/text/text.js";
|
|
7
|
-
import { EDeviceType as M } from "../../../ui/theme/constants.js";
|
|
8
|
-
import { StyledVerticalMenu as _, DropdownMenu as I } from "./billing-information-styled.js";
|
|
9
|
-
const R = E(
|
|
10
|
-
({ billingDetails: $, onViewPaymentMethod: d, onCancelSubscription: u }) => {
|
|
11
|
-
const { device: f } = y(), n = f <= M.MOBILE, [c, t] = k(!1), s = x(null), { amount: p, cycle_frequency: h, next_due_date: b } = $, g = () => t((i) => !i), a = m(() => {
|
|
12
|
-
t(!1), d();
|
|
13
|
-
}, [d]), C = m(() => {
|
|
14
|
-
t(!1), u();
|
|
15
|
-
}, [u]);
|
|
16
|
-
return w(() => {
|
|
17
|
-
function i(A) {
|
|
18
|
-
s.current && !s.current.contains(A.target) && t(!1);
|
|
19
|
-
}
|
|
20
|
-
return c && document.addEventListener("mousedown", i), () => {
|
|
21
|
-
document.removeEventListener("mousedown", i);
|
|
22
|
-
};
|
|
23
|
-
}, [c]), /* @__PURE__ */ e(l, { children: [
|
|
24
|
-
/* @__PURE__ */ r(o, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Billing Information" }),
|
|
25
|
-
/* @__PURE__ */ r(L, { height: 20 }),
|
|
26
|
-
/* @__PURE__ */ e(
|
|
27
|
-
l,
|
|
28
|
-
{
|
|
29
|
-
$flexDirection: "row",
|
|
30
|
-
$justifyContent: "space-between",
|
|
31
|
-
$alignItems: "center",
|
|
32
|
-
$gap: n ? 16 : 24,
|
|
33
|
-
$gutter: n ? 16 : 24,
|
|
34
|
-
$background: "BLACK_2",
|
|
35
|
-
$borderColor: n ? "WHITE" : "BLACK_5",
|
|
36
|
-
onClick: n ? a : void 0,
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ e(l, { $flexGap: 12, children: [
|
|
39
|
-
/* @__PURE__ */ e(o, { $renderAs: "ac3-black", $renderOnMobileAs: "ac4-black", $color: "PURPLE_4", children: [
|
|
40
|
-
h,
|
|
41
|
-
" PLAN"
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ e(o, { $renderAs: n ? "ub3" : "ub2", $color: "WHITE", children: [
|
|
44
|
-
"$",
|
|
45
|
-
p,
|
|
46
|
-
" payment due on ",
|
|
47
|
-
b
|
|
48
|
-
] })
|
|
49
|
-
] }),
|
|
50
|
-
n ? null : /* @__PURE__ */ e(l, { $position: "relative", ref: s, children: [
|
|
51
|
-
/* @__PURE__ */ r(_, { height: 24, width: 24, onClick: g }),
|
|
52
|
-
c && /* @__PURE__ */ e(
|
|
53
|
-
I,
|
|
54
|
-
{
|
|
55
|
-
$width: 180,
|
|
56
|
-
$position: "absolute",
|
|
57
|
-
$background: "BLACK_4",
|
|
58
|
-
$borderColor: "BLACK_5",
|
|
59
|
-
$gapX: 1,
|
|
60
|
-
$gutterX: 1,
|
|
61
|
-
$flexGap: 8,
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ r(
|
|
64
|
-
o,
|
|
65
|
-
{
|
|
66
|
-
$renderAs: "ub3",
|
|
67
|
-
$cursor: "pointer",
|
|
68
|
-
$color: "WHITE",
|
|
69
|
-
onClick: a,
|
|
70
|
-
children: "View Payment Method"
|
|
71
|
-
}
|
|
72
|
-
),
|
|
73
|
-
/* @__PURE__ */ r(
|
|
74
|
-
o,
|
|
75
|
-
{
|
|
76
|
-
$renderAs: "ub3",
|
|
77
|
-
$cursor: "pointer",
|
|
78
|
-
$color: "ORANGE_5",
|
|
79
|
-
onClick: C,
|
|
80
|
-
children: "Cancel Subscription"
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
] })
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
] });
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
export {
|
|
94
|
-
R as default
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=billing-information.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"billing-information.js","sources":["../../../../../src/features/parent-dashboard/comps/billing-information/billing-information.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nimport { memo, useState, useRef, useEffect, useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\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 * as Styled from './billing-information-styled';\nimport { type IBillingInformationProps } from './billing-information-types';\n\nconst BillingInformation: FC<IBillingInformationProps> = memo(\n ({ billingDetails, onViewPaymentMethod, onCancelSubscription }) => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const [menuOpen, setMenuOpen] = useState(false);\n const menuRef = useRef<HTMLDivElement>(null);\n\n const { amount, cycle_frequency: cycleFrequency, next_due_date: nextDueDate } = billingDetails;\n\n const toggleMenu = () => setMenuOpen(v => !v);\n\n const handleViewPaymentMethod = useCallback(() => {\n setMenuOpen(false);\n onViewPaymentMethod();\n }, [onViewPaymentMethod]);\n\n const handleCancelSubscription = useCallback(() => {\n setMenuOpen(false);\n onCancelSubscription();\n }, [onCancelSubscription]);\n\n // Close menu on outside click\n useEffect(() => {\n function handleClickOutside(event: MouseEvent) {\n if (menuRef.current && !menuRef.current.contains(event.target as Node)) {\n setMenuOpen(false);\n }\n }\n if (menuOpen) {\n document.addEventListener('mousedown', handleClickOutside);\n }\n\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [menuOpen]);\n\n return (\n <FlexView>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Billing Information\n </Text>\n <Separator height={20} />\n <FlexView\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $gap={isMobile ? 16 : 24}\n $gutter={isMobile ? 16 : 24}\n $background=\"BLACK_2\"\n $borderColor={isMobile ? 'WHITE' : 'BLACK_5'}\n onClick={isMobile ? handleViewPaymentMethod : undefined}\n >\n <FlexView $flexGap={12}>\n <Text $renderAs=\"ac3-black\" $renderOnMobileAs=\"ac4-black\" $color=\"PURPLE_4\">\n {cycleFrequency} PLAN\n </Text>\n <Text $renderAs={isMobile ? 'ub3' : 'ub2'} $color=\"WHITE\">\n ${amount} payment due on {nextDueDate}\n </Text>\n </FlexView>\n\n {isMobile ? null : (\n <FlexView $position=\"relative\" ref={menuRef}>\n <Styled.StyledVerticalMenu height={24} width={24} onClick={toggleMenu} />\n {menuOpen && (\n <Styled.DropdownMenu\n $width={180}\n $position=\"absolute\"\n $background=\"BLACK_4\"\n $borderColor=\"BLACK_5\"\n $gapX={1}\n $gutterX={1}\n $flexGap={8}\n >\n <Text\n $renderAs=\"ub3\"\n $cursor=\"pointer\"\n $color=\"WHITE\"\n onClick={handleViewPaymentMethod}\n >\n View Payment Method\n </Text>\n <Text\n $renderAs=\"ub3\"\n $cursor=\"pointer\"\n $color=\"ORANGE_5\"\n onClick={handleCancelSubscription}\n >\n Cancel Subscription\n </Text>\n </Styled.DropdownMenu>\n )}\n </FlexView>\n )}\n </FlexView>\n </FlexView>\n );\n },\n);\n\nexport default BillingInformation;\n"],"names":["BillingInformation","memo","billingDetails","onViewPaymentMethod","onCancelSubscription","device","useTheme","isMobile","EDeviceType","menuOpen","setMenuOpen","useState","menuRef","useRef","amount","cycleFrequency","nextDueDate","toggleMenu","v","handleViewPaymentMethod","useCallback","handleCancelSubscription","useEffect","handleClickOutside","event","FlexView","jsx","Text","Separator","jsxs","Styled.StyledVerticalMenu","Styled.DropdownMenu"],"mappings":"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"}
|
package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
title: "Wait! Weʼve found the perfect tutor for your child. Sure you want to cancel?",
|
|
3
|
-
consequences: [
|
|
4
|
-
"Your first session will be cancelled",
|
|
5
|
-
"Youʼll lose access to the student platform",
|
|
6
|
-
"Youʼll have to go through the signup process again"
|
|
7
|
-
]
|
|
8
|
-
}, t = {
|
|
9
|
-
title: "Wait! Weʼve almost found the perfect tutor. Sure you want to cancel?",
|
|
10
|
-
consequences: [
|
|
11
|
-
"Youʼll lose this perfect tutor match",
|
|
12
|
-
"Your first session will be cancelled",
|
|
13
|
-
"You'll lose access to the student platform",
|
|
14
|
-
"Youʼll have to go through the signup process again"
|
|
15
|
-
]
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
e as cancelSubscriptionNoTutor,
|
|
19
|
-
t as cancelSubscriptionWithTutor
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=cancel-subscription-constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-subscription-constants.js","sources":["../../../../../src/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.ts"],"sourcesContent":["export const cancelSubscriptionNoTutor = {\n title: 'Wait! Weʼve found the perfect tutor for your child. Sure you want to cancel?',\n consequences: [\n 'Your first session will be cancelled',\n 'Youʼll lose access to the student platform',\n 'Youʼll have to go through the signup process again',\n ],\n};\n\nexport const cancelSubscriptionWithTutor = {\n title: 'Wait! Weʼve almost found the perfect tutor. Sure you want to cancel?',\n consequences: [\n 'Youʼll lose this perfect tutor match',\n 'Your first session will be cancelled',\n \"You'll lose access to the student platform\",\n 'Youʼll have to go through the signup process again',\n ],\n};\n"],"names":["cancelSubscriptionNoTutor","cancelSubscriptionWithTutor"],"mappings":"AAAO,MAAMA,IAA4B;AAAA,EACvC,OAAO;AAAA,EACP,cAAc;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF,GAEaC,IAA8B;AAAA,EACzC,OAAO;AAAA,EACP,cAAc;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as g } from "react";
|
|
3
|
-
import { useTheme as w } from "styled-components";
|
|
4
|
-
import T from "../../../../assets/line-icons/icons/cross.js";
|
|
5
|
-
import c from "../../../ui/buttons/text-button/text-button.js";
|
|
6
|
-
import o from "../../../ui/layout/flex-view.js";
|
|
7
|
-
import X from "../../../ui/modals/use-modal-params.js";
|
|
8
|
-
import n from "../../../ui/separator/separator.js";
|
|
9
|
-
import i from "../../../ui/text/text.js";
|
|
10
|
-
import { EDeviceType as x } from "../../../ui/theme/constants.js";
|
|
11
|
-
import { cancelSubscriptionWithTutor as A, cancelSubscriptionNoTutor as C } from "./cancel-subscription-constants.js";
|
|
12
|
-
const E = g(() => {
|
|
13
|
-
const { withTutor: a, studentName: u, completedSessions: h, onSwitchTutor: d, onReschedule: $, onCancel: l } = X(), { device: b } = w(), t = b <= x.MOBILE, f = a ? A : C, { title: m, consequences: p } = f;
|
|
14
|
-
return h > 0 ? /* @__PURE__ */ r(o, { $gapX: t ? 1.5 : 2.5, $gutterX: t ? 1 : 2.5, $background: "BLACK_2", children: [
|
|
15
|
-
/* @__PURE__ */ e(i, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Before you cancel - is this about the tutor?" }),
|
|
16
|
-
/* @__PURE__ */ e(n, { heightX: 0.75 }),
|
|
17
|
-
/* @__PURE__ */ r(i, { $renderAs: "ub2", $renderOnMobileAs: "ub3", $color: "WHITE", children: [
|
|
18
|
-
"This is exactly why we offer a tutor match guarantee. It's completely okay if the first tutor wasn't the right fit - with our extensive network, we're confident we can find",
|
|
19
|
-
" ",
|
|
20
|
-
u,
|
|
21
|
-
"'s ideal tutor."
|
|
22
|
-
] }),
|
|
23
|
-
/* @__PURE__ */ e(n, { heightX: 0.75 }),
|
|
24
|
-
/* @__PURE__ */ e(i, { $renderAs: "ub2", $renderOnMobileAs: "ub3", $color: "WHITE", children: "Do you want to try a session with another tutor? We won’t charge you for it." }),
|
|
25
|
-
/* @__PURE__ */ e(n, { heightX: 2.5 }),
|
|
26
|
-
/* @__PURE__ */ r(o, { $flexDirection: "row", $flexGapX: 1.5, children: [
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
c,
|
|
29
|
-
{
|
|
30
|
-
size: "regular",
|
|
31
|
-
label: t ? "Cancel subscription" : "No, cancel subscription",
|
|
32
|
-
color: "ORANGE_4",
|
|
33
|
-
onClick: l
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
-
c,
|
|
38
|
-
{
|
|
39
|
-
size: "regular",
|
|
40
|
-
label: t ? "Switch tutor" : "Yes, try another tutor",
|
|
41
|
-
color: "WHITE",
|
|
42
|
-
onClick: d
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] })
|
|
46
|
-
] }) : /* @__PURE__ */ r(o, { $gapX: t ? 1.5 : 2.5, $gutterX: t ? 1 : 2.5, $background: "BLACK_2", children: [
|
|
47
|
-
/* @__PURE__ */ e(i, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: m }),
|
|
48
|
-
/* @__PURE__ */ e(n, { heightX: 0.75 }),
|
|
49
|
-
/* @__PURE__ */ r(o, { $flexGapX: 0.75, children: [
|
|
50
|
-
/* @__PURE__ */ e(i, { $renderAs: "ub3", $color: "WHITE", children: "If you decide to cancel:" }),
|
|
51
|
-
p.map((s) => /* @__PURE__ */ r(o, { $flexDirection: "row", $flexGapX: 0.5, children: [
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
o,
|
|
54
|
-
{
|
|
55
|
-
$justifyContent: "center",
|
|
56
|
-
$alignItems: "center",
|
|
57
|
-
$background: "ORANGE_4",
|
|
58
|
-
$borderRadiusX: 0.5,
|
|
59
|
-
$widthX: 1,
|
|
60
|
-
$heightX: 1,
|
|
61
|
-
children: /* @__PURE__ */ e(T, {})
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ e(i, { $renderAs: "ub3", $color: "WHITE", children: s })
|
|
65
|
-
] }, s))
|
|
66
|
-
] }),
|
|
67
|
-
/* @__PURE__ */ e(n, { heightX: 2.5 }),
|
|
68
|
-
/* @__PURE__ */ r(o, { $flexDirection: "row", $flexGapX: 1.5, children: [
|
|
69
|
-
/* @__PURE__ */ e(
|
|
70
|
-
c,
|
|
71
|
-
{
|
|
72
|
-
size: "regular",
|
|
73
|
-
label: "Cancel subscription",
|
|
74
|
-
color: "ORANGE_4",
|
|
75
|
-
onClick: l
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
/* @__PURE__ */ e(c, { size: "regular", label: "Reschedule", color: "WHITE", onClick: $ })
|
|
79
|
-
] })
|
|
80
|
-
] });
|
|
81
|
-
}), B = E;
|
|
82
|
-
export {
|
|
83
|
-
B as default
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=cancel-subscription.js.map
|
package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-subscription.js","sources":["../../../../../src/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.tsx"],"sourcesContent":["import type { ICancelSubscriptionProps } from './cancel-subscription-types';\n\nimport { memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport CrossIcon from '../../../../assets/line-icons/icons/cross';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\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';\nimport {\n cancelSubscriptionNoTutor,\n cancelSubscriptionWithTutor,\n} from './cancel-subscription-constants';\n\nconst CancelSubscription = memo(() => {\n const { withTutor, studentName, completedSessions, onSwitchTutor, onReschedule, onCancel } =\n useModalParams<ICancelSubscriptionProps>();\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const config = withTutor ? cancelSubscriptionWithTutor : cancelSubscriptionNoTutor;\n const { title, consequences } = config;\n\n if (completedSessions > 0) {\n return (\n <FlexView $gapX={isMobile ? 1.5 : 2.5} $gutterX={isMobile ? 1 : 2.5} $background=\"BLACK_2\">\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Before you cancel - is this about the tutor?\n </Text>\n <Separator heightX={0.75} />\n <Text $renderAs=\"ub2\" $renderOnMobileAs=\"ub3\" $color=\"WHITE\">\n This is exactly why we offer a tutor match guarantee. It's completely okay if the first\n tutor wasn't the right fit - with our extensive network, we're confident we can find{' '}\n {studentName}'s ideal tutor.\n </Text>\n <Separator heightX={0.75} />\n <Text $renderAs=\"ub2\" $renderOnMobileAs=\"ub3\" $color=\"WHITE\">\n Do you want to try a session with another tutor? We won’t charge you for it.\n </Text>\n <Separator heightX={2.5} />\n <FlexView $flexDirection=\"row\" $flexGapX={1.5}>\n <TextButton\n size=\"regular\"\n label={isMobile ? 'Cancel subscription' : 'No, cancel subscription'}\n color=\"ORANGE_4\"\n onClick={onCancel}\n />\n <TextButton\n size=\"regular\"\n label={isMobile ? 'Switch tutor' : 'Yes, try another tutor'}\n color=\"WHITE\"\n onClick={onSwitchTutor}\n />\n </FlexView>\n </FlexView>\n );\n }\n\n return (\n <FlexView $gapX={isMobile ? 1.5 : 2.5} $gutterX={isMobile ? 1 : 2.5} $background=\"BLACK_2\">\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n {title}\n </Text>\n <Separator heightX={0.75} />\n <FlexView $flexGapX={0.75}>\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n If you decide to cancel:\n </Text>\n {consequences.map(item => (\n <FlexView key={item} $flexDirection=\"row\" $flexGapX={0.5}>\n <FlexView\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"ORANGE_4\"\n $borderRadiusX={0.5}\n $widthX={1}\n $heightX={1}\n >\n <CrossIcon />\n </FlexView>\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n {item}\n </Text>\n </FlexView>\n ))}\n </FlexView>\n <Separator heightX={2.5} />\n <FlexView $flexDirection=\"row\" $flexGapX={1.5}>\n <TextButton\n size=\"regular\"\n label=\"Cancel subscription\"\n color=\"ORANGE_4\"\n onClick={onCancel}\n />\n <TextButton size=\"regular\" label=\"Reschedule\" color=\"WHITE\" onClick={onReschedule} />\n </FlexView>\n </FlexView>\n );\n});\n\nexport default CancelSubscription;\n"],"names":["CancelSubscription","memo","withTutor","studentName","completedSessions","onSwitchTutor","onReschedule","onCancel","useModalParams","device","useTheme","isMobile","EDeviceType","config","cancelSubscriptionWithTutor","cancelSubscriptionNoTutor","title","consequences","jsxs","FlexView","jsx","Text","Separator","TextButton","item","CrossIcon","CancelSubscription$1"],"mappings":"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"}
|
package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { memo as c } from "react";
|
|
3
|
-
import { useTheme as a } from "styled-components";
|
|
4
|
-
import l from "../../../ui/buttons/text-button/text-button.js";
|
|
5
|
-
import m from "../../../ui/layout/flex-view.js";
|
|
6
|
-
import u from "../../../ui/modals/use-modal-actions.js";
|
|
7
|
-
import r from "../../../ui/separator/separator.js";
|
|
8
|
-
import t from "../../../ui/text/text.js";
|
|
9
|
-
import { EDeviceType as d } from "../../../ui/theme/constants.js";
|
|
10
|
-
const p = c(() => {
|
|
11
|
-
const { closeModal: i } = u(), { device: n } = a(), e = n <= d.MOBILE;
|
|
12
|
-
return /* @__PURE__ */ s(m, { $gapX: e ? 1.5 : 2.5, $gutterX: e ? 1 : 2.5, $background: "BLACK_2", children: [
|
|
13
|
-
/* @__PURE__ */ o(t, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "ORANGE_4", children: "Your subscription has been cancelled" }),
|
|
14
|
-
/* @__PURE__ */ o(r, { heightX: 0.75 }),
|
|
15
|
-
/* @__PURE__ */ o(t, { $renderAs: "ub3", $color: "WHITE", children: "We won't charge your card. If you change your mind, you can always restart the signup process by visiting our website." }),
|
|
16
|
-
/* @__PURE__ */ o(r, { heightX: 2.5 }),
|
|
17
|
-
/* @__PURE__ */ o(l, { size: "regular", label: "Close", color: "WHITE", onClick: i })
|
|
18
|
-
] });
|
|
19
|
-
}), T = p;
|
|
20
|
-
export {
|
|
21
|
-
T as default
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=cancellation-confirmation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancellation-confirmation.js","sources":["../../../../../src/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.tsx"],"sourcesContent":["import { memo } 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 Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst CancelConfirmation = memo(() => {\n const { closeModal } = useModalActions();\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n\n return (\n <FlexView $gapX={isMobile ? 1.5 : 2.5} $gutterX={isMobile ? 1 : 2.5} $background=\"BLACK_2\">\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"ORANGE_4\">\n Your subscription has been cancelled\n </Text>\n <Separator heightX={0.75} />\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n We won't charge your card. If you change your mind, you can always restart the signup\n process by visiting our website.\n </Text>\n <Separator heightX={2.5} />\n <TextButton size=\"regular\" label=\"Close\" color=\"WHITE\" onClick={closeModal} />\n </FlexView>\n );\n});\n\nexport default CancelConfirmation;\n"],"names":["CancelConfirmation","memo","closeModal","useModalActions","device","useTheme","isMobile","EDeviceType","jsxs","FlexView","jsx","Text","Separator","TextButton","CancelConfirmation$1"],"mappings":";;;;;;;;;AAUA,MAAMA,IAAqBC,EAAK,MAAM;AAC9B,QAAA,EAAE,YAAAC,MAAeC,KACjB,EAAE,QAAAC,MAAWC,KACbC,IAAWF,KAAUG,EAAY;AAGrC,SAAA,gBAAAC,EAACC,GAAS,EAAA,OAAOH,IAAW,MAAM,KAAK,UAAUA,IAAW,IAAI,KAAK,aAAY,WAC/E,UAAA;AAAA,IAAA,gBAAAI,EAACC,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,YAAW,UAE1E,uCAAA,CAAA;AAAA,IACA,gBAAAD,EAACE,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,sBACzBD,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,UAGrC,0HAAA;AAAA,IACA,gBAAAD,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IACzB,gBAAAF,EAACG,KAAW,MAAK,WAAU,OAAM,SAAQ,OAAM,SAAQ,SAASX,EAAY,CAAA;AAAA,EAC9E,EAAA,CAAA;AAEJ,CAAC,GAEDY,IAAed;"}
|
package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
title: "We’re sorry to see you go!",
|
|
3
|
-
description: "Tell us why youʼre canceling.",
|
|
4
|
-
reasons: [
|
|
5
|
-
{ id: "Looking for more affordable options", label: "Looking for more affordable options" },
|
|
6
|
-
{ id: "Taking too long to find a tutor match", label: "Taking too long to find a tutor match" },
|
|
7
|
-
{ id: "I found a better option elsewhere", label: "I found a better option elsewhere" },
|
|
8
|
-
{ id: "I donʼt have the right device/ setup", label: "I donʼt have the right device/ setup" },
|
|
9
|
-
{
|
|
10
|
-
id: "No longer interested in online tutoring",
|
|
11
|
-
label: "No longer interested in online tutoring"
|
|
12
|
-
},
|
|
13
|
-
{ id: "other", label: "Something else" }
|
|
14
|
-
]
|
|
15
|
-
}, o = {
|
|
16
|
-
title: "We’re sorry to see you go!",
|
|
17
|
-
description: "Tell us why youʼre canceling.",
|
|
18
|
-
reasons: [
|
|
19
|
-
{
|
|
20
|
-
id: "The tutor doesnʼt seem like a good fit",
|
|
21
|
-
label: "The tutor doesnʼt seem like a good fit"
|
|
22
|
-
},
|
|
23
|
-
{ id: "Looking for more affordable options", label: "Looking for more affordable options" },
|
|
24
|
-
{ id: "Taking too long to find a tutor match", label: "Taking too long to find a tutor match" },
|
|
25
|
-
{ id: "I found a better option elsewhere", label: "I found a better option elsewhere" },
|
|
26
|
-
{
|
|
27
|
-
id: "No longer interested in online tutoring",
|
|
28
|
-
label: "No longer interested in online tutoring"
|
|
29
|
-
},
|
|
30
|
-
{ id: "I donʼt have the right device/ setup", label: "I donʼt have the right device/ setup" },
|
|
31
|
-
{ id: "other", label: "Something else" }
|
|
32
|
-
]
|
|
33
|
-
}, t = {
|
|
34
|
-
title: "We’re sorry to see you go!",
|
|
35
|
-
description: "Tell us why youʼre canceling.",
|
|
36
|
-
reasons: [
|
|
37
|
-
{ id: "Looking for more affordable options", label: "Looking for more affordable options" },
|
|
38
|
-
{ id: "I found a better option elsewhere", label: "I found a better option elsewhere" },
|
|
39
|
-
{
|
|
40
|
-
id: "No longer interested in online tutoring",
|
|
41
|
-
label: "No longer interested in online tutoring"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: "I want to try other options first",
|
|
45
|
-
label: "I want to try other options first"
|
|
46
|
-
},
|
|
47
|
-
{ id: "other", label: "Something else" }
|
|
48
|
-
]
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
t as cancellationReasonAfterTrial,
|
|
52
|
-
e as cancellationReasonNoTutor,
|
|
53
|
-
o as cancellationReasonWithTutor
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=cancellation-reason-constant.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancellation-reason-constant.js","sources":["../../../../../src/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.ts"],"sourcesContent":["export const cancellationReasonNoTutor = {\n title: 'We’re sorry to see you go!',\n description: 'Tell us why youʼre canceling.',\n reasons: [\n { id: 'Looking for more affordable options', label: 'Looking for more affordable options' },\n { id: 'Taking too long to find a tutor match', label: 'Taking too long to find a tutor match' },\n { id: 'I found a better option elsewhere', label: 'I found a better option elsewhere' },\n { id: 'I donʼt have the right device/ setup', label: 'I donʼt have the right device/ setup' },\n {\n id: 'No longer interested in online tutoring',\n label: 'No longer interested in online tutoring',\n },\n { id: 'other', label: 'Something else' },\n ],\n};\n\nexport const cancellationReasonWithTutor = {\n title: 'We’re sorry to see you go!',\n description: 'Tell us why youʼre canceling.',\n reasons: [\n {\n id: 'The tutor doesnʼt seem like a good fit',\n label: 'The tutor doesnʼt seem like a good fit',\n },\n { id: 'Looking for more affordable options', label: 'Looking for more affordable options' },\n { id: 'Taking too long to find a tutor match', label: 'Taking too long to find a tutor match' },\n { id: 'I found a better option elsewhere', label: 'I found a better option elsewhere' },\n {\n id: 'No longer interested in online tutoring',\n label: 'No longer interested in online tutoring',\n },\n { id: 'I donʼt have the right device/ setup', label: 'I donʼt have the right device/ setup' },\n { id: 'other', label: 'Something else' },\n ],\n};\n\nexport const cancellationReasonAfterTrial = {\n title: 'We’re sorry to see you go!',\n description: 'Tell us why youʼre canceling.',\n reasons: [\n { id: 'Looking for more affordable options', label: 'Looking for more affordable options' },\n { id: 'I found a better option elsewhere', label: 'I found a better option elsewhere' },\n {\n id: 'No longer interested in online tutoring',\n label: 'No longer interested in online tutoring',\n },\n {\n id: 'I want to try other options first',\n label: 'I want to try other options first',\n },\n { id: 'other', label: 'Something else' },\n ],\n};\n"],"names":["cancellationReasonNoTutor","cancellationReasonWithTutor","cancellationReasonAfterTrial"],"mappings":"AAAO,MAAMA,IAA4B;AAAA,EACvC,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,IACP,EAAE,IAAI,uCAAuC,OAAO,sCAAsC;AAAA,IAC1F,EAAE,IAAI,yCAAyC,OAAO,wCAAwC;AAAA,IAC9F,EAAE,IAAI,qCAAqC,OAAO,oCAAoC;AAAA,IACtF,EAAE,IAAI,wCAAwC,OAAO,uCAAuC;AAAA,IAC5F;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,IACT;AAAA,IACA,EAAE,IAAI,SAAS,OAAO,iBAAiB;AAAA,EACzC;AACF,GAEaC,IAA8B;AAAA,EACzC,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,IACP;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,IACT;AAAA,IACA,EAAE,IAAI,uCAAuC,OAAO,sCAAsC;AAAA,IAC1F,EAAE,IAAI,yCAAyC,OAAO,wCAAwC;AAAA,IAC9F,EAAE,IAAI,qCAAqC,OAAO,oCAAoC;AAAA,IACtF;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,IACT;AAAA,IACA,EAAE,IAAI,wCAAwC,OAAO,uCAAuC;AAAA,IAC5F,EAAE,IAAI,SAAS,OAAO,iBAAiB;AAAA,EACzC;AACF,GAEaC,IAA+B;AAAA,EAC1C,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,IACP,EAAE,IAAI,uCAAuC,OAAO,sCAAsC;AAAA,IAC1F,EAAE,IAAI,qCAAqC,OAAO,oCAAoC;AAAA,IACtF;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,IACT;AAAA,IACA;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,IACT;AAAA,IACA,EAAE,IAAI,SAAS,OAAO,iBAAiB;AAAA,EACzC;AACF;"}
|
package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js
DELETED
|
@@ -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=cancellation-reason-styled.js.map
|
package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancellation-reason-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-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;"}
|