PageSourceSearch

https://detectify.ai/_next/static/chunks/app/page-8fd022b321641301.js

js detectify.ai collected 2026-10-05 15:32:30 UTC 34,178 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{582:function(e,t,s){Promise.resolve().then(s.bind(s,4729)),Promise.resolve().then(s.bind(s,3517)),Promise.resolve().then(s.bind(s,5503)),Promise.resolve().then(s.bind(s,9066)),Promise.resolve().then(s.bind(s,9065)),Promise.resolve().then(s.bind(s,6314)),Promise.resolve().then(s.bind(s,8963)),Promise.resolve().then(s.t.bind(s,5878,23)),Promise.resolve().then(s.bind(s,7261)),Promise.resolve().then(s.t.bind(s,2648,23))},5669:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(7437);function l(e){let{name:t,onClick:s}=e;return(0,a.jsx)("button",{onClick:s,className:"bg-dark hover:bg-light-grey hover:text-dark text-white rounded-[24px] px-6 py-2.5",children:t})}},4729:function(e,t,s){"use strict";s.d(t,{default:function(){return i}});var a=s(7437),l=s(2265);function i(){let[e,t]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=()=>{window.scrollY>300?t(!0):t(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,a.jsx)("button",{type:"button",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:"bg-light-grey fixed bottom-8 right-8 p-3 rounded-full z-50 hover:bg-acid-green transition-opacity duration-300 ".concat(e?"opacity-100":"opacity-0"),"aria-label":"Scroll to top",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",strokeWidth:3,stroke:"black",className:"size-6",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})})})}},3517:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return l}});var a=s(7437);function l(e){let{name:t,disabled:s=!1,className:l,...i}=e;return(0,a.jsx)("button",{className:"".concat(l," ").concat(s?"bg-white-grey text-[#343232]":"bg-acid-green hover:bg-dark hover:text-white text-dark"," rounded-[100px] py-2.5"),disabled:s,...i,children:t})}},9821:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var a=s(7437),l=s(5587);function i(){return(0,a.jsx)("div",{className:"overflow-hidden flex justify-center",children:(0,a.jsxs)("svg",{className:"w-12 h-12 text-dark-grey animate-spin",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white"})]})})}function n(e){let{open:t}=e;return(0,a.jsxs)(l.Vq,{open:t,onClose:()=>{},className:"relative z-50",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-30 backdrop-blur-sm z-10"}),(0,a.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center z-50",children:(0,a.jsxs)(l.EM,{className:"max-w-lg space-y-4 shadow-md border-white-grey rounded-[24px] bg-white p-6",children:[(0,a.jsx)(l.$N,{className:"font-bold",children:"Processing..."}),(0,a.jsx)(i,{})]})})]})}},5503:function(e,t,s){"use strict";s.d(t,{F:function(){return o},default:function(){return d}});var a=s(7437),l=s(5669),i=s(3145),n=s(9467),r=s(9376);let o=[{title:"AI Detection Tools Vs Traditional Plagiarism Detection Tools",icon:"articles/ai-vs-traditional.svg",link:"/articles/ai-detection-tools-vs-traditional-plagiarism-detection-tools"},{title:"How To Improve Writing Skills Using AI Feedback",icon:"articles/detect-ai.svg",link:"/articles/how-to-improve-writing-skills-using-ai-feedback"},{title:"How AI Writing Tools Work",icon:"articles/writing-tools.svg",link:"/articles/how-ai-writing-tools-work"},{title:"How To Detect AI-Generated Images",icon:"articles/detect-ai.svg",link:"/articles/how-to-detect-ai-generated-images"}],c={containScroll:!1};function d(){let[e]=(0,n.Z)(c),t=(0,r.useRouter)();return(0,a.jsxs)("div",{className:"mb-20",children:[(0,a.jsx)("h2",{className:"text-center md:text-right mb-12 md:text-display-medium lg:text-display-large",children:"Learn the insides of AI detection for detecting AI text and AI images"}),(0,a.jsx)("section",{className:"embla md:hidden",children:(0,a.jsx)("div",{className:"embla__viewport",ref:e,children:(0,a.jsx)("div",{className:"embla__container",children:o.map((e,t)=>(0,a.jsx)("div",{className:"embla__slide",children:(0,a.jsxs)("div",{className:"bg-white h-full rounded-[24px] py-8 px-7 flex flex-col items-center gap-4 justify-between",children:[(0,a.jsx)(i.default,{width:0,height:0,alt:"",src:e.icon,className:"w-56"}),(0,a.jsx)("p",{className:"text-center font-bold",children:e.title}),(0,a.jsx)(l.Z,{name:"Read"})]},t)},t))})})}),(0,a.jsx)("div",{className:"hidden md:visible md:grid md:grid-cols-4 gap-4 mb-44",children:o.map((e,s)=>(0,a.jsxs)("div",{className:"bg-white rounded-[24px] py-8 px-7 flex flex-col items-center gap-4 justify-between",children:[(0,a.jsx)(i.default,{width:0,height:0,alt:"",src:e.icon,className:"w-56"}),(0,a.jsx)("p",{className:"text-center font-bold",children:e.title}),(0,a.jsx)(l.Z,{name:"Read",onClick:()=>{t.push(e.link)}})]},s))})]})}},9066:function(e,t,s){"use strict";let a;s.d(t,{default:function(){return $}});var l=s(7437),i=s(2265),n=s(6678),r=s(5926),o=s(3145);let c=e=>{let{onButtonClick:t}=e;return(0,l.jsxs)("div",{className:"my-4 flex flex-col md:flex-row gap-2 w-full md:w-fit",children:[(0,l.jsxs)("button",{className:"border border-light-grey rounded-[100px] p-2 flex flex-row gap-4 md:gap-1 items-center hover:bg-light-grey justify-center",onClick:()=>{t("facebook")},children:[(0,l.jsx)(o.default,{alt:"",src:"/FacebookIcon.svg",height:0,width:0,className:"w-5"}),"Share to Facebook"]}),(0,l.jsxs)("button",{className:"border border-light-grey rounded-[100px] p-2 flex flex-row gap-4 md:gap-1 items-center hover:bg-light-grey justify-center",onClick:()=>{t("twitter")},children:[(0,l.jsx)(o.default,{alt:"",src:"/TwitterIcon.svg",height:0,width:0,className:"w-5"}),"Share to X"]})]})};function d(e){let{results:t,disabled:s=!1,onShareClick:a}=e,[o,d]=(0,i.useState)(0),x=(0,i.useRef)(),h=t.score?t.score:0;(0,i.useEffect)(()=>{let e=Date.now(),t=()=>{let s=Math.min((Date.now()-e)/500,1);d(Math.round(s*h)),s<1&&(x.current=requestAnimationFrame(t))};return x.current=requestAnimationFrame(t),()=>{x.current&&cancelAnimationFrame(x.current)}},[h,500]);let m=o/100*100;return(0,l.jsxs)("div",{className:"flex justify-center items-center",children:[(0,l.jsx)(r.u,{show:!!t.cta,children:(0,l.jsx)("div",{className:"absolute z-10 transition duration-300 ease-in data-[closed]:opacity-0",children:(0,l.jsx)(n.Z,{})})}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center ".concat((s||t.cta)&&"blur-sm"),children:[(0,l.jsxs)("div",{className:"text-sm font-semibold mt-4",children:["Results: ",(0,l.jsx)("span",{className:"".concat(t.color),children:t.message})]}),(0,l.jsxs)("div",{className:"relative aspect-square -mt-10 md:-mt-5",children:[(0,l.jsx)("svg",{className:"w-full h-full",viewBox:"0 0 100 50",children:(0,l.jsx)("path",{d:"M 5 50 A 45 45 0 1 1 95 50",fill:"none",stroke:"#e5e7eb",strokeWidth:"10",strokeLinecap:"round"})}),(0,l.jsxs)("svg",{className:"absolute top-0 left-0 w-full h-full",viewBox:"0 0 100 50",children:[(0,l.jsx)("path",{d:"M 5 50 A 45 45 0 1 1 95 50",fill:"none",stroke:"url
1(#gradient)",strokeWidth:"10",strokeDasharray:"141.37",strokeDashoffset:141.37*(1-m/100),strokeLinecap:"round"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,l.jsx)("stop",{offset:"0%",stopColor:"#22c55e"}),(0,l.jsx)("stop",{offset:"50%",stopColor:"#eab308"}),(0,l.jsx)("stop",{offset:"100%",stopColor:"#ef4444"})]})})]}),(0,l.jsx)("svg",{className:"absolute top-0 left-0 w-full h-full",viewBox:"0 0 100 50",children:(0,l.jsx)("path",{d:"M 46 50 L 47 50 L 50 5 Z",fill:"grey",transform:"rotate(".concat(m/100*180-90,", 50, 50)")})}),(0,l.jsxs)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 translate-y-28 text-center",children:[(0,l.jsx)("div",{className:"text-3xl font-bold ".concat(t.color),children:h.toFixed(2)}),(0,l.jsx)("div",{className:"text-sm text-gray-500",children:"Score"})]})]}),(0,l.jsx)("div",{className:"h-6 lg:h-0"}),t.score?(0,l.jsx)(c,{onButtonClick:a}):(0,l.jsx)(l.Fragment,{})]})]})}function x(e){let{name:t,iconSource:s,onClick:a,index:i,openTab:n}=e;return(0,l.jsxs)("button",{onClick:a,className:"".concat(i===n?"bg-acid-green":"bg-white-grey"," text-buttons w-60 h-11 text-dark rounded-[100px] px-[24px] py-[10px] flex flex-row items-center justify-center gap-2 my-1.5 mx-1.5"),children:[(0,l.jsx)(o.default,{className:"w-4 h-4",height:0,width:0,alt:"Detectify",src:s}),t]})}function h(e){let{name:t,disabled:s=!1,iconSource:a,onClick:i=()=>{}}=e;return(0,l.jsxs)("button",{onClick:i,disabled:s,className:"text-dark disabled:text-light-grey hover:bg-light-grey rounded-[100px] px-6 py-2.5 flex flex-row items-center gap-2",children:[(0,l.jsx)(o.default,{height:0,width:0,className:"w-4 h-4",alt:"Detectify",src:a}),t]})}var m=s(3517);function u(e){let{setResults:t}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"bg-white col-span-3 rounded-[24px] p-6",children:[(0,l.jsxs)("div",{className:"h-72 mb-6 rounded-[24px] border-white-grey border-4 border-dashed border-spacing-4 flex flex-col justify-center items-center",children:[(0,l.jsx)(o.default,{className:"h-16 w-16",height:0,width:0,alt:"Detectify",src:"Timer.svg"}),(0,l.jsx)("p",{className:"text-headline-small",children:"Coming soon..."})]}),(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("p",{className:"text-light-grey text-body-large",children:"0/1 audio"}),(0,l.jsxs)("div",{className:"flex flex-row",children:[(0,l.jsx)(h,{name:"Delete Audio",iconSource:"Delete.svg",disabled:!0}),(0,l.jsx)(m.default,{disabled:!0,name:"Analyze",className:"px-6"})]})]})]})})}function g(e){let{name:t,iconSource:s}=e;return(0,l.jsxs)("button",{className:"w-72 md:w-max hover:bg-light-grey bg-white-grey text-buttons text-dark rounded-[100px] px-4 lg:px-6 py-1 lg:py-2.5 flex flex-row items-center gap-2",children:[(0,l.jsx)(o.default,{className:"w-4 h-4",height:0,width:0,alt:"Detectify",src:s}),t]})}var f=s(9821),p=s(6197),j=s(3605),w=s(9829),v=s(2871),y=s(1994);let b=[{id:1,name:"English",value:"en",icon:"languages/united-kingdom.svg"},{id:2,name:"German",value:"de",icon:"languages/germany.svg"},{id:3,name:"French",value:"fr",icon:"languages/france.svg"},{id:4,name:"Spanish",value:"es",icon:"languages/spain.svg"}];function N(e){let{onSelectChange:t}=e,[s,a]=(0,i.useState)(b[0]);return(0,l.jsx)("div",{children:(0,l.jsxs)(j.Ri,{value:s,onChange:e=>{a(e),t(e.value)},children:[(0,l.jsxs)(j.Y4,{className:(0,y.Z)("relative block w-72 md:w-40 rounded-[100px] bg-white-grey py-1.5 pl-2 text-dark","focus:outline-none data-[focus]:outline-2 data-[focus]:-outline-offset-2 data-[focus]:outline-dark"),children:[(0,l.jsxs)("div",{className:"ml-4 md:ml-0 flex flex-row justify-start items-center gap-4",children:[(0,l.jsx)(o.default,{src:s.icon,width:0,height:0,alt:"",className:"size-4 fill-dark group-data-[selected]:visible"}),s.name]}),(0,l.jsx)(w.Z,{className:"group pointer-events-none absolute top-2.5 right-2.5 size-4 fill-dark","aria-hidden":"true"})]}),(0,l.jsx)(j.O_,{anchor:"bottom",transition:!0,className:(0,y.Z)("mt-1 w-72 md:w-40 rounded-[24px] border border-light-grey bg-white-grey p-1 focus:outline-none","transition duration-100 ease-in data-[leave]:data-[closed]:opacity-0"),children:b.map(e=>(0,l.jsxs)(j.wt,{value:e,className:"group flex cursor-pointer items-center gap-2 rounded-[24px] py-1.5 px-3 select-none data-[focus]:bg-white",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-1",children:[(0,l.jsx)(v.Z,{className:"invisible size-4 fill-dark group-data-[selected]:visible"}),(0,l.jsx)(o.default,{src:e.icon,width:0,height:0,alt:"",className:"size-4 fill-dark group-data-[selected]:visible"})]}),(0,l.jsx)("div",{className:"text-dark",children:e.name})]},e.name))})]})})}var k=s(164),C=s(4330),I=()=>{let e=async(e,t)=>{let s=await fetch("/api/detection/public/".concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await s.json();if(!s.ok)throw Error(a.message);return a};return{callPublicTextDetection:async(t,s)=>await e("text",{text:t,language:s}),callPublicImageDetection:async t=>await e("image",{link:t})}},A=s(3335);let S=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,A.m6)((0,y.Z)(t))},D=e=>e?e.trim().split(/\s+/).length:0;function T(e){let{setResults:t,setPleaseSignUpModalOpen:s}=e,[a,n]=(0,i.useState)(""),[r,o]=(0,i.useState)(0),[c,d]=(0,i.useState)("en"),[x,u]=(0,i.useState)(!1),[j,w]=(0,i.useState)(!1),{callApi:v}=(0,k.Z)(),{isAuth:y}=(0,C.Z)(),{callPublicTextDetection:b}=I(),A=a.length,T=A>=300,P=r>1e3;(0,i.useEffect)(()=>
1{o(D(a))},[a]);let Z=async()=>{if(D(a)>1e3)return t({score:0,message:(0,p.mM)(0),color:(0,p.CS)(0),cta:!0,data:a});try{w(!0);let{error:e,description:s,score:l}=y?await v("detection/text",{text:a,language:c},"POST"):await b(a,c);if(e)throw Error(s);let i=Math.abs(100-l);t({score:i,message:(0,p.mM)(i),color:(0,p.CS)(i),data:a})}catch(e){t({score:0,message:"Error",color:"text-[#ef053f]",data:a}),"please create an account to keep using the app"===e.message?s(!0):(0,p.Jc)(e.message||"Sorry, there was an error \uD83D\uDE14")}finally{w(!1)}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.Z,{open:j}),(0,l.jsxs)("div",{className:"bg-white lg:col-span-3 rounded-[24px] p-3 lg:p-6",children:[(0,l.jsxs)("div",{className:"flex flex-col md:flex-row pb-2 items-center justify-between gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 md:gap-4",children:[(0,l.jsx)(g,{iconSource:"FolderText.svg",name:"Try Sample Text"}),(0,l.jsx)(g,{iconSource:"PasteText.svg",name:"Paste Your Text"}),(0,l.jsx)(g,{iconSource:"UploadText.svg",name:"Upload Your Text"})]}),(0,l.jsx)(N,{onSelectChange:d})]}),(0,l.jsx)("hr",{className:"text-light-grey"}),(0,l.jsx)("textarea",{className:"resize-none h-56 mt-8 w-full",id:"a",name:"a",placeholder:"Add text to get started...",onChange:e=>{let t=e.target.value;n(t),u(!!t)},value:a}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[(0,l.jsxs)("p",{className:S("text-body-large",P||x&&!T?"text-red":"text-light-grey"),children:[r,"/1000 words, ",A," characters (minimum"," ",300," characters)"]}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row gap-2",children:[(0,l.jsx)(h,{name:"Delete Text",onClick:()=>{n(""),u(!1),t({score:0,message:(0,p.mM)(0),color:(0,p.CS)(0),cta:!1})},iconSource:"Delete.svg"}),(0,l.jsx)(m.default,{className:"px-6",name:"Analyze",onClick:Z,disabled:!T||P})]})]})]})]})}var P=s(5669),Z=s(4971),z=s(62);let L=(0,s(9558).Z)();function E(){return a||(a=(0,z.cF)(L)),a}var M=s(9360);let q=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.default,{width:0,height:0,src:"/UploadImage.svg",className:"w-14",alt:""}),(0,l.jsx)("p",{className:"text-light-grey lg:text-headline-small md:text-headline-large hidden md:block",children:"Drag & Drop or Upload Your Image"}),(0,l.jsx)("p",{className:"block md:hidden text-light-grey text-headline-small",children:"Upload Your Image"})]});function F(e){let{setLink:t}=e,[s,a]=(0,i.useState)(0),n=E(),r=e=>{if(!e){(0,p.Jc)("Please select an image to upload");return}let s=e.name.split(".").pop(),l="".concat((0,M.Z)(),".").concat(s),i=(0,z.iH)(n,"images/".concat(l)),r=(0,z.B0)(i,e);r.on("state_changed",e=>{a(e.bytesTransferred/e.totalBytes*100)},e=>{console.error("Upload failed:",e),(0,p.Jc)("Image upload failed, please try again.")},()=>{(0,z.Jt)(r.snapshot.ref).then(e=>{t(e),a(0),(0,p.Qm)("Upload successful!")})})};return(0,l.jsx)("div",{className:"relative w-full h-full flex flex-col items-center gap-4 justify-center",children:s>0?(0,l.jsx)("div",{className:"my-4",children:(0,l.jsxs)("p",{children:["Upload Progress: ",Math.round(s),"%"]})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Z.I,{type:"file",accept:"image/*",onChange:e=>{e.target.files&&e.target.files[0]&&r(e.target.files[0])},className:"absolute h-full w-full opacity-0 hover:cursor-pointer"}),(0,l.jsx)(q,{})]})})}function U(e){let{setResults:t,setPleaseSignUpModalOpen:s}=e,[a,n]=(0,i.useState)(""),[r,c]=(0,i.useState)(""),[d,x]=(0,i.useState)(!0),[u,g]=(0,i.useState)(!1),{callApi:j}=(0,k.Z)(),{isAuth:w}=(0,C.Z)(),{callPublicImageDetection:v}=I(),y=async()=>{try{g(!0);let{error:e,description:s,score:a}=w?await j("detection/image",{url:r},"POST"):await v(r);if(e)throw Error(s);let l=Math.abs(100-a);t({score:l,message:(0,p.mM)(l),color:(0,p.CS)(l),data:r})}catch(e){t({score:0,message:"Error",color:"text-[#ef053f]",link:""}),"please create an account to keep using the app"===e.message?s(!0):(0,p.Jc)(e.message||"Sorry, there was an error \uD83D\uDE14")}finally{g(!1)}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.Z,{open:u}),(0,l.jsxs)("div",{className:"bg-white col-span-3 rounded-[24px] p-6",children:[(0,l.jsxs)("div",{className:"flex flex-row pb-2 items-center justify-between gap-2",children:[(0,l.jsxs)("div",{className:"flex px-2 h-11 flex-row gap-4 w-full items-center border-2 border-white-grey rounded-[100px]",children:[(0,l.jsx)(o.default,{className:"size-3",src:"Link.svg",width:0,height:0,alt:"Link Icon"}),(0,l.jsx)(Z.I,{className:"w-full h-full placeholder:text-buttons",type:"text",onCh
1ange:e=>{n(e.target.value)},placeholder:"Paste link to add an image"})]}),(0,l.jsx)(P.Z,{name:"Insert",onClick:()=>{(0,p.jv)(a)?(c(a),x(!0),g(!0)):(0,p.Jc)("Invalid URL")}})]}),(0,l.jsx)("hr",{className:"text-light-grey mb-3"}),(0,l.jsx)("div",{className:S("h-60 w-full border-2 border-light-grey border-dashed rounded-[16px] mb-2 flex justify-center",r?"bg-light-grey":"bg-white"),children:r?(0,l.jsx)("img",{className:"h-full rounded-[16px]",src:r,onLoad:e=>{let t=e.currentTarget;x(t.naturalWidth>=256&&t.naturalHeight>=256),g(!1)},onError:()=>{g(!1)},alt:"Image"}):(0,l.jsx)(F,{setLink:e=>{c(e)}})}),(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("p",{className:S("text-body-large",d?"text-light-grey":"text-red"),children:[r?"1":"0","/1 image (minimum size:"," ",256,"x",256,")"]}),(0,l.jsxs)("div",{className:"flex flex-row gap-4",children:[(0,l.jsx)(h,{name:"Delete Image",onClick:()=>{c(""),x(!0)},iconSource:"Delete.svg"}),(0,l.jsx)(m.default,{className:"px-6",name:"Analyze",onClick:y,disabled:!d||!r})]})]})]})]})}var R=s(3732);let W=e=>{let{text:t}=e;return(0,l.jsx)("div",{className:"bg-white rounded-[16px] p-6 h-[364px] overflow-hidden",children:(0,l.jsx)("p",{className:"text-ellipsis overflow-hidden",children:t})})},_=e=>{let{url:t}=e;return(0,l.jsx)("div",{className:"bg-white rounded-[16px] h-[364px] flex items-center justify-center overflow-hidden",children:(0,l.jsx)("img",{src:"/proxy/images?url=".concat(encodeURIComponent(t)),className:"object-contain rounded-[16px]",alt:"",crossOrigin:"anonymous"})})},O=e=>{let{score:t}=e,s=(t||0)/100*100;return(0,l.jsx)("div",{className:"flex justify-center items-center",children:(0,l.jsx)("div",{className:"flex flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"relative aspect-square -mt-10 md:-mt-5",children:[(0,l.jsx)("svg",{className:"w-full h-full",viewBox:"0 0 100 50",children:(0,l.jsx)("path",{d:"M 5 50 A 45 45 0 1 1 95 50",fill:"none",stroke:"#e5e7eb",strokeWidth:"10",strokeLinecap:"round"})}),(0,l.jsxs)("svg",{className:"absolute top-0 left-0 w-full h-full",viewBox:"0 0 100 50",children:[(0,l.jsx)("path",{d:"M 5 50 A 45 45 0 1 1 95 50",fill:"none",stroke:"url(#gradient)",strokeWidth:"10",strokeDasharray:"141.37",strokeDashoffset:141.37*(1-s/100),strokeLinecap:"round"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,l.jsx)("stop",{offset:"0%",stopColor:"#22c55e"}),(0,l.jsx)("stop",{offset:"50%",stopColor:"#eab308"}),(0,l.jsx)("stop",{offset:"100%",stopColor:"#ef4444"})]})})]}),(0,l.jsx)("svg",{className:"absolute top-0 left-0 w-full h-full",viewBox:"0 0 100 50",children:(0,l.jsx)("path",{d:"M 46 50 L 47 50 L 50 5 Z",fill:"grey",transform:"rotate(".concat(s/100*180-90,", 50, 50)")})})]})})})},B=(0,i.forwardRef)(function(e,t){let{results:s,type:a}=e;return(0,l.jsxs)("div",{ref:t,className:"w-[1200px] h-[640px] bg-light-grey p-24 grid grid-cols-2 gap-6 relative",children:[(0,l.jsx)("div",{className:"absolute bottom-10 right-64 font-normal text-headline-medium ",children:"detectify.ai"}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)("div",{className:"max-h-fit",children:"text"===a?(0,l.jsx)(W,{text:s.data}):(0,l.jsx)(_,{url:s.data})}),(0,l.jsx)("div",{className:"bg-white rounded-[16px] p-2 flex justify-center",children:(0,l.jsx)(o.default,{alt:"",src:"/Logo.svg",height:0,width:0,className:"w-52"})})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsxs)("div",{className:"bg-white rounded-[16px] p-6 text-headline-medium text-center",children:["Results: ",(0,l.jsx)("span",{className:"".concat(s.color),children:s.message})]}),(0,l.jsx)("div",{className:"bg-white rounded-[16px] p-6 h-full",children:(0,l.jsx)(O,{score:s.score})})]})]})});var H=s(7562),J=s(5587),Y=s(7648);function G(e){let{open:t,setIsOpen:s}=e;return(0,l.jsxs)(J.Vq,{open:t,onClose:()=>s(!1),className:"relative z-50",children:[(0,l.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 backdrop-blur-sm z-10"}),(0,l.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4 z-50",children:(0,l.jsxs)(J.EM,{className:"max-w-lg space-y-4 shadow-md rounded-[24px]  bg-white px-2 md:px-20 py-6 md:py-10 flex flex-col items-center",children:[(0,l.jsx)(J.$N,{
1className:"font-bold text-center text-title-large md:text-display-medium",children:"Please create an account to keep using the app"}),(0,l.jsxs)("div",{className:"flex justify-between gap-2 md:gap-4",children:[(0,l.jsx)("button",{onClick:()=>s(!1),className:"bg-light-grey px-8 md:px-12 rounded-[100px] hover:bg-dark-grey hover:text-white",children:"Cancel"}),(0,l.jsx)(Y.default,{href:"/auth/sign-up",children:(0,l.jsx)("button",{className:"bg-acid-green text-black rounded-[100px] px-8 md:px-14 py-2 hover:bg-light-grey hover:text-dark",children:"Sign Up"})})]})]})})]})}let Q=[{name:"Text",iconSource:"Text.svg"},{name:"Image",iconSource:"Image.svg"},{name:"Audio",iconSource:"Audio.svg"}],V={0:(e,t)=>(0,l.jsx)(T,{setResults:e,setPleaseSignUpModalOpen:t}),1:(e,t)=>(0,l.jsx)(U,{setResults:e,setPleaseSignUpModalOpen:t}),2:e=>(0,l.jsx)(u,{setResults:e})};function $(){let e=(0,i.useRef)(null),[t,s]=(0,i.useState)(!1),[a,n]=(0,i.useState)(!1),[r,o]=(0,i.useState)(0),[c,h]=(0,i.useState)({message:"None",color:"text-[#29E7CD]",score:0,data:""}),m=E(),u=async t=>{try{if(n(!0),e.current){let s=await R.YM(e.current,{cacheBust:!1,includeQueryParams:!0}),a="".concat((0,M.Z)(),".png"),l=(0,z.iH)(m,"images/share/".concat(a)),i=await (0,z.sf)(l,s,"data_url"),n=await (0,z.Jt)(i.ref),r=await fetch("/api/share/",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({link:n})});if(!r.ok)throw Error();let{shareId:o}=await r.json(),c="".concat(H.Z.host.sslProtocol,"://").concat(H.Z.host.frontend_url,"/share?shareId=").concat(o),d="";d="twitter"===t?"https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(c),"&text=").concat(encodeURIComponent("Check out my results on Detectify!")):"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(c)),window.open(d,"_blank")}}catch(e){console.log(e)}finally{n(!1)}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.Z,{open:a}),(0,l.jsx)(G,{open:t,setIsOpen:s}),(0,l.jsxs)("div",{className:"flex flex-col pt-12 gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between",children:[(0,l.jsxs)("h1",{className:"lg:pt-20 text-display-medium md:text-display-large text-center md:text-left",children:["The leading AI detector and ",(0,l.jsx)("br",{})," checker tool for text and images"]}),(0,l.jsx)("div",{className:"bg-white flex flex-row h-14 mt-10 lg:mt-36 rounded-[100px]",children:Q.map((e,t)=>(0,l.jsx)(x,{name:e.name,iconSource:e.iconSource,onClick:()=>{o(t)},openTab:r,index:t},t))})]}),(0,l.jsxs)("div",{className:"lg:grid lg:grid-cols-4 gap-4",children:[V[r](h,s),(0,l.jsx)("div",{className:"bg-white rounded-[24px] mt-6 lg:mt-0",children:(0,l.jsx)(d,{results:c,disabled:2===r,onShareClick:u})})]}),(0,l.jsx)("div",{style:{position:"absolute",left:"-9999px",top:"-9999px"},children:(0,l.jsx)(B,{ref:e,results:c,type:1===r?"image":"text"})})]})]})}},9065:function(e,t,s){"use strict";s.d(t,{default:function(){return x}});var a=s(7437),l=s(2265);function i(e){let{isOpen:t}=e;return(0,a.jsx)("div",{className:"".concat(t?"bg-dark":"bg-white"," rounded-[24px] hover:bg-dark group"),children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:0,height:0,className:"".concat(t?"rotate-90":""," \n          group-hover:rotate-45 transform origin-center transition-transform \n          duration-300 md:w-11 md:h-11 w-8 h-8 -translate-y-2 md:-translate-y-0"),children:(0,a.jsx)("path",{className:"group-hover:stroke-acid-green stroke-dark ".concat(t?"stroke-white":""),strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"m15.333 28.667 13.334-13.334m0 0H18m10.667 0V26"})})})}function n(e){let{onClick:t,isOpen:s}=e;return(0,a.jsx)("button",{onClick:t,children:(0,a.jsx)(i,{isOpen:s})})}var r=s(3145),o=s(5926);let c=[{q:"What is Detectify AI?",a:"Detectify AI is an advanced detection tool that uses artificial intelligence to analyse text, images, and audio to identify AI-generated content and ensure authenticity."},{q:"How does Detectify AI detect AI-generated content?",a:"Detectify AI uses sophisticated algorithms and state-of-the-art neural networks trained on large datasets to recognize patterns and anomalies that indicate AI-generated content."},{q:"Is Detectify AI free to Use?",a:"Yes, Detectify AI offers a free version with limited features. However, for only $4.99 you can upgrade to the premium version, giving more opportunities for checks, advanced capabilities and comprehensive analysis."},{q:"How can Detectify AI benefit my organisation?",a:"Detectify AI helps ensure the authenticity of your content, protects your organisation's reputation, and guards against the misuse of AI-generated content in areas where originality and credibility are crucial."},{q:"Is Detectify Secure?",a:"Yes, Detectify AI is secured. We use advanced encryption and secure protocols to ensure that your data is protected and handled with utmost confidentiality."},{q:"Can AI trick Detectify AI?",a:"While AI-generated content is becoming increasingly sophisticated, Detectify AI continuously updates its algorithms to 
1stay ahead of new techniques. We are the best software for identifying AI-generated content."},{q:"Are AI tools accurate?",a:"Detectify AI is highly accurate and this is due to our advanced algorithms and continuing update of our datasets. However, no tool is perfect, but we guarantee a 99.98% accuracy everytime."},{q:"Does Google detect AI content for SEO?",a:"Google is constantly improving its algorithms to detect and rank content based on quality. While it doesn't explicitly target AI-generated content, low-quality or manipulated content can negatively impact SEO rankings."},{q:"Can teachers detect if you use AI?",a:"Detectify AI and similar tools can help teachers detect AI-generated content in student work. By analyzing text for patterns and anomalies, these tools can identify potential AI influences."},{q:"What types of content can Detectify AI analyse?",a:"Detectify AI can analyse text, images, and audio. This includes detecting AI-generated text in documents, identifying manipulated images, and uncovering deepfake audio."},{q:"How often is Detectify AI updated?",a:"Detectify AI is regularly updated to mitigate the latest advancements in AI-generated content technology. This ensures that it remains effective against new and emerging AI techniques."}];function d(e){let{content:t,position:s}=e,[i,r]=(0,l.useState)(!1);return(0,a.jsxs)("div",{className:"flex flex-row gap-4 items-center z-20",children:[(0,a.jsx)("div",{className:"bg-white rounded-[100px] w-8 h-8 md:w-14 md:h-14 flex-none",children:(0,a.jsx)("p",{className:"flex justify-center md:mt-4",children:s})}),(0,a.jsxs)("div",{className:"bg-white rounded-[24px] p-6 flex flex-row  grow justify-between pr-5 hover:cursor-pointer",onClick:()=>{r(!i)},children:[(0,a.jsxs)("div",{className:"flex flex-col align-middle",children:[(0,a.jsx)("p",{className:"text-title-small md:text-title-large",children:t.q}),(0,a.jsx)(o.u,{show:i,children:(0,a.jsx)("div",{className:"mt-4 transition duration-300 ease-in data-[closed]:opacity-0",children:(0,a.jsx)("p",{children:t.a})})})]}),(0,a.jsx)(n,{onClick:()=>{r(!i)},isOpen:i})]})]})}function x(){return(0,a.jsxs)("div",{className:"relative mb-40",children:[(0,a.jsx)(r.default,{src:"EllipseRight.svg",width:0,height:0,className:"absolute top-0 md:translate-x-12 translate-x-4 right-0 md:-translate-y-48 md:w-80 w-52",alt:""}),(0,a.jsx)("h2",{className:"mb-12 md:text-display-medium lg:text-display-large text-display-medium lg:text-right md:text-left text-center",children:"Frequently Asked Questions"}),(0,a.jsx)("div",{className:"flex flex-col md:gap-6 gap-2",children:c.map((e,t)=>(0,a.jsx)(d,{content:e,position:t+1},t))})]})}},6314:function(e,t,s){"use strict";s.d(t,{default:function(){return o}});var a=s(7437),l=s(7648),i=s(5503),n=s(3145);let r=[{title:"Detect",url:""},{title:"Pricing",url:""},{title:"Solutions",url:""},{title:"Key Features",url:""},{title:"FAQ",url:""}];function o(){return(0,a.jsxs)("div",{className:"absoulte flex flex-col z-20",children:[(0,a.jsx)(n.default,{src:"/EllipseLeft.svg",width:0,height:0,className:"absolute w-80 z-10 -translate-x-20 -translate-y-64",alt:""}),(0,a.jsxs)("div",{className:"md:pt-16 pt-6 bg-dark flex flex-col lg:flex-row grow z-20 md:px-12 px-6 justify-between pb-16",style:{borderRadius:"24px  24px 0px 0px"},children:[(0,a.jsxs)("div",{className:"z-50",children:[(0,a.jsx)(l.default,{href:"/",children:(0,a.jsx)(n.default,{height:0,width:0,alt:"Detectify",src:"/LogoWhite.svg",className:"w-44 h-9 mb-5"})}),(0,a.jsxs)("p",{className:"text-white text-headline-large mb-5",children:["Guard Against AI-generated ",(0,a.jsx)("br",{})," Content..."]}),(0,a.jsx)("p",{className:"text-white text-body-large",children:"Detectify AI, 2024."})]}),(0,a.jsxs)("div",{className:"flex md:flex-row flex-col md:gap-32 gap-6 md:mt-6 lg:mt-0",children:[(0,a.jsx)("div",{className:"grid grid-cols-3 gap-4 md:hidden mt-6",children:r.map((e,t)=>(0,a.jsx)(l.default,{href:"",className:"text-white text-body-large",children:e.title},t))}),(0,a.jsx)("div",{className:"flex flex-col gap-4 md:mt-0 mt-4",children:i.F.map((e,t)=>(0,a.jsx)(l.default,{href:e.link,target:"_blank",className:"text-white text-body-large",children:e.title},t))}),(0,a.jsx)("div",{className:"md:flex md:flex-col gap-4 hidden md:visible",children:r.map((e,t)=>(0,a.jsx)(l.default,{href:"",className:"text-white text-body-large",children:e.title},t))})]})]}),(0,a.jsxs)("div",{className:"bg-acid-green gap-4 md:px-12 px-6 py-6 justify-between flex md:flex-row flex-col",children:[(0,a.jsx)("p",{className:"text-buttons text-left hidden md:flex ",children:"\xa9 2024 Detectify AI. All rights reserved."}),(0,a.jsxs)("div",{className:"flex flex-row gap-8",children:[(0,a.jsx)(l.default,{href:"/terms-of-service",children:(0,a.jsx)("p",{className:"text-buttons",children:"Terms of Service"})}),(0,a.jsx)(l.default,{href:"/privacy-policy",children:(0,a.jsx)("p",{className:"text-buttons",children:"Privacy Policy"})}),(0,a.jsx)(l.default,{href:"",children:(0,a.jsx)("p",{className:"text-buttons",children:"Cookies"})})]}),(0,a.jsx)("p",{className:"text-buttons text-right md:hidden",children:"\xa9 2024 Detectify AI. All rights reserved."})]})]})}},6678:function(e,t,s){"use strict";s.d(t,{Z:function(){return o},z:function(){return r}});var a=s(7437),l=s(3145),i=s(5669);let n="/Tick.svg",r=[{content:"Analyze 50,000 words",icon:n}
1,{content:"50 images / month",icon:n},{content:"50 audios / month",icon:n}];function o(){return(0,a.jsxs)("div",{className:"bg-acid-green rounded-[24px] p-6 ",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center gap-4 mb-6 justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-4",children:[(0,a.jsx)(l.default,{src:"Premium.svg",width:0,height:0,style:{width:"19px",height:"32px"},alt:""}),(0,a.jsx)("p",{className:"text-headline-large",children:"Premium"})]}),(0,a.jsx)("div",{className:"hidden md:flex lg:hidden",children:(0,a.jsx)(i.Z,{name:"Upgrade: 4.99/month"})})]}),(0,a.jsx)("div",{className:"flex flex-col md:flex-row justify-between lg:flex-col",children:r.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,a.jsx)(l.default,{src:e.icon,width:0,height:0,style:{width:"13px",height:"13px"},alt:""}),e.content]},t))}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"flex md:hidden lg:flex",children:(0,a.jsx)(i.Z,{name:"Upgrade: 4.99/month"})})]})}}},function(e){e.O(0,[676,139,501,996,386,605,609,233,467,88,963,971,117,744],function(){return e(e.s=582)}),_N_E=e.O()}]);

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.