PageSourceSearch

https://www.safetyvision.com/_next/static/chunks/499-dfecd4b6e52dd78b.js

js safetyvision.com collected 2026-09-29 05:15:56 UTC 10,215 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[499],{1829:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(4950),i=r(5893),a="To show this content, we need your permission for 'external media' cookies. Please give permission to view this content.";function o(e){var t=e.category,r=e.message,o=e.compact,u=void 0!==o&&o,s=e.className,c=void 0===s?"":s,l=(0,n.C)().openPreferences;return u?(0,i.jsxs)("div",{className:"bg-grey border border-black/10 p-4 text-sm ".concat(c),children:[(0,i.jsx)("p",{className:"mb-2",children:r||a}),(0,i.jsx)("button",{type:"button",onClick:function(){return l(t)},className:"text-black text-xs uppercase tracking-superwide underline underline-offset-2",children:"Change cookie settings"})]}):(0,i.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-grey border border-black/10 p-6 text-center ".concat(c),children:[(0,i.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36","aria-hidden":!0,children:[(0,i.jsx)("circle",{cx:"18",cy:"18",r:"18",fill:"#FF0000"}),(0,i.jsx)("path",{d:"M10 10 L26 26 M26 10 L10 26",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round"})]}),(0,i.jsx)("p",{className:"font-serif text-xl",children:"Oops, we can't show this"}),(0,i.jsx)("p",{className:"text-sm max-w-md text-gray-700",children:r||a}),(0,i.jsx)("button",{type:"button",onClick:function(){return l(t)},className:"bg-black text-white px-4 py-3 text-xs uppercase tracking-superwide mt-1",children:"Change cookie settings"})]})}},1834:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(4950),i=r(1829),a=r(5893);function o(e){var t=e.category,r=e.service,o=e.children,u=e.fallback,s=e.placeholderClassName,c=(0,n.C)(),l=c.status,f=c.hasConsent;return"loading"===l?(0,a.jsx)("div",{className:"bg-black/5 animate-pulse ".concat(s||""),"aria-hidden":!0}):f(t)?(0,a.jsx)(a.Fragment,{children:o}):void 0!==u?(0,a.jsx)(a.Fragment,{children:u}):(0,a.jsx)(i.Z,{category:t,service:r,className:s})}},120:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(7294),i=r(4184),a=r.n(i),o=r(5017),u=r(5893);function s(e){var t=e.src,i=e.className,s=e.wrapperClassName,c=(0,n.useRef)(null);return(0,n.useEffect)((function(){if(c.current&&t){var e=null,n=!1;return r.e(50).then(r.bind(r,3288)).then((function(t){var r=t.default;!n&&c.current&&(e=new r(c.current,o.Zo))})),function(){var t;n=!0,null===(t=e)||void 0===t||t.destroy()}}}),[t]),t?(0,u.jsx)("div",{className:a()("plyr-host plyr-host--audio",s),children:(0,u.jsx)("audio",{ref:c,className:i,src:t,preload:"metadata"})}):null}},5017:function(e,t,r){r.d(t,{ZJ:function(){return n},NB:function(){return i},Zo:function(){return a}});var n={controls:["play-large","play","progress","current-time","mute","volume","settings","pip","fullscreen"],settings:["speed"],speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2]},hideControls:!0,clickToPlay:!0},i={controls:[],autoplay:!0,muted:!0,loop:{active:!0},clickToPlay:!1,hideControls:!0,disableContextMenu:!0},a={controls:["play","progress","current-time","mute","volume"]}},5259:function(e,t,r){var n,i=r(1383),a=r(2640),o=r(9499),u=r(29),s=r(7794),c=r.n(s),l=r(3311),f=r.n(l),d=r(8029),p=r.n(d),v=r(3105),m=r.n(v),b=r(7361),h=r.n(b),g=r(1304),y=r.n(g),x=r(8687);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}
1}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,o=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw a}}}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var N=new Map;function O(e){return P.apply(this,arguments)}function P(){return(P=(0,u.Z)(c().mark((function e(t){var r,n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat("https://sv-cms-v01.safetyvision.com","/api/menus/").concat(t,"?nested&populate=*"),(n=N.get(r))||(n=fetch(r).then((function(e){return e.json()})),N.set(r,n)),e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.Z={chooseBg:function(e){return e?e.includes("#")?"bg-[".concat(e,"]"):"bg-".concat(e):""},buildLinOld:function(e,t){var r=!0,n=[];do{var i=f()(t,{id:e});console.log(i),i&&n.push(i.url),i&&i.parent?e=i.parent.id:r=!1}while(!0===r);return(n=n.reverse()).join("")},buildLink:function(e,t){f()(t,{id:e})},buildChain:function(e){var t,r=[],n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value.attributes,a="";if(i.url&&"string"==typeof i.url&&(a=i.url.replace("/","")),a)if(i.parent){var o=this.parentLoop(i.parent.id,[a],e);o=o.reverse(),r.push(o)}else r.push([a])}}catch(u){n.e(u)}finally{n.f()}return r},parentLoop:function(e,t,r){var n=f()(r,{id:e});if(n){var i="";n.url&&"string"==typeof n.url&&(i=n.url.replace("/","")),t.push(i),n.parent&&this.parentLoop(n.parent.id,t,r)}return t},dropdownStyles:function(){return{menu:function(e,t){return j(j({},e),{},{width:t.selectProps.width,borderBottom:"1px dotted pink",color:t.selectProps.menuColor,padding:20})},control:function(){return{backgroundColor:"blue"}},singleValue:function(e,t){var r=t.isDisabled?.5:1;return j(j({},e),{},{opacity:r,transition:"opacity 300ms"})}}},deSlug:function(e,t){var r=e.replace(/-/gi," ");return t&&(r=p()(r)),r},slug:function(e){return e=(e=y()(e,{remove:/[*+~,.()'"!:@#]/g})).toLowerCase()},downloadTitle:function(e){var t=e;return t.includes(".")&&(t=e.split(".").slice(0,-1).join(".")),t=p()(t)},nl2br:function(e){return e.replace(/(?:\r\n|\r|\n)/g,"<br>")},stripHTML:function(e){return e.replace(/(<([^>]+)>)/gi,"")},buildPaths:function(){var e=this;return(0,u.Z)(c().mark((function t(){var r,n,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O(1);case 2:return r=t.sent,n=r.data.attributes.items.data,n=m()(n,(function(e){return"/"!=e.url&&19!=e.id&&19!=h()(e,"parent.id")})),i=e.buildChain(n),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t)})))()},buildMainMenu:function(){return(0,u.Z)(c().mark((function e(){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(1);case 2:return t=e.sent,e.abrupt("return",t.data.attributes.items);case 4:case"end":return e.stop()}}),e)})))()},buildSubMenus:function(){return(0,u.Z)(c().mark((function e(){var t,r,n,i,o,u;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([O(2),O(3),O(4),O(5)]);case 2:return t=e.sent,r=(0,a.Z)(t,4),n=r[0],i=r[1],o=r[2],u=r[3],e.abrupt("return",{company:n.data.attributes.items,existing:i.data.attributes.items,new:o.data.attributes.items,resources:u.data.attributes.items});case 9:case"end":return e.stop()}}),e)})))()},findUrl:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e||"object"!==typeof e)return null;var n=null;for(var i in e){if("url"===i&&(e[i]===t?n=""===r?e[i]:r+e[i]:r+=e[i]),null!==n)break;var a=this.findUrl(e[i],t,r);null!==a&&(n=a)}return n},returnPreview:function(e,t){return(0,u.Z)(c().mark((function r(){var a,o;return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=(0,x.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(e.previewData.id),t),r.next=3,(0,x.request)("".concat("https://sv-cms-v01.safetyvision.com","/graphql"),a);case 3:return o=r.sent,r.abrupt("return",o);case 5:case"end":return r.stop()}}),r)})))()}}},9550:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(5935),i=r(1834),a=r(5893),o=/player\.vimeo\.com|youtube\.com\/embed|youtube-nocookie\.com\/embed|youtu\.be/i;function u(e){var t;return"tag"===(null===e||void 0===e?void 0:e.type)&&"iframe"===e.name&&o.test((null===(t=e.attribs)||void 0===t?void 0:t.src)||"")}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.filter((function(e){return"text"===e.type?(e.data||"").trim().length>0:"tag"===e.type}));return 1===t.length&&u(t[0])}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/youtube|youtu\.be/i.test(e)?"YouTube":"Vimeo"}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.stripVideoEmbeds,o=void 0!==r&&r;return e?(0,n.ZP)(e,{replace:function(e){if(u(e)){if(o)return(0,a.jsx)(a.Fragment,{});var t=e.attribs||{},r=t.src,n=t.title,l=t.allow,f=t.allowfullscreen;return(0,a.jsx)("div",{className:"my-8 w-full max-w-4xl mx-auto aspect-video relative overflow-hidden rounded-lg bg-black",children:(0,a.jsx)(i.Z,{category:"experience",service:c(r),placeholderClassName:"absolute inset-0",children:(0,a.jsx)("iframe",{src:r,title:n||"Embedded video",allow:l||"autoplay; fullscreen; picture-in-picture",allowFullScreen:void 0!==f,frameBorder:"0",className:"absolute inset-0 w-full h-full"})})})}if(o&&"tag"===e.type&&"div"===e.name&&s(e.children))return(0,a.jsx)(a.Fragment,{})}}):null}}}]);

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.