PageSourceSearch

https://banedanmark.dk/dist/js/870-db23e471.pkg.js

js banedanmark.dk collected 2026-10-02 20:05:29 UTC 3,092 bytes, 1 lines download raw bytes

1(self.webpackChunkfrontend_build_tools=self.webpackChunkfrontend_build_tools||[]).push([[870],{5613:function(n,e,t){var o,s;o=[t(6893)],void 0===(s=function(n){var e={};return n.installTo(e),n.installTo(window),e}.apply(e,o))||(n.exports=s)},2870:function(n,e,t){var o,s;o=[t(5613),t],void 0===(s=function(n,e){var o,s=[],r="data-component";o=new function(){var n={};this.increase=function(e){n[e]?n[e]++:n[e]=1},this.decrease=function(e){n[e]--,n[e]}};var a=function(n){this.el=n.el,this.componentName=n.componentName,this.state=0};a.prototype.refresh=function(){this.el.getAttribute(r)!==this.componentName&&(2===this.state&&this.stop(),this.componentName=this.el.getAttribute(r),this.start())},a.prototype.start=function(){if(1===this.state)throw new Error("Error trying to start a component in placeholder where another component is pending start is not possible.");this.state=1;var e=this;o.increase(e.componentName),Promise.all([t.e(736),t.e(154)]).then((function(){var o=[t(6154)("./"+e.componentName+"/main.js")];(function(t){var o,r;try{new t(e.el)}catch(n){console.log("========="),console.log(n),console.log({Me:e,Element:e.el,"Component path":(o=e.componentName,r=o.lastIndexOf("/"),-1!==r?o.substring(0,r)+"/components/"+o.substring(r+1)+"/main":"components/"+o+"/main"),"Component name":e.componentName}),console.log("-----------")}e.state=2,function(){for(var e=0;e<s.length;e++)if(2!==s[e].state)return;n.pubsub.resume()}()}).apply(null,o)})).catch(t.oe)},a.prototype.stop=function(){this.el.innerHTML="",this.state=3,o.decrease(this.componentName)},n.subscribe("loader:refresh",(function(){var e,t,o,i,l=s.slice(0);if((i=document.querySelectorAll("[data-component]")).length){n.pubsub.pause(),function(n,e,t){for(var o=0;o<n.length;o++)e.call(undefined,o,n[o])}(i,(function(n,i){if(t=function(n){for(var e=0;e<s.length;e++)if(s[e].el===n)return s[e];return null}(i))l.splice(l.indexOf(t),1),t.refresh();else for(var c=0,u=(o=i.getAttribute(r).split(" ")).length;c<u;c++)(e=new a({el:i,componentName:o[c]})).start(),s.push(e)}));for(var c=0;c<l.length;c++)(t=l[c]).stop(),s.splice(s.indexOf(t),1)}}))}.apply(e,o))||(n.exports=s)},6893:function(n,e,t){var o;o=function(){var n,e,t,o,s,r,a,i=(n=!1,e=[],r=function(){n=!1;for(var t=0;t<e.length;t++)a.apply(a,e[t]);e=[]},a=function(t){if(!n){if(!i.channels[t])return!1;for(var o=Array.prototype.slice.call(arguments,1),s=0,r=i.channels[t].length;s<r;s++){var a=i.channels[t][s];a.callback.apply(a.context,o)}return this}e.push(Array.prototype.slice.apply(arguments))},{channels:{},publish:a,subscribe:t=function(n,e,t){return i.channels[n]||(i.channels[n]=[]),i.channels[n].push({context:t||this,callback:e}),this},unsubscribe:o=function(n,e,t){if(i.channels[n]){if(e)for(var o=0,s=i.channels[n].length;o<s;o++)(i.channels[n][o].context===t||this&&i.channels[n][o].callback===e)&&i.channels[n].splice(o,1);else delete i.channels[n];return this}},pause:s=function(){n=!0},resume:r,installTo:function(n){n.subscribe=t,n.unsubscribe=o,n.publish=a,n.pubsub={pause:s,resume:r}}});return i}.call(e,t,e,n),void 0===o||(n.exports=o)}}]);

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.