up to sf 7

This commit is contained in:
Tykayn 2025-02-09 16:45:35 +01:00 committed by tykayn
parent a39b6239b0
commit 501795a8fa
16586 changed files with 19384005 additions and 0 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,5 @@
/*!
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,78 @@
{
"entrypoints": {
"app": {
"css": [
"/app.25fa02d0.css"
],
"js": [
"/app.1ecd6d7a.js"
]
},
"form": {
"js": [
"/form.bcec6c2a.js"
]
},
"page-layout": {
"js": [
"/page-layout.3347892e.js"
]
},
"page-color-scheme": {
"js": [
"/page-color-scheme.30cb23c2.js"
]
},
"field-boolean": {
"js": [
"/field-boolean.ae2abe46.js"
]
},
"field-code-editor": {
"css": [
"/field-code-editor.cdcf15eb.css"
],
"js": [
"/field-code-editor.877c61fa.js"
]
},
"field-collection": {
"js": [
"/field-collection.f685c209.js"
]
},
"field-file-upload": {
"js": [
"/field-file-upload.7f9cb952.js"
]
},
"field-image": {
"js": [
"/field-image.c338d2ad.js"
]
},
"field-slug": {
"js": [
"/field-slug.df11f109.js"
]
},
"field-textarea": {
"js": [
"/field-textarea.74319bb1.js"
]
},
"field-text-editor": {
"css": [
"/field-text-editor.1b44e0f4.css"
],
"js": [
"/field-text-editor.cd20e325.js"
]
},
"login": {
"js": [
"/login.7259f5de.js"
]
}
}
}

View file

@ -0,0 +1 @@
(()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,i(o.key),o)}}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}function o(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll('td.field-boolean .form-switch input[type="checkbox"]').forEach((function(t){new f(t)}))}));var c=new WeakSet,f=n((function t(e){"use strict";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,c),this.field=e,this.field.addEventListener("change",r(c,this,u).bind(this))}));function u(){var t=this,e=this.field.checked,n=this.field.getAttribute("data-toggle-url")+"&newValue="+e.toString();fetch(n,{method:"PATCH",headers:{"X-Requested-With":"XMLHttpRequest"}}).then((function(e){return e.ok||r(c,t,a).call(t),e.text()})).then((function(){})).catch((function(){return r(c,t,a).call(t)}))}function a(){this.field.checked=!this.field.checked,this.field.disabled=!0,this.field.closest(".form-switch").classList.add("disabled")}})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
(()=>{var eaCollectionHandler=function(e){document.querySelectorAll("button.field-collection-add-button").forEach((function(e){var t=e.closest("[data-ea-collection-field]");t&&!t.classList.contains("processed")&&(EaCollectionProperty.handleAddButton(e,t),EaCollectionProperty.updateCollectionItemCssClasses(t))})),document.querySelectorAll("button.field-collection-delete-button").forEach((function(e){e.addEventListener("click",(function(){var t=e.closest("[data-ea-collection-field]");e.closest(".field-collection-item").remove(),document.dispatchEvent(new Event("ea.collection.item-removed")),EaCollectionProperty.updateCollectionItemCssClasses(t)}))}))};window.addEventListener("DOMContentLoaded",eaCollectionHandler),document.addEventListener("ea.collection.item-added",eaCollectionHandler);var EaCollectionProperty={handleAddButton:function handleAddButton(addButton,collection){addButton.addEventListener("click",(function(){var isArrayCollection=collection.classList.contains("field-array"),numItems=parseInt(collection.dataset.numItems),emptyCollectionBadge=this.parentElement.querySelector(".collection-empty");null!==emptyCollectionBadge&&(emptyCollectionBadge.outerHTML=isArrayCollection?'<div class="ea-form-collection-items"></div>':'<div class="ea-form-collection-items"><div class="accordion"><div class="form-widget-compound"><div data-empty-collection></div></div></div></div>');var formTypeNamePlaceholder=collection.dataset.formTypeNamePlaceholder,labelRegexp=new RegExp(formTypeNamePlaceholder+"label__","g"),nameRegexp=new RegExp(formTypeNamePlaceholder,"g"),newItemHtml=collection.dataset.prototype.replace(labelRegexp,numItems).replace(nameRegexp,numItems);collection.dataset.numItems=++numItems;var newItemInsertionSelector=isArrayCollection?".ea-form-collection-items":".ea-form-collection-items .accordion > .form-widget-compound [data-empty-collection]",collectionItemsWrapper=collection.querySelector(newItemInsertionSelector);collectionItemsWrapper.insertAdjacentHTML("beforeend",newItemHtml);var collectionItems=collectionItemsWrapper.querySelectorAll(".field-collection-item"),lastElement=collectionItems[collectionItems.length-1];if(lastElement.querySelectorAll("script").forEach((function(script){return eval(script.innerHTML)})),!isArrayCollection){EaCollectionProperty.updateCollectionItemCssClasses(collection);var lastElementCollapseButton=lastElement.querySelector(".accordion-button");lastElementCollapseButton.classList.remove("collapsed");var lastElementBody=lastElement.querySelector(".accordion-collapse");lastElementBody.classList.add("show")}document.dispatchEvent(new CustomEvent("ea.collection.item-added",{detail:{newElement:lastElement}}))})),collection.classList.add("processed")},updateCollectionItemCssClasses:function(e){if(null!==e){var t=e.querySelectorAll(".field-collection-item");t.forEach((function(e){return e.classList.remove("field-collection-item-first","field-collection-item-last")}));var l=t[0];if(void 0!==l){l.classList.add("field-collection-item-first");var o=t[t.length-1];void 0!==o&&o.classList.add("field-collection-item-last")}}}}})();

View file

@ -0,0 +1 @@
(()=>{"use strict";function t(t,e){e?(t.classList.remove("d-block"),t.classList.add("d-none")):(t.classList.remove("d-none"),t.classList.add("d-block"))}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,l=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw l}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function a(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(t,e){return t.get(s(t,e))}function s(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var u=function(t){document.querySelectorAll('.ea-fileupload input[type="file"]').forEach((function(t){new d(t)}))};window.addEventListener("DOMContentLoaded",u),document.addEventListener("ea.collection.item-added",u);var f=new WeakMap,h=new WeakSet,d=o((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(n=this,i=h),i.add(n),function(t,e,n){a(t,e),e.set(t,n)}(this,f,void 0),this.field=e,function(t,e,n){t.set(s(t,e),n)}(f,this,this.field.closest(".ea-fileupload")),this.field.addEventListener("change",s(h,this,y).bind(this));var r=s(h,this,m).call(this);r&&r.addEventListener("click",s(h,this,p).bind(this))}));function y(){var t=this;if(0!==this.field.files.length){var e,i=1===this.field.files.length?this.field.files[0].name:this.field.files.length+" "+this.field.getAttribute("data-files-label"),r=0,o=n(this.field.files);try{for(o.s();!(e=o.n()).done;){r+=e.value.size}}catch(t){o.e(t)}finally{o.f()}s(h,this,b).call(this).innerHTML=i,s(h,this,m).call(this).style.display="block",s(h,this,g).call(this).childNodes.forEach((function(e){e.nodeType===Node.TEXT_NODE&&s(h,t,g).call(t).removeChild(e)})),s(h,this,g).call(this).prepend(s(h,this,v).call(this,r))}}function p(){var e=this,n=c(f,this).querySelector("input[type=checkbox].form-check-input"),i=c(f,this).querySelector(".fileupload-list");n&&(n.checked=!0,n.click()),this.field.value="",s(h,this,b).call(this).innerHTML="",t(s(h,this,m).call(this),!0),s(h,this,g).call(this).childNodes.forEach((function(t){t.nodeType===Node.TEXT_NODE&&s(h,e,g).call(e).removeChild(t)})),null!==i&&t(i,!0)}function v(t){var e=Math.trunc(Math.floor(Math.log(t)/Math.log(1024)));return Math.trunc(t/Math.pow(1024,e))+["B","K","M","G","T","P","E","Z","Y"][e]}function b(){return c(f,this).querySelector(".custom-file-label")}function m(){return c(f,this).querySelector(".ea-fileupload-delete-btn")}function g(){return c(f,this).querySelector(".input-group-text")}})();

View file

@ -0,0 +1 @@
(()=>{var t={619:t=>{t.exports=function t(e,n,r){function o(a,c){if(!n[a]){if(!e[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};e[a][0].call(l.exports,(function(t){return o(e[a][1][t]||t)}),l,l.exports,t,e,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.create=n.visible=void 0;var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("div");return n.innerHTML=t.trim(),!0===e?n.children:n.firstChild},o=function(t,e){var n=t.children;return 1===n.length&&n[0].tagName===e},i=function(t){return null!=(t=t||document.querySelector(".basicLightbox"))&&!0===t.ownerDocument.body.contains(t)};n.visible=i,n.create=function(t,e){var n=function(t,e){var n=r('\n\t\t<div class="basicLightbox '.concat(e.className,'">\n\t\t\t<div class="basicLightbox__placeholder" role="dialog"></div>\n\t\t</div>\n\t')),i=n.querySelector(".basicLightbox__placeholder");t.forEach((function(t){return i.appendChild(t)}));var a=o(i,"IMG"),c=o(i,"VIDEO"),u=o(i,"IFRAME");return!0===a&&n.classList.add("basicLightbox--img"),!0===c&&n.classList.add("basicLightbox--video"),!0===u&&n.classList.add("basicLightbox--iframe"),n}(t=function(t){var e="string"==typeof t,n=t instanceof HTMLElement==1;if(!1===e&&!1===n)throw new Error("Content must be a DOM element/node or string");return!0===e?Array.from(r(t,!0)):"TEMPLATE"===t.tagName?[t.content.cloneNode(!0)]:Array.from(t.children)}(t),e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null==(t=Object.assign({},t)).closable&&(t.closable=!0),null==t.className&&(t.className=""),null==t.onShow&&(t.onShow=function(){}),null==t.onClose&&(t.onClose=function(){}),"boolean"!=typeof t.closable)throw new Error("Property `closable` must be a boolean");if("string"!=typeof t.className)throw new Error("Property `className` must be a string");if("function"!=typeof t.onShow)throw new Error("Property `onShow` must be a function");if("function"!=typeof t.onClose)throw new Error("Property `onClose` must be a function");return t}(e)),a=function(t){return!1!==e.onClose(c)&&function(t,e){return t.classList.remove("basicLightbox--visible"),setTimeout((function(){return!1===i(t)||t.parentElement.removeChild(t),e()}),410),!0}(n,(function(){if("function"==typeof t)return t(c)}))};!0===e.closable&&n.addEventListener("click",(function(t){t.target===n&&a()}));var c={element:function(){return n},visible:function(){return i(n)},show:function(t){return!1!==e.onShow(c)&&function(t,e){return document.body.appendChild(t),setTimeout((function(){requestAnimationFrame((function(){return t.classList.add("basicLightbox--visible"),e()}))}),10),!0}(n,(function(){if("function"==typeof t)return t(c)}))},close:a};return c}},{}]},{},[1])(1)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=n(619);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function a(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".ea-lightbox-thumbnail").forEach((function(t){new u(t)}))}));var c=new WeakSet,u=o((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,c),this.field=e,this.field.addEventListener("click",function(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}(c,this,l).bind(this))}));function l(){var e=document.querySelector(this.field.getAttribute("data-ea-lightbox-content-selector")).innerHTML;t.create(e).show()}})()})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */

