1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21146,48064,36179,11652,23767,19511],{35169:function(e,n){"use strict";n.Z=function(e){return{id:"google",name:"Google",type:"oauth",wellKnown:"https://accounts.google.com/.well-known/openid-configuration",authorization:{params:{scope:"openid email profile"}},idToken:!0,checks:["pkce","state"],profile:e=>({id:e.sub,name:e.name,email:e.email,image:e.picture}),style:{logo:"/google.svg",bg:"#fff",text:"#000"},options:e}}},80751:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/growth",function(){return t(41034)}])},48064:function(e,n,t){"use strict";t.r(n),t.d(n,{AdminPageWrapper:function(){return m}});var r,l,i=t(31549),o=t(63867),a=t(78172),c=t(35169),s=t(73656);let u=["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"],d=[],p=[],f={ADMIN_USERS:u,ALL:[...u,...d,...p],CONTENT_USERS:p,GROWTH_USERS:d},g=(e,n)=>!!(0===e.length||u.includes(n))||e.some(e=>(f[e]||[]).includes(n));(0,c.Z)({clientId:null!==(r=s.env.GOOGLE_CLIENT_ID)&&void 0!==r?r:"",clientSecret:null!==(l=s.env.GOOGLE_CLIENT_SECRET)&&void 0!==l?l:""});var h=t(19511);let m=e=>{var n;let{authGroup:t,children:r}=e,{pathname:l}=(0,o.useRouter)(),{data:c}=(0,a.useSession)();return g(t,null==c?void 0:null===(n=c.user)||void 0===n?void 0:n.email)?(0,i.jsxs)("div",{style:{padding:"20px"},children:[(0,i.jsx)(h.AdminNav,{pathname:l}),(0,i.jsx)("div",{className:"help-text",children:(0,i.jsxs)("h4",{children:[(0,i.jsx)("span",{style:{color:"#ff4600"},children:"WARNING:"}),(0,i.jsx)("br",{}),"Always test content and experiments on staging before revalidating production pages.",(0,i.jsx)("br",{}),"The Growth Web team is not responsible for any accidental content releases or content related bugs associated with accidental page revalidations."]})}),r]}):(0,i.jsx)("p",{style:{color:"red"},children:"Access denied. Please reach out to an admin to request access."})}},36179:function(e,n,t){"use strict";t.r(n),t.d(n,{CustomPathRevalidator:function(){return c},EnvironmentSelector:function(){return o},PreviewApiResponse:function(){return u},RevalidationShortcuts:function(){return a}});var r=t(31549),l=t(44194),i=t(97725);let o=e=>{let{ctaTheme:n,onSelect:t,options:l,value:i}=e;return(0,r.jsxs)("div",{className:"controls environment",style:{paddingTop:"60px"},children:[(0,r.jsx)("h4",{children:"Environment"}),(0,r.jsx)("select",{onChange:e=>t(e.target.value),style:{appearance:"auto",backgroundColor:n,border:"1px solid ".concat(n),color:"#fff",cursor:"pointer",display:"block",fontSize:"20px",maxWidth:"500px",padding:"6px 0",width:"100%"},value:i,children:l.map((e,n)=>{let{label:t,value:l}=e;return(0,r.jsx)("option",{value:l,children:t},"".concat(l,"-").concat(n))})})]})},a=e=>{let{ctaTheme:n,loading:t,onClick:l,revalidationShortcuts:i=[]}=e;return(0,r.jsxs)("div",{className:"controls",style:{paddingTop:"60px"},children:[(0,r.jsx)("h4",{children:"Shortcuts"}),i.map((e,i)=>{let{label:o,path:a}=e;return(0,r.jsx)("button",{disabled:t,onClick:()=>l(a),style:{backgroundColor:n,color:"#fff",cursor:"pointer",display:"block",margin:"20px 0",padding:"6px"},children:t?"Revalidating...":"".concat(o," | ").concat(a)},"".concat(o,"-").concat(i))})]})},c=e=>{let{ctaTheme:n,loading:t,onSubmit:o,prefix:a}=e,c=(0,l.useRef)(null);return(0,r.jsxs)("div",{className:"controls",style:{paddingTop:"60px"},children:[(0,r.jsxs)("h4",{children:["Revalidate a ",a?"sub":"","path",a?" (".concat(a,")"):""]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n input.with-prefix {\n padding-left: 150px!important;\n }\n input.with-prefix::after {\n content: ".concat(a,";\n }\n ")}}),a&&(0,r.jsx)("label",{style:{backgroundColor:n,color:"#fff",lineHeight:"20px",padding:"6px",position:"absolute",textAlign:"end",width:"140px",zIndex:"1"},children:a}),(0,r.jsx)("input",{ref:c,className:a?"with-prefix":"",placeholder:a?"/subpath":"/path",style:{border:"1px solid #000",display:"block",marginBottom:"10px",maxWidth:"1000px",padding:"6px",width:"100%"}}),(0,r.jsx)("button",{disabled:t,onClick:()=>{let e=(0,i.DM)(c.current.value);a&&(e="".concat(a).concat(e)),o(e)},style:{backgroundColor:n,color:"#fff",cursor:"pointer",padding:"6px"},children:t?"Revalidating...":"Revalidate ".concat(a?"Sub":"","Path")})]})]})},s=e=>JSON.stringify(e,void 0,4),u=e=>{let{loading:n,responseJson:t}=e,l=t?s(t):"Revalidate something to see a response!";return(0,r.jsxs)("div",{className:"results",style:{paddingTop:"60px"},children:[(0,r.jsx)("h4",{children:"Revalidation Results"}),(0,r.jsx)("pre",{style:{backgroundColor:"#cbcbcb",margin:"0",padding:"10px"},children:n?"Revalidating...":l})]})}},11652:function(e,n,t){"use strict";t.r(n),t.d(n,{ADMIN_ENVIRONMENT_OPTIONS:function(){return r},ADMIN_REVALIDATE_SHORTCUTS:function(){return i},CONTENT_REVALIDATE_SHORTCUTS:function(){return l}});let r=[{label:"Staging",value:"staging"},{label:"Production",value:"production"}],l=[{label:"Blog Home",path:"/blog"},{label:"Blog Topics",path:"/blog/topics"},{label:"Blog Search",path:"/blog/search"},{label:"Country Guides Home",path:"/country-hiring"}],i=[...l]},23767:function(e,n,t){"use strict";t.r(n),t.d(n,{revalidatePath:function(){return r}});let r=async(e,n)=>{let t=JSON.stringify({adminResource:n,path:e}),r=await fetch("/api/www-vercel-revalidate",{body:t,headers:{"Content-Type":"application/json"},method:"POST"});return await r.json()}},19511:function(e,n,t){"use strict";t.r(n),t.d(n,{AdminNav:function(){return s}});var r=t(31549),l=t(60261),i=t(35178),o=t.n(i);let a=[{href:"/admin",label:"Admin Home"},{href:"/admin/content-dev",label:"Content Dev"},{href:"/admin/growth",label:"Growth"},{href:"/admin/revalidate",label:"Page or Resource Revalidation"}],c=e=>e.replace("/admin/","").split(/-/g).map(l.capitalize).join(" "),s=e=>{let{pathname:n}=e,t=n?" | ".concat(c(n)):"";return(0,r.jsxs)("div",{style:{paddingBottom:"20px"},children:[(0,r.jsxs)("h1",{children:["Admin Dashboard",t]}),(0,r.jsx)("div",{style:{color:"red",padding:"10px 0"},children:"This should only ever be visible on staging or preview sites."}),(0,r.jsx)("div",{className:"navigation",children:(0,r.jsx)("ul",{children:a.map((e,n)=>{let{href:t,label:l}=e;return(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:t,children:(0,r.jsx)("a",{style:{color:"blue",display:"block",padding:"4px 0"},children:l})})},"".concat(l,"-").concat(n))})})})]})}},60261:function(e,n,t){"use strict";t.r(n),t.d(n,{capitalize:function(){return x},debounce:function(){return g},encodeHTML:function(){return s},escapeRegex:function(){return m},getClassNameFromAttributes:function(){return d},getIncrementValue:function(){return p},getUrlParam:function(){return a.e},optionize:function(){return f},parseChildren:function(){return u},recursiveMap:function(){return function e(n,t){return l.Children.map(n,(n,r)=>{if(!l.isValidElement(n))return n;let i=t(n,r);return i.props.children&&(i=l.cloneElement(i,{children:e(i.props.children,t)})),i})}},shuffle:function(){return h},stripHtml:function(){return v}});var r=t(31791),l=t(44194),i=t(51865),o=t.n(i),a=t(28278);function c(){let e=(0,r._)(["$&"],["\\$&"]);return c=function(){return e},e}function s(e){return"string"==typeof e?e.replaceAll("&","&").replaceAll("<","<").replaceAll('"',"""):e}let u=(e,n,t)=>{var r;Array.isArray(e)&&1===e.length&&(e=e[0]);let i=e.children||e.props.children,o={},a=e.props?n(e,i,t):null;return(Array.isArray(i=(null==a?void 0:null===(r=a.props)||void 0===r?void 0:r.children)||i)&&(i=i.map((e,t)=>u(e,n,t))),a)?l.cloneElement(a.el,{...a.props,children:i,key:t}):(o.children=i,o)},d=e=>
1{let n="",t=[{color:"#fff",name:"White",slug:"white"},{color:"rgba(255, 255, 255, 0.7)",name:"Gray",slug:"gray"},{color:"rgba(0, 0, 0, 0.4)",name:"Dark Gray",slug:"dark-gray"},{color:"#FDB71C",name:"Yellow",slug:"yellow"},{color:"#f6f3f0",name:"Eggshell",slug:"eggshell"},{color:"#f0e8df",name:"Dark Eggshell",slug:"dark-eggshell"},{color:"#2374E1",name:"Blue",slug:"blue"},{color:"#502b3a",name:"Plum",slug:"plum"},{color:"#301923",name:"Dark Plum",slug:"dark-plum"},{color:"#38202A",name:"Dark Unsaturated Plum",slug:"dark-unsaturated-plum"}],r={mb:!0,mbd:!0,mw:!0,mwd:!0,pb:!0,pbd:!0,pl:!0,pld:!0,pr:!0,prd:!0,pt:!0,ptd:!0,ta:!0,w:!0,wd:!0,wf:!0,wfd:!0};for(let[l,i]of Object.entries(e))if("color"===l){let e=t.find(e=>e.color===i||e.slug===i);e&&(n=o()(n,{["has-".concat(e.slug,"-background-color")]:e.slug}))}else if("textColor"===l){let e=t.find(e=>e.color===i||e.slug===i);e&&(n=o()(n,{["has-".concat(e.slug,"-color")]:e.slug}))}else if(r[l]){let e=0===i?"0":i;n=o()(n,{["-".concat(l,"-").concat(e)]:e})}return n},p=e=>{let{activeIndex:n,increment:t,numOfItems:r}=e,l=n+t;return l===r?0:-1===l?r-1:l},f=e=>{let n={};if(e)for(let t of e.trim().split(/\r?\n/g)){let[e,r]=t.split("=>");n[e]=r}return n};function g(e,n){let t;return()=>{clearTimeout(t),t=setTimeout(()=>{t=null,Reflect.apply(e,this,arguments)},n)}}function h(e){let n,t,r=e.length;for(;0!==r;)t=Math.floor(Math.random()*r),r-=1,n=e[r],e[r]=e[t],e[t]=n;return e}function m(e){return e.replaceAll(/[$()*+./?[\\\]^{|}-]/g,String.raw(c()))}let x=e=>"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1),v=e=>e.replaceAll(/<[^>]*>/g,"")},97725:function(e,n,t){"use strict";t.d(n,{MD:function(){return l},DM:function(){return i}});var r=t(16053);let l=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.HH)(e)?e:n},i=e=>(0,r.HH)(e)?("/"!==e[0]&&(e="/".concat(e)),e.replaceAll("//","/")):""},28278:function(e,n,t){"use strict";function r(e){let n=new RegExp("[?&]".concat(e,"=([^&#]*)")).exec(window.location.href);return null==n?null:decodeURI(n[1])||0}t.d(n,{e:function(){return r}})},41034:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return u},default:function(){return d}});var r=t(31549),l=t(44194),i=t(48064),o=t(36179),a=t(11652),c=t(23767);let s=()=>{let[e,n]=(0,l.useState)("staging"),[t,i]=(0,l.useState)(""),[s,u]=(0,l.useState)(!1),d=async n=>{u(!0),i(await (0,c.revalidatePath)(n,e)),u(!1)},p="staging"===e?"#2271b1":"#ff4600";return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.EnvironmentSelector,{ctaTheme:p,onSelect:n,options:a.ADMIN_ENVIRONMENT_OPTIONS,value:e}),(0,r.jsx)(o.RevalidationShortcuts,{ctaTheme:p,loading:s,onClick:d}),(0,r.jsx)(o.PreviewApiResponse,{loading:s,responseJson:t})]})};var u=!0;function d(){return(0,r.jsx)(i.AdminPageWrapper,{authGroup:["GROWTH_USERS"],children:(0,r.jsx)(s,{})})}},16053:function(e,n,t){"use strict";t.d(n,{HD:function(){return l},HH:function(){return o},Kn:function(){return a},Of:function(){return r},hj:function(){return i}});let r=e=>!!Array.isArray(e)&&e.length>0,l=e=>"string"==typeof e,i=e=>"number"==typeof e&&!Number.isNaN(Number(e)),o=e=>!!l(e)&&e.length>0,a=e=>!("object"!=typeof e||!e||Array.isArray(e))}},function(e){e.O(0,[21009,92888,49774,40179],function(){return e(e.s=80751)}),_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.