@apps-in-toss/web-framework 0.0.35 → 0.0.37
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/cli/index.js +369 -27
- package/dist/prebuilt/dev.android.js +174 -98
- package/dist/prebuilt/dev.ios.js +174 -98
- package/dist/prebuilt/prod.android.js +136 -46
- package/dist/prebuilt/prod.ios.js +136 -46
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +10 -8
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/gronxb/workspace/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/gronxb/workspace/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/gronxb/workspace/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/gronxb/workspace/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/gronxb/workspace/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/gronxb/workspace/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/gronxb/workspace/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,
|
|
@@ -154612,15 +154612,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154612
154612
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
|
|
154613
154613
|
var import_analytics = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
|
|
154614
154614
|
var import_react_native6 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
154615
|
-
var
|
|
154616
|
-
var
|
|
154617
|
-
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");
|
|
154618
154618
|
var _env = {
|
|
154619
154619
|
getDeploymentId: function getDeploymentId() {
|
|
154620
154620
|
var _global$__appsInToss;
|
|
154621
154621
|
return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) === null || _global$__appsInToss === void 0 ? void 0 : _global$__appsInToss.deploymentId;
|
|
154622
154622
|
}
|
|
154623
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
|
+
}
|
|
154624
154637
|
var import_react_native3 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
154625
154638
|
var import_react_native = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
154626
154639
|
var AppsInTossModuleInstance = import_react_native.NativeModules.AppsInTossModule;
|
|
@@ -154742,18 +154755,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154742
154755
|
}
|
|
154743
154756
|
});
|
|
154744
154757
|
}
|
|
154745
|
-
var
|
|
154746
|
-
var import_react_native_bedrock = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154747
|
-
function useReferrer() {
|
|
154748
|
-
return (0, import_react.useMemo)(function () {
|
|
154749
|
-
try {
|
|
154750
|
-
return new URL((0, import_react_native_bedrock.getSchemeUri)()).searchParams.get("referrer");
|
|
154751
|
-
} catch (_unused) {
|
|
154752
|
-
return null;
|
|
154753
|
-
}
|
|
154754
|
-
}, []);
|
|
154755
|
-
}
|
|
154756
|
-
var ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
154758
|
+
var import_react_native_bedrock2 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154757
154759
|
function isPrivateScheme() {
|
|
154758
154760
|
try {
|
|
154759
154761
|
return new URL((0, import_react_native_bedrock2.getSchemeUri)()).protocol === "intoss-private:";
|
|
@@ -154761,10 +154763,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154761
154763
|
return false;
|
|
154762
154764
|
}
|
|
154763
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;
|
|
154764
154803
|
function EntryAppEvent() {
|
|
154765
154804
|
var _useReferrer;
|
|
154766
154805
|
var referrer = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
|
|
154767
|
-
(0,
|
|
154806
|
+
(0, import_react3.useEffect)(function () {
|
|
154768
154807
|
tossCoreEventLog({
|
|
154769
154808
|
log_name: "appsintoss_app_visit::impression__enter_appsintoss",
|
|
154770
154809
|
log_type: "info",
|
|
@@ -154773,7 +154812,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154773
154812
|
schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
|
|
154774
154813
|
referrer: referrer,
|
|
154775
154814
|
deployment_id: _env.getDeploymentId(),
|
|
154776
|
-
app_name:
|
|
154815
|
+
app_name: import_react_native_bedrock4.Bedrock.appName,
|
|
154777
154816
|
is_private: isPrivateScheme()
|
|
154778
154817
|
}
|
|
154779
154818
|
});
|
|
@@ -154782,28 +154821,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154782
154821
|
}
|
|
154783
154822
|
function SystemAppEvent(_ref) {
|
|
154784
154823
|
var initialProps = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
154785
|
-
(0,
|
|
154824
|
+
(0, import_react3.useEffect)(function () {
|
|
154786
154825
|
tossCoreEventLog({
|
|
154787
154826
|
log_name: "AppsInTossInitialProps",
|
|
154788
154827
|
log_type: "debug",
|
|
154789
154828
|
params: _objectSpread(_objectSpread({}, initialProps), {}, {
|
|
154790
|
-
schemeUri: (0,
|
|
154829
|
+
schemeUri: (0, import_react_native_bedrock4.getSchemeUri)(),
|
|
154791
154830
|
deployment_id: _env.getDeploymentId(),
|
|
154792
|
-
app_name:
|
|
154831
|
+
app_name: import_react_native_bedrock4.Bedrock.appName,
|
|
154793
154832
|
is_private: isPrivateScheme()
|
|
154794
154833
|
})
|
|
154795
154834
|
});
|
|
154796
154835
|
}, [initialProps]);
|
|
154797
154836
|
return null;
|
|
154798
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
|
+
}
|
|
154799
154849
|
var AppEvent = {
|
|
154800
154850
|
Entry: EntryAppEvent,
|
|
154801
|
-
System: SystemAppEvent
|
|
154851
|
+
System: SystemAppEvent,
|
|
154852
|
+
StayTime: StayTimeAppEvent
|
|
154802
154853
|
};
|
|
154803
154854
|
var import_react_native5 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
154804
|
-
var
|
|
154805
|
-
var
|
|
154806
|
-
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");
|
|
154807
154858
|
var EntryMessageExitedEvent = function (_import_react_native_) {
|
|
154808
154859
|
function EntryMessageExitedEvent() {
|
|
154809
154860
|
var _this;
|
|
@@ -154823,8 +154874,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154823
154874
|
key: "listener",
|
|
154824
154875
|
value: function listener(_) {}
|
|
154825
154876
|
}]);
|
|
154826
|
-
}(
|
|
154827
|
-
var
|
|
154877
|
+
}(import_react_native_bedrock5.BedrockEventDefinition);
|
|
154878
|
+
var import_react_native_bedrock6 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154828
154879
|
function getPermission(permission) {
|
|
154829
154880
|
return AppsInTossModule.getPermission(permission);
|
|
154830
154881
|
}
|
|
@@ -154908,8 +154959,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154908
154959
|
}).catch(onError);
|
|
154909
154960
|
}
|
|
154910
154961
|
}]);
|
|
154911
|
-
}(
|
|
154912
|
-
var
|
|
154962
|
+
}(import_react_native_bedrock6.BedrockEventDefinition);
|
|
154963
|
+
var import_react_native_bedrock7 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154913
154964
|
function generateUUID(placeholder) {
|
|
154914
154965
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
154915
154966
|
}
|
|
@@ -155008,8 +155059,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155008
155059
|
}
|
|
155009
155060
|
}
|
|
155010
155061
|
}]);
|
|
155011
|
-
}(
|
|
155012
|
-
var
|
|
155062
|
+
}(import_react_native_bedrock7.BedrockEventDefinition);
|
|
155063
|
+
var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155013
155064
|
var VisibilityChangedByTransparentServiceWebEvent = function (_import_react_native_4) {
|
|
155014
155065
|
function VisibilityChangedByTransparentServiceWebEvent() {
|
|
155015
155066
|
var _this5;
|
|
@@ -155051,8 +155102,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155051
155102
|
return _typeof(params) === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
155052
155103
|
}
|
|
155053
155104
|
}]);
|
|
155054
|
-
}(
|
|
155055
|
-
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()]);
|
|
155056
155107
|
function getAppsInTossGlobals() {
|
|
155057
155108
|
if (global.__appsInToss == null) {
|
|
155058
155109
|
throw new Error("invalid apps-in-toss globals");
|
|
@@ -155071,7 +155122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155071
155122
|
function useAppsInTossBridge() {
|
|
155072
155123
|
var controller = (0, import_react_native5.useBridge)();
|
|
155073
155124
|
var appsInTossGlobals2 = getAppsInTossGlobals();
|
|
155074
|
-
(0,
|
|
155125
|
+
(0, import_react4.useEffect)(function () {
|
|
155075
155126
|
var commonProps = {
|
|
155076
155127
|
serviceName: appsInTossGlobals2.brandDisplayName,
|
|
155077
155128
|
icon: toIcon(appsInTossGlobals2.brandIcon),
|
|
@@ -155561,7 +155612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155561
155612
|
}));
|
|
155562
155613
|
return _getGameCenterGameProfile2.apply(this, arguments);
|
|
155563
155614
|
}
|
|
155564
|
-
var
|
|
155615
|
+
var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155565
155616
|
function _openGameCenterLeaderboard() {
|
|
155566
155617
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
155567
155618
|
}
|
|
@@ -155580,7 +155631,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155580
155631
|
url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
155581
155632
|
url.searchParams.set("appName", getAppName());
|
|
155582
155633
|
url.searchParams.set("referrer", "appsintoss.".concat(getAppName()));
|
|
155583
|
-
return _context25.abrupt("return", (0,
|
|
155634
|
+
return _context25.abrupt("return", (0, import_react_native_bedrock10.openURL)(url.toString()));
|
|
155584
155635
|
case 6:
|
|
155585
155636
|
case "end":
|
|
155586
155637
|
return _context25.stop();
|
|
@@ -155619,7 +155670,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155619
155670
|
var children = _ref7.children,
|
|
155620
155671
|
initialProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
155621
155672
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
155622
|
-
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), {}, {
|
|
155623
155674
|
children: (0, import_jsx_runtime.jsx)(import_react_native6.TDSProvider, {
|
|
155624
155675
|
colorPreference: "light",
|
|
155625
155676
|
token: {
|
|
@@ -155651,7 +155702,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155651
155702
|
},
|
|
155652
155703
|
debug: (_analytics$debug = analytics === null || analytics === void 0 ? void 0 : analytics.debug) !== null && _analytics$debug !== void 0 ? _analytics$debug : __DEV__
|
|
155653
155704
|
});
|
|
155654
|
-
return
|
|
155705
|
+
return import_react_native_bedrock11.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
|
|
155655
155706
|
appName: getAppName(),
|
|
155656
155707
|
context: context,
|
|
155657
155708
|
router: {
|
|
@@ -155955,24 +156006,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155955
156006
|
};
|
|
155956
156007
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155957
156008
|
var import_private3 = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
|
|
155958
|
-
var
|
|
156009
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
155959
156010
|
var import_react_native21 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
155960
|
-
var
|
|
156011
|
+
var import_react_native_bedrock18 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155961
156012
|
var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
|
|
155962
156013
|
var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
|
|
155963
156014
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
|
|
155964
156015
|
var import_react_native17 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155965
156016
|
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
|
|
155966
|
-
var
|
|
156017
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
155967
156018
|
var import_react_native18 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
155968
|
-
var
|
|
156019
|
+
var import_react_native_bedrock14 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155969
156020
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155970
|
-
var
|
|
156021
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
155971
156022
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
155972
156023
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155973
156024
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
|
|
155974
|
-
var
|
|
155975
|
-
var
|
|
156025
|
+
var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156026
|
+
var import_react_native_bedrock13 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155976
156027
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155977
156028
|
var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
|
|
155978
156029
|
var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
|
|
@@ -156026,7 +156077,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156026
156077
|
var getMarketLink = function getMarketLink() {
|
|
156027
156078
|
return import_react_native8.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
156028
156079
|
};
|
|
156029
|
-
var
|
|
156080
|
+
var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156030
156081
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
156031
156082
|
return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
156032
156083
|
}
|
|
@@ -156064,35 +156115,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156064
156115
|
}
|
|
156065
156116
|
}
|
|
156066
156117
|
});
|
|
156067
|
-
(0,
|
|
156118
|
+
(0, import_react_native_bedrock12.openURL)(url.toString());
|
|
156068
156119
|
};
|
|
156069
156120
|
var useGameCenterProfile = function useGameCenterProfile(isReadyForProfileUI) {
|
|
156070
|
-
var _ref14 = (0,
|
|
156121
|
+
var _ref14 = (0, import_react5.useState)(void 0),
|
|
156071
156122
|
_ref15 = _slicedToArray(_ref14, 2),
|
|
156072
156123
|
profileData = _ref15[0],
|
|
156073
156124
|
setProfileData = _ref15[1];
|
|
156074
|
-
var _ref16 = (0,
|
|
156125
|
+
var _ref16 = (0, import_react5.useState)(true),
|
|
156075
156126
|
_ref17 = _slicedToArray(_ref16, 2),
|
|
156076
156127
|
isProfileDataLoading = _ref17[0],
|
|
156077
156128
|
setIsProfileDataLoading = _ref17[1];
|
|
156078
|
-
var _ref18 = (0,
|
|
156129
|
+
var _ref18 = (0, import_react5.useState)(false),
|
|
156079
156130
|
_ref19 = _slicedToArray(_ref18, 2),
|
|
156080
156131
|
isProfileDataRefetching = _ref19[0],
|
|
156081
156132
|
setIsProfileDataRefetching = _ref19[1];
|
|
156082
156133
|
var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
|
|
156083
156134
|
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
156084
156135
|
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
156085
|
-
var _ref20 = (0,
|
|
156136
|
+
var _ref20 = (0, import_react5.useState)(false),
|
|
156086
156137
|
_ref21 = _slicedToArray(_ref20, 2),
|
|
156087
156138
|
isWebviewLoading = _ref21[0],
|
|
156088
156139
|
setIsWebviewLoading = _ref21[1];
|
|
156089
|
-
var isCompletedProfileFlow = (0,
|
|
156140
|
+
var isCompletedProfileFlow = (0, import_react5.useRef)(false);
|
|
156090
156141
|
var _ref22 = (0, import_react_native9.useDialog)(),
|
|
156091
156142
|
openAlert = _ref22.openAlert,
|
|
156092
156143
|
openConfirm = _ref22.openConfirm;
|
|
156093
156144
|
var _useGameProfileToast = useGameProfileToast(),
|
|
156094
156145
|
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
156095
|
-
var openErrorAlert = (0,
|
|
156146
|
+
var openErrorAlert = (0, import_react5.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee() {
|
|
156096
156147
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
156097
156148
|
while (1) switch (_context.prev = _context.next) {
|
|
156098
156149
|
case 0:
|
|
@@ -156102,14 +156153,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156102
156153
|
description: DEFAULT_ERROR.description
|
|
156103
156154
|
});
|
|
156104
156155
|
case 2:
|
|
156105
|
-
(0,
|
|
156156
|
+
(0, import_react_native_bedrock13.closeView)();
|
|
156106
156157
|
case 3:
|
|
156107
156158
|
case "end":
|
|
156108
156159
|
return _context.stop();
|
|
156109
156160
|
}
|
|
156110
156161
|
}, _callee);
|
|
156111
156162
|
})), [openAlert]);
|
|
156112
|
-
var openProfileWebview = (0,
|
|
156163
|
+
var openProfileWebview = (0, import_react5.useCallback)(function () {
|
|
156113
156164
|
if (isWebviewLoading) {
|
|
156114
156165
|
return;
|
|
156115
156166
|
}
|
|
@@ -156161,7 +156212,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156161
156212
|
}
|
|
156162
156213
|
});
|
|
156163
156214
|
}, [isWebviewLoading, openGameProfileToast, openErrorAlert]);
|
|
156164
|
-
var updateAppToSupportedMinVersion = (0,
|
|
156215
|
+
var updateAppToSupportedMinVersion = (0, import_react5.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee3() {
|
|
156165
156216
|
var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
|
|
156166
156217
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
156167
156218
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -156184,11 +156235,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156184
156235
|
_context3.next = 7;
|
|
156185
156236
|
break;
|
|
156186
156237
|
}
|
|
156187
|
-
(0,
|
|
156238
|
+
(0, import_react_native_bedrock13.closeView)();
|
|
156188
156239
|
return _context3.abrupt("return");
|
|
156189
156240
|
case 7:
|
|
156190
156241
|
STORE_SCHEME = getMarketLink();
|
|
156191
|
-
(0,
|
|
156242
|
+
(0, import_react_native_bedrock13.openURL)("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
156192
156243
|
case 9:
|
|
156193
156244
|
case "end":
|
|
156194
156245
|
return _context3.stop();
|
|
@@ -156232,7 +156283,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156232
156283
|
setProfileData = _useGameCenterProfile.setProfileData,
|
|
156233
156284
|
openErrorAlert = _useGameCenterProfile.openErrorAlert,
|
|
156234
156285
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
|
|
156235
|
-
(0,
|
|
156286
|
+
(0, import_react6.useEffect)(function () {
|
|
156236
156287
|
try {
|
|
156237
156288
|
var getProfileData = function () {
|
|
156238
156289
|
var _ref26 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -156262,7 +156313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156262
156313
|
setIsProfileDataLoading(false);
|
|
156263
156314
|
}
|
|
156264
156315
|
}, []);
|
|
156265
|
-
(0,
|
|
156316
|
+
(0, import_react6.useEffect)(function () {
|
|
156266
156317
|
var handleGameProfileFlow = function () {
|
|
156267
156318
|
var _ref27 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5() {
|
|
156268
156319
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -156481,16 +156532,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156481
156532
|
});
|
|
156482
156533
|
}
|
|
156483
156534
|
var import_jsx_runtime6 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
|
|
156484
|
-
var GameWebView = (0,
|
|
156535
|
+
var GameWebView = (0, import_react7.forwardRef)(function GameWebView2(props, ref) {
|
|
156485
156536
|
var _ref30 = (0, import_react_native17.useDialog)(),
|
|
156486
156537
|
openConfirm = _ref30.openConfirm;
|
|
156487
156538
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
156488
156539
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
156489
|
-
var
|
|
156540
|
+
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
156541
|
+
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
156542
|
+
var _ref31 = (0, import_react7.useState)(false),
|
|
156490
156543
|
_ref32 = _slicedToArray(_ref31, 2),
|
|
156491
156544
|
isEntryMessageExited = _ref32[0],
|
|
156492
156545
|
setIsEntryMessageExited = _ref32[1];
|
|
156493
|
-
var handleClose = (0,
|
|
156546
|
+
var handleClose = (0, import_react7.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
|
|
156494
156547
|
var isConfirmed;
|
|
156495
156548
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
156496
156549
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -156505,28 +156558,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156505
156558
|
case 2:
|
|
156506
156559
|
isConfirmed = _context6.sent;
|
|
156507
156560
|
if (isConfirmed) {
|
|
156508
|
-
(
|
|
156561
|
+
captureExitLog(Date.now());
|
|
156562
|
+
(0, import_react_native_bedrock14.closeView)();
|
|
156509
156563
|
}
|
|
156510
156564
|
case 4:
|
|
156511
156565
|
case "end":
|
|
156512
156566
|
return _context6.stop();
|
|
156513
156567
|
}
|
|
156514
156568
|
}, _callee6);
|
|
156515
|
-
})), [brandDisplayName, openConfirm]);
|
|
156516
|
-
(0,
|
|
156569
|
+
})), [brandDisplayName, captureExitLog, openConfirm]);
|
|
156570
|
+
(0, import_react7.useEffect)(function () {
|
|
156517
156571
|
if (import_react_native18.Platform.OS === "ios") {
|
|
156518
|
-
(0,
|
|
156572
|
+
(0, import_react_native_bedrock14.setIosSwipeGestureEnabled)({
|
|
156519
156573
|
isEnabled: false
|
|
156520
156574
|
});
|
|
156521
156575
|
return function () {
|
|
156522
|
-
(0,
|
|
156576
|
+
(0, import_react_native_bedrock14.setIosSwipeGestureEnabled)({
|
|
156523
156577
|
isEnabled: true
|
|
156524
156578
|
});
|
|
156525
156579
|
};
|
|
156526
156580
|
}
|
|
156527
156581
|
return;
|
|
156528
156582
|
}, []);
|
|
156529
|
-
(0,
|
|
156583
|
+
(0, import_react7.useEffect)(function () {
|
|
156530
156584
|
var backHandler = function backHandler() {
|
|
156531
156585
|
handleClose();
|
|
156532
156586
|
return true;
|
|
@@ -156536,7 +156590,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156536
156590
|
import_react_native18.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
156537
156591
|
};
|
|
156538
156592
|
}, [handleClose]);
|
|
156539
|
-
(0,
|
|
156593
|
+
(0, import_react7.useEffect)(function () {
|
|
156540
156594
|
_appsInTossEvent.addEventListener("entryMessageExited", {
|
|
156541
156595
|
onEvent: function onEvent() {
|
|
156542
156596
|
setIsEntryMessageExited(true);
|
|
@@ -156556,7 +156610,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156556
156610
|
}, props))]
|
|
156557
156611
|
});
|
|
156558
156612
|
});
|
|
156559
|
-
var
|
|
156613
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156560
156614
|
function serializeError(error) {
|
|
156561
156615
|
return JSON.stringify(error, function (_, value) {
|
|
156562
156616
|
if (value instanceof Error) {
|
|
@@ -156617,15 +156671,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156617
156671
|
asyncHandlerMap = _ref36.asyncHandlerMap,
|
|
156618
156672
|
eventListenerMap = _ref36.eventListenerMap,
|
|
156619
156673
|
originalInjectedJavaScript = _ref36.injectedJavaScript;
|
|
156620
|
-
var ref = (0,
|
|
156621
|
-
var injectedJavaScript = (0,
|
|
156674
|
+
var ref = (0, import_react8.useRef)(null);
|
|
156675
|
+
var injectedJavaScript = (0, import_react8.useMemo)(function () {
|
|
156622
156676
|
return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref37) {
|
|
156623
156677
|
var _ref38 = _slicedToArray(_ref37, 2),
|
|
156624
156678
|
key = _ref38[0],
|
|
156625
156679
|
value = _ref38[1];
|
|
156626
156680
|
acc[key] = typeof value === "function" ? value() : value;
|
|
156627
156681
|
return acc;
|
|
156628
|
-
}, {}))), originalInjectedJavaScript, "true"].join("\n");
|
|
156682
|
+
}, {})), ";"), originalInjectedJavaScript, "true"].join("\n");
|
|
156629
156683
|
}, [constantHandlerMap, originalInjectedJavaScript]);
|
|
156630
156684
|
var createHandleOnEvent = function createHandleOnEvent(functionName, eventId) {
|
|
156631
156685
|
return function (response) {
|
|
@@ -156639,7 +156693,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156639
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 "));
|
|
156640
156694
|
};
|
|
156641
156695
|
};
|
|
156642
|
-
var $onMessage = (0,
|
|
156696
|
+
var $onMessage = (0, import_react8.useCallback)(function () {
|
|
156643
156697
|
var _ref39 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(e) {
|
|
156644
156698
|
var data, _eventListenerMap$dat, handleOnEvent, handleOnError, remove, key, _remove, _ref$current3;
|
|
156645
156699
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
@@ -156721,7 +156775,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156721
156775
|
}
|
|
156722
156776
|
});
|
|
156723
156777
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156724
|
-
var
|
|
156778
|
+
var import_react_native_bedrock15 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156725
156779
|
var FontA11yCategory = {
|
|
156726
156780
|
Large: "Large",
|
|
156727
156781
|
xLarge: "xLarge",
|
|
@@ -156884,7 +156938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156884
156938
|
pureSafeArea = _ref40.pureSafeArea,
|
|
156885
156939
|
safeArea = _ref40.safeArea,
|
|
156886
156940
|
safeAreaBottomTransparency = _ref40.safeAreaBottomTransparency;
|
|
156887
|
-
var platform = (0,
|
|
156941
|
+
var platform = (0, import_react_native_bedrock15.getPlatformOS)();
|
|
156888
156942
|
var appVersion = _getTossAppVersion();
|
|
156889
156943
|
var _ref41 = (0, import_react_native19.useWindowDimensions)(),
|
|
156890
156944
|
fontScale = _ref41.fontScale;
|
|
@@ -156893,18 +156947,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156893
156947
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
156894
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(" ");
|
|
156895
156949
|
}
|
|
156896
|
-
var
|
|
156897
|
-
var
|
|
156950
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156951
|
+
var import_react_native_bedrock16 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156898
156952
|
function _useGeolocation(_ref42) {
|
|
156899
156953
|
var accuracy = _ref42.accuracy,
|
|
156900
156954
|
distanceInterval = _ref42.distanceInterval,
|
|
156901
156955
|
timeInterval = _ref42.timeInterval;
|
|
156902
|
-
var isVisible = (0,
|
|
156903
|
-
var _ref43 = (0,
|
|
156956
|
+
var isVisible = (0, import_react_native_bedrock16.useVisibility)();
|
|
156957
|
+
var _ref43 = (0, import_react9.useState)(null),
|
|
156904
156958
|
_ref44 = _slicedToArray(_ref43, 2),
|
|
156905
156959
|
location = _ref44[0],
|
|
156906
156960
|
setLocation = _ref44[1];
|
|
156907
|
-
(0,
|
|
156961
|
+
(0, import_react9.useEffect)(function () {
|
|
156908
156962
|
if (!isVisible) {
|
|
156909
156963
|
return;
|
|
156910
156964
|
}
|
|
@@ -156920,7 +156974,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156920
156974
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
156921
156975
|
return location;
|
|
156922
156976
|
}
|
|
156923
|
-
var
|
|
156977
|
+
var import_react_native_bedrock17 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156924
156978
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
156925
156979
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
156926
156980
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -156942,7 +156996,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156942
156996
|
};
|
|
156943
156997
|
var getReferrer = function getReferrer() {
|
|
156944
156998
|
try {
|
|
156945
|
-
var referrer = new URL((0,
|
|
156999
|
+
var referrer = new URL((0, import_react_native_bedrock17.getSchemeUri)());
|
|
156946
157000
|
return referrer.searchParams.get("referrer");
|
|
156947
157001
|
} catch (_unused4) {
|
|
156948
157002
|
return "";
|
|
@@ -156975,7 +157029,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156975
157029
|
};
|
|
156976
157030
|
function mergeSchemeQueryParamsInto(url) {
|
|
156977
157031
|
var baseUrl = new URL(url);
|
|
156978
|
-
var schemeUrl = new URL((0,
|
|
157032
|
+
var schemeUrl = new URL((0, import_react_native_bedrock18.getSchemeUri)());
|
|
156979
157033
|
baseUrl.pathname = schemeUrl.pathname;
|
|
156980
157034
|
var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
|
|
156981
157035
|
_step5;
|
|
@@ -157015,16 +157069,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157015
157069
|
if (!TYPES.includes(type)) {
|
|
157016
157070
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
157017
157071
|
}
|
|
157018
|
-
var bedrockEvent = (0,
|
|
157019
|
-
var uri = (0,
|
|
157072
|
+
var bedrockEvent = (0, import_react_native_bedrock18.useBedrockEvent)();
|
|
157073
|
+
var uri = (0, import_react10.useMemo)(function () {
|
|
157020
157074
|
return getWebViewUri(local);
|
|
157021
157075
|
}, [local]);
|
|
157022
157076
|
var top = (0, import_private3.useSafeAreaTop)();
|
|
157023
157077
|
var bottom = (0, import_private3.useSafeAreaBottom)();
|
|
157024
157078
|
var global2 = getAppsInTossGlobals();
|
|
157025
157079
|
var partner = (0, import_react_native20.usePartnerNavigation)();
|
|
157080
|
+
var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
|
|
157026
157081
|
var handler = useBridgeHandler({
|
|
157027
157082
|
onMessage: onMessage,
|
|
157083
|
+
injectedJavaScript: [disableTextSelectionCSS].join("\n"),
|
|
157028
157084
|
eventListenerMap: _objectSpread(_objectSpread({}, event_bridges_exports), {}, {
|
|
157029
157085
|
navigationAccessoryEvent: function navigationAccessoryEvent(_ref46) {
|
|
157030
157086
|
var onEvent = _ref46.onEvent,
|
|
@@ -157142,7 +157198,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157142
157198
|
iapGetProductItemList: _IAP.getProductItemList
|
|
157143
157199
|
})
|
|
157144
157200
|
});
|
|
157145
|
-
var baseProps = (0,
|
|
157201
|
+
var baseProps = (0, import_react10.useMemo)(function () {
|
|
157146
157202
|
switch (type) {
|
|
157147
157203
|
case "partner":
|
|
157148
157204
|
{
|
|
@@ -157172,14 +157228,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157172
157228
|
}, [type, props]);
|
|
157173
157229
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
157174
157230
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
157175
|
-
var
|
|
157231
|
+
var _ref53 = (0, import_react10.useState)(false),
|
|
157232
|
+
_ref54 = _slicedToArray(_ref53, 2),
|
|
157233
|
+
canHistoryGoBack = _ref54[0],
|
|
157234
|
+
setCanHistoryGoBack = _ref54[1];
|
|
157235
|
+
var handleNavigationStateChange = (0, import_react10.useCallback)(function (event) {
|
|
157176
157236
|
if (event.url) {
|
|
157177
157237
|
trackScreen(event.url);
|
|
157178
157238
|
}
|
|
157179
|
-
|
|
157239
|
+
setCanHistoryGoBack(event.canGoBack);
|
|
157240
|
+
}, [setCanHistoryGoBack]);
|
|
157180
157241
|
var userAgent = _useCreateUserAgent({
|
|
157181
157242
|
colorPreference: "light"
|
|
157182
157243
|
});
|
|
157244
|
+
var backEvent = (0, import_react_native_bedrock18.useBackEvent)();
|
|
157245
|
+
var handleBackEvent = (0, import_react10.useCallback)(function () {
|
|
157246
|
+
if (canHistoryGoBack) {
|
|
157247
|
+
var _handler$ref$current;
|
|
157248
|
+
(_handler$ref$current = handler.ref.current) === null || _handler$ref$current === void 0 || _handler$ref$current.goBack();
|
|
157249
|
+
} else {
|
|
157250
|
+
(0, import_react_native_bedrock18.closeView)();
|
|
157251
|
+
}
|
|
157252
|
+
}, [canHistoryGoBack, handler]);
|
|
157253
|
+
(0, import_react10.useEffect)(function () {
|
|
157254
|
+
backEvent.addEventListener(handleBackEvent);
|
|
157255
|
+
return function () {
|
|
157256
|
+
return backEvent.removeEventListener(handleBackEvent);
|
|
157257
|
+
};
|
|
157258
|
+
}, [backEvent, handleBackEvent]);
|
|
157183
157259
|
return (0, import_jsx_runtime7.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
|
|
157184
157260
|
ref: handler.ref
|
|
157185
157261
|
}, props), baseProps), {}, {
|
|
@@ -225535,7 +225611,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225535
225611
|
}
|
|
225536
225612
|
},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");
|
|
225537
225613
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225538
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225614
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gronxb/workspace/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({
|
|
225539
225615
|
"__packager_asset": true,
|
|
225540
225616
|
"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",
|
|
225541
225617
|
"width": 12,
|
|
@@ -225547,7 +225623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225547
225623
|
});
|
|
225548
225624
|
},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");
|
|
225549
225625
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225550
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225626
|
+
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gronxb/workspace/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({
|
|
225551
225627
|
"__packager_asset": true,
|
|
225552
225628
|
"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",
|
|
225553
225629
|
"width": 50,
|