PageSourceSearch

https://www.harwin.com/_next/static/chunks/pages/products/new-4e884f55244de4d7.js

js harwin.com collected 2026-10-02 04:56:01 UTC 9,655 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="90451338-7119-4af8-bef4-da9d42a1a863",e._sentryDebugIdIdentifier="sentry-dbid-90451338-7119-4af8-bef4-da9d42a1a863")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7175],{55967:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/products/new",function(){return n(77420)}])},69729:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(97135),l=n(69877),r=n.n(l);n(7023);var i=n(8190),o=n(94645);function s(e,t){function n(n){let{data:l}=(0,o.o)({initialData:n.data,serverURL:"https://cms.harwin.com",depth:null==t?void 0:t.depth});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d,{meta:n.meta}),(0,a.jsx)(e,{...n,data:l})]})}return function(e){let t=(0,i.useRouter)(),l=t.pathname.startsWith("/blog");return(0,a.jsx)(n,{...e},l?t.asPath:void 0)}}let d=e=>{var t,n,l,o,s,d,c,u,p,g,h,m,f;let{meta:v}=e,w=(0,i.useRouter)(),y=(e=>{let t=new URL(e,"https://www.harwin.com"),n=t.searchParams,a=n.get("page");return n.toString()==="page=".concat(a)?"".concat(t.origin).concat(t.pathname,"?page=").concat(a):"".concat(t.origin).concat(t.pathname)})(w.asPath);return(0,a.jsxs)(r(),{children:[(0,a.jsx)("title",{children:null!=(s=null==v?void 0:v.title)?s:"Harwin"}),(0,a.jsx)("meta",{property:"og:title",content:null!=(d=null==v?void 0:v.title)?d:"Harwin"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"description",content:null!=(c=null==v?void 0:v.description)?c:"Choose Harwin for PCB Connectors, High-Reliability Connectors & EMC Shielding. Order samples, download 3D CAD models. World-class quality manufacturer. Industrial Electronic Connectors; Vibration-resistant connectors ideal for Aerospace, Defense, Motorsport; Board Level Shielding for EMI/RFI."}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"image",content:null!=(u=null==v||null==(t=v.image)?void 0:t.url)?u:"/images/harwin-og-fallback.png"}),(0,a.jsx)("meta",{name:"twitter:image",content:null!=(p=null==v||null==(n=v.image)?void 0:n.url)?p:"/images/harwin-og-fallback.png"}),(0,a.jsx)("meta",{property:"og:image:height",content:String(null!=(g=null==v||null==(l=v.image)?void 0:l.height)?g:1200)}),(0,a.jsx)("meta",{property:"og:image:width",content:String(null!=(h=null==v||null==(o=v.image)?void 0:o.width)?h:630)})]}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:creator",content:"@Harwin"}),(0,a.jsx)("meta",{name:"twitter:title",content:null!=(m=null==v?void 0:v.title)?m:"Harwin"}),(0,a.jsx)("meta",{name:"twitter:description",content:null!=(f=null==v?void 0:v.description)?f:"Choose Harwin for PCB Connectors, High-Reliability Connectors & EMC Shielding. Order samples, download 3D CAD models. World-class quality manufacturer. Industrial Electronic Connectors; Vibration-resistant connectors ideal for Aerospace, Defense, Motorsport; Board Level Shielding for EMI/RFI."}),(0,a.jsx)("link",{rel:"shortcut icon",type:"image/png",href:"/favicon.ico"}),"/404"!==w.pathname&&(0,a.jsx)("link",{rel:"canonical",href:y}),(null==v?void 0:v.richResults)&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(null==v?void 0:v.richResults)}})]})}},69877:(e,t,n)=>{e.exports=n(53218)},77420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ProductsPage:()=>C,__N_SSP:()=>A,default:()=>_});var a=n(97135),l=n(69877),r=n.n(l),i=n(86840),o=n(28779),s=n(34725),d=n(49642),c=n(62396),u=n(7023),p=n(40100),g=n(73051),h=n(19309),m=n(8190),f=n(79015),v=n(69729),w=n(43629),y=n(51282),j=n(88501),x=n(8628),b=n(41850);let P={hri:"HRi",ezi:"EZi",bbi:"BBi"};var A=!0;let C=e=>{var t,n,l,v,A,C,_,R,S,D;let{category:E,range:N}=e,H=(0,m.useRouter)(),[I,L]=(0,u.useState)(1),O=(0,h.z)(null==E?void 0:E.filters),{data:T,isLoading:q,error:F,isFetching:B}=(0,h.A)({key:"products",fetchKey:"products",page:I,params:"pageSize=18&".concat(O,"&newProductFlag=true")}),M=()=>{let e=Number(H.query.page);if(e&&(L(e>(null==T?void 0:T.totalPages)?1:e),e>(null==T?void 0:T.totalPages))){let e=Object.fromEntries(Object.entries(H.query
1).filter(e=>{let[t]=e;return"page"!==t}));H.push({query:{...e}})}isNaN(e)&&L(1)};(0,u.useEffect)(M,[H,T,M]);let $=(0,f.A)(null==T?void 0:T.filters),z=N||(null==H||null==(n=H.query)||null==(t=n.range)?void 0:t.toString().toLowerCase()),U=null==H||null==(v=H.query)||null==(l=v.q)?void 0:l.toString(),W=null==H||null==(A=H.query)?void 0:A.family;Array.isArray(W)&&(W=W.join(","));let X="string"==typeof W&&W.split(",").length>1?"":null==W?void 0:W.toString().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),J=k(H.query),V="Harwin - Products",G=[{label:"Home",link:"/"},{label:"New Products",link:"/products/new"},...P[z]?[{label:"".concat(P[z]," Range")}]:[]];return E&&N&&(V="Harwin - ".concat(P[N]," Range - ").concat(E.name),G=[{label:"Home",link:"/"},{label:"".concat(P[N]," Range"),link:"/".concat(N,"-range")},...E?[{label:"".concat(E.name)}]:[]]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r(),{children:[I&&I>1&&(0,a.jsxs)("title",{children:[V," - Page ",I]}),(0,a.jsx)("meta",{name:"robots",content:J})]}),(0,a.jsx)(b.ProductParent,{children:(0,a.jsx)(s.A,{position:"relative",children:(0,a.jsxs)(i.A,{gap:5,children:[(0,a.jsxs)(b.ProductHeader,{children:[(0,a.jsxs)(i.A,{gap:4,children:[(0,a.jsx)(d.A,{items:G}),U?(0,a.jsxs)(y.A,{as:"h1",type:"2",color:"var(--link)",children:[(0,a.jsx)("span",{children:"Search results for:"})," ",(0,a.jsx)("span",{children:"null"===U?'" "':U})]}):P[z]?(0,a.jsxs)(y.A,{as:"h1",type:"2",color:"var(--link)",children:[(0,a.jsx)("span",{children:"New"})," ",(0,a.jsxs)(o.A,{as:"span",style:{textTransform:"capitalize"},children:[P[z]," "]}),(0,a.jsx)("span",{children:"Range"})," ",(0,a.jsx)("span",{children:void 0!==X&&"".concat(""!==X?"- ".concat(X):"")}),(0,a.jsx)("span",{children:E&&"- ".concat(E.name)})]}):(0,a.jsx)(y.A,{as:"h1",type:"2",color:"var(--link)",children:"New Products"})]}),z&&(0,a.jsx)(b.ProductBrandBox,{children:j.hR[z]})]}),(0,a.jsxs)(b.ProductBox,{children:[(0,a.jsx)(c.A,{title:"Filters",totalResults:null!=(S=null==T?void 0:T.totalItems)?S:0,initialFilterCount:2,filters:$,isLoading:q,pageFilters:null==E?void 0:E.filters,isCategoryRange:!!E&&!!N,pathName:"/products/new"}),(0,a.jsxs)(b.ProductContainer,{productLength:null==T||null==(C=T.items)?void 0:C.length,hasPagination:(null==T?void 0:T.items.length)>0&&(null==T?void 0:T.totalPages)>1,children:[!q&&(null==T||null==(_=T.items)?void 0:_.map((e,t)=>{var n;return(0,a.jsx)(g.Ay,{product:e,isLoading:B,isNew:!0},null!=(n=null==e?void 0:e.salesForceId)?n:t)})),q&&Array.from({length:12}).map((e,t)=>(0,a.jsx)(x.A,{},t)),(null==T||null==(R=T.items)?void 0:R.length)===0&&!q&&(0,a.jsx)(o.A,{marginTop:2,paddingLeft:2,children:(0,a.jsxs)(i.A,{gap:1,children:[(0,a.jsx)(y.A,{as:"h4",type:"4",children:"No Products found"}),(0,a.jsx)(w.A,{children:"Clear filter or search using a different term"})]})}),F&&(0,a.jsx)(w.A,{children:"An error occurred while fetching the products. Please try again later."})]}),(null==T?void 0:T.items.length)>0&&(null==T?void 0:T.totalPages)>1&&(0,a.jsx)(p.A,{totalPages:null!=(D=null==T?void 0:T.totalPages)?D:1,currentPage:I,setNewPage:L})]})]})})})]})},_=(0,v.A)(C),k=e=>{let t=["familyOrCategory","slug","page"];return 0===Object.keys(Object.keys(e).reduce(function(n,a){return t.includes(a)||(n[a]=e[a]),n},{})).length?"index":"noindex"}},94645:(e,t,n)=>{"use strict";n.d(t,{o:()=>g});let a=(e,t)=>e.origin===t&&e.data&&"object"==typeof e.data&&"payload-live-preview"===e.data.type,l=({apiPath:e,data:t,endpoint:n,serverURL:a})=>fetch(`${a}${e}/${n}`,{body:JSON.stringify(t),credentials:"include",headers:{"Content-Type":"application/json","X-Payload-HTTP-Method-Override":"GET"},method:"POST"}),r=async e=>{let{apiRoute:t,collectionSlug:n,depth:a,globalSlug:r,incomingData:i,initialData:o,locale:s,serverURL:d}=e,c=e.requestHandler||l;return await c({apiPath:t||"/api",data:{data:i,depth:a,flattenLocales:!1,locale:s},endpoint:encodeURI(`${r?"globals/":""}${n??r}${n?`/${o.id}`:""}`),serverURL:d}).then(e=>e.json())},i={previousData:void 0},o=()=>{i.previousData=void 0},s=async e=>{let{apiRoute:t,depth:n,event:l,initialData:o,requestHandler:s,serverURL:d}=e;if(a(l,d)){let{collectionSlug:e,data:a,globalSlug:c,locale:u}=l.data;if(!e&&!c)return o;let p=await r({apiRoute:t,collectionSlug:e,depth:n,globalSlug:c,incomingData:a,initialData:i?.previousData||o,locale:u,requestHandler:s,serverURL:d});return i.previousData=p,p}return i.previousData||(i.previousData=o),i.previousData},d=e=>{let{apiRoute:t,callback:n,depth:a,initialData:l,requestHandler:r,serverURL:i}=e;o();let d=async e=>{n(await s({apiRoute:t,depth:a,event:e,initialData:l,requestHandler:r,serverURL:i}))};return"undefined"!=typeof window&&window.addEventListener("message",d),d},c=e=>{let{serverURL:t}=e;if("undefined"!=typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}},u=e=>{"undefined"!=typeof window&&window.removeEventListener("message",e)};var p=n(7023);let g=e=>{let{apiRoute:t,depth:n,initialData:a,serverURL:l}=e,[r,i]=(0,p.useState)(a),[o,s]=(0,p.useState)(!0),g=(0,p.useRef)(!1),h=(0,p.useCallback)(e=>{i(e),s(!1)},[]);return(0,p.useEffect)(()=>{let e=d({apiRoute:t,callback:h,depth:n,initialData:a,serverURL:l});
1return g.current||(g.current=!0,c({serverURL:l})),()=>{u(e)}},[l,h,n,a,t]),{data:r,isLoading:o}}}},e=>{var t=t=>e(e.s=t);e.O(0,[1850,636,6593,8792],()=>t(55967)),_N_E=e.O()}]);

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.