1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9044],{97963:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-readiness-checker",function(){return a(13395)}])},75331:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var s=a(85893),n=a(9008),r=a.n(n);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;let a=e.startsWith("/")?e:"/".concat(e),s=new URLSearchParams;Object.entries(t).forEach(e=>{let[t,a]=e;null!=a&&""!==a&&s.set(t,a)});let n=s.toString();return"".concat("https://www.prism-me.com").concat(a).concat(n?"?".concat(n):"")}function l(e){let{enPath:t,arPath:a,params:n={},defaultLocale:l="en"}=e,c=i(t,n),o=i(a,n),d="ar"===l?o:c;return c||o?(0,s.jsxs)(r(),{children:[c&&(0,s.jsx)("link",{rel:"alternate",href:c,hrefLang:"en"}),o&&(0,s.jsx)("link",{rel:"alternate",href:o,hrefLang:"ar"}),d&&(0,s.jsx)("link",{rel:"alternate",href:d,hrefLang:"x-default"})]}):null}},13395:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return y},default:function(){return j}});var s=a(85893),n=a(67294),r=a(39332),i=a(81251),l=a(66167),c=a(80584),o=a(22888);let d=["Resolving domainâ¦","Checking AI discovery filesâ¦","Scanning structured dataâ¦","Analysing metadataâ¦","Testing page speedâ¦","Checking security signalsâ¦","Compiling your AI Readiness Scoreâ¦"],u={agents_json:"\uD83D\uDD0D",robots_txt:"\uD83D\uDEA6",llms_txt:"\uD83E\uDD16",sitemap_xml:"\uD83D\uDDFAï¸",title_meta_description:"\uD83C\uDFF7ï¸",semantic_html:"\uD83D\uDCC4",image_alt_text:"\uD83D\uDDBCï¸",open_graph_metadata:"\uD83C\uDFF7ï¸",twitter_metadata:"\uD83D\uDC26",json_ld_schema:"\uD83C\uDFD7ï¸",canonical_indexability:"\uD83D\uDD17",heading_structure:"\uD83D\uDCDD"};function m(e){if(!e.trim())return"Please enter your website URL.";let t=e.trim(),a=t.replace(/^https?:\/\//i,"");if(!a||a.startsWith(".")||/^[./]+$/.test(a))return"Please enter a valid website URL.";try{let e=new URL(t.startsWith("http")?t:"https://".concat(t)).hostname;if(!e||/^\.+$/.test(e)||/^[.\-]|[.\-]$/.test(e))return"Please enter a valid website URL.";if(!e.includes("."))return"Please enter a valid domain (e.g. https://example.com).";let a=e.split(".");if(a[a.length-1].length<2)return"Please enter a valid domain (e.g. https://example.com).";if(e.includes("..")||!/^[a-zA-Z0-9.\-]+$/.test(e)||a.some(e=>0===e.length))return"Please enter a valid website URL.";let s=a[a.length-2];if(!s||0===s.length)return"Please enter a valid website URL.";if("localhost"===e||e.endsWith(".local"))return"Please enter a publicly accessible URL.";if(/^\d{1,3}(\.\d{1,3}){3}$/.test(e))return"Please enter a domain URL, not an IP address.";return null}catch(e){return"Please enter a valid URL (e.g. https://example.com)."}}function h(e){return e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?null:"Please enter a valid email address.":"Please enter your email address."}function p(e){return e.startsWith("http")?e:"https://".concat(e)}function g(){let e=(0,r.useRouter)(),t=e.locale||"en",[a,g]=(0,n.useState)(""),[f,x]=(0,n.useState)(""),[v,y]=(0,n.useState)(!1),[j,D]=(0,n.useState)(null),[b,w]=(0,n.useState)(null),[k,N]=(0,n.useState)(null),[S,_]=(0,n.use
1State)(3),[P,C]=(0,n.useState)(!0),[A,I]=(0,n.useState)(""),[R,E]=(0,n.useState)("idle"),[L,F]=(0,n.useState)(0),[U,W]=(0,n.useState)(""),[T,z]=(0,n.useState)(null),[B,M]=(0,n.useState)(0),[Z,$]=(0,n.useState)(null),[G]=(0,n.useState)(!0),[O,Y]=(0,n.useState)(""),[H]=(0,n.useState)(()=>Date.now()),[K,X]=(0,n.useState)("");(0,n.useEffect)(()=>{(async()=>{try{let t=await c.Z.get("/audits/attempts"),a=null==t?void 0:t.data;if(a){var e;_(null!==(e=null==a?void 0:a.remaining)&&void 0!==e?e:0),(null==a?void 0:a.attemptsMessage)&&I(null==a?void 0:a.attemptsMessage)}}catch(e){console.error("Failed to load attempts",e)}finally{C(!1)}})()},[]),(0,n.useEffect)(()=>{(async()=>{try{var e;let a=await c.Z.get("/form-token?lang=".concat(t));Y((null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.formToken)||"")}catch(e){console.error("Failed to load form token",e),Y("")}})()},[t]);let q=e=>{g(e),j&&D(m(e))},J=async()=>{var t,s,n,r,i,l,g;let x=m(a),v=h(f);if(D(x),w(v),x||v)return;E("scanning"),F(0),N(null),z(null);let y=setInterval(()=>{W(e=>{let t=d.indexOf(e),a=d[t+1];return a?(F(Math.round((t+2)/d.length*100)),a):e})},650);W(d[0]),F(Math.round(1/d.length*100));try{let l=Date.now()-H,d=await (0,o.U)("ai_audit_submit"),m=await c.Z.post("/audits/start",{websiteUrl:p(a.trim()),email:f.trim(),formToken:O,timeOnPageMs:l,website:K,recaptchaToken:d});clearInterval(y);let{status:h,data:g}=m;if(![200,201,202].includes(h))throw Error((null==g?void 0:g.message)||"Audit failed. Please try again.");if((null==g?void 0:g.duplicate)===!0){N(g.message||"We recently received your AI audit request. Please try again later."),E("idle"),F(0);return}let x=null==g?void 0:g.attempts;if(x&&_(null!==(t=x.remaining)&&void 0!==t?t:0),(null==g?void 0:g.attemptsMessage)&&I(g.attemptsMessage),(null==x?void 0:x.remaining)<=0&&!(null==g?void 0:g.success)){N("You've used all ".concat(null!==(s=null==x?void 0:x.limit)&&void 0!==s?s:3," free scans today. Please try again tomorrow.")),E("idle"),F(0);return}F(100),W("Done!"),await new Promise(e=>setTimeout(e,400));let v=g.data;M(null!==(n=v.score)&&void 0!==n?n:0),$(null!==(r=v.summary)&&void 0!==r?r:null);let j=(null!==(i=v.checks)&&void 0!==i?i:[]).map(e=>{var t;return{name:e.title,icon:null!==(t=u[e.key])&&void 0!==t?t:"\uD83D\uDD0E",status:"passed"===e.status?"pass":"warning"===e.status?"warn":"fail",message:e.message,recommendation:e.recommendation,points:e.points,maxPoints:e.maxPoints,impact:e.impact}});z(j),sessionStorage.setItem("arc_audit_result",JSON.stringify({...v,websiteUrl:p(a.trim()),email:f.trim(),checks:v.checks})),e.push("/ai-readiness-results")}catch(e){clearInterval(y),N((null===(g=e.response)||void 0===g?void 0:null===(l=g.data)||void 0===l?void 0:l.message)||e.message||"Network error. Please try again."),E("idle"),F(0)}},Q=a.trim()&&f.trim()&&v&&S>0&&!P,V=!P&&S<=0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Z,{}),(0,s.jsxs)("div",{className:"arc-page",style:{paddingBottom:G?72:0},children:[(0,s.jsxs)("div",{className:"arc-hero",children:[(0,s.jsxs)("div",{className:"arc-badge",children:[(0,s.jsx)("span",{className:"arc-badge-dot"}),"Free AI Readiness Scan"]}),(0,s.jsxs)("h1",{className:"arc-h1",children:["Is Your Website ",(0,s.jsx)("span",{className:"accent",children:"AI Ready?"})]}),(0,s.jsx)("p",{className:"arc-sub",children:"Check if AI agents can discover and understand your content."}),(0,s.jsxs)("p",{className:"arc-sub",style:{fontSize:15},children:["We scan for"," ",(0,s.jsx)("strong",{children:"llms.txt, agents.json, Schema.org markup"}),", and more â all the signals AI agents like ChatGPT, Claude, and Perplexity look for."]})]}),(0,s.jsx)("div",{className:"arc-form-wrap",children:(0,s.jsxs)("div",{className:"arc-card",children:["idle"===R&&(0,s.jsxs)(s.Fragment,{children:[k&&(0,s.jsxs)("div",{style:{background:"rgba(255,80,80,0.12)",border:"1px solid rgba(255,80,80,0.35)",borderRadius:10,padding:"10px 14px",marginBottom:14,fontSize:13,color:"#ff6b6b",lineHeight:1.5},children:["â ï¸ ",k]}),(0,s.jsxs)("div",{className:"arc-input-group",children:[(0,s.jsx)("input",{className:"arc-input".concat(j?" arc-input-error":""),type:"url",name:"websiteUrl",placeholder:"Enter your website URL",value:a,onChange:e=>q(e.target.value),onBlur:()=>D(m(a)),onKeyDown:e=>"Enter"===e.key&&Q&&J(),disabled:V}),j&&(0,s.jsx)("p",{className:"arc-field-error",children:j})]}),(0,s.jsxs)("div",{className:"arc-input-group",children:[(0,s.jsx)("input",{className:"arc-input".concat(b?" arc-input-error":""),type:"email",name:"email",placeholder:"Enter your email",value:f,onChange:e=>{x(e.target.value),b&&w(h(e.target.value))},onBlur:()=>w(h(f)),onKeyDown:e=>"Enter"===e.key&&Q&&J(),disabled:V}),b&&(0,s.jsx)("p",{className:"arc-field-error",children:b})]}),(0,s.jsxs)("label",{className:"arc-checkbox-row",children:[(0,s.jsx)("input",{type:"checkbox",className:"arc-checkbox",checked:v,onChange:e=>y(e.target.checked),disabled:V}),(0,s.jsxs)("span",{className:"arc-checkbox-label",children:["I agree to re
1ceive email communications from"," ",(0,s.jsx)("a",{href:"https://www.prism-me.com",target:"_blank",rel:"noopener noreferrer",children:"Prism Digital"})]})]}),(0,s.jsx)("input",{type:"text",name:"b_field_x91z",value:K,onChange:e=>X(e.target.value),autoComplete:"new-password",tabIndex:-1,"aria-hidden":"true",style:{position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}}),(0,s.jsx)("button",{className:"arc-btn",onClick:J,disabled:!Q||V,children:"Check My Website"}),P?(0,s.jsx)("div",{className:"arc-scans-left",children:(0,s.jsx)("span",{style:{opacity:.5,fontSize:12},children:"Checking availabilityâ¦"})}):S<=0?(0,s.jsxs)("div",{className:"arc-rate-limit-banner",children:[(0,s.jsx)("span",{className:"arc-rate-limit-icon",children:"\uD83D\uDEAB"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"Daily limit reached"}),(0,s.jsx)("br",{}),(0,s.jsx)("span",{style:{opacity:.7},children:A||"You've used all ".concat(3," free scans today. Resets at midnight.")})]})]}):(0,s.jsxs)("div",{className:"arc-scans-left",children:[[void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("span",{className:"arc-scans-pip ".concat(t<S?"active":"used")},t)),(0,s.jsx)("span",{style:{marginLeft:6},children:A||"".concat(S," free scan").concat(1!==S?"s":""," remaining today")})]})]}),"scanning"===R&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{style:{textAlign:"center",fontWeight:700,fontSize:17,marginBottom:8},children:"Scanning your websiteâ¦"}),(0,s.jsx)("p",{style:{textAlign:"center",fontSize:13,color:"var(--muted)",marginBottom:20},children:p(a.trim())}),(0,s.jsx)("div",{className:"arc-progress-wrap",children:(0,s.jsx)("div",{className:"arc-progress-bar",style:{width:"".concat(L,"%")}})}),(0,s.jsx)("p",{className:"arc-progress-label",children:U})]})]})}),(0,s.jsx)("div",{className:"arc-features",children:[{icon:"\uD83E\uDD16",title:"AI Discovery Files",desc:"llms.txt, agents.json, and robots.txt AI rules that help agents find and understand your site."},{icon:"\uD83C\uDFD7ï¸",title:"Structured Data",desc:"Schema.org markup, semantic HTML, and meta tags that help AI understand your content."},{icon:"\uD83D\uDEE1ï¸",title:"AI Accessibility",desc:"Performance, security, and accessibility factors that affect AI agent interactions."}].map((e,t)=>(0,s.jsxs)("div",{className:"arc-feat-card",children:[(0,s.jsx)("div",{className:"arc-feat-icon",children:e.icon}),(0,s.jsx)("div",{className:"arc-feat-title",children:e.title}),(0,s.jsx)("div",{className:"arc-feat-desc",children:e.desc})]},t))}),(0,s.jsx)("div",{style:{position:"relative",zIndex:1,textAlign:"center",padding:"0 24px 0",maxWidth:800,margin:"0 auto"},children:(0,s.jsx)("p",{style:{fontSize:12,color:"rgba(0,0,0,0.6)",lineHeight:1.7},children:"This tool is provided for informational purposes only. Results are not guaranteed to be accurate or complete. AI readiness standards are evolving and recommendations should be verified before implementation."})})]}),(0,s.jsx)(l.default,{})]})}var f=a(9008),x=a.n(f),v=a(75331),y=!0;function j(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.Z,{enPath:"/ai-readiness-checker",arPath:"/ai-readiness-checker"}),(0,s.jsxs)(x(),{children:[(0,s.jsx)("title",{children:"AI Readiness Checker - Is Your Website Ready for AI Agents?"}),(0,s.jsx)("meta",{name:"description",content:"Run a free AI Readiness Check to see if ChatGPT, Claude, Gemini, and Perplexity can find, crawl, and understand your website. Get instant insights."}),(0,s.jsx)("link",{rel:"canonical",href:"https://www.prism-me.com/ai-readiness-checker"})]}),(0,s.jsx)(g,{})]})}}},function(e){e.O(0,[509,6130,7066,5786,9332,1251,6167,2888,9774,179],function(){return e(e.s=97963)}),_N_E=e.O()}]); 2//# sourceMappingURL=ai-readiness-checker-7e90f42c4d3e8ad1.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.