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.modern.js
CHANGED
@@ -1295,6 +1295,8 @@ var store = configureStore({
|
|
1295
1295
|
|
1296
1296
|
var TITLE = "Not found";
|
1297
1297
|
var NotFound = function NotFound() {
|
1298
|
+
var _useTranslation = useTranslation(),
|
1299
|
+
t = _useTranslation.t;
|
1298
1300
|
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 = useState(),
|
1533
1532
|
confirmTextValue = _useState[0],
|
1534
1533
|
setConfirmTextValue = _useState[1];
|
1534
|
+
var _useTranslation = 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(IconButton, {
|
1562
|
+
}, title || t('confirmation')), React__default.createElement(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(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(Button, {
|
1597
|
+
}, cancelText || t("no")), React__default.createElement(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) {
|
@@ -2208,6 +2211,95 @@ var update_category = "카테고리 업데이트";
|
|
2208
2211
|
var create_new_category = "새 카테고리 만들기";
|
2209
2212
|
var parent_category = "상위 카테고리:";
|
2210
2213
|
var enter_category_name = "카테고리 이름을 입력하세요";
|
2214
|
+
var new_class = "새로운 수업";
|
2215
|
+
var classes = "클래스";
|
2216
|
+
var confirm_delete_class = "수업을 삭제하시겠습니까:";
|
2217
|
+
var new_exam = "새로운 시험";
|
2218
|
+
var are_you_sure_to_delete_exam = "시험을 삭제하시겠습니까:";
|
2219
|
+
var question_type = "질문 유형";
|
2220
|
+
var question_category = "질문 카테고리";
|
2221
|
+
var select_article = "기사 선택";
|
2222
|
+
var create_social = "소셜 만들기";
|
2223
|
+
var update_social = "소셜 업데이트";
|
2224
|
+
var new_social = "뉴소셜";
|
2225
|
+
var are_you_sure_to_delete_social_link = "소셜 링크를 삭제하시겠습니까:";
|
2226
|
+
var update_subject = "업데이트 제목";
|
2227
|
+
var create_new_subject = "새 주제 만들기";
|
2228
|
+
var subject_name = "주체 이름";
|
2229
|
+
var are_you_sure_to_delete_subject = "제목을 삭제하시겠습니까:";
|
2230
|
+
var drop_a_file_here_or_click_to_browse = "여기에 파일을 놓거나 클릭하여 찾아보세요.";
|
2231
|
+
var delete_users_csv = "사용자 CSV 삭제";
|
2232
|
+
var are_you_sure_to_delete_user = "사용자를 삭제하시겠습니까:";
|
2233
|
+
var enter_phone_number = "전화번호를 입력하세요";
|
2234
|
+
var enter_school_name = "학교 이름을 입력하세요";
|
2235
|
+
var enter_grade = "성적 입력";
|
2236
|
+
var enter_major_name = "주요 이름을 입력하세요";
|
2237
|
+
var enter_parent_name = "부모 이름을 입력하세요";
|
2238
|
+
var enter_parent_phone_number = "부모 전화번호를 입력하세요";
|
2239
|
+
var select_role = "역할 선택";
|
2240
|
+
var import_users = "사용자 가져오기";
|
2241
|
+
var remove_users = "사용자 제거";
|
2242
|
+
var download_template = "템플릿 다운로드";
|
2243
|
+
var export_csv = "CSV 내보내기";
|
2244
|
+
var select_type = "유형 선택";
|
2245
|
+
var no_message = "메시지 없음";
|
2246
|
+
var this_is_the_guidance_text = "안내 텍스트입니다.";
|
2247
|
+
var oops = "이런! 당신이졌다.";
|
2248
|
+
var please_enter = "들어 오세요...";
|
2249
|
+
var hint = "힌트";
|
2250
|
+
var save_and_add_next_question = "저장하고 다음 질문 추가";
|
2251
|
+
var question_text = "질문 텍스트";
|
2252
|
+
var article = "기사";
|
2253
|
+
var notifications = "알림";
|
2254
|
+
var exams = "시험";
|
2255
|
+
var questions = "질문";
|
2256
|
+
var dashboard = "계기반";
|
2257
|
+
var question_bank = "문제 은행";
|
2258
|
+
var exam_categories = "시험 카테고리";
|
2259
|
+
var social_link = "소셜 링크";
|
2260
|
+
var created_date = "생성 날짜";
|
2261
|
+
var are_you_sure_to_delete_academy = "아카데미를 삭제하시겠습니까:";
|
2262
|
+
var action = "행동";
|
2263
|
+
var number_of_questions = "질문 수";
|
2264
|
+
var are_you_sure_to_delete_category = "카테고리를 삭제하시겠습니까:";
|
2265
|
+
var add_new_lesson = "새 강의 추가";
|
2266
|
+
var update_lesson = "강의 업데이트:";
|
2267
|
+
var are_you_sure_to_remove_lesson = "강의를 삭제하시겠습니까:";
|
2268
|
+
var clear = "분명한";
|
2269
|
+
var add_to_list = "목록에 추가";
|
2270
|
+
var add_students = "학생 추가";
|
2271
|
+
var are_you_sure_to_remove_student = "학생을 삭제하시겠습니까:";
|
2272
|
+
var add_teachers = "교사 추가";
|
2273
|
+
var please_enter_a_title = "제목을 입력하세요";
|
2274
|
+
var questions_required_at_least_one_question = "질문에는 하나 이상의 질문이 필요합니다.";
|
2275
|
+
var please_enter_number_of_answers_for_question_number = "질문 번호 {{number}} 에 대한 답변 수를 입력하십시오.";
|
2276
|
+
var number_of_answers_must_be_greater_than_1_for_question_number = "질문 번호 {{number}} 에 대한 답변 수는 1보다 커야 합니다.";
|
2277
|
+
var correct_answer_must_be_less_than_for_question_number = "질문 번호 {{number}} 에 대한 정답은 {{question}} 보다 작아야 합니다.";
|
2278
|
+
var update_exam_successfully = "시험을 성공적으로 업데이트했습니다.";
|
2279
|
+
var create_exam_successfully = "시험을 성공적으로 만들었습니다.";
|
2280
|
+
var create_notification = "알림 생성";
|
2281
|
+
var update_notification = "업데이트 알림";
|
2282
|
+
var new_notification = "새로운 알림";
|
2283
|
+
var are_you_sure_to_delete_notification = "알림을 삭제하시겠습니까:";
|
2284
|
+
var answer_list = "답변 목록";
|
2285
|
+
var are_you_sure_to_delete_question = "질문을 삭제하시겠습니까:";
|
2286
|
+
var school_name_is_required = "학교 이름은 필수 항목입니다.";
|
2287
|
+
var phone_number_is_not_valid = "전화번호가 유효하지 않습니다.";
|
2288
|
+
var role_is_required = "역할은 필수입니다.";
|
2289
|
+
var student_grade_is_required = "학생 성적은 필수 항목입니다.";
|
2290
|
+
var major_is_required = "전공은 필수입니다";
|
2291
|
+
var phone_number_is_required = "전화번호는 필수 항목입니다.";
|
2292
|
+
var parent_name_is_required = "부모 이름이 필요합니다";
|
2293
|
+
var category_name = "카테고리 이름";
|
2294
|
+
var categories = "카테고리";
|
2295
|
+
var teacher = "선생님";
|
2296
|
+
var role = "역할";
|
2297
|
+
var total_uses = "총 사용량";
|
2298
|
+
var create_question = "질문 만들기";
|
2299
|
+
var articles = "조항";
|
2300
|
+
var add_lesson = "레슨 추가";
|
2301
|
+
var date = "날짜";
|
2302
|
+
var the_code_has_been_copied_to_your_clipboard = "코드가 클립보드에 복사되었습니다.";
|
2211
2303
|
var lang_ko = {
|
2212
2304
|
problem_solving: problem_solving,
|
2213
2305
|
my_story: my_story,
|
@@ -2628,7 +2720,98 @@ var lang_ko = {
|
|
2628
2720
|
update_category: update_category,
|
2629
2721
|
create_new_category: create_new_category,
|
2630
2722
|
parent_category: parent_category,
|
2631
|
-
enter_category_name: enter_category_name
|
2723
|
+
enter_category_name: enter_category_name,
|
2724
|
+
new_class: new_class,
|
2725
|
+
classes: classes,
|
2726
|
+
confirm_delete_class: confirm_delete_class,
|
2727
|
+
new_exam: new_exam,
|
2728
|
+
are_you_sure_to_delete_exam: are_you_sure_to_delete_exam,
|
2729
|
+
question_type: question_type,
|
2730
|
+
question_category: question_category,
|
2731
|
+
select_article: select_article,
|
2732
|
+
create_social: create_social,
|
2733
|
+
update_social: update_social,
|
2734
|
+
new_social: new_social,
|
2735
|
+
are_you_sure_to_delete_social_link: are_you_sure_to_delete_social_link,
|
2736
|
+
update_subject: update_subject,
|
2737
|
+
create_new_subject: create_new_subject,
|
2738
|
+
subject_name: subject_name,
|
2739
|
+
are_you_sure_to_delete_subject: are_you_sure_to_delete_subject,
|
2740
|
+
drop_a_file_here_or_click_to_browse: drop_a_file_here_or_click_to_browse,
|
2741
|
+
delete_users_csv: delete_users_csv,
|
2742
|
+
are_you_sure_to_delete_user: are_you_sure_to_delete_user,
|
2743
|
+
enter_phone_number: enter_phone_number,
|
2744
|
+
enter_school_name: enter_school_name,
|
2745
|
+
enter_grade: enter_grade,
|
2746
|
+
enter_major_name: enter_major_name,
|
2747
|
+
enter_parent_name: enter_parent_name,
|
2748
|
+
enter_parent_phone_number: enter_parent_phone_number,
|
2749
|
+
select_role: select_role,
|
2750
|
+
import_users: import_users,
|
2751
|
+
remove_users: remove_users,
|
2752
|
+
download_template: download_template,
|
2753
|
+
export_csv: export_csv,
|
2754
|
+
select_type: select_type,
|
2755
|
+
no_message: no_message,
|
2756
|
+
this_is_the_guidance_text: this_is_the_guidance_text,
|
2757
|
+
"the_page_you_are_looking_for_was_not_found.": "찾으시는 페이지를 찾을 수 없습니다.",
|
2758
|
+
oops: oops,
|
2759
|
+
please_enter: please_enter,
|
2760
|
+
hint: hint,
|
2761
|
+
save_and_add_next_question: save_and_add_next_question,
|
2762
|
+
question_text: question_text,
|
2763
|
+
article: article,
|
2764
|
+
notifications: notifications,
|
2765
|
+
exams: exams,
|
2766
|
+
questions: questions,
|
2767
|
+
dashboard: dashboard,
|
2768
|
+
question_bank: question_bank,
|
2769
|
+
exam_categories: exam_categories,
|
2770
|
+
social_link: social_link,
|
2771
|
+
created_date: created_date,
|
2772
|
+
are_you_sure_to_delete_academy: are_you_sure_to_delete_academy,
|
2773
|
+
action: action,
|
2774
|
+
number_of_questions: number_of_questions,
|
2775
|
+
are_you_sure_to_delete_category: are_you_sure_to_delete_category,
|
2776
|
+
add_new_lesson: add_new_lesson,
|
2777
|
+
update_lesson: update_lesson,
|
2778
|
+
are_you_sure_to_remove_lesson: are_you_sure_to_remove_lesson,
|
2779
|
+
clear: clear,
|
2780
|
+
add_to_list: add_to_list,
|
2781
|
+
add_students: add_students,
|
2782
|
+
are_you_sure_to_remove_student: are_you_sure_to_remove_student,
|
2783
|
+
add_teachers: add_teachers,
|
2784
|
+
please_enter_a_title: please_enter_a_title,
|
2785
|
+
questions_required_at_least_one_question: questions_required_at_least_one_question,
|
2786
|
+
please_enter_number_of_answers_for_question_number: please_enter_number_of_answers_for_question_number,
|
2787
|
+
number_of_answers_must_be_greater_than_1_for_question_number: number_of_answers_must_be_greater_than_1_for_question_number,
|
2788
|
+
"please_choose_at_least_one_answer_for_question_number ": "질문 번호 {{number}}에 대해 하나 이상의 답변을 선택하십시오.",
|
2789
|
+
correct_answer_must_be_less_than_for_question_number: correct_answer_must_be_less_than_for_question_number,
|
2790
|
+
update_exam_successfully: update_exam_successfully,
|
2791
|
+
create_exam_successfully: create_exam_successfully,
|
2792
|
+
create_notification: create_notification,
|
2793
|
+
update_notification: update_notification,
|
2794
|
+
new_notification: new_notification,
|
2795
|
+
are_you_sure_to_delete_notification: are_you_sure_to_delete_notification,
|
2796
|
+
answer_list: answer_list,
|
2797
|
+
are_you_sure_to_delete_question: are_you_sure_to_delete_question,
|
2798
|
+
school_name_is_required: school_name_is_required,
|
2799
|
+
phone_number_is_not_valid: phone_number_is_not_valid,
|
2800
|
+
role_is_required: role_is_required,
|
2801
|
+
student_grade_is_required: student_grade_is_required,
|
2802
|
+
major_is_required: major_is_required,
|
2803
|
+
phone_number_is_required: phone_number_is_required,
|
2804
|
+
parent_name_is_required: parent_name_is_required,
|
2805
|
+
category_name: category_name,
|
2806
|
+
categories: categories,
|
2807
|
+
teacher: teacher,
|
2808
|
+
role: role,
|
2809
|
+
total_uses: total_uses,
|
2810
|
+
create_question: create_question,
|
2811
|
+
articles: articles,
|
2812
|
+
add_lesson: add_lesson,
|
2813
|
+
date: date,
|
2814
|
+
the_code_has_been_copied_to_your_clipboard: the_code_has_been_copied_to_your_clipboard
|
2632
2815
|
};
|
2633
2816
|
|
2634
2817
|
var problem_solving$1 = "Problem Solving";
|
@@ -2702,19 +2885,19 @@ var correct_rate$1 = "Correct rate";
|
|
2702
2885
|
var difficult_level = "Difficult level";
|
2703
2886
|
var difficulty_explain = "(The Difficulty Level provides an indication of the difficulty level of each test question)";
|
2704
2887
|
var explain_your_answer = "Explain your answer";
|
2705
|
-
var hint = "Hint";
|
2706
|
-
var save_and_add_next_question = "Save and add next question";
|
2888
|
+
var hint$1 = "Hint";
|
2889
|
+
var save_and_add_next_question$1 = "Save and add next question";
|
2707
2890
|
var save_and_exit$1 = "Save and exit";
|
2708
|
-
var question_text = "Question text";
|
2891
|
+
var question_text$1 = "Question text";
|
2709
2892
|
var title$1 = "Title";
|
2710
|
-
var create_question = "Create question";
|
2893
|
+
var create_question$1 = "Create question";
|
2711
2894
|
var parent_question = "Parent question";
|
2712
2895
|
var edit_question = "Edit question";
|
2713
2896
|
var edit$1 = "Edit";
|
2714
2897
|
var easy = "Easy";
|
2715
2898
|
var intermediate = "Intermediate";
|
2716
2899
|
var difficult = "Difficult";
|
2717
|
-
var article = "Article";
|
2900
|
+
var article$1 = "Article";
|
2718
2901
|
var correct_answer = "Correct answer";
|
2719
2902
|
var mark = "Mark";
|
2720
2903
|
var answer$1 = "Answer";
|
@@ -2776,11 +2959,11 @@ var friday$1 = "Friday";
|
|
2776
2959
|
var saturday$1 = "Saturday";
|
2777
2960
|
var total_lessons$1 = "Total lessons";
|
2778
2961
|
var is_cancelled = "Is cancelled";
|
2779
|
-
var date = "Date";
|
2962
|
+
var date$1 = "Date";
|
2780
2963
|
var weekly_days_required$1 = "Weekly days are required";
|
2781
2964
|
var main_teacher$1 = "Main teacher";
|
2782
2965
|
var main_teacher_required = "Main teacher is required";
|
2783
|
-
var teacher = "Teacher";
|
2966
|
+
var teacher$1 = "Teacher";
|
2784
2967
|
var the_first$1 = "The first";
|
2785
2968
|
var the_second$1 = "The second";
|
2786
2969
|
var the_third$1 = "The third";
|
@@ -3092,6 +3275,88 @@ var update_category$1 = "Update Category";
|
|
3092
3275
|
var create_new_category$1 = "Create New Category";
|
3093
3276
|
var parent_category$1 = "Parent Category:";
|
3094
3277
|
var enter_category_name$1 = "Enter Category Name";
|
3278
|
+
var new_class$1 = "New class";
|
3279
|
+
var classes$1 = "Classes";
|
3280
|
+
var confirm_delete_class$1 = "Are you sure to delete class:";
|
3281
|
+
var new_exam$1 = "New Exam";
|
3282
|
+
var are_you_sure_to_delete_exam$1 = "Are you sure to delete exam:";
|
3283
|
+
var question_type$1 = "Question Type";
|
3284
|
+
var question_category$1 = "Question Category";
|
3285
|
+
var select_article$1 = "Select Article";
|
3286
|
+
var create_social$1 = "Create Social";
|
3287
|
+
var update_social$1 = "Update Social";
|
3288
|
+
var new_social$1 = "New Social";
|
3289
|
+
var are_you_sure_to_delete_social_link$1 = "Are you sure to delete social link:";
|
3290
|
+
var update_subject$1 = "Update Subject";
|
3291
|
+
var create_new_subject$1 = "Create New Subject";
|
3292
|
+
var subject_name$1 = "Subject name";
|
3293
|
+
var are_you_sure_to_delete_subject$1 = "Are you sure to delete subject:";
|
3294
|
+
var drop_a_file_here_or_click_to_browse$1 = "Drop a file here or click to browse";
|
3295
|
+
var delete_users_csv$1 = "Delete users csv";
|
3296
|
+
var are_you_sure_to_delete_user$1 = "Are you sure to delete user:";
|
3297
|
+
var enter_phone_number$1 = "Enter phone number";
|
3298
|
+
var enter_school_name$1 = "Enter school name";
|
3299
|
+
var enter_grade$1 = "Enter grade";
|
3300
|
+
var enter_major_name$1 = "Enter major name";
|
3301
|
+
var enter_parent_name$1 = "Enter parent name";
|
3302
|
+
var enter_parent_phone_number$1 = "Enter parent phone number";
|
3303
|
+
var select_role$1 = "Select role";
|
3304
|
+
var import_users$1 = "Import users";
|
3305
|
+
var remove_users$1 = "Remove users";
|
3306
|
+
var download_template$1 = "Download template";
|
3307
|
+
var export_csv$1 = "Export csv";
|
3308
|
+
var select_type$1 = "Select type";
|
3309
|
+
var no_message$1 = "No message";
|
3310
|
+
var this_is_the_guidance_text$1 = "This is the guidance text.";
|
3311
|
+
var oops$1 = "Oops! You are lost.";
|
3312
|
+
var please_enter$1 = "Please enter...";
|
3313
|
+
var notifications$1 = "Notifications";
|
3314
|
+
var exams$1 = "Exams";
|
3315
|
+
var questions$1 = "Questions";
|
3316
|
+
var dashboard$1 = "Dashboard";
|
3317
|
+
var question_bank$1 = "Question Bank";
|
3318
|
+
var exam_categories$1 = "Exam Categories";
|
3319
|
+
var social_link$1 = "Social Link";
|
3320
|
+
var created_date$1 = "Created Date";
|
3321
|
+
var are_you_sure_to_delete_academy$1 = "Are you sure to delete academy:";
|
3322
|
+
var action$1 = "Action";
|
3323
|
+
var number_of_questions$1 = "Number Of Questions";
|
3324
|
+
var are_you_sure_to_delete_category$1 = "Are you sure to delete category:";
|
3325
|
+
var add_new_lesson$1 = "Add new lesson";
|
3326
|
+
var update_lesson$1 = "Update lesson:";
|
3327
|
+
var are_you_sure_to_remove_lesson$1 = "Are you sure to remove lesson:";
|
3328
|
+
var clear$1 = "Clear";
|
3329
|
+
var add_to_list$1 = "Add to list";
|
3330
|
+
var add_students$1 = "Add students";
|
3331
|
+
var are_you_sure_to_remove_student$1 = "Are you sure to remove student:";
|
3332
|
+
var add_teachers$1 = "Add teachers";
|
3333
|
+
var please_enter_a_title$1 = "Please enter a title";
|
3334
|
+
var questions_required_at_least_one_question$1 = "Questions required at least one question";
|
3335
|
+
var please_enter_number_of_answers_for_question_number$1 = "Please enter number of answers for question number {{number}}";
|
3336
|
+
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}}";
|
3337
|
+
var correct_answer_must_be_less_than_for_question_number$1 = "Correct answer must be less than {{question}} for question number {{number}}";
|
3338
|
+
var update_exam_successfully$1 = "Update exam successfully";
|
3339
|
+
var create_exam_successfully$1 = "Create exam successfully";
|
3340
|
+
var create_notification$1 = "Create Notification";
|
3341
|
+
var update_notification$1 = "Update Notification";
|
3342
|
+
var new_notification$1 = "New Notification";
|
3343
|
+
var are_you_sure_to_delete_notification$1 = "Are you sure to delete notification:";
|
3344
|
+
var answer_list$1 = "Answer List";
|
3345
|
+
var are_you_sure_to_delete_question$1 = "Are you sure to delete question:";
|
3346
|
+
var school_name_is_required$1 = "School name is required";
|
3347
|
+
var phone_number_is_not_valid$1 = "Phone number is not valid";
|
3348
|
+
var role_is_required$1 = "Role is required";
|
3349
|
+
var student_grade_is_required$1 = "Student grade is required";
|
3350
|
+
var major_is_required$1 = "Major is required";
|
3351
|
+
var phone_number_is_required$1 = "Phone number is required";
|
3352
|
+
var parent_name_is_required$1 = "Parent name is required";
|
3353
|
+
var category_name$1 = "Category Name";
|
3354
|
+
var categories$1 = "Categories";
|
3355
|
+
var role$1 = "Role";
|
3356
|
+
var total_uses$1 = "Total Uses";
|
3357
|
+
var articles$1 = "Articles";
|
3358
|
+
var add_lesson$1 = "Add Lesson";
|
3359
|
+
var the_code_has_been_copied_to_your_clipboard$1 = "The code has been copied to your clipboard";
|
3095
3360
|
var lang_en = {
|
3096
3361
|
problem_solving: problem_solving$1,
|
3097
3362
|
my_story: my_story$1,
|
@@ -3166,12 +3431,12 @@ var lang_en = {
|
|
3166
3431
|
difficult_level: difficult_level,
|
3167
3432
|
difficulty_explain: difficulty_explain,
|
3168
3433
|
explain_your_answer: explain_your_answer,
|
3169
|
-
hint: hint,
|
3170
|
-
save_and_add_next_question: save_and_add_next_question,
|
3434
|
+
hint: hint$1,
|
3435
|
+
save_and_add_next_question: save_and_add_next_question$1,
|
3171
3436
|
save_and_exit: save_and_exit$1,
|
3172
|
-
question_text: question_text,
|
3437
|
+
question_text: question_text$1,
|
3173
3438
|
title: title$1,
|
3174
|
-
create_question: create_question,
|
3439
|
+
create_question: create_question$1,
|
3175
3440
|
parent_question: parent_question,
|
3176
3441
|
edit_question: edit_question,
|
3177
3442
|
edit: edit$1,
|
@@ -3179,7 +3444,7 @@ var lang_en = {
|
|
3179
3444
|
easy: easy,
|
3180
3445
|
intermediate: intermediate,
|
3181
3446
|
difficult: difficult,
|
3182
|
-
article: article,
|
3447
|
+
article: article$1,
|
3183
3448
|
correct_answer: correct_answer,
|
3184
3449
|
mark: mark,
|
3185
3450
|
answer: answer$1,
|
@@ -3241,11 +3506,11 @@ var lang_en = {
|
|
3241
3506
|
saturday: saturday$1,
|
3242
3507
|
total_lessons: total_lessons$1,
|
3243
3508
|
is_cancelled: is_cancelled,
|
3244
|
-
date: date,
|
3509
|
+
date: date$1,
|
3245
3510
|
weekly_days_required: weekly_days_required$1,
|
3246
3511
|
main_teacher: main_teacher$1,
|
3247
3512
|
main_teacher_required: main_teacher_required,
|
3248
|
-
teacher: teacher,
|
3513
|
+
teacher: teacher$1,
|
3249
3514
|
the_first: the_first$1,
|
3250
3515
|
the_second: the_second$1,
|
3251
3516
|
the_third: the_third$1,
|
@@ -3546,7 +3811,91 @@ var lang_en = {
|
|
3546
3811
|
update_category: update_category$1,
|
3547
3812
|
create_new_category: create_new_category$1,
|
3548
3813
|
parent_category: parent_category$1,
|
3549
|
-
enter_category_name: enter_category_name$1
|
3814
|
+
enter_category_name: enter_category_name$1,
|
3815
|
+
new_class: new_class$1,
|
3816
|
+
classes: classes$1,
|
3817
|
+
confirm_delete_class: confirm_delete_class$1,
|
3818
|
+
new_exam: new_exam$1,
|
3819
|
+
are_you_sure_to_delete_exam: are_you_sure_to_delete_exam$1,
|
3820
|
+
question_type: question_type$1,
|
3821
|
+
question_category: question_category$1,
|
3822
|
+
select_article: select_article$1,
|
3823
|
+
create_social: create_social$1,
|
3824
|
+
update_social: update_social$1,
|
3825
|
+
new_social: new_social$1,
|
3826
|
+
are_you_sure_to_delete_social_link: are_you_sure_to_delete_social_link$1,
|
3827
|
+
update_subject: update_subject$1,
|
3828
|
+
create_new_subject: create_new_subject$1,
|
3829
|
+
subject_name: subject_name$1,
|
3830
|
+
are_you_sure_to_delete_subject: are_you_sure_to_delete_subject$1,
|
3831
|
+
drop_a_file_here_or_click_to_browse: drop_a_file_here_or_click_to_browse$1,
|
3832
|
+
delete_users_csv: delete_users_csv$1,
|
3833
|
+
are_you_sure_to_delete_user: are_you_sure_to_delete_user$1,
|
3834
|
+
enter_phone_number: enter_phone_number$1,
|
3835
|
+
enter_school_name: enter_school_name$1,
|
3836
|
+
enter_grade: enter_grade$1,
|
3837
|
+
enter_major_name: enter_major_name$1,
|
3838
|
+
enter_parent_name: enter_parent_name$1,
|
3839
|
+
enter_parent_phone_number: enter_parent_phone_number$1,
|
3840
|
+
select_role: select_role$1,
|
3841
|
+
import_users: import_users$1,
|
3842
|
+
remove_users: remove_users$1,
|
3843
|
+
download_template: download_template$1,
|
3844
|
+
export_csv: export_csv$1,
|
3845
|
+
select_type: select_type$1,
|
3846
|
+
no_message: no_message$1,
|
3847
|
+
this_is_the_guidance_text: this_is_the_guidance_text$1,
|
3848
|
+
"the_page_you_are_looking_for_was_not_found.": "The page you are looking for was not found.",
|
3849
|
+
oops: oops$1,
|
3850
|
+
please_enter: please_enter$1,
|
3851
|
+
notifications: notifications$1,
|
3852
|
+
exams: exams$1,
|
3853
|
+
questions: questions$1,
|
3854
|
+
dashboard: dashboard$1,
|
3855
|
+
question_bank: question_bank$1,
|
3856
|
+
exam_categories: exam_categories$1,
|
3857
|
+
social_link: social_link$1,
|
3858
|
+
created_date: created_date$1,
|
3859
|
+
are_you_sure_to_delete_academy: are_you_sure_to_delete_academy$1,
|
3860
|
+
action: action$1,
|
3861
|
+
number_of_questions: number_of_questions$1,
|
3862
|
+
are_you_sure_to_delete_category: are_you_sure_to_delete_category$1,
|
3863
|
+
add_new_lesson: add_new_lesson$1,
|
3864
|
+
update_lesson: update_lesson$1,
|
3865
|
+
are_you_sure_to_remove_lesson: are_you_sure_to_remove_lesson$1,
|
3866
|
+
clear: clear$1,
|
3867
|
+
add_to_list: add_to_list$1,
|
3868
|
+
add_students: add_students$1,
|
3869
|
+
are_you_sure_to_remove_student: are_you_sure_to_remove_student$1,
|
3870
|
+
add_teachers: add_teachers$1,
|
3871
|
+
please_enter_a_title: please_enter_a_title$1,
|
3872
|
+
questions_required_at_least_one_question: questions_required_at_least_one_question$1,
|
3873
|
+
please_enter_number_of_answers_for_question_number: please_enter_number_of_answers_for_question_number$1,
|
3874
|
+
number_of_answers_must_be_greater_than_1_for_question_number: number_of_answers_must_be_greater_than_1_for_question_number$1,
|
3875
|
+
"please_choose_at_least_one_answer_for_question_number ": "Please choose at least one answer for question number {{number}}",
|
3876
|
+
correct_answer_must_be_less_than_for_question_number: correct_answer_must_be_less_than_for_question_number$1,
|
3877
|
+
update_exam_successfully: update_exam_successfully$1,
|
3878
|
+
create_exam_successfully: create_exam_successfully$1,
|
3879
|
+
create_notification: create_notification$1,
|
3880
|
+
update_notification: update_notification$1,
|
3881
|
+
new_notification: new_notification$1,
|
3882
|
+
are_you_sure_to_delete_notification: are_you_sure_to_delete_notification$1,
|
3883
|
+
answer_list: answer_list$1,
|
3884
|
+
are_you_sure_to_delete_question: are_you_sure_to_delete_question$1,
|
3885
|
+
school_name_is_required: school_name_is_required$1,
|
3886
|
+
phone_number_is_not_valid: phone_number_is_not_valid$1,
|
3887
|
+
role_is_required: role_is_required$1,
|
3888
|
+
student_grade_is_required: student_grade_is_required$1,
|
3889
|
+
major_is_required: major_is_required$1,
|
3890
|
+
phone_number_is_required: phone_number_is_required$1,
|
3891
|
+
parent_name_is_required: parent_name_is_required$1,
|
3892
|
+
category_name: category_name$1,
|
3893
|
+
categories: categories$1,
|
3894
|
+
role: role$1,
|
3895
|
+
total_uses: total_uses$1,
|
3896
|
+
articles: articles$1,
|
3897
|
+
add_lesson: add_lesson$1,
|
3898
|
+
the_code_has_been_copied_to_your_clipboard: the_code_has_been_copied_to_your_clipboard$1
|
3550
3899
|
};
|
3551
3900
|
|
3552
3901
|
i18n.use(initReactI18next).init({
|
@@ -4488,14 +4837,14 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
4488
4837
|
return React__default.createElement(Form, null, React__default.createElement("label", {
|
4489
4838
|
htmlFor: "content",
|
4490
4839
|
className: styles$1['form-label'] + " " + styles$1['form-label-dialog']
|
4491
|
-
},
|
4840
|
+
}, t('questions_to_ask')), React__default.createElement(Field, {
|
4492
4841
|
id: "content",
|
4493
4842
|
style: {
|
4494
4843
|
paddingRight: '40px'
|
4495
4844
|
},
|
4496
4845
|
name: "content",
|
4497
4846
|
validate: validate,
|
4498
|
-
placeholder:
|
4847
|
+
placeholder: t('the_problem_is_difficult'),
|
4499
4848
|
className: styles$1['form-control']
|
4500
4849
|
}), React__default.createElement(DialogActions, {
|
4501
4850
|
sx: {
|
@@ -4514,7 +4863,7 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
4514
4863
|
fontWeight: 700,
|
4515
4864
|
fontSize: '14px',
|
4516
4865
|
lineHeight: '16.71px'
|
4517
|
-
},
|
4866
|
+
}, t('cancel'))), React__default.createElement(Button, {
|
4518
4867
|
variant: 'contained',
|
4519
4868
|
sx: {
|
4520
4869
|
bgcolor: styles.dark
|
@@ -4526,7 +4875,7 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
4526
4875
|
fontSize: '14px',
|
4527
4876
|
lineHeight: '16.71px',
|
4528
4877
|
color: '#FFFFFF'
|
4529
|
-
},
|
4878
|
+
}, t('registration')))));
|
4530
4879
|
}) : React__default.createElement(Box, null, React__default.createElement(Stack, {
|
4531
4880
|
display: "flex",
|
4532
4881
|
flexDirection: "column",
|
@@ -4663,6 +5012,8 @@ var ChatList = function ChatList(_ref) {
|
|
4663
5012
|
handleUpdateMessage = _ref.handleUpdateMessage,
|
4664
5013
|
handleDeleteMessage = _ref.handleDeleteMessage,
|
4665
5014
|
listItemRef = _ref.listItemRef;
|
5015
|
+
var _useTranslation = useTranslation(),
|
5016
|
+
t = _useTranslation.t;
|
4666
5017
|
var filterMessage = useMemo(function () {
|
4667
5018
|
var prevTime = 0;
|
4668
5019
|
var prevSender;
|
@@ -4685,7 +5036,7 @@ var ChatList = function ChatList(_ref) {
|
|
4685
5036
|
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' : '')
|
4686
5037
|
}, !(filterMessage !== null && filterMessage !== void 0 && filterMessage.length) && React__default.createElement("li", {
|
4687
5038
|
className: "text-muted text-center fst-italic fs-6"
|
4688
|
-
},
|
5039
|
+
}, t('no_message')), !!(filterMessage !== null && filterMessage !== void 0 && filterMessage.length) && filterMessage.map(function (message) {
|
4689
5040
|
return React__default.createElement(ChatItem, Object.assign({
|
4690
5041
|
key: message.id
|
4691
5042
|
}, message, {
|
@@ -4805,7 +5156,7 @@ var InputChat = function InputChat(_ref) {
|
|
4805
5156
|
fontSize: "10px",
|
4806
5157
|
lineHeight: "11.93px",
|
4807
5158
|
color: "#97A1AF"
|
4808
|
-
},
|
5159
|
+
}, t('this_is_the_guidance_text'))), React__default.createElement(Box, {
|
4809
5160
|
display: "flex",
|
4810
5161
|
flexDirection: "column",
|
4811
5162
|
justifyContent: "flex-end",
|
@@ -5119,7 +5470,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
5119
5470
|
fontSize: "13px",
|
5120
5471
|
lineHeight: "15.51px",
|
5121
5472
|
color: styles.dark
|
5122
|
-
},
|
5473
|
+
}, t('complete_processing')))) : React__default.createElement("div", null));
|
5123
5474
|
};
|
5124
5475
|
return React__default.createElement(Grid, {
|
5125
5476
|
container: true
|
@@ -7856,10 +8207,13 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7856
8207
|
var initialValues = defaultValue !== null && typeof defaultValue !== "undefined" ? options.find(function (option) {
|
7857
8208
|
return option.value === defaultValue;
|
7858
8209
|
}) || null : null;
|
8210
|
+
var optionValue = value !== null && typeof value !== "undefined" ? options.find(function (option) {
|
8211
|
+
return option.value === value;
|
8212
|
+
}) || null : null;
|
7859
8213
|
return React__default.createElement(Select, Object.assign({
|
7860
8214
|
isDisabled: isDisabled,
|
7861
8215
|
options: options,
|
7862
|
-
value:
|
8216
|
+
value: optionValue,
|
7863
8217
|
defaultValue: initialValues,
|
7864
8218
|
menuPlacement: scrollBottom ? "top" : "auto",
|
7865
8219
|
isMulti: isMulti,
|
@@ -7882,7 +8236,6 @@ var SubjectSelector = function SubjectSelector(_ref) {
|
|
7882
8236
|
title = _ref.title,
|
7883
8237
|
isMulti = _ref.isMulti,
|
7884
8238
|
minimumTextSearchLength = _ref.minimumTextSearchLength,
|
7885
|
-
placeholder = _ref.placeholder,
|
7886
8239
|
defaultValueAtFirst = _ref.defaultValueAtFirst,
|
7887
8240
|
isDisabled = _ref.isDisabled;
|
7888
8241
|
var _useState = useState([]),
|
@@ -7968,7 +8321,6 @@ var SubjectSelector = function SubjectSelector(_ref) {
|
|
7968
8321
|
return setSearchString(inputValue);
|
7969
8322
|
},
|
7970
8323
|
isLoading: isLoading,
|
7971
|
-
placeholder: (placeholder != null ? placeholder : minimumTextSearchLength) ? "Type at least " + minimumTextSearchLength + " characters to search" : undefined,
|
7972
8324
|
isMulti: isMulti,
|
7973
8325
|
value: value,
|
7974
8326
|
onChange: handleChange,
|
@@ -8192,12 +8544,16 @@ var useExamDetailView = function useExamDetailView(props) {
|
|
8192
8544
|
var durationOptions = useMemo(function () {
|
8193
8545
|
var options = DURATION_OPTIONS.map(function (i) {
|
8194
8546
|
return {
|
8195
|
-
label:
|
8547
|
+
label: t('mins_mins', {
|
8548
|
+
mins: i
|
8549
|
+
}),
|
8196
8550
|
value: i
|
8197
8551
|
};
|
8198
8552
|
});
|
8199
8553
|
if (!!exam.duration && exam.duration > DURATION_OPTIONS[DURATION_OPTIONS.length - 1]) return [].concat(options, [{
|
8200
|
-
label:
|
8554
|
+
label: t('mins_mins', {
|
8555
|
+
mins: exam.duration
|
8556
|
+
}),
|
8201
8557
|
value: exam.duration
|
8202
8558
|
}]);
|
8203
8559
|
return options;
|
@@ -8327,7 +8683,7 @@ var ExamDetailView = function ExamDetailView(_ref) {
|
|
8327
8683
|
onClick: handleAddArticle
|
8328
8684
|
}, React__default.createElement(FaPlusCircle, {
|
8329
8685
|
className: "me-2"
|
8330
|
-
}),
|
8686
|
+
}), t('add_questions'))));
|
8331
8687
|
};
|
8332
8688
|
|
8333
8689
|
var _excluded$4 = ["isOpen", "onClose", "handleSaveExam"];
|
@@ -9077,6 +9433,8 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
9077
9433
|
}) : options.find(function (i) {
|
9078
9434
|
return i.value == value;
|
9079
9435
|
});
|
9436
|
+
var _useTranslation = useTranslation(),
|
9437
|
+
t = _useTranslation.t;
|
9080
9438
|
return React__default.createElement(CreatableSelect, Object.assign({
|
9081
9439
|
isClearable: true,
|
9082
9440
|
isDisabled: isDisabled,
|
@@ -9091,7 +9449,8 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
9091
9449
|
DropdownIndicator: DropdownIndicator,
|
9092
9450
|
Option: CustomOption
|
9093
9451
|
},
|
9094
|
-
styles: customStyles
|
9452
|
+
styles: customStyles,
|
9453
|
+
placeholder: t("select_placeholder")
|
9095
9454
|
}, rest));
|
9096
9455
|
};
|
9097
9456
|
|
@@ -9111,6 +9470,8 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
9111
9470
|
}) : options.find(function (i) {
|
9112
9471
|
return i.value == value;
|
9113
9472
|
});
|
9473
|
+
var _useTranslation = useTranslation(),
|
9474
|
+
t = _useTranslation.t;
|
9114
9475
|
return React__default.createElement(Select, Object.assign({
|
9115
9476
|
isDisabled: isDisabled,
|
9116
9477
|
options: options,
|
@@ -9125,7 +9486,8 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
9125
9486
|
DropdownIndicator: DropdownIndicator,
|
9126
9487
|
Option: CustomOption
|
9127
9488
|
},
|
9128
|
-
styles: customStyles
|
9489
|
+
styles: customStyles,
|
9490
|
+
placeholder: t("select_placeholder")
|
9129
9491
|
}, rest));
|
9130
9492
|
};
|
9131
9493
|
|
@@ -11818,7 +12180,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11818
12180
|
fontSize: '16px',
|
11819
12181
|
lineHeight: '19.09px',
|
11820
12182
|
color: '#202B37'
|
11821
|
-
},
|
12183
|
+
}, t('ask_a_question'))), React__default.createElement(IconButton$1, {
|
11822
12184
|
"aria-label": "close",
|
11823
12185
|
sx: {
|
11824
12186
|
position: 'absolute',
|
@@ -11855,7 +12217,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11855
12217
|
}, React__default.createElement(Stack, null, React__default.createElement("label", {
|
11856
12218
|
htmlFor: "questions",
|
11857
12219
|
className: styles['form-label'] + " " + styles$4['form-label-dialog']
|
11858
|
-
},
|
12220
|
+
}, t('questions_to_ask')), React__default.createElement(Field, {
|
11859
12221
|
as: "select",
|
11860
12222
|
id: "questions",
|
11861
12223
|
name: "questionId",
|
@@ -11872,7 +12234,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11872
12234
|
}))), React__default.createElement(Stack, null, React__default.createElement("label", {
|
11873
12235
|
htmlFor: "content-question",
|
11874
12236
|
className: styles['form-label'] + " " + styles$4['form-label-dialog']
|
11875
|
-
},
|
12237
|
+
}, t('question_content')), React__default.createElement(Box, {
|
11876
12238
|
position: 'relative',
|
11877
12239
|
display: 'flex',
|
11878
12240
|
flexDirection: 'row',
|
@@ -11883,7 +12245,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11883
12245
|
paddingRight: '40px'
|
11884
12246
|
},
|
11885
12247
|
name: "content",
|
11886
|
-
placeholder:
|
12248
|
+
placeholder: t('the_problem_is_difficult'),
|
11887
12249
|
className: styles['form-control']
|
11888
12250
|
}), (errors === null || errors === void 0 ? void 0 : errors.content) && React__default.createElement(Box, {
|
11889
12251
|
position: 'absolute',
|
@@ -11898,7 +12260,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11898
12260
|
fontSize: '10px',
|
11899
12261
|
lineHeight: '11.93px',
|
11900
12262
|
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' : '#F34B4B'
|
11901
|
-
}, !(errors !== null && errors !== void 0 && errors.content) ? '
|
12263
|
+
}, !(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$1, {
|
11902
12264
|
sx: {
|
11903
12265
|
display: 'flex',
|
11904
12266
|
justifyContent: 'space-between',
|
@@ -11916,7 +12278,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11916
12278
|
fontWeight: 700,
|
11917
12279
|
fontSize: '14px',
|
11918
12280
|
lineHeight: '16.71px'
|
11919
|
-
},
|
12281
|
+
}, t('cancel'))), React__default.createElement(Button$1, {
|
11920
12282
|
variant: 'contained',
|
11921
12283
|
sx: {
|
11922
12284
|
bgcolor: styles.dark
|
@@ -11928,7 +12290,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
11928
12290
|
fontSize: '14px',
|
11929
12291
|
lineHeight: '16.71px',
|
11930
12292
|
color: '#FFFFFF'
|
11931
|
-
},
|
12293
|
+
}, t('registration')))));
|
11932
12294
|
})));
|
11933
12295
|
}
|
11934
12296
|
|
@@ -12739,6 +13101,8 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12739
13101
|
openCreateQuestionDialog = _ref.openCreateQuestionDialog,
|
12740
13102
|
toggleCreateQuestion = _ref.toggleCreateQuestion,
|
12741
13103
|
examSessionId = _ref.examSessionId;
|
13104
|
+
var _useTranslation = useTranslation(),
|
13105
|
+
t = _useTranslation.t;
|
12742
13106
|
return React__default.createElement(Dialog, {
|
12743
13107
|
onClose: toggleCreateQuestion,
|
12744
13108
|
open: openCreateQuestionDialog,
|
@@ -12754,7 +13118,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12754
13118
|
fontSize: '16px',
|
12755
13119
|
lineHeight: '19.09px',
|
12756
13120
|
color: '#202B37'
|
12757
|
-
},
|
13121
|
+
}, t('ask_a_question'))), React__default.createElement(IconButton$1, {
|
12758
13122
|
"aria-label": "close",
|
12759
13123
|
sx: {
|
12760
13124
|
position: 'absolute',
|
@@ -12782,7 +13146,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12782
13146
|
return React__default.createElement(Form, null, React__default.createElement("label", {
|
12783
13147
|
htmlFor: "content-question",
|
12784
13148
|
className: styles['form-label'] + " " + styles$4['form-label-dialog']
|
12785
|
-
},
|
13149
|
+
}, t('question_content')), React__default.createElement(Box, {
|
12786
13150
|
position: 'relative',
|
12787
13151
|
display: 'flex',
|
12788
13152
|
flexDirection: 'row',
|
@@ -12793,7 +13157,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12793
13157
|
paddingRight: '40px'
|
12794
13158
|
},
|
12795
13159
|
name: "content",
|
12796
|
-
placeholder:
|
13160
|
+
placeholder: t('the_problem_is_difficult'),
|
12797
13161
|
className: styles['form-control']
|
12798
13162
|
}), (errors === null || errors === void 0 ? void 0 : errors.content) && React__default.createElement(Box, {
|
12799
13163
|
position: 'absolute',
|
@@ -12808,7 +13172,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12808
13172
|
fontSize: '10px',
|
12809
13173
|
lineHeight: '11.93px',
|
12810
13174
|
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' : '#F34B4B'
|
12811
|
-
}, !(errors !== null && errors !== void 0 && errors.content) ? '
|
13175
|
+
}, !(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$1, {
|
12812
13176
|
sx: {
|
12813
13177
|
display: 'flex',
|
12814
13178
|
justifyContent: 'space-between',
|
@@ -12825,7 +13189,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12825
13189
|
fontWeight: 700,
|
12826
13190
|
fontSize: '14px',
|
12827
13191
|
lineHeight: '16.71px'
|
12828
|
-
},
|
13192
|
+
}, t('cancel'))), React__default.createElement(Button$1, {
|
12829
13193
|
variant: 'contained',
|
12830
13194
|
sx: {
|
12831
13195
|
bgcolor: styles.dark
|
@@ -12837,7 +13201,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
12837
13201
|
fontSize: '14px',
|
12838
13202
|
lineHeight: '16.71px',
|
12839
13203
|
color: '#FFFFFF'
|
12840
|
-
},
|
13204
|
+
}, t('registration')))));
|
12841
13205
|
})));
|
12842
13206
|
}
|
12843
13207
|
|