PageSourceSearch

https://www.ausmed.com/chunk-RLPSSGKM.js

js ausmed.com collected 2026-09-24 17:34:29 UTC 79,051 bytes, 1 lines download raw bytes

1import{b as Dn,c as it}from"./chunk-B35JWDWP.js";import{a as kn}from"./chunk-Y6GYABZI.js";import{e as On}from"./chunk-EYT2L6OO.js";import{a as wn}from"./chunk-EOLBWSQT.js";import{a as Le}from"./chunk-CINBMXMF.js";import{a as Mn}from"./chunk-JAF2LE3C.js";import{a as Sn}from"./chunk-HCBHBT3T.js";import{a as Tn}from"./chunk-4BW3QJ3D.js";import{a as tt}from"./chunk-2P7OQO2V.js";import{a as vn}from"./chunk-7GZW35D6.js";import{a as an,b as ln}from"./chunk-XAHDQ4IH.js";import{c as ce,d as Z}from"./chunk-36EPNVYV.js";import{c as j}from"./chunk-PWNFXWY2.js";import{y as nt}from"./chunk-IHRZFDLB.js";import{a as Pn}from"./chunk-V2LCGCHA.js";import{l as sn}from"./chunk-LSCLRDON.js";import{a as In}from"./chunk-J5RTUER6.js";import{c as mn,v as hn}from"./chunk-7DQ5IDYD.js";import{a as yn,b as bn,c as xn}from"./chunk-SVOCP6NS.js";import{b as on,c as pn}from"./chunk-ZGSLCXHW.js";import{a as li}from"./chunk-O474YC64.js";import{a as et,c as Zt,e as en}from"./chunk-LHDTM7CQ.js";import{c as _n,d as Cn}from"./chunk-TQPKTQAL.js";import{h as nn}from"./chunk-OSUWHDPV.js";import{e as Xt}from"./chunk-JKUHAAK3.js";import{a as Ee}from"./chunk-5SRAOHH7.js";import{a as ae,c as rn}from"./chunk-S2WGG3O5.js";import{b as qt,e as Kt,f as _e,l as Ze,m as Qt}from"./chunk-2VXHONUW.js";import{a as Jt}from"./chunk-BTWHZXKR.js";import{h as gn,q as fn}from"./chunk-NQRRLVFI.js";import{a as cn,b as dn}from"./chunk-RYGMUVZO.js";import{a as le}from"./chunk-YDRZG5W4.js";import{b as jt,c as Ht}from"./chunk-W3NQXQOX.js";import{a as se,b as Ae}from"./chunk-TN75OO2P.js";import{b as ke,c as tn,e as Re}from"./chunk-7A4O647I.js";import{a as Bt}from"./chunk-LO6CADJZ.js";import{b as un}from"./chunk-2TFAGBRS.js";import{b as Wt,e as Vt,f as zt,m as Yt,n as $t}from"./chunk-54W4P7NA.js";import{e as Gt}from"./chunk-XYUM3QGQ.js";import{b as Nt}from"./chunk-QGTBO2LV.js";import{e as Xe}from"./chunk-PCGUCIEY.js";import{a as K}from"./chunk-TBVUQWMS.js";import{h as we,i as Rt,n as Et}from"./chunk-FAGCLODN.js";import{b as Me}from"./chunk-SVLM2ECX.js";import{a as Ft}from"./chunk-MY5YK5O5.js";import{C as Ut,I as Oe,i as At,t as Lt}from"./chunk-7WAXKT5I.js";import{e as b}from"./chunk-MHLI7EB3.js";import{e as kt}from"./chunk-334MXCTX.js";import{A as St,B as wt,D as Ot,G as Mt,H as $,m as De,v as Dt,w as Se}from"./chunk-OD4FXCMW.js";import{Ac as U,D as M,E as ye,Fa as E,Fc as w,Ga as A,Hc as s,Ib as D,Ic as B,Ja as oe,Jc as O,Kd as Qe,Ob as C,Pb as z,Ra as ft,Rc as S,S as te,Sc as Je,Ta as _t,Tb as X,Td as re,Ub as _,V as pt,Vc as ne,Wa as V,Wc as d,Xc as k,Yc as h,Zc as Te,_c as vt,gd as yt,hc as p,hd as bt,i as lt,ia as mt,ic as ht,id as xt,jc as m,kd as fe,la as Q,lc as xe,mc as Pe,na as ut,nc as Ie,o as st,oc as c,pc as r,pd as ie,qc as a,qd as Pt,rc as g,rd as It,sc as qe,ta as be,tb as Ct,tc as Ke,ua as G,ud as y,vc as I,vd as Y,wc as T,wd as N,xa as ge,xc as L,xd as Tt,y as ct,ya as gt,z as dt,zb as o,zd as q}from"./chunk-T2TVCV7P.js";import{a as v,b as P,g as ai}from"./chunk-BBHHUGUF.js";var si=[[["","textSlot",""]]],ci=["[textSlot]"],Rn=()=>({position:"relative","bottom.px":2});function di(t,n){t&1&&g(0,"ui-streamline-icon",4),t&2&&c("svgStyle",ie(1,Rn))}function pi(t,n){t&1&&g(0,"ui-streamline-icon",5),t&2&&c("svgStyle",ie(1,Rn))}function mi(t,n){if(t&1&&(r(0,"div",3),p(1,di,1,2,"ui-streamline-icon",4),p(2,pi,1,2,"ui-streamline-icon",5),r(3,"p",6),d(4),a()()),t&2){let e=s();o(),m(e.showWarning?1:-1),o(),m(e.finished?2:-1),o(2),k(e.title)}}function ui(t,n){if(t&1&&(r(0,"div",7),O(1),a()),t&2){let e=s();ne(e.showWarning?"ml-4":"")}}var Ce=class t{constructor(){this.showWarning=!1;this.finished=!1}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=C({type:t,selectors:[["cpd-criteria-card"]],inputs:{showWarning:"showWarning",finished:"finished",title:"title"},ngContentSelectors:ci,decls:3,vars:8,consts:[["uiPlaceholderHelper","","clsOnLoad","loading-border",1,"cpd-criteria-card","h-100"],["class","d-flex mb-1",4,"uiPlaceholder","uiPlaceholderHeight","uiPlaceholderWidth","uiPlaceholderClassName"],["class","text-neutral-700",3,"class",4,"uiPlaceholder","uiPlaceholderHeight"],[1,"d-flex","mb-1"],["theme","bold","name","alert-circle","size","f-paragraph","color","text-warning",1,"mr-2",3,"svgStyle"],["theme","bold","name","check-circle-1","size","f-paragraph","color","text-success",1,"mr-2",3,"svgStyle"],[1,"mb-0","font-weight-semibold","f-5"],[1,"text-neutral-700"]],template:function(e,i){e&1&&(B(si),r(0,"div",0),_(1,mi,5,3,"div",1)(2,ui,2,2,"div",2),a()),e&2&&(ne(i.showWarning?"warning":""),o(),c("uiPlaceholder","auto")("uiPlaceholderHeight",20)("uiPlaceholderWidth",64)("uiPlaceholderClassName","mb-1"),o(),c("uiPlaceholder","auto")("uiPlaceholderHeight",16))},dependencies:[ce,j,b],styles:[".cpd-year-card[_ngcontent-%COMP%]{padding:16px;border-radius:16px;border:1px solid #DEE1E7}.cpd-year-card--click[_ngcontent-%COMP%]{cursor:pointer}.cpd-year__progress[_ngcontent-%COMP%]{width:100%}@media(min-width:576px){.cpd-year__progress[_ngcontent-%COMP%]{width:50%}}@media(min-width:576px){.add-to-portfolio-btn[_ngcontent-%COMP%]{width:fit-content;min-width:160px}}
1.cpd-year-card__left-time[_ngcontent-%COMP%]{color:#6f7786}.cpd-criteria[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:11px}.cpd-criteria-card[_ngcontent-%COMP%]{min-width:160px;padding:8px;border-radius:8px;border:1px solid #DEE1E7;flex-direction:column;gap:4px;flex:1 0 0}.cpd-criteria-card.warning[_ngcontent-%COMP%]{border:1px solid #FFC300}.loading-border[_ngcontent-%COMP%]{border:1px solid #DEE1E7!important}.reflection-needed-icon[_ngcontent-%COMP%]{display:inline-block;width:16px;height:16px;border-radius:8px;background-color:#0e3789;background-image:linear-gradient(-45deg,#EDEFF2 25%,transparent 25%,transparent 50%,#EDEFF2 50%,#EDEFF2 75%,transparent 75%,transparent);z-index:1;background-size:15px 15px;overflow:hidden}.learn-title[_ngcontent-%COMP%]{padding-top:2px}.learn-title[_ngcontent-%COMP%]:hover{text-decoration:underline}.learn-dot[_ngcontent-%COMP%]{height:4px;width:4px;background-color:#6f7786;border-radius:50%}"],changeDetection:0})}},Ue=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({imports:[$,b,Z,Ce]})}};function fi(t,n){if(t&1&&(r(0,"span",4),d(1),y(2,"cpdTime2"),a()),t&2){let e=s(2);o(),h(" / ",N(2,1,e.totalRequired,e.format))}}function _i(t,n){t&1&&(r(0,"span",5),d(1," Done"),a())}function Ci(t,n){if(t&1&&(r(0,"div",2),g(1,"cpd-badge",3),p(2,fi,3,4,"span",4),p(3,_i,2,0,"span",5),a()),t&2){let e=s();o(),c("cpdMin",e.showPercentage?e.CPDPercentage:e.totalDocumented)("format",e.showPercentage?"percentage":e.format),o(),m(e.hasHours&&!e.showPercentage&&e.totalRequired>0?2:-1),o(),m(e.showPercentage&&e.CPDPercentage>0?3:-1)}}function hi(t,n){if(t&1&&g(0,"div",9),t&2){let e=s(3);Je("width",e.plannedPercentage+"%")}}function vi(t,n){if(t&1&&(r(0,"div",6),g(1,"div",7),p(2,hi,1,2,"div",8),a()),t&2){let e=s(2);o(),Je("width",e.CPDPercentage+"%"),o(),m(e.resourcesToBeDocTotalTime&&e.CPDPercentage<100?2:-1)}}function yi(t,n){if(t&1&&(r(0,"div"),p(1,vi,3,3,"div",6),a()),t&2){let e=s();o(),m(e.hasHours&&e.totalRequired>0?1:-1)}}var Ne=class t{constructor(){this.showPercentage=!1;this.CPDPercentage=0;this.plannedPercentage=0}ngOnChanges(n){if(n.plan&&this.plan){this.showPercentage=this.plan.progresses.length>1&&this.totalRequired>0;let e=ln(this.plan);this.CPDPercentage=Math.round(e/this.totalRequired*100),this.format=this.plan.cardInfo?.format}n.resourcesToBeDocTotalTime&&this.resourcesToBeDocTotalTime&&(this.plannedPercentage=Math.round(this.resourcesToBeDocTotalTime/this.totalRequired*100),this.plannedPercentage=Math.min(this.plannedPercentage,100-this.CPDPercentage))}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=C({type:t,selectors:[["cpd-progress-bar"]],inputs:{plan:"plan",totalDocumented:"totalDocumented",totalRequired:"totalRequired",hasHours:"hasHours",resourcesToBeDocTotalTime:"resourcesToBeDocTotalTime"},features:[V],decls:2,vars:5,consts:[["class","d-flex align-items-center mb-2",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight","uiPlaceholderClassName"],[4,"uiPlaceholder"],[1,"d-flex","align-items-center","mb-2"],["size","md",3,"cpdMin","format"],[1,"f-1","text-neutral-700","pl-2"],[1,"f-1","text-blue-800"],["height","12px",1,"progress"],["role","progressbar",1,"progress-bar","documented-progress"],["role","progressbar",1,"progress-bar","TBD-progress",3,"width"],["role","progressbar",1,"progress-bar","TBD-progress"]],template:function(e,i){e&1&&_(0,Ci,4,4,"div",0)(1,yi,2,1,"div",1),e&2&&(c("uiPlaceholder","auto")("uiPlaceholderWidth",250)("uiPlaceholderHeight",40)("uiPlaceholderClassName","mb-2"),o(),c("uiPlaceholder","auto"))},dependencies:[j,Ee,ae],styles:[".progress[_ngcontent-%COMP%]{height:16px;border-radius:8px}.progress[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{background-color:#0e3789;border-radius:8px}.progress[_ngcontent-%COMP%]   .progress-bar.documented-progress[_ngcontent-%COMP%]{border-radius:8px 0 0 8px;z-index:2}.progress[_ngcontent-%COMP%]   .progress-bar.TBD-progress[_ngcontent-%COMP%]{border-radius:0 8px 8px 0;background:repeating-linear-gradient(-45deg,transparent,transparent,4px,#0E3789 4px,#0E3789 8px);z-index:1;overflow:hidden}"],changeDetection:0})}};var Pi=(t,n)=>({"cpd-year-card":t,"cpd-year-card--click":n}),Ii=()=>({position:"relative","bottom.px":2}),Un=()=>({"font-size":"10px"});function Ti(t,n){if(t&1&&(r(0,"span",11),d(1),y(2,"localisedDate"),y(3,"localisedDate"),a()),t&2){let e=s(3);o(),vt("",N(2,3,e.plan==null||e.plan.period==null?null:e.plan.period.startDate,"MMM yyyy")," - ",N(3,6,e.plan==null||e.plan.period==null?null:e.plan.period.endDate,"MMM yyyy")," ",(e.plan==null?null:e.plan.daysLeft)>=0?"(current)":"")}}function Di(t,n){t&1&&(r(0,"div"),_(1,Ti,4,9,"span",10),a()),t&2&&(o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",300)("uiPlaceholderClassName","mb-1"))}function Si(t,n){t&1&&(r(0,"span",15),d(1," Current year "),a())}function wi(t,n){if(t&1&&(r(0,"div",8),_(1,Si,2,0,"span",12),r(2,"div",13),g(3,"ui-streamline-icon",14),d(4),a()()),t&2){let e=s(2);o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",200)("uiPlaceholderClassName","mb-1 mr-2"),o(2),c("svgStyle",ie(5,Ii)),o(),h(" ",e.leftTimeReminderString," ")}}function Oi(t,n){if(t&1&&(r(0,"div",9)(1,"span",16),d(2," Complete "),a()()),t&2){let e=s(2);c("hidden",!(!(e.plan==null||e.plan.cardInfo==null)&&e.plan.cardInfo.totalRequireMin)||e.homePageDisplay)}}function Mi(t,n){t&1&&(r(0,"span",18),d(1," In progress "),a())}function ki(t,n){if(t&1&&(r(0,"div",9),_(1,Mi,2,0,"span",17),a()),t&2){let e=s(2);c("hidden",!(!(e.plan==null||e.plan.cardInfo==null)&&e.plan.cardInfo.totalRequireMin)||e.homePageDisplay),o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",64)("uiPlaceholderHeight",20)}}function Ri(t,n){if(t&1&&(r(0,"div",3),p(1,Di,2,3,"div")(2,wi,5,6,"div",8),p(3,Oi,3,1,"div",9),p(4,ki,2,4,"div",9),a()),t&2){let e=s();o(),m(e.homePageDisplay?2:1),o(2),m((e.plan==null?null:e.plan.auditReady)===100&&(e.plan==null?null:e.plan.daysLeft)>=0?3:-1),o(),m((e.plan==null?null:e.plan.auditReady)!==100&&(e.plan==null?null:e.plan.daysLeft)>=0?4:-1)}}function Ei(t,n){if(t&1&&(r(0,"span"),d(1),a()),t&2){let e=s(3);o(),h(" ",e.displayNames[0]," ")}}function Ai(t,n){if(t&1&&(r(0,"span"),d(1),a()),t&2){let e=s(3);o(),h(" ",e.displayNames[0]+", "+e.displayNames[1]," ")}}function Li(t,n){t&1&&d(0," Multiple professions ")}function Ui(t,n){if(t&1&&(r(0,"span",21),p(1,Li,1,0),a()),t&2){let e=s(3),i=S(9);
1c("tooltip",i),o(),m(e.displayNames.length>2||!e.cardForm&&e.displayNames.length>1?1:-1)}}function Ni(t,n){if(t&1&&(r(0,"div",4),p(1,Ei,2,1,"span"),p(2,Ai,2,1,"span"),_(3,Ui,2,2,"span",20),a()),t&2){let e=s(2);o(),m(e.displayNames.length===1?1:-1),o(),m(e.displayNames.length===2&&e.cardForm?2:-1),o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",200)("uiPlaceholderClassName","mb-4")}}function Fi(t,n){t&1&&_(0,Ni,4,5,"div",19),t&2&&c("uiPlaceholder","auto")("uiPlaceholderWidth",170)("uiPlaceholderHeight",20)("uiPlaceholderClassName","mb-2")}function Bi(t,n){if(t&1&&(r(0,"div",5),g(1,"cpd-progress-bar",22),a()),t&2){let e=s();o(),c("totalDocumented",e.totalCPDMins)("plan",e.plan)("totalRequired",e.totalRequired)("hasHours",e.complianceSpecs==null?null:e.complianceSpecs.hasHours)("resourcesToBeDocTotalTime",e.resourcesToBeDocTotalTime)}}function ji(t,n){if(t&1){let e=U();r(0,"button",26),w("click",function(l){E(e);let u=s(2);return A(u.openDocFlow(l))}),r(1,"div",27),g(2,"ui-streamline-icon",28),r(3,"span"),d(4,"Add"),a(),r(5,"span"),d(6,"\xA0to Portfolio"),a()()()}}function Hi(t,n){if(t&1&&(r(0,"div",6),g(1,"cpd-progress-bar",23),r(2,"div",24),_(3,ji,7,0,"button",25),a()()),t&2){let e=s();o(),c("totalDocumented",e.totalCPDMins)("plan",e.plan)("totalRequired",e.totalRequired)("hasHours",e.complianceSpecs==null?null:e.complianceSpecs.hasHours)("resourcesToBeDocTotalTime",e.resourcesToBeDocTotalTime),o(2),c("uiPlaceholder","auto")("uiPlaceholderWidth","100%")("uiPlaceholderHeight",35)}}function Wi(t,n){if(t&1&&(r(0,"span",31),d(1),y(2,"number"),a()),t&2){let e=s(2);o(),h(" ",N(2,1,(e.plan==null?null:e.plan.daysLeft)/30,"1.0-0")," months left")}}function Gi(t,n){if(t&1&&(r(0,"span",31),d(1),a()),t&2){let e=s(2);o(),Te("",e.plan==null?null:e.plan.daysLeft," ",(e.plan==null?null:e.plan.daysLeft)>1?"days":"day"," left")}}function Vi(t,n){if(t&1&&(r(0,"div",7)(1,"cpd-criteria-card",29),I(2,30),r(3,"span",31),d(4),a(),T(),a(),r(5,"cpd-criteria-card",32),y(6,"translate"),I(7,30),r(8,"span",31),d(9),a(),T(),a(),r(10,"cpd-criteria-card",33),I(11,30),p(12,Wi,3,4,"span",31),p(13,Gi,2,2,"span",31),T(),a()()),t&2){let e=s();c("hidden",!(!(e.plan==null||e.plan.cardInfo==null)&&e.plan.cardInfo.totalRequireMin)),o(),c("showWarning",!((e.plan==null?null:e.plan.contextOfPractices.length)>0&&(e.plan==null?null:e.plan.goals.length)>0))("finished",(e.plan==null?null:e.plan.contextOfPractices.length)>0&&(e.plan==null?null:e.plan.goals.length)>0),o(3),k((e.plan==null?null:e.plan.contextOfPractices.length)>0&&(e.plan==null?null:e.plan.goals.length)>0?"Completed":(e.plan==null?null:e.plan.contextOfPractices.length)>0||(e.plan==null?null:e.plan.goals.length)>0?"Incompleted":"There\u2019s nothing in your plan"),o(),c("title",fe("",Y(6,13,"CPD")," Hours"))("showWarning",!(e.plan!=null&&e.plan.hoursComplete))("finished",e.plan==null?null:e.plan.hoursComplete),o(4),k(e.plan!=null&&e.plan.hoursComplete?"Finished":"In progress"),o(),c("showWarning",(e.plan==null?null:e.plan.daysLeft)<=100)("hidden",(e.plan==null?null:e.plan.contextOfPractices.length)>0&&(e.plan==null?null:e.plan.goals.length)>0&&(e.plan==null?null:e.plan.hoursComplete)),o(2),m((e.plan==null?null:e.plan.daysLeft)>100?12:-1),o(),m((e.plan==null?null:e.plan.daysLeft)<=100?13:-1)}}function zi(t,n){if(t&1){let e=U();r(0,"div",38),w("click",function(){E(e);let l=s(3);return A(l.goToCompletedCPD())}),g(1,"ui-streamline-icon",39),r(2,"div",40),d(3),y(4,"translate"),a(),g(5,"ui-streamline-icon",41),a()}t&2&&(o(3),h(" Completed ",Y(4,2,"CPD")," "),o(2),c("svgStyle",ie(4,Un)))}function Yi(t,n){if(t&1&&(r(0,"div",42)(1,"div",43),d(2),a(),g(3,"div",44),r(4,"div",45),d(5),y(6,"cpdTime2"),a()()),t&2){let e=s(4);o(2),h(" ",(e.plan==null||e.plan.acts==null?null:e.plan.acts.length)+(e.plan.acts.length<=1?" activity":" activities")," "),o(3),h(" ",N(6,2,e.plan==null||e.plan.cardInfo==null?null:e.plan.cardInfo.totalCPDMin,"hour")," ")}}function $i(t,n){if(t&1&&(I(0),p(1,Yi,7,5,"div",42),T()),t&2){let e=s(3);o(),m(e.plan!=null&&e.plan.acts?1:-1)}}function qi(t,n){t&1&&(r(0,"div",34),_(1,zi,6,5,"div",36)(2,$i,2,1,"ng-container",37),a()),t&2&&(o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",128)("uiPlaceholderHeight",20),o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",128)("uiPlaceholderHeight",20))}function Ki(t,n){if(t&1){let e=U();r(0,"div",35)(1,"div",38),w("click",function(){E(e);let l=s(2);return A(l.goToReflectionNeeded())}),g(2,"img",46),r(3,"div",40),d(4," Reflection needed "),a(),g(5,"ui-streamline-icon",41),a(),r(6,"div",42)(7,"div",43),d(8),a(),g(9,"div",44),r(10,"div",45),d(11),y(12,"cpdTime2"),a()()()}if(t&2){let e=s(2);o(5),c("svgStyle",ie(5,Un)),o(3),h(" ",e.resourcesToBeDoc.length+(e.resourcesToBeDoc.length<=1?" activity":" activities")," "),o(3),h(" ",Y(12,3,e.resourcesToBeDocTotalTime)," ")}}function Ji(t,n){if(t&1&&(r(0,"div",5),p(1,qi,3,6,"div",34),p(2,Ki,13,6,"div",35),a()),t&2){let e=s();o(),m(!(e.plan==null||e.plan.acts==null)&&e.plan.acts.length?1:-1),o(),m(e.resourcesToBeDoc!=null&&e.resourcesToBeDoc.length?2:-1)}}function Qi(t,n){if(t&1&&(r(0,"li"),d(1),a()),t&2){let e=n.$implicit;o(),k(e)}}function Xi(t,n){if(t&1&&(r(0,"div",47),Pe(1,Qi,2,1,"li",null,xe),a()),t&2){let e=s();o(),Ie(e.displayNames)}}var En=class t{constructor(n,e){this.router=n;this.injector=e;this.showCriteria=!0;this.showBreakdown=!1;this.cardForm=!0;this.showPlanTitle=!0;this.homePageDisplay=!1;this.displayNames=[];this.resourcesToBeDocTotalTime=0;this.leftTimeReminderString="";this.clickable=!1;this.openDocFlow=n=>
1{n.stopPropagation(),Tn(this.injector,{nextFlowInfo:{flowName:"Choice",nextFlowInitParams:{entrancePointContext:"header"}}})};this.goToReflectionNeeded=()=>{this.router.navigate(["/portfolio"])};this.goToCompletedCPD=()=>{this.plan&&this.router.navigate(["/portfolio/document-cpd",this.plan.planID])}}ngOnInit(){this.clickable=this.showCriteria||this.homePageDisplay,this.leftTimeReminderString=this.generateLeftTimeString(this.plan)}ngOnChanges(n){if(n.plan&&this.plan){this.displayNames=this.plan.cardInfo.displayName.map(i=>Wt(i)&&this.pProfile&&this.pProfile.otherProfession||i);let e=an([this.plan],this.pProfile);this.totalRequired=e.totalRequired,this.totalCPDMins=e.totalDocumented}n.resourcesToBeDoc&&this.resourcesToBeDoc&&(this.resourcesToBeDocTotalTime=this.resourcesToBeDoc.map(e=>e.cpdMins||0).reduce((e,i)=>e+i,0))}handleKeyDown(n){this.clickable&&n.key==="Enter"&&this.goToCPDYear()}generateLeftTimeString(n){if(!n)return;let e=n.daysLeft,l=` left to ${n.auditReady===100?"CPD year deadline":"complete"}`;if(e>100)return Number((e/30).toFixed(0))+" months"+l;{let u=e<=1?" day":" days";return e+u+l}}goToCPDYear(){this.plan&&this.router.navigate(["/portfolio/overview",this.plan.planID])}static{this.\u0275fac=function(e){return new(e||t)(D(we),D(oe))}}static{this.\u0275cmp=C({type:t,selectors:[["cpd-year-card"]],inputs:{complianceSpecs:"complianceSpecs",plan:"plan",pProfile:"pProfile",showCriteria:"showCriteria",showBreakdown:"showBreakdown",resourcesToBeDoc:"resourcesToBeDoc",cardForm:"cardForm",showPlanTitle:"showPlanTitle",homePageDisplay:"homePageDisplay"},standalone:!1,features:[V],decls:10,vars:9,consts:[["professionList",""],["uiPlaceholderHelper","","clsOnLoad","loading","tabindex","0",3,"click","keydown","ngClass"],[1,"heading"],[1,"d-flex","justify-content-between","f-5","mb-1"],[1,"d-flex","text-neutral-700","f-5","mb-0"],[1,"mt-4"],[1,"d-flex","flex-column","flex-sm-row","mt-4","align-items-sm-end","justify-content-sm-between","gap-4"],[1,"cpd-criteria","mt-4",3,"hidden"],[1,"d-flex","flex-column","flex-sm-row"],[3,"hidden"],["class","font-weight-semibold card-heading",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderClassName"],[1,"font-weight-semibold","card-heading"],["class","font-weight-semibold card-heading mb-1 mb-sm-0",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderClassName"],[1,"ml-sm-4","cpd-year-card__left-time"],["name","calendar-3","theme","regular","size","f-paragraph","color","text-neutral-700",1,"mr-1",3,"svgStyle"],[1,"font-weight-semibold","card-heading","mb-1","mb-sm-0"],[1,"badge","badge-success"],["class","badge badge-light",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight"],[1,"badge","badge-light"],["class","d-flex text-neutral-700 f-5 mb-0",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight","uiPlaceholderClassName"],["container","body","placement","bottom",3,"tooltip",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderClassName"],["container","body","placement","bottom",3,"tooltip"],[3,"totalDocumented","plan","totalRequired","hasHours","resourcesToBeDocTotalTime"],[1,"cpd-year__progress",3,"totalDocumented","plan","totalRequired","hasHours","resourcesToBeDocTotalTime"],[1,"add-to-portfolio-btn"],["role","button","class","w-100 btn btn-core btn-primary",3,"click",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight"],["role","button",1,"w-100","btn","btn-core","btn-primary",3,"click"],[1,"w-100","d-flex","flex-row","align-items-center","justify-content-center"],["name","add","size","f-caption","theme","bold",1,"sl-icon","mr-1"],["title","Learning plan",3,"showWarning","finished"],["textSlot",""],[1,"f-caption"],[3,"title","showWarning","finished"],["title","Time Left",3,"showWarning","hidden"],[1,"d-flex","justify-content-between","mb-2"],[1,"d-flex","justify-content-between","align-items-center"],["class","d-flex flex-row w-100 fw-semibold align-items-center cursor-pointer",3,"click",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight"],[4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight"],[1,"d-flex","flex-row","w-100","fw-semibold","align-items-center","cursor-pointer",3,"click"],["name","check-circle-1","theme","bold","size","f-paragraph","color","text-blue-800"],[1,"f-small","fw-semibold","mx-1","learn-title"],["name","arrow-right-1","theme","bold","color","text-neutral-700",3,"svgStyle"],[1,"d-flex","flex-row","align-items-center","text-nowrap"],[1,"text-neutral-700","f-caption"],[1,"learn-dot","mx-2"],[1,"text-blue-800","f-caption","fw-semibold"],["src","../../images/portfolio-au/cpd-icon-nav.svg","alt","reflection needed",1,""],[1,"py-1"]],template:function(e,i){e&1&&(r(0,"div",1),w("click",function(){return i.clickable?i.goToCPDYear():null})("keydown",function(u){return i.handleKeyDown(u)}),r(1,"div",2),p(2,Ri,5,3,"div",3),p(3,Fi,1,4,"div",4),a(),p(4,Bi,2,5,"div",5)(5,Hi,4,8,"div",6),p(6,Vi,14,15,"div",7),p(7,Ji,3,2,"div",5),a(),_(8,Xi,3,0,"ng-template",null,0,q)),e&2&&(c("ngClass",It(6,Pi,i.cardForm,i.clickable)),o(2),m(i.showPlanTitle?2:-1),o(),m(i.homePageDisplay?-1:3),o(),m(i.homePageDisplay?5:4),o(2),m(i.showCriteria?6:-1),o(),m(i.showBreakdown&&(!(i.plan==null||i.plan.acts==null)&&i.plan.acts.length||i.resourcesToBeDoc!=null&&i.resourcesToBeDoc.length)?7:-1))},dependencies:[De,Ce,b,Ne,se,j,ce,Ot,_n,ae,tn],styles:[".cpd-year-card[_ngcontent-%COMP%]{padding:16px;border-radius:16px;border:1px solid #DEE1E7}.cpd-year-card--click[_ngcontent-%COMP%]{cursor:pointer}.cpd-year__progress[_ngcontent-%COMP%]{width:100%}@media(min-width:576px){.cpd-year__progress[_ngcontent-%COMP%]{width:50%}}@media(min-width:576px){.add-to-portfolio-btn[_ngcontent-%COMP%]{width:fit-content;min-width:160px}}
1.cpd-year-card__left-time[_ngcontent-%COMP%]{color:#6f7786}.cpd-criteria[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:11px}.cpd-criteria-card[_ngcontent-%COMP%]{min-width:160px;padding:8px;border-radius:8px;border:1px solid #DEE1E7;flex-direction:column;gap:4px;flex:1 0 0}.cpd-criteria-card.warning[_ngcontent-%COMP%]{border:1px solid #FFC300}.loading-border[_ngcontent-%COMP%]{border:1px solid #DEE1E7!important}.reflection-needed-icon[_ngcontent-%COMP%]{display:inline-block;width:16px;height:16px;border-radius:8px;background-color:#0e3789;background-image:linear-gradient(-45deg,#EDEFF2 25%,transparent 25%,transparent 50%,#EDEFF2 50%,#EDEFF2 75%,transparent 75%,transparent);z-index:1;background-size:15px 15px;overflow:hidden}.learn-title[_ngcontent-%COMP%]{padding-top:2px}.learn-title[_ngcontent-%COMP%]:hover{text-decoration:underline}.learn-dot[_ngcontent-%COMP%]{height:4px;width:4px;background-color:#6f7786;border-radius:50%}"],changeDetection:0})}};var An=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({imports:[$,le,Ue,b,Cn,Ae,Z,Re]})}};var Zi=[[["","front",""]],[["","back",""]]],eo=["[front]","[back]"],Nn=class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=C({type:t,selectors:[["ui-stack"]],ngContentSelectors:eo,decls:5,vars:0,consts:[[1,"ui-stack"],[1,"ui-stack--front"],[1,"ui-stack--back"]],template:function(e,i){e&1&&(B(Zi),qe(0,"div",0)(1,"div",1),O(2),Ke(),qe(3,"div",2),O(4,1),Ke()())},styles:[".ui-stack[_ngcontent-%COMP%]{width:0;height:0;position:absolute}.ui-stack--front[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1}.ui-stack--back[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:0}"]})}},de=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({imports:[$]})}};var to=[[["","collapseButton",""]]],no=["[collapseButton]"],io=t=>[t];function oo(t,n){t&1&&L(0)}function ro(t,n){if(t&1&&(r(0,"a",7)(1,"div",8),_(2,oo,1,0,"ng-container",9),a()()),t&2){let e=s(2),i=S(2);c("routerLink",Pt(3,io,e.recordedAct.viewLink)),o(),c("ngClass",e.collapsable?"":"clickable"),o(),c("ngTemplateOutlet",i)}}function ao(t,n){t&1&&L(0)}function lo(t,n){if(t&1){let e=U();r(0,"div",10),w("click",function(){E(e);let l=s(2);return A(l.onClickCard())}),_(1,ao,1,0,"ng-container",9),a()}if(t&2){let e=s(2),i=S(2);c("ngClass",e.collapsable?"":"clickable"),o(),c("ngTemplateOutlet",i)}}function so(t,n){if(t&1&&(r(0,"div"),p(1,ro,3,5,"a",7)(2,lo,2,2,"div",8),a()),t&2){let e=s();o(),m(e.data.status==="Recorded"||e.data.status==="Unevaluated"?1:2)}}function co(t,n){if(t&1&&(r(0,"div",18),g(1,"activity-icon",19),a()),t&2){let e=s(2);o(),c("icon","activity-icon-"+e.activityName)("showAusmedLogo",e.data.isAusmedRes)("activityName",e.activityName)}}function po(t,n){if(t&1&&(r(0,"div"),g(1,"ui-clamped-text",20),a()),t&2){let e=s(2);o(),c("text",e.data.resourceName)}}function mo(t,n){if(t&1&&(r(0,"div",21),d(1),y(2,"date"),a()),t&2){let e=s(3);o(),k(N(2,1,e.incompleteAct.learningDate,"d MMMM y"))}}function uo(t,n){t&1&&L(0)}function go(t,n){t&1&&L(0)}function fo(t,n){t&1&&L(0)}function _o(t,n){t&1&&L(0)}function Co(t,n){if(t&1&&(g(0,"ui-streamline-icon",27),r(1,"span"),d(2),a()),t&2){let e=s(4);c("tooltip","Linked learning goals"),o(2),h("\xA0(",e.recordedAct.linkedGoalsCount,")")}}function ho(t,n){if(t&1&&(g(0,"ui-streamline-icon",28),r(1,"span"),d(2),a()),t&2){let e=s(4);c("tooltip","Evidences"),o(2),h("\xA0(",e.recordedAct.evidencesCount,")")}}function vo(t,n){if(t&1&&(r(0,"div",22),d(1),y(2,"date"),a(),r(3,"div",23),_(4,uo,1,0,"ng-container",9),r(5,"span",24),d(6,"\u2022"),a(),_(7,go,1,0,"ng-container",9),a(),r(8,"div",25)(9,"span"),d(10),y(11,"date"),a(),r(12,"span",26),d(13,"\u2022"),a(),_(14,fo,1,0,"ng-container",9),r(15,"span",26),d(16,"\u2022"),a(),_(17,_o,1,0,"ng-container",9),a(),_(18,Co,3,2,"ng-template",null,4,q)(20,ho,3,2,"ng-template",null,5,q)),t&2){let e=S(19),i=S(21),l=s(3);o(),h(" ",N(2,6,l.recordedAct.reflectDate,"d MMMM y")," "),o(3),c("ngTemplateOutlet",i),o(3),c("ngTemplateOutlet",e),o(3),h(" ","Reflected on "+N(11,9,l.recordedAct.reflectDate,"d MMMM y")," "),o(4),c("ngTemplateOutlet",i),o(3),c("ngTemplateOutlet",e)}}function yo(t,n){if(t&1&&(I(0),p(1,mo,3,4,"div",21),p(2,vo,22,12),T()),t&2){let e=s(2);o(),m(e.data.status==="Incomplete"?1:-1),o(),m(e.data.status==="Recorded"?2:-1)}}function bo(t,n){t&1&&L(0)}function xo(t,n){if(t&1&&(I(0,null,6),_(2,bo,1,0,"ng-container",9),T()),t&2){s(4);let e=S(8);o(2),c("ngTemplateOutlet",e)}}function Po(t,n){t&1&&L(0)}function Io(t,n){t&1&&L(0)}function To(t,n){if(t&1&&(r(0,"div",29),_(1,Po,1,0,"ng-container",9)(2,Io,1,0,"ng-container",9),a()),t&2){s(4);let e=S(4),i=S(6);o(),c("ngTemplateOutlet",e),o(),c("ngTemplateOutlet",i)}}function Do(t,n){if(t&1&&p(0,xo,3,1,"ng-container")(1,To,3,2,"div",29),t&2){let e=n,i=s(3);m(e<i.breakpoint.sm||e>=i.breakpoint.md?0:1)}}function So(t,n){t&1&&L(0)}function wo(t,n){t&1&&L(0)}function Oo(t,n){if(t&1&&_(0,So,1,0,"ng-container",9)(1,wo,1,0,"ng-container",9),t&2){s(3);let e=S(4),i=S(6);c("ngTemplateOutlet",e),o(),c("ngTemplateOutlet",i)}}function Mo(t,n){if(t&1&&(I(0),p(1,Do,2,1),y(2,"async"),ht(3,Oo,2,2),T()),t&2){let e,i=s(2);o(),m((e=Y(2,1,i.responsive$))?1:3,e)}}function ko(t,n){if(t&1){let e=U();r(0,"div",32)(1,"ui-dropdown-button",33),g(2,"ui-streamline-icon",34),a()(),r(3,"div",35)(4,"button",36),w("click",function(l){E(e);let u=s(4);return A(u.onAction(u.actions.reflect,l))}),d(5," Add reflection "),a()()}if(t&2){let e=s(4);o(),c("options",e.dropdownOptions)}}
1function Ro(t,n){if(t&1){let e=U();r(0,"div",31)(1,"button",37),w("click",function(l){E(e);let u=s(4);return A(u.onAction(u.actions.viewAct,l))}),d(2,"View"),a()()}}function Eo(t,n){if(t&1&&(I(0),p(1,ko,6,1),p(2,Ro,3,0,"div",31),T()),t&2){let e=s(3);o(),m(e.data.status==="Incomplete"?1:-1),o(),m(e.data.status==="Recorded"||e.data.status==="Unevaluated"?2:-1)}}function Ao(t,n){t&1&&(r(0,"div",17),_(1,Eo,3,2,"ng-container",30),a()),t&2&&(o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",64)("uiPlaceholderHeight",36))}function Lo(t,n){t&1&&(r(0,"div",17)(1,"div",31),O(2),a()())}function Uo(t,n){if(t&1&&(r(0,"div",11),_(1,co,2,3,"div",12),r(2,"div",13),_(3,po,2,1,"div",14)(4,yo,3,2,"ng-container",15),a()(),_(5,Mo,4,3,"ng-container",16),p(6,Ao,2,3,"div",17),p(7,Lo,3,0,"div",17)),t&2){let e=s();o(),c("uiPlaceholder","auto")("uiPlaceholderHeight",48)("uiPlaceholderWidth",48),o(2),c("uiPlaceholder","auto")("uiPlaceholderHeight",20)("uiPlaceholderWidth",256)("uiPlaceholderClassName","mb-1"),o(),c("uiPlaceholder","auto")("uiPlaceholderHeight",16)("uiPlaceholderWidth",128),o(),c("uiPlaceholder","auto")("uiPlaceholderHide",!0),o(),m(e.collapsable?-1:6),o(),m(e.collapsable?7:-1)}}function No(t,n){t&1&&g(0,"img",40)}function Fo(t,n){t&1&&g(0,"ui-streamline-icon",41)}function Bo(t,n){t&1&&g(0,"img",40)}function jo(t,n){t&1&&d(0," Reflection Needed ")}function Ho(t,n){t&1&&d(0," Complete ")}function Wo(t,n){t&1&&d(0," Reflection Error ")}function Go(t,n){if(t&1&&d(0),t&2){let e=s(2);h(" ",e.data.status," ")}}function Vo(t,n){if(t&1&&(r(0,"div",38)(1,"div",39),p(2,No,1,0,"img",40),p(3,Fo,1,0,"ui-streamline-icon",41),p(4,Bo,1,0,"img",40),a(),r(5,"span",42),p(6,jo,1,0)(7,Ho,1,0)(8,Wo,1,0)(9,Go,1,1),a()()),t&2){let e,i=s();o(2),m(i.data.status==="Incomplete"?2:-1),o(),m(i.data.status==="Recorded"?3:-1),o(),m(i.data.status==="Unevaluated"?4:-1),o(2),m((e=i.data.status)==="Incomplete"?6:e==="Recorded"?7:e==="Unevaluated"?8:9)}}function zo(t,n){if(t&1&&(r(0,"div",43),g(1,"cpd-badge",44),a()),t&2){let e=s();o(),c("cpdMin",e.data.cpdMins)}}function Yo(t,n){t&1&&L(0)}function $o(t,n){t&1&&L(0)}function qo(t,n){if(t&1&&_(0,Yo,1,0,"ng-container",9)(1,$o,1,0,"ng-container",9),t&2){s();let e=S(4),i=S(6);c("ngTemplateOutlet",e),o(),c("ngTemplateOutlet",i)}}var Fn=(i=>(i[i.reflect=0]="reflect",i[i.dismiss=1]="dismiss",i[i.viewAct=2]="viewAct",i))(Fn||{}),pe=class t extends Me(){constructor(e,i,l){super();this.injector=e;this.bpService=i;this.router=l;this.collapsable=!1;this.responsive$=this.bpService.getDefault$().pipe(ut(e=>this.point=e));this.activityName="";this.breakpoint=et;this.dropdownOptions=[{text:"Remove",onClick:e=>{this.onAction(this.actions.dismiss)}}]}get incompleteAct(){return this.data}get recordedAct(){return this.data}get actions(){return Fn}ngOnInit(){this.data?.actType&&(this.activityName=mn(this.data?.actType))}onAction(e,i){switch(e){case this.actions.dismiss:Nt(this.injector,{title:"Delete activity",message:"This activity will be permanently deleted. This action cannot be undone.",rejectMessage:"Cancel",acceptMessage:"Delete",acceptBtnColour:"btn-danger"}).subscribe(l=>{l&&this.incompleteAct.dismissFn&&this.incompleteAct.dismissFn()});break;case this.actions.reflect:this.incompleteAct&&this.incompleteAct.reflectFn&&this.incompleteAct.reflectFn();break;case this.actions.viewAct:this.recordedAct&&this.recordedAct.viewLink&&this.router.navigateByUrl(this.recordedAct.viewLink);break;default:break}i&&i.preventDefault()}onClickCard(){this.collapsable||(this.point>=this.breakpoint.lg?this.data.status==="Incomplete"&&this.onAction(this.actions.reflect):this.data.status==="Recorded"&&this.onAction(this.actions.viewAct))}static{this.\u0275fac=function(i){return new(i||t)(D(oe),D(Zt),D(we))}}static{this.\u0275cmp=C({type:t,selectors:[["ui-responsive-card-2"]],inputs:{data:"data",collapsable:"collapsable"},features:[X],ngContentSelectors:no,decls:9,vars:1,consts:[["responsiveCard",""],["status",""],["cpdHour",""],["statusCpdHour",""],["linkedElements",""],["attachments",""],["statusAndCpdMin",""],["tabindex","-1",1,"responsive-card-2",3,"routerLink"],["uiPlaceholderHelper","","clsOnLoad","d-flex justify-content-between",1,"ui-responsive-card",3,"ngClass"],[4,"ngTemplateOutlet"],["uiPlaceholderHelper","","clsOnLoad","d-flex justify-content-between",1,"ui-responsive-card",3,"click","ngClass"],[1,"ui-responsive-card__learning"],["class","ui-responsive-card__activity-img",4,"uiPlaceholder","uiPlaceholderHeight","uiPlaceholderWidth"],[1,"ui-responsive-card__learning-detail"],[4,"uiPlaceholder","uiPlaceholderHeight","uiPlaceholderWidth","uiPlaceholderClassName"],[4,"uiPlaceholder","uiPlaceholderHeight","uiPlaceholderWidth"],[4,"uiPlaceholder","uiPlaceholderHide"],[1,"ui-responsive-card__action"],[1,"ui-responsive-card__activity-img"],[3,"icon","showAusmedLogo","activityName"],["innerClass","resource-name",3,"text"],[1,"learning-date","f-caption"],[1,"learning-date","f-caption","d-none","d-sm-block","d-lg-none","text-nowrap"],[1,"learning-date","f-caption","linked-elements","d-none","d-md-block","d-lg-none"],[1,"mx-2"],[1,"learning-date","f-caption","d-none","d-lg-block"],[1,"mx-3"],["name","target-correct","size","f-paragraph","theme","bold","placement","bottom",3,"tooltip"],["name","hyperlink-3","size","f-paragraph","theme","bold","placement","bottom",3,"tooltip"],[1,"ui-responsive-card__status-cpd-group"],[4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight"],[1,"action-container","action-container--recorded"],[1,"action-container"],["innerClass","btn btn-default",3,"options"],["name","navigation-menu-horizontal","size","f-paragraph","theme","bold"],[1,"action-container","main-action"],[1,"btn","btn-primary-light","flex-grow-1",3,"click"],[1,"btn","btn-default","btn-block",3,"click"],[1,"ui-responsive-card__status","f-caption"],[1,"status-icon-container"],["src","../../../images/portfolio-au/cpd-icon-nav.svg","alt","cpd",1,"responsive-card__cpd-icon"],["name","check-circle-1","size","f-paragraph","theme","bold","color","text-blue-800",1,"mr-2"],[1,"status-container"],[1,"ui-responsive-card__cpd-hour"],["size","xs","innerClass","ui-responsive-card__cpd-badge",3,"cpdMin"]],template:function(i,l){i&1&&(B(to),p(0,so,3,1,"div"),_(1,Uo,8,14,"ng-template",null,0,q)(3,Vo,10,4,"ng-template",null,1,q)(5,zo,2,1,"ng-template",null,2,q)(7,qo,2,2,"ng-template",null,3,q)),i&2&&m(l.data&&l.data.status?0:-1)},dependencies:[Rt,ce,De,Dt,j,gn,Sn,b,se,Le,Ee,Se,St],styles:[".responsive-card-2[_ngcontent-%COMP%], .responsive-card-2[_ngcontent-%COMP%]:hover{text-decoration:none}.ui-responsive-card[_ngcontent-%COMP%]{display:grid;padding:.5rem 0}@media(max-width:575.98px){.ui-responsive-card[_ngcontent-%COMP%]{grid-template-columns:100%;grid-template-rows:auto auto auto auto;row-gap:.75rem}}@media(min-width:576px){.ui-responsive-card[_ngcontent-%COMP%]{grid-template-columns:auto 6.5rem 12rem;column-gap:1rem;padding:.5rem;margin-bottom:8px;border-radius:12px;margin-left:-.5rem;margin-right:-.5rem}.ui-responsive-card.clickable[_ngcontent-%COMP%]:hover{background-color:#f8f9fb;cursor:pointer}}@media(min-width:768px){.ui-responsive-card[_ngcontent-%COMP%]{grid-template-columns:auto 15% 15% 12rem;column-gap:1rem}}.ui-responsive-card__learning[_ngcontent-%COMP%]{display:grid;grid-template-columns:3rem auto}.ui-responsive-card__learning[_ngcontent-%COMP%]   .ui-responsive-card__activity-img[_ngcontent-%COMP%]{width:3rem;height:3rem}.ui-responsive-card__learning[_ngcontent-%COMP%]   .ui-responsive-card__learning-detail[_ngcontent-%COMP%]{margin-left:12px;display:flex;flex-direction:column;justify-content:center}.ui-responsive-card__learning[_ngcontent-%COMP%]   .ui-responsive-card__learning-detail[_ngcontent-%COMP%]     .resource-name{font-size:.875rem;font-weight:600;line-height:1.25rem}@media(min-width:576px){.ui-responsive-card__learning[_ngcontent-%COMP%]   .ui-responsive-card__learning-detail[_ngcontent-%COMP%]     .resource-name{font-size:1rem}}.ui-responsive-card__learning[_ngcontent-%COMP%]   .ui-responsive-card__learning-detail[_ngcontent-%COMP%]   .learning-date[_ngcontent-%COMP%]{margin-top:4px}@media(max-width:575.98px){.ui-responsive-card__learning[_ngcontent-%COMP%]   .ui-responsive-card__learning-detail[_ngcontent-%COMP%]   .learning-date[_ngcontent-%COMP%]{display:none}}.ui-responsive-card__learning[_ngcontent-%COMP%]   .ui-responsive-card__learning-detail[_ngcontent-%COMP%]   .linked-elements[_ngcontent-%COMP%]{min-width:100px}.ui-responsive-card__status[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.ui-responsive-card__status[_ngcontent-%COMP%]   .status-icon-container[_ngcontent-%COMP%]{margin:0 .125rem;width:21px;height:21px;
1display:flex;justify-content:center;align-items:center}.ui-responsive-card__status[_ngcontent-%COMP%]   .status-icon-container[_ngcontent-%COMP%]   .incomplete-icon--back[_ngcontent-%COMP%]{width:4px;height:11px;background-color:#000}.ui-responsive-card__status[_ngcontent-%COMP%]   .status-container[_ngcontent-%COMP%]{margin:0 .125rem}.ui-responsive-card__cpd-hour[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.ui-responsive-card__cpd-hour[_ngcontent-%COMP%]     .ui-responsive-card__cpd-badge{font-size:21px}.ui-responsive-card__cpd-hour[_ngcontent-%COMP%]     .ui-responsive-card__cpd-badge .cpd-display-count{font-weight:600!important;font-size:14px!important;line-height:1.25rem!important}.ui-responsive-card__status-cpd-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-evenly;align-items:flex-start}.ui-responsive-card__action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.ui-responsive-card__action[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(n+2){margin-left:.5rem}.ui-responsive-card__action[_ngcontent-%COMP%]   .action-container[_ngcontent-%COMP%]{display:flex;align-items:center}@media(max-width:575.98px){.ui-responsive-card__action[_ngcontent-%COMP%]   .action-container.main-action[_ngcontent-%COMP%]{flex-grow:1}}@media(max-width:575.98px){.ui-responsive-card__action[_ngcontent-%COMP%]   .action-container.action-container--recorded[_ngcontent-%COMP%]{display:block;width:100%}}.responsive-card__cpd-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;margin-right:.5rem}"]})}};function Ko(t,n){if(t&1&&g(0,"ui-responsive-card-2",1),t&2){let e=n.$implicit;c("data",e)}}var me=class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=C({type:t,selectors:[["ui-responsive-card-2-container"]],inputs:{data:"data"},decls:3,vars:0,consts:[[1,"ui-responsive-card-2-container"],[3,"data"]],template:function(e,i){e&1&&(r(0,"div",0),Pe(1,Ko,1,1,"ui-responsive-card-2",1,xe),a()),e&2&&(o(),Ie(i.data))},dependencies:[pe],encapsulation:2})}};var Jo=[pe,me],Fe=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({imports:[$,fn,b,le,un,de,Mn,Ae,Z,Et,hn,Jo]})}};var Qo=[[["","sectionHeading",""]],[["","scarf",""]],[["","titleEnd",""]],[["","titleIcon",""]]],Xo=["[sectionHeading]","[scarf]","[titleEnd]","[titleIcon]"];function Zo(t,n){t&1&&(r(0,"div",11),O(1,3),a())}function er(t,n){if(t&1&&(r(0,"h2",12),d(1),a()),t&2){let e=s(2);o(),k(e.data.title)}}function tr(t,n){t&1&&(r(0,"div",2),_(1,Zo,2,0,"div",8)(2,er,2,1,"h2",9),r(3,"div",10),O(4,2),a()()),t&2&&(o(),c("uiPlaceholder","auto")("uiPlaceholderHide",!0),o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",200)("uiPlaceholderHeight",24)("uiPlaceholderClassName","mb-2"))}function nr(t,n){if(t&1&&(r(0,"div",13),d(1),a()),t&2){let e=s();o(),k(e.data.brief)}}function ir(t,n){if(t&1){let e=U();r(0,"div",7)(1,"button",14),w("click",function(){E(e);let l=s();return A(l.viewMore())}),d(2,"View more"),a()()}}var J=class t{constructor(n){this.cd=n}ngOnInit(){this.displayCount=this.data.displayStep}viewMore(){this.displayCount+=this.data.displayStep,this.displayCount>this.learnings.length&&(this.displayCount=this.learnings.length),this.cd.detectChanges()}static{this.\u0275fac=function(e){return new(e||t)(D(re))}}static{this.\u0275cmp=C({type:t,selectors:[["cpd-table"]],inputs:{data:"data",learnings:"learnings"},ngContentSelectors:Xo,decls:11,vars:10,consts:[[1,"cpd-table"],[1,"cpd-table__head"],[1,"title-block"],["class","brief",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight"],[1,"cpd-table__scarf"],[1,"cpd-table__body"],[3,"data"],[1,"cpd-table__foot"],["class","title-block__icon",4,"uiPlaceholder","uiPlaceholderHide"],["class","title-block__title f-3 mb-0",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight","uiPlaceholderClassName"],["tabindex","0",1,"title-block__end"],[1,"title-block__icon"],[1,"title-block__title","f-3","mb-0"],[1,"brief"],[1,"btn","btn-quiet","text-m-pink-dark",3,"click"]],template:function(e,i){e&1&&(B(Qo),r(0,"div",0)(1,"div",1),O(2),p(3,tr,5,6,"div",2),_(4,nr,2,1,"div",3),a(),r(5,"div",4),O(6,1),a(),r(7,"div",5),g(8,"ui-responsive-card-2-container",6),y(9,"slice"),a(),p(10,ir,3,0,"div",7),a()),e&2&&(o(3),m(i.data.title?3:-1),o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",384)("uiPlaceholderHeight",20),o(4),c("data",Tt(9,6,i.learnings,0,i.displayCount)),o(2),m(!i.data.hideViewMoreBtn&&i.learnings&&i.displayCount<i.learnings.length?10:-1))},dependencies:[j,me,Mt],styles:[".cpd-table__head[_ngcontent-%COMP%]   .title-block[_ngcontent-%COMP%]{display:flex;align-items:center}.cpd-table__head[_ngcontent-%COMP%]   .title-block[_ngcontent-%COMP%]   .title-block__end[_ngcontent-%COMP%]{margin-left:auto}.cpd-table__head[_ngcontent-%COMP%]   .brief[_ngcontent-%COMP%]{margin-top:.5rem;font-size:.875rem;font-weight:400;line-height:20px}.cpd-table__scarf[_ngcontent-%COMP%]{margin:1.25rem 0}.cpd-table__foot[_ngcontent-%COMP%]{display:flex;justify-content:center}"],changeDetection:0})}};var ue=class{constructor(){this.activityCountMapping={"=0":"No activities","=1":"1 activity",other:"# activities"}}setTotalCpdMins(n){n&&(this.totalCpdMins=n.reduce((e,i)=>e+(i.cpdMins??0),0))}};var or=[[["","titleEnd",""]]],rr=["[titleEnd]"];function ar(t,n){if(t&1&&(r(0,"span",6),d(1),y(2,"i18nPlural"),y(3,"cpdTime2"),a()),t&2){let e=s(3);o(),Te(" ",N(2,2,e.learningRecords.length,e.activityCountMapping)," \xA0/\xA0",Y(3,5,e.totalCpdMins),"\xA0total ")}}function lr(t,n){t&1&&(I(0,3),_(1,ar,4,7,"span",5),T()),t&2&&(o(),c("uiPlaceholder","auto")("uiPlaceholderWidth",150)("uiPlaceholderHeight",12))}function sr(t,n){if(t&1&&(r(0,"cpd-table",0),I(1,1),g(2,"img",2),T(),p(3,lr,2,3,"ng-container",3),I(4,4),O(5),T(),a()),t&2){let e=s();c("data",e.tableData)("learnings",e.learningRecords),o(3),m(e.learningRecords?3:-1)}}var Be=class t extends ue{constructor(e){super();this.translate=e}ngOnChanges(e){At(e,"isRegisteredAusBoard")&&(this.tableData={title:"Reflection Needed",brief:`Add reflection to these ${this.translate.instant("CPD")} activities. `+(this.isRegisteredAusBoard?"If you are audited, you will need to show evidence you have reflected on learning.":""),displayStep:8}),e.learningRecords&&this.setTotalCpdMins(this.learningRecords)}static{this.\u0275fac=function(i){return new(i||t)(D(ke))}}static{this.\u0275cmp=C({type:t,selectors:[["cpd-table-incomplete"]],inputs:{learningRecords:"learningRecords",isRegisteredAusBoard:"isRegisteredAusBoard"},features:[X,V],ngContentSelectors:rr,decls:1,vars:1,consts:[[3,"data","learnings"],["titleIcon",""],["src","../../../../../images/portfolio-au/cpd-icon-nav.svg","alt","cpd",1,"cpd-table-incomplete__title__cpd-icon"],["scarf",""],["t
1itleEnd",""],["class","cpd-table-incomplete__scarf",4,"uiPlaceholder","uiPlaceholderWidth","uiPlaceholderHeight"],[1,"cpd-table-incomplete__scarf"]],template:function(i,l){i&1&&(B(or),p(0,sr,6,3,"cpd-table",0)),i&2&&m(l.tableData?0:-1)},dependencies:[J,j,wt,ae],styles:[".title-icon-container[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px;display:flex;justify-content:center;align-items:center}.title-icon--back[_ngcontent-%COMP%]{width:5px;height:13.75px;background-color:#000}.cpd-table-incomplete__scarf[_ngcontent-%COMP%]{font-size:.875rem;font-weight:400;line-height:20px;color:#6f7786}.cpd-table-incomplete__title__cpd-icon[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;margin-right:.75rem}"]})}};var cr=[[["","titleEnd",""]]],dr=["[titleEnd]"],je=class t extends ue{constructor(e){super();this.translate=e}ngOnInit(){this.tableData={title:`Completed ${this.translate.instant("CPD")}`,brief:"These are activities that are documented and include a reflection.",displayStep:8}}ngOnChanges(e){e.learningRecords&&this.setTotalCpdMins(this.learningRecords)}static{this.\u0275fac=function(i){return new(i||t)(D(ke))}}static{this.\u0275cmp=C({type:t,selectors:[["cpd-table-recorded"]],inputs:{learningRecords:"learningRecords"},features:[X,V],ngContentSelectors:dr,decls:5,vars:2,consts:[[3,"data","learnings"],["titleIcon",""],["name","check-circle-1","size","f-h3","theme","bold","color","text-blue-800",1,"mr-3"],["titleEnd",""]],template:function(i,l){i&1&&(B(cr),r(0,"cpd-table",0),I(1,1),g(2,"ui-streamline-icon",2),T(),I(3,3),O(4),T(),a()),i&2&&c("data",l.tableData)("learnings",l.learningRecords)},dependencies:[J,b],styles:[".cpd-table-recorded__scarf[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.cpd-table-recorded__scarf[_ngcontent-%COMP%]   .activity-count[_ngcontent-%COMP%]{font-size:.875rem;font-weight:400;line-height:20px;color:#6f7786}"]})}};var pr=[J],mr=[Be,je,J],Bn=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({imports:[$,Fe,de,b,le,Re,Z,pr,mr]})}};var He=class t{constructor(n){this.learningProgressService=n;this.getNotifiable$=()=>this.learningProgressService.toDocument.fetchStream().pipe(M(()=>(this.notifiableResources=Oe([...this.learningProgressService.toDocument.list],n=>n.progress.updateTime).reverse(),this.notifiableResources)),mt({refCount:!0,bufferSize:1}))}static{this.\u0275fac=function(e){return new(e||t)(ge(Xt))}}static{this.\u0275prov=be({token:t,factory:t.\u0275fac,providedIn:"root"})}};var jn=ai(li());function Wl(t,n){let e=t.get(He),i=t.get(tt),l=e.getNotifiable$().pipe(M(x=>ur(t,x,n))),u=i.getDraftActs().pipe(Q(()=>i.getDraftActs$()),M(x=>gr(t,x,n)));return ye([l,u]).pipe(M(([x,f])=>[...x,...f].sort((ee,ze)=>{let Ye=new Date(ee.learningDate);return new Date(ze.learningDate).getTime()-Ye.getTime()})))}function ur(t,n,e){return n.map(l=>{let u={actType:pn(l.resource.activityType,l.resource.source),isAusmedRes:l.resource?.source?.toLowerCase()==="ausmed",resourceName:(0,jn.decode)(l.resource.title),status:"Incomplete",cpdMins:l.resource.min,learningDate:l.progress.updateTime,reflectFn:()=>{it(t,{lrnResProgWrap:l},{contextFields:{context:e}})},dismissFn:()=>{Dn(t,l.resource).subscribe()}};return Object.freeze(u)})}function gr(t,n,e){return n.map(l=>{let u={activityID:l.activityID,actType:l.activityType,isAusmedRes:l?.providerName?.toLowerCase()==="ausmed",resourceName:l.title,status:"Incomplete",cpdMins:l.min,learningDate:l.createDate,reflectFn:()=>{it(t,{draftAct:l},{contextFields:{context:e}})},dismissFn:()=>{t.get(tt).removeDraftActivity(l).subscribe()}};return Object.freeze(u)})}function Zl(t){let n=t.get(Jt),e=t.get(bn);return e.fetchAllCerts().pipe(Q(()=>ye([n.getActivities().pipe(Bt()),e.getCertsDict$()])),M(([i,l])=>{let u=nn(yn(i),"completeDate","date",!0,!0),x=xn(u,l);return fr(t,x)}))}function fr(t,n,e,i){return n.map(u=>({actType:u.activityType,isAusmedRes:u.providerName==="Ausmed",resourceName:u.title,status:u.status==="Unevaluated"?"Unevaluated":"Recorded",cpdMins:u.min,reflectDate:u.completeDate||u.createDate,linkedGoalsCount:u.goals?.length??0,evidence
1sCount:u.certificates?u.certificates.length:0,viewLink:`/portfolio/activity/${u.activityID}${e?"/"+e:""}`,act:i?u:void 0}))}function is(t){let n=t&&t.boardModel,e=n&&n.countries||[];return!!n&&$t(n.boardID)&&Ut(e,"AUS")}function Hn(t,n,e,i){if(!n||!e)return!1;let l=t.get(Yt),u=!kn(e),x=n!==Gt&&i!=="non-practising";return!l.otherDict[n]&&x&&u}function ds(t,n,e){return!n||!e?[]:e.filter(i=>{let l=n.find(u=>u.qualID===i.qualification);return l&&Hn(t,i.qualification,l.name,i.registrationType)})}function us(t,n){return rn(t||"cpd",n&&n.country?n.country:"AUS")}var W=Object.freeze({type:!0,hours:{label:"CPD Earned"},date:!0,title:{label:"Title of Activity",placeholder:"Note: Use 5 words or less"},provider:{label:"Source or Provider Name"},evaluation1:{label:"Why did you engage in this activity?",placeholder:"I engaged in this activity because..."},evaluation2:{label:"What were the main learning outcomes?",placeholder:"E.g. Three things I learned were..."},evaluation3:{label:"How will this education change the way you practise?",placeholder:"E.g. I will start, stop and/or continue doing..."},"ref-topics":{label:"What were the topics covered?"},"ref-relevantToCOP":{label:"Was this activity relevant to your context of practice?"},"ref-changeToCare":{label:"How likely are you to change the way you practice as a result of undertaking this activity?"},"ref-changeToCareExample":{label:"What is one change you will make to how you practise as a result of what you have just learned?",placeholder:"e.g. I will make sure to consider the specifics of my patient's presentation when conducting my patient assessment"},"ref-reason":{label:"Why did you undertake this activity?"},"ref-assessment":null,"ref-benefit":{label:"What was the main benefit of undertaking this activity for your practice?"},"ref-knowledge":{label:"Thinking about the activity overall, which statement is most relevant to you?"},"ref-barrier":{label:"What barrier do you perceive will get in the way of applying what you have learnt?"},"ref-strategy":{label:"What practical strategy will you implement to overcome this barrier?"},endDate:!0,cert:!0}),fs=Object.freeze({actTypes:{Textbook:P(v({},W),{title:{label:"Title of Reading"},evaluation1:null,evaluation2:{label:"What did you learn from this reading?",placeholder:"E.g. Three things I learned were"},evaluation3:null,"ref-changeToCare":null,"ref-changeToCareExample":null,"ref-barrier":null,"ref-strategy":null,endDate:!1,cert:null}),"e-Learning":P(v({},W),{title:{label:"Title of Online Activity"},evaluation1:{label:"Why did you engage in this learning?",placeholder:"E.g. I undertook this learning because..."}}),"In-Service":P(v({},W),{title:{label:"Title of In-Service"},evaluation1:{label:"What did you learn from this in-service?",placeholder:"E.g. Three things I learned were"}}),Competency:P(v({},W),{title:{label:"Title of Competency"},evaluation1:null,evaluation2:{label:"What did you learn from this mandatory competency?",placeholder:"E.g. Three things I learned were..."},evaluation3:null,"ref-reason":null,"ref-assessment":{label:"Did you undertake any assessment to verify your learning?"}}),Postgraduate:P(v({},W),{hours:{selections:[100,200,300,400],hint:"This can include time spent in class (either face-to-face or online), as well as on assignments,   readings and discussions. If you're stuck, start with the number of contact hours you had each week   followed by an estimation of the time spent on other tasks."},title:{label:"Description",placeholder:"Note: Use 5 words or less"},provider:{label:"Institution"},evaluation1:{label:"What did you learn from this unit?",placeholder:"E.g. Three things I learned were"},evaluation2:{label:"How will this unit change the way you practise?",placeholder:"i.e. If you don't currently practise think about how this will eventually apply"},evaluation3:{label:"Have you identified any other learning goals as a result of this unit?",placeholder:"i.e. Most people generally write at least one learning goal here."},endDate:!1}),Conference:P(v({},W),{title:{label:"Title of Event"},evaluation1:{label:"Why did you attend this event?",placeholder:"E.g. I attended this event because..."}}),Teaching:P(v({},W),{title:{label:"Title of Presentation"},provider:null,evaluation1:null,evaluation2:{label:"What were the main objectives of this work?",placeholder:"E.g. The main objectives were..."},evaluation3:{label:"Reflecting on this work, are there any things you would do differently next time?",placeholder:"You may like to consider the feedback you received from attendees, your own slides and teaching style."},cert:null}),Mentoring:P(v({},W),{title:null,provider:null,evaluation1:null,evaluation2:null,evaluation3:{label:"Reflect upon this mentoring session",placeholder:"E.g. I will start, stop and/or continue doing..."},cert:null}),Meeting:P(v({},W),{title:{label:"Description",placeholder:"Note: Use 5 words or less"},provider:null,evaluation1:{label:"What was covered in this meeting?",placeholder:"E.g. Three things covered were..."},evaluation2:{label:"What did you learn from this meeting?",placeholder:"E.g. I learnt two things from this meeting. They were..."},evaluation3:{label:"How will this meeting change the way you practise?",placeholder:"E.g. I will start, stop and/or continue doing..."},endDate:!1,cert:null}),Procedure:v({},W),Other:v({},W)}});var We=class{constructor(n,e){this._config=n;this._innerAPIMap=new Map;e&&e(this)}getInnerAPI(...n){let e=zt(n),i=this._innerAPIMap.get(e);
1return i||(i=new jt(P(v({},this._config),{checkArgs:0})),this._innerAPIMap.set(e,i)),i}get$(n,...e){return this.getInnerAPI(...e).get$(n)}getChanges$(...n){return this.getInnerAPI(...n).getChanges$()}fetchStream(n,...e){let i=e.slice(0,this._config.numGroupingParams);return this.getInnerAPI(...i).fetchStream(n,...e)}fetch(n,...e){let i=e.slice(0,this._config.numGroupingParams);return this.getInnerAPI(...i).fetch(n,e)}add(...n){let e=n.slice(0,this._config.numGroupingParams);return this.getInnerAPI(...e).add(...n)}update(...n){let e=n.slice(0,this._config.numGroupingParams);return this.getInnerAPI(...e).update(...n)}delete(n,...e){let i=e.slice(0,this._config.numGroupingParams);return this.getInnerAPI(...i).delete(n,...e)}clearCache(...n){return this.getInnerAPI(...n).clearCache()}clearAll(){this._innerAPIMap.forEach(n=>n.clearCache()),this._innerAPIMap.clear()}};var Wn=class t{constructor(n,e){this.http=n;this.broadcaster=e;this.assignedProcedureAPI=new We({fetch:n=>this.http.get(`${K.accountServiceEndpoint}/orgs/${n}/myAcks`).pipe(M(e=>e.filter(i=>i.ack&&i.gov&&["Acknowledged","Re-assigned","Unacknowledged"].includes(i.ack.currentPeriod.status))),M(e=>e.map(i=>{if(i?.gov?.relevancy){let{topics:l=[],jobRoles:u=[],standards:x=[]}=i.gov.relevancy;return P(v({},i),{gov:P(v({},i.gov),{topics:l,jobRoles:u,guidelines:x})})}return i}))),update:(n,e)=>this.http.get(`${K.accountServiceEndpoint}/orgs/${n}/myAcks/${e}/ack`).pipe(M(i=>{let u=this.assignedProcedureAPI.getInnerAPI(n).dict[e];return{ack:i,gov:u.gov}})),getID:n=>n.ack.ackID,index:n=>n.ack.ackID,numGroupingParams:1});this.fetchOrgProcedures=Vt(n=>this.http.get(K.nestResourceReadonlyApiHost+`/orgs/${n}/governances/all`).pipe(M(e=>e.map(i=>{if(i?.relevancy){let{topics:l=[],jobRoles:u=[],standards:x=[]}=i.relevancy;return P(v({},i),{jobRoles:u,topics:l,guidelines:x})}return i})),te(this.handleError)),1);this.fetchOrgFolderRootLevel=Xe(n=>this.http.get(`${K.nestResourceReadonlyApiHost}/orgs/${n}/orgFolders/rootFolders/policy`).pipe(te(this.handleError)),1);this.fetchOrgFolderRootItems=Xe(n=>this.http.get(`${K.nestResourceReadonlyApiHost}/orgs/${n}/orgFolders/rootItems/policy`).pipe(te(this.handleError)),1);this.broadcaster.on("logout").subscribe(()=>{this.assignedProcedureAPI.clearAll(),this.fetchOrgProcedures.clearCache(),this.fetchOrgFolderRootLevel.clearCache(),this.fetchOrgFolderRootItems.clearCache()})}fetchOrgDoc(n,e){return this.http.get(K.nestResourceReadonlyApiHost+`/orgs/${n}/governances/docs/`+e).pipe(te(this.handleError))}fetchOrgProcedure(n,e){return this.http.get(`${K.nestResourceReadonlyApiHost}/orgs/${n}/governances/${e}`).pipe(M(i=>{if(i?.relevancy){let{topics:l=[],jobRoles:u=[],standards:x=[]}=i.relevancy;return P(v({},i),{topics:l,jobRoles:u,guidelines:x})}return i}),te(this.handleError))}markAsAck(n,e){return this.assignedProcedureAPI.update(n,e).pipe(M(()=>this.assignedProcedureAPI.getInnerAPI(n).list))}viewProcedure(n,e){return this.http.get(`${K.accountServiceEndpoint}/orgs/${n}/myAcks/${e}/view`).pipe(te(this.handleError))}handleError(n){return console.error(n),dt(n||"Server error")}static{this.\u0275fac=function(e){return new(e||t)(ge(kt),ge(Ft))}}static{this.\u0275prov=be({token:t,factory:t.\u0275fac,providedIn:"root"})}},_r=(e=>(e.link="link",e.pdf="pdf",e))(_r||{});function Gn(t){return t&&t.products&&t.products.length?t.products.find(n=>n.productName==="Policy"):!1}function Vn(t,n){return(t.order??0)-(n.order??0)}function Cr(t,n,e){return P(v({},t.content),{folderID:n,folderTitle:e})}function zn(t){let n=[],e=[];for(let i of[...t.contents].sort(Vn))i.itemType==="policy"?i.content?.publishedVersionID&&n.push(Cr(i,t.folderID,t.title)):e.push(zn(i));return{folderID:t.folderID,parentFolderID:t.parentFolderID??null,title:t.title,order:t.order,folders:e,directPolicies:n,subtreePolicies:[...n,...e.flatMap(i=>i.subtreePolicies)]}}function Ls(t,n=[]){let e=[...t].sort(Vn).map(u=>zn(u)),i=n.filter(u=>u.publishedVersionID).map(u=>P(v({},u),{folderID:null,folderTitle:null})),l=[...e.flatMap(u=>u.subtreePolicies),...i];return{folders:e,uncategorisedPolicies:i,allPolicies:l}}var hr=["Unacknowledged","Re-assigned"];function Us(t,n){let e=new Map((n||[]).map(i=>[i.gov.governanceID,i.ack.currentPeriod.status]));for(let i of t){let l=e.get(i.governanceID);hr.includes(l)?i.ackStatus="due-now":l==="Acknowledged"?i.ackStatus="acknowledged":i.ackStatus="non-mandatory"}}function vr(t,n){for(let e of t){if(e.folderID===n)return e;let i=vr(e.folders,n);if(i)return i}}function yr(t,n){for(let e of t){if(e.directPolicies.some(l=>l.governanceID===n))return[e];let i=yr(e.folders,n);if(i)return[e,...i]}return null}function Js(t,n,e,i,l,u){return Oe(n,"dueDate").map(f=>{let ee=f.dueDate?_e(f.dueDate):void 0,ze=ee&&ee.diff(i,"d"),Ye=ot(f),he,F;switch(f.status){case"Completed":case"Done":let ve=f.assignDate&&nt(f.assignDate).diff(nt(f.completion.completeLocalDate),"d"),oi=ee&&ee.diff(_e(f.completion.completeLocalDate),"d");f.completion.orgActivityID&&f.completion.completeLocalDate===f.completion.orgCompleteLocalDate?F="c-manual"
1:ve>0?F="c-prior-learning":ee?oi>=0?F="c-on-time":F="c-late":F="c-no-due";break;case"Incomplete":F="m-in-review";break;case"Overdue":case"Assigned":switch(f.fn_studyStatus){case"relearn":F="d-relearn";break;case"continue":F="d-in-progress";break;case"wait-approval":F="d-wait-approval";break;case"ready":case"documented":f.fn_resource&&Lt(Kt,ri=>ri===f.fn_resource.resourceType)&&f.fn_resource.source==="organisation"?F="d-wait-approval":(F="d-finished",he=1);break}break}if(f.fn_studyStatus==="continue"){let ve=Pn(f.fn_progress?.content);he=ve&&ve.percentage/100||null}let at;f.status==="Overdue"&&(at=f.lateRecogDate&&_e(f.lateRecogDate).diff(i,"day"));let $e=f.fn_resource.title,ii=$n(f)?"[Optional] "+$e:$e;return{id:f.assignID,assign:f,mode:e,dueStatus:Ye,progressStatus:F,resourceMin:f.fn_resource.min,resourceType:Ht(f.fn_resource.activityType,f.fn_resource.source,f.fn_resource.resourceType),resourceTitle:$e,providerType:f.fn_resource.providerType,displayedResourceTitle:ii,resourceProps:sn(t,f.fn_resource,u,f.orgID),disallowDocument:f.fn_resource.extraDetails&&f.fn_resource.extraDetails.disallowDocument,progress:he,dueDaysLeft:ze,lateRecogDaysLeft:at,documented:(f.status==="Completed"||f.status==="Done")&&f.fn_studyStatus==="documented",learningFinished:f.fn_studyStatus==="ready"||f.fn_studyStatus==="documented",dueDate:f.dueDate,completedDate:f.completion.completeLocalDate,missedDate:f.status==="Incomplete"?f.dueDate:void 0,assignSource:f.fn_mtPlan.title,tableOpts:l,removeObs:()=>br(f)?t.get(qt).removeOptionalAssign(f.orgID,f.assignID).pipe(pt(1),Q(()=>on(t,f.fn_resource))):ct(null)}})}function $n(t){return t.complianceType==="Optional"}function br(t){return $n(t)&&t.assignType==="Manual"&&t.status==="Assigned"&&(t.fn_studyStatus==="pristine"||t.fn_studyStatus==="relearn"||t.fn_studyStatus==="continue"||t.fn_studyStatus==="wait-approval")}function ot(t){let n=new Date,e=t.dueDate?_e(t.dueDate):void 0,i=e&&e.diff(n,"d"),l;switch(t.status){case"Completed":l="completed";break;case"Done":l="completed";break;case"Overdue":l="overdue";break;case"Incomplete":l="missed";break;case"Assigned":i<7&&i>=0?l="due-soon":i>=7&&(l="due");break}return l}function qn(t){if(t.includes("missed"))return{badgeStatus:"missed",displayStatusNum:t.filter(n=>n==="missed").length,badgeDisplayTitle:"Missed",badgeColor:"light"};if(t.includes("overdue"))return{badgeStatus:"overdue",displayStatusNum:t.filter(n=>n==="overdue").length,badgeDisplayTitle:"Overdue",badgeColor:"danger"};if(t.includes("due-soon"))return{badgeStatus:"due-soon",displayStatusNum:t.filter(n=>n==="due-soon").length,badgeDisplayTitle:"Due soon",badgeColor:"warning"};if(t.includes("due"))return{badgeStatus:"due",displayStatusNum:t.filter(n=>n==="due").length,badgeDisplayTitle:"Due",badgeColor:"info"};if(t.includes("completed")||t.length===0)return{badgeStatus:"completed",displayStatusNum:void 0,badgeDisplayTitle:"Up-to-date",badgeColor:"success",badgeIcon:"check-circle-1"}}function Kn(t){return t.includes("due")?{badgeStatus:"due",displayStatusNum:t.filter(n=>n==="due").length,badgeDisplayTitle:"Due now",badgeColor:"danger"}:{badgeStatus:"completed",displayStatusNum:void 0,badgeDisplayTitle:"Up-to-date",badgeColor:"success",badgeIcon:"check-circle-1"}}function rt(t,n){let e={badgeIcon:"check-circle-1",badgeDisplayTitle:"Compliant",badgeColor:"success",badgeTooltipText:"You have no overdue or missed mandatory compliance tasks."},i={badgeIcon:"information-circle",badgeDisplayTitle:"Non-Compliant",badgeColor:"danger",badgeTooltipText:"You have overdue mandatory compliance tasks. Complete them as soon as possible to be compliant."};return t.badgeStatus==="overdue"||t.badgeStatus==="missed"||n.badgeStatus==="due"?i:e}function Pr(t,n){if(t&1&&(r(0,"div",1),d(1),a()),t&2){let e=s();o(),k(e.complianceStatus.displayStatusNum)}}function Ir(t,n){if(t&1&&(r(0,"div",2),g(1,"ui-streamline-icon",5),a()),t&2){let e=s();o(),c("name",e.complianceStatus.badgeIcon)}}var Ge=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=C({type:t,selectors:[["ui-mt-status-badge"]],inputs:{statusName:"statusName",innerWrapperClass:"innerWrapperClass",complianceStatus:"complianceStatus"},decls:9,vars:12,consts:[[3,"click"],[1,"mt-status-badge__number","mx-auto"],[1,"mx-auto"],[1,"mt-status-badge__body"],[1,"mt-status-badge__title","f-caption"],["size","f-h3",3,"name"]],template:function(e,i){e&1&&(r(0,"div",0),w("click",function(){return i.complianceStatus.onClick&&i.complianceStatus.onClick()}),r(1,"div"),p(2,Pr,2,1,"div",1),p(3,Ir,2,1,"div",2),a(),r(4,"div",3)(5,"div",4),d(6),a(),r(7,"div"),d(8),a()()()),e&2&&(ne(i.innerWrapperClass),o(),ne(fe("mt-status-badge__count d-flex align-items-center uic-",i.complianceStatus.badgeColor)),o(),m(i.complianceStatus.displayStatusNum?2:-1),o(),m(i.complianceStatus.displayStatusNum?-1:3),o(3),k(i.statusName),o(),ne(fe("mt-status-badge__status fw-semibold pt-1 uic-text-",i.complianceStatus.badgeColor)),o(),k(i.complianceStatus.badgeDisplayTitle))},dependencies:[b],styles:[".uic-badge[_ngcontent-%COMP%]{font-weight:600;font-size:.75rem}.uic-success[_ngcontent-%COMP%]{background:#dcf5e6;color:#338052}.uic-text-success[_ngcontent-%COMP%]{color:#338052}.uic-info[_ngcontent-%COMP%]{background:#dee9fc;color:#2353b4}.uic-text-info[_ngcontent-%COMP%]{color:#2353b4}.uic-warning[_ngcontent-%COMP%]{background:#fff8e1;color:#ffa200}.uic-text-warning[_ngcontent-%COMP%]{color:#ffa200}.uic-danger[_ngcontent-%COMP%]{background:#fdeae3;color:#d7440e}.uic-text-danger[_ngcontent-%COMP%]{color:#d7440e}.uic-light[_ngcontent-%COMP%]{background:#edeff2;color:#6f7786}.uic-text-light[_ngcontent-%COMP%]{color:#6f7786}.uic-pink[_ngcontent-%COMP%]{background:#fde3e7;color:#d70e30}.uic-text-pink[_ngcontent-%COMP%]{color:#d70e30}.mt-status-badge[_ngcontent-%COMP%]{display:flex;gap:12px;padding:6px;border-width:1px;border-style:solid;border-radius:14px;border-color:#edeff2}.mt-status-badge__count[_ngcontent-%COMP%]{min-width:50px;min-height:50px;border-radius:10px}.mt-status-badge__number[_ngcontent-%COMP%]{width:fit-content;font-size:18px}.mt-status-badge__body[_ngcontent-%COMP%]{width:max-content;margin:auto 1rem auto 0}.mt-status-badge__status[_ngcontent-%COMP%]{font-size:14px}"],changeDetection:0})}};
1function Jn(t){return t?.isManager||t?.managedTeams?.length>0}function Tr(t,n){if(t&1&&g(0,"img",2),t&2){let e=s();c("lazyLoad",e.orgLogoUrl)}}function Dr(t,n){if(t&1&&g(0,"img",3),t&2){let e=s();c("lazyLoad",e.orgPortalLogoUrl)}}function Sr(t,n){if(t&1&&(r(0,"span",8),d(1),a()),t&2){let e=s(2);o(),h("(",e.orgCodeDisplay,")")}}function wr(t,n){if(t&1&&(r(0,"h3",4),d(1),p(2,Sr,2,1,"span",8),a()),t&2){let e=s();o(),h("",e.orgTitle," "),o(),m(e.orgCodeDisplay?2:-1)}}function Or(t,n){if(t&1&&(r(0,"div",6),d(1),a()),t&2){let e=s();o(),h(" ",e.orgPortal," ")}}function Mr(t,n){if(t&1&&(r(0,"div",7)(1,"ui-status-badge",9),d(2),g(3,"ui-streamline-icon",10),a()()),t&2){s();let e=xt(8);o(),c("status",e.badgeColor)("tooltip",e.badgeTooltipText),o(),h(" ",e.badgeDisplayTitle," "),o(),c("name",e.badgeIcon)}}var Ve=class t{constructor(){this.orgUser=Qe();this.complianceStatus=Qe();this.cd=gt(re);_t(()=>{let n=this.orgUser()?.orgDetail,e=n?.lmsSetting?.customConfig;this.orgTitle=n?.name,this.orgLogoUrl=n?.code&&On(n.code,e),this.orgPortalLogoUrl=e?.lmsLogoLink,this.orgPortal=e?.lmsName,this.orgCodeDisplay=Jn(this.orgUser())?n?.code:"",this.cd.markForCheck()})}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=C({type:t,selectors:[["mt-header-basic-info"]],inputs:{orgUser:[1,"orgUser"],complianceStatus:[1,"complianceStatus"]},decls:10,vars:6,consts:[[1,"d-md-flex","align-items-center","mb-4","mb-md-0","my-xl-auto"],[1,"mx-auto","mr-md-4","ml-md-0","width-fit-content"],["errorImage","./images/image-missing.gif","alt","Organisation logo",1,"mt-header-card__logo",3,"lazyLoad"],["errorImage","./images/image-missing.gif","alt","Organisation manager portal logo",1,"mt-header-card__logo","ml-2",3,"lazyLoad"],[1,"mb-1","mx-auto","mx-md-0","width-fit-content"],[1,"d-md-flex"],[1,"f-caption","mr-md-2","mx-auto","my-1","mx-md-0","width-fit-content"],[1,"mx-auto","mx-md-0","width-fit-content"],[1,"text-muted"],["placement","top",3,"status","tooltip"],[3,"name"]],template:function(e,i){if(e&1&&(r(0,"div",0)(1,"div",1),p(2,Tr,1,1,"img",2),p(3,Dr,1,1,"img",3),a(),r(4,"div"),p(5,wr,3,2,"h3",4),r(6,"div",5),p(7,Or,2,1,"div",6),yt(8),p(9,Mr,4,4,"div",7),a()()()),e&2){o(2),m(i.orgLogoUrl?2:-1),o(),m(i.orgPortalLogoUrl?3:-1),o(2),m(i.orgTitle?5:-1),o(2),m(i.orgPortal?7:-1),o();let l=bt(i.complianceStatus());o(),m(l?9:-1)}},dependencies:[dn,cn,In,se,b],styles:[".mt-header-card__logo[_ngcontent-%COMP%]{width:88px;height:88px;border:1px solid #EDEFF2;border-radius:12px;object-fit:contain}.width-fit-content[_ngcontent-%COMP%]{width:fit-content}.height-fit-content[_ngcontent-%COMP%]{height:fit-content}"],changeDetection:0})}};function Qn(t){return t?.orgProfile?.permissionGroup}var kr=(t,n)=>t?.permissions?.[n],Xn=t=>{let n=Qn(t);return ei(t)&&(!n||kr(n,"competency.assess.access-assessor-app"))},Rr=["competency.assess.access-assessor-app"],Zn=t=>{if(!ei(t))return!1;let n=Qn(t);return n?Object.entries(n.permissions||{}).some(([e,i])=>i&&!Rr.includes(e)):!0};function ei(t){return t?.isManager||t?.managedTeams?.length>0}function Er(t,n){if(t&1&&(r(0,"div",1),g(1,"img",8),a()),t&2){let e=s(2);o(),c("src",e.headerBackground,Ct)}}function Ar(t,n){if(t&1){let e=U();r(0,"button",18),w("click",function(){E(e),s();let l=S(2);return s(2).openManagerPortal(),A(l.dropdown.toggle())}),r(1,"span",14)(2,"span",15),d(3,"Manager Portal"),a(),r(4,"span",16),d(5,"For managers and administrators"),a()(),g(6,"ui-streamline-icon",19),a()}}function Lr(t,n){if(t&1){let e=U();r(0,"button",18),w("click",function(){E(e),s();let l=S(2);return s(2).viewManagerTasks(),A(l.dropdown.toggle())}),r(1,"span",14)(2,"span",15),d(3,"Perform Tasks"),a(),r(4,"span",16),d(5,"Shortcut to your manager tasks"),a()(),g(6,"ui-streamline-icon",19),a()}}function Ur(t,n){if(t&1){let e=U();r(0,"button",18),w("click",function(){E(e),s();let l=S(2);return s(2).openAssessorPortal(),A(l.dropdown.toggle())}),r(1,"span",14)(2,"span",15),d(3,"Ausmed Assess"),a(),r(4,"span",16),d(5,"For assessors"),a()(),g(6,"ui-streamline-icon",19),a()}}function Nr(t,n){if(t&1&&(r(0,"div",4)(1,"ui-dropdown-button",9,0)(3,"span",10),d(4,"Switch portal"),a(),g(5,"ui-streamline-icon",11),I(6,12),r(7,"div",13)(8,"span",14)(9,"span",15),d(10,"Staff Portal (current)"),a(),r(11,"span",16),d(12,"For staff member tasks"),a()()(),p(13,Ar,7,0,"button",17),p(14,Lr,7,0,"button",17),p(15,Ur,7,0,"button",17),T(
1),a()()),t&2){let e=s(2);o(),c("dropdownClass","mt-header-portal-content"),o(12),m(e.showManagerPortalButton?13:-1),o(),m(e.showPerformTasksLink?14:-1),o(),m(e.showAssessorPortalButton()?15:-1)}}function Fr(t,n){if(t&1&&g(0,"ui-mt-status-badge",20),t&2){let e=s(3);c("innerWrapperClass","mt-status-badge")("statusName","Assigned Learning")("complianceStatus",e.processedOrgLearningDisplayedInfo)}}function Br(t,n){if(t&1&&g(0,"ui-mt-status-badge",20),t&2){let e=s(3);c("innerWrapperClass","mt-status-badge")("statusName","Assigned Policies")("complianceStatus",e.processedOrgPolicyDisplayedInfo)}}function jr(t,n){if(t&1&&(r(0,"div",7),p(1,Fr,1,3,"ui-mt-status-badge",20),p(2,Br,1,3,"ui-mt-status-badge",20),a()),t&2){let e=s(2);o(),m(e.processedOrgLearningDisplayedInfo.badgeStatus?1:-1),o(),m(e.processedOrgPolicyDisplayedInfo.badgeStatus?2:-1)}}function Hr(t,n){if(t&1&&(r(0,"div"),p(1,Er,2,1,"div",1),r(2,"div",2)(3,"div",3)(4,"h2"),d(5,"Overview"),a(),p(6,Nr,16,4,"div",4),a(),r(7,"div",5),g(8,"mt-header-basic-info",6),p(9,jr,3,2,"div",7),a()()()),t&2){let e=s();o(),m(e.headerBackground?1:-1),o(5),m(e.showManagerPortalButton||e.showAssessorPortalButton()||e.showPerformTasksLink?6:-1),o(2),c("orgUser",e.orgLink==null?null:e.orgLink.orgUser)("complianceStatus",e.processedComplianceStatus),o(),m(e.processedOrgLearningDisplayedInfo?9:-1)}}var ti="CR",ni=class t extends Me(){constructor(e,i,l,u){super();this.injector=e;this.cd=i;this.mtHeaderService=l;this.orgLearningService=u;this.processedOrgLearningDisplayedInfo={badgeStatus:void 0,displayStatusNum:void 0,badgeDisplayTitle:void 0,badgeColor:"success"};this.processedOrgPolicyDisplayedInfo={badgeStatus:void 0,displayStatusNum:void 0,badgeDisplayTitle:void 0,badgeColor:"success"};this.isMobile=!1;this.isWideScreen=!1;this.showManagerPortalButton=!1;this.hasAssessorPermission=new lt(!1);this.showAssessorPortalButton=ft(!1);this.showPerformTasksLink=!1}ngOnInit(){en(this.injector).pipe(this.untilDestroyed()).subscribe(e=>{this.isMobile=e<768,this.isWideScreen=e>=1200,this.cd.markForCheck()}),this.hasAssessorPermission.pipe(Q(e=>e?this.orgLearningService.fetchAssignedCompetenciesForAssessor(!1,this.orgLink.orgUser.orgID):(this.showAssessorPortalButton.set(!1),st)),this.untilDestroyed()).subscribe(e=>{this.showAssessorPortalButton.set(e?.competencies?.length>0)})}_processAllAssignsForCompliance(){this.orgAssigns=this.orgAssigns||[];let e=this.orgAssigns.map(l=>l.assign),i=e?e.map(l=>ot(l)||"due"):[];this.processedOrgLearningDisplayedInfo=qn(i)}_processAllAssignedPolicies(){if(Gn(this.orgLink?.currentContract)){let e=this.ackNProcedures?this.ackNProcedures.filter(i=>["Unacknowledged","Re-assigned"].includes(i.ack.currentPeriod.status)).map(()=>"due"):[];this.processedOrgPolicyDisplayedInfo=Kn(e)}}ngOnChanges(e){e.orgAssigns&&(this._processAllAssignsForCompliance(),this.orgLink?.currentContract&&this.orgLink?.currentContract.metaData?.internalType===ti||(this.processedComplianceStatus=rt(this.processedOrgLearningDisplayedInfo,this.processedOrgPolicyDisplayedInfo)),this.cd.markForCheck()),e.ackNProcedures&&(this._processAllAssignedPolicies(),this.orgLink?.currentContract&&(this.orgLink?.currentContract).metaData?.internalType===ti||(this.processedComplianceStatus=rt(this.processedOrgLearningDisplayedInfo,this.processedOrgPolicyDisplayedInfo)),this.cd.markForCheck()),e.orgLink&&(this._processOrgLink(),this.cd.markForCheck())}_processOrgLink(){let e=this.orgLink&&this.orgLink.orgUser&&this.orgLink.orgUser.orgDetail&&this.orgLink.orgUser.orgDetail.lmsSetting&&this.orgLink.orgUser.orgDetail.lmsSetting.customConfig;this.headerBackground=e&&e.bannerLink?e.bannerLink+(e.timestampAddon?e.timestampAddon:`?stamp=${new Date().getTime()}`):null,this.bannerTitle=`Welcome to your ${e&&e.lmsName||"Online Learning Platform"}${this.user&&this.user.firstName?", "+this.user.firstName:""}`,this.accessToPerformanceReview=this.orgLink?.currentContract?.products?.some(u=>u.productName==="Performance Review");let i=this.orgLink?.orgUser;this.showManagerPortalButton=Zn(i);let l=this.orgLink?.currentContract?.products?.some(u=>u.productName==="Ausmed Competency");this.hasAssessorPermission.next(l&&Xn(i)),this.showPerformTasksLink=!!(this.accessToPerformanceReview&&this.orgLink?.orgUser?.managedTeam
1s?.length>0)}openManagerPortal(){this.orgLink&&Ze(this.orgLink,this.injector)}openAssessorPortal(){this.showAssessorPortalButton()&&this.orgLink&&Qt(this.orgLink,this.injector)}viewManagerTasks(){Ze(this.orgLink,this.injector,"pages/performance/my-tasks")}static{this.\u0275fac=function(i){return new(i||t)(D(oe),D(re),D(wn),D(vn))}}static{this.\u0275cmp=C({type:t,selectors:[["mt-header"]],inputs:{orgAssigns:"orgAssigns",user:"user",orgLink:"orgLink",ackNProcedures:"ackNProcedures"},features:[X,V],decls:2,vars:3,consts:[["portalDropdownButton",""],[1,"org-header-banner"],[1,"container","px-4","px-lg-7","pb-4","py-6"],[1,"d-flex","justify-content-between","flex-wrap","gap-2","mb-2"],[1,"mt-header-portal-dropdown"],[1,"section-card","align-items-center","justify-content-between","align-items-center"],[1,"mt-header-basic-info",3,"orgUser","complianceStatus"],[1,"mt-status-badge-overview-container"],["alt","",1,"org-header-banner__img",3,"src"],["innerClass","btn btn-outline-secondary btn-sm d-inline-flex align-items-center","placement","bottom-end","ariaLabel","Switch portal",3,"dropdownClass"],[1,"mr-2"],["name","arrow-down-1","size","f-caption","bottomOffset","1"],["dropdownSlot",""],["aria-current","location",1,"mt-header-portal-item","mt-header-portal-item--current"],[1,"mt-header-portal-item-content"],[1,"mt-header-portal-item-name"],[1,"mt-header-portal-item-desc"],["type","button",1,"mt-header-portal-item"],["type","button",1,"mt-header-portal-item",3,"click"],["name","arrow-right-1","size","f-caption","bottomOffset","1"],[1,"flex-fill",3,"innerWrapperClass","statusName","complianceStatus"]],template:function(i,l){i&1&&(p(0,Hr,10,5,"div"),y(1,"async")),i&2&&m(Y(1,1,l.mtHeaderService.showHeader$)?0:-1)},dependencies:[b,Ve,Ge,Le,Se],styles:[".org-banner-background[_ngcontent-%COMP%]{background-color:#f8f9fb}.info-section_with-bg[_ngcontent-%COMP%]{position:relative;margin-top:-3.5rem}.info-section_with-bg_mobile[_ngcontent-%COMP%]{position:relative;margin-top:-6.5rem}.info-section_no-bg[_ngcontent-%COMP%]{position:relative;margin-top:1rem}.org-banner[_ngcontent-%COMP%]{min-height:140px;z-index:0}.org-banner[_ngcontent-%COMP%]   .org-banner-img[_ngcontent-%COMP%]{height:140px;max-width:100%}.org-banner[_ngcontent-%COMP%]   .org-banner-img-xl[_ngcontent-%COMP%]{min-height:140px;max-height:280px;max-width:100%}.section-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1rem;border:1px solid #DEE1E7;border-radius:1rem}@media(min-width:1200px){.section-card[_ngcontent-%COMP%]{flex-direction:row}}.mt-header-basic-info[_ngcontent-%COMP%]{flex:4 1 auto;width:100%}@media(min-width:1200px){.mt-header-basic-info[_ngcontent-%COMP%]{width:unset}}.mt-status-badge-overview-container[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;gap:.5rem;width:100%}@media(min-width:768px){.mt-status-badge-overview-container[_ngcontent-%COMP%]{flex-direction:row}}@media(min-width:1200px){.mt-status-badge-overview-container[_ngcontent-%COMP%]{width:unset}}.org-header-banner[_ngcontent-%COMP%]{display:flex;overflow:hidden;margin:0 auto;max-height:120px}.org-header-banner__img[_ngcontent-%COMP%]{max-width:100%;width:100%}.mt-header-portal-dropdown[_ngcontent-%COMP%]{position:relative;margin-top:1px}[_nghost-%COMP%]     .mt-header-portal-content{position:absolute;top:100%;right:0;margin-top:4px;min-width:280px;padding:6px;background:#f8f9fb;border:1px solid #DEE1E7;border-radius:8px;box-shadow:0 4px 12px #00000014;z-index:10}.mt-header-portal-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:6px;padding:10px 12px;margin-bottom:2px;border:none;border-radius:6px;text-align:left;cursor:pointer;color:#a0a5b1;background:transparent}.mt-header-portal-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.mt-header-portal-item--current[_ngcontent-%COMP%]{cursor:default;pointer-events:none;color:#bdc2cc;background:#edeff2}.mt-header-portal-item--current[_ngcontent-%COMP%]   .mt-header-portal-item-name[_ngcontent-%COMP%]{color:#a0a5b1}.mt-header-portal-item--current[_ngcontent-%COMP%]   .mt-header-portal-item-desc[_ngcontent-%COMP%]{color:#bdc2cc}.mt-header-portal-item[_ngcontent-%COMP%]:hover:not(.mt-header-portal-item--current){color:#ac021e;background:#fde3e7}.mt-header-portal-item[_ngcontent-%COMP%]:hover:not(.mt-header-portal-item--current)   .mt-header-portal-item-name[_ng
1content-%COMP%]{color:#ac021e}.mt-header-portal-item[_ngcontent-%COMP%]:hover:not(.mt-header-portal-item--current)   .mt-header-portal-item-desc[_ngcontent-%COMP%]{color:#ac021e}.mt-header-portal-item[_ngcontent-%COMP%]   .mt-header-portal-item-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.mt-header-portal-item-name[_ngcontent-%COMP%]{font-weight:600;font-size:.875rem;line-height:1.2;color:#171d29}.mt-header-portal-item-desc[_ngcontent-%COMP%]{font-size:.75rem;font-weight:500;line-height:1.2;margin-top:2px;color:#a0a5b1}"],changeDetection:0})}};export{He as a,Wl as b,En as c,An as d,W as e,fs as f,Wn as g,_r as h,Gn as i,Ls as j,Us as k,vr as l,yr as m,Js as n,br as o,ot as p,qn as q,Kn as r,rt as s,Ge as t,ti as u,ni as v,Zl as w,fr as x,Hn as y,pe as z,is as A,J as B,je as C,ds as D,Be as E,Bn as F,us as G};

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.