1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,169274,e=>{"use strict";var t=e.i(438232),s=e.i(15010),l=e.i(677160),a=e.i(745011),n=e.i(471436),r=e.i(718813);e.i(167225);var i=e.i(657688),o=e.i(363512),c=e.i(411396),d=e.i(940692);let x=e=>(0,t.jsxs)("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_4559_3735)",children:[(0,t.jsx)("path",{d:"M12 5.3335C13.1046 5.3335 14 4.43807 14 3.3335C14 2.22893 13.1046 1.3335 12 1.3335C10.8954 1.3335 10 2.22893 10 3.3335C10 4.43807 10.8954 5.3335 12 5.3335Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M4 10C5.10457 10 6 9.10457 6 8C6 6.89543 5.10457 6 4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M12 14.6665C13.1046 14.6665 14 13.7711 14 12.6665C14 11.5619 13.1046 10.6665 12 10.6665C10.8954 10.6665 10 11.5619 10 12.6665C10 13.7711 10.8954 14.6665 12 14.6665Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M5.72656 9.00684L10.2799 11.6602",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M10.2732 4.33984L5.72656 6.99318",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_4559_3735",children:(0,t.jsx)("rect",{fill:"white",height:"16",width:"16"})})})]}),p=({...e})=>(0,t.jsx)("button",{"aria-label":"Share",className:"flex h-8 w-10 items-center justify-center border border-purple-80 bg-white hover:bg-purple-80",...e,children:(0,t.jsx)(x,{})});var u=e.i(360781);let h=({icon:e,label:s,...l})=>(0,t.jsxs)("button",{"aria-label":`Share via ${s}`,type:"button",...l,className:(0,a.cn)("flex items-center gap-3 border border-purple-80 bg-white px-4 py-3 text-left transition-shadow focus:outline-none focus:shadow-[0_0_0_4px_rgba(55,19,118,0.08)]",l.className),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"size-8 text-purple",children:e}),(0,t.jsx)("span",{className:"text-base font-semibold",children:s})]});var m=e.i(532229),j=e.i(585643),f=e.i(711682);let g=e=>(0,t.jsxs)("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{d:"M2 4h12v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M2 4l6 4 6-4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"})]}),k=({id:e="share-modal",title:l="Share Resource",shareUrl:a,sharingText:n,onClose:i})=>{let o,c,[d,x]=(0,s.useState)(!1),p=(o=encodeURIComponent(a),c=encodeURIComponent(n??""),{x:`https://twitter.com/intent/tweet?text=${c}&url=${o}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${o}`,linkedin:`https://www.linkedin.com/shareArticle?mini=true&url=${o}&title=${c}`,whatsapp:`https://api.whatsapp.com/send?text=${c}%20${o}`,email:`mailto:?subject=${c}&body=${o}`}),k=async()=>{try{await navigator.clipboard.writeText(a),x(!0),setTimeout(()=>x(!1),2e3)}catch(e){console.error("Copy failed",e)}};return(0,t.jsx)(u.Modal,{id:e,onClose:i,title:l,children:(0,t.jsxs)("div",{className:"space-y-6 p-6 md:px-8",children:[(0,t.jsx)("p",{className:"text-muted",children:`Share "${n}" via social media or email`}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(h,{icon:(0,t.jsx)(f.default,{className:"size-8 fill-purple"}),label:"Twitter",onClick:()=>window.open(p.x,"_blank")}),(0,t.jsx)(h,{icon:(0,t.jsx)(m.default,{className:"size-8 fill-purple"}),label:"Facebook",onClick:()=>window.open(p.facebook,"_blank")}),(0,t.jsx)(h,{icon:(0,t.jsx)(j.default,{className:"size-8 fill-purple"}),label:"LinkedIn",onClick:()=>window.open(p.linkedin,"_blank")}),(0,t.jsx)(h,{icon:(0,t.jsx)(g,{className:"size-8 text-purple"}),label:"Email",onClick:()=>window.location.href=p.email})]}),(0,t.jsx)("div",{className:"pt-4",children:(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("input",{"aria-label":"Share URL",className:"flex h-12 w-full appearance-none flex-row rounded-full border-2 border-purple-80 bg-white py-[10px] pl-6 pr-4 outline-none",id:"share-url",readOnly:!0,value:a}),(0,t.jsx)(r.Button,{color:"purple",mode:"button",onClick:k,variant:"primary",children:d?"Copied":"Copy"})]})})]})})},w=({label:e,icon:s,className:l,buttonVariant:n="primary",...r})=>{let i=(0,a.cn)("flex h-8 items-center gap-2 rounded-full border border-solid border-purple-80 bg-white px-3 hover:bg-purple-80",l,"primary"===n?"bg-purple text-white":"bg-white text-purple");return(0,t.jsxs)("button",{"aria-label":e,className:i,...r,children:[s,(0,t.jsx)("span",{className:"text-nowrap font-semibold",children:e})]})},b=e=>(0,t.jsxs)("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_4559_4118)",children:[(0,t.jsx)("path",{d:"M12.6667 7.3335H3.33333C2.59695 7.3335 2 7.93045 2 8.66683
1V13.3335C2 14.0699 2.59695 14.6668 3.33333 14.6668H12.6667C13.403 14.6668 14 14.0699 14 13.3335V8.66683C14 7.93045 13.403 7.3335 12.6667 7.3335Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M4.66663 7.3335V4.66683C4.66663 3.78277 5.01782 2.93493 5.64294 2.30981C6.26806 1.68469 7.1159 1.3335 7.99996 1.3335C8.88401 1.3335 9.73186 1.68469 10.357 2.30981C10.9821 2.93493 11.3333 3.78277 11.3333 4.66683V7.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_4559_4118",children:(0,t.jsx)("rect",{fill:"white",height:"16",width:"16"})})})]}),v=({label:e="Log in to myAQA",...s})=>(0,t.jsxs)("button",{className:"flex h-8 items-center gap-2 rounded-full bg-purple px-3 text-white",...s,children:[(0,t.jsx)(b,{}),(0,t.jsx)("span",{className:"font-semibold text-white",children:e})]}),N=e=>(0,t.jsxs)("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("g",{clipPath:"url(#clip0_4559_3958)",children:(0,t.jsx)("path",{d:"M1.33325 6.3332C1.33327 5.59133 1.55831 4.86692 1.97867 4.25564C2.39903 3.64436 2.99493 3.17497 3.68766 2.90946C4.38039 2.64396 5.13736 2.59483 5.85859 2.76856C6.57983 2.94229 7.2314 3.33072 7.72725 3.88253C7.76218 3.91987 7.8044 3.94964 7.8513 3.97C7.89821 3.99035 7.94879 4.00085 7.99992 4.00085C8.05105 4.00085 8.10163 3.99035 8.14853 3.97C8.19544 3.94964 8.23766 3.91987 8.27259 3.88253C8.76688 3.32713 9.4186 2.93544 10.141 2.7596C10.8634 2.58375 11.6222 2.6321 12.3165 2.89819C13.0108 3.16428 13.6075 3.6355 14.0273 4.24913C14.4471 4.86276 14.6701 5.5897 14.6666 6.3332C14.6666 7.85986 13.6666 8.99986 12.6666 9.99986L9.00525 13.5419C8.88103 13.6845 8.72787 13.7991 8.55595 13.8781C8.38403 13.957 8.19728 13.9984 8.00811 13.9996C7.81894 14.0008 7.63168 13.9618 7.45878 13.885C7.28587 13.8083 7.13127 13.6956 7.00525 13.5545L3.33325 9.99986C2.33325 8.99986 1.33325 7.86653 1.33325 6.3332Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_4559_3958",children:(0,t.jsx)("rect",{fill:"white",height:"16",width:"16"})})})]}),C=({isActive:e=!1,isDisabled:s=!1,label:l,...n})=>(0,t.jsx)(r.Button,{...n,"aria-label":l??"Add to favourites",className:(0,a.cn)("h-8 w-10 p-0 flex items-center justify-center !rounded-none hover:bg-purple-80",e?"!border-red":"!border-purple-80"),color:"purple",mode:"button",variant:"icon",children:(0,t.jsx)(N,{className:(0,a.cn)(e?"fill-red text-red":s?"text-black-10":"text-red")})});var y=e.i(23251);let L=({isExpanded:e=!1,...s})=>(0,t.jsx)("button",{"aria-label":e?"Collapse":"Expand",className:"flex size-7 shrink-0 cursor-pointer items-center justify-center",type:"button",...s,children:(0,t.jsx)(y.default,{className:(0,a.cn)("size-3 fill-purple",e?"rotate-0":"rotate-180")})}),B=s.useLayoutEffect;function F(e,t,l,a={}){let n=a.tolerance??1,[r,i]=(0,s.useState)(!1),o=(0,s.useCallback)(()=>{let t=e.current;t&&i(t.scrollHeight>t.clientHeight+n)},[e,n]),c=(0,s.useCallback)(()=>{l||o()},[l,o]);return B(()=>{let e=requestAnimationFrame(c);return()=>cancelAnimationFrame(e)},[l,c,...t]),(0,s.useEffect)(()=>{let e=()=>{requestAnimationFrame(c)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[c]),r}let M=({actionButtonIcon:e,actionButtonLabel:l,actionButtonVariant:n,args:x,authors:u,badge:h,badgeVariant:m,gridLayout:j=!1,hideExpandToggle:f=!1,highlightText:g,id:b,image:N,imageAlt:y,isDownloadable:B,isExpanded:M=!1,isFavourite:V,link:T,linkTarget:$,locked:D,metadata:P,onActionButtonClick:S,onAddToCalendar:A,onIconClick:_,onItemClick:z,onQuickLinkClick:W,onToggleExpand:I,publisher:E,quickFilters:R,showFavouriteButton:H=!0,showLockedState:U=!1,showShareButton:q=!0,subtitle:Z,summary:O,timeToRead:Q,title:K,type:G})=>{let J=(0,s.useRef)(null),X=(0,s.useRef)(null),Y=F(J,[K],M),ee=F(X,[Z],M),et=!f&&(O||Y||ee),[es,el]=(0,s.useState)(!1),ea=()=>{_?.()}
1,[en,er]=(0,s.useState)(!1),ei=N?(0,d.default)(D?"locked":N,y??K):null,eo=()=>{if("textbook"===G)return"bg-[#EFF6FF]";switch(N){case"pdf":return"bg-[#FEF2F2]";case"cal":default:return"bg-purple-translucent";case"excel":case"uas":return"bg-[#F0FDF4]";case"locked":case"docx":return"bg-[#EFF6FF]";case"ppt":return"bg-[#FFFBEB]"}},ec="string"==typeof N&&(N.startsWith("/")||N.startsWith("http")),ed=()=>N?j&&ec?(0,t.jsx)("div",{className:"relative aspect-[16/9] w-full overflow-hidden",children:(0,t.jsx)(i.default,{alt:y||K,className:"size-full object-cover",fill:!0,src:N})}):j?(0,t.jsx)("div",{className:(0,a.cn)("relative flex aspect-[16/9] w-full items-center justify-center",eo()),children:ei&&(0,t.jsx)("div",{className:"z-[5] size-16",children:ei})}):ec?"textbook"===G?(0,t.jsx)("div",{className:(0,a.cn)("relative flex size-16 shrink-0 items-center justify-center",eo()),children:(0,t.jsx)(i.default,{alt:y||K,className:"z-[5] h-12 w-auto object-contain",height:48,src:N,width:34})}):(0,t.jsx)("div",{className:"flex size-16 shrink-0 items-center justify-center overflow-hidden",children:(0,t.jsx)(i.default,{alt:y||K,className:"size-full object-cover",height:128,src:N,width:128})}):(0,t.jsx)("div",{className:(0,a.cn)("relative flex size-16 shrink-0 items-center justify-center",eo()),children:ei&&(0,t.jsx)("div",{className:"z-[5] size-12",children:ei})}):null,ex=e=>R&&0!==R.length?(0,t.jsxs)("div",{className:e,children:[(0,t.jsxs)("div",{className:(0,a.cn)("flex flex-row gap-1",j?"flex-wrap":"flex-nowrap overflow-hidden"),children:[R.slice(0,3).map((e,s)=>(0,t.jsx)(r.Button,{className:"flex h-5 max-w-[300px] items-center gap-2 px-2 text-xs lg:text-xs",color:"custom",customColor:e.colour,customHoverColor:`${e.colour}`,mode:"button",onClick:t=>{t.stopPropagation(),t.preventDefault(),W?.(e.facet,e.value)},title:e.title,variant:"primary",children:(0,t.jsx)("span",{children:e.title})},s)),R.length>3&&(0,t.jsx)("span",{className:"flex h-5 flex-row items-center gap-2 px-2 text-xs font-semibold leading-6",onClick:e=>{e.stopPropagation(),e.preventDefault(),er(!en)},children:en?"hide":`+ ${R.length-3}${!j?" more":""}`})]}),en&&(0,t.jsx)("div",{className:(0,a.cn)("flex gap-1",j?"mt-1 flex-wrap":"pt-2"),children:R.slice(3).map((e,s)=>(0,t.jsx)(r.Button,{className:"flex h-5 max-w-[300px] items-center gap-2 px-2 text-xs lg:text-xs",color:"custom",customColor:e.colour,customHoverColor:`${e.colour}`,mode:"button",onClick:t=>{t.stopPropagation(),t.preventDefault(),W?.(e.facet,e.value)},title:e.title,variant:"primary",children:(0,t.jsx)("span",{children:e.title})},s))})]}):null,ep=s=>(0,t.jsx)("div",{className:(0,a.cn)("flex shrink-0 gap-2",s),children:U&&D?(0,t.jsx)(v,{onClick:z}):(0,t.jsxs)(t.Fragment,{children:[e&&l&&(0,t.jsx)(w,{buttonVariant:n,className:(0,a.cn)("justify-center",j?"flex-1":"w-full lg:text-nowrap"),icon:e,label:l,onClick:S}),(0,t.jsxs)("div",{className:"flex gap-2",children:[q&&(0,t.jsx)(p,{onClick:()=>el(!0)}),H&&(0,t.jsx)(C,{isActive:V,onClick:ea})]})]})}),eu=()=>es?(0,t.jsx)(k,{onClose:()=>el(!1),shareUrl:(e=>{if(!e||"#"===e||e.startsWith("http://")||e.startsWith("https://"))return e;let t="https://www.aqa.org.uk",s=t.endsWith("/")?t.slice(0,-1):t,l=e.startsWith("/")?e:`/${e}`;return`${s}${l}`})(T??"#"),sharingText:K}):null;if(j)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative flex size-full flex-col overflow-hidden border border-purple-80 bg-white transition-colors duration-300 hover:bg-grey",id:b?.toString(),children:[(0,t.jsx)(o.default,{"aria-label":K,className:"group",href:T??"#",onClick:z,target:$,children:ed()}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,t.jsxs)(o.default,{"aria-label":K,className:"group flex flex-1 flex-col gap-2",href:T??"#",onClick:z,target:$,children:[(0,t.jsx)("p",{className:"text-base font-bold",children:K}),P||(0,t.jsx)("p",{className:"text-sm text-muted",children:Z}),O&&(0,t.jsx)("p",{className:(0,a.cn)("mb-3 text-sm text-muted",M?"line-clamp-none":"line-clamp-3"),children:O}),ex("mb-3")]}),ep("mt-auto items-center border-t border-purple-80 pt-4")]})]}),eu()]});let eh=["keyDate"];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,a.cn)("relative flex flex-col justify-between overflow-visible border-x border-b border-purple-80 bg-white transition-colors duration-300 lg:flex-row",h&&"md:pb-8",!G||!eh.includes(G)&&"hover:bg-grey"),id:b?.toString(),children:[h&&(0,t.jsx)(c.Label,{className:"absolute bottom-4 right-4 hidden md:block",variant:m??"blue",children:h}),(0,t.jsxs)("div",{className:"flex grow flex-row",children:[(0,t.jsxs)(({link:e,linkTarget:s,onItemClick:l,children:a,className:n,type:r})=>r&&eh.includes(r)?(0,t.jsx)("div",{className:n,children:a}):(0,t.jsx)(o.default,{"aria-label":K,className:n,href:e,onClick:l,target:s,children:a}),{className:"group flex grow flex-row p-4",link:T,linkTarget:$,onItemClick:z,type:G,children:[(0,t.jsx)("div",{className:"hidden lg:flex",children:ed()}),(0,t.jsxs)("div",{className:(0,a.cn)("relative flex flex-1 flex-col gap-1 px-4 md:gap-2 lg:px-4",R&&R.length>0&&"py-2 md:px-6 md:py-3"),children:[(0,t.jsx)("h3",{className:(0,a.cn)("text-lg font-bold lg:text-base",!M&&"line-clamp-2 md:line-clamp-none"),ref:J,children:K}),M&&O&&(0,t.jsx)("p",{className:"text-sm text-muted",children:O}),P||(0,t.jsx)("p",{className:(0,a.cn)("text-sm text-muted",!M&&"line-clamp-1"),ref:X,children:Z}),ex("hidden md:block")]})]}),et&&(0,t.jsx)("div",{className:"my-4 mr-2 flex shrink-0 items-start",children:(0,t.jsx)(L,{isExpanded:M,onClick:e=>{e.preventDefault(),e.stopPropagation(),I?.(b)}})})]}),ep("justify-end px-4 pb-4 lg:p-4")]}),eu()]})},V=e=>(0,t.jsxs)("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{d:"M7.99988 10V2",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M14 10V12.6667C14 13.0203 13.8595 13.3594 13.6095 13.6095C13.3594 13.8595 13.0203 14 12.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V10",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M4.66663 6.6665L7.99996 9.99984L11.3333 6.6665",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"})]});var T=e.i(122614),$=e.i(401851),D=e.i(826514),P=e.i(840894);let S=({locked:e,isDownloadable:s,link:l,linkTarget:a,onActionButtonClick:n,...r})=>{let{args:i}=r,o=i?.qualification,c=i?.fileSize?(0,P.formatBytes)(Number(i.fileSize)):"",d=i?.fileExtension?.toUpperCase(),x=i?.publicationDate?(0,$.format)((0,D.parseISO)(i.publicationDate),"dd MMM yyyy"):"",p=d||c||x,u=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:o}),p&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"rounded-lg bg-muted/10 px-[8.8px] py-[2.8px] text-xs font-medium",children:d}),(c||x)&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:c}),x&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),x&&(0,t.jsxs)("span",{className:"text-muted",children:["Published: ",x]})]}),h=s?(0,t.jsx)(V,{}):(0,t.jsx)(T.default,{className:"fill-purple"});return(0,t.jsx)(M,{...r,actionButtonIcon:h,actionButtonLabel:s?"Download":"Visit Page",actionButtonVariant:"secondary",isDownloadable:s,link:l,linkTarget:"_blank",locked:e,onActionButtonClick:e=>{if(e.preventDefault(),e.stopPropagation(),s&&l){let e=document.createElement("a");e.href=l,e.download="",e.target="_blank",document.body.appendChild(e),e.click(),document.body.removeChild(e)}else l&&window.open(l,a||"_blank");n?.(e)},showLockedState:!0,metadata:u})},A=({locked:e,subtitle:s,link:l,linkTarget:a,onActionButtonClick:n,summary:c,gridLayout:d,image:x,imageAlt:u,title:h,id:m,isFavourite:j,onIconClick:f,onItemClick:g,showFavouriteButton:k=!0,showShareButton:w=!0,...b})=>{let{args:v}=b,N=v?.description,y=v?.authors,L=v?.publisher,B=v?.publicationDate,F=s||(y&&L?`${y} | ${L}`:y||L||""),V=(e=>{if(!e)return"";try{return(0,$.format)((0,D.parseISO)(e),"dd MMM yyyy")}catch{return e}})(B),P=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-sm",children:[y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:y}),(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),(0,t.jsx)("span",{className:"rounded-lg border border-transparent bg-muted/10 px-[8.8px] py-[2.8px] text-xs font-medium",children:"Textbook"}),L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"}),(0,t.jsx)("span",{className:"text-muted",children:L})]}),V&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"}),(0,t.jsx)("span",{className:"text-muted",children:V})]})]}),S=e=>{e.preventDefault(),e.stopPropagation(),l&&window.open(l,a||"_blank"),n?.(e)};return d?(0,t.jsxs)("div",{className:"group relative flex h-full flex-col overflow-hidden border border-purple-80 bg-white transition-colors duration-300 hover:bg-grey",id:m?.toString(),children:[x&&"string"==typeof x&&(0,t.jsx)(o.default,{"aria-label":h,className:"relative aspect-[4/3] w-full overflow-hidden",href:l??"#",onClick:g,target:a,children:(0,t.jsx)(i.default,{alt:u||h,className:"size-full object-cover transition-transform duration-300 group-hover:scale-105",fill:!0,sizes:"(max-width: 768px) 100vw, 50vw",src:x})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,t.jsxs)(o.default,{"aria-label":h,className:"flex flex-1 flex-col",href:l??"#",onClick:g,target:a,children:[(0,t.jsx)("h3",{className:"mb-2 line-clamp-2 text-base font-bold",children:h}),P,(c||N)&&(0,t.jsx)("p",{className:"mt-2 line-clamp-2 text-sm text-muted",children:c||N})]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-2",children:[(0,t.jsxs)(r.Button,{className:"flex items-center gap-2",color:"purple",mode:"button",onClick:S,variant:"secondary",children:[(0,t.jsx)(T.default,{className:"size-4 fill-purple"}),(0,t.jsx)("span",{children:"Visit Publisher"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[w&&(0,t.jsx)(p,{onClick:()=>{}}),k&&(0,t.jsx)(C,{isActive:j,onClick:f})]})]})]})]}):(0,t.jsx)(M,{...b,actionButtonIcon:(0,t.jsx)(T.default,{className:"fill-purple"}),actionButtonLabel:"Visit Publisher",actionButtonVariant:"secondary",id:m,image:x,imageAlt:u,isFavourite:j,link:l,linkTarget:a,locked:e,metadata:P,onActionButtonClick:S,onIconClick:f,onItemClick:g,showFavouriteButton:k,showLockedState:!0,showShareButton:w,subtitle:F,summary:c||N,title:h})},_=e=>(0,t.jsxs)("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{d:"M10.6665 12.667H14.6665",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M10.6665 1.33301V3.99967",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M12.6665 10.667V14.667",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M14 8.39899V4.00033C14 3.6467 13.8595 3.30756 13.6095 3.05752C13.3594 2.80747 13.0203 2.66699 12.6667 2.66699H3.33333C2.97971 2.66699 2.64057 2.80747 2.39052 3.05752C2.14048 3.30756 2 3.6467 2 4.00033V13.3337C2 13.6873 2.14048 14.0264 2.39052 14.2765C2.64057 14.5265 2.97971 14.667 3.33333 14.667H9",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M2 6.66699H14",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"}),(0,t.jsx)("path",{d:"M5.3335 1.33301V3.99967",stroke:"#371376",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33333"})]}),z=({...e})=>{let{args:s,isExpanded:l}=e,n=s?.date?(0,$.format)(new Date(s.date),"d MMM yyyy"):"",r=s?.startTime,i=s?.duration,o=s?.source,c=s?.qualification,d=[n,r?`Start time: ${r}`:"",i?`Duration: ${i}
1`:""].filter(Boolean).join(" | "),x=[o?`Source: ${o}`:"",c?`Qualification: ${c}`:""].filter(Boolean).join(" | "),p=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:(0,a.cn)("line-clamp-1 font-semibold text-purple md:line-clamp-none",l&&"line-clamp-none"),children:d}),(0,t.jsx)("p",{className:"text-sm text-muted",children:x})]});return(0,t.jsx)(M,{...e,actionButtonIcon:(0,t.jsx)(_,{}),actionButtonLabel:"Add to Calendar",actionButtonVariant:"secondary",onActionButtonClick:t=>{t.preventDefault(),t.stopPropagation(),e.args&&e.onAddToCalendar&&e.onAddToCalendar(e.args)},showShareButton:!1,metadata:p})};var W=e.i(10345);let I=({args:e,id:s,link:l,linkTarget:a,subtitle:n,onActionButtonClick:r,...i})=>{let o=e?.events,c=e?.reference,d=c?`⢠${c}`:"",x=o?`${o} event${parseInt(o,10)>1?"s":""} ${d}`:n,p=l||`/professional-development/course-details/${s}`;return(0,t.jsx)(M,{...i,actionButtonIcon:(0,t.jsx)(W.default,{height:20,width:20,stroke:"#FFFFFF"}),actionButtonLabel:"View Details",actionButtonVariant:"primary",id:s,link:p,linkTarget:a,onActionButtonClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(p,a||"_self"),r?.(e)},subtitle:x})},E=({link:e,linkTarget:s,onActionButtonClick:l,...a})=>{let{args:n}=a,r=n?.publicationDate,i=n?.authors,o=n?.timeToRead,c=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:r}),(i||o)&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:i}),o&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),o&&(0,t.jsx)("span",{className:"text-muted",children:o})]});return(0,t.jsx)(M,{...a,actionButtonIcon:(0,t.jsx)(T.default,{className:"fill-purple"}),actionButtonLabel:"Read More",actionButtonVariant:"secondary",link:e,linkTarget:s,metadata:c,onActionButtonClick:t=>{t.preventDefault(),t.stopPropagation(),e&&window.open(e,s||"_self"),l?.(t)}})},R=({link:e,linkTarget:s,onActionButtonClick:l,...a})=>{let{args:n}=a,r=n?.publicationDate,i=n?.authors,o=n?.timeToRead,c=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:r}),(i||o)&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:i}),o&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),o&&(0,t.jsx)("span",{className:"text-muted",children:o})]});return(0,t.jsx)(M,{...a,actionButtonIcon:(0,t.jsx)(T.default,{className:"fill-purple"}),actionButtonLabel:"Read More",actionButtonVariant:"secondary",link:e,linkTarget:s,metadata:c,onActionButtonClick:t=>{t.preventDefault(),t.stopPropagation(),e&&window.open(e,s||"_self"),l?.(t)}})},H=({gridLayout:e,link:s,linkTarget:l,onActionButtonClick:a,...n})=>{let{args:r}=n,i=r?.publicationDate,o=r?.authors,c=r?.timeToRead,d=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"text-muted",children:["Published ",i]}),(o||c)&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:o}),c&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),c&&(0,t.jsx)("span",{className:"text-muted",children:c})]});return(0,t.jsx)(M,{...n,actionButtonIcon:(0,t.jsx)(T.default,{className:"fill-purple"}),actionButtonLabel:"Read More",actionButtonVariant:"secondary",gridLayout:e,hideExpandToggle:!e,link:s,linkTarget:l,metadata:d,onActionButtonClick:e=>{e.preventDefault(),e.stopPropagation(),s&&window.open(s,l||"_self"),a?.(e)},...!e&&{isExpanded:!0}})},U=({...e})=>(0,t.jsx)(M,{...e}),q=({...e})=>(0,t.jsx)(M,{...e}),Z=({...e})=>(0,t.jsx)(M,{...e}),O=({...e})=>{let{link:s,linkTarget:l,onActionButtonClick:a}=e;return(0,t.jsx)(M,{...e,actionButtonIcon:(0,t.jsx)(T.default,{className:"fill-purple"}),actionButtonLabel:"Visit Page",actionButtonVariant:"secondary",link:s,linkTarget:l,onActionButtonClick:e=>{e.preventDefault(),e.stopPropagation(),s&&window.open(s,l||"_self"),a?.(e)}})},Q=({...e})=>(0,t.jsx)(M,{...e}),K=({...e})=>(0,t.jsxs)("svg",{...e,fill:e.fill,height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M8.00016 14.6663C11.6821 14.6663 14.6668 11.6816 14.6668 7.99967C14.6668 4.31778 11.6821 1.33301 8.00016 1.33301C4.31826 1.33301 1.3335 4.31778 1.3335 7.99967C1.3335 11.6816 4.31826 14.6663 8.00016 14.6663Z",fill:e.fill}),(0,t.jsx)("path",{d:"M8 7.33366V11.3337M8 4.66699V5.33366",stroke:"white",strokeLinecap:"round",strokeWidth:"1.66667"})]}),G=({link:e,linkTarget:s,onActionButtonClick:l,...a})=>{let{args:n}=a,r=n?.approvedDate,i=n?.unitNumber,o=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-sm",children:[r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted",children:r}),i&&(0,t.jsx)("span",{className:"text-grey-mid",children:"â¢"})]}),i&&(0,t.jsxs)("span",{className:"text-muted",children:["Unit: ",i]})]});return(0,t.jsx)(M,{...a,actionButtonIcon:(0,t.jsx)(K,{className:"fill-teal"}),actionButtonLabel:"More Info",actionButtonVariant:"secondary",link:e,linkTarget:s,metadata:o,onActionButtonClick:t=>{t.preventDefault(),t.stopPropagation(),e&&window.open(e,s||"_self"),l?.(t)}})};e.s(["SearchResultList",0,({className:e,emptyStateMessage:i,items:o,headline:c,onIconClick:d,onItemClick:x,onQuickLinkClick:p,onAddToCalendar:u,inserts:h=[],gridLayout:m=!1,showExpandAll:j=!0})=>{let{signInWithAzureADB2C:f}
1=(0,n.default)(),[g,k]=(0,s.useState)(new Set),w=o.length>0&&o.every(e=>g.has(e.id)),b=e=>{k(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})};return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col bg-grey px-5 py-6 gap-6 md:gap-8 lg:gap-12",e),children:(0,t.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[c&&(0,t.jsxs)("div",{className:"flex min-h-12 items-center justify-between lg:w-full lg:max-w-[1126px] lg:self-center",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,l.isString)(c)?(0,t.jsx)("p",{className:"h4",children:c}):c}),j&&o.length>0&&(0,t.jsxs)(r.Button,{color:"purple",mode:"button",onClick:w?()=>{k(new Set)}:()=>{k(new Set(o.map(e=>e.id)))},variant:"tertiary",children:[(0,t.jsx)(y.default,{className:(0,a.cn)("size-3 fill-purple mr-2",w?"rotate-0":"rotate-180")}),w?"Collapse All":"Expand All"]})]}),(0,t.jsx)("ul",{className:(0,a.cn)("lg:w-full lg:max-w-[1126px] lg:self-center xl:max-w-[1165px",m?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"flex flex-col",o.length>0&&!m&&"border-t border-t-purple-80"),children:o?.map((e,l)=>{let a,n,r=h?.find(t=>t.id===e.id&&"before"===t.type)?.content,i=h?.find(t=>t.id===e.id&&"after"===t.type)?.content;return(0,t.jsxs)(s.Fragment,{children:[!!r&&(0,t.jsx)("li",{children:r}),(0,t.jsx)("li",{children:(a=e.type?({aqaResource:S,textbook:A,keyDate:z,courseTemplate:I,aqiBlogPost:E,blogPost:R,newsArticle:H,page:U,subpage:q,qualification:Z,researchPaper:O,subject:Q,uasUnit:G})[e.type]:S,n={...e,badgeVariant:e.badgeVariant??"blue",gridLayout:m,isExpanded:g.has(e.id),onIconClick:()=>d?.(e.id),onItemClick:t=>{e.locked?(t.preventDefault(),f?.()):x?.(e.id)},onQuickLinkClick:p,onToggleExpand:b,onAddToCalendar:u},(0,t.jsx)(a,{...n}))}),!!i&&(0,t.jsx)("li",{children:i})]},`${e.id}-${l}`)})}),0===o.length&&i&&(0,t.jsx)("p",{className:"text-neutral lg:w-full lg:max-w-[1126px] lg:self-center",children:i})]})})}],169274)}]);
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.