PageSourceSearch

https://www.mdu.se/webapp-resource/4.25d886a116e44e69c7919bb8/360.…/1755002046495/webapp-assets.js

js mdu.se collected 2026-09-25 08:56:34 UTC 4,556 bytes, 97 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'puffkort-artikel|0.2.0',bundle: {"en":{"date":"Date","read-more":"Read more","read-more-about":"about","Aktuellt":"News","Porträtt":"Portrait","Reportage":"Reportage","article-type":"Article type"},"sv":{"date":"Datum","read-more":"Läs mer","read-more-about":"om","Aktuellt":"Aktuellt","Porträtt":"Porträtt","Reportage":"Reportage","article-type":"Artikeltyp"}}});
2AppRegistry.registerModule({applicationId:'puffkort-artikel|0.2.0',path:'/template/partials/card',module:function(define){define(function(require){var _=require('underscore');return function(obj){
3var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
4with(obj||{}){
5__p+='<div class="mdh-article-card mdh-article-card--'+
6((__t=( options.layout ))==null?'':__t)+
7'" style="background-color:'+
8((__t=( card.backgroundColor ))==null?'':__t)+
9'">\n    <!-- ';
10 if(options.showImage == 'true') { 
11__p+='\n    <div class="mdh-article-card__container">\n        <div class="mdh-article-card__image sv-image-portlet sv-portlet sv-skip-spacer">'+
12((__t=( card.imageHTML ))==null?'':__t)+
13'</div>\n    </div>\n	';
14 } 
15__p+=' -->\n    <div class="mdh-article-card__container">\n        <div class="mdh-article-card__content">\n            <ul class="mdh-icon-list mdh-icon-list--row">\n                <li class="mdh-icon-list__item">\n                    <i class="material-icons mdh-icon-list__icon" aria-hidden="true">event</i>\n                    <span class="show-for-sr">'+
16((__t=( translation.date ))==null?'':__t)+
17'</span>\n                    <span>'+
18((__t=( card.date ))==null?'':__t)+
19'</span>\n                </li>\n                <li class="mdh-icon-list__item">\n                    <i class="material-icons mdh-icon-list__icon" aria-hidden="true">label_outline</i>\n                    <span class="show-for-sr">'+
20((__t=( translation.articleType ))==null?'':__t)+
21'</span>\n                    <span>'+
22((__t=( card.articleType ))==null?'':__t)+
23'</span>\n                </li>\n            </ul>\n            <h2 class="mdh-h2">'+
24((__t=( card.heading ))==null?'':__t)+
25'</h2>\n            <p class="mdh-ingress">'+
26((__t=( card.preamble ))==null?'':__t)+
27'</p>\n            <a class="mdh-article-card__link" href="'+
28((__t=( card.url ))==null?'':__t)+
29'">'+
30((__t=( card.readMore ))==null?'':__t)+
31'<span class="show-for-sr"> '+
32((__t=( translation.readMoreAbout ))==null?'':__t)+
33' '+
34((__t=( card.heading ))==null?'':__t)+
35'</span></a>\n        </div>\n    </div>\n</div>';
36}
37return __p;
38};});}});
39AppRegistry.registerModule({applicationId:'puffkort-artikel|0.2.0',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){
40var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
41with(obj||{}){
42__p+='<div id="'+
43((__t=( appContext.getWebAppNamespace('app') ))==null?'':__t)+
44'">\n	<!-- Up the quality of your app by server render placeholders to later seamlessly be replaced by the VUE instance! -->\n	'+
45((__t=( renderPartial('card') ))==null?'':__t)+
46'\n</div>\n\n<!--SCRIPT_TAG_TO_JS_FILE--><script src="'+
47((__t=( getResourceUrl('vue/app.68833c8c.js') ))==null?'':__t)+
48'"></script>\n';
49}
50return __p;
51};});}});
52AppRegistry.registerModule({applicationId:'puffkort-artikel|0.2.0',path:'/main',module:function(define){'use strict';define(function(require) {
53	'use strict';
54
55	var _ = require('underscore');
56	var Component = require('Component');
57	var template = require('/template/main');
58
59	return Component.extend({
60		template: template,
61		// Initialize the VUE app!
62		onAttached: function() {
63			var appId = this._templateFunctions().appContext.getWebAppNamespace(
64				'app'
65			);
66			// A bugg in SiteVision crashes the browser tab if big Vue apps are rendered in edit mode. 
67			// This prevents the vue client to be rendered in edit mode.
68			if(!this.state.isEditMode) {
69				window.PUFF_ARTIKEL(document.querySelector('#' + appId), this.state);
70			}
71		},
72		filterState: function(state) {
73			return _.extend({}, state);
74		},
75		templateFunctions: function() {
76			var _this = this;
77
78			return {
79				renderPartial: function(partialName, data) {
80					var template = require('/template/partials/' + partialName);
81					if (template) {
82						if (data) {
83							return _this.renderTemplate(template, {
84								data: data
85							});
86						} else {
87							return _this.renderTemplate(template, _this.state);
88						}
89					} else {
90						return 'No partial template found';
91					}
92				}
93			};
94		}
95	});
96});
97}});

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.