"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServerSideProps = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
/*
 *  This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
const icon_1 = require("@cocalc/frontend/components/icon");
const antd_1 = require("antd");
const footer_1 = __importDefault(require("components/landing/footer"));
const head_1 = __importDefault(require("components/landing/head"));
const header_1 = __importDefault(require("components/landing/header"));
const A_1 = __importDefault(require("components/misc/A"));
const config_1 = require("lib/config");
const customize_1 = require("lib/customize");
const with_customize_1 = __importDefault(require("lib/with-customize"));
const { Text } = antd_1.Typography;
function Products({ customize }) {
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Products" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "pricing", subPage: "products" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout.Content, { style: {
                            backgroundColor: "white",
                        }, children: [(0, jsx_runtime_1.jsx)(Body, {}), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] })] }));
}
exports.default = Products;
function Body() {
    return ((0, jsx_runtime_1.jsxs)("div", { style: {
            maxWidth: config_1.MAX_WIDTH,
            margin: "15px auto",
            padding: "15px",
            backgroundColor: "white",
        }, children: [(0, jsx_runtime_1.jsx)("div", { style: { textAlign: "center", color: "#444" }, children: (0, jsx_runtime_1.jsxs)("h1", { style: { fontSize: "28pt" }, children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "credit-card", style: { marginRight: "30px" } }), " CoCalc - Products"] }) }), (0, jsx_runtime_1.jsxs)("div", { style: { fontSize: "12pt" }, children: [(0, jsx_runtime_1.jsx)("h2", { children: "Collaborative projects" }), (0, jsx_runtime_1.jsxs)("p", { children: ["Your work on ", (0, jsx_runtime_1.jsx)("span", { children: "CoCalc" }), " happens inside one or more", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/project.html", children: "projects" }), ". They form your personal workspaces, where you privately store your files, computational worksheets, and data. You typically run computations through a web browser, either via a", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/sagews.html", children: "Sage Worksheet" }), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/jupyter.html", children: "Jupyter Notebook" }), ", or by executing a program in a", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/terminal.html", children: "terminal" }), ". You can also", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/project-settings.html#add-new-collaborators", children: "invite collaborators" }), " ", "to work with you inside a project, and you can explicitly make files or directories", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/share.html", children: "publicly available to everybody" }), "."] }), (0, jsx_runtime_1.jsx)("h2", { children: "Teaching Courses" }), (0, jsx_runtime_1.jsxs)("p", { children: ["Teaching a course on CoCalc usually involves one", " ", (0, jsx_runtime_1.jsx)(Text, { italic: true, children: "instructor project" }), " hosting the course and one project for each student. Additionally, a shared project could be set up as a common space. Please check out", " ", (0, jsx_runtime_1.jsx)(Text, { strong: true, children: (0, jsx_runtime_1.jsx)(A_1.default, { href: "./courses", children: "course licenses" }) }), " ", "for more details."] }), (0, jsx_runtime_1.jsx)("h2", { children: "Project resources" }), (0, jsx_runtime_1.jsxs)("p", { children: ["Each project runs on a server, where it shares disk space, CPU, and RAM with other projects. Initially, you work in a", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/trial.html", children: "trial project" }), ", which runs with default quotas on heavily used machines that are rebooted frequently. Upgrading to \"member hosting\" moves your project to a machine with higher-quality hosting and less competition for resources."] }), (0, jsx_runtime_1.jsx)("h2", { children: "Upgrading projects" }), (0, jsx_runtime_1.jsxs)("p", { children: ["Each license you purchase provides upgrades to the project", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/project-settings.html#add-a-license-to-a-project", children: "the license is assigned to" }), ". This improves hosting quality, enables internet access from within a project or increases quotas for CPU and RAM in order to work on larger problems and do more computations simultaneously. On top of that, your", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "mailto:help@cocalc.com", children: "support questions" }), " are prioritized."] }), (0, jsx_runtime_1.jsxs)("p", { children: ["All project collaborators ", (0, jsx_runtime_1.jsx)("em", { children: "collectively contribute" }), " to the same project \u2014 their contributions benefit all project collaborators equally."] }), (0, jsx_runtime_1.jsx)("h2", { children: "License Keys" }), (0, jsx_runtime_1.jsxs)("p", { children: [(0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/licenses.html", children: "License Keys" }), " are applied to projects. One license key can upgrade up to a certain number of ", (0, jsx_runtime_1.jsx)("b", { children: "simultaneously running projects" }), " with the given upgrade schema. You can apply a single license key to an unlimited number of projects."] }), (0, jsx_runtime_1.jsx)("p", { children: "The following parameters determine the price:" }), (0, jsx_runtime_1.jsxs)("ul", { style: { paddingLeft: "20px" }, children: [(0, jsx_runtime_1.jsx)("li", { children: "The number of projects" }), (0, jsx_runtime_1.jsx)("li", { children: "If you qualify for an academic discount" }), (0, jsx_runtime_1.jsx)("li", { children: "Upgrade schema per project: a small 2 GB memory / 1 shared CPU upgrade is fine for basic calculations, but we find that many data and computational science projects run better with additional RAM and CPU." }), (0, jsx_runtime_1.jsx)("li", { children: "Duration: monthly/yearly subscription or explicit start and end dates." }), (0, jsx_runtime_1.jsx)("li", { children: "Purchase method: online self-service purchasing versus a purchase order (which may require customized terms of service, wire transfers, etc.)" })] }), (0, jsx_runtime_1.jsx)("h2", { children: "Frequently Asked Questions" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(A_1.default, { id: "faq" }), (0, jsx_runtime_1.jsxs)("ul", { style: { paddingLeft: "20px" }, children: [(0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/billing.html", children: "Billing, quotas, and upgrades FAQ" }) }), (0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/project-faq.html", children: "Projects FAQ" }) })] })] }), (0, jsx_runtime_1.jsx)("h2", { children: "On premises" }), (0, jsx_runtime_1.jsxs)("div", { children: ["It's also possible to run CoCalc on your own hardware. Please see", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "./onprem", children: "on premises options" }), " for more information."] })] })] }));
}
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=products.js.map