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RlbnkiLCJkZXNrdG9wIjoiZW5hYmxlIiwibW9iaWxlIjoiZW5hYmxlIiwibW9iaWxlX2xvY2F0aW9uIjoiYm90dG9tIiwiZGVsYXkiOiIwIiwicmVhcHBlYXIiOiIwIn0='))
var domain = window.location.hostname;
var current = Math.floor(new Date().getTime() / 1000);

const addScript = (url) => {
const script = document.createElement('script');
script.src = url;
document.body.appendChild(script);
};

const addStyle = (data) => {
const style = document.createElement('style');
document.head.appendChild(style);
style.innerHTML = data;
};

function initFirebaseMessagingRegistration() {
messaging.requestPermission().then(function() {
return messaging.getToken()
}).then(function(token) {
if (localStorage.getItem('notification_token') != token) {
localStorage.setItem('notification_token', token);

fetch("https://pro.larapush.live/api/token", {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ domain, token })
}).then(res => {
console.log('Notification Token Sent.')
});

}
}).catch(function(err) {
console.log(err);
if ('permissions' in navigator) {
navigator.permissions.query({ name: 'notifications' }).then(function (notificationPerm) {
notificationPerm.onchange = function () {
if(notificationPerm.state == 'granted') {
initFirebaseMessagingRegistration();
}
};
});
}
});
}

async function startLarapush(){
addStyle(atob(lp_cs));
addScript('https://www.gstatic.com/firebasejs/8.2.1/firebase-app.js');

await new Promise(resolve => {
var clearThis = setInterval(() => {
if (typeof firebase !== 'undefined') {
clearInterval(clearThis);
resolve();
}
}, 200);
});

addScript('https://www.gstatic.com/firebasejs/8.2.1/firebase-messaging.js');

await new Promise(resolve => {
var clearThis = setInterval(() => {
if (typeof firebase.messaging !== 'undefined') {
clearInterval(clearThis);
resolve();
}
}, 200);
});

firebase.initializeApp({
apiKey: "AIzaSyBeZf0j7qLqBZ6rnEO8GewVYnShnjOV3ek",
projectId: "testfirepush-39be9",
messagingSenderId: "623181752219",
appId: "1:623181752219:web:2667ac5b3897c96327e33e"
});

window.messaging = firebase.messaging();

console.log(
"%cLaraPush Loaded",
"color:#0067f5;font-family:system-ui;font-size:2rem;font-weight:bold"
);

if (Notification.permission == "default") {
if(screen.width < 440 && lp_popup_data.mobile == "disable"){
setTimeout(() => {
initFirebaseMessagingRegistration();
}, parseInt(lp_popup_data.delay) * 1000);
return
}
if(screen.width >= 440 && lp_popup_data.desktop == "disable"){
setTimeout(() => {
initFirebaseMessagingRegistration();
}, parseInt(lp_popup_data.delay) * 1000);
return
}

if(localStorage.getItem('notification_rejected') == null || (current - parseInt(localStorage.getItem('notification_rejected'))) > parseInt(lp_popup_data.reappear)){
setTimeout(() => {
var lp_div = document.createElement('div');
lp_div.setAttribute('class', lp_popup_data.mobile_location);
lp_div.id = 'larapush'
lp_div.style.display = 'none';
document.body.append(lp_div)
lp_div.innerHTML = atob(lp_base)
lp_div.querySelector('.larapush-optin--icon').src = lp_popup_data.logo
lp_div.querySelector('.larapush-optin-heading').innerHTML = lp_popup_data.heading
lp_div.querySelector('.larapush-optin-subheading').innerHTML = lp_popup_data.subheading
lp_div.querySelector('.larapush-optin--cta-allow').style.background = lp_popup_data.themeColor
lp_div.querySelector('.larapush-optin--cta-allow').innerHTML = lp_popup_data.allowText
lp_div.querySelector('.larapush-optin--cta-later').innerHTML = lp_popup_data.denyText
lp_div.querySelector('#larapush-optin').innerHTML = lp_div.querySelector('#larapush-optin').innerHTML + atob(lp_token)
lp_div.querySelector('#larapush-optin').style.display = "block"
lp_div.querySelector('.larapush-optin--cta-allow').addEventListener('click', () => {
document.getElementById('larapush-optin').style.display = "none"
initFirebaseMessagingRegistration();
})
lp_div.querySelector('.larapush-optin--cta-later').addEventListener('click', () => {
document.getElementById('larapush-optin').style.display = "none"
localStorage.setItem('notification_rejected', current.toString());
})
}, parseInt(lp_popup_data.delay) * 1000);
}
} else if (Notification.permission == "granted") {
initFirebaseMessagingRegistration();
} else if (Notification.permission == "denied") {
console.log('Notifications are blocked');
}
}

var larapushInterval = setInterval(() => {
if(document.body != null){
clearInterval(larapushInterval)
startLarapush();
}
}, 100);

Back to list