PageSourceSearch

https://bra.se/webapp-resource/4.3ff0275418f3840b5e812fa4/360.63ac…/1758789884640/webapp-assets.js

js bra.se collected 2026-10-02 02:39:16 UTC 6,253 bytes, 2 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'bra-select-color-scheme|1.0.1',bundle: {"en":{"buttonText":"Appearance","buttonAriaCloseText":"Close appearance selection","chooseColorScheme":"Choose color scheme","lightChoice":"Light","systemChoice":"Automatic (system choice)","darkChoice":"Dark","dialogTitle":"Set the appearance of this website","readyButtonText":"Ready","buttonAriaOpenText":"Open appearance selection"},"sv":{"buttonText":"Utseende","buttonAriaCloseText":"Stäng val av utseende","chooseColorScheme":"Välj färgschema","lightChoice":"Ljust","systemChoice":"Automatiskt (systemval)","darkChoice":"Mörkt","dialogTitle":"Ställ in utseende på denna webbplats","readyButtonText":"Klar","buttonAriaOpenText":"Öppna val av utseende"}}});
2AppRegistry.registerModule({applicationId:'bra-select-color-scheme|1.0.1',path:'/main',module:function(define){'use strict';define(["events","i18n","react","react-dom"],function(e,t,a,r){return function(){"use strict";var l={184:function(e){e.exports=t},342:function(e,t,a){var r=a(398);t.H=r.createRoot,r.hydrateRoot},398:function(e){e.exports=r},797:function(t){t.exports=e},959:function(e){e.exports=a}},o={};function c(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return l[e](a,a.exports,c),a.exports}c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var a in t)c.o(t,a)&&!c.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};c.r(n),c.d(n,{default:function(){return g}});var s=c(959),i=c.n(s),m=c(342),d=c(797),u=c.n(d),h=c(184),f=c.n(h),b=({})=>{const[e,t]=(0,s.useState)(!1),[a,r]=(0,s.useState)("system"),l=(0,s.useRef)(null);return(0,s.useEffect)(()=>{envision.dialog(l.current,{opener:"#bra-select-color-scheme__btn"});const e=localStorage.getItem("bra-color-scheme");e&&r(e),u().on("colorSchemeChanged",e=>{const t=e;"menu"===e.emitter&&r(t.colorScheme||"system")})},[]),(0,s.useEffect)(()=>{const e=document.body;"system"===a?(e.classList.remove("bra-light","bra-dark"),localStorage.removeItem("bra-color-scheme")):"light"===a?(e.classList.add("bra-light"),e.classList.remove("bra-dark"),localStorage.setItem("bra-color-scheme","light")):"dark"===a&&(e.classList.add("bra-dark"),e.classList.remove("bra-light"),localStorage.setItem("bra-color-scheme","dark")),u().trigger("colorSchemeChanged",{colorScheme:a,emitter:"color-scheme-component"})},[a,r]),i().createElement("div",{className:"bra-select-color-scheme"},i().createElement("button",{id:"bra-select-color-scheme__btn",type:"button",className:"bra-select-color-scheme__btn","aria-expanded":e,"aria-label":f().get(e?"buttonAriaCloseText":"buttonAriaOpenText")},i().createElement("i",{className:"fa-solid fa-circle-half-stroke","aria-hidden":"true"}),i().createElement("span",null,f().get("buttonText"))),i().createElement("dialog",{ref:l,id:"bra-select-color-scheme__dialog",className:"env-dialog bra-select-color-scheme__dialog","aria-labelledby":"bra-select-color-scheme__dialog-title"},i().createElement("div",{className:"bra-select-color-scheme__dialog-header"},i().createElement("form",{method:"dialog"},i().createElement("button",{className:"bra-select-color-scheme__dialog-close-button",value:"cancel"},i().createElement("i",{className:"fa-regular fa-circle-info fa-regular fa-times","aria-hidden":"true"}),"Stäng"))),i().createElement("h2",{className:"bra-select-color-scheme__dialog-title",id:"bra-select-color-scheme__dialog-title"},f().get("dialogTitle")),i().createElement("div",{className:"bra-select-color-scheme__dialog-main"},i().createElement("fieldset",{className:"env-form-fieldset bra-select-color-scheme__fieldset"},i().createElement("legend",{className:"env-form-legend env-assistive-text"},f().get("chooseColorScheme")),i().createElement("div",{className:"env-form-field bra-select-color-scheme__field"},i().createElement("div",{className:"env-form-control"},i().createElement("input",{className:"env-radio",type:"radio",id:"radioColorScheme-1",name:"radioColorScheme",value:"system",checked:"system"===a,onChange:()=>r("system")}),i().createElement("label",{className:"env-form-label",htmlFor:"radioColorScheme-1"},i().createElement("i",{className:"fa-solid fa-circle-half-stroke","aria-hidden":"true"}),i().createElement("span",null,f().get("systemChoice"))," ","system"===a&&i().createElement("i",{className:"fa-solid fa-check","aria-hidden":"true"})))),i().createElement("div",{className:"env-form-field bra-select-color-scheme__field"},i().createElement("div",{className:"env-form-control"},i().createElement("input",{className:"env-radio",type:"radio",id:"radioColorScheme-2",name:"radioColorScheme",value:"light",checked:"light"===a,onChange:()=>r("light")}),i().createElement("label",{className:"env-form-label",htmlFor:"radioColorScheme-2"},i().createElement("i",{className:"fa-regular fa-sun-bright","aria-hidden":"true"}),i().createElement("span",null,f().get("lightChoice"))," ","light"===a&&i().createElement("i",{className:"fa-solid fa-check","aria-hidden":"true"})))),i().createElement("div",{className:"env-form-field bra-select-color-scheme__field"},i().createElement("div",{className:"env-form-control"},i().createElement("input",{className:"env-radio",type:"radio",id:"radioColorScheme-3",name:"radioColorScheme",value:"dark",checked:"dark"===a,onChange:()=>r("dark")}),i().createElement("label",{className:"env-form-label",htmlFor:"radioColorScheme-3"},i().createElement("i",{className:"fa-regular fa-moon","aria-hidden":"true"}),i().createElement("span",null,f().get("darkChoice"))," ","dark"===a&&i().createElement("i",{className:"fa-solid fa-check","aria-hidden":"true"}
2)))))),i().createElement("div",{className:"env-dialog__controls"},i().createElement("form",{method:"dialog"},i().createElement("button",{type:"submit",value:"save",className:"env-button env-button--primary env-button--no-icon"},f().get("readyButtonText"))))))},g=(e,t)=>{(0,m.H)(t).render(s.createElement(b,Object.assign({},e)))};return n}()});}});

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.