Get our best marriage frameworks delivered weekly. Free.
// This new event listener makes sure the entire page HTML is loaded
// before Babel tries to scan it or attach the React app.
document.addEventListener("DOMContentLoaded", function() {
if (window.__DUO_IN1_LOADER__) return;
window.__DUO_IN1_LOADER__ = true;
var root = document.getElementById("duo-in1-root");
var src = document.getElementById("duo-in1-jsx");
if (!root) { console.error("DUO in1: Root div not found in the DOM."); return; }
if (!src) { console.error("DUO in1: JSX script source not found."); return; }
try {
function dec(s) {
if (!s) return s;
var t = document.createElement("textarea"); t.innerHTML = s; var d = t.value;
var t2 = document.createElement("textarea"); t2.innerHTML = d; return t2.value;
}
// Transpile the JSX
var compiledCode = Babel.transform(dec(src.textContent || src.innerText || ""), { presets: ["react"] }).code;
// Add the trigger command to the bottom of the compiled code
compiledCode += "\n\nif(typeof window.__MountDuoApp === 'function') { window.__MountDuoApp(); }";
// Execute the compiled JS
var s = document.createElement("script");
s.type = "text/javascript";
s.text = compiledCode;
document.body.appendChild(s);
} catch (e) {
console.error("DUO in1 Babel error", e);
root.innerHTML = '<div style="padding:20px;border:2px solid #f0c;border-radius:12px;text-align:center"><strong>Embed error</strong><br><small>' + e.message + '</small></div>';
}
});
document.addEventListener('DOMContentLoaded', function() {
var buttons = document.querySelectorAll('.conversion-btn a, .conversion-btn');
buttons.forEach(function(btn) {
btn.addEventListener('click', function(e) {
e.preventDefault();
var url = this.getAttribute('href');
gtag_report_conversion(url);
});
});
});
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
var woocommerce_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_password_show":"Show password","i18n_password_hide":"Hide password"};
//# sourceURL=woocommerce-js-extra
(function(){
if(window.__duoEmailInit)return;
window.__duoEmailInit=true;
var U="https://afgmlkduuapquqkcqdsk.supabase.co";
var K="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFmZ21sa2R1dWFwcXVxa2NxZHNrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzgzNDA2NzYsImV4cCI6MjA5MzkxNjY3Nn0.-WQ34Jxy9CmI-SsQfcMNWPZi5AfZCzv9jZHDQ6ccEWc";
async function s(f,sr){
var e=f.querySelector("input[type=email]"),n=f.querySelector("input[name=duo_name]"),m=f.querySelector(".duo-msg"),b=f.querySelector("button"),em=e.value.trim(),nm=n?n.value.trim():"";
if(!em||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(em)){if(m){m.textContent="Please enter a valid email.";m.style.display="block";m.style.color="#ef4444";}return;}
if(b){b.disabled=true;if(!b.getAttribute("data-original"))b.setAttribute("data-original",b.textContent);b.textContent="Subscribing...";}
try{
var r=await fetch(U+"/rest/v1/duo_subscribers",{method:"POST",headers:{"Content-Type":"application/json",apikey:K,Authorization:"Bearer "+K},body:JSON.stringify({email:em,name:nm||null,source:sr})});
if(r.ok){if(m){m.textContent="✓ Welcome to DUO!";m.style.display="block";m.style.color="#22c55e";}if(e)e.value="";if(n)n.value="";}
else{var er=await r.json();if(er.code==="23505"){if(m){m.textContent="Already subscribed!";m.style.display="block";m.style.color="#22c55e";}}else{throw new Error(er.message||"Error");}}
}catch(err){if(m){m.textContent=err.message||"Please try again.";m.style.display="block";m.style.color="#ef4444";}}
finally{if(b){b.disabled=false;b.textContent=b.getAttribute("data-original")||"Subscribe";}}
}
document.addEventListener("DOMContentLoaded",function(){
document.querySelectorAll(".duo-email-form").forEach(function(f){
var sr=f.getAttribute("data-duo-source")||"website";
f.addEventListener("submit",function(e){e.preventDefault();s(f,sr);});
});
var ov=document.getElementById("duo-popup-overlay");
if(ov&&!sessionStorage.getItem("duo_popup_shown")){
setTimeout(function(){ov.style.display="flex";sessionStorage.setItem("duo_popup_shown","1");},8000);
}
var cb=document.getElementById("duo-popup-close");
if(cb){cb.addEventListener("click",function(){document.getElementById("duo-popup-overlay").style.display="none";});}
if(ov){ov.addEventListener("click",function(e){if(e.target===ov)ov.style.display="none";});}
});
})();
(function() {
window.wcAnalytics = window.wcAnalytics || {};
const wcAnalytics = window.wcAnalytics;// Set the assets URL for webpack to find the split assets.
wcAnalytics.assets_url = 'https://duo.bz/wp-content/plugins/jetpack/jetpack_vendor/automattic/woocommerce-analytics/src/../build/';// Set the REST API tracking endpoint URL.
wcAnalytics.trackEndpoint = "https://duo.bz/wp-json/woocommerce-analytics/v1/track";// Set common properties for all events.
wcAnalytics.commonProps = {"ui":0,"blog_id":252820655,"store_id":"4735d1d5-c7ab-4559-898b-2f4ef0eaef06","url":"https://duo.bz","woo_version":"10.6.1","wp_version":"7.1","store_admin":0,"device":"desktop","store_currency":"USD","timezone":"+00:00","is_guest":1};// Set the event queue.
wcAnalytics.eventQueue = [];// Features.
wcAnalytics.features = {
ch: false,
sessionTracking: false,
proxy: false,
};wcAnalytics.breadcrumbs = ["Foundations","The Inner Work"];// Page context flags.
wcAnalytics.pages = {
isAccountPage: false,
isCart: false,
};
})();
(function(){
if(window.__duoEmailInit)return;
window.__duoEmailInit=true;
var U="https://afgmlkduuapquqkcqdsk.supabase.co";
var K="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFmZ21sa2R1dWFwcXVxa2NxZHNrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzgzNDA2NzYsImV4cCI6MjA5MzkxNjY3Nn0.-WQ34Jxy9CmI-SsQfcMNWPZi5AfZCzv9jZHDQ6ccEWc";
async function s(f,sr){
var e=f.querySelector("input[type=email]"),n=f.querySelector("input[name=duo_name]"),m=f.querySelector(".duo-msg"),b=f.querySelector("button"),em=e.value.trim(),nm=n?n.value.trim():"";
if(!em||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(em)){if(m){m.textContent="Please enter a valid email.";m.style.display="block";m.style.color="#ef4444";}return;}
if(b){b.disabled=true;if(!b.getAttribute("data-original"))b.setAttribute("data-original",b.textContent);b.textContent="Subscribing...";}
try{
var r=await fetch(U+"/rest/v1/duo_subscribers",{method:"POST",headers:{"Content-Type":"application/json",apikey:K,Authorization:"Bearer "+K},body:JSON.stringify({email:em,name:nm||null,source:sr})});
if(r.ok){if(m){m.textContent="✓ Welcome to DUO!";m.style.display="block";m.style.color="#22c55e";}if(e)e.value="";if(n)n.value="";}
else{var er=await r.json();if(er.code==="23505"){if(m){m.textContent="Already subscribed!";m.style.display="block";m.style.color="#22c55e";}}else{throw new Error(er.message||"Error");}}
}catch(err){if(m){m.textContent=err.message||"Please try again.";m.style.display="block";m.style.color="#ef4444";}}
finally{if(b){b.disabled=false;b.textContent=b.getAttribute("data-original")||"Subscribe";}}
}
document.addEventListener("DOMContentLoaded",function(){
document.querySelectorAll(".duo-email-form").forEach(function(f){
var sr=f.getAttribute("data-duo-source")||"website";
f.addEventListener("submit",function(e){e.preventDefault();s(f,sr);});
});
var ov=document.getElementById("duo-popup-overlay");
if(ov&&!sessionStorage.getItem("duo_popup_shown")){
setTimeout(function(){ov.style.display="flex";sessionStorage.setItem("duo_popup_shown","1");},8000);
}
var cb=document.getElementById("duo-popup-close");
if(cb){cb.addEventListener("click",function(){document.getElementById("duo-popup-overlay").style.display="none";});}
if(ov){ov.addEventListener("click",function(e){if(e.target===ov)ov.style.display="none";});}
});
})();