View file

@ -0,0 +1 @@
(()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(e){var i=function(e,i){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,i||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==t(i)?i:i+""}var o=function(){"use strict";return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.field=e,this.field.addEventListener("input",this.autogrow.bind(this)),this.autogrow()},(i=[{key:"autogrow",value:function(){this.field.style.overflow="hidden",this.field.style.resize="none",this.field.style.boxSizing="border-box",this.field.style.height="auto",this.field.scrollHeight>0&&(this.field.style.height=this.field.scrollHeight+"px")}}])&&e(t.prototype,i),o&&e(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,o}();document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("[data-ea-textarea-field]").forEach((function(t){new o(t)}))}))})();

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
(()=>{var e=document.querySelector("form");e.addEventListener("submit",(function(){e.querySelector('button[type="submit"]').setAttribute("disabled","disabled")}),!1)})();

View file

@ -0,0 +1,26 @@
{
"app.css": "app.25fa02d0.css",
"app.js": "app.1ecd6d7a.js",
"form.js": "form.bcec6c2a.js",
"page-layout.js": "page-layout.3347892e.js",
"page-color-scheme.js": "page-color-scheme.30cb23c2.js",
"field-boolean.js": "field-boolean.ae2abe46.js",
"field-code-editor.css": "field-code-editor.cdcf15eb.css",
"field-code-editor.js": "field-code-editor.877c61fa.js",
"field-collection.js": "field-collection.f685c209.js",
"field-file-upload.js": "field-file-upload.7f9cb952.js",
"field-image.js": "field-image.c338d2ad.js",
"field-slug.js": "field-slug.df11f109.js",
"field-textarea.js": "field-textarea.74319bb1.js",
"field-text-editor.css": "field-text-editor.1b44e0f4.css",
"field-text-editor.js": "field-text-editor.cd20e325.js",
"login.js": "login.7259f5de.js",
"fonts/fa-solid-900.ttf": "fonts/fa-solid-900.ad1782c7.ttf",
"fonts/fa-brands-400.ttf": "fonts/fa-brands-400.26b80c88.ttf",
"fonts/fa-solid-900.woff2": "fonts/fa-solid-900.83a538a0.woff2",
"fonts/fa-brands-400.woff2": "fonts/fa-brands-400.fdbb5585.woff2",
"fonts/fa-regular-400.ttf": "fonts/fa-regular-400.05fdd87b.ttf",
"fonts/fa-regular-400.woff2": "fonts/fa-regular-400.4f6a2dab.woff2",
"fonts/fa-v4compatibility.ttf": "fonts/fa-v4compatibility.fa86b3c8.ttf",
"fonts/fa-v4compatibility.woff2": "fonts/fa-v4compatibility.c3ea317a.woff2"
}

