1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[404],{5509:function(e,t,l){Promise.resolve().then(l.t.bind(l,8003,23)),Promise.resolve().then(l.bind(l,9544))},4760:function(e,t,l){"use strict";l.d(t,{Z:function(){return i}});var n,i,a=l(7437),s=l(9554);(n=i||(i={})).style1="text-white \n inline-block\n bg-primary \n rounded-full \n text-sm \n px-5\n py-2\n uppercase \n font-medium\n hover:bg-secondary\n hover:text-white",n.style2="text-white \n inline-block\n bg-primary \n rounded-full \n text-md \n px-9\n py-3\n uppercase \n font-medium\n\n hover:text-white",n.style3="text-white \n inline-block\n bg-primary \n rounded-md \n text-md \n px-9\n py-3\n uppercase \n font-medium\n hover:bg-black\n hover:text-white",n.style4="text-white \n inline-block\n bg-secondary \n rounded-full \n text-md \n px-9\n py-3\n uppercase \n font-medium\n hover:text-white",t.C=e=>{let{title:t,href:l="",onClick:n=()=>{},buttonStyle:i="text-white \n inline-block\n bg-primary \n rounded-full \n text-sm \n px-5\n py-2\n uppercase \n font-medium\n hover:bg-secondary\n hover:text-white",className:r,children:o,targetBlank:c,type:d}=e;return(0,a.jsxs)("submit"===d?"button":"a",{onClick:n,href:l,target:c?"_blank":"_parent",type:d,className:(0,s.cn)(i,"transition-all duration-700 inline-block whitespace-nowrap relative group overflow-hidden",r),children:[(0,a.jsx)("div",{className:"inset-0 absolute -left-10 -right-10 -top-24 -bottom-20 -translate-x-[130%] bg-secondary -rotate-12 opacity-0 group-hover:opacity-100 group-hover:translate-x-[0] duration-1000 transition-all"}),(0,a.jsx)("div",{className:"inset-0 absolute -left-10 -right-10 -top-24 -bottom-20 translate-x-[130%] bg-secondary -rotate-12 opacity-0 group-hover:opacity-100 group-hover:translate-x-[0] duration-1000 transition-all"}),(0,a.jsx)("div",{className:"relative font-roboto font-bold text-sm",children:o||t||"Learn more"})]})}},4386:function(e,t,l){"use strict";var n=l(7437),i=l(3145);t.Z=e=>{let{className:t,imageClassName:l,...a}=e;return(0,n.jsx)("div",{className:"relative ".concat(t),children:(0,n.jsx)(i.default,{className:l,...a,fill:!0})})}},8730:function(e,t,l){"use strict";var n=l(7437),i=l(9554),a=l(2265);let s=e=>{let t=null==e?void 0:e.replace(/\D/g,""),l=null==t?void 0:t.slice(0,3),n=null==t?void 0:t.slice(3,6),i=null==t?void 0:t.slice(6,10),a="";return(null==t?void 0:t.length)>6?a="(".concat(l,") ").concat(n,"-"):(null==t?void 0:t.length)>3?a="(".concat(l,") ").concat(n):(null==t?void 0:t.length)>0&&(a="(".concat(l)),a+=i},r=(0,a.forwardRef)((e,t)=>{let{className:l,id:a,label:r,textarea:o,name:c="",error:d,required:u,type:m,phoneInput:x,value:h,onChange:f,inputClassName:p,...g}=e;return(0,n.jsxs)("div",{className:l,children:[r&&(0,n.jsxs)("label",{htmlFor:a,className:"input-label",children:[r,u&&(0,n.jsx)("span",{className:"text-red-700",children:" *"})]}),(0,n.jsx)(o?"textarea":"input",{className:(0,i.cn)("input",o&&"textarea",p),ref:t,name:c,type:m,onChange:e=>{let{value:t}=e.target,l=x?s(t):t;x?null==f||f({target:{name:c,value:l.replace(/\D/g,"").slice(0,10)}}):null==f||f(e)},value:x&&h?s(h):h,...g}),d&&(0,n.jsx)("p",{className:"input-error-message",children:d.message})]})});t.Z=(0,a.memo)(r)},2450:function(e,t,l){"use strict";var n=l(7437),i=l(9554),a=l(7648),s=l(4386);t.Z=e=>{let{title:t,hasBreadCrumb:l=!1,secondLink:r="",secondTitle:o="",pageName:c,className:d,small:u}=e;return(0,n.jsx)("section",{id:"hero",className:"relative -mt-[80px]",children:(0,n.jsxs)("div",{className:(0,i.cn)("relative isolate overflow-hidden h-auto","h-[16rem] sm:h-[16rem] lg:h-[20rem] flex flex-col justify-center"),children:[(0,n.jsx)(s.Z,{src:"/assets/headerbg-2.jpeg",alt:"bg-hero",className:" !absolute inset-0 -z-10 w-full",imageClassName:"object-cover"}),(0,n.jsx)("div",{className:"absolute inset-0 bg-[rgba(0,0,0,0.35)]"}),(0,n.jsx)("div",{className:(0,i.cn)("relative z-10 text-white text-lg pb-10 pt-40 sm:pb-16 sm:pt-40",d),children:(0,n.jsxs)("div",{className:"container flex flex-col items-center text-center justify-center",children:[l&&(0,n.jsxs)("div",{className:"flex gap-2 whitespace-nowrap text-sm lg:text-lg",children:[(0,n.jsx)(a.default,{href:"/",className:"flex gap-2 group items-center",children:(0,n.jsx)("div",{className:"group-hover:text-primary-light transition-all duration-300 text-white",children:"Home"})}),(0,n.jsx)("span",{children:"/"}),o&&(r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{href:r,className:"flex gap-2 group items-center",children:(0,n.jsx)("div",{className:"group-hover:text-primary-light transition-all duration-300",children:o})}),(0,n.jsx)("span",{children:"/"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex gap-2 group items-center",children:(0,n.jsx)("div",{className:"group-hover:text-primary-light transition-all duration-300",children:o})}),(0,n.jsx)("span",{children:"/"})]})),(0,n.jsx)("div",{className:"text-white font-bold",children:c})]}),t&&(0,n.jsx)("h1",{className:(0,i.cn)("text-2xl mt-4 sm:text-4xl lg:text-5xl max-w-2xl ",u&&"lg:text-3xl"),children:t})]})})]})})}},7992:function(e,t,l){"use strict";l.d(t,{pm:function(){return m}});var n=l(2265);let i=0,a=new Map,s=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},r=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:l}=t;
1return l?s(l):e.toasts.forEach(e=>{s(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===l||void 0===l?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],c={toasts:[]};function d(e){c=r(c,e),o.forEach(e=>{e(c)})}function u(e){let{...t}=e,l=(i=(i+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>d({type:"DISMISS_TOAST",toastId:l});return d({type:"ADD_TOAST",toast:{...t,id:l,open:!0,onOpenChange:e=>{e||n()}}}),{id:l,dismiss:n,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:l}})}}function m(){let[e,t]=n.useState(c);return n.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},2119:function(e,t,l){"use strict";Object.defineProperty(t,"$",{enumerable:!0,get:function(){return i}});let n=l(3079);function i(e){let{createServerReference:t}=l(6671);return t(e,n.callServer)}},9544:function(e,t,l){"use strict";l.d(t,{default:function(){return C}});var n=l(7437);l(3079);var i=l(2119);(0,i.$)("2ced686d66aae8ca88f53dc5bbfca667478d3dce");var a=(0,i.$)("b85cbba67b46096d7e76f948ef432d7a2619cb07"),s=l(7034),r=l(3332),o=l(2265),c=Object.defineProperty,d=new Map,u=new WeakMap,m=0,x=void 0;o.Component;var h=l(2450),f=l(5368);function p(e){var t;let l=new Date(e);l.getMonth();let n=l.getDate(),i=l.getFullYear(),a=null===(t=new Intl.DateTimeFormat("en",{month:"long"}).format(l))||void 0===t?void 0:t.toUpperCase();return"".concat(a," ").concat(n,", ").concat(i)}var g=l(5217),v=l(1268),b=l(7648),y=l(3145),j=e=>{let{recentPosts:t}=e,l=(null==t?void 0:t.length)>0;return(0,n.jsxs)("div",{className:"flex h-fit w-full flex-col border border-black/20 rounded-xl p-4",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold",children:"Recent Posts"}),(0,n.jsx)("div",{className:"flex flex-col gap-4 lg:gap-8 mt-5",children:l?t.map(e=>{var t,l,i;return(0,n.jsxs)(b.default,{href:"/blog/".concat(e.slug),className:"flex min-h-[6rem] xl:flex-row lg:flex-col gap-3 items-stretch group",children:[(0,n.jsx)("div",{className:"w-[8rem] lg:w-full xl:w-[8rem] min-h-[6rem] h-full overflow-hidden rounded-lg relative",children:(0,n.jsx)(y.default,{src:(null==e?void 0:null===(l=e.featuredImage)||void 0===l?void 0:null===(t=l.node)||void 0===t?void 0:t.sourceUrl)||"/images/no-image.jpg",className:"w-full h-full object-cover group-hover:scale-110 transition-all duration-500",alt:"blog-".concat(null==e?void 0:e.slug),fill:!0})}),(0,n.jsxs)("div",{className:"flex flex-col flex-1 justify-between h-auto py-1",children:[(0,n.jsx)("h4",{className:"font-semibold text-sm hover:text-primary transition-all duration-300",children:(null==e?void 0:null===(i=e.title)||void 0===i?void 0:i.length)>80?"".concat(null==e?void 0:e.title.slice(0,80),"..."):null==e?void 0:e.title}),(0,n.jsxs)("div",{className:"flex items-center gap-1 mt-auto",children:[(0,n.jsx)(v.G,{icon:g.SZw,className:"w-3 h-3 text-gray-400/80"}),(0,n.jsx)("p",{className:"text-gray-600 text-xs sm:text-xs font-medium",children:p(null==e?void 0:e.date)})]})]})]},e.slug)}):(0,n.jsx)("p",{className:"rounded-lg bg-gray-50 px-4 py-3 text-sm text-gray-600",children:"No recent posts available."})})]})},w=e=>{let{recentPosts:t}=e;return(0,n.jsxs)("aside",{className:"flex h-fit w-full flex-col gap-6 self-start lg:sticky lg:top-36",children:[(0,n.jsx)(f.default,{}),(0,n.jsx)(j,{recentPosts:t})]})},N=l(4386),S=e=>{var t;let{index:l,title:i,date:a,featuredImage:o,id:c,slug:d,showDescription:u,excerpt:m}=e;return(0,n.jsxs)(r.E.article,{className:"group flex flex-col gap-5 mb-5 overflow-hidden border border-black/20 rounded-xl p-4 bg-white",variants:(0,s.Ji)("up","spring",.15*l,.75),children:[(0,n.jsx)(b.default,{href:"/blog/".concat(d),children:(0,n.jsxs)("div",{className:"relative transition-all duration-500 rounded-xl overflow-hidden",children:[(0,n.jsx)(N.Z,{src:(null==o?void 0:null===(t=o.node)||void 0===t?void 0:t.sourceUrl)||"/images/no-image.jpg",alt:"".concat(i,"-image"),className:"h-[15rem] lg:h-[19.75rem] w-full overflow-hidden",imageClassName:"object-cover transition-all duration-500 group-hover:scale-105"}),(0,n.jsxs)("div",{className:"absolute left-3 top-3 z-10 flex items-center gap-2 rounded-full bg-white/95 px-4 py-1.5 text-sm font-semibold leading-none text-templateBlack shadow-md ring-1 ring-black/10",children:[(0,n.jsx)(v.G,{icon:g.SZw,className:"w-3 text-primary"}),(0,n.jsx)("time",{dateTime:a,className:"whitespace-nowrap",children:p(a)})]})]})}),(0,n.jsxs)("div",{className:"flex flex-col justify-center items-left relative flex-1",children:[(0,n.jsx)("div",{className:"flex flex-row mt-2 mb-5 transition-all duration-500 flex-1 justify-between gap-4",children:(0,n.jsx)(b.default,{href:"/blog/".concat(d),className:"flex flex-col",children:(0,n.jsx)("h3",{className:"text-templateBlack text-xl lg:text-2xl !leading-[120%]",children:i})})}),u&&m&&(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:m},className:"h-[72px] overflow-hidden text-gray-700"}),(0,n.jsxs)(b.default,{href:"/blog/".concat(d),className:"mt-5 flex w-fit items-center gap-2 font-semibold text-primary transition-all duration-300 hover:text-black",children:["Read Article",(0,n.jsx)(v.G,{className:"w-4",icon:g.b1y})]})]})]},l)},C=e=>{var t;let{posts:l,recentPosts:i}=e,[c,f]=function(){var e;let{threshold:t,delay:l,trackVisibility:n,rootMargin:i,root:a,triggerOnce:s,skip:r,initialInView:c,fallbackInView:h,onChange:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[p,g]=o.useState(null),v=o.useRef(),[b,y]=o.useState({inView:!!c,entry:void 0});v.current=f,o.useEffect(()=>{let e;if(!r&&p)return e=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x;if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof l.threshold?l.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:a,elements:s}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var l;return"".concat(t,"_").concat("root"===t?(l=e.root)?(u.has(l)||(m+=1,u.set(l,m.toString())),u.get(l)):"0":e[t])}).toString(),l=d.get(t);if(!l){let n;let i=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var l;let a=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(l=i.get(t.target))||l.forEach(e
1=>{e(a,t)})})},e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),l={id:t,observer:a,elements:i},d.set(t,l)}return l}(l),r=s.get(e)||[];return s.has(e)||s.set(e,r),r.push(t),a.observe(e),function(){r.splice(r.indexOf(t),1),0===r.length&&(s.delete(e),a.unobserve(e)),0===s.size&&(a.disconnect(),d.delete(i))}}(p,(t,l)=>{y({inView:t,entry:l}),v.current&&v.current(t,l),l.isIntersecting&&s&&e&&(e(),e=void 0)},{root:a,rootMargin:i,threshold:t,trackVisibility:n,delay:l},h),()=>{e&&e()}},[Array.isArray(t)?t.toString():t,p,a,i,s,r,n,h,l]);let j=null==(e=b.entry)?void 0:e.target,w=o.useRef();p||!j||s||r||w.current===j||(w.current=j,y({inView:!!c,entry:void 0}));let N=[g,b.inView,b.entry];return N.ref=N[0],N.inView=N[1],N.entry=N[2],N}(),[p,g]=(0,o.useState)(l),[v,b]=(0,o.useState)((null===(t=l[l.length-1])||void 0===t?void 0:t.cursor)||""),[y,j]=(0,o.useState)(!1);async function N(){let{posts:e}=await a({cursor:v,first:3}),t=[...(null==p?void 0:p.length)?p:[],...e];(null==p?void 0:p.length)>0?(b(t[t.length-1].cursor||""),g(t),(null==e?void 0:e.length)<3&&j(!1)):j(!1)}return(0,o.useEffect)(()=>{f&&(j(!0),N())},[f]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{pageName:"Blog",title:"Blog",hasBreadCrumb:!0}),(0,n.jsx)("section",{id:"blog",className:"padding-y",children:(0,n.jsx)("div",{className:"container",children:(0,n.jsxs)("div",{className:"grid lg:grid-cols-12 gap-10",children:[(0,n.jsxs)("div",{className:"lg:col-span-8",onScroll:N,children:[(0,n.jsx)(r.E.div,{className:"grid md:grid-cols-2 gap-6",variants:(0,s.Jm)(),initial:"hidden",whileInView:"show",viewport:{once:!0,amount:.1},children:p.map((e,t)=>(0,n.jsx)(S,{index:t,...e,showDescription:!0},t))}),(0,n.jsx)("div",{ref:c,children:y&&(0,n.jsxs)("div",{className:"col-span-1 mt-16 flex items-center justify-center sm:col-span-2 md:col-span-3 lg:col-span-4",children:[(0,n.jsxs)("svg",{"aria-hidden":"true",className:"h-10 w-10 animate-spin fill-sky-600 text-gray-200 dark:text-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,n.jsx)("span",{className:"sr-only",children:"Loading..."})]})})]}),(0,n.jsx)("div",{className:"lg:col-span-4",children:(0,n.jsx)(w,{recentPosts:i})})]})})})]})}},5368:function(e,t,l){"use strict";var n=l(7437),i=l(4760),a=l(8730),s=l(7992),r=l(3842),o=l(4906),c=l(2265),d=l(9501),u=l(4422);let m=u.Ry().shape({email:u.Z_().email("Invalid email").required("Email is required")});t.default=()=>{let[e,t]=(0,c.useState)(!1),{toast:l}=(0,s.pm)(),{register:u,handleSubmit:x,reset:h,formState:{errors:f}}=(0,d.cI)({resolver:(0,r.X)(m)}),p=async e=>{t(!0);try{let t=new FormData;t.append("_wpcf7_unit_tag","f36afb1"),t.set("your-subject","Blog Subscribe"),t.set("your-email",e.email);let n=await o.Z.post("https://backend.tempprosmechanical.com/wp-json/contact-form-7/v1/contact-forms/7/feedback",t);200===n.status&&(l({title:"Success",description:"Thank you for subscribing.",className:"bg-green-400 text-white"}),h())}catch(e){l({variant:"destructive",title:"Uh oh! Something went wrong.",description:"There was a problem with your request. Please try later."})}finally{t(!1)}};return(0,n.jsxs)("div",{className:"flex h-fit w-full flex-col self-start rounded-xl border border-black/20 p-4",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold",children:"Subscribe"}),(0,n.jsxs)("form",{noValidate:!0,onSubmit:x(p),className:"mt-5 flex flex-col gap-4",children:[(0,n.jsx)(a.Z,{id:"blog-subscribe-email",...u("email"),error:f.email,placeholder:"Your email",required:!0,type:"email",inputClassName:"!text-sm",className:"w-full"}),(0,n.jsx)(i.C,{title:e?"Submitting...":"Submit",type:"submit",buttonStyle:i.Z.style3,className:"w-full justify-center text-center"})]})]})}},9554:function(e,t,l){"use strict";l.d(t,{cn:function(){return a}});var n=l(1994),i=l(1407);function a(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return(0,i.m)((0,n.W)(t))}},7034:function(e,t,l){"use strict";l.d(t,{Ji:function(){return n},Jm:function(){return i}}),t.ZP={slideLeft:{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"}},slideRight:{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"}},slideUp:{initial:{y:"-100%"},animate:{y:0},exit:{y:"-100%"}},fadeIn:{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0}},fadeUp:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-20;return{initial:{opacity:0,y:e},animate:{opacity:1,y:0},exit:{opacity:0,y:e}}},fadeDown:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return{initial:{opacity:0,y:e},animate:{opacity:1,y:0},exit:{opacity:0,y:e}}},fadeLeft:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-20;return{initial:{opacity:0,x:-e},animate:{opacity:1,x:0},exit:{opacity:0,x:-e}}},fadeRight:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return{initial:{opacity:0,x:e},animate:{opacity:1,x:0},exit:{opacity:0,x:e}}},zoom:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0}}};let n=(e,t,l,n)=>({hidden:{x:"left"===e?100:"right"===e?-100:0,y:"up"===e?100:"down"===e?-100:0,opacity:0},show:{x:0,y:0,opacity:1,transition:{type:t,delay:l,duration:n,ease:"easeOut"}}}),i=(e,t)=>({hidden:{},show:{transition:{staggerChildren:e,delayChildren:t||0}}})}},function(e){e.O(0,[676,609,579,920,268,551,3,971,117,744],function(){return e(e.s=5509)}),_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.