"use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
  [3582], {
    8262: function(e, t, o) {
      o.d(t, {
        ZP: function() {
          return footer
        }
      });
      var r = o(97458),
        i = o(52983),
        n = o(51838),
        a = o.n(n),
        s = o(39978),
        c = o(68343),
        l = o(74057),
        footer_logo = () => (0, r.jsx)(l.Z, {
          className: "text-3xl font-bold text-white",
          surface: "dark"
        }),
        d = o(52116),
        h = o(57928),
        sloth = e => {
          let {
            isSlothFacingRight: t,
            x: o = 0,
            y: i = 0
          } = e;
          return t ? (0, r.jsx)(d.E.div, {
            initial: {
              opacity: 0,
              left: o,
              top: i
            },
            animate: {
              left: "".concat(o - 191.25, "px"),
              top: "".concat(i + 40, "px"),
              opacity: 1
            },
            exit: {
              opacity: 0
            },
            transition: {
              type: "spring",
              stiffness: 60
            },
            className: "fixed h-[212px] w-[151px]",
            "data-testid": "sloth",
            children: (0, r.jsx)(h.K, {
              image: {
                src: "/next/optimized/sloth-no-shadow.png",
                alt: "",
                width: 125,
                height: 161
              },
              sources: [{
                src: "/next/optimized/sloth-no-shadow.webp",
                srcSet: ["/next/optimized/sloth-no-shadow.webp 1x", "/next/optimized/sloth-no-shadow@2x.webp 2x"]
              }]
            })
          }) : (0, r.jsx)(d.E.div, {
            initial: {
              opacity: 0,
              left: o,
              top: i
            },
            animate: {
              left: "".concat(o + 40, "px"),
              top: "".concat(i + 40, "px"),
              opacity: 1
            },
            exit: {
              opacity: 0
            },
            transition: {
              type: "spring",
              stiffness: 60
            },
            className: "fixed h-[212px] w-[151px]",
            "data-testid": "sloth",
            style: {
              transform: "scaleX(-1)"
            },
            children: (0, r.jsx)(h.K, {
              image: {
                src: "/next/optimized/sloth-no-shadow.png",
                alt: "",
                width: 125,
                height: 161
              },
              sources: [{
                src: "/next/optimized/sloth-no-shadow.webp",
                srcSet: ["/next/optimized/sloth-no-shadow.webp 1x", "/next/optimized/sloth-no-shadow@2x.webp 2x"]
              }]
            })
          })
        },
        m = o(18997),
        use_mouse_position = () => {
          let [e, t] = (0, i.useState)({
            x: 0,
            y: 0
          });
          return (0, i.useEffect)(() => {
            let updateMousePosition = e => {
              t({
                x: e.clientX,
                y: e.clientY
              })
            };
            return window.addEventListener("mousemove", updateMousePosition), () => window.removeEventListener("mousemove", updateMousePosition)
          }, []), e
        },
        u = o(47563);

      function moveToTop(e) {
        e.preventDefault(), window.scrollTo(0, 0);
        let t = document.querySelectorAll('button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])');
        t[0].focus({
          preventScroll: !0
        })
      }
      let FooterNavColumn = e => {
          let {
            children: t,
            className: o
          } = e;
          return (0, r.jsx)("div", {
            className: a()("flex flex-col space-y-6", o),
            children: t
          })
        },
        FooterNavGroup = e => {
          let {
            children: t,
            className: o,
            title: i
          } = e;
          return (0, r.jsxs)("div", {
            className: a()("flex flex-col space-y-2", o),
            children: [(0, r.jsx)("h3", {
              className: "overflow-hidden overflow-ellipsis whitespace-nowrap text-[22px] font-bold text-white",
              children: i
            }), t]
          })
        },
        FooterNav = e => {
          let {
            children: t
          } = e;
          return (0, r.jsx)("nav", {
            "aria-label": "Footer",
            className: "grid grid-cols-1 items-start gap-x-8 gap-y-8 py-8 sm:grid-cols-2 md:py-0 lg:gap-x-10 xl:grid-cols-4 xl:gap-x-14",
            children: t
          })
        },
        FooterNavItem = e => {
          let {
            href: t,
            children: o,
            className: i,
            trackingName: n,
            onClick: s
          } = e;
          return (0, r.jsx)("a", {
            className: a()("group whitespace-nowrap text-white", i),
            href: t,
            onClick: e => {
              u.Z.trackClick({
                target_element: n,
                click_type: "footer-click"
              }), null == s || s(e)
            },
            children: (0, r.jsxs)("div", {
              className: "relative inline-block",
              children: [o, (0, r.jsx)("div", {
                className: a()("absolute left-0 right-0 -bottom-0.5 h-0.5 w-0 bg-white transition-all group-hover:w-full")
              })]
            })
          })
        };
      var footer = e => {
        let {
          disclosures: t
        } = e, [o, n] = (0, i.useState)(!1), [a, l] = (0, c.YD)({
          threshold: .75
        }), [d, h] = (0, i.useState)(!0), [u, x] = (0, i.useState)(!1), {
          x: g,
          y: p
        } = use_mouse_position(), f = (0, m.Z)();
        return ((0, i.useEffect)(() => {
          if (window.innerWidth < 768) {
            h(!1);
            return
          }
          if (window.innerWidth < 1024) {
            h(!0);
            return
          }
          g < window.innerWidth / 2 ? h(!1) : h(!0)
        }, [g]), (0, i.useEffect)(() => {
          l || n(!1)
        }, [l]), f) ? (0, r.jsx)("footer", {
          "data-testid": "footer",
          className: "relative overflow-hidden bg-space",
          children: (0, r.jsxs)("div", {
            className: "mx-auto max-w-[2024px] divide-y divide-white px-8 lg:px-12",
            children: [(0, r.jsxs)("div", {
              ref: a,
              onMouseEnter: () => {
                u || n(!0)
              },
              onMouseLeave: () => {
                u || n(!1)
              },
              onTouchStart: () => {
                x(!0)
              },
              className: "flex flex-col justify-between gap-x-6 pt-8 pb-8 md:flex-row md:pt-16",
              children: [(0, r.jsx)(footer_logo, {}), (0, r.jsxs)(FooterNav, {
                children: [(0, r.jsx)(FooterNavColumn, {
                  children: (0, r.jsxs)(FooterNavGroup, {
                    title: "Investing",
                    children: [(0, r.jsx)(FooterNavItem, {
                      href: "/investing",
                      trackingName: "investing-automated-investing",
                      children: "Automated Investing"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/stock-investing",
                      trackingName: "stock-investing",
                      children: "Stock Investing"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/explore",
                      trackingName: "investing-explore-all-investments",
                      children: "Explore all investments"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/retirement",
                      trackingName: "investing-retirement",
                      children: "Retirement"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/college",
                      trackingName: "investing-college",
                      children: "College"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/socially-responsible-investing",
                      trackingName: "investing-sri",
                      children: "Socially Responsible"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/pricing",
                      trackingName: "investing-pricing",
                      children: "Pricing"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/tax-loss-harvesting",
                      trackingName: "investing-tlh",
                      children: "Tax-loss Harvesting"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/historical-performance",
                      trackingName: "investing-historical-performance",
                      children: "Historical Performance"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/methodology",
                      trackingName: "investing-whitepapers",
                      children: "Whitepapers"
                    })]
                  })
                }), (0, r.jsxs)(FooterNavColumn, {
                  children: [(0, r.jsxs)(FooterNavGroup, {
                    title: "Save",
                    children: [(0, r.jsx)(FooterNavItem, {
                      href: "/cash",
                      trackingName: "cash",
                      children: "Cash"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/find-atm",
                      trackingName: "cash-atm-locator",
                      children: "ATM Locator"
                    })]
                  }), (0, r.jsxs)(FooterNavGroup, {
                    title: "Bonds",
                    children: [(0, r.jsx)(FooterNavItem, {
                      href: "/automated-bond-ladder",
                      trackingName: "automated-bond-ladder",
                      children: "Automated Bond Ladder"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/automated-bond-portfolio",
                      trackingName: "automated-bond-portfolio",
                      children: "Automated Bond Portfolio"
                    })]
                  }), (0, r.jsx)(FooterNavGroup, {
                    title: "Borrow",
                    children: (0, r.jsx)(FooterNavItem, {
                      href: "/portfolio-line-of-credit",
                      trackingName: "borrow",
                      children: "Borrow"
                    })
                  })]
                }), (0, r.jsx)(FooterNavColumn, {
                  children: (0, r.jsxs)(FooterNavGroup, {
                    title: "Learn",
                    children: [(0, r.jsx)(FooterNavItem, {
                      href: "https://blog.wealthfront.com",
                      trackingName: "learn-blog",
                      children: "Blog"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "https://support.wealthfront.com/hc/en-us",
                      trackingName: "learn-help-center",
                      children: "Help Center"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/risk-questionnaire",
                      trackingName: "learn-risk-questionnaire",
                      children: "What level of risk suits you best?"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/ira-calculator",
                      trackingName: "learn-ira-calculator",
                      children: "IRA Contributions Calculator"
                    })]
                  })
                }), (0, r.jsxs)(FooterNavColumn, {
                  children: [(0, r.jsxs)(FooterNavGroup, {
                    title: "About",
                    children: [(0, r.jsx)(FooterNavItem, {
                      href: "https://press.wealthfront.com/",
                      trackingName: "about-newsroom",
                      children: "Newsroom"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/reviews",
                      trackingName: "about-reviews",
                      children: "Reviews"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/careers",
                      trackingName: "about-careers",
                      children: "Careers"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/legal",
                      trackingName: "about-legal",
                      children: "Legal"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/security",
                      trackingName: "about-security",
                      children: "Security"
                    }), (0, r.jsx)(FooterNavItem, {
                      href: "/sitemap",
                      trackingName: "about-sitemap",
                      children: "Sitemap"
                    })]
                  }), (0, r.jsx)(FooterNavItem, {
                    href: "#",
                    onClick: moveToTop,
                    trackingName: "back-to-top",
                    children: "Back to top"
                  })]
                })]
              }), (0, r.jsx)(s.M, {
                children: o && (0, r.jsx)(sloth, {
                  isSlothFacingRight: d,
                  x: g,
                  y: p
                })
              })]
            }), t && (0, r.jsx)("div", {
              "data-testid": "landing-page-footer-disclosure",
              className: "prose-periwinkle prose max-w-full space-y-4 pt-8 pb-16 text-xs text-steel md:px-0 lg:px-0",
              children: t
            })]
          })
        }) : null
      }
    },
    57928: function(e, t, o) {
      o.d(t, {
        K: function() {
          return MarketingPicture
        }
      });
      var r = o(97458),
        i = o(95435),
        n = o(42128);

      function MarketingPicture(e) {
        let {
          image: t,
          testId: o,
          sources: a,
          preload: s = !1
        } = e, c = a[0];
        return (0, r.jsxs)(r.Fragment, {
          children: [(0, r.jsx)(i.b, {
            src: c.src,
            srcSet: c.srcSet,
            preload: s
          }), (0, r.jsxs)("picture", {
            "data-testid": o,
            children: [a.map(function(e) {
              let {
                src: t,
                srcSet: o,
                media: i
              } = e, a = (0, n.FK)(t), s = (0, n.IU)(o), c = t.split(".").slice(-1)[0];
              return (0, r.jsx)("source", {
                type: (0, n.wg)(c),
                srcSet: s,
                media: i
              }, a)
            }), (0, r.jsx)(i.M, {
              ...t,
              preload: !s && s
            })]
          })]
        })
      }
    },
    44155: function(e, t, o) {
      o.d(t, {
        FH: function() {
          return toFixed
        },
        P4: function() {
          return createSlotMachineEffect
        },
        Pj: function() {
          return s
        },
        UT: function() {
          return assertUnreachable
        },
        kd: function() {
          return createSvgHashUtils
        },
        us: function() {
          return getTransition
        },
        x2: function() {
          return getToday
        }
      });
      var r = o(3605),
        i = o(5681),
        n = o.n(i);

      function createSvgHashUtils(e) {
        return {
          hash: t => n()("".concat(e).concat(t)),
          url: t => "url(#".concat(n()("".concat(e).concat(t)), ")")
        }
      }

      function createSlotMachineEffect(e) {
        let {
          start: t,
          stop: o,
          duration: i,
          type: n,
          onUpdate: a
        } = e;
        (0, r.j)(t, o, {
          type: n || "tween",
          duration: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? 0 : i || 3,
          onUpdate: a
        })
      }
      let toFixed = (e, t) => (1e3 * e / 10).toFixed(t),
        a = {
          delay: 0,
          duration: 0,
          staggerChildren: 0
        };

      function getTransition(e) {
        let t = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
        return t ? a : e
      }

      function getToday() {
        let e = new Date().getDate(),
          t = new Date().getMonth() + 1,
          o = new Date().getFullYear(),
          r = e < 10 ? "0".concat(e) : e;
        return "".concat(t < 10 ? "0".concat(t) : t, "/").concat(r, "/").concat(o)
      }
      let assertUnreachable = e => {
          throw Error("Didn’t expect to get here")
        },
        s = {
          _getClientWidth: () => document.documentElement.clientWidth,
          _getClientHeight: () => document.documentElement.clientHeight,
          _getOffsetHeight: () => document.documentElement.offsetHeight,
          _getInnerWidth: () => window.innerWidth,
          _getInnerHeight: () => window.innerHeight,
          _getPageYOffset: () => window.pageYOffset,
          getWidth: () => Math.max(s._getClientWidth(), s._getInnerWidth() || 0),
          getHeight: () => Math.max(s._getClientHeight(), s._getInnerHeight() || 0),
          isMobileScreen: () => 768 >= s.getWidth(),
          isMediumScreen: () => 1140 > s.getWidth() && s.getWidth() > 768,
          isLargeScreen: () => s.getWidth() >= 1140
        }
    }
  }
]);
//#