PageSourceSearch

https://nucor-fastener.com/chunk-OHWF33QO.js

js nucor-fastener.com collected 2026-10-07 02:01:40 UTC 14,030 bytes, 1 lines download raw bytes

1import{a as M}from"./chunk-THYHJHGM.js";import{a as ae,c as le,d as de,e as me}from"./chunk-EEO4FC3B.js";import{a as he}from"./chunk-4V2XQZUA.js";import{a as A}from"./chunk-F4BI5774.js";import"./chunk-7YYEU5PM.js";import{f as ce}from"./chunk-5GXW27VC.js";import"./chunk-YFU6CWUS.js";import"./chunk-MTLSSLVV.js";import{a as ne}from"./chunk-D6GKABZB.js";import{a as se}from"./chunk-ILEAUVHB.js";import{B as re,E as D,c as W,e as L,h as X,i as Y,o as ee,r as te,v as ie}from"./chunk-7MVIDXE6.js";import{c as oe}from"./chunk-A3GSJ6EL.js";import"./chunk-AR4CUNRG.js";import{d as K,g as N}from"./chunk-FIDUW7QL.js";import"./chunk-6XDXCMO7.js";import{p as E}from"./chunk-K7ULS6C4.js";import{d as f}from"./chunk-X34TSPSD.js";import"./chunk-QKRDQ354.js";import{$b as n,Ac as Z,Cb as $,Db as _,Dc as l,Ec as J,Fc as k,S as x,Vb as u,Wb as p,Xb as I,Yb as G,Zb as T,_b as U,ac as s,bc as R,ic as H,ja as V,ka as b,lb as z,m as q,mb as d,mc as g,na as j,oa as h,oc as v,sc as Q,tc as w,ua as O,uc as C,va as B}from"./chunk-TPFUSCPX.js";import"./chunk-VZXUKQ6R.js";var P=(()=>{class o{constructor(e){this.restService=e,this.SearchCustomersEndpoint="searchCustomers",this.AddToCustomerSavedSearchEndpoint="addCustomerSavedSearch",this.GetCustomerSavedSearchInfoEndpoint="getCustomerSavedSearch",this.ShadowUserEndpoint="shadowUser",this.ShadowUserCompaniesEndpoint="shadowCompanies",this.UnshadowUserEndpoint="unshadowUser",this.DeleteFormCustomerSavedSearchEndpoint="deleteCustomerSavedSearch",this.GetUSStatesEndpoint="getStates",this.GetCustomerUsersEndpoint="getCustomerUsers",this.GetSavedCompanyDetailsEndpoint="getSavedCompanyDetails",this.getAllUsersEndpoint="getAllUsers",this.getstockListEndpoint="getStockDetails"}GetSearchedCustomers(e){return this.restService.post(this.SearchCustomersEndpoint,e)}AddToCustomerSavedSearch(e){return this.restService.post(this.AddToCustomerSavedSearchEndpoint,e)}GetCustomerSavedSearchInfo(e){let i={params:new f().set("login",e)};return this.restService.get(this.GetCustomerSavedSearchInfoEndpoint,i)}ShadowUser(e,t){let a={params:new f().set("shadowLogin",t)};return this.restService.get(this.ShadowUserEndpoint,a)}ShadowUserCompanies(e){return this.restService.post(this.ShadowUserCompaniesEndpoint,e)}UnshadowUser(e,t){let a={params:new f().set("shadowUserID",t)};return this.restService.get(this.UnshadowUserEndpoint,a)}DeleteFormCustomerSavedSearch(e,t){return this.restService.delete(this.DeleteFormCustomerSavedSearchEndpoint,e,t)}GetUSStates(){let t={params:new f};return this.restService.get(this.GetUSStatesEndpoint,t)}GetCustomerUsers(e,t){let a={params:new f().set("customerId",t).set("millId",e)};return this.restService.get(this.GetCustomerUsersEndpoint,a)}GetSavedCompanyDetails(e){return this.restService.post(this.GetSavedCompanyDetailsEndpoint,e)}GetAllUsers(e){return this.restService.get(this.getAllUsersEndpoint)}getstockList(e){return this.restService.post(this.getstockListEndpoint,e)}static{this.\u0275fac=function(t){return new(t||o)(j(oe))}}static{this.\u0275prov=V({token:o,factory:o.\u0275fac})}}return o})();var pe=["searchinput"],fe=["MessageModal"],Se=["UserCustomersModal"],ge=["selopt"];function ve(o,r){o&1&&(n(0,"span",13),l(1,"* Please enter a valid id to shadow"),s())}function we(o,r){o&1&&(n(0,"span",13),l(1,"* Please enter a valid id to shadow"),s())}function Ce(o,r){if(o&1){let e=H();n(0,"div",33),g("click",function(){let i=O(e).$implicit,a=v(2);return B(a.getGlobalSearchResults(i))}),l(1),s()}if(o&2){let e=r.$implicit,t=r.$index,i=v(2);Z("hilite",t==i.arrowkeyLocation),d(),J(e)}}function ye(o,r){if(o&1&&(n(0,"div",15)(1,"div"),G(2,Ce,2,3,"div",32,I),s()()),o&2){let e=v();d(2),T(e.filteredList)}}function be(o,r){if(o&1&&(n(0,"span"),l(1),s()),o&2){let e=r.$implicit;d(),k("",e,"; ")}}function _e(o,r){if(o&1&&(n(0,"div",30),G(1,be,2,1,"span",null,I),s()),o&2){let e=v();d(),T(e.userCustomers)}}function Ue(o,r){o&1&&(n(0,"div",31),l(1,"No Users found for this Ship to"),s())}var c=class o{constructor(){this.router=h(K),this.adminService=h(P),this.filterService=h(se),this.paginationService=h(M),this.fb=h(re),this.mainService=h(ne),this.globalLoginService=h(he),this.store=h(ae),this.excelService=h(A),this.divisionsSettings={},this.prodGroupSettings={},this.uniqueDivisions=[],this.Divisions=[],this.showDivisions=[],this.selectedDivisions=[],this.addToSaveCompSearch=[],this.boxSearch=[],this.customerSearchDisplayList=[],this.temp=[],this.pageSize=10,this.pager={},this.formErrors=!1,this.searchName=null,this.searchFormError=!1,this.shouldBeANumberPattern="(?=.)([+-]?([0-9]*)(.([0-9]+))?)([eE][+-]?d+)?",this.emailPattern=/^(((([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)(\s*(;)\s*|\s*$))*)|((([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)(\s*(,)\s*|\s*$))*))$/,this.shadowName="",this.showProdGroups=[],this.selectedProdGroups=[],this.uniqueProdGroups=[],this.isDesc=1,this.itemName="itemName",this.sortOrder="",this.userCustomers="",this.MyCompaniesSearch=!1,this.addshipto=!1,this.editSavedSearch=!1,this.editCompanySearchName="",this.CustomerUsers=[],this.filteredList=[],this.query="",this.arrowkeyLocation=-1,this.showSearchDD=!1,this.filterService.CartItemShow.observers.length=0,this.shadowUserIdCheck=this.fb.group({login:[null,L.compose([L.required,L.pattern(this.emailPattern)])]})}ngOnInit(){this.loginUser=this.globalLoginService.loginUser,this.unShadow(),this.getCustomerUsers()}getCustomerUsers(){this.adminService.GetAllUsers(this.loginUser).subscribe(r=>{r!=null&&(this.CustomerUsers=r.filter(e=>e.userType=="C")),console.log("Get ALL Users")})}Shadow(r){console.log("Admin Component Shadow"),this.filterService.isadmin=!0;let e=r;this.shadowUserIdCheck.valid&&(this.filterService.shadowedUser=e.login,this.filterService.isShadowing=!0,this.adminService.ShadowUser(this.loginUser,e.login).subscribe(t=>{t!=null?t.toLowerCase()==="user shadowed success"?(console.log("success shadowing"),this.loginProfile(this.loginUser),this.filterService.IsdashboardModified="true",this.filterService.dashboardModified.next(!0),this.filterService.UserShadowed.next(!0),this.filterService.isShadowing=!0,this.router.events.subscribe(()=>window.scrollTo(0,0))):this.shadowUserError(t):this.shadowUserError("Unable to shadow user. Please try again....")},t=>{this.shadowUserError("Unable to shadow user. Please try again...."),console.log(t)}))}unShadow(){this.adminService.UnshadowUser(this.loginUser,this.shadowedUserID).subscribe(r=>{this.filterService.shadowedUser="",this.filterService.isShadowing=!1,this.filterService.UserShadowed.next(!0),this.filterService.IsdashboardModified="true",this.filterService.dashboardModified.next(!0),this.loginProfile(this.loginUser),this.router.navigateByUrl("/admin"),console.log("successfully unshadowed")})}loginProfile(r){this.store.dispatch(new de).pipe(x()).subscribe(e=>{e&&e.userProfile&&this.userProfile.pipe(x()).subscribe(t=>
1{if(e.userProfile.userProfile.userId){this.menuItems=e.userProfile.userProfile.userModulesList;let i=this.menuItems.filter(m=>m.permissionId===12);this.filterService.enterOrder=i.length!==0;let y=this.menuItems.filter(m=>m.isVisible===!0&&m.cssClass!==null);if(this.filterService.isShadowing===!0){if(e.userProfile.userProfile.currentlyShadowingUser!=""&&e.userProfile.userProfile.allCustomerList.count!=0){let m=[];m.length=0,e.userProfile.userProfile.allCustomerList.forEach(S=>{m.indexOf(S)<0&&m.push(S.id)}),this.mainService.SetProductsCache(e.userProfile.userProfile.email,m).subscribe(S=>{if(S){let Ee=S}})}this.router.navigateByUrl(y[0].urlPath)}}})})}shadowUserError(r){console.log("error shadowing"),this.resultHeading="Shadowing Error",this.resultMessage=r,ce.getOrCreateInstance(this.MessageModal.nativeElement).show()}keyDown(r){r.key==="ArrowUp"&&this.arrowkeyLocation>0?this.arrowkeyLocation--:r.key==="ArrowDown"&&this.arrowkeyLocation<this.filteredList.length-1?this.arrowkeyLocation++:r.key==="Enter"&&(0<this.arrowkeyLocation||this.arrowkeyLocation<=this.filteredList.length)&&this.filteredList.length>0?this.getGlobalSearchResults(this.filteredList[this.arrowkeyLocation]):r.key==="Tab"&&this.showSearchDD==!0?this.filterChange():r.key==="ArrowDown"&&this.arrowkeyLocation==19?this.arrowkeyLocation=0:r.key==="ArrowUp"&&this.arrowkeyLocation==0&&(this.arrowkeyLocation=19)}updateFilter(r){let e=r.toLowerCase();this.query=e;let t=[];if(this.filteredList=[],e.length>2){for(let i of this.CustomerUsers){let a,y;y=(i.login?i.login.toLowerCase().indexOf(e)!==-1:!1)||(i.userName?i.userName.toLowerCase().indexOf(e)!==-1:!1),y&&(a=i.login,t.push(a))}if(t.length>0)if(this.showSearchDD=!0,this.arrowkeyLocation=-1,t.length<15)for(let i=0;i<t.length;i++)this.filteredList[i]=t[i];else for(let i=0;i<15;i++)this.filteredList[i]=t[i];else this.showSearchDD=!1,this.filteredList=[]}else this.showSearchDD=!1,this.filteredList=[]}filterReturn(){this.filteredList&&(this.showSearchDD=!0)}filterChange(){this.showSearchDD=!1,this.arrowkeyLocation=-1}onDocumentClick(r){let e=r.target;e.id!="globalSearchDD"&&e.id!="globalSearchIO"&&(this.showSearchDD=!1,this.arrowkeyLocation=-1)}getGlobalSearchResults(r){if(r?this.query=r:this.query,this.query){let e=this.shadowUserIdCheck.get("login");this.filterService.globalSearchValue=this.query,e.patchValue(this.query),this.filterService.searchValueChanged.next(!0),this.query="",this.filteredList=[],this.arrowkeyLocation=-1}}getStocklist(){var r=201,e=["4230090","162343","162363"],t={};t.CustomerId=r,t.PartNumbers=e,this.adminService.getstockList(t).subscribe(i=>{if(i){let a=i}})}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=$({type:o,selectors:[["admin"]],viewQuery:function(e,t){if(e&1&&Q(pe,5)(fe,5)(Se,5)(ge,5),e&2){let i;w(i=C())&&(t.searchInput=i.first),w(i=C())&&(t.MessageModal=i.first),w(i=C())&&(t.UserCustomersModal=i.first),w(i=C())&&(t.selopt=i.first)}},hostBindings:function(e,t){e&1&&g("click",function(a){return t.onDocumentClick(a)},z)},decls:55,vars:10,consts:[["MessageModal",""],["UserCustomersModal",""],["id","content",1,"row"],[1,"col-12","data"],[1,"row","lightcontainer"],[1,"col-12"],[1,"col-12","card-container","padded"],[1,"card","hlabel","extrapadding"],[1,"card-body","row"],[1,"col-12","col-md-6"],["autocomplete","off",3,"ngSubmit","formGroup"],[1,"form-group"],["for","login"],[2,"color","red"],["type","text","id","login","placeholder","",1,"form-control",3,"input","click","keyup","keydown","keyup.enter","formControl"],[1,"dropdown-for-search"],["type","submit",1,"btn","btn-light","btn-sm",2,"background","#ccc","border","1px solid #ccc",3,"disabled"],["id","MessageModal","tabindex","-1","role","dialog","aria-labelledby","MessageModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header","adminModal"],["id","newAddressModalLabel",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body",2,"text-align","center","font-size","medium"],[1,"w-100"],[1,"modal-footer","adminModal"],["id","UserCustomersModal","tabindex","-1","role","dialog","aria-labelledby","UserCustomersModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-body"],[1,"col-12","align-self-left",2,"float","left","text-align","left"],[1,"col-12","justify-content-between",2,"text-wrap","normal","word-wrap","break-word"],[1,"col-12","justify-content-between",2,"text-wrap","normal","word-wrap","break-word","text-align","justify"],["id","globalSearchDD",1,"search-items",3,"hilite"],["id","globalSearchDD",1,"search-items",3,"click"]],template:function(e,t){e&1&&(n(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"h3"),l(5,"Shadow User"),s()(),n(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"form",10),g("ngSubmit",function(){return t.Shadow(t.shadowUserIdCheck.value)}),n(11,"div",11)(12,"label",12),l(13,"Login"),s(),u(14,ve,2,0,"span",13),u(15,we,2,0,"span",13),n(16,"input",14),g("input",function(a){return t.updateFilter(a.target.value)})("click",function(){return t.filterReturn()})("keyup",function(){return t.filterReturn()})("keydown",function(a){return t.keyDown(a)})("keyup.enter",function(){return t.getGlobalSearchResults(t.query)}),s(),u(17,ye,4,0,"div",15),s(),n(18,"button",16),l(19,"Shadow User"),s()()()()()()()()(),n(20,"div",17,0
1)(22,"div",18)(23,"div",19)(24,"div",20)(25,"h5",21),l(26),s(),n(27,"button",22)(28,"span",23),l(29,"\xD7"),s()()(),n(30,"div",24)(31,"div",25),l(32,"\xA0"),s(),l(33),n(34,"div",25),l(35,"\xA0"),s()(),R(36,"div",26),s()()(),n(37,"div",27,1)(39,"div",18)(40,"div",19)(41,"div",20)(42,"h5",21),l(43,"User Customers"),s(),n(44,"button",22)(45,"span",23),l(46,"\xD7"),s()()(),n(47,"div",28)(48,"div",29)(49,"b")(50,"label"),l(51,"List of Users"),s()()(),u(52,_e,3,0,"div",30),u(53,Ue,2,0,"div",31),s(),R(54,"div",26),s()()()),e&2&&(d(10),U("formGroup",t.shadowUserIdCheck),d(4),p(t.shadowUserIdCheck.controls.login.hasError("required")&&t.shadowUserIdCheck.controls.login.touched?14:-1),d(),p(t.shadowUserIdCheck.controls.login.hasError("pattern")?15:-1),d(),U("formControl",t.shadowUserIdCheck.controls.login),d(),p(t.showSearchDD==!0&&t.filteredList.length>0?17:-1),d(),U("disabled",!t.shadowUserIdCheck.valid),d(8),k("",t.resultHeading," Message"),d(7),k(" ",t.resultMessage," "),d(19),p(t.userCustomers.length!=0?52:-1),d(),p(t.userCustomers.length==0?53:-1))},dependencies:[E,D,ee,W,X,Y,te,ie],styles:[".form-group[_ngcontent-%COMP%]{margin-bottom:1rem!important}"]})}};q([le(me.getProfile)],c.prototype,"userProfile",void 0);var ke=[{path:"",component:c}],ue=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=_({type:o})}static{this.\u0275inj=b({imports:[N.forChild(ke),N]})}}return o})();var lt=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=_({type:o})}static{this.\u0275inj=b({providers:[P,M,A],imports:[E,ue,D,c]})}}return o})();export{lt as AdminModule};

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.