PageSourceSearch

https://www.hellbergsafety.no/_next/static/chunks/3828.b4c8ac471810b68a.js

js hellbergsafety.no collected 2026-10-08 01:19:45 UTC 10,288 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3828],{8306:(e,t,i)=>{"use strict";i.d(t,{p:()=>l});var r=i(41695),n=i(37164);let l=(...e)=>{let[t,i]=(0,r.useState)(!1),l=(0,n.y)(t),o=l?.paused,a=(0,r.useRef)(!1),s=(0,r.useRef)(e);s.current=e;let d=(0,r.useCallback)(()=>s.current.map(e=>e.current).filter(e=>!!e),[]);(0,r.useEffect)(()=>{i(d().some(e=>!e.paused))},[d]),(0,r.useEffect)(()=>{if(void 0!==o)for(let e of(a.current=o,d()))o?e.pause():e.paused&&(e.muted=!0,e.play()?.catch(()=>void 0))},[d,o]);let c=(0,r.useCallback)(()=>{if(!a.current)for(let e of d())e.paused&&(e.muted=!0,e.play()?.catch(()=>void 0))},[d]),p=(0,r.useCallback)(()=>{let e=d();if(e.some(e=>!e.paused)){for(let t of(a.current=!0,e))t.pause();return}for(let t of(a.current=!1,e))t.play()?.catch(()=>void 0)},[d]),u=(0,r.useCallback)(()=>{if(a.current){for(let e of d())e.pause();return}i(!0)},[d]);return{autoplay:c,isPlaying:t,onPause:(0,r.useCallback)(()=>i(d().some(e=>!e.paused)),[d]),onPlay:u,showToggle:!l,toggle:p}}},33828:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DescriptionRenderer:()=>_,SplitHeroBlock:()=>C});var r=i(64255),n=i(41695),l=i(57424),o=i.n(l),a=i(52204),s=i.n(a),d=i(71301),c=Object.defineProperty,p=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u=n.forwardRef(c(function(e,t){return(0,r.jsx)(d.sG.span,{...e,ref:t,style:{...p,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0})),f=i(83509),h=i(47892),m=i(39301),y=i(8306),g=i(77975),b=i(6e3),v=i(26406),x=i(13784);let w=v.Ay.div.withConfig({componentId:"sc-812d6df7-0"})(["position:relative;display:flex;flex-direction:column;height:auto;min-height:12.5rem;width:100%;box-shadow:",";"," "," "," @media screen and (min-width:","){flex-direction:row;}"],({$center:e})=>e?"none":"rgba(0, 0, 0, 0.062) 0 0.125rem 0.5rem;",({$center:e,$hasVideo:t})=>e&&!t&&(0,v.AH)(["margin-inline:auto;max-width:calc(100vw - 2.5rem);width:62.5rem;"]),({$priority:e})=>!e&&(0,v.AH)(["margin-block:var(--spacing-medium);"]),({$priority:e})=>e&&(0,v.AH)(["margin-block-end:var(--spacing-medium);"]),x.f.desktopMedium),A=v.Ay.div.withConfig({componentId:"sc-812d6df7-1"})(["display:flex;flex-direction:column;justify-content:",";flex:",";width:100%;padding:",";padding-block-start:5rem;max-width:100%;"," @media screen and (min-width:","){max-inline-size:",";}"," h1{margin-block-end:var(--spacing-small);}"],({$center:e})=>e&&"center",({$center:e})=>!e&&"1 0 50%",({$center:e})=>!e&&"5vw",({$hasVideo:e})=>e&&(0,v.AH)(["z-index:1;"]),x.f.desktopMedium,({$image:e})=>e?"100%":"50%",({$center:e})=>e&&(0,v.AH)(["> *{align-self:center;}"])),j=v.Ay.div.withConfig({componentId:"sc-812d6df7-2"})(["aspect-ratio:16 / 9;position:relative;height:auto;width:100%;margin-block-start:",";@media screen and (min-width:","){margin:",";}"],({$margin:e})=>e&&"var(--spacing-medium)",x.f.desktopMedium,({$margin:e})=>e&&"var(--spacing-medium)"),k=v.Ay.div.withConfig({componentId:"sc-812d6df7-3"})(["width:100%;display:flex;flex-direction:column;align-items:stretch;> div:first-child{padding:5vw;max-inline-size:800px;}@media screen and (min-width:","){flex-direction:row;}"],x.f.desktopMedium),E=v.Ay.div.withConfig({componentId:"sc-812d6df7-4"})(["position:relative;width:100%;aspect-ratio:16 / 9;background-color:var(--color-black);video{position:absolute;inset:0;object-fit:cover;block-size:100%;inline-size:100%;}@media screen and (min-width:","){flex:1 0 50%;min-inline-size:0;}"],x.f.desktopMedium),P=o()(()=>Promise.all([i.e(6362),i.e(3742)]).then(i.bind(i,23742)).then(e=>e.DatoImage),{loadableGenerated:{webpack:()=>[23742]},ssr:!1}),_=({children:e,...t})=>(0,r.jsx)(g.D,{...t,styleType:"header4",type:"h2",children:e}),C=({centerContent:e,description:t,hideBlock:i,hideTitle:l,image:o,imageLoad:a,priority:d,scrollId:c,title:p,useVideo:v,video:x})=>{let C=(0,n.useRef)(null),{shared:S}=(0,f.P)(),{isPlaying:R,onPause:$,onPlay:I,toggle:z}=(0,y.p)(C);if(i||!o&&!p&&!x)return null;let T=c?.replace(/[^a-zA-Z0-9-_:.]/g,"")||void 0;return(0,r.jsxs)(w,{$center:!!e,$priority:d,id:T,children:[!v&&(0,r.jsxs)(A,{$center:!!e,$image:!!o,children:[p&&(0,r.jsx)(g.D,{styleType:[{styleType:"header3"},{breakpoint:"mobileMax",styleType:"header2"}],type:"h1",children:p}),t&&(0,r.jsx)(b.o,{options:{overrides:{span:_}},children:t})]}),o?.responsiveImage?.src&&!v?(0,r.jsx)(j,{children:(0,r.jsx)(s(),{alt:o?.alt||"image",blurDataURL:o?.responsiveImage?.base64||"",fill:!0,loader:m.P,placeholder:"blur",priority:d,sizes:"50vw",src:o?.responsiveImage?.src||o.url})}):o?.url&&!x&&(0,r.jsx)(j,{$margin:!0,children:(0,r.jsx)(P,{image:a,priority:d,sizes:"50vw"})}),v&&(0,r.jsxs)(k,{children:[(0,r.jsxs)(A,{$center:!!e,$hasVideo:!!v,children:[p&&!l&&(0,r.jsx)(g.D,{styleType:[{styleType:"header3"},{breakpoint:"mobileMax",styleType:"header2"}],type:"h1",children:p}),p&&l&&(0,r.jsx)(u,{children:(0,r.jsx)(g.D,{styleType:[{styleType:"header3"},{breakpoint:"mobileMax",styleType:"header2"}],type:"h1",children:p})}),t&&(0,r.jsx)(b.o,{options:{overrides:{span:_}},children:t})]}),(0,r.jsxs)(E,{children:[(0,r.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,onPause:$,onPlay:I,playsInl
1ine:!0,poster:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ref:C,children:(0,r.jsx)("source",{src:x?.url})}),(0,r.jsx)(h.v,{isPlaying:R,kind:"video",onClick:z,pauseLabel:S?.pauseVideoLabel,placement:"end",playLabel:S?.playVideoLabel})]})]})]})}},37164:(e,t,i)=>{"use strict";i.d(t,{Y:()=>n,y:()=>l});var r=i(41695);let n=(0,r.createContext)(null),l=e=>{let t=(0,r.useContext)(n),i=(0,r.useId)(),l=t?.setVideoPlaying;return(0,r.useEffect)(()=>{if(l)return l(i,e),()=>l(i,!1)},[i,e,l]),t}},41619:(e,t,i)=>{"use strict";i.d(t,{TL:()=>s});var r,n=i(41695),l=i(63129),o=Object.defineProperty,a=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e){let t=n.forwardRef((t,i)=>{let{children:r,...o}=t,a=null,s=!1,d=[];m(r)&&"function"==typeof v&&(r=v(r._payload)),n.Children.forEach(r,e=>{if(f(e)){s=!0;let t="child"in e.props?e.props.child:e.props.children;m(t)&&"function"==typeof v&&(t=v(t._payload)),a=c(e,t),d.push(a?.props?.children)}else d.push(e)}),a?a=n.cloneElement(a,void 0,d):!s&&1===n.Children.count(r)&&n.isValidElement(r)&&(a=r);let h=a?u(a):void 0,y=(0,l.s)(i,h);if(!a){if(r||0===r)throw Error(s?b(e):g(e));return r}let x=p(o,a.props??{});return a.type!==n.Fragment&&(x.ref=i?y:h),n.cloneElement(a,x)});return t.displayName=`${e}.Slot`,t}a(s,"createSlot");var d=Symbol.for("radix.slottable");a(function(e){let t=a(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=d,t},"createSlottable");var c=a((e,t)=>{if("child"in e.props){let t=e.props.child;return n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null}return n.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function p(e,t){let i={...t};for(let r in t){let n=e[r],l=t[r];/^on[A-Z]/.test(r)?n&&l?i[r]=(...e)=>{let t=l(...e);return n(...e),t}:n&&(i[r]=n):"style"===r?i[r]={...n,...l}:"className"===r&&(i[r]=[n,l].filter(Boolean).join(" "))}return{...e,...i}}function u(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(i=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function f(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}a(p,"mergeProps"),a(u,"getElementRef"),a(f,"isSlottable");var h=Symbol.for("react.lazy");function m(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&y(e._payload)}function y(e){return"object"==typeof e&&null!==e&&"then"in e}a(m,"isLazyComponent"),a(y,"isPromiseLike");var g=a(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),b=a(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),v=(r||(r=i.t(n,2)))[" use ".trim().toString()]},47892:(e,t,i)=>{"use strict";i.d(t,{v:()=>s});var r=i(64255),n=i(58266),l=i(78696),o=i.n(l);let a={slideshow:{pause:"Pause slideshow",play:"Play slideshow"},video:{pause:"Pause video",play:"Play video"}}
1,s=({className:e,isPlaying:t,kind:i,pauseLabel:l,placement:s="start",playLabel:p,...u})=>{let f=t?l:p,h=a[i][t?"pause":"play"];return(0,r.jsx)("button",{...u,"aria-label":f||h,className:(0,n.$)(o().toggle,o()[s],e),lang:f?void 0:"en",type:"button",children:t?(0,r.jsx)(d,{}):(0,r.jsx)(c,{})})},d=()=>(0,r.jsx)("svg",{"aria-hidden":!0,focusable:!1,height:"16",viewBox:"0 0 16 16",width:"16",children:(0,r.jsx)("path",{d:"M3 2h4v12H3zM9 2h4v12H9z",fill:"currentColor"})}),c=()=>(0,r.jsx)("svg",{"aria-hidden":!0,focusable:!1,height:"16",viewBox:"0 0 16 16",width:"16",children:(0,r.jsx)("path",{d:"M4 2l10 6-10 6z",fill:"currentColor"})})},63129:(e,t,i)=>{"use strict";i.d(t,{s:()=>s});var r=i(41695),n=Object.defineProperty,l=(e,t)=>n(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let i=!1,r=e.map(e=>{let r=o(e,t);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof i?i():o(e[t],null)}}}}function s(...e){return r.useCallback(a(...e),e)}l(o,"setRef"),l(a,"composeRefs"),l(s,"useComposedRefs")},71301:(e,t,i)=>{"use strict";i.d(t,{sG:()=>s});var r=i(41695),n=i(13722),l=i(41619),o=i(64255),a=Object.defineProperty,s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let i=(0,l.TL)(`Primitive.${t}`),n=r.forwardRef((e,r)=>{let{asChild:n,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(n?i:t,{...l,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});a(function(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0})},78696:e=>{e.exports={toggle:"media-toggle_toggle__Sb4Mc",start:"media-toggle_start__J6Lf1",end:"media-toggle_end__LSvVK"}}}]);
2//# sourceMappingURL=3828.b4c8ac471810b68a.js.map

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.