1"use strict";(self.webpackChunkangular=self.webpackChunkangular||[]).push([[183],{183:(Lu,ft,c)=>{var ne,oe,ie,se,re,ae,le,ce;c.r(ft),c.d(ft,{ListModule:()=>Pu});var _=c(6895),f=c(7753),u=c(4006),v=c(8954),Se=c(8333),A=c(3144),Ae=c(2210),de=c(7650),xn=c(8177),Ct=c(5722),yn=c(4323),e=c(4650),D=c(805),C=c(9592),vt=c(1795),Re=c(3608),ze=c(982),Ve=c(8929),Tn=c(7625),bt=c(2621);const Un=["sublist"],wn=["menuitem"],Mn=function(i){return{"p-hidden":i}};function Zn(i,o){if(1&i&&e._UZ(0,"li",5,6),2&i){const n=e.oxw().$implicit;e.Q6J("ngClass",e.VKq(1,Mn,!1===n.visible))}}function Pn(i,o){if(1&i&&e._UZ(0,"span",17),2&i){const n=e.oxw(3).$implicit;e.Q6J("ngClass",n.icon)("ngStyle",n.iconStyle)}}function Ln(i,o){if(1&i&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&i){const n=e.oxw(3).$implicit;e.xp6(1),e.Oqu(n.label)}}function Sn(i,o){if(1&i&&e._UZ(0,"span",19),2&i){const n=e.oxw(3).$implicit;e.Q6J("innerHTML",n.label,e.oJD)}}function An(i,o){if(1&i&&(e.TgZ(0,"span",20),e._uU(1),e.qZA()),2&i){const n=e.oxw(3).$implicit;e.Q6J("ngClass",n.badgeStyleClass),e.xp6(1),e.Oqu(n.badge)}}function On(i,o){1&i&&e._UZ(0,"AngleRightIcon",23),2&i&&e.Q6J("styleClass","p-submenu-icon")}function In(i,o){}function kn(i,o){1&i&&e.YNc(0,In,0,0,"ng-template")}function Nn(i,o){if(1&i&&(e.TgZ(0,"span",24),e.YNc(1,kn,1,0,null,25),e.qZA()),2&i){const n=e.oxw(5);e.xp6(1),e.Q6J("ngTemplateOutlet",n.contextMenu.submenuIconTemplate)}}function qn(i,o){if(1&i&&(e.ynx(0),e.YNc(1,On,1,1,"AngleRightIcon",21),e.YNc(2,Nn,2,1,"span",22),e.BQk()),2&i){const n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!n.contextMenu.submenuIconTemplate),e.xp6(1),e.Q6J("ngIf",n.contextMenu.submenuIconTemplate)}}const xt=function(i){return{"p-menuitem-link":!0,"p-disabled":i}};function Fn(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(s){e.CHM(n),e.oxw();const r=e.MAs(1),a=e.oxw(),l=a.$implicit,p=a.index,h=e.oxw();return e.KtG(h.onItemClick(s,l,r,h.getKey(p)))}),e.YNc(1,Pn,1,2,"span",12),e.YNc(2,Ln,2,1,"span",13),e.YNc(3,Sn,1,1,"ng-template",null,14,e.W1O),e.YNc(5,An,2,2,"span",15),e.YNc(6,qn,3,2,"ng-container",16),e.qZA()}if(2&i){const n=e.MAs(4),t=e.oxw(2),s=t.$implicit,r=t.index,a=e.oxw();e.Q6J("target",s.target)("ngClass",e.VKq(13,xt,s.disabled)),e.uIk("href",s.url?s.url:null,e.LSH)("title",s.title)("id",s.id)("tabindex",s.disabled?null:"0")("aria-haspopup",null!=a.item.items)("aria-expanded",a.isActive(a.getKey(r))),e.xp6(1),e.Q6J("ngIf",s.icon),e.xp6(1),e.Q6J("ngIf",!1!==s.escape)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",s.badge),e.xp6(1),e.Q6J("ngIf",s.items)}}function Gn(i,o){if(1&i&&e._UZ(0,"span",17),2&i){const n=e.oxw(3).$implicit;e.Q6J("ngClass",n.icon)("ngStyle",n.iconStyle)}}function Jn(i,o){if(1&i&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&i){const n=e.oxw(3).$implicit;e.xp6(1),e.Oqu(n.label)}}function Qn(i,o){if(1&i&&e._UZ(0,"span",19),2&i){const n=e.oxw(3).$implicit;e.Q6J("innerHTML",n.label,e.oJD)}}function En(i,o){if(1&i&&(e.TgZ(0,"span",20),e._uU(1),e.qZA()),2&i){const n=e.oxw(3).$implicit;e.Q6J("ngClass",n.badgeStyleClass),e.xp6(1),e.Oqu(n.badge)}}function Dn(i,o){1&i&&e._UZ(0,"AngleRightIcon",23),2&i&&e.Q6J("styleClass","p-submenu-icon")}function Bn(i,o){}function Yn(i,o){1&i&&e.YNc(0,Bn,0,0,"ng-template")}function Hn(i,o){if(1&i&&(e.TgZ(0,"span",24),e.YNc(1,Yn,1,0,null,25),e.qZA()),2&i){const n=e.oxw(5);e.xp6(1),e.Q6J("ngTemplateOutlet",n.contextMenu.submenuIconTemplate)}}function Rn(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Dn,1,1,"AngleRightIcon",21),e.YNc(2,Hn,2,1,"span",22),e.BQk()),2&i){const n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!n.contextMenu.submenuIconTemplate),e.xp6(1),e.Q6J("ngIf",n.contextMenu.submenuIconTemplate)}}const zn=function(){return{exact:!1}};function Vn(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(s){e.CHM(n),e.oxw();const r=e.MAs(1),a=e.oxw(),l=a.$implicit,p=a.index,h=e.oxw();return e.KtG(h.onItemClick(s,l,r,h.getKey(p)))}),e.YNc(1,Gn,1,2,"span",12),e.YNc(2,Jn,2,1,"span",13),e.YNc(3,Qn,1,1,"ng-template",null,27,e.W1O),e.YNc(5,En,2,2,"span",15),e.YNc(6,Rn,3,2,"ng-container",16),e.qZA()}if(2&i){const n=e.MAs(4),t=e.oxw(2).$implicit;e.Q6J("routerLink",t.routerLink)("queryParams",t.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",t.routerLinkActiveOptions||e.DdM(20,zn))("target",t.target)("ngClass",e.VKq(21,xt,t.disabled))("fragment",t.fragment)("queryParamsHandling",t.queryParamsHandling)("preserveFragment",t.preserveFragment)("skipLocationChange",t.skipLocationChange)("replaceUrl",t.replaceUrl)("state",t.state),e.uIk("title",t.title)("id",t.id)("tabindex",t.disabled?null:"0"),e.xp6(1),e.Q6J("ngIf",t.icon),e.xp6(1),e.Q6J("ngIf",!1!==t.escape)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",t.badge),e.xp6(1),e.Q6J("ngIf",t.items)}}function jn(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"p-contextMenuSub",28),e.NdJ("leafClick",function(){e.CHM(n);const s=e.oxw(3);return e.KtG(s.onLeafClick())}),e.qZA()}if(2&i){const n=e.oxw(2),t=n.index,s=n.$implicit,r=e.oxw();e.Q6J("parentItemKey",r.getKey(t))("item",s)}}const Kn=function(i,o){return{"p-menuitem":!0,"p-menuitem-active":i,"p-hidden":o}};function $n(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"li",7,6),e.NdJ("mouseenter",function(s){e.CHM(n);const r=e.oxw(),a=r.$implicit,l=r.index,p=e.oxw();return e.KtG(p.onItemMouseEnter(s,a,p.getKey(l)))})("mouseleave",function(s){e.CHM(n);const r=e.oxw().$implicit,a=e.oxw();return e.KtG(a.onItemMouseLeave(s,r))}),e.YNc(2,Fn,7,15,"a",8),e.YNc(3,Vn,7,23,"a",9),e.YNc(4,jn,1,2,"p-contextMenuSub",10),e.qZA()}if(2&i){const n=e.oxw(),t=n.$implicit,s=n.index,r=e.oxw();e.Tol(t.styleClass),e.Q6J("ngClass",e.WLB(9,Kn,r.isActive(r.getKey(s)),!1===t.visible))("ngStyle",t.style)("tooltipOptions",t.tooltipOptions),e.uIk("data-ik",r.getKey(s)),e.xp6(2),e.Q6J("ngIf",!t.routerLink),e.xp6(1),e.Q6J("ngIf",t.routerLink),e.xp6(1),e.Q6J("ngIf",t.items)}}function Wn(i,o){if(1&i&&(e.YNc(0,Zn,2,3,"li",3),e.YNc(1,$n,5,12,"li",4)),2&i){const n=o.$implicit;e.Q6J("ngIf",n.separator),e.xp6(1),e.Q6J("ngIf",!n.separator)}}const Xn=function(i){return{"p-submenu-list":i}},eo=["container"];let to=(()=>{class i{constructor(n){this.leafClick=new e.vpe,this.contextMenu=n}ngOnInit(){this.activeItemKeyChangeSubscription=this.contextMenu.contextMenuService.activeItemKeyChange$.pipe((0,Tn.R)(this.contextMenu.ngDestroy$)).subscribe(n=>{this.activeItemKey=n,this.isActive(this.parentItemKey)&&C.p.hasClass(this.sublistViewChild.nativeElement,"p-submenu-list-active")&&this.contextMenu.positionSubmenu(this.sublistViewChild.nativeElement),this.contextMenu.cd.markForCheck()})}onItemMouseEnter(n,t,s){if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),t.disabled)this.activeItemKey=null;else{if(t.items){let r=C.p.findSingle(n.currentTarget,".p-submenu-list");C.p.addClass(r,"p-submenu-list-active")}this.contextMenu.contextMenuService.changeKey(s)}}onItemMouseLeave(n,t){t.disabled||this.contextMenu.el.nativeElement.contains(n.toElement)&&(t.items&&this.contextMenu.removeActiveFromSubLists(n.currentTarget),this.root||this.contextMenu.contextMenuService.changeKey(this.parentItemKey))}onItemClick(n,t,s,r){if(t.disabled)n.preventDefault();else{if(!t.url&&!t.routerLink&&n.preventDefault(),t.command&&t.command({originalEvent:n,item:t}),t.items){let a=C.p.findSingle(s,".p-submenu-list");a&&(this.isActive(r)&&C.p.hasClass(a,"p-submenu-list-active")?this.contextMenu.removeActiveFromSubLists(s):C.p.addClass(a,"p-submenu-list-active"),this.contextMenu.contextMenuService.changeKey(r))}t.items||this.onLeafClick()}}onLeafClick(){this.root&&this.contextMenu.hide(),this.leafClick.emit()}
1getKey(n){return this.root?String(n):this.parentItemKey+"_"+n}isActive(n){return this.activeItemKey&&(this.activeItemKey.startsWith(n+"_")||this.activeItemKey===n)}}return i.\u0275fac=function(n){return new(n||i)(e.Y36((0,e.Gpc)(()=>yt)))},i.\u0275cmp=e.Xpm({type:i,selectors:[["p-contextMenuSub"]],viewQuery:function(n,t){if(1&n&&(e.Gf(Un,5),e.Gf(wn,5)),2&n){let s;e.iGM(s=e.CRH())&&(t.sublistViewChild=s.first),e.iGM(s=e.CRH())&&(t.menuitemViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",parentItemKey:"parentItemKey"},outputs:{leafClick:"leafClick"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["pTooltip","","role","none",3,"ngClass","ngStyle","class","tooltipOptions","mouseenter","mouseleave",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["menuitem",""],["pTooltip","","role","none",3,"ngClass","ngStyle","tooltipOptions","mouseenter","mouseleave"],["pRipple","",3,"target","ngClass","click",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click",4,"ngIf"],[3,"parentItemKey","item","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","click"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-submenu-icon",4,"ngIf"],[3,"styleClass"],[1,"p-submenu-icon"],[4,"ngTemplateOutlet"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click"],["htmlRouteLabel",""],[3,"parentItemKey","item","leafClick"]],template:function(n,t){1&n&&(e.TgZ(0,"ul",0,1),e.YNc(2,Wn,2,2,"ng-template",2),e.qZA()),2&n&&(e.Q6J("ngClass",e.VKq(2,Xn,!t.root)),e.xp6(2),e.Q6J("ngForOf",t.root?t.item:t.item.items))},dependencies:function(){return[_.mk,_.sg,_.O5,_.tP,_.PC,f.rH,f.Od,vt.H,Re.u,bt.o,i]},encapsulation:2}),i})(),yt=(()=>{class i{constructor(n,t,s,r,a,l,p){this.document=n,this.el=t,this.renderer=s,this.cd=r,this.zone=a,this.contextMenuService=l,this.config=p,this.autoZIndex=!0,this.baseZIndex=0,this.triggerEvent="contextmenu",this.onShow=new e.vpe,this.onHide=new e.vpe,this.ngDestroy$=new Ve.xQ,this.preventDocumentDefault=!1,this.window=this.document.defaultView}ngAfterViewInit(){this.global?this.triggerEventListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",this.triggerEvent,t=>{this.show(t),t.preventDefault()}):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,n=>{this.show(n),n.preventDefault()})),this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.containerViewChild.nativeElement):C.p.appendChild(this.containerViewChild.nativeElement,this.appendTo))}show(n){this.clearActiveItem(),this.position(n),this.moveOnTop(),this.containerViewChild.nativeElement.style.display="block",this.preventDocumentDefault=!0,C.p.fadeIn(this.containerViewChild.nativeElement,250),this.bindGlobalListeners(),n&&n.preventDefault(),this.onShow.emit()}hide(){this.containerViewChild.nativeElement.style.display="none",this.autoZIndex&&ze.P9.clear(this.containerViewChild.nativeElement),this.clearActiveItem(),this.unbindGlobalListeners(),this.onHide.emit()}moveOnTop(){this.autoZIndex&&this.containerViewChild&&"block"!==this.containerViewChild.nativeElement.style.display&&ze.P9.set("menu",this.containerViewChild.nativeElement,this.baseZIndex+this.config.zIndex.menu)}toggle(n){this.containerViewChild.nativeElement.offsetParent?this.hide():this.show(n)}position(n){if(n){let t=n.pageX+1,s=n.pageY+1,r=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetWidth:C.p.getHiddenElementOuterWidth(this.containerViewChild.nativeElement),a=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetHeight:C.p.getHiddenElementOuterHeight(this.containerViewChild.nativeElement),l=C.p.getViewport();t+r-this.document.scrollingElement.scrollLeft>l.width&&(t-=r),s+a-this.document.scrollingElement.scrollTop>l.height&&(s-=a),t<this.document.scrollingElement.scrollLeft&&(t=this.document.scrollingElement.scrollLeft),s<this.document.scrollingElement.scrollTop&&(s=this.document.scrollingElement.scrollTop),this.containerViewChild.nativeElement.style.left=t+"px",this.containerViewChild.nativeElement.style.top=s+"px"}}positionSubmenu(n){let t=n.parentElement.parentElement,s=C.p.getViewport(),r=n.offsetParent?n.offsetWidth:C.p.getHiddenElementOuterWidth(n),a=n.offsetHeight?n.offsetHeight:C.p.getHiddenElementOuterHeight(n),l=C.p.getOuterWidth(t.children[0]),p=C.p.getOuterHeight(t.children[0]),h=C.p.getOffset(t.parentElement);n.style.zIndex=++C.p.zindex,parseInt(h.top)+p+a>s.height-C.p.calculateScrollbarHeight()?(n.style.removeProperty("top"),n.style.bottom="0px"):(n.style.removeProperty("bottom"),n.style.top="0px"),n.style.left=parseInt(h.left)+l+r>s.width-C.p.calculateScrollbarWidth()?-r+"px":l+"px"}isItemMatched(n){return C.p.hasClass(n,"p-menuitem")&&!C.p.hasClass(n.children[0],"p-disabled")}findNextItem(n,t){let s=n.nextElementSibling;if(s)return this.isItemMatched(s)?s:this.findNextItem(s,t);{let r=n.parentElement.children[0];return this.isItemMatched(r)?r:t?null:this.findNextItem(r,!0)}}findPrevItem(n,t){let s=n.previousElementSibling;if(s)return this.isItemMatched(s)?s:this.findPrevItem(s,t);{let r=n.parentElement.children[n.parentElement.children.length-1];return this.isItemMatched(r)?r:t?null:this.findPrevItem(r,!0)}}getActiveItem(){let n=this.contextMenuService.activeItemKey;return null==n?null:C.p.findSingle(this.containerViewChild.nativeElement,'.p-menuitem[data-ik="'+n+'"]')}clearActiveItem(){this.contextMenuService.activeItemKey&&(this.removeActiveFromSubLists(this.containerViewChild.nativeElement),this.contextMenuService.reset())}removeActiveFromSubLists(n){let t=C.p.find(n,".p-submenu-list-active");for(let s of t)C.p.removeClass(s,"p-submenu-list-active")}removeActiveFromSublist(n){n&&C.p.findSingle(n,".p-submenu-list")&&C.p.hasClass(n,"p-submenu-list-active")&&C.p.removeClass(n,"p-submenu-list-active")}bindGlobalListeners(){if(!this.documentClickListener){const n=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(n,"click",t=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(t)&&!t.ctrlKey&&2!==t.button&&"click"!==this.triggerEvent&&this.hide()}),this.documentTriggerListener=this.renderer.listen(n,this.triggerEvent,t=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(t)&&!this.preventDocumentDefault&&this.hide(),this.preventDocumentDefault=!1})}this.zone.runOutsideAngular(()=>{this.windowResizeListener||this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this))}),this.documentKeydownListener||(this.documentKeydownListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",t=>{let s=this.getActiveItem();switch(t.key){case"ArrowDown":if(s)this.removeActiveFromSublist(s),s=this.findNextItem(s);else{let r=C.p.findSingle(this.containerViewChild.nativeElement,".p-menuitem-link").parentElement;s=this.isItemMatched(r)?r:this.findNextItem(r)}s&&this.contextMenuService.changeKey(s.getAttribute("data-ik")),t.preventDefault();break;case"ArrowUp":if(s)this.removeActiveFromSublist(s),s=this.findPrevItem(s);else{let r=C.p.findSingle(this.containerViewChild.nativeElement,"ul"),a=r.children[r.children.length-1];
1s=this.isItemMatched(a)?a:this.findPrevItem(a)}s&&this.contextMenuService.changeKey(s.getAttribute("data-ik")),t.preventDefault();break;case"ArrowRight":if(s){let r=C.p.findSingle(s,".p-submenu-list");r&&(C.p.addClass(r,"p-submenu-list-active"),s=C.p.findSingle(r,".p-menuitem-link:not(.p-disabled)").parentElement,s&&this.contextMenuService.changeKey(s.getAttribute("data-ik")))}t.preventDefault();break;case"ArrowLeft":if(s){let r=s.parentElement;r&&C.p.hasClass(r,"p-submenu-list-active")&&(C.p.removeClass(r,"p-submenu-list-active"),s=r.parentElement.parentElement,s&&this.contextMenuService.changeKey(s.getAttribute("data-ik")))}t.preventDefault();break;case"Escape":this.hide(),t.preventDefault();break;case"Enter":s&&this.handleItemClick(t,this.findModelItemFromKey(this.contextMenuService.activeItemKey),s),t.preventDefault()}}))}findModelItemFromKey(n){return null!=n&&this.model?n.split("_").reduce((s,r)=>s?s.items[r]:this.model[r],null):null}handleItemClick(n,t,s){if(t&&!t.disabled){if(t.command&&t.command({originalEvent:n,item:t}),t.items){let r=C.p.findSingle(s,".p-submenu-list");r&&(C.p.hasClass(r,"p-submenu-list-active")?this.removeActiveFromSubLists(s):(C.p.addClass(r,"p-submenu-list-active"),this.positionSubmenu(r)))}t.items||this.hide()}}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.documentKeydownListener&&(this.documentKeydownListener(),this.documentKeydownListener=null)}onWindowResize(n){this.containerViewChild.nativeElement.offsetParent&&this.hide()}isOutsideClicked(n){return!(this.containerViewChild.nativeElement.isSameNode(n.target)||this.containerViewChild.nativeElement.contains(n.target))}ngOnDestroy(){this.unbindGlobalListeners(),this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null),this.containerViewChild&&this.autoZIndex&&ze.P9.clear(this.containerViewChild.nativeElement),this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.containerViewChild.nativeElement),this.ngDestroy$.next(!0),this.ngDestroy$.complete()}}return i.\u0275fac=function(n){return new(n||i)(e.Y36(_.K0),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(D.Lk),e.Y36(D.b4))},i.\u0275cmp=e.Xpm({type:i,selectors:[["p-contextMenu"]],contentQueries:function(n,t,s){if(1&n&&e.Suo(s,D.jx,4),2&n){let r;e.iGM(r=e.CRH())&&(t.templates=r)}},viewQuery:function(n,t){if(1&n&&e.Gf(eo,5),2&n){let s;e.iGM(s=e.CRH())&&(t.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",global:"global",target:"target",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",triggerEvent:"triggerEvent"},outputs:{onShow:"onShow",onHide:"onHide"},decls:3,vars:6,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"item","root"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0,1),e._UZ(2,"p-contextMenuSub",2),e.qZA()),2&n&&(e.Tol(t.styleClass),e.Q6J("ngClass","p-contextmenu p-component")("ngStyle",t.style),e.xp6(2),e.Q6J("item",t.model)("root",!0))},dependencies:[_.mk,_.PC,to],styles:[".p-contextmenu{position:absolute;display:none}.p-contextmenu ul{margin:0;padding:0;list-style:none}.p-contextmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}.p-contextmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-contextmenu .p-menuitem-text{line-height:1}.p-contextmenu .p-menuitem{position:relative}.p-contextmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-contextmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}.p-contextmenu .p-menuitem-active>p-contextmenusub>.p-submenu-list.p-submenu-list-active{display:block!important}\n"],encapsulation:2,changeDetection:0}),i})(),no=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({providers:[D.Lk],imports:[_.ez,f.Bz,vt.T,Re.z,D.m8,bt.o,f.Bz,Re.z,D.m8]}),i})();var d=c(9671),g=c(7164),K=c(3145),J=c(3702),oo=c(537),S=c(8592),w=c(94),x=c(5325),$=c(350),Tt=c(8018),M=c(757);const io=["listTitleInput"],so=function(){return["text-left"]};let ro=(()=>{const o=class{constructor(t,s,r,a){this.changeDetector=t,this.listService=s,this.notificationService=r,this.router=a,this.showViewLink=!0,this.items=[],this.onNewListCreated=new e.vpe,this.onCancelModal=new e.vpe,this.formSubmitted=!1,this.isLoading=!1,this.listTitleError=""}ngOnInit(){this.createListForm=new u.nJ({listTitle:new u.p4(null,[u.kI.required]),listDescription:new u.p4(null)}),this.listTitleInput.registerListeners(null,t=>{this.getListTitleError(t)})}ngAfterViewInit(){this.listTitleInput.formInput.nativeElement.focus(),this.changeDetector.detectChanges()}getListTitleError(t){this.listTitleError=t&&""!==t||!this.listTitleInput.touched&&!this.formSubmitted?"":"List title is required"}createListSubmitHandler(){if(this.formSubmitted=!0,!this.listTitleInput.isValid)return this.getListTitleError(this.listTitleInput.value),void(this.formSubmitted=!1);this.isLoading=!0,this.listTitleError="";const{listTitle:t,listDescription:s}=this.createListForm.value;this.createList(t,s,this.items)}cancelCreateHandler(){this.createListForm.reset(),this.listTitleError="",this.onCancelModal.emit()}createList(t,s,r){let a;
1this.createListForm.invalid||this.listService.createList(t,s,r).pipe((0,oo.x)(()=>this.isLoading=!1)).subscribe(l=>{a=l,this.onNewListCreated.emit(l)},l=>{const p=(0,$.KU)(l)||x.j.ListCreateErrorText(l.error.message);this.notificationService.publishNotification(p,"error")},()=>{this.formSubmitted=!1,this.createListForm.reset(),this.showViewLink?this.notificationService.publishNotification(x.n.ListCreatedText,"success","View List",()=>this.router.navigate(["lists/detail/"+a.id])):(this.router.navigate(["/lists","detail",a.id],{queryParams:{openAddCoursesModal:"true"}}),this.notificationService.publishNotification(x.n.ListCreatedText,"success"))})}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(e.sBO),e.Y36(S.XN),e.Y36(w.g),e.Y36(f.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-create-list-form"]],viewQuery:function(s,r){if(1&s&&e.Gf(io,7),2&s){let a;e.iGM(a=e.CRH())&&(r.listTitleInput=a.first)}},inputs:{showViewLink:"showViewLink",items:"items"},outputs:{onNewListCreated:"onNewListCreated",onCancelModal:"onCancelModal"},decls:26,vars:5,consts:[[1,"p-10"],["id","create-list-form",3,"formGroup","ngSubmit"],["inputId","listTitle","label","Title","formControlName","listTitle","name","list-title","placeholder","Title",3,"wrapperClasses","required","errorMessage"],["listTitleInput",""],[1,"form-wrapper","text-left","p-0"],["for","list-desc",1,"form-label"],["id","list-desc","formControlName","listDescription","name","list-desc","placeholder","Description",1,"form-field"],[1,"pt-40","text-left"],["size","sm",3,"click"],["buttonType","submit","color","primary","size","sm","variant","contained"]],template:function(s,r){1&s&&(e.TgZ(0,"div",0),e._uU(1,"\n "),e.TgZ(2,"form",1),e.NdJ("ngSubmit",function(){return r.createListSubmitHandler()}),e._uU(3,"\n "),e._UZ(4,"app-form-input",2,3),e._uU(6,"\n "),e.TgZ(7,"div",4),e._uU(8,"\n "),e.TgZ(9,"label",5),e._uU(10,"Description"),e.qZA(),e._uU(11,"\n "),e._UZ(12,"textarea",6),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.TgZ(15,"div",7),e._uU(16,"\n "),e.TgZ(17,"og-button",8),e.NdJ("click",function(){return r.cancelCreateHandler()}),e._uU(18,"Cancel"),e.qZA(),e._uU(19,"\n "),e.TgZ(20,"og-button",9),e._uU(21,"Create List"),e.qZA(),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.qZA(),e._uU(24,"\n"),e.qZA(),e._uU(25,"\n")),2&s&&(e.xp6(2),e.Q6J("formGroup",r.createListForm),e.xp6(2),e.Q6J("wrapperClasses",e.DdM(4,so))("required",!0)("errorMessage",r.listTitleError))},dependencies:[Tt.s,u._Y,u.Fj,u.JJ,u.JL,u.Q7,M.r0,u.sg,u.u],data:{animation:[K.y0]}}),i})();const ao=["modal"];let lo=(()=>{const o=class{constructor(){this.onSubmit=new e.vpe}ngOnInit(){}emitListCreated(t){this.hide(),this.onSubmit.emit({list:t})}show(){this.modal.show()}hide(){this.modal.hide()}};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-create-list-modal"]],viewQuery:function(s,r){if(1&s&&e.Gf(ao,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{onSubmit:"onSubmit"},decls:7,vars:1,consts:[["headline","Create New List","subHeadline","Enter a title and description for the list","googleIconImageName","playlist_add","uniqueSelector","create-list"],["modal",""],[3,"showViewLink","onCancelModal","onNewListCreated"],["form",""]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e._uU(2,"\n "),e.TgZ(3,"app-create-list-form",2,3),e.NdJ("onCancelModal",function(){return r.hide()})("onNewListCreated",function(l){return r.emitListCreated(l)}),e.qZA(),e._uU(5,"\n"),e.qZA(),e._uU(6,"\n")),2&s&&(e.xp6(3),e.Q6J("showViewLink",!1))},dependencies:[ro,J.z]}),i})();var je=c(5507),Te=c(317),Q=c(1029),I=c(5856),Ut=c(8114),R=c(282);class co extends R.x{constructor(o){super("Smart List Group",{group:o.group,listId:o.listId,courses:o.courses})}}let wt=(()=>{const o=class{constructor(t,s,r,a){this.products=t,this.notificationService=s,this.listService=r,this.segmentService=a}buildList(t,s,r,a,l,p,h){var m=this;return(0,d.Z)(function*(){const T=yield m.createList(h);return yield m.buildSmartListGroups(T.id,t,s,r,a,l,p,h),T})()}createList(t){var s=this;return(0,d.Z)(function*(){const a=new _.uU("en-US").transform(Date.now(),Q.U5),l=t?`${t.name} Recommendations ${a}`:`Recommended on ${a}`,p=t?t.id:null;return yield s.listService.createList(l,null,null,p).toPromise()})()}buildSmartListGroups(t,s,r,a,l,p,h,m){var T=this;return(0,d.Z)(function*(){const L=o.buildSmartListCriteria(s,r,l,a,p,h,m),G=yield T.products.smartList(L,{count:5,offset:0}),U=o.buildSmartListPayload(G,L,s),E=yield T.listService.createGroups(t,U);return T.publishNotificationsForEmptyGroups(U.groups),T.trackGroups(t,U.groups),E})()}static buildSmartListPayload(t,s,r){const{groupedCourses:a,recommenderId:l}=t;return{groups:r.map(h=>{const m=a[h];if(m)return{courses:m.map(({id:L,productType:G,guid:U})=>({courseGuid:U,itemId:L,productType:G})),title:h,criteria:{...s,query:h}}}),recommendationId:l}}
1static buildSmartListCriteria(t,s,r,a,l,p,h){const m={keywords:void 0};return m.keywords=t,s&&(m.filters={durationRanges:[s]}),!0===r&&(m.filters={...m.filters,isPlus:r}),l&&(m.filters={...m.filters,publisherIds:l}),p&&(m.filters={...m.filters,featureIds:p}),a&&(m.filters={...m.filters,languages:[a],courseText:!0}),h&&(m.company={...m.company,id:h.id,features:h.features}),m.filters={...m.filters,productType:[Ut.NR.course]},m}publishNotificationsForEmptyGroups(t){t.filter(r=>0===r.courses.length).forEach(r=>this.notificationService.publishNotification(`No courses were returned for topic "${r.title}". Click the Add Courses button to change the search criteria.`,"warning"))}trackGroups(t,s){s.forEach(r=>{this.segmentService.trackEvent(new co({listId:t,courses:r.courses.map(a=>a.courseGuid),group:r.title}))})}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(Te.r),e.LFG(w.g),e.LFG(S.XN),e.LFG(I.B))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})();var ge=c(2437);class uo extends R.x{constructor(o){super("SmartList Created",{topics:o.topics,company:o.company,language:o.language,catalogType:o.catalogType,length:o.length,publishers:o.publishers,features:o.features,listId:o.listId})}}class po extends R.x{constructor(o){super("Viewed SmartList Creator",{step:o.finalStep})}}var k=c(655),Mt=c(4274),O=c(7590);const _o=i=>{const o=i.get("companyDomain").value,n=i.get("company").value;return null!==o&&""!==o&&null===n?{companyFormInvalid:!0}:null};var go=c(13),mo=c(5778),Zt=c(3631),Pt=c(9207),W=c(7873),N=c(1651);function ho(i,o){1&i&&(e.TgZ(0,"i",7),e._uU(1,"done"),e.qZA())}function fo(i,o){1&i&&e._UZ(0,"app-loading-indicator",8)}function Co(i,o){1&i&&(e.TgZ(0,"i",9),e._uU(1,"error"),e.qZA())}function vo(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"app-form-input-wrapper",1),e._uU(1,"\n "),e.TgZ(2,"p-autoComplete",2),e.NdJ("onFocus",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.focusDomain())})("onBlur",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.blurOrOnSelectDomain())})("onSelect",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.blurOrOnSelectDomain())}),e.qZA(),e._uU(3,"\n "),e.TgZ(4,"og-typography",3),e._uU(5,"\n "),e.YNc(6,ho,2,0,"i",4),e._uU(7,"\n "),e.YNc(8,fo,1,0,"app-loading-indicator",5),e._uU(9,"\n "),e.YNc(10,Co,2,0,"i",6),e._uU(11,"\n "),e.qZA(),e._uU(12,"\n"),e.qZA()}if(2&i){const n=e.oxw();e.Q6J("formGroup",n.companyForm)("errorMessage",n.domainErrorMsg)("wrapperClasses",n.wrapperClasses),e.xp6(2),e.Q6J("suggestions",n.matchingDomains),e.xp6(2),e.Q6J("className",n.classes.loading),e.xp6(2),e.Q6J("ngIf","success"===n.domainStatus),e.xp6(2),e.Q6J("ngIf","loading"===n.domainStatus),e.xp6(2),e.Q6J("ngIf","error"===n.domainStatus)}}let Oe=((ne=class{constructor(o,n){this.companiesService=o,this.activeSession=n,this.domainErrorMsg="",this.subscriptions=[],this.wrapperClasses=[],this.formReady=new e.vpe,this.companyForm=new u.nJ({companyDomain:new u.p4(null),company:new u.p4(null)},{validators:_o})}ngOnInit(){this.formReady.emit(this.companyForm)}ngOnDestroy(){this.destroySubscriptions()}destroySubscriptions(){this.subscriptions.forEach(o=>{o.unsubscribe()})}get session(){return this.activeSession.session}get companyDomain(){return this.companyForm.controls.companyDomain.value}get company(){return this.companyForm.controls.company.value}set company(o){this.companyForm.controls.company.patchValue(o)}focusDomain(){this.domainStatus=null}blurOrOnSelectDomain(){var o=this;return(0,d.Z)(function*(){if(null!==o.companyDomain&&o.companyDomain.length>0){o.domainStatus="loading";try{o.company=yield o.companiesService.fetchCompany(o.companyDomain),null!==o.company?(o.domainErrorMsg="",o.domainStatus="success"):(o.domainErrorMsg=`No company data was found for domain ${o.companyDomain}`,o.domainStatus="error")}catch(n){o.company=null,o.domainStatus="error",console.error(n)}}})()}resetForm(){this.companyForm&&this.companyForm.reset({companyDomain:null,company:null}),this.destroySubscriptions()}initializeFormSubscriptions(){this.session.permissions.canSetCompanyOnList&&this.subscriptions.push(this.companyForm.controls.companyDomain.valueChanges.pipe((0,go.b)(500),(0,mo.x)()).subscribe(o=>{o&&o.length>0&&this.companiesService.getDomains(o).subscribe(n=>this.matchingDomains=n.domains)}))}}).\u0275fac=function(n){return new(n||ne)(e.Y36(Mt.t),e.Y36(O.V))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["app-company-typeahead"]],inputs:{wrapperClasses:"wrapperClasses"},outputs:{formReady:"formReady"},decls:2,vars:1,consts:[["label","Company domain","inputId","domain",3,"formGroup","errorMessage","wrapperClasses",4,"ngIf"],["label","Company domain","inputId","domain",3,"formGroup","errorMessage","wrapperClasses"],["formControlName","companyDomain","inputId","domain","placeholder","www.company.com",3,"suggestions","onFocus","onBlur","onSelect"],["variant","subtitle2",3,"className"],["class","material-icons color-success","style","margin-bottom: 2px",4,"ngIf"],["size","small",4,"ngIf"],["class","material-icons color-error",4,"ngIf"],[1,"material-icons","color-success",2,"margin-bottom","2px"],["size","small"],[1,"material-icons","color-error"]],template:function(n,t){1&n&&(e.YNc(0,vo,13,8,"app-form-input-wrapper",0),e._uU(1,"\n")),2&n&&e.Q6J("ngIf",t.session.permissions.canSetCompanyOnList)},dependencies:[Zt.Qc,_.O5,Pt.j,u.JJ,u.JL,u.sg,u.u,W.Q,N.lo]}),ne);Oe=(0,k.gn)([(0,v.ozS)(i=>(0,v.kcS)({loading:{position:"absolute",right:"0.5em",bottom:"0.35em",height:"1.25em",width:"1.25em"}})),(0,k.w6)("design:paramtypes",[Mt.t,O.V])],Oe);var q=c(7489),xo=c(1502),Lt=c(9098),yo=c(5299),To=c(9130),Ke=c(7520),Uo=c(672);const wo=["modal"],Mo=["companyForm"],Zo=function(){return["mt-40"]};function Po(i,o){if(1&i&&e._UZ(0,"app-form-fancy-radio-group",28),2&i){const n=e.oxw();e.Q6J("options",n.lengthOptions)("fieldsetClasses",e.DdM(2,Zo))}}const St=function(){return["my-40"]};function Lo(i,o){1&i&&e._UZ(0,"app-form-checkbox",29),2&i&&e.Q6J("wrapperClasses",e.DdM(1,St))}function So(i,o){if(1&i&&(e.TgZ(0,"div",30),e._uU(1,"\n "),e.TgZ(2,"label",31),e._uU(3,"Publishers"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-multiSelect",32),e._uU(6,"\n "),e.qZA()),2&i){const n=e.oxw();e.xp6(5),e.Q6J("disabled",0===n.filterOptions.publishers.length)("maxSelectedLabels",3)("options",n.filterOptions.publishers)("showToggleAll",!1)}}const Ao=function(){return["my-40","relative"]},Oo=function(){return["my-40","notranslate"]},Io=function(){return{width:"100%"}},ko=function(i){return{disabled:i}},Ie={cloneDeep:q.cloneDeep},No=[{value:{min:-1,max:-1},label:"any length"},{value:{max:11},label:"1 - 10 minutes"},{value:{min:11,max:61},label:"11 - 60 minutes"},{value:{min:61},label:"60+ minutes"}],ke={categories:[],publishers:[],languages:[],features:[]};let qo=(()=>{const o=class{constructor(t,s,r,a,l,p){this.listBuilder=t,this.products=s,this.translator=r,this.notificationService=a,this.languageService=l,this.segmentService=p,this.onSubmit=new e.vpe,this.lengthOptions=No,this.subscriptions=[],this.filterOptions=Ie.cloneDeep(ke),this.selectedOptions=Ie.cloneDeep(ke)}ngOnInit(){var t=this;return(0,d.Z)(function*(){t.langOptions=[];for(const s in je.Sx)s&&t.langOptions.push({label:s,value:je.Sx[s]});
1t.listBuilderForm=new u.nJ({firstPage:new u.nJ({topics:new u.p4(null,[u.kI.required,u.kI.pattern(/[A-Za-z0-9]+/)]),language:new u.p4(t.langOptions[0].value,[u.kI.required]),duration:new u.p4(t.lengthOptions[0]),usePlus:new u.p4(!1)}),secondPage:new u.nJ({publishers:new u.p4([]),features:new u.p4([])})}),t.subscriptions.push(t.languageService.language.subscribe(s=>{t.contextLanguage=t.langOptions.find(r=>r.value===s.languageCode),t.formPage("firstPage").controls.language.setValue(t.contextLanguage.value)})),t.subscriptions.push(t.formPage("firstPage").controls.usePlus.valueChanges.subscribe(s=>t.buildFacetValues())),yield t.buildFacetValues()})()}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}get subHeader(){return void 0===this.modal.activeTab||"firstPage"===this.modal.activeTab.id?"Need curation help? Enter your topics, separated by a comma, and we\u2019ll create a personalized course list for your learners.":"secondPage"===this.modal.activeTab.id?"Already know what you like? Choose specific features for your Smart List.":""}formPage(t){return this.listBuilderForm.controls[t]}show(){this.companyForm&&this.companyForm.initializeFormSubscriptions(),this.modal.show()}resetForm(){this.listBuilderForm.reset({firstPage:{topics:null,language:this.contextLanguage.value,duration:this.lengthOptions[0],usePlus:!1},secondPage:{publishers:[],features:[]}}),this.companyForm&&this.companyForm.resetForm()}hide(){var t=this;return(0,d.Z)(function*(){t.modal.hide(),yield t.closeModalActions()})()}closeModalActions(){var t=this;return(0,d.Z)(function*(){t.resetForm(),t.setPage("firstPage"),yield t.segmentService.trackEvent(new po({finalStep:t.tabState}))})()}setPage(t){this.modal.selectTabById(t),this.tabState=t}showAdvancedOptions(){this.formPage("firstPage").valid&&this.setPage("secondPage")}submit(){var t=this;return(0,d.Z)(function*(){t.setPage("loader");const s=t.formPage("firstPage").controls,r=t.formPage("secondPage").controls,l=t.formPage("firstPage").controls.companyForm.controls.company.value,p=s.language.value,m=s.usePlus.value,T=s.duration.value,L=T?T.value:void 0,G=r.publishers.value,U=r.features.value,E=ge.m.parseCommaOrNewLineDelimited(s.topics.value),ue=!L||(!L.min||L.min<0)&&(!L.max||L.max<0)?void 0:L;try{const ye=yield t.listBuilder.buildList(E,ue,p,m,G&&G.map(_e=>_e.id),U&&U.map(_e=>_e.id),l);yield t.segmentService.trackEvent(new uo({topics:E,company:l,language:p,catalogType:m?"OpenSesame Plus":"All Courses",length:ue,publishers:G&&G.map(_e=>_e.name),features:U&&U.map(_e=>_e.name),listId:ye.id})),t.onSubmit.emit({list:ye})}catch(ye){t.notificationService.publishNotification((0,$.KU)(ye)||"An error occurred while building your recommendations","error")}finally{yield t.hide()}})()}get tabState(){return this._tabState}set tabState(t){switch(t){case"firstPage":this._tabState="StepOne";break;case"secondPage":this._tabState="StepTwo";break;case"loader":this._tabState="Complete"}}formInitialized(t,s){this.formPage("firstPage").setControl(t,s)}buildFacetValues(){var t=this;return(0,d.Z)(function*(){const r=!0===t.formPage("firstPage").controls.usePlus.value?{isPlus:!0}:{};t.facetValues=(yield t.products.search({filters:r},{offset:0})).facetValues,t.facetValues.publishersFacet.sort((a,l)=>a.name.localeCompare(l.name)),t.facetValues.featuresFacet.sort((a,l)=>a.name.localeCompare(l.name)),t.filterOptions=Ie.cloneDeep(ke),t.selectedOptions=Ie.cloneDeep(ke),t.buildMultiSelectData("publishers",t.facetValues.publishersFacet,a=>a.name),t.buildMultiSelectData("features",t.facetValues.featuresFacet,a=>t.translator.translate(a.name))})()}buildMultiSelectData(t,s,r){this.selectedOptions[t]=[],this.formPage("secondPage").get(t).reset(),this.filterOptions[t]=s.map(a=>({label:r(a),value:a}))}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(wt),e.Y36(Te.r),e.Y36(xo.Q),e.Y36(w.g),e.Y36(je.fG),e.Y36(I.B))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-list-builder-modal"]],viewQuery:function(s,r){if(1&s&&(e.Gf(wo,7),e.Gf(Mo,7)),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first),e.iGM(a=e.CRH())&&(r.companyForm=a.first)}},outputs:{onSubmit:"onSubmit"},decls:84,vars:29,consts:[["headline","Create a Smart List","contentClasses","text-left",3,"subHeadline","formGroup","tabNav","updatedHeader","onHide"],["modal",""],["id","firstPage","formGroupName","firstPage"],[3,"wrapperClasses","formReady"],["companyForm",""],["formControlName","topics","label","What topics are you providing training on?","name","topics","placeholder","project management, excel for beginners",3,"wrapperClasses","expands"],["inputId","language","label","Which language are you targeting?",3,"wrapperClasses"],["formControlName","language","inputId","language","scrollHeight","140px",3,"options"],["label","What is your preferred seat time?","name","list-builder_length","formControlName","duration",3,"options","fieldsetClasses",4,"appExcludeIf"],["label","Include only OpenSesame Plus courses","formControlName","usePlus","name","plus",3,"wrapperClasses",4,"appExcludeIf"],[1,"form-wrapper","text-center","mt-40"],["paragraph","true"],["color","primary","size","sm","variant","contained",3,"disabled","click"],["className","e2e-list-builder
1-modal-cancel","size","sm",3,"click"],["tabindex","0",3,"ngClass","click"],[1,"material-icons"],["id","secondPage","formGroupName","secondPage"],["class","form-wrapper my-40",4,"appExcludeIf"],[1,"form-wrapper","mt-40","mb-80"],["for","required-features",1,"pt-5"],["formControlName","features","id","required-features","inputId","requiredFeatures","placeholder","Choose","scrollHeight","180px",3,"disabled","filter","maxSelectedLabels","options","showHeader","showToggleAll"],[1,"form-wrapper","my-40","text-center"],["size","sm",3,"click"],["tabindex","0",3,"click"],["id","loader"],["align","center","className","mt-40"],[1,"text-center","py-5","mb-30"],["size","large"],["label","What is your preferred seat time?","name","list-builder_length","formControlName","duration",3,"options","fieldsetClasses"],["label","Include only OpenSesame Plus courses","formControlName","usePlus","name","plus",3,"wrapperClasses"],[1,"form-wrapper","my-40"],["for","publishers",1,"pt-5"],["formControlName","publishers","id","publishers","inputId","publishers","placeholder","Choose","scrollHeight","180px",3,"disabled","maxSelectedLabels","options","showToggleAll"]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e.NdJ("onHide",function(){return r.closeModalActions()}),e._uU(2,"\n "),e.TgZ(3,"app-tab",2),e._uU(4,"\n "),e.TgZ(5,"app-company-typeahead",3,4),e.NdJ("formReady",function(l){return r.formInitialized("companyForm",l)}),e.qZA(),e._uU(7,"\n "),e._UZ(8,"app-form-textarea",5),e._uU(9,"\n "),e.TgZ(10,"app-form-input-wrapper",6),e._uU(11,"\n "),e._UZ(12,"p-dropdown",7),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.YNc(15,Po,1,3,"app-form-fancy-radio-group",8),e._uU(16,"\n "),e.YNc(17,Lo,1,2,"app-form-checkbox",9),e._uU(18,"\n "),e.TgZ(19,"div",10),e._uU(20,"\n "),e.TgZ(21,"og-typography",11),e._uU(22,"\n "),e.TgZ(23,"og-button",12),e.NdJ("click",function(){return r.submit()}),e._uU(24,"\n Create your list\n "),e.qZA(),e._uU(25,"\n "),e.TgZ(26,"og-button",13),e.NdJ("click",function(){return r.hide()}),e._uU(27,"Cancel"),e.qZA(),e._uU(28,"\n "),e.qZA(),e._uU(29,"\n "),e.TgZ(30,"og-typography",11),e._uU(31,"\n "),e.TgZ(32,"a",14),e.NdJ("click",function(){return r.showAdvancedOptions()}),e._uU(33,"\n advanced options\n "),e.TgZ(34,"i",15),e._uU(35,"chevron_right"),e.qZA(),e._uU(36,"\n "),e.qZA(),e._uU(37,"\n "),e.qZA(),e._uU(38,"\n "),e.qZA(),e._uU(39,"\n "),e.qZA(),e._uU(40,"\n "),e.TgZ(41,"app-tab",16),e._uU(42,"\n "),e.YNc(43,So,7,4,"div",17),e._uU(44,"\n "),e.TgZ(45,"div",18),e._uU(46,"\n "),e.TgZ(47,"label",19),e._uU(48,"Course Features"),e.qZA(),e._uU(49,"\n "),e._UZ(50,"p-multiSelect",20),e._uU(51,"\n "),e.qZA(),e._uU(52,"\n "),e.TgZ(53,"div",21),e._uU(54,"\n "),e.TgZ(55,"og-button",12),e.NdJ("click",function(){return r.submit()}),e._uU(56,"\n Create your list\n "),e.qZA(),e._uU(57,"\n "),e.TgZ(58,"og-button",22),e.NdJ("click",function(){return r.hide()}),e._uU(59,"Cancel"),e.qZA(),e._uU(60,"\n "),e.TgZ(61,"og-typography",11),e._uU(62,"\n "),e.TgZ(63,"a",23),e.NdJ("click",function(){return r.setPage("firstPage")}),e._uU(64,"\n "),e.TgZ(65,"i",15),e._uU(66,"chevron_left"),e.qZA(),e._uU(67,"\n edit your topics\n "),e.qZA(),e._uU(68,"\n "),e.qZA(),e._uU(69,"\n "),e.qZA(),e._uU(70,"\n "),e.qZA(),e._uU(71,"\n "),e.TgZ(72,"app-tab",24),e._uU(73,"\n "),e.TgZ(74,"og-typography",25),e._uU(75,"Generating your personalized recommendations..."),e.qZA(),e._uU(76,"\n "),e.TgZ(77,"div",26),e._uU(78,"\n "),e._UZ(79,"app-loading-indicator",27),e._uU(80,"\n "),e.qZA(),e._uU(81,"\n "),e.qZA(),e._uU(82,"\n"),e.qZA(),e._uU(83,"\n")),2&s&&(e.Q6J("subHeadline",r.subHeader)("formGroup",r.listBuilderForm)("tabNav",!1)("updatedHeader",!0),e.xp6(5),e.Q6J("wrapperClasses",e.DdM(23,Ao)),e.xp6(3),e.Q6J("wrapperClasses",e.DdM(24,St))("expands",!0),e.xp6(2),e.Q6J("wrapperClasses",e.DdM(25,Oo)),e.xp6(2),e.Akn(e.DdM(26,Io)),e.Q6J("options",r.langOptions),e.xp6(3),e.Q6J("appExcludeIf","searchBy:duration"),e.xp6(2),e.Q6J("appExcludeIf","searchBy:catalog type"),e.xp6(6),e.Q6J("disabled",r.formPage("firstPage").invalid),e.xp6(9),e.Q6J("ngClass",e.VKq(27,ko,r.formPage("firstPage").invalid)),e.xp6(11),e.Q6J("appExcludeIf","searchBy:publisher"),e.xp6(7),e.Q6J("disabled",0===r.filterOptions.features.length)("filter",!1)("maxSelectedLabels",3)("options",r.filterOptions.features)("showHeader",!1)("showToggleAll",!1),e.xp6(
15),e.Q6J("disabled",r.formPage("firstPage").invalid))},dependencies:[M.r0,_.mk,Ae.Lt,Lt.d,yo.a,To.s,Pt.j,Ct.NU,u.JJ,u.JL,u.sg,u.u,u.x0,W.Q,Ke.H,Uo.i,J.z,N.lo,Oe],styles:["[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}a.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.mb-50[_ngcontent-%COMP%]{margin-bottom:50px!important}"]}),i})();var y=c(4331),X=c(4845);class Fo extends X.s{constructor(){super(...arguments),this.type=y.r.Delete,this.title="Delete"}shouldInclude(){return!0}}class Ot{constructor(o){this.changes=new Ve.xQ,this.lists=o}get lists(){return this._lists}set lists(o){this._lists=o}removeList(o){const n=this.lists.filter(t=>t.id!==o.id);n.length!==this.lists.length&&(this.lists=n,this.changes.next())}addList(o){void 0!==this.lists.find(t=>t.id===o.id)||(this._lists=[o,...this.lists],this.changes.next())}updateList(o,n){const t=this.lists.findIndex(s=>s.id===o);-1!==t&&(this._lists[t]=n,this.changes.next())}getLists(o=g.co.all){return this.lists.filter(n=>!!(o===g.co.shared&&n.shared&&n.shared.toEmails&&n.canEdit||o===g.co.received&&n.type===g.co.received&&!n.canEdit||o===g.co.subscription&&n.type===g.co.subscription)||o===g.co.all||n.type===o)}}let $e=(()=>{const o=class{constructor(t){this.listService=t,this.loaded=!1,this.listStore=new Ot([])}loadLists(t){var s=this;return(0,d.Z)(function*(){if(!s.loaded){try{s.listStore.lists=yield s.listService.getAllLists(t)}catch(r){console.log(r)}s.loaded=!0}})()}removeList(t){this.listStore.removeList(t)}addList(t){this.listStore.addList(t)}updateList(t,s){this.listStore.updateList(t,s)}getLists(t){return this.listStore.getLists(t)}shouldReloadLists(){this.loaded=!1}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(S.XN))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})(),It=(()=>{const o=class extends $e{constructor(t){super(t),this.curatedListsStore=new Ot([]),this.isLoadingCuratedLists=!1,this.curatedListsStore.changes.subscribe(()=>{this.curatedListsStore.lists=this.sortCuratedLists(this.curatedListsStore.lists)})}loadLists(t){var s=()=>super.loadLists,r=this;return(0,d.Z)(function*(){!r.isLoadingCuratedLists&&!r.loaded&&(r.isLoadingCuratedLists=!0,r.loadSortedCuratedLists().then(a=>{r.curatedListsStore.lists.push(...a)}).catch(console.error).finally(()=>{r.isLoadingCuratedLists=!1}),yield s().call(r,t))})()}getLists(t){return t===g.co.curated?this.curatedListsStore.lists:super.getLists(t)}addList(t){super.addList(t),t.isPublic&&this.curatedListsStore.addList(t)}removeList(t){super.removeList(t),this.curatedListsStore.removeList(t)}updateList(t,s){super.updateList(t,s),this.curatedListsStore.updateList(t,s)}loadSortedCuratedLists(){var t=this;return(0,d.Z)(function*(){const s=yield t.listService.getCuratedLists();return t.sortCuratedLists(s)})()}sortCuratedLists(t){return t.sort((s,r)=>{const a=s.title.toLowerCase(),l=r.title.toLowerCase();return a<l?-1:a>l?1:0})}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(S.XN))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})(),ee=(()=>{const o=class{constructor(t,s,r){this.myListsService=t,this.curatedListsService=s,this.session=r}getService(){return this.session.permissions.canSeeCuratedListsTab?this.curatedListsService:this.myListsService}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG($e),e.LFG(It),e.LFG(O.V))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})();const Go=["modal"];let kt=(()=>{const o=class{constructor(t,s){this.listService=t,this.notificationService=s,this.onSubmit=new e.vpe,this.lists=[],this.deleting=!1}deleteLists(){this.deleting=!0;const t=[],s=[],r=[];this.lists.forEach(a=>{t.push(this.listService.removeList(a.id).then(()=>s.push(a),l=>r.push({list:a,response:l})))}),Promise.all(t).then(()=>{if(r.forEach(a=>this.notificationService.publishNotification(x.j.listDeleteFailureText(a),"error")),s.length>0){const a=x.j.listDeleteSuccessText(s.length);this.notificationService.publishNotification(a,"success")}this.deleting=!1,this.onSubmit.emit({deletedLists:s}),this.hide()})}show(t){this.lists=t.lists,this.modal.show()}hide(){this.modal.hide()}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(S.XN),e.Y36(w.g))}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-delete-list-modal"]],viewQuery:function(s,r){if(1&s&&e.Gf(Go,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{onSubmit:"onSubmit"},decls:10,vars:3,consts:[["googleIconImageName","delete_forever",3,"headline","subHeadline"],["modal",""],["size","sm",3,"click"],["color","primary","variant","contained","size","sm",3,"click"]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e._uU(2,"\n "),e.TgZ(3,"og-button",2),e.NdJ("click",function(){return r.hide()}),e._uU(4,"Cancel"),e.qZA(),e._uU(5,"\n "),e.TgZ(6,"og-button",3),e.NdJ("click",function(){return r.deleteLists()}),e._uU(7),e.qZA(),e._uU(8,"\n"),e.qZA(),e._uU(9,"\n")),2&s&&(e.MGl("headline","Delete List",1===r.lists.length?"":"s","")("subHeadline","Are you sure you want to delete ",1===r.lists.length?"this list?":"the selected <span class='notranslate'>"+r.lists.length+"</span> lists?",""),e.xp6(7),e.hij("\n Delete List",1===r.lists.length?"":"s","\n "))},dependencies:[M.r0,J.z]}),i})();var Jo=c(4889),z=c(6405),We=c(100),Ne=c(2509),Xe=c(4776),et=c(9648);const Qo=["table"];function Eo(i,o){if(1&i&&e._UZ(0,"app-selection-options",9),2&i){const n=e.oxw();e.Q6J("actions",n.groupActions)("selectionCount",n.selectedItems.length)}}function Do(i,o){1&i&&(e._uU(0,"\n "),e.TgZ(1,"tr",16),e._uU(2,"\n "),e.TgZ(3,"td",17),e._uU(4,"\n "),e.TgZ(5,"og-typography"),e._uU(6,"No lists found"),e.qZA(),e._uU(7,"\n "),e.qZA(),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "))}function Bo(i,o){1&i&&(e._uU(0,"\n "),e.TgZ(1,"tr"),e._uU(2,"\n "),e.TgZ(3,"th",18),e._uU(4,"\n "),e._UZ(5,"p-tableHeaderCheckbox"),e._uU(6,"\n "),e.qZA(),e._uU(7,"\n "),e.TgZ(8,"th",19),e._uU(9,"\n "),e.TgZ(10,"span",20),e._uU(11,"Title"),e.qZA(),e._uU(12,"\n "),e._UZ(13,"p-sortIcon",21),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.TgZ(16,"th",22),e._uU(17,"\n "),e.TgZ(18,"span",20),e._uU(19,"List Creator"),e.qZA(),e._uU(20,"\n "),e._UZ(21,"p-sortIcon",21),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.TgZ(24,"th",23),e._uU(25,"\n "),e.TgZ(26,"span",20),e._uU(27,"Last Updated"),e.qZA(),e._uU(28,"\n "),e._UZ(29,"p-sortIcon",21),e._uU(30,"\n "),e.qZA(),e._uU(31,"\n "),e.TgZ(32,"th",23),e._uU(33,"\n "),e.TgZ(34,"span",20),e._uU(35,"Courses"),e.qZA(),e._uU(36,"\n "),e._UZ(37,"p-sortIcon",21),e._uU(38,"\n "),e.qZA(),e._uU(39,"\n "),e.qZA(),e._uU(40,"\n ")),2&i&&(e.xp6(8),e.Q6J("pSortableColumn","title"),e.xp6(5),e.Q6J("field","title"),e.xp6(3),e.Q6J("pSortableColumn","createdByUser.fullName"),e.xp6(5),e.Q6J("field","createdByUser.fullName"),e.xp6(3),e.Q6J("pSortableColumn","dateChanged"),e.xp6(5),e.Q6J("field","dateChanged"),e.xp6(3),e.Q6J("pSortableColumn","courseCount"),e.xp6(5),e.Q6J("field","courseCount"))}function Yo(i,o){1&i&&(e.TgZ(0,"span",35),e._uU(1,"\n "),e.TgZ(2,"i",36),e._uU(3,"group"),e.qZA(),e._uU(4,"\n "),e.qZA())}function Ho(i,o){1&i&&(e.TgZ(0,"span",37),e._uU(1,"\n "),e.TgZ(2,"i",38),e._uU(3,"public"),e.qZA(),e._uU(4,"\n "),e.qZA())}function Ro(i,o){1&i&&(e.TgZ(0,"span",39),e._uU(1,"\n "),e.TgZ(2,"i",40),e._uU(3,"search"),e.qZA(),e._uU(4,"\n "),e.qZA())}const zo=function(i){return["notranslate",i]},Vo=function(i){return["/lists","detail",i]};function jo(i,o){if(1&i&&(e._uU(0,"\n "),e.TgZ(1,"tr",24),e._uU(2,"\n "),e.TgZ(3,"td"),e._uU(4,"\n "),e._UZ(5,"p-tableCheckbox",25),e._uU(6,"\n "),e.qZA(),e._uU(7,"\n "),e.TgZ(8,"td",26),e._uU(9,"\n "),e.TgZ(10,"span",20),e._uU(11,"Title"),e.qZA(),e._uU(12,"\n "),e.TgZ(13,"div",27),e._uU(14,"\n "),e.TgZ(15,"a",28),e._uU(16),e.qZA(),e._uU(17,"\n "),e.YNc(18,Yo,5,0,"span",29),e._uU(19,"\n "),e.YNc(20,Ho,5,0,"span",30),e._uU(21,"\n "),e.YNc(22,Ro,5,0,"span",31),e._uU(23,"\n "),e.qZA(),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n "),e.TgZ(26,"td",32),e._uU(27,"\n "),e.TgZ(28,"span",20),e._uU(29,"List Creator"),e.qZA(),e._uU(30),e.qZA(),e._uU(31,"\n "),e.TgZ(32,"td",33),e._uU(33,"\n "),e.TgZ(34,"span",20),e._uU(35,"L
1ast Updated"),e.qZA(),e._uU(36,"\n "),e.TgZ(37,"div",34),e._uU(38),e.ALo(39,"date"),e.qZA(),e._uU(40,"\n "),e.qZA(),e._uU(41,"\n "),e.TgZ(42,"td",33),e._uU(43,"\n "),e.TgZ(44,"span",20),e._uU(45,"Courses"),e.qZA(),e._uU(46),e.qZA(),e._uU(47,"\n "),e.qZA(),e._uU(48,"\n ")),2&i){const n=o.$implicit,t=o.rowIndex,s=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.VKq(14,zo,t%2==0?"even":"odd")),e.xp6(4),e.Q6J("value",n),e.xp6(10),e.Q6J("routerLink",e.VKq(16,Vo,n.id))("queryParamsHandling","preserve"),e.xp6(1),e.hij("\n ",n.title,"\n "),e.xp6(2),e.Q6J("ngIf",s.isSharedList(n)),e.xp6(2),e.Q6J("ngIf",n.isPublic),e.xp6(2),e.Q6J("ngIf",n.isSearchable),e.xp6(8),e.hij("\n ",n.createdByUser.fullName,"\n "),e.xp6(8),e.Oqu(e.xi3(39,11,n.dateChanged,"d MMMM y")),e.xp6(8),e.hij("\n ",n.courseCount,"\n ")}}const Ko=function(){return["title","listCreator","dateChanged","courseCount"]};function $o(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",10),e._uU(1,"\n "),e.TgZ(2,"p-table",11,12),e.NdJ("selectionChange",function(s){e.CHM(n);const r=e.oxw();return e.KtG(r.selectedItems=s)}),e._uU(4,"\n "),e.YNc(5,Do,10,0,"ng-template",13),e._uU(6,"\n "),e.YNc(7,Bo,41,8,"ng-template",14),e._uU(8,"\n "),e.YNc(9,jo,49,18,"ng-template",15),e._uU(10,"\n "),e.qZA(),e._uU(11,"\n "),e.qZA()}if(2&i){const n=e.oxw();e.xp6(2),e.Q6J("value",n.currentLists)("paginator",!0)("alwaysShowPaginator",!1)("rows",25)("selection",n.selectedItems)("globalFilterFields",e.DdM(8,Ko))("responsive",!0)("styleClass","table-selectable")}}function Wo(i,o){1&i&&(e.ynx(0),e._uU(1,"\n "),e._UZ(2,"app-loading-indicator",43),e._uU(3,"\n "),e.BQk())}function Xo(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-typography"),e._uU(1,"\n "),e.TgZ(2,"og-button",45),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(3);return e.KtG(s.initializeCreateListModal())}),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()}if(2&i){const n=e.oxw(3);e.xp6(3),e.Oqu(n.emptyListButtonText)}}function ei(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-typography",44),e._uU(3),e.qZA(),e._uU(4,"\n "),e.YNc(5,Xo,5,1,"og-typography",42),e._uU(6,"\n "),e.BQk()),2&i){const n=e.oxw(2);e.xp6(3),e.Oqu(n.emptyListText),e.xp6(2),e.Q6J("ngIf",n.emptyListButtonText)}}const ti=function(i){return{"table-loading":i}};function ni(i,o){if(1&i&&(e.TgZ(0,"div",41),e._uU(1,"\n "),e.YNc(2,Wo,4,0,"ng-container",42),e._uU(3,"\n "),e.YNc(4,ei,7,2,"ng-container",42),e._uU(5,"\n "),e.qZA()),2&i){const n=e.oxw();e.Q6J("ngClass",e.VKq(3,ti,n.isLoading)),e.xp6(2),e.Q6J("ngIf",n.isLoading),e.xp6(2),e.Q6J("ngIf",!n.isLoading)}}const oi=function(i,o){return{hidden:i,focused:o}},ii=function(){return{standalone:!0}};let me=(()=>{const o=class{constructor(t,s,r,a,l){this.route=t,this.activeSession=s,this.myListsFactory=r,this.router=a,this.modalHostService=l,this.currentLists=[],this.selectedItems=[],this.isLoading=!1,this.searchFocused=!1,this.listSearchValue="",this.CurateWithAiButtonComponent=Jo.R,this.myLists=this.myListsFactory.getService()}ngOnInit(){var t=this;return(0,d.Z)(function*(){t.actionNavLinks=t.actionNavLinksData,t.tertiaryNavLinks=t.tertiaryNavLinksData,t.groupActions=t.groupActionsData,t.isLoading=!0,yield t.myLists.loadLists(t.route.snapshot.queryParams.uid).then(()=>{t.refreshLists()}).catch(r=>{console.error(r),t.router.navigate(["/user","login"])}).finally(()=>{t.isLoading=!1}),"true"===t.route.snapshot.queryParams.openNewSmartListModal&&(t.initializeCreateSmartListModal(),t.router.navigate([],{queryParams:{openNewSmartListModal:null},queryParamsHandling:"merge",skipLocationChange:!0}))})()}refreshLists(){this.currentLists=this.myLists.getLists(this.listsType)}get listsType(){return this.route.snapshot.data.type}get emptyListButtonText(){return this.route.snapshot.data.emptyButton}get emptyListText(){return this.route.snapshot.data.emptyText}isSharedList(t){return t.type===g.co.shared}canDeleteListsFromView(){return this.listsType!==g.co.curated}addListToListsData(t){this.myLists.addList(t),this.refreshLists()}haveListItems(){return this.currentLists.length>0}onListsDeleted(t){t.forEach(s=>this.myLists.removeList(s)),this.refreshLists(),this.deselectItems()}deselectItems(){this.selectedItems=[]}selectAll(){this.selectedItems=this.currentLists}get groupActionsData(){return this.canDeleteListsFromView()?[{linkClass:"text-danger",title:"Delete",callBack:()=>{this.modalHostService.showModal(kt,{lists:this.selectedItems},({deletedLists:t})=>this.onListsDeleted(t))}}]:[{linkClass:"info-message",title:"No actions available"}]}get tertiaryNavLinksData(){const t=[{title:"All",route:["/lists"]},{title:"Created",route:["/lists","created"]}
1,{title:"Received",route:["/lists","received"]},{title:"Shared",route:["/lists","shared"]},{title:"Following",route:["/lists","following"]}];return this.activeSession.permissions.canSeeCuratedListsTab&&t.push({title:"Curated Lists",route:["/lists","curated"]}),t}get actionNavLinksData(){const t=[{title:"New List",callBack:()=>this.initializeCreateListModal()}];return this.activeSession.permissions.canCreateSmartList&&t.unshift({title:"New Smart List",callBack:()=>this.initializeCreateSmartListModal()}),t}initializeCreateListModal(){this.modalHostService.showModal(lo,{},({list:t})=>this.addListToListsData(t))}initializeCreateSmartListModal(){this.modalHostService.showModal(qo,{},({list:t})=>{this.addListToListsData(t),this.router.navigate(["/lists","detail",t.id])})}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(f.gz),e.Y36(O.V),e.Y36(ee),e.Y36(f.F0),e.Y36(z.z))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-all-lists"]],viewQuery:function(s,r){if(1&s&&e.Gf(Qo,5),2&s){let a;e.iGM(a=e.CRH())&&(r.pTable=a.first)}},decls:25,vars:13,consts:[["header","My Lists",3,"customNavComponent","actionNavLinks","tertiaryNavLinks"],["left",""],[3,"actions","selectionCount",4,"ngIf"],["right",""],[1,"table-search-container",3,"ngClass"],["placeholder","Search this list",3,"ngModel","ngModelOptions","input","onFocus","onBlur","clearSearch","ngModelChange"],[1,"pt-10","pb-40"],["class","centerbox",4,"ngIf"],["class","centerbox bg-light-primary py-60 text-center",3,"ngClass",4,"ngIf"],[3,"actions","selectionCount"],[1,"centerbox"],["dataKey","id","selectionMode","multiple",1,"table-default",3,"value","paginator","alwaysShowPaginator","rows","selection","globalFilterFields","responsive","styleClass","selectionChange"],["table",""],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],[1,"empty-set"],["colspan","5"],[1,"ui-selection-column"],[1,"title-column","text-left","table-link",3,"pSortableColumn"],[1,"ui-column-title"],[3,"field"],[1,"text-left",3,"pSortableColumn"],[1,"text-right",3,"pSortableColumn"],[3,"ngClass"],[3,"value"],[1,"title-column","text-left","table-link"],[1,"course"],[1,"text-color-primary--hover",3,"routerLink","queryParamsHandling"],["popper","This list is shared","popperTrigger","hover","popperPlacement","bottom","class","d-inline-block pl-5",4,"ngIf"],["popper","This list is public","popperTrigger","hover","popperPlacement","bottom","class","d-inline-block pl-5",4,"ngIf"],["popper","This list is searchable","popperTrigger","hover","popperPlacement","bottom","class","d-inline-block pl-5",4,"ngIf"],[1,"text-left"],[1,"text-right"],[1,"date"],["popper","This list is shared","popperTrigger","hover","popperPlacement","bottom",1,"d-inline-block","pl-5"],[1,"material-icons","text-color-primary","shared-list-icon",2,"top","-1px"],["popper","This list is public","popperTrigger","hover","popperPlacement","bottom",1,"d-inline-block","pl-5"],[1,"material-icons","text-color-primary","public-list-icon",2,"top","-1px"],["popper","This list is searchable","popperTrigger","hover","popperPlacement","bottom",1,"d-inline-block","pl-5"],[1,"material-icons","text-color-primary","searchable-list-icon",2,"top","-1px"],[1,"centerbox","bg-light-primary","py-60","text-center",3,"ngClass"],[4,"ngIf"],["size","large"],["className","ui-table-empty-message","color","textSecondary","paragraph","true"],["color","primary","variant","contained",3,"click"]],template:function(s,r){1&s&&(e._UZ(0,"app-secondary-header",0),e._uU(1,"\n"),e.TgZ(2,"app-action-bar"),e._uU(3,"\n "),e.ynx(4,1),e._uU(5,"\n "),e.YNc(6,Eo,1,2,"app-selection-options",2),e._uU(7,"\n "),e.BQk(),e._uU(8,"\n "),e.ynx(9,3),e._uU(10,"\n "),e.TgZ(11,"div",4),e._uU(12,"\n "),e.TgZ(13,"app-form-search",5),e.NdJ("input",function(l){return r.pTable.filterGlobal(l.target.value,"contains")})("onFocus",function(){return r.searchFocused=!0})("onBlur",function(){return r.searchFocused=!1})("clearSearch",function(){return r.pTable.filterGlobal("","contains")})("ngModelChange",function(l){return r.listSearchValue=l}),e.qZA(),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.BQk(),e._uU(16,"\n"),e.qZA(),e._uU(17,"\n"),e.TgZ(18,"div",6),e._uU(19,"\n "),e.YNc(20,$o,12,9,"div",7),e._uU(21,"\n "),e.YNc(22,ni,6,5,"div",8),e._uU(23,"\n"),e.qZA(),e._uU(24,"\n")),2&s&&(e.Q6J("customNavComponent",r.CurateWithAiButtonComponent)("actionNavLinks",r.actionNavLinks)("tertiaryNavLinks",r.tertiaryNavLinks),e.xp6(6),e.Q6J("ngIf",r.haveListItems()),e.xp6(
15),e.Q6J("ngClass",e.WLB(9,oi,!r.haveListItems(),r.searchFocused)),e.xp6(2),e.Q6J("ngModel",r.listSearchValue)("ngModelOptions",e.DdM(12,ii)),e.xp6(7),e.Q6J("ngIf",r.haveListItems()),e.xp6(2),e.Q6J("ngIf",!r.haveListItems()))},dependencies:[D.jx,M.r0,_.mk,_.O5,f.rH,We.F,de.Ml,u.JJ,Ne.E,u.On,W.Q,Xe.X,A.iA,A.lQ,A.fz,A.UA,A.Mo,et.K,N.lo,_.uU],data:{animation:[K.y0]}}),i})(),si=(()=>{const o=class{constructor(){}ngOnInit(){}};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-list-layout"]],decls:2,vars:0,template:function(s,r){1&s&&(e._UZ(0,"router-outlet"),e._uU(1,"\n"))},dependencies:[f.lC]}),i})();var ri=c(7221);let Nt=(()=>{const o=class{constructor(t,s,r){this.listService=t,this.router=s,this.session=r}resolve(t,s){return this.listService.getList(t.params.id).pipe((0,ri.K)((r,a)=>{throw console.error(r),this.router.navigate(this.session&&this.session.session.isLoggedIn||!r.status||403!==r.status?["/404"]:["/user/login"]),a}))}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(S.XN),e.LFG(f.F0),e.LFG(O.V))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})();var Z=c(3585);const tt={includes:q.includes};var P=(()=>{return(i=P||(P={})).Viewer="Viewer",i.Editor="Editor",i.Admin="Admin",i.Subscriber="Subscriber",P;var i})();const ai=new Map([[P.Viewer,"List Viewer"],[P.Editor,"List Editor"],[P.Admin,"List Admin"]]);class te{static canEditRole(o,n){switch(n){case P.Viewer:return tt.includes(o,Z.v.AddCollaborator);case P.Editor:return tt.includes(o,Z.v.DelegateEditor);case P.Admin:return tt.includes(o,Z.v.DelegateAdmin);default:return!1}}roleOptions(o){const n=[];return Object.keys(P).forEach(t=>{te.canEditRole(o,t)&&n.push({value:t,label:te.getRoleTitle(t)})}),n}static getRoleTitle(o){return ai.get(o)??o}static getRoleIconCode(o){switch(o){case P.Viewer:return"";case P.Editor:return"";case P.Admin:return"";default:return""}}}var B=c(7087),V=(()=>{return(i=V||(V={})).Collaborators="collaborators",i.Followers="followers",V;var i})(),li=c(810);let he=(()=>{const o=class{constructor(t){this.requester=t}getCollaborators(t){var s=this;return(0,d.Z)(function*(){const r=`/os_ajax/angular/lists/${t}/collaborators`;return yield s.requester.get(r)})()}getSubscribers(t){var s=this;return(0,d.Z)(function*(){const r=`/os_ajax/angular/lists/${t}/subscribers`;return yield s.requester.get(r)})()}getCollaborator(t,s){return this.requester.get(`/os_ajax/angular/lists/${t}/collaborators/${s}`)}addCollaborators(t,s){return this.requester.post(`/os_ajax/angular/lists/${t}/collaborators`,{users:s})}removeCollaborator(t,s){var r=this;return(0,d.Z)(function*(){const a=`/os_ajax/angular/lists/${t}/collaborators/${s}`;yield r.requester.delete(a)})()}updateCollaborator(t,s,r){return this.requester.put(`/os_ajax/angular/lists/${t}/collaborators/${s}`,{role:r})}getPermissions(t){return this.requester.get(`/os_ajax/angular/lists/${t}/permissions`)}getPendingCollaborators(t){var s=this;return(0,d.Z)(function*(){return s.requester.get(`/os_ajax/angular/lists/${t}/collaborators:pending`)})()}getPendingCollaborator(t,s){return this.requester.get(`/os_ajax/angular/lists/${t}/collaborators:pending/${s}`)}removePendingCollaborator(t,s){var r=this;return(0,d.Z)(function*(){const a=`/os_ajax/angular/lists/${t}/collaborators:pending/${s}`;yield r.requester.delete(a)})()}updatePendingCollaborator(t,s,r){return this.requester.put(`/os_ajax/angular/lists/${t}/collaborators:pending/${s}`,{role:r})}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(li.z))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})();const qt={unionBy:q.unionBy};let Ft=(()=>{const o=class{constructor(t,s){this.collaboratorsService=t,this.router=s,this._collaborators=[],this._pendingCollaborators=[]}loadCollaboratorsForView(t){var s=this;return(0,d.Z)(function*(){yield s.loadCollaborators(t),yield s.loadPendingCollaborators(t)})()}get collaboratorsForView(){return[...this.collaborators,...this.pendingCollaborators]}onRemoveCollaborators(t){this.removeCollaborators(t),this.removePendingCollaborators(t)}onShare(t){this.addCollaborators(t),this.addPendingCollaborators(t)}saveRole(t,s,r){var a=this;return(0,d.Z)(function*(){a.isPendingCollaborator(s)?yield a.updatePendingCollaborator(t,s.user.id,r):yield a.updateCollaborator(t,s.user.id,r)})()}loadCollaborators(t){var s=this;return(0,d.Z)(function*(){try{s._collaborators=yield s.collaboratorsService.getCollaborators(t)}catch{yield s.router.navigate(["/404"])}})()}loadPendingCollaborators(t){var s=this;return(0,d.Z)(function*(){try{s._pendingCollaborators=yield s.collaboratorsService.getPendingCollaborators(t)}catch{yield s.router.navigate(["/404"])}})()}get collaborators(){return this._collaborators}get pendingCollaborators(){return this._pendingCollaborators}isPendingCollaborator(t){return!t.user.guid}addCollaborators(t){const s=t.filter(a=>!this.isPendingCollaborator(a));this._collaborators=qt.unionBy(this.collaborators,s,"user.id")}addPendingCollaborators(t){const s=t.filter(a=>this.isPendingCollaborator(a));this._pendingCollaborators=qt.unionBy(this.pendingCollaborators,s,"user.id")}
1removeCollaborators(t){const s=t.filter(r=>!this.isPendingCollaborator(r));this._collaborators=this.collaborators.filter(r=>!s.find(a=>a.user.id===r.user.id))}removePendingCollaborators(t){const s=t.filter(r=>this.isPendingCollaborator(r));this._pendingCollaborators=this.pendingCollaborators.filter(r=>!s.find(a=>a.user.id===r.user.id))}updateCollaborator(t,s,r){var a=this;return(0,d.Z)(function*(){const l=(yield a.collaboratorsService.updateCollaborator(t,s,r))[0];a._collaborators=a.collaborators.map(p=>l.user.id===p.user.id?l:p)})()}updatePendingCollaborator(t,s,r){var a=this;return(0,d.Z)(function*(){const l=(yield a.collaboratorsService.updatePendingCollaborator(t,s,r))[0];a._pendingCollaborators=a.pendingCollaborators.map(p=>l.user.id===p.user.id?l:p)})()}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(he),e.LFG(f.F0))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})(),Gt=(()=>{const o=class{constructor(t,s){this.collaboratorsService=t,this.router=s,this._subscribedCollaborators=[]}loadCollaboratorsForView(t){var s=this;return(0,d.Z)(function*(){yield s.loadSubscribers(t)})()}get collaboratorsForView(){return this.collaborators}onRemoveCollaborators(t){}onShare(t){}saveRole(t,s,r){return(0,d.Z)(function*(){})()}loadSubscribers(t){var s=this;return(0,d.Z)(function*(){try{s._subscribedCollaborators=yield s.collaboratorsService.getSubscribers(t)}catch{yield s.router.navigate(["/404"])}})()}get collaborators(){return this._subscribedCollaborators}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(he),e.LFG(f.F0))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})();var fe=(()=>{return(i=fe||(fe={})).TrackListGroupCoursesRequested="list_group_courses_requested",i.AddCollaborators="add_collaborators",fe;var i})(),Ce=c(2198);const ci=["modal"];let ui=(()=>{const o=class{constructor(t,s){this.collaboratorsService=t,this.notificationService=s,this.onSubmit=new e.vpe,this.collaborators=[],this.selectedCollaborators=[],this.removing=!1}removeCollaborators(){var t=this;return(0,d.Z)(function*(){t.removing=!0;const s=[],r=[],a=[];if(t.selectedCollaborators.forEach(l=>{l.role!==P.Admin||1!==t.collaboratorAdmins.length||t.isPendingCollaboarator(l)?t.isPendingCollaboarator(l)?s.push(t.collaboratorsService.removePendingCollaborator(t.list.id,l.user.id).then(()=>r.push(l),p=>a.push({collaborator:l,response:p}))):s.push(t.collaboratorsService.removeCollaborator(t.list.id,l.user.id).then(()=>r.push(l),p=>a.push({collaborator:l,response:p}))):t.notificationService.publishNotification(x.j.removeOnlyAdminError(l.user.fullName),"error")}),yield Promise.all(s),a.forEach(l=>t.notificationService.publishNotification(x.j.removeCollaboratorsFailureText(l),"error")),r.length>0){const l=x.j.removeCollaboratorsSuccessText(r.length);t.notificationService.publishNotification(l,"success")}t.removing=!1,t.onSubmit.emit({removedCollaborators:r}),t.hide()})()}get collaboratorAdmins(){return this.collaborators.filter(t=>t.role===P.Admin&&!this.isPendingCollaboarator(t))}isPendingCollaboarator(t){return!t.user.guid}show(t){this.collaborators=t.collaborators,this.selectedCollaborators=t.selectedCollaborators,this.list=t.list,this.modal.show()}hide(){this.modal.hide()}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(he),e.Y36(w.g))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-remove-collaborators-modal"]],viewQuery:function(s,r){if(1&s&&e.Gf(ci,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{onSubmit:"onSubmit"},decls:10,vars:3,consts:[["googleIconImageName","delete_forever",3,"headline","subHeadline"],["modal",""],["size","sm",3,"click"],["color","primary","size","sm","variant","contained",3,"click"]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e._uU(2,"\n "),e.TgZ(3,"og-button",2),e.NdJ("click",function(){return r.hide()}),e._uU(4,"Cancel"),e.qZA(),e._uU(5,"\n "),e.TgZ(6,"og-button",3),e.NdJ("click",function(){return r.removeCollaborators()}),e._uU(7),e.qZA(),e._uU(8,"\n"),e.qZA(),e._uU(9,"\n")),2&s&&(e.MGl("headline","Remove Collaborator",1===r.selectedCollaborators.length?"":"s","")("subHeadline","Are you sure you want to remove\n ",1===r.selectedCollaborators.length?"this collaborator?":"the selected <span class='notranslate'>"+r.selectedCollaborators.length+"</span> collaborators?",""),e.xp6(7),e.hij("\n Remove Collaborator",1===r.selectedCollaborators.length?"":"s","\n "))},dependencies:[M.r0,J.z]}),i})();var qe=c(3357),Ue=c(2178);const di=["editableEl"],pi=["inputEl"],_i=["dropper"],gi=function(i){return{editing:i}};function mi(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"span",4,5),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.clickHandler())})("keydown.enter",function(s){e.CHM(n);const r=e.oxw();return e.KtG(r.keydownEnter(s))}),e._uU(2,"\n "),e._UZ(3,"span"),e._uU(4,"\n"),e.qZA()}if(2&i){const n=e.oxw();e.Q6J("ngClass",e.VKq(4,gi,n.editing||n.startInEditMode))("textContent",n.defaultText),e.uIk("data-placeholder",n.placeholderText)("contenteditable",n.editing)}}function hi(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"span",8,5),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.clickHandler())}),e.qZA()}if(2&i){const n=e.oxw(2);e.Q6J("textContent",n.selectedOptionLabel)}}const fi=function(){return{width:"auto"}};function Ci(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",9),e._uU(1,"\n "),e.TgZ(2,"p-dropdown",10,11),e.NdJ("ngModelChange",function(s){e.CHM(n);const r=e.oxw(2);return e.KtG(r.defaultText=s)}),e.qZA(),e._uU(4,"\n "),e.qZA()}if(2&i){const n=e.oxw(2);e.xp6(2),e.Akn(e.DdM(4,fi)),e.Q6J("options",n.options)("ngModel",n.defaultText)}}function vi(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.YNc(2,hi,2,1,"span",6),e._uU(3,"\n "),e._UZ(4,"span"),e._uU(5,"\n "),e.YNc(6,Ci,5,5,"div",7),e._uU(7,"\n"),e.BQk()),2&i){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!n.editing),e.xp6(4),e.Q6J("ngIf",n.editing)}}const bi=function(i){return{"editing-inline":i}};function xi(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",12),e._uU(1,"\n "),e.TgZ(2,"og-button",13),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.saveBtnHandler())})("keydown.enter",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.saveEdit())}),e._uU(3,"\n "),e.TgZ(4,"og-typography",14),e._uU(5,"Save changes"),e.qZA(),e._uU(6,"\n "),e._UZ(7,"og-svg-icon",15),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.TgZ(10,"og-button",16),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.cancelBtnHandler())})("keydown.enter",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.cancelEdit())}),e._uU(11,"\n "),e.TgZ(12,"og-typography",14),e._uU(13,"Cancel"),e.qZA(),e._uU(14,"\n "),e._UZ(15,"og-svg-icon",17),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n"),e.qZA()}if(2&i){const n=e.oxw();e.Q6J("ngClass",e.VKq(1,bi,n.inlineMode))}}function yi(i,o){if(1&i&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&i){const n=e.oxw();e.Q6J("ngClass",n.iconClass),e.xp6(1),e.Oqu(n.errorMessage)}}let nt=(()=>{const o=class{constructor(t){this.changeDetector=t,this.saveChanges=new e.vpe,this.cancel=ne
1w e.vpe,this.inline=!1,this.editing=!1,this.originalText="",this.errorMessage="This field is required",this.error=!1}ngOnInit(){}ngAfterViewInit(){this.startInEditMode&&this.startEditing()}startEditing(){this.originalText=this.defaultText,this.editing=!0,"content"===this.type&&setTimeout(()=>{this.editableEl.nativeElement.focus()},0),this.changeDetector.detectChanges()}saveEdit(){const t="content"===this.type?this.editableEl.nativeElement.innerText:this.defaultText;!this.required||t.length>0?(this.editing=!1,this.originalText!==t&&(this.defaultText=t,this.saveChanges.emit(t))):(this.error=!0,setTimeout(()=>{this.error=!1},3e3))}get inlineMode(){return this.inline||"select"===this.type}get selectedOptionLabel(){return this.options?.find(t=>t.value===this.defaultText)?.label??this.defaultText??""}onEscapeKeyPress(t){t.key!==Q.nv.Esc||!this.editing||this.cancelEdit()}cancelEdit(){"content"===this.type&&(this.editableEl.nativeElement.innerText=this.originalText),this.defaultText=this.originalText,this.editing=!1,this.cancel.emit(!0)}saveBtnHandler(){this.editing?this.saveEdit():this.startEditing()}cancelBtnHandler(){this.cancelEdit()}clickHandler(){this.editing||this.startEditing()}keydownEnter(t){t.preventDefault(),this.editing?this.saveEdit():this.startEditing()}get iconClass(){return`editable-${this.type}-icon`}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-editable"]],viewQuery:function(s,r){if(1&s&&(e.Gf(di,5),e.Gf(pi,5),e.Gf(_i,5)),2&s){let a;e.iGM(a=e.CRH())&&(r.editableEl=a.first),e.iGM(a=e.CRH())&&(r.inputEl=a.first),e.iGM(a=e.CRH())&&(r.dropper=a.first)}},hostBindings:function(s,r){1&s&&e.NdJ("keydown",function(l){return r.onEscapeKeyPress(l)},!1,e.evT)},inputs:{startInEditMode:"startInEditMode",defaultText:"defaultText",placeholderText:"placeholderText",required:"required",type:"type",options:"options",inline:"inline"},outputs:{saveChanges:"saveChanges",cancel:"cancel"},decls:8,vars:4,consts:[["class","editable","tabIndex","0",3,"ngClass","textContent","click","keydown.enter",4,"ngIf"],[4,"ngIf"],["class","editing-controls",3,"ngClass",4,"ngIf"],["class","form-message error ml-5",3,"ngClass",4,"ngIf"],["tabIndex","0",1,"editable",3,"ngClass","textContent","click","keydown.enter"],["editableEl",""],["class","editable","tabIndex","0",3,"textContent","click",4,"ngIf"],["class","form-dropdown editable-select-wrapper inline-block",4,"ngIf"],["tabIndex","0",1,"editable",3,"textContent","click"],[1,"form-dropdown","editable-select-wrapper","inline-block"],["name","name",3,"options","ngModel","ngModelChange"],["dropper",""],[1,"editing-controls",3,"ngClass"],["className","icon-confirm-edit success","size","sm",3,"click","keydown.enter"],["variant","srOnly"],["color","success","fontSize","sm","icon","done","viewBox","0 0 24 16"],["className","icon-confirm-edit error","size","sm",3,"click","keydown.enter"],["color","error","fontSize","sm","icon","clear","viewBox","0 0 24 16"],[1,"form-message","error","ml-5",3,"ngClass"]],template:function(s,r){1&s&&(e.YNc(0,mi,5,6,"span",0),e._uU(1,"\n"),e.YNc(2,vi,8,2,"ng-container",1),e._uU(3,"\n"),e.YNc(4,xi,18,3,"div",2),e._uU(5,"\n"),e.YNc(6,yi,2,2,"span",3),e._uU(7,"\n")),2&s&&(e.Q6J("ngIf","content"===r.type),e.xp6(2),e.Q6J("ngIf","select"===r.type),e.xp6(2),e.Q6J("ngIf",r.editing),e.xp6(2),e.Q6J("ngIf",r.error))},dependencies:[_.mk,_.O5,Ae.Lt,u.JJ,u.On,M.r0,Ue.bk,N.lo],styles:["[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}[_nghost-%COMP%]{position:relative}.editable[_ngcontent-%COMP%]{transition:all .25s ease;display:inline-block;position:relative;margin-left:-2px;cursor:text}.editable[_ngcontent-%COMP%]:hover, .editable[_ngcontent-%COMP%]:focus{background-color:#005e9e1a}.ted[_nghost-%COMP%] .editable[_ngcontent-%COMP%]:hover, .ted [_nghost-%COMP%] .editable[_ngcontent-%COMP%]:hover, .ted[_nghost-%COMP%] .editable[_ngcontent-%COMP%]:focus, .ted [_nghost-%COMP%] .editable[_ngcontent-%COMP%]:focus{background-color:#0000001a}.editable[_ngcontent-%COMP%]:empty:before{content:attr(data-placeholder);font-style:italic;display:block}.editable.editing[_ngcontent-%COMP%]{border-color:#005e9e80;box-shadow:0 0 4px #005e9e66;background-color:#fff;color:#555}.ted[_nghost-%COMP%] .editable.editing[_ngcontent-%COMP%], .ted [_nghost-%COMP%] .editable.editing[_ngcontent-%COMP%]{border-color:#00000080}.ted[_nghost-%COMP%] .editable.editing[_ngcontent-%COMP%], .ted [_nghost-%COMP%] .editable.editing[_ngcontent-%COMP%]{box-shadow:0 0 4px #0006}.editable.editing[_ngcontent-%COMP%]:hover{background-color:#fff}.editable[_ngcontent-%COMP%]:focus{outline:none}
1.editing-controls[_ngcontent-%COMP%]{white-space:nowrap;left:0;width:100%;text-align:right;z-index:77777}.editing-controls.editing-inline[_ngcontent-%COMP%]{position:static;float:right;margin-left:.5em;width:auto}.editable-select-wrapper[_ngcontent-%COMP%]{vertical-align:baseline}.editable-select-icon[_ngcontent-%COMP%]{font-size:16px}app-button[_ngcontent-%COMP%] + app-button[_ngcontent-%COMP%]{margin-left:0}.form-message[_ngcontent-%COMP%]{position:absolute;left:100%;top:50%;margin-top:-16px;white-space:nowrap}"]}),i})();const Ti=["table"];function Ui(i,o){1&i&&(e.TgZ(0,"div",2),e._uU(1,"\n "),e.TgZ(2,"div",3),e._uU(3,"\n "),e._UZ(4,"app-loading-indicator",4),e._uU(5,"\n "),e.qZA(),e._uU(6,"\n "),e.qZA())}function wi(i,o){if(1&i&&e._UZ(0,"app-selection-options",21),2&i){const n=e.oxw(3);e.Q6J("actions",n.groupActions)("selectionCount",n.selectedItems.length)}}function Mi(i,o){if(1&i&&(e.TgZ(0,"app-action-bar"),e._uU(1,"\n "),e.ynx(2,18),e._uU(3,"\n "),e.YNc(4,wi,1,2,"app-selection-options",19),e._uU(5,"\n "),e.BQk(),e._uU(6,"\n "),e.GkF(7,20),e._uU(8,"\n "),e.qZA()),2&i){const n=e.oxw(2);e.xp6(4),e.Q6J("ngIf",n.visibleColumns.checkbox)}}function Zi(i,o){1&i&&(e._uU(0,"\n "),e.TgZ(1,"tr",22),e._uU(2,"\n "),e.TgZ(3,"td",23),e._uU(4,"\n "),e.TgZ(5,"og-typography"),e._uU(6,"No collaborators found"),e.qZA(),e._uU(7,"\n "),e.qZA(),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "))}function Pi(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1,"\n "),e._UZ(2,"p-tableHeaderCheckbox"),e._uU(3,"\n "),e.qZA())}function Li(i,o){1&i&&(e.TgZ(0,"th",31),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Name"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",33),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","user.fullName"),e.xp6(5),e.Q6J("field","user.fullName"))}function Si(i,o){1&i&&(e.TgZ(0,"th",34),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Role"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",33),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","role"),e.xp6(5),e.Q6J("field","role"))}function Ai(i,o){1&i&&(e.TgZ(0,"th",34),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Added By"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",33),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","addedBy.fullName"),e.xp6(5),e.Q6J("field","addedBy.fullName"))}function Oi(i,o){1&i&&(e.TgZ(0,"th",34),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Date Added"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",33),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","dateAdded"),e.xp6(5),e.Q6J("field","dateAdded"))}function Ii(i,o){1&i&&(e.TgZ(0,"th",34),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Last Accessed"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",33),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","dateLastAccessed"),e.xp6(5),e.Q6J("field","dateLastAccessed"))}function ki(i,o){if(1&i&&(e._uU(0,"\n "),e.TgZ(1,"tr",24),e._uU(2,"\n "),e.TgZ(3,"th",25),e._uU(4),e.qZA(),e._uU(5,"\n "),e.qZA(),e._uU(6,"\n "),e.TgZ(7,"tr",26),e._uU(8,"\n "),e.YNc(9,Pi,4,0,"th",27),e._uU(10,"\n "),e.YNc(11,Li,7,2,"th",28),e._uU(12,"\n "),e.YNc(13,Si,7,2,"th",29),e._uU(14,"\n "),e.YNc(15,Ai,7,2,"th",29),e._uU(16,"\n "),e.YNc(17,Oi,7,2,"th",29),e._uU(18,"\n "),e.YNc(19,Ii,7,2,"th",29),e._uU(20,"\n "),e.qZA(),e._uU(21,"\n ")),2&i){const n=e.oxw(2);e.xp6(4),e.Oqu(n.tableTitle),e.xp6(5),e.Q6J("ngIf",n.visibleColumns.checkbox),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.name),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.role),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.addedBy),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.dateAdded),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.dateLastAccessed)}}function Ni(i,o){if(1&i&&(e.TgZ(0,"td"),e._uU(1,"\n "),e._UZ(2,"p-tableCheckbox",35),e._uU(3,"\n "),e.qZA()),2&i){const n=e.oxw().$implicit;e.xp6(2),e.Q6J("value",n)}}function qi(i,o){1&i&&(e.TgZ(0,"span",37),e._uU(1,"\n "),e.TgZ(2,"i",38),e._uU(3,"\ue887"),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i&&e.uIk("data-tooltip","Pending: Invited user has not created account")}function Fi(i,o){if(1&i&&(e.TgZ(0,"td"),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"N
1ame"),e.qZA(),e._uU(4),e.YNc(5,qi,5,1,"span",36),e._uU(6,"\n "),e.qZA()),2&i){const n=e.oxw().$implicit,t=e.oxw(2);e.xp6(4),e.hij("\n ",n.user.fullName,"\n "),e.xp6(1),e.Q6J("ngIf",t.isPendingCollaborator(n))}}function Gi(i,o){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const n=e.oxw(2).$implicit,t=e.oxw(2);e.xp6(1),e.hij("\n ",t.getRoleTitle(n.role),"\n ")}}function Ji(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"app-editable",40),e.NdJ("saveChanges",function(s){e.CHM(n);const r=e.oxw(2).$implicit,a=e.oxw(2);return e.KtG(a.saveRole(s,r))}),e.qZA()}if(2&i){const n=e.oxw(2).$implicit,t=e.oxw(2);e.Q6J("options",t.roleOptions)("defaultText",n.role)}}function Qi(i,o){if(1&i&&(e.TgZ(0,"td"),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Role"),e.qZA(),e._uU(4,"\n "),e.YNc(5,Gi,2,1,"ng-container",5),e._uU(6,"\n "),e.YNc(7,Ji,1,2,"app-editable",39),e._uU(8,"\n "),e.qZA()),2&i){const n=e.oxw().$implicit,t=e.oxw(2);e.xp6(5),e.Q6J("ngIf",!t.canEditRole(n.role)||n.user.id==t.session.user.getUid()),e.xp6(2),e.Q6J("ngIf",t.canEditRole(n.role)&&n.user.id!==t.session.user.getUid())}}function Ei(i,o){if(1&i&&(e.TgZ(0,"td"),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Added By"),e.qZA(),e._uU(4),e.qZA()),2&i){const n=e.oxw().$implicit;e.xp6(4),e.hij("\n ",n.addedBy.fullName,"\n ")}}function Di(i,o){if(1&i&&(e.TgZ(0,"td"),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Date Added"),e.qZA(),e._uU(4),e.ALo(5,"date"),e.qZA()),2&i){const n=e.oxw().$implicit;e.xp6(4),e.hij("\n ",e.xi3(5,1,n.dateAdded,"y MMM d"),"\n ")}}function Bi(i,o){if(1&i&&(e.TgZ(0,"td"),e._uU(1,"\n "),e.TgZ(2,"span",32),e._uU(3,"Last Accessed"),e.qZA(),e._uU(4),e.ALo(5,"date"),e.qZA()),2&i){const n=e.oxw().$implicit;e.xp6(4),e.hij("\n ",e.xi3(5,1,n.dateLastAccessed,"y MMM d h:mm a"),"\n ")}}const Yi=function(i){return["notranslate",i]};function Hi(i,o){if(1&i&&(e._uU(0,"\n "),e.TgZ(1,"tr",11),e._uU(2,"\n "),e.YNc(3,Ni,4,1,"td",5),e._uU(4,"\n "),e.YNc(5,Fi,7,2,"td",5),e._uU(6,"\n "),e.YNc(7,Qi,9,2,"td",5),e._uU(8,"\n "),e.YNc(9,Ei,5,1,"td",5),e._uU(10,"\n "),e.YNc(11,Di,6,4,"td",5),e._uU(12,"\n "),e.YNc(13,Bi,6,4,"td",5),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n ")),2&i){const n=o.rowIndex,t=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.VKq(7,Yi,n%2==0?"even":"odd")),e.xp6(2),e.Q6J("ngIf",t.visibleColumns.checkbox),e.xp6(2),e.Q6J("ngIf",t.visibleColumns.name),e.xp6(2),e.Q6J("ngIf",t.visibleColumns.role),e.xp6(2),e.Q6J("ngIf",t.visibleColumns.addedBy),e.xp6(2),e.Q6J("ngIf",t.visibleColumns.dateAdded),e.xp6(2),e.Q6J("ngIf",t.visibleColumns.dateLastAccessed)}}function Ri(i,o){1&i&&(e.TgZ(0,"og-typography"),e._uU(1,"\n "),e.TgZ(2,"og-button",43),e._uU(3,"Share List"),e.qZA(),e._uU(4,"\n "),e.qZA())}function zi(i,o){if(1&i&&(e.TgZ(0,"div",41),e._uU(1,"\n "),e.TgZ(2,"og-typography",42),e._uU(3),e.qZA(),e._uU(4,"\n "),e.YNc(5,Ri,5,0,"og-typography",5),e._uU(6,"\n "),e.qZA()),2&i){const n=e.oxw(2);e.xp6(3),e.Oqu(n.emptyListMessage),e.xp6(2),e.Q6J("ngIf",n.isCollaboratorsView)}}const Vi=function(i){return["/lists","detail",i]},ji=function(i){return{hidden:i,centerbox:!0,"bg-light-primary":!0}};function Ki(i,o){if(1&i){const n=e.EpF();e._uU(0,"\n "),e.YNc(1,Mi,9,1,"app-action-bar",5),e._uU(2,"\n "),e.TgZ(3,"div",6),e._uU(4,"\n "),e.TgZ(5,"div",7),e._uU(6,"\n "),e.TgZ(7,"a",8),e._uU(8,"\n "),e.TgZ(9,"i",9),e._uU(10,"keyboard_backspace"),e.qZA(),e._uU(11,"\n "),e.TgZ(12,"span",10),e._uU(13,"Back to course list"),e.qZA(),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.TgZ(17,"div",11),e._uU(18,"\n "),e.TgZ(19,"p-table",12,13),e.NdJ("selectionChange",function(s){e.CHM(n);const r=e.oxw();return e.KtG(r.selectedItems=s)}),e._uU(21,"\n "),e.YNc(22,Zi,10,0,"ng-template",14),e._uU(23,"\n "),e.YNc(24,ki,22,7,"ng-template",15),e._uU(25,"\n "),e.YNc(26,Hi,16,9,"ng-template",16),e._uU(27,"\n "),e.qZA(),e._uU(28,"\n "),e.qZA(),e._uU(29,"\n "),e.YNc(30,zi,7,2,"div",17),e._uU(31,"\n "),e.qZA(),e._uU(32,"\n ")}if(2&i){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.visibleColumns.checkbox),e.xp6(6),e.Q6J("routerLink",e.VKq(7,Vi,n.list.id)),e.xp6(10),e.Q6J("ngClass",e.VKq(9,ji,!n.haveCollaborators())),e.xp6(2),e.Q6J("value",n.filteredCollaboratorsForView)("selection",n.selectedItems)("responsive",!0),e.xp6(11),e.Q6J("ngIf",!n.haveCollaborators())}}const $i={includes:q.includes};let Jt=(()=>{const o=class{constructor(t,s,r,a,l,p,h,m){this.route=t,this.activeRoute=s,this.analytics=r,this.activeList=a,this.activeSession=l,this.messageBus=p,this.injector=h,this.modalHostService=m,this.selectedItems=[],this.rowsLoading=!0,this.loaded=!1,this.subscriptions=[],this.myService=this.injector.get(this.view===V.Followers?Gt:Ft)}get session(){return this.activeSession.session}ngOnInit(){var t=this;return(0,d.Z)(function*(){const s=t.activeRoute.parent.snapshot.params;
1yield t.myService.loadCollaboratorsForView(s.id),t.loaded=!0,t.roles=new te,t.roleOptions=t.roles.roleOptions(t.permissions),t.groupActions=t.groupActionsData,t.subscriptions.push(t.messageBus.messages.pipe((0,Ce.h)(a=>a.type===fe.AddCollaborators)).subscribe(a=>{t.onShare(a.payload.collaborators)}));const r=t.view===V.Collaborators?"Viewed Collaborators":"Viewed Subscribers";t.visibleColumns=t.buildVisibleColumnMap(),yield t.analytics.track(r,t.list.metadata)})()}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}get list(){return this.activeList.list}canEditRole(t){return te.canEditRole(this.permissions,t)}getRoleTitle(t){return te.getRoleTitle(t)}saveRole(t,s){var r=this;return(0,d.Z)(function*(){yield r.myService.saveRole(r.list.id,s,t)})()}get filteredCollaboratorsForView(){return this.myService.collaboratorsForView}get permissions(){return this.route.parent.snapshot.data.permissions}get view(){return this.route.snapshot.data.view}get isCollaboratorsView(){return this.view===V.Collaborators}haveCollaborators(){return this.filteredCollaboratorsForView.length>0}haveCollaboratorsAndPermission(){return this.haveCollaborators()&&this.hasRemoveCollaboratorPermission&&this.isCollaboratorsView}isPendingCollaborator(t){return void 0!==t&&!t.user.guid}onShare(t){this.myService.onShare(t)}handleRemoveCollaborators(t){this.myService.onRemoveCollaborators(t),this.deselectItems()}deselectItems(){this.selectedItems=[]}selectAll(){this.selectedItems=this.filteredCollaboratorsForView}get hasRemoveCollaboratorPermission(){return $i.includes(this.permissions,Z.v.RemoveCollaborator)&&this.isCollaboratorsView}get emptyListMessage(){return this.isCollaboratorsView?"Add collaborators to your list":"Currently there are no followers to your list"}get tableTitle(){return this.isCollaboratorsView?"Collaborators":"Followers"}get groupActionsData(){return this.hasRemoveCollaboratorPermission?[{linkClass:"text-danger",title:"Remove",callBack:()=>this.modalHostService.showModal(ui,{collaborators:this.filteredCollaboratorsForView,selectedCollaborators:this.selectedItems,list:this.list},({removedCollaborators:t})=>this.handleRemoveCollaborators(t))}]:[]}buildVisibleColumnMap(){return{checkbox:this.haveCollaboratorsAndPermission(),name:!0,role:!0,addedBy:this.view===V.Collaborators,dateAdded:!0,dateLastAccessed:!0}}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(f.gz),e.Y36(f.gz),e.Y36(I.B),e.Y36(B.f),e.Y36(O.V),e.Y36(qe.Y),e.Y36(e.zs3),e.Y36(z.z))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-list-collaborators"]],viewQuery:function(s,r){if(1&s&&e.Gf(Ti,5),2&s){let a;e.iGM(a=e.CRH())&&(r.pTable=a.first)}},decls:8,vars:2,consts:[["class","py-40 bg-light-primary",4,"ngIf","ngIfElse"],["view",""],[1,"py-40","bg-light-primary"],[1,"text-center"],["size","large"],[4,"ngIf"],[1,"bg-light-primary","pt-10","pb-60"],[1,"centerbox","mb-10"],[1,"text-medium",2,"font-size","13px","font-weight","600",3,"routerLink"],[1,"material-icons"],[2,"text-decoration","underline"],[3,"ngClass"],["styleClass","table-selectable table-no-scroll table-default","dataKey","user.id","selectionMode","multiple",3,"value","selection","responsive","selectionChange"],["table",""],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],["class","centerbox bg-light-primary py-60 text-center empty-collaborators-list",4,"ngIf"],["left",""],[3,"actions","selectionCount",4,"ngIf"],["right",""],[3,"actions","selectionCount"],[1,"empty-set"],["colspan","5"],[1,"table-title"],["colspan","6"],[1,"column-headers"],["class","ui-selection-column","style","width: 15px",4,"ngIf"],["class","title-column text-left",3,"pSortableColumn",4,"ngIf"],["class","text-left",3,"pSortableColumn",4,"ngIf"],[1,"ui-selection-column",2,"width","15px"],[1,"title-column","text-left",3,"pSortableColumn"],[1,"ui-column-title"],[3,"field"],[1,"text-left",3,"pSortableColumn"],[3,"value"],["class","tooltip-right",4,"ngIf"],[1,"tooltip-right"],[1,"material-icons","tooltip-help-icon"],["type","select",3,"options","defaultText","saveChanges",4,"ngIf"],["type","select",3,"options","defaultText","saveChanges"],[1,"centerbox","bg-light-primary","py-60","text-center","empty-collaborators-list"],["paragraph","true"],["color","primary","variant","contained"]],template:function(s,r){if(1&s&&(e.TgZ(0,"div"),e._uU(1,"\n "),e.YNc(2,Ui,7,0,"div",0),e._uU(3,"\n "),e.YNc(4,Ki,33,11,"ng-template",null,1,e.W1O),e._uU(6,"\n"),e.qZA(),e._uU(7,"\n")),2&s){const a=e.MAs(5);e.xp6(2),e.Q6J("ngIf",!r.loaded)("ngIfElse",a)}},dependencies:[D.jx,M.r0,_.mk,_.O5,f.rH,Ne.E,nt,W.Q,A.iA,A.lQ,A.fz,A.UA,A.Mo,et.K,N.lo,_.uU]}),i})();var Y=c(7340),Qt=c(2986),Et=c(1491),Wi=c(1197),ot=c(1821);const Dt="Add to library";class it extends X.s{constructor(){super(...arguments),this.type=y.r.AddToPpuLibrary,this.title=Dt}shouldInclude(){return this.userPermissions.canHavePpuLicense}}const st="Remove";class Xi extends X.s{constructor(){super(...arguments),this.title=st,this.type=y.r.RemoveCourses}shouldInclude(){return this.hasCollabPermission(Z.v.Edit)}menuAction(){return{linkClass:"text-danger",title:this.title,icon:"delete",callBack:()=>
1this.click.next(this.type)}}}var ve=c(1055),we=c(2100),Bt=c(2894),be=c(5028),Me=c(4480),Fe=c(7037),rt=c(8087),Yt=c(4090),es=c(2849),ts=c(2321),Ze=c(3454),ns=c(3277),os=c(5436),is=c(4132),ss=c(2463),rs=c(1322),as=c(1310),ls=c(6015),cs=c(219),us=c(25),ds=c(6448);function ps(i,o){1&i&&(e.TgZ(0,"i",26),e._uU(1,"\n "),e.TgZ(2,"span",5),e._uU(3,"Thumbs up"),e.qZA(),e._uU(4,"\n "),e.qZA())}function _s(i,o){1&i&&(e.TgZ(0,"i",27),e._uU(1,"\n "),e.TgZ(2,"span",5),e._uU(3,"Thumbs down"),e.qZA(),e._uU(4,"\n "),e.qZA())}function gs(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-flex"),e._uU(3,"\n "),e.TgZ(4,"div",16),e._uU(5,"\n "),e.TgZ(6,"og-typography",17),e._uU(7,"Most Recent"),e.qZA(),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"ul",18),e._uU(12,"\n "),e.TgZ(13,"li",19),e._uU(14,"\n "),e.TgZ(15,"og-flex"),e._uU(16,"\n "),e.TgZ(17,"div",20),e._uU(18,"\n "),e.YNc(19,ps,5,0,"i",21),e._uU(20,"\n "),e.YNc(21,_s,5,0,"i",22),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.TgZ(24,"div",23),e._uU(25,"\n "),e.TgZ(26,"div",24),e._uU(27,"\n "),e.TgZ(28,"p"),e._uU(29),e.qZA(),e._uU(30,"\n "),e.qZA(),e._uU(31,"\n "),e.TgZ(32,"div",25),e._uU(33),e.ALo(34,"date"),e.qZA(),e._uU(35,"\n "),e.qZA(),e._uU(36,"\n "),e.qZA(),e._uU(37,"\n "),e.qZA(),e._uU(38,"\n "),e.qZA(),e._uU(39,"\n "),e.BQk()),2&i){const n=e.oxw(2);e.xp6(19),e.Q6J("ngIf","up"===n.mostRecentFeedback.thumb),e.xp6(2),e.Q6J("ngIf","down"===n.mostRecentFeedback.thumb),e.xp6(8),e.Oqu(n.mostRecentFeedback.notes),e.xp6(4),e.AsE("\n ",e.xi3(34,5,n.mostRecentFeedback.date,n.dateFormat)," by ",n.mostRecentFeedback.author_name,"\n ")}}function ms(i,o){1&i&&(e.TgZ(0,"i",26),e._uU(1,"\n "),e.TgZ(2,"span",5),e._uU(3,"Thumbs up"),e.qZA(),e._uU(4,"\n "),e.qZA())}function hs(i,o){1&i&&(e.TgZ(0,"i",27),e._uU(1,"\n "),e.TgZ(2,"span",5),e._uU(3,"Thumbs down"),e.qZA(),e._uU(4,"\n "),e.qZA())}function fs(i,o){if(1&i&&(e.TgZ(0,"li",19),e._uU(1,"\n "),e.TgZ(2,"og-flex"),e._uU(3,"\n "),e.TgZ(4,"div",20),e._uU(5,"\n "),e.YNc(6,ms,5,0,"i",21),e._uU(7,"\n "),e.YNc(8,hs,5,0,"i",22),e._uU(9,"\n "),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"div",23),e._uU(12,"\n "),e.TgZ(13,"div",30),e._uU(14,"\n "),e.TgZ(15,"p"),e._uU(16),e.qZA(),e._uU(17,"\n "),e.qZA(),e._uU(18,"\n "),e.TgZ(19,"div",25),e._uU(20),e.ALo(21,"date"),e.qZA(),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.qZA(),e._uU(24,"\n "),e.qZA()),2&i){const n=o.$implicit,t=e.oxw(3);e.xp6(6),e.Q6J("ngIf","up"===n.thumb),e.xp6(2),e.Q6J("ngIf","down"===n.thumb),e.xp6(8),e.Oqu(n.notes),e.xp6(4),e.AsE("",e.xi3(21,5,n.date,t.dateFormat)," by ",n.author_name,"")}}function Cs(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-flex"),e._uU(3,"\n "),e.TgZ(4,"div",16),e._uU(5,"\n "),e.TgZ(6,"og-typography",17),e._uU(7,"Previous Notes"),e.qZA(),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"ul",28),e._uU(12,"\n "),e.YNc(13,fs,25,8,"li",29),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.BQk()),2&i){const n=e.oxw(2);e.xp6(13),e.Q6J("ngForOf",n.currentListFeedback)}}function vs(i,o){1&i&&(e.TgZ(0,"i",26),e._uU(1,"\n "),e.TgZ(2,"span",5),e._uU(3,"Thumbs up"),e.qZA(),e._uU(4,"\n "),e.qZA())}function bs(i,o){1&i&&(e.TgZ(0,"i",27),e._uU(1,"\n "),e.TgZ(2,"span",5),e._uU(3,"Thumbs down"),e.qZA(),e._uU(4,"\n "),e.qZA())}const xs=function(i){return["/lists","detail",i]};function ys(i,o){if(1&i&&(e.TgZ(0,"li",19),e._uU(1,"\n "),e.TgZ(2,"og-flex"),e._uU(3,"\n "),e.TgZ(4,"div",20),e._uU(5,"\n "),e.YNc(6,vs,5,0,"i",21),e._uU(7,"\n "),e.YNc(8,bs,5,0,"i",22),e._uU(9,"\n "),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"div",23),e._uU(12,"\n "),e.TgZ(13,"div",30),e._uU(14,"\n "),e.TgZ(15,"p"),e._uU(16,"\n "),e.TgZ(17,"a",32),e._uU(18),e.TgZ(19,"i",33),e._uU(20,"\ue89e"),e.qZA(),e._uU(21,"\n "),e.qZA(),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.TgZ(24,"p"),e._uU(25),e.qZA(),e._uU(26,"\n "),e.qZA(),e._uU(27,"\n "),e.TgZ(28,"div",25),e._uU(29),e.ALo(30,"date"),e.qZA(),e._uU(31,"\n "),e.qZA(),e._uU(32,"\n "),e.qZA(),e._uU(33,"\n "),e.qZA()),2&i){const n=o.$implicit,t=e.oxw(3);e.xp6(6),e.Q6J("ngIf","up"===n.thumb),e.xp6(2),e.Q6J("ngIf","down"===n.thumb),e.xp6(9),e.Q6J("routerLink",e.VKq(10,xs,n.list_id)),e.xp6(1),e.hij("\n ",n.list_name,"\n "),e.xp6(7),e.Oqu(n.notes),e.xp6(4),e.AsE("",e.xi3(30,7,n.date,t.dateFormat)," by ",n.author_name,"")}}function Ts(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-flex"),e._uU(3,"\n "),e.TgZ(4,"div",16),e._uU(5,"\n "),e.TgZ(6,"og-typography",17),e._uU(7,"Notes on This Course From Other Lists"),e.qZA(),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"ul",31),e._uU(12,"\n "),e.YNc(13,ys,34,12,"li",29),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.BQk()),2&i){const n=e.oxw(2);e.xp6(13),e.Q6J("ngForOf",n.otherListFeedBack)}}function Us(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.YNc(2,gs,40,8,"ng-container",14),e._uU(3,"\n\n "),e.YNc(4,Cs,16,1,"ng-container",14),e._uU(5,"\n\n "),e.YNc(6,Ts,16,1,"ng-container",14),e._uU(7,"\n "),e.BQk()),2&i){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",n.mostRecentFeedback),e.xp6(2),e.Q6J("ngIf",n.currentListFeedback.length>0),e.xp6(2),e.Q6J("ngIf",n.otherListFeedBack.length>0)}}function ws(i,o){1&i&&(e.TgZ(0,"div",34),e._uU(1,"\n "),e._UZ(2,"app-loading-indicator"),e._uU(3,"\n "),e.qZA())}let Ms=(()=>{const o=class{constructor(t,s,r){this.listService=t,this.notificationService=s,this.activeList=r,this.updateFeedback=new e.vpe,this.allCurrentListFeedback=[],this.otherListFeedBack=[],this.currentVote=null,this.feedbackLoaded=!1,this.session=null,this.maxLength=255}ngOnInit(){this.feedbackForm=new u.nJ({vote:new u.p4,notes:new u.p4}),this.loadFeedback()}setCurrentVote(t){return t.forEach(s=>{if(null!==s.thumb)return s.thumb}),null}loadFeedback(){var t=this;return(0,d.Z)(function*(){t.feedbackLoaded||(yield t.listService.getCourseFeedbackOnList(t.nid,t.activeList.list.id).then(s=>{t.allCurrentListFeedback=s.feedback,t.otherListFeedBack=s.otherFeedback,t.currentVote=t.setCurrentVote(s.feedback),t.feedbackLoaded=!0},()=>{t.notificationService.publishNotification(x.n.FeedbackLoadingErrorText,"error"),t.feedbackLoaded=!0}))})()}get mostRecentFeedback(){return this.allCurrentListFeedback[0]}get currentListFeedback(){return this.allCurrentListFeedback.slice(1)}get dateFormat(){return Q.t6}addFeedback(){var t=this;return(0,d.Z)(function*(){const{vote:s,notes:r}=t.feedbackForm.value;null===s&&null===r||(yield t.listService.addCourseFeedbackOnList(t.nid,t.activeList.list.id,s,r).then(a=>{t.allCurrentListFeedback.unshift(a),t.currentVote!==a.thumb&&null!==a.thumb&&(t.listService.recentFeedback.next({thumb:a.thumb,course_id:t.nid}),t.currentVote=a.thumb),t.feedbackForm.reset()},()=>{t.notificationService.publishNotification(x.n.FeedbackAddingCourseErrorText,"error")}))})()}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(S.XN),e.Y36(w.g),e.Y36(B.f))}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-feedback"]],inputs:{nid:"nid"},outputs:{updateFeedback:"updateFeedback"},decls:51,vars:4,consts:[[1,"form-wrapper","p-15","mb-30","bg-light-secondary","e2e-feedback-form",3,"formGroup","ngSubmit"],["alignItems","flexStart","flexWrap","wrap"],[1,"voting","br-light-primary"],[1,"voting-option","thumbs-up"],["type","radio","id","vote-thumbs-up","formControlName","vote","name","vote","value","up",1,"hidden-input","positive"],[1,"visually-hidden"],[1,"voting-option","thumbs-down"],["type","radio","id","vote-thumbs-down","formControlName","vote","name","vote","value","down",1,"hidden-input","negative"],["flex","1",1,"ml-10"],["for","notes",1,"visually-hidden"],["formControlName","notes","id","notes","name","notes","rows","5","placeholder","Leave a note",1,"form-field","bg-light-primary",3,"maxlength"],[1,"mt-10"],["buttonType","submit","color","primary","startIcon","check_circle","size","sm","variant","contained"],[1,"feedback-container"],[4,"ngIf"],["class","my-10 text-center",4,"ngIf"],[1,"col-11","offset-1","py-0"],["className","feedback-header","variant","caption"],["id","recent",1,"full","feedback-group"],[1,"full","pt-5","pb-15"],[1,"col-1","text-center"],["class","icon-thumbs-up text-color-success",4,"ngIf"],["class","icon-thumbs-down text-color-error",4,"ngIf"],[1,"col-11"],[1,"feedback-notes","recent"],[1,"feedback-meta","pb-10"],[1,"icon-thumbs-up","text-color-success"],[1,"icon-thumbs-down","text-color-error"],["id","previousNotes",1,"full","feedback-group"],["class","full pt-5 pb-15",4,"ngFor","ngForOf"],[1,"feedback-notes"],[1,"full","feedback-group"],[1,"text-color-primary","bold",3,"routerLink"],[1,"material-icons","link-indicator","text-color-primary"],[1,"my-10","text-center"]],template:function(s,r){1&s&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return r.addFeedback()}),e._uU(1,"\n "),e.TgZ(2,"og-flex",1),e._uU(3,"\n "),e.TgZ(4,"og-flex-child"),e._uU(5,"\n "),e.TgZ(6,"fieldset",2),e._uU(7,"\n "),e.TgZ(8,"label",3),e._uU(9,"\n "),e._UZ(10,"input",4),e._uU(11,"\n "),e.TgZ(12,"span")(13,"span",5),e._uU(14,"Give this course a thumbs up"),e.qZA()(),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.TgZ(17,"label",6),e._uU(18,"\n "),e._UZ(19,"input",7),e._uU(20,"\n "),e.TgZ(21,"span")(22,"span",5),e._uU(23,"Give this course a thumbs down"),e.qZA()(),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n "),e.qZA(),e._uU(26,"\n "),e.qZA(),e._uU(27,"\n "),e.TgZ(28,"og-flex-child",8),e._uU(29,"\n "),e.TgZ(30,"label",9),e._uU(31,"Leave Your Notes"),e.qZA(),e._uU(32,"\n "),e._UZ(33,"textarea",10),e._uU(34,"\n "),e.TgZ(35,"div",11),e._uU(36,"\n "),e.TgZ(37,"og-button",12),e._uU(38,"Save"),e.qZA(),e._uU(39,"\n "),e.qZA(),e._uU(40,"\n "),e.qZA(),e._uU(41,"\n "),e.qZA(),e._uU(42,"\n"),e.qZA(),e._uU(43,"\n"),e.TgZ(44,"div",13),e._uU(45,"\n "),e.YNc(46,Us,8,3,"ng-container",14),e._uU(47,"\n "),e.YNc(48,ws,4,0,"div",15),e._uU(49,"\n"),e.qZA(),e._uU(50,"\n")),2&s&&(e.Q6J("formGroup",r.feedbackForm),e.xp6(33),e.Q6J("maxlength",r.maxLength),e.xp6(13),e.Q6J("ngIf",r.feedbackLoaded),e.xp6(2),e.Q6J("ngIf",!r.feedbackLoaded))},dependencies:[_.sg,_.O5,ds.Ue,Ze.wy,u._Y,u.Fj,u._,u.JJ,u.JL,u.nD,W.Q,M.r0,u.sg,u.u,f.rH,N.lo,_.uU],styles:['[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}label.thumbs-down[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before, label.thumbs-up[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before, label.voting-option.thumbs-down[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:before, label.voting-option.thumbs-up[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:before{font-family:Material Icons;font-weight:400}.feedback-form[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.feedback-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{background:#ffffff;height:94px}.feedback-notes[_ngcontent-%COMP%]{font-size:14px;line-height:1.4}.feedback-notes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:1em}.feedback-header[_ngcontent-%COMP%]{text-transform:uppercase}.feedback-notes.recent[_ngcontent-%COMP%]{font-size:17px;font-weight:600}.feedback-meta[_ngcontent-%COMP%]{font-size:12px;color:#919191}.feedback-group[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child .col-11[_ngcontent-%COMP%]{border-bottom:1px solid #e6e6e6}.voting[_ngcontent-%COMP%]{margin-top:5px;position:relative}label.voting-option[_ngcontent-%COMP%]{position:relative;padding:0;cursor:pointer}label.voting-option[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{text-align:center;background-color:#fff;display:inline-block;width:70px;height:auto;border-radius:0;padding:.5em;box-shadow:0 1px 1px #2423231a;border:1px solid rgba(36,35,35,.1);margin-top:0;z-index:11;position:relative;transition:all .25s ease}label.voting-option[_ngcontent-%COMP%]:first-child span[_ngcontent-%COMP%]:before{border-radius:2px 0}label.voting-option[_ngcontent-%COMP%]:last-child span[_ngcontent-%COMP%]:before{border-radius:0 2px}label.voting-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{position:absolute;top:0;left:0;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;outline:0;background-color:transparent;box-shadow:none;border:none;z-index:1}label.voting-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:after{content:""}label.voting-option[_ngcontent-%COMP%]:hover.thumbs-up span[_ngcontent-%COMP%], label.voting-option[_ngcontent-%COMP%]:focus.thumbs-up span[_ngcontent-%COMP%]{color:#50a54d}label.voting-option[_ngcontent-%COMP%]:hover.thumbs-down span[_ngcontent-%COMP%], label.voting-option[_ngcontent-%COMP%]:focus.thumbs-down span[_ngcontent-%COMP%]{color:#c34747}label.voting-option.thumbs-up[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:before{background-color:#50a54d;color:#fff;content:"\\e8dc"}label.voting-option.thumbs-down[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:before{background-color:#c34747;color:#fff;content:"\\e8db"}label.thumbs-up[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:"\\e8dc"}label.thumbs-down[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:"\\e8db"}label.thumbs-up[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before, label.thumbs-down[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{font-size:18px;line-height:1.5;font-style:normal}.feedback-container[_ngcontent-%COMP%]{min-height:30px;margin:10px auto}']}),i})();function Zs(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"a",19),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.onNavButtonPress())}),e._uU(1,"\n "),e.TgZ(2,"i",20),e._uU(3),e.qZA(),e._uU(4),e.qZA()}if(2&i){const n=e.oxw(2);e.xp6(3),e.Oqu(n.navButtonIcon),e.xp6(1),e.hij("\n ",n.navButtonText,"\n ")}}function Ps(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"a",21),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.onNavButtonPress())}),e._uU(1,"\n "),e.TgZ(2,"span",22),e._uU(3,"close window"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"i",23),e._uU(6,"close"),e.qZA(),e._uU(7,"\n "),e.qZA()}}function Ls(i,o){if(1&i&&(e.TgZ(0,"div",24),e._uU(1,"\n "),e._UZ(2,"img",25),e._uU(3,"\n "),e.qZA()),2&i){const n=e.oxw(2);e.xp6(2),e.Q6J("src",n.courseData.image,e.LSH)}}function Ss(i,o){if(1&i&&(e.TgZ(0,"og-button",26),e._uU(1,"\n Course Demo\n "),e.qZA()),2&i){const n=e.oxw(2);
1e.Q6J("link",n.courseData.coursePreview.previewUrl)}}const As=function(i){return[i,"modal-nav"]},Os=function(i){return[i,"e2e-modal-panel-toggle-details"]},Is=function(i){return[i,"e2e-modal-panel-toggle-feedback"]};function ks(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-tabs",27),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.switchTab())}),e._uU(1,"\n "),e.TgZ(2,"og-tab",28),e._uU(3,"Course Details"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"og-tab",28),e._uU(6,"Notes & Feedback"),e.qZA(),e._uU(7,"\n "),e.qZA()}if(2&i){const n=e.oxw(2);e.Q6J("activeTab","details"===n.tab?0:1)("className",e.VKq(4,As,n.classes.tabsContainer)),e.xp6(2),e.Q6J("className",e.VKq(6,Os,n.classes.tab)),e.xp6(3),e.Q6J("className",e.VKq(8,Is,n.classes.tab))}}function Ns(i,o){if(1&i&&e._uU(0),2&i){const n=e.oxw().$implicit;e.lnq("\n ",n.creditHours+" hour",", ",n.accreditationType,", ",n.accreditingBody,"\n ")}}function qs(i,o){if(1&i&&e._uU(0),2&i){const n=e.oxw().$implicit;e.lnq("\n ",n.creditHours+" hours",", ",n.accreditationType,", ",n.accreditingBody,"\n ")}}function Fs(i,o){if(1&i&&(e.TgZ(0,"div",46),e._uU(1,"\n "),e.TgZ(2,"span",47),e._uU(3,"\n "),e.YNc(4,Ns,1,3,"ng-template",48),e._uU(5,"\n "),e.YNc(6,qs,1,3,"ng-template",49),e._uU(7,"\n "),e.qZA(),e._uU(8,"\n "),e.qZA()),2&i){const n=o.$implicit;e.xp6(2),e.Q6J("ngPlural",+n.creditHours)}}function Gs(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"h4",44),e._uU(3,"Accreditation Organization"),e.qZA(),e._uU(4,"\n\n "),e.YNc(5,Fs,9,1,"div",45),e._uU(6,"\n "),e.BQk()),2&i){const n=e.oxw(3);e.xp6(5),e.Q6J("ngForOf",n.courseData.certifications)}}function Js(i,o){if(1&i&&(e.TgZ(0,"li",51),e._uU(1,"\n "),e.TgZ(2,"span"),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i){const n=o.$implicit;e.xp6(3),e.Oqu(n)}}function Qs(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"h4",30),e._uU(3,"Key Objectives"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"ul"),e._uU(6,"\n "),e.YNc(7,Js,5,1,"li",50),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.BQk()),2&i){const n=e.oxw(3);e.xp6(7),e.Q6J("ngForOf",n.courseData.learningObjectives)}}function Es(i,o){if(1&i&&(e.TgZ(0,"og-typography",57),e._uU(1),e.qZA()),2&i){const n=e.oxw().$implicit,t=e.oxw(3);e.Q6J("fontWeight",n.name===t.courseData.interfaceLanguage?"bold":""),e.xp6(1),e.hij("\n ",n.name,"\n ")}}function Ds(i,o){if(1&i&&(e.TgZ(0,"og-link",58),e._uU(1),e.qZA()),2&i){const n=e.oxw().$implicit,t=e.oxw(3);e.Q6J("link",n.data.slug)("alt",n.data.title)("newTab",!t.isEcp),e.xp6(1),e.hij("\n ",n.name,"\n ")}}function Bs(i,o){1&i&&(e.TgZ(0,"og-typography",59),e._uU(1,"*"),e.qZA())}function Ys(i,o){1&i&&e._UZ(0,"og-svg-icon",60)}function Hs(i,o){1&i&&e._UZ(0,"og-svg-icon",60)}function Rs(i,o){1&i&&e._UZ(0,"og-svg-icon",60)}function zs(i,o){if(1&i&&(e.TgZ(0,"og-table-row"),e._uU(1,"\n "),e.TgZ(2,"og-table-cell",28),e._uU(3,"\n "),e.YNc(4,Es,2,2,"og-typography",52),e._uU(5,"\n "),e.YNc(6,Ds,2,4,"og-link",53),e._uU(7,"\n "),e.YNc(8,Bs,2,0,"og-typography",54),e._uU(9,"\n "),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"og-table-cell",55),e._uU(12,"\n "),e.YNc(13,Ys,1,0,"og-svg-icon",56),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.TgZ(16,"og-table-cell",55),e._uU(17,"\n "),e.YNc(18,Hs,1,0,"og-svg-icon",56),e._uU(19,"\n "),e.qZA(),e._uU(20,"\n "),e.TgZ(21,"og-table-cell",55),e._uU(22,"\n "),e.YNc(23,Rs,1,0,"og-svg-icon",56),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n "),e.qZA()),2&i){const n=o.$implicit,t=e.oxw(3);e.xp6(2),e.Q6J("className",t.classes.languageTableFirstCell),e.xp6(2),e.Q6J("ngIf",!n.data.slug),e.xp6(2),e.Q6J("ngIf",n.data.slug),e.xp6(2),e.Q6J("ngIf",n.data.guid!==t.courseData.guid),e.xp6(
15),e.Q6J("ngIf",n.data.content),e.xp6(5),e.Q6J("ngIf",n.data.subtitles),e.xp6(5),e.Q6J("ngIf",n.data.audio)}}function Vs(i,o){if(1&i&&(e.TgZ(0,"og-typography",28),e._uU(1,"\n * Language only available as a separate course\n "),e.qZA()),2&i){const n=e.oxw(3);e.Q6J("className",n.classes.separateCoursePackageLabel)}}function js(i,o){if(1&i&&(e.TgZ(0,"li",63),e._uU(1,"\n "),e.TgZ(2,"span"),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i){const n=o.$implicit;e.xp6(3),e.Oqu(n)}}function Ks(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-typography",28),e._uU(3,"Proficiency Levels"),e.qZA(),e._uU(4,"\n "),e.YNc(5,js,5,1,"li",62),e._uU(6,"\n "),e.BQk()),2&i){const n=e.oxw(4);e.xp6(2),e.Q6J("className",n.classes.detailItemTitle),e.xp6(3),e.Q6J("ngForOf",n.courseData.proficiencyLevels)}}function $s(i,o){1&i&&(e.TgZ(0,"div"),e._uU(1,"\n "),e.YNc(2,Ks,7,2,"ng-container",61),e._uU(3,"\n "),e.qZA()),2&i&&(e.xp6(2),e.Q6J("appExcludeIf","display:proficiency-levels"))}function Ws(i,o){if(1&i&&(e.TgZ(0,"div",46),e._uU(1,"\n "),e.TgZ(2,"span"),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i){const n=o.$implicit;e.xp6(3),e.Oqu(n)}}function Xs(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"h4",30),e._uU(3,"Required Plugins"),e.qZA(),e._uU(4,"\n "),e.YNc(5,Ws,5,1,"div",45),e._uU(6,"\n "),e.BQk()),2&i){const n=e.oxw(3);e.xp6(5),e.Q6J("ngForOf",n.courseData.plugins)}}function er(i,o){if(1&i&&(e.TgZ(0,"li",51),e._uU(1,"\n "),e.TgZ(2,"span"),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i){const n=o.$implicit;e.xp6(3),e.Oqu(n)}}function tr(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"h4",30),e._uU(3,"Supported Browsers"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"ul"),e._uU(6,"\n "),e.YNc(7,er,5,1,"li",50),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.BQk()),2&i){const n=e.oxw(3);e.xp6(7),e.Q6J("ngForOf",n.courseData.browsers)}}const nr=function(i){return[i,"mt-10","e2e-course-style-text"]};function or(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-typography",28),e._uU(3,"Style"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"og-typography",28),e._uU(6),e.qZA(),e._uU(7,"\n "),e.BQk()),2&i){const n=e.oxw(3);e.xp6(2),e.Q6J("className",n.classes.detailItemTitle),e.xp6(3),e.Q6J("className",e.VKq(3,nr,n.classes.detailItemContent)),e.xp6(1),e.Oqu(n.courseStyle)}}const ir=function(i){return[i,"mt-10","e2e-course-competency-text"]};function sr(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-typography",28),e._uU(3,"Competency"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"og-typography",28),e._uU(6),e.qZA(),e._uU(7,"\n "),e.BQk()),2&i){const n=e.oxw(4);e.xp6(2),e.Q6J("className",n.classes.detailItemTitleCompetency),e.xp6(3),e.Q6J("className",e.VKq(3,ir,n.classes.detailItemContentCompetency)),e.xp6(1),e.hij("\n ",n.competencyModel,"\n ")}}function rr(i,o){1&i&&(e.TgZ(0,"div"),e._uU(1,"\n "),e.YNc(2,sr,8,5,"ng-container",61),e._uU(3,"\n "),e.qZA()),2&i&&(e.xp6(2),e.Q6J("appExcludeIf","display:competency model"))}function ar(i,o){if(1&i&&(e.TgZ(0,"li",65),e._uU(1,"\n "),e.TgZ(2,"span"),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i){const n=o.$implicit;e.xp6(3),e.Oqu(n)}}const lr=function(){return["e2e-course-accessibility-text"]};function cr(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-typography",28),e._uU(3,"Accessibility Standard"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"div",28),e._uU(6,"\n "),e.YNc(7,ar,5,1,"li",64),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.BQk()),2&i){const n=e.oxw(4);e.xp6(2),e.Q6J("className",n.classes.detailItemTitle),e.xp6(3),e.Q6J("className",e.DdM(3,lr)),e.xp6(2),e.Q6J("ngForOf",n.courseData.accessibilityStandards)}}function ur(i,o){1&i&&(e.TgZ(0,"div"),e._uU(1,"\n "),e.YNc(2,cr,10,4,"ng-container",61),e._uU(3,"\n "),e.qZA()),2&i&&(e.xp6(2),e.Q6J("appExcludeIf","display:accessibility standards"))}function dr(i,o){if(1&i&&(e.TgZ(0,"li",65),e._uU(1,"\n "),e.TgZ(2,"span"),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i){const n=o.$implicit;e.xp6(3),e.Oqu(n)}}function pr(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-typography",28),e._uU(3,"Skills"),e.qZA(),e._uU(4,"\n "),e.YNc(5,dr,5,1,"li",64),e._uU(6,"\n "),e.BQk()),2&i){const n=e.oxw(4);e.xp6(2),e.Q6J("className",n.classes.detailItemTitle),e.xp6(3),e.Q6J("ngForOf",n.courseData.skills)}}function _r(i,o){1&i&&(e.TgZ(0,"div"),e._uU(1,"\n "),e.YNc(2,pr,7,2,"ng-container",61),e._uU(3,"\n "),e.qZA()),2&i&&(e.xp6(2),e.Q6J("appExcludeIf","display:skills"))}function gr(i,o){if(1&i&&(e.TgZ(0,"li",65),e._uU(1,"\n "),e.TgZ(2,"span"),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i){const n=o.$implicit;e.xp6(3),e.Oqu(n)}}function mr(i,o){if(1&i&&(e.TgZ(0,"div"),e._uU(1,"\n "),e.TgZ(2,"og-typography",28),e._uU(3,"AI Usage"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"ul",66),e._uU(6,"\n "),e.YNc(7,gr,5,1,"li",64),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.qZA()),2&i){const n=e.oxw(3);e.xp6(2),e.Q6J("className",n.classes.detailItemTitle),e.xp6(5),e.Q6J("ngForOf",n.courseData.aiUsage)}}const hr=function(i){return[i]},fr=function(i,o){return{"green-icon":i,not_supported:o}};function Cr(i,o){if(1&i&&(e.TgZ(0,"div",29),e._uU(1,"\n "),e.YNc(2,Gs,7,1,"ng-container",0),e._uU(3,"\n\n "),e.TgZ(4,"h4",30),e._uU(5,"Description"),e.qZA(),e._uU(6,"\n "),e.TgZ(7,"div",31),e._uU(8,"\n "),e._UZ(9,"div",32),e._uU(10,"\n "),e.TgZ(11,"p",33),e._uU(12,"\n "),e.TgZ(13,"a",34),e._uU(14,"\n Go\xa0to\xa0Course\xa0Page\n "),e.qZA(),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n\n "),e.YNc(18,Qs,10,1,"ng-container",0),e._uU(19,"\n\n "),e.ynx(20),e._uU(21,"\n "),e.TgZ(22,"h4",30),e._uU(23,"Languages"),e.qZA(),e._uU(24,"\n "),e.TgZ(25,"div"),e._uU(26,"\n "),e.TgZ(27,"og-accordion",35),e._uU(28,"\n "),e.TgZ(29,"og-table-container",28),e._uU(30,"\n "),e.TgZ(31,"og-table"),e._uU(32,"\n "),e.TgZ(33,"og-table-head"),e._uU(34,"\n "),e.TgZ(35,"og-table-row"),e._uU(36,"\n "),e.TgZ(37,"og-table-cell",36),e._uU(38,"\n "),e.TgZ(39,"og-typography",37),e._uU(40,"Language"),e.qZA(),e._uU(41,"\n "),e.qZA(),e._uU(42,"\n "),e.TgZ(43,"og-table-cell",38),e._uU(44,"\n "),e.TgZ(45,"og-typography",37),e._uU(46,"Course Text"),e.qZA(),e._uU(47,"\n "),e.qZA(),e._uU(48,"\n "),e.TgZ(49,"og-table-cell",38),e._uU(50,"\n "),e.TgZ(51,"og-typography",37),e._uU(52,"Subtitles"),e.qZA(),e._uU(53,"\n "),e.qZA(),e._uU(54,"\n "),e.TgZ(55,"og-table-cell",38),e._uU(56,"\n "),e.TgZ(57,"og-typography",37),e._uU(58,"Audio"),e.qZA(),e._uU(59,"\n "),e.qZA(),e._uU(60,"\n "),e.qZA(),e._uU(61,"\n "),e.qZA(),e._uU(62,"\n "),e.TgZ(63,"og-table-body"),e._uU(64,"\n "),e.YNc(65,zs,26,7,"og-table-row",39),e._uU(66,"\n "),e.qZA(),e._uU(67,"\n "),e.qZA(),e._uU(68,"\n "),e.qZA(),e._uU(69,"\n "),e.YNc(70,Vs,2,1,"og-typography",40),e._uU(71,"\n "),e.qZA(),e._uU(72,"\n "),e.qZA(),e._uU(73,"\n "),e.BQk(),e._uU(74,"\n\n "),e.YNc(75,$s,4,1,"div",0),e._uU(76,"\n\n "),e.TgZ(77,"h4",41),e._uU(78,"Compatibility"),e.qZA(),e._uU(79,"\n "),e.TgZ(80,"ul"),e._uU(81,"\n "),e.TgZ(82,"li",42),e._uU(83,"Desktop"),e.qZA(),e._uU(84,"\n "),e.TgZ(85,"li",43),e._uU(86,"\n Mobile\n "),e.qZA(),e._uU(87,"\n "),e.qZA(),e._uU(88,"\n\n "),e.YNc(89,Xs,7,1,"ng-container",0),e._uU(90,"\n\n "),e.YNc(91,tr,10,1,"ng-container",0),e._uU(92,"\n\n "),e.YNc(93,or,8,5,"ng-container",0),e._uU(94,"\n\n "),e.YNc(95,rr,4,1,"div",0),e._uU(96,"\n\n "),e.YNc(97,ur,4,1,"div",0),e._uU(98,"\n\n "),e.YNc(99,_r,4,1,"div",0),e._uU(100,"\n\n "),e.YNc(101,mr,10,2,"div",0),e._uU(102,"\n "),e.qZA()),2&i){const n=e.oxw(2);e.xp6(2),e.Q6J("ngIf",n.courseData.certifications&&n.courseData.certifications.length>0),e.xp6(7),e.Q6J("innerHtml",n.courseData.description,e.oJD),e.xp6(4),e.Q6J("routerLink",e.VKq(19,hr,n.courseData.path)),e.xp6(
15),e.Q6J("ngIf",n.courseData.learningObjectives&&n.courseData.learningObjectives.length>0),e.xp6(9),e.Q6J("className",n.classes.languageAccordion)("title",n.languages.join(", ")),e.xp6(2),e.Q6J("className",n.classes.languageTableContainer),e.xp6(8),e.Q6J("className",n.classes.languageTableFirstCell),e.xp6(28),e.Q6J("ngForOf",n.languageSupportArray),e.xp6(5),e.Q6J("ngIf",n.showSeparateLanguagePackageLabel),e.xp6(5),e.Q6J("ngIf",n.courseData.proficiencyLevels&&n.courseData.proficiencyLevels.length>0),e.xp6(10),e.Q6J("ngClass",e.WLB(21,fr,n.courseData.mobileFriendly,!n.courseData.mobileFriendly)),e.xp6(4),e.Q6J("ngIf",n.courseData.plugins&&n.courseData.plugins.length>0),e.xp6(2),e.Q6J("ngIf",n.courseData.browsers&&n.courseData.browsers.length>0),e.xp6(2),e.Q6J("ngIf",!n.courseData.isBundle),e.xp6(2),e.Q6J("ngIf",n.competencyModel),e.xp6(2),e.Q6J("ngIf",n.courseData.accessibilityStandards.length>0),e.xp6(2),e.Q6J("ngIf",n.courseData.skills.length>0),e.xp6(2),e.Q6J("ngIf",n.courseData.aiUsage&&n.courseData.aiUsage.length>0)}}function vr(i,o){if(1&i&&(e.TgZ(0,"div",29),e._uU(1,"\n "),e._UZ(2,"app-feedback",67),e._uU(3,"\n "),e.qZA()),2&i){const n=e.oxw(2);e.xp6(2),e.Q6J("nid",n.courseId)}}const br=function(i,o){return{"py-5 text-light-primary":!0,"bg-brand-secondary px-30":i,"bg-dark-tertiary text-right":o}},xr=function(i){return{"pt-30":i}},yr=function(i){return{"no-image":i}};function Tr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div"),e._uU(1,"\n "),e.TgZ(2,"div",1),e._uU(3,"\n "),e.YNc(4,Zs,5,2,"a",2),e._uU(5,"\n "),e.YNc(6,Ps,8,0,"a",3),e._uU(7,"\n "),e.qZA(),e._uU(8,"\n "),e.TgZ(9,"div",4),e._uU(10,"\n "),e.TgZ(11,"div",5),e._uU(12,"\n "),e.TgZ(13,"og-flex"),e._uU(14,"\n "),e.YNc(15,Ls,4,1,"div",6),e._uU(16,"\n "),e.TgZ(17,"div",7),e._uU(18,"\n "),e.TgZ(19,"og-typography",8),e._uU(20),e.qZA(),e._uU(21,"\n "),e.TgZ(22,"h5",9),e._uU(23),e.qZA(),e._uU(24,"\n "),e.TgZ(25,"div",10),e._uU(26,"\n "),e.TgZ(27,"og-button",11),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.onAddToList())}),e._uU(28,"\n "),e._UZ(29,"og-svg-icon",12),e._uU(30,"\n "),e.qZA(),e._uU(31,"\n "),e.YNc(32,Ss,2,1,"og-button",13),e._uU(33,"\n "),e.TgZ(34,"a",14),e._uU(35,"\n "),e.TgZ(36,"og-button",15),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.onNavButtonPress())}),e._uU(37,"\n View Details\n "),e.qZA(),e._uU(38,"\n "),e.qZA(),e._uU(39,"\n "),e.qZA(),e._uU(40,"\n "),e.qZA(),e._uU(41,"\n "),e.qZA(),e._uU(42,"\n "),e.qZA(),e._uU(43,"\n "),e.qZA(),e._uU(44,"\n\n "),e.YNc(45,ks,8,10,"og-tabs",16),e._uU(46,"\n "),e.TgZ(47,"div",17),e._uU(48,"\n "),e.YNc(49,Cr,103,24,"div",18),e._uU(50,"\n "),e.YNc(51,vr,4,1,"div",18),e._uU(52,"\n "),e.qZA(),e._uU(53,"\n"),e.qZA()}if(2&i){const n=e.oxw();e.Q6J("@fadeInOut",void 0),e.xp6(2),e.Q6J("ngClass",e.WLB(14,br,n.highlightBar,!n.highlightBar)),e.xp6(2),e.Q6J("ngIf",n.navButtonText),e.xp6(2),e.Q6J("ngIf",!n.navButtonText),e.xp6(5),e.Q6J("ngClass",e.VKq(17,xr,n.highlightBar)),e.xp6(4),e.Q6J("ngIf",n.courseData.image),e.xp6(2),e.Q6J("ngClass",e.VKq(19,yr,!n.courseData.image)),e.xp6(3),e.Oqu(n.courseData.title),e.xp6(3),e.hij("from ",null==n.courseData.publishedByUser?null:n.courseData.publishedByUser.dis
1playName,""),e.xp6(9),e.Q6J("ngIf",n.courseData.coursePreview),e.xp6(2),e.Q6J("routerLink",n.courseData.path),e.xp6(11),e.Q6J("ngIf",n.allowFeedback),e.xp6(4),e.Q6J("ngIf","details"===n.tab),e.xp6(2),e.Q6J("ngIf","notes"===n.tab&&n.allowFeedback)}}let Ge=((oe=class{set courseId(o){this._courseId=o,this._courseId?this.loadDetails().then(()=>{this.setLanguages(),this.setCourseStyle(),this.setCompetencyModel()}):this.courseData=null}get courseId(){return this._courseId}constructor(o,n,t,s,r){this.segmentService=o,this.courses=n,this.addToCourseListDrawerService=t,this.integrationService=s,this.activeSession=r,this.location="quick preview panel",this.tab="details",this.highlightBar=!1,this.allowFeedback=!0,this.onExternalActionPressed=new e.vpe,this.includesLanguageSwitcher=!1,this.showSeparateLanguagePackageLabel=!1,this.languages=[],this.isEcp=this.integrationService.IsEcp()}switchTab(){this.tab="details"===this.tab?"notes":"details",this.trackPanel()}onNavButtonPress(){this.onExternalActionPressed.emit()}trackPanel(){const{guid:o,title:n}=this.courseData;this.segmentService.track("Viewed Course Details Panel",{courseGuid:o,courseTitle:n,panelSection:this.tab})}loadDetails(){var o=this;return(0,d.Z)(function*(){try{o.courseData=yield o.courses.getCourseDetails(o.courseId),o.trackPanel()}catch{console.error("Error loading course information")}})()}onAddToList(){const o=Me.s.generateListCoursesFromCourseDetails(this.courseData);this.addToCourseListDrawerService.openDrawer({showScrim:!1,courses:o,segmentFrom:g.XX.CoursePreview})}setLanguages(){const{includesLanguageSwitcher:o,languages:n}=this.courseData;let t;t=o?rt.O.buildInternalSwitcherLanguageSupport(this.courseData):rt.O.buildLanguageGroupingLanguageSupport(this.courseData,this.integrationService.path),this.languageSupportArray=Object.entries(t).map(([s,r])=>({name:s,data:r})).sort((s,r)=>s.name===this.courseData.interfaceLanguage?-1:r.name===this.courseData.interfaceLanguage?1:s.name.localeCompare(r.name)),this.includesLanguageSwitcher=o,this.languages=this.languageSupportArray.map(s=>s.name),this.showSeparateLanguagePackageLabel=!o&&rt.O.flattenLanguageMap(n).length>1}setCourseStyle(){this.courseStyle=this.courseData.courseStyle,this.courseStyleIcon=(0,Yt.eX)(this.courseData.courseStyle,this.activeSession.session.mediaServiceUrl),this.courseStyleIconViewbox="ebook"===this.courseStyleIcon?"0 -960 960 960":"0 0 24 24"}setCompetencyModel(){if(this.courseData.competencyModel){const o=this.courseData.competencyModel.substring(1);this.competencyModel=o.replace("|"," - ")}}}).\u0275fac=function(n){return new(n||oe)(e.Y36(I.B),e.Y36(Bt.a),e.Y36(be.i),e.Y36(Fe.Y),e.Y36(O.V))},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["app-course-preview"]],inputs:{location:"location",tab:"tab",navButtonText:"navButtonText",navButtonIcon:"navButtonIcon",highlightBar:"highlightBar",allowFeedback:"allowFeedback",courseId:"courseId"},outputs:{onExternalActionPressed:"onExternalActionPressed"},decls:2,vars:1,consts:[[4,"ngIf"],[3,"ngClass"],["class","text-size-sm","accessible-no-href","",3,"click",4,"ngIf"],["class","px-10 text-size-lg","accessible-no-href","",3,"click",4,"ngIf"],[1,"px-10"],[1,"course-modal-details","px-20","pb-20","bg-dark-tertiary",3,"ngClass"],["class","col-md-4 order-md-2 course-modal-image",4,"ngIf"],[1,"col-md-8","order-md-1","light-primary",3,"ngClass"],["color","inherit","paragraph","true","variant","h3"],[1,"text-light","italic"],[1,"course-modal-actions","col-md-12","px-0"],["className","preview-panel-add-to-list-button","color","primary","popper","Add to List","popperTrigger","hover","popperPlacement","bottom","popperDelay","500","popperApplyClass","tooltip-light","size","sm","variant","outlined",3,"click"],["color","inherit","fontSize","inherit","icon","playlist_add","viewBox","0 0 22 22"],["color","primary","className","e2e-preview-panel-demo-button preview-panel-demo-button","newTab","true","size","sm","variant","outlined",3,"link",4,"ngIf"],[3,"routerLink"],["className","preview-panel-details-button","color","primary","hasParent","true","size","sm","variant","contained",3,"click"],["centered","true",3,"activeTab","className","click",4,"ngIf"],[1,"py-20","px-30"],["class","modal-panel-content",4,"ngIf"],["accessible-no-href","",1,"text-size-sm",3,"click"],[1,"material-icons","align-icon"],["accessible-no-href","",1,"px-10","text-size-lg",3,"click"],[1,"visually-hidden"],[1,"material-icons"],[1,"col-md-4","order-md-2","course-modal-image"],["alt","Course preview thumbnail",3,"src"],["color","primary","className","e2e-preview-panel-demo-button preview-panel-demo-button","newTab","true","size","sm","variant","outlined",3,"link"],["centered","true",3,"activeTab","className","click"],[3,"className"],[1,"modal-panel-content"],[1,"course-modal-title","mt-30"],[1,"course-modal-description"],[1,"styled-html",3,"innerHtml"],[1,"mt-15"],[1,"course-modal-link","semi-bold","text-color-primary--hover",3,"routerLink"],[3,"className","title"],["element","th",3,"className"],["variant","inherit"],["element","th","align","center"],[4,"ngFor","ngForOf"],[3,"className",4,"ngIf"],[1,"course-modal-title","mt-20"],[1,"course-modal-objective","mt-10","green-icon"],[1,"course-modal-objective","mt-10",3,"ngClass"],[1,"course-modal-title"],["class","course-modal-objective certification",4,"ngFor","ngForOf"],[1,"course-modal-objective","certification"],[3,"ngPlural"],["ngPluralCase","=1"],["ngPluralCase","other"],["class","course-modal-objective mt-10",4,"ngFor","ngForOf"],[1,"course-modal-objective","mt-10"],["display","inline",3,"fontWeight",4,"ngIf"],["color","textPrimary","variant","body1",3,"link","alt","newTab",4,"ngIf"],["fontWeight","bold","display","inline",4,"ngIf"],["align","center"],["fontSize","sm","icon","check","color","inherit",4,"ngIf"],["display","inline",3,"fontWeight"],["color","textPrimary","variant","body1",3,"link","alt","newTab"],["fontWeight","bold","display","inline"],["fontSize","sm","icon","check","color","inherit"],[4,"appExcludeIf"],["class","course-modal-objective-new mt-10 e2e-course-preview-proficiency-levels",4,"ngFor","ngForOf"],[1,"course-modal-objective-new","mt-10","e2e-course-preview-proficiency-levels"],["class","course-modal-objective-new mt-10",4,"ngFor","ngForOf"],[1,"course-modal-objective-new","mt-10"],[1,"e2e-course-preview-ai-usage"],[3,"nid"]],template:function(n,t){1&n&&(e.YNc(0,Tr,54,21,"div",0),e._uU(1,"\n")),2&n&&e.Q6J("ngIf",t.courseData)},dependencies:[es.d,ts.Zf,_.mk,_.sg,_.O5,_.iq,_.zE,Ze.wy,de.Ml,M.r0,ns.ac,os.id,is.n4,f.rH,Ue.bk,ss.Qp,rs.A,as.to,ls.Bh,cs.xh,N.lo,us.N0,Ke.H,Ms],styles:['[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}.course-modal-link[_ngcontent-%COMP%]:after, .not_supported[_ngcontent-%COMP%]:after, .course-modal-objective-new.certification[_ngcontent-%COMP%]:after, .course-modal-objective-new.subtitle-language[_ngcontent-%COMP%]:after, .course-modal-objective-new.language[_ngcontent-%COMP%]:after, .course-modal-objective[_ngcontent-%COMP%]:after, .course-modal-objective.certification[_ngcontent-%COMP%]:after, .course-modal-objective.subtitle-language[_ngcontent-%COMP%]:after, .course-modal-objective.language[_ngcontent-%COMP%]:after{font-family:Material Icons;font-weight:400}.course-modal-details[_ngcontent-%COMP%]{margin:0 -10px}.course-modal-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.course-modal-title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:12px;font-weight:600;color:#555;position:relative;margin:0 0 5px;line-height:1.2}.course-modal-objective[_ngcontent-%COMP%]{margin:0 auto;padding-left:18px;position:relative}.course-modal-objective.language[_ngcontent-%COMP%], .course-modal-objective.certification[_ngcontent-%COMP%], .course-modal-objective.subtitle-language[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-right:20px}.course-modal-objective.language[_ngcontent-%COMP%]:last-child, .course-modal-objective.certification[_ngcontent-%COMP%]:last-child, .course-modal-objective.subtitle-language[_ngcontent-%COMP%]:last-child{margin-right:0}.course-modal-objective.language[_ngcontent-%COMP%]:after{content:"\\e894"}.course-modal-objective.subtitle-language[_ngcontent-%COMP%]:after{content:"\\e048"}.course-modal-objective.certification[_ngcontent-%COMP%]:after{content:"\\e866"}.course-modal-objective[_ngcontent-%COMP%]:after{position:absolute;
1left:0;top:0;font-size:14px;color:#f28132;content:"\\e5ca"}.catmarketplace[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .catmarketplace [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#3b7289}.infor[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .infor [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#13a3f7}.netex[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .netex [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#2b76b3}.opensesamedemo[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .opensesamedemo [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#2e75b5}.opensesameecpdemo[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .opensesameecpdemo [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#d20000}.ted[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .ted [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#e62b1e}.sumtotal[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .sumtotal [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#402e90}.harvardbusiness[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .harvardbusiness [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#b10021}.healthcare[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .healthcare [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#f28132}.inforhealth[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .inforhealth [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#d20021}.syntrio[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .syntrio [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#0e577e}.northpass[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .northpass [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#1e824c}.axonify[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .axonify [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#80bd41}.redcross[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .redcross [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#ed1b2e}.ernstandyoung[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .ernstandyoung [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#333}.tuvrheinland[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .tuvrheinland [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#206ead}.olympus[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .olympus [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#333}.docebocontent[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .docebocontent [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#0068d9}.mineral[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .mineral [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#647785}.allysafety[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .allysafety [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#fb7a09}.mindscaling[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .mindscaling [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#1f353e}.learning360[_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after, .learning360 [_nghost-%COMP%] .course-modal-objective[_ngcontent-%COMP%]:after{color:#333}.course-modal-objective-new[_ngcontent-%COMP%]{margin:0 auto;position:relative;list-style-position:inside;list-style-type:disc}.course-modal-objective-new.language[_ngcontent-%COMP%], .course-modal-objective-new.certification[_ngcontent-%COMP%], .course-modal-objective-new.subtitle-language[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-right:20px}.course-modal-objective-new.language[_ngcontent-%COMP%]:last-child, .course-modal-objective-new.certification[_ngcontent-%COMP%]:last-child, .course-modal-objective-new.subtitle-language[_ngcontent-%COMP%]:last-child{margin-right:0}.course-modal-objective-new.language[_ngcontent-%COMP%]:after{content:"\\e894"}.course-modal-objective-new.subtitle-language[_ngcontent-%COMP%]:after{content:"\\e048"}.course-modal-objective-new.certification[_ngcontent-%COMP%]:after{content:"\\e866"}.green-icon[_ngcontent-%COMP%]:after{color:#50a54d}.not_supported[_ngcontent-%COMP%]:after{content:"\\e14b";color:#c9c9c9}.modal-panel-content[_ngcontent-%COMP%]{font-size:13px;line-height:19px;color:#555}.course-modal-link[_ngcontent-%COMP%]:after{content:"\\e89e";margin-left:5px;color:#c9c9c9}ul.modal-nav[_ngcontent-%COMP%]{display:block;text-align:center;overflow-x:auto;white-space:nowrap;box-shadow:0 1px 2px #2423231a;padding:20px 20px 0}ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{transition:all .25s ease;display:inline-block;width:auto;padding:4px 4px 14px;cursor:pointer;font-size:14px;letter-spacing:.2px;font-weight:600;
1color:#777;border-bottom:2px solid transparent}ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-child){margin-right:20px}ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#f28132e6;color:#555}.catmarketplace[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .catmarketplace [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#3b7289e6}.infor[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .infor [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#13a3f7e6}.netex[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .netex [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#2b76b3e6}.opensesamedemo[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .opensesamedemo [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#2e75b5e6}.opensesameecpdemo[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .opensesameecpdemo [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#d20000e6}.ted[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .ted [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#e62b1ee6}.sumtotal[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .sumtotal [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#402e90e6}.harvardbusiness[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .harvardbusiness [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#b10021e6}.healthcare[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .healthcare [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#f28132e6}.inforhealth[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .inforhealth [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#d20021e6}.syntrio[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .syntrio [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#0e577ee6}.northpass[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .northpass [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#1e824ce6}.axonify[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .axonify [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#80bd41e6}.redcross[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .redcross [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#ed1b2ee6}.ernstandyoung[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .ernstandyoung [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#333333e6}.tuvrheinland[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .tuvrheinland [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#206eade6}.olympus[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .olympus [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#333333e6}.docebocontent[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .docebocontent [_nghost-%COMP%] ul.modal
1-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#0068d9e6}.mineral[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .mineral [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#647785e6}.allysafety[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .allysafety [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#fb7a09e6}.mindscaling[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .mindscaling [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#1f353ee6}.learning360[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .learning360 [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border-bottom-color:#333333e6}ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#f28132b3;color:#555}.catmarketplace[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .catmarketplace [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#3b7289b3}.infor[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .infor [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#13a3f7b3}.netex[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .netex [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#2b76b3b3}.opensesamedemo[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .opensesamedemo [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#2e75b5b3}.opensesameecpdemo[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .opensesameecpdemo [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#d20000b3}.ted[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .ted [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#e62b1eb3}.sumtotal[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .sumtotal [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#402e90b3}.harvardbusiness[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .harvardbusiness [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#b10021b3}.healthcare[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .healthcare [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#f28132b3}.inforhealth[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .inforhealth [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#d20021b3}.syntrio[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .syntrio [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#0e577eb3}.northpass[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .northpass [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#1e824cb3}.axonify[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .axonify [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#80bd41b3}.redcross[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .redcross [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#ed1b2eb3}
1.ernstandyoung[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .ernstandyoung [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#333333b3}.tuvrheinland[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .tuvrheinland [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#206eadb3}.olympus[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .olympus [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#333333b3}.docebocontent[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .docebocontent [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#0068d9b3}.mineral[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .mineral [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#647785b3}.allysafety[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .allysafety [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#fb7a09b3}.mindscaling[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .mindscaling [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#1f353eb3}.learning360[_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .learning360 [_nghost-%COMP%] ul.modal-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-bottom-color:#333333b3}.course-modal-actions[_ngcontent-%COMP%]{color:#fff}.course-modal-actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:0}'],data:{animation:[K.Ic]}}),oe);Ge=(0,k.gn)([(0,v.ozS)(i=>(0,v.kcS)({tabsContainer:{borderBottom:`1px solid ${i.palette.divider}`},languageAccordion:{"& hr":{display:"none"},"& .og-accordion-flex":{justifyContent:"start",padding:0,"& > og-flex-child:first-child":{width:"75%"},"& > og-flex-child:nth-child(2)":{flexShrink:1,flexGrow:1,maxWidth:"100%",minWidth:0}},"& .og-accordion-title":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"auto"},"& .og-typography-root":{fontSize:13,color:"#555555",lineHeight:"19px",letterSpacing:"0.01px"}},languageTableFirstCell:{paddingLeft:0},languageTableContainer:{padding:2*i.spacing.unit,overflow:"hidden",cursor:"auto",[v.AVK.up("lg")]:{paddingLeft:"5%"}},separateCoursePackageLabel:{paddingLeft:"5%",paddingBottom:10,cursor:"auto"},detailItemTitle:{textTransform:"uppercase",fontSize:12,fontWeight:600,color:"#555555",position:"relative",margin:"30px 0px 0px 0px",lineHeight:1.2},detailItemContent:{display:"inline",fontSize:13,color:"#555555",lineHeight:"19px"},detailItemIcon:{verticalAlign:"bottom"},detailItemTitleCompetency:{textTransform:"uppercase",fontSize:12,fontWeight:600,color:"#555555",position:"relative",margin:"30px 0px 5px 0px",lineHeight:1.2},detailItemContentCompetency:{display:"inline",fontSize:13,color:"#555555",lineHeight:"19px"}})),(0,k.w6)("design:paramtypes",[I.B,Bt.a,be.i,Fe.Y,O.V])],Ge);const wr=["previewmodal"];let Ht=(()=>{const o=class{constructor(){this.sendUpdateFeedback=new e.vpe,this.onSubmit=new e.vpe,this.allowFeedback=!0,this.activeTab="details",this.nid=null}show({nid:t,panel:s="details",allowFeedback:r=!0}){this.nid=t,this.activeTab=s,this.allowFeedback=r,this.modal.show()}hide(t=!0){this.modal.hide(t)}clearCourseData(){this.nid=null}};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-course-preview-modal"]],viewQuery:function(s,r){if(1&s&&e.Gf(wr,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{sendUpdateFeedback:"sendUpdateFeedback",onSubmit:"onSubmit"},decls:6,vars:4,consts:[[3,"rightPanel","onHide"],["previewmodal",""],[3,"tab","courseId","allowFeedback","onExternalActionPressed"]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e.NdJ("onHide",function(){return r.clearCourseData()}
1),e._uU(2,"\n "),e.TgZ(3,"app-course-preview",2),e.NdJ("onExternalActionPressed",function(){return r.hide()}),e.qZA(),e._uU(4,"\n"),e.qZA(),e._uU(5,"\n")),2&s&&(e.Q6J("rightPanel",!0),e.xp6(3),e.Q6J("tab",r.activeTab)("courseId",r.nid)("allowFeedback",r.allowFeedback))},dependencies:[J.z,Ge],data:{animation:[K.Ic]}}),i})();var Rt=c(4855),F=c(5044);class at extends R.x{constructor(o,n){super(o,{invitedLearners:n.invitedLearnersCount,listMetaData:n.listMetaData,selectedCourses:n.selectedCourses,selectedCourseCount:n.selectedCourseCount})}}class Mr extends R.x{constructor(o,n){super("Context Menu Item Selected",{...n,menuSelection:o})}}const Zr=["contextMenu"];var b=(()=>{return(i=b||(b={}))[i.onlyCoursesInSameGroup=0]="onlyCoursesInSameGroup",i[i.onlyCoursesAcrossGroups=1]="onlyCoursesAcrossGroups",i[i.variedCoursesSingleGroup=2]="variedCoursesSingleGroup",i[i.oneGroupAndAllCoursesInGroup=3]="oneGroupAndAllCoursesInGroup",i[i.oneGroupAndCoursesAcrossGroups=4]="oneGroupAndCoursesAcrossGroups",i[i.singleGroupNoCourses=5]="singleGroupNoCourses",i[i.multipleGroupsNoCourses=6]="multipleGroupsNoCourses",i[i.allCoursesInSelectedGroups=7]="allCoursesInSelectedGroups",i[i.multipleGroupsMultipleCourses=8]="multipleGroupsMultipleCourses",i[i.groupsAndCoursesInSelectedGroups=9]="groupsAndCoursesInSelectedGroups",b;var i})();let Pr=(()=>{const o=class{set contextMenuRow(t){this._contextMenuRow=t,this._contextMenuRow&&(this.addToSet(this._contextMenuRow),this.activeMenuItems=this.buildContextMenuItems())}set selectedGroups(t){this._selectedGroups=[...t]}set selectedCourses(t){this._selectedCourses=[...t]}constructor(t,s){this.activeList=t,this.segmentService=s,this.hidden=!1,this.shouldHavePpuLibraryAction=!1,this.collaboratorPermissions=[],this.addCourses=new e.vpe,this.onAddToPpuLibrary=new e.vpe,this.packageAction=new e.vpe,this.remove=new e.vpe,this.onMoveToTopOfGroup=new e.vpe,this.onMoveToBottomOfGroup=new e.vpe,this.onAddToGroup=new e.vpe,this.onMoveToTopOfList=new e.vpe,this.onMoveToBottomOfList=new e.vpe,this.onMoveAboveGroup=new e.vpe,this._selectedGroups=[],this._selectedCourses=[],this.activeMenuItems=[]}ngOnInit(){}get list(){return this.activeList.list}get contextMenuRow(){return this._contextMenuRow}get selectedCourses(){return this._selectedCourses}get selectedGroups(){return this._selectedGroups}addToSet(t){"group"===t.type?void 0===this.selectedGroups.find(s=>s.uniqueId===t.uniqueId)&&this.selectedGroups.push(t):void 0===this.selectedCourses.find(s=>s.uniqueId===t.uniqueId)&&this.selectedCourses.push(t)}show(t){t.stopPropagation(),this.menu.show(t)}groupTitle(t){return(0,g.vK)(t)?g.O8.toUpperCase():t.toUpperCase()}groupFlyoutList(t){const s=[],r=this.selectedGroups.map(a=>a.groupId);return this.list.groups.forEach(a=>{("course"===this.contextMenuRow.type||void 0===r.find(l=>l===a.id))&&s.push({label:this.groupTitle(a.title),command:()=>t(a)})}),s}buildContextMenuItems(){const t=this.selectionCollectionType,s=this.buildMoveOptions(t),r=this.buildActions(t),a=[];return s.length>0&&a.push({label:"Move to",styleClass:"menuHeader"},...s),r.length>0&&(a.length>0&&a.push({separator:!0}),a.push({label:"Actions",styleClass:"menuHeader"},...r)),0===a.length&&a.push({label:"No actions available",styleClass:"menuHeader"}),a.map(l=>this.attachSegmentEvent(l))}attachSegmentEvent(t,s){if(void 0!==t.items&&(t.items=t.items.map(a=>this.attachSegmentEvent(a,t))),void 0===t.command)return t;const r=t.command;return t.command=(...a)=>{const l={list:this.list.metadata};s&&(l.parentItemLabel=s.label),this.segmentService.trackEvent(new Mr(t.label,l)).catch(()=>console.error(`Segment event failed for ${t.label}`)),r(...a)},t}get selectionCollectionType(){const t=this.allOrNoCoursesSelectedWithinMultipleSelectedGroups(),r=this.coursesAreSelectedAcrossGroups(1===this.selectedGroups.length?this.selectedGroups[0].groupId:null);return 0===this.selectedGroups.length&&this.selectedCourses.length>0?r?b.onlyCoursesAcrossGroups:b.onlyCoursesInSameGroup:1===this.selectedGroups.length?this.selectedCourses.length>0?t&&!r?b.oneGroupAndAllCoursesInGroup:r?b.oneGroupAndCoursesAcrossGroups:b.variedCoursesSingleGroup:b.singleGroupNoCourses:0===this.selectedCourses.length?b.multipleGroupsNoCourses:r&&t?b.allCoursesInSelectedGroups:r&&!t||!r&&!t?b.multipleGroupsMultipleCourses:b.groupsAndCoursesInSelectedGroups}buildActions(t){let s=[];const r={label:st,command:()=>this.remove.emit(this.contextMenuRow)};switch(t){case b.singleGroupNoCourses:s.push({label:"Add courses",command:()=>this.addCourses.emit(this.contextMenuRow)},r);break;case b.multipleGroupsNoCourses:s.push(r);break;case b.onlyCoursesInSameGroup:case b.onlyCoursesAcrossGroups:case b.oneGroupAndAllCoursesInGroup:case b.allCoursesInSelectedGroups:case b.multipleGroupsMultipleCourses:case b.groupsAndCoursesInSelectedGroups:case b.variedCoursesSingleGroup:case b.oneGroupAndCoursesAcrossGroups:s.push(...[this.shouldHavePpuLibraryAction?{label:Dt,command:()=>{this.onAddToPpuLibrary.emit(this.contextMenuRow)}}:void 0,r].filter(a=>void 0!==a))}
1return!1===this.userCanEditList()&&(s=s.filter(a=>a.label!==st&&"Add courses"!==a.label)),s}buildMoveOptions(t){var s=this;const r=[];if(!1===this.userCanEditList())return r;const{groupId:a}=this.contextMenuRow;switch(t){case b.onlyCoursesInSameGroup:r.push({label:"Top of group",command:()=>{this.onMoveToTopOfGroup.emit({groupId:a})}},{label:"Bottom of group",command:()=>{this.onMoveToBottomOfGroup.emit({groupId:a})}},{label:"Group",items:this.groupFlyoutList(function(){var l=(0,d.Z)(function*(p){s.onAddToGroup.emit({groupId:p.id})});return function(p){return l.apply(this,arguments)}}())});break;case b.onlyCoursesAcrossGroups:r.push({label:"Group",items:this.groupFlyoutList(function(){var l=(0,d.Z)(function*(p){s.onAddToGroup.emit({groupId:p.id})});return function(p){return l.apply(this,arguments)}}())});break;case b.multipleGroupsNoCourses:case b.singleGroupNoCourses:case b.oneGroupAndAllCoursesInGroup:case b.allCoursesInSelectedGroups:case b.groupsAndCoursesInSelectedGroups:r.push({label:"Top of list",command:()=>this.onMoveToTopOfList.emit({groupId:a})},{label:"Bottom of list",command:()=>this.onMoveToBottomOfList.emit({groupId:a})},{label:"Above group",items:this.groupFlyoutList(l=>this.onMoveAboveGroup.emit({groupId:l.id,delta:l.delta}))})}return r}userCanEditList(){return-1!==this.collaboratorPermissions.indexOf(Z.v.Edit)}allOrNoCoursesSelectedWithinMultipleSelectedGroups(){let t=!0;return this.selectedGroups.forEach(s=>{this.allOrNoCoursesSelectedWithinGroup(s.groupId)||(t=!1)}),t}allOrNoCoursesSelectedWithinGroup(t){const s=this.selectedCourses.filter(r=>r.groupId===t);return 0===s.length||s.length===this.list.getCoursesInGroup(t).length}coursesAreSelectedAcrossGroups(t){if(0===this.selectedCourses.length)return!1;const s=this.selectedCourses[0].groupId,r=t||s;return void 0!==this.selectedCourses.find(a=>a.groupId!==s||a.groupId!==r)}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(B.f),e.Y36(I.B))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-list-context-menu"]],viewQuery:function(s,r){if(1&s&&e.Gf(Zr,7),2&s){let a;e.iGM(a=e.CRH())&&(r.menu=a.first)}},inputs:{hidden:"hidden",shouldHavePpuLibraryAction:"shouldHavePpuLibraryAction",collaboratorPermissions:"collaboratorPermissions",contextMenuRow:"contextMenuRow",selectedGroups:"selectedGroups",selectedCourses:"selectedCourses"},outputs:{addCourses:"addCourses",onAddToPpuLibrary:"onAddToPpuLibrary",packageAction:"packageAction",remove:"remove",onMoveToTopOfGroup:"onMoveToTopOfGroup",onMoveToBottomOfGroup:"onMoveToBottomOfGroup",onAddToGroup:"onAddToGroup",onMoveToTopOfList:"onMoveToTopOfList",onMoveToBottomOfList:"onMoveToBottomOfList",onMoveAboveGroup:"onMoveAboveGroup"},decls:3,vars:2,consts:[[3,"model","hidden"],["contextMenu",""]],template:function(s,r){1&s&&(e._UZ(0,"p-contextMenu",0,1),e._uU(2,"\n")),2&s&&e.Q6J("model",r.activeMenuItems)("hidden",r.hidden)},dependencies:[yt]}),i})();class Lr extends R.x{constructor(o){super("Requested List Group Courses",{listId:o.list.id,listTitle:o.list.title,initialQuery:o.initialQuery,location:o.location})}}var Sr=c(5801),Je=c(1339),Ar=c(2559),lt=c(1910),zt=c(4403),Vt=c(5905),Or=c(1426),jt=c(3081),ct=c(3930),Ir=c(1390);const kr=["listGroupCoursesModal"];function Nr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"app-course-preview",4),e.NdJ("onExternalActionPressed",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.viewCourseDetails(null))}),e.qZA()}if(2&i){const n=e.oxw();e.Q6J("courseId",n.selectedCourseId)("allowFeedback",!1)("highlightBar",!0)}}function qr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",21),e._uU(1,"\n "),e.TgZ(2,"button",22),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.selectTab(s.AddCoursesTab.CurationAssistant))}),e._uU(3,"\n "),e.TgZ(4,"i",23),e._uU(5,"auto_awesome"),e.qZA(),e._uU(6,"\n Curation Assistant\n "),e.qZA(),e._uU(7,"\n "),e.TgZ(8,"button",22),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.selectTab(s.AddCoursesTab.Search))}),e._uU(9,"\n Search\n "),e.qZA(),e._uU(10,"\n "),e.qZA()}if(2&i){const n=e.oxw(2);e.ekj("search-active",n.activeTab===n.AddCoursesTab.Search),e.xp6(2),e.ekj("active",n.activeTab===n.AddCoursesTab.CurationAssistant),e.Q6J("disabled",n.selectionModeEnabled),e.uIk("aria-selected",n.activeTab===n.AddCoursesTab.CurationAssistant),e.xp6(6),e.ekj("active",n.activeTab===n.AddCoursesTab.Search),e.Q6J("disabled",n.selectionModeEnabled),e.uIk("aria-selected",n.activeTab===n.AddCoursesTab.Search)}}const Fr=function(i){return["e2e-select-courses",i]};function Gr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",24),e._uU(1,"\n "),e.TgZ(2,"div",25),e._uU(3,"\n "),e.TgZ(4,"og-typography",26),e._uU(5,"\n "),e.TgZ(6,"span",27),e._uU(7,"Results for:"),e.qZA(),e._uU(8,"\n "),e.TgZ(9,"span",28),e._uU(10),e.qZA(),e._uU(11,"\n "),e.qZA(),e._uU(12,"\n "),e.TgZ(13,"og-button",29),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.toggleSelectionMode(!0))}),e._uU(14,"\n Select courses\n "),e.qZA(),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.qZA()}if(2&i){const n=e.oxw(2);e.xp6(2),e.Q6J("hidden",n.activeTab!==n.AddCoursesTab.Search),e.xp6(8),e.Oqu(n.formTitle),e.xp6(3),e.Q6J("className",e.VKq(3,Fr,n.classes.selectCoursesButton))}}function Jr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(3);return e.KtG(s.removeSelections())}),e._uU(1,"\n Deselect All\n "),e.qZA()}}function Qr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(3);return e.KtG(s.selectAll())}),e._uU(1,"\n Select All\n "),e.qZA()}}function Er(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div"),e._uU(1,"\n "),e.TgZ(2,"og-button",40),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(3);return e.KtG(s.addSelectionsToGroup())}),e._uU(3,"\n Add To Group\n "),e.qZA(),e._uU(4,"\n "),e.qZA()}if(2&i){const n=e.oxw(3);e.xp6(2),e.Q6J("className",n.classes.addToGroupButton)("disabled",n.isAddingToGroup)}}function Dr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",30),e._uU(1,"\n "),e.TgZ(2,"og-svg-icon",31),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.toggleSelectionMode(!1))}),e.qZA(),e._uU(3,"\n "),e.TgZ(4,"div",32),e._uU(5,"\n "),e.TgZ(6,"div",33),e._uU(7,"\n "),e.TgZ(8,"div",34),e._uU(9),e.qZA(),e._uU(10,"\n "),e.YNc(11,Jr,2,0,"button",35),e._uU(12,"\n "),e.YNc(13,Qr,2,0,"button",36),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.YNc(16,Er,5,2,"div",37),e._uU(17,"\n "),e.qZA(),e._uU(18,"\n "),e.qZA()}if(2&i){const n=e.oxw(2);e.xp6(2),e.Q6J("className",n.classes.closeSelectionIcon),e.xp6(7),e.hij("",n.count," selected"),e.xp6(2),e.Q6J("ngIf",n.count===n.listGroupCourses.length),e.xp6(2),e.Q6J("ngIf",n.count!==n.listGroupCourses.length),e.xp6(3),e.Q6J("ngIf",n.count>0)}}const Br=function(){return{"highlight-color-secondary":!0}},Yr=function(){return["productType"]};function Hr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",41),e._uU(1,"\n "),e.TgZ(2,"app-form-search",42),e.NdJ("submitSearch",function(s){e.CHM(n);const r=e.oxw(2);return e.KtG(r.enterPressed(s))})("onKeyup",function(s){e.CHM(n);const r=e.oxw(2);return e.KtG(r.doGroupCoursesSearch(s))})("onFocus",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.searchFocused())})("onBlur",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.searchBlurred())})("clearSearch",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.clearSearch())})("ngModelChange",function(s){e.CHM(n);const r=e.oxw(2);return e.KtG(r.searchTermInput=s)}),e.qZA(),e._uU(3,"\n "),e._UZ(4,"app-facet-panel",43),e._uU(5,"\n "),e.qZA()}if(2&i){const n=e.oxw(2);e.xp6(2),e.Q6J("wrapperClasses",e.DdM(5,Br))("ngModel",n.searchTermInput),e.xp6(2),e.Q6J("searchResponse",n.coursesResponse)("suppressedFacets",e.DdM(6,Yr))("showCounts",!1)}}function Rr(i,o){1&i&&(e._uU(0,"\n "),e.TgZ(1,"div",44),e._uU(2,"\n "),e._UZ(3,"app-loading-indicator"),e._uU(4,"\n "),e.qZA(),e._uU(5,"\n "))}function zr(i,o){if(1&i&&(e.TgZ(0,"div",45),e._uU(1,"\n "),e._UZ(2,"app-loading-indicator"),e._uU(3,"\n "),e.qZA()),2&i){const n=e.oxw(2);e.Q6J("hidden",n.activeTab!==n.AddCoursesTab.Search)}}function Vr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"app-course-card",53),e.NdJ("selectionChanged",function(s){const r=e.CHM(n),a=r.$implicit,l=r.index,p=e.oxw(4);return e.KtG(p.selectCourse(a,l,s.selected))})("addToList",function(){const s=e.CHM(n),r=s.$implicit,a=s.index,l=e.oxw(4);return e.KtG(l.addSingleToGroup(r,a))})("courseLinkPressed",function(s){e.CHM(n);const r=e.oxw(4);return e.KtG(r.viewCourseDetails(s))}),e.qZA()}if(2&i){const n=o.$implicit,t=o.index,s=e.oxw(4);e.Q6J("course",n)("disableNavigation",!0)("indexPosition",t)("selected",s.isSelected(n))("showOptionsOverlay",!0)("selectionModeEnabled",s.selectionModeEnabled)("addToListDisabled",s.isAddingToGroup)("@addCourse",void 0)}}function jr(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",54),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(4);return e.KtG(s.loadNextPageOfCourses())}),e._uU(1,"Load More"),e.qZA()}}function Kr(i,o){if(1&i&&(e.TgZ(0,"div",48),e._uU(1,"\n "),e.TgZ(2,"div",49),e._uU(3,"\n "),e.YNc(4,Vr,1,8,"app-course-card",50),e._uU(5,"\n "),e.qZA(),e._uU(6,"\n "),e.TgZ(7,"div",51),e._uU(8,"\n "),e.YNc(9,jr,2,0,"og-button",52),e._uU(10,"\n "),e.qZA(),e._uU(11,"\n "),e.qZA()),2&i){const n=e.oxw(3);e.Q6J("hidden",n.activeTab!==n.AddCoursesTab.Search),e.xp6(4),e.Q6J("ngForOf",n.listGroupCourses),e.xp6(
15),e.Q6J("ngIf",n.showLoadMoreButton())}}function $r(i,o){if(1&i&&(e.TgZ(0,"div",55),e._uU(1,"\n No Training Courses Found\n "),e.qZA()),2&i){const n=e.oxw(3);e.Q6J("hidden",n.activeTab!==n.AddCoursesTab.Search)}}function Wr(i,o){if(1&i&&(e._uU(0,"\n "),e.YNc(1,Kr,12,3,"div",46),e._uU(2,"\n "),e.YNc(3,$r,2,1,"div",47),e._uU(4,"\n ")),2&i){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",n.hasCourses()),e.xp6(2),e.Q6J("ngIf",!n.hasCourses())}}const Xr=function(i){return{display:i}},ea=function(i){return{disabled:i}},ta=function(){return{width:"100%",height:"100%"}};function na(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",5),e._uU(1,"\n "),e.TgZ(2,"div",6),e._uU(3,"\n "),e.TgZ(4,"h2",7),e._uU(5,"Add Courses"),e.qZA(),e._uU(6,"\n "),e.YNc(7,qr,11,10,"div",8),e._uU(8,"\n "),e.TgZ(9,"button",9),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.hide())}),e._uU(10,"\n "),e.TgZ(11,"i",10),e._uU(12,"close"),e.qZA(),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.YNc(16,Gr,17,5,"div",11),e._uU(17,"\n "),e.YNc(18,Dr,19,5,"div",12),e._uU(19,"\n "),e.TgZ(20,"div",13),e._uU(21,"\n "),e._UZ(22,"app-ai-assistant-chat",14),e._uU(23,"\n "),e.qZA(),e._uU(24,"\n "),e.TgZ(25,"div",15),e._uU(26,"\n "),e.TgZ(27,"p-scrollPanel",16),e._uU(28,"\n "),e.YNc(29,Hr,6,7,"div",17),e._uU(30,"\n "),e.YNc(31,Rr,6,0,"ng-template",null,18,e.W1O),e._uU(33,"\n "),e.qZA(),e._uU(34,"\n "),e.qZA(),e._uU(35,"\n "),e.YNc(36,zr,4,1,"div",19),e._uU(37,"\n "),e.YNc(38,Wr,5,2,"ng-template",null,20,e.W1O),e._uU(40,"\n "),e.qZA()}if(2&i){const n=e.MAs(32),t=e.MAs(39),s=e.oxw();e.Q6J("ngStyle",e.VKq(18,Xr,s.selectedCourseId?"none":"block"))("@fadeInOut",void 0),e.xp6(7),e.Q6J("ngIf",!s.isEnterpriseContentPlatform),e.xp6(9),e.Q6J("ngIf",!s.selectionModeEnabled),e.xp6(2),e.Q6J("ngIf",s.selectionModeEnabled),e.xp6(2),e.Q6J("hidden",s.activeTab!==s.AddCoursesTab.CurationAssistant),e.xp6(2),e.Q6J("listData",s.list)("groupId",s.aiAssistantGroupId)("groupName",null==s.groupData?null:s.groupData.title),e.xp6(3),e.Q6J("hidden",s.activeTab!==s.AddCoursesTab.Search)("ngClass",e.VKq(20,ea,s.selectionModeEnabled)),e.xp6(2),e.Akn(e.DdM(22,ta)),e.uIk("aria-hidden",s.selectionModeEnabled),e.xp6(2),e.Q6J("ngIf",s.criteria)("ngIfElse",n),e.xp6(7),e.Q6J("ngIf",s.isLoading)("ngIfElse",t)}}const Qe={omit:q.omit,pullAllBy:q.pullAllBy,union:q.union,values:q.values};var pe=(()=>{return(i=pe||(pe={})).CurationAssistant="curationAssistant",i.Search="search",pe;var i})();let ut=((ie=class{get aiAssistantGroupId(){return this.groupData&&!(0,g.vK)(this.groupData.title)?this.groupData.groupId:void 0}get courseCardLocation(){return g.XX.ListGroupCoursesModal}get isEnterpriseContentPlatform(){return this.integration.isEnterpriseContentPlatform}constructor(o,n,t,s,r,a,l,p,h,m,T){this.products=o,this.listService=n,this.notificationService=t,this.messageBus=s,this.segmentService=r,this.searchHelperService=a,this.facetChipService=l,this.selection=p,this.criteriaParameterConverterService=h,this.addToCourseListDrawerService=m,this.integration=T,this.AddCoursesTab=pe,this.onSubmit=new e.vpe,this.openCoursePreview=new e.vpe,this.subscriptions=[],this.searchTermInput="",this.listGroupCourses=[],this.isAddingToGroup=!1,this.searchActive=!1,this.selectedFacetCountDisplay="",this.count=0,this.activeTab=pe.CurationAssistant,this.listGroupCoursesQuery=new Ar.$(L=>(this.criteria.query=L||void 0,this.getNewCourses(this.criteria)))}ngOnInit(){var o=this;this.selection.setSelectionMode(!1),this.subscriptions.push(this.selection.selectionModeEnabled().subscribe(n=>this.selectionModeEnabled=n),this.selection.count().subscribe(n=>this.count=n),this.facetChipService.facetChipsUpdated.subscribe(function(){var n=(0,d.Z)(function*(t){yield o.facetSelectionChanged(t)});return function(t){return n.apply(this,arguments)}}()),this.addToCourseListDrawerService.coursesAddedSubject.subscribe(()=>{this.removeCourses(this.selection.items)}),this.addToCourseListDrawerService.closingDrawerSubject.subscribe(()=>{this.selectionModeEnabled||this.selection.removeAll()}))}ngOnDestroy(){this.subscriptions.forEach(o=>{o.unsubscribe()}),this.listGroupCoursesQuery.unsubscribe()}trackPanel(o=""){return this.segmentService.trackEvent(new Lr({list:this.list,initialQuery:(0,g.vK)(this.groupData.title)?this.list.title:this.groupData.title,location:o}))}getNewCoursesAndSaveCriteria(o){var n=this;return(0,d.Z)(function*(){yield n.getNewCourses(o),n.saveGroupCriteria()})()}getNewCourses(o){var n=this;return(0,d.Z)(function*(){try{n.isLoading=!0,n.listGroupCourses=yield n.getListGroupCourses(o)}catch(t){throw t}finally{n.isLoading=!1}})()}getListGroupCourses(o){var n=this;return(0,d.Z)(function*(t,s=!1){const r={...t};r.filters=r.filters||{},r.filters.productType=[Ut.NR.course],r.filters.exclusions=s?Qe.union(n.groupCourses.map(l=>l.guid),n.listGroupCourses.map(l=>l.guid)):n.groupCourses.map(l=>l.guid);const a=yield n.products.search(r,{offset:0});return n.coursesResponse=0===a.courses.length&&n.coursesResponse?{...a,selectedFacets:n.mapEmptyResultsCriteriaToSelectedFacets(r),facetValues:n.coursesResponse.facetValues}:a,n.trackGroupCourses(r,n.coursesResponse).catch(l=>{console.error(l)}),n.coursesResponse.courses}).apply(this,arguments)}mapEmptyResultsCriteriaToSelectedFacets(o){const n={accreditationIds:"accreditationFacet",categoryIds:"categoriesFacet",courseStyle:"coursStyle",durationRanges:"durationRanges",featureIds:"featuresFacet",isPlus:"isPlus",isCustomizable:"isCu
1stomizable",languages:"languages",priceRanges:"priceRanges",productType:"productType",publisherIds:"publishersFacet",ratingsRange:"ratingsRanges"},t={...this.coursesResponse.selectedFacets};return Object.keys(o.filters).forEach(s=>{const r=o.filters[s],a=n[s];a&&(!r||0===r.length)&&(t[a]=[])}),t}saveGroupCriteria(){const o=Qe.omit(this.criteria.filters,"exclusions");this.listService.saveGroupCriteria(this.list.id,this.groupData.groupId,this.criteria.query,o).catch(n=>{console.error(n)})}loadNextPageOfCourses(){var o=this;return(0,d.Z)(function*(){const n=yield o.getListGroupCourses(o.criteria,!0);o.listGroupCourses.push(...n)})()}addSingleToGroup(o,n){var t=this;return(0,d.Z)(function*(){if(t.isAddingToGroup)return;const s=Me.s.getTotalSearchCourseCount(o);t.selection.addSelection({index:n,selectable:o,internalCount:s}),yield t.addSelectionsToGroup()})()}addSelectionsToGroup(){var o=this;return(0,d.Z)(function*(){if(o.isAddingToGroup)return;const n=o.selection.selectableResults,t=o.selection.items;try{o.isAddingToGroup=!0;const s=Me.s.generateListCoursesFromSearchCourses(t);yield o.addToCourseListDrawerService.openDrawer({showScrim:!0,courses:s,segmentFrom:o.courseCardLocation,listData:o.list,groupId:o.groupData.groupId})}
1catch(s){console.log(s),o.addCoursesToGroup(n),n.forEach(r=>o.selectCourse(r.selectable,r.index,!0)),o.notificationService.publishNotification(x.n.ListErrorText,"error")}finally{o.isAddingToGroup=!1}})()}removeCourses(o){Qe.pullAllBy(this.listGroupCourses,o,"guid"),this.selection.removeAll()}addCoursesToGroup(o){o.forEach(n=>{this.listGroupCourses.splice(n.index,0,n.selectable)})}trackGroupCourses(o,n){var t=this;return(0,d.Z)(function*(){t.messageBus.publish(fe.TrackListGroupCoursesRequested,{event:"List Group Courses",data:{criteria:o,courses:t.coursesForEvent(n.courses)},context:{listId:t.list.id,groupId:t.groupData.groupId}}),yield t.segmentService.trackEvent(new Sr.p({location:g.XX.ListGroupCoursesModal,criteria:o,facetValues:n.facetValues,resultsCount:n.courses.length,searchResults:{search:n}}))})()}coursesForEvent(o){return o.map(n=>({guid:n.guid,title:n.title,id:n.id}))}facetSelectionChanged(o){var n=this;return(0,d.Z)(function*(){n.criteria=n.buildCriteriaFromFacets(o),n.coursesResponse.selectedFacets=o;const t=Qe.values(n.criteria.filters).reduce((s,r)=>Array.isArray(r)?s+r.length:r?s+1:s,0);n.selectedFacetCountDisplay=t>0?` (${t})`:"",n.searchHelperService.audioTranslated=n.criteria.filters.audioTranslated||!1,n.searchHelperService.subtitlesTranslated=n.criteria.filters.subtitlesTranslated||!1,n.searchHelperService.languageExactMatch=n.criteria.filters.languageExactMatch??!0,n.searchHelperService.isPlus=n.criteria.filters.isPlus||!1,n.listGroupCourses=[],yield n.getNewCoursesAndSaveCriteria(n.criteria),n.listGroupCourses=n.coursesResponse.courses})()}buildCriteriaFromFacets(o){const{audioTranslated:n,courseText:t,subtitlesTranslated:s,languageExactMatch:r,isPlus:a}=this.searchHelperService;return{query:this.criteria.query,filters:this.criteriaParameterConverterService.buildCriteriaFromFacets(o,n,s,t,a,!1,r).filters}}show(o){var n=this;return(0,d.Z)(function*(){const{group:t,groupCourses:s,location:r,list:a}=o;if(n.activeTab=n.isEnterpriseContentPlatform?pe.Search:pe.CurationAssistant,n.listGroupCourses=[],n.groupData=t,n.groupCourses=s,n.list=a,n.formTitle=(0,g.vK)(n.groupData.title)?n.list.title:n.groupData.title,n.modal.show(),n.criteria=yield n.listService.getGroupCriteria(n.list.id,n.groupData.groupId),null===n.criteria&&(n.criteria={query:n.formTitle,filters:{}}),void 0!==n.criteria.filters){n.criteria.filters.audioTranslated=n.searchHelperService.audioTranslated,n.criteria.filters.subtitlesTranslated=n.searchHelperService.subtitlesTranslated;const l=n.searchHelperService.isPlus;n.criteria.filters.isPlus=!0===l?l:void 0}n.searchTermInput=n.criteria.query,yield n.getNewCourses(n.criteria),yield n.trackPanel(r)})()}hide(o=!0){this.modal.hide(o),this.reset()}reset(){this.searchTermInput="",this.criteria=null,this.selectedCourseId=null,this.isAddingToGroup=!1,this.toggleSelectionMode(!1)}selectTab(o){this.activeTab=o}hasCourses(){return this.coursesResponse&&this.listGroupCourses.length>0||this.showLoadMoreButton()}viewCourseDetails(o){this.selectedCourseId=o&&o.product.id?o.product.id:null}selectCourse(o,n,t){if(t){const s=Me.s.getTotalSearchCourseCount(o);this.selection.addSelection({index:n,selectable:o,internalCount:s})}else this.selection.removeSelection(o)}isSelected(o){return this.selection.isSelected(o)}removeSelections(){this.selection.removeAll()}selectAll(){const o=this.listGroupCourses.map((n,t)=>({index:t,selectable:n,internalCount:Me.s.getTotalSearchCourseCount(n)}));this.selection.addSelection(o)}showLoadMoreButton(){return this.coursesResponse&&null!==this.coursesResponse.nextPageOffset}enterPressed(o){""!==o&&(this.criteria.query=o,this.getNewCoursesAndSaveCriteria(this.criteria).catch(n=>{console.error(n)}))}searchFocused(){this.searchActive=!0}searchBlurred(){this.searchActive=!1}clearSearch(){this.criteria.query=void 0,this.listGroupCourses=[],this.coursesResponse=null,this.getNewCoursesAndSaveCriteria(this.criteria).catch(o=>{console.error(o)})}doGroupCoursesSearch(o){const{value:n,key:t}=o;t!==Q.VD.Space&&t!==Q.VD.Enter&&this.listGroupCoursesQuery.submit(n)}toggleSelectionMode(o){this.selection.setSelectionMode(o),o||this.selection.removeAll()}}).\u0275fac=function(n){return new(n||ie)(e.Y36(Te.r),e.Y36(S.XN),e.Y36(w.g),e.Y36(qe.Y),e.Y36(I.B),e.Y36(zt.D),e.Y36(Je.T),e.Y36(lt.z),e.Y36(Vt.P),e.Y36(be.i),e.Y36(Fe.Y))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["app-list-group-courses-modal"]],viewQuery:function(n,t){if(1&n&&e.Gf(kr,7),2&n){let s;e.iGM(s=e.CRH())&&(t.modal=s.first)}},outputs:{onSubmit:"onSubmit",openCoursePreview:"openCoursePreview"},features:[e._Bn([Je.T])],decls:8,vars:3,consts:[["modalContainerWidth","1000px",3,"rightPanel","onHide"],["listGroupCoursesM
1odal",""],["location","list group courses panel","navButtonText","back","navButtonIcon","arrow_back",3,"courseId","allowFeedback","highlightBar","onExternalActionPressed",4,"ngIf"],["class","list-group-courses-modal bg-light-primary","role","dialog","aria-label","Add courses drawer",3,"ngStyle",4,"ngIf"],["location","list group courses panel","navButtonText","back","navButtonIcon","arrow_back",3,"courseId","allowFeedback","highlightBar","onExternalActionPressed"],["role","dialog","aria-label","Add courses drawer",1,"list-group-courses-modal","bg-light-primary",3,"ngStyle"],[1,"add-courses-header","bg-light-primary","pl-25","pr-40"],[1,"add-courses-title"],["class","add-courses-tabs","role","tablist","aria-label","Add courses options",3,"search-active",4,"ngIf"],["aria-label","Close add courses drawer",1,"add-courses-close-button","p-10","text-size-xl","text-light","focus-shadow",3,"click"],[1,"material-icons"],["class","bg-light-primary panel-header",4,"ngIf"],["class","selection-header bg-light-primary",4,"ngIf"],["role","tabpanel",1,"add-courses-curation-assistant-panel","bg-light-primary",3,"hidden"],["mode","drawer",3,"listData","groupId","groupName"],["role","tabpanel",1,"fly-out","bg-light-primary",3,"hidden","ngClass"],[1,"firefox-padding"],["class","py-5 py-md-30 px-20 bg-light-primary",4,"ngIf","ngIfElse"],["facetLoader",""],["class","loader",3,"hidden",4,"ngIf","ngIfElse"],["hasListGroupCoursesResponse",""],["role","tablist","aria-label","Add courses options",1,"add-courses-tabs"],["type","button","role","tab",1,"add-courses-tab",3,"disabled","click"],["aria-hidden","true",1,"material-icons"],[1,"bg-light-primary","panel-header"],[1,"add-courses-search-summary","px-35","py-20",3,"hidden"],["gutterBottom","true","variant","h2"],[1,"text-size-md","semi-bold"],[1,"text-size-sm","notranslate","e2e-list-group-courses-panel-title"],["size","sm",3,"className","click"],[1,"selection-header","bg-light-primary"],["color","inherit","icon","close",1,"close-selection-button",3,"className","click"],[1,"px-35","selection-items-group"],[1,"selection-details-item"],[1,"text-size-md","semi-bold","selected-count-text"],["class","link text-size-sm deselect-all-button",3,"click",4,"ngIf"],["class","link text-size-sm select-all-button",3,"click",4,"ngIf"],[4,"ngIf"],[1,"link","text-size-sm","deselect-all-button",3,"click"],[1,"link","text-size-sm","select-all-button",3,"click"],["size","md","startIcon","add_circle","variant","contained",3,"className","disabled","click"],[1,"py-5","py-md-30","px-20","bg-light-primary"],["placeholder","Search courses","inputId","list-group-courses-search","label","Search courses","labelClass","visually-hidden","formInputName","list-group-courses-search-bar",1,"search-bar",3,"wrapperClasses","ngModel","submitSearch","onKeyup","onFocus","onBlur","clearSearch","ngModelChange"],[3,"searchResponse","suppressedFacets","showCounts"],[1,"loader"],[1,"loader",3,"hidden"],["class","courses-container",3,"hidden",4,"ngIf"],["class","text-medium mt-80 pt-80 text-center",3,"hidden",4,"ngIf"],[1,"courses-container",3,"hidden"],[1,"card-grid","px-40","pb-30","pt-20"],[3,"course","disableNavigation","indexPosition","selected","showOptionsOverlay","selectionModeEnabled","addToListDisabled","selectionChanged","addToList","courseLinkPressed",4,"ngFor","ngForOf"],[1,"p-40","text-center"],["size","sm",3,"click",4,"ngIf"],[3,"course","disableNavigation","indexPosition","selected","showOptionsOverlay","selectionModeEnabled","addToListDisabled","selectionChanged","addToList","courseLinkPressed"],["size","sm",3,"click"],[1,"text-medium","mt-80","pt-80","text-center",3,"hidden"]],template:function(n,t){if(1&n&&(e.TgZ(0,"app-modal",0,1),e.NdJ("onHide",function(){return t.reset()}),e._uU(2,"\n "),e.YNc(3,Nr,1,3,"app-course-preview",2),e._uU(4,"\n "),e.YNc(5,na,41,23,"div",3),e._uU(6,"\n"),e.qZA(),e._uU(7,"\n")),2&n){const s=e.MAs(1);e.Q6J("rightPanel",!0),e.xp6(3),e.Q6J("ngIf",t.selectedCourseId),e.xp6(2),e.Q6J("ngIf",!s.hidden)}},dependencies:[Or.e,M.r0,_.mk,_.sg,_.O5,_.PC,jt.u,We.F,u.JJ,ct.P,u.On,W.Q,Ir.I,Ge,J.z,Ue.bk,N.lo],styles:['[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}.loader[_ngcontent-%COMP%]{margin:110px auto 0}.list-group-courses-modal[_ngcontent-%COMP%]{min-height:100vh;position:relative}.add-courses-header[_ngcontent-%COMP%]{align-items:center;background-color:#fff;border-bottom:1px solid #dddce5;display:flex;justify-content:space-between;min-height:80px;position:sticky;top:0;z-index:20}.add-courses-title[_ngcontent-%COMP%]{color:#1c1b22;font-family:Poppins,Open Sans,Helvetica,Helvetica,Arial,sans-serif;font-size:24px;font-weight:600;line-height:130%;margin:0}.add-courses-tabs[_ngcontent-%COMP%]{align-items:center;background-color:#fff;border:1px solid #888799;border-radius:1000px;display:grid;gap:4px;grid-template-columns:1fr 1fr;overflow:hidden;padding:2px;position:relative;width:380px}.add-courses-tabs[_ngcontent-%COMP%]:before{background-color:#2c2b36;border-radius:1000px;content:"";height:26px;left:2px;animation:_ngcontent-%COMP%_active-pill-squish-left .26s ease-out;position:absolute;transform-origin:center;transition:left .26s cubic-bezier(.34,1.56,.64,1),width .26s cubic-bezier(.34,1.56,.64,1);width:calc((100% - 8px)/2)}
1.add-courses-tabs.search-active[_ngcontent-%COMP%]:before{animation-name:_ngcontent-%COMP%_active-pill-squish-right;left:calc(50% + 2px)}@keyframes _ngcontent-%COMP%_active-pill-squish-left{0%{transform:scaleX(1)}45%{transform:scaleX(.82)}75%{transform:scaleX(1.03)}to{transform:scaleX(1)}}@keyframes _ngcontent-%COMP%_active-pill-squish-right{0%{transform:scaleX(1)}45%{transform:scaleX(.82)}75%{transform:scaleX(1.03)}to{transform:scaleX(1)}}.add-courses-tab[_ngcontent-%COMP%]{align-items:center;background-color:transparent;border:0;border-radius:1000px;color:#59596c;display:flex;font-family:Poppins,Open Sans,Helvetica,Helvetica,Arial,sans-serif;font-size:14px;font-weight:600;gap:4px;justify-content:center;line-height:130%;padding:4px 16px;position:relative;white-space:nowrap;width:100%;z-index:1}.add-courses-tab.active[_ngcontent-%COMP%]{color:#fff}.add-courses-tab[_ngcontent-%COMP%]:not(.active):hover{background-color:#f8f7fa;color:#59596c}.add-courses-tab[_ngcontent-%COMP%]:focus{outline:none}.add-courses-tab[_ngcontent-%COMP%]:focus-visible{box-shadow:0 0 0 2px #888799}.add-courses-tab[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:16px}@media (prefers-reduced-motion: reduce){.add-courses-tabs[_ngcontent-%COMP%]:before{animation:none;transition-duration:1ms;transition-timing-function:linear}}.add-courses-close-button[_ngcontent-%COMP%]{background:transparent;border:0;border-radius:50%;color:#1c1b22;line-height:0}.add-courses-close-button[_ngcontent-%COMP%]:hover{background-color:#f8f7fa}.add-courses-curation-assistant-panel[_ngcontent-%COMP%]{min-height:calc(100vh - 80px);overflow:clip;padding-inline:60px}.add-courses-curation-assistant-placeholder[_ngcontent-%COMP%]{min-height:1px}.fly-out[_ngcontent-%COMP%]{min-height:calc(100vh - 80px);width:300px;position:absolute;inset:80px auto 0 0;transform:none;text-align:left;border-right:1px solid #e8e8e8}.fly-out.disabled[_ngcontent-%COMP%] [_ngcontent-%COMP%]:after{opacity:.2;content:"";display:block;position:absolute;inset:0;background-color:#fff;z-index:10}.add-courses-search-summary[_ngcontent-%COMP%], .courses-container[_ngcontent-%COMP%]{margin-left:300px}@-moz-document url-prefix(){.firefox-padding>div:first-child{padding-right:15px}}.select-all-button[_ngcontent-%COMP%], .deselect-all-button[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 16px 0 0;color:#59596c;border:none;font-family:Poppins;font-weight:600;text-decoration:none}.select-all-button[_ngcontent-%COMP%]:hover, .deselect-all-button[_ngcontent-%COMP%]:hover{color:#0b0a14;background-color:#fff}.selected-count-text[_ngcontent-%COMP%]{color:#000;font-family:Poppins;font-weight:600;line-height:20.8px}.close-selection-button[_ngcontent-%COMP%]{float:right;margin:11px 32px 0 0}@media (max-width: 1140px){.fly-out[_ngcontent-%COMP%]{min-height:auto;width:100%;position:relative;inset:auto}.add-courses-search-summary[_ngcontent-%COMP%], .courses-container[_ngcontent-%COMP%]{margin-left:0}}.icon-circle[_ngcontent-%COMP%]{transition:all .25s ease;border-radius:50%;font-size:20px;padding:3px;margin-top:-3px;background-color:#f5f5f5;color:#555}.icon-button[_ngcontent-%COMP%]{font-size:13px}.icon-button[_ngcontent-%COMP%]:hover .icon-circle[_ngcontent-%COMP%], .icon-button[_ngcontent-%COMP%]:focus .icon-circle[_ngcontent-%COMP%]{background-color:#e8e8e8}.icon-button[_ngcontent-%COMP%]:focus{outline:none}.icon-button[_ngcontent-%COMP%]:focus .icon-circle[_ngcontent-%COMP%]{box-shadow:0 0 2px 2px #005e9e4d}.ted[_nghost-%COMP%] .icon-button[_ngcontent-%COMP%]:focus .icon-circle[_ngcontent-%COMP%], .ted [_nghost-%COMP%] .icon-button[_ngcontent-%COMP%]:focus .icon-circle[_ngcontent-%COMP%]{box-shadow:0 0 2px 2px #0000004d}.icon-button.active[_ngcontent-%COMP%] .icon-circle[_ngcontent-%COMP%]{color:#fff;background-color:#777;transform:rotate(180deg)}.selection-header[_ngcontent-%COMP%]{position:fixed;box-shadow:0 2px 4px 3px #0000000d;height:79px;width:700px;max-width:95%;right:0;top:0;z-index:1000}.selection-items-group[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%}
1.selection-details-item[_ngcontent-%COMP%]{min-width:150px;display:flex;flex-direction:column;gap:8px}@media (max-width: 1140px){.icon-circle[_ngcontent-%COMP%]{transform:rotate(270deg)}.icon-button.active[_ngcontent-%COMP%] .icon-circle[_ngcontent-%COMP%]{transform:rotate(90deg)}}'],data:{animation:[K.Ic,(0,Y.X$)("addCourse",[(0,Y.eR)(":leave",[(0,Y.jt)("0.5s ease-out",(0,Y.oB)({opacity:0}))])])]}}),ie);ut=(0,k.gn)([(0,v.ozS)(i=>(0,v.kcS)({selectCoursesButton:{fontFamily:"Poppins",fontSize:"14px",fontWeight:600,color:"#59596c",border:"none",paddingLeft:"0px",marginLeft:"-4px","&:hover":{color:"#0b0a14",backgroundColor:"#ffffff"}},closeSelectionIcon:{fill:"#59596C","&:hover":{fill:"#0B0A14"}},addToGroupButton:{border:"none",color:"#59596C",lineHeight:"23.1px",fontSize:"14px",height:"35px","&:hover":{backgroundColor:"#F4F2F7",color:"#0B0A14"},"& .og-button-start-icon":{marginTop:"-4px",marginLeft:"-8px"}}})),(0,k.w6)("design:paramtypes",[Te.r,S.XN,w.g,qe.Y,I.B,zt.D,Je.T,lt.z,Vt.P,be.i,Fe.Y])],ut);const ia=["modal"];function sa(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",7),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.remove("groups"))}),e._uU(1),e.ALo(2,"i18nPlural"),e.qZA()}if(2&i){const n=e.oxw(2);e.xp6(1),e.hij("\n ",e.xi3(2,1,n.selectedGroups.length,n.itemPluralMapping.groups),"\n ")}}function ra(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",8),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.remove("courses"))}),e._uU(1),e.ALo(2,"i18nPlural"),e.qZA()}if(2&i){const n=e.oxw(2);e.xp6(1),e.hij("\n ",e.xi3(2,1,n.selectedCourses.length,n.itemPluralMapping.courses),"\n ")}}function aa(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",9),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.remove("all"))}),e._uU(1,"\n Remove All Selections\n "),e.qZA()}}function la(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",10),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.hide())}),e._uU(1,"Cancel"),e.qZA()}}function ca(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.YNc(2,sa,3,4,"og-button",3),e._uU(3,"\n "),e.YNc(4,ra,3,4,"og-button",4),e._uU(5,"\n "),e.YNc(6,aa,2,0,"og-button",5),e._uU(7,"\n "),e.YNc(8,la,2,0,"og-button",6),e._uU(9,"\n "),e.BQk()),2&i){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",n.selectedGroups.length>0),e.xp6(2),e.Q6J("ngIf",n.selectedCourses.length>0&&!n.requestInProgress),e.xp6(2),e.Q6J("ngIf",n.selectedGroups.length>0&&n.selectedCourses.length>0&&!n.requestInProgress),e.xp6(2),e.Q6J("ngIf",!n.requestInProgress)}}function ua(i,o){1&i&&e._UZ(0,"app-loading-indicator")}let da=(()=>{const o=class{constructor(){this.onSubmit=new e.vpe,this.requestInProgress=!1,this.itemPluralMapping={groups:{"=1":"Remove Group",other:"Remove Groups"},courses:{"=1":"Remove Course",other:"Remove Courses"}}}ngOnInit(){this.requestInProgress=!1}hide(){this.modal.hide(!0),this.requestInProgress=!1}show(t){this.selectedGroups=t.selectedGroups,this.selectedCourses=t.selectedCourses,this.modal.show(),this.requestInProgress=!1}remove(t){this.onSubmit.emit({removalType:t}),this.requestInProgress=!0}};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-remove-selections-modal"]],viewQuery:function(s,r){if(1&s&&e.Gf(ia,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{onSubmit:"onSubmit"},decls:8,vars:3,consts:[["headline","Remove Selections","subHeadline","Remove selected items from list.","googleIconImageName","delete_forever",3,"wide"],["modal",""],[4,"ngIf"],["className","e2e-remove-groups","color","primary","size","sm","variant","contained",3,"click",4,"ngIf"],["className","e2e-remove-courses","color","primary","size","sm","variant","contained",3,"click",4,"ngIf"],["color","primary","size","sm","variant","contained",3,"click",4,"ngIf"],["size","sm",3,"click",4,"ngIf"],["className","e2e-remove-groups","color","primary","size","sm","variant","contained",3,"click"],["className","e2e-remove-courses","color","primary","size","sm","variant","contained",3,"click"],["color","primary","size","sm","variant","contained",3,"click"],["size","sm",3,"click"]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e._uU(2,"\n "),e.YNc(3,ca,10,4,"ng-container",2),e._uU(4,"\n "),e.YNc(5,ua,1,0,"app-loading-indicator",2),e._uU(6,"\n"),e.qZA(),e._uU(7,"\n")),2&s&&(e.Q6J("wide",!0),e.xp6(3),e.Q6J("ngIf",!r.requestInProgress),e.xp6(2),e.Q6J("ngIf",r.requestInProgress))},dependencies:[M.r0,_.O5,W.Q,J.z,_.Gx]}),i})();var Ee=c(5216),Kt=c(1156),$t=c(9366),pa=c(199),_a=c(1658),ga=c(3375),ma=c(2654);let fa=(()=>{const o=class{constructor(t,s){this.el=t,this.dragulaService=s,this.dragulaModelChange=new e.vpe}ngAfterViewInit(){this.setup(),this.group.drake.models.push(this.dragulaModel)}setup(){this.options={...this.dragulaOptions},this.container=this.el.nativeElement.querySelector(this.dragulaContainerSelector),this.options.mirrorContainer=this.container;let r,a,s=this.dragulaService.find(this.dragulaGroup);
1s||(s=this.dragulaService.createGroup(this.dragulaGroup,this.options)),(h=>{this.dragulaModel&&(h.drake.models?h.drake.models.push(this.dragulaModel):h.drake.models=[this.dragulaModel])})(s),s.drake.containers.push(this.container),this.subscribe(this.dragulaGroup);const l=document.querySelector(this.dragulaScrollTopBoundarySelector),p=h=>a=h.clientY;s.drake.on("drag",()=>{window.addEventListener("mousemove",p),r=setInterval(()=>this.applyScroll(a,l),20)}),s.drake.on("dragend",()=>{window.removeEventListener("mousemove",p),clearInterval(r)}),this.group=s}applyScroll(t,s){const r=s.getBoundingClientRect().bottom,a=window.innerHeight;if(t>a){const l=Math.min(20,(t-a)/3);window.scrollBy({top:l})}if(t<r){const l=Math.max(-20,(t-r)/3);window.scrollBy({top:l})}}subscribe(t){this.subs=new ma.w,this.subs.add(this.dragulaService.dropModel(t).subscribe(({source:s,target:r,sourceModel:a,targetModel:l})=>{s===this.container?this.dragulaModelChange.emit(a):r===this.container&&this.dragulaModelChange.emit(l)})),this.subs.add(this.dragulaService.removeModel(t).subscribe(({source:s,sourceModel:r})=>{s===this.container&&this.dragulaModelChange.emit(r)}))}teardown(t){this.subs&&this.subs.unsubscribe();const s=this.dragulaService.find(t);if(s){const r=s.drake.containers.indexOf(this.container);if(-1!==r&&s.drake.containers.splice(r,1),this.dragulaModel&&s.drake&&s.drake.models){const a=s.drake.models.indexOf(this.dragulaModel);-1!==a&&s.drake.models.splice(a,1)}}}ngOnDestroy(){this.teardown(this.dragulaGroup)}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(e.SBq),e.Y36(Se.pQ))},o.\u0275dir=e.lG2({type:o,selectors:[["","primeDragula",""]],inputs:{dragulaGroup:"dragulaGroup",dragulaModel:"dragulaModel",dragulaOptions:"dragulaOptions",dragulaContainerSelector:"dragulaContainerSelector",dragulaScrollTopBoundarySelector:"dragulaScrollTopBoundarySelector"},outputs:{dragulaModelChange:"dragulaModelChange"}}),i})();var Ca=c(9646),va=c(5428),en=c(1761);const ba=["table"],xa=["listContextMenu"];function ya(i,o){if(1&i&&e._UZ(0,"app-loading-indicator",23),2&i){const n=e.oxw(3);e.Tol(n.classes.deliveryLoadingIndicatorPadding),e.Q6J("className",n.classes.deliveryLoadingIndicator)}}function Ta(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",21),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2);return e.KtG(s.distributeCourses())}),e._uU(1),e.YNc(2,ya,1,3,"app-loading-indicator",22),e._uU(3,"\n "),e.qZA()}if(2&i){const n=e.oxw(2);e.Q6J("className",n.deliverCoursesButtonClasses)("startIcon",n.deliverCoursesButtonIcon),e.xp6(1),e.hij("\n ",n.deliverCoursesButtonText,"\n "),e.xp6(1),e.Q6J("ngIf",n.isDrawerLoading)}}function Ua(i,o){if(1&i&&(e.ynx(0,18),e._uU(1,"\n "),e._UZ(2,"app-course-list-drawer"),e._uU(3,"\n "),e._uU(4,"\n "),e._UZ(5,"app-selection-options",19),e._uU(6,"\n "),e.YNc(7,Ta,4,4,"og-button",20),e._uU(8,"\n "),e.BQk()),2&i){const n=e.oxw();e.xp6(5),e.Q6J("actions",n.groupActions)("selectionCount",n.selectedCourses.length+n.selectedGroups.length),e.xp6(2),e.Q6J("ngIf",n.shouldShowDeliverCoursesButton)}}function wa(i,o){1&i&&(e.TgZ(0,"og-button",24),e._uU(1,"\n Quick Start Guide\n "),e.qZA())}function Ma(i,o){if(1&i){const n=e.EpF();e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-hidden",25),e._uU(3,"\n "),e.TgZ(4,"og-button",26),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.resetOrder())}),e._uU(5,"Reset Order"),e.qZA(),e._uU(6,"\n "),e.qZA(),e._uU(7,"\n "),e.TgZ(8,"og-hidden",27),e._uU(9,"\n "),e.TgZ(10,"og-button",28),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.resetOrder())}),e._uU(11,"\n "),e._UZ(12,"og-svg-icon",29),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.BQk()}}function Za(i,o){if(1&i){const n=e.EpF();e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-hidden",25),e._uU(3,"\n "),e.TgZ(4,"og-button",30),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.launchAddUngroupedCoursesModal())}),e._uU(5,"Add Courses"),e.qZA(),e._uU(6,"\n "),e.TgZ(7,"og-button",31),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.addGroup())}),e._uU(8,"New Group"),e.qZA(),e._uU(9,"\n "),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"og-hidden",27),e._uU(12,"\n "),e.TgZ(13,"og-button",32),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.addGroup())}),e._uU(14,"\n "),e._UZ(15,"og-svg-icon",33),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n "),e.qZA(),e._uU(18,"\n "),e.BQk()}}function Pa(i,o){1&i&&(e._uU(0,"\n "),e.TgZ(1,"tr",34),e._uU(2,"\n "),e.TgZ(3,"td",35),e._uU(4,"\n "),e.TgZ(5,"og-typography"),e._uU(6,"No courses found"),e.qZA(),e._uU(7,"\n "),e.qZA(),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "))}function La(i,o){1&i&&(e.TgZ(0,"th",43),e._uU(1,"\n "),e._UZ(2,"p-tableHeaderCheckbox"),e._uU(3,"\n "),e.qZA())}function Sa(i,o){if(1&i&&(e.TgZ(0,"th",44),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Title"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",46),e._uU(6,"\n "),e.qZA()),2&i){const n=e.oxw(2);e.Q6J("pSortableColumn",!n.isReadOnlyView()&&"title"),e.xp6(5),e.Q6J("field","title")}}function Aa(i,o){1&i&&(e.TgZ(0,"th",47),e._uU(1,"\n "),e.TgZ(2,"span",48),e._uU(3,"Rating"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",46),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","ratingAverage"),e.xp6(5),e.Q6J("field","ratingAverage"))}function Oa(i,o){1&i&&(e.TgZ(0,"th",47),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Publisher"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",46),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","publishedByUser.fullName"),e.xp6(5),e.Q6J("field","publishedByUser.fullName"))}function Ia(i,o){1&i&&(e.TgZ(0,"th",49),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Language"),e.qZA(),e._uU(4,"\n "),e.qZA())}function ka(i,o){1&i&&(e.TgZ(0,"th",50),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Seat Time"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",46),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","durationMinutes"),e.xp6(5),e.Q6J("field","durationMinutes"))}function Na(i,o){1&i&&(e.TgZ(0,"th",47),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Style"),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",46),e._uU(6,"\n "),e.qZA()),2&i&&(e.Q6J("pSortableColumn","courseStyle"),e.xp6(5),e.Q6J("field","courseStyle"))}function qa(i,o){if(1&i&&(e.TgZ(0,"th",51),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3),e.qZA(),e._uU(4,"\n "),e._UZ(5,"p-sortIcon",46),e._uU(6,"\n "),e.qZA()),2&i){const n=e.oxw(2);e.Q6J("pSortableColumn",!n.list.hidePrices&&"price"),e.xp6(3),e.Oqu(n.list.hidePrices?"Type":"Price"),e.xp6(2),e.Q6J("field","durationMinutes")}}function Fa(i,o){1&i&&(e.TgZ(0,"th",52),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Demo"),e.qZA(),e._uU(4,"\n "),e.qZA())}function Ga(i,o){1&i&&(e.TgZ(0,"th",49),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Feedback"),e.qZA(),e._uU(4,"\n "),e.qZA())}function Ja(i,o){1&i&&e._UZ(0,"th",49)}function Qa(i,o){if(1&i&&(e._uU(0,"\n "),e.TgZ(1,"tr"),e._uU(2,"\n "),e.YNc(3,La,4,0,"th",36),e._uU(4,"\n "),e.YNc(5,Sa,7,2,"th",37),e._uU(6,"\n "),e.YNc(7,Aa,7,2,"th",38),e._uU(8,"\n "),e.YNc(9,Oa,7,2,"th",38),e._uU(10,"\n "),e.YNc(11,Ia,5,0,"th",39),e._uU(12,"\n "),e.YNc(13,ka,7,2,"th",40),e._uU(14,"\n "),e.YNc(15,Na,7,2,"th",38),e._uU(16,"\n "),e.YNc(17,qa,7,3,"th",41),e._uU(18,"\n "),e.YNc(19,Fa,5,0,"th",42),e._uU(20,"\n "),e.YNc(21,Ga,5,0,"th",39),e._uU(22,"\n "),e.YNc(23,Ja,1,0,"th",39),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n ")),2&i){const n=e.oxw();e.xp6(3),e.Q6J("ngIf",n.visibleColumns.checkbox),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.title),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.rating),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.publisher),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.languages),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.duration),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.courseStyle),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.price),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.demo),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.feedback),e.xp6(2),e.Q6J("ngIf",n.visibleColumns.grabHandle)}}function Ea(i,o){if(1&i&&(e.TgZ(0,"td",64),e._uU(1,"\n "),e._UZ(2,"p-tableCheckbox",65),e._uU(3,"\n "),e.qZA()),2&i){const n=e.oxw(2).$implicit;e.xp6(2),e.Q6J("value",n)}}function Da(i,o){if(1&i){const n=e.EpF();e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"app-editable",66),e.NdJ("cancel",function(){e.CHM(n);const s=e.oxw(2).$implicit,r=e.oxw();return e.KtG("-1"===s.id?r.removeUnsavedGroup():null)})("saveChanges",function(s){e.CHM(n);const r=e.oxw(2).$implicit,a=e.oxw();return e.KtG("-1"!==r.id?a.saveGroupName({title:s,id:r.id}):a.saveNewGroup(s))}),e.qZA(),e._uU(3,"\n "),e.BQk()}if(2&i){const n=e.oxw(2).$implicit;e.xp6(2),e.Q6J("startInEditMode","-1"===n.id)("defaultText","-1"===n.id?"":n.title)("inline",!0)("required",!0)}}const Ba=function(i,o){return{bold:!0,"read-only":i,"default-group":o}};function Ya(i,o){if(1&i&&(e._uU(0,"\n "),e.TgZ(1,"span",67),e._uU(2),e.qZA(),e._uU(3,"\n ")),2&i){const n=e.oxw(2).$implicit,t=e.oxw();e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ba,t.isReadOnlyView(),t.isDefaultPlaylist(n.title))),e.xp6(1),e.hij("\n ",t.groupTitle(n.title),"\n ")}}function Ha(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"i",68),e.NdJ("click",function(s){e.CHM(n);const r=e.oxw(2).$implicit,a=e.oxw();return e.KtG(a.showContextMenu(r,s))}),e._uU(1,"\n more_vert\n "),e.qZA()}}function Ra(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"span",69),e._uU(1,"\n "),e.TgZ(2,"og-hidden",25),e._uU(3,"\n "),e.TgZ(4,"og-button",30),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2).$implicit,r=e.oxw();
1return e.KtG(r.launchGroupCoursesModal(s,"list page"))}),e._uU(5,"Add Courses"),e.qZA(),e._uU(6,"\n "),e.qZA(),e._uU(7,"\n "),e.TgZ(8,"og-hidden",27),e._uU(9,"\n "),e.TgZ(10,"og-button",70),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2).$implicit,r=e.oxw();return e.KtG(r.launchGroupCoursesModal(s,"list page"))}),e._uU(11,"\n "),e._UZ(12,"og-svg-icon",71),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.qZA()}}function za(i,o){1&i&&(e.TgZ(0,"div",72),e._uU(1,"\n "),e._UZ(2,"app-loading-indicator",73),e._uU(3,"\n "),e.qZA())}const Va=function(i){return[i]};function ja(i,o){if(1&i){const n=e.EpF();e._uU(0,"\n "),e.TgZ(1,"tr",54),e.NdJ("@adding.done",function(){e.CHM(n);const s=e.oxw().$implicit,r=e.oxw();return e.KtG(r.resetRowState(s))}),e._uU(2,"\n "),e._uU(3,"\n "),e.YNc(4,Ea,4,1,"td",55),e._uU(5,"\n "),e.TgZ(6,"td",56),e._uU(7,"\n "),e.TgZ(8,"span",45),e._uU(9,"Group"),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"div",57),e._uU(12,"\n "),e.YNc(13,Da,4,4,"ng-container",58),e._uU(14,"\n "),e.YNc(15,Ya,4,5,"ng-template",null,59,e.W1O),e._uU(17,"\n "),e.YNc(18,Ha,2,0,"i",60),e._uU(19,"\n "),e.qZA(),e._uU(20,"\n "),e.qZA(),e._uU(21,"\n "),e.TgZ(22,"td",61),e._uU(23,"\n "),e.YNc(24,Ra,16,0,"span",62),e._uU(25,"\n "),e.YNc(26,za,4,0,"div",63),e._uU(27,"\n "),e.qZA(),e._uU(28,"\n "),e.qZA(),e._uU(29,"\n ")}if(2&i){const n=e.MAs(16),t=e.oxw().$implicit,s=e.oxw();e.xp6(1),e.Q6J("pContextMenuRow",t)("@adding",t.state)("ngClass",e.VKq(10,Va,s.lookUpRowStyleClass(t))),e.xp6(3),e.Q6J("ngIf",s.visibleColumns.checkbox),e.xp6(2),e.uIk("colspan",1),e.xp6(7),e.Q6J("ngIf",!s.isReadOnlyView()&&!s.isDefaultPlaylist(t.title))("ngIfElse",n),e.xp6(5),e.Q6J("ngIf",s.canHaveContextMenu(t)),e.xp6(6),e.Q6J("ngIf",!s.isReadOnlyView()&&!s.isDefaultPlaylist(t.title)&&"-1"!==t.id&&!s.list.loadingState[t.groupId]),e.xp6(2),e.Q6J("ngIf",s.list.loadingState[t.groupId])}}function Ka(i,o){if(1&i&&(e.TgZ(0,"td",64),e._uU(1,"\n "),e._UZ(2,"p-tableCheckbox",65),e._uU(3,"\n "),e.qZA()),2&i){const n=e.oxw(2).$implicit;e.xp6(2),e.Q6J("value",n)}}function $a(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"i",90,91),e.NdJ("mouseleave",function(){e.CHM(n);const s=e.oxw(4);return e.KtG(s.hidePopper())})("mouseover",function(){e.CHM(n);const s=e.MAs(1),r=e.oxw(4);return e.KtG(r.showPopper(s))}),e._uU(2,"\n lock\n "),e.qZA()}}function Wa(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",92),e.NdJ("click",function(s){e.CHM(n);const r=e.oxw(3).$implicit,a=e.oxw();return e.KtG(a.showContextMenu(r,s))}),e._uU(1,"\n "),e.TgZ(2,"i",93),e._uU(3,"more_vert"),e.qZA(),e._uU(4,"\n "),e.qZA()}}function Xa(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"td",84),e._uU(1,"\n "),e.TgZ(2,"div",85),e._uU(3,"\n "),e.YNc(4,$a,3,0,"i",86),e._uU(5,"\n "),e.TgZ(6,"span",45),e._uU(7,"Title"),e.qZA(),e._uU(8,"\n "),e.TgZ(9,"div",87),e._uU(10,"\n "),e.TgZ(11,"span",88),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(2).$implicit,r=e.oxw();return e.KtG(r.openCourseDetails(s))}),e._uU(12),e.qZA(),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.YNc(15,Wa,5,0,"div",89),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n "),e.qZA()}if(2&i){const n=e.oxw(2).$implicit,t=e.oxw();e.xp6(4),e.Q6J("ngIf",!n.available),e.xp6(8),e.hij("\n ",n.title,"\n "),e.xp6(3),e.Q6J("ngIf",t.canHaveContextMenu(n))}}function el(i,o){if(1&i&&e._UZ(0,"app-star-rating",65),2&i){const n=e.oxw(3).$implicit;e.Q6J("value",n.ratingAverage)}}function tl(i,o){if(1&i&&(e.TgZ(0,"td",94),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Rating"),e.qZA(),e._uU(4,"\n "),e.YNc(5,el,1,1,"app-star-rating",95),e._uU(6,"\n "),e.qZA()),2&i){const n=e.oxw(2).$implicit;
1e.xp6(5),e.Q6J("ngIf",n.ratingAverage>0)}}function nl(i,o){if(1&i&&(e.TgZ(0,"td",64),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Publisher"),e.qZA(),e._uU(4),e.qZA()),2&i){const n=e.oxw(2).$implicit;e.xp6(4),e.hij("\n ",n.publishedByUser.displayName,"\n ")}}const ol=function(i){return[i,"e2e-language-icon"]};function il(i,o){if(1&i&&(e.TgZ(0,"td",96),e._uU(1,"\n "),e.TgZ(2,"span",97),e._uU(3,"\n "),e.TgZ(4,"span",98),e._uU(5,"\n "),e._UZ(6,"og-svg-icon",99),e._uU(7,"\n "),e.qZA(),e._uU(8),e.qZA(),e._uU(9,"\n "),e.qZA()),2&i){e.oxw();const n=e.MAs(37),t=e.oxw().$implicit,s=e.oxw();e.xp6(4),e.Q6J("popper",n)("popperApplyClass",s.classes.languageTooltip),e.xp6(2),e.Q6J("className",e.VKq(4,ol,s.classes.iconSize)),e.xp6(2),e.hij("\n ",t.courseSpecificLanguages.length,"\n ")}}function sl(i,o){if(1&i&&(e.TgZ(0,"td",100),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Seat Time"),e.qZA(),e._uU(4),e.ALo(5,"timeToString"),e.qZA()),2&i){const n=e.oxw(2).$implicit;e.xp6(4),e.hij("\n ",e.lcZ(5,1,n.durationMinutes),"\n ")}}function rl(i,o){if(1&i&&(e.TgZ(0,"td",101),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Style"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"div",102),e._uU(6),e.qZA(),e._uU(7,"\n "),e.qZA()),2&i){const n=e.oxw(2).$implicit;e.xp6(6),e.Oqu(n.courseStyle)}}function al(i,o){1&i&&(e.TgZ(0,"span",45),e._uU(1,"Price"),e.qZA())}function ll(i,o){1&i&&(e.TgZ(0,"span",45),e._uU(1,"Type"),e.qZA())}function cl(i,o){1&i&&(e.TgZ(0,"og-chip",109),e._uU(1,"Plus"),e.qZA())}function ul(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.YNc(2,cl,2,0,"og-chip",108),e._uU(3,"\n "),e.BQk()),2&i){const n=e.oxw(3).$implicit;e.xp6(2),e.Q6J("ngIf",n.isPlus)}}function dl(i,o){1&i&&(e.TgZ(0,"og-chip",110),e._uU(1,"Bundle"),e.qZA())}function pl(i,o){if(1&i&&(e.TgZ(0,"span",111),e._uU(1),e.ALo(2,"currency"),e.qZA()),2&i){const n=e.oxw(3).$implicit;e.xp6(1),e.hij("\n ",e.gM2(2,1,n.price,"USD","symbol",".2"),"\n ")}}function _l(i,o){if(1&i&&(e.TgZ(0,"td",100),e._uU(1,"\n "),e.YNc(2,al,2,0,"span",103),e._uU(3,"\n "),e.YNc(4,ll,2,0,"span",103),e._uU(5,"\n "),e.TgZ(6,"og-flex",104),e._uU(7,"\n "),e.YNc(8,ul,4,1,"ng-container",105),e._uU(9,"\n "),e.YNc(10,dl,2,0,"og-chip",106),e._uU(11,"\n "),e.YNc(12,pl,3,6,"span",107),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.qZA()),2&i){const n=e.oxw(2).$implicit,t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.list.hidePrices),e.xp6(2),e.Q6J("ngIf",t.list.hidePrices),e.xp6(4),e.Q6J("appExcludeIf","display:catalog type"),e.xp6(2),e.Q6J("ngIf",n.isBundle),e.xp6(2),e.Q6J("ngIf",!t.list.hidePrices&&"AvailableBundleOnly"!==n.status)}}function gl(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",113),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(3).$implicit,r=e.oxw();return e.KtG(r.onListCourseDemoClicked(s))}),e._uU(1,"\n "),e._UZ(2,"og-svg-icon",114),e._uU(3,"\n "),e.qZA()}if(2&i){const n=e.oxw(3).$implicit;e.Q6J("link",n.coursePreview.previewUrl)}}function ml(i,o){if(1&i&&(e.TgZ(0,"td",96),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Demo"),e.qZA(),e._uU(4,"\n "),e.YNc(5,gl,4,1,"og-button",112),e._uU(6,"\n "),e.qZA()),2&i){const n=e.oxw(2).$implicit;e.xp6(5),e.Q6J("ngIf",n.coursePreview&&n.available)}}function hl(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",117),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(4).$implicit,r=e.oxw();return e.KtG(r.openCourseFeedback(s.id))}),e._uU(1,"\n "),e._UZ(2,"og-svg-icon",118),e._uU(3,"\n "),e.qZA()}}function fl(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",117),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(4).$implicit,r=e.oxw();return e.KtG(r.openCourseFeedback(s.id))}),e._uU(1,"\n "),e._UZ(2,"og-svg-icon",119),e._uU(3,"\n "),e.qZA()}}function Cl(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",120),e.NdJ("click",function(){e.CHM(n);const s=e.oxw(4).$implicit,r=e.oxw();return e.KtG(r.openCourseFeedback(s.id))}),e._uU(1,"\n "),e._UZ(2,"og-svg-icon",121),e._uU(3,"\n "),e.qZA()}}function vl(i,o){if(1&i&&(e.ynx(0),e._uU(1,"\n "),e.YNc(2,hl,4,0,"og-button",115),e._uU(3,"\n "),e.YNc(4,fl,4,0,"og-button",115),e._uU(5,"\n "),e.YNc(6,Cl,4,0,"og-button",116),e._uU(7,"\n "),e.BQk()),2&i){const n=e.oxw(3).$implicit;e.xp6(2),e.Q6J("ngIf",""===n.feedback||!n.feedback),e.xp6(2),e.Q6J("ngIf","up"===n.feedback),e.xp6(2),e.Q6J("ngIf","down"===n.feedback)}}function bl(i,o){if(1&i&&(e.TgZ(0,"td",96),e._uU(1,"\n "),e.TgZ(2,"span",45),e._uU(3,"Feedback"),e.qZA(),e._uU(4,"\n "),e.YNc(5,vl,8,3,"ng-container",3),e._uU(6,"\n "),e.qZA()),2&i){const n=e.oxw(2).$implicit;
1e.xp6(5),e.Q6J("ngIf",n.available)}}function xl(i,o){1&i&&(e.TgZ(0,"td",122),e._uU(1,"\n "),e._UZ(2,"span",123),e._uU(3,"\n "),e.qZA())}function yl(i,o){if(1&i&&(e.TgZ(0,"p",124),e._uU(1,"\n "),e.TgZ(2,"span",125),e._uU(3),e.qZA(),e.TgZ(4,"span",126),e._uU(5),e.qZA(),e._uU(6,"\n "),e.qZA()),2&i){const n=o.$implicit,t=o.last;e.xp6(3),e.Oqu(n),e.xp6(2),e.Oqu(t?" ":", ")}}function Tl(i,o){if(1&i&&(e.TgZ(0,"p",124),e._uU(1,"\n &\n "),e.TgZ(2,"var"),e._uU(3),e.qZA(),e._uU(4,"\n more\n "),e.qZA()),2&i){const n=e.oxw(2).$implicit;e.xp6(3),e.Oqu(n.languageTooltipLanguageStrings.length-5)}}const Ul=function(i){return{unavailable:i}};function wl(i,o){if(1&i){const n=e.EpF();e._uU(0,"\n "),e.TgZ(1,"tr",54),e.NdJ("@adding.done",function(){e.CHM(n);const s=e.oxw().$implicit,r=e.oxw();return e.KtG(r.resetRowState(s))}),e._uU(2,"\n "),e._uU(3,"\n "),e.YNc(4,Ka,4,1,"td",55),e._uU(5,"\n\n "),e._uU(6,"\n "),e.YNc(7,Xa,18,3,"td",74),e._uU(8,"\n\n "),e._uU(9,"\n "),e.YNc(10,tl,7,1,"td",75),e._uU(11,"\n\n "),e._uU(12,"\n "),e.YNc(13,nl,5,1,"td",55),e._uU(14,"\n\n "),e._uU(15,"\n "),e.YNc(16,il,10,6,"td",76),e._uU(17,"\n\n "),e._uU(18,"\n "),e.YNc(19,sl,6,3,"td",77),e._uU(20,"\n\n "),e._uU(21,"\n "),e.YNc(22,rl,8,1,"td",78),e._uU(23,"\n\n "),e._uU(24,"\n "),e.YNc(25,_l,15,5,"td",77),e._uU(26,"\n\n "),e._uU(27,"\n "),e.YNc(28,ml,7,1,"td",76),e._uU(29,"\n\n "),e._uU(30,"\n "),e.YNc(31,bl,7,1,"td",76),e._uU(32,"\n\n "),e._uU(33,"\n "),e.YNc(34,xl,4,0,"td",79),e._uU(35,"\n "),e.TgZ(36,"popper-content",80,81),e._uU(38,"\n "),e._uU(39,"\n "),e.YNc(40,yl,7,2,"p",82),e._uU(41,"\n "),e.YNc(42,Tl,5,1,"p",83),e._uU(43,"\n "),e.qZA(),e._uU(44,"\n "),e.qZA(),e._uU(45,"\n ")}if(2&i){const n=e.oxw().$implicit,t=e.oxw();e.xp6(1),e.Tol(t.lookUpRowStyleClass(n)),e.Q6J("pContextMenuRow",n)("@adding",n.state)("ngClass",e.VKq(19,Ul,!n.available)),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.checkbox),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.title),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.rating),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.publisher),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.languages),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.duration),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.courseStyle),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.price),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.demo),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.feedback),e.xp6(3),e.Q6J("ngIf",t.visibleColumns.grabHandle),e.xp6(2),e.Q6J("className",t.classes.popper),e.xp6(4),e.Q6J("ngForOf",n.languageTooltipFirstFiveLanguageStrings),e.xp6(2),e.Q6J("ngIf",n.languageTooltipLanguageStrings&&n.languageTooltipLanguageStrings.length>5)}}function Ml(i,o){if(1&i&&(e._uU(0,"\n "),e._uU(1,"\n "),e.YNc(2,ja,30,12,"ng-template",53),e._uU(3,"\n "),e._uU(4,"\n "),e.YNc(5,wl,46,21,"ng-template",53),e._uU(6,"\n ")),2&i){const n=o.$implicit;e.xp6(2),e.Q6J("ngIf","group"===n.type),e.xp6(3),e.Q6J("ngIf","course"===n.type)}}function Zl(i,o){if(1&i&&(e.TgZ(0,"og-typography",129),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.list.errorMessage)}}function Pl(i,o){1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"div",52),e._uU(3,"\n "),e._UZ(4,"app-loading-indicator",130),e._uU(5,"\n "),e.qZA(),e._uU(6,"\n "),e.BQk())}const Ll=function(){return["/online-training-courses","search"]};function Sl(i,o){1&i&&(e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"og-typography",129),e._uU(3,"Search for courses to add to your list"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"a",131),e._uU(6,"\n "),e.TgZ(7,"og-button",132),e._uU(8,"Browse Catalog"),e.qZA(),e._uU(9,"\n "),e.qZA(),e._uU(10,"\n "),e.BQk()),2&i&&(e.xp6(5),e.Q6J("routerLink",e.DdM(1,Ll)))}const Al=function(i){return{"table-loading":i}};function Ol(i,o){if(1&i&&(e.TgZ(0,"div",127),e._uU(1,"\n "),e.YNc(2,Zl,2,1,"og-typography",128),e._uU(3,"\n "),e.YNc(4,Pl,7,0,"ng-container",3),e._uU(5,"\n "),e.YNc(6,Sl,11,2,"ng-container",3),e._uU(7,"\n "),e.qZA()),2&i){const n=e.oxw();e.Q6J("ngClass",e.VKq(4,Al,n.list.rowsLoading)),e.xp6(2),e.Q6J("ngIf",n.list.hasError),e.xp6(2),e.Q6J("ngIf",!n.list.hasError&&n.list.rowsLoading),e.xp6(2),e.Q6J("ngIf",!n.list.hasError&&!n.list.rowsLoading)}}const Il=function(i,o){return{hidden:i,focused:o}},kl=function(){return["ml-10"]},Nl=function(){return{standalone:!0}},ql=function(i){return{hidden:i,centerbox:!0,"bg-light-primary":!0}},Fl=function(){return["title","ratingAverage","publishedByUser.fullName","durationMinutes","price"]},Pe={find:q.find,includes:q.includes,isEqual:q.isEqual,union:q.union},Gl=["439763","455366","459636","459653","480951"];let dt=((se=class{constructor(o,n,t,s,r,a,l,p,h,m,T,L,G,U,E,ue,ye){this.dragulaService=o,this.notificationService=n,this.listService=t,this.route=s,this.router=r,this.eventPusher=a,this.activeList=l,this.activeSession=p,this.bulkActions=h,this.myListsFactory=m,this.segmentService=T,this.modalHostService=L,this.integrationSettings=G,this.showModalRequestService=U,this.deliveryApiService=E,this.courseListDrawerService=ue,this.addToCourseListDrawerService=ye,this.subscriptions=[],this.allSelectedItems=[],this.selectedGroups=[],this.selectedCourses=[],this.searchFocused=!1,this.showQuickStartButton=!1,this.currentSort={isSorted:!1},this.deleting=!1,this.deletingCourses=!1,this.deletingCategories=!1,this.deletingAllSelections=!1,this.hideContextMenu=!1,this.listSearchValue="",this.showDistributeCoursesButton=!1,this.quickLaunchFeatureEnabled=!1,this.requestInProgress=!1,this.isDrawerLoading=!1,this.myLists=this.myListsFactory.getService()}get session(){return this.activeSession.session}get shouldShowDeliverCoursesButton(){return this.showDistributeCoursesButton&&!this.activeSession.isOsgcViewer&&this.selectedCourses.length>0}get collaboratorPermissions(){return this.route.parent.snapshot.data.permissions}get list(){return this.activeList.list}resetRowState(o){o.type!==g.aC.group&&(o.state="normal",this.list.setRowNormal(o.uniqueId))}get selectedItems(){return this.allSelectedItems}set selectedItems(o){this.allSelectedItems=o,this.updateSelections()}getInformationForRowElement(o){if(null===o.nativeElement)return null;const n=this.getIdForElement(o),t=this.list.rows.findIndex(s=>s.uniqueId&&s.uniqueId===n);return this.list.rows[t]}initializeDragAndDrop(){var o=this;return this.dragulaService.drop("courses").subscribe(function(){var n=(0,d.Z)(function*(t){if(!o.requestInProgress){o.requestInProgress=!0;const s=new e.SBq(t.el),r=new e.SBq(s.nativeElement.previousElementSibling),a=o.getInformationForRowElement(s);let l=o.getInformationForRowElement(r);(null===l||l.type===g.aC.group&&o.list.defaultGroupId===l.groupId&&0===l.delta&&!r.nativeElement.classList.contains("hidden"))&&(l=o.getInformationForRowElement(new e.SBq(t.sibling)));const h=l.groupId;let m=l.delta>a.delta&&l.groupId===a.groupId?l.delta:l.delta+1;l.type===g.aC.group&&(m=0),yield o.moveCourses([a],h,m)}});return function(t){return n.apply(this,arguments)}}())}initializeDragEnd(){return this.dragulaService.dragend("courses").subscribe(()=>{this.requestInProgress=!1})}moveCourses(o,n,t){var s=this;return(0,d.Z)(function*(){try{yield s.listService.moveCourses(s.list.id,o,n,t,()=>{s.list.moveCourses(o,n,t)})}catch(r){yield s.handleListError(r)}})()}ngOnInit(){var o=this;return(0,d.Z)(function*(){o.subscriptions.push(o.route.queryParams.pipe((0,Ce.h)(t=>
1"true"===t.openAddCoursesModal),(0,Qt.q)(1)).subscribe(o.openAddCoursesModalOnLoad.bind(o))),o.showQuickStartButton=Gl.includes(o.list.id),o.quickLaunchFeatureEnabled=(yield o.deliveryApiService.getFeatureFlagStatus("quickLaunch")).enabled,o.showDistributeCoursesButton=!0,o.list.actions.subscribe(t=>{o.notificationService.clearNotificationsByText(["Removed Items"]),"load_complete"===t.type&&o.pTable&&o.pTable.reset()}),o.subscriptions.push(o.initializeDragAndDrop()),o.subscriptions.push(o.initializeDragEnd()),o.subscriptions.push(o.courseListDrawerService.isDrawerLoadingSubject.subscribe(t=>{o.isDrawerLoading=t})),o.subscriptions.push(o.addToCourseListDrawerService.coursesAddedSubject.pipe((0,Ce.h)(({listId:t,requiresListReload:s})=>t===o.list.id&&s)).subscribe(()=>o.reload())),o.subscriptions.push(o.showModalRequestService.showModalRequests.pipe((0,Ce.h)(t=>"select_for_lms_modal"===t.key)).subscribe(t=>{o.modalHostService.showModal(pa.q)})),o.groupActionMenuBuilder=new ot.e(o.list,o.session,o.collaboratorPermissions,[Xi,it]),o.groupActions=o.groupActionMenuBuilder.build(),o.subscribeToGroupActionClickEvents(),o.visibleColumns=o.buildVisibleColumnMap()})()}openAddCoursesModalOnLoad(){this.clearOpenAddCoursesModalQueryParam(),this.isReadOnlyView()||this.subscriptions.push(this.list.actions.pipe((0,Ce.h)(o=>"load_complete"===o.type),(0,Qt.q)(1)).subscribe(this.launchAddUngroupedCoursesModal.bind(this)))}clearOpenAddCoursesModalQueryParam(){this.router.navigate([],{relativeTo:this.route,queryParams:{openAddCoursesModal:null},queryParamsHandling:"merge",replaceUrl:!0})}subscribeToGroupActionClickEvents(){this.subscriptions.push(this.groupActionMenuBuilder.menuItemSelected.subscribe(o=>{switch(o){case y.r.AddToPpuLibrary:this.addToPPULibrary(this.selectedCourses);break;case y.r.RemoveCourses:this.showRemoveModal()}}))}trackListGroupEvent(o){this.segmentService.trackEvent(new at(o,{invitedLearnersCount:this.invitedLearnersCount?this.invitedLearnersCount:0,listMetaData:this.list.metadata,selectedCourses:this.selectedCourses,selectedCourseCount:this.selectedCourses?this.selectedCourses.length:0}))}buildVisibleColumnMap(){return{checkbox:this.session.isLoggedIn,title:!0,rating:!this.integrationSettings.shouldExclude("display:ratings")&&this.list.showRatings,publisher:!this.integrationSettings.shouldExclude("display:publisher"),languages:!0,duration:!this.integrationSettings.shouldExclude("display:duration"),courseStyle:!this.integrationSettings.shouldExclude("display:course style"),price:!this.integrationSettings.shouldExclude("display:price"),demo:!0,feedback:this.allowFeedback,grabHandle:!this.isReadOnlyView()&&!this.isTableSorted()}}showPopper(o){this.unavailableToolTip.targetElement=o,this.unavailableToolTip.placement="bottom",this.unavailableToolTip.show()}hidePopper(){this.unavailableToolTip.hide(),this.unavailableToolTip.targetElement=void 0}ngDoCheck(){const o=this.buildVisibleColumnMap();Pe.isEqual(o,this.visibleColumns)||(this.visibleColumns=o)}ngOnDestroy(){this.subscriptions.forEach(o=>{o.unsubscribe()})}addGroup(){this.list.addDummyGroupRow()}resetOrder(){this.currentSort={isSorted:!1},this.pTable&&this.pTable.reset(),this.list.rebuildRows(),this.notificationService.clearNotificationsByText(x.n.ListItemDraggingText)}onListCourseDemoClicked(o){var n=this;return(0,d.Z)(function*(){yield n.segmentService.trackEvent(new Wi.R({course:o,location:"list course preview"}))})()}onRowSelect(o){const{data:n}=o;if(n.type===g.aC.group){const t=this.list.rows.filter(s=>s.type!==g.aC.group&&s.groupId===n.groupId);this.allSelectedItems=Pe.union(this.allSelectedItems,t),this.pTable.selection=this.allSelectedItems,this.pTable.updateSelectionKeys()}this.updateSelections()}onRowUnselect(o){const{data:n}=o;if(n.type===g.aC.group){const t=this.allSelectedItems.filter(s=>s.groupId!==n.groupId);this.allSelectedItems=t,this.pTable.selection=this.allSelectedItems,this.pTable.updateSelectionKeys()}this.updateSelections()}updateSelections(){this.selectedGroups=this.allSelectedItems.filter(o=>o.type===g.aC.group&&!(0,g.vK)(o.title)).sort((o,n)=>o.delta-n.delta),this.selectedCourses=this.filterToCourseRows(this.allSelectedItems).sort((o,n)=>o.listDelta-n.listDelta)}get deliverCoursesButtonIcon(){return this.isDrawerLoading?"":"share"}get dragulaOptions(){return{moves:(o,n,t,s)=>t.classList.contains("handle")||t.classList.contains("draggable")}}get allowFeedback(){return this.activeSession.session.isLoggedIn&&Pe.includes(this.collaboratorPermissions,Z.v.AddFeedback)&&Pe.includes(this.collaboratorPermissions,Z.v.ViewFeedback)}saveGroupName(o){var n=this;return(0,d.Z)(function*(){const{id:t,title:s}=o;try{yield n.listService.updateGroupInformation(n.list.id,t,s),n.list.updateGroup(t,s)}catch(r){yield n.handleListError(r)}})()}saveNewGroup(o){var n=this;return(0,d.Z)(function*(){try{const{id:t}=yield n.listService.createGroupWithCourses(n.list.id,o,n.selectedCourses);n.list.addGroup(t,o,0,n.selectedCourses),n.deselectItems()}catch(t){yield n.handleListError(t)}})()}removeUnsavedGroup(){this.list.cancelGroupCreation()}remove(o){var n=this;return(0,d.Z)(function*(){const t=[];switch(o){case"all":n.deletingAllSelections=!0,t.push(n.removeCourses.bind(n)),t.push(...n.removeGroups());break;case"courses":n.deletingCourses=!0,t.push(n.removeCourses.bind(n));break;case"groups":n.deletingCategories=!0,t.push(...n.removeGroups());break;default:throw new Error(`Unsupported removal type ${o}`)}try{switch(o){case"all":n.list.remove(n.selectedGroups.map(s=>s.id),n.selectedCourses);break;case"courses":n.list.remove([],n.selectedCourses);break;case"groups":n.list.remove(n.selectedGroups.map(s=>s.id));break;default:throw new Error(`Unsupported removal type ${o}`)}yield t.reduce((s,r)=>s.then(r),Promise.resolve()),n.notificationService.publishNotification(x.n.ListRemovedText,"success","Undo",n.undoRemoval.bind(n))}catch(s){yield n.handleListError(s)}n.removeModal&&(n.removeModal.hide(),n.removeModal=void 0),n.deletingAllSelections=!1,n.deletingCourses=!1,n.deletingCategories=!1,n.updateLists(),n.deselectItems()})()}undoRemoval(o){var n=this;return(0,d.Z)(function*(){o.classList.add("progress");const t=n.list.getRemovedItems(),s=[];let{removals:r}=t;const{additions:a,groups:l}=t,p=function(){var m=(0,d.Z)(function*(T){const L=T.reduce((U,E)=>{for(const ue in E)E.hasOwnProperty(ue)&&(U[ue]=E[ue]);return U},{});r=r.map(U=>({...U,itemId:U.id,productType:U.productType,groupId:U.groupId||L[U.groupTitle],targetDelta:U.delta})),yield n.listService.addItems(n.list.id,r),n.segmentService.trackListAdditions({additions:r,addedFrom:"List Removal Undo Button",listId:n.list.id,listTitle:n.list.title})});return function(L){return m.apply(this,arguments)}}(),h=function(){var m=(0,d.Z)(function*(){0!==t.additions.length&&(yield n.listService.deleteCourses(n.list.id,a))});return function(){return m.apply(this,arguments)}}();l.forEach(m=>{s.push(n.listService.createGroupWithCourses(n.list.id,m.title,[],m.delta).then(T=>(m.id=T.id,{[m.title]:T.id})))});try{let m=[];s.length>0&&(m=yield Promise.all(s)),yield p(m),yield h(),n.list.undo({removals:r,additions:a,groups:l}),n.updateLists()}catch(m){yield n.handleListError(m)}})()}showListItems(){return this.list.rows.length>1&&this.activeList.listLoaded}isReadOnlyView(){return!(void 0!==this.collaboratorPermissions.find(n=>n===Z.v.Edit))}isTableSorted(){return this.currentSort.isSorted}
1launchGroupCoursesModal(o,n){this.modalHostService.showModal(ut,{group:o,groupCourses:this.list.getCoursesInGroup(o.groupId),location:n,list:this.list})}launchAddUngroupedCoursesModal(){const o=this.list.rows.find(n=>n.type===g.aC.group&&n.groupId===this.list.defaultGroupId);o&&this.launchGroupCoursesModal(o,"list page")}deselectItems(){this.selectedItems=[]}selectAll(){this.selectedItems=this.list.rows}lookUpRowStyleClass(o){const n=o.groupId;return o.type===g.aC.course?`group-${n} uniqueId-${o.uniqueId} ${o.delta%2==0?"even":"odd"}`:this.isDefaultPlaylist(o.title)&&(this.list.groups.length<=1||!this.list.hasCourses(o.id))?`table-divider group-${n} uniqueId-${o.uniqueId} hidden`:`table-divider group-${n} uniqueId-${o.uniqueId}`}isDefaultPlaylist(o){return(0,g.vK)(o)}defaultGroupTitle(){return g.O8}groupTitle(o){return this.isDefaultPlaylist(o)?this.defaultGroupTitle():o}groupSort(o){!o.field||o.field===this.currentSort.field&&o.order===this.currentSort.order||(!this.isTableSorted()&&!this.isReadOnlyView()&&this.notificationService.publishNotification(x.n.ListItemDraggingText,"warning"),this.activeList.sort(o),this.currentSort={isSorted:!0,field:o.field,order:o.order})}removeGroups(){const o=[];return this.selectedGroups.forEach(n=>{o.push(()=>this.listService.deleteGroup(this.list.id,n.id))}),o}removeCourses(){return this.listService.deleteCourses(this.list.id,this.selectedCourses)}handleListError(o){var n=this;return(0,d.Z)(function*(){console.error(o);let t=x.n.ListErrorText;(0,$.gm)(o)&&(t=$.hi),n.notificationService.publishNotification(t,"error"),yield n.eventPusher.broadcastDiagnosticDump(o.error?o.error.message:o.message),n.reload()})()}getIdForElement(o){return this.extractClassValue(o,/uniqueId-(.*)/)}extractClassValue(o,n){const t=Pe.find(o.nativeElement.classList,s=>null!==s.match(n));if(void 0!==t)return t.match(n)[1];console.error(`Unable to find class matching pattern ${n} in row`,o)}reload(){var o=this;this.listService.getList(this.list.id).subscribe(function(){var t=(0,d.Z)(function*(s){o.subscriptions.forEach(r=>{r.unsubscribe()}),yield o.activeList.load(s,o.activeList.permissions),o.deselectItems(),o.resetOrder(),o.deleting=!1,yield o.ngOnInit()});return function(s){return t.apply(this,arguments)}}())}openCourseDetails(o){o.available&&this.modalHostService.showModal(Ht,{nid:o.id,allowFeedback:this.allowFeedback})}openCourseFeedback(o){this.allowFeedback?this.modalHostService.showModal(Ht,{nid:o,panel:"notes"}):this.modalHostService.showModal(Rt.X,{message:"leave feedback"})}showContextMenu(o,n){this.contextMenuRow=o,setTimeout(()=>{this.contextMenu.show(n)})}get contextMenuRow(){return this._contextMenuRow}set contextMenuRow(o){this.canHaveContextMenu(o)?(this.hideContextMenu=!1,this._contextMenuRow=o,this.selectSingleRow(o)):this.hideContextMenu=!0}canHaveContextMenu(o){switch(o.type){case g.aC.group:return!this.isDefaultPlaylist(o.title);case g.aC.course:return o.available;default:return!1}}selectSingleRow(o){this.selectedItems.find(n=>n.uniqueId===o.uniqueId)||0===this.selectedItems.length&&this.isDefaultPlaylist(o.title)||(this.selectedItems=[...this.selectedItems,o])}moveToTopOfGroup(o){var n=this;return(0,d.Z)(function*(){yield n.moveCourses(n.selectedCourses,o,0),n.deselectItems()})()}moveToBottomOfGroup(o){var n=this;return(0,d.Z)(function*(){const t=n.list.getCoursesInGroup(o).length-1;yield n.moveCourses(n.selectedCourses,o,t),n.deselectItems()})()}addToGroup(o){var n=this;return(0,d.Z)(function*(){yield n.moveCourses(n.selectedCourses,o),n.deselectItems()})()}moveAboveGroup(o){var n=this;return(0,d.Z)(function*(){yield n.moveGroups(n.selectedGroups,o),n.deselectItems()})()}moveSelectedGroupsToTop(){var o=this;return(0,d.Z)(function*(){const n=o.list.groups.find(t=>0===t.delta);yield o.moveGroups(o.selectedGroups,n.id),o.deselectItems()})()}moveSelectedGroupsToBottom(){var o=this;return(0,d.Z)(function*(){yield o.moveGroups(o.selectedGroups,o.list.defaultGroupId),o.deselectItems()})()}moveGroups(o,n){var t=this;return(0,d.Z)(function*(){try{yield t.listService.moveGroups(t.list.id,o,n,()=>{t.list.moveGroups(o,n)})}catch(s){yield t.handleListError(s)}})()}updateLists(){const n={...this.list.metadata,courseCount:this.list.courseCount,dateChanged:(new Date).toISOString()};this.myLists.updateList(this.list.id,n)}filterToCourseRows(o){return o.filter(n=>n.type===g.aC.course)}mapTableRowDataToSelectedCourses(o){const n=new Map;for(const s of o)n.set(s.guid,s);return Array.from(n.values()).map(s=>{const r=Math.floor(s.durationMinutes/60),a=Math.floor(s.durationMinutes%60);return{courseGuid:s.guid,id:s.id,title:s.title,publisherName:s.publishedByUser.dis
1playName,languages:s.courseSpecificLanguages,languageText:s.languageText,duration:r?`${r}h ${a}m`:`${a}m`,licenses:[],groupName:s.groupName}})}distributeCourses(){this.setGroupNameInSelectedCourses();const o=this.mapTableRowDataToSelectedCourses(this.selectedCourses);this.courseListDrawerService.openDrawerCourseList({location:"list",selectedCourses:o})}setGroupNameInSelectedCourses(){for(const o of this.selectedCourses){const n=this.list.getGroupById(o.groupId).title??"";o.groupName=(0,g.vK)(n)?g.O8:n}}addToPPULibrary(o){const t=this.filterToCourseRows(o||this.selectedItems);this.bulkActions.addToPpuLibrary(t).then(()=>{this.trackListGroupEvent(F.z.AddToPpuLibrary),this.deselectItems()})}canMakePpuLibraryAction(){return this.session.permissions.canHavePpuLicense}showRemoveModal(){this.removeModal=this.modalHostService.showModal(da,{selectedCourses:this.selectedCourses,selectedGroups:this.selectedGroups},({removalType:o})=>this.remove(o))}getCourseStyleIcon(o){return Yt.eX(o,this.activeSession.session.mediaServiceUrl)}get deliverCoursesButtonClasses(){return this.isDrawerLoading?[this.classes.deliveryButton,"e2e-distribute-courses btn-distribute-courses ml-10"]:["e2e-distribute-courses btn-distribute-courses ml-10"]}get deliverCoursesButtonText(){return this.isDrawerLoading?"":"Deliver Courses"}}).\u0275fac=function(n){return new(n||se)(e.Y36(Se.pQ),e.Y36(w.g),e.Y36(S.XN),e.Y36(f.gz),e.Y36(f.F0),e.Y36(we.HT),e.Y36(B.f),e.Y36(O.V),e.Y36(ve.I),e.Y36(ee),e.Y36(I.B),e.Y36(z.z),e.Y36(Et.r),e.Y36($t.Q),e.Y36(Ee.g),e.Y36(Kt.w),e.Y36(be.i))},se.\u0275cmp=e.Xpm({type:se,selectors:[["app-list-courses"]],viewQuery:function(n,t){if(1&n&&(e.Gf(ba,7),e.Gf(xa,7),e.Gf(de.Ml,7)),2&n){let s;e.iGM(s=e.CRH())&&(t.pTable=s.first),e.iGM(s=e.CRH())&&(t.contextMenu=s.first),e.iGM(s=e.CRH())&&(t.unavailableToolTip=s.first)}},decls:43,vars:36,consts:[["left","",4,"ngIf"],["right",""],["className","btn-quick-start-guide","color","primary","size","sm","variant","contained",4,"ngIf"],[4,"ngIf"],[1,"table-search-container",3,"ngClass"],["placeholder","Search this list",3,"wrapperClasses","ngModel","ngModelOptions","input","clearSearch","onFocus","onBlur","ngModelChange"],[1,"bg-light-primary","pt-10","pb-20",2,"position","static"],["id","courses-table",2,"position","static",3,"ngClass"],["dataKey","uniqueId","primeDragula","","dragulaGroup","courses","dragulaContainerSelector","tbody","dragulaScrollTopBoundarySelector",".action-bar","selectionMode","multiple","contextMenuSelectionMode","separate",1,"table-default",3,"styleClass","value","exportFilename","selection","dragulaModel","dragulaOptions","globalFilterFields","responsive","rowHover","customSort","contextMenu","contextMenuSelection","selectionChange","onRowSelect","onRowUnselect","dragulaModelChange","sortFunction","contextMenuSelectionChange"],["table",""],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],["popper","Course unavailable"],["popper",""],[3,"contextMenuRow","selectedGroups","selectedCourses","hidden","collaboratorPermissions","shouldHavePpuLibraryAction","addCourses","onAddToPpuLibrary","remove","onMoveToTopOfGroup","onMoveToBottomOfGroup","onAddToGroup","onMoveToBottomOfList","onMoveToTopOfList","onMoveAboveGroup"],["listContextMenu",""],["class","e2e-list-error centerbox bg-light-primary py-60 text-center",3,"ngClass",4,"ngIf"],["left",""],[3,"actions","selectionCount"],["color","primary","size","sm","variant","contained",3,"className","startIcon","click",4,"ngIf"],["color","primary","size","sm","variant","contained",3,"className","startIcon","click"],["ogSize","15","size","small",3,"className","class",4,"ngIf"],["ogSize","15","size","small",3,"className"],["className","btn-quick-start-guide","color","primary","size","sm","variant","contained"],["down","md"],["className","mx-10","startIcon","restore","size","sm",3,"click"],["up","lg"],["className","mx-10","size","sm",3,"click"],["color","inherit","fontSize","sm","icon","restore","viewBox","0 0 24 18"],["startIcon","add","size","sm",3,"click"],["startIcon","create_new_folder","size","sm",3,"click"],["size","sm",3,"click"],["color","inherit","fontSize","sm","icon","create_new_folder","viewBox","0 0 24 18"],[1,"empty-set"],["colspan","5"],["class","ui-selection-column fit-content",4,"ngIf"],["class","title-column text-left",3,"pSortableColumn",4,"ngIf"],["class","text-left",3,"pSortableColumn",4,"ngIf"],["class","fit-content",4,"ngIf"],["class","text-right",3,"pSortableColumn",4,"ngIf"],["class","text-center",3,"pSortableColumn",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"ui-selection-column","fit-content"],[1,"title-column","text-left",3,"pSortableColumn"],[1,"ui-column-title"],[3,"field"],[1,"text-left",3,"pSortableColumn"],[1,"ui-column-title","e2e-ratings-column"],[1,"fit-content"],[1,"text-right",3,"pSortableColumn"],[1,"text-center",3,"pSortableColumn"],[1,"text-center"],[3,"ngIf"],[3,"pContextMenuRow","ngClass"],["class","notranslate",4,"ngIf"],[1,"title-column","text-left","notranslate"],[1,"bold","group-name","flex","justify-content-between","w-100","pr-60","pr-md-80","pr-lg-0"],[4,"ngIf","ngIfElse"],["notEditableTitle",""],["class","material-icons group-context-menu",3,"click",4,"ngIf"],["align","right","colspan","9",1,"add-courses-cell"],["class","e2e-add-courses-button",4,"ngIf"],["class","py-10 px-20 right notranslate",4,"ngIf"],[1,"notranslate"],[3,"value"],["placeholderText","New Group","type","content",3,"startInEditMode","defaultText","inline","required","cancel","saveChanges"],[3,"ngClass"],[1,"material-icons","group-context-menu",3,"click"],[1,"e2e-add-courses-button"],["className","right","size","sm",3,"click"],["color","inherit","fontSize","sm","icon","add","viewBox","0 0 24 18"],[1,"py-10","px-20","right","notranslate"],["size","sm"],["class","title-column text-left pl-xl-30 notranslate",4,"ngIf"],["class","text-left no-wrap notranslate","style","line-height: 20px",4,"ngIf"],["class","with-button with-button-no-text text-center notranslate",4,"ngIf"],["class","text-right no-wrap notranslate",4,"ngIf"],["class","text-left no-wrap notranslate",4,"ngIf"],["class","draggable text-light text-color-primary--hover text-center notranslate",4,"ngIf"],[3,"className"],["languageTooltip",""],["class","popperContent",4,"ngFor","ngForOf"],["class","popperContent",4,"ngIf"],[1,"title-column","text-left","pl-xl-30","notranslate"],[1,"title-wrapper"],["class","material-icons unavailable-lock",3,"mouseleave","mouseover",4,"ngIf"],[1,"inline-block","m-0",2,"max-width","90%"],[1,"table-link","text-color-primary--hover","inline-vertical-middle",3,"click"],["class","course-context-menu",3,"click",4,"ngIf"],[1,"material-icons","unavailable-lock",3,"mouseleave","mouseover"],["icon",""],[1,"course-context-menu",3,"click"],[1,"material-icons"],[1,"text-left","no-wrap","notranslate",2,"line-height","20px"],[3,"value",4,"ngIf"],[1,"with-button","with-button-no-text","text-center","notranslate"],[1,"e2e-language-globe"],["popperPlacement","top","popperTrigger","hover",3,"popper","popperApplyClass"],["color","inherit","fontSize","inherit","
1icon","language",3,"className"],[1,"text-right","no-wrap","notranslate"],[1,"text-left","no-wrap","notranslate"],[1,"e2e-course-style-text"],["class","ui-column-title",4,"ngIf"],["justifyContent","spaceAround"],[4,"appExcludeIf"],["color","info","size","sm","square","true",4,"ngIf"],["class","price",4,"ngIf"],["color","primary","size","sm","square","true",4,"ngIf"],["color","primary","size","sm","square","true"],["color","info","size","sm","square","true"],[1,"price"],["className","btn-status e2e-list-demo-button","newTab","true","size","sm",3,"link","click",4,"ngIf"],["className","btn-status e2e-list-demo-button","newTab","true","size","sm",3,"link","click"],["color","inherit","fontSize","sm","icon","ondemand_video","viewBox","0 0 24 18"],["className","btn-status feedbackBtn","size","sm",3,"click",4,"ngIf"],["className","btn-status feedbackBtn","googleIcon","thumb_up","size","sm",3,"click",4,"ngIf"],["className","btn-status feedbackBtn","size","sm",3,"click"],["className","e2e-feedback-thumb-up-down","color","inherit","fontSize","sm","icon","thumb_up","iconStyle","outlined","viewBox","0 0 24 18"],["className","e2e-feedback-thumb-up","color","success","fontSize","sm","icon","thumb_up","viewBox","0 0 24 18"],["className","btn-status feedbackBtn","googleIcon","thumb_up","size","sm",3,"click"],["className","e2e-feedback-thumb-down","color","error","fontSize","sm","icon","thumb_down","viewBox","0 0 24 18"],[1,"draggable","text-light","text-color-primary--hover","text-center","notranslate"],[1,"handle"],[1,"popperContent"],["tx-content","block"],["tx-content","exclude"],[1,"e2e-list-error","centerbox","bg-light-primary","py-60","text-center",3,"ngClass"],["paragraph","true",4,"ngIf"],["paragraph","true"],["size","large"],[3,"routerLink"],["color","primary","hasParent","true","variant","contained"]],template:function(n,t){1&n&&(e.TgZ(0,"app-action-bar"),e._uU(1,"\n "),e.YNc(2,Ua,9,3,"ng-container",0),e._uU(3,"\n "),e.ynx(4,1),e._uU(5,"\n "),e.YNc(6,wa,2,0,"og-button",2),e._uU(7,"\n "),e.YNc(8,Ma,16,0,"ng-container",3),e._uU(9,"\n "),e.YNc(10,Za,19,0,"ng-container",3),e._uU(11,"\n "),e.TgZ(12,"div",4),e._uU(13,"\n "),e.TgZ(14,"app-form-search",5),e.NdJ("input",function(r){return t.pTable.filterGlobal(r.target.value,"contains")})("clearSearch",function(){return t.pTable.filterGlobal("","contains")})("onFocus",function(){return t.searchFocused=!0})("onBlur",function(){return t.searchFocused=!1})("ngModelChange",function(r){return t.listSearchValue=r}),e.qZA(),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.BQk(),e._uU(17,"\n"),e.qZA(),e._uU(18,"\n"),e.TgZ(19,"div",6),e._uU(20,"\n "),e.TgZ(21,"div",7),e._uU(22,"\n "),e.TgZ(23,"p-table",8,9),e.NdJ("selectionChange",function(r){return t.selectedItems=r})("onRowSelect",function(r){return t.onRowSelect(r)})("onRowUnselect",function(r){return t.onRowUnselect(r)})("dragulaModelChange",function(r){return t.list.tableRows=r})("sortFunction",function(r){return t.groupSort(r)})("contextMenuSelectionChange",function(r){return t.contextMenuRow=r}),e._uU(25,"\n "),e.YNc(26,Pa,10,0,"ng-template",10),e._uU(27,"\n "),e.YNc(28,Qa,26,11,"ng-template",11),e._uU(29,"\n "),e.YNc(30,Ml,7,2,"ng-template",12),e._uU(31,"\n "),e.qZA(),e._uU(32,"\n "),e._UZ(33,"div",13,14),e._uU(35,"\n "),e.TgZ(36,"app-list-context-menu",15,16),e.NdJ("addCourses",function(r){return t.launchGroupCoursesModal(r,"context-menu")})("onAddToPpuLibrary",function(){return t.addToPPULibrary()})("remove",function(){return t.showRemoveModal()})("onMoveToTopOfGroup",function(r){return t.moveToTopOfGroup(r.groupId)})("onMoveToBottomOfGroup",function(r){return t.moveToBottomOfGroup(r.groupId)})("onAddToGroup",function(r){return t.addToGroup(r.groupId)})("onMoveToBottomOfList",function(){return t.moveSelectedGroupsToBottom()})("onMoveToTopOfList",function(){return t.moveSelectedGroupsToTop()})("onMoveAboveGroup",function(r){return t.moveAboveGroup(r.groupId)}),e.qZA(),e._uU(38,"\n "),e.qZA(),e._uU(39,"\n "),e.YNc(40,Ol,8,6,"div",17),e._uU(41,"\n"),e.qZA(),e._uU(42,"\n")),2&n&&(e.xp6(2),e.Q6J("ngIf",t.visibleColumns.checkbox),e.xp6(4),e.Q6J("ngIf",t.showQuickStartButton),e.xp6(2),e.Q6J("ngIf",t.isTableSorted()),e.xp6(2),e.Q6J("ngIf",!t.isReadOnlyView()),e.xp6(2),e.Q6J("ngClass",e.WLB(28,Il,!t.showListItems(),t.searchFocused)),e.xp6(2),e.Q6J("wrapperClasses",e.DdM(31,kl))("ngModel",t.listSearchValue)("ngModelOptions",e.DdM(32,Nl)),e.xp6(7),e.Q6J("ngClass",e.VKq(33,ql,!t.showListItems())
1),e.xp6(2),e.Q6J("styleClass",t.isReadOnlyView()?"":"table-selectable")("value",t.list.rows)("exportFilename",t.list.title)("selection",t.selectedItems)("dragulaModel",t.list.tableRows)("dragulaOptions",t.dragulaOptions)("globalFilterFields",e.DdM(35,Fl))("responsive",!0)("rowHover",!1)("customSort",!0)("contextMenu",t.contextMenu.menu)("contextMenuSelection",t.contextMenuRow),e.xp6(13),e.Q6J("contextMenuRow",t.contextMenuRow)("selectedGroups",t.selectedGroups)("selectedCourses",t.selectedCourses)("hidden",t.hideContextMenu)("collaboratorPermissions",t.collaboratorPermissions)("shouldHavePpuLibraryAction",t.canMakePpuLibraryAction()),e.xp6(4),e.Q6J("ngIf",!t.showListItems()))},dependencies:[D.jx,M.r0,_a.Yw,_.mk,_.sg,_.O5,f.rH,Ze.wy,We.F,ga.Ck,de.Ml,de.XS,u.JJ,Ne.E,nt,u.On,W.Q,fa,Ca.T,Ke.H,A.iA,A.lQ,A.zi,A.fz,A.UA,A.Mo,et.K,Ue.bk,N.lo,va.X,Pr,_.H9,en._],styles:["[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}.course-context-menu[_ngcontent-%COMP%]{visibility:hidden;display:inline-block;float:right;position:relative;line-height:1;left:.9em;font-size:1.6em;cursor:pointer}@media screen and (max-width: 767px){.course-context-menu[_ngcontent-%COMP%]{visibility:visible;opacity:.5;position:absolute;right:0;left:auto}}.unavailable-lock[_ngcontent-%COMP%]{top:4px;left:-20px;position:absolute}@media screen and (max-width: 767px){.unavailable-lock[_ngcontent-%COMP%]{left:59px;top:2px}}.title-wrapper[_ngcontent-%COMP%]{position:relative}@media screen and (max-width: 767px){.title-wrapper[_ngcontent-%COMP%]{display:flex;width:100%}}.group-context-menu[_ngcontent-%COMP%]{visibility:hidden;left:.9em;font-size:1.6em;margin-right:0;padding-top:.4em}@media screen and (max-width: 767px){.group-context-menu[_ngcontent-%COMP%]{visibility:visible;opacity:.5}}tr[_ngcontent-%COMP%]:hover .course-context-menu[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]:hover .group-context-menu[_ngcontent-%COMP%]{visibility:visible}.unavailable[_ngcontent-%COMP%]{opacity:.4}@media screen and (max-width: 1300px){.table-search-container[_ngcontent-%COMP%]{width:180px}}@media screen and (max-width: 767px){.table-search-container.focused[_ngcontent-%COMP%]{width:calc(100% + 10px);position:absolute;background:white;left:-10px;top:0;right:-10px}.table-search-container[_ngcontent-%COMP%]{width:80px}}"],data:{animation:[(0,Y.X$)("adding",[(0,Y.SB)("added",(0,Y.oB)({opacity:1})),(0,Y.eR)("void => added",[(0,Y.oB)({opacity:0,backgroundColor:"rgba(225, 185, 70, 0.5)"}),(0,Y.jt)("0.5s ease-in")])]),K.Ic]}}),se);dt=(0,k.gn)([(0,v.ozS)(i=>(0,v.kcS)({languageCount:{flexGrow:1,paddingRight:i.spacing.unit,textAlign:"right",whiteSpace:"nowrap"},languageTooltip:{backgroundColor:`${i.palette.common.white} ! important`,border:"1px solid rgba(0, 0, 0, 0.23) ! important",borderRadius:"5px ! important",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25) ! important",color:`${i.palette.text.primary} ! important`,marginBottom:5,"& > .ngxp__arrow":{borderBottomColor:"transparent ! important",borderColor:`${i.palette.common.white} ! important`,borderLeftColor:"transparent ! important",borderRightColor:"transparent ! important"}},iconSize:{fontSize:"19px",verticalAlign:"text-bottom"},popper:{"& p.popperContent":{display:"inline"}},deliveryButton:{minWidth:"152px",maxHeight:"35px"},deliveryLoadingIndicator:{"& .og-circular-progress-svg":{color:"white"}},deliveryLoadingIndicatorPadding:{"& > .layout":{paddingTop:"3px"}}})),(0,k.w6)("design:paramtypes",[Se.pQ,w.g,S.XN,f.gz,f.F0,we.HT,B.f,O.V,ve.I,ee,I.B,z.z,Et.r,$t.Q,Ee.g,Kt.w,be.i])],dt);let tn=(()=>{const o=class{constructor(t,s,r){this.collaboratorsService=t,this.router=s,this.session=r}resolve(t,s){var r=this;return(0,d.Z)(function*(){try{return(yield r.collaboratorsService.getPermissions(t.params.id))||[]}catch(a){console.log(a,"list permissions error"),r.session&&r.session.session.isLoggedIn||!a.status||403!==a.status?yield r.router.navigate(["/os404"]):yield r.router.navigate(["/user/login"])}})()}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(he),e.LFG(f.F0),e.LFG(O.V))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})();var Ql=c(6168),El=c(9339),nn=c(811);class on extends X.s{constructor(){super(...arguments),this.type=y.r.Duplicate,this.title="Duplicate"}shouldInclude(){return this.session.isLoggedIn}}class Hl extends X.s{constructor(){super(...arguments),this.type=y.r.TogglePrices}get title(){return this.list.hidePrices?"Show prices":"Hide prices"}shouldInclude(){return this.userPermissions.canChangeListPriceVisibility}}class zl extends X.s{constructor(){super(...arguments),this.type=y.r.CsvDownload}get title(){return"Download as CSV"}shouldInclude(){return this.hasCollabPermission(Z.v.CanDownloadCSV)}}var sn=c(1288);class jl extends X.s{constructor(){super(...arguments),this.type=y.r.AddCoursesByGuid,this.title="Add courses by guid"}shouldInclude(){return this.hasCollabPermission(Z.v.CanAddGuids)}}class $l extends X.s{constructor(){super(...arguments),this.title="List Privacy Settings",this.type=y.r.PrivacySettings}shouldInclude(){return this.hasCollabPermission(Z.v.Publish)}}let rn=(()=>{const o=class extends ot.e{constructor(t,s,r,a=o.defaultOptions){super(t,s,r,a)}optionMenu(){const t=this.build();return null===t?null:{title:"Options",linkClass:"options-menu",action:!1,children:t}}};let i=o;return o.defaultOptions=[{items:[it,sn.Y,on,Fo]},{items:[jl,zl,Hl,$l]}],i})();var j=(()=>{return(i=j||(j={})).MakePublic="Make List Public",i.MakePrivate="Make List Private",i.MakeSearchable="Make List Public and
1Searchable",i.UpdateTitle="Update List Title",i.UpdateDescription="Update List Description",i.UpdatePriceVisibility="Update List Price Visibility",j;var i})();class an extends R.x{constructor(o,n){super(o,{listMetaData:n.listMetaData,updateType:n.updateType})}}var Wl=c(2388),H=(()=>{return(i=H||(H={}))[i.private=0]="private",i[i.publicNotSearchable=1]="publicNotSearchable",i[i.publicSearchable=2]="publicSearchable",H;var i})();const Le=[{value:"private",label:"Private",description:"List will only be visible to you and collaborators you personally invite."},{value:"publicNotSearchable",label:"Public \u2014 Not Searchable",description:"List can be followed by all logged in users. List can be shared via a publicly sharable link."}],pt=[...Le,{value:"publicSearchable",label:"Public \u2014 Searchable",description:"List will be included in catalog search results. Logged in users can follow this list to receive updates.\n List can be shared via a publicly sharable link. Contact your CSM to promote your list on the catalog homepage."}];var Xl=c(247),ec=c(1342),ln=c(2144),tc=c(4549);let nc=(()=>{const o=class{constructor(t,s,r){this.notificationService=t,this.window=s,this.accessUrlService=r}ngOnInit(){this.sharableLink=this.buildSharableUrl(this.window.instance.location.href)}buildSharableUrl(t){const s=t.replace("https://","");return"https://"+this.accessUrlService.csrToWwwReplace(s)}copyToClipboard(){const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.value=this.sharableLink,document.body.appendChild(t),t.select(),t.focus(),document.execCommand("copy"),document.body.removeChild(t),this.notificationService.publishNotification(x.n.QuickStartClipboardText,"success")}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(w.g),e.Y36(tc.D),e.Y36(ln.J))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sharable-link-component"]],decls:12,vars:1,consts:[[1,"pt-20"],["fontWeight","medium"],[1,"sharable-link-text"],[3,"click"]],template:function(s,r){1&s&&(e.TgZ(0,"div",0),e._uU(1,"\n "),e.TgZ(2,"og-typography",1),e._uU(3,"Sharable Link"),e.qZA(),e._uU(4,"\n "),e.TgZ(5,"span",2),e._uU(6),e.qZA(),e._uU(7,"\n "),e.TgZ(8,"og-button",3),e.NdJ("click",function(){return r.copyToClipboard()}),e._uU(9,"Copy Link"),e.qZA(),e._uU(10,"\n"),e.qZA(),e._uU(11,"\n")),2&s&&(e.xp6(6),e.Oqu(r.sharableLink))},dependencies:[M.r0,N.lo],styles:["span.sharable-link-text[_ngcontent-%COMP%]{font-weight:400;font-size:14px;padding:7px 8px;background-color:#fafafa;background-repeat:no-repeat;background-position:right 8px center;border:1px solid #ccc;border-radius:3px;outline:none;box-shadow:inset 0 1px 2px #00000013}"]}),i})();const oc=["modal"];function ic(i,o){if(1&i){const n=e.EpF();e._uU(0,"\n "),e.TgZ(1,"div",8),e._uU(2,"\n "),e.TgZ(3,"og-button",9),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.updateSettings())}),e._uU(4,"Update Settings"),e.qZA(),e._uU(5,"\n "),e.qZA(),e._uU(6,"\n")}}const sc=function(i){return{hidden:i}},cn={cloneDeep:q.cloneDeep};let rc=(()=>{const o=class{constructor(t,s,r){this.listService=t,this.notificationService=s,this.segmentService=r,this.onSubmit=new e.vpe,this.hasElevatedPrivacyPermission=!1,this.privateSetting={...Le[H.private]},this.processing=!1}ngOnInit(){this.listPrivacyForm=new u.nJ({listPrivacyOption:new u.p4(this.defaultPrivacySetting),listImage:new u.p4(this.imagePath)}),this.hasImageBeforeUpdate=this.hasSelectedImage()}show({listId:t,imagePath:s,privacySetting:r,hasElevatedListPrivacyPermissions:a}){void 0!==t&&(this.id=t),this.imagePath=s,this.defaultPrivacySetting={...pt[r]},this.hasElevatedPrivacyPermission=a,this.listPrivacyOptions=cn.cloneDeep(a?pt:Le),this.modal.show()}hide(){this.modal.hide()}updateSettings(){var t=this;return(0,d.Z)(function*(){try{t.processing=!0,yield t.handleImageUpload();const s=yield t.handlePrivacySettingUpdate();t.onSubmit.emit({list:s}),t.hide()}catch(s){console.error(s);const r=(0,$.KU)(s)||x.n.ListErrorText;t.notificationService.publishNotification(r,"error")}finally{t.processing=!1}})()}handlePrivacySettingUpdate(){var t=this;
1return(0,d.Z)(function*(){const s=t.listPrivacyForm.get("listPrivacyOption").value,a=Le[H.publicNotSearchable].value,l=pt[H.publicSearchable].value;let p;if(s.value===Le[H.private].value)p=yield t.listService.privatizeList(t.id),t.trackListUpdateSettingsEvent(p,j.MakePrivate),t.notificationService.publishNotification(x.n.ListMakePrivateText,"success");else if(s.value===a)p=yield t.listService.publishList(t.id),t.trackListUpdateSettingsEvent(p,j.MakePublic),t.notificationService.publishNotification(x.n.ListMakePublicText,"success");else{if(s.value!==l||!t.hasElevatedPrivacyPermission)throw new Error("invalid publish option selected");p=yield t.listService.publishSearchableList(t.id),t.trackListUpdateSettingsEvent(p,j.MakeSearchable),t.notificationService.publishNotification(x.n.ListMakeSearchableText,"success")}return p})()}handleImageUpload(){var t=this;return(0,d.Z)(function*(){t.hasSelectedImage()&&!(0,v.HD0)(t.getSelectedImage())?(yield t.listService.uploadImage(t.id,t.getSelectedImage()),t.notificationService.publishNotification(x.n.ListImageUpdated,"success")):t.hasImageBeforeUpdate&&!t.hasSelectedImage()&&(yield t.listService.deleteImage(t.id),t.notificationService.publishNotification(x.n.ListImageRemoved,"success"))})()}hasSelectedImage(){return null!==this.listPrivacyForm.get("listImage").value}getSelectedImage(){return this.listPrivacyForm.get("listImage").value}trackListUpdateSettingsEvent(t,s){this.segmentService.trackEvent(new an(F.z.UpdateSettings,{listMetaData:t,updateType:s}))}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(S.XN),e.Y36(w.g),e.Y36(I.B))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-list-privacy-settings"]],viewQuery:function(s,r){if(1&s&&e.Gf(oc,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{onSubmit:"onSubmit"},decls:22,vars:9,consts:[["uniqueSelector","list-privacy-settings-modal","headline","List Privacy Settings","contentClasses","text-left",3,"dockedMessageTemplate"],["modal",""],[1,"list-privacy-modal",3,"formGroup"],["name","List Privacy Options","labelClass","visually-hidden","label","List Privacy Options","formControlName","listPrivacyOption","fieldsetClasses","mt-0 mb-10","inputWrapperClasses","d-flex justify-content-between align-items-center",3,"options","selection","stacked"],[1,"image-and-link-container",3,"ngClass"],["className","mt-30","fontWeight","medium"],["formControlName","listImage",3,"url"],["updateSettingsButton",""],[1,"d-flex","justify-content-end","w-100"],["color","primary","size","sm","variant","contained",3,"click"]],template:function(s,r){if(1&s&&(e.TgZ(0,"app-single-step-modal",0,1),e._uU(2,"\n "),e.TgZ(3,"form",2),e._uU(4,"\n "),e._UZ(5,"app-form-radio-group",3),e._uU(6,"\n "),e.TgZ(7,"div",4),e._uU(8,"\n "),e._UZ(9,"app-sharable-link-component"),e._uU(10,"\n "),e.TgZ(11,"og-typography",5),e._uU(12,"List Image"),e.qZA(),e._uU(13,"\n "),e._UZ(14,"app-form-image-upload",6),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n"),e.qZA(),e._uU(18,"\n\n"),e.YNc(19,ic,7,0,"ng-template",null,7,e.W1O),e._uU(21,"\n")),2&s){const a=e.MAs(20);e.Q6J("dockedMessageTemplate",a),e.xp6(3),e.Q6J("formGroup",r.listPrivacyForm),e.xp6(2),e.Q6J("options",r.listPrivacyOptions)("selection",r.defaultPrivacySetting)("stacked",!0),e.xp6(2),e.Q6J("ngClass",e.VKq(7,sc,r.listPrivacyForm.get("listPrivacyOption").value.value===r.privateSetting.value)),e.xp6(7),e.Q6J("url",r.imagePath)}},dependencies:[M.r0,_.mk,Xl.P,ec.O,u._Y,u.JJ,u.JL,u.sg,u.u,Wl.Q,N.lo,nc],styles:[".list-privacy-modal[_ngcontent-%COMP%]{padding-top:20px}.image-and-link-container[_ngcontent-%COMP%]{border-top:1px solid #c9c9c9}"]}),i})();var ac=c(2878);class lc extends R.x{constructor(o,n){super(o,{listMetaData:n.listMetaData})}}let un=(()=>{const o=class extends ot.e{constructor(t,s,r,a=o.defaultOptions){super(t,s,r,a),this.click=new Ve.xQ,this.type=y.r.FollowList}get isFollowing(){return this.list.type===g.co.subscription}hasCollabPermission(t){return void 0!==this.collaboratorPermissions.find(s=>s===t)}shouldInclude(){return this.list.isPublic&&this.hasCollabPermission(Z.v.FollowList)}createFollowButton(){let t=null;return this.shouldInclude()&&(t={title:this.isFollowing?"Following":"Follow List",icon:this.isFollowing?"check_circle":"add_circle",callBack:()=>
1{this.click.next(this.type)},mouseEnter:s=>{this.isFollowing&&(s.title="Unfollow ",s.icon="cancel",s.linkClass="unfollow-list")},mouseLeave:s=>{this.isFollowing&&(s.title="Following",s.icon="check_circle")}},this.registerClickListeners()),t}registerClickListeners(){this.clickSubscriptions&&this.clickSubscriptions.forEach(t=>t.unsubscribe()),this.clickSubscriptions=[this.click.subscribe(t=>{this.clicks.next(t)})]}};let i=o;return o.defaultOptions=[],i})();class dn extends R.x{constructor(o,n){super(o,{listMetaData:n.listMetaData,subscribed:n.subscribed})}}const dc=["togglePricesModal"];let pc=(()=>{const o=class{constructor(){this.onSubmit=new e.vpe}ngOnInit(){}togglePricesEvent(){this.onSubmit.emit({hidePrices:!this.hidePrices}),this.hide()}show(t){this.hidePrices=t.hidePrices,this.modal.show()}hide(){this.modal.hide()}};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-toggle-prices-modal"]],viewQuery:function(s,r){if(1&s&&e.Gf(dc,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{onSubmit:"onSubmit"},decls:10,vars:3,consts:[[3,"headline","subHeadline"],["togglePricesModal",""],["size","sm",3,"click"],["color","primary","size","sm","variant","contained",3,"click"]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e._uU(2,"\n "),e.TgZ(3,"og-button",2),e.NdJ("click",function(){return r.hide()}),e._uU(4,"Cancel"),e.qZA(),e._uU(5,"\n "),e.TgZ(6,"og-button",3),e.NdJ("click",function(){return r.togglePricesEvent()}),e._uU(7),e.qZA(),e._uU(8,"\n"),e.qZA(),e._uU(9,"\n")),2&s&&(e.MGl("headline","",r.hidePrices?"Show":"Hide"," Prices In This List")("subHeadline","Are you sure you want ",r.hidePrices?"show":"hide"," prices in this list?"),e.xp6(7),e.Oqu(r.hidePrices?"Show":"Hide"))},dependencies:[M.r0,J.z]}),i})();const _c=["modal"],gc=["companyForm"],pn=function(i){return{flex:!0,hidden:i}},mc=function(){return["text-left","mt-20","mb-0"]},hc=function(){return["mt-20","mb-0","relative"]};function fc(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"div",9),e._uU(1,"\n "),e.TgZ(2,"div",10),e._uU(3,"\n "),e._UZ(4,"app-form-input",11),e._uU(5,"\n "),e.TgZ(6,"div",12),e._uU(7,"\n "),e.TgZ(8,"og-button",7),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.editCompanyDomain())}),e._uU(9,"Edit"),e.qZA(),e._uU(10,"\n "),e.TgZ(11,"og-button",7),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.editAndClearCompanyDomain())}),e._uU(12,"Clear"),e.qZA(),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.qZA(),e._uU(15,"\n "),e.TgZ(16,"div",10),e._uU(17,"\n "),e.TgZ(18,"app-company-typeahead",13,14),e.NdJ("formReady",function(s){e.CHM(n);const r=e.oxw();return e.KtG(r.formInitialized("companyForm",s))}),e.qZA(),e._uU(20,"\n "),e.TgZ(21,"div",12),e._uU(22,"\n "),e.TgZ(23,"og-button",7),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.cancelEditCompanyDomain())}),e._uU(24,"Cancel"),e.qZA(),e._uU(25,"\n "),e.qZA(),e._uU(26,"\n "),e.qZA(),e._uU(27,"\n "),e.qZA()}if(2&i){const n=e.oxw();e.xp6(2),e.Q6J("ngClass",e.VKq(5,pn,!n.isReadOnly)),e.xp6(2),e.Q6J("value",null==n.company?null:n.company.name)("wrapperClasses",e.DdM(7,mc)),e.xp6(12),e.Q6J("ngClass",e.VKq(8,pn,n.isReadOnly)),e.xp6(2),e.Q6J("wrapperClasses",e.DdM(10,hc))}}const Cc=function(){return["text-left"]},vc=function(){return["text-left","p-0"]};let _n=(()=>{const o=class{constructor(t,s,r,a){this.listService=t,this.router=s,this.notificationService=r,this.activeSession=a,this.onSubmit=new e.vpe,this.headline="Duplicate List",this.subHeadline="",this.copying=!1,this._isReadOnly=!0}ngOnInit(){this.defaultTitleValue=this.title?"Copy of "+this.title:null,this.copyListForm=new u.nJ({companyName:new u.p4(null),title:new u.p4(this.defaultTitleValue,[u.kI.required]),description:new u.p4(this.description)})}copyList(){var t=this;return(0,d.Z)(function*(){if(!t.copyListForm.controls.title.invalid){t.copying=!0;try{let s;t.companyControls&&(s=null!==t.companyControls.value?t.companyControls.value.id:null);const r=yield t.listService.copyList(t.id,t.copyListForm.get("title").value,t.copyListForm.get("description").value,s);t.onSubmit.emit({updateAllLists:!0}),yield t.router.navigate([r.path],{queryParams:r.options.query})}catch(s){console.error(s);const r=(0,$.KU)(s)||x.n.ListCopyError;t.notificationService.publishNotification(r,"error")}finally{t.copying=!1,t.hide()}}})()}get listTitle(){return this.copyListForm.get("title")}show(t){void 0!==t.listId&&(this.id=t.listId),this.title=t.title,this.company=t.company,this.description=t.description,this.headline=t.headline||this.headline,this.subHeadline=t.subHeadline||this.subHeadline,this.companyForm&&this.companyForm.initializeFormSubscriptions(),this.modal.show()}hide(){this.modal.hide(),this.closeModalActions()}closeModalActions(){this.copyListForm.reset(),this.companyForm&&this.companyForm.resetForm()}get isReadOnly(){return this._isReadOnly}editCompanyDomain(){this._isReadOnly=!1}editAndClearCompanyDomain(){this.companyDomainControls.patchValue(null),this.companyControls.patchValue(null),this._isReadOnly=!1}cancelEditCompanyDomain(){this._isReadOnly=!0,this.companyDomainControls.patchValue(null),this.companyControls.patchValue(this.company?this.company:null)}get companyControls(){return this.copyListForm.get("companyForm.company")}get companyDomainControls(){return this.copyListForm.get("companyForm.companyDomain")}formInitialized(t,s){s.get("company")&&this.company&&(s.get("company").patchValue(this.company),this.copyListForm.get("companyName").patchValue(this.company.name)),this.copyListForm.setControl(t,s),this.copyListForm.get("title").patchValue(this.defaultTitleValue),this.copyListForm.get("description").patchValue(this.description)}
1errorMessage(){return this.listTitle.invalid&&(this.listTitle.dirty||this.listTitle.touched)?"Title is required":""}get session(){return this.activeSession.session}get canSetCompanyOnList(){return this.session.permissions.canSetCompanyOnList}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(S.XN),e.Y36(f.F0),e.Y36(w.g),e.Y36(O.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-copy-list-modal"]],viewQuery:function(s,r){if(1&s&&(e.Gf(_c,7),e.Gf(gc,5)),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first),e.iGM(a=e.CRH())&&(r.companyForm=a.first)}},outputs:{onSubmit:"onSubmit"},decls:22,vars:9,consts:[["googleIconImageName","content_copy",3,"headline","subHeadline","onHide"],["modal",""],[3,"formGroup","ngSubmit"],["class","company-form-group",4,"ngIf"],["formControlName","title","label","Title","inputId","title","placeholder","Title","type","text",3,"errorMessage","wrapperClasses"],["formControlName","description","inputId","description","label","Description","placeholder","Description",3,"wrapperClasses"],[1,"pt-40","text-left"],["size","sm",3,"click"],["buttonType","submit","color","primary","size","sm","variant","contained"],[1,"company-form-group"],[3,"ngClass"],["formControlName","companyName","label","Company","inputId","companyName","readonly","true",2,"flex","1",3,"value","wrapperClasses"],[2,"margin","0 0 8px 10px","align-self","flex-end","gap","4px"],[1,"text-left",2,"flex","1",3,"wrapperClasses","formReady"],["companyForm",""]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e.NdJ("onHide",function(){return r.closeModalActions()}),e._uU(2,"\n "),e.TgZ(3,"form",2),e.NdJ("ngSubmit",function(){return r.copyList()}),e._uU(4,"\n "),e.YNc(5,fc,28,11,"div",3),e._uU(6,"\n "),e._UZ(7,"app-form-input",4),e._uU(8,"\n "),e._UZ(9,"app-form-textarea",5),e._uU(10,"\n "),e.TgZ(11,"div",6),e._uU(12,"\n "),e.TgZ(13,"og-button",7),e.NdJ("click",function(){return r.hide()}),e._uU(14,"Cancel"),e.qZA(),e._uU(15,"\n "),e.TgZ(16,"og-button",8),e._uU(17,"Duplicate List"),e.qZA(),e._uU(18,"\n "),e.qZA(),e._uU(19,"\n "),e.qZA(),e._uU(20,"\n"),e.qZA(),e._uU(21,"\n")),2&s&&(e.Q6J("headline",r.headline)("subHeadline",r.subHeadline),e.xp6(3),e.Q6J("formGroup",r.copyListForm),e.xp6(2),e.Q6J("ngIf",r.canSetCompanyOnList),e.xp6(2),e.Q6J("errorMessage",r.errorMessage())("wrapperClasses",e.DdM(7,Cc)),e.xp6(2),e.Q6J("wrapperClasses",e.DdM(8,vc)))},dependencies:[M.r0,_.mk,_.O5,Tt.s,Lt.d,u._Y,u.JJ,u.JL,u.sg,u.u,J.z,Oe],data:{animation:[K.y0]}}),i})();var gn=c(998);const bc={includes:q.includes};class De{constructor(o,n){this.email=o.trim(),this.role=n,this.valid=gn.Q.validateEmail(this.email)&&this.validateRole(this.role)}validateRole(o){return bc.includes([P.Admin,P.Editor,P.Viewer],o)}}var _t=c(7731);const xc=["modal"];function yc(i,o){if(1&i&&(e.TgZ(0,"span",24),e._uU(1),e.qZA()),2&i){const n=e.oxw();e.Q6J("@slideInOut",void 0),e.xp6(1),e.hij("\n ",n.emailNotValidText,"\n ")}}function Tc(i,o){if(1&i){const n=e.EpF();e._uU(0,"\n "),e.TgZ(1,"tr",25),e._uU(2,"\n "),e._uU(3,"\n "),e.TgZ(4,"td",26),e._uU(5,"\n "),e.TgZ(6,"span",27),e._uU(7,"Name"),e.qZA(),e._uU(8),e.qZA(),e._uU(9,"\n "),e._uU(10,"\n "),e.TgZ(11,"td",28),e._uU(12,"\n "),e.TgZ(13,"span",27),e._uU(14,"Role"),e.qZA(),e._uU(15,"\n "),e.TgZ(16,"p-dropdown",29),e.NdJ("ngModelChange",function(s){const a=e.CHM(n).$implicit;return e.KtG(a.role=s)})("onChange",function(s){const a=e.CHM(n).$implicit,l=e.oxw();return e.KtG(l.onRoleSelectTable(s.value,a))}),e.qZA(),e._uU(17,"\n "),e.qZA(),e._uU(18,"\n "),e._uU(19,"\n "),e.TgZ(20,"td",30),e._uU(21,"\n "),e.TgZ(22,"span",31),e.NdJ("click",function(){const r=e.CHM(n).$implicit,a=e.oxw();return e.KtG(a.removeRow(r))}),e.qZA(),e._uU(23,"\n "),e.qZA(),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n ")}if(2&i){const n=o.$implicit,t=e.oxw();e.xp6(8),e.hij("\n ",n.email,"\n "),e.xp6(8),e.Q6J("ngModel",n.role)("options",t.roleOptions)("styleClass","table-dropdown")}}const Uc=function(i,o){return{"bg-light-primary":!0,"m-0":!0,"table-container":i,hidden:o}},mn="You've reached the maximum amount of collaborators added to a list. Reach out to your OpenSesame contact if you need additional assistance",hn="You've reached the daily list-sharing limit. Reach out to your OpenSesame contact if you need additional assistance";let wc=(()=>{const o=class{constructor(t,s,r){this.collaboratorsService=t,this.notificationService=s,this.messageBus=r,this.onSubmit=new e.vpe,this.formCollaborators=[],this.queuedCollaborators=[],this.sending=!1,this.hasNoCollaborators=!1,this.addCollaboratorFormInvalid=!1,this.emailNotValidText=_t.D.SingleEmailNotValidText,this.addCollaboratorForm=new u.nJ({emails:new u.p4(null,u.kI.required),role:new u.p4(P.Viewer,[u.kI.required])})}ngOnInit(){this.roles=new te,this.roleOptions=this.roles.roleOptions(this.permissions)}collaboratorFieldGroupsIsInvalid(){return this.addCollaboratorFormInvalid}
1removeCollaborator(t){this.formCollaborators=this.formCollaborators.filter(s=>s!==t)}handleKey(t){t.key===Q.nv.Enter||t.key===Q.nv.Space||t.key===Q.nv.Comma?this.validateAndAddToTable():t.key===Q.nv.Backspace&&""===this.addCollaboratorForm.controls.emails.value&&this.removeCollaborator(this.formCollaborators[this.formCollaborators.length-1]),t.key===Q.nv.Enter&&t.preventDefault()}validateAndAddToTable(){const t=this.addCollaboratorForm.controls.emails.value,s=this.addCollaboratorForm.controls.role.value;if(this.queuedCollaborators.length>=30)return this.notificationService.publishNotification(x.j.tooManyCollaboratorsText(this.queuedCollaborators.length,30),"error"),void this.formReset();if(!ge.m.isEmpty(t))if(ge.m.isCommaOrNewLineDelimitedList(t))this.addParsedDelimitedEmailsToTable(t,s);else{const r=new De(t,s);r.valid?(this.addCollaboratorFormInvalid=!1,this.addCollaboratorForm.controls.emails.reset(),this.formCollaborators.push(r),this.queueAddCollaborators()):this.addCollaboratorFormInvalid=!0}}addParsedDelimitedEmailsToTable(t,s){const r=ge.m.parseCommaOrNewLineDelimited(t);if(this.queuedCollaborators.length+r.length>30)return this.notificationService.publishNotification(x.j.tooManyCollaboratorsText(this.queuedCollaborators.length,30),"error"),void this.formReset();r.forEach(a=>{const l=new De(a,s);l.valid?(this.addCollaboratorFormInvalid=!1,this.queuedCollaborators.push(l)):this.notificationService.publishNotification(x.j.addCollaboratorBadEmailText(a),"error")}),this.formReset()}allCollaboratorsAreValid(){for(const t of this.formCollaborators)if(!t.valid)return!1;return this.hasNoCollaborators=!1,!0}removeComma(t){t.key===Q.nv.Comma&&","===this.addCollaboratorForm.controls.emails.value&&this.addCollaboratorForm.controls.emails.reset()}onRoleSelectForm(t){this.formCollaborators=this.formCollaborators.map(s=>new De(s.email,t))}onRoleSelectTable(t,s){s.role=t}queueAddCollaborators(){const t=this.addCollaboratorForm.controls;this.collaboratorFieldGroupsIsInvalid()||!this.allCollaboratorsAreValid()||t.emails.touched&&0===this.formCollaborators.length?this.hasNoCollaborators=!0:(this.formCollaborators.map(s=>{const r=new De(s.email,s.role);this.queuedCollaborators.push(r)}),this.formReset())}haveQueuedCollaborators(){return!!this.queuedCollaborators&&this.queuedCollaborators.length>0}needTableToScroll(){return!!this.queuedCollaborators&&this.queuedCollaborators.length>5}addCollaborators(){var t=this;return(0,d.Z)(function*(){if(!t.haveQueuedCollaborators())return;t.sending=!0;const s=t.queuedCollaborators.map(r=>({email:r.email,role:r.role}));try{const r=yield t.collaboratorsService.addCollaborators(t.listId,s);t.notificationService.publishNotification(x.j.listSendSuccessText(s.length),"success"),t.messageBus.publish(fe.AddCollaborators,{collaborators:r}),t.onSubmit.emit()}catch(r){let a=(0,$.KU)(r)||x.n.ListSendErrorText;r.error&&r.error.message&&r.error.message===mn&&(a=mn),r.error&&r.error.message&&r.error.message===hn&&(a=hn),t.notificationService.publishNotification(a,"error"),console.error(r)}finally{t.sending=!1,t.hide()}})()}removeRow(t){this.queuedCollaborators=this.queuedCollaborators.filter(s=>s!==t)}getRoleIcon(t){return te.getRoleIconCode(t)}show(t){void 0!==t.listId&&(this.listId=t.listId),this.permissions=t.permissions,this.modal.show()}hide(){this.modal.hide(),this.queuedCollaborators=[],this.formReset(),this.hasNoCollaborators=!1,this.addCollaboratorFormInvalid=!1}formReset(){this.formCollaborators=[],this.addCollaboratorForm.controls.emails.reset(),this.addCollaboratorForm.controls.role.reset(P.Viewer)}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(he),e.Y36(w.g),e.Y36(qe.Y))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-collaborators-modal"]],viewQuery:function(s,r){if(1&s&&e.Gf(xc,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{onSubmit:"onSubmit"},decls:62,vars:12,consts:[["headline","Share your list","googleIconImageName","send"],["modal",""],[1,"collaborator-form",3,"formGroup","ngSubmit"],[1,"form-wrapper","text-left","p-0","flex","align-items-end"],[1,"flex-grow-1","mr-10"],["for","emails",1,"form-label"],["popper","Add email addresses, select a role, and press add (+)","popperTrigger","hover","popperPlacement","bottom"],[1,"material-icons","tooltip-help-icon"],["class","error-msg",4,"ngIf"],["id","emails","formControlName","emails","placeholder","Enter email addresses",1,"form-field","text-size-md","m-0","resize-none",2,"height","42px","overflow","hidden","border-radius","5px",3,"keydown","keyup"],[1,"py-0","mt-8","mr-10"],["formControlName","role",3,"options","autoDisplayFirst","styleClass","onChange"],[1,"py-0","mt-8"],["buttonType","submit","className","e2e-add-collaborator-button"],["color","inherit","
1icon","add","viewBox","0 0 24 16"],[1,"form-wrapper","text-left","p-0"],[1,"py-20"],[3,"ngClass"],["styleClass","table-modal","dataKey","uniqueId",3,"value","responsive"],["table",""],["pTemplate","body"],[1,"pt-40","text-left"],[3,"click"],["buttonType","submit","className","e2e-share-list-submit-button","color","primary","variant","contained",3,"disabled","click"],[1,"error-msg"],[1,"notranslate","text-left"],[1,"border-right-0"],[1,"ui-column-title"],[1,"border-left-0","border-right-0","text-left","role-column"],[3,"ngModel","options","styleClass","ngModelChange","onChange"],[1,"border-left-0",2,"width","40px"],["tabindex","0",1,"cancel-icon","text-medium",3,"click"]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e._uU(2,"\n "),e.TgZ(3,"form",2),e.NdJ("ngSubmit",function(){return r.validateAndAddToTable()}),e._uU(4,"\n "),e.TgZ(5,"div",3),e._uU(6,"\n "),e.TgZ(7,"div",4),e._uU(8,"\n "),e.TgZ(9,"label",5),e._uU(10,"\n Collaborators\n "),e.TgZ(11,"span",6),e._uU(12,"\n "),e.TgZ(13,"i",7),e._uU(14,"\ue887"),e.qZA(),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.YNc(17,yc,2,2,"span",8),e._uU(18,"\n "),e.qZA(),e._uU(19,"\n "),e.TgZ(20,"textarea",9),e.NdJ("keydown",function(l){return r.handleKey(l)})("keyup",function(l){return r.removeComma(l)}),e.qZA(),e._uU(21,"\n "),e.qZA(),e._uU(22,"\n "),e.TgZ(23,"div",10),e._uU(24,"\n "),e.TgZ(25,"p-dropdown",11),e.NdJ("onChange",function(l){return r.onRoleSelectForm(l.value)}),e.qZA(),e._uU(26,"\n "),e.qZA(),e._uU(27,"\n "),e.TgZ(28,"div",12),e._uU(29,"\n "),e.TgZ(30,"og-button",13),e._uU(31,"\n "),e._UZ(32,"og-svg-icon",14),e._uU(33,"\n "),e.qZA(),e._uU(34,"\n "),e.qZA(),e._uU(35,"\n "),e.qZA(),e._uU(36,"\n "),e._UZ(37,"div",15),e._uU(38,"\n "),e.qZA(),e._uU(39,"\n "),e.TgZ(40,"div",16),e._uU(41,"\n "),e.TgZ(42,"div",17),e._uU(43,"\n "),e.TgZ(44,"p-table",18,19),e._uU(46,"\n "),e.YNc(47,Tc,26,4,"ng-template",20),e._uU(48,"\n "),e.qZA(),e._uU(49,"\n "),e.qZA(),e._uU(50,"\n "),e.qZA(),e._uU(51,"\n "),e.TgZ(52,"div",21),e._uU(53,"\n "),e.TgZ(54,"og-button",22),e.NdJ("click",function(){return r.hide()}),e._uU(55,"Cancel"),e.qZA(),e._uU(56,"\n "),e.TgZ(57,"og-button",23),e.NdJ("click",function(){return r.addCollaborators()}),e._uU(58,"\n Send List\n "),e.qZA(),e._uU(59,"\n "),e.qZA(),e._uU(60,"\n"),e.qZA(),e._uU(61,"\n")),2&s&&(e.xp6(3),e.Q6J("formGroup",r.addCollaboratorForm),e.xp6(14),e.Q6J("ngIf",r.collaboratorFieldGroupsIsInvalid()||r.hasNoCollaborators),e.xp6(8),e.Q6J("options",r.roleOptions)("autoDisplayFirst",!0)("styleClass","modal-dropdown add-collaborator-email"),e.xp6(17),e.Q6J("ngClass",e.WLB(9,Uc,r.needTableToScroll(),!r.haveQueuedCollaborators())),e.xp6(2),e.Q6J("value",r.queuedCollaborators)("responsive",!0),e.xp6(13),e.Q6J("disabled",!r.haveQueuedCollaborators()))},dependencies:[D.jx,M.r0,_.mk,_.O5,Ae.Lt,de.Ml,u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,u.On,A.iA,J.z,Ue.bk],styles:['[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}.cancel-icon[_ngcontent-%COMP%]:after{font-family:Material Icons;font-weight:400}.mt-8[_ngcontent-%COMP%]{margin-top:8px}.icon-only[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.cancel-icon[_ngcontent-%COMP%]:after{content:"\\e14c";padding:5px;cursor:pointer}.cancel-icon[_ngcontent-%COMP%]{font-size:24px;line-height:24px;vertical-align:baseline}.table-modal[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 10px!important}@media (max-width: 767px){.table-modal[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-right:40px!important;word-break:break-all}}.border-right-0[_ngcontent-%COMP%]{border-right:0 solid transparent!important}.border-left-0[_ngcontent-%COMP%]{border-left:0 solid transparent!important}.input-field-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%]{height:350px;overflow-y:auto;padding:0 0 115px}@media (min-width: 767px){.role-column[_ngcontent-%COMP%]{width:90px}}@media (max-width: 767px){.cancel-icon[_ngcontent-%COMP%]{position:absolute;right:5px;top:5px}}.resize-none[_ngcontent-%COMP%]{resize:none}'],data:{animation:[K.y0]}}),i})();var Mc=c(529);const Zc=["modal"];function Pc(i,o){if(1&i&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&i){const n=e.oxw();e.xp6(1),e.Oqu(n.guidFieldError())}}let Lc=(()=>{const o=class{constructor(t,s){this.listService=t,this.notificationService=s,this.onSubmit=new e.vpe,this.sending=!1}ngOnInit(){this.guidForm=new u.nJ({guids:new u.p4("",[u.kI.required,this.validateGuidList.bind(this)])})}
1submitForm(){var t=this;return(0,d.Z)(function*(){if(!t.guidForm.valid)return null;t.sending=!0;const s=ge.m.parseCommaOrNewLineDelimited(t.guidForm.controls.guids.value),r=[];s.forEach(a=>{r.push({guid:a,targetGroupId:t.groupId})});try{(yield t.listService.addCoursesViaGuid(t.listId,r)).failures.forEach(l=>{t.notificationService.publishNotification("No course found for guid: "+l,"error")}),t.onSubmit.emit()}catch(a){let l="Sorry, we are unable to perform this action right now.";a instanceof Mc.UA&&(l=403===a.status?"You are not authorized to perform this action.":a.error?a.error.message:l),t.notificationService.publishNotification(l,"error")}t.hide()})()}hide(){this.guidForm.controls.guids.reset(),this.sending=!1,this.modal.hide(!0)}show(t){const{listId:s,groupId:r}=t;void 0!==s&&(this.listId=s),void 0!==r&&(this.groupId=r),this.modal.show()}validateGuidList(t){if(null===t.value||""===t.value)return null;const s=ge.m.parseCommaOrNewLineDelimited(t.value),r=[];return s.forEach(a=>{gn.Q.validateGuid(a)||r.push(a)}),r.length>0?{invalidGuidsInList:`${_t.D.CourseGuidNotValidText}${r.join(", ")}`}:null}hasGuidFieldError(){return this.guidForm.controls.guids.invalid&&this.guidForm.controls.guids.dirty&&(this.guidForm.controls.guids.errors.invalidGuidsInList||this.guidForm.invalid)}guidFieldError(){return Object(this.guidForm.controls.guids.errors).hasOwnProperty("invalidGuidsInList")?this.guidForm.controls.guids.errors.invalidGuidsInList:_t.D.FieldRequiredText}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(S.XN),e.Y36(w.g))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-add-courses-via-guid-modal"]],viewQuery:function(s,r){if(1&s&&e.Gf(Zc,7),2&s){let a;e.iGM(a=e.CRH())&&(r.modal=a.first)}},outputs:{onSubmit:"onSubmit"},decls:26,vars:2,consts:[["headline","Add Via Guid","subHeadline","Add courses to this list","googleIconImageName","reorder"],["modal",""],[3,"formGroup","ngSubmit"],[1,"form-wrapper","text-left","p-0"],["for","listNote",1,"form-label"],["class","form-message error",4,"ngIf"],["id","guid-list","formControlName","guids","placeholder","Paste a list of course guids here",1,"form-field","notranslate"],[1,"pt-40","text-left"],[3,"click"],["className","e2e-add-via-guid-submit","color","primary","buttonType","submit","variant","contained"],[1,"form-message","error"]],template:function(s,r){1&s&&(e.TgZ(0,"app-modal",0,1),e._uU(2,"\n "),e.TgZ(3,"form",2),e.NdJ("ngSubmit",function(){return r.submitForm()}),e._uU(4,"\n "),e.TgZ(5,"div",3),e._uU(6,"\n "),e.TgZ(7,"label",4),e._uU(8,"Course Guids"),e.qZA(),e._uU(9,"\n "),e.YNc(10,Pc,2,1,"span",5),e._uU(11,"\n\n "),e._UZ(12,"textarea",6),e._uU(13,"\n "),e.qZA(),e._uU(14,"\n "),e.TgZ(15,"div",7),e._uU(16,"\n "),e.TgZ(17,"og-button",8),e.NdJ("click",function(){return r.hide()}),e._uU(18,"Cancel"),e.qZA(),e._uU(19,"\n "),e.TgZ(20,"og-button",9),e._uU(21,"Add Courses"),e.qZA(),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.qZA(),e._uU(24,"\n"),e.qZA(),e._uU(25,"\n")),2&s&&(e.xp6(3),e.Q6J("formGroup",r.guidForm),e.xp6(7),e.Q6J("ngIf",r.hasGuidFieldError()))},dependencies:[M.r0,_.O5,u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,J.z]}),i})();var fn=c(2707),Cn=c(9304),Ye=c(110),vn=c(136);let bn=(()=>{const o=class{constructor(){}ngOnInit(){}};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-router-outlet"]],decls:2,vars:0,template:function(s,r){1&s&&(e._UZ(0,"router-outlet"),e._uU(1,"\n"))},dependencies:[f.lC]}),i})();function Sc(i,o){if(1&i&&(e.TgZ(0,"span",6),e._uU(1),e.ALo(2,"date"),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.hij("Created on ",e.xi3(2,1,n.dateCreated,n.dateFormat),"")}}function Ac(i,o){if(1&i&&(e.TgZ(0,"span",7),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.hij(", ",n.listAuthor.jobTitle,"")}}function Oc(i,o){if(1&i&&(e.TgZ(0,"div",2),e._uU(1),e.ALo(2,"timeToString"),e.YNc(3,Sc,3,4,"span",3),e._uU(4,"\n "),e.TgZ(5,"og-typography",4),e._uU(6),e.YNc(7,Ac,2,1,"span",5),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n"),e.qZA()),2&i){const n=e.oxw();e.Q6J("className",n.classes.numCourses),e.xp6(1),e.AsE("\n ",n.courseCount," Courses: ",e.lcZ(2,7,n.totalSeatTime)," |\n "),e.xp6(2),e.Q6J("ngIf",!n.isSearchable),e.xp6(2),e.Q6J("className",n.classes.publicListAuthor),e.xp6(1),e.hij("\n By ",n.listAuthor.fullName,"\n "),e.xp6(1),e.Q6J("ngIf",n.listAuthor.jobTitle)}}function Ic(i,o){if(1&i&&(e.TgZ(0,"og-typography",8),e._uU(1),e.ALo(2,"timeToString"),e._UZ(3,"span",9),e._uU(4,"\n"),e.qZA()),2&i){const n=e.oxw();e.Q6J("className",n.classes.numCourses),e.xp6(1),e.AsE("\n ",n.courseCount," Courses: ",e.lcZ(2,4,n.totalSeatTime),"\n "),e.xp6(2),e.Q6J("innerHTML",n.getByLine(),e.oJD)}}let He=((re=class{constructor(){this.public=!1,this.isSearchable=!1}ngOnInit(){}getByLine(){const{fullName:o,companyName:n}=this.listAuthor,t=this.isSearchable?"":this.formatDate(this.dateCreated);
1if(this.type===g.co.received&&this.sharedInfo.byUser){const{fullName:s,companyName:r}=this.sharedInfo.byUser;return`Received from ${s} ${r?", "+r:""} ${this.isSearchable?"":this.formatDate(this.sharedInfo.date)}`}return` | Created ${t} by ${o} ${n?`, ${n}`:""}`}formatDate(o){return`<span class="nowrap date-created"> on ${this.formatDateString(o)}</span>`}formatDateString(o){return new _.uU("en-US").transform(Date.parse(o.split("+")[0]),this.dateFormat)}get dateFormat(){return Q.t6}}).\u0275fac=function(n){return new(n||re)},re.\u0275cmp=e.Xpm({type:re,selectors:[["app-list-info"]],inputs:{type:"type",courseCount:"courseCount",listAuthor:"listAuthor",totalSeatTime:"totalSeatTime",dateCreated:"dateCreated",canEdit:"canEdit",public:"public",isSearchable:"isSearchable",sharedInfo:"sharedInfo"},decls:4,vars:2,consts:[["class","notranslate",3,"className",4,"ngIf"],["fontWeight","medium","className","notranslate",3,"className",4,"ngIf"],[1,"notranslate",3,"className"],["class","date-created",4,"ngIf"],[1,"inline-block",3,"className"],["class","job-title",4,"ngIf"],[1,"date-created"],[1,"job-title"],["fontWeight","medium","className","notranslate",3,"className"],[1,"by-line",3,"innerHTML"]],template:function(n,t){1&n&&(e.YNc(0,Oc,10,9,"div",0),e._uU(1,"\n\n"),e.YNc(2,Ic,5,6,"og-typography",1),e._uU(3,"\n")),2&n&&(e.Q6J("ngIf",t.public),e.xp6(2),e.Q6J("ngIf",!t.public))},dependencies:[_.O5,N.lo,_.uU,en._],styles:[".by-line[_ngcontent-%COMP%]{font-family:Poppins;font-size:14px;font-style:normal;font-weight:400;line-height:130%;color:#888799}"]}),re);He=(0,k.gn)([(0,v.ozS)(i=>(0,v.kcS)({publicListAuthor:{fontFamily:"Poppins",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"130%"},numCourses:{fontFamily:"Poppins",fontSize:"14px",fontStyle:"normal",fontWeight:600,lineHeight:"130%",marginTop:"8px"}})),(0,k.w6)("design:paramtypes",[])],He);let Nc=(()=>{const o=class{transform(t){return void 0===t?"":encodeURI(t)}};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275pipe=e.Yjl({name:"encodeURI",type:o,pure:!0}),i})();const qc=function(i){return{backgroundImage:i}};function Fc(i,o){if(1&i&&(e._UZ(0,"span",7),e.ALo(1,"encodeURI")),2&i){const n=e.oxw().$implicit;e.Q6J("ngStyle",e.VKq(3,qc,"url('"+e.lcZ(1,1,n.profileImage)+"')"))}}function Gc(i,o){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const n=e.oxw().$implicit;e.xp6(1),e.Oqu(n.initials)}}function Jc(i,o){if(1&i&&(e.TgZ(0,"li",3),e._uU(1,"\n "),e.TgZ(2,"div",4),e._uU(3,"\n "),e.YNc(4,Fc,2,5,"span",5),e._uU(5,"\n "),e.YNc(6,Gc,2,1,"ng-container",6),e._uU(7,"\n "),e.qZA(),e._uU(8,"\n "),e.qZA()),2&i){const n=o.$implicit;e.uIk("data-tooltip",n.fullName+" is active"),e.xp6(4),e.Q6J("ngIf",n.profileImage),e.xp6(2),e.Q6J("ngIf",!n.profileImage)}}function Qc(i,o){if(1&i&&(e.TgZ(0,"li",3),e._uU(1,"\n "),e.TgZ(2,"div",4),e._uU(3),e.qZA(),e._uU(4,"\n "),e.qZA()),2&i){const n=e.oxw();e.uIk("data-tooltip",n.remainder+" more people are active"),e.xp6(3),e.hij("+",n.remainder,"")}}let Dc=(()=>{const o=class{constructor(t,s){this.eventPusher=t,this.activeSession=s,this.avatars=[],this.remainder=0,this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.eventPusher.collaborators.subscribe(t=>{this.avatars=this.buildAvatars(t)}))}buildAvatars(t){return t.slice(0,15).filter(s=>s.id!==this.activeSession.session.user.getUid()).map(s=>{const r=this.buildInitials(s);return{uid:s.id,initials:r,profileImage:s.profileImage,fullName:s.fullName}})}buildInitials(t){return((t.firstName?t.firstName.charAt(0):"")||"")+((t.lastName?t.lastName.charAt(0):"")||"")||"?"}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(we.HT),e.Y36(O.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-presence-indicators"]],decls:7,vars:2,consts:[[1,"presence","mr-20"],["class","tooltip-bottom",4,"ngFor","ngForOf"],["class","tooltip-bottom",4,"ngIf"],[1,"tooltip-bottom"],[1,"presence-icon"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"]],template:function(s,r){1&s&&(e.TgZ(0,"ul",0),e._uU(1,"\n "),e.YNc(2,Jc,9,3,"li",1),e._uU(3,"\n "),e.YNc(4,Qc,5,2,"li",2),e._uU(5,"\n"),e.qZA(),e._uU(6,"\n")),2&s&&(e.xp6(2),e.Q6J("ngForOf",r.avatars),e.xp6(2),e.Q6J("ngIf",r.remainder>0))},dependencies:[_.sg,_.O5,_.PC,Nc],styles:['[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}.presence[_ngcontent-%COMP%]{list-style:none;display:flex;justify-content:flex-end;flex-direction:row-reverse;margin-top:-6px}.presence[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;z-index:1}.presence[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{z-index:10}.presence-icon[_ngcontent-%COMP%]{margin:8px .5em;background-color:#448fd7;border-radius:50%;height:35px;width:35px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.9rem;box-shadow:0 0 0 3px #448fd7,0 0 2px 5px #38373733;transition:all .7s ease-in;position:relative}.presence-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-radius:50%;overflow:hidden;display:block;width:35px;height:35px;background-size:cover;background-position:center}.presence-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;width:11px;height:11px;display:block;background-color:#50a54d;border-radius:50%;bottom:-4px;right:-4px;z-index:10;box-shadow:0 0 0 2px #fff;transition:opacity .3s ease-out}.presence[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(n+8){width:15px;overflow:visible}.presence[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(n+8) .presence-icon[_ngcontent-%COMP%]:after{opacity:0}
1@media (max-width: 1140px){.presence[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(n+6){width:15px;overflow:visible}.presence[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(n+6) .presence-icon[_ngcontent-%COMP%]:after{opacity:0}}@media (max-width: 1024px){.presence[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(n+4){width:15px;overflow:visible}.presence[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(n+4) .presence-icon[_ngcontent-%COMP%]:after{opacity:0}}.presence-icon__idle[_ngcontent-%COMP%]{background-color:#5c5b5b;box-shadow:0 0 0 3px #5c5b5b}.presence-icon__idle[_ngcontent-%COMP%]:after{opacity:0}.presence-icon__idle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{opacity:.75}img[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;height:auto}@keyframes _ngcontent-%COMP%_bounceOut{0%{transform:scale(1)}10%{transform:scale(1.15)}to{transform:scale(0)}}@keyframes _ngcontent-%COMP%_collapse{0%{width:35px;margin:0 .5em}to{width:0;margin:0}}.disappear[_ngcontent-%COMP%]{animation:.7s ease-in _ngcontent-%COMP%_bounceOut forwards,.5s ease-out .5s _ngcontent-%COMP%_collapse forwards}.appear[_ngcontent-%COMP%]{transform:scale(0);animation:.7s ease-in .5s _ngcontent-%COMP%_bounceOut forwards reverse,.5s ease-out _ngcontent-%COMP%_collapse forwards reverse}']}),i})();const Bc=function(i){return["e2e-lists-button",i]};function Yc(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",14),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.backToMyLists())}),e._uU(1,"\n Back to Lists\n "),e.qZA()}if(2&i){const n=e.oxw();e.Q6J("className",e.VKq(1,Bc,n.classes.backButton))}}function Hc(i,o){if(1&i){const n=e.EpF();e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"app-editable",15),e.NdJ("saveChanges",function(s){e.CHM(n);const r=e.oxw();return e.KtG(r.saveListTitle(s))}),e.qZA(),e._uU(3,"\n "),e.BQk()}if(2&i){const n=e.oxw();e.xp6(2),e.Q6J("defaultText",n.list.title)("required",!0)}}function Rc(i,o){if(1&i&&(e._uU(0,"\n "),e.TgZ(1,"span",16),e._uU(2),e.qZA(),e._uU(3,"\n ")),2&i){const n=e.oxw();e.xp6(2),e.Oqu(n.list.title)}}function zc(i,o){1&i&&e._UZ(0,"app-presence-indicators",17)}function Vc(i,o){if(1&i){const n=e.EpF();e.ynx(0),e._uU(1,"\n "),e.TgZ(2,"app-editable",18),e.NdJ("saveChanges",function(s){e.CHM(n);const r=e.oxw();return e.KtG(r.saveListDescription(s))}),e.qZA(),e._uU(3,"\n "),e.BQk()}if(2&i){const n=e.oxw();e.xp6(2),e.Q6J("defaultText",n.list.description)}}function jc(i,o){if(1&i&&(e._uU(0,"\n "),e.TgZ(1,"span",19),e._uU(2),e.qZA(),e._uU(3,"\n ")),2&i){const n=e.oxw();e.xp6(2),e.Oqu(n.list.description)}}function Kc(i,o){if(1&i&&e._UZ(0,"app-list-info",20),2&i){const n=e.oxw();e.Q6J("type",n.list.type)("courseCount",n.list.courseCount)("listAuthor",n.list.createdByUser)("totalSeatTime",n.list.totalSeatTime)("dateCreated",n.list.dateCreated)("canEdit",n.list.canEdit)("isSearchable",n.list.isSearchable)("sharedInfo",n.list.shared)}}function $c(i,o){if(1&i&&(e.TgZ(0,"og-typography",21),e._uU(1),e.qZA()),2&i){const n=e.oxw();e.xp6(1),e.hij("\n Created for ",null==n.list.company?null:n.list.company.name,"\n ")}}const Wc={includes:q.includes};let gt=((ae=class{constructor(o,n,t,s,r,a,l,p,h,m,T,L,G,U,E){this.notificationService=o,this.listService=n,this.router=t,this.activeList=s,this.myListsFactory=r,this.eventPusher=a,this.activeSession=l,this.bulkActions=p,this.csvExportService=h,this.segmentService=m,this.modalHostService=T,this.route=L,this.deliveryApiService=G,this.backgroundOverlayService=U,this.splitioService=E,this.showLoader=!0,this.subscriptions=[],this.showBackButton=!0,this.myLists=this.myListsFactory.getService()}get session(){return this.activeSession.session}ngOnInit(){var o=this;return(0,d.Z)(function*(){const{key:n,cluster:t,namespace:s}=o.session.fields.pusher;o.activeList.bindList(n,t,s),o.list.actions.pipe((0,Ce.h)(({type:r})=>"hide_prices"===r)).subscribe(()=>{o.actionNavLinks=o.buildActionNavLinks()}),o.optionMenuBuilder=new rn(o.list,o.session,o.permissions),o.sharingMenuBuilder=new ac.I(o.list,o.session,o.permissions),o.followButtonBuilder=new un(o.list,o.session,o.collaboratorPermissions),o.followButton=o.followButtonBuilder.createFollowButton(),o.subscribeOptionHandlers(),o.actionNavLinks=o.buildActionNavLinks(),o.tertiaryNavLinks=o.tertiaryNavLinksData,o.route.
1snapshot.queryParams.fromSearch&&(o.showBackButton=!1),o.showPreviewListButtonFeatureFlag=o.splitioService.canUserSeeFeature(vn.r8),o.previewLink=`/preview-list/list/${o.list.id}`})()}get collaboratorPermissions(){return this.activeList.permissions}get isFollowing(){return this.list.type===g.co.subscription}addToAllLists(o){this.myLists.addList(o)}removeFromAllLists(){this.myLists.removeList(this.list)}subscribeOptionHandlers(){var o=this;this.subscriptions.push(this.optionMenuBuilder.menuItemSelected.subscribe(function(){var n=(0,d.Z)(function*(t){switch(t){case y.r.TogglePrices:o.modalHostService.showModal(pc,{hidePrices:o.list.hidePrices},({hidePrices:a})=>o.updatePriceVisibility(a));break;case y.r.Delete:o.modalHostService.showModal(kt,{lists:[o.list.metadata]},()=>o.onDelete());break;case y.r.Duplicate:o.modalHostService.showModal(_n,{listId:o.list.id,title:o.list.title,company:o.list.company,description:o.list.description},({updateAllLists:a})=>o.backToMyLists(a));break;case y.r.CoursePackageDownload:o.downloadAllPackages(F.z.PackageDownload);break;case y.r.SelectForLms:o.downloadAllPackages(F.z.SendToLms);break;case y.r.CsvDownload:yield o.triggerCSVDownload();break;case y.r.AddCoursesByGuid:o.modalHostService.showModal(Lc,{listId:o.list.id,imagePath:o.list.imagePath,groupId:o.list.defaultGroupId});break;case y.r.PrivacySettings:let s=H.private;const r=Wc.includes(o.collaboratorPermissions,Z.v.PublishSearchable);o.list.isSearchable?s=H.publicSearchable:o.list.isPublic&&!o.list.isSearchable&&(s=H.publicNotSearchable),o.modalHostService.showModal(rc,{listId:o.list.id,imagePath:o.list.imagePath,privacySetting:s,hasElevatedListPrivacyPermissions:r},({list:a})=>o.onPublicListChanged(a))}});return function(t){return n.apply(this,arguments)}}())),this.subscriptions.push(this.sharingMenuBuilder.menuItemSelected.subscribe(n=>{switch(n){case y.r.AddCollaborators:this.modalHostService.showModal(wc,{listId:this.list.id,permissions:this.permissions});break;case y.r.ViewCollaborators:this.router.navigate(["/lists","detail",this.list.id,"collaborators"]);break;case y.r.ViewFollowers:this.router.navigate(["/lists","detail",this.list.id,"followers"])}})),this.followButton&&this.followButtonBuilder.menuItemSelected.subscribe(function(){var n=(0,d.Z)(function*(t){t===y.r.FollowList&&(yield o.onFollowButtonPress())});return function(t){return n.apply(this,arguments)}}())}toggleLoader(){this.showLoader?(this.backgroundOverlayService.showOverlay(),this.backgroundOverlayService.showLoader()):(this.backgroundOverlayService.hideOverlay(),this.backgroundOverlayService.hideLoader()),this.showLoader=!this.showLoader}triggerCSVDownload(){var o=this;return(0,d.Z)(function*(){o.toggleLoader();try{const n=o.getCsvSetupData(),t=Object.keys(n.groupNames);if(!t.length)return void o.notificationService.publishNotification("There are no courses to download","success");let s=[];try{s=yield o.deliveryApiService.getContentMetadata(t)}catch(r){throw console.error("Failed to get content metadata from the Delivery API during csv download"),o.notificationService.publishNotification("CSV file download failed. Please try again or contact support.","error"),r}yield o.csvExportService.downloadCsv(s,{groupNames:n.groupNames,filename:`${o.list.title}_${(new Date).getTime().toString()}.csv`}),o.trackListCsvDownloadEvent()}catch(n){console.error(n)}finally{o.toggleLoader()}})()}getCsvSetupData(){const o={groupNames:{}};for(const n of this.list.tableRows)if(n.type!==g.aC.group){const t=this.list.getGroupById(n.groupId);o.groupNames[n.guid]=(0,g.vK)(t.title)?g.O8:t.title}return o}ngOnDestroy(){this.eventPusher.unsubscribeAll(),this.subscriptions.forEach(o=>{o.unsubscribe()})}get list(){return this.activeList.list}saveListTitle(o){var n=this;return(0,d.Z)(function*(){const{id:t,description:s,hidePrices:r}=n.list;try{const a=yield n.listService.updateListInformation(t,o,s,r);n.list.title=o,n.updateListInAllLists(a),n.trackListUpdateSettingsEvent(a,j.UpdateTitle)}catch(a){n.handleError(a)}})()}saveListDescription(o){var n=this;return(0,d.Z)(function*(){const{id:t,title:s,hidePrices:r}=n.list;
1try{const a=yield n.listService.updateListInformation(t,s,o,r);n.list.description=o,n.updateListInAllLists(a),n.trackListUpdateSettingsEvent(a,j.UpdateDescription)}catch(a){n.handleError(a)}})()}isReadOnly(){return!this.list.canEdit}get permissions(){return this.activeList.permissions}listPermissionCheck(o){return this.activeList.hasPermission(o)}get canViewSubscribers(){return this.listPermissionCheck(Z.v.ViewSubscribers)}get canViewCollaborators(){return this.listPermissionCheck(Z.v.ViewCollaborators)}backToMyLists(o=!1){o&&this.myLists.shouldReloadLists(),this.router.navigate(["/lists"],{queryParamsHandling:"preserve"})}onDelete(){this.myLists.removeList(this.list),this.backToMyLists()}updateListInAllLists(o){this.myLists.updateList(this.list.id,o)}onPublicListChanged(o){this.list.metadata=o,this.updateListInAllLists(this.list.metadata),this.actionNavLinks=this.buildActionNavLinks()}updatePriceVisibility(o){const{id:n,title:t,description:s}=this.list;this.listService.updateListInformation(n,t,s,o).then(()=>{this.list.hidePrices=o},this.handleError.bind(this)),this.trackListUpdateSettingsEvent(this.list.metadata,j.UpdatePriceVisibility)}downloadAllPackages(o){const n=this.list.rows.filter(s=>s.type===g.aC.course).map(s=>({course:s}));this.bulkActions.deliverCourses(n,o===F.z.PackageDownload||o===F.z.DistributeCoursesDownload).then(()=>{this.trackListGroupEvent(o,n)})}handleError(o){console.error(o);const n=(0,$.KU)(o)||x.n.ListErrorText;this.notificationService.publishNotification(n,"error")}buildActionNavLinks(){const o=[];return this.followButton&&o.push(this.followButton),o.push(this.sharingMenuBuilder.sharingMenu()),o.push(this.optionMenuBuilder.optionMenu()),o}get tertiaryNavLinksData(){const o=[{title:"Courses",route:["/lists","detail",this.list.id]}];return this.canViewSubscribers&&o.push({title:"Collaborators",route:["/lists","detail",this.list.id,"collaborators"]},{title:"Followers",route:["/lists","detail",this.list.id,"followers"]}),o}onFollowButtonPress(){var o=this;return(0,d.Z)(function*(){const n=o.isFollowing;try{n?(o.unfollowList(),yield o.listService.unsubscribe(o.list.id)):(o.followList(),yield o.listService.subscribe(o.list.id))}catch(t){let s;n?(o.followList(),s="An error occurred when attempting to unfollow this list"):(o.unfollowList(),s="An error occurred when attempting to follow this list"),o.notificationService.publishNotification(s,"error"),console.error(t)}})()}followList(){this.list.type=g.co.subscription,this.addToAllLists(this.list.metadata),this.followButton=this.followButtonBuilder.createFollowButton(),this.trackListSubscriptionEvent(!0),this.actionNavLinks=this.buildActionNavLinks()}unfollowList(){this.list.type=g.co.created,this.removeFromAllLists(),this.followButton=this.followButtonBuilder.createFollowButton(),this.trackListSubscriptionEvent(!1),this.actionNavLinks=this.buildActionNavLinks()}trackListGroupEvent(o,n){this.segmentService.trackEvent(new at(o,{listMetaData:this.list.metadata,selectedCourses:n,selectedCourseCount:this.list.courseCount}))}trackListCsvDownloadEvent(){this.segmentService.trackEvent(new lc(F.z.CsvDownload,{listMetaData:this.list.metadata}))}trackListUpdateSettingsEvent(o,n){this.segmentService.trackEvent(new an(F.z.UpdateSettings,{listMetaData:o,updateType:n}))}trackListSubscriptionEvent(o){this.segmentService.trackEvent(new dn(F.z.Subscription,{listMetaData:this.list.metadata,subscribed:o}))}get showPreviewListButton(){return this.activeList.list.showPreviewListButton}get previewListButtonDisabled(){return this.activeList.list.previewListButtonDisabled}get hasMixedPreviewAvailability(){return this.activeList.list.hasMixedPreviewAvailability}}).\u0275fac=function(n){return new(n||ae)(e.Y36(w.g),e.Y36(S.XN),e.Y36(f.F0),e.Y36(B.f),e.Y36(ee),e.Y36(we.HT),e.Y36(O.V),e.Y36(ve.I),e.Y36(fn.T),e.Y36(I.B),e.Y36(z.z),e.Y36(f.gz),e.Y36(Ee.g),e.Y36(Cn.S),e.Y36(Ye._x))},ae.\u0275cmp=e.Xpm({type:ae,selectors:[["app-editable-list-details"]],decls:45,vars:17,consts:[[3,"actionNavLinks","showPreviewListButton","showPreviewListNotice","previewListButtonDisabled","previewLink"],["header","",1,"page-nav","relative"],[1,"back-btn"],["color","default","size","md","startIcon","chevron_left","variant","contained",3,"className","click",4,"ngIf"],["element","h1","variant","h2",3,"className"],[4,"ngIf","ngIfElse"],["readOnlyTitle",""],["subheader","",4,"ngIf"],["content",""],[1,"col-md-8","pt-0"],[1,"e2e-list-description",3,"className"],["readOnlyDescription",""],[3,"type","courseCount","listAuthor","totalSeatTime","dateCreated","canEdit","isSearchable","sharedInfo",4,"ngIf"],["className","mt-5 notranslate",4,"ngIf"],["color","default","size","md","startIcon","chevron_left","variant","contained",3,"className","click"],["placeholderText","List Title","type","content",3,"defaultText","required","saveChanges"],[1,"n
1otranslate"],["subheader",""],["placeholderText","List Description","type","content",3,"defaultText","saveChanges"],[1,"not-editable","notranslate"],[3,"type","courseCount","listAuthor","totalSeatTime","dateCreated","canEdit","isSearchable","sharedInfo"],["className","mt-5 notranslate"]],template:function(n,t){if(1&n&&(e.TgZ(0,"app-secondary-header",0),e.ALo(1,"async"),e._uU(2,"\n "),e.TgZ(3,"div",1),e._uU(4,"\n "),e.TgZ(5,"span",2),e._uU(6,"\n "),e.YNc(7,Yc,2,3,"og-button",3),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.TgZ(10,"div"),e._uU(11,"\n "),e.TgZ(12,"og-typography",4),e._uU(13,"\n "),e.YNc(14,Hc,4,2,"ng-container",5),e._uU(15,"\n "),e.YNc(16,Rc,4,1,"ng-template",null,6,e.W1O),e._uU(18,"\n "),e.qZA(),e._uU(19,"\n "),e.qZA(),e._uU(20,"\n "),e.qZA(),e._uU(21,"\n "),e.YNc(22,zc,1,0,"app-presence-indicators",7),e._uU(23,"\n "),e.TgZ(24,"og-flex",8),e._uU(25,"\n "),e.TgZ(26,"div",9),e._uU(27,"\n "),e.TgZ(28,"og-typography",10),e._uU(29,"\n "),e.YNc(30,Vc,4,1,"ng-container",5),e._uU(31,"\n "),e.YNc(32,jc,4,1,"ng-template",null,11,e.W1O),e._uU(34,"\n "),e.qZA(),e._uU(35,"\n "),e.YNc(36,Kc,1,8,"app-list-info",12),e._uU(37,"\n "),e.YNc(38,$c,2,1,"og-typography",13),e._uU(39,"\n "),e.qZA(),e._uU(40,"\n "),e.qZA(),e._uU(41,"\n"),e.qZA(),e._uU(42,"\n"),e._UZ(43,"app-router-outlet"),e._uU(44,"\n")),2&n){const s=e.MAs(17),r=e.MAs(33);e.Q6J("actionNavLinks",t.actionNavLinks)("showPreviewListButton",e.lcZ(1,15,t.showPreviewListButtonFeatureFlag)&&t.showPreviewListButton)("showPreviewListNotice",t.hasMixedPreviewAvailability)("previewListButtonDisabled",t.previewListButtonDisabled)("previewLink",t.previewLink),e.xp6(7),e.Q6J("ngIf",t.showBackButton),e.xp6(5),e.Q6J("className",t.classes.listTitle),e.xp6(2),e.Q6J("ngIf",!t.isReadOnly())("ngIfElse",s),e.xp6(8),e.Q6J("ngIf",t.canViewCollaborators),e.xp6(6),e.Q6J("className",t.classes.listDescription),e.xp6(2),e.Q6J("ngIf",!t.isReadOnly())("ngIfElse",r),e.xp6(6),e.Q6J("ngIf",(null==t.list?null:t.list.courseCount)>0),e.xp6(2),e.Q6J("ngIf",t.session.permissions.canSetCompanyOnList&&t.list.company)}},dependencies:[M.r0,_.O5,Ze.wy,nt,bn,Xe.X,N.lo,He,Dc,_.Ov],styles:["[_ngcontent-%COMP%]:root{--mobile-nav-break: 981px}.back-btn[_ngcontent-%COMP%]{display:inline-block;margin-right:20px}@media (max-width: 767px){.back-btn[_ngcontent-%COMP%]{bottom:100%;position:absolute}}"]}),ae);function eu(i,o){if(1&i){const n=e.EpF();e.TgZ(0,"og-button",11),e.NdJ("click",function(){e.CHM(n);const s=e.oxw();return e.KtG(s.onBackPress())}),e._uU(1),e.qZA()}if(2&i){const n=e.oxw();e.Q6J("className",n.classes.backButton),e.xp6(1),e.hij("\n ",n.backButtonText,"\n ")}}function tu(i,o){if(1&i&&e._UZ(0,"app-list-info",12),2&i){const n=e.oxw();e.Q6J("type",n.list.type)("courseCount",n.list.courseCount)("listAuthor",n.list.createdByUser)("totalSeatTime",n.list.totalSeatTime)("dateCreated",n.list.dateCreated)("canEdit",n.list.canEdit)("sharedInfo",n.list.shared)("public",n.list.isPublic)("isSearchable",n.list.isSearchable)}}gt=(0,k.gn)([(0,v.ozS)(i=>(0,v.kcS)({backButton:{border:"none",backgroundColor:"#F4F2F7","&:hover":{backgroundColor:(0,v._jn)("#F4F2F7",.1)},"& .og-button-label":{color:"#59596C"},"& .og-svg-icon-root":{fontSize:"25px"}},listDescription:{fontFamily:"Poppins",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"130%",marginBottom:"8px",color:i.palette.text.primary},listTitle:{fontFamily:"Poppins",fontSize:"20px",fontStyle:"normal",fontWeight:500,lineHeight:"130%",color:i.palette.text.primary,margin:"24px 8px 9px 8px"}})),(0,k.w6)("design:paramtypes",[w.g,S.XN,f.F0,B.f,ee,we.HT,O.V,ve.I,fn.T,I.B,z.z,f.gz,Ee.g,Cn.S,Ye._x])],gt);let mt=((le=class{constructor(o,n,t,s,r,a,l,p,h,m,T){this.activeList=o,this.session=n,this.listService=t,this.route=s,this.router=r,this.myListsFactory=a,this.bulkActions=l,this.notificationService=p,this.segmentService=h,this.modalHostService=m,this.splitioService=T,this.actionNavLinks=[],this.optionsMenuOptions=[on,it,sn.Y],this.showBackButton=!0,this.myLists=this.myListsFactory.getService()}ngOnInit(){var o=this;this.followButtonBuilder=new un(this.list,this.session.session,this.collaboratorPermissions),this.followButton=this.followButtonBuilder.createFollowButton(),this.followButton&&this.followButtonBuilder.menuItemSelected.subscribe(function(){var n=(0,d.Z)(function*(t){t===y.r.FollowList&&(yield o.onFollowButtonPress())});return function(t){return n.apply(this,arguments)}}
1()),this.route.snapshot.queryParams.follow&&(this.session.session.isLoggedIn&&this.list.isPublic&&this.hasCollabPermission(Z.v.FollowList)?this.followList():setTimeout(()=>{this.followList()},1500)),this.route.snapshot.queryParams.fromSearch&&(this.showBackButton=!1),this.optionsMenuBuilder=new rn(this.list,this.session.session,this.collaboratorPermissions,this.optionsMenuOptions),this.optionsMenu=this.optionsMenuBuilder.optionMenu(),this.optionsMenuBuilder.menuItemSelected.subscribe(function(){var n=(0,d.Z)(function*(t){switch(t){case y.r.CoursePackageDownload:yield o.downloadAllPackages(F.z.PackageDownload,!0);break;case y.r.SelectForLms:yield o.downloadAllPackages(F.z.SendToLms,!1);break;case y.r.AddToPpuLibrary:yield o.addToPpuLibrary();break;case y.r.Duplicate:o.modalHostService.showModal(_n,{listId:o.list.id,headline:"Duplicating a Public List",subHeadline:"Warning! The duplicate will be divorced from any future updates",title:o.list.title,company:o.list.company,description:o.list.description},({updateAllLists:r})=>o.onBackPress(r))}});return function(t){return n.apply(this,arguments)}}()),this.buildActionNavLinks(),this.showPreviewListButtonFeatureFlag=this.splitioService.canUserSeeFeature(vn.r8),this.previewLink=`/preview-list/list/${this.list.id}`}addToPpuLibrary(){var o=this;return(0,d.Z)(function*(){return o.initiateBatchOp(n=>(o.trackListGroupEvent(F.z.AddToPpuLibrary,n),o.bulkActions.addToPpuLibrary(n)))})()}downloadAllPackages(o,n){var t=this;return(0,d.Z)(function*(){const s=t.list.rows.filter(r=>r.type===g.aC.course).map(r=>({course:r}));return t.trackListGroupEvent(o,s),t.bulkActions.deliverCourses(s,n)})()}initiateBatchOp(o){var n=this;return(0,d.Z)(function*(){const t=n.list.rows.filter(s=>s.type===g.aC.course);yield o(t)})()}buildActionNavLinks(){const o=[];this.followButton&&o.push(this.followButton),this.optionsMenu&&o.push(this.optionsMenu),this.actionNavLinks=o}get list(){return this.activeList.list}get collaboratorPermissions(){return this.activeList.permissions}get isFollowing(){return this.list.type===g.co.subscription}get backButtonText(){const{isLoggedIn:o}=this.session.session;return o?"My Lists":"Curated Lists"}onBackPress(o=!1){this.session.session.isLoggedIn?(o&&this.myLists.shouldReloadLists(),this.router.navigate(["/lists"])):this.router.navigate(["/curated-lists"])}addToAllLists(o){this.myLists.addList(o)}removeFromAllLists(){this.myLists.removeList(this.list)}
1onFollowButtonPress(){var o=this;return(0,d.Z)(function*(){if(o.session.session.isLoggedIn){const n=o.isFollowing;try{n?(o.unfollowList(),yield o.listService.unsubscribe(o.list.id)):(o.followList(),yield o.listService.subscribe(o.list.id))}catch(t){let s;n?(o.followList(),s="An error occurred when attempting to unfollow this list"):(o.unfollowList(),s="An error occurred when attempting to follow this list"),o.notificationService.publishNotification(s,"error"),console.error(t)}}else o.modalHostService.showModal(Rt.X,{message:"follow this list",queryParams:{follow:"true"}})})()}followList(){this.list.type=g.co.subscription,this.addToAllLists(this.list.metadata),this.followButton=this.followButtonBuilder.createFollowButton(),this.trackListSubscriptionEvent(!0),this.buildActionNavLinks()}unfollowList(){this.list.type=g.co.created,this.removeFromAllLists(),this.followButton=this.followButtonBuilder.createFollowButton(),this.trackListSubscriptionEvent(!1),this.buildActionNavLinks()}trackListSubscriptionEvent(o){this.segmentService.trackEvent(new dn(F.z.Subscription,{listMetaData:this.list.metadata,subscribed:o}))}trackListGroupEvent(o,n){this.segmentService.trackEvent(new at(o,{listMetaData:this.list.metadata,selectedCourses:n,selectedCourseCount:n?n.length:0}))}hasCollabPermission(o){return void 0!==this.collaboratorPermissions.find(n=>n===o)}get showPreviewListButton(){return this.activeList.list.showPreviewListButton}get previewListButtonDisabled(){return this.activeList.list.previewListButtonDisabled}get hasMixedPreviewAvailability(){return this.activeList.list.hasMixedPreviewAvailability}}).\u0275fac=function(n){return new(n||le)(e.Y36(B.f),e.Y36(O.V),e.Y36(S.XN),e.Y36(f.gz),e.Y36(f.F0),e.Y36(ee),e.Y36(ve.I),e.Y36(w.g),e.Y36(I.B),e.Y36(z.z),e.Y36(Ye._x))},le.\u0275cmp=e.Xpm({type:le,selectors:[["app-public-list-details"]],decls:37,vars:12,consts:[[3,"actionNavLinks","showPreviewListButton","showPreviewListNotice","previewListButtonDisabled","previewLink"],["header","",1,"page-nav","relative"],[1,"back-btn"],["startIcon","keyboard_backspace",3,"className","click",4,"ngIf"],[2,"margin-top","20px"],["element","h1","fontWeight","medium","variant","h3"],[1,"notranslate"],["content",""],[1,"col-md-8","pt-0","pl-0"],[1,"not-editable","notranslate",3,"className"],[3,"type","courseCount","listAuthor","totalSeatTime","dateCreated","canEdit","sharedInfo","public","isSearchable",4,"ngIf"],["startIcon","keyboard_backspace",3,"className","click"],[3,"type","courseCount","listAuthor","totalSeatTime","dateCreated","canEdit","sharedInfo","public","isSearchable"]],template:function(n,t){1&n&&(e.TgZ(0,"app-secondary-header",0),e.ALo(1,"async"),e._uU(2,"\n "),e.TgZ(3,"div",1),e._uU(4,"\n "),e.TgZ(5,"span",2),e._uU(6,"\n "),e.YNc(7,eu,2,2,"og-button",3),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.TgZ(10,"div",4),e._uU(11,"\n "),e.TgZ(12,"og-typography",5),e._uU(13,"\n "),e.TgZ(14,"span",6),e._uU(15),e.qZA(),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n "),e.qZA(),e._uU(18,"\n "),e.qZA(),e._uU(19,"\n "),e.TgZ(20,"og-flex",7),e._uU(21,"\n "),e.TgZ(22,"div",8),e._uU(23,"\n "),e.TgZ(24,"og-typography"),e._uU(25,"\n "),e.TgZ(26,"span",9),e._uU(27),e.qZA(),e._uU(28,"\n "),e.qZA(),e._uU(29,"\n "),e.YNc(30,tu,1,9,"app-list-info",10),e._uU(31,"\n "),e.qZA(),e._uU(32,"\n "),e.qZA(),e._uU(33,"\n"),e.qZA(),e._uU(34,"\n\n"),e._UZ(35,"app-router-outlet"),e._uU(36,"\n")),2&n&&(e.Q6J("actionNavLinks",t.actionNavLinks)("showPreviewListButton",e.lcZ(1,10,t.showPreviewListButtonFeatureFlag)&&t.showPreviewListButton)("showPreviewListNotice",t.hasMixedPreviewAvailability)("previewListButtonDisabled",t.previewListButtonDisabled)("previewLink",t.previewLink),e.xp6(7),e.Q6J("ngIf",t.showBackButton),e.xp6(8),e.Oqu(t.list.title),e.xp6(11),e.Q6J("className",t.classes.listDescription),e.xp6(1),e.Oqu(t.list.description),e.xp6(3),e.Q6J("ngIf",(null==t.list?null:t.list.courseCount)>0))},dependencies:[M.r0,_.O5,Ze.wy,bn,Xe.X,N.lo,He,_.Ov]}),le);function ou(i,o){if(1&i&&e._UZ(0,"app-warning-banner",3),2&i){const n=e.oxw();e.Q6J("text",n.publicListWarningMessage())}}function iu(i,o){1&i&&e._UZ(0,"app-public-list-details")}function su(i,o){1&i&&(e._uU(0,"\n "),e._UZ(1,"app-editable-list-details"),e._uU(2,"\n"))}mt=(0,k.gn)([(0,v.ozS)(i=>(0,v.kcS)({backButton:{border:"none",backgroundColor:"#F4F2F7","&:hover":{backgroundColor:(0,v._jn)("#F4F2F7",.1)},"& .og-button-label":{color:"#59596C"},"& .og-svg-icon-root":{fontSize:"25px"}},listDescription:{fontFamily:"Poppins",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"130%",marginBottom:"8px",color:i.palette.text.primary}})),(0,k.w6)("design:paramtypes",[B.f,O.V,S.XN,f.gz,f.F0,ee,ve.I,w.g,I.B,z.z,Ye._x])],mt);let lu=(()=>{const o=class{constructor(t,s,r){this.route=t,this.activeList=s,this.segmentService=r,this.subscriptions=[],this.forcePublicView=!1}ngOnInit(){const{list:t}
1=this.route.snapshot.data;this.subscriptions.push(this.route.queryParams.subscribe(s=>{"public"===s.view&&(t.isPublic=!0,this.activeList.load(t,[Z.v.View]),this.forcePublicView=!0)})),this.subscriptions.push(this.route.data.subscribe(s=>{this.activeList.load(s.list,s.permissions)}))}ngAfterViewInit(){this.segmentService.trackEvent(new Ql.t(F.z.ViewedList,this.list.metadata))}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}get list(){return this.activeList.list}get permissions(){return this.activeList.permissions}listPermissionCheck(t){return this.activeList.hasPermission(t)}get canEditList(){return this.listPermissionCheck(Z.v.Edit)}get canViewCollaborators(){return this.listPermissionCheck(Z.v.ViewCollaborators)}publicListWarningMessage(){return this._publicListWarningMessage}shouldSeePublicView(){return this.forcePublicView||this.list.isPublic&&!this.canViewCollaborators}showPublicListWarning(){return this.list.isPublic&&this.canEditList?(this._publicListWarningMessage="You are editing a public list. Followers will be notified of changes.",!0):!this.list.isPublic&&this.list.type===g.co.subscription&&(this._publicListWarningMessage="This list is no longer being updated.",!0)}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.Y36(f.gz),e.Y36(B.f),e.Y36(I.B))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-list-view"]],decls:9,vars:3,consts:[[3,"text",4,"ngIf"],[4,"ngIf","ngIfElse"],["editable",""],[3,"text"]],template:function(s,r){if(1&s&&(e._UZ(0,"app-add-to-course-list-drawer"),e._uU(1,"\n"),e.YNc(2,ou,1,1,"app-warning-banner",0),e._uU(3,"\n"),e.YNc(4,iu,1,0,"app-public-list-details",1),e._uU(5,"\n"),e.YNc(6,su,3,0,"ng-template",null,2,e.W1O),e._uU(8,"\n")),2&s){const a=e.MAs(7);e.xp6(2),e.Q6J("ngIf",r.showPublicListWarning()),e.xp6(2),e.Q6J("ngIf",r.shouldSeePublicView())("ngIfElse",a)}},dependencies:[El.W,_.O5,nn.$,gt,mt]}),i})();var xe=c(858);let ht=((ce=class{constructor(){}}).\u0275fac=function(n){return new(n||ce)},ce.\u0275cmp=e.Xpm({type:ce,selectors:[["app-preview-list-error"]],decls:36,vars:9,consts:[["width","127","height","137","viewBox","0 0 127 137","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.5735 135.098C5.60767 135.497 5.76096 135.877 6.0135 136.188L6.1235 136.308C6.17205 136.36 6.22565 136.407 6.28349 136.448C6.63404 136.734 7.07117 136.893 7.5235 136.898H102.033C102.16 136.911 102.287 136.911 102.413 136.898C104.429 136.71 106.337 135.908 107.882 134.601C109.427 133.294 110.534 131.544 111.053 129.588L115.263 113.588C115.331 113.339 115.348 113.079 115.314 112.823C115.279 112.567 115.194 112.321 115.063 112.098C114.795 111.657 114.366 111.336 113.866 111.204C113.367 111.071 112.835 111.137 112.383 111.388C111.935 111.654 111.609 112.085 111.473 112.588L107.263 128.588C106.932 129.856 106.19 130.978 105.153 131.78C104.117 132.581 102.844 133.017 101.533 133.018H10.1135L24.3235 81.3383H119.753L115.753 96.6683C115.622 96.9341 115.552 97.2258 115.547 97.5222C115.542 97.8186 115.604 98.1124 115.726 98.3822C115.849 98.6521 116.03 98.8912 116.257 99.0824C116.484 99.2736 116.75 99.412 117.037 99.4876C117.323 99.5633 117.623 99.5742 117.914 99.5197C118.206 99.4652 118.482 99.3466 118.721 99.1725C118.961 98.9984 119.16 98.7731 119.302 98.5129C119.444 98.2528 119.527 97.9643 119.543 97.6683L124.214 79.8883C124.285 79.5983 124.291 79.296 124.23 79.0036C124.17 78.7111 124.044 78.436 123.863 78.1983C123.683 77.9576 123.449 77.7625 123.18 77.6287C122.911 77.495 122.614 77.4263 122.313 77.4283H22.8135C22.3859 77.4347 21.9716 77.578 21.6315 77.8372C21.2913 78.0964 21.0432 78.4577 20.9235 78.8683L8.7135 123.208L3.92349 50.3383C3.90309 50.0321 3.94582 49.725 4.04904 49.436C4.15225 49.147 4.31375 48.8823 4.5235 48.6583C4.7485 48.4314 5.01653 48.2517 5.31188 48.1298C5.60724 48.0079 5.92397 47.9462 6.24349 47.9483H26.9835C27.6448 47.9475 28.2973 48.1007 28.8892 48.3958C29.481 48.6909 29.9961 49.1197 30.3935 49.6483L37.1635 58.3083C37.3487 58.5427 37.584 58.7326 37.8523 58.8641C38.1205 58.9956 38.4148 59.0654 38.7135 59.0683H100.113V68.2283C100.205 68.6804 100.451 69.0869 100.808 69.3788C101.165 69.6708 101.612 69.8303 102.074 69.8303C102.535 69.8303 102.982 69.6708 103.339 69.3788C103.696 69.0869 103.942 68.6804 104.033 68.2283V57.1083C104.033 56.5779 103.823 56.0691 103.448 55.6941C103.073 55.319 102.564 55.1083 102.033 55.1083H39.6635L33.5035 47.2183C32.7391 46.2139 31.7529 45.3998 30.6219 44.8395C29.4909 44.2792 28.2457 43.9879 26.9835 43.9883H6.17349C5.33293 43.9956 4.50221 44.17 3.72966 44.5013C2.95712 44.8327 2.25817 45.3143 1.6735 45.9183C1.09355 46.5387 0.64702 47.2714 0.361498 48.0712C0.075976 48.871 -0.0424637 49.7209 0.0134981 50.5683L5.5735 135.098Z","fill","#323B4A"],["d","M85.3535 99.6172C84.9014 99.709 84.4949 99.9543 84.2029 100.311C83.911 100.669 83.7515 101.116 83.7515 101.577C83.7515 102.039 83.911 102.486 84.2029 102.843C84.4949 103.2 84.9014 103.445 85.3535 103.537H90.9135C91.3656 103.445 91.7721 103.2 92.064 102.843C92.356 102.486 92.5155 102.039 92.5155 101.577C92.5155 101.116 92.356 100.669 92.064 100.311C91.7721 99.9543 91.3656 99.709 90.9135 99.6172H85.3535Z","fill","#323B4A"],["d","M88.1135 18.1877L90.8935 20.9677L88.1135 23.7477C87.8396 24.1339 87.7116 24.6048 87.7523 25.0766C87.793 25.5483 87.9998 25.9903 88.3358 26.3239C88.6718 26.6575 89.1153 26.8611 89.5873 26.8984C90.0593 26.9357 90.5292 26.8044 90.9135 26.5277L93.6935 23.7377L96.4835 26.5277C96.8559 26.8852 97.3522 27.0849 97.8685 27.0849C98.3848 27.0849 98.8811 26.8852 99.2535 26.5277C99.614 26.1548 99.8155 25.6564 99.8155 25.1377C99.8155 24.619 99.614 24.1206 99.2535 23.7477L96.4635 20.9677L99.2535 18.1877C99.5064 17.8032 99.619 17.3432 99.5722 16.8854C99.5254 16.4276 99.3222 15.9999 98.9968 15.6745C98.6713 15.349 98.2436 15.1458 97.7858 15.099C97.328 15.0523 96.868 15.1648 96.4835 15.4177L93.6935 18.1977L90.9135 15.4177C90.5298 15.1464 90.0628 15.0189 89.5945 15.0576C89.1262 15.0962 88.6864 15.2985 88.3523 15.629C88.0183 15.9595 87.8113 16.397 87.7676 16.8649C87.7239 17.3328 87.8464 17.8011 88.1135 18.1877Z","fill","#323B4A"],["d","M61.7435 116.869C61.5589 117.048 61.4123 117.262 61.3127 117.499C61.213 117.736 61.1623 117.991 61.1635 118.249C61.1566 118.513 61.2037 118.776 61.3017 119.022C61.3998 119.268 61.5469 119.491 61.734 119.678C61.9211 119.865 62.1443 120.012 62.3901 120.11C62.6358 120.208 62.899 120.255 63.1635 120.249C63.4198 120.249 63.6737 120.199 63.9105 120.102C64.1474 120.004 64.3625 119.86 64.5435 119.679C65.6541 118.577 67.1546 117.96 68.7185 117.96C70.2824 117.96 71.7829 118.577 72.8935 119.679C73.0745 119.86 73.2896 120.004 73.5265 120.102C73.7633 120.199 74.0172 120.249 74.2735 120.249C74.6542 120.233 75.0224 120.108 75.3348 119.89C75.6472 119.672 75.8907 119.369 76.0368 119.017C76.1828 118.665 76.2253 118.278 76.1591 117.903C76.093 117.528 75.921 117.179 75.6635 116.899C73.8181 115.055 71.318 114.017 68.7097 114.012C66.1014 114.006 63.5969 115.033 61.7435 116.869Z","fill","#323B4A"],["d","M61.2135 45.528C61.1289 45.8916 61.1477 46.2716 61.2679 46.6251C61.3881 46.9785 61.6048 47.2913 61.8935 47.528C62.244 47.8046 62.677 47.956 63.1235 47.958C63.4261 47.9586 63.7245 47.8866 63.9935 47.748L79.1635 40.158C83.7947 41.6449 88.6294 42.4007 93.4935 42.398H93.6535C104.653 42.398 114.8
103 38.788 120.873 32.738C124.383 29.248 126.233 25.178 126.233 20.978C126.233 11.228 116.653 2.91797 102.383 0.307973C101.876 0.22792 101.357 0.346335 100.934 0.638654C100.512 0.930972 100.218 1.37476 100.113 1.87797C100.027 2.38771 100.142 2.91095 100.433 3.33798C100.731 3.76476 101.183 4.0589 101.693 4.15798C113.843 6.37798 122.323 13.288 122.323 20.968C122.323 30.458 109.213 38.468 93.6935 38.468H93.5135C88.7992 38.4696 84.1167 37.6959 79.6535 36.178C79.1565 36.0122 78.6143 36.0482 78.1435 36.278L66.0635 42.278L68.9135 30.838C68.9903 30.5193 68.9876 30.1867 68.9056 29.8693C68.8237 29.552 68.665 29.2596 68.4435 29.018C66.3652 26.8241 65.172 23.9389 65.0935 20.918C65.0935 13.028 73.8335 6.06798 86.3635 3.99798C86.6611 4.01138 86.9579 3.95812 87.2323 3.8421C87.5067 3.72608 87.7518 3.55023 87.9495 3.32739C88.1472 3.10454 88.2926 2.84034 88.3752 2.55409C88.4577 2.26784 88.4753 1.96676 88.4265 1.67286C88.3778 1.37896 88.264 1.09965 88.0935 0.855355C87.923 0.611056 87.7001 0.407932 87.441 0.260827C87.182 0.113722 86.8933 0.0263525 86.5962 0.00509718C86.299 -0.0161581 86.0009 0.0292394 85.7235 0.137975C71.2535 2.52797 61.1635 11.128 61.1635 21.018C61.2611 24.642 62.559 28.1311 64.8535 30.938L61.2135 45.528Z","fill","#323B4A"],["d","M46.4435 99.6172C45.9914 99.709 45.5849 99.9543 45.2929 100.311C45.001 100.669 44.8415 101.116 44.8415 101.577C44.8415 102.039 45.001 102.486 45.2929 102.843C45.5849 103.2 45.9914 103.445 46.4435 103.537H52.0035C52.4556 103.445 52.8621 103.2 53.154 102.843C53.446 102.486 53.6055 102.039 53.6055 101.577C53.6055 101.116 53.446 100.669 53.154 100.311C52.8621 99.9543 52.4556 99.709 52.0035 99.6172H46.4435Z","fill","#323B4A"],["d","M100.053 68.2176V59.0576H38.6835C38.3863 59.0603 38.0925 58.994 37.8252 58.8639C37.558 58.7337 37.3246 58.5433 37.1435 58.3076L30.3735 49.6376C29.9734 49.1119 29.4578 48.6851 28.8666 48.3903C28.2753 48.0956 27.6242 47.9407 26.9635 47.9376H6.22349C5.90381 47.9344 5.58674 47.9956 5.29123 48.1176C4.99571 48.2395 4.7278 48.4198 4.50349 48.6476C4.29521 48.8726 4.13467 49.1375 4.03155 49.4262C3.92842 49.7149 3.88486 50.0216 3.90349 50.3276L8.69349 123.198L20.9035 78.8176C21.0232 78.4071 21.2713 78.0457 21.6115 77.7865C21.9516 77.5274 22.3659 77.3841 22.7935 77.3776H101.873V70.1676C101.383 70.1234 100.927 69.9001 100.591 69.5403C100.255 69.1806 100.064 68.7096 100.053 68.2176Z","fill","#EBEFF1"],["d","M86.3535 4.04853C73.8235 6.11853 65.0835 13.0485 65.0835 20.9685C65.162 23.9895 66.3552 26.8747 68.4335 29.0685C68.655 29.3102 68.8137 29.6025 68.8956 29.9199C68.9776 30.2372 68.9803 30.5699 68.9035 30.8885L66.0535 42.3285L78.1335 36.3285C78.6043 36.0987 79.1465 36.0628 79.6435 36.2285C84.1032 37.7466 88.7825 38.5203 93.4935 38.5185H93.6835C109.204 38.5185 122.313 30.5185 122.313 21.0185C122.313 13.3385 113.834 6.42853 101.684 4.20853C101.173 4.10945 100.721 3.81532 100.423 3.38853C100.132 2.9615 100.017 2.43826 100.104 1.92853C100.104 1.84853 100.103 1.76853 100.173 1.69853C96.103 1.24112 91.994 1.24112 87.9235 1.69853C87.9235 1.75853 87.9235 1.80853 87.9235 1.86853C87.9791 2.36196 87.8492 2.85844 87.559 3.26138C87.2688 3.66431 86.8391 3.94489 86.3535 4.04853ZM90.9135 15.4185L93.6935 18.1985L96.4835 15.4185C96.868 15.1656 97.328 15.0531 97.7858 15.0998C98.2436 15.1466 98.6713 15.3499 98.9967 15.6753C99.3222 16.0007 99.5254 16.4284 99.5722 16.8862C99.6189 17.3441 99.5064 17.804 99.2535 18.1885L96.4635 20.9685L99.2535 23.7485C99.614 24.1215 99.8155 24.6199 99.8155 25.1385C99.8155 25.6572 99.614 26.1556 99.2535 26.5285C98.881 26.886 98.3848 27.0857 97.8685 27.0857C97.3522 27.0857 96.8559 26.886 96.4835 26.5285L93.6935 23.7385L90.9135 26.5285C90.5292 26.8052 90.0593 26.9365 89.5873 26.8992C89.1153 26.8619 88.6718 26.6583 88.3358 26.3247C87.9998 25.9911 87.793 25.5491 87.7523 25.0774C87.7116 24.6056 87.8396 24.1348 88.1135 23.7485L90.8935 20.9685L88.1135 18.1885C87.8606 17.804 87.748 17.3441 87.7948 16.8862C87.8416 16.4284 88.0448 16.0007 88.3702 15.6753C88.6957 15.3499 89.1234 15.1466 89.5812 15.0998C90.039 15.0531 90.499 15.1656 90.8835 15.4185H90.9135Z","fill","white"],["d","M115.714 96.6288L119.714 81.2988H24.3035L10.1135 132.979H101.553C102.864 132.977 104.137 132.542 105.173 131.74C106.21 130.939 106.952 129.817 107.283 128.549L111.493 112.549C111.634 112.05 111.963 111.625 112.411 111.364C112.858 111.103 113.39 111.026 113.893 111.149H113.953L117.043 98.9888C116.566 98.834 116.164 98.5054 115.918 98.0683C115.672 97.6311 115.599 97.1173 115.714 96.6288ZM52.0035 103.529H46.4435C45.9914 103.437 45.5849 103.192 45.2929 102.835C45.001 102.477 44.8415 102.03 44.8415 101.569C44.8415 101.107 45.001 100.66 45.2929 100.303C45.5849 99.9459 45.9914 99.7006 46.4435 99.6088H52.0035C52.4556 99.7006 52.8621 99.9459 53.154 100.303C53.446 100.66 53.6055 101.107 53.6055 101.569C53.6055 102.03 53.446 102.477 53.154 102.835C52.8621 103.192 52.4556 103.437 52.0035 103.529ZM75.6335 119.629C75.261 119.998 74.7582 120.207 74.2335 120.209C73.9772 120.21 73.7233 120.16 73.4865 120.062C73.2496 119.964 73.0345 119.82 72.8535 119.639C71.7429 118.538 70.2424 117.92 68.6785 117.92C67.1146 117.92 65.6141 118.538 64.5035 119.639C64.3225 119.82 64.1074 119.964 63.8705 120.062C63.6337 120.16 63.3798 120.21 63.1235 120.209C62.859 120.216 62.5958 120.169 62.3501 120.071C62.1043 119.973 61.8811 119.825 61.694 119.638C61.5069 119.451 61.3598 119.228 61.2617 118.982C61.1637 118.736 61.1166 118.473 61.1235 118.209C61.1223 117.952 61.173 117.697 61.2727 117.46C61.3723 117.223 61.5189 117.008 61.7035 116.829C63.5512 115.002 66.0449 113.977 68.6435 113.977C71.2421 113.977 73.7358 115.002 75.5835 116.829C75.9597 117.197 76.1759 117.698 76.1853 118.224C76.1946 118.75 75.9964 119.258 75.6335 119.639V119.629ZM90.9135 103.529H85.3535C84.9014 103.437 84.4949 103.192 84.2029 102.835C83.911 102.477 83.7515 102.03 83.7515 101.569C83.7515 101.107 83.911 100.66 84.2029 100.303C84.4949 99.9459 84.9014 99.7006 85.3535 99.6088H90.9135C91.3656 99.7006 91.7721 99.9459 92.064 100.303C92.356 100.66 92.5155 101.107 92.5155 101.569C92.5155 102.03 92.356 102.477 92.064 102.835C91.7721 103.192 91.3656 103.437 90.9135 103.529Z","fill","white"],["variant","h2","align","center","fontWeight","bold","color","textSecondary",3,"className"],["align","center",3,"className"]],template:function(n,t){1&n&&(e.TgZ(0,"div"),e._uU(1,"\n "),e.O4$(),e.TgZ(2,"svg",0),e._uU(3,"\n "),e._UZ(4,"path",1),e._uU(5,"\n "),e._UZ(6,"path",2),e._uU(7,"\n "),e._UZ(8,"path",3),e._uU(9,"\n "),e._UZ(10,"path",4),e._uU(11,"\n "),e._UZ(12,"path",5),e._uU(13,"\n "),e._UZ(14,"path",6),e._uU(15,"\n "),e._UZ(16,"path",7),e._uU(17,"\n "),e._UZ(18,"path",8),e._uU(19,"\n "),e._UZ(20,"path",9),e._uU(21,"\n "),e.qZA(),e._uU(22,"\n "),e.kcU(),e.TgZ(23,"og-typography",10),e._uU(24,"\n Uh Oh!\n "),e.qZA(),e._uU(25,"\n "),e.TgZ(26,"div"),e._uU(27,"\n "),e.TgZ(28,"og-typography",11),e._uU(29,"Looks like something went wrong"),e.qZA(),e._uU(30,"\n "),e.TgZ(31,"og-typography",11),e._uU(32,"\n We couldn\u2019t start this preview. Contact OpenSesame support for more details.\n "),e.qZA(),e._uU(33,"\n "),e.qZA(),e._uU(34,"\n"),e.qZA(),e._uU(35,"\n")),2&n&&(e.Tol(t.classes.container),e.xp6(2),e.Tol(t.classes.sadImg),e.xp6(21),e.s9C("className",t.classes.errorMain),e.xp6(
15),e.s9C("className",t.classes.errorSecondary),e.xp6(3),e.s9C("className",t.classes.errMessage))},dependencies:[N.lo],encapsulation:2}),ce);ht=(0,k.gn)([(0,v.ozS)(i=>(0,v.kcS)({container:{alignItems:"center",backgroundColor:"inherit",display:"flex",flexDirection:"column",minHeight:"900px",marginTop:"3em"},errorMain:{fontSize:"3rem",marginBottom:"0.5rem"},errorSecondary:{fontSize:"2rem",marginBottom:"0.75rem",fontWeight:"bold"},errMessage:{fontWeight:"600"},sadImg:{marginTop:"11rem"}})),(0,k.w6)("design:paramtypes",[])],ht);const uu=[{path:"",component:si,children:[{path:"",component:me,data:{title:"All Lists",type:g.co.all,emptyText:"You don't have any lists yet.",emptyButton:"Create a New List"},canActivate:[xe._]},{path:"created",component:me,data:{title:"My Created Lists",type:g.co.created,emptyText:"You don't have any lists yet.",emptyButton:"Create a New List"},canActivate:[xe._]},{path:"received",component:me,data:{title:"My Received List",type:g.co.received,emptyText:"You haven't received any lists yet.",emptyButton:"Create your Own List"},canActivate:[xe._]},{path:"shared",component:me,data:{title:"My Shared List",type:g.co.shared,emptyText:"You haven't shared any lists yet.",emptyButton:"Create a List to Share"},canActivate:[xe._]},{path:"following",component:me,data:{title:"Lists I Am Following",type:g.co.subscription,emptyText:"You haven't followed any lists yet.",emptyButton:""},canActivate:[xe._]},{path:"curated",component:me,data:{title:"Curated lists of OpenSesame",type:g.co.curated,emptyText:"There are no curated lists",emptyButton:""},canActivate:[xe._]},{path:"preview-error",component:ht,data:{}},{path:"detail",children:[{path:":id",component:lu,resolve:{list:Nt,permissions:tn},children:[{path:"",component:dt},{path:"collaborators",component:Jt,data:{view:V.Collaborators}},{path:"followers",component:Jt,data:{view:V.Followers}}]}]}]}];let du=(()=>{const o=class{};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[f.Bz.forChild(uu),f.Bz]}),i})();var pu=c(5590);let _u=(()=>{const o=class{constructor(t,s,r,a){this.listService=t,this.router=s,this.notificationService=r,this.activeSession=a}resolve(t,s){return new Promise((r,a)=>{this.listService.getAllLists(t.queryParams.uid).then(r).catch(l=>{this.activeSession.session.isLoggedIn?(console.log(l),this.router.navigate(["/os404"]),a(null)):(this.notificationService.publishNotification(x.n.ListLoginText,"error"),this.router.navigate(["/user/login"],{queryParams:{destination:s.url}}),a(l))})})}};let i=o;return o.\u0275fac=function(s){return new(s||o)(e.LFG(S.XN),e.LFG(f.F0),e.LFG(w.g),e.LFG
1(O.V))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),i})();var gu=c(4482),mu=c(1572),hu=c(231),fu=c(4714),Cu=c(8555),vu=c(6461),bu=c(3054),xu=c(2196);let yu=(()=>{const o=class{};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[v.hJ1,v.dTQ,v.Wi$,v.km,_.ez,xu.FI,v.xFq,v.aeS,v.BxM,u.u5,bu.A,J.y,v.eIS,Cu.Aw.forFeature("courseDistribution",{courseDistribution:vu.I6}),v.Zi]}),i})();var Tu=c(2752),Uu=c(4786),wu=c(8257),Mu=c(8579),Zu=c(8178);let Pu=(()=>{const o=class{};let i=o;return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({providers:[ln.J,he,It,Se.pQ,Je.T,wt,Nt,tn,_u,z.z,Ft,ee,$e,Gt,Te.r,lt.z,Mu._l],imports:[Uu.y,Zu.K,Zt.WN,v.hJ1,v.oP2,_.ez,no,yu,Ae.kW,jt.m,mu.O,v.aeS,gu.T,v.HMv,du,Ct.q4,de.jz,u.UX,f.Bz,ct._,ct._,Tu.$,Ne.A,fu.m,pu.m,hu.z,xn.JH,v.Yql,A.U$,yn.xc,v.Zi,wu.W,nn.a]}),i})()}}]);
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.