1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4577],{11516:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(20294),a=r(37876),s=r(14232),i=r(98477),o=r(40248);function l(e){var t=e.drawerHandler,r=e.children,l=e.bgColor,c=e.bgOpacity,d=e.closeIconBG,u=e.iconBG,h=(e.dir,e.wide),m=e.themeProfile,f=(0,n._)((0,s.useState)(!1),2),x=f[0],p=f[1],b=(0,n._)((0,s.useState)(""),2),g=b[0],v=b[1];if((0,s.useEffect)(function(){p(!0);var e=function(){document.body.dir="ltr",document.body.setAttribute("dir","ltr"),document.documentElement.dir="ltr",document.documentElement.setAttribute("dir","ltr");var e=document.querySelector("main");e&&e.setAttribute("dir","ltr")};return e(),function(){e()}},[]),(0,s.useEffect)(function(){if(x){var e,t=function(){var e=document.querySelector("main");e&&v(e.className)};t();var r=setInterval(t,50),n=document.querySelector("main");return n&&(e=new MutationObserver(function(e){e.forEach(function(e){"attributes"===e.type&&("class"===e.attributeName||"dir"===e.attributeName)&&t()})})).observe(n,{attributes:!0,attributeFilter:["class","dir"]}),function(){clearInterval(r),e&&e.disconnect()}}},[x]),!x)return null;var j=(0,a.jsxs)("div",{className:"fixed inset-0 z-[9999] ".concat(x?g:""),children:[(0,a.jsx)("div",{onClick:function(){return t(!1)},className:"fade-in fixed bottom-0 font-exo left-0 right-0 top-0 h-full w-full bg-black/50 backdrop-blur-sm transition-opacity duration-300"}),(0,a.jsx)("div",{className:"slide-from-right fixed bottom-0 right-0 top-0 w-full ".concat(h||"md:w-[30rem]"," ").concat("glassy"===m?"bg-gradient-to-br from-purple-900/95 via-purple-800/95 to-indigo-900/95 backdrop-blur-xl":"".concat(l||"bg-white"," ").concat(c?"bg-opacity-".concat(c):"bg-opacity-20")," text-white backdrop-blur transition-transform duration-300"),children:(0,a.jsxs)("div",{className:"opa flex h-full flex-col ",children:[(0,a.jsx)("div",{className:"absolute z-20 m-2 flex h-10 w-10 left-0 cursor-pointer items-center justify-center rounded-lg ".concat(d||"bg-sky-300"," rounded-lg"),onClick:function(){return t(!1)},children:(0,a.jsx)(o.KiY,{size:"1.5rem",color:u||"bg-opacity-70"})}),(0,a.jsx)("div",{className:" h-96 w-full grow font-exo ",children:(0,a.jsx)("pre",{className:"h-full overflow-y-auto whitespace-pre-line font-exo ",children:r})})]})})]});return(0,i.createPortal)(j,document.body)}},29646:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(37876);function a(e){var t=e.width,r=e.height,a=e.fill,s=void 0===a?"#8E82A8":a,i=e.className;return(0,n.jsxs)("svg",{width:void 0===t?"46":t,height:void 0===r?"46":r,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:void 0===i?"":i,children:[(0,n.jsx)("path",{d:"M26.6971 32.4001C26.3517 32.4001 26.0064 32.3042 25.661 32.0884L18.7786 28.2036C18.5813 28.1077 18.3099 28.0357 17.9892 28.0357C17.6932 28.0357 17.3972 28.1077 17.1998 28.2036L10.3174 32.0884C9.97209 32.2802 9.60207 32.4001 9.28138 32.4001C8.83736 32.4001 8.44267 32.2322 8.17132 31.8965C7.9493 31.6327 7.72729 31.1531 7.89997 30.3858L9.5774 22.8321C9.67607 22.4004 9.42939 21.681 9.08404 21.3933L3.16369 16.2376C2.32497 15.4942 2.44831 14.7748 2.54699 14.511C2.64566 14.2232 2.96634 13.5758 4.10108 13.4799L12.0195 12.7125C12.4636 12.6645 13.1049 12.2329 13.2776 11.8252L16.4845 4.75114C16.9532 3.72 17.6932 3.6001 18.0139 3.6001C18.3099 3.6001 19.05 3.72 19.5187 4.72716L22.7255 11.8013C22.8982 12.2089 23.5396 12.6406 23.9836 12.6885L31.902 13.4559C33.0368 13.5758 33.3575 14.2232 33.4561 14.487C33.5548 14.7748 33.6781 14.9906 32.8394 16.2136L26.9191 21.3693C26.5737 21.6571 26.327 22.3765 26.4257 22.8081L28.1032 30.3618C28.2758 31.1292 27.8318 31.6088 27.6098 31.8725C27.3138 32.2322 26.9191 32.4001 26.4751 32.4001Z",fill:s}),(0,n.jsx)("path",{d:"M17.5932 5.11084C17.9139 4.39144 18.4566 4.39144 18.7773 5.11084L21.9841 12.1849C22.3048 12.9043 23.2422 13.5758 24.0562 13.6477L31.9747 14.4151C32.7887 14.487 32.9614 14.9906 32.3447 15.5182L26.2291 20.6739C25.6124 21.2014 25.267 22.2565 25.4397 23.0479L27.1171 30.6016C27.2898 31.369 26.8458 31.6807 26.1551 31.273L19.2726 27.3883C18.5573 26.9806 17.4225 26.9806 16.7072 27.3883L9.82476 31.273C9.10938 31.6807 8.69002 31.369 8.8627 30.6016L10.5648 23.0239C10.7375 22.2566 10.3921 21.1775 9.77542 20.6499L3.85507 15.4942C3.23837 14.9906 3.41104 14.487 4.22509 14.4151L12.1189 13.6477C12.9329 13.5758 13.8703 12.9043 14.191 12.1849L17.3979 5.11084Z",fill:s}),(0,n.jsx)("path",{d:"M31.7798 14.4151L23.8613 13.6477C23.0473 13.5758 22.1099 12.9043 21.7892 12.1849L18.5824 5.11084C18.2617 4.39144 17.719 4.39144 17.3983 5.11084L14.1914 12.1849C13.8708 12.9043 12.9334 13.5758 12.1193 13.6477L9.25781 13.9115C11.9466 19.4509 17.7436 23.2877 24.478 23.2877C24.8234 23.2877 25.1687 23.2637 25.4894 23.2637L25.4401 23.0239C25.2674 22.2566 25.6128 21.1775 26.2295 20.6499L32.1498 15.4942C32.7665 14.9906 32.5939 14.487 31.7798 14.4151Z",fill:"url(#paint0_linear_1303_183)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"paint0_linear_1303_183",x1:"3.48374",y1:"18.0034",x2:"32.522",y2:"18.0034",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#FFCB3B"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#FF971A"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear_1303_183",x1:"9.25313",y1:"13.9298",x2:"32.5225",y2:"13.9298",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white",stopOpacity:"0.3"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]})}r(14232)},34550:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(16927),a=r(67684),s=r(62701),i=r(95531),o=r(91040),l=function(){if("undefined"==typeof localStorage)return"server-side";var e=localStorage.getItem("Mindo_Tab_Id");return e||(e="tab_"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),localStorage.setItem("Mindo_Tab_Id",e)),e};function c(e,t){var r=t.method,c=t.body,d=t.headers,u="undefined"!=typeof localStorage?localStorage.getItem("Mindo_Tok"):null,h=l(),m=(0,s._)((0,a._)({},void 0===d?{}:d),{Authorization:"Bearer ".concat(u),"Cache-Control":"tabid=".concat(h,", no-cache")});return new Promise(function(t,a){return(0,n._)(function(){var n,s,l,d,u,h,f,x;return(0,i.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),n=new AbortController,[4,(0,o.A)({method:r,url:e,data:c,headers:m})];
1case 1:return t({response:s=i.sent(),abortRequest:n.abort,wasSuccessful:200===s.status}),[3,3];case 2:return a({message:null==(u=(l=i.sent()).response)||null==(d=u.data)?void 0:d.message,status:null==(h=l.response)?void 0:h.status,data:null==(x=l.response)||null==(f=x.data)?void 0:f.data}),[3,3];case 3:return[2]}})})()})}},57293:(e,t,r)=>{r.d(t,{RN:()=>u,Vw:()=>d});var n=r(16927),a=r(20294),s=r(95531),i=r(37876),o=r(14232),l=(0,o.createContext)(null),c=[.5,.75,1,1.25,1.5,2];function d(e){var t=e.children,r=(0,o.useRef)(null),d=(0,o.useRef)(null),u=(0,o.useRef)(0),h=(0,a._)((0,o.useState)([]),2),m=h[0],f=h[1],x=(0,a._)((0,o.useState)(0),2),p=x[0],b=x[1],g=(0,a._)((0,o.useState)(!1),2),v=g[0],j=g[1],y=(0,a._)((0,o.useState)(!1),2),w=y[0],N=y[1],C=(0,a._)((0,o.useState)(0),2),k=C[0],M=C[1],S=(0,a._)((0,o.useState)(0),2),_=S[0],L=S[1],z=(0,a._)((0,o.useState)(1),2),A=z[0],H=z[1],E=m[p]||null,F=function(){d.current&&(URL.revokeObjectURL(d.current),d.current=null)},B=(0,o.useCallback)(function(e,t){var a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,n._)(function(){var n,i,o,l,c,h;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(n=e[t],i=r.current,!n||!i)return[2];o=++u.current,N(!0),M(0),L(0),s.label=1;case 1:return s.trys.push([1,6,7,8]),l=localStorage.getItem("Mindo_Tok"),[4,fetch("".concat("https://api.mindomax.com/v1","/file-folder/files/").concat(n.file_ugid,"/proxy"),{headers:{Authorization:"Bearer ".concat(l)}})];case 2:if(!(c=s.sent()).ok)throw Error("HTTP ".concat(c.status));return[4,c.blob()];case 3:if(h=s.sent(),o!==u.current)return[2];if(F(),d.current=URL.createObjectURL(h),i.src=d.current,i.playbackRate=A,!a)return[3,5];return[4,i.play()];case 4:s.sent(),s.label=5;case 5:return[3,8];case 6:return console.error("[AudioPlayer] load failed:",s.sent()),[3,8];case 7:return o===u.current&&N(!1),[7];case 8:return[2]}})})()},[A]),T=(0,o.useCallback)(function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=e||[];if(0!==s.length){var i=Math.min(Math.max(a,0),s.length-1);if(E&&(null==(t=s[i])?void 0:t.file_ugid)===E.file_ugid&&(null==(n=r.current)?void 0:n.src))return void r.current.play();f(s),b(i),B(s,i)}},[E,B]),V=(0,o.useCallback)(function(){p+1<m.length&&(b(p+1),B(m,p+1))},[p,m,B]),P=(0,o.useCallback)(function(){p>0&&(b(p-1),B(m,p-1))},[p,m,B]),I=(0,o.useCallback)(function(){var e=r.current;e&&e.src&&(e.paused?e.play():e.pause())},[]),R=(0,o.useCallback)(function(){var e;return null==(e=r.current)?void 0:e.pause()},[]),D=(0,o.useCallback)(function(e){var t=r.current;t&&isFinite(e)&&(t.currentTime=e)},[]),Z=(0,o.useCallback)(function(e){var t=r.current;t&&(t.currentTime=Math.min(Math.max(t.currentTime+e,0),t.duration||0))},[]),O=(0,o.useCallback)(function(){H(function(e){var t=c[(c.indexOf(e)+1)%c.length];return r.current&&(r.current.playbackRate=t),t})},[]),G=(0,o.useCallback)(function(){u.current++;var e=r.current;e&&(e.pause(),e.removeAttribute("src"),e.load()),F(),f([]),b(0),j(!1),M(0),L(0)},[]);(0,o.useEffect)(function(){return function(){return F()}},[]);var U={current:E,queue:m,index:p,playing:v,loading:w,position:k,duration:_,speed:A,hasNext:p+1<m.length,hasPrev:p>0,playQueue:T,toggle:I,pause:R,next:V,prev:P,seekTo:D,seekBy:Z,cycleSpeed:O,stop:G};return(0,i.jsxs)(l.Provider,{value:U,children:[t,(0,i.jsx)("audio",{ref:r,className:"hidden",onPlay:function(){return j(!0)},onPause:function(){return j(!1)},onTimeUpdate:function(e){return M(e.target.currentTime||0)},onLoadedMetadata:function(e){return L(e.target.duration||0)},onEnded:function(){p+1<m.length?(b(p+1),B(m,p+1)):j(!1)}})]})}function u(){return(0,o.useContext)(l)}},64577:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ex});var n=r(16927),a=r(67684),s=r(65699),i=r(20294),o=r(95531),l=r(37876),c=r(14232),d=r(89099),u=r(77328),h=r.n(u),m=r(18847),f=r.n(m),x=r(48230),p=r.n(x),b=r(54587),g=r.n(b),v=r(77663),j=r(78371),y=r(54912),w=r(51180),N=r(16924),C=r(34550),k=r(2425),M=r(75961),S=r.n(M),_=r(98477),L=r(35342);function z(e){var t=e.width,r=e.height,n=e.fill,a=void 0===n?"#8E82A8":n,s=e.className;return(0,l.jsxs)("svg",{width:void 0===t?"46":t,height:void 0===r?"46":r,viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:void 0===s?"":s,children:[(0,l.jsx)("path",{d:"M23.0425 30.9995C18.5965 30.9995 15 27.4597 15 23.0137C15 18.5677 18.5965 14.9995 23.0425 14.9995C27.4885 14.9995 31 18.5677 31 23.0137C31 27.4597 27.4885 30.9995 23.0425 30.9995Z",fill:a}),(0,l.jsx)("path",{opacity:"0.55",d:"M40.6924 27.5427C40.3202 26.9677 39.7914 26.3927 39.1058 26.0285C38.5573 25.7602 38.2048 25.3193 37.8914 24.8018C36.8924 23.1535 37.48 20.987
17 39.145 20.0102C41.1037 18.9177 41.7305 16.4835 40.5944 14.586L39.2821 12.3243C38.1656 10.4268 35.7172 9.756 33.778 10.8677C32.0543 11.7877 29.8409 11.1743 28.8419 9.54516C28.5285 9.0085 28.3522 8.4335 28.3914 7.8585C28.4502 7.111 28.2151 6.40183 27.8626 5.82683C27.1378 4.6385 25.8255 3.8335 24.376 3.8335H21.6141C20.1843 3.87183 18.8719 4.6385 18.1472 5.82683C17.775 6.40183 17.5595 7.111 17.5987 7.8585C17.6379 8.4335 17.4616 9.0085 17.1482 9.54516C16.1492 11.1743 13.9358 11.7877 12.2317 10.8677C10.273 9.756 7.84412 10.4268 6.70805 12.3243L5.39568 14.586C4.27919 16.4835 4.90599 18.9177 6.84516 20.0102C8.5101 20.9877 9.09772 23.1535 8.11835 24.8018C7.78536 25.3193 7.43278 25.7602 6.88433 26.0285C6.21836 26.3927 5.63073 26.9677 5.31733 27.5427C4.59259 28.731 4.63177 30.226 5.35651 31.4718L6.70805 33.7718C7.43278 34.9985 8.78432 35.7652 10.1946 35.7652C10.8606 35.7652 11.6441 35.5735 12.2709 35.1902C12.7606 34.8643 13.3482 34.7493 13.9946 34.7493C15.9338 34.7493 17.5595 36.3402 17.5987 38.2377C17.5987 40.4418 19.4008 42.1668 21.6729 42.1668H24.3368C26.5894 42.1668 28.3914 40.4418 28.3914 38.2377C28.4502 36.3402 30.076 34.7493 32.0151 34.7493C32.6419 34.7493 33.2295 34.8643 33.7388 35.1902C34.3656 35.5735 35.1295 35.7652 35.8151 35.7652C37.2058 35.7652 38.5573 34.9985 39.2821 33.7718L40.6532 31.4718C41.3584 30.1877 41.4171 28.731 40.6924 27.5427Z",fill:a})]})}var A=new Set((0,r(14415).hK)()),H=[{code:"en",name:"English"},{code:"fr",name:"Fran\xe7ais"},{code:"de",name:"Deutsch"},{code:"es",name:"Espa\xf1ol"},{code:"it",name:"Italiano"},{code:"nl",name:"Nederlands"},{code:"sv",name:"Svenska"},{code:"no",name:"Norsk"},{code:"tr",name:"T\xfcrk\xe7e"},{code:"ar",name:"Ø§ÙØ¹Ø±Ø¨ÙØ©"},{code:"zh",name:"䏿"},{code:"ja",name:"æ¥æ¬èª"},{code:"ru",name:"Ð ÑÑÑкий"},{code:"el",name:"Îλληνικά"},{code:"ko",name:"íêµì´"},{code:"fa",name:"ÙØ§Ø±Ø³Û"}].filter(function(e){return A.has(e.code)}),E=function(e){var t=e.className;return(0,l.jsxs)("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,l.jsx)("path",{d:"M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-4 0v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83-2.83l.06-.06A1.65 1.65 0 004.68 15a1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 012.83-2.83l.06.06A1.65 1.65 0 009 4.68a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 2.83l-.06.06A1.65 1.65 0 0019.32 9a1.65 1.65 0 001.51 1H21a2 2 0 010 4h-.09a1.65 1.65 0 00-1.51 1z"})]})};function F(e){var t=e.direction,r=(0,d.useRouter)(),a=(0,k.B)().t,s=(0,i._)((0,c.useState)(!1),2),u=s[0],h=s[1],m=(0,i._)((0,c.useState)(!1),2),f=m[0],x=m[1],p=(0,i._)((0,c.useState)(null),2),b=p[0],g=p[1],v=(0,c.useRef)(null),j=(0,c.useRef)(null),y=(0,i._)((0,c.useState)(""),2),w=y[0],N=y[1],M=r.locale,A="fa"===M||"ar"===M,F=A?"'Yekan', 'Vazir', Arial, sans-serif":"'Exo', Arial, sans-serif";(0,c.useEffect)(function(){(0,n._)(function(){var e,t,r;return(0,o.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,C.A)("".concat("https://api.mindomax.com/v1","/authentication/user-info"),{method:"get"})];case 1:return(null==(r=n.sent().response)?void 0:r.status)===200&&(null==r||null==(t=r.data)||null==(e=t.data)?void 0:e.username)&&N(r.data.data.username),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}})})()},[]),(0,c.useEffect)(function(){if(u){var e=function(e){var t=v.current&&v.current.contains(e.target),r=j.current&&j.current.contains(e.target);t||r||(h(!1),x(!1))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[u]);var B=(0,c.useCallback)(function(){if(v.current){var e=v.current.getBoundingClientRect();g({bottom:window.innerHeight-e.top+8,left:e.right+12})}},[]),T=function(e){if(e===M){x(!1),h(!1);return}var t=r.pathname,n=r.asPath,a=r.query;r.push({pathname:t,query:a},n,{locale:e}),x(!1),h(!1)},V=function(e){r.push(e),h(!1),x(!1)},P=[{key:"account",label:a("panel.settingsMenu.account"),icon:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),action:function(){return V("/home/account")}},{key:"language",label:a("panel.settingsMenu.language"),icon:(0,l.jsx)(L.sXt,{className:"w-4 h-4"}),action:function(){return x(!f)},hasSubmenu:!0},{key:"aiSettings",label:a("panel.settingsMenu.aiSettings"),icon:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),action:function(){return V("/home/ai-settings")}},{key:"subscription",label:a("panel.settingsMenu.subscription"),icon:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),action:function(){return V("/home/subscription")}}];return"up"===(void 0===t?"up":t)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{ref:v,onClick:function(){u?h(!1):(B(),h(!0)),x(!1)},className:"flex flex-col cursor-pointer items-center justify-center h-14 w-14 hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-100",children:[(0,l.jsx)(z,{width:"40",height:"40"}),w&&(0,l.jsx)("span",{className:"text-[8px] font-bold text-[#8E82A8] mt-0.5 truncate max-w-[60px] text-center leading-tight",children:w})]}),u&&b&&"undefined"!=typeof document&&(0,_.createPortal)((0,l.jsxs)("div",{ref:j,className:"fixed z-[9999] bg-[#0d1b2a]/95 backdrop-blur-xl border border-white/10 rounded-xl shadow-2xl",dir:A?"rtl":"ltr",style:{fontFamily:F,bottom:b.bottom+"px",left:b.left+"px",minWidth:"210px"},children:[(0,l.jsx)("div",{className:"py-1.5",children:P.map(function(e){return(0,l.jsxs)("button",{onClick:e.action,className:"w-full flex items-center gap-2.5 px-4 py-2.5 text-sm transition-colors ".concat(e.hasSubmenu&&f?"bg-white/10 text-white":"text-gray-300 hover:bg-white/5 hover:text-white"),children:[(0,l.jsx)("span",{className:"flex-shrink-0 text-gray-400",children:e.icon}),(0,l.jsx)("span",{className:"truncate",children:e.label}),e.hasSubmenu&&(0,l.jsx)("svg",{className:"w-3 h-3 ".concat(A?"mr-auto rotate-90":"ml-auto -rotate-90"," text-gray-500 transition-transform ").concat(f?"!rotate-0":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]},e.key)})}),f&&(0,l.jsx)("div",{className:"border-t border-white/5 px-2 py-2 max-h-[40vh] overflow-y-auto scrollbar-hide",children:(0,l.jsx)("div",{className:"grid grid-cols-3 gap-1",children:H.map(function(e){return(0,l.jsxs)("button",{onClick:function(){return T(e.code)},className:"flex flex-col items-center py-2 px-1 rounded-lg transition-colors text-center ".concat(e.code===M?"bg-[#3B82F6]/20 border border-[#3B82F6]/40 text-white":"text-gray-400 hover:bg-white/5 hover:text-gray-200"),children:[(0,l.jsx)("span",{className:"text-[10px] font-bold uppercase",children:e.code}),(0,l.jsx)("span",{className:"text-[9px] mt-0.5 opacity-60 truncate w-full",children:e.name})]},e.code)})})})]}),document.body)]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("button",{ref:v,onClick:function(){h(!0),x(!1)},className:"flex items-center justify-center w-10 h-10 rounded-xl bg-white/5 border border-white/10 hover:bg-white/10 hover:border-white/20 transition-all duration-200 cursor-pointer",title:a("panel.menu.settings"),children:(0,l.jsx)(E,{className:"w-5 h-5 text-gray-300"})}),w&&(0,l.jsxs)("div",{className:"flex items-center gap-0.5 cursor-pointer",onClick:function(){h(!0),x(!1)},children:[(0,l.jsx)("span",{className:"text-[8px] font-bold text-gray-300 truncate max-w-[60px]",children:w}),(0,l.jsx)("svg",{className:"w-2.5 h-2.5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}),u&&"undefined"!=typeof document&&(0,_.createPortal)((0,l.jsxs)("div",{className:"jsx-73ca576a2a6c76fa fixed inset-0 z-50 flex items-end justify-center",children:[(0,l.jsx)("div",{onClick:function(){h(!1),x(!1)},className:"jsx-73ca576a2a6c76fa fixed w-full h-full backdrop-blur-sm bg-[#0A192F]/80"}),(0,l.jsx)("div",{ref:j,dir:A?"rtl":"ltr",style:{fontFamily:F,animation:"settingsSheetSlideUp 0.3s ease-out forwards",marginBottom:"calc(env(safe-area-inset-bottom) + 60px)"},className:"jsx-73ca576a2a6c76fa w-[95%] md:w-[400px] transform relative z-10",children:(0,l.jsxs)("div",{className:"jsx-73ca576a2a6c76fa bg-[#0d1b2a] rounded-t-[24px] border border-white/10 shadow-2xl",children:[(0,l.jsx)("div",{className:"jsx-73ca576a2a6c76fa relative h-2 flex justify-center items-center my-4",children:(0,l.jsx)("div",{className:"jsx-73ca576a2a6c76fa w-12 h-1 rounded-full bg-[#1E3A5F]"})}),(0,l.jsx)("div",{className:"jsx-73ca576a2a6c76fa px-4 pb-4",children:P.map(function(e){return(0,l.jsxs)("button",{onClick:e.action,className:"jsx-73ca576a2a6c76fa "+"w-full flex items-center gap-3 px-4 py-3.5 rounded-xl mb-1.5 transition-colors ".concat(e.hasSubmenu&&f?"bg-white/10 text-white":"text-gray-300 hover:bg-white/5 hover:text-white"),children:[(0,l.jsx)("span",{className:"jsx-73ca576a2a6c76fa flex-shrink-0 text-gray-400",children:e.icon}),(0,l.jsx)("span",{className:"jsx-73ca576a2a6c76fa text-sm font-medium",children:e.label}),e.hasSubmenu&&(0,l.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",className:"jsx-73ca576a2a6c76fa "+"w-3.5 h-3.5 ".concat(A?"mr-auto":"ml-auto"," text-gray-500 transition-transform ").concat(f?"rotate-180":""),children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7",className:"jsx-73ca576a2a6c76fa"})})]},e.key)})}),f&&(0,l.jsx)("div",{className:"jsx-73ca576a2a6c76fa px-4 pb-6 border-t border-white/5 pt-3",children:(0,l.jsx)("div",{className:"jsx-73ca576a2a6c76fa grid grid-cols-3 gap-2",children:H.map(function(e,t){return(0,l.jsxs)("button",{onClick:function(){return T(e.code)},style:{animation:"settingsLangFadeIn 0.3s ".concat(.02*t,"s ease-out forwards"),opacity:0}
1,className:"jsx-73ca576a2a6c76fa "+"flex flex-col items-center py-3 px-2 rounded-xl transition-all duration-200 ".concat(e.code===M?"bg-[#3B82F6]/20 border border-[#3B82F6]/50 text-white":"bg-[#1E3A5F]/30 border border-white/5 hover:border-[#3B82F6]/40 text-gray-300"),children:[(0,l.jsx)("span",{className:"jsx-73ca576a2a6c76fa "+"text-xs font-bold uppercase ".concat(e.code===M?"text-[#60A5FA]":"text-gray-400"),children:e.code}),(0,l.jsx)("span",{className:"jsx-73ca576a2a6c76fa text-[10px] mt-0.5 truncate w-full text-center opacity-70",children:e.name})]},e.code)})})}),(0,l.jsx)("div",{className:"jsx-73ca576a2a6c76fa h-2"})]})}),(0,l.jsx)(S(),{id:"73ca576a2a6c76fa",children:"@keyframes settingsSheetSlideUp{from{transform:translatey(100%)}to{transform:translatey(0)}}@keyframes settingsLangFadeIn{from{opacity:0;transform:translatey(8px)}to{opacity:1;transform:translatey(0)}}"})]}),document.body)]})}function B(e){var t=e.width,r=e.height,n=e.fill,a=void 0===n?"#8E82A8":n,s=e.className;return(0,l.jsxs)("svg",{width:void 0===t?"45":t,height:void 0===r?"45":r,viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:void 0===s?"":s,children:[(0,l.jsx)("path",{d:"M35.8239 22.099C34.7314 21.8115 33.4472 21.6582 31.9139 21.6582C29.7864 21.6582 29.0005 22.1757 27.908 22.9999C27.8505 23.0382 27.793 23.0957 27.7355 23.1532L25.9147 25.089C24.3814 26.699 21.6214 26.7182 20.088 25.0699L18.2672 23.1532C18.2097 23.0957 18.1522 23.0382 18.0947 22.9999C17.0022 22.1757 16.2164 21.6582 14.0889 21.6582C12.5555 21.6582 11.2714 21.8115 10.1789 22.099C5.61719 23.3257 5.61719 26.9482 5.61719 30.1299V31.9124C5.61719 36.7232 5.61719 42.1665 15.8714 42.1665H30.1314C36.9355 42.1665 40.3855 38.7165 40.3855 31.9124V30.1299C40.3855 26.9482 40.3855 23.3257 35.8239 22.099ZM27.4672 35.2665H18.5355C17.8072 35.2665 17.213 34.6724 17.213 33.9249C17.213 33.1774 17.8072 32.5832 18.5355 32.5832H27.4672C28.1955 32.5832 28.7897 33.1774 28.7897 33.9249C28.7897 34.6724 28.1955 35.2665 27.4672 35.2665Z",fill:a}),(0,l.jsx)("path",{opacity:"0.4",d:"M28.3464 3.8335H17.6514C9.17969 3.8335 9.17969 8.33766 9.17969 12.3052V23.4027C9.17969 23.8243 9.37135 24.2077 9.69719 24.4568C10.023 24.706 10.4639 24.8018 10.8664 24.6868C11.7289 24.4568 12.8022 24.3418 14.0864 24.3418C15.3705 24.3418 15.6389 24.4952 16.4055 25.0702L18.1497 26.9102C19.3955 28.2518 21.178 29.0185 23.018 29.0185C24.858 29.0185 26.6214 28.2518 27.8864 26.9102L29.6305 25.0702C30.3972 24.4952 30.6655 24.3418 31.9497 24.3418C33.2339 24.3418 34.3072 24.4568 35.1697 24.6868C35.5722 24.8018 35.9939 24.706 36.3389 24.4568C36.6647 24.2077 36.8564 23.8052 36.8564 23.4027V12.3052C36.818 8.33766 36.818 3.8335 28.3464 3.8335Z",fill:a}),(0,l.jsx)("path",{opacity:"0.4",d:"M28.7876 33.9252C28.7876 34.6727 28.1934 35.2668 27.4651 35.2668H18.5334C17.8051 35.2668 17.2109 34.6727 17.2109 33.9252C17.2109 33.1777 17.8051 32.5835 18.5334 32.5835H27.4651C28.1934 32.5835 28.7876 33.1777 28.7876 33.9252Z",fill:a})]})}function T(e){var t=e.width,r=e.height,n=e.fill,a=void 0===n?"#8E82A8":n,s=e.className;return(0,l.jsxs)("svg",{width:void 0===t?"45":t,height:void 0===r?"45":r,viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:void 0===s?"":s,children:[(0,l.jsx)("path",{d:"M33 5H13C10.8 5 9 6.8 9 9V37C9 39.2 10.8 41 13 41H33C35.2 41 37 39.2 37 37V9C37 6.8 35.2 5 33 5Z",fill:a}),(0,l.jsx)("path",{opacity:"0.18",d:"M34 11H12C11.4 11 11 11.4 11 12V38C11 38.6 11.4 39 12 39H34C34.6 39 35 38.6 35 38V12C35 11.4 34.6 11 34 11Z",fill:"white"}),(0,l.jsx)("path",{opacity:"0.4",d:"M14 17H32V19H14ZM14 23H32V25H14ZM14 29H25V31H14Z",fill:a})]})}function V(e){var t=e.width,r=e.height,n=e.fill,a=void 0===n?"#8E82A8":n,s=e.className;return(0,l.jsxs)("svg",{width:void 0===t?"45":t,height:void 0===r?"45":r,viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:void 0===s?"":s,children:[(0,l.jsx)("path",{opacity:"0.4",d:"M11 8H29C31.2 8 33 9.8 33 12V30C33 32.2 31.2 34 29 34H11C8.8 34 7 32.2 7 30V12C7 9.8 8.8 8 11 8Z",fill:a}),(0,l.jsx)("path",{d:"M17 12H35C37.2 12 39 13.8 39 16V34C39 36.2 37.2 38 35 38H17C14.8 38 13 36.2 13 34V16C13 13.8 14.8 12 17 12Z",fill:a}),(0,l.jsx)("path",{opacity:"0.18",d:"M18 20H34V22H18ZM18 25H34V27H18ZM18 30H27V32H18Z",fill:"white"})]})}function P(e){var t=e.width,r=e.height,n=e.fill,a=void 0===n?"#8E82A8":n,s=e.className;return(0,l.jsxs)("svg",{width:void 0===t?"45":t,height:void 0===r?"45":r,viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:void 0===s?"":s,children:[(0,l.jsx)("path",{d:"M5 14V10C5 8 6.5 6 9 6H18C19.5 6 20.5 6.5 21.5 8L24 12H37C39.5 12 41 13.5 41 16V14",fill:a,opacity:"0.5"}),(0,l.jsx)("path",{d:"M5 14H41C41 14 41 16 41 16V36C41 38.5 39.5 40 37 40H9C6.5 40 5 38.5 5 36V14Z",fill:a}),(0,l.jsx)("path",{opacity:"0.18",d:"M7 14H39V18H7Z",fill:"white"})]})}function I(e){var t=(0,i._)((0,c.useState)(""),2),r=t[0],a=t[1],s=(0,i._)((0,c.useState)(""),2),u=s[0],h=s[1],m=(0,i._)((0,c.useState)(""),2),f=m[0],x=m[1],b=(0,i._)((0,c.useState)(0),2),M=(b[0],b[1]),S=e.profileTheme;e.userLevel;var _=(0,d.useRouter)();_.locale;var L=(0,k.B)().t;return(0,c.useEffect)(function(){(0,n._)(function(){var e;return(0,o.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,C.A)("".concat("https://api.mindomax.com/v1","/gamification/user/stars"),{method:"get"})];case 1:return 200===(e=t.sent().response).status&&e.data.data&&M(e.data.data),[3,3];case 2:return console.log(t.sent()),[3,3];case 3:return[2]}})})()},[]),(0,c.useEffect)(function(){"fantasy"===S?(a("bg-[#19325E] border-gray-800"),h("text-neutral-300"),x(" ")):"marsh"===S||"halloween"===S?(a(" border-none"),h("text-neutral-500"),x("bg-[#34558c] bg-opacity-80 rounded-t-full md:pt-12")):"anime"===S?(a("bg-[#1a1a2e] border-pink-500 border-opacity-30"),h("text-pink-300"),x("bg-gradient-to-t from-pink-900/20 to-transparent roun
1ded-t-3xl md:pt-12")):"glassy"===S?(a("bg-white bg-opacity-[0.05] backdrop-blur-md border-white border-opacity-20"),h("text-purple-200"),x("bg-gradient-to-t to-transparent rounded-t-3xl md:pt-12")):(a("bg-[#ffffff] border-gray-200"),h("text-neutral-500"),x(" "))},[S]),(0,l.jsx)("div",{className:"absolute z-30 bottom-0 flex-none items-center justify-center border-none md:relative md:h-full md:w-[67px] ".concat("glassy"===S?"left-1/2 -translate-x-1/2 md:left-0 md:translate-x-0 w-auto h-auto mb-4 md:mb-0 md:w-[67px]":"left-0 h-20 w-full"),children:(0,l.jsxs)("div",{className:"flex-col items-center justify-start md:border-t-0 md:flex md:w-[67px] md:border-r md:border-t-0 ".concat(r," ").concat("glassy"===S?"rounded-full md:rounded-none border-2 md:border-2 md:border-l-0 md:border-b-0 md:border-t-0 border-white/30 h-auto w-auto px-8 py-2 md:px-0 md:py-0 md:h-full md:w-full":"absolute bottom-0 left-0 z-30 h-full w-full border-t"),children:[(0,l.jsx)("div",{className:"hidden h-24 pt-2 md:block",children:(0,l.jsx)("div",{className:"mx-0 mt-0 h-12 w-12 bg-logoicon bg-contain bg-center bg-no-repeat pb-0"})}),(0,l.jsxs)("div",{className:"item-center md:h-v16/24 ".concat(f," flex w-full flex-row md:flex-col md:justify-start md:space-y-4 ").concat("glassy"===S?"h-auto gap-5 justify-center md:gap-0":"h-full justify-evenly"),children:[(0,l.jsx)(p(),{href:"/home/panel",className:"flex justify-center items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"flex flex-col cursor-pointer items-center justify-center ".concat("glassy"===S?"h-9 w-9 md:h-14 md:w-14 rounded-full ".concat(_.pathname.includes("panel")?"bg-white/5":""):"".concat(_.pathname.includes("panel")?"rounded-lg border-2 border-purple-300 border-opacity-20 bg-sky-600 bg-opacity-10":""," h-14 w-14 hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-100")),children:["default"===S?(0,l.jsx)(B,{}):"","halloween"===S?(0,l.jsx)(j.rpI,{size:"2rem",color:"#fca103"}):"","fantasy"===S?(0,l.jsx)(N.v1b,{size:"2.5rem"}):"","marsh"===S?(0,l.jsx)(w.YV,{size:"2rem",color:"green"}):"","anime"===S?(0,l.jsx)(g(),{src:"/images/themes/anime/home.svg",alt:"Home",width:40,height:40,className:"w-10 h-10"}):"","glassy"===S?(0,l.jsx)(j.jlD,{size:"1.5rem",className:"md:text-[2rem]",color:"#ffffff"}):"","default"===S?(0,l.jsx)("span",{className:"text-xs ".concat(u," "),children:L("panel.menu.home")}):""]})})}),(0,l.jsx)(p(),{href:"/home/flashcards",className:"flex justify-center items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"flex flex-col cursor-pointer items-center justify-center ".concat("glassy"===S?"h-9 w-9 md:h-14 md:w-14 rounded-full ".concat(_.pathname.includes("flashcards")?"bg-white/5":""):"".concat(_.pathname.includes("flashcards")?"rounded-lg border-2 border-purple-300 border-opacity-20 bg-sky-600 bg-opacity-10":""," h-14 w-14 hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-100")),children:["default"===S?(0,l.jsx)(V,{}):"","halloween"===S?(0,l.jsx)(j.hug,{size:"2rem",color:"#fca103"}):"","fantasy"===S?(0,l.jsx)(N.w06,{size:"2.5rem"}):"","marsh"===S?(0,l.jsx)(y.RZl,{size:"2rem",color:"#14b8a6"}):"","anime"===S?(0,l.jsx)(g(),{src:"/images/themes/anime/flashcards.svg",alt:"Flashcards",width:40,height:40,className:"w-10 h-10"}):"","glassy"===S?(0,l.jsx)(j.TZh,{size:"1.5rem",className:"md:text-[2rem]",color:"#ffffff"}):"","default"===S?(0,l.jsx)("span",{className:"text-xs ".concat(u," "),children:L("panel.menu.flashcards")}):""]})})}),(0,l.jsx)(p(),{href:"/home/note",className:"flex justify-center items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"flex flex-col cursor-pointer items-center justify-center ".concat("glassy"===S?"h-9 w-9 md:h-14 md:w-14 rounded-full ".concat(_.pathname.includes("note")?"bg-white/5":""):"".concat(_.pathname.includes("note")?"rounded-lg border-2 border-purple-300 border-opacity-20 bg-sky-600 bg-opacity-10":""," h-14 w-14 hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-100")),children:["default"===S?(0,l.jsx)(T,{}):"","halloween"===S?(0,l.jsx)(j.jRn,{size:"2rem",color:"#fca103"}):"","fantasy"===S?(0,l.jsx)(N.Bn5,{size:"2.5rem"}):"","marsh"===S?(0,l.jsx)(j.F3g,{size:"2rem",color:"#14b8a6"}):"","anime"===S?(0,l.jsx)(g(),{src:"/images/themes/anime/note.svg",alt:"Note",width:40,height:40,className:"w-10 h-10"}):"","glassy"===S?(0,l.jsx)(j.y4G,{size:"1.5rem",className:"md:text-[2rem]",color:"#ffffff"}):"","default"===S?(0,l.jsx)("span",{className:"text-xs ".concat(u," "),children:L("panel.menu.note")}):""]})})}),(0,l.jsx)(p(),{href:"/home/folders",className:"flex justify-center items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"flex flex-col cursor-pointer items-center justify-center ".concat("glassy"===S?"h-9 w-9 md:h-14 md:w-14 roun
1ded-full ".concat(_.pathname.includes("folders")?"bg-white/5":""):"".concat(_.pathname.includes("folders")?"rounded-lg border-2 border-purple-300 border-opacity-20 bg-sky-600 bg-opacity-10":""," h-14 w-14 hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-100")),children:["default"===S?(0,l.jsx)(P,{}):"","halloween"===S?(0,l.jsx)(v.K9r,{size:"2rem",color:"#fca103"}):"","fantasy"===S?(0,l.jsx)(N.NVk,{size:"2.5rem"}):"","marsh"===S?(0,l.jsx)(v.K3o,{size:"2rem",color:"#14b8a6"}):"","anime"===S?(0,l.jsx)(g(),{src:"/images/themes/anime/folders.svg",alt:"Folders",width:40,height:40,className:"w-10 h-10"}):"","glassy"===S?(0,l.jsx)(j.aav,{size:"1.5rem",className:"md:text-[2rem]",color:"#ffffff"}):"","default"===S?(0,l.jsx)("span",{className:"text-xs ".concat(u," "),children:L("panel.menu.folders")}):""]})})})]}),(0,l.jsx)("div",{className:"hidden md:flex items-center justify-center pb-4 mt-auto",children:(0,l.jsx)(F,{direction:"up"})})]})})}var R=r(11516),D=r(28888),Z=r(29646);function O(){var e=(0,D._)(["\n .star-container {\n display: flex;\n justify-content: space-around;\n align-items: center;\n height: 40px;\n width: auto;\n border: 2px solid #ffd08a;\n background-color: rgba(255, 208, 138, 0.2);\n color: white;\n border-radius: 9999px;\n padding: 12px;\n cursor: pointer;\n transition: all 0.1s ease-in-out;\n\n &:hover {\n background-color: rgba(135, 206, 250, 0.1);\n border-color: rgba(147, 112, 219, 0.2);\n border-radius: 30px;\n }\n }\n\n @keyframes rotate-and-grow {\n 0%,\n 100% {\n transform: rotate(0deg) scale(1);\n }\n 50% {\n transform: rotate(360deg) scale(2);\n }\n }\n\n .animate-rotate-and-grow {\n animation: rotate-and-grow 1s ease-in-out;\n }\n"]);return O=function(){return e},e}function G(e){var t=e.setGamificationDrawerIsOpen,r=e.setStarsNumberForGamification;e.setActivityDrawerIsOpen;var a=(0,i._)((0,c.useState)(null),2),s=a[0],u=a[1],h=(0,i._)((0,c.useState)(!1),2),m=h[0],f=h[1],x=(0,c.useRef)(s);return(0,d.useRouter)().locale,(0,c.useEffect)(function(){(0,n._)(function(){var e,t;return(0,o.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,C.A)("".concat("https://api.mindomax.com/v1","/gamification/user/stars"),{method:"get"})];case 1:return 200===(e=n.sent().response).status&&e.data.data&&((t=e.data.data)-x.current>1&&(f(!0),setTimeout(function(){return f(!1)},1e3)),x.current=t,u(t),r(t)),[3,3];case 2:return console.log(n.sent()),[3,3];case 3:return[2]}})})()},[]),(0,l.jsx)(U,{children:(0,l.jsx)("div",{onClick:function(){return t(!0)},className:"star-container",children:(0,l.jsx)(Z.A,{fill:"#F58E20",width:"36",height:"36",className:"".concat(m?" mr-1 animate-rotate-and-grow":"")})})})}var U=r(33686).Ay.div(O()),Y=r(40248),q=r(559),K=r(65106),W=r(89850);function Q(){var e=(0,k.B)().t;return(0,l.jsx)("div",{className:"w-full flex justify-center items-center mt-20",children:(0,l.jsxs)("div",{className:"w-11/12 bg-slate-900 rounded-2xl",children:[(0,l.jsx)("div",{className:"flex justify-between items-center p-4",style:{color:"#DDDAFF"},children:(0,l.jsx)("div",{className:"font-exo text-[#DDDAFF]",children:e("panel.gamification.adminPanelItems")})}),(0,l.jsx)("hr",{className:"h-px bg-gray-200 border-0 dark:bg-gray-700"}),(0,l.jsx)("div",{className:"p-4 h-72 md:h-full overflow-auto",children:(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"font-exo w-full text-justify",children:[(0,l.jsx)(p(),{href:"/home/blog",className:"flex items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col justify-center",children:(0,l.jsxs)("div",{className:" flex h-12 w-full cursor-pointer items-center justify-center hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-500 hover:p-4",children:[(0,l.jsx)(j.Iff,{size:"2rem"}),(0,l.jsx)("span",{className:"ml-2",children:e("panel.gamification.seoAndPosts")})]})})}),(0,l.jsx)(p(),{href:"/home/user-management",className:"flex items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:" flex h-12 w-full cursor-pointer items-center justify-center hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-500 hover:p-4",children:[(0,l.jsx)(Y.MQs,{size:"2rem"}),(0,l.jsx)("span",{className:"ml-2",children:e("panel.gamification.userManagement")})]})})}),(0,l.jsx)(p(),{href:"/home/box-management",className:"flex items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:" flex h-12 w-full cursor-pointer items-center justify-center hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-500 hover:p-4",children:[(0,l.jsx)(w.APk,{size:"2rem"}),(0,l.jsx)("span",{className:"ml-2",children:e("panel.gamification.boxesAndContent")})]})})}),(0,l.jsx)(p(),{href:"/home/user-messages",className:"flex items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:" flex h-12 w-full cursor-pointer items-center justify-center hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-500 hover:p-4",children:[(0,l.jsx)(q.oau,{size:"2rem"}),(0,l.jsx)("span",{className:"ml-2",children:e("panel.gamification.contactsMessages")})]})})}),(0,l.jsx)(p(),{href:"/home/user-comments",className:"flex items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"flex h-12 w-full cursor-pointer items-center justify-center hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-500 hover:p-4",children:[(0,l.jsx)(K.S4T,{size:"2rem"}),(0,l.jsx)("span",{className:"ml-2",children:e("panel.gamification.blogComments")})]})})}),(0,l.jsx)(p(),{href:"/home/admin-analytics",className:"flex items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"flex h-12 w-full cursor-pointer items-center justify-center hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-500 hover:p-4",children:[(0,l.jsx)(Y.MCF,{size:"2rem"}),(0,l.jsx)("span",{className:"ml-2",children:e("panel.gamification.analyticsDashboard")})]})})}),(0,l.jsx)(p(),{href:"/home/admin-settings",className:"flex items-center",children:(0,l.jsx)("div",{className:" flex list-none flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"flex h-12 w-full cursor-pointer items-center justify-center hover:rounded-lg hover:border-2 hover:border-purple-300 hover:border-opacity-20 hover:bg-sky-600 hover:bg-opacity-10 hover:duration-500 hover:p-4",children:[(0,l.jsx)(W.VSk,{size:"2rem"}),(0,l.jsx)("span",{className:"ml-2",children:e("panel.gamification.settings")})]})})})]})})})]})})}r(97685);var X=f()(function(){return r.e(8037).then(r.bind(r,88037))},{loadableGenerated:{webpack:function(){return[88037]}},ssr:!1}),J=f()(function(){return Promise.all([r.e(2697),r.e(3716),r.e(2601),r.e(9348)]).then(r.bind(r,9348))},{loadableGenerated:{webpack:function(){return[9348]}},ssr:!1}),$={"/home/panel":"panel.menu.home","/home/flashcards":"panel.menu.flashcards","/home/library":"panel.menu.library","/home/note":"panel.topbar.note","/home/folders":"panel.topbar.folders","/home/account":"panel.menu.settings","/home/subscription":"panel.menu.premium","/home/ai-settings":"panel.menu.aiSettings"};function ee(e){var t=(0,i._)((0,c.useState)(!1),2),r=t[0],a=t[1],s=(0,i._)((0,c.useState)(!1),2),u=s[0],h=s[1],m=(0,i._)((0,c.useState)(null),2),f=m[0],x=m[1],p=(0,i._)((0,c.useState)(!1),2),b=p[0],g=p[1],v=(0,i._)((0,c.useState)(null),2),j=v[0],y=v[1],w=(0,i._)((0,c.useState)("default"),2),M=(w[0],w[1]),S=function(t){e.ThemeProfileFromNavBar(t),M(t)};(0,c.useEffect)(function(){var e;e=localStorage.getItem("Mindo_Tok"),(0,n._)(function(){var t,r;return(0,o.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,C.A)("".concat("https://api.mindomax.com/v1","/authentication/find-status"),{method:"get",headers:{Authorization:"Bearer ".concat(e)}})];case 1:return r=(t=n.sent()).response,t.abortRequest,200===r.status&&r.data.data.tokenIsValid&&y(r.data.data.level),[3,3];case 2:return n.sent(),localStorage.removeItem("Mindo_Tok"),_.push("/"),[3,3];case 3:return[2]}})})()},[]),(0,c.useEffect)(function(){var e=function(){return a(!0)};return window.addEventListener("mindo:open-gamification",e),function(){return window.removeEventListener("mindo:open-gamification",e)}},[]);var _=(0,d.useRouter)(),L=(0,k.B)().t,z="fa"===_.locale||"ar"===_.locale,A=$[_.pathname];return"/home/library"===_.pathname?null:(0,l.jsxs)("div",{className:"z-10 flex h-16 w-full border-sky-300 bg-sky-4
100 bg-opacity-10 md:pr-10",children:[(0,l.jsxs)("div",{className:"flex h-full w-full items-center justify-between md:justify-between px-5 md:px-6",children:[(0,l.jsx)("div",{className:"md:hidden",children:(0,l.jsx)(F,{direction:"down"})}),(0,l.jsx)("h1",{className:"hidden md:block text-white text-sm font-semibold truncate",style:{fontFamily:z?"'Yekan', 'Vazir', Arial, sans-serif":"'Exo', Arial, sans-serif"},children:A?L(A):""}),(0,l.jsxs)("div",{className:"flex items-center",children:["admin"===j?(0,l.jsx)("div",{className:"mr-5 border rounded-full border-sky-200 p-2 cursor-pointer",onClick:function(){return h(!0)},children:(0,l.jsx)(N.snS,{size:"2rem"})}):"",(0,l.jsx)(G,{setGamificationDrawerIsOpen:a,setStarsNumberForGamification:x,setActivityDrawerIsOpen:g})]})]}),u&&(0,l.jsx)(R.A,{drawerHandler:function(){return h(!1)},closeIconBG:"bg-[#13172A]",children:(0,l.jsx)(Q,{})}),r&&(0,l.jsx)(R.A,{drawerHandler:function(){return a(!1)},closeIconBG:"bg-[#F58E20]",children:(0,l.jsx)(X,{drawerHandler:function(){return a(!1)},ThemeProfileSetterFromGamificationDrawer:function(e){return S(e)},starsNumberForGamification:f})}),b&&(0,l.jsx)(R.A,{drawerHandler:function(){return g(!1)},closeIconBG:"bg-green-800",children:(0,l.jsx)(J,{drawerHandler:function(){return g(!1)}})})]})}var et=r(99986);let er=function(){var e=(0,i._)((0,c.useState)(navigator.onLine),2),t=e[0],r=e[1];return((0,c.useEffect)(function(){var e=function(){return r(!0)},t=function(){return r(!1)};return window.addEventListener("online",e),window.addEventListener("offline",t),function(){window.removeEventListener("online",e),window.removeEventListener("offline",t)}},[]),t)?null:(0,l.jsx)("div",{className:"text-white bg-red-600 font--primary p-5 fixed top-5 left-0 w-full z-50",children:"You are offline. Check your internet connection."})};var en=r(57293),ea=r(98778);function es(e){if(!isFinite(e))return"0:00";var t=Math.floor(e),r=Math.floor(t/3600),n=Math.floor(t%3600/60),a=String(t%60).padStart(2,"0");return r>0?"".concat(r,":").concat(String(n).padStart(2,"0"),":").concat(a):"".concat(n,":").concat(a)}function ei(){var e=(0,en.RN)(),t=(0,i._)((0,c.useState)(!1),2),r=t[0],n=t[1];if(!(null==e?void 0:e.current))return null;var a=e.current,s=e.playing,o=e.loading,d=e.position,u=e.duration,h=e.speed,m=e.hasNext,f=e.hasPrev,x=e.toggle,p=e.next,b=e.prev,g=e.seekTo,v=e.seekBy,j=e.cycleSpeed,y=e.stop,w=u>0?d/u*100:0;return(0,l.jsxs)("div",{className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-50 w-[92%] sm:w-[70%] max-w-2xl",dir:"ltr",children:[r&&(0,l.jsxs)("div",{className:"mb-2 rounded-xl bg-gray-900/95 border border-indigo-400/40 shadow-2xl px-4 py-3 backdrop-blur",children:[(0,l.jsx)("input",{type:"range",min:0,max:u||1,step:.1,value:Math.min(d,u||1),onChange:function(e){return g(parseFloat(e.target.value))},className:"w-full accent-indigo-400 cursor-pointer"}),(0,l.jsxs)("div",{className:"flex items-center justify-between text-[11px] text-gray-400 mb-1",children:[(0,l.jsx)("span",{children:es(d)}),(0,l.jsx)("span",{children:es(u)})]}),(0,l.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,l.jsx)("button",{onClick:j,className:"px-2.5 py-1 rounded-lg border border-indigo-400/50 text-indigo-300 text-xs font-bold hover:bg-indigo-400/10",children:"".concat(h,"x").replace(".0x","x")}),(0,l.jsx)("button",{onClick:b,disabled:!f,className:"text-gray-300 hover:text-white disabled:opacity-30",children:(0,l.jsx)(ea.wM5,{size:26})}),(0,l.jsxs)("button",{onClick:function(){return v(-15)},className:"relative text-gray-300 hover:text-white",children:[(0,l.jsx)(ea.xJh,{size:24}),(0,l.jsx)("span",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 text-[8px] font-bold",children:"15"})]}),(0,l.jsx)("button",{onClick:x,className:"w-11 h-11 rounded-full bg-gradient-to-br from-indigo-400 to-indigo-600 flex items-center justify-center text-white shadow-lg hover:scale-105 transition-transform",children:s?(0,l.jsx)(ea.QG6,{size:24}):(0,l.jsx)(ea.XKH,{size:26})}),(0,l.jsxs)("button",{onClick:function(){return v(15)},className:"relative text-gray-300 hover:text-white",children:[(0,l.jsx)(ea.D1n,{size:24}),(0,l.jsx)("span",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 text-[8px] font-bold",children:"15"})]}),(0,l.jsx)("button",{onClick:p,disabled:!m,className:"text-gray-300 hover:text-white disabled:opacity-30",children:(0,l.jsx)(ea.ivF,{size:26})})]})]}),(0,l.jsxs)("div",{onClick:function(){return n(function(e){return!e})},className:"relative overflow-hidden rounded-xl bg-gray-900/95 border border-indigo-400/40 shadow-2xl cursor-pointer backdrop-blur",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2",children:[(0,l.jsx)("span",{className:"w-7 h-7 rounded-lg bg-gradient-to-br from-indigo-400 to-indigo-600 flex items-center justify-center shrink-0",children:(0,l.jsx)(ea.qLB,{size:16,className:"text-white ".concat(s?"animate-pulse":"")})}),(0,l.jsx)("span",{className:"flex-1 min-w-0 truncate text-sm font-medium text-gray-100",children:a.original_filename}),(0,l.jsx)("button",{onClick:function(e){e.stopPropagation(),x()},className:"p-1.5 rounded-lg hover:bg-white/10 text-gray-200",children:o?(0,l.jsx)("span",{className:"block w-4 h-4 border-2 border-indigo-400 border-t-transparent roun
1ded-full animate-spin"}):s?(0,l.jsx)(ea.QG6,{size:20}):(0,l.jsx)(ea.XKH,{size:20})}),m&&(0,l.jsx)("button",{onClick:function(e){e.stopPropagation(),p()},className:"p-1.5 rounded-lg hover:bg-white/10 text-gray-200",children:(0,l.jsx)(ea.ivF,{size:20})}),(0,l.jsx)("button",{onClick:function(e){e.stopPropagation(),y()},className:"p-1.5 rounded-lg hover:bg-white/10 text-gray-400",children:(0,l.jsx)(ea.m6K,{size:18})})]}),(0,l.jsx)("div",{className:"absolute bottom-0 left-0 h-0.5 bg-indigo-400 transition-[width] duration-300",style:{width:"".concat(w,"%")}})]})]})}var eo=r(75784),el=r(34471),ec=r(26250),ed=f()(function(){return r.e(532).then(r.bind(r,80532))},{loadableGenerated:{webpack:function(){return[80532]}},ssr:!1}),eu={en:{title:"Get the App!",subtitle:"Experience MindoMax on your mobile device",features:["Offline Mode","Voice Recognition","Smart Notifications","Faster & Smoother"],button:"Download Now",later:"Maybe Later"},fa:{title:"اپÙÛÚ©ÛØ´Ù ر٠داÙÙÙØ¯ Ú©Ù!",subtitle:"ØªØ¬Ø±Ø¨Ù Ø¨ÙØªØ± با اپ Ù
ÙØ¨Ø§ÛÙ Ø¯ÛØ¬ÛâÙØ§ÛØªÙØ±",features:["ØØ§Ùت Ø¢ÙÙØ§ÛÙ","ØªØ´Ø®ÛØµ صدا","Ø§Ø¹ÙØ§ÙâÙØ§Û ÙÙØ´Ù
ÙØ¯","Ø³Ø±ÛØ¹âتر Ù Ø±ÙØ§ÙâØªØ±"],button:"داÙÙÙØ¯ Ú©Ù",later:"بعداÙ"},de:{title:"Hol dir die App!",subtitle:"Erlebe MindoMax auf deinem Mobilger\xe4t",features:["Offline-Modus","Spracherkennung","Smarte Benachrichtigungen","Schneller & Fl\xfcssiger"],button:"Jetzt herunterladen",later:"Vielleicht sp\xe4ter"},fr:{title:"T\xe9l\xe9chargez l'appli!",subtitle:"D\xe9couvrez MindoMax sur mobile",features:["Mode hors ligne","Reconnaissance vocale","Notifications intelligentes","Plus rapide et fluide"],button:"T\xe9l\xe9charger",later:"Plus tard"},es:{title:"\xa1Obt\xe9n la app!",subtitle:"Experimenta MindoMax en tu m\xf3vil",features:["Modo sin conexi\xf3n","Reconocimiento de voz","Notificaciones inteligentes","M\xe1s r\xe1pido y fluido"],button:"Descargar ahora",later:"Quiz\xe1s luego"},it:{title:"Scarica l'app!",subtitle:"Prova MindoMax sul tuo dispositivo",features:["Modalit\xe0 offline","Riconoscimento vocale","Notifiche intelligenti","Pi\xf9 veloce e fluido"],button:"Scarica ora",later:"Forse dopo"},ar:{title:"ØÙ
ÙÙ Ø§ÙØªØ·Ø¨ÙÙ!",subtitle:"Ø¬Ø±ÙØ¨ MindoMax عÙÙ Ø¬ÙØ§ÙÙ",features:["ÙØ¶Ø¹ بدÙÙ Ø¥ÙØªØ±Ùت","Ø§ÙØªØ¹Ø±Ù عÙÙ Ø§ÙØµÙت","إشعارات ذÙÙØ©","أسرع ÙØ£Ùثر Ø³ÙØ§Ø³Ø©"],button:"ØÙ
ÙÙ Ø§ÙØ¢Ù",later:"ÙØ§ØÙاÙ"},zh:{title:"ä¸è½½åºç¨!",subtitle:"卿æºä¸ä½éªMindoMax",features:["离线模å¼","è¯é³è¯å«","æºè½éç¥","æ´å¿«æ´æµç
"],button:"ç«å³ä¸è½½",later:"ç¨åå说"},ja:{title:"ã¢ããªããã¦ã³ãã¼ã!",subtitle:"ã¢ãã¤ã«ã§MindoMaxãä½é¨",features:["ãªãã©ã¤ã³ã¢ã¼ã","é³å£°èªè","ã¹ãã¼ãéç¥","ããéãã¹ã ã¼ãº"],button:"ä»ãããã¦ã³ãã¼ã",later:"å¾ã§"},ko:{title:"ì± ë¤ì´ë¡ë!",subtitle:"모ë°ì¼ìì MindoMax를 ê²½ííì¸ì",features:["ì¤íë¼ì¸ 모ë","ìì± ì¸ì","ì¤ë§í¸ ì림","ë ë¹ ë¥´ê³ ë¶ëë½ê²"],button:"ì§ê¸ ë¤ì´ë¡ë",later:"ëì¤ì"},ru:{title:"СкаÑай пÑиложение!",subtitle:"ÐопÑобÑй MindoMax на мобилÑном",features:["ÐÑлайн Ñежим","РаÑпознавание голоÑа","УмнÑе ÑведомлениÑ","ÐÑÑÑÑее и плавнее"],button:"СкаÑаÑÑ ÑейÑаÑ",later:"Ðозже"},tr:{title:"Uygulamayı İndir!",subtitle:"MindoMax'i mobilde dene",features:["\xc7evrimdıÅı Mod","Ses Tanıma","Akıllı Bildirimler","Daha Hızlı ve Akıcı"],button:"Åimdi İndir",later:"Belki Sonra"},nl:{title:"Download de app!",subtitle:"Ervaar MindoMax op je mobiel",features:["Offline modus","Spraakherkenning","Slimme meldingen","Sneller & Soepeler"],button:"Nu downloaden",later:"Misschien later"},sv:{title:"H\xe4mta appen!",subtitle:"Upplev MindoMax p\xe5 din mobil",features:["Offlinel\xe4ge","R\xf6stigenk\xe4nning","Smarta notiser","Snabbare & Smidigare"],button:"Ladda ner nu",later:"Kanske senare"},no:{title:"Last ned appen!",subtitle:"Opplev MindoMax p\xe5 mobilen",features:["Frakoblet modus","Talegjenkjenning","Smarte varsler","Raskere og jevnere"],button:"Last ned n\xe5",later:"Kanskje senere"},el:{title:"ÎαÏÎβαÏε Ïην εÏαÏμογή!",subtitle:"ÎοκίμαÏε Ïο MindoMax ÏÏο κινηÏÏ",features:["ÎειÏοÏ
Ïγία εκÏÏÏ ÏÏνδεÏηÏ","ÎναγνÏÏιÏη ÏÏνήÏ","ÎξÏ
ÏÎ½ÎµÏ ÎµÎ¹Î´Î¿ÏοιήÏειÏ","Πιο γÏήγοÏα & ομαλά"],button:"ÎήÏη ÏÏÏα",later:"ÎÏÏÏ Î±ÏγÏÏεÏα"}},eh=function(e,t,r){var n=new Date(Date.now()+60*r*6e4).toUTCString();document.cookie="".concat(e,"=").concat(t,"; expires=").concat(n,"; path=/")}
1,em=function(e){var t=document.cookie.match(RegExp("(^| )"+e+"=([^;]+)"));return t?t[2]:null},ef=function(e){var t=e.isOpen,r=e.onClose,n=e.lang,a=e.isAppleDevice,s=eu[n]||eu.en,i=["fa","ar"].includes(n);return(0,l.jsx)(eo.N,{children:t&&(0,l.jsxs)(el.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[10000] flex items-end sm:items-center justify-center p-4",style:{direction:i?"rtl":"ltr"},children:[(0,l.jsx)(el.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:r,className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,l.jsxs)(el.P.div,{initial:{scale:.9,y:50,opacity:0},animate:{scale:1,y:0,opacity:1},exit:{scale:.9,y:50,opacity:0},transition:{type:"spring",damping:25,stiffness:400},className:"relative w-full max-w-xs bg-gradient-to-br from-slate-900 to-slate-800 rounded-2xl p-4 border border-white/10 shadow-2xl mb-4 sm:mb-0",children:[(0,l.jsx)("button",{onClick:r,className:"absolute top-3 right-3 w-6 h-6 flex items-center justify-center rounded-full bg-white/10 text-white/50 hover:text-white hover:bg-white/20 transition-all",children:(0,l.jsx)(ec.$8F,{size:14})}),(0,l.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,l.jsx)("img",{src:"/images/brand/logo-icon.png",alt:"App",className:"w-12 h-12 object-contain"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"text-white font-semibold text-sm",children:s.title}),(0,l.jsx)("p",{className:"text-white/50 text-xs",children:s.subtitle})]})]}),(0,l.jsx)("div",{className:"flex justify-center mb-3",children:a?(0,l.jsx)("a",{href:"https://apps.apple.com/".concat({en:"us",de:"de",fa:"us",ar:"sa",es:"es",fr:"fr",it:"it",zh:"cn",ja:"jp",ko:"kr",ru:"ru",tr:"tr",nl:"nl",sv:"se",no:"no",el:"gr"}[n]||"us","/app/mindomax/id6754225657"),target:"_blank",rel:"noopener noreferrer",className:"w-full",children:(0,l.jsx)("img",{src:"/images/global/appstore.png",alt:"App Store",className:"h-11 w-full object-contain rounded-lg hover:opacity-80 transition-opacity"})}):(0,l.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.lumixis.mindomax&hl=".concat("fa"===n?"en":n),target:"_blank",rel:"noopener noreferrer",className:"w-full",children:(0,l.jsx)("img",{src:"/images/global/playstore.png",alt:"Play Store",className:"h-11 w-full object-contain rounded-lg hover:opacity-80 transition-opacity"})})}),"fa"===n&&(0,l.jsx)("p",{className:"text-amber-400/80 text-[10px] text-center mb-2 leading-relaxed",children:"â ï¸ Ø¨Ø¹Ø¯ از ÙØµØ¨Ø ØØªÙ
Ø§Ù Ø²Ø¨Ø§Ù ÙØ§Ø±Ø³Û را از ØªÙØ¸ÛÙ
ات اپ Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯"}),(0,l.jsx)("button",{onClick:r,className:"w-full py-1.5 text-white/40 hover:text-white/60 transition-colors text-xs",children:s.later})]})]})})};function ex(e){var t,r=e.children,u=(0,s._)(e,["children"]),m=(0,i._)((0,c.useState)("default"),2),f=m[0],x=m[1],p=(0,i._)((0,c.useState)(!0),2),b=p[0],g=p[1],v=(0,i._)((0,c.useState)(!1),2),j=v[0],y=v[1],w=(0,i._)((0,c.useState)(null),2),N=w[0],k=w[1],M=(0,i._)((0,c.useState)(!1),2),S=M[0],_=M[1],L=(0,i._)((0,c.useState)(!1),2),z=L[0],A=L[1],H=(0,i._)((0,c.useState)("en"),2),E=H[0],F=H[1],B=(0,i._)((0,c.useState)(!1),2),T=B[0],V=B[1],P=(0,d.useRouter)(),R=function(e){x(e),u.ThemeProfileFromPanelLayout(e)},D=function(){var e=new Date,t=e.getMonth()+1,r=e.getDate();12===t&&r>=24||1===t&&1===r?_(!0):_(!1)};return(0,c.useEffect)(function(){var e=localStorage.getItem("Mindo_Tok"),t=function(){var e=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),t=/iphone|ipad|ipod/.test(e)||e.includes("mac")&&"ontouchend"in document||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;if((/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(e)||t)&&(V(t),!em("mobileDialogDismissed"))){var r=P.locale||"en";F(Object.keys(eu).includes(r)?r:"en"),setTimeout(function(){return A(!0)},1500)}};(0,n._)(function(){return(0,o.YH)(this,function(r){switch(r.label){case 0:return[4,(0,n._)(function(){var t;return(0,o.YH)(this,function(r){switch(r.label){case 0:if(!e)return P.push("/"),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,C.A)("".concat("https://api.mindomax.com/v1","/authentication/find-status"),{method:"get",headers:{Authorization:"Bearer ".concat(e)}})];case 2:return 200===(t=r.sent().response).status&&t.data.data.tokenIsValid&&
1(g(!1),k(t.data.data.level)),[3,4];case 3:return r.sent(),localStorage.removeItem("Mindo_Tok"),P.push("/"),[3,4];case 4:return[2]}})})()];case 1:return r.sent(),[4,(0,n._)(function(){var e;return(0,o.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,C.A)("".concat("https://api.mindomax.com/v1","/gamification/profile-theme"),{method:"GET"})];case 1:return 200===(e=t.sent().response).status&&(R(void 0!==e.data.data.profileTheme[0]?e.data.data.profileTheme:"default"),y(!0)),[3,3];case 2:return console.error("Failed to fetch theme:",t.sent().message),y(!0),R("default"),[3,3];case 3:return[2]}})})()];case 2:return r.sent(),D(),t(),[2]}})})();var r=setInterval(D,432e5);return function(){return clearInterval(r)}},[]),(0,l.jsxs)(en.Vw,{children:[(0,l.jsxs)(h(),{children:[(0,l.jsx)("link",{rel:"stylesheet",href:"/styles/talkme-redesign.css"}),(0,l.jsx)("link",{rel:"stylesheet",href:"/styles/teachme.css"})]}),b||!j?(0,l.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-screen items-center justify-center bg-sky-500 text-black",children:(0,l.jsx)(et.A,{})}):(0,l.jsx)("div",{className:"absolute inset-0 w-full md:flex md:flex-row-reverse h-full",children:(0,l.jsxs)("div",{className:"w-full h-full",children:[S&&(0,l.jsx)(ed,(0,a._)({},{color:"#fff",snowflakeCount:150,radius:[.5,3],speed:[1,3]})),(0,l.jsxs)("div",{className:"flex h-full w-full flex-col-reverse md:flex-row",children:[(0,l.jsx)(I,{userLevel:N,profileTheme:f,ThemeIs:f}),(0,l.jsxs)("div",{className:"h-full grow overflow-y-auto flex flex-col",children:[(0,l.jsx)(ee,{ThemeProfileFromNavBar:R}),(0,l.jsxs)("div",{className:"relative mx-0 mt-0 flex-1 overflow-y-auto pb-0",children:["default"===f?(0,l.jsx)("div",{className:"fixed left-0 inset-0 -z-10 h-full w-full",style:{background:"radial-gradient(circle at center, #0d3b6d 0%, #092c54 70%, #051d38 100%)",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.4), 0 0 100px rgba(10, 40, 80, 0.2) inset"}}):"glassy"===f?(0,l.jsx)("div",{className:"fixed left-0 inset-0 -z-10 h-full w-full",style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4c63d2 100%)",boxShadow:"0 20px 60px rgba(102, 126, 234, 0.4), 0 0 100px rgba(118, 75, 162, 0.3) inset"}}):(0,l.jsx)("img",{src:(t={default:"/images/themes/default/default_bg.png",fantasy:"/images/themes/fantasy/fantasy_bg.png",marsh:"/images/themes/marsh/marsh_bg.png",halloween:"/images/themes/halloween/halloween_bg.png",anime:"/images/themes/anime/anime_bg.png",glassy:"/images/themes/glassy/glassy_bg.png"})[f]||t.default,alt:"Background theme",className:"fixed left-0 inset-0 -z-10 h-full w-full object-cover"}),(0,l.jsx)(er,{}),r]})]})]})]})}),(0,l.jsx)(ei,{}),(0,l.jsx)(ef,{isOpen:z,onClose:function(){A(!1),eh("mobileDialogDismissed","true",24)},lang:E,isAppleDevice:T})]})}},99986:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(67684),a=r(62701),s=r(37876);function i(){var e=function(e){var t={position:"absolute",top:"33px",width:"13px",height:"13px",borderRadius:"50%",background:"#fff",animationTimingFunction:"cubic-bezier(0, 1, 1, 0)"};switch(e){case 1:return(0,a._)((0,n._)({},t),{left:"8px",animation:"ldsEllipsis1 0.6s infinite"});case 2:return(0,a._)((0,n._)({},t),{left:"8px",animation:"ldsEllipsis2 0.6s infinite"});case 3:return(0,a._)((0,n._)({},t),{left:"32px",animation:"ldsEllipsis2 0.6s infinite"});case 4:return(0,a._)((0,n._)({},t),{left:"56px",animation:"ldsEllipsis3 0.6s infinite"});default:return t}};return(0,s.jsxs)("div",{style:{display:"inline-block",position:"relative",width:"80px",height:"80px"},children:[(0,s.jsx)("style",{children:"\n @keyframes ldsEllipsis1 { 0% { transform: scale(0); } 100% { transform: scale(1); } }\n @keyframes ldsEllipsis2 { 0% { transform: translate(0, 0); } 100% { transform: translate(24px, 0); } }\n @keyframes ldsEllipsis3 { 0% { transform: scale(1); } 100% { transform: scale(0); } }\n "}),(0,s.jsx)("div",{style:e(1)}),(0,s.jsx)("div",{style:e(2)}),(0,s.jsx)("div",{style:e(3)}),(0,s.jsx)("div",{style:e(4)})]})}r(14232)}}]);
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.