PageSourceSearch

https://vcaa.vic.edu.au/_next/static/chunks/pages/%5B...slug%5D-91cab5f57a326fb8.js

js vcaa.vic.edu.au collected 2026-09-24 09:09:10 UTC 8,763 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[203],{3997:(e,l,a)=>{"use strict";a.r(l),a.d(l,{__N_SSG:()=>A,default:()=>C});var t=a(7876),i=a(7328),s=a.n(i),n=a(1273),r=a(4232),d=a(4e3),c=a(3902),o=a(1948),x=a(6085),m=a(9099),u=a(4927),p=a(8230),h=a.n(p),b=a(5072);function v(e){var l,a,i,s;let{node:n}=e;if(!n)return console.warn("TopTabs: Node data is missing"),null;let r=(0,m.useRouter)(),d=n.drupal_internal__nid?"entity:node/".concat(n.drupal_internal__nid):"";d&&(0,b.b)(d);let c=[...(null==(a=n.field_t_tab_new)||null==(l=a[0])?void 0:l.field_tab_link)||[],...(null==(s=n.field_new_t_tabs)||null==(i=s[0])?void 0:i.field_tab_link)||[]];return 0===c.length?(console.warn("TopTabs: No tab links found"),null):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-4 max-md:hidden",children:(0,t.jsx)(x.A,{value:r.asPath,"aria-label":"basic tabs example",TabIndicatorProps:{style:{backgroundColor:"var(--vcaa-darker-blue)"}},children:c.map(e=>(e=>{if(!e||!e.title)return null;let l=e.uri?(0,b.b)(e.uri):"#";return(0,t.jsx)(o.A,{label:e.title,value:l,onClick:()=>(null==e?void 0:e.uri)&&r.push(l),disableRipple:!0,sx:{"&.Mui-selected":{color:"var(--vcaa-darker-blue)"},fontFamily:"VIC-Medium"}},e.title)})(e))})}),(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)("div",{className:"py-4",children:c.map(e=>e&&e.title?(e.uri?(0,b.b)(e.uri):"#")===r.asPath?(0,t.jsxs)("div",{className:"text-lg p-4 flex justify-between items-center text-vcaa-darker-blue border-b bg-vcaa-callout-bg",children:[(0,t.jsx)("div",{children:e.title}),(0,t.jsx)(u.A,{})]},e.title):(0,t.jsx)(h(),{href:e.uri?(0,b.b)(e.uri):"#",children:(0,t.jsxs)("div",{className:"text-lg p-4 flex justify-between items-center text-vcaa-darker-blue border-b",children:[(0,t.jsx)("div",{children:e.title}),(0,t.jsx)(u.A,{})]})},e.title):null)})})]})}var f=a(2403);let g=function(e){let{node:l}=e,a=(0,d.useSearchParams)(),i=null==a?void 0:a.get("id"),[s,n]=(0,r.useState)(null!=i?i:l.field_tab[0].id),o=e=>{n(e)},x=l.field_tab.find(e=>e.id===s),[m,u]=r.useState(s);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"bg-vcaa-bg-grey max-md:hidden pb-12",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 pt-4",children:[(0,t.jsx)(v,{node:l}),(0,t.jsxs)("div",{className:"bg-white p-5 pt-7",children:[(0,t.jsx)("div",{className:"font-bold text-4xl mb-4",children:l.title}),(0,t.jsx)("hr",{className:"mb-8"}),(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{className:"w-60 text-vcaa-darker-blue flex-none",children:l.field_tab.map(e=>(0,t.jsx)("div",{className:"pl-[35px] pr-4 py-2 hover:bg-vcaa-light-grey cursor-pointer ".concat(s===e.id?"bg-vcaa-callout-bg":""),onClick:()=>o(e.id),children:e.field_tab_title},e.id))}),(0,t.jsx)("div",{className:"flex-1 pl-14 pr-10 w-full ",children:(0,t.jsx)(f.A,{node:x})})]})]})]})}),(0,t.jsx)("div",{className:"max-md:block hidden",children:(0,t.jsxs)("div",{className:"p-5",children:[!s&&(0,t.jsx)(v,{node:l}),!s&&l.field_tab.map(e=>(0,t.jsxs)("div",{"data-id":null==e?void 0:e.id,className:"text-md p-4 flex justify-between items-center text-vcaa-darker-blue border-b bg-white hover:bg-vcaa-light-grey-border",onClick:()=>o(e.id),children:[(0,t.jsx)("div",{children:e.field_tab_title}),(0,t.jsx)(c.A,{})]},e.id)),s&&(0,t.jsxs)("div",{className:"bg-white p-4",children:[(0,t.jsx)("div",{className:"opacity-60 cursor-pointer hover:underline",onClick:()=>o(null),children:"< Back"}),(0,t.jsx)("div",{className:"text-2xl font-bold my-5 ",children:null==x?void 0:x.field_tab_title}),(0,t.jsx)(f.A,{node:x})]})]})})]})};var j=a(6444);a(2433),a(5341);var _=a(504);function w(e){let l=new Date(e),a=e.slice(-6),t=parseInt(a.slice(0,3),10),i=parseInt(a.slice(4,6),10)*(t>=0?1:-1),s=l.getTimezoneOffset();return l.setMinutes(l.getMinutes()+(60*t+i+s)),l.toLocaleString("en-AU",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}).replace(/(am|pm)/i,e=>e.toUpperCase())}var N=a(1259);function y(e){var l,a,i,s,n;let{event:r}=e;if(!r)return null;let d={eventName:r.title||"",backgroundImage:(0,_.p)(r.field_event_image)||null,body:{summary:(null==(a=r.body)?void 0:a.summary)||"",value:(null==(i=r.body)?void 0:i.processed)||""},category:(null==(s=r.field_tags)?void 0:s.name)||"",dateFrom:r.field_event_start||"",dateTo:r.field_event_end||"",link:(null==(n=r.path)?void 0:n.alias)||"",bannerImage:(0,_.p)(r.field_header_image),cta:r.field_header_ctas||"",bannerTitle:r.field_header_text||"",field_components:r.field_components||""};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto my-8 px-4 h-full",children:(0,t.jsxs)("div",{className:"bg-white p-6",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between gap-4",children:[(0,t.jsx)("div",{className:"text-3xl font-bold mb-4",children:d.eventName}),d.category&&(0,t.jsx)("span",{className:"h-full mt-2 px-2 py-[2px] text-[10px] font-semibold rounded-md border-[1px] border-vcaa-darker-blue text-vcaa-darker-blue ",children:d.category})]}),(0,t.jsxs)("p",{className:"font-semibold text-vcaa-darker-blue mb-2 text-[15px]",children:["Start: ",w(d.dateFrom)," - End:"," ",w(d.dateTo)]}),(0,t.jsx)("div",{className:"max-w-none ",children:(null==(l=d.body)?void 0:l.value)&&(0,t.jsx)(N.A,{content:d.body.value,align:"left"})}),(0,t.jsx)(f.A,{node:d})]})})})}let k={page:"node--page",twoColumnLayout:"node--two_column_layout",twoColumnLayoutTopTabPage:"node--two_col_layout_top_tab_page",event:"node--event"};var A=!0;let C=e=>{let{menus:l,node:a,banner:i,breadcrumbs:r}=e;return a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[a.title&&(0,t.jsx)("title",{children:a.title+" - Victorian Curriculum and Assessment Authority"}),(0,t.jsx)("meta",{name:"description",content:a.field_meta_description||a.title})]}),(0,t.jsx)(n.P,{menus:l,breadcrumbs:r,bgColor:"var(--vcaa-light-grey)",children:(0,t.jsxs)("div",{className:"relative w-full h-full",children:[(0,t.jsx)(j.A,{...i}),a.type===k.twoColumnLayout&&(0,t.jsx)(g,{node:a}),a.type===k.page&&(0,t.jsx)("div",{className:"max-w-7xl px-4 mx-auto ",children:(0,t.jsx)("div",{className:"bg-white my-8 bg-white p-6 max-md:p-4 h-full min-h-[49vh]",children:(0,t.jsx)(f.A,{node:a})})}),a.type===k.twoColumnLayoutTopTabPage&&(0,t.jsxs)("div",{className:"max-w-7xl px-4 mx-auto",children:[(0,t.jsx)(v,{node:a}),(0,t.jsxs)("div",{className:"mb-8 bg-white p-6 max-md:p-4 h-full min-h-[49vh]",children:[a.title&&(0,t.jsx)("h2",{className:"border-b border-vcaa-light-grey-border pb-4 mb-2",children:a.title}),(0,t.jsx)(f.A,{node:a})]})]}),a.type===k.event&&(0,t.jsx)("div",{className:"max-w-7xl px-4 mx-auto",children:(0,t.jsx)(y,{event:a})})]})})]}):null}},4608:(e,l,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return a(3997)}])},6444:(e,l,a)=>{"use strict";a.d(l,{A:()=>r});var t=a(7876);a(4232);var i=a(4587),s=a.n(i),n=a(5072);let r=e=>{let{image:l,title:a,cta:i}=e;return l||a||!i||0!==i.length?(0,t.jsxs)("div",{className:"relative lg:h-[295px] md:h-[295px] overflow-hidden bg-vcaa-light-blue-bg \n      }",children:[l?(0,t.jsx)(s(),{src:l.src,alt:l.alt||"",fill:!0,priority:!0,style:{objectFit:"cover"},className:"flex lg:opacity-100 lg:opacity-100 md:opacity-100 sm:opacity-0 "}):null,(0,t.jsxs)("div",{className:"max-w-7xl mx-auto h-full py-3 relative",children:[a&&(0,t.jsx)("h2",{className:"flex overflow-hidden rounded-lg sm:px-8 p-3 text-left font-semibold text-[32px] text-vcaa-darker-blue sm:w-full md:w-[360px] lg:w-[460px] h-[220px] md:absolute md:left-4 sm:left-0 md:bottom-[2.5rem] ".concat(l?"bg-transparent md:bg-white md:bg-opacity-75 lg:bg-opacity-75":"bg-transparent"),children:(0,t.jsx)("div",{className:"self-center",children:(0,t.jsx)("div",{className:"line-clamp-5 break-words",children:a})})}
1),(0,t.jsx)("div",{className:"md:absolute right-0 bottom-[1.5rem] flex 3xl:flex-row 2xl:flex-col md:flex-col sm:flex-col gap-6 p-4",children:i&&i.map((e,a)=>(0,t.jsxs)("a",{href:(0,n.b)(e.uri),className:"border-2 hover:border-vcaa-darker-blue border-transparent relative flex flex-row items-center rounded-lg bg-white h-[100px] w-[240px] 3xl:h-[100px] 3xl:w-[240px] 2xl:h-[60px] xl:w-[400px] lg:h-[60px] md:h-[60px] sm:h-[100px]  md:w-[260px] p-5 sm:w-full sm:h-full ".concat(l?"bg-opacity-70":"bg-opacity-100"),children:[(0,t.jsx)("div",{className:"flex font-medium items-center w-3/4 line-clamp-2 3xl:line-clamp-3 xl:line-clamp-2 lg:line-clamp-2 md:line-clamp-2 sm:line-clamp-3 text-left text-base leading-tight ",children:e.title}),(0,t.jsx)("svg",{className:"absolute right-4 top-2/1 w-[35px] h-[30px]",children:(0,t.jsx)("use",{xlinkHref:"/assets/icons/SVGsprite.svg#blueArrow"})})]},a))})]})]}):null}}},e=>{e.O(0,[667,244,351,430,273,938,636,593,792],()=>e(e.s=4608)),_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.