/*!
 * 
 *   repopup v0.0.2
 *   https://github.com/Rikcon/rePopup.js
 * 
 *   Copyright (c) Dmitry rikcon (https://github.com/rikcon)
 * 
 *   This source code is licensed under the MIT license found in the
 *   LICENSE file in the root directory of this source tree.
 * 
 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.rePopup=e():t.rePopup=e()}(window,(function(){return function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){"use strict";o.r(e);o(1);function r(t,e){for(var o,r=0;r<e.length;r++)(o=e[r]).enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}var n=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.options=e,this.defaults={dir:"rtl",img:{url:"https://via.placeholder.com/77x77",alt:""},delay:"2s",position:{right:50,bottom:25,left:null,top:null},translations:{header:"<strong>Vasya</strong> bought a course at a <strong>discount of -40%</strong>",subheader:"<strong>Hurry up! There are 5 discounts left.</strong>",cta:{url:"",text:"CLICK AND USE YOUR DISCOUNT"}}},this.options=this.extend(this.defaults,this.options),this.init()}return function(t,e,o){e&&r(t.prototype,e),o&&r(t,o)}(t,[{key:"init",value:function(){var t=this;this.ready((function(){var e=document.createElement("div");e.classList.add("rePopup__global-wrap","animated","bounceInUp"),e.style.animationDelay=t.options.delay,e.innerHTML='<div class="rePopup__content">\n        <div class="rePopup__body" dir="'+t.options.dir+'">\n            <div class="rePopup__header">\n'+t.options.translations.header+'</div>\n            <div class="rePopup__subheader">\n'+t.options.translations.subheader+'            </div>\n            <div class="rePopup__cta">\n                <a href="'+t.options.translations.cta.url+'">'+t.options.translations.cta.text+'</a>\n            </div>\n        </div>\n        <div class="rePopup__img">\n            <img src="'+t.options.img.url+'" alt="'+t.options.img.alt+'">\n        </div>\n    </div>',document.body.appendChild(e),null===t.options.position.top?e.style.bottom=t.options.position.bottom+"px":e.style.top=t.options.position.top+"px",null===t.options.position.left?e.style.right=t.options.position.right+"px":e.style.left=t.options.position.left+"px",t.initialized=!0,t.setEventListeners()}))}},{key:"setEventListeners",value:function(){}},{key:"extend",value:function(t,e){var o,r={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}},{key:"ready",value:function(t){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",t):t()}}]),t}();e.default=n},function(t,e,o){var r=o(2);"string"==typeof r&&(r=[[t.i,r,""]]);var n={insert:"head",singleton:!1};o(4)(r,n);r.locals&&(t.exports=r.locals)},function(t,e,o){(t.exports=o(3)(!1)).push([t.i,".rePopup__global-wrap{position:fixed;display:flex;background:#ffffff;box-shadow:0 4px 50px rgba(0,0,0,0.15);border-radius:10px;bottom:25px;right:50px;transition:bottom 0.4s ease-in-out}.rePopup__global-wrap .rePopup__content{display:flex;margin-top:5px;margin-bottom:5px;margin-left:20px;margin-right:5px;align-items:center}.rePopup__global-wrap .rePopup__content .rePopup__body{margin-top:5px;margin-right:15px;text-align:right}.rePopup__global-wrap .rePopup__content .rePopup__body .rePopup__header{color:#000000;font-size:14px}.rePopup__global-wrap .rePopup__content .rePopup__body .rePopup__subheader{color:#5a33f4;text-align:right;font-size:12px;margin-top:5px}.rePopup__global-wrap .rePopup__content .rePopup__body .rePopup__cta a{color:#ff7a0b;text-decoration:underline;font-size:12px;margin-top:5px}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceInUp{from,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);animation-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}from{opacity:0;-webkit-transform:translate3d(0, 3000px, 0);transform:translate3d(0, 3000px, 0)}60%{opacity:1;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}75%{-webkit-transform:translate3d(0, 10px, 0);transform:translate3d(0, 10px, 0)}90%{-webkit-transform:translate3d(0, -5px, 0);transform:translate3d(0, -5px, 0)}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes bounceInUp{from,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);animation-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}from{opacity:0;-webkit-transform:translate3d(0, 3000px, 0);transform:translate3d(0, 3000px, 0)}60%{opacity:1;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}75%{-webkit-transform:translate3d(0, 10px, 0);transform:translate3d(0, 10px, 0)}90%{-webkit-transform:translate3d(0, -5px, 0);transform:translate3d(0, -5px, 0)}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}.rePopup__global-wrap{/*! minireset.css v0.0.5 | MIT License | github.com/jgthms/minireset.css */}.rePopup__global-wrap html,.rePopup__global-wrap body,.rePopup__global-wrap p,.rePopup__global-wrap ol,.rePopup__global-wrap ul,.rePopup__global-wrap li,.rePopup__global-wrap dl,.rePopup__global-wrap dt,.rePopup__global-wrap dd,.rePopup__global-wrap blockquote,.rePopup__global-wrap figure,.rePopup__global-wrap fieldset,.rePopup__global-wrap legend,.rePopup__global-wrap textarea,.rePopup__global-wrap pre,.rePopup__global-wrap iframe,.rePopup__global-wrap hr,.rePopup__global-wrap h1,.rePopup__global-wrap h2,.rePopup__global-wrap h3,.rePopup__global-wrap h4,.rePopup__global-wrap h5,.rePopup__global-wrap h6{margin:0;padding:0}.rePopup__global-wrap h1,.rePopup__global-wrap h2,.rePopup__global-wrap h3,.rePopup__global-wrap h4,.rePopup__global-wrap h5,.rePopup__global-wrap h6{font-size:100%;font-weight:normal}.rePopup__global-wrap ul{list-style:none}.rePopup__global-wrap button,.rePopup__global-wrap input,.rePopup__global-wrap select,.rePopup__global-wrap textarea{margin:0}.rePopup__global-wrap html{box-sizing:border-box}.rePopup__global-wrap *,.rePopup__global-wrap *:before,.rePopup__global-wrap *:after{box-sizing:inherit}.rePopup__global-wrap img,.rePopup__global-wrap video{height:auto;max-width:100%}.rePopup__global-wrap iframe{border:0}.rePopup__global-wrap table{border-collapse:collapse;border-spacing:0}.rePopup__global-wrap td,.rePopup__global-wrap th{padding:0;text-align:left}\n",""])},function(t,e,o){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o=t[1]||"",r=t[3];if(!r)return o;if(e&&"function"==typeof btoa){var n=(i=r,p=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(p),"/*# ".concat(l," */")),a=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot).concat(t," */")}));return[o].concat(a).concat([n]).join("\n")}var i,p,l;return[o].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(o,"}"):o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},n=0;n<this.length;n++){var a=this[n][0];null!=a&&(r[a]=!0)}for(var i=0;i<t.length;i++){var p=t[i];null!=p[0]&&r[p[0]]||(o&&!p[2]?p[2]=o:o&&(p[2]="(".concat(p[2],") and (").concat(o,")")),e.push(p))}},e}},function(t,e,o){"use strict";var r,n={},a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}t[e]=o}return t[e]}}();function p(t,e){for(var o=[],r={},n=0;n<t.length;n++){var a=t[n],i=e.base?a[0]+e.base:a[0],p={css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(p):o.push(r[i]={id:i,parts:[p]})}return o}function l(t,e){for(var o=0;o<t.length;o++){var r=t[o],a=n[r.id],i=0;if(a){for(a.refs++;i<a.parts.length;i++)a.parts[i](r.parts[i]);for(;i<r.parts.length;i++)a.parts.push(g(r.parts[i],e))}else{for(var p=[];i<r.parts.length;i++)p.push(g(r.parts[i],e));n[r.id]={id:r.id,refs:1,parts:p}}}}function s(t){var e=document.createElement("style");if(void 0===t.attributes.nonce){var r=o.nc;r&&(t.attributes.nonce=r)}if(Object.keys(t.attributes).forEach((function(o){e.setAttribute(o,t.attributes[o])})),"function"==typeof t.insert)t.insert(e);else{var n=i(t.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(e)}return e}var u,c=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function f(t,e,o,r){var n=o?"":r.css;if(t.styleSheet)t.styleSheet.cssText=c(e,n);else{var a=document.createTextNode(n),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(a,i[e]):t.appendChild(a)}}function d(t,e,o){var r=o.css,n=o.media,a=o.sourceMap;if(n&&t.setAttribute("media",n),a&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var b=null,_=0;function g(t,e){var o,r,n;if(e.singleton){var a=_++;o=b||(b=s(e)),r=f.bind(null,o,a,!1),n=f.bind(null,o,a,!0)}else o=s(e),r=d.bind(null,o,e),n=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(o)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else n()}}t.exports=function(t,e){(e=e||{}).attributes="object"==typeof e.attributes?e.attributes:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a());var o=p(t,e);return l(o,e),function(t){for(var r=[],a=0;a<o.length;a++){var i=o[a],s=n[i.id];s&&(s.refs--,r.push(s))}t&&l(p(t,e),e);for(var u=0;u<r.length;u++){var c=r[u];if(0===c.refs){for(var f=0;f<c.parts.length;f++)c.parts[f]();delete n[c.id]}}}}}])}));