mario-core 2.7.9 → 2.8.2

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.
@@ -312,9 +312,6 @@ var checkResetToken = function checkResetToken(token) {
312
312
  var resetPassword = function resetPassword(data) {
313
313
  return api.post(ACCOUNT_URL + "/resetpassword", data);
314
314
  };
315
- var logInTwoFactor = function logInTwoFactor(data) {
316
- return api.post(ACCOUNT_URL + "/logintwostep", data);
317
- };
318
315
 
319
316
  var defaultInfo = {
320
317
  email: "",
@@ -353,10 +350,7 @@ var useLogin = function useLogin() {
353
350
  var isDistrict = window.location.host.includes("-district");
354
351
  var userLogin = useCallback(function (data) {
355
352
  try {
356
- var _exit2 = false;
357
-
358
- var _temp3 = function _temp3(_result) {
359
- if (_exit2) return _result;
353
+ var _temp3 = function _temp3() {
360
354
  dispatch(setLoading(false));
361
355
  };
362
356
 
@@ -364,23 +358,14 @@ var useLogin = function useLogin() {
364
358
 
365
359
  var _temp4 = _catch(function () {
366
360
  return Promise.resolve(logIn(data)).then(function (res) {
367
- var _res$data;
368
-
369
- if ((_res$data = res.data) !== null && _res$data !== void 0 && _res$data.isTwoFactor) {
370
- history.push("/2fa?id=" + res.data.id);
371
- dispatch(setLoading(false));
372
- _exit2 = true;
373
- return;
374
- }
375
-
376
- var _res$data2 = res.data,
377
- token = _res$data2.token,
378
- id = _res$data2.id,
379
- firstName = _res$data2.firstName,
380
- lastName = _res$data2.lastName,
381
- roles = _res$data2.roles,
382
- email = _res$data2.email,
383
- profileImageFileName = _res$data2.profileImageFileName;
361
+ var _res$data = res.data,
362
+ token = _res$data.token,
363
+ id = _res$data.id,
364
+ firstName = _res$data.firstName,
365
+ lastName = _res$data.lastName,
366
+ roles = _res$data.roles,
367
+ email = _res$data.email,
368
+ profileImageFileName = _res$data.profileImageFileName;
384
369
  localStorage.setItem(ACCESS_TOKEN, token);
385
370
  dispatch(setUser({
386
371
  id: id,
@@ -904,6 +889,47 @@ var BlockResetPassword = function BlockResetPassword() {
904
889
  });
905
890
  };
906
891
 
892
+ var LOGIN_TITLE = "Log in";
893
+ var FORGOT_PASSWORD_TITLE = "Forgot password";
894
+ var RESET_PASSWORD_TITLE = "Reset password";
895
+
896
+ var Login = function Login(props) {
897
+ var isLogin = props.isLogin,
898
+ isForgotPassword = props.isForgotPassword,
899
+ isResetPassword = props.isResetPassword;
900
+
901
+ var _useLogin = useLogin(),
902
+ defaultInfo = _useLogin.defaultInfo,
903
+ userLogin = _useLogin.userLogin;
904
+
905
+ useEffect(function () {
906
+ isLogin && (document.title = LOGIN_TITLE);
907
+ isForgotPassword && (document.title = FORGOT_PASSWORD_TITLE);
908
+ isResetPassword && (document.title = RESET_PASSWORD_TITLE);
909
+ }, [isLogin, isForgotPassword, isResetPassword]);
910
+ return React.createElement("div", {
911
+ className: styles["login"] + " container-fluid font-family-lato"
912
+ }, React.createElement(Row, {
913
+ className: "h-100"
914
+ }, React.createElement(Col, {
915
+ lg: 12,
916
+ md: 12,
917
+ xs: 12,
918
+ className: "d-flex justify-content-center h-100 align-items-center"
919
+ }, React.createElement(GoogleReCaptchaProvider, {
920
+ useRecaptchaNet: true,
921
+ reCaptchaKey: GOOGLE_RECAPTCHA_KEY,
922
+ scriptProps: {
923
+ async: true,
924
+ defer: true,
925
+ appendTo: "body"
926
+ }
927
+ }, isLogin && React.createElement(BlockLogin, {
928
+ userLogin: userLogin,
929
+ defaultInfo: defaultInfo
930
+ }), isForgotPassword && React.createElement(BlockForgetPassword, null)), isResetPassword && React.createElement(BlockResetPassword, null))));
931
+ };
932
+
907
933
  function _extends() {
908
934
  _extends = Object.assign || function (target) {
909
935
  for (var i = 1; i < arguments.length; i++) {
@@ -983,210 +1009,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
983
1009
  return it.next.bind(it);
984
1010
  }
985
1011
 
986
- var HOMEPAGE_TEACHER$1 = "/my-one-to-one/up-coming";
987
- var HOMEPAGE_STUDENT$1 = "/my-one-to-one/up-coming";
988
- var HOMEPAGE_ADMIN$1 = "/admin/dashboard";
989
- var HOMEPAGE_PARENT$1 = "/parent";
990
- var HOMEPAGE_DISTRICT$1 = "/admin/schools";
991
- var TITLE$2 = "2FA";
992
-
993
- var useLoginTwoFactor = function useLoginTwoFactor() {
994
- var dispatch = useDispatch();
995
- var history = useHistory();
996
- var isDistrict = window.location.host.includes("-district");
997
- var userLoginTwoFactor = useCallback(function (data) {
998
- try {
999
- var _temp3 = function _temp3() {
1000
- dispatch(setLoading(false));
1001
- };
1002
-
1003
- dispatch(setLoading(true));
1004
-
1005
- var _temp4 = _catch(function () {
1006
- return Promise.resolve(logInTwoFactor(data)).then(function (res) {
1007
- var _res$data = res.data,
1008
- token = _res$data.token,
1009
- id = _res$data.id,
1010
- firstName = _res$data.firstName,
1011
- lastName = _res$data.lastName,
1012
- roles = _res$data.roles,
1013
- email = _res$data.email,
1014
- profileImageFileName = _res$data.profileImageFileName;
1015
- localStorage.setItem(ACCESS_TOKEN, token);
1016
- dispatch(setUser({
1017
- id: id,
1018
- firstName: firstName,
1019
- lastName: lastName,
1020
- roles: roles,
1021
- email: email,
1022
- profileImageFileName: profileImageFileName
1023
- }));
1024
-
1025
- if (isDistrict) {
1026
- history.push(HOMEPAGE_DISTRICT$1);
1027
- } else if (roles.includes("Admin")) {
1028
- history.push(HOMEPAGE_ADMIN$1);
1029
- } else if (roles.includes("Teacher")) {
1030
- history.push(HOMEPAGE_TEACHER$1);
1031
- } else if (roles.includes("Student")) {
1032
- history.push(HOMEPAGE_STUDENT$1);
1033
- } else if (roles.includes("Parent")) {
1034
- history.push(HOMEPAGE_PARENT$1);
1035
- }
1036
- });
1037
- }, function (err) {
1038
- var _err$response, _err$response$data;
1039
-
1040
- dispatch(setAlert({
1041
- type: "danger",
1042
- message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message || "Login failed"
1043
- }));
1044
- });
1045
-
1046
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
1047
- } catch (e) {
1048
- return Promise.reject(e);
1049
- }
1050
- }, []);
1051
- useEffect(function () {
1052
- document.title = TITLE$2;
1053
- }, []);
1054
- return {
1055
- userLoginTwoFactor: userLoginTwoFactor
1056
- };
1057
- };
1058
-
1059
- var initialValues$2 = {
1060
- twoFactorCode: "",
1061
- id: "",
1062
- rememberMe: false
1063
- };
1064
- var schema$1 = object({
1065
- id: string().required("Bad credential"),
1066
- twoFactorCode: string().required("Additional Verification is required"),
1067
- rememberMe: boolean()
1068
- });
1069
-
1070
- var BlockTwoFactorLogin = function BlockTwoFactorLogin() {
1071
- var query = new URLSearchParams(useLocation().search);
1072
- var id = query.get("id");
1073
-
1074
- var _useLoginTwoFactor = useLoginTwoFactor(),
1075
- userLoginTwoFactor = _useLoginTwoFactor.userLoginTwoFactor;
1076
-
1077
- return React.createElement(Formik, {
1078
- initialValues: _extends({}, initialValues$2, {
1079
- id: id
1080
- }),
1081
- enableReinitialize: true,
1082
- validationSchema: schema$1,
1083
- onSubmit: function onSubmit(values) {
1084
- userLoginTwoFactor(values);
1085
- }
1086
- }, function (formikProps) {
1087
- var values = formikProps.values,
1088
- setFieldValue = formikProps.setFieldValue,
1089
- handleChange = formikProps.handleChange,
1090
- handleSubmit = formikProps.handleSubmit,
1091
- touched = formikProps.touched,
1092
- errors = formikProps.errors;
1093
- return React.createElement(Row, {
1094
- className: "" + styles["box-login"]
1095
- }, React.createElement(Col, {
1096
- className: "p-0"
1097
- }, React.createElement("div", {
1098
- className: "" + styles["block-login"]
1099
- }, React.createElement("div", {
1100
- className: "" + styles["block-form"]
1101
- }, React.createElement("p", {
1102
- className: "" + styles["title-login"]
1103
- }, "Additional Verification"), React.createElement("p", {
1104
- className: "recover-account"
1105
- }, "Check your email to get Additional Verification. This code will be expired in 5 minutes"), React.createElement("div", null, React.createElement(FormGroup, null, React.createElement(Label, null, "Additional Verification"), React.createElement(Input, {
1106
- name: "twoFactorCode",
1107
- value: values.twoFactorCode,
1108
- onChange: handleChange
1109
- }), touched.twoFactorCode && errors.twoFactorCode && React.createElement(ErrorHandler, {
1110
- text: errors.twoFactorCode
1111
- })), React.createElement(FormGroup, null, React.createElement(Input, {
1112
- type: "checkbox",
1113
- className: "" + styles["checkbox-remember"],
1114
- id: "remember",
1115
- onChange: function onChange(e) {
1116
- return setFieldValue("rememberMe", e.target.checked);
1117
- }
1118
- }), React.createElement(Label, {
1119
- "for": "rememberMe",
1120
- className: "" + styles["remember"]
1121
- }, "Remember my browser & IP"))), React.createElement(Col, {
1122
- className: "p-0 mt-5"
1123
- }, React.createElement("button", {
1124
- className: styles["btn-login"] + " ",
1125
- onClick: function onClick() {
1126
- return handleSubmit();
1127
- }
1128
- }, "Confirm")), React.createElement("p", {
1129
- className: "d-flex justify-content-between"
1130
- }, React.createElement(Link, {
1131
- to: "/login",
1132
- className: "" + styles["link-to-login"]
1133
- }, "Return to login"), React.createElement("a", {
1134
- href: "https://marioframework.com/privacy-policy/",
1135
- target: "blank",
1136
- className: "" + styles["link-to-login"]
1137
- }, "Privacy Policy"))))), React.createElement(Col, {
1138
- lg: 4,
1139
- md: 4,
1140
- className: "" + styles["img-box"]
1141
- }, React.createElement("img", {
1142
- src: "/images/img-login.jpg",
1143
- className: "" + styles["img-login"]
1144
- })));
1145
- });
1146
- };
1147
-
1148
- var LOGIN_TITLE = "Log in";
1149
- var FORGOT_PASSWORD_TITLE = "Forgot password";
1150
- var RESET_PASSWORD_TITLE = "Reset password";
1151
-
1152
- var Login = function Login(props) {
1153
- var isLogin = props.isLogin,
1154
- isForgotPassword = props.isForgotPassword,
1155
- isResetPassword = props.isResetPassword,
1156
- isLoginTwoFactor = props.isLoginTwoFactor;
1157
-
1158
- var _useLogin = useLogin(),
1159
- defaultInfo = _useLogin.defaultInfo,
1160
- userLogin = _useLogin.userLogin;
1161
-
1162
- useEffect(function () {
1163
- isLogin && (document.title = LOGIN_TITLE);
1164
- isForgotPassword && (document.title = FORGOT_PASSWORD_TITLE);
1165
- isResetPassword && (document.title = RESET_PASSWORD_TITLE);
1166
- }, [isLogin, isForgotPassword, isResetPassword]);
1167
- return React.createElement("div", {
1168
- className: styles["login"] + " container-fluid font-family-lato"
1169
- }, React.createElement(Row, {
1170
- className: "h-100"
1171
- }, React.createElement(Col, {
1172
- lg: 12,
1173
- md: 12,
1174
- xs: 12,
1175
- className: "d-flex justify-content-center h-100 align-items-center"
1176
- }, React.createElement(GoogleReCaptchaProvider, {
1177
- useRecaptchaNet: true,
1178
- reCaptchaKey: GOOGLE_RECAPTCHA_KEY,
1179
- scriptProps: {
1180
- async: true,
1181
- defer: true,
1182
- appendTo: "body"
1183
- }
1184
- }, isLogin && React.createElement(BlockLogin, {
1185
- userLogin: userLogin,
1186
- defaultInfo: defaultInfo
1187
- }), isForgotPassword && React.createElement(BlockForgetPassword, null)), isResetPassword && React.createElement(BlockResetPassword, null), isLoginTwoFactor && React.createElement(BlockTwoFactorLogin, null))));
1188
- };
1189
-
1190
1012
  var QuoteContent = function QuoteContent(_ref) {
1191
1013
  var descriptions = _ref.descriptions;
1192
1014
  return React.createElement("div", {
@@ -1595,11 +1417,11 @@ var TheHeader = function TheHeader() {
1595
1417
  }, "Privacy Policy"), !isDistrict && React.createElement(NotificationButton, null), React.createElement(TheHeaderDropdown, null)));
1596
1418
  };
1597
1419
 
1598
- var TITLE$3 = "Not found";
1420
+ var TITLE$2 = "Not found";
1599
1421
 
1600
1422
  var NotFound = function NotFound() {
1601
1423
  useEffect(function () {
1602
- document.title = TITLE$3;
1424
+ document.title = TITLE$2;
1603
1425
  });
1604
1426
  return React.createElement("div", {
1605
1427
  className: "not-found"
@@ -1963,7 +1785,7 @@ var useFilters = function useFilters() {
1963
1785
 
1964
1786
  var EMAIL_TEMPLATE_URL$1 = "/admin/email-template";
1965
1787
  var CREATE_TEMPLATE_URL = "/admin/create-email-template";
1966
- var TITLE$4 = "Email template list";
1788
+ var TITLE$3 = "Email template list";
1967
1789
 
1968
1790
  var useEmailTemplateList = function useEmailTemplateList() {
1969
1791
  var history = useHistory();
@@ -2064,7 +1886,7 @@ var useEmailTemplateList = function useEmailTemplateList() {
2064
1886
  history.push(url);
2065
1887
  }, []);
2066
1888
  useEffect(function () {
2067
- document.title = TITLE$4;
1889
+ document.title = TITLE$3;
2068
1890
  }, []);
2069
1891
  useEffect(function () {
2070
1892
  getData();
@@ -2422,6 +2244,7 @@ var config = {
2422
2244
  force_br_newlines: true,
2423
2245
  force_p_newlines: false,
2424
2246
  branding: false,
2247
+ convert_urls: false,
2425
2248
  plugins: "advlist autolink lists link image charmap print preview anchor\n searchreplace visualblocks code fullscreen\n insertdatetime media table paste code help wordcount media",
2426
2249
  toolbar: "undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | image",
2427
2250
  paste_data_images: true
@@ -2549,7 +2372,7 @@ var initValue = {
2549
2372
  attachments: []
2550
2373
  };
2551
2374
  var EMAIL_TEMPLATE_LIST_URL = "/admin/email-template";
2552
- var TITLE$5 = "Email template detail";
2375
+ var TITLE$4 = "Email template detail";
2553
2376
  var MAX_FILES_SIZE = 4194304;
2554
2377
 
2555
2378
  var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
@@ -2584,7 +2407,7 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
2584
2407
  setFileUpload = _useState4[1];
2585
2408
 
2586
2409
  useEffect(function () {
2587
- document.title = TITLE$5;
2410
+ document.title = TITLE$4;
2588
2411
  setEdited(false);
2589
2412
  if (!!localStorage.getItem(window.location.href)) localStorage.removeItem(window.location.href);
2590
2413
  }, []);
@@ -2815,7 +2638,7 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
2815
2638
  };
2816
2639
  };
2817
2640
 
2818
- var schema$2 = object({
2641
+ var schema$1 = object({
2819
2642
  subject: string().required("Template subject is required"),
2820
2643
  categoryId: number().required("Template category is required").test("test category id", "Template category is required", function (value) {
2821
2644
  return value >= 1;
@@ -2852,7 +2675,7 @@ var EmailTemplateDetail = function EmailTemplateDetail() {
2852
2675
  return React.createElement(Formik, {
2853
2676
  initialValues: emailTemplateDetail,
2854
2677
  enableReinitialize: true,
2855
- validationSchema: schema$2,
2678
+ validationSchema: schema$1,
2856
2679
  onSubmit: function onSubmit(values) {
2857
2680
  confirmData(values);
2858
2681
  setEdited(false);
@@ -3069,7 +2892,7 @@ var CommonModal = function CommonModal(props, ref) {
3069
2892
 
3070
2893
  var CommonModal$1 = forwardRef(CommonModal);
3071
2894
 
3072
- var schema$3 = object({
2895
+ var schema$2 = object({
3073
2896
  question: string().required("Question is required"),
3074
2897
  answer: string().required("Answer is required")
3075
2898
  });
@@ -3087,7 +2910,7 @@ var FaqDetailModal = function FaqDetailModal(props, ref) {
3087
2910
  return React.createElement(Formik, {
3088
2911
  initialValues: faqDetail,
3089
2912
  enableReinitialize: true,
3090
- validationSchema: schema$3,
2913
+ validationSchema: schema$2,
3091
2914
  onSubmit: function onSubmit(values, actions) {
3092
2915
  onConfirm(values);
3093
2916
  actions.resetForm();
@@ -3169,7 +2992,7 @@ var remove$1 = function remove(id) {
3169
2992
  return api["delete"](FAQ_URL + "/" + id);
3170
2993
  };
3171
2994
 
3172
- var TITLE$6 = "FAQ list";
2995
+ var TITLE$5 = "FAQ list";
3173
2996
 
3174
2997
  var useFaqList = function useFaqList() {
3175
2998
  var faqList = useSelector(function (state) {
@@ -3252,7 +3075,7 @@ var useFaqList = function useFaqList() {
3252
3075
  dispatch(setLoading(false));
3253
3076
  }, [filters]);
3254
3077
  useEffect(function () {
3255
- document.title = TITLE$6;
3078
+ document.title = TITLE$5;
3256
3079
  }, []);
3257
3080
  useEffect(function () {
3258
3081
  getData();
@@ -3599,7 +3422,7 @@ var SkillSelector = function SkillSelector(props) {
3599
3422
  }));
3600
3423
  };
3601
3424
 
3602
- var schema$4 = object({
3425
+ var schema$3 = object({
3603
3426
  name: string().required("Name is required"),
3604
3427
  description: string()
3605
3428
  });
@@ -3618,7 +3441,7 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
3618
3441
  return React.createElement(Formik, {
3619
3442
  initialValues: skillDetail,
3620
3443
  enableReinitialize: true,
3621
- validationSchema: schema$4,
3444
+ validationSchema: schema$3,
3622
3445
  onSubmit: function onSubmit(values, actions) {
3623
3446
  onConfirm(values);
3624
3447
  actions.resetForm();
@@ -3692,7 +3515,7 @@ var SkillDetailModal$1 = forwardRef(SkillDetailModal);
3692
3515
 
3693
3516
  var setSkillList = createAction("skills/setSkillList");
3694
3517
 
3695
- var TITLE$7 = "Skill list";
3518
+ var TITLE$6 = "Skill list";
3696
3519
 
3697
3520
  var useSkillList = function useSkillList() {
3698
3521
  var skillList = useSelector(function (state) {
@@ -3786,7 +3609,7 @@ var useSkillList = function useSkillList() {
3786
3609
  dispatch(setLoading(false));
3787
3610
  }, [filters]);
3788
3611
  useEffect(function () {
3789
- document.title = TITLE$7;
3612
+ document.title = TITLE$6;
3790
3613
  }, []);
3791
3614
  useEffect(function () {
3792
3615
  getData();
@@ -4084,12 +3907,12 @@ var changePassword = function changePassword(formData) {
4084
3907
 
4085
3908
  var USER_URL$1 = "/admin/user";
4086
3909
  var CREATE_USER_URL = "/admin/create-user";
4087
- var TITLE$8 = "User list";
3910
+ var TITLE$7 = "User list";
4088
3911
 
4089
3912
  var useUserList = function useUserList() {
4090
3913
  var history = useHistory();
4091
3914
  var query = new URLSearchParams(location.search);
4092
- var fullName = query.get("query");
3915
+ var queryName = query.get("query");
4093
3916
  var userList = useSelector(function (state) {
4094
3917
  return state.users.userList;
4095
3918
  });
@@ -4101,8 +3924,12 @@ var useUserList = function useUserList() {
4101
3924
  filters = _useFilters.filters,
4102
3925
  changeFilters = _useFilters.changeFilters;
4103
3926
 
3927
+ var _useState = useState(!!queryName ? queryName : ""),
3928
+ fullName = _useState[0],
3929
+ setFullName = _useState[1];
3930
+
4104
3931
  var dispatch = useDispatch();
4105
- var getData = useCallback(function () {
3932
+ var getData = useCallback(function (fullName) {
4106
3933
  try {
4107
3934
  var _temp3 = function _temp3() {
4108
3935
  dispatch(setLoading(false));
@@ -4111,7 +3938,9 @@ var useUserList = function useUserList() {
4111
3938
  dispatch(setLoading(true));
4112
3939
 
4113
3940
  var _temp4 = _catch(function () {
4114
- return Promise.resolve(get$5(filters)).then(function (res) {
3941
+ return Promise.resolve(fullName ? get$5(_extends({}, filters, {
3942
+ searchString: fullName
3943
+ })) : get$5(filters)).then(function (res) {
4115
3944
  var _res$data = res.data,
4116
3945
  items = _res$data.items,
4117
3946
  totalItems = _res$data.totalItems;
@@ -4135,16 +3964,16 @@ var useUserList = function useUserList() {
4135
3964
  }
4136
3965
  }, [dispatch, filters]);
4137
3966
  useEffect(function () {
4138
- document.title = TITLE$8;
3967
+ document.title = TITLE$7;
4139
3968
  }, []);
4140
3969
  useEffect(function () {
4141
- getData();
3970
+ if (!!fullName) {
3971
+ getData(fullName);
3972
+ setFullName(null);
3973
+ } else {
3974
+ getData();
3975
+ }
4142
3976
  }, [filters]);
4143
- useEffect(function () {
4144
- changeFilters({
4145
- searchString: fullName
4146
- });
4147
- }, [fullName]);
4148
3977
  var removeData = useCallback(function (id) {
4149
3978
  dispatch(setLoading(true));
4150
3979
 
@@ -4190,7 +4019,7 @@ var useUserList = function useUserList() {
4190
4019
  userList: userList,
4191
4020
  totalItems: totalItems,
4192
4021
  filters: filters,
4193
- fullName: fullName,
4022
+ queryName: queryName,
4194
4023
  getData: getData,
4195
4024
  removeData: removeData,
4196
4025
  changeFilters: changeFilters,
@@ -4267,7 +4096,7 @@ var header$2 = "User";
4267
4096
 
4268
4097
  var UserList = function UserList() {
4269
4098
  var _useUserList = useUserList(),
4270
- fullName = _useUserList.fullName,
4099
+ queryName = _useUserList.queryName,
4271
4100
  userList = _useUserList.userList,
4272
4101
  totalItems = _useUserList.totalItems,
4273
4102
  filters = _useUserList.filters,
@@ -4288,7 +4117,7 @@ var UserList = function UserList() {
4288
4117
  onClick: function onClick() {
4289
4118
  return reDirectDetailPage();
4290
4119
  },
4291
- initValue: !!fullName ? fullName : '',
4120
+ initValue: !!queryName ? queryName : "",
4292
4121
  onSearch: function onSearch(searchString) {
4293
4122
  return changeFilters({
4294
4123
  searchString: searchString
@@ -4460,7 +4289,7 @@ var initValue$3 = {
4460
4289
  profileImageFileName: ""
4461
4290
  };
4462
4291
  var USER_LIST_URL = "/admin/user";
4463
- var TITLE$9 = "User detail";
4292
+ var TITLE$8 = "User detail";
4464
4293
 
4465
4294
  var useUserDetail = function useUserDetail(id) {
4466
4295
  var dispatch = useDispatch();
@@ -4489,7 +4318,7 @@ var useUserDetail = function useUserDetail(id) {
4489
4318
  };
4490
4319
 
4491
4320
  useEffect(function () {
4492
- document.title = TITLE$9;
4321
+ document.title = TITLE$8;
4493
4322
  setEdited(false);
4494
4323
  if (!!localStorage.getItem(window.location.href)) localStorage.removeItem(window.location.href);
4495
4324
  }, []);
@@ -5329,7 +5158,7 @@ var defaultFilters = {
5329
5158
  searchString: "",
5330
5159
  isRead: false
5331
5160
  };
5332
- var TITLE$a = "Notification list";
5161
+ var TITLE$9 = "Notification list";
5333
5162
  var NOTIFICATION_CHANNEL$1 = "NOTIFICATION_CHANNEL";
5334
5163
  var NEW_NOTIFICATION$1 = "NEW_NOTIFICATION";
5335
5164
 
@@ -5422,7 +5251,7 @@ var useNotificationList = function useNotificationList() {
5422
5251
  }
5423
5252
  }, [filters]);
5424
5253
  useEffect(function () {
5425
- document.title = TITLE$a;
5254
+ document.title = TITLE$9;
5426
5255
  }, []);
5427
5256
  useEffect(function () {
5428
5257
  getData();
@@ -5672,7 +5501,7 @@ var CommonAlert = function CommonAlert() {
5672
5501
  }, alert.message)) : null;
5673
5502
  };
5674
5503
 
5675
- var schema$5 = object({
5504
+ var schema$4 = object({
5676
5505
  name: string().required("Name is required")
5677
5506
  });
5678
5507
 
@@ -5686,7 +5515,7 @@ var ActionModal = function ActionModal(props, ref) {
5686
5515
  name: targetMedia === null || targetMedia === void 0 ? void 0 : targetMedia.name
5687
5516
  },
5688
5517
  enableReinitialize: true,
5689
- validationSchema: schema$5,
5518
+ validationSchema: schema$4,
5690
5519
  onSubmit: function onSubmit(values, actions) {
5691
5520
  onConfirm && onConfirm(values);
5692
5521
  actions.resetForm();
@@ -5984,7 +5813,7 @@ var get$8 = function get(filter) {
5984
5813
  });
5985
5814
  };
5986
5815
 
5987
- var TITLE$b = "Gallery";
5816
+ var TITLE$a = "Gallery";
5988
5817
  var defaultFilter = {
5989
5818
  searchString: ""
5990
5819
  };
@@ -6221,7 +6050,7 @@ var useGalleryList = function useGalleryList(isLibrary) {
6221
6050
  }
6222
6051
  }, [dispatch, filters]);
6223
6052
  useEffect(function () {
6224
- document.title = TITLE$b;
6053
+ document.title = TITLE$a;
6225
6054
  dispatch(setTargetMedia({
6226
6055
  targetMedia: undefined
6227
6056
  }));