PageSourceSearch

https://www.sportsresearch.com/_next/static/chunks/pages/admin/refresh-cache-x7q2k9-ea7359bd628685e5.js

js sportsresearch.com collected 2026-09-25 20:08:04 UTC 5,987 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7946],{19841:function(e,s,t){"use strict";s.Z=function(){for(var e,s,t=0,a="";t<arguments.length;)(e=arguments[t++])&&(s=function r(e){var s,t,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e){if(Array.isArray(e))for(s=0;s<e.length;s++)e[s]&&(t=r(e[s]))&&(a&&(a+=" "),a+=t);else for(s in e)e[s]&&(a&&(a+=" "),a+=s)}return a}(e))&&(a&&(a+=" "),a+=s);return a}},70833:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/refresh-cache-x7q2k9",function(){return t(23355)}])},44165:function(e,s,t){"use strict";var a=t(651),n=t(29264),c=t(1037);s.Z=e=>{let{children:s,pageProps:{categories:t=[],...i}}=e,{locale:l="en-US"}=(0,c.useRouter)();return(0,a.jsx)(n.SN,{locale:l,children:(0,a.jsx)("div",{children:s})})}},4355:function(e,s,t){"use strict";var a=t(651),n=t(19841),c=t(92379),i=t(89213),l=t(55969),h=t(77199),d=t.n(h);let u="button",f=(0,c.forwardRef)((e,s)=>{let{className:t,overrideClass:h,href:f,target:p,rel:_,variant:m,size:x,children:g,active:j,width:b,loading:k=!1,disabled:v=!1,style:N={},Component:w="button",...y}=e,q=(0,c.useRef)(null),C="cta-black"===m||"cta-white"===m,R=(0,n.Z)({["".concat(t)]:t,["".concat(u)]:!h,["".concat(u,"--").concat(m)]:m,["".concat(u,"--").concat(x)]:x,["".concat(u,"--disabled")]:v});return"a"===w&&f?(0,a.jsxs)(d(),{href:f,ref:(0,i.l)([q,s]),className:R,target:p,rel:_,children:[g,C&&(0,a.jsx)(()=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 16",width:"24",height:"16",children:(0,a.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M21.75 8.25H1.25m20.5 0-8-6.5m8 6.5-8 6.5"})}),{})]}):(0,a.jsxs)(w,{className:R,"aria-pressed":j,"data-variant":m,ref:(0,i.l)([q,s]),disabled:v,...y,style:N,children:[g,k&&(0,a.jsx)("i",{className:"pl-2 m-0 flex",children:(0,a.jsx)(l.Z,{})})]})});s.Z=f},55969:function(e,s,t){"use strict";var a=t(651),n=t(33757),c=t.n(n);s.Z=()=>(0,a.jsxs)("span",{className:c().root,children:[(0,a.jsx)("span",{className:c().dot},"dot_1"),(0,a.jsx)("span",{className:c().dot},"dot_2"),(0,a.jsx)("span",{className:c().dot},"dot_3")]})},23355:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return RefreshCachePage}});var a=t(651),n=t(64610),c=t.n(n),i=t(92379),l=t(44165),h=t(4355),d=t(19841),u=t(84809),f=t.n(u),Input_Input=e=>{let{className:s,children:t,onChange:n,...c}=e,i=(0,d.Z)(f().root,{},s);return(0,a.jsx)("label",{children:(0,a.jsx)("input",{className:i,onChange:e=>(n&&n(e.target.value),null),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",...c})})},p=t(3331),_=t.n(p);function RefreshCachePage(){let[e,s]=(0,i.useState)(""),[t,n]=(0,i.useState)("idle"),[l,d]=(0,i.useState)("");async function handleSubmit(s){if(s.preventDefault(),e&&"submitting"!==t){n("submitting"),d("");try{let s=await fetch("/api/admin/refresh-cache",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),t=await s.json().catch(()=>({}));s.ok&&(null==t?void 0:t.revalidated)?(n("success"),d("Revalidation requested for ".concat(t.path," (").concat(t.kind,"). New content will appear on the next visit."))):(n("error"),d((null==t?void 0:t.message)||"Request failed (HTTP ".concat(s.status,")")))}catch(e){n("error"),d((null==e?void 0:e.message)||"Network error")}}}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c(),{children:[(0,a.jsx)("title",{children:"Refresh cache"}),(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,a.jsxs)("div",{className:_().wrap,children:[(0,a.jsx)("h1",{className:_().heading,children:"Refresh page cache"}),(0,a.jsx)("p",{className:_().subheading,children:"Paste a page URL and click Refresh to force the live site to rebuild that page from the latest Contentful data."}),(0,a.jsxs)("form",{className:_().form,onSubmit:handleSubmit,children:[(0,a.jsx)("label",{className:_().label,htmlFor:"url-input",children:"Page URL or path"}),(0,a.jsx)("div",{className:_().field,children:(0,a.jsx)(Input_Input,{id:"url-input",value:e,onChange:e=>s(e),placeholder:"https://www.sportsresearch.com/products/example",autoFocus:!0})}),(0,a.jsx)("div",{className:_().actions,children:(0,a.jsx)(h.Z,{variant:"black",type:"submit",loading:"submitting"===t,disabled:!e||"submitting"===t,children:"Refresh cache"})})]}),"success"===t&&(0,a.jsx)("div",{className:"".concat(_().message," ").concat(_().messageOk),children:l}),"error"===t&&(0,a.jsx)("div",{className:"".concat(_().message," ").concat(_().messageErr),children:l}),(0,a.jsxs)("p",{className:_().hint,children:["Accepts full URLs or paths. Examples: ",(0,a.jsx)("code",{children:"/"}),","," ",(0,a.jsx)("code",{children:"/products/my-slug"}),", ",(0,a.jsx)("code",{children:"/collections/shop-all"}),","," ",(0,a.jsx)("code",{children:"/blogs/health/some-post"}),","," ",(0,a.jsx)("code",{children:"/press-release/some-release"}),","," ",(0,a.jsx)("code",{children:"/some-flex-page"}),"."]})]})]})}RefreshCachePage.Layout=l.Z},84809:function(e){e.exports={root:"Input_root__On9vr"}},33757:function(e){e.exports={root:"LoadingDots_root__8o4w0",dot:"LoadingDots_dot__kJynh",blink:"LoadingDots_blink__iunUN"}},3331:function(e){e.exports={wrap:"refresh-cache-x7q2k9_wrap__FE_JG",heading:"refresh-cache-x7q2k9_heading__pn2pN",subheading:"refresh-cache-x7q2k9_subheading__ZKuUr",form:"refresh-cache-x7q2k9_form__QMe42",label:"refresh-cache-x7q2k9_label__Olwvq",field:"refresh-cache-x7q2k9_field__0Qm7I",actions:"refresh-cache-x7q2k9_actions__C9p_r",message:"refresh-cache-x7q2k9_message__SM8kf",messageOk:"refresh-cache-x7q2k9_messageOk__E31jc",messageErr:"refresh-cache-x7q2k9_messageErr__L8_rV",hint:"refresh-cache-x7q2k9_hint__xXKbO"}},89213:function(e,s,t){"use strict";function o(e){return s=>
1{e.forEach(e=>{"function"==typeof e?e(s):null!=e&&(e.current=s)})}}t.d(s,{l:function(){return o}})}},function(e){e.O(0,[8225,9264,9774,2888,179],function(){return e(e.s=70833)}),_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.