1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5640],{90091:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profiles/reports/seo/[profileId]",function(){return s(22835)}])},6140:function(e,r,s){"use strict";s.d(r,{b:function(){return l},n:function(){return n}});let l="hidden sm:block pt-2 h-10 shadow",n="my-10 max-w-screen-2xl 4xl:max-w-screen-4xl mx-auto"},85005:function(e,r,s){"use strict";s.d(r,{U:function(){return m}});var l=s(67294),n=s(52060),t=s(44173),i=s(5281),a=s(72184),o=s(58773),c=s(17681);let d=e=>{let r=Array.isArray(e)?e[0]:e;if(!r||"string"!=typeof r)throw Error("Invalid profile ID");return r};var u=s(91065),x=s(53262);function m(e,r){let s=(0,n.TL)(),[m,f]=(0,l.useState)(!1),[p,h]=(0,l.useState)(!1),[j]=(0,o.bC)(),g=(0,n.CG)(c.OI),v=(0,l.useRef)(null),w=(0,l.useCallback)(async e=>{h(!1);let r=Symbol("profile-request");v.current=r;try{var l;f(!0),s(a.h.util.invalidateTags([{type:"Profiles",id:e}]));let n=await j(e);if(v.current!==r)return;if(n.error||!(null===(l=n.data)||void 0===l?void 0:l.profile))throw Error("There was a problem fetching this profile. Please try again.");if(n.data.profile.type===u.VD.AD_ACCOUNT&&(null==n.data.profile.credential_access||n.data.profile.credential_access===x.t.NO_ACCESS))throw Error("Invalid Access Credentials. Please choose another profile.");s((0,i.vi)(n.data.profile))}catch(s){if(v.current!==r)return;let e=s instanceof Error?s.message:"An unknown error occurred.";h(!0),t.Am.dismiss("profile-fetch-error"),t.Am.error(e,{toastId:"profile-fetch-error"})}finally{v.current===r&&f(!1)}},[s,j]);return(0,l.useEffect)(()=>{if(r&&e)try{let r=d(e);r&&w(r)}catch(e){h(!0)}},[r,e,w]),(0,l.useEffect)(()=>()=>{v.current=null},[]),[m,p,g]}},38481:function(e,r,s){"use strict";s.d(r,{Z:function(){return D}});var l=s(85893),n=s(67294),t=s(52060),i=s(6131),a=s(17681),o=s(55215),c=s(48817),d=s(91065),u=s(49629),x=s(20996),m=s(11163),f=s(27156),p=s(79863),h=s(19959),j=s(33040),g=s(28749),v=s(37343),w=s(75610),y=s(1272),N=s(69668),b=s(15631),C=s(52751);function A(){let e=(0,m.useRouter)(),r=(0,t.TL)(),{overall:s,prevScore:n}=(0,t.CG)(o.KB),d=(0,t.CG)(o.Dy),u=(0,t.CG)(o.$L),x=(0,t.CG)(c.Hs),A=(0,t.CG)(a.OI),_=(0,t.CG)(a.zn),G=(0,t.CG)((0,h.U1)(A.project_uuid)),[E]=(0,i.Nv)(),O=null==d.competitor_data&&d.data.length<=10||d.data.length<=4&&null!=d.competitor_data&&d.competitor_data.length<=4;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,f.AK)("lg:px-3",_?"blur-sm":""),children:[(0,l.jsx)("div",{id:"header",children:(0,l.jsx)(v.Z,{seoReport:!0,score:s,previousScore:n,reportDate:u,reportDue:x,onRunClick:()=>E(A.id),onDownloadClick:async()=>{r((0,j.NU)(!0)),await (0,p.ON)(A,O,G),r((0,j.NU)(!1))}})}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-5 mt-5",children:[(0,l.jsx)("div",{id:"keyword-section",className:"col-span-1",children:(0,l.jsx)(w.Z,{})}),(0,l.jsx)("div",{id:"onsite-section",className:"col-span-1",children:(0,l.jsx)(y.Z,{})}),(0,l.jsx)("div",{id:"pagespeed-section",className:"col-span-1",children:(0,l.jsx)(N.Z,{})}),(0,l.jsx)("div",{id:"backlinks-section",className:"col-span-1",children:(0,l.jsx)(b.Z,{})})]})]}),_&&(0,l.jsx)(g.jN,{isOpen:_,onClose:()=>{document.referrer&&new URL(document.referrer).origin===window.location.origin?e.back():e.push("/profiles")},width:"sm:my-8 sm:w-full sm:max-w-xl lg:max-w-4xl",children:(0,l.jsx)(C.Z,{})})]})}var _=s(48606);function G(){return(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"flex justify-center items-center mt-20 bg-gray-50 py-32 xl:py-40 px-8",children:(0,l.jsxs)("p",{className:"font-medium lg:text-sm 3xl:text-base my-6",children:["Sorry an error occurred loading this data. Please try refreshing the page or if the problem persists, please contact support on:\xa0",(0,l.jsx)(_.Av,{onClick:()=>{window.location.href="mailto:[email protected]"},name:"email",text:"[email protected]",isLoading:!1,disabled:!1})]})})})}var E=s(35098);function O(){return(0,l.jsxs)("div",{children:[(0,l.jsx)(E.Z,{message:"Generating your Report..."}),(0,l.jsx)("div",{className:"grid grid-cols-8 gap-6 grid-flow-row auto-rows-fr mt-20",children:Array.from(Array(6),(e,r)=>(0,l.jsx)("div",{className:"col-span-8 xl:col-span-4 flex flex-col",children:(0,l.jsx)("div",{className:"flex flex-col rounded bg-gray-100 shadow-md h-64 animate-pulse"})},r))})]})}var k=s(8353),Z=s(28583);function R(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute top-1/2 left-1/2 overflow-hidden z-50 rounded-md -translate-x-[50%] lg:-translate-x-[15%] lg:-translate-y-[100%]",children:(0,l.jsxs)("div",{className:"inline-flex items-center bg-white p-10 lg:p-16 border text-violet-950 rounded-md whitespace-nowrap",children:[(0,l.jsx)(Z.Z,{size:"w-8 h-8",colour:"200E4E"}),(0,l.jsx)("p",{className:"font-semibold text-xl p-3 ml-1",children:"Downloading Report..."})]})}),(0,l.jsx)("div",{className:"fixed bg-plum-600 top-0 h-full w-full z-40 opacity-60"})]})}
1function D(){let[e,r]=(0,n.useState)(!1),s=(0,t.CG)(a.OI),m=(0,t.CG)(o.kM),f=(0,t.CG)(o.Fl),p=(0,t.CG)(c.pc),[h]=(0,i.Ye)();(0,n.useEffect)(()=>{(async()=>{if(!(null==s?void 0:s.id))return;let{data:e}=await h(s.id),l=null!=e&&Object.prototype.hasOwnProperty.call(e,"isGenerating")?e:null;(null==l?void 0:l.isGenerating)&&r(!0)})()},[h,s.id]);let j=p===u.HC.FREE&&f===d.Am.GOOD?"my-10":"my-10 xl:my-20";return(0,l.jsxs)(l.Fragment,{children:[m?(0,l.jsx)(R,{}):null,(0,l.jsxs)("div",{className:"".concat(j," max-w-screen-2xl 4xl:max-w-screen-4xl mx-auto"),children:[f===d.Am.LOADING?(0,l.jsx)(x.Z,{}):null,f===d.Am.GOOD?(0,l.jsx)(A,{}):null,f===d.Am.ERROR?(0,l.jsx)(G,{}):null,f===d.Am.NO_DATA?(0,l.jsx)(O,{}):null]}),(0,l.jsx)(k.Z,{show:e,isGenerating:!0,onClose:()=>{r(!1)}})]})}},20996:function(e,r,s){"use strict";s.d(r,{Z:function(){return t}});var l=s(85893),n=s(35098);function t(){return(0,l.jsxs)("div",{children:[(0,l.jsx)(n.Z,{}),(0,l.jsx)("div",{className:"grid grid-cols-8 gap-6 grid-flow-row auto-rows-fr mt-20",children:Array.from(Array(6),(e,r)=>(0,l.jsx)("div",{className:"col-span-8 xl:col-span-4 flex flex-col",children:(0,l.jsx)("div",{className:"flex flex-col rounded bg-gray-100 shadow-md h-64 animate-pulse"})},r))})]})}},22835:function(e,r,s){"use strict";s.r(r),s.d(r,{default:function(){return m}});var l=s(85893),n=s(11163),t=s(85005),i=s(54114),a=s(31046),o=s(38481),c=s(20996),d=s(48606);function u(){let e=(0,n.useRouter)();return(0,l.jsxs)("div",{className:"flex flex-col gap-6 items-center mt-20 bg-gray-50 py-32 xl:py-40 px-8",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold text-gray-700",children:"Profile not found"}),(0,l.jsx)("p",{className:"mt-2 text-gray-500 text-center",children:"The requested profile could not be found or is unavailable."}),(0,l.jsx)(d.Av,{name:"profile-fetch-error",onClick:()=>e.push("/profiles"),text:"Back to Profiles"})]})}var x=s(6140);function m(){let e=(0,n.useRouter)(),{profileId:r}=e.query,[s,d,m]=(0,t.U)(r,e.isReady);return(0,l.jsx)(i.Z,{children:s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:x.b}),(0,l.jsx)("div",{className:x.n,children:(0,l.jsx)(c.Z,{})})]}):d?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:x.b}),(0,l.jsx)("div",{className:x.n,children:(0,l.jsx)(u,{})})]}):(null==m?void 0:m.id)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Z,{}),(0,l.jsx)(o.Z,{})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:x.b}),(0,l.jsx)("div",{className:x.n,children:(0,l.jsx)(u,{})})]})})}}},function(e){e.O(0,[3225,2888,9774,179],function(){return e(e.s=90091)}),_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.