2026-07-23 10:11:24 +00:00
|
|
|
// Module ID: 7091
|
|
|
|
|
// Function ID: 56856
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: _isNativeReflectConstruct
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [6, 7, 15, 17, 18, 7092, 566, 686, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
// Module 7091 (_isNativeReflectConstruct)
|
|
|
|
|
import initialize from "initialize";
|
|
|
|
|
import dispatcher from "dispatcher";
|
|
|
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn";
|
|
|
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
|
|
|
|
import _inherits from "_inherits";
|
|
|
|
|
import set from "_possibleConstructorReturn";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
|
|
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
return closure_0;
|
|
|
|
|
}
|
|
|
|
|
const result = _isNativeReflectConstruct();
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let map = new Map();
|
|
|
|
|
let set = new Set();
|
|
|
|
|
let tmp4 = ((Store) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
class GameAutocompleteStore {
|
|
|
|
|
constructor() {
|
|
|
|
|
self = this;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp = outer1_2(this, GameAutocompleteStore);
|
|
|
|
|
obj = outer1_5(GameAutocompleteStore);
|
|
|
|
|
tmp2 = outer1_4;
|
|
|
|
|
if (outer1_9()) {
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp6 = globalThis;
|
|
|
|
|
_Reflect = Reflect;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp7 = outer1_5;
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp8 = arguments;
|
2026-07-23 10:11:24 +00:00
|
|
|
constructResult = Reflect.construct(obj, arguments, outer1_5(self).constructor);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
tmp3 = arguments;
|
|
|
|
|
tmp4 = arguments;
|
|
|
|
|
constructResult = obj(...arguments);
|
|
|
|
|
}
|
|
|
|
|
return tmp2(self, constructResult);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
callback2(GameAutocompleteStore, Store);
|
|
|
|
|
let obj = {
|
|
|
|
|
key: "getResults",
|
|
|
|
|
value(toLocaleLowerCase) {
|
|
|
|
|
let value;
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = GameAutocompleteStore(outer1_1[5]).normalizeGameAutocompleteQuery(toLocaleLowerCase);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != result) {
|
2026-07-23 10:11:24 +00:00
|
|
|
value = outer1_7.get(result);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const items = [obj, , , ];
|
|
|
|
|
obj = {
|
|
|
|
|
key: "getClosestResults",
|
|
|
|
|
value(toLocaleLowerCase) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = GameAutocompleteStore(outer1_1[5]).normalizeGameAutocompleteQuery(toLocaleLowerCase);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != result) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let value = outer1_7.get(result);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != value) {
|
|
|
|
|
return value;
|
|
|
|
|
} else {
|
|
|
|
|
let diff = result.length - 1;
|
|
|
|
|
if (diff >= 1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
value = outer1_7.get(result.slice(0, diff));
|
2026-07-20 16:05:17 +00:00
|
|
|
while (null == value) {
|
|
|
|
|
diff = diff - 1;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[1] = obj;
|
|
|
|
|
obj = {
|
|
|
|
|
key: "shouldSuppressFetch",
|
|
|
|
|
value(toLocaleLowerCase) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = GameAutocompleteStore(outer1_1[5]).normalizeGameAutocompleteQuery(toLocaleLowerCase);
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp2 = null != result;
|
|
|
|
|
if (tmp2) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let result1 = !outer1_7.has(result);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (result1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
result1 = !outer1_8.has(result);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (result1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
result1 = GameAutocompleteStore(outer1_1[5]).shouldSuppressAutocompleteFetch(result, (arg0) => outer2_7.get(arg0));
|
|
|
|
|
const obj2 = GameAutocompleteStore(outer1_1[5]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
tmp2 = result1;
|
|
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[2] = obj;
|
|
|
|
|
items[3] = {
|
|
|
|
|
key: "isFetching",
|
|
|
|
|
value(toLocaleLowerCase) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = GameAutocompleteStore(outer1_1[5]).normalizeGameAutocompleteQuery(toLocaleLowerCase);
|
2026-07-20 16:05:17 +00:00
|
|
|
let hasItem = null != result;
|
|
|
|
|
if (hasItem) {
|
2026-07-23 10:11:24 +00:00
|
|
|
hasItem = outer1_8.has(result);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return hasItem;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return callback(GameAutocompleteStore, items);
|
2026-07-23 10:11:24 +00:00
|
|
|
})(require("initialize").Store);
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp4.displayName = "GameAutocompleteStore";
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp4 = new tmp4(require("dispatcher"), {
|
2026-07-20 16:05:17 +00:00
|
|
|
LOGOUT: function handleLogout() {
|
|
|
|
|
const map = new Map();
|
|
|
|
|
const set = new Set();
|
|
|
|
|
},
|
|
|
|
|
GAME_AUTOCOMPLETE_FETCH: function handleFetch(query) {
|
|
|
|
|
set.add(query.query);
|
|
|
|
|
},
|
|
|
|
|
GAME_AUTOCOMPLETE_FETCH_SUCCESS: function handleFetchSuccess(query) {
|
|
|
|
|
query = query.query;
|
|
|
|
|
set.delete(query);
|
|
|
|
|
map.delete(query);
|
|
|
|
|
const result = map.set(query, query.results);
|
|
|
|
|
if (map.size > 100) {
|
|
|
|
|
const value = map.keys().next().value;
|
|
|
|
|
while (null != value) {
|
|
|
|
|
let tmp5 = map;
|
|
|
|
|
let deleteResult2 = map.delete(value);
|
|
|
|
|
let tmp7 = map;
|
|
|
|
|
if (map.size <= 100) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const iter = map.keys();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
GAME_AUTOCOMPLETE_FETCH_FAILURE: function handleFetchFailure(query) {
|
|
|
|
|
set.delete(query.query);
|
|
|
|
|
}
|
|
|
|
|
});
|
2026-07-23 10:11:24 +00:00
|
|
|
let result = set.fileFinishedImporting("modules/games/autocomplete/GameAutocompleteStore.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default tmp4;
|