163 lines
6.5 KiB
JavaScript
163 lines
6.5 KiB
JavaScript
|
"use strict";
|
||
|
exports.id = 6217;
|
||
|
exports.ids = [6217];
|
||
|
exports.modules = {
|
||
|
|
||
|
/***/ 6217:
|
||
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
||
|
|
||
|
// EXPORTS
|
||
|
__webpack_require__.d(__webpack_exports__, {
|
||
|
"Z": () => (/* binding */ GeneralLayout)
|
||
|
});
|
||
|
|
||
|
// EXTERNAL MODULE: external "react/jsx-runtime"
|
||
|
var jsx_runtime_ = __webpack_require__(997);
|
||
|
// EXTERNAL MODULE: external "react"
|
||
|
var external_react_ = __webpack_require__(6689);
|
||
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
||
|
// EXTERNAL MODULE: external "next/head"
|
||
|
var head_ = __webpack_require__(968);
|
||
|
var head_default = /*#__PURE__*/__webpack_require__.n(head_);
|
||
|
// EXTERNAL MODULE: ./functions/frontend/updateNavLinks.js
|
||
|
var updateNavLinks = __webpack_require__(9678);
|
||
|
// EXTERNAL MODULE: ./layouts/components/GeneralLayout/Header.jsx
|
||
|
var Header = __webpack_require__(7108);
|
||
|
// EXTERNAL MODULE: ./layouts/components/GeneralLayout/Footer.jsx
|
||
|
var Footer = __webpack_require__(5281);
|
||
|
;// CONCATENATED MODULE: ./layouts/components/GeneralLayout/ProductionHeadComponent.jsx
|
||
|
// @ts-check
|
||
|
/**
|
||
|
* ==============================================================================
|
||
|
* Imports
|
||
|
* ==============================================================================
|
||
|
*/
|
||
|
|
||
|
/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**
|
||
|
* ==============================================================================
|
||
|
* Main Component { Functional }
|
||
|
* ==============================================================================
|
||
|
* @param {object} props - React component props
|
||
|
* @param {*} props.head
|
||
|
* @param {*} props.productionEnvironment
|
||
|
*/ function ProductionHeadComponent(props) {
|
||
|
/**
|
||
|
* Get Contexts
|
||
|
*
|
||
|
* @abstract { React.useContext }
|
||
|
*/ ////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
/**
|
||
|
* Javascript Variables
|
||
|
*
|
||
|
* @abstract Non hook variables and functions
|
||
|
*/ ////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
/**
|
||
|
* React Hooks
|
||
|
*
|
||
|
* @abstract { useState, useEffect, useRef, etc ... }
|
||
|
*/ ////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
/**
|
||
|
* Function Return
|
||
|
*
|
||
|
* @abstract Main Function Return
|
||
|
*/ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {});
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
}
|
||
|
|
||
|
// EXTERNAL MODULE: ./layouts/components/GeneralLayout/ScrollToTopButton.jsx
|
||
|
var ScrollToTopButton = __webpack_require__(9360);
|
||
|
;// CONCATENATED MODULE: ./layouts/GeneralLayout.jsx
|
||
|
// @ts-check
|
||
|
/**
|
||
|
* ==============================================================================
|
||
|
* Imports
|
||
|
* ==============================================================================
|
||
|
*/
|
||
|
|
||
|
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**
|
||
|
* ==============================================================================
|
||
|
* Main Component { Functional }
|
||
|
* ==============================================================================
|
||
|
* @param {object} props - React Component Props
|
||
|
* @param {React.ReactNode} props.children - children component
|
||
|
* @param {React.ReactNode} props.head - head Items
|
||
|
* @param {import("@/package-shared/types").UserType | null} [props.user] - user object
|
||
|
* @param {*} [props.productionEnvironment]
|
||
|
* @param {boolean} [props.darkBgHeader]
|
||
|
* @param {boolean} [props.transparentHeader]
|
||
|
*/ function GeneralLayout({ children , head , user , productionEnvironment , darkBgHeader , transparentHeader , }) {
|
||
|
/**
|
||
|
* Get Contexts
|
||
|
*
|
||
|
* @abstract { React.useContext }
|
||
|
*/ ////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
/**
|
||
|
* Javascript Variables
|
||
|
*
|
||
|
* @abstract Non hook variables and functions
|
||
|
*/ ////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
/**
|
||
|
* React Hooks
|
||
|
*
|
||
|
* @abstract { useState, useEffect, useRef, etc ... }
|
||
|
*/ external_react_default().useEffect(()=>{
|
||
|
(0,updateNavLinks/* default */.Z)({});
|
||
|
}, []);
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
/**
|
||
|
* Function Return
|
||
|
*
|
||
|
* @abstract Main Function Return
|
||
|
*/ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, {
|
||
|
children: [
|
||
|
/*#__PURE__*/ jsx_runtime_.jsx((head_default()), {
|
||
|
children: head
|
||
|
}),
|
||
|
/*#__PURE__*/ jsx_runtime_.jsx(ProductionHeadComponent, {
|
||
|
head: head,
|
||
|
productionEnvironment: productionEnvironment
|
||
|
}),
|
||
|
/*#__PURE__*/ jsx_runtime_.jsx(Header/* default */.Z, {
|
||
|
user: user,
|
||
|
darkBg: darkBgHeader,
|
||
|
transparent: transparentHeader
|
||
|
}),
|
||
|
children,
|
||
|
/*#__PURE__*/ jsx_runtime_.jsx(Footer/* default */.Z, {}),
|
||
|
/*#__PURE__*/ jsx_runtime_.jsx(ScrollToTopButton/* default */.Z, {})
|
||
|
]
|
||
|
});
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
////////////////////////////////////////
|
||
|
}
|
||
|
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
};
|
||
|
;
|