';
html += '';
if(!nonAdmin) {
html += '';
html += '';
}
$(form).append(html);
makeModal(form, "80%");
var invoiceLines = invoiceDetails.invoiceLines;
Object.entries(invoiceLines).map((item) => {
addStockItem(item[1]);
});
$("#printPDF").on("click", function(){
openPrintInvoice(form, invoiceId);
});
$("#emailInvoice").on("click", async function () {
var $button = $(this); // Reference to the button
var originalHtml = $button.html(); // Store the original HTML
// Replace button with the loading indicator
$button.html(' Processing...')
.prop("disabled", true).css({"background-color": "#fff", "border-width": "0px", "color": "#000"});
try {
var emailResponse = await emailInvoice(invoiceId, invoiceDetails.userEmail, invoiceDetails.userName, toTitleCase(typeName));
console.log(emailResponse);
if (
emailResponse.success &&
emailResponse.lambdaResponse?.serverSideRoute?.status === 200 &&
emailResponse.lambdaResponse?.serverSideRoute?.data?.accepted?.length > 0
) {
alert("Email Sent Successfully!");
}
} catch (error) {
console.error(error);
}
// Restore the original button HTML after the alert
$button.html(originalHtml).prop("disabled", false).css({"background-color": "#6699ff", "border-width": "1px", "color": "#fff"});
});
$("#addPayment").on("click", function(){
gkxwvsqf_2025024141534_727.getPayment(invoiceDetails._id);
});
}
async function getInvoices(local, type){
if (!type || type == "all") {
type = "invoice";
}
$("#lines").empty();
var clientInvoices = [];
var clientPayments = [];
if (!nonAdmin) {
if (window["gkxwvsqf_2025023175011_639"]){
userId = gkxwvsqf_2025023175011_639.getUserFound().key;
} else {
userId = woo.sessionData.user_id;
}
}
var client = userId;
try {
if (local) {
throw("Defaulting to local dbs");
}
var data;
if (type == "draft"){
data = await getDraftsByClient(client, null, []);
clientInvoices = data;
draftPouchDB.bulkDocs(clientInvoices);
} else if (type == "quote") {
data = await getQuotesByClient(client, null, []);
clientInvoices = data;
quotePouchDB.bulkDocs(clientInvoices);
} else {
data = await getInvoicesAndPayments(client);
clientInvoices = data[0];
clientPayments = data[1];
invoiceDB.bulkDocs(clientInvoices);
paymentPouchDB.bulkDocs(clientPayments);
}
} catch(error) {
if (!local) {
console.error("Error fetching data from server:", error);
}
clientInvoices = [];
clientPayments = [];
if (type == "draft"){
await woo.getDocs(draftPouchDB).then((invoiceResults) => {
if (invoiceResults) {
invoiceResults["rows"].forEach((entry) => {
if (entry.doc._id !== "_design/invoices_ddoc" && entry.doc.clientId == client) {
clientInvoices.push(entry.doc);
}
});
}
}).catch((err) => {
console.error("Error fetching data from local dbs:", err);
});
} else if (type == "quote") {
await woo.getDocs(quotePouchDB).then((invoiceResults) => {
if (invoiceResults) {
invoiceResults["rows"].forEach((entry) => {
if (entry.doc._id !== "_design/invoices_ddoc" && entry.doc.clientId == client) {
clientInvoices.push(entry.doc);
}
});
}
}).catch((err) => {
console.error("Error fetching data from local dbs:", err);
});
} else {
await Promise.all([woo.getDocs(invoiceDB), woo.getDocs(paymentPouchDB)]).then(([invoiceResults, paymentResults]) => {
if (invoiceResults) {
invoiceResults["rows"].forEach((entry) => {
if (entry.doc._id !== "_design/invoices_ddoc" && entry.doc.clientId == client) {
clientInvoices.push(entry.doc);
}
});
}
if (paymentResults) {
paymentResults["rows"].forEach((entry) => {
if (entry.doc._id !== "_design/payments_ddoc" && entry.doc.clientId == client) {
clientPayments.push(entry.doc);
}
});
}
}).catch((err) => {
console.error("Error fetching data from local dbs:", err);
});
}
}
// Combine all invoices and payments into one array
let allData = [...clientInvoices, ...clientPayments];
// Sort all data from oldest to newest
allData.sort((a, b) => {
let aDate = convertToDate(getSortDate(a));
let bDate = convertToDate(getSortDate(b));
return aDate - bDate; // oldest to newest
});
// Generate HTML with this sorted and grouped data, calculating balance from oldest to newest
var resultHTML = generateHTML(allData); // Use allData for sequential balance calculation
$("#lines").html(resultHTML);
if (woo.sessionData.roles.includes("woo$invoice") || woo.sessionData.roles.includes(selectedOrg + "$admin") || woo.sessionData.roles.includes(appId + "$admin")) {
$(".lineParent").on("click", function(){
if ($(this).attr("itemType") == "invoice" || $(this).attr("itemType") == "quote") {
//console.log($(this).attr("itemType"), type, $(this).attr("itemStatus"));
if (($(this).attr("itemType") == "invoice" && type != "quote") && ($(this).attr("itemStatus") == "completed" || $(this).attr("itemStatus") == "void")) {
viewInvoice($(this).attr("itemId"), type, false);
} else {
gkxwvsqf_2025024141534_727.openInvoice($(this).attr("itemId"), type);
}
} else {
gkxwvsqf_2025024141534_727.openPayment($(this).attr("paymentInvoiceId"), $(this).attr("itemId"))
}
});
} else {
$(".lineParent").on("click", function(){
if ($(this).attr("itemType") == "invoice" || $(this).attr("itemType") == "quote") {
console.log("open invoice: " + $(this).attr("itemId"));
viewInvoice($(this).attr("itemId"), type, false);
} else {
console.log("open payment: " + $(this).attr("itemId"));
}
});
}
if (woo.sessionData.roles.includes("woo$invoice") ||
woo.sessionData.roles.includes(selectedOrg + "$admin") ||
woo.sessionData.roles.includes(appId + "$admin")) {
$(".lineDelete").on("click", function(event){
event.stopPropagation();
var itemType = $(this).closest(".lineParent").attr("itemType");
var itemId = $(this).closest(".lineParent").attr("itemId");
console.log(itemType, type);
var deleteType = (itemType === "invoice" ? "invoice" : "payment");
if (type == "draft" || type == "quote"){
deleteType = type;
}
if (confirm("Are you sure you want to void this " + deleteType + "?")) {
if (itemType == "invoice") {
gkxwvsqf_2025024141534_727.voidInvoice(itemId, deleteType);
} else {
gkxwvsqf_2025024141534_727.voidPayment(itemId);
}
}
});
$(".historySpan").on("click", function(event){
event.stopPropagation();
var historyId = "history_" + $(this).closest(".lineParent").attr("itemId");
if ($("#" + historyId).css("display") == "block"){
$("#" + historyId).css("display", "none");
$("#mobileContainer").css("height", "fit-content");
} else {
$("#" + historyId).css("display", "block");
}
var element = document.getElementById(historyId);
var ancestor = document.getElementById('mobileContainer');
adjustAncestorHeightByWindow(element, ancestor);
});
$(".histListItem").on("click", function(event){
event.stopPropagation();
var historyId = $(this).attr("id");
viewInvoice(historyId, type, true);
});
}
}
function adjustAncestorHeightByWindow(element, ancestor) {
// Check if the ancestor is indeed an ancestor of the element
if (!ancestor.contains(element)) {
console.error("The specified ancestor is not an ancestor of the element.");
return;
}
// Get bounding client rect of the element
const rect = element.getBoundingClientRect();
// Bottom position of the element relative to the viewport
const bottomRelativeToWindow = rect.bottom;
// Get bounding client rect of the ancestor
const ancestorRect = ancestor.getBoundingClientRect();
// Top position of the ancestor relative to the viewport
const ancestorTopRelativeToWindow = ancestorRect.top;
// Calculate how much height the ancestor needs to cover the element
const additionalHeightNeeded = bottomRelativeToWindow - ancestorTopRelativeToWindow;
// Only adjust if the element extends beyond the ancestor's current height
if (additionalHeightNeeded > ancestorRect.height) {
// Set the new height based on the element's position in the window
ancestor.style.height = additionalHeightNeeded + "px";
}
}
//$("#lines").html(resultHTML);
$("#showDrafts").on("click", function(){
getInvoices(false, "draft");
});
$("#showQuotes").on("click", function(){
getInvoices(false, "quote");
});
$("#showSatement").on("click", function(){
getInvoices(false, "all");
});
gkxwvsqf_2025518171520__88_359_Global.refreshStatement = (local, type) => {
if (!local) {
local = false;
}
getInvoices(local, type);
}
gkxwvsqf_2025518171520__88_359_Global.clearStatement = () => {
userId = "";
$("#lines").empty();
}
function addEventListeners() {
orgSelectButton.addEventListener('click', selectOrganisation, false);
}
addEventListeners();
gkxwvsqf_2025518171520__88_359_Global.unload = () => {
//Unload callbacks here
orgSelectButton.removeEventListener('click', selectOrganisation);
$("#printPDF").off("click");
$("#emailInvoice").off("click");
$("#addPayment").off("click");
$(".lineParent").off("click");
$(".lineDelete").off("click");
$(".historySpan").off("click");
$(".histListItem").off("click");
$("#showDrafts").off("click");
$("#showQuotes").off("click");
$("#showSatement").off("click");
$("#dateRange").off("click");
$("#dateRangeDiv").off("click");
$(document).off("click");
$("#dateRange-searchCancel").off("click");
console.log("Unloaded gkxwvsqf_2025518171520__88_359");
}
return gkxwvsqf_2025518171520__88_359_Global;
})();var gkxwvsqf_20251020113220_707 = (function() {
var gkxwvsqf_20251020113220_707_Global = {};
// Outer frame wrapper reference - guaranteed to exist at gadget initialization
var gadgetWrapper = document.getElementById('gkxwvsqf_20251020113220_707');
var loggedIn = false;
var loggingInOrOut = false;
var openModal = false;
var profileMenuOpen = false;
var unloadPromise;
// Unified Event Delegation Handler for the entire gadget context
function handleGadgetClicks(e) {
// 1. Dynamic Menu Button Routing
var menuBtn = e.target.closest(".menuClick_gkxwvsqf_20251020113220_707");
if (menuBtn) {
e.preventDefault();
if (menuBtn.getAttribute("linked") === "true") {
if (menuBtn.getAttribute("linkID") !== "") {
changePage(menuBtn.getAttribute("linkID"));
} else {
window.location = menuBtn.getAttribute("linkURL");
}
} else {
changePage(menuBtn.getAttribute("showPage"));
}
return;
}
// 2. What Is Click Router
if (e.target.closest(".woo_whatIsWooID_gkxwvsqf_20251020113220_707")) {
e.preventDefault();
whatIsClick_gkxwvsqf_20251020113220_707();
return;
}
// 3. Forgot Password Router
if (e.target.closest(".forgot_pass_gkxwvsqf_20251020113220_707")) {
e.preventDefault();
console.log("got 1");
forgotPass_gkxwvsqf_20251020113220_707();
return;
}
// 4. Mobile and Desktop Authentication Layout Trigger Toggles
if (e.target.closest("#mob_icon_gkxwvsqf_20251020113220_707") || e.target.closest(".woo_login_button") || e.target.closest("#login-text_gkxwvsqf_20251020113220_707")) {
e.preventDefault();
loginOnClick_gkxwvsqf_20251020113220_707(e);
return;
}
}
// Double declaration block cleaned into a safe lifecycle routine
woo.events.on("Page Added", recreate);
woo.events.on("Page Deleted", recreate);
woo.events.on("Page Hidden", recreate);
woo.events.on("Page Unhidden", recreate);
woo.events.on("Page Linked", recreate);
woo.events.on("Page Unlinked", recreate);
woo.events.on("Page Order Updated", recreate);
woo.events.on("Page Parent Updated", recreate);
woo.events.on("Page pageName Updated", recreate);
function recreate(){
unloadPromise = createFullULMenu().then(() => {
console.log("boy oh boy a lincoln toy!");
}).catch((error) => {
console.log("Menu not created! " + error);
});
}
checkBuild();
gkxwvsqf_20251020113220_707_Global.createMenu = () => {
createFullULMenu().catch((error) => {
console.error(error);
});
}
function checkBuild(){
return new Promise((resolve, reject) => {
woo.getGadgetProperty("gkxwvsqf_20251020113220_707", woo.instanceDB, "toolbarBuild").then((propValue) => {
if (!propValue){
createFullULMenu();
}
resolve("done");
}).catch((error) => {
reject(error);
});
}).catch((error) => {
console.error(error);
});
}
function getAppData(){
return new Promise((resolve) => {
var url = woo.getRemoteCouch() + "/indiepulse$public/indiepulse-invoice-settings";
var data = {};
resolve(woo.queryCouch(url, "GET", data));
}).catch((error) => {
return null;
});
}
getAppData().then((data) => {
if (data && gadgetWrapper){
$("#gkxwvsqf_20251020113220_707 .website_name").html(data.brandName);
$("#gkxwvsqf_20251020113220_707 #fullLogoImage").attr("src", "/resources/indiepulse/uploads/" + data.logoImage);
}
});
function forgotPass_gkxwvsqf_20251020113220_707(){
console.log("got here");
woo.updateCurrentPage("forgot-password");
}
function whatIsClick_gkxwvsqf_20251020113220_707(){
var note = "
What is the Woo ID?
With a growing awareness of on-line privacy and security issues, further tightening of the spam laws worldwide and the need for businesses to have more robust collection of data systems in place, Woo has risen to the challenge by creating a universal ID for users on the platform - called a Woo ID.
The Woo ID provides you with the security that Woo is dedicated, and bound by law, to ensure your information is kept private and that all anti-spam laws are adhered to. Every user added to a Woo website gets to verify their email address. This ensures issues with data entry and out-of-date email accounts are spotted early.
The Woo ID universal ID is the market leader: creating a safe and spam free environment for you.
")
.appendTo("body").slideDown('normal');
$(message).click(function(){
$(this).slideUp('normal', function(){
$(this).remove();
});
});
}
function closeButtonPressed_gkxwvsqf_20251020113220_707(){
$(".woo-dialogBox").hide();
loggingInOrOut = false;
openModal = false;
}
function makeModal_gkxwvsqf_20251020113220_707(content){
openModal = true;
var dialogBox = document.createElement('div');
dialogBox.className = "woo-dialogBox";
document.getElementsByClassName("wooMainContent")[0].appendChild(dialogBox);
var closeBox = document.createElement('button');
closeBox.className = 'woo-dialogClose';
closeBox.classList.add('material-symbols-outlined');
closeBox.addEventListener('click', closeButtonPressed_gkxwvsqf_20251020113220_707);
var dialogContent = document.createElement('div');
dialogContent.className = "woo-dialogContent";
dialogContent.appendChild(closeBox);
dialogContent.appendChild(content);
dialogBox.appendChild(dialogContent);
}
function login_gkxwvsqf_20251020113220_707(usernameElem, passwordElem){
woo.execLogin(usernameElem.value, passwordElem.value).then(() => {
$(".woo-dialogBox").hide();
openModal = false;
}).catch((error) => {
loggingInOrOut = false;
$(".wooMainContent #woo_loginErrorMessage").css("display", "block");
});
}
function register_gkxwvsqf_20251020113220_707(){
woo.updateCurrentPage("register");
}
createFullULMenu();
var showPage ='profile-pages';
var pageCount = 0;
function createFullULMenu(){
return new Promise((resolve, reject) => {
var profileMenu = document.querySelector("#gkxwvsqf_20251020113220_707 #profileMenu");
if (!profileMenu) {
resolve("Element not ready yet");
return;
}
$(profileMenu).empty();
var allHtml = {};
var pages = {};
var rootPage = "";
var parentPageName = "Home";
woo.getFullPageStructure().then((response) => {
if ("profile-pages" == "home"){
rootPage = Object.keys(response)[0];
pages = response[rootPage].children;
parentPageName = response[rootPage]["props"].name;
} else {
rootPage = Object.keys(response)[0];
pages = response[rootPage].children["profile-pages"].children;
parentPageName = response[rootPage].children["profile-pages"]["props"].name;
}
var promises = Object.entries(pages).map((node) => {
if (node[1]["props"].hidden == false){
return createPageNode(node, 1).then((gadgetHtml) => {
allHtml[node[0]] = gadgetHtml;
});
}
});
return Promise.all(promises);
}).then(() => {
if (Object.keys(allHtml).length != 0) {
Object.entries(pages).forEach((entry) => {
if (allHtml[entry[0]]){
profileMenu.appendChild(allHtml[entry[0]]);
}
});
}
}).then(() => {
var pageLI = document.createElement('button');
pageLI.className = "woo-contentbtn";
pageLI.classList.add("logoutClick");
pageLI.id = "logout";
var iconSpan = document.createElement('span');
iconSpan.className = "pm-material-symbols-outlined";
iconSpan.append("logout");
pageLI.appendChild(iconSpan);
var nameSpan = document.createElement('span');
nameSpan.innerText = "Logout";
pageLI.appendChild(nameSpan);
pageLI.addEventListener('click', executeLogout, false);
profileMenu.appendChild(pageLI);
var str = profileMenu.innerHTML;
return woo.updateGadgetProperty("gkxwvsqf_20251020113220_707", woo.instanceDB, "toolbarBuild", str, woo.getCurrentPage());
}).then(() => {
resolve("done");
}).catch((error) => {
console.error(error);
reject(error);
});
});
}
async function createPageNode(page, level) {
var pageLI = document.createElement('button');
pageLI.className = "woo-contentbtn";
pageLI.classList.add("menuClick_gkxwvsqf_20251020113220_707");
pageLI.id = page[0];
var iconSpan = document.createElement('span');
iconSpan.className = "pm-material-symbols-outlined";
var pageInfo = await woo.getDoc(woo.appDB, page[0]);
var icon = pageInfo.pageIcon;
if (icon) {
iconSpan.append(icon);
} else {
iconSpan.append("info");
}
pageLI.appendChild(iconSpan);
var nameSpan = document.createElement('span');
pageCount++;
nameSpan.innerText = page[1]["props"].name;
if (page[1]["props"].linked == "true" || page[1]["props"].linked == true) {
pageLI.setAttribute("linked", page[1]["props"].linked);
pageLI.setAttribute("linkID", page[1]["props"].linkID);
pageLI.setAttribute("linkURL", page[1]["props"].linkURL);
} else {
pageLI.setAttribute("showPage", page[0]);
}
pageLI.setAttribute("menuid", page[0]);
pageLI.appendChild(nameSpan);
return pageLI;
}
function changePage(showPage) {
Promise.all([woo.updateCurrentPage(showPage)]).then(() => {
document.body.scrollTop = document.documentElement.scrollTop = 0;
});
}
function loginOnClick_gkxwvsqf_20251020113220_707(e){
if (loggingInOrOut == false) {
if (!loggedIn){
loggingInOrOut = true;
if ($(".woo-dialogBox").length){
$(".woo-dialogBox").show();
} else {
var signinModal = document.querySelector("#signinModal_gkxwvsqf_20251020113220_707");
var usernameInput = document.querySelector("#wooUsername_gkxwvsqf_20251020113220_707");
var passwordInput = document.querySelector("#wooPassword_gkxwvsqf_20251020113220_707");
// EXISTING BINDS
document.querySelector(".woo_logIn_gkxwvsqf_20251020113220_707").addEventListener('click', login_gkxwvsqf_20251020113220_707.bind(this, usernameInput, passwordInput));
document.querySelector(".woo_signUp_gkxwvsqf_20251020113220_707").addEventListener('click', register_gkxwvsqf_20251020113220_707.bind(this));
// ADD THIS LINE: Explicitly bind the forgot password click inside the modal context
document.querySelector(".forgot_pass_gkxwvsqf_20251020113220_707").addEventListener('click', function(e) {
e.preventDefault();
forgotPass_gkxwvsqf_20251020113220_707();
});
makeModal_gkxwvsqf_20251020113220_707(signinModal);
}
} else {
var menuEl = document.querySelector("#gkxwvsqf_20251020113220_707 #profileMenu");
var desktopBtn = document.querySelector("#gkxwvsqf_20251020113220_707 .woo_login_button");
var mobileBtn = document.getElementById("mob_icon_gkxwvsqf_20251020113220_707");
var activeTrigger = null;
if (mobileBtn && window.getComputedStyle(mobileBtn).display !== "none") {
activeTrigger = mobileBtn;
} else if (desktopBtn && window.getComputedStyle(desktopBtn).display !== "none") {
activeTrigger = desktopBtn;
}
if (menuEl && activeTrigger) {
var rect = activeTrigger.getBoundingClientRect();
var windowHeight = window.innerHeight || document.documentElement.clientHeight;
if ((rect.top + rect.height / 2) > (windowHeight / 2)) {
menuEl.classList.add("upwards");
} else {
menuEl.classList.remove("upwards");
}
}
$(".pm-woo-subnav-content").toggle();
profileMenuOpen = !profileMenuOpen;
}
}
}
function executeLogout(){
woo.execLogout();
}
function changeLoginState_gkxwvsqf_20251020113220_707(loginState){
var loginDom = document.getElementById('login-text_gkxwvsqf_20251020113220_707');
var loginDomMob = document.getElementById('mob_icon_gkxwvsqf_20251020113220_707');
if(!loginState){
loggedIn = false;
if (loginDom) loginDom.innerHTML = "login";
if (loginDomMob) loginDomMob.innerHTML = "lock";
}
else {
loggedIn = true;
var loginButtonDiv = document.querySelector("#gkxwvsqf_20251020113220_707 .woo_login_button");
if (loginButtonDiv) {
loginButtonDiv.classList.add("material-symbols-outlined");
loginButtonDiv.innerHTML = "";
loginButtonDiv.append("account_circle");
loginButtonDiv.style.display = "flex";
}
$('#mob_icon_gkxwvsqf_20251020113220_707').hide();
}
}
function initGadgetLifecycle() {
if (woo.sessionData != null){
changeLoginState_gkxwvsqf_20251020113220_707(true);
}
else {
changeLoginState_gkxwvsqf_20251020113220_707(false);
}
// Delegation Wire-Up: Attach single dynamic click wrapper directly to parent layout container
if (gadgetWrapper) {
gadgetWrapper.removeEventListener('click', handleGadgetClicks, false);
gadgetWrapper.addEventListener('click', handleGadgetClicks, false);
}
}
// Execute initialization cleanly
initGadgetLifecycle();
gkxwvsqf_20251020113220_707_Global.unload = () => {
if (gadgetWrapper) {
gadgetWrapper.removeEventListener('click', handleGadgetClicks, false);
}
woo.events.off("Page Added", recreate);
woo.events.off("Page Deleted", recreate);
woo.events.off("Page Hidden", recreate);
woo.events.off("Page Unhidden", recreate);
woo.events.off("Page Linked", recreate);
woo.events.off("Page Unlinked", recreate);
woo.events.off("Page Order Updated", recreate);
woo.events.off("Page Parent Updated", recreate);
woo.events.off("Page pageName Updated", recreate);
var logoutButton = document.querySelector("#gkxwvsqf_20251020113220_707 .logoutClick");
if (logoutButton) {
logoutButton.removeEventListener('click', executeLogout, false);
}
console.log("Unloaded gkxwvsqf_20251020113220_707");
};
return gkxwvsqf_20251020113220_707_Global;
})();var gkxwvsqf_202382802446_7342kp = (function() {
var self = document.getElementById('gkxwvsqf_202382802446_7342kp');
var gkxwvsqf_202382802446_7342kp_Global = {};
var unloadPromise;
gkxwvsqf_202382802446_7342kp_Global.unload = () => {
return new Promise((resolve, reject) => {
//Unload callbacks here
if (unloadPromise){
unloadPromise.then(() => {
resolve("done");
}).catch((error) => {
reject(error);
});
} else {
resolve("done");
}
woo.events.off("Page Added", recreate);
woo.events.off("Page Deleted", recreate);
woo.events.off("Page Hidden", recreate);
woo.events.off("Page Unhidden", recreate);
woo.events.off("Page Linked", recreate);
woo.events.off("Page Unlinked", recreate);
woo.events.off("Page Order Updated", recreate);
woo.events.off("Page Parent Updated", recreate);
woo.events.off("Page pageName Updated", recreate);
console.log("Unloaded gkxwvsqf_202382802446_7342kp");
});
}
woo.events.on("Page Added", recreate);
woo.events.on("Page Deleted", recreate);
woo.events.on("Page Hidden", recreate);
woo.events.on("Page Unhidden", recreate);
woo.events.on("Page Linked", recreate);
woo.events.on("Page Unlinked", recreate);
woo.events.on("Page Order Updated", recreate);
woo.events.on("Page Parent Updated", recreate);
woo.events.on("Page pageName Updated", recreate);
function recreate(){
unloadPromise = createFullULMenu().then(() => {
console.log("boy oh boy a lincoln toy!");
createFullULMenu();
}).catch((error) => {
console.log("Menu not created! " + error);
});
}
$("#mob_icon_gkxwvsqf_202382802446_7342kp").on("click", function(){
$("#mainMenuContent_gkxwvsqf_202382802446_7342kp").toggle();
});
checkBuild();
gkxwvsqf_202382802446_7342kp_Global.createMenu = () => {
createFullULMenu().then(() => {
}).catch((error) => {
console.error(error);
});
}
function checkBuild(){
return new Promise((resolve, reject) => {
woo.getGadgetProperty("gkxwvsqf_202382802446_7342kp", woo.instanceDB, "toolbarBuild").then((propValue) => {
if (!propValue){
createFullULMenu();
}
resolve("done");
}).catch((error) => {
reject(error);
});
}).catch((error) => {
console.error(error);
});
}
var showPage ='home';
var pageCount = 0;
function getChildrenByKey(obj, key) {
if (obj[key]) {
return obj[key].children || {};
}
for (let k in obj) {
if (obj[k] && typeof obj[k] === 'object') {
const result = getChildrenByKey(obj[k].children || {}, key);
if (result) {
return result;
}
}
}
return null; // Key not found
}
function createFullULMenu(){
return new Promise((resolve, reject) => {
$("#mainMenuContent_gkxwvsqf_202382802446_7342kp").empty();
var form = document.querySelector("#mainMenuContent_gkxwvsqf_202382802446_7342kp");
var allHtml = {};
var pages = {};
var rootPage = "";
woo.getFullPageStructure().then((response) => {
//console.log(response);
if ("home" == "home"){
rootPage = Object.keys(response)[0];
pages = response[rootPage].children;
} else {
rootPage = Object.keys(response)[0];
pages = getChildrenByKey(response, "home");
//pages = response[rootPage].children["home"].children;
}
//console.log(pages);
var promises = Object.entries(pages).map((node) => {
if (node[1]["props"].hidden == false){
return createPageNode(node, 1).then((gadgetHtml) => {
allHtml[node[0]] = gadgetHtml;
});
}
});
return Promise.all(promises);
}).then(() => {
var pageListUL = document.createElement('ul');
pageListUL.className = "menuUl1";
if (Object.keys(allHtml).length != 0) {
Object.entries(pages).forEach((entry) => {
if (allHtml[entry[0]]){
pageListUL.appendChild(allHtml[entry[0]]);
}
});
}
form.appendChild(pageListUL);
var str = form.innerHTML;
woo.updateGadgetProperty("gkxwvsqf_202382802446_7342kp", woo.instanceDB, "toolbarBuild", str, woo.getCurrentPage()).then(() => {
$(".menuClick_gkxwvsqf_202382802446_7342kp").unbind();
$(".menuClick_gkxwvsqf_202382802446_7342kp").on("click", function(){
if ($(this).attr("linked") == "true"){
if ($(this).attr("linkID") != ""){
$('body').removeClass("pageAnimateOut").addClass("pageAnimateIn");
showPage = $(this).attr("linkID");
setTimeout(animatePageIn, 0);
} else {
window.location = $(this).attr("linkURL");
}
} else {
$('body').removeClass("pageAnimateOut").addClass("pageAnimateIn");
showPage = $(this).attr("showPage");
setTimeout(animatePageIn, 0);
}
});
resolve("done");
}).catch((err) => {
//alert("Gadget value not saved! " + err);
reject(error);
});
}).catch((error) => {
console.error(error);
reject(error);
});
});
}
function createPageNode(page, level){
return new Promise((resolve) => {
//create li
var pageLI = document.createElement('li');
if (level == 1){
pageLI.className = "menuLi1";
} else if (level == 2){
pageLI.className = "menuLi2";
} else {
pageLI.className = "menuLi3";
}
pageLI.classList.add("menuLlX");
var menuMouseOverID = page[0];
pageLI.id = menuMouseOverID;
if (level == 1){
var nameSpanOuter = document.createElement('span');
nameSpanOuter.className = "woo_menuName_outer";
var nameUnderLineSpan = document.createElement('span');
nameUnderLineSpan.className = "woo_menuName_underline";
nameUnderLineSpan.id = "woo_menuName_underline_" + page[0];
}
var nameSpan = document.createElement('button');
if (level == 1){
nameSpan.className = "woo_menuName";
} else {
nameSpan.className = "woo_subMenuName";
}
nameSpan.classList.add("menuClick_gkxwvsqf_202382802446_7342kp");
console.log("pageCount: " + pageCount + ", odd/even: " + (pageCount % 2));
if ((pageCount % 2) != 1) {
nameSpan.classList.add("oddPage");
}
pageCount++;
nameSpan.innerText = page[1]["props"].name;
console.log(page[1]["props"].name + " : " + page[1]["props"].linked);
if (page[1]["props"].linked == "true" || page[1]["props"].linked == true){
nameSpan.setAttribute("linked", page[1]["props"].linked);
nameSpan.setAttribute("linkID", page[1]["props"].linkID);
nameSpan.setAttribute("linkURL", page[1]["props"].linkURL);
} else {
nameSpan.setAttribute("showPage", page[0]);
}
nameSpan.setAttribute("menuid", page[0]);
if (level == 1){
nameSpanOuter.appendChild(nameSpan);
nameSpanOuter.appendChild(nameUnderLineSpan);
pageLI.appendChild(nameSpanOuter);
} else {
pageLI.appendChild(nameSpan);
}
var childPagesHtml = {};
var children = page[1].children;
var subLevel = level + 1;
var promises = Object.entries(children).map((childNode) => {
if (subLevel <= 10){
if (childNode[1]["props"].hidden == false){
return createPageNode(childNode, subLevel).then((childHtml) => {
childPagesHtml[childNode[0]] = childHtml;
});
}
}
});
Promise.all(promises).then(() => {
if (Object.keys(page[1]["children"]).length != 0){
var pageListULNext = document.createElement('ul');
if (level == 1){
pageListULNext.className = "menuUl2";
} else {
pageListULNext.className = "menuUl3";
}
pageListULNext.classList.add("menuUlX");
var childCount = 0;
Object.entries(children).forEach((entry) => {
if (childPagesHtml[entry[0]]){
childCount++;
pageListULNext.appendChild(childPagesHtml[entry[0]]);
}
});
if (childCount > 0){
pageLI.appendChild(pageListULNext);
}
}
resolve(pageLI);
});
});
}
function cleanPageNameForUrl(pageName) {
// Convert to lowercase
let url = pageName.toLowerCase();
// Replace spaces with dashes
url = url.replace(/\s+/g, '-');
// Remove all special characters except dashes and alphanumeric characters
url = url.replace(/[^a-z0-9-]/g, '');
// Remove multiple consecutive dashes
url = url.replace(/-+/g, '-');
// Remove leading and trailing dashes
url = url.replace(/^-|-$/g, '');
return url;
}
var currentPageId = woo.getCurrentPage();
$("#gkxwvsqf_202382802446_7342kp .woo_menuName").each(function(){
if (currentPageId == cleanPageNameForUrl($(this).text())){
$(this).css({"background-color": "#2453b3", "color" : "#ffffff"});
}
});
$(".menuClick_gkxwvsqf_202382802446_7342kp").on("click", function(){
if ($(this).attr("linked")){
if ($(this).attr("linkID") != ""){
$('body').removeClass("pageAnimateOut").addClass("pageAnimateIn");
showPage = $(this).attr("linkID");
setTimeout(animatePageIn, 0);
} else {
window.location = $(this).attr("linkURL");
}
} else {
$('body').removeClass("pageAnimateOut").addClass("pageAnimateIn");
showPage = $(this).attr("showPage");
setTimeout(animatePageIn, 0);
}
});
$("#gkxwvsqf_202382802446_7342kp .parentPage_gkxwvsqf_202382802446_7342kp .menuClick_gkxwvsqf_202382802446_7342kp").unbind();
$("#gkxwvsqf_202382802446_7342kp .parentPage_gkxwvsqf_202382802446_7342kp").on("click", function(){
var burgerMenuId = $("#gkxwvsqf_202382802446_7342kp").parents(".burger_menu").attr("id");
//var subMenuNode = $(this).children("li > ul");
var subMenu = this.querySelector("li > ul").cloneNode(true);
//var subMenu = subMenuNode.cloneNode(true);
console.log(burgerMenuId);
window[burgerMenuId].changeSubPage($(this).attr("id"), 'gkxwvsqf_202382802446_7342kp', subMenu, 0, 0);
});
function animatePageIn() {
Promise.all([woo.updateCurrentPage(showPage)]).then(() => {
document.body.scrollTop = document.documentElement.scrollTop = 0;
$('body').removeClass("pageAnimateIn").addClass("pageAnimateOut");
});
}
gkxwvsqf_202382802446_7342kp_Global.animateMenuIn = () => {
animateMenuIn();
};
function animateMenuIn(){
$("#gkxwvsqf_202382802446_7342kp .woo_menuName").removeClass("animateMenuOut").addClass("animateMenuIn");
}
gkxwvsqf_202382802446_7342kp_Global.animateMenuOut = () => {
animateMenuOut();
};
function animateMenuOut(){
$("#gkxwvsqf_202382802446_7342kp .woo_menuName").removeClass("animateMenuIn").addClass("animateMenuOut");
}
return gkxwvsqf_202382802446_7342kp_Global;
})();var gkxwvsqf_202392093827_735263 = (function() {
var self = document.getElementById('gkxwvsqf_202392093827_735263');
var gkxwvsqf_202392093827_735263_Global = {};
gkxwvsqf_202392093827_735263_Global.unload = () => {
//Unload callbacks here
window.removeEventListener("scroll", gkxwvsqf_202392093827_735263Reveal);
console.log("Unloaded gkxwvsqf_202392093827_735263");
}
function gkxwvsqf_202392093827_735263Reveal() {
var reveals = document.querySelector("#gkxwvsqf_202392093827_735263 .reveal");
var windowHeight = window.innerHeight;
var elementTop = reveals.getBoundingClientRect().top;
var elementVisible = 150;
if (elementTop < windowHeight - elementVisible) {
reveals.classList.add("active");
self.classList.add("gkxwvsqf_202392093827_735263ShadowReveal");
self.classList.remove("gkxwvsqf_202392093827_735263ShadowRevealOff");
} else {
reveals.classList.remove("active");
self.classList.remove("gkxwvsqf_202392093827_735263ShadowReveal");
self.classList.add("gkxwvsqf_202392093827_735263ShadowRevealOff");
}
}
if ("the-pulse" != "" || "Change_Page" == "Open_Image_in_New_Window"){
$("#gkxwvsqf_202392093827_735263 .mainImage").css("cursor", "pointer");
$("#gkxwvsqf_202392093827_735263 .mainImage").on("click", function(){
switch ("Change_Page"){
case "Change_Page":
woo.updateCurrentPage("the-pulse");
break;
case "External_Link":
window.location("the-pulse");
break;
case "Open_Image_in_New_Window":
window.open("/resources/indiepulse/uploads/Icon.png");
break;
default:
console.error("No link option selected");
}
});
}
gkxwvsqf_202392093827_735263_Global.animateMenuIn = () => {
animateMenuIn();
};
function animateMenuIn(){
$("#gkxwvsqf_202392093827_735263 .imageWrapper").removeClass("animateMenuOut").addClass("animateMenuIn");
}
gkxwvsqf_202392093827_735263_Global.animateMenuOut = () => {
animateMenuOut();
};
function animateMenuOut(){
$("#gkxwvsqf_202392093827_735263 .imageWrapper").removeClass("animateMenuIn").addClass("animateMenuOut");
}
return gkxwvsqf_202392093827_735263_Global;
})();var gkxwvsqf_2026425142435_316 = (function() {
var self = document.getElementById('gkxwvsqf_2026425142435_316');
var gkxwvsqf_2026425142435_316_Global = {};
$(document).off('click', '#searchButtongkxwvsqf_2026425142435_316').on('click', '#searchButtongkxwvsqf_2026425142435_316', function(e) {
gkxwvsqf_202647151118_247.openSearch(e);
});
gkxwvsqf_2026425142435_316_Global.unload = () => {
//Unload callbacks here
console.log("Unloaded gkxwvsqf_2026425142435_316");
}
return gkxwvsqf_2026425142435_316_Global;
})();var gkxwvsqf_2024810131454_970 = (function() {
var self = document.getElementById('gkxwvsqf_2024810131454_970');
var gkxwvsqf_2024810131454_970_Global = {};
var unloadPromise;
gkxwvsqf_2024810131454_970_Global.unload = () => {
return new Promise((resolve, reject) => {
//Unload callbacks here
if (unloadPromise){
unloadPromise.then(() => {
resolve("done");
}).catch((error) => {
reject(error);
});
} else {
resolve("done");
}
woo.events.off("Page Added", recreate);
woo.events.off("Page Deleted", recreate);
woo.events.off("Page Hidden", recreate);
woo.events.off("Page Unhidden", recreate);
woo.events.off("Page Linked", recreate);
woo.events.off("Page Unlinked", recreate);
woo.events.off("Page Order Updated", recreate);
woo.events.off("Page Parent Updated", recreate);
woo.events.off("Page pageName Updated", recreate);
console.log("Unloaded gkxwvsqf_2024810131454_970");
});
}
woo.events.on("Page Added", recreate);
woo.events.on("Page Deleted", recreate);
woo.events.on("Page Hidden", recreate);
woo.events.on("Page Unhidden", recreate);
woo.events.on("Page Linked", recreate);
woo.events.on("Page Unlinked", recreate);
woo.events.on("Page Order Updated", recreate);
woo.events.on("Page Parent Updated", recreate);
woo.events.on("Page pageName Updated", recreate);
function recreate(){
unloadPromise = createFullULMenu().then(() => {
console.log("boy oh boy a lincoln toy!");
createFullULMenu();
}).catch((error) => {
console.log("Menu not created! " + error);
});
}
checkBuild();
gkxwvsqf_2024810131454_970_Global.createMenu = () => {
createFullULMenu().then(() => {
}).catch((error) => {
console.error(error);
});
}
function checkBuild(){
return new Promise((resolve, reject) => {
woo.getGadgetProperty("gkxwvsqf_2024810131454_970", woo.instanceDB, "toolbarBuild").then((propValue) => {
if (!propValue){
createFullULMenu();
}
resolve("done");
}).catch((error) => {
reject(error);
});
}).catch((error) => {
console.error(error);
});
}
var showPage ='home';
var pageCount = 0;
function createFullULMenu(){
return new Promise((resolve, reject) => {
$("#mainMenuContent_gkxwvsqf_2024810131454_970").empty();
var form = document.querySelector("#mainMenuContent_gkxwvsqf_2024810131454_970");
var allHtml = {};
var pages = {};
var rootPage = "";
var parentPageName = "Home";
woo.getFullPageStructure().then((response) => {
console.log(response);
if ("home" == "home"){
rootPage = Object.keys(response)[0];
pages = response[rootPage].children;
parentPageName = response[rootPage]["props"].name;
} else {
rootPage = Object.keys(response)[0];
pages = response[rootPage].children["home"].children;
parentPageName = response[rootPage].children["home"]["props"].name;
}
console.log(parentPageName);
//console.log(pages);
var promises = Object.entries(pages).map((node) => {
if (node[1]["props"].hidden == false){
return createPageNode(node, 1).then((gadgetHtml) => {
allHtml[node[0]] = gadgetHtml;
});
}
});
return Promise.all(promises);
}).then(() => {
var pageListUL = document.createElement('ul');
pageListUL.className = "menuUl1";
if (Object.keys(allHtml).length != 0) {
Object.entries(pages).forEach((entry) => {
if (allHtml[entry[0]]){
pageListUL.appendChild(allHtml[entry[0]]);
}
});
}
var parentPageTitle = document.createElement('div');
parentPageTitle.className = "woo_parentPageTitle";
parentPageTitle.append(parentPageName);
var menuOpenClose = document.createElement('span');
menuOpenClose.className = "material-symbols-outlined";
menuOpenClose.classList.add("woo_menuOpenClose");
menuOpenClose.setAttribute("rotate", false);
menuOpenClose.append("keyboard_arrow_down");
parentPageTitle.appendChild(menuOpenClose);
form.appendChild(parentPageTitle);
form.appendChild(pageListUL);
var str = form.innerHTML;
woo.updateGadgetProperty("gkxwvsqf_2024810131454_970", woo.instanceDB, "toolbarBuild", str, woo.getCurrentPage()).then(() => {
$(".menuClick_gkxwvsqf_2024810131454_970").unbind();
$(".menuClick_gkxwvsqf_2024810131454_970").on("click", function(){
if ($(this).attr("linked") == "true"){
if ($(this).attr("linkID") != ""){
showPage = $(this).attr("linkID");
changePage(showPage);
} else {
window.location = $(this).attr("linkURL");
}
} else {
showPage = $(this).attr("showPage");
changePage(showPage);
}
});
resolve("done");
}).catch((err) => {
console.error(err);
reject(err);
});
}).catch((error) => {
console.error(error);
reject(error);
});
});
}
function createPageNode(page, level){
return new Promise((resolve) => {
//create li
var pageLI = document.createElement('li');
pageLI.className = "menuLi1";
var menuMouseOverID = page[0];
pageLI.id = menuMouseOverID;
var nameSpan = document.createElement('button');
nameSpan.className = "woo_menuName";
nameSpan.classList.add("menuClick_gkxwvsqf_2024810131454_970");
pageCount++;
nameSpan.innerText = page[1]["props"].name;
if (page[1]["props"].linked == "true" || page[1]["props"].linked == true){
nameSpan.setAttribute("linked", page[1]["props"].linked);
nameSpan.setAttribute("linkID", page[1]["props"].linkID);
nameSpan.setAttribute("linkURL", page[1]["props"].linkURL);
} else {
nameSpan.setAttribute("showPage", page[0]);
}
nameSpan.setAttribute("menuid", page[0]);
pageLI.appendChild(nameSpan);
resolve(pageLI);
});
}
$("#gkxwvsqf_2024810131454_970 .woo_menuOpenClose").on("click", function(){
$("#gkxwvsqf_2024810131454_970 ul").toggle();
if ($(this).attr("rotate") == "true"){
$(this).attr("rotate", false).css("transform", 'rotate(0deg)');
} else {
$(this).attr("rotate", true).css("transform", 'rotate(180deg)');
}
});
$(".menuClick_gkxwvsqf_2024810131454_970").on("click", function(){
if ($(this).attr("linked")){
if ($(this).attr("linkID") != ""){
showPage = $(this).attr("linkID");
changePage(showPage);
} else {
window.location = $(this).attr("linkURL");
}
} else {
showPage = $(this).attr("showPage");
changePage(showPage);
}
});
function changePage(showPage) {
Promise.all([woo.updateCurrentPage(showPage)]).then(() => {
document.body.scrollTop = document.documentElement.scrollTop = 0;
});
}
return gkxwvsqf_2024810131454_970_Global;
})();var gkxwvsqf_202391320119_677vac = (function() {
var self = document.getElementById('gkxwvsqf_202391320119_677vac');
var gkxwvsqf_202391320119_677vac_Global = {};
function gkxwvsqf_202391320119_677vacReveal() {
if (document.querySelector("#gkxwvsqf_202391320119_677vac .reveal")){
var reveals = document.querySelector("#gkxwvsqf_202391320119_677vac .reveal");
var windowHeight = window.innerHeight;
var elementTop = reveals.getBoundingClientRect().top;
var elementVisible = 150;
if (elementTop < windowHeight - elementVisible) {
reveals.classList.add("active");
self.classList.add("gkxwvsqf_202391320119_677vacShadowReveal");
self.classList.remove("gkxwvsqf_202391320119_677vacShadowRevealOff");
} else {
reveals.classList.remove("active");
self.classList.remove("gkxwvsqf_202391320119_677vacShadowReveal");
self.classList.add("gkxwvsqf_202391320119_677vacShadowRevealOff");
}
}
}
gkxwvsqf_202391320119_677vac_Global.unload = () => {
//Unload callbacks here
console.log("Unloaded gkxwvsqf_202391320119_677vac");
}
$("#gkxwvsqf_202391320119_677vac .buttonWysiwygText").on("click", function(){
if ("Page_ID" == "Page_ID") {
/*woo.updateCurrentPage("home").then(() => {
document.body.scrollTop = document.documentElement.scrollTop = 0;
});*/
Promise.all([woo.updateCurrentPage("home")]).then(() => {
document.body.scrollTop = document.documentElement.scrollTop = 0;
});
} else {
window.location = "home";
}
});
return gkxwvsqf_202391320119_677vac_Global;
})();var gkxwvsqf_202382815548_882_561_167 = (function() {
var self = document.getElementById('gkxwvsqf_202382815548_882_561_167');
//self.classList.add("sun_editor_content");
var gkxwvsqf_202382815548_882_561_167_Global = {};
gkxwvsqf_202382815548_882_561_167_Global.unload = () => {
//Unload callbacks here
console.log("Unloaded gkxwvsqf_202382815548_882_561_167");
}
return gkxwvsqf_202382815548_882_561_167_Global;
})();var gkxwvsqf_202382815548_882_561_326 = (function() {
var self = document.getElementById('gkxwvsqf_202382815548_882_561_326');
//self.classList.add("sun_editor_content");
var gkxwvsqf_202382815548_882_561_326_Global = {};
gkxwvsqf_202382815548_882_561_326_Global.unload = () => {
//Unload callbacks here
console.log("Unloaded gkxwvsqf_202382815548_882_561_326");
}
return gkxwvsqf_202382815548_882_561_326_Global;
})();var gkxwvsqf_20251020113220_801 = (function() {
var gkxwvsqf_20251020113220_801_Global = {};
// Outer frame wrapper reference - guaranteed to exist at gadget initialization
var gadgetWrapper = document.getElementById('gkxwvsqf_20251020113220_801');
var loggedIn = false;
var loggingInOrOut = false;
var openModal = false;
var profileMenuOpen = false;
var unloadPromise;
// Unified Event Delegation Handler for the entire gadget context
function handleGadgetClicks(e) {
// 1. Dynamic Menu Button Routing
var menuBtn = e.target.closest(".menuClick_gkxwvsqf_20251020113220_801");
if (menuBtn) {
e.preventDefault();
if (menuBtn.getAttribute("linked") === "true") {
if (menuBtn.getAttribute("linkID") !== "") {
changePage(menuBtn.getAttribute("linkID"));
} else {
window.location = menuBtn.getAttribute("linkURL");
}
} else {
changePage(menuBtn.getAttribute("showPage"));
}
return;
}
// 2. What Is Click Router
if (e.target.closest(".woo_whatIsWooID_gkxwvsqf_20251020113220_801")) {
e.preventDefault();
whatIsClick_gkxwvsqf_20251020113220_801();
return;
}
// 3. Forgot Password Router
if (e.target.closest(".forgot_pass_gkxwvsqf_20251020113220_801")) {
e.preventDefault();
console.log("got 1");
forgotPass_gkxwvsqf_20251020113220_801();
return;
}
// 4. Mobile and Desktop Authentication Layout Trigger Toggles
if (e.target.closest("#mob_icon_gkxwvsqf_20251020113220_801") || e.target.closest(".woo_login_button") || e.target.closest("#login-text_gkxwvsqf_20251020113220_801")) {
e.preventDefault();
loginOnClick_gkxwvsqf_20251020113220_801(e);
return;
}
}
// Double declaration block cleaned into a safe lifecycle routine
woo.events.on("Page Added", recreate);
woo.events.on("Page Deleted", recreate);
woo.events.on("Page Hidden", recreate);
woo.events.on("Page Unhidden", recreate);
woo.events.on("Page Linked", recreate);
woo.events.on("Page Unlinked", recreate);
woo.events.on("Page Order Updated", recreate);
woo.events.on("Page Parent Updated", recreate);
woo.events.on("Page pageName Updated", recreate);
function recreate(){
unloadPromise = createFullULMenu().then(() => {
console.log("boy oh boy a lincoln toy!");
}).catch((error) => {
console.log("Menu not created! " + error);
});
}
checkBuild();
gkxwvsqf_20251020113220_801_Global.createMenu = () => {
createFullULMenu().catch((error) => {
console.error(error);
});
}
function checkBuild(){
return new Promise((resolve, reject) => {
woo.getGadgetProperty("gkxwvsqf_20251020113220_801", woo.instanceDB, "toolbarBuild").then((propValue) => {
if (!propValue){
createFullULMenu();
}
resolve("done");
}).catch((error) => {
reject(error);
});
}).catch((error) => {
console.error(error);
});
}
function getAppData(){
return new Promise((resolve) => {
var url = woo.getRemoteCouch() + "/indiepulse$public/indiepulse-invoice-settings";
var data = {};
resolve(woo.queryCouch(url, "GET", data));
}).catch((error) => {
return null;
});
}
getAppData().then((data) => {
if (data && gadgetWrapper){
$("#gkxwvsqf_20251020113220_801 .website_name").html(data.brandName);
$("#gkxwvsqf_20251020113220_801 #fullLogoImage").attr("src", "/resources/indiepulse/uploads/" + data.logoImage);
}
});
function forgotPass_gkxwvsqf_20251020113220_801(){
console.log("got here");
woo.updateCurrentPage("forgot-password");
}
function whatIsClick_gkxwvsqf_20251020113220_801(){
var note = "
What is the Woo ID?
With a growing awareness of on-line privacy and security issues, further tightening of the spam laws worldwide and the need for businesses to have more robust collection of data systems in place, Woo has risen to the challenge by creating a universal ID for users on the platform - called a Woo ID.
The Woo ID provides you with the security that Woo is dedicated, and bound by law, to ensure your information is kept private and that all anti-spam laws are adhered to. Every user added to a Woo website gets to verify their email address. This ensures issues with data entry and out-of-date email accounts are spotted early.
The Woo ID universal ID is the market leader: creating a safe and spam free environment for you.