@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
|
@@ -45005,38 +45005,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45005
45005
|
handler
|
|
45006
45006
|
]);
|
|
45007
45007
|
}
|
|
45008
|
-
function useCloseConfirm() {
|
|
45009
|
-
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45010
|
-
var openConfirm = useDialog().openConfirm;
|
|
45011
|
-
return (0, import_react192.useCallback)(function(param) {
|
|
45012
|
-
var onEntered = param.onEntered;
|
|
45013
|
-
return _async_to_generator(function() {
|
|
45014
|
-
return __generator(this, function(_state) {
|
|
45015
|
-
switch (_state.label) {
|
|
45016
|
-
case 0:
|
|
45017
|
-
return [
|
|
45018
|
-
4,
|
|
45019
|
-
openConfirm({
|
|
45020
|
-
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45021
|
-
leftButton: "\uB2EB\uAE30",
|
|
45022
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45023
|
-
closeOnDimmerClick: true,
|
|
45024
|
-
onEntered
|
|
45025
|
-
})
|
|
45026
|
-
];
|
|
45027
|
-
case 1:
|
|
45028
|
-
return [
|
|
45029
|
-
2,
|
|
45030
|
-
_state.sent()
|
|
45031
|
-
];
|
|
45032
|
-
}
|
|
45033
|
-
});
|
|
45034
|
-
})();
|
|
45035
|
-
}, [
|
|
45036
|
-
brandDisplayName,
|
|
45037
|
-
openConfirm
|
|
45038
|
-
]);
|
|
45039
|
-
}
|
|
45040
45008
|
function createEvent(event) {
|
|
45041
45009
|
return {
|
|
45042
45010
|
name: event,
|
|
@@ -45090,30 +45058,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45090
45058
|
})
|
|
45091
45059
|
});
|
|
45092
45060
|
};
|
|
45093
|
-
var logClosePopupShow = function() {
|
|
45094
|
-
sendLog({
|
|
45095
|
-
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
45096
|
-
log_type: "popup",
|
|
45097
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45098
|
-
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
45099
|
-
})
|
|
45100
|
-
});
|
|
45101
|
-
};
|
|
45102
|
-
var logClosePopupCtaClick = function(confirm) {
|
|
45103
|
-
sendLog({
|
|
45104
|
-
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
45105
|
-
log_type: "event",
|
|
45106
|
-
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45107
|
-
close_yn: confirm ? "Y" : "N",
|
|
45108
|
-
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
45109
|
-
event_type: "click"
|
|
45110
|
-
})
|
|
45111
|
-
});
|
|
45112
|
-
};
|
|
45113
45061
|
return {
|
|
45114
45062
|
navBarImpression: logNavBarImpression,
|
|
45115
|
-
closePopupShow: logClosePopupShow,
|
|
45116
|
-
closePopupCtaClick: logClosePopupCtaClick,
|
|
45117
45063
|
closeButtonClick: logCloseButtonClick,
|
|
45118
45064
|
homeButtonClick: logHomeButtonClick
|
|
45119
45065
|
};
|
|
@@ -45122,33 +45068,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45122
45068
|
var backEventContext = useBackEventContext();
|
|
45123
45069
|
var logging = useNavigationBarLogging();
|
|
45124
45070
|
var navigation = useNavigation();
|
|
45125
|
-
var closeConfirm = useCloseConfirm();
|
|
45126
45071
|
return (0, import_react191.useMemo)(function() {
|
|
45127
|
-
var close = function() {
|
|
45128
|
-
return _async_to_generator(function() {
|
|
45129
|
-
var hasConfirmed;
|
|
45130
|
-
return __generator(this, function(_state) {
|
|
45131
|
-
switch (_state.label) {
|
|
45132
|
-
case 0:
|
|
45133
|
-
return [
|
|
45134
|
-
4,
|
|
45135
|
-
closeConfirm({
|
|
45136
|
-
onEntered: logging.closePopupShow
|
|
45137
|
-
})
|
|
45138
|
-
];
|
|
45139
|
-
case 1:
|
|
45140
|
-
hasConfirmed = _state.sent();
|
|
45141
|
-
logging.closePopupCtaClick(hasConfirmed);
|
|
45142
|
-
if (hasConfirmed) {
|
|
45143
|
-
closeView();
|
|
45144
|
-
}
|
|
45145
|
-
return [
|
|
45146
|
-
2
|
|
45147
|
-
];
|
|
45148
|
-
}
|
|
45149
|
-
});
|
|
45150
|
-
})();
|
|
45151
|
-
};
|
|
45152
45072
|
return {
|
|
45153
45073
|
handleBack: function() {
|
|
45154
45074
|
if (backEventContext.hasBackEvent) {
|
|
@@ -45156,7 +45076,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45156
45076
|
} else if (navigation.canGoBack()) {
|
|
45157
45077
|
navigation.goBack();
|
|
45158
45078
|
} else {
|
|
45159
|
-
|
|
45079
|
+
closeView();
|
|
45160
45080
|
}
|
|
45161
45081
|
},
|
|
45162
45082
|
handleHomeButtonClick: function() {
|
|
@@ -45169,13 +45089,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45169
45089
|
},
|
|
45170
45090
|
handleCloseButtonClick: function() {
|
|
45171
45091
|
logging.closeButtonClick();
|
|
45172
|
-
|
|
45092
|
+
closeView();
|
|
45173
45093
|
}
|
|
45174
45094
|
};
|
|
45175
45095
|
}, [
|
|
45176
45096
|
backEventContext,
|
|
45177
45097
|
navigation,
|
|
45178
|
-
closeConfirm,
|
|
45179
45098
|
logging
|
|
45180
45099
|
]);
|
|
45181
45100
|
}
|
|
@@ -45402,7 +45321,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45402
45321
|
function useMoreButtonBottomSheet() {
|
|
45403
45322
|
var globals = getAppsInTossGlobals();
|
|
45404
45323
|
var adaptive = useAdaptive();
|
|
45405
|
-
var _useState4 = _sliced_to_array((0,
|
|
45324
|
+
var _useState4 = _sliced_to_array((0, import_react192.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
45406
45325
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45407
45326
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45408
45327
|
var overlay = useOverlay();
|
|
@@ -45411,7 +45330,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45411
45330
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
45412
45331
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
45413
45332
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
45414
|
-
(0,
|
|
45333
|
+
(0, import_react192.useEffect)(function() {
|
|
45415
45334
|
if (!isBottomSheetSupported) {
|
|
45416
45335
|
return;
|
|
45417
45336
|
}
|
|
@@ -45512,7 +45431,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45512
45431
|
function BottomSheetImpressionArea(param) {
|
|
45513
45432
|
var children = param.children;
|
|
45514
45433
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45515
|
-
(0,
|
|
45434
|
+
(0, import_react192.useEffect)(function() {
|
|
45516
45435
|
logging.show();
|
|
45517
45436
|
}, [
|
|
45518
45437
|
logging
|
|
@@ -45532,9 +45451,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45532
45451
|
}
|
|
45533
45452
|
function NavigationBarImpressionArea(param) {
|
|
45534
45453
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
45535
|
-
var hasLogged = (0,
|
|
45454
|
+
var hasLogged = (0, import_react193.useRef)(false);
|
|
45536
45455
|
var logging = useNavigationBarLogging();
|
|
45537
|
-
(0,
|
|
45456
|
+
(0, import_react193.useEffect)(function() {
|
|
45538
45457
|
if (hasLogged.current === false) {
|
|
45539
45458
|
logging.navBarImpression({
|
|
45540
45459
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -45763,42 +45682,21 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45763
45682
|
function GameWebviewNavigationBar() {
|
|
45764
45683
|
var safeAreaTop = useSafeAreaTop();
|
|
45765
45684
|
var openConfirm = useDialog().openConfirm;
|
|
45766
|
-
var global2 = getAppsInTossGlobals();
|
|
45767
45685
|
var logging = useNavigationBarLogging();
|
|
45768
45686
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45769
45687
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45770
45688
|
var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
|
|
45771
|
-
var handleGameWebviewClose = (0,
|
|
45689
|
+
var handleGameWebviewClose = (0, import_react196.useCallback)(function() {
|
|
45772
45690
|
return _async_to_generator(function() {
|
|
45773
|
-
var isConfirmed;
|
|
45774
45691
|
return __generator(this, function(_state) {
|
|
45775
|
-
|
|
45776
|
-
|
|
45777
|
-
|
|
45778
|
-
|
|
45779
|
-
|
|
45780
|
-
openConfirm({
|
|
45781
|
-
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45782
|
-
leftButton: "\uB2EB\uAE30",
|
|
45783
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45784
|
-
closeOnDimmerClick: true,
|
|
45785
|
-
onEntered: logging.closePopupShow
|
|
45786
|
-
})
|
|
45787
|
-
];
|
|
45788
|
-
case 1:
|
|
45789
|
-
isConfirmed = _state.sent();
|
|
45790
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
45791
|
-
if (isConfirmed) {
|
|
45792
|
-
closeView();
|
|
45793
|
-
}
|
|
45794
|
-
return [
|
|
45795
|
-
2
|
|
45796
|
-
];
|
|
45797
|
-
}
|
|
45692
|
+
logging.closeButtonClick();
|
|
45693
|
+
closeView();
|
|
45694
|
+
return [
|
|
45695
|
+
2
|
|
45696
|
+
];
|
|
45798
45697
|
});
|
|
45799
45698
|
})();
|
|
45800
45699
|
}, [
|
|
45801
|
-
global2.brandDisplayName,
|
|
45802
45700
|
logging,
|
|
45803
45701
|
openConfirm
|
|
45804
45702
|
]);
|
|
@@ -45839,45 +45737,23 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45839
45737
|
var _ref, _ref1;
|
|
45840
45738
|
var globals = getAppsInTossGlobals();
|
|
45841
45739
|
var logging = useNavigationBarLogging();
|
|
45842
|
-
var openConfirm = useDialog().openConfirm;
|
|
45843
45740
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45844
45741
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
45845
45742
|
var withHomeButton = (_ref = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withHomeButton) !== null && _ref !== void 0 ? _ref : false;
|
|
45846
45743
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
45847
45744
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
45848
|
-
var handleClose = (0,
|
|
45745
|
+
var handleClose = (0, import_react198.useCallback)(function() {
|
|
45849
45746
|
return _async_to_generator(function() {
|
|
45850
|
-
var isConfirmed;
|
|
45851
45747
|
return __generator(this, function(_state) {
|
|
45852
|
-
|
|
45853
|
-
|
|
45854
|
-
|
|
45855
|
-
|
|
45856
|
-
|
|
45857
|
-
openConfirm({
|
|
45858
|
-
title: "".concat(josa(globals.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45859
|
-
leftButton: "\uB2EB\uAE30",
|
|
45860
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45861
|
-
closeOnDimmerClick: true,
|
|
45862
|
-
onEntered: logging.closePopupShow
|
|
45863
|
-
})
|
|
45864
|
-
];
|
|
45865
|
-
case 1:
|
|
45866
|
-
isConfirmed = _state.sent();
|
|
45867
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
45868
|
-
if (isConfirmed) {
|
|
45869
|
-
closeView();
|
|
45870
|
-
}
|
|
45871
|
-
return [
|
|
45872
|
-
2
|
|
45873
|
-
];
|
|
45874
|
-
}
|
|
45748
|
+
logging.closeButtonClick();
|
|
45749
|
+
closeView();
|
|
45750
|
+
return [
|
|
45751
|
+
2
|
|
45752
|
+
];
|
|
45875
45753
|
});
|
|
45876
45754
|
})();
|
|
45877
45755
|
}, [
|
|
45878
|
-
|
|
45879
|
-
logging,
|
|
45880
|
-
openConfirm
|
|
45756
|
+
logging
|
|
45881
45757
|
]);
|
|
45882
45758
|
return (0, import_jsx_runtime232.jsx)(NavigationBarImpressionArea, {
|
|
45883
45759
|
withHomeButton,
|
|
@@ -46326,8 +46202,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46326
46202
|
}
|
|
46327
46203
|
function useBridgeHandler(param) {
|
|
46328
46204
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
46329
|
-
var ref = (0,
|
|
46330
|
-
var injectedJavaScript = (0,
|
|
46205
|
+
var ref = (0, import_react199.useRef)(null);
|
|
46206
|
+
var injectedJavaScript = (0, import_react199.useMemo)(function() {
|
|
46331
46207
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46332
46208
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
46333
46209
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -46336,7 +46212,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46336
46212
|
}, [
|
|
46337
46213
|
constantHandlerMap
|
|
46338
46214
|
]);
|
|
46339
|
-
(0,
|
|
46215
|
+
(0, import_react199.useEffect)(function() {
|
|
46340
46216
|
var _ref_current;
|
|
46341
46217
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
46342
46218
|
}, [
|
|
@@ -46355,7 +46231,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46355
46231
|
(_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 "));
|
|
46356
46232
|
};
|
|
46357
46233
|
};
|
|
46358
|
-
var $onMessage = (0,
|
|
46234
|
+
var $onMessage = (0, import_react199.useCallback)(function(e64) {
|
|
46359
46235
|
return _async_to_generator(function() {
|
|
46360
46236
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
46361
46237
|
return __generator(this, function(_state) {
|
|
@@ -46428,12 +46304,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46428
46304
|
}
|
|
46429
46305
|
function useSafeAreaInsetsEvent() {
|
|
46430
46306
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46431
|
-
(0,
|
|
46307
|
+
(0, import_react200.useEffect)(function() {
|
|
46432
46308
|
safeAreaInsetsChange.emit(insets);
|
|
46433
46309
|
}, [
|
|
46434
46310
|
insets
|
|
46435
46311
|
]);
|
|
46436
|
-
(0,
|
|
46312
|
+
(0, import_react200.useEffect)(function() {
|
|
46437
46313
|
return function() {
|
|
46438
46314
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
46439
46315
|
};
|
|
@@ -46483,8 +46359,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46483
46359
|
}
|
|
46484
46360
|
}
|
|
46485
46361
|
function useWebViewHistory() {
|
|
46486
|
-
var _useReducer = _sliced_to_array((0,
|
|
46487
|
-
var onNavigationStateChange = (0,
|
|
46362
|
+
var _useReducer = _sliced_to_array((0, import_react202.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46363
|
+
var onNavigationStateChange = (0, import_react202.useCallback)(function(param) {
|
|
46488
46364
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46489
46365
|
dispatch({
|
|
46490
46366
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46492,7 +46368,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46492
46368
|
canGoForward: canGoForward2
|
|
46493
46369
|
});
|
|
46494
46370
|
}, []);
|
|
46495
|
-
var _useMemo4 = (0,
|
|
46371
|
+
var _useMemo4 = (0, import_react202.useMemo)(function() {
|
|
46496
46372
|
var canBack = state.index > 0;
|
|
46497
46373
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46498
46374
|
return {
|
|
@@ -46513,93 +46389,64 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46513
46389
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
46514
46390
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
46515
46391
|
var logging = useNavigationBarLogging();
|
|
46516
|
-
var
|
|
46517
|
-
var global2 = getAppsInTossGlobals();
|
|
46518
|
-
var addEventListener = (0, import_react202.useCallback)(function(handler) {
|
|
46392
|
+
var addEventListener = (0, import_react201.useCallback)(function(handler) {
|
|
46519
46393
|
addWebBackEventListener(handler);
|
|
46520
46394
|
}, [
|
|
46521
46395
|
addWebBackEventListener
|
|
46522
46396
|
]);
|
|
46523
|
-
var removeEventListener = (0,
|
|
46397
|
+
var removeEventListener = (0, import_react201.useCallback)(function(handler) {
|
|
46524
46398
|
removeWebBackEventListener(handler);
|
|
46525
46399
|
}, [
|
|
46526
46400
|
removeWebBackEventListener
|
|
46527
46401
|
]);
|
|
46528
|
-
var handleWebBack = (0,
|
|
46402
|
+
var handleWebBack = (0, import_react201.useCallback)(function() {
|
|
46529
46403
|
return _async_to_generator(function() {
|
|
46530
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current
|
|
46404
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
46531
46405
|
return __generator(this, function(_state) {
|
|
46532
|
-
|
|
46533
|
-
|
|
46534
|
-
|
|
46535
|
-
|
|
46536
|
-
|
|
46537
|
-
|
|
46538
|
-
handler = _step.value;
|
|
46539
|
-
handler();
|
|
46540
|
-
}
|
|
46541
|
-
} catch (err) {
|
|
46542
|
-
_didIteratorError = true;
|
|
46543
|
-
_iteratorError = err;
|
|
46544
|
-
} finally {
|
|
46545
|
-
try {
|
|
46546
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
46547
|
-
_iterator.return();
|
|
46548
|
-
}
|
|
46549
|
-
} finally {
|
|
46550
|
-
if (_didIteratorError) {
|
|
46551
|
-
throw _iteratorError;
|
|
46552
|
-
}
|
|
46553
|
-
}
|
|
46554
|
-
}
|
|
46555
|
-
return [
|
|
46556
|
-
2
|
|
46557
|
-
];
|
|
46406
|
+
if (hasWebBackEvent) {
|
|
46407
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
46408
|
+
try {
|
|
46409
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
46410
|
+
handler = _step.value;
|
|
46411
|
+
handler();
|
|
46558
46412
|
}
|
|
46559
|
-
|
|
46560
|
-
|
|
46561
|
-
|
|
46562
|
-
|
|
46563
|
-
|
|
46564
|
-
|
|
46565
|
-
|
|
46566
|
-
|
|
46567
|
-
|
|
46568
|
-
|
|
46569
|
-
|
|
46570
|
-
|
|
46571
|
-
openConfirm({
|
|
46572
|
-
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46573
|
-
leftButton: "\uB2EB\uAE30",
|
|
46574
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46575
|
-
closeOnDimmerClick: true,
|
|
46576
|
-
onEntered: logging.closePopupShow
|
|
46577
|
-
})
|
|
46578
|
-
];
|
|
46579
|
-
case 2:
|
|
46580
|
-
isConfirmed = _state.sent();
|
|
46581
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
46582
|
-
if (isConfirmed) {
|
|
46583
|
-
closeView();
|
|
46413
|
+
} catch (err) {
|
|
46414
|
+
_didIteratorError = true;
|
|
46415
|
+
_iteratorError = err;
|
|
46416
|
+
} finally {
|
|
46417
|
+
try {
|
|
46418
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
46419
|
+
_iterator.return();
|
|
46420
|
+
}
|
|
46421
|
+
} finally {
|
|
46422
|
+
if (_didIteratorError) {
|
|
46423
|
+
throw _iteratorError;
|
|
46424
|
+
}
|
|
46584
46425
|
}
|
|
46585
|
-
|
|
46586
|
-
|
|
46587
|
-
|
|
46588
|
-
|
|
46589
|
-
|
|
46426
|
+
}
|
|
46427
|
+
return [
|
|
46428
|
+
2
|
|
46429
|
+
];
|
|
46430
|
+
}
|
|
46431
|
+
if (hasHistory) {
|
|
46432
|
+
;
|
|
46433
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
46434
|
+
} else {
|
|
46435
|
+
closeView();
|
|
46590
46436
|
}
|
|
46437
|
+
return [
|
|
46438
|
+
2
|
|
46439
|
+
];
|
|
46591
46440
|
});
|
|
46592
46441
|
})();
|
|
46593
46442
|
}, [
|
|
46594
|
-
global2.brandDisplayName,
|
|
46595
46443
|
hasHistory,
|
|
46596
46444
|
hasWebBackEvent,
|
|
46597
46445
|
webBackHandlersRef,
|
|
46598
46446
|
logging,
|
|
46599
|
-
openConfirm,
|
|
46600
46447
|
webViewRef
|
|
46601
46448
|
]);
|
|
46602
|
-
var handleWebHome = (0,
|
|
46449
|
+
var handleWebHome = (0, import_react201.useCallback)(function() {
|
|
46603
46450
|
var _webViewRef_current;
|
|
46604
46451
|
logging.homeButtonClick();
|
|
46605
46452
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -46614,7 +46461,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46614
46461
|
webViewInitialURL,
|
|
46615
46462
|
webViewRef
|
|
46616
46463
|
]);
|
|
46617
|
-
return (0,
|
|
46464
|
+
return (0, import_react201.useMemo)(function() {
|
|
46618
46465
|
return {
|
|
46619
46466
|
addEventListener,
|
|
46620
46467
|
removeEventListener,
|
|
@@ -46919,8 +46766,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46919
46766
|
if (!TYPES.includes(type)) {
|
|
46920
46767
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
46921
46768
|
}
|
|
46922
|
-
var webViewRef = (0,
|
|
46923
|
-
var url = (0,
|
|
46769
|
+
var webViewRef = (0, import_react194.useRef)(null);
|
|
46770
|
+
var url = (0, import_react194.useMemo)(function() {
|
|
46924
46771
|
return getWebViewURL(local);
|
|
46925
46772
|
}, [
|
|
46926
46773
|
local
|
|
@@ -46932,7 +46779,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46932
46779
|
var global2 = getAppsInTossGlobals();
|
|
46933
46780
|
var navigationBarContext = useNavigationBarContext();
|
|
46934
46781
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
46935
|
-
var _useState6 = _sliced_to_array((0,
|
|
46782
|
+
var _useState6 = _sliced_to_array((0, import_react194.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
46936
46783
|
var handler = useBridgeHandler({
|
|
46937
46784
|
onMessage,
|
|
46938
46785
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -47075,7 +46922,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47075
46922
|
}
|
|
47076
46923
|
})
|
|
47077
46924
|
});
|
|
47078
|
-
var headerPropForExternalWebView = (0,
|
|
46925
|
+
var headerPropForExternalWebView = (0, import_react194.useMemo)(function() {
|
|
47079
46926
|
var _ref;
|
|
47080
46927
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
47081
46928
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -47100,7 +46947,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47100
46947
|
colorPreference: "light"
|
|
47101
46948
|
});
|
|
47102
46949
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
47103
|
-
(0,
|
|
46950
|
+
(0, import_react194.useEffect)(function() {
|
|
47104
46951
|
var callback = function() {
|
|
47105
46952
|
webBackHandler.handleWebBack();
|
|
47106
46953
|
return true;
|
|
@@ -47176,7 +47023,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47176
47023
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47177
47024
|
}));
|
|
47178
47025
|
}
|
|
47179
|
-
var import_react_native187, import_react179, import_react180, import_jsx_runtime216, import_react181, import_jsx_runtime217, import_react182, import_react_native191, import_react183, import_react_native193, import_react184, import_react185, import_react_native196, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native199, import_react191, import_react192,
|
|
47026
|
+
var import_react_native187, import_react179, import_react180, import_jsx_runtime216, import_react181, import_jsx_runtime217, import_react182, import_react_native191, import_react183, import_react_native193, import_react184, import_react185, import_react_native196, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native199, import_react191, import_react192, import_react_native204, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react193, import_jsx_runtime225, import_jsx_runtime226, import_react_native207, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react194, import_react_native209, import_react195, import_react_native210, import_react196, import_react_native212, import_jsx_runtime230, import_jsx_runtime231, import_react197, import_react198, import_jsx_runtime232, import_jsx_runtime233, import_react199, import_react200, import_react201, import_react202, import_react_native218, import_react203, import_react204, import_jsx_runtime234, import_react205, import_react_native221, import_react206, import_react_native222, import_jsx_runtime235, import_react207, 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;
|
|
47180
47027
|
var init_dist8 = __esm({
|
|
47181
47028
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47182
47029
|
"use strict";
|
|
@@ -47243,15 +47090,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47243
47090
|
import_react_native199 = __toESM(require_react_native(), 1);
|
|
47244
47091
|
init_src3();
|
|
47245
47092
|
import_react191 = __toESM(require_react(), 1);
|
|
47246
|
-
init_esm7();
|
|
47247
|
-
init_dist6();
|
|
47248
|
-
import_react192 = __toESM(require_react(), 1);
|
|
47249
47093
|
init_src3();
|
|
47250
47094
|
init_dist5();
|
|
47251
47095
|
init_src3();
|
|
47252
47096
|
init_esm7();
|
|
47253
47097
|
init_private2();
|
|
47254
|
-
|
|
47098
|
+
import_react192 = __toESM(require_react(), 1);
|
|
47255
47099
|
init_dist5();
|
|
47256
47100
|
init_src3();
|
|
47257
47101
|
init_esm7();
|
|
@@ -47267,7 +47111,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47267
47111
|
init_src3();
|
|
47268
47112
|
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47269
47113
|
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47270
|
-
|
|
47114
|
+
import_react193 = __toESM(require_react(), 1);
|
|
47271
47115
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47272
47116
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47273
47117
|
init_react_native_safe_area_context();
|
|
@@ -47289,28 +47133,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47289
47133
|
init_src3();
|
|
47290
47134
|
init_esm7();
|
|
47291
47135
|
init_private2();
|
|
47292
|
-
|
|
47136
|
+
import_react194 = __toESM(require_react(), 1);
|
|
47293
47137
|
import_react_native209 = __toESM(require_react_native(), 1);
|
|
47294
47138
|
init_dist5();
|
|
47295
47139
|
init_react_native_webview();
|
|
47296
|
-
|
|
47140
|
+
import_react195 = __toESM(require_react(), 1);
|
|
47297
47141
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
47298
47142
|
init_react_native_safe_area_context();
|
|
47299
47143
|
init_src3();
|
|
47300
47144
|
init_esm7();
|
|
47301
47145
|
init_private2();
|
|
47302
|
-
|
|
47303
|
-
import_react197 = __toESM(require_react(), 1);
|
|
47146
|
+
import_react196 = __toESM(require_react(), 1);
|
|
47304
47147
|
import_react_native212 = __toESM(require_react_native(), 1);
|
|
47305
47148
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47306
47149
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47307
47150
|
init_react_native_webview();
|
|
47308
|
-
|
|
47151
|
+
import_react197 = __toESM(require_react(), 1);
|
|
47309
47152
|
init_src3();
|
|
47310
|
-
init_esm7();
|
|
47311
47153
|
init_private2();
|
|
47312
|
-
|
|
47313
|
-
import_react199 = __toESM(require_react(), 1);
|
|
47154
|
+
import_react198 = __toESM(require_react(), 1);
|
|
47314
47155
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47315
47156
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47316
47157
|
init_dist5();
|
|
@@ -47319,19 +47160,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47319
47160
|
init_dist5();
|
|
47320
47161
|
init_src3();
|
|
47321
47162
|
init_src3();
|
|
47322
|
-
|
|
47163
|
+
import_react199 = __toESM(require_react(), 1);
|
|
47323
47164
|
init_react_native_safe_area_context();
|
|
47324
|
-
|
|
47165
|
+
import_react200 = __toESM(require_react(), 1);
|
|
47325
47166
|
init_src3();
|
|
47326
|
-
|
|
47327
|
-
init_dist6();
|
|
47167
|
+
import_react201 = __toESM(require_react(), 1);
|
|
47328
47168
|
import_react202 = __toESM(require_react(), 1);
|
|
47329
|
-
import_react203 = __toESM(require_react(), 1);
|
|
47330
47169
|
init_dist5();
|
|
47331
47170
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47332
47171
|
init_dist5();
|
|
47172
|
+
import_react203 = __toESM(require_react(), 1);
|
|
47333
47173
|
import_react204 = __toESM(require_react(), 1);
|
|
47334
|
-
import_react205 = __toESM(require_react(), 1);
|
|
47335
47174
|
init_dist5();
|
|
47336
47175
|
init_src3();
|
|
47337
47176
|
init_esm7();
|
|
@@ -47341,12 +47180,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47341
47180
|
init_dist5();
|
|
47342
47181
|
init_dist3();
|
|
47343
47182
|
init_dist3();
|
|
47344
|
-
|
|
47183
|
+
import_react205 = __toESM(require_react(), 1);
|
|
47345
47184
|
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47346
|
-
|
|
47185
|
+
import_react206 = __toESM(require_react(), 1);
|
|
47347
47186
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47348
47187
|
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
47349
|
-
|
|
47188
|
+
import_react207 = __toESM(require_react(), 1);
|
|
47350
47189
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47351
47190
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
47352
47191
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47901,12 +47740,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47901
47740
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
47902
47741
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47903
47742
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47904
|
-
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47905
|
-
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47906
47743
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47907
47744
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47908
|
-
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47909
|
-
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47910
47745
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47911
47746
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47912
47747
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -47954,8 +47789,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47954
47789
|
AppsInToss = {
|
|
47955
47790
|
registerApp
|
|
47956
47791
|
};
|
|
47957
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
47958
|
-
(0,
|
|
47792
|
+
GameWebView = /* @__PURE__ */ (0, import_react195.forwardRef)(function GameWebView2(props, ref) {
|
|
47793
|
+
(0, import_react195.useEffect)(function() {
|
|
47959
47794
|
if (import_react_native210.Platform.OS === "ios") {
|
|
47960
47795
|
setIosSwipeGestureEnabled({
|
|
47961
47796
|
isEnabled: false
|
|
@@ -47981,7 +47816,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47981
47816
|
]
|
|
47982
47817
|
});
|
|
47983
47818
|
});
|
|
47984
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
47819
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react197.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
47985
47820
|
var _ref = [
|
|
47986
47821
|
_03,
|
|
47987
47822
|
_1
|