@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
|
@@ -44694,6 +44694,38 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44694
44694
|
handler
|
|
44695
44695
|
]);
|
|
44696
44696
|
}
|
|
44697
|
+
function useCloseConfirm() {
|
|
44698
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
44699
|
+
var openConfirm = useDialog().openConfirm;
|
|
44700
|
+
return (0, import_react189.useCallback)(function(param) {
|
|
44701
|
+
var onEntered = param.onEntered;
|
|
44702
|
+
return _async_to_generator(function() {
|
|
44703
|
+
return __generator(this, function(_state) {
|
|
44704
|
+
switch (_state.label) {
|
|
44705
|
+
case 0:
|
|
44706
|
+
return [
|
|
44707
|
+
4,
|
|
44708
|
+
openConfirm({
|
|
44709
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
44710
|
+
leftButton: "\uB2EB\uAE30",
|
|
44711
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
44712
|
+
closeOnDimmerClick: true,
|
|
44713
|
+
onEntered
|
|
44714
|
+
})
|
|
44715
|
+
];
|
|
44716
|
+
case 1:
|
|
44717
|
+
return [
|
|
44718
|
+
2,
|
|
44719
|
+
_state.sent()
|
|
44720
|
+
];
|
|
44721
|
+
}
|
|
44722
|
+
});
|
|
44723
|
+
})();
|
|
44724
|
+
}, [
|
|
44725
|
+
brandDisplayName,
|
|
44726
|
+
openConfirm
|
|
44727
|
+
]);
|
|
44728
|
+
}
|
|
44697
44729
|
function createEvent(event) {
|
|
44698
44730
|
return {
|
|
44699
44731
|
name: event,
|
|
@@ -44747,8 +44779,30 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44747
44779
|
})
|
|
44748
44780
|
});
|
|
44749
44781
|
};
|
|
44782
|
+
var logClosePopupShow = function() {
|
|
44783
|
+
sendLog({
|
|
44784
|
+
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
44785
|
+
log_type: "popup",
|
|
44786
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
44787
|
+
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
44788
|
+
})
|
|
44789
|
+
});
|
|
44790
|
+
};
|
|
44791
|
+
var logClosePopupCtaClick = function(confirm) {
|
|
44792
|
+
sendLog({
|
|
44793
|
+
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
44794
|
+
log_type: "event",
|
|
44795
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
44796
|
+
close_yn: confirm ? "Y" : "N",
|
|
44797
|
+
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
44798
|
+
event_type: "click"
|
|
44799
|
+
})
|
|
44800
|
+
});
|
|
44801
|
+
};
|
|
44750
44802
|
return {
|
|
44751
44803
|
navBarImpression: logNavBarImpression,
|
|
44804
|
+
closePopupShow: logClosePopupShow,
|
|
44805
|
+
closePopupCtaClick: logClosePopupCtaClick,
|
|
44752
44806
|
closeButtonClick: logCloseButtonClick,
|
|
44753
44807
|
homeButtonClick: logHomeButtonClick
|
|
44754
44808
|
};
|
|
@@ -44757,7 +44811,40 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44757
44811
|
var backEventContext = useBackEventContext();
|
|
44758
44812
|
var logging = useNavigationBarLogging();
|
|
44759
44813
|
var navigation = useNavigation();
|
|
44814
|
+
var closeConfirm = useCloseConfirm();
|
|
44815
|
+
var global2 = getAppsInTossGlobals();
|
|
44760
44816
|
return (0, import_react188.useMemo)(function() {
|
|
44817
|
+
var close = function() {
|
|
44818
|
+
return _async_to_generator(function() {
|
|
44819
|
+
var hasConfirmed;
|
|
44820
|
+
return __generator(this, function(_state) {
|
|
44821
|
+
switch (_state.label) {
|
|
44822
|
+
case 0:
|
|
44823
|
+
if (global2.appType !== "game") {
|
|
44824
|
+
closeView();
|
|
44825
|
+
return [
|
|
44826
|
+
2
|
|
44827
|
+
];
|
|
44828
|
+
}
|
|
44829
|
+
return [
|
|
44830
|
+
4,
|
|
44831
|
+
closeConfirm({
|
|
44832
|
+
onEntered: logging.closePopupShow
|
|
44833
|
+
})
|
|
44834
|
+
];
|
|
44835
|
+
case 1:
|
|
44836
|
+
hasConfirmed = _state.sent();
|
|
44837
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
44838
|
+
if (hasConfirmed) {
|
|
44839
|
+
closeView();
|
|
44840
|
+
}
|
|
44841
|
+
return [
|
|
44842
|
+
2
|
|
44843
|
+
];
|
|
44844
|
+
}
|
|
44845
|
+
});
|
|
44846
|
+
})();
|
|
44847
|
+
};
|
|
44761
44848
|
return {
|
|
44762
44849
|
handleBack: function() {
|
|
44763
44850
|
if (backEventContext.hasBackEvent) {
|
|
@@ -44765,7 +44852,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44765
44852
|
} else if (navigation.canGoBack()) {
|
|
44766
44853
|
navigation.goBack();
|
|
44767
44854
|
} else {
|
|
44768
|
-
|
|
44855
|
+
close();
|
|
44769
44856
|
}
|
|
44770
44857
|
},
|
|
44771
44858
|
handleHomeButtonClick: function() {
|
|
@@ -44780,12 +44867,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44780
44867
|
},
|
|
44781
44868
|
handleCloseButtonClick: function() {
|
|
44782
44869
|
logging.closeButtonClick();
|
|
44783
|
-
|
|
44870
|
+
close();
|
|
44784
44871
|
}
|
|
44785
44872
|
};
|
|
44786
44873
|
}, [
|
|
44874
|
+
global2.appType,
|
|
44787
44875
|
backEventContext,
|
|
44788
44876
|
navigation,
|
|
44877
|
+
closeConfirm,
|
|
44789
44878
|
logging
|
|
44790
44879
|
]);
|
|
44791
44880
|
}
|
|
@@ -45012,7 +45101,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45012
45101
|
function useMoreButtonBottomSheet() {
|
|
45013
45102
|
var globals = getAppsInTossGlobals();
|
|
45014
45103
|
var adaptive = useAdaptive();
|
|
45015
|
-
var _useState4 = _sliced_to_array((0,
|
|
45104
|
+
var _useState4 = _sliced_to_array((0, import_react190.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
45016
45105
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45017
45106
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45018
45107
|
var overlay = useOverlay();
|
|
@@ -45021,7 +45110,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45021
45110
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
45022
45111
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
45023
45112
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
45024
|
-
(0,
|
|
45113
|
+
(0, import_react190.useEffect)(function() {
|
|
45025
45114
|
if (!isBottomSheetSupported) {
|
|
45026
45115
|
return;
|
|
45027
45116
|
}
|
|
@@ -45122,7 +45211,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45122
45211
|
function BottomSheetImpressionArea(param) {
|
|
45123
45212
|
var children = param.children;
|
|
45124
45213
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45125
|
-
(0,
|
|
45214
|
+
(0, import_react190.useEffect)(function() {
|
|
45126
45215
|
logging.show();
|
|
45127
45216
|
}, [
|
|
45128
45217
|
logging
|
|
@@ -45135,7 +45224,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45135
45224
|
var left = param.left, center = param.center, right = param.right;
|
|
45136
45225
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
45137
45226
|
var navigation = useNavigation();
|
|
45138
|
-
(0,
|
|
45227
|
+
(0, import_react191.useEffect)(function() {
|
|
45139
45228
|
var _ref, _ref1;
|
|
45140
45229
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
45141
45230
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
@@ -45382,9 +45471,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45382
45471
|
}
|
|
45383
45472
|
function NavigationBarImpressionArea(param) {
|
|
45384
45473
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
45385
|
-
var hasLogged = (0,
|
|
45474
|
+
var hasLogged = (0, import_react192.useRef)(false);
|
|
45386
45475
|
var logging = useNavigationBarLogging();
|
|
45387
|
-
(0,
|
|
45476
|
+
(0, import_react192.useEffect)(function() {
|
|
45388
45477
|
if (hasLogged.current === false) {
|
|
45389
45478
|
logging.navBarImpression({
|
|
45390
45479
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -45604,22 +45693,43 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45604
45693
|
function GameWebviewNavigationBar() {
|
|
45605
45694
|
var _ref;
|
|
45606
45695
|
var openConfirm = useDialog().openConfirm;
|
|
45696
|
+
var global2 = getAppsInTossGlobals();
|
|
45607
45697
|
var logging = useNavigationBarLogging();
|
|
45608
45698
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45609
45699
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45610
45700
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
45611
45701
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
45612
|
-
var handleGameWebviewClose = (0,
|
|
45702
|
+
var handleGameWebviewClose = (0, import_react195.useCallback)(function() {
|
|
45613
45703
|
return _async_to_generator(function() {
|
|
45704
|
+
var isConfirmed;
|
|
45614
45705
|
return __generator(this, function(_state) {
|
|
45615
|
-
|
|
45616
|
-
|
|
45617
|
-
|
|
45618
|
-
|
|
45619
|
-
|
|
45706
|
+
switch (_state.label) {
|
|
45707
|
+
case 0:
|
|
45708
|
+
logging.closeButtonClick();
|
|
45709
|
+
return [
|
|
45710
|
+
4,
|
|
45711
|
+
openConfirm({
|
|
45712
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45713
|
+
leftButton: "\uB2EB\uAE30",
|
|
45714
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45715
|
+
closeOnDimmerClick: true,
|
|
45716
|
+
onEntered: logging.closePopupShow
|
|
45717
|
+
})
|
|
45718
|
+
];
|
|
45719
|
+
case 1:
|
|
45720
|
+
isConfirmed = _state.sent();
|
|
45721
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
45722
|
+
if (isConfirmed) {
|
|
45723
|
+
closeView();
|
|
45724
|
+
}
|
|
45725
|
+
return [
|
|
45726
|
+
2
|
|
45727
|
+
];
|
|
45728
|
+
}
|
|
45620
45729
|
});
|
|
45621
45730
|
})();
|
|
45622
45731
|
}, [
|
|
45732
|
+
global2.brandDisplayName,
|
|
45623
45733
|
logging,
|
|
45624
45734
|
openConfirm
|
|
45625
45735
|
]);
|
|
@@ -45643,7 +45753,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45643
45753
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
45644
45754
|
var theme = (_ref2 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.theme) !== null && _ref2 !== void 0 ? _ref2 : "light";
|
|
45645
45755
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45646
|
-
var handleClose = (0,
|
|
45756
|
+
var handleClose = (0, import_react197.useCallback)(function() {
|
|
45647
45757
|
return _async_to_generator(function() {
|
|
45648
45758
|
return __generator(this, function(_state) {
|
|
45649
45759
|
logging.closeButtonClick();
|
|
@@ -46119,8 +46229,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46119
46229
|
}
|
|
46120
46230
|
function useBridgeHandler(param) {
|
|
46121
46231
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
46122
|
-
var ref = (0,
|
|
46123
|
-
var injectedJavaScript = (0,
|
|
46232
|
+
var ref = (0, import_react198.useRef)(null);
|
|
46233
|
+
var injectedJavaScript = (0, import_react198.useMemo)(function() {
|
|
46124
46234
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46125
46235
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
46126
46236
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -46129,7 +46239,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46129
46239
|
}, [
|
|
46130
46240
|
constantHandlerMap
|
|
46131
46241
|
]);
|
|
46132
|
-
(0,
|
|
46242
|
+
(0, import_react198.useEffect)(function() {
|
|
46133
46243
|
var _ref_current;
|
|
46134
46244
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
46135
46245
|
}, [
|
|
@@ -46148,7 +46258,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46148
46258
|
(_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 "));
|
|
46149
46259
|
};
|
|
46150
46260
|
};
|
|
46151
|
-
var $onMessage = (0,
|
|
46261
|
+
var $onMessage = (0, import_react198.useCallback)(function(e63) {
|
|
46152
46262
|
return _async_to_generator(function() {
|
|
46153
46263
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
46154
46264
|
return __generator(this, function(_state) {
|
|
@@ -46221,12 +46331,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46221
46331
|
}
|
|
46222
46332
|
function useSafeAreaInsetsEvent() {
|
|
46223
46333
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46224
|
-
(0,
|
|
46334
|
+
(0, import_react199.useEffect)(function() {
|
|
46225
46335
|
safeAreaInsetsChange.emit(insets);
|
|
46226
46336
|
}, [
|
|
46227
46337
|
insets
|
|
46228
46338
|
]);
|
|
46229
|
-
(0,
|
|
46339
|
+
(0, import_react199.useEffect)(function() {
|
|
46230
46340
|
return function() {
|
|
46231
46341
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
46232
46342
|
};
|
|
@@ -46276,8 +46386,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46276
46386
|
}
|
|
46277
46387
|
}
|
|
46278
46388
|
function useWebViewHistory() {
|
|
46279
|
-
var _useReducer = _sliced_to_array((0,
|
|
46280
|
-
var onNavigationStateChange = (0,
|
|
46389
|
+
var _useReducer = _sliced_to_array((0, import_react201.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46390
|
+
var onNavigationStateChange = (0, import_react201.useCallback)(function(param) {
|
|
46281
46391
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46282
46392
|
dispatch({
|
|
46283
46393
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46285,7 +46395,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46285
46395
|
canGoForward: canGoForward2
|
|
46286
46396
|
});
|
|
46287
46397
|
}, []);
|
|
46288
|
-
var _useMemo4 = (0,
|
|
46398
|
+
var _useMemo4 = (0, import_react201.useMemo)(function() {
|
|
46289
46399
|
var canBack = state.index > 0;
|
|
46290
46400
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46291
46401
|
return {
|
|
@@ -46306,64 +46416,100 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46306
46416
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
46307
46417
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
46308
46418
|
var logging = useNavigationBarLogging();
|
|
46309
|
-
var
|
|
46419
|
+
var openConfirm = useDialog().openConfirm;
|
|
46420
|
+
var global2 = getAppsInTossGlobals();
|
|
46421
|
+
var addEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
46310
46422
|
addWebBackEventListener(handler);
|
|
46311
46423
|
}, [
|
|
46312
46424
|
addWebBackEventListener
|
|
46313
46425
|
]);
|
|
46314
|
-
var removeEventListener = (0,
|
|
46426
|
+
var removeEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
46315
46427
|
removeWebBackEventListener(handler);
|
|
46316
46428
|
}, [
|
|
46317
46429
|
removeWebBackEventListener
|
|
46318
46430
|
]);
|
|
46319
|
-
var handleWebBack = (0,
|
|
46431
|
+
var handleWebBack = (0, import_react200.useCallback)(function() {
|
|
46320
46432
|
return _async_to_generator(function() {
|
|
46321
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
46433
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
46322
46434
|
return __generator(this, function(_state) {
|
|
46323
|
-
|
|
46324
|
-
|
|
46325
|
-
|
|
46326
|
-
|
|
46327
|
-
|
|
46328
|
-
|
|
46329
|
-
|
|
46330
|
-
|
|
46331
|
-
|
|
46332
|
-
|
|
46333
|
-
|
|
46334
|
-
|
|
46335
|
-
|
|
46336
|
-
|
|
46337
|
-
|
|
46338
|
-
|
|
46339
|
-
|
|
46340
|
-
|
|
46435
|
+
switch (_state.label) {
|
|
46436
|
+
case 0:
|
|
46437
|
+
if (hasWebBackEvent) {
|
|
46438
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
46439
|
+
try {
|
|
46440
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
46441
|
+
handler = _step.value;
|
|
46442
|
+
handler();
|
|
46443
|
+
}
|
|
46444
|
+
} catch (err) {
|
|
46445
|
+
_didIteratorError = true;
|
|
46446
|
+
_iteratorError = err;
|
|
46447
|
+
} finally {
|
|
46448
|
+
try {
|
|
46449
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
46450
|
+
_iterator.return();
|
|
46451
|
+
}
|
|
46452
|
+
} finally {
|
|
46453
|
+
if (_didIteratorError) {
|
|
46454
|
+
throw _iteratorError;
|
|
46455
|
+
}
|
|
46456
|
+
}
|
|
46341
46457
|
}
|
|
46458
|
+
return [
|
|
46459
|
+
2
|
|
46460
|
+
];
|
|
46342
46461
|
}
|
|
46343
|
-
|
|
46344
|
-
|
|
46345
|
-
|
|
46346
|
-
|
|
46347
|
-
|
|
46348
|
-
|
|
46349
|
-
|
|
46350
|
-
|
|
46351
|
-
|
|
46352
|
-
|
|
46462
|
+
if (!hasHistory) return [
|
|
46463
|
+
3,
|
|
46464
|
+
1
|
|
46465
|
+
];
|
|
46466
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
46467
|
+
return [
|
|
46468
|
+
3,
|
|
46469
|
+
3
|
|
46470
|
+
];
|
|
46471
|
+
case 1:
|
|
46472
|
+
if (global2.webViewType !== "game") {
|
|
46473
|
+
closeView();
|
|
46474
|
+
return [
|
|
46475
|
+
2
|
|
46476
|
+
];
|
|
46477
|
+
}
|
|
46478
|
+
return [
|
|
46479
|
+
4,
|
|
46480
|
+
openConfirm({
|
|
46481
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46482
|
+
leftButton: "\uB2EB\uAE30",
|
|
46483
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46484
|
+
closeOnDimmerClick: true,
|
|
46485
|
+
onEntered: logging.closePopupShow
|
|
46486
|
+
})
|
|
46487
|
+
];
|
|
46488
|
+
case 2:
|
|
46489
|
+
isConfirmed = _state.sent();
|
|
46490
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
46491
|
+
if (isConfirmed) {
|
|
46492
|
+
closeView();
|
|
46493
|
+
}
|
|
46494
|
+
_state.label = 3;
|
|
46495
|
+
case 3:
|
|
46496
|
+
return [
|
|
46497
|
+
2
|
|
46498
|
+
];
|
|
46353
46499
|
}
|
|
46354
|
-
return [
|
|
46355
|
-
2
|
|
46356
|
-
];
|
|
46357
46500
|
});
|
|
46358
46501
|
})();
|
|
46359
46502
|
}, [
|
|
46503
|
+
global2.webViewType,
|
|
46504
|
+
global2.brandDisplayName,
|
|
46360
46505
|
hasHistory,
|
|
46361
46506
|
hasWebBackEvent,
|
|
46362
46507
|
webBackHandlersRef,
|
|
46363
46508
|
logging,
|
|
46509
|
+
openConfirm,
|
|
46364
46510
|
webViewRef
|
|
46365
46511
|
]);
|
|
46366
|
-
var handleWebHome = (0,
|
|
46512
|
+
var handleWebHome = (0, import_react200.useCallback)(function() {
|
|
46367
46513
|
var _webViewRef_current;
|
|
46368
46514
|
logging.homeButtonClick();
|
|
46369
46515
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -46378,7 +46524,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46378
46524
|
webViewInitialURL,
|
|
46379
46525
|
webViewRef
|
|
46380
46526
|
]);
|
|
46381
|
-
return (0,
|
|
46527
|
+
return (0, import_react200.useMemo)(function() {
|
|
46382
46528
|
return {
|
|
46383
46529
|
addEventListener,
|
|
46384
46530
|
removeEventListener,
|
|
@@ -46683,8 +46829,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46683
46829
|
if (!TYPES.includes(type)) {
|
|
46684
46830
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
46685
46831
|
}
|
|
46686
|
-
var webViewRef = (0,
|
|
46687
|
-
var url = (0,
|
|
46832
|
+
var webViewRef = (0, import_react193.useRef)(null);
|
|
46833
|
+
var url = (0, import_react193.useMemo)(function() {
|
|
46688
46834
|
return getWebViewURL(local);
|
|
46689
46835
|
}, [
|
|
46690
46836
|
local
|
|
@@ -46694,7 +46840,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46694
46840
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46695
46841
|
var navigationBarContext = useNavigationBarContext();
|
|
46696
46842
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
46697
|
-
var _useState6 = _sliced_to_array((0,
|
|
46843
|
+
var _useState6 = _sliced_to_array((0, import_react193.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
46698
46844
|
var handler = useBridgeHandler({
|
|
46699
46845
|
onMessage,
|
|
46700
46846
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -46832,7 +46978,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46832
46978
|
}
|
|
46833
46979
|
})
|
|
46834
46980
|
});
|
|
46835
|
-
var headerPropForExternalWebView = (0,
|
|
46981
|
+
var headerPropForExternalWebView = (0, import_react193.useMemo)(function() {
|
|
46836
46982
|
var _ref;
|
|
46837
46983
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46838
46984
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -46857,7 +47003,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46857
47003
|
colorPreference: "light"
|
|
46858
47004
|
});
|
|
46859
47005
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
46860
|
-
(0,
|
|
47006
|
+
(0, import_react193.useEffect)(function() {
|
|
46861
47007
|
var callback = function() {
|
|
46862
47008
|
webBackHandler.handleWebBack();
|
|
46863
47009
|
return true;
|
|
@@ -46933,7 +47079,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46933
47079
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
46934
47080
|
}));
|
|
46935
47081
|
}
|
|
46936
|
-
var import_react_native182, import_react176, import_react177, import_jsx_runtime212, import_react178, import_jsx_runtime213, import_react179, import_react_native186, import_react180, import_react_native188, import_react181, import_react182, import_react_native191, import_react183, import_react184, import_react185, import_react186, import_jsx_runtime214, import_jsx_runtime215, import_react187, import_react_native194, import_react188, import_react189, import_react_native199, import_jsx_runtime216, import_jsx_runtime217, import_jsx_runtime218, import_jsx_runtime219, import_jsx_runtime220,
|
|
47082
|
+
var import_react_native182, import_react176, import_react177, import_jsx_runtime212, import_react178, import_jsx_runtime213, import_react179, import_react_native186, import_react180, import_react_native188, import_react181, import_react182, import_react_native191, import_react183, import_react184, import_react185, import_react186, import_jsx_runtime214, import_jsx_runtime215, import_react187, import_react_native194, import_react188, import_react189, import_react190, import_react_native199, import_jsx_runtime216, import_jsx_runtime217, import_jsx_runtime218, import_jsx_runtime219, import_jsx_runtime220, import_react191, 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_react192, import_jsx_runtime226, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_jsx_runtime230, import_react193, import_react_native210, import_react194, import_react_native211, import_react195, import_jsx_runtime231, import_jsx_runtime232, import_react196, import_react197, import_jsx_runtime233, import_jsx_runtime234, import_react198, import_react199, import_react200, import_react201, import_react_native218, import_react202, import_react203, import_jsx_runtime235, import_react204, import_react_native221, import_react205, import_react_native222, import_jsx_runtime236, import_react206, 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;
|
|
46937
47083
|
var init_dist8 = __esm({
|
|
46938
47084
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
46939
47085
|
"use strict";
|
|
@@ -46999,12 +47145,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46999
47145
|
import_react_native194 = __toESM(require_react_native(), 1);
|
|
47000
47146
|
init_src3();
|
|
47001
47147
|
import_react188 = __toESM(require_react(), 1);
|
|
47148
|
+
init_esm7();
|
|
47149
|
+
init_dist6();
|
|
47150
|
+
import_react189 = __toESM(require_react(), 1);
|
|
47002
47151
|
init_src3();
|
|
47003
47152
|
init_dist5();
|
|
47004
47153
|
init_src3();
|
|
47005
47154
|
init_esm7();
|
|
47006
47155
|
init_private2();
|
|
47007
|
-
|
|
47156
|
+
import_react190 = __toESM(require_react(), 1);
|
|
47008
47157
|
init_dist5();
|
|
47009
47158
|
init_src3();
|
|
47010
47159
|
init_esm7();
|
|
@@ -47023,7 +47172,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47023
47172
|
init_react_native_safe_area_context();
|
|
47024
47173
|
init_src3();
|
|
47025
47174
|
init_esm7();
|
|
47026
|
-
|
|
47175
|
+
import_react191 = __toESM(require_react(), 1);
|
|
47027
47176
|
import_react_native203 = __toESM(require_react_native(), 1);
|
|
47028
47177
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
47029
47178
|
init_react_native_svg();
|
|
@@ -47038,7 +47187,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47038
47187
|
init_esm7();
|
|
47039
47188
|
import_react_native208 = __toESM(require_react_native(), 1);
|
|
47040
47189
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47041
|
-
|
|
47190
|
+
import_react192 = __toESM(require_react(), 1);
|
|
47042
47191
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47043
47192
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47044
47193
|
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47055,21 +47204,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47055
47204
|
init_react_native_safe_area_context();
|
|
47056
47205
|
init_src3();
|
|
47057
47206
|
init_esm7();
|
|
47058
|
-
|
|
47207
|
+
import_react193 = __toESM(require_react(), 1);
|
|
47059
47208
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
47060
47209
|
init_dist5();
|
|
47061
47210
|
init_react_native_webview();
|
|
47062
|
-
|
|
47211
|
+
import_react194 = __toESM(require_react(), 1);
|
|
47063
47212
|
import_react_native211 = __toESM(require_react_native(), 1);
|
|
47064
47213
|
init_src3();
|
|
47065
47214
|
init_esm7();
|
|
47066
|
-
|
|
47215
|
+
init_dist6();
|
|
47216
|
+
import_react195 = __toESM(require_react(), 1);
|
|
47067
47217
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47068
47218
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47069
47219
|
init_react_native_webview();
|
|
47070
|
-
import_react195 = __toESM(require_react(), 1);
|
|
47071
|
-
init_src3();
|
|
47072
47220
|
import_react196 = __toESM(require_react(), 1);
|
|
47221
|
+
init_src3();
|
|
47222
|
+
import_react197 = __toESM(require_react(), 1);
|
|
47073
47223
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47074
47224
|
import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
|
|
47075
47225
|
init_dist5();
|
|
@@ -47078,17 +47228,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47078
47228
|
init_dist5();
|
|
47079
47229
|
init_src3();
|
|
47080
47230
|
init_src3();
|
|
47081
|
-
import_react197 = __toESM(require_react(), 1);
|
|
47082
|
-
init_react_native_safe_area_context();
|
|
47083
47231
|
import_react198 = __toESM(require_react(), 1);
|
|
47084
|
-
|
|
47232
|
+
init_react_native_safe_area_context();
|
|
47085
47233
|
import_react199 = __toESM(require_react(), 1);
|
|
47234
|
+
init_src3();
|
|
47235
|
+
init_esm7();
|
|
47236
|
+
init_dist6();
|
|
47086
47237
|
import_react200 = __toESM(require_react(), 1);
|
|
47238
|
+
import_react201 = __toESM(require_react(), 1);
|
|
47087
47239
|
init_dist5();
|
|
47088
47240
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47089
47241
|
init_dist5();
|
|
47090
|
-
import_react201 = __toESM(require_react(), 1);
|
|
47091
47242
|
import_react202 = __toESM(require_react(), 1);
|
|
47243
|
+
import_react203 = __toESM(require_react(), 1);
|
|
47092
47244
|
init_dist5();
|
|
47093
47245
|
init_src3();
|
|
47094
47246
|
init_esm7();
|
|
@@ -47098,12 +47250,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47098
47250
|
init_dist5();
|
|
47099
47251
|
init_dist3();
|
|
47100
47252
|
init_dist3();
|
|
47101
|
-
import_react203 = __toESM(require_react(), 1);
|
|
47102
|
-
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47103
47253
|
import_react204 = __toESM(require_react(), 1);
|
|
47254
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47255
|
+
import_react205 = __toESM(require_react(), 1);
|
|
47104
47256
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47105
47257
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
47106
|
-
|
|
47258
|
+
import_react206 = __toESM(require_react(), 1);
|
|
47107
47259
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47108
47260
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
47109
47261
|
import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47658,8 +47810,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47658
47810
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
47659
47811
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47660
47812
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47813
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47814
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47661
47815
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47662
47816
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47817
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47818
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47663
47819
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47664
47820
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47665
47821
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -47708,8 +47864,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47708
47864
|
AppsInToss = {
|
|
47709
47865
|
registerApp
|
|
47710
47866
|
};
|
|
47711
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
47712
|
-
(0,
|
|
47867
|
+
GameWebView = /* @__PURE__ */ (0, import_react194.forwardRef)(function GameWebView2(props, ref) {
|
|
47868
|
+
(0, import_react194.useEffect)(function() {
|
|
47713
47869
|
if (import_react_native211.Platform.OS === "ios") {
|
|
47714
47870
|
setIosSwipeGestureEnabled({
|
|
47715
47871
|
isEnabled: false
|
|
@@ -47735,7 +47891,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47735
47891
|
]
|
|
47736
47892
|
});
|
|
47737
47893
|
});
|
|
47738
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
47894
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
47739
47895
|
var _ref = [
|
|
47740
47896
|
_03,
|
|
47741
47897
|
_1
|