1"use strict";(self.webpackChunkcore_app=self.webpackChunkcore_app||[]).push([["apps_training-store_src_app_app_module_ts"],{11431(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.SubscriberComponentBase=void 0;const v=o(31635).__importStar(o(49849));f.SubscriberComponentBase=(()=>{class b{constructor(){this.subscriptions=[]}subscribeTo(a){a||this.subscriptions.push(a)}ngOnDestroy(){this.subscriptions||this.subscriptions.forEach(a=>a.unsubscribe())}static{this.\u0275fac=function(L){return new(L||b)}}static{this.\u0275cmp=v.\u0275\u0275defineComponent({type:b,selectors:[["ng-component"]],standalone:!1,decls:1,vars:0,template:function(L,R){1&L&&v.\u0275\u0275text(0,"./subscriber-component.base.html")},encapsulation:2})}}return b})()},86599(dt,f){Object.defineProperty(f,"__esModule",{value:!0}),f.PurchaseOrder=f.CreditCard=f.ExpirationDate=f.BillingAddress=f.AddCreditCardInput=void 0,f.AddCreditCardInput=class o{};class g{}f.BillingAddress=g;class v{}f.ExpirationDate=v,f.CreditCard=class c{constructor(){this.billingAddress=new g,this.expirationDate=new v}},f.PurchaseOrder=class b{constructor(){this.billingAddress=new g}}},59962(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.AppRoutingModule=void 0;const g=o(31635),v=o(7901),c=o(63063),b=o(9915),k=o(88388),a=o(3975),L=o(11805),R=o(38711),m=o(41316),d=o(96889),r=g.__importStar(o(49849)),A=(g.__importStar(o(7901)),[{path:"",component:k.AppComponent,children:[{path:"",component:c.MainPageComponent,data:{title:"Training Store",preload:!0}},{path:"search",component:b.CourseSearchComponent,data:{title:"Training Courses",preload:!0}},{path:"cart",component:a.ShoppingCartComponent,data:{title:"Shopping Cart",preload:!0}},{path:"checkout",canActivate:[m.ForceParentCompanyGuard],canActivateChild:[m.ForceParentCompanyGuard],component:L.CheckoutComponent,data:{title:"Checkout",preload:!0}},{path:"checkout-confirmation",component:R.CheckoutConfirmationComponent,data:{title:"Thank You",preload:!0}},{path:"open-free-course-modal",component:d.OpenFreeCourseModalComponent,data:{preload:!0}}]}]);f.AppRoutingModule=(()=>{class s{static{this.\u0275fac=function(G){return new(G||s)}}static{this.\u0275mod=r.\u0275\u0275defineNgModule({type:s})}static{this.\u0275inj=r.\u0275\u0275defineInjector({imports:[v.RouterModule.forChild(A),v.RouterModule]})}}return s})()},88388(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.AppComponent=void 0;const g=o(31635),v=o(59091),b=(o(97377),g.__importStar(o(49849))),k=g.__importStar(o(97377)),a=g.__importStar(o(7901)),L=g.__importStar(o(20420)),R=g.__importStar(o(91153));f.AppComponent=(()=>{class d{constructor(_){this.statefulService=_,this.title="training-store",this.renderMobileSidebar=!1,this.unsubscribe=new v.Subject,this.updateMobileSideNavSubject=new v.Subject,this.updateMobileSideNavObsv=this.updateMobileSideNavSubject.asObservable(),this.getScreenWidth$=new v.BehaviorSubject(null),this.getScreenWidth=this.getScreenWidth$.asObservable()}ngOnInit(){this.getScreenWidth$.next(+window.innerWidth)}onWindowResize(){this.getScreenWidth$.next(+window.innerWidth)}isMobileSize(){return document.body.offsetWidth<991}businessName(){return null!=this.statefulService.profile.businessName?this.statefulService.profile.businessName:""}isParentHolding(){return this.statefulService.globalPrivileges.indexOf("B2B_View_Parent_Holding")>-1}closeSideBar(){$("#main").removeClass("move-to-right"),$("#mobile-hamburger-e6a8d885bf70").removeClass("active-icon-e6a8d885bf70"),this.renderMobileSidebar=!1}openSideBar(){$("#main").addClass("move-to-right"),$("#mobile-hamburger-e6a8d885bf70").addClass("active-icon-e6a8d885bf70"),this.renderMobileSidebar=!0}static{this.\u0275fac=function(A){return new(A||d)(b.\u0275\u0275directiveInject(k.StatefulService))}}static{this.\u0275cmp=b.\u0275\u0275defineComponent({type:d,selectors:[["altecConnect-root"]],hostBindings:function(A,n){1&A&&b.\u0275\u0275listener("resize",function(){return n.onWindowResize()},b.\u0275\u0275resolveWindow)},standalone:!1,decls:3,vars:0,template:function(A,n){1&A&&b.\u0275\u0275element(0,"altecConnect-training-store-header")(1,"router-outlet")(2,"altecConnect-training-store-footer")},dependencies:[a.RouterOutlet,L.TrainingStoreFooterComponent,R.TrainingStoreHeaderComponent],styles:[".move-to-right[_ngcontent-%COMP%]{transform:translate(90%)}"]})}}return d})()},8035(dt,f,o){f.AppModule=void 0;const v=o(31635),c=o(84341),b=o(60177),k=o(6324),a=o(59962),L=o(31640),R=o(83352),m=o(89692),d=o(3975),r=o(71026),_=o(79586),A=o(77482),n=o(91898),s=o(2179),et=v.__importStar(o(49849));f.AppModule=(()=>{class G{static{this.\u0275fac=function(i){return new(i||G)}}static{this.\u0275mod=et.\u0275\u0275defineNgModule({type:G})}static{this.\u0275inj=et.\u0275\u0275defineInjector({providers:[r.CheckoutStore,d.ShoppingCartComponent],imports:[b.CommonModule,a.AppRoutingModule,k.NgbModalModule,k.NgbTooltipModule,c.FormsModule,L.ResponsivePaginationModule,R.CommonProjModule,n.CommonPrivilegeModule,m.ClipboardModule,c.ReactiveFormsModule,_.MyAccountModule,A.MobileSidenavModule,s.CardNumberComponent]})}}return G})()}
1,39313(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.AddToCartModalComponent=void 0;const g=o(31635),k=(o(6324),o(35445),o(91898),o(59091)),a=o(7721),m=(o(97377),o(49245),g.__importStar(o(49849))),d=g.__importStar(o(6324)),r=g.__importStar(o(35445)),_=g.__importStar(o(91898)),A=g.__importStar(o(49245)),n=g.__importStar(o(97377)),s=g.__importStar(o(7901)),et=g.__importStar(o(60177)),j=()=>["/pages/training-store/checkout"];function G(J,q){1&J&&m.\u0275\u0275element(0,"img",11)}function at(J,q){if(1&J){const Q=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"a",17),m.\u0275\u0275listener("click",function(){m.\u0275\u0275restoreView(Q);const E=m.\u0275\u0275nextContext();return m.\u0275\u0275resetView(E.activeModal.close())}),m.\u0275\u0275text(1," Check Out Now "),m.\u0275\u0275elementEnd()}2&J&&m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(1,j))}function nt(J,q){if(1&J){const Q=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"a",18),m.\u0275\u0275listener("click",function(){m.\u0275\u0275restoreView(Q);const E=m.\u0275\u0275nextContext();return E.activeModal.close(),m.\u0275\u0275resetView(E.openForceParentCompanyModal())}),m.\u0275\u0275text(1," Check Out Now "),m.\u0275\u0275elementEnd()}}f.AddToCartModalComponent=(()=>{class J{constructor(Q,z,E,st,B){this.activeModal=Q,this.shoppingCartService=z,this.privilegeService=E,this.forceParentCompanyModal=st,this.statefulService=B,this.forceParentOrg=!1}ngOnInit(){this.getForceParentOrg().pipe((0,k.take)(1)).subscribe(Q=>this.forceParentOrg=Q)}showCertificate(){return this.shoppingCartItem.course.tags.findIndex(Q=>"certificate"===Q.toLocaleLowerCase())>=0}calculateCartAmount(){let Q=0;for(let z of this.shoppingCartService.trainingStoreCart.items)Q+=z.quantity;return Q}getForceParentOrg(){return this.privilegeService.hasPrivilege("B2B_View_Parent_Holding")?this.statefulService.select(a.selectTransientProfile).pipe((0,k.switchMap)(Q=>(0,k.of)(Q.activeOrganizations.length>1||Q.activeOrganizations[0].accountId!==this.statefulService.profile.accountId)),(0,k.take)(1)):(0,k.of)(!1)}openForceParentCompanyModal(){this.forceParentCompanyModal.open("/pages/training-store/checkout")}static{this.\u0275fac=function(z){return new(z||J)(m.\u0275\u0275directiveInject(d.NgbActiveModal),m.\u0275\u0275directiveInject(r.ShoppingCartService),m.\u0275\u0275directiveInject(_.PrivilegeService),m.\u0275\u0275directiveInject(A.ForceParentCompanyModalService),m.\u0275\u0275directiveInject(n.StatefulService))}}static{this.\u0275cmp=m.\u0275\u0275defineComponent({type:J,selectors:[["altecConnect-add-to-cart-modal"]],standalone:!1,decls:31,vars:13,consts:[[1,"modal-header","d-block"],[1,"header-content"],[1,"fa","fa-check"],[1,"header-buttons"],[1,"pointer",3,"click"],[1,"fa","fa-lg","fa-times","pointer",3,"click"],[1,"modal-body"],[1,"body-content"],[1,"cart-image",3,"src"],["id","title-column"],[1,"title"],["title","Completion certificate provided","src","/static/angular-resources/training-store/award-solid.svg",1,"certificate","fa"],[1,"checkout-container"],["id","cart-link"],[3,"click","routerLink"],[1,"btn","btn-altec","mt-5",3,"routerLink"],["href","javascript:;",1,"btn","btn-altec","mt-5"],[1,"btn","btn-altec","mt-5",3,"click","routerLink"],["href","javascript:;",1,"btn","btn-altec","mt-5",3,"click"]],template:function(z,E){1&z&&(m.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div"),m.\u0275\u0275element(3,"i",2),m.\u0275\u0275text(4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(5,"div",3)(6,"a",4),m.\u0275\u0275listener("click",function(){return E.activeModal.close()}),m.\u0275\u0275text(7,"Continue Browsing"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(8,"i",5),m.\u0275\u0275listener("click",function(){return E.activeModal.close()}),m.\u0275\u0275elementEnd()()()(),m.\u0275\u0275elementStart(9,"div",6)(10,"div",7)(11,"div"),m.\u0275\u0275element(12,"img",8),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(13,"div",9)(14,"div",10),m.\u0275\u0275text(15),m.\u0275\u0275conditionalCreate(16,G,1,0,"img",11),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(17,"div"),m.\u0275\u0275text(18),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(19,"div")(20,"div",12)(21,"div",13)(22,"a",14),m.\u0275\u0275listener("click",function(){return E.activeModal.close()}),m.\u0275\u0275text(23),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(24,"div")(25,"strong"),m.\u0275\u0275text(26),m.\u0275\u0275pipe(27,"currency"),m.\u0275\u0275elementEnd()()(),m.\u0275\u0275elementStart(28,"div"),m.\u0275\u0275conditionalCreate(29,at,2,2,"a",15),m.\u0275\u0275conditionalCreate(30,nt,2,0,"a",16),m.\u0275\u0275elementEnd()()()()()),2&z&&(m.\u0275\u0275advance(4),m.\u0275\u0275textInterpolate2(" ",E.shoppingCartItem.shoppingCartItem.quantity," item",1===E.shoppingCartItem.shoppingCartItem.quantity?" has":"s have"," been added to your cart "),m.\u0275\u0275advance(8),m.\u0275\u0275property("src",E.shoppingCartItem.course.image,m.\u0275\u0275sanitizeUrl),m.\u0275\u0275advance(3),m.\u0275\u0275textInterpolate1(" ",E.shoppingCartItem.course.title),m.\u0275\u0275advance(),m.\u0275\u0275conditional(E.showCertificate()?16:-1),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate1(" Seats: ",E.shoppingCartItem.shoppingCartItem.quantity," "),m.\u0275\u0275advance(4),m.\u0275\u0275property("routerLink","/pages/training-store/cart"),m.\u0275\u0275advance(),m.\u0275\u0275textInterpolate1("View Cart (",E.calculateCartAmount(),")"),m.\u0275\u0275advance(3),m.\u0275\u0275textInterpolate1("Subtotal: ",m.\u0275\u0275pipeBind1(27,11,E.shoppingCartItem.course.price*E.shoppingCartItem.shoppingCartItem.quantity)),m.\u0275\u0275advance(3),m.\u0275\u0275conditional(E.forceParentOrg?-1:29),m.\u0275\u0275advance(),m.\u0275\u0275conditional(E.forceParentOrg?30:-1))},dependencies:[s.RouterLink,et.CurrencyPipe],styles:[".header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.header-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:140px;align-items:center}.fa-check[_ngcontent-%COMP%]{color:green}.body-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.cart-image[_ngcontent-%COMP%]{max-width:100px;min-width:100px}#title-column[_ngcontent-%COMP%]{max-width:45%}#title-column[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex}#title-column[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .certificate[_ngcontent-%COMP%]{max-height:20px}.checkout-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;min-height:200px}@media(max-width:767px){.body-content[_ngcontent-%COMP%]{flex-direction:column;align-items:center}#cart-link[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}}.btn-altec[_ngcontent-%COMP%]{white-space:nowrap}"]})}}return J})()}
1,51173(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CategoryImageRow=void 0;const g=o(31635),c=(o(7901),o(19896)),a=(o(83352),o(88388),g.__importStar(o(49849))),L=g.__importStar(o(88388)),R=g.__importStar(o(83352)),m=g.__importStar(o(7901));function d(S,ot){1&S&&(a.\u0275\u0275elementStart(0,"div",4)(1,"h5"),a.\u0275\u0275text(2,"Courses By Product"),a.\u0275\u0275elementEnd()())}function r(S,ot){1&S&&(a.\u0275\u0275elementStart(0,"div",4)(1,"h5"),a.\u0275\u0275text(2,"Courses By Category"),a.\u0275\u0275elementEnd()())}function _(S,ot){if(1&S){const O=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"a",9),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(O);const Z=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(Z.topRowPreviousItem())}),a.\u0275\u0275elementStart(1,"span",10),a.\u0275\u0275element(2,"i",11),a.\u0275\u0275elementEnd()()}}function A(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/aerial_devices.png"),a.\u0275\u0275sanitizeUrl)}}function n(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/cranes.png"),a.\u0275\u0275sanitizeUrl)}}function s(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/chippers.png"),a.\u0275\u0275sanitizeUrl)}}function et(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/digger_derricks.png"),a.\u0275\u0275sanitizeUrl)}}function j(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/lights_and_signs.png"),a.\u0275\u0275sanitizeUrl)}}function G(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/specialty.png"),a.\u0275\u0275sanitizeUrl)}}function at(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/spray.png"),a.\u0275\u0275sanitizeUrl)}}function nt(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",15),2&S){const O=a.\u0275\u0275nextContext().$index,X=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("src",a.\u0275\u0275interpolate2("",X.localURL,"/static/angular-resources/training-store/SentryStock",O%4+1,".png"),a.\u0275\u0275sanitizeUrl)}}function i(S,ot){if(1&S){const O=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",7)(1,"div",12)(2,"div")(3,"div",13),a.\u0275\u0275conditionalCreate(4,A,1,2,"img",14)(5,n,1,2,"img",14)(6,s,1,2,"img",14)(7,et,1,2,"img",14)(8,j,1,2,"img",14)(9,G,1,2,"img",14)(10,at,1,2,"img",14)(11,nt,1,3,"img",15),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(12,"div")(13,"div",16)(14,"h4"),a.\u0275\u0275text(15),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(16,"div",17)(17,"a",18),a.\u0275\u0275listener("click",function(){const Z=a.\u0275\u0275restoreView(O).$implicit,_t=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(_t.viewCourses(Z,"product"))}),a.\u0275\u0275elementStart(18,"span",19),a.\u0275\u0275text(19," View Courses "),a.\u0275\u0275elementEnd()()()()()}if(2&S){let O;const X=ot.$implicit;a.\u0275\u0275advance(4),a.\u0275\u0275conditional("Aerial Devices"===(O=X)?4:"Cranes"===O?5:"Chippers"===O?6:"Digger Derricks"===O?7:"Lights and Signs"===O?8:"Specialty"===O?9:"Spray"===O?10:11),a.\u0275\u0275advance(11),a.\u0275\u0275textInterpolate1(" ",X," ")}}function J(S,ot){if(1&S){const O=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"a",20),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(O);const Z=a.\u0275\u0275nextContext(2);
1return a.\u0275\u0275resetView(Z.topRowNextItem())}),a.\u0275\u0275elementStart(1,"span",21),a.\u0275\u0275element(2,"i",22),a.\u0275\u0275elementEnd()()}}function q(S,ot){if(1&S&&(a.\u0275\u0275elementStart(0,"div",5),a.\u0275\u0275conditionalCreate(1,_,3,0,"a",6),a.\u0275\u0275repeaterCreate(2,i,20,2,"div",7,a.\u0275\u0275repeaterTrackByIdentity),a.\u0275\u0275conditionalCreate(4,J,3,0,"a",8),a.\u0275\u0275elementEnd()),2&S){const O=a.\u0275\u0275nextContext();a.\u0275\u0275advance(),a.\u0275\u0275conditional(O.startPreviewGalleryIndex>0?1:-1),a.\u0275\u0275advance(),a.\u0275\u0275repeater(O.topCategoryItem),a.\u0275\u0275advance(2),a.\u0275\u0275conditional(O.startPreviewGalleryIndex+O.numberOfImagesToDisplay<O.products.length?4:-1)}}function Q(S,ot){if(1&S){const O=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"a",9),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(O);const Z=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(Z.bottomRowPreviousItem())}),a.\u0275\u0275elementStart(1,"span",10),a.\u
10275\u0275element(2,"i",11),a.\u0275\u0275elementEnd()()}}function z(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/apn.png"),a.\u0275\u0275sanitizeUrl)}}function E(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/CDL.png"),a.\u0275\u0275sanitizeUrl)}}function st(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/maintenance.png"),a.\u0275\u0275sanitizeUrl)}}function B(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/operator_training.png"),a.\u0275\u0275sanitizeUrl)}}function it(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",14),2&S){const O=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",O.localURL,"/static/angular-resources/training-store/workplace_safety.png"),a.\u0275\u0275sanitizeUrl)}}function x(S,ot){if(1&S&&a.\u0275\u0275element(0,"img",15),2&S){const O=a.\u0275\u0275nextContext().$index,X=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("src",a.\u0275\u0275interpolate2("",X.localURL,"/static/angular-resources/training-store/SentryStock",O%4+1,".png"),a.\u0275\u0275sanitizeUrl)}}function D(S,ot){if(1&S){const O=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",7)(1,"div",12)(2,"div")(3,"div")(4,"div",13),a.\u0275\u0275conditionalCreate(5,z,1,2,"img",14)(6,E,1,2,"img",14)(7,st,1,2,"img",14)(8,B,1,2,"img",14)(9,it,1,2,"img",14)(10,x,1,3,"img",15),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(11,"div")(12,"div",16)(13,"h4"),a.\u0275\u0275text(14),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(15,"div",17)(16,"a",18),a.\u0275\u0275listener("click",function(){const Z=a.\u0275\u0275restoreView(O).$implicit,_t=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(_t.viewCourses(Z,"categories"))}),a.\u0275\u0275elementStart(17,"span",19),a.\u0275\u0275text(18," View Courses "),a.\u0275\u0275elementEnd()()()()()}if(2&S){let O;const X=ot.$implicit;a.\u0275\u0275advance(5),a.\u0275\u0275conditional("Altec Product Notices (APN)"===(O=X)?5:"Driver Training"===O?6:"Maintenance"===O?7:"Operator Training"===O?8:"Workplace Safety"===O?9:10),a.\u0275\u0275advance(9),a.\u0275\u0275textInterpolate1(" ",X," ")}}function F(S,ot){if(1&S){const O=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"a",20),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(O);const Z=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(Z.bottomRowNextItem())}),a.\u0275\u0275elementStart(1,"span",21),a.\u0275\u0275element(2,"i",22),a.\u0275\u0275elementEnd()()}}function t(S,ot){if(1&S&&(a.\u0275\u0275elementStart(0,"div",5),a.\u0275\u0275conditionalCreate(1,Q,3,0,"a",6),a.\u0275\u0275repeaterCreate(2,D,19,2,"div",7,a.\u0275\u0275repeaterTrackByIdentity),a.\u0275\u0275conditionalCreate(4,F,3,0,"a",8),a.\u0275\u0275elementEnd()),2&S){const O=a.\u0275\u0275nextContext();a.\u0275\u0275advance(),a.\u0275\u0275conditional(O.startPreviewGalleryIndex>0?1:-1),a.\u0275\u0275advance(),a.\u0275\u0275repeater(O.bottomCategoryItem),a.\u0275\u0275advance(2),a.\u0275\u0275conditional(O.startPreviewGalleryIndex+O.numberOfImagesToDisplay<O.categories.length?4:-1)}}f.CategoryImageRow=(()=>{class S{constructor(O,X,Z){this.trainingApp=O,this.trainingStoreService=X,this.router=Z,this.startPreviewGalleryIndex=0,this.startPreviewGalleryIndexWhenSelected=0,this.topCategoryItem=[],this.bottomCategoryItem=[],this.products=[],this.categories=[],this.categoryType="",this.localURL=""}ngOnInit(){this.getCategoryCards(),this.getImgUrl(),this.trainingApp.getScreenWidth.subscribe(O=>{this.numberOfImagesToDisplay=O>=1200?4:O>=768?3:1,this.adjustCardCount()})}getCategoryCards(){this.trainingStoreService.getAllCourses().then(O=>{for(let X=0;X<O.hits.length;X++)for(let Z=0;Z<O.hits[X].hierarchicalCategories.lvl1.length;Z++)if(this.childRouteCategories=O.hits[X].hierarchicalCategories.lvl1[Z].split(" > "),this.childRouteCategories.includes(c.environment.product)){for(this.categoryType=this.childRouteCategories[1];!this.products.includes(this.categoryType);)this.products.push(this.categoryType);this.products.sort(),this.topCategoryItem=this.products.slice(this.startPreviewGalleryIndex,this.startPreviewGalleryIndex+this.numberOfImagesToDisplay)}else if(this.childRouteCategories.includes(c.environment.category)){for(this.categoryType=this.childRouteCategories[1];!this.categories.includes(this.categoryType);)this.categories.push(this.categoryType);this.categories.sort(),this.bottomCategoryItem=this.categories.slice(this.startPreviewGalleryIndex,this.startPreviewGalleryIndex+this.numberOfImagesToDisplay)}})}adjustCardCount(){this.topCategoryItem=this.products.slice(this.startPreviewGalleryIndex,this.startPreviewGalleryIndex+this.numberOfImagesToDisplay),this.bottomCategoryItem=this.categories.slice(this.startPreviewGalleryIndex,this.startPreviewGalleryIndex+this.numberOfImagesToDisplay)}topRowPreviousItem(){this.startPreviewGalleryIndex>0&&(this.startPreviewGalleryIndex--,this.topCategoryItem=this.products.slice(this.startPreviewGalleryIndex,this.startPreviewGalleryIndex+this.numberOfImagesToDisplay))}bottomRowPreviousItem(){this.startPreviewGalleryIndex>0&&(this.startPreviewGalleryIndex--,this.bottomCategoryItem=this.categories.slice(this.startPreviewGalleryIndex,this.startPreviewGalleryIndex+this.numberOfImagesToDisplay))}topRowNextItem(){this.startPreviewGalleryIndex+this.numberOfImagesToDisplay<this.products.length&&(this.startPreviewGalleryIndex++,this.topCategoryItem=this.products.slice(this.startPreviewGalleryIndex,this.startPreviewGalleryIndex+this.numberOfImagesToDisplay))}bottomRowNextItem(){this.startPreviewGalleryIndex+this.numberOfImagesToDisplay<this.categories.length&&(this.startPreviewGalleryIndex++,this.bottomCategoryItem=this.categories.slice(this.startPreviewGalleryIndex,this.startPreviewGalleryIndex+this.numberOfImagesToDisplay))}viewCourses(O,X){window.scrollTo(0,0),"product"===X?this.router.navigate(["pages/training-store/search"],{queryParams:{page:1,productFilters:JSON.stringify({value:O,type:X,isActive:!0})}}):"categories"===X&&this.router.navigate(["pages/training-store/search"],{queryParams:{page:1,categoryFilters:JSON.stringify({value:O,type:X,isActive:!0})}})}getImgUrl(){this.env=window.location.origin,this.env.includes("localhost")&&(this.localURL="https://connect-dev1.cfs-fleet-dev.altec.io")}static{this.\u0275fac=function(X){return new(X||S)(a.\u0275\u0275directiveInject(L.AppComponent),a.\u0275\u0275directiveInject(R.TrainingStoreService),a.\u0275\u0275directiveInject(m.Router))}}static{this.\u0275cmp=a.\u0275\u0275defineComponent({type:S,selectors:[["altecConnect-category-image-row"]],inputs:{title:"title",topRowTitle:"topRowTitle",bottomRowTitle:"bottomRowTitle"},standalone:!1,decls:8,vars:4,consts:[[1,"container"],[1,"row"],[1,"col-12"],[1,"category-title"],[1,"col-xl-12"],[1,"row","position-relative","justify-content-center"],["role","button",1,"carousel-control-prev"],[1,"col-12","col-sm-4","col-lg-3","category-grid","product"],["role","button",1,"carousel-control-next"],["role","button",1,"carousel-control-prev",3,"click"],[1,"carousel-control-prev-icon","fa-3x",2,"margin-right","20px"],[1,"fa","fa-angle-left",2,"color","black"],[1,"category"],["id","container"],["height","100px",3,"src"],["height","100px","width","198px",3,"src"],[1,"category-text"],[1,"view-courses-button"],[3,"click"],[1,"btn","btn-altec"],["role","button",1,"carousel-control-next",3,"click"],[1,"carousel-control-next-icon","fa-3x",2,"margin-left","20px"],[1,"fa","fa-angle-right",2,"color","black"]],template:function(X,Z){1&X&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),a.\u0275\u0275conditionalCreate(4,d,3,0,"div",4),a.\u0275\u0275conditionalCreate(5,r,3,0,"div",4),a.\u0275\u0275elementEnd(),a.\u
10275\u0275conditionalCreate(6,q,5,2,"div",5),a.\u0275\u0275conditionalCreate(7,t,5,2,"div",5),a.\u0275\u0275elementEnd()()()),2&X&&(a.\u0275\u0275advance(4),a.\u0275\u0275conditional(Z.topRowTitle?4:-1),a.\u0275\u0275advance(),a.\u0275\u0275conditional(Z.bottomRowTitle?5:-1),a.\u0275\u0275advance(),a.\u0275\u0275conditional(Z.topRowTitle?6:-1),a.\u0275\u0275advance(),a.\u0275\u0275conditional(Z.bottomRowTitle?7:-1))},styles:['@import"https://fonts.googleapis.com/icon?family=Material+Icons";.content[_ngcontent-%COMP%]{padding-top:100px;padding-bottom:100px}.brand-image[_ngcontent-%COMP%]{height:100px;width:100%;display:flex;align-items:center}.category-title[_ngcontent-%COMP%]{padding-top:20px}.category-row[_ngcontent-%COMP%]{padding-top:100px;padding-left:50px}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.view-courses-button[_ngcontent-%COMP%]{display:flex;justify-content:left;align-items:center;padding:calc(var(--bs-gutter-x, 1.5rem) * .667);position:absolute;bottom:0}.top-card[_ngcontent-%COMP%]{margin-bottom:25px}.bottom-card[_ngcontent-%COMP%]{margin-bottom:100px}.category-grid[_ngcontent-%COMP%]{text-align:left;display:flex;justify-content:center}.category[_ngcontent-%COMP%]{border:solid 1px lightgray;min-height:280px;max-height:280px;max-width:200px}.imageColumn[_ngcontent-%COMP%]{width:100%;text-align:center;font:0/0 a}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:100px}.category-text[_ngcontent-%COMP%]{margin-top:calc(var(--bs-gutter-x, 1.5rem) * .667);padding-left:15px;padding-right:15px}.product[_ngcontent-%COMP%] .category-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;height:100px;text-align:center;font:0/0 a}#container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.carousel-control-next[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);width:5%;right:0;background:none;border:none;z-index:5}.carousel-control-prev[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);width:5%;left:0;background:none;border:none;z-index:5}.altec-item-carousel[_ngcontent-%COMP%]{position:relative;height:100%;width:100%}
1.altec-item-carousel[_ngcontent-%COMP%] .carousel-control-prev[_ngcontent-%COMP%]{position:absolute;z-index:2;top:0;height:100%;display:flex;align-items:center}.altec-item-carousel[_ngcontent-%COMP%] .carousel-control-prev.vertical[_ngcontent-%COMP%]{height:auto;width:100%;justify-content:center}.altec-item-carousel[_ngcontent-%COMP%] .carousel-control-next[_ngcontent-%COMP%]{position:absolute;z-index:2;top:0;right:0;height:100%;display:flex;align-items:center}.altec-item-carousel[_ngcontent-%COMP%] .carousel-control-next.vertical[_ngcontent-%COMP%]{top:94%;height:auto;width:100%;justify-content:center}.altec-item-carousel[_ngcontent-%COMP%] .carousel-control-icon[_ngcontent-%COMP%]{width:3rem;height:5rem;line-height:5rem;text-align:center;background-color:#333;display:inline-block;color:#fff;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.altec-item-carousel[_ngcontent-%COMP%] .carousel-control-icon[_ngcontent-%COMP%]:hover{cursor:pointer;opacity:1;box-shadow:0 0 .6rem #000000bf;-webkit-box-shadow:0 0 .6rem 0 rgba(0,0,0,.75);-moz-box-shadow:0 0 .6rem 0 rgba(0,0,0,.75)}.altec-item-carousel[_ngcontent-%COMP%] .carousel-control-icon.vertical[_ngcontent-%COMP%]{height:3rem;width:5rem;line-height:3rem}.altec-item-carousel[_ngcontent-%COMP%] .carousel-item[_ngcontent-%COMP%]{display:none}.altec-item-carousel[_ngcontent-%COMP%] .carousel-item.active[_ngcontent-%COMP%]{display:block}.altec-item-carousel[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.altec-item-carousel[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:.25rem;background-color:#fff;border:1px solid #eee}.altec-item-carousel[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{box-shadow:0 0 .2rem #000000bf;-webkit-box-shadow:0 0 .2rem 0 rgba(0,0,0,.75);-moz-box-shadow:0 0 .2rem 0 rgba(0,0,0,.75)}.carousel-container[_ngcontent-%COMP%]{width:1280px;margin:50px auto;min-height:200px;position:relative}@media screen and (max-width:767px){.carousel-container[_ngcontent-%COMP%]{width:80%}.category-grid[_ngcontent-%COMP%]{justify-content:center;width:100%}}@media screen and (max-width:1024px){.carousel-container[_ngcontent-%COMP%]{width:85%}}.carousel-container[_ngcontent-%COMP%] .carousel-inner[_ngcontent-%COMP%]{overflow:hidden}.carousel-container[_ngcontent-%COMP%] .track[_ngcontent-%COMP%]{display:inline-flex;transition:transform .5s}.carousel-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:259px;flex-shrink:0;height:250px;padding-right:var(--bs-gutter-x, 1.5rem);box-sizing:border-box}.carousel-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{width:100%;height:100%;border:1px solid #ccc;box-sizing:border-box;border-radius:10px;display:flex;flex-direction:column}.nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:50%;border:1px solid #aaa;position:absolute;top:50%;transform:translateY(-50%);cursor:pointer}.nav[_ngcontent-%COMP%] .prev[_ngcontent-%COMP%]{left:-30px;display:none}.nav[_ngcontent-%COMP%] .prev.show[_ngcontent-%COMP%]{display:block}.nav[_ngcontent-%COMP%] .next[_ngcontent-%COMP%]{right:-30px}.nav[_ngcontent-%COMP%] .next.hide[_ngcontent-%COMP%]{display:none}.card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}.card[_ngcontent-%COMP%] .img[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;font-size:30px}.card[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex-basis:40px;background:#333;color:#fff;flex-grow:0;padding:calc(var(--bs-gutter-x, 1.5rem) * .667);box-sizing:border-box}']})}}return S})()},52585(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CourseAlreadyAssignedModalComponent=void 0;const g=o(31635),c=(o(6324),g.__importStar(o(49849))),b=g.__importStar(o(6324));f.CourseAlreadyAssignedModalComponent=(()=>{class a{constructor(R){this.activeModal=R}ngOnInit(){}static{this.\u0275fac=function(m){return new(m||a)(c.\u0275\u0275directiveInject(b.NgbActiveModal))}}static{this.\u0275cmp=c.\u0275\u0275defineComponent({type:a,selectors:[["altec-connect-course-already-assigned-modal"]],standalone:!1,decls:12,vars:0,consts:[[1,"modal-header","d-block"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-altec","ms-2",3,"click"]],template:function(m,d){1&m&&(c.\u0275\u0275elementStart(0,"div",0)(1,"button",1),c.\u0275\u0275listener("click",function(){return d.activeModal.dismiss()}),c.\u0275\u0275elementStart(2,"span",2),c.\u0275\u0275text(3,"\xd7"),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(4,"h4")(5,"b"),c.\u0275\u0275text(6,"COURSE ALREADY ASSIGNED"),c.\u0275\u0275elementEnd()()(),c.\u0275\u0275elementStart(7,"div",3),c.\u0275\u0275text(8," This course is already assigned to you and can be found in My Courses.\n"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(9,"div",4)(10,"button",5),c.\u0275\u0275listener("click",function(){return d.activeModal.dismiss()}),c.\u0275\u0275text(11,"Close"),c.\u0275\u0275elementEnd()())},encapsulation:2})}}return a})()}
1,76049(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CourseAlreadyInCartModalComponent=void 0;const g=o(31635),c=(o(6324),g.__importStar(o(49849))),b=g.__importStar(o(6324));f.CourseAlreadyInCartModalComponent=(()=>{class a{constructor(R){this.activeModal=R}ngOnInit(){}static{this.\u0275fac=function(m){return new(m||a)(c.\u0275\u0275directiveInject(b.NgbActiveModal))}}static{this.\u0275cmp=c.\u0275\u0275defineComponent({type:a,selectors:[["altec-connect-course-already-in-cart-modal"]],standalone:!1,decls:12,vars:0,consts:[[1,"modal-header","d-block"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-altec","ms-2",3,"click"]],template:function(m,d){1&m&&(c.\u0275\u0275elementStart(0,"div",0)(1,"button",1),c.\u0275\u0275listener("click",function(){return d.activeModal.dismiss()}),c.\u0275\u0275elementStart(2,"span",2),c.\u0275\u0275text(3,"\xd7"),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(4,"h4")(5,"b"),c.\u0275\u0275text(6,"COURSE ALREADY IN CART"),c.\u0275\u0275elementEnd()()(),c.\u0275\u0275elementStart(7,"div",3),c.\u0275\u0275text(8," This course is already in your cart.\n"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(9,"div",4)(10,"button",5),c.\u0275\u0275listener("click",function(){return d.activeModal.dismiss()}),c.\u0275\u0275text(11,"Close"),c.\u0275\u0275elementEnd()())},encapsulation:2})}}return a})()},67929(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CourseAssignedInCheckoutModalComponent=void 0;const g=o(31635),b=(o(6324),o(7901),g.__importStar(o(49849))),k=g.__importStar(o(6324)),a=g.__importStar(o(7901));f.CourseAssignedInCheckoutModalComponent=(()=>{class R{constructor(d,r,_){this.activeModal=d,this.router=r,this.modalService=_}ngOnInit(){}goToCart(){this.router.navigate(["/pages/training-store/cart"]),this.activeModal.close(),this.modalService.dismissAll()}static{this.\u0275fac=function(r){return new(r||R)(b.\u0275\u0275directiveInject(k.NgbActiveModal),b.\u0275\u0275directiveInject(a.Router),b.\u0275\u0275directiveInject(k.NgbModal))}}static{this.\u0275cmp=b.\u0275\u0275defineComponent({type:R,selectors:[["altec-connect-course-assigned-in-checkout-modal"]],standalone:!1,decls:12,vars:0,consts:[[1,"modal-header","d-block"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-altec","ms-2",3,"click"]],template:function(r,_){1&r&&(b.\u0275\u0275elementStart(0,"div",0)(1,"button",1),b.\u0275\u0275listener("click",function(){return _.goToCart()}),b.\u0275\u0275elementStart(2,"span",2),b.\u0275\u0275text(3,"\xd7"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(4,"h4")(5,"b"),b.\u0275\u0275text(6,"COURSE ALREADY ASSIGNED"),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(7,"div",3),b.\u0275\u0275text(8," A course in your cart is already assigned to you and can be found in My Courses. Please remove course from cart before checking out.\n"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(9,"div",4)(10,"button",5),b.\u0275\u0275listener("click",function(){return _.goToCart()}),b.\u0275\u0275text(11,"Go to Cart"),b.\u0275\u0275elementEnd()())},encapsulation:2})}}return R})()},2725(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CourseCardComponent=void 0;const g=o(31635),v=o(49849),k=(o(79591),o(6324),o(52585)),a=o(76049),m=(o(97377),o(20851),g.__importStar(o(49849))),d=g.__importStar(o(20851)),r
1=g.__importStar(o(79591)),_=g.__importStar(o(6324)),A=g.__importStar(o(97377)),n=g.__importStar(o(60177));function s(nt,i){1&nt&&m.\u0275\u0275element(0,"img",5)}function et(nt,i){if(1&nt&&(m.\u0275\u0275elementStart(0,"span")(1,"strong"),m.\u0275\u0275text(2),m.\u0275\u0275pipe(3,"currency"),m.\u0275\u0275elementEnd()()),2&nt){const J=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(3,1,J.course.price))}}function j(nt,i){1&nt&&(m.\u0275\u0275elementStart(0,"strong"),m.\u0275\u0275text(1,"FREE"),m.\u0275\u0275elementEnd())}function G(nt,i){if(1&nt){const J=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"div",6)(1,"div")(2,"button",7),m.\u0275\u0275listener("click",function(){m.\u0275\u0275restoreView(J);const Q=m.\u0275\u0275nextContext();return m.\u0275\u0275resetView(Q.addToCart())}),m.\u0275\u0275text(3,"Add to Cart"),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(4,"div"),m.\u0275\u0275conditionalCreate(5,et,4,3,"span")(6,j,2,0,"strong"),m.\u0275\u0275elementEnd()()}if(2&nt){const J=m.\u0275\u0275nextContext();m.\u0275\u0275advance(5),m.\u0275\u0275conditional(J.course.price>0?5:6)}}f.CourseCardComponent=(()=>{class nt{constructor(J,q,Q,z){this.loader=J,this.googleService=q,this.modalService=Q,this.statefulService=z,this.openCourseModal=new v.EventEmitter,this.addToCartEvent=new v.EventEmitter,this.isB2CAccount=!1,this.isB2BAccount=!1,this.isGuest=!1}ngOnInit(){this.user=this.statefulService.profile,this.user&&(this.userStatus=this.user.userStatus,this.isGuest="GUEST"===this.userStatus,this.isB2BAccount=this.user.isValidatedB2BUser,this.isB2CAccount=!this.isGuest&&!this.isB2BAccount)}openCourseDetails(){this.openCourseModal.next(this.course)}addToCart(){if(this.coursesInCart.includes(this.course.objectID))this.modalService.open(a.CourseAlreadyInCartModalComponent);else if(this.courseSelected(this.course),!1===this.courseAssigned){let J={course:this.course,shoppingCartItem:{shoppingCartItemId:null,shoppingCartId:null,itemId:null,quantity:1}};this.addToCartEvent.next(J),this.isB2CAccount&&this.coursesInCart.push(J.course.objectID)}else this.modalService.open(k.CourseAlreadyAssignedModalComponent),this.loader.stop();this.googleService.enhancedCommerceAddToCart(this.course.inventoryItemId,this.course.title,this.course.price.toString(),1)}courseSelected(J){this.courseAssigned=!!this.coursesAssignedList.includes(J.LMSReferenceCode)}showCertificate(){return this.course.tags.findIndex(J=>"certificate"===J.toLocaleLowerCase())>=0}static{this.\u0275fac=function(q){return new(q||nt)(m.\u0275\u0275directiveInject(d.LoadingService),m.\u0275\u0275directiveInject(r.GoogleServicesService),m.\u0275\u0275directiveInject(_.NgbModal),m.\u0275\u0275directiveInject(A.StatefulService))}}static{this.\u0275cmp=m.\u0275\u0275defineComponent({type:nt,selectors:[["altecConnect-course-card"]],inputs:{course:"course",coursesAssignedList:"coursesAssignedList",coursesInCart:"coursesInCart"},outputs:{openCourseModal:"openCourseModal",addToCartEvent:"addToCartEvent"},standalone:!1,decls:10,vars:5,consts:[[1,"card"],["width","100%",1,"pointer",3,"click","src"],[1,"info"],[1,"pointer",3,"click"],[1,"course-link"],["title","Completion certificate provided","src","/static/angular-resources/training-store/award-solid.svg",1,"certificate","fa"],[1,"price"],[1,"btn","btn-altec",3,"click"]],template:function(q,Q){1&q&&(m.\u0275\u0275elementStart(0,"div",0)(1,"div")(2,"img",1),m.\u0275\u0275listener("click",function(){return Q.openCourseDetails()}),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(3,"div",2)(4,"span",3),m.\u0275\u0275listener("click",function(){return Q.openCourseDetails()}),m.\u0275\u0275elementStart(5,"a",4)(6,"strong"),m.\u0275\u0275text(7),m.\u0275\u0275elementEnd(),m.\u0275\u0275conditionalCreate(8,s,1,0,"img",5),m.\u0275\u0275elementEnd()()()(),m.\u0275\u0275conditionalCreate(9,G,7,1,"div",6),m.\u0275\u0275elementEnd()),2&q&&(m.\u0275\u0275advance(2),m.\u0275\u0275property("src",m.\u0275\u0275interpolate(Q.course.image),m.\u0275\u0275sanitizeUrl),m.\u0275\u0275advance(5),m.\u0275\u0275textInterpolate(Q.course.title),m.\u0275\u0275advance(),m.\u0275\u0275conditional(Q.showCertificate()?8:-1),m.\u0275\u0275advance(),m.\u0275\u0275conditional(0===Q.course.price||Q.course.price>0?9:-1))},dependencies:[n.CurrencyPipe],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.card[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;max-width:239px;min-width:239px;min-height:290px;max-height:370px;border:1px solid #E8E8E8}.card[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{padding:calc(var(--bs-gutter-x, 1.5rem) * .667)}.card[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .certificate[_ngcontent-%COMP%]{color:#000;max-height:25px}.card[_ngcontent-%COMP%] .course-link[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media(min-width:768px)and (max-width:991px){.card[_ngcontent-%COMP%]{max-width:215px;min-width:215px}}.price[_ngcontent-%COMP%]{display:flex;margin-bottom:calc(var(--bs-gutter-x, 1.5rem) * .667);justify-content:space-around;align-items:center;color:#407e00}@media(max-width:767px){.card[_ngcontent-%COMP%]{min-width:inherit;max-width:70%;width:95%}}"]})}}return nt})()},37517(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CourseDetailModalComponent=void 0;const g=o(31635),k=(o(6324),o(89692),o(71964),o(52585)),L=(o(35445),o(76049)),d=(o(97377),o(20851),g.__importStar(o(49849))),r=g.__importStar(o(6324)),_=g.__importStar(o(89692)),A=g.__importStar(o(71964)),n=g.__importStar(o(20851)),s=g.__importStar(o(35445)),et=g.__importStar(o(97377)),j=g.__importStar(o(84341)),G=g.__importStar(o(60177));function at(E,st){if(1&E&&(d.\u0275\u0275elementStart(0,"span")(1,"strong"),d.\u0275\u0275text(2),d.\u0275\u0275pipe(3,"currency"),d.\u0275\u0275elementEnd()()),2&E){const B=d.\u0275\u0275nextContext();d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind1(3,1,B.course.price))}}function nt(E,st){1&E&&(d.\u0275\u0275elementStart(0,"strong"),d.\u0275\u0275text(1,"FREE"),d.\u0275\u0275elementEnd())}function i(E,st){1&E&&d.\u0275\u0275element(0,"img",10)}function J(E,st){if(1&E){const B=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div")(1,"div",18),d.\u0275\u0275text(2," Number of seats:"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(3,"div",19)(4,"div",20),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(B);const x=d.\u0275\u0275nextContext(2);
1return d.\u0275\u0275resetView(x.adjustSeats(-1))}),d.\u0275\u0275element(5,"i",21),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"div")(7,"input",22),d.\u0275\u0275twoWayListener("ngModelChange",function(x){d.\u0275\u0275restoreView(B);const D=d.\u0275\u0275nextContext(2);return d.\u0275\u0275twoWayBindingSet(D.numberOfSeats,x)||(D.numberOfSeats=x),d.\u0275\u0275resetView(x)}),d.\u0275\u0275listener("change",function(){d.\u0275\u0275restoreView(B);const x=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(x.sanitizeNumber())}),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(8,"div",20),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(B);const x=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(x.adjustSeats(1))}),d.\u0275\u0275element(9,"i",23),d.\u0275\u0275elementEnd()()()}if(2&E){const B=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(7),d.\u0275\u0275twoWayProperty("ngModel",B.numberOfSeats)}}function q(E,st){if(1&E){const B=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div",12),d.\u0275\u0275conditionalCreate(1,J,10,1,"div"),d.\u0275\u0275elementStart(2,"div",16)(3,"div")(4,"button",17),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(B);const x=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(x.addToCart())}),d.\u0275\u0275text(5,"Add to Cart"),d.\u0275\u0275elementEnd()()()()}if(2&E){const B=d.\u0275\u0275nextContext();d.\u0275\u0275advance(),d.\u0275\u0275conditional(B.isB2CAccount?-1:1)}}function Q(E,st){1&E&&(d.\u0275\u0275elementStart(0,"div",15),d.\u0275\u0275text(1," Course Link Copied To Clipboard "),d.\u0275\u0275elementEnd())}f.CourseDetailModalComponent=(()=>{class E{constructor(B,it,x,D,F,t,ht){this.activeModal=B,this.clipboardService=it,this.trainingStoreOrderSearchService=x,this.loader=D,this.modalService=F,this.shoppingCartService=t,this.statefulService=ht,this.numberOfSeats=1,this.showCopyMessage=!1,this.isB2CAccount=!1,this.isB2BAccount=!1,this.isGuest=!1,this.coursesAssignedList=[],this.coursesInCart=[]}ngOnInit(){this.user=this.statefulService.profile,this.user&&(this.userStatus=this.user.userStatus,this.isGuest="GUEST"===this.userStatus,this.isB2BAccount=this.user.isValidatedB2BUser,this.isB2CAccount=!this.isGuest&&!this.isB2BAccount),this.coursesAssignedToUser(),this.checkCart()}showCertificate(){return this.course.tags.findIndex(B=>"certificate"===B.toLocaleLowerCase())>=0}sanitizeNumber(){this.numberOfSeats=Number(`${this.numberOfSeats}`.replace(/[^0-9]+/g,""))}adjustSeats(B){this.sanitizeNumber(),this.numberOfSeats=Number(this.numberOfSeats)+B,this.numberOfSeats<1&&(this.numberOfSeats=1),console.log(`Number of seats: ${this.numberOfSeats}`)}addToCart(){this.coursesInCart.includes(this.course.objectID)?this.modalService.open(L.CourseAlreadyInCartModalComponent):(this.coursesAssignedToUser(),this.courseSelected(this.course),!1===this.courseAssigned?(this.activeModal.close({course:this.course,shoppingCartItem:{shoppingCartItemId:null,shoppingCartId:null,itemId:this.course.objectID,quantity:this.numberOfSeats}}),this.isB2CAccount&&this.coursesInCart.push(this.course.objectID)):(this.modalService.open(k.CourseAlreadyAssignedModalComponent),this.loader.stop()))}coursesAssignedToUser(){this.loader.start(),this.isB2CAccount?this.trainingStoreOrderSearchService.getUserCourses(this.user.email).subscribe(B=>{for(let it of B)this.coursesAssignedList.push(it.code);this.loader.stop()}):this.loader.stop()}checkCart(){this.loader.start(),this.isB2CAccount&&(this.shoppingCartService.getShoppingCart("training-store").subscribe(B=>{for(let it of B.items)this.coursesInCart.push(it.itemId)}),this.loader.stop())}courseSelected(B){this.courseAssigned=!!this.coursesAssignedList.includes(B.LMSReferenceCode)}copyLink(){this.showCopyMessage=!0,this.clipboardService.copy(window.location.href),setTimeout(()=>{this.showCopyMessage=!1},7e3)}static{this.\u0275fac=function(it){return new(it||E)(d.\u0275\u0275directiveInject(r.NgbActiveModal),d.\u0275\u0275directiveInject(_.ClipboardService),d.\u0275\u0275directiveInject(A.TrainingStoreOrderSearchService),d.\u0275\u0275directiveInject(n.LoadingService),d.\u0275\u0275directiveInject(r.NgbModal),d.\u0275\u0275directiveInject(s.ShoppingCartService),d.\u0275\u0275directiveInject(et.StatefulService))}}static{this.\u0275cmp=d.\u0275\u0275defineComponent({type:E,selectors:[["altecConnect-course-detail-modal"]],standalone:!1,decls:27,vars:8,consts:[[1,"modal-header","d-block"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"course-detail"],[1,"left-col"],["width","100%",3,"src"],[1,"right-col"],[1,"price-cert"],[1,"price"],["t
1itle","Completion certificate provided","src","/static/angular-resources/training-store/award-solid.svg",1,"certificate","fa"],[1,"description"],[1,"seats-cart"],[1,"pointer",3,"click"],[1,"pointer","fa","fa-share"],[1,"text-success"],[1,"add-button"],[1,"btn","btn-altec",3,"click"],[1,"pb-2"],[1,"seats-container"],[1,"pointer","counter-button",3,"click"],[1,"fa","fa-lg","fa-minus"],["type","text","min","0","data-mask","0#",3,"ngModelChange","change","ngModel"],[1,"fa","fa-lg","fa-plus"]],template:function(it,x){1&it&&(d.\u0275\u0275elementStart(0,"div",0)(1,"button",1),d.\u0275\u0275listener("click",function(){return x.activeModal.dismiss()}),d.\u0275\u0275elementStart(2,"span",2),d.\u0275\u0275text(3,"\xd7"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(4,"h4")(5,"b"),d.\u0275\u0275text(6),d.\u0275\u0275elementEnd()()(),d.\u0275\u0275elementStart(7,"div",3)(8,"div",4)(9,"div",5),d.\u0275\u0275element(10,"img",6),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(11,"div",7)(12,"div",8)(13,"div",9),d.\u0275\u0275conditionalCreate(14,at,4,3,"span")(15,nt,2,0,"strong"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(16,"div"),d.\u0275\u0275conditionalCreate(17,i,1,0,"img",10),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(18,"div",11),d.\u0275\u0275text(19),d.\u0275\u0275elementEnd(),d.\u0275\u0275conditionalCreate(20,q,6,1,"div",12),d.\u0275\u0275elementStart(21,"div")(22,"span",13),d.\u0275\u0275listener("click",function(){return x.copyLink()}),d.\u0275\u0275element(23,"i",14),d.\u0275\u0275elementStart(24,"strong"),d.\u0275\u0275text(25,"\xa0Share"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275conditionalCreate(26,Q,2,0,"div",15),d.\u0275\u0275elementEnd()()()()),2&it&&(d.\u0275\u0275advance(6),d.\u0275\u0275textInterpolate(x.course.title),d.\u0275\u0275advance(4),d.\u0275\u0275property("src",d.\u0275\u0275interpolate(x.course.image),d.\u0275\u0275sanitizeUrl),d.\u0275\u0275advance(4),d.\u0275\u0275conditional(x.course.price>0?14:15),d.\u0275\u0275advance(3),d.\u0275\u0275conditional(x.showCertificate()?17:-1),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate1(" ",x.course.description," "),d.\u0275\u0275advance(),d.\u0275\u0275conditional(0===x.course.price||x.course.price>0?20:-1),d.\u0275\u0275advance(6),d.\u0275\u0275conditional(x.showCopyMessage?26:-1))},dependencies:[j.DefaultValueAccessor,j.NgControlStatus,j.NgModel,G.CurrencyPipe],styles:[".course-detail[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly}.course-detail[_ngcontent-%COMP%] .left-col[_ngcontent-%COMP%], .course-detail[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{width:45%}.price-cert[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:16px;align-items:baseline}.price-cert[_ngcontent-%COMP%] .certificate[_ngcontent-%COMP%]{max-height:25px;position:absolute;top:27px}.description[_ngcontent-%COMP%]{padding-bottom:16px}.seats-cart[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;padding-bottom:16px}.seats-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;min-width:80px;border:solid 1px lightgray;min-height:36px}.seats-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{all:unset;min-width:24px;max-width:40px;text-align:center}.seats-container[_ngcontent-%COMP%] .counter-button[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.price[_ngcontent-%COMP%]{font-size:32px;color:#407e00}@media(max-width:500px){.course-detail[_ngcontent-%COMP%]{flex-direction:column;justify-content:space-evenly}.course-detail[_ngcontent-%COMP%] .left-col[_ngcontent-%COMP%]{width:100%;padding-bottom:16px}.course-detail[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{width:100%}}"]})}}return E})()},95677(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.FreeCourseModalComponent=void 0;const g=o(31635),k=(o(49849),o(6324),o(35445),o(43410)),L=(o(64688),o(98979)),R=o(83352),m=o(59091),d=o(43481),n=(o(54752),o(7932),o(83352),o(86599)),i=(o(88892),o(71964),o(71026),o(7901),o(97377),o(20851),g.__importStar(o(49849))),J=g.__importStar(o(6324)),q=g.__importStar(o(64688)),Q=g.__importStar(o(83352)),z=g.__importStar(o(71964)),E=g.__importStar(o(54752)),st=g.__importStar(o(71026)),B=g.__importStar(o(7932)),it=g.__importStar(o(88892)),x=g.__importStar(o(35445)),D=g.__importStar(o(20851)),F=g.__importStar(o(7901)),t=g.__importStar(o(97377
1)),ht=g.__importStar(o(84341)),S=g.__importStar(o(72293));function ot(K,pt){if(1&K){const y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",17),i.\u0275\u0275listener("click",function(u){i.\u0275\u0275restoreView(y);const V=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(V.stopPropagation(u))}),i.\u0275\u0275elementStart(1,"div",18),i.\u0275\u0275listener("click",function(){const u=i.\u0275\u0275restoreView(y).$implicit,V=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(V.selectUnit(u))}),i.\u0275\u0275elementStart(2,"div",19)(3,"div",20)(4,"strong",21),i.\u0275\u0275text(5,"Customer Vehicle Number: "),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(6),i.\u0275\u0275element(7,"br"),i.\u0275\u0275elementStart(8,"strong",21),i.\u0275\u0275text(9,"Unit Serial: "),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(10),i.\u0275\u0275element(11,"br"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",20)(13,"strong",21),i.\u0275\u0275text(14,"F/A Serial #: "),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(15),i.\u0275\u0275element(16,"br"),i.\u0275\u0275elementStart(17,"strong",21),i.\u0275\u0275text(18,"Chassis VIN: "),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(19),i.\u0275\u0275elementEnd()()()()}if(2&K){const y=pt.$implicit,W=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("hidden",W.loadingEquipmentSearch||0===W.equipmentResults.length),i.\u0275\u0275advance(6),i.\u0275\u0275textInterpolate1(" ",y.customerVehicleNumber?y.customerVehicleNumber:"None"),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(" ",y.unitSerial),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1(" ",y.faSerial),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(" ",y.chassisVin," ")}}function O(K,pt){if(1&K){const y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"altcon-autocomplete-dropdown",14),i.\u0275\u0275listener("searchChange",function(u){i.\u0275\u0275restoreView(y);const V=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(V.searchEquipment(u))})("bottomButtonPressed",function(){i.\u0275\u0275restoreView(y);const u=i.\u0275\u0275nextContext();return u.searchingEquipment=!1,u.equipmentResults.length=0,i.\u0275\u0275resetView(u.equipmentBottomButtonActive=!1)}),i.\u0275\u0275elementStart(1,"div",15),i.\u0275\u0275repeaterCreate(2,ot,20,5,"div",16,i.\u0275\u0275repeaterTrackByIdentity),i.\u0275\u0275elementEnd()()}if(2&K){const y=i.\u0275\u0275nextContext();i.\u0275\u0275property("placeholder","Search Units")("selectMessage","Select a Unit...")("searchTip","Search by Model, Serial, VIN or Customer Vehicle Number")("resultsLength",y.equipmentResults.length)("loading",y.loadingEquipmentSearch)("autoCompleteOn",!1),i.\u0275\u0275advance(2),i.\u0275\u0275repeater(y.equipmentResults)}}function X(K,pt){if(1&K){const y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",8)(1,"div")(2,"strong",21),i.\u0275\u0275text(3,"Customer Vehicle Number: "),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(4),i.\u0275\u0275element(5,"br"),i.\u0275\u0275elementStart(6,"strong",21),i.\u0275\u0275text(7,"Unit Serial: "),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(8),i.\u0275\u0275element(9,"br"),i.\u0275\u0275elementStart(10,"strong",21),i.\u0275\u0275text(11,"F/A Serial #: "),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(12),i.\u0275\u0275element(13,"br"),i.\u0275\u0275elementStart(14,"strong",21),i.\u0275\u0275text(15,"Chassis VIN: "),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(16),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(17,"div")(18,"i",22),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(y);const u=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(u.unselectUnit())}),i.\u0275\u0275elementEnd()()()}if(2&K){const y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(" ",y.selectedUnit.customerVehicleNumber?y.selectedUnit.customerVehicleNumber:"None"),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(" ",y.selectedUnit.unitSerial),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(" ",y.selectedUnit.faSerial),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(" ",y.selectedUnit.chassisVin," ")}}function Z(K,pt){1&K&&(i.\u0275\u0275elementStart(0,"small",27),i.\u0275\u0275element(1,"i",30),i.\u0275\u0275elementEnd())}function _t(K,pt){if(1&K&&(i.\u0275\u0275elementStart(0,"small",28),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&K){const y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(),i.\u0275\u0275textInterpolate(y.codeErrorStr)}}function bt(K,pt){1&K&&(i.\u0275\u0275elementStart(0,"small",29),i.\u0275\u0275text(1,"Verification Code accepted"),i.\u0275\u0275elementEnd())}function St(K,pt){1&K&&(i.\u0275\u0275elementStart(0,"div",31),i.\u0275\u0275element(1,"i",32),i.\u0275\u0275elementEnd())}function Y(K,pt){1&K&&(i.\u0275\u0275elementStart(0,"strong"),i.\u0275\u0275text(1,"FREE"),i.\u0275\u0275elementEnd())}function mt(K,pt){1&K&&i.\u0275\u0275element(0,"img",39)}function w(K,pt){if(1&K){const y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div")(1,"h6"),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",33)(4,"div",34),i.\u0275\u0275element(5,"img",35),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",36)(7,"div",37)(8,"div",38),i.\u0275\u0275template(9,Y,2,0,"ng-template",null,0,i.\u0275\u0275templateRefExtractor),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div"),i.\u0275\u0275conditionalCreate(12,mt,1,0,"img",39),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(13,"div",40),i.\u0275\u0275text(14),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(15,"div",41)(16,"div")(17,"div",42),i.\u0275\u0275text(18," Number of seats:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",43)(20,"div",44),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(y);const u=i.\u0275\u0275nextContext(3);
1return i.\u0275\u0275resetView(u.adjustSeats(-1))}),i.\u0275\u0275element(21,"i",45),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"div")(23,"input",46),i.\u0275\u0275twoWayListener("ngModelChange",function(u){i.\u0275\u0275restoreView(y);const V=i.\u0275\u0275nextContext(3);return i.\u0275\u0275twoWayBindingSet(V.numberOfSeats,u)||(V.numberOfSeats=u),i.\u0275\u0275resetView(u)}),i.\u0275\u0275listener("change",function(){i.\u0275\u0275restoreView(y);const u=i.\u0275\u0275nextContext(3);return i.\u0275\u0275resetView(u.sanitizeNumber())}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(24,"div",44),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(y);const u=i.\u0275\u0275nextContext(3);return i.\u0275\u0275resetView(u.adjustSeats(1))}),i.\u0275\u0275element(25,"i",47),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(26,"div",27),i.\u0275\u0275text(27," Free Seats Remaining: "),i.\u0275\u0275elementStart(28,"b"),i.\u0275\u0275text(29),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(30,"div",48)(31,"label")(32,"input",49),i.\u0275\u0275twoWayListener("ngModelChange",function(u){i.\u0275\u0275restoreView(y);const V=i.\u0275\u0275nextContext(3);return i.\u0275\u0275twoWayBindingSet(V.orderReady,u)||(V.orderReady=u),i.\u0275\u0275resetView(u)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(33),i.\u0275\u0275element(34,"br"),i.\u0275\u0275elementStart(35,"small"),i.\u0275\u0275text(36,"*Does not affect your current cart."),i.\u0275\u0275elementEnd()()()()}if(2&K){const y=i.\u0275\u0275nextContext(3);i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(y.course.title),i.\u0275\u0275advance(3),i.\u0275\u0275property("src",i.\u0275\u0275interpolate(y.course.image),i.\u0275\u0275sanitizeUrl),i.\u0275\u0275advance(7),i.\u0275\u0275conditional(y.showCertificate()?12:-1),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",y.course.description," "),i.\u0275\u0275advance(9),i.\u0275\u0275twoWayProperty("ngModel",y.numberOfSeats),i.\u0275\u0275advance(),i.\u0275\u0275classProp("disabled",y.numberOfSeats==y.seatsAllowed),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(y.freeSeatsLeft),i.\u0275\u0275advance(3),i.\u0275\u0275twoWayProperty("ngModel",y.orderReady),i.\u0275\u0275advance(),i.\u0275\u0275textInterpolate1(" I confirm that I would like to use course credits for ",y.course.title," and place an order for it now. ")}}function tt(K,pt){if(1&K&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275conditionalCreate(1,St,2,0,"div",31),i.\u0275\u0275conditionalCreate(2,w,37,11,"div"),i.\u0275\u0275elementEnd()),2&K){const y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(),i.\u0275\u0275conditional(y.courseLoading?1:-1),i.\u0275\u0275advance(),i.\u0275\u0275conditional(y.courseLoading?-1:2)}}function rt(K,pt){if(1&K){const y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div")(1,"h6"),i.\u0275\u0275text(2," Verification Code "),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",23)(4,"div",24)(5,"input",25),i.\u0275\u0275twoWayListener("ngModelChange",function(u){i.\u0275\u0275restoreView(y);const V=i.\u0275\u0275nextContext();return i.\u0275\u0275twoWayBindingSet(V.code,u)||(V.code=u),i.\u0275\u0275resetView(u)}),i.\u0275\u0275listener("keydown.enter",function(){i.\u0275\u0275restoreView(y);const u=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(u.checkVerificationCode())}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"button",26),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(y);const u=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(u.checkVerificationCode())}),i.\u0275\u0275text(7,"Submit"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275conditionalCreate(8,Z,2,0,"small",27),i.\u0275\u0275conditionalCreate(9,_t,2,1,"small",28),i.\u0275\u0275conditionalCreate(10,bt,2,0,"small",29),i.\u0275\u0275elementEnd(),i.\u0275\u0275conditionalCreate(11,tt,3,2,"div"),i.\u0275\u0275elementEnd()}if(2&K){const y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(5),i.\u0275\u0275twoWayProperty("ngModel",y.code),i.\u0275\u0275advance(3),i.\u0275\u0275conditional(y.loading?8:-1),i.\u0275\u0275advance(),i.\u0275\u0275conditional(y.codeError?9:-1),i.\u0275\u0275advance(),i.\u0275\u0275conditional(y.goodCode?10:-1),i.\u0275\u0275advance(),i.\u0275\u0275conditional(y.goodCode?11:-1)}}function ct(K,pt){1&K&&(i.\u0275\u0275elementStart(0,"div")(1,"div",50),i.\u0275\u0275text(2," The selected unit has no free seats available. "),i.\u0275\u0275elementEnd()())}f.FreeCourseModalComponent=(()=>
1{class K{constructor(y,W,u,V,p,P,M,N,lt,gt,U,Ct,ft){this.activeModal=y,this.fleetService=W,this.cdRef=u,this.trainingStoreService=V,this.trainingStoreOrderSearchService=p,this.trainingStoreCourseCodeService=P,this.checkoutStore=M,this.freeSeatsCheckService=N,this.myAccountService=lt,this.shoppingCartService=gt,this.loader=U,this.router=Ct,this.statefulService=ft,this.equipmentSearchSubject=new m.Subject,this.pageSize=10,this.equipmentResults=[],this.code="",this.orderReady=!1,this.codeError=!1,this.codeErrorStr="",this.goodCode=!1,this.courseLoading=!1,this.equipmentDropdownState=L.EquipmentDropdownState.NEUTRAL,this.unsubscribe$=new m.Subject,this.numberOfSeats=1,this.freeSeats=0,this.seatsAllowed=5,this.freeSeatsLeft=5}ngOnInit(){this.searchEquipmentSubscription(),this.myAccountService.getAddresses().pipe((0,d.take)(1),(0,d.switchMap)(y=>{let W=!1,u=!1;for(let V of y.addresses)V.isShippingEnabled&&!W&&(this.address=V,W=!0),V.isBillingEnabled&&!u&&(this.billingAddress=V,u=!0);return this.myAccountService.getDefaultsAndFavorites()}),(0,m.catchError)(()=>(this.loader.stop(),this.loading=!1,console.log("Unable to get defaults and favorites"),(0,m.of)(null)))).subscribe(y=>{y&&(this.defaultsAndFavorites=y,this.profileValues={globalProfile:this.statefulService.profile,defaultShippingAddress:this.defaultsAndFavorites.defaultShippingAddress?this.defaultsAndFavorites.defaultShippingAddress:this.address,defaultBillingAddress:this.defaultsAndFavorites.defaultBillingAddress?this.defaultsAndFavorites.defaultBillingAddress:this.billingAddress}),this.loader.stop(),this.loading=!1})}searchEquipmentSubscription(){this.equipmentSearchSubject.pipe((0,d.debounceTime)(R.GlobalConstants.ALTEC_STANDARD_DEBOUNCE_LARGE),(0,d.takeUntil)(this.unsubscribe$),(0,d.switchMap)(y=>{const W=new k.RequestData(9);return W.content.query=y,W.content.setAnalytics=!0,y?this.fleetService.searchEquipment(W).pipe((0,d.take)(1)):(0,m.of)(new L.EquipmentSearchResponse)})).subscribe(y=>{y&&y.content&&y.content.length>0?(this.equipmentResults=y.content,this.equipmentBottomButtonActive=!0):(this.equipmentResults=[],this.equipmentBottomButtonActive=!1),this.loadingEquipmentSearch=!1,this.cdRef.detectChanges()})}searchEquipment(y){this.loadingEquipmentSearch=!0,this.equipmentSearchSubject.next(y)}selectUnit(y){this.freeSeatsCheckService.checkFreeSeats(y.instanceId.toString()).subscribe(W=>{let u=0;this.shoppingCartService.trainingStoreCart.items.forEach(V=>{V.unitId==y.instanceId.toString()&&(u+=V.freeSeats)}),this.seatsAllowed=this.seatsAllowed-W.seatsUsed-u,this.selectedUnit=y})}unselectUnit(){this.selectedUnit=null,this.seatsAllowed=5,this.code="",this.goodCode=!1,this.codeError=!1,this.course=null,this.orderReady=!1}checkVerificationCode(){this.codeError=!1,this.goodCode=!1,this.codeErrorStr="",this.loading=!0,this.trainingStoreCourseCodeService.checkVerificationCode(this.code.toLowerCase()).subscribe(y=>{this.loading=!1,"invalidCode"===y.courseCode?(this.codeError=!0,this.codeErrorStr="Verification Code Invalid"):"codeUsed"===y.courseCode?(this.codeError=!0,this.codeErrorStr="You have reached the maximum number of redeemable seats."):(this.goodCode=!0,this.courseLoading=!0,this.numberOfSeats>this.seatsAllowed?(this.freeSeatsLeft=0,this.freeSeats=this.numberOfSeats-this.seatsAllowed):(this.freeSeatsLeft=this.seatsAllowed-this.numberOfSeats,this.freeSeats=this.numberOfSeats),this.trainingStoreService.getCourses(0,y.name,[],[],[],[]).then(W=>{this.courseLoading=!1,this.course=W.hits.filter(u=>u.title===y.name)[0]}))})}showCertificate(){return this.course.tags.findIndex(y=>"certificate"===y.toLocaleLowerCase())>=0}sanitizeNumber(){this.numberOfSeats=Number(`${this.numberOfSeats}`.replace(/[^0-9]+/g,"")),this.numberOfSeats>this.seatsAllowed?this.numberOfSeats=this.seatsAllowed:this.numberOfSeats<1&&(this.numberOfSeats=1),this.freeSeatsLeft=this.seatsAllowed-this.numberOfSeats,this.freeSeats=this.numberOfSeats}adjustSeats(y){this.sanitizeNumber(),(this.numberOfSeats!=this.seatsAllowed||y<0)&&(this.numberOfSeats=Number(this.numberOfSeats)+y,this.numberOfSeats<1&&(this.numberOfSeats=1),this.numberOfSeats>this.seatsAllowed?(this.freeSeatsLeft=0,this.freeSeats=this.numberOfSeats-this.seatsAllowed):(this.freeSeatsLeft=this.seatsAllowed-this.numberOfSeats,this.freeSeats=this.numberOfSeats))}placeOrder(){let y={shoppingCartId:null,userId:this.statefulService.profile.contactId.toString(),application:"training-store",items:[{shoppingCartItemId:0,shoppingCartId:0,itemId:this.course.objectID,quantity:this.numberOfSeats,freeSeats:this.freeSeats,price:0,calculatedPrice:0,discount:this.freeSeats*this.course.price,unitId:this.selectedUnit.instanceId.toString()}]},W=y.items[0];this.selectedPayment=new n.PurchaseOrder,this.selectedPayment.billingAddress.addressId=this.profileValues.defaultBillingAddress.addressId||this.profileValues.defaultBillingAddress.ebsAddressId,this.selectedPayment.billingAddress.address1=this.profileValues.defaultBillingAddress.address1,this.selectedPayment.billingAddress.address2=this.profileValues.defaultBillingAddress.address2,this.selectedPayment.billingAddress.city=this.profileValues.defaultBillingAddress.city,this.selectedPayment.billingAddress.state=this.profileValues.defaultBillingAddress.state,this.selectedPayment.billingAddress.postalCode=this.profileValues.defaultBillingAddress.postalCode,this.selectedPayment.billingAddress.country=this.profileValues.defaultBillingAddress.country,this.selectedPayment.billingAddress.county=this.profileValues.defaultBillingAddress.county,this.selectedPayment.poNumber="COURSECODE:"+this.code+",UNIT:"+this.selectedUnit.unitSeri
1al,this.paymentObject={paymentMethod:this.selectedPayment};const u=Object.assign(y,this.profileValues,this.paymentObject);this.payload={cart:u},this.loader.start(),this.shoppingCartService.createQuote(this.payload).subscribe(V=>{V.data.createQuote&&(this.payload={ebsQuote:V.data.createQuote},this.shoppingCartService.submitQuote(this.payload).subscribe(P=>{let M=[];for(let N of P.data.submitQuote.commerceItems)M.push({externalCourseId:N.productId,quantity:N.quantity,freeSeats:W?.freeSeats?W.freeSeats:0});this.shoppingCartService.createCourseOrder(P.data.submitQuote.ebsOrderNumber,P.data.submitQuote.profile.accountId,M).subscribe(N=>{for(let gt of N.data.createCourseOrder.courses)this.statefulService.profile.isValidatedB2BUser||this.trainingStoreOrderSearchService.assignSeat(P.data.submitQuote.ebsOrderNumber,{courseId:gt.courseId,firstName:P.data.submitQuote.profile.firstName,lastName:P.data.submitQuote.profile.lastName,email:P.data.submitQuote.profile.email}).subscribe();let lt={list:[]};lt.list.push({unitId:W.unitId,seatsUsed:W.freeSeats}),this.freeSeatsCheckService.createOrUpdate(lt).subscribe(),this.checkoutStore.setOrder(P.data.submitQuote),this.loader.stop(),this.router.navigate(["/pages/training-store/checkout-confirmation"]),this.activeModal.close()})}))})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(W){return new(W||K)(i.\u0275\u0275directiveInject(J.NgbActiveModal),i.\u0275\u0275directiveInject(q.FleetGroupsService),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(Q.TrainingStoreService),i.\u0275\u0275directiveInject(z.TrainingStoreOrderSearchService),i.\u0275\u0275directiveInject(E.TrainingStoreCourseCodeService),i.\u0275\u0275directiveInject(st.CheckoutStore),i.\u0275\u0275directiveInject(B.FreeSeatsCheckService),i.\u0275\u0275directiveInject(it.MyAccountService),i.\u0275\u0275directiveInject(x.ShoppingCartService),i.\u0275\u0275directiveInject(D.LoadingService),i.\u0275\u0275directiveInject(F.Router),i.\u0275\u0275directiveInject(t.StatefulService))}}static{this.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["altecConnect-free-course-modal"]],standalone:!1,decls:21,vars:6,consts:[["free",""],[1,"modal-header","d-block"],[1,"header-content"],[1,"header-buttons"],[1,"fa","fa-lg","fa-times","pointer",3,"click"],[1,"modal-body"],[1,"body-content"],[3,"placeholder","selectMessage","searchTip","resultsLength","loading","autoCompleteOn"],[1,"selected-unit"],[1,"modal-footer"],["id","cancel"],[1,"btn","btn-light",3,"click"],["id","cart"],[1,"btn","btn-altec",3,"click"],[3,"searchChange","bottomButtonPressed","placeholder","selectMessage","searchTip","resultsLength","loading","autoCompleteOn"],[1,"fleet-table"],[1,"fleet-row",3,"hidden"],[1,"fleet-row",3,"click","hidden"],[1,"col-12",3,"click"],[1,"row",2,"display","flex","align-items","center"],[1,"col-6"],[1,"equipment-font"],[1,"fa","fa-times-circle",3,"click"],[1,"mb-3","mb-5"],[1,"input-group"],["type","text",1,"form-control",3,"ngModelChange","keydown.enter","ngModel"],["type","button",1,"btn","btn-altec",3,"click"],[1,"form-text"],[1,"form-text","has-error"],[1,"form-text","valid"],["aria-hidden","true",1,"fa","fa-spinner","fa-spin"],[1,"text-center"],["aria-hidden","true",1,"fa","fa-spinner","fa-3x","fa-spin"],[1,"course-detail"],[1,"left-col"],["width","100%",3,"src"],[1,"right-col"],[1,"price-cert"],[1,"price"],["title","Completion certificate provided","src","/static/angular-resources/training-store/award-solid.svg",1,"certificate","fa"],[1,"description"],[1,"seats-cart"],[1,"pb-2"],[1,"seats-container"],[1,"pointer","counter-button",3,"click"],[1,"fa","fa-lg","fa-minus"],["type","text","min","0","data-mask","0#",3,"ngModelChange","change","ngModel"],[1,"fa","fa-lg","fa-plus"],[1,"checkbox"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"has-error"]],template:function(W,u){1&W&&(i.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div"),i.\u0275\u0275text(3," Course Credit Lookup "),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3)(5,"i",4),i.\u0275\u0275listener("click",function(){return u.activeModal.close()}),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"h6"),i.\u0275\u0275text(9," Please search for the unit that has an available course credit "),i.\u0275\u0275elementEnd(),i.\u0275\u0275conditionalCreate(10,O,4,6,"altcon-autocomplete-dropdown",7),i.\u0275\u0275conditionalCreate(11,X,19,4,"div",8),i.\u0275\u0275conditionalCreate(12,rt,12,5,"div"),i.\u0275\u0275conditionalCreate(13,ct,3,0,"div"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(14,"div",9)(15,"div",10)(16,"a",11),i.\u0275\u0275listener("click",function(){return u.activeModal.close()}),i.\u0275\u0275text(17," Cancel "),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(18,"div",12)(19,"a",13),i.\u0275\u0275listener("click",function(){return u.placeOrder()}),i.\u0275\u0275text(20," Place Order "),i.\u0275\u0275elementEnd()()()),2&W&&(i.\u0275\u0275advance(10),i.\u0275\u0275conditional(null==u.selectedUnit?10:-1),i.\u0275\u0275advance(),i.\u0275\u0275conditional(null!=u.selectedUnit?11:-1),i.\u0275\u0275advance(),i.\u0275\u0275conditional(null!=u.selectedUnit&&u.seatsAllowed>0?12:-1),i.\u0275\u0275advance(),i.\u0275\u0275conditional(null!=u.selectedUnit&&0==u.seatsAllowed?13:-1),i.\u0275\u0275advance(6),i.\u0275\u0275classProp("disabled",!u.orderReady))},dependencies:[ht.DefaultValueAccessor,ht.CheckboxControlValueAccessor,ht.NgControlStatus,ht.NgModel,S.AutocompleteDropdownComponent],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.header-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:140px;align-items:center}.body-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}.body-content[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.body-content[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.body-content[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.body-content[_ngcontent-%COMP%] .col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.body-content[_ngcontent-%COMP%] .col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.body-content[_ngcontent-%COMP%] .col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.body-content[_ngcontent-%COMP%] .justify-content-center[_ngcontent-%COMP%]{justify-content:center}.body-content[_ngcontent-%COMP%] .justify-content-end[_ngcontent-%COMP%]{justify-content:end}.body-content[_ngcontent-%COMP%] .align-items-center[_ngcontent-%COMP%]{align-items:center}.body-content[_ngcontent-%COMP%] .align-items-end[_ngcontent-%COMP%]{align-items:end}.body-content[_ngcontent-%COMP%] .flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.body-content[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.body-content[_ngcontent-%COMP%] .d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.body-content[_ngcontent-%COMP%] .d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.body-content[_ngcontent-%COMP%] .d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.body-content[_ngcontent-%COMP%] .d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.body-content[_ngcontent-%COMP%] .d-lg-block[_ngcontent-%COMP%]{display:block!important}}.body-content[_ngcontent-%COMP%] .w-100[_ngcontent-%COMP%]{width:100%!important}.body-content[_ngcontent-%COMP%] .h-100[_ngcontent-%COMP%]{height:100%!important}.body-content[_ngcontent-%COMP%] .px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.body-content[_ngcontent-%COMP%] .pr-0[_ngcontent-%COMP%]{padding-right:0!important}.body-content[_ngcontent-%COMP%] .pl-0[_ngcontent-%COMP%]{padding-left:0!important}.body-content[_ngcontent-%COMP%] .pt-3[_ngcontent-%COMP%]{padding-top:1rem}.body-content[_ngcontent-%COMP%] .pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.body-content[_ngcontent-%COMP%] .mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.body-content[_ngcontent-%COMP%] .pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.body-content[_ngcontent-%COMP%] .no-print[_ngcontent-%COMP%]{display:none!important}}.body-content[_ngcontent-%COMP%] .m-0[_ngcontent-%COMP%]{margin:0!important}.body-content[_ngcontent-%COMP%] .mt-0[_ngcontent-%COMP%]{margin-top:0!important}.body-content[_ngcontent-%COMP%] .mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.body-content[_ngcontent-%COMP%] .ms-0[_ngcontent-%COMP%]{margin-left:0!important}.body-content[_ngcontent-%COMP%] .me-0[_ngcontent-%COMP%]{margin-right:0!important}.body-content[_ngcontent-%COMP%] .mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.body-content[_ngcontent-%COMP%] .my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.body-content[_ngcontent-%COMP%] .p-0[_ngcontent-%COMP%]{padding:0!important}.body-content[_ngcontent-%COMP%] .pt-0[_ngcontent-%COMP%]{padding-top:0!important}.body-content[_ngcontent-%COMP%] .pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.body-content[_ngcontent-%COMP%] .ps-0[_ngcontent-%COMP%]{padding-left:0!important}.body-content[_ngcontent-%COMP%] .pe-0[_ngcontent-%COMP%]{padding-right:0!important}.body-content[_ngcontent-%COMP%] .px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.body-content[_ngcontent-%COMP%] .py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.body-content[_ngcontent-%COMP%] .m-1[_ngcontent-%COMP%]{margin:.25rem!important}.body-content[_ngcontent-%COMP%] .mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.body-content[_ngcontent-%COMP%] .mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.body-content[_ngcontent-%COMP%] .ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.body-content[_ngcontent-%COMP%] .me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.body-content[_ngcontent-%COMP%] .mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.body-content[_ngcontent-%COMP%] .my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.body-content[_ngcontent-%COMP%] .p-1[_ngcontent-%COMP%]{padding:.25rem!important}.body-content[_ngcontent-%COMP%] .pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.body-content[_ngcontent-%COMP%] .pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.body-content[_ngcontent-%COMP%] .ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.body-content[_ngcontent-%COMP%] .pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.body-content[_ngcontent-%COMP%] .px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.body-content[_ngcontent-%COMP%] .py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.body-content[_ngcontent-%COMP%] .m-2[_ngcontent-%COMP%]{margin:.5rem!important}.body-content[_ngcontent-%COMP%] .mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.body-content[_ngcontent-%COMP%] .mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.body-content[_ngcontent-%COMP%] .ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.body-content[_ngcontent-%COMP%] .me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.body-content[_ngcontent-%COMP%] .mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.body-content[_ngcontent-%COMP%] .my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.body-content[_ngcontent-%COMP%] .p-2[_ngcontent-%COMP%]{padding:.5rem!important}.body-content[_ngcontent-%COMP%] .pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.body-content[_ngcontent-%COMP%] .pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.body-content[_ngcontent-%COMP%] .ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.body-content[_ngcontent-%COMP%] .pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.body-content[_ngcontent-%COMP%] .px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.body-content[_ngcontent-%COMP%] .py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.body-content[_ngcontent-%COMP%] .m-3[_ngcontent-%COMP%]{margin:1rem!important}.body-content[_ngcontent-%COMP%] .mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.body-content[_ngcontent-%COMP%] .mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.body-content[_ngcontent-%COMP%] .ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.body-content[_ngcontent-%COMP%] .me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.body-content[_ngcontent-%COMP%] .mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.body-content[_ngcontent-%COMP%] .my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.body-content[_ngcontent-%COMP%] .p-3[_ngcontent-%COMP%]{padding:1rem!important}.body-content[_ngcontent-%COMP%] .pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.body-content[_ngcontent-%COMP%] .pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.body-content[_ngcontent-%COMP%] .ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.body-content[_ngcontent-%COMP%] .pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.body-content[_ngcontent-%COMP%] .px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.body-content[_ngcontent-%COMP%] .py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.body-content[_ngcontent-%COMP%] .m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.body-content[_ngcontent-%COMP%] .mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.body-content[_ngcontent-%COMP%] .mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.body-content[_ngcontent-%COMP%] .ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.body-content[_ngcontent-%COMP%] .me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.body-content[_ngcontent-%COMP%] .mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.body-content[_ngcontent-%COMP%] .my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.body-content[_ngcontent-%COMP%] .p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.body-content[_ngcontent-%COMP%] .pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.body-content[_ngcontent-%COMP%] .pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.body-content[_ngcontent-%COMP%] .ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.body-content[_ngcontent-%COMP%] .pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.body-content[_ngcontent-%COMP%] .px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.body-content[_ngcontent-%COMP%] .py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.body-content[_ngcontent-%COMP%] .m-5[_ngcontent-%COMP%]{margin:3rem!important}.body-content[_ngcontent-%COMP%] .mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.body-content[_ngcontent-%COMP%] .mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.body-content[_ngcontent-%COMP%] .ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.body-content[_ngcontent-%COMP%] .me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.body-content[_ngcontent-%COMP%] .mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.body-content[_ngcontent-%COMP%] .my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.body-content[_ngcontent-%COMP%] .p-5[_ngcontent-%COMP%]{padding:3rem!important}.body-content[_ngcontent-%COMP%] .pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.body-content[_ngcontent-%COMP%] .pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.body-content[_ngcontent-%COMP%] .ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.body-content[_ngcontent-%COMP%] .pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.body-content[_ngcontent-%COMP%] .px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.body-content[_ngcontent-%COMP%] .py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.body-content[_ngcontent-%COMP%] altcon-autocomplete-dropdown[_ngcontent-%COMP%]{width:100%;margin-bottom:var(--bs-gutter-x, 1.5rem)}.body-content[_ngcontent-%COMP%] altcon-autocomplete-dropdown[_ngcontent-%COMP%] .fleet-row[_ngcontent-%COMP%]:nth-of-type(odd):hover{background-color:#e0e0e0}.body-content[_ngcontent-%COMP%] altcon-autocomplete-dropdown[_ngcontent-%COMP%] .fleet-row[_ngcontent-%COMP%]:hover{background-color:#e6e6e6}@media(max-width:767px){.body-content[_ngcontent-%COMP%]{align-items:center}}.selected-unit[_ngcontent-%COMP%]{width:100%;padding:3px calc(var(--bs-gutter-x, 1.5rem) * .667);margin-bottom:var(--bs-gutter-x, 1.5rem);background-color:#e1e1e1;border:1px solid #ccc;border-radius:4px;display:flex;align-items:center;justify-content:space-between}.selected-unit[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#a94442;margin-right:var(--bs-gutter-x, 1.5rem);font-size:24px}.selected-unit[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.modal-footer[_ngcontent-%COMP%] #cart[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.input-group-btn[_ngcontent-%COMP%] > .btn-altec[_ngcontent-%COMP%]:focus{outline-offset:-1px}
1.valid[_ngcontent-%COMP%]{color:#407e00}.course-detail[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly}.course-detail[_ngcontent-%COMP%] .left-col[_ngcontent-%COMP%], .course-detail[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{width:45%}.price-cert[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:16px;align-items:baseline}.price-cert[_ngcontent-%COMP%] .certificate[_ngcontent-%COMP%]{max-height:25px;position:absolute;top:27px}.description[_ngcontent-%COMP%]{padding-bottom:16px}.seats-cart[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;padding-bottom:16px}.seats-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;min-width:80px;border:solid 1px lightgray;min-height:36px}.seats-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{all:unset;min-width:24px;max-width:40px;text-align:center}.seats-container[_ngcontent-%COMP%] .counter-button[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.price[_ngcontent-%COMP%]{font-size:32px;color:#407e00}@media(max-width:500px){.course-detail[_ngcontent-%COMP%]{flex-direction:column;justify-content:space-evenly}.course-detail[_ngcontent-%COMP%] .left-col[_ngcontent-%COMP%]{width:100%;padding-bottom:16px}.course-detail[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{width:100%}}"]})}}return K})()},90777(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.NewAddressComponent=void 0;const g=o(31635),c=(o(84341),g.__importStar(o(49849))),b=g.__importStar(o(84341));function k(j,G){if(1&j&&(c.\u0275\u0275elementStart(0,"option",6),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&j){const at=G.$implicit;c.\u0275\u0275property("value",at.code),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate(at.name)}}function a(j,G){1&j&&(c.\u0275\u0275elementStart(0,"small",7),c.\u0275\u0275text(1," Country is required. "),c.\u0275\u0275elementEnd())}function L(j,G){1&j&&(c.\u0275\u0275elementStart(0,"small",7),c.\u0275\u0275text(1," Street Address is required. "),c.\u0275\u0275elementEnd())}function R(j,G){1&j&&(c.\u0275\u0275elementStart(0,"small",7),c.\u0275\u0275text(1," City is required. "),c.\u0275\u0275elementEnd())}function m(j,G){if(1&j&&(c.\u0275\u0275elementStart(0,"option",6),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&j){const at=G.$implicit;c.\u0275\u0275property("value",at.code),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate(at.name)}}function d(j,G){if(1&j&&(c.\u0275\u0275elementStart(0,"select",13)(1,"option",15),c.\u0275\u0275text(2,"Select State"),c.\u0275\u0275elementEnd(),c.\u0275\u0275repeaterCreate(3,m,2,2,"option",6,c.\u0275\u0275repeaterTrackByIdentity),c.\u0275\u0275elementEnd()),2&j){const at=c.\u0275\u0275nextContext();c.\u0275\u0275advance(3),c.\u0275\u0275repeater(at.states)}}function r(j,G){if(1&j&&(c.\u0275\u0275elementStart(0,"option",6),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&j){const at=G.$implicit;c.\u0275\u0275property("value",at.code),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate(at.name)}}function _(j,G){if(1&j&&(c.\u0275\u0275elementStart(0,"select",13)(1,"option",15),c.\u0275\u0275text(2,"Select Province"),c.\u0275\u0275elementEnd(),c.\u0275\u0275repeaterCreate(3,r,2,2,"option",6,c.\u0275\u0275repeaterTrackByIdentity),c.\u0275\u0275elementEnd()),2&j){const at=c.\u0275\u0275nextContext();c.\u0275\u0275advance(3),c.\u0275\u0275repeater(at.provinces)}}function A(j,G){1&j&&c.\u0275\u0275element(0,"input",13)}function n(j,G){1&j&&(c.\u0275\u0275elementStart(0,"small",7),c.\u0275\u0275text(1," State / Province / Region is required. "),c.\u0275\u0275elementEnd())}function s(j,G){1&j&&(c.\u0275\u0275elementStart(0,"small",7),c.\u0275\u0275text(1," ZIP / Postal Code is required. "),c.\u0275\u0275elementEnd())}f.NewAddressComponent=(()=>{class j{constructor(){this.standaloneForm=!0}ngOnInit(){}get formControls(){return this.addressFormGroup.controls}static{this.\u0275fac=function(nt){return new(nt||j)}}static{this.\u0275cmp=c.\u0275\u0275defineComponent({type:j,selectors:[["altecConnect-new-address"]],inputs:{addressFormGroup:"addressFormGroup",countries:"countries",states:"states",provinces:"provinces",submitted:"submitted",standaloneForm:"standaloneForm"},standalone:!1,decls:41,vars:21,consts:[[1,"add-new-address"],[1,"form-horizontal",3,"formGroup"],[1,"new-country-label","required"],[1,"form-label"],[1,"expiration-date"],["type","text","formControlName","country",1,"form-control","form-control-sm"],[3,"value"],[1,"form-text"],[1,"new-address-label","required"],["type","text","formControlName","address1",1,"form-control","form-control-sm"],[1,"new-address-label"],["type","text","formControlName","address2",1,"form-control","form-control-sm"],["type","text","formControlName","city",1,"form-control","form-control-sm"],["type","text","formControlName","state",1,"form-control","form-control-sm"],["type","text","formControlName","zipCode",1,"form-control","form-control-sm"],["value",""]],template:function(nt,i){1&nt&&(c.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),c.\u0275\u0275text(4,"Country"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(5,"div",4)(6,"select",5),c.\u0275\u0275repeaterCreate(7,k,2,2,"option",6,c.\u0275\u0275repeaterTrackByIdentity),c.\u0275\u0275elementEnd(),c.\u0275\u0275conditionalCreate(9,a,2,0,"small",7),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(10,"div",8)(11,"label",3),c.\u0275\u0275text(12,"Street Address"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(13,"div",4),c.\u0275\u0275element(14,"input",9),c.\u0275\u0275conditionalCreate(15,L,2,0,"small",7),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(16,"div",10)(17,"label",3),c.\u0275\u0275text(18,"Street Address 2"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(19,"div",4),c.\u0275\u0275element(2
10,"input",11),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(21,"div",8)(22,"label",3),c.\u0275\u0275text(23,"City"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(24,"div",4),c.\u0275\u0275element(25,"input",12),c.\u0275\u0275conditionalCreate(26,R,2,0,"small",7),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(27,"div",10)(28,"label",3),c.\u0275\u0275text(29,"State / Province / Region"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(30,"div",4),c.\u0275\u0275conditionalCreate(31,d,5,0,"select",13),c.\u0275\u0275conditionalCreate(32,_,5,0,"select",13),c.\u0275\u0275conditionalCreate(33,A,1,0,"input",13),c.\u0275\u0275conditionalCreate(34,n,2,0,"small",7),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(35,"div",8)(36,"label",3),c.\u0275\u0275text(37,"ZIP / Postal Code"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(38,"div",4),c.\u0275\u0275element(39,"input",14),c.\u0275\u0275conditionalCreate(40,s,2,0,"small",7),c.\u0275\u0275elementEnd()()()()),2&nt&&(c.\u0275\u0275advance(),c.\u0275\u0275property("formGroup",i.addressFormGroup),c.\u0275\u0275advance(),c.\u0275\u0275classProp("has-error",i.submitted&&!!i.formControls.country.errors&&i.formControls.country.errors.required),c.\u0275\u0275advance(5),c.\u0275\u0275repeater(i.countries),c.\u0275\u0275advance(2),c.\u0275\u0275conditional(i.submitted&&i.formControls.country.errors&&i.formControls.country.errors.required?9:-1),c.\u0275\u0275advance(),c.\u0275\u0275classProp("has-error",i.submitted&&!!i.formControls.address1.errors&&i.formControls.address1.errors.required),c.\u0275\u0275advance(5),c.\u0275\u0275conditional(i.submitted&&i.formControls.address1.errors&&i.formControls.address1.errors.required?15:-1),c.\u0275\u0275advance(6),c.\u0275\u0275classProp("has-error",i.submitted&&!!i.formControls.city.errors&&i.formControls.city.errors.required),c.\u0275\u0275advance(5),c.\u0275\u0275conditional(i.submitted&&i.formControls.city.errors&&i.formControls.city.errors.required?26:-1),c.\u0275\u0275advance(),c.\u0275\u0275classProp("has-error",i.submitted&&!!i.formControls.state.errors&&i.formControls.state.errors.required)("required","US"===i.formControls.country.value||"CA"===i.formControls.country.value),c.\u0275\u0275advance(4),c.\u0275\u0275conditional("US"===i.formControls.country.value?31:-1),c.\u0275\u0275advance(),c.\u0275\u0275conditional("CA"===i.formControls.country.value?32:-1),c.\u0275\u0275advance(),c.\u0275\u0275conditional("US"===i.formControls.country.value||"CA"===i.formControls.country.value?-1:33),c.\u0275\u0275advance(),c.\u0275\u0275conditional(i.submitted&&i.formControls.state.errors&&i.formControls.state.errors.required?34:-1),c.\u0275\u0275advance(),c.\u0275\u0275classProp("has-error",i.submitted&&!!i.formControls.zipCode.errors&&i.formControls.zipCode.errors.required),c.\u0275\u0275advance(5),c.\u0275\u0275conditional(i.submitted&&i.formControls.zipCode.errors&&i.formControls.zipCode.errors.required?40:-1))},dependencies:[b.NgSelectOption,b.\u0275NgSelectMultipleOption,b.DefaultValueAccessor,b.SelectControlValueAccessor,b.NgControlStatus,b.NgControlStatusGroup,b.FormGroupDirective,b.FormControlName],styles:[".new-country-label[_ngcontent-%COMP%]{display:flex;max-width:300px;padding-top:10px}.new-address-label[_ngcontent-%COMP%]{display:flex;max-width:300px;padding-top:30px}
1.control-label[_ngcontent-%COMP%]{min-width:200px}.expiration-date[_ngcontent-%COMP%]{min-width:100%}@media screen and (max-width:1024px){.expiration-date[_ngcontent-%COMP%]{min-width:100%}.new-country-label[_ngcontent-%COMP%], .new-address-label[_ngcontent-%COMP%]{max-width:100%;display:inline}}"]})}}return j})()},96889(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.OpenFreeCourseModalComponent=void 0;const g=o(31635),b=(o(7901),o(6324),o(95677)),k=g.__importStar(o(49849)),a=g.__importStar(o(6324)),L=g.__importStar(o(7901));f.OpenFreeCourseModalComponent=(()=>{class m{constructor(r,_,A){this.modalService=r,this.router=_,this.route=A}ngOnInit(){this.modalService.open(b.FreeCourseModalComponent,{backdrop:"static",keyboard:!1}),this.router.navigateByUrl(this.route.snapshot.queryParams.returnUrl)}static{this.\u0275fac=function(_){return new(_||m)(k.\u0275\u0275directiveInject(a.NgbModal),k.\u0275\u0275directiveInject(L.Router),k.\u0275\u0275directiveInject(L.ActivatedRoute))}}static{this.\u0275cmp=k.\u0275\u0275defineComponent({type:m,selectors:[["altec-connect-open-free-course-modal"]],standalone:!1,decls:0,vars:0,template:function(_,A){},encapsulation:2})}}return m})()},91153(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.TrainingStoreHeaderComponent=void 0;const g=o(31635),v=o(7901),b=(o(83352),o(19896)),a=(o(83352),o(59091)),L=o(95677),r=(o(6324),o(79591),o(97377),g.__importStar(o(49849))),_=g.__importStar(o(7901)),A=g.__importStar(o(6324)),n=g.__importStar(o(83352)),s=g.__importStar(o(79591)),et=g.__importStar(o(97377)),j=g.__importStar(o(73155)),G=g.__importStar(o(48744)),at=()=>["/pages/training-store"];function nt(B,it){if(1&B){const x=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"li",30),r.\u0275\u0275listener("click",function(){const F=r.\u0275\u0275restoreView(x).$implicit,t=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(t.viewCourses(F,"product"))}),r.\u0275\u0275elementStart(1,"a"),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()()}if(2&B){const x=it.$implicit;r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(x)}}function i(B,it){if(1&B){const x=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"li")(1,"a",30),r.\u0275\u0275listener("click",function(){const F=r.\u0275\u0275restoreView(x).$implicit,t=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(t.viewCourses(F,"categories"))}),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()()}if(2&B){const x=it.$implicit;r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(x)}}function J(B,it){if(1&B){const x=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"li",31)(1,"a",32),r.\u0275\u0275listener("click",function(F){r.\u0275\u0275restoreView(x);const t=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(t.myCourses(F.target.parentNode))}),r.\u0275\u0275text(2," My Courses "),r.\u0275\u0275elementEnd()()}if(2&B){const x=r.\u0275\u0275nextContext(2);r.\u0275\u0275classProp("disabled",x.internalAccount&&x.demoOnlyTrainingStore),r.\u0275\u0275advance(),r.\u0275\u0275property("href",x.litmosLink,r.\u0275\u0275sanitizeUrl)}}function q(B,it){if(1&B){const x=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div")(1,"span",33),r.\u0275\u0275text(2,"Have Course Credit? "),r.\u0275\u0275elementStart(3,"a",30),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(F.openFreeCourseModal())}),r.\u0275\u0275text(4,"Click here"),r.\u0275\u0275elementEnd()()()}}function Q(B,it){if(1&B){const x=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",13)(1,"ul",14)(2,"li",15),r.\u0275\u0275listener("mouseenter",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent="courses")})("mouseleave",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275elementStart(3,"a",16),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();
1return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275text(4,"E-COURSES"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"div",17)(6,"div",18)(7,"div",19),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275elementStart(8,"ul")(9,"li")(10,"p",20),r.\u0275\u0275text(11,"By Products"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275repeaterCreate(12,nt,3,1,"li",null,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(14,"div",19),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275elementStart(15,"ul")(16,"li")(17,"p",20),r.\u0275\u0275text(18,"By Category"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275repeaterCreate(19,i,3,1,"li",null,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()()()()(),r.\u0275\u0275elementStart(21,"li",15),r.\u0275\u0275listener("mouseenter",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent="webinars")})("mouseleave",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275elementStart(22,"a",16),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275text(23,"WEBINARS"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(24,"div",21)(25,"div",22)(26,"div",23),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275elementStart(27,"ul")(28,"li")(29,"a",24),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.gaEvent("Training Store Header","Button Click","Altec Maintenance Webinars Button"))}),r.\u0275\u0275text(30,"Maintenance"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(31,"li")(32,"a",25),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.gaEvent("Training Store Header","Button Click","Altec Maintenance Webinars Button"))}),r.\u0275\u0275text(33,"Operator Training"),r.\u0275\u0275elementEnd()()()()()()(),r.\u0275\u0275elementStart(34,"li",15),r.\u0275\u0275listener("mouseenter",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent="in-person")})("mouseleave",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275elementStart(35,"a",16),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275text(36,"IN-PERSON"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(37,"div",21)(38,"div",22)(39,"div",26),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.showDropContent=null)}),r.\u0275\u0275elementStart(40,"ul")(41,"li")(42,"a",27),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.gaEvent("Training Store Header","Button Click","Hands On Maintenance Training Button"))}),r.\u0275\u0275text(43,"Maintenance"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(44,"li")(45,"a",28),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(x);const F=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(F.gaEvent("Training Store Header","Button Click","Operator Training Button"))}),r.\u0275\u0275text(46,"Operator"),r.\u0275\u0275elementEnd()()()()()()(),r.\u0275\u0275conditionalCreate(47,J,3,3,"li",29),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(48,q,5,0,"div"),r.\u0275\u0275elementEnd()}if(2&B){const x=r.\u0275\u0275nextContext();r.\u0275\u0275advance(5),r.\u0275\u0275property("hidden","courses"!==x.showDropContent),r.\u0275\u0275advance(7),r.\u0275\u0275repeater(x.products),r.\u0275\u0275advance(7),r.\u0275\u0275repeater(x.categories),r.\u0275\u0275advance(5),r.\u0275\u0275property("hidden","webinars"!==x.showDropContent),r.\u0275\u0275advance(13),r.\u0275\u0275property("hidden","in-person"!==x.showDropContent),r.\u0275\u0275advance(10),r.\u0275\u0275conditional(x.userLoggedIn?47:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(x.statefulService.profile.isValidatedB2BUser?48:-1)}}function z(B,it){if(1&B){const x=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"li")(1,"a",32),r.\u0275\u0275listener("click",function(F){r.\u0275\u0275restoreView(x);const t=r.\u0275\u0275nextContext(2);
1return r.\u0275\u0275resetView(t.myCourses(F.target.parentNode))}),r.\u0275\u0275text(2," My Courses "),r.\u0275\u0275elementEnd()()}if(2&B){const x=r.\u0275\u0275nextContext(2);r.\u0275\u0275classProp("disabled",x.internalAccount&&x.demoOnlyTrainingStore),r.\u0275\u0275advance(),r.\u0275\u0275property("href",x.litmosLink,r.\u0275\u0275sanitizeUrl)}}function E(B,it){if(1&B&&(r.\u0275\u0275elementStart(0,"div",13)(1,"ul",14),r.\u0275\u0275conditionalCreate(2,z,3,3,"li",34),r.\u0275\u0275elementEnd()()),2&B){const x=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275conditional(x.userLoggedIn?2:-1)}}f.TrainingStoreHeaderComponent=(()=>{class B{constructor(x,D,F,t,ht,S){this.router=x,this.modalService=D,this.trainingStoreService=F,this.trainingStoreAutoCompleteService=t,this.googleServicesService=ht,this.statefulService=S,this.showDropContent=null,this.showBlackNavbarContent=!1,this.internalAccount=!1,this.litmosLink=b.environment.litmosLink,this.demoOnlyTrainingStore=!1,this.queryModel="",this.showAutocomplete=!0,this.unsubscribe=new a.Subject,this.stateQuery="",this.products=[],this.categories=[],this.categoryType="",this.router.events.subscribe(ot=>{ot instanceof v.NavigationEnd&&(this.showBlackNavbarContent="/pages/training-store"===ot.url.replace(/\?.*/g,""))})}ngOnInit(){this.getCategories(),this.statefulService.profile.authProfile?.internalProperties&&null===this.statefulService.profile.accountId&&this.router.navigate(["/pages/associateLanding"]),this.userLoggedIn="GUEST"!==this.statefulService.profile.userStatus,this.userLoggedIn?(this.displayName=this.statefulService.getFullName(),this.internalAccount=this.statefulService.profile.isInternalAssociate,this.demoOnlyTrainingStore=this.statefulService.hasPrivilege("Demo_Only_Training_Store"),this.email=this.statefulService.profile.email,this.trainingStoreService.setLitmosUserToActive(this.email).subscribe(x=>{})):this.displayName="Log in / Register"}myCourses(x){x.classList.contains("disabled")}coursesBy(x){window.scrollTo(0,0),this.router.navigate(["pages/training-store/search"],{queryParams:{page:1,courseType:x,searchTerm:x}})}viewCourses(x,D){this.showDropContent=null,window.scrollTo(0,0),"product"===D?this.router.navigate(["pages/training-store/search"],{queryParams:{page:1,productFilters:JSON.stringify({value:x,type:D,isActive:!0})}}):"categories"===D&&this.router.navigate(["pages/training-store/search"],{queryParams:{page:1,categoryFilters:JSON.stringify({value:x,type:D,isActive:!0})}})}getCategories(){this.trainingStoreService.getAllCourses().then(x=>{for(let D=0;D<x.hits.length;D++)for(let F=0;F<x.hits[D].hierarchicalCategories.lvl1.length;F++)if(this.childRouteCategories=x.hits[D].hierarchicalCategories.lvl1[F].split(" > "),this.childRouteCategories[0]===b.environment.product){for(this.categoryType=this.childRouteCategories[1];!this.products.includes(this.categoryType);)this.products.push(this.categoryType);this.products.sort()}else if(this.childRouteCategories[0]===b.environment.category){for(this.categoryType=this.childRouteCategories[1];!this.categories.includes(this.categoryType);)this.categories.push(this.categoryType);this.categories.sort()}})}openFreeCourseModal(){this.modalService.open(L.FreeCourseModalComponent,{backdrop:"static",keyboard:!1})}gaEvent(x,D,F){this.googleServicesService.emitEvent({eventCategory:x,eventAction:D,eventLabel:F},()=>{})}static{this.\u0275fac=function(D){return new(D||B)(r.\u0275\u0275directiveInject(_.Router),r.\u0275\u0275directiveInject(A.NgbModal),r.\u0275\u0275directiveInject(n.TrainingStoreService),r.\u0275\u0275directiveInject(n.TrainingStoreAutoCompleteService),r.\u0275\u0275directiveInject(s.GoogleServicesService),r.\u0275\u0275directiveInject(et.StatefulService))}}static{this.\u0275cmp=r.\u0275\u0275defineComponent({type:B,selectors:[["altecConnect-training-store-header"]],standalone:!1,decls:20,vars:4,consts:[[1,"header","container","d-none","d-lg-block"],[1,"row","main-flex-row"],[1,"logo","col-auto"],[1,"logo-padding",3,"routerLink"],["src","/assets/images/altec-logo.jpg"],[1,"nav-header","col-auto","ms-auto"],[1,"nav-links"],[1,"utility-nav-li","nav"],[1,"nav-item"],["href","https://www.altec.com/safety/",1,"nav-link"],["href","https://www.altec.com/about-altec/faqs/",1,"nav-link"],[1,"navbar","navbar-expand-md","navbar-dark","bg-black","d-none","d-lg-flex"],[1,"container"],[1,"navbar-content"],[1,"nav","desktop-site-nav","navbar-nav","select","nav-fill","flex-nav"],[1,"pointer","store-column",3,"mouseenter","mouseleave"],[1,"column-title",3,"click"],[1,"site-nav-drop",3,"hidden"],[1,"drop-inner"],[1,"drop-item",3,"click"],[1,"category-text"],[1,"dropdown",3,"hidden"],[1,"link-dropdown"],[1,"drop-item-webinars",3,"click"],["href","https://www.altec.com/service/maintenance-training/altec-maintenance-webinars/",1,"link-text",3,"click"],["href","https://www.altec.com/safety/operator-webinars/",1,"link-text",3,"click"],[1,"drop-item-in-person",3,"click"],["href","https://www.altec.com/service/maintenance-training/hands-on-maintenance-training/",1,"link-text",3,"click"],["href","https://www.altec.com/safety/operator-training/",1,"link-text",3,"click"],[1,"pointer","store-column",3,"disabled"],[3,"click"],[1,"pointer","store-column"],[1,"nav-link",3,"click","href"],["id","credit-link"],[3,"disabled"]],template:function(D,F){1&D&&(r.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),r.\u0275\u0275element(4,"img",4),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(5,"div",5)(6,"div",6)(7,"ul",7)(8,"li",8)(9,"a",9),r.\u0275\u0275text(10," About "),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(11,"li",8)(12,"a",10),r.\u0275\u0275text(13," FAQs "),r.\u0275\u0275elementEnd()()()(),r.\u0275\u0275element(14,"altecConnect-training-store-autocomplete"),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(15,"nav",11)(16,"div",12),r.\u0275\u0275conditionalCreate(17,Q,49,5,"div",13),r.\u0275\u0275conditionalCreate(18,E,3,1,"div",13),r.\u0275\u0275elementEnd()(),r.\u0275\u0275element(19,"altcon-site-message")),2&D&&(r.\u0275\u0275advance(3),r.\u0275\u0275property("routerLink",r.\u0275\u0275pureFunction0(3,at)),r.\u0275\u0275advance(14),r.\u0275\u0275conditional(F.showBlackNavbarContent?17:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(F.showBlackNavbarContent?-1:18))},dependencies:[_.RouterLink,j.TrainingStoreAutocompleteComponent,G.SiteMessageComponent],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}#gray-bar[_ngcontent-%COMP%]{background-color:#e1e1e1;min-height:36px;margin:0}.main-flex-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around;width:100%;height:100%}.main-flex-row[_ngcontent-%COMP%] .nav-header[_ngcontent-%COMP%]{display:flex;margin-right:0}.main-flex-row[_ngcontent-%COMP%] .utility-nav-li[_ngcontent-%COMP%]{padding-top:0}.navbar-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around;width:100%}.navbar-content[_ngcontent-%COMP%] .flex-nav[_ngcontent-%COMP%]{margin-right:auto}.store-column[_ngcontent-%COMP%]:hover .column-title[_ngcontent-%COMP%]{color:#fff}.site-nav-drop[_ngcontent-%COMP%]{min-width:500px}.dropdown[_ngcontent-%COMP%]{position:absolute;background-color:#fff;z-index:10001!important;box-shadow:0 5px 5px #00000059;border:1px solid #DDD;border-top:none;padding:calc(var(--bs-gutter-x, 1.5rem) * .667) 0 20px;min-width:300px}.drop-inner[_ngcontent-%COMP%]{padding:0 20px}.drop-inner[_ngcontent-%COMP%]{display:grid;grid-auto-flow:column}.link-dropdown[_ngcontent-%COMP%]{display:flex;justify-content:start;padding-left:30px}.drop-item[_ngcontent-%COMP%]{background:url(https://www.altec.com/site/themes/altec/css/images/vertical-div.jpg) no-repeat right center;padding-top:7px}.drop-item[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;font-weight:400;display:inline-block}.drop-item[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:14px;padding:2px 0}.drop-item[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{text-decoration:underline}.drop-item[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#444;text-align:left;height:auto;width:auto;line-height:18px;padding:0!important;text-transform:capitalize!important;display:block;font-weight:700}.drop-item-in-person[_ngcontent-%COMP%]{background:url(https://www.altec.com/site/themes/altec/css/images/vertical-div.jpg) no-repeat right center;padding-top:7px}.drop-item-in-person[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;font-weight:400;display:inline-block}.drop-item-in-person[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:14px;padding:2px 0}.drop-item-in-person[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{text-decoration:underline}.drop-item-in-person[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#444;text-align:left;height:auto;width:auto;line-height:18px;padding:calc(var(--bs-gutter-x, 1.5rem) * .667)!important;text-transform:capitalize!important;display:block;font-weight:700}.drop-item-webinars[_ngcontent-%COMP%]{background:url(https://www.altec.com/site/themes/altec/css/images/vertical-div.jpg) no-repeat right center;padding-top:7px}.drop-item-webinars[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;font-weight:400;display:inline-block}.drop-item-webinars[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:14px;padding:2px 0}.drop-item-webinars[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{text-decoration:underline}.drop-item-webinars[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#444;text-align:left;height:auto;width:auto;line-height:18px;padding:calc(var(--bs-gutter-x, 1.5rem) * .667)!important;text-transform:capitalize!important;display:block;font-weight:700}.category-text[_ngcontent-%COMP%]{text-align:left;text-decoration:underline;cursor:default;font-weight:700!important;font-size:larger!important}.link-text[_ngcontent-%COMP%]{text-align:left;text-decoration:underline;cursor:pointer;font-weight:700!important;font-size:larger!important}#credit-link[_ngcontent-%COMP%]{color:#fff}#credit-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#efb310}#credit-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.user-nav-link[_ngcontent-%COMP%]{margin-left:-6px;padding-top:calc(var(--bs-gutter-x, 1.5rem) * .667);padding-left:300px;min-height:36px;display:inline-block;color:#000;text-decoration:none;font-size:12pt}.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.disabled[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{pointer-events:none}a[_ngcontent-%COMP%]{color:#333}"]})}}return B})()}
1,38711(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CheckoutConfirmationComponent=void 0;const g=o(31635),a=(o(35445),o(83352),o(7901),o(71026),o(11431)),R=(o(79591),o(40245)),m=o(59091),r=(o(97377),g.__importStar(o(49849))),_=g.__importStar(o(35445)),A=g.__importStar(o(83352)),n=g.__importStar(o(71026)),s=g.__importStar(o(7901)),et=g.__importStar(o(79591)),j=g.__importStar(o(97377));function G(q,Q){if(1&q&&(r.\u0275\u0275elementStart(0,"div")(1,"div",11),r.\u0275\u0275element(2,"img",12),r.\u0275\u0275elementStart(3,"span")(4,"strong"),r.\u0275\u0275text(5),r.\u0275\u0275elementEnd()()()()),2&q){const z=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(2),r.\u0275\u0275property("src",z.imageUrl,r.\u0275\u0275sanitizeUrl),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(z.productDisplayName)}}function at(q,Q){1&q&&r.\u0275\u0275conditionalCreate(0,G,6,2,"div"),2&q&&r.\u0275\u0275conditional(Q.$implicit.quantity>0?0:-1)}function nt(q,Q){if(1&q&&(r.\u0275\u0275elementStart(0,"div",7),r.\u0275\u0275repeaterCreate(1,at,1,1,null,null,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()),2&q){const z=r.\u0275\u0275nextContext();r.\u0275\u0275advance(),r.\u0275\u0275repeater(z.order.commerceItems)}}function i(q,Q){if(1&q){const z=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",9)(1,"button",10),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(z);const st=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(st.viewOrder())}),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()()}if(2&q){const z=r.\u0275\u0275nextContext();r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" Assign Seats for Order #",z.order.ebsOrderNumber," ")}}f.CheckoutConfirmationComponent=(()=>{class q extends a.SubscriberComponentBase{constructor(z,E,st,B,it,x){super(),this.shoppingCartService=z,this.trainingStoreService=E,this.checkoutStore=st,this.router=B,this.googleServices=it,this.statefulService=x,this.cart=[]}ngOnInit(){this.subscribeTo(this.checkoutStore.order.subscribe(z=>{this.order=z})),this.order&&this.trainingStoreService.getAllCourses().then(z=>{for(let E=0;E<z.hits.length;E++)for(let st of this.order.commerceItems)z.hits[E].LMSReferenceCode===st.productId&&(st.imageUrl=z.hits[E].image)}),this.googleServices.recordPurchase(this.order)}backToTrainingStore(){this.router.navigateByUrl("/pages/training-store")}viewOrder(){this.router.navigateByUrl(`pages/dashboard/training/orders/details?orderNumber=${this.order.ebsOrderNumber}`)}emptyCart(){if(null!==this.statefulService.profile.accountId)for(let z of this.shoppingCartService.trainingStoreCart.items)z.quantity=0,this.shoppingCartService.addOrUpdateItemsInShoppingCart("training-store",this.shoppingCartService.trainingStoreCart.items).pipe((0,m.take)(1)).subscribe(E=>{this.statefulService.dispatch((0,R.setTrainingStoreCartAction)({trainingStoreCart:E}))});else localStorage.removeItem("training-store-cart")}static{this.\u0275fac=function(E){return new(E||q)(r.\u0275\u0275directiveInject(_.ShoppingCartService),r.\u0275\u0275directiveInject(A.TrainingStoreService),r.\u0275\u0275directiveInject(n.CheckoutStore),r.\u0275\u0275directiveInject(s.Router),r.\u0275\u0275directiveInject(et.GoogleServicesService),r.\u0275\u0275directiveInject(j.StatefulService))}}static{this.\u0275cmp=r.\u0275\u0275defineComponent({type:q,selectors:[["altecConnect-checkout-confirmation"]],inputs:{order:"order"},standalone:!1,features:[r.\u0275\u0275InheritDefinitionFeature],decls:27,vars:3,consts:[[1,"container","confirmation-container"],[1,"confirmation-section"],["aria-hidden","true",1,"fa","fa-lg","fa-check"],[1,"main-section"],[1,"checkout-header"],[1,"checkout-cell"],[1,"heading"],[1,"checkout-columns"],[1,"bottom-cell"],[1,"back-button"],[1,"btn-altec","btn-ac",3,"click"],[1,"checkout-cell","image-cell"],[1,"course-image",3,"src"]],template:function(E,st){1&E&&(r.\u0275\u0275elementStart(0,"div")(1,"div",0)(2,"div",1)(3,"h3"),r.\u0275\u0275element(4,"i",2),r.\u0275\u0275text(5," Checkout Confirmation "),r.\u0275\u0275elementEnd()(),r.\u0275\u0275element(6,"br")(7,"br"),r.\u0275\u0275elementStart(8,"div",3)(9,"strong"),r.\u0275\u0275text(10,"Thank you for shopping with Altec!"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(11,"div"),r.\u0275\u0275text(12," We have received your order. You should receive an email shortly about your order. "),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(13,"div",4)(14,"div",5)(15,"h4",6)(16,"strong"),r.\u0275\u0275text(17),r.\u0275\u0275elementEnd()()()(),r.\u0275\u0275conditionalCreate(18,nt,3,0,"div",7),r.\u0275\u0275elementStart(19,"div",8)(20,"h4",6)(21,"strong"),r.\u0275\u0275text(22,"Where would you like to go next?"),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275conditionalCreate(23,i,3,1,"div",9),r.\u0275\u0275elementStart(24,"div",9)(25,"button",10),r.\u0275\u0275listener("click",function(){return st.backToTrainingStore(
1)}),r.\u0275\u0275text(26," Back to the Training Store "),r.\u0275\u0275elementEnd()()()()),2&E&&(r.\u0275\u0275advance(17),r.\u0275\u0275textInterpolate1("Order Number: ",st.order.ebsOrderNumber),r.\u0275\u0275advance(),r.\u0275\u0275conditional(st.order?18:-1),r.\u0275\u0275advance(5),r.\u0275\u0275conditional(st.statefulService.profile.isValidatedB2BUser?23:-1))},styles:[".confirmation-container[_ngcontent-%COMP%]{justify-content:space-around;padding-bottom:16px}.confirmation-section[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid lightgray;display:inline-block}.confirmation-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:25px}.main-section[_ngcontent-%COMP%]{width:100%;display:inline}.course-image[_ngcontent-%COMP%]{max-width:200px;padding-right:50px}.btn-altec[_ngcontent-%COMP%]{background:#efb310;color:#fff;min-width:100%}.back-button[_ngcontent-%COMP%]{max-width:30%;padding-bottom:25px}.checkout-header[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:60% 30% 10%;padding-top:40px;padding-bottom:10px}.checkout-header[_ngcontent-%COMP%] .checkout-cell[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{margin:0;display:flex;align-items:center}.checkout-columns[_ngcontent-%COMP%]{display:inline-block;padding-top:16px;padding-bottom:50px}.checkout-columns[_ngcontent-%COMP%] .checkout-cell[_ngcontent-%COMP%]{padding-top:16px;padding-left:1em;padding-bottom:16px;display:grid;grid-template-rows:auto;grid-template-columns:50% 50%}.checkout-columns[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}@media screen and (max-width:1024px){.checkout-header[_ngcontent-%COMP%]{min-width:100%;display:block;padding-top:40px}.heading[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:100%}.checkout-columns[_ngcontent-%COMP%]{grid-template-columns:50% 50%}.checkout-columns[_ngcontent-%COMP%] .checkout-cell[_ngcontent-%COMP%]{border-bottom:unset}.checkout-columns[_ngcontent-%COMP%] .image-cell[_ngcontent-%COMP%]{display:flex;justify-content:center}.print-order-button[_ngcontent-%COMP%], .back-button[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}}"]})}}return q})()},11805(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CheckoutComponent=void 0;const g=o(31635),v=o(49849),k=(o(35445),o(83352),o(84341)),L=(o(7901),o(39131)),R=o(59091),d=(o(59976),g.__importDefault(o(97586))),r=o(80938),A=(o(71026),o(86599)),n=o(43481),G=(o(71964),o(50921),o(99975),o(7721)),i=(o(88892),o(80685),o(40245)),Q=(o(7932),o(21916),o(40846)),E=(o(6324),o(67929)),x=(o(94861),o(97377),o(20851),o(24064)),D=o(74928),F=o(3271),t=g.__importStar(o(49849)),ht=g.__importStar(o(35445)),S=g.__importStar(o(20851)),ot=g.__importStar(o(83352)),O=g.__importStar(o(71964)),X=g.__importStar(o(7901)),Z=g.__importStar(o(84341)),_t=g.__importStar(o(59976)),bt=g.__importStar(o(71026)),St=g.__importStar(o(88892)),Y=g.__importStar(o(50921)),mt=g.__importStar(o(99975)),w=g.__importStar(o(7932)),tt=g.__importStar(o(6324)),rt=g.__importStar(o(21916)),ct=g.__importStar(o(80685)),Pt=g.__importStar(o(94861)),K=g.__importStar(o(97377)),pt=g.__importStar(o(57504)),y=g.__importStar(o(20145)),W=g.__importStar(o(2179)),u=g.__importStar(o(90777)),V=g.__importStar(o(60177)),p=["existingPaymentMethodDropdown"],P=()=>["/pages/training-store"];function M(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),t.\u0275\u0275text(4," Choose your secure checkout method "),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(5,"hr",4),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(6,"br"),t.\u0275\u0275elementStart(7,"div")(8,"p")(9,"strong"),t.\u0275\u0275text(10,"Existing Customers"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(11,"p"),t.\u0275\u0275text(12," Log in to your Altec Connect account to expedite your checkout process. Logging in allows you to use your saved addresses and payment methods. "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"a",5),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(h.sendToLogin())}),t.\u0275\u0275text(14,"Login"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(15,"br"),t.\u0275\u0275elementEnd()}}function N(l,T){if(1&l&&t.\u0275\u0275element(0,"i",28),2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275classMap(t.\u0275\u0275interpolate1("fa ",e.selectedPayment.creditCardIconClass))}}function lt(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(null==e.selectedPayment?null:e.selectedPayment.formattedText)}}function gt(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275conditionalCreate(1,N,1,3,"i",27),t.\u0275\u0275conditionalCreate(2,lt,2,1,"span"),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275conditional(null!=e.selectedPayment&&e.selectedPayment.creditCardIconClass?1:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(null!=e.selectedPayment&&e.selectedPayment.formattedText?2:-1)}}function U(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" Purchase Order: ",e.purchaseOrderNumber," ")}}function Ct(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",9)(1,"div",26),t.\u0275\u0275conditionalCreate(2,gt,3,2,"div"),t.\u0275\u0275conditionalCreate(3,U,2,1,"div"),t.\u0275\u0275elementEnd()()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(2),t.\u0275\u0275conditional("Credit Card"===e.selectedPaymentType?2:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional("Purchase Order"===e.selectedPaymentType?3:-1)}}function ft(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",9)(1,"div",29)(2,"span")(3,"a",30),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(h.edit())}),t.\u0275\u0275text(4,"Edit"),t.\u0275\u0275elementEnd()()()()}}function yt(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",38)(1,"label",39)(2,"input",40),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(5);return t.\u0275\u0275resetView(h.togglePaymentType("Purchase Order"))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(3," Purchase Order "),t.\u0275\u0275elementEnd()()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275advance(2),t.\u0275\u0275property("checked","Purchase Order"===e.selectedPaymentType)}}function vt(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",31)(1,"div",38)(2,"div")(3,"strong"),t.\u0275\u0275text(4,"Pay With:"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(5,"div",38)(6,"label",39)(7,"input",40),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(h.togglePaymentType("Credit Card"))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(8," Credit Card "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275conditionalCreate(9,yt,4,1,"div",38),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(7),t.\u0275\u0275property("checked","Credit Card"===e.selectedPaymentType),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(e.isB2CAccount?-1:9)}}function Tt(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"option",46),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&l){const e=T.$implicit;t.\u0275\u0275property("value",e.id),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(e.formattedTextWithAddress)}}function Ot(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"select",45,0),t.\u0275\u0275listener("change",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275reference(1),I=t.\u0275\u0275nextContext(5);return t.\u0275\u0275resetView(I.onSelected(h.value))}),t.\u0275\u0275repeaterCreate(2,Tt,2,2,"option",46,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275advance(2),t.\u0275\u0275repeater(e.paymentMethods)}}function At(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",34)(1,"label"),t.\u0275\u0275text(2,"Use one of your saved payment methods:"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",34),t.\u0275\u0275conditionalCreate(4,Ot,4,0,"select",41),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",42)(6,"label",43),t.\u0275\u0275text(7,"Reference Number"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(8,"input",44),t.\u0275\u0275elementEnd()()),2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(4),t.\u0275\u0275conditional(e.paymentMethods.length>0?4:-1)}}function Bt(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"small",55),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&l){const e=T.$implicit,C=t.\u0275\u0275nextContext(6);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",C.formControls.purchaseOrderNumber.errors[e]," ")}}function Nt(l,T){if(1&l&&t.\u0275\u0275repeaterCreate(0,Bt,2,1,"small",55,t.\u0275\u0275repeaterTrackByIdentity),2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275repeater(e.Object.keys(e.formControls.purchaseOrderNumber.errors))}}function jt(l,T){1&l&&(t.\u0275\u0275elementStart(0,"div",54)(1,"small",56),t.\u0275\u0275text(2," Please select a billing address. "),t.\u0275\u0275elementEnd()())}function Rt(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"div",47)(3,"div",48)(4,"label",49),t.\u0275\u0275text(5," PO Number "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",50)(7,"input",51),t.\u0275\u0275listener("keyup",function(h){t.\u0275\u0275restoreView(e);const I=t.\u0275\u0275nextContext(4);
1return t.\u0275\u0275resetView(I.poInput(h))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(8,Nt,2,0),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(9,"br"),t.\u0275\u0275elementStart(10,"label",52),t.\u0275\u0275text(11," Select a billing address from your address book: "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"div",52)(13,"app-address-autocomplete",53),t.\u0275\u0275listener("addressSelected",function(h){t.\u0275\u0275restoreView(e);const I=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(I.selectBillingAddress(h))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(14,jt,3,0,"div",54),t.\u0275\u0275elementEnd()()()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(2),t.\u0275\u0275classProp("has-error",e.submitted&&e.formControls.purchaseOrderNumber.invalid),t.\u0275\u0275advance(5),t.\u0275\u0275property("formControl",e.formControls.purchaseOrderNumber),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.formControls.purchaseOrderNumber.errors?8:-1),t.\u0275\u0275advance(5),t.\u0275\u0275property("initiallySelectedAddress",e.selectedBillingAddress?e.selectedBillingAddress:void 0)("accountId",e.statefulService.profile.accountId)("partyId",e.statefulService.profile.partyId)("showFavoriteToggle",!0)("showShowMoreButton",!0)("addressType","BILLING")("showDefaultBillingToggle",!0),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.selectedBillingAddress?-1:14)}}function Dt(l,T){1&l&&t.\u0275\u0275element(0,"i",58)}function Ut(l,T){1&l&&t.\u0275\u0275element(0,"i",59)}function Lt(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",57),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(h.newCard())}),t.\u0275\u0275elementStart(1,"span"),t.\u0275\u0275conditionalCreate(2,Dt,1,0,"i",58),t.\u0275\u0275conditionalCreate(3,Ut,1,0,"i",59),t.\u0275\u0275text(4," Add new credit or debit card "),t.\u0275\u0275elementEnd()()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(2),t.\u0275\u0275conditional(e.createNewCard?-1:2),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.createNewCard?3:-1)}}function $t(l,T){1&l&&(t.\u0275\u0275elementStart(0,"small",56),t.\u0275\u0275text(1,"CVV is required."),t.\u0275\u0275elementEnd())}function zt(l,T){1&l&&(t.\u0275\u0275elementStart(0,"small",56),t.\u0275\u0275text(1,"Name is required."),t.\u0275\u0275elementEnd())}function Gt(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"option",46),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&l){const e=T.$implicit;t.\u0275\u0275property("value",e.code),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(e.name)}}function Qt(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"option",46),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&l){const e=T.$implicit;t.\u0275\u0275property("value",e),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(e)}}function Ht(l,T){1&l&&(t.\u0275\u0275elementStart(0,"small",56),t.\u0275\u0275text(1,"This credit card has expired."),t.\u0275\u0275elementEnd())}function Yt(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",34)(1,"label",52),t.\u0275\u0275text(2," Select a billing address from your address book: "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",52)(4,"app-address-autocomplete",53),t.\u0275\u0275listener("addressSelected",function(h){t.\u0275\u0275restoreView(e);const I=t.\u0275\u0275nextContext(5);return t.\u0275\u0275resetView(I.selectBillingAddress(h))}),t.\u0275\u0275elementEnd()()()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275advance(4),t.\u0275\u0275property("initiallySelectedAddress",e.selectedBillingAddress?e.selectedBillingAddress:void 0)("accountId",e.statefulService.profile.accountId)("partyId",e.statefulService.profile.partyId)("showFavoriteToggle",!0)("showShowMoreButton",!0)("addressType","BILLING")("showDefaultBillingToggle",!0)}}function Wt(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",30),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(6);
1return t.\u0275\u0275resetView(h.toggleCreateNewBillingAddress())}),t.\u0275\u0275text(1," Add a new address "),t.\u0275\u0275elementEnd()}}function Jt(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",74),t.\u0275\u0275conditionalCreate(1,Wt,2,0,"a"),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.isAddressModificationAllowed?1:-1)}}function Kt(l,T){1&l&&(t.\u0275\u0275elementStart(0,"div",75)(1,"small",56),t.\u0275\u0275text(2," Please select a billing address. "),t.\u0275\u0275elementEnd()())}function Zt(l,T){1&l&&(t.\u0275\u0275elementStart(0,"div",78)(1,"div",80),t.\u0275\u0275text(2," Unable to save address. For assistance, call us at 877-GO ALTEC, option 1. Our team is happy to assist you! "),t.\u0275\u0275elementEnd()())}function Xt(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",76),t.\u0275\u0275conditionalCreate(1,Zt,3,0,"div",78),t.\u0275\u0275element(2,"altecConnect-new-address",79),t.\u0275\u0275elementStart(3,"div",74)(4,"a",30),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(5);return t.\u0275\u0275resetView(h.toggleCreateNewBillingAddress())}),t.\u0275\u0275text(5," Cancel and use a saved address "),t.\u0275\u0275elementEnd()()()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.showCaliforniaB2CMessage?1:-1),t.\u0275\u0275advance(),t.\u0275\u0275property("addressFormGroup",e.addNewAddressFormGroup)("countries",e.countries)("states",e.states)("provinces",e.provinces)("submitted",e.submitted)}}function qt(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"li")(1,"span"),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()),2&l){const e=T.$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(e)}}function te(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",36)(1,"form",60)(2,"div",61)(3,"div",42)(4,"label",43),t.\u0275\u0275text(5,"Card Number"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"altecConnect-card-number",62),t.\u0275\u0275listener("tokenizedCardNumber",function(h){t.\u0275\u0275restoreView(e);const I=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(I.creditCardNumber=h)}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div",42)(8,"label",43),t.\u0275\u0275text(9,"CVV"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"div",63),t.\u0275\u0275element(11,"input",64)(12,"i",65),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(13,$t,2,0,"small",56),t.\u0275\u0275elementStart(14,"small",66)(15,"a",67),t.\u0275\u0275text(16," What's This? "),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(17,"div",42)(18,"label",43),t.\u0275\u0275text(19,"Name on Card"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(20,"input",68),t.\u0275\u0275conditionalCreate(21,zt,2,0,"small",56),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(22,"div",69)(23,"label",43),t.\u0275\u0275text(24,"Expiration Date"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(25,"div",70)(26,"select",71),t.\u0275\u0275repeaterCreate(27,Gt,2,2,"option",46,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(29,"div",72)(30,"select",73),t.\u0275\u0275repeaterCreate(31,Qt,2,2,"option",46,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()(),t.\u0275\u0275conditionalCreate(33,Ht,2,0,"small",56),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(34,Yt,5,7,"div",34),t.\u0275\u0275conditionalCreate(35,Jt,2,1,"div",74),t.\u0275\u0275conditionalCreate(36,Kt,3,0,"div",75),t.\u0275\u0275conditionalCreate(37,Xt,6,6,"div",76),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(38,"div")(39,"div")(40,"ul",77),t.\u0275\u0275repeaterCreate(41,qt,3,1,"li",null,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()()()()()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275property("formGroup",e.addPaymentForm),t.\u0275\u0275advance(6),t.\u0275\u0275classProp("has-error",(e.submitted||e.formControls.cvv.dirty||e.formControls.cvv.touched)&&(null==e.formControls.cvv.errors?null:e.formControls.cvv.errors.required)),t.\u0275\u0275advance(6),t.\u0275\u0275conditional((e.submitted||e.formControls.cvv.dirty||e.formControls.cvv.touched)&&null!=e.formControls.cvv.errors&&e.formControls.cvv.errors.required?13:-1),t.\u0275\u0275advance(4),t.\u0275\u0275classProp("has-error",(e.submitted||e.formControls.nameOnCard.dirty||e.formControls.nameOnCard.touched)&&(null==e.formControls.nameOnCard.errors?null:e.formControls.nameOnCard.errors.required)),t.\u0275\u0275advance(4),t.\u0275\u0275conditional((e.submitted||e.formControls.nameOnCard.dirty||e.formControls.nameOnCard.touched)&&null!=e.formControls.nameOnCard.errors&&e.formControls.nameOnCard.errors.required?21:-1),t.\u0275\u0275advance(),t.\u0275\u0275classProp("has-error",e.cardExpired||e.paymentSelected&&(e.formControls.expirationMonth.errors&&e.formControls.expirationMonth.errors.required||e.formControls.expirationYear.errors&&e.formControls.expirationYear.errors.required)),t.\u0275\u0275advance(5),t.\u0275\u0275repeater(e.months),t.\u0275\u0275advance(4),t.\u0275\u0275repeater(e.validYears),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(e.cardExpired?33:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.createNewBillingAddress?-1:34),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.createNewBillingAddress?-1:35),t.\u0275\u0275advance(),t.\u0275\u0275conditional(!e.submitted||e.selectedBillingAddress||e.createNewBillingAddress?-1:36),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.createNewBillingAddress?37:-1),t.\u0275\u0275advance(4),t.\u0275\u0275repeater(e.serverErrors)}}function ee(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",82),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(5);
1return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function ne(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",37),t.\u0275\u0275conditionalCreate(1,ee,2,1,"button",81),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function oe(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",84),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(5);return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275classProp("btn-disabled",!e.selectedBillingAddress||!e.paymentSelected||e.formControls.purchaseOrderNumber.invalid),t.\u0275\u0275property("disabled",!e.selectedBillingAddress||!e.paymentSelected||e.formControls.purchaseOrderNumber.invalid),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function ie(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",37),t.\u0275\u0275conditionalCreate(1,oe,2,4,"button",83),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function re(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(5);return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275classProp("btn-disabled",e.cardExpired||!e.selectedBillingAddress||e.formControls.nameOnCard.errors||e.formControls.cvv.errors),t.\u0275\u0275property("disabled",e.cardExpired||!e.selectedBillingAddress||e.formControls.nameOnCard.errors||e.formControls.cvv.errors),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function ae(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",37),t.\u0275\u0275conditionalCreate(1,re,2,4,"button",20),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function se(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(5);return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275classProp("btn-disabled",e.cardExpired||e.formControls.nameOnCard.errors||e.formControls.cvv.errors),t.\u0275\u0275property("disabled",e.cardExpired||e.formControls.nameOnCard.errors||e.formControls.cvv.errors),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function ce(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",37),t.\u0275\u0275conditionalCreate(1,se,2,4,"button",20),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function le(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(5);return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(5);t.\u0275\u0275classProp("btn-disabled",!e.paymentSelected),t.\u0275\u0275property("disabled",!e.paymentSelected),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function de(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",37),t.\u0275\u0275conditionalCreate(1,le,2,4,"button",20),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function me(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div")(1,"div")(2,"p"),t.\u0275\u0275text(3," Choose a payment method to continue checking out. You will still have a chance to review and edit your order before its final. "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275conditionalCreate(4,vt,10,2,"div",31),t.\u0275\u0275elementStart(5,"div",32)(6,"div",33)(7,"div"),t.\u0275\u0275conditionalCreate(8,At,9,1,"div",34),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(9,Rt,15,12,"div",32),t.\u0275\u0275conditionalCreate(10,Lt,5,2,"a",35),t.\u0275\u0275conditionalCreate(11,te,43,14,"div",36),t.\u0275\u0275conditionalCreate(12,ne,2,1,"div",37),t.\u0275\u0275conditionalCreate(13,ie,2,1,"div",37),t.\u0275\u0275conditionalCreate(14,ae,2,1,"div",37),t.\u0275\u0275conditionalCreate(15,ce,2,1,"div",37),t.\u0275\u0275conditionalCreate(16,de,2,1,"div",37),t.\u0275\u0275elementEnd()()()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(4),t.\u0275\u0275conditional(e.isCustomerPurchaseOrderEnabled?4:-1),t.\u0275\u0275advance(4),t.\u0275\u0275conditional("Credit Card"===e.selectedPaymentType&&e.paymentMethods.length>0&&!e.loading&&!e.newPayment?8:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional("Purchase Order"===e.selectedPaymentType?9:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.demoOnlyTrainingStore||"Credit Card"!==e.selectedPaymentType?-1:10),t.\u0275\u0275advance(),t.\u0275\u0275conditional("Credit Card"===e.selectedPaymentType&&e.createNewCard?11:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.paymentMethods.length>0&&!e.newPayment&&"Credit Card"===e.selectedPaymentType?12:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional("Purchase Order"===e.selectedPaymentType?13:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.newPayment&&e.paymentMethods.length>=0&&"Credit Card"===e.selectedPaymentType&&!e.createNewBillingAddress?14:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.newPayment&&e.paymentMethods.length>=0&&"Credit Card"===e.selectedPaymentType&&e.createNewBillingAddress?15:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(0!=e.paymentMethods.length||e.newPayment||"Credit Card"!==e.selectedPaymentType?-1:16)}}function pe(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"span")(1,"small"),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()),2&l){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("Free course code used for unit ",e.unit.unitSeri
1al)}}function ge(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"span")(1,"strong"),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"currency"),t.\u0275\u0275elementEnd()()),2&l){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,e.course.price))}}function Ce(l,T){1&l&&(t.\u0275\u0275elementStart(0,"strong"),t.\u0275\u0275text(1,"FREE"),t.\u0275\u0275elementEnd())}function ue(l,T){1&l&&(t.\u0275\u0275elementStart(0,"label",88),t.\u0275\u0275text(1,"Quantity: "),t.\u0275\u0275elementEnd())}function he(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",94),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(2).$implicit,I=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(I.adjustSeats(h.shoppingCartItem,-1))}),t.\u0275\u0275element(1,"i",95),t.\u0275\u0275elementEnd()}}function _e(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",94),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(2).$implicit,I=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(I.adjustSeats(h.shoppingCartItem,1))}),t.\u0275\u0275element(1,"i",96),t.\u0275\u0275elementEnd()}}function fe(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",89),t.\u0275\u0275conditionalCreate(1,he,2,0,"div",92),t.\u0275\u0275elementStart(2,"div")(3,"input",93),t.\u0275\u0275twoWayListener("ngModelChange",function(h){t.\u0275\u0275restoreView(e);const I=t.\u0275\u0275nextContext().$implicit;return t.\u0275\u0275twoWayBindingSet(I.shoppingCartItem.quantity,h)||(I.shoppingCartItem.quantity=h),t.\u0275\u0275resetView(h)}),t.\u0275\u0275listener("keyup",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext().$implicit,I=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(I.sanitizeNumber(h.shoppingCartItem))})("blur",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext().$implicit,I=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(I.updateCart(h))}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275conditionalCreate(4,_e,2,0,"div",92),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext().$implicit,C=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275conditional(C.isB2CAccount?-1:1),t.\u0275\u0275advance(2),t.\u0275\u0275twoWayProperty("ngModel",e.shoppingCartItem.quantity),t.\u0275\u0275advance(),t.\u0275\u0275conditional(C.isB2CAccount?-1:4)}}function xe(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",86),t.\u0275\u0275element(1,"img",87),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"div",9)(3,"span")(4,"strong"),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd()(),t.\u0275\u0275conditionalCreate(6,pe,3,1,"span"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div",9)(8,"label",88),t.\u0275\u0275text(9,"Course Price: "),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(10,ge,4,3,"span")(11,Ce,2,0,"strong"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"div",9),t.\u0275\u0275conditionalCreate(13,ue,2,0,"label",88),t.\u0275\u0275conditionalCreate(14,fe,5,3,"div",89),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"div",90)(16,"div")(17,"label",88),t.\u0275\u0275text(18,"Course Total: "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(19,"strong"),t.\u0275\u0275text(20),t.\u0275\u0275pipe(21,"currency"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(22,"div")(23,"i",91),t.\u0275\u0275listener("click",function(){const h=t.\u0275\u0275restoreView(e).$implicit,I=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(I.removeItem(h.shoppingCartItem))}),t.\u0275\u0275elementEnd()()()}if(2&l){const e=T.$implicit,C=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275property("src",e.course.image,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(e.course.title),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.shoppingCartItem.unitId?6:-1),t.\u0275\u0275advance(4),t.\u0275\u0275conditional(e.course.price>0?10:11),t.\u0275\u0275advance(3),t.\u0275\u0275conditional(C.isB2CAccount?-1:13),t.\u0275\u0275advance(),t.\u0275\u0275conditional(C.isB2CAccount?-1:14),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(21,7,C.calculateCourseTotal(e)))}}function Pe(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(4);
1return t.\u0275\u0275resetView(h.paymentButton())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275classProp("btn-disabled",e.demoOnlyTrainingStore||e.internalAccount),t.\u0275\u0275property("disabled",e.demoOnlyTrainingStore||e.creatingQuote||e.internalAccount),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function ye(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div",17),t.\u0275\u0275text(1," Order Total: "),t.\u0275\u0275elementStart(2,"div",25),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"currency"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",97),t.\u0275\u0275conditionalCreate(6,Pe,2,4,"button",20),t.\u0275\u0275elementEnd()()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,e.totalPrice)," "),t.\u0275\u0275advance(3),t.\u0275\u0275conditional(e.checkout?6:-1)}}function ve(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275classProp("btn-disabled",!e.selectedBillingAddress||!e.paymentSelected),t.\u0275\u0275property("disabled",!e.selectedBillingAddress||!e.paymentSelected),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function Oe(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275conditionalCreate(1,ve,2,4,"button",20),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function Me(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275classProp("btn-disabled",!e.paymentSelected),t.\u0275\u0275property("disabled",!e.paymentSelected),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function be(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275conditionalCreate(1,Me,2,4,"button",20),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function Se(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",82),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function we(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275conditionalCreate(1,Se,2,1,"button",81),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function Te(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275classProp("btn-disabled",e.cardExpired||!e.selectedBillingAddress||e.formControls.nameOnCard.errors||e.formControls.cvv.errors),t.\u0275\u0275property("disabled",e.cardExpired||!e.selectedBillingAddress||e.formControls.nameOnCard.errors||e.formControls.cvv.errors),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function Ie(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275conditionalCreate(1,Te,2,4,"button",20),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function Ee(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(4);
1return t.\u0275\u0275resetView(h.applyPayment())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275classProp("btn-disabled",e.cardExpired||e.formControls.nameOnCard.errors||e.formControls.cvv.errors),t.\u0275\u0275property("disabled",e.cardExpired||e.formControls.nameOnCard.errors||e.formControls.cvv.errors),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function Ae(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275conditionalCreate(1,Ee,2,4,"button",20),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?-1:1)}}function ke(l,T){if(1&l){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",85),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const h=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(h.paymentButton())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275classProp("btn-disabled",e.demoOnlyTrainingStore||e.internalAccount),t.\u0275\u0275property("disabled",e.demoOnlyTrainingStore||e.creatingQuote||e.internalAccount),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",e.buttonText," ")}}function Fe(l,T){1&l&&(t.\u0275\u0275elementStart(0,"span",23),t.\u0275\u0275text(1,"Calculating..."),t.\u0275\u0275elementEnd())}function Ve(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"span",23),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"currency"),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,e.taxAmount))}}function Be(l,T){1&l&&(t.\u0275\u0275elementStart(0,"span",25),t.\u0275\u0275text(1,"Please select a payment method"),t.\u0275\u0275elementEnd())}function Ne(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"span",25),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"currency"),t.\u0275\u0275elementEnd()),2&l){const e=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,e.totalPrice))}}function je(l,T){if(1&l&&(t.\u0275\u0275elementStart(0,"div")(1,"div",1)(2,"div",2)(3,"div",6)(4,"h1",7),t.\u0275\u0275text(5," CHECKOUT "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"h5"),t.\u0275\u0275text(7),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(8,"div",8)(9,"div",9)(10,"h4",10)(11,"span",11),t.\u0275\u0275element(12,"i",12)(13,"i",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(14," Choose a Payment Method "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275conditionalCreate(15,Ct,4,2,"div",9),t.\u0275\u0275conditionalCreate(16,ft,5,0,"div",9),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(17,"br"),t.\u0275\u0275conditionalCreate(18,me,17,10,"div"),t.\u0275\u0275elementStart(19,"div",8)(20,"div",9)(21,"h4",10)(22,"span",11),t.\u0275\u0275element(23,"i",12)(24,"i",14),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(25," Order Details "),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(26,"div",15),t.\u0275\u0275repeaterCreate(27,xe,24,9,null,null,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(29,"div",16),t.\u0275\u0275conditionalCreate(30,ye,7,4,"div",17),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(31,"div",18)(32,"div",19),t.\u0275\u0275conditionalCreate(33,Oe,2,1,"div"),t.\u0275\u0275conditionalCreate(34,be,2,1,"div"),t.\u0275\u0275conditionalCreate(35,we,2,1,"div"),t.\u0275\u0275conditionalCreate(36,Ie,2,1,"div"),t.\u0275\u0275conditionalCreate(37,Ae,2,1,"div"),t.\u0275\u0275conditionalCreate(38,ke,2,4,"button",20),t.\u0275\u0275elementStart(39,"div",21),t.\u0275\u0275text(40," Order Summary "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(41,"div",19)(42,"div",22)(43,"span"),t.\u0275\u0275text(44,"Item Total:"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(45,"span",23),t.\u0275\u0275text(46),t.\u0275\u0275pipe(47,"currency"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(48,"hr"),t.\u0275\u0275elementStart(49,"div",22)(50,"span"),t.\u0275\u0275text(51,"Subtotal:"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(52,"span",23),t.\u0275\u0275text(53),t.\u0275\u0275pipe(54,"currency"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(55,"div",22)(56,"span"),t.\u0275\u0275text(57,"Estimated Taxes:"),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(58,Fe,2,0,"span",23),t.\u0275\u0275conditionalCreate(59,Ve,3,3,"span",23),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(60,"hr"),t.\u0275\u0275elementStart(61,"div",24)(62,"span"),t.\u0275\u0275text(63,"Order Total:"),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(64,Be,2,0,"span",25),t.\u0275\u0275conditionalCreate(65,Ne,3,3,"span",25),t.\u0275\u0275elementEnd()()()()()),2&l){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate3(" ",e.combinedCart.length," ",1===e.combinedCart.length?"course":"courses"," (",e.seatCount," seats) "),t.\u0275\u0275advance(8),t.\u0275\u0275conditional(e.paymentSelected?15:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.paymentSelected?16:-1),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(e.showOrderDetails?-1:18),t.\u0275\u0275advance(8),t.\u0275\u0275property("hidden",!e.showOrderDetails),t.\u0275\u0275advance(),t.\u0275\u0275repeater(e.combinedCart),t.\u0275\u0275advance(3),t.\u0275\u0275conditional(e.checkout?30:-1),t.\u0275\u0275advance(3),t.\u0275\u0275conditional("Purchase Order"===e.selectedPaymentType?33:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.paymentMethods.length<0&&"Credit Card"===e.selectedPaymentType?34:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.paymentMethods.length>0&&!e.newPayment&&"Credit Card"===e.selectedPaymentType?35:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.newPayment&&"Credit Card"===e.selectedPaymentType&&!e.createNewBillingAddress?36:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.newPayment&&"Credit Card"===e.selectedPaymentType&&e.createNewBillingAddress?37:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.checkout?38:-1),t.\u0275\u0275advance(8),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(47,20,e.calculateCartSubtotal())),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(54,22,e.calculateCartSubtotal())),t.\u0275\u0275advance(5),t.\u0275\u0275conditional(void 0===e.taxAmount?58:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(null!=e.taxAmount?59:-1),t.\u0275\u0275advance(5),t.\u0275\u0275conditional(void 0===e.totalPrice?64:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(null!=e.totalPrice?65:-1)}}function Re(l,T){if(1&l&&(t.\u0275\u0275conditionalCreate(0,M,16,0,"div",1),t.\u0275\u0275conditionalCreate(1,je,66,24,"div")),2&l){const e=t.\u0275\u0275nextContext();t.\u0275\u0275conditional(e.loading||e.userLoggedIn?-1:0),t.\u0275\u0275advance(),t.\u0275\u0275conditional(e.userLoggedIn?1:-1)}}function De(l,T){1&l&&(t.\u0275\u0275elementStart(0,"div")(1,"div",1)(2,"div",2)(3,"div",98)(4,"h4")(5,"strong"),t.\u0275\u0275text(6,"Your cart is empty"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"a",99)(8,"strong"),t.\u0275\u0275text(9,"Continue Shopping"),t.\u0275\u0275elementEnd()()()()()()),2&l&&(t.\u0275\u0275advance(7),t.\u0275\u0275property("routerLink",t.\u0275\u0275pureFunction0(1,P)))}function Ue(l,T){if(1&l&&t.\u0275\u0275conditionalCreate(0,De,10,2,"div"),2&l){const e=t.\u0275\u0275nextContext();t.\u0275\u0275conditional(e.loading?-1:0)}}f.CheckoutComponent=(()=>{class l{constructor(e,C,h,I,H,ut,Mt,It,xt,wt,kt,Ft,Et,Vt,$e,ze,Ge,Qe){this.shoppingCartService=e,this.loader=C,this.trainingStoreService=h,this.traingStoreOrderSearchService=I,this.router=H,this.formBuilder=ut,this.checkoutService=Mt,this.checkoutStore=
1It,this.cdRef=xt,this.myAccountService=wt,this.userManagementService=kt,this.userProfileService=Ft,this.freeSeatsCheckService=Et,this.modalService=Vt,this.fleetService=$e,this.paymentMethodsService=ze,this.toast=Ge,this.statefulService=Qe,this.combinedCart=[],this.courses=[],this.freeSeatsAvailable={},this.unitInfo={},this.cart=[],this.checkout=!1,this.buttonText="Use This Payment Method",this.resetCaptcha=!1,this.validYears=[],this.serverErrors=[],this.changeSegmentEvent=new v.EventEmitter,this.loading=!1,this.demoOnlyTrainingStore=!1,this.isGuest=!1,this.isB2BAccount=!1,this.isB2CAccount=!1,this.isCustomerPurchaseOrderEnabled=!1,this.creatingQuote=!0,this.courseIsFree=!1,this.showCaliforniaB2CMessage=!1,this.freeCourseDefaultAddressId="",this.coursesAssignedList=[],this.unsubscribe$=new R.Subject,this.SharedPatterns=x.SharedPatterns,this.Object=Object,this.paymentMethods=[],this.sameAsShippingAddress=!1,this.captchaSiteKey="6LfttGAUAAAAANtlZGE-GowbxA4k-s9e9kFQsEAE"}ngOnInit(){this.loader.start(),this.loading=!0,this.user=this.statefulService.profile,this.user&&(this.userStatus=this.user.userStatus,this.isGuest="GUEST"===this.userStatus,this.isB2BAccount=this.user.isValidatedB2BUser,this.isB2CAccount=!this.isGuest&&!this.isB2BAccount,this.internalAccount=this.statefulService.profile.isInternalAssociate,this.isCustomerPurchaseOrderEnabled=this.statefulService.profile.isInternalAssociate&&!this.statefulService.hasPrivilege("Demo_Only_Cart_Checkout")||this.user.isCustomerPurchaseOrderEnabled,this.isCustomerPurchaseOrderEnabled||(this.selectedPaymentType="Credit Card")),this.userLoggedIn="GUEST"!==this.statefulService.profile.userStatus,this.isAddressModificationAllowed=this.user.isAddressModificationAllowed,this.initializeAddPaymentForm(),this.initializeAddNewAddressForm(),this.demoOnlyTrainingStore=this.statefulService.hasPrivilege("Demo_Only_Training_Store"),this.userLoggedIn?this.myAccountService.getAddresses().pipe((0,n.take)(1),(0,n.switchMap)(C=>{let h=!1,I=!1;for(let H of C.addresses)H.isShippingEnabled&&!h&&(this.address=H,h=!0),H.isBillingEnabled&&!I&&(this.billingAddress=H,I=!0);return this.myAccountService.getDefaultsAndFavorites()}),(0,R.catchError)(()=>(this.loader.stop(),this.loading=!1,console.log("Unable to get defaults and favorites"),(0,R.of)(null)))).subscribe(C=>{C&&(this.defaultsAndFavorites=C,this.profileValues={globalProfile:JSON.parse(JSON.stringify(this.statefulService.profile)),defaultShippingAddress:this.defaultsAndFavorites.defaultShippingAddress?this.defaultsAndFavorites.defaultShippingAddress:this.address,defaultBillingAddress:this.defaultsAndFavorites.defaultBillingAddress?this.defaultsAndFavorites.defaultBillingAddress:this.billingAddress},this.profileValues.globalProfile.contactId=this.profileValues.globalProfile.contactId?this.profileValues.globalProfile.contactId.toString():null,C.defaultBillingAddress&&this.selectBillingAddress(C.defaultBillingAddress)),this.combinedCart.length>0&&this.checkIfCoursesAreFree(),this.loader.stop(),this.loading=!1}):(this.loader.stop(),this.loading=!1),this.shoppingCartService.trainingStoreCart.items?.length>0?this.trainingStoreService.getAllCourses().then(C=>{this.createCombinedCart(C.hits)}):this.itemCount=0;for(let C of this.shoppingCartService.trainingStoreCart.items)this.cart.push(C);this.months=window.globalMonths;let e=(new Date).getFullYear();for(let C=0;C<=7;C++)this.validYears.push(e+C);this.userProfileService.getUser().pipe((0,n.take)(1),(0,n.switchMap)(C=>(this.auth0UserId=C?C.sub:"",this.statefulService.select(G.selectProfileDetails))),(0,n.switchMap)(C=>C&&C?.email?this.paymentMethodsService.getPaymentMethodsOrNull():(0,R.of)(null))).subscribe(C=>{C&&(this.paymentMethods=C,this.preparePaymentMethods())}),this.checkoutStore.applyingPayment.pipe((0,n.takeUntil)(this.unsubscribe$)).subscribe(C=>{this.applyingPayment=C,this.applyingPayment&&this.applyPayment()}),this.countries=window.globalCountries,this.states=window.globalStates.US,this.provinces=window.globalStates.CA}initializeAddNewAddressForm(){this.addNewAddressFormGroup=this.formBuilder.group({country:["US",[k.Validators.required]],address1:["",[k.Validators.required]],address2:[""],city:["",[k.Validators.required]],state:["",[k.Validators.required]],zipCode:["",[k.Validators.required]],county:[""]});const e=this.addNewAddressFormGroup.get("country"),C=this.addNewAddressFormGroup.get("state");e.valueChanges.subscribe(h=>{C.patchValue(""),C.setValidators("US"===h||"CA"===h?[k.Validators.required]:null),this.cdRef.detectChanges()})}toggleCreateNewBillingAddress(){this.createNewBillingAddress=!this.createNewBillingAddress,this.buttonText=this.createNewBillingAddress?"Add Billing Address":"Use This Payment Method"}preparePaymentMethods(){for(const C of this.paymentMethods)null!=C.billingAddress&&this.preparePaymentMethod(C);let e=this.defaultsAndFavorites?.defaultBillingAddress?.addressId?this.defaultsAndFavorites?.defaultBillingAddress?.addressId:this.profileValues?.defaultBillingAddress?.ebsAddressId;!this.selectedBillingAddress&&this.defaultsAndFavorites?.defaultBillingAddress&&(this.selectedBillingAddress={...this.defaultsAndFavorites.defaultBillingAddress,ebsAddressId:e,lastName:"",ownerId:"",firstName:"",phone:"",isShippingEnabled:!1,isBillingEnabled:!0,email:"",favoriteAddress:!1,defaultAddress:!0})}
1initializeAddPaymentForm(){this.addPaymentForm=this.formBuilder.group({cvv:["",[k.Validators.required]],nameOnCard:["",[k.Validators.required]],card:["",[k.Validators.required]],expirationMonth:["01",[k.Validators.required]],expirationYear:[(new Date).getFullYear()+1,[k.Validators.required]],purchaseOrderNumber:["",[D.SharedValidators.PURCHASE_ORDER_NUMBER,e=>!e.dirty||"Purchase Order"!==this.selectedPaymentType||!e.invalid&&e.value?null:{required:"Purchase Order Number is required"}]],country:["US"],address1:[""],address2:[""],city:[""],state:[""],zipCode:[""],county:[""]}),this.formControls.country.setValidators([k.Validators.required]),this.formControls.address1.setValidators([k.Validators.required]),this.formControls.city.setValidators([k.Validators.required]),this.formControls.state.setValidators([k.Validators.required]),this.formControls.zipCode.setValidators([k.Validators.required]),this.formControls.expirationMonth.valueChanges.subscribe(()=>{this.expirationDateValidation()}),this.formControls.expirationYear.valueChanges.subscribe(()=>{this.expirationDateValidation()})}checkIfCaptchaIsRequired(){this.requiresCaptcha=!1}prepareNewCreditCardRequest(){const e=new r.CreditCardRequest;
1return e.creditCardNumber=this.creditCardNumber,e.paymentMethodId="0",e.cvv=this.formControls.cvv.value,e.nameOnCard=this.formControls.nameOnCard.value,e.creditCardType="UNKNOWN",e.expirationMonth=this.formControls.expirationMonth.value,e.expirationYear=this.formControls.expirationYear.value,e}poInput(e){this.paymentSelected=e.target.value.length>0}purchaseOrder(){this.formControls.purchaseOrderNumber.valid&&(this.selectedPayment=new A.PurchaseOrder,this.selectedPayment.billingAddress.addressId=this.selectedBillingAddress.addressId?`${this.selectedBillingAddress.addressId}`:"",this.selectedPayment.billingAddress.address1=this.selectedBillingAddress.address1||void 0,this.selectedPayment.billingAddress.address2=this.selectedBillingAddress.address2||void 0,this.selectedPayment.billingAddress.city=this.selectedBillingAddress.city||void 0,this.selectedPayment.billingAddress.state=this.selectedBillingAddress.state||void 0,this.selectedPayment.billingAddress.postalCode=this.selectedBillingAddress.postalCode||void 0,this.selectedPayment.billingAddress.country=this.selectedBillingAddress.country||void 0,this.selectedPayment.billingAddress.county=this.selectedBillingAddress.county||void 0,this.selectedPayment.poNumber=this.formControls.purchaseOrderNumber.value,this.paymentSelected=!0,this.showOrderDetails=!0,this.buttonText="Place Order",this.checkout=!0,this.paymentObject={paymentMethod:this.selectedPayment})}get purchaseOrderNumber(){return this.formControls.purchaseOrderNumber.value}applyPaymentInternalAccount(){this.loader.start(),this.taxAmount=0,this.calculateCartSubtotal(),this.totalPrice=this.subtotalForIA,this.loader.stop()}applyPayment(){if(this.creatingQuote=!1,this.loader.start(),this.submitted=!0,this.serverErrors=[],this.formControls.purchaseOrderNumber.dirty&&this.formControls.purchaseOrderNumber.value?this.purchaseOrder():this.applyCreditCard(),this.paymentSelected=!0,this.internalAccount)return this.applyPaymentInternalAccount();const e=this.shoppingCartService.trainingStoreCart,C={...e,...this.profileValues,...this.paymentObject};if(this.cardPayload={card:C},this.newPayment)this.createNewBillingAddress||this.shoppingCartService.addNewCreditCard(this.cardPayload).subscribe(h=>{if(h.data.addNewCreditCard.error)this.parsePaymentErrors(h.data.addNewCreditCard.error),this.edit(),this.newCard(),this.loader.stop();else{this.paymentObject={paymentMethod:h.data.addNewCreditCard.creditCard};const H={...e,...this.profileValues,...this.paymentObject};this.payload={cart:H},this.shoppingCartService.createQuote(this.payload).subscribe(ut=>{ut.data.createQuote&&(this.taxAmount=ut.data.createQuote.taxAmount,this.totalPrice=ut.data.createQuote.totalPrice,this.payload={ebsQuote:ut.data.createQuote}),this.loader.stop()})}});else{const h={...e,...this.profileValues,...this.paymentObject};this.payload={cart:h},this.shoppingCartService.createQuote(this.payload).pipe((0,n.take)(1),(0,n.switchMap)(I=>{if(I.data.createQuote.error&&this.toast.popError('Please contact us at </b><a href="mailto:[email protected]">[email protected]</a></b> to set up a billing address to proceed with checkout.'),I.data.createQuote&&!I.data.createQuote.error&&(this.taxAmount=I.data.createQuote.taxAmount,this.totalPrice=I.data.createQuote.totalPrice,this.payload={ebsQuote:I.data.createQuote}),0===this.calculateCartSubtotal()){let H=this.payload.ebsQuote;return H.paymentRec.creditCardCode=null,H.paymentRec.creditCardExpirationDate=null,H.paymentRec.creditCardHolderName=null,H.paymentRec.paymentAssignmentId=null,H.paymentRec.paymentTerms=null,H.paymentRec.creditCardToken=null,H.paymentRec.paymentTypeCode="PO",H.paymentRec.poNumber="FREE COURSES",H.quoteNumber=null,H.quoteId=null,H.quoteName=F.QuoteNames.QUOTE_NAME,"B2B"===this.statefulService.profile.registrationType&&(H.contactId=this.statefulService.profile.contactId.toString()),this.checkoutService.createOrUpdateQuote(H).pipe((0,n.take)(1))}return(0,R.of)(this.payload)})).subscribe(I=>{this.payload=I.ebsQuote?I:{ebsQuote:I},this.loader.stop()})}}validateAddress(e){const C=this.shoppingCartService.trainingStoreCart,h={...C,...this.profileValues,...this.paymentObject};this.cardPayload={card:h};let I={...e.value};I.zipCode&&(I.postalCode=I.zipCode,delete I.zipCode),(I.county||I.county.length>=0)&&delete I.county,this.userManagementService.validateAddress(I).subscribe(H=>{H?"VALID"===H.validationResult?this.statefulService.profile.isValidatedB2BUser||"CA"!==H.address.state?(e.controls.address1.patchValue(H.address.address1),e.controls.address2.patchValue(H.address.address2),e.controls.city.patchValue(H.address.city),e.controls.zipCode.patchValue(H.address.postalCode),this.createNewBillingAddress?this.createAddress(e).then(ut=>{const Mt=this.convertFormToAccountAddress(this.addNewAddressFormGroup);Mt.ebsAddressId=this.customAddressId,this.selectBillingAddress(Mt);const It=this.prepareNewCreditCardRequest();
1this.selectCreditCardFromRequest(It),this.addSelectedBillingAddressToRequest(It),this.showOrderDetails=!0,this.paymentSelected=!0,this.buttonText="Place Order",this.checkout=!0,this.paymentObject={paymentMethod:this.selectedPayment};const xt={...C,...this.profileValues,...this.paymentObject};this.cardPayload={card:xt},this.doCountyLookup(e),this.shoppingCartService.addNewCreditCard(this.cardPayload).subscribe(wt=>{if(wt.data.addNewCreditCard.error)this.parsePaymentErrors(wt.data.addNewCreditCard.error),this.edit(),this.newCard(),this.loader.stop();else{this.paymentObject={paymentMethod:wt.data.addNewCreditCard.creditCard};const Ft={...C,...this.profileValues,...this.paymentObject};this.payload={cart:Ft},this.shoppingCartService.createQuote(this.payload).subscribe(Et=>{Et.data.createQuote&&(this.taxAmount=Et.data.createQuote.taxAmount,this.totalPrice=Et.data.createQuote.totalPrice,this.payload={ebsQuote:Et.data.createQuote}),this.loader.stop()})}})}):(this.doCountyLookup(e),this.shoppingCartService.addNewCreditCard(this.cardPayload).subscribe(ut=>{if(ut.data.addNewCreditCard.error)this.parsePaymentErrors(ut.data.addNewCreditCard.error),this.edit(),this.newCard(),this.loader.stop();else{this.paymentObject={paymentMethod:ut.data.addNewCreditCard.creditCard};const It={...C,...this.profileValues,...this.paymentObject};this.payload={cart:It},this.shoppingCartService.createQuote(this.payload).subscribe(xt=>{xt.data.createQuote.error&&this.toast.popError('Please contact us at </b><a href="mailto:[email protected]">[email protected]</a></b> to set up a billing address to proceed with checkout.'),xt.data.createQuote&&!xt.data.createQuote.error&&(this.taxAmount=xt.data.createQuote.taxAmount,this.totalPrice=xt.data.createQuote.totalPrice,this.payload={ebsQuote:xt.data.createQuote}),this.loader.stop()})}}))):this.showCaliforniaB2CMessage=!0:(this.serverErrors.push("Error validating address provided. Please check your input and try again. If you continue to experience problems, please call 877-462-5832."),this.edit(),this.newCard(),this.loader.stop()):(this.edit(),this.newCard(),this.loader.stop())})}doCountyLookup(e){"US"===e.controls.country.value&&this.checkoutService.fetchCounty(`${e.controls.address1.value} ${e.controls.address2.value}, ${e.controls.state.value} ${e.controls.zipCode.value}`).subscribe(h=>{e.controls.county.patchValue(h)})}applyCreditCard(){if(this.newPayment)if(this.createNewBillingAddress)this.loader.start(),this.checkout=!1,this.paymentSelected=!1,this.showOrderDetails=!0,this.validateAddress(this.addNewAddressFormGroup);else{const e=this.prepareNewCreditCardRequest();this.selectCreditCardFromRequest(e),this.addSelectedBillingAddressToRequest(e),this.showOrderDetails=!0,this.paymentSelected=!0,this.buttonText="Place Order",this.checkout=!0,this.paymentObject={paymentMethod:this.selectedPayment}}else if(this.existingPaymentMethodDropdown){const e=this.existingPaymentMethodDropdown.nativeElement.value;this.selectedPayment=this.paymentMethods.filter(C=>C.id==e).pop(),this.showBottomCaptcha=!0,this.showOrderDetails=!0,this.paymentSelected=!0,this.buttonText="Place Order",this.checkout=!0,this.paymentObject={paymentMethod:this.selectedPayment}}}selectCreditCardFromRequest(e){this.selectedPayment=new A.CreditCard,this.selectedPayment.cardNumber=e.creditCardNumber,this.selectedPayment.cardType=e.creditCardType,this.selectedPayment.cardHolder=e.nameOnCard,this.selectedPayment.cvv=e.cvv,this.selectedPayment.expirationDate.monthOfYear=Number(e.expirationMonth),this.selectedPayment.expirationDate.year=Number(e.expirationYear),this.selectedPayment.billingAddress.addressId=this.createNewBillingAddress?`${this.customAddressId}`:this.selectedBillingAddress.addressId?`${this.selectedBillingAddress.addressId}`:"",this.selectedPayment.billingAddress.address1=this.selectedBillingAddress.address1||void 0,this.selectedPayment.billingAddress.address2=this.selectedBillingAddress.address2||void 0,this.selectedPayment.billingAddress.city=this.selectedBillingAddress.city||void 0,this.selectedPayment.billingAddress.state=this.selectedBillingAddress.state||void 0,this.selectedPayment.billingAddress.postalCode=this.selectedBillingAddress.postalCode||void 0,this.selectedPayment.billingAddress.country=this.selectedBillingAddress.country||void 0,this.selectedPayment.billingAddress.county=this.selectedBillingAddress.county||void 0,this.preparePaymentMethod(this.selectedPayment)}addSelectedBillingAddressToRequest(e){e.ebsAddressId=this.selectedBillingAddress.ebsAddressId,e.address1=this.selectedBillingAddress.address1,e.address2=this.selectedBillingAddress.address2,e.city=this.selectedBillingAddress.city,e.state=this.selectedBillingAddress.state,e.postalCode=this.selectedBillingAddress.postalCode,e.country=this.selectedBillingAddress.country,e.county=this.selectedBillingAddress.county}changeSegment(e){this.changeSegmentEvent.emit(e)}parsePaymentErrors(e){this.serverErrors.push(e),this.serverErrors.length>0&&(this.showOrderDetails=!1,this.checkout=!1,this.buttonText="Use This Payment Method")}convertFormToAccountAddress(e){const C=new L.AccountAddress;return C.address1=e.controls.address1.value,C.address2=e.controls.address2.value,C.city=e.controls.city.value,C.country=e.controls.country.value,C.county=e.controls.county.value,C.state=e.controls.state.value,C.postalCode=e.controls.zipCode.value,C.favoriteAddress=!1,C.defaultAddress=!1,C.province="CA"===C.country?C.state:"",C}convertPaymentBillingAddressToAccountAddress(e){const C=new L.AccountAddress;return C.address1=e.address1,C.address2=e.address2,C.city=e.city,C.state=e.state,C.postalCode=e.postalCode,C.country=e.country,C.county=e.county,C}isEmptyObject(e){return 0===Object.keys(e).length&&(this.serverErrors.push({localizedMessage:"An error occurred. Please try again later. If you continue to experience problems, please call 877-462-5832."}),!0)}preparePaymentMethod(e){e.cardNumber&&e.cardNumber.length>4&&(e.lastFourDigits=e.cardNumber.slice(-4));const C=(0,d.default)(`${e.expirationDate.monthOfYear}/01/${e.expirationDate.year}`,"M/DD/YYYY");let h=e.cardType;"UNKNOWN"===h&&(h="Credit Card"),e.formattedText=`${h} ending in ${e.lastFourDigits} ${C.format("MM/YYYY")}`;let I=e.billingAddress.address1?`${e.billingAddress.address1} `:"";switch(I+=e.billingAddress.address2?`${e.billingAddress.address2} `:"",I+=e.billingAddress.city?`${e.billingAddress.city} `:"",I+=e.billingAddress.state?`${e.billingAddress.state} `:"",I+=e.billingAddress.postalCode?e.billingAddress.postalCode:"",e.formattedTextWithAddress=`${e.formattedText} --- ${I}`,e.cardType){case"VISA":e.creditCardIconClass="fa-cc-visa";break;case"MASTERCARD":e.creditCardIconClass="fa-cc-mastercard";break;case"DISCOVER":e.creditCardIconClass="fa-cc-discover";break;case"AMEX":e.creditCardIconClass="fa-cc-amex";break;default:e.creditCardIconClass=""}}
1expirationDateValidation(){this.cardExpired=!1;const e=this.formControls.expirationMonth.value,C=this.formControls.expirationYear.value;e&&C&&(0,d.default)(`${e}/01/${C}`,"MM/DD/YYYY").isBefore((0,d.default)())&&(this.cardExpired=!0)}onSelected(e){this.paymentSelected=!0}sanitizeNumber(e){e.quantity=Number(`${e.quantity}`.replace(/[^0-9]+/g,""))}selectBillingAddress(e){this.selectedBillingAddress=e,!this.selectedBillingAddress.ebsAddressId&&this.selectedBillingAddress.addressId&&(this.selectedBillingAddress.ebsAddressId=this.selectedBillingAddress.addressId),this.generateFullBillingAddress()}generateFullBillingAddress(){this.fullBillingAddress=`${this.selectedBillingAddress.address1} ${this.selectedBillingAddress.address2?this.selectedBillingAddress.address2:""}\n${this.selectedBillingAddress.city+(this.selectedBillingAddress.state?`, ${this.selectedBillingAddress.state}`:"")} ${this.selectedBillingAddress.postalCode}`}wipeToken(){this.creditCardNumber="",this.maskedCreditCardNumber=""}get formControls(){return this.addPaymentForm.controls}createCombinedCart(e){this.combinedCart=[],this.courses=[],this.seatCount=0;for(let C of this.shoppingCartService.trainingStoreCart.items){this.seatCount+=C.quantity;const h=e.find(H=>H.objectID===C.itemId);new Q.Content,this.isB2CAccount&&this.traingStoreOrderSearchService.getUserCourses(this.user.email).subscribe(H=>{for(let ut of H)this.coursesAssignedList.push(ut.code),this.coursesAssignedList.includes(h.LMSReferenceCode)&&(this.modalService.open(E.CourseAssignedInCheckoutModalComponent),this.checkout=!1);this.loader.stop()}),h&&this.courses.push(h),this.combinedCart.push({shoppingCartItem:JSON.parse(JSON.stringify(C)),course:JSON.parse(JSON.stringify(h,["hits","title","price","tags","image"]))}),this.itemCount=C.quantity,this.internalAccount&&(this.applyPaymentInternalAccount(),this.loader.stop())}0===this.itemCount&&this.loader.stop()}calculateCourseTotal(e){return this.sanitizeNumber(e.shoppingCartItem),e.course.price*e.shoppingCartItem.quantity}calculateCartSubtotal(){let e=0;for(let C of this.combinedCart)e+=this.calculateCourseTotal(C);return this.subtotalForIA=e,e}calculateTaxes(){let e=.09;return e*=this.calculateCartSubtotal(),e}calculateTotal(){let e=0;return e=this.calculateTaxes()+this.calculateCartSubtotal(),0===e&&setTimeout(()=>{this.showOrderDetails=!0,this.paymentSelected=!1,this.buttonText="Place Order",this.checkout=!0,this.showBottomCaptcha=!0,this.selectedPaymentType=""},0),e}adjustSeats(e,C){if(this.sanitizeNumber(e),e.quantity!=this.freeSeatsAvailable[e.shoppingCartItemId]||C<0){e.quantity=Number(e.quantity)+C,e.quantity<1&&(e.quantity=1),e.unitId&&(e.freeSeats=e.quantity>this.freeSeatsAvailable[e.shoppingCartItemId]?this.freeSeatsAvailable[e.shoppingCartItemId]:e.quantity,e.discount=e.freeSeats*e.price),this.itemCount=e.quantity;let h=this.shoppingCartService.trainingStoreCart.items.find(I=>I.itemId===e.itemId);h&&(h.quantity=e.quantity),this.updateCart(),this.applyPayment()}}removeItem(e){const C=this.combinedCart.length;e.quantity=0,this.itemCount=e.quantity;let h=this.shoppingCartService.trainingStoreCart.items.find(I=>I.itemId===e.itemId);h&&(h.quantity=e.quantity),this.updateCart(),C>1&&this.applyPayment()}updateCart(e){if(this.loader.start(),e){let C=this.shoppingCartService.trainingStoreCart.items.find(h=>h.itemId===e.shoppingCartItem.itemId);C&&(C.quantity=e.shoppingCartItem.quantity)}this.shoppingCartService.addOrUpdateItemsInShoppingCart("training-store",this.shoppingCartService.trainingStoreCart.items).pipe((0,n.take)(1)).subscribe(C=>{this.statefulService.dispatch((0,i.setTrainingStoreCartAction)({trainingStoreCart:C})),this.createCombinedCart(this.courses)})}paymentButton(){this.loader.start(),this.showOrderDetails=!0,this.paymentSelected=!0,this.buttonText="Place Order",this.showBottomCaptcha=!0,this.shoppingCartService.submitQuote(this.payload).subscribe(e=>{let C=[];for(let h of e.data.submitQuote.commerceItems){let I=this.combinedCart.find(ut=>ut.course.title==h.productDisplayName)?.shoppingCartItem;C.push({externalCourseId:h.productId,quantity:h.quantity,freeSeats:I?.freeSeats?I.freeSeats:0})}this.shoppingCartService.createCourseOrder(e.data.submitQuote.ebsOrderNumber,e.data.submitQuote.profile.accountId,C).subscribe(h=>{for(let H of h.data.createCourseOrder.courses)this.isB2CAccount&&this.traingStoreOrderSearchService.assignSeat(e.data.submitQuote.ebsOrderNumber,{courseId:H.courseId,firstName:e.data.submitQuote.profile.firstName,lastName:e.data.submitQuote.profile.lastName,email:e.data.submitQuote.profile.email}).subscribe();let I={list:[]};for(let H of this.combinedCart)H.shoppingCartItem.freeSeats&&H.shoppingCartItem.freeSeats>0&&I.list.push({unitId:H.shoppingCartItem.unitId||"",seatsUsed:H.shoppingCartItem.freeSeats});I.list.length>0&&this.freeSeatsCheckService.createOrUpdate(I).subscribe(),this.checkoutStore.setOrder(e.data.submitQuote),this.checkout=!0;for(let H of this.shoppingCartService.trainingStoreCart.items)H.quantity=0;this.updateCart(),this.finalizePayment()}),this.checkoutStore.setOrder(e.data.submitQuote),this.checkout=!0;for(let h of this.shoppingCartService.trainingStoreCart.items)h.quantity=0;this.updateCart(),this.finalizePayment()})}finalizePayment(){!0===this.checkout&&(this.loader.stop(),this.router.navigate(["/pages/training-store/checkout-confirmation"]))}edit(){this.showOrderDetails=!1,this.paymentSelected=!1,this.selectedPayment=null,this.newPayment=!1,this.buttonText="Use This Payment Method",this.checkout=!1,this.createNewCard=!1,this.createNewBillingAddress&&(this.buttonText="Add Billing Address")}togglePaymentType(e){"Purchase Order"===e&&(this.createNewCard=!1),this.selectedPaymentType=e}updateCaptchaValidity(e){e?(this.captchaIsValid=!0,this.resetCaptcha=!1):this.captchaIsValid=!1}getCaptchaResponse(e){this.captchaResponse=e}resetCaptchaForm(){this.resetCaptcha=!0,this.captchaIsValid=!1}newCard(){this.createNewCard=!this.createNewCard,this.newPayment=!this.newPayment,this.newPayment&&(this.selectedPayment=null,this.paymentSelected=!1)}createAddress(e){return new Promise((C,h)=>{this.myAccountService.addAddress(this.convertFormToAccountAddress(e)).subscribe(I=>{this.customAddressId=I,C(this.customAddressId)},I=>{h(I)})})}checkIfCoursesAreFree(){if(0===this.calculateCartSubtotal())if(this.internalAccount)this.showOrderDetails=!0,this.buttonText="Place Order",this.taxAmount=0,this.totalPrice=0,this.checkout=!0;else{this.loader.start(),this.selectedPayment=new A.PurchaseOrder,this.selectedPayment.billingAddress.addressId=this.profileValues.defaultBillingAddress.addressId||this.profileValues.defaultBillingAddress.ebsAddressId,this.selectedPayment.billingAddress.address1=this.profileValues.defaultBillingAddress.address1,this.selectedPayment.billingAddress.address2=this.profileValues.defaultBillingAddress.address2,this.selectedPayment.billingAddress.city=this.profileValues.defaultBillingAddress.city,this.selectedPayment.billingAddress.state=this.profileValues.defaultBillingAddress.state,this.selectedPayment.billingAddress.postalCode=this.profileValues.defaultBillingAddress.postalCode,this.selectedPayment.billingAddress.country=this.profileValues.defaultBillingAddress.country,this.selectedPayment.billingAddress.county=this.profileValues.defaultBillingAddress.county,this.selectedPayment.poNumber="FREE COURSES",this.showOrderDetails=!0,this.buttonText="Loading...",this.taxAmount=0,this.totalPrice=0,this.checkout=!0,this.paymentObject={paymentMethod:this.selectedPayment};const C={...this.shoppingCartService.trainingStoreCart,...this.profileValues,...this.paymentObject};this.payload={cart:C},this.shoppingCartService.createQuote(this.payload).subscribe(h=>{h.data.createQuote.error&&(this.toast.popError('Please contact us at </b><a href="mailto:[email protected]">[email protected]</a></b> to set up a billing address to proceed with checkout.'),this.loader.stop()),h.data.createQuote&&!h.data.createQuote.error&&(this.loader.stop(),this.creatingQuote=!1,this.buttonText="Place Order",this.payload={ebsQuote:h.data.createQuote})})}}sendToLogin(){window.location.href=`${window.location.origin}/login?originalURL=${encodeURIComponent(window.location.href)}`}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(C){return new(C||l)(t.\u0275\u0275directiveInject(ht.ShoppingCartService),t.\u0275\u0275directiveInject(S.LoadingService),t.\u0275\u0275directiveInject(ot.TrainingStoreService),t.\u0275\u0275directiveInject(O.TrainingStoreOrderSearchService),t.\u0275\u0275directiveInject(X.Router),t.\u0275\u0275directiveInject(Z.FormBuilder),t.\u0275\u0275directiveInject(_t.CheckoutService),t.\u0275\u0275directiveInject(bt.CheckoutStore),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(St.MyAccountService),t.\u0275\u0275directiveInject(Y.UserManagementService),t.\u0275\u0275directiveInject(mt.UserProfileService),t.\u0275\u0275directiveInject(w.FreeSeatsCheckService),t.\u0275\u0275directiveInject(tt.NgbModal),t.\u0275\u0275directiveInject(rt.FleetService),t.\u0275\u0275directiveInject(ct.PaymentMethodsService),t.\u0275\u0275directiveInject(Pt.ToastComponent),t.\u0275\u0275directiveInject(K.StatefulService))}}static{this.\u0275cmp=t.\u0275\u0275defineComponent({type:l,selectors:[["altecConnect-checkout"]],viewQuery:function(C,h){if(1&C&&t.\u0275\u0275viewQuery(p,5),2&C){let I;t.\u0275\u0275queryRefresh(I=t.\u0275\u0275loadQuery())&&(h.existingPaymentMethodDropdown=I.first)}},outputs:{captchaIsValid:"captchaIsValid",changeSegmentEvent:"changeSegmentEvent"},standalone:!1,decls:2,vars:1,consts:[["existingPaymentMethodDropdown",""],[1,"container","checkout-container"],[1,"checkout-section"],[1,"checkout-links"],[1,"mt-1","mb-1"],[1,"btn","login-button",3,"click"],[1,"checkout-links","order-header"],[1,"h1-altec"],[1,"checkout-header"],[1,"checkout-cell"],[1,"heading"],[1,"fa-stack","fa-md"],[1,"fa","fa-circle","fa-stack-2x","icon-background"],[1,"fa","fa-credit-card","fa-regular","fa-stack-1x","credit-card"],[1,"fa","fa-list","fa-regular","fa-stack-1x","credit-card"],[1,"checkout-columns",3,"hidden"],[1,"bottom"],[1,"order-total"],[1,"order-summary"],[1,"pt-3"],[1,"btn-altec","btn-ac",3,"btn-disabled","disabled"],[1,"order-title"],[1,"summary-line"],[1,"subtotal"],[1,"summary-line","order-title"],[1,"total-cost"],[1,"payment-selected"],["aria-hidden","true",3,"class"],["aria-hidden","true"],[1,"edit-button"],[3,"click"],[1,"pay-columns"],[1,"payment-columns"],[1,"payment-cell"],[1,"mb-3"],[1,"btn","btn-link"],["id","addPaymentForm"],[1,"mt-3","payment-button"],[1,"pay-cell"],[1,"radio-inline"],["type","radio","name","paymentType",3,"click","checked"],[1,"form-control","form-control-sm"],[1,"po-box"],[1,"form-label"],["type","text","maxlength","50",1,"form-control","form-control-sm"],[1,"form-control","form-control-sm",3,"change"],[3,"value"],[1,"mb-3","required"],[1,"row"],[1,"col-sm-3","form-label"],[1,"col-sm-5"],["type","text","maxlength","50",1,"form-control","form-control-sm",3,"keyup","formControl"],[1,"col-sm-11","px-0"],[3,"addressSelected","initiallySelectedAddress","accountId","partyId","showFavoriteToggle","showShowMoreButton","addressType","showDefaultBillingToggle"],[1,"purchase-order"],[1,"form-text"],[1,"error-text"],[1,"btn","btn-link",3,"click"],[1,"fa","fa-plus","me-2"],[1,"fa","fa-minus","me-2"],[1,"mt-2",3,"formGroup"],[1,"required"],[3,"tokenizedCardNumber"],[1,"cvv-container"],["type","text","formControlName","cvv",1,"form-control","form-control-sm",2,"max-width","80px"],["ngbTooltip","The CVV Number (Card Verification Value) on your credit card or debit card is a 3 digit number located on the back of VISA\xae, MasterCard\xae and Discover\xae branded credit and debit cards. On your American Express\xae branded credit or debit card, it is a 4 digit numeric code located on the front.","placement","right",1,"fa","fa-question-circle","cvv-info-icon","d-none","d-sm-inline-block"],[1,"d-block","d-sm-none","mt-1"],["ngbTooltip","The CVV Number (Card Verification Value) on your credit card or debit card is a 3 digit number located on the back of VISA\xae, MasterCard\xae and Discover\xae branded credit and debit cards. On your American Express\xae branded credit or debit card, it is a 4 digit numeric code located on the front.","triggers","click","placement","top",1,"cvv-info-icon"],["type","text","formControlName","nameOnCard",1,"form-control","form-control-sm"],[1,"po-box","required"],[1,"expiration-date"],["formControlName","expirationMonth",1,"form-control","form-control-sm"],[1,"expiration-date-year"],["formControlName","expirationYear",1,"form-control","form-control-sm"],[1,"mt-3"],[1,"cardConnect"],[1,""],[1,"red"],["role","alert",1,"alert","alert-danger"],[3,"addressFormGroup","countries","states","provinces","submitted"],[1,"text-center"],[1,"btn-altec","btn-ac"],[1,"btn-altec","btn-ac",3,"click"],[1,"btn-altec","btn-ac","payment-button-po",3,"btn-disabled","disabled"],[1,"btn-altec","btn-ac","payment-button-po",3,"click","disabled"],[1,"btn-altec","btn-ac",3,"click","disabled"],[1,"checkout-cell","image-cell"],[1,"course-image",3,"src"],[1,"mobile-label"],[1,"seats-container"],["id","course-total",1,"checkout-cell"],[1,"fa","fa-2x","fa-tras
1h","float-end","pe-2","pointer",3,"click"],[1,"pointer","counter-button"],["type","text","min","0","data-mask","0#",3,"ngModelChange","keyup","blur","ngModel"],[1,"pointer","counter-button",3,"click"],[1,"fa","fa-lg","fa-minus"],[1,"fa","fa-lg","fa-plus"],[1,"bottom-button"],[1,"empty-cart"],[1,"btn-altec","btn-ac",3,"routerLink"]],template:function(C,h){1&C&&t.\u0275\u0275conditionalCreate(0,Re,2,2)(1,Ue,1,1),2&C&&t.\u0275\u0275conditional(!h.loading&&h.combinedCart.length>0?0:1)},dependencies:[X.RouterLink,pt.NgbTooltip,Z.\u0275NgNoValidate,Z.NgSelectOption,Z.\u0275NgSelectMultipleOption,Z.DefaultValueAccessor,Z.SelectControlValueAccessor,Z.NgControlStatus,Z.NgControlStatusGroup,Z.MaxLengthValidator,Z.NgModel,y.AddressAutocompleteComponent,Z.FormControlDirective,Z.FormGroupDirective,Z.FormControlName,W.CardNumberComponent,u.NewAddressComponent,V.CurrencyPipe],styles:[".icon-background[_ngcontent-%COMP%]{color:#efb310}.credit-card[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]:hover{cursor:pointer}.login-button[_ngcontent-%COMP%]{background:#efb310;color:#fff;min-width:30%}.cardConnect[_ngcontent-%COMP%]{flex:1;min-width:0;padding-right:0}.cardConnect[_ngcontent-%COMP%] .form-text[_ngcontent-%COMP%]{color:#a94442}.test-box[_ngcontent-%COMP%]{display:flex;min-width:100%}.prompt[_ngcontent-%COMP%]{display:flex;margin-left:8px}.cvv-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.cvv-info-icon[_ngcontent-%COMP%]{color:#337ab7;cursor:pointer;font-size:1.1em}.error-text[_ngcontent-%COMP%]{display:block;margin-top:5px;color:#a94442}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.order-title[_ngcontent-%COMP%], .order-total[_ngcontent-%COMP%]{font-weight:700;font-size:medium;padding-top:calc(var(--bs-gutter-x, 1.5rem) * .667)}.total-cost[_ngcontent-%COMP%]{font-size:medium;color:green;font-weight:600}.summary-line[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.25rem 0}@media(min-width:768px)and (max-width:1199px){.summary-line[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}.bottom[_ngcontent-%COMP%]{display:flex;justify-content:end}.bottom-button[_ngcontent-%COMP%]{padding-top:20px}.edit-button[_ngcontent-%COMP%]{margin-left:auto;padding-right:20px;padding-top:calc(var(--bs-gutter-x, 1.5rem) * .667)}.btn-altec[_ngcontent-%COMP%]{background:#efb310;color:#fff;min-width:100%}.payment-button[_ngcontent-%COMP%]{max-width:30%}.payment-button-po[_ngcontent-%COMP%]{margin-top:30px}.dropdown[_ngcontent-%COMP%]{width:100%;height:30px}
1.control-label[_ngcontent-%COMP%]{min-width:200px}.expiration-date[_ngcontent-%COMP%]{display:inline-block;width:auto;min-width:80px}.expiration-date-year[_ngcontent-%COMP%]{display:inline-block;width:auto;min-width:80px;margin-left:.5rem}.input-box[_ngcontent-%COMP%]{min-width:100%}.pay-columns[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:auto auto auto 1fr}.pay-columns[_ngcontent-%COMP%] .pay-cell[_ngcontent-%COMP%]{padding-left:1em}.pay-columns[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.payment-columns[_ngcontent-%COMP%] .payment-cell[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}.payment-columns[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.po-box[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-wrap:wrap;margin-bottom:1rem}.po-box[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{flex:0 0 150px;padding-top:.25rem;padding-right:1rem}.po-box[_ngcontent-%COMP%] .error-text[_ngcontent-%COMP%]{flex-basis:100%;order:99;padding-left:150px}label.radio-inline[_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{display:inline;font-size:small;font-weight:400!important;padding-left:5px}.checkout-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1.5rem;padding-bottom:16px}.browse-link[_ngcontent-%COMP%]{margin-left:auto}.checkout-section[_ngcontent-%COMP%]{width:70%}.mobile-label[_ngcontent-%COMP%]{display:none}.course-image[_ngcontent-%COMP%]{max-width:100%}.order-summary[_ngcontent-%COMP%]{width:300px;padding-top:40px;min-width:270px;max-width:400px;overflow:hidden}.order-summary[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{margin:.5rem 0}.checkout-header[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:60% 30% 10%;background-color:#e1e1e1;padding:calc(var(--bs-gutter-x, 1.5rem) * .667);margin-top:1rem}.checkout-header[_ngcontent-%COMP%] .checkout-cell[_ngcontent-%COMP%]{background-color:#e1e1e1}.checkout-header[_ngcontent-%COMP%] .checkout-cell[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{margin:0;display:flex;align-items:center}.purchase-order[_ngcontent-%COMP%]{min-width:100%;padding-right:0}.empty-cart[_ngcontent-%COMP%]{min-width:25%}.checkout-columns[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:15% 40% 15% 1fr 15%;padding-top:16px}.checkout-columns[_ngcontent-%COMP%] .checkout-cell[_ngcontent-%COMP%]{padding-top:16px;padding-left:1em;padding-bottom:16px;border-bottom:solid 2px #E8E8E8;flex-wrap:wrap}.checkout-columns[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.seats-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;min-width:80px;border:solid 1px lightgray;min-height:36px}.seats-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{all:unset;min-width:24px;max-width:40px;text-align:center}#course-total[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;padding:60px 8px 8px}.subtotal[_ngcontent-%COMP%]{font-size:12px;font-weight:600}.top-border[_ngcontent-%COMP%]{border-top:solid 1px lightgray;padding-bottom:calc(var(--bs-gutter-x, 1.5rem) * .667)}@media screen and (max-width:500px){.checkout-links[_ngcontent-%COMP%]{min-width:50%}}@media screen and (max-width:767px){.checkout-container[_ngcontent-%COMP%]{display:block}.payment-button[_ngcontent-%COMP%], .payment-button-po[_ngcontent-%COMP%], .bottom-button[_ngcontent-%COMP%], .order-total[_ngcontent-%COMP%]{display:none}.bottom[_ngcontent-%COMP%]{width:100%;display:contents}.payment-selected[_ngcontent-%COMP%]{padding-left:5px}.edit-button[_ngcontent-%COMP%]{margin-left:0;padding-left:5px}.expiration-date[_ngcontent-%COMP%]{display:inline-block;min-width:80px}.expiration-date-year[_ngcontent-%COMP%]{display:inline-block;min-width:80px;margin-left:.5rem}.checkout-links[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.checkout-links[_ngcontent-%COMP%] #link-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.browse-link[_ngcontent-%COMP%]{margin-left:0}.checkout-section[_ngcontent-%COMP%]{width:100%}.payment-columns[_ngcontent-%COMP%]{width:100%;padding-top:20px}.pay-columns[_ngcontent-%COMP%]{width:100%}.payment-cell[_ngcontent-%COMP%]{display:inline;width:100%}.order-summary[_ngcontent-%COMP%]{width:100%;max-width:100%;display:inline}.po-box[_ngcontent-%COMP%]{flex-wrap:wrap}.po-box[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{flex:0 0 100%;padding-right:0}.po-box[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .po-box[_ngcontent-%COMP%] > select[_ngcontent-%COMP%], .po-box[_ngcontent-%COMP%] > .cvv-container[_ngcontent-%COMP%], .po-box[_ngcontent-%COMP%] > altecConnect-card-number[_ngcontent-%COMP%]{width:100%}.po-box[_ngcontent-%COMP%] .error-text[_ngcontent-%COMP%]{padding-left:0}.checkout-header[_ngcontent-%COMP%]{min-width:100%;display:block}.heading[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:100%}.checkout-columns[_ngcontent-%COMP%]{grid-template-columns:1fr}.checkout-columns[_ngcontent-%COMP%] .checkout-cell[_ngcontent-%COMP%]{border-bottom:unset}.checkout-columns[_ngcontent-%COMP%] .image-cell[_ngcontent-%COMP%]{display:flex;justify-content:center}.checkout-columns[_ngcontent-%COMP%] .seats-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:unset}.checkout-columns[_ngcontent-%COMP%] .mobile-label[_ngcontent-%COMP%]{display:block}.checkout-columns[_ngcontent-%COMP%] #course-total[_ngcontent-%COMP%]{border-bottom:solid 24px #E8E8E8}.checkout-section[_ngcontent-%COMP%]{max-width:unset;display:flex;flex-direction:column;align-items:center}}"]})}}return l})()}
1,9915(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.CourseSearchComponent=void 0;const g=o(31635),k=(o(49849),o(7901),o(83352),o(59091)),a=o(19896),L=o(37517),m=(o(6324),o(39313)),n=(o(35445),o(71964),o(97377),o(20851),g.__importStar(o(49849))),s=g.__importStar(o(7901)),et=g.__importStar(o(83352)),j=g.__importStar(o(71964)),G=g.__importStar(o(6324)),at=g.__importStar(o(35445)),nt=g.__importStar(o(20851)),i=g.__importStar(o(97377)),J=g.__importStar(o(60177)),q=g.__importStar(o(38690)),Q=g.__importStar(o(27175)),z=g.__importStar(o(2725)),E=g.__importStar(o(66974)),st=["lowerPaginator"];function B(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"span",18),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(p);const M=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(M.clearFilters())}),n.\u0275\u0275element(1,"i",19),n.\u0275\u0275text(2," Clear Filters "),n.\u0275\u0275elementEnd()}}function it(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"span",20),n.\u0275\u0275listener("click",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(N.removeFilter(M))}),n.\u0275\u0275text(1),n.\u0275\u0275element(2,"i",21),n.\u0275\u0275elementEnd()}if(2&u){const p=V.$implicit;n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate1("",p.value," ")}}function x(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"span",20),n.\u0275\u0275listener("click",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(N.removeFilter(M))}),n.\u0275\u0275text(1),n.\u0275\u0275element(2,"i",21),n.\u0275\u0275elementEnd()}if(2&u){const p=V.$implicit;n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate1("",p.value," ")}}function D(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"span",20),n.\u0275\u0275listener("click",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(N.removeFilter(M))}),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"tagName"),n.\u0275\u0275element(3,"i",21),n.\u0275\u0275elementEnd()}if(2&u){const p=V.$implicit;n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate1("",n.\u0275\u0275pipeBind1(2,1,p.value)," ")}}function F(u,V){1&u&&n.\u0275\u0275elementContainer(0)}function t(u,V){1&u&&n.\u0275\u0275elementContainer(0)}function ht(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"li",26)(1,"input",25),n.\u0275\u0275listener("change",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(4);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"a",18),n.\u0275\u0275listener("click",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(4);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd()()}if(2&u){const p=V.$implicit;n.\u0275\u0275advance(),n.\u0275\u0275property("checked",p.isActive),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",p.value," ")}}function S(u,V){if(1&u&&(n.\u0275\u0275elementStart(0,"ul"),n.\u0275\u0275repeaterCreate(1,ht,4,2,"li",26,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275elementEnd()),2&u){const p=n.\u0275\u0275nextContext().$implicit;n.\u0275\u0275advance(),n.\u0275\u0275repeater(p.subFilters)}}function ot(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"li")(1,"input",25),n.\u0275\u0275listener("change",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"a",18),n.\u0275\u0275listener("click",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd(),n.\u0275\u0275conditionalCreate(4,S,3,0,"ul"),n.\u0275\u0275elementEnd()}if(2&u){const p=V.$implicit;n.\u0275\u0275advance(),n.\u0275\u0275property("checked",p.isActive),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",p.value," "),n.\u0275\u0275advance(),n.\u0275\u0275conditional((null==p.subFilters?null:p.subFilters.length)>0?4:-1)}}
1function O(u,V){if(1&u&&(n.\u0275\u0275elementStart(0,"div")(1,"div",22)(2,"strong"),n.\u0275\u0275text(3,"Training by Product"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"div",23)(5,"ul",24),n.\u0275\u0275repeaterCreate(6,ot,5,3,"li",null,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275elementEnd()()()),2&u){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(6),n.\u0275\u0275repeater(p.productFilters)}}function X(u,V){1&u&&n.\u0275\u0275elementContainer(0)}function Z(u,V){1&u&&n.\u0275\u0275elementContainer(0)}function _t(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"li",26)(1,"input",25),n.\u0275\u0275listener("change",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(4);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"a",18),n.\u0275\u0275listener("click",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(4);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd()()}if(2&u){const p=V.$implicit;n.\u0275\u0275advance(),n.\u0275\u0275property("checked",p.isActive),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",p.value," ")}}function bt(u,V){if(1&u&&(n.\u0275\u0275elementStart(0,"ul"),n.\u0275\u0275repeaterCreate(1,_t,4,2,"li",26,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275elementEnd()),2&u){const p=n.\u0275\u0275nextContext().$implicit;n.\u0275\u0275advance(),n.\u0275\u0275repeater(p.subFilters)}}function St(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"li")(1,"input",25),n.\u0275\u0275listener("change",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"a",18),n.\u0275\u0275listener("click",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd(),n.\u0275\u0275conditionalCreate(4,bt,3,0,"ul"),n.\u0275\u0275elementEnd()}if(2&u){const p=V.$implicit;n.\u0275\u0275advance(),n.\u0275\u0275property("checked",p.isActive),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",p.value," "),n.\u0275\u0275advance(),n.\u0275\u0275conditional((null==p.subFilters?null:p.subFilters.length)>0?4:-1)}}function Y(u,V){if(1&u&&(n.\u0275\u0275elementStart(0,"div")(1,"div",22)(2,"strong"),n.\u0275\u0275text(3,"Training by Category"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"div",23)(5,"ul",24),n.\u0275\u0275repeaterCreate(6,St,5,3,"li",null,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275elementEnd()()()),2&u){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(6),n.\u0275\u0275repeater(p.categoryFilters)}}function mt(u,V){1&u&&n.\u0275\u0275elementContainer(0)}function w(u,V){1&u&&n.\u0275\u0275elementContainer(0)}function tt(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"li")(1,"input",25),n.\u0275\u0275listener("change",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"a",18),n.\u0275\u0275listener("click",function(){const M=n.\u0275\u0275restoreView(p).$implicit,N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.applyFilter(M))}),n.\u0275\u0275text(3),n.\u0275\u0275pipe(4,"tagName"),n.\u0275\u0275elementEnd()()}if(2&u){const p=V.$implicit;n.\u0275\u0275advance(),n.\u0275\u0275property("checked",p.isActive),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(4,2,p.value)," ")}}function rt(u,V){if(1&u&&(n.\u0275\u0275elementStart(0,"div")(1,"div",22)(2,"strong"),n.\u0275\u0275text(3,"Courses By Tag"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"div",23)(5,"ul",24),n.\u0275\u0275repeaterCreate(6,tt,5,4,"li",null,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275elementEnd()()()),2&u){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(6),n.\u0275\u0275repeater(p.tagFilters)}}
1function ct(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",27)(1,"h4",33)(2,"strong"),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"a",18),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(p);const M=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(M.clearSearch())}),n.\u0275\u0275text(5,"Clear Search"),n.\u0275\u0275elementEnd()()}if(2&u){const p=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1('Showing results for "',p.searchTerm,'" ')}}function Pt(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"altecConnect-course-card",34),n.\u0275\u0275listener("openCourseModal",function(M){n.\u0275\u0275restoreView(p);const N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.openCourseModal(M))})("addToCartEvent",function(M){n.\u0275\u0275restoreView(p);const N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.addToCart(M))}),n.\u0275\u0275elementEnd()}if(2&u){const p=V.$implicit,P=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("course",p)("coursesAssignedList",P.coursesAssignedList)("coursesInCart",P.coursesInCart)}}function K(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"altecConnect-responsive-pagination",29),n.\u0275\u0275listener("pageClick",function(M){n.\u0275\u0275restoreView(p);const N=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(N.onPageClick(M))}),n.\u0275\u0275elementEnd()}if(2&u){const p=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("isTrainingStore",!0)("curPage",p.page)("maxPage",p.maxPage)("total",p.total)}}function pt(u,V){if(1&u){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",16),n.\u0275\u0275conditionalCreate(1,ct,6,1,"div",27),n.\u0275\u0275elementStart(2,"div",28)(3,"altecConnect-responsive-pagination",29),n.\u0275\u0275listener("pageClick",function(M){n.\u0275\u0275restoreView(p);const N=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(N.onPageClick(M))}),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"div",30),n.\u0275\u0275repeaterCreate(5,Pt,1,3,"altecConnect-course-card",31,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"div",null,3),n.\u0275\u0275conditionalCreate(9,K,1,4,"altecConnect-responsive-pagination",32),n.\u0275\u0275elementEnd()()}if(2&u){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(),n.\u0275\u0275conditional(p.searchTerm?1:-1),n.\u0275\u0275advance(2),n.\u0275\u0275property("isTrainingStore",!0)("curPage",p.page)("maxPage",p.maxPage)("total",p.total),n.\u0275\u0275advance(2),n.\u0275\u0275repeater(p.courses),n.\u0275\u0275advance(2),n.\u0275\u0275classProp("pagination-container",p.hasScroll),n.\u0275\u0275advance(2),n.\u0275\u0275conditional(p.hasScroll?9:-1)}}function y(u,V){if(1&u&&(n.\u0275\u0275elementStart(0,"div",17)(1,"div",35)(2,"h4"),n.\u0275\u0275text(3,'Your search for "'),n.\u0275\u0275elementStart(4,"strong"),n.\u0275\u0275text(5),n.\u0275\u0275elementEnd(),n.\u0275\u0275text(6,"\" didn't return any results"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(7,"h3"),n.\u0275\u0275text(8,"Search tips"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"ul")(10,"li"),n.\u0275\u0275text(11,"Check your spelling"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(12,"li"),n.\u0275\u0275text(13,"Broaden your search by using fewer or more general words"),n.\u0275\u0275elementEnd()()()),2&u){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(5),n.\u0275\u0275textInterpolate(p.searchTerm)}}f.CourseSearchComponent=(()=>{class u{constructor(p,P,M,N,lt,gt,U,Ct){this.router=p,this.route=P,this.trainingStoreService=M,this.trainingStoreOrderSearchService=N,this.modalService=lt,this.shoppingCartService=gt,this.loader=U,this.statefulService=Ct,this.page=1,this.pageSize=15,this.courses=[],this.hasScroll=!0,this.productFilters=[],this.categoryFilters=[],this.tagFilters=[],this.allFilters=[],this.selectedProductFilters=[],this.selectedCategoryFilters=[],this.selectedTags=[],this.loading=!0,this.filterToCoursesByProduct=!1,this.filterToCoursesByCategory=!1,this.subscriptions=[],this.freeCourseTag="Free Courses",this.coursesAssignedList=[],this.coursesInCart=[],this.isB2CAccount=!1,this.isB2BAccount=!1,this.isGuest=!1}ngOnInit(){this.user=this.statefulService.profile,this.restoreStateFromUrl(),this.buildFilterLists(),this.user&&(this.userStatus=this.user.userStatus,this.isGuest="GUEST"===this.userStatus,this.isB2BAccount=this.user.isValidatedB2BUser,this.isB2CAccount=!this.isGuest&&!this.isB2BAccount),this.coursesAssignedToUser(),this.checkCart(),this.subscriptions.push(this.trainingStoreService.searchSubject.subscribe(p=>{this.searchTerm=p||"",this.onPageClick(1)}))}ngOnDestroy(){this.subscriptions.forEach(p=>p.unsubscribe())}
1restoreStateFromUrl(){let p=this.route.snapshot.queryParams;if(p.page&&(this.page=p.page),this.searchTerm=p.searchTerm?p.searchTerm:"",p.productFilters){const P=JSON.parse(p.productFilters);this.selectedProductFilters=Array.isArray(P)?P:[P]}if(p.categoryFilters){const P=JSON.parse(p.categoryFilters);this.selectedCategoryFilters=Array.isArray(P)?P:[P]}if(p.tags){const P=JSON.parse(p.tags);this.selectedTags=Array.isArray(P)?P:[P]}p.courseType&&("product"===p.courseType?this.filterToCoursesByProduct=!0:"category"===p.courseType&&(this.filterToCoursesByCategory=!0)),p.courseId&&(this.courseDetailId=p.courseId)}onPageClick(p){this.page=p,window.scrollTo(0,0),this.router.navigate(["pages/training-store/search"],{queryParams:{page:p,searchTerm:this.searchTerm?this.searchTerm:null,productFilters:this.selectedProductFilters?.length>0?JSON.stringify(this.selectedProductFilters,["value","type","isActive","parentFilterValue"]):null,categoryFilters:this.selectedCategoryFilters?.length>0?JSON.stringify(this.selectedCategoryFilters,["value","type","isActive","parentFilterValue"]):null,tags:this.selectedTags?.length>0?JSON.stringify(this.selectedTags,["value","type","isActive"]):null,courseId:this.courseDetailId?this.courseDetailId:null}}),this.search()}search(){this.loading=!0;const p=this.selectedProductFilters.filter(U=>U.parentFilterValue).map(U=>U.parentFilterValue),P=this.selectedCategoryFilters.filter(U=>U.parentFilterValue).map(U=>U.parentFilterValue),M=this.selectedProductFilters.filter(U=>p.indexOf(U.value)<0).map(U=>`categories:${U.value}`),N=this.selectedCategoryFilters.filter(U=>P.indexOf(U.value)<0).map(U=>`categories:${U.value}`),lt=this.selectedTags.filter(U=>U.value!==this.freeCourseTag).map(U=>`tags:${U.value}`),gt=this.selectedTags.find(U=>U.value===this.freeCourseTag)?["price:0"]:[];this.trainingStoreService.getCourses(this.page-1,this.searchTerm,M,N,lt,gt).then(U=>{this.courses=U.hits,this.total=U.nbHits,this.maxPage=Math.ceil(this.total/this.pageSize),this.loading=!1,setTimeout(()=>{this.checkIfLowerPaginatorIsVisible(),this.calculateFilterCounts()},0)})}clearSearch(){this.page=1,this.searchTerm="",this.selectedProductFilters=[],this.selectedCategoryFilters=[],this.productFilters.forEach(p=>{p.isActive=!1,p.subFilters.forEach(P=>P.isActive=!1)}),this.categoryFilters.forEach(p=>{p.isActive=!1,p.subFilters.forEach(P=>P.isActive=!1)}),this.tagFilters.forEach(p=>{p.isActive=!1}),this.selectedProductFilterCount=0,this.selectedCategoryFilterCount=0,this.selectedTagFilterCount=0,this.onPageClick(this.page)}applyFilter(p){p.isActive=!p.isActive,p.isActive?"products"===p.type?this.selectedProductFilters.push(p):"categories"===p.type?this.selectedCategoryFilters.push(p):this.selectedTags.push(p):"products"===p.type?this.selectedProductFilters=this.selectedProductFilters.filter(P=>P.value!==p.value):"categories"===p.type?this.selectedCategoryFilters=this.selectedCategoryFilters.filter(P=>P.value!==p.value):this.selectedTags=this.selectedTags.filter(P=>P.value!==p.value),this.calculateFilterCounts(),this.onPageClick(1)}calculateFilterCounts(){this.selectedProductFilterCount=0,this.selectedCategoryFilterCount=0,this.selectedTagFilterCount=0,this.productFilters.forEach(p=>{p.isActive&&this.selectedProductFilterCount++,p.subFilters.forEach(P=>{P.isActive&&this.selectedProductFilterCount++})}),this.categoryFilters.forEach(p=>{p.isActive&&this.selectedCategoryFilterCount++,p.subFilters.forEach(P=>{P.isActive&&this.selectedCategoryFilterCount++})}),this.tagFilters.forEach(p=>{p.isActive&&this.selectedTagFilterCount++})}initializeFilter(p,P){let M={value:p,type:P,isActive:!1,subFilters:[],parentFilterValue:null};return M.isActive="products"===P?this.selectedProductFilters.findIndex(N=>N.value===p)>=0:"categories"===P?this.selectedCategoryFilters.findIndex(N=>N.value===p)>=0:this.selectedTags.findIndex(N=>N.value===p)>=0,this.allFilters.push(M),M}initializeSubFilter(p,P,M){if(!(p.subFilters.findIndex(lt=>lt.value===P)>=0)){const lt=this.initializeFilter(P,M);lt.parentFilterValue=p.value,p.subFilters.push(lt),this.allFilters.push(lt)}}removeFilter(p){if(p.subFilters){const P=this.allFilters.find(M=>M.value===p.value&&M.type===p.type);P&&this.applyFilter(P)}else{const P=this.allFilters.find(M=>M.value===p.value);P&&this.applyFilter(P)}}
1clearFilters(){this.allFilters.forEach(p=>p.isActive=!1),this.selectedProductFilters=[],this.selectedCategoryFilters=[],this.selectedTags=[],this.calculateFilterCounts(),this.onPageClick(1)}openCourseModal(p){this.router.navigate(["pages/training-store/search"],{queryParams:{page:this.page,courseId:p.objectID},queryParamsHandling:"merge"});const P=this.modalService.open(L.CourseDetailModalComponent,{backdrop:"static",keyboard:!1});P.componentInstance.course=p,P.result.then(M=>{this.router.navigate(["pages/training-store/search"],{queryParams:{courseId:null},queryParamsHandling:"merge"}),null!==M&&this.addToCart(M)},()=>{})}addToCart(p){this.loader.start(),p.shoppingCartItem.itemId=p.course.objectID,this.shoppingCartService.addOrUpdateItemsInShoppingCart("training-store",[p.shoppingCartItem]).pipe((0,k.take)(1)).subscribe(()=>{this.loader.stop()}),this.modalService.open(m.AddToCartModalComponent).componentInstance.shoppingCartItem=p}buildFilterLists(){this.trainingStoreService.getAllCourses().then(p=>{let P;for(let U of p.hits)if(this.courseDetailId&&U.objectID===this.courseDetailId&&(P=U),U.hierarchicalCategories.lvl0.includes(a.environment.product)||U.hierarchicalCategories.lvl0.includes(a.environment.category))for(let Ct of U.hierarchicalCategories.lvl1){let ft=Ct.split(" > "),yt=ft[0],vt=ft[1];yt===a.environment.product?0===this.productFilters.filter(Ot=>Ot.value===vt)?.length&&this.productFilters.push(this.initializeFilter(vt,"products")):yt===a.environment.category&&0===this.categoryFilters.filter(Ot=>Ot.value===vt)?.length&&this.categoryFilters.push(this.initializeFilter(vt,"categories"))}for(let U of p.hits)if(U.hierarchicalCategories.lvl0.includes(a.environment.product)||U.hierarchicalCategories.lvl0.includes(a.environment.category))for(let Ct of U.hierarchicalCategories.lvl2){let ft=Ct.split(" > "),yt=ft[0],vt=ft[1],Tt=ft[2];if(yt===a.environment.product){let Ot=this.productFilters.filter(At=>At.value===vt)[0];this.initializeSubFilter(Ot,Tt,"products")}else if(yt===a.environment.category){let Ot=this.categoryFilters.filter(At=>At.value===vt)[0];this.initializeSubFilter(Ot,Tt,"categories")}}const N=(U,Ct)=>U.value.toLowerCase()>Ct.value.toLowerCase()?1:-1;let lt,gt;this.productFilters.sort(N),this.categoryFilters.sort(N),this.productFilters.forEach(U=>U.subFilters.sort(N)),this.categoryFilters.forEach(U=>U.subFilters.sort(N)),this.filterToCoursesByProduct?(lt=this.productFilters,gt=this.selectedProductFilters):this.filterToCoursesByCategory&&(lt=this.categoryFilters,gt=this.selectedCategoryFilters),lt&<.forEach(U=>{U.isActive=!0,gt.push(U),U.subFilters.forEach(Ct=>{Ct.isActive=!0,gt.push(Ct)})});for(let U of p.hits)for(let Ct of U.tags)this.tagFilters.find(yt=>yt.value===Ct)||this.tagFilters.push(this.initializeFilter(Ct,"tags"));this.tagFilters.push(this.initializeFilter(this.freeCourseTag,"free")),this.tagFilters.sort(N),P&&this.openCourseModal(P),this.onPageClick(this.page)})}checkIfLowerPaginatorIsVisible(){if(this.lowerPaginator){const p=this.lowerPaginator.nativeElement.getBoundingClientRect(),M=p.bottom<=window.innerHeight;this.hasScroll=!(p.top>=0&&M)}}coursesAssignedToUser(){this.loader.start(),this.isB2CAccount?this.trainingStoreOrderSearchService.getUserCourses(this.user.email).subscribe(p=>{for(let P of p)this.coursesAssignedList.push(P.code);this.loader.stop()}):this.loader.stop()}checkCart(){this.loader.start(),this.isB2CAccount&&(this.shoppingCartService.getShoppingCart("training-store").subscribe(p=>{for(let P of p.items)this.coursesInCart.push(P.itemId)}),this.loader.stop())}static{this.\u0275fac=function(P){return new(P||u)(n.\u0275\u0275directiveInject(s.Router),n.\u0275\u0275directiveInject(s.ActivatedRoute),n.\u0275\u0275directiveInject(et.TrainingStoreService),n.\u0275\u0275directiveInject(j.TrainingStoreOrderSearchService),n.\u0275\u0275directiveInject(G.NgbModal),n.\u0275\u0275directiveInject(at.ShoppingCartService),n.\u0275\u0275directiveInject(nt.LoadingService),n.\u0275\u0275directiveInject(i.StatefulService))}}static{this.\u0275cmp=n.\u0275\u0275defineComponent({type:u,selectors:[["altecConnect-course-search"]],viewQuery:function(P,M){if(1&P&&n.\u0275\u0275viewQuery(st,5),2&P){let N;n.\u0275\u0275queryRefresh(N=n.\u0275\u0275loadQuery())&&(M.lowerPaginator=N.first)}},standalone:!1,decls:39,vars:21,consts:[["trainingByProduct",""],["trainingByCategory",""],["trainingByTag",""],["lowerPaginator",""],[1,"container"],[1,"row","mt-4"],[1,"col-12","col-md-4","col-lg-3"],["id","title"],[1,"filters"],[1,"pb-2"],[1,"pointer"],[1,"chip-container"],[1,"chip"],[1,"mobile-filters",3,"title","showButton","showClearLink","appliedFilterCount"],[4,"ngTemplateOutlet"],[1,"desktop-filters"],[1,"col-12","col-md-8","col-lg-9","course-section"],[1,"col-12","col-md-8","col-lg-9","no-results-container"],[1,"pointer",3,"click"],[1,"fa","fa-repeat"],[1,"chip",3,"click"],[1,"fa","fa-times","remove-chip"],[1,"filter-header"],[1,"filter-section"],[1,"first-level"],["type","checkbox",3,"change","checked"],[1,"second-level"],[1,"result-row"],[1,"pagination-container"],[3,"pageClick","isTrainingStore","curPage","maxPage","total"],[1,"cards","row"],[1,"col-12","col-sm-6","col-lg-4",3,"course","coursesAssignedList","coursesInCart"],[3,"isTrainingStore","curPage","maxPage","total"],["id","result-message"],[1,"col-12","col-sm-6","col-lg-4",3,"openCourseModal","addToCartEvent","course","coursesAssignedList","coursesInCart"],[1,"no-results-message"]],template:function(P,M){if(1&P&&(n.\u0275\u0275elementStart(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"h2"),n.\u0275\u0275text(5,"Training Courses"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(6,"div",8)(7,"div",9)(8,"strong"),n.\u0275\u0275text(9),n.\u0275\u0275elementEnd()(),n.\u0275\u0275conditionalCreate(10,B,3,0,"span",10),n.\u0275\u0275elementStart(11,"div",11),n.\u0275\u0275repeaterCreate(12,it,3,1,"span",12,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275repeaterCreate(14,x,3,1,"span",12,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275repeaterCreate(16,D,4,3,"span",12,n.\u0275\u0275repeaterTrackByIdentity),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(18,"div")(19,"app-dropdown-filter-container",13),n.\u0275\u0275template(20,F,1,0,"ng-container",14),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(21,"div",15),n.\u0275\u0275template(22,t,1,0,"ng-container",14),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(23,O,8,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(25,"app-dropdown-filter-container",13),n.\u0275\u0275template(26,X,1,0,"ng-container",14),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(27,"div",15),n.\u0275\u0275template(28,Z,1,0,"ng-container",14),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(29,Y,8,0,"ng-template",null,1,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(31,"app-dropdown-filter-container",13),n.\u0275\u0275template(32,mt,1,0,"ng-container",14),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(33,"div",15),n.\u0275\u0275template(34,w,1,0,"ng-container",14),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(35,rt,8,0,"ng-template",null,2,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275conditionalCreate(37,pt,10,8,"div",16)(38,y,14,1,"div",17),n.\u0275\u0275elementEnd()()),2&P){const N=n.\u0275\u0275reference(24),lt=n.\u0275\u0275reference(30),gt=n.\u0275\u0275reference(36);n.\u0275\u0275advance(9),n.\u0275\u0275textInterpolate1("",M.total," C
1ourses Found"),n.\u0275\u0275advance(),n.\u0275\u0275conditional((null==M.selectedProductFilters?null:M.selectedProductFilters.length)>0||(null==M.selectedCategoryFilters?null:M.selectedCategoryFilters.length)>0||(null==M.selectedTags?null:M.selectedTags.length)>0?10:-1),n.\u0275\u0275advance(2),n.\u0275\u0275repeater(M.selectedProductFilters),n.\u0275\u0275advance(2),n.\u0275\u0275repeater(M.selectedCategoryFilters),n.\u0275\u0275advance(2),n.\u0275\u0275repeater(M.selectedTags),n.\u0275\u0275advance(3),n.\u0275\u0275property("title","Training By Product")("showButton",!1)("showClearLink",!1)("appliedFilterCount",M.selectedProductFilterCount),n.\u0275\u0275advance(),n.\u0275\u0275property("ngTemplateOutlet",N),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngTemplateOutlet",N),n.\u0275\u0275advance(3),n.\u0275\u0275property("title","Training By Category")("showButton",!1)("showClearLink",!1)("appliedFilterCount",M.selectedCategoryFilterCount),n.\u0275\u0275advance(),n.\u0275\u0275property("ngTemplateOutlet",lt),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngTemplateOutlet",lt),n.\u0275\u0275advance(3),n.\u0275\u0275property("title","Courses By Tags")("showButton",!1)("showClearLink",!1)("appliedFilterCount",M.selectedTagFilterCount),n.\u0275\u0275advance(),n.\u0275\u0275property("ngTemplateOutlet",gt),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngTemplateOutlet",gt),n.\u0275\u0275advance(3),n.\u0275\u0275conditional(M.courses&&M.courses.length>0||M.loading?37:38)}},dependencies:[J.NgTemplateOutlet,q.ResponsivePaginationComponent,Q.DropdownFilterContainerComponent,z.CourseCardComponent,E.TagNamePipe],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.mobile-filters[_ngcontent-%COMP%]{display:none}.filters[_ngcontent-%COMP%]{padding:calc(var(--bs-gutter-x, 1.5rem) * .667);border-top:#EFB310 3px solid;margin:calc(var(--bs-gutter-x, 1.5rem) * .667) 0}.filters[_ngcontent-%COMP%] .filter-header[_ngcontent-%COMP%]{background-color:#f9f9f9;border:#ddd 1px solid;padding:12px}.filters[_ngcontent-%COMP%] .filter-section[_ngcontent-%COMP%]{border:#ddd 1px solid}.filters[_ngcontent-%COMP%] .filter-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;padding-left:calc(var(--bs-gutter-x, 1.5rem) * .667)}.filters[_ngcontent-%COMP%] .filter-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:5px}.filters[_ngcontent-%COMP%] .filter-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;vertical-align:top;margin-left:3px}#title[_ngcontent-%COMP%]{display:flex;justify-content:center}.result-row[_ngcontent-%COMP%]{margin-left:calc(var(--bs-gutter-x, 1.5rem) * .667)}#result-message[_ngcontent-%COMP%]{display:inline}.course-section[_ngcontent-%COMP%]{padding-top:48px}.course-section[_ngcontent-%COMP%] .pagination-container[_ngcontent-%COMP%]{padding:calc(var(--bs-gutter-x, 1.5rem) * .667);margin:calc(var(--bs-gutter-x, 1.5rem) * .667);background-color:#eee;border:#ddd 1px solid}altecConnect-course-card[_ngcontent-%COMP%]{padding:calc(var(--bs-gutter-x, 1.5rem) * .667);
1display:flex;justify-content:center}.page-link[_ngcontent-%COMP%]{background-color:#fff}.no-results-container[_ngcontent-%COMP%] .no-results-message[_ngcontent-%COMP%]{width:100%;border:#707070 1px solid;padding:12px;margin-top:12px}.chip-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:8px}.chip-container[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:#d9edf7;border-radius:4px;padding:4px;margin-right:4px;margin-bottom:4px;cursor:pointer}.chip-container[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .remove-chip[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}@media(max-width:767px){.mobile-filters[_ngcontent-%COMP%]{display:block;padding-top:12px}.desktop-filters[_ngcontent-%COMP%]{display:none}.pagination-container[_ngcontent-%COMP%]{margin:5px!important;padding:5px!important}#title[_ngcontent-%COMP%]{width:100%;justify-content:left}}"]})}}return u})()},63063(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.MainPageComponent=void 0;const g=o(31635),a=(o(71964),o(20851),o(7901),o(97377),g.__importStar(o(49849))),L=g.__importStar(o(71964)),R=g.__importStar(o(20851)),m=g.__importStar(o(7901)),d=g.__importStar(o(97377)),r=g.__importStar(o(51173));
1function _(n,s){if(1&n){const et=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",4)(1,"p",9)(2,"strong"),a.\u0275\u0275text(3,"You have courses that have unassigned seats."),a.\u0275\u0275elementEnd()(),a.\u0275\u0275element(4,"br"),a.\u0275\u0275elementStart(5,"a",10),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(et);const G=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(G.navigateToUnassignedSeats())}),a.\u0275\u0275text(6,"Please click here to assign seats"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(7,"button",11),a.\u0275\u0275elementEnd()}}f.MainPageComponent=(()=>{class n{constructor(et,j,G,at){this.trainingStoreOrderSearchService=et,this.loader=j,this.router=G,this.statefulService=at,this.showDropContent=null}ngOnInit(){this.statefulService.profile.isValidatedB2BUser&&(setTimeout(()=>{this.loader.start()},350),this.trainingStoreOrderSearchService.getCourseOrdersByAccountIds(this.statefulService.getAllAccountIds().map(et=>Number(et))).subscribe(et=>{for(let j of et){for(let G of j.courses)if(G.quantity>G.seatAssignments.length){this.hasUnassignedSeats=!0;break}if(this.hasUnassignedSeats)break}this.loader.stop()})),this.getImgUrl()}coursesByProduct(){console.log("courses by product clicked")}coursesByCategory(){console.log("courses by category clicked")}navigateToUnassignedSeats(){this.router.navigate(["pages/dashboard/training/orders/search"],{queryParams:{filter:JSON.stringify([{fieldName:"UNASSIGNED_SEATS",value:"unassignedSeats"}])}})}getImgUrl(){this.env=window.location.origin,this.env.includes("localhost")&&(this.localURL="https://connect-dev1.cfs-fleet-dev.altec.io")}static{this.\u0275fac=function(j){return new(j||n)(a.\u0275\u0275directiveInject(L.TrainingStoreOrderSearchService),a.\u0275\u0275directiveInject(R.LoadingService),a.\u0275\u0275directiveInject(m.Router),a.\u0275\u0275directiveInject(d.StatefulService))}}static{this.\u0275cmp=a.\u0275\u0275defineComponent({type:n,selectors:[["altecConnect-main-page"]],standalone:!1,decls:12,vars:5,consts:[["id","image-container"],["width","100%",3,"src"],["id","welcome-text"],[1,"container"],["role","alert",1,"alert","alert-danger","alert-dismissable","mt-4","position-relative","pe-5"],[1,"top-card"],[3,"topRowTitle"],[1,"bottom-card"],[3,"bottomRowTitle"],[1,"mb-0"],[1,"alert-link","pointer",3,"click"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close","position-absolute","top-0","end-0","m-3"]],template:function(j,G){1&j&&(a.\u0275\u0275elementStart(0,"div",0),a.\u0275\u0275element(1,"img",1),a.\u0275\u0275elementStart(2,"span",2),a.\u0275\u0275text(3,"Welcome to the Training Store"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(4,"div",3),a.\u0275\u0275conditionalCreate(5,_,8,0,"div",4),a.\u0275\u0275elementStart(6,"div",5)(7,"div"),a.\u0275\u0275element(8,"altecConnect-category-image-row",6),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(9,"div",7)(10,"div"),a.\u0275\u0275element(11,"altecConnect-category-image-row",8),a.\u0275\u0275elementEnd()()()),2&j&&(a.\u0275\u0275advance(),a.\u0275\u0275property("src",a.\u0275\u0275interpolate1("",G.localURL,"/static/angular-resources/training-store/TrainingStoreHomeImageShort.png"),a.\u0275\u0275sanitizeUrl),a.\u0275\u0275advance(4),a.\u0275\u0275conditional(G.hasUnassignedSeats?5:-1),a.\u0275\u0275advance(3),a.\u0275\u0275property("topRowTitle",!0),a.\u0275\u0275advance(3),a.\u0275\u0275property("bottomRowTitle",!0))},dependencies:[r.CategoryImageRow],styles:["#image-container[_ngcontent-%COMP%]{position:relative;background-color:#aaa;background-image:linear-gradient(black,transparent)}#image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7}#image-container[_ngcontent-%COMP%] #welcome-text[_ngcontent-%COMP%]{color:#fff;position:absolute;top:30px;left:21%;font-size:28px;font-weight:600;text-shadow:-1px 0 black,0 1px black,1px 0 black,0 -1px black}.assignment-alert[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.category-grid[_ngcontent-%COMP%]{text-align:left;justify-content:center}.top-card[_ngcontent-%COMP%]{margin-bottom:25px}.bottom-card[_ngcontent-%COMP%]{margin-bottom:100px}@media(max-width:991px){#image-container[_ngcontent-%COMP%]{margin-top:-5px}}@media(max-width:767px){#image-container[_ngcontent-%COMP%] #welcome-text[_ngcontent-%COMP%]{top:10px;left:10px;font-size:22px}}@media(max-width:350px){#image-container[_ngcontent-%COMP%] #welcome-text[_ngcontent-%COMP%]{font-size:19px}}"]})}}return n})()}
1,3975(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.ShoppingCartComponent=void 0;const g=o(31635),L=(o(35445),o(83352),o(91898),o(7932),o(21916),o(40846)),R=o(59091),m=o(7721),r=(o(9310),o(40245)),s=(o(97377),o(49245),o(20851),g.__importStar(o(49849))),et=g.__importStar(o(35445)),j=g.__importStar(o(83352)),G=g.__importStar(o(91898)),at=g.__importStar(o(49245)),nt=g.__importStar(o(9310)),i=g.__importStar(o(7932)),J=g.__importStar(o(21916)),q=g.__importStar(o(20851)),Q=g.__importStar(o(97377)),z=g.__importStar(o(7901)),E=g.__importStar(o(84341)),st=g.__importStar(o(60177)),B=()=>["../"];function it(Y,mt){1&Y&&(s.\u0275\u0275elementStart(0,"div",0)(1,"div",2)(2,"h4")(3,"strong"),s.\u0275\u0275text(4,"Your cart is empty"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(5,"a",3)(6,"span",4)(7,"strong"),s.\u0275\u0275text(8,"Continue Shopping"),s.\u0275\u0275elementEnd()()()()()),2&Y&&(s.\u0275\u0275advance(5),s.\u0275\u0275property("routerLink",s.\u0275\u0275pureFunction0(1,B)))}function x(Y,mt){1&Y&&(s.\u0275\u0275elementStart(0,"button",9),s.\u0275\u0275text(1,"Proceed to Checkout"),s.\u0275\u0275elementEnd()),2&Y&&s.\u0275\u0275property("routerLink","/pages/training-store/checkout")}function D(Y,mt){if(1&Y&&(s.\u0275\u0275elementStart(0,"span")(1,"small"),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd()()),2&Y){const w=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate1("Free course code used for unit ",w.unit.unitSerial)}}function F(Y,mt){if(1&Y&&(s.\u0275\u0275elementStart(0,"strong"),s.\u0275\u0275text(1),s.\u0275\u0275pipe(2,"currency"),s.\u0275\u0275elementEnd()),2&Y){const w=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(2,1,w.course.price))}}function t(Y,mt){1&Y&&(s.\u0275\u0275elementStart(0,"strong"),s.\u0275\u0275text(1,"Free"),s.\u0275\u0275elementEnd())}function ht(Y,mt){1&Y&&(s.\u0275\u0275elementStart(0,"label",20),s.\u0275\u0275text(1,"Quantity: "),s.\u0275\u0275elementEnd())}function S(Y,mt){if(1&Y){const w=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",26),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(w);const rt=s.\u0275\u0275nextContext(2).$implicit,ct=s.\u0275\u0275nextContext(2);return s.\u0275\u0275resetView(ct.adjustSeats(rt.shoppingCartItem,-1))}),s.\u0275\u0275element(1,"i",27),s.\u0275\u0275elementEnd()}}function ot(Y,mt){if(1&Y){const w=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",26),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(w);const rt=s.\u0275\u0275nextContext(2).$implicit,ct=s.\u0275\u0275nextContext(2);return s.\u0275\u0275resetView(ct.adjustSeats(rt.shoppingCartItem,1))}),s.\u0275\u0275element(1,"i",28),s.\u0275\u0275elementEnd()}}function O(Y,mt){if(1&Y){const w=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",21),s.\u0275\u0275conditionalCreate(1,S,2,0,"div",24),s.\u0275\u0275elementStart(2,"div")(3,"input",25),s.\u0275\u0275twoWayListener("ngModelChange",function(rt){s.\u0275\u0275restoreView(w);const ct=s.\u0275\u0275nextContext().$implicit;return s.\u0275\u0275twoWayBindingSet(ct.shoppingCartItem.quantity,rt)||(ct.shoppingCartItem.quantity=rt),s.\u0275\u0275resetView(rt)}),s.\u0275\u0275listener("keydown",function(rt){s.\u0275\u0275restoreView(w);const ct=s.\u0275\u0275nextContext(3);return s.\u0275\u0275resetView(ct.sanitizeNumber(rt))})("change",function(){s.\u0275\u0275restoreView(w);const rt=s.\u0275\u0275nextContext().$implicit,ct=s.\u0275\u0275nextContext(2);return s.\u0275\u0275resetView(ct.changeQuantity(rt.shoppingCartItem))}),s.\u0275\u0275elementEnd()(),s.\u0275\u0275conditionalCreate(4,ot,2,0,"div",24),s.\u0275\u0275elementEnd()}if(2&Y){const w=s.\u0275\u0275nextContext().$implicit,tt=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(),s.\u0275\u0275conditional(tt.isB2CAccount?-1:1),s.\u0275\u0275advance(2),s.\u0275\u0275twoWayProperty("ngModel",w.shoppingCartItem.quantity),s.\u0275\u0275advance(),s.\u0275\u0275conditional(tt.isB2CAccount?-1:4)}}function X(Y,mt){if(1&Y){const w=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",18),s.\u0275\u0275element(1,"img",19),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(2,"div",11)(3,"span")(4,"strong"),s.\u0275\u0275text(5),s.\u0275\u0275elementEnd()(),s.\u0275\u0275conditionalCreate(6,D,3,1,"span"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(7,"div",11)(8,"label",20),s.\u0275\u0275text(9,"Course Price: "),s.\u0275\u0275elementEnd(),s.\u0275\u0275conditionalCreate(10,F,3,3,"strong"),s.\u0275\u0275conditionalCreate(11,t,2,0,"strong"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(12,"div",11),s.\u0275\u0275conditionalCreate(13,ht,2,0,"label",20),s.\u0275\u0275conditionalCreate(14,O,5,3,"div",21),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(15,"div",22)(16,"div")(17,"label",20),s.\u0275\u0275text(18,"Course Total: "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(19,"strong"),s.\u0275\u0275text(20),s.\u0275\u0275pipe(21,"currency"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(22,"div")(23,"i",23),s.\u0275\u0275listener("click",function(){const rt=s.\u0275\u0275restoreView(w).$implicit,ct=s.\u
10275\u0275nextContext(2);return s.\u0275\u0275resetView(ct.removeItem(rt.shoppingCartItem))}),s.\u0275\u0275elementEnd()()()}if(2&Y){const w=mt.$implicit,tt=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(),s.\u0275\u0275property("src",w.course.image,s.\u0275\u0275sanitizeUrl),s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(w.course.title),s.\u0275\u0275advance(),s.\u0275\u0275conditional(w.shoppingCartItem.unitId?6:-1),s.\u0275\u0275advance(4),s.\u0275\u0275conditional(w.course.price>0?10:-1),s.\u0275\u0275advance(),s.\u0275\u0275conditional(0===w.course.price?11:-1),s.\u0275\u0275advance(2),s.\u0275\u0275conditional(tt.isB2CAccount?-1:13),s.\u0275\u0275advance(),s.\u0275\u0275conditional(tt.isB2CAccount?-1:14),s.\u0275\u0275advance(6),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(21,8,tt.calculateCourseTotal(w)))}}function Z(Y,mt){if(1&Y){const w=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"button",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(w);const rt=s.\u0275\u0275nextContext(2);return s.\u0275\u0275resetView(rt.openForceParentCompanyModal())}),s.\u0275\u0275text(1,"Proceed to Checkout"),s.\u0275\u0275elementEnd()}}function _t(Y,mt){1&Y&&(s.\u0275\u0275elementStart(0,"button",15),s.\u0275\u0275text(1,"Proceed to Checkout"),s.\u0275\u0275elementEnd()),2&Y&&s.\u0275\u0275property("routerLink","/pages/training-store/checkout")}function bt(Y,mt){if(1&Y&&(s.\u0275\u0275elementStart(0,"div",1)(1,"div",5)(2,"div",6)(3,"h2"),s.\u0275\u0275text(4," SHOPPING CART "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(5,"div",7)(6,"span"),s.\u0275\u0275text(7),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(8,"a",8),s.\u0275\u0275text(9,"Continue Browsing"),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275conditionalCreate(10,x,2,1,"button",9),s.\u0275\u0275elementStart(11,"div",10)(12,"div",11),s.\u0275\u0275text(13," Course "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(14,"div",11),s.\u0275\u0275text(15," \xa0 "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(16,"div",11),s.\u0275\u0275text(17," Course Price "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(18,"div",11),s.\u0275\u0275text(19," Quantity "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(20,"div",11),s.\u0275\u0275text(21," Course Total "),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(22,"div",12),s.\u0275\u0275repeaterCreate(23,X,24,10,null,null,s.\u0275\u0275repeaterTrackByIdentity),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(25,"div",13),s.\u0275\u0275conditionalCreate(26,Z,2,0,"button",14),s.\u0275\u0275conditionalCreate(27,_t,2,1,"button",15),s.\u0275\u0275elementStart(28,"div",16)(29,"strong"),s.\u0275\u0275text(30,"Order Summary"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(31,"div",16),s.\u0275\u0275text(32," Subtotal: "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(33,"div",17),s.\u0275\u0275text(34),s.\u0275\u0275pipe(35,"currency"),s.\u0275\u0275elementEnd()()()),2&Y){const w=s.\u0275\u0275nextContext();s.\u0275\u0275advance(7),s.\u0275\u0275textInterpolate3("",w.combinedCart.length," Course",1===w.combinedCart.length?"":"s"," in Cart (",w.seatCount," seats)"),s.\u0275\u0275advance(),s.\u0275\u0275property("routerLink","/pages/training-store"),s.\u0275\u0275advance(2),s.\u0275\u0275conditional(w.forceParentOrg?-1:10),s.\u0275\u0275advance(13),s.\u0275\u0275repeater(w.combinedCart),s.\u0275\u0275advance(3),s.\u0275\u0275conditional(w.forceParentOrg?26:-1),s.\u0275\u0275advance(),s.\u0275\u0275conditional(w.forceParentOrg?-1:27),s.\u0275\u0275advance(7),s.\u0275\u0275textInterpolate1(" ",s.\u0275\u0275pipeBind1(35,8,w.calculateCartSubtotal())," ")}}f.ShoppingCartComponent=(()=>{class Y{constructor(w,tt,rt,ct,Pt,K,pt,y,W){this.shoppingCartService=w,this.trainingStoreService=tt,this.privilegeService=rt,this.forceParentCompanyModal=ct,this.store=Pt,this.freeSeatsCheckService=K,this.fleetService=pt,this.loader=y,this.statefulService=W,this.combinedCart=[],this.courses=[],this.freeSeatsAvailable={},this.unitInfo={},this.isGuest=!1,this.isB2BAccount=!1,this.isB2CAccount=!1,this.forceParentOrg=!1,this.loadCount=0}ngOnInit(){this.getForceParentOrg().pipe((0,R.take)(1)).subscribe(w=>this.forceParentOrg=w),this.loader.start(),this.user=this.statefulService.profile,this.user&&(this.userStatus=this.user.userStatus,this.isGuest="GUEST"===this.userStatus,this.isB2BAccount=this.user.isValidatedB2BUser,this.isB2CAccount=!this.isGuest&&!this.isB2BAccount),this.shoppingCartService.trainingStoreCart.items?.length>0?this.trainingStoreService.getAllCourses().then(w=>
1{this.createCombinedCart(w.hits)}):this.loader.stop()}createCombinedCart(w){this.loadCount=this.shoppingCartService.trainingStoreCart.items?this.shoppingCartService.trainingStoreCart.items.length+1:1,this.combinedCart=[],this.seatCount=0;for(let tt of this.shoppingCartService.trainingStoreCart.items){this.seatCount+=tt.quantity;const rt=w.find(Pt=>Pt.objectID===tt.itemId);new L.Content,this.courses.push(rt),this.combinedCart.push({shoppingCartItem:JSON.parse(JSON.stringify(tt)),course:JSON.parse(JSON.stringify(rt,["hits","title","price","tags","image"]))}),this.loadTracker()}this.loadTracker()}ngAfterViewInit(){window.scrollTo(0,0)}sanitizeNumber(w){!w.key.match(/[0-9]/g)&&8!=w.keyCode&&w.preventDefault()}adjustSeats(w,tt){w.quantity=Number(w.quantity)+tt,w.quantity<1&&(w.quantity=1),this.changeQuantity(w)}calculateCourseTotal(w){return w.shoppingCartItem.quantity*w.course.price}calculateCartSubtotal(){let w=0;for(let tt of this.combinedCart)w+=this.calculateCourseTotal(tt);return w}removeItem(w){w.quantity=0,this.loader.start(),this.shoppingCartService.addOrUpdateItemsInShoppingCart("training-store",[w]).pipe((0,R.take)(1)).subscribe(tt=>{this.combinedCart.splice(this.combinedCart.findIndex(ct=>ct.shoppingCartItem.shoppingCartItemId===w.shoppingCartItemId),1),this.store.dispatch((0,r.setTrainingStoreCartAction)({trainingStoreCart:tt}));let rt=0;for(let ct of tt.items)rt+=ct.quantity;this.seatCount=rt,this.loader.stop()})}changeQuantity(w){0===w.quantity||null===w.quantity?this.removeItem(w):(this.loader.start(),this.shoppingCartService.addOrUpdateItemsInShoppingCart("training-store",[w]).pipe((0,R.take)(1)).subscribe(tt=>{this.store.dispatch((0,r.setTrainingStoreCartAction)({trainingStoreCart:tt}));let rt=0;for(let ct of tt.items)rt+=ct.quantity;this.seatCount=rt,this.loader.stop()}))}getForceParentOrg(){return this.privilegeService.hasPrivilege("B2B_View_Parent_Holding")?this.store.select(m.selectTransientProfile).pipe((0,R.switchMap)(w=>(0,R.of)(w.activeOrganizations.length>1||w.activeOrganizations[0].accountId!==this.statefulService.profile.accountId))):(0,R.of)(!1)}openForceParentCompanyModal(){this.forceParentCompanyModal.open("/pages/training-store/checkout")}loadTracker(){this.loadCount--,0==this.loadCount&&this.loader.stop()}static{this.\u0275fac=function(tt){return new(tt||Y)(s.\u0275\u0275directiveInject(et.ShoppingCartService),s.\u0275\u0275directiveInject(j.TrainingStoreService),s.\u0275\u0275directiveInject(G.PrivilegeService),s.\u0275\u0275directiveInject(at.ForceParentCompanyModalService),s.\u0275\u0275directiveInject(nt.Store),s.\u0275\u0275directiveInject(i.FreeSeatsCheckService),s.\u0275\u0275directiveInject(J.FleetService),s.\u0275\u0275directiveInject(q.LoadingService),s.\u0275\u0275directiveInject(Q.StatefulService))}}static{this.\u0275cmp=s.\u0275\u0275defineComponent({type:Y,selectors:[["altecConnect-shopping-cart"]],standalone:!1,decls:2,vars:2,consts:[[1,"container","cart-container","mt-4","mb-4"],[1,"container","cart-container"],[1,"col-12"],[3,"routerLink"],[1,"btn-altec"],[1,"cart-section"],[1,"cart-links"],["id","link-section",1,"pb-2"],[1,"browse-link","pointer",3,"routerLink"],[1,"btn","btn-altec","mobile-btn",3,"routerLink"],[1,"cart-header"],[1,"cart-cell"],[1,"cart-columns"],[1,"checkout-section"],[1,"btn","btn-altec"],[1,"btn","btn-altec",3,"routerLink"],[1,"pt-3"],[1,"subtotal"],[1,"cart-cell","image-cell"],[1,"course-image",3,"src"],[1,"mobile-label"],[1,"seats-container"],["id","course-total",1,"cart-cell"],[1,"fa","fa-2x","fa-trash","float-end","pe-2","pointer",3,"click"],[1,"pointer","counter-button"],["min","0","type","number",3,"ngModelChange","keydown","change","ngModel"],[1,"pointer","counter-button",3,"click"],[1,"fa","fa-lg","fa-minus"],[1,"fa","fa-lg","fa-plus"],[1,"btn","btn-altec",3,"click"]],template:function(tt,rt){1&tt&&(s.\u0275\u0275conditionalCreate(0,it,9,2,"div",0),s.\u0275\u0275conditionalCreate(1,bt,36,10,"div",1)),2&tt&&(s.\u0275\u0275conditional(0===rt.combinedCart.length?0:-1),s.\u0275\u0275advance(),s.\u0275\u0275conditional(rt.combinedCart.length>0?1:-1))},dependencies:[z.RouterLink,E.DefaultValueAccessor,E.NumberValueAccessor,E.NgControlStatus,E.MinValidator,E.NgModel,st.CurrencyPipe],styles:[".cart-container[_ngcontent-%COMP%]{display:flex;justify-content:space-around;padding-bottom:16px}.cart-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:22px}.mobile-btn[_ngcontent-%COMP%]{display:none}#link-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.browse-link[_ngcontent-%COMP%]{margin-left:auto}.cart-section[_ngcontent-%COMP%]{width:70%}.mobile-label[_ngcontent-%COMP%]{display:none}.course-image[_ngcontent-%COMP%]{max-width:100%}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.checkout-section[_ngcontent-%COMP%]{width:130px;padding-top:72px;min-width:270px;max-width:400px;margin:calc(var(--bs-gutter-x, 1.5rem) * .667) 20px}.cart-header[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:20% 30% 15% 1fr 15%;background-color:#e1e1e1}.cart-header[_ngcontent-%COMP%] .cart-cell[_ngcontent-%COMP%]{background-color:#e1e1e1;padding-left:1em;padding-top:8px;padding-bottom:8px}.cart-columns[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:15% 40% 15% 1fr 15%;padding-top:16px}.cart-columns[_ngcontent-%COMP%] .cart-cell[_ngcontent-%COMP%]{padding-top:16px;padding-left:1em;padding-bottom:16px;border-bottom:solid 2px #E8E8E8;display:flex;align-items:center;flex-wrap:wrap}.cart-columns[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.seats-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;min-width:80px;border:solid 1px lightgray;min-height:36px}.seats-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{all:unset;min-width:24px;max-width:40px;text-align:center}#course-total[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;padding:45px 8px 8px}.subtotal[_ngcontent-%COMP%]{color:green;font-size:24px;font-weight:600;margin-left:auto}@media screen and (max-width:1024px){.cart-container[_ngcontent-%COMP%]{display:block}
1.cart-links[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.cart-links[_ngcontent-%COMP%] #link-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.browse-link[_ngcontent-%COMP%]{margin-left:0}.mobile-btn[_ngcontent-%COMP%]{display:block}.btn-altec[_ngcontent-%COMP%], .cart-section[_ngcontent-%COMP%]{width:100%}.cart-header[_ngcontent-%COMP%]{display:none}.cart-columns[_ngcontent-%COMP%]{grid-template-columns:1fr}.cart-columns[_ngcontent-%COMP%] .cart-cell[_ngcontent-%COMP%]{border-bottom:unset;padding-right:1em;padding-top:calc(var(--bs-gutter-x, 1.5rem) * .667);padding-bottom:5px}.cart-columns[_ngcontent-%COMP%] .cart-cell[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0;margin-right:3px}.cart-columns[_ngcontent-%COMP%] .image-cell[_ngcontent-%COMP%]{display:flex;justify-content:center}.cart-columns[_ngcontent-%COMP%] .image-cell[_ngcontent-%COMP%] .course-image[_ngcontent-%COMP%]{width:60%}.cart-columns[_ngcontent-%COMP%] .seats-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:unset}.cart-columns[_ngcontent-%COMP%] .mobile-label[_ngcontent-%COMP%]{display:block}.cart-columns[_ngcontent-%COMP%] #course-total[_ngcontent-%COMP%]{border-bottom:solid 2px #E8E8E8;flex-direction:row;padding:8px 14px 14px}.checkout-section[_ngcontent-%COMP%]{min-width:auto;max-width:100%;width:100%;margin:calc(var(--bs-gutter-x, 1.5rem) * .667) 0px}}@media(max-width:991px){.checkout-section[_ngcontent-%COMP%]{min-width:auto;max-width:100%;width:100%;margin:calc(var(--bs-gutter-x, 1.5rem) * .667) 0px}}"]})}}return Y})()}
1,66974(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.TagNamePipe=void 0;const v=o(31635).__importStar(o(49849));f.TagNamePipe=(()=>{class b{transform(a,...L){let m=a.replace(/_/g," "),d=m.split(" "),r=[];for(let _ of d)r.push(`${_.charAt(0).toUpperCase()+_.slice(1).toLowerCase()}`);return m=r.join(" "),m}static{this.\u0275fac=function(L){return new(L||b)}}static{this.\u0275pipe=v.\u0275\u0275definePipe({name:"tagName",type:b,pure:!0,standalone:!1})}}return b})()},54752(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.TrainingStoreCourseCodeService=void 0;const g=o(31635),c=(o(87453),o(43481)),k=(o(97377),g.__importStar(o(49849))),a=g.__importStar(o(87453)),L=g.__importStar(o(97377));f.TrainingStoreCourseCodeService=(()=>{class m{static{this.CHECK_VERIFICATION_CODE_QUERY="query CheckVerificationCode($code: String!) {\n verificationCode(code: $code) {\n courseCode\n litmosCourseId\n name\n }\n }"}constructor(r,_){this.cfsPublicApi=r,this.statefulService=_,this.userLoggedIn=null!==this.statefulService.profile.accountId}checkVerificationCode(r){return this.userLoggedIn?this.query(m.CHECK_VERIFICATION_CODE_QUERY,{code:r}).pipe((0,c.map)(_=>_.verificationCode)):null}query(r,_){let A;return A=_?{query:r,variables:{..._}}:{query:r},this.cfsPublicApi.post("/graphql",A).pipe((0,c.map)(n=>n.data))}static{this.\u0275fac=function(_){return new(_||m)(k.\u0275\u0275inject(a.CfsPublicApiService),k.\u0275\u0275inject(L.StatefulService))}}static{this.\u0275prov=k.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},7932(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.FreeSeatsCheckService=void 0;const g=o(31635),c=(o(87453),o(59091)),b=o(43481),a=(o(97377),g.__importStar(o(49849))),L=g.__importStar(o(87453)),R=g.__importStar(o(97377));f.FreeSeatsCheckService=(()=>{class d{static{this.CHECK_FREE_SEATS_QUERY="query CheckFreeSeats($unitId: String!) {\n unitIdCheck(unitId: $unitId) {\n unitId\n seatsUsed\n }\n }"}static{this.CREATE_OR_UPDATE_QUERY="mutation CreateOrUpdateQuery($freeSeatsInput: FreeSeatsInput!) {\n createOrUpdate(freeSeatsInput: $freeSeatsInput) {\n unitId\n seatsUsed\n }\n }"}constructor(_,A){this.cfsPublicApi=_,this.statefulService=A,this.userLoggedIn="GUEST"!==this.statefulService.profile.userStatus}checkFreeSeats(_){return this.userLoggedIn?this.query(d.CHECK_FREE_SEATS_QUERY,{unitId:_}).pipe((0,b.map)(A=>A.unitIdCheck)):(0,c.of)({unitId:_,seatsUsed:0})}createOrUpdate(_){return this.cfsPublicApi.post("/graphql",{query:d.CREATE_OR_UPDATE_QUERY,variables:{freeSeatsInput:_}}).pipe((0,b.map)(n=>n))}query(_,A){let n;return n=A?{query:_,variables:{...A}}:{query:_},this.cfsPublicApi.post("/graphql",n).pipe((0,b.map)(s=>s.data))}static{this.\u0275fac=function(A){return new(A||d)(a.\u0275\u0275inject(L.CfsPublicApiService),a.\u0275\u0275inject(R.StatefulService))}}static{this.\u0275prov=a.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()},20420(dt,f,o){Object.defineProperty(f,"__esModule",{value:!0}),f.TrainingStoreFooterComponent=void 0;const v=o(31635).__importStar(o(49849));f.TrainingStoreFooterComponent=(()=>{class b{constructor(){}ngOnInit(){}static{this.\u0275fac=function(L){return new(L||b)}}static{this.\u0275cmp=v.\u0275\u0275defineComponent({type:b,selectors:[["altecConnect-training-store-footer"]],decls:66,vars:0,consts:[[1,"wrapper-fluid","footerfull"],[1,"wrapper-fluid","black"],[1,"container"],[1,"row","flex-row"],[1,"col-md-8","black_bottom"],["id","text-32",1,"widget_text"],[1,"contact-us"],["href","https://www.altec.com/about-altec/contact-us/"],["id","text-6",1,"widget_text"],[1,"textwidget"],["id","nav_menu-9",1,"widget_nav_menu"],[1,"menu-footer-base-links-container"],["id","menu-footer-base-links",1,"menu"],["id","menu-item-659"],["href","http://www.altec.com/privacy-statement/"],["id","menu-item-658"],["href","http://www.altec.com/terms-conditions/"],["id","menu-item-20035"],["href","http://www.altec.com/about-altec/ca-transparency-disclosure/"],["id","menu-item-20036"],["href","https://www.altec.com/ccpa-privacy-policy/"],[1,"col-md-4","black_bottom_right"],["id","text-33",1,"widget_text"],["id","text-31",1,"widget","widget_text"],[2,"color","#efb310"],[1,"altec-title"],["id","simple-social-icons-2",1,"simple-social-icons"],[1,"ssi-facebook"],["href","https://www.facebook.com/Altec"],[1,"fa","fa-facebook"],[1,"ssi-instagram"],["href","https://www.instagram.com/altecinc/?hl=en"],[1,"fa","fa-instagram"],[1,"ssi-linkedin"],["href","https://www.linkedin.com/company/altec"],[1,"fa","fa-linkedin"],[1,"ssi-rss"],["href","https://www.altec.com/feed.xml/"],[1,"fa","fa-rss"],[1,"ssi-twitter"],["href","https://twitter.com/AltecInc"],[1,"fa","fa-twitter"],[1,"ssi-youtube"],["href","https://www.youtube.com/user/AltecTrucks"],[1,"fa","fa-youtube-play"]],template:function(L,R){1&L&&(v.\u0275\u0275domElementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"p"),v.\u0275\u0275text(8," Need Help? "),v.\u0275\u0275domElementStart(9,"a",7),v.\u0275\u0275text(10,"Please contact us."),v.\u0275\u0275domElementEnd()()()(),v.\u0275\u0275domElementStart(11,"div",8)(12,"div",9)(13,"p"),v.\u0275\u0275text(14,' Copyright \xa9 2022 Altec Industries. All Rights Reserved. "Alte
1c" is a registered trademark of Altec Industries, Inc. '),v.\u0275\u0275domElementEnd()()(),v.\u0275\u0275domElementStart(15,"div",10)(16,"div",11)(17,"ul",12)(18,"li",13)(19,"a",14),v.\u0275\u0275text(20,"Privacy Policy"),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(21,"li",15)(22,"a",16),v.\u0275\u0275text(23,"Terms & Conditions"),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(24,"li",17)(25,"a",18),v.\u0275\u0275text(26,"CTSCA Disclosure"),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(27,"li",19)(28,"a",20),v.\u0275\u0275text(29,"California Resident Privacy Policy"),v.\u0275\u0275domElementEnd()()()()()(),v.\u0275\u0275domElementStart(30,"div",21)(31,"div",22)(32,"div",9)(33,"div",23)(34,"div",9)(35,"p",24)(36,"strong",25),v.\u0275\u0275text(37,"Altec Inc."),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(38,"p"),v.\u0275\u0275text(39," 210 Inverness Center Drive"),v.\u0275\u0275domElement(40,"br"),v.\u0275\u0275text(41," Birmingham, AL 35242-4834"),v.\u0275\u0275domElement(42,"br"),v.\u0275\u0275text(43,"Phone (205) 991-7733"),v.\u0275\u0275domElement(44,"br"),v.\u0275\u0275text(45,"Fax (205) 408-8601 "),v.\u0275\u0275domElementEnd()()()()(),v.\u0275\u0275domElementStart(46,"div",26)(47,"ul")(48,"li",27)(49,"a",28),v.\u0275\u0275domElement(50,"i",29),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(51,"li",30)(52,"a",31),v.\u0275\u0275domElement(53,"i",32),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(54,"li",33)(55,"a",34),v.\u0275\u0275domElement(56,"i",35),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(57,"li",36)(58,"a",37),v.\u0275\u0275domElement(59,"i",38),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(60,"li",39)(61,"a",40),v.\u0275\u0275domElement(62,"i",41),v.\u0275\u0275domElementEnd()(),v.\u0275\u0275domElementStart(63,"li",42)(64,"a",43),v.\u0275\u0275domElement(65,"i",44),v.\u0275\u0275domElementEnd()()()()()()()()())},styles:["@media screen and (min-width:360px)and (max-width:830px){.col-md-8[_ngcontent-%COMP%]{width:70%!important;margin:0 auto!important}.col-md-4[_ngcontent-%COMP%]{margin-left:auto!important;margin-right:auto!important}}@media screen and (max-width:740px){.col-md-8[_ngcontent-%COMP%]{width:90%!important;margin:0 auto!important}.col-md-4[_ngcontent-%COMP%]{width:100%!important;margin-left:auto!important;margin-right:auto!important}.simple-social-icons[_ngcontent-%COMP%]{letter-spacing:.75rem!important}}.contact-us[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .contact-us[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#efb310}"]})}}return b})()},89692(dt,f,o){o.r(f),o.d(f,{ClipboardDirective:()=>L,ClipboardIfSupportedDirective:()=>R,ClipboardModule:()=>m,ClipboardService:()=>a});var g=o(60414),v=o(49769),c=o(35547);const b=new g.nKC("WindowToken",typeof window<"u"&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}});var k=o(21413);let a=(()=>{class d{constructor(_,A,n){this.ngZone=_,this.document=A,this.window=n,this.copySubject=ne
1w k.B,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(_){this.config=_}copy(_){if(!this.isSupported||!_)return this.pushCopyResponse({isSuccess:!1,content:_});const A=this.copyFromContent(_);return this.pushCopyResponse(A?{content:_,isSuccess:A}:{isSuccess:!1,content:_})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(_){if(_ instanceof HTMLInputElement||_ instanceof HTMLTextAreaElement){if(_.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(_,A=!0){try{this.selectTarget(_);const n=this.copyText();return this.clearSelection(A?_:void 0,this.window),n&&this.isCopySuccessInIE11()}catch{return!1}}isCopySuccessInIE11(){const _=this.window.clipboardData;return!(_&&_.getData&&!_.getData("Text"))}copyFromContent(_,A=this.document.body){if(this.tempTextArea&&!A.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{A.appendChild(this.tempTextArea)}catch{throw new Error("Container should be a Dom element")}}this.tempTextArea.value=_;const n=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),n}destroy(_=this.document.body){this.tempTextArea&&(_.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(_){return _.select(),_.setSelectionRange(0,_.value.length),_.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(_,A){_&&_.focus(),A.getSelection()?.removeAllRanges()}createTempTextArea(_,A){const n="rtl"===_.documentElement.getAttribute("dir");let s;return s=_.createElement("textarea"),s.style.fontSize="12pt",s.style.border="0",s.style.padding="0",s.style.margin="0",s.style.position="absolute",s.style[n?"right":"left"]="-9999px",s.style.top=(A.pageYOffset||_.documentElement.scrollTop)+"px",s.setAttribute("readonly",""),s}pushCopyResponse(_){this.copySubject.observers.length>0&&this.ngZone.run(()=>{this.copySubject.next(_)})}pushCopyReponse(_){this.pushCopyResponse(_)}}return d.\u0275fac=function(_){return new(_||d)(g.KVO(g.SKi),g.KVO(g.qQL),g.KVO(b,8))},d.\u0275prov=g.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),L=(()=>{class d{constructor(_,A,n,s){this.ngZone=_,this.host=A,this.renderer=n,this.clipboardSrv=s,this.cbOnSuccess=new g.bkB,this.cbOnError=new g.bkB,this.onClick=et=>{this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,et):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,et):this.handleResult(!1,void 0,et)}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.clickListener=this.renderer.listen(this.host.nativeElement,"click",this.onClick)})}ngOnDestroy(){this.clickListener&&this.clickListener(),this.clipboardSrv.destroy(this.container)}handleResult(_,A,n){let s={isSuccess:_,content:A,successMessage:this.cbSuccessMsg,event:n};_?this.cbOnSuccess.observed&&this.ngZone.run(()=>{this.cbOnSuccess.emit(s)}):this.cbOnError.observed&&this.ngZone.run(()=>{this.cbOnError.emit(s)}),this.clipboardSrv.pushCopyResponse(s)}}return d.\u0275fac=function(_){return new(_||d)(c.rXU(g.SKi),c.rXU(c.aKT),c.rXU(c.sFG),c.rXU(a))},d.\u0275dir=c.FsC({type:d,selectors:[["","ngxClipboard",""]],inputs:{targetElm:[0,"ngxClipboard","targetElm"],container:"container",cbContent:"cbContent",cbSuccessMsg:"cbSuccessMsg"},outputs:{cbOnSuccess:"cbOnSuccess",cbOnError:"cbOnError"},standalone:!1}),d})(),R=(()=>{class d{constructor(_,A,n){this._clipboardService=_,this._viewContainerRef=A,this._templateRef=n}ngOnInit(){this._clipboardService.isSupported&&this._viewContainerRef.createEmbeddedView(this._templateRef)}}return d.\u0275fac=function(_){return new(_||d)(c.rXU(a),c.rXU(c.c1b),c.rXU(c.C4Q))},d.\u0275dir=c.FsC({type:d,selectors:[["","ngxClipboardIfSupported",""]],standalone:!1}),d})(),m=(()=>{class d{}return d.\u0275fac=function(_){return new(_||d)},d.\u0275mod=c.$C({type:d}),d.\u0275inj=g.G2t({imports:[v.MD]}),d})()}}]);
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.