@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
|
@@ -44127,7 +44127,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44127
44127
|
});
|
|
44128
44128
|
|
|
44129
44129
|
// ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts
|
|
44130
|
-
var GAME_CENTER_MIN_VERSION2;
|
|
44130
|
+
var GAME_CENTER_MIN_VERSION2, GAME_USER_KEY_MIN_VERSION, GAME_PROMOTION_REWARD_MIN_VERSION;
|
|
44131
44131
|
var init_constants13 = __esm({
|
|
44132
44132
|
"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts"() {
|
|
44133
44133
|
"use strict";
|
|
@@ -44135,6 +44135,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44135
44135
|
android: "5.221.0",
|
|
44136
44136
|
ios: "5.221.0"
|
|
44137
44137
|
};
|
|
44138
|
+
GAME_USER_KEY_MIN_VERSION = {
|
|
44139
|
+
android: "5.232.0",
|
|
44140
|
+
ios: "5.232.0"
|
|
44141
|
+
};
|
|
44142
|
+
GAME_PROMOTION_REWARD_MIN_VERSION = {
|
|
44143
|
+
android: "5.232.0",
|
|
44144
|
+
ios: "5.232.0"
|
|
44145
|
+
};
|
|
44138
44146
|
}
|
|
44139
44147
|
});
|
|
44140
44148
|
|
|
@@ -44243,6 +44251,160 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44243
44251
|
}
|
|
44244
44252
|
});
|
|
44245
44253
|
|
|
44254
|
+
// ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts
|
|
44255
|
+
function getUserKeyForGame() {
|
|
44256
|
+
return _getUserKeyForGame.apply(this, arguments);
|
|
44257
|
+
}
|
|
44258
|
+
function _getUserKeyForGame() {
|
|
44259
|
+
_getUserKeyForGame = _async_to_generator(function() {
|
|
44260
|
+
var isSupported, response, _17;
|
|
44261
|
+
return __generator(this, function(_state) {
|
|
44262
|
+
switch (_state.label) {
|
|
44263
|
+
case 0:
|
|
44264
|
+
isSupported = isMinVersionSupported2(GAME_USER_KEY_MIN_VERSION);
|
|
44265
|
+
if (!isSupported) {
|
|
44266
|
+
return [
|
|
44267
|
+
2
|
|
44268
|
+
];
|
|
44269
|
+
}
|
|
44270
|
+
_state.label = 1;
|
|
44271
|
+
case 1:
|
|
44272
|
+
_state.trys.push([
|
|
44273
|
+
1,
|
|
44274
|
+
3,
|
|
44275
|
+
,
|
|
44276
|
+
4
|
|
44277
|
+
]);
|
|
44278
|
+
return [
|
|
44279
|
+
4,
|
|
44280
|
+
AppsInTossModule2.getUserKeyForGame({})
|
|
44281
|
+
];
|
|
44282
|
+
case 2:
|
|
44283
|
+
response = _state.sent();
|
|
44284
|
+
if (response.type === "HASH") {
|
|
44285
|
+
return [
|
|
44286
|
+
2,
|
|
44287
|
+
response
|
|
44288
|
+
];
|
|
44289
|
+
}
|
|
44290
|
+
if (response.type === "NOT_AVAILABLE") {
|
|
44291
|
+
return [
|
|
44292
|
+
2,
|
|
44293
|
+
"INVALID_CATEGORY"
|
|
44294
|
+
];
|
|
44295
|
+
}
|
|
44296
|
+
return [
|
|
44297
|
+
2,
|
|
44298
|
+
"ERROR"
|
|
44299
|
+
];
|
|
44300
|
+
case 3:
|
|
44301
|
+
_17 = _state.sent();
|
|
44302
|
+
return [
|
|
44303
|
+
2,
|
|
44304
|
+
"ERROR"
|
|
44305
|
+
];
|
|
44306
|
+
case 4:
|
|
44307
|
+
return [
|
|
44308
|
+
2
|
|
44309
|
+
];
|
|
44310
|
+
}
|
|
44311
|
+
});
|
|
44312
|
+
});
|
|
44313
|
+
return _getUserKeyForGame.apply(this, arguments);
|
|
44314
|
+
}
|
|
44315
|
+
var init_getUserKeyForGame = __esm({
|
|
44316
|
+
"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts"() {
|
|
44317
|
+
"use strict";
|
|
44318
|
+
init_async_to_generator();
|
|
44319
|
+
init_ts_generator();
|
|
44320
|
+
init_AppsInTossModule();
|
|
44321
|
+
init_isMinVersionSupported();
|
|
44322
|
+
init_constants13();
|
|
44323
|
+
}
|
|
44324
|
+
});
|
|
44325
|
+
|
|
44326
|
+
// ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts
|
|
44327
|
+
function isGrantPromotionRewardForGameError(error) {
|
|
44328
|
+
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";
|
|
44329
|
+
}
|
|
44330
|
+
function grantPromotionRewardForGame(_17) {
|
|
44331
|
+
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
44332
|
+
}
|
|
44333
|
+
function _grantPromotionRewardForGame() {
|
|
44334
|
+
_grantPromotionRewardForGame = _async_to_generator(function(param) {
|
|
44335
|
+
var params, isSupported, response, error;
|
|
44336
|
+
return __generator(this, function(_state) {
|
|
44337
|
+
switch (_state.label) {
|
|
44338
|
+
case 0:
|
|
44339
|
+
params = param.params;
|
|
44340
|
+
isSupported = isMinVersionSupported2(GAME_PROMOTION_REWARD_MIN_VERSION);
|
|
44341
|
+
if (!isSupported) {
|
|
44342
|
+
return [
|
|
44343
|
+
2
|
|
44344
|
+
];
|
|
44345
|
+
}
|
|
44346
|
+
_state.label = 1;
|
|
44347
|
+
case 1:
|
|
44348
|
+
_state.trys.push([
|
|
44349
|
+
1,
|
|
44350
|
+
3,
|
|
44351
|
+
,
|
|
44352
|
+
4
|
|
44353
|
+
]);
|
|
44354
|
+
return [
|
|
44355
|
+
4,
|
|
44356
|
+
AppsInTossModule2.grantPromotionRewardForGame({
|
|
44357
|
+
params
|
|
44358
|
+
})
|
|
44359
|
+
];
|
|
44360
|
+
case 2:
|
|
44361
|
+
response = _state.sent();
|
|
44362
|
+
if (response.key) {
|
|
44363
|
+
return [
|
|
44364
|
+
2,
|
|
44365
|
+
response
|
|
44366
|
+
];
|
|
44367
|
+
}
|
|
44368
|
+
return [
|
|
44369
|
+
2,
|
|
44370
|
+
"ERROR"
|
|
44371
|
+
];
|
|
44372
|
+
case 3:
|
|
44373
|
+
error = _state.sent();
|
|
44374
|
+
if (isGrantPromotionRewardForGameError(error)) {
|
|
44375
|
+
return [
|
|
44376
|
+
2,
|
|
44377
|
+
{
|
|
44378
|
+
errorCode: error.code,
|
|
44379
|
+
message: error.message
|
|
44380
|
+
}
|
|
44381
|
+
];
|
|
44382
|
+
}
|
|
44383
|
+
return [
|
|
44384
|
+
2,
|
|
44385
|
+
"ERROR"
|
|
44386
|
+
];
|
|
44387
|
+
case 4:
|
|
44388
|
+
return [
|
|
44389
|
+
2
|
|
44390
|
+
];
|
|
44391
|
+
}
|
|
44392
|
+
});
|
|
44393
|
+
});
|
|
44394
|
+
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
44395
|
+
}
|
|
44396
|
+
var init_grantPromotionRewardForGame = __esm({
|
|
44397
|
+
"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts"() {
|
|
44398
|
+
"use strict";
|
|
44399
|
+
init_async_to_generator();
|
|
44400
|
+
init_type_of();
|
|
44401
|
+
init_ts_generator();
|
|
44402
|
+
init_AppsInTossModule();
|
|
44403
|
+
init_isMinVersionSupported();
|
|
44404
|
+
init_constants13();
|
|
44405
|
+
}
|
|
44406
|
+
});
|
|
44407
|
+
|
|
44246
44408
|
// ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/async-bridges.ts
|
|
44247
44409
|
var async_bridges_exports = {};
|
|
44248
44410
|
__export(async_bridges_exports, {
|
|
@@ -44288,6 +44450,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44288
44450
|
getTossShareLink: function() {
|
|
44289
44451
|
return getTossShareLink;
|
|
44290
44452
|
},
|
|
44453
|
+
getUserKeyForGame: function() {
|
|
44454
|
+
return getUserKeyForGame;
|
|
44455
|
+
},
|
|
44456
|
+
grantPromotionRewardForGame: function() {
|
|
44457
|
+
return grantPromotionRewardForGame;
|
|
44458
|
+
},
|
|
44291
44459
|
openCamera: function() {
|
|
44292
44460
|
return openCamera2;
|
|
44293
44461
|
},
|
|
@@ -44358,6 +44526,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44358
44526
|
init_getGameCenterGameProfile();
|
|
44359
44527
|
init_openGameCenterLeaderboard();
|
|
44360
44528
|
init_submitGameCenterLeaderBoardScore();
|
|
44529
|
+
init_getUserKeyForGame();
|
|
44530
|
+
init_grantPromotionRewardForGame();
|
|
44361
44531
|
}
|
|
44362
44532
|
});
|
|
44363
44533
|
|
|
@@ -45193,6 +45363,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45193
45363
|
init_openGameCenterLeaderboard();
|
|
45194
45364
|
init_getGameCenterGameProfile();
|
|
45195
45365
|
init_submitGameCenterLeaderBoardScore();
|
|
45366
|
+
init_getUserKeyForGame();
|
|
45367
|
+
init_grantPromotionRewardForGame();
|
|
45196
45368
|
init_contactsViral();
|
|
45197
45369
|
init_appsInTossSignTossCert();
|
|
45198
45370
|
}
|
|
@@ -45377,19 +45549,161 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45377
45549
|
var controller = useBridge();
|
|
45378
45550
|
var appsInTossGlobals = getAppsInTossGlobals();
|
|
45379
45551
|
(0, import_react212.useEffect)(function() {
|
|
45380
|
-
var
|
|
45552
|
+
var isGameApp = appsInTossGlobals.webViewType === "game" || appsInTossGlobals.appType === "game";
|
|
45553
|
+
controller.open({
|
|
45381
45554
|
serviceName: appsInTossGlobals.brandDisplayName,
|
|
45382
45555
|
icon: toIcon(appsInTossGlobals.brandIcon),
|
|
45383
45556
|
color: appsInTossGlobals.brandPrimaryColor,
|
|
45384
|
-
colorMode: appsInTossGlobals.brandBridgeColorMode
|
|
45385
|
-
};
|
|
45386
|
-
controller.open(_object_spread_props(_object_spread({}, commonProps), {
|
|
45557
|
+
colorMode: isGameApp ? "inverted" : appsInTossGlobals.brandBridgeColorMode,
|
|
45387
45558
|
onExited: function() {
|
|
45388
45559
|
appsInTossEvent.emit("entryMessageExited", void 0);
|
|
45389
45560
|
}
|
|
45390
|
-
})
|
|
45561
|
+
});
|
|
45391
45562
|
}, []);
|
|
45392
45563
|
}
|
|
45564
|
+
function useAppUpdateDialog() {
|
|
45565
|
+
var openConfirm = useDialog().openConfirm;
|
|
45566
|
+
var logging = useAppUpdateDialogLogging();
|
|
45567
|
+
var openAppUpdateDialog = (0, import_react215.useCallback)(function() {
|
|
45568
|
+
var _ref = _async_to_generator(function(param) {
|
|
45569
|
+
var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, onDismiss, isConfirmed, STORE_SCHEME;
|
|
45570
|
+
return __generator(this, function(_state) {
|
|
45571
|
+
switch (_state.label) {
|
|
45572
|
+
case 0:
|
|
45573
|
+
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;
|
|
45574
|
+
logging.show();
|
|
45575
|
+
return [
|
|
45576
|
+
4,
|
|
45577
|
+
openConfirm({
|
|
45578
|
+
title,
|
|
45579
|
+
description,
|
|
45580
|
+
leftButton,
|
|
45581
|
+
rightButton,
|
|
45582
|
+
closeOnDimmerClick: true
|
|
45583
|
+
})
|
|
45584
|
+
];
|
|
45585
|
+
case 1:
|
|
45586
|
+
isConfirmed = _state.sent();
|
|
45587
|
+
if (!isConfirmed) {
|
|
45588
|
+
logging.close();
|
|
45589
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
45590
|
+
return [
|
|
45591
|
+
2
|
|
45592
|
+
];
|
|
45593
|
+
}
|
|
45594
|
+
logging.update();
|
|
45595
|
+
STORE_SCHEME = getMarketLink();
|
|
45596
|
+
openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
45597
|
+
return [
|
|
45598
|
+
2
|
|
45599
|
+
];
|
|
45600
|
+
}
|
|
45601
|
+
});
|
|
45602
|
+
});
|
|
45603
|
+
return function(_17) {
|
|
45604
|
+
return _ref.apply(this, arguments);
|
|
45605
|
+
};
|
|
45606
|
+
}(), [
|
|
45607
|
+
logging,
|
|
45608
|
+
openConfirm
|
|
45609
|
+
]);
|
|
45610
|
+
return {
|
|
45611
|
+
open: openAppUpdateDialog
|
|
45612
|
+
};
|
|
45613
|
+
}
|
|
45614
|
+
function useAppUpdateDialogLogging() {
|
|
45615
|
+
var referrer2 = useReferrer();
|
|
45616
|
+
var baseParams = {
|
|
45617
|
+
referrer: referrer2,
|
|
45618
|
+
app_name: Granite.appName
|
|
45619
|
+
};
|
|
45620
|
+
var logUpdateClick = function() {
|
|
45621
|
+
INTERNAL__module.tossCoreEventLog({
|
|
45622
|
+
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45623
|
+
log_type: "event",
|
|
45624
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45625
|
+
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
45626
|
+
event_type: "click",
|
|
45627
|
+
button_type: "update"
|
|
45628
|
+
})
|
|
45629
|
+
});
|
|
45630
|
+
};
|
|
45631
|
+
var logCloseClick = function() {
|
|
45632
|
+
INTERNAL__module.tossCoreEventLog({
|
|
45633
|
+
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45634
|
+
log_type: "event",
|
|
45635
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45636
|
+
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
45637
|
+
event_type: "click",
|
|
45638
|
+
button_type: "close"
|
|
45639
|
+
})
|
|
45640
|
+
});
|
|
45641
|
+
};
|
|
45642
|
+
var logDialogShow = function() {
|
|
45643
|
+
INTERNAL__module.tossCoreEventLog({
|
|
45644
|
+
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
45645
|
+
log_type: "popup",
|
|
45646
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45647
|
+
schema_id: UPDATE_DIALOG_SCHEMA_ID
|
|
45648
|
+
})
|
|
45649
|
+
});
|
|
45650
|
+
};
|
|
45651
|
+
return {
|
|
45652
|
+
update: logUpdateClick,
|
|
45653
|
+
close: logCloseClick,
|
|
45654
|
+
show: logDialogShow
|
|
45655
|
+
};
|
|
45656
|
+
}
|
|
45657
|
+
function useHardwareBackPress(handler) {
|
|
45658
|
+
(0, import_react220.useEffect)(function() {
|
|
45659
|
+
var handleBackPress = function() {
|
|
45660
|
+
handler();
|
|
45661
|
+
return true;
|
|
45662
|
+
};
|
|
45663
|
+
import_react_native212.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
|
|
45664
|
+
return function() {
|
|
45665
|
+
return import_react_native212.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
|
|
45666
|
+
};
|
|
45667
|
+
}, [
|
|
45668
|
+
handler
|
|
45669
|
+
]);
|
|
45670
|
+
}
|
|
45671
|
+
function useCloseConfirm() {
|
|
45672
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45673
|
+
var openConfirm = useDialog().openConfirm;
|
|
45674
|
+
return (0, import_react222.useCallback)(function() {
|
|
45675
|
+
var _ref = _async_to_generator(function(param) {
|
|
45676
|
+
var onEntered;
|
|
45677
|
+
return __generator(this, function(_state) {
|
|
45678
|
+
switch (_state.label) {
|
|
45679
|
+
case 0:
|
|
45680
|
+
onEntered = param.onEntered;
|
|
45681
|
+
return [
|
|
45682
|
+
4,
|
|
45683
|
+
openConfirm({
|
|
45684
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45685
|
+
leftButton: "\uCDE8\uC18C",
|
|
45686
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45687
|
+
closeOnDimmerClick: true,
|
|
45688
|
+
onEntered
|
|
45689
|
+
})
|
|
45690
|
+
];
|
|
45691
|
+
case 1:
|
|
45692
|
+
return [
|
|
45693
|
+
2,
|
|
45694
|
+
_state.sent()
|
|
45695
|
+
];
|
|
45696
|
+
}
|
|
45697
|
+
});
|
|
45698
|
+
});
|
|
45699
|
+
return function(_17) {
|
|
45700
|
+
return _ref.apply(this, arguments);
|
|
45701
|
+
};
|
|
45702
|
+
}(), [
|
|
45703
|
+
brandDisplayName,
|
|
45704
|
+
openConfirm
|
|
45705
|
+
]);
|
|
45706
|
+
}
|
|
45393
45707
|
function useNavigationBarLogging() {
|
|
45394
45708
|
var referrer2 = useReferrer();
|
|
45395
45709
|
var baseParams = {
|
|
@@ -45454,31 +45768,75 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45454
45768
|
homeButtonClick: logHomeButtonClick
|
|
45455
45769
|
};
|
|
45456
45770
|
}
|
|
45457
|
-
function
|
|
45458
|
-
var
|
|
45459
|
-
var hasLogged = (0, import_react214.useRef)(false);
|
|
45771
|
+
function useNavigationEvent() {
|
|
45772
|
+
var backEventContext = useBackEventContext();
|
|
45460
45773
|
var logging = useNavigationBarLogging();
|
|
45461
|
-
|
|
45462
|
-
|
|
45463
|
-
|
|
45464
|
-
|
|
45465
|
-
|
|
45466
|
-
|
|
45467
|
-
|
|
45468
|
-
|
|
45469
|
-
|
|
45470
|
-
|
|
45471
|
-
|
|
45472
|
-
|
|
45473
|
-
|
|
45474
|
-
|
|
45475
|
-
|
|
45476
|
-
|
|
45477
|
-
|
|
45478
|
-
|
|
45479
|
-
|
|
45480
|
-
|
|
45481
|
-
|
|
45774
|
+
var navigation = useNavigation();
|
|
45775
|
+
var closeConfirm = useCloseConfirm();
|
|
45776
|
+
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
45777
|
+
return (0, import_react221.useMemo)(function() {
|
|
45778
|
+
var close = function() {
|
|
45779
|
+
var _ref = _async_to_generator(function() {
|
|
45780
|
+
var hasConfirmed;
|
|
45781
|
+
return __generator(this, function(_state) {
|
|
45782
|
+
switch (_state.label) {
|
|
45783
|
+
case 0:
|
|
45784
|
+
return [
|
|
45785
|
+
4,
|
|
45786
|
+
closeConfirm({
|
|
45787
|
+
onEntered: logging.closePopupShow
|
|
45788
|
+
})
|
|
45789
|
+
];
|
|
45790
|
+
case 1:
|
|
45791
|
+
hasConfirmed = _state.sent();
|
|
45792
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
45793
|
+
if (hasConfirmed) {
|
|
45794
|
+
captureExitLog(Date.now());
|
|
45795
|
+
closeView();
|
|
45796
|
+
}
|
|
45797
|
+
return [
|
|
45798
|
+
2
|
|
45799
|
+
];
|
|
45800
|
+
}
|
|
45801
|
+
});
|
|
45802
|
+
});
|
|
45803
|
+
return function close2() {
|
|
45804
|
+
return _ref.apply(this, arguments);
|
|
45805
|
+
};
|
|
45806
|
+
}();
|
|
45807
|
+
return {
|
|
45808
|
+
handleBack: function() {
|
|
45809
|
+
if (backEventContext.hasBackEvent) {
|
|
45810
|
+
backEventContext.onBack();
|
|
45811
|
+
} else if (navigation.canGoBack()) {
|
|
45812
|
+
navigation.goBack();
|
|
45813
|
+
} else {
|
|
45814
|
+
close();
|
|
45815
|
+
}
|
|
45816
|
+
},
|
|
45817
|
+
handleHomeButtonClick: function() {
|
|
45818
|
+
logging.homeButtonClick();
|
|
45819
|
+
navigation.navigate("/");
|
|
45820
|
+
},
|
|
45821
|
+
handleCloseButtonClick: function() {
|
|
45822
|
+
logging.closeButtonClick();
|
|
45823
|
+
close();
|
|
45824
|
+
}
|
|
45825
|
+
};
|
|
45826
|
+
}, [
|
|
45827
|
+
backEventContext,
|
|
45828
|
+
navigation,
|
|
45829
|
+
closeConfirm,
|
|
45830
|
+
logging,
|
|
45831
|
+
captureExitLog
|
|
45832
|
+
]);
|
|
45833
|
+
}
|
|
45834
|
+
function useMoreButtonBottomSheetLogging() {
|
|
45835
|
+
var referrer2 = useReferrer();
|
|
45836
|
+
var baseParams = {
|
|
45837
|
+
referrer: referrer2,
|
|
45838
|
+
app_name: Granite.appName
|
|
45839
|
+
};
|
|
45482
45840
|
var logBottomSheetShow = function() {
|
|
45483
45841
|
INTERNAL__module.tossCoreEventLog({
|
|
45484
45842
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
@@ -45561,15 +45919,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45561
45919
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
45562
45920
|
referrer: SHARE_SCHEME_REFERRER
|
|
45563
45921
|
});
|
|
45564
|
-
return /* @__PURE__ */ (0,
|
|
45565
|
-
left: /* @__PURE__ */ (0,
|
|
45922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2, {
|
|
45923
|
+
left: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Icon, {
|
|
45566
45924
|
color: globals.brandPrimaryColor,
|
|
45567
45925
|
source: {
|
|
45568
45926
|
uri: APP_SHARE_MENU_INFO.contactIconUrl
|
|
45569
45927
|
},
|
|
45570
45928
|
type: "background"
|
|
45571
45929
|
}),
|
|
45572
|
-
contents: /* @__PURE__ */ (0,
|
|
45930
|
+
contents: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Texts, {
|
|
45573
45931
|
type: "1RowTypeA",
|
|
45574
45932
|
top: APP_SHARE_MENU_INFO.contactItemName,
|
|
45575
45933
|
topProps: {
|
|
@@ -45590,7 +45948,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45590
45948
|
logging.menuClick({
|
|
45591
45949
|
title: APP_SHARE_MENU_INFO.contactItemName
|
|
45592
45950
|
});
|
|
45593
|
-
|
|
45951
|
+
import_react_native217.NativeModules.AppsInTossModule.shareWithScheme({
|
|
45594
45952
|
params: {
|
|
45595
45953
|
schemeURL: schemeForShare
|
|
45596
45954
|
}
|
|
@@ -45598,98 +45956,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45598
45956
|
}
|
|
45599
45957
|
});
|
|
45600
45958
|
}
|
|
45601
|
-
function useAppUpdateDialog() {
|
|
45602
|
-
var openConfirm = useDialog().openConfirm;
|
|
45603
|
-
var logging = useAppUpdateDialogLogging();
|
|
45604
|
-
var openAppUpdateDialog = (0, import_react216.useCallback)(function() {
|
|
45605
|
-
var _ref = _async_to_generator(function(param) {
|
|
45606
|
-
var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, isConfirmed, STORE_SCHEME;
|
|
45607
|
-
return __generator(this, function(_state) {
|
|
45608
|
-
switch (_state.label) {
|
|
45609
|
-
case 0:
|
|
45610
|
-
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;
|
|
45611
|
-
logging.show();
|
|
45612
|
-
return [
|
|
45613
|
-
4,
|
|
45614
|
-
openConfirm({
|
|
45615
|
-
title,
|
|
45616
|
-
description,
|
|
45617
|
-
leftButton,
|
|
45618
|
-
rightButton,
|
|
45619
|
-
closeOnDimmerClick: true
|
|
45620
|
-
})
|
|
45621
|
-
];
|
|
45622
|
-
case 1:
|
|
45623
|
-
isConfirmed = _state.sent();
|
|
45624
|
-
if (!isConfirmed) {
|
|
45625
|
-
logging.close();
|
|
45626
|
-
return [
|
|
45627
|
-
2
|
|
45628
|
-
];
|
|
45629
|
-
}
|
|
45630
|
-
logging.update();
|
|
45631
|
-
STORE_SCHEME = getMarketLink();
|
|
45632
|
-
openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
45633
|
-
return [
|
|
45634
|
-
2
|
|
45635
|
-
];
|
|
45636
|
-
}
|
|
45637
|
-
});
|
|
45638
|
-
});
|
|
45639
|
-
return function(_17) {
|
|
45640
|
-
return _ref.apply(this, arguments);
|
|
45641
|
-
};
|
|
45642
|
-
}(), [
|
|
45643
|
-
logging,
|
|
45644
|
-
openConfirm
|
|
45645
|
-
]);
|
|
45646
|
-
return {
|
|
45647
|
-
open: openAppUpdateDialog
|
|
45648
|
-
};
|
|
45649
|
-
}
|
|
45650
|
-
function useAppUpdateDialogLogging() {
|
|
45651
|
-
var referrer2 = useReferrer();
|
|
45652
|
-
var baseParams = {
|
|
45653
|
-
referrer: referrer2,
|
|
45654
|
-
app_name: Granite.appName
|
|
45655
|
-
};
|
|
45656
|
-
var logUpdateClick = function() {
|
|
45657
|
-
INTERNAL__module.tossCoreEventLog({
|
|
45658
|
-
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45659
|
-
log_type: "event",
|
|
45660
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45661
|
-
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
45662
|
-
event_type: "click",
|
|
45663
|
-
button_type: "update"
|
|
45664
|
-
})
|
|
45665
|
-
});
|
|
45666
|
-
};
|
|
45667
|
-
var logCloseClick = function() {
|
|
45668
|
-
INTERNAL__module.tossCoreEventLog({
|
|
45669
|
-
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45670
|
-
log_type: "event",
|
|
45671
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45672
|
-
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
45673
|
-
event_type: "click",
|
|
45674
|
-
button_type: "close"
|
|
45675
|
-
})
|
|
45676
|
-
});
|
|
45677
|
-
};
|
|
45678
|
-
var logDialogShow = function() {
|
|
45679
|
-
INTERNAL__module.tossCoreEventLog({
|
|
45680
|
-
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
45681
|
-
log_type: "popup",
|
|
45682
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45683
|
-
schema_id: UPDATE_DIALOG_SCHEMA_ID
|
|
45684
|
-
})
|
|
45685
|
-
});
|
|
45686
|
-
};
|
|
45687
|
-
return {
|
|
45688
|
-
update: logUpdateClick,
|
|
45689
|
-
close: logCloseClick,
|
|
45690
|
-
show: logDialogShow
|
|
45691
|
-
};
|
|
45692
|
-
}
|
|
45693
45959
|
function ensureValue(value, name) {
|
|
45694
45960
|
if (value === void 0) {
|
|
45695
45961
|
throw new Error("".concat(name, " is required"));
|
|
@@ -45699,14 +45965,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45699
45965
|
function useMoreButtonBottomSheet() {
|
|
45700
45966
|
var globals = getAppsInTossGlobals();
|
|
45701
45967
|
var adaptive = useAdaptive();
|
|
45702
|
-
var
|
|
45968
|
+
var _useState3 = _sliced_to_array((0, import_react223.useState)([]), 2), itemList = _useState3[0], setItemList = _useState3[1];
|
|
45703
45969
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45704
45970
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45705
45971
|
var overlay = useOverlay();
|
|
45706
45972
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
45707
45973
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
|
|
45708
45974
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
|
|
45709
|
-
(0,
|
|
45975
|
+
(0, import_react223.useEffect)(function() {
|
|
45710
45976
|
if (!isBottomSheetSupported) {
|
|
45711
45977
|
return;
|
|
45712
45978
|
}
|
|
@@ -45751,10 +46017,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45751
46017
|
logging.close();
|
|
45752
46018
|
close();
|
|
45753
46019
|
};
|
|
45754
|
-
return /* @__PURE__ */ (0,
|
|
45755
|
-
children: /* @__PURE__ */ (0,
|
|
45756
|
-
header: /* @__PURE__ */ (0,
|
|
45757
|
-
title: /* @__PURE__ */ (0,
|
|
46020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheetImpressionArea, {
|
|
46021
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheet.Root, {
|
|
46022
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(e40, {
|
|
46023
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(e40.TitleParagraph, {
|
|
45758
46024
|
color: adaptive.grey800,
|
|
45759
46025
|
fontWeight: "bold",
|
|
45760
46026
|
typography: "t5",
|
|
@@ -45762,7 +46028,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45762
46028
|
})
|
|
45763
46029
|
}),
|
|
45764
46030
|
open: isOpen,
|
|
45765
|
-
cta: /* @__PURE__ */ (0,
|
|
46031
|
+
cta: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheet.CTA, {
|
|
45766
46032
|
size: "large",
|
|
45767
46033
|
type: "dark",
|
|
45768
46034
|
style: "weak",
|
|
@@ -45773,19 +46039,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45773
46039
|
}),
|
|
45774
46040
|
onClose: handleClose,
|
|
45775
46041
|
onExited: exit,
|
|
45776
|
-
children: /* @__PURE__ */ (0,
|
|
46042
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(List, {
|
|
45777
46043
|
rowSeparator: "none",
|
|
45778
46044
|
children: [
|
|
45779
46045
|
itemList.map(function(item) {
|
|
45780
|
-
return /* @__PURE__ */ (0,
|
|
45781
|
-
left: /* @__PURE__ */ (0,
|
|
46046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2, {
|
|
46047
|
+
left: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2.Icon, {
|
|
45782
46048
|
color: globals.brandPrimaryColor,
|
|
45783
46049
|
source: {
|
|
45784
46050
|
uri: item.contactIconUrl
|
|
45785
46051
|
},
|
|
45786
46052
|
type: "background"
|
|
45787
46053
|
}),
|
|
45788
|
-
contents: /* @__PURE__ */ (0,
|
|
46054
|
+
contents: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2.Texts, {
|
|
45789
46055
|
type: "1RowTypeA",
|
|
45790
46056
|
top: item.contactItemName,
|
|
45791
46057
|
topProps: {
|
|
@@ -45801,7 +46067,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45801
46067
|
}
|
|
45802
46068
|
}, item.contactItemName);
|
|
45803
46069
|
}),
|
|
45804
|
-
isShareListMenuSupported && /* @__PURE__ */ (0,
|
|
46070
|
+
isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(AppShareListMenu, {})
|
|
45805
46071
|
]
|
|
45806
46072
|
})
|
|
45807
46073
|
})
|
|
@@ -45824,12 +46090,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45824
46090
|
function BottomSheetImpressionArea(param) {
|
|
45825
46091
|
var children = param.children;
|
|
45826
46092
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45827
|
-
(0,
|
|
46093
|
+
(0, import_react223.useEffect)(function() {
|
|
45828
46094
|
logging.show();
|
|
45829
46095
|
}, [
|
|
45830
46096
|
logging
|
|
45831
46097
|
]);
|
|
45832
|
-
return /* @__PURE__ */ (0,
|
|
46098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_jsx_runtime221.Fragment, {
|
|
45833
46099
|
children
|
|
45834
46100
|
});
|
|
45835
46101
|
}
|
|
@@ -45843,11 +46109,27 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45843
46109
|
return null;
|
|
45844
46110
|
}
|
|
45845
46111
|
}
|
|
45846
|
-
function
|
|
45847
|
-
var
|
|
45848
|
-
var
|
|
46112
|
+
function NavigationBarImpressionArea(param) {
|
|
46113
|
+
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46114
|
+
var hasLogged = (0, import_react224.useRef)(false);
|
|
45849
46115
|
var logging = useNavigationBarLogging();
|
|
45850
|
-
|
|
46116
|
+
(0, import_react224.useEffect)(function() {
|
|
46117
|
+
if (hasLogged.current === false) {
|
|
46118
|
+
logging.navBarImpression({
|
|
46119
|
+
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
46120
|
+
});
|
|
46121
|
+
hasLogged.current = true;
|
|
46122
|
+
}
|
|
46123
|
+
}, [
|
|
46124
|
+
logging,
|
|
46125
|
+
withHomeButton
|
|
46126
|
+
]);
|
|
46127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(import_jsx_runtime222.Fragment, {
|
|
46128
|
+
children
|
|
46129
|
+
});
|
|
46130
|
+
}
|
|
46131
|
+
function DefaultNavigationBar() {
|
|
46132
|
+
var globals = getAppsInTossGlobals();
|
|
45851
46133
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45852
46134
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
45853
46135
|
var _parsedNavigationBar_withHomeButton;
|
|
@@ -45855,111 +46137,124 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45855
46137
|
var _parsedNavigationBar_withBackButton;
|
|
45856
46138
|
var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
|
|
45857
46139
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
45858
|
-
var
|
|
45859
|
-
|
|
45860
|
-
|
|
45861
|
-
var handlePressTitle = (0, import_react213.useCallback)(function() {
|
|
45862
|
-
logging.homeButtonClick();
|
|
45863
|
-
navigation.navigate("/");
|
|
45864
|
-
}, [
|
|
45865
|
-
logging,
|
|
45866
|
-
navigation
|
|
45867
|
-
]);
|
|
45868
|
-
var handleClose = (0, import_react213.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
45869
|
-
var isConfirmed;
|
|
45870
|
-
return __generator(this, function(_state) {
|
|
45871
|
-
switch (_state.label) {
|
|
45872
|
-
case 0:
|
|
45873
|
-
logging.closeButtonClick();
|
|
45874
|
-
return [
|
|
45875
|
-
4,
|
|
45876
|
-
openConfirm({
|
|
45877
|
-
title: "".concat(josa(globals.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45878
|
-
leftButton: "\uCDE8\uC18C",
|
|
45879
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45880
|
-
closeOnDimmerClick: true,
|
|
45881
|
-
onEntered: logging.closePopupShow
|
|
45882
|
-
})
|
|
45883
|
-
];
|
|
45884
|
-
case 1:
|
|
45885
|
-
isConfirmed = _state.sent();
|
|
45886
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
45887
|
-
if (isConfirmed) {
|
|
45888
|
-
captureExitLog(Date.now());
|
|
45889
|
-
closeView();
|
|
45890
|
-
}
|
|
45891
|
-
return [
|
|
45892
|
-
2
|
|
45893
|
-
];
|
|
45894
|
-
}
|
|
45895
|
-
});
|
|
45896
|
-
}), [
|
|
45897
|
-
captureExitLog,
|
|
45898
|
-
globals.brandDisplayName,
|
|
45899
|
-
logging,
|
|
45900
|
-
openConfirm
|
|
45901
|
-
]);
|
|
45902
|
-
var handleBack = (0, import_react213.useCallback)(function() {
|
|
45903
|
-
if (backEventContext.hasBackEvent) {
|
|
45904
|
-
backEventContext.onBack();
|
|
45905
|
-
return;
|
|
45906
|
-
}
|
|
45907
|
-
handleBackOrClose();
|
|
45908
|
-
}, [
|
|
45909
|
-
backEventContext,
|
|
45910
|
-
handleBackOrClose
|
|
45911
|
-
]);
|
|
45912
|
-
(0, import_react213.useEffect)(function() {
|
|
45913
|
-
var handleAndroidBackEvent = function() {
|
|
45914
|
-
handleBack();
|
|
45915
|
-
return true;
|
|
45916
|
-
};
|
|
45917
|
-
import_react_native206.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45918
|
-
return function() {
|
|
45919
|
-
import_react_native206.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45920
|
-
};
|
|
45921
|
-
}, [
|
|
45922
|
-
handleBack
|
|
45923
|
-
]);
|
|
45924
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationBarImpressionArea, {
|
|
46140
|
+
var navigationEvent = useNavigationEvent();
|
|
46141
|
+
useHardwareBackPress(navigationEvent.handleBack);
|
|
46142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationBarImpressionArea, {
|
|
45925
46143
|
withHomeButton,
|
|
45926
|
-
children: /* @__PURE__ */ (0,
|
|
46144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(TopNavigation, {
|
|
45927
46145
|
title: globals.brandDisplayName,
|
|
45928
46146
|
icon: toIcon(globals.brandIcon),
|
|
45929
46147
|
onPressDots: openMoreButtonBottomSheet,
|
|
45930
46148
|
contentVisible: true,
|
|
45931
|
-
onPressTitle: withHomeButton ?
|
|
45932
|
-
onPressClose:
|
|
46149
|
+
onPressTitle: withHomeButton ? navigationEvent.handleHomeButtonClick : void 0,
|
|
46150
|
+
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
45933
46151
|
withHome: withHomeButton,
|
|
45934
|
-
fixedRightButton: initialAccessoryButton
|
|
45935
|
-
|
|
45936
|
-
icon: initialAccessoryButton.icon,
|
|
45937
|
-
id: initialAccessoryButton.id
|
|
45938
|
-
} : void 0,
|
|
45939
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationLeft2, {
|
|
46152
|
+
fixedRightButton: initialAccessoryButton,
|
|
46153
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationLeft2, {
|
|
45940
46154
|
visible: withBackButton,
|
|
45941
|
-
children: /* @__PURE__ */ (0,
|
|
45942
|
-
onPress: handleBack,
|
|
46155
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationBackButton2, {
|
|
46156
|
+
onPress: navigationEvent.handleBack,
|
|
45943
46157
|
canGoBack: false
|
|
45944
46158
|
})
|
|
45945
46159
|
})
|
|
45946
46160
|
})
|
|
45947
46161
|
});
|
|
45948
46162
|
}
|
|
45949
|
-
function
|
|
45950
|
-
var
|
|
45951
|
-
var
|
|
45952
|
-
|
|
45953
|
-
|
|
45954
|
-
|
|
45955
|
-
|
|
45956
|
-
|
|
45957
|
-
|
|
46163
|
+
function GameNavigationBar() {
|
|
46164
|
+
var safeAreaTop = useSafeAreaTop();
|
|
46165
|
+
var global2 = getAppsInTossGlobals();
|
|
46166
|
+
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46167
|
+
var navigationEvent = useNavigationEvent();
|
|
46168
|
+
useHardwareBackPress(navigationEvent.handleBack);
|
|
46169
|
+
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46170
|
+
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, {
|
|
46172
|
+
children: [
|
|
46173
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(PageNavbar, {
|
|
46174
|
+
preference: {
|
|
46175
|
+
type: "none"
|
|
46176
|
+
}
|
|
46177
|
+
}),
|
|
46178
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native219.View, {
|
|
46179
|
+
style: {
|
|
46180
|
+
width: "100%",
|
|
46181
|
+
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
46182
|
+
height: import_react_native219.Platform.OS === "ios" ? 44 : 54,
|
|
46183
|
+
flexDirection: "row",
|
|
46184
|
+
alignItems: "center",
|
|
46185
|
+
justifyContent: "flex-end",
|
|
46186
|
+
position: "absolute",
|
|
46187
|
+
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
46188
|
+
marginTop: safeAreaTop,
|
|
46189
|
+
paddingRight: 10
|
|
46190
|
+
},
|
|
46191
|
+
pointerEvents: "box-none",
|
|
46192
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(NavigationRightContent, {
|
|
46193
|
+
fixedRightButton: initialAccessoryButton,
|
|
46194
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
46195
|
+
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
46196
|
+
theme: "dark"
|
|
46197
|
+
})
|
|
46198
|
+
})
|
|
46199
|
+
]
|
|
46200
|
+
});
|
|
46201
|
+
}
|
|
46202
|
+
function RNAppContainer(param) {
|
|
46203
|
+
var children = param.children;
|
|
46204
|
+
var global2 = getAppsInTossGlobals();
|
|
46205
|
+
switch (global2.appType) {
|
|
46206
|
+
case "game":
|
|
46207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameAppContainer, {
|
|
46208
|
+
children
|
|
46209
|
+
});
|
|
46210
|
+
case "general":
|
|
46211
|
+
default:
|
|
46212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GeneralAppContainer, {
|
|
46213
|
+
children
|
|
46214
|
+
});
|
|
46215
|
+
}
|
|
46216
|
+
}
|
|
46217
|
+
function GameAppContainer(param) {
|
|
46218
|
+
var children = param.children;
|
|
46219
|
+
var _useState4 = _sliced_to_array((0, import_react213.useState)(false), 2), isEntryMessageExited = _useState4[0], setIsEntryMessageExited = _useState4[1];
|
|
46220
|
+
(0, import_react213.useEffect)(function() {
|
|
46221
|
+
if (import_react_native205.Platform.OS === "ios") {
|
|
46222
|
+
setIosSwipeGestureEnabled({
|
|
46223
|
+
isEnabled: false
|
|
46224
|
+
});
|
|
46225
|
+
return function() {
|
|
46226
|
+
setIosSwipeGestureEnabled({
|
|
46227
|
+
isEnabled: true
|
|
46228
|
+
});
|
|
46229
|
+
};
|
|
45958
46230
|
}
|
|
45959
|
-
|
|
45960
|
-
|
|
45961
|
-
|
|
45962
|
-
|
|
46231
|
+
return;
|
|
46232
|
+
}, []);
|
|
46233
|
+
(0, import_react213.useEffect)(function() {
|
|
46234
|
+
appsInTossEvent.addEventListener("entryMessageExited", {
|
|
46235
|
+
onEvent: function() {
|
|
46236
|
+
setIsEntryMessageExited(true);
|
|
46237
|
+
}
|
|
46238
|
+
});
|
|
46239
|
+
}, []);
|
|
46240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
|
|
46241
|
+
children: [
|
|
46242
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Game, {}),
|
|
46243
|
+
(0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameInitializer, {
|
|
46244
|
+
isReadyForProfileUI: isEntryMessageExited,
|
|
46245
|
+
children
|
|
46246
|
+
}) : children
|
|
46247
|
+
]
|
|
46248
|
+
});
|
|
46249
|
+
}
|
|
46250
|
+
function GeneralAppContainer(param) {
|
|
46251
|
+
var children = param.children;
|
|
46252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
|
|
46253
|
+
children: [
|
|
46254
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Default, {}),
|
|
46255
|
+
children
|
|
46256
|
+
]
|
|
46257
|
+
});
|
|
45963
46258
|
}
|
|
45964
46259
|
function AppsInTossContainer(Container, _param) {
|
|
45965
46260
|
var children = _param.children, initialProps = _object_without_properties(_param, [
|
|
@@ -45969,28 +46264,28 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45969
46264
|
android: "5.220.0",
|
|
45970
46265
|
ios: "5.221.0"
|
|
45971
46266
|
})) {
|
|
45972
|
-
return /* @__PURE__ */ (0,
|
|
46267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
|
|
45973
46268
|
children: [
|
|
45974
|
-
/* @__PURE__ */ (0,
|
|
45975
|
-
/* @__PURE__ */ (0,
|
|
45976
|
-
/* @__PURE__ */ (0,
|
|
46269
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.Entry, {}),
|
|
46270
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
46271
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppUpdate, {})
|
|
45977
46272
|
]
|
|
45978
46273
|
});
|
|
45979
46274
|
}
|
|
45980
|
-
return /* @__PURE__ */ (0,
|
|
46275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
|
|
45981
46276
|
children: [
|
|
45982
|
-
/* @__PURE__ */ (0,
|
|
45983
|
-
/* @__PURE__ */ (0,
|
|
45984
|
-
/* @__PURE__ */ (0,
|
|
45985
|
-
/* @__PURE__ */ (0,
|
|
45986
|
-
children: /* @__PURE__ */ (0,
|
|
46277
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.StayTime, {}),
|
|
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)(Container, _object_spread_props(_object_spread({}, initialProps), {
|
|
46281
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TDSProvider, {
|
|
45987
46282
|
colorPreference: "light",
|
|
45988
46283
|
token: {
|
|
45989
46284
|
color: {
|
|
45990
46285
|
primary: getAppsInTossGlobals().brandPrimaryColor
|
|
45991
46286
|
}
|
|
45992
46287
|
},
|
|
45993
|
-
children: /* @__PURE__ */ (0,
|
|
46288
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TDSContainer, _object_spread_props(_object_spread({}, initialProps), {
|
|
45994
46289
|
children
|
|
45995
46290
|
}))
|
|
45996
46291
|
})
|
|
@@ -46001,7 +46296,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46001
46296
|
function TDSContainer(param) {
|
|
46002
46297
|
var children = param.children;
|
|
46003
46298
|
useAppsInTossBridge();
|
|
46004
|
-
return /* @__PURE__ */ (0,
|
|
46299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_jsx_runtime226.Fragment, {
|
|
46005
46300
|
children
|
|
46006
46301
|
});
|
|
46007
46302
|
}
|
|
@@ -46034,12 +46329,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46034
46329
|
}
|
|
46035
46330
|
function AppsInTossScreenContainer(param) {
|
|
46036
46331
|
var children = param.children;
|
|
46037
|
-
var
|
|
46038
|
-
return /* @__PURE__ */ (0,
|
|
46039
|
-
children:
|
|
46040
|
-
isReactNativeService && /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(RNNavigationBar, {}),
|
|
46332
|
+
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
46333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Analytics.Screen, {
|
|
46334
|
+
children: isRNApp ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(RNAppContainer, {
|
|
46041
46335
|
children
|
|
46042
|
-
|
|
46336
|
+
}) : children
|
|
46043
46337
|
});
|
|
46044
46338
|
}
|
|
46045
46339
|
function getAppName() {
|
|
@@ -46059,7 +46353,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46059
46353
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46060
46354
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46061
46355
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46062
|
-
var handleGameWebviewClose = (0,
|
|
46356
|
+
var handleGameWebviewClose = (0, import_react227.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46063
46357
|
var isConfirmed;
|
|
46064
46358
|
return __generator(this, function(_state) {
|
|
46065
46359
|
switch (_state.label) {
|
|
@@ -46093,18 +46387,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46093
46387
|
logging,
|
|
46094
46388
|
openConfirm
|
|
46095
46389
|
]);
|
|
46096
|
-
return /* @__PURE__ */ (0,
|
|
46390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, {
|
|
46097
46391
|
children: [
|
|
46098
|
-
/* @__PURE__ */ (0,
|
|
46392
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(PageNavbar, {
|
|
46099
46393
|
preference: {
|
|
46100
46394
|
type: "none"
|
|
46101
46395
|
}
|
|
46102
46396
|
}),
|
|
46103
|
-
/* @__PURE__ */ (0,
|
|
46397
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_react_native224.View, {
|
|
46104
46398
|
style: {
|
|
46105
46399
|
width: "100%",
|
|
46106
46400
|
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
46107
|
-
height:
|
|
46401
|
+
height: import_react_native224.Platform.OS === "ios" ? 44 : 54,
|
|
46108
46402
|
flexDirection: "row",
|
|
46109
46403
|
alignItems: "center",
|
|
46110
46404
|
justifyContent: "flex-end",
|
|
@@ -46114,7 +46408,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46114
46408
|
paddingRight: 10
|
|
46115
46409
|
},
|
|
46116
46410
|
pointerEvents: "box-none",
|
|
46117
|
-
children: /* @__PURE__ */ (0,
|
|
46411
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(NavigationRightContent, {
|
|
46118
46412
|
fixedRightButton: initialAccessoryButton,
|
|
46119
46413
|
onPressDots: openMoreButtonBottomSheet,
|
|
46120
46414
|
onPressClose: function() {
|
|
@@ -46139,7 +46433,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46139
46433
|
var _parsedNavigationBar_withBackButton;
|
|
46140
46434
|
var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
|
|
46141
46435
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46142
|
-
var handleClose = (0,
|
|
46436
|
+
var handleClose = (0, import_react229.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46143
46437
|
var isConfirmed;
|
|
46144
46438
|
return __generator(this, function(_state) {
|
|
46145
46439
|
switch (_state.label) {
|
|
@@ -46173,9 +46467,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46173
46467
|
logging,
|
|
46174
46468
|
openConfirm
|
|
46175
46469
|
]);
|
|
46176
|
-
return /* @__PURE__ */ (0,
|
|
46470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationBarImpressionArea, {
|
|
46177
46471
|
withHomeButton,
|
|
46178
|
-
children: /* @__PURE__ */ (0,
|
|
46472
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(TopNavigation, {
|
|
46179
46473
|
title: globals.brandDisplayName,
|
|
46180
46474
|
icon: toIcon(globals.brandIcon),
|
|
46181
46475
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -46184,9 +46478,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46184
46478
|
onPressClose: handleClose,
|
|
46185
46479
|
withHome: withHomeButton,
|
|
46186
46480
|
fixedRightButton: initialAccessoryButton,
|
|
46187
|
-
children: /* @__PURE__ */ (0,
|
|
46481
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationLeft2, {
|
|
46188
46482
|
visible: withBackButton,
|
|
46189
|
-
children: /* @__PURE__ */ (0,
|
|
46483
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationBackButton2, {
|
|
46190
46484
|
onPress: onBackButtonClick,
|
|
46191
46485
|
canGoBack: false
|
|
46192
46486
|
})
|
|
@@ -46254,8 +46548,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46254
46548
|
}
|
|
46255
46549
|
function useBridgeHandler(param) {
|
|
46256
46550
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap, originalInjectedJavaScript = param.injectedJavaScript;
|
|
46257
|
-
var ref = (0,
|
|
46258
|
-
var injectedJavaScript = (0,
|
|
46551
|
+
var ref = (0, import_react230.useRef)(null);
|
|
46552
|
+
var injectedJavaScript = (0, import_react230.useMemo)(function() {
|
|
46259
46553
|
return [
|
|
46260
46554
|
"window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46261
46555
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
@@ -46282,7 +46576,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46282
46576
|
(_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 "));
|
|
46283
46577
|
};
|
|
46284
46578
|
};
|
|
46285
|
-
var $onMessage = (0,
|
|
46579
|
+
var $onMessage = (0, import_react230.useCallback)(
|
|
46286
46580
|
function() {
|
|
46287
46581
|
var _ref = _async_to_generator(function(e61) {
|
|
46288
46582
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
@@ -46395,8 +46689,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46395
46689
|
}
|
|
46396
46690
|
}
|
|
46397
46691
|
function useWebViewHistory() {
|
|
46398
|
-
var _useReducer = _sliced_to_array((0,
|
|
46399
|
-
var onNavigationStateChange = (0,
|
|
46692
|
+
var _useReducer = _sliced_to_array((0, import_react232.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46693
|
+
var onNavigationStateChange = (0, import_react232.useCallback)(function(param) {
|
|
46400
46694
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46401
46695
|
dispatch({
|
|
46402
46696
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46404,7 +46698,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46404
46698
|
canGoForward: canGoForward2
|
|
46405
46699
|
});
|
|
46406
46700
|
}, []);
|
|
46407
|
-
var
|
|
46701
|
+
var _useMemo4 = (0, import_react232.useMemo)(function() {
|
|
46408
46702
|
var canBack = state.index > 0;
|
|
46409
46703
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46410
46704
|
return {
|
|
@@ -46414,7 +46708,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46414
46708
|
}, [
|
|
46415
46709
|
state.index,
|
|
46416
46710
|
state.stack.length
|
|
46417
|
-
]), canGoBack =
|
|
46711
|
+
]), canGoBack = _useMemo4.canGoBack, canGoForward = _useMemo4.canGoForward;
|
|
46418
46712
|
return {
|
|
46419
46713
|
onNavigationStateChange,
|
|
46420
46714
|
hasHistory: canGoBack,
|
|
@@ -46428,17 +46722,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46428
46722
|
var logging = useNavigationBarLogging();
|
|
46429
46723
|
var openConfirm = useDialog().openConfirm;
|
|
46430
46724
|
var global2 = getAppsInTossGlobals();
|
|
46431
|
-
var addEventListener = (0,
|
|
46725
|
+
var addEventListener = (0, import_react231.useCallback)(function(handler) {
|
|
46432
46726
|
addWebBackEventListener(handler);
|
|
46433
46727
|
}, [
|
|
46434
46728
|
addWebBackEventListener
|
|
46435
46729
|
]);
|
|
46436
|
-
var removeEventListener = (0,
|
|
46730
|
+
var removeEventListener = (0, import_react231.useCallback)(function(handler) {
|
|
46437
46731
|
removeWebBackEventListener(handler);
|
|
46438
46732
|
}, [
|
|
46439
46733
|
removeWebBackEventListener
|
|
46440
46734
|
]);
|
|
46441
|
-
var handleWebBack = (0,
|
|
46735
|
+
var handleWebBack = (0, import_react231.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46442
46736
|
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
46443
46737
|
return __generator(this, function(_state) {
|
|
46444
46738
|
switch (_state.label) {
|
|
@@ -46512,7 +46806,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46512
46806
|
openConfirm,
|
|
46513
46807
|
webViewRef
|
|
46514
46808
|
]);
|
|
46515
|
-
var handleWebHome = (0,
|
|
46809
|
+
var handleWebHome = (0, import_react231.useCallback)(function() {
|
|
46516
46810
|
var _webViewRef_current;
|
|
46517
46811
|
logging.homeButtonClick();
|
|
46518
46812
|
if (hasWebBackEvent) {
|
|
@@ -46545,7 +46839,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46545
46839
|
logging,
|
|
46546
46840
|
webViewRef
|
|
46547
46841
|
]);
|
|
46548
|
-
return (0,
|
|
46842
|
+
return (0, import_react231.useMemo)(function() {
|
|
46549
46843
|
return {
|
|
46550
46844
|
addEventListener,
|
|
46551
46845
|
removeEventListener,
|
|
@@ -46721,7 +47015,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46721
47015
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
46722
47016
|
var platform = getPlatformOS();
|
|
46723
47017
|
var appVersion = getTossAppVersion();
|
|
46724
|
-
var fontScale = (0,
|
|
47018
|
+
var fontScale = (0, import_react_native227.useWindowDimensions)().fontScale;
|
|
46725
47019
|
var platformString = platform === "ios" ? "iPhone" : "Android";
|
|
46726
47020
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
46727
47021
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -46787,9 +47081,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46787
47081
|
if (!TYPES.includes(type)) {
|
|
46788
47082
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
46789
47083
|
}
|
|
46790
|
-
var webViewRef = (0,
|
|
47084
|
+
var webViewRef = (0, import_react225.useRef)(null);
|
|
46791
47085
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
46792
|
-
var uri = (0,
|
|
47086
|
+
var uri = (0, import_react225.useMemo)(function() {
|
|
46793
47087
|
return getWebViewUri(local);
|
|
46794
47088
|
}, [
|
|
46795
47089
|
local
|
|
@@ -46799,7 +47093,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46799
47093
|
var global2 = getAppsInTossGlobals();
|
|
46800
47094
|
var topNavigation = useTopNavigation();
|
|
46801
47095
|
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 ";
|
|
46802
|
-
var
|
|
47096
|
+
var _useState7 = _sliced_to_array((0, import_react225.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState7[0], setAllowsBackForwardNavigationGestures = _useState7[1];
|
|
46803
47097
|
var handler = useBridgeHandler({
|
|
46804
47098
|
onMessage,
|
|
46805
47099
|
injectedJavaScript: [
|
|
@@ -46934,7 +47228,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46934
47228
|
completeProductGrant: IAP.completeProductGrant
|
|
46935
47229
|
})
|
|
46936
47230
|
});
|
|
46937
|
-
var headerPropForExternalWebView = (0,
|
|
47231
|
+
var headerPropForExternalWebView = (0, import_react225.useMemo)(function() {
|
|
46938
47232
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46939
47233
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46940
47234
|
var _parsedNavigationBar_withBackButton;
|
|
@@ -46959,19 +47253,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46959
47253
|
colorPreference: "light"
|
|
46960
47254
|
});
|
|
46961
47255
|
var refs = mergeRefs4(handler.ref, webViewRef);
|
|
46962
|
-
(0,
|
|
47256
|
+
(0, import_react225.useEffect)(function() {
|
|
46963
47257
|
var callback = function() {
|
|
46964
47258
|
webBackHandler.handleWebBack();
|
|
46965
47259
|
return true;
|
|
46966
47260
|
};
|
|
46967
|
-
|
|
47261
|
+
import_react_native221.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
46968
47262
|
return function() {
|
|
46969
|
-
return
|
|
47263
|
+
return import_react_native221.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
46970
47264
|
};
|
|
46971
47265
|
}, [
|
|
46972
47266
|
webBackHandler
|
|
46973
47267
|
]);
|
|
46974
|
-
return /* @__PURE__ */ (0,
|
|
47268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
46975
47269
|
ref: refs
|
|
46976
47270
|
}, props, headerPropForExternalWebView), {
|
|
46977
47271
|
source: {
|
|
@@ -46991,18 +47285,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46991
47285
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
46992
47286
|
webBackHandler.onNavigationStateChange(event);
|
|
46993
47287
|
},
|
|
46994
|
-
userAgent:
|
|
47288
|
+
userAgent: import_react_native221.Platform.OS === "ios" ? userAgent : void 0,
|
|
46995
47289
|
sharedCookiesEnabled: true,
|
|
46996
47290
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
46997
47291
|
thirdPartyCookiesEnabled: true,
|
|
46998
47292
|
onMessage: handler.onMessage,
|
|
46999
47293
|
injectedJavaScript: handler.injectedJavaScript,
|
|
47000
47294
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
|
|
47001
|
-
decelerationRate:
|
|
47295
|
+
decelerationRate: import_react_native221.Platform.OS === "ios" ? 1 : void 0,
|
|
47002
47296
|
allowsBackForwardNavigationGestures
|
|
47003
47297
|
}));
|
|
47004
47298
|
}
|
|
47005
|
-
var import_react_native199, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_react213,
|
|
47299
|
+
var import_react_native199, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_react213, import_react_native205, import_react214, import_react_native207, import_react215, import_react_native209, import_react216, import_react217, import_react218, import_react219, import_jsx_runtime218, import_jsx_runtime219, import_react220, import_react_native212, import_react221, import_react222, import_react223, import_react_native217, import_jsx_runtime220, import_jsx_runtime221, import_react224, import_jsx_runtime222, import_jsx_runtime223, import_react_native219, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react225, import_react_native221, import_react226, import_react_native222, import_react227, import_react_native224, import_jsx_runtime227, import_jsx_runtime228, import_react228, import_react229, import_jsx_runtime229, import_jsx_runtime230, import_react230, import_react231, import_react232, import_react_native227, import_react233, import_react234, 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;
|
|
47006
47300
|
var init_dist8 = __esm({
|
|
47007
47301
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
47008
47302
|
"use strict";
|
|
@@ -47038,37 +47332,69 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47038
47332
|
init_dist6();
|
|
47039
47333
|
init_esm8();
|
|
47040
47334
|
import_react212 = __toESM(require_react(), 1);
|
|
47335
|
+
init_dist6();
|
|
47336
|
+
import_react213 = __toESM(require_react(), 1);
|
|
47337
|
+
import_react_native205 = __toESM(require_react_native(), 1);
|
|
47338
|
+
init_dist6();
|
|
47041
47339
|
init_src3();
|
|
47042
47340
|
init_esm8();
|
|
47043
|
-
init_private2();
|
|
47044
47341
|
init_dist7();
|
|
47045
|
-
import_react213 = __toESM(require_react(), 1);
|
|
47046
|
-
import_react_native206 = __toESM(require_react_native(), 1);
|
|
47047
47342
|
import_react214 = __toESM(require_react(), 1);
|
|
47343
|
+
import_react_native207 = __toESM(require_react_native(), 1);
|
|
47048
47344
|
init_dist6();
|
|
47049
47345
|
init_src3();
|
|
47050
|
-
|
|
47346
|
+
init_esm8();
|
|
47347
|
+
import_react215 = __toESM(require_react(), 1);
|
|
47348
|
+
import_react_native209 = __toESM(require_react_native(), 1);
|
|
47051
47349
|
init_dist6();
|
|
47350
|
+
import_react216 = __toESM(require_react(), 1);
|
|
47052
47351
|
init_src3();
|
|
47053
47352
|
init_esm8();
|
|
47353
|
+
import_react217 = __toESM(require_react(), 1);
|
|
47354
|
+
import_react218 = __toESM(require_react(), 1);
|
|
47355
|
+
init_src3();
|
|
47356
|
+
init_dist6();
|
|
47357
|
+
init_esm8();
|
|
47054
47358
|
init_private2();
|
|
47055
|
-
|
|
47359
|
+
import_react219 = __toESM(require_react(), 1);
|
|
47360
|
+
import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
|
|
47361
|
+
import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
|
|
47362
|
+
init_private2();
|
|
47363
|
+
import_react220 = __toESM(require_react(), 1);
|
|
47364
|
+
import_react_native212 = __toESM(require_react_native(), 1);
|
|
47365
|
+
init_src3();
|
|
47366
|
+
import_react221 = __toESM(require_react(), 1);
|
|
47367
|
+
init_esm8();
|
|
47368
|
+
init_dist7();
|
|
47369
|
+
import_react222 = __toESM(require_react(), 1);
|
|
47370
|
+
init_dist6();
|
|
47371
|
+
init_src3();
|
|
47056
47372
|
init_dist6();
|
|
47057
47373
|
init_src3();
|
|
47058
47374
|
init_esm8();
|
|
47059
47375
|
init_private2();
|
|
47060
|
-
|
|
47376
|
+
import_react223 = __toESM(require_react(), 1);
|
|
47061
47377
|
init_dist6();
|
|
47062
47378
|
init_src3();
|
|
47063
|
-
|
|
47379
|
+
init_esm8();
|
|
47380
|
+
init_private2();
|
|
47381
|
+
import_react_native217 = __toESM(require_react_native(), 1);
|
|
47064
47382
|
init_dist6();
|
|
47065
47383
|
init_src3();
|
|
47066
|
-
init_esm8();
|
|
47067
|
-
import_react216 = __toESM(require_react(), 1);
|
|
47068
|
-
import_react_native213 = __toESM(require_react_native(), 1);
|
|
47069
47384
|
import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
|
|
47070
47385
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
47386
|
+
import_react224 = __toESM(require_react(), 1);
|
|
47071
47387
|
import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
|
|
47388
|
+
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47389
|
+
init_esm8();
|
|
47390
|
+
init_private2();
|
|
47391
|
+
import_react_native219 = __toESM(require_react_native(), 1);
|
|
47392
|
+
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47393
|
+
init_async_bridges();
|
|
47394
|
+
init_constant_bridges2();
|
|
47395
|
+
init_event_bridges();
|
|
47396
|
+
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47397
|
+
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47072
47398
|
init_dist6();
|
|
47073
47399
|
init_async_bridges();
|
|
47074
47400
|
init_constant_bridges2();
|
|
@@ -47076,61 +47402,84 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47076
47402
|
init_src3();
|
|
47077
47403
|
init_esm8();
|
|
47078
47404
|
init_private2();
|
|
47079
|
-
|
|
47080
|
-
|
|
47405
|
+
import_react225 = __toESM(require_react(), 1);
|
|
47406
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47081
47407
|
init_dist6();
|
|
47082
47408
|
init_react_native_webview();
|
|
47083
|
-
|
|
47084
|
-
|
|
47085
|
-
init_dist6();
|
|
47086
|
-
init_esm8();
|
|
47087
|
-
import_react219 = __toESM(require_react(), 1);
|
|
47088
|
-
import_react_native217 = __toESM(require_react_native(), 1);
|
|
47089
|
-
init_dist6();
|
|
47090
|
-
init_src3();
|
|
47091
|
-
init_esm8();
|
|
47092
|
-
init_dist7();
|
|
47093
|
-
import_react220 = __toESM(require_react(), 1);
|
|
47094
|
-
init_esm8();
|
|
47095
|
-
init_private2();
|
|
47096
|
-
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47097
|
-
init_src3();
|
|
47098
|
-
init_dist6();
|
|
47099
|
-
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47409
|
+
import_react226 = __toESM(require_react(), 1);
|
|
47410
|
+
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47100
47411
|
init_src3();
|
|
47101
47412
|
init_esm8();
|
|
47102
47413
|
init_private2();
|
|
47103
47414
|
init_dist7();
|
|
47104
|
-
|
|
47105
|
-
|
|
47106
|
-
|
|
47107
|
-
|
|
47415
|
+
import_react227 = __toESM(require_react(), 1);
|
|
47416
|
+
import_react_native224 = __toESM(require_react_native(), 1);
|
|
47417
|
+
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47418
|
+
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
47108
47419
|
init_react_native_webview();
|
|
47109
|
-
|
|
47420
|
+
import_react228 = __toESM(require_react(), 1);
|
|
47110
47421
|
init_src3();
|
|
47111
47422
|
init_esm8();
|
|
47112
47423
|
init_private2();
|
|
47113
47424
|
init_dist7();
|
|
47114
|
-
|
|
47115
|
-
|
|
47116
|
-
|
|
47117
|
-
|
|
47425
|
+
import_react229 = __toESM(require_react(), 1);
|
|
47426
|
+
import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
|
|
47427
|
+
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47428
|
+
import_react230 = __toESM(require_react(), 1);
|
|
47118
47429
|
init_src3();
|
|
47119
47430
|
init_esm8();
|
|
47120
47431
|
init_dist7();
|
|
47121
|
-
|
|
47122
|
-
|
|
47432
|
+
import_react231 = __toESM(require_react(), 1);
|
|
47433
|
+
import_react232 = __toESM(require_react(), 1);
|
|
47123
47434
|
init_dist6();
|
|
47124
|
-
|
|
47435
|
+
import_react_native227 = __toESM(require_react_native(), 1);
|
|
47125
47436
|
init_dist6();
|
|
47126
|
-
|
|
47127
|
-
|
|
47437
|
+
import_react233 = __toESM(require_react(), 1);
|
|
47438
|
+
import_react234 = __toESM(require_react(), 1);
|
|
47128
47439
|
init_dist6();
|
|
47129
47440
|
init_src3();
|
|
47130
|
-
|
|
47441
|
+
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47131
47442
|
init_dist3();
|
|
47132
47443
|
init_dist6();
|
|
47133
47444
|
init_dist4();
|
|
47445
|
+
__defProp2 = Object.defineProperty;
|
|
47446
|
+
__getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
47447
|
+
__getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
47448
|
+
__hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
47449
|
+
__copyProps2 = function(to3, from, except, desc) {
|
|
47450
|
+
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
47451
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47452
|
+
try {
|
|
47453
|
+
var _loop = function() {
|
|
47454
|
+
var key = _step.value;
|
|
47455
|
+
if (!__hasOwnProp2.call(to3, key) && key !== except) __defProp2(to3, key, {
|
|
47456
|
+
get: function() {
|
|
47457
|
+
return from[key];
|
|
47458
|
+
},
|
|
47459
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
47460
|
+
});
|
|
47461
|
+
};
|
|
47462
|
+
for (var _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();
|
|
47463
|
+
} catch (err) {
|
|
47464
|
+
_didIteratorError = true;
|
|
47465
|
+
_iteratorError = err;
|
|
47466
|
+
} finally {
|
|
47467
|
+
try {
|
|
47468
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47469
|
+
_iterator.return();
|
|
47470
|
+
}
|
|
47471
|
+
} finally {
|
|
47472
|
+
if (_didIteratorError) {
|
|
47473
|
+
throw _iteratorError;
|
|
47474
|
+
}
|
|
47475
|
+
}
|
|
47476
|
+
}
|
|
47477
|
+
}
|
|
47478
|
+
return to3;
|
|
47479
|
+
};
|
|
47480
|
+
__reExport2 = function(target, mod, secondTarget) {
|
|
47481
|
+
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
47482
|
+
};
|
|
47134
47483
|
env = {
|
|
47135
47484
|
getDeploymentId: function() {
|
|
47136
47485
|
var _global___appsInToss;
|
|
@@ -47143,102 +47492,55 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47143
47492
|
AppEvent = {
|
|
47144
47493
|
Entry: EntryAppEvent,
|
|
47145
47494
|
System: SystemAppEvent,
|
|
47146
|
-
StayTime: StayTimeAppEvent
|
|
47147
|
-
};
|
|
47148
|
-
UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
|
|
47149
|
-
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47150
|
-
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47151
|
-
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47152
|
-
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47153
|
-
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47154
|
-
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47155
|
-
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47156
|
-
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47157
|
-
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47158
|
-
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47159
|
-
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
47160
|
-
BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
47161
|
-
BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
47162
|
-
BOTTOM_SHEET_OPEN_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_more";
|
|
47163
|
-
BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID = 1596843;
|
|
47164
|
-
BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__close";
|
|
47165
|
-
BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID = 1596841;
|
|
47166
|
-
BOTTOM_SHEET_MENU_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__menu";
|
|
47167
|
-
SHARE_SCHEME_REFERRER = "appsintoss.common_module_share";
|
|
47168
|
-
APP_SHARE_MENU_INFO = {
|
|
47169
|
-
contactItemName: "\uACF5\uC720\uD558\uAE30",
|
|
47170
|
-
contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
|
|
47171
|
-
};
|
|
47172
|
-
PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
47173
|
-
APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
47174
|
-
getMarketLink = function() {
|
|
47175
|
-
return import_react_native213.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
47176
|
-
};
|
|
47177
|
-
UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
47178
|
-
UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
47179
|
-
UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
47180
|
-
UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
47181
|
-
APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
47182
|
-
MIN_VERSION = {
|
|
47183
|
-
BOTTOM_SHEET: {
|
|
47184
|
-
android: "5.226.0",
|
|
47185
|
-
ios: "5.226.0"
|
|
47186
|
-
},
|
|
47187
|
-
SHARE_LIST_MENU: {
|
|
47188
|
-
android: "5.230.0",
|
|
47189
|
-
ios: "5.230.0"
|
|
47190
|
-
}
|
|
47191
|
-
};
|
|
47192
|
-
AppsInToss = {
|
|
47193
|
-
registerApp
|
|
47495
|
+
StayTime: StayTimeAppEvent
|
|
47194
47496
|
};
|
|
47497
|
+
UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
|
|
47195
47498
|
GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
47196
|
-
|
|
47197
|
-
android: "5.
|
|
47198
|
-
ios: "5.
|
|
47499
|
+
GAME_MIN_VERSION = {
|
|
47500
|
+
android: "5.232.0",
|
|
47501
|
+
ios: "5.232.0"
|
|
47199
47502
|
};
|
|
47200
|
-
|
|
47201
|
-
|
|
47202
|
-
|
|
47203
|
-
|
|
47204
|
-
overlay.open(function(param) {
|
|
47205
|
-
var isOpen = param.isOpen, close = param.close, exit = param.exit;
|
|
47206
|
-
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(ColorPreferenceProvider, {
|
|
47207
|
-
colorPreference: "dark",
|
|
47208
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(AdaptiveColorProvider, {
|
|
47209
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Toast, {
|
|
47210
|
-
open: isOpen,
|
|
47211
|
-
onClose: function() {
|
|
47212
|
-
resolve();
|
|
47213
|
-
close();
|
|
47214
|
-
},
|
|
47215
|
-
onExited: exit,
|
|
47216
|
-
position: "top",
|
|
47217
|
-
text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
|
|
47218
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Asset2.Image, {
|
|
47219
|
-
style: {
|
|
47220
|
-
borderRadius: 64,
|
|
47221
|
-
overflow: "hidden"
|
|
47222
|
-
},
|
|
47223
|
-
frameShape: Asset2.frameShape.CleanW32,
|
|
47224
|
-
source: {
|
|
47225
|
-
uri: profileImageUri
|
|
47226
|
-
}
|
|
47227
|
-
})
|
|
47228
|
-
})
|
|
47229
|
-
})
|
|
47230
|
-
});
|
|
47231
|
-
});
|
|
47232
|
-
});
|
|
47233
|
-
};
|
|
47234
|
-
return {
|
|
47235
|
-
openGameProfileToast
|
|
47236
|
-
};
|
|
47503
|
+
PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
47504
|
+
APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
47505
|
+
getMarketLink = function() {
|
|
47506
|
+
return import_react_native209.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
47237
47507
|
};
|
|
47508
|
+
UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
47509
|
+
UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
47510
|
+
UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
47511
|
+
UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
47238
47512
|
DEFAULT_ERROR = {
|
|
47239
47513
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
47240
47514
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
47241
47515
|
};
|
|
47516
|
+
useErrorAlert = function() {
|
|
47517
|
+
var openAlert = useDialog().openAlert;
|
|
47518
|
+
var openErrorAlert = (0, import_react217.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47519
|
+
return __generator(this, function(_state) {
|
|
47520
|
+
switch (_state.label) {
|
|
47521
|
+
case 0:
|
|
47522
|
+
return [
|
|
47523
|
+
4,
|
|
47524
|
+
openAlert({
|
|
47525
|
+
title: DEFAULT_ERROR.title,
|
|
47526
|
+
description: DEFAULT_ERROR.description
|
|
47527
|
+
})
|
|
47528
|
+
];
|
|
47529
|
+
case 1:
|
|
47530
|
+
_state.sent();
|
|
47531
|
+
closeView();
|
|
47532
|
+
return [
|
|
47533
|
+
2
|
|
47534
|
+
];
|
|
47535
|
+
}
|
|
47536
|
+
});
|
|
47537
|
+
}), [
|
|
47538
|
+
openAlert
|
|
47539
|
+
]);
|
|
47540
|
+
return {
|
|
47541
|
+
open: openErrorAlert
|
|
47542
|
+
};
|
|
47543
|
+
};
|
|
47242
47544
|
INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
|
|
47243
47545
|
openTransparentWebView = function(param) {
|
|
47244
47546
|
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;
|
|
@@ -47266,160 +47568,213 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47266
47568
|
});
|
|
47267
47569
|
openURL(url.toString());
|
|
47268
47570
|
};
|
|
47269
|
-
|
|
47270
|
-
var
|
|
47271
|
-
var
|
|
47272
|
-
var
|
|
47273
|
-
|
|
47274
|
-
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
47275
|
-
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
47276
|
-
var _useState23 = _sliced_to_array((0, import_react220.useState)(false), 2), isWebviewLoading = _useState23[0], setIsWebviewLoading = _useState23[1];
|
|
47277
|
-
var isCompletedProfileFlow = (0, import_react220.useRef)(false);
|
|
47278
|
-
var _useDialog4 = useDialog(), openAlert = _useDialog4.openAlert, openConfirm = _useDialog4.openConfirm;
|
|
47279
|
-
var openGameProfileToast = useGameProfileToast().openGameProfileToast;
|
|
47280
|
-
var openErrorAlert = (0, import_react220.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47281
|
-
return __generator(this, function(_state) {
|
|
47282
|
-
switch (_state.label) {
|
|
47283
|
-
case 0:
|
|
47284
|
-
return [
|
|
47285
|
-
4,
|
|
47286
|
-
openAlert({
|
|
47287
|
-
title: DEFAULT_ERROR.title,
|
|
47288
|
-
description: DEFAULT_ERROR.description
|
|
47289
|
-
})
|
|
47290
|
-
];
|
|
47291
|
-
case 1:
|
|
47292
|
-
_state.sent();
|
|
47293
|
-
closeView();
|
|
47294
|
-
return [
|
|
47295
|
-
2
|
|
47296
|
-
];
|
|
47297
|
-
}
|
|
47298
|
-
});
|
|
47299
|
-
}), [
|
|
47300
|
-
openAlert
|
|
47301
|
-
]);
|
|
47302
|
-
var openProfileWebview = (0, import_react220.useCallback)(function() {
|
|
47571
|
+
useTransparentWebview = function() {
|
|
47572
|
+
var _useState = _sliced_to_array((0, import_react218.useState)(false), 2), isWebviewLoading = _useState[0], setIsWebviewLoading = _useState[1];
|
|
47573
|
+
var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
|
|
47574
|
+
var _openTransparentWebview = (0, import_react218.useCallback)(function(param) {
|
|
47575
|
+
var webUrl = param.webUrl, onClose = param.onClose, onError2 = param.onError;
|
|
47303
47576
|
if (isWebviewLoading) {
|
|
47304
47577
|
return;
|
|
47305
47578
|
}
|
|
47306
47579
|
setIsWebviewLoading(true);
|
|
47307
47580
|
openTransparentWebView({
|
|
47308
|
-
webUrl
|
|
47581
|
+
webUrl,
|
|
47309
47582
|
onEvent: function() {
|
|
47310
47583
|
var _ref = _async_to_generator(function(isClosedTransparentWebView) {
|
|
47311
|
-
var data, _17;
|
|
47312
47584
|
return __generator(this, function(_state) {
|
|
47313
|
-
|
|
47314
|
-
|
|
47315
|
-
|
|
47316
|
-
3,
|
|
47317
|
-
4
|
|
47318
|
-
];
|
|
47319
|
-
_state.label = 1;
|
|
47320
|
-
case 1:
|
|
47321
|
-
_state.trys.push([
|
|
47322
|
-
1,
|
|
47323
|
-
3,
|
|
47324
|
-
,
|
|
47325
|
-
4
|
|
47326
|
-
]);
|
|
47327
|
-
setIsWebviewLoading(false);
|
|
47328
|
-
setIsProfileDataRefetching(true);
|
|
47329
|
-
return [
|
|
47330
|
-
4,
|
|
47331
|
-
getGameCenterGameProfile()
|
|
47332
|
-
];
|
|
47333
|
-
case 2:
|
|
47334
|
-
data = _state.sent();
|
|
47335
|
-
setProfileData(data);
|
|
47336
|
-
setIsProfileDataRefetching(false);
|
|
47337
|
-
if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
|
|
47338
|
-
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
47339
|
-
}
|
|
47340
|
-
return [
|
|
47341
|
-
3,
|
|
47342
|
-
4
|
|
47343
|
-
];
|
|
47344
|
-
case 3:
|
|
47345
|
-
_17 = _state.sent();
|
|
47346
|
-
setIsProfileDataRefetching(false);
|
|
47347
|
-
openErrorAlert();
|
|
47348
|
-
return [
|
|
47349
|
-
3,
|
|
47350
|
-
4
|
|
47351
|
-
];
|
|
47352
|
-
case 4:
|
|
47353
|
-
return [
|
|
47354
|
-
2
|
|
47355
|
-
];
|
|
47585
|
+
if (isClosedTransparentWebView) {
|
|
47586
|
+
setIsWebviewLoading(false);
|
|
47587
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
47356
47588
|
}
|
|
47589
|
+
return [
|
|
47590
|
+
2
|
|
47591
|
+
];
|
|
47357
47592
|
});
|
|
47358
47593
|
});
|
|
47359
47594
|
return function(isClosedTransparentWebView) {
|
|
47360
47595
|
return _ref.apply(this, arguments);
|
|
47361
47596
|
};
|
|
47362
47597
|
}(),
|
|
47363
|
-
onError: function() {
|
|
47364
|
-
|
|
47598
|
+
onError: function(error) {
|
|
47599
|
+
setIsWebviewLoading(false);
|
|
47600
|
+
if (onError2) {
|
|
47601
|
+
onError2(error);
|
|
47602
|
+
} else {
|
|
47603
|
+
openErrorAlert();
|
|
47604
|
+
}
|
|
47365
47605
|
}
|
|
47366
47606
|
});
|
|
47367
47607
|
}, [
|
|
47368
47608
|
isWebviewLoading,
|
|
47369
|
-
openGameProfileToast,
|
|
47370
47609
|
openErrorAlert
|
|
47371
47610
|
]);
|
|
47372
|
-
|
|
47373
|
-
|
|
47611
|
+
return {
|
|
47612
|
+
open: _openTransparentWebview
|
|
47613
|
+
};
|
|
47614
|
+
};
|
|
47615
|
+
useGameProfileToast = function() {
|
|
47616
|
+
var overlay = useOverlay();
|
|
47617
|
+
var openGameProfileToast = (0, import_react219.useCallback)(function(nickname, profileImageUri) {
|
|
47618
|
+
return new Promise(function(resolve) {
|
|
47619
|
+
overlay.open(function(param) {
|
|
47620
|
+
var isOpen = param.isOpen, close = param.close, exit = param.exit;
|
|
47621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(ColorPreferenceProvider, {
|
|
47622
|
+
colorPreference: "dark",
|
|
47623
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(AdaptiveColorProvider, {
|
|
47624
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Toast, {
|
|
47625
|
+
open: isOpen,
|
|
47626
|
+
onClose: function() {
|
|
47627
|
+
resolve();
|
|
47628
|
+
close();
|
|
47629
|
+
},
|
|
47630
|
+
onExited: exit,
|
|
47631
|
+
position: "top",
|
|
47632
|
+
text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
|
|
47633
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Asset2.Image, {
|
|
47634
|
+
style: {
|
|
47635
|
+
borderRadius: 64,
|
|
47636
|
+
overflow: "hidden"
|
|
47637
|
+
},
|
|
47638
|
+
frameShape: Asset2.frameShape.CleanW32,
|
|
47639
|
+
source: {
|
|
47640
|
+
uri: profileImageUri
|
|
47641
|
+
}
|
|
47642
|
+
})
|
|
47643
|
+
})
|
|
47644
|
+
})
|
|
47645
|
+
});
|
|
47646
|
+
});
|
|
47647
|
+
});
|
|
47648
|
+
}, [
|
|
47649
|
+
overlay
|
|
47650
|
+
]);
|
|
47651
|
+
return {
|
|
47652
|
+
openGameProfileToast
|
|
47653
|
+
};
|
|
47654
|
+
};
|
|
47655
|
+
useGameCenterProfile = function(isReadyForProfileUI) {
|
|
47656
|
+
var _useState2 = _sliced_to_array((0, import_react216.useState)(void 0), 2), profileData = _useState2[0], setProfileData = _useState2[1];
|
|
47657
|
+
var _useState21 = _sliced_to_array((0, import_react216.useState)(true), 2), isProfileDataLoading = _useState21[0], setIsProfileDataLoading = _useState21[1];
|
|
47658
|
+
var _useState22 = _sliced_to_array((0, import_react216.useState)(false), 2), isProfileDataRefetching = _useState22[0], setIsProfileDataRefetching = _useState22[1];
|
|
47659
|
+
var shouldShowProfileLoadingOverlay = isProfileDataLoading && isReadyForProfileUI || isProfileDataRefetching;
|
|
47660
|
+
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
47661
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
47662
|
+
var openGameProfileToast = useGameProfileToast().openGameProfileToast;
|
|
47663
|
+
var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
|
|
47664
|
+
var _useTransparentWebview = useTransparentWebview(), openTransparentWebView2 = _useTransparentWebview.open;
|
|
47665
|
+
var fetchProfileData = (0, import_react216.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47666
|
+
var data, _17;
|
|
47667
|
+
return __generator(this, function(_state) {
|
|
47668
|
+
switch (_state.label) {
|
|
47669
|
+
case 0:
|
|
47670
|
+
_state.trys.push([
|
|
47671
|
+
0,
|
|
47672
|
+
2,
|
|
47673
|
+
,
|
|
47674
|
+
3
|
|
47675
|
+
]);
|
|
47676
|
+
return [
|
|
47677
|
+
4,
|
|
47678
|
+
getGameCenterGameProfile()
|
|
47679
|
+
];
|
|
47680
|
+
case 1:
|
|
47681
|
+
data = _state.sent();
|
|
47682
|
+
setProfileData(data);
|
|
47683
|
+
setIsProfileDataLoading(false);
|
|
47684
|
+
return [
|
|
47685
|
+
3,
|
|
47686
|
+
3
|
|
47687
|
+
];
|
|
47688
|
+
case 2:
|
|
47689
|
+
_17 = _state.sent();
|
|
47690
|
+
openErrorAlert();
|
|
47691
|
+
setIsProfileDataLoading(false);
|
|
47692
|
+
return [
|
|
47693
|
+
3,
|
|
47694
|
+
3
|
|
47695
|
+
];
|
|
47696
|
+
case 3:
|
|
47697
|
+
return [
|
|
47698
|
+
2
|
|
47699
|
+
];
|
|
47700
|
+
}
|
|
47701
|
+
});
|
|
47702
|
+
}), [
|
|
47703
|
+
openErrorAlert
|
|
47704
|
+
]);
|
|
47705
|
+
var refetchProfileData = (0, import_react216.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47706
|
+
var data, _17;
|
|
47374
47707
|
return __generator(this, function(_state) {
|
|
47375
47708
|
switch (_state.label) {
|
|
47376
47709
|
case 0:
|
|
47377
|
-
|
|
47378
|
-
|
|
47379
|
-
|
|
47380
|
-
|
|
47381
|
-
|
|
47710
|
+
_state.trys.push([
|
|
47711
|
+
0,
|
|
47712
|
+
2,
|
|
47713
|
+
,
|
|
47714
|
+
3
|
|
47715
|
+
]);
|
|
47716
|
+
setIsProfileDataRefetching(true);
|
|
47382
47717
|
return [
|
|
47383
47718
|
4,
|
|
47384
|
-
|
|
47385
|
-
title: upddateConfirmDialogLabel.title,
|
|
47386
|
-
leftButton: upddateConfirmDialogLabel.leftButton,
|
|
47387
|
-
rightButton: upddateConfirmDialogLabel.rightButton,
|
|
47388
|
-
closeOnDimmerClick: true
|
|
47389
|
-
})
|
|
47719
|
+
getGameCenterGameProfile()
|
|
47390
47720
|
];
|
|
47391
47721
|
case 1:
|
|
47392
|
-
|
|
47393
|
-
|
|
47394
|
-
|
|
47395
|
-
|
|
47396
|
-
|
|
47397
|
-
];
|
|
47722
|
+
data = _state.sent();
|
|
47723
|
+
setProfileData(data);
|
|
47724
|
+
setIsProfileDataRefetching(false);
|
|
47725
|
+
if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
|
|
47726
|
+
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
47398
47727
|
}
|
|
47399
|
-
|
|
47400
|
-
|
|
47728
|
+
return [
|
|
47729
|
+
3,
|
|
47730
|
+
3
|
|
47731
|
+
];
|
|
47732
|
+
case 2:
|
|
47733
|
+
_17 = _state.sent();
|
|
47734
|
+
setIsProfileDataRefetching(false);
|
|
47735
|
+
openErrorAlert();
|
|
47736
|
+
return [
|
|
47737
|
+
3,
|
|
47738
|
+
3
|
|
47739
|
+
];
|
|
47740
|
+
case 3:
|
|
47401
47741
|
return [
|
|
47402
47742
|
2
|
|
47403
47743
|
];
|
|
47404
47744
|
}
|
|
47405
47745
|
});
|
|
47406
47746
|
}), [
|
|
47407
|
-
|
|
47747
|
+
openErrorAlert,
|
|
47748
|
+
openGameProfileToast
|
|
47749
|
+
]);
|
|
47750
|
+
var openProfileWebview = (0, import_react216.useCallback)(function() {
|
|
47751
|
+
openTransparentWebView2({
|
|
47752
|
+
webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
|
|
47753
|
+
onClose: /* @__PURE__ */ _async_to_generator(function() {
|
|
47754
|
+
return __generator(this, function(_state) {
|
|
47755
|
+
refetchProfileData();
|
|
47756
|
+
return [
|
|
47757
|
+
2
|
|
47758
|
+
];
|
|
47759
|
+
});
|
|
47760
|
+
})
|
|
47761
|
+
});
|
|
47762
|
+
}, [
|
|
47763
|
+
openTransparentWebView2,
|
|
47764
|
+
refetchProfileData
|
|
47408
47765
|
]);
|
|
47409
47766
|
return {
|
|
47410
47767
|
profileData,
|
|
47411
47768
|
isProfileDataLoading,
|
|
47412
|
-
|
|
47413
|
-
shouldShowLoadingOverlay,
|
|
47769
|
+
shouldShowProfileLoadingOverlay,
|
|
47414
47770
|
shouldShowProfileNotFoundOverlay,
|
|
47415
47771
|
canShowBottomSheetOrToast,
|
|
47416
|
-
isCompletedProfileFlow,
|
|
47417
|
-
updateAppToSupportedMinVersion,
|
|
47418
47772
|
setIsProfileDataLoading,
|
|
47419
47773
|
openProfileWebview,
|
|
47420
47774
|
setProfileData,
|
|
47421
47775
|
openErrorAlert,
|
|
47422
|
-
openGameProfileToast
|
|
47776
|
+
openGameProfileToast,
|
|
47777
|
+
fetchProfileData
|
|
47423
47778
|
};
|
|
47424
47779
|
};
|
|
47425
47780
|
Z_INDEX = {
|
|
@@ -47429,42 +47784,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47429
47784
|
// 게임을 종료할 수 있는 X 버튼
|
|
47430
47785
|
CLOSE_BUTTON: 9999
|
|
47431
47786
|
};
|
|
47432
|
-
|
|
47787
|
+
GameInitializer = function(param) {
|
|
47433
47788
|
var children = param.children, isReadyForProfileUI = param.isReadyForProfileUI;
|
|
47434
|
-
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData,
|
|
47435
|
-
(0,
|
|
47436
|
-
|
|
47437
|
-
|
|
47438
|
-
|
|
47439
|
-
var data;
|
|
47440
|
-
return __generator(this, function(_state) {
|
|
47441
|
-
switch (_state.label) {
|
|
47442
|
-
case 0:
|
|
47443
|
-
return [
|
|
47444
|
-
4,
|
|
47445
|
-
getGameCenterGameProfile()
|
|
47446
|
-
];
|
|
47447
|
-
case 1:
|
|
47448
|
-
data = _state.sent();
|
|
47449
|
-
setProfileData(data);
|
|
47450
|
-
setIsProfileDataLoading(false);
|
|
47451
|
-
return [
|
|
47452
|
-
2
|
|
47453
|
-
];
|
|
47454
|
-
}
|
|
47455
|
-
});
|
|
47456
|
-
});
|
|
47457
|
-
return function getProfileData2() {
|
|
47458
|
-
return _ref.apply(this, arguments);
|
|
47459
|
-
};
|
|
47460
|
-
}();
|
|
47461
|
-
getProfileData();
|
|
47462
|
-
} catch (_17) {
|
|
47463
|
-
openErrorAlert();
|
|
47464
|
-
setIsProfileDataLoading(false);
|
|
47465
|
-
}
|
|
47789
|
+
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;
|
|
47790
|
+
var isCompletedFlow = (0, import_react214.useRef)(false);
|
|
47791
|
+
var _useAppUpdateDialog = useAppUpdateDialog(), openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
47792
|
+
(0, import_react214.useEffect)(function() {
|
|
47793
|
+
fetchProfileData();
|
|
47466
47794
|
}, []);
|
|
47467
|
-
(0,
|
|
47795
|
+
(0, import_react214.useEffect)(function() {
|
|
47468
47796
|
var handleGameProfileFlow = function() {
|
|
47469
47797
|
var _ref = _async_to_generator(function() {
|
|
47470
47798
|
return __generator(this, function(_state) {
|
|
@@ -47473,14 +47801,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47473
47801
|
2
|
|
47474
47802
|
];
|
|
47475
47803
|
}
|
|
47476
|
-
if (
|
|
47804
|
+
if (isCompletedFlow.current) {
|
|
47477
47805
|
return [
|
|
47478
47806
|
2
|
|
47479
47807
|
];
|
|
47480
47808
|
}
|
|
47481
|
-
|
|
47482
|
-
if (!isMinVersionSupported(
|
|
47483
|
-
|
|
47809
|
+
isCompletedFlow.current = true;
|
|
47810
|
+
if (!isMinVersionSupported(GAME_MIN_VERSION)) {
|
|
47811
|
+
openAppUpdateDialog({
|
|
47812
|
+
title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
|
|
47813
|
+
onDismiss: function() {
|
|
47814
|
+
closeView();
|
|
47815
|
+
}
|
|
47816
|
+
});
|
|
47484
47817
|
return [
|
|
47485
47818
|
2
|
|
47486
47819
|
];
|
|
@@ -47506,48 +47839,53 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47506
47839
|
handleGameProfileFlow();
|
|
47507
47840
|
}, [
|
|
47508
47841
|
canShowBottomSheetOrToast,
|
|
47509
|
-
|
|
47842
|
+
isCompletedFlow,
|
|
47843
|
+
openAppUpdateDialog,
|
|
47510
47844
|
openGameProfileToast,
|
|
47511
47845
|
openProfileWebview,
|
|
47512
|
-
profileData
|
|
47513
|
-
updateAppToSupportedMinVersion
|
|
47846
|
+
profileData
|
|
47514
47847
|
]);
|
|
47515
|
-
if (!isMinVersionSupported(
|
|
47516
|
-
return /* @__PURE__ */ (0,
|
|
47848
|
+
if (!isMinVersionSupported(GAME_MIN_VERSION)) {
|
|
47849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47517
47850
|
children: [
|
|
47518
|
-
/* @__PURE__ */ (0,
|
|
47851
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47519
47852
|
style: {
|
|
47520
47853
|
flex: 1,
|
|
47521
47854
|
position: "relative"
|
|
47522
47855
|
},
|
|
47523
47856
|
children
|
|
47524
47857
|
}),
|
|
47525
|
-
/* @__PURE__ */ (0,
|
|
47858
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.Pressable, {
|
|
47526
47859
|
style: _object_spread({}, overlayStyle),
|
|
47527
47860
|
onPress: function() {
|
|
47528
|
-
|
|
47861
|
+
openAppUpdateDialog({
|
|
47862
|
+
title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
|
|
47863
|
+
onDismiss: function() {
|
|
47864
|
+
closeView();
|
|
47865
|
+
}
|
|
47866
|
+
});
|
|
47529
47867
|
}
|
|
47530
47868
|
})
|
|
47531
47869
|
]
|
|
47532
47870
|
});
|
|
47533
47871
|
}
|
|
47534
|
-
if (
|
|
47535
|
-
return /* @__PURE__ */ (0,
|
|
47872
|
+
if (shouldShowProfileLoadingOverlay) {
|
|
47873
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47536
47874
|
children: [
|
|
47537
|
-
/* @__PURE__ */ (0,
|
|
47875
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47538
47876
|
style: {
|
|
47539
47877
|
flex: 1,
|
|
47540
47878
|
position: "relative"
|
|
47541
47879
|
},
|
|
47542
47880
|
children
|
|
47543
47881
|
}),
|
|
47544
|
-
/* @__PURE__ */ (0,
|
|
47882
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47545
47883
|
style: _object_spread_props(_object_spread({}, overlayStyle), {
|
|
47546
47884
|
justifyContent: "center",
|
|
47547
47885
|
alignItems: "center",
|
|
47548
47886
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
47549
47887
|
}),
|
|
47550
|
-
children: /* @__PURE__ */ (0,
|
|
47888
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Loader_default, {
|
|
47551
47889
|
size: "large",
|
|
47552
47890
|
type: "light"
|
|
47553
47891
|
})
|
|
@@ -47556,16 +47894,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47556
47894
|
});
|
|
47557
47895
|
}
|
|
47558
47896
|
if (shouldShowProfileNotFoundOverlay) {
|
|
47559
|
-
return /* @__PURE__ */ (0,
|
|
47897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47560
47898
|
children: [
|
|
47561
|
-
/* @__PURE__ */ (0,
|
|
47899
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47562
47900
|
style: {
|
|
47563
47901
|
flex: 1,
|
|
47564
47902
|
position: "relative"
|
|
47565
47903
|
},
|
|
47566
47904
|
children
|
|
47567
47905
|
}),
|
|
47568
|
-
shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0,
|
|
47906
|
+
shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.Pressable, {
|
|
47569
47907
|
style: _object_spread({}, overlayStyle),
|
|
47570
47908
|
onPress: function() {
|
|
47571
47909
|
openProfileWebview();
|
|
@@ -47574,8 +47912,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47574
47912
|
]
|
|
47575
47913
|
});
|
|
47576
47914
|
}
|
|
47577
|
-
return /* @__PURE__ */ (0,
|
|
47578
|
-
children: /* @__PURE__ */ (0,
|
|
47915
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
|
|
47916
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
|
|
47579
47917
|
style: {
|
|
47580
47918
|
flex: 1,
|
|
47581
47919
|
position: "relative"
|
|
@@ -47592,10 +47930,55 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47592
47930
|
bottom: 0,
|
|
47593
47931
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
47594
47932
|
};
|
|
47595
|
-
|
|
47596
|
-
|
|
47597
|
-
|
|
47598
|
-
|
|
47933
|
+
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47934
|
+
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47935
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47936
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47937
|
+
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47938
|
+
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47939
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47940
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47941
|
+
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47942
|
+
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47943
|
+
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
47944
|
+
BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
47945
|
+
BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
47946
|
+
BOTTOM_SHEET_OPEN_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_more";
|
|
47947
|
+
BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID = 1596843;
|
|
47948
|
+
BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__close";
|
|
47949
|
+
BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID = 1596841;
|
|
47950
|
+
BOTTOM_SHEET_MENU_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__menu";
|
|
47951
|
+
SHARE_SCHEME_REFERRER = "appsintoss.common_module_share";
|
|
47952
|
+
APP_SHARE_MENU_INFO = {
|
|
47953
|
+
contactItemName: "\uACF5\uC720\uD558\uAE30",
|
|
47954
|
+
contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
|
|
47955
|
+
};
|
|
47956
|
+
APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
47957
|
+
MIN_VERSION = {
|
|
47958
|
+
BOTTOM_SHEET: {
|
|
47959
|
+
android: "5.226.0",
|
|
47960
|
+
ios: "5.226.0"
|
|
47961
|
+
},
|
|
47962
|
+
SHARE_LIST_MENU: {
|
|
47963
|
+
android: "5.230.0",
|
|
47964
|
+
ios: "5.230.0"
|
|
47965
|
+
}
|
|
47966
|
+
};
|
|
47967
|
+
RNNavigationBar = {
|
|
47968
|
+
Default: DefaultNavigationBar,
|
|
47969
|
+
Game: GameNavigationBar
|
|
47970
|
+
};
|
|
47971
|
+
bridge_entry_exports = {};
|
|
47972
|
+
__reExport2(bridge_entry_exports, async_bridges_exports);
|
|
47973
|
+
__reExport2(bridge_entry_exports, constant_bridges_exports);
|
|
47974
|
+
__reExport2(bridge_entry_exports, event_bridges_exports);
|
|
47975
|
+
AppsInToss = {
|
|
47976
|
+
registerApp
|
|
47977
|
+
};
|
|
47978
|
+
GameWebView = /* @__PURE__ */ (0, import_react226.forwardRef)(function GameWebView2(props, ref) {
|
|
47979
|
+
var _useState5 = _sliced_to_array((0, import_react226.useState)(false), 2), isEntryMessageExited = _useState5[0], setIsEntryMessageExited = _useState5[1];
|
|
47980
|
+
(0, import_react226.useEffect)(function() {
|
|
47981
|
+
if (import_react_native222.Platform.OS === "ios") {
|
|
47599
47982
|
setIosSwipeGestureEnabled({
|
|
47600
47983
|
isEnabled: false
|
|
47601
47984
|
});
|
|
@@ -47607,39 +47990,39 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47607
47990
|
}
|
|
47608
47991
|
return;
|
|
47609
47992
|
}, []);
|
|
47610
|
-
(0,
|
|
47993
|
+
(0, import_react226.useEffect)(function() {
|
|
47611
47994
|
appsInTossEvent.addEventListener("entryMessageExited", {
|
|
47612
47995
|
onEvent: function() {
|
|
47613
47996
|
setIsEntryMessageExited(true);
|
|
47614
47997
|
}
|
|
47615
47998
|
});
|
|
47616
47999
|
}, []);
|
|
47617
|
-
return /* @__PURE__ */ (0,
|
|
48000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_jsx_runtime228.Fragment, {
|
|
47618
48001
|
children: [
|
|
47619
|
-
/* @__PURE__ */ (0,
|
|
47620
|
-
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0,
|
|
48002
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameWebviewNavigationBar, {}),
|
|
48003
|
+
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameInitializer, {
|
|
47621
48004
|
isReadyForProfileUI: isEntryMessageExited,
|
|
47622
|
-
children: /* @__PURE__ */ (0,
|
|
48005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
47623
48006
|
ref
|
|
47624
48007
|
}, props))
|
|
47625
|
-
}) : /* @__PURE__ */ (0,
|
|
48008
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
47626
48009
|
ref
|
|
47627
48010
|
}, props))
|
|
47628
48011
|
]
|
|
47629
48012
|
});
|
|
47630
48013
|
});
|
|
47631
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48014
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react228.forwardRef)(function PartnerWebViewScreen(_param, ref) {
|
|
47632
48015
|
var onBackButtonClick = _param.onBackButtonClick, onHomeButtonClick = _param.onHomeButtonClick, webViewProps = _object_without_properties(_param, [
|
|
47633
48016
|
"onBackButtonClick",
|
|
47634
48017
|
"onHomeButtonClick"
|
|
47635
48018
|
]);
|
|
47636
|
-
return /* @__PURE__ */ (0,
|
|
48019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, {
|
|
47637
48020
|
children: [
|
|
47638
|
-
/* @__PURE__ */ (0,
|
|
48021
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(PartnerWebviewNavigationBar, {
|
|
47639
48022
|
onBackButtonClick,
|
|
47640
48023
|
onHomeButtonClick
|
|
47641
48024
|
}),
|
|
47642
|
-
/* @__PURE__ */ (0,
|
|
48025
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
|
|
47643
48026
|
ref
|
|
47644
48027
|
}, webViewProps), {
|
|
47645
48028
|
style: {
|
|
@@ -47761,11 +48144,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47761
48144
|
}
|
|
47762
48145
|
});
|
|
47763
48146
|
function Index() {
|
|
47764
|
-
return /* @__PURE__ */ (0,
|
|
48147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native229.View, {
|
|
47765
48148
|
style: {
|
|
47766
48149
|
flex: 1
|
|
47767
48150
|
},
|
|
47768
|
-
children: /* @__PURE__ */ (0,
|
|
48151
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(WebView, {
|
|
47769
48152
|
style: {
|
|
47770
48153
|
flex: 1
|
|
47771
48154
|
},
|
|
@@ -47783,13 +48166,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47783
48166
|
})
|
|
47784
48167
|
});
|
|
47785
48168
|
}
|
|
47786
|
-
var
|
|
48169
|
+
var import_jsx_runtime232, import_react_native229;
|
|
47787
48170
|
var init_pages = __esm({
|
|
47788
48171
|
"react-native/pages/index.tsx"() {
|
|
47789
48172
|
"use strict";
|
|
47790
|
-
|
|
48173
|
+
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47791
48174
|
init_dist8();
|
|
47792
|
-
|
|
48175
|
+
import_react_native229 = __toESM(require_react_native(), 1);
|
|
47793
48176
|
}
|
|
47794
48177
|
});
|
|
47795
48178
|
|
|
@@ -47814,7 +48197,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47814
48197
|
return app_default;
|
|
47815
48198
|
}
|
|
47816
48199
|
});
|
|
47817
|
-
var
|
|
48200
|
+
var import_jsx_runtime233 = __toESM(require_jsx_runtime());
|
|
47818
48201
|
|
|
47819
48202
|
// ../../.yarn/cache/@react-native-js-polyfills-npm-0.72.1-52931e590c-e4a77d6c8b.zip/node_modules/@react-native/js-polyfills/console.js
|
|
47820
48203
|
init_instanceof();
|
|
@@ -48396,7 +48779,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48396
48779
|
// react-native/src/_app.tsx
|
|
48397
48780
|
function AppContainer(param) {
|
|
48398
48781
|
var children = param.children;
|
|
48399
|
-
return /* @__PURE__ */ (0,
|
|
48782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(import_jsx_runtime233.Fragment, {
|
|
48400
48783
|
children
|
|
48401
48784
|
});
|
|
48402
48785
|
}
|