PageSourceSearch

https://vellinge.se/webapp-resource/2.11f87c61199c8baf65169eb/360.…/1764752797917/webapp-assets.js

js vellinge.se collected 2026-09-24 09:55:17 UTC 31,285 bytes, 3 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'vel-menu|1.0.0',bundle: {"en":{"settings":"Settings","menu":"Menu","closeMenu":"Close","submenuAriaLabel":"Menu for"},"sv":{"settings":"Inställningar","menu":"Meny","closeMenu":"Stäng","submenuAriaLabel":"Menu för"}}});
2AppRegistry.registerModule({applicationId:'vel-menu|1.0.0',path:'/main',module:function(define){'use strict';/*! For license information please see main.js.LICENSE.txt */
3define(["i18n","react","react-dom","requester","router"],function(e,t,n,r,o){return function(){var i={98:function(e,t,n){"use strict";n.r(t),n.d(t,{focusable:function(){return O},getTabIndex:function(){return f},isFocusable:function(){return k},isTabbable:function(){return E},tabbable:function(){return w}});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],o=r.join(","),i="undefined"==typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!i&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},s=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&s(e.parentNode)},c=function(e,t,n){if(s(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r.filter(n)},l=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var u=i.shift();if(!s(u,!1))if("SLOT"===u.tagName){var c=u.assignedElements(),d=c.length?c:u.children,f=l(d,!0,n);
vendor: 4,513 bytes, line 3
3n.flatten?r.push.apply(r,f):r.push({scopeParent:u,candidates:f})}else{a.call(u,o)&&n.filter(u)&&(t||!e.includes(u))&&r.push(u);var p=u.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(u),v=!s(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(u));if(p&&v){var b=l(!0===p?u.children:p.children,!0,n);n.flatten?r.push.apply(r,b):r.push({scopeParent:u,candidates:b})}else i.unshift.apply(i,u.children)}}return r},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},v=function(e){return"INPUT"===e.tagName},b=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},h=function(e,t){return!(t.disabled||s(t)||function(e){return v(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,c=u(e);if(s&&!s.shadowRoot&&!0===r(s))return b(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=i}if(function(e){var t,n,r,o,i=e&&u(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var c,l,d;s=!(null===(l=a=null===(c=i=u(a))||void 0===c?void 0:c.host)||void 0===l||null===(d=l.ownerDocument)||void 0===d||!d.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},m=function(e,t){return!(function(e){return function(e){return v(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||u(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||f(t)<0||!h(e,t))},y=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},g=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,a=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(i,o),u=o?g(e.candidates):i;0===a?o?t.push.apply(t,u):t.push(i):n.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:u})}),n.sort(p).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},w=function(e,t){var n;return n=(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:m.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:y}):c(e,t.includeContainer,m.bind(null,t)),g(n)},O=function(e,t){return(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:h.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,h.bind(null,t))},E=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,o)&&m(t,e)},T=r.concat("iframe").join(","),k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,T)&&h(t,e)}},184:function(t){"use strict";
3t.exports=e},214:function(e){"use strict";e.exports=r},342:function(e,t,n){"use strict";var r=n(398);r.createRoot,t.c=r.hydrateRoot},398:function(e){"use strict";e.exports=n},697:function(e){"use strict";e.exports=o},757:function(e,t,n){"use strict";n.r(t),n.d(t,{createFocusTrap:function(){return b}});var r=n(98);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},c=function(e){return s(e)&&!e.shiftKey},l=function(e){return s(e)&&e.shiftKey},d=function(e){return setTimeout(e,0)},f=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},p=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},v=[],b=function(e,t){var n,i=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||v,b=u({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:c,isKeyBackward:l},t),h={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},m=function(e,t,n){return e&&void 0!==e[t]?e[t]:b[n||t]},y=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return h.containerGroups.findIndex(function(t){var r=t.container,o=t.tabbableNodes;return r.contains(e)||(null==n?void 0:n.includes(r))||o.find(function(t){return t===e})})},g=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.hasFallback,a=void 0!==r&&r,u=n.params,s=void 0===u?[]:u,c=b[e];if("function"==typeof c&&(c=c.apply(void 0,function(e){if(Array.isArray(e))return o(e)}(t=s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===c&&(c=void 0),!c){if(void 0===c||!1===c)return c;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=c;if("string"==typeof c){try{l=i.querySelector(c)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!l&&!a)throw new Error("`".concat(e,"` as selector refers to no known node"))}return l},w=function(){var e=g("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,r.isFocusable)(e,b.tabbableOptions))if(y(i.activeElement)>=0)e=i.activeElement;else{var t=h.tabbableGroups[0];e=t&&t.firstTabbableNode||g("fallbackFocus")}else null===e&&(e=g("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},O=function(){if(h.containerGroups=h.containers.map(function(e){var t=(0,r.tabbable)(e,b.tabbableOptions),n=(0,r.focusable)(e,b.tabbableOptions),o=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,a=n.find(function(e){return(0,r.isTabbable)(e)}),u=n.slice().reverse().find(function(e){return(0,r.isTabbable)(e)}),s=!!t.find(function(e){return(0,r.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:o,lastTabbableNode:i,firstDomTabbableNode:a,lastDomTabbableNode:u,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?o?n.slice(n.indexOf(e)+1).find(function(e){return(0,r.isTabbable)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,r.isTabbable)(e)}):t[i+(o?1:-1)]}}}),h.tabbableGroups=h.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),h.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(h.containerGroups.find(function(e){return e.posTabIndexesFound})&&h.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?E(t.shadowRoot):t}
3,T=function(e){!1!==e&&e!==E(document)&&(e&&e.focus?(e.focus({preventScroll:!!b.preventScroll}),h.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):T(w()))},k=function(e){var t=g("setReturnFocus",{params:[e]});return t||!1!==t&&e},S=function(e){var t=e.target,n=e.event,o=e.isBackward,i=void 0!==o&&o;t=t||p(n),O();var a=null;if(h.tabbableGroups.length>0){var u=y(t,n),c=u>=0?h.containerGroups[u]:void 0;if(u<0)a=i?h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:h.tabbableGroups[0].firstTabbableNode;else if(i){var l=h.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(l<0&&(c.container===t||(0,r.isFocusable)(t,b.tabbableOptions)&&!(0,r.isTabbable)(t,b.tabbableOptions)&&!c.nextTabbableNode(t,!1))&&(l=u),l>=0){var d=0===l?h.tabbableGroups.length-1:l-1,f=h.tabbableGroups[d];a=(0,r.getTabIndex)(t)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else s(n)||(a=c.nextTabbableNode(t,!1))}else{var v=h.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(v<0&&(c.container===t||(0,r.isFocusable)(t,b.tabbableOptions)&&!(0,r.isTabbable)(t,b.tabbableOptions)&&!c.nextTabbableNode(t))&&(v=u),v>=0){var m=v===h.tabbableGroups.length-1?0:v+1,w=h.tabbableGroups[m];a=(0,r.getTabIndex)(t)>=0?w.firstTabbableNode:w.firstDomTabbableNode}else s(n)||(a=c.nextTabbableNode(t))}}else a=g("fallbackFocus");return a},F=function(e){var t=p(e);y(t,e)>=0||(f(b.clickOutsideDeactivates,e)?n.deactivate({returnFocus:b.returnFocusOnDeactivate}):f(b.allowOutsideClick,e)||e.preventDefault())},D=function(e){var t=p(e),n=y(t,e)>=0;if(n||t instanceof Document)n&&(h.mostRecentlyFocusedNode=t);else{var o;e.stopImmediatePropagation();var i=!0;if(h.mostRecentlyFocusedNode)if((0,r.getTabIndex)(h.mostRecentlyFocusedNode)>0){var a=y(h.mostRecentlyFocusedNode),u=h.containerGroups[a].tabbableNodes;if(u.length>0){var s=u.findIndex(function(e){return e===h.mostRecentlyFocusedNode});s>=0&&(b.isKeyForward(h.recentNavEvent)?s+1<u.length&&(o=u[s+1],i=!1):s-1>=0&&(o=u[s-1],i=!1))}}else h.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,r.getTabIndex)(e)>0})})||(i=!1);else i=!1;i&&(o=S({target:h.mostRecentlyFocusedNode,isBackward:b.isKeyBackward(h.recentNavEvent)})),T(o||h.mostRecentlyFocusedNode||w())}h.recentNavEvent=void 0},N=function(e){(b.isKeyForward(e)||b.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.recentNavEvent=e;var n=S({event:e,isBackward:t});n&&(s(e)&&e.preventDefault(),T(n))}(e,b.isKeyBackward(e))},P=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===f(b.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},_=function(e){var t=p(e);y(t,e)>=0||f(b.clickOutsideDeactivates,e)||f(b.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},x=function(){if(h.active)return function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)}(a,n),h.delayInitialFocusTimer=b.delayInitialFocus?d(function(){T(w())}):T(w()),i.addEventListener("focusin",D,!0),i.addEventListener("mousedown",F,{capture:!0,passive:!1}),i.addEventListener("touchstart",F,{capture:!0,passive:!1}),i.addEventListener("click",_,{capture:!0,passive:!1}),i.addEventListener("keydown",N,{capture:!0,passive:!1}),i.addEventListener("keydown",P),n},R=function(){if(h.active)return i.removeEventListener("focusin",D,!0),i.removeEventListener("mousedown",F,!0),i.removeEventListener("touchstart",F,!0),i.removeEventListener("click",_,!0),i.removeEventListener("keydown",N,!0),i.removeEventListener("keydown",P),n},C="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===h.mostRecentlyFocusedNode})})&&T(w())}):void 0,j=function(){C&&(C.disconnect(),h.active&&!h.paused&&h.containers.map(function(e){C.observe(e,{subtree:!0,childList:!0})}
3))};return n={get active(){return h.active},get paused(){return h.paused},activate:function(e){if(h.active)return this;var t=m(e,"onActivate"),n=m(e,"onPostActivate"),r=m(e,"checkCanFocusTrap");r||O(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=E(i),null==t||t();var o=function(){r&&O(),x(),j(),null==n||n()};return r?(r(h.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!h.active)return this;var t=u({onDeactivate:b.onDeactivate,onPostDeactivate:b.onPostDeactivate,checkCanReturnFocus:b.checkCanReturnFocus},e);clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,R(),h.active=!1,h.paused=!1,j(),function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}(a,n);var r=m(t,"onDeactivate"),o=m(t,"onPostDeactivate"),i=m(t,"checkCanReturnFocus"),s=m(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var c=function(){d(function(){s&&T(k(h.nodeFocusedBeforeActivation)),null==o||o()})};return s&&i?(i(k(h.nodeFocusedBeforeActivation)).then(c,c),this):(c(),this)},pause:function(e){return h.active?(h.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return h.active?(h.manuallyPaused=!1,a[a.length-1]!==this?this:this._setPausedState(!1,e)):this}
3,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return h.containers=t.map(function(e){return"string"==typeof e?i.querySelector(e):e}),h.active&&O(),j(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return h.manuallyPaused}},_setPausedState:{value:function(e,t){if(h.paused===e)return this;if(h.paused=e,e){var n=m(t,"onPause"),r=m(t,"onPostPause");null==n||n(),R(),j(),null==r||r()}else{var o=m(t,"onUnpause"),i=m(t,"onPostUnpause");null==o||o(),O(),x(),j(),null==i||i()}return this}}}),n.updateContainerElements(e),n}},816:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o,i;function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}
3function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}var d=n(959),f=n(757).createFocusTrap,p=n(98).isFocusable,v=parseInt(null!==(o=null===(i=/^(\d+)\./.exec(d.version))||void 0===i?void 0:i[1])&&void 0!==o?o:0,10),b=function(e){function t(e){var n,o,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,[e]),o=n,a=function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];n=n.apply(void 0,o)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a,u=n;if("string"==typeof n&&!(u=null===(a=this.getDocument())||void 0===a?void 0:a.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return u},(i=l(i="getNodeForOption"))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,n.handleDeactivate=n.handleDeactivate.bind(n),n.handlePostDeactivate=n.handlePostDeactivate.bind(n),n.handleClickOutsideDeactivates=n.handleClickOutsideDeactivates.bind(n),n.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:n.handleDeactivate,onPostDeactivate:n.handlePostDeactivate,clickOutsideDeactivates:n.handleClickOutsideDeactivates},n.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var c=e.focusTrapOptions;for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&("returnFocusOnDeactivate"!==d&&"onDeactivate"!==d&&"onPostDeactivate"!==d&&"checkCanReturnFocus"!==d&&"clickOutsideDeactivates"!==d?n.internalOptions[d]=c[d]:n.originalOptions[d]=c[d]);return n.outsideClick=null,n.focusTrapElements=e.containerElements||[],n.updatePreviousElement(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(o=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||p(e.outsideClick.target,e.internalOptions.tabbableOptions))),r=e.internalOptions.preventScroll,o=void 0!==r&&r;
3n&&t.focus({preventScroll:o}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,o=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),o&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?d.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===d.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return d.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&(v>=19?"function"==typeof t.props.ref?t.props.ref(n):t.props.ref&&(t.props.ref.current=n):"function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&a(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(d.Component);b.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:f},e.exports=b,e.exports.FocusTrap=b},937:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},959:function(e){"use strict";e.exports=t}},a={};function u(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return function(){"use strict";u.r(s),u.d(s,{default:function(){return w}});var e=u(959),t=u.n(e),n=u(342),r=u(184),o=u.n(r);function i(t,n){const r=(0,e.useRef)(!1);(0,e.useEffect)(()=>{r.current?t():r.current=!0},n)}function a(){const[t,n]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{if("undefined"==typeof window||!window.matchMedia)return;const e=window.matchMedia("(prefers-reduced-motion: reduce)");n(e.matches);const t=e=>{n(e.matches)};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[]),t}var c=u(937),l=u.n(c),d=u(214),f=u.n(d),p=u(697),v=u.n(p),b=({id:n,name:r,href:u,isActive:s,hasChildren:c,subMenuIsOpen:d,subMenu:p})=>{const[b,m]=(0,e.useState)(d),[y,g]=(0,e.useState)(p),[w,O]=(0,e.useState)(!1),E=(0,e.useRef)(null),T=a();i(()=>{b?k():S()},[b]);const k=()=>
3{if(E.current){O(!0);const e=E.current;if(T)return e.style.height="auto",e.classList.add("vel-menu__submenu--open"),void O(!1);e.style.height=e.scrollHeight+"px",e.addEventListener("transitionend",()=>{e.style.height="auto",O(!1)},{once:!0}),e.classList.add("vel-menu__submenu--open")}},S=()=>{if(E.current){O(!0);const e=E.current;if(T)return e.style.height="0px",e.classList.remove("vel-menu__submenu--open"),void O(!1);e.style.height=e.scrollHeight+"px",requestAnimationFrame(()=>{e.style.height="0px"}),e.classList.remove("vel-menu__submenu--open"),e.addEventListener("transitionend",()=>{O(!1)},{once:!0})}};return t().createElement("li",{className:l()("vel-menu__item",{"vel-menu__item--active":s},{"vel-menu__item--open":b},{"vel-menu__item--has-children":c})},t().createElement("a",Object.assign({className:l()("vel-menu__item-link",{"vel-menu__item-link--open":b}),href:u},s?{"aria-current":"page"}:{}),r),c?t().createElement("button",{onClick:()=>{w||(y?m(!b):f().doGet({url:v().getStandaloneUrl("/getSubmenu"),data:{id:n}}).then(e=>{g(e),m(!b)}))},"aria-label":`${o().get("submenuAriaLabel")} ${r}`,"aria-controls":`submenu-${n.replace(".","")}`,"aria-expanded":b},t().createElement("span",{className:"env-assistive-text"},b?"-":"+")):null,c?t().createElement("div",Object.assign({id:"submenu-"+n.replace(".",""),ref:E,"aria-hidden":!b,className:l()("vel-menu__submenu",{"vel-menu__submenu--open":d})},!b&&{inert:""}),null!=y?t().createElement(h,{menu:y}):null):null)},h=({menu:e})=>t().createElement("ul",{className:"vel-menu__items"},e.map(e=>t().createElement(t().Fragment,null,t().createElement(b,Object.assign({key:e.id},e))))),m=u(816),y=u.n(m),g=({menu:n,linkItems:r})=>{const[u,s]=(0,e.useState)(!1),[c,l]=(0,e.useState)(!1),d=(0,e.useRef)(null),f=(0,e.useRef)(null),p=a();i(()=>{v(),u?b():m(),!u&&f.current&&f.current.focus()},[u]);const v=()=>{const e=document.querySelector("body");u?(e.classList.add("overlay","overlay--menu"),setTimeout(()=>{e.classList.add("fade","in")},100)):(e.classList.remove("fade","in"),setTimeout(()=>{e.classList.remove("overlay","overlay--menu")},500))},b=()=>{if(d.current){l(!0);const e=d.current,t=e.querySelector(".vel-menu__panel-container");if(p)return e.style.height="auto",e.classList.add("vel-menu__panel--open"),void l(!1);e.style.height=t.scrollHeight+"px",e.addEventListener("transitionend",()=>{e.style.height="auto",e.classList.add("vel-menu__panel--open"),l(!1)},{once:!0})}},m=()=>{if(d.current){l(!0);const e=d.current;if(e.classList.remove("is-hidden"),p)return e.style.height="0px",e.classList.remove("vel-menu__panel--open"),e.classList.add("is-hidden"),void l(!1);e.style.height=e.scrollHeight+"px",requestAnimationFrame(()=>{e.style.height="0px"}),e.classList.remove("vel-menu__panel--open"),e.addEventListener("transitionend",()=>{e.classList.add("is-hidden"),l(!1)},{once:!0})}};return t().createElement(y(),{active:u,focusTrapOptions:{clickOutsideDeactivates:!0,escapeDeactivates:!0,onDeactivate:()=>s(!1)}},t().createElement("div",{className:"vel-menu"},t().createElement("button",{ref:f,className:"vel-header__button vel-menu__toggle-menu-button","aria-controls":"vel-menu__panel","aria-expanded":u,onClick:()=>{c||s(!u)}},u?o().get("closeMenu"):o().get("menu")),t().createElement("nav",Object.assign({ref:d,id:"vel-menu__panel",className:"vel-menu__panel "+(u?"":"is-hidden"),"aria-label":"Huvudnavigation","aria-hidden":!u},!u&&{inert:""}),t().createElement("div",{className:"vel-menu__panel-container"},t().createElement(h,{menu:n}),r&&r.length>0?t().createElement("div",{className:"vel-menu__links-section"},t().createElement("ul",null,r.map(e=>t().createElement("li",{key:e.id},e.iconSrc&&t().createElement("img",{src:e.iconSrc,alt:"","aria-hidden":"true"}),t().createElement("a",{href:e.href},e.name))))):null))))},w=(t,r)=>{(0,n.c)(r,e.createElement(g,Object.assign({},t)))}}(),s}()});}});

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.