# Security Policy
## Reporting Security Bugs
Please report security bugs found in the LiteSpeed Cache plugin's source code through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/litespeed-cache). The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
/*! ./QueryClientProvider.js */
/*! ./QueryErrorResetBoundary.js */
/*! ./errorBoundaryUtils.js */
/*! ./focusManager.js */
/*! ./infiniteQueryBehavior.js */
/*! ./isRestoring.js */
/*! ./mutation.js */
/*! ./mutationCache.js */
/*! ./notifyManager.js */
/*! ./onlineManager.js */
/*! ./query.js */
/*! ./queryCache.js */
/*! ./queryObserver.js */
/*! ./removable.js */
/*! ./retryer.js */
/*! ./subscribable.js */
/*! ./suspense.js */
/*! ./useBaseQuery.js */
/*! ./utils.js */
/*! @tanstack/query-core */
/*! @tanstack/react-query */
/*! react */
/*!**************************!*\
!*** external ["React"] ***!
\**************************/
/*!******************************************************!*\
!*** ./node_modules/@elementor/query/dist/index.mjs ***!
\******************************************************/
/*!*****************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/query.js ***!
\*****************************************************************/
/*!*****************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/utils.js ***!
\*****************************************************************/
/*!******************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/utils.js ***!
\******************************************************************/
/*!*******************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/retryer.js ***!
\*******************************************************************/
/*!********************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/mutation.js ***!
\********************************************************************/
/*!*********************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/removable.js ***!
\*********************************************************************/
/*!*********************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/suspense.js ***!
\*********************************************************************/
/*!*********************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/useQuery.js ***!
\*********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/queryCache.js ***!
\**********************************************************************/
/*!***********************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/queryClient.js ***!
\***********************************************************************/
/*!************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/focusManager.js ***!
\************************************************************************/
/*!************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/subscribable.js ***!
\************************************************************************/
/*!************************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/isRestoring.js ***!
\************************************************************************/
/*!************************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/useMutation.js ***!
\************************************************************************/
/*!*************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/mutationCache.js ***!
\*************************************************************************/
/*!*************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/notifyManager.js ***!
\*************************************************************************/
/*!*************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/onlineManager.js ***!
\*************************************************************************/
/*!*************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/queryObserver.js ***!
\*************************************************************************/
/*!*************************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/useBaseQuery.js ***!
\*************************************************************************/
/*!****************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/mutationObserver.js ***!
\****************************************************************************/
/*!*****************************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js ***!
\*****************************************************************************/
/*!*******************************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js ***!
\*******************************************************************************/
/*!********************************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js ***!
\********************************************************************************/
/*!*********************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js ***!
\*********************************************************************************/
/*!*********************************************************************************!*\
!*** ./node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js ***!
\*********************************************************************************/
/*!************************************************************************************!*\
!*** ./node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js ***!
\************************************************************************************/
import React from 'react'
import Modal from 'react-modal'
import ModalEnvatoIcon from './ModalEnvatoIcon'
import styles from './MagicModalWrapper.module.scss'
const customStyles = {
overlay: {
backgroundColor: 'rgba(32, 32, 32, 0.81)',
zIndex: 199999,
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
},
content: {
background: '#f1f1f1',
border: '0',
padding: '0',
right: 'auto',
bottom: 'auto',
top: 'auto',
left: 'auto',
borderRadius: '4px'
}
}
const MagicModalWrapper = ({ photoId, photoTitle, onCloseCallback = null, children }) => {
const [modalIsOpen, setModalIsOpen] = React.useState(true)
const closeModal = () => {
setModalIsOpen(false)
if (onCloseCallback) {
onCloseCallback()
}
}
// Make sure to bind modal to your appElement (http://reactcommunity.org/react-modal/accessibility/)
// We get window.templateKitImport.modalAppHolder from our initial render in main.jsx:
if (typeof window !== 'undefined' && window.templateKitImport && window.templateKitImport.modalAppHolder) {
Modal.setAppElement(window.templateKitImport.modalAppHolder)
}
return (