mario-core 2.9.26-admin → 2.9.27-admin
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.d.ts +4 -2
- package/dist/index.js +141 -92
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +140 -92
- package/dist/index.modern.js.map +1 -1
- package/dist/types/Payload.d.ts +3 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ import useGalleryList from "./containers/Gallery/hooks/useGalleryList";
|
|
|
45
45
|
import QuitPrompt from "./components/Others/QuitPrompt";
|
|
46
46
|
import AcademicClassSelector from "./components/Selectors/AcademicClassSelector";
|
|
47
47
|
import SchoolList from "./containers/DistrictSchools/views/SchoolList";
|
|
48
|
+
import { INIT_AMPLITUDE_KEY } from "./utils/constants";
|
|
48
49
|
import store from "./store";
|
|
49
50
|
import { api, apiUpload } from "./services/api";
|
|
50
51
|
import editorConfig from "./configs/editorConfig";
|
|
@@ -102,5 +103,6 @@ import { setBandScoreList } from "./redux/bandScores/action";
|
|
|
102
103
|
import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
|
|
103
104
|
import { setEnableIEP, setConversationOneToOne } from "./redux/commons/action";
|
|
104
105
|
import useFilters from "./hooks/useFilters";
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
import amplitude from "amplitude-js";
|
|
107
|
+
declare const amplitudeClient: amplitude.AmplitudeClient;
|
|
108
|
+
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setConversationOneToOne, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
2
2
|
|
|
3
3
|
require('bootstrap/dist/css/bootstrap.min.css');
|
|
4
|
-
var amplitude = _interopDefault(require('amplitude-js'));
|
|
5
4
|
var React = require('react');
|
|
6
5
|
var React__default = _interopDefault(React);
|
|
7
6
|
var reactstrap = require('reactstrap');
|
|
@@ -11,6 +10,7 @@ var yup = require('yup');
|
|
|
11
10
|
var reactRedux = require('react-redux');
|
|
12
11
|
var toolkit = require('@reduxjs/toolkit');
|
|
13
12
|
var axios = _interopDefault(require('axios'));
|
|
13
|
+
var amplitude = _interopDefault(require('amplitude-js'));
|
|
14
14
|
var reactGoogleRecaptchaV3 = require('react-google-recaptcha-v3');
|
|
15
15
|
var GoogleLogin = _interopDefault(require('react-google-login'));
|
|
16
16
|
var Select = _interopDefault(require('react-select'));
|
|
@@ -31,6 +31,81 @@ require('react-notifications-component/dist/theme.css');
|
|
|
31
31
|
var ai = require('react-icons/ai');
|
|
32
32
|
var moment = _interopDefault(require('moment'));
|
|
33
33
|
|
|
34
|
+
// A type of promise-like that resolves synchronously and supports only one observer
|
|
35
|
+
|
|
36
|
+
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
37
|
+
|
|
38
|
+
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
39
|
+
|
|
40
|
+
// Asynchronously call a function and send errors to recovery continuation
|
|
41
|
+
function _catch(body, recover) {
|
|
42
|
+
try {
|
|
43
|
+
var result = body();
|
|
44
|
+
} catch(e) {
|
|
45
|
+
return recover(e);
|
|
46
|
+
}
|
|
47
|
+
if (result && result.then) {
|
|
48
|
+
return result.then(void 0, recover);
|
|
49
|
+
}
|
|
50
|
+
return result;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","login":"_F-hjL","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","hide-in-mobile":"_1INnO","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
54
|
+
|
|
55
|
+
var style = {
|
|
56
|
+
fontSize: "0.85rem"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
var ErrorHandler = function ErrorHandler(_ref) {
|
|
60
|
+
var text = _ref.text;
|
|
61
|
+
return React__default.createElement("p", {
|
|
62
|
+
className: "text-danger",
|
|
63
|
+
style: style
|
|
64
|
+
}, text);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var containerStyle = {
|
|
68
|
+
height: "40px",
|
|
69
|
+
backgroundColor: "#f7f9fc",
|
|
70
|
+
borderRadius: "4px",
|
|
71
|
+
marginBottom: "5px",
|
|
72
|
+
position: "relative"
|
|
73
|
+
};
|
|
74
|
+
var inputStyle = {
|
|
75
|
+
backgroundColor: "#f7f9fc",
|
|
76
|
+
paddingRight: "50px"
|
|
77
|
+
};
|
|
78
|
+
var eyeIconStyle = {
|
|
79
|
+
fontSize: "20px",
|
|
80
|
+
position: "absolute",
|
|
81
|
+
right: "10px"
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var PasswordInput = function PasswordInput(_ref) {
|
|
85
|
+
var isShowPassword = _ref.isShowPassword,
|
|
86
|
+
togglePasswordVisible = _ref.togglePasswordVisible,
|
|
87
|
+
onChange = _ref.onChange;
|
|
88
|
+
return React__default.createElement("div", {
|
|
89
|
+
className: "d-flex align-items-center w-100",
|
|
90
|
+
style: containerStyle
|
|
91
|
+
}, React__default.createElement(reactstrap.Input, {
|
|
92
|
+
className: "border password-input",
|
|
93
|
+
style: inputStyle,
|
|
94
|
+
type: isShowPassword ? "text" : "password",
|
|
95
|
+
name: "password",
|
|
96
|
+
onChange: onChange,
|
|
97
|
+
placeholder: "Password",
|
|
98
|
+
required: true
|
|
99
|
+
}), React__default.createElement("i", {
|
|
100
|
+
className: "far " + (isShowPassword ? "fa-eye-slash" : "fa-eye") + " mx-2 cursor-pointer",
|
|
101
|
+
style: eyeIconStyle,
|
|
102
|
+
onClick: function onClick() {
|
|
103
|
+
return togglePasswordVisible();
|
|
104
|
+
},
|
|
105
|
+
title: isShowPassword ? "Hide" : "Show"
|
|
106
|
+
}));
|
|
107
|
+
};
|
|
108
|
+
|
|
34
109
|
var TINY_MCE_API_KEY = "adpshj9swgsscf83gw4gs2f74nx0vicpd5ydka20iqjd7l8r";
|
|
35
110
|
var GOOGLE_RECAPTCHA_KEY = "6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0";
|
|
36
111
|
var INIT_AMPLITUDE_KEY = "860fa99c52ae79d98e904b4c862ddaac";
|
|
@@ -153,81 +228,6 @@ var ROLES = {
|
|
|
153
228
|
PARENT: "Parent"
|
|
154
229
|
};
|
|
155
230
|
|
|
156
|
-
// A type of promise-like that resolves synchronously and supports only one observer
|
|
157
|
-
|
|
158
|
-
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
159
|
-
|
|
160
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
161
|
-
|
|
162
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
163
|
-
function _catch(body, recover) {
|
|
164
|
-
try {
|
|
165
|
-
var result = body();
|
|
166
|
-
} catch(e) {
|
|
167
|
-
return recover(e);
|
|
168
|
-
}
|
|
169
|
-
if (result && result.then) {
|
|
170
|
-
return result.then(void 0, recover);
|
|
171
|
-
}
|
|
172
|
-
return result;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","login":"_F-hjL","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","hide-in-mobile":"_1INnO","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
176
|
-
|
|
177
|
-
var style = {
|
|
178
|
-
fontSize: "0.85rem"
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
var ErrorHandler = function ErrorHandler(_ref) {
|
|
182
|
-
var text = _ref.text;
|
|
183
|
-
return React__default.createElement("p", {
|
|
184
|
-
className: "text-danger",
|
|
185
|
-
style: style
|
|
186
|
-
}, text);
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
var containerStyle = {
|
|
190
|
-
height: "40px",
|
|
191
|
-
backgroundColor: "#f7f9fc",
|
|
192
|
-
borderRadius: "4px",
|
|
193
|
-
marginBottom: "5px",
|
|
194
|
-
position: "relative"
|
|
195
|
-
};
|
|
196
|
-
var inputStyle = {
|
|
197
|
-
backgroundColor: "#f7f9fc",
|
|
198
|
-
paddingRight: "50px"
|
|
199
|
-
};
|
|
200
|
-
var eyeIconStyle = {
|
|
201
|
-
fontSize: "20px",
|
|
202
|
-
position: "absolute",
|
|
203
|
-
right: "10px"
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
var PasswordInput = function PasswordInput(_ref) {
|
|
207
|
-
var isShowPassword = _ref.isShowPassword,
|
|
208
|
-
togglePasswordVisible = _ref.togglePasswordVisible,
|
|
209
|
-
onChange = _ref.onChange;
|
|
210
|
-
return React__default.createElement("div", {
|
|
211
|
-
className: "d-flex align-items-center w-100",
|
|
212
|
-
style: containerStyle
|
|
213
|
-
}, React__default.createElement(reactstrap.Input, {
|
|
214
|
-
className: "border password-input",
|
|
215
|
-
style: inputStyle,
|
|
216
|
-
type: isShowPassword ? "text" : "password",
|
|
217
|
-
name: "password",
|
|
218
|
-
onChange: onChange,
|
|
219
|
-
placeholder: "Password",
|
|
220
|
-
required: true
|
|
221
|
-
}), React__default.createElement("i", {
|
|
222
|
-
className: "far " + (isShowPassword ? "fa-eye-slash" : "fa-eye") + " mx-2 cursor-pointer",
|
|
223
|
-
style: eyeIconStyle,
|
|
224
|
-
onClick: function onClick() {
|
|
225
|
-
return togglePasswordVisible();
|
|
226
|
-
},
|
|
227
|
-
title: isShowPassword ? "Hide" : "Show"
|
|
228
|
-
}));
|
|
229
|
-
};
|
|
230
|
-
|
|
231
231
|
var getAccessToken = (function () {
|
|
232
232
|
try {
|
|
233
233
|
return localStorage.getItem(ACCESS_TOKEN);
|
|
@@ -304,6 +304,16 @@ var apiUpload = axios.create({
|
|
|
304
304
|
Object.keys(localStorage).forEach(function (key) {
|
|
305
305
|
if (!key.includes('learning-plan')) delete localStorage[key];
|
|
306
306
|
});
|
|
307
|
+
var userEmail = localStorage.getItem("USER_EMAIL");
|
|
308
|
+
|
|
309
|
+
if (userEmail) {
|
|
310
|
+
amplitude.getInstance().logEvent("general: session end", {
|
|
311
|
+
user_id: userEmail
|
|
312
|
+
});
|
|
313
|
+
amplitude.getInstance().resetSessionId();
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
localStorage.setItem("USER_EMAIL", "");
|
|
307
317
|
window.location.href = "/login";
|
|
308
318
|
}
|
|
309
319
|
|
|
@@ -417,7 +427,8 @@ var useLogin = function useLogin() {
|
|
|
417
427
|
lastName = _res$data.lastName,
|
|
418
428
|
roles = _res$data.roles,
|
|
419
429
|
email = _res$data.email,
|
|
420
|
-
profileImageFileName = _res$data.profileImageFileName
|
|
430
|
+
profileImageFileName = _res$data.profileImageFileName,
|
|
431
|
+
isLoginFirst = _res$data.isLoginFirst;
|
|
421
432
|
localStorage.setItem(ACCESS_TOKEN, token);
|
|
422
433
|
dispatch(setUser({
|
|
423
434
|
id: id,
|
|
@@ -428,6 +439,26 @@ var useLogin = function useLogin() {
|
|
|
428
439
|
profileImageFileName: profileImageFileName
|
|
429
440
|
}));
|
|
430
441
|
|
|
442
|
+
if (data !== null && data !== void 0 && data.email && !roles.includes("Admin")) {
|
|
443
|
+
amplitude.getInstance().init(INIT_AMPLITUDE_KEY, data.email, {
|
|
444
|
+
includeReferrer: false,
|
|
445
|
+
includeUtm: false
|
|
446
|
+
});
|
|
447
|
+
var hostName = window.location.hostname;
|
|
448
|
+
amplitude.getInstance().logEvent("general: session start", {
|
|
449
|
+
user_id: data.email,
|
|
450
|
+
domain: hostName
|
|
451
|
+
});
|
|
452
|
+
localStorage.setItem("USER_EMAIL", data.email);
|
|
453
|
+
|
|
454
|
+
if (isLoginFirst) {
|
|
455
|
+
amplitude.getInstance().logEvent("general: first login", {
|
|
456
|
+
user_id: data.email,
|
|
457
|
+
domain: hostName
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
431
462
|
if (isDistrict) {
|
|
432
463
|
history.push(HOMEPAGE_DISTRICT);
|
|
433
464
|
} else if (roles.includes("Admin")) {
|
|
@@ -7101,7 +7132,20 @@ var initialState = {
|
|
|
7101
7132
|
menuBar: true,
|
|
7102
7133
|
defaultFontSize: 16,
|
|
7103
7134
|
isEnableIEP: true,
|
|
7104
|
-
isConversationOneToOne: false
|
|
7135
|
+
isConversationOneToOne: false,
|
|
7136
|
+
amplitude: {
|
|
7137
|
+
user_id: "",
|
|
7138
|
+
status: "",
|
|
7139
|
+
student_id: "",
|
|
7140
|
+
page: "",
|
|
7141
|
+
part: "",
|
|
7142
|
+
iep_date: null,
|
|
7143
|
+
saved: null,
|
|
7144
|
+
first_login: "",
|
|
7145
|
+
duration_since: 0,
|
|
7146
|
+
last_page: "",
|
|
7147
|
+
event: ""
|
|
7148
|
+
}
|
|
7105
7149
|
};
|
|
7106
7150
|
var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
7107
7151
|
builder.addCase(setLoading, function (state, action) {
|
|
@@ -7135,19 +7179,25 @@ var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
|
7135
7179
|
state.isConversationOneToOne = action.payload;
|
|
7136
7180
|
}).addCase(showFontSize, function (state, action) {
|
|
7137
7181
|
state.defaultFontSize = action.payload;
|
|
7138
|
-
}).addCase(initAmplitude, function (
|
|
7139
|
-
var _action$payload, _action$payload2, _action$payload3, _action$payload4, _action$payload5, _action$payload6, _action$payload7;
|
|
7182
|
+
}).addCase(initAmplitude, function (state, action) {
|
|
7183
|
+
var _action$payload, _action$payload2, _action$payload3, _action$payload4, _action$payload5, _action$payload6, _action$payload7, _action$payload8, _action$payload9, _action$payload10, _action$payload11;
|
|
7140
7184
|
|
|
7185
|
+
var hostName = window.location.hostname;
|
|
7141
7186
|
var eventProperties = {
|
|
7142
|
-
user_id: action.payload.name,
|
|
7143
|
-
status: (_action$
|
|
7144
|
-
student_id: (_action$
|
|
7145
|
-
page: (_action$
|
|
7146
|
-
part: (_action$
|
|
7147
|
-
iep_date: (_action$
|
|
7148
|
-
saved: typeof ((_action$
|
|
7187
|
+
user_id: (_action$payload = action.payload) === null || _action$payload === void 0 ? void 0 : _action$payload.name,
|
|
7188
|
+
status: (_action$payload2 = action.payload) !== null && _action$payload2 !== void 0 && _action$payload2.status ? (_action$payload3 = action.payload) === null || _action$payload3 === void 0 ? void 0 : _action$payload3.status : "",
|
|
7189
|
+
student_id: (_action$payload4 = action.payload) !== null && _action$payload4 !== void 0 && _action$payload4.student_id ? action.payload.student_id : "",
|
|
7190
|
+
page: (_action$payload5 = action.payload) !== null && _action$payload5 !== void 0 && _action$payload5.page ? action.payload.page : "",
|
|
7191
|
+
part: (_action$payload6 = action.payload) !== null && _action$payload6 !== void 0 && _action$payload6.part ? action.payload.part : "",
|
|
7192
|
+
iep_date: (_action$payload7 = action.payload) !== null && _action$payload7 !== void 0 && _action$payload7.iep_date ? action.payload.iep_date : null,
|
|
7193
|
+
saved: typeof ((_action$payload8 = action.payload) === null || _action$payload8 === void 0 ? void 0 : _action$payload8.saved) == "boolean" ? action.payload.saved : null,
|
|
7194
|
+
first_login: (_action$payload9 = action.payload) !== null && _action$payload9 !== void 0 && _action$payload9.first_login ? action.payload.first_login : "",
|
|
7195
|
+
duration_since: (_action$payload10 = action.payload) !== null && _action$payload10 !== void 0 && _action$payload10.duration_since ? action.payload.duration_since : 0,
|
|
7196
|
+
last_page: (_action$payload11 = action.payload) !== null && _action$payload11 !== void 0 && _action$payload11.last_page ? action.payload.last_page : "",
|
|
7197
|
+
event: action.payload.event,
|
|
7198
|
+
domain: !!hostName ? hostName : ""
|
|
7149
7199
|
};
|
|
7150
|
-
amplitude
|
|
7200
|
+
state.amplitude = eventProperties;
|
|
7151
7201
|
});
|
|
7152
7202
|
});
|
|
7153
7203
|
|
|
@@ -8058,9 +8108,7 @@ var generateRandomString = (function () {
|
|
|
8058
8108
|
return (Math.random() + 1).toString(36).substring(7);
|
|
8059
8109
|
});
|
|
8060
8110
|
|
|
8061
|
-
var
|
|
8062
|
-
return amplitude.getInstance().init(INIT_AMPLITUDE_KEY, userId);
|
|
8063
|
-
};
|
|
8111
|
+
var amplitudeClient = amplitude.getInstance();
|
|
8064
8112
|
|
|
8065
8113
|
exports.ACCESS_TOKEN = ACCESS_TOKEN;
|
|
8066
8114
|
exports.ANSWER_EDITOR_HEIGHT = ANSWER_EDITOR_HEIGHT;
|
|
@@ -8092,6 +8140,7 @@ exports.FaqList = FaqList;
|
|
|
8092
8140
|
exports.FileInput = InputFile;
|
|
8093
8141
|
exports.GOOGLE_RECAPTCHA_KEY = GOOGLE_RECAPTCHA_KEY;
|
|
8094
8142
|
exports.GalleryList = GalleryList;
|
|
8143
|
+
exports.INIT_AMPLITUDE_KEY = INIT_AMPLITUDE_KEY;
|
|
8095
8144
|
exports.Images = Images;
|
|
8096
8145
|
exports.LICENSE_AGGRID = LICENSE_AGGRID;
|
|
8097
8146
|
exports.LinkEditButton = LinkEditButton;
|
|
@@ -8125,7 +8174,7 @@ exports.UploadFileButton = UploadFileButton;
|
|
|
8125
8174
|
exports.UserDetail = UserDetail;
|
|
8126
8175
|
exports.UserList = UserList;
|
|
8127
8176
|
exports.addTab = addTab;
|
|
8128
|
-
exports.
|
|
8177
|
+
exports.amplitudeClient = amplitudeClient;
|
|
8129
8178
|
exports.answerQuestion = answerQuestion;
|
|
8130
8179
|
exports.answerQuestionDataPlayer = answerQuestionDataPlayer;
|
|
8131
8180
|
exports.api = api;
|