Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,863 @@
|
||||
/* Metro module 9535; source: modules/qualtrics/QualtricsActionCreators.tsx; dependencies: [57, 5, 9536, 9538, 9539, 9540, 661, 507, 694, 1216, 9541, 2] */
|
||||
function _fun74366(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:6, offset: 0x01d8b6f8, size: 324 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = function() {
|
||||
return _fetchSurveyDetails.apply(this, arguments);
|
||||
};
|
||||
const closure2 = function() {
|
||||
return _submitSurveyResponse.apply(this, arguments);
|
||||
};
|
||||
const closure3 = function() {
|
||||
return _fireSurveyAction.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
const surveyStore = importDefault(9536) /* metro dependency 9536: SurveyStore */;
|
||||
const env0_6 = (require(9538) /* metro dependency 9538: QualtricsResponseStore */).useQualtricsResponseStore;
|
||||
const qualtricsStore = importDefault(9539) /* metro dependency 9539: QualtricsStore */;
|
||||
const qualtricsConstantsModule = require(9540) /* metro dependency 9540: QualtricsConstants */;
|
||||
const env0_8 = qualtricsConstantsModule.QuestionSelectorEnum;
|
||||
const env0_9 = qualtricsConstantsModule.QuestionTypeEnum;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
object2 = {fetchSurveyDetails: closure, submitSurveyResponse: closure2, fireSurveyAction: closure3};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/qualtrics/QualtricsActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
exports.fetchSurveyDetails = closure;
|
||||
exports.submitSurveyResponse = closure2;
|
||||
exports.fireSurveyAction = closure3;
|
||||
}
|
||||
|
||||
function _fetchSurveyDetails() { // fn#74368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:327, offset: 0x01d8b83c, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun74370).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _submitSurveyResponse() { // fn#74372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:741, offset: 0x01d8b943, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun74374).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fireSurveyAction() { // fn#74378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:2139, offset: 0x01d8bd73, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun74380).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun74370(a0) { // fn#74370, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:388, offset: 0x01d8b879, size: 202 bytes, params: 2, frame: 18
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var HTTP;
|
||||
var get;
|
||||
var object2;
|
||||
var EMBEDDED_SURVEY;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var body;
|
||||
var binding3;
|
||||
var value8;
|
||||
var dispatch;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
HTTP = value3.HTTP;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding = env2_10;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
EMBEDDED_SURVEY = binding.EMBEDDED_SURVEY;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value4 = Reflect.apply(EMBEDDED_SURVEY, binding, [a0]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2.url = value4;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2.rejectWithError = true;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(get, HTTP, [object2]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
body = value6.body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = binding3[8];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value8 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
dispatch = value8.dispatch;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2.type = 'QUALTRICS_SURVEY_FETCH_SUCCESS';
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2.surveyId = a0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2.surveyDetails = body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value8, [object2]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
return body;
|
||||
}
|
||||
|
||||
function* _fun74374(a0, a1) { // fn#74374, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:806, offset: 0x01d8b980, size: 280 bytes, params: 3, frame: 21
|
||||
var environment;
|
||||
var object4;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var HTTP;
|
||||
var post;
|
||||
var object5;
|
||||
var EMBEDDED_SURVEY_RESPONSE;
|
||||
var value7;
|
||||
var object6;
|
||||
var JSON;
|
||||
var stringify;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var body;
|
||||
var responseId;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_6;
|
||||
const surveyResponses = parseSurveyResponses(a0, a1, binding.getState().getDisplayedQuestions(a0) ?? []);
|
||||
if (surveyResponses == null) {
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
HTTP = value6.HTTP;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
post = HTTP.post;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
object5 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
binding = env2_10;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
EMBEDDED_SURVEY_RESPONSE = binding.EMBEDDED_SURVEY_RESPONSE;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(EMBEDDED_SURVEY_RESPONSE, binding, [a0]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
object5.url = value7;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
object6 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
JSON = global.JSON;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
stringify = JSON.stringify;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(stringify, JSON, [surveyResponses]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
object6.values_json = value8;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
object5.body = object6;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
object5.rejectWithError = true;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
value9 = Reflect.apply(post, HTTP, [object5]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
yield value9;
|
||||
try {
|
||||
value10 = undefined;
|
||||
value11 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
if (value11) {
|
||||
return value10;
|
||||
}
|
||||
try {
|
||||
body = value10.body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
responseId = body.responseId;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
try {
|
||||
object4.responseId = responseId;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[9]);
|
||||
value.captureException(error);
|
||||
return {responseId: 'null'};
|
||||
}
|
||||
return object4;
|
||||
}
|
||||
|
||||
function* _fun74380(a0, a1) { // fn#74380, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:2196, offset: 0x01d8bdb0, size: 312 bytes, params: 3, frame: 20
|
||||
var r2;
|
||||
var survey;
|
||||
var SURVEY_ACTION_SAMPLE_PERCENTS;
|
||||
var property;
|
||||
var Math;
|
||||
var random;
|
||||
var value5;
|
||||
var value6;
|
||||
var object3;
|
||||
var binding2;
|
||||
var value7;
|
||||
var HTTP;
|
||||
var post;
|
||||
var object4;
|
||||
var EMBEDDED_SURVEY_ACTION;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var binding3;
|
||||
var value11;
|
||||
var dispatch;
|
||||
var value12;
|
||||
var body;
|
||||
var value13;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
let binding = env2_5;
|
||||
const shouldAllowSurveyAction2 = binding.shouldAllowSurveyAction();
|
||||
reducibleJoin3: while (true) {
|
||||
if (shouldAllowSurveyAction2) {
|
||||
binding = env2_0;
|
||||
SURVEY_ACTION_SAMPLE_PERCENTS = binding(env2_2[10]).SURVEY_ACTION_SAMPLE_PERCENTS;
|
||||
property = SURVEY_ACTION_SAMPLE_PERCENTS[a0];
|
||||
Math = global.Math;
|
||||
random = Math.random;
|
||||
value5 = Reflect.apply(random, Math, []);
|
||||
value6 = property >= 100 * value5;
|
||||
r2 = value6;
|
||||
break reducibleJoin3;
|
||||
}
|
||||
r2 = !!shouldAllowSurveyAction2;
|
||||
break reducibleJoin3;
|
||||
}
|
||||
reduciblePort43: while (true) {
|
||||
exceptionLanding42: while (true) {
|
||||
if (r2) {
|
||||
object3 = {action_type: a0};
|
||||
reducibleJoin6: while (true) {
|
||||
if (a1 == null) {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
object3.metadata = a1;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
HTTP = value7.HTTP;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
post = HTTP.post;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
binding = env2_10;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
EMBEDDED_SURVEY_ACTION = binding.EMBEDDED_SURVEY_ACTION;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
object4.url = EMBEDDED_SURVEY_ACTION;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
object4.body = object3;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
object4.rejectWithError = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(post, HTTP, [object4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
yield value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
if (value10) {
|
||||
return value9;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
property = binding3[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
value11 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
dispatch = value11.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
object3 = {'type': 'SURVEY_FETCHED', 'survey': null, 'isActionTriggered': true};
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
value12 = value9 == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
reducibleJoin39: while (true) {
|
||||
if (value12) {
|
||||
survey = value;
|
||||
break reducibleJoin39;
|
||||
}
|
||||
try {
|
||||
body = value9.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
value13 = body == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
if (value13) {
|
||||
survey = value;
|
||||
break reducibleJoin39;
|
||||
}
|
||||
try {
|
||||
survey = body.survey;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
break reducibleJoin39;
|
||||
}
|
||||
try {
|
||||
object3.survey = survey;
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value11, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding42;
|
||||
}
|
||||
break reduciblePort43;
|
||||
}
|
||||
break reduciblePort43;
|
||||
}
|
||||
break reduciblePort43;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function parseSurveyResponses(a0, a1, a2) { // fn#74375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:867, offset: 0x01d8ba98, size: 558 bytes, params: 4, frame: 37
|
||||
var r7;
|
||||
var property;
|
||||
var value5;
|
||||
var property2;
|
||||
var Questions;
|
||||
var property3;
|
||||
var QuestionType;
|
||||
var MULTIPLE_CHOICE;
|
||||
var Selector;
|
||||
var MULTIPLE_ANSWER;
|
||||
var SINGLE_ANSWER;
|
||||
var TEXT_ENTRY;
|
||||
var HermesInternal;
|
||||
var concat;
|
||||
var includes;
|
||||
var parseInt;
|
||||
var split;
|
||||
var property4;
|
||||
var property5;
|
||||
var ChoiceOrder;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
const survey = env3_7.getSurvey(a0);
|
||||
if (survey == null) {
|
||||
return null;
|
||||
}
|
||||
const object2 = {};
|
||||
let Object = global.Object;
|
||||
const value3 = Object.entries(a1);
|
||||
let length = value3.length;
|
||||
const value4 = 0;
|
||||
if (value4 < length) {
|
||||
r7 = value4;
|
||||
reducibleLoop2: while (true) {
|
||||
property = value3[r7];
|
||||
value5 = env3_3(property, 2);
|
||||
property = value5[value4];
|
||||
property2 = value5[1];
|
||||
Questions = survey.Questions;
|
||||
property3 = Questions[property];
|
||||
reducibleJoin17: while (true) {
|
||||
if (property3 == null) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
QuestionType = property3.QuestionType;
|
||||
MULTIPLE_CHOICE = env3_9.MULTIPLE_CHOICE;
|
||||
if (QuestionType === MULTIPLE_CHOICE) {
|
||||
Selector = property3.Selector;
|
||||
MULTIPLE_ANSWER = env3_8.MULTIPLE_ANSWER;
|
||||
if (Selector === MULTIPLE_ANSWER) {
|
||||
split = property2.split;
|
||||
object2[property] = Reflect.apply(split, property2, [',']);
|
||||
ChoiceOrder = property3.ChoiceOrder;
|
||||
if (ChoiceOrder == null) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
value7 = '' + property + '_DO';
|
||||
ChoiceOrder = property3.ChoiceOrder;
|
||||
object2[value7] = ChoiceOrder;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
}
|
||||
QuestionType = property3.QuestionType;
|
||||
MULTIPLE_CHOICE = env3_9.MULTIPLE_CHOICE;
|
||||
if (QuestionType === MULTIPLE_CHOICE) {
|
||||
Selector = property3.Selector;
|
||||
SINGLE_ANSWER = env3_8.SINGLE_ANSWER;
|
||||
if (Selector === SINGLE_ANSWER) {
|
||||
includes = property2.includes;
|
||||
if (Reflect.apply(includes, property2, [':TEXT:'])) {
|
||||
split = property2.split;
|
||||
property4 = Reflect.apply(split, property2, [':TEXT:', 2])[value4];
|
||||
split = property2.split;
|
||||
property5 = Reflect.apply(split, property2, [':TEXT:', 2])[1];
|
||||
parseInt = global.parseInt;
|
||||
object2[property] = parseInt(property4);
|
||||
concat = global.HermesInternal.concat;
|
||||
object2['' + property + '_' + property4 + '_TEXT'] = property5;
|
||||
} else {
|
||||
parseInt = global.parseInt;
|
||||
object2[property] = parseInt(property2);
|
||||
}
|
||||
ChoiceOrder = property3.ChoiceOrder;
|
||||
if (ChoiceOrder == null) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
value6 = '' + property + '_DO';
|
||||
ChoiceOrder = property3.ChoiceOrder;
|
||||
object2[value6] = ChoiceOrder;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
}
|
||||
QuestionType = property3.QuestionType;
|
||||
TEXT_ENTRY = env3_9.TEXT_ENTRY;
|
||||
if (QuestionType === TEXT_ENTRY) {
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
object2['' + property + '_TEXT'] = property2;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
object2[property] = property2;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
value8 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
||||
length = value3.length;
|
||||
if (value8 < length) {
|
||||
r7 = value8;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
break reducibleLoop2;
|
||||
}
|
||||
}
|
||||
Object = global.Object;
|
||||
const env0_2 = Object.keys(a1);
|
||||
a2.forEach(_fun74376);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun74376(a0) { // fn#74376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9721:1563, offset: 0x01d8bcc6, size: 173 bytes, params: 2, frame: 15
|
||||
var Selector;
|
||||
var value5;
|
||||
const binding = env0_2;
|
||||
if (!binding.includes(a0)) {
|
||||
var Questions = env0_0.Questions;
|
||||
var property = Questions[a0];
|
||||
if (property == null) {
|
||||
return undefined;
|
||||
}
|
||||
var ChoiceOrder = property.ChoiceOrder;
|
||||
if (ChoiceOrder != null && property.QuestionType === env4_9.MULTIPLE_CHOICE) {
|
||||
Selector = property.Selector;
|
||||
value5 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
if (Selector === env4_8.MULTIPLE_ANSWER) {
|
||||
env0_1[a0] = [];
|
||||
}
|
||||
env0_1['' + a0 + '_DO'] = property.ChoiceOrder;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 9540; source: modules/qualtrics/QualtricsConstants.tsx; dependencies: [2] */
|
||||
function _fun74438(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9726:6, offset: 0x01d8d768, size: 522 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/qualtrics/QualtricsConstants.tsx');
|
||||
exports.QuestionTypeEnum = {MULTIPLE_CHOICE: 'MC', TEXT_ENTRY: 'TE', DESCRIPTIVE_BLOCK: 'DB'};
|
||||
exports.QuestionSelectorEnum = {SINGLE_ANSWER: 'SAVR', MULTIPLE_ANSWER: 'MAVR', DROPDOWN: 'DL', SINGLE_LINE: 'SL',
|
||||
MULTI_LINE: 'ML', ESSAY: 'ESTB', FORM: 'FORM', PASSWORD: 'PW', LIKERT: 'Likert', BIPOLAR: 'Bipolar',
|
||||
PROFILE: 'Profile', MAXDIFF: 'MaxDiff', DRAG_AND_DROP: 'DND', RANK: 'Rank', TEXT_BLOCK: 'TB'};
|
||||
exports.QuestionSubSelectorEnum = {TEXT: 'TX', SHORT_TEXT: 'ShortText', LONG_TEXT: 'LongText', NUMBER: 'Number',
|
||||
DATE: 'Date', EMAIL: 'Email', SINGLE_ANSWER: 'SingleAnswer', MULTIPLE_ANSWER: 'MultipleAnswer'};
|
||||
exports.SurveyFlowElementType = {BLOCK: 'Block', STANDARD: 'Standard', EMBEDDED_DATA: 'EmbeddedData',
|
||||
BRANCH: 'Branch', GROUP: 'Group', END_OF_SURVEY: 'EndSurvey', RANDOMIZER: 'Randomizer'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/* Metro module 9538; source: modules/qualtrics/QualtricsResponseStore.tsx; dependencies: [629, 2] */
|
||||
function _fun74419(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:6, offset: 0x01d8d27d, size: 109 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
value = value.create(function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return {responses: {}, displayedQuestions: {}, setResponse: _fun74421, getSurveyResponses: _fun74423,
|
||||
clearSurveyResponses: _fun74424, trackDisplayedQuestions: _fun74426, getDisplayedQuestions: _fun74429};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/qualtrics/QualtricsResponseStore.tsx');
|
||||
exports.useQualtricsResponseStore = value;
|
||||
}
|
||||
|
||||
function _fun74420(a0, a1) { // fn#74420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:114, offset: 0x01d8d2ea, size: 102 bytes, params: 3, frame: 3
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return {responses: {}, displayedQuestions: {}, setResponse: setResponse, getSurveyResponses: function(a0) {
|
||||
var property = require().responses;
|
||||
property = property[a0];
|
||||
return property ?? ({});
|
||||
}, clearSurveyResponses: function(a0) {
|
||||
a0(_fun74425);
|
||||
}, trackDisplayedQuestions: trackDisplayedQuestions, getDisplayedQuestions: getDisplayedQuestions};
|
||||
}
|
||||
|
||||
function setResponse(a0, a1, a2) { // fn#74421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:170, offset: 0x01d8d350, size: 46 bytes, params: 4, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
env0_0(_fun74422);
|
||||
}
|
||||
|
||||
function clearSurveyResponses(a0) { // fn#74424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:340, offset: 0x01d8d3e9, size: 32 bytes, params: 2, frame: 11
|
||||
a0(_fun74425);
|
||||
}
|
||||
|
||||
function trackDisplayedQuestions(a0, a1) { // fn#74426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:500, offset: 0x01d8d447, size: 39 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
env0_0(_fun74427);
|
||||
}
|
||||
|
||||
function getDisplayedQuestions(a0) { // fn#74429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:691, offset: 0x01d8d4ff, size: 58 bytes, params: 2, frame: 12
|
||||
const property = require().displayedQuestions[a0];
|
||||
return property != null ? global.Array.from(property) : [];
|
||||
}
|
||||
|
||||
function _fun74422(a0) { // fn#74422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:183, offset: 0x01d8d37e, size: 71 bytes, params: 2, frame: 15
|
||||
const object = {};
|
||||
let responses = a0.responses;
|
||||
copyDataProperties(object, responses, a0);
|
||||
const binding = env0_0;
|
||||
const object4 = {};
|
||||
responses = a0.responses;
|
||||
copyDataProperties(object4, responses[binding], responses);
|
||||
object4[require] = importDefault;
|
||||
object[binding] = object4;
|
||||
return {responses: object};
|
||||
}
|
||||
|
||||
function _fun74425(a0) { // fn#74425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:347, offset: 0x01d8d409, size: 62 bytes, params: 2, frame: 13
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, a0.responses, a0);
|
||||
const binding = env0_0;
|
||||
delete object3[binding];
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, a0.displayedQuestions, a0);
|
||||
delete object4[binding];
|
||||
return {responses: object3, displayedQuestions: object4};
|
||||
}
|
||||
|
||||
function _fun74427(a0) { // fn#74427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9724:511, offset: 0x01d8d46e, size: 145 bytes, params: 2, frame: 15
|
||||
var r5;
|
||||
var set;
|
||||
const property = a0.displayedQuestions[env0_0];
|
||||
if (property != null) {
|
||||
r5 = property;
|
||||
} else {
|
||||
set = new global.Set();
|
||||
}
|
||||
const Set = global.Set;
|
||||
set = new Set();
|
||||
var env0_0 = set;
|
||||
require.forEach(_fun74428);
|
||||
const object = {};
|
||||
copyDataProperties(object, a0.displayedQuestions, require);
|
||||
object[env0_0] = set;
|
||||
return {displayedQuestions: object};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 9539; source: modules/qualtrics/QualtricsStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun74430(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9725:6, offset: 0x01d8d539, size: 304 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
object2 = {};
|
||||
const Map = global.Map;
|
||||
let map = new Map();
|
||||
object2.surveys = map;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun74434(Store).displayName = 'QualtricsStore';
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{QUALTRICS_SURVEY_FETCH_SUCCESS: QUALTRICS_SURVEY_FETCH_SUCCESS});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/qualtrics/QualtricsStore.tsx');
|
||||
exports.default = map;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_74431() { // fn#74431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9725:148, offset: 0x01d8d669, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_74431_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun74434(a0) { // fn#74434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9725:371, offset: 0x01d8d6cb, size: 74 bytes, params: 2, frame: 15
|
||||
const closure = QualtricsStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getSurvey', value: value_74436}]);
|
||||
}
|
||||
|
||||
function QUALTRICS_SURVEY_FETCH_SUCCESS({surveyId, surveyDetails}) { // fn#74437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9725:832, offset: 0x01d8d73d, size: 43 bytes, params: 2, frame: 13
|
||||
env0_5.surveys.set(surveyId, surveyDetails);
|
||||
}
|
||||
|
||||
function value_74436(a0) { // fn#74436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9725:670, offset: 0x01d8d715, size: 40 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = env1_5.surveys.get(a0);
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user