@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
|
@@ -44996,38 +44996,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44996
44996
|
handler
|
|
44997
44997
|
]);
|
|
44998
44998
|
}
|
|
44999
|
-
function useCloseConfirm() {
|
|
45000
|
-
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45001
|
-
var openConfirm = useDialog().openConfirm;
|
|
45002
|
-
return (0, import_react191.useCallback)(function(param) {
|
|
45003
|
-
var onEntered = param.onEntered;
|
|
45004
|
-
return _async_to_generator(function() {
|
|
45005
|
-
return __generator(this, function(_state) {
|
|
45006
|
-
switch (_state.label) {
|
|
45007
|
-
case 0:
|
|
45008
|
-
return [
|
|
45009
|
-
4,
|
|
45010
|
-
openConfirm({
|
|
45011
|
-
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45012
|
-
leftButton: "\uB2EB\uAE30",
|
|
45013
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45014
|
-
closeOnDimmerClick: true,
|
|
45015
|
-
onEntered
|
|
45016
|
-
})
|
|
45017
|
-
];
|
|
45018
|
-
case 1:
|
|
45019
|
-
return [
|
|
45020
|
-
2,
|
|
45021
|
-
_state.sent()
|
|
45022
|
-
];
|
|
45023
|
-
}
|
|
45024
|
-
});
|
|
45025
|
-
})();
|
|
45026
|
-
}, [
|
|
45027
|
-
brandDisplayName,
|
|
45028
|
-
openConfirm
|
|
45029
|
-
]);
|
|
45030
|
-
}
|
|
45031
44999
|
function createEvent(event) {
|
|
45032
45000
|
return {
|
|
45033
45001
|
name: event,
|
|
@@ -45081,30 +45049,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45081
45049
|
})
|
|
45082
45050
|
});
|
|
45083
45051
|
};
|
|
45084
|
-
var logClosePopupShow = function() {
|
|
45085
|
-
sendLog({
|
|
45086
|
-
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
45087
|
-
log_type: "popup",
|
|
45088
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45089
|
-
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
45090
|
-
})
|
|
45091
|
-
});
|
|
45092
|
-
};
|
|
45093
|
-
var logClosePopupCtaClick = function(confirm) {
|
|
45094
|
-
sendLog({
|
|
45095
|
-
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
45096
|
-
log_type: "event",
|
|
45097
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45098
|
-
close_yn: confirm ? "Y" : "N",
|
|
45099
|
-
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
45100
|
-
event_type: "click"
|
|
45101
|
-
})
|
|
45102
|
-
});
|
|
45103
|
-
};
|
|
45104
45052
|
return {
|
|
45105
45053
|
navBarImpression: logNavBarImpression,
|
|
45106
|
-
closePopupShow: logClosePopupShow,
|
|
45107
|
-
closePopupCtaClick: logClosePopupCtaClick,
|
|
45108
45054
|
closeButtonClick: logCloseButtonClick,
|
|
45109
45055
|
homeButtonClick: logHomeButtonClick
|
|
45110
45056
|
};
|
|
@@ -45113,33 +45059,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45113
45059
|
var backEventContext = useBackEventContext();
|
|
45114
45060
|
var logging = useNavigationBarLogging();
|
|
45115
45061
|
var navigation = useNavigation();
|
|
45116
|
-
var closeConfirm = useCloseConfirm();
|
|
45117
45062
|
return (0, import_react190.useMemo)(function() {
|
|
45118
|
-
var close = function() {
|
|
45119
|
-
return _async_to_generator(function() {
|
|
45120
|
-
var hasConfirmed;
|
|
45121
|
-
return __generator(this, function(_state) {
|
|
45122
|
-
switch (_state.label) {
|
|
45123
|
-
case 0:
|
|
45124
|
-
return [
|
|
45125
|
-
4,
|
|
45126
|
-
closeConfirm({
|
|
45127
|
-
onEntered: logging.closePopupShow
|
|
45128
|
-
})
|
|
45129
|
-
];
|
|
45130
|
-
case 1:
|
|
45131
|
-
hasConfirmed = _state.sent();
|
|
45132
|
-
logging.closePopupCtaClick(hasConfirmed);
|
|
45133
|
-
if (hasConfirmed) {
|
|
45134
|
-
closeView();
|
|
45135
|
-
}
|
|
45136
|
-
return [
|
|
45137
|
-
2
|
|
45138
|
-
];
|
|
45139
|
-
}
|
|
45140
|
-
});
|
|
45141
|
-
})();
|
|
45142
|
-
};
|
|
45143
45063
|
return {
|
|
45144
45064
|
handleBack: function() {
|
|
45145
45065
|
if (backEventContext.hasBackEvent) {
|
|
@@ -45147,7 +45067,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45147
45067
|
} else if (navigation.canGoBack()) {
|
|
45148
45068
|
navigation.goBack();
|
|
45149
45069
|
} else {
|
|
45150
|
-
|
|
45070
|
+
closeView();
|
|
45151
45071
|
}
|
|
45152
45072
|
},
|
|
45153
45073
|
handleHomeButtonClick: function() {
|
|
@@ -45160,13 +45080,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45160
45080
|
},
|
|
45161
45081
|
handleCloseButtonClick: function() {
|
|
45162
45082
|
logging.closeButtonClick();
|
|
45163
|
-
|
|
45083
|
+
closeView();
|
|
45164
45084
|
}
|
|
45165
45085
|
};
|
|
45166
45086
|
}, [
|
|
45167
45087
|
backEventContext,
|
|
45168
45088
|
navigation,
|
|
45169
|
-
closeConfirm,
|
|
45170
45089
|
logging
|
|
45171
45090
|
]);
|
|
45172
45091
|
}
|
|
@@ -45393,7 +45312,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45393
45312
|
function useMoreButtonBottomSheet() {
|
|
45394
45313
|
var globals = getAppsInTossGlobals();
|
|
45395
45314
|
var adaptive = useAdaptive();
|
|
45396
|
-
var _useState4 = _sliced_to_array((0,
|
|
45315
|
+
var _useState4 = _sliced_to_array((0, import_react191.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
45397
45316
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45398
45317
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45399
45318
|
var overlay = useOverlay();
|
|
@@ -45402,7 +45321,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45402
45321
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
45403
45322
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
45404
45323
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
45405
|
-
(0,
|
|
45324
|
+
(0, import_react191.useEffect)(function() {
|
|
45406
45325
|
if (!isBottomSheetSupported) {
|
|
45407
45326
|
return;
|
|
45408
45327
|
}
|
|
@@ -45503,7 +45422,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45503
45422
|
function BottomSheetImpressionArea(param) {
|
|
45504
45423
|
var children = param.children;
|
|
45505
45424
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45506
|
-
(0,
|
|
45425
|
+
(0, import_react191.useEffect)(function() {
|
|
45507
45426
|
logging.show();
|
|
45508
45427
|
}, [
|
|
45509
45428
|
logging
|
|
@@ -45523,9 +45442,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45523
45442
|
}
|
|
45524
45443
|
function NavigationBarImpressionArea(param) {
|
|
45525
45444
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
45526
|
-
var hasLogged = (0,
|
|
45445
|
+
var hasLogged = (0, import_react192.useRef)(false);
|
|
45527
45446
|
var logging = useNavigationBarLogging();
|
|
45528
|
-
(0,
|
|
45447
|
+
(0, import_react192.useEffect)(function() {
|
|
45529
45448
|
if (hasLogged.current === false) {
|
|
45530
45449
|
logging.navBarImpression({
|
|
45531
45450
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -45754,42 +45673,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45754
45673
|
function GameWebviewNavigationBar() {
|
|
45755
45674
|
var safeAreaTop = useSafeAreaTop();
|
|
45756
45675
|
var openConfirm = useDialog().openConfirm;
|
|
45757
|
-
var global2 = getAppsInTossGlobals();
|
|
45758
45676
|
var logging = useNavigationBarLogging();
|
|
45759
45677
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45760
45678
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45761
45679
|
var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
|
|
45762
|
-
var handleGameWebviewClose = (0,
|
|
45680
|
+
var handleGameWebviewClose = (0, import_react195.useCallback)(function() {
|
|
45763
45681
|
return _async_to_generator(function() {
|
|
45764
|
-
var isConfirmed;
|
|
45765
45682
|
return __generator(this, function(_state) {
|
|
45766
|
-
|
|
45767
|
-
|
|
45768
|
-
|
|
45769
|
-
|
|
45770
|
-
|
|
45771
|
-
openConfirm({
|
|
45772
|
-
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45773
|
-
leftButton: "\uB2EB\uAE30",
|
|
45774
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45775
|
-
closeOnDimmerClick: true,
|
|
45776
|
-
onEntered: logging.closePopupShow
|
|
45777
|
-
})
|
|
45778
|
-
];
|
|
45779
|
-
case 1:
|
|
45780
|
-
isConfirmed = _state.sent();
|
|
45781
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
45782
|
-
if (isConfirmed) {
|
|
45783
|
-
closeView();
|
|
45784
|
-
}
|
|
45785
|
-
return [
|
|
45786
|
-
2
|
|
45787
|
-
];
|
|
45788
|
-
}
|
|
45683
|
+
logging.closeButtonClick();
|
|
45684
|
+
closeView();
|
|
45685
|
+
return [
|
|
45686
|
+
2
|
|
45687
|
+
];
|
|
45789
45688
|
});
|
|
45790
45689
|
})();
|
|
45791
45690
|
}, [
|
|
45792
|
-
global2.brandDisplayName,
|
|
45793
45691
|
logging,
|
|
45794
45692
|
openConfirm
|
|
45795
45693
|
]);
|
|
@@ -45830,45 +45728,23 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45830
45728
|
var _ref, _ref1;
|
|
45831
45729
|
var globals = getAppsInTossGlobals();
|
|
45832
45730
|
var logging = useNavigationBarLogging();
|
|
45833
|
-
var openConfirm = useDialog().openConfirm;
|
|
45834
45731
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45835
45732
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
45836
45733
|
var withHomeButton = (_ref = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withHomeButton) !== null && _ref !== void 0 ? _ref : false;
|
|
45837
45734
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
45838
45735
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45839
|
-
var handleClose = (0,
|
|
45736
|
+
var handleClose = (0, import_react197.useCallback)(function() {
|
|
45840
45737
|
return _async_to_generator(function() {
|
|
45841
|
-
var isConfirmed;
|
|
45842
45738
|
return __generator(this, function(_state) {
|
|
45843
|
-
|
|
45844
|
-
|
|
45845
|
-
|
|
45846
|
-
|
|
45847
|
-
|
|
45848
|
-
openConfirm({
|
|
45849
|
-
title: "".concat(josa(globals.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45850
|
-
leftButton: "\uB2EB\uAE30",
|
|
45851
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45852
|
-
closeOnDimmerClick: true,
|
|
45853
|
-
onEntered: logging.closePopupShow
|
|
45854
|
-
})
|
|
45855
|
-
];
|
|
45856
|
-
case 1:
|
|
45857
|
-
isConfirmed = _state.sent();
|
|
45858
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
45859
|
-
if (isConfirmed) {
|
|
45860
|
-
closeView();
|
|
45861
|
-
}
|
|
45862
|
-
return [
|
|
45863
|
-
2
|
|
45864
|
-
];
|
|
45865
|
-
}
|
|
45739
|
+
logging.closeButtonClick();
|
|
45740
|
+
closeView();
|
|
45741
|
+
return [
|
|
45742
|
+
2
|
|
45743
|
+
];
|
|
45866
45744
|
});
|
|
45867
45745
|
})();
|
|
45868
45746
|
}, [
|
|
45869
|
-
|
|
45870
|
-
logging,
|
|
45871
|
-
openConfirm
|
|
45747
|
+
logging
|
|
45872
45748
|
]);
|
|
45873
45749
|
return (0, import_jsx_runtime232.jsx)(NavigationBarImpressionArea, {
|
|
45874
45750
|
withHomeButton,
|
|
@@ -46317,8 +46193,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46317
46193
|
}
|
|
46318
46194
|
function useBridgeHandler(param) {
|
|
46319
46195
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
46320
|
-
var ref = (0,
|
|
46321
|
-
var injectedJavaScript = (0,
|
|
46196
|
+
var ref = (0, import_react198.useRef)(null);
|
|
46197
|
+
var injectedJavaScript = (0, import_react198.useMemo)(function() {
|
|
46322
46198
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46323
46199
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
46324
46200
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -46327,7 +46203,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46327
46203
|
}, [
|
|
46328
46204
|
constantHandlerMap
|
|
46329
46205
|
]);
|
|
46330
|
-
(0,
|
|
46206
|
+
(0, import_react198.useEffect)(function() {
|
|
46331
46207
|
var _ref_current;
|
|
46332
46208
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
46333
46209
|
}, [
|
|
@@ -46346,7 +46222,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46346
46222
|
(_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 "));
|
|
46347
46223
|
};
|
|
46348
46224
|
};
|
|
46349
|
-
var $onMessage = (0,
|
|
46225
|
+
var $onMessage = (0, import_react198.useCallback)(function(e64) {
|
|
46350
46226
|
return _async_to_generator(function() {
|
|
46351
46227
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
46352
46228
|
return __generator(this, function(_state) {
|
|
@@ -46419,12 +46295,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46419
46295
|
}
|
|
46420
46296
|
function useSafeAreaInsetsEvent() {
|
|
46421
46297
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46422
|
-
(0,
|
|
46298
|
+
(0, import_react199.useEffect)(function() {
|
|
46423
46299
|
safeAreaInsetsChange.emit(insets);
|
|
46424
46300
|
}, [
|
|
46425
46301
|
insets
|
|
46426
46302
|
]);
|
|
46427
|
-
(0,
|
|
46303
|
+
(0, import_react199.useEffect)(function() {
|
|
46428
46304
|
return function() {
|
|
46429
46305
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
46430
46306
|
};
|
|
@@ -46474,8 +46350,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46474
46350
|
}
|
|
46475
46351
|
}
|
|
46476
46352
|
function useWebViewHistory() {
|
|
46477
|
-
var _useReducer = _sliced_to_array((0,
|
|
46478
|
-
var onNavigationStateChange = (0,
|
|
46353
|
+
var _useReducer = _sliced_to_array((0, import_react201.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46354
|
+
var onNavigationStateChange = (0, import_react201.useCallback)(function(param) {
|
|
46479
46355
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46480
46356
|
dispatch({
|
|
46481
46357
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46483,7 +46359,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46483
46359
|
canGoForward: canGoForward2
|
|
46484
46360
|
});
|
|
46485
46361
|
}, []);
|
|
46486
|
-
var _useMemo4 = (0,
|
|
46362
|
+
var _useMemo4 = (0, import_react201.useMemo)(function() {
|
|
46487
46363
|
var canBack = state.index > 0;
|
|
46488
46364
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46489
46365
|
return {
|
|
@@ -46504,93 +46380,64 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46504
46380
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
46505
46381
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
46506
46382
|
var logging = useNavigationBarLogging();
|
|
46507
|
-
var
|
|
46508
|
-
var global2 = getAppsInTossGlobals();
|
|
46509
|
-
var addEventListener = (0, import_react201.useCallback)(function(handler) {
|
|
46383
|
+
var addEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
46510
46384
|
addWebBackEventListener(handler);
|
|
46511
46385
|
}, [
|
|
46512
46386
|
addWebBackEventListener
|
|
46513
46387
|
]);
|
|
46514
|
-
var removeEventListener = (0,
|
|
46388
|
+
var removeEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
46515
46389
|
removeWebBackEventListener(handler);
|
|
46516
46390
|
}, [
|
|
46517
46391
|
removeWebBackEventListener
|
|
46518
46392
|
]);
|
|
46519
|
-
var handleWebBack = (0,
|
|
46393
|
+
var handleWebBack = (0, import_react200.useCallback)(function() {
|
|
46520
46394
|
return _async_to_generator(function() {
|
|
46521
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current
|
|
46395
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
46522
46396
|
return __generator(this, function(_state) {
|
|
46523
|
-
|
|
46524
|
-
|
|
46525
|
-
|
|
46526
|
-
|
|
46527
|
-
|
|
46528
|
-
|
|
46529
|
-
handler = _step.value;
|
|
46530
|
-
handler();
|
|
46531
|
-
}
|
|
46532
|
-
} catch (err) {
|
|
46533
|
-
_didIteratorError = true;
|
|
46534
|
-
_iteratorError = err;
|
|
46535
|
-
} finally {
|
|
46536
|
-
try {
|
|
46537
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
46538
|
-
_iterator.return();
|
|
46539
|
-
}
|
|
46540
|
-
} finally {
|
|
46541
|
-
if (_didIteratorError) {
|
|
46542
|
-
throw _iteratorError;
|
|
46543
|
-
}
|
|
46544
|
-
}
|
|
46545
|
-
}
|
|
46546
|
-
return [
|
|
46547
|
-
2
|
|
46548
|
-
];
|
|
46397
|
+
if (hasWebBackEvent) {
|
|
46398
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
46399
|
+
try {
|
|
46400
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
46401
|
+
handler = _step.value;
|
|
46402
|
+
handler();
|
|
46549
46403
|
}
|
|
46550
|
-
|
|
46551
|
-
|
|
46552
|
-
|
|
46553
|
-
|
|
46554
|
-
|
|
46555
|
-
|
|
46556
|
-
|
|
46557
|
-
|
|
46558
|
-
|
|
46559
|
-
|
|
46560
|
-
|
|
46561
|
-
|
|
46562
|
-
openConfirm({
|
|
46563
|
-
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46564
|
-
leftButton: "\uB2EB\uAE30",
|
|
46565
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46566
|
-
closeOnDimmerClick: true,
|
|
46567
|
-
onEntered: logging.closePopupShow
|
|
46568
|
-
})
|
|
46569
|
-
];
|
|
46570
|
-
case 2:
|
|
46571
|
-
isConfirmed = _state.sent();
|
|
46572
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
46573
|
-
if (isConfirmed) {
|
|
46574
|
-
closeView();
|
|
46404
|
+
} catch (err) {
|
|
46405
|
+
_didIteratorError = true;
|
|
46406
|
+
_iteratorError = err;
|
|
46407
|
+
} finally {
|
|
46408
|
+
try {
|
|
46409
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
46410
|
+
_iterator.return();
|
|
46411
|
+
}
|
|
46412
|
+
} finally {
|
|
46413
|
+
if (_didIteratorError) {
|
|
46414
|
+
throw _iteratorError;
|
|
46415
|
+
}
|
|
46575
46416
|
}
|
|
46576
|
-
|
|
46577
|
-
|
|
46578
|
-
|
|
46579
|
-
|
|
46580
|
-
|
|
46417
|
+
}
|
|
46418
|
+
return [
|
|
46419
|
+
2
|
|
46420
|
+
];
|
|
46421
|
+
}
|
|
46422
|
+
if (hasHistory) {
|
|
46423
|
+
;
|
|
46424
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
46425
|
+
} else {
|
|
46426
|
+
closeView();
|
|
46581
46427
|
}
|
|
46428
|
+
return [
|
|
46429
|
+
2
|
|
46430
|
+
];
|
|
46582
46431
|
});
|
|
46583
46432
|
})();
|
|
46584
46433
|
}, [
|
|
46585
|
-
global2.brandDisplayName,
|
|
46586
46434
|
hasHistory,
|
|
46587
46435
|
hasWebBackEvent,
|
|
46588
46436
|
webBackHandlersRef,
|
|
46589
46437
|
logging,
|
|
46590
|
-
openConfirm,
|
|
46591
46438
|
webViewRef
|
|
46592
46439
|
]);
|
|
46593
|
-
var handleWebHome = (0,
|
|
46440
|
+
var handleWebHome = (0, import_react200.useCallback)(function() {
|
|
46594
46441
|
var _webViewRef_current;
|
|
46595
46442
|
logging.homeButtonClick();
|
|
46596
46443
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -46605,7 +46452,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46605
46452
|
webViewInitialURL,
|
|
46606
46453
|
webViewRef
|
|
46607
46454
|
]);
|
|
46608
|
-
return (0,
|
|
46455
|
+
return (0, import_react200.useMemo)(function() {
|
|
46609
46456
|
return {
|
|
46610
46457
|
addEventListener,
|
|
46611
46458
|
removeEventListener,
|
|
@@ -46910,8 +46757,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46910
46757
|
if (!TYPES.includes(type)) {
|
|
46911
46758
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
46912
46759
|
}
|
|
46913
|
-
var webViewRef = (0,
|
|
46914
|
-
var url = (0,
|
|
46760
|
+
var webViewRef = (0, import_react193.useRef)(null);
|
|
46761
|
+
var url = (0, import_react193.useMemo)(function() {
|
|
46915
46762
|
return getWebViewURL(local);
|
|
46916
46763
|
}, [
|
|
46917
46764
|
local
|
|
@@ -46923,7 +46770,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46923
46770
|
var global2 = getAppsInTossGlobals();
|
|
46924
46771
|
var navigationBarContext = useNavigationBarContext();
|
|
46925
46772
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
46926
|
-
var _useState6 = _sliced_to_array((0,
|
|
46773
|
+
var _useState6 = _sliced_to_array((0, import_react193.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
46927
46774
|
var handler = useBridgeHandler({
|
|
46928
46775
|
onMessage,
|
|
46929
46776
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -47066,7 +46913,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47066
46913
|
}
|
|
47067
46914
|
})
|
|
47068
46915
|
});
|
|
47069
|
-
var headerPropForExternalWebView = (0,
|
|
46916
|
+
var headerPropForExternalWebView = (0, import_react193.useMemo)(function() {
|
|
47070
46917
|
var _ref;
|
|
47071
46918
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
47072
46919
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -47091,7 +46938,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47091
46938
|
colorPreference: "light"
|
|
47092
46939
|
});
|
|
47093
46940
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
47094
|
-
(0,
|
|
46941
|
+
(0, import_react193.useEffect)(function() {
|
|
47095
46942
|
var callback = function() {
|
|
47096
46943
|
webBackHandler.handleWebBack();
|
|
47097
46944
|
return true;
|
|
@@ -47167,7 +47014,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47167
47014
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47168
47015
|
}));
|
|
47169
47016
|
}
|
|
47170
|
-
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,
|
|
47017
|
+
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;
|
|
47171
47018
|
var init_dist8 = __esm({
|
|
47172
47019
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47173
47020
|
"use strict";
|
|
@@ -47234,15 +47081,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47234
47081
|
import_react_native199 = __toESM(require_react_native(), 1);
|
|
47235
47082
|
init_src3();
|
|
47236
47083
|
import_react190 = __toESM(require_react(), 1);
|
|
47237
|
-
init_esm7();
|
|
47238
|
-
init_dist6();
|
|
47239
|
-
import_react191 = __toESM(require_react(), 1);
|
|
47240
47084
|
init_src3();
|
|
47241
47085
|
init_dist5();
|
|
47242
47086
|
init_src3();
|
|
47243
47087
|
init_esm7();
|
|
47244
47088
|
init_private2();
|
|
47245
|
-
|
|
47089
|
+
import_react191 = __toESM(require_react(), 1);
|
|
47246
47090
|
init_dist5();
|
|
47247
47091
|
init_src3();
|
|
47248
47092
|
init_esm7();
|
|
@@ -47258,7 +47102,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47258
47102
|
init_src3();
|
|
47259
47103
|
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47260
47104
|
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47261
|
-
|
|
47105
|
+
import_react192 = __toESM(require_react(), 1);
|
|
47262
47106
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47263
47107
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47264
47108
|
init_react_native_safe_area_context();
|
|
@@ -47280,28 +47124,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47280
47124
|
init_src3();
|
|
47281
47125
|
init_esm7();
|
|
47282
47126
|
init_private2();
|
|
47283
|
-
|
|
47127
|
+
import_react193 = __toESM(require_react(), 1);
|
|
47284
47128
|
import_react_native209 = __toESM(require_react_native(), 1);
|
|
47285
47129
|
init_dist5();
|
|
47286
47130
|
init_react_native_webview();
|
|
47287
|
-
|
|
47131
|
+
import_react194 = __toESM(require_react(), 1);
|
|
47288
47132
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
47289
47133
|
init_react_native_safe_area_context();
|
|
47290
47134
|
init_src3();
|
|
47291
47135
|
init_esm7();
|
|
47292
47136
|
init_private2();
|
|
47293
|
-
|
|
47294
|
-
import_react196 = __toESM(require_react(), 1);
|
|
47137
|
+
import_react195 = __toESM(require_react(), 1);
|
|
47295
47138
|
import_react_native212 = __toESM(require_react_native(), 1);
|
|
47296
47139
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47297
47140
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47298
47141
|
init_react_native_webview();
|
|
47299
|
-
|
|
47142
|
+
import_react196 = __toESM(require_react(), 1);
|
|
47300
47143
|
init_src3();
|
|
47301
|
-
init_esm7();
|
|
47302
47144
|
init_private2();
|
|
47303
|
-
|
|
47304
|
-
import_react198 = __toESM(require_react(), 1);
|
|
47145
|
+
import_react197 = __toESM(require_react(), 1);
|
|
47305
47146
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47306
47147
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47307
47148
|
init_dist5();
|
|
@@ -47310,19 +47151,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47310
47151
|
init_dist5();
|
|
47311
47152
|
init_src3();
|
|
47312
47153
|
init_src3();
|
|
47313
|
-
|
|
47154
|
+
import_react198 = __toESM(require_react(), 1);
|
|
47314
47155
|
init_react_native_safe_area_context();
|
|
47315
|
-
|
|
47156
|
+
import_react199 = __toESM(require_react(), 1);
|
|
47316
47157
|
init_src3();
|
|
47317
|
-
|
|
47318
|
-
init_dist6();
|
|
47158
|
+
import_react200 = __toESM(require_react(), 1);
|
|
47319
47159
|
import_react201 = __toESM(require_react(), 1);
|
|
47320
|
-
import_react202 = __toESM(require_react(), 1);
|
|
47321
47160
|
init_dist5();
|
|
47322
47161
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47323
47162
|
init_dist5();
|
|
47163
|
+
import_react202 = __toESM(require_react(), 1);
|
|
47324
47164
|
import_react203 = __toESM(require_react(), 1);
|
|
47325
|
-
import_react204 = __toESM(require_react(), 1);
|
|
47326
47165
|
init_dist5();
|
|
47327
47166
|
init_src3();
|
|
47328
47167
|
init_esm7();
|
|
@@ -47332,12 +47171,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47332
47171
|
init_dist5();
|
|
47333
47172
|
init_dist3();
|
|
47334
47173
|
init_dist3();
|
|
47335
|
-
|
|
47174
|
+
import_react204 = __toESM(require_react(), 1);
|
|
47336
47175
|
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47337
|
-
|
|
47176
|
+
import_react205 = __toESM(require_react(), 1);
|
|
47338
47177
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47339
47178
|
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
47340
|
-
|
|
47179
|
+
import_react206 = __toESM(require_react(), 1);
|
|
47341
47180
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47342
47181
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
47343
47182
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47892,12 +47731,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47892
47731
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
47893
47732
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47894
47733
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47895
|
-
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47896
|
-
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47897
47734
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47898
47735
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47899
|
-
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47900
|
-
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47901
47736
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47902
47737
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47903
47738
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -47945,8 +47780,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47945
47780
|
AppsInToss = {
|
|
47946
47781
|
registerApp
|
|
47947
47782
|
};
|
|
47948
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
47949
|
-
(0,
|
|
47783
|
+
GameWebView = /* @__PURE__ */ (0, import_react194.forwardRef)(function GameWebView2(props, ref) {
|
|
47784
|
+
(0, import_react194.useEffect)(function() {
|
|
47950
47785
|
if (import_react_native210.Platform.OS === "ios") {
|
|
47951
47786
|
setIosSwipeGestureEnabled({
|
|
47952
47787
|
isEnabled: false
|
|
@@ -47972,7 +47807,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47972
47807
|
]
|
|
47973
47808
|
});
|
|
47974
47809
|
});
|
|
47975
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
47810
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
47976
47811
|
var _ref = [
|
|
47977
47812
|
_03,
|
|
47978
47813
|
_1
|