{"version":3,"file":"shared-lib.BHJHTWT7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/uTRHfhL9mNuBenRdg05T/a8v5Io9FVQqPEVv1iCWt/siteMetadata.js"],"sourcesContent":["// Generated by Framer (3e5217b)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<!-- Google Tag Manager (noscript) -->\\n<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-W87LSQDS\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\\n<!-- End Google Tag Manager (noscript) -->\\n\\n\\n\\n<script>\\n    (function () {\\n      // SHA-256 hasher\\n      async function sha256(str) {\\n        const encoder = new TextEncoder();\\n        const data = encoder.encode(str.trim().toLowerCase());\\n        const hashBuffer = await crypto.subtle.digest(\"SHA-256\", data);\\n        return Array.from(new Uint8Array(hashBuffer))\\n          .map(b => b.toString(16).padStart(2, \"0\"))\\n          .join(\"\");\\n      }\\n\\n      function getFirstMatchValue(form, selectors) {\\n        for (const selector of selectors) {\\n          const el = form.querySelector(selector);\\n          if (el && typeof el.value === \"string\") return el.value.trim();\\n        }\\n        return \"\";\\n      }\\n\\n      function extractFields(form) {\\n        const firstName = getFirstMatchValue(form, [\\n          \"input[name*=\\'first\\' i]\",\\n          \"input[placeholder*=\\'first\\' i]\"\\n        ]);\\n        const lastName = getFirstMatchValue(form, [\\n          \"input[name*=\\'last\\' i]\",\\n          \"input[placeholder*=\\'last\\' i]\"\\n        ]);\\n        const emailRaw = getFirstMatchValue(form, [\\n          \"input[type=\\'email\\']\",\\n          \"input[name*=\\'email\\' i]\",\\n          \"input[placeholder*=\\'email\\' i]\"\\n        ]);\\n        const message = getFirstMatchValue(form, [\\n          \"textarea[name*=\\'message\\' i]\",\\n          \"textarea[placeholder*=\\'message\\' i]\"\\n        ]);\\n        return { firstName, lastName, emailRaw, message };\\n      }\\n\\n      function isTargetForm(form) {\\n        // Prefer explicit container when present\\n        if (form.closest(\"div[aria-label=\\'contact-section\\']\")) return true;\\n        // Otherwise, require an email plus (message or a name field)\\n        const hasEmail = form.querySelector(\"input[type=\\'email\\'], input[name*=\\'email\\' i], input[placeholder*=\\'email\\' i]\");\\n        const hasMessage = form.querySelector(\"textarea[name*=\\'message\\' i], textarea[placeholder*=\\'message\\' i]\");\\n        const hasNameField = form.querySelector(\"input[name*=\\'first\\' i], input[placeholder*=\\'first\\' i], input[name*=\\'last\\' i], input[placeholder*=\\'last\\' i]\");\\n        return !!(hasEmail && (hasMessage || hasNameField));\\n      }\\n\\n      function attachFormListener(form) {\\n        if (!form) return;\\n        if (form.dataset.gtmAttached) return; // Avoid double attachment\\n        if (!isTargetForm(form)) return; // Skip irrelevant forms\\n\\n        form.dataset.gtmAttached = \"true\";\\n\\n        form.addEventListener(\"submit\", async function () {\\n          const { firstName, lastName, emailRaw, message } = extractFields(form);\\n          const emailHashed = emailRaw ? await sha256(emailRaw) : \"\";\\n\\n          // Push to GTM\\n          window.dataLayer = window.dataLayer || [];\\n          window.dataLayer.push({\\n            event: \"contact_submit\",\\n            formId: form.id || \"contactForm\",\\n            formName: form.getAttribute(\"name\") || \"Contact Us\",\\n            firstName,\\n            lastName,\\n            email: emailRaw,\\n            emailHashed,\\n            message\\n          });\\n\\n          console.log(\"Contact form submitted → dataLayer updated:\", {\\n            firstName,\\n            lastName,\\n            emailHashed,\\n            message\\n          });\\n        }, { capture: true });\\n      }\\n\\n      function scanAndAttach(root) {\\n        const scope = root || document;\\n        const forms = Array.from(scope.querySelectorAll(\"form\"));\\n        if (scope.tagName === \"FORM\") forms.push(scope);\\n        forms.forEach(attachFormListener);\\n      }\\n\\n      // Observe the whole app container for hydration and client-side navigations (Next.js)\\n      const observerRoot = document.getElementById(\"__next\") || document.body || document.documentElement;\\n      const observer = new MutationObserver(mutations => {\\n        for (const mutation of mutations) {\\n          mutation.addedNodes.forEach(node => {\\n            if (!(node instanceof Element)) return;\\n            if (node.tagName === \"FORM\") {\\n              attachFormListener(node);\\n            } else {\\n              const nested = node.querySelectorAll?.(\"form\");\\n              if (nested && nested.length) nested.forEach(attachFormListener);\\n            }\\n          });\\n        }\\n      });\\n      if (observerRoot) observer.observe(observerRoot, { childList: true, subtree: true });\\n\\n      // Hook history to detect route changes and rescan\\n      function hookHistory() {\\n        try {\\n          const wrap = (method) => {\\n            const original = history[method];\\n            return function () {\\n              const result = original.apply(this, arguments);\\n              window.dispatchEvent(new Event(\"locationchange\"));\\n              return result;\\n            };\\n          };\\n          history.pushState = wrap(\"pushState\");\\n          history.replaceState = wrap(\"replaceState\");\\n          window.addEventListener(\"popstate\", () => window.dispatchEvent(new Event(\"locationchange\")));\\n          window.addEventListener(\"locationchange\", () => {\\n            // Allow Next.js to render before scanning\\n            setTimeout(() => scanAndAttach(document), 50);\\n          });\\n        } catch (e) {\\n          // no-op\\n        }\\n      }\\n\\n      function init() {\\n        scanAndAttach(document);\\n        hookHistory();\\n      }\\n\\n      if (document.readyState === \"loading\") {\\n        document.addEventListener(\"DOMContentLoaded\", init);\\n      } else {\\n        init();\\n      }\\n    })();\\n  </script>\\n  ',customHTMLHeadEnd:\"<meta name=\\\"facebook-domain-verification\\\" content=\\\"skj0fxiwdef7s5axk1z4cuc0m1icg4\\\">\\n<!-- Google tag (gtag.js) -->\\n<script async=\\\"\\\" src=\\\"https://www.googletagmanager.com/gtag/js?id=G-0XXVZ4WX6D\\\"></script>\\n<script>\\n  window.dataLayer = window.dataLayer || [];\\n  function gtag(){dataLayer.push(arguments);}\\n  gtag('js', new Date());\\n\\n  gtag('config', 'G-0XXVZ4WX6D');\\n</script>\\n\\n<!-- Google Tag Manager -->\\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\\n})(window,document,'script','dataLayer','GTM-W87LSQDS');</script>\\n<!-- End Google Tag Manager -->\\n<!-- Meta Pixel Code -->\\n<script>\\n!function(f,b,e,v,n,t,s)\\n{if(f.fbq)return;n=f.fbq=function(){n.callMethod?\\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};\\nif(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\\nn.queue=[];t=b.createElement(e);t.async=!0;\\nt.src=v;s=b.getElementsByTagName(e)[0];\\ns.parentNode.insertBefore(t,s)}(window, document,'script',\\n'https://connect.facebook.net/en_US/fbevents.js');\\nfbq('init', '1600671977579500');\\nfbq('track', 'PageView');\\n</script>\\n<noscript></noscript>\",description:\"Gather syncs your POS data to Klaviyo in real-time—no duplicates, no delays. Built for growing brands and agencies who want reliable marketing automation that just works.\",favicon:\"https://framerusercontent.com/assets/uDUdys0JDBsAdOPnPlwmRsXUk.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/OuJtN0ljmxbsnNDX08aG1LESWk.png\",title:\"Gather - POS to Klaviyo\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAinL,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAm0C,YAAY,6KAA6K,QAAQ,qEAAqE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,0BAA0B"}