@apps-in-toss/web-framework 2.9.1 → 2.9.2
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 +311 -205
- package/dist/prebuilt/dev.ios.rn84.js +311 -205
- package/dist/prebuilt/prod.android.rn72.js +241 -85
- package/dist/prebuilt/prod.android.rn84.js +241 -85
- package/dist/prebuilt/prod.ios.rn72.js +241 -85
- package/dist/prebuilt/prod.ios.rn84.js +241 -85
- package/package.json +8 -8
|
@@ -44685,6 +44685,38 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44685
44685
|
handler
|
|
44686
44686
|
]);
|
|
44687
44687
|
}
|
|
44688
|
+
function useCloseConfirm() {
|
|
44689
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
44690
|
+
var openConfirm = useDialog().openConfirm;
|
|
44691
|
+
return (0, import_react188.useCallback)(function(param) {
|
|
44692
|
+
var onEntered = param.onEntered;
|
|
44693
|
+
return _async_to_generator(function() {
|
|
44694
|
+
return __generator(this, function(_state) {
|
|
44695
|
+
switch (_state.label) {
|
|
44696
|
+
case 0:
|
|
44697
|
+
return [
|
|
44698
|
+
4,
|
|
44699
|
+
openConfirm({
|
|
44700
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
44701
|
+
leftButton: "\uB2EB\uAE30",
|
|
44702
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
44703
|
+
closeOnDimmerClick: true,
|
|
44704
|
+
onEntered
|
|
44705
|
+
})
|
|
44706
|
+
];
|
|
44707
|
+
case 1:
|
|
44708
|
+
return [
|
|
44709
|
+
2,
|
|
44710
|
+
_state.sent()
|
|
44711
|
+
];
|
|
44712
|
+
}
|
|
44713
|
+
});
|
|
44714
|
+
})();
|
|
44715
|
+
}, [
|
|
44716
|
+
brandDisplayName,
|
|
44717
|
+
openConfirm
|
|
44718
|
+
]);
|
|
44719
|
+
}
|
|
44688
44720
|
function createEvent(event) {
|
|
44689
44721
|
return {
|
|
44690
44722
|
name: event,
|
|
@@ -44738,8 +44770,30 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44738
44770
|
})
|
|
44739
44771
|
});
|
|
44740
44772
|
};
|
|
44773
|
+
var logClosePopupShow = function() {
|
|
44774
|
+
sendLog({
|
|
44775
|
+
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
44776
|
+
log_type: "popup",
|
|
44777
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
44778
|
+
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
44779
|
+
})
|
|
44780
|
+
});
|
|
44781
|
+
};
|
|
44782
|
+
var logClosePopupCtaClick = function(confirm) {
|
|
44783
|
+
sendLog({
|
|
44784
|
+
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
44785
|
+
log_type: "event",
|
|
44786
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
44787
|
+
close_yn: confirm ? "Y" : "N",
|
|
44788
|
+
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
44789
|
+
event_type: "click"
|
|
44790
|
+
})
|
|
44791
|
+
});
|
|
44792
|
+
};
|
|
44741
44793
|
return {
|
|
44742
44794
|
navBarImpression: logNavBarImpression,
|
|
44795
|
+
closePopupShow: logClosePopupShow,
|
|
44796
|
+
closePopupCtaClick: logClosePopupCtaClick,
|
|
44743
44797
|
closeButtonClick: logCloseButtonClick,
|
|
44744
44798
|
homeButtonClick: logHomeButtonClick
|
|
44745
44799
|
};
|
|
@@ -44748,7 +44802,40 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44748
44802
|
var backEventContext = useBackEventContext();
|
|
44749
44803
|
var logging = useNavigationBarLogging();
|
|
44750
44804
|
var navigation = useNavigation();
|
|
44805
|
+
var closeConfirm = useCloseConfirm();
|
|
44806
|
+
var global2 = getAppsInTossGlobals();
|
|
44751
44807
|
return (0, import_react187.useMemo)(function() {
|
|
44808
|
+
var close = function() {
|
|
44809
|
+
return _async_to_generator(function() {
|
|
44810
|
+
var hasConfirmed;
|
|
44811
|
+
return __generator(this, function(_state) {
|
|
44812
|
+
switch (_state.label) {
|
|
44813
|
+
case 0:
|
|
44814
|
+
if (global2.appType !== "game") {
|
|
44815
|
+
closeView();
|
|
44816
|
+
return [
|
|
44817
|
+
2
|
|
44818
|
+
];
|
|
44819
|
+
}
|
|
44820
|
+
return [
|
|
44821
|
+
4,
|
|
44822
|
+
closeConfirm({
|
|
44823
|
+
onEntered: logging.closePopupShow
|
|
44824
|
+
})
|
|
44825
|
+
];
|
|
44826
|
+
case 1:
|
|
44827
|
+
hasConfirmed = _state.sent();
|
|
44828
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
44829
|
+
if (hasConfirmed) {
|
|
44830
|
+
closeView();
|
|
44831
|
+
}
|
|
44832
|
+
return [
|
|
44833
|
+
2
|
|
44834
|
+
];
|
|
44835
|
+
}
|
|
44836
|
+
});
|
|
44837
|
+
})();
|
|
44838
|
+
};
|
|
44752
44839
|
return {
|
|
44753
44840
|
handleBack: function() {
|
|
44754
44841
|
if (backEventContext.hasBackEvent) {
|
|
@@ -44756,7 +44843,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44756
44843
|
} else if (navigation.canGoBack()) {
|
|
44757
44844
|
navigation.goBack();
|
|
44758
44845
|
} else {
|
|
44759
|
-
|
|
44846
|
+
close();
|
|
44760
44847
|
}
|
|
44761
44848
|
},
|
|
44762
44849
|
handleHomeButtonClick: function() {
|
|
@@ -44771,12 +44858,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44771
44858
|
},
|
|
44772
44859
|
handleCloseButtonClick: function() {
|
|
44773
44860
|
logging.closeButtonClick();
|
|
44774
|
-
|
|
44861
|
+
close();
|
|
44775
44862
|
}
|
|
44776
44863
|
};
|
|
44777
44864
|
}, [
|
|
44865
|
+
global2.appType,
|
|
44778
44866
|
backEventContext,
|
|
44779
44867
|
navigation,
|
|
44868
|
+
closeConfirm,
|
|
44780
44869
|
logging
|
|
44781
44870
|
]);
|
|
44782
44871
|
}
|
|
@@ -45003,7 +45092,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45003
45092
|
function useMoreButtonBottomSheet() {
|
|
45004
45093
|
var globals = getAppsInTossGlobals();
|
|
45005
45094
|
var adaptive = useAdaptive();
|
|
45006
|
-
var _useState4 = _sliced_to_array((0,
|
|
45095
|
+
var _useState4 = _sliced_to_array((0, import_react189.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
45007
45096
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45008
45097
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45009
45098
|
var overlay = useOverlay();
|
|
@@ -45012,7 +45101,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45012
45101
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
45013
45102
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
45014
45103
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
45015
|
-
(0,
|
|
45104
|
+
(0, import_react189.useEffect)(function() {
|
|
45016
45105
|
if (!isBottomSheetSupported) {
|
|
45017
45106
|
return;
|
|
45018
45107
|
}
|
|
@@ -45113,7 +45202,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45113
45202
|
function BottomSheetImpressionArea(param) {
|
|
45114
45203
|
var children = param.children;
|
|
45115
45204
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45116
|
-
(0,
|
|
45205
|
+
(0, import_react189.useEffect)(function() {
|
|
45117
45206
|
logging.show();
|
|
45118
45207
|
}, [
|
|
45119
45208
|
logging
|
|
@@ -45126,7 +45215,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45126
45215
|
var left = param.left, center = param.center, right = param.right;
|
|
45127
45216
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
45128
45217
|
var navigation = useNavigation();
|
|
45129
|
-
(0,
|
|
45218
|
+
(0, import_react190.useEffect)(function() {
|
|
45130
45219
|
var _ref, _ref1;
|
|
45131
45220
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
45132
45221
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
@@ -45373,9 +45462,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45373
45462
|
}
|
|
45374
45463
|
function NavigationBarImpressionArea(param) {
|
|
45375
45464
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
45376
|
-
var hasLogged = (0,
|
|
45465
|
+
var hasLogged = (0, import_react191.useRef)(false);
|
|
45377
45466
|
var logging = useNavigationBarLogging();
|
|
45378
|
-
(0,
|
|
45467
|
+
(0, import_react191.useEffect)(function() {
|
|
45379
45468
|
if (hasLogged.current === false) {
|
|
45380
45469
|
logging.navBarImpression({
|
|
45381
45470
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -45595,22 +45684,43 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45595
45684
|
function GameWebviewNavigationBar() {
|
|
45596
45685
|
var _ref;
|
|
45597
45686
|
var openConfirm = useDialog().openConfirm;
|
|
45687
|
+
var global2 = getAppsInTossGlobals();
|
|
45598
45688
|
var logging = useNavigationBarLogging();
|
|
45599
45689
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45600
45690
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45601
45691
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
45602
45692
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
45603
|
-
var handleGameWebviewClose = (0,
|
|
45693
|
+
var handleGameWebviewClose = (0, import_react194.useCallback)(function() {
|
|
45604
45694
|
return _async_to_generator(function() {
|
|
45695
|
+
var isConfirmed;
|
|
45605
45696
|
return __generator(this, function(_state) {
|
|
45606
|
-
|
|
45607
|
-
|
|
45608
|
-
|
|
45609
|
-
|
|
45610
|
-
|
|
45697
|
+
switch (_state.label) {
|
|
45698
|
+
case 0:
|
|
45699
|
+
logging.closeButtonClick();
|
|
45700
|
+
return [
|
|
45701
|
+
4,
|
|
45702
|
+
openConfirm({
|
|
45703
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45704
|
+
leftButton: "\uB2EB\uAE30",
|
|
45705
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45706
|
+
closeOnDimmerClick: true,
|
|
45707
|
+
onEntered: logging.closePopupShow
|
|
45708
|
+
})
|
|
45709
|
+
];
|
|
45710
|
+
case 1:
|
|
45711
|
+
isConfirmed = _state.sent();
|
|
45712
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
45713
|
+
if (isConfirmed) {
|
|
45714
|
+
closeView();
|
|
45715
|
+
}
|
|
45716
|
+
return [
|
|
45717
|
+
2
|
|
45718
|
+
];
|
|
45719
|
+
}
|
|
45611
45720
|
});
|
|
45612
45721
|
})();
|
|
45613
45722
|
}, [
|
|
45723
|
+
global2.brandDisplayName,
|
|
45614
45724
|
logging,
|
|
45615
45725
|
openConfirm
|
|
45616
45726
|
]);
|
|
@@ -45634,7 +45744,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45634
45744
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
45635
45745
|
var theme = (_ref2 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.theme) !== null && _ref2 !== void 0 ? _ref2 : "light";
|
|
45636
45746
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45637
|
-
var handleClose = (0,
|
|
45747
|
+
var handleClose = (0, import_react196.useCallback)(function() {
|
|
45638
45748
|
return _async_to_generator(function() {
|
|
45639
45749
|
return __generator(this, function(_state) {
|
|
45640
45750
|
logging.closeButtonClick();
|
|
@@ -46110,8 +46220,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46110
46220
|
}
|
|
46111
46221
|
function useBridgeHandler(param) {
|
|
46112
46222
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
46113
|
-
var ref = (0,
|
|
46114
|
-
var injectedJavaScript = (0,
|
|
46223
|
+
var ref = (0, import_react197.useRef)(null);
|
|
46224
|
+
var injectedJavaScript = (0, import_react197.useMemo)(function() {
|
|
46115
46225
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46116
46226
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
46117
46227
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -46120,7 +46230,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46120
46230
|
}, [
|
|
46121
46231
|
constantHandlerMap
|
|
46122
46232
|
]);
|
|
46123
|
-
(0,
|
|
46233
|
+
(0, import_react197.useEffect)(function() {
|
|
46124
46234
|
var _ref_current;
|
|
46125
46235
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
46126
46236
|
}, [
|
|
@@ -46139,7 +46249,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46139
46249
|
(_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 "));
|
|
46140
46250
|
};
|
|
46141
46251
|
};
|
|
46142
|
-
var $onMessage = (0,
|
|
46252
|
+
var $onMessage = (0, import_react197.useCallback)(function(e63) {
|
|
46143
46253
|
return _async_to_generator(function() {
|
|
46144
46254
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
46145
46255
|
return __generator(this, function(_state) {
|
|
@@ -46212,12 +46322,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46212
46322
|
}
|
|
46213
46323
|
function useSafeAreaInsetsEvent() {
|
|
46214
46324
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46215
|
-
(0,
|
|
46325
|
+
(0, import_react198.useEffect)(function() {
|
|
46216
46326
|
safeAreaInsetsChange.emit(insets);
|
|
46217
46327
|
}, [
|
|
46218
46328
|
insets
|
|
46219
46329
|
]);
|
|
46220
|
-
(0,
|
|
46330
|
+
(0, import_react198.useEffect)(function() {
|
|
46221
46331
|
return function() {
|
|
46222
46332
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
46223
46333
|
};
|
|
@@ -46267,8 +46377,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46267
46377
|
}
|
|
46268
46378
|
}
|
|
46269
46379
|
function useWebViewHistory() {
|
|
46270
|
-
var _useReducer = _sliced_to_array((0,
|
|
46271
|
-
var onNavigationStateChange = (0,
|
|
46380
|
+
var _useReducer = _sliced_to_array((0, import_react200.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46381
|
+
var onNavigationStateChange = (0, import_react200.useCallback)(function(param) {
|
|
46272
46382
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46273
46383
|
dispatch({
|
|
46274
46384
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46276,7 +46386,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46276
46386
|
canGoForward: canGoForward2
|
|
46277
46387
|
});
|
|
46278
46388
|
}, []);
|
|
46279
|
-
var _useMemo4 = (0,
|
|
46389
|
+
var _useMemo4 = (0, import_react200.useMemo)(function() {
|
|
46280
46390
|
var canBack = state.index > 0;
|
|
46281
46391
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46282
46392
|
return {
|
|
@@ -46297,64 +46407,100 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46297
46407
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
46298
46408
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
46299
46409
|
var logging = useNavigationBarLogging();
|
|
46300
|
-
var
|
|
46410
|
+
var openConfirm = useDialog().openConfirm;
|
|
46411
|
+
var global2 = getAppsInTossGlobals();
|
|
46412
|
+
var addEventListener = (0, import_react199.useCallback)(function(handler) {
|
|
46301
46413
|
addWebBackEventListener(handler);
|
|
46302
46414
|
}, [
|
|
46303
46415
|
addWebBackEventListener
|
|
46304
46416
|
]);
|
|
46305
|
-
var removeEventListener = (0,
|
|
46417
|
+
var removeEventListener = (0, import_react199.useCallback)(function(handler) {
|
|
46306
46418
|
removeWebBackEventListener(handler);
|
|
46307
46419
|
}, [
|
|
46308
46420
|
removeWebBackEventListener
|
|
46309
46421
|
]);
|
|
46310
|
-
var handleWebBack = (0,
|
|
46422
|
+
var handleWebBack = (0, import_react199.useCallback)(function() {
|
|
46311
46423
|
return _async_to_generator(function() {
|
|
46312
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
46424
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
46313
46425
|
return __generator(this, function(_state) {
|
|
46314
|
-
|
|
46315
|
-
|
|
46316
|
-
|
|
46317
|
-
|
|
46318
|
-
|
|
46319
|
-
|
|
46320
|
-
|
|
46321
|
-
|
|
46322
|
-
|
|
46323
|
-
|
|
46324
|
-
|
|
46325
|
-
|
|
46326
|
-
|
|
46327
|
-
|
|
46328
|
-
|
|
46329
|
-
|
|
46330
|
-
|
|
46331
|
-
|
|
46426
|
+
switch (_state.label) {
|
|
46427
|
+
case 0:
|
|
46428
|
+
if (hasWebBackEvent) {
|
|
46429
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
46430
|
+
try {
|
|
46431
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
46432
|
+
handler = _step.value;
|
|
46433
|
+
handler();
|
|
46434
|
+
}
|
|
46435
|
+
} catch (err) {
|
|
46436
|
+
_didIteratorError = true;
|
|
46437
|
+
_iteratorError = err;
|
|
46438
|
+
} finally {
|
|
46439
|
+
try {
|
|
46440
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
46441
|
+
_iterator.return();
|
|
46442
|
+
}
|
|
46443
|
+
} finally {
|
|
46444
|
+
if (_didIteratorError) {
|
|
46445
|
+
throw _iteratorError;
|
|
46446
|
+
}
|
|
46447
|
+
}
|
|
46332
46448
|
}
|
|
46449
|
+
return [
|
|
46450
|
+
2
|
|
46451
|
+
];
|
|
46333
46452
|
}
|
|
46334
|
-
|
|
46335
|
-
|
|
46336
|
-
|
|
46337
|
-
|
|
46338
|
-
|
|
46339
|
-
|
|
46340
|
-
|
|
46341
|
-
|
|
46342
|
-
|
|
46343
|
-
|
|
46453
|
+
if (!hasHistory) return [
|
|
46454
|
+
3,
|
|
46455
|
+
1
|
|
46456
|
+
];
|
|
46457
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
46458
|
+
return [
|
|
46459
|
+
3,
|
|
46460
|
+
3
|
|
46461
|
+
];
|
|
46462
|
+
case 1:
|
|
46463
|
+
if (global2.webViewType !== "game") {
|
|
46464
|
+
closeView();
|
|
46465
|
+
return [
|
|
46466
|
+
2
|
|
46467
|
+
];
|
|
46468
|
+
}
|
|
46469
|
+
return [
|
|
46470
|
+
4,
|
|
46471
|
+
openConfirm({
|
|
46472
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46473
|
+
leftButton: "\uB2EB\uAE30",
|
|
46474
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46475
|
+
closeOnDimmerClick: true,
|
|
46476
|
+
onEntered: logging.closePopupShow
|
|
46477
|
+
})
|
|
46478
|
+
];
|
|
46479
|
+
case 2:
|
|
46480
|
+
isConfirmed = _state.sent();
|
|
46481
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
46482
|
+
if (isConfirmed) {
|
|
46483
|
+
closeView();
|
|
46484
|
+
}
|
|
46485
|
+
_state.label = 3;
|
|
46486
|
+
case 3:
|
|
46487
|
+
return [
|
|
46488
|
+
2
|
|
46489
|
+
];
|
|
46344
46490
|
}
|
|
46345
|
-
return [
|
|
46346
|
-
2
|
|
46347
|
-
];
|
|
46348
46491
|
});
|
|
46349
46492
|
})();
|
|
46350
46493
|
}, [
|
|
46494
|
+
global2.webViewType,
|
|
46495
|
+
global2.brandDisplayName,
|
|
46351
46496
|
hasHistory,
|
|
46352
46497
|
hasWebBackEvent,
|
|
46353
46498
|
webBackHandlersRef,
|
|
46354
46499
|
logging,
|
|
46500
|
+
openConfirm,
|
|
46355
46501
|
webViewRef
|
|
46356
46502
|
]);
|
|
46357
|
-
var handleWebHome = (0,
|
|
46503
|
+
var handleWebHome = (0, import_react199.useCallback)(function() {
|
|
46358
46504
|
var _webViewRef_current;
|
|
46359
46505
|
logging.homeButtonClick();
|
|
46360
46506
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -46369,7 +46515,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46369
46515
|
webViewInitialURL,
|
|
46370
46516
|
webViewRef
|
|
46371
46517
|
]);
|
|
46372
|
-
return (0,
|
|
46518
|
+
return (0, import_react199.useMemo)(function() {
|
|
46373
46519
|
return {
|
|
46374
46520
|
addEventListener,
|
|
46375
46521
|
removeEventListener,
|
|
@@ -46674,8 +46820,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46674
46820
|
if (!TYPES.includes(type)) {
|
|
46675
46821
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
46676
46822
|
}
|
|
46677
|
-
var webViewRef = (0,
|
|
46678
|
-
var url = (0,
|
|
46823
|
+
var webViewRef = (0, import_react192.useRef)(null);
|
|
46824
|
+
var url = (0, import_react192.useMemo)(function() {
|
|
46679
46825
|
return getWebViewURL(local);
|
|
46680
46826
|
}, [
|
|
46681
46827
|
local
|
|
@@ -46685,7 +46831,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46685
46831
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46686
46832
|
var navigationBarContext = useNavigationBarContext();
|
|
46687
46833
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
46688
|
-
var _useState6 = _sliced_to_array((0,
|
|
46834
|
+
var _useState6 = _sliced_to_array((0, import_react192.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
46689
46835
|
var handler = useBridgeHandler({
|
|
46690
46836
|
onMessage,
|
|
46691
46837
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -46823,7 +46969,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46823
46969
|
}
|
|
46824
46970
|
})
|
|
46825
46971
|
});
|
|
46826
|
-
var headerPropForExternalWebView = (0,
|
|
46972
|
+
var headerPropForExternalWebView = (0, import_react192.useMemo)(function() {
|
|
46827
46973
|
var _ref;
|
|
46828
46974
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46829
46975
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -46848,7 +46994,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46848
46994
|
colorPreference: "light"
|
|
46849
46995
|
});
|
|
46850
46996
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
46851
|
-
(0,
|
|
46997
|
+
(0, import_react192.useEffect)(function() {
|
|
46852
46998
|
var callback = function() {
|
|
46853
46999
|
webBackHandler.handleWebBack();
|
|
46854
47000
|
return true;
|
|
@@ -46924,7 +47070,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46924
47070
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
46925
47071
|
}));
|
|
46926
47072
|
}
|
|
46927
|
-
var import_react_native182, import_react175, import_react176, import_jsx_runtime212, import_react177, import_jsx_runtime213, import_react178, import_react_native186, import_react179, import_react_native188, import_react180, import_react181, import_react_native191, import_react182, import_react183, import_react184, import_react185, import_jsx_runtime214, import_jsx_runtime215, import_react186, import_react_native194, import_react187, import_react188, import_react_native199, import_jsx_runtime216, import_jsx_runtime217, import_jsx_runtime218, import_jsx_runtime219, import_jsx_runtime220,
|
|
47073
|
+
var import_react_native182, import_react175, import_react176, import_jsx_runtime212, import_react177, import_jsx_runtime213, import_react178, import_react_native186, import_react179, import_react_native188, import_react180, import_react181, import_react_native191, import_react182, import_react183, import_react184, import_react185, import_jsx_runtime214, import_jsx_runtime215, import_react186, import_react_native194, import_react187, import_react188, import_react189, import_react_native199, import_jsx_runtime216, import_jsx_runtime217, import_jsx_runtime218, import_jsx_runtime219, import_jsx_runtime220, import_react190, import_react_native203, import_jsx_runtime221, import_react_native204, import_jsx_runtime222, import_react_native205, import_jsx_runtime223, import_react_native207, import_jsx_runtime224, import_react_native208, import_jsx_runtime225, import_react191, import_jsx_runtime226, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_jsx_runtime230, import_react192, import_react_native210, import_react193, import_react_native211, import_react194, import_jsx_runtime231, import_jsx_runtime232, import_react195, import_react196, import_jsx_runtime233, import_jsx_runtime234, import_react197, import_react198, import_react199, import_react200, import_react_native218, import_react201, import_react202, import_jsx_runtime235, import_react203, import_react_native221, import_react204, import_react_native222, import_jsx_runtime236, import_react205, import_react_native223, import_jsx_runtime237, import_jsx_runtime238, __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_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, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION6, BACK_BUTTON_XML2, 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;
|
|
46928
47074
|
var init_dist8 = __esm({
|
|
46929
47075
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
46930
47076
|
"use strict";
|
|
@@ -46990,12 +47136,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46990
47136
|
import_react_native194 = __toESM(require_react_native(), 1);
|
|
46991
47137
|
init_src3();
|
|
46992
47138
|
import_react187 = __toESM(require_react(), 1);
|
|
47139
|
+
init_esm7();
|
|
47140
|
+
init_dist6();
|
|
47141
|
+
import_react188 = __toESM(require_react(), 1);
|
|
46993
47142
|
init_src3();
|
|
46994
47143
|
init_dist5();
|
|
46995
47144
|
init_src3();
|
|
46996
47145
|
init_esm7();
|
|
46997
47146
|
init_private2();
|
|
46998
|
-
|
|
47147
|
+
import_react189 = __toESM(require_react(), 1);
|
|
46999
47148
|
init_dist5();
|
|
47000
47149
|
init_src3();
|
|
47001
47150
|
init_esm7();
|
|
@@ -47014,7 +47163,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47014
47163
|
init_react_native_safe_area_context();
|
|
47015
47164
|
init_src3();
|
|
47016
47165
|
init_esm7();
|
|
47017
|
-
|
|
47166
|
+
import_react190 = __toESM(require_react(), 1);
|
|
47018
47167
|
import_react_native203 = __toESM(require_react_native(), 1);
|
|
47019
47168
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
47020
47169
|
init_react_native_svg();
|
|
@@ -47029,7 +47178,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47029
47178
|
init_esm7();
|
|
47030
47179
|
import_react_native208 = __toESM(require_react_native(), 1);
|
|
47031
47180
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47032
|
-
|
|
47181
|
+
import_react191 = __toESM(require_react(), 1);
|
|
47033
47182
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47034
47183
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47035
47184
|
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47046,21 +47195,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47046
47195
|
init_react_native_safe_area_context();
|
|
47047
47196
|
init_src3();
|
|
47048
47197
|
init_esm7();
|
|
47049
|
-
|
|
47198
|
+
import_react192 = __toESM(require_react(), 1);
|
|
47050
47199
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
47051
47200
|
init_dist5();
|
|
47052
47201
|
init_react_native_webview();
|
|
47053
|
-
|
|
47202
|
+
import_react193 = __toESM(require_react(), 1);
|
|
47054
47203
|
import_react_native211 = __toESM(require_react_native(), 1);
|
|
47055
47204
|
init_src3();
|
|
47056
47205
|
init_esm7();
|
|
47057
|
-
|
|
47206
|
+
init_dist6();
|
|
47207
|
+
import_react194 = __toESM(require_react(), 1);
|
|
47058
47208
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47059
47209
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47060
47210
|
init_react_native_webview();
|
|
47061
|
-
import_react194 = __toESM(require_react(), 1);
|
|
47062
|
-
init_src3();
|
|
47063
47211
|
import_react195 = __toESM(require_react(), 1);
|
|
47212
|
+
init_src3();
|
|
47213
|
+
import_react196 = __toESM(require_react(), 1);
|
|
47064
47214
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47065
47215
|
import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
|
|
47066
47216
|
init_dist5();
|
|
@@ -47069,17 +47219,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47069
47219
|
init_dist5();
|
|
47070
47220
|
init_src3();
|
|
47071
47221
|
init_src3();
|
|
47072
|
-
import_react196 = __toESM(require_react(), 1);
|
|
47073
|
-
init_react_native_safe_area_context();
|
|
47074
47222
|
import_react197 = __toESM(require_react(), 1);
|
|
47075
|
-
|
|
47223
|
+
init_react_native_safe_area_context();
|
|
47076
47224
|
import_react198 = __toESM(require_react(), 1);
|
|
47225
|
+
init_src3();
|
|
47226
|
+
init_esm7();
|
|
47227
|
+
init_dist6();
|
|
47077
47228
|
import_react199 = __toESM(require_react(), 1);
|
|
47229
|
+
import_react200 = __toESM(require_react(), 1);
|
|
47078
47230
|
init_dist5();
|
|
47079
47231
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47080
47232
|
init_dist5();
|
|
47081
|
-
import_react200 = __toESM(require_react(), 1);
|
|
47082
47233
|
import_react201 = __toESM(require_react(), 1);
|
|
47234
|
+
import_react202 = __toESM(require_react(), 1);
|
|
47083
47235
|
init_dist5();
|
|
47084
47236
|
init_src3();
|
|
47085
47237
|
init_esm7();
|
|
@@ -47089,12 +47241,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47089
47241
|
init_dist5();
|
|
47090
47242
|
init_dist3();
|
|
47091
47243
|
init_dist3();
|
|
47092
|
-
import_react202 = __toESM(require_react(), 1);
|
|
47093
|
-
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47094
47244
|
import_react203 = __toESM(require_react(), 1);
|
|
47245
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47246
|
+
import_react204 = __toESM(require_react(), 1);
|
|
47095
47247
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47096
47248
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
47097
|
-
|
|
47249
|
+
import_react205 = __toESM(require_react(), 1);
|
|
47098
47250
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47099
47251
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
47100
47252
|
import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47649,8 +47801,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47649
47801
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
47650
47802
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47651
47803
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47804
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47805
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47652
47806
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47653
47807
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47808
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47809
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47654
47810
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47655
47811
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47656
47812
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -47699,8 +47855,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47699
47855
|
AppsInToss = {
|
|
47700
47856
|
registerApp
|
|
47701
47857
|
};
|
|
47702
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
47703
|
-
(0,
|
|
47858
|
+
GameWebView = /* @__PURE__ */ (0, import_react193.forwardRef)(function GameWebView2(props, ref) {
|
|
47859
|
+
(0, import_react193.useEffect)(function() {
|
|
47704
47860
|
if (import_react_native211.Platform.OS === "ios") {
|
|
47705
47861
|
setIosSwipeGestureEnabled({
|
|
47706
47862
|
isEnabled: false
|
|
@@ -47726,7 +47882,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47726
47882
|
]
|
|
47727
47883
|
});
|
|
47728
47884
|
});
|
|
47729
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
47885
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react195.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
47730
47886
|
var _ref = [
|
|
47731
47887
|
_03,
|
|
47732
47888
|
_1
|