PageSourceSearch

https://www.cleveraihumanizer.net/_next/static/chunks/493-d91c9169…?dpl=dpl_66jzcHQZPAJnZbZpHV6TLpjZvBNL

js cleveraihumanizer.net collected 2026-10-08 04:48:52 UTC 10,112 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[493],{22032:(e,a,t)=>{t.d(a,{AuthButton:()=>R});var s=t(72356),l=t(94606),n=t(43897),r=t(71464),o=t(2188);function d(){let[e,a]=(0,r.useState)(!1),t=async()=>{a(!0);try{await (0,o.G)()}catch(e){console.error("Unexpected error:",e),a(!1)}};return(0,s.jsxs)(l.$,{onClick:t,disabled:e,variant:"outline",size:"sm",className:"gap-2",children:[(0,s.jsx)(n.A,{className:"h-4 w-4"}),e?"Loading...":"Sign in with Google"]})}var i=t(40929),c=t(13857),m=t(4253),u=t(20171),f=t(10084);let x=i.bL,p=i.l9;i.YJ,i.ZL,i.Pb,i.z6,r.forwardRef((e,a)=>{let{className:t,inset:l,children:n,...r}=e;return(0,s.jsxs)(i.ZP,{ref:a,className:(0,f.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",l&&"pl-8",t),...r,children:[n,(0,s.jsx)(c.A,{className:"ml-auto h-4 w-4"})]})}).displayName=i.ZP.displayName,r.forwardRef((e,a)=>{let{className:t,...l}=e;return(0,s.jsx)(i.G5,{ref:a,className:(0,f.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...l})}).displayName=i.G5.displayName;let h=r.forwardRef((e,a)=>{let{className:t,sideOffset:l=4,...n}=e;return(0,s.jsx)(i.ZL,{children:(0,s.jsx)(i.UC,{ref:a,sideOffset:l,className:(0,f.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})})});h.displayName=i.UC.displayName;let g=r.forwardRef((e,a)=>{let{className:t,inset:l,...n}=e;return(0,s.jsx)(i.q7,{ref:a,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l&&"pl-8",t),...n})});g.displayName=i.q7.displayName,r.forwardRef((e,a)=>{let{className:t,children:l,checked:n,...r}=e;return(0,s.jsxs)(i.H_,{ref:a,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...r,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(m.A,{className:"h-4 w-4"})})}),l]})}).displayName=i.H_.displayName,r.forwardRef((e,a)=>{let{className:t,children:l,...n}=e;return(0,s.jsxs)(i.hN,{ref:a,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(u.A,{className:"h-2 w-2 fill-current"})})}),l]})}).displayName=i.hN.displayName;let j=r.forwardRef((e,a)=>{let{className:t,inset:l,...n}=e;return(0,s.jsx)(i.JU,{ref:a,className:(0,f.cn)("px-2 py-1.5 text-sm font-semibold",l&&"pl-8",t),...n})});j.displayName=i.JU.displayName;let N=r.forwardRef((e,a)=>{let{className:t,...l}=e;return(0,s.jsx)(i.wv,{ref:a,className:(0,f.cn)("-mx-1 my-1 h-px bg-muted",t),...l})});N.displayName=i.wv.displayName;var v=t(63452),y=t(70908),b=t(65566),w=t(45758),k=t(91790),A=t(18165),L=t(28218),S=t(15483),z=t(4313);function C(){var e;let{user:a}=(0,S.A)(),[t,n]=(0,r.useState)(!1),[d,i]=(0,r.useState)(!1),[c,m]=(0,r.useState)(null),[u,f]=(0,r.useState)(!1),[C,R]=(0,r.useState)(!1),U=(0,k.rd)(),E=(0,A.c)("auth"),q=(0,A.c)("auth.quota"),B=async()=>
1{if((null==a?void 0:a.id)&&!u){f(!0),R(!1);try{let e=await (0,z.u)();e&&m(e)}catch(e){console.error("Failed to fetch quota:",e),R(!0)}finally{f(!1)}}};(0,r.useEffect)(()=>{d&&(null==a?void 0:a.id)&&!c&&!u&&B()},[d,null==a?void 0:a.id]),(0,r.useEffect)(()=>{let e=()=>{(null==a?void 0:a.id)&&B()};return window.addEventListener("quotaUpdate",e),()=>window.removeEventListener("quotaUpdate",e)},[null==a?void 0:a.id]);let F=async()=>{n(!0);try{await o.y.signOut(),U.push("/"),U.refresh()}catch(e){console.error("Error logging out:",e)}finally{n(!1)}};if(!a)return null;let _=a.image,P=a.name||(null===(e=a.email)||void 0===e?void 0:e.split("@")[0]),G=a.email;return(0,s.jsxs)(x,{open:d,onOpenChange:i,children:[(0,s.jsx)(p,{asChild:!0,children:(0,s.jsx)(l.$,{variant:"ghost",className:"relative h-10 w-10 rounded-full p-0",children:_?(0,s.jsx)(L.default,{src:_,alt:P||"User avatar",width:40,height:40,className:"rounded-full"}):(0,s.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-gradient-to-br from-blue-500 to-purple-600 text-white",children:(0,s.jsx)(v.A,{className:"h-5 w-5"})})})}),(0,s.jsxs)(h,{className:"w-56",align:"end",forceMount:!0,children:[(0,s.jsx)(j,{className:"font-normal",children:(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium leading-none",children:P}),(0,s.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:G})]})}),u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N,{}),(0,s.jsx)(j,{className:"font-normal",children:(0,s.jsx)("div",{className:"text-xs text-muted-foreground animate-pulse",children:"Loading quota..."})})]}),C&&!u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N,{}),(0,s.jsx)(j,{className:"font-normal",children:(0,s.jsx)("div",{className:"text-xs text-red-600",children:"Failed to load quota"})})]}),c&&!u&&!C&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N,{}),(0,s.jsx)(j,{className:"font-normal",children:(0,s.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,s.jsx)("div",{className:"text-xs",children:(0,s.jsx)("div",{className:"font-medium ".concat(c.totalBalance>.5*c.monthlyLimit?"text-green-600":c.totalBalance>.2*c.monthlyLimit?"text-yellow-600":"text-red-600"),children:q("remaining",{count:c.totalBalance})})}),c.oneTimeQuotaBalance>0&&(0,s.jsxs)("div",{className:"flex items-center gap-1 text-xs text-purple-600",children:[(0,s.jsx)(y.A,{className:"h-3 w-3"}),(0,s.jsx)("span",{children:q("bonus",{count:c.oneTimeQuotaBalance})})]}),c.totalBalance<.3*c.monthlyLimit&&(0,s.jsx)("button",{onClick:()=>U.push("/#pricing"),className:"text-xs text-primary hover:underline text-left",children:q("upgrade")})]})})]}),(0,s.jsx)(N,{}),(0,s.jsxs)(g,{onClick:()=>{U.push("/profile")},children:[(0,s.jsx)(b.A,{className:"mr-2 h-4 w-4"}),(0,s.jsx)("span",{children:E("profileSettings")})]}),(0,s.jsx)(N,{}),(0,s.jsxs)(g,{onClick:F,disabled:t,children:[(0,s.jsx)(w.A,{className:"mr-2 h-4 w-4"}),(0,s.jsx)("span",{children:E(t?"loggingOut":"logout")})]})]})]})}function R(){let{user:e,isInitialized:a}=(0,S.A)();return a?e?(0,s.jsx)(C,{}):(0,s.jsx)(d,{}):(0,s.jsx)("div",{className:"h-10 w-10 rounded-full bg-gray-200 animate-pulse"})}},29320:(e,a,t)=>{t.d(a,{default:()=>o});var s=t(72356),l=t(91790),n=t(19360);let r=[{code:"en",name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},{code:"es",name:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8"},{code:"fr",name:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7"},{code:"de",name:"Deutsch",flag:"\uD83C\uDDE9\uD83C\uDDEA"},{code:"it",name:"Italiano",flag:"\uD83C\uDDEE\uD83C\uDDF9"},{code:"nl",name:"Nederlands",flag:"\uD83C\uDDF3\uD83C\uDDF1"},{code:"ja",name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},{code:"ar",name:"العربية",flag:"\uD83C\uDDF8\uD83C\uDDE6"},{code:"el",name:"Ελληνικά",flag:"\uD83C\uDDEC\uD83C\uDDF7"},{code:"nb",name:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4"},{code:"sv",name:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA"},{code:"pt",name:"Portugu\xeas",flag:"\uD83C\uDDF5\uD83C\uDDF9"},{code:"da",name:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0"},{code:"fi",name:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE"},{code:"ko",name:"한국어",flag:"\uD83C\uDDF0\uD83C\uDDF7"},{code:"tr",name:"T\xfcrk\xe7e",flag:"\uD83C\uDDF9\uD83C\uDDF7"},{code:"zh",name:"中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"}];function o(){let e=(0,n.Ym)(),a=(0,l.rd)(),t=(0,l.a8)(),o=e=>{a.replace(t,{locale:e})};return(0,s.jsxs)("div",{className:"relative inline-block",children:[(0,s.jsx)("select",{value:e,onCh
1ange:e=>o(e.target.value),className:"appearance-none bg-white border border-gray-300 rounded-md px-3 py-2 pr-8 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:r.map(e=>(0,s.jsxs)("option",{value:e.code,children:[e.flag," ",e.name]},e.code))}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700",children:(0,s.jsx)("svg",{className:"h-4 w-4 fill-current",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})})]})}},91790:(e,a,t)=>{t.d(a,{N_:()=>r,a8:()=>d,rd:()=>i});var s=t(52907),l=t(49285);let n=(0,s.A)({locales:["en","es","fr","ja","ar","de","it","nl","el","nb","sv","pt","da","fi","ko","tr","zh"],defaultLocale:"en",localePrefix:"as-needed",localeDetection:!1}),{Link:r,redirect:o,usePathname:d,useRouter:i,getPathname:c}=(0,l.A)(n)},4313:(e,a,t)=>{t.d(a,{u:()=>l});var s=t(30457);let l=(0,s.createServerReference)("00b4834af13ac24b77f8a466fbb890337aa80bcfbc",s.callServer,void 0,s.findSourceMapURL,"getUserQuota")}}]);
2//# sourceMappingURL=493-d91c9169db675df9.js.map

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.