REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.55 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Agent/components/layouts/MobileLayout.jsx
Text
Base64
import { usePortal } from '@agent/hooks/usePortal'; import { useGlobalStore } from '@agent/state/global'; import { createPortal, useEffect } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { chevronDown, Icon } from '@wordpress/icons'; import { AnimatePresence, motion } from 'framer-motion'; export const MobileLayout = ({ children }) => { const mountNode = usePortal('extendify-agent-mount'); const { minimized, setMinimized } = useGlobalStore(); const minimize = () => setMinimized(true); useEffect(() => { if (!mountNode || minimized) return; document.body.style.overflow = 'hidden'; return () => { document.body.style.overflow = ''; }; }, [mountNode, minimized]); if (!mountNode) return null; return createPortal( <div className={`fixed inset-0 z-max-1 items-center justify-center ${ minimized ? 'hidden' : 'flex' }`} aria-hidden={minimized ? 'true' : 'false'} > <div className="pointer-events-none absolute inset-0 bg-black/70" /> <AnimatePresence> <motion.div key="agent-popout-modal" id="extendify-agent-popout-modal" initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ y: 0, opacity: 0 }} transition={{ duration: 0.4, delay: 0.1 }} className="fixed bottom-[2vh] z-high flex h-full max-h-[80vh] w-full max-w-[90vw] flex-col rounded-lg border border-solid border-gray-600 bg-white shadow-2xl-flipped rtl:left-0 rtl:right-auto" > <div className="group flex shrink-0 items-center justify-between overflow-hidden rounded-t-[calc(0.5rem-1px)] bg-banner-main text-banner-text"> <div className="flex h-full grow items-center justify-between gap-1 p-0 py-3"> <div className="flex h-5 px-4 max-w-36 overflow-hidden"> <img className="max-h-full max-w-full object-contain" src={window.extSharedData.partnerLogo} alt={window.extSharedData.partnerName} /> </div> </div> <button type="button" className="relative z-10 flex h-full items-center rounded-none border-0 bg-banner-main py-3 pe-4 ps-2 text-banner-text outline-hidden ring-design-main focus:shadow-none focus:outline-hidden focus-visible:outline-design-main" onClick={minimize} > <Icon className="pointer-events-none fill-current leading-none" icon={chevronDown} size={24} /> <span className="sr-only"> {__('Minimize window', 'extendify-local')} </span> </button> </div> {children} </motion.div> </AnimatePresence> </div>, mountNode, ); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
DragResizeLayout.jsx
4.71 KB
lrw-r--r--
2026-03-19 23:35:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MobileLayout.jsx
2.55 KB
lrw-r--r--
2026-03-19 23:35:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SidebarLayout.jsx
7.25 KB
lrw-r--r--
2026-04-27 23:36:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).