54 lines
2.3 KiB
TypeScript
54 lines
2.3 KiB
TypeScript
// Module ID: 11405
|
|
// Function ID: 11406
|
|
// Name: FAMILY_CENTER_REQUEST_MODAL_KEY
|
|
// Dependencies: [4687, 7216, 676, 698, 7217, 4676, 11406, 2009, 2]
|
|
// Exports: handleFamilyCenterQRCodeScan, resumeFamilyCenterConnection
|
|
|
|
// Module 11405 (FAMILY_CENTER_REQUEST_MODAL_KEY)
|
|
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 2009 */;
|
|
import _modDef4676 from "module_4676" /* 4676 */;
|
|
import maybeFetchCollectiblesForInvoicesDefault from "maybeFetchCollectiblesForInvoices" /* 7217 */;
|
|
import closure_3 from "initialize" /* 4687 */;
|
|
import items from "items" /* 7216 */;
|
|
import { AnalyticEvents } from "ME" /* 676 */;
|
|
|
|
require = arg1;
|
|
({ FAMILY_CENTER_LINK_REQUEST_REGEX: c4, FamilyCenterAction: c5 } = items);
|
|
let c7 = "family-center-request-modal";
|
|
const result = require("set").fileFinishedImporting("modules/parent_tools/native/FamilyCenterNativeUtils.tsx");
|
|
|
|
export const FAMILY_CENTER_REQUEST_MODAL_KEY = "family-center-request-modal";
|
|
export const handleFamilyCenterQRCodeScan = function handleFamilyCenterQRCodeScan(pathname, FamilyCenterQRCodeScan) {
|
|
const match = pathname.match(closure_4);
|
|
if (null === match) {
|
|
return null;
|
|
} else {
|
|
let obj = expandEventPropertiesDefault;
|
|
obj = { action: null, selected_teen_id: null, source: null };
|
|
obj[0] = ScanQRCode.ScanQRCode;
|
|
obj[1] = match[1];
|
|
obj[2] = FamilyCenterQRCodeScan;
|
|
obj.track(AnalyticEvents.FAMILY_CENTER_ACTION, obj);
|
|
maybeFetchCollectiblesForInvoicesDefault.setPendingConnection(match[1], match[2]);
|
|
const obj3 = maybeFetchCollectiblesForInvoicesDefault;
|
|
obj = { userId: null, linkCode: null };
|
|
obj[0] = match[1];
|
|
obj[1] = match[2];
|
|
_modDef4676.pushLazy(asyncRequireImpl(11406, dependencyMap.paths), obj, c7);
|
|
}
|
|
};
|
|
export const resumeFamilyCenterConnection = function resumeFamilyCenterConnection() {
|
|
pendingConnection = pendingConnection.getPendingConnection();
|
|
let flag = null != pendingConnection;
|
|
if (flag) {
|
|
let obj = _modDef4676;
|
|
obj.popWithKey(c7);
|
|
obj = { userId: null, linkCode: null };
|
|
({ teenId: obj3[0], linkCode: obj3[1] } = pendingConnection);
|
|
_modDef4676.pushLazy(asyncRequireImpl(11406, dependencyMap.paths), obj, c7);
|
|
flag = true;
|
|
const obj2 = _modDef4676;
|
|
}
|
|
return flag;
|
|
};
|