1import{a as de}from"./chunk-UH7EI3QF.js";import{e as ce}from"./chunk-5TNOOUAV.js";import{a as pe}from"./chunk-4H4FJHLR.js";import{a as se}from"./chunk-MQLVWUEX.js";import{a as S,c as b}from"./chunk-NFZ5UPA2.js";import"./chunk-V2LCGCHA.js";import{A as M,r as ne,t as I,v as re,x as oe}from"./chunk-LSCLRDON.js";import"./chunk-BON6DGXC.js";import"./chunk-EFZT3TDQ.js";import{l as ie}from"./chunk-ZGSLCXHW.js";import{a as fe}from"./chunk-O474YC64.js";import"./chunk-TQPKTQAL.js";import"./chunk-2UQAVQ45.js";import{e as Z}from"./chunk-JKUHAAK3.js";import"./chunk-ZEOBUA47.js";import"./chunk-Z5XG4XOC.js";import"./chunk-OUVQIOMK.js";import{a as te}from"./chunk-S2WGG3O5.js";import"./chunk-2VXHONUW.js";import"./chunk-BTWHZXKR.js";import"./chunk-RJGQFZWE.js";import"./chunk-RYGMUVZO.js";import"./chunk-6LHHOJ67.js";import"./chunk-C2K24JJO.js";import"./chunk-AFY537I3.js";import"./chunk-FOX6PFLG.js";import"./chunk-XIR7RIPN.js";import"./chunk-EQEHDPN2.js";import"./chunk-W3NQXQOX.js";import"./chunk-FN5PQSEI.js";import"./chunk-DORVKHI7.js";import"./chunk-TN75OO2P.js";import"./chunk-YR7EQSKE.js";import"./chunk-7A4O647I.js";import"./chunk-LO6CADJZ.js";import"./chunk-C5N2ULTJ.js";import"./chunk-HQANNBNX.js";import"./chunk-AE6ER5EQ.js";import"./chunk-VCDKFT4V.js";import"./chunk-U7DEF5TX.js";import"./chunk-PFMUUSHO.js";import"./chunk-2TFAGBRS.js";import"./chunk-BUYGALCV.js";import"./chunk-2QYSD5RO.js";import"./chunk-5PO4QCCX.js";import"./chunk-DMHJZRXD.js";import"./chunk-K4QTA3A5.js";import"./chunk-54W4P7NA.js";import"./chunk-XYUM3QGQ.js";import{K as Q,L as X,g as J,z as K}from"./chunk-AJRHK7D2.js";import"./chunk-QGTBO2LV.js";import"./chunk-BPCMKL7S.js";import"./chunk-PCGUCIEY.js";import"./chunk-TBVUQWMS.js";import{f as N,h as W}from"./chunk-FAGCLODN.js";import{a as ae}from"./chunk-H4C3KJSV.js";import"./chunk-B5UAHDWW.js";import"./chunk-UIP3OGDT.js";import"./chunk-63HL2L7R.js";import{b as ee}from"./chunk-SVLM2ECX.js";import"./chunk-MY5YK5O5.js";import"./chunk-4NGQH4V6.js";import"./chunk-PWQXPZVK.js";import"./chunk-UKHQPMQZ.js";import"./chunk-Y4AYZAWK.js";import{w as H}from"./chunk-7WAXKT5I.js";import{e as Y}from"./chunk-MHLI7EB3.js";import"./chunk-KIBC2ZGT.js";import"./chunk-6K3X73CK.js";import{c as B,d as V}from"./chunk-DLTOIL4G.js";import"./chunk-334MXCTX.js";import"./chunk-U5TOGEJX.js";import"./chunk-OD4FXCMW.js";import{Ac as z,D as A,Fa as E,Fc as F,Ga as k,Hc as f,Ib as p,Ja as j,Ob as T,Tb as D,Wc as o,Xc as P,Yc as _,hc as l,jc as m,la as h,lc as L,mc as U,na as C,nc as q,oc as g,pc as i,pd as G,qc as r,rc as c,tb as v,ud as R,vd as $,y as u,zb as a}from"./chunk-T2TVCV7P.js";import{a as O,b as w,g as ge}from"./chunk-BBHHUGUF.js";var me=ge(fe());var ue=()=>({position:"relative","bottom.px":2});function he(t,d){if(t&1&&c(0,"img",20),t&2){let e=f(2);g("src",e.coverImg,v)}}function ve(t,d){if(t&1){let e=z();i(0,"div",0),c(1,"img",9),i(2,"div",10)(3,"h3"),o(4),r(),i(5,"h1",11),o(6),r(),i(7,"p",12),o(8),r(),i(9,"div",13)(10,"span",14),o(11),r(),c(12,"ui-streamline-icon",15),i(13,"span"),o(14),R(15,"cpdTime2"),r()(),i(16,"button",16),F("click",function(){E(e);let s=f();return k(s.enroll())}),o(17,"Enrol for free"),r(),i(18,"p",17),o(19,"Available on Desktop and mobile/tablet app"),r()(),i(20,"div",18)(21,"div",19),l(22,he,1,1,"img",20),r()()()}if(t&2){let e=f();a(),g("src",e.coverImg,v),a(3),P(e.passport.name),a(2),P(e.passport.headline),a(2),P(e.passport.description),a(3),_(" ",e.passport.passportModules.length," Modules "),a(),g("svgStyle",G(10,ue)),a(2),_(" ",$(15,8,e.totalMin)," "),a(8),m(e.coverImg?22:-1)}}function Pe(t,d){t&1&&(i(0,"div",1),c(1,"img",21),i(2,"h2",22),o(3,"How it works"),r(),i(4,"div",23)(5,"div",24)(6,"h3",25),o(7,"Complete all resources"),r(),i(8,"p",26),o(9,"All Passport resources are free for anyone with an Ausmed account."),r()(),i(10,"div",24)(11,"h3",25),o(12,"Earn a Passport certificate "),r(),i(13,"p",26),o(14,"Your digital certificate will be attached to your Ausmed account."),r()(),i(15,"div",24)(16,"h3",25),o(17,"Share with employers"),r(),i(18,"p",26),o(19,"Stand out by showing you have completed mandatory training."),r()()()())}function xe(t,d){if(t&1&&c(0,"passport-act-progress-list",5),t&2){let e=f();g("modules",e.allModules)("passport",e.apInfo.passport)}}function Ce(t,d){t&1&&(i(0,"div",6)(1,"div",27),c(2,"ap-check-badge",28),i(3,"div",29)(4,"h4"),o(5,"Earn Your Certificate"),r(),i(6,"p",30),o(7,"Complete all modules to earn a certificate of completion."),r()()()())}function _e(t,d){if(t&1&&c(0,"img",33),t&2){let e=f(2);g("src",e.certificateImg,v)}}function Ie(t,d){if(t&1&&(i(0,"div",7),c(1,"img",31),i(2,"h1",32),o(3,"Shareable Certificate"),r(),i(4,"p"),o(5,"Download and share by attaching the file to your resum\xE9 or LinkedIn profile."),r(),l(6,_e,1,1,"img",33),r()),t&2){let e=f();a(6),m(e.certificateImg?6:-1)}}function Me(t,d){if(t&1&&(i(0,"div"),c(1,"ui-foldable-text",35),r()),t&2){let e=d.$implicit;a(),g("text",e)}}function Se(t,d){if(t&1&&(i(0,"div",8)(1,"h1",34),o(2,"Frequently asked questions"),r(),U(3,Me,2,1,"div",null,L),r()),t&2){let e=f();a(3),q(e.faqList)}}var le=class t extends ee(){constructor(e,n,s,x,be,ye,Oe,we,Ae,Ee){super();this.injector=e;this.route=n;this.router=s;this.apService=x;this.titleService=be;this.metaService=ye;this.authService=Oe;this.shareService=we;
1this.objectParamsService=Ae;this.learningProgressService=Ee;this.totalMin=0;let y={title:"Aged Care Training Passport for Workers | Digital Certificate | Ausmed",description:"Easily evidence to employers you have done core training relevant to and recognised by the aged care sector. Enrol now to earn your Ausmed Passport."};S(this.titleService,this.metaService,y,this.destroyed$),b(this.metaService,y,this.destroyed$)}ngOnInit(){let e=this.route.snapshot.params.alias;this.coverImg=M(e,"cover"),this.certificateImg=M(e,"cert"),this.route.data.pipe(h(n=>(this.passport=n.passport,this.processPassportData(this.passport),this.apService.getProcessedEC$(this.passport&&this.passport.passportID))),h(n=>ne(n&&n.enrolment)?(I(this.injector,e,"enrolment successful"),u(null)):this.authService.isAuthenticated()?this.apService.enrolPreview(this.passport&&this.passport.passportID):u(null)),A(n=>oe(n,this.passport)),C(n=>{this.apInfo=n,this.loaded=!0}),h(()=>this.authService.isAuthenticated()?this.learningProgressService.fetchAllProgressWraps():u(null)),C(()=>{this.allModules=H(this.apInfo.modules,n=>{let s=this.learningProgressService.getProgressByID(n.passportModule.resourceID);return w(O({},n),{progress:s})})}),this.untilDestroyed()).subscribe()}setMetaData(e,n,s){let x={title:e?(0,me.decode)(e):void 0,description:n,image:s||void 0};S(this.titleService,this.metaService,x,this.destroyed$),b(this.metaService,x,this.destroyed$)}enroll(){let e=this.passport&&this.passport.passportID,n=this.passport&&this.passport.alias;e&&(this.authService.isAuthenticated()?de(this.injector,{passportID:e,context:"passport landing",getStartFunc:()=>I(this.injector,n)}):(this.shareService.setOnboardingContext("passport landing page"),re(this.injector,this.router.url),this.router.navigate(["/join"])))}processPassportData(e){this.videoUrl=e&&e.detail&&e.detail.video,this.videoCaption=e&&e.detail&&e.detail.videoCaption,this.faqList=e&&e.detail&&e.detail.faq,this.getTotalMinutes(e.passportModules)}getTotalMinutes(e){this.totalMin=0,e.forEach(n=>{this.totalMin+=n.resource&&n.resource.min})}ngOnDestroy(){this.objectParamsService.peekParam(K)&&this.objectParamsService.deleteParam("apLanding"),super.ngOnDestroy()}static{this.\u0275fac=function(n){return new(n||t)(p(j),p(N),p(W),p(ie),p(V),p(B),p(X),p(Q),p(J),p(Z))}}static{this.\u0275cmp=T({type:t,selectors:[["app-passport-landing-page"]],features:[D],decls:9,vars:10,consts:[[1,"row","passport-header"],[1,"passport-features","text-center"],[1,"text-center","p-6",3,"hidden"],[1,"trailer-player","mx-auto"],[3,"videoUrl","videoCaption","coverImg"],[3,"modules","passport"],[1,"d-none","d-md-block","p-6","pt-0","certificate-header"],[1,"certificate-wrapper","text-center","p-6"],[1,"faq-wrapper","mx-auto","p-6"],["alt","Ausmed Passport",1,"d-block","d-md-none","w-100",3,"src"],[1,"col","col-md-5","p-5"],[1,"header-title"],[1,"header-text"],[1,"d-flex","align-content-center"],[1,"mr-10"],["theme","bold","name","time-clock-circle-alternate","size","f-paragraph",1,"mr-2",3,"svgStyle"],[1,"btn","btn-primary","btn-lg","my-6",3,"click"],[1,"header-subtext"],[1,"col-md-7","p-5","text-center","d-none","d-md-block","my-auto"],[1,"center-img"],["alt","Ausmed Passport",1,"img-passport","mx-auto",3,"src"],["src","./images/svg/curved-arrow.svg",1,"curved-arrow","d-none","d-lg-block"],[1,"d-none","d-md-block"],[1,"d-flex","flex-wrap","justify-content-center"],[1,"features-block"],[1,"block-title"],[1,"block-text"],[1,"d-flex","align-items-center","justify-content-center","text-center","p-6"],["status","complete","size","4rem",1,"mx-4"],[1,"text-left","m-3"],[1,"mb-0"],["src","./images/svg/curved-arrow.svg",1,"curved-arrow","d-none","d-md-block"],[1,"text-pink-600"],["alt","Certificate sample",1,"certificate-img",3,"src"],[1,"mb-8"],[3,"text"]],template:function(n,s){n&1&&(l(0,ve,23,11,"div",0),l(1,Pe,20,0,"div",1),i(2,"div",2)(3,"div",3),c(4,"ui-marketing-video-player",4),r()(),l(5,xe,1,2,"passport-act-progress-list",5),l(6,Ce,8,0,"div",6),l(7,Ie,7,1,"div",7),l(8,Se,5,0,"div",8)),n&2&&(m(s.passport?0:-1),a(),m(s.passport?1:-1),a(),g("hidden",!s.videoUrl),a(2),g("videoUrl",s.videoUrl)("videoCaption",s.videoCaption)("coverImg",s.coverImg),a(),m(s.loaded?5:-1),a(),m(s.loaded?6:-1),a(),m(s.loaded?7:-1),a(),m(s.passport&&s.faqList?8:-1))},dependencies:[Y,ae,ce,pe,se,te],styles:[".passport-header[_ngcontent-%COMP%]{margin:0;background-color:#faf6f2}@media(min-width:768px){.passport-header[_ngcontent-%COMP%]{padding:16px 24px}}@media(min-width:1024px){.passport-header[_ngcontent-%COMP%]{padding:32px 64px}}.passport-header[_ngcontent-%COMP%] .center-img[_ngcontent-%COMP%]{height:371px;display:flex;align-items:center;justify-content:center}.passport-header[_ngcontent-%COMP%] .img-passport[_ngcontent-%COMP%]{border-radius:16px;max-width:100%;max-height:100%}.passport-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:36px;line-height:44px}.passport-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%]{font-size:18px;line-height:150%}.passport-header[_ngcontent-%COMP%] .header-subtext[_ngcontent-%COMP%]{color:#6f7786;font-size:14px;line-height:20px}.passport-features[_ngcontent-%COMP%]{padding:24px;position:relative}@media(min-width:768px){.passport-features[_ngcontent-%COMP%]{padding:64px 64px 12px}}.passport-features[_ngcontent-%COMP%] .curved-arrow[_ngcontent-%COMP%]{position:absolute;
1left:calc(50% - 180px);top:-20%}.passport-features[_ngcontent-%COMP%] .features-block[_ngcontent-%COMP%]{width:256px;margin-top:24px}@media(min-width:768px){.passport-features[_ngcontent-%COMP%] .features-block[_ngcontent-%COMP%]{width:240px;margin:32px 24px}}.passport-features[_ngcontent-%COMP%] .features-block[_ngcontent-%COMP%] .block-title[_ngcontent-%COMP%]{color:#f44f6c;font-size:24px;line-height:28px}.passport-features[_ngcontent-%COMP%] .features-block[_ngcontent-%COMP%] .block-text[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.trailer-player[_ngcontent-%COMP%]{margin:24px;width:90%}@media(min-width:768px){.trailer-player[_ngcontent-%COMP%]{width:60%}}.certificate-header[_ngcontent-%COMP%]{background-color:#faf6f2}.certificate-wrapper[_ngcontent-%COMP%]{position:relative}.certificate-wrapper[_ngcontent-%COMP%] .curved-arrow[_ngcontent-%COMP%]{position:absolute;left:calc(50% - 260px);top:-50px;transform:rotate(-38deg)}.certificate-wrapper[_ngcontent-%COMP%] .certificate-img[_ngcontent-%COMP%]{max-width:80%}@media(min-width:768px){.certificate-wrapper[_ngcontent-%COMP%] .certificate-img[_ngcontent-%COMP%]{max-width:25%}}.certificate-wrapper[_ngcontent-%COMP%] .certificate-img[_ngcontent-%COMP%]{box-shadow:0 0 .876513px #0000001a,0 1.16868px 5.84342px #00000026}.faq-wrapper[_ngcontent-%COMP%]{width:90%;max-width:850px}"]})}};export{le as PassportLandingPageComponent};
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.