touchstudy-core 0.1.53 → 0.1.54
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/index.js
CHANGED
@@ -1295,6 +1295,8 @@ var store = toolkit.configureStore({
|
|
1295
1295
|
|
1296
1296
|
var TITLE = "Not found";
|
1297
1297
|
var NotFound = function NotFound() {
|
1298
|
+
var _useTranslation = reactI18next.useTranslation(),
|
1299
|
+
t = _useTranslation.t;
|
1298
1300
|
React.useEffect(function () {
|
1299
1301
|
document.title = TITLE;
|
1300
1302
|
});
|
@@ -1308,9 +1310,9 @@ var NotFound = function NotFound() {
|
|
1308
1310
|
className: "float-left"
|
1309
1311
|
}, React__default.createElement("h4", {
|
1310
1312
|
className: "pt-3"
|
1311
|
-
},
|
1313
|
+
}, t('oops')), React__default.createElement("p", {
|
1312
1314
|
className: "text-muted mb-2"
|
1313
|
-
},
|
1315
|
+
}, t('the_page_you_are_looking_for_was_not_found')), React__default.createElement("div", null))));
|
1314
1316
|
};
|
1315
1317
|
|
1316
1318
|
var loadingStyle = {
|
@@ -1518,13 +1520,10 @@ var LayoutContext = function LayoutContext(_ref) {
|
|
1518
1520
|
var ConfirmDialog = function ConfirmDialog(_ref) {
|
1519
1521
|
var open = _ref.open,
|
1520
1522
|
text = _ref.text,
|
1521
|
-
|
1522
|
-
|
1523
|
-
_ref$okText = _ref.okText,
|
1524
|
-
okText = _ref$okText === void 0 ? "예" : _ref$okText,
|
1523
|
+
cancelText = _ref.cancelText,
|
1524
|
+
okText = _ref.okText,
|
1525
1525
|
isDelete = _ref.isDelete,
|
1526
|
-
|
1527
|
-
title = _ref$title === void 0 ? "확인" : _ref$title,
|
1526
|
+
title = _ref.title,
|
1528
1527
|
confirmText = _ref.confirmText,
|
1529
1528
|
titleClassName = _ref.titleClassName,
|
1530
1529
|
toggle = _ref.toggle,
|
@@ -1532,6 +1531,10 @@ var ConfirmDialog = function ConfirmDialog(_ref) {
|
|
1532
1531
|
var _useState = React.useState(),
|
1533
1532
|
confirmTextValue = _useState[0],
|
1534
1533
|
setConfirmTextValue = _useState[1];
|
1534
|
+
var _useTranslation = reactI18next.useTranslation(),
|
1535
|
+
t = _useTranslation.t;
|
1536
|
+
var _useLanguage = useLanguage(),
|
1537
|
+
currentLanguage = _useLanguage.currentLanguage;
|
1535
1538
|
var handleConfirm = function handleConfirm() {
|
1536
1539
|
onConfirm();
|
1537
1540
|
};
|
@@ -1556,7 +1559,7 @@ var ConfirmDialog = function ConfirmDialog(_ref) {
|
|
1556
1559
|
sx: {
|
1557
1560
|
fontSize: "16px!important"
|
1558
1561
|
}
|
1559
|
-
}, title), React__default.createElement(material.IconButton, {
|
1562
|
+
}, title || t('confirmation')), React__default.createElement(material.IconButton, {
|
1560
1563
|
"aria-label": "close",
|
1561
1564
|
onClick: toggle,
|
1562
1565
|
sx: {
|
@@ -1571,7 +1574,7 @@ var ConfirmDialog = function ConfirmDialog(_ref) {
|
|
1571
1574
|
className: "pt-2"
|
1572
1575
|
}, React__default.createElement("p", null, React__default.createElement("strong", null, text)), !!confirmText && React__default.createElement("div", {
|
1573
1576
|
className: "w-100"
|
1574
|
-
}, React__default.createElement("p", null, "Enter
|
1577
|
+
}, (currentLanguage === null || currentLanguage === void 0 ? void 0 : currentLanguage.code) === 'en' ? React__default.createElement("p", null, "Enter ", React__default.createElement("strong", null, confirmText), " to confirm delete") : React__default.createElement("p", null, "\uC785\uB825\uD558\uB2E4 ", React__default.createElement("strong", null, confirmText), " \uC0AD\uC81C\uB97C \uD655\uC778\uD558\uB824\uBA74"), React__default.createElement(material.TextField, {
|
1575
1578
|
className: "w-100",
|
1576
1579
|
sx: {
|
1577
1580
|
"& input": {
|
@@ -1580,7 +1583,7 @@ var ConfirmDialog = function ConfirmDialog(_ref) {
|
|
1580
1583
|
},
|
1581
1584
|
value: confirmTextValue,
|
1582
1585
|
onChange: handleChangeConfirmText,
|
1583
|
-
placeholder:
|
1586
|
+
placeholder: t('please_enter'),
|
1584
1587
|
onPaste: handlePaste,
|
1585
1588
|
error: !isValid && confirmTextValue !== undefined,
|
1586
1589
|
color: isValid ? "success" : confirmTextValue !== undefined ? "error" : undefined
|
@@ -1591,13 +1594,13 @@ var ConfirmDialog = function ConfirmDialog(_ref) {
|
|
1591
1594
|
color: "secondary",
|
1592
1595
|
className: "px-3 bg-secondary",
|
1593
1596
|
onClick: toggle
|
1594
|
-
}, cancelText), React__default.createElement(material.Button, {
|
1597
|
+
}, cancelText || t("no")), React__default.createElement(material.Button, {
|
1595
1598
|
variant: "contained",
|
1596
1599
|
color: isDelete ? "error" : "primary",
|
1597
1600
|
className: "px-3",
|
1598
1601
|
disabled: !!confirmText && (confirmTextValue === null || confirmTextValue === void 0 ? void 0 : confirmTextValue.trim()) !== confirmText.trim(),
|
1599
1602
|
onClick: handleConfirm
|
1600
|
-
}, okText)));
|
1603
|
+
}, okText || t('yes'))));
|
1601
1604
|
};
|
1602
1605
|
|
1603
1606
|
var CommonDialog = function CommonDialog(_ref) {
|
@@ -2207,6 +2210,95 @@ var update_category = "카테고리 업데이트";
|
|
2207
2210
|
var create_new_category = "새 카테고리 만들기";
|
2208
2211
|
var parent_category = "상위 카테고리:";
|
2209
2212
|
var enter_category_name = "카테고리 이름을 입력하세요";
|
2213
|
+
var new_class = "새로운 수업";
|
2214
|
+
var classes = "클래스";
|
2215
|
+
var confirm_delete_class = "수업을 삭제하시겠습니까:";
|
2216
|
+
var new_exam = "새로운 시험";
|
2217
|
+
var are_you_sure_to_delete_exam = "시험을 삭제하시겠습니까:";
|
2218
|
+
var question_type = "질문 유형";
|
2219
|
+
var question_category = "질문 카테고리";
|
2220
|
+
var select_article = "기사 선택";
|
2221
|
+
var create_social = "소셜 만들기";
|
2222
|
+
var update_social = "소셜 업데이트";
|
2223
|
+
var new_social = "뉴소셜";
|
2224
|
+
var are_you_sure_to_delete_social_link = "소셜 링크를 삭제하시겠습니까:";
|
2225
|
+
var update_subject = "업데이트 제목";
|
2226
|
+
var create_new_subject = "새 주제 만들기";
|
2227
|
+
var subject_name = "주체 이름";
|
2228
|
+
var are_you_sure_to_delete_subject = "제목을 삭제하시겠습니까:";
|
2229
|
+
var drop_a_file_here_or_click_to_browse = "여기에 파일을 놓거나 클릭하여 찾아보세요.";
|
2230
|
+
var delete_users_csv = "사용자 CSV 삭제";
|
2231
|
+
var are_you_sure_to_delete_user = "사용자를 삭제하시겠습니까:";
|
2232
|
+
var enter_phone_number = "전화번호를 입력하세요";
|
2233
|
+
var enter_school_name = "학교 이름을 입력하세요";
|
2234
|
+
var enter_grade = "성적 입력";
|
2235
|
+
var enter_major_name = "주요 이름을 입력하세요";
|
2236
|
+
var enter_parent_name = "부모 이름을 입력하세요";
|
2237
|
+
var enter_parent_phone_number = "부모 전화번호를 입력하세요";
|
2238
|
+
var select_role = "역할 선택";
|
2239
|
+
var import_users = "사용자 가져오기";
|
2240
|
+
var remove_users = "사용자 제거";
|
2241
|
+
var download_template = "템플릿 다운로드";
|
2242
|
+
var export_csv = "CSV 내보내기";
|
2243
|
+
var select_type = "유형 선택";
|
2244
|
+
var no_message = "메시지 없음";
|
2245
|
+
var this_is_the_guidance_text = "안내 텍스트입니다.";
|
2246
|
+
var oops = "이런! 당신이졌다.";
|
2247
|
+
var please_enter = "들어 오세요...";
|
2248
|
+
var hint = "힌트";
|
2249
|
+
var save_and_add_next_question = "저장하고 다음 질문 추가";
|
2250
|
+
var question_text = "질문 텍스트";
|
2251
|
+
var article = "기사";
|
2252
|
+
var notifications = "알림";
|
2253
|
+
var exams = "시험";
|
2254
|
+
var questions = "질문";
|
2255
|
+
var dashboard = "계기반";
|
2256
|
+
var question_bank = "문제 은행";
|
2257
|
+
var exam_categories = "시험 카테고리";
|
2258
|
+
var social_link = "소셜 링크";
|
2259
|
+
var created_date = "생성 날짜";
|
2260
|
+
var are_you_sure_to_delete_academy = "아카데미를 삭제하시겠습니까:";
|
2261
|
+
var action = "행동";
|
2262
|
+
var number_of_questions = "질문 수";
|
2263
|
+
var are_you_sure_to_delete_category = "카테고리를 삭제하시겠습니까:";
|
2264
|
+
var add_new_lesson = "새 강의 추가";
|
2265
|
+
var update_lesson = "강의 업데이트:";
|
2266
|
+
var are_you_sure_to_remove_lesson = "강의를 삭제하시겠습니까:";
|
2267
|
+
var clear = "분명한";
|
2268
|
+
var add_to_list = "목록에 추가";
|
2269
|
+
var add_students = "학생 추가";
|
2270
|
+
var are_you_sure_to_remove_student = "학생을 삭제하시겠습니까:";
|
2271
|
+
var add_teachers = "교사 추가";
|
2272
|
+
var please_enter_a_title = "제목을 입력하세요";
|
2273
|
+
var questions_required_at_least_one_question = "질문에는 하나 이상의 질문이 필요합니다.";
|
2274
|
+
var please_enter_number_of_answers_for_question_number = "질문 번호 {{number}} 에 대한 답변 수를 입력하십시오.";
|
2275
|
+
var number_of_answers_must_be_greater_than_1_for_question_number = "질문 번호 {{number}} 에 대한 답변 수는 1보다 커야 합니다.";
|
2276
|
+
var correct_answer_must_be_less_than_for_question_number = "질문 번호 {{number}} 에 대한 정답은 {{question}} 보다 작아야 합니다.";
|
2277
|
+
var update_exam_successfully = "시험을 성공적으로 업데이트했습니다.";
|
2278
|
+
var create_exam_successfully = "시험을 성공적으로 만들었습니다.";
|
2279
|
+
var create_notification = "알림 생성";
|
2280
|
+
var update_notification = "업데이트 알림";
|
2281
|
+
var new_notification = "새로운 알림";
|
2282
|
+
var are_you_sure_to_delete_notification = "알림을 삭제하시겠습니까:";
|
2283
|
+
var answer_list = "답변 목록";
|
2284
|
+
var are_you_sure_to_delete_question = "질문을 삭제하시겠습니까:";
|
2285
|
+
var school_name_is_required = "학교 이름은 필수 항목입니다.";
|
2286
|
+
var phone_number_is_not_valid = "전화번호가 유효하지 않습니다.";
|
2287
|
+
var role_is_required = "역할은 필수입니다.";
|
2288
|
+
var student_grade_is_required = "학생 성적은 필수 항목입니다.";
|
2289
|
+
var major_is_required = "전공은 필수입니다";
|
2290
|
+
var phone_number_is_required = "전화번호는 필수 항목입니다.";
|
2291
|
+
var parent_name_is_required = "부모 이름이 필요합니다";
|
2292
|
+
var category_name = "카테고리 이름";
|
2293
|
+
var categories = "카테고리";
|
2294
|
+
var teacher = "선생님";
|
2295
|
+
var role = "역할";
|
2296
|
+
var total_uses = "총 사용량";
|
2297
|
+
var create_question = "질문 만들기";
|
2298
|
+
var articles = "조항";
|
2299
|
+
var add_lesson = "레슨 추가";
|
2300
|
+
var date = "날짜";
|
2301
|
+
var the_code_has_been_copied_to_your_clipboard = "코드가 클립보드에 복사되었습니다.";
|
2210
2302
|
var lang_ko = {
|
2211
2303
|
problem_solving: problem_solving,
|
2212
2304
|
my_story: my_story,
|
@@ -2627,7 +2719,98 @@ var lang_ko = {
|
|
2627
2719
|
update_category: update_category,
|
2628
2720
|
create_new_category: create_new_category,
|
2629
2721
|
parent_category: parent_category,
|
2630
|
-
enter_category_name: enter_category_name
|
2722
|
+
enter_category_name: enter_category_name,
|
2723
|
+
new_class: new_class,
|
2724
|
+
classes: classes,
|
2725
|
+
confirm_delete_class: confirm_delete_class,
|
2726
|
+
new_exam: new_exam,
|
2727
|
+
are_you_sure_to_delete_exam: are_you_sure_to_delete_exam,
|
2728
|
+
question_type: question_type,
|
2729
|
+
question_category: question_category,
|
2730
|
+
select_article: select_article,
|
2731
|
+
create_social: create_social,
|
2732
|
+
update_social: update_social,
|
2733
|
+
new_social: new_social,
|
2734
|
+
are_you_sure_to_delete_social_link: are_you_sure_to_delete_social_link,
|
2735
|
+
update_subject: update_subject,
|
2736
|
+
create_new_subject: create_new_subject,
|
2737
|
+
subject_name: subject_name,
|
2738
|
+
are_you_sure_to_delete_subject: are_you_sure_to_delete_subject,
|
2739
|
+
drop_a_file_here_or_click_to_browse: drop_a_file_here_or_click_to_browse,
|
2740
|
+
delete_users_csv: delete_users_csv,
|
2741
|
+
are_you_sure_to_delete_user: are_you_sure_to_delete_user,
|
2742
|
+
enter_phone_number: enter_phone_number,
|
2743
|
+
enter_school_name: enter_school_name,
|
2744
|
+
enter_grade: enter_grade,
|
2745
|
+
enter_major_name: enter_major_name,
|
2746
|
+
enter_parent_name: enter_parent_name,
|
2747
|
+
enter_parent_phone_number: enter_parent_phone_number,
|
2748
|
+
select_role: select_role,
|
2749
|
+
import_users: import_users,
|
2750
|
+
remove_users: remove_users,
|
2751
|
+
download_template: download_template,
|
2752
|
+
export_csv: export_csv,
|
2753
|
+
select_type: select_type,
|
2754
|
+
no_message: no_message,
|
2755
|
+
this_is_the_guidance_text: this_is_the_guidance_text,
|
2756
|
+
"the_page_you_are_looking_for_was_not_found.": "찾으시는 페이지를 찾을 수 없습니다.",
|
2757
|
+
oops: oops,
|
2758
|
+
please_enter: please_enter,
|
2759
|
+
hint: hint,
|
2760
|
+
save_and_add_next_question: save_and_add_next_question,
|
2761
|
+
question_text: question_text,
|
2762
|
+
article: article,
|
2763
|
+
notifications: notifications,
|
2764
|
+
exams: exams,
|
2765
|
+
questions: questions,
|
2766
|
+
dashboard: dashboard,
|
2767
|
+
question_bank: question_bank,
|
2768
|
+
exam_categories: exam_categories,
|
2769
|
+
social_link: social_link,
|
2770
|
+
created_date: created_date,
|
2771
|
+
are_you_sure_to_delete_academy: are_you_sure_to_delete_academy,
|
2772
|
+
action: action,
|
2773
|
+
number_of_questions: number_of_questions,
|
2774
|
+
are_you_sure_to_delete_category: are_you_sure_to_delete_category,
|
2775
|
+
add_new_lesson: add_new_lesson,
|
2776
|
+
update_lesson: update_lesson,
|
2777
|
+
are_you_sure_to_remove_lesson: are_you_sure_to_remove_lesson,
|
2778
|
+
clear: clear,
|
2779
|
+
add_to_list: add_to_list,
|
2780
|
+
add_students: add_students,
|
2781
|
+
are_you_sure_to_remove_student: are_you_sure_to_remove_student,
|
2782
|
+
add_teachers: add_teachers,
|
2783
|
+
please_enter_a_title: please_enter_a_title,
|
2784
|
+
questions_required_at_least_one_question: questions_required_at_least_one_question,
|
2785
|
+
please_enter_number_of_answers_for_question_number: please_enter_number_of_answers_for_question_number,
|
2786
|
+
number_of_answers_must_be_greater_than_1_for_question_number: number_of_answers_must_be_greater_than_1_for_question_number,
|
2787
|
+
"please_choose_at_least_one_answer_for_question_number ": "질문 번호 {{number}}에 대해 하나 이상의 답변을 선택하십시오.",
|
2788
|
+
correct_answer_must_be_less_than_for_question_number: correct_answer_must_be_less_than_for_question_number,
|
2789
|
+
update_exam_successfully: update_exam_successfully,
|
2790
|
+
create_exam_successfully: create_exam_successfully,
|
2791
|
+
create_notification: create_notification,
|
2792
|
+
update_notification: update_notification,
|
2793
|
+
new_notification: new_notification,
|
2794
|
+
are_you_sure_to_delete_notification: are_you_sure_to_delete_notification,
|
2795
|
+
answer_list: answer_list,
|
2796
|
+
are_you_sure_to_delete_question: are_you_sure_to_delete_question,
|
2797
|
+
school_name_is_required: school_name_is_required,
|
2798
|
+
phone_number_is_not_valid: phone_number_is_not_valid,
|
2799
|
+
role_is_required: role_is_required,
|
2800
|
+
student_grade_is_required: student_grade_is_required,
|
2801
|
+
major_is_required: major_is_required,
|
2802
|
+
phone_number_is_required: phone_number_is_required,
|
2803
|
+
parent_name_is_required: parent_name_is_required,
|
2804
|
+
category_name: category_name,
|
2805
|
+
categories: categories,
|
2806
|
+
teacher: teacher,
|
2807
|
+
role: role,
|
2808
|
+
total_uses: total_uses,
|
2809
|
+
create_question: create_question,
|
2810
|
+
articles: articles,
|
2811
|
+
add_lesson: add_lesson,
|
2812
|
+
date: date,
|
2813
|
+
the_code_has_been_copied_to_your_clipboard: the_code_has_been_copied_to_your_clipboard
|
2631
2814
|
};
|
2632
2815
|
|
2633
2816
|
var problem_solving$1 = "Problem Solving";
|
@@ -2701,19 +2884,19 @@ var correct_rate$1 = "Correct rate";
|
|
2701
2884
|
var difficult_level = "Difficult level";
|
2702
2885
|
var difficulty_explain = "(The Difficulty Level provides an indication of the difficulty level of each test question)";
|
2703
2886
|
var explain_your_answer = "Explain your answer";
|
2704
|
-
var hint = "Hint";
|
2705
|
-
var save_and_add_next_question = "Save and add next question";
|
2887
|
+
var hint$1 = "Hint";
|
2888
|
+
var save_and_add_next_question$1 = "Save and add next question";
|
2706
2889
|
var save_and_exit$1 = "Save and exit";
|
2707
|
-
var question_text = "Question text";
|
2890
|
+
var question_text$1 = "Question text";
|
2708
2891
|
var title$1 = "Title";
|
2709
|
-
var create_question = "Create question";
|
2892
|
+
var create_question$1 = "Create question";
|
2710
2893
|
var parent_question = "Parent question";
|
2711
2894
|
var edit_question = "Edit question";
|
2712
2895
|
var edit$1 = "Edit";
|
2713
2896
|
var easy = "Easy";
|
2714
2897
|
var intermediate = "Intermediate";
|
2715
2898
|
var difficult = "Difficult";
|
2716
|
-
var article = "Article";
|
2899
|
+
var article$1 = "Article";
|
2717
2900
|
var correct_answer = "Correct answer";
|
2718
2901
|
var mark = "Mark";
|
2719
2902
|
var answer$1 = "Answer";
|
@@ -2775,11 +2958,11 @@ var friday$1 = "Friday";
|
|
2775
2958
|
var saturday$1 = "Saturday";
|
2776
2959
|
var total_lessons$1 = "Total lessons";
|
2777
2960
|
var is_cancelled = "Is cancelled";
|
2778
|
-
var date = "Date";
|
2961
|
+
var date$1 = "Date";
|
2779
2962
|
var weekly_days_required$1 = "Weekly days are required";
|
2780
2963
|
var main_teacher$1 = "Main teacher";
|
2781
2964
|
var main_teacher_required = "Main teacher is required";
|
2782
|
-
var teacher = "Teacher";
|
2965
|
+
var teacher$1 = "Teacher";
|
2783
2966
|
var the_first$1 = "The first";
|
2784
2967
|
var the_second$1 = "The second";
|
2785
2968
|
var the_third$1 = "The third";
|
@@ -3091,6 +3274,88 @@ var update_category$1 = "Update Category";
|
|
3091
3274
|
var create_new_category$1 = "Create New Category";
|
3092
3275
|
var parent_category$1 = "Parent Category:";
|
3093
3276
|
var enter_category_name$1 = "Enter Category Name";
|
3277
|
+
var new_class$1 = "New class";
|
3278
|
+
var classes$1 = "Classes";
|
3279
|
+
var confirm_delete_class$1 = "Are you sure to delete class:";
|
3280
|
+
var new_exam$1 = "New Exam";
|
3281
|
+
var are_you_sure_to_delete_exam$1 = "Are you sure to delete exam:";
|
3282
|
+
var question_type$1 = "Question Type";
|
3283
|
+
var question_category$1 = "Question Category";
|
3284
|
+
var select_article$1 = "Select Article";
|
3285
|
+
var create_social$1 = "Create Social";
|
3286
|
+
var update_social$1 = "Update Social";
|
3287
|
+
var new_social$1 = "New Social";
|
3288
|
+
var are_you_sure_to_delete_social_link$1 = "Are you sure to delete social link:";
|
3289
|
+
var update_subject$1 = "Update Subject";
|
3290
|
+
var create_new_subject$1 = "Create New Subject";
|
3291
|
+
var subject_name$1 = "Subject name";
|
3292
|
+
var are_you_sure_to_delete_subject$1 = "Are you sure to delete subject:";
|
3293
|
+
var drop_a_file_here_or_click_to_browse$1 = "Drop a file here or click to browse";
|
3294
|
+
var delete_users_csv$1 = "Delete users csv";
|
3295
|
+
var are_you_sure_to_delete_user$1 = "Are you sure to delete user:";
|
3296
|
+
var enter_phone_number$1 = "Enter phone number";
|
3297
|
+
var enter_school_name$1 = "Enter school name";
|
3298
|
+
var enter_grade$1 = "Enter grade";
|
3299
|
+
var enter_major_name$1 = "Enter major name";
|
3300
|
+
var enter_parent_name$1 = "Enter parent name";
|
3301
|
+
var enter_parent_phone_number$1 = "Enter parent phone number";
|
3302
|
+
var select_role$1 = "Select role";
|
3303
|
+
var import_users$1 = "Import users";
|
3304
|
+
var remove_users$1 = "Remove users";
|
3305
|
+
var download_template$1 = "Download template";
|
3306
|
+
var export_csv$1 = "Export csv";
|
3307
|
+
var select_type$1 = "Select type";
|
3308
|
+
var no_message$1 = "No message";
|
3309
|
+
var this_is_the_guidance_text$1 = "This is the guidance text.";
|
3310
|
+
var oops$1 = "Oops! You are lost.";
|
3311
|
+
var please_enter$1 = "Please enter...";
|
3312
|
+
var notifications$1 = "Notifications";
|
3313
|
+
var exams$1 = "Exams";
|
3314
|
+
var questions$1 = "Questions";
|
3315
|
+
var dashboard$1 = "Dashboard";
|
3316
|
+
var question_bank$1 = "Question Bank";
|
3317
|
+
var exam_categories$1 = "Exam Categories";
|
3318
|
+
var social_link$1 = "Social Link";
|
3319
|
+
var created_date$1 = "Created Date";
|
3320
|
+
var are_you_sure_to_delete_academy$1 = "Are you sure to delete academy:";
|
3321
|
+
var action$1 = "Action";
|
3322
|
+
var number_of_questions$1 = "Number Of Questions";
|
3323
|
+
var are_you_sure_to_delete_category$1 = "Are you sure to delete category:";
|
3324
|
+
var add_new_lesson$1 = "Add new lesson";
|
3325
|
+
var update_lesson$1 = "Update lesson:";
|
3326
|
+
var are_you_sure_to_remove_lesson$1 = "Are you sure to remove lesson:";
|
3327
|
+
var clear$1 = "Clear";
|
3328
|
+
var add_to_list$1 = "Add to list";
|
3329
|
+
var add_students$1 = "Add students";
|
3330
|
+
var are_you_sure_to_remove_student$1 = "Are you sure to remove student:";
|
3331
|
+
var add_teachers$1 = "Add teachers";
|
3332
|
+
var please_enter_a_title$1 = "Please enter a title";
|
3333
|
+
var questions_required_at_least_one_question$1 = "Questions required at least one question";
|
3334
|
+
var please_enter_number_of_answers_for_question_number$1 = "Please enter number of answers for question number {{number}}";
|
3335
|
+
var number_of_answers_must_be_greater_than_1_for_question_number$1 = "Number of answers must be greater than 1 for question number {{number}}";
|
3336
|
+
var correct_answer_must_be_less_than_for_question_number$1 = "Correct answer must be less than {{question}} for question number {{number}}";
|
3337
|
+
var update_exam_successfully$1 = "Update exam successfully";
|
3338
|
+
var create_exam_successfully$1 = "Create exam successfully";
|
3339
|
+
var create_notification$1 = "Create Notification";
|
3340
|
+
var update_notification$1 = "Update Notification";
|
3341
|
+
var new_notification$1 = "New Notification";
|
3342
|
+
var are_you_sure_to_delete_notification$1 = "Are you sure to delete notification:";
|
3343
|
+
var answer_list$1 = "Answer List";
|
3344
|
+
var are_you_sure_to_delete_question$1 = "Are you sure to delete question:";
|
3345
|
+
var school_name_is_required$1 = "School name is required";
|
3346
|
+
var phone_number_is_not_valid$1 = "Phone number is not valid";
|
3347
|
+
var role_is_required$1 = "Role is required";
|
3348
|
+
var student_grade_is_required$1 = "Student grade is required";
|
3349
|
+
var major_is_required$1 = "Major is required";
|
3350
|
+
var phone_number_is_required$1 = "Phone number is required";
|
3351
|
+
var parent_name_is_required$1 = "Parent name is required";
|
3352
|
+
var category_name$1 = "Category Name";
|
3353
|
+
var categories$1 = "Categories";
|
3354
|
+
var role$1 = "Role";
|
3355
|
+
var total_uses$1 = "Total Uses";
|
3356
|
+
var articles$1 = "Articles";
|
3357
|
+
var add_lesson$1 = "Add Lesson";
|
3358
|
+
var the_code_has_been_copied_to_your_clipboard$1 = "The code has been copied to your clipboard";
|
3094
3359
|
var lang_en = {
|
3095
3360
|
problem_solving: problem_solving$1,
|
3096
3361
|
my_story: my_story$1,
|
@@ -3165,12 +3430,12 @@ var lang_en = {
|
|
3165
3430
|
difficult_level: difficult_level,
|
3166
3431
|
difficulty_explain: difficulty_explain,
|
3167
3432
|
explain_your_answer: explain_your_answer,
|
3168
|
-
hint: hint,
|
3169
|
-
save_and_add_next_question: save_and_add_next_question,
|
3433
|
+
hint: hint$1,
|
3434
|
+
save_and_add_next_question: save_and_add_next_question$1,
|
3170
3435
|
save_and_exit: save_and_exit$1,
|
3171
|
-
question_text: question_text,
|
3436
|
+
question_text: question_text$1,
|
3172
3437
|
title: title$1,
|
3173
|
-
create_question: create_question,
|
3438
|
+
create_question: create_question$1,
|
3174
3439
|
parent_question: parent_question,
|
3175
3440
|
edit_question: edit_question,
|
3176
3441
|
edit: edit$1,
|
@@ -3178,7 +3443,7 @@ var lang_en = {
|
|
3178
3443
|
easy: easy,
|
3179
3444
|
intermediate: intermediate,
|
3180
3445
|
difficult: difficult,
|
3181
|
-
article: article,
|
3446
|
+
article: article$1,
|
3182
3447
|
correct_answer: correct_answer,
|
3183
3448
|
mark: mark,
|
3184
3449
|
answer: answer$1,
|
@@ -3240,11 +3505,11 @@ var lang_en = {
|
|
3240
3505
|
saturday: saturday$1,
|
3241
3506
|
total_lessons: total_lessons$1,
|
3242
3507
|
is_cancelled: is_cancelled,
|
3243
|
-
date: date,
|
3508
|
+
date: date$1,
|
3244
3509
|
weekly_days_required: weekly_days_required$1,
|
3245
3510
|
main_teacher: main_teacher$1,
|
3246
3511
|
main_teacher_required: main_teacher_required,
|
3247
|
-
teacher: teacher,
|
3512
|
+
teacher: teacher$1,
|
3248
3513
|
the_first: the_first$1,
|
3249
3514
|
the_second: the_second$1,
|
3250
3515
|
the_third: the_third$1,
|
@@ -3545,7 +3810,91 @@ var lang_en = {
|
|
3545
3810
|
update_category: update_category$1,
|
3546
3811
|
create_new_category: create_new_category$1,
|
3547
3812
|
parent_category: parent_category$1,
|
3548
|
-
enter_category_name: enter_category_name$1
|
3813
|
+
enter_category_name: enter_category_name$1,
|
3814
|
+
new_class: new_class$1,
|
3815
|
+
classes: classes$1,
|
3816
|
+
confirm_delete_class: confirm_delete_class$1,
|
3817
|
+
new_exam: new_exam$1,
|
3818
|
+
are_you_sure_to_delete_exam: are_you_sure_to_delete_exam$1,
|
3819
|
+
question_type: question_type$1,
|
3820
|
+
question_category: question_category$1,
|
3821
|
+
select_article: select_article$1,
|
3822
|
+
create_social: create_social$1,
|
3823
|
+
update_social: update_social$1,
|
3824
|
+
new_social: new_social$1,
|
3825
|
+
are_you_sure_to_delete_social_link: are_you_sure_to_delete_social_link$1,
|
3826
|
+
update_subject: update_subject$1,
|
3827
|
+
create_new_subject: create_new_subject$1,
|
3828
|
+
subject_name: subject_name$1,
|
3829
|
+
are_you_sure_to_delete_subject: are_you_sure_to_delete_subject$1,
|
3830
|
+
drop_a_file_here_or_click_to_browse: drop_a_file_here_or_click_to_browse$1,
|
3831
|
+
delete_users_csv: delete_users_csv$1,
|
3832
|
+
are_you_sure_to_delete_user: are_you_sure_to_delete_user$1,
|
3833
|
+
enter_phone_number: enter_phone_number$1,
|
3834
|
+
enter_school_name: enter_school_name$1,
|
3835
|
+
enter_grade: enter_grade$1,
|
3836
|
+
enter_major_name: enter_major_name$1,
|
3837
|
+
enter_parent_name: enter_parent_name$1,
|
3838
|
+
enter_parent_phone_number: enter_parent_phone_number$1,
|
3839
|
+
select_role: select_role$1,
|
3840
|
+
import_users: import_users$1,
|
3841
|
+
remove_users: remove_users$1,
|
3842
|
+
download_template: download_template$1,
|
3843
|
+
export_csv: export_csv$1,
|
3844
|
+
select_type: select_type$1,
|
3845
|
+
no_message: no_message$1,
|
3846
|
+
this_is_the_guidance_text: this_is_the_guidance_text$1,
|
3847
|
+
"the_page_you_are_looking_for_was_not_found.": "The page you are looking for was not found.",
|
3848
|
+
oops: oops$1,
|
3849
|
+
please_enter: please_enter$1,
|
3850
|
+
notifications: notifications$1,
|
3851
|
+
exams: exams$1,
|
3852
|
+
questions: questions$1,
|
3853
|
+
dashboard: dashboard$1,
|
3854
|
+
question_bank: question_bank$1,
|
3855
|
+
exam_categories: exam_categories$1,
|
3856
|
+
social_link: social_link$1,
|
3857
|
+
created_date: created_date$1,
|
3858
|
+
are_you_sure_to_delete_academy: are_you_sure_to_delete_academy$1,
|
3859
|
+
action: action$1,
|
3860
|
+
number_of_questions: number_of_questions$1,
|
3861
|
+
are_you_sure_to_delete_category: are_you_sure_to_delete_category$1,
|
3862
|
+
add_new_lesson: add_new_lesson$1,
|
3863
|
+
update_lesson: update_lesson$1,
|
3864
|
+
are_you_sure_to_remove_lesson: are_you_sure_to_remove_lesson$1,
|
3865
|
+
clear: clear$1,
|
3866
|
+
add_to_list: add_to_list$1,
|
3867
|
+
add_students: add_students$1,
|
3868
|
+
are_you_sure_to_remove_student: are_you_sure_to_remove_student$1,
|
3869
|
+
add_teachers: add_teachers$1,
|
3870
|
+
please_enter_a_title: please_enter_a_title$1,
|
3871
|
+
questions_required_at_least_one_question: questions_required_at_least_one_question$1,
|
3872
|
+
please_enter_number_of_answers_for_question_number: please_enter_number_of_answers_for_question_number$1,
|
3873
|
+
number_of_answers_must_be_greater_than_1_for_question_number: number_of_answers_must_be_greater_than_1_for_question_number$1,
|
3874
|
+
"please_choose_at_least_one_answer_for_question_number ": "Please choose at least one answer for question number {{number}}",
|
3875
|
+
correct_answer_must_be_less_than_for_question_number: correct_answer_must_be_less_than_for_question_number$1,
|
3876
|
+
update_exam_successfully: update_exam_successfully$1,
|
3877
|
+
create_exam_successfully: create_exam_successfully$1,
|
3878
|
+
create_notification: create_notification$1,
|
3879
|
+
update_notification: update_notification$1,
|
3880
|
+
new_notification: new_notification$1,
|
3881
|
+
are_you_sure_to_delete_notification: are_you_sure_to_delete_notification$1,
|
3882
|
+
answer_list: answer_list$1,
|
3883
|
+
are_you_sure_to_delete_question: are_you_sure_to_delete_question$1,
|
3884
|
+
school_name_is_required: school_name_is_required$1,
|
3885
|
+
phone_number_is_not_valid: phone_number_is_not_valid$1,
|
3886
|
+
role_is_required: role_is_required$1,
|
3887
|
+
student_grade_is_required: student_grade_is_required$1,
|
3888
|
+
major_is_required: major_is_required$1,
|
3889
|
+
phone_number_is_required: phone_number_is_required$1,
|
3890
|
+
parent_name_is_required: parent_name_is_required$1,
|
3891
|
+
category_name: category_name$1,
|
3892
|
+
categories: categories$1,
|
3893
|
+
role: role$1,
|
3894
|
+
total_uses: total_uses$1,
|
3895
|
+
articles: articles$1,
|
3896
|
+
add_lesson: add_lesson$1,
|
3897
|
+
the_code_has_been_copied_to_your_clipboard: the_code_has_been_copied_to_your_clipboard$1
|
3549
3898
|
};
|
3550
3899
|
|
3551
3900
|
i18n.use(reactI18next.initReactI18next).init({
|
@@ -4487,14 +4836,14 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
4487
4836
|
return React__default.createElement(formik.Form, null, React__default.createElement("label", {
|
4488
4837
|
htmlFor: "content",
|
4489
4838
|
className: styles$1['form-label'] + " " + styles$1['form-label-dialog']
|
4490
|
-
},
|
4839
|
+
}, t('questions_to_ask')), React__default.createElement(formik.Field, {
|
4491
4840
|
id: "content",
|
4492
4841
|
style: {
|
4493
4842
|
paddingRight: '40px'
|
4494
4843
|
},
|
4495
4844
|
name: "content",
|
4496
4845
|
validate: validate,
|
4497
|
-
placeholder:
|
4846
|
+
placeholder: t('the_problem_is_difficult'),
|
4498
4847
|
className: styles$1['form-control']
|
4499
4848
|
}), React__default.createElement(material.DialogActions, {
|
4500
4849
|
sx: {
|
@@ -4513,7 +4862,7 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
4513
4862
|
fontWeight: 700,
|
4514
4863
|
fontSize: '14px',
|
4515
4864
|
lineHeight: '16.71px'
|
4516
|
-
},
|
4865
|
+
}, t('cancel'))), React__default.createElement(material.Button, {
|
4517
4866
|
variant: 'contained',
|
4518
4867
|
sx: {
|
4519
4868
|
bgcolor: styles.dark
|
@@ -4525,7 +4874,7 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
4525
4874
|
fontSize: '14px',
|
4526
4875
|
lineHeight: '16.71px',
|
4527
4876
|
color: '#FFFFFF'
|
4528
|
-
},
|
4877
|
+
}, t('registration')))));
|
4529
4878
|
}) : React__default.createElement(material.Box, null, React__default.createElement(material.Stack, {
|
4530
4879
|
display: "flex",
|
4531
4880
|
flexDirection: "column",
|
@@ -4661,6 +5010,8 @@ var ChatList = function ChatList(_ref) {
|
|
4661
5010
|
handleUpdateMessage = _ref.handleUpdateMessage,
|
4662
5011
|
handleDeleteMessage = _ref.handleDeleteMessage,
|
4663
5012
|
listItemRef = _ref.listItemRef;
|
5013
|
+
var _useTranslation = reactI18next.useTranslation(),
|
5014
|
+
t = _useTranslation.t;
|
4664
5015
|
var filterMessage = React.useMemo(function () {
|
4665
5016
|
var prevTime = 0;
|
4666
5017
|
var prevSender;
|
@@ -4683,7 +5034,7 @@ var ChatList = function ChatList(_ref) {
|
|
4683
5034
|
className: styles$1["list"] + " " + styles$1["padding-content"] + " d-flex h-100 flex-column mb-0 " + (!(filterMessage !== null && filterMessage !== void 0 && filterMessage.length) ? 'justify-content-center' : '')
|
4684
5035
|
}, !(filterMessage !== null && filterMessage !== void 0 && filterMessage.length) && React__default.createElement("li", {
|
4685
5036
|
className: "text-muted text-center fst-italic fs-6"
|
4686
|
-
},
|
5037
|
+
}, t('no_message')), !!(filterMessage !== null && filterMessage !== void 0 && filterMessage.length) && filterMessage.map(function (message) {
|
4687
5038
|
return React__default.createElement(ChatItem, Object.assign({
|
4688
5039
|
key: message.id
|
4689
5040
|
}, message, {
|
@@ -4803,7 +5154,7 @@ var InputChat = function InputChat(_ref) {
|
|
4803
5154
|
fontSize: "10px",
|
4804
5155
|
lineHeight: "11.93px",
|
4805
5156
|
color: "#97A1AF"
|
4806
|
-
},
|
5157
|
+
}, t('this_is_the_guidance_text'))), React__default.createElement(material.Box, {
|
4807
5158
|
display: "flex",
|
4808
5159
|
flexDirection: "column",
|
4809
5160
|
justifyContent: "flex-end",
|
@@ -5117,7 +5468,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
5117
5468
|
fontSize: "13px",
|
5118
5469
|
lineHeight: "15.51px",
|
5119
5470
|
color: styles.dark
|
5120
|
-
},
|
5471
|
+
}, t('complete_processing')))) : React__default.createElement("div", null));
|
5121
5472
|
};
|
5122
5473
|
return React__default.createElement(material.Grid, {
|
5123
5474
|
container: true
|
@@ -7854,10 +8205,13 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7854
8205
|
var initialValues = defaultValue !== null && typeof defaultValue !== "undefined" ? options.find(function (option) {
|
7855
8206
|
return option.value === defaultValue;
|
7856
8207
|
}) || null : null;
|
8208
|
+
var optionValue = value !== null && typeof value !== "undefined" ? options.find(function (option) {
|
8209
|
+
return option.value === value;
|
8210
|
+
}) || null : null;
|
7857
8211
|
return React__default.createElement(Select__default, Object.assign({
|
7858
8212
|
isDisabled: isDisabled,
|
7859
8213
|
options: options,
|
7860
|
-
value:
|
8214
|
+
value: optionValue,
|
7861
8215
|
defaultValue: initialValues,
|
7862
8216
|
menuPlacement: scrollBottom ? "top" : "auto",
|
7863
8217
|
isMulti: isMulti,
|
@@ -7880,7 +8234,6 @@ var SubjectSelector = function SubjectSelector(_ref) {
|
|
7880
8234
|
title = _ref.title,
|
7881
8235
|
isMulti = _ref.isMulti,
|
7882
8236
|
minimumTextSearchLength = _ref.minimumTextSearchLength,
|
7883
|
-
placeholder = _ref.placeholder,
|
7884
8237
|
defaultValueAtFirst = _ref.defaultValueAtFirst,
|
7885
8238
|
isDisabled = _ref.isDisabled;
|
7886
8239
|
var _useState = React.useState([]),
|
@@ -7966,7 +8319,6 @@ var SubjectSelector = function SubjectSelector(_ref) {
|
|
7966
8319
|
return setSearchString(inputValue);
|
7967
8320
|
},
|
7968
8321
|
isLoading: isLoading,
|
7969
|
-
placeholder: (placeholder != null ? placeholder : minimumTextSearchLength) ? "Type at least " + minimumTextSearchLength + " characters to search" : undefined,
|
7970
8322
|
isMulti: isMulti,
|
7971
8323
|
value: value,
|
7972
8324
|
onChange: handleChange,
|
@@ -8190,12 +8542,16 @@ var useExamDetailView = function useExamDetailView(props) {
|
|
8190
8542
|
var durationOptions = React.useMemo(function () {
|
8191
8543
|
var options = DURATION_OPTIONS.map(function (i) {
|
8192
8544
|
return {
|
8193
|
-
label:
|
8545
|
+
label: t('mins_mins', {
|
8546
|
+
mins: i
|
8547
|
+
}),
|
8194
8548
|
value: i
|
8195
8549
|
};
|
8196
8550
|
});
|
8197
8551
|
if (!!exam.duration && exam.duration > DURATION_OPTIONS[DURATION_OPTIONS.length - 1]) return [].concat(options, [{
|
8198
|
-
label:
|
8552
|
+
label: t('mins_mins', {
|
8553
|
+
mins: exam.duration
|
8554
|
+
}),
|
8199
8555
|
value: exam.duration
|
8200
8556
|
}]);
|
8201
8557
|
return options;
|
@@ -8325,7 +8681,7 @@ var ExamDetailView = function ExamDetailView(_ref) {
|
|
8325
8681
|
onClick: handleAddArticle
|
8326
8682
|
}, React__default.createElement(fa.FaPlusCircle, {
|
8327
8683
|
className: "me-2"
|
8328
|
-
}),
|
8684
|
+
}), t('add_questions'))));
|
8329
8685
|
};
|
8330
8686
|
|
8331
8687
|
var _excluded$4 = ["isOpen", "onClose", "handleSaveExam"];
|
@@ -9075,6 +9431,8 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
9075
9431
|
}) : options.find(function (i) {
|
9076
9432
|
return i.value == value;
|
9077
9433
|
});
|
9434
|
+
var _useTranslation = reactI18next.useTranslation(),
|
9435
|
+
t = _useTranslation.t;
|
9078
9436
|
return React__default.createElement(CreatableSelect, Object.assign({
|
9079
9437
|
isClearable: true,
|
9080
9438
|
isDisabled: isDisabled,
|
@@ -9089,7 +9447,8 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
9089
9447
|
DropdownIndicator: DropdownIndicator,
|
9090
9448
|
Option: CustomOption
|
9091
9449
|
},
|
9092
|
-
styles: customStyles
|
9450
|
+
styles: customStyles,
|
9451
|
+
placeholder: t("select_placeholder")
|
9093
9452
|
}, rest));
|
9094
9453
|
};
|
9095
9454
|
|
@@ -9109,6 +9468,8 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
9109
9468
|
}) : options.find(function (i) {
|
9110
9469
|
return i.value == value;
|
9111
9470
|
});
|
9471
|
+
var _useTranslation = reactI18next.useTranslation(),
|
9472
|
+
t = _useTranslation.t;
|
9112
9473
|
return React__default.createElement(Select__default, Object.assign({
|
9113
9474
|
isDisabled: isDisabled,
|
9114
9475
|
options: options,
|
@@ -9123,7 +9484,8 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
9123
9484
|
DropdownIndicator: DropdownIndicator,
|
9124
9485
|
Option: CustomOption
|
9125
9486
|
},
|
9126
|
-
styles: customStyles
|
9487
|
+
styles: customStyles,
|
9488
|
+
placeholder: t("select_placeholder")
|
9127
9489
|
}, rest));
|
9128
9490
|
};
|
9129
9491
|
|
@@ -11816,7 +12178,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11816
12178
|
fontSize: '16px',
|
11817
12179
|
lineHeight: '19.09px',
|
11818
12180
|
color: '#202B37'
|
11819
|
-
},
|
12181
|
+
}, t('ask_a_question'))), React__default.createElement(IconButton, {
|
11820
12182
|
"aria-label": "close",
|
11821
12183
|
sx: {
|
11822
12184
|
position: 'absolute',
|
@@ -11853,7 +12215,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11853
12215
|
}, React__default.createElement(material.Stack, null, React__default.createElement("label", {
|
11854
12216
|
htmlFor: "questions",
|
11855
12217
|
className: styles['form-label'] + " " + styles$4['form-label-dialog']
|
11856
|
-
},
|
12218
|
+
}, t('questions_to_ask')), React__default.createElement(formik.Field, {
|
11857
12219
|
as: "select",
|
11858
12220
|
id: "questions",
|
11859
12221
|
name: "questionId",
|
@@ -11870,7 +12232,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11870
12232
|
}))), React__default.createElement(material.Stack, null, React__default.createElement("label", {
|
11871
12233
|
htmlFor: "content-question",
|
11872
12234
|
className: styles['form-label'] + " " + styles$4['form-label-dialog']
|
11873
|
-
},
|
12235
|
+
}, t('question_content')), React__default.createElement(material.Box, {
|
11874
12236
|
position: 'relative',
|
11875
12237
|
display: 'flex',
|
11876
12238
|
flexDirection: 'row',
|
@@ -11881,7 +12243,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11881
12243
|
paddingRight: '40px'
|
11882
12244
|
},
|
11883
12245
|
name: "content",
|
11884
|
-
placeholder:
|
12246
|
+
placeholder: t('the_problem_is_difficult'),
|
11885
12247
|
className: styles['form-control']
|
11886
12248
|
}), (errors === null || errors === void 0 ? void 0 : errors.content) && React__default.createElement(material.Box, {
|
11887
12249
|
position: 'absolute',
|
@@ -11896,7 +12258,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11896
12258
|
fontSize: '10px',
|
11897
12259
|
lineHeight: '11.93px',
|
11898
12260
|
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' : '#F34B4B'
|
11899
|
-
}, !(errors !== null && errors !== void 0 && errors.content) ? '
|
12261
|
+
}, !(errors !== null && errors !== void 0 && errors.content) ? t('your_questions_will_be_sent_to_the_counselor') : t('please_enter_your_question')))), React__default.createElement(DialogActions, {
|
11900
12262
|
sx: {
|
11901
12263
|
display: 'flex',
|
11902
12264
|
justifyContent: 'space-between',
|
@@ -11914,7 +12276,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11914
12276
|
fontWeight: 700,
|
11915
12277
|
fontSize: '14px',
|
11916
12278
|
lineHeight: '16.71px'
|
11917
|
-
},
|
12279
|
+
}, t('cancel'))), React__default.createElement(Button, {
|
11918
12280
|
variant: 'contained',
|
11919
12281
|
sx: {
|
11920
12282
|
bgcolor: styles.dark
|
@@ -11926,7 +12288,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11926
12288
|
fontSize: '14px',
|
11927
12289
|
lineHeight: '16.71px',
|
11928
12290
|
color: '#FFFFFF'
|
11929
|
-
},
|
12291
|
+
}, t('registration')))));
|
11930
12292
|
})));
|
11931
12293
|
}
|
11932
12294
|
|
@@ -12737,6 +13099,8 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12737
13099
|
openCreateQuestionDialog = _ref.openCreateQuestionDialog,
|
12738
13100
|
toggleCreateQuestion = _ref.toggleCreateQuestion,
|
12739
13101
|
examSessionId = _ref.examSessionId;
|
13102
|
+
var _useTranslation = reactI18next.useTranslation(),
|
13103
|
+
t = _useTranslation.t;
|
12740
13104
|
return React__default.createElement(material.Dialog, {
|
12741
13105
|
onClose: toggleCreateQuestion,
|
12742
13106
|
open: openCreateQuestionDialog,
|
@@ -12752,7 +13116,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12752
13116
|
fontSize: '16px',
|
12753
13117
|
lineHeight: '19.09px',
|
12754
13118
|
color: '#202B37'
|
12755
|
-
},
|
13119
|
+
}, t('ask_a_question'))), React__default.createElement(IconButton, {
|
12756
13120
|
"aria-label": "close",
|
12757
13121
|
sx: {
|
12758
13122
|
position: 'absolute',
|
@@ -12780,7 +13144,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12780
13144
|
return React__default.createElement(formik.Form, null, React__default.createElement("label", {
|
12781
13145
|
htmlFor: "content-question",
|
12782
13146
|
className: styles['form-label'] + " " + styles$4['form-label-dialog']
|
12783
|
-
},
|
13147
|
+
}, t('question_content')), React__default.createElement(material.Box, {
|
12784
13148
|
position: 'relative',
|
12785
13149
|
display: 'flex',
|
12786
13150
|
flexDirection: 'row',
|
@@ -12791,7 +13155,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12791
13155
|
paddingRight: '40px'
|
12792
13156
|
},
|
12793
13157
|
name: "content",
|
12794
|
-
placeholder:
|
13158
|
+
placeholder: t('the_problem_is_difficult'),
|
12795
13159
|
className: styles['form-control']
|
12796
13160
|
}), (errors === null || errors === void 0 ? void 0 : errors.content) && React__default.createElement(material.Box, {
|
12797
13161
|
position: 'absolute',
|
@@ -12806,7 +13170,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12806
13170
|
fontSize: '10px',
|
12807
13171
|
lineHeight: '11.93px',
|
12808
13172
|
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' : '#F34B4B'
|
12809
|
-
}, !(errors !== null && errors !== void 0 && errors.content) ? '
|
13173
|
+
}, !(errors !== null && errors !== void 0 && errors.content) ? t('your_questions_will_be_sent_to_the_counselor') : t('please_enter_your_question')), React__default.createElement(DialogActions, {
|
12810
13174
|
sx: {
|
12811
13175
|
display: 'flex',
|
12812
13176
|
justifyContent: 'space-between',
|
@@ -12823,7 +13187,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12823
13187
|
fontWeight: 700,
|
12824
13188
|
fontSize: '14px',
|
12825
13189
|
lineHeight: '16.71px'
|
12826
|
-
},
|
13190
|
+
}, t('cancel'))), React__default.createElement(Button, {
|
12827
13191
|
variant: 'contained',
|
12828
13192
|
sx: {
|
12829
13193
|
bgcolor: styles.dark
|
@@ -12835,7 +13199,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12835
13199
|
fontSize: '14px',
|
12836
13200
|
lineHeight: '16.71px',
|
12837
13201
|
color: '#FFFFFF'
|
12838
|
-
},
|
13202
|
+
}, t('registration')))));
|
12839
13203
|
})));
|
12840
13204
|
}
|
12841
13205
|
|