@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
|
@@ -45677,6 +45677,38 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45677
45677
|
handler
|
|
45678
45678
|
]);
|
|
45679
45679
|
}
|
|
45680
|
+
function useCloseConfirm() {
|
|
45681
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45682
|
+
var openConfirm = useDialog().openConfirm;
|
|
45683
|
+
return (0, import_react189.useCallback)(function(param) {
|
|
45684
|
+
var onEntered = param.onEntered;
|
|
45685
|
+
return _async_to_generator(function() {
|
|
45686
|
+
return __generator(this, function(_state) {
|
|
45687
|
+
switch (_state.label) {
|
|
45688
|
+
case 0:
|
|
45689
|
+
return [
|
|
45690
|
+
4,
|
|
45691
|
+
openConfirm({
|
|
45692
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45693
|
+
leftButton: "\uB2EB\uAE30",
|
|
45694
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45695
|
+
closeOnDimmerClick: true,
|
|
45696
|
+
onEntered
|
|
45697
|
+
})
|
|
45698
|
+
];
|
|
45699
|
+
case 1:
|
|
45700
|
+
return [
|
|
45701
|
+
2,
|
|
45702
|
+
_state.sent()
|
|
45703
|
+
];
|
|
45704
|
+
}
|
|
45705
|
+
});
|
|
45706
|
+
})();
|
|
45707
|
+
}, [
|
|
45708
|
+
brandDisplayName,
|
|
45709
|
+
openConfirm
|
|
45710
|
+
]);
|
|
45711
|
+
}
|
|
45680
45712
|
function createEvent(event) {
|
|
45681
45713
|
return {
|
|
45682
45714
|
name: event,
|
|
@@ -45730,8 +45762,30 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45730
45762
|
})
|
|
45731
45763
|
});
|
|
45732
45764
|
};
|
|
45765
|
+
var logClosePopupShow = function() {
|
|
45766
|
+
sendLog({
|
|
45767
|
+
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
45768
|
+
log_type: "popup",
|
|
45769
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45770
|
+
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
45771
|
+
})
|
|
45772
|
+
});
|
|
45773
|
+
};
|
|
45774
|
+
var logClosePopupCtaClick = function(confirm) {
|
|
45775
|
+
sendLog({
|
|
45776
|
+
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
45777
|
+
log_type: "event",
|
|
45778
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45779
|
+
close_yn: confirm ? "Y" : "N",
|
|
45780
|
+
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
45781
|
+
event_type: "click"
|
|
45782
|
+
})
|
|
45783
|
+
});
|
|
45784
|
+
};
|
|
45733
45785
|
return {
|
|
45734
45786
|
navBarImpression: logNavBarImpression,
|
|
45787
|
+
closePopupShow: logClosePopupShow,
|
|
45788
|
+
closePopupCtaClick: logClosePopupCtaClick,
|
|
45735
45789
|
closeButtonClick: logCloseButtonClick,
|
|
45736
45790
|
homeButtonClick: logHomeButtonClick
|
|
45737
45791
|
};
|
|
@@ -45740,7 +45794,40 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45740
45794
|
var backEventContext = useBackEventContext();
|
|
45741
45795
|
var logging = useNavigationBarLogging();
|
|
45742
45796
|
var navigation = useNavigation();
|
|
45797
|
+
var closeConfirm = useCloseConfirm();
|
|
45798
|
+
var global2 = getAppsInTossGlobals();
|
|
45743
45799
|
return (0, import_react188.useMemo)(function() {
|
|
45800
|
+
var close = function() {
|
|
45801
|
+
return _async_to_generator(function() {
|
|
45802
|
+
var hasConfirmed;
|
|
45803
|
+
return __generator(this, function(_state) {
|
|
45804
|
+
switch (_state.label) {
|
|
45805
|
+
case 0:
|
|
45806
|
+
if (global2.appType !== "game") {
|
|
45807
|
+
closeView();
|
|
45808
|
+
return [
|
|
45809
|
+
2
|
|
45810
|
+
];
|
|
45811
|
+
}
|
|
45812
|
+
return [
|
|
45813
|
+
4,
|
|
45814
|
+
closeConfirm({
|
|
45815
|
+
onEntered: logging.closePopupShow
|
|
45816
|
+
})
|
|
45817
|
+
];
|
|
45818
|
+
case 1:
|
|
45819
|
+
hasConfirmed = _state.sent();
|
|
45820
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
45821
|
+
if (hasConfirmed) {
|
|
45822
|
+
closeView();
|
|
45823
|
+
}
|
|
45824
|
+
return [
|
|
45825
|
+
2
|
|
45826
|
+
];
|
|
45827
|
+
}
|
|
45828
|
+
});
|
|
45829
|
+
})();
|
|
45830
|
+
};
|
|
45744
45831
|
return {
|
|
45745
45832
|
handleBack: function() {
|
|
45746
45833
|
if (backEventContext.hasBackEvent) {
|
|
@@ -45748,7 +45835,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45748
45835
|
} else if (navigation.canGoBack()) {
|
|
45749
45836
|
navigation.goBack();
|
|
45750
45837
|
} else {
|
|
45751
|
-
|
|
45838
|
+
close();
|
|
45752
45839
|
}
|
|
45753
45840
|
},
|
|
45754
45841
|
handleHomeButtonClick: function() {
|
|
@@ -45763,12 +45850,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45763
45850
|
},
|
|
45764
45851
|
handleCloseButtonClick: function() {
|
|
45765
45852
|
logging.closeButtonClick();
|
|
45766
|
-
|
|
45853
|
+
close();
|
|
45767
45854
|
}
|
|
45768
45855
|
};
|
|
45769
45856
|
}, [
|
|
45857
|
+
global2.appType,
|
|
45770
45858
|
backEventContext,
|
|
45771
45859
|
navigation,
|
|
45860
|
+
closeConfirm,
|
|
45772
45861
|
logging
|
|
45773
45862
|
]);
|
|
45774
45863
|
}
|
|
@@ -45995,7 +46084,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45995
46084
|
function useMoreButtonBottomSheet() {
|
|
45996
46085
|
var globals = getAppsInTossGlobals();
|
|
45997
46086
|
var adaptive = useAdaptive();
|
|
45998
|
-
var _useState4 = _sliced_to_array((0,
|
|
46087
|
+
var _useState4 = _sliced_to_array((0, import_react190.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
45999
46088
|
var appUpdateDialog = useAppUpdateDialog();
|
|
46000
46089
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46001
46090
|
var overlay = useOverlay();
|
|
@@ -46004,7 +46093,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46004
46093
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
46005
46094
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
46006
46095
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
46007
|
-
(0,
|
|
46096
|
+
(0, import_react190.useEffect)(function() {
|
|
46008
46097
|
if (!isBottomSheetSupported) {
|
|
46009
46098
|
return;
|
|
46010
46099
|
}
|
|
@@ -46105,7 +46194,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46105
46194
|
function BottomSheetImpressionArea(param) {
|
|
46106
46195
|
var children = param.children;
|
|
46107
46196
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46108
|
-
(0,
|
|
46197
|
+
(0, import_react190.useEffect)(function() {
|
|
46109
46198
|
logging.show();
|
|
46110
46199
|
}, [
|
|
46111
46200
|
logging
|
|
@@ -46118,7 +46207,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46118
46207
|
var left = param.left, center = param.center, right = param.right;
|
|
46119
46208
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46120
46209
|
var navigation = useNavigation();
|
|
46121
|
-
(0,
|
|
46210
|
+
(0, import_react191.useEffect)(function() {
|
|
46122
46211
|
var _ref, _ref1;
|
|
46123
46212
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
46124
46213
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
@@ -46365,9 +46454,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46365
46454
|
}
|
|
46366
46455
|
function NavigationBarImpressionArea(param) {
|
|
46367
46456
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46368
|
-
var hasLogged = (0,
|
|
46457
|
+
var hasLogged = (0, import_react192.useRef)(false);
|
|
46369
46458
|
var logging = useNavigationBarLogging();
|
|
46370
|
-
(0,
|
|
46459
|
+
(0, import_react192.useEffect)(function() {
|
|
46371
46460
|
if (hasLogged.current === false) {
|
|
46372
46461
|
logging.navBarImpression({
|
|
46373
46462
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -46587,22 +46676,43 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46587
46676
|
function GameWebviewNavigationBar() {
|
|
46588
46677
|
var _ref;
|
|
46589
46678
|
var openConfirm = useDialog().openConfirm;
|
|
46679
|
+
var global2 = getAppsInTossGlobals();
|
|
46590
46680
|
var logging = useNavigationBarLogging();
|
|
46591
46681
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46592
46682
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46593
46683
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
46594
46684
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
46595
|
-
var handleGameWebviewClose = (0,
|
|
46685
|
+
var handleGameWebviewClose = (0, import_react195.useCallback)(function() {
|
|
46596
46686
|
return _async_to_generator(function() {
|
|
46687
|
+
var isConfirmed;
|
|
46597
46688
|
return __generator(this, function(_state) {
|
|
46598
|
-
|
|
46599
|
-
|
|
46600
|
-
|
|
46601
|
-
|
|
46602
|
-
|
|
46689
|
+
switch (_state.label) {
|
|
46690
|
+
case 0:
|
|
46691
|
+
logging.closeButtonClick();
|
|
46692
|
+
return [
|
|
46693
|
+
4,
|
|
46694
|
+
openConfirm({
|
|
46695
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46696
|
+
leftButton: "\uB2EB\uAE30",
|
|
46697
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46698
|
+
closeOnDimmerClick: true,
|
|
46699
|
+
onEntered: logging.closePopupShow
|
|
46700
|
+
})
|
|
46701
|
+
];
|
|
46702
|
+
case 1:
|
|
46703
|
+
isConfirmed = _state.sent();
|
|
46704
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
46705
|
+
if (isConfirmed) {
|
|
46706
|
+
closeView();
|
|
46707
|
+
}
|
|
46708
|
+
return [
|
|
46709
|
+
2
|
|
46710
|
+
];
|
|
46711
|
+
}
|
|
46603
46712
|
});
|
|
46604
46713
|
})();
|
|
46605
46714
|
}, [
|
|
46715
|
+
global2.brandDisplayName,
|
|
46606
46716
|
logging,
|
|
46607
46717
|
openConfirm
|
|
46608
46718
|
]);
|
|
@@ -46626,7 +46736,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46626
46736
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
46627
46737
|
var theme = (_ref2 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.theme) !== null && _ref2 !== void 0 ? _ref2 : "light";
|
|
46628
46738
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46629
|
-
var handleClose = (0,
|
|
46739
|
+
var handleClose = (0, import_react197.useCallback)(function() {
|
|
46630
46740
|
return _async_to_generator(function() {
|
|
46631
46741
|
return __generator(this, function(_state) {
|
|
46632
46742
|
logging.closeButtonClick();
|
|
@@ -47102,8 +47212,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47102
47212
|
}
|
|
47103
47213
|
function useBridgeHandler(param) {
|
|
47104
47214
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
47105
|
-
var ref = (0,
|
|
47106
|
-
var injectedJavaScript = (0,
|
|
47215
|
+
var ref = (0, import_react198.useRef)(null);
|
|
47216
|
+
var injectedJavaScript = (0, import_react198.useMemo)(function() {
|
|
47107
47217
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
47108
47218
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
47109
47219
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -47112,7 +47222,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47112
47222
|
}, [
|
|
47113
47223
|
constantHandlerMap
|
|
47114
47224
|
]);
|
|
47115
|
-
(0,
|
|
47225
|
+
(0, import_react198.useEffect)(function() {
|
|
47116
47226
|
var _ref_current;
|
|
47117
47227
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
47118
47228
|
}, [
|
|
@@ -47131,7 +47241,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47131
47241
|
(_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 "));
|
|
47132
47242
|
};
|
|
47133
47243
|
};
|
|
47134
|
-
var $onMessage = (0,
|
|
47244
|
+
var $onMessage = (0, import_react198.useCallback)(function(e63) {
|
|
47135
47245
|
return _async_to_generator(function() {
|
|
47136
47246
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
47137
47247
|
return __generator(this, function(_state) {
|
|
@@ -47204,12 +47314,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47204
47314
|
}
|
|
47205
47315
|
function useSafeAreaInsetsEvent() {
|
|
47206
47316
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47207
|
-
(0,
|
|
47317
|
+
(0, import_react199.useEffect)(function() {
|
|
47208
47318
|
safeAreaInsetsChange.emit(insets);
|
|
47209
47319
|
}, [
|
|
47210
47320
|
insets
|
|
47211
47321
|
]);
|
|
47212
|
-
(0,
|
|
47322
|
+
(0, import_react199.useEffect)(function() {
|
|
47213
47323
|
return function() {
|
|
47214
47324
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
47215
47325
|
};
|
|
@@ -47259,8 +47369,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47259
47369
|
}
|
|
47260
47370
|
}
|
|
47261
47371
|
function useWebViewHistory() {
|
|
47262
|
-
var _useReducer = _sliced_to_array((0,
|
|
47263
|
-
var onNavigationStateChange = (0,
|
|
47372
|
+
var _useReducer = _sliced_to_array((0, import_react201.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
47373
|
+
var onNavigationStateChange = (0, import_react201.useCallback)(function(param) {
|
|
47264
47374
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
47265
47375
|
dispatch({
|
|
47266
47376
|
type: "NAVIGATION_CHANGE",
|
|
@@ -47268,7 +47378,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47268
47378
|
canGoForward: canGoForward2
|
|
47269
47379
|
});
|
|
47270
47380
|
}, []);
|
|
47271
|
-
var _useMemo4 = (0,
|
|
47381
|
+
var _useMemo4 = (0, import_react201.useMemo)(function() {
|
|
47272
47382
|
var canBack = state.index > 0;
|
|
47273
47383
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
47274
47384
|
return {
|
|
@@ -47289,64 +47399,100 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47289
47399
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
47290
47400
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
47291
47401
|
var logging = useNavigationBarLogging();
|
|
47292
|
-
var
|
|
47402
|
+
var openConfirm = useDialog().openConfirm;
|
|
47403
|
+
var global2 = getAppsInTossGlobals();
|
|
47404
|
+
var addEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
47293
47405
|
addWebBackEventListener(handler);
|
|
47294
47406
|
}, [
|
|
47295
47407
|
addWebBackEventListener
|
|
47296
47408
|
]);
|
|
47297
|
-
var removeEventListener = (0,
|
|
47409
|
+
var removeEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
47298
47410
|
removeWebBackEventListener(handler);
|
|
47299
47411
|
}, [
|
|
47300
47412
|
removeWebBackEventListener
|
|
47301
47413
|
]);
|
|
47302
|
-
var handleWebBack = (0,
|
|
47414
|
+
var handleWebBack = (0, import_react200.useCallback)(function() {
|
|
47303
47415
|
return _async_to_generator(function() {
|
|
47304
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
47416
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
47305
47417
|
return __generator(this, function(_state) {
|
|
47306
|
-
|
|
47307
|
-
|
|
47308
|
-
|
|
47309
|
-
|
|
47310
|
-
|
|
47311
|
-
|
|
47312
|
-
|
|
47313
|
-
|
|
47314
|
-
|
|
47315
|
-
|
|
47316
|
-
|
|
47317
|
-
|
|
47318
|
-
|
|
47319
|
-
|
|
47320
|
-
|
|
47321
|
-
|
|
47322
|
-
|
|
47323
|
-
|
|
47418
|
+
switch (_state.label) {
|
|
47419
|
+
case 0:
|
|
47420
|
+
if (hasWebBackEvent) {
|
|
47421
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47422
|
+
try {
|
|
47423
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
47424
|
+
handler = _step.value;
|
|
47425
|
+
handler();
|
|
47426
|
+
}
|
|
47427
|
+
} catch (err) {
|
|
47428
|
+
_didIteratorError = true;
|
|
47429
|
+
_iteratorError = err;
|
|
47430
|
+
} finally {
|
|
47431
|
+
try {
|
|
47432
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47433
|
+
_iterator.return();
|
|
47434
|
+
}
|
|
47435
|
+
} finally {
|
|
47436
|
+
if (_didIteratorError) {
|
|
47437
|
+
throw _iteratorError;
|
|
47438
|
+
}
|
|
47439
|
+
}
|
|
47324
47440
|
}
|
|
47441
|
+
return [
|
|
47442
|
+
2
|
|
47443
|
+
];
|
|
47325
47444
|
}
|
|
47326
|
-
|
|
47327
|
-
|
|
47328
|
-
|
|
47329
|
-
|
|
47330
|
-
|
|
47331
|
-
|
|
47332
|
-
|
|
47333
|
-
|
|
47334
|
-
|
|
47335
|
-
|
|
47445
|
+
if (!hasHistory) return [
|
|
47446
|
+
3,
|
|
47447
|
+
1
|
|
47448
|
+
];
|
|
47449
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
47450
|
+
return [
|
|
47451
|
+
3,
|
|
47452
|
+
3
|
|
47453
|
+
];
|
|
47454
|
+
case 1:
|
|
47455
|
+
if (global2.webViewType !== "game") {
|
|
47456
|
+
closeView();
|
|
47457
|
+
return [
|
|
47458
|
+
2
|
|
47459
|
+
];
|
|
47460
|
+
}
|
|
47461
|
+
return [
|
|
47462
|
+
4,
|
|
47463
|
+
openConfirm({
|
|
47464
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
47465
|
+
leftButton: "\uB2EB\uAE30",
|
|
47466
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
47467
|
+
closeOnDimmerClick: true,
|
|
47468
|
+
onEntered: logging.closePopupShow
|
|
47469
|
+
})
|
|
47470
|
+
];
|
|
47471
|
+
case 2:
|
|
47472
|
+
isConfirmed = _state.sent();
|
|
47473
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
47474
|
+
if (isConfirmed) {
|
|
47475
|
+
closeView();
|
|
47476
|
+
}
|
|
47477
|
+
_state.label = 3;
|
|
47478
|
+
case 3:
|
|
47479
|
+
return [
|
|
47480
|
+
2
|
|
47481
|
+
];
|
|
47336
47482
|
}
|
|
47337
|
-
return [
|
|
47338
|
-
2
|
|
47339
|
-
];
|
|
47340
47483
|
});
|
|
47341
47484
|
})();
|
|
47342
47485
|
}, [
|
|
47486
|
+
global2.webViewType,
|
|
47487
|
+
global2.brandDisplayName,
|
|
47343
47488
|
hasHistory,
|
|
47344
47489
|
hasWebBackEvent,
|
|
47345
47490
|
webBackHandlersRef,
|
|
47346
47491
|
logging,
|
|
47492
|
+
openConfirm,
|
|
47347
47493
|
webViewRef
|
|
47348
47494
|
]);
|
|
47349
|
-
var handleWebHome = (0,
|
|
47495
|
+
var handleWebHome = (0, import_react200.useCallback)(function() {
|
|
47350
47496
|
var _webViewRef_current;
|
|
47351
47497
|
logging.homeButtonClick();
|
|
47352
47498
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -47361,7 +47507,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47361
47507
|
webViewInitialURL,
|
|
47362
47508
|
webViewRef
|
|
47363
47509
|
]);
|
|
47364
|
-
return (0,
|
|
47510
|
+
return (0, import_react200.useMemo)(function() {
|
|
47365
47511
|
return {
|
|
47366
47512
|
addEventListener,
|
|
47367
47513
|
removeEventListener,
|
|
@@ -47666,8 +47812,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47666
47812
|
if (!TYPES.includes(type)) {
|
|
47667
47813
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
47668
47814
|
}
|
|
47669
|
-
var webViewRef = (0,
|
|
47670
|
-
var url = (0,
|
|
47815
|
+
var webViewRef = (0, import_react193.useRef)(null);
|
|
47816
|
+
var url = (0, import_react193.useMemo)(function() {
|
|
47671
47817
|
return getWebViewURL(local);
|
|
47672
47818
|
}, [
|
|
47673
47819
|
local
|
|
@@ -47677,7 +47823,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47677
47823
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47678
47824
|
var navigationBarContext = useNavigationBarContext();
|
|
47679
47825
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
47680
|
-
var _useState6 = _sliced_to_array((0,
|
|
47826
|
+
var _useState6 = _sliced_to_array((0, import_react193.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
47681
47827
|
var handler = useBridgeHandler({
|
|
47682
47828
|
onMessage,
|
|
47683
47829
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -47815,7 +47961,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47815
47961
|
}
|
|
47816
47962
|
})
|
|
47817
47963
|
});
|
|
47818
|
-
var headerPropForExternalWebView = (0,
|
|
47964
|
+
var headerPropForExternalWebView = (0, import_react193.useMemo)(function() {
|
|
47819
47965
|
var _ref;
|
|
47820
47966
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
47821
47967
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -47840,7 +47986,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47840
47986
|
colorPreference: "light"
|
|
47841
47987
|
});
|
|
47842
47988
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
47843
|
-
(0,
|
|
47989
|
+
(0, import_react193.useEffect)(function() {
|
|
47844
47990
|
var callback = function() {
|
|
47845
47991
|
webBackHandler.handleWebBack();
|
|
47846
47992
|
return true;
|
|
@@ -47916,7 +48062,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47916
48062
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47917
48063
|
}));
|
|
47918
48064
|
}
|
|
47919
|
-
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,
|
|
48065
|
+
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;
|
|
47920
48066
|
var init_dist8 = __esm({
|
|
47921
48067
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47922
48068
|
"use strict";
|
|
@@ -47982,12 +48128,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47982
48128
|
import_react_native194 = __toESM(require_react_native(), 1);
|
|
47983
48129
|
init_src3();
|
|
47984
48130
|
import_react188 = __toESM(require_react(), 1);
|
|
48131
|
+
init_esm7();
|
|
48132
|
+
init_dist6();
|
|
48133
|
+
import_react189 = __toESM(require_react(), 1);
|
|
47985
48134
|
init_src3();
|
|
47986
48135
|
init_dist5();
|
|
47987
48136
|
init_src3();
|
|
47988
48137
|
init_esm7();
|
|
47989
48138
|
init_private2();
|
|
47990
|
-
|
|
48139
|
+
import_react190 = __toESM(require_react(), 1);
|
|
47991
48140
|
init_dist5();
|
|
47992
48141
|
init_src3();
|
|
47993
48142
|
init_esm7();
|
|
@@ -48006,7 +48155,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48006
48155
|
init_react_native_safe_area_context();
|
|
48007
48156
|
init_src3();
|
|
48008
48157
|
init_esm7();
|
|
48009
|
-
|
|
48158
|
+
import_react191 = __toESM(require_react(), 1);
|
|
48010
48159
|
import_react_native203 = __toESM(require_react_native(), 1);
|
|
48011
48160
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
48012
48161
|
init_react_native_svg();
|
|
@@ -48021,7 +48170,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48021
48170
|
init_esm7();
|
|
48022
48171
|
import_react_native208 = __toESM(require_react_native(), 1);
|
|
48023
48172
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
48024
|
-
|
|
48173
|
+
import_react192 = __toESM(require_react(), 1);
|
|
48025
48174
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
48026
48175
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
48027
48176
|
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -48038,21 +48187,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48038
48187
|
init_react_native_safe_area_context();
|
|
48039
48188
|
init_src3();
|
|
48040
48189
|
init_esm7();
|
|
48041
|
-
|
|
48190
|
+
import_react193 = __toESM(require_react(), 1);
|
|
48042
48191
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
48043
48192
|
init_dist5();
|
|
48044
48193
|
init_react_native_webview();
|
|
48045
|
-
|
|
48194
|
+
import_react194 = __toESM(require_react(), 1);
|
|
48046
48195
|
import_react_native211 = __toESM(require_react_native(), 1);
|
|
48047
48196
|
init_src3();
|
|
48048
48197
|
init_esm7();
|
|
48049
|
-
|
|
48198
|
+
init_dist6();
|
|
48199
|
+
import_react195 = __toESM(require_react(), 1);
|
|
48050
48200
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
48051
48201
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
48052
48202
|
init_react_native_webview();
|
|
48053
|
-
import_react195 = __toESM(require_react(), 1);
|
|
48054
|
-
init_src3();
|
|
48055
48203
|
import_react196 = __toESM(require_react(), 1);
|
|
48204
|
+
init_src3();
|
|
48205
|
+
import_react197 = __toESM(require_react(), 1);
|
|
48056
48206
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
48057
48207
|
import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
|
|
48058
48208
|
init_dist5();
|
|
@@ -48061,17 +48211,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48061
48211
|
init_dist5();
|
|
48062
48212
|
init_src3();
|
|
48063
48213
|
init_src3();
|
|
48064
|
-
import_react197 = __toESM(require_react(), 1);
|
|
48065
|
-
init_react_native_safe_area_context();
|
|
48066
48214
|
import_react198 = __toESM(require_react(), 1);
|
|
48067
|
-
|
|
48215
|
+
init_react_native_safe_area_context();
|
|
48068
48216
|
import_react199 = __toESM(require_react(), 1);
|
|
48217
|
+
init_src3();
|
|
48218
|
+
init_esm7();
|
|
48219
|
+
init_dist6();
|
|
48069
48220
|
import_react200 = __toESM(require_react(), 1);
|
|
48221
|
+
import_react201 = __toESM(require_react(), 1);
|
|
48070
48222
|
init_dist5();
|
|
48071
48223
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
48072
48224
|
init_dist5();
|
|
48073
|
-
import_react201 = __toESM(require_react(), 1);
|
|
48074
48225
|
import_react202 = __toESM(require_react(), 1);
|
|
48226
|
+
import_react203 = __toESM(require_react(), 1);
|
|
48075
48227
|
init_dist5();
|
|
48076
48228
|
init_src3();
|
|
48077
48229
|
init_esm7();
|
|
@@ -48081,12 +48233,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48081
48233
|
init_dist5();
|
|
48082
48234
|
init_dist3();
|
|
48083
48235
|
init_dist3();
|
|
48084
|
-
import_react203 = __toESM(require_react(), 1);
|
|
48085
|
-
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48086
48236
|
import_react204 = __toESM(require_react(), 1);
|
|
48237
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48238
|
+
import_react205 = __toESM(require_react(), 1);
|
|
48087
48239
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
48088
48240
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
48089
|
-
|
|
48241
|
+
import_react206 = __toESM(require_react(), 1);
|
|
48090
48242
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
48091
48243
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
48092
48244
|
import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -48641,8 +48793,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48641
48793
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
48642
48794
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
48643
48795
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
48796
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
48797
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
48644
48798
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
48645
48799
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
48800
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
48801
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
48646
48802
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
48647
48803
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
48648
48804
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -48691,8 +48847,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48691
48847
|
AppsInToss = {
|
|
48692
48848
|
registerApp
|
|
48693
48849
|
};
|
|
48694
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
48695
|
-
(0,
|
|
48850
|
+
GameWebView = /* @__PURE__ */ (0, import_react194.forwardRef)(function GameWebView2(props, ref) {
|
|
48851
|
+
(0, import_react194.useEffect)(function() {
|
|
48696
48852
|
if (import_react_native211.Platform.OS === "ios") {
|
|
48697
48853
|
setIosSwipeGestureEnabled({
|
|
48698
48854
|
isEnabled: false
|
|
@@ -48718,7 +48874,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48718
48874
|
]
|
|
48719
48875
|
});
|
|
48720
48876
|
});
|
|
48721
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48877
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
48722
48878
|
var _ref = [
|
|
48723
48879
|
_03,
|
|
48724
48880
|
_1
|