{"version":3,"file":"shared-lib.CSMMecNQ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8YLVzifh6IyxlmCjdivQ/jGEKOWevSV4xTW6US1NN/siteMetadata.js"],"sourcesContent":["// Generated by Framer (c2a8602)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:'<!-- Google tag (gtag.js) -->\\n<script async=\"\" src=\"https://www.googletagmanager.com/gtag/js?id=AW-17435812611\">\\n</script>\\n<script>\\n  window.dataLayer = window.dataLayer || [];\\n  function gtag(){dataLayer.push(arguments);}\\n  gtag(\\'js\\', new Date());\\n\\n  gtag(\\'config\\', \\'AW-17435812611\\');\\n</script>\\n\\n<!-- Rewardful -->\\n<script async=\"\" src=\"https://r.wdfl.co/rw.js\" data-rewardful=\"3d2909\" data-domains=\"listingview.io,app.listingview.io\"></script>\\n\\n<!-- Persist ?via= on the marketing site & propagate to the app -->\\n<script>\\n(function () {\\n  const APP_HOST = \"app.listingview.io\";\\n  const VIA_KEY = \"rw_via\";\\n\\n  function getViaFromUrl() {\\n    return new URLSearchParams(location.search).get(\"via\");\\n  }\\n\\n  function setVia(v) {\\n    if (v) localStorage.setItem(VIA_KEY, v);\\n  }\\n\\n  function getVia() {\\n    return localStorage.getItem(VIA_KEY);\\n  }\\n\\n  // 1) Capture ?via= on first touch\\n  const incomingVia = getViaFromUrl();\\n  if (incomingVia) setVia(incomingVia);\\n\\n  // 2) Ensure current URL always shows ?via= (nice for debugging/sharing)\\n  function ensureViaInCurrentUrl() {\\n    const via = getVia();\\n    if (!via) return;\\n    const u = new URL(location.href);\\n    if (!u.searchParams.get(\"via\")) {\\n      u.searchParams.set(\"via\", via);\\n      history.replaceState(history.state, \"\", u.toString());\\n    }\\n  }\\n  ensureViaInCurrentUrl();\\n\\n  // 3) Append ?via= to relevant links (internal + app)\\n  function rewriteLinks(root = document) {\\n    const via = getVia();\\n    if (!via) return;\\n    const anchors = root.querySelectorAll(\"a[href]\");\\n    anchors.forEach(a => {\\n      const href = a.getAttribute(\"href\");\\n      if (!href) return;\\n\\n      // Only absolute URLs or same-origin relative paths\\n      let url;\\n      try {\\n        url = href.startsWith(\"http\") ? new URL(href) : new URL(href, location.origin);\\n      } catch { return; }\\n\\n      // Skip if already has via\\n      if (url.searchParams.has(\"via\")) return;\\n\\n      const isInternal = url.origin === location.origin;\\n      const goesToApp = url.hostname === APP_HOST;\\n\\n      if (isInternal || goesToApp) {\\n        url.searchParams.set(\"via\", via);\\n        a.setAttribute(\"href\", url.toString());\\n      }\\n    });\\n  }\\n  rewriteLinks();\\n\\n  // 4) Keep ?via= across SPA navigations in Framer\\n  //    - Monkey-patch pushState/replaceState to re-apply via\\n  //    - Listen to popstate (back/forward)\\n  const _push = history.pushState;\\n  const _replace = history.replaceState;\\n\\n  history.pushState = function (state, title, url) {\\n    const res = _push.apply(this, arguments);\\n    requestAnimationFrame(() => {\\n      ensureViaInCurrentUrl();\\n      rewriteLinks();\\n    });\\n    return res;\\n  };\\n\\n  history.replaceState = function (state, title, url) {\\n    const res = _replace.apply(this, arguments);\\n    requestAnimationFrame(() => {\\n      ensureViaInCurrentUrl();\\n      rewriteLinks();\\n    });\\n    return res;\\n  };\\n\\n  window.addEventListener(\"popstate\", () => {\\n    ensureViaInCurrentUrl();\\n    rewriteLinks();\\n  });\\n\\n  // 5) MutationObserver: if Framer swaps content, re-rewrite anchors\\n  const mo = new MutationObserver(muts => {\\n    for (const m of muts) {\\n      if (m.type === \"childList\" && (m.addedNodes?.length || 0) > 0) {\\n        m.addedNodes.forEach(n => {\\n          if (n.nodeType === 1) rewriteLinks(n);\\n        });\\n      }\\n      if (m.type === \"attributes\" && m.attributeName === \"href\" && m.target?.tagName === \"A\") {\\n        rewriteLinks(document);\\n      }\\n    }\\n  });\\n  mo.observe(document.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: [\"href\"] });\\n\\n  // 6) Safety: if user lands later without param but we have it saved, keep showing it\\n  window.addEventListener(\"load\", () => {\\n    ensureViaInCurrentUrl();\\n    rewriteLinks();\\n  });\\n})();\\n</script>',description:\"Find Best Selling Products on Etsy. Discover top-selling Etsy products, analyze competitors, and uncover profitable niches, so you can make data-driven decisions.\",favicon:\"https://framerusercontent.com/assets/m1tQZuUuza8zrcVDz6OZXU3ohY0.svg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/vWa2fdrLXXchXqABGzgNVBNQo.png\",title:\"ListingView\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA+yH,YAAY,qKAAqK,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,qEAAqE,MAAM,cAAc"}