@apps-in-toss/web-framework 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.rn84.js +192 -303
- package/dist/prebuilt/dev.ios.rn84.js +192 -303
- package/dist/prebuilt/prod.android.rn72.js +89 -254
- package/dist/prebuilt/prod.android.rn84.js +89 -254
- package/dist/prebuilt/prod.ios.rn72.js +89 -254
- package/dist/prebuilt/prod.ios.rn84.js +89 -254
- package/package.json +8 -8
|
@@ -45979,38 +45979,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45979
45979
|
handler
|
|
45980
45980
|
]);
|
|
45981
45981
|
}
|
|
45982
|
-
function useCloseConfirm() {
|
|
45983
|
-
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45984
|
-
var openConfirm = useDialog().openConfirm;
|
|
45985
|
-
return (0, import_react191.useCallback)(function(param) {
|
|
45986
|
-
var onEntered = param.onEntered;
|
|
45987
|
-
return _async_to_generator(function() {
|
|
45988
|
-
return __generator(this, function(_state) {
|
|
45989
|
-
switch (_state.label) {
|
|
45990
|
-
case 0:
|
|
45991
|
-
return [
|
|
45992
|
-
4,
|
|
45993
|
-
openConfirm({
|
|
45994
|
-
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45995
|
-
leftButton: "\uB2EB\uAE30",
|
|
45996
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45997
|
-
closeOnDimmerClick: true,
|
|
45998
|
-
onEntered
|
|
45999
|
-
})
|
|
46000
|
-
];
|
|
46001
|
-
case 1:
|
|
46002
|
-
return [
|
|
46003
|
-
2,
|
|
46004
|
-
_state.sent()
|
|
46005
|
-
];
|
|
46006
|
-
}
|
|
46007
|
-
});
|
|
46008
|
-
})();
|
|
46009
|
-
}, [
|
|
46010
|
-
brandDisplayName,
|
|
46011
|
-
openConfirm
|
|
46012
|
-
]);
|
|
46013
|
-
}
|
|
46014
45982
|
function createEvent(event) {
|
|
46015
45983
|
return {
|
|
46016
45984
|
name: event,
|
|
@@ -46064,30 +46032,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46064
46032
|
})
|
|
46065
46033
|
});
|
|
46066
46034
|
};
|
|
46067
|
-
var logClosePopupShow = function() {
|
|
46068
|
-
sendLog({
|
|
46069
|
-
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
46070
|
-
log_type: "popup",
|
|
46071
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
46072
|
-
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
46073
|
-
})
|
|
46074
|
-
});
|
|
46075
|
-
};
|
|
46076
|
-
var logClosePopupCtaClick = function(confirm) {
|
|
46077
|
-
sendLog({
|
|
46078
|
-
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
46079
|
-
log_type: "event",
|
|
46080
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
46081
|
-
close_yn: confirm ? "Y" : "N",
|
|
46082
|
-
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
46083
|
-
event_type: "click"
|
|
46084
|
-
})
|
|
46085
|
-
});
|
|
46086
|
-
};
|
|
46087
46035
|
return {
|
|
46088
46036
|
navBarImpression: logNavBarImpression,
|
|
46089
|
-
closePopupShow: logClosePopupShow,
|
|
46090
|
-
closePopupCtaClick: logClosePopupCtaClick,
|
|
46091
46037
|
closeButtonClick: logCloseButtonClick,
|
|
46092
46038
|
homeButtonClick: logHomeButtonClick
|
|
46093
46039
|
};
|
|
@@ -46096,33 +46042,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46096
46042
|
var backEventContext = useBackEventContext();
|
|
46097
46043
|
var logging = useNavigationBarLogging();
|
|
46098
46044
|
var navigation = useNavigation();
|
|
46099
|
-
var closeConfirm = useCloseConfirm();
|
|
46100
46045
|
return (0, import_react190.useMemo)(function() {
|
|
46101
|
-
var close = function() {
|
|
46102
|
-
return _async_to_generator(function() {
|
|
46103
|
-
var hasConfirmed;
|
|
46104
|
-
return __generator(this, function(_state) {
|
|
46105
|
-
switch (_state.label) {
|
|
46106
|
-
case 0:
|
|
46107
|
-
return [
|
|
46108
|
-
4,
|
|
46109
|
-
closeConfirm({
|
|
46110
|
-
onEntered: logging.closePopupShow
|
|
46111
|
-
})
|
|
46112
|
-
];
|
|
46113
|
-
case 1:
|
|
46114
|
-
hasConfirmed = _state.sent();
|
|
46115
|
-
logging.closePopupCtaClick(hasConfirmed);
|
|
46116
|
-
if (hasConfirmed) {
|
|
46117
|
-
closeView();
|
|
46118
|
-
}
|
|
46119
|
-
return [
|
|
46120
|
-
2
|
|
46121
|
-
];
|
|
46122
|
-
}
|
|
46123
|
-
});
|
|
46124
|
-
})();
|
|
46125
|
-
};
|
|
46126
46046
|
return {
|
|
46127
46047
|
handleBack: function() {
|
|
46128
46048
|
if (backEventContext.hasBackEvent) {
|
|
@@ -46130,7 +46050,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46130
46050
|
} else if (navigation.canGoBack()) {
|
|
46131
46051
|
navigation.goBack();
|
|
46132
46052
|
} else {
|
|
46133
|
-
|
|
46053
|
+
closeView();
|
|
46134
46054
|
}
|
|
46135
46055
|
},
|
|
46136
46056
|
handleHomeButtonClick: function() {
|
|
@@ -46143,13 +46063,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46143
46063
|
},
|
|
46144
46064
|
handleCloseButtonClick: function() {
|
|
46145
46065
|
logging.closeButtonClick();
|
|
46146
|
-
|
|
46066
|
+
closeView();
|
|
46147
46067
|
}
|
|
46148
46068
|
};
|
|
46149
46069
|
}, [
|
|
46150
46070
|
backEventContext,
|
|
46151
46071
|
navigation,
|
|
46152
|
-
closeConfirm,
|
|
46153
46072
|
logging
|
|
46154
46073
|
]);
|
|
46155
46074
|
}
|
|
@@ -46376,7 +46295,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46376
46295
|
function useMoreButtonBottomSheet() {
|
|
46377
46296
|
var globals = getAppsInTossGlobals();
|
|
46378
46297
|
var adaptive = useAdaptive();
|
|
46379
|
-
var _useState4 = _sliced_to_array((0,
|
|
46298
|
+
var _useState4 = _sliced_to_array((0, import_react191.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
46380
46299
|
var appUpdateDialog = useAppUpdateDialog();
|
|
46381
46300
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46382
46301
|
var overlay = useOverlay();
|
|
@@ -46385,7 +46304,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46385
46304
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
46386
46305
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
46387
46306
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
46388
|
-
(0,
|
|
46307
|
+
(0, import_react191.useEffect)(function() {
|
|
46389
46308
|
if (!isBottomSheetSupported) {
|
|
46390
46309
|
return;
|
|
46391
46310
|
}
|
|
@@ -46486,7 +46405,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46486
46405
|
function BottomSheetImpressionArea(param) {
|
|
46487
46406
|
var children = param.children;
|
|
46488
46407
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46489
|
-
(0,
|
|
46408
|
+
(0, import_react191.useEffect)(function() {
|
|
46490
46409
|
logging.show();
|
|
46491
46410
|
}, [
|
|
46492
46411
|
logging
|
|
@@ -46506,9 +46425,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46506
46425
|
}
|
|
46507
46426
|
function NavigationBarImpressionArea(param) {
|
|
46508
46427
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46509
|
-
var hasLogged = (0,
|
|
46428
|
+
var hasLogged = (0, import_react192.useRef)(false);
|
|
46510
46429
|
var logging = useNavigationBarLogging();
|
|
46511
|
-
(0,
|
|
46430
|
+
(0, import_react192.useEffect)(function() {
|
|
46512
46431
|
if (hasLogged.current === false) {
|
|
46513
46432
|
logging.navBarImpression({
|
|
46514
46433
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -46737,42 +46656,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46737
46656
|
function GameWebviewNavigationBar() {
|
|
46738
46657
|
var safeAreaTop = useSafeAreaTop();
|
|
46739
46658
|
var openConfirm = useDialog().openConfirm;
|
|
46740
|
-
var global2 = getAppsInTossGlobals();
|
|
46741
46659
|
var logging = useNavigationBarLogging();
|
|
46742
46660
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46743
46661
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46744
46662
|
var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
|
|
46745
|
-
var handleGameWebviewClose = (0,
|
|
46663
|
+
var handleGameWebviewClose = (0, import_react195.useCallback)(function() {
|
|
46746
46664
|
return _async_to_generator(function() {
|
|
46747
|
-
var isConfirmed;
|
|
46748
46665
|
return __generator(this, function(_state) {
|
|
46749
|
-
|
|
46750
|
-
|
|
46751
|
-
|
|
46752
|
-
|
|
46753
|
-
|
|
46754
|
-
openConfirm({
|
|
46755
|
-
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46756
|
-
leftButton: "\uB2EB\uAE30",
|
|
46757
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46758
|
-
closeOnDimmerClick: true,
|
|
46759
|
-
onEntered: logging.closePopupShow
|
|
46760
|
-
})
|
|
46761
|
-
];
|
|
46762
|
-
case 1:
|
|
46763
|
-
isConfirmed = _state.sent();
|
|
46764
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
46765
|
-
if (isConfirmed) {
|
|
46766
|
-
closeView();
|
|
46767
|
-
}
|
|
46768
|
-
return [
|
|
46769
|
-
2
|
|
46770
|
-
];
|
|
46771
|
-
}
|
|
46666
|
+
logging.closeButtonClick();
|
|
46667
|
+
closeView();
|
|
46668
|
+
return [
|
|
46669
|
+
2
|
|
46670
|
+
];
|
|
46772
46671
|
});
|
|
46773
46672
|
})();
|
|
46774
46673
|
}, [
|
|
46775
|
-
global2.brandDisplayName,
|
|
46776
46674
|
logging,
|
|
46777
46675
|
openConfirm
|
|
46778
46676
|
]);
|
|
@@ -46813,45 +46711,23 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46813
46711
|
var _ref, _ref1;
|
|
46814
46712
|
var globals = getAppsInTossGlobals();
|
|
46815
46713
|
var logging = useNavigationBarLogging();
|
|
46816
|
-
var openConfirm = useDialog().openConfirm;
|
|
46817
46714
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46818
46715
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
46819
46716
|
var withHomeButton = (_ref = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withHomeButton) !== null && _ref !== void 0 ? _ref : false;
|
|
46820
46717
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
46821
46718
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46822
|
-
var handleClose = (0,
|
|
46719
|
+
var handleClose = (0, import_react197.useCallback)(function() {
|
|
46823
46720
|
return _async_to_generator(function() {
|
|
46824
|
-
var isConfirmed;
|
|
46825
46721
|
return __generator(this, function(_state) {
|
|
46826
|
-
|
|
46827
|
-
|
|
46828
|
-
|
|
46829
|
-
|
|
46830
|
-
|
|
46831
|
-
openConfirm({
|
|
46832
|
-
title: "".concat(josa(globals.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46833
|
-
leftButton: "\uB2EB\uAE30",
|
|
46834
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46835
|
-
closeOnDimmerClick: true,
|
|
46836
|
-
onEntered: logging.closePopupShow
|
|
46837
|
-
})
|
|
46838
|
-
];
|
|
46839
|
-
case 1:
|
|
46840
|
-
isConfirmed = _state.sent();
|
|
46841
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
46842
|
-
if (isConfirmed) {
|
|
46843
|
-
closeView();
|
|
46844
|
-
}
|
|
46845
|
-
return [
|
|
46846
|
-
2
|
|
46847
|
-
];
|
|
46848
|
-
}
|
|
46722
|
+
logging.closeButtonClick();
|
|
46723
|
+
closeView();
|
|
46724
|
+
return [
|
|
46725
|
+
2
|
|
46726
|
+
];
|
|
46849
46727
|
});
|
|
46850
46728
|
})();
|
|
46851
46729
|
}, [
|
|
46852
|
-
|
|
46853
|
-
logging,
|
|
46854
|
-
openConfirm
|
|
46730
|
+
logging
|
|
46855
46731
|
]);
|
|
46856
46732
|
return (0, import_jsx_runtime232.jsx)(NavigationBarImpressionArea, {
|
|
46857
46733
|
withHomeButton,
|
|
@@ -47300,8 +47176,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47300
47176
|
}
|
|
47301
47177
|
function useBridgeHandler(param) {
|
|
47302
47178
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
47303
|
-
var ref = (0,
|
|
47304
|
-
var injectedJavaScript = (0,
|
|
47179
|
+
var ref = (0, import_react198.useRef)(null);
|
|
47180
|
+
var injectedJavaScript = (0, import_react198.useMemo)(function() {
|
|
47305
47181
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
47306
47182
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
47307
47183
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -47310,7 +47186,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47310
47186
|
}, [
|
|
47311
47187
|
constantHandlerMap
|
|
47312
47188
|
]);
|
|
47313
|
-
(0,
|
|
47189
|
+
(0, import_react198.useEffect)(function() {
|
|
47314
47190
|
var _ref_current;
|
|
47315
47191
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
47316
47192
|
}, [
|
|
@@ -47329,7 +47205,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47329
47205
|
(_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 "));
|
|
47330
47206
|
};
|
|
47331
47207
|
};
|
|
47332
|
-
var $onMessage = (0,
|
|
47208
|
+
var $onMessage = (0, import_react198.useCallback)(function(e64) {
|
|
47333
47209
|
return _async_to_generator(function() {
|
|
47334
47210
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
47335
47211
|
return __generator(this, function(_state) {
|
|
@@ -47402,12 +47278,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47402
47278
|
}
|
|
47403
47279
|
function useSafeAreaInsetsEvent() {
|
|
47404
47280
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47405
|
-
(0,
|
|
47281
|
+
(0, import_react199.useEffect)(function() {
|
|
47406
47282
|
safeAreaInsetsChange.emit(insets);
|
|
47407
47283
|
}, [
|
|
47408
47284
|
insets
|
|
47409
47285
|
]);
|
|
47410
|
-
(0,
|
|
47286
|
+
(0, import_react199.useEffect)(function() {
|
|
47411
47287
|
return function() {
|
|
47412
47288
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
47413
47289
|
};
|
|
@@ -47457,8 +47333,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47457
47333
|
}
|
|
47458
47334
|
}
|
|
47459
47335
|
function useWebViewHistory() {
|
|
47460
|
-
var _useReducer = _sliced_to_array((0,
|
|
47461
|
-
var onNavigationStateChange = (0,
|
|
47336
|
+
var _useReducer = _sliced_to_array((0, import_react201.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
47337
|
+
var onNavigationStateChange = (0, import_react201.useCallback)(function(param) {
|
|
47462
47338
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
47463
47339
|
dispatch({
|
|
47464
47340
|
type: "NAVIGATION_CHANGE",
|
|
@@ -47466,7 +47342,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47466
47342
|
canGoForward: canGoForward2
|
|
47467
47343
|
});
|
|
47468
47344
|
}, []);
|
|
47469
|
-
var _useMemo4 = (0,
|
|
47345
|
+
var _useMemo4 = (0, import_react201.useMemo)(function() {
|
|
47470
47346
|
var canBack = state.index > 0;
|
|
47471
47347
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
47472
47348
|
return {
|
|
@@ -47487,93 +47363,64 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47487
47363
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
47488
47364
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
47489
47365
|
var logging = useNavigationBarLogging();
|
|
47490
|
-
var
|
|
47491
|
-
var global2 = getAppsInTossGlobals();
|
|
47492
|
-
var addEventListener = (0, import_react201.useCallback)(function(handler) {
|
|
47366
|
+
var addEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
47493
47367
|
addWebBackEventListener(handler);
|
|
47494
47368
|
}, [
|
|
47495
47369
|
addWebBackEventListener
|
|
47496
47370
|
]);
|
|
47497
|
-
var removeEventListener = (0,
|
|
47371
|
+
var removeEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
47498
47372
|
removeWebBackEventListener(handler);
|
|
47499
47373
|
}, [
|
|
47500
47374
|
removeWebBackEventListener
|
|
47501
47375
|
]);
|
|
47502
|
-
var handleWebBack = (0,
|
|
47376
|
+
var handleWebBack = (0, import_react200.useCallback)(function() {
|
|
47503
47377
|
return _async_to_generator(function() {
|
|
47504
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current
|
|
47378
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
47505
47379
|
return __generator(this, function(_state) {
|
|
47506
|
-
|
|
47507
|
-
|
|
47508
|
-
|
|
47509
|
-
|
|
47510
|
-
|
|
47511
|
-
|
|
47512
|
-
handler = _step.value;
|
|
47513
|
-
handler();
|
|
47514
|
-
}
|
|
47515
|
-
} catch (err) {
|
|
47516
|
-
_didIteratorError = true;
|
|
47517
|
-
_iteratorError = err;
|
|
47518
|
-
} finally {
|
|
47519
|
-
try {
|
|
47520
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47521
|
-
_iterator.return();
|
|
47522
|
-
}
|
|
47523
|
-
} finally {
|
|
47524
|
-
if (_didIteratorError) {
|
|
47525
|
-
throw _iteratorError;
|
|
47526
|
-
}
|
|
47527
|
-
}
|
|
47528
|
-
}
|
|
47529
|
-
return [
|
|
47530
|
-
2
|
|
47531
|
-
];
|
|
47380
|
+
if (hasWebBackEvent) {
|
|
47381
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47382
|
+
try {
|
|
47383
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
47384
|
+
handler = _step.value;
|
|
47385
|
+
handler();
|
|
47532
47386
|
}
|
|
47533
|
-
|
|
47534
|
-
|
|
47535
|
-
|
|
47536
|
-
|
|
47537
|
-
|
|
47538
|
-
|
|
47539
|
-
|
|
47540
|
-
|
|
47541
|
-
|
|
47542
|
-
|
|
47543
|
-
|
|
47544
|
-
|
|
47545
|
-
openConfirm({
|
|
47546
|
-
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
47547
|
-
leftButton: "\uB2EB\uAE30",
|
|
47548
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
47549
|
-
closeOnDimmerClick: true,
|
|
47550
|
-
onEntered: logging.closePopupShow
|
|
47551
|
-
})
|
|
47552
|
-
];
|
|
47553
|
-
case 2:
|
|
47554
|
-
isConfirmed = _state.sent();
|
|
47555
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
47556
|
-
if (isConfirmed) {
|
|
47557
|
-
closeView();
|
|
47387
|
+
} catch (err) {
|
|
47388
|
+
_didIteratorError = true;
|
|
47389
|
+
_iteratorError = err;
|
|
47390
|
+
} finally {
|
|
47391
|
+
try {
|
|
47392
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47393
|
+
_iterator.return();
|
|
47394
|
+
}
|
|
47395
|
+
} finally {
|
|
47396
|
+
if (_didIteratorError) {
|
|
47397
|
+
throw _iteratorError;
|
|
47398
|
+
}
|
|
47558
47399
|
}
|
|
47559
|
-
|
|
47560
|
-
|
|
47561
|
-
|
|
47562
|
-
|
|
47563
|
-
|
|
47400
|
+
}
|
|
47401
|
+
return [
|
|
47402
|
+
2
|
|
47403
|
+
];
|
|
47404
|
+
}
|
|
47405
|
+
if (hasHistory) {
|
|
47406
|
+
;
|
|
47407
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
47408
|
+
} else {
|
|
47409
|
+
closeView();
|
|
47564
47410
|
}
|
|
47411
|
+
return [
|
|
47412
|
+
2
|
|
47413
|
+
];
|
|
47565
47414
|
});
|
|
47566
47415
|
})();
|
|
47567
47416
|
}, [
|
|
47568
|
-
global2.brandDisplayName,
|
|
47569
47417
|
hasHistory,
|
|
47570
47418
|
hasWebBackEvent,
|
|
47571
47419
|
webBackHandlersRef,
|
|
47572
47420
|
logging,
|
|
47573
|
-
openConfirm,
|
|
47574
47421
|
webViewRef
|
|
47575
47422
|
]);
|
|
47576
|
-
var handleWebHome = (0,
|
|
47423
|
+
var handleWebHome = (0, import_react200.useCallback)(function() {
|
|
47577
47424
|
var _webViewRef_current;
|
|
47578
47425
|
logging.homeButtonClick();
|
|
47579
47426
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -47588,7 +47435,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47588
47435
|
webViewInitialURL,
|
|
47589
47436
|
webViewRef
|
|
47590
47437
|
]);
|
|
47591
|
-
return (0,
|
|
47438
|
+
return (0, import_react200.useMemo)(function() {
|
|
47592
47439
|
return {
|
|
47593
47440
|
addEventListener,
|
|
47594
47441
|
removeEventListener,
|
|
@@ -47893,8 +47740,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47893
47740
|
if (!TYPES.includes(type)) {
|
|
47894
47741
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
47895
47742
|
}
|
|
47896
|
-
var webViewRef = (0,
|
|
47897
|
-
var url = (0,
|
|
47743
|
+
var webViewRef = (0, import_react193.useRef)(null);
|
|
47744
|
+
var url = (0, import_react193.useMemo)(function() {
|
|
47898
47745
|
return getWebViewURL(local);
|
|
47899
47746
|
}, [
|
|
47900
47747
|
local
|
|
@@ -47906,7 +47753,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47906
47753
|
var global2 = getAppsInTossGlobals();
|
|
47907
47754
|
var navigationBarContext = useNavigationBarContext();
|
|
47908
47755
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
47909
|
-
var _useState6 = _sliced_to_array((0,
|
|
47756
|
+
var _useState6 = _sliced_to_array((0, import_react193.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
47910
47757
|
var handler = useBridgeHandler({
|
|
47911
47758
|
onMessage,
|
|
47912
47759
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -48049,7 +47896,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48049
47896
|
}
|
|
48050
47897
|
})
|
|
48051
47898
|
});
|
|
48052
|
-
var headerPropForExternalWebView = (0,
|
|
47899
|
+
var headerPropForExternalWebView = (0, import_react193.useMemo)(function() {
|
|
48053
47900
|
var _ref;
|
|
48054
47901
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
48055
47902
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -48074,7 +47921,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48074
47921
|
colorPreference: "light"
|
|
48075
47922
|
});
|
|
48076
47923
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
48077
|
-
(0,
|
|
47924
|
+
(0, import_react193.useEffect)(function() {
|
|
48078
47925
|
var callback = function() {
|
|
48079
47926
|
webBackHandler.handleWebBack();
|
|
48080
47927
|
return true;
|
|
@@ -48150,7 +47997,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48150
47997
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
48151
47998
|
}));
|
|
48152
47999
|
}
|
|
48153
|
-
var import_react_native187, import_react178, import_react179, import_jsx_runtime216, import_react180, import_jsx_runtime217, import_react181, import_react_native191, import_react182, import_react_native193, import_react183, import_react184, import_react_native196, import_react185, import_react186, import_react187, import_react188, import_jsx_runtime218, import_jsx_runtime219, import_react189, import_react_native199, import_react190, import_react191,
|
|
48000
|
+
var import_react_native187, import_react178, import_react179, import_jsx_runtime216, import_react180, import_jsx_runtime217, import_react181, import_react_native191, import_react182, import_react_native193, import_react183, import_react184, import_react_native196, import_react185, import_react186, import_react187, import_react188, import_jsx_runtime218, import_jsx_runtime219, import_react189, import_react_native199, import_react190, import_react191, import_react_native204, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react192, import_jsx_runtime225, import_jsx_runtime226, import_react_native207, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react193, import_react_native209, import_react194, import_react_native210, import_react195, import_react_native212, import_jsx_runtime230, import_jsx_runtime231, import_react196, import_react197, import_jsx_runtime232, import_jsx_runtime233, import_react198, import_react199, import_react200, import_react201, import_react_native218, import_react202, import_react203, import_jsx_runtime234, import_react204, import_react_native221, import_react205, import_react_native222, import_jsx_runtime235, import_react206, import_react_native223, import_jsx_runtime236, import_jsx_runtime237, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, DEFAULT_PIPELINES, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION6, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, INVALID_AD_GROUP_ID_ERROR_MESSAGE, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
|
|
48154
48001
|
var init_dist8 = __esm({
|
|
48155
48002
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
48156
48003
|
"use strict";
|
|
@@ -48217,15 +48064,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48217
48064
|
import_react_native199 = __toESM(require_react_native(), 1);
|
|
48218
48065
|
init_src3();
|
|
48219
48066
|
import_react190 = __toESM(require_react(), 1);
|
|
48220
|
-
init_esm7();
|
|
48221
|
-
init_dist6();
|
|
48222
|
-
import_react191 = __toESM(require_react(), 1);
|
|
48223
48067
|
init_src3();
|
|
48224
48068
|
init_dist5();
|
|
48225
48069
|
init_src3();
|
|
48226
48070
|
init_esm7();
|
|
48227
48071
|
init_private2();
|
|
48228
|
-
|
|
48072
|
+
import_react191 = __toESM(require_react(), 1);
|
|
48229
48073
|
init_dist5();
|
|
48230
48074
|
init_src3();
|
|
48231
48075
|
init_esm7();
|
|
@@ -48241,7 +48085,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48241
48085
|
init_src3();
|
|
48242
48086
|
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
48243
48087
|
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
48244
|
-
|
|
48088
|
+
import_react192 = __toESM(require_react(), 1);
|
|
48245
48089
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
48246
48090
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
48247
48091
|
init_react_native_safe_area_context();
|
|
@@ -48263,28 +48107,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48263
48107
|
init_src3();
|
|
48264
48108
|
init_esm7();
|
|
48265
48109
|
init_private2();
|
|
48266
|
-
|
|
48110
|
+
import_react193 = __toESM(require_react(), 1);
|
|
48267
48111
|
import_react_native209 = __toESM(require_react_native(), 1);
|
|
48268
48112
|
init_dist5();
|
|
48269
48113
|
init_react_native_webview();
|
|
48270
|
-
|
|
48114
|
+
import_react194 = __toESM(require_react(), 1);
|
|
48271
48115
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
48272
48116
|
init_react_native_safe_area_context();
|
|
48273
48117
|
init_src3();
|
|
48274
48118
|
init_esm7();
|
|
48275
48119
|
init_private2();
|
|
48276
|
-
|
|
48277
|
-
import_react196 = __toESM(require_react(), 1);
|
|
48120
|
+
import_react195 = __toESM(require_react(), 1);
|
|
48278
48121
|
import_react_native212 = __toESM(require_react_native(), 1);
|
|
48279
48122
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
48280
48123
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
48281
48124
|
init_react_native_webview();
|
|
48282
|
-
|
|
48125
|
+
import_react196 = __toESM(require_react(), 1);
|
|
48283
48126
|
init_src3();
|
|
48284
|
-
init_esm7();
|
|
48285
48127
|
init_private2();
|
|
48286
|
-
|
|
48287
|
-
import_react198 = __toESM(require_react(), 1);
|
|
48128
|
+
import_react197 = __toESM(require_react(), 1);
|
|
48288
48129
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
48289
48130
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
48290
48131
|
init_dist5();
|
|
@@ -48293,19 +48134,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48293
48134
|
init_dist5();
|
|
48294
48135
|
init_src3();
|
|
48295
48136
|
init_src3();
|
|
48296
|
-
|
|
48137
|
+
import_react198 = __toESM(require_react(), 1);
|
|
48297
48138
|
init_react_native_safe_area_context();
|
|
48298
|
-
|
|
48139
|
+
import_react199 = __toESM(require_react(), 1);
|
|
48299
48140
|
init_src3();
|
|
48300
|
-
|
|
48301
|
-
init_dist6();
|
|
48141
|
+
import_react200 = __toESM(require_react(), 1);
|
|
48302
48142
|
import_react201 = __toESM(require_react(), 1);
|
|
48303
|
-
import_react202 = __toESM(require_react(), 1);
|
|
48304
48143
|
init_dist5();
|
|
48305
48144
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
48306
48145
|
init_dist5();
|
|
48146
|
+
import_react202 = __toESM(require_react(), 1);
|
|
48307
48147
|
import_react203 = __toESM(require_react(), 1);
|
|
48308
|
-
import_react204 = __toESM(require_react(), 1);
|
|
48309
48148
|
init_dist5();
|
|
48310
48149
|
init_src3();
|
|
48311
48150
|
init_esm7();
|
|
@@ -48315,12 +48154,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48315
48154
|
init_dist5();
|
|
48316
48155
|
init_dist3();
|
|
48317
48156
|
init_dist3();
|
|
48318
|
-
|
|
48157
|
+
import_react204 = __toESM(require_react(), 1);
|
|
48319
48158
|
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48320
|
-
|
|
48159
|
+
import_react205 = __toESM(require_react(), 1);
|
|
48321
48160
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
48322
48161
|
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
48323
|
-
|
|
48162
|
+
import_react206 = __toESM(require_react(), 1);
|
|
48324
48163
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
48325
48164
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
48326
48165
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -48875,12 +48714,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48875
48714
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
48876
48715
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
48877
48716
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
48878
|
-
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
48879
|
-
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
48880
48717
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
48881
48718
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
48882
|
-
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
48883
|
-
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
48884
48719
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
48885
48720
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
48886
48721
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -48928,8 +48763,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48928
48763
|
AppsInToss = {
|
|
48929
48764
|
registerApp
|
|
48930
48765
|
};
|
|
48931
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
48932
|
-
(0,
|
|
48766
|
+
GameWebView = /* @__PURE__ */ (0, import_react194.forwardRef)(function GameWebView2(props, ref) {
|
|
48767
|
+
(0, import_react194.useEffect)(function() {
|
|
48933
48768
|
if (import_react_native210.Platform.OS === "ios") {
|
|
48934
48769
|
setIosSwipeGestureEnabled({
|
|
48935
48770
|
isEnabled: false
|
|
@@ -48955,7 +48790,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48955
48790
|
]
|
|
48956
48791
|
});
|
|
48957
48792
|
});
|
|
48958
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48793
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
48959
48794
|
var _ref = [
|
|
48960
48795
|
_03,
|
|
48961
48796
|
_1
|