Remove cookie consent popup

This commit is contained in:
MoreminiMore
2026-04-22 09:02:55 +07:00
parent f3ef4ab858
commit a4e4a8f074
73 changed files with 15608 additions and 9273 deletions

54
node_modules/.vite/deps/chunk-WM2KMMIK.js generated vendored Normal file
View File

@@ -0,0 +1,54 @@
import {
settings
} from "./chunk-LEX3GG7N.js";
// node_modules/astro/dist/runtime/client/dev-toolbar/apps/utils/window.js
function createWindowElement(content, placement = settings.config.placement) {
const windowElement = document.createElement("astro-dev-toolbar-window");
windowElement.innerHTML = content;
windowElement.placement = placement;
return windowElement;
}
function closeOnOutsideClick(eventTarget, additionalCheck) {
function onPageClick(event) {
const target = event.target;
if (!target) return;
if (!target.closest) return;
if (target.closest("astro-dev-toolbar")) return;
if (additionalCheck && additionalCheck(target)) return;
eventTarget.dispatchEvent(
new CustomEvent("toggle-app", {
detail: {
state: false
}
})
);
}
eventTarget.addEventListener("app-toggled", (event) => {
if (event.detail.state === true) {
document.addEventListener("click", onPageClick, true);
} else {
document.removeEventListener("click", onPageClick, true);
}
});
}
function synchronizePlacementOnUpdate(eventTarget, canvas) {
eventTarget.addEventListener("placement-updated", (evt) => {
if (!(evt instanceof CustomEvent)) {
return;
}
const windowElement = canvas.querySelector("astro-dev-toolbar-window");
if (!windowElement) {
return;
}
const event = evt;
windowElement.placement = event.detail.placement;
});
}
export {
createWindowElement,
closeOnOutsideClick,
synchronizePlacementOnUpdate
};
//# sourceMappingURL=chunk-WM2KMMIK.js.map