@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
|
@@ -45668,6 +45668,38 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45668
45668
|
handler
|
|
45669
45669
|
]);
|
|
45670
45670
|
}
|
|
45671
|
+
function useCloseConfirm() {
|
|
45672
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45673
|
+
var openConfirm = useDialog().openConfirm;
|
|
45674
|
+
return (0, import_react188.useCallback)(function(param) {
|
|
45675
|
+
var onEntered = param.onEntered;
|
|
45676
|
+
return _async_to_generator(function() {
|
|
45677
|
+
return __generator(this, function(_state) {
|
|
45678
|
+
switch (_state.label) {
|
|
45679
|
+
case 0:
|
|
45680
|
+
return [
|
|
45681
|
+
4,
|
|
45682
|
+
openConfirm({
|
|
45683
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45684
|
+
leftButton: "\uB2EB\uAE30",
|
|
45685
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45686
|
+
closeOnDimmerClick: true,
|
|
45687
|
+
onEntered
|
|
45688
|
+
})
|
|
45689
|
+
];
|
|
45690
|
+
case 1:
|
|
45691
|
+
return [
|
|
45692
|
+
2,
|
|
45693
|
+
_state.sent()
|
|
45694
|
+
];
|
|
45695
|
+
}
|
|
45696
|
+
});
|
|
45697
|
+
})();
|
|
45698
|
+
}, [
|
|
45699
|
+
brandDisplayName,
|
|
45700
|
+
openConfirm
|
|
45701
|
+
]);
|
|
45702
|
+
}
|
|
45671
45703
|
function createEvent(event) {
|
|
45672
45704
|
return {
|
|
45673
45705
|
name: event,
|
|
@@ -45721,8 +45753,30 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45721
45753
|
})
|
|
45722
45754
|
});
|
|
45723
45755
|
};
|
|
45756
|
+
var logClosePopupShow = function() {
|
|
45757
|
+
sendLog({
|
|
45758
|
+
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
45759
|
+
log_type: "popup",
|
|
45760
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45761
|
+
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
45762
|
+
})
|
|
45763
|
+
});
|
|
45764
|
+
};
|
|
45765
|
+
var logClosePopupCtaClick = function(confirm) {
|
|
45766
|
+
sendLog({
|
|
45767
|
+
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
45768
|
+
log_type: "event",
|
|
45769
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45770
|
+
close_yn: confirm ? "Y" : "N",
|
|
45771
|
+
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
45772
|
+
event_type: "click"
|
|
45773
|
+
})
|
|
45774
|
+
});
|
|
45775
|
+
};
|
|
45724
45776
|
return {
|
|
45725
45777
|
navBarImpression: logNavBarImpression,
|
|
45778
|
+
closePopupShow: logClosePopupShow,
|
|
45779
|
+
closePopupCtaClick: logClosePopupCtaClick,
|
|
45726
45780
|
closeButtonClick: logCloseButtonClick,
|
|
45727
45781
|
homeButtonClick: logHomeButtonClick
|
|
45728
45782
|
};
|
|
@@ -45731,7 +45785,40 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45731
45785
|
var backEventContext = useBackEventContext();
|
|
45732
45786
|
var logging = useNavigationBarLogging();
|
|
45733
45787
|
var navigation = useNavigation();
|
|
45788
|
+
var closeConfirm = useCloseConfirm();
|
|
45789
|
+
var global2 = getAppsInTossGlobals();
|
|
45734
45790
|
return (0, import_react187.useMemo)(function() {
|
|
45791
|
+
var close = function() {
|
|
45792
|
+
return _async_to_generator(function() {
|
|
45793
|
+
var hasConfirmed;
|
|
45794
|
+
return __generator(this, function(_state) {
|
|
45795
|
+
switch (_state.label) {
|
|
45796
|
+
case 0:
|
|
45797
|
+
if (global2.appType !== "game") {
|
|
45798
|
+
closeView();
|
|
45799
|
+
return [
|
|
45800
|
+
2
|
|
45801
|
+
];
|
|
45802
|
+
}
|
|
45803
|
+
return [
|
|
45804
|
+
4,
|
|
45805
|
+
closeConfirm({
|
|
45806
|
+
onEntered: logging.closePopupShow
|
|
45807
|
+
})
|
|
45808
|
+
];
|
|
45809
|
+
case 1:
|
|
45810
|
+
hasConfirmed = _state.sent();
|
|
45811
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
45812
|
+
if (hasConfirmed) {
|
|
45813
|
+
closeView();
|
|
45814
|
+
}
|
|
45815
|
+
return [
|
|
45816
|
+
2
|
|
45817
|
+
];
|
|
45818
|
+
}
|
|
45819
|
+
});
|
|
45820
|
+
})();
|
|
45821
|
+
};
|
|
45735
45822
|
return {
|
|
45736
45823
|
handleBack: function() {
|
|
45737
45824
|
if (backEventContext.hasBackEvent) {
|
|
@@ -45739,7 +45826,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45739
45826
|
} else if (navigation.canGoBack()) {
|
|
45740
45827
|
navigation.goBack();
|
|
45741
45828
|
} else {
|
|
45742
|
-
|
|
45829
|
+
close();
|
|
45743
45830
|
}
|
|
45744
45831
|
},
|
|
45745
45832
|
handleHomeButtonClick: function() {
|
|
@@ -45754,12 +45841,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45754
45841
|
},
|
|
45755
45842
|
handleCloseButtonClick: function() {
|
|
45756
45843
|
logging.closeButtonClick();
|
|
45757
|
-
|
|
45844
|
+
close();
|
|
45758
45845
|
}
|
|
45759
45846
|
};
|
|
45760
45847
|
}, [
|
|
45848
|
+
global2.appType,
|
|
45761
45849
|
backEventContext,
|
|
45762
45850
|
navigation,
|
|
45851
|
+
closeConfirm,
|
|
45763
45852
|
logging
|
|
45764
45853
|
]);
|
|
45765
45854
|
}
|
|
@@ -45986,7 +46075,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45986
46075
|
function useMoreButtonBottomSheet() {
|
|
45987
46076
|
var globals = getAppsInTossGlobals();
|
|
45988
46077
|
var adaptive = useAdaptive();
|
|
45989
|
-
var _useState4 = _sliced_to_array((0,
|
|
46078
|
+
var _useState4 = _sliced_to_array((0, import_react189.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
45990
46079
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45991
46080
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45992
46081
|
var overlay = useOverlay();
|
|
@@ -45995,7 +46084,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45995
46084
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
45996
46085
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
45997
46086
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
45998
|
-
(0,
|
|
46087
|
+
(0, import_react189.useEffect)(function() {
|
|
45999
46088
|
if (!isBottomSheetSupported) {
|
|
46000
46089
|
return;
|
|
46001
46090
|
}
|
|
@@ -46096,7 +46185,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46096
46185
|
function BottomSheetImpressionArea(param) {
|
|
46097
46186
|
var children = param.children;
|
|
46098
46187
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46099
|
-
(0,
|
|
46188
|
+
(0, import_react189.useEffect)(function() {
|
|
46100
46189
|
logging.show();
|
|
46101
46190
|
}, [
|
|
46102
46191
|
logging
|
|
@@ -46109,7 +46198,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46109
46198
|
var left = param.left, center = param.center, right = param.right;
|
|
46110
46199
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46111
46200
|
var navigation = useNavigation();
|
|
46112
|
-
(0,
|
|
46201
|
+
(0, import_react190.useEffect)(function() {
|
|
46113
46202
|
var _ref, _ref1;
|
|
46114
46203
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
46115
46204
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
@@ -46356,9 +46445,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46356
46445
|
}
|
|
46357
46446
|
function NavigationBarImpressionArea(param) {
|
|
46358
46447
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46359
|
-
var hasLogged = (0,
|
|
46448
|
+
var hasLogged = (0, import_react191.useRef)(false);
|
|
46360
46449
|
var logging = useNavigationBarLogging();
|
|
46361
|
-
(0,
|
|
46450
|
+
(0, import_react191.useEffect)(function() {
|
|
46362
46451
|
if (hasLogged.current === false) {
|
|
46363
46452
|
logging.navBarImpression({
|
|
46364
46453
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -46578,22 +46667,43 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46578
46667
|
function GameWebviewNavigationBar() {
|
|
46579
46668
|
var _ref;
|
|
46580
46669
|
var openConfirm = useDialog().openConfirm;
|
|
46670
|
+
var global2 = getAppsInTossGlobals();
|
|
46581
46671
|
var logging = useNavigationBarLogging();
|
|
46582
46672
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46583
46673
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46584
46674
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
46585
46675
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
46586
|
-
var handleGameWebviewClose = (0,
|
|
46676
|
+
var handleGameWebviewClose = (0, import_react194.useCallback)(function() {
|
|
46587
46677
|
return _async_to_generator(function() {
|
|
46678
|
+
var isConfirmed;
|
|
46588
46679
|
return __generator(this, function(_state) {
|
|
46589
|
-
|
|
46590
|
-
|
|
46591
|
-
|
|
46592
|
-
|
|
46593
|
-
|
|
46680
|
+
switch (_state.label) {
|
|
46681
|
+
case 0:
|
|
46682
|
+
logging.closeButtonClick();
|
|
46683
|
+
return [
|
|
46684
|
+
4,
|
|
46685
|
+
openConfirm({
|
|
46686
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46687
|
+
leftButton: "\uB2EB\uAE30",
|
|
46688
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46689
|
+
closeOnDimmerClick: true,
|
|
46690
|
+
onEntered: logging.closePopupShow
|
|
46691
|
+
})
|
|
46692
|
+
];
|
|
46693
|
+
case 1:
|
|
46694
|
+
isConfirmed = _state.sent();
|
|
46695
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
46696
|
+
if (isConfirmed) {
|
|
46697
|
+
closeView();
|
|
46698
|
+
}
|
|
46699
|
+
return [
|
|
46700
|
+
2
|
|
46701
|
+
];
|
|
46702
|
+
}
|
|
46594
46703
|
});
|
|
46595
46704
|
})();
|
|
46596
46705
|
}, [
|
|
46706
|
+
global2.brandDisplayName,
|
|
46597
46707
|
logging,
|
|
46598
46708
|
openConfirm
|
|
46599
46709
|
]);
|
|
@@ -46617,7 +46727,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46617
46727
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
46618
46728
|
var theme = (_ref2 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.theme) !== null && _ref2 !== void 0 ? _ref2 : "light";
|
|
46619
46729
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46620
|
-
var handleClose = (0,
|
|
46730
|
+
var handleClose = (0, import_react196.useCallback)(function() {
|
|
46621
46731
|
return _async_to_generator(function() {
|
|
46622
46732
|
return __generator(this, function(_state) {
|
|
46623
46733
|
logging.closeButtonClick();
|
|
@@ -47093,8 +47203,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47093
47203
|
}
|
|
47094
47204
|
function useBridgeHandler(param) {
|
|
47095
47205
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
47096
|
-
var ref = (0,
|
|
47097
|
-
var injectedJavaScript = (0,
|
|
47206
|
+
var ref = (0, import_react197.useRef)(null);
|
|
47207
|
+
var injectedJavaScript = (0, import_react197.useMemo)(function() {
|
|
47098
47208
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
47099
47209
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
47100
47210
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -47103,7 +47213,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47103
47213
|
}, [
|
|
47104
47214
|
constantHandlerMap
|
|
47105
47215
|
]);
|
|
47106
|
-
(0,
|
|
47216
|
+
(0, import_react197.useEffect)(function() {
|
|
47107
47217
|
var _ref_current;
|
|
47108
47218
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
47109
47219
|
}, [
|
|
@@ -47122,7 +47232,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47122
47232
|
(_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 "));
|
|
47123
47233
|
};
|
|
47124
47234
|
};
|
|
47125
|
-
var $onMessage = (0,
|
|
47235
|
+
var $onMessage = (0, import_react197.useCallback)(function(e63) {
|
|
47126
47236
|
return _async_to_generator(function() {
|
|
47127
47237
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
47128
47238
|
return __generator(this, function(_state) {
|
|
@@ -47195,12 +47305,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47195
47305
|
}
|
|
47196
47306
|
function useSafeAreaInsetsEvent() {
|
|
47197
47307
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47198
|
-
(0,
|
|
47308
|
+
(0, import_react198.useEffect)(function() {
|
|
47199
47309
|
safeAreaInsetsChange.emit(insets);
|
|
47200
47310
|
}, [
|
|
47201
47311
|
insets
|
|
47202
47312
|
]);
|
|
47203
|
-
(0,
|
|
47313
|
+
(0, import_react198.useEffect)(function() {
|
|
47204
47314
|
return function() {
|
|
47205
47315
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
47206
47316
|
};
|
|
@@ -47250,8 +47360,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47250
47360
|
}
|
|
47251
47361
|
}
|
|
47252
47362
|
function useWebViewHistory() {
|
|
47253
|
-
var _useReducer = _sliced_to_array((0,
|
|
47254
|
-
var onNavigationStateChange = (0,
|
|
47363
|
+
var _useReducer = _sliced_to_array((0, import_react200.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
47364
|
+
var onNavigationStateChange = (0, import_react200.useCallback)(function(param) {
|
|
47255
47365
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
47256
47366
|
dispatch({
|
|
47257
47367
|
type: "NAVIGATION_CHANGE",
|
|
@@ -47259,7 +47369,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47259
47369
|
canGoForward: canGoForward2
|
|
47260
47370
|
});
|
|
47261
47371
|
}, []);
|
|
47262
|
-
var _useMemo4 = (0,
|
|
47372
|
+
var _useMemo4 = (0, import_react200.useMemo)(function() {
|
|
47263
47373
|
var canBack = state.index > 0;
|
|
47264
47374
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
47265
47375
|
return {
|
|
@@ -47280,64 +47390,100 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47280
47390
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
47281
47391
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
47282
47392
|
var logging = useNavigationBarLogging();
|
|
47283
|
-
var
|
|
47393
|
+
var openConfirm = useDialog().openConfirm;
|
|
47394
|
+
var global2 = getAppsInTossGlobals();
|
|
47395
|
+
var addEventListener = (0, import_react199.useCallback)(function(handler) {
|
|
47284
47396
|
addWebBackEventListener(handler);
|
|
47285
47397
|
}, [
|
|
47286
47398
|
addWebBackEventListener
|
|
47287
47399
|
]);
|
|
47288
|
-
var removeEventListener = (0,
|
|
47400
|
+
var removeEventListener = (0, import_react199.useCallback)(function(handler) {
|
|
47289
47401
|
removeWebBackEventListener(handler);
|
|
47290
47402
|
}, [
|
|
47291
47403
|
removeWebBackEventListener
|
|
47292
47404
|
]);
|
|
47293
|
-
var handleWebBack = (0,
|
|
47405
|
+
var handleWebBack = (0, import_react199.useCallback)(function() {
|
|
47294
47406
|
return _async_to_generator(function() {
|
|
47295
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
47407
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
47296
47408
|
return __generator(this, function(_state) {
|
|
47297
|
-
|
|
47298
|
-
|
|
47299
|
-
|
|
47300
|
-
|
|
47301
|
-
|
|
47302
|
-
|
|
47303
|
-
|
|
47304
|
-
|
|
47305
|
-
|
|
47306
|
-
|
|
47307
|
-
|
|
47308
|
-
|
|
47309
|
-
|
|
47310
|
-
|
|
47311
|
-
|
|
47312
|
-
|
|
47313
|
-
|
|
47314
|
-
|
|
47409
|
+
switch (_state.label) {
|
|
47410
|
+
case 0:
|
|
47411
|
+
if (hasWebBackEvent) {
|
|
47412
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47413
|
+
try {
|
|
47414
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
47415
|
+
handler = _step.value;
|
|
47416
|
+
handler();
|
|
47417
|
+
}
|
|
47418
|
+
} catch (err) {
|
|
47419
|
+
_didIteratorError = true;
|
|
47420
|
+
_iteratorError = err;
|
|
47421
|
+
} finally {
|
|
47422
|
+
try {
|
|
47423
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47424
|
+
_iterator.return();
|
|
47425
|
+
}
|
|
47426
|
+
} finally {
|
|
47427
|
+
if (_didIteratorError) {
|
|
47428
|
+
throw _iteratorError;
|
|
47429
|
+
}
|
|
47430
|
+
}
|
|
47315
47431
|
}
|
|
47432
|
+
return [
|
|
47433
|
+
2
|
|
47434
|
+
];
|
|
47316
47435
|
}
|
|
47317
|
-
|
|
47318
|
-
|
|
47319
|
-
|
|
47320
|
-
|
|
47321
|
-
|
|
47322
|
-
|
|
47323
|
-
|
|
47324
|
-
|
|
47325
|
-
|
|
47326
|
-
|
|
47436
|
+
if (!hasHistory) return [
|
|
47437
|
+
3,
|
|
47438
|
+
1
|
|
47439
|
+
];
|
|
47440
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
47441
|
+
return [
|
|
47442
|
+
3,
|
|
47443
|
+
3
|
|
47444
|
+
];
|
|
47445
|
+
case 1:
|
|
47446
|
+
if (global2.webViewType !== "game") {
|
|
47447
|
+
closeView();
|
|
47448
|
+
return [
|
|
47449
|
+
2
|
|
47450
|
+
];
|
|
47451
|
+
}
|
|
47452
|
+
return [
|
|
47453
|
+
4,
|
|
47454
|
+
openConfirm({
|
|
47455
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
47456
|
+
leftButton: "\uB2EB\uAE30",
|
|
47457
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
47458
|
+
closeOnDimmerClick: true,
|
|
47459
|
+
onEntered: logging.closePopupShow
|
|
47460
|
+
})
|
|
47461
|
+
];
|
|
47462
|
+
case 2:
|
|
47463
|
+
isConfirmed = _state.sent();
|
|
47464
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
47465
|
+
if (isConfirmed) {
|
|
47466
|
+
closeView();
|
|
47467
|
+
}
|
|
47468
|
+
_state.label = 3;
|
|
47469
|
+
case 3:
|
|
47470
|
+
return [
|
|
47471
|
+
2
|
|
47472
|
+
];
|
|
47327
47473
|
}
|
|
47328
|
-
return [
|
|
47329
|
-
2
|
|
47330
|
-
];
|
|
47331
47474
|
});
|
|
47332
47475
|
})();
|
|
47333
47476
|
}, [
|
|
47477
|
+
global2.webViewType,
|
|
47478
|
+
global2.brandDisplayName,
|
|
47334
47479
|
hasHistory,
|
|
47335
47480
|
hasWebBackEvent,
|
|
47336
47481
|
webBackHandlersRef,
|
|
47337
47482
|
logging,
|
|
47483
|
+
openConfirm,
|
|
47338
47484
|
webViewRef
|
|
47339
47485
|
]);
|
|
47340
|
-
var handleWebHome = (0,
|
|
47486
|
+
var handleWebHome = (0, import_react199.useCallback)(function() {
|
|
47341
47487
|
var _webViewRef_current;
|
|
47342
47488
|
logging.homeButtonClick();
|
|
47343
47489
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -47352,7 +47498,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47352
47498
|
webViewInitialURL,
|
|
47353
47499
|
webViewRef
|
|
47354
47500
|
]);
|
|
47355
|
-
return (0,
|
|
47501
|
+
return (0, import_react199.useMemo)(function() {
|
|
47356
47502
|
return {
|
|
47357
47503
|
addEventListener,
|
|
47358
47504
|
removeEventListener,
|
|
@@ -47657,8 +47803,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47657
47803
|
if (!TYPES.includes(type)) {
|
|
47658
47804
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
47659
47805
|
}
|
|
47660
|
-
var webViewRef = (0,
|
|
47661
|
-
var url = (0,
|
|
47806
|
+
var webViewRef = (0, import_react192.useRef)(null);
|
|
47807
|
+
var url = (0, import_react192.useMemo)(function() {
|
|
47662
47808
|
return getWebViewURL(local);
|
|
47663
47809
|
}, [
|
|
47664
47810
|
local
|
|
@@ -47668,7 +47814,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47668
47814
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47669
47815
|
var navigationBarContext = useNavigationBarContext();
|
|
47670
47816
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
47671
|
-
var _useState6 = _sliced_to_array((0,
|
|
47817
|
+
var _useState6 = _sliced_to_array((0, import_react192.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
47672
47818
|
var handler = useBridgeHandler({
|
|
47673
47819
|
onMessage,
|
|
47674
47820
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -47806,7 +47952,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47806
47952
|
}
|
|
47807
47953
|
})
|
|
47808
47954
|
});
|
|
47809
|
-
var headerPropForExternalWebView = (0,
|
|
47955
|
+
var headerPropForExternalWebView = (0, import_react192.useMemo)(function() {
|
|
47810
47956
|
var _ref;
|
|
47811
47957
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
47812
47958
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -47831,7 +47977,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47831
47977
|
colorPreference: "light"
|
|
47832
47978
|
});
|
|
47833
47979
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
47834
|
-
(0,
|
|
47980
|
+
(0, import_react192.useEffect)(function() {
|
|
47835
47981
|
var callback = function() {
|
|
47836
47982
|
webBackHandler.handleWebBack();
|
|
47837
47983
|
return true;
|
|
@@ -47907,7 +48053,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47907
48053
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47908
48054
|
}));
|
|
47909
48055
|
}
|
|
47910
|
-
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,
|
|
48056
|
+
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;
|
|
47911
48057
|
var init_dist8 = __esm({
|
|
47912
48058
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47913
48059
|
"use strict";
|
|
@@ -47973,12 +48119,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47973
48119
|
import_react_native194 = __toESM(require_react_native(), 1);
|
|
47974
48120
|
init_src3();
|
|
47975
48121
|
import_react187 = __toESM(require_react(), 1);
|
|
48122
|
+
init_esm7();
|
|
48123
|
+
init_dist6();
|
|
48124
|
+
import_react188 = __toESM(require_react(), 1);
|
|
47976
48125
|
init_src3();
|
|
47977
48126
|
init_dist5();
|
|
47978
48127
|
init_src3();
|
|
47979
48128
|
init_esm7();
|
|
47980
48129
|
init_private2();
|
|
47981
|
-
|
|
48130
|
+
import_react189 = __toESM(require_react(), 1);
|
|
47982
48131
|
init_dist5();
|
|
47983
48132
|
init_src3();
|
|
47984
48133
|
init_esm7();
|
|
@@ -47997,7 +48146,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47997
48146
|
init_react_native_safe_area_context();
|
|
47998
48147
|
init_src3();
|
|
47999
48148
|
init_esm7();
|
|
48000
|
-
|
|
48149
|
+
import_react190 = __toESM(require_react(), 1);
|
|
48001
48150
|
import_react_native203 = __toESM(require_react_native(), 1);
|
|
48002
48151
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
48003
48152
|
init_react_native_svg();
|
|
@@ -48012,7 +48161,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48012
48161
|
init_esm7();
|
|
48013
48162
|
import_react_native208 = __toESM(require_react_native(), 1);
|
|
48014
48163
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
48015
|
-
|
|
48164
|
+
import_react191 = __toESM(require_react(), 1);
|
|
48016
48165
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
48017
48166
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
48018
48167
|
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -48029,21 +48178,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48029
48178
|
init_react_native_safe_area_context();
|
|
48030
48179
|
init_src3();
|
|
48031
48180
|
init_esm7();
|
|
48032
|
-
|
|
48181
|
+
import_react192 = __toESM(require_react(), 1);
|
|
48033
48182
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
48034
48183
|
init_dist5();
|
|
48035
48184
|
init_react_native_webview();
|
|
48036
|
-
|
|
48185
|
+
import_react193 = __toESM(require_react(), 1);
|
|
48037
48186
|
import_react_native211 = __toESM(require_react_native(), 1);
|
|
48038
48187
|
init_src3();
|
|
48039
48188
|
init_esm7();
|
|
48040
|
-
|
|
48189
|
+
init_dist6();
|
|
48190
|
+
import_react194 = __toESM(require_react(), 1);
|
|
48041
48191
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
48042
48192
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
48043
48193
|
init_react_native_webview();
|
|
48044
|
-
import_react194 = __toESM(require_react(), 1);
|
|
48045
|
-
init_src3();
|
|
48046
48194
|
import_react195 = __toESM(require_react(), 1);
|
|
48195
|
+
init_src3();
|
|
48196
|
+
import_react196 = __toESM(require_react(), 1);
|
|
48047
48197
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
48048
48198
|
import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
|
|
48049
48199
|
init_dist5();
|
|
@@ -48052,17 +48202,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48052
48202
|
init_dist5();
|
|
48053
48203
|
init_src3();
|
|
48054
48204
|
init_src3();
|
|
48055
|
-
import_react196 = __toESM(require_react(), 1);
|
|
48056
|
-
init_react_native_safe_area_context();
|
|
48057
48205
|
import_react197 = __toESM(require_react(), 1);
|
|
48058
|
-
|
|
48206
|
+
init_react_native_safe_area_context();
|
|
48059
48207
|
import_react198 = __toESM(require_react(), 1);
|
|
48208
|
+
init_src3();
|
|
48209
|
+
init_esm7();
|
|
48210
|
+
init_dist6();
|
|
48060
48211
|
import_react199 = __toESM(require_react(), 1);
|
|
48212
|
+
import_react200 = __toESM(require_react(), 1);
|
|
48061
48213
|
init_dist5();
|
|
48062
48214
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
48063
48215
|
init_dist5();
|
|
48064
|
-
import_react200 = __toESM(require_react(), 1);
|
|
48065
48216
|
import_react201 = __toESM(require_react(), 1);
|
|
48217
|
+
import_react202 = __toESM(require_react(), 1);
|
|
48066
48218
|
init_dist5();
|
|
48067
48219
|
init_src3();
|
|
48068
48220
|
init_esm7();
|
|
@@ -48072,12 +48224,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48072
48224
|
init_dist5();
|
|
48073
48225
|
init_dist3();
|
|
48074
48226
|
init_dist3();
|
|
48075
|
-
import_react202 = __toESM(require_react(), 1);
|
|
48076
|
-
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48077
48227
|
import_react203 = __toESM(require_react(), 1);
|
|
48228
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48229
|
+
import_react204 = __toESM(require_react(), 1);
|
|
48078
48230
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
48079
48231
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
48080
|
-
|
|
48232
|
+
import_react205 = __toESM(require_react(), 1);
|
|
48081
48233
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
48082
48234
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
48083
48235
|
import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -48632,8 +48784,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48632
48784
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
48633
48785
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
48634
48786
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
48787
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
48788
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
48635
48789
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
48636
48790
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
48791
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
48792
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
48637
48793
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
48638
48794
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
48639
48795
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -48682,8 +48838,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48682
48838
|
AppsInToss = {
|
|
48683
48839
|
registerApp
|
|
48684
48840
|
};
|
|
48685
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
48686
|
-
(0,
|
|
48841
|
+
GameWebView = /* @__PURE__ */ (0, import_react193.forwardRef)(function GameWebView2(props, ref) {
|
|
48842
|
+
(0, import_react193.useEffect)(function() {
|
|
48687
48843
|
if (import_react_native211.Platform.OS === "ios") {
|
|
48688
48844
|
setIosSwipeGestureEnabled({
|
|
48689
48845
|
isEnabled: false
|
|
@@ -48709,7 +48865,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48709
48865
|
]
|
|
48710
48866
|
});
|
|
48711
48867
|
});
|
|
48712
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48868
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react195.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
48713
48869
|
var _ref = [
|
|
48714
48870
|
_03,
|
|
48715
48871
|
_1
|