-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmf.js
More file actions
2 lines (2 loc) · 19.7 KB
/
Copy pathmf.js
File metadata and controls
2 lines (2 loc) · 19.7 KB
1
2
/*! v.39.1 */
!function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t,i){"use strict";function n(){var e=document.documentElement,t=document.getElementsByTagName("body")[0];return{width:window.innerWidth||e.clientWidth||t.clientWidth,height:window.innerHeight||e.clientHeight||t.clientHeight}}function o(e,t){for(var i=t.split("."),n=0,o=i.length;n<o;n++){var a=i[n];if(!(null!==e&&"object"===(void 0===e?"undefined":c(e))&&a in e))return!1;e=e[a]}return!0}function a(e,t){var i=n();i.width>=e?$(".mf-wrapper").css({width:e+"px"}):$(".mf-wrapper").css({width:"100%"}),i.height>=t?$(".mf-wrapper").css({height:t+"px"}):$(".mf-wrapper").css({height:"100%"})}function r(e){for(var t="",i=new Uint8Array(e),n=i.byteLength,o=0;o<n;o++)t+=String.fromCharCode(i[o]);return window.btoa(t)}function s(e,t){var i=document.createElement("script");i.src=e,i.type="text/javascript",i.async=!0,i.onload=t;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n)}t.f=n,t.c=o,t.e=a,t.g=r,t.a=s,i.d(t,"b",function(){return p}),i.d(t,"d",function(){return l});var u=i(3),d=i(1),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p={PREFIX:"mf_",get:function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+this.PREFIX+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},set:function(e,t,i){i=i||{},void 0===i.path&&(i.path="/"),void 0===i.domain&&(void 0!==u.a.subscribe.cookie_domain?i.domain=u.a.subscribe.cookie_domain:i.domain=location.host);var n=i.expires;if("number"==typeof n&&n){var o=new Date;o.setTime(o.getTime()+n),n=i.expires=o.toUTCString()}else if(n&&n.toUTCString)i.expires=n.toUTCString();else{var a=new Date;a.setTime(a.getTime()+31536e6),n=i.expires=a.toUTCString()}t=encodeURIComponent(t);var r=this.PREFIX+e+"="+t;for(var s in i){r+="; "+s;var d=i[s];!0!==d&&(r+="="+d)}document.cookie=r}},l=function(){var e;d.a.debug&&(e=console).log.apply(e,arguments)}},function(e,t,i){"use strict";t.a={}},function(e,t,i){"use strict";t.a={showDelay:1e4,registeredNextDelay:6048e5,showedNextDelay:6048e5,showedKey:"popup_showed_v1",resubShowedKey:"popup_resub_showed_v1",showedSecondKey:"popup_showed_second_v1",registeredKey:"user_registered_v1",webpushShowed:"webpush_showed_v1",webpushShowedTTL:1728e5,enteredEmail:"email",enteredEmailTTL:3e5}},function(e,t,i){"use strict";function n(e){if(i.i(a.c)(e,"data.action"))switch(e.data.action){case"close":o.a.popup.remove();break;case"mf-widget-loaded":console.log("mf-widget-loaded"),u.post({email:a.b.get(r.a.enteredEmail)})}i.i(a.c)(e,"data.email")&&(i.i(a.d)("msg.data.email",e.data.email),a.b.set(r.a.enteredEmail,e.data.email,{expires:r.a.enteredEmailTTL}))}i.d(t,"e",function(){return p}),i.d(t,"d",function(){return l}),i.d(t,"c",function(){return h}),i.d(t,"b",function(){return f});var o=i(1),a=i(0),r=i(2),s={subscribe:{},webpush:{},invalid:null},u=void 0;o.a.settingsLoading=!1,o.a.settingsLoaded=!1,o.a.settingsLoadedCb=function(){return!1};var d=function(){var e=a.b.get("reg_ts");if(!e)return null;var t=Date.now()-1e3*e;return Math.floor(t/6e4)>5},c=function(){var e=a.b.get(r.a.resubShowedKey);return e?+e:null},p=function(){if(s.invalid){var e=c();i.i(a.d)("resubShowed:",e);var t=d();if(i.i(a.d)("resubExpired:",t),e&&e>=2||t)return void i.i(a.d)("🚫 checkInvalid noop. Reason:","showed "+e+" time(s) || exp: "+t);i.i(a.d)("checkInvalid","userId: "+o.a.userId+"; 📪: "+a.b.get(r.a.enteredEmail)),o.a.userId&&$.get(o.a.apiRoot+"users/invalid/"+o.a.userId,function(e){i.i(a.d)("checkInvalid done","unsub =",e.data),e.data&&o.a.Actions.init.showPopup({popupSettings:Object.assign(s.invalid,{invalid:!0})})})}},l=function(e){return e&&setTimeout(p,1e3)},h=function(e){i.i(a.d)("getUserInfo"),a.b.get("guest_id")&&(o.a.guestId=a.b.get("guest_id"),i.i(a.d)("mf_guest_id",o.a.guestId)),$.ajax({url:o.a.apiRoot+"users/cookie",dataType:"jsonp",success:function(t){var n=t.reg_ts,r=t.user_id,s=t.guest_id;i.i(a.d)("Tried to obtain userId",r),(r||s||n)&&(n&&(a.b.set("reg_ts",n),i.i(a.d)("/users/cookie ->","⏱",n)),r&&(o.a.userId=r,a.b.set("user_id",r),i.i(a.d)("/users/cookie ->","👤",r)),s&&(o.a.guestId=s,a.b.set("guest_id",s),i.i(a.d)("/users/cookie ->","👽",s)),e&&e(o.a.userId))}})},f=function(e){if(o.a.settingsLoading=!0,i.i(a.d)("settingsLoaded",o.a.settingsLoaded),o.a.settingsLoaded)return i.i(a.d)("Session.settingsLoaded"),o.a.settingsLoadedCb(!0),void(e&&e());$.get(o.a.apiRoot+"widget/settings/"+o.a.project,function(t){Object.keys(t.data).forEach(function(e){return s[e]=t.data[e]}),i.i(a.c)(s,"subscribe.version")?i.i(a.a)("https://n.mailfire.io/scripts/widgets/porthole.min.js",function(){u||(u=new Porthole.WindowProxy(s.subscribe.url,"guestFrame"),u.addEventListener(n),o.a.settingsLoading=!1,o.a.settingsLoaded=!0,o.a.settingsLoadedCb(!0),o.a.version=2,e&&e(),i.i(a.d)("settingsLoaded",o.a.settingsLoaded))}):e&&e()})};t.a=s},function(e,t,i){"use strict";var n=i(9),o=i(10),a=i(11),r=i(12),s={1:n.a,2:o.a,3:a.a,4:r.a};t.a=function(e){return s[e.appearence_id||1](e)}},function(e,t,i){"use strict";var n={checkForm:function(e){function t(){n.addClass("invalid"),o.addClass("invalid").focus()}function i(){var e=o.val();return e&&""!==e&&-1!==e.indexOf("@")&&-1!==e.indexOf(".")?($.post("https://api.mailfire.io/v1/email/check",{email:e},function(e){e.data.valid?n.submit():(t(),n.one("submit",i))}),!1):(t(),!1)}var n=$(e),o=n.find(".emailCheck");if(!o.length&&(o=n.find("input[type:email]"),!o.length))return!1;o=$(o[0]),n.one("submit",i)}};t.a=n},function(e,t,i){"use strict";var n=i(1),o=i(0),a=i(2),r=i(3),s=i(4),u={auto:function(){var e=this;n.a.settingsLoading||(i.i(r.b)(function(){return e.subscribe()}),i.i(r.c)(r.d))},custom:function(){n.a.settingsLoading||(i.i(r.b)(),i.i(r.c)(r.d))},watcher:function(){var e=!0;$(window).on("blur",function(){return e=!1}),$(window).on("focus",function(){return e=!0}),setInterval(function(){if(e){var t=new Image,i=["ts="+(new Date).getTime()];n.a.userId&&i.push("user_id="+n.a.userId),o.b.get("guest_id")&&i.push("guest_id="+o.b.get("guest_id")),t.src="https://n.mailfire.io/online/watch/"+n.a.project+"?"+i.join("&")}},35e3)},subscribe:function(){var e=this;if(!(n.a.userId||void 0!==o.b.get(a.a.registeredKey)||void 0!==o.b.get(a.a.showedKey)&&void 0!==o.b.get(a.a.showedSecondKey))){var t=void 0;void 0!==o.b.get(a.a.showedKey)?(t=1,o.b.set(a.a.showedSecondKey,1,{expires:a.a.showedNextDelay})):t=a.a.showDelay,setTimeout(function(){return e.showPopup({popupSettings:r.a.subscribe})},t)}},removePopup:function(){n.a.popup.remove()},showPopup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.popupSettings,u=e.showCallback,d=e.closeCallback;i.i(o.d)("showPopup");var c=o.b.get("user_id"),p=+o.b.get(a.a.showedKey)||0,l=+o.b.get(a.a.resubShowedKey)||0;if(!n.a.testPopup&&t&&!t.invalid&&(c||p))return void i.i(o.d)("🚫 showPopup noop. Reason:","userId "+c+" || showed "+p);if(t)n.a.popup=i.i(s.a)(t),d&&"function"==typeof d&&(n.a.popup.closeCallback=d),n.a.popup.reloadCallback=function(){i.i(o.d)("reloadCallback"),t.invalid?i.i(r.c)():(setTimeout(function(){return i.i(r.c)(r.e)},5e3),i.i(r.e)()),o.b.set(a.a.registeredKey,Date.now(),{expires:a.a.registeredNextDelay}),n.a.popup.remove()},n.a.popup.show(),i.i(o.d)("👁"),t.invalid||o.b.set(a.a.showedKey,1,{expires:a.a.showedNextDelay}),t.invalid&&o.b.set(a.a.resubShowedKey,l&&l+1||1),u&&"function"==typeof u&&u();else{var h=function(){return n.a.Actions.init.showPopup({popupSettings:r.a.subscribe,showCallback:u,closeCallback:d})};n.a.settingsLoaded?h():i.i(r.b)(),n.a.settingsLoadedCb=h}}};t.a=u},function(e,t,i){"use strict";var n=i(1),o=i(3),a=i(0),r=i(4),s=i(2),u={init:function(){if(!("serviceWorker"in navigator))return void i.i(a.d)("Service workers aren't supported in this browser.");i.i(o.b)()},auto:function(){if(!("serviceWorker"in navigator))return void i.i(a.d)("Service workers aren't supported in this browser.");var e=a.b.get(s.a.webpushShowed);i.i(a.d)("webpushShowed",e),e||i.i(o.b)(function(){return setTimeout(function(){return n.a.Actions.webpush.showPopup()},2e3)})},showPopup:function(){var e=o.a.webpush,t=e.url,u=e.width,d=e.height;t&&u&&d?(n.a.popup=i.i(r.a)({url:t,width:u,height:d}),a.b.set(s.a.webpushShowed,1,{expires:s.a.webpushShowedTTL}),i.i(a.d)(s.a.webpushShowed,1),n.a.popup.reloadCallback=function(){n.a.Actions.webpush.subscribe(),n.a.popup.remove()},"serviceWorker"in navigator&&n.a.popup.show()):i.i(o.b)(function(){return n.a.Actions.webpush.showPopup()})},trackAttempt:function(e){$.post("https://api.mailfire.io/v1/webpush/attempt/"+n.a.project,{user_id:e&&+e||null},function(){i.i(a.d)("attempt ok")})},subscribe:function(){i.i(a.d)("subscribe"),Notification.requestPermission().then(function(e){i.i(a.d)("result",e),navigator.serviceWorker.ready.then(function(e){i.i(a.d)("serviceWorker.ready"),n.a.userId?n.a.Actions.webpush.trackAttempt(n.a.userId):i.i(o.c)(function(e){return n.a.Actions.webpush.trackAttempt(e)}),e.pushManager.subscribe({userVisibleOnly:!0}).then(function(e){var t={meta:{url:e.endpoint,public_key:i.i(a.g)(e.getKey("p256dh")),auth_token:i.i(a.g)(e.getKey("auth"))}};n.a.userId?t.user_id=+n.a.userId:t.hash=n.a.guestId,$.post("https://api.mailfire.io/v1/webpush/project/"+n.a.project,t,function(e){var t=e.data,n=t.push_user_id;if(n){i.i(a.d)("push_user_id",n),a.b.set("push_user_id",n);var o=new Date;o.setDate(o.getDate()+365),$.ajax({dataType:"jsonp",url:"https://n.mailfire.io/users/setcookie",data:{push_user_id:{value:n,expire:o.toUTCString()}},jsonp:"callback",success:function(e){i.i(a.d)(e)}})}})}).catch(function(e){"denied"===Notification.permission?(i.i(a.d)("Permission for Notifications was denied"),$.post("https://api.mailfire.io/v1/webpush/deny/"+n.a.project,{},function(){i.i(a.d)("deny ok")})):i.i(a.d)("Unable to subscribe to push.",e)})})}).catch(function(){return i.i(a.d)("FAILED")})}};t.a=u},function(e,t,i){"use strict";function n(){if(!g){if(g=!0,!("serviceWorker"in navigator))return i.i(h.d)("Service workers aren't supported in this browser."),void(g=!1);i.i(h.a)("https://www.gstatic.com/firebasejs/4.5.0/firebase-app.js",function(){i.i(h.a)("https://www.gstatic.com/firebasejs/4.5.0/firebase-messaging.js",function(){navigator.serviceWorker.register("swfcm.js").then(function(e){e.installing?console.log("Service worker installing"):e.waiting?console.log("Service worker installed"):e.active&&console.log("Service worker active"),firebase.initializeApp({messagingSenderId:"587960273742"}),p.a.messaging=firebase.messaging(),p.a.messaging.useServiceWorker(e),i.i(l.b)(function(){g=!1,b()})})})})}}function o(){if(n(),g){var e=h.b.get(m.a.webpushShowed);return i.i(h.d)("webpushShowed",e),e?void i.i(h.d)("bailing out..."):void(b=function(){return setTimeout(function(){return a()},3e3)})}}function a(){if(g)return void(b=a);var e=l.a.webpush,t=e.url,n=e.width,o=e.height;t&&n&&o&&(p.a.popup=i.i(f.a)({url:t,width:n,height:o}),h.b.set(m.a.webpushShowed,1,{expires:m.a.webpushShowedTTL}),i.i(h.d)(m.a.webpushShowed,1),p.a.popup.reloadCallback=function(){s(),p.a.popup.remove()},"serviceWorker"in navigator&&p.a.popup.show())}function r(e){$.post("https://api.mailfire.io/v1/webpush/attempt/"+p.a.project,{user_id:e&&+e||null},function(){i.i(h.d)("attempt ok")})}function s(){if(g)return void(b=s);i.i(h.d)("subscribing..."),Notification.requestPermission().then(function(e){i.i(h.d)("result",e),navigator.serviceWorker.ready.then(function(e){i.i(h.d)("serviceWorker.ready"),p.a.userId?r(p.a.userId):i.i(l.c)(function(e){return r(e)}),p.a.messaging.requestPermission().then(function(){p.a.messaging.getToken().then(function(e){i.i(h.d)(e),e?c(e):(i.i(h.d)("No Instance ID token available. Request permission to generate one."),d(!1))}).catch(function(e){i.i(h.d)("An error occurred while retrieving token.",e),d(!1)})}).catch(function(e){i.i(h.d)("Permission denied.",e),$.post("https://api.mailfire.io/v1/webpush/deny/"+p.a.project,{},function(){i.i(h.d)("deny ok")})})})}).catch(function(){return i.i(h.d)("FAILED")})}function u(e){return window.localStorage.getItem("sentFirebaseMessagingToken")===e}function d(e){window.localStorage.setItem("sentFirebaseMessagingToken",e||"")}function c(e){if(!u(e)){i.i(h.d)("Sending token to server...");var t={fcm_meta:{token:e}};p.a.userId?t.user_id=+p.a.userId:t.hash=p.a.guestId,$.post("https://api.mailfire.io/v1/webpush/project/"+p.a.project,t,function(e){var t=e.data,n=t.push_user_id;if(n){i.i(h.d)("push_user_id",n),h.b.set("push_user_id",n);var o=new Date;o.setDate(o.getDate()+365),$.ajax({dataType:"jsonp",url:"https://n.mailfire.io/users/setcookie",data:{push_user_id:{value:n,expire:o.toUTCString()}},jsonp:"callback",success:function(e){i.i(h.d)(e)}})}}),d(e)}}var p=i(1),l=i(3),h=i(0),f=i(4),m=i(2);t.a={init:n,auto:o,showPopup:a,subscribe:s};var b=function(){return null},g=!1},function(e,t,i){"use strict";var n=i(0),o=function(e){var t=e.url,o=e.width,a=e.height,r=$("body"),s=$("<div>").css({width:"100%",height:"100%",top:0,left:0,zIndex:"99999999",opacity:0,position:"fixed",background:"rgba(0,0,0,0.7)",transition:"opacity 1s ease"}),u=i.i(n.f)(),d=$("<div>").css({width:u.width>=o?o+"px":"320px",height:a+"px",top:0,left:0,right:0,bottom:0,margin:"auto",position:"absolute"}).appendTo(s);$("<a>",{href:"javascript:;"}).html("✕").css({lineHeight:"20px",height:"20px",font:"12px Arial",position:"absolute",top:"10px",right:"10px",display:"block",textDecoration:"none",color:"#bbb",textAlign:"center"}).appendTo(d).on("click",function(){return p.remove(),!1});var c=$("<iframe>",{src:t}).css({width:"100%",height:"100%",border:0}),p={closeCallback:!1,show:function(){s.appendTo(r),c.appendTo(d).one("load",function(){s.css({opacity:1}),c.one("load",function(){p.reloadCallback()})})},remove:function(){this.closeCallback&&this.closeCallback(),this.closeCallback=!1,s.css({opacity:0}),c.css({opacity:0}),setTimeout(function(){return s.remove()},1e3)}};return p};t.a=o},function(e,t,i){"use strict";var n=i(0),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,o=e.width,a=void 0===o?"100%":o,r=e.height,s=void 0===r?"245px":r,u=document.body,d=document.createElement("style");d.textContent="\n .mf-bg {\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 99999999;\n opacity: 0;\n position: fixed;\n background: rgba(0,0,0,0.7);\n transition: opacity 1s ease;\n }\n .mf-wrapper {\n width: "+(+a&&a+"px"||a)+";\n height: "+(+s&&s+"px"||s)+";\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n margin: auto;\n position: absolute;\n min-width: 320px;\n }\n .mf-iframe {\n width: 100%;\n height: 100%;\n border: 0;\n }\n ";var c=document.createElement("div");c.className="mf-bg";var p=document.createElement("div");p.className="mf-wrapper";var l=document.createElement("iframe");return l.className="mf-iframe",l.src=t,l.scrolling="no",l.name="guestFrame",$(window).resize(function(){return i.i(n.e)(a,s)}),{closeCallback:!1,show:function(){var e=this;u.appendChild(d),u.appendChild(c),c.appendChild(p),p.appendChild(l),l.addEventListener("load",function(){c.style.opacity=1,l.addEventListener("load",function(){e.reloadCallback&&e.reloadCallback()},!1)},!1),i.i(n.e)(a,s)},remove:function(){this.closeCallback&&this.closeCallback(),this.closeCallback=!1,c.style.opacity=0,setTimeout(function(){c.parentNode&&u.removeChild(c)},1e3)}}};t.a=o},function(e,t,i){"use strict";var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,i=e.width,n=void 0===i?"100%":i,o=e.height,a=void 0===o?"245px":o,r=document.body,s=window.matchMedia("(max-width: 1400px)"),u=window.matchMedia("(max-width: 990px)"),d=window.matchMedia("(max-width: 735px)"),c=function(){return d.matches?"all 0.3s":"all 0.4s"},p=function(){return d.matches?"0px":u.matches?"-75px":s.matches?"-120px":"-182px"},l=document.createElement("style");l.textContent="\n .mf-popup {\n width: "+(+n&&n+"px"||n)+";\n height: "+(+a&&a+"px"||a)+";\n bottom: -250px;\n left: 0;\n right: 0;\n margin: 0 auto;\n z-index: 99999999;\n position: fixed;\n }\n .mf-iframe {\n width: 100%;\n height: 100%;\n border: 0;\n }\n ";var h=document.createElement("div");h.className="mf-popup";var f=document.createElement("iframe");return f.className="mf-iframe",f.src=t,f.scrolling="no",f.name="guestFrame",window.addEventListener("resize",function(){h.style.bottom=p()},!1),{closeCallback:!1,show:function(){var e=this;r.appendChild(l),r.appendChild(h),h.appendChild(f),f.addEventListener("load",function(){h.style.bottom=p(),h.style.transition="all .5s cubic-bezier(0.06, 0.88, 0.26, 1.18)",f.addEventListener("load",function(){e.reloadCallback&&e.reloadCallback()},!1)},!1)},remove:function(){var e=this;h.style.bottom="-250px",h.style.transition=c(),setTimeout(function(){e.closeCallback&&e.closeCallback(),e.closeCallback=!1,h.parentNode&&r.removeChild(h),l.parentNode&&r.removeChild(l)},500)}}};t.a=n},function(e,t,i){"use strict";var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,i=e.width,n=void 0===i?"100%":i,o=e.height,a=void 0===o?"245px":o,r=document.body,s=window.matchMedia("(max-width: 1400px)"),u=window.matchMedia("(max-width: 990px)"),d=window.matchMedia("(max-width: 735px)"),c=window.matchMedia("(max-width: 360px)"),p=function(){return d.matches?"all 0.3s":"all 0.4s"},l=function(){return c.matches?"0px":d.matches?"-15px":u.matches?"-70px":s.matches?"-125px":"-170px"},h=document.createElement("style");h.textContent="\n .mf-popup {\n width: "+(+n&&n+"px"||n)+";\n height: "+(+a&&a+"px"||a)+";\n top: -305px;\n left: 0;\n right: 0;\n margin: 0 auto;\n z-index: 10;\n position: fixed;\n }\n .mf-iframe {\n width: 100%;\n height: 100%;\n border: 0;\n }\n ";var f=document.createElement("div");f.className="mf-popup";var m=document.createElement("iframe");return m.className="mf-iframe",m.src=t,m.scrolling="no",m.name="guestFrame",window.addEventListener("resize",function(){f.style.top=l()},!1),{closeCallback:!1,show:function(){var e=this;r.appendChild(h),r.appendChild(f),f.appendChild(m),m.addEventListener("load",function(){f.style.top=l(),f.style.transition="all .5s cubic-bezier(0.06, 0.88, 0.26, 1.18)",m.addEventListener("load",function(){e.reloadCallback&&e.reloadCallback()},!1)},!1)},remove:function(){var e=this;f.style.top="-305px",f.style.transition=p(),setTimeout(function(){e.closeCallback&&e.closeCallback(),e.closeCallback=!1,f.parentNode&&r.removeChild(f),h.parentNode&&r.removeChild(h)},500)}}};t.a=n},function(e,t,i){"use strict";function n(e){"undefined"!=typeof Storage&&(o.a.debug="true"===localStorage.getItem("mf-debug"));var t=window[window._mf_object_name];o.a.Actions={init:r.a,webpush:s.a,webpushfcm:u.a,email:d.a},o.a.project=t.project,o.a.apiRoot=t.api||"https://n.mailfire.io/",o.a.testPopup=t.testPopup||!1,o.a.env=t.env||"prod",o.a.popupName=t.popupName,o.a.userId=a.b.get("user_id"),window.mf=function(e,t,i){o.a.Actions[e][t].call(this,i)};for(var i in t.q)if(t.q.hasOwnProperty(i)){var n=t.q[i][0],c=t.q[i][1],p=t.q[i][2];o.a.Actions[n][c](p)}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(1),a=i(0),r=i(6),s=i(7),u=i(8),d=i(5);void 0!==window.jQuery?jQuery(function(){return n(jQuery)}):i.i(a.a)("https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js",function(){return Zepto(function(){return n(Zepto)})})}]);