1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2395:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var r=s(95155),a=s(63554),n=s(18509);function i(){return(0,n.j)()?(0,r.jsx)(a.default,{id:"posthog-analytics",strategy:"afterInteractive",children:'\n !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);\n var _phOpts = {\n api_host: \'https://f.lmk.today\',\n person_profiles: \'identified_only\',\n capture_pageview: true,\n capture_pageleave: false,\n autocapture: false,\n disable_session_recording: true,\n capture_heatmaps: false,\n capture_dead_clicks: false,\n rageclick: false,\n capture_performance: { web_vitals: false, network_timing: false }\n };\n var _did = document.cookie.split(\'; \').find(function(c){return c.startsWith(\'lmk_ph_did=\')});\n if (_did) { _phOpts.bootstrap = { distinctID: _did.split(\'=\')[1] }; }\n posthog.init(\'phc_326NN3fgdaTy6kEtHREHu8GaevupjHybOQdstIwDwZO\', _phOpts);\n '}):null}},5891:(e,t,s)=>{"use strict";s.d(t,{Ef:()=>l,GZ:()=>n,Gj:()=>i,jE:()=>o,qP:()=>a});let r={birthday:"birthday",wedding:"wedding_love",engagement:"wedding_love",bridal_shower:"wedding_love",anniversary:"wedding_love",baby_shower:"baby_shower",christmas:"christmas",hanukkah:"hanukkah",graduation:"graduation",housewarming:"housewarming",mothers_day:"mothers_day",fathers_day:"fathers_day",valentines_day:"valentines_day",halloween:"halloween",other_holiday:"all",other_event:"back_to_school"};function a(e){return e?"/products?wishlist=".concat(encodeURIComponent(e)):"/products"}function n(e){let t=e?r[e]:void 0;return t&&"all"!==t?"/wishlists/browse?event_type=".concat(encodeURIComponent(t)):"/wishlists/browse"}function i(e){let t=e.toLowerCase();return/\bbirthday\b/.test(t)?"birthday":/\b(wedding|bridal|engagement|anniversary)\b/.test(t)?"wedding_love":/\bbaby\s*shower\b/.test(t)||/\bbaby\b/.test(t)&&/\bgift/.test(t)?"baby_shower":/\bchristmas\b|\bholiday\b/.test(t)?"christmas":/\bhanukkah\b/.test(t)?"hanukkah":/\bgraduation\b/.test(t)?"graduation":/\bhousewarming\b/.test(t)?"housewarming":/\bmother'?s?\s*day\b/.test(t)?"mothers_day":/\bfather'?s?\s*day\b/.test(t)?"fathers_day":/\bvalentine/.test(t)?"valentines_day":/\bhalloween\b/.test(t)?"halloween":null}function o(e){let t=e.toLowerCase();return/\bgift(s)?\b|\bpresent(s)?\b/.test(t)||/\b(birthday|anniversary|christmas|valentine|graduation|wedding|housewarming|bridal|baby shower|hanukkah|halloween)\b/.test(t)}let l="/bot-shopper"},6536:(e,t,s)=>{"use strict";s.d(t,{default:()=>h});var r=s(95155),a=s(55028),n=s(12115),i=s(54165),o=s(15452),l=s(80904),c=s(59434);let d=(0,a.default)(()=>Promise.all([s.e(5107),s.e(44625),s.e(13279),s.e(96510),s.e(34558),s.e(86726),s.e(2180),s.e(93008),s.e(36653),s.e(62395),s.e(89117)]).then(s.bind(s,89117)),{loadableGenerated:{webpack:()=>[89117]},ssr:!1,loading:()=>(0,r.jsx)("div",{className:"flex h-full items-center justify-center bg-slate-50",children:(0,r.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-brand border-t-transparent"})})});function h(){let{isOpen:e,closeModal:t}=(0,l.T)();return(0,r.jsx)(i.lG,{open:e,onOpenChange:e=>!e&&t(),children:(0,r.jsxs)(i.ZJ,{children:[(0,r.jsx)(i.LC,{className:"z-[11000]"}
1),(0,r.jsxs)(o.UC,{className:(0,c.cn)("fixed z-[11001] flex flex-col overflow-hidden bg-white shadow-2xl outline-none","inset-0 rounded-none","sm:inset-auto sm:left-1/2 sm:top-1/2 sm:h-[90vh] sm:max-h-[90vh] sm:w-full sm:max-w-4xl","sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl sm:border sm:border-gray-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95"),children:[(0,r.jsx)(i.L3,{className:"sr-only",children:"AI Shopping Assistant"}),(0,r.jsx)(i.rr,{className:"sr-only",children:"Chat with the LMK shopping assistant to find products across retailers."}),(0,r.jsx)("div",{className:"relative min-h-0 flex-1",children:(0,r.jsx)(n.Suspense,{fallback:(0,r.jsx)("div",{className:"flex h-full items-center justify-center bg-slate-50",children:(0,r.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-brand border-t-transparent"})}),children:e&&(0,r.jsx)(d,{variant:"modal",onClose:t})})})]})]})})}},9913:(e,t,s)=>{"use strict";s.d(t,{IpProvider:()=>o});var r=s(95155),a=s(12115),n=s(59434);let i=(0,a.createContext)({isAllowed:!1,isLoading:!0});function o(e){let{children:t}=e,[s,o]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/ip"),t=await e.json();o((0,n.WL)(t.ip))}catch(e){console.error("Failed to get IP:",e),o(!1)}finally{c(!1)}})()},[]),(0,r.jsx)(i.Provider,{value:{isAllowed:s,isLoading:l},children:t})}},10283:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>g,Tw:()=>x,oj:()=>u});var r=s(95155),a=s(12115),n=s(47650),i=s(37648),o=s(74601),l=s(80659),c=s(75074),d=s(6874),h=s.n(d);let m="lmk_recent_searches";function u(){try{return JSON.parse(localStorage.getItem(m)||"[]")}catch(e){return[]}}function x(e){if(e.trim())try{let t=u().filter(t=>t.toLowerCase()!==e.toLowerCase());t.unshift(e.trim()),localStorage.setItem(m,JSON.stringify(t.slice(0,5)))}catch(e){}}function g(e){let{query:t,isOpen:s,onSelect:d,onProductClick:m,onClose:x,portalToBody:g=!1,anchorRef:p}=e,[b,w]=(0,a.useState)(null),[y,v]=(0,a.useState)([]),[j,N]=(0,a.useState)(-1),[k,_]=(0,a.useState)(null),C=(0,a.useRef)(null),S=(0,a.useRef)(null);(0,a.useEffect)(()=>{s&&v(u())},[s]),(0,a.useEffect)(()=>{if(!g||!(null==p?void 0:p.current)||!s)return;let e=()=>{p.current&&_(p.current.getBoundingClientRect())};return e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[g,p,s]),(0,a.useEffect)(()=>{if(!s||t.length<2){w(null),N(-1);return}let e=setTimeout(async()=>{var e;null===(e=S.current)||void 0===e||e.abort();let s=new AbortController;S.current=s;try{let e=await fetch("/api/products/autocomplete?q=".concat(encodeURIComponent(t)),{signal:s.signal});if(e.ok){let t=await e.json();w(t),N(-1)}}catch(e){}},150);return()=>{var t;clearTimeout(e),null===(t=S.current)||void 0===t||t.abort()}},[t,s]),(0,a.useEffect)(()=>{let e=e=>{C.current&&!C.current.contains(e.target)&&x()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[x]);let A=function(e,t,s){let r=[],a=new Set,n=(e,t)=>{let s=f(e);a.has(s)||(a.add(s),r.push({value:e,slug:t}))};return s.length<2?t.forEach(e=>n(e)):e&&(e.searches.forEach(e=>n(e)),e.products.forEach(e=>n(e.title,e.slug||void 0)),e.brands.forEach(e=>n(e))),r}(b,y,t),E=(0,a.useCallback)(e=>{if(s&&0!==A.length)if("ArrowDown"===e.key)e.preventDefault(),N(e=>(e+1)%A.length);else if("ArrowUp"===e.key)e.preventDefault(),N(e=>e<=0?A.length-1:e-1);else if("Enter"===e.key&&j>=0){e.preventDefault();let t=A[j];t.slug&&m?m(t.slug):d(t.value)}else"Escape"===e.key&&x()},[s,A,j,d,m,x]);if((0,a.useEffect)(()=>(document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)),[E]),!s)return null;let F=t.length<2&&y.length>0,P=t.length>=2&&b;if(!F&&!P)return null;let L=e=>{e.slug&&m?m(e.slug):d(e.title)},I=0,T=(0,r.jsxs)("div",{ref:C,className:g?"fixed z-[9999] bg-white border border-gray-200 rounded-lg shadow-lg overflow-hidden overflow-y-auto":"absolute top-full left-0 right-0 z-50 mt-1 bg-white border border-gray-200 rounded-lg shadow-lg overflow-hidden max-h-[400px] overflow-y-auto",style:g&&k?{top:k.bottom+4,left:window.innerWidth<768?8:k.left,right:window.innerWidth<768?8:void 0,width:window.innerWidth<768?void 0:k.width,maxHeight:window.innerWidth<768?"70vh":400}:void 0,children:[F&&(0,r.jsxs)("div",{className:"p-2",children:[(0,r.jsxs)("div",{className:"px-2 py-1 text-xs font-medium text-gray-500 uppercase tracking-wide flex items-center gap-1",children:[(0,r.jsx)(i.A,{className:"h-3 w-3"})," Recent"]}),y.map((e,t)=>{let s=I++;return(0,r.jsx)("button",{className:"w-full text-left px-3 py-2.5 sm:py-2 text-sm rounded-md transition-colors ".concat(j===s?"bg-gray-100":"hover:bg-gray-50"),onClick:()=>d(e),onMouseEnter:()=>N(s),children:e},"recent-".concat(t))})]}),P&&(0,r.jsxs)(r.Fragment,{children:[b.collections&&b.collections.length>
10&&(0,r.jsxs)("div",{className:"m-2 rounded-lg bg-gradient-to-r from-amber-50 to-orange-50 border border-amber-200/60 p-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("span",{className:"text-xs font-semibold text-amber-800 uppercase tracking-wide flex items-center gap-1",children:[(0,r.jsx)(o.A,{className:"h-3 w-3 text-amber-500"})," Get Inspired"]}),(0,r.jsx)(h(),{href:"/collections/life-events",className:"text-[11px] font-medium text-amber-700 hover:text-amber-900 hover:underline",onClick:x,children:"View All â"})]}),(0,r.jsx)("div",{className:"flex flex-col gap-1",children:b.collections.map((e,t)=>(0,r.jsxs)(h(),{href:e.slug,className:"flex items-center gap-2 px-2.5 py-2 rounded-md bg-white/70 hover:bg-white border border-amber-100 transition-colors",onClick:x,children:[(0,r.jsx)("span",{className:"flex items-center justify-center h-7 w-7 rounded-full bg-amber-100 text-amber-600 flex-shrink-0",children:(0,r.jsx)(o.A,{className:"h-3.5 w-3.5"})}),(0,r.jsx)("span",{className:"text-sm font-medium text-gray-900 truncate",children:e.title})]},"collection-".concat(t)))})]}),(()=>{let e=new Set,t=b.searches.filter(t=>{let s=f(t);return!e.has(s)&&(e.add(s),!0)});return t.length>0?(0,r.jsxs)("div",{className:"p-2 border-b border-gray-100",children:[(0,r.jsxs)("div",{className:"px-2 py-1 text-xs font-medium text-gray-500 uppercase tracking-wide flex items-center gap-1",children:[(0,r.jsx)(l.A,{className:"h-3 w-3"})," Popular Searches"]}),t.map((e,t)=>{let s=I++;return(0,r.jsxs)("button",{className:"w-full text-left px-3 py-2.5 sm:py-2 text-sm rounded-md transition-colors ".concat(j===s?"bg-gray-100":"hover:bg-gray-50"),onClick:()=>d(e),onMouseEnter:()=>N(s),children:[(0,r.jsx)(c.A,{className:"h-3 w-3 inline mr-2 text-gray-400"}),e]},"search-".concat(t))})]}):null})(),b.products.length>0&&(0,r.jsxs)("div",{className:"p-2",children:[(0,r.jsx)("div",{className:"px-2 py-1 text-xs font-medium text-gray-500 uppercase tracking-wide",children:"Products"}),b.products.map((e,t)=>{let s=I++;return(0,r.jsxs)("button",{className:"w-full text-left px-3 py-2.5 sm:py-2 text-sm rounded-md flex items-center gap-3 transition-colors ".concat(j===s?"bg-gray-100":"hover:bg-gray-50"),onClick:()=>L(e),onMouseEnter:()=>N(s),children:[e.image&&(0,r.jsx)("img",{src:e.image,alt:"",className:"h-8 w-8 object-cover rounded flex-shrink-0"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"truncate",children:e.title}),e.brand&&(0,r.jsx)("div",{className:"text-xs text-gray-500",children:e.brand})]})]},"product-".concat(t))})]}),b.brands.length>0&&(0,r.jsxs)("div",{className:"p-2 border-t border-gray-100",children:[(0,r.jsx)("div",{className:"px-2 py-1 text-xs font-medium text-gray-500 uppercase tracking-wide",children:"Brands"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5 px-2 py-1",children:b.brands.map((e,t)=>{let s=I++;return(0,r.jsx)("button",{className:"px-3 py-1.5 sm:py-1 text-xs rounded-full border transition-colors ".concat(j===s?"bg-primary text-primary-foreground border-primary":"border-gray-200 hover:border-gray-300 text-gray-700"),onClick:()=>d(e),onMouseEnter:()=>N(s),children:e},"brand-".concat(t))})})]})]})]});return g&&"undefined"!=typeof document?(0,n.createPortal)((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fixed inset-0 z-[9998]",onClick:x}),T]}),document.body):T}function f(e){return e.normalize("NFKC").replace(/\s+/g," ").trim().toLowerCase()}},10321:(e,t,s)=>{"use strict";s.d(t,{default:()=>o});var r=s(12115),a=s(52643),n=s(41927);let i="lmk_signup_conversion_pending";function o(){return(0,r.useEffect)(()=>{"undefined"!=typeof document&&document.cookie.split(";").map(e=>e.trim()).some(e=>e==="".concat(i,"=1"))&&("undefined"!=typeof document&&(document.cookie="".concat(i,"=; Max-Age=0; Path=/; SameSite=Lax")),(async()=>{try{let e=(0,a.createClient)(),{data:{user:t}}=await e.auth.getUser();await (0,n.y)("sign_up",(null==t?void 0:t.email)?{email:t.email}:void 0)}catch(e){console.error("â Failed to fire signup conversion from auth callback marker:",e)}})())},[]),null}},17362:(e,t,s)=>{"use strict";s.d(t,{default:()=>x});var r=s(95155),a=s(12115),n=s(15340),i=s(18509),o=s(63554);function l(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{id:"meta-pixel",strategy:"lazyOnload",children:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '1210352544099732');\n fbq('track', 'PageView');\n "}),(0,r.jsx)("noscript",{children:(0,r.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=1210352544099732&ev=PageView&noscript=1",alt:""})})]})}var c=s(67258),d=s(55028);let h=(0,d.default)(()=>
1s.e(43065).then(s.bind(s,43065)),{loadableGenerated:{webpack:()=>[43065]},ssr:!1}),m=(0,d.default)(()=>s.e(36504).then(s.bind(s,36504)),{loadableGenerated:{webpack:()=>[36504]},ssr:!1});function u(){let[e,t]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let e=setTimeout(()=>t(!0),5e3);return()=>clearTimeout(e)},[]),e)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h,{}),(0,r.jsx)(m,{})]}):null}function x(){let e=(0,i.j)(),[t,s]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{e&&s(!(0,n.vt)())},[e]),t)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l,{}),(0,r.jsx)(c.A,{}),(0,r.jsx)(u,{})]}):null}},18224:(e,t,s)=>{"use strict";s.d(t,{default:()=>f});var r=s(95155),a=s(12115),n=s(66766),i=s(35695),o=s(25318),l=s(21868),c=s(95675),d=s(33055),h=s(46204),m=s(38746);let u={control:{headline:"Wishlist Faster",subheadline:"Add any product from anywhere. Install our free browser extension and save items from any store in one click.",testimonial:"I add everything to my wishlist while I browse â even stuff I canât find here."}};function x(e,t){var s,r,a;return!!/\/products(?:\/|$)/.test(e)&&!!((null===(s=t.get("q"))||void 0===s?void 0:s.trim())||(null===(r=t.get("query"))||void 0===r?void 0:r.trim())||(null===(a=t.get("search"))||void 0===a?void 0:a.trim()))}function g(){return window.innerWidth>=768}function f(){let e=(0,i.usePathname)(),t=(0,i.useSearchParams)(),{user:s,isLoading:f}=(0,l.A)(),[p,b]=(0,a.useState)(!1),[w,y]=(0,a.useState)("chrome"),v="control",j=(0,a.useRef)(!1),N=(0,a.useRef)(null),k=(0,a.useRef)(!1),_=u.control,C=t.get("q")||t.get("query")||t.get("search")||void 0,S=(0,a.useCallback)(()=>({variant:v}),[]),A=(0,a.useCallback)(()=>{(0,h.w5)()},[]),E=(0,a.useCallback)(t=>{A(),(0,d.Fg)("extension_search_prompt_closed",{action:t,page:e,query:C,...S()}),b(!1)},[A,e,C,S]);return((0,a.useEffect)(()=>{y(function(){let e=navigator.userAgent;return e.includes("Edg/")||e.includes("Edge/")?"edge":e.includes("Chrome/")&&!e.includes("Chromium/")?"chrome":"other"}())},[]),(0,a.useEffect)(()=>{let e=e=>{var t;k.current=!!(null===(t=e.detail)||void 0===t?void 0:t.active)};return window.addEventListener(h.In,e),()=>window.removeEventListener(h.In,e)},[]),(0,a.useEffect)(()=>{p&&!x(e,t)&&b(!1)},[p,e,t]),(0,a.useEffect)(()=>{if(N.current&&(clearTimeout(N.current),N.current=null),f||!s||!g()||!(0,m.zC)()||(0,h.hL)()||k.current||!x(e,t))return;let r=!1;return async function(){try{let s=await (0,m._6)();if(r||s)return;N.current=setTimeout(()=>{!(r||(0,h.hL)())&&!k.current&&g()&&x(e,t)&&(b(!0),A(),j.current||(j.current=!0,(0,d.Fg)("extension_search_prompt_shown",{page:e,query:C,variant:v})))},5e3)}catch(e){}}(),()=>{r=!0,N.current&&(clearTimeout(N.current),N.current=null)}},[f,s,e,t,A,C]),p)?(0,r.jsx)(c.A,{children:(0,r.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"relative w-full max-w-md bg-white rounded-2xl shadow-2xl animate-in zoom-in-95 duration-200 overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 px-6 py-4 bg-brand-light/60 border-b border-brand/10",children:[(0,r.jsx)(n.default,{src:"/images/logos/LMK.only.png",alt:"LMK.today",width:44,height:44,className:"rounded-lg"}),(0,r.jsx)("span",{className:"rounded-full bg-brand px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white",children:"Extension"})]}),(0,r.jsx)("button",{onClick:()=>E("dismiss"),className:"absolute top-3 right-3 p-2 text-gray-400 hover:text-gray-600 transition-colors rounded-full hover:bg-white/80 z-10","aria-label":"Close",children:(0,r.jsx)(o.A,{className:"w-5 h-5"})}),(0,r.jsxs)("div",{className:"px-6 pt-6 pb-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2 text-center leading-tight",children:_.headline}),(0,r.jsx)("p",{className:"text-gray-600 mb-6 text-center leading-relaxed",children:_.subheadline}),(0,r.jsx)("a",{href:(0,m.Un)(),target:"_blank",rel:"noopener noreferrer",onClick:()=>E("install"),className:"block w-full rounded-full bg-brand hover:bg-brand-hover text-white text-center font-semibold py-3.5 px-6 transition-colors shadow-lg",children:"edge"===w?"Add to Edge â It's Free":"Add to Chrome â It's Free"}),(0,r.jsxs)("p",{className:"mt-5 text-sm italic text-gray-500 text-center leading-relaxed",children:["â",_.testimonial,"â â Sarah M."]}),(0,r.jsx)("div",{className:"mt-2 flex justify-center gap-0.5","aria-label":"5 out of 5 stars",children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,r.jsx)("svg",{className:"w-4 h-4 text-yellow-400 fill-current",viewBox:"0 0 20 20","aria-hidden":!0,
1children:(0,r.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})},t))}),(0,r.jsx)("button",{type:"button",onClick:()=>E("later"),className:"mt-5 w-full rounded-full border border-gray-200 py-3 px-6 text-sm font-medium text-brand hover:bg-gray-50 transition-colors",children:"Maybe later"})]})]})})}):null}},18509:(e,t,s)=>{"use strict";s.d(t,{j:()=>a});var r=s(12115);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2500,[t,s]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let t,r=!1,a=()=>{r||(r=!0,s(!0))},n=()=>a();return window.addEventListener("scroll",n,{once:!0,passive:!0}),window.addEventListener("pointerdown",n,{once:!0}),window.addEventListener("keydown",n,{once:!0}),window.addEventListener("touchstart",n,{once:!0,passive:!0}),t="function"==typeof window.requestIdleCallback?window.requestIdleCallback(a,{timeout:e}):window.setTimeout(a,e),()=>{r=!0,window.removeEventListener("scroll",n),window.removeEventListener("pointerdown",n),window.removeEventListener("keydown",n),window.removeEventListener("touchstart",n),"function"==typeof window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},[e]),t}},24259:(e,t,s)=>{"use strict";s.d(t,{AM:()=>l,iM:()=>d,wp:()=>c});var r=s(12115),a=s(42191),n=s(87358);let i=null,o=new Set;function l(){i=!1,o.forEach(e=>e(!1))}function c(){return{birdieAvailable:"0"!==n.env.NEXT_PUBLIC_BIRDIE_ENABLED,loaded:!0}}function d(){let[e,t]=(0,r.useState)(null!=i&&i),[s,n]=(0,r.useState)(null!=i);return(0,r.useEffect)(()=>(o.add(t),()=>{o.delete(t)}),[]),(0,r.useEffect)(()=>{if(null!=i){t(i),n(!0);return}let e=(0,a.Ly)(new URLSearchParams(window.location.search).get(a.Z6));if(null!=e)document.cookie="".concat(a.iT,"=").concat(e?"1":"0","; path=/; max-age=").concat(15552e3*!!e,"; samesite=lax"),i=e;else{var s;let e=document.cookie.match(new RegExp("(?:^|; )".concat(a.iT,"=([^;]*)")));i=null!==(s=(0,a.Ly)(e?decodeURIComponent(e[1]):null))&&void 0!==s&&s}t(i),n(!0)},[]),{birdieInvited:e,loaded:s}}},25351:(e,t,s)=>{"use strict";s.d(t,{default:()=>N});var r=s(95155),a=s(12115),n=s(35695),i=s(21868),o=s(25318),l=s(36931),c=s(50286),d=s(19968),h=s(12543),m=s(52643),u=s(56671),x=s(14591),g=s(38746),f=s(94251),p=s(41927),b=s(1539),w=s(33055),y=s(52178);let v=["/products","/product","/wishlists","/categories","/collections","/merchants","/deals"],j={control:{headline:"Never Overpay Again",subheadline:"We track prices across <strong>357 stores</strong> so you don't have to.",socialProof:"saving with LMK.today",socialProofCount:"11,847 people"}};function N(){let[e,t]=(0,a.useState)(!1),[s,N]=(0,a.useState)(!1),[k,_]=(0,a.useState)("auth"),[C,S]=(0,a.useState)(""),[A,E]=(0,a.useState)(""),[F,P]=(0,a.useState)(!1),[L,I]=(0,a.useState)({email:!1,code:!1,google:!1,facebook:!1,apple:!1}),T=(0,n.usePathname)(),{user:M,isLoading:B}=(0,i.A)(),[R,z]=(0,a.useState)(!1),W="control",O=(0,a.useRef)(!1),U=(0,a.useRef)(null),D=j.control,q=(0,a.useCallback)(()=>{O.current||(O.current=!0,(0,w.Fg)("encouragement_modal_shown",{variant:W,page:T}))},[T]);(0,a.useEffect)(()=>{let e=()=>{z(window.innerWidth<768)};return e(),P((0,f.lg)()),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{if(M||B||s||!v.some(e=>T.startsWith(e))||T.startsWith("/deals/p/")||/^\/wishlists\/[^/]+\/?$/.test(T)&&!T.startsWith("/wishlists/browse")&&!T.startsWith("/wishlists/find")||localStorage.getItem("wishlistEncouragementDismissed"))return;let e=!1,r=!1,a=!1,n=()=>{!a&&e&&r&&(a=!0,t(!0),N(!0),q())},i=setTimeout(()=>{e=!0,n()},7e3),o=()=>{let e=Math.max(0,document.documentElement.scrollHeight-window.innerHeight);if(e<=48){r=!0,n();return}(window.scrollY/e>.15||window.scrollY>600)&&(r=!0,n())};return window.addEventListener("scroll",o,{passive:!0}),o(),requestAnimationFrame(o),()=>{clearTimeout(i),window.removeEventListener("scroll",o)}},[T,M,B,s,q]),(0,a.useEffect)(()=>{let e=()=>{M||B||(_("auth"),t(!0),N(!0),q())};return window.addEventListener("openWishlistEncouragementModal",e),()=>window.removeEventListener("openWishlistEncouragementModal",e)},[M,B,q]),(0,a.useEffect)(()=>()=>{var e;null===(e=U.current)||void 0===e||e.call(U)},[]);let G=function(){var e;let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===(e=U.current)||void 0===e||e.call(U),s||(0,w.Fg)("encouragement_modal_dismissed",{variant:W,step:k,page:T}),t(!1),_("auth"),S(""),E(""),I({email:!1,code:!1,google:!1,facebook:!1,apple:!1}
1),localStorage.setItem("wishlistEncouragementDismissed","true")},H=async e=>{if(e.preventDefault(),!C||!C.includes("@")){u.toast.error("Please enter a valid email address");return}(0,w.i6)("encouragement_modal_cta_clicked",{variant:W,cta:"email",page:T});try{I({...L,email:!0});let{ok:e}=await (0,x.q)(C,"encouragement-modal");if(!e){I({...L,email:!1});return}localStorage.setItem("auth_email",C);let t=(0,m.createClient)(),{error:s}=await t.auth.signInWithOtp({email:C,options:{emailRedirectTo:"".concat(window.location.origin,"/auth/callback?email=").concat(encodeURIComponent(C),"&redirect=").concat(encodeURIComponent(window.location.pathname))}});if(s)throw s;u.toast.success("Check your email for a 6-digit code!"),_("verify")}catch(s){console.error("Email signup error:",s);let e=s instanceof Error?s.message:"Failed to send verification code. Please try again.";u.toast.error(e);let t=e.toLowerCase();t.includes("15 seconds")||t.includes("security purposes")||(0,b.s)({source:"auth.encouragement_modal.email_signup",error:s,context:{variant:W,page:T,emailDomain:C.split("@")[1]||null}})}finally{I({...L,email:!1})}},K=async e=>{if(e.preventDefault(),!A||6!==A.length){u.toast.error("Please enter the 6-digit code");return}try{I({...L,code:!0});let e=(0,m.createClient)(),{error:s}=await e.auth.verifyOtp({email:C,token:A,type:"email"});if(s)throw s;try{let e=await fetch("/api/auth/post-signup",{method:"POST",headers:{"Content-Type":"application/json"}});e.ok&&(await e.json()).isNewUser&&await (0,p.y)("sign_up",C?{email:C}:void 0)}catch(e){console.error("Post-signup API call failed:",e)}u.toast.success("Successfully signed in!"),t(!1),localStorage.setItem("wishlistEncouragementDismissed","true"),window.location.reload()}catch(s){console.error("Code verification error:",s);let e=s instanceof Error?s.message:"Invalid code. Please try again.";u.toast.error(e);let t=e.toLowerCase();t.includes("invalid")||t.includes("expired")||t.includes("token")||(0,b.s)({source:"auth.encouragement_modal.code_verify",error:s,context:{variant:W,page:T}})}finally{I({...L,code:!1})}},J=async e=>{(0,w.i6)("encouragement_modal_cta_clicked",{variant:W,cta:e,page:T});try{var t;null===(t=U.current)||void 0===t||t.call(U),I(t=>({...t,[e]:!0}));let s=(0,m.createClient)(),{error:r}=await s.auth.signInWithOAuth({provider:e,options:{redirectTo:"".concat("https://lmk.today","/auth/callback?redirect=").concat(encodeURIComponent("/dashboard"))}});if(r)throw r;localStorage.setItem("wishlistEncouragementDismissed","true"),U.current=(0,y.K)(e,()=>{I(t=>({...t,[e]:!1}))})}catch(t){console.error("".concat(e," login error:"),t),u.toast.error("Failed to sign in with ".concat(e,". Please try again.")),I(t=>({...t,[e]:!1}))}};return e?(0,r.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"relative w-full max-w-md bg-white rounded-2xl shadow-2xl animate-in zoom-in-95 duration-200",children:[(0,r.jsx)("button",{onClick:()=>G(),className:"absolute top-4 right-4 p-2 text-gray-400 hover:text-gray-600 transition-colors rounded-full hover:bg-gray-100 z-10",children:(0,r.jsx)(o.A,{className:"w-5 h-5"})}),(0,r.jsx)("div",{className:"p-6",children:"auth"===k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-center mb-4",children:(0,r.jsx)("div",{className:"w-14 h-14 bg-brand rounded-full flex items-center justify-center",children:(0,r.jsx)(l.A,{className:"w-7 h-7 text-white"})})}),(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2 text-center",children:D.headline}),(0,r.jsx)("p",{className:"text-gray-600 mb-4 text-center leading-relaxed",dangerouslySetInnerHTML:{__html:D.subheadline}}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-6 text-sm text-gray-600 bg-brand-light py-2 px-3 rounded-lg",children:[(0,r.jsx)(c.A,{className:"w-4 h-4 text-brand"}),(0,r.jsxs)("span",{children:[(0,r.jsx)("strong",{className:"text-brand",children:D.socialProofCount})," ",D.socialProof]})]}),(0,r.jsxs)("div",{className:"space-y-3 mb-4",children:[(0,r.jsx)("button",{onClick:()=>J("google"),disabled:L.google,className:"w-full flex items-center justify-center gap-3 px-4 py-3.5 bg-white border-2 border-gray-300 rounded-xl hover:bg-gray-50 hover:border-gray-400 transition-all text-base font-semibold disabled:opacity-60 shadow-sm hover:shadow-md",children:L.google?(0,r.jsx)("div",{className:"w-5 h-5 border-2 border-gray-400 border-t-transparent roun
1ded-full animate-spin"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:[(0,r.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,r.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,r.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,r.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Continue with Google"]})}),(0,r.jsx)("button",{onClick:()=>J("facebook"),disabled:L.facebook,className:"w-full flex items-center justify-center gap-3 px-4 py-3.5 bg-[#1877F2] hover:bg-[#166FE5] rounded-xl transition-all text-base font-semibold text-white disabled:opacity-60 shadow-sm hover:shadow-md",children:L.facebook?(0,r.jsx)("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),"Continue with Facebook"]})}),F&&(0,r.jsx)("button",{onClick:()=>J("apple"),disabled:L.apple,className:"w-full flex items-center justify-center gap-3 px-4 py-3.5 bg-black hover:bg-gray-900 rounded-xl transition-all text-base font-semibold text-white disabled:opacity-60 shadow-sm hover:shadow-md",children:L.apple?(0,r.jsx)("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M17.05 20.28c-.98.95-2.05.88-3.08.4-1.09-.5-2.08-.48-3.24 0-1.44.62-2.2.44-3.06-.4C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),"Continue with Apple"]})})]}),(0,r.jsxs)("div",{className:"relative my-5",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,r.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,r.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,r.jsx)("span",{className:"px-2 bg-white text-gray-400",children:"or use email"})})]}),(0,r.jsxs)("form",{onSubmit:H,className:"space-y-3",children:[(0,r.jsx)("input",{type:"email",value:C,onChange:e=>S(e.target.value),placeholder:"Enter your email address",className:"w-full px-4 py-3 text-sm border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-brand focus:border-transparent",disabled:L.email,required:!0}),(0,r.jsx)("button",{type:"submit",disabled:L.email||!C,className:"w-full bg-gray-900 hover:bg-gray-800 text-white rounded-lg px-4 py-3 text-sm font-semibold transition-all duration-200 flex items-center justify-center gap-2 disabled:opacity-60",children:L.email?(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}):(0,r.jsxs)(r.Fragment,{children:["Continue with Email",(0,r.jsx)(d.A,{className:"w-4 h-4"})]})})]}),(0,g.zC)()&&(0,r.jsxs)("p",{className:"text-xs text-gray-500 text-center mt-4",children:["Or"," ",(0,r.jsx)("a",{href:(0,g.Un)(),target:"_blank",rel:"noopener noreferrer",onClick:()=>G(),className:"text-brand hover:text-brand-hover underline font-medium",children:"install browser extension"})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{onClick:()=>_("auth"),className:"flex items-center gap-1 text-sm text-gray-600 hover:text-gray-900 mb-4",children:[(0,r.jsx)(h.A,{className:"w-4 h-4"}),"Back"]}),(0,r.jsxs)("div",{className:"text-center mb-6",children:[(0,r.jsx)("div",{className:"flex justify-center mb-4",children:(0,r.jsx)("div",{className:"w-14 h-14 bg-brand rounded-full flex items-center justify-center",children:(0,r.jsx)(l.A,{className:"w-7 h-7 text-white"})})}),(0,r.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Enter Verification Code"}),(0,r.jsxs)("p",{className:"text-sm text-gray-600",children:["We sent a 6-digit code to",(0,r.jsx)("br",{}),(0,r.jsx)("strong",{className:"text-gray-900",children:C})]})]}),(0,r.jsxs)("form",{onSubmit:K,className:"space-y-4",children:[(0,r.jsx)("input",{type:"text",value:A,onChange:e=>E(e.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"000000",disabled:L.co
1de,className:"w-full px-4 py-3 text-center text-2xl tracking-[0.5em] font-bold border-2 border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-brand focus:border-transparent",maxLength:6,autoFocus:!0}),(0,r.jsx)("button",{type:"submit",disabled:L.code||6!==A.length,className:"w-full bg-brand hover:bg-brand-hover text-white rounded-lg px-4 py-3.5 text-base font-semibold transition-all duration-200 shadow-lg hover:shadow-xl disabled:opacity-60",children:L.code?(0,r.jsx)("div",{className:"w-5 h-5 mx-auto border-2 border-white border-t-transparent rounded-full animate-spin"}):"Verify & Start Saving"})]}),(0,r.jsxs)("p",{className:"text-xs text-gray-500 text-center mt-4",children:["Didn't receive the code?",(0,r.jsx)("br",{}),"Check your spam folder or try again."]})]})})]})}):null}},30347:()=>{},33304:(e,t,s)=>{"use strict";s.d(t,{GlobalModalProvider:()=>l,g:()=>o});var r=s(95155),a=s(12115),n=s(84354);let i=(0,a.createContext)(void 0);function o(){let e=(0,a.useContext)(i);if(!e)throw Error("useGlobalModal must be used within a GlobalModalProvider");return e}function l(e){let{children:t}=e,[s,o]=(0,a.useState)(!1),[l,c]=(0,a.useState)("item"),d=()=>{c("item"),o(!0)},h=()=>{c("registry"),o(!0)},m=()=>{c("cashfund"),o(!0)},u=()=>{o(!1)};return(0,a.useEffect)(()=>{let e=()=>{d()},t=()=>{h()},s=()=>{m()};return window.addEventListener("openAddItemModal",e),window.addEventListener("openRegistryModal",t),window.addEventListener("openCashFundModal",s),()=>{window.removeEventListener("openAddItemModal",e),window.removeEventListener("openRegistryModal",t),window.removeEventListener("openCashFundModal",s)}},[]),(0,r.jsxs)(i.Provider,{value:{openAddItemModal:d,openRegistryModal:h,openCashFundModal:m,closeAddItemModal:u,isAddItemModalOpen:s},children:[t,(0,r.jsx)(n.N,{isOpen:s,onClose:u,mode:l})]})}},36996:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var r=s(95155),a=s(6874),n=s.n(a),i=s(66766),o=s(35695);let l={main:[{name:"How LMK Works",href:"/how-lmk-works"},{name:"AI",href:"/bot-shopper"},{name:"AI Tools & MCP",href:"/mcp"},{name:"Deals",href:"/deals"},{name:"Browse Products",href:"/products"},{name:"Categories",href:"/categories"},{name:"Collections",href:"/collections"},{name:"Merchant Directory",href:"/merchants"},{name:"For Creators",href:"/creators"},{name:"About",href:"/about"},{name:"Contact",href:"/contact"},{name:"The Blog",href:"https://blog.lmk.today"}],useCases:[{name:"Wedding Registry",href:"/how-lmk-works/wedding-registry"},{name:"Birthday Registry",href:"/how-lmk-works/birthday-registry"},{name:"Baby Shower Registry",href:"/how-lmk-works/baby-shower-registry"},{name:"Holiday Wishlist",href:"/how-lmk-works/holiday-wishlist"},{name:"Holiday Gift Guide",href:"/how-lmk-works/holiday-gift-guide"},{name:"Price Watch List",href:"/how-lmk-works/price-watch-list"},{name:"Browser Extension",href:"/extension"}],legal:[{name:"Privacy Policy",href:"/privacy"},{name:"Your Privacy Choices",href:"/privacy/choices"},{name:"Terms of Service",href:"/terms"},{name:"Affiliate Disclosure",href:"/affiliate-disclosure"}]};function c(){let e=(0,o.usePathname)(),t=e.match(/^\/wishlists\/[^/]+$/)&&!e.match(/^\/wishlists\/(browse|find)$/);return e.startsWith("/bio/")||e.startsWith("/registry/")||t||"/bot-shopper"===e?null:(0,r.jsx)("footer",{className:"border-t",id:"site-footer",children:(0,r.jsxs)("div",{className:"container pb-12 pt-10",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-12",children:[(0,r.jsxs)("div",{className:"lg:col-span-4",children:[(0,r.jsx)(n(),{href:"/",className:"flex items-center space-x-2",children:(0,r.jsx)(i.default,{src:"/images/logos/lmk.today.logo.svg",alt:"lmk.today",width:160,height:42,className:"h-10 w-auto sm:h-11"})}),(0,r.jsx)("p",{className:"mt-4 text-sm text-muted-foreground max-w-xs",children:"Build wishlists and registries from any store. Every item is automatically price-tracked so you always get the best deal."})]}),(0,r.jsx)("div",{className:"lg:col-span-8",children:(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-8 sm:grid-cols-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold",children:"Navigation"}),(0,r.jsx)("ul",{className:"mt-4 space-y-3",children:l.main.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(n(),{href:e.href,className:"text-sm text-muted-foreground hover:text-foreground",children:e.name})},e.href))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold",children:"Use Cases"}),(0,r.jsx)("ul",{className:"mt-4 space-y-3",children:l.useCases.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(n(),{href:e.href,className:"text-sm text-muted-foreground hover:text-foreground",children:e.name})},e.href))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold",children:"Legal"}),(0,r.jsx)("ul",{className:"mt-4 space-y-3",children:l.legal.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(n(),{href:e.href,className:"text-sm text-muted-foreground hover:text-foreground",children:e.name})},e.href))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold",children:"Follow Us"}),(0,r.jsxs)("ul",{className:"mt-4 space-y-3",children:[(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"https://www.instagram.com/lmk__today/",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground",children:"Instagram"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"https://x.com/lmk__today",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground",children:"X (Twitter)"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"https://www.facebook.com/people/LMKtoday/61576403350985/",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground",children:"Facebook"})})]})]})]})})]}),(0,r.jsx)("div",{className:"mt-10 rounded-md border border-border/60 bg-muted/25 px-4 py-3.5 sm:px-6",children:(0,r.jsxs)("p",{className:"text-center text-sm text-muted-foreground leading-relaxed",children:["When you shop through eligible retailer links, LMK.today may earn an affiliate commission at no extra cost to you."," ",(0,r.jsx)(n(),{href:"/affiliate-disclosure",className:"whitespace-nowrap underline underline-offset-2 hover:text-foreground",children:"Details"})]})}),(0,r.jsx)("div",{className:"mt-8 border-t pt-8",children:(0,r.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:[(0,r.jsx)("span",{className:"text-sm text-black",children:"Amazon, Amazon Prime, the Amazon logo and Amazon Prime logo are trademarks of Amazon.com, Inc. or its affiliates"}),(0,r.jsx)("br",{}),"\xa9 ",new Date().getFullYear()," lmk.today. Operated by"," ",(0,r.jsx)("a",{href:"https://lmk.llc",className:"underline underline-offset-2 hover:text-foreground",rel:"noopener noreferrer",children:"LMK Labs, LLC"}),". All rights reserved."]})})]})})}},38746:(e,t,s)=>{"use strict";async function r(){try{return new Promise(e=>{var t,s;let r=setTimeout(()=>{e(!1)},1e3);(null===(s=window.chrome)||void 0===s?void 0:null===(t=s.runtime)||void 0===t?void 0:t.sendMessage)?window.chrome.runtime.sendMessage("pblnafjfacmpbembieollfipijgfhapg",{type:"PING"},t=>{clearTimeout(r),e(!!t)}):(clearTimeout(r),e(!1))})}catch(e){return!1}}function a(){return"https://chromewebstore.google.com/detail/lmktoday-wishlist-builder/pblnafjfacmpbembieollfipijgfhapg"}function n(){return"https://chromewebstore.google.com/detail/lmktoday-wishlist-builder/pblnafjfacmpbembieollfipijgfhapg/reviews"}function i(){return!/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)&&!!(window.chrome&&window.chrome.runtime)}s.d(t,{Hj:()=>n,Un:()=>a,_6:()=>r,zC:()=>i})},40309:(e,t,s)=>{"use strict";s.d(t,{default:()=>o});var r=s(95155),a=s(12115),n=s(35695);
1function i(){let e=(0,n.usePathname)(),t=(0,n.useSearchParams)();return(0,a.useEffect)(()=>{let e=t.get("click_id");e&&localStorage.setItem("nextlinks_click_id",e)},[e,t]),null}function o(){return(0,r.jsx)(a.Suspense,{fallback:null,children:(0,r.jsx)(i,{})})}},41787:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,69243,23)),Promise.resolve().then(s.t.bind(s,78346,23)),Promise.resolve().then(s.t.bind(s,30347,23)),Promise.resolve().then(s.bind(s,60881)),Promise.resolve().then(s.bind(s,50628)),Promise.resolve().then(s.bind(s,63259)),Promise.resolve().then(s.bind(s,73522)),Promise.resolve().then(s.bind(s,71677)),Promise.resolve().then(s.bind(s,53988)),Promise.resolve().then(s.bind(s,40309)),Promise.resolve().then(s.bind(s,2395)),Promise.resolve().then(s.bind(s,10321)),Promise.resolve().then(s.bind(s,21868)),Promise.resolve().then(s.bind(s,70872)),Promise.resolve().then(s.bind(s,18224)),Promise.resolve().then(s.bind(s,6536)),Promise.resolve().then(s.bind(s,99358)),Promise.resolve().then(s.bind(s,36996)),Promise.resolve().then(s.bind(s,63332)),Promise.resolve().then(s.bind(s,17362)),Promise.resolve().then(s.bind(s,33304)),Promise.resolve().then(s.bind(s,73182)),Promise.resolve().then(s.bind(s,25351)),Promise.resolve().then(s.bind(s,80904)),Promise.resolve().then(s.bind(s,37705)),Promise.resolve().then(s.bind(s,9913))},42191:(e,t,s)=>{"use strict";s.d(t,{Ly:()=>n,Z6:()=>a,iT:()=>r,me:()=>i});let r="lmk_birdie",a="birdie";function n(e){if(null==e)return null;let t=e.trim().toLowerCase();return"1"===t||"true"===t||"on"===t||"yes"===t||"0"!==t&&"false"!==t&&"off"!==t&&"no"!==t&&null}function i(){"undefined"!=typeof document&&(document.cookie="".concat(r,"=0; path=/; max-age=0; samesite=lax"))}},46204:(e,t,s)=>{"use strict";s.d(t,{In:()=>a,hL:()=>i,w5:()=>n});let r="lmk_extension_search_prompt_session",a="extensionSearchZeroResults";function n(){sessionStorage.setItem(r,"1")}function i(){return"1"===sessionStorage.getItem(r)}},49923:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(95155),a=s(12115),n=s(6874),i=s.n(n),o=s(59434);function l(e){var t;let{user:s,size:n=40,className:l="",showMenu:c=!1}=e,[d,h]=(0,a.useState)(new Set);if(!s)return(0,r.jsx)(i(),{href:"/auth/login",className:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 rounded-full border border-gray-200 whitespace-nowrap",children:"Sign in"});let{src:m,initials:u}=(0,o.TW)(s,n),x=!m||d.has(m);return(0,r.jsx)("div",{className:"relative rounded-full overflow-hidden ".concat(l),style:{width:n,height:n},children:m&&!x?(0,r.jsx)("img",{src:m,alt:s.display_name||s.name||(null===(t=s.user_metadata)||void 0===t?void 0:t.name)||s.email||"User avatar",width:n,height:n,className:"object-cover w-full h-full",onError:e=>{let t=e.target,r=t.src;if(h(e=>new Set([...e,r])),r.includes("gravatar.com")){var a;let e=s.avatar_id||(null===(a=s.user_metadata)||void 0===a?void 0:a.avatar_id);if(e&&"initials"!==e&&!d.has("https://api.dicebear.com/7.x/bottts/svg?seed=".concat(e))){t.src="https://api.dicebear.com/7.x/bottts/svg?seed=".concat(e);return}}t.style.display="none"}}):(0,r.jsx)("div",{className:"flex items-center justify-center w-full h-full bg-gray-500 text-white font-medium",style:{fontSize:n>32?"".concat(Math.round(.4*n),"px"):"".concat(Math.round(.35*n),"px")},children:u})})}},50628:(e,t,s)=>{"use strict";s.d(t,{RealtimeProvider:()=>a});var r=s(12115);function a(){return(0,r.useEffect)(()=>{},[]),null}},53988:(e,t,s)=>{"use strict";s.d(t,{default:()=>o});var r=s(95155),a=s(63554),n=s(18509);function i(e){let{adsId:t,ga4Id:s}=e;return(0,n.j)()?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{src:"https://www.googletagmanager.com/gtag/js?id=".concat(t),strategy:"afterInteractive"}),(0,r.jsx)(a.default,{id:"google-analytics",strategy:"afterInteractive",children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(t,"');\n gtag('config', '").concat(s,"');\n ")})]}):null}function o(){return(0,r.jsx)(i,{adsId:"AW-17693955462",ga4Id:"G-XZQ96JS4RS"})}},60881:(e,t,s)=>{"use strict";s.d(t,{Providers:()=>i});var r=s(95155);s(12115);var a=s(51362),n=s(56671);function i(e){let{children:t}=e;return(0,r.jsxs)(a.N,{attribute:"class",defaultTheme:"light",forcedTheme:"light",disableTransitionOnChange:!0,children:[t,(0,r.jsx)(n.l,{position:"top-right"})]})}},63259:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var r=s(95155),a=s(12115),n=s(35695),i=s(6209),o=s(43787);
1function l(){let e=(0,n.useSearchParams)(),t=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let s=e.get("_ext-tag");s&&(localStorage.setItem("_ext-tag",s),localStorage.setItem("_ext-tag-expiry",(Date.now()+864e5).toString()),document.cookie="_ext_tag=".concat(encodeURIComponent(s),"; path=/; max-age=").concat(86400,"; samesite=lax"));let r=e.get("partner_src");if(r){localStorage.setItem("_ext-source",r),localStorage.setItem("_ext-source-expiry",(Date.now()+864e5).toString()),document.cookie="_ext_source=".concat(encodeURIComponent(r),"; path=/; max-age=").concat(86400,"; samesite=lax");let e=(0,o.Pj)(r);e&&(localStorage.setItem("_ext-tag",e),localStorage.setItem("_ext-tag-expiry",(Date.now()+864e5).toString()),document.cookie="_ext_tag=".concat(encodeURIComponent(e),"; path=/; max-age=").concat(86400,"; samesite=lax"))}let a=e.get("_ext-source");if(a&&!r){localStorage.setItem("_ext-source",a),localStorage.setItem("_ext-source-expiry",(Date.now()+864e5).toString()),document.cookie="_ext_source=".concat(encodeURIComponent(a),"; path=/; max-age=").concat(86400,"; samesite=lax");let e=(0,o.Pj)(a);e&&(localStorage.setItem("_ext-tag",e),localStorage.setItem("_ext-tag-expiry",(Date.now()+864e5).toString()),document.cookie="_ext_tag=".concat(encodeURIComponent(e),"; path=/; max-age=").concat(86400,"; samesite=lax"))}else if(!r){let t=e.get("utm_source");t&&"extension"!==t&&(localStorage.setItem("_ext-source",t),localStorage.setItem("_ext-source-expiry",(Date.now()+864e5).toString()),document.cookie="_ext_source=".concat(encodeURIComponent(t),"; path=/; max-age=").concat(86400,"; samesite=lax"))}let n=e.get("lmk_subid");n&&(document.cookie="_lmk_subid=".concat(encodeURIComponent(n),"; path=/; max-age=").concat(2592e3,"; samesite=lax"));let l=(0,i.j)(new URLSearchParams(e.toString()));if(!l)return;let c="undefined"!=typeof document?localStorage.getItem("_attr_session")||"client_".concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9)):null;if(!c)return;let d=JSON.stringify({sessionId:c,extSource:l,gclid:e.get("gclid")||null,gads:e.get("gads")||null,utm_medium:e.get("utm_medium")||null,utm_campaign:e.get("utm_campaign")||null,utm_term:e.get("utm_term")||null,utm_content:e.get("utm_content")||null,fbadid:e.get("fbadid")||null,aleid:e.get("aleid")||null});t.current!==d&&(t.current=d,localStorage.setItem("_attr_session",c),document.cookie="_attr_session=".concat(c,"; path=/; max-age=").concat(2592e3,"; samesite=lax"),fetch("/api/attribution/sync",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:c,paid_source:l,gclid:e.get("gclid")||void 0,gads:e.get("gads")||void 0,utm_medium:e.get("utm_medium")||void 0,utm_campaign:e.get("utm_campaign")||void 0,utm_term:e.get("utm_term")||void 0,utm_content:e.get("utm_content")||void 0,fbadid:e.get("fbadid")||void 0,aleid:e.get("aleid")||void 0})}).catch(e=>console.warn("[AttributionSync] sync failed:",e)))},[e]),null}function c(){return(0,r.jsx)(a.Suspense,{fallback:null,children:(0,r.jsx)(l,{})})}},63332:(e,t,s)=>{"use strict";s.d(t,{default:()=>V});var r=s(95155),a=s(6874),n=s.n(a),i=s(66766),o=s(35695),l=s(59434),c=s(12115),d=s(79556),h=s(67270),m=s(87374),u=s(91721),x=s(33349),g=s(25318),f=s(28341),p=s(18046),b=s(49923),w=s(21868),y=s(33304),v=s(80904),j=s(97842),N=s(24259),k=s(47650),_=s(57679),C=s(79048);function S(e){let{currentLocale:t}=e,[s,a]=(0,c.useState)(!1),[n,i]=(0,c.useState)({top:0,right:0}),l=(0,c.useRef)(null),d=(0,c.useRef)(null),h=(0,o.usePathname)();(0,c.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&l.current&&!l.current.contains(e.target)&&a(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let m=e=>{if(e===t||!C.bh.includes(e)){a(!1);return}if(document.cookie="NEXT_LOCALE=".concat(e,"; path=/; max-age=31536000; SameSite=Lax"),!h.includes("/product")){window.location.reload();return}let s=h;t!==C.q&&h.startsWith("/".concat(t))&&(s=h.substring("/".concat(t).length)||"/"),e!==C.q&&(s=s.startsWith("/")?s:"/".concat(s),s="/".concat(e).concat(s)),s=s.replace(/\/+/g,"/"),window.location.href=s}
1,u=s?(0,r.jsxs)("div",{ref:d,style:{top:n.top,right:n.right},className:"fixed w-48 bg-white rounded-lg shadow-xl border border-gray-200 py-1 z-[9999]",children:[C.bh.map(e=>(0,r.jsxs)("button",{onClick:()=>m(e),className:"w-full flex items-center gap-3 px-4 py-2 text-sm hover:bg-gray-50 transition-colors ".concat(e===t?"bg-brand-light text-brand font-medium":"text-gray-700"),children:[(0,r.jsx)("span",{className:"text-lg",children:C.ax[e]}),(0,r.jsx)("span",{children:C.L$[e]}),e===t&&(0,r.jsx)("span",{className:"ml-auto text-brand",children:"â"})]},e)),C.OU.length>0&&(0,r.jsx)("div",{className:"border-t border-gray-200 my-1"}),C.OU.map(e=>(0,r.jsxs)("div",{className:"w-full flex items-center gap-3 px-4 py-2 text-sm text-gray-400 cursor-not-allowed",title:"Coming soon",children:[(0,r.jsx)("span",{className:"text-lg opacity-50",children:C.ax[e]}),(0,r.jsx)("span",{children:C.L$[e]}),(0,r.jsx)("span",{className:"ml-auto text-xs text-gray-400",children:"Soon"})]},e))]}):null;return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("button",{ref:l,onClick:()=>{if(!s&&l.current){let e=l.current.getBoundingClientRect();i({top:e.bottom+8,right:window.innerWidth-e.right})}a(e=>!e)},className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:text-gray-900 hover:bg-gray-100 rounded-md transition-colors","aria-label":"Change language",children:[(0,r.jsx)(_.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:C.L$[t]}),(0,r.jsx)("span",{className:"sm:hidden",children:C.ax[t]})]}),"undefined"!=typeof document&&(0,k.createPortal)(u,document.body)]})}var A=s(44838),E=s(75074),F=s(10283);function P(e){let{className:t}=e,s=(0,o.useRouter)(),a=(0,c.useRef)(null),n=(0,c.useRef)(null),[i,d]=(0,c.useState)(""),[h,m]=(0,c.useState)(!1),u=(0,c.useCallback)(e=>{var t;e.preventDefault();let r=i.trim();r&&((0,F.Tw)(r),m(!1),s.push("/products?q=".concat(encodeURIComponent(r))),d(""),null===(t=a.current)||void 0===t||t.blur())},[i,s]),x=(0,c.useCallback)(e=>{(0,F.Tw)(e),m(!1),d(""),s.push("/products?q=".concat(encodeURIComponent(e)))},[s]),g=(0,c.useCallback)(e=>{m(!1),d(""),s.push("/product/".concat(e))},[s]);return(0,r.jsxs)("div",{className:(0,l.cn)("relative",t),children:[(0,r.jsxs)("form",{ref:n,onSubmit:u,className:"flex items-center h-10 rounded-lg border border-gray-200 bg-gray-50 focus-within:border-primary/50 focus-within:ring-1 focus-within:ring-primary/20 transition-all min-w-0",children:[(0,r.jsx)("div",{className:"flex items-center h-full pl-3 text-gray-400 shrink-0",children:(0,r.jsx)(E.A,{className:"w-4 h-4"})}),(0,r.jsx)("input",{ref:a,type:"text",value:i,onChange:e=>{d(e.target.value.slice(0,200)),m(!0)},onFocus:()=>m(!0),placeholder:"Search products...",className:"flex-1 h-full px-3 text-base sm:text-sm bg-transparent outline-none placeholder:text-gray-400 min-w-0",maxLength:200,autoComplete:"off"}),(0,r.jsx)("button",{type:"submit",className:"shrink-0 h-full px-3 text-gray-400 hover:text-primary transition-colors","aria-label":"Search",children:(0,r.jsx)(E.A,{className:"w-4 h-4"})})]}),(0,r.jsx)(F.Ay,{query:i,isOpen:h,onSelect:x,onProductClick:g,onClose:()=>m(!1),portalToBody:!0,anchorRef:n})]})}var L=s(93727),I=s(33055),T=s(74601),M=s(12682),B=s(17003),R=s(31285),z=s(68098),W=s(66655),O=s(31550),U=s(10469),D=s(36931);let q={name:"AI",href:"/bot-shopper",icon:T.A},G={name:"Extension",href:"/extension",icon:M.A},H=[{name:"Deals",href:"/deals",icon:B.A,description:"Today's discounts across top stores â find something worth watching."},{name:"Collections",href:"/collections",icon:R.A,description:"Curated picks by theme, team, or occasion to jump-start a list."},{name:"Find Wishlists",href:"/wishlists/find",icon:z.A,description:"Look up a friend's list and claim gifts without duplicates."},{name:"Browse Products",href:"/products",icon:m.A,description:"Search the catalog and add anything to a list in a couple taps."},{name:"Categories",href:"/categories",icon:W.A,description:"Shop by department when you know the type of thing you want."},{name:"How it Works",href:"/how-lmk-works",icon:O.A,description:"See how lists, price alerts, and sharing fit together."}],K=[{name:"Dashboard",href:"/dashboard",icon:U.A},{name:"My Watches",href:"/dashboard/watches",icon:D.A},{name:"Settings",href:"/dashboard/settings",icon:u.A}],J=e=>(0,l.cn)("px-3 py-2 rounded-md whitespace-nowrap text-sm font-medium text-foreground
1/80 transition-all duration-200","hover:bg-[#FFF4E6] hover:text-[#FF8C00]",e?"bg-[#FFF4E6] text-[#FF8C00]":"");function $(){var e,t;let s=(0,o.usePathname)(),a=(0,o.useSearchParams)(),{user:k,signOut:_}=(0,w.A)(),{openAddItemModal:E,openRegistryModal:F,openCashFundModal:T}=(0,y.g)(),{openModal:M,isOpen:B}=(0,v.T)(),{isUS:R}=(0,j.G)(),{birdieAvailable:z}=(0,N.wp)(),W=R&&z,[O,U]=(0,c.useState)(!1),D=(()=>{for(let e of C.bh)if(e!==C.q&&s.startsWith("/".concat(e,"/")))return e;return C.q})(),$=s.includes("/product"),V=(e,t,s)=>{(0,I.Fg)("nav_click",{label:e,href:t,location:s,logged_in:!!k})},Y=e=>e.startsWith("/")&&(s===e||s.startsWith("".concat(e,"/"))),X=H.some(e=>Y(e.href)),Z=q.icon,Q=G.icon,ee=e=>{U(e),window.dispatchEvent(new CustomEvent("mobileMenuToggle",{detail:{isOpen:e}}))},et=s.match(/^\/wishlists\/[^/]+$/)&&!s.match(/^\/wishlists\/(browse|find)$/);return s.startsWith("/bio/")||s.startsWith("/registry/")||s.startsWith("/lp/registry")||et&&!k||"/bot-shopper"===s||"true"===a.get("hideNav")||"true"===a.get("landing")?null:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("header",{className:"sticky top-0 z-[100] w-full border-b bg-white overflow-x-hidden",children:(0,r.jsxs)("div",{className:"container flex h-16 items-center justify-between min-w-0",children:[(0,r.jsx)("div",{className:"flex items-center flex-shrink-0",children:(0,r.jsx)(n(),{href:"/",className:"flex items-center",children:(0,r.jsx)(i.default,{src:"/images/logos/LMK.only.png",alt:"LMK",width:120,height:36,className:"h-9 w-auto md:h-12 lg:h-14",priority:!0})})}),(0,r.jsx)("div",{className:"flex-1 min-w-0 mx-3 md:hidden",children:(0,r.jsx)(P,{className:"w-full min-w-0"})}),(0,r.jsxs)("nav",{className:"hidden md:flex flex-1 items-center text-sm font-medium gap-1 ml-4 min-w-0",children:[(0,r.jsx)(P,{className:"w-64 lg:w-80"}),(0,r.jsxs)("div",{className:"flex items-center ml-auto gap-1",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>{V(q.name,q.href,"header"),M()},className:(0,l.cn)("inline-flex items-center gap-1.5",J(B||Y(q.href))),children:[(0,r.jsx)(Z,{className:"h-4 w-4"}),q.name]}),(0,r.jsx)(n(),{href:G.href,onClick:()=>V(G.name,G.href,"header"),className:J(Y(G.href)),children:G.name}),(0,r.jsxs)(A.rI,{children:[(0,r.jsxs)(A.ty,{className:(0,l.cn)(J(X),"flex items-center gap-1 data-[state=open]:bg-[#FFF4E6] data-[state=open]:text-[#FF8C00] [&[data-state=open]>svg]:rotate-180 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand"),children:["Explore More",(0,r.jsx)(d.A,{className:"h-4 w-4 transition-transform duration-200"})]}),(0,r.jsxs)(A.SQ,{align:"end",sideOffset:8,className:"w-[420px] p-3",children:[(0,r.jsx)("div",{className:"px-1 pb-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground",children:"Explore More"}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-1",children:H.map(e=>{let t=e.icon;return(0,r.jsx)(A._2,{asChild:!0,children:(0,r.jsxs)(n(),{href:e.href,onClick:()=>V(e.name,e.href,"explore"),className:"cursor-pointer flex items-start gap-2.5 rounded-md px-2 py-2.5",children:[(0,r.jsx)("span",{className:"mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md bg-[#FFF4E6] text-[#FF8C00]",children:(0,r.jsx)(t,{className:"h-4 w-4"})}),(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"block text-sm font-medium text-foreground",children:e.name}),(0,r.jsx)("span",{className:"block text-xs text-muted-foreground leading-snug mt-0.5",children:e.description})]})]})},e.href)})})]})]}),k&&(0,r.jsx)(n(),{href:"/dashboard/wishlists",onClick:()=>V("My Lists","/dashboard/wishlists","header"),className:J(Y("/dashboard/wishlists")),children:"My Lists"})]})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2 flex-shrink-0 relative",children:[(0,r.jsxs)("div",{className:"hidden md:flex items-center gap-2",children:[$&&(0,r.jsx)(S,{currentLocale:D}),(0,r.jsx)(n(),{href:"/help",onClick:()=>V("Help","/help","header"),className:"p-2 text-foreground/60 hover:text-foreground/80 hover:bg-gray-100 rounded-full transition-colors flex-shrink-0","aria-label":"Help & Tips",title:"Help & Tips",children:(0,r.jsx)(h.A,{className:"h-5 w-5"})}),k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L.a,{variant:"fab",onCashGift:()=>W?F():T(),cashLabel:W?"Add cash registry":"Add cash fund"}),(0,r.jsxs)(A.rI,{children:[(0,r.jsxs)(A.ty,{className:"flex items-center space-x-1 rounded-md px-2 py-1.5 text-sm font-medium text-foreground
1/80 transition-all duration-200 hover:bg-[#FFF4E6] hover:text-[#FF8C00] data-[state=open]:bg-[#FFF4E6] data-[state=open]:text-[#FF8C00] [&[data-state=open]>svg]:rotate-180 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand",children:[(0,r.jsx)(b.A,{user:k,size:28}),(0,r.jsx)(d.A,{className:"h-4 w-4 transition-transform duration-200"})]}),(0,r.jsxs)(A.SQ,{align:"end",sideOffset:8,className:"w-56 p-2",children:[(0,r.jsxs)("div",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:[(0,r.jsx)("div",{className:"font-medium text-foreground",children:(null===(e=k.user_metadata)||void 0===e?void 0:e.name)||"Welcome!"}),(0,r.jsx)("div",{className:"text-xs",children:k.email})]}),(0,r.jsx)(A.mB,{}),(0,r.jsx)(A._2,{asChild:!0,children:(0,r.jsxs)(n(),{href:"/dashboard/wishlists",onClick:()=>V("My Lists","/dashboard/wishlists","header"),className:"cursor-pointer flex items-center space-x-2",children:[(0,r.jsx)(m.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:"My Lists"})]})}),K.map(e=>{let t=e.icon;return(0,r.jsx)(A._2,{asChild:!0,children:(0,r.jsxs)(n(),{href:e.href,onClick:()=>V(e.name,e.href,"header"),className:"cursor-pointer flex items-center space-x-2",children:[(0,r.jsx)(t,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:e.name})]})},e.href)}),(0,r.jsx)(A._2,{asChild:!0,children:(0,r.jsxs)(n(),{href:"/dashboard/profile",onClick:()=>V("Edit Profile","/dashboard/profile","header"),className:"cursor-pointer flex items-center space-x-2",children:[(0,r.jsx)(u.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:"Edit Profile"})]})}),(0,r.jsx)(A.mB,{}),(0,r.jsxs)(A._2,{onClick:()=>_(),className:"cursor-pointer flex items-center space-x-2 text-red-600 focus:text-red-600",children:[(0,r.jsx)(x.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:"Sign out"})]})]})]})]}):(0,r.jsx)(n(),{href:"/auth/login",onClick:()=>V("Get Started","/auth/login","header"),className:"inline-flex items-center justify-center px-4 py-2 text-sm font-semibold text-white bg-primary hover:bg-primary/90 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand whitespace-nowrap",children:"Get Started"})]}),(0,r.jsxs)("button",{onClick:()=>ee(!O),className:(0,l.cn)("md:hidden p-2 border border-gray-200 rounded-md bg-secondary flex-shrink-0 flex items-center space-x-2 min-h-[44px] touch-manipulation",k&&!O&&"bg-brand-light border-brand"),"aria-label":"Toggle menu",children:[k&&!O&&(0,r.jsx)(b.A,{user:k,size:24,className:"flex-shrink-0"}),O?(0,r.jsx)(g.A,{className:"h-6 w-6"}):(0,r.jsx)(f.A,{className:"h-6 w-6"})]})]}),(0,r.jsx)("div",{className:(0,l.cn)("fixed inset-y-0 right-0 w-72 bg-white shadow-lg transform transition-transform duration-200 ease-in-out md:hidden",O?"translate-x-0":"translate-x-full"),style:{zIndex:9999},children:(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[(0,r.jsx)("div",{className:"flex justify-end p-4 flex-shrink-0",children:(0,r.jsx)("button",{onClick:()=>ee(!1),className:"p-2","aria-label":"Close menu",children:(0,r.jsx)(g.A,{className:"h-6 w-6"})})}),(0,r.jsxs)("nav",{className:"flex-1 px-4 space-y-1 overflow-y-auto overscroll-contain",children:[k?(0,r.jsxs)("div",{className:"border-b border-gray-200 pb-4 mb-4 space-y-1",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-3 mb-3",children:[(0,r.jsx)(b.A,{user:k,size:48,className:"ring-2 ring-brand"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"font-medium text-foreground truncate",children:(null===(t=k.user_metadata)||void 0===t?void 0:t.name)||"Welcome!"}),(0,r.jsx)("div",{className:"text-sm text-brand truncate",children:k.email})]})]}),(0,r.jsxs)(n(),{href:"/dashboard/wishlists",onClick:()=>{V("My Lists","/dashboard/wishlists","drawer"),ee(!1)},className:(0,l.cn)("flex items-center space-x-3 py-3 px-3 rounded-lg transition-colors font-medium",Y("/dashboard/wishlists")?"bg-gray-100 text-foreground":"text-foreground/60 hover:bg-gray-50 hover:text-foreground"),children:[(0,r.jsx)(m.A,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:"My Lists"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{ee(!1),E()},className:"w-full flex items-center space-x-3 py-3 px-3 rounded-lg transition-colors text-foreground
1/60 hover:bg-gray-50 hover:text-foreground font-medium text-left",children:[(0,r.jsx)(p.A,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:"Add product"})]})]}):(0,r.jsx)("div",{className:"border-b border-gray-200 pb-4 mb-4",children:(0,r.jsx)(n(),{href:"/auth/login",onClick:()=>{V("Get Started","/auth/login","drawer"),ee(!1)},className:"flex items-center justify-center py-3 px-4 rounded-full bg-primary text-white hover:bg-primary/90 transition-colors font-semibold",children:"Get Started"})}),(0,r.jsxs)("div",{className:"space-y-1 mb-4",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>{V(q.name,q.href,"drawer"),ee(!1),M()},className:(0,l.cn)("flex w-full items-center space-x-3 py-3 px-3 rounded-lg transition-colors font-medium text-left",B||Y(q.href)?"bg-[#FFF4E6] text-[#FF8C00]":"text-foreground/80 hover:bg-gray-50"),children:[(0,r.jsx)(Z,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:q.name})]}),(0,r.jsxs)(n(),{href:G.href,onClick:()=>{V(G.name,G.href,"drawer"),ee(!1)},className:(0,l.cn)("flex items-center space-x-3 py-3 px-3 rounded-lg transition-colors font-medium",Y(G.href)?"bg-gray-100 text-foreground":"text-foreground/60 hover:bg-gray-50 hover:text-foreground"),children:[(0,r.jsx)(Q,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:G.name})]})]}),(0,r.jsxs)("div",{className:"space-y-1 border-b border-gray-200 pb-4 mb-4",children:[(0,r.jsx)("div",{className:"px-3 py-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-gray-500",children:"Explore More"}),H.map(e=>{let t=e.icon;return(0,r.jsxs)(n(),{href:e.href,onClick:()=>{V(e.name,e.href,"explore"),ee(!1)},className:(0,l.cn)("flex items-start gap-3 py-3 px-3 rounded-lg transition-colors",Y(e.href)?"bg-gray-100 text-foreground":"text-foreground/80 hover:bg-gray-50"),children:[(0,r.jsx)("span",{className:"mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md bg-[#FFF4E6] text-[#FF8C00]",children:(0,r.jsx)(t,{className:"h-4 w-4"})}),(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"block font-medium",children:e.name}),(0,r.jsx)("span",{className:"block text-xs text-muted-foreground mt-0.5 leading-snug",children:e.description})]})]},e.href)})]}),k&&(0,r.jsxs)("div",{className:"space-y-1 border-b border-gray-200 pb-4 mb-4",children:[(0,r.jsx)("div",{className:"px-3 py-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-gray-500",children:"Account"}),K.map(e=>{let t=e.icon;return(0,r.jsxs)(n(),{href:e.href,onClick:()=>{V(e.name,e.href,"drawer"),ee(!1)},className:(0,l.cn)("flex items-center space-x-3 py-3 px-3 rounded-lg transition-colors font-medium",Y(e.href)?"bg-gray-100 text-foreground":"text-foreground/60 hover:bg-gray-50 hover:text-foreground"),children:[(0,r.jsx)(t,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:e.name})]},e.href)}),(0,r.jsxs)(n(),{href:"/dashboard/profile",onClick:()=>{V("Edit Profile","/dashboard/profile","drawer"),ee(!1)},className:"flex items-center space-x-3 py-3 px-3 rounded-lg transition-colors text-foreground/60 hover:bg-gray-50 hover:text-foreground font-medium",children:[(0,r.jsx)(u.A,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:"Edit Profile"})]}),(0,r.jsxs)("button",{onClick:()=>{_(),ee(!1)},className:"w-full flex items-center space-x-3 py-3 px-3 rounded-lg transition-colors text-red-600 hover:bg-red-50 font-medium text-left",children:[(0,r.jsx)(x.A,{className:"h-5 w-5"}),(0,r.jsx)("span",{children:"Sign out"})]})]}),(0,r.jsxs)(n(),{href:"/help",onClick:()=>{V("Help","/help","drawer"),ee(!1)},className:"w-full flex items-center space-x-3 py-3 px-3 rounded-lg transition-colors text-foreground/60 hover:bg-gray-50 hover:text-foreground",children:[(0,r.jsx)(h.A,{className:"h-5 w-5"}),(0,r.jsx)("span",{className:"font-medium",children:"Help & Tips"})]}),$&&(0,r.jsxs)("div",{className:"py-2 px-3",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-500 mb-2",children:"Language"}),(0,r.jsx)(S,{currentLocale:D})]})]})]})}),O&&(0,r.jsx)("div",{className:"fixed inset-0 bg-black/20 md:hidden",style:{zIndex:9998},onClick:()=>ee(!1)})]})})})}function V(){return(0,r.jsx)(c.Suspense,{fallback:null,children:(0,r.jsx)($,{})})}},67258:(e,t,s)=>{"use strict";s.d(t,{A:()=>i,W:()=>n});var r=s(95155),a=s(63554);let n="ca-pub-9740224966268160";function i(){return(0,r.jsx)(a.default,{id:"adsbygoogle-init",src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=".concat(n),strategy:"lazyOnload",crossOrigin:"anonymous"})}},70872:(e,t,s)=>{"use strict";s.d(t,{default:()=>u});var r=s(95155),a=s(12115),n=s(66766),i=s(35695),o=s(70073),l=s(25318),c=s(95675),d=s(33055);let h="lmk_deals_optin_done",m="lmk_deals_optin_shown";function u(){let e=(0,i.useSearchParams)(),t="1"===e.get("lmk_do"),s=e.get("doe")||"",u=e.get("dot")||"",[x,g]=(0,a.useState)(!1),[f,p]=(0,a.useState)("idle"),b=(0,a.useRef)(!1);(0,a.useEffect)(()=>
1{if(!t||!s||!u||b.current||"1"===localStorage.getItem(h)||"1"===sessionStorage.getItem(m))return;let e=setTimeout(()=>{b.current=!0,sessionStorage.setItem(m,"1"),g(!0),(0,d.Fg)("deals_optin_modal_shown",{source:"email_modal"})},3e3);return()=>clearTimeout(e)},[t,s,u]);let w=(0,a.useCallback)(()=>{g(!1);let e=new URL(window.location.href);["lmk_do","doe","dot"].forEach(t=>e.searchParams.delete(t)),window.history.replaceState({},"",e.toString())},[]),y=(0,a.useCallback)(()=>{(0,d.Fg)("deals_optin_modal_dismissed",{source:"email_modal"}),w()},[w]),v=(0,a.useCallback)(async e=>{p("loading");try{if(!(await fetch("/api/email/opt-in",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({emailType:"daily_deals",email:s,token:u,action:e,source:"email_modal"})})).ok)throw Error("opt-in failed");localStorage.setItem(h,"1"),(0,d.Fg)("opt_in"===e?"deals_optin_modal_opted_in":"deals_optin_modal_declined",{source:"email_modal"}),"opt_in"===e?(p("success"),setTimeout(w,2200)):w()}catch(e){p("error")}},[s,u,w]);return x?(0,r.jsx)(c.A,{children:(0,r.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"relative w-full max-w-md bg-white rounded-2xl shadow-2xl animate-in zoom-in-95 duration-200 overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 px-6 py-4 bg-emerald-50 border-b border-emerald-100",children:[(0,r.jsx)(n.default,{src:"/images/logos/LMK.only.png",alt:"LMK.today",width:40,height:40,className:"rounded-lg"}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-600 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white",children:[(0,r.jsx)(o.A,{className:"w-3 h-3"}),"Daily Deals"]})]}),(0,r.jsx)("button",{onClick:y,className:"absolute top-3 right-3 p-2 text-gray-400 hover:text-gray-600 transition-colors rounded-full hover:bg-white/80 z-10","aria-label":"Close",children:(0,r.jsx)(l.A,{className:"w-5 h-5"})}),(0,r.jsx)("div",{className:"px-6 pt-6 pb-6 text-center",children:"success"===f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-emerald-100",children:(0,r.jsx)(o.A,{className:"h-7 w-7 text-emerald-600"})}),(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2 leading-tight",children:"You're in!"}),(0,r.jsxs)("p",{className:"text-gray-600 leading-relaxed",children:["We'll send hand-picked daily deals to ",(0,r.jsx)("strong",{children:s}),". Your saved-item price alerts are unchanged."]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2 leading-tight",children:"Want deals like this every day?"}),(0,r.jsx)("p",{className:"text-gray-600 mb-6 leading-relaxed",children:"Turn on daily deals and we'll send the biggest hand-picked price drops across every category â one email a day. Your saved-item alerts don't change."}),(0,r.jsx)("button",{type:"button",onClick:()=>v("opt_in"),disabled:"loading"===f,className:"block w-full rounded-full bg-emerald-600 hover:bg-emerald-700 disabled:opacity-60 text-white text-center font-semibold py-3.5 px-6 transition-colors shadow-lg",children:"loading"===f?"Turning onâ¦":"Yes, turn on daily deals"}),"error"===f&&(0,r.jsx)("p",{className:"mt-3 text-sm text-red-600",children:"Something went wrong. Please try again."}),(0,r.jsx)("button",{type:"button",onClick:y,className:"mt-4 w-full text-sm font-medium text-gray-500 hover:text-gray-700 transition-colors",children:"No thanks"})]})})]})})}):null}},71677:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var r=s(12115),a=s(35695);let n=s(87358).env.NEXT_PUBLIC_AXON_PIXEL_ID;function i(){let e=(0,a.usePathname)(),t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!n||t.current===e)return;t.current=e;let s=window.location.href;try{navigator.sendBeacon?navigator.sendBeacon("/api/analytics/axon-pageview",new Blob([JSON.stringify({url:s})],{type:"application/json"})):fetch("/api/analytics/axon-pageview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:s}),keepalive:!0}
1).catch(()=>{})}catch(e){}},[e]),null}},73182:(e,t,s)=>{"use strict";s.d(t,{ScrollToTop:()=>l});var r=s(95155),a=s(12115),n=s(20203),i=s(59434),o=s(80904);function l(){let[e,t]=(0,a.useState)(!1),{isOpen:s}=(0,o.T)();return((0,a.useEffect)(()=>{let e=()=>{window.scrollY>2*window.innerHeight?t(!0):t(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),s)?null:(0,r.jsx)("button",{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:(0,i.cn)("fixed bottom-6 right-6 p-3 rounded-lg bg-orange-500/80 hover:bg-orange-500 text-white shadow-lg transition-all duration-200","opacity-0 translate-y-2",e&&"opacity-100 translate-y-0"),"aria-label":"Scroll to top",children:(0,r.jsx)(n.A,{className:"w-5 h-5"})})}},73522:(e,t,s)=>{"use strict";s.d(t,{default:()=>o});var r=s(95155),a=s(12115),n=s(35695);function i(){let e=(0,n.useSearchParams)();return(0,a.useEffect)(()=>{let t=e.get("aleid");t&&(document.cookie="_axeid=".concat(encodeURIComponent(t),"; path=/; max-age=").concat(31536e3,"; samesite=lax"))},[e]),null}function o(){return(0,r.jsx)(a.Suspense,{fallback:null,children:(0,r.jsx)(i,{})})}},79048:(e,t,s)=>{"use strict";s.d(t,{L$:()=>a,OU:()=>o,ax:()=>n,bh:()=>i,q:()=>r});let r="en",a={en:"English",es:"Espa\xf1ol",zh:"䏿",tl:"Tagalog",vi:"Tiếng Viá»t",fr:"Fran\xe7ais"},n={en:"\uD83C\uDDFA\uD83C\uDDF8",es:"\uD83C\uDDEA\uD83C\uDDF8",zh:"\uD83C\uDDE8\uD83C\uDDF3",tl:"\uD83C\uDDF5\uD83C\uDDED",vi:"\uD83C\uDDFB\uD83C\uDDF3",fr:"\uD83C\uDDEB\uD83C\uDDF7"},i=["en","es","zh","tl","vi","fr"],o=[]},80904:(e,t,s)=>{"use strict";s.d(t,{BotShopperModalProvider:()=>i,T:()=>o});var r=s(95155),a=s(12115);let n=(0,a.createContext)(void 0);function i(e){let{children:t}=e,[s,i]=(0,a.useState)(!1),o=(0,a.useCallback)(()=>i(!0),[]),l=(0,a.useCallback)(()=>i(!1),[]),c=(0,a.useMemo)(()=>({isOpen:s,openModal:o,closeModal:l}),[s,o,l]);return(0,r.jsx)(n.Provider,{value:c,children:t})}function o(){let e=(0,a.useContext)(n);if(void 0===e)throw Error("useBotShopperModal must be used within a BotShopperModalProvider");return e}},84354:(e,t,s)=>{"use strict";s.d(t,{N:()=>p});var r=s(95155),a=s(12115),n=s(35695),i=s(54165),o=s(30285),l=s(62523),c=s(18046),d=s(2160),h=s(75074),m=s(87374),u=s(56671),x=s(21868),g=s(36608),f=s(52643);function p(e){let{isOpen:t,onClose:s,mode:p="item"}=e,{user:b}=(0,x.A)(),w=(0,n.useRouter)(),[y,v]=(0,a.useState)([]),[j,N]=(0,a.useState)(!0),[k,_]=(0,a.useState)(""),[C,S]=(0,a.useState)(""),[A,E]=(0,a.useState)(!1),[F,P]=(0,a.useState)(""),[L,I]=(0,a.useState)(!1),[T,M]=(0,a.useState)("");(0,a.useEffect)(()=>{t&&b&&(async()=>{N(!0);try{let e=(0,f.createClient)(),{data:t,error:s}=await e.from("wishlists").select("id, slug, title, is_public").eq("user_id",b.id).order("created_at",{ascending:!1});if(s)throw s;let r=await Promise.all((t||[]).map(async t=>{let{count:s}=await e.from("wishlist_products").select("*",{count:"exact",head:!0}).eq("wishlist_id",t.id);return{...t,product_count:s||0}}));v(r)}catch(e){console.error("Error fetching wishlists:",e),u.toast.error("Failed to load your wishlists")}finally{N(!1)}})()},[t,b]),(0,a.useEffect)(()=>{t||(_(""),S(""),E(!1),P(""),M(""))},[t]);let B=e=>{if("registry"===p||"cashfund"===p){s(),w.push("/wishlists/".concat(e.slug,"?add=").concat("registry"===p?"registry":"cashfund"));return}_(e.id),S(e.title),E(!0)},R=async()=>{if(!F.trim()){u.toast.error("Please enter a wishlist title");return}I(!0);try{let e=(0,f.createClient)(),{data:{session:t}}=await e.auth.getSession();if(!t){u.toast.error("Please sign in to create a wishlist");return}let r=await fetch("/api/wishlists",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t.access_token),...t.refresh_token&&{"X-Refresh-Token":t.refresh_token}},body:JSON.stringify({title:F.trim(),is_public:!1})});if(!r.ok)throw Error("Failed to create wishlist");let a=await r.json();if(("registry"===p||"cashfund"===p)&&a.slug){u.toast.success("Wishlist created!"),s(),w.push("/wishlists/".concat(a.slug,"?add=").concat("registry"===p?"registry":"cashfund"));return}let n={id:a.id,slug:a.slug,title:a.title,product_count:0,is_public:a.is_public};v(e=>[n,...e]),_(a.id),S(a.title),E(!0),u.toast.success("Wishlist created successfully!")}catch(e){console.error("Error creating wishlist:",e),u.toast.error("Failed to create wishlist")}finally{I(!1)}},z=()=>{E(!1),s()},W=y.filter(e=>e.title.toLowerCase().includes(T.toLowerCase()));return A&&k?(0,r.jsx)(g.m,{isOpen:A,onClose:z,wishlistId:k,wishlistTitle:C,onChangeWishlist:()=>{E(!1)},onItemAdded:()=>{u.toast.success("Item added to wishlist!"),z()}}):(0,r.jsx)(i.lG,{open:t,onOpenChange:s,children:(0,r.jsxs)(i.Cf,{className:"max-w-md",children:[(0,r.jsx)(i.c7,{children:(0,r.jsxs)(i.L3,{className:"flex items-center gap-2",children:["item"===p?(0,r.jsx)(c.A,{className:"w-5 h-5"}):(0,r.jsx)(d.A,{className:"w-5 h-5"}),"registry"===p?"Add a cash registry":"cashfund"===p?"Add a cash fund":"Choose a Wishlist"]})}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("p",{className:"text-sm text-gray-600",children:"registry"===p?"Pick the list where gifts should add up toward one goal:":"cashfund"===p?"Pick the list to add your payment handles (Venmo, PayPal, CashApp, Zelle):":"Select which wishlist to add your custom item to:"}),y.length>3&&(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(h.A,{className:"w-4 h-4 absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),(0,r.jsx)(l.p,{type:"text",placeholder:"Search wishlists...",value:T,onChange:e=>M(e.target.value),className:"pl-10"})]}),j?(0,r.jsx)("div",{className:"space-y-2",children:[void 0,void 0,void 0].map((e,t)=>(0,r.jsx)("div",{className:"animate-pulse",children:(0,r.jsx)("div",{className:"h-12 bg-gray-200 rounded-lg"})},t))}):W.length>0?(0,r.jsx)("div",{className:"space-y-2 max-h-60 overflow-y-auto",children:W.map(e=>(0,r.jsx)("button",{onClick:()=>B(e),className:"w-full p-3 text-left border border-gray-200 rounded-lg hover:border-brand hover:bg-brand-light transition-colors",children:(0,r.jsx)("div",{className:"flex items-center justify-between",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-medium text-gray-900",children:e.title}),(0,r.jsxs)("div",{className:"text-sm text-gray-500 flex items-center gap-2",children:[(0,r.jsx)(m.A,{className:"w-3 h-3"}),e.product_count," items",e.is_public&&(0,r.jsx)("span",{className:"text-xs bg-green-100 text-green-700 px-1 rounded",children:"Public"})]})]})})},e.id))}):(0,r.jsx)("div",{className:"text-center py-4 text-gray-500",children:T?"No wishlists match your search":"No wishlists found"}),(0,r.jsx)("div",{className:"border-t pt-4",children:(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(l.p,{type:"text",placeholder:"Create new wishlist...",value:F,onChange:e=>P(e.target.value),onKeyDown:e=>{"Enter"===e.key&&F.trim()&&R()},maxLength:64}),(0,r.jsx)(o.$,{onClick:R,disabled:!F.trim()||L,className:"w-full",variant:"outline",children:L?"Creating...":"registry"===p?"Create & Add Registry":"cashfund"===p?"Create & Add Cash Fund":"Create & Add Item"})]})})]})]})})}},93727:(e,t,s)=>{"use strict";s.d(t,{a:()=>w});var r=s(95155),a=s(12115),n=s(6874),i=s.n(n),o=s(18046),l=s(79556),c=s(75074),d=s(2160),h=s(99036),m=s(74601),u=s(59434),x=s(30285),g=s(44838),f=s(33304),p=s(5891),b=s(38746);function w(e){let{wishlistSlug:t,eventType:s,onAddManually:n,variant:w="header",label:y,className:v,onCashGift:j,cashLabel:N}=e,{openAddItemModal:k}=(0,f.g)(),[_,C]=(0,a.useState)(!1),S=(0,p.qP)(t),A=(0,p.GZ)(s),E=null!=y?y:"toolbar"===w||"card"===w?"Add Item":"Add Product";(0,a.useEffect)(()=>{C((0,b.zC)())},[]);let F="fab"===w?(0,r.jsx)("button",{type:"button","aria-label":"Add to your list",title:"Add to your list",className:(0,u.cn)("flex h-10 w-10 items-center justify-center rounded-full bg-primary text-white shadow-sm transition-all duration-200","hover:bg-primary/90 hover:scale-105 data-[state=open]:bg-primary/90 data-[state=open]:scale-105","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand",v),children:(0,r.jsx)(o.A,{className:"h-5 w-5",strokeWidth:2.5,"aria-hidden":!0})}):"card"===w?(0,r.jsxs)("button",{type:"button",className:(0,u.cn)("group relative flex w-full flex-col overflow-hidden rounded-lg border border-dashed border-brand/30 bg-gradient-to-b from-[#FFF9F0] to-white text-left shadow-sm transition-all duration-200","hover:border-brand/50 hover:shadow-md hover:from-[#FFF4E6] touch-manipulation","data-[state=open]:border-brand/50 data-[state=open]:from-[#FFF4E6] data-[state=open]:shadow-md",v),children:[(0,r.jsxs)("div",{className:"relative flex aspect-square flex-col items-center justify-center gap-2.5 p-4 text-center",children:[(0,r.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-brand text-white shadow-md transition-transform group-hover:scale-105 group-data-[state=open]:scale-105",children:(0,r.jsx)(o.A,{className:"h-7 w-7","aria-hidden":!0})}),(0,r.jsx)("p",{className:"text-xs leading-snug text-gray-500 px-1",children:"Search, paste a link, or save from any store"})]}),(0,r.jsxs)("div",{className:"border-t border-brand/10 bg-white/70 px-3 py-2.5",children:[(0,r.jsx)("p",{className:"text-center text-sm font-semibold text-gray-900",children:E}),(0,r.jsx)("p",{className:"mt-0.5 text-center text-[11px] font-medium text-brand",children:"Tap for options"})]})]}):"toolbar"===w?(0,r.jsxs)(x.$,{size:"sm",variant:"outline",className:(0,u.cn)("text-xs h-7 px-3",v),children:[(0,r.jsx)(o.A,{className:"w-3 h-3 mr-1"}),E,(0,r.jsx)(l.A,{className:"w-3 h-3 ml-1"})]}):(0,r.jsxs)("button",{type:"button",className:(0,u.cn)("flex items-center gap-1 rounded-md px-3 py-2 font-medium text-foreground
1/80 transition-all duration-200","hover:bg-[#FFF4E6] hover:text-[#FF8C00] data-[state=open]:bg-[#FFF4E6] data-[state=open]:text-[#FF8C00]","[&[data-state=open]>svg:last-child]:rotate-180",v),children:[(0,r.jsx)(o.A,{className:"h-4 w-4 shrink-0","aria-hidden":!0}),(0,r.jsx)("span",{className:"whitespace-nowrap",children:E}),(0,r.jsx)(l.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]});return(0,r.jsxs)(g.rI,{children:[(0,r.jsx)(g.ty,{asChild:!0,children:F}),(0,r.jsxs)(g.SQ,{align:"card"===w?"start":"end",sideOffset:8,className:"w-56 p-2",children:[(0,r.jsx)(g._2,{asChild:!0,children:(0,r.jsxs)(i(),{href:S,className:"flex cursor-pointer items-center gap-2",children:[(0,r.jsx)(c.A,{className:"h-4 w-4 text-gray-500"}),"Search products"]})}),j&&N&&(0,r.jsxs)(g._2,{onClick:j,className:"flex cursor-pointer items-center gap-2",children:[(0,r.jsx)(d.A,{className:"h-4 w-4 text-gray-500"}),N]}),(0,r.jsxs)(g._2,{onClick:()=>{n?n():k()},className:"flex cursor-pointer items-center gap-2",children:[(0,r.jsx)(o.A,{className:"h-4 w-4 text-gray-500"}),"Add URL manually"]}),_&&(0,r.jsx)(g._2,{asChild:!0,children:(0,r.jsxs)(i(),{href:"/extension",target:"_blank",rel:"noopener noreferrer",className:"flex cursor-pointer items-center gap-2",children:[(0,r.jsx)(h.A,{className:"h-4 w-4 text-gray-500"}),"Get extension"]})}),(0,r.jsx)(g._2,{asChild:!0,children:(0,r.jsxs)(i(),{href:A,className:"flex cursor-pointer items-center gap-2",children:[(0,r.jsx)(m.A,{className:"h-4 w-4 text-amber-500"}),"Get Inspired"]})}),(0,r.jsx)(g._2,{asChild:!0,children:(0,r.jsxs)(i(),{href:p.Ef,className:"flex cursor-pointer items-center gap-2",children:[(0,r.jsx)(m.A,{className:"h-4 w-4 text-purple-500"}),"Ask AI"]})})]})]})}},95675:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(12115),a=s(47650);function n(e){let{children:t}=e,[s,n]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{n(!0)},[]),s)?(0,a.createPortal)(t,document.body):null}},97842:(e,t,s)=>{"use strict";s.d(t,{G:()=>n});var r=s(12115);let a=null;function n(){var e,t;let[s,n]=(0,r.useState)(a);return(0,r.useEffect)(()=>{if(a)return;let e=!0;return fetch("/api/geo").then(e=>e.json()).then(t=>{var s;a={country:null!==(s=t.country)&&void 0!==s?s:null,isUS:!!t.isUS},e&&n(a)}).catch(()=>{a={country:null,isUS:!1},e&&n(a)}),()=>{e=!1}},[]),{country:null!==(e=null==s?void 0:s.country)&&void 0!==e?e:null,isUS:null!==(t=null==s?void 0:s.isUS)&&void 0!==t&&t,loaded:null!=s}}},99358:(e,t,s)=>{"use strict";s.d(t,{default:()=>y});var r=s(95155),a=s(12115),n=s(17607),i=s(75074),o=s(68098),l=s(91721),c=s(7390),d=s(95633),h=s(74601),m=s(25318),u=s(61840),x=s(79556),g=s(21868),f=s(6874),p=s.n(f);function b(e){let{isOpen:t,onClose:s,trigger:f="manual"}=e,{user:b}=(0,g.A)(),[w,y]=(0,a.useState)(new Set),v=e=>{let t=new Set(w);t.has(e)?t.delete(e):t.add(e),y(t)},j="first-wishlist-ready"===f?{title:"Your wishlist is ready to share!",subtitle:"Make it public or send the link to friends",steps:[{icon:(0,r.jsx)(n.A,{className:"w-6 h-6 text-brand"}),title:"Share your list",description:"Open Settings on your wishlist to set visibility (Private, Unlisted, or Public) and copy your share link.",tip:"Public lists can show up in browse. Unlisted stays link-only.",image:"/images/help/h3.png"}]}:b?{title:"Welcome to LMK.today!",subtitle:"Help is always available by clicking the ? icon in the top right corner. Ready to get started?",steps:[{icon:(0,r.jsx)(o.A,{className:"w-6 h-6 text-brand"}),title:"Quick Start",description:"Learn how LMK.today works with our simple help guide.",actionButton:{text:"Browse Help Guide",href:"/help"}},{icon:(0,r.jsx)(h.A,{className:"w-6 h-6 text-green-500"}),title:"Jump Right In",description:"Ready to start creating wishlists? You've got this!",actionButton:{text:"I'll figure it out!",href:"#close"}}]}:{title:"Welcome to LMK.today!",subtitle:"The easiest way to create and share wishlists - sign up to unlock all features",steps:[{icon:(0,r.jsx)(i.A,{className:"w-6 h-6 text-brand"}),title:"Hunt for treasures",description:"Search products, paste a URL, or use the Chrome extension. Tap Wishlist when you find something you want.",tip:"Tip: Ask AI can also help you find gift ideas.",image:"/images/help/h1.png",actionButton:{text:"Browse products",href:"/products"}},{icon:(0,r.jsx)(o.A,{className:"w-6 h-6 text-red-500"}),title:"Build your list",description:"Create unlimited wishlists for birthdays, holidays, registries â whatever you need.",tip:"Sign up free to start your first list.",image:"/images/help/h2.png",actionButton:{text:"Sign up free",href:"/auth/login"}},{icon:(0,r.jsx)(n.A,{className:"w-6 h-6 text-green-500"}),title:"Share it",description:"Set visibility to Private, Unlisted (link only), or Public. Copy your share link from Share or Settings.",tip:"Public lists can appear in browse for others to discover.",image:"/images/help/h3.png",actionButton:{text:"Sign up to create",href:"/auth/login"}},{icon:(0,r.jsx)(l.A,{className:"w-6 h-6 text-brand"}),title:"Make it yours",description:"Add a profile name, avatar, and wishlist descriptions so friends recognize your lists.",tip:"Sign up to customize your profile.",image:"/images/help/h4.png",actionButton:{text:"Create account",href:"/auth/login"}},{icon:(0,r.jsx)(c.A,{className:"w-6 h-6 text-orange-500"}),title:"Send the link",description:"Share before birthdays, holidays, or whenever people ask what you want.",tip:"Browse public lists for inspiration.",image:"/images/help/h5.png",actionButton:{text:"Join now",href:"/auth/login"},sampleLink:{text:"Browse public wishlists",href:"/wishlists/browse"}},{icon:(0,r.jsx)(d.A,{className:"w-6 h-6 text-brand"}),title:"Link-in-bio ready",description:"In wishlist Settings â Appearance, turn on a bio-style header and theme for Instagram or TikTok.",tip:"One link, your whole list â perfect for social bi
1os.",image:"/images/help/h5.png",actionButton:{text:"Get started",href:"/auth/login"},sampleLink:{text:"Browse public wishlists",href:"/wishlists/browse"}},{icon:(0,r.jsx)(h.A,{className:"w-6 h-6 text-pink-500"}),title:"Find inspiration",description:"Browse public wishlists for gift ideas, then share your own list with friends and family.",tip:"Copy items you love into your own list.",image:"/images/help/h6.png",actionButton:{text:"Browse wishlists",href:"/wishlists/browse"}}]};return t?(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-0 sm:p-4 pt-16 md:pt-8",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm transition-opacity duration-300"}),(0,r.jsxs)("div",{className:"relative bg-white sm:rounded-2xl shadow-2xl w-full sm:max-w-4xl max-h-[100vh] sm:max-h-[90vh] overflow-hidden transform transition-all duration-300 scale-100 animate-in fade-in zoom-in-95",children:[(0,r.jsxs)("div",{className:"bg-gradient-to-r from-slate-50 to-gray-50 border-b border-gray-200 p-4 sm:p-6 relative",children:[(0,r.jsx)("button",{onClick:s,className:"absolute top-4 right-4 p-2 hover:bg-gray-200 rounded-full transition-colors text-gray-500 hover:text-gray-700",children:(0,r.jsx)(m.A,{className:"w-5 h-5"})}),(0,r.jsxs)("div",{className:"pr-12",children:[(0,r.jsx)("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 mb-2",children:j.title}),(0,r.jsx)("p",{className:"text-sm sm:text-base text-gray-600",children:j.subtitle})]})]}),(0,r.jsx)("div",{className:"p-4 sm:p-6 max-h-[calc(100vh-200px)] sm:max-h-[60vh] overflow-y-auto",children:"first-wishlist-ready"===f?(0,r.jsx)("div",{className:"space-y-4",children:j.steps.map((e,t)=>(0,r.jsx)("div",{className:"p-4 bg-brand-muted rounded-xl border border-brand transform transition-all duration-200 hover:scale-[1.02]",children:(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:e.icon}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("h3",{className:"font-semibold text-lg text-gray-800 mb-2",children:e.title}),(0,r.jsx)("p",{className:"text-gray-600 mb-3",children:e.description}),"image"in e&&e.image&&(0,r.jsx)("div",{className:"mb-3 overflow-x-auto",children:(0,r.jsx)("img",{src:e.image,alt:e.title,className:"w-full sm:max-w-md h-40 sm:h-32 object-contain sm:object-cover rounded-lg border border-brand bg-white",onError:t=>{t.currentTarget.src="data:image/svg+xml;base64,".concat(btoa('\n <svg width="400" height="128" xmlns="http://www.w3.org/2000/svg">\n <rect width="100%" height="100%" fill="#f3f4f6"/>\n <text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="#6b7280" font-family="Arial, sans-serif" font-size="14">'.concat(e.title,"</text>\n </svg>\n ")))}})}),"tip"in e&&e.tip&&(0,r.jsx)("div",{className:"bg-white/80 p-3 rounded-lg border border-brand",children:(0,r.jsx)("p",{className:"text-sm text-brand font-medium",children:e.tip})})]})]})},t))}):b?(0,r.jsx)("div",{className:"space-y-6 text-center",children:(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:j.steps.map((e,t)=>(0,r.jsx)("div",{className:"p-6 bg-brand-light rounded-xl border border-brand",children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:e.icon}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h3",{className:"font-semibold text-lg text-gray-800 mb-2",children:e.title}),(0,r.jsx)("p",{className:"text-gray-600 mb-4",children:e.description}),"actionButton"in e&&e.actionButton&&("actionButton"in e&&e.actionButton&&"#close"===e.actionButton.href?(0,r.jsx)("button",{onClick:s,className:"inline-flex items-center gap-2 px-6 py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors font-medium",children:"actionButton"in e&&e.actionButton?e.actionButton.text:""}):"actionButton"in e&&e.actionButton?(0,r.jsxs)(p(),{href:e.actionButton.href,onClick:s,className:"inline-flex items-center gap-2 px-6 py-3 bg-brand text-white rounded-lg hover:bg-brand-hover transition-colors font-medium",children:[e.actionButton.text,(0,r.jsx)(u.A,{className:"w-4 h-4"})]}):null)]})]})},t))})}):(0,r.jsx)("div",{className:"space-y-3",children:j.steps.map((e,t)=>{let a=w.has(t);return(0,r.jsxs)("div",{className:"border border-gray-200 rounded-xl overflow-hidden transform transition-all duration-200 hover:shadow-md",children:[(0,r.jsxs)("button",{onClick:()=>v(t),className:"w-full p-4 bg-gray-50 hover:bg-gray-100 transition-colors flex items-center gap-4 text-left",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:e.icon}),(0,r.jsx)("div",{className:"flex-1 min-w-0",children:(0,r.jsx)("h3",{className:"font-semibold text-base sm:text-lg text-gray-800",children:e.title})}),(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)("div",{className:"transform transition-transform duration-200 ".concat(a?"rotate-180":""),children:(0,r.jsx)(x.A,{className:"w-5 h-5 text-gray-500"})})})]}),(0,r.jsx)("div",{className:"overflow-hidden transition-all duration-300 ".concat(a?"max-h-[500px] opacity-100":"max-h-0 opacity-0"),children:(0,r.jsxs)("div",{className:"p-4 bg-white border-t border-gray-200",children:[(0,r.jsx)("p",{className:"text-sm sm:text-base text-gray-600 mb-3",children:e.description}
1),"image"in e&&e.image&&(0,r.jsx)("div",{className:"mb-3",children:(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsx)("img",{src:e.image,alt:e.title,className:"w-full min-w-[300px] sm:max-w-md h-40 sm:h-32 object-contain sm:object-cover rounded-lg border border-gray-200 bg-white",onError:t=>{t.currentTarget.src="data:image/svg+xml;base64,".concat(btoa('\n <svg width="400" height="128" xmlns="http://www.w3.org/2000/svg">\n <rect width="100%" height="100%" fill="#f3f4f6"/>\n <text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="#6b7280" font-family="Arial, sans-serif" font-size="14">'.concat(e.title,"</text>\n </svg>\n ")))}})})}),"tip"in e&&e.tip&&(0,r.jsx)("div",{className:"bg-brand-light p-3 rounded-lg border border-brand mb-3",children:(0,r.jsx)("p",{className:"text-sm text-brand font-medium",children:e.tip})}),"actionButton"in e&&e.actionButton&&(0,r.jsxs)(p(),{href:e.actionButton.href,onClick:s,className:"inline-flex items-center gap-2 px-4 py-2 bg-brand text-white rounded-lg hover:bg-brand-hover transition-colors font-medium text-sm",children:[e.actionButton.text,(0,r.jsx)(u.A,{className:"w-4 h-4"})]}),"sampleLink"in e&&e.sampleLink&&(0,r.jsxs)(p(),{href:e.sampleLink.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 ml-3 bg-brand-light text-brand rounded-lg hover:bg-brand-light transition-colors font-medium text-sm border border-brand",children:[e.sampleLink.text,(0,r.jsx)(u.A,{className:"w-4 h-4"})]})]})})]},t)})})}),(0,r.jsx)("div",{className:"border-t bg-gray-50 p-4 sm:p-6",children:(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row justify-between items-center gap-4",children:[!b&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-sm text-gray-500 text-center sm:text-left",children:"Ready to start creating amazing wishlists?"}),(0,r.jsx)("button",{onClick:s,className:"px-6 py-2 bg-brand text-white rounded-lg hover:bg-brand-hover transition-all duration-200 font-medium transform hover:scale-105",children:"Let's explore!"})]}),b&&"first-wishlist-ready"===f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-sm text-gray-500 text-center sm:text-left",children:"Ready to make your wishlist famous?"}),(0,r.jsx)("button",{onClick:s,className:"px-6 py-2 bg-brand text-white rounded-lg hover:bg-brand-hover transition-all duration-200 font-medium transform hover:scale-105",children:"Got it!"})]})]})})]})]}):null}var w=s(37705);function y(){let{isOpen:e,trigger:t,closeModal:s}=(0,w.X)();return(0,r.jsx)(b,{isOpen:e,onClose:s,trigger:t})}}},e=>{var t=t=>e(e.s=t);e.O(0,[42191,67690,19268,6874,44134,83254,25221,44277,33063,56671,73399,78250,49073,50870,47002,83912,60063,52525,18420,91391,66296,36608,28441,31684,77358],()=>t(41787)),_N_E=e.O()}]);
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.