@apps-in-toss/web-framework 0.0.35 → 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 +150 -96
- package/dist/prebuilt/dev.ios.js +150 -96
- package/dist/prebuilt/prod.android.js +105 -44
- package/dist/prebuilt/prod.ios.js +105 -44
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +8 -8
|
@@ -87493,7 +87493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
87493
87493
|
var _default = exports.default = TurboModuleRegistry.get('LinkingManager');
|
|
87494
87494
|
},412,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Linking/NativeLinkingManager.js");
|
|
87495
87495
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
87496
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
87496
|
+
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({
|
|
87497
87497
|
"__packager_asset": true,
|
|
87498
87498
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
87499
87499
|
"width": 28,
|
|
@@ -89172,7 +89172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89172
89172
|
var _default = exports.default = NativeStatusBarManager;
|
|
89173
89173
|
},429,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js");
|
|
89174
89174
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89175
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89175
|
+
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({
|
|
89176
89176
|
"__packager_asset": true,
|
|
89177
89177
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89178
89178
|
"width": 16,
|
|
@@ -89184,7 +89184,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89184
89184
|
});
|
|
89185
89185
|
},430,[414],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png");
|
|
89186
89186
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89187
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89187
|
+
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({
|
|
89188
89188
|
"__packager_asset": true,
|
|
89189
89189
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89190
89190
|
"width": 16,
|
|
@@ -89818,7 +89818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89818
89818
|
var _default = exports.default = LogBoxInspectorSourceMapStatus;
|
|
89819
89819
|
},435,[315,274,243,379,407,408,8,49,436,437],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js");
|
|
89820
89820
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89821
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89821
|
+
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({
|
|
89822
89822
|
"__packager_asset": true,
|
|
89823
89823
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89824
89824
|
"width": 48,
|
|
@@ -89830,7 +89830,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
89830
89830
|
});
|
|
89831
89831
|
},436,[414],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png");
|
|
89832
89832
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
89833
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
89833
|
+
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({
|
|
89834
89834
|
"__packager_asset": true,
|
|
89835
89835
|
"httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
|
|
89836
89836
|
"width": 44,
|
|
@@ -108470,7 +108470,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
108470
108470
|
}
|
|
108471
108471
|
},650,[511,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");
|
|
108472
108472
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
108473
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
108473
|
+
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({
|
|
108474
108474
|
"__packager_asset": true,
|
|
108475
108475
|
"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",
|
|
108476
108476
|
"width": 24,
|
|
@@ -108482,7 +108482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
108482
108482
|
});
|
|
108483
108483
|
},651,[414],"../../../.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");
|
|
108484
108484
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
108485
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
108485
|
+
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({
|
|
108486
108486
|
"__packager_asset": true,
|
|
108487
108487
|
"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",
|
|
108488
108488
|
"width": 50,
|
|
@@ -154823,15 +154823,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154823
154823
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
|
|
154824
154824
|
var import_analytics = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
|
|
154825
154825
|
var import_react_native6 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
154826
|
-
var
|
|
154827
|
-
var
|
|
154828
|
-
var
|
|
154826
|
+
var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154827
|
+
var import_react3 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
154828
|
+
var import_react_native_bedrock4 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154829
154829
|
var _env = {
|
|
154830
154830
|
getDeploymentId: function getDeploymentId() {
|
|
154831
154831
|
var _global$__appsInToss;
|
|
154832
154832
|
return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) === null || _global$__appsInToss === void 0 ? void 0 : _global$__appsInToss.deploymentId;
|
|
154833
154833
|
}
|
|
154834
154834
|
};
|
|
154835
|
+
var import_react2 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
154836
|
+
var import_react_native_bedrock3 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154837
|
+
var import_react = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
154838
|
+
var import_react_native_bedrock = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154839
|
+
function useReferrer() {
|
|
154840
|
+
return (0, import_react.useMemo)(function () {
|
|
154841
|
+
try {
|
|
154842
|
+
return new URL((0, import_react_native_bedrock.getSchemeUri)()).searchParams.get("referrer");
|
|
154843
|
+
} catch (_unused) {
|
|
154844
|
+
return null;
|
|
154845
|
+
}
|
|
154846
|
+
}, []);
|
|
154847
|
+
}
|
|
154835
154848
|
var import_react_native3 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
154836
154849
|
var import_react_native = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
154837
154850
|
var AppsInTossModuleInstance = import_react_native.NativeModules.AppsInTossModule;
|
|
@@ -154953,18 +154966,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154953
154966
|
}
|
|
154954
154967
|
});
|
|
154955
154968
|
}
|
|
154956
|
-
var
|
|
154957
|
-
var import_react_native_bedrock = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154958
|
-
function useReferrer() {
|
|
154959
|
-
return (0, import_react.useMemo)(function () {
|
|
154960
|
-
try {
|
|
154961
|
-
return new URL((0, import_react_native_bedrock.getSchemeUri)()).searchParams.get("referrer");
|
|
154962
|
-
} catch (_unused) {
|
|
154963
|
-
return null;
|
|
154964
|
-
}
|
|
154965
|
-
}, []);
|
|
154966
|
-
}
|
|
154967
|
-
var ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
154969
|
+
var import_react_native_bedrock2 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154968
154970
|
function isPrivateScheme() {
|
|
154969
154971
|
try {
|
|
154970
154972
|
return new URL((0, import_react_native_bedrock2.getSchemeUri)()).protocol === "intoss-private:";
|
|
@@ -154972,10 +154974,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154972
154974
|
return false;
|
|
154973
154975
|
}
|
|
154974
154976
|
}
|
|
154977
|
+
var EXIT_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__stay_time";
|
|
154978
|
+
var EXIT_IMPRESSION_SCHEMA_ID = 1631628;
|
|
154979
|
+
function useCaptureExitLog() {
|
|
154980
|
+
var referrer = useReferrer();
|
|
154981
|
+
var visible = (0, import_react_native_bedrock3.useVisibility)();
|
|
154982
|
+
var enterTime = (0, import_react2.useRef)(void 0);
|
|
154983
|
+
(0, import_react2.useEffect)(function () {
|
|
154984
|
+
if (visible === true) {
|
|
154985
|
+
enterTime.current = Date.now();
|
|
154986
|
+
}
|
|
154987
|
+
}, [visible]);
|
|
154988
|
+
var captureExitLog = (0, import_react2.useCallback)(function (exitTime) {
|
|
154989
|
+
if (enterTime.current == null) {
|
|
154990
|
+
return;
|
|
154991
|
+
}
|
|
154992
|
+
var stayTime = Math.floor(exitTime - enterTime.current);
|
|
154993
|
+
tossCoreEventLog({
|
|
154994
|
+
log_name: EXIT_IMPRESSION_LOG_NAME,
|
|
154995
|
+
log_type: "event",
|
|
154996
|
+
params: {
|
|
154997
|
+
schema_id: EXIT_IMPRESSION_SCHEMA_ID,
|
|
154998
|
+
event_type: "impression",
|
|
154999
|
+
referrer: referrer,
|
|
155000
|
+
deployment_id: _env.getDeploymentId(),
|
|
155001
|
+
app_name: import_react_native_bedrock3.Bedrock.appName,
|
|
155002
|
+
is_private: isPrivateScheme(),
|
|
155003
|
+
stay_time: stayTime.toString(),
|
|
155004
|
+
exit_time: exitTime.toString()
|
|
155005
|
+
}
|
|
155006
|
+
});
|
|
155007
|
+
enterTime.current = void 0;
|
|
155008
|
+
}, [referrer]);
|
|
155009
|
+
return {
|
|
155010
|
+
captureExitLog: captureExitLog
|
|
155011
|
+
};
|
|
155012
|
+
}
|
|
155013
|
+
var ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
154975
155014
|
function EntryAppEvent() {
|
|
154976
155015
|
var _useReferrer;
|
|
154977
155016
|
var referrer = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
|
|
154978
|
-
(0,
|
|
155017
|
+
(0, import_react3.useEffect)(function () {
|
|
154979
155018
|
tossCoreEventLog({
|
|
154980
155019
|
log_name: "appsintoss_app_visit::impression__enter_appsintoss",
|
|
154981
155020
|
log_type: "info",
|
|
@@ -154984,7 +155023,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154984
155023
|
schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
|
|
154985
155024
|
referrer: referrer,
|
|
154986
155025
|
deployment_id: _env.getDeploymentId(),
|
|
154987
|
-
app_name:
|
|
155026
|
+
app_name: import_react_native_bedrock4.Bedrock.appName,
|
|
154988
155027
|
is_private: isPrivateScheme()
|
|
154989
155028
|
}
|
|
154990
155029
|
});
|
|
@@ -154993,28 +155032,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154993
155032
|
}
|
|
154994
155033
|
function SystemAppEvent(_ref) {
|
|
154995
155034
|
var initialProps = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
154996
|
-
(0,
|
|
155035
|
+
(0, import_react3.useEffect)(function () {
|
|
154997
155036
|
tossCoreEventLog({
|
|
154998
155037
|
log_name: "AppsInTossInitialProps",
|
|
154999
155038
|
log_type: "debug",
|
|
155000
155039
|
params: _objectSpread(_objectSpread({}, initialProps), {}, {
|
|
155001
|
-
schemeUri: (0,
|
|
155040
|
+
schemeUri: (0, import_react_native_bedrock4.getSchemeUri)(),
|
|
155002
155041
|
deployment_id: _env.getDeploymentId(),
|
|
155003
|
-
app_name:
|
|
155042
|
+
app_name: import_react_native_bedrock4.Bedrock.appName,
|
|
155004
155043
|
is_private: isPrivateScheme()
|
|
155005
155044
|
})
|
|
155006
155045
|
});
|
|
155007
155046
|
}, [initialProps]);
|
|
155008
155047
|
return null;
|
|
155009
155048
|
}
|
|
155049
|
+
function StayTimeAppEvent() {
|
|
155050
|
+
var visible = (0, import_react_native_bedrock4.useVisibility)();
|
|
155051
|
+
var _useCaptureExitLog = useCaptureExitLog(),
|
|
155052
|
+
captureExitLog = _useCaptureExitLog.captureExitLog;
|
|
155053
|
+
(0, import_react3.useEffect)(function () {
|
|
155054
|
+
if (visible === false) {
|
|
155055
|
+
captureExitLog(Date.now());
|
|
155056
|
+
}
|
|
155057
|
+
}, [visible, captureExitLog]);
|
|
155058
|
+
return null;
|
|
155059
|
+
}
|
|
155010
155060
|
var AppEvent = {
|
|
155011
155061
|
Entry: EntryAppEvent,
|
|
155012
|
-
System: SystemAppEvent
|
|
155062
|
+
System: SystemAppEvent,
|
|
155063
|
+
StayTime: StayTimeAppEvent
|
|
155013
155064
|
};
|
|
155014
155065
|
var import_react_native5 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155015
|
-
var
|
|
155016
|
-
var
|
|
155017
|
-
var
|
|
155066
|
+
var import_react4 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
155067
|
+
var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155068
|
+
var import_react_native_bedrock5 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155018
155069
|
var EntryMessageExitedEvent = function (_import_react_native_) {
|
|
155019
155070
|
function EntryMessageExitedEvent() {
|
|
155020
155071
|
var _this;
|
|
@@ -155034,8 +155085,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155034
155085
|
key: "listener",
|
|
155035
155086
|
value: function listener(_) {}
|
|
155036
155087
|
}]);
|
|
155037
|
-
}(
|
|
155038
|
-
var
|
|
155088
|
+
}(import_react_native_bedrock5.BedrockEventDefinition);
|
|
155089
|
+
var import_react_native_bedrock6 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155039
155090
|
function getPermission(permission) {
|
|
155040
155091
|
return AppsInTossModule.getPermission(permission);
|
|
155041
155092
|
}
|
|
@@ -155119,8 +155170,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155119
155170
|
}).catch(onError);
|
|
155120
155171
|
}
|
|
155121
155172
|
}]);
|
|
155122
|
-
}(
|
|
155123
|
-
var
|
|
155173
|
+
}(import_react_native_bedrock6.BedrockEventDefinition);
|
|
155174
|
+
var import_react_native_bedrock7 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155124
155175
|
function generateUUID(placeholder) {
|
|
155125
155176
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
155126
155177
|
}
|
|
@@ -155219,8 +155270,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155219
155270
|
}
|
|
155220
155271
|
}
|
|
155221
155272
|
}]);
|
|
155222
|
-
}(
|
|
155223
|
-
var
|
|
155273
|
+
}(import_react_native_bedrock7.BedrockEventDefinition);
|
|
155274
|
+
var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155224
155275
|
var VisibilityChangedByTransparentServiceWebEvent = function (_import_react_native_4) {
|
|
155225
155276
|
function VisibilityChangedByTransparentServiceWebEvent() {
|
|
155226
155277
|
var _this5;
|
|
@@ -155262,8 +155313,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155262
155313
|
return _typeof(params) === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
155263
155314
|
}
|
|
155264
155315
|
}]);
|
|
155265
|
-
}(
|
|
155266
|
-
var _appsInTossEvent = new
|
|
155316
|
+
}(import_react_native_bedrock8.BedrockEventDefinition);
|
|
155317
|
+
var _appsInTossEvent = new import_react_native_bedrock9.BedrockEvent([new UpdateLocationEvent(), new EntryMessageExitedEvent(), new AppBridgeCallbackEvent(), new VisibilityChangedByTransparentServiceWebEvent()]);
|
|
155267
155318
|
function getAppsInTossGlobals() {
|
|
155268
155319
|
if (global.__appsInToss == null) {
|
|
155269
155320
|
throw new Error("invalid apps-in-toss globals");
|
|
@@ -155282,7 +155333,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155282
155333
|
function useAppsInTossBridge() {
|
|
155283
155334
|
var controller = (0, import_react_native5.useBridge)();
|
|
155284
155335
|
var appsInTossGlobals2 = getAppsInTossGlobals();
|
|
155285
|
-
(0,
|
|
155336
|
+
(0, import_react4.useEffect)(function () {
|
|
155286
155337
|
var commonProps = {
|
|
155287
155338
|
serviceName: appsInTossGlobals2.brandDisplayName,
|
|
155288
155339
|
icon: toIcon(appsInTossGlobals2.brandIcon),
|
|
@@ -155772,7 +155823,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155772
155823
|
}));
|
|
155773
155824
|
return _getGameCenterGameProfile2.apply(this, arguments);
|
|
155774
155825
|
}
|
|
155775
|
-
var
|
|
155826
|
+
var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155776
155827
|
function _openGameCenterLeaderboard() {
|
|
155777
155828
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
155778
155829
|
}
|
|
@@ -155791,7 +155842,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155791
155842
|
url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
155792
155843
|
url.searchParams.set("appName", getAppName());
|
|
155793
155844
|
url.searchParams.set("referrer", "appsintoss.".concat(getAppName()));
|
|
155794
|
-
return _context25.abrupt("return", (0,
|
|
155845
|
+
return _context25.abrupt("return", (0, import_react_native_bedrock10.openURL)(url.toString()));
|
|
155795
155846
|
case 6:
|
|
155796
155847
|
case "end":
|
|
155797
155848
|
return _context25.stop();
|
|
@@ -155830,7 +155881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155830
155881
|
var children = _ref7.children,
|
|
155831
155882
|
initialProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
155832
155883
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
155833
|
-
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), {}, {
|
|
155884
|
+
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), {}, {
|
|
155834
155885
|
children: (0, import_jsx_runtime.jsx)(import_react_native6.TDSProvider, {
|
|
155835
155886
|
colorPreference: "light",
|
|
155836
155887
|
token: {
|
|
@@ -155862,7 +155913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155862
155913
|
},
|
|
155863
155914
|
debug: (_analytics$debug = analytics === null || analytics === void 0 ? void 0 : analytics.debug) !== null && _analytics$debug !== void 0 ? _analytics$debug : __DEV__
|
|
155864
155915
|
});
|
|
155865
|
-
return
|
|
155916
|
+
return import_react_native_bedrock11.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
|
|
155866
155917
|
appName: getAppName(),
|
|
155867
155918
|
context: context,
|
|
155868
155919
|
router: {
|
|
@@ -156166,24 +156217,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156166
156217
|
};
|
|
156167
156218
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156168
156219
|
var import_private3 = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
|
|
156169
|
-
var
|
|
156220
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156170
156221
|
var import_react_native21 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156171
|
-
var
|
|
156222
|
+
var import_react_native_bedrock18 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156172
156223
|
var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
|
|
156173
156224
|
var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
|
|
156174
156225
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
|
|
156175
156226
|
var import_react_native17 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156176
156227
|
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
|
|
156177
|
-
var
|
|
156228
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156178
156229
|
var import_react_native18 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156179
|
-
var
|
|
156230
|
+
var import_react_native_bedrock14 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156180
156231
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156181
|
-
var
|
|
156232
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156182
156233
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156183
156234
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156184
156235
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
|
|
156185
|
-
var
|
|
156186
|
-
var
|
|
156236
|
+
var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156237
|
+
var import_react_native_bedrock13 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156187
156238
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156188
156239
|
var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
|
|
156189
156240
|
var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
|
|
@@ -156237,7 +156288,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156237
156288
|
var getMarketLink = function getMarketLink() {
|
|
156238
156289
|
return import_react_native8.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
156239
156290
|
};
|
|
156240
|
-
var
|
|
156291
|
+
var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156241
156292
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
156242
156293
|
return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
156243
156294
|
}
|
|
@@ -156275,35 +156326,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156275
156326
|
}
|
|
156276
156327
|
}
|
|
156277
156328
|
});
|
|
156278
|
-
(0,
|
|
156329
|
+
(0, import_react_native_bedrock12.openURL)(url.toString());
|
|
156279
156330
|
};
|
|
156280
156331
|
var useGameCenterProfile = function useGameCenterProfile(isReadyForProfileUI) {
|
|
156281
|
-
var _ref14 = (0,
|
|
156332
|
+
var _ref14 = (0, import_react5.useState)(void 0),
|
|
156282
156333
|
_ref15 = _slicedToArray(_ref14, 2),
|
|
156283
156334
|
profileData = _ref15[0],
|
|
156284
156335
|
setProfileData = _ref15[1];
|
|
156285
|
-
var _ref16 = (0,
|
|
156336
|
+
var _ref16 = (0, import_react5.useState)(true),
|
|
156286
156337
|
_ref17 = _slicedToArray(_ref16, 2),
|
|
156287
156338
|
isProfileDataLoading = _ref17[0],
|
|
156288
156339
|
setIsProfileDataLoading = _ref17[1];
|
|
156289
|
-
var _ref18 = (0,
|
|
156340
|
+
var _ref18 = (0, import_react5.useState)(false),
|
|
156290
156341
|
_ref19 = _slicedToArray(_ref18, 2),
|
|
156291
156342
|
isProfileDataRefetching = _ref19[0],
|
|
156292
156343
|
setIsProfileDataRefetching = _ref19[1];
|
|
156293
156344
|
var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
|
|
156294
156345
|
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
156295
156346
|
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
156296
|
-
var _ref20 = (0,
|
|
156347
|
+
var _ref20 = (0, import_react5.useState)(false),
|
|
156297
156348
|
_ref21 = _slicedToArray(_ref20, 2),
|
|
156298
156349
|
isWebviewLoading = _ref21[0],
|
|
156299
156350
|
setIsWebviewLoading = _ref21[1];
|
|
156300
|
-
var isCompletedProfileFlow = (0,
|
|
156351
|
+
var isCompletedProfileFlow = (0, import_react5.useRef)(false);
|
|
156301
156352
|
var _ref22 = (0, import_react_native9.useDialog)(),
|
|
156302
156353
|
openAlert = _ref22.openAlert,
|
|
156303
156354
|
openConfirm = _ref22.openConfirm;
|
|
156304
156355
|
var _useGameProfileToast = useGameProfileToast(),
|
|
156305
156356
|
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
156306
|
-
var openErrorAlert = (0,
|
|
156357
|
+
var openErrorAlert = (0, import_react5.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee() {
|
|
156307
156358
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
156308
156359
|
while (1) switch (_context.prev = _context.next) {
|
|
156309
156360
|
case 0:
|
|
@@ -156313,14 +156364,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156313
156364
|
description: DEFAULT_ERROR.description
|
|
156314
156365
|
});
|
|
156315
156366
|
case 2:
|
|
156316
|
-
(0,
|
|
156367
|
+
(0, import_react_native_bedrock13.closeView)();
|
|
156317
156368
|
case 3:
|
|
156318
156369
|
case "end":
|
|
156319
156370
|
return _context.stop();
|
|
156320
156371
|
}
|
|
156321
156372
|
}, _callee);
|
|
156322
156373
|
})), [openAlert]);
|
|
156323
|
-
var openProfileWebview = (0,
|
|
156374
|
+
var openProfileWebview = (0, import_react5.useCallback)(function () {
|
|
156324
156375
|
if (isWebviewLoading) {
|
|
156325
156376
|
return;
|
|
156326
156377
|
}
|
|
@@ -156372,7 +156423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156372
156423
|
}
|
|
156373
156424
|
});
|
|
156374
156425
|
}, [isWebviewLoading, openGameProfileToast, openErrorAlert]);
|
|
156375
|
-
var updateAppToSupportedMinVersion = (0,
|
|
156426
|
+
var updateAppToSupportedMinVersion = (0, import_react5.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee3() {
|
|
156376
156427
|
var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
|
|
156377
156428
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
156378
156429
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -156395,11 +156446,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156395
156446
|
_context3.next = 7;
|
|
156396
156447
|
break;
|
|
156397
156448
|
}
|
|
156398
|
-
(0,
|
|
156449
|
+
(0, import_react_native_bedrock13.closeView)();
|
|
156399
156450
|
return _context3.abrupt("return");
|
|
156400
156451
|
case 7:
|
|
156401
156452
|
STORE_SCHEME = getMarketLink();
|
|
156402
|
-
(0,
|
|
156453
|
+
(0, import_react_native_bedrock13.openURL)("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
156403
156454
|
case 9:
|
|
156404
156455
|
case "end":
|
|
156405
156456
|
return _context3.stop();
|
|
@@ -156443,7 +156494,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156443
156494
|
setProfileData = _useGameCenterProfile.setProfileData,
|
|
156444
156495
|
openErrorAlert = _useGameCenterProfile.openErrorAlert,
|
|
156445
156496
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
|
|
156446
|
-
(0,
|
|
156497
|
+
(0, import_react6.useEffect)(function () {
|
|
156447
156498
|
try {
|
|
156448
156499
|
var getProfileData = function () {
|
|
156449
156500
|
var _ref26 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -156473,7 +156524,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156473
156524
|
setIsProfileDataLoading(false);
|
|
156474
156525
|
}
|
|
156475
156526
|
}, []);
|
|
156476
|
-
(0,
|
|
156527
|
+
(0, import_react6.useEffect)(function () {
|
|
156477
156528
|
var handleGameProfileFlow = function () {
|
|
156478
156529
|
var _ref27 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5() {
|
|
156479
156530
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -156692,16 +156743,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156692
156743
|
});
|
|
156693
156744
|
}
|
|
156694
156745
|
var import_jsx_runtime6 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
|
|
156695
|
-
var GameWebView = (0,
|
|
156746
|
+
var GameWebView = (0, import_react7.forwardRef)(function GameWebView2(props, ref) {
|
|
156696
156747
|
var _ref30 = (0, import_react_native17.useDialog)(),
|
|
156697
156748
|
openConfirm = _ref30.openConfirm;
|
|
156698
156749
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
156699
156750
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
156700
|
-
var
|
|
156751
|
+
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
156752
|
+
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
156753
|
+
var _ref31 = (0, import_react7.useState)(false),
|
|
156701
156754
|
_ref32 = _slicedToArray(_ref31, 2),
|
|
156702
156755
|
isEntryMessageExited = _ref32[0],
|
|
156703
156756
|
setIsEntryMessageExited = _ref32[1];
|
|
156704
|
-
var handleClose = (0,
|
|
156757
|
+
var handleClose = (0, import_react7.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
|
|
156705
156758
|
var isConfirmed;
|
|
156706
156759
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
156707
156760
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -156716,28 +156769,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156716
156769
|
case 2:
|
|
156717
156770
|
isConfirmed = _context6.sent;
|
|
156718
156771
|
if (isConfirmed) {
|
|
156719
|
-
(
|
|
156772
|
+
captureExitLog(Date.now());
|
|
156773
|
+
(0, import_react_native_bedrock14.closeView)();
|
|
156720
156774
|
}
|
|
156721
156775
|
case 4:
|
|
156722
156776
|
case "end":
|
|
156723
156777
|
return _context6.stop();
|
|
156724
156778
|
}
|
|
156725
156779
|
}, _callee6);
|
|
156726
|
-
})), [brandDisplayName, openConfirm]);
|
|
156727
|
-
(0,
|
|
156780
|
+
})), [brandDisplayName, captureExitLog, openConfirm]);
|
|
156781
|
+
(0, import_react7.useEffect)(function () {
|
|
156728
156782
|
if (import_react_native18.Platform.OS === "ios") {
|
|
156729
|
-
(0,
|
|
156783
|
+
(0, import_react_native_bedrock14.setIosSwipeGestureEnabled)({
|
|
156730
156784
|
isEnabled: false
|
|
156731
156785
|
});
|
|
156732
156786
|
return function () {
|
|
156733
|
-
(0,
|
|
156787
|
+
(0, import_react_native_bedrock14.setIosSwipeGestureEnabled)({
|
|
156734
156788
|
isEnabled: true
|
|
156735
156789
|
});
|
|
156736
156790
|
};
|
|
156737
156791
|
}
|
|
156738
156792
|
return;
|
|
156739
156793
|
}, []);
|
|
156740
|
-
(0,
|
|
156794
|
+
(0, import_react7.useEffect)(function () {
|
|
156741
156795
|
var backHandler = function backHandler() {
|
|
156742
156796
|
handleClose();
|
|
156743
156797
|
return true;
|
|
@@ -156747,7 +156801,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156747
156801
|
import_react_native18.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
156748
156802
|
};
|
|
156749
156803
|
}, [handleClose]);
|
|
156750
|
-
(0,
|
|
156804
|
+
(0, import_react7.useEffect)(function () {
|
|
156751
156805
|
_appsInTossEvent.addEventListener("entryMessageExited", {
|
|
156752
156806
|
onEvent: function onEvent() {
|
|
156753
156807
|
setIsEntryMessageExited(true);
|
|
@@ -156767,7 +156821,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156767
156821
|
}, props))]
|
|
156768
156822
|
});
|
|
156769
156823
|
});
|
|
156770
|
-
var
|
|
156824
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156771
156825
|
function serializeError(error) {
|
|
156772
156826
|
return JSON.stringify(error, function (_, value) {
|
|
156773
156827
|
if (value instanceof Error) {
|
|
@@ -156828,8 +156882,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156828
156882
|
asyncHandlerMap = _ref36.asyncHandlerMap,
|
|
156829
156883
|
eventListenerMap = _ref36.eventListenerMap,
|
|
156830
156884
|
originalInjectedJavaScript = _ref36.injectedJavaScript;
|
|
156831
|
-
var ref = (0,
|
|
156832
|
-
var injectedJavaScript = (0,
|
|
156885
|
+
var ref = (0, import_react8.useRef)(null);
|
|
156886
|
+
var injectedJavaScript = (0, import_react8.useMemo)(function () {
|
|
156833
156887
|
return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref37) {
|
|
156834
156888
|
var _ref38 = _slicedToArray(_ref37, 2),
|
|
156835
156889
|
key = _ref38[0],
|
|
@@ -156850,7 +156904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156850
156904
|
(_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 "));
|
|
156851
156905
|
};
|
|
156852
156906
|
};
|
|
156853
|
-
var $onMessage = (0,
|
|
156907
|
+
var $onMessage = (0, import_react8.useCallback)(function () {
|
|
156854
156908
|
var _ref39 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(e) {
|
|
156855
156909
|
var data, _eventListenerMap$dat, handleOnEvent, handleOnError, remove, key, _remove, _ref$current3;
|
|
156856
156910
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
@@ -156932,7 +156986,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156932
156986
|
}
|
|
156933
156987
|
});
|
|
156934
156988
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156935
|
-
var
|
|
156989
|
+
var import_react_native_bedrock15 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156936
156990
|
var FontA11yCategory = {
|
|
156937
156991
|
Large: "Large",
|
|
156938
156992
|
xLarge: "xLarge",
|
|
@@ -157095,7 +157149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157095
157149
|
pureSafeArea = _ref40.pureSafeArea,
|
|
157096
157150
|
safeArea = _ref40.safeArea,
|
|
157097
157151
|
safeAreaBottomTransparency = _ref40.safeAreaBottomTransparency;
|
|
157098
|
-
var platform = (0,
|
|
157152
|
+
var platform = (0, import_react_native_bedrock15.getPlatformOS)();
|
|
157099
157153
|
var appVersion = _getTossAppVersion();
|
|
157100
157154
|
var _ref41 = (0, import_react_native19.useWindowDimensions)(),
|
|
157101
157155
|
fontScale = _ref41.fontScale;
|
|
@@ -157104,18 +157158,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157104
157158
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
157105
157159
|
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(" ");
|
|
157106
157160
|
}
|
|
157107
|
-
var
|
|
157108
|
-
var
|
|
157161
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
157162
|
+
var import_react_native_bedrock16 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
157109
157163
|
function _useGeolocation(_ref42) {
|
|
157110
157164
|
var accuracy = _ref42.accuracy,
|
|
157111
157165
|
distanceInterval = _ref42.distanceInterval,
|
|
157112
157166
|
timeInterval = _ref42.timeInterval;
|
|
157113
|
-
var isVisible = (0,
|
|
157114
|
-
var _ref43 = (0,
|
|
157167
|
+
var isVisible = (0, import_react_native_bedrock16.useVisibility)();
|
|
157168
|
+
var _ref43 = (0, import_react9.useState)(null),
|
|
157115
157169
|
_ref44 = _slicedToArray(_ref43, 2),
|
|
157116
157170
|
location = _ref44[0],
|
|
157117
157171
|
setLocation = _ref44[1];
|
|
157118
|
-
(0,
|
|
157172
|
+
(0, import_react9.useEffect)(function () {
|
|
157119
157173
|
if (!isVisible) {
|
|
157120
157174
|
return;
|
|
157121
157175
|
}
|
|
@@ -157131,7 +157185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157131
157185
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
157132
157186
|
return location;
|
|
157133
157187
|
}
|
|
157134
|
-
var
|
|
157188
|
+
var import_react_native_bedrock17 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
157135
157189
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
157136
157190
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
157137
157191
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -157153,7 +157207,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157153
157207
|
};
|
|
157154
157208
|
var getReferrer = function getReferrer() {
|
|
157155
157209
|
try {
|
|
157156
|
-
var referrer = new URL((0,
|
|
157210
|
+
var referrer = new URL((0, import_react_native_bedrock17.getSchemeUri)());
|
|
157157
157211
|
return referrer.searchParams.get("referrer");
|
|
157158
157212
|
} catch (_unused4) {
|
|
157159
157213
|
return "";
|
|
@@ -157186,7 +157240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157186
157240
|
};
|
|
157187
157241
|
function mergeSchemeQueryParamsInto(url) {
|
|
157188
157242
|
var baseUrl = new URL(url);
|
|
157189
|
-
var schemeUrl = new URL((0,
|
|
157243
|
+
var schemeUrl = new URL((0, import_react_native_bedrock18.getSchemeUri)());
|
|
157190
157244
|
baseUrl.pathname = schemeUrl.pathname;
|
|
157191
157245
|
var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
|
|
157192
157246
|
_step5;
|
|
@@ -157226,8 +157280,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157226
157280
|
if (!TYPES.includes(type)) {
|
|
157227
157281
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
157228
157282
|
}
|
|
157229
|
-
var bedrockEvent = (0,
|
|
157230
|
-
var uri = (0,
|
|
157283
|
+
var bedrockEvent = (0, import_react_native_bedrock18.useBedrockEvent)();
|
|
157284
|
+
var uri = (0, import_react10.useMemo)(function () {
|
|
157231
157285
|
return getWebViewUri(local);
|
|
157232
157286
|
}, [local]);
|
|
157233
157287
|
var top = (0, import_private3.useSafeAreaTop)();
|
|
@@ -157353,7 +157407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157353
157407
|
iapGetProductItemList: _IAP.getProductItemList
|
|
157354
157408
|
})
|
|
157355
157409
|
});
|
|
157356
|
-
var baseProps = (0,
|
|
157410
|
+
var baseProps = (0, import_react10.useMemo)(function () {
|
|
157357
157411
|
switch (type) {
|
|
157358
157412
|
case "partner":
|
|
157359
157413
|
{
|
|
@@ -157383,7 +157437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157383
157437
|
}, [type, props]);
|
|
157384
157438
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
157385
157439
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
157386
|
-
var handleNavigationStateChange = (0,
|
|
157440
|
+
var handleNavigationStateChange = (0, import_react10.useCallback)(function (event) {
|
|
157387
157441
|
if (event.url) {
|
|
157388
157442
|
trackScreen(event.url);
|
|
157389
157443
|
}
|
|
@@ -225823,7 +225877,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225823
225877
|
}
|
|
225824
225878
|
},2210,[511,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");
|
|
225825
225879
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225826
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225880
|
+
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({
|
|
225827
225881
|
"__packager_asset": true,
|
|
225828
225882
|
"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",
|
|
225829
225883
|
"width": 24,
|
|
@@ -225835,7 +225889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225835
225889
|
});
|
|
225836
225890
|
},2211,[414],"../../../.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");
|
|
225837
225891
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225838
|
-
module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/
|
|
225892
|
+
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({
|
|
225839
225893
|
"__packager_asset": true,
|
|
225840
225894
|
"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",
|
|
225841
225895
|
"width": 50,
|