£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyʦ•ꎅȮFÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~芩ÊÇí`ÔÑ©ú뙵'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ӽ㞪éUWŸÈË%DÒÕ¬ï‘]/Åcx ‰ï2ß]ä6G[]S£Ôϯrs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! import { LabelControl } from './label'; import { useState, useRef, useEffect } from '@wordpress/element'; import { Popover } from '@wordpress/components'; export const ModalControl = (props) => { const { prop, children, label } = props; const { width } = prop; const [isModalVisible, setIsModalVisible] = useState(false); const modalRef = useRef(null); const modalIconRef = useRef(null); useEffect(() => { const handleDocumentClick = (e) => { // Access Modal Handler if ( modalRef.current && !modalRef.current.contains(e.target) && modalIconRef.current && !modalIconRef.current.contains(e.target) ) { setIsModalVisible(false); } }; document.addEventListener('click', handleDocumentClick); return () => { document.removeEventListener('click', handleDocumentClick); }; }, []); var style = pagelayer_empty(width) ? {} : {width: width}; return (