PageSourceSearch

https://www.euhu.co.uk/_next/static/chunks/pages/__builder_preview…/[[...previewPath]]-71e4b983065c241d.js

js euhu.co.uk collected 2026-10-04 05:20:33 UTC 17,710 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4495],{27211:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/__builder_preview/intro-header-preview/[[...previewPath]]",function(){return i(65671)}])},31999:function(e,t,i){"use strict";let s=i(67294),a=s.forwardRef(function(e,t){let{title:i,titleId:a,...n}=e;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":a},n),i?s.createElement("title",{id:a},i):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))});e.exports=a},48346:function(e,t,i){"use strict";i.d(t,{y:function(){return c}});var s=i(85893),a=i(18202),n=i(33299);i(67294);var l=i(50239),r=i(68183),d=i(60621);function c(e){let{builderContent:t}=e,i=(0,a.useIsPreviewing)(),l=(0,n.useSession)();return t||i?(0,s.jsx)(a.BuilderComponent,{model:"intro-header-section",content:t||{},renderLink:r.Link,data:(0,d.i)({session:l.data})}):null}a.builder.init(l.O.NEXT_PUBLIC_BUILDER_API_KEY,!1)},22527:function(e,t,i){"use strict";i.d(t,{o:function(){return o}});var s=i(85893),a=i(18202),n=i(33299);i(67294);var l=i(50239),r=i(68183),d=i(83915),c=i(60621);function o(e){let{contentKey:t}=e,i=(0,n.useSession)(),l=(0,a.useIsPreviewing)(),o=d.h.builder.getSubNavigationSection.useQuery({contentKey:null!=t?t:""},{enabled:!!t,retry:!1,refetchOnWindowFocus:!1});if(t||l){var u;return(0,s.jsx)(a.BuilderComponent,{model:"sub-navigation",data:(0,c.i)({session:i.data}),content:(null===(u=o.data)||void 0===u?void 0:u.builderContent)||{},renderLink:r.Link})}return null}a.builder.init(l.O.NEXT_PUBLIC_BUILDER_API_KEY,!1)},83688:function(e,t,i){"use strict";i.d(t,{w:function(){return r}});var s=i(85893),a=i(94184),n=i.n(a),l=i(11163);function r(e){let{children:t,className:i,tag:a="div",variant:r="default"}=e,d=(0,l.useRouter)(),c=t.startsWith("<")?t:"<p>".concat(t,"</p>");return(0,s.jsx)(a,{onClick:e=>{!(!(e.target instanceof HTMLAnchorElement)||[e.altKey,e.ctrlKey,e.shiftKey,e.metaKey].some(Boolean))&&e.target.href.startsWith("/")&&(e.preventDefault(),d.push(e.target.href))},className:n()(i,"prose-a:font-black prose-a:text-teal","hover:prose-a:text-teal-light focus:prose-a:text-teal-dark","default"===r&&"prose max-w-none","tight"===r&&"prose prose-tight max-w-none leading-snug"),dangerouslySetInnerHTML:{__html:c}})}i(67294)},18810:function(e,t,i){"use strict";i.d(t,{JG:function(){return c},ap:function(){return d}});var s=i(85893),a=i(20557),n=i(25675),l=i.n(n),r=i(67294);let d=e=>{let{src:t,width:i,quality:s}=e;return"".concat(encodeURI(t),"?width=").concat(i,"&quality=").concat(null!=s?s:80)};function c(e){let{fallbackSrc:t=a.A,...i}=e,[n,d]=(0,r.useState)(i.src);return(0,r.useEffect)(()=>{d(i.src)},[i.src]),(0,s.jsx)(l(),{...i,src:n,onError:()=>{d(t)}})}},72901:function(e,t,i){"use strict";i.d(t,{O:function(){return m}});var s=i(85893);i(67294);var a=i(84849),n=i(90151),l=i(83688),r=i(94184),d=i.n(r),c=i(48346),o=i(19568),u=i(17376),h=i(60925);function m(e){let{isLoading:t,title:i,body:r,className:m,builderContent:p,variant:g="default",disableBuilderComponent:v=!1,icon:j="default"}=e,b=x(g),w=f(g),y=r?(0,s.jsx)(l.w,{...w,children:r}):null;return"profile"===g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.m,{thumbnailArea:(0,s.jsx)(h.Q,{type:"icon",icon:"cpd"===j?(0,s.jsx)(u._r,{}):(0,s.jsx)(u.tB,{})}),title:i,titleArea:y}),!v&&(0,s.jsx)(c.y,{builderContent:p})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:d()(m,"access"===g&&"flex flex-col gap-4 text-center"),children:[(0,s.jsx)(n.C,{...b,children:t?(0,s.jsx)(a.Z,{inline:!0,width:"10rem"}):i}),t?(0,s.jsx)("div",{className:w.className,children:(0,s.jsx)(a.Z,{count:2})}):y]}),!v&&(0,s.jsx)(c.y,{builderContent:p})]})}let x=e=>{switch(e){case"access":return{disableMargin:!0};case"profile":return{disableMargin:!0,size:"large",className:"mb-2"}}return{size:"large",disableMargin:!0,className:"mb-2"}},f=e=>{switch(e){case"access":break;case"profile":return{className:"mb-2",variant:"tight"}}return{variant:"tight"}}},90151:function(e,t,i){"use strict";i.d(t,{C:function(){return c}});var s=i(85893);
1i(67294);var a=i(31999),n=i.n(a),l=i(90048),r=i(94184),d=i.n(r);function c(e){return(0,s.jsxs)("h1",{className:d()("font-black",{"mb-4":!e.disableMargin,"flex items-center gap-2":!!e.backPath,"text-h3":"small"===e.size,"text-h2":!e.size||"regular"===e.size,"text-h1":"large"===e.size},e.className),"data-testid":e["data-testid"]?e["data-testid"]:"page-heading",children:[e.backPath&&(0,s.jsx)("div",{className:"mt-[0.125em]",children:(0,s.jsx)(l.Qj,{href:e.backPath,title:"Back",color:"default",variant:"text",size:"custom",block:!0,children:(0,s.jsx)(n(),{className:"h-[1em] w-[1em]","data-testid":e["data-testid"]?"".concat(e["data-testid"],"-back-button"):"page-heading-icon-back-button"})})}),e.children]})}},38498:function(e,t,i){"use strict";i.d(t,{u:function(){return r}});var s=i(85893);i(67294);var a=i(51606),n=i(94184),l=i.n(n);function r(e){return(0,s.jsxs)(a.fC,{children:[(0,s.jsx)(a.xz,{asChild:!0,children:e.children}),(0,s.jsx)(a.h_,{children:(0,s.jsxs)(a.VY,{className:l()("z-40 rounded-lg bg-white p-[10px]","border border-grey","max-w-xs","data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade","data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFadedata-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade","data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade","select-none leading-tight will-change-[transform,opacity]"),children:[e.title,(0,s.jsx)(a.Eh,{width:10,height:10,style:{clipPath:"polygon(0% 1px, 100% 1px, 100% 100%, 0% 100%)"},className:"-m-[1px] fill-white stroke-grey stroke-2"})]})})]})}},99504:function(e,t,i){"use strict";i.d(t,{C:function(){return w}});var s=i(85893),a=i(94184),n=i.n(a),l=i(41664),r=i.n(l),d=i(11163);i(67294);var c=i(65958),o=i(59960),u=i(83688),h=i(48346),m=i(22527),x=i(19568),f=i(17376),p=i(38498),g=i(74486),v=i(84849),j=i(42255);let b=(e,t)=>n()("relative","-mb-px rounded-t px-2 py-1 sm:px-4 sm:py-2 md:px-6 md:py-4","text-base max-[400px]:text-sm sm:text-h3 font-black","border",{"border-grey bg-white text-primary":!e,"border-teal bg-teal text-white z-10":e,"opacity-50 cursor-not-allowed":t});function w(e){var t,i,a,l,w;let{thumbnailArea:y,title:N,titleActionArea:A,titleTooltip:k,tabs:C,children:P,padChildren:E,showViewToggle:_=!1,hideBaseLayout:z=!1,subNavContentKey:B=null,fullWidth:L=!1,cpdArea:U}=e,I=(0,d.useRouter)(),O=I.asPath.includes("/viewer/"),T="create"===I.query.id,R=(0,o.f)(),{title:S,body:Z}=(null===(t=R.data)||void 0===t?void 0:t.data)||{},W=e=>{let t=(0,s.jsxs)("div",{className:b(!!e.selected,!!e.disabled),children:[e.title,!!e.badgeText&&(0,s.jsx)("span",{className:"absolute -right-1 -top-1 flex min-w-[1.5rem] items-center justify-center rounded-full bg-error px-2 text-center text-sm font-normal leading-6 text-white",children:e.badgeText})]});return e.disabled?(0,s.jsx)("div",{children:t}):(0,s.jsx)(r(),{"data-testid":e["data-testid"],className:"gtm-side-nav-link block",href:e.href,onClick:e.onClick,rel:"nofollow",children:t})};return(0,s.jsxs)(c.Z,{hideWrapper:z,fullWidth:!0===L||"body"===L,children:[(0,s.jsx)(m.o,{contentKey:B}),(0,s.jsxs)("main",{className:"mx-auto",children:[(0,s.jsxs)("div",{className:n()("mb-4","body"===L&&"container mx-auto px-2 py-4"),children:[(0,s.jsx)(x.m,{thumbnailArea:y,title:S||N,titleTooltip:k,actionSubArea:U,actionArea:(0,s.jsxs)(s.Fragment,{children:[_&&!T&&(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 roun
1ded bg-primary/10 px-4 py-2 font-black text-primary",children:[O?"View":"Edit"," Mode"]}),(0,s.jsx)(p.u,{title:"Switch to ".concat(O?"Edit":"View"," Mode"),children:(0,s.jsx)(j.x6,{variant:"header",href:O?I.asPath.replace("/viewer/","/editor/"):I.asPath.replace("/editor/","/viewer/").replace("/image","/details"),className:n()({"gtm-lesson-edit":O,"gtm-lesson-view":!O}),children:O?(0,s.jsx)(f.dY,{className:"h-6 w-6"}):(0,s.jsx)(f.ON,{className:"h-6 w-6"})})})]}),A]})}),Z&&(0,s.jsx)(u.w,{variant:"tight",children:Z})]}),(null===(i=R.data)||void 0===i?void 0:i.builderContent)&&(0,s.jsx)(h.y,{builderContent:null===(a=R.data)||void 0===a?void 0:a.builderContent}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("nav",{className:"",children:[(0,s.jsx)("ul",{className:"hidden items-center gap-2 sm:flex md:gap-4",children:C.map(e=>(0,s.jsx)("li",{children:W(e)},e.href))}),(0,s.jsx)(g.L,{disabled:T,items:C.map(e=>({type:"link",content:e.title,href:e.href,disabled:e.disabled,selected:e.selected})),children:(0,s.jsxs)("button",{className:"flex w-full grow items-center gap-4 roun
1ded border border-grey bg-white px-4 py-2 text-primary outline-teal disabled:opacity-40 sm:hidden",children:[null!==(w=null===(l=C.find(e=>!0===e.selected))||void 0===l?void 0:l.title)&&void 0!==w?w:(0,s.jsx)(v.Z,{className:"h-4",containerClassName:"w-full"}),(0,s.jsx)(f.v4,{className:"ml-auto h-6 w-6"})]})})]}),(0,s.jsx)("div",{className:n()("relative mt-4 grow rounded-b-lg rounded-t border border-grey bg-white sm:mt-0 sm:rounded-t-none",{"p-4":E}),children:P})]})]})]})}},19568:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(85893);i(67294);var a=i(90151),n=i(38498),l=i(17376),r=i(42255);function d(e){let{actionArea:t,title:i,titleTooltip:d,titleArea:c,thumbnailArea:o,backPath:u,actionSubArea:h}=e;return(0,s.jsxs)("header",{className:"mb-4 gap-10 sm:mb-10 lg:flex",children:[o&&(0,s.jsxs)("div",{className:"relative hidden w-full max-w-[10rem] lg:block",children:[o&&u&&(0,s.jsx)(n.u,{title:"Back",children:(0,s.jsx)(r.x6,{href:u,variant:"image",className:"absolute left-0 top-0 z-40",children:(0,s.jsx)(l.xC,{className:"h-6 w-6"})})}),o]}),(0,s.jsx)("div",{className:" flex grow flex-col lg:col-span-10 lg:justify-center",children:(0,s.jsxs)("div",{className:"lg:flex",children:[(0,s.jsxs)("div",{className:"space-y-2 lg:grow",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[!o&&u&&(0,s.jsx)(n.u,{title:"Back",children:(0,s.jsx)(r.x6,{href:u,variant:"image",className:"mt-1",children:(0,s.jsx)(l.xC,{className:"h-6 w-6"})})}),(0,s.jsxs)(a.C,{size:"large",className:"leading-tight lg:leading-normal",disableMargin:!0,children:[i,d&&(0,s.jsx)(n.u,{title:d,children:(0,s.jsx)(r.hU,{variant:"columnHeader",className:"relative -top-1 ml-2",children:(0,s.jsx)(l.sz,{className:"h-5 w-5"})})})]})]}),c]}),t||h?(0,s.jsxs)("div",{className:"mt-4 flex flex-col gap-4 lg:mt-0 lg:shrink-0",children:[t&&(0,s.jsx)("div",{className:"flex max-w-xl justify-start gap-2 lg:justify-end",children:t}),h&&(0,s.jsx)("div",{className:"flex  justify-start gap-2 lg:justify-end",children:h})]}):null]})})]})}},60925:function(e,t,i){"use strict";i.d(t,{Q:function(){return h}});var s=i(85893),a=i(94184),n=i.n(a),l=i(67294),r=i(42255),d=i(17376),c=i(25675),o=i.n(c),u=i(18810);function h(e){let t="image"===e.type&&!!(e.onDeleteClick||e.onUploadClick)&&e.canEdit;return(0,s.jsx)("section",{className:n()("relative py-0"),children:(0,s.jsxs)("div",{className:"group relative flex aspect-square items-center justify-center rounded-full bg-grey",children:[(0,s.jsx)("div",{className:"absolute left-[5%] top-[5%] -z-10 aspect-square w-[15%] rounded-full bg-purple"}
1),(0,s.jsx)("div",{className:"absolute right-0 top-0 -z-10 aspect-square w-[30%] rounded-full bg-yellow"}),(0,s.jsx)("div",{className:"absolute -bottom-[3%] left-0 -z-10 aspect-square w-[40%] rounded-full bg-orange"}),(0,s.jsx)("div",{className:"absolute bottom-[1.5%] right-[1.5%] -z-10 aspect-square w-[20%] rounded-full bg-red"}),"icon"===e.type&&(0,s.jsx)("div",{className:"flex aspect-square w-full items-center justify-center rounded-full border-2 border-teal bg-white",children:l.cloneElement(e.icon,{className:"h-[60%] w-[60%] text-teal"})}),"image"===e.type&&e.thumbnailUrl&&(0,s.jsx)(o(),{placeholder:"empty",alt:"Thumbnail",src:e.thumbnailUrl,width:210,height:210,loader:u.ap,className:n()("pointer-events-none absolute inset-0 z-10 w-full rounded-full opacity-100 transition-opacity duration-200",t&&"group-focus-within:opacity-0 group-hover:opacity-0")}),"image"===e.type&&e.canEdit&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[e.onUploadClick&&(0,s.jsx)(r.hU,{variant:"image",size:"md",onClick:e.onUploadClick,children:(0,s.jsx)(d.rG,{className:"h-[1.5em] w-[1.5em]"})}),e.onDeleteClick&&e.thumbnailUrl&&(0,s.jsx)(r.hU,{variant:"image",size:"md",onClick:e.onDeleteClick,children:(0,s.jsx)(d.Tw,{className:"h-[1.5em] w-[1.5em]"})})]})]})})}},59960:function(e,t,i){"use strict";i.d(t,{f:function(){return l}});var s=i(18202),a=i(11163),n=i(83915);function l(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{asPath:l,isReady:r,query:d}=(0,a.useRouter)(),c=(0,s.useIsPreviewing)(),o="string"==typeof d.previewPath?"/".concat(d.previewPath):Array.isArray(d.previewPath)&&d.previewPath.length>0?"/".concat(d.previewPath.join("/")):null;return n.h.builder.getIntroHeader.useQuery({basePath:null!==(t=null!==(e=i.urlPathOverride)&&void 0!==e?e:o)&&void 0!==t?t:l,preview:c},{enabled:r})}},65671:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return v}});var s=i(85893),a=i(18202),n=i(11163),l=i(84849),r=i(48346),d=i(90048),c=i(70544),o=i(72901),u=i(7920),h=i(65958),m=i(99504),x=i(63208),f=i(59960);function p(e){return"string"==typeof e.previewPath?"/".concat(e.previewPath):Array.isArray(e.previewPath)&&e.previewPath.length>0?"/".concat(e.previewPath.join("/")):null}let g=e=>e.startsWith("/password-reset")||e.startsWith("/sign-up")||e.startsWith("/sign-in")?"access":e.startsWith("/profile")?"profile":e.startsWith("/content/editor")||e.startsWith("/plans")?"content":"lister";function v(){let e=(0,n.useRouter)(),t=(0,a.useIsPreviewing)(),i=p(e.query),l=g(null!=i?i:"");return e.isReady?t?(0,s.jsx)("div",{children:(0,s.jsx)(j,{type:l,previewPath:i||void 0})}):(0,s.jsx)("div",{children:"404"}):null}function j(e){let{type:t,previewPath:i}=e;return"access"===t?(0,s.jsx)(b,{previewPath:i}):"lister"===t?(0,s.jsx)(w,{}):"profile"===t?(0,s.jsx)(y,{}):"content"===t?(0,s.jsx)(N,{}):null}function b(e){var t;let{previewPath:i}=e,a=(0,f.f)({urlPathOverride:i}),{title:n="[Title]",body:h="[Body]"}=(null===(t=a.data)||void 0===t?void 0:t.data)||{};return(0,s.jsxs)("main",{className:"flex grow flex-col justify-center",children:[(0,s.jsxs)(u.s,{className:"relative mx-auto w-full max-w-sm",children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-4 text-center",children:[(0,s.jsx)("div",{className:"mb-2 flex justify-center",children:(0,s.jsx)(x.d,{className:"w-32"})}),(0,s.jsx)(o.O,{variant:"access",title:n,body:h,isLoading:a.isLoading,disableBuilderComponent:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(c._,{children:(0,s.jsx)(l.Z,{inline:!0,width:"5rem",enableAnimation:!1})}),(0,s.jsx)(l.Z,{height:"2rem",enableAnimation:!1})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c._,{children:(0,s.jsx)(l.Z,{inline:!0,width:"5rem",enableAnimation:!1})}),(0,s.jsx)(l.Z,{height:"2rem",enableAnimation:!1})]}),(0,s.jsx)("div",{children:(0,s.jsx)(d.zx,{block:!0,submit:!0,disabled:!0,"data-testid":"submit-button",children:"Submit"})})]})]}),(0,s.jsx)(r.y,{})]})}function w(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.O,{title:"[Title]",body:"[Body]"}),(0,s.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-4 xl:grid-cols-5 2xl:gr
1id-cols-6",children:Array.from({length:18}).map((e,t)=>(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-4 z-10 text-primary/50 transition duration-500 hover:text-primary",children:"Example Content"}),(0,s.jsx)(l.Z,{style:{paddingBottom:"100%"},enableAnimation:!1})]},t))})]})}function y(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.O,{title:"[Title]",body:"[Body]",variant:"profile"}),(0,s.jsxs)("div",{className:"grid min-h-[20rem] gap-4 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-4",children:[(0,s.jsxs)("div",{className:"relative md:col-span-1",children:[(0,s.jsx)("div",{className:"absolute inset-4 z-10 text-primary/50 transition duration-500 hover:text-primary",children:"Example Content"}),(0,s.jsx)(l.Z,{height:"100%",enableAnimation:!1})]}),(0,s.jsxs)("div",{className:"relative md:col-span-3",children:[(0,s.jsx)("div",{className:"absolute inset-4 z-10 text-primary/50 transition duration-500 hover:text-primary",children:"Example Content"}),(0,s.jsx)(l.Z,{height:"100%",containerClassName:"h-full",enableAnimation:!1})]})]})]})}function N(){return(0,s.jsx)(m.C,{title:"[Title]",hideBaseLayout:!0,tabs:[{href:"#",title:"Details",selected:!0,disabled:!0},{href:"#",title:"Sections",selected:!1,disabled:!0},{href:"#",title:"Suggested",selected:!1,disabled:!0},{href:"#",title:"Files",selected:!1,disabled:!0}],children:(0,s.jsxs)("div",{className:"relative p-2",children:[(0,s.jsx)("div",{className:"absolute inset-4 z-10 text-primary/50 transition duration-500 hover:text-primary",children:"Example Content"}),(0,s.jsx)(l.Z,{height:"100%",enableAnimation:!1,className:"min-h-[20rem]"})]})})}function A(e){let t=p((0,n.useRouter)().query),i=["profile","access"].includes(g(null!=t?t:""));return(0,s.jsx)(h.Z,{enableBgShading:i,children:e.children})}v.getLayout=e=>(0,s.jsx)(A,{children:e})},20557:function(e,t,i){"use strict";i.d(t,{A:function(){return s}});let s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=27211)}),_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.