PageSourceSearch

https://hovdala.se/webapp-resource/4.78e9542b18d825ff32a2de4/360.3…/1768210918813/webapp-assets.js

js hovdala.se collected 2026-09-26 15:26:28 UTC 7,183 bytes, 2 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'hhk-toc-menu|2.0.0',bundle: {"en":{"name":"Name","settings":"Settings","hello":"Hello"},"sv":{"name":"Namn","settings":"Inställningar","hello":"Hej"}}});
2AppRegistry.registerModule({applicationId:'hhk-toc-menu|2.0.0',path:'/main',module:function(define){'use strict';define(["react","react-dom"],function(e,t){return function(){var o={342:function(e,t,o){"use strict";var n=o(398);t.H=n.createRoot,n.hydrateRoot},352:function(e,t,o){e.exports=o(834)()},398:function(e){"use strict";e.exports=t},489:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},834:function(e,t,o){"use strict";var n=o(489);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,l,c){if(c!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return o.PropTypes=o,o}},959:function(t){"use strict";t.exports=e}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var l=n[e]={exports:{}};return o[e](l,l.exports,r),l.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return function(){"use strict";r.r(l),r.d(l,{default:function(){return T}});var e=r(959),t=r.n(e),o=r(342),n=r(352),c=r.n(n);const i=({menuItems:e})=>(console.log("menuItems:",e),t().createElement(t().Fragment,null,e.length>1&&t().createElement("ul",{className:"hhk-toc__list"},e.map(e=>t().createElement("li",null,t().createElement("a",{className:"normal hhk-toc__list-link",href:e.id},e.title))))));i.propTypes={menuItems:c().array};var a=i,s=r(398),u=r.n(s);const h=({name:e,menuItems:o})=>u().createPortal(t().createElement("div",{class:"hhk-toc hhk-toc__mobile"},null!=o&&o.length>0,t().createElement("a",{class:"hhk-toc__dropdown-btn","aria-expanded":"false","data-env-collapse":"",role:"button","aria-controls":"hhkMobileTocList",href:"#hhkMobileTocList"},t().createElement("div",{className:"hhk-toc__dropdown-btn-text"},e)),t().createElement("ul",{id:"hhkMobileTocList",class:"hhk-toc__mobile-list env-collapse"},o.map(e=>t().createElement("li",null,t().createElement("a",{className:"hhk-toc__list-link hhk-toc__mobile-list-link normal",href:e.id},e.title))))),document.querySelector("#Ingress + .sv-text-portlet-content").parentElement||document.querySelector(".hhk-main-content h1").parentElement);h.propTypes={menuItems:c().array};var d=h;let m=null,p=null,f=null,y=!1,_=null;const k=()=>{const e=document.querySelector(".hhk-toc__dropdown-btn-text"),t=document.querySelectorAll(".hhk-main-content h2:not(.env-collapse h2)"),o=[],n=window.matchMedia("(min-width: 991px)").matches?250:60;Array.prototype.forEach.call(t,e=>{o[e.id]=e.offsetTop+n});let r=document.documentElement.scrollTop||document.body.scrollTop;if(r+=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)/8,o)for(let t in o)if(o[t]<=r){let o=document.querySelectorAll(".hhk-toc .active");o&&o.forEach(e=>{e.classList.remove("active")});let n=document.querySelectorAll(".hhk-toc a[href$="+t+"]");n&&n.forEach(t=>{t.classList.add("active");let o=t.innerHTML;e.textContent=o})}b()},v=e=>{"static"===e.style.position&&(e.style.position="relative")},g=e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),o=e.ownerDocument.defaultView;return{top:t.top+o.pageYOffset,left:t.left+o.pageXOffset}},b=()=>{const e=document.querySelector(".hhk-toc__mobile"),t=document.querySelector(".hhk-toc__dropdown-btn"),o=document.querySelector(".hhk-toc__mobile-list");e&&(e.getBoundingClientRect().top<=0?(t.classList.add("hhk-toc__dropdown-btn--fixed"),o.classList.add("hhk-toc__mobile-list--fixed")):(t.classList.remove("hhk-toc__dropdown-btn--fixed"),o.classList.remove("hhk-toc__mobile-list--fixed")))},E=(e,t)=>{let o=g(e).top,n=Math.max(document.querySelector("html").scrollTop,document.body.scrollTop,document.documentElement.scrollTop);if(p=(e=>{let t=g(e);return document.querySelector("footer"),t.top,e.clientHeight,t.top+e.clientHeight})(t),null==m){const t=document.querySelector(".hhk-header").offsetHeight;m=g(e).top-t}null==f&&(f=e.clientHeight),n>o&&p>[o+f]&&(v(e),e.style.top=n-m+32+"px",n>p&&(e.style.top=p-m+32+"px")),n<o&&n>m&&(v(e),e.style.top=n-m+32+"px",n>p&&(e.style.top=p-m+32+"px")),n<o&&n<m&&(e=>{"relative"===e.style.position&&(e.style.position="static")})(e)},w=({name:o,isEditMode:n})=>{const[r,l]=(0,e.useState)(null);return(0,e.useEffect)(()=>{const e=document.querySelectorAll(".hhk-main-content .pagecontent h2");if(e){const t=[];
2e.forEach(e=>{let o=null,n=null;e.querySelector("a")?(o="item-"+([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)),e.setAttribute("id",o),n=e.querySelector("span:first-child").innerHTML):(n=e.innerHTML,o=e.id),t.push({id:"#"+o,title:n})}),l(t),n||(()=>{if(document.querySelector(".hhk-toc")){const e=document.querySelector(".hhk-toc__desktop"),t=document.querySelector(".pagecontent");window.onscroll=()=>{E(e,t),y||k(),clearTimeout(_),_=setTimeout(o,150)},window.onload=()=>{k(),b(),e.style.position="static"};let o=()=>{y=!1};document.addEventListener("click",o=>{if(!o.target.matches(".hhk-toc__list-link"))return;o.preventDefault();const n=o.target;$svjq("#hhkMobileTocList").envCollapse("hide");const r=document.querySelector(n.getAttribute("href")),l=n.textContent;y=!0,document.querySelectorAll(".hhk-toc .active").forEach(e=>{e.classList.remove("active")}),n.classList.add("active");const c=document.querySelector(".hhk-toc__dropdown-btn-text"),i=o.target.matches(".hhk-toc__mobile-list-link")?60:0;((e,t)=>{const o=e.toFixed(),n=function(){window.pageYOffset.toFixed()===o&&(window.removeEventListener("scroll",n),t())};window.addEventListener("scroll",n),n(),window.scrollTo({top:e,behavior:"smooth"})})((e=>{var t=0;if(e.offsetParent){do{t+=e.offsetTop}while(e=e.offsetParent);return[t]}})(r)-i,()=>{o.target.matches(".hhk-toc__mobile-list-link")?b():k(),E(e,t),c.textContent=l})})}})()}},[]),t().createElement("div",{className:"hhk-toc hhk-toc__desktop"},null!=r&&r.length>1?t().createElement("h2",null,o):null,t().createElement("div",{class:"hhk-toc__wrapper ",role:"navigation","aria-label":o},r&&t().createElement(a,{menuItems:r})),!n&&r&&r.length>0&&t().createElement(d,{name:o,menuItems:r}))};w.propTypes={name:c().string};var S=w,T=(t,n)=>{(0,o.H)(n).render(e.createElement(S,t))}}(),l}()});}});

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.