@apps-in-toss/web-framework 1.4.5 → 1.4.7
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.js +289 -189
- package/dist/prebuilt/dev.ios.js +289 -189
- package/dist/prebuilt/prod.android.js +166 -61
- package/dist/prebuilt/prod.ios.js +166 -61
- package/package.json +8 -8
|
@@ -491,6 +491,36 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
493
|
|
|
494
|
+
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_class_call_check.js
|
|
495
|
+
function _class_call_check(instance, Constructor) {
|
|
496
|
+
if (!_instanceof1(instance, Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
497
|
+
}
|
|
498
|
+
var init_class_call_check = __esm({
|
|
499
|
+
"../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_class_call_check.js"() {
|
|
500
|
+
init_instanceof();
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_create_class.js
|
|
505
|
+
function _defineProperties(target, props) {
|
|
506
|
+
for (var i60 = 0; i60 < props.length; i60++) {
|
|
507
|
+
var descriptor = props[i60];
|
|
508
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
509
|
+
descriptor.configurable = true;
|
|
510
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
511
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
515
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
516
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
517
|
+
return Constructor;
|
|
518
|
+
}
|
|
519
|
+
var init_create_class = __esm({
|
|
520
|
+
"../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_create_class.js"() {
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
|
|
494
524
|
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_extends.js
|
|
495
525
|
function _extends() {
|
|
496
526
|
_extends = Object.assign || function assign(target) {
|
|
@@ -2307,36 +2337,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
2307
2337
|
}
|
|
2308
2338
|
});
|
|
2309
2339
|
|
|
2310
|
-
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_class_call_check.js
|
|
2311
|
-
function _class_call_check(instance, Constructor) {
|
|
2312
|
-
if (!_instanceof1(instance, Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
2313
|
-
}
|
|
2314
|
-
var init_class_call_check = __esm({
|
|
2315
|
-
"../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_class_call_check.js"() {
|
|
2316
|
-
init_instanceof();
|
|
2317
|
-
}
|
|
2318
|
-
});
|
|
2319
|
-
|
|
2320
|
-
// ../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_create_class.js
|
|
2321
|
-
function _defineProperties(target, props) {
|
|
2322
|
-
for (var i60 = 0; i60 < props.length; i60++) {
|
|
2323
|
-
var descriptor = props[i60];
|
|
2324
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
2325
|
-
descriptor.configurable = true;
|
|
2326
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
2327
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2328
|
-
}
|
|
2329
|
-
}
|
|
2330
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
2331
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2332
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
2333
|
-
return Constructor;
|
|
2334
|
-
}
|
|
2335
|
-
var init_create_class = __esm({
|
|
2336
|
-
"../../.yarn/cache/@swc-helpers-npm-0.5.13-710c6c1e6e-b9df578401.zip/node_modules/@swc/helpers/esm/_create_class.js"() {
|
|
2337
|
-
}
|
|
2338
|
-
});
|
|
2339
|
-
|
|
2340
2340
|
// ../../.yarn/cache/webidl-conversions-npm-5.0.0-5fd5be45a0-bf31df332e.zip/node_modules/webidl-conversions/lib/index.js
|
|
2341
2341
|
var require_lib = __commonJS({
|
|
2342
2342
|
"../../.yarn/cache/webidl-conversions-npm-5.0.0-5fd5be45a0-bf31df332e.zip/node_modules/webidl-conversions/lib/index.js"(exports) {
|
|
@@ -46480,21 +46480,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46480
46480
|
});
|
|
46481
46481
|
}
|
|
46482
46482
|
function useBridgeHandler(param) {
|
|
46483
|
-
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap
|
|
46483
|
+
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
46484
46484
|
var ref = (0, import_react231.useRef)(null);
|
|
46485
46485
|
var injectedJavaScript = (0, import_react231.useMemo)(function() {
|
|
46486
|
-
return
|
|
46487
|
-
|
|
46488
|
-
|
|
46489
|
-
|
|
46490
|
-
|
|
46491
|
-
|
|
46492
|
-
|
|
46493
|
-
|
|
46494
|
-
|
|
46486
|
+
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46487
|
+
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
46488
|
+
acc[key] = typeof value === "function" ? value() : value;
|
|
46489
|
+
return acc;
|
|
46490
|
+
}, {})), ";");
|
|
46491
|
+
}, [
|
|
46492
|
+
constantHandlerMap
|
|
46493
|
+
]);
|
|
46494
|
+
(0, import_react231.useEffect)(function() {
|
|
46495
|
+
var _ref_current;
|
|
46496
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
46495
46497
|
}, [
|
|
46496
|
-
|
|
46497
|
-
originalInjectedJavaScript
|
|
46498
|
+
injectedJavaScript
|
|
46498
46499
|
]);
|
|
46499
46500
|
var createHandleOnEvent = function(functionName, eventId) {
|
|
46500
46501
|
return function(response) {
|
|
@@ -46515,7 +46516,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46515
46516
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
46516
46517
|
return __generator(this, function(_state) {
|
|
46517
46518
|
onMessage === null || onMessage === void 0 ? void 0 : onMessage(e59);
|
|
46518
|
-
data =
|
|
46519
|
+
data = parseNativeEventData(e59.nativeEvent.data);
|
|
46519
46520
|
if ((typeof data === "undefined" ? "undefined" : _type_of(data)) !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || ![
|
|
46520
46521
|
"addEventListener",
|
|
46521
46522
|
"removeEventListener",
|
|
@@ -46579,6 +46580,32 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46579
46580
|
onMessage: $onMessage
|
|
46580
46581
|
};
|
|
46581
46582
|
}
|
|
46583
|
+
function parseNativeEventData(data) {
|
|
46584
|
+
try {
|
|
46585
|
+
return JSON.parse(data);
|
|
46586
|
+
} catch (error) {
|
|
46587
|
+
console.error(error);
|
|
46588
|
+
return null;
|
|
46589
|
+
}
|
|
46590
|
+
}
|
|
46591
|
+
function useSafeAreaInsetsEmitter() {
|
|
46592
|
+
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
46593
|
+
var emitter = (0, import_react232.useMemo)(function() {
|
|
46594
|
+
return new EventEmitter();
|
|
46595
|
+
}, []);
|
|
46596
|
+
(0, import_react232.useEffect)(function() {
|
|
46597
|
+
emitter.emit("safeAreaInsetsChange", insets);
|
|
46598
|
+
return function() {
|
|
46599
|
+
emitter.off("safeAreaInsetsChange", function(listener) {
|
|
46600
|
+
return listener(insets);
|
|
46601
|
+
});
|
|
46602
|
+
};
|
|
46603
|
+
}, [
|
|
46604
|
+
emitter,
|
|
46605
|
+
insets
|
|
46606
|
+
]);
|
|
46607
|
+
return emitter;
|
|
46608
|
+
}
|
|
46582
46609
|
function reducer(state, action) {
|
|
46583
46610
|
switch (action.type) {
|
|
46584
46611
|
case "NAVIGATION_CHANGE": {
|
|
@@ -46622,8 +46649,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46622
46649
|
}
|
|
46623
46650
|
}
|
|
46624
46651
|
function useWebViewHistory() {
|
|
46625
|
-
var _useReducer = _sliced_to_array((0,
|
|
46626
|
-
var onNavigationStateChange = (0,
|
|
46652
|
+
var _useReducer = _sliced_to_array((0, import_react234.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46653
|
+
var onNavigationStateChange = (0, import_react234.useCallback)(function(param) {
|
|
46627
46654
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46628
46655
|
dispatch({
|
|
46629
46656
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46631,7 +46658,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46631
46658
|
canGoForward: canGoForward2
|
|
46632
46659
|
});
|
|
46633
46660
|
}, []);
|
|
46634
|
-
var
|
|
46661
|
+
var _useMemo5 = (0, import_react234.useMemo)(function() {
|
|
46635
46662
|
var canBack = state.index > 0;
|
|
46636
46663
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46637
46664
|
return {
|
|
@@ -46641,7 +46668,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46641
46668
|
}, [
|
|
46642
46669
|
state.index,
|
|
46643
46670
|
state.stack.length
|
|
46644
|
-
]), canGoBack =
|
|
46671
|
+
]), canGoBack = _useMemo5.canGoBack, canGoForward = _useMemo5.canGoForward;
|
|
46645
46672
|
return {
|
|
46646
46673
|
onNavigationStateChange,
|
|
46647
46674
|
hasHistory: canGoBack,
|
|
@@ -46655,17 +46682,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46655
46682
|
var logging = useNavigationBarLogging();
|
|
46656
46683
|
var openConfirm = useDialog().openConfirm;
|
|
46657
46684
|
var global2 = getAppsInTossGlobals();
|
|
46658
|
-
var addEventListener = (0,
|
|
46685
|
+
var addEventListener = (0, import_react233.useCallback)(function(handler) {
|
|
46659
46686
|
addWebBackEventListener(handler);
|
|
46660
46687
|
}, [
|
|
46661
46688
|
addWebBackEventListener
|
|
46662
46689
|
]);
|
|
46663
|
-
var removeEventListener = (0,
|
|
46690
|
+
var removeEventListener = (0, import_react233.useCallback)(function(handler) {
|
|
46664
46691
|
removeWebBackEventListener(handler);
|
|
46665
46692
|
}, [
|
|
46666
46693
|
removeWebBackEventListener
|
|
46667
46694
|
]);
|
|
46668
|
-
var handleWebBack = (0,
|
|
46695
|
+
var handleWebBack = (0, import_react233.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46669
46696
|
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
46670
46697
|
return __generator(this, function(_state) {
|
|
46671
46698
|
switch (_state.label) {
|
|
@@ -46739,7 +46766,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46739
46766
|
openConfirm,
|
|
46740
46767
|
webViewRef
|
|
46741
46768
|
]);
|
|
46742
|
-
var handleWebHome = (0,
|
|
46769
|
+
var handleWebHome = (0, import_react233.useCallback)(function() {
|
|
46743
46770
|
var _webViewRef_current;
|
|
46744
46771
|
logging.homeButtonClick();
|
|
46745
46772
|
if (hasWebBackEvent) {
|
|
@@ -46772,7 +46799,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46772
46799
|
logging,
|
|
46773
46800
|
webViewRef
|
|
46774
46801
|
]);
|
|
46775
|
-
return (0,
|
|
46802
|
+
return (0, import_react233.useMemo)(function() {
|
|
46776
46803
|
return {
|
|
46777
46804
|
addEventListener,
|
|
46778
46805
|
removeEventListener,
|
|
@@ -47023,15 +47050,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47023
47050
|
]);
|
|
47024
47051
|
var top = useSafeAreaTop();
|
|
47025
47052
|
var bottom = useSafeAreaBottom();
|
|
47053
|
+
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47026
47054
|
var global2 = getAppsInTossGlobals();
|
|
47027
47055
|
var navigationBarContext = useNavigationBarContext();
|
|
47028
|
-
var
|
|
47056
|
+
var safeAreaInsetsEmitter = useSafeAreaInsetsEmitter();
|
|
47029
47057
|
var _useState8 = _sliced_to_array((0, import_react226.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState8[0], setAllowsBackForwardNavigationGestures = _useState8[1];
|
|
47030
47058
|
var handler = useBridgeHandler({
|
|
47031
47059
|
onMessage,
|
|
47032
|
-
injectedJavaScript: [
|
|
47033
|
-
disableTextSelectionCSS
|
|
47034
|
-
].join("\n"),
|
|
47035
47060
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
47036
47061
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
47037
47062
|
navigationAccessoryEvent: function(param) {
|
|
@@ -47063,6 +47088,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47063
47088
|
options
|
|
47064
47089
|
});
|
|
47065
47090
|
},
|
|
47091
|
+
safeAreaInsetsChange: function(param) {
|
|
47092
|
+
var onEvent = param.onEvent;
|
|
47093
|
+
safeAreaInsetsEmitter.on("safeAreaInsetsChange", onEvent);
|
|
47094
|
+
return function() {
|
|
47095
|
+
safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
|
|
47096
|
+
};
|
|
47097
|
+
},
|
|
47066
47098
|
/** @internal */
|
|
47067
47099
|
appBridgeCallbackEvent: function(param) {
|
|
47068
47100
|
var onEvent = param.onEvent, onError2 = param.onError, options = param.options;
|
|
@@ -47090,6 +47122,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47090
47122
|
},
|
|
47091
47123
|
getSafeAreaBottom: function() {
|
|
47092
47124
|
return bottom;
|
|
47125
|
+
},
|
|
47126
|
+
getSafeAreaLeft: function() {
|
|
47127
|
+
return insets.left;
|
|
47128
|
+
},
|
|
47129
|
+
getSafeAreaRight: function() {
|
|
47130
|
+
return insets.right;
|
|
47093
47131
|
}
|
|
47094
47132
|
}), Object.fromEntries(Object.entries(global2).map(function(param) {
|
|
47095
47133
|
var _$_param = _sliced_to_array(param, 2), key = _$_param[0], value = _$_param[1];
|
|
@@ -47198,6 +47236,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47198
47236
|
}, [
|
|
47199
47237
|
webBackHandler
|
|
47200
47238
|
]);
|
|
47239
|
+
var globalScripts = useGlobalScripts();
|
|
47201
47240
|
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
47202
47241
|
ref: refs
|
|
47203
47242
|
}, props, headerPropForExternalWebView), {
|
|
@@ -47223,17 +47262,36 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47223
47262
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
47224
47263
|
thirdPartyCookiesEnabled: true,
|
|
47225
47264
|
onMessage: handler.onMessage,
|
|
47226
|
-
injectedJavaScript:
|
|
47227
|
-
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
|
|
47265
|
+
injectedJavaScript: globalScripts.afterLoad,
|
|
47266
|
+
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
47228
47267
|
decelerationRate: import_react_native221.Platform.OS === "ios" ? 1 : void 0,
|
|
47229
47268
|
allowsBackForwardNavigationGestures
|
|
47230
47269
|
}));
|
|
47231
47270
|
}
|
|
47232
|
-
|
|
47271
|
+
function useGlobalScripts() {
|
|
47272
|
+
var global2 = getAppsInTossGlobals();
|
|
47273
|
+
var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
|
|
47274
|
+
var applyGameResourcesCache = "\n (function () {\n if (typeof caches === 'undefined') {\n return;\n }\n const cacheKeyPrefix = '@apps-in-toss/caches/';\n const cacheKey = `${cacheKeyPrefix}".concat(global2.deploymentId, "`;\n window.addEventListener('load', async () => {\n const keys = await caches.keys();\n for (const key of keys) {\n if (key.startsWith(cacheKeyPrefix) && key !== cacheKey) {\n await caches.delete(key);\n }\n }\n });\n window.fetch = new Proxy(window.fetch, {\n async apply(originalFetch, thisArg, args) {\n const request = new Request(args[0], args[1]);\n if (!/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/.test(request.url)) {\n return await originalFetch.call(thisArg, request);\n }\n const cache = await caches.open(cacheKey);\n const cached = await cache.match(request);\n if (cached) {\n const eTag = cached.headers.get('ETag');\n const lastModified = cached.headers.get('Last-Modified');\n if (eTag) {\n request.headers.set('If-None-Match', eTag);\n }\n if (lastModified) {\n request.headers.set('If-Modified-Since', lastModified);\n }\n const revalidated = await originalFetch.call(thisArg, request);\n if (revalidated.status === 304) {\n return cached;\n }\n cache.put(request, revalidated.clone());\n return revalidated;\n }\n const response = await originalFetch.call(thisArg, request);\n cache.put(request, response.clone());\n return response;\n },\n });\n })();\n ");
|
|
47275
|
+
return {
|
|
47276
|
+
beforeLoad: mergeScripts(global2.webViewType === "game" && applyGameResourcesCache),
|
|
47277
|
+
afterLoad: mergeScripts(disableTextSelectionCSS)
|
|
47278
|
+
};
|
|
47279
|
+
}
|
|
47280
|
+
function mergeScripts() {
|
|
47281
|
+
for (var _len = arguments.length, scripts = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
47282
|
+
scripts[_key] = arguments[_key];
|
|
47283
|
+
}
|
|
47284
|
+
return scripts.filter(function(script) {
|
|
47285
|
+
return typeof script === "string";
|
|
47286
|
+
}).join("\n");
|
|
47287
|
+
}
|
|
47288
|
+
var import_react_native199, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_jsx_runtime218, import_react213, import_react214, import_react_native205, import_react215, import_react_native207, import_react216, import_react_native209, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime219, import_jsx_runtime220, import_react221, import_react_native212, import_react222, import_react223, import_react224, import_react_native217, import_jsx_runtime221, import_jsx_runtime222, import_react225, import_jsx_runtime223, import_jsx_runtime224, import_react_native219, import_jsx_runtime225, import_jsx_runtime226, import_jsx_runtime227, import_react226, import_react_native221, import_react227, import_react_native222, import_react228, import_react_native224, import_jsx_runtime228, import_jsx_runtime229, import_react229, import_react230, import_jsx_runtime230, import_jsx_runtime231, import_react231, import_react232, import_react233, import_react234, import_react_native227, import_react235, import_react236, import_jsx_runtime232, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, 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, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, globalEventListenerMap, EventEmitter, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer3, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
47233
47289
|
var init_dist8 = __esm({
|
|
47234
47290
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
47235
47291
|
"use strict";
|
|
47236
47292
|
init_async_to_generator();
|
|
47293
|
+
init_class_call_check();
|
|
47294
|
+
init_create_class();
|
|
47237
47295
|
init_extends();
|
|
47238
47296
|
init_instanceof();
|
|
47239
47297
|
init_object_destructuring_empty();
|
|
@@ -47335,6 +47393,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47335
47393
|
init_async_bridges();
|
|
47336
47394
|
init_constant_bridges2();
|
|
47337
47395
|
init_event_bridges();
|
|
47396
|
+
init_react_native_safe_area_context();
|
|
47338
47397
|
init_src3();
|
|
47339
47398
|
init_esm8();
|
|
47340
47399
|
init_private2();
|
|
@@ -47363,16 +47422,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47363
47422
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47364
47423
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47365
47424
|
import_react231 = __toESM(require_react(), 1);
|
|
47425
|
+
init_react_native_safe_area_context();
|
|
47426
|
+
import_react232 = __toESM(require_react(), 1);
|
|
47366
47427
|
init_src3();
|
|
47367
47428
|
init_esm8();
|
|
47368
47429
|
init_dist7();
|
|
47369
|
-
import_react232 = __toESM(require_react(), 1);
|
|
47370
47430
|
import_react233 = __toESM(require_react(), 1);
|
|
47431
|
+
import_react234 = __toESM(require_react(), 1);
|
|
47371
47432
|
init_dist6();
|
|
47372
47433
|
import_react_native227 = __toESM(require_react_native(), 1);
|
|
47373
47434
|
init_dist6();
|
|
47374
|
-
import_react234 = __toESM(require_react(), 1);
|
|
47375
47435
|
import_react235 = __toESM(require_react(), 1);
|
|
47436
|
+
import_react236 = __toESM(require_react(), 1);
|
|
47376
47437
|
init_dist6();
|
|
47377
47438
|
init_src3();
|
|
47378
47439
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47971,6 +48032,50 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47971
48032
|
});
|
|
47972
48033
|
});
|
|
47973
48034
|
globalEventListenerMap = /* @__PURE__ */ new Map();
|
|
48035
|
+
EventEmitter = /* @__PURE__ */ function() {
|
|
48036
|
+
"use strict";
|
|
48037
|
+
function EventEmitter2() {
|
|
48038
|
+
_class_call_check(this, EventEmitter2);
|
|
48039
|
+
this.listeners = {};
|
|
48040
|
+
}
|
|
48041
|
+
_create_class(EventEmitter2, [
|
|
48042
|
+
{
|
|
48043
|
+
key: "on",
|
|
48044
|
+
value: function on3(event, listener) {
|
|
48045
|
+
if (!this.listeners[event]) {
|
|
48046
|
+
this.listeners[event] = [];
|
|
48047
|
+
}
|
|
48048
|
+
this.listeners[event].push(listener);
|
|
48049
|
+
}
|
|
48050
|
+
},
|
|
48051
|
+
{
|
|
48052
|
+
key: "emit",
|
|
48053
|
+
value: function emit(event) {
|
|
48054
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
48055
|
+
args[_key - 1] = arguments[_key];
|
|
48056
|
+
}
|
|
48057
|
+
if (!this.listeners[event]) {
|
|
48058
|
+
return;
|
|
48059
|
+
}
|
|
48060
|
+
this.listeners[event].forEach(function(listener) {
|
|
48061
|
+
return listener.apply(void 0, _to_consumable_array(args));
|
|
48062
|
+
});
|
|
48063
|
+
}
|
|
48064
|
+
},
|
|
48065
|
+
{
|
|
48066
|
+
key: "off",
|
|
48067
|
+
value: function off(event, listener) {
|
|
48068
|
+
if (!this.listeners[event]) {
|
|
48069
|
+
return;
|
|
48070
|
+
}
|
|
48071
|
+
this.listeners[event] = this.listeners[event].filter(function(l48) {
|
|
48072
|
+
return l48 !== listener;
|
|
48073
|
+
});
|
|
48074
|
+
}
|
|
48075
|
+
}
|
|
48076
|
+
]);
|
|
48077
|
+
return EventEmitter2;
|
|
48078
|
+
}();
|
|
47974
48079
|
INITIAL_STATE = {
|
|
47975
48080
|
stack: [],
|
|
47976
48081
|
index: -1
|