PageSourceSearch

https://hovernotes.io/_next/static/chunks/app/layout-ef8d3ae320b45ac7.js?dpl=dpl_9YAGzNbsfBjKiUx7zf5n4LWcR3n5

js hovernotes.io collected 2026-10-01 16:32:50 UTC 12,658 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2096:(e,t,r)=>{"use strict";r.d(t,{Qg:()=>m,Sb:()=>p,US:()=>d,aD:()=>v,eC:()=>h,tE:()=>u,y8:()=>f});var s=r(68987),i=r(2315),n=r(25915),o=r(89936),a=r(61377),l=r(84164);let u=o.Kq,d=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)(o.LM,{ref:t,className:(0,l.cn)("fixed top-0 left-0 z-[100] flex max-h-screen flex-col p-4 max-w-md",r),...i})});d.displayName=o.LM.displayName;let c=(0,a.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-top-4 data-[state=open]:duration-300 data-[state=open]:ease-out data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=closed]:duration-200",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=i.forwardRef((e,t)=>{let{className:r,variant:i,...n}=e;return(0,s.jsx)(o.bL,{ref:t,className:(0,l.cn)(c({variant:i}),r),...n})});f.displayName=o.bL.displayName;let m=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)(o.rc,{ref:t,className:(0,l.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary hover:text-secondary-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...i})});m.displayName=o.rc.displayName;let h=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)(o.bm,{ref:t,className:(0,l.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...i,children:(0,s.jsx)(n.MKb,{className:"h-4 w-4"})})});h.displayName=o.bm.displayName;let p=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)(o.hE,{ref:t,className:(0,l.cn)("text-sm font-semibold [&+div]:text-xs",r),...i})});p.displayName=o.hE.displayName;let v=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)(o.VY,{ref:t,className:(0,l.cn)("text-sm opacity-90",r),...i})});v.displayName=o.VY.displayName},10750:(e,t,r)=>{"use strict";r.d(t,{PostHogProvider:()=>m});var s=r(68987),i=r(82301),n=r(98426),o=r(38546),a=r(2315),l=r(98088);function u(){let e,t,r=(0,i.c)(5),s=(0,l.usePathname)(),n=(0,l.useSearchParams)(),u=(0,o.sf)();return r[0]!==s||r[1]!==u||r[2]!==n?(e=()=>{if(s&&u){let e=window.origin+s;n.toString()&&(e=e+"?"+n.toString()),u.capture("$pageview",{$current_url:e})}},t=[s,n,u],r[0]=s,r[1]=u,r[2]=n,r[3]=e,r[4]=t):(e=r[3],t=r[4]),(0,a.useEffect)(e,t),null}function d(){let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(a.Suspense,{fallback:null,children:(0,s.jsx)(u,{})}),t[0]=e):e=t[0],e}var c=r(11152),f=r(38926);function m(e){let t,r,u,m,p,v,g,y=(0,i.c)(13),{children:x}=e,{user:b}=(0,c.J)(),w=(0,l.usePathname)();y[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],y[0]=t):t=y[0],(0,a.useEffect)(h,t),y[1]!==b?(r=()=>{(null==b?void 0:b.id)&&n.Ay.identify(b.id,{id:b.id,email:b.email,firstName:b.firstName,lastName:b.lastName,country:b.country,role:b.role,createdAt:b.createdAt,emailVerified:b.emailVerified,hasPassword:b.hasPassword,persistentClientId:b.persistentClientId})},u=[b],y[1]=b,y[2]=r,y[3]=u):(r=y[2],u=y[3]),(0,a.useEffect)(r,u),y[4]!==w||y[5]!==(null==b?void 0:b.id)?(m=()=>{let e;if(w&&n.Ay.__loaded)return e=!1,(0,f.X$)({pathname:w,userId:null==b?void 0:b.id}).then(t=>{e||(t?n.Ay.startSessionRecording():n.Ay.stopSessionRecording())}),()=>{e=!0}},y[4]=w,y[5]=null==b?void 0:b.id,y[6]=m):m=y[6];let S=null==b?void 0:b.id;return y[7]!==w||y[8]!==S?(p=[w,S],y[7]=w,y[8]=S,y[9]=p):p=y[9],(0,a.useEffect)(m,p),y[10]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(d,{}),y[10]=v):v=y[10],y[11]!==x?(g=(0,s.jsxs)(o.so,{client:n.Ay,children:[v,x]}),y[11]=x,y[12]=g):g=y[12],g}function h(){n.Ay.init("phc_BddVcXuzCm11YAmsvpHitWcRTmjLdNTuKi32aApKnej",{api_host:"https://e.hovernotes.io",defaults:"2026-01-30",person_profiles:"identified_only",capture_pageview:!0,capture_performance:!1,capture_dead_clicks:!1,capture_pageleave:!1,disable_session_recording:!0,session_recording:{maskAllInputs:!1}})}},11152:(e,t,r)=>{"use strict";r.d(t,{J:()=>a,UserProvider:()=>l});var s=r(68987),i=r(82301),n=r(2315);let o=(0,n.createContext)(null);function a(){let e=(0,n.use)(o);if(null===e)throw Error("useUser must be used within a UserProvider");return e}function l(e){let t,r,a,l,u=(0,i.c)(8),{children:d,userPromise:c}
1=e,f=(0,n.use)(c),[m,h]=(0,n.useState)(f);return u[0]!==f?(t=()=>{h(f)},r=[f],u[0]=f,u[1]=t,u[2]=r):(t=u[1],r=u[2]),(0,n.useEffect)(t,r),u[3]!==m?(a={user:m,setUser:h},u[3]=m,u[4]=a):a=u[4],u[5]!==d||u[6]!==a?(l=(0,s.jsx)(o.Provider,{value:a,children:d}),u[5]=d,u[6]=a,u[7]=l):l=u[7],l}},15735:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>c});var s=r(2315),i=r(98426);let n=0,o=new Map,a=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),d({type:"REMOVE_TOAST",toastId:e})},3e3);o.set(e,t)},l=[],u={toasts:[]};function d(e){u=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?a(r):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(u,e),l.forEach(e=>{e(u)})}function c(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s="string"==typeof t.title?t.title:void 0,o="string"==typeof t.description?t.description:void 0;i.Ay.capture("toast_shown",{title:s,description:o,variant:t.variant||"default"});let a=()=>d({type:"DISMISS_TOAST",toastId:r});return d({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(u);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},31877:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,41290,23)),Promise.resolve().then(r.bind(r,10750)),Promise.resolve().then(r.bind(r,77736)),Promise.resolve().then(r.bind(r,98493)),Promise.resolve().then(r.bind(r,11152)),Promise.resolve().then(r.bind(r,28875)),Promise.resolve().then(r.bind(r,79269)),Promise.resolve().then(r.bind(r,53762)),Promise.resolve().then(r.bind(r,99813)),Promise.resolve().then(r.t.bind(r,68598,23)),Promise.resolve().then(r.t.bind(r,75726,23))},38926:(e,t,r)=>{"use strict";r.d(t,{X$:()=>c,ur:()=>a});var s=r(63488);let i=["sign-in","local-video","extension"],n="hn_session_replay_paying",o=["session","authjs.session-token"];function a(e){let t=new URLSearchParams(e),r=o.map(e=>t.get(e)).find(e=>!!e);return r?{"x-session-token":r}:{}}async function l(){let e=a(window.location.search),t=await fetch("/api/subscription/status",{headers:e,cache:"no-store"});if(!t.ok)throw Error("subscription status request failed: ".concat(t.status));return!0===(await t.json()).isPayingCustomer}let u=null;async function d(e){let{userId:t,fetchStatus:r=l,storage:s=function(){try{return window.localStorage}catch(e){return null}}(),now:i=Date.now()}=e,o=function(e){if(!e)return null;try{let t=e.getItem(n);if(!t)return null;let r=JSON.parse(t);if("string"!=typeof r.userId||"boolean"!=typeof r.isPaying||"number"!=typeof r.checkedAt)return null;return{userId:r.userId,isPaying:r.isPaying,checkedAt:r.checkedAt}}catch(e){return null}}(s);if(!t)return!!(o&&o.isPaying&&i-o.checkedAt<2592e6);let a=(null==o?void 0:o.userId)===t;if(o&&a&&i-o.checkedAt<216e5)return o.isPaying;if((null==u?void 0:u.userId)===t)return u.promise;let d=r().then(e=>{if(s)try{s.setItem(n,JSON.stringify({userId:t,isPaying:e,checkedAt:i}))}catch(e){}return e}).catch(()=>!!o&&!!a&&o.isPaying).finally(()=>{(null==u?void 0:u.promise)===d&&(u=null)});return u={userId:t,promise:d},d}async function c(e){return!!function(e){if(!e)return!1;let t=e.split("/").filter(Boolean),r=s.Fc.includes(t[0])?t[1]:t[0];return i.includes(r)}(e.pathname)&&d(e)}},41290:()=>{},77736:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>c,D:()=>f});var s=r(68987),i=r(82301),n=r(2315),o=r(98088);let a=["/home","/notes","/settings","/account","/billing","/obsidian","/local-video"];function l(e,t){if(null==e?void 0:e.startsWith("/extension"))return!0;let r=(null==t?void 0:t.get("isExtension"))==="true"||(null==t?void 0:t.get("extension_auth"))==="true";return"/sign-in"===e&&r}function u(e){return!!e&&a.some(t=>e===t||e.startsWith("".concat(t,"/")))}let d=(0,n.createContext)({theme:"light",setTheme:()=>null});function c(e){let t,r,a,c,f,m,h,p,v,g,y=(0,i.c)(22);y[0]!==e?({children:t,defaultTheme:a,storageKey:c,...r}=e,y[0]=e,y[1]=t,y[2]=r,y[3]=a,y[4]=c):(t=y[1],r=y[2],a=y[3],c=y[4]);let x=void 0===a?"light":a,b=void 0===c?"hover-notes-theme":c,w=(0,o.usePathname)(),S=(0,o.useSearchParams)();y[5]!==x||y[6]!==b?(f=()=>{let e=localStorage.getItem(b);return"dark"===e||"light"===e?e:x},y[5]=x,y[6]=b,y[7]=f):f=y[7];
1let[_,P]=(0,n.useState)(f);return y[8]!==w||y[9]!==S||y[10]!==_?(m=()=>{let e=l(w,S)||u(w),t=window.document.documentElement;t.classList.remove("light","dark"),t.classList.add(e?_:"light"),t.classList.toggle("app-route",u(w)),window.document.body.classList.toggle("extension-route",l(w,S))},h=[w,S,_],y[8]=w,y[9]=S,y[10]=_,y[11]=m,y[12]=h):(m=y[11],h=y[12]),(0,n.useEffect)(m,h),y[13]!==b?(p=e=>{localStorage.setItem(b,e),P(e)},y[13]=b,y[14]=p):p=y[14],y[15]!==p||y[16]!==_?(v={theme:_,setTheme:p},y[15]=p,y[16]=_,y[17]=v):v=y[17],y[18]!==t||y[19]!==r||y[20]!==v?(g=(0,s.jsx)(d.Provider,{...r,value:v,children:t}),y[18]=t,y[19]=r,y[20]=v,y[21]=g):g=y[21],g}let f=()=>{let e=(0,n.useContext)(d);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}},84164:(e,t,r)=>{"use strict";r.d(t,{bF:()=>l,cO:()=>c,cn:()=>o,cs:()=>u,uf:()=>a,zV:()=>d});var s=r(51177),i=r(4682),n=r(58870);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,s.$)(t))}function a(){return(0,n.Z0)()}function l(){return window.self!==window.parent}function u(e,t){let r=e.split(".").map(Number),s=t.split(".").map(Number),i=Math.max(r.length,s.length);for(;r.length<i;)r.push(0);for(;s.length<i;)s.push(0);for(let e=0;e<i&&!(r[e]>s[e]);e++)if(r[e]<s[e])return!1;return!0}function d(e,t){return!u(e,t)}function c(){let e=navigator.userAgent,t="unknown",r="";if(e.match(/chrome|chromium|crios/i)){t="Chrome";let s=e.match(/(?:chrome|chromium|crios)\/(\d+)/i);if(s&&(r=s[1]),-1!==e.indexOf("Edg")){t="Edge";let s=e.match(/edg\/(\d+)/i);s&&(r=s[1])}}else if(e.match(/firefox|fxios/i)){t="Firefox";let s=e.match(/(?:firefox|fxios)\/(\d+)/i);s&&(r=s[1])}else if(e.match(/safari/i)&&!e.match(/chrome|chromium|crios/i)){t="Safari";let s=e.match(/version\/(\d+)/i);s&&(r=s[1])}return{name:t,version:r}}},98493:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>a});var s=r(68987),i=r(82301),n=r(15735),o=r(2096);function a(){let e,t,r,a=(0,i.c)(5),{toasts:u}=(0,n.dj)();return a[0]!==u?(e=u.map(l),a[0]=u,a[1]=e):e=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)(o.US,{}),a[2]=t):t=a[2],a[3]!==e?(r=(0,s.jsxs)(o.tE,{children:[e,t]}),a[3]=e,a[4]=r):r=a[4],r}function l(e){let{id:t,title:r,description:i,action:n,duration:a,...l}=e;return(0,s.jsxs)(o.y8,{duration:null!=a?a:3e3,...l,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[r&&(0,s.jsx)(o.Sb,{children:r}),i&&(0,s.jsx)(o.aD,{children:i})]}),n,(0,s.jsx)(o.eC,{})]},t)}}},e=>{e.O(0,[1741,9380,8229,5105,938,3002,9876,5310,9813,9936,5839,3488,8875,8441,6655,7358],()=>e(e.s=31877)),_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.