"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 footer_1 = __importDefault(require("components/landing/footer"));
const head_1 = __importDefault(require("components/landing/head"));
const header_1 = __importDefault(require("components/landing/header"));
const index_list_1 = __importDefault(require("components/landing/index-list"));
const A_1 = __importDefault(require("components/misc/A"));
const customize_1 = require("lib/customize");
const with_customize_1 = __importDefault(require("lib/with-customize"));
const antd_1 = require("antd");
const dataSource = [
    {
        link: "/store",
        title: "Store",
        logo: "shopping-cart",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Purchase a license for upgrades or dedicated resources at", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/store", children: "the store" }), "."] })),
    },
    {
        link: "/pricing/products",
        title: "Products",
        logo: "credit-card",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Overview of ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing/products", children: "what you can purchase" }), " to enhance your use of CoCalc."] })),
    },
    {
        link: "/pricing/subscriptions",
        title: "Subscriptions",
        logo: "calendar",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["How to keep some of your projects upgraded via", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing/subscriptions", children: "a periodic subscription." })] })),
    },
    {
        link: "/pricing/courses",
        title: "Courses",
        logo: "graduation-cap",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["What to purchase when", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing/courses", children: (0, jsx_runtime_1.jsx)("b", { children: "using CoCalc to teach a course." }) })] })),
    },
    {
        link: "/pricing/dedicated",
        title: "Dedicated Resources",
        logo: "server",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["How to", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing/dedicated", children: "rent a dedicated powerful virtual machine or large dedicated disk" }), ", which can greatly improve collaboration and scalability in your research group."] })),
    },
    {
        link: "/pricing/onprem",
        title: "On Premises Installations",
        logo: "network-wired",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["You can run CoCalc on", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing/onprem", children: "your own laptop, server or cluster." })] })),
    },
];
function Pricing({ customize }) {
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Pricing" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "pricing" }), (0, jsx_runtime_1.jsx)(index_list_1.default, { title: "Products and Pricing", description: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["You can read more about ", customize.siteName, " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing/products", children: "products" }), " and", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing/subscriptions", children: "subscriptions" }), " below or", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/store", children: "visit the store" }), "."] }), dataSource: dataSource }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] }));
}
exports.default = Pricing;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=index.js.map