PageSourceSearch

https://www.harwin.com/_next/static/chunks/pages/resources/product-change-obsolescence-bf68503e2675437b.js

js harwin.com collected 2026-10-02 04:55:04 UTC 16,846 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:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="5588d9fc-8f61-4bff-9eea-59fe574362af",e._sentryDebugIdIdentifier="sentry-dbid-5588d9fc-8f61-4bff-9eea-59fe574362af")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6059,7786],{19309:(e,r,n)=>{"use strict";n.d(r,{A:()=>c,z:()=>d});var o=n(7023),i=n(8190),a=n(42831),t=n(25319),l=n(60086),s=n(20896);function d(e){let r=(0,i.useRouter)();return(0,o.useMemo)(()=>{let n=Object.assign({},r.query,e);return n?Object.entries(n).map(e=>{let[r,n]=e;return"page"===r?null:Array.isArray(n)?"".concat(r,"=").concat(n.join(",")):"".concat(r,"=").concat(n)}).filter(Boolean).join("&"):""},[r.query,e])}function c(e){let{key:r="products",fetchKey:n="products",page:o=1,params:i,filterBy:d}=e;return(0,t.I)({queryKey:[r,o,i],queryFn:async()=>await (0,a.A)((0,s.A)(n,o,d,i)),placeholderData:l.rX})}},40100:(e,r,n)=>{"use strict";n.d(r,{A:()=>g});var o=n(97135),i=n(32987),a=n(28779),t=n(43629),l=n(13688),s=n(8190);let d=e=>{let{children:r,onClick:n,variant:i,disabled:a,active:l,as:d,page:u,currentPage:h}=e,m=(0,s.useRouter)();return(0,o.jsx)(c,{href:{pathname:m.pathname,query:(e=>{if(1===e){let{page:e,...r}=m.query;return{...r}}return{...m.query,page:e}})(u)},className:"pagination-number",variant:i,disabled:a,active:l,as:d,children:(0,o.jsx)(t.A,{fontWeight:"light"!==i?"600":"400",children:r})})},c=i.Ay.span.withConfig({componentId:"sc-6e9b18f6-0"})(["width:2.75rem;height:2.75rem;border-radius:100%;appearance:none;border:none;cursor:pointer;display:block;aspect-ratio:1;transition:color 0.2s ease-in-out,background-color 0.2s ease-in-out;font:inherit;display:flex;align-items:center;justify-content:center;text-decoration:none;"," "," "," ",";"],e=>{let{disabled:r}=e;return r&&"\n    pointer-events: none;\n    user-select: none;\n  "},e=>{let{active:r}=e;return r&&"\n    pointer-events: none;\n    user-select: none;\n  "},e=>{let{active:r,variant:n}=e;return r&&"light"===n&&"\n    background-color: var(--white);\n    p {\n      color: var(--hri);\n      font-weight: var(--font-weight-semibold);\n    }\n  "},(0,l.Ox)({variants:{light:{color:"var(--link)","&:hover":{color:"var(--hri)",backgroundColor:"var(--midOverlay)",p:{fontWeight:"var(--font-weight-semibold)"}}},dark:{color:"var(--hri)",backgroundColor:"var(--lightOverlay)","&:hover":{}},red:{color:"var(--white)",backgroundColor:"var(--hri)","&:hover":{backgroundColor:"var(--hriTintMid)"}},"dark-red":{color:"var(--white)",backgroundColor:"var(--hriTintMid)","&:hover":{backgroundColor:"var(--hriTintDark)"}}}}));var u=n(43402),h=n(80155),m=n.n(h);let p=(e,r)=>{let n=[];if(r=Math.max(1,r),e<=2){for(let r=1;r<=e;r++)n.push(r);return n}if(r>e-5){let r=Math.max(1,e-5+1);r>1&&n.push(1,"...");for(let o=r;o<=e;o++)n.push(o)}else r>1&&(n.push(1),r>2&&n.push("...")),n.push(r,r+1,r+2,"...",e);return n},g=e=>{let{currentPage:r,totalPages:n,setNewPage:i}=e,a=(0,s.useRouter)();return(0,o.jsx)(v,{id:"pagination",children:(0,o.jsx)(b,{children:(0,o.jsxs)(f,{children:[(0,o.jsxs)(y,{disabled:1===r,onClick:()=>{i(e=>Math.max(e-1,1)),1===Math.max(r-1,1)&&delete a.query.page,a.push({pathname:a.pathname,query:{...a.query,...1!=Math.max(r-1,1)&&{page:Math.max(r-1,1)}}}),window.scrollTo({top:0})},children:[(0,o.jsx)(u.A,{icon:"faArrowLeftLong"}),(0,o.jsx)(t.A,{children:"Previous"})]}),(0,o.jsx)(x,{children:p(n,r).map((e,n)=>(0,o.jsx)(d,{active:e===r&&"..."!==e,variant:"light",as:"..."===e?"span":m(),disabled:"..."===e,page:e,currentPage:r,children:e},n))}),(0,o.jsxs)(y,{disabled:r===n,onClick:()=>{i(e=>n>e?e+1:e),a.push({pathname:a.pathname,query:{...a.query,page:n>r?r+1:r}}),window.scrollTo({top:0})},children:[(0,o.jsx)(t.A,{children:"Next"}),(0,o.jsx)(u.A,{icon:"faArrowRightLong"})]})]})})})},f=(0,i.Ay)(a.A).withConfig({componentId:"sc-51cb8ee0-0"})(["display:flex;justify-content:space-between;align-items:center;gap:auto;padding:1rem 0;border-top:1px solid var(--midOverlay);border-bottom:1px solid var(--midOverlay);margin-block:1rem;"]),v=i.Ay.nav.withConfig({componentId:"sc-51cb8ee0-1"})([""]),b=i.Ay.div.withConfig({componentId:"sc-51cb8ee0-2"})(["max-width:95rem;width:100%;margin-inline:auto;"]),y=i.Ay.button.withConfig({componentId:"sc-51cb8ee0-3"})(["appearance:none;border:none;cursor:pointer;display:flex;background-color:transparent;color:var(--hri);gap:0.5rem;align-items:center;&:disabled{cursor:not-allowed;opacity:0.5;color:var(--secondary);&:hover{p,svg{color:var(--link);}}}&:hover{p{color:var(--link);}svg{color:var(--link);}}p{display:none;@media (min-width:48rem){display:block;}}"]),x=i.Ay.div.withConfig({componentId:"sc-51cb8ee0-4"})(["display:flex;align-items:center;gap:0.625rem;"])},85201:(e,r,n)=>{"use strict";n.d(r,{A:()=>l});var o=n(97135),i=n(7023),a=n(32987),t=n(43402);let l=(0,i.forwardRef)((e,r)=>{let{searchTerm:n,handleInputChange:i,handleKeyPress:a,placeholder:t="Search by product code or name",...l}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d,{ref:r,placeholder:t,onChange:i,onKeyDown:a,value:n,type:"search",...l}),(0,o.jsx)(s,{icon:"faSearch",color:"var(--hri)",fontSize:"0.875rem"})]})}),s=(0,a.Ay)(t.A).withConfig({componentId:"sc-21633a60-0"})(["cursor:pointer;"]),d=a.Ay.input.withConfig({componentId:"sc-21633a60-1"})(["appearance:none;width:100%;border:0;background-color:var(--backgroundGrey);border-radius:2rem;color:var(--secondary);font-size:var(--p);font-weight:var(--font-weight-regular);padding-inline:1.25rem;padding-block:0.5rem;line-height:1.75;&::placeholder{color:var(--secondary);}"])},86059:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>x});var o=n(97135),i=n(71411),a=n(7023),t=n(43328),l=n(10663);let s=l.Ik({firstName:l.Yj().min(1,{message:"Please enter your first name"}),lastName:l.Yj().min(1,{message:"Please enter your last name"}),email:l.Yj().email({message:"Please enter a valid email address"}),companyName:l.Yj().min(1,{message:"Please enter your company name"})});var d=n(41313),c=n(34725),u=n(51282),h=n(32987),m=n(86840),p=n(99244),g=n(43629),f=n(28779),v=n(62960),b=n(80155),y=n.n(b);let x=e=>{var r,n,l,d;let{block:h,isInline:b}=e,[x,I]=(0,a.useState)(!1),[N,S]=(0,a.useState)(!1),P=(0,a.useRef)(null),_=(0,t.mN)({resolver:(0,i.u)(s),mode:"onSubmit",reValidateMode:"onChange"}),E=_.register,O=_.formState.errors,T=_.formState.isSubmitting,q=async e=>{S(!1);try{if((await fetch("/api/pcn-sign-up",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok){if(I(!0),P.current){var r;null==(r=P.current)||r.scrollIntoView({behavior:"smooth",block:"start"})}}else S(!0)}catch(e){console.error("Error sending email:",e),S(!0)}};return(0,o.jsx)(c.A,{maxWidth:h.limitWidth?"70rem":"",disablePadding:b,children:(0,o.jsx)(t.Op,{..._,children:(0,o.jsx)(w,{"aria-labelledby":"pcn-form-title",ref:P,isInline:b,children:(0,o.jsxs)(j,{children:[(0,o.jsx)(u.A,{color:"var(--darkBlue)",fontSize:3,as:"h2",style:{textAlign:"center"},id:"pcn-form-title",maven:!0,children:h.title}),x?(0,o.jsx)(g.A,{textAlign:"center",fontSize:2,mt:2,pt:2,color:"var(--hri)",children:"Thank y
1ou for signing up!"}):(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(A,{onSubmit:_.handleSubmit(q),children:[(0,o.jsxs)(k,{children:[(0,o.jsxs)(m.A,{gap:1,children:[(0,o.jsx)(p.A,{id:"firstName",placeholder:"Enter your first name",error:null!=O&&!!O.firstName,...E("firstName",{})}),(null==O?void 0:O.firstName)&&(0,o.jsx)(g.A,{type:"small",color:"var(--hri)",children:null==O||null==(r=O.firstName)?void 0:r.message})]}),(0,o.jsxs)(m.A,{gap:1,children:[(0,o.jsx)(p.A,{id:"lastName",placeholder:"Enter your last name",error:null!=O&&!!O.lastName,...E("lastName",{})}),(null==O?void 0:O.lastName)&&(0,o.jsx)(g.A,{type:"small",color:"var(--hri)",children:null==O||null==(n=O.lastName)?void 0:n.message})]}),(0,o.jsxs)(m.A,{gap:1,children:[(0,o.jsx)(p.A,{id:"companyName",placeholder:"Enter your company name",error:null!=O&&!!O.companyName,...E("companyName",{})}),(null==O?void 0:O.companyName)&&(0,o.jsx)(g.A,{type:"small",color:"var(--hri)",children:null==O||null==(l=O.companyName)?void 0:l.message})]}),(0,o.jsxs)(m.A,{gap:1,children:[(0,o.jsx)(p.A,{id:"email",placeholder:"Enter your email address",error:null!=O&&!!O.email,...E("email",{})}),(null==O?void 0:O.email)&&(0,o.jsx)(g.A,{type:"small",color:"var(--hri)",children:null==O||null==(d=O.email)?void 0:d.message})]})]}),(0,o.jsxs)(C,{children:[(0,o.jsxs)(f.A,{mb:[4,2],children:[(0,o.jsx)("span",{children:"By signing up, you agree to our"})," ",(0,o.jsx)(y(),{href:"/support/privacy-policy",children:"Privacy Policy"})]}),(0,o.jsx)(v.A,{type:"submit",variant:"hriStandAlone",marginLeft:"auto",minWidth:"8rem",disabled:T,py:1,children:"Sign Up"})]}),N&&(0,o.jsx)(g.A,{textAlign:"center",fontSize:2,my:2,pt:2,color:"var(--hri)",children:"There was an error signing up. Please try again."})]})})]})})})})},w=(0,h.I4)(d.A).withConfig({componentId:"sc-9ce939ec-0"})(["",""],e=>e.isInline&&"\n    padding: 0;\n  "),j=(0,h.I4)(c.A).withConfig({componentId:"sc-9ce939ec-1"})(["background-color:#f2f4f7;background-image:url(\"data:image/svg+xml,%3Csvg width='706' height='214' viewBox='0 0 706 214' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg style='mix-blend-mode:multiply' opacity='0.25'%3E%3Cpath d='M474.304 0.0401378C350.283 0.317219 231.266 64.4094 142.677 178.618C54.0882 292.826 2.95529 448.097 0.208008 611.25V755C0.208008 756.105 1.10344 757 2.20801 757H704C705.105 757 706 756.105 706 755V2.98825C706 1.89272 705.192 1.00205 704.097 0.99005C689.187 0.826733 588.7 -0.215437 474.304 0.0401378Z' fill='url(%23paint0_linear_3376_1164)'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_3376_1164' x1='452.639' y1='461.297' x2='-103.038' y2='-131.016' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23D9D9D9' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23161C44' stop-opacity='0.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E%0A\");padding:2.5rem 1.25rem;background-repeat:no-repeat;background-size:cover;background-position-x:-200px;border-radius:5px;@media (min-width:","){background-position-x:200px;padding:2.5rem 1.875rem;}"],e=>e.theme.breakpoints[0]),A=h.I4.form.withConfig({componentId:"sc-9ce939ec-2"})([""]),k=h.I4.div.withConfig({componentId:"sc-9ce939ec-3"})(["--grid-size:1;display:grid;grid-template-columns:repeat(var(--grid-size),1fr);gap:20px;padding:20px 0;@media (min-width:","){--grid-size:2;}@media (min-width:","){--grid-size:4;}input{border:1px solid #afb2bc;background-color:#f2f4f7;width:100%;}div,input{max-width:36rem;}"],e=>e.theme.breakpoints[0],e=>e.theme.breakpoints[2]),C=h.I4.div.withConfig({componentId:"sc-9ce939ec-4"})(["button{width:100%;justify-content:center;padding-inline:0.5rem;}@media (min-width:","){display:flex;justify-content:space-between;button{width:auto;}}a{color:var(--hri);}"],e=>e.theme.breakpoints[0])},90587:(e,r,n)=>{"use strict";n.r(r),n.d(r,{IntroSearchContainer:()=>k,__N_SSG:()=>j,default:()=>A});var o=n(97135),i=n(7023),a=n(32987),t=n(69729),l=n(34725),s=n(86840),d=n(43629),c=n(22723),u=n(40100),h=n(97860),m=n(51282),p=n(28779),g=n(85201),f=n(70498),v=n(19309),b=n(8190),y=n(52886),x=n(86059);let w=(0,t.A)(e=>{var r,n;let{data:a}=e,t=(0,b.useRouter)(),[w,j]=(0,i.useState)(1),[A,C]=(0,i.useState)(""),I=(0,y.A)(A,500),N=(0,v.z)(),{data:S,isLoading:P,error:_,isFetching:E}=(0,v.A)({key:"documents",fetchKey:"documents",page:w,params:"tags=product-change-notifications&pageSize=18&".concat(N,"&q=").concat(I
1)});return(0,i.useEffect)(()=>{t.query.page&&j(Number(t.query.page))},[t]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.A,{maxWidth:"70rem",children:(0,o.jsxs)(s.A,{gap:[4,4,8],children:[(0,o.jsx)(h.A,{"aria-labelledby":"product-changes-title",children:(0,o.jsxs)(s.A,{gap:2,children:[(0,o.jsx)(m.A,{as:"h1",type:"2",color:"var(--link)",id:"product-changes-title",children:a.title}),(0,o.jsx)(d.A,{maxWidth:"40.625rem",children:a.description})]})}),(0,o.jsx)(x.default,{block:{blockType:"pcnSignUpForm",title:"Sign Up for Product Change & Obsolescence Notifications"},isInline:!0}),(0,o.jsxs)(k,{children:[(0,o.jsxs)(d.A,{weight:"semibold",children:[null==S?void 0:S.totalItems," Results"]}),(0,o.jsx)(g.A,{handleInputChange:e=>{C(e.target.value)},handleKeyPress:e=>{"Enter"===e.key&&t.push(""!==A?"/resources/product-change-obsolescence/?page=1&q=".concat(A):"/resources/product-change-obsolescence")},searchTerm:A,placeholder:"Search Product Changes & Obsolescence"})]}),(0,o.jsxs)(s.A,{gap:3,children:[null==S||null==(r=S.items)?void 0:r.map((e,r)=>(0,o.jsxs)(c.A,{documentUrl:e.url,documentName:e.name,showDownloadButton:!0,showViewButton:!0,children:[(0,o.jsx)(d.A,{as:"span",weight:"regular",color:"var(--secondary)",ml:[0,0,3],mr:[3,3,6],children:e.fileType.toUpperCase()}),(0,o.jsx)(d.A,{weight:"semibold",children:e.name})]},r)),(null==S?void 0:S.items.length)===0&&(0,o.jsxs)(s.A,{children:[(0,o.jsxs)(d.A,{weight:"semibold",children:['No results found for "',I,'"']}),(0,o.jsx)(d.A,{children:"Please try another search term"})]})]}),(0,o.jsx)(p.A,{pb:6,children:(null==S?void 0:S.items.length)>0&&(null==S?void 0:S.totalPages)>1&&(0,o.jsx)(u.A,{totalPages:null!=(n=null==S?void 0:S.totalPages)?n:1,currentPage:w,setNewPage:j})})]})}),(null==a?void 0:a.blocks)&&(null==a?void 0:a.blocks.map((e,r)=>{let n=f.p[null==e?void 0:e.blockType];return n?(0,o.jsx)(n,{block:e},r):null}))]})});var j=!0;let A=w,k=a.Ay.div.withConfig({componentId:"sc-2eaab8f8-0"})(["display:grid;grid-template-columns:auto;grid-template-rows:1fr;align-items:center;max-width:35rem;width:100%;gap:1.5rem;& > *:first-child{order:2;}@media (min-width:35rem){grid-template-columns:1fr 3fr;grid-template-rows:auto;& > *:first-child{order:1;}& > *:last-child{order:2;}}"])},93777:(e,r,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/resources/product-change-obsolescence",function(){return n(90587)}])},97860:(e,r,n)=>{"use strict";n.d(r,{A:()=>a});var o=n(32987),i=n(41313);let a=(0,o.Ay)(i.A).withConfig({componentId:"sc-9443db3b-0"})(["padding-block-start:3rem;padding-block-end:0rem;"])},99244:(e,r,n)=>{"use strict";n.d(r,{A:()=>h});var o=n(97135),i=n(7023),a=n(32987),t=n(13688),l=n(28779);let s=i.forwardRef((e,r)=>{let{icon:n,iconAction:i,iconBefore:a=!1,valueAsNumber:t=!1,onChange:l,...s}=e,h=(0,o.jsx)(c,{error:null==s?void 0:s.error,fullWidth:null==s?void 0:s.fullWidth,variant:null==s?void 0:s.variant,children:(0,o.jsx)(u,{ref:r,iconBefore:a,withPadding:!!n||!!i,valueAsNumber:t,onChange:l,"data-error":null==s?void 0:s.error,...s})});return n||i?n?(0,o.jsx)(d,{children:h}):void 0:h});s.displayName="Input";let d=a.Ay.div.withConfig({componentId:"sc-acebfc9-0"})(["position:relative;width:auto;display:flex;max-width:24rem;align-items:center;"]),c=(0,a.Ay)(l.A).withConfig({componentId:"sc-acebfc9-1"})(["max-width:",";position:relative;",""],e=>e.fullWidth?"100%":"24rem",e=>(null==e?void 0:e.error)&&"configurator"!==e.variant&&"\n      &::after {\n        width: 1.5rem;\n        height: 1.5rem;\n        content: '';\n        position: absolute;\n        top: 50%;\n        right: 0.75rem;\n        transform: translateY(-50%);\n        background-image: url('/images/icons/error.svg');\n      }\n  "),u=a.Ay.input.withConfig({componentId:"sc-acebfc9-2"})(["appearance:none;display:flex;align-items:center;width:100%;padding:0.75rem;",";max-width:",";border-radius:0.25rem;border:1px solid var(--inactiveLink);color:var(--textBlue);font-family:var(--font-maven);font-weight:var(--font-weight-regular);font-size:1rem;transition:border-color 0.15s ease-in-out;background-color:var(--lightestOverlay);position:relative;"," &[aria-invalid='true']{border-color:var(--red);}&::placeholder{color:#aaa;}&:hover{border-color:var(--borderGreyHover);}&:active,&:focus,&:focus-visible{outline-color:var(--primary);outline-style:solid;}",""],e=>e.iconBefore?"padding-left: ".concat(e.withPadding?"2.5rem":"0.5rem",";"):"padding-right: ".concat(e.withPadding?"2.5rem":"0.5rem",";"),e=>e.fullWidth?"100%":"24rem",e=>(null==e?void 0:e.error)&&"\n    background-color: var(--error);\n    border: 1px solid var(--hri);\n  ",(0,t.Ox)({variants:{comment:{backgroundColor:"var(--backgroundGrey)",borderColor:"var(--borderGrey)"},configurator:{borderColor:"var(--darkBlue)",borderRadius:"0.625rem",padding:"0.95rem 0.75rem","&:hover":{borderColor:"var(--darkBlue)"},"&:active":{outlineColor:"var(--darkBlue)"},"&:focus":{outlineColor:"var(--darkBlue)"},"focus-visible":{outlineColor:"var(--darkBlue)"},'&[data-error="true"]':{borderColor:"var(--hri)",backgroundColor:"transparent","&:hover":{borderColor:"var(--hri)"},"&:active, &:focus, &:focus-visible":{borderColor:"var(--hri)"}}}}})),h=s}},e=>{var r=r=>e(e.s=r);e.O(0,[8336,4219,6293,3127,993,2658,2782,636,6593,8792],()=>r(93777)),_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.