PageSourceSearch

https://www.uu.se/webapp-resource/2.4c73ddc2178d03ec3374a31/360.1e…/1790231304519/webapp-assets.js

js uu.se collected 2026-09-27 20:54:37 UTC 13,712 bytes, 3 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'se.uu.uit.webb.webapp-crisis-message-banner|1.4.0',bundle: {}});
2AppRegistry.registerModule({applicationId:'se.uu.uit.webb.webapp-crisis-message-banner|1.4.0',path:'/main',module:function(define){'use strict';define(["router","app"],function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=n(e);function r(){}(o.default?.portletId||"preview").replace(".","_"),document.documentElement.classList.contains("sv-edit-mode");const l=t=>t;function i(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(i)}function c(t){return"function"==typeof t}function u(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}const d="undefined"!=typeof window;let f=d?()=>window.performance.now():()=>Date.now(),h=d?t=>requestAnimationFrame(t):r;const p=new Set;function m(t){p.forEach(e=>{e.c(t)||(p.delete(e),e.f())}),0!==p.size&&h(m)}let g=!1;function _(t,e,n,o){for(;t<e;){const r=t+(e-t>>1);n(r)<=o?t=r+1:e=r}return t}function b(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function $(t){const e=x("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(b(t),e),e.sheet}function v(t,e){if(g){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const o=e[n];void 0!==o.claim_order&&t.push(o)}e=t}const n=new Int32Array(e.length+1),o=new Int32Array(e.length);n[0]=-1;let r=0;for(let t=0;t<e.length;t++){const l=e[t].claim_order,i=(r>0&&e[n[r]].claim_order<=l?r+1:_(1,r,t=>e[n[t]].claim_order,l))-1;o[t]=n[i]+1;const a=i+1;n[a]=t,r=Math.max(a,r)}const l=[],i=[];let a=e.length-1;for(let t=n[r]+1;0!=t;t=o[t-1]){for(l.push(e[t-1]);a>=t;a--)i.push(e[a]);a--}for(;a>=0;a--)i.push(e[a]);l.reverse(),i.sort((t,e)=>t.claim_order-e.claim_order);for(let e=0,n=0;e<i.length;e++){for(;n<l.length&&i[e].claim_order>=l[n].claim_order;)n++;const o=n<l.length?l[n]:null;t.insertBefore(i[e],o)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function y(t,e,n){g&&!n?v(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function E(t){return document.createTextNode(t)}function N(){return E(" ")}function S(){return E("")}function j(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function I(t){return Array.from(t.childNodes)}function M(t,e,n,o,r=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const l=(()=>{for(let o=t.claim_info.last_index;o<t.length;o++){const l=t[o];if(e(l)){const e=n(l);return void 0===e?t.splice(o,1):t[o]=e,r||(t.claim_info.last_index=o),l}}for(let o=t.claim_info.last_index-1;o>=0;o--){const l=t[o];if(e(l)){const e=n(l);return void 0===e?t.splice(o,1):t[o]=e,r?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=o,l}}return o()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function k(t,e,n){return function(t,e,n,o){return M(t,t=>t.nodeName===e,t=>{const e=[];for(let o=0;o<t.attributes.length;o++){const r=t.attributes[o];n[r.name]||e.push(r.name)}e.forEach(e=>t.removeAttribute(e))},()=>o(e))}(t,e,n,x)}function A(t,e){return M(t,t=>3===t.nodeType,t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n},()=>E(e),!0)}function C(t){return A(t," ")}function O(t,e){e=""+e,t.data!==e&&(t.data=e)}function T(t,e,n){t.classList.toggle(e,!!n)}const D=new Map;let B,R=0;function U(t,e,n,o,r,l,i,a=0){const s=16.666/o;let c="{\n";for(let t=0;t<=1;t+=s){const o=e+(n-e)*l(t);c+=100*t+`%{${i(o,1-o)}}\n`}const u=c+`100% {${i(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${a}`,f=b(t),{stylesheet:h,rules:p}=D.get(f)||function(t,e){const n={stylesheet:$(e),rules:{}};return D.set(t,n),n}(f,t);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${o}ms linear ${r}ms 1 both`,R+=1,d}function q(t,e){const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),r=n.length-o.length;r&&(t.style.animation=o.join(", "),R-=r,R||h(()=>
2{R||(D.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&w(e)}),D.clear())}))}function G(t){B=t}const L=[],P=[];let V=[];const z=[],H=Promise.resolve();let W=!1;function F(t){V.push(t)}const J=new Set;let K,Q=0;function X(){if(0!==Q)return;const t=B;do{try{for(;Q<L.length;){const t=L[Q];Q++,G(t),Y(t.$$)}}catch(t){throw L.length=0,Q=0,t}for(G(null),L.length=0,Q=0;P.length;)P.pop()();for(let t=0;t<V.length;t+=1){const e=V[t];J.has(e)||(J.add(e),e())}V.length=0}while(L.length);for(;z.length;)z.pop()();W=!1,J.clear(),G(t)}function Y(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(F)}}function Z(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:o})}(`${e?"intro":"outro"}${n}`))}const tt=new Set;let et;function nt(t,e){t&&t.i&&(tt.delete(t),t.i(e))}function ot(t,e,n,o){if(t&&t.o){if(tt.has(t))return;tt.add(t),et.c.push(()=>{tt.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}const rt={duration:0};function lt(t,e,n,o){let i,a=e(t,n,{direction:"both"}),u=o?0:1,d=null,g=null,_=null;function b(){_&&q(t,_)}function $(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function v(e){const{delay:n=0,duration:o=300,easing:c=l,tick:v=r,css:y}=a||rt,w={start:f()+n,b:e};e||(w.group=et,et.r+=1),"inert"in t&&(e?void 0!==i&&(t.inert=i):(i=t.inert,t.inert=!0)),d||g?g=w:(y&&(b(),_=U(t,u,e,o,n,c,y)),e&&v(0,1),d=$(w,o),F(()=>Z(t,e,"start")),function(t){let e;0===p.size&&h(m),new Promise(n=>{p.add(e={c:t,f:n})})}(e=>{if(g&&e>g.start&&(d=$(g,o),g=null,Z(t,d.b,"start"),y&&(b(),_=U(t,u,d.b,d.duration,0,c,a.css))),d)if(e>=d.end)v(u=d.b,1-u),Z(t,d.b,"end"),g||(d.b?b():--d.group.r||s(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;u=d.a+d.d*c(t/d.duration),v(u,1-u)}return!(!d&&!g)}))}return{run(t){c(a)?(K||(K=Promise.resolve(),K.then(()=>{K=null})),K).then(()=>{a=a({direction:t?"in":"out"}),v(t)}):v(t)},end(){b(),d=g=null}}}function it(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];V.forEach(o=>-1===t.indexOf(o)?e.push(o):n.push(o)),n.forEach(t=>t()),V=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function at(t,e){-1===t.$$.dirty[0]&&(L.push(t),W||(W=!0,H.then(X)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function st(t,e,n,o,l,u,d=null,f=[-1]){const h=B;G(t);const p=t.$$={fragment:null,ctx:[],props:u,update:r,not_equal:l,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(h?h.$$.context:[])),callbacks:a(),dirty:f,skip_bound:!1,root:e.target||h.$$.root};d&&d(p.root);let m=!1;if(p.ctx=n?n(t,e.props||{},(e,n,...o)=>{const r=o.length?o[0]:n;return p.ctx&&l(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),m&&at(t,e)),n}):[],p.update(),m=!0,s(p.before_update),p.fragment=!!o&&o(p.ctx),e.target){if(e.hydrate){g=!0;const t=I(e.target);p.fragment&&p.fragment.l(t),t.forEach(w)}else p.fragment&&p.fragment.c();e.intro&&nt(t.$$.fragment),function(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),F(()=>{const e=t.$$.on_mount.map(i).filter(c);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]}),r.forEach(F)}(t,e.target,e.anchor),g=!1,X()}G(h)}class ct{$$=void 0;$$set=void 0;$destroy(){it(this,1),this.$destroy=r}$on(t,e){if(!c(e))return r;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const ut="critical",dt="warning";function ft(t,{delay:e=0,duration:n=400,easing:o=l}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:o,css:t=>"opacity: "+t*r}}let ht=o.default?.locale||"en",pt=ht;function mt(t,e,n=void 0){const o=n=>String.prototype.split.call(e,n).filter(Boolean).reduce((t,e)=>null!=t?t[e]:t,t),r=o(/[,[\]]+?/)||o(/[,[\].]+?/);
2return void 0===r||r===t?n:r}function gt(t){const e=Object.keys(t);if(0===e.length||e.includes(ht))return ht;const n=ht.split("-")[0],o=e.find(t=>t===n)||e.find(t=>t.startsWith(`${n}-`));return o||((!t.en?!!t.sv&&"sv":"en")||e[0])}function _t(t,e,n={}){let r=mt(t[pt],e);return null==r?(console.warn(`[@soleil-se/i18n] No translation is avaliable for '${e}'${o.default?.webAppId?` in app ${o.default.webAppId}.`:"."}`),e):(Object.keys(n).forEach(t=>{const e=n[t],o=new RegExp(`{${t}}`,"g");r=r.replace(o,e)}),r)}var bt=function(t){let e=t;pt=gt(e);const n=(t,n={})=>_t(e,t,n);return n.addMessages=(t,o)=>(e={...e,[t]:o},pt=gt(e),n),n.getMessages=()=>e[pt],n.localeExists=()=>!!e[pt],n.messageExists=t=>!!mt(e[pt],t),n.translate=(t,n={})=>_t(e,t,n),n}({en:{close:"Close",globalSettings:"Global settings",metadataTargetGroup:"Metadata for target group",moreInformation:"More information"},sv:{close:"Stäng",globalSettings:"Globala inställningar",metadataTargetGroup:"Metadata för målgrupp",moreInformation:"Mer information"}});function $t(t){let e,n,o,r,l,i,a,s,c,u,d,f,h,p,m,g,_=t[0].title+"",b=t[0].preamble+"",$=t[0].hasText&&vt(t),S=t[0].level===dt&&yt(t);return{c(){e=x("section"),n=x("div"),o=x("div"),r=x("div"),l=x("div"),i=x("h2"),a=E(_),c=N(),u=x("p"),d=E(b),h=N(),$&&$.c(),p=N(),S&&S.c(),this.h()},l(t){e=k(t,"SECTION",{class:!0,"aria-labelledby":!0});var s=I(e);n=k(s,"DIV",{class:!0});var f=I(n);o=k(f,"DIV",{class:!0});var m=I(o);r=k(m,"DIV",{class:!0});var g=I(r);l=k(g,"DIV",{});var v=I(l);i=k(v,"H2",{id:!0,class:!0,lang:!0});var y=I(i);
2a=A(y,_),y.forEach(w),c=C(v),u=k(v,"P",{lang:!0,class:!0});var x=I(u);d=A(x,b),x.forEach(w),h=C(v),$&&$.l(v),v.forEach(w),p=C(g),S&&S.l(g),g.forEach(w),m.forEach(w),f.forEach(w),s.forEach(w),this.h()},h(){j(i,"id","section-header-module-jumbotron-alert"),j(i,"class","jumbotron-alert-header"),j(i,"lang",s=t[0].lang),j(u,"lang",f=t[0].lang),j(u,"class","app-2hwv7w"),j(r,"class","jumbotron-text d-flex align-items-start"),j(o,"class","d-flex justify-content-center"),j(n,"class","container-fluid jumbotron jumbotron-fluid"),T(n,"jumbotron-alert",t[0].level===ut),T(n,"jumbotron-warning",t[0].level===dt),j(e,"class","component app-2hwv7w"),j(e,"aria-labelledby","section-header-module-jumbotron-alert")},m(t,s){y(t,e,s),v(e,n),v(n,o),v(o,r),v(r,l),v(l,i),v(i,a),v(l,c),v(l,u),v(u,d),v(l,h),$&&$.m(l,null),v(r,p),S&&S.m(r,null),g=!0},p(t,e){(!g||1&e)&&_!==(_=t[0].title+"")&&O(a,_),(!g||1&e&&s!==(s=t[0].lang))&&j(i,"lang",s),(!g||1&e)&&b!==(b=t[0].preamble+"")&&O(d,b),(!g||1&e&&f!==(f=t[0].lang))&&j(u,"lang",f),t[0].hasText?$?$.p(t,e):($=vt(t),$.c(),$.m(l,null)):$&&($.d(1),$=null),t[0].level===dt?S?S.p(t,e):(S=yt(t),S.c(),S.m(r,null)):S&&(S.d(1),S=null),(!g||1&e)&&T(n,"jumbotron-alert",t[0].level===ut),(!g||1&e)&&T(n,"jumbotron-warning",t[0].level===dt)},i(t){g||(t&&F(()=>{g&&(m||(m=lt(e,ft,{duration:200},!0)),m.run(1))}),g=!0)},o(t){t&&(m||(m=lt(e,ft,{duration:200},!1)),m.run(0)),g=!1},d(t){t&&w(e),$&&$.d(),S&&S.d(),t&&m&&m.end()}}}function vt(t){let e,n,o,r=bt("moreInformation")+"";return{c(){e=x("a"),n=E(r),this.h()},l(t){e=k(t,"A",{href:!0});var o=I(e);n=A(o,r),o.forEach(w),this.h()},h(){j(e,"href",o=t[1]+"?query="+t[0].id)},m(t,o){y(t,e,o),v(e,n)},p(t,n){3&n&&o!==(o=t[1]+"?query="+t[0].id)&&j(e,"href",o)},d(t){t&&w(e)}}}function yt(t){let e,n,o;return{c(){e=x("button"),this.h()},l(t){e=k(t,"BUTTON",{class:!0,"aria-label":!0,type:!0}),I(e).forEach(w),this.h()},h(){j(e,"class","is-remove-space-small-negative button-text button-icon button-compact icon-clear"),j(e,"aria-label",bt("close")),j(e,"type","button")},m(r,l){var i,a,s,c;y(r,e,l),n||(i=e,a="click",s=t[3],i.addEventListener(a,s,c),o=()=>i.removeEventListener(a,s,c),n=!0)},p:r,d(t){t&&w(e),n=!1,o()}}}function wt(t){let e,n=t[0]&&t[2]&&$t(t);return{c(){n&&n.c(),e=S()},l(t){n&&n.l(t),e=S()},m(t,o){n&&n.m(t,o),y(t,e,o)},p(t,[o]){t[0]&&t[2]?n?(n.p(t,o),5&o&&nt(n,1)):(n=$t(t),n.c(),nt(n,1),n.m(e.parentNode,e)):n&&(et={r:0,c:[],p:et},ot(n,1,1,()=>{n=null}),et.r||s(et.c),et=et.p)},i(t){nt(n)},o(t){ot(n)},d(t){t&&w(e),n&&n.d(t)}}}function xt(t,e,n){let{crisisMessage:o}=e,{detailsUri:r}=e;const l=`webapp-crisis-message-banner-${o?.id}`;let i=o&&(o.level===ut||o.level===dt&&sessionStorage.getItem(l)!==o.contentSnapshot);return t.$$set=t=>{"crisisMessage"in t&&n(0,o=t.crisisMessage),"detailsUri"in t&&n(1,r=t.detailsUri)},[o,r,i,function(){sessionStorage.setItem(l,o.contentSnapshot),n(2,i=!1)}]}class Et extends ct{constructor(t){super(),st(this,t,xt,wt,u,{crisisMessage:0,detailsUri:1})}}return(t,e)=>{!function(t,{target:e,props:n,intro:o=!1,hydrate:r=e.hasChildNodes()}={}){new t({hydrate:r,target:e,props:n,intro:o})}(Et,{props:t,target:e})}});
3}});

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.