PageSourceSearch

https://teachingcouncil.nz/_next/static/chunks/5445-5bae69aff6e9c8c4.js?dpl=dpl_HCwnucDFn9fg3JvAxHL21krtzQqP

js teachingcouncil.nz collected 2026-10-02 07:33:26 UTC 6,849 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e8cfce66-0813-4e32-997c-19aeff3d3b33",e._sentryDebugIdIdentifier="sentry-dbid-e8cfce66-0813-4e32-997c-19aeff3d3b33")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5445],{25445:(e,t,a)=>{a.d(t,{A:()=>v});var l=a(76439),o=a(13407),n=a(64531),r=a(98253),i=a(53344),s=a(55007),c=a(10453),u=a(17703),d=a(44053),g=a(42917),h=a(23958),m=a(53198),b=a(75625);let _=e=>{let{variant:t="desktop",className:a="",showMyRawaPortal:o=!0}=e,n=(0,u.c)("AuthButton");return"minimal"===t?(0,l.jsx)(T,{className:(0,d.cn)("text-sm md:text-base",a)}):"mobile"===t?(0,l.jsx)("div",{className:(0,d.cn)("flex flex-col gap-2",a),children:(0,l.jsx)(T,{})}):(0,l.jsxs)("div",{className:(0,d.cn)("flex items-center gap-7",a),children:[o&&(0,l.jsx)(i.$,{variant:"white",asChild:!0,children:(0,l.jsx)(s.LinkIntl,{href:c.NX.PORTAL_DASHBOARD,className:"text-sm font-normal md:text-base",tealium:{linkLabel:n("myRawaPortal"),linkCategory:b.G5.HEADER},children:n("myRawaPortal")})}),(0,l.jsx)(T,{})]})},f=e=>{let{variant:t,className:a,loginText:o,handleSignIn:n,isSigningIn:r,isLoading:s}=e,c=(0,u.c)("AuthButton"),h=null!=o?o:c("myRawaLogin");return"mobile"===t?(0,l.jsxs)(i.$,{className:(0,d.cn)("text-sm md:text-base",a),onClick:n,disabled:r||s,variant:"dark",children:[(r||s)&&(0,l.jsx)(g.y,{className:"fill-white text-white"}),h]}):(0,l.jsxs)(i.$,{variant:"dark",className:(0,d.cn)("text-sm md:text-base",a),onClick:n,disabled:r||s,children:[(r||s)&&(0,l.jsx)(g.y,{className:"fill-white text-white"}),h]})},T=e=>{let{className:t}=e,[a,n]=(0,o.useState)(!1),[r,s]=(0,o.useState)(!1),b=(0,u.c)("SignOutPage"),_=async()=>{try{n(!0),s(!1),(0,m.xt)(),(0,m.HB)(),await (0,h.Ne)()}catch(e){console.error("Sign-out error:",e),s(!0),n(!1)}};return(0,o.useEffect)(()=>{r&&(globalThis.location.href=c.NX.PORTAL_SIGN_OUT)},[r]),(0,l.jsx)(i.$,{variant:"dark-outline",asChild:!0,className:(0,d.cn)("group",t),onClick:_,children:(0,l.jsxs)("span",{children:[a&&(0,l.jsx)(g.y,{className:"fill-dark text-white group-hover:fill-white"}),b("logOutButton")]})})},v=e=>{let{variant:t="desktop",className:a="",showMyRawaPortal:i=!0,loginText:s}=e,{isLoading:u,isAuthenticated:d,isFullyAuthenticated:g}=(0,r.Q)(),[h,m]=(0,o.useState)(!1),b=async()=>{try{m(!0),await (0,n.signIn)("salesforce",{callbackUrl:c.NX.PORTAL_DASHBOARD})}catch(e){console.error("Sign-in error:",e),m(!1)}};return d&&g?(0,l.jsx)(_,{variant:t,showMyRawaPortal:i,className:a}):(0,l.jsx)(f,{variant:t,className:a,loginText:s,handleSignIn:b,isSigningIn:h,isLoading:u})}},27887:(e,t,a)=>{a.d(t,{Af:()=>r,Hn:()=>n,e3:()=>i});var l=a(75625);let o=()=>{try{var e;return null!=(e=globalThis.localStorage)?e:null}catch(e){return null}},n=e=>null!=e&&(()=>{let e=o();return e?(e=>{if(null==e)return null;let t=Number(e);return Number.isFinite(t)?t:null})(e.getItem(l.jj)):null})()!==e,r=e=>{try{var t;null==(t=o())||t.setItem(l.jj,String(e))}catch(e){}},i=()=>{try{var e;null==(e=o())||e.removeItem(l.jj)}catch(e){}}},42917:(e,t,a)=>{a.d(t,{y:()=>r});var l=a(76439),o=a(2114),n=a(44053);let r=e=>{let{className:t}=e;return(0,l.jsx)(o.h,{className:(0,n.cn)("h-[1em] w-[1em] animate-spin",t)})}},53198:(e,t,a)=>{a.d(t,{xt:()=>d,$6:()=>c,En:()=>g,P3:()=>s,HB:()=>u});var l=a(75625),o=a(10453),n=a(60524),r=a(44557),i=a(27887);let s=e=>{try{var t;if((0,r.CW)(e,"true"),null==(t=globalThis.utag)?void 0:t.data)return globalThis.utag.data.logged_in_session="true",globalThis.utag.data.account_id=e,!0;return!1}catch(e){return console.warn("Failed to set Tealium login session:",e),!1}},c=e=>{try{if(e.length>0)return(0,n.tV)({event:l.nA.LOGIN,accountId:e,loggedInSession:"true"});return!1}catch(e){return console.warn("Failed to send Tealium login event:",e),!1}},u=e=>{(e=>{let t=(null==e?void 0:e.fireLink)!==!1;try{var a,o;let e="";(null==(a=globalThis.utag)?void 0:a.data)&&(globalThis.utag.data.logged_in_session="false",e=null!=(o=globalThis.utag.data.account_id)?o:""),(0,r.CW)(e,"false"),t&&e.length>0&&(0,n.tV)({event:l.nA.LOGOUT,accountId:e}),(0,i.e3)()}catch(e){console.warn("Failed to send Tealium logout event:",e)}})(e),(e=>{try{let t="Path=/",a="Expires=Thu, 01 Jan 1970 00:00:00 GMT",l="SameSite=Lax",o=["".concat(e,"=; ").concat(t,"; ").concat(a,"; ").concat(l),"".concat(e,"=; ").concat(t,"; ").concat(a,"; ").concat(l,"; Secure")],n=globalThis.location.hostname.split(".");if(n.length>2){let r=".".concat(n.slice(-2).join("."));o.push("".concat(e,"=; ").concat(t,"; ").concat(a,"; ").concat(l,"; Domain=").concat(r),"".concat(e,"=; ").concat(t,"; ").concat(a,"; ").concat(l,"; Domain=").concat(r,"; Secure"))}for(let e of o)document.cookie=e}
1catch(t){console.warn("Failed to delete ".concat(e," cookie:"),t)}})(l.Zr),(()=>{try{var e,t;(null==(t=globalThis.utag)||null==(e=t.loader)?void 0:e.SC)&&(globalThis.utag.loader.SC("utag_main",{last_logged_in_account_id:"",changed_as_id:"",last_switch_tab_id:"",last_switch_time:"",dcsyncran:""},"d"),console.info("[Website](Tealium Cleanup) Cleared utag_main visitor switching state"))}catch(e){console.warn("Failed to clear utag_main visitor switching state:",e)}})(),(()=>{try{let e=[];for(let t=0;t<localStorage.length;t++){let a=localStorage.key(t);a&&(a.startsWith("tealium_va")||"tc_traits_cross_tab_switch"===a)&&e.push(a)}for(let t of e)localStorage.removeItem(t);e.length>0&&console.info("[Website](Tealium Cleanup) Cleared localStorage keys:",e)}catch(e){console.error("[Website](Tealium Cleanup) Error clearing localStorage:",e)}})(),(()=>{try{if(void 0!==globalThis.window){var e;globalThis.tc_traits=null,globalThis.tc_traits_ready=!1,globalThis.tc_traits_needs_refresh=!1,globalThis.tc_traits_expected_visitor_id=null,globalThis.tc_traits_expected_switching_sha=null,(null==(e=globalThis.utag)?void 0:e.data)&&(globalThis.utag.data.va=null,delete globalThis.utag.data.account_id,delete globalThis.utag.data.logged_in_session),(0,r.M1)(),console.info("[Website](Tealium Cleanup) Cleared in-memory cache")}}catch(e){console.warn("Failed to clear Tealium in-memory cache:",e)}})()},d=()=>{try{localStorage.setItem("user_logged_out",Date.now().toString()),setTimeout(()=>{localStorage.removeItem("user_logged_out")},100),console.info("[Website] Broadcast logout to other tabs")}catch(e){console.warn("Failed to broadcast logout to other tabs:",e)}},g=()=>{if(void 0===globalThis.window)return;let e=e=>{"user_logged_out"===e.key&&e.newValue&&(console.log("[Website] Logout detected in another tab - cleaning up and reloading"),u({fireLink:!1}),globalThis.location.href=o.NX.HOME)};return globalThis.addEventListener("storage",e),()=>{globalThis.removeEventListener("storage",e)}}}}]);

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.