"use strict";
(globalThis["webpackChunkcore_nga"] = globalThis["webpackChunkcore_nga"] || []).push([["506"], {
392: (function (__unused_webpack_module, exports, __webpack_require__) {
/**
 * @license React
 * react-compiler-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */


var ReactSharedInternals =
  (__webpack_require__(253)/* .__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE */.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE);
exports.c = function (size) {
  return ReactSharedInternals.H.useMemoCache(size);
};


}),
631: (function (__unused_webpack_module, exports) {
/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */


var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
function jsxProd(type, config, maybeKey) {
  var key = null;
  void 0 !== maybeKey && (key = "" + maybeKey);
  void 0 !== config.key && (key = "" + config.key);
  if ("key" in config) {
    maybeKey = {};
    for (var propName in config)
      "key" !== propName && (maybeKey[propName] = config[propName]);
  } else maybeKey = config;
  config = maybeKey.ref;
  return {
    $$typeof: REACT_ELEMENT_TYPE,
    type: type,
    key: key,
    ref: void 0 !== config ? config : null,
    props: maybeKey
  };
}
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.jsx = jsxProd;
exports.jsxs = jsxProd;


}),
827: (function (module, __unused_webpack_exports, __webpack_require__) {
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



if (true) {
  module.exports = __webpack_require__(392);
} else {}


}),
893: (function (module, __unused_webpack_exports, __webpack_require__) {


if (true) {
  module.exports = __webpack_require__(631);
} else {}


}),
650: (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
  "default": () => (Initializer)
});
/* ESM import */var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(893);
/* ESM import */var react_compiler_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(827);
/* ESM import */var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(253);
/* ESM import */var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);



function Initializer() {
    const $ = (0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_1__.c)(1);
    react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(_temp5);
    let t0;
    if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
        t0 = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {});
        $[0] = t0;
    } else {
        t0 = $[0];
    }
    return t0;
}
function _temp5() {
    const compDisplay = [
        "nga/NgRating",
        "nga/NgViews",
        "nga/NgScore",
        "nga/NgFaves",
        "nga/NgCredits",
        "nga/NgTrophies",
        "nga/NgAuthorComments"
    ];
    const unusedFields = [
        "game_alternateTitles",
        "game_playMode",
        "game_status",
        "game_version",
        "game_platforms",
        "game_publisher",
        "game_series",
        "game_language",
        "game_addApps",
        "game_notes"
    ];
    window.setDisplaySettings((displaySettings)=>{
        for (const field of unusedFields){
            const idx = displaySettings.gameSidebar.middle.findIndex((f)=>f === field);
            if (idx > -1) {
                displaySettings.gameSidebar.middle.splice(idx, 1);
            }
        }
        for (const field_0 of unusedFields){
            const idx_0 = displaySettings.gameSidebar.bottom.findIndex((f_0)=>f_0 === field_0);
            if (idx_0 > -1) {
                displaySettings.gameSidebar.bottom.splice(idx_0, 1);
            }
        }
        const sidebarMiddle = [
            ...displaySettings.gameSidebar.middle
        ];
        const platformsIdx = sidebarMiddle.findIndex(_temp);
        if (platformsIdx > -1 && platformsIdx <= sidebarMiddle.length) {
            displaySettings.gameSidebar.middle = [
                ...sidebarMiddle.slice(0, platformsIdx),
                ...compDisplay,
                ...displaySettings.gameSidebar.middle.slice(platformsIdx)
            ];
        } else {
            displaySettings.gameSidebar.middle = sidebarMiddle.concat(compDisplay);
        }
        displaySettings.gameList.columns.push({
            headerComponent: "nga/NgRatingListIconHeader",
            rowComponent: "nga/NgRatingListIconRow",
            type: "icon"
        });
        displaySettings.gameList.columns.push({
            headerComponent: "nga/NgViewsListHeader",
            rowComponent: "nga/NgViewsListRow",
            type: "normal",
            weight: 0.65
        });
        displaySettings.gameList.columns.push({
            headerComponent: "nga/NgScoreListHeader",
            rowComponent: "nga/NgScoreListRow",
            type: "normal",
            weight: 0.5
        });
        const pubIdx = displaySettings.gameList.columns.findIndex(_temp2);
        if (pubIdx > -1) {
            displaySettings.gameList.columns.splice(pubIdx, 1);
        }
        const platIdx = displaySettings.gameList.columns.findIndex(_temp3);
        if (platIdx > -1) {
            displaySettings.gameList.columns.splice(platIdx, 1);
        }
        displaySettings.searchComponents.push("nga/NgRatingSearchableSelect");
        return displaySettings;
    });
    window.setExtOrderables(_temp4);
}
function _temp4(orderables) {
    orderables.push({
        title: "NG Ratings",
        extId: "nga",
        key: "rating",
        default: "u"
    });
    orderables.push({
        title: "NG Views",
        extId: "nga",
        key: "views",
        default: 0
    });
    orderables.push({
        title: "NG Score",
        extId: "nga",
        key: "score",
        default: 0
    });
    orderables.push({
        title: "NG Faves",
        extId: "nga",
        key: "faves",
        default: 0
    });
    return orderables;
}
function _temp3(c_0) {
    return c_0.headerComponent === "gameCol_header_platform";
}
function _temp2(c) {
    return c.headerComponent === "gameCol_header_publisher";
}
function _temp(s) {
    return s === "game_alternateTitles";
}


}),

}]);