View file

@ -0,0 +1 @@
(()=>{function e(t){return e="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},e(t)}function t(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,o(a.key),a)}}function o(t){var o=function(t,o){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,o||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"==e(o)?o:o+""}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(n(e,t))}function n(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,i=new WeakSet;function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("false"!==document.body.getAttribute("data-ea-dark-scheme-is-enabled")){var o="auto"===e?matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;document.body.classList.remove("ea-light-scheme","ea-dark-scheme"),document.body.classList.add("light"===o?"ea-light-scheme":"ea-dark-scheme"),!0===t&&localStorage.setItem(a(c,this),e),document.body.style.colorScheme=o,document.body.setAttribute("data-bs-theme","light"===o?"light":"dark")}}var u=new(function(){"use strict";return e=function e(){var t,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(t=this,o=i),o.add(t),function(e,t,o){r(e,t),t.set(e,o)}(this,c,void 0),function(e,t,o){e.set(n(e,t),o)}(c,this,"ea/colorScheme")},(o=[{key:"updateColorScheme",value:function(){var e=document.body.getAttribute("data-ea-default-color-scheme"),t=localStorage.getItem(a(c,this))||e||"auto";n(i,this,l).call(this,t)}},{key:"createColorSchemeSelector",value:function(){var e=this;if(null!==document.querySelector(".dropdown-settings a[data-ea-color-scheme]")){var t=document.querySelectorAll(".dropdown-settings"),o=localStorage.getItem(a(c,this))||"auto";t.forEach((function(t){var r=t.querySelectorAll("a.dropdown-appearance-item[data-ea-color-scheme]"),a=t.querySelector('a.dropdown-appearance-item[data-ea-color-scheme="'.concat(o,'"]'));r.forEach((function(e){e.classList.remove("active")})),a.classList.add("active"),r.forEach((function(t){t.addEventListener("click",(function(){var o=t.getAttribute("data-ea-color-scheme");n(i,e,l).call(e,o,!0);var r=document.querySelectorAll("a.dropdown-appearance-item[data-ea-color-scheme]"),a=document.querySelectorAll('a.dropdown-appearance-item[data-ea-color-scheme="'.concat(o,'"]'));r.forEach((function(e){e.classList.remove("active")})),a.forEach((function(e){e.classList.add("active")}))}))}))}))}}}])&&t(e.prototype,o),u&&t(e,u),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,o,u}());u.updateColorScheme(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(function(e){u.updateColorScheme()})),document.addEventListener("DOMContentLoaded",(function(){u.createColorSchemeSelector()}))})();

View file

@ -0,0 +1 @@
document.body.classList.add("ea-content-width-"+(localStorage.getItem("ea/content/width")||document.body.dataset.eaContentWidth),"ea-sidebar-width-"+(localStorage.getItem("ea/sidebar/width")||document.body.dataset.eaSidebarWidth));