PageSourceSearch

https://www.educationplannerbc.ca/_next/static/chunks/pages/my-list-2eecd6d5f1701866.js

js educationplannerbc.ca collected 2026-10-03 21:59:00 UTC 12,624 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5491],{17578:(t,l,e)=>{"use strict";e.d(l,{a:()=>r});var n=e(37876);e(14232);var i=e(2634),o=e.n(i);let r=t=>{let{fullscreen:l=!1,blur:e=!1}=t;return(0,n.jsx)("div",{role:"alert","aria-live":"polite","aria-label":"loading",className:" ".concat(o()["loading-spinner"]," ").concat(e?o()["loading-spinner--blur"]:""," ").concat(l?o()["loading-spinner--fullscreen"]:""),children:(0,n.jsx)("div",{className:"".concat(o().spinner," ").concat(l?o()["spinner-fullscreen"]:"")})})}},26213:(t,l,e)=>{"use strict";e.r(l),e.d(l,{__N_SSP:()=>K,default:()=>U});var n=e(37876),i=e(14232),o=e(25784),r=e(14448),s=e(18613),a=e(10553),u=e(66737),c=e(54938),d=e(52276),m=e(97460);let p=t=>{let{children:l,color:e=s.G_.blue500,borderColor:i,textColor:o=s.G_.white,className:r,borderWidthClass:a,roundedClass:u}=t,c="bg-".concat(e),d="".concat(a||"border-2"," border-").concat(null!=i?i:e);return(0,n.jsx)("span",{className:"inline-block ".concat(u||"rounded-full"," px-7 py-1 text-2xl font-bold ").concat(c," ").concat(d," ").concat("text-".concat(o)," ").concat(r),children:l})};var g=e(48230),v=e.n(g);let x=t=>{let{title:l,button:e,recentItems:i=[]}=t;return(0,n.jsxs)("div",{className:"flex h-[350px] w-[450px] flex-col overflow-hidden rounded-[20px] bg-white px-3 shadow-default md:min-w-[400px]",children:[(0,n.jsxs)("div",{className:"flex-grow p-5 py-0",children:[(0,n.jsx)(p,{color:{[s.jU.Programs]:s.G_.sky100,[s.jU.Paths]:s.G_.yellow50,[s.jU.Careers]:s.G_.purple200,[s.jU.Courses]:s.G_.teal100}[l],borderColor:{[s.jU.Programs]:s.G_.sky600,[s.jU.Paths]:s.G_.yellow400,[s.jU.Careers]:s.G_.violet600,[s.jU.Courses]:s.G_.teal600}[l],textColor:{[s.jU.Programs]:s.G_.sky900,[s.jU.Paths]:s.G_.warning950,[s.jU.Careers]:s.G_.magenta950,[s.jU.Courses]:s.G_.teal900}[l],className:"mb-1 mt-4",children:l}),(0,n.jsxs)("h4",{className:"mb-3 text-xs font-semibold text-slate-400",children:[(0,n.jsx)(m.g,{className:"mr-2",icon:d.a$})," Recently saved",l===s.jU.Courses?" transfers":""]}),(0,n.jsx)("div",{className:"space-y-3",children:i.length>0?i.map((t,l)=>(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("span",{className:"truncate text-base font-normal text-slate-400",children:t.description}),(0,n.jsx)(v(),{href:t.link,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)("span",{className:"text-base font-medium text-slate-950",children:t.title})})]},l)):(0,n.jsx)("span",{className:"text-base font-normal text-slate-400",children:"No recent items"})})]}),(0,n.jsx)("div",{className:"px-6 pb-4",children:e})]})};var h=e(73133),y=e(90868),b=e(24850),C=e(17578),j=e(4680),L=e(45384),_=e(89099);let f=t=>{var l,e,o,m,p,g,v,f,K,U,M,w,B,T,N;let{strapi:R,strapiURL:k,cdnURL:E,transferCreditsLoginFlag:P}=t,{data:S,status:A}=(0,a.useSession)(),{data:D,isLoading:I}=(0,h.Kd)(null!=(f=null==S||null==(l=S.user)?void 0:l.sub)?f:"",2),{data:O,isLoading:F}=(0,h.jF)(null!=(K=null==S||null==(e=S.user)?void 0:e.sub)?K:"",2),{data:G,isLoading:W}=(0,h.en)(null!=(U=null==S||null==(o=S.user)?void 0:o.sub)?U:"",2),{data:Y,isLoading:H}=(0,h.tW)(null!=(M=null==S||null==(m=S.user)?void 0:m.sub)?M:"",2),z=null==R||null==(p=R.MyListCarousel)?void 0:p.CarouselItem,$=I||F||W||H,J=(0,h.x)(),Z=(0,i.useMemo)(()=>{var t;return null!=(t=null==J?void 0:J.data)?t:[]},[J]),X="has-seen-tutorial-carousel",[V,q]=(0,i.useState)(null);(0,i.useEffect)(()=>{if("authenticated"!==A)return void q(!1);if($)return void q(null);try{let t=localStorage.getItem(X);q(!t)}catch(t){q(!0)}},[A,$]);let Q=()=>{localStorage.setItem(X,"seen"),q(!1)},tt=(0,_.useRouter)().pathname;return(0,n.jsxs)(i.Fragment,{children:[(null==R?void 0:R.HeroTitle)?(0,n.jsx)(r._,{data:R.HeroTitle,strapiURL:k,short:!0,pathname:tt}):null,A===s.TD.Unauthenticated?(0,n.jsx)(u.j,{MyListSignedOutBanner:null==R?void 0:R.MyListSignedOutTopBanner,SignedOutCardsTitle:null==R?void 0:R.SignedOutCardsTitle,SignedOutCardsDescription:null==R?void 0:R.SignedOutCardsDescription,strapiURL:k}):null,$&&A===s.TD.Authenticated?(0,n.jsx)(C.a,{fullscreen:!0,blur:!0}):null,A===s.TD.Authenticated?(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsxs)("div",{className:"grid w-full grid-cols-[repeat(auto-fill,450px)] justify-center gap-6 px-2 py-8",children:[(0,n.jsx)(x,{title:null!=(w=null==R||null==(g=R.MyListCards)?void 0:g.MyProgramsCard.Title)?w:"My programs",button:(0,n.jsx)(b.$,{color:s.KK.BLUE,icon:d.dmS,href:"".concat(s.sF.MyList,"/views?tab=My+programs"),fullWidth:!0,size:"normal",textAlign:"between",children:"Explore my programs"}),recentItems:null==D?void 0:D.map(t=>{var l,e;return{title:null!=(l=t.programName)?l:"",description:null!=(e=t.institutionName)?e:"",link:"/institutions/".concat(t.institutionSlug,"/").concat(t.epbcID,"/programs/").concat(t.slug)}})}),(0,n.jsx)(x,{title:null!=(B=null==R?void 0:R.MyListCards.MyPathsCard.Title)?B:"My paths",button:(0,n.jsx)(b.$,{color:s.KK.YELLOW,icon:d.dmS,href:"".concat(s.sF.MyList,"/views?tab=My+paths"),textAlign:"between",fullWidth:!0,size:"normal",children:"Explore my paths"}),recentItems:null==G?void 0:G.map(t=>{var l;return{title:null!=(l=t.programgroup.name)?l:"",description:(0,y.uZ)(t.programgroup.topMostParents,Z),link:"".concat(s.sF.FYPResults,"/path/").concat(t.programgroup.code)}})}),(0,n.jsx)(x,{title:null!=(T=null==R?void 0:R.MyListCards.MyCareersCard.Title)?T:"My careers",button:(0,n.jsx)(b.$,{color:s.KK.FYP_PURPLE,icon:d.dmS,href:"".concat(s.sF.MyList,"/views?tab=My+careers"),fullWidth:!0,size:"normal",textAlign:"between",children:"Explore my careers"}),recentItems:null==O?void 0:O.map(t=>{var l;return{title:null!=(l=t.career.name)?l:"",description:(0,y.uZ)(t.career.topMostParents,Z),link:"".concat(s.sF.FYPResults,"/career/").concat(t.career.code)}})}),P&&(0,n.jsx)(x,{title:null!=(N=null==R?void 0:R.MyListCards.MyCoursesCard.Title)?N:"My courses",button:(0,n.jsx)(b.$,{color:s.KK.TEAL,icon:d.dmS,href:"".concat(s.sF.MyList,"/views?tab=My+courses"),fullWidth:!0,size:"normal",textAlign:"between",children:"Explore my courses"}),recentItems:null==Y||null==(v=Y.data)?void 0:v.map(t=>{var l,e,n,i;return{title:"".concat(null!=(n=null==(l=t.receiverInstitutions)?void 0:l.length)?n:0," institutions, ").concat(null!=(i=null==(e=t.courses)?void 0:e.length)?i:0," courses"),description:t.name,link:"".concat(s.sF.MyList,"/snapshot/").concat(t.guid)}})})]}),!$&&(null==z?void 0:z.length)&&z.length>0&&!0===V?(0,n.jsx)(L.x,{isOpen:V,skipOption:!0,closeOption:!1,customClass:"rounded-xl !max-w-2xl !p-0",onClose:Q,children:(0,n.jsx)(j.A,{strapiURL:k,content:z,isModal:!0,onClose:Q})}):null]}):null,(null==z?void 0:z.length)&&z.length>0?(0,n.jsxs)("div",{className:"flex w-full flex-col",children:[(0,n.jsx)("h2",{className:"py-4 text-center text-3xl font-bold",children:"How to use My List"}),(0,n.jsx)(j.A,{strapiURL:k,content:z,className:"px-2 pb-20 md:px-12 lg:px-28"})]}):null,A===s.TD.Unauthenticated?(0,n.jsx)(c.Y,{MyListInstructions:null==R?void 0:R.MyListInstructions,MyListSignedOutBottomBanner:null==R?void 0:R.MyListSignedOutBottomBanner,strapiURL:k,cdnURL:E}):null]})};f.getLayout=function(t,l){let e="My List | EducationPlannerBC",i="Add programs, paths, and careers to My List to save and easily explore your selections.";return(0,n.jsx)(o.P,{cdnURL:l.cdnURL,seo:{title:e,description:i,ogTitle:e,ogDescription:i,twitterTitle:e,twitterDescription:i,canonicalUrl:window.location.href},children:t})};var K=!0;let U=f},54938:(t,l,e)=>{"use strict";e.d(l,{Y:()=>v});var n=e(37876),i=e(14232),o=e(18613),r=e(81510),s=e(10553),a=e(76004),u=e.n(a),c=e(99666),d=e(17371),m=e(54657),p=e(78888),g=e(89099);let v=t=>{var l,e,a,v,x,h,y,b;let C=(0,g.useRouter)(),{MyListInstructions:j,MyListSignedOutBottomBanner:L,strapiURL:_,cdnURL:f}=t,K=(0,i.useMemo)(()=>{let t=C.asPath;if(!t)return o.sF.CreateAccount;let l=new URLSearchParams({returnUrl:t});return"".concat(o.sF.CreateAccount,"?").concat(l.toString())},[C.asPath]);return(0,n.jsxs)(i.Fragment,{children:[null==j?void 0:j.map((t,l)=>"generic.image-card-row"===t.__component?(0,n.jsx)("div",{className:u()["my-list-instructions-image-card-container"],children:t.Cards.map((t,l)=>{var e,i,r,s,a,u,d,p,g,v,x,h,y,b,C,j,L,f,K,U,M,w,B,T,N,R,k,E,P;return(0,n.jsx)(m.S,{imagePath:_+(null==(r=t.Image)||null==(i=r.data)||null==(e=i.attributes)?void 0:e.url)+o.U6.Width720,title:null!=(U=null==t?void 0:t.Title)?U:"",titleColour:null!=(M=c.O5[null==t?void 0:t.TitleColour])?M:c.O5[o.KK.DARKBLUE],tagline:null!=(w=null==t?void 0:t.Tagline)?w:void 0,taglineColour:null!=(B=c.O5[null==t?void 0:t.TaglineColour])?B:c.O5[o.KK.DARKBLUE],description:null!=(T=null==t?void 0:t.Description)?T:void 0,descriptionColour:null!=(N=c.O5[null==t?void 0:t.DescriptionColour])?N:c.O5[o.KK.DARKBLUE],subtitle:null!=(R=null==t?void 0:t.Subtitle)?R:void 0,subtitleColour:null!=(k=c.O5[null==t?void 0:t.SubtitleColour])?k:c.O5[o.KK.DARKBLUE],button:{href:null!=(E=null==(s=t.Button)?void 0:s.Link)?E:void 0,text:null==(a=t.Button)?void 0:a.Text,colour:null==(u=t.Button)?void 0:u.Colour,icon:null==(d=c.Pt[null==(p=t.Button)?void 0:p.Icon])?void 0:d.icon,file:(null==(h=t.Button)||null==(x=h.File)||null==(v=x.data)||null==(g=v.attributes)?void 0:g.url)?_+(null==(j=t.Button)||null==(C=j.File)||null==(b=C.data)||null==(y=b.attributes)?void 0:y.url):void 0},imageDescription:null!=(P=null==(K=t.Image)||null==(f=K.data)||null==(L=f.attributes)?void 0:L.alternativeText)?P:""},l)})},l):(0,n.jsx)("div",{className:u()["my-list-instructions"],children:(0,n.jsx)(d.e,{strapiURL:_,data:t,cdnURL:f})},l)),(0,n.jsx)(r.f,{title:null==L?void 0:L.Title,description:null==L?void 0:L.Description,titleColour:null!=(y=null==L?void 0:L.TitleColour)?y:o.KK.WHITE,descriptionColour:null!=(b=null==L?void 0:L.DescriptionColour)?b:o.KK.WHITE,additionalComponents:(0,n.jsxs)("div",{className:u()["my-list-signed-out-buttons"],children:[(0,n.jsx)(p.h,{button:{align:"center",text:"Create account",colour:o.KK.DARKBLUE,outlined:!1,href:K}}),(0,n.jsx)(p.h,{button:{align:"center",text:"Sign in",colour:o.KK.DARKBLUE,outlined:!0},onButtonClick:()=>(0,s.signIn)("sign-on")})]}),textJustify:"center",backgroundImage:(null==L||null==(a=L.Backgroun
1dImage)||null==(e=a.data)||null==(l=e.attributes)?void 0:l.url)?_+(null==L||null==(h=L.BackgroundImage)||null==(x=h.data)||null==(v=x.attributes)?void 0:v.url)+o.U6.Width720:void 0,titleCentered:!0,backgroundColour:null==L?void 0:L.BackgroundColour})]})}},54977:(t,l,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-list",function(){return e(26213)}])},66737:(t,l,e)=>{"use strict";e.d(l,{j:()=>m});var n=e(37876),i=e(14232),o=e(18613),r=e(81510),s=e(78888),a=e(10553),u=e(76004),c=e.n(u),d=e(89099);let m=t=>{var l,e,u,m,p,g,v,x;let h=(0,d.useRouter)(),{MyListSignedOutBanner:y,SignedOutCardsTitle:b,SignedOutCardsDescription:C,strapiURL:j}=t,L=(0,i.useMemo)(()=>{let t=h.asPath;if(!t)return o.sF.CreateAccount;let l=new URLSearchParams({returnUrl:t});return"".concat(o.sF.CreateAccount,"?").concat(l.toString())},[h.asPath]);return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(r.f,{title:null==y?void 0:y.Title,titleColour:null!=(v=null==y?void 0:y.TitleColour)?v:o.KK.DARKBLUE,description:null==y?void 0:y.Description,descriptionColour:null!=(x=null==y?void 0:y.DescriptionColour)?x:o.KK.DARKBLUE,additionalComponents:(0,n.jsxs)("div",{className:c()["my-list-signed-out-buttons"],children:[(0,n.jsx)(s.h,{button:{align:"center",text:"Create account",colour:o.KK.DARKBLUE,outlined:!1,href:L}}),(0,n.jsx)(s.h,{button:{align:"center",text:"Sign in",colour:o.KK.DARKBLUE,outlined:!0},onButtonClick:()=>(0,a.signIn)("sign-on")})]}),textJustify:"center",backgroundColour:null==y?void 0:y.BackgroundColour,backgroundImage:(null==y||null==(u=y.BackgroundImage)||null==(e=u.data)||null==(l=e.attributes)?void 0:l.url)?j+(null==y||null==(g=y.BackgroundImage)||null==(p=g.data)||null==(m=p.attributes)?void 0:m.url)+o.U6.Width720:void 0,titleCentered:!0}),(b||C)&&(0,n.jsx)(r.f,{title:b,titleColour:o.KK.DARKBLUE,description:C,descriptionColour:o.KK.DARKBLUE,textJustify:"center",backgroundColour:o.KK.WHITE,titleCentered:!0})]})}},76004:t=>{t.exports={"my-list":"MyList_my-list__T5mmb","list-view":"MyList_list-view__7wZzO",mobile:"MyList_mobile___KGAf","list-view__program-wrapper":"MyList_list-view__program-wrapper__FAUkY","my-list-instructions-image-card-container":"MyList_my-list-instructions-image-card-container__6RinI","my-list-unauthenticated-overlay":"MyList_my-list-unauthenticated-overlay__STVWP","my-list-signed-out-buttons":"MyList_my-list-signed-out-buttons__mP11d"}}},t=>{t.O(0,[4840,8805,9466,6627,3005,5070,5784,7086,4628,9966,7371,4448,636,6593,8792],()=>t(t.s=54977)),_N_E=t.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.