@apps-in-toss/web-framework 2.4.2 → 2.4.3
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.rn84.js +488 -558
- package/dist/prebuilt/dev.ios.rn84.js +488 -558
- package/dist/prebuilt/prod.android.rn72.js +169 -244
- package/dist/prebuilt/prod.android.rn84.js +169 -244
- package/dist/prebuilt/prod.ios.rn72.js +169 -244
- package/dist/prebuilt/prod.ios.rn84.js +169 -244
- package/package.json +8 -8
|
@@ -137037,140 +137037,72 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137037
137037
|
module.exports = __toCommonJS(src_exports);
|
|
137038
137038
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
137039
137039
|
var import_analytics = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
137040
|
-
var
|
|
137041
|
-
var
|
|
137040
|
+
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137041
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137042
137042
|
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137043
|
-
var
|
|
137044
|
-
var
|
|
137045
|
-
var
|
|
137046
|
-
var import_react3 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137043
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137044
|
+
var import_react_native2 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137045
|
+
var import_react = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137047
137046
|
var env = {
|
|
137048
137047
|
getDeploymentId: () => __DEV__ ? "local" : global.__appsInToss?.deploymentId,
|
|
137049
137048
|
getWebViewType: () => global.__appsInToss.webViewType,
|
|
137050
137049
|
getAppName: () => global.__granite.app.name
|
|
137051
137050
|
};
|
|
137052
|
-
var import_native_modules = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137053
|
-
var import_react_native3 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137054
|
-
var import_react2 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137055
137051
|
var import_react_native = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137056
|
-
var import_react = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137057
|
-
function useReferrer() {
|
|
137058
|
-
return (0, import_react.useMemo)(() => {
|
|
137059
|
-
try {
|
|
137060
|
-
return new URL((0, import_react_native.getSchemeUri)()).searchParams.get("referrer");
|
|
137061
|
-
} catch {
|
|
137062
|
-
return null;
|
|
137063
|
-
}
|
|
137064
|
-
}, []);
|
|
137065
|
-
}
|
|
137066
|
-
var import_react_native2 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137067
137052
|
function isPrivateScheme() {
|
|
137068
137053
|
try {
|
|
137069
|
-
return new URL((0,
|
|
137054
|
+
return new URL((0, import_react_native.getSchemeUri)()).protocol === "intoss-private:";
|
|
137070
137055
|
} catch {
|
|
137071
137056
|
return false;
|
|
137072
137057
|
}
|
|
137073
137058
|
}
|
|
137074
|
-
var
|
|
137075
|
-
var
|
|
137076
|
-
function
|
|
137077
|
-
var
|
|
137078
|
-
|
|
137079
|
-
|
|
137080
|
-
(
|
|
137081
|
-
|
|
137082
|
-
|
|
137083
|
-
|
|
137084
|
-
|
|
137085
|
-
|
|
137086
|
-
if (enterTime.current == null) {
|
|
137087
|
-
return;
|
|
137088
|
-
}
|
|
137089
|
-
var stayTime = Math.floor(exitTime - enterTime.current);
|
|
137090
|
-
import_native_modules.INTERNAL__module.tossCoreEventLog({
|
|
137091
|
-
log_name: EXIT_IMPRESSION_LOG_NAME,
|
|
137092
|
-
log_type: "event",
|
|
137093
|
-
params: {
|
|
137094
|
-
schema_id: EXIT_IMPRESSION_SCHEMA_ID,
|
|
137095
|
-
event_type: "impression",
|
|
137096
|
-
referrer,
|
|
137097
|
-
deployment_id: env.getDeploymentId(),
|
|
137098
|
-
app_name: import_react_native3.Granite.appName,
|
|
137099
|
-
is_private: isPrivateScheme(),
|
|
137100
|
-
stay_time: stayTime.toString(),
|
|
137101
|
-
exit_time: exitTime.toString()
|
|
137102
|
-
}
|
|
137103
|
-
});
|
|
137104
|
-
enterTime.current = void 0;
|
|
137105
|
-
}, [referrer]);
|
|
137106
|
-
return {
|
|
137107
|
-
captureExitLog
|
|
137108
|
-
};
|
|
137109
|
-
}
|
|
137110
|
-
var ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
137111
|
-
function EntryAppEvent() {
|
|
137112
|
-
var referrer = useReferrer() ?? "";
|
|
137113
|
-
(0, import_react3.useEffect)(() => {
|
|
137114
|
-
import_native_modules2.INTERNAL__module.tossCoreEventLog({
|
|
137115
|
-
log_name: "appsintoss_app_visit::impression__enter_appsintoss",
|
|
137116
|
-
log_type: "info",
|
|
137117
|
-
params: {
|
|
137118
|
-
is_transform: true,
|
|
137119
|
-
schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
|
|
137120
|
-
referrer,
|
|
137121
|
-
deployment_id: env.getDeploymentId(),
|
|
137122
|
-
app_name: import_react_native4.Granite.appName,
|
|
137123
|
-
is_private: isPrivateScheme()
|
|
137124
|
-
}
|
|
137125
|
-
});
|
|
137126
|
-
}, [referrer]);
|
|
137127
|
-
return null;
|
|
137059
|
+
var import_native_modules = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137060
|
+
var DEFAULT_PIPELINES = ["core", "partner"];
|
|
137061
|
+
function sendLog(logData, options) {
|
|
137062
|
+
var _ref = options ?? {},
|
|
137063
|
+
_ref$pipelines = _ref.pipelines,
|
|
137064
|
+
pipelines = _ref$pipelines === void 0 ? DEFAULT_PIPELINES : _ref$pipelines;
|
|
137065
|
+
if (pipelines.includes("core")) {
|
|
137066
|
+
import_native_modules.INTERNAL__module.tossCoreEventLog(logData);
|
|
137067
|
+
}
|
|
137068
|
+
if (pipelines.includes("partner")) {
|
|
137069
|
+
(0, import_native_modules.eventLog)(logData);
|
|
137070
|
+
}
|
|
137128
137071
|
}
|
|
137129
137072
|
function SystemAppEvent({
|
|
137130
137073
|
...initialProps
|
|
137131
137074
|
}) {
|
|
137132
|
-
(0,
|
|
137133
|
-
|
|
137075
|
+
(0, import_react.useEffect)(() => {
|
|
137076
|
+
sendLog({
|
|
137134
137077
|
log_name: "AppsInTossInitialProps",
|
|
137135
137078
|
log_type: "debug",
|
|
137136
137079
|
params: {
|
|
137137
137080
|
...initialProps,
|
|
137138
|
-
schemeUri: (0,
|
|
137081
|
+
schemeUri: (0, import_react_native2.getSchemeUri)(),
|
|
137139
137082
|
deployment_id: env.getDeploymentId(),
|
|
137140
|
-
app_name:
|
|
137083
|
+
app_name: import_react_native2.Granite.appName,
|
|
137141
137084
|
is_private: isPrivateScheme()
|
|
137142
137085
|
}
|
|
137086
|
+
}, {
|
|
137087
|
+
pipelines: ["core"]
|
|
137143
137088
|
});
|
|
137144
137089
|
}, [initialProps]);
|
|
137145
137090
|
return null;
|
|
137146
137091
|
}
|
|
137147
|
-
function StayTimeAppEvent() {
|
|
137148
|
-
var visible = (0, import_react_native4.useVisibility)();
|
|
137149
|
-
var _useCaptureExitLog = useCaptureExitLog(),
|
|
137150
|
-
captureExitLog = _useCaptureExitLog.captureExitLog;
|
|
137151
|
-
(0, import_react3.useEffect)(() => {
|
|
137152
|
-
if (visible === false) {
|
|
137153
|
-
captureExitLog(Date.now());
|
|
137154
|
-
}
|
|
137155
|
-
}, [visible, captureExitLog]);
|
|
137156
|
-
return null;
|
|
137157
|
-
}
|
|
137158
137092
|
var AppEvent = {
|
|
137159
|
-
|
|
137160
|
-
System: SystemAppEvent,
|
|
137161
|
-
StayTime: StayTimeAppEvent
|
|
137093
|
+
System: SystemAppEvent
|
|
137162
137094
|
};
|
|
137163
|
-
var
|
|
137164
|
-
var
|
|
137095
|
+
var import_react_native3 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137096
|
+
var import_react2 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137165
137097
|
var import_jsx_runtime = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137166
137098
|
var UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
|
|
137167
137099
|
function AppUpdate() {
|
|
137168
|
-
(0,
|
|
137169
|
-
(0,
|
|
137100
|
+
(0, import_react2.useEffect)(() => {
|
|
137101
|
+
(0, import_react_native3.openURL)(`supertoss://closePage?url=${UPDATE_SCHEME}`);
|
|
137170
137102
|
}, []);
|
|
137171
137103
|
return (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
|
|
137172
137104
|
}
|
|
137173
|
-
var
|
|
137105
|
+
var import_react3 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137174
137106
|
function getAppsInTossGlobals() {
|
|
137175
137107
|
if (global.__appsInToss == null) {
|
|
137176
137108
|
throw new Error("invalid apps-in-toss globals");
|
|
@@ -137188,16 +137120,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137188
137120
|
}
|
|
137189
137121
|
}
|
|
137190
137122
|
var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137191
|
-
var NavigationBarContext = (0,
|
|
137123
|
+
var NavigationBarContext = (0, import_react3.createContext)(null);
|
|
137192
137124
|
function NavigationBarContextProvider({
|
|
137193
137125
|
children
|
|
137194
137126
|
}) {
|
|
137195
137127
|
var globals = getAppsInTossGlobals();
|
|
137196
137128
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
137197
|
-
var
|
|
137198
|
-
|
|
137199
|
-
navigationRightButton =
|
|
137200
|
-
setNavigationRightButton =
|
|
137129
|
+
var _ref2 = (0, import_react3.useState)(parsedNavigationBar?.initialAccessoryButton),
|
|
137130
|
+
_ref3 = _slicedToArray(_ref2, 2),
|
|
137131
|
+
navigationRightButton = _ref3[0],
|
|
137132
|
+
setNavigationRightButton = _ref3[1];
|
|
137201
137133
|
var addNavigationRightButton = button => {
|
|
137202
137134
|
setNavigationRightButton(button);
|
|
137203
137135
|
};
|
|
@@ -137214,42 +137146,52 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137214
137146
|
});
|
|
137215
137147
|
}
|
|
137216
137148
|
function useNavigationBarContext() {
|
|
137217
|
-
var context = (0,
|
|
137149
|
+
var context = (0, import_react3.useContext)(NavigationBarContext);
|
|
137218
137150
|
if (context == null) {
|
|
137219
137151
|
throw Error("useNavigationBarContext must be used within NavigationBarContextProvider");
|
|
137220
137152
|
}
|
|
137221
137153
|
return context;
|
|
137222
137154
|
}
|
|
137223
|
-
var
|
|
137224
|
-
var
|
|
137225
|
-
var
|
|
137226
|
-
var
|
|
137227
|
-
var
|
|
137155
|
+
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137156
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137157
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137158
|
+
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137159
|
+
var import_react_native9 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137228
137160
|
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137229
137161
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
137230
|
-
var
|
|
137231
|
-
var
|
|
137162
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137163
|
+
var import_react_native10 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137232
137164
|
var GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
137233
137165
|
var GAME_MIN_VERSION = {
|
|
137234
137166
|
android: "5.232.0",
|
|
137235
137167
|
ios: "5.232.0"
|
|
137236
137168
|
};
|
|
137237
|
-
var
|
|
137238
|
-
var import_react_native7 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137169
|
+
var import_react_native6 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137239
137170
|
var import_tds_react_native = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137240
|
-
var
|
|
137241
|
-
var
|
|
137171
|
+
var import_react5 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137172
|
+
var import_react_native4 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137173
|
+
var import_react4 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137174
|
+
function useReferrer() {
|
|
137175
|
+
return (0, import_react4.useMemo)(() => {
|
|
137176
|
+
try {
|
|
137177
|
+
return new URL((0, import_react_native4.getSchemeUri)()).searchParams.get("referrer");
|
|
137178
|
+
} catch {
|
|
137179
|
+
return null;
|
|
137180
|
+
}
|
|
137181
|
+
}, []);
|
|
137182
|
+
}
|
|
137183
|
+
var import_react_native5 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137242
137184
|
var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
137243
137185
|
var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
137244
137186
|
var getMarketLink = () => {
|
|
137245
|
-
return
|
|
137187
|
+
return import_react_native5.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
137246
137188
|
};
|
|
137247
137189
|
function useAppUpdateDialog() {
|
|
137248
|
-
var
|
|
137249
|
-
openConfirm =
|
|
137190
|
+
var _ref4 = (0, import_tds_react_native.useDialog)(),
|
|
137191
|
+
openConfirm = _ref4.openConfirm;
|
|
137250
137192
|
var logging = useAppUpdateDialogLogging();
|
|
137251
|
-
var openAppUpdateDialog = (0,
|
|
137252
|
-
var
|
|
137193
|
+
var openAppUpdateDialog = (0, import_react5.useCallback)(function () {
|
|
137194
|
+
var _ref5 = _asyncToGenerator(function* ({
|
|
137253
137195
|
title,
|
|
137254
137196
|
description,
|
|
137255
137197
|
leftButton = "\uB2EB\uAE30",
|
|
@@ -137271,10 +137213,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137271
137213
|
}
|
|
137272
137214
|
logging.update();
|
|
137273
137215
|
var STORE_SCHEME = getMarketLink();
|
|
137274
|
-
(0,
|
|
137216
|
+
(0, import_react_native6.openURL)(`supertoss://web?url=${STORE_SCHEME}&external=browser`);
|
|
137275
137217
|
});
|
|
137276
137218
|
return function (_x) {
|
|
137277
|
-
return
|
|
137219
|
+
return _ref5.apply(this, arguments);
|
|
137278
137220
|
};
|
|
137279
137221
|
}(), [logging, openConfirm]);
|
|
137280
137222
|
return {
|
|
@@ -137289,10 +137231,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137289
137231
|
var referrer = useReferrer();
|
|
137290
137232
|
var baseParams = {
|
|
137291
137233
|
referrer,
|
|
137292
|
-
app_name:
|
|
137234
|
+
app_name: import_react_native6.Granite.appName
|
|
137293
137235
|
};
|
|
137294
137236
|
var logUpdateClick = () => {
|
|
137295
|
-
|
|
137237
|
+
sendLog({
|
|
137296
137238
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
137297
137239
|
log_type: "event",
|
|
137298
137240
|
params: {
|
|
@@ -137304,7 +137246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137304
137246
|
});
|
|
137305
137247
|
};
|
|
137306
137248
|
var logCloseClick = () => {
|
|
137307
|
-
|
|
137249
|
+
sendLog({
|
|
137308
137250
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
137309
137251
|
log_type: "event",
|
|
137310
137252
|
params: {
|
|
@@ -137316,7 +137258,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137316
137258
|
});
|
|
137317
137259
|
};
|
|
137318
137260
|
var logDialogShow = () => {
|
|
137319
|
-
|
|
137261
|
+
sendLog({
|
|
137320
137262
|
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
137321
137263
|
log_type: "popup",
|
|
137322
137264
|
params: {
|
|
@@ -137331,33 +137273,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137331
137273
|
show: logDialogShow
|
|
137332
137274
|
};
|
|
137333
137275
|
}
|
|
137334
|
-
var
|
|
137335
|
-
var
|
|
137336
|
-
var
|
|
137276
|
+
var import_native_modules3 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137277
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137278
|
+
var import_react_native7 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137337
137279
|
var import_tds_react_native2 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137338
|
-
var
|
|
137280
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137339
137281
|
var DEFAULT_ERROR = {
|
|
137340
137282
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
137341
137283
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
137342
137284
|
};
|
|
137343
137285
|
var useErrorAlert = () => {
|
|
137344
|
-
var
|
|
137345
|
-
openAlert =
|
|
137346
|
-
var openErrorAlert = (0,
|
|
137286
|
+
var _ref6 = (0, import_tds_react_native2.useDialog)(),
|
|
137287
|
+
openAlert = _ref6.openAlert;
|
|
137288
|
+
var openErrorAlert = (0, import_react6.useCallback)(_asyncToGenerator(function* () {
|
|
137347
137289
|
yield openAlert({
|
|
137348
137290
|
title: DEFAULT_ERROR.title,
|
|
137349
137291
|
description: DEFAULT_ERROR.description
|
|
137350
137292
|
});
|
|
137351
|
-
(0,
|
|
137293
|
+
(0, import_react_native7.closeView)();
|
|
137352
137294
|
}), [openAlert]);
|
|
137353
137295
|
return {
|
|
137354
137296
|
open: openErrorAlert
|
|
137355
137297
|
};
|
|
137356
137298
|
};
|
|
137357
|
-
var
|
|
137358
|
-
var
|
|
137359
|
-
var
|
|
137360
|
-
var INTERNAL__onVisibilityChangedByTransparentServiceWeb =
|
|
137299
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137300
|
+
var import_react_native8 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137301
|
+
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137302
|
+
var INTERNAL__onVisibilityChangedByTransparentServiceWeb = import_native_modules2.onVisibilityChangedByTransparentServiceWeb;
|
|
137361
137303
|
var openTransparentWebView = ({
|
|
137362
137304
|
webUrl,
|
|
137363
137305
|
cleanupWhenDismissed = true,
|
|
@@ -137387,16 +137329,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137387
137329
|
}
|
|
137388
137330
|
}
|
|
137389
137331
|
});
|
|
137390
|
-
(0,
|
|
137332
|
+
(0, import_react_native8.openURL)(url.toString());
|
|
137391
137333
|
};
|
|
137392
137334
|
var useTransparentWebview = () => {
|
|
137393
|
-
var
|
|
137394
|
-
|
|
137395
|
-
isWebviewLoading =
|
|
137396
|
-
setIsWebviewLoading =
|
|
137335
|
+
var _ref8 = (0, import_react7.useState)(false),
|
|
137336
|
+
_ref9 = _slicedToArray(_ref8, 2),
|
|
137337
|
+
isWebviewLoading = _ref9[0],
|
|
137338
|
+
setIsWebviewLoading = _ref9[1];
|
|
137397
137339
|
var _useErrorAlert = useErrorAlert(),
|
|
137398
137340
|
openErrorAlert = _useErrorAlert.open;
|
|
137399
|
-
var _openTransparentWebview = (0,
|
|
137341
|
+
var _openTransparentWebview = (0, import_react7.useCallback)(({
|
|
137400
137342
|
webUrl,
|
|
137401
137343
|
onClose,
|
|
137402
137344
|
onError
|
|
@@ -137408,14 +137350,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137408
137350
|
openTransparentWebView({
|
|
137409
137351
|
webUrl,
|
|
137410
137352
|
onEvent: function () {
|
|
137411
|
-
var
|
|
137353
|
+
var _ref0 = _asyncToGenerator(function* (isClosedTransparentWebView) {
|
|
137412
137354
|
if (isClosedTransparentWebView) {
|
|
137413
137355
|
setIsWebviewLoading(false);
|
|
137414
137356
|
onClose?.();
|
|
137415
137357
|
}
|
|
137416
137358
|
});
|
|
137417
137359
|
return function onEvent(_x2) {
|
|
137418
|
-
return
|
|
137360
|
+
return _ref0.apply(this, arguments);
|
|
137419
137361
|
};
|
|
137420
137362
|
}(),
|
|
137421
137363
|
onError: error => {
|
|
@@ -137434,11 +137376,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137434
137376
|
};
|
|
137435
137377
|
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137436
137378
|
var import_private2 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137437
|
-
var
|
|
137379
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137438
137380
|
var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137439
137381
|
var useGameProfileToast = () => {
|
|
137440
137382
|
var overlay = (0, import_private2.useOverlay)();
|
|
137441
|
-
var openGameProfileToast = (0,
|
|
137383
|
+
var openGameProfileToast = (0, import_react8.useCallback)((nickname, profileImageUri) => {
|
|
137442
137384
|
return new Promise(resolve => {
|
|
137443
137385
|
overlay.open(({
|
|
137444
137386
|
isOpen,
|
|
@@ -137478,18 +137420,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137478
137420
|
};
|
|
137479
137421
|
};
|
|
137480
137422
|
var useGameCenterProfile = () => {
|
|
137481
|
-
var
|
|
137482
|
-
|
|
137483
|
-
profileData =
|
|
137484
|
-
setProfileData =
|
|
137485
|
-
var
|
|
137486
|
-
|
|
137487
|
-
isProfileDataLoading =
|
|
137488
|
-
setIsProfileDataLoading =
|
|
137489
|
-
var
|
|
137490
|
-
|
|
137491
|
-
isProfileDataRefetching =
|
|
137492
|
-
setIsProfileDataRefetching =
|
|
137423
|
+
var _ref1 = (0, import_react9.useState)(void 0),
|
|
137424
|
+
_ref10 = _slicedToArray(_ref1, 2),
|
|
137425
|
+
profileData = _ref10[0],
|
|
137426
|
+
setProfileData = _ref10[1];
|
|
137427
|
+
var _ref11 = (0, import_react9.useState)(true),
|
|
137428
|
+
_ref12 = _slicedToArray(_ref11, 2),
|
|
137429
|
+
isProfileDataLoading = _ref12[0],
|
|
137430
|
+
setIsProfileDataLoading = _ref12[1];
|
|
137431
|
+
var _ref13 = (0, import_react9.useState)(false),
|
|
137432
|
+
_ref14 = _slicedToArray(_ref13, 2),
|
|
137433
|
+
isProfileDataRefetching = _ref14[0],
|
|
137434
|
+
setIsProfileDataRefetching = _ref14[1];
|
|
137493
137435
|
var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
|
|
137494
137436
|
var shouldShowProfileNotFoundOverlay = profileData?.statusCode === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
|
|
137495
137437
|
var canShowBottomSheetOrToast = !isProfileDataLoading;
|
|
@@ -137499,9 +137441,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137499
137441
|
openErrorAlert = _useErrorAlert2.open;
|
|
137500
137442
|
var _useTransparentWebvie = useTransparentWebview(),
|
|
137501
137443
|
openTransparentWebView2 = _useTransparentWebvie.open;
|
|
137502
|
-
var fetchProfileData = (0,
|
|
137444
|
+
var fetchProfileData = (0, import_react9.useCallback)(_asyncToGenerator(function* () {
|
|
137503
137445
|
try {
|
|
137504
|
-
var data = yield (0,
|
|
137446
|
+
var data = yield (0, import_native_modules3.getGameCenterGameProfile)();
|
|
137505
137447
|
setProfileData(data);
|
|
137506
137448
|
setIsProfileDataLoading(false);
|
|
137507
137449
|
} catch (_) {
|
|
@@ -137509,10 +137451,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137509
137451
|
setIsProfileDataLoading(false);
|
|
137510
137452
|
}
|
|
137511
137453
|
}), [openErrorAlert]);
|
|
137512
|
-
var refetchProfileData = (0,
|
|
137454
|
+
var refetchProfileData = (0, import_react9.useCallback)(_asyncToGenerator(function* () {
|
|
137513
137455
|
try {
|
|
137514
137456
|
setIsProfileDataRefetching(true);
|
|
137515
|
-
var data = yield (0,
|
|
137457
|
+
var data = yield (0, import_native_modules3.getGameCenterGameProfile)();
|
|
137516
137458
|
setProfileData(data);
|
|
137517
137459
|
setIsProfileDataRefetching(false);
|
|
137518
137460
|
if (data?.statusCode === "SUCCESS") {
|
|
@@ -137523,15 +137465,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137523
137465
|
openErrorAlert();
|
|
137524
137466
|
}
|
|
137525
137467
|
}), [openErrorAlert, openGameProfileToast]);
|
|
137526
|
-
var openProfileWebview = (0,
|
|
137468
|
+
var openProfileWebview = (0, import_react9.useCallback)(() => {
|
|
137527
137469
|
openTransparentWebView2({
|
|
137528
137470
|
webUrl: `${GAME_PROFILE_WEBVIEW_URL}?appName=${getAppName()}&referrer=appsintoss.${getAppName()}`,
|
|
137529
137471
|
onClose: function () {
|
|
137530
|
-
var
|
|
137472
|
+
var _ref17 = _asyncToGenerator(function* () {
|
|
137531
137473
|
refetchProfileData();
|
|
137532
137474
|
});
|
|
137533
137475
|
return function onClose() {
|
|
137534
|
-
return
|
|
137476
|
+
return _ref17.apply(this, arguments);
|
|
137535
137477
|
};
|
|
137536
137478
|
}()
|
|
137537
137479
|
});
|
|
@@ -137566,15 +137508,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137566
137508
|
openProfileWebview = _useGameCenterProfile.openProfileWebview,
|
|
137567
137509
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast,
|
|
137568
137510
|
fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
137569
|
-
var isCompletedFlow = (0,
|
|
137511
|
+
var isCompletedFlow = (0, import_react10.useRef)(false);
|
|
137570
137512
|
var _useAppUpdateDialog = useAppUpdateDialog(),
|
|
137571
137513
|
openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
137572
|
-
(0,
|
|
137514
|
+
(0, import_react10.useEffect)(() => {
|
|
137573
137515
|
fetchProfileData();
|
|
137574
137516
|
}, []);
|
|
137575
|
-
(0,
|
|
137517
|
+
(0, import_react10.useEffect)(() => {
|
|
137576
137518
|
var handleGameProfileFlow = function () {
|
|
137577
|
-
var
|
|
137519
|
+
var _ref18 = _asyncToGenerator(function* () {
|
|
137578
137520
|
if (!canShowBottomSheetOrToast) {
|
|
137579
137521
|
return;
|
|
137580
137522
|
}
|
|
@@ -137582,12 +137524,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137582
137524
|
return;
|
|
137583
137525
|
}
|
|
137584
137526
|
isCompletedFlow.current = true;
|
|
137585
|
-
if (!(0,
|
|
137527
|
+
if (!(0, import_native_modules4.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
137586
137528
|
openAppUpdateDialog({
|
|
137587
137529
|
title: `${(0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C")} \uD558\uB824\uBA74
|
|
137588
137530
|
\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694`,
|
|
137589
137531
|
onDismiss: () => {
|
|
137590
|
-
(0,
|
|
137532
|
+
(0, import_react_native9.closeView)();
|
|
137591
137533
|
}
|
|
137592
137534
|
});
|
|
137593
137535
|
return;
|
|
@@ -137601,20 +137543,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137601
137543
|
}
|
|
137602
137544
|
});
|
|
137603
137545
|
return function handleGameProfileFlow() {
|
|
137604
|
-
return
|
|
137546
|
+
return _ref18.apply(this, arguments);
|
|
137605
137547
|
};
|
|
137606
137548
|
}();
|
|
137607
137549
|
handleGameProfileFlow();
|
|
137608
137550
|
}, [canShowBottomSheetOrToast, isCompletedFlow, openAppUpdateDialog, openGameProfileToast, openProfileWebview, profileData]);
|
|
137609
|
-
if (!(0,
|
|
137551
|
+
if (!(0, import_native_modules4.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
137610
137552
|
return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
|
|
137611
|
-
children: [(0, import_jsx_runtime4.jsx)(
|
|
137553
|
+
children: [(0, import_jsx_runtime4.jsx)(import_react_native10.View, {
|
|
137612
137554
|
style: {
|
|
137613
137555
|
flex: 1,
|
|
137614
137556
|
position: "relative"
|
|
137615
137557
|
},
|
|
137616
137558
|
children
|
|
137617
|
-
}), (0, import_jsx_runtime4.jsx)(
|
|
137559
|
+
}), (0, import_jsx_runtime4.jsx)(import_react_native10.Pressable, {
|
|
137618
137560
|
style: {
|
|
137619
137561
|
...overlayStyle
|
|
137620
137562
|
},
|
|
@@ -137623,7 +137565,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137623
137565
|
title: `${(0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C")} \uD558\uB824\uBA74
|
|
137624
137566
|
\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694`,
|
|
137625
137567
|
onDismiss: () => {
|
|
137626
|
-
(0,
|
|
137568
|
+
(0, import_react_native9.closeView)();
|
|
137627
137569
|
}
|
|
137628
137570
|
});
|
|
137629
137571
|
}
|
|
@@ -137632,13 +137574,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137632
137574
|
}
|
|
137633
137575
|
if (shouldShowProfileLoadingOverlay) {
|
|
137634
137576
|
return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
|
|
137635
|
-
children: [(0, import_jsx_runtime4.jsx)(
|
|
137577
|
+
children: [(0, import_jsx_runtime4.jsx)(import_react_native10.View, {
|
|
137636
137578
|
style: {
|
|
137637
137579
|
flex: 1,
|
|
137638
137580
|
position: "relative"
|
|
137639
137581
|
},
|
|
137640
137582
|
children
|
|
137641
|
-
}), (0, import_jsx_runtime4.jsx)(
|
|
137583
|
+
}), (0, import_jsx_runtime4.jsx)(import_react_native10.View, {
|
|
137642
137584
|
style: {
|
|
137643
137585
|
...overlayStyle,
|
|
137644
137586
|
justifyContent: "center",
|
|
@@ -137654,13 +137596,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137654
137596
|
}
|
|
137655
137597
|
if (shouldShowProfileNotFoundOverlay) {
|
|
137656
137598
|
return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
|
|
137657
|
-
children: [(0, import_jsx_runtime4.jsx)(
|
|
137599
|
+
children: [(0, import_jsx_runtime4.jsx)(import_react_native10.View, {
|
|
137658
137600
|
style: {
|
|
137659
137601
|
flex: 1,
|
|
137660
137602
|
position: "relative"
|
|
137661
137603
|
},
|
|
137662
137604
|
children
|
|
137663
|
-
}), shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime4.jsx)(
|
|
137605
|
+
}), shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime4.jsx)(import_react_native10.Pressable, {
|
|
137664
137606
|
style: {
|
|
137665
137607
|
...overlayStyle
|
|
137666
137608
|
},
|
|
@@ -137671,7 +137613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137671
137613
|
});
|
|
137672
137614
|
}
|
|
137673
137615
|
return (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {
|
|
137674
|
-
children: (0, import_jsx_runtime4.jsx)(
|
|
137616
|
+
children: (0, import_jsx_runtime4.jsx)(import_react_native10.View, {
|
|
137675
137617
|
style: {
|
|
137676
137618
|
flex: 1,
|
|
137677
137619
|
position: "relative"
|
|
@@ -137689,30 +137631,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137689
137631
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
137690
137632
|
};
|
|
137691
137633
|
var import_private5 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137692
|
-
var
|
|
137693
|
-
var
|
|
137634
|
+
var import_react11 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137635
|
+
var import_react_native11 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137694
137636
|
function useHardwareBackPress(handler) {
|
|
137695
|
-
(0,
|
|
137637
|
+
(0, import_react11.useEffect)(() => {
|
|
137696
137638
|
var handleBackPress = () => {
|
|
137697
137639
|
handler();
|
|
137698
137640
|
return true;
|
|
137699
137641
|
};
|
|
137700
|
-
var backHandler =
|
|
137642
|
+
var backHandler = import_react_native11.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
|
|
137701
137643
|
return () => backHandler.remove();
|
|
137702
137644
|
}, [handler]);
|
|
137703
137645
|
}
|
|
137704
|
-
var
|
|
137705
|
-
var
|
|
137646
|
+
var import_react_native13 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137647
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137706
137648
|
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137707
137649
|
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
137708
|
-
var
|
|
137650
|
+
var import_react12 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137709
137651
|
function useCloseConfirm() {
|
|
137710
137652
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
137711
137653
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
137712
|
-
var
|
|
137713
|
-
openConfirm =
|
|
137714
|
-
return (0,
|
|
137715
|
-
var
|
|
137654
|
+
var _ref19 = (0, import_tds_react_native5.useDialog)(),
|
|
137655
|
+
openConfirm = _ref19.openConfirm;
|
|
137656
|
+
return (0, import_react12.useCallback)(function () {
|
|
137657
|
+
var _ref20 = _asyncToGenerator(function* ({
|
|
137716
137658
|
onEntered
|
|
137717
137659
|
}) {
|
|
137718
137660
|
return yield openConfirm({
|
|
@@ -137724,7 +137666,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137724
137666
|
});
|
|
137725
137667
|
});
|
|
137726
137668
|
return function (_x3) {
|
|
137727
|
-
return
|
|
137669
|
+
return _ref20.apply(this, arguments);
|
|
137728
137670
|
};
|
|
137729
137671
|
}(), [brandDisplayName, openConfirm]);
|
|
137730
137672
|
}
|
|
@@ -137776,8 +137718,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137776
137718
|
}
|
|
137777
137719
|
var homeEvent = createEvent("homeEvent");
|
|
137778
137720
|
var safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
137779
|
-
var
|
|
137780
|
-
var import_react_native13 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137721
|
+
var import_react_native12 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137781
137722
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
137782
137723
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
137783
137724
|
var CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
@@ -137792,10 +137733,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137792
137733
|
var referrer = useReferrer();
|
|
137793
137734
|
var baseParams = {
|
|
137794
137735
|
referrer,
|
|
137795
|
-
app_name:
|
|
137736
|
+
app_name: import_react_native12.Granite.appName
|
|
137796
137737
|
};
|
|
137797
137738
|
var logNavBarImpression = naviBarConfig => {
|
|
137798
|
-
|
|
137739
|
+
sendLog({
|
|
137799
137740
|
log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
|
|
137800
137741
|
log_type: "event",
|
|
137801
137742
|
params: {
|
|
@@ -137807,7 +137748,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137807
137748
|
});
|
|
137808
137749
|
};
|
|
137809
137750
|
var logHomeButtonClick = () => {
|
|
137810
|
-
|
|
137751
|
+
sendLog({
|
|
137811
137752
|
log_name: HOME_BUTTON_CLICK_LOG_NAME,
|
|
137812
137753
|
log_type: "event",
|
|
137813
137754
|
params: {
|
|
@@ -137818,7 +137759,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137818
137759
|
});
|
|
137819
137760
|
};
|
|
137820
137761
|
var logCloseButtonClick = () => {
|
|
137821
|
-
|
|
137762
|
+
sendLog({
|
|
137822
137763
|
log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
|
|
137823
137764
|
log_type: "event",
|
|
137824
137765
|
params: {
|
|
@@ -137829,7 +137770,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137829
137770
|
});
|
|
137830
137771
|
};
|
|
137831
137772
|
var logClosePopupShow = () => {
|
|
137832
|
-
|
|
137773
|
+
sendLog({
|
|
137833
137774
|
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
137834
137775
|
log_type: "popup",
|
|
137835
137776
|
params: {
|
|
@@ -137839,7 +137780,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137839
137780
|
});
|
|
137840
137781
|
};
|
|
137841
137782
|
var logClosePopupCtaClick = confirm => {
|
|
137842
|
-
|
|
137783
|
+
sendLog({
|
|
137843
137784
|
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
137844
137785
|
log_type: "event",
|
|
137845
137786
|
params: {
|
|
@@ -137859,26 +137800,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137859
137800
|
};
|
|
137860
137801
|
}
|
|
137861
137802
|
function useNavigationEvent() {
|
|
137862
|
-
var backEventContext = (0,
|
|
137803
|
+
var backEventContext = (0, import_react_native13.useBackEventContext)();
|
|
137863
137804
|
var logging = useNavigationBarLogging();
|
|
137864
|
-
var navigation = (0,
|
|
137805
|
+
var navigation = (0, import_react_native13.useNavigation)();
|
|
137865
137806
|
var closeConfirm = useCloseConfirm();
|
|
137866
|
-
|
|
137867
|
-
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
137868
|
-
return (0, import_react14.useMemo)(() => {
|
|
137807
|
+
return (0, import_react13.useMemo)(() => {
|
|
137869
137808
|
var close = function () {
|
|
137870
|
-
var
|
|
137809
|
+
var _ref21 = _asyncToGenerator(function* () {
|
|
137871
137810
|
var hasConfirmed = yield closeConfirm({
|
|
137872
137811
|
onEntered: logging.closePopupShow
|
|
137873
137812
|
});
|
|
137874
137813
|
logging.closePopupCtaClick(hasConfirmed);
|
|
137875
137814
|
if (hasConfirmed) {
|
|
137876
|
-
|
|
137877
|
-
(0, import_react_native14.closeView)();
|
|
137815
|
+
(0, import_react_native13.closeView)();
|
|
137878
137816
|
}
|
|
137879
137817
|
});
|
|
137880
137818
|
return function close() {
|
|
137881
|
-
return
|
|
137819
|
+
return _ref21.apply(this, arguments);
|
|
137882
137820
|
};
|
|
137883
137821
|
}();
|
|
137884
137822
|
return {
|
|
@@ -137904,21 +137842,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137904
137842
|
close();
|
|
137905
137843
|
}
|
|
137906
137844
|
};
|
|
137907
|
-
}, [backEventContext, navigation, closeConfirm, logging
|
|
137845
|
+
}, [backEventContext, navigation, closeConfirm, logging]);
|
|
137908
137846
|
}
|
|
137909
|
-
var
|
|
137910
|
-
var
|
|
137847
|
+
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137848
|
+
var import_react_native18 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137911
137849
|
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137912
137850
|
var import_private4 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137913
|
-
var
|
|
137914
|
-
var
|
|
137915
|
-
var
|
|
137851
|
+
var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137852
|
+
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137853
|
+
var import_react_native16 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137916
137854
|
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137917
137855
|
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137918
137856
|
var import_private3 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137919
|
-
var
|
|
137920
|
-
var
|
|
137921
|
-
var import_react_native15 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137857
|
+
var import_react_native15 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137858
|
+
var import_react_native14 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137922
137859
|
var BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
137923
137860
|
var BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
137924
137861
|
var BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
@@ -137931,10 +137868,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137931
137868
|
var referrer = useReferrer();
|
|
137932
137869
|
var baseParams = {
|
|
137933
137870
|
referrer,
|
|
137934
|
-
app_name:
|
|
137871
|
+
app_name: import_react_native14.Granite.appName
|
|
137935
137872
|
};
|
|
137936
137873
|
var logBottomSheetShow = () => {
|
|
137937
|
-
|
|
137874
|
+
sendLog({
|
|
137938
137875
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
137939
137876
|
log_type: "popup",
|
|
137940
137877
|
params: {
|
|
@@ -137944,7 +137881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137944
137881
|
});
|
|
137945
137882
|
};
|
|
137946
137883
|
var logBottomSheetOpen = () => {
|
|
137947
|
-
|
|
137884
|
+
sendLog({
|
|
137948
137885
|
log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
|
|
137949
137886
|
log_type: "event",
|
|
137950
137887
|
params: {
|
|
@@ -137955,7 +137892,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137955
137892
|
});
|
|
137956
137893
|
};
|
|
137957
137894
|
var logBottomSheetCloseClick = () => {
|
|
137958
|
-
|
|
137895
|
+
sendLog({
|
|
137959
137896
|
log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
|
|
137960
137897
|
log_type: "event",
|
|
137961
137898
|
params: {
|
|
@@ -137968,7 +137905,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137968
137905
|
var logBottomSheetMenuClick = ({
|
|
137969
137906
|
title
|
|
137970
137907
|
}) => {
|
|
137971
|
-
|
|
137908
|
+
sendLog({
|
|
137972
137909
|
log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
|
|
137973
137910
|
log_type: "event",
|
|
137974
137911
|
params: {
|
|
@@ -137999,7 +137936,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137999
137936
|
var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
|
|
138000
137937
|
var iconBackgroundColor = brandPrimaryColorRGB ? `rgba(${brandPrimaryColorRGB.join(",")},0.1)` : adaptive.grey100;
|
|
138001
137938
|
return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
|
|
138002
|
-
left: (0, import_jsx_runtime5.jsx)(
|
|
137939
|
+
left: (0, import_jsx_runtime5.jsx)(import_react_native15.View, {
|
|
138003
137940
|
style: {
|
|
138004
137941
|
width: 30,
|
|
138005
137942
|
height: 30,
|
|
@@ -138063,10 +138000,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138063
138000
|
}
|
|
138064
138001
|
function addParamsToUrl(url, params) {
|
|
138065
138002
|
var urlObj = new URL(url);
|
|
138066
|
-
for (var
|
|
138067
|
-
var
|
|
138068
|
-
var key =
|
|
138069
|
-
var value =
|
|
138003
|
+
for (var _ref22 of Object.entries(params)) {
|
|
138004
|
+
var _ref23 = _slicedToArray(_ref22, 2);
|
|
138005
|
+
var key = _ref23[0];
|
|
138006
|
+
var value = _ref23[1];
|
|
138070
138007
|
urlObj.searchParams.set(key, value);
|
|
138071
138008
|
}
|
|
138072
138009
|
return urlObj.toString();
|
|
@@ -138078,10 +138015,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138078
138015
|
contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
|
|
138079
138016
|
};
|
|
138080
138017
|
function AppShareListMenu() {
|
|
138081
|
-
var initialScheme = (0,
|
|
138082
|
-
var isSandbox = (0,
|
|
138083
|
-
var
|
|
138084
|
-
openConfirm =
|
|
138018
|
+
var initialScheme = (0, import_react_native16.getSchemeUri)();
|
|
138019
|
+
var isSandbox = (0, import_native_modules5.getOperationalEnvironment)() === "sandbox";
|
|
138020
|
+
var _ref24 = (0, import_tds_react_native7.useDialog)(),
|
|
138021
|
+
openConfirm = _ref24.openConfirm;
|
|
138085
138022
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
138086
138023
|
referrer: SHARE_SCHEME_REFERRER
|
|
138087
138024
|
});
|
|
@@ -138098,16 +138035,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138098
138035
|
});
|
|
138099
138036
|
return;
|
|
138100
138037
|
}
|
|
138101
|
-
(0,
|
|
138038
|
+
(0, import_native_modules5.shareWithScheme)({
|
|
138102
138039
|
schemeURL: schemeForShare
|
|
138103
138040
|
});
|
|
138104
138041
|
}
|
|
138105
138042
|
});
|
|
138106
138043
|
}
|
|
138107
|
-
var
|
|
138044
|
+
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138108
138045
|
var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138109
138046
|
function HomeShortcutMenu() {
|
|
138110
|
-
var isSandbox = (0,
|
|
138047
|
+
var isSandbox = (0, import_native_modules6.getOperationalEnvironment)() === "sandbox";
|
|
138111
138048
|
var globals = getAppsInTossGlobals();
|
|
138112
138049
|
if (isSandbox) {
|
|
138113
138050
|
return null;
|
|
@@ -138116,7 +138053,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138116
138053
|
title: "\uD648 \uD654\uBA74\uC5D0 \uCD94\uAC00",
|
|
138117
138054
|
iconURL: "https://static.toss.im/icons/png/4x/icon-plus-circle-mono.png",
|
|
138118
138055
|
onPress: () => {
|
|
138119
|
-
|
|
138056
|
+
import_native_modules6.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("addMiniAppShortcut", {
|
|
138120
138057
|
title: globals.brandDisplayName,
|
|
138121
138058
|
appName: global.__granite.app.name,
|
|
138122
138059
|
iconUrl: globals.brandIcon,
|
|
@@ -138128,18 +138065,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138128
138065
|
}
|
|
138129
138066
|
});
|
|
138130
138067
|
}
|
|
138131
|
-
var
|
|
138132
|
-
var
|
|
138068
|
+
var import_native_modules7 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138069
|
+
var import_react_native17 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138133
138070
|
var import_jsx_runtime8 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138134
138071
|
function SettingsMenu() {
|
|
138135
138072
|
var globals = getAppsInTossGlobals();
|
|
138136
|
-
if ((0,
|
|
138073
|
+
if ((0, import_native_modules7.getOperationalEnvironment)() === "sandbox") {
|
|
138137
138074
|
return null;
|
|
138138
138075
|
}
|
|
138139
138076
|
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
138140
138077
|
title: "\uC124\uC815",
|
|
138141
138078
|
iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
|
|
138142
|
-
onPress: () => (0,
|
|
138079
|
+
onPress: () => (0, import_react_native17.openURL)(`servicetoss://apps-in-toss-menu/settings?appName=${import_react_native17.Granite.appName}&displayAppName=${globals.brandDisplayName}`)
|
|
138143
138080
|
});
|
|
138144
138081
|
}
|
|
138145
138082
|
function ensureValue(value, name) {
|
|
@@ -138171,23 +138108,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138171
138108
|
function useMoreButtonBottomSheet() {
|
|
138172
138109
|
var globals = getAppsInTossGlobals();
|
|
138173
138110
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
138174
|
-
var
|
|
138175
|
-
|
|
138176
|
-
itemList =
|
|
138177
|
-
setItemList =
|
|
138111
|
+
var _ref25 = (0, import_react14.useState)([]),
|
|
138112
|
+
_ref26 = _slicedToArray(_ref25, 2),
|
|
138113
|
+
itemList = _ref26[0],
|
|
138114
|
+
setItemList = _ref26[1];
|
|
138178
138115
|
var appUpdateDialog = useAppUpdateDialog();
|
|
138179
138116
|
var logging = useMoreButtonBottomSheetLogging();
|
|
138180
138117
|
var overlay = (0, import_private4.useOverlay)();
|
|
138181
138118
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
138182
|
-
var isHomeShortcutSupported = (0,
|
|
138183
|
-
var isBottomSheetSupported = (0,
|
|
138184
|
-
var isShareListMenuSupported = (0,
|
|
138185
|
-
var isSettingsMenuSupported = (0,
|
|
138186
|
-
(0,
|
|
138119
|
+
var isHomeShortcutSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.HOME_SHORTCUT_MENU);
|
|
138120
|
+
var isBottomSheetSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
138121
|
+
var isShareListMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
138122
|
+
var isSettingsMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SETTINGS_MENU);
|
|
138123
|
+
(0, import_react14.useEffect)(() => {
|
|
138187
138124
|
if (!isBottomSheetSupported) {
|
|
138188
138125
|
return;
|
|
138189
138126
|
}
|
|
138190
|
-
|
|
138127
|
+
import_native_modules8.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
138191
138128
|
onSuccess: ({
|
|
138192
138129
|
items
|
|
138193
138130
|
}) => setItemList(items),
|
|
@@ -138195,7 +138132,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138195
138132
|
});
|
|
138196
138133
|
}, [isBottomSheetSupported]);
|
|
138197
138134
|
var onClickHandler = function () {
|
|
138198
|
-
var
|
|
138135
|
+
var _ref27 = _asyncToGenerator(function* () {
|
|
138199
138136
|
logging.open();
|
|
138200
138137
|
if (!isBottomSheetSupported) {
|
|
138201
138138
|
yield appUpdateDialog.open({
|
|
@@ -138240,7 +138177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138240
138177
|
children: [itemList.map(item => (0, import_jsx_runtime9.jsx)(Menu, {
|
|
138241
138178
|
title: item.contactItemName,
|
|
138242
138179
|
iconURL: item.contactIconUrl,
|
|
138243
|
-
onPress: () => (0,
|
|
138180
|
+
onPress: () => (0, import_react_native18.openURL)(item.contactUri)
|
|
138244
138181
|
}, item.contactItemName)), isHomeShortcutSupported && (0, import_jsx_runtime9.jsx)(HomeShortcutMenu, {}), isShareListMenuSupported && (0, import_jsx_runtime9.jsx)(AppShareListMenu, {}), isSettingsMenuSupported && (0, import_jsx_runtime9.jsx)(SettingsMenu, {})]
|
|
138245
138182
|
})
|
|
138246
138183
|
})
|
|
@@ -138248,7 +138185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138248
138185
|
});
|
|
138249
138186
|
});
|
|
138250
138187
|
return function onClickHandler() {
|
|
138251
|
-
return
|
|
138188
|
+
return _ref27.apply(this, arguments);
|
|
138252
138189
|
};
|
|
138253
138190
|
}();
|
|
138254
138191
|
return {
|
|
@@ -138259,7 +138196,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138259
138196
|
children
|
|
138260
138197
|
}) {
|
|
138261
138198
|
var logging = useMoreButtonBottomSheetLogging();
|
|
138262
|
-
(0,
|
|
138199
|
+
(0, import_react14.useEffect)(() => {
|
|
138263
138200
|
logging.show();
|
|
138264
138201
|
}, [logging]);
|
|
138265
138202
|
return (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {
|
|
@@ -138275,15 +138212,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138275
138212
|
name: source
|
|
138276
138213
|
};
|
|
138277
138214
|
}
|
|
138278
|
-
var
|
|
138215
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138279
138216
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138280
138217
|
function NavigationBarImpressionArea({
|
|
138281
138218
|
children,
|
|
138282
138219
|
withHomeButton
|
|
138283
138220
|
}) {
|
|
138284
|
-
var hasLogged = (0,
|
|
138221
|
+
var hasLogged = (0, import_react15.useRef)(false);
|
|
138285
138222
|
var logging = useNavigationBarLogging();
|
|
138286
|
-
(0,
|
|
138223
|
+
(0, import_react15.useEffect)(() => {
|
|
138287
138224
|
if (hasLogged.current === false) {
|
|
138288
138225
|
logging.navBarImpression({
|
|
138289
138226
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -138332,7 +138269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138332
138269
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138333
138270
|
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138334
138271
|
var import_private6 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138335
|
-
var
|
|
138272
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138336
138273
|
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138337
138274
|
function GameNavigationBar() {
|
|
138338
138275
|
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
@@ -138341,18 +138278,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138341
138278
|
var navigationEvent = useNavigationEvent();
|
|
138342
138279
|
var _useNavigationBarCont2 = useNavigationBarContext(),
|
|
138343
138280
|
navigationRightButton = _useNavigationBarCont2.navigationRightButton;
|
|
138344
|
-
var
|
|
138345
|
-
safeAreaRight =
|
|
138281
|
+
var _ref28 = (0, import_react_native_safe_area_context.useSafeAreaInsets)(),
|
|
138282
|
+
safeAreaRight = _ref28.right;
|
|
138346
138283
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
138347
138284
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
138348
138285
|
children: [(0, import_jsx_runtime12.jsx)(import_tds_react_native9.PageNavbar, {
|
|
138349
138286
|
preference: {
|
|
138350
138287
|
type: "none"
|
|
138351
138288
|
}
|
|
138352
|
-
}), (0, import_jsx_runtime12.jsx)(
|
|
138289
|
+
}), (0, import_jsx_runtime12.jsx)(import_react_native19.View, {
|
|
138353
138290
|
style: {
|
|
138354
138291
|
width: "100%",
|
|
138355
|
-
height:
|
|
138292
|
+
height: import_react_native19.Platform.OS === "ios" ? 44 : 54,
|
|
138356
138293
|
flexDirection: "row",
|
|
138357
138294
|
alignItems: "center",
|
|
138358
138295
|
justifyContent: "flex-end",
|
|
@@ -138399,13 +138336,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138399
138336
|
function GameAppContainer({
|
|
138400
138337
|
children
|
|
138401
138338
|
}) {
|
|
138402
|
-
(0,
|
|
138403
|
-
if (
|
|
138404
|
-
(0,
|
|
138339
|
+
(0, import_react16.useEffect)(() => {
|
|
138340
|
+
if (import_react_native20.Platform.OS === "ios") {
|
|
138341
|
+
(0, import_native_modules9.setIosSwipeGestureEnabled)({
|
|
138405
138342
|
isEnabled: false
|
|
138406
138343
|
});
|
|
138407
138344
|
return () => {
|
|
138408
|
-
(0,
|
|
138345
|
+
(0, import_native_modules9.setIosSwipeGestureEnabled)({
|
|
138409
138346
|
isEnabled: true
|
|
138410
138347
|
});
|
|
138411
138348
|
};
|
|
@@ -138430,18 +138367,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138430
138367
|
children,
|
|
138431
138368
|
...initialProps
|
|
138432
138369
|
}) {
|
|
138433
|
-
if (!(0,
|
|
138370
|
+
if (!(0, import_native_modules10.isMinVersionSupported)({
|
|
138434
138371
|
android: "5.220.0",
|
|
138435
138372
|
ios: "5.221.0"
|
|
138436
138373
|
})) {
|
|
138437
138374
|
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
138438
|
-
children: [(0, import_jsx_runtime14.jsx)(AppEvent.
|
|
138375
|
+
children: [(0, import_jsx_runtime14.jsx)(AppEvent.System, {
|
|
138439
138376
|
...initialProps
|
|
138440
138377
|
}), (0, import_jsx_runtime14.jsx)(AppUpdate, {})]
|
|
138441
138378
|
});
|
|
138442
138379
|
}
|
|
138443
138380
|
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
138444
|
-
children: [(0, import_jsx_runtime14.jsx)(AppEvent.
|
|
138381
|
+
children: [(0, import_jsx_runtime14.jsx)(AppEvent.System, {
|
|
138445
138382
|
...initialProps
|
|
138446
138383
|
}), (0, import_jsx_runtime14.jsx)(Container, {
|
|
138447
138384
|
...initialProps,
|
|
@@ -138462,17 +138399,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138462
138399
|
analytics
|
|
138463
138400
|
}) {
|
|
138464
138401
|
var appName = getAppName();
|
|
138465
|
-
var isRegistered =
|
|
138402
|
+
var isRegistered = import_react_native22.AppRegistry.getAppKeys().includes(appName);
|
|
138466
138403
|
if (!isRegistered) {
|
|
138467
138404
|
import_analytics.Analytics.init({
|
|
138468
|
-
logger: params => void (0,
|
|
138405
|
+
logger: params => void (0, import_native_modules10.eventLog)(params),
|
|
138469
138406
|
debug: analytics?.debug ?? __DEV__
|
|
138470
138407
|
});
|
|
138471
|
-
var App =
|
|
138408
|
+
var App = import_react_native21.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
138472
138409
|
appName,
|
|
138473
138410
|
context,
|
|
138474
|
-
initialScheme: (0,
|
|
138475
|
-
setIosSwipeGestureEnabled:
|
|
138411
|
+
initialScheme: (0, import_native_modules10.getSchemeUri)(),
|
|
138412
|
+
setIosSwipeGestureEnabled: import_native_modules10.setIosSwipeGestureEnabled,
|
|
138476
138413
|
router: {
|
|
138477
138414
|
screenContainer: AppsInTossScreenContainer,
|
|
138478
138415
|
defaultScreenOption: {
|
|
@@ -138507,44 +138444,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138507
138444
|
var AppsInToss = {
|
|
138508
138445
|
registerApp
|
|
138509
138446
|
};
|
|
138510
|
-
var
|
|
138447
|
+
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138511
138448
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[14], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
138512
138449
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
138513
138450
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
138514
138451
|
var import_user_scripts = _$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/user-scripts");
|
|
138515
138452
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138516
|
-
var
|
|
138453
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138517
138454
|
var import_tds_react_native15 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138518
138455
|
var import_private9 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138519
|
-
var
|
|
138520
|
-
var
|
|
138521
|
-
var
|
|
138456
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138457
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138458
|
+
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138522
138459
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[18], "@granite-js/native/react-native-webview");
|
|
138523
|
-
var
|
|
138524
|
-
var
|
|
138460
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138461
|
+
var import_react_native25 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138525
138462
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138526
|
-
var
|
|
138463
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138527
138464
|
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138528
138465
|
var import_private7 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138529
138466
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
138530
|
-
var
|
|
138531
|
-
var
|
|
138467
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138468
|
+
var import_react_native24 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138532
138469
|
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138533
138470
|
function GameWebviewNavigationBar() {
|
|
138534
138471
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
138535
|
-
var
|
|
138536
|
-
openConfirm =
|
|
138537
|
-
var _useCaptureExitLog3 = useCaptureExitLog(),
|
|
138538
|
-
captureExitLog = _useCaptureExitLog3.captureExitLog;
|
|
138472
|
+
var _ref29 = (0, import_tds_react_native11.useDialog)(),
|
|
138473
|
+
openConfirm = _ref29.openConfirm;
|
|
138539
138474
|
var global2 = getAppsInTossGlobals();
|
|
138540
138475
|
var logging = useNavigationBarLogging();
|
|
138541
138476
|
var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
|
|
138542
138477
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
138543
138478
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
138544
138479
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
138545
|
-
var
|
|
138546
|
-
safeAreaRight =
|
|
138547
|
-
var handleGameWebviewClose = (0,
|
|
138480
|
+
var _ref30 = (0, import_react_native_safe_area_context2.useSafeAreaInsets)(),
|
|
138481
|
+
safeAreaRight = _ref30.right;
|
|
138482
|
+
var handleGameWebviewClose = (0, import_react17.useCallback)(_asyncToGenerator(function* () {
|
|
138548
138483
|
logging.closeButtonClick();
|
|
138549
138484
|
var isConfirmed = yield openConfirm({
|
|
138550
138485
|
title: `${(0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
|
|
@@ -138555,19 +138490,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138555
138490
|
});
|
|
138556
138491
|
logging.closePopupCtaClick(isConfirmed);
|
|
138557
138492
|
if (isConfirmed) {
|
|
138558
|
-
|
|
138559
|
-
(0, import_react_native24.closeView)();
|
|
138493
|
+
(0, import_react_native23.closeView)();
|
|
138560
138494
|
}
|
|
138561
|
-
}), [
|
|
138495
|
+
}), [global2.brandDisplayName, logging, openConfirm]);
|
|
138562
138496
|
return (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
|
|
138563
138497
|
children: [(0, import_jsx_runtime15.jsx)(import_tds_react_native11.PageNavbar, {
|
|
138564
138498
|
preference: {
|
|
138565
138499
|
type: "none"
|
|
138566
138500
|
}
|
|
138567
|
-
}), (0, import_jsx_runtime15.jsx)(
|
|
138501
|
+
}), (0, import_jsx_runtime15.jsx)(import_react_native24.View, {
|
|
138568
138502
|
style: {
|
|
138569
138503
|
width: "100%",
|
|
138570
|
-
height:
|
|
138504
|
+
height: import_react_native24.Platform.OS === "ios" ? 44 : 54,
|
|
138571
138505
|
flexDirection: "row",
|
|
138572
138506
|
alignItems: "center",
|
|
138573
138507
|
justifyContent: "flex-end",
|
|
@@ -138589,14 +138523,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138589
138523
|
});
|
|
138590
138524
|
}
|
|
138591
138525
|
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138592
|
-
var GameWebView = (0,
|
|
138593
|
-
(0,
|
|
138594
|
-
if (
|
|
138595
|
-
(0,
|
|
138526
|
+
var GameWebView = (0, import_react18.forwardRef)(function GameWebView2(props, ref) {
|
|
138527
|
+
(0, import_react18.useEffect)(() => {
|
|
138528
|
+
if (import_react_native25.Platform.OS === "ios") {
|
|
138529
|
+
(0, import_native_modules11.setIosSwipeGestureEnabled)({
|
|
138596
138530
|
isEnabled: false
|
|
138597
138531
|
});
|
|
138598
138532
|
return () => {
|
|
138599
|
-
(0,
|
|
138533
|
+
(0, import_native_modules11.setIosSwipeGestureEnabled)({
|
|
138600
138534
|
isEnabled: true
|
|
138601
138535
|
});
|
|
138602
138536
|
};
|
|
@@ -138604,7 +138538,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138604
138538
|
return;
|
|
138605
138539
|
}, []);
|
|
138606
138540
|
return (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, {
|
|
138607
|
-
children: [(0, import_jsx_runtime16.jsx)(GameWebviewNavigationBar, {}), (0,
|
|
138541
|
+
children: [(0, import_jsx_runtime16.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules11.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime16.jsx)(GameInitializer, {
|
|
138608
138542
|
children: (0, import_jsx_runtime16.jsx)(import_react_native_webview.WebView, {
|
|
138609
138543
|
ref,
|
|
138610
138544
|
...props
|
|
@@ -138616,23 +138550,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138616
138550
|
});
|
|
138617
138551
|
});
|
|
138618
138552
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[18], "@granite-js/native/react-native-webview");
|
|
138619
|
-
var
|
|
138620
|
-
var
|
|
138553
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138554
|
+
var import_react_native26 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138621
138555
|
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138622
138556
|
var import_private8 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138623
138557
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
138624
|
-
var
|
|
138558
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138625
138559
|
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138626
138560
|
function PartnerWebviewNavigationBar({
|
|
138627
138561
|
onBackButtonClick,
|
|
138628
138562
|
onHomeButtonClick
|
|
138629
138563
|
}) {
|
|
138630
138564
|
var globals = getAppsInTossGlobals();
|
|
138631
|
-
var _useCaptureExitLog4 = useCaptureExitLog(),
|
|
138632
|
-
captureExitLog = _useCaptureExitLog4.captureExitLog;
|
|
138633
138565
|
var logging = useNavigationBarLogging();
|
|
138634
|
-
var
|
|
138635
|
-
openConfirm =
|
|
138566
|
+
var _ref32 = (0, import_tds_react_native12.useDialog)(),
|
|
138567
|
+
openConfirm = _ref32.openConfirm;
|
|
138636
138568
|
var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
|
|
138637
138569
|
openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
|
|
138638
138570
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
@@ -138640,7 +138572,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138640
138572
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
138641
138573
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
138642
138574
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
138643
|
-
var handleClose = (0,
|
|
138575
|
+
var handleClose = (0, import_react19.useCallback)(_asyncToGenerator(function* () {
|
|
138644
138576
|
logging.closeButtonClick();
|
|
138645
138577
|
var isConfirmed = yield openConfirm({
|
|
138646
138578
|
title: `${(0, import_es_hangul4.josa)(globals.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
|
|
@@ -138651,10 +138583,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138651
138583
|
});
|
|
138652
138584
|
logging.closePopupCtaClick(isConfirmed);
|
|
138653
138585
|
if (isConfirmed) {
|
|
138654
|
-
|
|
138655
|
-
(0, import_react_native27.closeView)();
|
|
138586
|
+
(0, import_react_native26.closeView)();
|
|
138656
138587
|
}
|
|
138657
|
-
}), [
|
|
138588
|
+
}), [globals.brandDisplayName, logging, openConfirm]);
|
|
138658
138589
|
return (0, import_jsx_runtime17.jsx)(NavigationBarImpressionArea, {
|
|
138659
138590
|
withHomeButton,
|
|
138660
138591
|
children: (0, import_jsx_runtime17.jsx)(import_private8.TopNavigation, {
|
|
@@ -138678,7 +138609,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138678
138609
|
});
|
|
138679
138610
|
}
|
|
138680
138611
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138681
|
-
var PartnerWebView = (0,
|
|
138612
|
+
var PartnerWebView = (0, import_react20.forwardRef)(function PartnerWebViewScreen({
|
|
138682
138613
|
onBackButtonClick,
|
|
138683
138614
|
onHomeButtonClick,
|
|
138684
138615
|
...webViewProps
|
|
@@ -138707,7 +138638,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138707
138638
|
}
|
|
138708
138639
|
return `${scheme}://${url.hostname}${url.pathname}${url.search}`;
|
|
138709
138640
|
}
|
|
138710
|
-
var
|
|
138641
|
+
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138711
138642
|
function noop() {}
|
|
138712
138643
|
var INVALID_AD_GROUP_ID_ERROR_MESSAGE = "\uC798\uBABB\uB41C \uC694\uCCAD\uC774\uC5D0\uC694. \uD544\uC694\uD55C \uAC12\uC774 \uBE44\uC5B4 \uC788\uC5B4\uC694.";
|
|
138713
138644
|
function normalizeAdGroupId(adGroupId) {
|
|
@@ -138727,7 +138658,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138727
138658
|
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
138728
138659
|
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
138729
138660
|
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
138730
|
-
var ENVIRONMENT = (0,
|
|
138661
|
+
var ENVIRONMENT = (0, import_native_modules12.getOperationalEnvironment)();
|
|
138731
138662
|
function fetchTossAd(params) {
|
|
138732
138663
|
if (!fetchTossAd.isSupported()) {
|
|
138733
138664
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
@@ -138741,7 +138672,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138741
138672
|
params.onError(createInvalidAdGroupIdError());
|
|
138742
138673
|
return noop;
|
|
138743
138674
|
}
|
|
138744
|
-
var unregisterCallbacks =
|
|
138675
|
+
var unregisterCallbacks = import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
138745
138676
|
spaceUnitId: adGroupId,
|
|
138746
138677
|
sessionId,
|
|
138747
138678
|
sdkId: options.sdkId,
|
|
@@ -138760,37 +138691,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138760
138691
|
if (ENVIRONMENT !== "toss") {
|
|
138761
138692
|
return false;
|
|
138762
138693
|
}
|
|
138763
|
-
return (0,
|
|
138694
|
+
return (0, import_native_modules12.isMinVersionSupported)({
|
|
138764
138695
|
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
138765
138696
|
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
138766
138697
|
});
|
|
138767
138698
|
};
|
|
138768
|
-
var
|
|
138699
|
+
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138769
138700
|
function generateRequestId() {
|
|
138770
138701
|
var timestamp = Date.now().toString(36).toUpperCase();
|
|
138771
138702
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
138772
138703
|
return `ait-${timestamp}${random}`;
|
|
138773
138704
|
}
|
|
138774
|
-
var
|
|
138705
|
+
var import_react_native27 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138775
138706
|
function getReferrer() {
|
|
138776
138707
|
try {
|
|
138777
|
-
return new URL((0,
|
|
138708
|
+
return new URL((0, import_react_native27.getSchemeUri)()).searchParams.get("referrer");
|
|
138778
138709
|
} catch {
|
|
138779
138710
|
return null;
|
|
138780
138711
|
}
|
|
138781
138712
|
}
|
|
138782
|
-
var
|
|
138783
|
-
var
|
|
138713
|
+
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138714
|
+
var import_react_native28 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138784
138715
|
function getIsDev() {
|
|
138785
138716
|
try {
|
|
138786
|
-
return new URL((0,
|
|
138717
|
+
return new URL((0, import_react_native28.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
138787
138718
|
} catch {
|
|
138788
138719
|
return false;
|
|
138789
138720
|
}
|
|
138790
138721
|
}
|
|
138791
|
-
var OPERATIONAL_ENVIRONMENT = (0,
|
|
138792
|
-
var OS = (0,
|
|
138793
|
-
var APP_VER = (0,
|
|
138722
|
+
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules13.getOperationalEnvironment)();
|
|
138723
|
+
var OS = (0, import_native_modules13.getPlatformOS)();
|
|
138724
|
+
var APP_VER = (0, import_native_modules13.getTossAppVersion)();
|
|
138794
138725
|
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
138795
138726
|
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
138796
138727
|
function getPostEventTrackingUrl() {
|
|
@@ -138823,14 +138754,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138823
138754
|
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
138824
138755
|
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
138825
138756
|
function integratedAdIsSupported() {
|
|
138826
|
-
return (0,
|
|
138757
|
+
return (0, import_native_modules14.isMinVersionSupported)({
|
|
138827
138758
|
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
138828
138759
|
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
138829
138760
|
});
|
|
138830
138761
|
}
|
|
138831
138762
|
function generateLoadFullScreenAd(sdkId) {
|
|
138832
138763
|
var fn = params => {
|
|
138833
|
-
if (!
|
|
138764
|
+
if (!import_native_modules14.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
138834
138765
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
138835
138766
|
return noop;
|
|
138836
138767
|
}
|
|
@@ -138847,7 +138778,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138847
138778
|
}
|
|
138848
138779
|
};
|
|
138849
138780
|
if (!integratedAdIsSupported()) {
|
|
138850
|
-
return
|
|
138781
|
+
return import_native_modules14.GoogleAdMob.loadAppsInTossAdMob({
|
|
138851
138782
|
...normalizedParams,
|
|
138852
138783
|
onEvent: event => {
|
|
138853
138784
|
if (event.type === "loaded") {
|
|
@@ -138887,7 +138818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138887
138818
|
options = normalizedParams.options;
|
|
138888
138819
|
var adGroupId = options.adGroupId;
|
|
138889
138820
|
var referrer = getReferrer();
|
|
138890
|
-
var unregisterCallbacks =
|
|
138821
|
+
var unregisterCallbacks = import_native_modules14.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
138891
138822
|
spaceUnitId: adGroupId,
|
|
138892
138823
|
referrer,
|
|
138893
138824
|
sessionId,
|
|
@@ -138904,13 +138835,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138904
138835
|
});
|
|
138905
138836
|
return unregisterCallbacks;
|
|
138906
138837
|
};
|
|
138907
|
-
fn.isSupported =
|
|
138838
|
+
fn.isSupported = import_native_modules14.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
138908
138839
|
return fn;
|
|
138909
138840
|
}
|
|
138910
138841
|
var loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
138911
138842
|
var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
138912
138843
|
function showFullScreenAd(params) {
|
|
138913
|
-
if (!
|
|
138844
|
+
if (!import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
138914
138845
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
138915
138846
|
return noop;
|
|
138916
138847
|
}
|
|
@@ -138927,7 +138858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138927
138858
|
}
|
|
138928
138859
|
};
|
|
138929
138860
|
if (!integratedAdIsSupported()) {
|
|
138930
|
-
return
|
|
138861
|
+
return import_native_modules14.GoogleAdMob.showAppsInTossAdMob({
|
|
138931
138862
|
...normalizedParams,
|
|
138932
138863
|
onEvent: event => {
|
|
138933
138864
|
var requestId = INTG_AD_ADM_FALLBACK_RID_MAP[normalizedAdGroupId] ?? "";
|
|
@@ -139028,7 +138959,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139028
138959
|
options = normalizedParams.options;
|
|
139029
138960
|
var adGroupId = options.adGroupId;
|
|
139030
138961
|
var referrer = getReferrer();
|
|
139031
|
-
var unregisterCallbacks =
|
|
138962
|
+
var unregisterCallbacks = import_native_modules14.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
139032
138963
|
spaceUnitId: adGroupId,
|
|
139033
138964
|
referrer,
|
|
139034
138965
|
sessionId
|
|
@@ -139075,16 +139006,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139075
139006
|
});
|
|
139076
139007
|
return unregisterCallbacks;
|
|
139077
139008
|
}
|
|
139078
|
-
showFullScreenAd.isSupported =
|
|
139079
|
-
var
|
|
139080
|
-
var import_react_native30 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139009
|
+
showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
139010
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139081
139011
|
function tossAdEventLog(_x4) {
|
|
139082
139012
|
return _tossAdEventLog.apply(this, arguments);
|
|
139083
139013
|
}
|
|
139084
139014
|
function _tossAdEventLog() {
|
|
139085
139015
|
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
139086
139016
|
var referrer = getReferrer();
|
|
139087
|
-
var appName =
|
|
139017
|
+
var appName = import_react_native29.Granite.appName;
|
|
139088
139018
|
var eventLogParams = {
|
|
139089
139019
|
...params,
|
|
139090
139020
|
params: {
|
|
@@ -139093,11 +139023,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139093
139023
|
app_name: appName
|
|
139094
139024
|
}
|
|
139095
139025
|
};
|
|
139096
|
-
return
|
|
139026
|
+
return sendLog(eventLogParams, {
|
|
139027
|
+
pipelines: ["core"]
|
|
139028
|
+
});
|
|
139097
139029
|
});
|
|
139098
139030
|
return _tossAdEventLog.apply(this, arguments);
|
|
139099
139031
|
}
|
|
139100
|
-
var
|
|
139032
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139101
139033
|
function serializeError(error) {
|
|
139102
139034
|
return JSON.stringify(error, (_, value) => {
|
|
139103
139035
|
if (value instanceof Error) {
|
|
@@ -139128,12 +139060,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139128
139060
|
return;
|
|
139129
139061
|
}
|
|
139130
139062
|
var wrappedFunc = function () {
|
|
139131
|
-
var
|
|
139063
|
+
var _ref34 = _asyncToGenerator(function* (...args2) {
|
|
139132
139064
|
var result = yield func(...args2);
|
|
139133
139065
|
return result;
|
|
139134
139066
|
});
|
|
139135
139067
|
return function wrappedFunc() {
|
|
139136
|
-
return
|
|
139068
|
+
return _ref34.apply(this, arguments);
|
|
139137
139069
|
};
|
|
139138
139070
|
}();
|
|
139139
139071
|
wrappedFunc(...args).then(result => {
|
|
@@ -139154,12 +139086,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139154
139086
|
asyncHandlerMap,
|
|
139155
139087
|
eventListenerMap
|
|
139156
139088
|
}) {
|
|
139157
|
-
var ref = (0,
|
|
139158
|
-
var injectedJavaScript = (0,
|
|
139089
|
+
var ref = (0, import_react21.useRef)(null);
|
|
139090
|
+
var injectedJavaScript = (0, import_react21.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
|
|
139159
139091
|
acc[key] = typeof value === "function" ? value() : value;
|
|
139160
139092
|
return acc;
|
|
139161
139093
|
}, {}))};`, [constantHandlerMap]);
|
|
139162
|
-
(0,
|
|
139094
|
+
(0, import_react21.useEffect)(() => {
|
|
139163
139095
|
ref.current?.injectJavaScript(injectedJavaScript);
|
|
139164
139096
|
}, [injectedJavaScript]);
|
|
139165
139097
|
var createHandleOnEvent = (functionName, eventId) => response => {
|
|
@@ -139173,8 +139105,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139173
139105
|
window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
|
|
139174
139106
|
`);
|
|
139175
139107
|
};
|
|
139176
|
-
var $onMessage = (0,
|
|
139177
|
-
var
|
|
139108
|
+
var $onMessage = (0, import_react21.useCallback)(function () {
|
|
139109
|
+
var _ref35 = _asyncToGenerator(function* (e) {
|
|
139178
139110
|
onMessage?.(e);
|
|
139179
139111
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
139180
139112
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -139217,7 +139149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139217
139149
|
}
|
|
139218
139150
|
});
|
|
139219
139151
|
return function (_x5) {
|
|
139220
|
-
return
|
|
139152
|
+
return _ref35.apply(this, arguments);
|
|
139221
139153
|
};
|
|
139222
139154
|
}(), [onMessage]);
|
|
139223
139155
|
return {
|
|
@@ -139235,22 +139167,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139235
139167
|
}
|
|
139236
139168
|
}
|
|
139237
139169
|
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
139238
|
-
var
|
|
139170
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139239
139171
|
function useSafeAreaInsetsEvent() {
|
|
139240
139172
|
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
139241
|
-
(0,
|
|
139173
|
+
(0, import_react22.useEffect)(() => {
|
|
139242
139174
|
safeAreaInsetsChange.emit(insets);
|
|
139243
139175
|
}, [insets]);
|
|
139244
|
-
(0,
|
|
139176
|
+
(0, import_react22.useEffect)(() => {
|
|
139245
139177
|
return () => safeAreaInsetsChange.clearSubscriptions();
|
|
139246
139178
|
}, []);
|
|
139247
139179
|
return safeAreaInsetsChange;
|
|
139248
139180
|
}
|
|
139249
|
-
var
|
|
139181
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139250
139182
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139251
139183
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
139252
|
-
var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139253
139184
|
var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139185
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139254
139186
|
var INITIAL_STATE = {
|
|
139255
139187
|
stack: [],
|
|
139256
139188
|
index: -1
|
|
@@ -139299,11 +139231,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139299
139231
|
}
|
|
139300
139232
|
}
|
|
139301
139233
|
function useWebViewHistory() {
|
|
139302
|
-
var
|
|
139303
|
-
|
|
139304
|
-
state =
|
|
139305
|
-
dispatch =
|
|
139306
|
-
var onNavigationStateChange = (0,
|
|
139234
|
+
var _ref36 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
|
|
139235
|
+
_ref37 = _slicedToArray(_ref36, 2),
|
|
139236
|
+
state = _ref37[0],
|
|
139237
|
+
dispatch = _ref37[1];
|
|
139238
|
+
var onNavigationStateChange = (0, import_react23.useCallback)(({
|
|
139307
139239
|
url,
|
|
139308
139240
|
canGoForward: canGoForward2
|
|
139309
139241
|
}) => {
|
|
@@ -139313,7 +139245,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139313
139245
|
canGoForward: canGoForward2
|
|
139314
139246
|
});
|
|
139315
139247
|
}, []);
|
|
139316
|
-
var
|
|
139248
|
+
var _ref38 = (0, import_react23.useMemo)(() => {
|
|
139317
139249
|
var canBack = state.index > 0;
|
|
139318
139250
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
139319
139251
|
return {
|
|
@@ -139321,8 +139253,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139321
139253
|
canGoForward: canFwd
|
|
139322
139254
|
};
|
|
139323
139255
|
}, [state.index, state.stack.length]),
|
|
139324
|
-
canGoBack =
|
|
139325
|
-
canGoForward =
|
|
139256
|
+
canGoBack = _ref38.canGoBack,
|
|
139257
|
+
canGoForward = _ref38.canGoForward;
|
|
139326
139258
|
return {
|
|
139327
139259
|
onNavigationStateChange,
|
|
139328
139260
|
hasHistory: canGoBack,
|
|
@@ -139330,27 +139262,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139330
139262
|
};
|
|
139331
139263
|
}
|
|
139332
139264
|
function useWebBackHandler(webViewInitialURL, webViewRef) {
|
|
139333
|
-
var _useCaptureExitLog5 = useCaptureExitLog(),
|
|
139334
|
-
captureExitLog = _useCaptureExitLog5.captureExitLog;
|
|
139335
139265
|
var _useWebViewHistory = useWebViewHistory(),
|
|
139336
139266
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
139337
139267
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
139338
|
-
var
|
|
139339
|
-
webBackHandlersRef =
|
|
139340
|
-
hasWebBackEvent =
|
|
139341
|
-
addWebBackEventListener =
|
|
139342
|
-
removeWebBackEventListener =
|
|
139268
|
+
var _ref39 = (0, import_react_native30.useBackEventState)(),
|
|
139269
|
+
webBackHandlersRef = _ref39.handlersRef,
|
|
139270
|
+
hasWebBackEvent = _ref39.hasBackEvent,
|
|
139271
|
+
addWebBackEventListener = _ref39.addEventListener,
|
|
139272
|
+
removeWebBackEventListener = _ref39.removeEventListener;
|
|
139343
139273
|
var logging = useNavigationBarLogging();
|
|
139344
|
-
var
|
|
139345
|
-
openConfirm =
|
|
139274
|
+
var _ref40 = (0, import_tds_react_native13.useDialog)(),
|
|
139275
|
+
openConfirm = _ref40.openConfirm;
|
|
139346
139276
|
var global2 = getAppsInTossGlobals();
|
|
139347
|
-
var addEventListener = (0,
|
|
139277
|
+
var addEventListener = (0, import_react24.useCallback)(handler => {
|
|
139348
139278
|
addWebBackEventListener(handler);
|
|
139349
139279
|
}, [addWebBackEventListener]);
|
|
139350
|
-
var removeEventListener = (0,
|
|
139280
|
+
var removeEventListener = (0, import_react24.useCallback)(handler => {
|
|
139351
139281
|
removeWebBackEventListener(handler);
|
|
139352
139282
|
}, [removeWebBackEventListener]);
|
|
139353
|
-
var handleWebBack = (0,
|
|
139283
|
+
var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
|
|
139354
139284
|
if (hasWebBackEvent) {
|
|
139355
139285
|
for (var handler of webBackHandlersRef) {
|
|
139356
139286
|
handler();
|
|
@@ -139369,12 +139299,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139369
139299
|
});
|
|
139370
139300
|
logging.closePopupCtaClick(isConfirmed);
|
|
139371
139301
|
if (isConfirmed) {
|
|
139372
|
-
|
|
139373
|
-
(0, import_react_native31.closeView)();
|
|
139302
|
+
(0, import_react_native30.closeView)();
|
|
139374
139303
|
}
|
|
139375
139304
|
}
|
|
139376
|
-
}), [
|
|
139377
|
-
var handleWebHome = (0,
|
|
139305
|
+
}), [global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
139306
|
+
var handleWebHome = (0, import_react24.useCallback)(() => {
|
|
139378
139307
|
logging.homeButtonClick();
|
|
139379
139308
|
if (homeEvent.hasSubscriptions()) {
|
|
139380
139309
|
homeEvent.emit({});
|
|
@@ -139387,7 +139316,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139387
139316
|
})();
|
|
139388
139317
|
`);
|
|
139389
139318
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
|
|
139390
|
-
return (0,
|
|
139319
|
+
return (0, import_react24.useMemo)(() => ({
|
|
139391
139320
|
addEventListener,
|
|
139392
139321
|
removeEventListener,
|
|
139393
139322
|
handleWebBack,
|
|
@@ -139406,8 +139335,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139406
139335
|
});
|
|
139407
139336
|
};
|
|
139408
139337
|
}
|
|
139409
|
-
var
|
|
139410
|
-
var
|
|
139338
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139339
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
139411
139340
|
var FontA11yCategory = {
|
|
139412
139341
|
Large: "Large",
|
|
139413
139342
|
xLarge: "xLarge",
|
|
@@ -139540,33 +139469,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139540
139469
|
safeArea,
|
|
139541
139470
|
safeAreaBottomTransparency
|
|
139542
139471
|
}) {
|
|
139543
|
-
var platform = (0,
|
|
139544
|
-
var appVersion = (0,
|
|
139545
|
-
var
|
|
139546
|
-
fontScale =
|
|
139472
|
+
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
139473
|
+
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
139474
|
+
var _ref42 = (0, import_react_native31.useWindowDimensions)(),
|
|
139475
|
+
fontScale = _ref42.fontScale;
|
|
139547
139476
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
139548
139477
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
139549
139478
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
139550
139479
|
return ["AppsInToss", `TossApp/${appVersion}`, batteryModePreference && `TossBatteryModePreference/${batteryModePreference}`, colorPreference && `TossColorPreference/${colorPreference}`, `TossFontAccessibility/${fontA11y}`, `TossFontScale/${normalizedFontScale}`, locale && `TossLocale/${locale}`, navbarPreference && `TossNavbarPreference/${navbarPreference}`, pureSafeArea && `TossPureSafeArea/${pureSafeArea}`, safeArea && `TossSafeArea/${safeArea}`, safeAreaBottomTransparency && `TossSafeAreaBottomTransparency/${safeAreaBottomTransparency}`, platformString].filter(Boolean).join(" ");
|
|
139551
139480
|
}
|
|
139552
|
-
var
|
|
139553
|
-
var
|
|
139554
|
-
var
|
|
139481
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139482
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139483
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139555
139484
|
function useGeolocation({
|
|
139556
139485
|
accuracy,
|
|
139557
139486
|
distanceInterval,
|
|
139558
139487
|
timeInterval
|
|
139559
139488
|
}) {
|
|
139560
|
-
var isVisible = (0,
|
|
139561
|
-
var
|
|
139562
|
-
|
|
139563
|
-
location =
|
|
139564
|
-
setLocation =
|
|
139565
|
-
(0,
|
|
139489
|
+
var isVisible = (0, import_react_native32.useVisibility)();
|
|
139490
|
+
var _ref43 = (0, import_react25.useState)(null),
|
|
139491
|
+
_ref44 = _slicedToArray(_ref43, 2),
|
|
139492
|
+
location = _ref44[0],
|
|
139493
|
+
setLocation = _ref44[1];
|
|
139494
|
+
(0, import_react25.useEffect)(() => {
|
|
139566
139495
|
if (!isVisible) {
|
|
139567
139496
|
return;
|
|
139568
139497
|
}
|
|
139569
|
-
return (0,
|
|
139498
|
+
return (0, import_native_modules16.startUpdateLocation)({
|
|
139570
139499
|
options: {
|
|
139571
139500
|
accuracy,
|
|
139572
139501
|
distanceInterval,
|
|
@@ -139578,18 +139507,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139578
139507
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
139579
139508
|
return location;
|
|
139580
139509
|
}
|
|
139581
|
-
var
|
|
139582
|
-
var
|
|
139510
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139511
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139583
139512
|
function useWaitForReturnNavigator() {
|
|
139584
|
-
var callbacks = (0,
|
|
139585
|
-
var navigation = (0,
|
|
139586
|
-
var startNavigating = (0,
|
|
139513
|
+
var callbacks = (0, import_react26.useRef)([]).current;
|
|
139514
|
+
var navigation = (0, import_react_native33.useNavigation)();
|
|
139515
|
+
var startNavigating = (0, import_react26.useCallback)((route, params) => {
|
|
139587
139516
|
return new Promise(resolve => {
|
|
139588
139517
|
callbacks.push(resolve);
|
|
139589
139518
|
navigation.navigate(route, params);
|
|
139590
139519
|
});
|
|
139591
139520
|
}, [callbacks, navigation]);
|
|
139592
|
-
var handleVisibilityChange = (0,
|
|
139521
|
+
var handleVisibilityChange = (0, import_react26.useCallback)(state => {
|
|
139593
139522
|
if (state === "visible" && callbacks.length > 0) {
|
|
139594
139523
|
for (var callback of callbacks) {
|
|
139595
139524
|
callback();
|
|
@@ -139597,7 +139526,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139597
139526
|
callbacks.splice(0, callbacks.length);
|
|
139598
139527
|
}
|
|
139599
139528
|
}, [callbacks]);
|
|
139600
|
-
(0,
|
|
139529
|
+
(0, import_react_native33.useVisibilityChange)(handleVisibilityChange);
|
|
139601
139530
|
return startNavigating;
|
|
139602
139531
|
}
|
|
139603
139532
|
function useTopNavigation() {
|
|
@@ -139609,8 +139538,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139609
139538
|
removeAccessoryButton: removeNavigationRightButton
|
|
139610
139539
|
};
|
|
139611
139540
|
}
|
|
139612
|
-
var
|
|
139613
|
-
var
|
|
139541
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139542
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139614
139543
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139615
139544
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
139616
139545
|
var toast = (0, import_tds_react_native14.useToast)();
|
|
@@ -139639,18 +139568,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139639
139568
|
log_type: "debug",
|
|
139640
139569
|
params: {
|
|
139641
139570
|
...params,
|
|
139642
|
-
app_name:
|
|
139571
|
+
app_name: import_react_native34.Granite.appName,
|
|
139643
139572
|
deployment_id: global2.deploymentId
|
|
139644
139573
|
}
|
|
139645
139574
|
};
|
|
139646
|
-
if ((0,
|
|
139647
|
-
|
|
139575
|
+
if ((0, import_native_modules17.getOperationalEnvironment)() === "toss") {
|
|
139576
|
+
sendLog(event, {
|
|
139577
|
+
pipelines: ["core"]
|
|
139578
|
+
});
|
|
139648
139579
|
} else {
|
|
139649
139580
|
console.log("[webViewDebugLog]", event);
|
|
139650
139581
|
}
|
|
139651
139582
|
}
|
|
139652
|
-
var
|
|
139653
|
-
var
|
|
139583
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139584
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139654
139585
|
var extractDateFromUUIDv7 = uuid => {
|
|
139655
139586
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
139656
139587
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -139672,7 +139603,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139672
139603
|
};
|
|
139673
139604
|
var getReferrer2 = () => {
|
|
139674
139605
|
try {
|
|
139675
|
-
var referrer = new URL((0,
|
|
139606
|
+
var referrer = new URL((0, import_react_native35.getSchemeUri)());
|
|
139676
139607
|
return referrer.searchParams.get("referrer");
|
|
139677
139608
|
} catch {
|
|
139678
139609
|
return "";
|
|
@@ -139693,7 +139624,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139693
139624
|
deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
|
|
139694
139625
|
}
|
|
139695
139626
|
};
|
|
139696
|
-
return (0,
|
|
139627
|
+
return (0, import_native_modules18.eventLog)(log);
|
|
139697
139628
|
};
|
|
139698
139629
|
var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
139699
139630
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
@@ -139705,18 +139636,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139705
139636
|
};
|
|
139706
139637
|
function mergeSchemeQueryParamsInto(url) {
|
|
139707
139638
|
var baseUrl = new URL(url);
|
|
139708
|
-
var schemeUrl = new URL((0,
|
|
139639
|
+
var schemeUrl = new URL((0, import_react_native36.getSchemeUri)());
|
|
139709
139640
|
var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
|
|
139710
|
-
for (var
|
|
139711
|
-
var
|
|
139712
|
-
var key =
|
|
139713
|
-
var value =
|
|
139641
|
+
for (var _ref45 of baseUrl.searchParams.entries()) {
|
|
139642
|
+
var _ref46 = _slicedToArray(_ref45, 2);
|
|
139643
|
+
var key = _ref46[0];
|
|
139644
|
+
var value = _ref46[1];
|
|
139714
139645
|
resultUrl.searchParams.set(key, value);
|
|
139715
139646
|
}
|
|
139716
|
-
for (var
|
|
139717
|
-
var
|
|
139718
|
-
var _key =
|
|
139719
|
-
var _value =
|
|
139647
|
+
for (var _ref47 of schemeUrl.searchParams.entries()) {
|
|
139648
|
+
var _ref48 = _slicedToArray(_ref47, 2);
|
|
139649
|
+
var _key = _ref48[0];
|
|
139650
|
+
var _value = _ref48[1];
|
|
139720
139651
|
resultUrl.searchParams.set(_key, _value);
|
|
139721
139652
|
}
|
|
139722
139653
|
return resultUrl;
|
|
@@ -139726,8 +139657,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139726
139657
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
139727
139658
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
139728
139659
|
}
|
|
139729
|
-
var
|
|
139730
|
-
rawUrl =
|
|
139660
|
+
var _ref49 = (0, import_native_modules19.safeSyncPostMessage)("getWebBundleURL", {}),
|
|
139661
|
+
rawUrl = _ref49.url;
|
|
139731
139662
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
139732
139663
|
var deploymentId = env.getDeploymentId();
|
|
139733
139664
|
if (deploymentId) {
|
|
@@ -139744,8 +139675,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139744
139675
|
if (!TYPES.includes(type)) {
|
|
139745
139676
|
throw new Error(`Invalid WebView type: '${type}'`);
|
|
139746
139677
|
}
|
|
139747
|
-
var webViewRef = (0,
|
|
139748
|
-
var url = (0,
|
|
139678
|
+
var webViewRef = (0, import_react27.useRef)(null);
|
|
139679
|
+
var url = (0, import_react27.useMemo)(() => getWebViewURL(local), [local]);
|
|
139749
139680
|
var webBackHandler = useWebBackHandler(url, webViewRef);
|
|
139750
139681
|
var top = (0, import_private9.useSafeAreaTop)();
|
|
139751
139682
|
var bottom = (0, import_private9.useSafeAreaBottom)();
|
|
@@ -139753,10 +139684,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139753
139684
|
var global2 = getAppsInTossGlobals();
|
|
139754
139685
|
var navigationBarContext = useNavigationBarContext();
|
|
139755
139686
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
139756
|
-
var
|
|
139757
|
-
|
|
139758
|
-
allowsBackForwardNavigationGestures =
|
|
139759
|
-
setAllowsBackForwardNavigationGestures =
|
|
139687
|
+
var _ref50 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
|
|
139688
|
+
_ref51 = _slicedToArray(_ref50, 2),
|
|
139689
|
+
allowsBackForwardNavigationGestures = _ref51[0],
|
|
139690
|
+
setAllowsBackForwardNavigationGestures = _ref51[1];
|
|
139760
139691
|
var handler = useBridgeHandler({
|
|
139761
139692
|
onMessage,
|
|
139762
139693
|
eventListenerMap: {
|
|
@@ -139783,7 +139714,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139783
139714
|
onEvent,
|
|
139784
139715
|
onError,
|
|
139785
139716
|
options
|
|
139786
|
-
}) =>
|
|
139717
|
+
}) => import_native_modules19.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
139787
139718
|
onEvent,
|
|
139788
139719
|
onError,
|
|
139789
139720
|
options
|
|
@@ -139795,19 +139726,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139795
139726
|
onEvent,
|
|
139796
139727
|
onError,
|
|
139797
139728
|
options
|
|
139798
|
-
}) =>
|
|
139729
|
+
}) => import_native_modules19.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
139799
139730
|
onEvent,
|
|
139800
139731
|
onError,
|
|
139801
139732
|
options
|
|
139802
139733
|
}),
|
|
139803
|
-
loadAppsInTossAdMob:
|
|
139804
|
-
showAppsInTossAdMob:
|
|
139734
|
+
loadAppsInTossAdMob: import_native_modules19.GoogleAdMob.loadAppsInTossAdMob,
|
|
139735
|
+
showAppsInTossAdMob: import_native_modules19.GoogleAdMob.showAppsInTossAdMob,
|
|
139805
139736
|
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
139806
139737
|
showFullScreenAd,
|
|
139807
139738
|
fetchTossAd,
|
|
139808
|
-
iapCreateOneTimePurchaseOrder:
|
|
139809
|
-
requestSubscriptionPurchase:
|
|
139810
|
-
requestOneTimePurchase:
|
|
139739
|
+
iapCreateOneTimePurchaseOrder: import_native_modules19.IAP.createOneTimePurchaseOrder,
|
|
139740
|
+
requestSubscriptionPurchase: import_native_modules19.IAP.createSubscriptionPurchaseOrder,
|
|
139741
|
+
requestOneTimePurchase: import_native_modules19.requestOneTimePurchase
|
|
139811
139742
|
},
|
|
139812
139743
|
constantHandlerMap: {
|
|
139813
139744
|
...appsInTossConstantBridges,
|
|
@@ -139818,11 +139749,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139818
139749
|
right: insets.right
|
|
139819
139750
|
}),
|
|
139820
139751
|
...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
|
|
139821
|
-
getServerTime_isSupported:
|
|
139822
|
-
requestReview_isSupported:
|
|
139823
|
-
loadAppsInTossAdMob_isSupported:
|
|
139824
|
-
showAppsInTossAdMob_isSupported:
|
|
139825
|
-
isAppsInTossAdMobLoaded_isSupported:
|
|
139752
|
+
getServerTime_isSupported: import_native_modules19.getServerTime.isSupported,
|
|
139753
|
+
requestReview_isSupported: import_native_modules19.requestReview.isSupported,
|
|
139754
|
+
loadAppsInTossAdMob_isSupported: import_native_modules19.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
139755
|
+
showAppsInTossAdMob_isSupported: import_native_modules19.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
139756
|
+
isAppsInTossAdMobLoaded_isSupported: import_native_modules19.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
|
|
139826
139757
|
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
139827
139758
|
showFullScreenAd_isSupported: showFullScreenAd.isSupported,
|
|
139828
139759
|
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
@@ -139832,25 +139763,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139832
139763
|
},
|
|
139833
139764
|
asyncHandlerMap: {
|
|
139834
139765
|
...appsInTossAsyncBridges,
|
|
139835
|
-
getServerTime:
|
|
139766
|
+
getServerTime: import_native_modules19.getServerTime,
|
|
139836
139767
|
setIosSwipeGestureEnabled: options => {
|
|
139837
139768
|
setAllowsBackForwardNavigationGestures(options.isEnabled);
|
|
139838
139769
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
139839
139770
|
},
|
|
139840
139771
|
addAccessoryButton: function () {
|
|
139841
|
-
var
|
|
139772
|
+
var _ref52 = _asyncToGenerator(function* (params) {
|
|
139842
139773
|
return navigationBarContext.addNavigationRightButton(params);
|
|
139843
139774
|
});
|
|
139844
139775
|
return function addAccessoryButton(_x7) {
|
|
139845
|
-
return
|
|
139776
|
+
return _ref52.apply(this, arguments);
|
|
139846
139777
|
};
|
|
139847
139778
|
}(),
|
|
139848
139779
|
removeAccessoryButton: function () {
|
|
139849
|
-
var
|
|
139780
|
+
var _ref53 = _asyncToGenerator(function* () {
|
|
139850
139781
|
return navigationBarContext.removeNavigationRightButton();
|
|
139851
139782
|
});
|
|
139852
139783
|
return function removeAccessoryButton() {
|
|
139853
|
-
return
|
|
139784
|
+
return _ref53.apply(this, arguments);
|
|
139854
139785
|
};
|
|
139855
139786
|
}(),
|
|
139856
139787
|
requestPermission: appsInTossAsyncBridges.requestPermission,
|
|
@@ -139862,32 +139793,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139862
139793
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
139863
139794
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
139864
139795
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
139865
|
-
getStorageItem:
|
|
139866
|
-
setStorageItem:
|
|
139867
|
-
removeStorageItem:
|
|
139868
|
-
clearItems:
|
|
139869
|
-
iapGetProductItemList:
|
|
139870
|
-
iapCreateOneTimePurchaseOrder:
|
|
139871
|
-
processProductGrant:
|
|
139872
|
-
getPendingOrders:
|
|
139873
|
-
getCompletedOrRefundedOrders:
|
|
139874
|
-
completeProductGrant:
|
|
139875
|
-
getSubscriptionInfo:
|
|
139876
|
-
isAppsInTossAdMobLoaded:
|
|
139796
|
+
getStorageItem: import_native_modules19.Storage.getItem,
|
|
139797
|
+
setStorageItem: import_native_modules19.Storage.setItem,
|
|
139798
|
+
removeStorageItem: import_native_modules19.Storage.removeItem,
|
|
139799
|
+
clearItems: import_native_modules19.Storage.clearItems,
|
|
139800
|
+
iapGetProductItemList: import_native_modules19.IAP.getProductItemList,
|
|
139801
|
+
iapCreateOneTimePurchaseOrder: import_native_modules19.iapCreateOneTimePurchaseOrder,
|
|
139802
|
+
processProductGrant: import_native_modules19.processProductGrant,
|
|
139803
|
+
getPendingOrders: import_native_modules19.IAP.getPendingOrders,
|
|
139804
|
+
getCompletedOrRefundedOrders: import_native_modules19.IAP.getCompletedOrRefundedOrders,
|
|
139805
|
+
completeProductGrant: import_native_modules19.IAP.completeProductGrant,
|
|
139806
|
+
getSubscriptionInfo: import_native_modules19.IAP.getSubscriptionInfo,
|
|
139807
|
+
isAppsInTossAdMobLoaded: import_native_modules19.GoogleAdMob.isAppsInTossAdMobLoaded,
|
|
139877
139808
|
tossAdEventLog,
|
|
139878
139809
|
memoryDebugLog: webViewMemoryDebugLog,
|
|
139879
139810
|
debugLog: function () {
|
|
139880
|
-
var
|
|
139881
|
-
(
|
|
139882
|
-
import_native_modules24.INTERNAL__module.tossCoreEventLog(event);
|
|
139811
|
+
var _ref54 = _asyncToGenerator(function* (event) {
|
|
139812
|
+
sendLog(event);
|
|
139883
139813
|
});
|
|
139884
139814
|
return function debugLog(_x8) {
|
|
139885
|
-
return
|
|
139815
|
+
return _ref54.apply(this, arguments);
|
|
139886
139816
|
};
|
|
139887
139817
|
}()
|
|
139888
139818
|
}
|
|
139889
139819
|
});
|
|
139890
|
-
var headerPropForExternalWebView = (0,
|
|
139820
|
+
var headerPropForExternalWebView = (0, import_react27.useMemo)(() => {
|
|
139891
139821
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
139892
139822
|
var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
|
|
139893
139823
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
@@ -139908,12 +139838,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139908
139838
|
colorPreference: "light"
|
|
139909
139839
|
});
|
|
139910
139840
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
139911
|
-
(0,
|
|
139841
|
+
(0, import_react27.useEffect)(() => {
|
|
139912
139842
|
var callback = () => {
|
|
139913
139843
|
webBackHandler.handleWebBack();
|
|
139914
139844
|
return true;
|
|
139915
139845
|
};
|
|
139916
|
-
var subscription =
|
|
139846
|
+
var subscription = import_react_native37.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
139917
139847
|
return () => subscription.remove();
|
|
139918
139848
|
}, [webBackHandler]);
|
|
139919
139849
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
@@ -139937,14 +139867,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139937
139867
|
webBackHandler.onNavigationStateChange(event);
|
|
139938
139868
|
},
|
|
139939
139869
|
textZoom: 100,
|
|
139940
|
-
userAgent:
|
|
139870
|
+
userAgent: import_react_native37.Platform.OS === "ios" ? userAgent : void 0,
|
|
139941
139871
|
sharedCookiesEnabled: true,
|
|
139942
139872
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
139943
139873
|
thirdPartyCookiesEnabled: true,
|
|
139944
139874
|
onMessage: handler.onMessage,
|
|
139945
139875
|
injectedJavaScript: import_user_scripts.afterDocumentLoad,
|
|
139946
139876
|
injectedJavaScriptBeforeContentLoaded: [handler.injectedJavaScript, import_user_scripts.beforeDocumentLoad].join("\n"),
|
|
139947
|
-
decelerationRate:
|
|
139877
|
+
decelerationRate: import_react_native37.Platform.OS === "ios" ? 1 : void 0,
|
|
139948
139878
|
allowsBackForwardNavigationGestures,
|
|
139949
139879
|
onShouldStartLoadWithRequest: event => {
|
|
139950
139880
|
try {
|
|
@@ -139952,7 +139882,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139952
139882
|
if (["https:", "http:"].includes(url2.protocol) || url2.href === "about:blank") {
|
|
139953
139883
|
return true;
|
|
139954
139884
|
} else {
|
|
139955
|
-
|
|
139885
|
+
import_react_native37.Linking.openURL(convertIntentURL(url2) ?? url2.href);
|
|
139956
139886
|
return false;
|
|
139957
139887
|
}
|
|
139958
139888
|
} catch (error) {
|
|
@@ -139970,9 +139900,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139970
139900
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"), module.exports);
|
|
139971
139901
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/types"), module.exports);
|
|
139972
139902
|
var import_types = _$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/types");
|
|
139973
|
-
var
|
|
139974
|
-
var
|
|
139975
|
-
var
|
|
139903
|
+
var import_react_native41 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139904
|
+
var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139905
|
+
var import_react_native42 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
139976
139906
|
var SDK_ID = "106";
|
|
139977
139907
|
var LIST_BANNER_STYLE_ID = "1";
|
|
139978
139908
|
var NATIVE_IMAGE_STYLE_ID = "2";
|
|
@@ -140250,7 +140180,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140250
140180
|
});
|
|
140251
140181
|
return _loadAd.apply(this, arguments);
|
|
140252
140182
|
}
|
|
140253
|
-
var
|
|
140183
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
140254
140184
|
function isSafeUrl(url) {
|
|
140255
140185
|
try {
|
|
140256
140186
|
var parsed = new URL(url);
|
|
@@ -140266,7 +140196,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140266
140196
|
return;
|
|
140267
140197
|
}
|
|
140268
140198
|
try {
|
|
140269
|
-
(0,
|
|
140199
|
+
(0, import_react_native38.openURL)(getWebSchemeOrUri(url));
|
|
140270
140200
|
} catch (error) {
|
|
140271
140201
|
console.error("[InlineAd] Failed to open landing URL:", error);
|
|
140272
140202
|
}
|
|
@@ -140374,8 +140304,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140374
140304
|
}]);
|
|
140375
140305
|
}();
|
|
140376
140306
|
var import_react_native_svg = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-svg");
|
|
140377
|
-
var
|
|
140378
|
-
var
|
|
140307
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140308
|
+
var import_react_native39 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140379
140309
|
var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140380
140310
|
var ARROW_PATH = "m7.5 20.4c-.5-.5-.5-1.2 0-1.7l6.7-6.7-6.8-6.7c-.5-.5-.5-1.2 0-1.7s1.2-.5 1.7 0l7.5 7.5c.5.5.5 1.2 0 1.7l-7.5 7.5c-.2.3-.5.4-.8.4s-.6-.1-.8-.3z";
|
|
140381
140311
|
function FeedBannerAdView({
|
|
@@ -140393,12 +140323,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140393
140323
|
paddingStyle,
|
|
140394
140324
|
onPress
|
|
140395
140325
|
}) {
|
|
140396
|
-
var scale = (0,
|
|
140326
|
+
var scale = (0, import_react28.useRef)(new import_react_native39.Animated.Value(1)).current;
|
|
140397
140327
|
var animateScale = toValue => {
|
|
140398
|
-
|
|
140328
|
+
import_react_native39.Animated.timing(scale, {
|
|
140399
140329
|
toValue,
|
|
140400
140330
|
duration: 100,
|
|
140401
|
-
easing:
|
|
140331
|
+
easing: import_react_native39.Easing.inOut(import_react_native39.Easing.ease),
|
|
140402
140332
|
useNativeDriver: true
|
|
140403
140333
|
}).start();
|
|
140404
140334
|
};
|
|
@@ -140410,52 +140340,52 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140410
140340
|
};
|
|
140411
140341
|
var resolvedCtaBackground = ctaBackgroundColor ?? "#3081F9";
|
|
140412
140342
|
var resolvedCtaTextColor = ctaTextColor ?? "#ffffff";
|
|
140413
|
-
return (0, import_jsx_runtime20.jsx)(
|
|
140343
|
+
return (0, import_jsx_runtime20.jsx)(import_react_native39.Pressable, {
|
|
140414
140344
|
accessibilityRole: "button",
|
|
140415
140345
|
onPress: () => onPress(null),
|
|
140416
140346
|
onPressIn: handlePressIn,
|
|
140417
140347
|
onPressOut: handlePressOut,
|
|
140418
140348
|
style: styles.pressable,
|
|
140419
|
-
children: (0, import_jsx_runtime20.jsxs)(
|
|
140349
|
+
children: (0, import_jsx_runtime20.jsxs)(import_react_native39.Animated.View, {
|
|
140420
140350
|
style: [styles.container, paddingStyle, {
|
|
140421
140351
|
transform: [{
|
|
140422
140352
|
scale
|
|
140423
140353
|
}]
|
|
140424
140354
|
}],
|
|
140425
|
-
children: [(0, import_jsx_runtime20.jsxs)(
|
|
140355
|
+
children: [(0, import_jsx_runtime20.jsxs)(import_react_native39.View, {
|
|
140426
140356
|
style: styles.profileContainer,
|
|
140427
|
-
children: [(0, import_jsx_runtime20.jsxs)(
|
|
140357
|
+
children: [(0, import_jsx_runtime20.jsxs)(import_react_native39.View, {
|
|
140428
140358
|
style: styles.brandArea,
|
|
140429
|
-
children: [(0, import_jsx_runtime20.jsx)(
|
|
140359
|
+
children: [(0, import_jsx_runtime20.jsx)(import_react_native39.Pressable, {
|
|
140430
140360
|
accessibilityRole: "button",
|
|
140431
140361
|
onPress: () => onPress("202"),
|
|
140432
140362
|
onPressIn: handlePressIn,
|
|
140433
140363
|
onPressOut: handlePressOut,
|
|
140434
140364
|
style: styles.logoContainer,
|
|
140435
|
-
children: (0, import_jsx_runtime20.jsxs)(
|
|
140365
|
+
children: (0, import_jsx_runtime20.jsxs)(import_react_native39.View, {
|
|
140436
140366
|
style: [styles.logoWrapper, {
|
|
140437
140367
|
backgroundColor: colors.brandLogoBg
|
|
140438
140368
|
}],
|
|
140439
|
-
children: [brandLogoUri ? (0, import_jsx_runtime20.jsx)(
|
|
140369
|
+
children: [brandLogoUri ? (0, import_jsx_runtime20.jsx)(import_react_native39.Image, {
|
|
140440
140370
|
source: {
|
|
140441
140371
|
uri: brandLogoUri
|
|
140442
140372
|
},
|
|
140443
140373
|
style: styles.logoImage,
|
|
140444
140374
|
resizeMode: "cover"
|
|
140445
|
-
}) : null, (0, import_jsx_runtime20.jsx)(
|
|
140375
|
+
}) : null, (0, import_jsx_runtime20.jsx)(import_react_native39.View, {
|
|
140446
140376
|
style: [styles.logoOverlay, {
|
|
140447
140377
|
borderColor: colors.brandLogoBorder
|
|
140448
140378
|
}]
|
|
140449
140379
|
})]
|
|
140450
140380
|
})
|
|
140451
|
-
}), (0, import_jsx_runtime20.jsxs)(
|
|
140381
|
+
}), (0, import_jsx_runtime20.jsxs)(import_react_native39.View, {
|
|
140452
140382
|
style: styles.brandTextContainer,
|
|
140453
|
-
children: [(0, import_jsx_runtime20.jsx)(
|
|
140383
|
+
children: [(0, import_jsx_runtime20.jsx)(import_react_native39.Pressable, {
|
|
140454
140384
|
accessibilityRole: "button",
|
|
140455
140385
|
onPress: () => onPress("103"),
|
|
140456
140386
|
onPressIn: handlePressIn,
|
|
140457
140387
|
onPressOut: handlePressOut,
|
|
140458
|
-
children: (0, import_jsx_runtime20.jsx)(
|
|
140388
|
+
children: (0, import_jsx_runtime20.jsx)(import_react_native39.Text, {
|
|
140459
140389
|
allowFontScaling: false,
|
|
140460
140390
|
numberOfLines: 1,
|
|
140461
140391
|
style: [styles.brandName, {
|
|
@@ -140463,7 +140393,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140463
140393
|
}],
|
|
140464
140394
|
children: brandName
|
|
140465
140395
|
})
|
|
140466
|
-
}), isAdBadgeEnabled ? (0, import_jsx_runtime20.jsx)(
|
|
140396
|
+
}), isAdBadgeEnabled ? (0, import_jsx_runtime20.jsx)(import_react_native39.Text, {
|
|
140467
140397
|
allowFontScaling: false,
|
|
140468
140398
|
numberOfLines: 1,
|
|
140469
140399
|
style: [styles.adBadge, {
|
|
@@ -140472,26 +140402,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140472
140402
|
children: "\uAD11\uACE0"
|
|
140473
140403
|
}) : null]
|
|
140474
140404
|
})]
|
|
140475
|
-
}), (0, import_jsx_runtime20.jsxs)(
|
|
140405
|
+
}), (0, import_jsx_runtime20.jsxs)(import_react_native39.View, {
|
|
140476
140406
|
style: styles.textArea,
|
|
140477
|
-
children: [(0, import_jsx_runtime20.jsx)(
|
|
140407
|
+
children: [(0, import_jsx_runtime20.jsx)(import_react_native39.Pressable, {
|
|
140478
140408
|
accessibilityRole: "button",
|
|
140479
140409
|
onPress: () => onPress("101"),
|
|
140480
140410
|
onPressIn: handlePressIn,
|
|
140481
140411
|
onPressOut: handlePressOut,
|
|
140482
|
-
children: (0, import_jsx_runtime20.jsx)(
|
|
140412
|
+
children: (0, import_jsx_runtime20.jsx)(import_react_native39.Text, {
|
|
140483
140413
|
allowFontScaling: false,
|
|
140484
140414
|
style: [styles.title, {
|
|
140485
140415
|
color: colors.title
|
|
140486
140416
|
}],
|
|
140487
140417
|
children: title
|
|
140488
140418
|
})
|
|
140489
|
-
}), (0, import_jsx_runtime20.jsx)(
|
|
140419
|
+
}), (0, import_jsx_runtime20.jsx)(import_react_native39.Pressable, {
|
|
140490
140420
|
accessibilityRole: "button",
|
|
140491
140421
|
onPress: () => onPress("102"),
|
|
140492
140422
|
onPressIn: handlePressIn,
|
|
140493
140423
|
onPressOut: handlePressOut,
|
|
140494
|
-
children: (0, import_jsx_runtime20.jsx)(
|
|
140424
|
+
children: (0, import_jsx_runtime20.jsx)(import_react_native39.Text, {
|
|
140495
140425
|
allowFontScaling: false,
|
|
140496
140426
|
style: [styles.subtitle, {
|
|
140497
140427
|
color: colors.subtitle
|
|
@@ -140500,17 +140430,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140500
140430
|
})
|
|
140501
140431
|
})]
|
|
140502
140432
|
})]
|
|
140503
|
-
}), (0, import_jsx_runtime20.jsxs)(
|
|
140433
|
+
}), (0, import_jsx_runtime20.jsxs)(import_react_native39.View, {
|
|
140504
140434
|
style: styles.card,
|
|
140505
|
-
children: [(0, import_jsx_runtime20.jsx)(
|
|
140435
|
+
children: [(0, import_jsx_runtime20.jsx)(import_react_native39.Pressable, {
|
|
140506
140436
|
accessibilityRole: "button",
|
|
140507
140437
|
onPress: () => onPress("201"),
|
|
140508
140438
|
onPressIn: handlePressIn,
|
|
140509
140439
|
onPressOut: handlePressOut,
|
|
140510
140440
|
style: styles.imageButton,
|
|
140511
|
-
children: (0, import_jsx_runtime20.jsx)(
|
|
140441
|
+
children: (0, import_jsx_runtime20.jsx)(import_react_native39.View, {
|
|
140512
140442
|
style: styles.imageContainer,
|
|
140513
|
-
children: mainImageUri ? (0, import_jsx_runtime20.jsx)(
|
|
140443
|
+
children: mainImageUri ? (0, import_jsx_runtime20.jsx)(import_react_native39.Image, {
|
|
140514
140444
|
source: {
|
|
140515
140445
|
uri: mainImageUri
|
|
140516
140446
|
},
|
|
@@ -140518,7 +140448,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140518
140448
|
resizeMode: "cover"
|
|
140519
140449
|
}) : null
|
|
140520
140450
|
})
|
|
140521
|
-
}), (0, import_jsx_runtime20.jsxs)(
|
|
140451
|
+
}), (0, import_jsx_runtime20.jsxs)(import_react_native39.Pressable, {
|
|
140522
140452
|
accessibilityRole: "button",
|
|
140523
140453
|
onPress: () => onPress("0"),
|
|
140524
140454
|
onPressIn: handlePressIn,
|
|
@@ -140526,7 +140456,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140526
140456
|
style: [styles.cta, {
|
|
140527
140457
|
backgroundColor: resolvedCtaBackground
|
|
140528
140458
|
}],
|
|
140529
|
-
children: [(0, import_jsx_runtime20.jsx)(
|
|
140459
|
+
children: [(0, import_jsx_runtime20.jsx)(import_react_native39.Text, {
|
|
140530
140460
|
allowFontScaling: false,
|
|
140531
140461
|
style: [styles.ctaText, {
|
|
140532
140462
|
color: resolvedCtaTextColor
|
|
@@ -140541,12 +140471,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140541
140471
|
fill: resolvedCtaTextColor
|
|
140542
140472
|
})
|
|
140543
140473
|
})]
|
|
140544
|
-
}), (0, import_jsx_runtime20.jsx)(
|
|
140474
|
+
}), (0, import_jsx_runtime20.jsx)(import_react_native39.View, {
|
|
140545
140475
|
style: [styles.cardOverlay, {
|
|
140546
140476
|
borderColor: colors.imageOverlayBorder
|
|
140547
140477
|
}]
|
|
140548
140478
|
})]
|
|
140549
|
-
}), adClearanceText ? (0, import_jsx_runtime20.jsx)(
|
|
140479
|
+
}), adClearanceText ? (0, import_jsx_runtime20.jsx)(import_react_native39.Text, {
|
|
140550
140480
|
allowFontScaling: false,
|
|
140551
140481
|
style: [styles.adClearance, {
|
|
140552
140482
|
color: colors.adClearance
|
|
@@ -140556,7 +140486,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140556
140486
|
})
|
|
140557
140487
|
});
|
|
140558
140488
|
}
|
|
140559
|
-
var styles =
|
|
140489
|
+
var styles = import_react_native39.StyleSheet.create({
|
|
140560
140490
|
pressable: {
|
|
140561
140491
|
width: "100%"
|
|
140562
140492
|
},
|
|
@@ -140595,7 +140525,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140595
140525
|
borderRadius: 18
|
|
140596
140526
|
},
|
|
140597
140527
|
logoOverlay: {
|
|
140598
|
-
...
|
|
140528
|
+
...import_react_native39.StyleSheet.absoluteFillObject,
|
|
140599
140529
|
borderWidth: 1,
|
|
140600
140530
|
borderRadius: 18
|
|
140601
140531
|
},
|
|
@@ -140658,7 +140588,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140658
140588
|
lineHeight: 22.5
|
|
140659
140589
|
},
|
|
140660
140590
|
cardOverlay: {
|
|
140661
|
-
...
|
|
140591
|
+
...import_react_native39.StyleSheet.absoluteFillObject,
|
|
140662
140592
|
borderWidth: 2,
|
|
140663
140593
|
borderRadius: 12,
|
|
140664
140594
|
pointerEvents: "none"
|
|
@@ -140670,8 +140600,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140670
140600
|
}
|
|
140671
140601
|
});
|
|
140672
140602
|
var import_react_native_svg2 = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-svg");
|
|
140673
|
-
var
|
|
140674
|
-
var
|
|
140603
|
+
var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140604
|
+
var import_react_native40 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140675
140605
|
var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140676
140606
|
var SQUIRCLE_PATH = "M0 17.352C0 3.564 3.564 0 17.352 0H18.648C32.436 0 36 3.564 36 17.352V18.648C36 32.436 32.436 36 18.648 36H17.352C3.564 36 0 32.436 0 18.648V17.352Z";
|
|
140677
140607
|
function ListBannerAdView({
|
|
@@ -140684,13 +140614,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140684
140614
|
colors,
|
|
140685
140615
|
onPress
|
|
140686
140616
|
}) {
|
|
140687
|
-
var scale = (0,
|
|
140688
|
-
var clipIdRef = (0,
|
|
140617
|
+
var scale = (0, import_react29.useRef)(new import_react_native40.Animated.Value(1)).current;
|
|
140618
|
+
var clipIdRef = (0, import_react29.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
|
|
140689
140619
|
var animateScale = toValue => {
|
|
140690
|
-
|
|
140620
|
+
import_react_native40.Animated.timing(scale, {
|
|
140691
140621
|
toValue,
|
|
140692
140622
|
duration: 100,
|
|
140693
|
-
easing:
|
|
140623
|
+
easing: import_react_native40.Easing.inOut(import_react_native40.Easing.ease),
|
|
140694
140624
|
useNativeDriver: true
|
|
140695
140625
|
}).start();
|
|
140696
140626
|
};
|
|
@@ -140700,21 +140630,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140700
140630
|
var handlePressOut = () => {
|
|
140701
140631
|
animateScale(1);
|
|
140702
140632
|
};
|
|
140703
|
-
return (0, import_jsx_runtime21.jsx)(
|
|
140633
|
+
return (0, import_jsx_runtime21.jsx)(import_react_native40.Pressable, {
|
|
140704
140634
|
accessibilityRole: "button",
|
|
140705
140635
|
onPress: () => onPress(null),
|
|
140706
140636
|
onPressIn: handlePressIn,
|
|
140707
140637
|
onPressOut: handlePressOut,
|
|
140708
140638
|
style: styles2.pressable,
|
|
140709
|
-
children: (0, import_jsx_runtime21.jsxs)(
|
|
140639
|
+
children: (0, import_jsx_runtime21.jsxs)(import_react_native40.Animated.View, {
|
|
140710
140640
|
style: [styles2.container, paddingStyle, {
|
|
140711
140641
|
transform: [{
|
|
140712
140642
|
scale
|
|
140713
140643
|
}]
|
|
140714
140644
|
}],
|
|
140715
|
-
children: [(0, import_jsx_runtime21.jsxs)(
|
|
140645
|
+
children: [(0, import_jsx_runtime21.jsxs)(import_react_native40.View, {
|
|
140716
140646
|
style: styles2.titleRow,
|
|
140717
|
-
children: [(0, import_jsx_runtime21.jsx)(
|
|
140647
|
+
children: [(0, import_jsx_runtime21.jsx)(import_react_native40.Pressable, {
|
|
140718
140648
|
accessibilityRole: "button",
|
|
140719
140649
|
onPress: () => onPress("202"),
|
|
140720
140650
|
onPressIn: handlePressIn,
|
|
@@ -140750,26 +140680,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140750
140680
|
clipPath: `url(#${clipIdRef.current})`
|
|
140751
140681
|
})]
|
|
140752
140682
|
})
|
|
140753
|
-
}), (0, import_jsx_runtime21.jsxs)(
|
|
140683
|
+
}), (0, import_jsx_runtime21.jsxs)(import_react_native40.View, {
|
|
140754
140684
|
style: styles2.textWrapper,
|
|
140755
|
-
children: [(0, import_jsx_runtime21.jsx)(
|
|
140685
|
+
children: [(0, import_jsx_runtime21.jsx)(import_react_native40.Pressable, {
|
|
140756
140686
|
accessibilityRole: "button",
|
|
140757
140687
|
onPress: () => onPress("101"),
|
|
140758
140688
|
onPressIn: handlePressIn,
|
|
140759
140689
|
onPressOut: handlePressOut,
|
|
140760
|
-
children: (0, import_jsx_runtime21.jsx)(
|
|
140690
|
+
children: (0, import_jsx_runtime21.jsx)(import_react_native40.Text, {
|
|
140761
140691
|
allowFontScaling: false,
|
|
140762
140692
|
style: [styles2.title, {
|
|
140763
140693
|
color: colors.title
|
|
140764
140694
|
}],
|
|
140765
140695
|
children: title
|
|
140766
140696
|
})
|
|
140767
|
-
}), (0, import_jsx_runtime21.jsx)(
|
|
140697
|
+
}), (0, import_jsx_runtime21.jsx)(import_react_native40.Pressable, {
|
|
140768
140698
|
accessibilityRole: "button",
|
|
140769
140699
|
onPress: () => onPress("102"),
|
|
140770
140700
|
onPressIn: handlePressIn,
|
|
140771
140701
|
onPressOut: handlePressOut,
|
|
140772
|
-
children: (0, import_jsx_runtime21.jsx)(
|
|
140702
|
+
children: (0, import_jsx_runtime21.jsx)(import_react_native40.Text, {
|
|
140773
140703
|
allowFontScaling: false,
|
|
140774
140704
|
style: [styles2.subtitle, {
|
|
140775
140705
|
color: colors.subtitle
|
|
@@ -140778,7 +140708,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140778
140708
|
})
|
|
140779
140709
|
})]
|
|
140780
140710
|
})]
|
|
140781
|
-
}), adClearanceText ? (0, import_jsx_runtime21.jsx)(
|
|
140711
|
+
}), adClearanceText ? (0, import_jsx_runtime21.jsx)(import_react_native40.Text, {
|
|
140782
140712
|
allowFontScaling: false,
|
|
140783
140713
|
style: [styles2.adClearance, {
|
|
140784
140714
|
color: colors.adClearance,
|
|
@@ -140790,7 +140720,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140790
140720
|
})
|
|
140791
140721
|
});
|
|
140792
140722
|
}
|
|
140793
|
-
var styles2 =
|
|
140723
|
+
var styles2 = import_react_native40.StyleSheet.create({
|
|
140794
140724
|
pressable: {
|
|
140795
140725
|
width: "100%"
|
|
140796
140726
|
},
|
|
@@ -140998,27 +140928,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140998
140928
|
onAdImpression = props.onAdImpression,
|
|
140999
140929
|
onAdFailedToRender = props.onAdFailedToRender,
|
|
141000
140930
|
onNoFill = props.onNoFill;
|
|
141001
|
-
var slotIdRef = (0,
|
|
141002
|
-
var
|
|
141003
|
-
|
|
141004
|
-
ad =
|
|
141005
|
-
setAd =
|
|
141006
|
-
var
|
|
141007
|
-
|
|
141008
|
-
isAdBadgeEnabled =
|
|
141009
|
-
setIsAdBadgeEnabled =
|
|
141010
|
-
var eventTrackerRef = (0,
|
|
141011
|
-
var eventPayloadRef = (0,
|
|
141012
|
-
var hasRenderedRef = (0,
|
|
141013
|
-
var hasLoggedImp1pxRef = (0,
|
|
141014
|
-
var hasLoggedImp100pRef = (0,
|
|
141015
|
-
var hasNotifiedViewableRef = (0,
|
|
141016
|
-
var viewableTimerRef = (0,
|
|
141017
|
-
var refetchIntervalMsRef = (0,
|
|
141018
|
-
var lastImp1pxAtRef = (0,
|
|
141019
|
-
var loadingRef = (0,
|
|
141020
|
-
var loadRef = (0,
|
|
141021
|
-
var callbacksRef = (0,
|
|
140931
|
+
var slotIdRef = (0, import_react30.useRef)(createSlotId());
|
|
140932
|
+
var _ref55 = (0, import_react30.useState)(null),
|
|
140933
|
+
_ref56 = _slicedToArray(_ref55, 2),
|
|
140934
|
+
ad = _ref56[0],
|
|
140935
|
+
setAd = _ref56[1];
|
|
140936
|
+
var _ref57 = (0, import_react30.useState)(true),
|
|
140937
|
+
_ref58 = _slicedToArray(_ref57, 2),
|
|
140938
|
+
isAdBadgeEnabled = _ref58[0],
|
|
140939
|
+
setIsAdBadgeEnabled = _ref58[1];
|
|
140940
|
+
var eventTrackerRef = (0, import_react30.useRef)(null);
|
|
140941
|
+
var eventPayloadRef = (0, import_react30.useRef)(null);
|
|
140942
|
+
var hasRenderedRef = (0, import_react30.useRef)(false);
|
|
140943
|
+
var hasLoggedImp1pxRef = (0, import_react30.useRef)(false);
|
|
140944
|
+
var hasLoggedImp100pRef = (0, import_react30.useRef)(false);
|
|
140945
|
+
var hasNotifiedViewableRef = (0, import_react30.useRef)(false);
|
|
140946
|
+
var viewableTimerRef = (0, import_react30.useRef)(null);
|
|
140947
|
+
var refetchIntervalMsRef = (0, import_react30.useRef)(null);
|
|
140948
|
+
var lastImp1pxAtRef = (0, import_react30.useRef)(null);
|
|
140949
|
+
var loadingRef = (0, import_react30.useRef)(false);
|
|
140950
|
+
var loadRef = (0, import_react30.useRef)(null);
|
|
140951
|
+
var callbacksRef = (0, import_react30.useRef)({
|
|
141022
140952
|
onAdRendered,
|
|
141023
140953
|
onAdViewable,
|
|
141024
140954
|
onAdClicked,
|
|
@@ -141026,8 +140956,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141026
140956
|
onAdFailedToRender,
|
|
141027
140957
|
onNoFill
|
|
141028
140958
|
});
|
|
141029
|
-
var isMountedRef = (0,
|
|
141030
|
-
var colorScheme = (0,
|
|
140959
|
+
var isMountedRef = (0, import_react30.useRef)(false);
|
|
140960
|
+
var colorScheme = (0, import_react_native42.useColorScheme)();
|
|
141031
140961
|
var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
|
|
141032
140962
|
var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
|
|
141033
140963
|
var resolvedTone = tone ?? DEFAULT_INLINE_AD_TONE;
|
|
@@ -141043,7 +140973,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141043
140973
|
onAdFailedToRender,
|
|
141044
140974
|
onNoFill
|
|
141045
140975
|
};
|
|
141046
|
-
(0,
|
|
140976
|
+
(0, import_react30.useEffect)(() => {
|
|
141047
140977
|
isMountedRef.current = true;
|
|
141048
140978
|
return () => {
|
|
141049
140979
|
isMountedRef.current = false;
|
|
@@ -141053,7 +140983,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141053
140983
|
}
|
|
141054
140984
|
};
|
|
141055
140985
|
}, []);
|
|
141056
|
-
(0,
|
|
140986
|
+
(0, import_react30.useEffect)(() => {
|
|
141057
140987
|
var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
|
|
141058
140988
|
var loadAdRequest = () => {
|
|
141059
140989
|
if (loadingRef.current) {
|
|
@@ -141111,7 +141041,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141111
141041
|
loadRef.current = null;
|
|
141112
141042
|
};
|
|
141113
141043
|
}, [adGroupId]);
|
|
141114
|
-
(0,
|
|
141044
|
+
(0, import_react_native41.useVisibilityChange)(documentVisibility => {
|
|
141115
141045
|
if (documentVisibility !== "visible") {
|
|
141116
141046
|
return;
|
|
141117
141047
|
}
|
|
@@ -141124,7 +141054,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141124
141054
|
loadRef.current?.();
|
|
141125
141055
|
}
|
|
141126
141056
|
});
|
|
141127
|
-
(0,
|
|
141057
|
+
(0, import_react30.useEffect)(() => {
|
|
141128
141058
|
if (!ad || hasRenderedRef.current) {
|
|
141129
141059
|
return;
|
|
141130
141060
|
}
|
|
@@ -141209,23 +141139,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141209
141139
|
callbacksRef.current.onAdClicked?.(basePayload);
|
|
141210
141140
|
}
|
|
141211
141141
|
};
|
|
141212
|
-
return (0, import_jsx_runtime22.jsx)(
|
|
141142
|
+
return (0, import_jsx_runtime22.jsx)(import_react_native41.ImpressionArea, {
|
|
141213
141143
|
style: styles3.impressionArea,
|
|
141214
141144
|
onImpressionStart: handleImpression1px,
|
|
141215
141145
|
areaThreshold: 0,
|
|
141216
141146
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141217
|
-
children: (0, import_jsx_runtime22.jsx)(
|
|
141147
|
+
children: (0, import_jsx_runtime22.jsx)(import_react_native41.ImpressionArea, {
|
|
141218
141148
|
onImpressionStart: handleImpression100p,
|
|
141219
141149
|
areaThreshold: 1,
|
|
141220
141150
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141221
|
-
children: (0, import_jsx_runtime22.jsx)(
|
|
141151
|
+
children: (0, import_jsx_runtime22.jsx)(import_react_native41.ImpressionArea, {
|
|
141222
141152
|
onImpressionStart: handleViewableStart,
|
|
141223
141153
|
onImpressionEnd: handleViewableEnd,
|
|
141224
141154
|
areaThreshold: 0.5,
|
|
141225
141155
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141226
|
-
children: (0, import_jsx_runtime22.jsx)(
|
|
141156
|
+
children: (0, import_jsx_runtime22.jsx)(import_react_native42.View, {
|
|
141227
141157
|
style: [styles3.wrapper, resolvedVariant === "card" && styles3.cardWrapper],
|
|
141228
|
-
children: (0, import_jsx_runtime22.jsxs)(
|
|
141158
|
+
children: (0, import_jsx_runtime22.jsxs)(import_react_native42.View, {
|
|
141229
141159
|
style: [styles3.surface, {
|
|
141230
141160
|
backgroundColor
|
|
141231
141161
|
}, resolvedVariant === "card" && styles3.cardSurface],
|
|
@@ -141259,7 +141189,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141259
141189
|
})
|
|
141260
141190
|
}, impressionKey);
|
|
141261
141191
|
}
|
|
141262
|
-
var styles3 =
|
|
141192
|
+
var styles3 = import_react_native42.StyleSheet.create({
|
|
141263
141193
|
impressionArea: {
|
|
141264
141194
|
width: "100%"
|
|
141265
141195
|
},
|