1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-B8WyT5R3.js";import{t as r}from"./createLucideIcon-n0nE-pcr.js";import{t as i}from"./heart-BW3ODDu_.js";import{t as a}from"./log-in-D2ZxfSmU.js";import{t as o}from"./store-Bbipsthx.js";import{t as s}from"./link-DVwM66Kv.js";var c=r(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),l=r(`ticket-plus`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}],[`path`,{d:`M12 9v6`,key:`199k2o`}]]),u=e(t(),1),d=n();function f(){let[e,t]=(0,u.useState)(!1),n=(0,u.useRef)(null),r=(0,u.useId)();(0,u.useEffect)(()=>{if(!e)return;function r(e){let r=e.target;r instanceof Node&&n.current?.contains(r)||t(!1)}function i(e){e.key===`Escape`&&t(!1)}return document.addEventListener(`pointerdown`,r,!0),document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`pointerdown`,r,!0),document.removeEventListener(`keydown`,i)}},[e]);function f(){t(!1)}return(0,d.jsxs)(`div`,{ref:n,className:`mobile-nav${e?` is-open`:``}`,children:[(0,d.jsxs)(`button`,{type:`button`,className:`mobile-nav__button`,"aria-expanded":e,"aria-controls":r,onClick:()=>t(e=>!e),children:[(0,d.jsx)(c,{size:19,strokeWidth:2,"aria-hidden":`true`}),(0,d.jsx)(`span`,{children:`Menu`})]}),e?(0,d.jsxs)(`nav`,{id:r,"aria-label":`Mobile navigation`,children:[(0,d.jsx)(s,{href:`/#coupons`,onClick:f,children:`Coupons`}),(0,d.jsx)(s,{href:`/best-coupons-this-week`,onClick:f,children:`Best this week`}),(0,d.jsx)(s,{href:`/stores`,onClick:f,children:`Stores`}),(0,d.jsx)(s,{href:`/categories`,onClick:f,children:`Categories`}),(0,d.jsx)(s,{href:`/how-it-works`,onClick:f,children:`How it works`}),(0,d.jsx)(s,{href:`/verification-policy`,onClick:f,children:`Verification policy`}),(0,d.jsxs)(s,{href:`/favorites`,onClick:f,children:[(0,d.jsx)(i,{size:16,"aria-hidden":`true`}),`Saved offers`]}),(0,d.jsxs)(s,{href:`/account`,onClick:f,children:[(0,d.jsx)(a,{size:16,"aria-hidden":`true`}),`Sign in or create account`]}),(0,d.jsxs)(s,{href:`/account?mode=register&intent=coupon`,onClick:f,children:[(0,d.jsx)(l,{size:16,"aria-hidden":`true`}),`Submit a coupon`]}),(0,d.jsxs)(s,{href:`/account?mode=register&intent=store`,onClick:f,children:[(0,d.jsx)(o,{size:16,"aria-hidden":`true`}),`Submit a store`]})]}):null]})}export{f as MobileNav};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.