!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=127)}({127:function(e,t,n){"use strict";n.r(t),function(e,t){n(133);e(document).ready(function(){var n=document.createElement("iframe"),r=document.getElementById("timely-iframe-container");if(r){var a=window.location.href;n.id="timely-iframe",n.src=ajax_object?ajax_object.iframe_url:"https://app.time.ly/login?cms=1&callback=".concat(a),n.style.display="none",n.onload=function(){n.style.display="block"},r.appendChild(n);var o=e(document).height();e(n).height()+32<o&&(e(n).height(o),e("#timely-iframe-container").height(o)),window.addEventListener("message",function(e){var n=document.getElementById("timely-loader"),r=e.data.timely_external,a=r.data,o=null,i=null;a&&(o=a["X-Auth-Token"],i=a.expiryDate);var l=r.action,c={action:"auth_token",auth_token_nonce:ajax_object.auth_token_nonce,timely_token:o,expiry_date:i,timely_action:l};n.style.zIndex=9999,t.post(ajax_object.xhr_url,c,function(e){"logged out"!==e?(document.getElementById("timely-iframe").style.display="none",location.reload()):n.style.zIndex=0})},!1)}var i=e("ul.wp-submenu a[href*='#timely']");i.attr("target","_blank"),i.each(function(e){var t=i[e],n=t.href;t.href="https://".concat(n.substring(n.indexOf("#timely=")+"#timely=".length))});var l=e("ul.wp-submenu a[href*='page=timely']"),c=null;l.each(function(t){var r=l[t],a=r.href;r.classList.contains("current")&&(c=r),r.addEventListener("click",function(t){var o=a.substring(a.indexOf("page=")+"page=".length),i=document.getElementById("timely-loader"),l=e("#".concat(o)).val(),u=window.location.href;i.style.zIndex=9999,n.src=l||"https://app.time.ly/login?cms=1&callback_url=".concat(encodeURI(u)),n.onload=function(){setTimeout(function(){i.style.zIndex=0},1e3)},c.classList.remove("current"),c.parentElement.classList.remove("current"),r.classList.add("current"),r.parentElement.classList.add("current"),c=r,t.preventDefault()})}),document.getElementById("timely-update-message-button").addEventListener("click",function(){document.getElementById("timely-update-message").style.display="none"})})}.call(this,n(26),n(26))},133:function(e,t){},26:function(e,t){e.exports=jQuery}});
