HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/advanced-ads/assets/dist/admin-common.js
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var n=e.n(t);const a="advads-toast-container";globalThis.advancedAds.utils=globalThis.advancedAds.utils||{},globalThis.advancedAds.utils.createToast=function({type:e="muted",iconType:t,title:n,message:o,autoClose:s=!0,autoCloseTimeout:d=4e3,isDismissible:i=!0,actions:c="",inDialog:r=!1}){const l=function(e=!1){let t=document.getElementById(a);t||(t=document.createElement("div"),t.id=a,t.setAttribute("aria-live","polite"));let n=document.body;if(e){const e=document.querySelector(".advads-dialog[open]");e&&(n=e.querySelector(".advads-dialog-frame"))}return n.appendChild(t),t}(r),u=document.createElement("div");u.className=`advads-toast advads-toast-${e}`,i&&u.classList.add("advads-toast-dismissible");const m=document.createElement("div");m.className="advads-toast-icon",m.innerHTML=function(e){switch(e){case"muted":case"info":case"warning":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg>';case"success":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21.801 10A10 10 0 1 1 17 3.335"/><path d="m9 11 3 3L22 4"/></svg>';case"error":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>'}}(t||e||"info"),u.appendChild(m);const v=document.createElement("div");v.className="advads-toast-title",v.textContent=n;const h=document.createElement("div");h.className="advads-toast-message",h.textContent=o;const w=document.createElement("div");if(w.className="advads-toast-content",w.appendChild(v),w.appendChild(h),u.appendChild(w),c){const e=document.createElement("div");e.className="advads-toast-actions",e.innerHTML=c,u.appendChild(e)}if(i){const e=document.createElement("a");e.href="#",e.className="advads-toast-dismiss",e.setAttribute("aria-label","Dismiss"),e.innerHTML="&times;",e.addEventListener("click",()=>{u.remove()}),u.appendChild(e)}return l.appendChild(u),s&&setTimeout(()=>{u.remove()},d),u};const o=window.jQuery;var s=e.n(o);let d=0,i=0;function c(e){e.open&&"leave"!==e.dataset.state&&(window.dispatchEvent(new CustomEvent("advanced-ads-dialog-close",{detail:{dialog:e}})),e.dataset.state="leave",e.addEventListener("transitionend",()=>{e.dataset.state="closed",e.close(),function(){if(0===d||0!==--d)return;const{style:e}=document.body;e.overflow="",e.paddingRight=""}(),window.location.hash===`#${e.id}`&&window.history.replaceState("",document.title,window.location.pathname+window.location.search)},{once:!0}))}function r(){document.addEventListener("click",({target:e})=>{const t=e.closest("[data-dialog]");if(t){const e=document.querySelector(`#${window.CSS.escape(t.dataset.dialog)}`);return void(e&&function(e,t){if(e.open)return;window.dispatchEvent(new CustomEvent("advanced-ads-dialog-open",{detail:{dialog:e,opener:t}})),e.dataset.state="closed",e.showModal(),function(){if(1!==++d)return;i=window.innerWidth-document.documentElement.clientWidth;const{style:e}=document.body;e.overflow="hidden",i>0&&(e.paddingRight=`${i}px`)}(),window.requestAnimationFrame(()=>{e.dataset.state="enter"});const n=e.querySelector(".advads-dialog-frame")??e;n!==e||e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),n.focus()}(e,t))}const n=e.closest("[data-dialog-close]");if(n){const e=n.closest("dialog");return void(e&&c(e))}const a=e.closest("dialog.advads-dialog");!a||a.classList.contains("manual")||a.querySelector(".advads-dialog-frame")?.contains(e)||c(a)}),document.addEventListener("cancel",e=>{e.preventDefault(),c(e.target)});const e=()=>window.location.hash&&function(e){if(!e)return;const t=document.querySelector(`[data-dialog="${window.CSS.escape(e)}"]`);t?.click()}(window.location.hash.slice(1));e(),window.addEventListener("hashchange",e)}const l=advancedAds.i18n;n()(function(){!function(){const e=document.querySelector("#screen-meta-links");if(!e)return;const t=document.querySelector("#advads-header"),n=t.querySelector(".inner-wrap"),a=document.querySelector("#screen-meta");n.after(a),n.after(e);const o=t.querySelector("#adv-settings .submit");if(o){const e=document.createElement("button");e.type="button",e.className="advads-button button button-secondary",e.textContent=l.btnCloseLabel,o.appendChild(e),e.addEventListener("click",()=>{document.querySelector("#show-settings-link").click()})}}(),function(){const e=s()(".advads-tab-menu",".advads-tab-container");e.on("click","a",function(e){e.preventDefault();const t=s()(this),n=t.closest(".advads-tab-container"),a=s()(t.attr("href"));n.find("a.is-active").removeClass("is-active"),t.addClass("is-active"),n.find(".advads-tab-target").hide(),a.show()}),e.each(function(){const e=s()(this),{hash:t=!1}=globalThis.location;let n=e.find("a:first");t&&e.find("a[href="+t+"]").length>0&&(n=e.find("a[href="+t+"]")),n.trigger("click")})}(),document.querySelectorAll("[data-toggle]").forEach(function(e){e.addEventListener("click",function(){var e;e=this.getAttribute("data-toggle"),document.querySelectorAll(e).forEach(e=>{e.classList.toggle("hidden")})})}),r()})})();