{"version":3,"names":[],"sources":["theme-3-inline-common-head_tag-2.js"],"sourcesContent":["\n(function () {\n  var STORAGE_KEY = \"hg_signup_consents_v5\";\n\n  function saveConsents(obj) {\n    try { sessionStorage.setItem(STORAGE_KEY, JSON.stringify(obj)); } catch (e) {}\n  }\n  function clearConsents() {\n    try { sessionStorage.removeItem(STORAGE_KEY); } catch (e) {}\n  }\n\n  function buildStep1EulaBox() {\n    var box = document.createElement(\"div\");\n    box.id = \"hg-signup-eula-box\";\n    box.setAttribute(\"data-mode\", \"step1\");\n    box.innerHTML =\n      '<p class=\"hg-step1-alias-note\"><strong>Privacy note:</strong> Your email stays private&mdash;you&rsquo;ll choose your public username (alias) right after verifying your 6-digit code.</p>' +\n      '<div class=\"hg-eula-head\">' +\n        '<p class=\"hg-eula-title\">HealthyGather Terms of Service (ToS) and EULA</p>' +\n        '<a class=\"hg-eula-link\" href=\"/tos\" target=\"_blank\" rel=\"noopener\">Full Page &#8599;</a>' +\n      '</div>' +\n      '<div class=\"hg-eula-body\" id=\"hg-eula-scroll-area\" tabindex=\"0\" aria-label=\"Scrollable HealthyGather Terms of Service and EULA summary\">' +\n        '<p><strong>1. Eligibility (18+) &amp; Agreement (Effective Dec 1, 2026):</strong> HealthyGather (healthygather.com, .net, .org, .ca) is an adults-only (18+) online wellness community. By creating an account, you confirm you are 18 or older and agree to these Terms.</p>' +\n        '<p><strong>2. Community Platform vs. Independent Sellers:</strong> HealthyGather provides general educational content and links to independently operated stores. When you buy through an external link, you purchase from the seller identified at checkout&mdash;that seller handles orders, payment, shipping, returns, and purchase support. HealthyGather and contributors may earn commissions from some links, and some contributors are independent representatives; paid or affiliate relationships are disclosed where they appear.</p>' +\n        '<p><strong>3. Health Disclaimer &mdash; Not Medical Advice:</strong> Community posts, recipes, and product discussions are for general information only and are not medical advice. Personal experiences are not proof that any product treats or prevents any condition. Always consult a qualified healthcare provider.</p>' +\n        '<p><strong>4. Subscriptions &amp; Paid Offerings:</strong> If paid subscriptions or digital offerings are offered directly, total pricing, renewal terms, and cancellation steps will be disclosed clearly before purchase in compliance with applicable consumer laws.</p>' +\n        '<p><strong>5. Acceptable Use &amp; Moderation:</strong> Personal lawful use only; no spam, harassment, scraping, or unsubstantiated medical claims. Accounts violating these Terms may be suspended or removed subject to applicable law.</p>' +\n        '<p><strong>6. Liability &amp; Statutory Rights Preserved:</strong> Provided &ldquo;as is&rdquo; to the extent permitted by applicable law. Nothing in these Terms limits or excludes rights or liability that cannot lawfully be limited or excluded, including bodily or moral injury, intentional or gross fault, or mandatory statutory consumer rights under applicable laws.</p>' +\n        '<p><strong>7. Email &amp; Privacy (CASL):</strong> Account verification codes and one-time welcome emails are transactional. Optional community updates and partner offers require separate opt-in below and can be changed anytime in your HealthyGather profile or via contact@healthygather.com.</p>' +\n      '</div>' +\n      '<div class=\"hg-scroll-status\" id=\"hg-scroll-status\">' +\n        'Review the Terms above, then tick both required boxes below (Terms &amp; 18+ confirmation) to continue.' +\n      '</div>' +\n      '<div class=\"hg-consent-list\">' +\n        '<label class=\"hg-consent-item required-row\" id=\"hg-tos-label\">' +\n          '<input type=\"checkbox\" id=\"hg-chk-tos\" required />' +\n          '<span><span class=\"hg-consent-badge req\">Required</span>I have read and agree to the <a href=\"/tos\" target=\"_blank\" rel=\"noopener\">HealthyGather Terms of Service (ToS) and EULA</a>.</span>' +\n        '</label>' +\n        '<label class=\"hg-consent-item required-row\" id=\"hg-age18-label\">' +\n          '<input type=\"checkbox\" id=\"hg-chk-age18\" required />' +\n          '<span><span class=\"hg-consent-badge req\">Required</span>I confirm that I am 18 years of age or older.</span>' +\n        '</label>' +\n        '<div class=\"hg-opt-panel\">' +\n          '<p class=\"hg-opt-heading\">Stay in the loop (optional)</p>' +\n          '<p class=\"hg-opt-sub\">Choose what you&rsquo;d like in your inbox. Unsubscribe anytime.</p>' +\n          '<label class=\"hg-consent-item\">' +\n            '<input type=\"checkbox\" id=\"hg-chk-news\" />' +\n            '<span><span class=\"hg-consent-badge opt\">Optional</span>HealthyGather updates: new recipes, community highlights, and wellness tips.</span>' +\n          '</label>' +\n          '<label class=\"hg-consent-item\" style=\"margin-top:5px !important;\">' +\n            '<input type=\"checkbox\" id=\"hg-chk-partner\" />' +\n            '<span><span class=\"hg-consent-badge opt\">Optional</span>Partner offers: occasional wellness deals and affiliate picks, emailed by HealthyGather.</span>' +\n          '</label>' +\n          '<p class=\"hg-opt-foot\">Sent by HealthyGather (<a href=\"mailto:contact@healthygather.com\">contact@healthygather.com</a>). Withdraw consent anytime; neither box is required to join.</p>' +\n        '</div>' +\n      '</div>' +\n      '<p class=\"hg-eula-warn\" id=\"hg-eula-warn\">Please tick both required boxes above (Terms of Service/EULA and 18+ confirmation) to continue.</p>';\n\n    var scrollStatus = box.querySelector(\"#hg-scroll-status\");\n    var chkTos = box.querySelector(\"#hg-chk-tos\");\n    var chkAge18 = box.querySelector(\"#hg-chk-age18\");\n    var chkNews = box.querySelector(\"#hg-chk-news\");\n    var chkPartner = box.querySelector(\"#hg-chk-partner\");\n    var warn = box.querySelector(\"#hg-eula-warn\");\n\n    // Always start cleanly unchecked (no auto-accept)\n    clearConsents();\n\n    function syncStatusAndSave() {\n      var tosOk = !!(chkTos && chkTos.checked);\n      var ageOk = !!(chkAge18 && chkAge18.checked);\n      saveConsents({\n        tos: tosOk,\n        age18: ageOk,\n        news: !!(chkNews && chkNews.checked),\n        partner: !!(chkPartner && chkPartner.checked),\n        termsVersion: \"2026-12-01\",\n        attestedAt: new Date().toISOString()\n      });\n      if (scrollStatus) {\n        if (tosOk && ageOk) {\n          scrollStatus.classList.add(\"done\");\n          scrollStatus.innerHTML = \"&#10003; Terms accepted and 18+ eligibility confirmed.\";\n        } else {\n          scrollStatus.classList.remove(\"done\");\n          scrollStatus.innerHTML = \"Review the Terms above, then tick both required boxes below (Terms &amp; 18+ confirmation) to continue.\";\n        }\n      }\n      if (tosOk && ageOk && warn) warn.classList.remove(\"show\");\n    }\n\n    if (chkTos) chkTos.addEventListener(\"change\", syncStatusAndSave);\n    if (chkAge18) chkAge18.addEventListener(\"change\", syncStatusAndSave);\n    if (chkNews) chkNews.addEventListener(\"change\", syncStatusAndSave);\n    if (chkPartner) chkPartner.addEventListener(\"change\", syncStatusAndSave);\n    syncStatusAndSave();\n    return box;\n  }\n\n  function gateEmailStepOnly(emailForm) {\n    if (!emailForm || emailForm.getAttribute(\"data-hg-gated\") === \"1\") return;\n    emailForm.setAttribute(\"data-hg-gated\", \"1\");\n    function blockIfUnchecked(e) {\n      var chkTos = document.getElementById(\"hg-chk-tos\");\n      var chkAge18 = document.getElementById(\"hg-chk-age18\");\n      if (!chkTos || !chkAge18 || !emailForm.contains(chkTos)) return;\n      if (!chkTos.checked || !chkAge18.checked) {\n        e.preventDefault();\n        e.stopPropagation();\n        var warn = document.getElementById(\"hg-eula-warn\");\n        if (warn) warn.classList.add(\"show\");\n        if (!chkTos.checked) chkTos.focus();\n        else chkAge18.focus();\n      }\n    }\n    emailForm.addEventListener(\"click\", function (e) {\n      var btn = e.target && e.target.closest ? e.target.closest(\"button.btn-primary, button[type='submit']\") : null;\n      if (btn) blockIfUnchecked(e);\n    }, true);\n    emailForm.addEventListener(\"submit\", blockIfUnchecked, true);\n  }\n\n  function syncSignupEula() {\n    var existing = document.getElementById(\"hg-signup-eula-box\");\n    var emailStep = document.querySelector(\"body.signup-page .code-login-form__email-step\");\n    if (!emailStep) {\n      if (existing) existing.remove();\n      return;\n    }\n    if (existing) return;\n\n    var actions = emailStep.querySelector(\".code-login-form__email-actions, .btn-primary, button[type='submit']\");\n    var box = buildStep1EulaBox();\n    if (actions && actions.parentNode) {\n      actions.parentNode.insertBefore(box, actions);\n    } else {\n      emailStep.appendChild(box);\n    }\n    gateEmailStepOnly(emailStep);\n  }\n\n  if (document.readyState === \"loading\") {\n    document.addEventListener(\"DOMContentLoaded\", syncSignupEula);\n  } else {\n    syncSignupEula();\n  }\n  window.addEventListener(\"load\", syncSignupEula);\n  var obs = new MutationObserver(syncSignupEula);\n  if (document.documentElement) {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