@apps-in-toss/web-framework 2.9.0 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.rn84.js +511 -360
- package/dist/prebuilt/dev.ios.rn84.js +511 -360
- package/dist/prebuilt/prod.android.rn72.js +585 -251
- package/dist/prebuilt/prod.android.rn84.js +577 -243
- package/dist/prebuilt/prod.ios.rn72.js +585 -251
- package/dist/prebuilt/prod.ios.rn84.js +577 -243
- package/package.json +8 -8
|
@@ -600,7 +600,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
600
600
|
var use_js_1 = require_use();
|
|
601
601
|
var context_js_1 = require_context();
|
|
602
602
|
var useMemo12 = function(fn7, deps) {
|
|
603
|
-
var
|
|
603
|
+
var cache3 = react_1.default.useMemo(function() {
|
|
604
604
|
var subscriptions = /* @__PURE__ */ new Map();
|
|
605
605
|
var storeMap = /* @__PURE__ */ new Map();
|
|
606
606
|
var callback;
|
|
@@ -673,14 +673,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
673
673
|
getStore
|
|
674
674
|
};
|
|
675
675
|
}, deps);
|
|
676
|
-
return react_1.default.useSyncExternalStore(
|
|
676
|
+
return react_1.default.useSyncExternalStore(cache3.subscribe, function() {
|
|
677
677
|
try {
|
|
678
678
|
(0, use_js_1.setOverride)(function(usable) {
|
|
679
679
|
var storeContext = (0, context_js_1.getStoreContext)(usable);
|
|
680
680
|
if (!storeContext) {
|
|
681
681
|
throw new Error("use must be used with createContext from react18-use");
|
|
682
682
|
}
|
|
683
|
-
var store =
|
|
683
|
+
var store = cache3.getStore(storeContext);
|
|
684
684
|
return store.getValue();
|
|
685
685
|
});
|
|
686
686
|
return fn7();
|
|
@@ -1641,7 +1641,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
1641
1641
|
});
|
|
1642
1642
|
}
|
|
1643
1643
|
function createBrickModuleCompat(globalRef) {
|
|
1644
|
-
var
|
|
1644
|
+
var cache3 = /* @__PURE__ */ new Map();
|
|
1645
1645
|
var reactNativeCache = null;
|
|
1646
1646
|
var getReactNativeRuntime = function() {
|
|
1647
1647
|
if (reactNativeCache != null) {
|
|
@@ -1684,22 +1684,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
1684
1684
|
};
|
|
1685
1685
|
return {
|
|
1686
1686
|
get: function get(moduleName) {
|
|
1687
|
-
if (
|
|
1688
|
-
return
|
|
1687
|
+
if (cache3.has(moduleName)) {
|
|
1688
|
+
return cache3.get(moduleName);
|
|
1689
1689
|
}
|
|
1690
1690
|
var factory = moduleFactories[moduleName];
|
|
1691
1691
|
if (typeof factory !== "function") {
|
|
1692
1692
|
throw new Error('[react-native-reverse-compatibility-plugin] Unsupported BrickModule.get("'.concat(moduleName, '") in RN72 target'));
|
|
1693
1693
|
}
|
|
1694
1694
|
var moduleInstance = factory();
|
|
1695
|
-
|
|
1695
|
+
cache3.set(moduleName, moduleInstance);
|
|
1696
1696
|
return moduleInstance;
|
|
1697
1697
|
},
|
|
1698
1698
|
getRegisteredModules: function getRegisteredModules() {
|
|
1699
1699
|
return Object.keys(moduleFactories);
|
|
1700
1700
|
},
|
|
1701
1701
|
clearCache: function clearCache() {
|
|
1702
|
-
|
|
1702
|
+
cache3.clear();
|
|
1703
1703
|
}
|
|
1704
1704
|
};
|
|
1705
1705
|
}
|
|
@@ -9477,13 +9477,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
9477
9477
|
|
|
9478
9478
|
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_wrap_native_super.js
|
|
9479
9479
|
function _wrap_native_super(Class) {
|
|
9480
|
-
var
|
|
9480
|
+
var _cache3 = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
9481
9481
|
_wrap_native_super = function _wrap_native_super2(Class2) {
|
|
9482
9482
|
if (Class2 === null || !_is_native_function(Class2)) return Class2;
|
|
9483
9483
|
if (typeof Class2 !== "function") throw new TypeError("Super expression must either be null or a function");
|
|
9484
|
-
if (typeof
|
|
9485
|
-
if (
|
|
9486
|
-
|
|
9484
|
+
if (typeof _cache3 !== "undefined") {
|
|
9485
|
+
if (_cache3.has(Class2)) return _cache3.get(Class2);
|
|
9486
|
+
_cache3.set(Class2, Wrapper);
|
|
9487
9487
|
}
|
|
9488
9488
|
function Wrapper() {
|
|
9489
9489
|
return _construct(Class2, arguments, _get_prototype_of(this).constructor);
|
|
@@ -11667,6 +11667,56 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11667
11667
|
});
|
|
11668
11668
|
})();
|
|
11669
11669
|
}
|
|
11670
|
+
function getAnonymousKey() {
|
|
11671
|
+
return _async_to_generator(function() {
|
|
11672
|
+
var isSupported, response, unused;
|
|
11673
|
+
return __generator(this, function(_state) {
|
|
11674
|
+
switch (_state.label) {
|
|
11675
|
+
case 0:
|
|
11676
|
+
isSupported = isMinVersionSupported(USER_KEY_MIN_VERSION);
|
|
11677
|
+
if (!isSupported) {
|
|
11678
|
+
return [
|
|
11679
|
+
2
|
|
11680
|
+
];
|
|
11681
|
+
}
|
|
11682
|
+
_state.label = 1;
|
|
11683
|
+
case 1:
|
|
11684
|
+
_state.trys.push([
|
|
11685
|
+
1,
|
|
11686
|
+
3,
|
|
11687
|
+
,
|
|
11688
|
+
4
|
|
11689
|
+
]);
|
|
11690
|
+
return [
|
|
11691
|
+
4,
|
|
11692
|
+
safePostMessage("getUserKeyForGame", {})
|
|
11693
|
+
];
|
|
11694
|
+
case 2:
|
|
11695
|
+
response = _state.sent();
|
|
11696
|
+
if (response.type === "HASH") {
|
|
11697
|
+
return [
|
|
11698
|
+
2,
|
|
11699
|
+
response
|
|
11700
|
+
];
|
|
11701
|
+
}
|
|
11702
|
+
return [
|
|
11703
|
+
2,
|
|
11704
|
+
"ERROR"
|
|
11705
|
+
];
|
|
11706
|
+
case 3:
|
|
11707
|
+
unused = _state.sent();
|
|
11708
|
+
return [
|
|
11709
|
+
2,
|
|
11710
|
+
"ERROR"
|
|
11711
|
+
];
|
|
11712
|
+
case 4:
|
|
11713
|
+
return [
|
|
11714
|
+
2
|
|
11715
|
+
];
|
|
11716
|
+
}
|
|
11717
|
+
});
|
|
11718
|
+
})();
|
|
11719
|
+
}
|
|
11670
11720
|
function normalizeParams(params) {
|
|
11671
11721
|
return Object.fromEntries(Object.entries(params).filter(function(param) {
|
|
11672
11722
|
var _param = _sliced_to_array(param, 2), value = _param[1];
|
|
@@ -11681,35 +11731,94 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11681
11731
|
}
|
|
11682
11732
|
function eventLog(params) {
|
|
11683
11733
|
return _async_to_generator(function() {
|
|
11684
|
-
var isSupported;
|
|
11734
|
+
var logParams, _tmp, isSupported;
|
|
11685
11735
|
return __generator(this, function(_state) {
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11736
|
+
switch (_state.label) {
|
|
11737
|
+
case 0:
|
|
11738
|
+
_tmp = {};
|
|
11739
|
+
return [
|
|
11740
|
+
4,
|
|
11741
|
+
cache("eventLog.defaultParams.anonymous_key", function() {
|
|
11742
|
+
return _async_to_generator(function() {
|
|
11743
|
+
var result;
|
|
11744
|
+
return __generator(this, function(_state2) {
|
|
11745
|
+
switch (_state2.label) {
|
|
11746
|
+
case 0:
|
|
11747
|
+
return [
|
|
11748
|
+
4,
|
|
11749
|
+
getAnonymousKey()
|
|
11750
|
+
];
|
|
11751
|
+
case 1:
|
|
11752
|
+
result = _state2.sent();
|
|
11753
|
+
return [
|
|
11754
|
+
2,
|
|
11755
|
+
(typeof result === "undefined" ? "undefined" : _type_of(result)) === "object" ? result.hash : "NONE"
|
|
11756
|
+
];
|
|
11757
|
+
}
|
|
11758
|
+
});
|
|
11759
|
+
})();
|
|
11760
|
+
})
|
|
11761
|
+
];
|
|
11762
|
+
case 1:
|
|
11763
|
+
logParams = _object_spread.apply(void 0, [
|
|
11764
|
+
(_tmp.anonymous_key = _state.sent(), _tmp),
|
|
11765
|
+
params.params
|
|
11766
|
+
]);
|
|
11767
|
+
if (MiniAppModule.getConstants().operationalEnvironment === "sandbox") {
|
|
11768
|
+
console.log("[eventLogDebug]", {
|
|
11769
|
+
log_name: params.log_name,
|
|
11770
|
+
log_type: params.log_type,
|
|
11771
|
+
params: normalizeParams(logParams)
|
|
11772
|
+
});
|
|
11773
|
+
return [
|
|
11774
|
+
2
|
|
11775
|
+
];
|
|
11776
|
+
}
|
|
11777
|
+
isSupported = isMinVersionSupported({
|
|
11778
|
+
android: "5.208.0",
|
|
11779
|
+
ios: "5.208.0"
|
|
11780
|
+
});
|
|
11781
|
+
if (!isSupported) {
|
|
11782
|
+
return [
|
|
11783
|
+
2
|
|
11784
|
+
];
|
|
11785
|
+
}
|
|
11786
|
+
return [
|
|
11787
|
+
2,
|
|
11788
|
+
safePostMessage("eventLog", {
|
|
11789
|
+
log_name: params.log_name,
|
|
11790
|
+
log_type: params.log_type,
|
|
11791
|
+
params: normalizeParams(logParams)
|
|
11792
|
+
})
|
|
11793
|
+
];
|
|
11695
11794
|
}
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11795
|
+
});
|
|
11796
|
+
})();
|
|
11797
|
+
}
|
|
11798
|
+
function cache(key, fetcher) {
|
|
11799
|
+
return _async_to_generator(function() {
|
|
11800
|
+
var value;
|
|
11801
|
+
return __generator(this, function(_state) {
|
|
11802
|
+
switch (_state.label) {
|
|
11803
|
+
case 0:
|
|
11804
|
+
if (_cache[key]) {
|
|
11805
|
+
return [
|
|
11806
|
+
2,
|
|
11807
|
+
_cache[key]
|
|
11808
|
+
];
|
|
11809
|
+
}
|
|
11810
|
+
return [
|
|
11811
|
+
4,
|
|
11812
|
+
fetcher()
|
|
11813
|
+
];
|
|
11814
|
+
case 1:
|
|
11815
|
+
value = _state.sent();
|
|
11816
|
+
_cache[key] = value;
|
|
11817
|
+
return [
|
|
11818
|
+
2,
|
|
11819
|
+
value
|
|
11820
|
+
];
|
|
11704
11821
|
}
|
|
11705
|
-
return [
|
|
11706
|
-
2,
|
|
11707
|
-
safePostMessage("eventLog", {
|
|
11708
|
-
log_name: params.log_name,
|
|
11709
|
-
log_type: params.log_type,
|
|
11710
|
-
params: normalizeParams(params.params)
|
|
11711
|
-
})
|
|
11712
|
-
];
|
|
11713
11822
|
});
|
|
11714
11823
|
})();
|
|
11715
11824
|
}
|
|
@@ -12199,7 +12308,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
12199
12308
|
params: params.params
|
|
12200
12309
|
});
|
|
12201
12310
|
}
|
|
12202
|
-
var import_brick_module2, import_brick_module3, import_brick_module4, import_react_native36, import_react_native37, import_react_native38, import_react_native39, MiniAppModule, TossCoreModule, CommonModule, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, MIN_VERSION, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, fetchAlbumPhotos, fetchContacts, getClipboardText, getCurrentLocation, setClipboardText, openCamera, IAP, Storage,
|
|
12311
|
+
var import_brick_module2, import_brick_module3, import_brick_module4, import_react_native36, import_react_native37, import_react_native38, import_react_native39, MiniAppModule, TossCoreModule, CommonModule, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, MIN_VERSION, GAME_CENTER_MIN_VERSION, USER_KEY_MIN_VERSION, GET_SERVER_TIME_MIN_VERSION, _cache, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, fetchAlbumPhotos, fetchContacts, getClipboardText, getCurrentLocation, setClipboardText, openCamera, IAP, Storage, MIN_VERSION2, MIN_VERSION3, GoogleAdMob, CommonModule2, INTERNAL__module;
|
|
12203
12312
|
var init_dist5 = __esm({
|
|
12204
12313
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/dist/index.js"() {
|
|
12205
12314
|
"use strict";
|
|
@@ -12505,6 +12614,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
12505
12614
|
requestTossPayPaysBilling.isSupported = function() {
|
|
12506
12615
|
return isMinVersionSupported(MIN_VERSION);
|
|
12507
12616
|
};
|
|
12617
|
+
GAME_CENTER_MIN_VERSION = {
|
|
12618
|
+
android: "5.221.0",
|
|
12619
|
+
ios: "5.221.0"
|
|
12620
|
+
};
|
|
12621
|
+
USER_KEY_MIN_VERSION = {
|
|
12622
|
+
android: "5.232.0",
|
|
12623
|
+
ios: "5.232.0"
|
|
12624
|
+
};
|
|
12625
|
+
GET_SERVER_TIME_MIN_VERSION = {
|
|
12626
|
+
android: "5.245.0",
|
|
12627
|
+
ios: "5.245.0"
|
|
12628
|
+
};
|
|
12629
|
+
_cache = {};
|
|
12508
12630
|
DEFAULT_MAX_COUNT = 10;
|
|
12509
12631
|
DEFAULT_MAX_WIDTH = 1024;
|
|
12510
12632
|
fetchAlbumPhotos = createPermissionFunction({
|
|
@@ -12626,14 +12748,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
12626
12748
|
removeItem,
|
|
12627
12749
|
clearItems
|
|
12628
12750
|
};
|
|
12629
|
-
GAME_CENTER_MIN_VERSION = {
|
|
12630
|
-
android: "5.221.0",
|
|
12631
|
-
ios: "5.221.0"
|
|
12632
|
-
};
|
|
12633
|
-
GET_SERVER_TIME_MIN_VERSION = {
|
|
12634
|
-
android: "5.245.0",
|
|
12635
|
-
ios: "5.245.0"
|
|
12636
|
-
};
|
|
12637
12751
|
getServerTime.isSupported = function() {
|
|
12638
12752
|
return isMinVersionSupported(GET_SERVER_TIME_MIN_VERSION);
|
|
12639
12753
|
};
|
|
@@ -43557,6 +43671,96 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43557
43671
|
}
|
|
43558
43672
|
});
|
|
43559
43673
|
|
|
43674
|
+
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts
|
|
43675
|
+
var GAME_CENTER_MIN_VERSION2, USER_KEY_MIN_VERSION2, PROMOTION_REWARD_MIN_VERSION, GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION, GET_SERVER_TIME_MIN_VERSION2;
|
|
43676
|
+
var init_constants13 = __esm({
|
|
43677
|
+
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts"() {
|
|
43678
|
+
"use strict";
|
|
43679
|
+
GAME_CENTER_MIN_VERSION2 = {
|
|
43680
|
+
android: "5.221.0",
|
|
43681
|
+
ios: "5.221.0"
|
|
43682
|
+
};
|
|
43683
|
+
USER_KEY_MIN_VERSION2 = {
|
|
43684
|
+
android: "5.232.0",
|
|
43685
|
+
ios: "5.232.0"
|
|
43686
|
+
};
|
|
43687
|
+
PROMOTION_REWARD_MIN_VERSION = {
|
|
43688
|
+
android: "5.232.0",
|
|
43689
|
+
ios: "5.232.0"
|
|
43690
|
+
};
|
|
43691
|
+
GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
|
|
43692
|
+
android: "5.237.0",
|
|
43693
|
+
ios: "5.237.0"
|
|
43694
|
+
};
|
|
43695
|
+
GET_SERVER_TIME_MIN_VERSION2 = {
|
|
43696
|
+
android: "5.245.0",
|
|
43697
|
+
ios: "5.245.0"
|
|
43698
|
+
};
|
|
43699
|
+
}
|
|
43700
|
+
});
|
|
43701
|
+
|
|
43702
|
+
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts
|
|
43703
|
+
function getAnonymousKey2() {
|
|
43704
|
+
return _async_to_generator(function() {
|
|
43705
|
+
var isSupported, response, unused;
|
|
43706
|
+
return __generator(this, function(_state) {
|
|
43707
|
+
switch (_state.label) {
|
|
43708
|
+
case 0:
|
|
43709
|
+
isSupported = isMinVersionSupported2(USER_KEY_MIN_VERSION2);
|
|
43710
|
+
if (!isSupported) {
|
|
43711
|
+
return [
|
|
43712
|
+
2
|
|
43713
|
+
];
|
|
43714
|
+
}
|
|
43715
|
+
_state.label = 1;
|
|
43716
|
+
case 1:
|
|
43717
|
+
_state.trys.push([
|
|
43718
|
+
1,
|
|
43719
|
+
3,
|
|
43720
|
+
,
|
|
43721
|
+
4
|
|
43722
|
+
]);
|
|
43723
|
+
return [
|
|
43724
|
+
4,
|
|
43725
|
+
safePostMessage2("getUserKeyForGame", {})
|
|
43726
|
+
];
|
|
43727
|
+
case 2:
|
|
43728
|
+
response = _state.sent();
|
|
43729
|
+
if (response.type === "HASH") {
|
|
43730
|
+
return [
|
|
43731
|
+
2,
|
|
43732
|
+
response
|
|
43733
|
+
];
|
|
43734
|
+
}
|
|
43735
|
+
return [
|
|
43736
|
+
2,
|
|
43737
|
+
"ERROR"
|
|
43738
|
+
];
|
|
43739
|
+
case 3:
|
|
43740
|
+
unused = _state.sent();
|
|
43741
|
+
return [
|
|
43742
|
+
2,
|
|
43743
|
+
"ERROR"
|
|
43744
|
+
];
|
|
43745
|
+
case 4:
|
|
43746
|
+
return [
|
|
43747
|
+
2
|
|
43748
|
+
];
|
|
43749
|
+
}
|
|
43750
|
+
});
|
|
43751
|
+
})();
|
|
43752
|
+
}
|
|
43753
|
+
var init_getAnonymousKey = __esm({
|
|
43754
|
+
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts"() {
|
|
43755
|
+
"use strict";
|
|
43756
|
+
init_async_to_generator();
|
|
43757
|
+
init_ts_generator();
|
|
43758
|
+
init_isMinVersionSupported();
|
|
43759
|
+
init_natives2();
|
|
43760
|
+
init_constants13();
|
|
43761
|
+
}
|
|
43762
|
+
});
|
|
43763
|
+
|
|
43560
43764
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/eventLog.ts
|
|
43561
43765
|
function normalizeParams2(params) {
|
|
43562
43766
|
return Object.fromEntries(Object.entries(params).filter(function(param) {
|
|
@@ -43572,46 +43776,110 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43572
43776
|
}
|
|
43573
43777
|
function eventLog2(params) {
|
|
43574
43778
|
return _async_to_generator(function() {
|
|
43575
|
-
var isSupported;
|
|
43779
|
+
var logParams, _tmp, isSupported;
|
|
43576
43780
|
return __generator(this, function(_state) {
|
|
43577
|
-
|
|
43578
|
-
|
|
43579
|
-
|
|
43580
|
-
|
|
43581
|
-
|
|
43582
|
-
|
|
43583
|
-
|
|
43584
|
-
|
|
43585
|
-
|
|
43781
|
+
switch (_state.label) {
|
|
43782
|
+
case 0:
|
|
43783
|
+
_tmp = {};
|
|
43784
|
+
return [
|
|
43785
|
+
4,
|
|
43786
|
+
cache2("eventLog.defaultParams.anonymous_key", function() {
|
|
43787
|
+
return _async_to_generator(function() {
|
|
43788
|
+
var result;
|
|
43789
|
+
return __generator(this, function(_state2) {
|
|
43790
|
+
switch (_state2.label) {
|
|
43791
|
+
case 0:
|
|
43792
|
+
return [
|
|
43793
|
+
4,
|
|
43794
|
+
getAnonymousKey2()
|
|
43795
|
+
];
|
|
43796
|
+
case 1:
|
|
43797
|
+
result = _state2.sent();
|
|
43798
|
+
return [
|
|
43799
|
+
2,
|
|
43800
|
+
(typeof result === "undefined" ? "undefined" : _type_of(result)) === "object" ? result.hash : "NONE"
|
|
43801
|
+
];
|
|
43802
|
+
}
|
|
43803
|
+
});
|
|
43804
|
+
})();
|
|
43805
|
+
})
|
|
43806
|
+
];
|
|
43807
|
+
case 1:
|
|
43808
|
+
logParams = _object_spread.apply(void 0, [
|
|
43809
|
+
(_tmp.anonymous_key = _state.sent(), _tmp),
|
|
43810
|
+
params.params
|
|
43811
|
+
]);
|
|
43812
|
+
if (MiniAppModule2.getConstants().operationalEnvironment === "sandbox") {
|
|
43813
|
+
console.log("[eventLogDebug]", {
|
|
43814
|
+
log_name: params.log_name,
|
|
43815
|
+
log_type: params.log_type,
|
|
43816
|
+
params: normalizeParams2(logParams)
|
|
43817
|
+
});
|
|
43818
|
+
return [
|
|
43819
|
+
2
|
|
43820
|
+
];
|
|
43821
|
+
}
|
|
43822
|
+
isSupported = isMinVersionSupported2({
|
|
43823
|
+
android: "5.208.0",
|
|
43824
|
+
ios: "5.208.0"
|
|
43825
|
+
});
|
|
43826
|
+
if (!isSupported) {
|
|
43827
|
+
return [
|
|
43828
|
+
2
|
|
43829
|
+
];
|
|
43830
|
+
}
|
|
43831
|
+
return [
|
|
43832
|
+
2,
|
|
43833
|
+
safePostMessage2("eventLog", {
|
|
43834
|
+
log_name: params.log_name,
|
|
43835
|
+
log_type: params.log_type,
|
|
43836
|
+
params: normalizeParams2(logParams)
|
|
43837
|
+
})
|
|
43838
|
+
];
|
|
43586
43839
|
}
|
|
43587
|
-
|
|
43588
|
-
|
|
43589
|
-
|
|
43590
|
-
|
|
43591
|
-
|
|
43592
|
-
|
|
43593
|
-
|
|
43594
|
-
|
|
43840
|
+
});
|
|
43841
|
+
})();
|
|
43842
|
+
}
|
|
43843
|
+
function cache2(key, fetcher) {
|
|
43844
|
+
return _async_to_generator(function() {
|
|
43845
|
+
var value;
|
|
43846
|
+
return __generator(this, function(_state) {
|
|
43847
|
+
switch (_state.label) {
|
|
43848
|
+
case 0:
|
|
43849
|
+
if (_cache2[key]) {
|
|
43850
|
+
return [
|
|
43851
|
+
2,
|
|
43852
|
+
_cache2[key]
|
|
43853
|
+
];
|
|
43854
|
+
}
|
|
43855
|
+
return [
|
|
43856
|
+
4,
|
|
43857
|
+
fetcher()
|
|
43858
|
+
];
|
|
43859
|
+
case 1:
|
|
43860
|
+
value = _state.sent();
|
|
43861
|
+
_cache2[key] = value;
|
|
43862
|
+
return [
|
|
43863
|
+
2,
|
|
43864
|
+
value
|
|
43865
|
+
];
|
|
43595
43866
|
}
|
|
43596
|
-
return [
|
|
43597
|
-
2,
|
|
43598
|
-
safePostMessage2("eventLog", {
|
|
43599
|
-
log_name: params.log_name,
|
|
43600
|
-
log_type: params.log_type,
|
|
43601
|
-
params: normalizeParams2(params.params)
|
|
43602
|
-
})
|
|
43603
|
-
];
|
|
43604
43867
|
});
|
|
43605
43868
|
})();
|
|
43606
43869
|
}
|
|
43870
|
+
var _cache2;
|
|
43607
43871
|
var init_eventLog = __esm({
|
|
43608
43872
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/eventLog.ts"() {
|
|
43609
43873
|
"use strict";
|
|
43610
43874
|
init_async_to_generator();
|
|
43875
|
+
init_object_spread();
|
|
43611
43876
|
init_sliced_to_array();
|
|
43877
|
+
init_type_of();
|
|
43612
43878
|
init_ts_generator();
|
|
43879
|
+
init_getAnonymousKey();
|
|
43613
43880
|
init_isMinVersionSupported();
|
|
43614
43881
|
init_natives2();
|
|
43882
|
+
_cache2 = {};
|
|
43615
43883
|
}
|
|
43616
43884
|
});
|
|
43617
43885
|
|
|
@@ -43919,34 +44187,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43919
44187
|
}
|
|
43920
44188
|
});
|
|
43921
44189
|
|
|
43922
|
-
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts
|
|
43923
|
-
var GAME_CENTER_MIN_VERSION2, USER_KEY_MIN_VERSION, PROMOTION_REWARD_MIN_VERSION, GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION, GET_SERVER_TIME_MIN_VERSION2;
|
|
43924
|
-
var init_constants13 = __esm({
|
|
43925
|
-
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts"() {
|
|
43926
|
-
"use strict";
|
|
43927
|
-
GAME_CENTER_MIN_VERSION2 = {
|
|
43928
|
-
android: "5.221.0",
|
|
43929
|
-
ios: "5.221.0"
|
|
43930
|
-
};
|
|
43931
|
-
USER_KEY_MIN_VERSION = {
|
|
43932
|
-
android: "5.232.0",
|
|
43933
|
-
ios: "5.232.0"
|
|
43934
|
-
};
|
|
43935
|
-
PROMOTION_REWARD_MIN_VERSION = {
|
|
43936
|
-
android: "5.232.0",
|
|
43937
|
-
ios: "5.232.0"
|
|
43938
|
-
};
|
|
43939
|
-
GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
|
|
43940
|
-
android: "5.237.0",
|
|
43941
|
-
ios: "5.237.0"
|
|
43942
|
-
};
|
|
43943
|
-
GET_SERVER_TIME_MIN_VERSION2 = {
|
|
43944
|
-
android: "5.245.0",
|
|
43945
|
-
ios: "5.245.0"
|
|
43946
|
-
};
|
|
43947
|
-
}
|
|
43948
|
-
});
|
|
43949
|
-
|
|
43950
44190
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getGameCenterGameProfile.ts
|
|
43951
44191
|
function getGameCenterGameProfile2() {
|
|
43952
44192
|
return _async_to_generator(function() {
|
|
@@ -44040,75 +44280,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44040
44280
|
}
|
|
44041
44281
|
});
|
|
44042
44282
|
|
|
44043
|
-
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts
|
|
44044
|
-
function getAnonymousKey() {
|
|
44045
|
-
return _async_to_generator(function() {
|
|
44046
|
-
var isSupported, response, unused;
|
|
44047
|
-
return __generator(this, function(_state) {
|
|
44048
|
-
switch (_state.label) {
|
|
44049
|
-
case 0:
|
|
44050
|
-
isSupported = isMinVersionSupported2(USER_KEY_MIN_VERSION);
|
|
44051
|
-
if (!isSupported) {
|
|
44052
|
-
return [
|
|
44053
|
-
2
|
|
44054
|
-
];
|
|
44055
|
-
}
|
|
44056
|
-
_state.label = 1;
|
|
44057
|
-
case 1:
|
|
44058
|
-
_state.trys.push([
|
|
44059
|
-
1,
|
|
44060
|
-
3,
|
|
44061
|
-
,
|
|
44062
|
-
4
|
|
44063
|
-
]);
|
|
44064
|
-
return [
|
|
44065
|
-
4,
|
|
44066
|
-
safePostMessage2("getUserKeyForGame", {})
|
|
44067
|
-
];
|
|
44068
|
-
case 2:
|
|
44069
|
-
response = _state.sent();
|
|
44070
|
-
if (response.type === "HASH") {
|
|
44071
|
-
return [
|
|
44072
|
-
2,
|
|
44073
|
-
response
|
|
44074
|
-
];
|
|
44075
|
-
}
|
|
44076
|
-
return [
|
|
44077
|
-
2,
|
|
44078
|
-
"ERROR"
|
|
44079
|
-
];
|
|
44080
|
-
case 3:
|
|
44081
|
-
unused = _state.sent();
|
|
44082
|
-
return [
|
|
44083
|
-
2,
|
|
44084
|
-
"ERROR"
|
|
44085
|
-
];
|
|
44086
|
-
case 4:
|
|
44087
|
-
return [
|
|
44088
|
-
2
|
|
44089
|
-
];
|
|
44090
|
-
}
|
|
44091
|
-
});
|
|
44092
|
-
})();
|
|
44093
|
-
}
|
|
44094
|
-
var init_getAnonymousKey = __esm({
|
|
44095
|
-
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts"() {
|
|
44096
|
-
"use strict";
|
|
44097
|
-
init_async_to_generator();
|
|
44098
|
-
init_ts_generator();
|
|
44099
|
-
init_isMinVersionSupported();
|
|
44100
|
-
init_natives2();
|
|
44101
|
-
init_constants13();
|
|
44102
|
-
}
|
|
44103
|
-
});
|
|
44104
|
-
|
|
44105
44283
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getUserKeyForGame.ts
|
|
44106
44284
|
function getUserKeyForGame() {
|
|
44107
44285
|
return _async_to_generator(function() {
|
|
44108
44286
|
return __generator(this, function(_state) {
|
|
44109
44287
|
return [
|
|
44110
44288
|
2,
|
|
44111
|
-
|
|
44289
|
+
getAnonymousKey2()
|
|
44112
44290
|
];
|
|
44113
44291
|
});
|
|
44114
44292
|
})();
|
|
@@ -44400,7 +44578,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44400
44578
|
return generateHapticFeedback;
|
|
44401
44579
|
},
|
|
44402
44580
|
getAnonymousKey: function() {
|
|
44403
|
-
return
|
|
44581
|
+
return getAnonymousKey2;
|
|
44404
44582
|
},
|
|
44405
44583
|
getClipboardText: function() {
|
|
44406
44584
|
return getClipboardText2;
|
|
@@ -45294,7 +45472,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45294
45472
|
"../user-scripts/dist/index.mjs"() {
|
|
45295
45473
|
"use strict";
|
|
45296
45474
|
e62 = '"use strict";(()=>{var e=document.createElement("style");e.textContent=`\n*:not(input):not(textarea) {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-touch-callout: none;\n}\n`;document.head.appendChild(e);})();\n';
|
|
45297
|
-
t52 = '"use strict";(()=>{var ve=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},E=new ve,z=()=>Math.random().toString(36).substring(2,15),$=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function d(e){return(...t)=>{let r=z(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(E.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(E.on(`${e}/reject/${r}`,i=>{o(),a($(i))})),E.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function D(e){return t=>{let r=z(),n=[E.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),E.on(`${e}/onError/${r}`,o=>{t.onError($(o))})];return E.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{E.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function v(e){return()=>E.getConstant(e)}var he=function(){return{emit:function(t,r){for(var n=this.events[t]||[],o=0,s=n.length;o<s;o++)n[o](r)},events:{},on:function(t,r){var n=this,o,s;return((o=this.events)[s=t]||(o[s]=[])).push(r),function(){var a;n.events[t]=(a=n.events[t])===null||a===void 0?void 0:a.filter(function(i){return r!==i})}}}};typeof window<"u"&&(window.__GRANITE_NATIVE_EMITTER=he());var it=d("closeView"),dt=d("generateHapticFeedback"),ct=d("share"),ut=d("setSecureScreen"),pt=d("setScreenAwakeMode"),mt=d("getNetworkStatus"),lt=d("setIosSwipeGestureEnabled"),gt=d("openURL"),ft=d("openPermissionDialog"),vt=d("getPermission"),ht=d("requestPermission"),wt=v("setClipboardText"),Et=v("getClipboardText"),At=v("fetchContacts"),bt=v("fetchAlbumPhotos"),_t=v("getCurrentLocation"),Ct=v("openCamera"),St=d("appLogin"),It=d("eventLog"),yt=d("getTossShareLink"),Tt=d("setDeviceOrientation"),Rt=d("checkoutPayment"),Lt=d("requestTossPayPaysBilling"),Pt=d("saveBase64Data"),xt=d("openPDFViewer"),Dt=d("fetchAlbumItems"),Nt=d("appsInTossSignTossCert"),Mt=d("getGameCenterGameProfile"),Ft=d("openGameCenterLeaderboard"),Gt=d("submitGameCenterLeaderBoardScore"),Bt=d("getAnonymousKey"),kt=d("getUserKeyForGame"),Ot=d("grantPromotionReward"),Vt=d("grantPromotionRewardForGame"),Ht=d("getIsTossLoginIntegratedService"),Ut=d("getServerTime"),qt=d("getConsentedUserData"),Wt=d("requestReview"),zt=v("getLocale"),$t=v("getSchemeUri"),jt=v("getPlatformOS"),Kt=v("getOperationalEnvironment"),Jt=v("getTossAppVersion"),Xt=v("getDeviceId"),Yt=v("getGroupId"),Zt=D("contactsViral"),Qt=D("startUpdateLocation"),er=D("onVisibilityChangedByTransparentServiceWeb");var S=class extends Error{constructor({methodName:e,message:t}){super(),this.name=`${e} permission error`,this.message=t}},j=class extends S{constructor(){super({methodName:"fetchAlbumPhotos",message:"\\uC0AC\\uC9C4\\uCCA9 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},K=class extends S{constructor(){super({methodName:"fetchContacts",message:"\\uC5F0\\uB77D\\uCC98 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},J=class extends S{constructor(){super({methodName:"openCamera",message:"\\uCE74\\uBA54\\uB77C \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var V=class extends S{constructor(){super({methodName:"getCurrentLocation",message:"\\uC704\\uCE58 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},X=V,Y=class extends S{constructor(){super({methodName:"getClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC77D\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},Z=class extends S{constructor(){super({methodName:"setClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC4F0\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var we=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},A=new we,de=()=>Math.random().toString(36).substring(2,15),ce=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function c(e){return(...t)=>{let r=de(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(A.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(A.on(`${e}/reject/${r}`,i=>{o(),a(ce(i))})),A.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function b(e){return t=>{let r=de(),n=[A.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),A.on(`${e}/onError/${r}`,o=>{t.onError(ce(o))})];return A.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{A.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function p(e){return()=>A.getConstant(e)}var ur={getItem:c("getStorageItem"),setItem:c("setStorageItem"),removeItem:c("removeStorageItem"),clearItems:c("clearItems")},Ee=/^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*))?(?:\\+[\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*)?)?)?$/i,Q=e=>["*","x","X"].includes(e),ee=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},Ae=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],be=(e,t)=>{if(Q(e)||Q(t))return 0;let[r,n]=Ae(ee(e),ee(t));return r>n?1:r<n?-1:0},te=e=>{if(typeof e!="string")throw new TypeError("Invalid argument: expected a string");let t=e.match(Ee);if(!t)throw new Error(`Invalid semver: \'${e}\'`);let[,r,n,o,s,a]=t;return[r,n,o,s,a]},re=(e,t)=>{let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]??"0",s=t[n]??"0",a=be(o,s);if(a!==0)return a}return 0},_e=(e,t)=>{let r=te(e),n=te(t),o=r.pop(),s=n.pop(),a=re(r,n);return a!==0?a:o&&s?re(o.split("."),s.split(".")):o?-1:s?1:0};function H(e){if(p("getOperationalEnvironment")()==="sandbox")return!0;let r=p("getTossAppVersion")(),o=p("getPlatformOS")()==="ios"?e.ios:e.android;return o===void 0?!1:o==="always"?!0:o==="never"?!1:_e(r,o)>=0}function ne(e){return c("processProductGrant")(e)}var pr={createOneTimePurchaseOrder:e=>{let t=H({android:"5.219.0",ios:"5.219.0"}),r=()=>{};if(!t)return r;let n=H({android:"5.231.1",ios:"5.230.0"}),{options:o,onEvent:s,onError:a}=e,i=o.sku??o.productId;return n?b("requestOneTimePurchase")({options:{sku:i},onEvent:async g=>{if(g.type==="purchased"){let u=await o.processProductGrant({orderId:g.data.orderId});await ne({orderId:g.data.orderId,isProductGranted:u}).catch(a)}else s(g)},onError:g=>{a(g)}}):(c("iapCreateOneTimePurchaseOrder")({productId:i}).then(u=>{Promise.resolve(o.processProductGrant({orderId:u.orderId})).then(()=>{s({type:"success",data:u})}).catch(f=>{a(f)})}).catch(u=>{a(u)}),r)},createSubscriptionPurchaseOrder:e=>{let t=H({android:"5.248.0",ios:"5.249.0"}),r=()=>{};if(!t)return r;let{options:n,onEvent:o,onError:s}=e,{sku:a,offerId:i,processProductGrant:l}=n;return b("requestSubscriptionPurchase")({options:{sku:a,offerId:i??null},onEvent:async u=>{if(u.type==="purchased"){let f=await l({orderId:u.data.orderId,subscriptionId:u.data.subscriptionId});await ne({orderId:u.data.orderId,isProductGranted:f}).catch(s)}else o(u)},onError:u=>{s(u)}})},getProductItemList:c("iapGetProductItemList"),getPendingOrders:c("getPendingOrders"),getCompletedOrRefundedOrders:c("getCompletedOrRefundedOrders"),completeProductGrant:c("completeProductGrant"),getSubscriptionInfo:c("getSubscriptionInfo")},mr=p("getSafeAreaInsets");var lr=p("getSafeAreaInsets");var gr={loadAppsInTossAdMob:Object.assign(b("loadAppsInTossAdMob"),{isSupported:p("loadAppsInTossAdMob_isSupported")}),showAppsInTossAdMob:Object.assign(b("showAppsInTossAdMob"),{isSupported:p("showAppsInTossAdMob_isSupported")}),isAppsInTossAdMobLoaded:Object.assign(c("isAppsInTossAdMobLoaded"),{isSupported:p("isAppsInTossAdMobLoaded_isSupported")})};var fr={getDeploymentId:p("getDeploymentId")},vr=p("deploymentId"),hr=p("brandDisplayName"),wr=p("brandIcon"),Er=p("brandPrimaryColor");var Ar={addAccessoryButton:c("addAccessoryButton"),removeAccessoryButton:c("removeAccessoryButton")},Ce=c("requestPermission"),Se=c("getPermission"),Ie=c("openPermissionDialog");function I({permission:e,handler:t,error:r}){let n=async(...o)=>{if(await Ce(e)==="denied")throw new r;return t(...o)};return n.getPermission=()=>Se(e),n.openPermissionDialog=()=>Ie(e),n}var _r=I({handler:e=>c("fetchAlbumPhotos")(e),permission:{name:"photos",access:"read"},error:j}),Sr=I({handler:e=>c("fetchContacts")(e),permission:{name:"contacts",access:"read"},error:K}),yr=I({handler:e=>c("getCurrentLocation")(e),permission:{name:"geolocation",access:"access"},error:V}),Rr=I({handler:e=>c("openCamera")(e),permission:{name:"camera",access:"access"},error:J}),Pr=I({handler:e=>c("setClipboardText")(e),permission:{name:"clipboard",access:"write"},error:Z}),Dr=I({handler:()=>c("getClipboardText")(),permission:{name:"clipboard",access:"read"},error:Y}),ye=c("getPermission"),Te=c("openPermissionDialog"),ue=e=>b("updateLocationEvent")({...e,onError:t=>{let r=new X;return t instanceof Error&&t.name===r.name?e.onError(r):e.onError(t)}});ue.getPermission=()=>ye({name:"geolocation",access:"access"});ue.openPermissionDialog=()=>Te({name:"geolocation",access:"access"});var Mr=Object.assign(b("loadFullScreenAd"),{isSupported:p("loadFullScreenAd_isSupported")}),Fr=Object.assign(b("showFullScreenAd"),{isSupported:p("showFullScreenAd_isSupported")}),P=new WeakMap;function Re(e,t){let r=P.get(e);if(r)return r;let n=t(),o=!1,s={destroy(){o||(o=!0,P.get(e)===s&&P.delete(e),n.destroy())}};return P.set(e,s),s}function Le(){P=new WeakMap}var Pe=c("openURL");function xe(e){let t=De(e);return Pe(t)}function De(e){return["http://","https://"].some(r=>e.startsWith(r))?Ne(e):e}function Ne(e){return`supertoss://web?url=${encodeURIComponent(e)}&external=true`}var oe="https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js",se=15e3,N=null;function C(){if(!(typeof window>"u"))return window.TossAdsSpaceKit}function Me(){if(typeof window>"u"||typeof document>"u")return Promise.reject(new Error("Ads SDK can only be loaded in a browser environment."));let e=C();if(e)return Promise.resolve(e);if(N)return N;let t=new Promise((r,n)=>{let o=document.createElement("script"),s=()=>{o.removeEventListener("load",a),o.removeEventListener("error",i),window.clearTimeout(l),N=null},a=()=>{let g=C();if(g){s(),r(g);return}s(),n(new Error("Ads SDK script loaded but window.TossAdsSpaceKit was not exposed."))},i=()=>{s(),n(new Error(`Failed to load Ads SDK script from ${oe}.`))},l=window.setTimeout(()=>{s(),n(new Error(`Loading Ads SDK timed out after ${se}ms.`))},se);o.addEventListener("load",a),o.addEventListener("error",i),o.async=!0,o.src=oe,document.head.appendChild(o)});return N=t,t}var _=Object.assign(b("fetchTossAd"),{isSupported:p("fetchTossAd_isSupported")}),Fe=c("tossAdEventLog"),Ge=new Set(["1","2"]),pe="\\uC798\\uBABB\\uB41C \\uC694\\uCCAD\\uC774\\uC5D0\\uC694. \\uD544\\uC694\\uD55C \\uAC12\\uC774 \\uBE44\\uC5B4 \\uC788\\uC5B4\\uC694.";function M(e){return e.trim()}function q(){return new Error(pe)}function Be(){return{resultType:"FAIL",error:{reason:pe}}}function ke(e){return new Promise((t,r)=>{if(!_.isSupported()){r(new Error("fetchTossAd is not supported in this environment."));return}let n=M(e.adGroupId);if(n.length===0){r(q());return}return _({options:{...e,adGroupId:n},onEvent:t,onError:r})})}function ae(e){let t=Array.isArray(e.ads)?e.ads.filter(r=>Ge.has(String(r.styleId))):[];return{requestId:e.requestId??"",status:e.status??"OK",ads:t,ext:e.ext}}function Oe(e){return Ve(e)?e.resultType!=="SUCCESS"?e:e.success?{...e,success:ae(e.success)}:{resultType:"FAIL",error:{reason:"fetchTossAd returned SUCCESS without payload"}}:He(e)?{resultType:"SUCCESS",success:ae(e)}:{resultType:"FAIL",error:{reason:"Invalid response from fetchTossAd"}}}function Ve(e){return!!(e&&typeof e=="object"&&"resultType"in e)}function He(e){return!!(e&&typeof e=="object"&&"ads"in e)}function Ue(){return async(e,t)=>{let r=M(t.spaceUnitId);if(r.length===0)return Be();try{let n=await ke({adGroupId:r,sdkId:"108",availableStyleIds:["1","2"]});return Oe(n)}catch(n){return{resultType:"FAIL",error:{reason:n instanceof Error?n.message:"Unknown fetchTossAd error"}}}}}var L=null;function qe(e){let{callbacks:t}=e,r=()=>t?.onInitialized?.(),n=a=>{let i=a instanceof Error?a:new Error(String(a));t?.onInitializationFailed?.(i)};if(C()?.isInitialized()){r();return}if(L!=null){L.then(r).catch(n);return}let s=Me().then(a=>{if(a.isInitialized())return;let l={environment:"live",customAdFetcher:Ue(),opener:xe};a.init(l)});L=s,s.then(r).catch(n).finally(()=>{L===s&&(L=null)})}function We(e,t,r={}){let{callbacks:n}=r,o=M(e),s=a=>{let i=a instanceof Error?a:new Error(String(a));n?.onAdFailedToRender?.({slotId:"",adGroupId:o,adMetadata:{},error:{code:0,message:i.message}})};try{let a=o;if(a.length===0)throw q();let i=C();if(!i)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!i.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let l=typeof t=="string"?document.querySelector(t):t;if(!l)throw new Error(`[toss-ad] Failed to find target element: ${t}`);let g={spaceId:a,autoLoad:!0,theme:r.theme,padding:r.padding,callbacks:le(o,r.callbacks)};i.banner.createSlot(l,g)}catch(a){s(a)}}var ze="16px 20px",$e="20px",je="auto",Ke="blackAndWhite",Je="expanded",h="toss-ads-attach",ie="toss-ads-attach-style",me="data-toss-ads-attach-banner-wrapper",U=\'"Toss Product Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif\';function Xe(e){let t=e.ownerDocument;if(!t||t.getElementById(ie))return;let r=t.createElement("style");r.id=ie,r.textContent=`\n .${h},\n .${h} * {\n font-family: ${U};\n font-style: normal;\n }\n .${h} { background: #ffffff; }\n .${h}.toss-ads-tone-grey { background: #f2f4f7; }\n @media (prefers-color-scheme: dark) {\n .${h} { background: #17171c; }\n .${h}.toss-ads-tone-grey { background: #101013; }\n }\n .${h}.toss-ads-theme-light { background: #ffffff; }\n .${h}.toss-ads-theme-light.toss-ads-tone-grey { background: #f2f4f7; }\n .${h}.toss-ads-theme-dark { background: #17171c; }\n .${h}.toss-ads-theme-dark.toss-ads-tone-grey { background: #101013; }\n `;let n=t.head??t.body??t.documentElement;n&&n.appendChild(r)}function Ye(e){Array.from(e.children).forEach(t=>{t instanceof HTMLElement&&t.getAttribute(me)==="true"&&e.removeChild(t)})}function Ze(e,t,r={}){let{callbacks:n,theme:o=je,tone:s=Ke,variant:a=Je}=r,i=M(e),l=u=>{let f=u instanceof Error?u:new Error(String(u));n?.onAdFailedToRender?.({slotId:"",adGroupId:i,adMetadata:{},error:{code:0,message:f.message}})},g=le(i,n);try{let u=i;if(u.length===0)throw q();let f=C();if(!f)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!f.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let R=typeof t=="string"?document.querySelector(t):t;if(!R)throw new Error(`[toss-ad] Failed to find target element: ${t}`);return Re(R,()=>{let m=document.createElement("div");m.style.width="100%",m.style.height="100%",m.style.boxSizing="border-box",m.style.display="flex",m.style.flexDirection="column",m.style.fontFamily=U,m.style.fontStyle="normal",m.style.justifyContent="center",m.style.overflow="hidden",m.setAttribute(me,"true"),a==="card"&&(m.style.padding="0 10px");let w=document.createElement("div");w.classList.add(h),w.style.fontFamily=U,w.style.fontStyle="normal",s==="grey"&&w.classList.add("toss-ads-tone-grey"),o==="light"?w.classList.add("toss-ads-theme-light"):o==="dark"&&w.classList.add("toss-ads-theme-dark"),a==="card"&&(w.style.borderRadius="16px",w.style.overflow="hidden"),m.appendChild(w);let x=!1,W=null;try{Xe(R),Ye(R),R.appendChild(m),x=!0;let O={spaceId:u,autoLoad:!0,theme:o==="auto"?void 0:o,renderPadding:fe=>fe==="1"?ze:$e,callbacks:g};W=f.banner.createSlot(w,O)}catch(O){throw x&&m.parentNode&&m.parentNode.removeChild(m),O}return{destroy(){W?.destroy(),x&&m.parentNode&&m.parentNode.removeChild(m),x=!1}}})}catch(u){return l(u),{destroy(){}}}}function Qe(e){let t=C();t?.banner&&t.banner.destroy(e)}function et(){let e=C();e?.banner&&(e.banner.destroyAll(),Le())}function le(e,t){if(!t)return;let r=n=>{let o={...n??{}};return o.adGroupId=o.adGroupId??o.spaceId??e,delete o.spaceId,o};return{onAdRendered:n=>t.onAdRendered?.(r(n)),onAdViewable:n=>t.onAdViewable?.(r(n)),onAdClicked:n=>t.onAdClicked?.(r(n)),onAdImpression:n=>{Fe({log_name:"display_ads_all::impression__1px_banner",log_type:"event",params:{event_type:"impression",schema_id:1812034,request_id:n?.adMetadata?.requestId??""}}),t.onAdImpression?.(r(n))},onAdFailedToRender:n=>t.onAdFailedToRender?.({...r(n),error:n?.error??{code:0,message:"UNKNOWN"}}),onNoFill:n=>t.onNoFill?.(r(n))}}var Gr={initialize:Object.assign(qe,{isSupported:_.isSupported}),attach:Object.assign(We,{isSupported:_.isSupported}),attachBanner:Object.assign(Ze,{isSupported:_.isSupported}),destroy:Object.assign(Qe,{isSupported:_.isSupported}),destroyAll:Object.assign(et,{isSupported:_.isSupported})},Br=Object.assign(c("getServerTime"),{isSupported:p("getServerTime_isSupported")}),kr=Object.assign(c("requestReview"),{isSupported:p("requestReview_isSupported")});var F=class{_log=c("debugLog");log(t,r){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...r,...this.getCommonParams()}})}catch{}}getCommonParams(){return{...this.getLocationInfo(),...this.getNavigatorInfo(),...this.getScreenInfo(),appName:window.__appsInToss.appName,deploymentId:window.__appsInToss.deploymentId,sessionId:window.__appsInToss.sessionId,isGame:window.__appsInToss.webViewType==="game",timestampMs:Date.now()}}getLocationInfo(){return{url:window.location.href,urlOrigin:window.location.origin,urlHost:window.location.hostname,urlPath:window.location.pathname,urlSearch:window.location.search}}getNavigatorInfo(){return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,deviceMemory:navigator.deviceMemory?navigator.deviceMemory*1024*1024:void 0,maxTouchPoints:navigator.maxTouchPoints}}getScreenInfo(){return{screenWidth:screen.width,screenHeight:screen.height,availableScreenWidth:screen.availWidth,availableScreenHeight:screen.availHeight,devicePixelRatio:window.devicePixelRatio,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}}};var G=class{callbacks={};on(t,r){return typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(r),()=>{this.callbacks[t]=this.callbacks[t]?.filter(n=>n!==r)??[]}}emit(t,r){this.callbacks[t]?.forEach(n=>n(r))}};window.__appsInToss={appName:p("getAppName")(),deploymentId:p("getDeploymentId")(),webViewType:p("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new G,debugLogger:new F};var y=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function B(e){window.fetch=new Proxy(window.fetch,{apply:e})}(()=>{if(window.__appsInToss.webViewType!=="game"||typeof caches>"u")return;let e="@apps-in-toss/caches/",t=`${e}${window.__appsInToss.deploymentId}`;window.addEventListener("load",async()=>{let r=await caches.keys();for(let n of r)n.startsWith(e)&&n!==t&&await caches.delete(n)}),B(async(r,n,o)=>{let s=new Request(o[0],o[1]);if(!y.test(s.url))return await r.call(n,s);let a=await caches.open(t),i=await a.match(s);if(i){let g=i.headers.get("ETag"),u=i.headers.get("Last-Modified");g&&s.headers.set("If-None-Match",g),u&&s.headers.set("If-Modified-Since",u);let f=await r.call(n,s);return f.status===304?(i.__revalidateResponse=f,i):(a.put(s,f.clone()),f)}let l=await r.call(n,s);return a.put(s,l.clone()),l})})();B(async(e,t,r)=>{let n=new Request(r[0],r[1]),o=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:n});try{let s=await e.call(t,n);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:n,response:s,requestAt:o}),s}catch(s){throw window.__appsInToss.eventEmitter.emit("fetchError",{request:n,requestAt:o,error:s}),s}});HTMLCanvasElement.prototype.getContext=new Proxy(HTMLCanvasElement.prototype.getContext,{apply:(e,t,r)=>{let n=e.apply(t,r);return(n instanceof WebGL2RenderingContext||n instanceof WebGLRenderingContext)&&window.__appsInToss.eventEmitter.emit("webglGetContext",{canvas:t,context:n}),n}});var ge=window.__appsInToss.debugLogger;ge.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,r=typeof e<"u"&&t!==null,n=r?{navigationStartAtMs:e+t.startTime,navigationRedirectStartAtMs:e+t.redirectStart,navigationRedirectEndAtMs:e+t.redirectEnd,navigationRedirectCount:t.redirectCount,navigationServiceWorkerStartAtMs:e+t.workerStart,navigationFetchStartAtMs:e+t.fetchStart,navigationDomainLookupStartAtMs:e+t.domainLookupStart,navigationDomainLookupEndAtMs:e+t.domainLookupEnd,navigationConnectStartAtMs:e+t.connectStart,navigationSecureConnectStartAtMs:e+t.secureConnectionStart,navigationConnectEndAtMs:e+t.connectEnd,navigationRequestStartAtMs:e+t.requestStart,navigationResponseStartAtMs:e+t.responseStart,navigationResponseEndAtMs:e+t.responseEnd,navigationDomInteractiveAtMs:e+t.domInteractive,navigationDomContentLoadedEventStartAtMs:e+t.domContentLoadedEventStart,navigationDomContentLoadedEventEndAtMs:e+t.domContentLoadedEventEnd,navigationDomCompleteAtMs:e+t.domComplete}:{};ge.log("load_complete",{isNavigationDebugSupported:r,...n})});function T(e,t){return parseFloat(e.toFixed(t))}(()=>{if(typeof performance.memory>"u"||typeof performance.memory.usedJSHeapSize>"u"||typeof performance.memory.totalJSHeapSize>"u"||typeof performance.memory.jsHeapSizeLimit>"u")return;function e(t){window.__appsInToss.debugLogger.log(t,{usedJSHeapSize:T(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:T(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:T(performance.memory.jsHeapSizeLimit/1024,2)})}e("memory_usage_first_0s"),setTimeout(()=>e("memory_usage_first_1s"),1e3),setTimeout(()=>e("memory_usage_first_10s"),1e4),setTimeout(()=>e("memory_usage_first_30s"),3e4),setTimeout(()=>e("memory_usage_first_60s"),6e4),setInterval(()=>e("memory_usage_every_180s"),18e4)})();(()=>{let e=window.__appsInToss.debugLogger,t=performance.timeOrigin;if(typeof t>"u"||typeof PerformanceObserver>"u")return;new PerformanceObserver(o=>{o.getEntries().forEach(a=>{a.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+a.startTime}):a.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+a.startTime})})}).observe({type:"paint"}),new PerformanceObserver(o=>{o.getEntries().forEach(a=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+a.startTime,lcpRenderSize:a.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.eventEmitter.on("webglGetContext",({canvas:t,context:r})=>{if(t.getAttribute("id")!=="unity-canvas")return;e();let n=r.getExtension("WEBGL_debug_renderer_info"),o=r.getParameter(r.MAX_VIEWPORT_DIMS),s={webGLRenderer:r.getParameter(r.RENDERER),webGLVendor:r.getParameter(r.VENDOR),webGLVersion:r.getParameter(r.VERSION),webGLShadingLanguageVersion:r.getParameter(r.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:r.getParameter(r.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:o[0],webGLMaxViewportHeight:o[1],webGLMaxRenderbufferSize:r.getParameter(r.MAX_RENDERBUFFER_SIZE)},a=n?{webGLUnmaskedVendor:r.getParameter(n.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:r.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...s,...a})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{y.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})});function r({request:n,requestAt:o,error:s}){e.log("game_resource_download_error",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceError:s instanceof Error?s.message:"Unknown Error"})}t.on("fetchResponse",async({request:n,requestAt:o,response:s})=>{if(!y.test(n.url))return;let a=await s.clone().blob().then(l=>T(l.size/1024,2)).catch(l=>(r({request:n,requestAt:o,error:l}),null));if(a===null)return;let i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceResponseAtMs:i,gameResourceResponseSize:a,gameResourceResponseStatus:s.__revalidateResponse?.status??s.status,gameResourceDownloadDurationMs:i-o})}),t.on("fetchError",async({request:n,requestAt:o,error:s})=>{y.test(n.url)&&r({request:n,requestAt:o,error:s})})})();var k=[];function tt(){let e=0;function t(r){let n=performance.now();if(r<n-1e3){k.push(e);return}e+=1,window.requestAnimationFrame(()=>t(r))}window.requestAnimationFrame(()=>t(performance.now()))}function rt(){if(k.length===0)return;let e=k;k=[];let t=nt(e).toSorted(),r={};for(let o=0;o<=100;o+=10){let s=t[Math.floor((t.length-1)*(o/100))];s&&(r[`fpsP${o}`]=s)}let n=t.reduce((o,s)=>o+s,0);r.fpsAverage=n/t.length,window.__appsInToss.debugLogger.log("fps_every_300s",r)}function nt(e){let t=new Set(e);return Array.from(t.values())}setInterval(()=>tt(),1e3);setInterval(()=>rt(),3e5);})();\n';
|
|
45475
|
+
t52 = '"use strict";(()=>{var ve=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},E=new ve,z=()=>Math.random().toString(36).substring(2,15),$=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function d(e){return(...t)=>{let r=z(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(E.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(E.on(`${e}/reject/${r}`,i=>{o(),a($(i))})),E.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function D(e){return t=>{let r=z(),n=[E.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),E.on(`${e}/onError/${r}`,o=>{t.onError($(o))})];return E.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{E.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function v(e){return()=>E.getConstant(e)}var he=function(){return{emit:function(t,r){for(var n=this.events[t]||[],o=0,s=n.length;o<s;o++)n[o](r)},events:{},on:function(t,r){var n=this,o,s;return((o=this.events)[s=t]||(o[s]=[])).push(r),function(){var a;n.events[t]=(a=n.events[t])===null||a===void 0?void 0:a.filter(function(i){return r!==i})}}}};typeof window<"u"&&(window.__GRANITE_NATIVE_EMITTER=he());var it=d("closeView"),dt=d("generateHapticFeedback"),ct=d("share"),ut=d("setSecureScreen"),pt=d("setScreenAwakeMode"),mt=d("getNetworkStatus"),lt=d("setIosSwipeGestureEnabled"),gt=d("openURL"),ft=d("openPermissionDialog"),vt=d("getPermission"),ht=d("requestPermission"),wt=v("setClipboardText"),Et=v("getClipboardText"),At=v("fetchContacts"),bt=v("fetchAlbumPhotos"),_t=v("getCurrentLocation"),Ct=v("openCamera"),St=d("appLogin"),It=d("getAnonymousKey"),yt=d("eventLog"),Tt=d("getTossShareLink"),Rt=d("setDeviceOrientation"),Lt=d("checkoutPayment"),Pt=d("requestTossPayPaysBilling"),xt=d("saveBase64Data"),Dt=d("openPDFViewer"),Nt=d("fetchAlbumItems"),Mt=d("appsInTossSignTossCert"),Ft=d("getGameCenterGameProfile"),Gt=d("openGameCenterLeaderboard"),Bt=d("submitGameCenterLeaderBoardScore"),kt=d("getUserKeyForGame"),Ot=d("grantPromotionReward"),Vt=d("grantPromotionRewardForGame"),Ht=d("getIsTossLoginIntegratedService"),Ut=d("getServerTime"),qt=d("getConsentedUserData"),Wt=d("requestReview"),zt=v("getLocale"),$t=v("getSchemeUri"),jt=v("getPlatformOS"),Kt=v("getOperationalEnvironment"),Jt=v("getTossAppVersion"),Xt=v("getDeviceId"),Yt=v("getGroupId"),Zt=D("contactsViral"),Qt=D("startUpdateLocation"),er=D("onVisibilityChangedByTransparentServiceWeb");var S=class extends Error{constructor({methodName:e,message:t}){super(),this.name=`${e} permission error`,this.message=t}},j=class extends S{constructor(){super({methodName:"fetchAlbumPhotos",message:"\\uC0AC\\uC9C4\\uCCA9 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},K=class extends S{constructor(){super({methodName:"fetchContacts",message:"\\uC5F0\\uB77D\\uCC98 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},J=class extends S{constructor(){super({methodName:"openCamera",message:"\\uCE74\\uBA54\\uB77C \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var V=class extends S{constructor(){super({methodName:"getCurrentLocation",message:"\\uC704\\uCE58 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},X=V,Y=class extends S{constructor(){super({methodName:"getClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC77D\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},Z=class extends S{constructor(){super({methodName:"setClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC4F0\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var we=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},A=new we,de=()=>Math.random().toString(36).substring(2,15),ce=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function c(e){return(...t)=>{let r=de(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(A.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(A.on(`${e}/reject/${r}`,i=>{o(),a(ce(i))})),A.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function b(e){return t=>{let r=de(),n=[A.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),A.on(`${e}/onError/${r}`,o=>{t.onError(ce(o))})];return A.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{A.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function p(e){return()=>A.getConstant(e)}var ur={getItem:c("getStorageItem"),setItem:c("setStorageItem"),removeItem:c("removeStorageItem"),clearItems:c("clearItems")},Ee=/^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*))?(?:\\+[\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*)?)?)?$/i,Q=e=>["*","x","X"].includes(e),ee=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},Ae=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],be=(e,t)=>{if(Q(e)||Q(t))return 0;let[r,n]=Ae(ee(e),ee(t));return r>n?1:r<n?-1:0},te=e=>{if(typeof e!="string")throw new TypeError("Invalid argument: expected a string");let t=e.match(Ee);if(!t)throw new Error(`Invalid semver: \'${e}\'`);let[,r,n,o,s,a]=t;return[r,n,o,s,a]},re=(e,t)=>{let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]??"0",s=t[n]??"0",a=be(o,s);if(a!==0)return a}return 0},_e=(e,t)=>{let r=te(e),n=te(t),o=r.pop(),s=n.pop(),a=re(r,n);return a!==0?a:o&&s?re(o.split("."),s.split(".")):o?-1:s?1:0};function H(e){if(p("getOperationalEnvironment")()==="sandbox")return!0;let r=p("getTossAppVersion")(),o=p("getPlatformOS")()==="ios"?e.ios:e.android;return o===void 0?!1:o==="always"?!0:o==="never"?!1:_e(r,o)>=0}function ne(e){return c("processProductGrant")(e)}var pr={createOneTimePurchaseOrder:e=>{let t=H({android:"5.219.0",ios:"5.219.0"}),r=()=>{};if(!t)return r;let n=H({android:"5.231.1",ios:"5.230.0"}),{options:o,onEvent:s,onError:a}=e,i=o.sku??o.productId;return n?b("requestOneTimePurchase")({options:{sku:i},onEvent:async g=>{if(g.type==="purchased"){let u=await o.processProductGrant({orderId:g.data.orderId});await ne({orderId:g.data.orderId,isProductGranted:u}).catch(a)}else s(g)},onError:g=>{a(g)}}):(c("iapCreateOneTimePurchaseOrder")({productId:i}).then(u=>{Promise.resolve(o.processProductGrant({orderId:u.orderId})).then(()=>{s({type:"success",data:u})}).catch(f=>{a(f)})}).catch(u=>{a(u)}),r)},createSubscriptionPurchaseOrder:e=>{let t=H({android:"5.248.0",ios:"5.249.0"}),r=()=>{};if(!t)return r;let{options:n,onEvent:o,onError:s}=e,{sku:a,offerId:i,processProductGrant:l}=n;return b("requestSubscriptionPurchase")({options:{sku:a,offerId:i??null},onEvent:async u=>{if(u.type==="purchased"){let f=await l({orderId:u.data.orderId,subscriptionId:u.data.subscriptionId});await ne({orderId:u.data.orderId,isProductGranted:f}).catch(s)}else o(u)},onError:u=>{s(u)}})},getProductItemList:c("iapGetProductItemList"),getPendingOrders:c("getPendingOrders"),getCompletedOrRefundedOrders:c("getCompletedOrRefundedOrders"),completeProductGrant:c("completeProductGrant"),getSubscriptionInfo:c("getSubscriptionInfo")},mr=p("getSafeAreaInsets");var lr=p("getSafeAreaInsets");var gr={loadAppsInTossAdMob:Object.assign(b("loadAppsInTossAdMob"),{isSupported:p("loadAppsInTossAdMob_isSupported")}),showAppsInTossAdMob:Object.assign(b("showAppsInTossAdMob"),{isSupported:p("showAppsInTossAdMob_isSupported")}),isAppsInTossAdMobLoaded:Object.assign(c("isAppsInTossAdMobLoaded"),{isSupported:p("isAppsInTossAdMobLoaded_isSupported")})};var fr={getDeploymentId:p("getDeploymentId")},vr=p("deploymentId"),hr=p("brandDisplayName"),wr=p("brandIcon"),Er=p("brandPrimaryColor");var Ar={addAccessoryButton:c("addAccessoryButton"),removeAccessoryButton:c("removeAccessoryButton")},Ce=c("requestPermission"),Se=c("getPermission"),Ie=c("openPermissionDialog");function I({permission:e,handler:t,error:r}){let n=async(...o)=>{if(await Ce(e)==="denied")throw new r;return t(...o)};return n.getPermission=()=>Se(e),n.openPermissionDialog=()=>Ie(e),n}var _r=I({handler:e=>c("fetchAlbumPhotos")(e),permission:{name:"photos",access:"read"},error:j}),Sr=I({handler:e=>c("fetchContacts")(e),permission:{name:"contacts",access:"read"},error:K}),yr=I({handler:e=>c("getCurrentLocation")(e),permission:{name:"geolocation",access:"access"},error:V}),Rr=I({handler:e=>c("openCamera")(e),permission:{name:"camera",access:"access"},error:J}),Pr=I({handler:e=>c("setClipboardText")(e),permission:{name:"clipboard",access:"write"},error:Z}),Dr=I({handler:()=>c("getClipboardText")(),permission:{name:"clipboard",access:"read"},error:Y}),ye=c("getPermission"),Te=c("openPermissionDialog"),ue=e=>b("updateLocationEvent")({...e,onError:t=>{let r=new X;return t instanceof Error&&t.name===r.name?e.onError(r):e.onError(t)}});ue.getPermission=()=>ye({name:"geolocation",access:"access"});ue.openPermissionDialog=()=>Te({name:"geolocation",access:"access"});var Mr=Object.assign(b("loadFullScreenAd"),{isSupported:p("loadFullScreenAd_isSupported")}),Fr=Object.assign(b("showFullScreenAd"),{isSupported:p("showFullScreenAd_isSupported")}),P=new WeakMap;function Re(e,t){let r=P.get(e);if(r)return r;let n=t(),o=!1,s={destroy(){o||(o=!0,P.get(e)===s&&P.delete(e),n.destroy())}};return P.set(e,s),s}function Le(){P=new WeakMap}var Pe=c("openURL");function xe(e){let t=De(e);return Pe(t)}function De(e){return["http://","https://"].some(r=>e.startsWith(r))?Ne(e):e}function Ne(e){return`supertoss://web?url=${encodeURIComponent(e)}&external=true`}var oe="https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js",se=15e3,N=null;function C(){if(!(typeof window>"u"))return window.TossAdsSpaceKit}function Me(){if(typeof window>"u"||typeof document>"u")return Promise.reject(new Error("Ads SDK can only be loaded in a browser environment."));let e=C();if(e)return Promise.resolve(e);if(N)return N;let t=new Promise((r,n)=>{let o=document.createElement("script"),s=()=>{o.removeEventListener("load",a),o.removeEventListener("error",i),window.clearTimeout(l),N=null},a=()=>{let g=C();if(g){s(),r(g);return}s(),n(new Error("Ads SDK script loaded but window.TossAdsSpaceKit was not exposed."))},i=()=>{s(),n(new Error(`Failed to load Ads SDK script from ${oe}.`))},l=window.setTimeout(()=>{s(),n(new Error(`Loading Ads SDK timed out after ${se}ms.`))},se);o.addEventListener("load",a),o.addEventListener("error",i),o.async=!0,o.src=oe,document.head.appendChild(o)});return N=t,t}var _=Object.assign(b("fetchTossAd"),{isSupported:p("fetchTossAd_isSupported")}),Fe=c("tossAdEventLog"),Ge=new Set(["1","2"]),pe="\\uC798\\uBABB\\uB41C \\uC694\\uCCAD\\uC774\\uC5D0\\uC694. \\uD544\\uC694\\uD55C \\uAC12\\uC774 \\uBE44\\uC5B4 \\uC788\\uC5B4\\uC694.";function M(e){return e.trim()}function q(){return new Error(pe)}function Be(){return{resultType:"FAIL",error:{reason:pe}}}function ke(e){return new Promise((t,r)=>{if(!_.isSupported()){r(new Error("fetchTossAd is not supported in this environment."));return}let n=M(e.adGroupId);if(n.length===0){r(q());return}return _({options:{...e,adGroupId:n},onEvent:t,onError:r})})}function ae(e){let t=Array.isArray(e.ads)?e.ads.filter(r=>Ge.has(String(r.styleId))):[];return{requestId:e.requestId??"",status:e.status??"OK",ads:t,ext:e.ext}}function Oe(e){return Ve(e)?e.resultType!=="SUCCESS"?e:e.success?{...e,success:ae(e.success)}:{resultType:"FAIL",error:{reason:"fetchTossAd returned SUCCESS without payload"}}:He(e)?{resultType:"SUCCESS",success:ae(e)}:{resultType:"FAIL",error:{reason:"Invalid response from fetchTossAd"}}}function Ve(e){return!!(e&&typeof e=="object"&&"resultType"in e)}function He(e){return!!(e&&typeof e=="object"&&"ads"in e)}function Ue(){return async(e,t)=>{let r=M(t.spaceUnitId);if(r.length===0)return Be();try{let n=await ke({adGroupId:r,sdkId:"108",availableStyleIds:["1","2"]});return Oe(n)}catch(n){return{resultType:"FAIL",error:{reason:n instanceof Error?n.message:"Unknown fetchTossAd error"}}}}}var L=null;function qe(e){let{callbacks:t}=e,r=()=>t?.onInitialized?.(),n=a=>{let i=a instanceof Error?a:new Error(String(a));t?.onInitializationFailed?.(i)};if(C()?.isInitialized()){r();return}if(L!=null){L.then(r).catch(n);return}let s=Me().then(a=>{if(a.isInitialized())return;let l={environment:"live",customAdFetcher:Ue(),opener:xe};a.init(l)});L=s,s.then(r).catch(n).finally(()=>{L===s&&(L=null)})}function We(e,t,r={}){let{callbacks:n}=r,o=M(e),s=a=>{let i=a instanceof Error?a:new Error(String(a));n?.onAdFailedToRender?.({slotId:"",adGroupId:o,adMetadata:{},error:{code:0,message:i.message}})};try{let a=o;if(a.length===0)throw q();let i=C();if(!i)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!i.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let l=typeof t=="string"?document.querySelector(t):t;if(!l)throw new Error(`[toss-ad] Failed to find target element: ${t}`);let g={spaceId:a,autoLoad:!0,theme:r.theme,padding:r.padding,callbacks:le(o,r.callbacks)};i.banner.createSlot(l,g)}catch(a){s(a)}}var ze="16px 20px",$e="20px",je="auto",Ke="blackAndWhite",Je="expanded",h="toss-ads-attach",ie="toss-ads-attach-style",me="data-toss-ads-attach-banner-wrapper",U=\'"Toss Product Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif\';function Xe(e){let t=e.ownerDocument;if(!t||t.getElementById(ie))return;let r=t.createElement("style");r.id=ie,r.textContent=`\n .${h},\n .${h} * {\n font-family: ${U};\n font-style: normal;\n }\n .${h} { background: #ffffff; }\n .${h}.toss-ads-tone-grey { background: #f2f4f7; }\n @media (prefers-color-scheme: dark) {\n .${h} { background: #17171c; }\n .${h}.toss-ads-tone-grey { background: #101013; }\n }\n .${h}.toss-ads-theme-light { background: #ffffff; }\n .${h}.toss-ads-theme-light.toss-ads-tone-grey { background: #f2f4f7; }\n .${h}.toss-ads-theme-dark { background: #17171c; }\n .${h}.toss-ads-theme-dark.toss-ads-tone-grey { background: #101013; }\n `;let n=t.head??t.body??t.documentElement;n&&n.appendChild(r)}function Ye(e){Array.from(e.children).forEach(t=>{t instanceof HTMLElement&&t.getAttribute(me)==="true"&&e.removeChild(t)})}function Ze(e,t,r={}){let{callbacks:n,theme:o=je,tone:s=Ke,variant:a=Je}=r,i=M(e),l=u=>{let f=u instanceof Error?u:new Error(String(u));n?.onAdFailedToRender?.({slotId:"",adGroupId:i,adMetadata:{},error:{code:0,message:f.message}})},g=le(i,n);try{let u=i;if(u.length===0)throw q();let f=C();if(!f)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!f.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let R=typeof t=="string"?document.querySelector(t):t;if(!R)throw new Error(`[toss-ad] Failed to find target element: ${t}`);return Re(R,()=>{let m=document.createElement("div");m.style.width="100%",m.style.height="100%",m.style.boxSizing="border-box",m.style.display="flex",m.style.flexDirection="column",m.style.fontFamily=U,m.style.fontStyle="normal",m.style.justifyContent="center",m.style.overflow="hidden",m.setAttribute(me,"true"),a==="card"&&(m.style.padding="0 10px");let w=document.createElement("div");w.classList.add(h),w.style.fontFamily=U,w.style.fontStyle="normal",s==="grey"&&w.classList.add("toss-ads-tone-grey"),o==="light"?w.classList.add("toss-ads-theme-light"):o==="dark"&&w.classList.add("toss-ads-theme-dark"),a==="card"&&(w.style.borderRadius="16px",w.style.overflow="hidden"),m.appendChild(w);let x=!1,W=null;try{Xe(R),Ye(R),R.appendChild(m),x=!0;let O={spaceId:u,autoLoad:!0,theme:o==="auto"?void 0:o,renderPadding:fe=>fe==="1"?ze:$e,callbacks:g};W=f.banner.createSlot(w,O)}catch(O){throw x&&m.parentNode&&m.parentNode.removeChild(m),O}return{destroy(){W?.destroy(),x&&m.parentNode&&m.parentNode.removeChild(m),x=!1}}})}catch(u){return l(u),{destroy(){}}}}function Qe(e){let t=C();t?.banner&&t.banner.destroy(e)}function et(){let e=C();e?.banner&&(e.banner.destroyAll(),Le())}function le(e,t){if(!t)return;let r=n=>{let o={...n??{}};return o.adGroupId=o.adGroupId??o.spaceId??e,delete o.spaceId,o};return{onAdRendered:n=>t.onAdRendered?.(r(n)),onAdViewable:n=>t.onAdViewable?.(r(n)),onAdClicked:n=>t.onAdClicked?.(r(n)),onAdImpression:n=>{Fe({log_name:"display_ads_all::impression__1px_banner",log_type:"event",params:{event_type:"impression",schema_id:1812034,request_id:n?.adMetadata?.requestId??""}}),t.onAdImpression?.(r(n))},onAdFailedToRender:n=>t.onAdFailedToRender?.({...r(n),error:n?.error??{code:0,message:"UNKNOWN"}}),onNoFill:n=>t.onNoFill?.(r(n))}}var Gr={initialize:Object.assign(qe,{isSupported:_.isSupported}),attach:Object.assign(We,{isSupported:_.isSupported}),attachBanner:Object.assign(Ze,{isSupported:_.isSupported}),destroy:Object.assign(Qe,{isSupported:_.isSupported}),destroyAll:Object.assign(et,{isSupported:_.isSupported})},Br=Object.assign(c("getServerTime"),{isSupported:p("getServerTime_isSupported")}),kr=Object.assign(c("requestReview"),{isSupported:p("requestReview_isSupported")});var F=class{_log=c("debugLog");log(t,r){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...r,...this.getCommonParams()}})}catch{}}getCommonParams(){return{...this.getLocationInfo(),...this.getNavigatorInfo(),...this.getScreenInfo(),appName:window.__appsInToss.appName,deploymentId:window.__appsInToss.deploymentId,sessionId:window.__appsInToss.sessionId,isGame:window.__appsInToss.webViewType==="game",timestampMs:Date.now()}}getLocationInfo(){return{url:window.location.href,urlOrigin:window.location.origin,urlHost:window.location.hostname,urlPath:window.location.pathname,urlSearch:window.location.search}}getNavigatorInfo(){return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,deviceMemory:navigator.deviceMemory?navigator.deviceMemory*1024*1024:void 0,maxTouchPoints:navigator.maxTouchPoints}}getScreenInfo(){return{screenWidth:screen.width,screenHeight:screen.height,availableScreenWidth:screen.availWidth,availableScreenHeight:screen.availHeight,devicePixelRatio:window.devicePixelRatio,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}}};var G=class{callbacks={};on(t,r){return typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(r),()=>{this.callbacks[t]=this.callbacks[t]?.filter(n=>n!==r)??[]}}emit(t,r){this.callbacks[t]?.forEach(n=>n(r))}};window.__appsInToss={appName:p("getAppName")(),deploymentId:p("getDeploymentId")(),webViewType:p("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new G,debugLogger:new F};var y=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function B(e){window.fetch=new Proxy(window.fetch,{apply:e})}(()=>{if(window.__appsInToss.webViewType!=="game"||typeof caches>"u")return;let e="@apps-in-toss/caches/",t=`${e}${window.__appsInToss.deploymentId}`;window.addEventListener("load",async()=>{let r=await caches.keys();for(let n of r)n.startsWith(e)&&n!==t&&await caches.delete(n)}),B(async(r,n,o)=>{let s=new Request(o[0],o[1]);if(!y.test(s.url))return await r.call(n,s);let a=await caches.open(t),i=await a.match(s);if(i){let g=i.headers.get("ETag"),u=i.headers.get("Last-Modified");g&&s.headers.set("If-None-Match",g),u&&s.headers.set("If-Modified-Since",u);let f=await r.call(n,s);return f.status===304?(i.__revalidateResponse=f,i):(a.put(s,f.clone()),f)}let l=await r.call(n,s);return a.put(s,l.clone()),l})})();B(async(e,t,r)=>{let n=new Request(r[0],r[1]),o=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:n});try{let s=await e.call(t,n);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:n,response:s,requestAt:o}),s}catch(s){throw window.__appsInToss.eventEmitter.emit("fetchError",{request:n,requestAt:o,error:s}),s}});HTMLCanvasElement.prototype.getContext=new Proxy(HTMLCanvasElement.prototype.getContext,{apply:(e,t,r)=>{let n=e.apply(t,r);return(n instanceof WebGL2RenderingContext||n instanceof WebGLRenderingContext)&&window.__appsInToss.eventEmitter.emit("webglGetContext",{canvas:t,context:n}),n}});var ge=window.__appsInToss.debugLogger;ge.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,r=typeof e<"u"&&t!==null,n=r?{navigationStartAtMs:e+t.startTime,navigationRedirectStartAtMs:e+t.redirectStart,navigationRedirectEndAtMs:e+t.redirectEnd,navigationRedirectCount:t.redirectCount,navigationServiceWorkerStartAtMs:e+t.workerStart,navigationFetchStartAtMs:e+t.fetchStart,navigationDomainLookupStartAtMs:e+t.domainLookupStart,navigationDomainLookupEndAtMs:e+t.domainLookupEnd,navigationConnectStartAtMs:e+t.connectStart,navigationSecureConnectStartAtMs:e+t.secureConnectionStart,navigationConnectEndAtMs:e+t.connectEnd,navigationRequestStartAtMs:e+t.requestStart,navigationResponseStartAtMs:e+t.responseStart,navigationResponseEndAtMs:e+t.responseEnd,navigationDomInteractiveAtMs:e+t.domInteractive,navigationDomContentLoadedEventStartAtMs:e+t.domContentLoadedEventStart,navigationDomContentLoadedEventEndAtMs:e+t.domContentLoadedEventEnd,navigationDomCompleteAtMs:e+t.domComplete}:{};ge.log("load_complete",{isNavigationDebugSupported:r,...n})});function T(e,t){return parseFloat(e.toFixed(t))}(()=>{if(typeof performance.memory>"u"||typeof performance.memory.usedJSHeapSize>"u"||typeof performance.memory.totalJSHeapSize>"u"||typeof performance.memory.jsHeapSizeLimit>"u")return;function e(t){window.__appsInToss.debugLogger.log(t,{usedJSHeapSize:T(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:T(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:T(performance.memory.jsHeapSizeLimit/1024,2)})}e("memory_usage_first_0s"),setTimeout(()=>e("memory_usage_first_1s"),1e3),setTimeout(()=>e("memory_usage_first_10s"),1e4),setTimeout(()=>e("memory_usage_first_30s"),3e4),setTimeout(()=>e("memory_usage_first_60s"),6e4),setInterval(()=>e("memory_usage_every_180s"),18e4)})();(()=>{let e=window.__appsInToss.debugLogger,t=performance.timeOrigin;if(typeof t>"u"||typeof PerformanceObserver>"u")return;new PerformanceObserver(o=>{o.getEntries().forEach(a=>{a.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+a.startTime}):a.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+a.startTime})})}).observe({type:"paint"}),new PerformanceObserver(o=>{o.getEntries().forEach(a=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+a.startTime,lcpRenderSize:a.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.eventEmitter.on("webglGetContext",({canvas:t,context:r})=>{if(t.getAttribute("id")!=="unity-canvas")return;e();let n=r.getExtension("WEBGL_debug_renderer_info"),o=r.getParameter(r.MAX_VIEWPORT_DIMS),s={webGLRenderer:r.getParameter(r.RENDERER),webGLVendor:r.getParameter(r.VENDOR),webGLVersion:r.getParameter(r.VERSION),webGLShadingLanguageVersion:r.getParameter(r.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:r.getParameter(r.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:o[0],webGLMaxViewportHeight:o[1],webGLMaxRenderbufferSize:r.getParameter(r.MAX_RENDERBUFFER_SIZE)},a=n?{webGLUnmaskedVendor:r.getParameter(n.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:r.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...s,...a})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{y.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})});function r({request:n,requestAt:o,error:s}){e.log("game_resource_download_error",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceError:s instanceof Error?s.message:"Unknown Error"})}t.on("fetchResponse",async({request:n,requestAt:o,response:s})=>{if(!y.test(n.url))return;let a=await s.clone().blob().then(l=>T(l.size/1024,2)).catch(l=>(r({request:n,requestAt:o,error:l}),null));if(a===null)return;let i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceResponseAtMs:i,gameResourceResponseSize:a,gameResourceResponseStatus:s.__revalidateResponse?.status??s.status,gameResourceDownloadDurationMs:i-o})}),t.on("fetchError",async({request:n,requestAt:o,error:s})=>{y.test(n.url)&&r({request:n,requestAt:o,error:s})})})();var k=[];function tt(){let e=0;function t(r){let n=performance.now();if(r<n-1e3){k.push(e);return}e+=1,window.requestAnimationFrame(()=>t(r))}window.requestAnimationFrame(()=>t(performance.now()))}function rt(){if(k.length===0)return;let e=k;k=[];let t=nt(e).toSorted(),r={};for(let o=0;o<=100;o+=10){let s=t[Math.floor((t.length-1)*(o/100))];s&&(r[`fpsP${o}`]=s)}let n=t.reduce((o,s)=>o+s,0);r.fpsAverage=n/t.length,window.__appsInToss.debugLogger.log("fps_every_300s",r)}function nt(e){let t=new Set(e);return Array.from(t.values())}setInterval(()=>tt(),1e3);setInterval(()=>rt(),3e5);})();\n';
|
|
45298
45476
|
}
|
|
45299
45477
|
});
|
|
45300
45478
|
|
|
@@ -45499,6 +45677,38 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45499
45677
|
handler
|
|
45500
45678
|
]);
|
|
45501
45679
|
}
|
|
45680
|
+
function useCloseConfirm() {
|
|
45681
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45682
|
+
var openConfirm = useDialog().openConfirm;
|
|
45683
|
+
return (0, import_react189.useCallback)(function(param) {
|
|
45684
|
+
var onEntered = param.onEntered;
|
|
45685
|
+
return _async_to_generator(function() {
|
|
45686
|
+
return __generator(this, function(_state) {
|
|
45687
|
+
switch (_state.label) {
|
|
45688
|
+
case 0:
|
|
45689
|
+
return [
|
|
45690
|
+
4,
|
|
45691
|
+
openConfirm({
|
|
45692
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45693
|
+
leftButton: "\uB2EB\uAE30",
|
|
45694
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45695
|
+
closeOnDimmerClick: true,
|
|
45696
|
+
onEntered
|
|
45697
|
+
})
|
|
45698
|
+
];
|
|
45699
|
+
case 1:
|
|
45700
|
+
return [
|
|
45701
|
+
2,
|
|
45702
|
+
_state.sent()
|
|
45703
|
+
];
|
|
45704
|
+
}
|
|
45705
|
+
});
|
|
45706
|
+
})();
|
|
45707
|
+
}, [
|
|
45708
|
+
brandDisplayName,
|
|
45709
|
+
openConfirm
|
|
45710
|
+
]);
|
|
45711
|
+
}
|
|
45502
45712
|
function createEvent(event) {
|
|
45503
45713
|
return {
|
|
45504
45714
|
name: event,
|
|
@@ -45552,8 +45762,30 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45552
45762
|
})
|
|
45553
45763
|
});
|
|
45554
45764
|
};
|
|
45765
|
+
var logClosePopupShow = function() {
|
|
45766
|
+
sendLog({
|
|
45767
|
+
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
45768
|
+
log_type: "popup",
|
|
45769
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45770
|
+
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
45771
|
+
})
|
|
45772
|
+
});
|
|
45773
|
+
};
|
|
45774
|
+
var logClosePopupCtaClick = function(confirm) {
|
|
45775
|
+
sendLog({
|
|
45776
|
+
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
45777
|
+
log_type: "event",
|
|
45778
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45779
|
+
close_yn: confirm ? "Y" : "N",
|
|
45780
|
+
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
45781
|
+
event_type: "click"
|
|
45782
|
+
})
|
|
45783
|
+
});
|
|
45784
|
+
};
|
|
45555
45785
|
return {
|
|
45556
45786
|
navBarImpression: logNavBarImpression,
|
|
45787
|
+
closePopupShow: logClosePopupShow,
|
|
45788
|
+
closePopupCtaClick: logClosePopupCtaClick,
|
|
45557
45789
|
closeButtonClick: logCloseButtonClick,
|
|
45558
45790
|
homeButtonClick: logHomeButtonClick
|
|
45559
45791
|
};
|
|
@@ -45562,7 +45794,40 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45562
45794
|
var backEventContext = useBackEventContext();
|
|
45563
45795
|
var logging = useNavigationBarLogging();
|
|
45564
45796
|
var navigation = useNavigation();
|
|
45797
|
+
var closeConfirm = useCloseConfirm();
|
|
45798
|
+
var global2 = getAppsInTossGlobals();
|
|
45565
45799
|
return (0, import_react188.useMemo)(function() {
|
|
45800
|
+
var close = function() {
|
|
45801
|
+
return _async_to_generator(function() {
|
|
45802
|
+
var hasConfirmed;
|
|
45803
|
+
return __generator(this, function(_state) {
|
|
45804
|
+
switch (_state.label) {
|
|
45805
|
+
case 0:
|
|
45806
|
+
if (global2.appType !== "game") {
|
|
45807
|
+
closeView();
|
|
45808
|
+
return [
|
|
45809
|
+
2
|
|
45810
|
+
];
|
|
45811
|
+
}
|
|
45812
|
+
return [
|
|
45813
|
+
4,
|
|
45814
|
+
closeConfirm({
|
|
45815
|
+
onEntered: logging.closePopupShow
|
|
45816
|
+
})
|
|
45817
|
+
];
|
|
45818
|
+
case 1:
|
|
45819
|
+
hasConfirmed = _state.sent();
|
|
45820
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
45821
|
+
if (hasConfirmed) {
|
|
45822
|
+
closeView();
|
|
45823
|
+
}
|
|
45824
|
+
return [
|
|
45825
|
+
2
|
|
45826
|
+
];
|
|
45827
|
+
}
|
|
45828
|
+
});
|
|
45829
|
+
})();
|
|
45830
|
+
};
|
|
45566
45831
|
return {
|
|
45567
45832
|
handleBack: function() {
|
|
45568
45833
|
if (backEventContext.hasBackEvent) {
|
|
@@ -45570,7 +45835,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45570
45835
|
} else if (navigation.canGoBack()) {
|
|
45571
45836
|
navigation.goBack();
|
|
45572
45837
|
} else {
|
|
45573
|
-
|
|
45838
|
+
close();
|
|
45574
45839
|
}
|
|
45575
45840
|
},
|
|
45576
45841
|
handleHomeButtonClick: function() {
|
|
@@ -45585,12 +45850,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45585
45850
|
},
|
|
45586
45851
|
handleCloseButtonClick: function() {
|
|
45587
45852
|
logging.closeButtonClick();
|
|
45588
|
-
|
|
45853
|
+
close();
|
|
45589
45854
|
}
|
|
45590
45855
|
};
|
|
45591
45856
|
}, [
|
|
45857
|
+
global2.appType,
|
|
45592
45858
|
backEventContext,
|
|
45593
45859
|
navigation,
|
|
45860
|
+
closeConfirm,
|
|
45594
45861
|
logging
|
|
45595
45862
|
]);
|
|
45596
45863
|
}
|
|
@@ -45817,7 +46084,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45817
46084
|
function useMoreButtonBottomSheet() {
|
|
45818
46085
|
var globals = getAppsInTossGlobals();
|
|
45819
46086
|
var adaptive = useAdaptive();
|
|
45820
|
-
var _useState4 = _sliced_to_array((0,
|
|
46087
|
+
var _useState4 = _sliced_to_array((0, import_react190.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
45821
46088
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45822
46089
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45823
46090
|
var overlay = useOverlay();
|
|
@@ -45826,7 +46093,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45826
46093
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
45827
46094
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
45828
46095
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
45829
|
-
(0,
|
|
46096
|
+
(0, import_react190.useEffect)(function() {
|
|
45830
46097
|
if (!isBottomSheetSupported) {
|
|
45831
46098
|
return;
|
|
45832
46099
|
}
|
|
@@ -45927,7 +46194,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45927
46194
|
function BottomSheetImpressionArea(param) {
|
|
45928
46195
|
var children = param.children;
|
|
45929
46196
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45930
|
-
(0,
|
|
46197
|
+
(0, import_react190.useEffect)(function() {
|
|
45931
46198
|
logging.show();
|
|
45932
46199
|
}, [
|
|
45933
46200
|
logging
|
|
@@ -45940,7 +46207,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45940
46207
|
var left = param.left, center = param.center, right = param.right;
|
|
45941
46208
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
45942
46209
|
var navigation = useNavigation();
|
|
45943
|
-
(0,
|
|
46210
|
+
(0, import_react191.useEffect)(function() {
|
|
45944
46211
|
var _ref, _ref1;
|
|
45945
46212
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
45946
46213
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
@@ -46187,9 +46454,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46187
46454
|
}
|
|
46188
46455
|
function NavigationBarImpressionArea(param) {
|
|
46189
46456
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46190
|
-
var hasLogged = (0,
|
|
46457
|
+
var hasLogged = (0, import_react192.useRef)(false);
|
|
46191
46458
|
var logging = useNavigationBarLogging();
|
|
46192
|
-
(0,
|
|
46459
|
+
(0, import_react192.useEffect)(function() {
|
|
46193
46460
|
if (hasLogged.current === false) {
|
|
46194
46461
|
logging.navBarImpression({
|
|
46195
46462
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -46409,22 +46676,43 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46409
46676
|
function GameWebviewNavigationBar() {
|
|
46410
46677
|
var _ref;
|
|
46411
46678
|
var openConfirm = useDialog().openConfirm;
|
|
46679
|
+
var global2 = getAppsInTossGlobals();
|
|
46412
46680
|
var logging = useNavigationBarLogging();
|
|
46413
46681
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46414
46682
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46415
46683
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
46416
46684
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
46417
|
-
var handleGameWebviewClose = (0,
|
|
46685
|
+
var handleGameWebviewClose = (0, import_react195.useCallback)(function() {
|
|
46418
46686
|
return _async_to_generator(function() {
|
|
46687
|
+
var isConfirmed;
|
|
46419
46688
|
return __generator(this, function(_state) {
|
|
46420
|
-
|
|
46421
|
-
|
|
46422
|
-
|
|
46423
|
-
|
|
46424
|
-
|
|
46689
|
+
switch (_state.label) {
|
|
46690
|
+
case 0:
|
|
46691
|
+
logging.closeButtonClick();
|
|
46692
|
+
return [
|
|
46693
|
+
4,
|
|
46694
|
+
openConfirm({
|
|
46695
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46696
|
+
leftButton: "\uB2EB\uAE30",
|
|
46697
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46698
|
+
closeOnDimmerClick: true,
|
|
46699
|
+
onEntered: logging.closePopupShow
|
|
46700
|
+
})
|
|
46701
|
+
];
|
|
46702
|
+
case 1:
|
|
46703
|
+
isConfirmed = _state.sent();
|
|
46704
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
46705
|
+
if (isConfirmed) {
|
|
46706
|
+
closeView();
|
|
46707
|
+
}
|
|
46708
|
+
return [
|
|
46709
|
+
2
|
|
46710
|
+
];
|
|
46711
|
+
}
|
|
46425
46712
|
});
|
|
46426
46713
|
})();
|
|
46427
46714
|
}, [
|
|
46715
|
+
global2.brandDisplayName,
|
|
46428
46716
|
logging,
|
|
46429
46717
|
openConfirm
|
|
46430
46718
|
]);
|
|
@@ -46448,7 +46736,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46448
46736
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
46449
46737
|
var theme = (_ref2 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.theme) !== null && _ref2 !== void 0 ? _ref2 : "light";
|
|
46450
46738
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46451
|
-
var handleClose = (0,
|
|
46739
|
+
var handleClose = (0, import_react197.useCallback)(function() {
|
|
46452
46740
|
return _async_to_generator(function() {
|
|
46453
46741
|
return __generator(this, function(_state) {
|
|
46454
46742
|
logging.closeButtonClick();
|
|
@@ -46924,8 +47212,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46924
47212
|
}
|
|
46925
47213
|
function useBridgeHandler(param) {
|
|
46926
47214
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
46927
|
-
var ref = (0,
|
|
46928
|
-
var injectedJavaScript = (0,
|
|
47215
|
+
var ref = (0, import_react198.useRef)(null);
|
|
47216
|
+
var injectedJavaScript = (0, import_react198.useMemo)(function() {
|
|
46929
47217
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46930
47218
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
46931
47219
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -46934,7 +47222,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46934
47222
|
}, [
|
|
46935
47223
|
constantHandlerMap
|
|
46936
47224
|
]);
|
|
46937
|
-
(0,
|
|
47225
|
+
(0, import_react198.useEffect)(function() {
|
|
46938
47226
|
var _ref_current;
|
|
46939
47227
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
46940
47228
|
}, [
|
|
@@ -46953,7 +47241,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46953
47241
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(serializedError, ");\n "));
|
|
46954
47242
|
};
|
|
46955
47243
|
};
|
|
46956
|
-
var $onMessage = (0,
|
|
47244
|
+
var $onMessage = (0, import_react198.useCallback)(function(e63) {
|
|
46957
47245
|
return _async_to_generator(function() {
|
|
46958
47246
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
46959
47247
|
return __generator(this, function(_state) {
|
|
@@ -47026,12 +47314,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47026
47314
|
}
|
|
47027
47315
|
function useSafeAreaInsetsEvent() {
|
|
47028
47316
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47029
|
-
(0,
|
|
47317
|
+
(0, import_react199.useEffect)(function() {
|
|
47030
47318
|
safeAreaInsetsChange.emit(insets);
|
|
47031
47319
|
}, [
|
|
47032
47320
|
insets
|
|
47033
47321
|
]);
|
|
47034
|
-
(0,
|
|
47322
|
+
(0, import_react199.useEffect)(function() {
|
|
47035
47323
|
return function() {
|
|
47036
47324
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
47037
47325
|
};
|
|
@@ -47081,8 +47369,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47081
47369
|
}
|
|
47082
47370
|
}
|
|
47083
47371
|
function useWebViewHistory() {
|
|
47084
|
-
var _useReducer = _sliced_to_array((0,
|
|
47085
|
-
var onNavigationStateChange = (0,
|
|
47372
|
+
var _useReducer = _sliced_to_array((0, import_react201.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
47373
|
+
var onNavigationStateChange = (0, import_react201.useCallback)(function(param) {
|
|
47086
47374
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
47087
47375
|
dispatch({
|
|
47088
47376
|
type: "NAVIGATION_CHANGE",
|
|
@@ -47090,7 +47378,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47090
47378
|
canGoForward: canGoForward2
|
|
47091
47379
|
});
|
|
47092
47380
|
}, []);
|
|
47093
|
-
var _useMemo4 = (0,
|
|
47381
|
+
var _useMemo4 = (0, import_react201.useMemo)(function() {
|
|
47094
47382
|
var canBack = state.index > 0;
|
|
47095
47383
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
47096
47384
|
return {
|
|
@@ -47111,64 +47399,100 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47111
47399
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
47112
47400
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
47113
47401
|
var logging = useNavigationBarLogging();
|
|
47114
|
-
var
|
|
47402
|
+
var openConfirm = useDialog().openConfirm;
|
|
47403
|
+
var global2 = getAppsInTossGlobals();
|
|
47404
|
+
var addEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
47115
47405
|
addWebBackEventListener(handler);
|
|
47116
47406
|
}, [
|
|
47117
47407
|
addWebBackEventListener
|
|
47118
47408
|
]);
|
|
47119
|
-
var removeEventListener = (0,
|
|
47409
|
+
var removeEventListener = (0, import_react200.useCallback)(function(handler) {
|
|
47120
47410
|
removeWebBackEventListener(handler);
|
|
47121
47411
|
}, [
|
|
47122
47412
|
removeWebBackEventListener
|
|
47123
47413
|
]);
|
|
47124
|
-
var handleWebBack = (0,
|
|
47414
|
+
var handleWebBack = (0, import_react200.useCallback)(function() {
|
|
47125
47415
|
return _async_to_generator(function() {
|
|
47126
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
47416
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
47127
47417
|
return __generator(this, function(_state) {
|
|
47128
|
-
|
|
47129
|
-
|
|
47130
|
-
|
|
47131
|
-
|
|
47132
|
-
|
|
47133
|
-
|
|
47134
|
-
|
|
47135
|
-
|
|
47136
|
-
|
|
47137
|
-
|
|
47138
|
-
|
|
47139
|
-
|
|
47140
|
-
|
|
47141
|
-
|
|
47142
|
-
|
|
47143
|
-
|
|
47144
|
-
|
|
47145
|
-
|
|
47418
|
+
switch (_state.label) {
|
|
47419
|
+
case 0:
|
|
47420
|
+
if (hasWebBackEvent) {
|
|
47421
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47422
|
+
try {
|
|
47423
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
47424
|
+
handler = _step.value;
|
|
47425
|
+
handler();
|
|
47426
|
+
}
|
|
47427
|
+
} catch (err) {
|
|
47428
|
+
_didIteratorError = true;
|
|
47429
|
+
_iteratorError = err;
|
|
47430
|
+
} finally {
|
|
47431
|
+
try {
|
|
47432
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47433
|
+
_iterator.return();
|
|
47434
|
+
}
|
|
47435
|
+
} finally {
|
|
47436
|
+
if (_didIteratorError) {
|
|
47437
|
+
throw _iteratorError;
|
|
47438
|
+
}
|
|
47439
|
+
}
|
|
47146
47440
|
}
|
|
47441
|
+
return [
|
|
47442
|
+
2
|
|
47443
|
+
];
|
|
47147
47444
|
}
|
|
47148
|
-
|
|
47149
|
-
|
|
47150
|
-
|
|
47151
|
-
|
|
47152
|
-
|
|
47153
|
-
|
|
47154
|
-
|
|
47155
|
-
|
|
47156
|
-
|
|
47157
|
-
|
|
47445
|
+
if (!hasHistory) return [
|
|
47446
|
+
3,
|
|
47447
|
+
1
|
|
47448
|
+
];
|
|
47449
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
47450
|
+
return [
|
|
47451
|
+
3,
|
|
47452
|
+
3
|
|
47453
|
+
];
|
|
47454
|
+
case 1:
|
|
47455
|
+
if (global2.webViewType !== "game") {
|
|
47456
|
+
closeView();
|
|
47457
|
+
return [
|
|
47458
|
+
2
|
|
47459
|
+
];
|
|
47460
|
+
}
|
|
47461
|
+
return [
|
|
47462
|
+
4,
|
|
47463
|
+
openConfirm({
|
|
47464
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
47465
|
+
leftButton: "\uB2EB\uAE30",
|
|
47466
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
47467
|
+
closeOnDimmerClick: true,
|
|
47468
|
+
onEntered: logging.closePopupShow
|
|
47469
|
+
})
|
|
47470
|
+
];
|
|
47471
|
+
case 2:
|
|
47472
|
+
isConfirmed = _state.sent();
|
|
47473
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
47474
|
+
if (isConfirmed) {
|
|
47475
|
+
closeView();
|
|
47476
|
+
}
|
|
47477
|
+
_state.label = 3;
|
|
47478
|
+
case 3:
|
|
47479
|
+
return [
|
|
47480
|
+
2
|
|
47481
|
+
];
|
|
47158
47482
|
}
|
|
47159
|
-
return [
|
|
47160
|
-
2
|
|
47161
|
-
];
|
|
47162
47483
|
});
|
|
47163
47484
|
})();
|
|
47164
47485
|
}, [
|
|
47486
|
+
global2.webViewType,
|
|
47487
|
+
global2.brandDisplayName,
|
|
47165
47488
|
hasHistory,
|
|
47166
47489
|
hasWebBackEvent,
|
|
47167
47490
|
webBackHandlersRef,
|
|
47168
47491
|
logging,
|
|
47492
|
+
openConfirm,
|
|
47169
47493
|
webViewRef
|
|
47170
47494
|
]);
|
|
47171
|
-
var handleWebHome = (0,
|
|
47495
|
+
var handleWebHome = (0, import_react200.useCallback)(function() {
|
|
47172
47496
|
var _webViewRef_current;
|
|
47173
47497
|
logging.homeButtonClick();
|
|
47174
47498
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -47183,7 +47507,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47183
47507
|
webViewInitialURL,
|
|
47184
47508
|
webViewRef
|
|
47185
47509
|
]);
|
|
47186
|
-
return (0,
|
|
47510
|
+
return (0, import_react200.useMemo)(function() {
|
|
47187
47511
|
return {
|
|
47188
47512
|
addEventListener,
|
|
47189
47513
|
removeEventListener,
|
|
@@ -47488,8 +47812,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47488
47812
|
if (!TYPES.includes(type)) {
|
|
47489
47813
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
47490
47814
|
}
|
|
47491
|
-
var webViewRef = (0,
|
|
47492
|
-
var url = (0,
|
|
47815
|
+
var webViewRef = (0, import_react193.useRef)(null);
|
|
47816
|
+
var url = (0, import_react193.useMemo)(function() {
|
|
47493
47817
|
return getWebViewURL(local);
|
|
47494
47818
|
}, [
|
|
47495
47819
|
local
|
|
@@ -47499,7 +47823,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47499
47823
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47500
47824
|
var navigationBarContext = useNavigationBarContext();
|
|
47501
47825
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
47502
|
-
var _useState6 = _sliced_to_array((0,
|
|
47826
|
+
var _useState6 = _sliced_to_array((0, import_react193.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
47503
47827
|
var handler = useBridgeHandler({
|
|
47504
47828
|
onMessage,
|
|
47505
47829
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -47637,7 +47961,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47637
47961
|
}
|
|
47638
47962
|
})
|
|
47639
47963
|
});
|
|
47640
|
-
var headerPropForExternalWebView = (0,
|
|
47964
|
+
var headerPropForExternalWebView = (0, import_react193.useMemo)(function() {
|
|
47641
47965
|
var _ref;
|
|
47642
47966
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
47643
47967
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -47662,7 +47986,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47662
47986
|
colorPreference: "light"
|
|
47663
47987
|
});
|
|
47664
47988
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
47665
|
-
(0,
|
|
47989
|
+
(0, import_react193.useEffect)(function() {
|
|
47666
47990
|
var callback = function() {
|
|
47667
47991
|
webBackHandler.handleWebBack();
|
|
47668
47992
|
return true;
|
|
@@ -47738,7 +48062,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47738
48062
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47739
48063
|
}));
|
|
47740
48064
|
}
|
|
47741
|
-
var import_react_native182, import_react176, import_react177, import_jsx_runtime212, import_react178, import_jsx_runtime213, import_react179, import_react_native186, import_react180, import_react_native188, import_react181, import_react182, import_react_native191, import_react183, import_react184, import_react185, import_react186, import_jsx_runtime214, import_jsx_runtime215, import_react187, import_react_native194, import_react188, import_react189, import_react_native199, import_jsx_runtime216, import_jsx_runtime217, import_jsx_runtime218, import_jsx_runtime219, import_jsx_runtime220,
|
|
48065
|
+
var import_react_native182, import_react176, import_react177, import_jsx_runtime212, import_react178, import_jsx_runtime213, import_react179, import_react_native186, import_react180, import_react_native188, import_react181, import_react182, import_react_native191, import_react183, import_react184, import_react185, import_react186, import_jsx_runtime214, import_jsx_runtime215, import_react187, import_react_native194, import_react188, import_react189, import_react190, import_react_native199, import_jsx_runtime216, import_jsx_runtime217, import_jsx_runtime218, import_jsx_runtime219, import_jsx_runtime220, import_react191, import_react_native203, import_jsx_runtime221, import_react_native204, import_jsx_runtime222, import_react_native205, import_jsx_runtime223, import_react_native207, import_jsx_runtime224, import_react_native208, import_jsx_runtime225, import_react192, import_jsx_runtime226, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_jsx_runtime230, import_react193, import_react_native210, import_react194, import_react_native211, import_react195, import_jsx_runtime231, import_jsx_runtime232, import_react196, import_react197, import_jsx_runtime233, import_jsx_runtime234, import_react198, import_react199, import_react200, import_react201, import_react_native218, import_react202, import_react203, import_jsx_runtime235, import_react204, import_react_native221, import_react205, import_react_native222, import_jsx_runtime236, import_react206, import_react_native223, import_jsx_runtime237, import_jsx_runtime238, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, DEFAULT_PIPELINES, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION6, BACK_BUTTON_XML2, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, INVALID_AD_GROUP_ID_ERROR_MESSAGE, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
|
|
47742
48066
|
var init_dist8 = __esm({
|
|
47743
48067
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47744
48068
|
"use strict";
|
|
@@ -47804,12 +48128,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47804
48128
|
import_react_native194 = __toESM(require_react_native(), 1);
|
|
47805
48129
|
init_src3();
|
|
47806
48130
|
import_react188 = __toESM(require_react(), 1);
|
|
48131
|
+
init_esm7();
|
|
48132
|
+
init_dist6();
|
|
48133
|
+
import_react189 = __toESM(require_react(), 1);
|
|
47807
48134
|
init_src3();
|
|
47808
48135
|
init_dist5();
|
|
47809
48136
|
init_src3();
|
|
47810
48137
|
init_esm7();
|
|
47811
48138
|
init_private2();
|
|
47812
|
-
|
|
48139
|
+
import_react190 = __toESM(require_react(), 1);
|
|
47813
48140
|
init_dist5();
|
|
47814
48141
|
init_src3();
|
|
47815
48142
|
init_esm7();
|
|
@@ -47828,7 +48155,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47828
48155
|
init_react_native_safe_area_context();
|
|
47829
48156
|
init_src3();
|
|
47830
48157
|
init_esm7();
|
|
47831
|
-
|
|
48158
|
+
import_react191 = __toESM(require_react(), 1);
|
|
47832
48159
|
import_react_native203 = __toESM(require_react_native(), 1);
|
|
47833
48160
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
47834
48161
|
init_react_native_svg();
|
|
@@ -47843,7 +48170,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47843
48170
|
init_esm7();
|
|
47844
48171
|
import_react_native208 = __toESM(require_react_native(), 1);
|
|
47845
48172
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47846
|
-
|
|
48173
|
+
import_react192 = __toESM(require_react(), 1);
|
|
47847
48174
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47848
48175
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47849
48176
|
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47860,21 +48187,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47860
48187
|
init_react_native_safe_area_context();
|
|
47861
48188
|
init_src3();
|
|
47862
48189
|
init_esm7();
|
|
47863
|
-
|
|
48190
|
+
import_react193 = __toESM(require_react(), 1);
|
|
47864
48191
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
47865
48192
|
init_dist5();
|
|
47866
48193
|
init_react_native_webview();
|
|
47867
|
-
|
|
48194
|
+
import_react194 = __toESM(require_react(), 1);
|
|
47868
48195
|
import_react_native211 = __toESM(require_react_native(), 1);
|
|
47869
48196
|
init_src3();
|
|
47870
48197
|
init_esm7();
|
|
47871
|
-
|
|
48198
|
+
init_dist6();
|
|
48199
|
+
import_react195 = __toESM(require_react(), 1);
|
|
47872
48200
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47873
48201
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47874
48202
|
init_react_native_webview();
|
|
47875
|
-
import_react195 = __toESM(require_react(), 1);
|
|
47876
|
-
init_src3();
|
|
47877
48203
|
import_react196 = __toESM(require_react(), 1);
|
|
48204
|
+
init_src3();
|
|
48205
|
+
import_react197 = __toESM(require_react(), 1);
|
|
47878
48206
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47879
48207
|
import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
|
|
47880
48208
|
init_dist5();
|
|
@@ -47883,17 +48211,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47883
48211
|
init_dist5();
|
|
47884
48212
|
init_src3();
|
|
47885
48213
|
init_src3();
|
|
47886
|
-
import_react197 = __toESM(require_react(), 1);
|
|
47887
|
-
init_react_native_safe_area_context();
|
|
47888
48214
|
import_react198 = __toESM(require_react(), 1);
|
|
47889
|
-
|
|
48215
|
+
init_react_native_safe_area_context();
|
|
47890
48216
|
import_react199 = __toESM(require_react(), 1);
|
|
48217
|
+
init_src3();
|
|
48218
|
+
init_esm7();
|
|
48219
|
+
init_dist6();
|
|
47891
48220
|
import_react200 = __toESM(require_react(), 1);
|
|
48221
|
+
import_react201 = __toESM(require_react(), 1);
|
|
47892
48222
|
init_dist5();
|
|
47893
48223
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47894
48224
|
init_dist5();
|
|
47895
|
-
import_react201 = __toESM(require_react(), 1);
|
|
47896
48225
|
import_react202 = __toESM(require_react(), 1);
|
|
48226
|
+
import_react203 = __toESM(require_react(), 1);
|
|
47897
48227
|
init_dist5();
|
|
47898
48228
|
init_src3();
|
|
47899
48229
|
init_esm7();
|
|
@@ -47903,12 +48233,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47903
48233
|
init_dist5();
|
|
47904
48234
|
init_dist3();
|
|
47905
48235
|
init_dist3();
|
|
47906
|
-
import_react203 = __toESM(require_react(), 1);
|
|
47907
|
-
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47908
48236
|
import_react204 = __toESM(require_react(), 1);
|
|
48237
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48238
|
+
import_react205 = __toESM(require_react(), 1);
|
|
47909
48239
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47910
48240
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
47911
|
-
|
|
48241
|
+
import_react206 = __toESM(require_react(), 1);
|
|
47912
48242
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47913
48243
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
47914
48244
|
import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -48463,8 +48793,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48463
48793
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
48464
48794
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
48465
48795
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
48796
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
48797
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
48466
48798
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
48467
48799
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
48800
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
48801
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
48468
48802
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
48469
48803
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
48470
48804
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -48513,8 +48847,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48513
48847
|
AppsInToss = {
|
|
48514
48848
|
registerApp
|
|
48515
48849
|
};
|
|
48516
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
48517
|
-
(0,
|
|
48850
|
+
GameWebView = /* @__PURE__ */ (0, import_react194.forwardRef)(function GameWebView2(props, ref) {
|
|
48851
|
+
(0, import_react194.useEffect)(function() {
|
|
48518
48852
|
if (import_react_native211.Platform.OS === "ios") {
|
|
48519
48853
|
setIosSwipeGestureEnabled({
|
|
48520
48854
|
isEnabled: false
|
|
@@ -48540,7 +48874,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48540
48874
|
]
|
|
48541
48875
|
});
|
|
48542
48876
|
});
|
|
48543
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48877
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
48544
48878
|
var _ref = [
|
|
48545
48879
|
_03,
|
|
48546
48880
|
_1
|