PageSourceSearch

https://www.safetyvision.com/_next/static/chunks/pages/products/[category]-1803470fd59fb1ea.js

js safetyvision.com collected 2026-09-29 05:16:13 UTC 14,455 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[708,169],{6898:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(9499),i=r(4730),a=r(5893),s=["src","alt","className","children"];function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t){var e=t.src,r=t.alt,n=void 0===r?"":r,c=t.className,o=void 0===c?"":c,u=t.children,f=(0,i.Z)(t,s);return e?(0,a.jsxs)("div",l(l({className:"relative overflow-hidden ".concat(o).trim()},f),{},{children:[(0,a.jsx)("img",{src:e,alt:n,className:"absolute inset-0 w-full h-full object-cover object-center pointer-events-none","aria-hidden":!n}),u&&(0,a.jsx)("div",{className:"relative z-10",children:u})]})):u?(0,a.jsx)("div",l(l({className:o},f),{},{children:u})):null}},1226:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(1664),i=r(9273),a=r(5893);function s(t){var e=t.props;if(!e)return(0,a.jsx)(a.Fragment,{});return(0,a.jsx)("p",{className:"text-sm sm:text-base Button ".concat(e.className," mt-8 font-medium"),onClick:function(){return function(){try{var t=document.head.querySelector('meta[name="page_title"]').content;t&&i.B({action:"select_content",params:{event_label:"".concat(t," - ").concat(e.Text," Button")}})}catch(r){console.log(r)}}()},children:(0,a.jsx)(n.default,{href:e.URL,children:(0,a.jsx)("a",{className:"px-4 py-3 border-2 ".concat(e.Color," no-underline inline-block"),children:e.Text})})})}},1940:function(t,e,r){"use strict";var n=r(7361),i=r.n(n),a=r(5675),s=r(1226),c=r(5259),l=r(5935),o=r(1664),u=r(4184),f=r.n(u),d=r(7294),p=r(5893);function b(t){var e,r=t.v,n=t.cols,u=i()(r,"FeaturedImage.data.attributes.url"),d="/products/detail/".concat((r.URL||"").replace(/^\/+|\/+$/g,""),"/").concat(r.id).replace(/\/+/g,"/");return r.Excerpt&&(e=(0,l.ZP)(c.Z.nl2br(r.Excerpt))),n||(n=25),(0,p.jsxs)("div",{className:f()("relative flex flex-col pr-12 pb-14 mb-14 h-auto min-h-full",{"lg:basis-[20%]":20==n,"lg:basis-[25%]":25==n}),children:[(0,p.jsxs)("div",{className:"w-full h-52 grid place-items-center relative",children:[u&&(0,p.jsx)(o.default,{href:d,passHref:!0,children:(0,p.jsx)("a",{className:"block relative w-full h-full max-w-[18rem]",children:(0,p.jsx)(a.default,{src:u,alt:r.Title||"Product",width:208,he
1ight:208,sizes:"(max-width: 1024px) 50vw, 20vw",className:"object-contain cursor-pointer",loading:"lazy"})})}),r.New?(0,p.jsxs)("svg",{className:"absolute bottom-0 left-0",width:"48",height:"23",viewBox:"0 0 48 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{width:"48",height:"23",rx:"11.5",fill:"#FF0000"}),(0,p.jsx)("path",{d:"M11.0469 15V7.3H12.5649L15.8649 12.646V7.3H17.2619V15H15.7439L12.4549 9.665V15H11.0469ZM19.8276 15V7.3H24.9756V8.587H21.3236V10.281H24.2496V11.579H21.3236V13.702H25.0966V15H19.8276ZM28.9914 15L26.7474 7.3H28.2874L29.7724 13.218L31.2794 7.3H32.9734L34.4914 13.218L35.9764 7.3H37.5164L35.2944 15H33.7104L32.1374 9.357L30.5534 15H28.9914Z",fill:"white"})]}):null]}),(0,p.jsxs)("div",{className:"relative pt-4 mt-4 before:content-[''] liner",children:[(0,p.jsx)("p",{className:"text-2xl",children:r.Title}),(0,p.jsx)("p",{className:"text-sm pt-2 pb-4",children:e})]}),(0,p.jsx)("div",{className:"absolute bottom-0 w-full left-0",children:(0,p.jsx)(s.Z,{props:{URL:d,Color:"red",Text:"See details"}})})]})}e.Z=(0,d.memo)(b)},169:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return c}});var n=r(1226),i=r(5935),a=r(6898),s=r(5893);function c(t){var e,r,c,l=t.props,o=l.Copy?(0,i.ZP)(l.Copy):"",u=null===(e=l.Image)||void 0===e||null===(r=e.data)||void 0===r||null===(c=r.attributes)||void 0===c?void 0:c.url;return(0,s.jsx)(a.Z,{src:u,alt:l.Title?"".concat(l.Title," background"):"",className:"TwoColumnBigImage",children:(0,s.jsx)("div",{className:"container lg:flex lg:justify-center",children:(0,s.jsxs)("div",{className:"lg:my-28 py-14 lg:py-40 lg:flex",children:[(0,s.jsx)("div",{className:"lg:w-4/12 lg:ml-3/12",children:(0,s.jsx)("p",{className:"text-".concat(l.CT?l.CT:"red"," text-6xl lg:text-8xl"),children:l.Title})}),(0,s.jsx)("div",{className:"lg:w-3/12 text-white flex items-center lg:pl-8 pt-10 lg:pt-0 text-xl",children:(0,s.jsxs)("div",{children:[o,(0,s.jsx)("div",{className:"my-6",children:l.Button&&(0,s.jsx)(n.Z,{props:l.Button})})]})})]})})})}},9273:function(t,e,r){"use strict";r.d(e,{B:function(){return n}});r(3454);var n=function(t){var e=t.action,r=t.params;"function"===typeof window.gtag&&window.gtag("event",e,r)}},5259:function(t,e,r){"use strict";var n,i=r(1383),a=r(2640),s=r(9499),c=r(29),l=r(7794),o=r.n(l),u=r(3311),f=r.n(u),d=r(8029),p=r.n(d),b=r(3105),v=r.n(b),m=r(7361),h=r.n(m),g=r(1304),x=r.n(g),j=r(8687);function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function O(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return N(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var P=new Map;function Z(t){return k.apply(this,arguments)}function k(){return(k=(0,c.Z)(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="".concat("https://sv-cms-v01.safetyvision.com","/api/menus/").concat(e,"?nested&populate=*"),(n=P.get(r))||(n=fetch(r).then((function(t){return t.json()})),P.set(r,n)),t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.Z={chooseBg:function(t){return t?t.includes("#")?"bg-[".concat(t,"]"):"bg-".concat(t):""},buildLinOld:function(t,e){var r=!0,n=[];do{var i=f()(e,{id:t});console.log(i),i&&n.push(i.url),i&&i.parent?t=i.parent.id:r=!1}while(!0===r);return(n=n.reverse()).join("")},buildLink:function(t,e){f()(e,{id:t})},buildChain:function(t){var e,r=[],n=O(t);try{for(n.s();!(e=n.n()).done;){var i=e.value.attributes,a="";if(i.url&&"string"==typeof i.url&&(a=i.url.replace("/","")),a)if(i.parent){var s=this.parentLoop(i.parent.id,[a],t);s=s.reverse(),r.push(s)}else r.push([a])}}catch(c){n.e(c)}finally{n.f()}return r},parentLoop:function(t,e,r){var n=f()(r,{id:t});if(n){var i="";n.url&&"string"==typeof n.url&&(i=n.url.replace("/","")),e.push(i),n.parent&&this.parentLoop(n.parent.id,e,r)}return e},dropdownStyles:function(){return{menu:function(t,e){return w(w({},t),{},{width:e.selectProps.width,borderBottom:"1px dotted pink",color:e.selectProps.menuColor,padding:20})},control:function(){return{backgroundColor:"blue"}},singleValue:function(t,e){var r=e.isDisabled?.5:1;return w(w({},t),{},{opacity:r,transition:"opacity 300ms"})}}},deSlug:function(t,e){var r=t.replace(/-/gi," ");return e&&(r=p()(r)),r},slug:function(t){return t=(t=x()(t,{remove:/[*+~,.()'"!:@#]/g})).toLowerCase()},downloadTitle:function(t){var e=t;return e.includes(".")&&(e=t.split(".").slice(0,-1).join(".")),e=p()(e)},nl2br:function(t){return t.replace(/(?:\r\n|\r|\n)/g,"<br>")},stripHTML:function(t){return t.replace(/(<([^>]+)>)/gi,"")},buildPaths:function(){var t=this;return(0,c.Z)(o().mark((function e(){var r,n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z(1);case 2:return r=e.sent,n=r.data.attributes.items.data,n=v()(n,(function(t){return"/"!=t.url&&19!=t.id&&19!=h()(t,"parent.id")})),i=t.buildChain(n),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})))()},buildMainMenu:function(){return(0,c.Z)(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z(1);case 2:return e=t.sent,t.abrupt("return",e.data.attributes.items);case 4:case"end":return t.stop()}}),t)})))()},buildSubMenus:function(){return(0,c.Z)(o().mark((function t(){var e,r,n,i,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([Z(2),Z(3),Z(4),Z(5)]);case 2:return e=t.sent,r=(0,a.Z)(e,4),n=r[0],i=r[1],s=r[2],c=r[3],t.abrupt("return",{company:n.data.attributes.items,existing:i.data.attributes.items,new:s.data.attributes.items,resources:c.data.attributes.items});case 9:case"end":return t.stop()}}),t)})))()},findUrl:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||"object"!==typeof t)return null;var n=null;for(var i in t){if("url"===i&&(t[i]===e?n=""===r?t[i]:r+t[i]:r+=t[i]),null!==n)break;var a=this.findUrl(t[i],e,r);null!==a&&(n=a)}return n},returnPreview:function(t,e){return(0,c.Z)(o().mark((function r(){var a,s;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=(0,j.gql)(n||(n=(0,i.Z)(["\n\t\t\tquery {\n\t\t\t\tpages(filters: { id: { eq: "," } }, publicationState: PREVIEW) {\n\t\t\t\t\tdata {\n\t\t\t\t\t\tid\n\t\t\t\t\t\t","\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t"])),parseInt(t.previewData.id),e),r.next=3,(0,j.request)("".concat("https://sv-cms-v01.safetyvision.com","/graphql"),a);case 3:return s=r.sent,r.abrupt("return",s);case 5:case"end":return r.stop()}}),r)})))()}}},1136:function(t,e,r){"use strict";r.r(e),r.d(e,{__N_SSG:function(){return N}});var n=r(9499),i=r(9440),a=r(7268),s=r(3149),c=r(7361),l=r.n(c),o=r(5161),u=r.n(o),f=r(4486),d=r.n(f),p=r(3311),b=r.n(p),v=r(8885),m=r(169),h=r(7294),g=r(1940),x=r(5893);function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?j(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var w=function(t){var e,r=l()(t,"category.FeaturedImage.data.attributes.url");return(0,x.jsx)("div",{className:"bg-black text-white py-24 lg:py-36",children:(0,x.jsxs)("div",{className:"container lg:flex lg:items-center",children:[(0,x.jsxs)("div",{className:"lg:ml-2/12 lg:w-5/12",children:[(0,x.jsx)("p",{children:"Products"}),(0,x.jsx)("p",{className:"text-5xl lg:text-8xl uppercase",children:t.category.Title})]}),r&&(0,x.jsx)("div",{className:"lg:h-full flex lg:items-center lg:w-4/12 lg:ml-1/12 pt-10 lg:pt-0 justify-end lg:justify-start",children:(0,x.jsx)("img",{src:r,alt:(null===(e=t.category)||void 0===e?void 0:e.Title)||"Category",className:"lg:w-full w-6/12"})})]})})},O=function(t){var e=[];return d()(t.products,(function(r){var n=r.attributes;if(t.industry){var i=b()(n.industries.data,(function(e){return e.attributes.Title==t.industry}));if(!i)return}l()(n,"FeaturedImage.data.attributes.url");n.id=r.id,e.push((0,x.jsx)(g.Z,{v:n},n.id))})),e},N=!0;e.default=function(t){var e=(0,h.useState)(""),r=e[0],n=e[1],c=u()(t.industries,(function(t){return{label:t.attributes.Title,value:t.attributes.Title}}));return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i.Z,{meta:t.meta}),(0,x.jsx)(a.Z,{items:t.menu,subs:t.subMenus}),(0,x.jsx)(w,y({},t)),(0,x.jsx)("div",{className:"container",children:(0,x.jsx)("div",{className:"bg-red relative py-14 roun
1ded-br-[48px] before:absolute before:content[''] before:w-[200vw] before:h-full before:-left-[180vw] before:top-0 before:-z-50 before:block before:bg-red lg:w-6/12 lg:ml-2/12",children:(0,x.jsxs)("div",{className:"lg:w-8/12 flex",children:[(0,x.jsx)("div",{className:"flex-1",children:(0,x.jsx)(v.ZP,{options:c,classNamePrefix:"rc",placeholder:"Industry",isClearable:!0,onChange:function(t){t&&t.value?n(t.value):n("")}})}),(0,x.jsx)("div",{className:"flex items-center pr-4 lg:pr-0",children:(0,x.jsx)("span",{className:"border border-white py-2 px-3 ml-4 text-white leading-none",children:"Search"})})]})})}),(0,x.jsx)("div",{className:"container",children:(0,x.jsx)("div",{className:"lg:ml-2/12 lg:w-8/12 lg:flex flex-wrap py-16",children:(0,x.jsx)(O,{industry:r,products:t.products.data})})}),(0,x.jsx)(m.default,{props:t.page.Blocks[0]}),(0,x.jsx)(s.Z,{subs:t.subMenus})]})}},7441:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/products/[category]",function(){return r(1136)}])},4730:function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}r.d(e,{Z:function(){return n}})}},function(t){t.O(0,[681,935,986,675,885,101,774,888,179],(function(){return e=7441,t(t.s=e);var e}));var e=t.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.