1import{r as m,g as D,j as e}from"./react-BBVEUT5i.js";import{q as O,o as v,u as E,B as R,U as P,t as G,L as l,s as k}from"./index-izMvfhPJ.js";const B=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,o,i)=>i?i.toUpperCase():o.toLowerCase()),C=a=>{const s=$(a);return s.charAt(0).toUpperCase()+s.slice(1)},A=(...a)=>a.filter((s,o,i)=>!!s&&s.trim()!==""&&i.indexOf(s)===o).join(" ").trim(),H=a=>{for(const s in a)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var I={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const q=m.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:d="",children:r,iconNode:t,...n},f)=>m.createElement("svg",{ref:f,...I,width:s,height:s,stroke:a,strokeWidth:i?Number(o)*24/Number(s):o,className:A("lucide",d),...!r&&!H(n)&&{"aria-hidden":"true"},...n},[...t.map(([u,c])=>m.createElement(u,c)),...Array.isArray(r)?r:[r]]));const h=(a,s)=>{const o=m.forwardRef(({className:i,...d},r)=>m.createElement(q,{ref:r,iconNode:s,className:A(`lucide-${B(C(a))}`,`lucide-${a}`,i),...d}));return o.displayName=C(a),o};const F=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],K=h("chevron-down",F);const W=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],V=h("crown",W);const Y=[["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"}]],J=h("globe",Y);const Z=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Q=h("log-out",Z);const X=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ee=h("user",X);var w={exports:{}};var _;function re(){return _||(_=1,(function(a){(function(){var s={}.hasOwnProperty;function o(){for(var r="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(r=d(r,i(n)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return o.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var n in r)s.call(r,n)&&r[n]&&(t=d(t,n));return t}function d(r,t){return t?r?r+" "+t:r+t:r}a.exports?(o.default=o,a.exports=o):window.classNames=o})()})(w)),w.exports}var te=re();const U=D(te),L="/assets/coin1-CVH_-znN.webp",ae="/assets/logo-JBojiLAv.webp",se="/assets/qrcode-DEUElrwP.png",oe="/assets/f1-en-C18HtaWq.jpg",ie="/assets/f1-zh-1U515sPq.jpg",ne="/assets/f2-D_ACc_OV.jpg",ce="/assets/f3-DaJXTfTW.jpg",le="/assets/f4-en-XPKrm_B7.jpg",de="/assets/f4-zh-YwJsxhjs.jpg",me="/assets/f5-BxiEVMGD.jpg",S={APP_STORE:"https://tikie.go.link/7x3yv",GOOGLE_PLAY:"https://tikie.go.link/7x3yv"},ge=[{id:"character5d0360d",name:"Owen Cranston",role:"Anime, Modern Society, Kind",description:"Owen Cranston, an incredibly dedicated and serious CEO. He is your boss and fiancé, always cherishing and supporting you. Though he's not very experienced in relationships and can be shy, especially around others, he never fails to protect you and ensure your personal life remains separate from work.",imageUrl:"https://image.finaltales.com/character/6bc1971ad71c99a38f8c120047cc1075/62de3754bed06039c6a839489ea005be.webp",color:"from-cyan-400 to-blue-600"},{id:"charactere5bb8bb",name:"Emma",role:"Kind, Energetic, Lonely",description:"A college celebrity, she's not just gorgeous but also a top student, with many guys vying for her attention.",imageUrl:"https://image.finaltales.com/character/6bc1971ad71c99a38f8c120047cc1075/eb17fbf6818dbe03da6ceb2e6667988c.webp",color:"from-pink-400 to-red-600"},{id:"characterba3a7ca",name:"Harding Fowler",role:"Anime, Modern Society, Kind",description:"A high school football captain, he's tall, strong, and handsome. Despite his popularity, he has never had a girlfriend.",imageUrl:"https://image.finaltales.com/character/6bc1971ad71c99a38f8c120047cc1075/0999897b72dd91805c74db4a58efe398.webp",color:"from-emerald-400 to-green-600"},{id:"character713f8a6",name:"Gwen Stacy",role:"Fantasy, Romantic, Energetic",description:"Her name is Gwen Stacy, a 19-year-old high school student who secretly protects the city as Spidergirl. Besides being a brave and righteou
1s superhero, she also dreams of a romantic relationship.",imageUrl:"https://image.finaltales.com/character/a94776c7b7ff0d672b7b4d85df7dd7ad/35a91e49d16e3c7582466fdf59d657aa.webp",color:"from-purple-500 to-indigo-600"},{id:"character5f34b0d",name:"Luke",role:"Kind, Dominant, Possessive",description:"Luke, a prince with the muscular build of an Alpha, is searching for an omega to bear his child. ",imageUrl:"https://image.finaltales.com/ai_image/card_Luke.webp",color:"from-orange-400 to-red-600"},{id:"character6aef3cc",name:"Dallas",role:"Bad Boy, Cold, Lonely",description:"Your brother left you at his best friends apartment while he goes out for awhileâ¦",imageUrl:"https://image.finaltales.com/images/image_c68487afffe94b.webp",color:"from-blue-400 to-indigo-600"},{id:"characterbb0df26",name:"Ivory",role:"Clingy, Energetic, Sceret Crush",description:"Your sister's best friend, concealing a fervent crush on you beneath her shy exterior. ",imageUrl:"https://image.finaltales.com/avatar/Ivory.webp",color:"from-pink-400 to-red-600"},{id:"characterca551f0",name:"Jennifer",role:"Sarcastic, Cold, Humor",description:"A hot alt girl from your school. You have heard rumors spreading around that Jennifer has been using her body to earn money. Unsure if the rumors are true or not you decide to take a chance.",imageUrl:"https://image.finaltales.com/images/image_b03ebbc337f247.webp",color:"from-purple-500 to-indigo-600"}],be=[{id:"characterddd1f61",name:"å
æé",role:"æ²æµ¸æ®æ¼ãæ¯èãæ©ç³»",description:"ç¾ä»£é½å¸èæ¯ï¼ä¸å表é¢åé實åå¿æç¸å¯çé«ä¸çã",imageUrl:"https://image.finaltales.com/character/29406dded2d1b9cae7dfd688a7594b54/070904dadae68569abd2bf9130cf3e09.webp",color:"from-cyan-400 to-blue-600"},{id:"character020944e",name:"æå澤",role:"æ²æµ¸æ®æ¼ãå·æ·¡ãå²å¨",description:"å¤åå
¬å¸é«é主管ï¼ç½å¤©å·¥ä½æ£æ¼«ï¼æä¸å±åç人ãä½ åèªèä¸ä¹
ï¼å»é»å¥åºå®è¦é¢ï¼ç®ä¸ä¸æäººï¼åªæ¯é±æ«ç¸½çå¨å½¼æ¤ç活裡ãä»è©±ä¸å¤ï¼è¡çºå»ææ§éé ï¼ç´ä½ ä¹¾èï¼ä¸åæ¡è§£éãæ±è¥¿ç¸½è½å¨ä½ å®¶ï¼ä¸ä¸»å交代ï¼ä¹ä¸è®ä½ ççæ·ä¹¾æ·¨ã",imageUrl:"https://image.finaltales.com/character/29406dded2d1b9cae7dfd688a7594b54/d470848d3a2ccb00eac2505d729f4e54.webp",color:"from-pink-400 to-red-600"},{id:"characterd5fe15a",name:"åå¥è¾°",role:"é½å¸ã温æãç¹æ®æ§å",description:"ä½ æ£å¨åå±
çç¾ä»»ãä»å¿è£¡èèä¸å渴æè¢«æç女å©ï¼åªæ¯å¾ä¾æ²èªªéã",imageUrl:"https://image.finaltales.com/character/29406dded2d1b9cae7dfd688a7594b54/0d782d0720eb6418eb5b983c054ad20c.webp",color:"from-emerald-400 to-green-600"},{id:"character9903b2f",name:"鳿´ãåç¥æ ",role:"é½å¸ãé¸ç¸½ãå²å¨",description:"ç叿¸ä¾ï¼å»è¢«å
©å鿢
竹馬çé¸ç¸½å µå¨äºä½ åçæ¿åè£ãä»åæ¾æ¯æ»å°é ï¼å¦ä»å»æ¡æè¨åï¼ç®æ¨åªæä¸åï¼ç¨ç¡ä¸åææ®µï¼è®ä½ å¨ä»åèº«ä¸æ²æ·ªã",imageUrl:"https://image.finaltales.com/character/29406dded2d1b9cae7dfd688a7594b54/ad90b1c9fd709bac9db0c1a0c5cacd1b.webp",color:"from-purple-500 to-indigo-600"},{id:"character50d3185",name:"è¨æ·µ",role:"æ²æµ¸æ®æ¼ãé½å¸ãå·æ·¡",description:"仿¯åçæå¹´è¼çæ´åï¼æ¯è¨æ°éå說ä¸ä¸äºçææ¬è
ã189 å
¬åçå·å³»èº«å½±æ°¸é 裹å¨åªè£å®ç¾ç西è£è£¡ï¼é£å¼å¸é½å¸¶èä»¤äººçªæ¯çå£è¿«æãå¨éåç±éé¢èæ¬åæ§ç¯çå°å·ä¸ç裡ï¼ä»æ©å·²ç¿æ
£ç¨å·æ¼ ä½çºæ¦å¨ââç´å°éè¦ä½ ãä½ ï¼æ¯ä»é»ç½ä¸ç裡å¯ä¸çä¾å¤ã",imageUrl:"https://image.finaltales.com/character/29406dded2d1b9cae7dfd688a7594b54/b29ff30d3dd76630613b218f022ce30a.webp",color:"from-blue-400 to-indigo-600"},{id:"character1503ade",name:"éæ²æ¬ï¼æç¶é¤éè¨",role:"äºå鏿忬",description:"䏿¬¾è®ä½ é«é©ææç¶èåºæ¿è人è¨ç¶ççäºåéæ²",imageUrl:"https://image.finaltales.com/character/29406dded2d1b9cae7dfd688a7594b54/e6cc229ffb2f74ff98cf20d582e0133e.webp",color:"from-orange-400 to-red-600"},{id:"character69c5052",name:"éæ²æ¬ï¼å¿«ç©¿ï¼å§äºçµæ£ä¿®ç¾
å ´",role:"äºå鏿忬",description:"ä½ æ¯å¿«ç©¿ç¸½å±æå±éªçéçæ»ç¥è
ãæ¯æ¬¡æ»ç¥æåï¼ç¡äºå°±è·ï¼å¾ä¸åé ãç¾å¨ä½ è¢«è¿«äºæ¬¡åæ¸ââé£äºè¢«ä½ å§äºçµæ£çç·äººæ©å·²é»åï¼æ¨ä½ å
¥éª¨ï¼å»ä»æ³åç¦ä½ ãä»åé½ç¥éï¼å次ææä½ ï¼å°±å°æ°¸é 失å»ä½ ã鿬¡ï¼éçæ»ç¥è
ï¼ä½ éè½äºåº¦æ»ç¥æååï¼",
1imageUrl:"https://image.finaltales.com/character/29406dded2d1b9cae7dfd688a7594b54/266c377cc41ed84ddb1dc50255d3052e.webp",color:"from-purple-500 to-indigo-600"},{id:"character41779a5",name:"éæ²æ¬ - é æµç·åã®å°å±¬ç¶ç´äºº",role:"äºå鏿忬",description:"ä½ æ¯ä»åäºå人å¯ä¸çç¶ç´äººï¼ä¹æ¯ä»åå¿ç
§ä¸å®£çå°å±¬èåã",imageUrl:"https://image.finaltales.com/character/29406dded2d1b9cae7dfd688a7594b54/278f205bda8c5a434e8fdf079202d8b2.webp",color:"from-orange-400 to-red-600"}],pe=[{id:"f1",title:"featureInnerMonologueTitle",description:"featureInnerMonologueDesc",imageUrl:oe},{id:"f2",title:"featureDressUpTitle",description:"featureDressUpDesc",imageUrl:ne},{id:"f3",title:"featureVideoGenTitle",description:"featureVideoGenDesc",imageUrl:ce},{id:"f4",title:"featureMemorySheetTitle",description:"featureMemorySheetDesc",imageUrl:le},{id:"f5",title:"featureMiniTheaterTitle",description:"featureMiniTheaterDesc",imageUrl:me}],ye=pe.map(a=>({...a,imageUrl:a.id==="f1"?ie:a.id==="f4"?de:a.imageUrl}));function he(){const a=O(),s=v.get();for(const o in s)v.remove(o);try{v.remove("token",{domain:a,path:"/"})}catch(o){console.error(o)}setTimeout(()=>{window.location.href="/"},100)}const fe=()=>{const{t:a}=E();return e.jsx("div",{className:"w-full bg-black text-[#FCE248] text-center py-2 px-4 text-xs md:text-sm font-medium z-60",children:a("betaBanner")})},j={en:"English","zh-TW":"ç¹é«ä¸æ",ja:"æ¥æ¬èª"},ve=({children:a,isLanding:s=!1,className:o,showTopBanner:i=!1,isExternalPay:d=!1})=>{const r=R(),{t,language:n,setLanguage:f}=E(),{loggedIn:u,user:c}=m.useContext(P),{isReviewMode:z}=G(),[x,g]=m.useState(!1),[N,b]=m.useState(!1),M=p=>{const y=new URL(window.location.href);y.searchParams.has("lang")&&(y.searchParams.delete("lang"),window.history.replaceState({},"",y.toString())),f(p),g(!1)},T=s?"absolute top-0 left-0 right-0 z-50 flex items-center justify-between px-4 sm:px-6 md:px-8 py-4 md:py-6 text-white bg-transparent":"flex items-center justify-between px-4 sm:px-6 md:px-8 py-4 bg-surface-3/80 backdrop-blur-md border-b border-surface-3 text-white sticky top-0 z-50";return e.jsxs("div",{className:U("min-h-screen flex flex-col bg-surface-1",o),children:[i&&e.jsx(fe,{}),!d&&e.jsxs("header",{className:T,children:[e.jsxs("div",{className:"flex items-center space-x-8 md:space-x-12",children:[e.jsxs(l,{to:"/",className:"flex items-center gap-2 sm:gap-3 group",children:[e.jsx("img",{src:ae,alt:"TiKie",className:"w-8 h-8 sm:w-10 sm:h-10 object-contain group-hover:scale-110 transition-transform duration-300"}),e.jsx("span",{className:"text-xl sm:text-2xl font-bold tracking-tight text-white group-hover:text-primary transition-colors",children:"TiKie"})]}),!s&&e.jsxs("nav",{className:"hidden md:flex items-center space-x-8 text-sm font-medium",children:[e.jsx(l,{to:"/creator-home",className:`hover:text-primary transition-colors ${r.pathname==="/creator-home"||r.pathname.includes("/editor")?"text-primary":"text-gray-400"}`,children:t("creatorStudio")}),e.jsx(l,{to:"/dashboard",className:`hover:text-primary transition-colors ${r.pathname==="/dashboard"?"text-primary":"text-gray-400"}`,children:t("dashboard")}),e.jsxs("div",{className:"relative group flex items-center",children:[e.jsx("span",{className:`cursor-pointer hover:text-primary transition-colors ${r.pathname.includes("/laptop-guide")?"text-primary":"text-gray-400"}`,children:t("creativeGuide")}),e.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-4 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50",children:e.jsx("div",{className:"w-48 bg-popup-bg rounded-xl p-2 shadow-2xl border border-surface-3 relative",children:e.jsx(l,{to:"/laptop-guide",target:"_blank",className:"block px-4 py-2 text-sm text-gray-300 hover:text-white hover:bg-surface-3 rounded-lg transition-colors text-center",children:t("howToCreateGameScript")})})})]}),e.jsx(l,{to:"/payment",className:U("hover:text-primary transition-colors",r.pathname==="/payment"?"text-primary":"text-gray-400"),children:t("pricing")})]})]}),e.jsxs("div",{className:"flex items-center space-x-6",children:[s&&e.jsxs("nav",{className:"hidden md:flex items-center space-x-8 text-sm font-medium mr-8",children:[e.jsx(l,{to:"/creator-home",className:"text-gray-300 hover:text-primary transition-colors",children:t("creatorStudio")}
1),e.jsx(l,{to:"/dashboard",className:"text-gray-300 hover:text-primary transition-colors",children:t("dashboard")}),e.jsxs("div",{className:"relative group flex items-center",children:[e.jsx("span",{className:`cursor-pointer hover:text-primary transition-colors ${r.pathname.includes("/laptop-guide")?"text-primary":"text-gray-300"}`,children:t("creativeGuide")}),e.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-4 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50",children:e.jsx("div",{className:"w-48 bg-popup-bg rounded-xl p-2 shadow-2xl border border-surface-3 relative",children:e.jsx(l,{to:"/laptop-guide",target:"_blank",className:"block px-4 py-2 text-sm text-gray-300 hover:text-white hover:bg-surface-3 rounded-lg transition-colors text-center",children:t("howToCreateGameScript")})})})]}),!z&&e.jsx(l,{to:"/payment",className:"text-gray-300 hover:text-primary transition-colors",children:t("pricing")}),e.jsxs("div",{className:"relative group h-full flex items-center",children:[e.jsx("span",{className:"text-gray-300 group-hover:text-primary cursor-pointer transition-colors py-2",children:t("downloadApp")}),e.jsx("div",{className:"absolute top-full right-0 md:right-[-20px] pt-4 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50 transform origin-top-right",children:e.jsxs("div",{className:"w-[280px] bg-popup-bg rounded-xl p-5 shadow-2xl border border-surface-3 relative before:content-[''] before:absolute before:-top-2 before:right-10 before:border-8 before:border-transparent before:border-b-popup-bg",children:[e.jsx("div",{className:"bg-white p-3 rounded-lg mb-4 aspect-square w-full",children:e.jsx("img",{src:se,alt:"Download QR",className:"w-full h-full object-contain"})}),e.jsx("p",{className:"text-[12px] text-gray-400 text-center mb-4 leading-relaxed",children:t("scanQr")}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("a",{href:S.APP_STORE,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center bg-black border border-surface-3 hover:border-neutral-600 hover:bg-surface-3 rounded-lg py-2.5 transition-all group/btn",onClick:()=>k.track("homepage_click",{btn_name:"apple_download",source:"header"}),children:[e.jsx("svg",{viewBox:"0 0 384 512",fill:"currentColor",className:"w-3.5 h-3.5 mr-2 text-white group-hover/btn:text-primary transition-colors",children:e.jsx("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 52.3-11.4 69.5-34.3z"})}),e.jsx("span",{className:"text-[12px] font-bold text-neutral-300 group-hover/btn:text-white",children:t("appStore")})]}),e.jsxs("a",{href:S.GOOGLE_PLAY,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center bg-black border border-surface-3 hover:border-neutral-600 hover:bg-surface-3 rounded-lg py-2.5 transition-all group/btn",onClick:()=>k.track("homepage_click",{btn_name:"google_download",source:"header"}),children:[e.jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",className:"w-3.5 h-3.5 mr-2 text-white group-hover/btn:text-primary transition-colors",children:e.jsx("path",{d:"M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z"})}),e.jsx("span",{className:"text-[12px] font-bold text-neutral-300 group-hover/btn:text-white",children:t("googlePlay")})]})]})]})})]})]}),e.jsx("a",{href:"https://discord.gg/29PCauZABR",target:"_blank",rel:"noopener noreferrer",className:"hidden md:flex items-center text-sm font-medium text-gray-300 hover:text-primary transition-colors",children:t("joinDiscord")}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>g(!x),className:"flex items-center space-x-2 cursor-pointer px-3 py-2 rounded-lg text-sm font-semibold text-gray-300 hover:text-white hover:bg-surface-3 transition-colors outline-none",title:"Switch Language",children:[e.jsx(J,{size:18}),e.jsx("span",{className:"uppercase text-xs",children:j[n]}),e.jsx(K,{size:14,className:`opacity-50 transition-transform duration-200 ${x?"rotate-180":""}`})]}),x&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>g(!1)}),e.jsx("div",{className:"absolute top-full right-0 mt-2 w-32 bg-popup-bg border border-surface-3 rounded-xl shadow-2xl overflow-hidden z-20 animate-in fade-in zoom-in-95 duration-200",children:Object.keys(j).map(p=>e.jsx("button",{onClick:()=>M(p),className:`w-full text-left px-4 py-3 text-xs font-bold cursor-pointer transition-colors hover:bg-surface-3 ${n===p?"text-primary":"text-neutral-400 hover:text-white"}`,children:j[p]},p))})]})]}),u?e.jsx("div",{className:"relative",children:c?e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>b(!N),className:"flex items-center space-x-2 rounded-full hover:ring-2 hover:ring-primary/50 transition-all outline-none",children:c.avatar?e.jsx("img",{src:c.avatar,alt:c.alias||"User",className:"w-10 h-10 rounded-full object-cover border border-surface-3"}):e.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-3 flex items-center justify-center border border-surface-3",children:e.jsx(ee,{size:20,className:"text-gray-400"})})}),N&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>b(!1)}),e.jsxs("div",{className:"absolute top-full right-0 mt-2 w-64 bg-popup-bg border border-surface-3 rounded-xl shadow-2xl overflow-hidden z-20 animate-in fade-in zoom-in-95 duration-200",children:[e.jsxs("div",{className:"px-4 py-3 border-b border-surface-3",children:[e.jsx("p",{className:"text-sm font-medium text-white truncate",children:c.alias||"User"}),e.jsx("p",{className:"text-xs text-gray-400 truncate",children:c.email})]}),e.jsx("div",{className:"px-4 py-3 border-b border-surface-3",children:c.vip_info?.is_vip?e.jsxs("div",{className:"flex items-center justify-between gap-1.5",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("img",{src:L,alt:"coin1",className:"w-6"}),e.jsx("span",{className:"text-sm font-medium text-white",children:c.diamonds_balance?.toLocaleStr
1ing()||0})]}),e.jsxs("div",{className:"flex items-center space-x-1.5 px-2.5 py-1 bg-yellow-400 rounded",children:[e.jsx(V,{size:14,className:"text-black"}),e.jsx("span",{className:"text-xs font-bold text-black",children:t("tikiePro")})]})]}):e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("img",{src:L,alt:"coin1",className:"w-6"}),e.jsx("span",{className:"text-sm font-medium text-white",children:c.diamonds_balance?.toLocaleString()||0})]})})}),e.jsxs("button",{onClick:()=>{he(),b(!1)},className:"w-full text-left px-4 py-3 text-sm text-red-400 hover:text-red-300 hover:bg-surface-3 flex items-center transition-colors",children:[e.jsx(Q,{size:16,className:"mr-2"}),t("logout")||"Logout"]})]})]})]}):e.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-3 flex items-center justify-center animate-pulse",children:e.jsx("div",{className:"w-5 h-5 border-2 border-gray-400 border-t-transparent rounded-full animate-spin"})})}):r.pathname!=="/login"&&e.jsx(l,{to:"/login",className:"px-5 py-2 text-sm font-semibold text-black bg-primary hover:bg-yellow-300 rounded transition-all shadow-[0_0_15px_rgba(252,226,72,0.3)]",children:t("login")})]})]}),e.jsx("main",{className:`flex-1 relative ${s?"":"overflow-hidden"}`,children:a})]})};export{K as C,S as D,J as G,ve as L,be as S,ee as U,U as a,ye as b,h as c,pe as d,ge as e,L as f,V as g,ae as l};
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.