{"size": 2823, "ext": "js", "max_stars_repo_path": "node_modules/@next/react-dev-overlay/lib/internal/container/BuildError.js", "max_stars_repo_name": "dcastro20/project3-plan-it-fitness", "max_stars_repo_stars_event_min_datetime": "2020-07-28T20:44:11.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-28T20:44:11.000Z", "max_issues_repo_path": "node_modules/@next/react-dev-overlay/lib/internal/container/BuildError.js", "max_issues_repo_name": "dcastro20/project3-plan-it-fitness", "max_issues_repo_issues_event_min_datetime": "2021-05-11T18:09:39.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T07:01:52.000Z", "max_forks_repo_path": "node_modules/@next/react-dev-overlay/lib/internal/container/BuildError.js", "max_forks_repo_name": "masapasa/nuubri", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 10, "max_forks_count": null, "avg_line_length": 80.6571428571, "max_line_length": 797, "alphanum_fraction": 0.6620616366}
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
exports.__esModule = true;
var React = __importStar(require("react"));
var Dialog_1 = require("../components/Dialog");
var Overlay_1 = require("../components/Overlay");
var Terminal_1 = require("../components/Terminal");
var noop_template_1 = require("../helpers/noop-template");
exports.BuildError = function BuildError(_a) {
    var message = _a.message;
    var noop = React.useCallback(function () { }, []);
    return (React.createElement(Overlay_1.Overlay, { fixed: true },
        React.createElement(Dialog_1.Dialog, { type: "error", "aria-labelledby": "nextjs__container_build_error_label", "aria-describedby": "nextjs__container_build_error_desc", onClose: noop },
            React.createElement(Dialog_1.DialogContent, null,
                React.createElement(Dialog_1.DialogHeader, { className: "nextjs-container-build-error-header" },
                    React.createElement("h4", { id: "nextjs__container_build_error_label" }, "Failed to compile")),
                React.createElement(Dialog_1.DialogBody, { className: "nextjs-container-build-error-body" },
                    React.createElement(Terminal_1.Terminal, { content: message }),
                    React.createElement("footer", null,
                        React.createElement("p", { id: "nextjs__container_build_error_desc" },
                            React.createElement("small", null, "This error occured during the build process and can only be dismissed by fixing the error."))))))));
};
exports.styles = noop_template_1.noop(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  .nextjs-container-build-error-header > h4 {\n    line-height: 1.5;\n    margin: 0;\n    padding: 0;\n  }\n\n  .nextjs-container-build-error-body footer {\n    margin-top: var(--size-gap);\n  }\n  .nextjs-container-build-error-body footer p {\n    margin: 0;\n  }\n\n  .nextjs-container-build-error-body small {\n    color: #757575;\n  }\n"], ["\n  .nextjs-container-build-error-header > h4 {\n    line-height: 1.5;\n    margin: 0;\n    padding: 0;\n  }\n\n  .nextjs-container-build-error-body footer {\n    margin-top: var(--size-gap);\n  }\n  .nextjs-container-build-error-body footer p {\n    margin: 0;\n  }\n\n  .nextjs-container-build-error-body small {\n    color: #757575;\n  }\n"])));
var templateObject_1;
