1AppRegistry.registerBundle({applicationId:'sp-mobile-menu|0.0.1',bundle: {"en":{"logotypeDarkHelp":"Same as logo above, make sure it will be visible on a dark background","settings":"Settings","linkFolderHelp":"Choose a folder with link-pages, these will be rendered under the menu tree","linkFolder":"Quick links folder","logotypeDark":"Logotype for darkmode","logotypeHelp":"This will be shown in the left corner of the menu and link to the startpage","logotype":"Logotype","linkDesc":"To startpage"},"sv":{"logotypeDarkHelp":"Samma som ovan fast se till att den syns på en mörk bakgrund","settings":"Inställningar","linkFolderHelp":"Peka ut en mapp med länksidor som visas under menyträdet","linkFolder":"Mapp med snabblänkar","logotypeDark":"Logotyp för darkmode","logotypeHelp":"Loggan kommer att visas i det vänsta hörnet av menyn och länkas till startsidan","logotype":"Logotyp","linkDesc":"Till startsidan"}}}); 2AppRegistry.registerModule({applicationId:'sp-mobile-menu|0.0.1',path:'/main',module:function(define){'use strict';define(["i18n","react","react-dom","requester","router"],function(e,t,n,l,r){return function(){"use strict";var a={184:function(t){t.exports=e},214:function(e){e.exports=l},398:function(e){e.exports=n},697:function(e){e.exports=r},959:function(e){e.exports=t}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return a[e](n,n.exports,o),n.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var m={};o.r(m),o.d(m,{default:function(){return N}});var i=o(959),c=o(398),u=o.n(c),p=o(214),d=o.n(p),b=o(697),f=o.n(b);const E=({item:e,pageTree:t,i:n})=>{const[l,r]=i.useState(t.includes(e.label)),[a,s]=i.useState([]);return i.useEffect(()=>{l&&(null===d()||void 0===d()||d().doGet({url:f().getStandaloneUrl(`/getMenuItems/${e.id}`)}).then(e=>{const t=e;t&&t.menuItems&&s(t.menuItems)}))},[l,e]),i.useEffect(()=>{document.querySelectorAll(".is-last-wrapper").forEach(e=>{e.classList.remove("is-last-wrapper")});const e=document.querySelectorAll(".sp-mobile-menu--item");let t=null;if(e.forEach(e=>{!e.querySelector("ul")&&(t=e)}),t){const e=t.querySelector(".sp-mobile-menu--item-wrapper");e instanceof HTMLElement&&e.classList.add("is-last-wrapper")}},[l,e]),i.createElement("li",{className:`sp-mobile-menu--item depth-${n} ${t[t.length-1]===e.label?"sp-mobile-menu--item-active":""}`},i.createElement("div",{className:"sp-mobile-menu--item-wrapper"},i.createElement("a",{href:e.uri},e.label),e.hasdescendants&&i.createElement("button",{"aria-label":l?"Dölj undersidor":"Visa undersidor","aria-expanded":!!l,onClick:()=>r(!l),className:"sp-mobile-menu--item-dropdown"},i.createElement("i",{className:"icon-chevron-down"}," "))),(null==a?void 0:a.length)>0&&l&&i.createElement("ul",{className:"child"},null==a?void 0:a.map(e=>i.createElement(E,{key:e.label,item:e,pageTree:t,i:n+1}))))};var v=E,g=o(184),h=o.n(g),y=({menuTree:e,quickLinks:t,webPath:n,imgSrc:l,imgSrcDark:r,sitePageLink:a})=>(i.useEffect(()=>{const e=document.querySelector("#sp-mobile-menu"),t=document.querySelector("#sp-mobile-menu--open"),n=document.querySelector("#sp-mobile-menu--close");envision.dialog(e,{opener:t,backdropClick:!0}).then(e=>{null==n||n.addEventListener("click",function(){e[0].close()})})},[]),i.createElement("nav",null,i.createElement("button",{className:"sp-mobile-menu--open env-button env-button--primary",id:"sp-mobile-menu--open"},"Meny ",i.createElement("i",{className:"icon-menu"}," ")),i.createElement("dialog",{className:"sp-mobile-menu env-dialog",id:"sp-mobile-menu"},i.createElement("div",{className:"sp-mobile-menu--wrapper"},i.createElement("div",{className:"sp-mobile-menu--header"},""!==l&&i.createElement("a",{className:"sp-mobile-menu--header--logo",href:a},i.createElement("img",{src:l,alt:h().get("linkDesc")})),""!==r&&i.createElement("a",{className:"sp-mobile-menu--header--logodark",href:a},i.createElement("img",{src:r,alt:h().get("linkDesc")})),i.createElement("button",{id:"sp-mobile-menu--close",className:"sp-mobile-menu--close env-button"},i.createElement("i",{className:"icon-x"}," "),i.createElement("span",{className:"env-assistive-text"}," Stäng meny "))),i.createElement("ul",{className:"sp-mobile-menu--headList"},e.menuItems.map(e=>i.createElement(v,{key:e.label,item:e,pageTree:n,i:1}))),t&&i.createElement("ul",{id:"quickLinks",className:"sp-mobile-menu--shortcuts"},t.map(e=>i.createElement("li",{key:e.name,className:"sp-mobile-menu--shortcuts-item"},i.createElement("a",{href:e.url},e.name," ")))))))),N=(e,t)=>{u().hydrate(i.createElement(y,Object.assign({},e)),t)};return m}()});}});
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.