@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 useMemo11 = 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
|
}
|
|
@@ -9468,13 +9468,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
9468
9468
|
|
|
9469
9469
|
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_wrap_native_super.js
|
|
9470
9470
|
function _wrap_native_super(Class) {
|
|
9471
|
-
var
|
|
9471
|
+
var _cache3 = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
9472
9472
|
_wrap_native_super = function _wrap_native_super2(Class2) {
|
|
9473
9473
|
if (Class2 === null || !_is_native_function(Class2)) return Class2;
|
|
9474
9474
|
if (typeof Class2 !== "function") throw new TypeError("Super expression must either be null or a function");
|
|
9475
|
-
if (typeof
|
|
9476
|
-
if (
|
|
9477
|
-
|
|
9475
|
+
if (typeof _cache3 !== "undefined") {
|
|
9476
|
+
if (_cache3.has(Class2)) return _cache3.get(Class2);
|
|
9477
|
+
_cache3.set(Class2, Wrapper);
|
|
9478
9478
|
}
|
|
9479
9479
|
function Wrapper() {
|
|
9480
9480
|
return _construct(Class2, arguments, _get_prototype_of(this).constructor);
|
|
@@ -11658,6 +11658,56 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11658
11658
|
});
|
|
11659
11659
|
})();
|
|
11660
11660
|
}
|
|
11661
|
+
function getAnonymousKey() {
|
|
11662
|
+
return _async_to_generator(function() {
|
|
11663
|
+
var isSupported, response, unused;
|
|
11664
|
+
return __generator(this, function(_state) {
|
|
11665
|
+
switch (_state.label) {
|
|
11666
|
+
case 0:
|
|
11667
|
+
isSupported = isMinVersionSupported(USER_KEY_MIN_VERSION);
|
|
11668
|
+
if (!isSupported) {
|
|
11669
|
+
return [
|
|
11670
|
+
2
|
|
11671
|
+
];
|
|
11672
|
+
}
|
|
11673
|
+
_state.label = 1;
|
|
11674
|
+
case 1:
|
|
11675
|
+
_state.trys.push([
|
|
11676
|
+
1,
|
|
11677
|
+
3,
|
|
11678
|
+
,
|
|
11679
|
+
4
|
|
11680
|
+
]);
|
|
11681
|
+
return [
|
|
11682
|
+
4,
|
|
11683
|
+
safePostMessage("getUserKeyForGame", {})
|
|
11684
|
+
];
|
|
11685
|
+
case 2:
|
|
11686
|
+
response = _state.sent();
|
|
11687
|
+
if (response.type === "HASH") {
|
|
11688
|
+
return [
|
|
11689
|
+
2,
|
|
11690
|
+
response
|
|
11691
|
+
];
|
|
11692
|
+
}
|
|
11693
|
+
return [
|
|
11694
|
+
2,
|
|
11695
|
+
"ERROR"
|
|
11696
|
+
];
|
|
11697
|
+
case 3:
|
|
11698
|
+
unused = _state.sent();
|
|
11699
|
+
return [
|
|
11700
|
+
2,
|
|
11701
|
+
"ERROR"
|
|
11702
|
+
];
|
|
11703
|
+
case 4:
|
|
11704
|
+
return [
|
|
11705
|
+
2
|
|
11706
|
+
];
|
|
11707
|
+
}
|
|
11708
|
+
});
|
|
11709
|
+
})();
|
|
11710
|
+
}
|
|
11661
11711
|
function normalizeParams(params) {
|
|
11662
11712
|
return Object.fromEntries(Object.entries(params).filter(function(param) {
|
|
11663
11713
|
var _param = _sliced_to_array(param, 2), value = _param[1];
|
|
@@ -11672,35 +11722,94 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11672
11722
|
}
|
|
11673
11723
|
function eventLog(params) {
|
|
11674
11724
|
return _async_to_generator(function() {
|
|
11675
|
-
var isSupported;
|
|
11725
|
+
var logParams, _tmp, isSupported;
|
|
11676
11726
|
return __generator(this, function(_state) {
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11727
|
+
switch (_state.label) {
|
|
11728
|
+
case 0:
|
|
11729
|
+
_tmp = {};
|
|
11730
|
+
return [
|
|
11731
|
+
4,
|
|
11732
|
+
cache("eventLog.defaultParams.anonymous_key", function() {
|
|
11733
|
+
return _async_to_generator(function() {
|
|
11734
|
+
var result;
|
|
11735
|
+
return __generator(this, function(_state2) {
|
|
11736
|
+
switch (_state2.label) {
|
|
11737
|
+
case 0:
|
|
11738
|
+
return [
|
|
11739
|
+
4,
|
|
11740
|
+
getAnonymousKey()
|
|
11741
|
+
];
|
|
11742
|
+
case 1:
|
|
11743
|
+
result = _state2.sent();
|
|
11744
|
+
return [
|
|
11745
|
+
2,
|
|
11746
|
+
(typeof result === "undefined" ? "undefined" : _type_of(result)) === "object" ? result.hash : "NONE"
|
|
11747
|
+
];
|
|
11748
|
+
}
|
|
11749
|
+
});
|
|
11750
|
+
})();
|
|
11751
|
+
})
|
|
11752
|
+
];
|
|
11753
|
+
case 1:
|
|
11754
|
+
logParams = _object_spread.apply(void 0, [
|
|
11755
|
+
(_tmp.anonymous_key = _state.sent(), _tmp),
|
|
11756
|
+
params.params
|
|
11757
|
+
]);
|
|
11758
|
+
if (MiniAppModule.getConstants().operationalEnvironment === "sandbox") {
|
|
11759
|
+
console.log("[eventLogDebug]", {
|
|
11760
|
+
log_name: params.log_name,
|
|
11761
|
+
log_type: params.log_type,
|
|
11762
|
+
params: normalizeParams(logParams)
|
|
11763
|
+
});
|
|
11764
|
+
return [
|
|
11765
|
+
2
|
|
11766
|
+
];
|
|
11767
|
+
}
|
|
11768
|
+
isSupported = isMinVersionSupported({
|
|
11769
|
+
android: "5.208.0",
|
|
11770
|
+
ios: "5.208.0"
|
|
11771
|
+
});
|
|
11772
|
+
if (!isSupported) {
|
|
11773
|
+
return [
|
|
11774
|
+
2
|
|
11775
|
+
];
|
|
11776
|
+
}
|
|
11777
|
+
return [
|
|
11778
|
+
2,
|
|
11779
|
+
safePostMessage("eventLog", {
|
|
11780
|
+
log_name: params.log_name,
|
|
11781
|
+
log_type: params.log_type,
|
|
11782
|
+
params: normalizeParams(logParams)
|
|
11783
|
+
})
|
|
11784
|
+
];
|
|
11686
11785
|
}
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11786
|
+
});
|
|
11787
|
+
})();
|
|
11788
|
+
}
|
|
11789
|
+
function cache(key, fetcher) {
|
|
11790
|
+
return _async_to_generator(function() {
|
|
11791
|
+
var value;
|
|
11792
|
+
return __generator(this, function(_state) {
|
|
11793
|
+
switch (_state.label) {
|
|
11794
|
+
case 0:
|
|
11795
|
+
if (_cache[key]) {
|
|
11796
|
+
return [
|
|
11797
|
+
2,
|
|
11798
|
+
_cache[key]
|
|
11799
|
+
];
|
|
11800
|
+
}
|
|
11801
|
+
return [
|
|
11802
|
+
4,
|
|
11803
|
+
fetcher()
|
|
11804
|
+
];
|
|
11805
|
+
case 1:
|
|
11806
|
+
value = _state.sent();
|
|
11807
|
+
_cache[key] = value;
|
|
11808
|
+
return [
|
|
11809
|
+
2,
|
|
11810
|
+
value
|
|
11811
|
+
];
|
|
11695
11812
|
}
|
|
11696
|
-
return [
|
|
11697
|
-
2,
|
|
11698
|
-
safePostMessage("eventLog", {
|
|
11699
|
-
log_name: params.log_name,
|
|
11700
|
-
log_type: params.log_type,
|
|
11701
|
-
params: normalizeParams(params.params)
|
|
11702
|
-
})
|
|
11703
|
-
];
|
|
11704
11813
|
});
|
|
11705
11814
|
})();
|
|
11706
11815
|
}
|
|
@@ -12190,7 +12299,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
12190
12299
|
params: params.params
|
|
12191
12300
|
});
|
|
12192
12301
|
}
|
|
12193
|
-
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,
|
|
12302
|
+
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;
|
|
12194
12303
|
var init_dist5 = __esm({
|
|
12195
12304
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/dist/index.js"() {
|
|
12196
12305
|
"use strict";
|
|
@@ -12496,6 +12605,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
12496
12605
|
requestTossPayPaysBilling.isSupported = function() {
|
|
12497
12606
|
return isMinVersionSupported(MIN_VERSION);
|
|
12498
12607
|
};
|
|
12608
|
+
GAME_CENTER_MIN_VERSION = {
|
|
12609
|
+
android: "5.221.0",
|
|
12610
|
+
ios: "5.221.0"
|
|
12611
|
+
};
|
|
12612
|
+
USER_KEY_MIN_VERSION = {
|
|
12613
|
+
android: "5.232.0",
|
|
12614
|
+
ios: "5.232.0"
|
|
12615
|
+
};
|
|
12616
|
+
GET_SERVER_TIME_MIN_VERSION = {
|
|
12617
|
+
android: "5.245.0",
|
|
12618
|
+
ios: "5.245.0"
|
|
12619
|
+
};
|
|
12620
|
+
_cache = {};
|
|
12499
12621
|
DEFAULT_MAX_COUNT = 10;
|
|
12500
12622
|
DEFAULT_MAX_WIDTH = 1024;
|
|
12501
12623
|
fetchAlbumPhotos = createPermissionFunction({
|
|
@@ -12617,14 +12739,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
12617
12739
|
removeItem,
|
|
12618
12740
|
clearItems
|
|
12619
12741
|
};
|
|
12620
|
-
GAME_CENTER_MIN_VERSION = {
|
|
12621
|
-
android: "5.221.0",
|
|
12622
|
-
ios: "5.221.0"
|
|
12623
|
-
};
|
|
12624
|
-
GET_SERVER_TIME_MIN_VERSION = {
|
|
12625
|
-
android: "5.245.0",
|
|
12626
|
-
ios: "5.245.0"
|
|
12627
|
-
};
|
|
12628
12742
|
getServerTime.isSupported = function() {
|
|
12629
12743
|
return isMinVersionSupported(GET_SERVER_TIME_MIN_VERSION);
|
|
12630
12744
|
};
|
|
@@ -43548,6 +43662,96 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43548
43662
|
}
|
|
43549
43663
|
});
|
|
43550
43664
|
|
|
43665
|
+
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts
|
|
43666
|
+
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;
|
|
43667
|
+
var init_constants13 = __esm({
|
|
43668
|
+
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts"() {
|
|
43669
|
+
"use strict";
|
|
43670
|
+
GAME_CENTER_MIN_VERSION2 = {
|
|
43671
|
+
android: "5.221.0",
|
|
43672
|
+
ios: "5.221.0"
|
|
43673
|
+
};
|
|
43674
|
+
USER_KEY_MIN_VERSION2 = {
|
|
43675
|
+
android: "5.232.0",
|
|
43676
|
+
ios: "5.232.0"
|
|
43677
|
+
};
|
|
43678
|
+
PROMOTION_REWARD_MIN_VERSION = {
|
|
43679
|
+
android: "5.232.0",
|
|
43680
|
+
ios: "5.232.0"
|
|
43681
|
+
};
|
|
43682
|
+
GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
|
|
43683
|
+
android: "5.237.0",
|
|
43684
|
+
ios: "5.237.0"
|
|
43685
|
+
};
|
|
43686
|
+
GET_SERVER_TIME_MIN_VERSION2 = {
|
|
43687
|
+
android: "5.245.0",
|
|
43688
|
+
ios: "5.245.0"
|
|
43689
|
+
};
|
|
43690
|
+
}
|
|
43691
|
+
});
|
|
43692
|
+
|
|
43693
|
+
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts
|
|
43694
|
+
function getAnonymousKey2() {
|
|
43695
|
+
return _async_to_generator(function() {
|
|
43696
|
+
var isSupported, response, unused;
|
|
43697
|
+
return __generator(this, function(_state) {
|
|
43698
|
+
switch (_state.label) {
|
|
43699
|
+
case 0:
|
|
43700
|
+
isSupported = isMinVersionSupported2(USER_KEY_MIN_VERSION2);
|
|
43701
|
+
if (!isSupported) {
|
|
43702
|
+
return [
|
|
43703
|
+
2
|
|
43704
|
+
];
|
|
43705
|
+
}
|
|
43706
|
+
_state.label = 1;
|
|
43707
|
+
case 1:
|
|
43708
|
+
_state.trys.push([
|
|
43709
|
+
1,
|
|
43710
|
+
3,
|
|
43711
|
+
,
|
|
43712
|
+
4
|
|
43713
|
+
]);
|
|
43714
|
+
return [
|
|
43715
|
+
4,
|
|
43716
|
+
safePostMessage2("getUserKeyForGame", {})
|
|
43717
|
+
];
|
|
43718
|
+
case 2:
|
|
43719
|
+
response = _state.sent();
|
|
43720
|
+
if (response.type === "HASH") {
|
|
43721
|
+
return [
|
|
43722
|
+
2,
|
|
43723
|
+
response
|
|
43724
|
+
];
|
|
43725
|
+
}
|
|
43726
|
+
return [
|
|
43727
|
+
2,
|
|
43728
|
+
"ERROR"
|
|
43729
|
+
];
|
|
43730
|
+
case 3:
|
|
43731
|
+
unused = _state.sent();
|
|
43732
|
+
return [
|
|
43733
|
+
2,
|
|
43734
|
+
"ERROR"
|
|
43735
|
+
];
|
|
43736
|
+
case 4:
|
|
43737
|
+
return [
|
|
43738
|
+
2
|
|
43739
|
+
];
|
|
43740
|
+
}
|
|
43741
|
+
});
|
|
43742
|
+
})();
|
|
43743
|
+
}
|
|
43744
|
+
var init_getAnonymousKey = __esm({
|
|
43745
|
+
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts"() {
|
|
43746
|
+
"use strict";
|
|
43747
|
+
init_async_to_generator();
|
|
43748
|
+
init_ts_generator();
|
|
43749
|
+
init_isMinVersionSupported();
|
|
43750
|
+
init_natives2();
|
|
43751
|
+
init_constants13();
|
|
43752
|
+
}
|
|
43753
|
+
});
|
|
43754
|
+
|
|
43551
43755
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/eventLog.ts
|
|
43552
43756
|
function normalizeParams2(params) {
|
|
43553
43757
|
return Object.fromEntries(Object.entries(params).filter(function(param) {
|
|
@@ -43563,46 +43767,110 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43563
43767
|
}
|
|
43564
43768
|
function eventLog2(params) {
|
|
43565
43769
|
return _async_to_generator(function() {
|
|
43566
|
-
var isSupported;
|
|
43770
|
+
var logParams, _tmp, isSupported;
|
|
43567
43771
|
return __generator(this, function(_state) {
|
|
43568
|
-
|
|
43569
|
-
|
|
43570
|
-
|
|
43571
|
-
|
|
43572
|
-
|
|
43573
|
-
|
|
43574
|
-
|
|
43575
|
-
|
|
43576
|
-
|
|
43772
|
+
switch (_state.label) {
|
|
43773
|
+
case 0:
|
|
43774
|
+
_tmp = {};
|
|
43775
|
+
return [
|
|
43776
|
+
4,
|
|
43777
|
+
cache2("eventLog.defaultParams.anonymous_key", function() {
|
|
43778
|
+
return _async_to_generator(function() {
|
|
43779
|
+
var result;
|
|
43780
|
+
return __generator(this, function(_state2) {
|
|
43781
|
+
switch (_state2.label) {
|
|
43782
|
+
case 0:
|
|
43783
|
+
return [
|
|
43784
|
+
4,
|
|
43785
|
+
getAnonymousKey2()
|
|
43786
|
+
];
|
|
43787
|
+
case 1:
|
|
43788
|
+
result = _state2.sent();
|
|
43789
|
+
return [
|
|
43790
|
+
2,
|
|
43791
|
+
(typeof result === "undefined" ? "undefined" : _type_of(result)) === "object" ? result.hash : "NONE"
|
|
43792
|
+
];
|
|
43793
|
+
}
|
|
43794
|
+
});
|
|
43795
|
+
})();
|
|
43796
|
+
})
|
|
43797
|
+
];
|
|
43798
|
+
case 1:
|
|
43799
|
+
logParams = _object_spread.apply(void 0, [
|
|
43800
|
+
(_tmp.anonymous_key = _state.sent(), _tmp),
|
|
43801
|
+
params.params
|
|
43802
|
+
]);
|
|
43803
|
+
if (MiniAppModule2.getConstants().operationalEnvironment === "sandbox") {
|
|
43804
|
+
console.log("[eventLogDebug]", {
|
|
43805
|
+
log_name: params.log_name,
|
|
43806
|
+
log_type: params.log_type,
|
|
43807
|
+
params: normalizeParams2(logParams)
|
|
43808
|
+
});
|
|
43809
|
+
return [
|
|
43810
|
+
2
|
|
43811
|
+
];
|
|
43812
|
+
}
|
|
43813
|
+
isSupported = isMinVersionSupported2({
|
|
43814
|
+
android: "5.208.0",
|
|
43815
|
+
ios: "5.208.0"
|
|
43816
|
+
});
|
|
43817
|
+
if (!isSupported) {
|
|
43818
|
+
return [
|
|
43819
|
+
2
|
|
43820
|
+
];
|
|
43821
|
+
}
|
|
43822
|
+
return [
|
|
43823
|
+
2,
|
|
43824
|
+
safePostMessage2("eventLog", {
|
|
43825
|
+
log_name: params.log_name,
|
|
43826
|
+
log_type: params.log_type,
|
|
43827
|
+
params: normalizeParams2(logParams)
|
|
43828
|
+
})
|
|
43829
|
+
];
|
|
43577
43830
|
}
|
|
43578
|
-
|
|
43579
|
-
|
|
43580
|
-
|
|
43581
|
-
|
|
43582
|
-
|
|
43583
|
-
|
|
43584
|
-
|
|
43585
|
-
|
|
43831
|
+
});
|
|
43832
|
+
})();
|
|
43833
|
+
}
|
|
43834
|
+
function cache2(key, fetcher) {
|
|
43835
|
+
return _async_to_generator(function() {
|
|
43836
|
+
var value;
|
|
43837
|
+
return __generator(this, function(_state) {
|
|
43838
|
+
switch (_state.label) {
|
|
43839
|
+
case 0:
|
|
43840
|
+
if (_cache2[key]) {
|
|
43841
|
+
return [
|
|
43842
|
+
2,
|
|
43843
|
+
_cache2[key]
|
|
43844
|
+
];
|
|
43845
|
+
}
|
|
43846
|
+
return [
|
|
43847
|
+
4,
|
|
43848
|
+
fetcher()
|
|
43849
|
+
];
|
|
43850
|
+
case 1:
|
|
43851
|
+
value = _state.sent();
|
|
43852
|
+
_cache2[key] = value;
|
|
43853
|
+
return [
|
|
43854
|
+
2,
|
|
43855
|
+
value
|
|
43856
|
+
];
|
|
43586
43857
|
}
|
|
43587
|
-
return [
|
|
43588
|
-
2,
|
|
43589
|
-
safePostMessage2("eventLog", {
|
|
43590
|
-
log_name: params.log_name,
|
|
43591
|
-
log_type: params.log_type,
|
|
43592
|
-
params: normalizeParams2(params.params)
|
|
43593
|
-
})
|
|
43594
|
-
];
|
|
43595
43858
|
});
|
|
43596
43859
|
})();
|
|
43597
43860
|
}
|
|
43861
|
+
var _cache2;
|
|
43598
43862
|
var init_eventLog = __esm({
|
|
43599
43863
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/eventLog.ts"() {
|
|
43600
43864
|
"use strict";
|
|
43601
43865
|
init_async_to_generator();
|
|
43866
|
+
init_object_spread();
|
|
43602
43867
|
init_sliced_to_array();
|
|
43868
|
+
init_type_of();
|
|
43603
43869
|
init_ts_generator();
|
|
43870
|
+
init_getAnonymousKey();
|
|
43604
43871
|
init_isMinVersionSupported();
|
|
43605
43872
|
init_natives2();
|
|
43873
|
+
_cache2 = {};
|
|
43606
43874
|
}
|
|
43607
43875
|
});
|
|
43608
43876
|
|
|
@@ -43910,34 +44178,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
43910
44178
|
}
|
|
43911
44179
|
});
|
|
43912
44180
|
|
|
43913
|
-
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts
|
|
43914
|
-
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;
|
|
43915
|
-
var init_constants13 = __esm({
|
|
43916
|
-
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts"() {
|
|
43917
|
-
"use strict";
|
|
43918
|
-
GAME_CENTER_MIN_VERSION2 = {
|
|
43919
|
-
android: "5.221.0",
|
|
43920
|
-
ios: "5.221.0"
|
|
43921
|
-
};
|
|
43922
|
-
USER_KEY_MIN_VERSION = {
|
|
43923
|
-
android: "5.232.0",
|
|
43924
|
-
ios: "5.232.0"
|
|
43925
|
-
};
|
|
43926
|
-
PROMOTION_REWARD_MIN_VERSION = {
|
|
43927
|
-
android: "5.232.0",
|
|
43928
|
-
ios: "5.232.0"
|
|
43929
|
-
};
|
|
43930
|
-
GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
|
|
43931
|
-
android: "5.237.0",
|
|
43932
|
-
ios: "5.237.0"
|
|
43933
|
-
};
|
|
43934
|
-
GET_SERVER_TIME_MIN_VERSION2 = {
|
|
43935
|
-
android: "5.245.0",
|
|
43936
|
-
ios: "5.245.0"
|
|
43937
|
-
};
|
|
43938
|
-
}
|
|
43939
|
-
});
|
|
43940
|
-
|
|
43941
44181
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getGameCenterGameProfile.ts
|
|
43942
44182
|
function getGameCenterGameProfile2() {
|
|
43943
44183
|
return _async_to_generator(function() {
|
|
@@ -44031,75 +44271,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44031
44271
|
}
|
|
44032
44272
|
});
|
|
44033
44273
|
|
|
44034
|
-
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts
|
|
44035
|
-
function getAnonymousKey() {
|
|
44036
|
-
return _async_to_generator(function() {
|
|
44037
|
-
var isSupported, response, unused;
|
|
44038
|
-
return __generator(this, function(_state) {
|
|
44039
|
-
switch (_state.label) {
|
|
44040
|
-
case 0:
|
|
44041
|
-
isSupported = isMinVersionSupported2(USER_KEY_MIN_VERSION);
|
|
44042
|
-
if (!isSupported) {
|
|
44043
|
-
return [
|
|
44044
|
-
2
|
|
44045
|
-
];
|
|
44046
|
-
}
|
|
44047
|
-
_state.label = 1;
|
|
44048
|
-
case 1:
|
|
44049
|
-
_state.trys.push([
|
|
44050
|
-
1,
|
|
44051
|
-
3,
|
|
44052
|
-
,
|
|
44053
|
-
4
|
|
44054
|
-
]);
|
|
44055
|
-
return [
|
|
44056
|
-
4,
|
|
44057
|
-
safePostMessage2("getUserKeyForGame", {})
|
|
44058
|
-
];
|
|
44059
|
-
case 2:
|
|
44060
|
-
response = _state.sent();
|
|
44061
|
-
if (response.type === "HASH") {
|
|
44062
|
-
return [
|
|
44063
|
-
2,
|
|
44064
|
-
response
|
|
44065
|
-
];
|
|
44066
|
-
}
|
|
44067
|
-
return [
|
|
44068
|
-
2,
|
|
44069
|
-
"ERROR"
|
|
44070
|
-
];
|
|
44071
|
-
case 3:
|
|
44072
|
-
unused = _state.sent();
|
|
44073
|
-
return [
|
|
44074
|
-
2,
|
|
44075
|
-
"ERROR"
|
|
44076
|
-
];
|
|
44077
|
-
case 4:
|
|
44078
|
-
return [
|
|
44079
|
-
2
|
|
44080
|
-
];
|
|
44081
|
-
}
|
|
44082
|
-
});
|
|
44083
|
-
})();
|
|
44084
|
-
}
|
|
44085
|
-
var init_getAnonymousKey = __esm({
|
|
44086
|
-
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts"() {
|
|
44087
|
-
"use strict";
|
|
44088
|
-
init_async_to_generator();
|
|
44089
|
-
init_ts_generator();
|
|
44090
|
-
init_isMinVersionSupported();
|
|
44091
|
-
init_natives2();
|
|
44092
|
-
init_constants13();
|
|
44093
|
-
}
|
|
44094
|
-
});
|
|
44095
|
-
|
|
44096
44274
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getUserKeyForGame.ts
|
|
44097
44275
|
function getUserKeyForGame() {
|
|
44098
44276
|
return _async_to_generator(function() {
|
|
44099
44277
|
return __generator(this, function(_state) {
|
|
44100
44278
|
return [
|
|
44101
44279
|
2,
|
|
44102
|
-
|
|
44280
|
+
getAnonymousKey2()
|
|
44103
44281
|
];
|
|
44104
44282
|
});
|
|
44105
44283
|
})();
|
|
@@ -44391,7 +44569,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44391
44569
|
return generateHapticFeedback;
|
|
44392
44570
|
},
|
|
44393
44571
|
getAnonymousKey: function() {
|
|
44394
|
-
return
|
|
44572
|
+
return getAnonymousKey2;
|
|
44395
44573
|
},
|
|
44396
44574
|
getClipboardText: function() {
|
|
44397
44575
|
return getClipboardText2;
|
|
@@ -45285,7 +45463,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45285
45463
|
"../user-scripts/dist/index.mjs"() {
|
|
45286
45464
|
"use strict";
|
|
45287
45465
|
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';
|
|
45288
|
-
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';
|
|
45466
|
+
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';
|
|
45289
45467
|
}
|
|
45290
45468
|
});
|
|
45291
45469
|
|
|
@@ -45490,6 +45668,38 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45490
45668
|
handler
|
|
45491
45669
|
]);
|
|
45492
45670
|
}
|
|
45671
|
+
function useCloseConfirm() {
|
|
45672
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45673
|
+
var openConfirm = useDialog().openConfirm;
|
|
45674
|
+
return (0, import_react188.useCallback)(function(param) {
|
|
45675
|
+
var onEntered = param.onEntered;
|
|
45676
|
+
return _async_to_generator(function() {
|
|
45677
|
+
return __generator(this, function(_state) {
|
|
45678
|
+
switch (_state.label) {
|
|
45679
|
+
case 0:
|
|
45680
|
+
return [
|
|
45681
|
+
4,
|
|
45682
|
+
openConfirm({
|
|
45683
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45684
|
+
leftButton: "\uB2EB\uAE30",
|
|
45685
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45686
|
+
closeOnDimmerClick: true,
|
|
45687
|
+
onEntered
|
|
45688
|
+
})
|
|
45689
|
+
];
|
|
45690
|
+
case 1:
|
|
45691
|
+
return [
|
|
45692
|
+
2,
|
|
45693
|
+
_state.sent()
|
|
45694
|
+
];
|
|
45695
|
+
}
|
|
45696
|
+
});
|
|
45697
|
+
})();
|
|
45698
|
+
}, [
|
|
45699
|
+
brandDisplayName,
|
|
45700
|
+
openConfirm
|
|
45701
|
+
]);
|
|
45702
|
+
}
|
|
45493
45703
|
function createEvent(event) {
|
|
45494
45704
|
return {
|
|
45495
45705
|
name: event,
|
|
@@ -45543,8 +45753,30 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45543
45753
|
})
|
|
45544
45754
|
});
|
|
45545
45755
|
};
|
|
45756
|
+
var logClosePopupShow = function() {
|
|
45757
|
+
sendLog({
|
|
45758
|
+
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
45759
|
+
log_type: "popup",
|
|
45760
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45761
|
+
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
45762
|
+
})
|
|
45763
|
+
});
|
|
45764
|
+
};
|
|
45765
|
+
var logClosePopupCtaClick = function(confirm) {
|
|
45766
|
+
sendLog({
|
|
45767
|
+
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
45768
|
+
log_type: "event",
|
|
45769
|
+
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
45770
|
+
close_yn: confirm ? "Y" : "N",
|
|
45771
|
+
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
45772
|
+
event_type: "click"
|
|
45773
|
+
})
|
|
45774
|
+
});
|
|
45775
|
+
};
|
|
45546
45776
|
return {
|
|
45547
45777
|
navBarImpression: logNavBarImpression,
|
|
45778
|
+
closePopupShow: logClosePopupShow,
|
|
45779
|
+
closePopupCtaClick: logClosePopupCtaClick,
|
|
45548
45780
|
closeButtonClick: logCloseButtonClick,
|
|
45549
45781
|
homeButtonClick: logHomeButtonClick
|
|
45550
45782
|
};
|
|
@@ -45553,7 +45785,40 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45553
45785
|
var backEventContext = useBackEventContext();
|
|
45554
45786
|
var logging = useNavigationBarLogging();
|
|
45555
45787
|
var navigation = useNavigation();
|
|
45788
|
+
var closeConfirm = useCloseConfirm();
|
|
45789
|
+
var global2 = getAppsInTossGlobals();
|
|
45556
45790
|
return (0, import_react187.useMemo)(function() {
|
|
45791
|
+
var close = function() {
|
|
45792
|
+
return _async_to_generator(function() {
|
|
45793
|
+
var hasConfirmed;
|
|
45794
|
+
return __generator(this, function(_state) {
|
|
45795
|
+
switch (_state.label) {
|
|
45796
|
+
case 0:
|
|
45797
|
+
if (global2.appType !== "game") {
|
|
45798
|
+
closeView();
|
|
45799
|
+
return [
|
|
45800
|
+
2
|
|
45801
|
+
];
|
|
45802
|
+
}
|
|
45803
|
+
return [
|
|
45804
|
+
4,
|
|
45805
|
+
closeConfirm({
|
|
45806
|
+
onEntered: logging.closePopupShow
|
|
45807
|
+
})
|
|
45808
|
+
];
|
|
45809
|
+
case 1:
|
|
45810
|
+
hasConfirmed = _state.sent();
|
|
45811
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
45812
|
+
if (hasConfirmed) {
|
|
45813
|
+
closeView();
|
|
45814
|
+
}
|
|
45815
|
+
return [
|
|
45816
|
+
2
|
|
45817
|
+
];
|
|
45818
|
+
}
|
|
45819
|
+
});
|
|
45820
|
+
})();
|
|
45821
|
+
};
|
|
45557
45822
|
return {
|
|
45558
45823
|
handleBack: function() {
|
|
45559
45824
|
if (backEventContext.hasBackEvent) {
|
|
@@ -45561,7 +45826,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45561
45826
|
} else if (navigation.canGoBack()) {
|
|
45562
45827
|
navigation.goBack();
|
|
45563
45828
|
} else {
|
|
45564
|
-
|
|
45829
|
+
close();
|
|
45565
45830
|
}
|
|
45566
45831
|
},
|
|
45567
45832
|
handleHomeButtonClick: function() {
|
|
@@ -45576,12 +45841,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45576
45841
|
},
|
|
45577
45842
|
handleCloseButtonClick: function() {
|
|
45578
45843
|
logging.closeButtonClick();
|
|
45579
|
-
|
|
45844
|
+
close();
|
|
45580
45845
|
}
|
|
45581
45846
|
};
|
|
45582
45847
|
}, [
|
|
45848
|
+
global2.appType,
|
|
45583
45849
|
backEventContext,
|
|
45584
45850
|
navigation,
|
|
45851
|
+
closeConfirm,
|
|
45585
45852
|
logging
|
|
45586
45853
|
]);
|
|
45587
45854
|
}
|
|
@@ -45808,7 +46075,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45808
46075
|
function useMoreButtonBottomSheet() {
|
|
45809
46076
|
var globals = getAppsInTossGlobals();
|
|
45810
46077
|
var adaptive = useAdaptive();
|
|
45811
|
-
var _useState4 = _sliced_to_array((0,
|
|
46078
|
+
var _useState4 = _sliced_to_array((0, import_react189.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
45812
46079
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45813
46080
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45814
46081
|
var overlay = useOverlay();
|
|
@@ -45817,7 +46084,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45817
46084
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION6.BOTTOM_SHEET);
|
|
45818
46085
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION6.SHARE_LIST_MENU);
|
|
45819
46086
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION6.SETTINGS_MENU);
|
|
45820
|
-
(0,
|
|
46087
|
+
(0, import_react189.useEffect)(function() {
|
|
45821
46088
|
if (!isBottomSheetSupported) {
|
|
45822
46089
|
return;
|
|
45823
46090
|
}
|
|
@@ -45918,7 +46185,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45918
46185
|
function BottomSheetImpressionArea(param) {
|
|
45919
46186
|
var children = param.children;
|
|
45920
46187
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45921
|
-
(0,
|
|
46188
|
+
(0, import_react189.useEffect)(function() {
|
|
45922
46189
|
logging.show();
|
|
45923
46190
|
}, [
|
|
45924
46191
|
logging
|
|
@@ -45931,7 +46198,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45931
46198
|
var left = param.left, center = param.center, right = param.right;
|
|
45932
46199
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
45933
46200
|
var navigation = useNavigation();
|
|
45934
|
-
(0,
|
|
46201
|
+
(0, import_react190.useEffect)(function() {
|
|
45935
46202
|
var _ref, _ref1;
|
|
45936
46203
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
45937
46204
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
@@ -46178,9 +46445,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46178
46445
|
}
|
|
46179
46446
|
function NavigationBarImpressionArea(param) {
|
|
46180
46447
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46181
|
-
var hasLogged = (0,
|
|
46448
|
+
var hasLogged = (0, import_react191.useRef)(false);
|
|
46182
46449
|
var logging = useNavigationBarLogging();
|
|
46183
|
-
(0,
|
|
46450
|
+
(0, import_react191.useEffect)(function() {
|
|
46184
46451
|
if (hasLogged.current === false) {
|
|
46185
46452
|
logging.navBarImpression({
|
|
46186
46453
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -46400,22 +46667,43 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46400
46667
|
function GameWebviewNavigationBar() {
|
|
46401
46668
|
var _ref;
|
|
46402
46669
|
var openConfirm = useDialog().openConfirm;
|
|
46670
|
+
var global2 = getAppsInTossGlobals();
|
|
46403
46671
|
var logging = useNavigationBarLogging();
|
|
46404
46672
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46405
46673
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46406
46674
|
var navigationBar = getAppsInTossGlobals().navigationBar;
|
|
46407
46675
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
46408
|
-
var handleGameWebviewClose = (0,
|
|
46676
|
+
var handleGameWebviewClose = (0, import_react194.useCallback)(function() {
|
|
46409
46677
|
return _async_to_generator(function() {
|
|
46678
|
+
var isConfirmed;
|
|
46410
46679
|
return __generator(this, function(_state) {
|
|
46411
|
-
|
|
46412
|
-
|
|
46413
|
-
|
|
46414
|
-
|
|
46415
|
-
|
|
46680
|
+
switch (_state.label) {
|
|
46681
|
+
case 0:
|
|
46682
|
+
logging.closeButtonClick();
|
|
46683
|
+
return [
|
|
46684
|
+
4,
|
|
46685
|
+
openConfirm({
|
|
46686
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
46687
|
+
leftButton: "\uB2EB\uAE30",
|
|
46688
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
46689
|
+
closeOnDimmerClick: true,
|
|
46690
|
+
onEntered: logging.closePopupShow
|
|
46691
|
+
})
|
|
46692
|
+
];
|
|
46693
|
+
case 1:
|
|
46694
|
+
isConfirmed = _state.sent();
|
|
46695
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
46696
|
+
if (isConfirmed) {
|
|
46697
|
+
closeView();
|
|
46698
|
+
}
|
|
46699
|
+
return [
|
|
46700
|
+
2
|
|
46701
|
+
];
|
|
46702
|
+
}
|
|
46416
46703
|
});
|
|
46417
46704
|
})();
|
|
46418
46705
|
}, [
|
|
46706
|
+
global2.brandDisplayName,
|
|
46419
46707
|
logging,
|
|
46420
46708
|
openConfirm
|
|
46421
46709
|
]);
|
|
@@ -46439,7 +46727,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46439
46727
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
46440
46728
|
var theme = (_ref2 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.theme) !== null && _ref2 !== void 0 ? _ref2 : "light";
|
|
46441
46729
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46442
|
-
var handleClose = (0,
|
|
46730
|
+
var handleClose = (0, import_react196.useCallback)(function() {
|
|
46443
46731
|
return _async_to_generator(function() {
|
|
46444
46732
|
return __generator(this, function(_state) {
|
|
46445
46733
|
logging.closeButtonClick();
|
|
@@ -46915,8 +47203,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46915
47203
|
}
|
|
46916
47204
|
function useBridgeHandler(param) {
|
|
46917
47205
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
46918
|
-
var ref = (0,
|
|
46919
|
-
var injectedJavaScript = (0,
|
|
47206
|
+
var ref = (0, import_react197.useRef)(null);
|
|
47207
|
+
var injectedJavaScript = (0, import_react197.useMemo)(function() {
|
|
46920
47208
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46921
47209
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
46922
47210
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -46925,7 +47213,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46925
47213
|
}, [
|
|
46926
47214
|
constantHandlerMap
|
|
46927
47215
|
]);
|
|
46928
|
-
(0,
|
|
47216
|
+
(0, import_react197.useEffect)(function() {
|
|
46929
47217
|
var _ref_current;
|
|
46930
47218
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
46931
47219
|
}, [
|
|
@@ -46944,7 +47232,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46944
47232
|
(_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 "));
|
|
46945
47233
|
};
|
|
46946
47234
|
};
|
|
46947
|
-
var $onMessage = (0,
|
|
47235
|
+
var $onMessage = (0, import_react197.useCallback)(function(e63) {
|
|
46948
47236
|
return _async_to_generator(function() {
|
|
46949
47237
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
46950
47238
|
return __generator(this, function(_state) {
|
|
@@ -47017,12 +47305,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47017
47305
|
}
|
|
47018
47306
|
function useSafeAreaInsetsEvent() {
|
|
47019
47307
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47020
|
-
(0,
|
|
47308
|
+
(0, import_react198.useEffect)(function() {
|
|
47021
47309
|
safeAreaInsetsChange.emit(insets);
|
|
47022
47310
|
}, [
|
|
47023
47311
|
insets
|
|
47024
47312
|
]);
|
|
47025
|
-
(0,
|
|
47313
|
+
(0, import_react198.useEffect)(function() {
|
|
47026
47314
|
return function() {
|
|
47027
47315
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
47028
47316
|
};
|
|
@@ -47072,8 +47360,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47072
47360
|
}
|
|
47073
47361
|
}
|
|
47074
47362
|
function useWebViewHistory() {
|
|
47075
|
-
var _useReducer = _sliced_to_array((0,
|
|
47076
|
-
var onNavigationStateChange = (0,
|
|
47363
|
+
var _useReducer = _sliced_to_array((0, import_react200.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
47364
|
+
var onNavigationStateChange = (0, import_react200.useCallback)(function(param) {
|
|
47077
47365
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
47078
47366
|
dispatch({
|
|
47079
47367
|
type: "NAVIGATION_CHANGE",
|
|
@@ -47081,7 +47369,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47081
47369
|
canGoForward: canGoForward2
|
|
47082
47370
|
});
|
|
47083
47371
|
}, []);
|
|
47084
|
-
var _useMemo4 = (0,
|
|
47372
|
+
var _useMemo4 = (0, import_react200.useMemo)(function() {
|
|
47085
47373
|
var canBack = state.index > 0;
|
|
47086
47374
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
47087
47375
|
return {
|
|
@@ -47102,64 +47390,100 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47102
47390
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
47103
47391
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
47104
47392
|
var logging = useNavigationBarLogging();
|
|
47105
|
-
var
|
|
47393
|
+
var openConfirm = useDialog().openConfirm;
|
|
47394
|
+
var global2 = getAppsInTossGlobals();
|
|
47395
|
+
var addEventListener = (0, import_react199.useCallback)(function(handler) {
|
|
47106
47396
|
addWebBackEventListener(handler);
|
|
47107
47397
|
}, [
|
|
47108
47398
|
addWebBackEventListener
|
|
47109
47399
|
]);
|
|
47110
|
-
var removeEventListener = (0,
|
|
47400
|
+
var removeEventListener = (0, import_react199.useCallback)(function(handler) {
|
|
47111
47401
|
removeWebBackEventListener(handler);
|
|
47112
47402
|
}, [
|
|
47113
47403
|
removeWebBackEventListener
|
|
47114
47404
|
]);
|
|
47115
|
-
var handleWebBack = (0,
|
|
47405
|
+
var handleWebBack = (0, import_react199.useCallback)(function() {
|
|
47116
47406
|
return _async_to_generator(function() {
|
|
47117
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current;
|
|
47407
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
47118
47408
|
return __generator(this, function(_state) {
|
|
47119
|
-
|
|
47120
|
-
|
|
47121
|
-
|
|
47122
|
-
|
|
47123
|
-
|
|
47124
|
-
|
|
47125
|
-
|
|
47126
|
-
|
|
47127
|
-
|
|
47128
|
-
|
|
47129
|
-
|
|
47130
|
-
|
|
47131
|
-
|
|
47132
|
-
|
|
47133
|
-
|
|
47134
|
-
|
|
47135
|
-
|
|
47136
|
-
|
|
47409
|
+
switch (_state.label) {
|
|
47410
|
+
case 0:
|
|
47411
|
+
if (hasWebBackEvent) {
|
|
47412
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47413
|
+
try {
|
|
47414
|
+
for (_iterator = webBackHandlersRef[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
47415
|
+
handler = _step.value;
|
|
47416
|
+
handler();
|
|
47417
|
+
}
|
|
47418
|
+
} catch (err) {
|
|
47419
|
+
_didIteratorError = true;
|
|
47420
|
+
_iteratorError = err;
|
|
47421
|
+
} finally {
|
|
47422
|
+
try {
|
|
47423
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47424
|
+
_iterator.return();
|
|
47425
|
+
}
|
|
47426
|
+
} finally {
|
|
47427
|
+
if (_didIteratorError) {
|
|
47428
|
+
throw _iteratorError;
|
|
47429
|
+
}
|
|
47430
|
+
}
|
|
47137
47431
|
}
|
|
47432
|
+
return [
|
|
47433
|
+
2
|
|
47434
|
+
];
|
|
47138
47435
|
}
|
|
47139
|
-
|
|
47140
|
-
|
|
47141
|
-
|
|
47142
|
-
|
|
47143
|
-
|
|
47144
|
-
|
|
47145
|
-
|
|
47146
|
-
|
|
47147
|
-
|
|
47148
|
-
|
|
47436
|
+
if (!hasHistory) return [
|
|
47437
|
+
3,
|
|
47438
|
+
1
|
|
47439
|
+
];
|
|
47440
|
+
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.injectJavaScript("window.history.back();");
|
|
47441
|
+
return [
|
|
47442
|
+
3,
|
|
47443
|
+
3
|
|
47444
|
+
];
|
|
47445
|
+
case 1:
|
|
47446
|
+
if (global2.webViewType !== "game") {
|
|
47447
|
+
closeView();
|
|
47448
|
+
return [
|
|
47449
|
+
2
|
|
47450
|
+
];
|
|
47451
|
+
}
|
|
47452
|
+
return [
|
|
47453
|
+
4,
|
|
47454
|
+
openConfirm({
|
|
47455
|
+
title: "".concat(josa(global2.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
47456
|
+
leftButton: "\uB2EB\uAE30",
|
|
47457
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
47458
|
+
closeOnDimmerClick: true,
|
|
47459
|
+
onEntered: logging.closePopupShow
|
|
47460
|
+
})
|
|
47461
|
+
];
|
|
47462
|
+
case 2:
|
|
47463
|
+
isConfirmed = _state.sent();
|
|
47464
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
47465
|
+
if (isConfirmed) {
|
|
47466
|
+
closeView();
|
|
47467
|
+
}
|
|
47468
|
+
_state.label = 3;
|
|
47469
|
+
case 3:
|
|
47470
|
+
return [
|
|
47471
|
+
2
|
|
47472
|
+
];
|
|
47149
47473
|
}
|
|
47150
|
-
return [
|
|
47151
|
-
2
|
|
47152
|
-
];
|
|
47153
47474
|
});
|
|
47154
47475
|
})();
|
|
47155
47476
|
}, [
|
|
47477
|
+
global2.webViewType,
|
|
47478
|
+
global2.brandDisplayName,
|
|
47156
47479
|
hasHistory,
|
|
47157
47480
|
hasWebBackEvent,
|
|
47158
47481
|
webBackHandlersRef,
|
|
47159
47482
|
logging,
|
|
47483
|
+
openConfirm,
|
|
47160
47484
|
webViewRef
|
|
47161
47485
|
]);
|
|
47162
|
-
var handleWebHome = (0,
|
|
47486
|
+
var handleWebHome = (0, import_react199.useCallback)(function() {
|
|
47163
47487
|
var _webViewRef_current;
|
|
47164
47488
|
logging.homeButtonClick();
|
|
47165
47489
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -47174,7 +47498,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47174
47498
|
webViewInitialURL,
|
|
47175
47499
|
webViewRef
|
|
47176
47500
|
]);
|
|
47177
|
-
return (0,
|
|
47501
|
+
return (0, import_react199.useMemo)(function() {
|
|
47178
47502
|
return {
|
|
47179
47503
|
addEventListener,
|
|
47180
47504
|
removeEventListener,
|
|
@@ -47479,8 +47803,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47479
47803
|
if (!TYPES.includes(type)) {
|
|
47480
47804
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
47481
47805
|
}
|
|
47482
|
-
var webViewRef = (0,
|
|
47483
|
-
var url = (0,
|
|
47806
|
+
var webViewRef = (0, import_react192.useRef)(null);
|
|
47807
|
+
var url = (0, import_react192.useMemo)(function() {
|
|
47484
47808
|
return getWebViewURL(local);
|
|
47485
47809
|
}, [
|
|
47486
47810
|
local
|
|
@@ -47490,7 +47814,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47490
47814
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47491
47815
|
var navigationBarContext = useNavigationBarContext();
|
|
47492
47816
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
47493
|
-
var _useState6 = _sliced_to_array((0,
|
|
47817
|
+
var _useState6 = _sliced_to_array((0, import_react192.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
47494
47818
|
var handler = useBridgeHandler({
|
|
47495
47819
|
onMessage,
|
|
47496
47820
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -47628,7 +47952,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47628
47952
|
}
|
|
47629
47953
|
})
|
|
47630
47954
|
});
|
|
47631
|
-
var headerPropForExternalWebView = (0,
|
|
47955
|
+
var headerPropForExternalWebView = (0, import_react192.useMemo)(function() {
|
|
47632
47956
|
var _ref;
|
|
47633
47957
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
47634
47958
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -47653,7 +47977,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47653
47977
|
colorPreference: "light"
|
|
47654
47978
|
});
|
|
47655
47979
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
47656
|
-
(0,
|
|
47980
|
+
(0, import_react192.useEffect)(function() {
|
|
47657
47981
|
var callback = function() {
|
|
47658
47982
|
webBackHandler.handleWebBack();
|
|
47659
47983
|
return true;
|
|
@@ -47729,7 +48053,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47729
48053
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47730
48054
|
}));
|
|
47731
48055
|
}
|
|
47732
|
-
var import_react_native182, import_react175, import_react176, import_jsx_runtime212, import_react177, import_jsx_runtime213, import_react178, import_react_native186, import_react179, import_react_native188, import_react180, import_react181, import_react_native191, import_react182, import_react183, import_react184, import_react185, import_jsx_runtime214, import_jsx_runtime215, import_react186, import_react_native194, import_react187, import_react188, import_react_native199, import_jsx_runtime216, import_jsx_runtime217, import_jsx_runtime218, import_jsx_runtime219, import_jsx_runtime220,
|
|
48056
|
+
var import_react_native182, import_react175, import_react176, import_jsx_runtime212, import_react177, import_jsx_runtime213, import_react178, import_react_native186, import_react179, import_react_native188, import_react180, import_react181, import_react_native191, import_react182, import_react183, import_react184, import_react185, import_jsx_runtime214, import_jsx_runtime215, import_react186, import_react_native194, import_react187, import_react188, import_react189, import_react_native199, import_jsx_runtime216, import_jsx_runtime217, import_jsx_runtime218, import_jsx_runtime219, import_jsx_runtime220, import_react190, 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_react191, import_jsx_runtime226, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_jsx_runtime230, import_react192, import_react_native210, import_react193, import_react_native211, import_react194, import_jsx_runtime231, import_jsx_runtime232, import_react195, import_react196, import_jsx_runtime233, import_jsx_runtime234, import_react197, import_react198, import_react199, import_react200, import_react_native218, import_react201, import_react202, import_jsx_runtime235, import_react203, import_react_native221, import_react204, import_react_native222, import_jsx_runtime236, import_react205, 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;
|
|
47733
48057
|
var init_dist8 = __esm({
|
|
47734
48058
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47735
48059
|
"use strict";
|
|
@@ -47795,12 +48119,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47795
48119
|
import_react_native194 = __toESM(require_react_native(), 1);
|
|
47796
48120
|
init_src3();
|
|
47797
48121
|
import_react187 = __toESM(require_react(), 1);
|
|
48122
|
+
init_esm7();
|
|
48123
|
+
init_dist6();
|
|
48124
|
+
import_react188 = __toESM(require_react(), 1);
|
|
47798
48125
|
init_src3();
|
|
47799
48126
|
init_dist5();
|
|
47800
48127
|
init_src3();
|
|
47801
48128
|
init_esm7();
|
|
47802
48129
|
init_private2();
|
|
47803
|
-
|
|
48130
|
+
import_react189 = __toESM(require_react(), 1);
|
|
47804
48131
|
init_dist5();
|
|
47805
48132
|
init_src3();
|
|
47806
48133
|
init_esm7();
|
|
@@ -47819,7 +48146,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47819
48146
|
init_react_native_safe_area_context();
|
|
47820
48147
|
init_src3();
|
|
47821
48148
|
init_esm7();
|
|
47822
|
-
|
|
48149
|
+
import_react190 = __toESM(require_react(), 1);
|
|
47823
48150
|
import_react_native203 = __toESM(require_react_native(), 1);
|
|
47824
48151
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
47825
48152
|
init_react_native_svg();
|
|
@@ -47834,7 +48161,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47834
48161
|
init_esm7();
|
|
47835
48162
|
import_react_native208 = __toESM(require_react_native(), 1);
|
|
47836
48163
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47837
|
-
|
|
48164
|
+
import_react191 = __toESM(require_react(), 1);
|
|
47838
48165
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47839
48166
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47840
48167
|
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47851,21 +48178,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47851
48178
|
init_react_native_safe_area_context();
|
|
47852
48179
|
init_src3();
|
|
47853
48180
|
init_esm7();
|
|
47854
|
-
|
|
48181
|
+
import_react192 = __toESM(require_react(), 1);
|
|
47855
48182
|
import_react_native210 = __toESM(require_react_native(), 1);
|
|
47856
48183
|
init_dist5();
|
|
47857
48184
|
init_react_native_webview();
|
|
47858
|
-
|
|
48185
|
+
import_react193 = __toESM(require_react(), 1);
|
|
47859
48186
|
import_react_native211 = __toESM(require_react_native(), 1);
|
|
47860
48187
|
init_src3();
|
|
47861
48188
|
init_esm7();
|
|
47862
|
-
|
|
48189
|
+
init_dist6();
|
|
48190
|
+
import_react194 = __toESM(require_react(), 1);
|
|
47863
48191
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47864
48192
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47865
48193
|
init_react_native_webview();
|
|
47866
|
-
import_react194 = __toESM(require_react(), 1);
|
|
47867
|
-
init_src3();
|
|
47868
48194
|
import_react195 = __toESM(require_react(), 1);
|
|
48195
|
+
init_src3();
|
|
48196
|
+
import_react196 = __toESM(require_react(), 1);
|
|
47869
48197
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47870
48198
|
import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
|
|
47871
48199
|
init_dist5();
|
|
@@ -47874,17 +48202,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47874
48202
|
init_dist5();
|
|
47875
48203
|
init_src3();
|
|
47876
48204
|
init_src3();
|
|
47877
|
-
import_react196 = __toESM(require_react(), 1);
|
|
47878
|
-
init_react_native_safe_area_context();
|
|
47879
48205
|
import_react197 = __toESM(require_react(), 1);
|
|
47880
|
-
|
|
48206
|
+
init_react_native_safe_area_context();
|
|
47881
48207
|
import_react198 = __toESM(require_react(), 1);
|
|
48208
|
+
init_src3();
|
|
48209
|
+
init_esm7();
|
|
48210
|
+
init_dist6();
|
|
47882
48211
|
import_react199 = __toESM(require_react(), 1);
|
|
48212
|
+
import_react200 = __toESM(require_react(), 1);
|
|
47883
48213
|
init_dist5();
|
|
47884
48214
|
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47885
48215
|
init_dist5();
|
|
47886
|
-
import_react200 = __toESM(require_react(), 1);
|
|
47887
48216
|
import_react201 = __toESM(require_react(), 1);
|
|
48217
|
+
import_react202 = __toESM(require_react(), 1);
|
|
47888
48218
|
init_dist5();
|
|
47889
48219
|
init_src3();
|
|
47890
48220
|
init_esm7();
|
|
@@ -47894,12 +48224,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47894
48224
|
init_dist5();
|
|
47895
48225
|
init_dist3();
|
|
47896
48226
|
init_dist3();
|
|
47897
|
-
import_react202 = __toESM(require_react(), 1);
|
|
47898
|
-
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47899
48227
|
import_react203 = __toESM(require_react(), 1);
|
|
48228
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48229
|
+
import_react204 = __toESM(require_react(), 1);
|
|
47900
48230
|
import_react_native222 = __toESM(require_react_native(), 1);
|
|
47901
48231
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
47902
|
-
|
|
48232
|
+
import_react205 = __toESM(require_react(), 1);
|
|
47903
48233
|
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47904
48234
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
47905
48235
|
import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -48454,8 +48784,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48454
48784
|
safeAreaInsetsChange = createEvent("safeAreaInsetsChange");
|
|
48455
48785
|
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
48456
48786
|
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
48787
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
48788
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
48457
48789
|
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
48458
48790
|
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
48791
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
48792
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
48459
48793
|
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
48460
48794
|
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
48461
48795
|
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
@@ -48504,8 +48838,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48504
48838
|
AppsInToss = {
|
|
48505
48839
|
registerApp
|
|
48506
48840
|
};
|
|
48507
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
48508
|
-
(0,
|
|
48841
|
+
GameWebView = /* @__PURE__ */ (0, import_react193.forwardRef)(function GameWebView2(props, ref) {
|
|
48842
|
+
(0, import_react193.useEffect)(function() {
|
|
48509
48843
|
if (import_react_native211.Platform.OS === "ios") {
|
|
48510
48844
|
setIosSwipeGestureEnabled({
|
|
48511
48845
|
isEnabled: false
|
|
@@ -48531,7 +48865,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48531
48865
|
]
|
|
48532
48866
|
});
|
|
48533
48867
|
});
|
|
48534
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48868
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react195.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
48535
48869
|
var _ref = [
|
|
48536
48870
|
_03,
|
|
48537
48871
|
_1
|