/*! For license information please see tuemilio-modal.js.LICENSE.txt */ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=225)}({19:function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return 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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),c=n(1),l=n.n(c),u=n(2),f=n.n(u),d="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},h=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=f()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(l.a);function y(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=p}]).default},e.exports=r()},199:function(e,t){e.exports='
\n
\n \n
\n
\n \n
'},200:function(e,t){e.exports='
\n

\n

\n
\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n

We use Tuemilio for our waitlist. By clicking below to join this waitlist, you acknowledge that your information will be transferred to Tuemilio for processing. Learn more about Tuemilio\'s privacy practices here.

\n
\n
'},201:function(e,t){e.exports=''},202:function(e,t){e.exports='
\n
\n
\n \n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n \n\n
\n
'},203:function(e,t){e.exports='
\n
\n
\n

\n
\n
\n

\n
\n
\n
\n
'},204:function(e,t){e.exports='
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
'},205:function(e,t){e.exports='
\n \n\n \n
'},206:function(e,t){e.exports='
\n

\n \n \n

\n

\n
\n
\n \n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n
\n'},207:function(e,t){e.exports='
\n
\n
\n
\n
'},208:function(e,t){e.exports='
\n
\n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n
\n
\n'},209:function(e,t){e.exports='
\n \n \n
\n
\n
\n
\n
'},210:function(e,t){e.exports='
\n
\n \n \n \n
\n
\n
'},211:function(e,t){e.exports=''},212:function(e,t){e.exports='
\n
\n
\n
\n
\n
\n
this is the title
\n
and thats the content
\n
\n
\n
\n
'},225:function(e,t,n){e.exports=n(443)},3:function(e,t,n){"use strict";var r={};!function(){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},t={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,ticks:200,x:.5,y:.5,zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"]};function n(){}function o(e,n,r){return function(e,t){return t?t(e):e}(e&&null!=e[n]?e[n]:t[n],r)}function i(e){return parseInt(e,16)}function a(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function s(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function c(t,o,i,c,l){var u=o.slice(),f=t.getContext("2d"),d=t.width,h=t.height,p=i?a:s;function y(){d=h=null}var b,m=(b=function(n){e((function r(){d||h||(p(t),d=t.width,h=t.height),f.clearRect(0,0,d,h),(u=u.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity,t.y+=Math.sin(t.angle2D)*t.velocity+3,t.wobble+=.1,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+5,t.wobbleX=t.x+10*Math.cos(t.wobble),t.wobbleY=t.y+10*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(i),Math.floor(a)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY)),e.closePath(),e.fill(),t.tick-1&&this.callbacks.splice(t,1)}},{key:"fire",value:function(e){this.callbacks.slice(0).forEach((function(t){t(e)}))}}])&&l(t.prototype,n),r&&l(t,r),e}();function f(e,t){for(var n=0;n-1&&(n.unregisterCallback(t),0===n.callbacks.length&&delete this.events[e])}},{key:"setLoggin",value:function(e){this.logging=e}}])&&f(t.prototype,n),r&&f(t,r),e}(),h='';function p(e){return(p="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})(e)}function y(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function b(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||m(e)||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.")}()}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n` where you need to place your signup form'),Error('You forgot to add `
` where you need to add your signup form');this.wrappers.forEach((function(e){t.forms.push({wrapper:e,skeleton:t.createElementFromHTML(o.a),emailElement:null,emailInput:null,emailButton:null,dashboardButton:null,inputs:null,feedbackElement:null,spinner:null})})),this.forms.forEach((function(e){if(t._loadCustomFormElements(e),e.skeleton.classList.add("t-form"),t.config.style&&t.config.style.inline&&e.skeleton.classList.add("t-form-inline"),e.emailInput=e.wrapper.querySelector(".t-email"),e.submitButton=e.wrapper.querySelector(".t-button-submit"),e.dashboardButton=e.wrapper.querySelector(".t-button-dashboard"),e.inputs=b(e.wrapper.getElementsByTagName("input")).filter((function(e){return!e.dataset.consent})),t._loadGdprContent(e),e.emailInput){var n,r=y(e.inputs);try{var o=function(){var r=n.value;r.onkeydown=function(n){"Enter"===(n=n||window.event).key?t._submit(e):(t.removeFeedback("email"),r.style.borderColor="#dbe2e8")}};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}if(e.consentInputs){var i,a=y(e.consentInputs);try{var s=function(){var e=i.value;e.addEventListener("change",(function(){e.style.borderColor="inherit"}))};for(a.s();!(i=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}}e.submitButton&&e.submitButton.addEventListener("click",(function(){t._submit(e)})),e.submitButton.innerText=t.config.button.texts.CTA;var c=t.config.input.texts.placeholder;e.emailElement&&(c=e.emailElement.placeholder),e.emailInput.placeholder=c}))}}},{key:"_submit",value:function(e){var t=this;e.emailInput.value=e.emailInput.value.trim();var n,r=!1,o=y(e.inputs);try{for(o.s();!(n=o.n()).done;){var i=n.value;i.required&&""===i.value&&this.config.validationActive&&(i.style.borderColor="#d91b1b",r=!0)}}catch(e){o.e(e)}finally{o.f()}if(""===e.emailInput.value&&this.config.validationActive&&(this.addFeedback("email",this.config.feedback.texts.empty),e.emailInput.disabled=!1,this.dispatch("emptyEmail"),r=!0),this.config.gdpr&&e.consentInputs&&this.config.validationActive){var a=this.config.gdpr.texts.default.marketingPermissions;e.consentInputs.forEach((function(e,t){a[t].required&&!e.checked&&(e.style.borderColor="#d91b1b",e.nextElementSibling.style.color="#d91b1b",r=!0)}))}if(!r){if(!1===this.validateEmail(e.emailInput.value)&&this.config.validationActive)return this.addFeedback("email",this.config.feedback.texts.invalidEmail),e.emailInput.disabled=!1,this.dispatch("invalidEmail",e.emailInput.value),void(e.emailInput.style.borderColor="#d91b1b");var s={address:e.emailInput.value.toLowerCase(),action:"subscribe",custom_fields:{},consents:{}};b(e.inputs).forEach((function(e){"email"!==e.name&&("radio"!==e.type&&(s.custom_fields[e.name]=e.value),"radio"===e.type&&e.checked&&(s.custom_fields[e.name]=e.value)),e.disabled=!0})),e.consentInputs&&b(e.consentInputs).forEach((function(e,n){s.consents[e.name]={name:e.name,consented:e.checked,documentId:t.config.gdpr.documentId,linked_to_automations:t.config.gdpr.texts.default.marketingPermissions[n].linked_to_automations,source:"email-form"}})),this.setSubmitButtonAsLoading(),this.dispatch("submit",s)}}},{key:"_loadCustomFormElements",value:function(e){if(!this.config.disabled){for(var t=e.wrapper.children,n=t.length,r=0;rhier mehr über die Datenschutzpraktiken von Tuemilio.'),this.config.gdpr.texts.default.marketingPermissions.forEach((function(t){var n=document.createElement("div");n.innerHTML=c.a,n.querySelector(".t-marketing-permission-name").innerText=t.name,n.querySelector("input").name=t.name.replace(/[^0-9a-zA-Z]/g,"_").toLowerCase(),e.gdprContent.querySelector(".t-marketing-permissions").appendChild(n)})),e.consentInputs=b(e.wrapper.getElementsByTagName("input")).filter((function(e){return e.dataset.consent}))}}},{key:"createFeedbackMessageElement",value:function(e){var t=document.createElement("div");return t.classList.add("t-message"),t.classList.add("t-feedback-"+e.replace(/\s+/g,"_").toLowerCase()),t}},{key:"removeSkeletonEmail",value:function(e){e.skeleton.getElementsByClassName("t-email")[0].parentElement.removeChild(e.skeleton.getElementsByClassName("t-email")[0]),e.skeleton.getElementsByClassName("t-message")[0].parentElement.removeChild(e.skeleton.getElementsByClassName("t-message")[0])}},{key:"createElementFromHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild}},{key:"addFeedback",value:function(e,t){if(!this.config.disabled)return this.addPaddingButton("7px"),this.writeFeedback(e,t)}},{key:"removeFeedback",value:function(e){this.config.disabled||(this.addPaddingButton("16px"),this.writeFeedback(e,""))}},{key:"writeFeedback",value:function(e,t){var n=this;if(!this.config.disabled){var r=[];return this.forms.forEach((function(o){var i=o.wrapper.querySelector(".t-feedback-"+e);n.config.style&&n.config.style.inline&&n.insertAfter(i,o.wrapper.querySelector(".t-form")),i.innerHTML="",i.innerHTML=t,i.classList.add("roll-down"),r.push(i)})),r}}},{key:"validateEmail",value:function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}},{key:"setSubmitButtonAsLogin",value:function(){var e=this;this.config.disabled||(this.addPaddingButton("16px"),this.forms.forEach((function(t){t.submitButton.disabled=!1,t.submitButton.style.cursor="pointer",t.submitButton.innerHTML=e.config.button.texts.login})),this.enableInputs())}},{key:"setSubmitButtonAsLoading",value:function(){var e=this;this.config.disabled||this.forms.forEach((function(t){t.submitButton.querySelectorAll("svg").length>0||(t.submitButton.previousElementSibling.classList.contains("t-hidden")&&(t.submitButton.style.marginTop="0"),t.submitButton.innerHTML=h+e.config.button.texts.loading,t.submitButton.disabled=!0,t.submitButton.style.cursor="auto",t.spinner=t.wrapper.getElementsByClassName("t-button-spinner")[0],t.spinner.style.verticalAlign="sub",t.spinner.style.marginRight="8px")}))}},{key:"setSubmitButtonAsNotLoading",value:function(){var e=this;this.config.disabled||this.forms.forEach((function(t){t.submitButton.innerHTML=e.config.button.texts.CTA,t.submitButton.disabled=!1,t.submitButton.style.cursor="pointer",e.enableInputs()}))}},{key:"enableInputs",value:function(){this.config.disabled||this.forms.forEach((function(e){b(e.inputs).forEach((function(e){e.disabled=!1}))}))}},{key:"hideSubmitButton",value:function(){this.config.disabled||this.forms.forEach((function(e){e.submitButton.classList.add("t-hidden")}))}},{key:"showSubmitButton",value:function(){this.config.disabled||this.forms.forEach((function(e){e.submitButton.classList.remove("t-hidden")}))}},{key:"hideForm",value:function(){this.config.disabled||(document.querySelectorAll(".t-form-group").forEach((function(e){e.classList.add("t-hidden")})),this.hideGdprContent())}},{key:"showForm",value:function(){this.config.disabled||(document.querySelectorAll(".t-form-group").forEach((function(e){e.classList.remove("t-hidden")})),this.showGdprContent())}},{key:"hideCustomFields",value:function(){this.config.disabled||this.forms.forEach((function(e){b(e.inputs).forEach((function(e){"email"!==e.name&&e.classList.add("t-hidden")}));for(var t=e.wrapper.querySelectorAll("label"),n=0;n div, .t-form-group > p, .t-form-group > span").forEach((function(e){e.classList.contains("t-message")||e.classList.add("t-hidden")}))}))}},{key:"populateInputWithFakeEmail",value:function(){var e=this;if(!this.config.disabled){var t=new XMLHttpRequest;t.onloadend=function(){200===t.status&&""!==t.response&&(e.dispatch("fake-email-loaded",t.response),form.emailInput.value=t.response)},t.open("GET","https://tuemilio.test/api/v2/public/email/fake"),t.send()}}},{key:"addPaddingButton",value:function(e){this.config.style&&this.config.style.inline||this.forms.forEach((function(t){t.submitButton.style.marginTop=e}))}},{key:"insertAfter",value:function(e,t){t.parentNode.insertBefore(e,t.nextSibling)}}])&&g(t.prototype,n),r&&g(t,r),s}(d)),E=n(202),T=n.n(E),C=n(203),_=n.n(C);function O(e){return(O="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})(e)}function j(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return this.header.innerHTML=e,this}},{key:"title",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.element.querySelector(".t-title").innerHTML=e,this}},{key:"setParagraph",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.paragraph.innerHTML=e,this}},{key:"setContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.element.querySelector(".t-content").innerHTML=e,this}},{key:"appendContent",value:function(e){return this.element.querySelector(".t-content").appendChild(e),this}},{key:"clickableTitle",value:function(){var e=this;return this.header.style.cursor="pointer",this.header.addEventListener("click",(function(){"block"===e.body.style.display?(e.body.style.display="none",e.element.classList.add("t-translate-1")):(e.body.style.display="block",e.element.classList.remove("t-translate-1"))})),this.element.classList.add("t-translate-1"),this.body.style.display="none",this}},{key:"removeHeader",value:function(){return this.card.removeChild(this.header),this}},{key:"removeBody",value:function(){return this.card.removeChild(this.body),this}},{key:"appendNoFrame",value:function(e){return this.removeHeader(),this.removeBody(),this.element.querySelector(".t-card").appendChild(e),this}},{key:"getCard",value:function(){return""===this.paragraph.innerHTML&&(this.paragraph.style.margin="0"),this.element}},{key:"createElementFromHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}},{key:"setContentTexts",value:function(e){var t=this;this.content.querySelectorAll("[class^=t-text]").forEach((function(n){var r=n.classList[0].split("-").slice(2).map((function(e,n){return 0===n?e:t.ucfirst(e)})).join("");n.innerHTML=e[r]}))}},{key:"ucfirst",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"inject",value:function(e,t){this[t]=e}}])&&j(t.prototype,n),r&&j(t,r),i}(d),B=n(204),q=n.n(B);function D(e){return(D="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})(e)}function F(e,t){for(var n=0;n1?i:"0"+i,e.querySelector(".t-hours").innerHTML=a.length>1?a:"0"+a,e.querySelector(".t-minutes").innerHTML=s.length>1?s:"0"+s,e.querySelector(".t-seconds").innerHTML=c.length>1?c:"0"+c,o<0&&(clearInterval(r),document.querySelector(".t-countdown").innerHTML="")}),100)}}])&&F(t.prototype,n),r&&F(t,r),i}(R),G=n(205),W=n.n(G),Y=n(19),Z=n.n(Y);function Q(e){return(Q="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})(e)}function X(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"";return this.popUpLinkBuilder("https://twitter.com/intent/tweet?url="+encodeURIComponent(e)+"&text="+this.encodeURL(t)+"&hashtags="+n)}},{key:"linkedinLink",value:function(e){return this.popUpLinkBuilder("https://www.linkedin.com/sharing/share-offsite/?url="+encodeURIComponent(e))}},{key:"whatsappLink",value:function(e,t){return this.popUpLinkBuilder("https://api.whatsapp.com/send?text="+this.encodeURL(t+" "+e)+"&q=q")}},{key:"wechatLink",value:function(e){return this.popUpLinkBuilder("https://chart.apis.google.com/chart?cht=qr&chs=154x154&chld=Q%7C0&chl="+encodeURIComponent(e))}},{key:"redditLink",value:function(e,t){return this.popUpLinkBuilder("https://reddit.com/submit?title="+this.encodeURL(t)+"&url="+encodeURIComponent(e))}},{key:"telegramLink",value:function(e,t){return this.popUpLinkBuilder("https://t.me/share?url="+encodeURIComponent(e)+"&text="+this.encodeURL(t))}},{key:"lineLink",value:function(e,t){return this.popUpLinkBuilder("https://line.me/R/share?text="+this.encodeURL(t+" ")+encodeURIComponent(e))}},{key:"emailLink",value:function(e,t,n){return"mailto:?subject="+t+"&body="+n+"%0D%0A%0D%0A"+e}},{key:"encodeURL",value:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)}}])&&X(t.prototype,n),r&&X(t,r),i}(R);function ne(e){return(ne="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})(e)}function re(e,t){for(var n=0;n Settings"),this.title("GIF Error").setParagraph('No gif/image link provided. Please set one in Dashboard > Settings').getCard()):this.className("t-gif").appendNoFrame(n).getCard()}}])&&re(t.prototype,n),r&&re(t,r),i}(R));function le(e){return(le="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})(e)}function ue(e,t){for(var n=0;n Settings"),this.title("Video Error").setParagraph('No Youtube/Vimeo link provided. Please set one in Dashboard > Settings').getCard();var n=document.createElement("iframe");return n.src=this.url.createVideoUrlEmbed(e.config.video_url),this.className("t-video").appendNoFrame(n).getCard()}}])&&ue(t.prototype,n),r&&ue(t,r),i}(R));function be(e){return(be="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})(e)}function me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ve(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n Settings"),this.title("Typeform Error").setParagraph('No Typeform link provided. Please set one in Dashboard > Settings').getCard();var r=e.rates.survey_point_rate;return""!==t.dashboard.survey.secondURL&&(r*=2),this.setHeader('

'+e.config.texts.surveyTitle+'

'+e.config.texts.referredsPending+'
+ '+r+"
"),"click"===e.config.survey_header&&this.clickableTitle(),"none"===e.config.survey_header&&this.removeHeader(),0===e.subscriber.surveys.length?"typeform"===t.dashboard.survey.type&&this.createSurvey(t,e,(function(){n.createFirstSurvey(t,e)})):1===e.subscriber.surveys.length&&""!==t.dashboard.survey.secondURL?this.createSurvey(t,e,(function(){document.querySelector(".t-survey-points-wrapper").style.opacity=1,document.querySelector(".t-survey-points").innerHTML="+ "+e.rates.survey_point_rate,n.createSecondSurvey(t,e)})):(this.setParagraph(e.config.texts.surveyCompleted),"none"!==e.config.survey_header?(this.element.querySelector(".t-survey-points-wrapper").style.opacity=1,this.element.querySelector(".t-survey-pending").innerHTML="",this.element.querySelector(".t-survey-points").classList.add("jello-horizontal")):this.card.style.paddingTop="1.25rem"),this.className("t-survey").getCard()}},{key:"createSurvey",value:function(e,t,n){var r=document.createElement("script");this.body.classList.add("t-typeform"),r.onload=n,r.src="https://embed.typeform.com/embed.js",document.head.appendChild(r)}},{key:"createFirstSurvey",value:function(e,t){var n=this,r="";t.subscriber.custom_fields.referral_link=t.subscriber.referral_link,t.subscriber.custom_fields.dashboard_link=t.subscriber.dashboard_link,t.subscriber.custom_fields.position=t.subscriber.position,t.subscriber.custom_fields.points=t.subscriber.points,t.subscriber.custom_fields.subscribers_count=t.subscribers_count;for(var o=0,i=Object.entries(t.subscriber.custom_fields);o',linkedin:' ',reddit:' ',telegram:' ',twitter:' ',star:'',badge:'',user:''};function Re(e){return(Re="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})(e)}function Be(e,t){for(var n=0;n'+i+'
'+e.config.texts.shareOnPending+'
+ '+e.rates.shareon_point_rate+"
",e.shareds.forEach((function(e){e.name.toLowerCase()===i&&(a.querySelector(".t-shareon-points-wrapper").style.opacity=1,a.querySelector(".t-shareon-pending").innerHTML="")})),n.content.appendChild(a),a.style.opacity="0",t.dashboard.listAnimation?setTimeout((function(){a.classList.add("roll-down"),a.style.opacity="1"}),100*o++):a.style.opacity="1"}}));var i=e.config.texts;return this.setContentTexts(i),this.className("t-share-on").title(i.shareOnTitle).setParagraph(i.shareOnParagraph).appendContent(this.content).getCard()}}])&&ze(t.prototype,n),r&&ze(t,r),i}(R)),Qe=n(207),Xe=n.n(Qe);function Je(e){return(Je="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})(e)}function $e(e,t){for(var n=0;n'+Ie.user+'
'+e.config.texts.referredsUnit+'
'+e.config.texts.referredsPending+'
+ '+e.rates.referrer_point_rate+"
");var r=0;e.referreds.forEach((function(o){var i=document.createElement("div");i.classList.add("t-shareon-row"),i.innerHTML='
'+o.user.slice(0,2)+"
"+o.user+' · '+Ie.star+o.points+'
+ '+e.rates.referrer_point_rate+"
",i.getElementsByClassName("t-avatar")[0].style.backgroundColor=n.colors[r%n.colors.length].background,i.getElementsByClassName("t-avatar")[0].style.color=n.colors[r%n.colors.length].color,i.style.opacity="0",n.content.querySelector(".t-referred-list").appendChild(i),t.dashboard.listAnimation?setTimeout((function(){i.classList.add("roll-down"),i.style.opacity="1"}),100*r++):i.style.opacity="1"}));var o=e.config.texts;return this.setContentTexts(o),this.className("t-referreds").title(e.referreds_count+" "+o.referredsTitle).setParagraph(o.referredsParagraph).appendContent(this.content).getCard()}}])&&$e(t.prototype,n),r&&$e(t,r),i}(R)),ot=n(208),it=n.n(ot);function at(e){return(at="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})(e)}function st(e,t){for(var n=0;n=parseInt(o.points)?a.querySelector(".t-lock-icon").classList.add("t-d-none"):a.querySelector(".t-circle-check-icon").classList.add("t-d-none"),n.content.appendChild(a),t.dashboard.listAnimation?setTimeout((function(){a.classList.add("roll-down"),a.style.opacity="1"}),100*i):a.style.opacity="1"})),this.className("t-leaderboard").title(r.milestonesTitle).setParagraph(r.milestonesParagraph).appendContent(this.content).getCard()}}])&&st(t.prototype,n),r&&st(t,r),i}(R),ht=n(209),pt=n.n(ht);function yt(e){return(yt="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})(e)}function bt(e,t){for(var n=0;n'.concat(h,""),this.inviteBtn.disabled=!0,this.inviteBtn.style.cursor="auto",this.inviteBtn.style.width=e+"px"}},{key:"removeButtonLoading",value:function(e){this.inviteBtn.innerHTML=e,this.inviteBtn.disabled=!1,this.inviteBtn.style.cursor="pointer"}},{key:"setInputError",value:function(){this.inviteInput.style.borderColor="red",this.inviteInput.style.color="red"}},{key:"setInputDefault",value:function(){this.inviteInput.style.borderColor="#ced4da",this.inviteInput.style.color="#495057"}}])&&bt(t.prototype,n),r&&bt(t,r),i}(R);function St(e,t){for(var n=0;n').concat(t.subscriber.referral_link,"")})),o.querySelectorAll(".t-text-dashboard_link").forEach((function(e){""!==r.config.host?e.innerHTML='').concat(r.config.host,"?uuid=").concat(t.subscriber.uuid,""):e.innerHTML='').concat(t.subscriber.dashboard_link_uuid,"")})),o}}])&&Tt(t.prototype,n),r&&Tt(t,r),i}(d));function At(e){return(At="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})(e)}function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function It(e,t){for(var n=0;n in your website. If you are planning to add a full custom dashboard, disable the native dashboard when initializing Tuemilio like this: \n \n Tuemilio('init', {\n dashboard: {\n disabled: true\n }\n });"),this.forms.forEach((function(e){var n=t.createElementFromHTML($t.a);n.innerText=t.config.form.button.texts.checkDashboard,t.dashboardButtons.push(n),e.appendChild(n)})),this.span.onclick=function(){t.close()},window.onclick=function(e){e.target===t.element.firstChild&&t.close()},document.onkeydown=function(e){"Escape"===(e=e||window.event).key&&t.close()},this.initialized=!0,this.element}},{key:"show",value:function(){this.element.style.display="block",document.getElementsByClassName("t-modal")[0].classList.remove("fade-out"),document.getElementsByClassName("t-modal")[0].classList.add("fade-in");for(var e=document.getElementsByClassName("t-card"),t=0;t0||(t.innerHTML=h+e.config.form.button.texts.loading,t.disabled=!0,t.style.cursor="auto",e.spinner=t.querySelector(".t-button-spinner"),e.spinner.style.verticalAlign="sub",e.spinner.style.marginRight="8px")}))}},{key:"createElementFromHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild}}])&&en(t.prototype,n),r&&en(t,r),i}(d)),sn={host:"",remoteUpdated:!1,form:{disabled:!1,customSubmit:!1,validationActive:!0,loginFormOnUserIdentified:!1,forceLoginForm:!1,style:{inline:!1},input:{texts:{placeholder:"name@email.com"}},button:{texts:{CTA:"Request early access",loading:"Loading",checkDashboard:"Dashboard",login:"Login"}},feedback:{disabled:!1,texts:{empty:"Don't forget your email!",invalidEmail:"Wrong email!",success:"Thanks!",unaccepted:"We do not accept that email",unauthorized:"You did not subscribe with that email",resentConfirmationEmail:"Sent"}},gdpr:{enabled:!1,documentId:null,texts:{default:{gdprTitle:"",gdprDescription:"",gdprLegalText:"",marketingPermissions:[]}}}},dashboard:{disabled:!1,hideButton:!1,objective:{offset:1,max:5},type:"modal",url:"",gif:{type:"card",url:""},video:{type:"card",url:""},survey:{type:"typeform",url:"",header:"default",secondURL:""},shareOn:{facebook:!0,twitter:!0,telegram:!0,linkedin:!0,reddit:!0},loadOnUserIdentified:!0,modal:{preventShowAfterSubscribing:!1,preventShowAfterLogin:!1,disabled:!1},listAnimation:!0,texts:{taskTitle:"Current Task",taskParagraph:"Invite people you know personally and go up on the waiting list.",taskCopyButton:"Copy",taskCopiedButton:"Copied!",taskOutro:"Or share with:",leaderboardTitle:"Leaderboard",leaderboardParagraph:"This is your position on the list",leaderboardPosition:"Position",leaderboardAddress:"Address",referredsTitle:"Friends invited",referredsParagraph:"",referredsEmpty:"No friends",referredsPending:"Pending",referredsUnit:"Each Friend Invited",objectiveTitle:"Objective",objectiveSubtitle:"Out of your possible 10",objectiveCompleted:"Completed",objectiveUncompleted:"To be done",units:"Points",surveyTitle:"Complete the Survey",surveyCompleted:"Thanks for completing the survey, you got 10 extra points.",surveyPending:"Pending",countdownTitle:"Launching soon",countdownParagraph:"You still have this time to share with your friends",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds",shareOnTitle:"Shared on",shareOnParagraph:"",shareOnPending:"Pending"},social:{buttons:{twitter:!0,facebook:!0,linkedin:!0,email:!0,whatsapp:!0,reddit:!0,wechat:!1,telegram:!0},texts:{facebookQuote:"I just joined this awesome waiting list!",twitterQuote:"I just joined this awesome waiting list!",hashTags:"tuemilio,PH",whatsappQuote:"I joined this, do it to:",redditQuote:"I just joined this awesome waiting list!",telegramQuote:"I just joined this awesome waiting list!",emailBody:"Here is my link",emailSubject:"I just joined this awesome waiting list!",linkQuote:"Share the link below"}}},redirectURL:"",cookies:{disabled:!1},user:{identified:!1},googleAnalytics:{disabled:!1},confetti:{type:"cannons",disabled:!1,length:1,colors:["#ED0154","#F78801","#1872CB","#F8CE26"]},logging:!1};function cn(e){return(cn="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})(e)}function ln(e,t){for(var n=0;n5e3||(window.ga&&ga.create?e(ga):setTimeout(t,500))}()}))}},{key:"sendEvent",value:function(e,t,n){this.loaded?"undefined"!=typeof gtag?gtag("event",t,{event_category:e,event_label:n}):ga("send","event",e,t,n):this.on("loaded",(function(){"undefined"!=typeof gtag?gtag("event",t,{event_category:e,event_label:n}):ga("send","event",e,t,n)}))}},{key:"getClientId",value:function(){return this.loaded?ga.getAll()[0].get("clientId"):null}}])&&ln(t.prototype,n),r&&ln(t,r),i}(d)),yn=n(3);function bn(e,t){for(var n=0;ne)return clearInterval(t);Object(yn.a)({startVelocity:30,spread:360,ticks:60,origin:{x:Math.random(),y:Math.random()-.2},colors:["#ED0154","#F78801","#1872CB","#F8CE26"],zIndex:100001})}),200)}},{key:"snow",value:function(){var e=Date.now()+1e3*this.config.length;!function t(){Object(yn.a)({particleCount:1,startVelocity:0,ticks:300,origin:{x:Math.random(),y:Math.random()-.2},zIndex:100001,colors:["#ED0154","#F78801","#1872CB","#F8CE26"]}),Object(yn.a)({particleCount:1,startVelocity:0,ticks:300,origin:{x:Math.random(),y:Math.random()-.2},zIndex:100001,colors:["#F78801","#1872CB","#F8CE26"]}),Object(yn.a)({particleCount:1,startVelocity:0,ticks:300,origin:{x:Math.random(),y:Math.random()-.2},zIndex:100001,colors:["#1872CB","#F8CE26"]}),Date.now()0&&this.messages.push({title:"",content:e.online+" more people are viewing the site.",count:e.online,type:"online"}),e.subscribed.forEach((function(e){t.messages.push({title:"Someone",content:"just subscribed from ",timeDiff:e.time_diff,type:"subscribed"})})),e.lastDaySubscribers.forEach((function(e){t.messages.push({title:"Someone",content:"Subscribed today",timeDiff:e.time_diff,type:"lastDaySubscribers"})}))}},{key:"startAutoCaroussel",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.toast.show(this.messages[t]),setTimeout((function(){e.toast.hide(),setTimeout((function(){++t<=e.messages.length-1&&e.startAutoCaroussel(t)}),1e3*e.config.fomo_interval)}),1e3*this.config.fomo_length)}},{key:"ping",value:function(){var e=this,t=new Ft;t.get(this.url+"public/lists/"+window[window.TuemilioObject].id+"/fomo"),t.on(200,(function(t){e.buildInitialMessages(t),e.messages.length>0&&e.startAutoCaroussel()}))}}])&&Sn(t.prototype,n),r&&Sn(t,r),e}());function Ln(e){return(Ln="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})(e)}function En(e,t){for(var n=0;n0&&(e[n]=t[n]),null===e[n]&&(e[n]=t[n]),this.extendConfig(e[n],t[n])):void 0!==t[n]&&(e[n]=t[n])}},{key:"isQueued",value:function(e){var t=!1;return this.queue.forEach((function(n){n[0]===e&&(t=!0)})),t}}])&&En(t.prototype,n),r&&En(t,r),i}(d));function An(e,t){for(var n=0;n