← Back
Editing: widget.min.js
(()=>{"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var r=t.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var n=r.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=n[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})();const e=t.p+"images/black-friday-animated.svg";var r;function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var i,o=function(t,r){var n=document.querySelector(t.button);if(!n)return!1;var i=t.container?n.closest(t.container):n.parentElement;if(!i)return!1;if(!i.classList.contains("wpmudev-bf-widget")){i.classList.add("wpmudev-bf-widget"),t.plugin&&i.classList.add("wpmudev-bf-widget--".concat(t.plugin));var o=t.title?i.querySelector(t.title):null;if(o){var c=document.createElement("img");c.src=e,c.alt=r.black_friday_special,c.className="wpmudev-bf-widget-badge",c.width=291,c.height=54,o.appendChild(c)}}return a(t,i),n.classList.add("wpmudev-bf-widget-pending"),{button:n,container:i}},a=function(t,e){t.hide&&e.querySelectorAll(t.hide).forEach(function(t){t.style.display="none"})},c=window.wpmudevBFWidget;if(null!=c&&null!==(r=c.widgets)&&void 0!==r&&r.length){var l=c.translation_texts,u=function(t){if(Array.isArray(t))return n(t)}(i=c.widgets)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=new MutationObserver(function(){(u=u.filter(function(t){return!o(t,l)})).length||s.disconnect()});s.observe(document.documentElement,{childList:!0,subtree:!0});var d=function(){s.disconnect(),c.widgets.forEach(function(t){return function(t,e){var r=o(t,e);if(r){var n=r.button;n.style.transition="none",n.href=t.campaign_url,n.className="wpmudev-bf-widget-button",n.target="_blank",n.rel="noopener noreferrer",n.textContent=e.button_text,n.offsetHeight,n.style.transition=""}}(t,l)})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d()}})();
Save File
Cancel