PageSourceSearch

https://humanizetext.pro/assets/route-DUuZnRNq.js

js humanizetext.pro collected 2026-10-08 03:46:02 UTC 8,464 bytes, 2 lines download raw bytes

1import{w as H,r as o,j as e}from"./chunk-NL6KNZEE-Dh7cvbf_.js";import{H as L,S as M,A as q}from"./HumanizeEditor-B5-IpUW6.js";import{G as Z}from"./context-C_rcRveg.js";import{u as O}from"./user-DA6gLG_U.js";import{c as F}from"./meta-MR0ZQFoO.js";import{d as U,g as T}from"./utils-BW_aBSMx.js";import{Z as B}from"./zap-D-3yGBTO.js";import{G as K}from"./globe-BHtAfHDc.js";import{S as Q}from"./sparkles-Dhkb1vZs.js";import"./createLucideIcon-DvMENBQk.js";import"./check-HbzbtQTn.js";import"./circle-check-big-BAuZ6WVJ.js";function ie({matches:u,params:d}){const c=F("/",u[0].data.DOMAIN),t=d.lang||U,n=T(t);return[{title:n.home.hero.title1+" — "+n.home.hero.title2},{name:"description",content:n.home.hero.description},c]}const le=H(function({loaderData:d}){const{lang:c}=d,t=T(c),[n,A]=o.useState(""),[C,b]=o.useState(""),[h,I]=o.useState("free"),[R,j]=o.useState(!1),[f,g]=o.useState(null),[z,N]=o.useState(),[E,v]=o.useState(),D=O(s=>s.user),w=O(s=>s.setCredits),y=o.useRef(null),G=o.useCallback(()=>{var s;(s=y.current)==null||s.login()},[]),J=o.useCallback(async()=>{var s;if(n.trim()){j(!0),g(null),b(""),N(void 0),v(void 0);try{const a=await fetch("/api/humanize",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:n,mode:h,stream:!0,lang:c})});if(!a.ok){const r=await a.json();throw new Error(r.error||"Failed to process text")}const i=(s=a.body)==null?void 0:s.getReader();if(!i)throw new Error("No response body");const P=new TextDecoder;let m="";for(;;){const{done:r,value:l}=await i.read();if(r)break;const W=P.decode(l,{stream:!0}).split(`
2`).filter(p=>p.startsWith("data: "));for(const p of W){const S=p.slice(6);if(S!=="[DONE]")try{const k=JSON.parse(S);k.content&&(m+=k.content,b(m))}catch{}}}if(m)try{const r=await fetch("/api/detect",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:n})});if(r.ok){const x=await r.json();N(x.aiScore)}const l=await fetch("/api/detect",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:m})});if(l.ok){const x=await l.json();v(x.aiScore)}}catch{}if(m)try{const r=await fetch("/api/auth");if(r.ok){const l=await r.json();w(l.credits)}}catch{}}catch(a){g(a instanceof Error?a.message:"Something went wrong")}finally{j(!1)}}},[n,h,w,c]);return e.jsxs("main",{className:"min-h-screen bg-base-200",children:[e.jsxs("section",{className:"relative py-20 lg:py-28 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/10 via-trans
2parent to-transparent pointer-events-none"}),e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[600px] bg-primary/20 rounded-full blur-[120px] pointer-events-none"}),e.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight",children:[t.home.hero.title1,e.jsx("br",{}),e.jsx("span",{className:"text-gradient",children:t.home.hero.title2})]}),e.jsx("p",{className:"text-xl text-base-content/70 max-w-2xl mx-auto leading-relaxed mb-8",children:t.home.hero.description})]}),e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsx(L,{inputText:n,outputText:C,mode:h,isLoading:R,isAuthenticated:!!D,inputAIScore:z,outputAIScore:E,onInputChange:A,onModeChange:I,onSubmit:J,onAuthRequired:G}),e.jsx("div",{className:"hidden",children:e.jsx(Z,{ref:y})})]}),f&&e.jsx("div",{className:"alert alert-error max-w-md mx-auto mt-6",children:e.jsx("span",{children:f})}),e.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-6 mt-12 text-base-content/50 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{size:18}),e.jsx("span",{children:t.home.trust.secure})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(B,{size:18}),e.jsx("span",{children:t.home.trust.instant})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(K,{size:18}),e.jsx("span",{children:t.home.trust.noReg})]})]})]})]}),e.jsx("section",{className:"py-20 bg-base-100/50",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:t.home.howItWorks.title}),e.jsx("p",{className:"text-xl text-base-content/60 max-w-2xl mx-auto",children:t.home.howItWorks.subtitle})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:t.home.howItWorks.steps.map(({title:s,desc:a},i)=>e.jsxs("div",{className:"relative text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-primary to-accent flex items-center justify-center text-2xl font-bold mx-auto mb-6 glow-primary",children:i+1}),e.jsx("h3",{className:"text-xl font-semibold mb-3",children:s}),e.jsx("p",{className:"text-base-content/60",children:a}),i<2&&e.jsx("div",{className:"hidden md:block absolute top-8 left-[60%] w-[80%] h-[2px] bg-gradient-to-r from-primary/50 to-transparent"})]},i))})]})}),e.jsx("section",{className:"py-20 bg-base-100/50",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-16",children:[e.jsx("p",{className:"text-primary font-semibold mb-4",children:t.home.about.badge}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:t.home.about.title}),e.jsx("p",{className:"text-base-content/70 text-lg leading-relaxed",children:t.home.about.description})]}),e.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-12 mb-20",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold mb-4",children:t.home.about.col1.title}),e.jsx("p",{className:"text-base-content/70 mb-4",children:t.home.about.col1.p1}),e.jsx("p",{className:"text-base-content/70",children:t.home.about.col1.p2})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold mb-4",children:t.home.about.col2.title}),e.jsx("p",{className:"text-base-content/70 mb-4",children:t.home.about.col2.p1}),e.jsx("p",{className:"text-base-content/70",children:t.home.about.col2.p2})]})]}),e.jsxs("div",{className:"max-w-5xl mx-auto mb-20",children:[e.jsx("h3",{className:"text-2xl font-bold text-center mb-10",children:t.home.advantages.title}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:t.home.advantages.items.map(({title:s,desc:a})=>e.jsxs("div",{className:"p-4 rounded-xl bg-base-200/50 border border-base-300",children:[e.jsx("h4",{className:"font-semibold mb-1",children:s}),e.jsx("p",{className:"text-sm text-base-content/60",children:a})]},s))})]}),e.jsxs("div",{className:"max-w-4xl mx-auto mb-20",children:[e.jsx("h3",{className:"text-2xl font-bold text-center mb-6",children:t.home.beneficiaries.title}),e.jsx("p",{className:"text-center text-base-content/60 mb-8",children:t.home.beneficiaries.subtitle}),e.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:t.home.beneficiaries.roles.map(s=>e.jsx("span",{className:"px-4 py-2 rounded-full bg-base-200 text-sm font-medium",children:s},s))})]}),e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h3",{className:"text-2xl font-bold text-center mb-10",children:t.home.features.title}),e.jsxs("div",{className:"prose prose-lg max-w-none text-base-content/70 space-y-6",children:[e.jsx("p",{children:t.home.features.p1}),e.jsx("p",{children:t.home.features.p2}),e.jsx("p",{children:t.home.features.p3}),e.jsx("p",{children:t.home.features.p4}),e.jsx("p",{children:t.home.features.p5})]})]})]})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto glass-card rounded-3xl p-8 md:p-12 text-center relative overflow-hidden glow-primary",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/10 via-accent/10 to-secondary/10 pointer-events-none"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:t.home.cta.title}),e.jsx("p",{className:"text-xl text-base-content/70 mb-8 max-w-xl mx-auto",children:t.home.cta.subtitle}),e.jsxs("button",{className:"btn btn-primary btn-lg gap-2 px-8",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:[e.jsx(Q,{size:20}),t.home.cta.button,e.jsx(q,{size:20})]})]})]})})})]})});export{le as default,ie as meta};

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.