if (typeof popButtonClearly === "undefined") {
document.write(`<link href="https://dunwoodynature.app.neoncrm.com/nx/portal-static/component/fontawesome-pro/css/all.min.css" rel="stylesheet">`);
}
if (typeof popButtonClearly === "undefined") {
document.write(`<style type="text/css">.neon-pop-all-mask{
    width: 100%;
    height: 100%;
    position: fixed;
    top:0;
    left: 0;
    z-index: 99999;
    display: none;
    background-color: rgba(0, 0, 0, 0.6);}
.neon-pop-all-mask .neon-pop-dialog {
    width: 426px;
    max-height: calc(100% - 40px);
    margin:auto;
    justify-content: center;
    align-items: center;
    display:flex;
    overflow-y: auto;
    overflow-x: hidden;
}
.neon-pop-all-mask .neon-show-content {
    width: 438px;
    margin:auto;
    padding: 2px 0 2px 0;
    justify-content: center;
    align-items: center;
    display:flex;
    background: transparent;
}
.neon-show-content .title-close{
    position: absolute;
    text-align: center;
    right: 10px;
    top: 5px;
    cursor: pointer;
}
.neon-pop-dialog .neon-show-content .neon-show-iframe{
    position: relative;
    justify-content: center;
    align-items: center;}
.neon-show-pop {
    animation: neon-show-pop 0s ease-in-out 0s 1 alternate forwards;
}
.icon-close{
   font-style: normal;
   font-weight: 400!important;
   font-size: 18px;
   line-height: 18px;
   font-family: "Font Awesome 5 Pro" !important;
}
@keyframes neon-show-pop {
    0%{opacity: 0;}
    100%{opacity: 1;}
}
::-webkit-scrollbar{
        width: 4px;
    }
::-webkit-scrollbar-track{
        box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
        border-radius: 10px;
    }
::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15);
    }
.pop-neon-loading {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10;
            background-color: rgb(255, 255, 255);
            min-width: 420;
        }

        .neon-spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #3498db;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: neon-spin 2s linear infinite;
        }

        @keyframes neon-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .neon-iframe-container iframe {
            display: none;
        }</style>
`);

}
document.write(`<button id="neon-pop-button4c44c75456414fed8044001901b2a483" onclick="openPopModal4c44c75456414fed8044001901b2a483()" style="min-height: 44px;font-family:Montserrat,sans-serif;font-weight: 500;font-size: 18px;font-style: normal;width: 100%;min-width:140px;max-width:260px;border-radius: 4px;background-color:rgba(223, 145, 50, 1);border: none;color:#222222;"><i class="" style="cursor: pointer; margin-right: 8px;"></i> Donate Now</button>`);
               function openPopModal4c44c75456414fed8044001901b2a483 () {
                    const tokenKey = 'neon-frt-dunwoodynature-embed-token';
                    const neonEmbedToken = localStorage.getItem(tokenKey) || '';
                    document.getElementById("pop-close").style.color = 'rgba(41, 68, 59, 1)';
                    let neonPopModalContainer = document.getElementById("neon-iframe-container");
                    let loadingDiv = document.createElement('div');
                    loadingDiv.className = 'pop-neon-loading';
                    let spinnerDiv = document.createElement('div');
                    spinnerDiv.className = 'neon-spinner';
                    loadingDiv.appendChild(spinnerDiv);
                    let iframe = document.createElement('iframe');
                    iframe.id = 'neon-pop-modal'
                    const iframeUrl = new URL('https://dunwoodynature.app.neoncrm.com/forms/donate?hideTheme=1&from=iframe');
                    iframeUrl.searchParams.set('embedToken', neonEmbedToken);
                    iframe.src = iframeUrl.toString();
                    iframe.width = '420px'
                    const clientHeight = window.innerHeight
                    iframe.height = clientHeight * 0.8 + 'px'
                    iframe.frameBorder = '0'
                    iframe.scrolling = 'auto'
                    iframe.onload = function postDomainUrl() {
                        loadingDiv.style.display = 'none';
                        iframe.style.display = 'block';                        let url = 'https://' + location.hostname
                        let href = location.href
                        this.contentWindow.postMessage({domainUrl: url,sharingType: 'popupBtn',embedToken: neonEmbedToken}, 'https://dunwoodynature.app.neoncrm.com')
                        this.contentWindow.postMessage({domainUrl: href,sharingType: 'popupBtn',embedToken: neonEmbedToken}, 'https://dunwoodynature.app.neoncrm.com')
                    }
                    window.addEventListener('message',forLogin)
                    neonPopModalContainer.appendChild(loadingDiv);
                    neonPopModalContainer.appendChild(iframe);
                    document.getElementById("neon-pop-all-mask").style.display = "flex";
                }
                function closePopModal () {
                    document.getElementById("neon-pop-all-mask").style.display = "none";
                    let iframe = document.getElementById('neon-pop-modal');
                    iframe.remove();
                }
                
                function forLogin(){
                    if (event.origin === 'https://dunwoodynature.app.neoncrm.com' && event.data.type === 'triggerLoginIframe') {
                         window.top.open(event.data.loginUrl,'_blank')
                      }
                    if (event.origin === 'https://dunwoodynature.app.neoncrm.com' && event.data.type === 'neonFntEmbedToken') {
                        const iframe = document.querySelector('#neon-pop-modal');
                        localStorage.setItem(event.data.neonFntEmbedTokenKey,event.data.neonFntEmbedToken);
                        iframe.contentWindow.postMessage({domainUrl: location.href,sharingType: 'popupBtn',embedToken: event.data.neonFntEmbedToken},'https://dunwoodynature.app.neoncrm.com');
                        const iframeUrl = new URL(iframe.src);
                        iframeUrl.searchParams.set('embedToken', event.data.neonFntEmbedToken);
                        const loadingDiv = document.querySelector('.pop-neon-loading');
                        loadingDiv.style.display = 'flex';
                        iframe.src = iframeUrl.toString();
                      }
              }
