"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");
const antd_1 = require("antd");
const header_1 = __importDefault(require("components/landing/header"));
const head_1 = __importDefault(require("components/landing/head"));
const footer_1 = __importDefault(require("components/landing/footer"));
const customize_1 = require("lib/customize");
const with_customize_1 = __importDefault(require("lib/with-customize"));
const A_1 = __importDefault(require("components/misc/A"));
const index_list_1 = __importDefault(require("components/landing/index-list"));
const dataSource = [
    {
        link: "/support/new",
        title: "Create a New Support Ticket",
        logo: "medkit",
        hide: (customize) => !customize.zendesk,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["If you are having any trouble or just have a question,", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/support/new", children: (0, jsx_runtime_1.jsx)("b", { children: "create a support ticket" }) }), ".  You do NOT have to be a paying customer to open a ticket, though we prioritize customer requests."] })),
    },
    {
        link: "/support/tickets",
        title: "Status of Support Tickets",
        logo: "life-saver",
        hide: (customize) => !customize.zendesk,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Check on the", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/support/tickets", children: (0, jsx_runtime_1.jsx)("b", { children: "status of your support tickets" }) }), "."] })),
    },
    {
        link: "/support/community",
        title: "CoCalc Community Support",
        logo: "users",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/discussions", children: "Join a discussion" }), " ", "or", " ", (0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://groups.google.com/forum/?fromgroups#!forum/cocalc", children: ["post to the mailing list.", " "] }), "We also have ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://twitter.com/cocalc_com", children: "a Twitter feed" }), " ", "and ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://about.cocalc.com/cocalcs-blog/", children: "a blog" }), "."] })),
    },
    {
        landingPages: true,
        link: "https://docs.google.com/forms/d/e/1FAIpQLSesDZkGD2XVu8BHKd_sPwn5g7MrLAA8EYRTpB6daedGVMTpkA/viewform",
        title: "Request a Live Demo!",
        logo: "video-camera",
        hide: (customize) => !customize.isCommercial,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["If you're seriously considering using CoCalc to teach a course, but aren't sure of some of the details and really need to just", " ", (0, jsx_runtime_1.jsx)("b", { children: "talk to a person" }), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://docs.google.com/forms/d/e/1FAIpQLSesDZkGD2XVu8BHKd_sPwn5g7MrLAA8EYRTpB6daedGVMTpkA/viewform", children: "fill out this form and request a live video chat with us" }), ". We love chatting (in English and German), and will hopefully be able to answer all of your questions."] })),
    },
];
function Preferences({ customize }) {
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Support" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "support" }), (0, jsx_runtime_1.jsx)(index_list_1.default, { title: "Support", description: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["We provide extremely good support to our users and customers. If you run into a problem, read", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/", children: "our extensive documentation" }), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/support/community", children: "check online forums and chatrooms" }), " ", "or ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/support/new", children: "create a support ticket" }), "."] }), dataSource: dataSource }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] }));
}
exports.default = Preferences;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=index.js.map