"use strict";
exports.id = 4258;
exports.ids = [4258];
exports.modules = {

/***/ 618532:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {


// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "c": () => (/* binding */ Embed),
  "A": () => (/* binding */ Layout)
});

// EXTERNAL MODULE: external "react/jsx-runtime"
var jsx_runtime_ = __webpack_require__(920997);
// EXTERNAL MODULE: external "path"
var external_path_ = __webpack_require__(371017);
// EXTERNAL MODULE: external "antd"
var external_antd_ = __webpack_require__(545725);
// EXTERNAL MODULE: ./lib/config.ts
var config = __webpack_require__(78082);
// EXTERNAL MODULE: external "next/head"
var head_ = __webpack_require__(40968);
var head_default = /*#__PURE__*/__webpack_require__.n(head_);
// EXTERNAL MODULE: ./components/analytics.tsx
var analytics = __webpack_require__(336890);
// EXTERNAL MODULE: ./components/landing/footer.tsx + 1 modules
var footer = __webpack_require__(920691);
// EXTERNAL MODULE: ./components/landing/header.tsx + 2 modules
var header = __webpack_require__(113680);
;// CONCATENATED MODULE: ./components/share/header.tsx


function Header() {
    return /*#__PURE__*/ jsx_runtime_.jsx(header/* default */.Z, {
        page: "share"
    });
};

// EXTERNAL MODULE: ./lib/base-path.ts
var base_path = __webpack_require__(621923);
// EXTERNAL MODULE: ./lib/use-customize.ts
var use_customize = __webpack_require__(1198);
;// CONCATENATED MODULE: ./components/share/layout.tsx










const favicon = (0,external_path_.join)(base_path/* default */.Z, "webapp/favicon-32x32.png");
function Layout({ title , children  }) {
    const { siteName , noindex  } = (0,use_customize/* default */.Z)();
    return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
        children: [
            /*#__PURE__*/ (0,jsx_runtime_.jsxs)((head_default()), {
                children: [
                    /*#__PURE__*/ (0,jsx_runtime_.jsxs)("title", {
                        children: [
                            siteName,
                            " -- ",
                            title
                        ]
                    }),
                    /*#__PURE__*/ jsx_runtime_.jsx("meta", {
                        name: "description",
                        content: "CoCalc Share Server"
                    }),
                    noindex && /*#__PURE__*/ jsx_runtime_.jsx("meta", {
                        name: "robots",
                        content: "noindex,nofollow"
                    }),
                    /*#__PURE__*/ jsx_runtime_.jsx("link", {
                        rel: "icon",
                        href: favicon
                    })
                ]
            }),
            /*#__PURE__*/ (0,jsx_runtime_.jsxs)(external_antd_.Layout, {
                children: [
                    /*#__PURE__*/ jsx_runtime_.jsx(Header, {}),
                    /*#__PURE__*/ jsx_runtime_.jsx(external_antd_.Layout.Content, {
                        style: {
                            background: "white"
                        },
                        children: /*#__PURE__*/ jsx_runtime_.jsx("div", {
                            style: {
                                color: "#555",
                                margin: "0 auto",
                                maxWidth: config/* SHARE_MAX_WIDTH */.r,
                                fontSize: "11pt",
                                padding: "15px"
                            },
                            children: children
                        })
                    }),
                    /*#__PURE__*/ jsx_runtime_.jsx(footer/* default */.Z, {})
                ]
            })
        ]
    });
}
function Embed({ title , children  }) {
    const { siteName  } = (0,use_customize/* default */.Z)();
    return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
        children: [
            /*#__PURE__*/ (0,jsx_runtime_.jsxs)((head_default()), {
                children: [
                    /*#__PURE__*/ (0,jsx_runtime_.jsxs)("title", {
                        children: [
                            siteName,
                            " -- ",
                            title
                        ]
                    }),
                    /*#__PURE__*/ jsx_runtime_.jsx("link", {
                        rel: "icon",
                        href: favicon
                    })
                ]
            }),
            /*#__PURE__*/ jsx_runtime_.jsx(analytics/* default */.Z, {}),
            /*#__PURE__*/ jsx_runtime_.jsx("main", {
                children: children
            })
        ]
    });
}


/***/ }),

/***/ 78082:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "d": () => (/* binding */ MAX_WIDTH),
/* harmony export */   "r": () => (/* binding */ SHARE_MAX_WIDTH)
/* harmony export */ });
/*
Constants and other configuration that impact the overall
look of all of the pages.
*/ const MAX_WIDTH = "900px";
const SHARE_MAX_WIDTH = "1100px";


/***/ }),

/***/ 883996:
/***/ ((__unused_webpack_module, exports) => {

var __webpack_unused_export__;

/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
__webpack_unused_export__ = ({ value: true });
exports.Le = exports.h1 = exports.rD = void 0;
/**
 * User Interface specific constants
 */
// icon name used for shared files, only accessible for authenticated users
exports.rD = "user";
exports.h1 = "only visible to those who are signed in";
// boolean flags for various shared files visibility modes
exports.Le = {
    LISTED: { unlisted: false, disabled: false, authenticated: false },
    UNLISTED: { unlisted: true, disabled: false, authenticated: false },
    DISABLED: { unlisted: false, disabled: true, authenticated: false },
    AUTHENTICATED: { unlisted: false, disabled: false, authenticated: true },
};
//# sourceMappingURL=ui.js.map

/***/ })

};
;