!function(){"use strict";function e(e,t){var a=function(e,t){return"1"!==e.getAttribute("data-cta"+t+"-enabled")?null:{headerText:e.getAttribute("data-cta"+t+"-header-text")||"",headerLevel:e.getAttribute("data-cta"+t+"-header-level")||"h3",text:e.getAttribute("data-cta"+t+"-text")||"",imageUrl:e.getAttribute("data-cta"+t+"-image-url")||"",imageAlt:e.getAttribute("data-cta"+t+"-image-alt")||"",url:e.getAttribute("data-cta"+t+"-url")||"",linkType:e.getAttribute("data-cta"+t+"-link-type")||"button",linkText:e.getAttribute("data-cta"+t+"-link-text")||"",imageClickable:"1"===e.getAttribute("data-cta"+t+"-image-clickable"),elementId:e.getAttribute("data-cta"+t+"-element-id")||"",alignment:e.getAttribute("data-cta"+t+"-alignment")||"center"}}(e,t);if(a){var n=e.querySelector('[data-elementid="cta-slot-'+t+'"]');if(n){var l=function(e,t){var a=document.createElement("div"),n="ez-daily-cta-"+(e.alignment||"center");if(a.className="ez-daily-cta ez-daily-cta-"+t+" "+n,e.elementId&&(a.id=e.elementId),e.headerText){var l=["h2","h3","h4"].includes(e.headerLevel)?e.headerLevel:"h3",i=document.createElement(l);i.className="ez-daily-cta-header",i.textContent=e.headerText,a.appendChild(i)}if(e.text){var r=document.createElement("p");r.className="ez-daily-cta-text",r.textContent=e.text,a.appendChild(r)}if(e.imageUrl){var c=document.createElement("img");if(c.src=e.imageUrl,c.alt=e.imageAlt||"",c.className="ez-daily-cta-image","image"===e.linkType||e.imageClickable){var d=document.createElement("a");d.href=e.url,d.target="_blank",d.rel="noopener noreferrer",d.className="ez-daily-cta-image-link",d.appendChild(c),a.appendChild(d)}else a.appendChild(c)}if("image"!==e.linkType&&e.linkText){var o=document.createElement("a");o.href=e.url,o.target="_blank",o.rel="noopener noreferrer",o.textContent=e.linkText,"button"===e.linkType?o.className="wp-element-button ez-daily-cta-button":o.className="ez-daily-cta-link",a.appendChild(o)}return a}(a,t);n.parentNode.replaceChild(l,n)}}}function t(){document.querySelectorAll(".ez-horoscope-block").forEach(function(t){!function(t){"1"!==t.getAttribute("data-cta-processed")&&(e(t,1),e(t,2),e(t,3),t.setAttribute("data-cta-processed","1"))}(t)})}function a(){t(),new MutationObserver(function(e){var a=!1;e.forEach(function(e){e.addedNodes.length>0&&e.addedNodes.forEach(function(e){1===e.nodeType&&(e.classList&&e.classList.contains("ez-horoscope-block")||e.querySelector&&e.querySelector(".ez-horoscope-block"))&&(a=!0)})}),a&&setTimeout(t,100)}).observe(document.body,{childList:!0,subtree:!0})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a()}();