text: webpackJsonp([112],{1839:function(n,l,a){"use strict";function t(n){return r._42(0,[(n()(),r._16(0,0,null,null,3,"core-empty-box",[["icon","map"]],null,null,null,E.b,E.a)),r._15(1,49152,null,0,U.a,[],{message:[0,"message"],icon:[1,"icon"]},null),r._32(131072,A.a,[O.a,r.i]),(n()(),r._40(-1,0,["\n            "]))],function(n,l){n(l,1,0,r._41(l,1,0,r._29(l,2).transform("addon.competency.noplanswerecreated")),"map")},null)}function u(n){return r._42(0,[(n()(),r._16(0,0,null,null,3,"p",[],null,null,null,null,null)),(n()(),r._40(1,null,["",": ",""])),r._32(131072,A.a,[O.a,r.i]),r._34(3,2)],null,function(n,l){n(l,1,0,r._41(l,1,0,r._29(l,2).transform("addon.competency.duedate")),r._41(l,1,1,n(l,3,0,r._29(l.parent.parent.parent,0),1e3*l.parent.context.$implicit.duedate,"strftimedatetimeshort")))})}function e(n){return r._42(0,[(n()(),r._16(0,0,null,null,16,"a",[["class","item item-block"],["ion-item",""],["text-wrap",""]],[[8,"title",0],[2,"core-split-item-selected",null]],[[null,"click"]],function(n,l,a){var t=!0;if("click"===l){t=!1!==n.component.openPlan(n.context.$implicit.id)&&t}return t},R.b,R.a)),r._15(1,1097728,null,3,S.a,[D.a,M.a,r.p,r.K,[2,W.a]],null,null),r._37(335544320,2,{contentLabel:0}),r._37(603979776,3,{_buttons:1}),r._37(603979776,4,{_icons:1}),r._15(5,16384,null,0,F.a,[],null,null),(n()(),r._40(-1,2,["\n                    "])),(n()(),r._16(7,0,null,2,1,"h2",[],null,null,null,null,null)),(n()(),r._40(8,null,["",""])),(n()(),r._40(-1,2,["\n                    "])),(n()(),r._11(16777216,null,2,1,null,u)),r._15(11,16384,null,0,j.k,[r.W,r.T],{ngIf:[0,"ngIf"]},null),(n()(),r._40(-1,2,["\n                    "])),(n()(),r._16(13,0,null,2,2,"ion-badge",[["text-wrap",""]],null,null,null,null,null)),r._15(14,16384,null,0,H.a,[M.a,r.p,r.K],{color:[0,"color"]},null),(n()(),r._40(15,null,["",""])),(n()(),r._40(-1,2,["\n                "]))],function(n,l){n(l,11,0,l.context.$implicit.duedate>0);n(l,14,0,l.context.$implicit.statuscolor)},function(n,l){n(l,0,0,l.context.$implicit.name,l.context.$implicit.id==l.component.planId);n(l,8,0,l.context.$implicit.name);n(l,15,0,l.context.$implicit.statusname)})}function i(n){return r._42(0,[(n()(),r._16(0,0,null,null,5,"ion-list",[["no-margin",""]],null,null,null,null,null)),r._15(1,16384,null,0,N.a,[M.a,r.p,r.K,V.a,B.l,J.a],null,null),(n()(),r._40(-1,null,["\n                "])),(n()(),r._11(16777216,null,null,1,null,e)),r._15(4,802816,null,0,j.j,[r.W,r.T,r.v],{ngForOf:[0,"ngForOf"]},null),(n()(),r._40(-1,null,["\n            "]))],function(n,l){n(l,4,0,l.component.plans)},null)}function o(n){return r._42(0,[r._32(0,q.a,[z.a,G.a]),r._37(402653184,1,{splitviewCtrl:0}),(n()(),r._16(2,0,null,null,12,"ion-header",[],null,null,null,null,null)),r._15(3,16384,null,0,Q.a,[M.a,r.p,r.K,[2,X.a]],null,null),(n()(),r._40(-1,null,["\n    "])),(n()(),r._16(5,0,null,null,8,"ion-navbar",[["class","toolbar"],["core-back-button",""]],[[8,"hidden",0],[2,"statusbar-padding",null]],null,null,Y.b,Y.a)),r._15(6,49152,null,0,Z.a,[nn.a,[2,X.a],[2,ln.a],M.a,r.p,r.K],null,null),r._15(7,212992,null,0,an.a,[Z.a,V.a,O.a,tn.a],null,null),(n()(),r._40(-1,3,["\n        "])),(n()(),r._16(9,0,null,3,3,"ion-title",[],null,null,null,un.b,un.a)),r._15(10,49152,null,0,en.a,[M.a,r.p,r.K,[2,on.a],[2,Z.a]],null,null),(n()(),r._40(11,0,["",""])),r._32(131072,A.a,[O.a,r.i]),(n()(),r._40(-1,3,["\n    "])),(n()(),r._40(-1,null,["\n"])),(n()(),r._40(-1,null,["\n"])),(n()(),r._16(16,0,null,null,24,"core-split-view",[],null,null,null,rn.b,rn.a)),r._15(17,245760,[[1,4]],0,f.a,[[2,ln.a],r.p,_n.a,V.a,O.a],null,null),(n()(),r._40(-1,0,["\n    "])),(n()(),r._16(19,0,null,0,20,"ion-content",[],[[2,"statusbar-padding",null],[2,"has-refresher",null]],null,null,sn.b,sn.a)),r._15(20,4374528,null,0,cn.a,[M.a,V.a,J.a,r.p,r.K,nn.a,pn.a,r.D,[2,X.a],[2,ln.a]],null,null),(n()(),r._40(-1,1,["\n        "])),(n()(),r._16(22,0,null,2,6,"ion-refresher",[],[[2,"refresher-active",null],[4,"top",null]],[[null,"ionRefresh"]],function(n,l,a){var t=!0;if("ionRefresh"===l){t=!1!==n.component.refreshLearningPlans(a)&&t}return t},null,null)),r._15(23,212992,null,0,dn.a,[V.a,cn.a,r.D,B.l],{enabled:[0,"enabled"]},{ionRefresh:"ionRefresh"}),(n()(),r._40(-1,null,["\n            "])),(n()(),r._16(25,0,null,null,2,"ion-refresher-content",[],[[1,"state",0]],null,null,fn.b,fn.a)),r._15(26,114688,null,0,hn.a,[dn.a,M.a],{pullingText:[0,"pullingText"]},null),r._32(131072,A.a,[O.a,r.i]),(n()(),r._40(-1,null,["\n        "])),(n()(),r._40(-1,1,["\n        "])),(n()(),r._16(30,0,null,1,8,"core-loading",[],null,null,null,mn.b,mn.a)),r._15(31,638976,null,0,gn.a,[O.a,r.p,tn.a,bn.a],{hideUntil:[0,"hideUntil"]},null),(n()(),r._40(-1,0,["\n            "])),(n()(),r._11(16777216,null,0,1,null,t)),r._15(34,16384,null,0,j.k,[r.W,r.T],{ngIf:[0,"ngIf"]},null),(n()(),r._40(-1,0,["\n            "])),(n()(),r._11(16777216,null,0,1,null,i)),r._15(37,16384,null,0,j.k,[r.W,r.T],{ngIf:[0,"ngIf"]},null),(n()(),r._40(-1,0,["\n        "])),(n()(),r._40(-1,1,["\n    "])),(n()(),r._40(-1,0,["\n"])),(n()(),r._40(-1,null,["\n"]))],function(n,l){var a=l.component;n(l,7,0),n(l,17,0);n(l,23,0,a.plansLoaded);n(l,26,0,r._19(1,"",r._41(l,26,0,r._29(l,27).transform("core.pulltorefresh")),""));n(l,31,0,a.plansLoaded);n(l,34,0,0==a.plans.length);n(l,37,0,a.plans.length>0)},function(n,l){n(l,5,0,r._29(l,6)._hidden,r._29(l,6)._sbPadding);n(l,11,0,r._41(l,11,0,r._29(l,12).transform("addon.competency.userplans")));n(l,19,0,r._29(l,20).statusbarPadding,r._29(l,20)._hasRefresher);n(l,22,0,"inactive"!==r._29(l,23).state,r._29(l,23)._top);n(l,25,0,r._29(l,26).r.state)})}Object.defineProperty(l,"__esModule",{value:!0});var r=a(1),_=(a(0),a(9),a(4)),s=a(29),c=a(30),p=a(106),d=a(5),f=a(35),h=a(205),m=a(338),g=function(){function n(n,l,a,t){this.domUtils=l,this.competencyProvider=a,this.competencyHelperProvider=t,this.plansLoaded=!1,this.plans=[],this.userId=n.get("userId")}return n.prototype.ionViewDidLoad=function(){var n=this;this.planId&&this.openPlan(this.planId),this.fetchLearningPlans().then(function(){!n.planId&&n.splitviewCtrl.isOn()&&n.plans.length>0&&n.openPlan(n.plans[0].id)}).finally(function(){n.plansLoaded=!0})},n.prototype.fetchLearningPlans=function(){var n=this;return this.competencyProvider.getLearningPlans(this.userId).then(function(l){l.forEach(function(l){switch(l.statusname=n.competencyHelperProvider.getPlanStatusName(l.status),l.status){case h.a.STATUS_ACTIVE:l.statuscolor="success";break;case h.a.STATUS_COMPLETE:l.statuscolor="danger";break;default:l.statuscolor="warning"}}),n.plans=l}).catch(function(l){n.domUtils.showErrorModalDefault(l,"Error getting learning plans data.")})},n.prototype.refreshLearningPlans=function(n){var l=this;this.competencyProvider.invalidateLearningPlans(this.userId).finally(function(){l.fetchLearningPlans().finally(function(){n.complete()})})},n.prototype.openPlan=function(n){this.planId=n,this.splitviewCtrl.push("AddonCompetencyPlanPage",{planId:n})},n}(),b=function(){return function(){}}(),v=a(1345),P=a(1346),y=a(1347),I=a(1348),x=a(1349),L=a(1350),w=a(1351),T=a(1352),k=a(1353),$=a(1356),C=a(1357),K=a(1358),E=a(120),U=a(109),A=a(27),O=a(19),R=a(31),S=a(21),D=a(20),M=a(7),W=a(28),F=a(33),j=a(8),H=a(146),N=a(78),V=a(15),B=a(39),J=a(32),q=a(223),z=a(6),G=a(25),Q=a(435),X=a(37),Y=a(1354),Z=a(200),nn=a(34),ln=a(22),an=a(663),tn=a(13),un=a(1355),en=a(337),on=a(247),rn=a(437),_n=a(67),sn=a(185),cn=a(24),pn=a(107),dn=a(145),fn=a(201),hn=a(159),mn=a(49),gn=a(48),bn=a(3),vn=a(61),Pn=r._14({encapsulation:2,styles:[],data:{}}),yn=r._12("page-addon-competency-planlist",g,function(n){return r._42(0,[(n()(),r._16(0,0,null,null,1,"page-addon-competency-planlist",[],null,null,null,o,Pn)),r._15(1,49152,null,0,g,[vn.a,d.a,h.a,m.a],null,null)],null,null)},{},{},[]),In=a(23),xn=a(333),Ln=a(334),wn=a(336),Tn=a(335),kn=a(434),$n=a(662),Cn=a(248);a.d(l,"AddonCompetencyPlanListPageModuleNgFactory",function(){return Kn});var Kn=r._13(b,[],function(n){return r._25([r._26(512,r.n,r._6,[[8,[v.a,P.a,y.a,I.a,x.a,L.a,w.a,T.a,k.a,$.a,C.a,K.a,yn]],[3,r.n],r.B]),r._26(4608,j.m,j.l,[r.x,[2,j.v]]),r._26(4608,In.x,In.x,[]),r._26(4608,In.d,In.d,[]),r._26(4608,xn.b,xn.a,[]),r._26(4608,Ln.a,Ln.b,[]),r._26(4608,wn.b,wn.a,[]),r._26(4608,Tn.b,Tn.a,[]),r._26(4608,O.a,O.a,[kn.a,xn.b,Ln.a,wn.b,Tn.b,O.b,O.c]),r._26(512,j.b,j.b,[]),r._26(512,In.v,In.v,[]),r._26(512,In.i,In.i,[]),r._26(512,In.s,In.s,[]),r._26(512,$n.a,$n.a,[]),r._26(512,_.a,_.a,[]),r._26(512,c.a,c.a,[]),r._26(512,p.a,p.a,[]),r._26(512,s.a,s.a,[]),r._26(512,$n.b,$n.b,[]),r._26(512,b,b,[]),r._26(256,O.c,void 0,[]),r._26(256,O.b,void 0,[]),r._26(256,Cn.a,g,[])])})}});