PageSourceSearch

https://www.babysits.se/inc/assets/static/js/color-modes.3279b1bdd2.js

js babysits.se collected 2026-09-25 03:13:15 UTC 2,954 bytes, 3 lines download raw bytes

1/*! LICENSE: color-modes.3279b1bdd2.js.LICENSE.txt */
2var e,t,r={33229(e,t,r){r(71570),r(17443),document.addEventListener("DOMContentLoaded",async()=>{let e,t,r;(function(){try{let e="__localStorage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}})()&&(e=()=>{let e=localStorage.getItem("theme");return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")},(t=e=>{"auto"===e?document.documentElement.setAttribute("data-bs-theme",window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):document.documentElement.setAttribute("data-bs-theme",e)})(e()),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.querySelector("#bd-theme");if(!r)return;let a=document.querySelector("#bd-theme-text"),o=document.querySelector(".theme-icon-active use"),l=document.querySelector(`[data-bs-theme-value="${e}"]`),c=l.querySelector("svg use").getAttribute("href");document.querySelectorAll("[data-bs-theme-value]").forEach(e=>{e.classList.remove("active"),e.setAttribute("aria-pressed","false")}),l.classList.add("active"),l.setAttribute("aria-pressed","true"),o.setAttribute("href",c);let n=`${a.textContent} (${l.dataset.bsThemeValue})`;r.setAttribute("aria-label",n),t&&r.focus()},window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{let r=localStorage.getItem("theme");"light"!==r&&"dark"!==r&&t(e())}),window.addEventListener("DOMContentLoaded",()=>{r(e()),document.querySelectorAll("[data-bs-theme-value]").forEach(e=>{e.addEventListener("click",()=>{let a=e.getAttribute("data-bs-theme-value");localStorage.setItem("theme",a),t(a),r(a,!0)})})}))})}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var l=a[e]={exports:{}};return r[e].call(l.exports,l,l.exports,o),l.exports}o.m=r,o.d=(e,t,r)=>{var a=(t,r)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,[r]:t[a]})};a(t,"get"),a(r,"value")};var l=o;o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e=[],o.O=(t,r,a,l)=>{if(r){l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[r,a,l];return}for(var n=1/0,c=0;c<e.length;c++){for(var[r,a,l]=e[c],s=!0,i=0;i<r.length;i++)(!1&l||n>=l)&&Object.keys(o.O).every(e=>o.O[e](r[i]))?r.splice(i--,1):(s=!1,l<n&&(n=l));if(s){e.splice(c--,1);var d=a();void 0!==d&&(t=d)}}return t},t={560:0},o.C=e=>{var r,a,l=e.__rspack_esm_ids,c=e.__webpack_modules__,n=e.__rspack_esm_runtime,s=0;for(r in c)o.o(c,r)&&(o.m[r]=c[r]);for(n&&n(o);s<l.length;s++)a=l[s],o.o(t,a)&&t[a]&&t[a][0](),t[l[s]]=0;o.O()},o.O.j=function(e){return 0===t[e]};import*as c from"./lib-polyfill.414ba6c64f.js";o.C(c);var n=o.O(void 0,["493"],()=>o(33229));o.O(n);export{l as __webpack_require__};
3//# sourceMappingURL=color-modes.3279b1bdd2.js.map

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.