@apps-in-toss/web-framework 0.0.34 → 0.0.36
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/prebuilt/dev.android.js +185 -96
- package/dist/prebuilt/dev.ios.js +185 -96
- package/dist/prebuilt/prod.android.js +135 -44
- package/dist/prebuilt/prod.ios.js +135 -44
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +8 -8
- package/dist/cli/chunk-34QS4NNF.js +0 -173587
- package/dist/cli/chunk-HDRFXOPA.js +0 -63
- package/dist/cli/chunk-RUDG2MMT.js +0 -173587
- package/dist/cli/lib-NMFBQRQ2.js +0 -1007
- package/dist/cli/typescript-THSIDFIK.js +0 -6
- package/dist/cli/typescript-YVXHBAAI.js +0 -6
package/dist/prebuilt/dev.ios.js
CHANGED
|
@@ -87621,7 +87621,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
87621
87621
|
var _default = exports.default = TurboModuleRegistry.get('LinkingManager');
|
|
87622
87622
|
},415,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Linking/NativeLinkingManager.js");
|
|
87623
87623
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
87624
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
87624
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
87625
87625
|
"__packager_asset": true,
|
|
87626
87626
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
87627
87627
|
"width": 28,
|
|
@@ -89309,7 +89309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89309
89309
|
var _default = exports.default = NativeStatusBarManager;
|
|
89310
89310
|
},432,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js");
|
|
89311
89311
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89312
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89312
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89313
89313
|
"__packager_asset": true,
|
|
89314
89314
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89315
89315
|
"width": 16,
|
|
@@ -89321,7 +89321,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89321
89321
|
});
|
|
89322
89322
|
},433,[417],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png");
|
|
89323
89323
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89324
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89324
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89325
89325
|
"__packager_asset": true,
|
|
89326
89326
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89327
89327
|
"width": 16,
|
|
@@ -89955,7 +89955,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89955
89955
|
var _default = exports.default = LogBoxInspectorSourceMapStatus;
|
|
89956
89956
|
},438,[318,277,246,382,410,411,8,49,439,440],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js");
|
|
89957
89957
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89958
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89958
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89959
89959
|
"__packager_asset": true,
|
|
89960
89960
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89961
89961
|
"width": 48,
|
|
@@ -89967,7 +89967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89967
89967
|
});
|
|
89968
89968
|
},439,[417],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png");
|
|
89969
89969
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89970
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89970
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
89971
89971
|
"__packager_asset": true,
|
|
89972
89972
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89973
89973
|
"width": 44,
|
|
@@ -108298,7 +108298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
108298
108298
|
}
|
|
108299
108299
|
},648,[509,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
|
|
108300
108300
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
108301
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
108301
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
108302
108302
|
"__packager_asset": true,
|
|
108303
108303
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
|
|
108304
108304
|
"width": 12,
|
|
@@ -108310,7 +108310,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
108310
108310
|
});
|
|
108311
108311
|
},649,[417],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
|
|
108312
108312
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
108313
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
108313
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
108314
108314
|
"__packager_asset": true,
|
|
108315
108315
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
|
|
108316
108316
|
"width": 50,
|
|
@@ -154541,6 +154541,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154541
154541
|
appsInTossEvent: function appsInTossEvent() {
|
|
154542
154542
|
return _appsInTossEvent;
|
|
154543
154543
|
},
|
|
154544
|
+
contactsViral: function contactsViral() {
|
|
154545
|
+
return _contactsViral;
|
|
154546
|
+
},
|
|
154544
154547
|
env: function env() {
|
|
154545
154548
|
return _env;
|
|
154546
154549
|
},
|
|
@@ -154609,15 +154612,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154609
154612
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
|
|
154610
154613
|
var import_analytics = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
|
|
154611
154614
|
var import_react_native6 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
154612
|
-
var
|
|
154613
|
-
var
|
|
154614
|
-
var
|
|
154615
|
+
var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154616
|
+
var import_react3 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
154617
|
+
var import_react_native_bedrock4 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154615
154618
|
var _env = {
|
|
154616
154619
|
getDeploymentId: function getDeploymentId() {
|
|
154617
154620
|
var _global$__appsInToss;
|
|
154618
154621
|
return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) === null || _global$__appsInToss === void 0 ? void 0 : _global$__appsInToss.deploymentId;
|
|
154619
154622
|
}
|
|
154620
154623
|
};
|
|
154624
|
+
var import_react2 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
154625
|
+
var import_react_native_bedrock3 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154626
|
+
var import_react = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
154627
|
+
var import_react_native_bedrock = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154628
|
+
function useReferrer() {
|
|
154629
|
+
return (0, import_react.useMemo)(function () {
|
|
154630
|
+
try {
|
|
154631
|
+
return new URL((0, import_react_native_bedrock.getSchemeUri)()).searchParams.get("referrer");
|
|
154632
|
+
} catch (_unused) {
|
|
154633
|
+
return null;
|
|
154634
|
+
}
|
|
154635
|
+
}, []);
|
|
154636
|
+
}
|
|
154621
154637
|
var import_react_native3 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
154622
154638
|
var import_react_native = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
154623
154639
|
var AppsInTossModuleInstance = import_react_native.NativeModules.AppsInTossModule;
|
|
@@ -154739,18 +154755,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154739
154755
|
}
|
|
154740
154756
|
});
|
|
154741
154757
|
}
|
|
154742
|
-
var
|
|
154743
|
-
var import_react_native_bedrock = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154744
|
-
function useReferrer() {
|
|
154745
|
-
return (0, import_react.useMemo)(function () {
|
|
154746
|
-
try {
|
|
154747
|
-
return new URL((0, import_react_native_bedrock.getSchemeUri)()).searchParams.get("referrer");
|
|
154748
|
-
} catch (_unused) {
|
|
154749
|
-
return null;
|
|
154750
|
-
}
|
|
154751
|
-
}, []);
|
|
154752
|
-
}
|
|
154753
|
-
var ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
154758
|
+
var import_react_native_bedrock2 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154754
154759
|
function isPrivateScheme() {
|
|
154755
154760
|
try {
|
|
154756
154761
|
return new URL((0, import_react_native_bedrock2.getSchemeUri)()).protocol === "intoss-private:";
|
|
@@ -154758,10 +154763,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154758
154763
|
return false;
|
|
154759
154764
|
}
|
|
154760
154765
|
}
|
|
154766
|
+
var EXIT_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__stay_time";
|
|
154767
|
+
var EXIT_IMPRESSION_SCHEMA_ID = 1631628;
|
|
154768
|
+
function useCaptureExitLog() {
|
|
154769
|
+
var referrer = useReferrer();
|
|
154770
|
+
var visible = (0, import_react_native_bedrock3.useVisibility)();
|
|
154771
|
+
var enterTime = (0, import_react2.useRef)(void 0);
|
|
154772
|
+
(0, import_react2.useEffect)(function () {
|
|
154773
|
+
if (visible === true) {
|
|
154774
|
+
enterTime.current = Date.now();
|
|
154775
|
+
}
|
|
154776
|
+
}, [visible]);
|
|
154777
|
+
var captureExitLog = (0, import_react2.useCallback)(function (exitTime) {
|
|
154778
|
+
if (enterTime.current == null) {
|
|
154779
|
+
return;
|
|
154780
|
+
}
|
|
154781
|
+
var stayTime = Math.floor(exitTime - enterTime.current);
|
|
154782
|
+
tossCoreEventLog({
|
|
154783
|
+
log_name: EXIT_IMPRESSION_LOG_NAME,
|
|
154784
|
+
log_type: "event",
|
|
154785
|
+
params: {
|
|
154786
|
+
schema_id: EXIT_IMPRESSION_SCHEMA_ID,
|
|
154787
|
+
event_type: "impression",
|
|
154788
|
+
referrer: referrer,
|
|
154789
|
+
deployment_id: _env.getDeploymentId(),
|
|
154790
|
+
app_name: import_react_native_bedrock3.Bedrock.appName,
|
|
154791
|
+
is_private: isPrivateScheme(),
|
|
154792
|
+
stay_time: stayTime.toString(),
|
|
154793
|
+
exit_time: exitTime.toString()
|
|
154794
|
+
}
|
|
154795
|
+
});
|
|
154796
|
+
enterTime.current = void 0;
|
|
154797
|
+
}, [referrer]);
|
|
154798
|
+
return {
|
|
154799
|
+
captureExitLog: captureExitLog
|
|
154800
|
+
};
|
|
154801
|
+
}
|
|
154802
|
+
var ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
154761
154803
|
function EntryAppEvent() {
|
|
154762
154804
|
var _useReferrer;
|
|
154763
154805
|
var referrer = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
|
|
154764
|
-
(0,
|
|
154806
|
+
(0, import_react3.useEffect)(function () {
|
|
154765
154807
|
tossCoreEventLog({
|
|
154766
154808
|
log_name: "appsintoss_app_visit::impression__enter_appsintoss",
|
|
154767
154809
|
log_type: "info",
|
|
@@ -154770,7 +154812,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154770
154812
|
schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
|
|
154771
154813
|
referrer: referrer,
|
|
154772
154814
|
deployment_id: _env.getDeploymentId(),
|
|
154773
|
-
app_name:
|
|
154815
|
+
app_name: import_react_native_bedrock4.Bedrock.appName,
|
|
154774
154816
|
is_private: isPrivateScheme()
|
|
154775
154817
|
}
|
|
154776
154818
|
});
|
|
@@ -154779,28 +154821,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154779
154821
|
}
|
|
154780
154822
|
function SystemAppEvent(_ref) {
|
|
154781
154823
|
var initialProps = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
154782
|
-
(0,
|
|
154824
|
+
(0, import_react3.useEffect)(function () {
|
|
154783
154825
|
tossCoreEventLog({
|
|
154784
154826
|
log_name: "AppsInTossInitialProps",
|
|
154785
154827
|
log_type: "debug",
|
|
154786
154828
|
params: _objectSpread(_objectSpread({}, initialProps), {}, {
|
|
154787
|
-
schemeUri: (0,
|
|
154829
|
+
schemeUri: (0, import_react_native_bedrock4.getSchemeUri)(),
|
|
154788
154830
|
deployment_id: _env.getDeploymentId(),
|
|
154789
|
-
app_name:
|
|
154831
|
+
app_name: import_react_native_bedrock4.Bedrock.appName,
|
|
154790
154832
|
is_private: isPrivateScheme()
|
|
154791
154833
|
})
|
|
154792
154834
|
});
|
|
154793
154835
|
}, [initialProps]);
|
|
154794
154836
|
return null;
|
|
154795
154837
|
}
|
|
154838
|
+
function StayTimeAppEvent() {
|
|
154839
|
+
var visible = (0, import_react_native_bedrock4.useVisibility)();
|
|
154840
|
+
var _useCaptureExitLog = useCaptureExitLog(),
|
|
154841
|
+
captureExitLog = _useCaptureExitLog.captureExitLog;
|
|
154842
|
+
(0, import_react3.useEffect)(function () {
|
|
154843
|
+
if (visible === false) {
|
|
154844
|
+
captureExitLog(Date.now());
|
|
154845
|
+
}
|
|
154846
|
+
}, [visible, captureExitLog]);
|
|
154847
|
+
return null;
|
|
154848
|
+
}
|
|
154796
154849
|
var AppEvent = {
|
|
154797
154850
|
Entry: EntryAppEvent,
|
|
154798
|
-
System: SystemAppEvent
|
|
154851
|
+
System: SystemAppEvent,
|
|
154852
|
+
StayTime: StayTimeAppEvent
|
|
154799
154853
|
};
|
|
154800
154854
|
var import_react_native5 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
154801
|
-
var
|
|
154802
|
-
var
|
|
154803
|
-
var
|
|
154855
|
+
var import_react4 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
154856
|
+
var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154857
|
+
var import_react_native_bedrock5 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154804
154858
|
var EntryMessageExitedEvent = function (_import_react_native_) {
|
|
154805
154859
|
function EntryMessageExitedEvent() {
|
|
154806
154860
|
var _this;
|
|
@@ -154820,8 +154874,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154820
154874
|
key: "listener",
|
|
154821
154875
|
value: function listener(_) {}
|
|
154822
154876
|
}]);
|
|
154823
|
-
}(
|
|
154824
|
-
var
|
|
154877
|
+
}(import_react_native_bedrock5.BedrockEventDefinition);
|
|
154878
|
+
var import_react_native_bedrock6 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154825
154879
|
function getPermission(permission) {
|
|
154826
154880
|
return AppsInTossModule.getPermission(permission);
|
|
154827
154881
|
}
|
|
@@ -154905,8 +154959,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154905
154959
|
}).catch(onError);
|
|
154906
154960
|
}
|
|
154907
154961
|
}]);
|
|
154908
|
-
}(
|
|
154909
|
-
var
|
|
154962
|
+
}(import_react_native_bedrock6.BedrockEventDefinition);
|
|
154963
|
+
var import_react_native_bedrock7 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154910
154964
|
function generateUUID(placeholder) {
|
|
154911
154965
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
154912
154966
|
}
|
|
@@ -155005,8 +155059,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155005
155059
|
}
|
|
155006
155060
|
}
|
|
155007
155061
|
}]);
|
|
155008
|
-
}(
|
|
155009
|
-
var
|
|
155062
|
+
}(import_react_native_bedrock7.BedrockEventDefinition);
|
|
155063
|
+
var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155010
155064
|
var VisibilityChangedByTransparentServiceWebEvent = function (_import_react_native_4) {
|
|
155011
155065
|
function VisibilityChangedByTransparentServiceWebEvent() {
|
|
155012
155066
|
var _this5;
|
|
@@ -155048,8 +155102,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155048
155102
|
return _typeof(params) === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
155049
155103
|
}
|
|
155050
155104
|
}]);
|
|
155051
|
-
}(
|
|
155052
|
-
var _appsInTossEvent = new
|
|
155105
|
+
}(import_react_native_bedrock8.BedrockEventDefinition);
|
|
155106
|
+
var _appsInTossEvent = new import_react_native_bedrock9.BedrockEvent([new UpdateLocationEvent(), new EntryMessageExitedEvent(), new AppBridgeCallbackEvent(), new VisibilityChangedByTransparentServiceWebEvent()]);
|
|
155053
155107
|
function getAppsInTossGlobals() {
|
|
155054
155108
|
if (global.__appsInToss == null) {
|
|
155055
155109
|
throw new Error("invalid apps-in-toss globals");
|
|
@@ -155068,7 +155122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155068
155122
|
function useAppsInTossBridge() {
|
|
155069
155123
|
var controller = (0, import_react_native5.useBridge)();
|
|
155070
155124
|
var appsInTossGlobals2 = getAppsInTossGlobals();
|
|
155071
|
-
(0,
|
|
155125
|
+
(0, import_react4.useEffect)(function () {
|
|
155072
155126
|
var commonProps = {
|
|
155073
155127
|
serviceName: appsInTossGlobals2.brandDisplayName,
|
|
155074
155128
|
icon: toIcon(appsInTossGlobals2.brandIcon),
|
|
@@ -155558,7 +155612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155558
155612
|
}));
|
|
155559
155613
|
return _getGameCenterGameProfile2.apply(this, arguments);
|
|
155560
155614
|
}
|
|
155561
|
-
var
|
|
155615
|
+
var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155562
155616
|
function _openGameCenterLeaderboard() {
|
|
155563
155617
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
155564
155618
|
}
|
|
@@ -155577,7 +155631,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155577
155631
|
url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
155578
155632
|
url.searchParams.set("appName", getAppName());
|
|
155579
155633
|
url.searchParams.set("referrer", "appsintoss.".concat(getAppName()));
|
|
155580
|
-
return _context25.abrupt("return", (0,
|
|
155634
|
+
return _context25.abrupt("return", (0, import_react_native_bedrock10.openURL)(url.toString()));
|
|
155581
155635
|
case 6:
|
|
155582
155636
|
case "end":
|
|
155583
155637
|
return _context25.stop();
|
|
@@ -155616,7 +155670,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155616
155670
|
var children = _ref7.children,
|
|
155617
155671
|
initialProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
155618
155672
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
155619
|
-
children: [(0, import_jsx_runtime.jsx)(AppEvent.Entry, {}), (0, import_jsx_runtime.jsx)(AppEvent.System, _objectSpread({}, initialProps)), (0, import_jsx_runtime.jsx)(Container, _objectSpread(_objectSpread({}, initialProps), {}, {
|
|
155673
|
+
children: [(0, import_jsx_runtime.jsx)(AppEvent.StayTime, {}), (0, import_jsx_runtime.jsx)(AppEvent.Entry, {}), (0, import_jsx_runtime.jsx)(AppEvent.System, _objectSpread({}, initialProps)), (0, import_jsx_runtime.jsx)(Container, _objectSpread(_objectSpread({}, initialProps), {}, {
|
|
155620
155674
|
children: (0, import_jsx_runtime.jsx)(import_react_native6.TDSProvider, {
|
|
155621
155675
|
colorPreference: "light",
|
|
155622
155676
|
token: {
|
|
@@ -155648,7 +155702,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155648
155702
|
},
|
|
155649
155703
|
debug: (_analytics$debug = analytics === null || analytics === void 0 ? void 0 : analytics.debug) !== null && _analytics$debug !== void 0 ? _analytics$debug : __DEV__
|
|
155650
155704
|
});
|
|
155651
|
-
return
|
|
155705
|
+
return import_react_native_bedrock11.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
|
|
155652
155706
|
appName: getAppName(),
|
|
155653
155707
|
context: context,
|
|
155654
155708
|
router: {
|
|
@@ -155913,6 +155967,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155913
155967
|
removeItem: removeItem,
|
|
155914
155968
|
clearItems: clearItems
|
|
155915
155969
|
};
|
|
155970
|
+
function _contactsViral(params) {
|
|
155971
|
+
var isSupported = _isMinVersionSupported({
|
|
155972
|
+
android: "5.223.0",
|
|
155973
|
+
ios: "5.223.0"
|
|
155974
|
+
});
|
|
155975
|
+
if (!isSupported) {
|
|
155976
|
+
return function () {};
|
|
155977
|
+
}
|
|
155978
|
+
var onEvent = params.onEvent,
|
|
155979
|
+
onError = params.onError,
|
|
155980
|
+
options = params.options;
|
|
155981
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("contactsViral", options, {
|
|
155982
|
+
onRewardFromContactsViral: function onRewardFromContactsViral(result) {
|
|
155983
|
+
onEvent({
|
|
155984
|
+
type: "sendViral",
|
|
155985
|
+
data: result
|
|
155986
|
+
});
|
|
155987
|
+
},
|
|
155988
|
+
onSuccess: function onSuccess(result) {
|
|
155989
|
+
onEvent({
|
|
155990
|
+
type: "close",
|
|
155991
|
+
data: result
|
|
155992
|
+
});
|
|
155993
|
+
},
|
|
155994
|
+
onError: onError
|
|
155995
|
+
});
|
|
155996
|
+
return unregisterCallbacks;
|
|
155997
|
+
}
|
|
155916
155998
|
var _TossPay = {
|
|
155917
155999
|
checkoutPayment: _checkoutPayment
|
|
155918
156000
|
};
|
|
@@ -155924,24 +156006,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155924
156006
|
};
|
|
155925
156007
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155926
156008
|
var import_private3 = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
|
|
155927
|
-
var
|
|
156009
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
155928
156010
|
var import_react_native21 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
155929
|
-
var
|
|
156011
|
+
var import_react_native_bedrock18 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155930
156012
|
var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
|
|
155931
156013
|
var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
|
|
155932
156014
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
|
|
155933
156015
|
var import_react_native17 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155934
156016
|
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
|
|
155935
|
-
var
|
|
156017
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
155936
156018
|
var import_react_native18 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
155937
|
-
var
|
|
156019
|
+
var import_react_native_bedrock14 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155938
156020
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155939
|
-
var
|
|
156021
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
155940
156022
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
155941
156023
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155942
156024
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
|
|
155943
|
-
var
|
|
155944
|
-
var
|
|
156025
|
+
var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156026
|
+
var import_react_native_bedrock13 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155945
156027
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155946
156028
|
var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
|
|
155947
156029
|
var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
|
|
@@ -155995,7 +156077,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155995
156077
|
var getMarketLink = function getMarketLink() {
|
|
155996
156078
|
return import_react_native8.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
155997
156079
|
};
|
|
155998
|
-
var
|
|
156080
|
+
var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155999
156081
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
156000
156082
|
return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
156001
156083
|
}
|
|
@@ -156033,35 +156115,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156033
156115
|
}
|
|
156034
156116
|
}
|
|
156035
156117
|
});
|
|
156036
|
-
(0,
|
|
156118
|
+
(0, import_react_native_bedrock12.openURL)(url.toString());
|
|
156037
156119
|
};
|
|
156038
156120
|
var useGameCenterProfile = function useGameCenterProfile(isReadyForProfileUI) {
|
|
156039
|
-
var _ref14 = (0,
|
|
156121
|
+
var _ref14 = (0, import_react5.useState)(void 0),
|
|
156040
156122
|
_ref15 = _slicedToArray(_ref14, 2),
|
|
156041
156123
|
profileData = _ref15[0],
|
|
156042
156124
|
setProfileData = _ref15[1];
|
|
156043
|
-
var _ref16 = (0,
|
|
156125
|
+
var _ref16 = (0, import_react5.useState)(true),
|
|
156044
156126
|
_ref17 = _slicedToArray(_ref16, 2),
|
|
156045
156127
|
isProfileDataLoading = _ref17[0],
|
|
156046
156128
|
setIsProfileDataLoading = _ref17[1];
|
|
156047
|
-
var _ref18 = (0,
|
|
156129
|
+
var _ref18 = (0, import_react5.useState)(false),
|
|
156048
156130
|
_ref19 = _slicedToArray(_ref18, 2),
|
|
156049
156131
|
isProfileDataRefetching = _ref19[0],
|
|
156050
156132
|
setIsProfileDataRefetching = _ref19[1];
|
|
156051
156133
|
var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
|
|
156052
156134
|
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
156053
156135
|
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
156054
|
-
var _ref20 = (0,
|
|
156136
|
+
var _ref20 = (0, import_react5.useState)(false),
|
|
156055
156137
|
_ref21 = _slicedToArray(_ref20, 2),
|
|
156056
156138
|
isWebviewLoading = _ref21[0],
|
|
156057
156139
|
setIsWebviewLoading = _ref21[1];
|
|
156058
|
-
var isCompletedProfileFlow = (0,
|
|
156140
|
+
var isCompletedProfileFlow = (0, import_react5.useRef)(false);
|
|
156059
156141
|
var _ref22 = (0, import_react_native9.useDialog)(),
|
|
156060
156142
|
openAlert = _ref22.openAlert,
|
|
156061
156143
|
openConfirm = _ref22.openConfirm;
|
|
156062
156144
|
var _useGameProfileToast = useGameProfileToast(),
|
|
156063
156145
|
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
156064
|
-
var openErrorAlert = (0,
|
|
156146
|
+
var openErrorAlert = (0, import_react5.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee() {
|
|
156065
156147
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
156066
156148
|
while (1) switch (_context.prev = _context.next) {
|
|
156067
156149
|
case 0:
|
|
@@ -156071,14 +156153,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156071
156153
|
description: DEFAULT_ERROR.description
|
|
156072
156154
|
});
|
|
156073
156155
|
case 2:
|
|
156074
|
-
(0,
|
|
156156
|
+
(0, import_react_native_bedrock13.closeView)();
|
|
156075
156157
|
case 3:
|
|
156076
156158
|
case "end":
|
|
156077
156159
|
return _context.stop();
|
|
156078
156160
|
}
|
|
156079
156161
|
}, _callee);
|
|
156080
156162
|
})), [openAlert]);
|
|
156081
|
-
var openProfileWebview = (0,
|
|
156163
|
+
var openProfileWebview = (0, import_react5.useCallback)(function () {
|
|
156082
156164
|
if (isWebviewLoading) {
|
|
156083
156165
|
return;
|
|
156084
156166
|
}
|
|
@@ -156130,7 +156212,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156130
156212
|
}
|
|
156131
156213
|
});
|
|
156132
156214
|
}, [isWebviewLoading, openGameProfileToast, openErrorAlert]);
|
|
156133
|
-
var updateAppToSupportedMinVersion = (0,
|
|
156215
|
+
var updateAppToSupportedMinVersion = (0, import_react5.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee3() {
|
|
156134
156216
|
var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
|
|
156135
156217
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
156136
156218
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -156153,11 +156235,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156153
156235
|
_context3.next = 7;
|
|
156154
156236
|
break;
|
|
156155
156237
|
}
|
|
156156
|
-
(0,
|
|
156238
|
+
(0, import_react_native_bedrock13.closeView)();
|
|
156157
156239
|
return _context3.abrupt("return");
|
|
156158
156240
|
case 7:
|
|
156159
156241
|
STORE_SCHEME = getMarketLink();
|
|
156160
|
-
(0,
|
|
156242
|
+
(0, import_react_native_bedrock13.openURL)("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
156161
156243
|
case 9:
|
|
156162
156244
|
case "end":
|
|
156163
156245
|
return _context3.stop();
|
|
@@ -156201,7 +156283,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156201
156283
|
setProfileData = _useGameCenterProfile.setProfileData,
|
|
156202
156284
|
openErrorAlert = _useGameCenterProfile.openErrorAlert,
|
|
156203
156285
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
|
|
156204
|
-
(0,
|
|
156286
|
+
(0, import_react6.useEffect)(function () {
|
|
156205
156287
|
try {
|
|
156206
156288
|
var getProfileData = function () {
|
|
156207
156289
|
var _ref26 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -156231,7 +156313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156231
156313
|
setIsProfileDataLoading(false);
|
|
156232
156314
|
}
|
|
156233
156315
|
}, []);
|
|
156234
|
-
(0,
|
|
156316
|
+
(0, import_react6.useEffect)(function () {
|
|
156235
156317
|
var handleGameProfileFlow = function () {
|
|
156236
156318
|
var _ref27 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5() {
|
|
156237
156319
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -156450,16 +156532,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156450
156532
|
});
|
|
156451
156533
|
}
|
|
156452
156534
|
var import_jsx_runtime6 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
|
|
156453
|
-
var GameWebView = (0,
|
|
156535
|
+
var GameWebView = (0, import_react7.forwardRef)(function GameWebView2(props, ref) {
|
|
156454
156536
|
var _ref30 = (0, import_react_native17.useDialog)(),
|
|
156455
156537
|
openConfirm = _ref30.openConfirm;
|
|
156456
156538
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
156457
156539
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
156458
|
-
var
|
|
156540
|
+
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
156541
|
+
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
156542
|
+
var _ref31 = (0, import_react7.useState)(false),
|
|
156459
156543
|
_ref32 = _slicedToArray(_ref31, 2),
|
|
156460
156544
|
isEntryMessageExited = _ref32[0],
|
|
156461
156545
|
setIsEntryMessageExited = _ref32[1];
|
|
156462
|
-
var handleClose = (0,
|
|
156546
|
+
var handleClose = (0, import_react7.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
|
|
156463
156547
|
var isConfirmed;
|
|
156464
156548
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
156465
156549
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -156474,28 +156558,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156474
156558
|
case 2:
|
|
156475
156559
|
isConfirmed = _context6.sent;
|
|
156476
156560
|
if (isConfirmed) {
|
|
156477
|
-
(
|
|
156561
|
+
captureExitLog(Date.now());
|
|
156562
|
+
(0, import_react_native_bedrock14.closeView)();
|
|
156478
156563
|
}
|
|
156479
156564
|
case 4:
|
|
156480
156565
|
case "end":
|
|
156481
156566
|
return _context6.stop();
|
|
156482
156567
|
}
|
|
156483
156568
|
}, _callee6);
|
|
156484
|
-
})), [brandDisplayName, openConfirm]);
|
|
156485
|
-
(0,
|
|
156569
|
+
})), [brandDisplayName, captureExitLog, openConfirm]);
|
|
156570
|
+
(0, import_react7.useEffect)(function () {
|
|
156486
156571
|
if (import_react_native18.Platform.OS === "ios") {
|
|
156487
|
-
(0,
|
|
156572
|
+
(0, import_react_native_bedrock14.setIosSwipeGestureEnabled)({
|
|
156488
156573
|
isEnabled: false
|
|
156489
156574
|
});
|
|
156490
156575
|
return function () {
|
|
156491
|
-
(0,
|
|
156576
|
+
(0, import_react_native_bedrock14.setIosSwipeGestureEnabled)({
|
|
156492
156577
|
isEnabled: true
|
|
156493
156578
|
});
|
|
156494
156579
|
};
|
|
156495
156580
|
}
|
|
156496
156581
|
return;
|
|
156497
156582
|
}, []);
|
|
156498
|
-
(0,
|
|
156583
|
+
(0, import_react7.useEffect)(function () {
|
|
156499
156584
|
var backHandler = function backHandler() {
|
|
156500
156585
|
handleClose();
|
|
156501
156586
|
return true;
|
|
@@ -156505,7 +156590,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156505
156590
|
import_react_native18.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
156506
156591
|
};
|
|
156507
156592
|
}, [handleClose]);
|
|
156508
|
-
(0,
|
|
156593
|
+
(0, import_react7.useEffect)(function () {
|
|
156509
156594
|
_appsInTossEvent.addEventListener("entryMessageExited", {
|
|
156510
156595
|
onEvent: function onEvent() {
|
|
156511
156596
|
setIsEntryMessageExited(true);
|
|
@@ -156525,7 +156610,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156525
156610
|
}, props))]
|
|
156526
156611
|
});
|
|
156527
156612
|
});
|
|
156528
|
-
var
|
|
156613
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156529
156614
|
function serializeError(error) {
|
|
156530
156615
|
return JSON.stringify(error, function (_, value) {
|
|
156531
156616
|
if (value instanceof Error) {
|
|
@@ -156586,8 +156671,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156586
156671
|
asyncHandlerMap = _ref36.asyncHandlerMap,
|
|
156587
156672
|
eventListenerMap = _ref36.eventListenerMap,
|
|
156588
156673
|
originalInjectedJavaScript = _ref36.injectedJavaScript;
|
|
156589
|
-
var ref = (0,
|
|
156590
|
-
var injectedJavaScript = (0,
|
|
156674
|
+
var ref = (0, import_react8.useRef)(null);
|
|
156675
|
+
var injectedJavaScript = (0, import_react8.useMemo)(function () {
|
|
156591
156676
|
return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref37) {
|
|
156592
156677
|
var _ref38 = _slicedToArray(_ref37, 2),
|
|
156593
156678
|
key = _ref38[0],
|
|
@@ -156608,7 +156693,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156608
156693
|
(_ref$current2 = ref.current) === null || _ref$current2 === void 0 || _ref$current2.injectJavaScript("\n window.__BEDROCK_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(JSON.stringify(error, null, 0), ");\n "));
|
|
156609
156694
|
};
|
|
156610
156695
|
};
|
|
156611
|
-
var $onMessage = (0,
|
|
156696
|
+
var $onMessage = (0, import_react8.useCallback)(function () {
|
|
156612
156697
|
var _ref39 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(e) {
|
|
156613
156698
|
var data, _eventListenerMap$dat, handleOnEvent, handleOnError, remove, key, _remove, _ref$current3;
|
|
156614
156699
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
@@ -156682,12 +156767,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156682
156767
|
});
|
|
156683
156768
|
var event_bridges_exports = {};
|
|
156684
156769
|
__export(event_bridges_exports, {
|
|
156770
|
+
contactsViral: function contactsViral() {
|
|
156771
|
+
return _contactsViral;
|
|
156772
|
+
},
|
|
156685
156773
|
startUpdateLocation: function startUpdateLocation() {
|
|
156686
156774
|
return _startUpdateLocation;
|
|
156687
156775
|
}
|
|
156688
156776
|
});
|
|
156689
156777
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156690
|
-
var
|
|
156778
|
+
var import_react_native_bedrock15 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156691
156779
|
var FontA11yCategory = {
|
|
156692
156780
|
Large: "Large",
|
|
156693
156781
|
xLarge: "xLarge",
|
|
@@ -156850,7 +156938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156850
156938
|
pureSafeArea = _ref40.pureSafeArea,
|
|
156851
156939
|
safeArea = _ref40.safeArea,
|
|
156852
156940
|
safeAreaBottomTransparency = _ref40.safeAreaBottomTransparency;
|
|
156853
|
-
var platform = (0,
|
|
156941
|
+
var platform = (0, import_react_native_bedrock15.getPlatformOS)();
|
|
156854
156942
|
var appVersion = _getTossAppVersion();
|
|
156855
156943
|
var _ref41 = (0, import_react_native19.useWindowDimensions)(),
|
|
156856
156944
|
fontScale = _ref41.fontScale;
|
|
@@ -156859,18 +156947,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156859
156947
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
156860
156948
|
return ["TossApp/".concat(appVersion), batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference), colorPreference && "TossColorPreference/".concat(colorPreference), "TossFontAccessibility/".concat(fontA11y), "TossFontScale/".concat(normalizedFontScale), locale && "TossLocale/".concat(locale), navbarPreference && "TossNavbarPreference/".concat(navbarPreference), pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea), safeArea && "TossSafeArea/".concat(safeArea), safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/".concat(safeAreaBottomTransparency), platformString].filter(Boolean).join(" ");
|
|
156861
156949
|
}
|
|
156862
|
-
var
|
|
156863
|
-
var
|
|
156950
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156951
|
+
var import_react_native_bedrock16 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156864
156952
|
function _useGeolocation(_ref42) {
|
|
156865
156953
|
var accuracy = _ref42.accuracy,
|
|
156866
156954
|
distanceInterval = _ref42.distanceInterval,
|
|
156867
156955
|
timeInterval = _ref42.timeInterval;
|
|
156868
|
-
var isVisible = (0,
|
|
156869
|
-
var _ref43 = (0,
|
|
156956
|
+
var isVisible = (0, import_react_native_bedrock16.useVisibility)();
|
|
156957
|
+
var _ref43 = (0, import_react9.useState)(null),
|
|
156870
156958
|
_ref44 = _slicedToArray(_ref43, 2),
|
|
156871
156959
|
location = _ref44[0],
|
|
156872
156960
|
setLocation = _ref44[1];
|
|
156873
|
-
(0,
|
|
156961
|
+
(0, import_react9.useEffect)(function () {
|
|
156874
156962
|
if (!isVisible) {
|
|
156875
156963
|
return;
|
|
156876
156964
|
}
|
|
@@ -156886,7 +156974,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156886
156974
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
156887
156975
|
return location;
|
|
156888
156976
|
}
|
|
156889
|
-
var
|
|
156977
|
+
var import_react_native_bedrock17 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156890
156978
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
156891
156979
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
156892
156980
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -156908,7 +156996,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156908
156996
|
};
|
|
156909
156997
|
var getReferrer = function getReferrer() {
|
|
156910
156998
|
try {
|
|
156911
|
-
var referrer = new URL((0,
|
|
156999
|
+
var referrer = new URL((0, import_react_native_bedrock17.getSchemeUri)());
|
|
156912
157000
|
return referrer.searchParams.get("referrer");
|
|
156913
157001
|
} catch (_unused4) {
|
|
156914
157002
|
return "";
|
|
@@ -156941,7 +157029,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156941
157029
|
};
|
|
156942
157030
|
function mergeSchemeQueryParamsInto(url) {
|
|
156943
157031
|
var baseUrl = new URL(url);
|
|
156944
|
-
var schemeUrl = new URL((0,
|
|
157032
|
+
var schemeUrl = new URL((0, import_react_native_bedrock18.getSchemeUri)());
|
|
156945
157033
|
baseUrl.pathname = schemeUrl.pathname;
|
|
156946
157034
|
var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
|
|
156947
157035
|
_step5;
|
|
@@ -156981,8 +157069,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156981
157069
|
if (!TYPES.includes(type)) {
|
|
156982
157070
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
156983
157071
|
}
|
|
156984
|
-
var bedrockEvent = (0,
|
|
156985
|
-
var uri = (0,
|
|
157072
|
+
var bedrockEvent = (0, import_react_native_bedrock18.useBedrockEvent)();
|
|
157073
|
+
var uri = (0, import_react10.useMemo)(function () {
|
|
156986
157074
|
return getWebViewUri(local);
|
|
156987
157075
|
}, [local]);
|
|
156988
157076
|
var top = (0, import_private3.useSafeAreaTop)();
|
|
@@ -157108,7 +157196,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157108
157196
|
iapGetProductItemList: _IAP.getProductItemList
|
|
157109
157197
|
})
|
|
157110
157198
|
});
|
|
157111
|
-
var baseProps = (0,
|
|
157199
|
+
var baseProps = (0, import_react10.useMemo)(function () {
|
|
157112
157200
|
switch (type) {
|
|
157113
157201
|
case "partner":
|
|
157114
157202
|
{
|
|
@@ -157138,7 +157226,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157138
157226
|
}, [type, props]);
|
|
157139
157227
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
157140
157228
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
157141
|
-
var handleNavigationStateChange = (0,
|
|
157229
|
+
var handleNavigationStateChange = (0, import_react10.useCallback)(function (event) {
|
|
157142
157230
|
if (event.url) {
|
|
157143
157231
|
trackScreen(event.url);
|
|
157144
157232
|
}
|
|
@@ -157200,6 +157288,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157200
157288
|
WebView: _WebView,
|
|
157201
157289
|
appLogin: _appLogin,
|
|
157202
157290
|
appsInTossEvent: _appsInTossEvent,
|
|
157291
|
+
contactsViral: _contactsViral,
|
|
157203
157292
|
env: _env,
|
|
157204
157293
|
eventLog: _eventLog,
|
|
157205
157294
|
fetchAlbumPhotos: _fetchAlbumPhotos,
|
|
@@ -225500,7 +225589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225500
225589
|
}
|
|
225501
225590
|
},2209,[509,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
|
|
225502
225591
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225503
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225592
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
225504
225593
|
"__packager_asset": true,
|
|
225505
225594
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
|
|
225506
225595
|
"width": 12,
|
|
@@ -225512,7 +225601,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225512
225601
|
});
|
|
225513
225602
|
},2210,[417],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
|
|
225514
225603
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225515
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225604
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/wj.kang/toss-works/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
|
|
225516
225605
|
"__packager_asset": true,
|
|
225517
225606
|
"httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
|
|
225518
225607
|
"width": 50,
|