1"use strict";(self.webpackChunkcore_app=self.webpackChunkcore_app||[]).push([["apps_associate-landing_src_app_app_module_ts"],{49522(b,c,e){Object.defineProperty(c,"__esModule",{value:!0}),c.AppRoutingModule=void 0;const i=e(31635),A=e(7901),t=e(19575),g=i.__importStar(e(49849)),y=(i.__importStar(e(7901)),[{path:"",component:t.AssociateSelectionComponent,data:{title:"Employee Landing"}}]);c.AppRoutingModule=(()=>{class p{static{this.\u0275fac=function(M){return new(M||p)}}static{this.\u0275mod=g.\u0275\u0275defineNgModule({type:p})}static{this.\u0275inj=g.\u0275\u0275defineInjector({imports:[A.RouterModule.forChild(y),A.RouterModule]})}}return p})()},97307(b,c,e){c.AppModule=void 0;const A=e(31635),t=e(60177),g=e(83352),l=e(84341),y=e(49522),I=A.__importStar(e(49849));c.AppModule=(()=>{class C{constructor(){}static{this.\u0275fac=function(n){return new(n||C)}}static{this.\u0275mod=I.\u0275\u0275defineNgModule({type:C})}static{this.\u0275inj=I.\u0275\u0275defineInjector({imports:[t.CommonModule,y.AppRoutingModule,l.FormsModule,g.CommonProjModule]})}}return C})()},23057(b,c,e){Object.defineProperty(c,"__esModule",{value:!0}),c.AssociateLandingCompanySelectModalComponent=void 0;const i=e(31635),t=(e(6324),e(43481)),g=e(59091),l=e(83352),o=(e(20851),e(75113),e(99975),e(4204),e(99525),e(7901),e(53323),i.__importStar(e(49849))),a=i.__importStar(e(6324)),x=i.__importStar(e(75113)),s=i.__importStar(e(20851)),f=i.__importStar(e(99975)),S=i.__importStar(e(53323)),P=i.__importStar(e(4204)),T=i.__importStar(e(99525)),w=i.__importStar(e(7901)),j=i.__importStar(e(84341)),_=i.__importStar(e(92479));c.AssociateLandingCompanySelectModalComponent=(()=>{class R{constructor(r,m,d,h,u,O,E,N){this.activeModal=r,this.errorService=m,this.loadingService=d,this.userProfileService=h,this.integrationClient=u,this.activeOrgSessionService=O,this.coreUtilService=E,this.router=N,this.nameSpace="https://connect.altec.com/",this.loadingAutocomplete=!1,this.customers=[],this.unsubscribe$=new g.Subject,this.orgSearchSubject=new g.Subject,this.query="",this.custSearchDisplaytext=new Array}ngOnInit(){this.searchOrgSubscription()}getOrgAutoComplete(r){this.orgSearchSubject.next(r)}searchOrgSubscription(){this.orgSearchSubject.pipe((0,t.debounceTime)(l.GlobalConstants.ALTEC_STANDARD_DEBOUNCE_LARGE),(0,t.distinctUntilChanged)(),(0,t.takeUntil)(this.unsubscribe$),(0,t.switchMap)(r=>(this.query=r,this.loadingAutocomplete=!0,this.userProfileService.getUser().pipe((0,t.take)(1)))),(0,t.switchMap)(r=>{const m=r||{};this.profile=m[`${this.nameSpace}altecConnectProfile`]||{};let d=m[`${this.nameSpace}altecEmployee/allowedActions`]||[],h=m[`${this.nameSpace}altecEmployee/allowedAltecAccountIds`]||[],u=m[`${this.nameSpace}altecEmployee/allowViewAltecCompanies`]||!1,O=m[`${this.nameSpace}altecEmployee/employeeId`];if(d&&d.includes("VIEW_ALL_CUSTOMER_ACCOUNTS"))return this.integrationClient.request("/customers/profileSearch",{query:this.query,includeAll:!1,allowViewAltecCompanies:u,allowedAltecAccountIds:h}).pipe((0,t.take)(1));{let E={employeeId:O?parseInt(O):null,searchTerm:this.query,size:10,allowViewAltecCompanies:u,allowedAltecAccountIds:h};return this.integrationClient.request("/customers/searchInternalAssociateAccounts",E).pipe((0,t.take)(1))}})).subscribe(r=>{this.customers=r.customerList,this.custSearchDisplaytext=[];for(let m of r.customerList)this.custSearchDisplaytext.push(`${m.customerName} : ACCOUNT #${m.accountNumber}`);this.loadingAutocomplete=!1,r.errors&&r.errors.length>0&&this.errorService.showMessage(r.errors[0])})}setCustomer(r){this.selectedCustomer=r,this.setSelectedCustomer()}setSelectedCustomer(){this.loadingService.start();const r={accountId:this.selectedCustomer.accountId,partyId:this.selectedCustomer.partyId,accountNumber:this.selectedCustomer.accountNumber,name:this.selectedCustomer.customerName};(0,g.forkJoin)([this.activeOrgSessionService.applyInternalAssociateInitiallySelectedOrgInfoInAuth0(r).pipe((0,t.take)(1)),this.activeOrgSessionService.setInternalAssociateActiveOrgs([r]).pipe((0,t.take)(1))]).pipe((0,t.take)(1),(0,t.switchMap)(()=>(this.activeOrgSessionService.setInternalAssociateInitiallySelectedOrg(r),this.coreUtilService.refreshUserProfile().pipe((0,t.take)(1))))).subscribe(()=>{this.router.navigate(["/pages/dashboard"]).then(()=>{this.activeModal.close(),this.loadingService.stop()})})}handleDuplicates(r){let d,m=[];return r.forEach(h=>{d=r.filter(u=>u.name===h.name).length>1?{name:h.name+" - "+h.accountNumber,accountId:h.accountId,partyId:h.partyId,accountNumber:h.accountNumber}:{name:h.name,accountId:h.accountId,partyId:h.partyId,accountNumber:h.accountNumber},m.push(d)}),m}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(m){return new(m||R)(o.\u0275\u0275directiveInject(a.NgbActiveModal),o.\u0275\u0275directiveInject(x.ErrorHandlerService),o.\u0275\u0275directiveInject(s.LoadingService),o.\u0275\u0275directiveInject(f.UserProfileService),o.\u0275\u0275directiveInject(S.IntegrationClientService),o.\u0275\u0275directiveInject(P.ActiveOrgSessionService),o.\u0275\u0275directiveInject(T.CoreUtilService),o.\u0275\u0275directiveInject(w.Router))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:R,selectors:[["altcon-associate-landing-company-select-modal"]],standalone:!1,decls:33,vars:3,consts:[[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"row"],[1,"col-12"],[1,"org-form","mb-3"],["placeholder","Search Organizations","searchTip","Find Organizations by Name, Account Number or Customer Id",3,"searchChange","resultSelect","loading","searchResults","searchResultsDisplay"],[1,"d-none","d-sm-block"],[1,"mt-3","mb-3"],[1,"d-block","d-sm-none"],["disabled","",1,"scrollable","form-control-sm"]],template:function(m,d){1&m&&(o.\u0275\u0275elementStart(0,"div",0)(1,"h4",1),o.\u0275\u0275text(2,"Select Company"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5)(7,"h6"),o.\u0275\u0275text(8,"Company"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"altec-autocomplete",6),o.\u0275\u0275listener("searchChange",function(u){return d.getOrgAutoComplete(u)})("resultSelect",function(u){return d.setCustomer(u)}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(10,"div",7)(11,"p")(12,"strong"),o.\u0275\u0275text(13,"Privacy Policy"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(14,"div")(15,"p"),o.\u0275\u0275text(16," The contents of this website are the property of Altec, Inc., and are highly confidential. Please take all appropriate steps to prevent inappropriate disclosure. In particular, "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(17,"div",8)(18,"p"),o.\u0275\u0275text(19,"-Do not share the contents, or any part thereof, with competitors."),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(20,"p"),o.\u0275\u0275text(2
11,"-Do not share information concerning one customer with another customer."),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(22,"p"),o.\u0275\u0275text(23," -To the extent it is necessary to share the Contents with a customer, ensure that you share only that which is necessary in order to serve the customer. "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(24,"div")(25,"p"),o.\u0275\u0275text(26," Inappropriate disclosure of the Contents can result in severe damage to Altec and can lead to disciplinary action, including termination, and civil or criminal charges. "),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(27,"div",9)(28,"p")(29,"strong"),o.\u0275\u0275text(30,"Privacy Policy"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(31,"textarea",10),o.\u0275\u0275text(32," The contents of this website are the property of Altec, Inc., and are highly confidential. Please take all appropriate steps to prevent inappropriate disclosure. In particular,\n -Do not share the contents, or any part thereof, with competitors.\n -Do not share information concerning one customer with another customer.\n -To the extent it is necessary to share the Contents with a customer, ensure that you share only that which is necessary in order to serve the customer.\n Inappropriate disclosure of the Contents can result in severe damage to Altec and can lead to disciplinary action, including termination, and civil or criminal charges.\n "),o.\u0275\u0275elementEnd()()()()()),2&m&&(o.\u0275\u0275advance(9),o.\u0275\u0275property("loading",d.loadingAutocomplete)("searchResults",d.customers)("searchResultsDisplay",d.custSearchDisplaytext))},dependencies:[j.\u0275NgNoValidate,j.NgControlStatusGroup,j.NgForm,_.AltecAutocompleteComponent],styles:[".scrollable[_ngcontent-%COMP%]{height:200px;width:100%;overflow:scroll}.modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:35%}"]})}}return R})()},80085(b,c,e){Object.defineProperty(c,"__esModule",{value:!0}),c.HasAnyEmployeeActionDirective=void 0;const i=e(31635),g=(e(49849),e(97377),e(18435)),l=i.__importStar(e(49849)),y=i.__importStar(e(97377));c.HasAnyEmployeeActionDirective=(()=>{class p extends g.BasePrivilegeDirective{constructor(v,M,n){super(v,M),this.allowedActions=n.profile.authProfile.internalProperties.allowedActions||[]}isAllowed(){for(let v of this.hasAnyEmployeeAction)if(this.allowedActions.includes(v))return!0;return!1}static{this.\u0275fac=function(M){return new(M||p)(l.\u0275\u0275directiveInject(l.TemplateRef),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject(y.StatefulService))}}static{this.\u0275dir=l.\u0275\u0275defineDirective({type:p,selectors:[["","hasAnyEmployeeAction",""]],inputs:{hasAnyEmployeeAction:"hasAnyEmployeeAction"},standalone:!1,features:[l.\u0275\u0275InheritDefinitionFeature]})}}return p})()},43934(b,c,e){Object.defineProperty(c,"__esModule",{value:!0}),c.HasEmployeeActionDirective=void 0;const i=e(31635),g=(e(49849),e(97377),e(18435)),l=i.__importStar(e(49849)),y=i.__importStar(e(97377));c.HasEmployeeActionDirective=(()=>{class p extends g.BasePrivilegeDirective{constructor(v,M,n){super(v,M),this.allowedActions=n.profile.authProfile.internalProperties.allowedActions||[]}isAllowed(){return this.allowedActions.indexOf(this.hasEmployeeAction)>-1}static{this.\u0275fac=function(M){return new(M||p)(l.\u0275\u0275directiveInject(l.TemplateRef),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject(y.StatefulService))}}static{this.\u0275dir=l.\u0275\u0275defineDirective({type:p,selectors:[["","hasEmployeeAction",""]],inputs:{hasEmployeeAction:"hasEmployeeAction"},standalone:!1,features:[l.\u0275\u0275InheritDefinitionFeature]})}}return p})()},19575(b,c,e){Object.defineProperty(c,"__esModule",{value:!0}),c.AssociateSelectionComponent=void 0;const i=e(31635),t=(e(6324),e(83352)),y=(e(88284),e(20851),e(23057)),C=(e(4204),e(7901),e(59091)),n=(e(99525),e(97377),i.__importStar(e(49849))),o=i.__importStar(e(6324)),a=i.__importStar(e(88284)),x=i.__importStar(e(20851)),s=i.__importStar(e(4204)),f=i.__importStar(e(7901)),S=i.__importStar(e(99525)),P=i.__importStar(e(97377)),T=i.__importStar(e(48744)),w=i.__importStar(e(43934)),j=i.__importStar(e(80085)),_=()=>["VIEW_CUSTOMER","VIEW_CUSTOMER_LIMITED","VIEW_CUSTOMER_TELEMATICS"],D=()=>["CSR","CSR_SPECIAL"];
1function R(d,h){if(1&d){const u=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",12),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(u);const E=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(E.openCompanyModal())}),n.\u0275\u0275text(1,"Go To Altec Connect"),n.\u0275\u0275elementEnd()}}function F(d,h){if(1&d){const u=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",12),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(u);const E=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(E.goToCsr())}),n.\u0275\u0275text(1,"CSR Management"),n.\u0275\u0275elementEnd()}}function r(d,h){if(1&d){const u=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",12),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(u);const E=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(E.shopSupplyMarketing())}),n.\u0275\u0275text(1,"Altec Promotional Items"),n.\u0275\u0275elementEnd()}}c.AssociateSelectionComponent=(()=>{class d{constructor(u,O,E,N,L,U,V){this.modalService=u,this.associateService=O,this.loadingService=E,this.activeOrgSessionService=N,this.router=L,this.coreUtilService=U,this.statefulService=V,this.modalDefaultOptions=t.GlobalConstants.MODAL_DEFAULT_OPTIONS}ngOnInit(){this.statefulService.profile.accountId&&(this.loadingService.start(),(0,C.forkJoin)([this.activeOrgSessionService.removeInternalAssociateInitiallySelectedOrg().pipe((0,C.take)(1)),this.activeOrgSessionService.setInternalAssociateActiveOrgs(null).pipe((0,C.take)(1))]).pipe((0,C.take)(1),(0,C.switchMap)(()=>this.coreUtilService.refreshUserProfile())).subscribe(()=>this.loadingService.stop()))}logout(){document.getElementById("logoutForm").submit()}goToCsr(){this.router.navigate(["/pages/csr"])}shopSupplyMarketing(){this.loadingService.start(),this.associateService.shopSupplyMarketing().pipe((0,C.switchMap)(()=>(this.activeOrgSessionService.setInternalAssociateInitiallySelectedOrg({accountId:928943,accountNumber:"183225",partyId:2180671,name:"ALTEC ACCOUNT MANAGERS-MARKETING"}),this.activeOrgSessionService.setActiveOrgs([{accountId:928943,accountNumber:"183225",partyId:2180671,name:"ALTEC ACCOUNT MANAGERS-MARKETING"}]),this.coreUtilService.refreshUserProfile().pipe((0,C.take)(1)))),(0,C.take)(1)).subscribe({next:()=>{this.router.navigate(["/pages/store"]).then(()=>{this.loadingService.stop()})},error:u=>{console.error("Error during shopSupplyMarketing navigation:",u),this.loadingService.stop()}})}openCompanyModal(){this.modalService.open(y.AssociateLandingCompanySelectModalComponent,{windowClass:"associate-landing-company-select-modal-window"})}static{this.\u0275fac=function(O){return new(O||d)(n.\u0275\u0275directiveInject(o.NgbModal),n.\u0275\u0275directiveInject(a.AssociateService),n.\u0275\u0275directiveInject(x.LoadingService),n.\u0275\u0275directiveInject(s.ActiveOrgSessionService),n.\u0275\u0275directiveInject(f.Router),n.\u0275\u0275directiveInject(S.C
1oreUtilService),n.\u0275\u0275directiveInject(P.StatefulService))}}static{this.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["altecConnect-associate-selection"]],standalone:!1,decls:16,vars:5,consts:[["id","login-container"],["id","login-centering",1,"pt-5"],["id","login-form"],["src","/assets/images/altec-logo.jpg"],[1,"box-title"],[1,"mt-1"],[1,"pt-3","login-div"],[1,"buttons"],[1,"d-grid","gap-2"],["class","btn btn-light",3,"click",4,"hasAnyEmployeeAction"],["class","btn btn-light",3,"click",4,"hasEmployeeAction"],["href","/logout",1,"btn","btn-altec"],[1,"btn","btn-light",3,"click"]],template:function(O,E){1&O&&(n.\u0275\u0275element(0,"altcon-site-message"),n.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2),n.\u0275\u0275element(4,"img",3),n.\u0275\u0275elementStart(5,"div",4)(6,"h4",5),n.\u0275\u0275text(7," Welcome to Altec Connect "),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(8,"div",6)(9,"div",7)(10,"div",8),n.\u0275\u0275template(11,R,2,0,"button",9)(12,F,2,0,"button",9)(13,r,2,0,"button",10),n.\u0275\u0275elementStart(14,"a",11),n.\u0275\u0275text(15,"Log Out"),n.\u0275\u0275elementEnd()()()()()()()),2&O&&(n.\u0275\u0275advance(11),n.\u0275\u0275property("hasAnyEmployeeAction",n.\u0275\u0275pureFunction0(3,_)),n.\u0275\u0275advance(),n.\u0275\u0275property("hasAnyEmployeeAction",n.\u0275\u0275pureFunction0(4,D)),n.\u0275\u0275advance(),n.\u0275\u0275property("hasEmployeeAction","ALTEC_PROMOTIONAL_ITEMS"))},dependencies:[T.SiteMessageComponent,w.HasEmployeeActionDirective,j.HasAnyEmployeeActionDirective],styles:["#login-centering[_ngcontent-%COMP%]{max-width:400px;margin:0 auto}#login-form[_ngcontent-%COMP%]{text-align:center;margin:0 15px}h4[_ngcontent-%COMP%]{font-weight:400}.login-div[_ngcontent-%COMP%]{border:1px solid #E2E2E2;border-radius:6px;padding:25px;margin-top:25px}#login-container[_ngcontent-%COMP%]{margin-top:50px}.btn-block[_ngcontent-%COMP%] + .btn-block[_ngcontent-%COMP%]{margin-top:15px}.test-class[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{width:100px!important}"]})}}return d})()},88284(b,c,e){Object.defineProperty(c,"__esModule",{value:!0}),c.AssociateService=void 0;const i=e(31635),A=e(59091),l=(e(87453),e(99975),i.__importStar(e(49849))),y=i.__importStar(e(87453)),I=i.__importStar(e(99975));c.AssociateService=(()=>{class v{constructor(n,o){this.cfsPublicApi=n,this.authService=o}shopSupplyMarketing(){return this.cfsPublicApi.authenticatedGraphql("\nmutation ApplyAltecMarketingOrgForPromotionalItems {\n applyAltecMarketingOrgForPromotionalItems\n}\n",{}).pipe((0,A.map)(n=>n.applyAltecMarketingOrgForPromotionalItems),(0,A.switchMap)(n=>this.authService.refreshAccessTokenWithOriginalReturn(n)),(0,A.take)(1))}static{this.\u0275fac=function(o){return new(o||v)(l.\u0275\u0275inject(y.CfsPublicApiService),l.\u0275\u0275inject(I.AuthenticationService))}}static{this.\u0275prov=l.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},92479(b,c,e){Object.defineProperty(c,"__esModule",{value:!0}),c.AltecAutocompleteComponent=void 0;const i=e(31635),A=e(49849),t=i.__importStar(e(49849)),g=i.__importStar(e(84341));function l(a,x){1&a&&(t.\u0275\u0275elementStart(0,"div",4),t.\u0275\u0275element(1,"span",8),t.\u0275\u0275elementEnd())}function y(a,x){if(1&a&&(t.\u0275\u0275elementStart(0,"div",5),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&a){const s=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",s.searchTip," ")}}function I(a,x){if(1&a&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&a){const s=t.\u0275\u0275nextContext().$implicit,f=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(s[f.displayAttribute])}}function p(a,x){if(1&a&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&a){const s=t.\u0275\u0275nextContext().$index,f=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(f.searchResultsDisplay[s])}}function C(a,x){if(1&a){const s=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",10),t.\u0275\u0275listener("click",function(){const S=t.\u0275\u0275restoreView(s).$index,P=t.\u0275\u0275nextContext(3);
1return t.\u0275\u0275resetView(P.onResultSelect(S))}),t.\u0275\u0275conditionalCreate(1,I,2,1,"span"),t.\u0275\u0275conditionalCreate(2,p,2,1,"span"),t.\u0275\u0275elementEnd()}if(2&a){const s=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(),t.\u0275\u0275conditional(""!==s.displayAttribute?1:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(s.searchResultsDisplay.length>0?2:-1)}}function v(a,x){if(1&a&&(t.\u0275\u0275elementStart(0,"div",6),t.\u0275\u0275repeaterCreate(1,C,3,2,"div",9,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()),2&a){const s=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(),t.\u0275\u0275repeater(s.searchResults)}}function M(a,x){1&a&&(t.\u0275\u0275elementStart(0,"div",7)(1,"i"),t.\u0275\u0275text(2,"No Results Found"),t.\u0275\u0275elementEnd()())}function n(a,x){if(1&a&&(t.\u0275\u0275elementStart(0,"div",3)(1,"div",0),t.\u0275\u0275conditionalCreate(2,l,2,0,"div",4),t.\u0275\u0275conditionalCreate(3,y,2,1,"div",5),t.\u0275\u0275conditionalCreate(4,v,3,0,"div",6),t.\u0275\u0275conditionalCreate(5,M,3,0,"div",7),t.\u0275\u0275elementEnd()()),2&a){const s=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275conditional(s.loading?2:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(""===s.searchTip||s.loading?-1:3),t.\u0275\u0275advance(),t.\u0275\u0275conditional(s.loading?-1:4),t.\u0275\u0275advance(),t.\u0275\u0275conditional(s.loading||0!==s.searchResults.length?-1:5)}}c.AltecAutocompleteComponent=(()=>{class a{onGlobalClick(s){s.target.classList.contains("allow-click")||this.onInputBlur()}constructor(s){this.cd=s,this.searchResults=new Array,this.searchResultsDisplay=new Array,this.displayAttribute="",this.placeholder="",this.searchTip="",this.loading=!1,this.searchChange=new A.EventEmitter,this.resultSelect=new A.EventEmitter,this._query="",this.isSearchFirstChange=!0}ngOnInit(){}ngOnChanges(s){s.searchResults&&(this.isSearchFirstChange=s.searchResults.firstChange,this.searchResults=s.searchResults.currentValue,this.onInputFocus())}onSearchChange(s){this.searchChange.emit(s)}onResultSelect(s){this.searchResults&&(this.resultSelect.emit(this.searchResults[s]),this.onInputBlur())}onInputFocus(){this.isSearchFirstChange||(this.showResultsContainer=!0,this.cd.detectChanges())}onInputBlur(){this.isSearchFirstChange||(this.showResultsContainer=!1,this.cd.detectChanges())}static{this.\u0275fac=function(f){return new(f||a)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef))}}static{this.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["altec-autocomplete"]],hostBindings:function(f,S){1&f&&t.\u0275\u0275listener("click",function(T){return S.onGlobalClick(T)},t.\u0275\u0275resolveDocument)},inputs:{searchResults:"searchResults",searchResultsDisplay:"searchResultsDisplay",displayAttribute:"displayAttribute",placeholder:"placeholder",searchTip:"searchTip",loading:"loading"},outputs:{searchChange:"searchChange",resultSelect:"resultSelect"},standalone:!1,features:[t.\u0275\u0275NgOnChangesFeature],decls:4,vars:3,consts:[[1,"row","mx-0","allow-click"],[1,"col-12","px-0","position-relative","allow-click"],[1,"w-100","search-input","allow-click",3,"ngModelChange","focus","ngModel","placeholder"],[1,"results-container","allow-click"],[1,"col-12","text-center","allow-click"],[1,"col-12","search-tip","allow-click"],[1,"col-12","px-0","result-wrap","allow-click"],[1,"col-12","text-center","blank-results","allow-click"],[1,"fa","fa-spinner","fa-pulse","fa-fw","fa-3x","allow-click"],[1,"result"],[1,"result",3,"click"]],template:function(f,S){1&f&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"input",2),t.\u0275\u0275twoWayListener("ngModelChange",function(T){return t.\u0275\u0275twoWayBindingSet(S._query,T)||(S._query=T),T}),t.\u0275\u0275listener("ngModelChange",function(T){return S.onSearchChange(T)})("focus",function(){return S.onInputFocus()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275conditionalCreate(3,n,6,4,"div",3),t.\u0275\u0275elementEnd()()),2&f&&(t.\u0275\u0275advance(2),t.\u0275\u0275twoWayProperty("ngModel",S._query),t.\u0275\u0275property("placeholder",S.placeholder),t.\u0275\u0275advance(),t.\u0275\u0275conditional(S.showResultsContainer||S.loading?3:-1))},dependencies:[g.DefaultValueAccessor,g.NgControlStatus,g.NgModel],styles:[".search-input[_ngcontent-%COMP%]{border-radius:4px;border:1px solid #ccc;padding:5px 10px}.search-input[_ngcontent-%COMP%]:focus{outline:none}.results-container[_ngcontent-%COMP%]{position:absolute;width:100%;background-color:#fff;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 6px 12px #0000002e;padding:1rem 0;z-index:1050}.results-container[_ngcontent-%COMP%] .search-tip[_ngcontent-%COMP%]{color:#737373;padding:0 1rem;margin-top:-4px}.results-container[_ngcontent-%COMP%] .result-wrap[_ngcontent-%COMP%]{max-height:186px;overflow-y:scroll}.results-container[_ngcontent-%COMP%] .result-wrap[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{padding:.25rem 1rem}.results-container[_ngcontent-%COMP%] .result-wrap[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]:hover{background-color:#ececec;cursor:pointer}.results-container[_ngcontent-%COMP%] .blank-results[_ngcontent-%COMP%]{color:#737373}"]})}}return a})()}}]);
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.