@apps-in-toss/web-framework 1.2.2 → 1.4.0
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/config/index.d.ts +1 -1
- package/dist/prebuilt/dev.android.js +1476 -1116
- package/dist/prebuilt/dev.ios.js +1474 -1114
- package/dist/prebuilt/prod.android.js +988 -605
- package/dist/prebuilt/prod.ios.js +988 -605
- package/package.json +8 -8
- package/dist/cli/chunk-AZQN2M6D.js +0 -63
- package/dist/cli/chunk-PT6B3KQJ.js +0 -209904
- package/dist/cli/lib-GNFDOQZX.js +0 -1007
- package/dist/cli/typescript-WPGJO2BO.js +0 -6
- package/dist/prebuilt/prod.json +0 -14
|
@@ -44136,7 +44136,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44136
44136
|
});
|
|
44137
44137
|
|
|
44138
44138
|
// ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts
|
|
44139
|
-
var GAME_CENTER_MIN_VERSION2;
|
|
44139
|
+
var GAME_CENTER_MIN_VERSION2, GAME_USER_KEY_MIN_VERSION, GAME_PROMOTION_REWARD_MIN_VERSION;
|
|
44140
44140
|
var init_constants13 = __esm({
|
|
44141
44141
|
"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts"() {
|
|
44142
44142
|
"use strict";
|
|
@@ -44144,6 +44144,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44144
44144
|
android: "5.221.0",
|
|
44145
44145
|
ios: "5.221.0"
|
|
44146
44146
|
};
|
|
44147
|
+
GAME_USER_KEY_MIN_VERSION = {
|
|
44148
|
+
android: "5.232.0",
|
|
44149
|
+
ios: "5.232.0"
|
|
44150
|
+
};
|
|
44151
|
+
GAME_PROMOTION_REWARD_MIN_VERSION = {
|
|
44152
|
+
android: "5.232.0",
|
|
44153
|
+
ios: "5.232.0"
|
|
44154
|
+
};
|
|
44147
44155
|
}
|
|
44148
44156
|
});
|
|
44149
44157
|
|
|
@@ -44252,6 +44260,160 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44252
44260
|
}
|
|
44253
44261
|
});
|
|
44254
44262
|
|
|
44263
|
+
// ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts
|
|
44264
|
+
function getUserKeyForGame() {
|
|
44265
|
+
return _getUserKeyForGame.apply(this, arguments);
|
|
44266
|
+
}
|
|
44267
|
+
function _getUserKeyForGame() {
|
|
44268
|
+
_getUserKeyForGame = _async_to_generator(function() {
|
|
44269
|
+
var isSupported, response, _17;
|
|
44270
|
+
return __generator(this, function(_state) {
|
|
44271
|
+
switch (_state.label) {
|
|
44272
|
+
case 0:
|
|
44273
|
+
isSupported = isMinVersionSupported2(GAME_USER_KEY_MIN_VERSION);
|
|
44274
|
+
if (!isSupported) {
|
|
44275
|
+
return [
|
|
44276
|
+
2
|
|
44277
|
+
];
|
|
44278
|
+
}
|
|
44279
|
+
_state.label = 1;
|
|
44280
|
+
case 1:
|
|
44281
|
+
_state.trys.push([
|
|
44282
|
+
1,
|
|
44283
|
+
3,
|
|
44284
|
+
,
|
|
44285
|
+
4
|
|
44286
|
+
]);
|
|
44287
|
+
return [
|
|
44288
|
+
4,
|
|
44289
|
+
AppsInTossModule2.getUserKeyForGame({})
|
|
44290
|
+
];
|
|
44291
|
+
case 2:
|
|
44292
|
+
response = _state.sent();
|
|
44293
|
+
if (response.type === "HASH") {
|
|
44294
|
+
return [
|
|
44295
|
+
2,
|
|
44296
|
+
response
|
|
44297
|
+
];
|
|
44298
|
+
}
|
|
44299
|
+
if (response.type === "NOT_AVAILABLE") {
|
|
44300
|
+
return [
|
|
44301
|
+
2,
|
|
44302
|
+
"INVALID_CATEGORY"
|
|
44303
|
+
];
|
|
44304
|
+
}
|
|
44305
|
+
return [
|
|
44306
|
+
2,
|
|
44307
|
+
"ERROR"
|
|
44308
|
+
];
|
|
44309
|
+
case 3:
|
|
44310
|
+
_17 = _state.sent();
|
|
44311
|
+
return [
|
|
44312
|
+
2,
|
|
44313
|
+
"ERROR"
|
|
44314
|
+
];
|
|
44315
|
+
case 4:
|
|
44316
|
+
return [
|
|
44317
|
+
2
|
|
44318
|
+
];
|
|
44319
|
+
}
|
|
44320
|
+
});
|
|
44321
|
+
});
|
|
44322
|
+
return _getUserKeyForGame.apply(this, arguments);
|
|
44323
|
+
}
|
|
44324
|
+
var init_getUserKeyForGame = __esm({
|
|
44325
|
+
"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts"() {
|
|
44326
|
+
"use strict";
|
|
44327
|
+
init_async_to_generator();
|
|
44328
|
+
init_ts_generator();
|
|
44329
|
+
init_AppsInTossModule();
|
|
44330
|
+
init_isMinVersionSupported();
|
|
44331
|
+
init_constants13();
|
|
44332
|
+
}
|
|
44333
|
+
});
|
|
44334
|
+
|
|
44335
|
+
// ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts
|
|
44336
|
+
function isGrantPromotionRewardForGameError(error) {
|
|
44337
|
+
return (typeof error === "undefined" ? "undefined" : _type_of(error)) === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
|
|
44338
|
+
}
|
|
44339
|
+
function grantPromotionRewardForGame(_17) {
|
|
44340
|
+
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
44341
|
+
}
|
|
44342
|
+
function _grantPromotionRewardForGame() {
|
|
44343
|
+
_grantPromotionRewardForGame = _async_to_generator(function(param) {
|
|
44344
|
+
var params, isSupported, response, error;
|
|
44345
|
+
return __generator(this, function(_state) {
|
|
44346
|
+
switch (_state.label) {
|
|
44347
|
+
case 0:
|
|
44348
|
+
params = param.params;
|
|
44349
|
+
isSupported = isMinVersionSupported2(GAME_PROMOTION_REWARD_MIN_VERSION);
|
|
44350
|
+
if (!isSupported) {
|
|
44351
|
+
return [
|
|
44352
|
+
2
|
|
44353
|
+
];
|
|
44354
|
+
}
|
|
44355
|
+
_state.label = 1;
|
|
44356
|
+
case 1:
|
|
44357
|
+
_state.trys.push([
|
|
44358
|
+
1,
|
|
44359
|
+
3,
|
|
44360
|
+
,
|
|
44361
|
+
4
|
|
44362
|
+
]);
|
|
44363
|
+
return [
|
|
44364
|
+
4,
|
|
44365
|
+
AppsInTossModule2.grantPromotionRewardForGame({
|
|
44366
|
+
params
|
|
44367
|
+
})
|
|
44368
|
+
];
|
|
44369
|
+
case 2:
|
|
44370
|
+
response = _state.sent();
|
|
44371
|
+
if (response.key) {
|
|
44372
|
+
return [
|
|
44373
|
+
2,
|
|
44374
|
+
response
|
|
44375
|
+
];
|
|
44376
|
+
}
|
|
44377
|
+
return [
|
|
44378
|
+
2,
|
|
44379
|
+
"ERROR"
|
|
44380
|
+
];
|
|
44381
|
+
case 3:
|
|
44382
|
+
error = _state.sent();
|
|
44383
|
+
if (isGrantPromotionRewardForGameError(error)) {
|
|
44384
|
+
return [
|
|
44385
|
+
2,
|
|
44386
|
+
{
|
|
44387
|
+
errorCode: error.code,
|
|
44388
|
+
message: error.message
|
|
44389
|
+
}
|
|
44390
|
+
];
|
|
44391
|
+
}
|
|
44392
|
+
return [
|
|
44393
|
+
2,
|
|
44394
|
+
"ERROR"
|
|
44395
|
+
];
|
|
44396
|
+
case 4:
|
|
44397
|
+
return [
|
|
44398
|
+
2
|
|
44399
|
+
];
|
|
44400
|
+
}
|
|
44401
|
+
});
|
|
44402
|
+
});
|
|
44403
|
+
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
44404
|
+
}
|
|
44405
|
+
var init_grantPromotionRewardForGame = __esm({
|
|
44406
|
+
"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts"() {
|
|
44407
|
+
"use strict";
|
|
44408
|
+
init_async_to_generator();
|
|
44409
|
+
init_type_of();
|
|
44410
|
+
init_ts_generator();
|
|
44411
|
+
init_AppsInTossModule();
|
|
44412
|
+
init_isMinVersionSupported();
|
|
44413
|
+
init_constants13();
|
|
44414
|
+
}
|
|
44415
|
+
});
|
|
44416
|
+
|
|
44255
44417
|
// ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/async-bridges.ts
|
|
44256
44418
|
var async_bridges_exports = {};
|
|
44257
44419
|
__export(async_bridges_exports, {
|
|
@@ -44297,6 +44459,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44297
44459
|
getTossShareLink: function() {
|
|
44298
44460
|
return getTossShareLink;
|
|
44299
44461
|
},
|
|
44462
|
+
getUserKeyForGame: function() {
|
|
44463
|
+
return getUserKeyForGame;
|
|
44464
|
+
},
|
|
44465
|
+
grantPromotionRewardForGame: function() {
|
|
44466
|
+
return grantPromotionRewardForGame;
|
|
44467
|
+
},
|
|
44300
44468
|
openCamera: function() {
|
|
44301
44469
|
return openCamera2;
|
|
44302
44470
|
},
|
|
@@ -44367,6 +44535,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44367
44535
|
init_getGameCenterGameProfile();
|
|
44368
44536
|
init_openGameCenterLeaderboard();
|
|
44369
44537
|
init_submitGameCenterLeaderBoardScore();
|
|
44538
|
+
init_getUserKeyForGame();
|
|
44539
|
+
init_grantPromotionRewardForGame();
|
|
44370
44540
|
}
|
|
44371
44541
|
});
|
|
44372
44542
|
|
|
@@ -45202,6 +45372,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45202
45372
|
init_openGameCenterLeaderboard();
|
|
45203
45373
|
init_getGameCenterGameProfile();
|
|
45204
45374
|
init_submitGameCenterLeaderBoardScore();
|
|
45375
|
+
init_getUserKeyForGame();
|
|
45376
|
+
init_grantPromotionRewardForGame();
|
|
45205
45377
|
init_contactsViral();
|
|
45206
45378
|
init_appsInTossSignTossCert();
|
|
45207
45379
|
}
|
|
@@ -45386,19 +45558,161 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45386
45558
|
var controller = useBridge();
|
|
45387
45559
|
var appsInTossGlobals = getAppsInTossGlobals();
|
|
45388
45560
|
(0, import_react213.useEffect)(function() {
|
|
45389
|
-
var
|
|
45561
|
+
var isGameApp = appsInTossGlobals.webViewType === "game" || appsInTossGlobals.appType === "game";
|
|
45562
|
+
controller.open({
|
|
45390
45563
|
serviceName: appsInTossGlobals.brandDisplayName,
|
|
45391
45564
|
icon: toIcon(appsInTossGlobals.brandIcon),
|
|
45392
45565
|
color: appsInTossGlobals.brandPrimaryColor,
|
|
45393
|
-
colorMode: appsInTossGlobals.brandBridgeColorMode
|
|
45394
|
-
};
|
|
45395
|
-
controller.open(_object_spread_props(_object_spread({}, commonProps), {
|
|
45566
|
+
colorMode: isGameApp ? "inverted" : appsInTossGlobals.brandBridgeColorMode,
|
|
45396
45567
|
onExited: function() {
|
|
45397
45568
|
appsInTossEvent.emit("entryMessageExited", void 0);
|
|
45398
45569
|
}
|
|
45399
|
-
})
|
|
45570
|
+
});
|
|
45400
45571
|
}, []);
|
|
45401
45572
|
}
|
|
45573
|
+
function useAppUpdateDialog() {
|
|
45574
|
+
var openConfirm = useDialog().openConfirm;
|
|
45575
|
+
var logging = useAppUpdateDialogLogging();
|
|
45576
|
+
var openAppUpdateDialog = (0, import_react216.useCallback)(function() {
|
|
45577
|
+
var _ref = _async_to_generator(function(param) {
|
|
45578
|
+
var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, onDismiss, isConfirmed, STORE_SCHEME;
|
|
45579
|
+
return __generator(this, function(_state) {
|
|
45580
|
+
switch (_state.label) {
|
|
45581
|
+
case 0:
|
|
45582
|
+
title = param.title, description = param.description, _param_leftButton = param.leftButton, leftButton = _param_leftButton === void 0 ? "\uB2EB\uAE30" : _param_leftButton, _param_rightButton = param.rightButton, rightButton = _param_rightButton === void 0 ? "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30" : _param_rightButton, onDismiss = param.onDismiss;
|
|
45583
|
+
logging.show();
|
|
45584
|
+
return [
|
|
45585
|
+
4,
|
|
45586
|
+
openConfirm({
|
|
45587
|
+
title,
|
|
45588
|
+
description,
|
|
45589
|
+
leftButton,
|
|
45590
|
+
rightButton,
|
|
45591
|
+
closeOnDimmerClick: true
|
|
45592
|
+
})
|
|
45593
|
+
];
|
|
45594
|
+
case 1:
|
|
45595
|
+
isConfirmed = _state.sent();
|
|
45596
|
+
if (!isConfirmed) {
|
|
45597
|
+
logging.close();
|
|
45598
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
45599
|
+
return [
|
|
45600
|
+
2
|
|
45601
|
+
];
|
|
45602
|
+
}
|
|
45603
|
+
logging.update();
|
|
45604
|
+
STORE_SCHEME = getMarketLink();
|
|
45605
|
+
openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
45606
|
+
return [
|
|
45607
|
+
2
|
|
45608
|
+
];
|
|
45609
|
+
}
|
|
45610
|
+
});
|
|
45611
|
+
});
|
|
45612
|
+
return function(_17) {
|
|
45613
|
+
return _ref.apply(this, arguments);
|
|
45614
|
+
};
|
|
45615
|
+
}(), [
|
|
45616
|
+
logging,
|
|
45617
|
+
openConfirm
|
|
45618
|
+
]);
|
|
45619
|
+
return {
|
|
45620
|
+
open: openAppUpdateDialog
|
|
45621
|
+
};
|
|
45622
|
+
}
|
|
45623
|
+
function useAppUpdateDialogLogging() {
|
|
45624
|
+
var referrer2 = useReferrer();
|
|
45625
|
+
var baseParams = {
|
|
45626
|
+
referrer: referrer2,
|
|
45627
|
+
app_name: Granite.appName
|
|
45628
|
+
};
|
|
45629
|
+
var logUpdateClick = function() {
|
|
45630
|
+
INTERNAL__module.tossCoreEventLog({
|
|
45631
|
+
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45632
|
+
log_type: "event",
|
|
45633
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45634
|
+
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
45635
|
+
event_type: "click",
|
|
45636
|
+
button_type: "update"
|
|
45637
|
+
})
|
|
45638
|
+
});
|
|
45639
|
+
};
|
|
45640
|
+
var logCloseClick = function() {
|
|
45641
|
+
INTERNAL__module.tossCoreEventLog({
|
|
45642
|
+
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45643
|
+
log_type: "event",
|
|
45644
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45645
|
+
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
45646
|
+
event_type: "click",
|
|
45647
|
+
button_type: "close"
|
|
45648
|
+
})
|
|
45649
|
+
});
|
|
45650
|
+
};
|
|
45651
|
+
var logDialogShow = function() {
|
|
45652
|
+
INTERNAL__module.tossCoreEventLog({
|
|
45653
|
+
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
45654
|
+
log_type: "popup",
|
|
45655
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45656
|
+
schema_id: UPDATE_DIALOG_SCHEMA_ID
|
|
45657
|
+
})
|
|
45658
|
+
});
|
|
45659
|
+
};
|
|
45660
|
+
return {
|
|
45661
|
+
update: logUpdateClick,
|
|
45662
|
+
close: logCloseClick,
|
|
45663
|
+
show: logDialogShow
|
|
45664
|
+
};
|
|
45665
|
+
}
|
|
45666
|
+
function useHardwareBackPress(handler) {
|
|
45667
|
+
(0, import_react221.useEffect)(function() {
|
|
45668
|
+
var handleBackPress = function() {
|
|
45669
|
+
handler();
|
|
45670
|
+
return true;
|
|
45671
|
+
};
|
|
45672
|
+
import_react_native212.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
|
|
45673
|
+
return function() {
|
|
45674
|
+
return import_react_native212.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
|
|
45675
|
+
};
|
|
45676
|
+
}, [
|
|
45677
|
+
handler
|
|
45678
|
+
]);
|
|
45679
|
+
}
|
|
45680
|
+
function useCloseConfirm() {
|
|
45681
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45682
|
+
var openConfirm = useDialog().openConfirm;
|
|
45683
|
+
return (0, import_react223.useCallback)(function() {
|
|
45684
|
+
var _ref = _async_to_generator(function(param) {
|
|
45685
|
+
var onEntered;
|
|
45686
|
+
return __generator(this, function(_state) {
|
|
45687
|
+
switch (_state.label) {
|
|
45688
|
+
case 0:
|
|
45689
|
+
onEntered = param.onEntered;
|
|
45690
|
+
return [
|
|
45691
|
+
4,
|
|
45692
|
+
openConfirm({
|
|
45693
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45694
|
+
leftButton: "\uCDE8\uC18C",
|
|
45695
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45696
|
+
closeOnDimmerClick: true,
|
|
45697
|
+
onEntered
|
|
45698
|
+
})
|
|
45699
|
+
];
|
|
45700
|
+
case 1:
|
|
45701
|
+
return [
|
|
45702
|
+
2,
|
|
45703
|
+
_state.sent()
|
|
45704
|
+
];
|
|
45705
|
+
}
|
|
45706
|
+
});
|
|
45707
|
+
});
|
|
45708
|
+
return function(_17) {
|
|
45709
|
+
return _ref.apply(this, arguments);
|
|
45710
|
+
};
|
|
45711
|
+
}(), [
|
|
45712
|
+
brandDisplayName,
|
|
45713
|
+
openConfirm
|
|
45714
|
+
]);
|
|
45715
|
+
}
|
|
45402
45716
|
function useNavigationBarLogging() {
|
|
45403
45717
|
var referrer2 = useReferrer();
|
|
45404
45718
|
var baseParams = {
|
|
@@ -45463,31 +45777,75 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45463
45777
|
homeButtonClick: logHomeButtonClick
|
|
45464
45778
|
};
|
|
45465
45779
|
}
|
|
45466
|
-
function
|
|
45467
|
-
var
|
|
45468
|
-
var hasLogged = (0, import_react215.useRef)(false);
|
|
45780
|
+
function useNavigationEvent() {
|
|
45781
|
+
var backEventContext = useBackEventContext();
|
|
45469
45782
|
var logging = useNavigationBarLogging();
|
|
45470
|
-
|
|
45471
|
-
|
|
45472
|
-
|
|
45473
|
-
|
|
45474
|
-
|
|
45475
|
-
|
|
45476
|
-
|
|
45477
|
-
|
|
45478
|
-
|
|
45479
|
-
|
|
45480
|
-
|
|
45481
|
-
|
|
45482
|
-
|
|
45483
|
-
|
|
45484
|
-
|
|
45485
|
-
|
|
45486
|
-
|
|
45487
|
-
|
|
45488
|
-
|
|
45489
|
-
|
|
45490
|
-
|
|
45783
|
+
var navigation = useNavigation();
|
|
45784
|
+
var closeConfirm = useCloseConfirm();
|
|
45785
|
+
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
45786
|
+
return (0, import_react222.useMemo)(function() {
|
|
45787
|
+
var close = function() {
|
|
45788
|
+
var _ref = _async_to_generator(function() {
|
|
45789
|
+
var hasConfirmed;
|
|
45790
|
+
return __generator(this, function(_state) {
|
|
45791
|
+
switch (_state.label) {
|
|
45792
|
+
case 0:
|
|
45793
|
+
return [
|
|
45794
|
+
4,
|
|
45795
|
+
closeConfirm({
|
|
45796
|
+
onEntered: logging.closePopupShow
|
|
45797
|
+
})
|
|
45798
|
+
];
|
|
45799
|
+
case 1:
|
|
45800
|
+
hasConfirmed = _state.sent();
|
|
45801
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
45802
|
+
if (hasConfirmed) {
|
|
45803
|
+
captureExitLog(Date.now());
|
|
45804
|
+
closeView();
|
|
45805
|
+
}
|
|
45806
|
+
return [
|
|
45807
|
+
2
|
|
45808
|
+
];
|
|
45809
|
+
}
|
|
45810
|
+
});
|
|
45811
|
+
});
|
|
45812
|
+
return function close2() {
|
|
45813
|
+
return _ref.apply(this, arguments);
|
|
45814
|
+
};
|
|
45815
|
+
}();
|
|
45816
|
+
return {
|
|
45817
|
+
handleBack: function() {
|
|
45818
|
+
if (backEventContext.hasBackEvent) {
|
|
45819
|
+
backEventContext.onBack();
|
|
45820
|
+
} else if (navigation.canGoBack()) {
|
|
45821
|
+
navigation.goBack();
|
|
45822
|
+
} else {
|
|
45823
|
+
close();
|
|
45824
|
+
}
|
|
45825
|
+
},
|
|
45826
|
+
handleHomeButtonClick: function() {
|
|
45827
|
+
logging.homeButtonClick();
|
|
45828
|
+
navigation.navigate("/");
|
|
45829
|
+
},
|
|
45830
|
+
handleCloseButtonClick: function() {
|
|
45831
|
+
logging.closeButtonClick();
|
|
45832
|
+
close();
|
|
45833
|
+
}
|
|
45834
|
+
};
|
|
45835
|
+
}, [
|
|
45836
|
+
backEventContext,
|
|
45837
|
+
navigation,
|
|
45838
|
+
closeConfirm,
|
|
45839
|
+
logging,
|
|
45840
|
+
captureExitLog
|
|
45841
|
+
]);
|
|
45842
|
+
}
|
|
45843
|
+
function useMoreButtonBottomSheetLogging() {
|
|
45844
|
+
var referrer2 = useReferrer();
|
|
45845
|
+
var baseParams = {
|
|
45846
|
+
referrer: referrer2,
|
|
45847
|
+
app_name: Granite.appName
|
|
45848
|
+
};
|
|
45491
45849
|
var logBottomSheetShow = function() {
|
|
45492
45850
|
INTERNAL__module.tossCoreEventLog({
|
|
45493
45851
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
@@ -45570,15 +45928,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45570
45928
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
45571
45929
|
referrer: SHARE_SCHEME_REFERRER
|
|
45572
45930
|
});
|
|
45573
|
-
return /* @__PURE__ */ (0,
|
|
45574
|
-
left: /* @__PURE__ */ (0,
|
|
45931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2, {
|
|
45932
|
+
left: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Icon, {
|
|
45575
45933
|
color: globals.brandPrimaryColor,
|
|
45576
45934
|
source: {
|
|
45577
45935
|
uri: APP_SHARE_MENU_INFO.contactIconUrl
|
|
45578
45936
|
},
|
|
45579
45937
|
type: "background"
|
|
45580
45938
|
}),
|
|
45581
|
-
contents: /* @__PURE__ */ (0,
|
|
45939
|
+
contents: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Texts, {
|
|
45582
45940
|
type: "1RowTypeA",
|
|
45583
45941
|
top: APP_SHARE_MENU_INFO.contactItemName,
|
|
45584
45942
|
topProps: {
|
|
@@ -45599,7 +45957,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45599
45957
|
logging.menuClick({
|
|
45600
45958
|
title: APP_SHARE_MENU_INFO.contactItemName
|
|
45601
45959
|
});
|
|
45602
|
-
|
|
45960
|
+
import_react_native217.NativeModules.AppsInTossModule.shareWithScheme({
|
|
45603
45961
|
params: {
|
|
45604
45962
|
schemeURL: schemeForShare
|
|
45605
45963
|
}
|
|
@@ -45607,98 +45965,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45607
45965
|
}
|
|
45608
45966
|
});
|
|
45609
45967
|
}
|
|
45610
|
-
function useAppUpdateDialog() {
|
|
45611
|
-
var openConfirm = useDialog().openConfirm;
|
|
45612
|
-
var logging = useAppUpdateDialogLogging();
|
|
45613
|
-
var openAppUpdateDialog = (0, import_react217.useCallback)(function() {
|
|
45614
|
-
var _ref = _async_to_generator(function(param) {
|
|
45615
|
-
var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, isConfirmed, STORE_SCHEME;
|
|
45616
|
-
return __generator(this, function(_state) {
|
|
45617
|
-
switch (_state.label) {
|
|
45618
|
-
case 0:
|
|
45619
|
-
title = param.title, description = param.description, _param_leftButton = param.leftButton, leftButton = _param_leftButton === void 0 ? "\uB2EB\uAE30" : _param_leftButton, _param_rightButton = param.rightButton, rightButton = _param_rightButton === void 0 ? "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30" : _param_rightButton;
|
|
45620
|
-
logging.show();
|
|
45621
|
-
return [
|
|
45622
|
-
4,
|
|
45623
|
-
openConfirm({
|
|
45624
|
-
title,
|
|
45625
|
-
description,
|
|
45626
|
-
leftButton,
|
|
45627
|
-
rightButton,
|
|
45628
|
-
closeOnDimmerClick: true
|
|
45629
|
-
})
|
|
45630
|
-
];
|
|
45631
|
-
case 1:
|
|
45632
|
-
isConfirmed = _state.sent();
|
|
45633
|
-
if (!isConfirmed) {
|
|
45634
|
-
logging.close();
|
|
45635
|
-
return [
|
|
45636
|
-
2
|
|
45637
|
-
];
|
|
45638
|
-
}
|
|
45639
|
-
logging.update();
|
|
45640
|
-
STORE_SCHEME = getMarketLink();
|
|
45641
|
-
openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
45642
|
-
return [
|
|
45643
|
-
2
|
|
45644
|
-
];
|
|
45645
|
-
}
|
|
45646
|
-
});
|
|
45647
|
-
});
|
|
45648
|
-
return function(_17) {
|
|
45649
|
-
return _ref.apply(this, arguments);
|
|
45650
|
-
};
|
|
45651
|
-
}(), [
|
|
45652
|
-
logging,
|
|
45653
|
-
openConfirm
|
|
45654
|
-
]);
|
|
45655
|
-
return {
|
|
45656
|
-
open: openAppUpdateDialog
|
|
45657
|
-
};
|
|
45658
|
-
}
|
|
45659
|
-
function useAppUpdateDialogLogging() {
|
|
45660
|
-
var referrer2 = useReferrer();
|
|
45661
|
-
var baseParams = {
|
|
45662
|
-
referrer: referrer2,
|
|
45663
|
-
app_name: Granite.appName
|
|
45664
|
-
};
|
|
45665
|
-
var logUpdateClick = function() {
|
|
45666
|
-
INTERNAL__module.tossCoreEventLog({
|
|
45667
|
-
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45668
|
-
log_type: "event",
|
|
45669
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45670
|
-
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
45671
|
-
event_type: "click",
|
|
45672
|
-
button_type: "update"
|
|
45673
|
-
})
|
|
45674
|
-
});
|
|
45675
|
-
};
|
|
45676
|
-
var logCloseClick = function() {
|
|
45677
|
-
INTERNAL__module.tossCoreEventLog({
|
|
45678
|
-
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45679
|
-
log_type: "event",
|
|
45680
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45681
|
-
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
45682
|
-
event_type: "click",
|
|
45683
|
-
button_type: "close"
|
|
45684
|
-
})
|
|
45685
|
-
});
|
|
45686
|
-
};
|
|
45687
|
-
var logDialogShow = function() {
|
|
45688
|
-
INTERNAL__module.tossCoreEventLog({
|
|
45689
|
-
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
45690
|
-
log_type: "popup",
|
|
45691
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45692
|
-
schema_id: UPDATE_DIALOG_SCHEMA_ID
|
|
45693
|
-
})
|
|
45694
|
-
});
|
|
45695
|
-
};
|
|
45696
|
-
return {
|
|
45697
|
-
update: logUpdateClick,
|
|
45698
|
-
close: logCloseClick,
|
|
45699
|
-
show: logDialogShow
|
|
45700
|
-
};
|
|
45701
|
-
}
|
|
45702
45968
|
function ensureValue(value, name) {
|
|
45703
45969
|
if (value === void 0) {
|
|
45704
45970
|
throw new Error("".concat(name, " is required"));
|
|
@@ -45708,14 +45974,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45708
45974
|
function useMoreButtonBottomSheet() {
|
|
45709
45975
|
var globals = getAppsInTossGlobals();
|
|
45710
45976
|
var adaptive = useAdaptive();
|
|
45711
|
-
var
|
|
45977
|
+
var _useState3 = _sliced_to_array((0, import_react224.useState)([]), 2), itemList = _useState3[0], setItemList = _useState3[1];
|
|
45712
45978
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45713
45979
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45714
45980
|
var overlay = useOverlay();
|
|
45715
45981
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
45716
45982
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
|
|
45717
45983
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
|
|
45718
|
-
(0,
|
|
45984
|
+
(0, import_react224.useEffect)(function() {
|
|
45719
45985
|
if (!isBottomSheetSupported) {
|
|
45720
45986
|
return;
|
|
45721
45987
|
}
|
|
@@ -45760,10 +46026,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45760
46026
|
logging.close();
|
|
45761
46027
|
close();
|
|
45762
46028
|
};
|
|
45763
|
-
return /* @__PURE__ */ (0,
|
|
45764
|
-
children: /* @__PURE__ */ (0,
|
|
45765
|
-
header: /* @__PURE__ */ (0,
|
|
45766
|
-
title: /* @__PURE__ */ (0,
|
|
46029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheetImpressionArea, {
|
|
46030
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheet.Root, {
|
|
46031
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(e40, {
|
|
46032
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(e40.TitleParagraph, {
|
|
45767
46033
|
color: adaptive.grey800,
|
|
45768
46034
|
fontWeight: "bold",
|
|
45769
46035
|
typography: "t5",
|
|
@@ -45771,7 +46037,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45771
46037
|
})
|
|
45772
46038
|
}),
|
|
45773
46039
|
open: isOpen,
|
|
45774
|
-
cta: /* @__PURE__ */ (0,
|
|
46040
|
+
cta: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheet.CTA, {
|
|
45775
46041
|
size: "large",
|
|
45776
46042
|
type: "dark",
|
|
45777
46043
|
style: "weak",
|
|
@@ -45782,19 +46048,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45782
46048
|
}),
|
|
45783
46049
|
onClose: handleClose,
|
|
45784
46050
|
onExited: exit,
|
|
45785
|
-
children: /* @__PURE__ */ (0,
|
|
46051
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(List, {
|
|
45786
46052
|
rowSeparator: "none",
|
|
45787
46053
|
children: [
|
|
45788
46054
|
itemList.map(function(item) {
|
|
45789
|
-
return /* @__PURE__ */ (0,
|
|
45790
|
-
left: /* @__PURE__ */ (0,
|
|
46055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2, {
|
|
46056
|
+
left: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2.Icon, {
|
|
45791
46057
|
color: globals.brandPrimaryColor,
|
|
45792
46058
|
source: {
|
|
45793
46059
|
uri: item.contactIconUrl
|
|
45794
46060
|
},
|
|
45795
46061
|
type: "background"
|
|
45796
46062
|
}),
|
|
45797
|
-
contents: /* @__PURE__ */ (0,
|
|
46063
|
+
contents: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2.Texts, {
|
|
45798
46064
|
type: "1RowTypeA",
|
|
45799
46065
|
top: item.contactItemName,
|
|
45800
46066
|
topProps: {
|
|
@@ -45810,7 +46076,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45810
46076
|
}
|
|
45811
46077
|
}, item.contactItemName);
|
|
45812
46078
|
}),
|
|
45813
|
-
isShareListMenuSupported && /* @__PURE__ */ (0,
|
|
46079
|
+
isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(AppShareListMenu, {})
|
|
45814
46080
|
]
|
|
45815
46081
|
})
|
|
45816
46082
|
})
|
|
@@ -45833,12 +46099,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45833
46099
|
function BottomSheetImpressionArea(param) {
|
|
45834
46100
|
var children = param.children;
|
|
45835
46101
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45836
|
-
(0,
|
|
46102
|
+
(0, import_react224.useEffect)(function() {
|
|
45837
46103
|
logging.show();
|
|
45838
46104
|
}, [
|
|
45839
46105
|
logging
|
|
45840
46106
|
]);
|
|
45841
|
-
return /* @__PURE__ */ (0,
|
|
46107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_jsx_runtime221.Fragment, {
|
|
45842
46108
|
children
|
|
45843
46109
|
});
|
|
45844
46110
|
}
|
|
@@ -45852,11 +46118,27 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45852
46118
|
return null;
|
|
45853
46119
|
}
|
|
45854
46120
|
}
|
|
45855
|
-
function
|
|
45856
|
-
var
|
|
45857
|
-
var
|
|
46121
|
+
function NavigationBarImpressionArea(param) {
|
|
46122
|
+
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46123
|
+
var hasLogged = (0, import_react225.useRef)(false);
|
|
45858
46124
|
var logging = useNavigationBarLogging();
|
|
45859
|
-
|
|
46125
|
+
(0, import_react225.useEffect)(function() {
|
|
46126
|
+
if (hasLogged.current === false) {
|
|
46127
|
+
logging.navBarImpression({
|
|
46128
|
+
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
46129
|
+
});
|
|
46130
|
+
hasLogged.current = true;
|
|
46131
|
+
}
|
|
46132
|
+
}, [
|
|
46133
|
+
logging,
|
|
46134
|
+
withHomeButton
|
|
46135
|
+
]);
|
|
46136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(import_jsx_runtime222.Fragment, {
|
|
46137
|
+
children
|
|
46138
|
+
});
|
|
46139
|
+
}
|
|
46140
|
+
function DefaultNavigationBar() {
|
|
46141
|
+
var globals = getAppsInTossGlobals();
|
|
45860
46142
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45861
46143
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
45862
46144
|
var _parsedNavigationBar_withHomeButton;
|
|
@@ -45864,111 +46146,124 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45864
46146
|
var _parsedNavigationBar_withBackButton;
|
|
45865
46147
|
var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
|
|
45866
46148
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
45867
|
-
var
|
|
45868
|
-
|
|
45869
|
-
|
|
45870
|
-
var handlePressTitle = (0, import_react214.useCallback)(function() {
|
|
45871
|
-
logging.homeButtonClick();
|
|
45872
|
-
navigation.navigate("/");
|
|
45873
|
-
}, [
|
|
45874
|
-
logging,
|
|
45875
|
-
navigation
|
|
45876
|
-
]);
|
|
45877
|
-
var handleClose = (0, import_react214.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
45878
|
-
var isConfirmed;
|
|
45879
|
-
return __generator(this, function(_state) {
|
|
45880
|
-
switch (_state.label) {
|
|
45881
|
-
case 0:
|
|
45882
|
-
logging.closeButtonClick();
|
|
45883
|
-
return [
|
|
45884
|
-
4,
|
|
45885
|
-
openConfirm({
|
|
45886
|
-
title: "".concat(josa(globals.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45887
|
-
leftButton: "\uCDE8\uC18C",
|
|
45888
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45889
|
-
closeOnDimmerClick: true,
|
|
45890
|
-
onEntered: logging.closePopupShow
|
|
45891
|
-
})
|
|
45892
|
-
];
|
|
45893
|
-
case 1:
|
|
45894
|
-
isConfirmed = _state.sent();
|
|
45895
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
45896
|
-
if (isConfirmed) {
|
|
45897
|
-
captureExitLog(Date.now());
|
|
45898
|
-
closeView();
|
|
45899
|
-
}
|
|
45900
|
-
return [
|
|
45901
|
-
2
|
|
45902
|
-
];
|
|
45903
|
-
}
|
|
45904
|
-
});
|
|
45905
|
-
}), [
|
|
45906
|
-
captureExitLog,
|
|
45907
|
-
globals.brandDisplayName,
|
|
45908
|
-
logging,
|
|
45909
|
-
openConfirm
|
|
45910
|
-
]);
|
|
45911
|
-
var handleBack = (0, import_react214.useCallback)(function() {
|
|
45912
|
-
if (backEventContext.hasBackEvent) {
|
|
45913
|
-
backEventContext.onBack();
|
|
45914
|
-
return;
|
|
45915
|
-
}
|
|
45916
|
-
handleBackOrClose();
|
|
45917
|
-
}, [
|
|
45918
|
-
backEventContext,
|
|
45919
|
-
handleBackOrClose
|
|
45920
|
-
]);
|
|
45921
|
-
(0, import_react214.useEffect)(function() {
|
|
45922
|
-
var handleAndroidBackEvent = function() {
|
|
45923
|
-
handleBack();
|
|
45924
|
-
return true;
|
|
45925
|
-
};
|
|
45926
|
-
import_react_native206.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45927
|
-
return function() {
|
|
45928
|
-
import_react_native206.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45929
|
-
};
|
|
45930
|
-
}, [
|
|
45931
|
-
handleBack
|
|
45932
|
-
]);
|
|
45933
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationBarImpressionArea, {
|
|
46149
|
+
var navigationEvent = useNavigationEvent();
|
|
46150
|
+
useHardwareBackPress(navigationEvent.handleBack);
|
|
46151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationBarImpressionArea, {
|
|
45934
46152
|
withHomeButton,
|
|
45935
|
-
children: /* @__PURE__ */ (0,
|
|
46153
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(TopNavigation, {
|
|
45936
46154
|
title: globals.brandDisplayName,
|
|
45937
46155
|
icon: toIcon(globals.brandIcon),
|
|
45938
46156
|
onPressDots: openMoreButtonBottomSheet,
|
|
45939
46157
|
contentVisible: true,
|
|
45940
|
-
onPressTitle: withHomeButton ?
|
|
45941
|
-
onPressClose:
|
|
46158
|
+
onPressTitle: withHomeButton ? navigationEvent.handleHomeButtonClick : void 0,
|
|
46159
|
+
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
45942
46160
|
withHome: withHomeButton,
|
|
45943
|
-
fixedRightButton: initialAccessoryButton
|
|
45944
|
-
|
|
45945
|
-
icon: initialAccessoryButton.icon,
|
|
45946
|
-
id: initialAccessoryButton.id
|
|
45947
|
-
} : void 0,
|
|
45948
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationLeft2, {
|
|
46161
|
+
fixedRightButton: initialAccessoryButton,
|
|
46162
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationLeft2, {
|
|
45949
46163
|
visible: withBackButton,
|
|
45950
|
-
children: /* @__PURE__ */ (0,
|
|
45951
|
-
onPress: handleBack,
|
|
46164
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationBackButton2, {
|
|
46165
|
+
onPress: navigationEvent.handleBack,
|
|
45952
46166
|
canGoBack: false
|
|
45953
46167
|
})
|
|
45954
46168
|
})
|
|
45955
46169
|
})
|
|
45956
46170
|
});
|
|
45957
46171
|
}
|
|
45958
|
-
function
|
|
45959
|
-
var
|
|
45960
|
-
var
|
|
45961
|
-
|
|
45962
|
-
|
|
45963
|
-
|
|
45964
|
-
|
|
45965
|
-
|
|
45966
|
-
|
|
46172
|
+
function GameNavigationBar() {
|
|
46173
|
+
var safeAreaTop = useSafeAreaTop();
|
|
46174
|
+
var global2 = getAppsInTossGlobals();
|
|
46175
|
+
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46176
|
+
var navigationEvent = useNavigationEvent();
|
|
46177
|
+
useHardwareBackPress(navigationEvent.handleBack);
|
|
46178
|
+
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46179
|
+
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, {
|
|
46181
|
+
children: [
|
|
46182
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(PageNavbar, {
|
|
46183
|
+
preference: {
|
|
46184
|
+
type: "none"
|
|
46185
|
+
}
|
|
46186
|
+
}),
|
|
46187
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native219.View, {
|
|
46188
|
+
style: {
|
|
46189
|
+
width: "100%",
|
|
46190
|
+
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
46191
|
+
height: import_react_native219.Platform.OS === "ios" ? 44 : 54,
|
|
46192
|
+
flexDirection: "row",
|
|
46193
|
+
alignItems: "center",
|
|
46194
|
+
justifyContent: "flex-end",
|
|
46195
|
+
position: "absolute",
|
|
46196
|
+
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
46197
|
+
marginTop: safeAreaTop,
|
|
46198
|
+
paddingRight: 10
|
|
46199
|
+
},
|
|
46200
|
+
pointerEvents: "box-none",
|
|
46201
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(NavigationRightContent, {
|
|
46202
|
+
fixedRightButton: initialAccessoryButton,
|
|
46203
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
46204
|
+
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
46205
|
+
theme: "dark"
|
|
46206
|
+
})
|
|
46207
|
+
})
|
|
46208
|
+
]
|
|
46209
|
+
});
|
|
46210
|
+
}
|
|
46211
|
+
function RNAppContainer(param) {
|
|
46212
|
+
var children = param.children;
|
|
46213
|
+
var global2 = getAppsInTossGlobals();
|
|
46214
|
+
switch (global2.appType) {
|
|
46215
|
+
case "game":
|
|
46216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameAppContainer, {
|
|
46217
|
+
children
|
|
46218
|
+
});
|
|
46219
|
+
case "general":
|
|
46220
|
+
default:
|
|
46221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GeneralAppContainer, {
|
|
46222
|
+
children
|
|
46223
|
+
});
|
|
46224
|
+
}
|
|
46225
|
+
}
|
|
46226
|
+
function GameAppContainer(param) {
|
|
46227
|
+
var children = param.children;
|
|
46228
|
+
var _useState4 = _sliced_to_array((0, import_react214.useState)(false), 2), isEntryMessageExited = _useState4[0], setIsEntryMessageExited = _useState4[1];
|
|
46229
|
+
(0, import_react214.useEffect)(function() {
|
|
46230
|
+
if (import_react_native205.Platform.OS === "ios") {
|
|
46231
|
+
setIosSwipeGestureEnabled({
|
|
46232
|
+
isEnabled: false
|
|
46233
|
+
});
|
|
46234
|
+
return function() {
|
|
46235
|
+
setIosSwipeGestureEnabled({
|
|
46236
|
+
isEnabled: true
|
|
46237
|
+
});
|
|
46238
|
+
};
|
|
45967
46239
|
}
|
|
45968
|
-
|
|
45969
|
-
|
|
45970
|
-
|
|
45971
|
-
|
|
46240
|
+
return;
|
|
46241
|
+
}, []);
|
|
46242
|
+
(0, import_react214.useEffect)(function() {
|
|
46243
|
+
appsInTossEvent.addEventListener("entryMessageExited", {
|
|
46244
|
+
onEvent: function() {
|
|
46245
|
+
setIsEntryMessageExited(true);
|
|
46246
|
+
}
|
|
46247
|
+
});
|
|
46248
|
+
}, []);
|
|
46249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
|
|
46250
|
+
children: [
|
|
46251
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Game, {}),
|
|
46252
|
+
(0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameInitializer, {
|
|
46253
|
+
isReadyForProfileUI: isEntryMessageExited,
|
|
46254
|
+
children
|
|
46255
|
+
}) : children
|
|
46256
|
+
]
|
|
46257
|
+
});
|
|
46258
|
+
}
|
|
46259
|
+
function GeneralAppContainer(param) {
|
|
46260
|
+
var children = param.children;
|
|
46261
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
|
|
46262
|
+
children: [
|
|
46263
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Default, {}),
|
|
46264
|
+
children
|
|
46265
|
+
]
|
|
46266
|
+
});
|
|
45972
46267
|
}
|
|
45973
46268
|
function AppsInTossContainer(Container, _param) {
|
|
45974
46269
|
var children = _param.children, initialProps = _object_without_properties(_param, [
|
|
@@ -45978,28 +46273,28 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45978
46273
|
android: "5.220.0",
|
|
45979
46274
|
ios: "5.221.0"
|
|
45980
46275
|
})) {
|
|
45981
|
-
return /* @__PURE__ */ (0,
|
|
46276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
|
|
45982
46277
|
children: [
|
|
45983
|
-
/* @__PURE__ */ (0,
|
|
45984
|
-
/* @__PURE__ */ (0,
|
|
45985
|
-
/* @__PURE__ */ (0,
|
|
46278
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.Entry, {}),
|
|
46279
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
46280
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppUpdate, {})
|
|
45986
46281
|
]
|
|
45987
46282
|
});
|
|
45988
46283
|
}
|
|
45989
|
-
return /* @__PURE__ */ (0,
|
|
46284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
|
|
45990
46285
|
children: [
|
|
45991
|
-
/* @__PURE__ */ (0,
|
|
45992
|
-
/* @__PURE__ */ (0,
|
|
45993
|
-
/* @__PURE__ */ (0,
|
|
45994
|
-
/* @__PURE__ */ (0,
|
|
45995
|
-
children: /* @__PURE__ */ (0,
|
|
46286
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.StayTime, {}),
|
|
46287
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.Entry, {}),
|
|
46288
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
46289
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
|
|
46290
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TDSProvider, {
|
|
45996
46291
|
colorPreference: "light",
|
|
45997
46292
|
token: {
|
|
45998
46293
|
color: {
|
|
45999
46294
|
primary: getAppsInTossGlobals().brandPrimaryColor
|
|
46000
46295
|
}
|
|
46001
46296
|
},
|
|
46002
|
-
children: /* @__PURE__ */ (0,
|
|
46297
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TDSContainer, _object_spread_props(_object_spread({}, initialProps), {
|
|
46003
46298
|
children
|
|
46004
46299
|
}))
|
|
46005
46300
|
})
|
|
@@ -46010,7 +46305,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46010
46305
|
function TDSContainer(param) {
|
|
46011
46306
|
var children = param.children;
|
|
46012
46307
|
useAppsInTossBridge();
|
|
46013
|
-
return /* @__PURE__ */ (0,
|
|
46308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_jsx_runtime226.Fragment, {
|
|
46014
46309
|
children
|
|
46015
46310
|
});
|
|
46016
46311
|
}
|
|
@@ -46043,12 +46338,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46043
46338
|
}
|
|
46044
46339
|
function AppsInTossScreenContainer(param) {
|
|
46045
46340
|
var children = param.children;
|
|
46046
|
-
var
|
|
46047
|
-
return /* @__PURE__ */ (0,
|
|
46048
|
-
children:
|
|
46049
|
-
isReactNativeService && /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(RNNavigationBar, {}),
|
|
46341
|
+
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
46342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Analytics.Screen, {
|
|
46343
|
+
children: isRNApp ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(RNAppContainer, {
|
|
46050
46344
|
children
|
|
46051
|
-
|
|
46345
|
+
}) : children
|
|
46052
46346
|
});
|
|
46053
46347
|
}
|
|
46054
46348
|
function getAppName() {
|
|
@@ -46068,7 +46362,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46068
46362
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46069
46363
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46070
46364
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46071
|
-
var handleGameWebviewClose = (0,
|
|
46365
|
+
var handleGameWebviewClose = (0, import_react228.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46072
46366
|
var isConfirmed;
|
|
46073
46367
|
return __generator(this, function(_state) {
|
|
46074
46368
|
switch (_state.label) {
|
|
@@ -46102,18 +46396,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46102
46396
|
logging,
|
|
46103
46397
|
openConfirm
|
|
46104
46398
|
]);
|
|
46105
|
-
return /* @__PURE__ */ (0,
|
|
46399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, {
|
|
46106
46400
|
children: [
|
|
46107
|
-
/* @__PURE__ */ (0,
|
|
46401
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(PageNavbar, {
|
|
46108
46402
|
preference: {
|
|
46109
46403
|
type: "none"
|
|
46110
46404
|
}
|
|
46111
46405
|
}),
|
|
46112
|
-
/* @__PURE__ */ (0,
|
|
46406
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_react_native224.View, {
|
|
46113
46407
|
style: {
|
|
46114
46408
|
width: "100%",
|
|
46115
46409
|
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
46116
|
-
height:
|
|
46410
|
+
height: import_react_native224.Platform.OS === "ios" ? 44 : 54,
|
|
46117
46411
|
flexDirection: "row",
|
|
46118
46412
|
alignItems: "center",
|
|
46119
46413
|
justifyContent: "flex-end",
|
|
@@ -46123,7 +46417,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46123
46417
|
paddingRight: 10
|
|
46124
46418
|
},
|
|
46125
46419
|
pointerEvents: "box-none",
|
|
46126
|
-
children: /* @__PURE__ */ (0,
|
|
46420
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(NavigationRightContent, {
|
|
46127
46421
|
fixedRightButton: initialAccessoryButton,
|
|
46128
46422
|
onPressDots: openMoreButtonBottomSheet,
|
|
46129
46423
|
onPressClose: function() {
|
|
@@ -46148,7 +46442,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46148
46442
|
var _parsedNavigationBar_withBackButton;
|
|
46149
46443
|
var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
|
|
46150
46444
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46151
|
-
var handleClose = (0,
|
|
46445
|
+
var handleClose = (0, import_react230.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46152
46446
|
var isConfirmed;
|
|
46153
46447
|
return __generator(this, function(_state) {
|
|
46154
46448
|
switch (_state.label) {
|
|
@@ -46182,9 +46476,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46182
46476
|
logging,
|
|
46183
46477
|
openConfirm
|
|
46184
46478
|
]);
|
|
46185
|
-
return /* @__PURE__ */ (0,
|
|
46479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationBarImpressionArea, {
|
|
46186
46480
|
withHomeButton,
|
|
46187
|
-
children: /* @__PURE__ */ (0,
|
|
46481
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(TopNavigation, {
|
|
46188
46482
|
title: globals.brandDisplayName,
|
|
46189
46483
|
icon: toIcon(globals.brandIcon),
|
|
46190
46484
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -46193,9 +46487,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46193
46487
|
onPressClose: handleClose,
|
|
46194
46488
|
withHome: withHomeButton,
|
|
46195
46489
|
fixedRightButton: initialAccessoryButton,
|
|
46196
|
-
children: /* @__PURE__ */ (0,
|
|
46490
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationLeft2, {
|
|
46197
46491
|
visible: withBackButton,
|
|
46198
|
-
children: /* @__PURE__ */ (0,
|
|
46492
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationBackButton2, {
|
|
46199
46493
|
onPress: onBackButtonClick,
|
|
46200
46494
|
canGoBack: false
|
|
46201
46495
|
})
|
|
@@ -46263,8 +46557,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46263
46557
|
}
|
|
46264
46558
|
function useBridgeHandler(param) {
|
|
46265
46559
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap, originalInjectedJavaScript = param.injectedJavaScript;
|
|
46266
|
-
var ref = (0,
|
|
46267
|
-
var injectedJavaScript = (0,
|
|
46560
|
+
var ref = (0, import_react231.useRef)(null);
|
|
46561
|
+
var injectedJavaScript = (0, import_react231.useMemo)(function() {
|
|
46268
46562
|
return [
|
|
46269
46563
|
"window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46270
46564
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
@@ -46291,7 +46585,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46291
46585
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(serializedError, ");\n "));
|
|
46292
46586
|
};
|
|
46293
46587
|
};
|
|
46294
|
-
var $onMessage = (0,
|
|
46588
|
+
var $onMessage = (0, import_react231.useCallback)(
|
|
46295
46589
|
function() {
|
|
46296
46590
|
var _ref = _async_to_generator(function(e61) {
|
|
46297
46591
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
@@ -46404,8 +46698,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46404
46698
|
}
|
|
46405
46699
|
}
|
|
46406
46700
|
function useWebViewHistory() {
|
|
46407
|
-
var _useReducer = _sliced_to_array((0,
|
|
46408
|
-
var onNavigationStateChange = (0,
|
|
46701
|
+
var _useReducer = _sliced_to_array((0, import_react233.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46702
|
+
var onNavigationStateChange = (0, import_react233.useCallback)(function(param) {
|
|
46409
46703
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46410
46704
|
dispatch({
|
|
46411
46705
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46413,7 +46707,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46413
46707
|
canGoForward: canGoForward2
|
|
46414
46708
|
});
|
|
46415
46709
|
}, []);
|
|
46416
|
-
var
|
|
46710
|
+
var _useMemo4 = (0, import_react233.useMemo)(function() {
|
|
46417
46711
|
var canBack = state.index > 0;
|
|
46418
46712
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46419
46713
|
return {
|
|
@@ -46423,7 +46717,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46423
46717
|
}, [
|
|
46424
46718
|
state.index,
|
|
46425
46719
|
state.stack.length
|
|
46426
|
-
]), canGoBack =
|
|
46720
|
+
]), canGoBack = _useMemo4.canGoBack, canGoForward = _useMemo4.canGoForward;
|
|
46427
46721
|
return {
|
|
46428
46722
|
onNavigationStateChange,
|
|
46429
46723
|
hasHistory: canGoBack,
|
|
@@ -46437,17 +46731,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46437
46731
|
var logging = useNavigationBarLogging();
|
|
46438
46732
|
var openConfirm = useDialog().openConfirm;
|
|
46439
46733
|
var global2 = getAppsInTossGlobals();
|
|
46440
|
-
var addEventListener = (0,
|
|
46734
|
+
var addEventListener = (0, import_react232.useCallback)(function(handler) {
|
|
46441
46735
|
addWebBackEventListener(handler);
|
|
46442
46736
|
}, [
|
|
46443
46737
|
addWebBackEventListener
|
|
46444
46738
|
]);
|
|
46445
|
-
var removeEventListener = (0,
|
|
46739
|
+
var removeEventListener = (0, import_react232.useCallback)(function(handler) {
|
|
46446
46740
|
removeWebBackEventListener(handler);
|
|
46447
46741
|
}, [
|
|
46448
46742
|
removeWebBackEventListener
|
|
46449
46743
|
]);
|
|
46450
|
-
var handleWebBack = (0,
|
|
46744
|
+
var handleWebBack = (0, import_react232.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46451
46745
|
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
46452
46746
|
return __generator(this, function(_state) {
|
|
46453
46747
|
switch (_state.label) {
|
|
@@ -46521,7 +46815,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46521
46815
|
openConfirm,
|
|
46522
46816
|
webViewRef
|
|
46523
46817
|
]);
|
|
46524
|
-
var handleWebHome = (0,
|
|
46818
|
+
var handleWebHome = (0, import_react232.useCallback)(function() {
|
|
46525
46819
|
var _webViewRef_current;
|
|
46526
46820
|
logging.homeButtonClick();
|
|
46527
46821
|
if (hasWebBackEvent) {
|
|
@@ -46554,7 +46848,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46554
46848
|
logging,
|
|
46555
46849
|
webViewRef
|
|
46556
46850
|
]);
|
|
46557
|
-
return (0,
|
|
46851
|
+
return (0, import_react232.useMemo)(function() {
|
|
46558
46852
|
return {
|
|
46559
46853
|
addEventListener,
|
|
46560
46854
|
removeEventListener,
|
|
@@ -46730,7 +47024,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46730
47024
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
46731
47025
|
var platform = getPlatformOS();
|
|
46732
47026
|
var appVersion = getTossAppVersion();
|
|
46733
|
-
var fontScale = (0,
|
|
47027
|
+
var fontScale = (0, import_react_native227.useWindowDimensions)().fontScale;
|
|
46734
47028
|
var platformString = platform === "ios" ? "iPhone" : "Android";
|
|
46735
47029
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
46736
47030
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -46796,9 +47090,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46796
47090
|
if (!TYPES.includes(type)) {
|
|
46797
47091
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
46798
47092
|
}
|
|
46799
|
-
var webViewRef = (0,
|
|
47093
|
+
var webViewRef = (0, import_react226.useRef)(null);
|
|
46800
47094
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
46801
|
-
var uri = (0,
|
|
47095
|
+
var uri = (0, import_react226.useMemo)(function() {
|
|
46802
47096
|
return getWebViewUri(local);
|
|
46803
47097
|
}, [
|
|
46804
47098
|
local
|
|
@@ -46808,7 +47102,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46808
47102
|
var global2 = getAppsInTossGlobals();
|
|
46809
47103
|
var topNavigation = useTopNavigation();
|
|
46810
47104
|
var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
|
|
46811
|
-
var
|
|
47105
|
+
var _useState7 = _sliced_to_array((0, import_react226.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState7[0], setAllowsBackForwardNavigationGestures = _useState7[1];
|
|
46812
47106
|
var handler = useBridgeHandler({
|
|
46813
47107
|
onMessage,
|
|
46814
47108
|
injectedJavaScript: [
|
|
@@ -46943,7 +47237,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46943
47237
|
completeProductGrant: IAP.completeProductGrant
|
|
46944
47238
|
})
|
|
46945
47239
|
});
|
|
46946
|
-
var headerPropForExternalWebView = (0,
|
|
47240
|
+
var headerPropForExternalWebView = (0, import_react226.useMemo)(function() {
|
|
46947
47241
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46948
47242
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46949
47243
|
var _parsedNavigationBar_withBackButton;
|
|
@@ -46968,19 +47262,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46968
47262
|
colorPreference: "light"
|
|
46969
47263
|
});
|
|
46970
47264
|
var refs = mergeRefs4(handler.ref, webViewRef);
|
|
46971
|
-
(0,
|
|
47265
|
+
(0, import_react226.useEffect)(function() {
|
|
46972
47266
|
var callback = function() {
|
|
46973
47267
|
webBackHandler.handleWebBack();
|
|
46974
47268
|
return true;
|
|
46975
47269
|
};
|
|
46976
|
-
|
|
47270
|
+
import_react_native221.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
46977
47271
|
return function() {
|
|
46978
|
-
return
|
|
47272
|
+
return import_react_native221.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
46979
47273
|
};
|
|
46980
47274
|
}, [
|
|
46981
47275
|
webBackHandler
|
|
46982
47276
|
]);
|
|
46983
|
-
return /* @__PURE__ */ (0,
|
|
47277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
46984
47278
|
ref: refs
|
|
46985
47279
|
}, props, headerPropForExternalWebView), {
|
|
46986
47280
|
source: {
|
|
@@ -47000,18 +47294,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47000
47294
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
47001
47295
|
webBackHandler.onNavigationStateChange(event);
|
|
47002
47296
|
},
|
|
47003
|
-
userAgent:
|
|
47297
|
+
userAgent: import_react_native221.Platform.OS === "ios" ? userAgent : void 0,
|
|
47004
47298
|
sharedCookiesEnabled: true,
|
|
47005
47299
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
47006
47300
|
thirdPartyCookiesEnabled: true,
|
|
47007
47301
|
onMessage: handler.onMessage,
|
|
47008
47302
|
injectedJavaScript: handler.injectedJavaScript,
|
|
47009
47303
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
|
|
47010
|
-
decelerationRate:
|
|
47304
|
+
decelerationRate: import_react_native221.Platform.OS === "ios" ? 1 : void 0,
|
|
47011
47305
|
allowsBackForwardNavigationGestures
|
|
47012
47306
|
}));
|
|
47013
47307
|
}
|
|
47014
|
-
var import_react_native199, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_react214,
|
|
47308
|
+
var import_react_native199, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_react214, import_react_native205, import_react215, import_react_native207, import_react216, import_react_native209, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime218, import_jsx_runtime219, import_react221, import_react_native212, import_react222, import_react223, import_react224, import_react_native217, import_jsx_runtime220, import_jsx_runtime221, import_react225, import_jsx_runtime222, import_jsx_runtime223, import_react_native219, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react226, import_react_native221, import_react227, import_react_native222, import_react228, import_react_native224, import_jsx_runtime227, import_jsx_runtime228, import_react229, import_react230, import_jsx_runtime229, import_jsx_runtime230, import_react231, import_react232, import_react233, import_react_native227, import_react234, import_react235, import_jsx_runtime231, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, globalEventListenerMap, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer3, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
47015
47309
|
var init_dist8 = __esm({
|
|
47016
47310
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
47017
47311
|
"use strict";
|
|
@@ -47047,37 +47341,69 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47047
47341
|
init_dist6();
|
|
47048
47342
|
init_esm8();
|
|
47049
47343
|
import_react213 = __toESM(require_react(), 1);
|
|
47344
|
+
init_dist6();
|
|
47345
|
+
import_react214 = __toESM(require_react(), 1);
|
|
47346
|
+
import_react_native205 = __toESM(require_react_native(), 1);
|
|
47347
|
+
init_dist6();
|
|
47050
47348
|
init_src3();
|
|
47051
47349
|
init_esm8();
|
|
47052
|
-
init_private2();
|
|
47053
47350
|
init_dist7();
|
|
47054
|
-
import_react214 = __toESM(require_react(), 1);
|
|
47055
|
-
import_react_native206 = __toESM(require_react_native(), 1);
|
|
47056
47351
|
import_react215 = __toESM(require_react(), 1);
|
|
47352
|
+
import_react_native207 = __toESM(require_react_native(), 1);
|
|
47057
47353
|
init_dist6();
|
|
47058
47354
|
init_src3();
|
|
47059
|
-
|
|
47355
|
+
init_esm8();
|
|
47356
|
+
import_react216 = __toESM(require_react(), 1);
|
|
47357
|
+
import_react_native209 = __toESM(require_react_native(), 1);
|
|
47060
47358
|
init_dist6();
|
|
47359
|
+
import_react217 = __toESM(require_react(), 1);
|
|
47061
47360
|
init_src3();
|
|
47062
47361
|
init_esm8();
|
|
47362
|
+
import_react218 = __toESM(require_react(), 1);
|
|
47363
|
+
import_react219 = __toESM(require_react(), 1);
|
|
47364
|
+
init_src3();
|
|
47365
|
+
init_dist6();
|
|
47366
|
+
init_esm8();
|
|
47063
47367
|
init_private2();
|
|
47064
|
-
|
|
47368
|
+
import_react220 = __toESM(require_react(), 1);
|
|
47369
|
+
import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
|
|
47370
|
+
import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
|
|
47371
|
+
init_private2();
|
|
47372
|
+
import_react221 = __toESM(require_react(), 1);
|
|
47373
|
+
import_react_native212 = __toESM(require_react_native(), 1);
|
|
47374
|
+
init_src3();
|
|
47375
|
+
import_react222 = __toESM(require_react(), 1);
|
|
47376
|
+
init_esm8();
|
|
47377
|
+
init_dist7();
|
|
47378
|
+
import_react223 = __toESM(require_react(), 1);
|
|
47379
|
+
init_dist6();
|
|
47380
|
+
init_src3();
|
|
47065
47381
|
init_dist6();
|
|
47066
47382
|
init_src3();
|
|
47067
47383
|
init_esm8();
|
|
47068
47384
|
init_private2();
|
|
47069
|
-
|
|
47385
|
+
import_react224 = __toESM(require_react(), 1);
|
|
47070
47386
|
init_dist6();
|
|
47071
47387
|
init_src3();
|
|
47072
|
-
|
|
47388
|
+
init_esm8();
|
|
47389
|
+
init_private2();
|
|
47390
|
+
import_react_native217 = __toESM(require_react_native(), 1);
|
|
47073
47391
|
init_dist6();
|
|
47074
47392
|
init_src3();
|
|
47075
|
-
init_esm8();
|
|
47076
|
-
import_react217 = __toESM(require_react(), 1);
|
|
47077
|
-
import_react_native213 = __toESM(require_react_native(), 1);
|
|
47078
47393
|
import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
|
|
47079
47394
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
47395
|
+
import_react225 = __toESM(require_react(), 1);
|
|
47080
47396
|
import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
|
|
47397
|
+
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47398
|
+
init_esm8();
|
|
47399
|
+
init_private2();
|
|
47400
|
+
import_react_native219 = __toESM(require_react_native(), 1);
|
|
47401
|
+
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47402
|
+
init_async_bridges();
|
|
47403
|
+
init_constant_bridges2();
|
|
47404
|
+
init_event_bridges();
|
|
47405
|
+
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47406
|
+
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47081
47407
|
init_dist6();
|
|
47082
47408
|
init_async_bridges();
|
|
47083
47409
|
init_constant_bridges2();
|
|
@@ -47085,61 +47411,84 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47085
47411
|
init_src3();
|
|
47086
47412
|
init_esm8();
|
|
47087
47413
|
init_private2();
|
|
47088
|
-
|
|
47089
|
-
|
|
47414
|
+
import_react226 = __toESM(require_react(), 1);
|
|
47415
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47090
47416
|
init_dist6();
|
|
47091
47417
|
init_react_native_webview();
|
|
47092
|
-
|
|
47093
|
-
|
|
47094
|
-
init_dist6();
|
|
47095
|
-
init_esm8();
|
|
47096
|
-
import_react220 = __toESM(require_react(), 1);
|
|
47097
|
-
import_react_native217 = __toESM(require_react_native(), 1);
|
|
47098
|
-
init_dist6();
|
|
47099
|
-
init_src3();
|
|
47100
|
-
init_esm8();
|
|
47101
|
-
init_dist7();
|
|
47102
|
-
import_react221 = __toESM(require_react(), 1);
|
|
47103
|
-
init_esm8();
|
|
47104
|
-
init_private2();
|
|
47105
|
-
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47106
|
-
init_src3();
|
|
47107
|
-
init_dist6();
|
|
47108
|
-
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47418
|
+
import_react227 = __toESM(require_react(), 1);
|
|
47419
|
+
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47109
47420
|
init_src3();
|
|
47110
47421
|
init_esm8();
|
|
47111
47422
|
init_private2();
|
|
47112
47423
|
init_dist7();
|
|
47113
|
-
|
|
47114
|
-
|
|
47115
|
-
|
|
47116
|
-
|
|
47424
|
+
import_react228 = __toESM(require_react(), 1);
|
|
47425
|
+
import_react_native224 = __toESM(require_react_native(), 1);
|
|
47426
|
+
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47427
|
+
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
47117
47428
|
init_react_native_webview();
|
|
47118
|
-
|
|
47429
|
+
import_react229 = __toESM(require_react(), 1);
|
|
47119
47430
|
init_src3();
|
|
47120
47431
|
init_esm8();
|
|
47121
47432
|
init_private2();
|
|
47122
47433
|
init_dist7();
|
|
47123
|
-
|
|
47124
|
-
|
|
47125
|
-
|
|
47126
|
-
|
|
47434
|
+
import_react230 = __toESM(require_react(), 1);
|
|
47435
|
+
import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
|
|
47436
|
+
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47437
|
+
import_react231 = __toESM(require_react(), 1);
|
|
47127
47438
|
init_src3();
|
|
47128
47439
|
init_esm8();
|
|
47129
47440
|
init_dist7();
|
|
47130
|
-
|
|
47131
|
-
|
|
47441
|
+
import_react232 = __toESM(require_react(), 1);
|
|
47442
|
+
import_react233 = __toESM(require_react(), 1);
|
|
47132
47443
|
init_dist6();
|
|
47133
|
-
|
|
47444
|
+
import_react_native227 = __toESM(require_react_native(), 1);
|
|
47134
47445
|
init_dist6();
|
|
47135
|
-
|
|
47136
|
-
|
|
47446
|
+
import_react234 = __toESM(require_react(), 1);
|
|
47447
|
+
import_react235 = __toESM(require_react(), 1);
|
|
47137
47448
|
init_dist6();
|
|
47138
47449
|
init_src3();
|
|
47139
|
-
|
|
47450
|
+
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47140
47451
|
init_dist3();
|
|
47141
47452
|
init_dist6();
|
|
47142
47453
|
init_dist4();
|
|
47454
|
+
__defProp2 = Object.defineProperty;
|
|
47455
|
+
__getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
47456
|
+
__getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
47457
|
+
__hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
47458
|
+
__copyProps2 = function(to3, from, except, desc) {
|
|
47459
|
+
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
47460
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47461
|
+
try {
|
|
47462
|
+
var _loop = function() {
|
|
47463
|
+
var key = _step.value;
|
|
47464
|
+
if (!__hasOwnProp2.call(to3, key) && key !== except) __defProp2(to3, key, {
|
|
47465
|
+
get: function() {
|
|
47466
|
+
return from[key];
|
|
47467
|
+
},
|
|
47468
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
47469
|
+
});
|
|
47470
|
+
};
|
|
47471
|
+
for (var _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();
|
|
47472
|
+
} catch (err) {
|
|
47473
|
+
_didIteratorError = true;
|
|
47474
|
+
_iteratorError = err;
|
|
47475
|
+
} finally {
|
|
47476
|
+
try {
|
|
47477
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47478
|
+
_iterator.return();
|
|
47479
|
+
}
|
|
47480
|
+
} finally {
|
|
47481
|
+
if (_didIteratorError) {
|
|
47482
|
+
throw _iteratorError;
|
|
47483
|
+
}
|
|
47484
|
+
}
|
|
47485
|
+
}
|
|
47486
|
+
}
|
|
47487
|
+
return to3;
|
|
47488
|
+
};
|
|
47489
|
+
__reExport2 = function(target, mod, secondTarget) {
|
|
47490
|
+
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
47491
|
+
};
|
|
47143
47492
|
env = {
|
|
47144
47493
|
getDeploymentId: function() {
|
|
47145
47494
|
var _global___appsInToss;
|
|
@@ -47152,102 +47501,55 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47152
47501
|
AppEvent = {
|
|
47153
47502
|
Entry: EntryAppEvent,
|
|
47154
47503
|
System: SystemAppEvent,
|
|
47155
|
-
StayTime: StayTimeAppEvent
|
|
47156
|
-
};
|
|
47157
|
-
UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
|
|
47158
|
-
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47159
|
-
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47160
|
-
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47161
|
-
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47162
|
-
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47163
|
-
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47164
|
-
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47165
|
-
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47166
|
-
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47167
|
-
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47168
|
-
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
47169
|
-
BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
47170
|
-
BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
47171
|
-
BOTTOM_SHEET_OPEN_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_more";
|
|
47172
|
-
BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID = 1596843;
|
|
47173
|
-
BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__close";
|
|
47174
|
-
BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID = 1596841;
|
|
47175
|
-
BOTTOM_SHEET_MENU_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__menu";
|
|
47176
|
-
SHARE_SCHEME_REFERRER = "appsintoss.common_module_share";
|
|
47177
|
-
APP_SHARE_MENU_INFO = {
|
|
47178
|
-
contactItemName: "\uACF5\uC720\uD558\uAE30",
|
|
47179
|
-
contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
|
|
47180
|
-
};
|
|
47181
|
-
PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
47182
|
-
APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
47183
|
-
getMarketLink = function() {
|
|
47184
|
-
return import_react_native213.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
47185
|
-
};
|
|
47186
|
-
UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
47187
|
-
UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
47188
|
-
UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
47189
|
-
UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
47190
|
-
APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
47191
|
-
MIN_VERSION = {
|
|
47192
|
-
BOTTOM_SHEET: {
|
|
47193
|
-
android: "5.226.0",
|
|
47194
|
-
ios: "5.226.0"
|
|
47195
|
-
},
|
|
47196
|
-
SHARE_LIST_MENU: {
|
|
47197
|
-
android: "5.230.0",
|
|
47198
|
-
ios: "5.230.0"
|
|
47199
|
-
}
|
|
47200
|
-
};
|
|
47201
|
-
AppsInToss = {
|
|
47202
|
-
registerApp
|
|
47504
|
+
StayTime: StayTimeAppEvent
|
|
47203
47505
|
};
|
|
47506
|
+
UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
|
|
47204
47507
|
GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
47205
|
-
|
|
47206
|
-
android: "5.
|
|
47207
|
-
ios: "5.
|
|
47508
|
+
GAME_MIN_VERSION = {
|
|
47509
|
+
android: "5.232.0",
|
|
47510
|
+
ios: "5.232.0"
|
|
47208
47511
|
};
|
|
47209
|
-
|
|
47210
|
-
|
|
47211
|
-
|
|
47212
|
-
|
|
47213
|
-
overlay.open(function(param) {
|
|
47214
|
-
var isOpen = param.isOpen, close = param.close, exit = param.exit;
|
|
47215
|
-
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(ColorPreferenceProvider, {
|
|
47216
|
-
colorPreference: "dark",
|
|
47217
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(AdaptiveColorProvider, {
|
|
47218
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Toast, {
|
|
47219
|
-
open: isOpen,
|
|
47220
|
-
onClose: function() {
|
|
47221
|
-
resolve();
|
|
47222
|
-
close();
|
|
47223
|
-
},
|
|
47224
|
-
onExited: exit,
|
|
47225
|
-
position: "top",
|
|
47226
|
-
text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
|
|
47227
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Asset2.Image, {
|
|
47228
|
-
style: {
|
|
47229
|
-
borderRadius: 64,
|
|
47230
|
-
overflow: "hidden"
|
|
47231
|
-
},
|
|
47232
|
-
frameShape: Asset2.frameShape.CleanW32,
|
|
47233
|
-
source: {
|
|
47234
|
-
uri: profileImageUri
|
|
47235
|
-
}
|
|
47236
|
-
})
|
|
47237
|
-
})
|
|
47238
|
-
})
|
|
47239
|
-
});
|
|
47240
|
-
});
|
|
47241
|
-
});
|
|
47242
|
-
};
|
|
47243
|
-
return {
|
|
47244
|
-
openGameProfileToast
|
|
47245
|
-
};
|
|
47512
|
+
PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
47513
|
+
APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
47514
|
+
getMarketLink = function() {
|
|
47515
|
+
return import_react_native209.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
47246
47516
|
};
|
|
47517
|
+
UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
47518
|
+
UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
47519
|
+
UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
47520
|
+
UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
47247
47521
|
DEFAULT_ERROR = {
|
|
47248
47522
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
47249
47523
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
47250
47524
|
};
|
|
47525
|
+
useErrorAlert = function() {
|
|
47526
|
+
var openAlert = useDialog().openAlert;
|
|
47527
|
+
var openErrorAlert = (0, import_react218.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47528
|
+
return __generator(this, function(_state) {
|
|
47529
|
+
switch (_state.label) {
|
|
47530
|
+
case 0:
|
|
47531
|
+
return [
|
|
47532
|
+
4,
|
|
47533
|
+
openAlert({
|
|
47534
|
+
title: DEFAULT_ERROR.title,
|
|
47535
|
+
description: DEFAULT_ERROR.description
|
|
47536
|
+
})
|
|
47537
|
+
];
|
|
47538
|
+
case 1:
|
|
47539
|
+
_state.sent();
|
|
47540
|
+
closeView();
|
|
47541
|
+
return [
|
|
47542
|
+
2
|
|
47543
|
+
];
|
|
47544
|
+
}
|
|
47545
|
+
});
|
|
47546
|
+
}), [
|
|
47547
|
+
openAlert
|
|
47548
|
+
]);
|
|
47549
|
+
return {
|
|
47550
|
+
open: openErrorAlert
|
|
47551
|
+
};
|
|
47552
|
+
};
|
|
47251
47553
|
INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
|
|
47252
47554
|
openTransparentWebView = function(param) {
|
|
47253
47555
|
var webUrl = param.webUrl, _param_cleanupWhenDismissed = param.cleanupWhenDismissed, cleanupWhenDismissed = _param_cleanupWhenDismissed === void 0 ? true : _param_cleanupWhenDismissed, onEvent = param.onEvent, onError2 = param.onError, _param_callbackId = param.callbackId, callbackId = _param_callbackId === void 0 ? "fn" : _param_callbackId, params = param.params;
|
|
@@ -47275,160 +47577,213 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47275
47577
|
});
|
|
47276
47578
|
openURL(url.toString());
|
|
47277
47579
|
};
|
|
47278
|
-
|
|
47279
|
-
var
|
|
47280
|
-
var
|
|
47281
|
-
var
|
|
47282
|
-
|
|
47283
|
-
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
47284
|
-
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
47285
|
-
var _useState23 = _sliced_to_array((0, import_react221.useState)(false), 2), isWebviewLoading = _useState23[0], setIsWebviewLoading = _useState23[1];
|
|
47286
|
-
var isCompletedProfileFlow = (0, import_react221.useRef)(false);
|
|
47287
|
-
var _useDialog4 = useDialog(), openAlert = _useDialog4.openAlert, openConfirm = _useDialog4.openConfirm;
|
|
47288
|
-
var openGameProfileToast = useGameProfileToast().openGameProfileToast;
|
|
47289
|
-
var openErrorAlert = (0, import_react221.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47290
|
-
return __generator(this, function(_state) {
|
|
47291
|
-
switch (_state.label) {
|
|
47292
|
-
case 0:
|
|
47293
|
-
return [
|
|
47294
|
-
4,
|
|
47295
|
-
openAlert({
|
|
47296
|
-
title: DEFAULT_ERROR.title,
|
|
47297
|
-
description: DEFAULT_ERROR.description
|
|
47298
|
-
})
|
|
47299
|
-
];
|
|
47300
|
-
case 1:
|
|
47301
|
-
_state.sent();
|
|
47302
|
-
closeView();
|
|
47303
|
-
return [
|
|
47304
|
-
2
|
|
47305
|
-
];
|
|
47306
|
-
}
|
|
47307
|
-
});
|
|
47308
|
-
}), [
|
|
47309
|
-
openAlert
|
|
47310
|
-
]);
|
|
47311
|
-
var openProfileWebview = (0, import_react221.useCallback)(function() {
|
|
47580
|
+
useTransparentWebview = function() {
|
|
47581
|
+
var _useState = _sliced_to_array((0, import_react219.useState)(false), 2), isWebviewLoading = _useState[0], setIsWebviewLoading = _useState[1];
|
|
47582
|
+
var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
|
|
47583
|
+
var _openTransparentWebview = (0, import_react219.useCallback)(function(param) {
|
|
47584
|
+
var webUrl = param.webUrl, onClose = param.onClose, onError2 = param.onError;
|
|
47312
47585
|
if (isWebviewLoading) {
|
|
47313
47586
|
return;
|
|
47314
47587
|
}
|
|
47315
47588
|
setIsWebviewLoading(true);
|
|
47316
47589
|
openTransparentWebView({
|
|
47317
|
-
webUrl
|
|
47590
|
+
webUrl,
|
|
47318
47591
|
onEvent: function() {
|
|
47319
47592
|
var _ref = _async_to_generator(function(isClosedTransparentWebView) {
|
|
47320
|
-
var data, _17;
|
|
47321
47593
|
return __generator(this, function(_state) {
|
|
47322
|
-
|
|
47323
|
-
|
|
47324
|
-
|
|
47325
|
-
3,
|
|
47326
|
-
4
|
|
47327
|
-
];
|
|
47328
|
-
_state.label = 1;
|
|
47329
|
-
case 1:
|
|
47330
|
-
_state.trys.push([
|
|
47331
|
-
1,
|
|
47332
|
-
3,
|
|
47333
|
-
,
|
|
47334
|
-
4
|
|
47335
|
-
]);
|
|
47336
|
-
setIsWebviewLoading(false);
|
|
47337
|
-
setIsProfileDataRefetching(true);
|
|
47338
|
-
return [
|
|
47339
|
-
4,
|
|
47340
|
-
getGameCenterGameProfile()
|
|
47341
|
-
];
|
|
47342
|
-
case 2:
|
|
47343
|
-
data = _state.sent();
|
|
47344
|
-
setProfileData(data);
|
|
47345
|
-
setIsProfileDataRefetching(false);
|
|
47346
|
-
if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
|
|
47347
|
-
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
47348
|
-
}
|
|
47349
|
-
return [
|
|
47350
|
-
3,
|
|
47351
|
-
4
|
|
47352
|
-
];
|
|
47353
|
-
case 3:
|
|
47354
|
-
_17 = _state.sent();
|
|
47355
|
-
setIsProfileDataRefetching(false);
|
|
47356
|
-
openErrorAlert();
|
|
47357
|
-
return [
|
|
47358
|
-
3,
|
|
47359
|
-
4
|
|
47360
|
-
];
|
|
47361
|
-
case 4:
|
|
47362
|
-
return [
|
|
47363
|
-
2
|
|
47364
|
-
];
|
|
47594
|
+
if (isClosedTransparentWebView) {
|
|
47595
|
+
setIsWebviewLoading(false);
|
|
47596
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
47365
47597
|
}
|
|
47598
|
+
return [
|
|
47599
|
+
2
|
|
47600
|
+
];
|
|
47366
47601
|
});
|
|
47367
47602
|
});
|
|
47368
47603
|
return function(isClosedTransparentWebView) {
|
|
47369
47604
|
return _ref.apply(this, arguments);
|
|
47370
47605
|
};
|
|
47371
47606
|
}(),
|
|
47372
|
-
onError: function() {
|
|
47373
|
-
|
|
47607
|
+
onError: function(error) {
|
|
47608
|
+
setIsWebviewLoading(false);
|
|
47609
|
+
if (onError2) {
|
|
47610
|
+
onError2(error);
|
|
47611
|
+
} else {
|
|
47612
|
+
openErrorAlert();
|
|
47613
|
+
}
|
|
47374
47614
|
}
|
|
47375
47615
|
});
|
|
47376
47616
|
}, [
|
|
47377
47617
|
isWebviewLoading,
|
|
47378
|
-
openGameProfileToast,
|
|
47379
47618
|
openErrorAlert
|
|
47380
47619
|
]);
|
|
47381
|
-
|
|
47382
|
-
|
|
47620
|
+
return {
|
|
47621
|
+
open: _openTransparentWebview
|
|
47622
|
+
};
|
|
47623
|
+
};
|
|
47624
|
+
useGameProfileToast = function() {
|
|
47625
|
+
var overlay = useOverlay();
|
|
47626
|
+
var openGameProfileToast = (0, import_react220.useCallback)(function(nickname, profileImageUri) {
|
|
47627
|
+
return new Promise(function(resolve) {
|
|
47628
|
+
overlay.open(function(param) {
|
|
47629
|
+
var isOpen = param.isOpen, close = param.close, exit = param.exit;
|
|
47630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(ColorPreferenceProvider, {
|
|
47631
|
+
colorPreference: "dark",
|
|
47632
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(AdaptiveColorProvider, {
|
|
47633
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Toast, {
|
|
47634
|
+
open: isOpen,
|
|
47635
|
+
onClose: function() {
|
|
47636
|
+
resolve();
|
|
47637
|
+
close();
|
|
47638
|
+
},
|
|
47639
|
+
onExited: exit,
|
|
47640
|
+
position: "top",
|
|
47641
|
+
text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
|
|
47642
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Asset2.Image, {
|
|
47643
|
+
style: {
|
|
47644
|
+
borderRadius: 64,
|
|
47645
|
+
overflow: "hidden"
|
|
47646
|
+
},
|
|
47647
|
+
frameShape: Asset2.frameShape.CleanW32,
|
|
47648
|
+
source: {
|
|
47649
|
+
uri: profileImageUri
|
|
47650
|
+
}
|
|
47651
|
+
})
|
|
47652
|
+
})
|
|
47653
|
+
})
|
|
47654
|
+
});
|
|
47655
|
+
});
|
|
47656
|
+
});
|
|
47657
|
+
}, [
|
|
47658
|
+
overlay
|
|
47659
|
+
]);
|
|
47660
|
+
return {
|
|
47661
|
+
openGameProfileToast
|
|
47662
|
+
};
|
|
47663
|
+
};
|
|
47664
|
+
useGameCenterProfile = function(isReadyForProfileUI) {
|
|
47665
|
+
var _useState2 = _sliced_to_array((0, import_react217.useState)(void 0), 2), profileData = _useState2[0], setProfileData = _useState2[1];
|
|
47666
|
+
var _useState21 = _sliced_to_array((0, import_react217.useState)(true), 2), isProfileDataLoading = _useState21[0], setIsProfileDataLoading = _useState21[1];
|
|
47667
|
+
var _useState22 = _sliced_to_array((0, import_react217.useState)(false), 2), isProfileDataRefetching = _useState22[0], setIsProfileDataRefetching = _useState22[1];
|
|
47668
|
+
var shouldShowProfileLoadingOverlay = isProfileDataLoading && isReadyForProfileUI || isProfileDataRefetching;
|
|
47669
|
+
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
47670
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
47671
|
+
var openGameProfileToast = useGameProfileToast().openGameProfileToast;
|
|
47672
|
+
var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
|
|
47673
|
+
var _useTransparentWebview = useTransparentWebview(), openTransparentWebView2 = _useTransparentWebview.open;
|
|
47674
|
+
var fetchProfileData = (0, import_react217.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47675
|
+
var data, _17;
|
|
47676
|
+
return __generator(this, function(_state) {
|
|
47677
|
+
switch (_state.label) {
|
|
47678
|
+
case 0:
|
|
47679
|
+
_state.trys.push([
|
|
47680
|
+
0,
|
|
47681
|
+
2,
|
|
47682
|
+
,
|
|
47683
|
+
3
|
|
47684
|
+
]);
|
|
47685
|
+
return [
|
|
47686
|
+
4,
|
|
47687
|
+
getGameCenterGameProfile()
|
|
47688
|
+
];
|
|
47689
|
+
case 1:
|
|
47690
|
+
data = _state.sent();
|
|
47691
|
+
setProfileData(data);
|
|
47692
|
+
setIsProfileDataLoading(false);
|
|
47693
|
+
return [
|
|
47694
|
+
3,
|
|
47695
|
+
3
|
|
47696
|
+
];
|
|
47697
|
+
case 2:
|
|
47698
|
+
_17 = _state.sent();
|
|
47699
|
+
openErrorAlert();
|
|
47700
|
+
setIsProfileDataLoading(false);
|
|
47701
|
+
return [
|
|
47702
|
+
3,
|
|
47703
|
+
3
|
|
47704
|
+
];
|
|
47705
|
+
case 3:
|
|
47706
|
+
return [
|
|
47707
|
+
2
|
|
47708
|
+
];
|
|
47709
|
+
}
|
|
47710
|
+
});
|
|
47711
|
+
}), [
|
|
47712
|
+
openErrorAlert
|
|
47713
|
+
]);
|
|
47714
|
+
var refetchProfileData = (0, import_react217.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47715
|
+
var data, _17;
|
|
47383
47716
|
return __generator(this, function(_state) {
|
|
47384
47717
|
switch (_state.label) {
|
|
47385
47718
|
case 0:
|
|
47386
|
-
|
|
47387
|
-
|
|
47388
|
-
|
|
47389
|
-
|
|
47390
|
-
|
|
47719
|
+
_state.trys.push([
|
|
47720
|
+
0,
|
|
47721
|
+
2,
|
|
47722
|
+
,
|
|
47723
|
+
3
|
|
47724
|
+
]);
|
|
47725
|
+
setIsProfileDataRefetching(true);
|
|
47391
47726
|
return [
|
|
47392
47727
|
4,
|
|
47393
|
-
|
|
47394
|
-
title: upddateConfirmDialogLabel.title,
|
|
47395
|
-
leftButton: upddateConfirmDialogLabel.leftButton,
|
|
47396
|
-
rightButton: upddateConfirmDialogLabel.rightButton,
|
|
47397
|
-
closeOnDimmerClick: true
|
|
47398
|
-
})
|
|
47728
|
+
getGameCenterGameProfile()
|
|
47399
47729
|
];
|
|
47400
47730
|
case 1:
|
|
47401
|
-
|
|
47402
|
-
|
|
47403
|
-
|
|
47404
|
-
|
|
47405
|
-
|
|
47406
|
-
];
|
|
47731
|
+
data = _state.sent();
|
|
47732
|
+
setProfileData(data);
|
|
47733
|
+
setIsProfileDataRefetching(false);
|
|
47734
|
+
if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
|
|
47735
|
+
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
47407
47736
|
}
|
|
47408
|
-
|
|
47409
|
-
|
|
47737
|
+
return [
|
|
47738
|
+
3,
|
|
47739
|
+
3
|
|
47740
|
+
];
|
|
47741
|
+
case 2:
|
|
47742
|
+
_17 = _state.sent();
|
|
47743
|
+
setIsProfileDataRefetching(false);
|
|
47744
|
+
openErrorAlert();
|
|
47745
|
+
return [
|
|
47746
|
+
3,
|
|
47747
|
+
3
|
|
47748
|
+
];
|
|
47749
|
+
case 3:
|
|
47410
47750
|
return [
|
|
47411
47751
|
2
|
|
47412
47752
|
];
|
|
47413
47753
|
}
|
|
47414
47754
|
});
|
|
47415
47755
|
}), [
|
|
47416
|
-
|
|
47756
|
+
openErrorAlert,
|
|
47757
|
+
openGameProfileToast
|
|
47758
|
+
]);
|
|
47759
|
+
var openProfileWebview = (0, import_react217.useCallback)(function() {
|
|
47760
|
+
openTransparentWebView2({
|
|
47761
|
+
webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
|
|
47762
|
+
onClose: /* @__PURE__ */ _async_to_generator(function() {
|
|
47763
|
+
return __generator(this, function(_state) {
|
|
47764
|
+
refetchProfileData();
|
|
47765
|
+
return [
|
|
47766
|
+
2
|
|
47767
|
+
];
|
|
47768
|
+
});
|
|
47769
|
+
})
|
|
47770
|
+
});
|
|
47771
|
+
}, [
|
|
47772
|
+
openTransparentWebView2,
|
|
47773
|
+
refetchProfileData
|
|
47417
47774
|
]);
|
|
47418
47775
|
return {
|
|
47419
47776
|
profileData,
|
|
47420
47777
|
isProfileDataLoading,
|
|
47421
|
-
|
|
47422
|
-
shouldShowLoadingOverlay,
|
|
47778
|
+
shouldShowProfileLoadingOverlay,
|
|
47423
47779
|
shouldShowProfileNotFoundOverlay,
|
|
47424
47780
|
canShowBottomSheetOrToast,
|
|
47425
|
-
isCompletedProfileFlow,
|
|
47426
|
-
updateAppToSupportedMinVersion,
|
|
47427
47781
|
setIsProfileDataLoading,
|
|
47428
47782
|
openProfileWebview,
|
|
47429
47783
|
setProfileData,
|
|
47430
47784
|
openErrorAlert,
|
|
47431
|
-
openGameProfileToast
|
|
47785
|
+
openGameProfileToast,
|
|
47786
|
+
fetchProfileData
|
|
47432
47787
|
};
|
|
47433
47788
|
};
|
|
47434
47789
|
Z_INDEX = {
|
|
@@ -47438,42 +47793,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47438
47793
|
// 게임을 종료할 수 있는 X 버튼
|
|
47439
47794
|
CLOSE_BUTTON: 9999
|
|
47440
47795
|
};
|
|
47441
|
-
|
|
47796
|
+
GameInitializer = function(param) {
|
|
47442
47797
|
var children = param.children, isReadyForProfileUI = param.isReadyForProfileUI;
|
|
47443
|
-
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData,
|
|
47444
|
-
(0,
|
|
47445
|
-
|
|
47446
|
-
|
|
47447
|
-
|
|
47448
|
-
var data;
|
|
47449
|
-
return __generator(this, function(_state) {
|
|
47450
|
-
switch (_state.label) {
|
|
47451
|
-
case 0:
|
|
47452
|
-
return [
|
|
47453
|
-
4,
|
|
47454
|
-
getGameCenterGameProfile()
|
|
47455
|
-
];
|
|
47456
|
-
case 1:
|
|
47457
|
-
data = _state.sent();
|
|
47458
|
-
setProfileData(data);
|
|
47459
|
-
setIsProfileDataLoading(false);
|
|
47460
|
-
return [
|
|
47461
|
-
2
|
|
47462
|
-
];
|
|
47463
|
-
}
|
|
47464
|
-
});
|
|
47465
|
-
});
|
|
47466
|
-
return function getProfileData2() {
|
|
47467
|
-
return _ref.apply(this, arguments);
|
|
47468
|
-
};
|
|
47469
|
-
}();
|
|
47470
|
-
getProfileData();
|
|
47471
|
-
} catch (_17) {
|
|
47472
|
-
openErrorAlert();
|
|
47473
|
-
setIsProfileDataLoading(false);
|
|
47474
|
-
}
|
|
47798
|
+
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData, shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, openProfileWebview = _useGameCenterProfile.openProfileWebview, openGameProfileToast = _useGameCenterProfile.openGameProfileToast, fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
47799
|
+
var isCompletedFlow = (0, import_react215.useRef)(false);
|
|
47800
|
+
var _useAppUpdateDialog = useAppUpdateDialog(), openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
47801
|
+
(0, import_react215.useEffect)(function() {
|
|
47802
|
+
fetchProfileData();
|
|
47475
47803
|
}, []);
|
|
47476
|
-
(0,
|
|
47804
|
+
(0, import_react215.useEffect)(function() {
|
|
47477
47805
|
var handleGameProfileFlow = function() {
|
|
47478
47806
|
var _ref = _async_to_generator(function() {
|
|
47479
47807
|
return __generator(this, function(_state) {
|
|
@@ -47482,14 +47810,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47482
47810
|
2
|
|
47483
47811
|
];
|
|
47484
47812
|
}
|
|
47485
|
-
if (
|
|
47813
|
+
if (isCompletedFlow.current) {
|
|
47486
47814
|
return [
|
|
47487
47815
|
2
|
|
47488
47816
|
];
|
|
47489
47817
|
}
|
|
47490
|
-
|
|
47491
|
-
if (!isMinVersionSupported(
|
|
47492
|
-
|
|
47818
|
+
isCompletedFlow.current = true;
|
|
47819
|
+
if (!isMinVersionSupported(GAME_MIN_VERSION)) {
|
|
47820
|
+
openAppUpdateDialog({
|
|
47821
|
+
title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
|
|
47822
|
+
onDismiss: function() {
|
|
47823
|
+
closeView();
|
|
47824
|
+
}
|
|
47825
|
+
});
|
|
47493
47826
|
return [
|
|
47494
47827
|
2
|
|
47495
47828
|
];
|
|
@@ -47515,48 +47848,53 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47515
47848
|
handleGameProfileFlow();
|
|
47516
47849
|
}, [
|
|
47517
47850
|
canShowBottomSheetOrToast,
|
|
47518
|
-
|
|
47851
|
+
isCompletedFlow,
|
|
47852
|
+
openAppUpdateDialog,
|
|
47519
47853
|
openGameProfileToast,
|
|
47520
47854
|
openProfileWebview,
|
|
47521
|
-
profileData
|
|
47522
|
-
updateAppToSupportedMinVersion
|
|
47855
|
+
profileData
|
|
47523
47856
|
]);
|
|
47524
|
-
if (!isMinVersionSupported(
|
|
47525
|
-
return /* @__PURE__ */ (0,
|
|
47857
|
+
if (!isMinVersionSupported(GAME_MIN_VERSION)) {
|
|
47858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47526
47859
|
children: [
|
|
47527
|
-
/* @__PURE__ */ (0,
|
|
47860
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47528
47861
|
style: {
|
|
47529
47862
|
flex: 1,
|
|
47530
47863
|
position: "relative"
|
|
47531
47864
|
},
|
|
47532
47865
|
children
|
|
47533
47866
|
}),
|
|
47534
|
-
/* @__PURE__ */ (0,
|
|
47867
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.Pressable, {
|
|
47535
47868
|
style: _object_spread({}, overlayStyle),
|
|
47536
47869
|
onPress: function() {
|
|
47537
|
-
|
|
47870
|
+
openAppUpdateDialog({
|
|
47871
|
+
title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
|
|
47872
|
+
onDismiss: function() {
|
|
47873
|
+
closeView();
|
|
47874
|
+
}
|
|
47875
|
+
});
|
|
47538
47876
|
}
|
|
47539
47877
|
})
|
|
47540
47878
|
]
|
|
47541
47879
|
});
|
|
47542
47880
|
}
|
|
47543
|
-
if (
|
|
47544
|
-
return /* @__PURE__ */ (0,
|
|
47881
|
+
if (shouldShowProfileLoadingOverlay) {
|
|
47882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47545
47883
|
children: [
|
|
47546
|
-
/* @__PURE__ */ (0,
|
|
47884
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47547
47885
|
style: {
|
|
47548
47886
|
flex: 1,
|
|
47549
47887
|
position: "relative"
|
|
47550
47888
|
},
|
|
47551
47889
|
children
|
|
47552
47890
|
}),
|
|
47553
|
-
/* @__PURE__ */ (0,
|
|
47891
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47554
47892
|
style: _object_spread_props(_object_spread({}, overlayStyle), {
|
|
47555
47893
|
justifyContent: "center",
|
|
47556
47894
|
alignItems: "center",
|
|
47557
47895
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
47558
47896
|
}),
|
|
47559
|
-
children: /* @__PURE__ */ (0,
|
|
47897
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Loader_default, {
|
|
47560
47898
|
size: "large",
|
|
47561
47899
|
type: "light"
|
|
47562
47900
|
})
|
|
@@ -47565,16 +47903,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47565
47903
|
});
|
|
47566
47904
|
}
|
|
47567
47905
|
if (shouldShowProfileNotFoundOverlay) {
|
|
47568
|
-
return /* @__PURE__ */ (0,
|
|
47906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47569
47907
|
children: [
|
|
47570
|
-
/* @__PURE__ */ (0,
|
|
47908
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47571
47909
|
style: {
|
|
47572
47910
|
flex: 1,
|
|
47573
47911
|
position: "relative"
|
|
47574
47912
|
},
|
|
47575
47913
|
children
|
|
47576
47914
|
}),
|
|
47577
|
-
shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0,
|
|
47915
|
+
shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.Pressable, {
|
|
47578
47916
|
style: _object_spread({}, overlayStyle),
|
|
47579
47917
|
onPress: function() {
|
|
47580
47918
|
openProfileWebview();
|
|
@@ -47583,8 +47921,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47583
47921
|
]
|
|
47584
47922
|
});
|
|
47585
47923
|
}
|
|
47586
|
-
return /* @__PURE__ */ (0,
|
|
47587
|
-
children: /* @__PURE__ */ (0,
|
|
47924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
|
|
47925
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47588
47926
|
style: {
|
|
47589
47927
|
flex: 1,
|
|
47590
47928
|
position: "relative"
|
|
@@ -47601,10 +47939,55 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47601
47939
|
bottom: 0,
|
|
47602
47940
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
47603
47941
|
};
|
|
47604
|
-
|
|
47605
|
-
|
|
47606
|
-
|
|
47607
|
-
|
|
47942
|
+
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47943
|
+
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47944
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47945
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47946
|
+
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47947
|
+
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47948
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47949
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47950
|
+
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47951
|
+
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47952
|
+
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
47953
|
+
BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
47954
|
+
BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
47955
|
+
BOTTOM_SHEET_OPEN_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_more";
|
|
47956
|
+
BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID = 1596843;
|
|
47957
|
+
BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__close";
|
|
47958
|
+
BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID = 1596841;
|
|
47959
|
+
BOTTOM_SHEET_MENU_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__menu";
|
|
47960
|
+
SHARE_SCHEME_REFERRER = "appsintoss.common_module_share";
|
|
47961
|
+
APP_SHARE_MENU_INFO = {
|
|
47962
|
+
contactItemName: "\uACF5\uC720\uD558\uAE30",
|
|
47963
|
+
contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
|
|
47964
|
+
};
|
|
47965
|
+
APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
47966
|
+
MIN_VERSION = {
|
|
47967
|
+
BOTTOM_SHEET: {
|
|
47968
|
+
android: "5.226.0",
|
|
47969
|
+
ios: "5.226.0"
|
|
47970
|
+
},
|
|
47971
|
+
SHARE_LIST_MENU: {
|
|
47972
|
+
android: "5.230.0",
|
|
47973
|
+
ios: "5.230.0"
|
|
47974
|
+
}
|
|
47975
|
+
};
|
|
47976
|
+
RNNavigationBar = {
|
|
47977
|
+
Default: DefaultNavigationBar,
|
|
47978
|
+
Game: GameNavigationBar
|
|
47979
|
+
};
|
|
47980
|
+
bridge_entry_exports = {};
|
|
47981
|
+
__reExport2(bridge_entry_exports, async_bridges_exports);
|
|
47982
|
+
__reExport2(bridge_entry_exports, constant_bridges_exports);
|
|
47983
|
+
__reExport2(bridge_entry_exports, event_bridges_exports);
|
|
47984
|
+
AppsInToss = {
|
|
47985
|
+
registerApp
|
|
47986
|
+
};
|
|
47987
|
+
GameWebView = /* @__PURE__ */ (0, import_react227.forwardRef)(function GameWebView2(props, ref) {
|
|
47988
|
+
var _useState5 = _sliced_to_array((0, import_react227.useState)(false), 2), isEntryMessageExited = _useState5[0], setIsEntryMessageExited = _useState5[1];
|
|
47989
|
+
(0, import_react227.useEffect)(function() {
|
|
47990
|
+
if (import_react_native222.Platform.OS === "ios") {
|
|
47608
47991
|
setIosSwipeGestureEnabled({
|
|
47609
47992
|
isEnabled: false
|
|
47610
47993
|
});
|
|
@@ -47616,39 +47999,39 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47616
47999
|
}
|
|
47617
48000
|
return;
|
|
47618
48001
|
}, []);
|
|
47619
|
-
(0,
|
|
48002
|
+
(0, import_react227.useEffect)(function() {
|
|
47620
48003
|
appsInTossEvent.addEventListener("entryMessageExited", {
|
|
47621
48004
|
onEvent: function() {
|
|
47622
48005
|
setIsEntryMessageExited(true);
|
|
47623
48006
|
}
|
|
47624
48007
|
});
|
|
47625
48008
|
}, []);
|
|
47626
|
-
return /* @__PURE__ */ (0,
|
|
48009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_jsx_runtime228.Fragment, {
|
|
47627
48010
|
children: [
|
|
47628
|
-
/* @__PURE__ */ (0,
|
|
47629
|
-
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0,
|
|
48011
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameWebviewNavigationBar, {}),
|
|
48012
|
+
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameInitializer, {
|
|
47630
48013
|
isReadyForProfileUI: isEntryMessageExited,
|
|
47631
|
-
children: /* @__PURE__ */ (0,
|
|
48014
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
47632
48015
|
ref
|
|
47633
48016
|
}, props))
|
|
47634
|
-
}) : /* @__PURE__ */ (0,
|
|
48017
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
47635
48018
|
ref
|
|
47636
48019
|
}, props))
|
|
47637
48020
|
]
|
|
47638
48021
|
});
|
|
47639
48022
|
});
|
|
47640
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48023
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react229.forwardRef)(function PartnerWebViewScreen(_param, ref) {
|
|
47641
48024
|
var onBackButtonClick = _param.onBackButtonClick, onHomeButtonClick = _param.onHomeButtonClick, webViewProps = _object_without_properties(_param, [
|
|
47642
48025
|
"onBackButtonClick",
|
|
47643
48026
|
"onHomeButtonClick"
|
|
47644
48027
|
]);
|
|
47645
|
-
return /* @__PURE__ */ (0,
|
|
48028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, {
|
|
47646
48029
|
children: [
|
|
47647
|
-
/* @__PURE__ */ (0,
|
|
48030
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(PartnerWebviewNavigationBar, {
|
|
47648
48031
|
onBackButtonClick,
|
|
47649
48032
|
onHomeButtonClick
|
|
47650
48033
|
}),
|
|
47651
|
-
/* @__PURE__ */ (0,
|
|
48034
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
|
|
47652
48035
|
ref
|
|
47653
48036
|
}, webViewProps), {
|
|
47654
48037
|
style: {
|
|
@@ -47770,11 +48153,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47770
48153
|
}
|
|
47771
48154
|
});
|
|
47772
48155
|
function Index() {
|
|
47773
|
-
return /* @__PURE__ */ (0,
|
|
48156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native229.View, {
|
|
47774
48157
|
style: {
|
|
47775
48158
|
flex: 1
|
|
47776
48159
|
},
|
|
47777
|
-
children: /* @__PURE__ */ (0,
|
|
48160
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(WebView, {
|
|
47778
48161
|
style: {
|
|
47779
48162
|
flex: 1
|
|
47780
48163
|
},
|
|
@@ -47792,13 +48175,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47792
48175
|
})
|
|
47793
48176
|
});
|
|
47794
48177
|
}
|
|
47795
|
-
var
|
|
48178
|
+
var import_jsx_runtime232, import_react_native229;
|
|
47796
48179
|
var init_pages = __esm({
|
|
47797
48180
|
"react-native/pages/index.tsx"() {
|
|
47798
48181
|
"use strict";
|
|
47799
|
-
|
|
48182
|
+
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47800
48183
|
init_dist8();
|
|
47801
|
-
|
|
48184
|
+
import_react_native229 = __toESM(require_react_native(), 1);
|
|
47802
48185
|
}
|
|
47803
48186
|
});
|
|
47804
48187
|
|
|
@@ -47823,7 +48206,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47823
48206
|
return app_default;
|
|
47824
48207
|
}
|
|
47825
48208
|
});
|
|
47826
|
-
var
|
|
48209
|
+
var import_jsx_runtime233 = __toESM(require_jsx_runtime());
|
|
47827
48210
|
|
|
47828
48211
|
// ../../.yarn/cache/@react-native-js-polyfills-npm-0.72.1-52931e590c-e4a77d6c8b.zip/node_modules/@react-native/js-polyfills/console.js
|
|
47829
48212
|
init_instanceof();
|
|
@@ -48405,7 +48788,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48405
48788
|
// react-native/src/_app.tsx
|
|
48406
48789
|
function AppContainer(param) {
|
|
48407
48790
|
var children = param.children;
|
|
48408
|
-
return /* @__PURE__ */ (0,
|
|
48791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(import_jsx_runtime233.Fragment, {
|
|
48409
48792
|
children
|
|
48410
48793
|
});
|
|
48411
48794
|
}
|