PageSourceSearch

https://www.matcotools.com/_next/static/chunks/pages/[...slug]-0aa326b5693b71cd.js

js matcotools.com collected 2026-10-04 00:31:22 UTC 12,404 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330],{17563:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return H},default:function(){return q},getServerSidePropsBySite:function(){return Z},getServerSidePropsDistributor:function(){return B}});var r=n(50029),o=n(59499),i=n(87794),c=n.n(i),s=n(16523),a=n(39233),l=n(13037),u=n(9008),d=n.n(u),f=n(88767),p=n(67294),v=n(11163),m=n(15023),h=n(65409),g=n(41590),y=n(67522),x=n(53878),b=n(79554),j=n(22570),O=n(96018),P=n(4898),w=["Customer Service","Hand Tools","Tool boxes & Storage","Power Tools","Specialty Tools and Shop Equipment","Diagnostics","Gifts & Apparel"],_=n(85893),N=function(e){var t=e.distributorName,n=e.address,r=e.inBusinessSince,o=e.phoneOffice,i=e.phoneMobile,c=e.email,s=e.truckHours,a=[{icon:(0,_.jsx)(g.Z,{}),content:n},{icon:(0,_.jsx)(y.Z,{}),header:"In Business since",content:r},{icon:(0,_.jsx)(x.Z,{}),header:"Phone (office)",content:o&&(0,_.jsx)("a",{className:"text-blue-500",href:"tel:".concat(o),children:o})},{icon:(0,_.jsx)(x.Z,{}),header:"Phone (mobile)",content:i&&(0,_.jsx)("a",{className:"text-blue-500",href:"tel:".concat(i),children:i})},{icon:(0,_.jsx)(b.Z,{}),header:"Email",content:(0,_.jsx)("a",{className:"text-blue-500",href:"mailto:".concat(c),children:c})},{icon:(0,_.jsx)(j.Z,{}),header:"Truck Hours",content:s},{icon:(0,_.jsx)(O.Z,{}),header:"Specializing in",content:(0,_.jsx)("ul",{className:"mt-4 flex flex-col gap-2",children:w.map((function(e){return(0,_.jsx)("li",{className:"font-semibold",children:e},e)}))})}].filter((function(e){return e.content}));return(0,_.jsxs)("div",{className:"flex flex-col gap-6 rounded-lg border-1 border-grey-500 bg-grey-100 p-6 sm:max-w-[312px]",children:[(0,_.jsx)("h2",{className:"text-2xl font-bold",children:"About Your Distributor"}),(0,_.jsx)("h1",{className:"text-[24px] font-bold",children:t}),(0,_.jsx)("ul",{className:"flex flex-col gap-6",children:a.map((function(e){var t=e.content,n=e.header,r=e.icon;return(0,_.jsxs)("li",{className:"flex gap-2",children:[(0,_.jsx)("div",{className:"flex h-6 items-center",children:r}),(0,_.jsxs)("div",{className:"font-lg",children:[!!n&&(0,_.jsxs)("span",{children:[(0,_.jsx)("h3",{className:"inline font-semibold",children:n}),":"," "]}),(0,_.jsx)("span",{children:t})]})]})}))}),(0,_.jsx)("a",{href:"mailto:".concat(c),children:(0,_.jsx)(P.z,{as:"div",children:"EMAIL THE DISTRIBUTOR"})})]})};function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=function(e){var t,n,r=e.banner,o=e.distributorLayout,i=e.context,c=e.distributorData,a=c.key;return(0,p.useEffect)((function(){m.c.setCookie({name:"distributorID",val:a.toString(),defaultExpireTime:9e12})}),[a]),(0,_.jsxs)("div",{className:"flex w-full flex-col gap-6 py-8",children:[(0,_.jsx)("div",{className:"block sm:hidden",children:(0,_.jsx)(h.j,S({},null===r||void 0===r||null===(t=r[0])||void 0===t?void 0:t.contents))}),(0,_.jsxs)("div",{className:"flex w-full flex-col-reverse gap-6 sm:flex-row sm:items-start sm:gap-8 md:pb-12",children:[(0,_.jsxs)("div",{className:"w-full",children:[(0,_.jsx)("div",{className:"hidden sm:block",children:(0,_.jsx)(h.j,S({},null===r||void 0===r||null===(n=r[0])||void 0===n?void 0:n.contents))}),(0,_.jsx)(s.Renderer,{layout:o,context:i})]}),(0,_.jsx)(N,S({},c))]})]})},C=n(37572);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?I(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(e){var t=e.cms,n=e.navigation;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s.Renderer,{layout:t.layoutTop,context:t.context}),(0,_.jsxs)("div",{className:"md:grid-col flex flex-col-reverse gap-6 px-3 md:grid md:grid-flow-col-dense md:grid-cols-[1fr_3fr] md:px-12",children:[(0,_.jsx)("div",{className:"col-start-2 w-full md:pt-[84px]",children:(0,_.jsx)(s.Renderer,{layout:t.layout,context:t.context})}),(0,_.jsx)("div",{className:"col-start-1",children:(0,_.jsx)(C.H,T({},n))})]}),(0,_.jsx)(s.Renderer,{layout:t.layoutBottom,context:t.context})]})};function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=n(34155);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H=!0;function Z(e,t){return U.apply(this,arguments)}function U(){return(U=(0,r.Z)(c().mark((function e(t,n){var r,o,i,a,u,d,p,v;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,l.getGraphQLClient)({server:R.env.GRAPHQL_API||"",client:R.env.NEXT_PUBLIC_GRAPHQL_API||"",site:"catalog"}),o=new f.QueryClient(s.queryClientParams),e.next=4,o.prefetchQuery(l.useConfigQuery.getKey(),l.useConfigQuery.fetcher(r));case 4:return i=o.getQueryData(l.useConfigQuery.getKey()),a=Object.fromEntries(((null===i||void 0===i?void 0:i.configs)||[]).map((function(e){return[e.key,e.value]}))),e.prev=6,e.next=9,(0,s.getStack)();case 9:return d=e.sent,e.next=12,(0,s.fetchPage)(d,{contentTypeUid:"page",options:{where:{slug:(Array.isArray(null===t||void 0===t?void 0:t.slug)?null===t||void 0===t?void 0:t.slug.join("/"):null===t||void 0===t?void 0:t.slug)||"",site:n},refs:["header","header.search","header.my_account_navigation","layout.row.column.component","side_navigation","footer"]}},{config:a,gqlEndpoint:{server:R.env.GRAPHQL_API||"",client:R.env.NEXT_PUBLIC_GRAPHQL_API||"",site:"catalog"}});case 12:return p=e.sent,v=(null===p||void 0===p||null===(u=p.sideNavigation)||void 0===u?void 0:u[0])||null,e.abrupt("return",{props:{dehydratedState:(0,f.dehydrate)(o),cmsPageData:G(G({},p),{},{sideNavigation:v}),sideNavigation:v}});case 17:if(e.prev=17,e.t0=e.catch(6),141!==e.t0.error_code){e.next=21;break}return e.abrupt("return",{props:{dehydratedState:(0,f.dehydrate)(o)},notFound:!0});case 21:throw e.t0;case 22:case"end":return e.stop()}}),e,null,[[6,17]])})))).apply(this,arguments)}var B=function(){var e=(0,r.Z)(c().mark((function e(t){var n,r,o,i,a,u;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,l.getGraphQLClient)({server:R.env.GRAPHQL_API||"",client:R.env.NEXT_PUBLIC_GRAPHQL_API||"",site:"catalog"}),r=new f.QueryClient(s.queryClientParams),e.next=4,Promise.all([r.prefetchQuery(l.useConfigQuery.getKey(),l.useConfigQuery.fetcher(n))]);case 4:return o=r.getQueryData(l.useConfigQuery.getKey()),i=Object.fromEntries(((null===o||void 0===o?void 0:o.configs)||[]).map((function(e){return[e.key,e.value]}))),e.prev=6,e.next=9,(0,s.getStack)();case 9:return a=e.sent,e.next=12,(0,s.fetchPage)(a,{contentTypeUid:"distributor_personal_website",options:{refs:["header","header.my_account_navigation","distributor_layout.row.column.component","banner","footer"]}},{config:i,gqlEndpoint:{server:R.env.GRAPHQL_API||"",client:R.env.NEXT_PUBLIC_GRAPHQL_API||"",site:"catalog"}});case 12:return u=e.sent,e.abrupt("return",{props:{dehydratedState:(0,f.dehydrate)(r),cmsPageData:G(G({},u),{},{sideNavigation:null}),isDistributorPersonalWebsite:!0,distributorData:t}});case 16:if(e.prev=16,e.t0=e.catch(6),141!==e.t0.error_code){e.next=20;break}return e.abrupt("return",{props:{dehydratedState:(0,f.dehydrate)(r)},notFound:!0});case 20:throw e.t0;case 21:case"end":return e.stop()}}),e,null,[[6,16]])})));return function(t){return e.apply(this,arguments)}}(),q=function(e){var t,n,r,o,i,c,l,u,f=e.cmsPageData,m=e.isDistributorPersonalWebsite,h=void 0!==m&&m,g
1=e.distributorData,y=e.sideNavigation,x=(0,s.useRendererContext)().gqlClient,b=(0,v.useRouter)(),j=(0,p.useState)(f),O=j[0],P=j[1],w=(0,s.useUserPersonalDetailsInformation)(x),N=w.customer,D=w.isLoading,S=w.isStudent,C=w.isInstructor,I=!(null===N||void 0===N||!N.id);(0,p.useEffect)((function(){(!D&&I||C)&&P(function(e,t){var n,r="REGISTER OR SIGN IN",o="GET MY DISCOUNT",i=structuredClone(e),c=null===(n=e.layout)||void 0===n?void 0:n.row.findIndex((function(e){return e.column.find((function(e){return e.component.find((function(e){var t,n,i,c=null===e||void 0===e||null===(t=e.contents)||void 0===t||null===(n=t.cta)||void 0===n||null===(i=n.buttonText)||void 0===i?void 0:i.toUpperCase();return c===r||c===o}))}))}));if(void 0!==c&&-1!==c){var s,a,l,u=null===(s=i.layout)||void 0===s?void 0:s.row,d=Q(Q({},null===u||void 0===u?void 0:u[c]),{},{column:null===(a=i.layout)||void 0===a||null===(l=a.row)||void 0===l?void 0:l[c].column.map((function(e){return Q(Q({},e),{},{component:e.component.map((function(e){var n,i,c,s,a=null===e||void 0===e||null===(n=e.contents)||void 0===n||null===(i=n.cta)||void 0===i||null===(c=i.buttonText)||void 0===c?void 0:c.toUpperCase();return a===r||a===o?Q(Q({},e),{},{contents:Q(Q({},null===e||void 0===e?void 0:e.contents),{},{cta:t?{}:Q(Q({},null===e||void 0===e||null===(s=e.contents)||void 0===s?void 0:s.cta),{},{link:"/account/profile/dashboard"})})}):e}))})}))});null===u||void 0===u||u.splice(c,1,d);var f=u.findIndex((function(e){return e.column.find((function(e){return e.component.find((function(e){return"Student Landing Page - Sign In To Create An Account"===(null===e||void 0===e?void 0:e.title)}))}))}));void 0!==f&&-1!==f&&t&&u.splice(f,1),i=Q(Q({},i),{},{layout:Q(Q({},i.layout),{},{row:u})})}return i}(f,S))}),[D,f,I,S,C]);var T=(0,p.useRef)(!0);return(0,p.useEffect)((function(){var e;T.current?T.current=!1:null!==b&&void 0!==b&&null!==(e=b.asPath)&&void 0!==e&&e.includes("tech-ed")&&!T.current&&window.location.reload()}),[b.asPath]),(0,_.jsxs)("div",{className:"flex min-h-screen flex-col justify-between",children:[(0,_.jsxs)(d(),{children:[(0,_.jsx)("title",{children:null===O||void 0===O||null===(t=O.meta)||void 0===t||null===(n=t.seo)||void 0===n?void 0:n.metaTitle}),(0,_.jsx)("meta",{property:"og:title",content:null===O||void 0===O||null===(r=O.meta)||void 0===r||null===(o=r.seo)||void 0===o?void 0:o.opengraphTitle}),(0,_.jsx)("meta",{name:"description",content:null===O||void 0===O||null===(i=O.meta)||void 0===i||null===(c=i.seo)||void 0===c?void 0:c.metaDescription},"titleDescription"),(0,_.jsx)("meta",{name:"keywords",content:null===O||void 0===O||null===(l=O.meta)||void 0===l||null===(u=l.seo)||void 0===u?void 0:u.metaKeywords},"titleKeywords")]}),D?(0,_.jsx)(a.$,{}):(0,_.jsxs)(_.Fragment,{children:[O&&!y&&(0,_.jsx)(s.Renderer,G(G({},O),{},{children:h&&g&&(0,_.jsx)(E,G(G({},O),{},{distributorData:g}))})),O&&y&&(0,_.jsx)(k,{cms:O,navigation:y})]})]})}},50881:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return n(17563)}])}},function(e){e.O(0,[6758,9774,2888,179],(function(){return t=50881,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.