!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NmodesWidget=t():e.NmodesWidget=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="public/",t(t.s=0)}([function(e,t,n){"use strict";function o(){var e=document.createElement("div");e.id="nmodes-widget-container";var t=document.createElement("iframe");t.src="".concat("https://bot1.nmodes.com/?api_key=pYB9TTGvhUchMuyssjfVSOnZ&open=undefined","&location=").concat(encodeURIComponent(document.location.href)),t.id="nmodes-widget",t.allow="microphone;fullscreen",t.setAttribute("allowfullscreen","true"),t.setAttribute("mozallowfullscreen","true"),t.setAttribute("webkitallowfullscreen","true"),t.setAttribute("allowfullscreen","allowfullscreen"),t.setAttribute("mozallowfullscreen","mozallowfullscreen"),t.setAttribute("msallowfullscreen","msallowfullscreen"),t.setAttribute("oallowfullscreen","oallowfullscreen"),t.setAttribute("webkitallowfullscreen","webkitallowfullscreen"),e.appendChild(t),document.body.appendChild(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=(n.n(r),JSON.parse('{"links":[]}'));!function(){o();var e=document.getElementById("nmodes-widget"),t=document.getElementById("nmodes-widget-container"),n=(document.getElementsByTagName("body")[0],Math.max(document.documentElement.clientWidth,window.innerWidth||0)),r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),s=function(o,i){n=Math.max(document.documentElement.clientWidth,window.innerWidth||0),r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),e.contentWindow.postMessage({width:n,heigth:r},"*"),window.matchMedia("(max-width: 560px)").matches?e.style.width="".concat(n,"px"):e.style.width="400px",o||i||(e.style.width="340",e.style.height="76px"),t.style.height=e.style.height,t.style.width=e.style.width};i.links.forEach(function(t){var n=t.name,o=t.step;document.body.querySelectorAll('*[href="'.concat(n,'"]')).forEach(function(t){t.addEventListener("click",function(){e.contentWindow.postMessage({link:n,name:"open",step:o,isCampaign:!0},"*")})})}),window.addEventListener("resize",s),window.addEventListener("message",function(t){var o=t.data[0],r=t.data[1],i=t.data[2],a=t.data[3],c=t.data[4];switch(r?e.classList.add("open"):e.classList.remove("open"),c&&(e.style.width=a,e.style.height=i),o){case"toggleChatBot":e.style.height=r&&n<="568"?"100%":i,s(void 0,r)}},!1)}()},function(e,t,n){var o=n(2);"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0};r.transform=void 0,r.insertInto=void 0;n(4)(o,r);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"#nmodes-widget {\n border: none;\n display: block;\n height: 70px;\n width: 80px;\n position: fixed;\n top: auto;\n left: auto;\n bottom: 0;\n right: 0;\n visibility: visible;\n z-index: 2147483647;\n max-height: 100vh;\n max-width: 100%;\n transition: none 0s ease 0s;\n background: none transparent;\n opacity: 1;\n}\n#nmodes-widget.open {\n}\n\n#nmodes-widget-container {\n z-index: 99999;\n border: none;\n display: block;\n height: 76px;\n width: 76px;\n position: fixed;\n top: auto;\n left: auto;\n bottom: 0;\n right: 0;\n visibility: visible;\n max-height: 100vh;\n max-width: 100%;\n transition: none 0s ease 0s;\n background: none transparent;\n opacity: 1;\n}\n",""])},function(e,t){function n(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=o(r);return[n].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=n(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r=0&&x.splice(t,1)}function a(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=u();n&&(e.attrs.nonce=n)}return l(t,e.attrs),i(e,t),t}function c(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",l(t,e.attrs),i(e,t),t}function l(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function u(){return n.nc}function f(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var l=g++;n=y||(y=a(t)),o=d.bind(null,n,l,!1),r=d.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),o=h.bind(null,n,t),r=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),o=p.bind(null,n),r=function(){s(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function d(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=j(t,r);else{var i=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function p(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function h(e,t,n){var o=n.css,r=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||i)&&(o=E(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([o],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}var m={},v=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),b=function(e,t){return t?t.querySelector(e):document.querySelector(e)},w=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var o=b.call(this,e,n);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}}(),y=null,g=0,x=[],E=n(5);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=v()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=r(e,t);return o(n,t),function(e){for(var i=[],s=0;s