@apps-in-toss/web-framework 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.rn84.js +192 -303
- package/dist/prebuilt/dev.ios.rn84.js +192 -303
- package/dist/prebuilt/prod.android.rn72.js +89 -254
- package/dist/prebuilt/prod.android.rn84.js +89 -254
- package/dist/prebuilt/prod.ios.rn72.js +89 -254
- package/dist/prebuilt/prod.ios.rn84.js +89 -254
- package/package.json +8 -8
|
@@ -45988,38 +45988,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45988
45988
|
handler
|
|
45989
45989
|
]);
|
|
45990
45990
|
}
|
|
45991
|
-
function useCloseConfirm() {
|
|
45992
|
-
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45993
|
-
var openConfirm = useDialog().openConfirm;
|
|
45994
|
-
return (0, import_react192.useCallback)(function(param) {
|
|
45995
|
-
var onEntered = param.onEntered;
|
|
45996
|
-
return _async_to_generator(function() {
|
|
45997
|
-
return __generator(this, function(_state) {
|
|
45998
|
-
switch (_state.label) {
|
|
45999
|
-
case 0:
|
|
46000
|
-
return [
|
|
46001
|
-
4,
|
|
46002
|
-
openConfirm({
|
|
46003
|
-
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46004
|
-
leftButton: "\uB2EB\uAE30",
|
|
46005
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46006
|
-
closeOnDimmerClick: true,
|
|
46007
|
-
onEntered
|
|
46008
|
-
})
|
|
46009
|
-
];
|
|
46010
|
-
case 1:
|
|
46011
|
-
return [
|
|
46012
|
-
2,
|
|
46013
|
-
_state.sent()
|
|
46014
|
-
];
|
|
46015
|
-
}
|
|
46016
|
-
});
|
|
46017
|
-
})();
|
|
46018
|
-
}, [
|
|
46019
|
-
brandDisplayName,
|
|
46020
|
-
openConfirm
|
|
46021
|
-
]);
|
|
46022
|
-
}
|
|
46023
45991
|
function createEvent(event) {
|
|
46024
45992
|
return {
|
|
46025
45993
|
name: event,
|
|
@@ -46073,30 +46041,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46073
46041
|
})
|
|
46074
46042
|
});
|
|
46075
46043
|
};
|
|
46076
|
-
var logClosePopupShow = function() {
|
|
46077
|
-
sendLog({
|
|
46078
|
-
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
46079
|
-
log_type: "popup",
|
|
46080
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
46081
|
-
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
46082
|
-
})
|
|
46083
|
-
});
|
|
46084
|
-
};
|
|
46085
|
-
var logClosePopupCtaClick = function(confirm) {
|
|
46086
|
-
sendLog({
|
|
46087
|
-
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
46088
|
-
log_type: "event",
|
|
46089
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
46090
|
-
close_yn: confirm ? "Y" : "N",
|
|
46091
|
-
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
46092
|
-
event_type: "click"
|
|
46093
|
-
})
|
|
46094
|
-
});
|
|
46095
|
-
};
|
|
46096
46044
|
return {
|
|
46097
46045
|
navBarImpression: logNavBarImpression,
|
|
46098
|
-
closePopupShow: logClosePopupShow,
|
|
46099
|
-
closePopupCtaClick: logClosePopupCtaClick,
|
|
46100
46046
|
closeButtonClick: logCloseButtonClick,
|
|
46101
46047
|
homeButtonClick: logHomeButtonClick
|
|
46102
46048
|
};
|
|
@@ -46105,33 +46051,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46105
46051
|
var backEventContext = useBackEventContext();
|
|
46106
46052
|
var logging = useNavigationBarLogging();
|
|
46107
46053
|
var navigation = useNavigation();
|
|
46108
|
-
var closeConfirm = useCloseConfirm();
|
|
46109
46054
|
return (0, import_react191.useMemo)(function() {
|
|
46110
|
-
var close = function() {
|
|
46111
|
-
return _async_to_generator(function() {
|
|
46112
|
-
var hasConfirmed;
|
|
46113
|
-
return __generator(this, function(_state) {
|
|
46114
|
-
switch (_state.label) {
|
|
46115
|
-
case 0:
|
|
46116
|
-
return [
|
|
46117
|
-
4,
|
|
46118
|
-
closeConfirm({
|
|
46119
|
-
onEntered: logging.closePopupShow
|
|
46120
|
-
})
|
|
46121
|
-
];
|
|
46122
|
-
case 1:
|
|
46123
|
-
hasConfirmed = _state.sent();
|
|
46124
|
-
logging.closePopupCtaClick(hasConfirmed);
|
|
46125
|
-
if (hasConfirmed) {
|
|
46126
|
-
closeView();
|
|
46127
|
-
}
|
|
46128
|
-
return [
|
|
46129
|
-
2
|
|
46130
|
-
];
|
|
46131
|
-
}
|
|
46132
|
-
});
|
|
46133
|
-
})();
|
|
46134
|
-
};
|
|
46135
46055
|
return {
|
|
46136
46056
|
handleBack: function() {
|
|
46137
46057
|
if (backEventContext.hasBackEvent) {
|
|
@@ -46139,7 +46059,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46139
46059
|
} else if (navigation.canGoBack()) {
|
|
46140
46060
|
navigation.goBack();
|
|
46141
46061
|
} else {
|
|
46142
|
-
|
|
46062
|
+
closeView();
|
|
46143
46063
|
}
|
|
46144
46064
|
},
|
|
46145
46065
|
handleHomeButtonClick: function() {
|
|
@@ -46152,13 +46072,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46152
46072
|
},
|
|
46153
46073
|
handleCloseButtonClick: function() {
|
|
46154
46074
|
logging.closeButtonClick();
|
|
46155
|
-
|
|
46075
|
+
closeView();
|
|
46156
46076
|
}
|
|
46157
46077
|
};
|
|
46158
46078
|
}, [
|
|
46159
46079
|
backEventContext,
|
|
46160
46080
|
navigation,
|
|
46161
|
-
closeConfirm,
|
|
46162
46081
|
logging
|
|
46163
46082
|
]);
|
|
46164
46083
|
}
|
|
@@ -46385,7 +46304,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46385
46304
|
function useMoreButtonBottomSheet() {
|
|
46386
46305
|
var globals = getAppsInTossGlobals();
|
|
46387
46306
|
var adaptive = useAdaptive();
|
|
46388
|
-
var _useState4 = _sliced_to_array((0,
|
|
46307
|
+
var _useState4 = _sliced_to_array((0, import_react192.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
46389
46308
|
var appUpdateDialog = useAppUpdateDialog();
|
|
46390
46309
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46391
46310
|
var overlay = useOverlay();
|
|
@@ -46394,7 +46313,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46394
46313
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
46395
46314
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
46396
46315
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
46397
|
-
(0,
|
|
46316
|
+
(0, import_react192.useEffect)(function() {
|
|
46398
46317
|
if (!isBottomSheetSupported) {
|
|
46399
46318
|
return;
|
|
46400
46319
|
}
|
|
@@ -46495,7 +46414,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46495
46414
|
function BottomSheetImpressionArea(param) {
|
|
46496
46415
|
var children = param.children;
|
|
46497
46416
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46498
|
-
(0,
|
|
46417
|
+
(0, import_react192.useEffect)(function() {
|
|
46499
46418
|
logging.show();
|
|
46500
46419
|
}, [
|
|
46501
46420
|
logging
|
|
@@ -46515,9 +46434,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46515
46434
|
}
|
|
46516
46435
|
function NavigationBarImpressionArea(param) {
|
|
46517
46436
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46518
|
-
var hasLogged = (0,
|
|
46437
|
+
var hasLogged = (0, import_react193.useRef)(false);
|
|
46519
46438
|
var logging = useNavigationBarLogging();
|
|
46520
|
-
(0,
|
|
46439
|
+
(0, import_react193.useEffect)(function() {
|
|
46521
46440
|
if (hasLogged.current === false) {
|
|
46522
46441
|
logging.navBarImpression({
|
|
46523
46442
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -46746,42 +46665,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46746
46665
|
function GameWebviewNavigationBar() {
|
|
46747
46666
|
var safeAreaTop = useSafeAreaTop();
|
|
46748
46667
|
var openConfirm = useDialog().openConfirm;
|
|
46749
|
-
var global2 = getAppsInTossGlobals();
|
|
46750
46668
|
var logging = useNavigationBarLogging();
|
|
46751
46669
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46752
46670
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46753
46671
|
var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
|
|
46754
|
-
var handleGameWebviewClose = (0,
|
|
46672
|
+
var handleGameWebviewClose = (0, import_react196.useCallback)(function() {
|
|
46755
46673
|
return _async_to_generator(function() {
|
|
46756
|
-
var isConfirmed;
|
|
46757
46674
|
return __generator(this, function(_state) {
|
|
46758
|
-
|
|
46759
|
-
|
|
46760
|
-
|
|
46761
|
-
|
|
46762
|
-
|
|
46763
|
-
openConfirm({
|
|
46764
|
-
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46765
|
-
leftButton: "\uB2EB\uAE30",
|
|
46766
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46767
|
-
closeOnDimmerClick: true,
|
|
46768
|
-
onEntered: logging.closePopupShow
|
|
46769
|
-
})
|
|
46770
|
-
];
|
|
46771
|
-
case 1:
|
|
46772
|
-
isConfirmed = _state.sent();
|
|
46773
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
46774
|
-
if (isConfirmed) {
|
|
46775
|
-
closeView();
|
|
46776
|
-
}
|
|
46777
|
-
return [
|
|
46778
|
-
2
|
|
46779
|
-
];
|
|
46780
|
-
}
|
|
46675
|
+
logging.closeButtonClick();
|
|
46676
|
+
closeView();
|
|
46677
|
+
return [
|
|
46678
|
+
2
|
|
46679
|
+
];
|
|
46781
46680
|
});
|
|
46782
46681
|
})();
|
|
46783
46682
|
}, [
|
|
46784
|
-
global2.brandDisplayName,
|
|
46785
46683
|
logging,
|
|
46786
46684
|
openConfirm
|
|
46787
46685
|
]);
|
|
@@ -46822,45 +46720,23 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46822
46720
|
var _ref, _ref1;
|
|
46823
46721
|
var globals = getAppsInTossGlobals();
|
|
46824
46722
|
var logging = useNavigationBarLogging();
|
|
46825
|
-
var openConfirm = useDialog().openConfirm;
|
|
46826
46723
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46827
46724
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
46828
46725
|
var withHomeButton = (_ref = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withHomeButton) !== null && _ref !== void 0 ? _ref : false;
|
|
46829
46726
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
46830
46727
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46831
|
-
var handleClose = (0,
|
|
46728
|
+
var handleClose = (0, import_react198.useCallback)(function() {
|
|
46832
46729
|
return _async_to_generator(function() {
|
|
46833
|
-
var isConfirmed;
|
|
46834
46730
|
return __generator(this, function(_state) {
|
|
46835
|
-
|
|
46836
|
-
|
|
46837
|
-
|
|
46838
|
-
|
|
46839
|
-
|
|
46840
|
-
openConfirm({
|
|
46841
|
-
title: "".concat(josa(globals.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46842
|
-
leftButton: "\uB2EB\uAE30",
|
|
46843
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46844
|
-
closeOnDimmerClick: true,
|
|
46845
|
-
onEntered: logging.closePopupShow
|
|
46846
|
-
})
|
|
46847
|
-
];
|
|
46848
|
-
case 1:
|
|
46849
|
-
isConfirmed = _state.sent();
|
|
46850
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
46851
|
-
if (isConfirmed) {
|
|
46852
|
-
closeView();
|
|
46853
|
-
}
|
|
46854
|
-
return [
|
|
46855
|
-
2
|
|
46856
|
-
];
|
|
46857
|
-
}
|
|
46731
|
+
logging.closeButtonClick();
|
|
46732
|
+
closeView();
|
|
46733
|
+
return [
|
|
46734
|
+
2
|
|
46735
|
+
];
|
|
46858
46736
|
});
|
|
46859
46737
|
})();
|
|
46860
46738
|
}, [
|
|
46861
|
-
|
|
46862
|
-
logging,
|
|
46863
|
-
openConfirm
|
|
46739
|
+
logging
|
|
46864
46740
|
]);
|
|
46865
46741
|
return (0, import_jsx_runtime232.jsx)(NavigationBarImpressionArea, {
|
|
46866
46742
|
withHomeButton,
|
|
@@ -47309,8 +47185,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47309
47185
|
}
|
|
47310
47186
|
function useBridgeHandler(param) {
|
|
47311
47187
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
47312
|
-
var ref = (0,
|
|
47313
|
-
var injectedJavaScript = (0,
|
|
47188
|
+
var ref = (0, import_react199.useRef)(null);
|
|
47189
|
+
var injectedJavaScript = (0, import_react199.useMemo)(function() {
|
|
47314
47190
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
47315
47191
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
47316
47192
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -47319,7 +47195,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47319
47195
|
}, [
|
|
47320
47196
|
constantHandlerMap
|
|
47321
47197
|
]);
|
|
47322
|
-
(0,
|
|
47198
|
+
(0, import_react199.useEffect)(function() {
|
|
47323
47199
|
var _ref_current;
|
|
47324
47200
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
47325
47201
|
}, [
|
|
@@ -47338,7 +47214,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47338
47214
|
(_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 "));
|
|
47339
47215
|
};
|
|
47340
47216
|
};
|
|
47341
|
-
var $onMessage = (0,
|
|
47217
|
+
var $onMessage = (0, import_react199.useCallback)(function(e64) {
|
|
47342
47218
|
return _async_to_generator(function() {
|
|
47343
47219
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
47344
47220
|
return __generator(this, function(_state) {
|
|
@@ -47411,12 +47287,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47411
47287
|
}
|
|
47412
47288
|
function useSafeAreaInsetsEvent() {
|
|
47413
47289
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47414
|
-
(0,
|
|
47290
|
+
(0, import_react200.useEffect)(function() {
|
|
47415
47291
|
safeAreaInsetsChange.emit(insets);
|
|
47416
47292
|
}, [
|
|
47417
47293
|
insets
|
|
47418
47294
|
]);
|
|
47419
|
-
(0,
|
|
47295
|
+
(0, import_react200.useEffect)(function() {
|
|
47420
47296
|
return function() {
|
|
47421
47297
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
47422
47298
|
};
|
|
@@ -47466,8 +47342,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47466
47342
|
}
|
|
47467
47343
|
}
|
|
47468
47344
|
function useWebViewHistory() {
|
|
47469
|
-
var _useReducer = _sliced_to_array((0,
|
|
47470
|
-
var onNavigationStateChange = (0,
|
|
47345
|
+
var _useReducer = _sliced_to_array((0, import_react202.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
47346
|
+
var onNavigationStateChange = (0, import_react202.useCallback)(function(param) {
|
|
47471
47347
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
47472
47348
|
dispatch({
|
|
47473
47349
|
type: "NAVIGATION_CHANGE",
|
|
@@ -47475,7 +47351,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47475
47351
|
canGoForward: canGoForward2
|
|
47476
47352
|
});
|
|
47477
47353
|
}, []);
|
|
47478
|
-
var _useMemo4 = (0,
|
|
47354
|
+
var _useMemo4 = (0, import_react202.useMemo)(function() {
|
|
47479
47355
|
var canBack = state.index > 0;
|
|
47480
47356
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
47481
47357
|
return {
|
|
@@ -47496,93 +47372,64 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47496
47372
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
47497
47373
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
47498
47374
|
var logging = useNavigationBarLogging();
|
|
47499
|
-
var
|
|
47500
|
-
var global2 = getAppsInTossGlobals();
|
|
47501
|
-
var addEventListener = (0, import_react202.useCallback)(function(handler) {
|
|
47375
|
+
var addEventListener = (0, import_react201.useCallback)(function(handler) {
|
|
47502
47376
|
addWebBackEventListener(handler);
|
|
47503
47377
|
}, [
|
|
47504
47378
|
addWebBackEventListener
|
|
47505
47379
|
]);
|
|
47506
|
-
var removeEventListener = (0,
|
|
47380
|
+
var removeEventListener = (0, import_react201.useCallback)(function(handler) {
|
|
47507
47381
|
removeWebBackEventListener(handler);
|
|
47508
47382
|
}, [
|
|
47509
47383
|
removeWebBackEventListener
|
|
47510
47384
|
]);
|
|
47511
|
-
var handleWebBack = (0,
|
|
47385
|
+
var handleWebBack = (0, import_react201.useCallback)(function() {
|
|
47512
47386
|
return _async_to_generator(function() {
|
|
47513
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current
|
|
47387
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
47514
47388
|
return __generator(this, function(_state) {
|
|
47515
|
-
|
|
47516
|
-
|
|
47517
|
-
|
|
47518
|
-
|
|
47519
|
-
|
|
47520
|
-
|
|
47521
|
-
handler = _step.value;
|
|
47522
|
-
handler();
|
|
47523
|
-
}
|
|
47524
|
-
} catch (err) {
|
|
47525
|
-
_didIteratorError = true;
|
|
47526
|
-
_iteratorError = err;
|
|
47527
|
-
} finally {
|
|
47528
|
-
try {
|
|
47529
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47530
|
-
_iterator.return();
|
|
47531
|
-
}
|
|
47532
|
-
} finally {
|
|
47533
|
-
if (_didIteratorError) {
|
|
47534
|
-
throw _iteratorError;
|
|
47535
|
-
}
|
|
47536
|
-
}
|
|
47537
|
-
}
|
|
47538
|
-
return [
|
|
47539
|
-
2
|
|
47540
|
-
];
|
|
47389
|
+
if (hasWebBackEvent) {
|
|
47390
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47391
|
+
try {
|
|
47392
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
47393
|
+
handler = _step.value;
|
|
47394
|
+
handler();
|
|
47541
47395
|
}
|
|
47542
|
-
|
|
47543
|
-
|
|
47544
|
-
|
|
47545
|
-
|
|
47546
|
-
|
|
47547
|
-
|
|
47548
|
-
|
|
47549
|
-
|
|
47550
|
-
|
|
47551
|
-
|
|
47552
|
-
|
|
47553
|
-
|
|
47554
|
-
openConfirm({
|
|
47555
|
-
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
47556
|
-
leftButton: "\uB2EB\uAE30",
|
|
47557
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
47558
|
-
closeOnDimmerClick: true,
|
|
47559
|
-
onEntered: logging.closePopupShow
|
|
47560
|
-
})
|
|
47561
|
-
];
|
|
47562
|
-
case 2:
|
|
47563
|
-
isConfirmed = _state.sent();
|
|
47564
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
47565
|
-
if (isConfirmed) {
|
|
47566
|
-
closeView();
|
|
47396
|
+
} catch (err) {
|
|
47397
|
+
_didIteratorError = true;
|
|
47398
|
+
_iteratorError = err;
|
|
47399
|
+
} finally {
|
|
47400
|
+
try {
|
|
47401
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47402
|
+
_iterator.return();
|
|
47403
|
+
}
|
|
47404
|
+
} finally {
|
|
47405
|
+
if (_didIteratorError) {
|
|
47406
|
+
throw _iteratorError;
|
|
47407
|
+
}
|
|
47567
47408
|
}
|
|
47568
|
-
|
|
47569
|
-
|
|
47570
|
-
|
|
47571
|
-
|
|
47572
|
-
|
|
47409
|
+
}
|
|
47410
|
+
return [
|
|
47411
|
+
2
|
|
47412
|
+
];
|
|
47413
|
+
}
|
|
47414
|
+
if (hasHistory) {
|
|
47415
|
+
;
|
|
47416
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
47417
|
+
} else {
|
|
47418
|
+
closeView();
|
|
47573
47419
|
}
|
|
47420
|
+
return [
|
|
47421
|
+
2
|
|
47422
|
+
];
|
|
47574
47423
|
});
|
|
47575
47424
|
})();
|
|
47576
47425
|
}, [
|
|
47577
|
-
global2.brandDisplayName,
|
|
47578
47426
|
hasHistory,
|
|
47579
47427
|
hasWebBackEvent,
|
|
47580
47428
|
webBackHandlersRef,
|
|
47581
47429
|
logging,
|
|
47582
|
-
openConfirm,
|
|
47583
47430
|
webViewRef
|
|
47584
47431
|
]);
|
|
47585
|
-
var handleWebHome = (0,
|
|
47432
|
+
var handleWebHome = (0, import_react201.useCallback)(function() {
|
|
47586
47433
|
var _webViewRef_current;
|
|
47587
47434
|
logging.homeButtonClick();
|
|
47588
47435
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -47597,7 +47444,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47597
47444
|
webViewInitialURL,
|
|
47598
47445
|
webViewRef
|
|
47599
47446
|
]);
|
|
47600
|
-
return (0,
|
|
47447
|
+
return (0, import_react201.useMemo)(function() {
|
|
47601
47448
|
return {
|
|
47602
47449
|
addEventListener,
|
|
47603
47450
|
removeEventListener,
|
|
@@ -47902,8 +47749,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47902
47749
|
if (!TYPES.includes(type)) {
|
|
47903
47750
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
47904
47751
|
}
|
|
47905
|
-
var webViewRef = (0,
|
|
47906
|
-
var url = (0,
|
|
47752
|
+
var webViewRef = (0, import_react194.useRef)(null);
|
|
47753
|
+
var url = (0, import_react194.useMemo)(function() {
|
|
47907
47754
|
return getWebViewURL(local);
|
|
47908
47755
|
}, [
|
|
47909
47756
|
local
|
|
@@ -47915,7 +47762,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47915
47762
|
var global2 = getAppsInTossGlobals();
|
|
47916
47763
|
var navigationBarContext = useNavigationBarContext();
|
|
47917
47764
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
47918
|
-
var _useState6 = _sliced_to_array((0,
|
|
47765
|
+
var _useState6 = _sliced_to_array((0, import_react194.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
47919
47766
|
var handler = useBridgeHandler({
|
|
47920
47767
|
onMessage,
|
|
47921
47768
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -48058,7 +47905,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48058
47905
|
}
|
|
48059
47906
|
})
|
|
48060
47907
|
});
|
|
48061
|
-
var headerPropForExternalWebView = (0,
|
|
47908
|
+
var headerPropForExternalWebView = (0, import_react194.useMemo)(function() {
|
|
48062
47909
|
var _ref;
|
|
48063
47910
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
48064
47911
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -48083,7 +47930,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48083
47930
|
colorPreference: "light"
|
|
48084
47931
|
});
|
|
48085
47932
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
48086
|
-
(0,
|
|
47933
|
+
(0, import_react194.useEffect)(function() {
|
|
48087
47934
|
var callback = function() {
|
|
48088
47935
|
webBackHandler.handleWebBack();
|
|
48089
47936
|
return true;
|
|
@@ -48159,7 +48006,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48159
48006
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
48160
48007
|
}));
|
|
48161
48008
|
}
|
|
48162
|
-
var import_react_native187, import_react179, import_react180, import_jsx_runtime216, import_react181, import_jsx_runtime217, import_react182, import_react_native191, import_react183, import_react_native193, import_react184, import_react185, import_react_native196, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native199, import_react191, import_react192,
|
|
48009
|
+
var import_react_native187, import_react179, import_react180, import_jsx_runtime216, import_react181, import_jsx_runtime217, import_react182, import_react_native191, import_react183, import_react_native193, import_react184, import_react185, import_react_native196, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native199, import_react191, import_react192, import_react_native204, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react193, import_jsx_runtime225, import_jsx_runtime226, import_react_native207, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react194, import_react_native209, import_react195, import_react_native210, import_react196, import_react_native212, import_jsx_runtime230, import_jsx_runtime231, import_react197, import_react198, import_jsx_runtime232, import_jsx_runtime233, import_react199, import_react200, import_react201, import_react202, import_react_native218, import_react203, import_react204, import_jsx_runtime234, import_react205, import_react_native221, import_react206, import_react_native222, import_jsx_runtime235, import_react207, import_react_native223, import_jsx_runtime236, import_jsx_runtime237, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, DEFAULT_PIPELINES, AppEvent, UPDATE_SCHEME, NavigationBarContext, 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, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_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, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION6, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, INVALID_AD_GROUP_ID_ERROR_MESSAGE, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
|
|
48163
48010
|
var init_dist8 = __esm({
|
|
48164
48011
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
48165
48012
|
"use strict";
|
|
@@ -48226,15 +48073,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48226
48073
|
import_react_native199 = __toESM(require_react_native(), 1);
|
|
48227
48074
|
init_src3();
|
|
48228
48075
|
import_react191 = __toESM(require_react(), 1);
|
|
48229
|
-
init_esm7();
|
|
48230
|
-
init_dist6();
|
|
48231
|
-
import_react192 = __toESM(require_react(), 1);
|
|
48232
48076
|
init_src3();
|
|
48233
48077
|
init_dist5();
|
|
48234
48078
|
init_src3();
|
|
48235
48079
|
init_esm7();
|
|
48236
48080
|
init_private2();
|
|
48237
|
-
|
|
48081
|
+
import_react192 = __toESM(require_react(), 1);
|
|
48238
48082
|
init_dist5();
|
|
48239
48083
|
init_src3();
|
|
48240
48084
|
init_esm7();
|
|
@@ -48250,7 +48094,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48250
48094
|
init_src3();
|
|
48251
48095
|
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
48252
48096
|
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
48253
|
-
|
|
48097
|
+
import_react193 = __toESM(require_react(), 1);
|
|
48254
48098
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
48255
48099
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
48256
48100
|
init_react_native_safe_area_context();
|
|
@@ -48272,28 +48116,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48272
48116
|
init_src3();
|
|
48273
48117
|
init_esm7();
|
|
48274
48118
|
init_private2();
|
|
48275
|
-
|
|
48119
|
+
import_react194 = __toESM(require_react(), 1);
|
|
48276
48120
|
import_react_native209 = __toESM(require_react_native(), 1);
|
|
48277
48121
|
init_dist5();
|
|
48278
48122
|
init_react_native_webview();
|
|
48279
|
-
|
|
48123
|
+
import_react195 = __toESM(require_react(), 1);
|
|
48280
48124
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
48281
48125
|
init_react_native_safe_area_context();
|
|
48282
48126
|
init_src3();
|
|
48283
48127
|
init_esm7();
|
|
48284
48128
|
init_private2();
|
|
48285
|
-
|
|
48286
|
-
import_react197 = __toESM(require_react(), 1);
|
|
48129
|
+
import_react196 = __toESM(require_react(), 1);
|
|
48287
48130
|
import_react_native212 = __toESM(require_react_native(), 1);
|
|
48288
48131
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
48289
48132
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
48290
48133
|
init_react_native_webview();
|
|
48291
|
-
|
|
48134
|
+
import_react197 = __toESM(require_react(), 1);
|
|
48292
48135
|
init_src3();
|
|
48293
|
-
init_esm7();
|
|
48294
48136
|
init_private2();
|
|
48295
|
-
|
|
48296
|
-
import_react199 = __toESM(require_react(), 1);
|
|
48137
|
+
import_react198 = __toESM(require_react(), 1);
|
|
48297
48138
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
48298
48139
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
48299
48140
|
init_dist5();
|
|
@@ -48302,19 +48143,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48302
48143
|
init_dist5();
|
|
48303
48144
|
init_src3();
|
|
48304
48145
|
init_src3();
|
|
48305
|
-
|
|
48146
|
+
import_react199 = __toESM(require_react(), 1);
|
|
48306
48147
|
init_react_native_safe_area_context();
|
|
48307
|
-
|
|
48148
|
+
import_react200 = __toESM(require_react(), 1);
|
|
48308
48149
|
init_src3();
|
|
48309
|
-
|
|
48310
|
-
init_dist6();
|
|
48150
|
+
import_react201 = __toESM(require_react(), 1);
|
|
48311
48151
|
import_react202 = __toESM(require_react(), 1);
|
|
48312
|
-
import_react203 = __toESM(require_react(), 1);
|
|
48313
48152
|
init_dist5();
|
|
48314
48153
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
48315
48154
|
init_dist5();
|
|
48155
|
+
import_react203 = __toESM(require_react(), 1);
|
|
48316
48156
|
import_react204 = __toESM(require_react(), 1);
|
|
48317
|
-
import_react205 = __toESM(require_react(), 1);
|
|
48318
48157
|
init_dist5();
|
|
48319
48158
|
init_src3();
|
|
48320
48159
|
init_esm7();
|
|
@@ -48324,12 +48163,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48324
48163
|
init_dist5();
|
|
48325
48164
|
init_dist3();
|
|
48326
48165
|
init_dist3();
|
|
48327
|
-
|
|
48166
|
+
import_react205 = __toESM(require_react(), 1);
|
|
48328
48167
|
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48329
|
-
|
|
48168
|
+
import_react206 = __toESM(require_react(), 1);
|
|
48330
48169
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
48331
48170
|
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
48332
|
-
|
|
48171
|
+
import_react207 = __toESM(require_react(), 1);
|
|
48333
48172
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
48334
48173
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
48335
48174
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -48884,12 +48723,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48884
48723
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
48885
48724
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
48886
48725
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
48887
|
-
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
48888
|
-
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
48889
48726
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
48890
48727
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
48891
|
-
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
48892
|
-
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
48893
48728
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
48894
48729
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
48895
48730
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -48937,8 +48772,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48937
48772
|
AppsInToss = {
|
|
48938
48773
|
registerApp
|
|
48939
48774
|
};
|
|
48940
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
48941
|
-
(0,
|
|
48775
|
+
GameWebView = /* @__PURE__ */ (0, import_react195.forwardRef)(function GameWebView2(props, ref) {
|
|
48776
|
+
(0, import_react195.useEffect)(function() {
|
|
48942
48777
|
if (import_react_native210.Platform.OS === "ios") {
|
|
48943
48778
|
setIosSwipeGestureEnabled({
|
|
48944
48779
|
isEnabled: false
|
|
@@ -48964,7 +48799,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48964
48799
|
]
|
|
48965
48800
|
});
|
|
48966
48801
|
});
|
|
48967
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48802
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react197.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
48968
48803
|
var _ref = [
|
|
48969
48804
|
_03,
|
|
48970
48805
|
_1
|