@apps-in-toss/web-framework 0.0.34 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.js +185 -96
- package/dist/prebuilt/dev.ios.js +185 -96
- package/dist/prebuilt/prod.android.js +135 -44
- package/dist/prebuilt/prod.ios.js +135 -44
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +8 -8
- package/dist/cli/chunk-34QS4NNF.js +0 -173587
- package/dist/cli/chunk-HDRFXOPA.js +0 -63
- package/dist/cli/chunk-RUDG2MMT.js +0 -173587
- package/dist/cli/lib-NMFBQRQ2.js +0 -1007
- package/dist/cli/typescript-THSIDFIK.js +0 -6
- package/dist/cli/typescript-YVXHBAAI.js +0 -6
|
@@ -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,
|
|
@@ -154752,6 +154752,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154752
154752
|
appsInTossEvent: function appsInTossEvent() {
|
|
154753
154753
|
return _appsInTossEvent;
|
|
154754
154754
|
},
|
|
154755
|
+
contactsViral: function contactsViral() {
|
|
154756
|
+
return _contactsViral;
|
|
154757
|
+
},
|
|
154755
154758
|
env: function env() {
|
|
154756
154759
|
return _env;
|
|
154757
154760
|
},
|
|
@@ -154820,15 +154823,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154820
154823
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
|
|
154821
154824
|
var import_analytics = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
|
|
154822
154825
|
var import_react_native6 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
154823
|
-
var
|
|
154824
|
-
var
|
|
154825
|
-
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");
|
|
154826
154829
|
var _env = {
|
|
154827
154830
|
getDeploymentId: function getDeploymentId() {
|
|
154828
154831
|
var _global$__appsInToss;
|
|
154829
154832
|
return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) === null || _global$__appsInToss === void 0 ? void 0 : _global$__appsInToss.deploymentId;
|
|
154830
154833
|
}
|
|
154831
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
|
+
}
|
|
154832
154848
|
var import_react_native3 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
154833
154849
|
var import_react_native = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
154834
154850
|
var AppsInTossModuleInstance = import_react_native.NativeModules.AppsInTossModule;
|
|
@@ -154950,18 +154966,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154950
154966
|
}
|
|
154951
154967
|
});
|
|
154952
154968
|
}
|
|
154953
|
-
var
|
|
154954
|
-
var import_react_native_bedrock = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154955
|
-
function useReferrer() {
|
|
154956
|
-
return (0, import_react.useMemo)(function () {
|
|
154957
|
-
try {
|
|
154958
|
-
return new URL((0, import_react_native_bedrock.getSchemeUri)()).searchParams.get("referrer");
|
|
154959
|
-
} catch (_unused) {
|
|
154960
|
-
return null;
|
|
154961
|
-
}
|
|
154962
|
-
}, []);
|
|
154963
|
-
}
|
|
154964
|
-
var ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
154969
|
+
var import_react_native_bedrock2 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
154965
154970
|
function isPrivateScheme() {
|
|
154966
154971
|
try {
|
|
154967
154972
|
return new URL((0, import_react_native_bedrock2.getSchemeUri)()).protocol === "intoss-private:";
|
|
@@ -154969,10 +154974,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154969
154974
|
return false;
|
|
154970
154975
|
}
|
|
154971
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;
|
|
154972
155014
|
function EntryAppEvent() {
|
|
154973
155015
|
var _useReferrer;
|
|
154974
155016
|
var referrer = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
|
|
154975
|
-
(0,
|
|
155017
|
+
(0, import_react3.useEffect)(function () {
|
|
154976
155018
|
tossCoreEventLog({
|
|
154977
155019
|
log_name: "appsintoss_app_visit::impression__enter_appsintoss",
|
|
154978
155020
|
log_type: "info",
|
|
@@ -154981,7 +155023,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154981
155023
|
schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
|
|
154982
155024
|
referrer: referrer,
|
|
154983
155025
|
deployment_id: _env.getDeploymentId(),
|
|
154984
|
-
app_name:
|
|
155026
|
+
app_name: import_react_native_bedrock4.Bedrock.appName,
|
|
154985
155027
|
is_private: isPrivateScheme()
|
|
154986
155028
|
}
|
|
154987
155029
|
});
|
|
@@ -154990,28 +155032,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154990
155032
|
}
|
|
154991
155033
|
function SystemAppEvent(_ref) {
|
|
154992
155034
|
var initialProps = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
154993
|
-
(0,
|
|
155035
|
+
(0, import_react3.useEffect)(function () {
|
|
154994
155036
|
tossCoreEventLog({
|
|
154995
155037
|
log_name: "AppsInTossInitialProps",
|
|
154996
155038
|
log_type: "debug",
|
|
154997
155039
|
params: _objectSpread(_objectSpread({}, initialProps), {}, {
|
|
154998
|
-
schemeUri: (0,
|
|
155040
|
+
schemeUri: (0, import_react_native_bedrock4.getSchemeUri)(),
|
|
154999
155041
|
deployment_id: _env.getDeploymentId(),
|
|
155000
|
-
app_name:
|
|
155042
|
+
app_name: import_react_native_bedrock4.Bedrock.appName,
|
|
155001
155043
|
is_private: isPrivateScheme()
|
|
155002
155044
|
})
|
|
155003
155045
|
});
|
|
155004
155046
|
}, [initialProps]);
|
|
155005
155047
|
return null;
|
|
155006
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
|
+
}
|
|
155007
155060
|
var AppEvent = {
|
|
155008
155061
|
Entry: EntryAppEvent,
|
|
155009
|
-
System: SystemAppEvent
|
|
155062
|
+
System: SystemAppEvent,
|
|
155063
|
+
StayTime: StayTimeAppEvent
|
|
155010
155064
|
};
|
|
155011
155065
|
var import_react_native5 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
155012
|
-
var
|
|
155013
|
-
var
|
|
155014
|
-
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");
|
|
155015
155069
|
var EntryMessageExitedEvent = function (_import_react_native_) {
|
|
155016
155070
|
function EntryMessageExitedEvent() {
|
|
155017
155071
|
var _this;
|
|
@@ -155031,8 +155085,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155031
155085
|
key: "listener",
|
|
155032
155086
|
value: function listener(_) {}
|
|
155033
155087
|
}]);
|
|
155034
|
-
}(
|
|
155035
|
-
var
|
|
155088
|
+
}(import_react_native_bedrock5.BedrockEventDefinition);
|
|
155089
|
+
var import_react_native_bedrock6 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155036
155090
|
function getPermission(permission) {
|
|
155037
155091
|
return AppsInTossModule.getPermission(permission);
|
|
155038
155092
|
}
|
|
@@ -155116,8 +155170,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155116
155170
|
}).catch(onError);
|
|
155117
155171
|
}
|
|
155118
155172
|
}]);
|
|
155119
|
-
}(
|
|
155120
|
-
var
|
|
155173
|
+
}(import_react_native_bedrock6.BedrockEventDefinition);
|
|
155174
|
+
var import_react_native_bedrock7 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155121
155175
|
function generateUUID(placeholder) {
|
|
155122
155176
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
155123
155177
|
}
|
|
@@ -155216,8 +155270,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155216
155270
|
}
|
|
155217
155271
|
}
|
|
155218
155272
|
}]);
|
|
155219
|
-
}(
|
|
155220
|
-
var
|
|
155273
|
+
}(import_react_native_bedrock7.BedrockEventDefinition);
|
|
155274
|
+
var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155221
155275
|
var VisibilityChangedByTransparentServiceWebEvent = function (_import_react_native_4) {
|
|
155222
155276
|
function VisibilityChangedByTransparentServiceWebEvent() {
|
|
155223
155277
|
var _this5;
|
|
@@ -155259,8 +155313,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155259
155313
|
return _typeof(params) === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
155260
155314
|
}
|
|
155261
155315
|
}]);
|
|
155262
|
-
}(
|
|
155263
|
-
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()]);
|
|
155264
155318
|
function getAppsInTossGlobals() {
|
|
155265
155319
|
if (global.__appsInToss == null) {
|
|
155266
155320
|
throw new Error("invalid apps-in-toss globals");
|
|
@@ -155279,7 +155333,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155279
155333
|
function useAppsInTossBridge() {
|
|
155280
155334
|
var controller = (0, import_react_native5.useBridge)();
|
|
155281
155335
|
var appsInTossGlobals2 = getAppsInTossGlobals();
|
|
155282
|
-
(0,
|
|
155336
|
+
(0, import_react4.useEffect)(function () {
|
|
155283
155337
|
var commonProps = {
|
|
155284
155338
|
serviceName: appsInTossGlobals2.brandDisplayName,
|
|
155285
155339
|
icon: toIcon(appsInTossGlobals2.brandIcon),
|
|
@@ -155769,7 +155823,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155769
155823
|
}));
|
|
155770
155824
|
return _getGameCenterGameProfile2.apply(this, arguments);
|
|
155771
155825
|
}
|
|
155772
|
-
var
|
|
155826
|
+
var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
155773
155827
|
function _openGameCenterLeaderboard() {
|
|
155774
155828
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
155775
155829
|
}
|
|
@@ -155788,7 +155842,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155788
155842
|
url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
155789
155843
|
url.searchParams.set("appName", getAppName());
|
|
155790
155844
|
url.searchParams.set("referrer", "appsintoss.".concat(getAppName()));
|
|
155791
|
-
return _context25.abrupt("return", (0,
|
|
155845
|
+
return _context25.abrupt("return", (0, import_react_native_bedrock10.openURL)(url.toString()));
|
|
155792
155846
|
case 6:
|
|
155793
155847
|
case "end":
|
|
155794
155848
|
return _context25.stop();
|
|
@@ -155827,7 +155881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155827
155881
|
var children = _ref7.children,
|
|
155828
155882
|
initialProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
155829
155883
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
155830
|
-
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), {}, {
|
|
155831
155885
|
children: (0, import_jsx_runtime.jsx)(import_react_native6.TDSProvider, {
|
|
155832
155886
|
colorPreference: "light",
|
|
155833
155887
|
token: {
|
|
@@ -155859,7 +155913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155859
155913
|
},
|
|
155860
155914
|
debug: (_analytics$debug = analytics === null || analytics === void 0 ? void 0 : analytics.debug) !== null && _analytics$debug !== void 0 ? _analytics$debug : __DEV__
|
|
155861
155915
|
});
|
|
155862
|
-
return
|
|
155916
|
+
return import_react_native_bedrock11.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
|
|
155863
155917
|
appName: getAppName(),
|
|
155864
155918
|
context: context,
|
|
155865
155919
|
router: {
|
|
@@ -156124,6 +156178,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156124
156178
|
removeItem: removeItem,
|
|
156125
156179
|
clearItems: clearItems
|
|
156126
156180
|
};
|
|
156181
|
+
function _contactsViral(params) {
|
|
156182
|
+
var isSupported = _isMinVersionSupported({
|
|
156183
|
+
android: "5.223.0",
|
|
156184
|
+
ios: "5.223.0"
|
|
156185
|
+
});
|
|
156186
|
+
if (!isSupported) {
|
|
156187
|
+
return function () {};
|
|
156188
|
+
}
|
|
156189
|
+
var onEvent = params.onEvent,
|
|
156190
|
+
onError = params.onError,
|
|
156191
|
+
options = params.options;
|
|
156192
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("contactsViral", options, {
|
|
156193
|
+
onRewardFromContactsViral: function onRewardFromContactsViral(result) {
|
|
156194
|
+
onEvent({
|
|
156195
|
+
type: "sendViral",
|
|
156196
|
+
data: result
|
|
156197
|
+
});
|
|
156198
|
+
},
|
|
156199
|
+
onSuccess: function onSuccess(result) {
|
|
156200
|
+
onEvent({
|
|
156201
|
+
type: "close",
|
|
156202
|
+
data: result
|
|
156203
|
+
});
|
|
156204
|
+
},
|
|
156205
|
+
onError: onError
|
|
156206
|
+
});
|
|
156207
|
+
return unregisterCallbacks;
|
|
156208
|
+
}
|
|
156127
156209
|
var _TossPay = {
|
|
156128
156210
|
checkoutPayment: _checkoutPayment
|
|
156129
156211
|
};
|
|
@@ -156135,24 +156217,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156135
156217
|
};
|
|
156136
156218
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156137
156219
|
var import_private3 = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
|
|
156138
|
-
var
|
|
156220
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156139
156221
|
var import_react_native21 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156140
|
-
var
|
|
156222
|
+
var import_react_native_bedrock18 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156141
156223
|
var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
|
|
156142
156224
|
var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
|
|
156143
156225
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
|
|
156144
156226
|
var import_react_native17 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156145
156227
|
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
|
|
156146
|
-
var
|
|
156228
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156147
156229
|
var import_react_native18 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156148
|
-
var
|
|
156230
|
+
var import_react_native_bedrock14 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156149
156231
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156150
|
-
var
|
|
156232
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156151
156233
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156152
156234
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156153
156235
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
|
|
156154
|
-
var
|
|
156155
|
-
var
|
|
156236
|
+
var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156237
|
+
var import_react_native_bedrock13 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156156
156238
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
|
|
156157
156239
|
var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
|
|
156158
156240
|
var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
|
|
@@ -156206,7 +156288,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156206
156288
|
var getMarketLink = function getMarketLink() {
|
|
156207
156289
|
return import_react_native8.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
156208
156290
|
};
|
|
156209
|
-
var
|
|
156291
|
+
var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156210
156292
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
156211
156293
|
return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
156212
156294
|
}
|
|
@@ -156244,35 +156326,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156244
156326
|
}
|
|
156245
156327
|
}
|
|
156246
156328
|
});
|
|
156247
|
-
(0,
|
|
156329
|
+
(0, import_react_native_bedrock12.openURL)(url.toString());
|
|
156248
156330
|
};
|
|
156249
156331
|
var useGameCenterProfile = function useGameCenterProfile(isReadyForProfileUI) {
|
|
156250
|
-
var _ref14 = (0,
|
|
156332
|
+
var _ref14 = (0, import_react5.useState)(void 0),
|
|
156251
156333
|
_ref15 = _slicedToArray(_ref14, 2),
|
|
156252
156334
|
profileData = _ref15[0],
|
|
156253
156335
|
setProfileData = _ref15[1];
|
|
156254
|
-
var _ref16 = (0,
|
|
156336
|
+
var _ref16 = (0, import_react5.useState)(true),
|
|
156255
156337
|
_ref17 = _slicedToArray(_ref16, 2),
|
|
156256
156338
|
isProfileDataLoading = _ref17[0],
|
|
156257
156339
|
setIsProfileDataLoading = _ref17[1];
|
|
156258
|
-
var _ref18 = (0,
|
|
156340
|
+
var _ref18 = (0, import_react5.useState)(false),
|
|
156259
156341
|
_ref19 = _slicedToArray(_ref18, 2),
|
|
156260
156342
|
isProfileDataRefetching = _ref19[0],
|
|
156261
156343
|
setIsProfileDataRefetching = _ref19[1];
|
|
156262
156344
|
var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
|
|
156263
156345
|
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
156264
156346
|
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
156265
|
-
var _ref20 = (0,
|
|
156347
|
+
var _ref20 = (0, import_react5.useState)(false),
|
|
156266
156348
|
_ref21 = _slicedToArray(_ref20, 2),
|
|
156267
156349
|
isWebviewLoading = _ref21[0],
|
|
156268
156350
|
setIsWebviewLoading = _ref21[1];
|
|
156269
|
-
var isCompletedProfileFlow = (0,
|
|
156351
|
+
var isCompletedProfileFlow = (0, import_react5.useRef)(false);
|
|
156270
156352
|
var _ref22 = (0, import_react_native9.useDialog)(),
|
|
156271
156353
|
openAlert = _ref22.openAlert,
|
|
156272
156354
|
openConfirm = _ref22.openConfirm;
|
|
156273
156355
|
var _useGameProfileToast = useGameProfileToast(),
|
|
156274
156356
|
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
156275
|
-
var openErrorAlert = (0,
|
|
156357
|
+
var openErrorAlert = (0, import_react5.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee() {
|
|
156276
156358
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
156277
156359
|
while (1) switch (_context.prev = _context.next) {
|
|
156278
156360
|
case 0:
|
|
@@ -156282,14 +156364,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156282
156364
|
description: DEFAULT_ERROR.description
|
|
156283
156365
|
});
|
|
156284
156366
|
case 2:
|
|
156285
|
-
(0,
|
|
156367
|
+
(0, import_react_native_bedrock13.closeView)();
|
|
156286
156368
|
case 3:
|
|
156287
156369
|
case "end":
|
|
156288
156370
|
return _context.stop();
|
|
156289
156371
|
}
|
|
156290
156372
|
}, _callee);
|
|
156291
156373
|
})), [openAlert]);
|
|
156292
|
-
var openProfileWebview = (0,
|
|
156374
|
+
var openProfileWebview = (0, import_react5.useCallback)(function () {
|
|
156293
156375
|
if (isWebviewLoading) {
|
|
156294
156376
|
return;
|
|
156295
156377
|
}
|
|
@@ -156341,7 +156423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156341
156423
|
}
|
|
156342
156424
|
});
|
|
156343
156425
|
}, [isWebviewLoading, openGameProfileToast, openErrorAlert]);
|
|
156344
|
-
var updateAppToSupportedMinVersion = (0,
|
|
156426
|
+
var updateAppToSupportedMinVersion = (0, import_react5.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee3() {
|
|
156345
156427
|
var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
|
|
156346
156428
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
156347
156429
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -156364,11 +156446,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156364
156446
|
_context3.next = 7;
|
|
156365
156447
|
break;
|
|
156366
156448
|
}
|
|
156367
|
-
(0,
|
|
156449
|
+
(0, import_react_native_bedrock13.closeView)();
|
|
156368
156450
|
return _context3.abrupt("return");
|
|
156369
156451
|
case 7:
|
|
156370
156452
|
STORE_SCHEME = getMarketLink();
|
|
156371
|
-
(0,
|
|
156453
|
+
(0, import_react_native_bedrock13.openURL)("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
156372
156454
|
case 9:
|
|
156373
156455
|
case "end":
|
|
156374
156456
|
return _context3.stop();
|
|
@@ -156412,7 +156494,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156412
156494
|
setProfileData = _useGameCenterProfile.setProfileData,
|
|
156413
156495
|
openErrorAlert = _useGameCenterProfile.openErrorAlert,
|
|
156414
156496
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
|
|
156415
|
-
(0,
|
|
156497
|
+
(0, import_react6.useEffect)(function () {
|
|
156416
156498
|
try {
|
|
156417
156499
|
var getProfileData = function () {
|
|
156418
156500
|
var _ref26 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -156442,7 +156524,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156442
156524
|
setIsProfileDataLoading(false);
|
|
156443
156525
|
}
|
|
156444
156526
|
}, []);
|
|
156445
|
-
(0,
|
|
156527
|
+
(0, import_react6.useEffect)(function () {
|
|
156446
156528
|
var handleGameProfileFlow = function () {
|
|
156447
156529
|
var _ref27 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5() {
|
|
156448
156530
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -156661,16 +156743,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156661
156743
|
});
|
|
156662
156744
|
}
|
|
156663
156745
|
var import_jsx_runtime6 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
|
|
156664
|
-
var GameWebView = (0,
|
|
156746
|
+
var GameWebView = (0, import_react7.forwardRef)(function GameWebView2(props, ref) {
|
|
156665
156747
|
var _ref30 = (0, import_react_native17.useDialog)(),
|
|
156666
156748
|
openConfirm = _ref30.openConfirm;
|
|
156667
156749
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
156668
156750
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
156669
|
-
var
|
|
156751
|
+
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
156752
|
+
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
156753
|
+
var _ref31 = (0, import_react7.useState)(false),
|
|
156670
156754
|
_ref32 = _slicedToArray(_ref31, 2),
|
|
156671
156755
|
isEntryMessageExited = _ref32[0],
|
|
156672
156756
|
setIsEntryMessageExited = _ref32[1];
|
|
156673
|
-
var handleClose = (0,
|
|
156757
|
+
var handleClose = (0, import_react7.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
|
|
156674
156758
|
var isConfirmed;
|
|
156675
156759
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
156676
156760
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -156685,28 +156769,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156685
156769
|
case 2:
|
|
156686
156770
|
isConfirmed = _context6.sent;
|
|
156687
156771
|
if (isConfirmed) {
|
|
156688
|
-
(
|
|
156772
|
+
captureExitLog(Date.now());
|
|
156773
|
+
(0, import_react_native_bedrock14.closeView)();
|
|
156689
156774
|
}
|
|
156690
156775
|
case 4:
|
|
156691
156776
|
case "end":
|
|
156692
156777
|
return _context6.stop();
|
|
156693
156778
|
}
|
|
156694
156779
|
}, _callee6);
|
|
156695
|
-
})), [brandDisplayName, openConfirm]);
|
|
156696
|
-
(0,
|
|
156780
|
+
})), [brandDisplayName, captureExitLog, openConfirm]);
|
|
156781
|
+
(0, import_react7.useEffect)(function () {
|
|
156697
156782
|
if (import_react_native18.Platform.OS === "ios") {
|
|
156698
|
-
(0,
|
|
156783
|
+
(0, import_react_native_bedrock14.setIosSwipeGestureEnabled)({
|
|
156699
156784
|
isEnabled: false
|
|
156700
156785
|
});
|
|
156701
156786
|
return function () {
|
|
156702
|
-
(0,
|
|
156787
|
+
(0, import_react_native_bedrock14.setIosSwipeGestureEnabled)({
|
|
156703
156788
|
isEnabled: true
|
|
156704
156789
|
});
|
|
156705
156790
|
};
|
|
156706
156791
|
}
|
|
156707
156792
|
return;
|
|
156708
156793
|
}, []);
|
|
156709
|
-
(0,
|
|
156794
|
+
(0, import_react7.useEffect)(function () {
|
|
156710
156795
|
var backHandler = function backHandler() {
|
|
156711
156796
|
handleClose();
|
|
156712
156797
|
return true;
|
|
@@ -156716,7 +156801,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156716
156801
|
import_react_native18.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
156717
156802
|
};
|
|
156718
156803
|
}, [handleClose]);
|
|
156719
|
-
(0,
|
|
156804
|
+
(0, import_react7.useEffect)(function () {
|
|
156720
156805
|
_appsInTossEvent.addEventListener("entryMessageExited", {
|
|
156721
156806
|
onEvent: function onEvent() {
|
|
156722
156807
|
setIsEntryMessageExited(true);
|
|
@@ -156736,7 +156821,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156736
156821
|
}, props))]
|
|
156737
156822
|
});
|
|
156738
156823
|
});
|
|
156739
|
-
var
|
|
156824
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
156740
156825
|
function serializeError(error) {
|
|
156741
156826
|
return JSON.stringify(error, function (_, value) {
|
|
156742
156827
|
if (value instanceof Error) {
|
|
@@ -156797,8 +156882,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156797
156882
|
asyncHandlerMap = _ref36.asyncHandlerMap,
|
|
156798
156883
|
eventListenerMap = _ref36.eventListenerMap,
|
|
156799
156884
|
originalInjectedJavaScript = _ref36.injectedJavaScript;
|
|
156800
|
-
var ref = (0,
|
|
156801
|
-
var injectedJavaScript = (0,
|
|
156885
|
+
var ref = (0, import_react8.useRef)(null);
|
|
156886
|
+
var injectedJavaScript = (0, import_react8.useMemo)(function () {
|
|
156802
156887
|
return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref37) {
|
|
156803
156888
|
var _ref38 = _slicedToArray(_ref37, 2),
|
|
156804
156889
|
key = _ref38[0],
|
|
@@ -156819,7 +156904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156819
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 "));
|
|
156820
156905
|
};
|
|
156821
156906
|
};
|
|
156822
|
-
var $onMessage = (0,
|
|
156907
|
+
var $onMessage = (0, import_react8.useCallback)(function () {
|
|
156823
156908
|
var _ref39 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(e) {
|
|
156824
156909
|
var data, _eventListenerMap$dat, handleOnEvent, handleOnError, remove, key, _remove, _ref$current3;
|
|
156825
156910
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
@@ -156893,12 +156978,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156893
156978
|
});
|
|
156894
156979
|
var event_bridges_exports = {};
|
|
156895
156980
|
__export(event_bridges_exports, {
|
|
156981
|
+
contactsViral: function contactsViral() {
|
|
156982
|
+
return _contactsViral;
|
|
156983
|
+
},
|
|
156896
156984
|
startUpdateLocation: function startUpdateLocation() {
|
|
156897
156985
|
return _startUpdateLocation;
|
|
156898
156986
|
}
|
|
156899
156987
|
});
|
|
156900
156988
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[4], "react-native");
|
|
156901
|
-
var
|
|
156989
|
+
var import_react_native_bedrock15 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
156902
156990
|
var FontA11yCategory = {
|
|
156903
156991
|
Large: "Large",
|
|
156904
156992
|
xLarge: "xLarge",
|
|
@@ -157061,7 +157149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157061
157149
|
pureSafeArea = _ref40.pureSafeArea,
|
|
157062
157150
|
safeArea = _ref40.safeArea,
|
|
157063
157151
|
safeAreaBottomTransparency = _ref40.safeAreaBottomTransparency;
|
|
157064
|
-
var platform = (0,
|
|
157152
|
+
var platform = (0, import_react_native_bedrock15.getPlatformOS)();
|
|
157065
157153
|
var appVersion = _getTossAppVersion();
|
|
157066
157154
|
var _ref41 = (0, import_react_native19.useWindowDimensions)(),
|
|
157067
157155
|
fontScale = _ref41.fontScale;
|
|
@@ -157070,18 +157158,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157070
157158
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
157071
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(" ");
|
|
157072
157160
|
}
|
|
157073
|
-
var
|
|
157074
|
-
var
|
|
157161
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[3], "react");
|
|
157162
|
+
var import_react_native_bedrock16 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
157075
157163
|
function _useGeolocation(_ref42) {
|
|
157076
157164
|
var accuracy = _ref42.accuracy,
|
|
157077
157165
|
distanceInterval = _ref42.distanceInterval,
|
|
157078
157166
|
timeInterval = _ref42.timeInterval;
|
|
157079
|
-
var isVisible = (0,
|
|
157080
|
-
var _ref43 = (0,
|
|
157167
|
+
var isVisible = (0, import_react_native_bedrock16.useVisibility)();
|
|
157168
|
+
var _ref43 = (0, import_react9.useState)(null),
|
|
157081
157169
|
_ref44 = _slicedToArray(_ref43, 2),
|
|
157082
157170
|
location = _ref44[0],
|
|
157083
157171
|
setLocation = _ref44[1];
|
|
157084
|
-
(0,
|
|
157172
|
+
(0, import_react9.useEffect)(function () {
|
|
157085
157173
|
if (!isVisible) {
|
|
157086
157174
|
return;
|
|
157087
157175
|
}
|
|
@@ -157097,7 +157185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157097
157185
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
157098
157186
|
return location;
|
|
157099
157187
|
}
|
|
157100
|
-
var
|
|
157188
|
+
var import_react_native_bedrock17 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
|
|
157101
157189
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
157102
157190
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
157103
157191
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -157119,7 +157207,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157119
157207
|
};
|
|
157120
157208
|
var getReferrer = function getReferrer() {
|
|
157121
157209
|
try {
|
|
157122
|
-
var referrer = new URL((0,
|
|
157210
|
+
var referrer = new URL((0, import_react_native_bedrock17.getSchemeUri)());
|
|
157123
157211
|
return referrer.searchParams.get("referrer");
|
|
157124
157212
|
} catch (_unused4) {
|
|
157125
157213
|
return "";
|
|
@@ -157152,7 +157240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157152
157240
|
};
|
|
157153
157241
|
function mergeSchemeQueryParamsInto(url) {
|
|
157154
157242
|
var baseUrl = new URL(url);
|
|
157155
|
-
var schemeUrl = new URL((0,
|
|
157243
|
+
var schemeUrl = new URL((0, import_react_native_bedrock18.getSchemeUri)());
|
|
157156
157244
|
baseUrl.pathname = schemeUrl.pathname;
|
|
157157
157245
|
var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
|
|
157158
157246
|
_step5;
|
|
@@ -157192,8 +157280,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157192
157280
|
if (!TYPES.includes(type)) {
|
|
157193
157281
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
157194
157282
|
}
|
|
157195
|
-
var bedrockEvent = (0,
|
|
157196
|
-
var uri = (0,
|
|
157283
|
+
var bedrockEvent = (0, import_react_native_bedrock18.useBedrockEvent)();
|
|
157284
|
+
var uri = (0, import_react10.useMemo)(function () {
|
|
157197
157285
|
return getWebViewUri(local);
|
|
157198
157286
|
}, [local]);
|
|
157199
157287
|
var top = (0, import_private3.useSafeAreaTop)();
|
|
@@ -157319,7 +157407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157319
157407
|
iapGetProductItemList: _IAP.getProductItemList
|
|
157320
157408
|
})
|
|
157321
157409
|
});
|
|
157322
|
-
var baseProps = (0,
|
|
157410
|
+
var baseProps = (0, import_react10.useMemo)(function () {
|
|
157323
157411
|
switch (type) {
|
|
157324
157412
|
case "partner":
|
|
157325
157413
|
{
|
|
@@ -157349,7 +157437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157349
157437
|
}, [type, props]);
|
|
157350
157438
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
157351
157439
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
157352
|
-
var handleNavigationStateChange = (0,
|
|
157440
|
+
var handleNavigationStateChange = (0, import_react10.useCallback)(function (event) {
|
|
157353
157441
|
if (event.url) {
|
|
157354
157442
|
trackScreen(event.url);
|
|
157355
157443
|
}
|
|
@@ -157411,6 +157499,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157411
157499
|
WebView: _WebView,
|
|
157412
157500
|
appLogin: _appLogin,
|
|
157413
157501
|
appsInTossEvent: _appsInTossEvent,
|
|
157502
|
+
contactsViral: _contactsViral,
|
|
157414
157503
|
env: _env,
|
|
157415
157504
|
eventLog: _eventLog,
|
|
157416
157505
|
fetchAlbumPhotos: _fetchAlbumPhotos,
|
|
@@ -225788,7 +225877,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225788
225877
|
}
|
|
225789
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");
|
|
225790
225879
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225791
|
-
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({
|
|
225792
225881
|
"__packager_asset": true,
|
|
225793
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",
|
|
225794
225883
|
"width": 24,
|
|
@@ -225800,7 +225889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
225800
225889
|
});
|
|
225801
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");
|
|
225802
225891
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
225803
|
-
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({
|
|
225804
225893
|
"__packager_asset": true,
|
|
225805
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",
|
|
225806
225895
|
"width": 50,
|