vendor: 4,148 bytes, lines 1-3
1AppRegistry.registerBundle({applicationId:'bra-languages|1.1.0',bundle: {"en":{"name":"Text on button","settings":"Settings","hello":"Hello","languages":"Languages","other-languages":"Other Languages"},"sv":{"settings":"Inställningar","folder":"Mapp","languages":"Languages","name":"Namn","hello":"Hej","other-languages":"Other Languages"}}}); 2AppRegistry.registerModule({applicationId:'bra-languages|1.1.0',path:'/main',module:function(define){'use strict';/*! For license information please see main.js.LICENSE.txt */ 3define(["react","react-dom"],function(e,t){return function(){var n={98:function(e,t,n){"use strict";n.r(t),n.d(t,{focusable:function(){return E},getTabIndex:function(){return d},isFocusable:function(){return k},isTabbable:function(){return w},tabbable:function(){return O}});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(","),a="undefined"==typeof Element,i=a?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c=!a&&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},u=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},s=function(e,t,n){if(u(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&i.call(e,o)&&r.unshift(e),r.filter(n)},l=function e(t,n,r){for(var a=[],c=Array.from(t);c.length;){var s=c.shift();if(!u(s,!1))if("SLOT"===s.tagName){var l=s.assignedElements(),f=e(l.length?l:s.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scopeParent:s,candidates:f})}else{i.call(s,o)&&r.filter(s)&&(n||!t.includes(s))&&a.push(s);var d=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),p=!u(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(d&&p){var v=e(!0===d?s.children:d.children,!0,r);r.flatten?a.push.apply(a,v):a.push({scopeParent:s,candidates:v})}else c.unshift.apply(c,s.children)}}return a},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},d=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))&&!f(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},m=function(e,t){return!(t.disabled||u(t)||function(e){return v(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof r){for(var a=e;e;){var u=e.parentElement,s=c(e);if(u&&!u.shadowRoot&&!0===r(u))return b(e);e=e.assignedSlot?e.assignedSlot:u||s===e.ownerDocument?u:s.host}e=a}if(function(e){var t,n,r,o,a=e&&c(e),i=null===(t=a)||void 0===t?void 0:t.host,u=!1;if(a&&a!==e)for(u=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!u&&i;){var s,l,f;u=!(null===(l=i=null===(s=a=c(i))||void 0===s?void 0:s.host)||void 0===l||null===(f=l.ownerDocument)||void 0===f||!f.contains(i))}return u}(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})}
3(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!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},h=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||c(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)||d(t)<0||!m(e,t))},y=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},g=function e(t){var n=[],r=[];return t.forEach(function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,c=function(e,t){var n=d(e);return n<0&&t&&!f(e)?0:n}(i,a),u=a?e(t.candidates):i;0===c?a?n.push.apply(n,u):n.push(i):r.push({documentOrder:o,tabIndex:c,item:t,isScope:a,content:u})}),r.sort(p).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},O=function(e,t){var n;return n=(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:h.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:y}):s(e,t.includeContainer,h.bind(null,t)),g(n)},E=function(e,t){return(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:m.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s(e,t.includeContainer,m.bind(null,t))},w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,o)&&h(t,e)},T=r.concat("iframe").join(","),k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,T)&&m(t,e)}},342:function(e,t,n){"use strict";var r=n(398);t.H=r.createRoot,r.hydrateRoot},352:function(e,t,n){e.exports=n(834)()},398:function(e){"use strict";e.exports=t},489:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},757:function(e,t,n){"use strict";n.r(t),n.d(t,{createFocusTrap:function(){return v}});var r=n(98);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){var r,o,a;r=e,o=t,a=n[t],(o=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},c=function(e){return i(e)&&!e.shiftKey},u=function(e){return i(e)&&e.shiftKey},s=function(e){return setTimeout(e,0)},l=function(e,t){var n=-1;return e.every(function(e,r){return!t(e)||(n=r,!1)}),n},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},d=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},p=[],v=function(e,t){var n,o=(null==t?void 0:t.document)||document,v=(null==t?void 0:t.trapStack)||p,b=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:c,isKeyBackward:u},t),m={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},h=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 m.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=b[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var i=t;if("string"==typeof t&&!(i=o.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return i},O=function(){var e=g("initialFocus");if(!1===e)return!1;if(void 0===e||!(0,r.isFocusable)(e,b.tabbableOptions))if(y(o.activeElement)>=0)e=o.activeElement;else{var t=m.tabbableGroups[0];e=t&&t.firstTabbableNode||g("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(m.containerGroups=m.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,a=t.length>0?t[t.length-1]:void 0,i=n.find(function(e){return(0,r.isTabbable)(e)}),c=n.slice().reverse().find(function(e){return(0,r.isTabbable)(e)}),u=!!t.find(function(e){return(0,r.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:u,firstTabbableNode:o,lastTabbableNode:a,firstDomTabbableNode:i,lastDomTabbableNode:c,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.indexOf(e);return a<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[a+(o?1:-1)]}}}),m.tabbableGroups=m.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),m.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(m.containerGroups.find(function(e){return e.posTabIndexesFound})&&m.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.")},w=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},T=function e(t){!1!==t&&t!==w(document)&&(t&&t.focus?(t.focus({preventScroll:!!b.preventScroll}),m.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(O()))},k=function(e){var t=g("setReturnFocus",e);return t||!1!==t&&e},_=function(e){var t=e.target,n=e.event,o=e.isBackward,a=void 0!==o&&o;t=t||d(n),E();var c=null;if(m.tabbableGroups.length>0){var u=y(t,n),s=u>=0?m.containerGroups[u]:void 0;if(u<0)c=a?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode;else if(a){var f=l(m.tabbableGroups,function(e){var n=e.firstTabbableNode;return t===n});if(f<0&&(s.container===t||(0,r.isFocusable)(t,b.tabbableOptions)&&!(0,r.isTabbable)(t,b.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(f=u),f>=0){var p=0===f?m.tabbableGroups.length-1:f-1,v=m.tabbableGroups[p];c=(0,r.getTabIndex)(t)>=0?v.lastTabbableNode:v.lastDomTabbableNode}else i(n)||(c=s.nextTabbableNode(t,!1))}else{var h=l(m.tabbableGroups,function(e){var n=e.lastTabbableNode;return t===n});if(h<0&&(s.container===t||(0,r.isFocusable)(t,b.tabbableOptions)&&!(0,r.isTabbable)(t,b.tabbableOptions)&&!s.nextTabbableNode(t))&&(h=u),h>=0){var O=h===m.tabbableGroups.length-1?0:h+1,w=m.tabbableGroups[O];c=(0,r.getTabIndex)(t)>=0?w.firstTabbableNode:w.firstDomTabbableNode}else i(n)||(c=s.nextTabbableNode(t))}}else c=g("fallbackFocus");return c},N=function(e){var t=d(e);y(t,e)>=0||(f(b.clickOutsideDeactivates,e)?n.deactivate({returnFocus:b.returnFocusOnDeactivate}):f(b.allowOutsideClick,e)||e.preventDefault())},F=function(e){var t=d(e),n=y(t,e)>=0;if(n||t instanceof Document)n&&(m.mostRecentlyFocusedNode=t);else{var o;e.stopImmediatePropagation();var a=!0;if(m.mostRecentlyFocusedNode)if((0,r.getTabIndex)(m.mostRecentlyFocusedNode)>0){var i=y(m.mostRecentlyFocusedNode),c=m.containerGroups[i].tabbableNodes;if(c.length>0){var u=c.findIndex(function(e){return e===m.mostRecentlyFocusedNode});u>=0&&(b.isKeyForward(m.recentNavEvent)?u+1<c.length&&(o=c[u+1],a=!1):u-1>=0&&(o=c[u-1],a=!1))}}else m.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,r.getTabIndex)(e)>0})})||(a=!1);else a=!1;a&&(o=_({target:m.mostRecentlyFocusedNode,isBackward:b.isKeyBackward(m.recentNavEvent)})),T(o||m.mostRecentlyFocusedNode||O())}m.recentNavEvent=void 0},D=function(e){if(("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))return e.preventDefault(),void n.deactivate();var t;(b.isKeyForward(e)||b.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.recentNavEvent=e;var n=_({event:e,isBackward:t});n&&(i(e)&&e.preventDefault(),T(n))}(e,b.isKeyBackward(e))},P=function(e){var t=d(e);y(t,e)>=0||f(b.clickOutsideDeactivates,e)||f(b.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(m.active)return function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)}(v,n),m.delayInitialFocusTimer=b.delayInitialFocus?s(function(){T(O())}):T(O()),o.addEventListener("focusin",F,!0),o.addEventListener("mousedown",N,{capture:!0,passive:!1}),o.addEventListener("touchstart",N,{capture:!0,passive:!1}),o.addEventListener("click",P,{capture:!0,passive:!1}),o.addEventListener("keydown",D,{capture:!0,passive:!1}),n},R=function(){if(m.active)return o.removeEventListener("focusin",F,!0),o.removeEventListener("mousedown",N,!0),o.removeEventListener("touchstart",N,!0),o.removeEventListener("click",P,!0),o.removeEventListener("keydown",D,!0),n},C="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes
3).some(function(e){return e===m.mostRecentlyFocusedNode})})&&T(O())}):void 0,x=function(){C&&(C.disconnect(),m.active&&!m.paused&&m.containers.map(function(e){C.observe(e,{subtree:!0,childList:!0})}))};return(n={get active(){return m.active},get paused(){return m.paused},activate:function(e){if(m.active)return this;var t=h(e,"onActivate"),n=h(e,"onPostActivate"),r=h(e,"checkCanFocusTrap");r||E(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=o.activeElement,null==t||t();var a=function(){r&&E(),S(),x(),null==n||n()};return r?(r(m.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!m.active)return this;var t=a({onDeactivate:b.onDeactivate,onPostDeactivate:b.onPostDeactivate,checkCanReturnFocus:b.checkCanReturnFocus},e);clearTimeout(m.delayInitialFocusTimer),m.delayInitialFocusTimer=void 0,R(),m.active=!1,m.paused=!1,x(),function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}(v,n);var r=h(t,"onDeactivate"),o=h(t,"onPostDeactivate"),i=h(t,"checkCanReturnFocus"),c=h(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var u=function(){s(function(){c&&T(k(m.nodeFocusedBeforeActivation)),null==o||o()})};return c&&i?(i(k(m.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){if(m.paused||!m.active)return this;var t=h(e,"onPause"),n=h(e,"onPostPause");return m.paused=!0,null==t||t(),R(),x(),null==n||n(),this},unpause:function(e){if(!m.paused||!m.active)return this;var t=h(e,"onUnpause"),n=h(e,"onPostUnpause");return m.paused=!1,null==t||t(),E(),S(),x(),null==n||n(),this}
vendor: 5,395 bytes, line 3
3,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return m.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),m.active&&E(),x(),this}}).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)}function o(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,u(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e){var t=function(e){if("object"!==r(e)||null===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:String(t)}var s=n(959),l=n(352),f=n(757).createFocusTrap,d=n(98).isFocusable,p=function(e){!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&&a(e,t)}(v,e);var t,n,l,f,p=(l=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=c(l);if(f){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return 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 i(e)}(this,e)});function v(e){var t,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),n=i(t=p.call(this,e)),o=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),a=1;a<r;a++)o[a-1]=arguments[a];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 i,c=n;if("string"==typeof n&&!(c=null===(i=this.getDocument())||void 0===i?void 0:i.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return c},(r=u(r="getNodeForOption"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t.handleDeactivate=t.handleDeactivate.bind(i(t)),t.handlePostDeactivate=t.handlePostDeactivate.bind(i(t)),t.handleClickOutsideDeactivates=t.handleClickOutsideDeactivates.bind(i(t)),t.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:t.handleDeactivate,onPostDeactivate:t.handlePostDeactivate,clickOutsideDeactivates:t.handleClickOutsideDeactivates},t.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var a=e.focusTrapOptions;for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&("returnFocusOnDeactivate"!==c&&"onDeactivate"!==c&&"onPostDeactivate"!==c&&"checkCanReturnFocus"!==c&&"clickOutsideDeactivates"!==c?t.internalOptions[c]=a[c]:t.originalOptions[c]=a[c]);return t.outsideClick=null,t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=v,(n=[{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||d(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?s.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===s.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return s.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(s.Component),v="undefined"==typeof Element?Function:Element;p.propTypes={active:l.bool,paused:l.bool,focusTrapOptions:l.shape({document:l.object,onActivate:l.func,onPostActivate:l.func,checkCanFocusTrap:l.func,onPause:l.func,onPostPause:l.func,onUnpause:l.func,onPostUnpause:l.func,onDeactivate:l.func,onPostDeactivate:l.func,checkCanReturnFocus:l.func,initialFocus:l.oneOfType([l.instanceOf(v),l.string,l.bool,l.func]),fallbackFocus:l.oneOfType([l.instanceOf(v),l.string,l.func]),escapeDeactivates:l.oneOfType([l.bool,l.func]),clickOutsideDeactivates:l.oneOfType([l.bool,l.func]),returnFocusOnDeactivate:l.bool,setReturnFocus:l.oneOfType([l.instanceOf(v),l.string,l.bool,l.func]),allowOutsideClick:l.oneOfType([l.bool,l.func]),preventScroll:l.bool,tabbableOptions:l.shape({displayCheck:l.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:l.oneOfType([l.bool,l.func])}),trapStack:l.array,isKeyForward:l.func,isKeyBackward:l.func}),containerElements:l.arrayOf(l.instanceOf(v)),children:l.oneOfType([l.element,l.instanceOf(v)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:f},e.exports=p},834:function(e,t,n){"use strict";var r=n(489);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},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=i(e,a(n)))}return e}function a(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=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}
3.apply(t,[]))||(e.exports=n)}()},959:function(t){"use strict";t.exports=e}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.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 a={};return function(){"use strict";o.r(a),o.d(a,{default:function(){return d}});var e=o(959),t=o(342),n=o(937),r=o.n(n),i=o(352),c=o.n(i),u=o(816),s=o.n(u);const l=({name:t,languageMenu:n,swePage:o,engPage:a,sweActive:i,engActive:c})=>{const[u,l]=(0,e.useState)(!1),f=(0,e.useRef)(null),d=()=>{l(!u)},p=e=>{"Escape"===e.key&&b()},v=e=>{f.current&&!f.current.contains(e.target)&&b()},b=()=>{l(!1)};(0,e.useEffect)(()=>(document.addEventListener("keydown",p),document.addEventListener("mousedown",v),u?document.body.classList.add("panel-open"):document.body.classList.remove("panel-open"),()=>{document.removeEventListener("keydown",p),document.removeEventListener("mousedown",v),document.body.classList.remove("panel-open")}),[u]);const m={display:u?"block":"none"};return e.createElement(e.Fragment,null,e.createElement("div",null,u&&e.createElement("div",{className:"env-modal-dialog__backdrop env-modal-dialog__backdrop--in",onClick:b}),e.createElement("div",{className:"bra-languages",ref:f},e.createElement("button",{className:r()("bra-languages__btn",{"bra-languages__btn--open":u}),lang:"en","aria-controls":"bra-languages-panel","aria-expanded":u?"true":"false","aria-label":`${u?"Close":"Open"} ${t}`,onClick:d},e.createElement("i",{className:r()("fa-light fa-globe",{"fa-regular fa-times":u}),"aria-hidden":"true"}),e.createElement("span",null,t)),e.createElement(s(),{focusTrapOptions:{clickOutsideDeactivates:!0},active:u},e.createElement("dialog",{className:r()("bra-languages__panel",{"bra-languages__panel--open":u}),id:"bra-languages-panel","aria-hidden":u?"false":"true",style:m},e.createElement("button",{className:"bra-languages-panel__close-button",onClick:d},e.createElement("i",{className:"fa-regular fa-circle-info fa-regular fa-times","aria-hidden":"true"}),"Stäng"),e.createElement("div",null,e.createElement("h2",{className:"bra-menu__item bra-menu__item--title bra-menu__item--language"},e.createElement("span",{lang:"en"},"Languages")),e.createElement("ul",{className:"bra-menu__items"},e.createElement("li",{className:r()("bra-menu__item bra-menu__item--title bra-menu__item--language",{"bra-menu__item--active":i})},e.createElement("a",{className:"bra-menu__item-link",href:o},e.createElement("span",{lang:"sv"},"Svenska"),i&&e.createElement("span",{className:"fa-solid fa-check bra-menu__item-link--check"}))),e.createElement("li",{className:r()("bra-menu__item bra-menu__item--title bra-menu__item--language",{"bra-menu__item--active":c})},e.createElement("a",{className:"bra-menu__item-link",href:a},e.createElement("span",{lang:"en"},"English"),c&&e.createElement("span",{className:"fa-solid fa-check bra-menu__item-link--check"})))),e.createElement("h2",{className:"bra-menu__item bra-menu__item--title bra-menu__item--language"},e.createElement("span",{lang:"en"},"Other languages")),e.createElement("ul",{className:"bra-menu__items"},n.map(t=>{const n=t.name.split("â").map(e=>e.trim());return e.createElement("li",{key:t.href,className:r()("bra-menu__item",{"bra-menu__item--active":t.isActive},{"bra-menu__item--open":u},{"bra-menu__item--language":t.isLanguageMenu},{"bra-menu__item--title":t.isTitle}),"aria-current":t.isActive?"true":void 0},!t.isLanguageMenu&&!t.isTitle&&e.createElement("a",{className:"bra-menu__item-link",href:t.href},e.createElement(e.Fragment,null,e.createElement("span",null,n[0])," ",e.createElement("span",{lang:t.language},"â ",n[1])),t.isActive&&e.createElement("span",{className:"fa-solid fa-check bra-menu__item-link--check"})))}))))))))};l.propTypes={name:c().string.isRequired,languageMenu:c().array.isRequired,swePage:c().string.isRequired,engPage:c().string.isRequired};var f=l,d=(n,r)=>{(0,t.H)(r).render(e.createElement(f,Object.assign({},n)))}}(),a}()});}});
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.