PageSourceSearch

https://openl.io/_nuxt/CRqPpfn5.js

js openl.io collected 2026-09-24 17:39:26 UTC 13,706 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DfcFEpof.js","./DlAUqK2U.js","./BlsbVhgh.js"])))=>i.map(i=>d[i]);
2import{H as k,c as l,o as a,a as o,i as x,l as C,v as M,p as z,t as d,b as m,M as f,N as _,w as b,e as w,_ as L,P as S,f as D,g as H}from"./BlsbVhgh.js";import{_ as A}from"./DDnJiLMm.js";import{_ as R}from"./C9prPWvc.js";import{_ as j}from"./GbhJAoZI.js";import{u as B}from"./D2iL4J3E.js";import{_ as v}from"./DlAUqK2U.js";import{_ as N}from"./CzXZiKI4.js";import V from"./N5hriGrJ.js";import $ from"./DG5RvGK_.js";import{u as E}from"./DH4SqY9T.js";import{u as P}from"./CM4Gv8Ui.js";import"./uiJKZDCm.js";import"./Vm7eK8Vs.js";const I={data(){return{text:this.initialText,Generation:!1,count:0,wordCount:0,limitTips:!1,result:null,RatelimiteMsg:null,errorMsg:null,copySuccess:!1}},watch:{initialText(t){t!==this.text&&(this.text=t,this.updateCount())}},mounted(){this.focusTextArea(),this.updateCount()},props:{initialText:{type:String,default:""}},computed:{...k(B,["isPro","userRole"]),wordLimit(){return this.userRole.name==="free"?100:2e3}},methods:{updateCount(){this.count=this.text.length;const t=this.text.trim().split(/\s+/).filter(Boolean);if(this.wordCount=t.length,this.wordCount>this.wordLimit){let e=0,i=0,c=!1;for(let r=0;r<this.text.length;r++)if(/\S/.test(this.text[r])){if(c||(e++,c=!0),e>this.wordLimit){i=r;break}}else c=!1;this.text=i>0?this.text.slice(0,i):this.text;const s=this.text.trim().split(/\s+/).filter(Boolean);this.wordCount=s.length,this.limitTips=!0}else this.limitTips=!1},focusTextArea(){this.$refs.textArea&&this.$refs.textArea.focus()},async analyzeText(){try{this.Generation=!0;const t=await this.$axios.post("/tools/ai-humanizer",{text:this.text});if(!t||!t.data)throw new Error("Network error, please try again later");this.result=t.data}catch(t){console.error("Error in analyzeText:",t),t.response?t.response.data&&t.response.data.code===1001?this.RatelimiteMsg=t.response.data.message:this.errorMsg=t.response.data?t.response.data.message||JSON.stringify(t.response.data):"An error occurred":t.request?this.errorMsg="No response received from the server":this.errorMsg=t.message||"An unexpected error occurred",setTimeout(()=>{this.errorMsg=null},3e3)}finally{this.Generation=!1}},handleCopy(){if(!this.result)return;const t=document.createElement("div");t.innerHTML=this.result;const e=t.innerText;navigator.clipboard.writeText(e),this.copySuccess=!0,setTimeout(()=>{this.copySuccess=!1},2e3)},handleDownload(){if(!this.result)return;const t=document.createElement("div");t.innerHTML=this.result;const e=t.innerText,i=new Blob([e],{type:"text/plain"}),c=URL.createObjectURL(i),s=document.createElement("a");s.href=c;const r=new Date,u=T=>T.toString().padStart(2,"0"),p=r.getFullYear().toString().slice(-2),h=u(r.getMonth()+1),n=u(r.getDate()),g=u(r.getHours()),y=u(r.getMinutes());s.download=`OpenL-AI-Humanizer-${p}${h}${n}${g}${y}.txt`,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(c)},goToDetector(){if(!this.result)return;const t=document.createElement("div");t.innerHTML=this.result;const i=(t.innerText||"").trim();if(!i)return;const c={text:i};this.setLocalStorage("openl-ai-humanizer-result",JSON.stringify(c));const s=this.localePath("/ai-detector"),r=s.includes("?")?"&":"?",u=`${s}${r}from=ai-humanizer`;window.open(u,"_blank")}}},O={class:"grid gap-6 md:grid-cols-2"},F={class:"col-span-1"},G={class:"sticky top-20 flex flex-col overflow-hidden rounded-md bg-white p-4 pb-20 shadow-md"},U={class:"flex-1"},K=["readonly"],q={class:"absolute inset-x-0 bottom-0 flex items-end justify-between p-4"},J={key:0,type:"button",disabled:"",class:"ont-medium inline-block rounded-lg bg-primary-500 px-5 py-2.5 text-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:bg-secondary-400"},Z=["disabled"],W={class:"relative col-span-1 flex flex-col rounded-md border border-secondary-200 bg-white p-4 pb-16 2xl:text-lg"},Y={key:0,class:"flex flex-1 flex-col items-center justify-center py-16","aria-live":"polite"},Q={key:1},X=["innerHTML"],ee={class:"absolute bottom-4 left-4 right-4 mt-4 flex items-center justify-between gap-1"}
2,te=["aria-label","title"],oe={key:0,class:"animate-fade-in-out absolute -top-3 left-1/2 -translate-x-1/2 select-none text-xs text-green-600"},se=["aria-label","title"],re={key:2,class:"text-secondary-400"},ne={key:0,class:"fixed inset-0 z-20 bg-secondary-700/50 backdrop-blur-sm"},ie={class:"mx-auto w-full overflow-hidden rounded-lg bg-white shadow-xl sm:max-w-sm"},le={class:"relative p-5"},ae={class:"text-center"},de={class:"text-lg font-medium text-secondary-900"},ce={class:"mt-2 text-sm text-secondary-500"},ue={class:"mt-5 flex justify-end gap-2"},me={key:2,class:"fixed left-1/2 top-20 z-10 w-5/6 -translate-x-1/2 md:max-w-xl"},pe={class:"flex items-center gap-2 rounded-lg border-l-4 border-red-400 bg-red-50 p-3 text-sm text-red-700 shadow-md"},he={class:"flex-1"},xe={class:"mt-4 flex flex-col gap-2 text-xs text-secondary-400 opacity-70 hover:opacity-100 md:flex-row md:items-center md:justify-between"},fe={key:0};function ge(t,e,i,c,s,r){const u=R,p=L,h=j;return a(),l("section",null,[o("div",O,[o("div",F,[o("div",G,[o("div",U,[C(o("textarea",{"onUpdate:modelValue":e[0]||(e[0]=n=>s.text=n),placeholder:"Type your text",ref:"textArea",onInput:e[1]||(e[1]=(...n)=>r.updateCount&&r.updateCount(...n)),readonly:s.Generation,class:"block h-full min-h-56 w-full resize-none rounded border-none p-0 focus:border-none focus:ring-0 md:min-h-72 2xl:text-lg"},null,40,K),[[M,s.text]])]),o("div",q,[o("span",{class:z(["text-sm",{"text-red-500":s.limitTips}])},d(s.wordCount.toLocaleString())+"/"+d(r.wordLimit.toLocaleString())+" words ",3),s.Generation?(a(),l("button",J," Humanize ")):(a(),l("button",{key:1,type:"button",disabled:!s.text,onClick:e[2]||(e[2]=(...n)=>r.analyzeText&&r.analyzeText(...n)),class:"inline-block rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-medium text-white hover:bg-primary-400 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed"}," Humanize ",8,Z))])])]),o("div",W,[s.Generation?(a(),l("div",Y,[m(u)])):s.result?(a(),l("div",Q,[o("div",{class:"whitespace-pre-wrap break-words leading-relaxed",innerHTML:s.result},null,8,X),o("div",ee,[o("button",{type:"button",onClick:e[3]||(e[3]=(...n)=>r.goToDetector&&r.goToDetector(...n)),class:"inline-block rounded-lg bg-green-400 px-5 py-2.5 text-sm font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed"}," Detect Text "),o("div",null,[o("button",{type:"button",class:"relative rounded-lg p-1.5 text-secondary-400 hover:bg-secondary-50 hover:text-secondary-700","aria-label":t.$t("Copy to clipboard"),title:t.$t("Copy"),tabindex:"0",onClick:e[4]||(e[4]=(...n)=>r.handleCopy&&r.handleCopy(...n)),onKeydown:[e[5]||(e[5]=f((...n)=>r.handleCopy&&r.handleCopy(...n),["enter"])),e[6]||(e[6]=f(_((...n)=>r.handleCopy&&r.handleCopy(...n),["prevent"]),["space"]))]},[s.copySuccess?(a(),l("span",oe,d(t.$t("Copied!")),1)):x("",!0),e[13]||(e[13]=o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-6 w-6"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z"})],-1))],40,te),o("button",{type:"button",class:"relative rounded-lg p-1.5 text-secondary-400 hover:bg-secondary-50 hover:text-secondary-700","aria-label":t.$t("Download"),title:t.$t("Download"),tabindex:"0",onClick:e[7]||(e[7]=(...n)=>r.handleDownload&&r.handleDownload(...n)),onKeydown:[e[8]||(e[8]=f((...n)=>r.handleDownload&&r.handleDownload(...n),["enter"])),e[9]||(e[9]=f(_((...n)=>r.handleDownload&&r.handleDownload(...n),["prevent"]),["space"]))]},[...e[14]||(e[14]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-6 w-6"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"})],-1)])],40,se)])])])):(a(),l("div",re,"Humanized text will appear here..."))]),s.RatelimiteMsg?(a(),l("div",ne)):x("",!0),s.RatelimiteMsg?(a(),l("div",{key:1,onKeyup:e[11]||(e[11]=f(n=>s.RatelimiteMsg=!s.RatelimiteMsg,["esc"])),class:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-0"},[o("div",ie,[o("div",le,[o("div",ae,[e[15]||(e[15]=o("div",{class:"mx-auto mb-4 flex justify-center text-yellow-400"},[o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
2currentColor",class:"size-16"},[o("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])],-1)),o("div",null,[o("h3",de,d(t.$t("Daily Limit Reached")),1),o("div",ce,d(s.RatelimiteMsg),1)])]),o("div",ue,[o("button",{type:"button",onClick:e[10]||(e[10]=n=>s.RatelimiteMsg=!s.RatelimiteMsg),class:"flex-1 rounded-lg border border-secondary-300 bg-white px-4 py-2 text-center text-sm font-medium text-secondary-700 shadow-sm transition-all hover:bg-secondary-100 focus:ring focus:ring-secondary-100 disabled:cursor-not-allowed disabled:border-secondary-100 disabled:bg-secondary-50 disabled:text-secondary-400"},d(t.$t("Cancel")),1),m(p,{to:t.localePath("/pricing"),class:"flex-1 rounded-lg border border-primary-500 bg-primary-500 px-4 py-2 text-center text-sm font-medium capitalize text-white shadow-sm transition-all hover:border-primary-700 hover:bg-primary-700 focus:ring focus:ring-primary-200 disabled:cursor-not-allowed disabled:border-primary-300 disabled:bg-primary-300"},{default:b(()=>[w(d(t.$t("upgrade now")),1)]),_:1},8,["to"])])])])],32)):x("",!0),s.errorMsg?(a(),l("div",me,[o("div",pe,[e[17]||(e[17]=o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"h-6 w-6 text-red-400"},[o("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})],-1)),o("p",he,d(s.errorMsg),1),o("button",{onClick:e[12]||(e[12]=n=>s.errorMsg=!s.errorMsg)},[...e[16]||(e[16]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-6 w-6"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])])])):x("",!0)]),o("div",xe,[t.isPro?x("",!0):(a(),l("div",fe,[e[18]||(e[18]=w(" Limit of 5 AI Humanizations per day, ",-1)),m(p,{to:t.localePath("/pricing"),class:"inline text-primary-400"},{default:b(()=>[w(d(t.$t("Upgrade for more")),1)]),_:1},8,["to"])])),m(h,{text:t.$t("seo.ai-humanizer.title")},null,8,["text"])])])}const ye=v(I,[["render",ge]]),we=D(()=>H(()=>import("./DfcFEpof.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>t.default||t)),_e={setup(){P(t=>({title:t.$t("seo.ai-humanizer.title"),meta:[{key:"description",name:"description",content:t.$t("seo.ai-humanizer.description")}]})),E()},data(){return{prefilledText:""}},mounted(){this.prefillFromLatestTranslation()},watch:{"$route.query.from":{immediate:!1,handler(){this.prefillFromLatestTranslation()}}},methods:{prefillFromLatestTranslation(){const t=(this._.provides[S]||this.$route).query.from;if(t==="continue-flow"){try{const e=this.getLocalStorage("openl-latest-translation");if(!e){this.prefilledText="";return}const i=JSON.parse(e);i?.text&&(this.prefilledText=i.text)}catch(e){console.error("Failed to load cached translation for AI Humanizer",e),this.prefilledText=""}return}if(t==="ai-detector"){try{const e=this.getLocalStorage("openl-ai-detector-text");if(!e){this.prefilledText="";return}const i=JSON.parse(e);i?.text&&(this.prefilledText=i.text)}catch(e){console.error("Failed to load cached detector text for AI Humanizer",e),this.prefilledText=""}return}this.prefilledText=""}}},be={class:"min-h-[calc(100vh-200px)]",id:"main",ref:"main"},ve={class:"bg-slate-50 py-10"},Te={class:"mx-auto max-w-[1200px] px-4"},ke={class:"mx-auto max-w-[1200px] px-4"},Ce={class:"mt-28 text-center text-3xl font-medium text-secondary-600"},Me={class:"mt-8 text-center"},ze={class:"mx-auto max-w-5xl text-balance leading-relaxed text-secondary-600"};function Le(t,e,i,c,s,r){const u=A,p=ye,h=N,n=V,g=$,y=we;return a(),l("div",be,[o("main",ve,[o("div",Te,[m(u,{h1:t.$t("seo.ai-humanizer.h1"),h2:t.$t("seo.ai-humanizer.h2"),class:"!mt-0 mb-4"},null,8,["h1","h2"]),m(p,{"initial-text":s.prefilledText},null,8,["initial-text"])])]),o("div",ke,[o("h2",Ce,d(t.$t("seo.ai-humanizer.introTitle")),1),o("div",Me,[o("div",ze,d(t.$t("seo.ai-humanizer.introDesc")),1
2)])]),m(h,{baseKey:"seo.ai-humanizer.steps"}),m(n),m(g),m(y,{tag:["humanizer","ai writing"]})],512)}const Oe=v(_e,[["render",Le]]);export{Oe as default};

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.