1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9070],{20266:(e,a,n)=>{"use strict";n.d(a,{k:()=>w,t:()=>T});var o,r,l,t,i=n(64163),d=n(64721),s=n(38991),u=n(68453),c=n(36244),v=n(30467),_=n(12033),h=n(33450),p=n(39163),b=n(88570),N=n(68944),m=n(15242),I=n(76152),E=n(84468),f=(0,s.Ay)(h.Q).withConfig({componentId:"sc-48c5a6ed-0"})(r||(r=(0,i.ue)(["\n ","\n ","\n ","\n"],["\n ","\n ","\n ","\n"])),m.V,E.b,function(e){return(0,s.AH)(o||(o=(0,i.ue)(["\n &:hover {\n text-decoration: ",";\n color: ",";\n background: ",";\n border-color: ",';\n [data-state="selected"] {\n display: none;\n }\n }\n &:active {\n background: ',";\n border-color: ",";\n color: ",';\n [data-state="selected"] {\n display: none;\n }\n }\n &:disabled {\n background: ',";\n border-color: ",";\n color: ",';\n [data-state="selected"] {\n display: none;\n }\n }\n '],["\n &:hover {\n text-decoration: ",";\n color: ",";\n background: ",";\n border-color: ",';\n [data-state="selected"] {\n display: none;\n }\n }\n &:active {\n background: ',";\n border-color: ",";\n color: ",';\n [data-state="selected"] {\n display: none;\n }\n }\n &:disabled {\n background: ',";\n border-color: ",";\n color: ",';\n [data-state="selected"] {\n display: none;\n }\n }\n '])),e.$hoverUnderline?"underline":"none",(0,I.H)(e.$hoverTextColor),(0,I.H)(e.$hoverBackground),(0,I.H)(e.$hoverBorderColor),(0,I.H)(e.$defaultBackground),(0,I.H)(e.$defaultBorderColor),(0,I.H)(e.$defaultTextColor),(0,I.H)(e.$disabledBackground),(0,I.H)(e.$disabledBorderColor),(0,I.H)(e.$disabledTextColor))}),B=(0,s.Ay)(_.E).withConfig({componentId:"sc-48c5a6ed-1"})(l||(l=(0,i.ue)(["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ",";\n"],["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ",";\n"])),(0,I.H)("border-decorative1")),T=(0,s.Ay)(u.f).withConfig({componentId:"sc-48c5a6ed-2"})(t||(t=(0,i.ue)(["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ",";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ",";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ",";\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ",";\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ",";\n }\n"],["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ",";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ",";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ",";\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ",";\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ",";\n }\n"])),(0,N.N)("drop-shadow-centered-grey"),(0,N.N)("drop-shadow-centered-lemon"),function(e){return(0,N.N)(e.$hoverShadow)},(0,N.N)("drop-shadow-grey"),(0,N.N)("drop-shadow-lemon")),w=function(e){var a=e.element,n=e.children,o=e.iconName,r=e.iconAriaHidden,l=e.isTrailingIcon,t=e.isLoading,s=e.disabled,_=e.width,h=e.height,N=e.maxWidth,m=e.innerWidth,I=e.defaultBackground,E=e.defaultBorderColor,B=e.defaultTextColor,w=e.disabledTextColor,C=e.hoverTextColor,A=e.hoverBackground,U=e.hoverBorderColor,L=e.hoverUnderline,P=e.disabledBackground,S=e.disabledBorderColor,y=e.className,O=e.hoverShadow,R=e.pv,$=e.ph,x=e.pt,k=e.pb,q=e.pl,X=e.pr,D=e.iconLayout,H=e.iconGap,G=e.iconOverride,F=e.font,M=void 0===F?"heading-7":F,Y=e.textAlign,W=e.loadingSpinnerSize,K=void 0===W?"spacing-24":W,j=e.display,V=e.selected,z=(0,i.Tt)(e,["element","children","iconName","iconAriaHidden","isTrailingIcon","isLoading","disabled","width","height","maxWidth","innerWidth","defaultBackgroun
1d","defaultBorderColor","defaultTextColor","disabledTextColor","hoverTextColor","hoverBackground","hoverBorderColor","hoverUnderline","disabledBackground","disabledBorderColor","className","hoverShadow","pv","ph","pt","pb","pl","pr","iconLayout","iconGap","iconOverride","font","textAlign","loadingSpinnerSize","display","selected"]),J=null!=G?G:d.createElement(d.Fragment,null,o&&d.createElement(p.vm,{iconName:o,$width:"spacing-24",$height:"spacing-24",$colorFilter:e.disabled?w:B,"aria-hidden":r})),Q=d.createElement(u.f,{$width:K,$height:K},d.createElement(b.D,{$width:K})),Z=d.createElement(d.Fragment,null,t&&!s?Q:J);return d.createElement(T,{className:y,$position:"relative",$width:void 0===_?"max-content":_,$height:void 0===h?"auto":h,$maxWidth:N,$hoverShadow:void 0===O?"drop-shadow-lemon":O},d.createElement(u.f,{className:"grey-shadow",$position:"absolute",$borderRadius:"border-radius-s",$width:"100%",$height:"100%",$top:"spacing-0"}),d.createElement(u.f,{className:"yellow-shadow",$position:"absolute",$borderRadius:"border-radius-s",$width:"100%",$height:"100%",$top:"spacing-0"}),d.createElement(f,(0,i.Cl)({element:void 0===a?"button":a,className:"internal-button",$ba:"border-solid-m",$background:I,$borderColor:E,$color:B,$pv:void 0===R?"spacing-12":R,$ph:void 0===$?"spacing-16":$,$pt:x,$pb:k,$pl:q,$pr:X,$borderRadius:"border-radius-s",$position:"relative",disabled:s||t,$width:"100%",$height:"100%",$hoverTextColor:C,$hoverBackground:A,$hoverBorderColor:U,$hoverUnderline:L,$defaultTextColor:B,$defaultBackground:I,$defaultBorderColor:E,$disabledTextColor:w,$disabledBackground:P,$disabledBorderColor:S,$display:void 0===j?"inline-block":j},z),d.createElement(c.J,{$flexDirection:void 0===D?"row":D,$alignItems:"center",$gap:void 0===H?"spacing-8":H,$justifyContent:"center",$width:m},!l&&Z,V?d.createElement(g,{font:M},n):d.createElement(v.W,{$font:M,$textAlign:void 0===Y?"left":Y},n),l&&Z)))},g=function(e){var a=e.textAlign,n=e.font,o=e.children;return d.createElement(u.f,{$position:"relative",$textAlign:a},d.createElement(v.W,{$font:n},o),d.createElement(B,{name:"underline","data-state":"selected","data-testid":"selected-underline"}))}},39636:(e,a,n)=>{Promise.resolve().then(n.bind(n,72377))},51026:(e,a,n)=>{"use strict";n.d(a,{A:()=>t});var o=n(72630),r=n(55036);let l={clientAppBaseUrl:{value:"https://www.thenational.academy",envName:"NEXT_PUBLIC_CLIENT_APP_BASE_URL",required:!0,availableInBrowser:!0,default:"http://localhost:3000"},releaseStage:{value:"production",envName:"NEXT_PUBLIC_RELEASE_STAGE",required:!0,availableInBrowser:!0,default:"development"},appVersion:{value:"0.0.0",envName:"NEXT_PUBLIC_APP_VERSION",required:!0,availableInBrowser:!0,default:null},bugsnagApiKey:{value:"88cca94d839a45bf1aa579997d8faeac",envName:"NEXT_PUBLIC_BUGSNAG_API_KEY",required:!0,availableInBrowser:!0,default:null},vercelApiUrl:{value:"https://api.thenational.academy",envName:"NEXT_PUBLIC_VERCEL_API_URL",required:!0,availableInBrowser:!0,default:null},downloadApiUrl:{value:"https://downloads-api.thenational.academy",envName:"NEXT_PUBLIC_DOWNLOAD_API_URL",required:!0,availableInBrowser:!0,default:null},seoAppName:{value:"Oak National Academy",envName:"NEXT_PUBLIC_SEO_APP_NAME",required:!1,availableInBrowser:!0,default:null},seoAppDescription:{value:"Browse and download Oak National Academy's lesson planning resources, find curriculum plans, and explore our AI lesson assistant - all completely free.",envName:"NEXT_PUBLIC_SEO_APP_DESCRIPTION",required:!1,availableInBrowser:!0,default:null},seoAppLocale:{value:"en_GB",envName:"NEXT_PUBLIC_SEO_APP_LOCALE",required:!1,availableInBrowser:!0,default:null},seoAppUrl:{value:"https://www.thenational.academy",envName:"NEXT_PUBLIC_SEO_APP_URL",required:!1,availableInBrowser:!0,default:null},seoAppLogo:{value:"/images/oak-national-academy-logo-512.png",envName:"NEXT_PUBLIC_SEO_APP_LOGO",required:!1,availableInBrowser:!0,default:null},seoAppFacebook:{value:"https://www.facebook.com/oaknationalacademy/",envName:"NEXT_PUBLIC_SEO_APP_FACEBOOK",required:!1,availableInBrowser:!0,default:null},seoAppTwitter:{value:"https://twitter.com/OakNational",envName:"NEXT_PUBLIC_SEO_APP_TWITTER",required:!1,availableInBrowser:!0,default:null},seoAppTwitterHandle:{value:"@oaknational",envName:"NEXT_PUBLIC_SEO_APP_TWITTER_HANDLE",required:!1,availableInBrowser:!0,default:null},searchApiUrl2023:{value:"https://curriculum-search-api.thenational.academy/v2",envName:"NEXT_PUBLIC_SEARCH_API_URL_2023",required:!0,availableInBrowser:!0,default:null},hubspotFormSubmissionUrl:{value:"https://hubspot-forms.thenational.academy/submissions/v3/integration/submit",envName:"NEXT_PUBLIC_HUBSPOT_FORM_SUBMISSION_URL",required:!0,availableInBrowser:!0,default:null},hubspotPortalId:{value:"19961797",envName:"NEXT_PUBLIC_HUBSPOT_PORTAL_ID",required:!0,availableInBrowser:!0,default:null},hubspotNewsletterFormId:{value:"9d8d9543-ba23-4196-9b7a-45bfb00b88e7",envName:"NEXT_PUBLIC_HUBSPOT_NEWSLETTER_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotDownloadsFormId:{value:"6b69f4e5-298a-4caf-9229-4981feadac22",envName:"NEXT_PUBLIC_HUBSPOT_DOWNLOADS_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotOnboardingFormId:{value:"be58fe9c-563c-4a8b-a5db-2d10b4d28d6c",envName:"NEXT_PUBLIC_HUBSPOT_ONBOARDING_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotFallbackFormId:{value:"4597efba-476d-4296-97a6-e814f4e3363d",envName:"NEXT_PUBLIC_HUBSPOT_FALLBACK_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotCurriculumDownloadsFormId:{value:"a572e8ef-5cfb-4f44-827a-014f347b1197",envName:"NEXT_PUBLIC_HUBSPOT_CURRICULUM_DOWNLOADS_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotScriptDomain:{value:"js.hs-scripts.com",envName:"NEXT_PUBLIC_HUBSPOT_SCRIPT_DOMAIN",required:!0,availableInBrowser:!0,default:null},posthogApiKey:{value:"phc_LCrtgEAumOz4qgXuJNqMK2xisQ4mGaApixHEPXeRRoN",envName:"NEXT_PUBLIC_POSTHOG_API_KEY",required:!0,availableInBrowser:!0,default:null},posthogApiHost:{value:"https://ph-eu-api.thenational.academy",envName:"NEXT_PUBLIC_POSTHOG_API_HOST",required:!0,availableInBrowser:!0,default:null},sanityProjectId:{value:"cuvjke51",envName:"NEXT_PUBLIC_SANITY_PROJECT_ID",required:!0,availableInBrowser:!0,default:null},sanityDataset:{value:"production",envName:"NEXT_PUBLIC_SANITY_DATASET",required:!0,availableInBrowser:!0,default:null},sanityRevalidateSeconds:{value:r.env.SANITY_REVALIDATE_SECONDS?Number.parseInt(r.env.SANITY_REVALIDATE_SECONDS,10):void 0,envName:"SANITY_REVALIDATE_SECONDS",required:!0,availableInBrowser:!0,default:60},sanityAssetCDNHost:{value:"sanity-asset-cdn.thenational.academy",envName:"NEXT_PUBLIC_SANITY_ASSET_CDN_HOST",required:!0,availableInBrowser:!0,default:null},pingdomUptimeId:{value:r.env.NEXT_PUBLIC_PINGDOM_UPTIME_ID,envName:"NEXT_PUBLIC_PINGDOM_UPTIME_ID",required:!0,availableInBrowser:!0,default:"d6-7d-b6-4b-74-15-da-2e-2c-3c-00-34-3b-5f-f5-44-03-0f-fc-9f-c9-ce-16-7c-97-42-16-ab-1a-2e-82-5d"}
1,gleapApiKey:{value:"0Qx0gN2UW6fzml9p9JzRK2sRcLDRRYmd",envName:"NEXT_PUBLIC_GLEAP_API_KEY",required:!0,availableInBrowser:!0,default:null},gleapApiUrl:{value:"https://feedback-api.thenational.academy",envName:"NEXT_PUBLIC_GLEAP_API_URL",required:!0,availableInBrowser:!0,default:null},gleapFrameUrl:{value:"https://gleap-messenger.thenational.academy",envName:"NEXT_PUBLIC_GLEAP_FRAME_URL",required:!0,availableInBrowser:!0,default:null},axeA11yLogging:{value:r.env.NEXT_PUBLIC_AXE_A11Y_LOGGING,envName:"NEXT_PUBLIC_AXE_A11Y_LOGGING",required:!1,availableInBrowser:!0,allowedValues:["on","off"],default:"off",description:"Logs accessibility concerns to the console. Should be disabled in production"},webinarSignUpUrl:{value:"https://share.hsforms.com/1USsrkazESq2Il8lxUx_vPgbvumd",envName:"NEXT_PUBLIC_WEBINAR_SIGN_UP_URL",required:!0,availableInBrowser:!0,description:"Sign up link for upcoming webinars",default:null},oakComponentsAssetsHost:{value:"res.cloudinary.com",envName:"NEXT_PUBLIC_OAK_ASSETS_HOST",required:!0,availableInBrowser:!0,default:null,description:"Host for assets needed by the oak-components package"},oakComponentsAssetsPath:{value:"oak-web-application/image/upload",envName:"NEXT_PUBLIC_OAK_ASSETS_PATH",required:!0,availableInBrowser:!0,default:null,description:"Remote path to assets served from `oakAssetsHost`. Required by the oak-components package"},cloudinaryCloudName:{value:"oaknationalacademy",envName:"NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME",required:!0,availableInBrowser:!0,default:null,description:"The secure Cloudinary instance serving user generated content"},cloudinarySecureDistribution:{value:"cloudinary-res.thenational.academy",envName:"NEXT_PUBLIC_CLOUDINARY_SECURE_DISTRIBUTION",required:!0,availableInBrowser:!0,default:null,description:"The private Cloudinary origin from which to serve user generated content"},oakConsentPoliciesUrl:{value:"https://consent.thenational.academy/v1/policies/",envName:"NEXT_PUBLIC_OAK_CONSENT_POLICIES_URL",required:!0,availableInBrowser:!0,default:null,description:"URL from which to fetch consent policies"},oakConsentLogUrl:{value:"https://consent.thenational.academy/v1/consent/",envName:"NEXT_PUBLIC_OAK_CONSENT_LOG_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to log consent choices to"},oakUserLogUrl:{value:"https://consent.thenational.academy/v1/user/",envName:"NEXT_PUBLIC_OAK_USER_LOG_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to log the first user visit to"},oakGetLessonAttemptUrl:{value:"https://pupil-api.thenational.academy/v1/get-lesson-attempt",envName:"NEXT_PUBLIC_GET_LESSON_ATTEMPT_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to get the lesson attempt"},oakLogLessonAttemptUrl:{value:"https://pupil-api.thenational.academy/v1/log-lesson-attempt",envName:"NEXT_PUBLIC_LOG_LESSON_ATTEMPT_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to log the lesson attempt"},oakGetTeacherNoteUrl:{value:"https://pupil-api.thenational.academy/v1/get-teacher-note",envName:"NEXT_PUBLIC_GET_TEACHER_NOTE_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to get the teacher note"},oakAddTeacherNoteUrl:{value:"https://pupil-api.thenational.academy/v1/add-teacher-note",envName:"NEXT_PUBLIC_ADD_TEACHER_NOTE_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to add the teacher note"},developmentUserRegion:{value:r.env.DEVELOPMENT_USER_REGION,envName:"DEVELOPMENT_USER_REGION",required:!1,availableInBrowser:!1,default:null,description:"The region to use in authentication when running in development mode"},sentryOrganisationIdentifier:{value:"oak-national-academy",envName:"NEXT_PUBLIC_SENTRY_ORGANISATION_IDENTIFIER",required:!0,availableInBrowser:!0,default:null,description:"The slug identifying the organisation within Sentry"},sentryProjectIdentifier:{value:"oak-web-application",envName:"NEXT_PUBLIC_SENTRY_PROJECT_IDENTIFIER",required:!0,availableInBrowser:!0,default:null,description:"The slug identifying the project within Sentry"},sentryDsn:{value:"https://b5bd9e9e1805b38c5e7a1d10d101e7f4@o4507089578754048.ingest.de.sentry.io/4508795238088785",envName:"NEXT_PUBLIC_SENTRY_DSN",required:!0,availableInBrowser:!0,default:null,description:"The DSN for the Sentry project"},sentryEnabled:{value:"undefined",envName:"NEXT_PUBLIC_SENTRY_ENABLED",required:!0,availableInBrowser:!0,default:"false",description:"Whether sentry is enabled or not"}};for(let[,e]of Object.entries(l)){let{value:a,required:n,availableInBrowser:r,default:l,envName:t}=e,i=n&&(!o.A||r),d=!!(a||l);if(i&&!d&&console.error(`- - - WARNING (getBrowserConfig): No config value found for required env var: 2- - - ${t}`),"allowedValues"in e&&a){let{allowedValues:n}=e;
2if(!n.includes(a))throw Error(`- - - ERROR invalid value found for env var: 3- - - ${t} 4- - - Found value: ${a} 5- - - Allowed values: ${n.join(", ")}`)}}let t=e=>{let{value:a,default:n,envName:r,required:t,availableInBrowser:i}=l[e]||{},d=(e=>{if("undefined"!==e)return e})(a),s=t&&(!o.A||i);if(void 0!==d&&!(s&&""===d))return d;if(null!=n)return n;throw Error(`getBrowserConfig('${e}') failed because there is no env value ${r}`)}},54679:(e,a,n)=>{"use strict";n.d(a,{_:()=>t});var o=n(64163),r=n(64721),l=n(20266),t=function(e){var a=e.element,n=(0,o.Tt)(e,["element"]);return r.createElement(l.k,(0,o.Cl)({element:null!=a?a:"button",defaultBorderColor:"text-primary",defaultBackground:"bg-btn-secondary",defaultTextColor:"text-primary",hoverBackground:"bg-btn-secondary-hover",hoverBorderColor:"text-primary",hoverTextColor:"text-primary",hoverUnderline:!0,disabledBackground:"bg-btn-secondary-disabled",disabledBorderColor:"text-disabled",disabledTextColor:"text-disabled"},n))}},72377:(e,a,n)=>{"use strict";n.d(a,{SimulateErrorControls:()=>c});var o=n(48789),r=n(68453),l=n(54679),t=n(64721),i=n(38991),d=n(51026),s=n(55036);let u=(0,i.Ay)(r.f).withConfig({componentId:"sc-c6ed5bfb-0"})(["position:fixed;left:48px;bottom:","px;"],e=>(e=>"core"===e?144:"root"===e?84:24)(e.level)),c=e=>{let{errorBoundaryLevel:a}=e,[n,r]=(0,t.useState)(!1),i="true"===s.env.NEXT_PUBLIC_SIMULATE_ERROR,c="development"===(0,d.A)("releaseStage");return i&&c?n?(0,o.jsx)(v,{}):(0,o.jsx)(u,{$zIndex:"in-front",level:a,children:(0,o.jsxs)(l._,{onClick:()=>r(!0),iconName:"warning",children:["Simulate ",a," error"]})}):null},v=()=>{throw Error("Mock error")}},72630:(e,a,n)=>{"use strict";n.d(a,{A:()=>o});let o=!0}},e=>{e.O(0,[4542,9781,2549,5571,5169,7358],()=>e(e.s=39636)),_N_E=e.O()}]); 6//# sourceMappingURL=layout-602a8c3824ca7fcb.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.