!function(e){"use strict";var n=function(e,n){let t=e.data("id");document.querySelectorAll(".js-dark-mode-trigger-"+t).forEach((e=>{e.addEventListener("click",(e=>function(e){e.preventDefault(),nocturne.theme.value="light"===nocturne.theme.value?"dark":"light",nocturne.setPreference()}(e)))})),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(({matches:e})=>{nocturne.theme.value=e?"dark":"light",nocturne.setPreference()})),nocturne.reflectPreference()};jQuery(window).on("elementor/frontend/init",(()=>{elementorFrontend.hooks.addAction("frontend/element_ready/nocturne-switcher.default",n)}))}(jQuery);