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ACtB,MAAM,iBAAiB;YACrB,YAAY,IAAI;YAChB,WAAW,IAAI;YACf,eAAe,IAAI;YACnB,SAAS,IAAI;QACf;QAEA,MAAM,gBAAgB,SAAS,aAAa,CAAC;QAC7C,MAAM,cAAc,IAAI,iBAAiB,CAAC,YAAc;YACtD,UAAU,OAAO,CAAC,CAAC,WAAa;gBAC9B,SAAS,UAAU,CAAC,OAAO,CAAC,CAAC,OAAS;oBACpC,IAAI,CAAE,CAAA,gBAAgB,WAAU,GAAI;oBACpC,KAAK,SAAS,EAAE,IAAI;oBACpB,IAAI,CAAC,6BAA6B,CAAC;oBACnC,MAAM,aAAa,KAAK,gBAAgB,CAAC;oBACzC,WAAW,OAAO,CAAC,CAAC,YAAc;wBAChC,IAAI,UAAU,QAAQ,KAAK,KAAK,YAAY,EAC1C,IAAI,CAAC,6BAA6B,CAAC;oBAEvC;gBACF;YACF;QACF;QAEA,YAAY,OAAO,CAAC,cAAc,UAAU,EAAE;IAChD;AACF;AAEA,oBAAoB;AACpB,SAAS,gBAAgB,CAAC,oBAAoB,WAAY;IACxD,IAAI,cAAc,IAAI;AACxB;AAEA,iBAAiB;AACjB,OAAO,gBAAgB,CAAC,QAAQ,WAAY;AAC1C,uCAAuC;AACzC,IAEA,iEAAiE","sources":["node_modules/@parcel/runtime-browser-hmr/lib/runtime-51bee42d2a49fe3a.js","src/presets.js"],"sourcesContent":["var HMR_HOST = null;var HMR_PORT = 11509;var HMR_SECURE = false;var HMR_ENV_HASH = \"d6ea1d42532a7575\";module.bundle.HMR_BUNDLE_ID = \"f1e0f10d7d62eec6\";\"use strict\";\n\n/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, chrome, browser, globalThis, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */\n\n/*::\nimport type {\n HMRAsset,\n HMRMessage,\n} from '@parcel/reporter-dev-server/src/HMRServer.js';\ninterface ParcelRequire {\n (string): mixed;\n cache: {|[string]: ParcelModule|};\n hotData: {|[string]: mixed|};\n Module: any;\n parent: ?ParcelRequire;\n isParcelRequire: true;\n modules: {|[string]: [Function, {|[string]: string|}]|};\n HMR_BUNDLE_ID: string;\n root: ParcelRequire;\n}\ninterface ParcelModule {\n hot: {|\n data: mixed,\n accept(cb: (Function) => void): void,\n dispose(cb: (mixed) => void): void,\n // accept(deps: Array | string, cb: (Function) => void): void,\n // decline(): void,\n _acceptCallbacks: Array<(Function) => void>,\n _disposeCallbacks: Array<(mixed) => void>,\n |};\n}\ninterface ExtensionContext {\n runtime: {|\n reload(): void,\n getURL(url: string): string;\n getManifest(): {manifest_version: number, ...};\n |};\n}\ndeclare var module: {bundle: ParcelRequire, ...};\ndeclare var HMR_HOST: string;\ndeclare var HMR_PORT: string;\ndeclare var HMR_ENV_HASH: string;\ndeclare var HMR_SECURE: boolean;\ndeclare var chrome: ExtensionContext;\ndeclare var browser: ExtensionContext;\ndeclare var __parcel__import__: (string) => Promise;\ndeclare var __parcel__importScripts__: (string) => Promise;\ndeclare var globalThis: typeof self;\ndeclare var ServiceWorkerGlobalScope: Object;\n*/\nvar OVERLAY_ID = '__parcel__error__overlay__';\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData[moduleName],\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n module.bundle.hotData[moduleName] = undefined;\n}\n\nmodule.bundle.Module = Module;\nmodule.bundle.hotData = {};\nvar checkedAssets\n/*: {|[string]: boolean|} */\n, assetsToDispose\n/*: Array<[ParcelRequire, string]> */\n, assetsToAccept\n/*: Array<[ParcelRequire, string]> */\n;\n\nfunction getHostname() {\n return HMR_HOST || (location.protocol.indexOf('http') === 0 ? location.hostname : 'localhost');\n}\n\nfunction getPort() {\n return HMR_PORT || location.port;\n} // eslint-disable-next-line no-redeclare\n\n\nvar parent = module.bundle.parent;\n\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = getHostname();\n var port = getPort();\n var protocol = HMR_SECURE || location.protocol == 'https:' && !/localhost|127.0.0.1|0.0.0.0/.test(hostname) ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + (port ? ':' + port : '') + '/'); // Web extension context\n\n var extCtx = typeof chrome === 'undefined' ? typeof browser === 'undefined' ? null : browser : chrome; // Safari doesn't support sourceURL in error stacks.\n // eval may also be disabled via CSP, so do a quick check.\n\n var supportsSourceURL = false;\n\n try {\n (0, eval)('throw new Error(\"test\"); //# sourceURL=test.js');\n } catch (err) {\n supportsSourceURL = err.stack.includes('test.js');\n } // $FlowFixMe\n\n\n ws.onmessage = async function (event\n /*: {data: string, ...} */\n ) {\n checkedAssets = {}\n /*: {|[string]: boolean|} */\n ;\n assetsToAccept = [];\n assetsToDispose = [];\n var data\n /*: HMRMessage */\n = JSON.parse(event.data);\n\n if (data.type === 'update') {\n // Remove error overlay if there is one\n if (typeof document !== 'undefined') {\n removeErrorOverlay();\n }\n\n let assets = data.assets.filter(asset => asset.envHash === HMR_ENV_HASH); // Handle HMR Update\n\n let handled = assets.every(asset => {\n return asset.type === 'css' || asset.type === 'js' && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);\n });\n\n if (handled) {\n console.clear(); // Dispatch custom event so other runtimes (e.g React Refresh) are aware.\n\n if (typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') {\n window.dispatchEvent(new CustomEvent('parcelhmraccept'));\n }\n\n await hmrApplyUpdates(assets); // Dispose all old assets.\n\n let processedAssets = {}\n /*: {|[string]: boolean|} */\n ;\n\n for (let i = 0; i < assetsToDispose.length; i++) {\n let id = assetsToDispose[i][1];\n\n if (!processedAssets[id]) {\n hmrDispose(assetsToDispose[i][0], id);\n processedAssets[id] = true;\n }\n } // Run accept callbacks. This will also re-execute other disposed assets in topological order.\n\n\n processedAssets = {};\n\n for (let i = 0; i < assetsToAccept.length; i++) {\n let id = assetsToAccept[i][1];\n\n if (!processedAssets[id]) {\n hmrAccept(assetsToAccept[i][0], id);\n processedAssets[id] = true;\n }\n }\n } else fullReload();\n }\n\n if (data.type === 'error') {\n // Log parcel errors to console\n for (let ansiDiagnostic of data.diagnostics.ansi) {\n let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;\n console.error('🚨 [parcel]: ' + ansiDiagnostic.message + '\\n' + stack + '\\n\\n' + ansiDiagnostic.hints.join('\\n'));\n }\n\n if (typeof document !== 'undefined') {\n // Render the fancy html overlay\n removeErrorOverlay();\n var overlay = createErrorOverlay(data.diagnostics.html); // $FlowFixMe\n\n document.body.appendChild(overlay);\n }\n }\n };\n\n ws.onerror = function (e) {\n console.error(e.message);\n };\n\n ws.onclose = function () {\n console.warn('[parcel] 🚨 Connection to the HMR server was lost');\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n\n if (overlay) {\n overlay.remove();\n console.log('[parcel] ✨ Error resolved');\n }\n}\n\nfunction createErrorOverlay(diagnostics) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n let errorHTML = '
';\n\n for (let diagnostic of diagnostics) {\n let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame) => {\n return `${p}\n${frame.location}\n${frame.code}`;\n }, '') : diagnostic.stack;\n errorHTML += `\n
\n
\n 🚨 ${diagnostic.message}\n
\n
${stack}
\n
\n ${diagnostic.hints.map(hint => '
💡 ' + hint + '
').join('')}\n
\n ${diagnostic.documentation ? `` : ''}\n
\n `;\n }\n\n errorHTML += '
';\n overlay.innerHTML = errorHTML;\n return overlay;\n}\n\nfunction fullReload() {\n if ('reload' in location) {\n location.reload();\n } else if (extCtx && extCtx.runtime && extCtx.runtime.reload) {\n extCtx.runtime.reload();\n }\n}\n\nfunction getParents(bundle, id)\n/*: Array<[ParcelRequire, string]> */\n{\n var modules = bundle.modules;\n\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n\n if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {\n parents.push([bundle, k]);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction updateLink(link) {\n var newLink = link.cloneNode();\n\n newLink.onload = function () {\n if (link.parentNode !== null) {\n // $FlowFixMe\n link.parentNode.removeChild(link);\n }\n };\n\n newLink.setAttribute('href', // $FlowFixMe\n link.getAttribute('href').split('?')[0] + '?' + Date.now()); // $FlowFixMe\n\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\n\nvar cssTimeout = null;\n\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n\n for (var i = 0; i < links.length; i++) {\n // $FlowFixMe[incompatible-type]\n var href\n /*: string */\n = links[i].getAttribute('href');\n var hostname = getHostname();\n var servedFromHMRServer = hostname === 'localhost' ? new RegExp('^(https?:\\\\/\\\\/(0.0.0.0|127.0.0.1)|localhost):' + getPort()).test(href) : href.indexOf(hostname + ':' + getPort());\n var absolute = /^https?:\\/\\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;\n\n if (!absolute) {\n updateLink(links[i]);\n }\n }\n\n cssTimeout = null;\n }, 50);\n}\n\nfunction hmrDownload(asset) {\n if (asset.type === 'js') {\n if (typeof document !== 'undefined') {\n let script = document.createElement('script');\n script.src = asset.url + '?t=' + Date.now();\n\n if (asset.outputFormat === 'esmodule') {\n script.type = 'module';\n }\n\n return new Promise((resolve, reject) => {\n var _document$head;\n\n script.onload = () => resolve(script);\n\n script.onerror = reject;\n (_document$head = document.head) === null || _document$head === void 0 ? void 0 : _document$head.appendChild(script);\n });\n } else if (typeof importScripts === 'function') {\n // Worker scripts\n if (asset.outputFormat === 'esmodule') {\n return __parcel__import__(asset.url + '?t=' + Date.now());\n } else {\n return new Promise((resolve, reject) => {\n try {\n __parcel__importScripts__(asset.url + '?t=' + Date.now());\n\n resolve();\n } catch (err) {\n reject(err);\n }\n });\n }\n }\n }\n}\n\nasync function hmrApplyUpdates(assets) {\n global.parcelHotUpdate = Object.create(null);\n let scriptsToRemove;\n\n try {\n // If sourceURL comments aren't supported in eval, we need to load\n // the update from the dev server over HTTP so that stack traces\n // are correct in errors/logs. This is much slower than eval, so\n // we only do it if needed (currently just Safari).\n // https://bugs.webkit.org/show_bug.cgi?id=137297\n // This path is also taken if a CSP disallows eval.\n if (!supportsSourceURL) {\n let promises = assets.map(asset => {\n var _hmrDownload;\n\n return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch(err => {\n // Web extension bugfix for Chromium\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1255412#c12\n if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3) {\n if (typeof ServiceWorkerGlobalScope != 'undefined' && global instanceof ServiceWorkerGlobalScope) {\n extCtx.runtime.reload();\n return;\n }\n\n asset.url = extCtx.runtime.getURL('/__parcel_hmr_proxy__?url=' + encodeURIComponent(asset.url + '?t=' + Date.now()));\n return hmrDownload(asset);\n }\n\n throw err;\n });\n });\n scriptsToRemove = await Promise.all(promises);\n }\n\n assets.forEach(function (asset) {\n hmrApply(module.bundle.root, asset);\n });\n } finally {\n delete global.parcelHotUpdate;\n\n if (scriptsToRemove) {\n scriptsToRemove.forEach(script => {\n if (script) {\n var _document$head2;\n\n (_document$head2 = document.head) === null || _document$head2 === void 0 ? void 0 : _document$head2.removeChild(script);\n }\n });\n }\n }\n}\n\nfunction hmrApply(bundle\n/*: ParcelRequire */\n, asset\n/*: HMRAsset */\n) {\n var modules = bundle.modules;\n\n if (!modules) {\n return;\n }\n\n if (asset.type === 'css') {\n reloadCSS();\n } else if (asset.type === 'js') {\n let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];\n\n if (deps) {\n if (modules[asset.id]) {\n // Remove dependencies that are removed and will become orphaned.\n // This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.\n let oldDeps = modules[asset.id][1];\n\n for (let dep in oldDeps) {\n if (!deps[dep] || deps[dep] !== oldDeps[dep]) {\n let id = oldDeps[dep];\n let parents = getParents(module.bundle.root, id);\n\n if (parents.length === 1) {\n hmrDelete(module.bundle.root, id);\n }\n }\n }\n }\n\n if (supportsSourceURL) {\n // Global eval. We would use `new Function` here but browser\n // support for source maps is better with eval.\n (0, eval)(asset.output);\n } // $FlowFixMe\n\n\n let fn = global.parcelHotUpdate[asset.id];\n modules[asset.id] = [fn, deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n }\n}\n\nfunction hmrDelete(bundle, id) {\n let modules = bundle.modules;\n\n if (!modules) {\n return;\n }\n\n if (modules[id]) {\n // Collect dependencies that will become orphaned when this module is deleted.\n let deps = modules[id][1];\n let orphans = [];\n\n for (let dep in deps) {\n let parents = getParents(module.bundle.root, deps[dep]);\n\n if (parents.length === 1) {\n orphans.push(deps[dep]);\n }\n } // Delete the module. This must be done before deleting dependencies in case of circular dependencies.\n\n\n delete modules[id];\n delete bundle.cache[id]; // Now delete the orphans.\n\n orphans.forEach(id => {\n hmrDelete(module.bundle.root, id);\n });\n } else if (bundle.parent) {\n hmrDelete(bundle.parent, id);\n }\n}\n\nfunction hmrAcceptCheck(bundle\n/*: ParcelRequire */\n, id\n/*: string */\n, depsByBundle\n/*: ?{ [string]: { [string]: string } }*/\n) {\n if (hmrAcceptCheckOne(bundle, id, depsByBundle)) {\n return true;\n } // Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.\n\n\n let parents = getParents(module.bundle.root, id);\n let accepted = false;\n\n while (parents.length > 0) {\n let v = parents.shift();\n let a = hmrAcceptCheckOne(v[0], v[1], null);\n\n if (a) {\n // If this parent accepts, stop traversing upward, but still consider siblings.\n accepted = true;\n } else {\n // Otherwise, queue the parents in the next level upward.\n let p = getParents(module.bundle.root, v[1]);\n\n if (p.length === 0) {\n // If there are no parents, then we've reached an entry without accepting. Reload.\n accepted = false;\n break;\n }\n\n parents.push(...p);\n }\n }\n\n return accepted;\n}\n\nfunction hmrAcceptCheckOne(bundle\n/*: ParcelRequire */\n, id\n/*: string */\n, depsByBundle\n/*: ?{ [string]: { [string]: string } }*/\n) {\n var modules = bundle.modules;\n\n if (!modules) {\n return;\n }\n\n if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {\n // If we reached the root bundle without finding where the asset should go,\n // there's nothing to do. Mark as \"accepted\" so we don't reload the page.\n if (!bundle.parent) {\n return true;\n }\n\n return hmrAcceptCheck(bundle.parent, id, depsByBundle);\n }\n\n if (checkedAssets[id]) {\n return true;\n }\n\n checkedAssets[id] = true;\n var cached = bundle.cache[id];\n assetsToDispose.push([bundle, id]);\n\n if (!cached || cached.hot && cached.hot._acceptCallbacks.length) {\n assetsToAccept.push([bundle, id]);\n return true;\n }\n}\n\nfunction hmrDispose(bundle\n/*: ParcelRequire */\n, id\n/*: string */\n) {\n var cached = bundle.cache[id];\n bundle.hotData[id] = {};\n\n if (cached && cached.hot) {\n cached.hot.data = bundle.hotData[id];\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData[id]);\n });\n }\n\n delete bundle.cache[id];\n}\n\nfunction hmrAccept(bundle\n/*: ParcelRequire */\n, id\n/*: string */\n) {\n // Execute the module.\n bundle(id); // Run the accept callbacks in the new version of the module.\n\n var cached = bundle.cache[id];\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n var assetsToAlsoAccept = cb(function () {\n return getParents(module.bundle.root, id);\n });\n\n if (assetsToAlsoAccept && assetsToAccept.length) {\n assetsToAlsoAccept.forEach(function (a) {\n hmrDispose(a[0], a[1]);\n }); // $FlowFixMe[method-unbinding]\n\n assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);\n }\n });\n }\n}","let excludeSelectors = [];\r\nexcludeSelectors = [\"#adminmenuwrap\", \"#adminmenuwrap *\"];\r\nlet applyBgOverlay = false;\r\nif (DarklupJs.apply_bg_overlay == \"yes\") {\r\n applyBgOverlay = true;\r\n}\r\n// console.log(\"free dynamic presets 5\");\r\n// console.log(\"free dynamic presets 2\");\r\nclass Darkluplite {\r\n constructor() {\r\n this.setRequiredVariables();\r\n if (this.isGutenburg) {\r\n this.htmlElement.style.display = \"block\";\r\n return;\r\n }\r\n this.getAllElements();\r\n this.applyDarklupDarkModeToAll();\r\n\r\n if (this.isWpAdmin) {\r\n this.dashboardDarkMode();\r\n } else {\r\n this.frontEndDarkMode();\r\n }\r\n this.htmlElement.style.display = \"block\";\r\n }\r\n dashboardDarkMode() {\r\n this.dashboardWindowOnLoad();\r\n this.dashboardDarkModeSwitchEvent();\r\n this.windowOnLoaded();\r\n }\r\n frontEndDarkMode() {\r\n this.prevWindowOnLoad();\r\n this.prevDarkModeSwitchEvent();\r\n this.prevHandleKeyShortcut();\r\n this.windowOnLoaded();\r\n this.prevHandleOSDark();\r\n }\r\n setRequiredVariables() {\r\n this.allElements = [];\r\n this.allAnchors = [];\r\n this.allButtons = [];\r\n this.allInputs = [];\r\n this.allImages = [];\r\n this.allInlineSvgs = [];\r\n this.elementsWithText = [];\r\n this.elementsWithRealBgColor = [];\r\n this.elementsWithRealBorder = [];\r\n this.elementsWithBgImage = [];\r\n this.elementsWithAlphaBg = [];\r\n this.elementsWithBoxShadow = [];\r\n this.isWpAdmin = false;\r\n this.isGutenburg = false;\r\n this.maxArea = 0;\r\n this.htmlElement = document.querySelector(\"html\");\r\n this.switcherCheckbox = document.querySelector(\".switch-trigger\");\r\n this.switcherCheckboxes = document.querySelectorAll(\".switch-trigger\");\r\n this.switchTrigger = \".switch-trigger\";\r\n this.switchWrapper = document.querySelector(\".darkluplite-mode-switcher\");\r\n this.switchWrapper2 = document.querySelector(\"#wp-admin-bar-darkluplite-admin-switch\");\r\n this.switchWrapper3 = document.querySelector(\".darkluplite-menu-switch\");\r\n this.switchWrappers = [this.switchWrapper, this.switchWrapper2, this.switchWrapper3];\r\n this.floatingSwitch = this.switchWrapper?.querySelector(\".switch-trigger\");\r\n this.adminSwitch = this.switchWrapper2?.querySelector(\".switch-trigger\");\r\n this.menuSwitch = this.switchWrapper3?.querySelector(\".switch-trigger\");\r\n this.switches = [this.floatingSwitch, this.adminSwitch, this.menuSwitch];\r\n this.darkEnabledClass = \"darkluplite-dark-mode-enabled\";\r\n this.adminDarkEnabledClass = \"darkluplite-admin-dark-mode-enabled\";\r\n\r\n // Set Body Width And Primary BG\r\n let bodyElement = document.querySelector(\"body\");\r\n if (bodyElement.classList.contains(\"wp-admin\")) {\r\n this.isWpAdmin = true;\r\n }\r\n if (bodyElement.classList.contains(\"block-editor-page\")) {\r\n this.isGutenburg = true;\r\n }\r\n if (bodyElement.classList.contains(\"site-editor-php\")) {\r\n this.isGutenburg = true;\r\n }\r\n this.bodyWidth = this.getElementWidth(bodyElement);\r\n let bodyBg = this.hasBgColor(bodyElement);\r\n let htmlBg = this.hasBgColor(this.htmlElement);\r\n if (bodyBg) {\r\n this.primaryBg = bodyBg;\r\n } else if (htmlBg) {\r\n this.primaryBg = htmlBg;\r\n } else {\r\n this.primaryBg = \"rgb(255, 255, 255)\";\r\n bodyElement.classList.add(\"darkluplite--bg\");\r\n }\r\n }\r\n getAllElements() {\r\n let excludes, selectAll;\r\n\r\n excludes = [\r\n \"head\",\r\n \"meta\",\r\n \"link\",\r\n \"title\",\r\n \"style\",\r\n \"script\",\r\n \".darkluplite-mode-switcher\",\r\n \".darkluplite-mode-switcher *\",\r\n \".darkluplite-menu-switch\",\r\n \".darkluplite-menu-switch *\",\r\n \".darkluplite-switch-preview-inner\",\r\n \".darkluplite-switch-preview-inner *\",\r\n \".darkluplite-admin-settings-area .on-off-toggle\",\r\n \".darkluplite-admin-settings-area .on-off-toggle *\",\r\n \".wp-core-ui .darkluplite-section-title .button\",\r\n \".darklup-pro-ribbon\",\r\n \".wpc-color-picker--input\",\r\n \".wpc-color-picker--input *\",\r\n \".darklup-single-popup-wrapper .darklup-single-popup\",\r\n \"iframe\",\r\n // \".darkluplite-settings-area\",\r\n // '.darkluplite-dark-ignore',\r\n // \"a\",\r\n // \"a *\",\r\n // \"input\",\r\n // \"button\",\r\n // \"button *\",\r\n // \"select\",\r\n // \"textarea\",\r\n // \"svg\",\r\n // \"img\",\r\n // \"i\",\r\n \"video\",\r\n \"mark\",\r\n \"code\",\r\n \"pre\",\r\n \"ins\",\r\n \"option\",\r\n \"progress\",\r\n \"iframe\",\r\n \".mejs-iframe-overlay\",\r\n \"svg *\",\r\n \"path\",\r\n \"canvas\",\r\n // '.elementor-element-overlay',\r\n // '.elementor-background-overlay',\r\n \"#wpadminbar\",\r\n \"#wpadminbar *\",\r\n \"#wpadminbar a\",\r\n \"noscript\",\r\n ];\r\n\r\n if (excludeSelectors.length > 0) {\r\n excludes = [...excludeSelectors, ...excludes];\r\n }\r\n\r\n selectAll = this.excludeAndSelect(excludes, \"html, html *\");\r\n this.allElements = document.querySelectorAll(selectAll);\r\n }\r\n\r\n dashboardWindowOnLoad() {\r\n let adminDarkMode = this.isAdminDarkModeEnabled();\r\n if (adminDarkMode) {\r\n this.enableAdminDarkMode();\r\n }\r\n this.elementsWithRealBgColor.forEach((element) => {\r\n this.applyBgColor(element);\r\n });\r\n }\r\n prevWindowOnLoad() {\r\n if (this.isActiveDarkMode()) {\r\n this.enableDarkMode();\r\n }\r\n this.elementsWithRealBgColor.forEach((element) => {\r\n this.applyBgColor(element);\r\n });\r\n }\r\n isActiveDarkMode() {\r\n let darkModeActivity = false;\r\n let lightOnDefaultDarkMode = localStorage.getItem(\"lightOnDefaultDarkMode\");\r\n let lightOnOSDarkChecked = localStorage.getItem(\"lightOnOSDarkChecked\");\r\n let lightOnTimeBasedDarkMode = localStorage.getItem(\"lightOnTimeBasedDarkMode\");\r\n let defaultDarkMode = false;\r\n if (typeof isDefaultDarkModeEnabled !== \"undefined\") {\r\n defaultDarkMode = isDefaultDarkModeEnabled;\r\n }\r\n let OSDarkMode = false;\r\n if (typeof isOSDarkModeEnabled !== \"undefined\") {\r\n OSDarkMode = isOSDarkModeEnabled;\r\n }\r\n\r\n let darkMode = this.isDarkModeEnabled();\r\n if (darkMode) {\r\n darkModeActivity = true;\r\n } else if (defaultDarkMode && !lightOnDefaultDarkMode) {\r\n darkModeActivity = true;\r\n } else if (OSDarkMode && window.matchMedia && window.matchMedia(\"(prefers-color-scheme: dark)\").matches && !lightOnOSDarkChecked) {\r\n darkModeActivity = true;\r\n } else if (this.isActiveTimeBasedDarkMode() && !lightOnTimeBasedDarkMode) {\r\n darkModeActivity = true;\r\n }\r\n return darkModeActivity;\r\n }\r\n getUserTime() {\r\n let now = new Date();\r\n let hours = now.getHours();\r\n let minutes = now.getMinutes();\r\n if (hours < 10) hours = \"0\" + hours;\r\n if (minutes < 10) minutes = \"0\" + minutes;\r\n let time = hours + \":\" + minutes;\r\n return time;\r\n // console.log(time);\r\n }\r\n isActiveTimeBasedDarkMode() {\r\n let darkModeActivity = false;\r\n if (frontendObject.time_based_mode_active == \"yes\") {\r\n let startTime = this.createDateObject(frontendObject.time_based_mode_start_time);\r\n let endTime = this.createDateObject(frontendObject.time_based_mode_end_time);\r\n let currentTime = new Date();\r\n // console.log(currentTime, startTime, endTime);\r\n currentTime = Date.parse(currentTime) / 1000;\r\n startTime = Date.parse(startTime) / 1000;\r\n endTime = Date.parse(endTime) / 1000;\r\n\r\n if (startTime > endTime) {\r\n if (currentTime <= endTime) {\r\n darkModeActivity = true;\r\n }\r\n endTime += 24 * 3600;\r\n }\r\n\r\n if (currentTime >= startTime && currentTime <= endTime) {\r\n darkModeActivity = true;\r\n }\r\n\r\n // console.log(currentTime, startTime, endTime, darkModeActivity);\r\n }\r\n return darkModeActivity;\r\n }\r\n createDateObject(timeString) {\r\n // Split the time string into hour and minute components\r\n var parts = timeString.split(\":\");\r\n var hours = parseInt(parts[0]);\r\n var minutes = parseInt(parts[1]);\r\n\r\n // Create a new Date object with today's date and the specified time\r\n var now = new Date();\r\n var dateObject = new Date(now.getFullYear(), now.getMonth(), now.getDate(), hours, minutes);\r\n\r\n return dateObject;\r\n }\r\n\r\n dashboardDarkModeSwitchEvent() {\r\n this.switchWrappers.forEach((s) => {\r\n s?.addEventListener(\"click\", (e) => {\r\n if (e.target.classList.contains(\"switch-trigger\")) {\r\n let thisTrigger = e.target;\r\n if (thisTrigger.checked) {\r\n this.activateAdminDarkMode();\r\n } else {\r\n this.deactivateAdminDarkMode();\r\n }\r\n }\r\n });\r\n });\r\n }\r\n prevDarkModeSwitchEvent() {\r\n this.switchWrappers.forEach((s) => {\r\n s?.addEventListener(\"click\", (e) => {\r\n if (e.target.classList.contains(\"switch-trigger\")) {\r\n // this.htmlElement.classList.toggle(this.darkEnabledClass);\r\n let thisTrigger = e.target;\r\n if (thisTrigger.checked) {\r\n this.activateDarkMode();\r\n\r\n if (window.matchMedia && window.matchMedia(\"(prefers-color-scheme: dark)\").matches) {\r\n localStorage.removeItem(\"lightOnOSDarkChecked\");\r\n }\r\n if (this.switchWrapper.contains(thisTrigger)) {\r\n if (this.menuSwitch) this.menuSwitch.checked = true;\r\n } else {\r\n if (this.floatingSwitch) this.floatingSwitch.checked = true;\r\n }\r\n // if (this.switchWrapper.contains(thisTrigger)) {\r\n // if (this.adminSwitch) this.adminSwitch.checked = true;\r\n // } else {\r\n // if (this.floatingSwitch) this.floatingSwitch.checked = true;\r\n // }\r\n } else {\r\n this.deactivateDarkMode();\r\n\r\n if (window.matchMedia && window.matchMedia(\"(prefers-color-scheme: dark)\").matches) {\r\n localStorage.setItem(\"lightOnOSDarkChecked\", true);\r\n }\r\n\r\n if (isDefaultDarkModeEnabled) {\r\n localStorage.setItem(\"lightOnDefaultDarkMode\", true);\r\n }\r\n\r\n // if (frontendObject.timeBasedMode) {\r\n if (frontendObject.time_based_mode_active) {\r\n localStorage.setItem(\"lightOnTimeBasedDarkMode\", true);\r\n }\r\n\r\n if (this.switchWrapper.contains(thisTrigger)) {\r\n if (this.menuSwitch) this.menuSwitch.checked = false;\r\n } else {\r\n if (this.floatingSwitch) this.floatingSwitch.checked = false;\r\n }\r\n // if (this.switchWrapper.contains(thisTrigger)) {\r\n // if (this.adminSwitch) this.adminSwitch.checked = false;\r\n // } else {\r\n // if (this.floatingSwitch) this.floatingSwitch.checked = false;\r\n // }\r\n }\r\n }\r\n });\r\n });\r\n }\r\n\r\n prevHandleOSDark() {\r\n if (typeof isOSDarkModeEnabled !== \"undefined\") {\r\n if (isOSDarkModeEnabled) {\r\n let lightOnOSDarkChecked = localStorage.getItem(\"lightOnOSDarkChecked\");\r\n window.matchMedia(\"(prefers-color-scheme: dark)\").addEventListener(\"change\", (e) => {\r\n const newColorScheme = e.matches ? \"dark\" : \"light\";\r\n if (newColorScheme === \"dark\") {\r\n if (!lightOnOSDarkChecked) {\r\n this.enableDarkMode();\r\n }\r\n } else {\r\n this.disableDarkMode();\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n prevHandleKeyShortcut() {\r\n if (isKeyShortDarkModeEnabled) {\r\n let ctrlDown = false;\r\n document.addEventListener(\"keydown\", (e) => {\r\n if (e.which === 17) ctrlDown = true;\r\n });\r\n document.addEventListener(\"keyup\", (e) => {\r\n if (e.which === 17) ctrlDown = false;\r\n });\r\n document.addEventListener(\"keydown\", (event) => {\r\n if (ctrlDown && event.altKey && event.which === 68) {\r\n let darkMode = this.isDarkModeEnabled();\r\n if (darkMode) {\r\n this.deactivateDarkMode();\r\n } else {\r\n this.activateDarkMode();\r\n }\r\n }\r\n });\r\n }\r\n }\r\n activateDarkMode() {\r\n this.saveDarkModeStatus();\r\n this.enableDarkMode();\r\n }\r\n deactivateDarkMode() {\r\n this.removeDarkModeStatus();\r\n this.disableDarkMode();\r\n }\r\n activateAdminDarkMode() {\r\n this.saveAdminDarkModeStatus();\r\n this.enableAdminDarkMode();\r\n }\r\n deactivateAdminDarkMode() {\r\n this.removeAdminDarkModeStatus();\r\n this.disableAdminDarkMode();\r\n }\r\n saveDarkModeStatus() {\r\n localStorage.setItem(\"darklupModeEnabled\", this.darkEnabledClass);\r\n localStorage.setItem(\"triggerCheked\", \"checked\");\r\n }\r\n removeDarkModeStatus() {\r\n localStorage.removeItem(\"darklupModeEnabled\");\r\n localStorage.removeItem(\"triggerCheked\");\r\n }\r\n saveAdminDarkModeStatus() {\r\n localStorage.setItem(\"adminDarklupModeEnabled\", this.darkEnabledClass);\r\n localStorage.setItem(\"adminTriggerChecked\", \"checked\");\r\n }\r\n removeAdminDarkModeStatus() {\r\n localStorage.removeItem(\"adminDarklupModeEnabled\");\r\n localStorage.removeItem(\"adminTriggerChecked\");\r\n }\r\n enableDarkMode() {\r\n this.htmlElement.classList.add(this.darkEnabledClass);\r\n this.applyDynamicStyles();\r\n this.switches.forEach((s) => {\r\n if (s) s.checked = true;\r\n });\r\n }\r\n disableDarkMode() {\r\n this.htmlElement.classList.remove(this.darkEnabledClass);\r\n this.resetDynamicStyles();\r\n this.switches.forEach((s) => {\r\n if (s) s.checked = false;\r\n });\r\n }\r\n enableAdminDarkMode() {\r\n this.htmlElement.classList.add(this.adminDarkEnabledClass);\r\n\r\n this.applyDynamicStyles();\r\n this.switches.forEach((s) => {\r\n if (s) s.checked = true;\r\n });\r\n\r\n let darkIcon = document.querySelectorAll(\".admin-dark-icon\");\r\n let lightIcon = document.querySelectorAll(\".admin-light-icon\");\r\n\r\n darkIcon.forEach((i) => {\r\n i.style.display = \"block\";\r\n });\r\n lightIcon.forEach((i) => {\r\n i.style.display = \"none\";\r\n });\r\n }\r\n disableAdminDarkMode() {\r\n this.htmlElement.classList.remove(this.adminDarkEnabledClass);\r\n this.resetDynamicStyles();\r\n this.switches.forEach((s) => {\r\n if (s) s.checked = false;\r\n });\r\n\r\n let darkIcon = document.querySelectorAll(\".admin-dark-icon\");\r\n let lightIcon = document.querySelectorAll(\".admin-light-icon\");\r\n darkIcon.forEach((i) => {\r\n i.style.display = \"none\";\r\n });\r\n lightIcon.forEach((i) => {\r\n i.style.display = \"block\";\r\n });\r\n }\r\n // removed, may need for dashboard support\r\n dynamicSwitchStyle() {\r\n if (this.isWpAdmin) {\r\n let adminDarkMode = this.isAdminDarkModeEnabled();\r\n if (adminDarkMode) {\r\n this.applyDynamicStyles();\r\n } else {\r\n this.resetDynamicStyles();\r\n }\r\n } else {\r\n let darkMode = this.isDarkModeEnabled();\r\n if (darkMode) {\r\n this.applyDynamicStyles();\r\n } else {\r\n this.resetDynamicStyles();\r\n }\r\n }\r\n }\r\n documentOnReady() {\r\n // this.prevWindowOnLoad();\r\n document.addEventListener(\"DOMContentLoaded\", function () {});\r\n }\r\n windowOnLoaded() {\r\n // Window On Load\r\n window.addEventListener(\"load\", () => {\r\n // this.prevWindowOnLoad();\r\n this.handleDynamicContents();\r\n });\r\n }\r\n\r\n applyDarklupDarkModeToAll() {\r\n for (let element of this.allElements) {\r\n let tag = element.tagName?.toLowerCase();\r\n if (tag == \"a\") {\r\n let bgColor = this.hasBgColor(element);\r\n if (!bgColor) {\r\n element.classList.add(\"darkluplite--link\");\r\n }\r\n } else if (tag == \"button\") {\r\n element.classList.add(\"darkluplite--btn\");\r\n } else if (tag == \"img\") {\r\n element.classList.add(\"darkluplite--img\");\r\n } else if (tag == \"svg\") {\r\n element.classList.add(\"darkluplite--inline-svg\");\r\n } else if (tag == \"input\" || tag == \"textarea\" || tag == \"select\") {\r\n element.classList.add(\"darkluplite--input\");\r\n } else if (tag == \"del\") {\r\n element.classList.add(\"darkluplite--text\");\r\n } else {\r\n element.classList.add(\"wpc--darkluplite-element\");\r\n this.handleCommonElement(element);\r\n }\r\n this.handleBoxShadow(element);\r\n }\r\n }\r\n handleCommonElement(element) {\r\n let BgImage, bgColor;\r\n // For BG Image and Color\r\n BgImage = this.hasBgImage(element);\r\n if (BgImage) {\r\n this.elementsWithBgImage.push(element);\r\n }\r\n // For BG Color\r\n bgColor = this.hasBgColor(element);\r\n if (bgColor) {\r\n // console.log(bgColor);\r\n if (this.hasAlphaBgColor(element)) {\r\n this.elementsWithAlphaBg.push(element);\r\n element.classList.add(\"darkluplite--alpha-bg\");\r\n } else {\r\n this.elementsWithRealBgColor.push(element);\r\n }\r\n }\r\n\r\n /************************************************************ */\r\n // For Text\r\n if (this.hasOwnText(element)) {\r\n this.elementsWithText.push(element);\r\n element.classList.add(\"darkluplite--text\");\r\n }\r\n\r\n let sudoElements = [\"after\", \"before\"];\r\n sudoElements.forEach((e) => {\r\n let sudoStyle = window.getComputedStyle(element, `:${e}`);\r\n if (sudoStyle.content !== \"none\") {\r\n element.classList.add(`darkluplite--text-${e}`);\r\n }\r\n });\r\n\r\n /************************************************************ */\r\n // For border Color\r\n if (this.hasBorderWidth(element)) {\r\n this.elementsWithRealBorder.push(element);\r\n element.classList.add(\"darkluplite--border\");\r\n }\r\n }\r\n handleBoxShadow(element) {\r\n let boxShadow = getComputedStyle(element).boxShadow;\r\n if (boxShadow !== \"none\") {\r\n this.elementsWithBoxShadow.push(element);\r\n element.classList.add(\"wpc--darkluplite-box-shadow\");\r\n let bgColor = this.hasBgColor(element);\r\n if (!bgColor) {\r\n element.classList.add(\"wpc--darkluplite-non-bg-box-shadow\");\r\n }\r\n }\r\n }\r\n applyBoxShadow(e) {\r\n let boxShadow = getComputedStyle(e).boxShadow;\r\n let newShadow = this.replaceRgbColorValue(boxShadow);\r\n if (newShadow) {\r\n e.dataset.boxshadow = boxShadow;\r\n e.style.setProperty(\"box-shadow\", newShadow, \"important\");\r\n }\r\n }\r\n handleOsDarkMode() {\r\n if (isOSDarkModeEnabled) {\r\n let WpcFrontEndSwitcherClicked = localStorage.getItem(\"WpcFrontEndSwitcherClicked\");\r\n if (!WpcFrontEndSwitcherClicked) {\r\n window.matchMedia(\"(prefers-color-scheme: dark)\").addEventListener(\"change\", (e) => {\r\n const newColorScheme = e.matches ? \"dark\" : \"light\";\r\n if (newColorScheme === \"dark\") {\r\n this.applyDynamicStyles();\r\n } else {\r\n this.resetDynamicStyles();\r\n }\r\n });\r\n }\r\n }\r\n }\r\n applyDarkModeToDynamicElement(element) {\r\n let tag = element.tagName?.toLowerCase();\r\n if (tag == \"a\") {\r\n element.classList.add(\"darkluplite--link\");\r\n } else if (tag == \"button\") {\r\n element.classList.add(\"darkluplite--btn\");\r\n } else if (tag == \"img\") {\r\n element.classList.add(\"darkluplite--img\");\r\n } else if (tag == \"svg\") {\r\n element.classList.add(\"darkluplite--inline-svg\");\r\n } else if (tag == \"input\" || tag == \"textarea\" || tag == \"select\") {\r\n element.classList.add(\"darkluplite--input\");\r\n } else if (tag == \"del\") {\r\n element.classList.add(\"darkluplite--text\");\r\n } else {\r\n if (this.hasOwnText(element)) {\r\n element.classList.add(\"darkluplite--text\");\r\n }\r\n element.classList.add(\"wpc--darkluplite--observed\");\r\n }\r\n }\r\n getElementArea(element) {\r\n let area = 0;\r\n let dimensions = element.getBoundingClientRect();\r\n if (dimensions) area = dimensions.width * dimensions.height;\r\n return area;\r\n }\r\n activateSwitches() {\r\n if (this.isWpAdmin) {\r\n let adminDarkMode = this.isAdminDarkModeEnabled();\r\n if (adminDarkMode) {\r\n this.switches.forEach((s) => {\r\n if (s) s.checked = true;\r\n });\r\n }\r\n } else {\r\n if (this.isActiveDarkMode()) {\r\n this.switches.forEach((s) => {\r\n if (s) s.checked = true;\r\n });\r\n }\r\n }\r\n }\r\n getElementWidth(element) {\r\n // this.activateSwitches();\r\n this.htmlElement.style.display = \"block\";\r\n let width = 0;\r\n let dimensions = element?.getBoundingClientRect();\r\n if (dimensions) width = dimensions.width;\r\n this.htmlElement.style.display = \"none\";\r\n // console.log(width);\r\n return width;\r\n }\r\n getParentBg(element) {\r\n let parentBg = \"primary\";\r\n const closeBg = element.closest(\".darkluplite--bg-applied\");\r\n if (closeBg) {\r\n if (closeBg.classList.contains(\"darkluplite--bg\")) {\r\n parentBg = \"primary\";\r\n } else if (closeBg.classList.contains(\"darkluplite--secondary-bg\")) {\r\n parentBg = \"secondary\";\r\n } else if (closeBg.classList.contains(\"darkluplite--tertiary-bg\")) {\r\n parentBg = \"tertiary\";\r\n }\r\n }\r\n\r\n return parentBg;\r\n }\r\n parentHasTertiary(element) {\r\n let hasTertiary = false;\r\n let closeBg = element.closest(\".darkluplite--bg-applied\");\r\n if (closeBg) {\r\n if (closeBg.classList.contains(\"darkluplite--tertiary-bg\")) {\r\n hasTertiary = true;\r\n }\r\n }\r\n return hasTertiary;\r\n }\r\n hasBorderWidth(e) {\r\n let borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth;\r\n let style = window.getComputedStyle(e);\r\n borderTopWidth = parseFloat(style.getPropertyValue(\"border-top-width\"));\r\n borderRightWidth = parseFloat(style.getPropertyValue(\"border-right-width\"));\r\n borderBottomWidth = parseFloat(style.getPropertyValue(\"border-bottom-width\"));\r\n borderLeftWidth = parseFloat(style.getPropertyValue(\"border-left-width\"));\r\n\r\n if (borderTopWidth > 0 || borderRightWidth > 0 || borderBottomWidth > 0 || borderLeftWidth > 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n hasBgColor(e) {\r\n let style = window.getComputedStyle(e);\r\n let bgColor = style.getPropertyValue(\"background-color\");\r\n let isRealBgColor = bgColor !== \"rgba(0, 0, 0, 0)\" && bgColor !== \"transparent\" && bgColor !== \"inherit\";\r\n if (isRealBgColor) {\r\n if (bgColor.includes(\"rgba\")) {\r\n let alphaValue;\r\n alphaValue = this.getRgbaAlpha(bgColor);\r\n if (alphaValue && alphaValue == 0) return false;\r\n }\r\n return bgColor;\r\n } else {\r\n return false;\r\n }\r\n }\r\n hasOwnText(e) {\r\n let txtVal;\r\n txtVal = e.childNodes[0]?.nodeValue?.trim();\r\n if (!txtVal) {\r\n txtVal = e.childNodes[e.childNodes.length - 1]?.nodeValue?.trim();\r\n }\r\n if (txtVal !== \"\" && typeof txtVal !== \"undefined\" && txtVal !== \"inherit\") {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n getRgbaAlpha(color) {\r\n let alphaValue = false;\r\n let rgbaMatch = color.match(/rgba?\\((\\d{1,3}), (\\d{1,3}), (\\d{1,3}),? ?([\\d\\.]*)?\\)/);\r\n if (rgbaMatch) {\r\n alphaValue = rgbaMatch[4] ? rgbaMatch[4] : false;\r\n }\r\n return alphaValue;\r\n }\r\n hasAlphaBgColor(e) {\r\n let style = window.getComputedStyle(e);\r\n let bgColor = style.getPropertyValue(\"background-color\");\r\n let rgbaMatch = bgColor.match(/rgba?\\((\\d{1,3}), (\\d{1,3}), (\\d{1,3}),? ?([\\d\\.]*)?\\)/);\r\n let alphaValue = false;\r\n if (rgbaMatch) {\r\n alphaValue = rgbaMatch[4] ? parseFloat(rgbaMatch[4]) : false;\r\n }\r\n return alphaValue;\r\n }\r\n OpApplyBgColor(e) {\r\n let elementWidth = this.getElementWidth(e);\r\n let bgColor = this.hasBgColor(e);\r\n if (bgColor) {\r\n let alphaValue = this.hasAlphaBgColor(e);\r\n if (alphaValue) {\r\n e.classList.add(\"darkluplite--alpha-bg\");\r\n } else if (elementWidth == this.bodyWidth) {\r\n if (bgColor == this.primaryBg) {\r\n e.classList.add(\"darkluplite--bg\");\r\n } else {\r\n e.classList.add(\"darkluplite--secondary-bg\");\r\n }\r\n e.classList.add(\"darkluplite--bg-applied\");\r\n } else if (this.bodyWidth > elementWidth && elementWidth > 0) {\r\n if (this.parentHasTertiary(e)) {\r\n e.classList.add(\"darkluplite--secondary-bg\");\r\n // e.classList.add(\"darkluplite--tertiary-bg\");\r\n } else {\r\n e.classList.add(\"darkluplite--tertiary-bg\");\r\n }\r\n e.classList.add(\"darkluplite--bg-applied\");\r\n } else {\r\n e.classList.add(\"darkluplite--bg\");\r\n e.classList.add(\"darkluplite--bg-applied\");\r\n }\r\n }\r\n }\r\n getBgColor(e) {\r\n let style = window.getComputedStyle(e);\r\n let appliedBgColor = style.getPropertyValue(\"background-color\");\r\n return appliedBgColor;\r\n }\r\n\r\n applyBgColor(e) {\r\n let elementWidth = this.getElementWidth(e);\r\n // console.log(elementWidth);\r\n let bgColor = this.hasBgColor(e);\r\n if (bgColor) {\r\n let alphaValue = this.hasAlphaBgColor(e);\r\n if (alphaValue) {\r\n e.classList.add(\"darkluplite--alpha-bg\");\r\n } else if (elementWidth == this.bodyWidth) {\r\n if (bgColor == this.primaryBg) {\r\n e.classList.add(\"darkluplite--bg\");\r\n } else {\r\n e.classList.add(\"darkluplite--secondary-bg\");\r\n }\r\n e.classList.add(\"darkluplite--bg-applied\");\r\n } else if (this.bodyWidth > elementWidth && elementWidth > 0) {\r\n let parentBg = this.getParentBg(e);\r\n if (parentBg == \"primary\" || parentBg == \"secondary\") {\r\n e.classList.add(\"darkluplite--tertiary-bg\");\r\n } else {\r\n // e.classList.add(\"darkluplite--secondary-bg\");\r\n e.classList.add(\"darkluplite--bg\");\r\n }\r\n e.classList.add(\"darkluplite--bg-applied\");\r\n } else {\r\n // e.classList.add(\"darkluplite--bg\");\r\n e.classList.add(\"darkluplite--bg-applied\");\r\n e.classList.add(\"darkluplite--tertiary-bg\");\r\n }\r\n }\r\n }\r\n applyAlphaBgColor(e) {\r\n let alphaValue = this.hasAlphaBgColor(e);\r\n if (alphaValue) {\r\n let newBg = DarklupJs.secondary_bg;\r\n let style = window.getComputedStyle(e);\r\n let bgColor = style.getPropertyValue(\"background-color\");\r\n e.dataset.alphabg = bgColor;\r\n let alphaBg = newBg.replace(\")\", `, ${alphaValue})`).replace(\"rgb\", \"rgba\");\r\n e.style.backgroundColor = alphaBg;\r\n }\r\n }\r\n\r\n hasBgImage(e) {\r\n // let bgImage = getComputedStyle(e).getPropertyValue(\"background-image\");\r\n let bgImage = getComputedStyle(e).backgroundImage;\r\n if (bgImage !== \"none\" && (bgImage.includes(\"linear-gradient\") || bgImage.includes(\"url\"))) {\r\n return bgImage;\r\n } else {\r\n return false;\r\n }\r\n }\r\n applyBgImage(element) {\r\n let BgImage = this.hasBgImage(element);\r\n if (BgImage) {\r\n if (BgImage.includes(\"linear-gradient\") && BgImage.includes(\"url\")) {\r\n element.classList.add(\"darkluplite-bg-gradient--image\");\r\n } else if (BgImage.includes(\"url\")) {\r\n element.classList.add(\"darkluplite-bg--image\");\r\n if (!this.alreadyHasOverlay(element)) {\r\n if (applyBgOverlay) {\r\n let imgGrad = `linear-gradient(rgba(0, 0, 0, ${DarklupJs.bg_image_dark_opacity}), rgba(0, 0, 0,${DarklupJs.bg_image_dark_opacity}))`;\r\n let imgOverlay = `${imgGrad}, ${BgImage}`;\r\n element.style.setProperty(\"background-image\", imgOverlay);\r\n }\r\n }\r\n this.addDarkenClassToChild(element);\r\n } else if (BgImage.includes(\"linear-gradient\")) {\r\n element.classList.add(\"darkluplite-bg-gradient\");\r\n this.applyGradientBgImage(element);\r\n this.addDarkenClassToChild(element);\r\n }\r\n element.dataset.lightbg = BgImage;\r\n }\r\n }\r\n alreadyHasOverlay(element) {\r\n let hasOverlay = false;\r\n if (element.classList.contains(\"darkluplite-under-darken-bg\")) {\r\n hasOverlay = true;\r\n }\r\n let overlay = element.querySelector(\":scope > .elementor-background-overlay\");\r\n if (overlay) {\r\n let overlayBgImage = this.hasBgImage(overlay);\r\n let overlayBgColor = this.hasBgColor(overlay);\r\n if (overlayBgImage) {\r\n hasOverlay = true;\r\n } else if (overlayBgColor) {\r\n hasOverlay = true;\r\n }\r\n }\r\n\r\n return hasOverlay;\r\n }\r\n replaceRgbColorValue(currentStr) {\r\n let newColor1 = DarklupJs.primary_bg;\r\n let newColor2 = DarklupJs.secondary_bg;\r\n let newColor3 = DarklupJs.tertiary_bg;\r\n let newColors = [newColor1, newColor2, newColor3];\r\n let newStr = \"\";\r\n\r\n const colorRegexMatch = /rgba?\\((\\s*\\d{1,3}\\s*,){2}\\s*\\d{1,3}\\s*(,\\s*[0-9\\.]+)?\\)/g;\r\n const rgbaMatches = currentStr.match(colorRegexMatch);\r\n\r\n newColors.forEach((color, i) => {\r\n if (!rgbaMatches[i]) return;\r\n if (color.includes(\"rgba\")) {\r\n if (rgbaMatches[i]) {\r\n newStr = currentStr?.replace(rgbaMatches[i], color);\r\n currentStr = newStr;\r\n }\r\n } else if (color.includes(\"rgb\") && rgbaMatches[i].includes(\"rgb\") && !rgbaMatches[i].includes(\"rgba\")) {\r\n if (rgbaMatches[i]) {\r\n newStr = currentStr?.replace(rgbaMatches[i], color);\r\n currentStr = newStr;\r\n }\r\n } else if (color.includes(\"rgb\") && rgbaMatches[i].includes(\"rgba\")) {\r\n let lastCommaPosition = rgbaMatches[i].lastIndexOf(\",\");\r\n let alphaStr = rgbaMatches[i].slice(lastCommaPosition);\r\n color = color.replace(\"rgb(\", \"rgba(\").replace(\")\", alphaStr);\r\n newStr = currentStr?.replace(rgbaMatches[i], color);\r\n currentStr = newStr;\r\n }\r\n });\r\n return newStr;\r\n // console.log(newStr);\r\n }\r\n applyGradientBgImage(element) {\r\n let currentBg = getComputedStyle(element).getPropertyValue(\"background-image\");\r\n // console.log(`Current Gradient ${currentBg}`);\r\n if (currentBg !== \"none\" && currentBg.includes(\"linear-gradient\")) {\r\n // let newColors = ['rgba(23, 24, 25)', 'rgba(26, 27, 28)'];\r\n // let newColors = ['rgba(23, 24, 25, 0.5)', 'rgba(26, 27, 28, 0.6)'];\r\n let newColor1 = DarklupJs.primary_bg;\r\n let newColor2 = DarklupJs.secondary_bg;\r\n let newColors = [newColor1, newColor2];\r\n let newGradient;\r\n newGradient = `linear-gradient(${DarklupJs.primary_bg}, ${DarklupJs.secondary_bg})`;\r\n // newGradient = `linear-gradient(${DarklupJs.primary_bg_rgba}, ${DarklupJs.secondary_bg_rgba})`;\r\n const colorRegexMatch = /rgba?\\((\\s*\\d{1,3}\\s*,){2}\\s*\\d{1,3}\\s*(,\\s*[0-9\\.]+)?\\)/g;\r\n const rgbaMatches = currentBg.match(colorRegexMatch);\r\n\r\n newColors.forEach((color, i) => {\r\n if (color.includes(\"rgba\")) {\r\n if (rgbaMatches[i]) {\r\n newGradient = currentBg?.replace(rgbaMatches[i], color);\r\n currentBg = newGradient;\r\n }\r\n } else if (color.includes(\"rgb\") && rgbaMatches[i].includes(\"rgb\") && !rgbaMatches[i].includes(\"rgba\")) {\r\n if (rgbaMatches[i]) {\r\n newGradient = currentBg?.replace(rgbaMatches[i], color);\r\n currentBg = newGradient;\r\n }\r\n } else if (color.includes(\"rgb\") && rgbaMatches[i].includes(\"rgba\")) {\r\n let lastCommaPosition = rgbaMatches[i].lastIndexOf(\",\");\r\n let alphaStr = rgbaMatches[i].slice(lastCommaPosition);\r\n color = color.replace(\"rgb(\", \"rgba(\").replace(\")\", alphaStr);\r\n newGradient = currentBg?.replace(rgbaMatches[i], color);\r\n currentBg = newGradient;\r\n }\r\n });\r\n\r\n if (rgbaMatches) {\r\n if (newGradient) element.style.backgroundImage = newGradient;\r\n }\r\n // console.log(`newGradient ${newGradient}`);\r\n }\r\n }\r\n\r\n addDarkenClassToChild(element) {\r\n let darkenChild = element.querySelectorAll(`*`);\r\n if (darkenChild) {\r\n darkenChild.forEach((e) => {\r\n e.classList.add(\"darkluplite-under-darken-bg\");\r\n });\r\n }\r\n }\r\n\r\n resetBgImage(e) {\r\n e.style.backgroundImage = e.dataset.lightbg;\r\n }\r\n resetAlphaBgColor(e) {\r\n e.style.backgroundColor = e.dataset.alphabg;\r\n }\r\n resetBoxShadow(e) {\r\n e.style.boxShadow = e.dataset.boxshadow;\r\n }\r\n excludeAndSelect(excludes = [], selector = \"html *\") {\r\n excludes.forEach(function (exclude) {\r\n selector += `:not(${exclude})`;\r\n });\r\n return selector;\r\n }\r\n isDarkModeEnabled() {\r\n let darkMode = localStorage.getItem(\"darklupModeEnabled\");\r\n let getTriggerChecked = localStorage.getItem(\"triggerCheked\");\r\n if (darkMode && getTriggerChecked) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n isAdminDarkModeEnabled() {\r\n let darkMode = localStorage.getItem(\"adminDarklupModeEnabled\");\r\n let getTriggerChecked = localStorage.getItem(\"adminTriggerChecked\");\r\n if (darkMode && getTriggerChecked) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n applyDynamicStyles() {\r\n this.elementsWithBgImage?.forEach((element) => this.applyBgImage(element));\r\n this.elementsWithAlphaBg?.forEach((element) => this.applyAlphaBgColor(element));\r\n this.elementsWithBoxShadow?.forEach((element) => this.applyBoxShadow(element));\r\n }\r\n resetDynamicStyles() {\r\n this.elementsWithBgImage?.forEach((element) => this.resetBgImage(element));\r\n this.elementsWithAlphaBg?.forEach((element) => this.resetAlphaBgColor(element));\r\n this.elementsWithBoxShadow?.forEach((element) => this.resetBoxShadow(element));\r\n }\r\n // Initializes the mutation observer for dynamically added elements\r\n handleDynamicContents() {\r\n const observerConfig = {\r\n attributes: true,\r\n childList: true,\r\n characterData: true,\r\n subtree: true,\r\n };\r\n\r\n const parentElement = document.querySelector(\"body\");\r\n const newObserver = new MutationObserver((mutations) => {\r\n mutations.forEach((mutation) => {\r\n mutation.addedNodes.forEach((node) => {\r\n if (!(node instanceof HTMLElement)) return;\r\n node.classList?.add(\"wpc-darklup-observer--node\");\r\n this.applyDarkModeToDynamicElement(node);\r\n const childNodes = node.querySelectorAll(\"*\");\r\n childNodes.forEach((childNode) => {\r\n if (childNode.nodeType === Node.ELEMENT_NODE) {\r\n this.applyDarkModeToDynamicElement(childNode);\r\n }\r\n });\r\n });\r\n });\r\n });\r\n\r\n newObserver.observe(parentElement.parentNode, observerConfig);\r\n }\r\n}\r\n\r\n// Document on Ready\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n let darkluplite = new Darkluplite();\r\n});\r\n\r\n// Window On Load\r\nwindow.addEventListener(\"load\", function () {\r\n // let darkluplite = new Darkluplite();\r\n});\r\n\r\n// console.log(`Hi Mahbub, your darkup calculation is complete`);\r\n"],"names":[],"version":3,"file":"presets.js.map","sourceRoot":"../../dynamic-colors/"}