PageSourceSearch

https://www.norema.no/gui/dist/cmp-blocks-heroblock-heroblock.js

js norema.no collected 2026-10-10 01:49:33 UTC 2,285 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkathena=globalThis.webpackChunkathena||[]).push([[9909],{9070:(e,t,o)=>{o.r(t),o.d(t,{HeroBlock:()=>i});var n=o(538);const r={name:"a-heroblock",props:{anchorTarget:String},data:()=>({isMounted:!1}),methods:{resizeIframe(e){const t=e.contentWindow.document.body.scrollHeight;e.style.height=`${t}px`},scrollToAchorLink(){const e=document.getElementById(this.anchorTarget);if(e){const t=e.offsetTop+e.offsetHeight;window.scrollTo({top:t,behavior:"smooth"})}}},mounted(){let e=this,t=this.$refs.hero.querySelector(".heroblock__iframe"),o=[...this.$refs.hero.querySelectorAll(".heroblock__container video")];setTimeout((()=>{e.isMounted=!0}),1e3),t&&(window.addEventListener("load",(()=>{e.resizeIframe(t)})),window.addEventListener("resize",(()=>{e.resizeIframe(t)}))),o&&o.forEach((e=>{e.parentNode.classList.add("heroblock__container--video"),e.setAttribute("aria-hidden","true")}))}};const s=(0,o(1900).Z)(r,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"hero",staticClass:"heroblock__wrapper",class:{"has-loaded":e.isMounted}},[e._t("default"),e._v(" "),e.anchorTarget?o("button",{staticClass:"heroblock__scrollIndicator",on:{click:e.scrollToAchorLink}},[e._m(0)]):e._e()],2)}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"heroblock__scrollIndicator-inner"},[t("i",{staticClass:"icon icon-expand-more",attrs:{"aria-hidden":"true"}})])}],!1,null,null,null).exports,i=n.default.component(s.name,s)},1900:(e,t,o)=>{function n(e,t,o,n,r,s,i,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}o.d(t,{Z:()=>n})}}]);

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.