PageSourceSearch

https://avant.org.au/_next/static/chunks/1618.29fb48ca48fcb548.js

js avant.org.au collected 2026-10-01 14:40:08 UTC 5,106 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1618],{1618:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var n=a(37876),l=a(23748),s=a(27888),i=a(89508),r=a(15557);a(30346),a(18058),a(9572),a(2066),a(58659);let o=e=>{var t;let{banner:a=[],brazeTargetIndex:o=0}=e,c=(null==(t=a[0])?void 0:t.pageType)==="home-image"?"light":"dark";return(0,n.jsxs)(s.RC,{modules:[l.Vx,l.Jq,l.dK,l._R,l.Ij],slidesPerView:1,navigation:{prevEl:".swipe-banner-prev",nextEl:".swipe-banner-next"},className:"swipe-banner-swiper ".concat(c),pagination:{clickable:!0},effect:"fade",autoplay:{delay:1e4},watchOverflow:!0,children:[(null==a?void 0:a.length)>0&&a.map((e,t)=>(0,n.jsx)(s.qr,{children:(0,n.jsx)(r.A,{title:e.title,description:e.description,img:{imgSrc:"",imgAlt:"",...(null==e?void 0:e.img)||{},disableLazyLoading:!0},CTAGroupCtas:e.CTAGroupCtas,pageType:e.pageType,enableBrazeCards:t+1===o,titleHeadingLevel:0===t?"h1":"h2"},e.title)},e.codename)),(0,n.jsx)(i.A,{btnType:"button",btnSize:"sm",btnCustomClass:"prev-slide swipe-banner-prev light",icon:"chevron-left",srText:"Previous"}),(0,n.jsx)(i.A,{btnType:"button",btnSize:"sm",btnCustomClass:"next-slide swipe-banner-next light",icon:"chevron-right",srText:"Next"})]})}},2066:()=>{},9572:()=>{},15557:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(37876),l=a(59102),s=a(19819),i=a(14232),r=a(34824),o=a(9001),c=a(57218),d=a(95435);let u=i.useLayoutEffect,m="braze-skeleton-active",p=()=>document.cookie.split(";").some(e=>e.trim().startsWith("ab.storage.userId"))||(0,c.pK)(window.location.search),h=e=>{let t=e.split("?")[0].split("#")[0],a=t.length;for(;a>0&&"/"===t[a-1];)a-=1;return t.slice(0,a)||"/"},g=e=>"true"===sessionStorage.getItem("braze-no-target:".concat(h(e))),v=e=>{var t,a,v,f;let{title:x,richTextTitle:w,description:b,img:j,CTAGroupCtas:E,pageType:C,relatedSubPages:N,superTitle:S,enableBrazeCards:k=!1,titleHeadingLevel:L="h1"}=e,{renderWebspotlightElementAttribute:y}=(0,s.wA)(),[A,T]=(0,i.useState)(!1),[z,_]=(0,i.useState)(null),[K,I]=(0,i.useState)(!1),[R,P]=(0,i.useState)(!1),[U,q]=(0,i.useState)(null),G=N&&N.length>0,O=(0,r.useRouter)(),V=null==O?void 0:O.events,B=null!=(a=null==O?void 0:O.asPath)?a:"".concat(window.location.pathname).concat(window.location.search),H=(0,c.pK)(null!=(v=null==(t=B.split("?")[1])?void 0:t.split("#")[0])?v:""),J=K&&!H;(0,i.useEffect)(()=>{if(!V)return;let e=e=>{let t=new URL(e,window.location.origin),a=h(t.pathname),n=(0,c.pK)(t.search);if(a===h(window.location.pathname))return void document.documentElement.classList.remove(m);!(0,c.Sr)()&&p()&&(n||!g(a))&&document.documentElement.classList.add(m)},t=()=>{document.documentElement.classList.remove(m)};return V.on("routeChangeStart",e),V.on("routeChangeError",t),()=>{V.off("routeChangeStart",e),V.off("routeChangeError",t)}},[V]),(0,i.useEffect)(()=>{I(!(0,c.pK)(window.location.search)&&g(B)),_(p())},[B]);let{card:W,isResolvedForPath:D,wasResolvedBeforeRequest:F}=(0,c.Of)(k?B:""),M=k&&!D,Q=null!==z,X=k&&(!0===z||F)&&!M&&!!W,Y=null==W?void 0:W.imageUrl,Z=!Y||U===Y,$=X&&(R||F);(0,i.useEffect)(()=>{if(!X||!Y)return;let e=!1,t=new window.Image,a=()=>{e||q(Y)};return t.onload=a,t.onerror=a,t.src=Y,()=>{e=!0}},[X,Y]),u(()=>{if(!k)return void P(!1);if(M){P(!1),J||(0,c.Sr)()?document.documentElement.classList.remove(m):p()&&document.documentElement.classList.add(m);return}if(!Q)return;let e=document.documentElement.classList.contains(m);X&&(!e||Z)?(P(!0),document.documentElement.classList.remove(m)):X||(P(!1),document.documentElement.classList.remove(m))},[k,M,X,Z,Q,J]);let ee=$?null==W?void 0:W.title:x,et=$?null==W?void 0:W.description:b,ea=$?null==W?void 0:W.imageUrl:null==j?void 0:j.imgSrc,en=null==W?void 0:W.linkText,el=null==W?void 0:W.url,es=!!(en&&el),ei=((e,t,a)=>"page-header page-header-".concat(e).concat("home"===e?" dark":"").concat(t?" has-related-pages-selector":"").concat(a?" page-header-braze-enabled":""))(C,!!G,k);return(0,n.jsxs)("section",{className:ei,onClick:()=>{A&&T(!1)},children:[(0,n.jsx)("div",{className:"container",children:(0,n.jsxs)("div",{className:"page-header-content",children:[S&&(0,n.jsx)("div",{className:"super-title",...y({codename:"policy_title"}),children:S}),ee&&(0,n.jsxs)("div",{className:"page-header-title-wrapper",children:[(0,n.jsx)(L,{className:"page-header-title",...y({codename:"page_title"}),children:ee}),!$&&w]}),et&&(0,n.jsx)("p",{className:"page-header-description",...y({codename:"description"}),children:et}),es&&$?(0,n.jsx)("div",{className:"page-head-ctas",...y({codename:"cta"}),children:(0,n.jsx)(d.default,{btnText:en,href:el})}):!$&&E&&(0,n.jsx)("div",{className:"page-head-ctas",...y({codename:"cta"}),children:E}),N&&N.length>0&&(0,n.jsx)("div",{className:"page-header-related-subpages",children:(0,n.jsx)(o.A,{action:"link",links:N})})]})}),ea&&(0,n.jsx)("div",{className:"page-header-image",children:(0,n.jsx)("div",{className:"page-header-image-wrapper",children:(0,n.jsx)("div",{className:"page-header-image-inner",children:(0,n.jsx)(l.default,{...j,imgSrc:ea,imgAlt:null!=(f=null==j?void 0:j.imgAlt)?f:"",priority:!0})})})})]})}},58659:()=>{}}]);

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.