PageSourceSearch

https://www.atkore.com/_next/static/chunks/pages/products-old/[l1]/[...levels]-74aa642c983cfea1.js

js atkore.com collected 2026-10-09 21:44:02 UTC 10,035 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7327],{46258:function(l,e,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/products-old/[l1]/[...levels]",function(){return o(40062)}])},40062:function(l,e,o){"use strict";o.r(e),o.d(e,{__N_SSG:function(){return E},default:function(){return F}});var n=o(34727),i=o(46587),t=o(85893),a=o(21768),d=o(95628),u=o(15594),r=o(81933),v=o(35552),s=o(69542),c=o(74846),m=o(37952),f=o(56246),h=o(9008),g=o.n(h),p=o(11163),y=o(67294),P=o(75815),_=o(55577),w=o(84737),x=function(l){(0,_.Z)(o,l);var e=(0,w.Z)(o);function o(l){var n;return(0,P.Z)(this,o),(n=e.call(this,l)).state={hasError:!0,err:""},n}var n=o.prototype;return n.componentDidCatch=function(l,e){console.log("compondent dud catch",{error:l,errorInfo:e})},n.componentDidMount=function(){this.setState({hasError:!1,err:""})},n.render=function(){return console.log("state->",this.state),this.state.hasError?(0,t.jsx)("div",{}):this.props.children},o.getDerivedStateFromError=function(l){return console.log("get derived state->",l),{hasError:!0,err:l}},o}(y.Component),C=o(22616),j=o(9669),S=o.n(j),b=o(68206),D=o(44134),L=o(31955),M=o(61400),E=!0,F=function(l,e){var o,h,P,_,w,j=(0,d.xm)(),E=l.childPresent,F=l.data,T=l.levelsPresent,N=l.contextLanguage,k=l.productfamilyHrefLangDetails,R=(0,y.useState)(!1),V=R[0],H=R[1],O=(0,y.useState)([]),U=O[0],Z=O[1],I=l.selectedFam,X=(0,c.useAppDispatch)(),q=(0,c.useAppSelector)((function(l){return null===l||void 0===l?void 0:l.productPersist})).productPersist,B=q.categoryContent,A=q.productSubCategoryy,z=(0,y.useState)(""),G=z[0],K=z[1],Q=(0,y.useState)(!1),Y=Q[0],J=Q[1],W=(0,c.useAppSelector)((function(l){return l.user})).user,$=(0,p.useRouter)(),ll=null===l||void 0===l||null===(o=l.productFilter)||void 0===o?void 0:o.map((function(l){var e=l.Key,o=l.Value,n=l.metricheadername,i=l.metricname;return{fields:{Key:null===e||void 0===e?void 0:e.jsonValue,Value:null===o||void 0===o?void 0:o.jsonValue,metricheadername:null===n||void 0===n?void 0:n.jsonValue,metricname:null===i||void 0===i?void 0:i.jsonValue}}})),el=null===I||void 0===I?void 0:I.websiteTaxonomyPath,ol=null===el||void 0===el?void 0:el.split(">").slice(1),nl=E?null===F||void 0===F?void 0:F.slice(1):null===F||void 0===F?void 0:F.slice(1,(null===F||void 0===F?void 0:F.length)-2);(0,y.useEffect)((function(){var l;E||(X((0,m.setFamilySelectedRedux)(I)),X((0,f.setProductFamilyList)(null===F||void 0===F||null===(l=F[(null===F||void 0===F?void 0:F.length)-2])||void 0===l?void 0:l["l".concat(T)])))}),[I]),(0,y.useEffect)((function(){E&&(A?(K(A),setTimeout((function(){!function(){var l=(null===document||void 0===document?void 0:document.getElementById("pre-last-level-node-".concat((null===nl||void 0===nl?void 0:nl.length)-1))).getBoundingClientRect().top+window.pageYOffset-150;window.scrollTo({top:l,behavior:"smooth"})}()}),200)):setTimeout((function(){var l=(null===document||void 0===document?void 0:document.querySelector('[id*="pre-last-level-node-"]')).getBoundingClientRect().top+window.pageYOffset-150;window.scrollTo({top:l,behavior:"smooth"})}),100))}),[I,G]),(0,y.useEffect)((function(){H(!V)}),["pre-last-level-node-".concat((null===nl||void 0===nl?void 0:nl.length)-1),$.asPath]);(0,y.useEffect)((function(){J(!0)}),[]),(0,y.useEffect)((function(){(0,n.Z)((function(){var l;return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,D.getUserDetails)()];case 1:return l=e.sent(),X((0,b.setUserDetail)(l)),il(),[2]}}))}))()}),[]);var il=function(){var l=(0,n.Z)((function(){var l,e,o,n,t,a;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return[4,S().post("/api/cms/",{query:C.RC,variables:{limit:1e3,endCursor:null,language:N}})];case 1:return t=i.sent(),a={},null===t||void 0===t||null===(l=t.data)||void 0===l||null===(e=l.data)||void 0===e||null===(o=e.search)||void 0===o||null===(n=o.results)||void 0===n||n.forEach((function(l){var e,o,n,i;a[null===l||void 0===l||null===(e=l.key)||void 0===e||null===(o=e.jsonValue)||void 0===o?void 0:o.value]=null===l||void 0===l||null===(n=l.Phrase)||void 0===n||null===(i=n.jsonValue)||void 0===i?void 0:i.value})),X((0,b.setDictionary)(a)),[2]}}))}));return function(){return l.apply(this,arguments)}}();(0,y.useEffect)((function(){if(null===l||void 0===l?void 0:l.breadCrumbData){var e,o,n,i,t,a={ancestors:[]};a.ancestors=[];var d="en"===N?"/products":"/".concat(N,"/products"),u=[{name:null===W||void 0===W||null===(e=W.dictionary)||void 0===e?void 0:e.Products,url:{path:d},Title:{value:""}},{name:null===W||void 0===W||null===(o=W.dictionary)||void 0===o?void 0:o.Home,url:{path:"en"===N?"/":"/".concat(N)},Title:{value:""}}];a.ancestors=null===l||void 0===l||null===(n=l.breadCrumbData)||void 0===n||null===(i=n.ancestors)||void 0===i?void 0:i.concat(u),a.Title=null===l||void 0===l||null===(t=l.breadCrumbData)||void 0===t?void 0:t.Title,Z(a)}}),[null===l||void 0===l?void 0:l.breadCrumbData,null===W||void 0===W?void 0:W.dictionary]),(0,y.useEffect)((function(){var l,o,n,i=null===window||void 0===window||null===(l=window.location)||void 0===l?void 0:l.href,t=(0,d.L0)(),a=(0,d.HH)(),u=e?"Page not found":"",r=L.Z.get("location_details"),v=r?JSON.parse(r):"",s=(0,d.l7)(),c=(0,d.Xg)(),m=(null===$||void 0===$||null===(o=$.query)||void 0===o?void 0:o.levels)?null===$||void 0===$||null===(n=$.query)||void 0===n?void 0:n.levels[0]:"",f=null===$||void 0===$?void 0:$.asPath,h=(0,d.aH)((null===$||void 0===$?void 0:$.asPath)||""),g=h.l1,p=h.l2,y=h.l3,P=h.l4,_=h.l5,w=(0,d.pz)(),x=(0,d.SV)(),C=localStorage.getItem("previousPageURL"),j=(0,d.e9)(),S=(0,d.vl)(i),b=(0,d.Qw)();(0,d.iS)({date:t,dayOfWeek:a,errorMessage:u,geoLanguage:(null===v||void 0===v?void 0:v.language)?null===v||void 0===v?void 0:v.language:"en",geoRegion:(null===v||void 0===v?void 0:v.region)?null===v||void 0===v?void 0:v.region:"US",deviceCategory:s,hostname:c,mainCategory:m,pagePath:f,pagePathL0:"/",pagePathL1:g,pagePathL2:p,pagePathL3
1:y,pagePathL4:P,pagePathL5:_,pageTitle:w,pageURL:x,referringURL:C,pageStatusCode:j,URLQueryParams:S,timeOfDay:b})}),[null===window||void 0===window||null===(h=window.location)||void 0===h?void 0:h.href]);var tl,al,dl,ul,rl,vl,sl,cl,ml,fl,hl,gl,pl,yl,Pl,_l,wl,xl,Cl,jl=null===k||void 0===k||null===(P=k.data)||void 0===P||null===(_=P.allM_PCM_ProductFamily)||void 0===_||null===(w=_.results)||void 0===w?void 0:w.map((function(l){var e;return null===l||void 0===l||null===(e=l.localizationToProductFamily)||void 0===e?void 0:e.valueName})),Sl=null===jl||void 0===jl?void 0:jl.map((function(l){return{lang:"en-US"==l?"en":l,url:"/".concat(l.toLowerCase()).concat(null===$||void 0===$?void 0:$.asPath)}}));return!1===(null===l||void 0===l?void 0:l.notFound)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g(),{children:[(0,t.jsx)("meta",{name:"description",content:null===(dl=null===l||void 0===l||null===(tl=l.params)||void 0===tl||null===(al=tl.allM_PCM_ProductFamily)||void 0===al?void 0:al.results[0])||void 0===dl?void 0:dl.metaDescription}),(0,t.jsx)("meta",{name:"title",content:null===(vl=null===l||void 0===l||null===(ul=l.params)||void 0===ul||null===(rl=ul.allM_PCM_ProductFamily)||void 0===rl?void 0:rl.results[0])||void 0===vl?void 0:vl.metaTitle}),(0,t.jsx)("meta",{name:"keyword",content:null===(ml=null===l||void 0===l||null===(sl=l.params)||void 0===sl||null===(cl=sl.allM_PCM_ProductFamily)||void 0===cl?void 0:cl.results[0])||void 0===ml?void 0:ml.keywords[j]}),null===Sl||void 0===Sl?void 0:Sl.map((function(l){return(0,t.jsx)("link",{rel:"alternate",href:null===l||void 0===l?void 0:l.url,hrefLang:null===l||void 0===l?void 0:l.lang},null===l||void 0===l?void 0:l.url)}))]}),Y?(0,t.jsxs)(u.default,{bannerDetails:null===l||void 0===l?void 0:l.bannerDetails,header:null===l||void 0===l?void 0:l.headerData,footer:null===l||void 0===l?void 0:l.footerData,newsletter:null===l||void 0===l?void 0:l.newsletterData,contextLanguage:N,headerSubCategoryMenu:null===l||void 0===l?void 0:l.headerSubCategoryMenu,breadCrumbData:U,children:[(0,t.jsx)("div",{className:"row",children:(0,t.jsxs)("div",{className:"col-md-12 col-sm-12 dynamiclayoutcol",children:[(0,t.jsx)(a.H,{field:B}),(0,t.jsx)("h2",{className:"textGreen mt-3",dangerouslySetInnerHTML:{__html:(0,d.iX)(null===(gl=null===l||void 0===l||null===(fl=l.params)||void 0===fl||null===(hl=fl.allM_PCM_ProductFamily)||void 0===hl?void 0:hl.results[0])||void 0===gl?void 0:gl.familyDisplayName)}}),(0,t.jsx)("p",{className:"mt-2",dangerouslySetInnerHTML:{__html:(0,d.iX)(null===(Pl=null===l||void 0===l||null===(pl=l.params)||void 0===pl||null===(yl=pl.allM_PCM_ProductFamily)||void 0===yl?void 0:yl.results[0])||void 0===Pl?void 0:Pl.marketingMessage[j])}})]})}),(0,t.jsx)(x,{children:(0,t.jsx)(s.default,{L2Data:null===F||void 0===F||null===(_l=F[0])||void 0===_l?void 0:_l.l2,selected:null===ol||void 0===ol?void 0:ol[1],category:null===(Cl=null===l||void 0===l||null===(wl=l.params)||void 0===wl||null===(xl=wl.allM_PCM_ProductFamily)||void 0===xl?void 0:xl.results[0])||void 0===Cl?void 0:Cl.familyName,childPresent:E})}),null===nl||void 0===nl?void 0:nl.map((function(l,e){var o=e+3;return(0,t.jsx)("div",{id:(null===nl||void 0===nl?void 0:nl.length)-1===e?"pre-last-level-node-".concat((null===nl||void 0===nl?void 0:nl.length)-1):null,children:(0,t.jsx)(v.default,{familyData:null===l||void 0===l?void 0:l["l".concat(o)],level:"L".concat(o),selected:null===ol||void 0===ol?void 0:ol[e+2],childPresent:E})},e)})),E?null:(0,t.jsx)("div",{id:"last-level-node",children:(0,t.jsx)(r.default,{dictionary:null===W||void 0===W?void 0:W.dictionary,calculator:null===q||void 0===q?void 0:q.calculator,productFilter:ll,selectedFam:null===q||void 0===q?void 0:q.familySelectedRedux,showFamilyCallBack:function(){var l=$.asPath.slice(0,$.asPath.lastIndexOf("/"));$.push(l)},l1Category:null===ol||void 0===ol?void 0:ol[0],contextLanguage:N})})]}):(0,t.jsx)(t.Fragment,{})]}):(0,t.jsx)(M.Z,{})}}},function(l){l.O(0,[3662,6923,3654,9400,6900,9095,9943,4581,8548,1216,9774,2888,179],(function(){return e=46258,l(l.s=e);var e}));var e=l.O();_N_E=e}]);

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.