"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
(()=>{
    __webpack_require__.r = function(exports1) {
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    InternalAdminLayout: ()=>InternalAdminLayout
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const external_react_namespaceObject = require("react");
const external_antd_namespaceObject = require("antd");
const external_react_router_dom_namespaceObject = require("react-router-dom");
const external_index_js_namespaceObject = require("../../index.js");
const external_AdminContent_js_namespaceObject = require("./AdminContent.js");
const external_AdminTabs_js_namespaceObject = require("./AdminTabs.js");
const external_MenuEditor_js_namespaceObject = require("./MenuEditor.js");
const external_style_js_namespaceObject = require("./style.js");
const InternalAdminLayout = (props)=>{
    var _result_data_data_logo, _result_data_data, _result_data, _result_data_data1, _result_data1;
    const sideMenuRef = (0, external_react_namespaceObject.useRef)();
    const result = (0, external_index_js_namespaceObject.useSystemSettings)();
    const app = (0, external_index_js_namespaceObject.useApp)();
    const params = (0, external_react_router_dom_namespaceObject.useParams)();
    const { styles } = (0, external_style_js_namespaceObject.useStyles)();
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_antd_namespaceObject.Layout, {
        className: styles.layout,
        children: [
            /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Layout.Header, {
                className: styles.header,
                children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
                    className: styles.headerA,
                    children: [
                        /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
                            className: styles.headerB,
                            children: [
                                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
                                    className: styles.titleContainer,
                                    onClick: ()=>{
                                        location.href = app.adminUrl;
                                    },
                                    children: [
                                        /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("img", {
                                            className: styles.logo,
                                            src: null == result ? void 0 : null === (_result_data = result.data) || void 0 === _result_data ? void 0 : null === (_result_data_data = _result_data.data) || void 0 === _result_data_data ? void 0 : null === (_result_data_data_logo = _result_data_data.logo) || void 0 === _result_data_data_logo ? void 0 : _result_data_data_logo.url
                                        }),
                                        /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h1", {
                                            className: styles.title,
                                            children: null == result ? void 0 : null === (_result_data1 = result.data) || void 0 === _result_data1 ? void 0 : null === (_result_data_data1 = _result_data1.data) || void 0 === _result_data_data1 ? void 0 : _result_data_data1.title
                                        })
                                    ]
                                }),
                                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_MenuEditor_js_namespaceObject.MenuEditor, {
                                    sideMenuRef: sideMenuRef
                                }),
                                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
                                    className: styles.headerTabs,
                                    children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_AdminTabs_js_namespaceObject.AdminTabs, {})
                                })
                            ]
                        }),
                        /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
                            className: styles.right,
                            children: [
                                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.PinnedPluginList, {
                                    belongToFilter: "pinnedmenu"
                                }),
                                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.CurrentUser, {})
                            ]
                        })
                    ]
                })
            }),
            /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_antd_namespaceObject.Layout, {
                children: [
                    params.name && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Layout.Sider, {
                        className: styles.sider,
                        theme: 'light',
                        ref: sideMenuRef
                    }),
                    /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Layout.Content, {
                        className: styles.main,
                        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
                            className: "amplifier-block",
                            children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_AdminContent_js_namespaceObject.AdminContent, {})
                        })
                    })
                ]
            })
        ]
    });
};
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
