/* eslint-disable */ (function () { /* eslint-disable */ if (!window.$mcSite) { $mcSite = { optinFeatures: [], enableOptIn: function () { this.createCookie("mc_user_optin", true, 365); this.optinFeatures.forEach(function (fn) { fn(); }); }, runIfOptedIn: function (fn) { if (this.hasOptedIn()) { fn(); } else { this.optinFeatures.push(fn); } }, hasOptedIn: function () { var cookieValue = this.readCookie("mc_user_optin"); if (cookieValue === undefined) { return true; } return cookieValue === "true"; }, createCookie: function (name, value, expirationDays) { var cookie_value = encodeURIComponent(value) + ";"; if (expirationDays === undefined) { throw new Error("expirationDays is not defined"); } // set expiration if (expirationDays !== null) { var expirationDate = new Date(); expirationDate.setDate(expirationDate.getDate() + expirationDays); cookie_value += " expires=" + expirationDate.toUTCString() + ";"; } cookie_value += "path=/"; document.cookie = name + "=" + cookie_value; }, readCookie: function (name) { var nameEQ = name + "="; var ca = document.cookie.split(";"); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === " ") { c = c.substring(1, c.length); } if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return undefined; } }; } $mcSite.popup_form={settings:{base_url:"mc.us14.list-manage.com",list_id:"5fb53de73c",uuid:"f1515399095f40ae4de9b6e4e",skip_install:""}}; })(); (function () { if (window.$mcSite === undefined || window.$mcSite.popup_form === undefined) { return; } if (window.location.href.indexOf("checkout.shopify") >= 0) { return; } var scripts = document.getElementsByTagName("script"); for (var i = 0; i < scripts.length; i++) { // look for src containing the old embed.js code and bail if it exists if (scripts[i].getAttribute("src") === "//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" || scripts[i].getAttribute("src") === "//downloads.mailchimp.com/js/signup-forms/popup/embed.js") { return; } } var module = window.$mcSite.popup_form; if (module.installed === true) { return; } if (!module.settings) { return; } var settings = module.settings; if (!settings.base_url || !settings.uuid || !settings.list_id || settings.skip_install === "1") { return; } var script = document.createElement("script"); script.src = "//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js"; script.type = "text/javascript"; script.onload = function () { if (window.dojoRequire) { window.dojoRequire(["mojo/signup-forms/Loader"], function (L) { L.start({"baseUrl": settings.base_url, "uuid": settings.uuid, "lid": settings.list_id, "uniqueMethods": true}); }); } }; document.body.appendChild(script); window.$mcSite.popup_form.installed = true; }());