PageSourceSearch

https://tikonote.app/_next/static/chunks/302d84c914b26e46.js

js tikonote.app collected 2026-09-24 13:26:57 UTC 27,147 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,877389,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(618566),s=e.i(416023),l=e.i(552808),i=e.i(854602),n=e.i(876187),o=e.i(157185),d=e.i(363968),c=e.i(841238),u=e.i(611698),f=e.i(278789),h=e.i(674908),p=e.i(2590),x=e.i(4986),m=e.i(445575);let g=(0,a.createContext)(void 0),v={en:s.default,fr:l.default,ar:i.default,es:n.default,pt:o.default,de:d.default,id:c.default,tr:u.default,it:f.default,ko:h.default,ja:p.default,zh:x.default,da:m.default},b="app_locale";function j({children:e}){let s=(0,r.useRouter)();(0,r.usePathname)();let l=(0,r.useParams)(),i=(0,a.useMemo)(()=>{let e=l?.locale;if(e&&["en","fr","ar","es","pt","de","id","tr","it","ko","ja","zh","da"].includes(e))return e;let t=localStorage.getItem(b);if(t&&["en","fr","ar","es","pt","de","id","tr","it","ko","ja","zh","da"].includes(t))return t;let a=navigator.language.split("-")[0];return["en","fr","ar","es","pt","de","id","tr","it","ko","ja","zh","da"].includes(a)?a:"en"},[l?.locale]),[n,o]=(0,a.useState)(!1);(0,a.useEffect)(()=>{o(!0),l?.locale&&localStorage.setItem(b,l.locale)},[l?.locale]);let d=(0,a.useCallback)(e=>{localStorage.setItem(b,e);let t=window.location.pathname,a=window.location.search,r=window.location.hash,l=t.split("/");if(["en","fr","ar","es","pt","de","id","tr","it","ko","ja","zh","da"].includes(l[1])){l[1]=e;let t=l.join("/")+a+r;s.push(t)}else s.push(`/${e}${t}${a}${r}`)},[s]),c=(0,a.useCallback)((e,t)=>{let a=e.split("."),r=v[i];for(let e of a)r=r?.[e];return"string"==typeof r&&t?r.replace(/\{(\w+)\}/g,(e,a)=>void 0!==t[a]?String(t[a]):`{${a}}`):r||e},[i]),u=(0,a.useMemo)(()=>({locale:i,setLocale:d,t:c}),[i,d,c]);return n?(0,t.jsx)(g.Provider,{value:u,children:e}):null}function y(){let e=(0,a.useContext)(g);if(!e)throw Error("useAppI18n must be used within AppI18nProvider");return e}function w(){let{locale:e}=y();return"ar"===e?"rtl":"ltr"}e.s(["AppI18nProvider",()=>j,"useAppI18n",()=>y,"useTextDirection",()=>w])},180127,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["default",()=>t])},871689,e=>{"use strict";var t=e.i(180127);e.s(["ArrowLeft",()=>t.default])},641877,e=>{"use strict";let t=(0,e.i(475254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["default",()=>t])},248256,e=>{"use strict";var t=e.i(641877);e.s(["Globe",()=>t.default])},54943,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",()=>t])},336208,e=>{"use strict";let t=(0,e.i(475254).default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["default",()=>t])},167203,e=>{"use strict";let t=(0,e.i(475254).default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["default",()=>t])},678745,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t])},643531,e=>{"use strict";var t=e.i(678745);e.s(["Check",()=>t.default])},37727,841947,e=>{"use strict";let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",()=>t],841947),e.s(["X",()=>t],37727)},88653,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(271645),r=e.i(231178),s=e.i(947414),l=e.i(674008),i=e.i(821476),n=e.i(772846),o=a,d=e.i(737806);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,a=(0,n.isHTMLElement)(e)&&e.offsetWidth||0,r=(0,n.isHTMLElement)(e)&&e.offsetHeight||0,s=this.props.sizeRef.current;s.height=t.offsetHeight||0,s.width=t.offsetWidth||0,s.top=t.offsetTop,s.left=t.offsetLeft,s.right=a-s.width-s.left,s.bottom=r-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:r,anchorX:s,anchorY:l,root:i}){let n=(0,o.useId)(),f=(0,o.useRef)(null),h=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=(0,o.useContext)(d.MotionConfigContext),x=function(...e){return a.useCallback(function(...e){return t=>{let a=!1,r=e.map(e=>{let r=c(e,t);return a||"function"!=typeof r||(a=!0),r});if(a)return()=>{for(let t=0;t<r.length;t++){let a=r[t];"function"==typeof a?a():c(e[t],null)}}}}(...e),e)}(f,e.props?.ref??e?.ref);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:a,left:o,right:d,bottom:c}=h.current;if(r||!f.current||!e||!t)return;
1let u="left"===s?`left: ${o}`:`right: ${d}`,x="bottom"===l?`bottom: ${c}`:`top: ${a}`;f.current.dataset.motionPopId=n;let m=document.createElement("style");p&&(m.nonce=p);let g=i??document.head;return g.appendChild(m),m.sheet&&m.sheet.insertRule(`
2          [data-motion-pop-id="${n}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${t}px !important;
6            ${u}px !important;
7            ${x}px !important;
8          }
9        `),()=>{g.contains(m)&&g.removeChild(m)}},[r]),(0,t.jsx)(u,{isPresent:r,childRef:f,sizeRef:h,children:o.cloneElement(e,{ref:x})})}let h=({children:e,initial:r,isPresent:l,onExitComplete:n,custom:o,presenceAffectsLayout:d,mode:c,anchorX:u,anchorY:h,root:x})=>{let m=(0,s.useConstant)(p),g=(0,a.useId)(),v=!0,b=(0,a.useMemo)(()=>(v=!1,{id:g,initial:r,isPresent:l,custom:o,onExitComplete:e=>{for(let t of(m.set(e,!0),m.values()))if(!t)return;n&&n()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[l,m,n]);return d&&v&&(b={...b}),(0,a.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[l]),a.useEffect(()=>{l||m.size||!n||n()},[l]),"popLayout"===c&&(e=(0,t.jsx)(f,{isPresent:l,anchorX:u,anchorY:h,root:x,children:e})),(0,t.jsx)(i.PresenceContext.Provider,{value:b,children:e})};function p(){return new Map}var x=e.i(464978);let m=e=>e.key||"";function g(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let v=({children:e,custom:i,initial:n=!0,onExitComplete:o,presenceAffectsLayout:d=!0,mode:c="sync",propagate:u=!1,anchorX:f="left",anchorY:p="top",root:v})=>{let[b,j]=(0,x.usePresence)(u),y=(0,a.useMemo)(()=>g(e),[e]),w=u&&!b?[]:y.map(m),k=(0,a.useRef)(!0),N=(0,a.useRef)(y),C=(0,s.useConstant)(()=>new Map),M=(0,a.useRef)(new Set),[z,P]=(0,a.useState)(y),[S,L]=(0,a.useState)(y);(0,l.useIsomorphicLayoutEffect)(()=>{k.current=!1,N.current=y;for(let e=0;e<S.length;e++){let t=m(S[e]);w.includes(t)?(C.delete(t),M.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[S,w.length,w.join("-")]);let $=[];if(y!==z){let e=[...y];for(let t=0;t<S.length;t++){let a=S[t],r=m(a);w.includes(r)||(e.splice(t,0,a),$.push(a))}return"wait"===c&&$.length&&(e=$),L(g(e)),P(y),null}let{forceRender:E}=(0,a.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:S.map(e=>{let a=m(e),r=(!u||!!b)&&(y===S||w.includes(a));return(0,t.jsx)(h,{isPresent:r,initial:(!k.current||!!n)&&void 0,custom:i,presenceAffectsLayout:d,mode:c,root:v,onExitComplete:r?void 0:()=>{if(M.current.has(a)||(M.current.add(a),!C.has(a)))return;C.set(a,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(E?.(),L(N.current),u&&j?.(),o&&o())},anchorX:f,anchorY:p,children:e},a)})})};e.s(["AnimatePresence",()=>v],88653)},631171,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",()=>t])},664659,e=>{"use strict";var t=e.i(631171);e.s(["ChevronDown",()=>t.default])},555436,e=>{"use strict";var t=e.i(54943);e.s(["Search",()=>t.default])},606315,62474,e=>{"use strict";function t(e){return"ar"===e?"rtl":"ltr"}e.s(["getLocaleDirection",()=>t,"localeFlags",0,{en:"🇺🇸",fr:"🇫🇷",ar:"🇸🇦",es:"🇪🇸",pt:"🇧🇷",de:"🇩🇪",id:"🇮🇩",tr:"🇹🇷",it:"🇮🇹",ko:"🇰🇷",ja:"🇯🇵",zh:"🇨🇳",da:"🇩🇰"},"localeNames",0,{en:"English",fr:"Français",ar:"العربية",es:"Español",pt:"Português",de:"Deutsch",id:"Bahasa Indonesia",tr:"Türkçe",it:"Italiano",ko:"한국어",ja:"日本語",zh:"简体中文",da:"Dansk"},"locales",0,["en","fr","ar","es","pt","de","id","tr","it","ko","ja","zh","da"]],606315);var a=e.i(843476),r=e.i(363178),s=e.i(271645),l=e.i(336208),l=l,i=e.i(167203),i=i;function n(){let{theme:e,setTheme:t,resolvedTheme:n}=(0,r.useTheme)(),[o,d]=(0,s.useState)(!1);if((0,s.useEffect)(()=>d(!0),[]),!o)return(0,a.jsx)("div",{className:"w-[42px] h-[42px] rounded-xl bg-transparent"});let c="dark"===n;return(0,a.jsx)("button",{onClick:()=>t(c?"light":"dark"),className:"w-[42px] h-[42px] flex items-center justify-center rounded-xl border border-[var(--border)] bg-transparent text-[var(--fg-muted)] hover:text-[var(--accent)] hover:border-[var(--accent)]/40 transition-all duration-200 hover:scale-105 active:scale-95","aria-label":c?"Switch to light mode":"Switch to dark mode",title:c?"Light mode":"Dark mode",children:c?(0,a.jsx)(l.default,{className:"w-[18px] h-[18px]"}):(0,a.jsx)(i.default,{className:"w-[18px] h-[18px]"})})}e.s(["ThemeToggle",()=>n],62474)},10252,903446,e=>{"use strict";var t=e.i(475254);
9let a=(0,t.default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);e.s(["default",()=>a],10252);let r=(0,t.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["default",()=>r],903446)},707125,e=>{"use strict";let t=(0,e.i(768834).create)(e=>({headerTitle:"",backPath:null,setHeader:(t,a=null)=>e({headerTitle:t,backPath:a}),resetHeader:()=>e({headerTitle:"",backPath:null}),showUpgradeModal:!1,upgradeModalMessage:null,openUpgradeModal:t=>e({showUpgradeModal:!0,upgradeModalMessage:t}),closeUpgradeModal:()=>e({showUpgradeModal:!1,upgradeModalMessage:null}),showLimitedOfferModal:!1,openLimitedOfferModal:()=>e({showLimitedOfferModal:!0}),closeLimitedOfferModal:()=>e({showLimitedOfferModal:!1}),sidebarOpen:!1,setSidebarOpen:t=>e({sidebarOpen:t}),sidebarCollapsed:!1,setSidebarCollapsed:t=>e({sidebarCollapsed:t})}));e.s(["useUIStore",0,t])},325015,e=>{"use strict";var t=e.i(271645);function a(e){let[a,r]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=window.matchMedia(e);r(t.matches);let a=e=>r(e.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),a}e.s(["useMediaQuery",()=>a])},771004,e=>{"use strict";var t=e.i(843476),a=e.i(846932),r=e.i(877389);function s({status:e,showPreparing:s=!0}){let{t:l}=(0,r.useAppI18n)();return(0,t.jsx)("div",{className:"min-h-screen bg-[var(--bg)] flex flex-col items-center justify-center p-4 transition-colors duration-300",children:(0,t.jsxs)(a.motion.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"flex flex-col items-center gap-6",children:[(0,t.jsx)(a.motion.div,{animate:{scale:[1,1.15,1],opacity:[.4,.7,.4]},transition:{duration:2.5,repeat:1/0,ease:"easeInOut"},className:"w-12 h-12 rounded-full bg-[var(--accent)] blur-xl"}),(0,t.jsxs)("div",{className:"text-center space-y-1 px-4 -mt-4",children:[s&&(0,t.jsx)(a.motion.h2,{animate:{opacity:[.6,1,.6]},transition:{duration:2,repeat:1/0},className:"text-lg md:text-xl font-bold text-[var(--fg)] tracking-tight",children:l("common.preparing")}),(0,t.jsx)("p",{className:"text-[var(--fg-muted)] text-xs md:text-sm font-medium opacity-80",children:e||l("common.loading")})]}),(0,t.jsx)("div",{className:"flex gap-2",children:[0,1,2].map(e=>(0,t.jsx)(a.motion.div,{animate:{y:[0,-6,0],scale:[1,1.2,1],opacity:[.3,1,.3]},transition:{duration:.8,repeat:1/0,delay:.15*e,ease:"easeInOut"},className:"w-2.5 h-2.5 bg-[var(--accent)] rounded-full shadow-[0_0_8px_var(--accent)]"},e))})]})})}e.s(["PremiumLoader",()=>s])},223793,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(271645),r=e.i(618566),s=e.i(660183),l=e.i(877389),i=e.i(606315),n=e.i(707125),o=e.i(10252),o=o,d=e.i(871689),c=e.i(903446),c=c,u=e.i(522016),f=e.i(174080),h=e.i(248256),p=e.i(664659),x=e.i(555436),m=e.i(643531),g=e.i(37727),v=e.i(647163),b=e.i(846932),j=e.i(88653);function y({iconOnly:e=!1}){let[r,s]=(0,a.useState)(!1),[n,o]=(0,a.useState)(""),[d,c]=(0,a.useState)(!1),{locale:u,setLocale:y,t:w}=(0,l.useAppI18n)(),k=(0,l.useTextDirection)(),N=(0,a.useRef)(null),C=(0,a.useRef)(null);(0,a.useEffect)(()=>{c(!0)},[]);let M=i.locales.map(e=>({code:e,label:i.localeNames[e],flag:i.localeFlags[e]})),z=()=>{s(!1),o("")};(0,a.useEffect)(()=>{let e=e=>{N.current&&!N.current.contains(e.target)&&z()};return r&&(document.addEventListener("mousedown",e),setTimeout(()=>{C.current?.focus()},150)),()=>{document.removeEventListener("mousedown",e)}},[r]);let P=M.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())||e.code.toLowerCase().includes(n.toLowerCase())),S=M.find(e=>e.code===u),L=({itemPy:e="py-3"})=>(0,t.jsx)("div",{className:"overflow-y-auto flex-1 p-1.5 overscroll-contain",style:{WebkitOverflowScrolling:"touch"},children:P.length>0?(0,t.jsx)("div",{className:"space-y-0.5",children:P.map(a=>(0,t.jsxs)("button",{onClick:()=>{y(a.code),z()},className:(0,v.cn)(`w-full px-3 ${e} text-left flex items-center gap-3 rounded-xl transition-all`,u===a.code?"bg-[var(--accent)]/10 text-[var(--accent)]":"text-[var(--fg-muted)] hover:bg-[var(--bg-surface-2)] hover:text-[var(--fg)]"),children:[(0,t.jsx)("span",{className:"text-xl flex-shrink-0",children:a.flag}),(0,t.jsx)("span",{className:"text-sm font-medium flex-1",children:a.label}),u===a.code&&(0,t.jsx)(m.Check,{size:16,className:"text-[var(--accent)] flex-shrink-0"})]},a.code))}):(0,t.jsxs)("div",{className:"px-4 py-8 text-center flex flex-col items-center gap-2",children:[(0,t.jsx)(x.Search,{size:20,className:"text-[var(--border-strong)]"}),(0,t.jsx)("p",{className:"text-[var(--fg-muted)] text-xs",children:w("common.noLanguagesFound")})]})});return(0,t.jsxs)(t.Fragment,{children:[d&&(0,f.createPortal)((0,t.jsx)("div",{className:"md:hidden",style:{position:"relative",zIndex:9999},children:(0,t.jsx)(()=>(0,t.jsx)(j.AnimatePresence,{children:r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.motion.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},style:{touchAction:"none"},className:"fixed inset-0 bg-black/60 backdrop-blur-sm",onClick:z}),(0,t.jsx)(b.motion.div,{initial:{opacity:0,scale:.9,y:24},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:24},transition:{type:"spring",damping:22,stiffness:280},dir:"ltr",className:"fixed inset-0 flex items-center justify-center p-5 pointer-events-none",children:(0,t.jsxs)("div",{className:"w-full max-w-xs bg-[var(--bg-surface)] border border-[var(--border)] rounded-2xl shadow-2xl flex flex-col pointer-events-auto",style:{maxHeight:"min(80vh, 520px)"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 pt-4 pb-3 border-b border-[var(--border)] flex-shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(h.Globe,{size:18,className:"text-[var(--accent)]"}),(0,t.jsx)("span",{className:"font-bold text-base text-[var(--fg)]",children:w("profile.language")})]}),(0,t.jsx)("button",{onClick:z,className:"w-8 h-8 flex items-center justify-center rounded-full hover:bg-[var(--bg-surface-2)] text-[var(--fg-muted)] hover:text-[var(--fg)] transition-colors",children:(0,t.jsx)(g.X,{size:18})})]}),(0,t.jsx)("div",{className:"px-4 py-3 border-b border-[var(--border)] flex-shrink-0",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--fg-muted)]",size:15}
9),(0,t.jsx)("input",{autoFocus:!0,type:"text",dir:"auto",placeholder:w("common.searchLanguages"),value:n,onChange:e=>o(e.target.value),className:"w-full bg-[var(--bg)] border border-[var(--border)] rounded-xl py-2.5 pl-9 pr-3 text-sm text-[var(--fg)] placeholder-[var(--fg-muted)] focus:outline-none focus:border-[var(--accent)] focus:ring-1 focus:ring-[var(--accent)]/20 transition-all"})]})}),(0,t.jsx)(L,{itemPy:"py-3"})]})})]})}),{})}),document.body),(0,t.jsxs)("div",{className:"relative w-auto",ref:N,children:[(0,t.jsxs)("button",{onClick:()=>s(!r),className:(0,v.cn)("flex items-center justify-center transition-all bg-[var(--bg-surface)] border rounded-lg font-medium text-sm",e?"w-9 h-9 p-0 gap-0":"w-auto px-4 py-2.5 h-[42px] gap-2",r?"border-[var(--accent)] text-[var(--fg)] ring-1 ring-[var(--accent)]/20":"border-[var(--border)] text-[var(--fg-muted)] hover:text-[var(--fg)] hover:border-[var(--border-strong)]"),title:w("profile.language")||"Switch Language",children:[(0,t.jsx)("span",{className:"text-lg leading-none",children:S?.flag}),!e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:S?.label}),(0,t.jsx)(p.ChevronDown,{size:14,className:(0,v.cn)("transition-transform duration-200",r?"rotate-180 text-[var(--accent)]":"")})]})]}),(0,t.jsx)(j.AnimatePresence,{children:r&&(0,t.jsxs)(b.motion.div,{initial:{opacity:0,scale:.95,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:8},transition:{duration:.12,ease:"easeOut"},dir:"ltr",className:(0,v.cn)("hidden md:flex md:flex-col","absolute z-50 mt-2 w-72 bg-[var(--bg-surface)] border border-[var(--border)] rounded-xl shadow-2xl shadow-black/50 overflow-hidden max-h-[400px]","rtl"===k?"left-0":"right-0"),children:[(0,t.jsxs)("div",{className:"p-3 border-b border-[var(--border)] bg-[var(--bg-surface)] sticky top-0 z-10",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,t.jsx)(h.Globe,{size:14,className:"text-[var(--fg-muted)]"}),(0,t.jsx)("span",{className:"text-[10px] font-semibold text-[var(--fg-muted)] uppercase tracking-wider",children:w("profile.language")})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--fg-muted)]",size:13}),(0,t.jsx)("input",{ref:C,type:"text",dir:"auto",placeholder:w("common.searchLanguages"),value:n,onChange:e=>o(e.target.value),className:"w-full bg-[var(--bg)] border border-[var(--border)] rounded-lg py-2 pl-8 pr-3 text-xs text-[var(--fg)] placeholder-[var(--fg-muted)] focus:outline-none focus:border-[var(--accent)] focus:ring-1 focus:ring-[var(--accent)]/20 transition-all"})]})]}),(0,t.jsx)(L,{itemPy:"py-2.5"})]})})]})]})}var w=e.i(62474),k=e.i(770703),N=e.i(325015),C=e.i(657688),M=e.i(771004);let z=(0,k.default)(()=>e.A(156921).then(e=>({default:e.UpgradeModal})),{loadableGenerated:{modules:[380085]}}),P=(0,k.default)(()=>e.A(502346).then(e=>({default:e.LimitedOfferModal})),{loadableGenerated:{modules:[356771]}}),S=RegExp(`^/(${i.locales.join("|")})`);function L({children:i}){let f=(0,r.useRouter)(),h=(0,r.usePathname)(),p=h.match(S)?.[1]||"en",{user:x,isLoading:m,isAuthenticated:g,checkSession:v,signOut:j,setupAuthListener:k,refreshProfile:L,updateUserProfile:$}=(0,s.useAuthStore)(),{t:E}=(0,l.useAppI18n)(),T=(0,l.useTextDirection)(),{headerTitle:A,backPath:I,showUpgradeModal:O,openUpgradeModal:_,closeUpgradeModal:R,showLimitedOfferModal:U,openLimitedOfferModal:D,closeLimitedOfferModal:F,sidebarOpen:H,setSidebarOpen:W,sidebarCollapsed:B,setSidebarCollapsed:G}=(0,n.useUIStore)();(0,a.useRef)(!1),(0,a.useEffect)(()=>{v()},[v]),(0,a.useEffect)(()=>{let{unsubscribe:e}=k();return()=>{e()}},[k]),(0,a.useEffect)(()=>{if(!m&&g&&x?.profile&&"free"===x.profile.subscription_plan&&!0!==x.profile.upgrade_modal_seen){let t=setTimeout(async()=>{_();try{let{data:{session:t}}=await (await e.A(303204)).getSupabase().auth.getSession();(await fetch("https://api.tikonote.app/api/auth/mark-upgrade-modal-seen",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t?.access_token}`}})).ok&&L()}catch(e){console.error("Failed to mark upgrade modal as seen in DB:",e)}},5e3);return()=>clearTimeout(t)}},[m,g,x?.profile,_,L]);let K=(0,N.useMediaQuery)("(min-width: 768px) and (max-width: 1023px)");if((0,a.useEffect)(()=>{K&&G(!0)},[K,G]),(0,a.useEffect)(()=>{m||g||h.includes("/auth")||f.push(`/${p}/auth`)},[m,g,h,f,p]),h.includes("/auth"))return(0,t.jsx)("div",{dir:T,children:i});if(m)return(0,t.jsx)(b.motion.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:(0,t.jsx)(M.PremiumLoader,{})},"loader");if(!g)return null;let X=[{path:"/dashboard",labelKey:"nav.dashboard",icon:o.default}],q=h.includes("/topic/"),Q=h.includes("/feynman"),Y=h.includes("/blurt"),V=A||q||Q||Y;return(0,t.jsxs)(b.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.25,ease:"easeOut"},className:"min-h-screen flex flex-col bg-[var(--bg)] text-[var(--fg)]",style:{direction:T},children:[(0,t.jsx)("header",{className:"md:hidden fixed top-0 left-0 right-0 h-16 bg-[var(--bg-surface)] border-b border-[var(--border)] z-50 flex items-center justify-between px-4",children:A?(0,t.jsxs)("div",{className:"flex items-center gap-3 overflow-hidden min-w-0 flex-1",children:[I&&(0,t.jsx)(u.default,{href:I,className:"p-1 -ml-1 text-[var(--fg-muted)] hover:text-[var(--fg)] flex-none",children:(0,t.jsx)(d.ArrowLeft,{size:20})}),(0,t.jsx)("h1",{className:"font-bold text-lg text-[var(--fg)] truncate flex-1",children:A})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(u.default,{href:`/${p}/dashboard`,className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-7 h-7 bg-white rounded-[8px] flex items-center justify-center p-1 shadow-sm flex-shrink-0 border border-zinc-200 overflow-hidden",children:(0,t.jsx)(C.default,{src:"/tiko-logo-v4.webp",alt:"TikoNote Logo - AI Study App",width:24,height:24,className:"w-full h-full object-contain"})}),(0,t.jsx)("span",{className:"text-xl font-bold text-[var(--accent)] tracking-tight",children:"TikoNote"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y,{iconOnly:!0}),(0,t.jsx)(w.ThemeToggle,{})]})]})}),(0,t.jsx)("header",{className:"hidden md:block w-full z-50 bg-[var(--bg)] sticky top-0 border-b border-[var(--border)] py-4",children:(0,t.jsx)("div",{className:"max-w-[1300px] mx-auto px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)(u.default,{href:`/${p}/dashboard`,className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-white rounded-[10px] flex items-center justify-center p-[5px] shadow-[0_2px_8px_rgba(0,0,0,0.08)] border border-zinc-200/50 overflow-hidden",children:(0,t.jsx)(C.default,{src:"/tiko-logo-v4.webp",alt:"TikoNote Logo",width:24,height:24,className:"w-full h-full object-contain"})}),(0,t.jsx)("span",{className:"text-xl font-bold text-[var(--fg)] tracking-tight",children:"TikoNote"})]}),(0,t.jsx)("div",{className:"hidden sm:block h-6 w-[1px] bg-[var(--border)] mx-2"}),(0,t.jsxs)("nav",{className:"flex items-center gap-3",children:[X.map(e=>{let a=h.includes(e.path);return(0,t.jsxs)(u.default,{href:`/${p}${e.path}`,className:`flex items-center gap-2.5 px-4 py-2 rounded-full font-medium text-[13.5px] transition-all ${a?"bg-[var(--accent)] text-white border border-[var(--accent)] shadow-[0_2px_8px_rgba(var(--accent-rgb),0.25)]":"border border-[var(--border)] text-[var(--fg-muted)] hover:bg-[var(--bg-surface)] hover:text-[var(--fg)]"}`,children:[(0,t.jsx)(e.icon,{size:16,strokeWidth:a?2.5:2}),E(e.labelKey)]},e.path)}),(0,t.jsxs)(u.default,{href:`/${p}/profile`,className:`flex items-center gap-2.5 px-4 py-2 rounded-full font-medium text-[13.5px] transition-all ${h.includes("/profile")?"bg-[var(--accent)] text-white border border-[var(--accent)] shadow-[0_2px_8px_rgba(var(--accent-rgb),0.25)]":"border border-[var(--border)] text-[var(--fg-muted)] hover:bg-[var(--bg-surface)] hover:text-[var(--fg)]"}`,children:[(0,t.jsx)(c.default,{size:16,strokeWidth:h.includes("/profile")?2.5:2}),E("nav.settings")||"Settings"]})]})]}),(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-3",children:[(0,t.jsx)(y,{}),(0,t.jsx)(w.ThemeToggle,{})]})]})})}),(0,t.jsx)("main",{className:`flex-1 w-full mx-auto pt-16 md:pt-2 ${q||Q||Y?"max-w-[1300px] px-0 sm:px-4 md:px-6 lg:px-8":"max-w-[1300px] px-4 md:px-6 lg:px-8"} ${q?"pb-0":!V?"pb-24 md:pb-12":Q||Y?"pb-0":"pb-12"}`,children:(0,t.jsx)("div",{className:"w-full h-full",children:i})}),!V&&(0,t.jsx)("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 bg-[var(--bg)]/95 backdrop-blur-xl border-t border-[var(--border)] z-50 pb-[env(safe-area-inset-bottom)]",children:(0,t.jsxs)("div",{className:"flex items-center justify-around h-16 px-2",children:[(0,t.jsxs)(u.default,{href:`/${p}/dashboard`,className:`flex flex-col items-center justify-center w-full h-full gap-1 transition-colors ${h.includes("/dashboard")?"text-[var(--accent)]":"text-[var(--fg-muted)] hover:text-[var(--fg)]"}`,children:[(0,t.jsx)(o.default,{size:22,strokeWidth:h.includes("/dashboard")?2.5:2}),(0,t.jsx)("span",{className:`text-[11px] ${h.includes("/dashboard")?"font-bold":"font-medium"}`,children:E("nav.dashboard")})]}),(0,t.jsxs)(u.default,{href:`/${p}/profile`,className:`flex flex-col items-center justify-center w-full h-full gap-1 transition-colors ${h.includes("/profile")?"text-[var(--accent)]":"text-[var(--fg-muted)] hover:text-[var(--fg)]"}`,children:[(0,t.jsx)(c.default,{size:22,strokeWidth:h.includes("/profile")?2.5:2}),(0,t.jsx)("span",{className:`text-[11px] ${h.includes("/profile")?"font-bold":"font-medium"}`,children:E("nav.settings")||"Settings"})]})]})}),(0,t.jsx)(z,{isOpen:O,onClose:()=>{R()},currentCount:x?.profile?.topics_created_count||0,limit:x?.profile?.topics_limit||2}),(0,t.jsx)(P,{isOpen:U,onClose:()=>F()})]},"app-layout")}function $({children:e}){return(0,t.jsx)(l.AppI18nProvider,{children:(0,t.jsx)(L,{children:e})})}e.s(["default",()=>$],223793)},156921,e=>{e.v(t=>
9Promise.all(["static/chunks/389632dff44b9293.js","static/chunks/10b1f3d4169e1d79.js"].map(t=>e.l(t))).then(()=>t(380085)))},502346,e=>{e.v(t=>Promise.all(["static/chunks/94deeab1398e2c26.js"].map(t=>e.l(t))).then(()=>t(356771)))},303204,e=>{e.v(e=>Promise.resolve().then(()=>e(117927)))}]);

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.