katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/75592cd3af2a6259288f1882dca...

1 line
39 KiB
JSON
Raw Normal View History

2022-07-06 04:15:11 +00:00
{"ast":null,"code":"import _slicedToArray from \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray\";\n\nvar _this = this,\n _jsxFileName = \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/App.js\";\n\nimport React, { useState, useEffect, useRef } from 'react';\nimport classNames from 'classnames';\nimport { Route, useLocation } from 'react-router-dom';\nimport { CSSTransition } from 'react-transition-group';\nimport { AppTopbar } from './AppTopbar';\nimport { AppFooter } from './AppFooter';\nimport { AppMenu } from './AppMenu';\nimport { AppConfig } from './AppConfig';\nimport Dashboard from './components/Dashboard';\nimport ButtonDemo from './components/ButtonDemo';\nimport ChartDemo from './components/ChartDemo';\nimport Documentation from './components/Documentation';\nimport FileDemo from './components/FileDemo';\nimport FloatLabelDemo from './components/FloatLabelDemo';\nimport FormLayoutDemo from './components/FormLayoutDemo';\nimport InputDemo from './components/InputDemo';\nimport ListDemo from './components/ListDemo';\nimport MenuDemo from './components/MenuDemo';\nimport MessagesDemo from './components/MessagesDemo';\nimport MiscDemo from './components/MiscDemo';\nimport OverlayDemo from './components/OverlayDemo';\nimport MediaDemo from './components/MediaDemo';\nimport PanelDemo from './components/PanelDemo';\nimport TableDemo from './components/TableDemo';\nimport TreeDemo from './components/TreeDemo';\nimport InvalidStateDemo from './components/InvalidStateDemo';\nimport BlocksDemo from './components/BlocksDemo';\nimport IconsDemo from './components/IconsDemo';\nimport Crud from './pages/Crud';\nimport EmptyPage from './pages/EmptyPage';\nimport TimelineDemo from './pages/TimelineDemo';\nimport PrimeReact from 'primereact/api';\nimport { Tooltip } from 'primereact/tooltip';\nimport 'primereact/resources/primereact.css';\nimport 'primeicons/primeicons.css';\nimport 'primeflex/primeflex.css';\nimport 'prismjs/themes/prism-coy.css';\nimport './assets/demo/flags/flags.css';\nimport './assets/demo/Demos.scss';\nimport './assets/layout/layout.scss';\nimport './App.scss';\n\nvar App = function App() {\n var _useState = useState('static'),\n _useState2 = _slicedToArray(_useState, 2),\n layoutMode = _useState2[0],\n setLayoutMode = _useState2[1];\n\n var _useState3 = useState('light'),\n _useState4 = _slicedToArray(_useState3, 2),\n layoutColorMode = _useState4[0],\n setLayoutColorMode = _useState4[1];\n\n var _useState5 = useState('outlined'),\n _useState6 = _slicedToArray(_useState5, 2),\n inputStyle = _useState6[0],\n setInputStyle = _useState6[1];\n\n var _useState7 = useState(true),\n _useState8 = _slicedToArray(_useState7, 2),\n ripple = _useState8[0],\n setRipple = _useState8[1];\n\n var _useState9 = useState(false),\n _useState10 = _slicedToArray(_useState9, 2),\n staticMenuInactive = _useState10[0],\n setStaticMenuInactive = _useState10[1];\n\n var _useState11 = useState(false),\n _useState12 = _slicedToArray(_useState11, 2),\n overlayMenuActive = _useState12[0],\n setOverlayMenuActive = _useState12[1];\n\n var _useState13 = useState(false),\n _useState14 = _slicedToArray(_useState13, 2),\n mobileMenuActive = _useState14[0],\n setMobileMenuActive = _useState14[1];\n\n var _useState15 = useState(false),\n _useState16 = _slicedToArray(_useState15, 2),\n mobileTopbarMenuActive = _useState16[0],\n setMobileTopbarMenuActive = _useState16[1];\n\n var copyTooltipRef = useRef();\n var location = useLocation();\n PrimeReact.ripple = true;\n var menuClick = false;\n var mobileTopbarMenuClick = false;\n useEffect(function () {\n if (mobileMenuActive) {\n addClass(document.body, \"body-overflow-hidden\");\n } else {\n removeClass(document.body, \"body-overflow-hidden\");\n }\n }, [mobileMenuActive]);\n useEffect(functio