mario-core 3.0.167-es-staging → 3.0.168-es-release
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/{Dashboard-DqGZDIuz.js → Dashboard-Cg7iibvW.js} +1 -1
- package/dist/Dashboard-DKxRavHP.js +186 -0
- package/dist/{Dashboard-DOrnZOpt.cjs → Dashboard-DUeFk196.cjs} +1 -1
- package/dist/Dashboard-DfkDdWQL.cjs +1 -0
- package/dist/{EmailTemplateDetail-BKj2rwTw.js → EmailTemplateDetail-9OqWN5Ns.js} +33 -33
- package/dist/EmailTemplateDetail-BTET7Tey.js +437 -0
- package/dist/{EmailTemplateDetail-B6j-SdSS.cjs → EmailTemplateDetail-C7Zru03m.cjs} +1 -1
- package/dist/EmailTemplateDetail-DqUrYn_k.cjs +1 -0
- package/dist/{EmailTemplateList-BZWGrFj9.cjs → EmailTemplateList-CAmeXXJh.cjs} +1 -1
- package/dist/{EmailTemplateList-GUtKeuFF.js → EmailTemplateList-Dr9JwfBV.js} +8 -8
- package/dist/EmailTemplateList-VudCgM6Y.js +174 -0
- package/dist/EmailTemplateList-WVHHT-Mk.cjs +1 -0
- package/dist/{FaqList-DHsfkVLs.cjs → FaqList-D24ofa0C.cjs} +1 -1
- package/dist/{FaqList-veMSYBPC.js → FaqList-D7sL4gcb.js} +17 -17
- package/dist/FaqList-DOmXyZh0.js +320 -0
- package/dist/FaqList-DWR5mtyK.cjs +1 -0
- package/dist/{GalleryList-BAvwln9p.cjs → GalleryList-CNrs4eMZ.cjs} +1 -1
- package/dist/GalleryList-CXzfBDFo.cjs +1 -0
- package/dist/{GalleryList-CgUIs32J.js → GalleryList-Cl4LoJqV.js} +3 -3
- package/dist/GalleryList-DjpHKeVF.js +53 -0
- package/dist/Login--hajNRDy.cjs +1 -0
- package/dist/{Login-CukeMwhG.js → Login-BbV3JLR-.js} +250 -250
- package/dist/Login-D2wyJzmA.js +974 -0
- package/dist/Login-Df-n7Eb8.cjs +1 -0
- package/dist/{NotificationList-BPtopDsy.js → NotificationList-BDESZTEu.js} +1336 -1359
- package/dist/NotificationList-CLyjyCEl.cjs +8 -0
- package/dist/NotificationList-CRWL5x19.cjs +8 -0
- package/dist/NotificationList-Dxq3mjHp.js +3633 -0
- package/dist/{SkillList-DNz4gV0m.cjs → SkillList-Bcl8iSYW.cjs} +1 -1
- package/dist/SkillList-C0UXcM5b.cjs +1 -0
- package/dist/{SkillList-BTTh4gQm.js → SkillList-p8dHwSbj.js} +52 -52
- package/dist/SkillList-qn4D6qHO.js +406 -0
- package/dist/{TeacherSelector-C5OkLqE8.js → TeacherSelector-BnLZ8Jvv.js} +1 -1
- package/dist/TeacherSelector-CSBmxeL6.js +72 -0
- package/dist/{TeacherSelector-C3blIgpH.cjs → TeacherSelector-Dyo-1qQC.cjs} +1 -1
- package/dist/TeacherSelector-zvCgvTAs.cjs +1 -0
- package/dist/{TheContent-a3OLlR2k.cjs → TheContent-B5Z_CFAG.cjs} +1 -1
- package/dist/{TheContent-BZ2eYatV.js → TheContent-ChxdcxGb.js} +1 -1
- package/dist/TheContent-aUaKYsNl.cjs +1 -0
- package/dist/TheContent-r1-kGFVn.js +38 -0
- package/dist/UserContainer-4x1l749j.js +2238 -0
- package/dist/UserContainer-B7K5JH3T.js +2238 -0
- package/dist/UserContainer-CXKQZ86O.cjs +3 -0
- package/dist/UserContainer-DburiL3p.cjs +3 -0
- package/dist/{UserDetail-BcF_is5x.js → UserDetail-0O-NsfbF.js} +58 -58
- package/dist/UserDetail-BnjrEz3H.js +665 -0
- package/dist/{UserDetail-BRnWecFV.cjs → UserDetail-C17au4P3.cjs} +1 -1
- package/dist/UserDetail-DbLvkdOe.cjs +1 -0
- package/dist/components/Alerts/EmptyDataAlert.d.ts +1 -1
- package/dist/components/Image/UploadImage.d.ts +1 -1
- package/dist/components/Inputs/FileInput.d.ts +1 -1
- package/dist/components/Inputs/SearchBoxContainer.d.ts +1 -1
- package/dist/components/Modals/NotificationLogoutModal.d.ts +1 -1
- package/dist/components/Modals/NotificationModal.d.ts +1 -1
- package/dist/components/Pagination/CustomPagination.d.ts +1 -1
- package/dist/components/Selectors/AcademicClassSelector.d.ts +1 -1
- package/dist/components/Selectors/CreatableSelector.d.ts +1 -1
- package/dist/components/Selectors/CustomSelector.d.ts +1 -1
- package/dist/components/Selectors/MailCategorySelectors.d.ts +1 -1
- package/dist/components/Selectors/QuestionCategorySelector.d.ts +1 -1
- package/dist/components/Selectors/QuestionTypeSelector.d.ts +1 -1
- package/dist/components/Selectors/StarRatingSelector.d.ts +1 -1
- package/dist/components/Selectors/SuggestionCategorySelector.d.ts +1 -1
- package/dist/components/Tabs/CustomTab.d.ts +1 -1
- package/dist/components/Tabs/TabsWithComponent.d.ts +1 -1
- package/dist/containers/Login/views/Dashboard.d.ts +1 -1
- package/dist/containers/Login/views/Login.d.ts +1 -1
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +1 -1
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -1
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +1 -1
- package/dist/containers/Login/views/block/ModalSelectGrade.d.ts +1 -1
- package/dist/containers/Login/views/block/QuoteContent.d.ts +1 -1
- package/dist/containers/Notifications/views/NotificationList.d.ts +1 -1
- package/dist/containers/Skill/components/SkillSelector.d.ts +1 -1
- package/dist/containers/User/components/DeleteBulkModel.d.ts +1 -1
- package/dist/containers/User/components/RemoveAssistant.d.ts +1 -1
- package/dist/containers/User/components/RemoveCounselor.d.ts +1 -1
- package/dist/containers/User/components/RemoveTeacher.d.ts +1 -1
- package/dist/containers/User/components/TeacherSelector.d.ts +1 -1
- package/dist/containers/User/views/AssignStudentList.d.ts +1 -1
- package/dist/containers/User/views/UserContainer.d.ts +1 -1
- package/dist/containers/User/views/UserDetail.d.ts +1 -1
- package/dist/containers/User/views/UserList.d.ts +1 -1
- package/dist/index-B3rBIMXj.js +21107 -0
- package/dist/index-BGR8x-lY.js +21107 -0
- package/dist/index-CZIFY5ko.cjs +25 -0
- package/dist/index-Cmn16dmO.cjs +25 -0
- package/dist/index.d.ts +8 -9
- package/dist/{index.esm-BX8Mcbzh.js → index.esm-CRguqCvs.js} +1 -1
- package/dist/{index.esm-BV5j9scG.cjs → index.esm-MO7Z0vfF.cjs} +1 -1
- package/dist/index.esm-iJKJbl0E.js +15 -0
- package/dist/index.esm-lLejk_rA.cjs +1 -0
- package/dist/index.js +1 -1
- package/dist/index.modern.js +152 -162
- package/dist/layouts/TheContent.d.ts +1 -1
- package/dist/{mailCategoryService-BOn69XrG.js → mailCategoryService-BU21u5Xe.js} +1 -1
- package/dist/{mailCategoryService-BZj-qcGB.cjs → mailCategoryService-DtW8nHin.cjs} +1 -1
- package/dist/mailCategoryService-DwzZAJWg.js +10 -0
- package/dist/mailCategoryService-e61jh7IC.cjs +1 -0
- package/dist/mario-core.css +1 -1
- package/dist/redux/commons/action.d.ts +0 -1
- package/dist/services/accountService.d.ts +21 -13
- package/dist/services/classService.d.ts +1 -1
- package/dist/services/emailTemplateService.d.ts +5 -5
- package/dist/services/faqService.d.ts +5 -5
- package/dist/services/fileServices.d.ts +19 -13
- package/dist/services/galleryService.d.ts +1 -1
- package/dist/services/languageService.d.ts +1 -1
- package/dist/services/mailCategoryService.d.ts +1 -1
- package/dist/services/notificationService.d.ts +7 -7
- package/dist/services/questionCategoryService.d.ts +1 -1
- package/dist/services/schoolService.d.ts +1 -1
- package/dist/services/skillService.d.ts +5 -5
- package/dist/services/suggestionCategoryService.d.ts +1 -1
- package/dist/services/userService.d.ts +23 -20
- package/package.json +1 -1
- package/dist/Login-ChqTn1GO.cjs +0 -1
- package/dist/NotificationList-MYyBjeKL.cjs +0 -8
- package/dist/UserContainer-D6WdXTJJ.cjs +0 -3
- package/dist/UserContainer-DBnJpnGy.js +0 -2255
- package/dist/index-BV_-3_Mo.js +0 -21513
- package/dist/index-CAT8ApOy.cjs +0 -25
- package/dist/shared/gradeYear/GradeYearConfigProvider.d.ts +0 -8
- package/dist/shared/gradeYear/constants.d.ts +0 -2
- package/dist/shared/gradeYear/formatGradeLabel.d.ts +0 -36
- package/dist/shared/gradeYear/index.d.ts +0 -5
- package/dist/shared/gradeYear/types.d.ts +0 -24
- package/dist/shared/gradeYear/useGradeLabel.d.ts +0 -14
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as N, useRef as I, useCallback as h, useEffect as f } from "react";
|
|
3
3
|
import { useSelector as k } from "react-redux";
|
|
4
4
|
import { Row as T, Col as u, Navbar as C, NavbarBrand as y, Collapse as A, Nav as E, NavItem as g, NavLink as v } from "reactstrap";
|
|
5
|
-
import { h as n, m as i, G as w } from "./index-
|
|
5
|
+
import { h as n, m as i, G as w } from "./index-B3rBIMXj.js";
|
|
6
6
|
import { Link as p } from "react-router-dom";
|
|
7
7
|
const H = () => /* @__PURE__ */ a("div", { className: `${n["content-quote"]}`, children: [
|
|
8
8
|
/* @__PURE__ */ a("div", { className: `${n["title-quote"]} d-block`, children: [
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N, useRef as I, useCallback as h, useEffect as f } from "react";
|
|
3
|
+
import { useSelector as k } from "react-redux";
|
|
4
|
+
import { Row as T, Col as u, Navbar as C, NavbarBrand as y, Collapse as A, Nav as E, NavItem as g, NavLink as v } from "reactstrap";
|
|
5
|
+
import { h as n, m as i, G as w } from "./index-BGR8x-lY.js";
|
|
6
|
+
import { Link as p } from "react-router-dom";
|
|
7
|
+
const H = () => /* @__PURE__ */ a("div", { className: `${n["content-quote"]}`, children: [
|
|
8
|
+
/* @__PURE__ */ a("div", { className: `${n["title-quote"]} d-block`, children: [
|
|
9
|
+
/* @__PURE__ */ e("p", { children: "Powerful" }),
|
|
10
|
+
/* @__PURE__ */ e("p", { children: "Personalized" }),
|
|
11
|
+
/* @__PURE__ */ e("p", { children: "Learning" })
|
|
12
|
+
] }),
|
|
13
|
+
/* @__PURE__ */ a(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: `${n["descriptions-quote"]} d-block`,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ e("p", { children: "Focus on what matters most to you and" }),
|
|
19
|
+
/* @__PURE__ */ e("p", { children: "make learning meaningful." })
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
] }), M = ({ srcIcon: t, content: r }) => /* @__PURE__ */ a("div", { className: `${n["content-icon"]}`, children: [
|
|
24
|
+
/* @__PURE__ */ e("div", { className: `${n["title-icon"]}`, children: /* @__PURE__ */ e("img", { src: i(t), alt: "icon" }) }),
|
|
25
|
+
/* @__PURE__ */ e(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: `${n["descriptions-icon"]}`,
|
|
29
|
+
dangerouslySetInnerHTML: { __html: r }
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
] }, r), D = [
|
|
33
|
+
{
|
|
34
|
+
scrIcon: "images/ChatsTeardrop.svg",
|
|
35
|
+
content: "<p>Understand yourself better through <span>helpful feedback</span>.</p>"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
scrIcon: "images/Student.svg",
|
|
39
|
+
content: "<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
scrIcon: "images/Confetti.svg",
|
|
43
|
+
content: "<p>Set, monitor, and achieve <span>your goals</span>.</p>"
|
|
44
|
+
}
|
|
45
|
+
], L = ({}) => /* @__PURE__ */ a(T, { className: `${n["page-not-login"]}`, children: [
|
|
46
|
+
/* @__PURE__ */ e(u, { md: 12, children: /* @__PURE__ */ e(H, {}) }),
|
|
47
|
+
/* @__PURE__ */ e(u, { md: 12, className: `${n["box-content-home-page"]} d-flex align-items-center`, children: D.map((t) => /* @__PURE__ */ e(
|
|
48
|
+
M,
|
|
49
|
+
{
|
|
50
|
+
srcIcon: t.scrIcon,
|
|
51
|
+
content: t.content
|
|
52
|
+
},
|
|
53
|
+
t.content
|
|
54
|
+
)) })
|
|
55
|
+
] }), O = 10001, S = ({
|
|
56
|
+
data: t,
|
|
57
|
+
duration: r = O
|
|
58
|
+
}) => {
|
|
59
|
+
const [o, m] = N(t.length), s = I(null), d = h((c) => c === o ? `${n.active} ${n.show}` : "", [o]), $ = h((c) => o === 0 && c === t.length - 1 || c === o - 1 ? n.behind : "", [o, t.length]), b = h(() => {
|
|
60
|
+
s && s.current && clearInterval(s.current), s.current = setInterval(() => {
|
|
61
|
+
m((c) => c >= t.length - 1 ? 0 : c + 1);
|
|
62
|
+
}, r);
|
|
63
|
+
}, [r, t.length]);
|
|
64
|
+
return f(() => (b(), () => {
|
|
65
|
+
s && s.current && clearInterval(s.current);
|
|
66
|
+
}), [t.length, r]), /* @__PURE__ */ e("div", { className: `${n["bg-animate"]} position-absolute`, children: t.map((c, l) => /* @__PURE__ */ e(
|
|
67
|
+
"img",
|
|
68
|
+
{
|
|
69
|
+
alt: `Image ${l + 1}`,
|
|
70
|
+
className: `${$(l)} ${d(l)}`,
|
|
71
|
+
src: i(c)
|
|
72
|
+
},
|
|
73
|
+
l
|
|
74
|
+
)) });
|
|
75
|
+
};
|
|
76
|
+
function _(t) {
|
|
77
|
+
return w({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z" } }] })(t);
|
|
78
|
+
}
|
|
79
|
+
const j = "/admin/users/user-list", x = "/home", B = "/home", R = "Dashboard", U = "Mario Framework", z = [
|
|
80
|
+
"images/landing-page.jpg",
|
|
81
|
+
"images/landing-page2.jpg",
|
|
82
|
+
"images/landing-page3.jpg"
|
|
83
|
+
], J = ({ version: t }) => {
|
|
84
|
+
const r = k((d) => d.common.user), [o, m] = N(!1), s = () => m(!o);
|
|
85
|
+
return f(() => {
|
|
86
|
+
r ? document.title = R : document.title = U;
|
|
87
|
+
}, [r]), /* @__PURE__ */ a("div", { className: `${n.login} ${n["red-background"]} position-relative`, children: [
|
|
88
|
+
/* @__PURE__ */ e("span", { className: `${n["version-prod"]}`, children: `v ${t}` }),
|
|
89
|
+
/* @__PURE__ */ e(
|
|
90
|
+
S,
|
|
91
|
+
{
|
|
92
|
+
data: z
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ a("div", { className: `${n["login-content"]}`, children: [
|
|
96
|
+
/* @__PURE__ */ a(C, { light: !0, expand: "md", children: [
|
|
97
|
+
/* @__PURE__ */ e(y, { href: "/", className: `${n["logo-home"]}`, children: /* @__PURE__ */ e("img", { src: i("images/logo-white.svg"), alt: "mario" }) }),
|
|
98
|
+
/* @__PURE__ */ e(
|
|
99
|
+
_,
|
|
100
|
+
{
|
|
101
|
+
onClick: s,
|
|
102
|
+
className: `${n["hide-in-desktop"]} ${n["hamburger-menu"]}`
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ a(
|
|
106
|
+
A,
|
|
107
|
+
{
|
|
108
|
+
isOpen: o,
|
|
109
|
+
navbar: !0,
|
|
110
|
+
className: `${n["collapse-box"]}`,
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ a(
|
|
113
|
+
E,
|
|
114
|
+
{
|
|
115
|
+
className: `${n["nav-home"]} d-md-flex w-100 justify-content-center mr-auto`,
|
|
116
|
+
navbar: !0,
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(
|
|
119
|
+
v,
|
|
120
|
+
{
|
|
121
|
+
className: `${n["learn-more"]} align-self-md-center`,
|
|
122
|
+
href: "https://marioframework.com/software",
|
|
123
|
+
target: "blank",
|
|
124
|
+
children: "Learn More"
|
|
125
|
+
}
|
|
126
|
+
) }),
|
|
127
|
+
/* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(
|
|
128
|
+
p,
|
|
129
|
+
{
|
|
130
|
+
className: `${n.contact} align-self-md-center`,
|
|
131
|
+
to: "/contact",
|
|
132
|
+
children: "Contact"
|
|
133
|
+
}
|
|
134
|
+
) }),
|
|
135
|
+
/* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(
|
|
136
|
+
v,
|
|
137
|
+
{
|
|
138
|
+
className: `${n["learn-more"]} align-self-md-center`,
|
|
139
|
+
href: "/privacy-policy",
|
|
140
|
+
target: "blank",
|
|
141
|
+
children: "Privacy Policy"
|
|
142
|
+
}
|
|
143
|
+
) })
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ e(
|
|
148
|
+
"div",
|
|
149
|
+
{
|
|
150
|
+
className: `${n["hide-in-mobile"]} d-flex justify-content-end`,
|
|
151
|
+
children: r ? /* @__PURE__ */ e(
|
|
152
|
+
p,
|
|
153
|
+
{
|
|
154
|
+
to: r.roles.includes("Admin") ? j : r.roles.includes("Teacher") ? x : B,
|
|
155
|
+
className: `${n["btn-trans-border"]}`,
|
|
156
|
+
children: "Dashboard"
|
|
157
|
+
}
|
|
158
|
+
) : /* @__PURE__ */ e(
|
|
159
|
+
p,
|
|
160
|
+
{
|
|
161
|
+
to: "/login",
|
|
162
|
+
className: `${n["btn-trans-border"]}`,
|
|
163
|
+
children: "Login"
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
)
|
|
171
|
+
] }),
|
|
172
|
+
/* @__PURE__ */ e("div", { className: "", children: /* @__PURE__ */ e(L, {}) }),
|
|
173
|
+
/* @__PURE__ */ e("div", { className: `${n["digital-privacy-icon"]}`, children: /* @__PURE__ */ e(
|
|
174
|
+
"a",
|
|
175
|
+
{
|
|
176
|
+
href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
|
|
177
|
+
target: "blank",
|
|
178
|
+
children: /* @__PURE__ */ e("img", { src: i("images/STUDENT1.png"), alt: "icon" })
|
|
179
|
+
}
|
|
180
|
+
) })
|
|
181
|
+
] })
|
|
182
|
+
] });
|
|
183
|
+
};
|
|
184
|
+
export {
|
|
185
|
+
J as default
|
|
186
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),p=require("react-redux"),a=require("reactstrap"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),p=require("react-redux"),a=require("reactstrap"),s=require("./index-Cmn16dmO.cjs"),g=require("react-router-dom"),j=()=>e.jsxs("div",{className:`${s.styles["content-quote"]}`,children:[e.jsxs("div",{className:`${s.styles["title-quote"]} d-block`,children:[e.jsx("p",{children:"Powerful"}),e.jsx("p",{children:"Personalized"}),e.jsx("p",{children:"Learning"})]}),e.jsxs("div",{className:`${s.styles["descriptions-quote"]} d-block`,children:[e.jsx("p",{children:"Focus on what matters most to you and"}),e.jsx("p",{children:"make learning meaningful."})]})]}),x=({srcIcon:t,content:n})=>e.jsxs("div",{className:`${s.styles["content-icon"]}`,children:[e.jsx("div",{className:`${s.styles["title-icon"]}`,children:e.jsx("img",{src:s.getStaticFileUrl(t),alt:"icon"})}),e.jsx("div",{className:`${s.styles["descriptions-icon"]}`,dangerouslySetInnerHTML:{__html:n}})]},n),v=[{scrIcon:"images/ChatsTeardrop.svg",content:"<p>Understand yourself better through <span>helpful feedback</span>.</p>"},{scrIcon:"images/Student.svg",content:"<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"},{scrIcon:"images/Confetti.svg",content:"<p>Set, monitor, and achieve <span>your goals</span>.</p>"}],y=({})=>e.jsxs(a.Row,{className:`${s.styles["page-not-login"]}`,children:[e.jsx(a.Col,{md:12,children:e.jsx(j,{})}),e.jsx(a.Col,{md:12,className:`${s.styles["box-content-home-page"]} d-flex align-items-center`,children:v.map(t=>e.jsx(x,{srcIcon:t.scrIcon,content:t.content},t.content))})]}),N=10001,b=({data:t,duration:n=N})=>{const[c,m]=i.useState(t.length),r=i.useRef(null),d=i.useCallback(l=>l===c?`${s.styles.active} ${s.styles.show}`:"",[c]),h=i.useCallback(l=>c===0&&l===t.length-1||l===c-1?s.styles.behind:"",[c,t.length]),u=i.useCallback(()=>{r&&r.current&&clearInterval(r.current),r.current=setInterval(()=>{m(l=>l>=t.length-1?0:l+1)},n)},[n,t.length]);return i.useEffect(()=>(u(),()=>{r&&r.current&&clearInterval(r.current)}),[t.length,n]),e.jsx("div",{className:`${s.styles["bg-animate"]} position-absolute`,children:t.map((l,o)=>e.jsx("img",{alt:`Image ${o+1}`,className:`${h(o)} ${d(o)}`,src:s.getStaticFileUrl(l)},o))})};function f(t){return s.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(t)}const $="/admin/users/user-list",I="/home",k="/home",C="Dashboard",T="Mario Framework",S=["images/landing-page.jpg","images/landing-page2.jpg","images/landing-page3.jpg"],E=({version:t})=>{const n=p.useSelector(d=>d.common.user),[c,m]=i.useState(!1),r=()=>m(!c);return i.useEffect(()=>{n?document.title=C:document.title=T},[n]),e.jsxs("div",{className:`${s.styles.login} ${s.styles["red-background"]} position-relative`,children:[e.jsx("span",{className:`${s.styles["version-prod"]}`,children:`v ${t}`}),e.jsx(b,{data:S}),e.jsxs("div",{className:`${s.styles["login-content"]}`,children:[e.jsxs(a.Navbar,{light:!0,expand:"md",children:[e.jsx(a.NavbarBrand,{href:"/",className:`${s.styles["logo-home"]}`,children:e.jsx("img",{src:s.getStaticFileUrl("images/logo-white.svg"),alt:"mario"})}),e.jsx(f,{onClick:r,className:`${s.styles["hide-in-desktop"]} ${s.styles["hamburger-menu"]}`}),e.jsxs(a.Collapse,{isOpen:c,navbar:!0,className:`${s.styles["collapse-box"]}`,children:[e.jsxs(a.Nav,{className:`${s.styles["nav-home"]} d-md-flex w-100 justify-content-center mr-auto`,navbar:!0,children:[e.jsx(a.NavItem,{children:e.jsx(a.NavLink,{className:`${s.styles["learn-more"]} align-self-md-center`,href:"https://marioframework.com/software",target:"blank",children:"Learn More"})}),e.jsx(a.NavItem,{children:e.jsx(g.Link,{className:`${s.styles.contact} align-self-md-center`,to:"/contact",children:"Contact"})}),e.jsx(a.NavItem,{children:e.jsx(a.NavLink,{className:`${s.styles["learn-more"]} align-self-md-center`,href:"/privacy-policy",target:"blank",children:"Privacy Policy"})})]}),e.jsx("div",{className:`${s.styles["hide-in-mobile"]} d-flex justify-content-end`,children:n?e.jsx(g.Link,{to:n.roles.includes("Admin")?$:n.roles.includes("Teacher")?I:k,className:`${s.styles["btn-trans-border"]}`,children:"Dashboard"}):e.jsx(g.Link,{to:"/login",className:`${s.styles["btn-trans-border"]}`,children:"Login"})})]})]}),e.jsx("div",{className:"",children:e.jsx(y,{})}),e.jsx("div",{className:`${s.styles["digital-privacy-icon"]}`,children:e.jsx("a",{href:"https://cert.privo.com/#/companies/marioFrameworkLlc",target:"blank",children:e.jsx("img",{src:s.getStaticFileUrl("images/STUDENT1.png"),alt:"icon"})})})]})]})};exports.default=E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),p=require("react-redux"),a=require("reactstrap"),s=require("./index-CZIFY5ko.cjs"),g=require("react-router-dom"),j=()=>e.jsxs("div",{className:`${s.styles["content-quote"]}`,children:[e.jsxs("div",{className:`${s.styles["title-quote"]} d-block`,children:[e.jsx("p",{children:"Powerful"}),e.jsx("p",{children:"Personalized"}),e.jsx("p",{children:"Learning"})]}),e.jsxs("div",{className:`${s.styles["descriptions-quote"]} d-block`,children:[e.jsx("p",{children:"Focus on what matters most to you and"}),e.jsx("p",{children:"make learning meaningful."})]})]}),x=({srcIcon:t,content:n})=>e.jsxs("div",{className:`${s.styles["content-icon"]}`,children:[e.jsx("div",{className:`${s.styles["title-icon"]}`,children:e.jsx("img",{src:s.getStaticFileUrl(t),alt:"icon"})}),e.jsx("div",{className:`${s.styles["descriptions-icon"]}`,dangerouslySetInnerHTML:{__html:n}})]},n),v=[{scrIcon:"images/ChatsTeardrop.svg",content:"<p>Understand yourself better through <span>helpful feedback</span>.</p>"},{scrIcon:"images/Student.svg",content:"<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"},{scrIcon:"images/Confetti.svg",content:"<p>Set, monitor, and achieve <span>your goals</span>.</p>"}],y=({})=>e.jsxs(a.Row,{className:`${s.styles["page-not-login"]}`,children:[e.jsx(a.Col,{md:12,children:e.jsx(j,{})}),e.jsx(a.Col,{md:12,className:`${s.styles["box-content-home-page"]} d-flex align-items-center`,children:v.map(t=>e.jsx(x,{srcIcon:t.scrIcon,content:t.content},t.content))})]}),N=10001,b=({data:t,duration:n=N})=>{const[c,m]=i.useState(t.length),r=i.useRef(null),d=i.useCallback(l=>l===c?`${s.styles.active} ${s.styles.show}`:"",[c]),h=i.useCallback(l=>c===0&&l===t.length-1||l===c-1?s.styles.behind:"",[c,t.length]),u=i.useCallback(()=>{r&&r.current&&clearInterval(r.current),r.current=setInterval(()=>{m(l=>l>=t.length-1?0:l+1)},n)},[n,t.length]);return i.useEffect(()=>(u(),()=>{r&&r.current&&clearInterval(r.current)}),[t.length,n]),e.jsx("div",{className:`${s.styles["bg-animate"]} position-absolute`,children:t.map((l,o)=>e.jsx("img",{alt:`Image ${o+1}`,className:`${h(o)} ${d(o)}`,src:s.getStaticFileUrl(l)},o))})};function f(t){return s.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(t)}const $="/admin/users/user-list",I="/home",k="/home",C="Dashboard",T="Mario Framework",S=["images/landing-page.jpg","images/landing-page2.jpg","images/landing-page3.jpg"],E=({version:t})=>{const n=p.useSelector(d=>d.common.user),[c,m]=i.useState(!1),r=()=>m(!c);return i.useEffect(()=>{n?document.title=C:document.title=T},[n]),e.jsxs("div",{className:`${s.styles.login} ${s.styles["red-background"]} position-relative`,children:[e.jsx("span",{className:`${s.styles["version-prod"]}`,children:`v ${t}`}),e.jsx(b,{data:S}),e.jsxs("div",{className:`${s.styles["login-content"]}`,children:[e.jsxs(a.Navbar,{light:!0,expand:"md",children:[e.jsx(a.NavbarBrand,{href:"/",className:`${s.styles["logo-home"]}`,children:e.jsx("img",{src:s.getStaticFileUrl("images/logo-white.svg"),alt:"mario"})}),e.jsx(f,{onClick:r,className:`${s.styles["hide-in-desktop"]} ${s.styles["hamburger-menu"]}`}),e.jsxs(a.Collapse,{isOpen:c,navbar:!0,className:`${s.styles["collapse-box"]}`,children:[e.jsxs(a.Nav,{className:`${s.styles["nav-home"]} d-md-flex w-100 justify-content-center mr-auto`,navbar:!0,children:[e.jsx(a.NavItem,{children:e.jsx(a.NavLink,{className:`${s.styles["learn-more"]} align-self-md-center`,href:"https://marioframework.com/software",target:"blank",children:"Learn More"})}),e.jsx(a.NavItem,{children:e.jsx(g.Link,{className:`${s.styles.contact} align-self-md-center`,to:"/contact",children:"Contact"})}),e.jsx(a.NavItem,{children:e.jsx(a.NavLink,{className:`${s.styles["learn-more"]} align-self-md-center`,href:"/privacy-policy",target:"blank",children:"Privacy Policy"})})]}),e.jsx("div",{className:`${s.styles["hide-in-mobile"]} d-flex justify-content-end`,children:n?e.jsx(g.Link,{to:n.roles.includes("Admin")?$:n.roles.includes("Teacher")?I:k,className:`${s.styles["btn-trans-border"]}`,children:"Dashboard"}):e.jsx(g.Link,{to:"/login",className:`${s.styles["btn-trans-border"]}`,children:"Login"})})]})]}),e.jsx("div",{className:"",children:e.jsx(y,{})}),e.jsx("div",{className:`${s.styles["digital-privacy-icon"]}`,children:e.jsx("a",{href:"https://cert.privo.com/#/companies/marioFrameworkLlc",target:"blank",children:e.jsx("img",{src:s.getStaticFileUrl("images/STUDENT1.png"),alt:"icon"})})})]})]})};exports.default=E;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { Table as W, Row as A, Col as f, Input as V, FormGroup as X, Label as
|
|
2
|
+
import { Table as W, Row as A, Col as f, Input as V, FormGroup as X, Label as H, Button as Z } from "reactstrap";
|
|
3
3
|
import { useNavigate as Y, useParams as ee } from "react-router-dom";
|
|
4
4
|
import { Editor as te } from "@tinymce/tinymce-react";
|
|
5
5
|
import { Formik as ae } from "formik";
|
|
6
|
-
import {
|
|
6
|
+
import { H as se, v as ne, s as w, c as x, J as ie, x as oe, h as d, Q as le, R as U, E as B, K as ce, O as re } from "./index-B3rBIMXj.js";
|
|
7
7
|
import { useTranslation as K } from "react-i18next";
|
|
8
|
-
import { useEffect as L, Fragment as me, useState as z, useCallback as
|
|
8
|
+
import { useEffect as L, Fragment as me, useState as z, useCallback as P } from "react";
|
|
9
9
|
import de from "react-select";
|
|
10
10
|
import { useDispatch as Q, useSelector as J } from "react-redux";
|
|
11
|
-
import { a as ue, b as he, u as pe, c as fe } from "./mailCategoryService-
|
|
11
|
+
import { a as ue, b as he, u as pe, c as fe } from "./mailCategoryService-DwzZAJWg.js";
|
|
12
12
|
import * as D from "yup";
|
|
13
|
-
const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline text-center cursor-pointer hover-opacity", title: "Delete", onClick: i, children: /* @__PURE__ */ e(se, {}) }),
|
|
13
|
+
const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline text-center cursor-pointer hover-opacity", title: "Delete", onClick: i, children: /* @__PURE__ */ e(se, {}) }), O = [
|
|
14
14
|
{ label: "$USER_FIRST_NAME$", meaning: "User first name" },
|
|
15
15
|
{ label: "$USER_LAST_NAME$", meaning: "User last name" },
|
|
16
16
|
{ label: "$PASSWORD$", meaning: "Password" },
|
|
@@ -24,7 +24,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
24
24
|
className: l
|
|
25
25
|
}) => {
|
|
26
26
|
const { t: u } = K();
|
|
27
|
-
let b = o ? [...
|
|
27
|
+
let b = o ? [...O, { label: "$RESET_LINK$", meaning: "Reset link" }] : O;
|
|
28
28
|
return /* @__PURE__ */ r(W, { bordered: !0, hover: !0, striped: !0, responsive: !0, size: "sm", children: [
|
|
29
29
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ r("tr", { children: [
|
|
30
30
|
/* @__PURE__ */ e("th", { className: `align-top ${l}`, children: u("params") }),
|
|
@@ -86,9 +86,9 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
86
86
|
}, []), L(() => {
|
|
87
87
|
i && j();
|
|
88
88
|
}, [i]);
|
|
89
|
-
const j =
|
|
89
|
+
const j = P(async () => {
|
|
90
90
|
var n, s;
|
|
91
|
-
l(
|
|
91
|
+
l(w(!0));
|
|
92
92
|
try {
|
|
93
93
|
const a = await he(i);
|
|
94
94
|
h({
|
|
@@ -111,24 +111,24 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
111
111
|
})
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
|
-
l(
|
|
114
|
+
l(w(!1));
|
|
115
115
|
}, [i]), M = (n) => o = n, F = (n) => {
|
|
116
116
|
o && o.editor.execCommand(
|
|
117
117
|
"mceInsertContent",
|
|
118
118
|
!1,
|
|
119
119
|
` ${n.label}`
|
|
120
120
|
);
|
|
121
|
-
},
|
|
121
|
+
}, v = P(() => {
|
|
122
122
|
u(Ie);
|
|
123
|
-
}, []), $ =
|
|
123
|
+
}, []), $ = P(
|
|
124
124
|
async (n) => {
|
|
125
125
|
var s, a;
|
|
126
|
-
l(
|
|
126
|
+
l(w(!0));
|
|
127
127
|
try {
|
|
128
128
|
if (p && p.length) {
|
|
129
|
-
const _ = (await
|
|
130
|
-
key:
|
|
131
|
-
name:
|
|
129
|
+
const _ = (await T()).map((k) => ({
|
|
130
|
+
key: k.data.key,
|
|
131
|
+
name: k.data.name
|
|
132
132
|
}));
|
|
133
133
|
n.attachments = [...n.attachments, ..._];
|
|
134
134
|
}
|
|
@@ -137,7 +137,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
137
137
|
type: "success",
|
|
138
138
|
message: `${i ? "Update" : "Create"} template successfully`
|
|
139
139
|
})
|
|
140
|
-
),
|
|
140
|
+
), v();
|
|
141
141
|
} catch (t) {
|
|
142
142
|
l(
|
|
143
143
|
x({
|
|
@@ -146,7 +146,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
146
146
|
})
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
|
-
l(
|
|
149
|
+
l(w(!1));
|
|
150
150
|
},
|
|
151
151
|
[i, p]
|
|
152
152
|
), g = () => {
|
|
@@ -169,7 +169,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
169
169
|
for (const t of a)
|
|
170
170
|
for (const c of t.files) {
|
|
171
171
|
const { name: _ } = c;
|
|
172
|
-
!I.includes(c) && !n.some((
|
|
172
|
+
!I.includes(c) && !n.some((k) => k.name === _) && n.push({ name: _, inputId: t.id });
|
|
173
173
|
}
|
|
174
174
|
R(n);
|
|
175
175
|
}, y = (n, s) => {
|
|
@@ -189,7 +189,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
189
189
|
L(() => {
|
|
190
190
|
N();
|
|
191
191
|
}, [I]);
|
|
192
|
-
const
|
|
192
|
+
const T = async () => {
|
|
193
193
|
const n = document.getElementsByClassName(
|
|
194
194
|
"input-attachment"
|
|
195
195
|
), s = [];
|
|
@@ -204,7 +204,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
204
204
|
emailTemplateDetail: b,
|
|
205
205
|
setEditorRef: M,
|
|
206
206
|
addParams: F,
|
|
207
|
-
backToList:
|
|
207
|
+
backToList: v,
|
|
208
208
|
confirmData: $,
|
|
209
209
|
edited: C,
|
|
210
210
|
setEdited: E,
|
|
@@ -227,7 +227,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
227
227
|
"detail-header": "_detail-header_oasq7_1",
|
|
228
228
|
"form-check-disabled": "_form-check-disabled_oasq7_8",
|
|
229
229
|
"active-status": "_active-status_oasq7_14"
|
|
230
|
-
}, Se = "create_email_template",
|
|
230
|
+
}, Se = "create_email_template", ve = "edit_email_template", Fe = () => {
|
|
231
231
|
const { id: i } = ee(), { t: o } = K(), { classFontSize: l } = oe(), {
|
|
232
232
|
emailTemplateDetail: u,
|
|
233
233
|
setEditorRef: b,
|
|
@@ -240,7 +240,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
240
240
|
onAttachFile: p,
|
|
241
241
|
fileUpload: R,
|
|
242
242
|
removeAttachment: j
|
|
243
|
-
} = _e(parseInt(i || "0")), M = i ?
|
|
243
|
+
} = _e(parseInt(i || "0")), M = i ? ve : Se, F = i ? "update" : "create", v = J(
|
|
244
244
|
($) => $.mailCategory.mailCategoryList
|
|
245
245
|
);
|
|
246
246
|
return /* @__PURE__ */ e(
|
|
@@ -257,7 +257,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
257
257
|
values: g,
|
|
258
258
|
touched: N,
|
|
259
259
|
errors: y,
|
|
260
|
-
setFieldValue:
|
|
260
|
+
setFieldValue: T,
|
|
261
261
|
handleChange: n,
|
|
262
262
|
handleBlur: s,
|
|
263
263
|
handleSubmit: a
|
|
@@ -295,7 +295,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
295
295
|
id: "disable-checkbox",
|
|
296
296
|
checked: !g.isDisabled,
|
|
297
297
|
onChange: () => {
|
|
298
|
-
|
|
298
|
+
T(
|
|
299
299
|
"isDisabled",
|
|
300
300
|
!g.isDisabled
|
|
301
301
|
);
|
|
@@ -303,10 +303,10 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
303
303
|
className: ` ${q["active-status"]}`
|
|
304
304
|
}
|
|
305
305
|
),
|
|
306
|
-
/* @__PURE__ */ e(
|
|
306
|
+
/* @__PURE__ */ e(H, { check: !0, for: "di-default-checkbox", className: ` ${d["custom-font-size"]}`, children: o("enabled") })
|
|
307
307
|
] })
|
|
308
308
|
] }),
|
|
309
|
-
N.subject && y.subject && /* @__PURE__ */ e(
|
|
309
|
+
N.subject && y.subject && /* @__PURE__ */ e(B, { text: y.subject })
|
|
310
310
|
] }),
|
|
311
311
|
/* @__PURE__ */ r(f, { md: 4, children: [
|
|
312
312
|
/* @__PURE__ */ e(U, { className: ` ${d["custom-font-size"]}`, text: o("category") }),
|
|
@@ -314,13 +314,13 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
314
314
|
ye,
|
|
315
315
|
{
|
|
316
316
|
onChange: (t) => {
|
|
317
|
-
|
|
317
|
+
T("categoryId", t.value), S();
|
|
318
318
|
},
|
|
319
319
|
id: g.categoryId,
|
|
320
320
|
className: ` ${d["custom-font-size"]}`
|
|
321
321
|
}
|
|
322
322
|
),
|
|
323
|
-
N.categoryId && y.categoryId && /* @__PURE__ */ e(
|
|
323
|
+
N.categoryId && y.categoryId && /* @__PURE__ */ e(B, { text: y.categoryId })
|
|
324
324
|
] })
|
|
325
325
|
] }),
|
|
326
326
|
/* @__PURE__ */ r(A, { className: "mb-2", children: [
|
|
@@ -335,14 +335,14 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
335
335
|
initialValue: u.body,
|
|
336
336
|
init: ce.email,
|
|
337
337
|
onEditorChange: (t) => {
|
|
338
|
-
|
|
338
|
+
T(
|
|
339
339
|
"body",
|
|
340
340
|
t
|
|
341
341
|
), S();
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
),
|
|
345
|
-
N.body && y.body && /* @__PURE__ */ e(
|
|
345
|
+
N.body && y.body && /* @__PURE__ */ e(B, { text: y.body })
|
|
346
346
|
] }),
|
|
347
347
|
/* @__PURE__ */ e(f, { md: 12, children: /* @__PURE__ */ r(A, { children: [
|
|
348
348
|
/* @__PURE__ */ e(f, { md: 3, children: /* @__PURE__ */ e(
|
|
@@ -365,7 +365,7 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
365
365
|
G,
|
|
366
366
|
{
|
|
367
367
|
label: t.name,
|
|
368
|
-
onRemove: () =>
|
|
368
|
+
onRemove: () => T(
|
|
369
369
|
"attachments",
|
|
370
370
|
g.attachments.filter(
|
|
371
371
|
(c) => c.name !== t.name
|
|
@@ -403,12 +403,12 @@ const ge = ({ onClick: i }) => /* @__PURE__ */ e("div", { className: "d-inline t
|
|
|
403
403
|
] }) })
|
|
404
404
|
] }) }),
|
|
405
405
|
/* @__PURE__ */ r(f, { md: 4, children: [
|
|
406
|
-
/* @__PURE__ */ e(
|
|
406
|
+
/* @__PURE__ */ e(H, { className: ` ${d["custom-font-size"]}`, children: o("mail_params") }),
|
|
407
407
|
/* @__PURE__ */ e(
|
|
408
408
|
be,
|
|
409
409
|
{
|
|
410
410
|
onClick: (t) => h(t),
|
|
411
|
-
isResetPasswordTemplate: g.categoryId == (
|
|
411
|
+
isResetPasswordTemplate: g.categoryId == (v && v.length > 0 && v.filter(
|
|
412
412
|
(t) => t.name == "Reset password"
|
|
413
413
|
)[0].id),
|
|
414
414
|
className: ` ${d["custom-font-size"]}`
|