if (typeof popButtonClearly === "undefined") {
                window.addEventListener('message', function(e) {
                    try {
                        if (e.data.target === 'closeModal') {
                            if (e.data.data) {
                                setTimeout(function() {
                                    closePopModal();
                                },5000)
                            }            
                        } else if(e.data.target === 'closeLoginModal'){
                            if (!e.data.data) {
                                 document.getElementById('pop-close').style.display = 'none';
                            } else {                                 document.getElementById('pop-close').style.display = '';
                            }
                         }
                    } catch(ignore) {
                    }
                });
}
               function initPopModal() {
                   let node1 = document.createElement("div")
                   node1.id = 'pop-close'
                   node1.setAttribute("class","title-close")
                   node1.addEventListener("click",function closePopModal(){
                       document.getElementById("neon-pop-all-mask").style.display = "none";
                       let iframe = document.getElementById('neon-pop-modal');
                       iframe.remove();
                       window.removeEventListener('message',forLogin)
                   });
                   let icon = document.createElement("i")
                   icon.setAttribute("class","fal fa-times icon-close")
                   node1.appendChild(icon)
                   let node2 = document.createElement("div")
                   node2.id = 'neon-iframe-container'
                   let node3 = document.createElement("div")
                   node3.setAttribute("class","neon-show-iframe")
                   node3.appendChild(node1)
                   node3.appendChild(node2)
                   let node4 = document.createElement("div")
                   node4.setAttribute("class","neon-show-content")
                   node4.appendChild(node3)
                   let node5 = document.createElement("div")
                   node5.id = "neon-pop-dialog"
                   node5.setAttribute("class","neon-pop-dialog")
                   node5.appendChild(node4)
                   let node6 = document.createElement("div")
                   node6.id = "neon-pop-all-mask"
                   node6.setAttribute("class","neon-pop-all-mask neon-show-pop")
                   node6.appendChild(node5)
                   document.body.appendChild(node6)
               }

               function destroyPopModal() {
                   try {
                         document.getElementById("neon-pop-all-mask").remove();
                   } catch(ignore)  {
                   }
               }
               destroyPopModal();
               initPopModal();
try {
        popButtonClearly = true;
    } catch(ignore) {
}
