!function(t){var e={};function n(a){if(e[a])return e[a].exports;var o=e[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(a,o,function(e){return t[e]}.bind(null,o));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=77)}({1:function(t,e,n){"use strict";function a(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n>=4,n[o]=e[19===o?3&t|8:t]);return n.join("")}()}function h(t){return String(t).replace(/↵|\r?\n|\r|@\[.*?\]|<\/?[^>]+(>|$)/g,"").replace(/\ /g,"").toString()}function d(t){return/[\u0591-\u07FF]/.test(h(t))}function p(t){if(t.base)if(t.link=t.base,t.uri&&(t.link+=t.uri),t.type){t.method||(t.method=!0),t.debugLog||(t.debugLog=!1);var e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");e.onreadystatechange=function(){4===e.readyState&&200===e.status?t.success&&"function"==typeof t.success&&t.success(e.responseText,e.readyState):4===e.readyState&&t.error&&"function"==typeof t.error?t.error(e.responseText,e.readyState):!0===t.debugLog&&console.log("FailureResponse --\x3e State:".concat(e.readyState,"Status:").concat(e.status))};var n=[],a=t.data;if(t.json)n=JSON.stringify(a);else{if("string"==typeof a)for(var o=String.prototype.split.call(a,"&"),c=0,i=o.length;c0&&(a=o.map((function(t){return t?t.includes('data-id="')?t.replace('data-id="',"").replace('"',""):t.substring(2,t.length-2):""})));var r=[];return a&&a.length>0&&a.forEach((function(t){e&&e.length>0&&e.forEach((function(e){e.question===t&&r.push(e.answer)})),Object.keys(n).map((function(e){e===t&&r.push(n[e])}))})),r.length?r.forEach((function(e){t=t.replace(/(.*?<\/a>|)/i,e)})):t=t.replace(/(.*?<\/a>|)/i,""),t=t.replace("=12?" PM":" AM";return n=(n=(n%=12)||12)<10?"0".concat(n):n,"".concat(n,":").concat(a).concat(o)}function y(t,e){return w(new Date(t),e)}function k(t,e){var n=new Date(t),a=new Date(n.getTime()-36e5*e);return new Date(a.getTime()-6e4*n.getTimezoneOffset())}function L(t,e){var n=new Date(t),a=new Date(n.getTime()+36e5*e);return new Date(a.getTime()+6e4*n.getTimezoneOffset())}function I(t,e,n,a){p({base:x(),uri:"/responses/otp",type:"POST",data:{number:t,formId:e,questionId:n},json:!0,success:function(t){a&&a(t)}})}function A(t,e,n){p({base:x(),uri:"/responses/otp-verify",type:"POST",data:{sessionUuid:t,otp:e},json:!0,success:function(t){n&&n(t)}})}function T(t,e){var n=new FileReader;n.onload=function(t){var n=new DataView(t.target.result);if(65496!=n.getUint16(0,!1))return e(-2);for(var a=n.byteLength,o=2;o4&&e<9?(c.width=r,c.height=t):(c.width=t,c.height=r),e){case 2:i.transform(-1,0,0,1,t,0);break;case 3:i.transform(-1,0,0,-1,t,r);break;case 4:i.transform(1,0,0,-1,0,r);break;case 5:i.transform(0,1,1,0,0,0);break;case 6:i.transform(0,1,-1,0,r,0);break;case 7:i.transform(0,-1,-1,0,r,t);break;case 8:i.transform(0,-1,1,0,0,t)}i.drawImage(o,0,0),c.toBlob((function(t){var e=new File([t],n,{type:"application/octet-stream"});a(e)}),"image/jpeg",.75)},o.src=t}function M(t,e){for(var n=t.split(","),a=n[0].match(/:(.*?);/)[1],o=atob(n[1]),r=o.length,c=new Uint8Array(r);r--;)c[r]=o.charCodeAt(r);return new File([c],e,{type:a})}function j(t){return t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,a){return"#".concat(e+e+n+n+a+a)})).substring(1).match(/.{2}/g).map((function(t){return parseInt(t,16)}))}function O(t,e,n){var a=[t,e,n].map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2)}));return.2126*a[0]+.7152*a[1]+.0722*a[2]}function R(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return"#FFFFFF";var n=j(t),o=O.apply(void 0,a(n)),r=o>.8?"#000000bd":e?t:"#FFFFFF";return r}function E(){var t,e=navigator.userAgent,n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?"IE "+((t=/\brv[ :]+(\d+)/g.exec(e)||[])[1]||""):"Chrome"===n[1]&&null!=(t=e.match(/\b(OPR|Edge)\/(\d+)/))?t.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=e.match(/version\/(\d+)/i))&&n.splice(1,1,t[1]),n.join(" "))}function N(){var t=window.location!=window.parent.location?document.referrer:document.location.href;return t&&window.location.href!==t}!function(t,e){for(var n=l;;)try{if(301244===parseInt(n(384))+-parseInt(n(383))*parseInt(n(386))+parseInt(n(378))+-parseInt(n(375))*-parseInt(n(377))+parseInt(n(385))*-parseInt(n(379))+-parseInt(n(381))+-parseInt(n(380))*parseInt(n(388)))break;t.push(t.shift())}catch(e){t.push(t.shift())}}(i)},11:function(t,e,n){function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||r(t)||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 o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],a=!0,o=!1,r=void 0;try{for(var c,i=t[Symbol.iterator]();!(a=(c=i.next()).done)&&(n.push(c.value),!e||n.length!==e);a=!0);}catch(t){o=!0,r=t}finally{try{a||null==i.return||i.return()}finally{if(o)throw r}}return n}(t,e)||r(t,e)||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 r(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n>=4,n[o]=e[19==o?3&t|8:t]);return n.join("")}},m=["charCodeAt","1125qPEFBu","27WJcGuL","length","9337UQriQr","457966IGBLSO","22397hxrPtg","243gvtRVO","172973IHRpoF","fromCharCode","13CNndtE","474416WmRIcO","14mewyav","9487eiNXaX"];function f(t,e){return m[t-=375]}!function(t,e){for(var n=f;;)try{if(301244===parseInt(n(384))+-parseInt(n(383))*parseInt(n(386))+parseInt(n(378))+-parseInt(n(375))*-parseInt(n(377))+parseInt(n(385))*-parseInt(n(379))+-parseInt(n(381))+-parseInt(n(380))*parseInt(n(388)))break;t.push(t.shift())}catch(e){t.push(t.shift())}}(m),p.uuidCompact=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))};var b={stripHtml:function(t){return t.replace(/↵|\r?\n|\r|<\/?[^>]+(>|$)/g,"")},dfs:function(t){for(var e=f,n=t.split(""),a=0;a/g,">")},getUnEscapeHtml:function(t){return String(t).replace(/&/g,"&").replace(/&/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},getHashCode:function(t){var e=0;if(0===t.length)return e;for(var n=0;n0&&c%2==0&&i<13&&(e+=n[i],i+=1);return"Bearer ".concat(e)},getBrowser:function(){if(window.opr&&opr.addons||window.opera||navigator.userAgent.indexOf(" OPR/")>=0)return h.browsers.opera.value;if("undefined"!=typeof InstallTrigger)return h.browsers.firefox.value;if(/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&safari.pushNotification).toString())return h.browsers.safari.value;if(document.documentMode)return h.browsers.internetExplorer.value;if(window.StyleMedia)return h.browsers.edge.value;var t=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);return window.chrome&&t?h.browsers.chrome.value:h.browsers.other.value},hasClass:function(t,e){return new RegExp("(^|\\s)".concat(e,"(\\s|$)")).test(t.className)},addClass:function(t,e){this.hasClass(t,e)||(t.className+=" ".concat(e))},removeClass:function(t,e){if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)".concat(e,"(\\s|$)"));t.className=t.className.replace(n," ")}},toggleClass:function(t,e){this.hasClass(t,e)?this.removeClass(t,e):this.addClass(t,e)},mergeConfig:function(t,e){for(var n in e)try{e[n].constructor==Object?t[n]=this.mergeConfig(t[n],e[n]):t[n]=e[n]}catch(a){t[n]=e[n]}return t},initXMLhttp:function(){return window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")},minAjax:function(t){if(t.key)if(t.link=this.dfs(t.key),t.formId&&(t.link=t.link+t.formId),t.type){t.method||(t.method=!0),t.debugLog||(t.debugLog=!1);var e=this.initXMLhttp();e.onreadystatechange=function(){4==e.readyState&&200==e.status?t.success&&t.success(e.responseText,e.readyState):4==e.readyState&&t.error&&"function"==typeof t.error?t.error(e.responseText,e.readyState):1==t.debugLog&&console.log("FailureResponse --\x3e State:".concat(e.readyState,"Status:").concat(e.status))};var n=[],a=t.data;if(t.json)n=JSON.stringify(a);else{if("string"==typeof a)for(var o=String.prototype.split.call(a,"&"),r=0,c=o.length;r=0?"&":"?"),"callback=").concat(n),document.body.appendChild(a)},getScrollPercent:function(){var t=document.documentElement,e=document.body,n="scrollTop",a="scrollHeight";return(t[n]||e[n])/((t[a]||e[a])-t.clientHeight)*100},getCookie:function(t){var e,n,a,o=document.cookie.split(";");for(e=0;e1?"".concat(o," ").concat(e.daysAgo||n.daysAgo):(o=Math.floor(a/3600))>1?"".concat(o," ").concat(e.hoursAgo||n.hoursAgo):(o=Math.floor(a/60))>=1?"".concat(o," ").concat(e.minutesAgo||n.minutesAgo):e.justNow||n.justNow},generateShortId:function(){return"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)},forEach:function(t,e,n){for(var a=0;aa?">":na?">":n').concat(n,'
').concat(c,"
")}if("meeting"===t.type)return'
').concat(n,'
').concat(e&&e.bookMeeting?e.bookMeeting:"Book an appointment","
");if("social"===t.type){var i=t.links.filter((function(t){return!!t.value})).reduce((function(t,e,n){return t="".concat(t,'
").concat(e.text,"
")}),"");return'
').concat(n,'
').concat(i,"
")}return'
').concat(n,"
")},goToLink:function(t,e){s.openLink(t,e)},injectCss:function(t){var e="\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-contact.dark {\n background-color: ".concat(t.color,";\n color: ").concat(b.textColor(t.color)," !important;\n }\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-contact.dark:before {\n content: '';\n background-image: url(").concat("#FFFFFF"==b.textColor(t.color)?n(12):n(13),");\n width: 16px;\n position: absolute;\n left: 15px;\n background-position: center;\n top: 9.5px;\n height: 16px;\n background-size: 13px;\n background-repeat: no-repeat;\n }\n }\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-contact:hover {\n box-shadow: inset 0 0 0 1px ").concat(t.color,",\n 0px 2px 4px rgba(0, 17, 119, 0.02),\n 0px 4px 15px rgba(0, 17, 119, 0.02);\n }\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-option:hover {\n box-shadow: inset 0 0 0 1px ").concat(t.color,",\n 0px 2px 4px rgba(0, 17, 119, 0.02),\n 0px 4px 15px rgba(0, 17, 119, 0.02);\n }\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-option:hover ::before {\n background-color: ").concat(t.color," !important;\n }\n "),a=document.getElementById("chat-bot-dynamic-styles");a||((a=document.createElement("style")).id="chat-bot-dynamic-styles",document.head.appendChild(a)),a.styleSheet?a.styleSheet.cssText=e:a.textContent=e},syncPreview:function(t,e){var n=t.body,a=t.path,o=e.div_launcher,r=o.querySelector("#chat-bot-launcher"),c=o.querySelector("#chat-bot-launcher-button"),i=o.querySelector("#chat-bot-avatar-text");if("config.avatar"===a){var l=n.config.avatar,s=n.config.color;c.style.backgroundImage="url(".concat(l,")"),l.includes("logo-classic")?(this.addClass(o,"chat-bot-launcher-notext"),this.removeClass(o,"chat-bot-avatar-launcher"),r.style.backgroundColor=s):(this.removeClass(o,"chat-bot-launcher-notext"),this.addClass(o,"chat-bot-avatar-launcher"),r.style.backgroundColor="transparent"),i&&i.remove()}if("config.color"===a){var u=n.config.color;c.style.backgroundImage.includes("logo-classic")?r.style.backgroundColor=u:r.style.backgroundColor="transparent",this.injectCss({color:u})}}};t.exports=b},12:function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1jYWxlbmRhciI+PHJlY3QgeD0iMyIgeT0iNCIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiByeD0iMiIgcnk9IjIiPjwvcmVjdD48bGluZSB4MT0iMTYiIHkxPSIyIiB4Mj0iMTYiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjgiIHkxPSIyIiB4Mj0iOCIgeTI9IjYiPjwvbGluZT48bGluZSB4MT0iMyIgeTE9IjEwIiB4Mj0iMjEiIHkyPSIxMCI+PC9saW5lPjwvc3ZnPg=="},13:function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDBiZCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2FsZW5kYXIiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGxpbmUgeDE9IjE2IiB5MT0iMiIgeDI9IjE2IiB5Mj0iNiI+PC9saW5lPjxsaW5lIHgxPSI4IiB5MT0iMiIgeDI9IjgiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjMiIHkxPSIxMCIgeDI9IjIxIiB5Mj0iMTAiPjwvbGluZT48L3N2Zz4="},14:function(t,e,n){var a,o;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)} /*! * JavaScript Cookie v2.1.4 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */!function(c){var i=!1;if(void 0===(o="function"==typeof(a=c)?a.call(e,n,e,t):a)||(t.exports=o),i=!0,"object"===r(e)&&(t.exports=c(),i=!0),!i){var l=window.Cookies,s=window.Cookies=c();s.noConflict=function(){return window.Cookies=l,s}}}((function(){function t(){for(var t=0,e={};t1){if("number"==typeof(r=t({path:"/"},a.defaults,r)).expires){var i=new Date;i.setMilliseconds(i.getMilliseconds()+864e5*r.expires),r.expires=i}r.expires=r.expires?r.expires.toUTCString():"";try{c=JSON.stringify(o),/^[\{\[]/.test(c)&&(o=c)}catch(t){}o=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var s in r)r[s]&&(l+="; "+s,!0!==r[s]&&(l+="="+r[s]));return document.cookie=e+"="+o+l}e||(c={});for(var u=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,d=0;d=0&&h.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var a=function(){0;return n.nc}();a&&(t.attrs.nonce=a)}return v(e,t.attrs),f(t,e),e}function v(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function C(t,e){var n,a,o,r;if(e.transform&&t.css){if(!(r="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=r}if(e.singleton){var c=u++;n=s||(s=g(e)),a=y.bind(null,n,c,!1),o=y.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),f(t,e),e}(e),a=L.bind(null,n,e),o=function(){b(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),a=k.bind(null,n),o=function(){b(n)});return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=c()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=m(t,e);return p(n,e),function(t){for(var a=[],o=0;o>>0,a=arguments[1],o=0;o>>0,a=arguments[1],o=0;o
'.concat(l.name?l.name:"",'
').concat(l.name?l.name:"","
");var p="object"===i(t.localStorage)?JSON.parse(t.localStorage.getItem("widgetState")):null,m=!p||l.startMessage!==p.form.config.startMessage||JSON.stringify(o.questions)!==JSON.stringify(p.form.questions)||0===p.responsePayload.data.length;CollectChatLauncher.elements.div_message=document.createElement("div"),CollectChatLauncher.elements.div_message.id="chat-bot-message-container",function(t){var a="\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-contact.dark {\n background-color: ".concat(t.color,";\n color: ").concat(e.textColor(t.color)," !important;\n }\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-contact.dark:before {\n content: '';\n background-image: url(").concat("#FFFFFF"==e.textColor(t.color)?n(12):n(13),");\n width: 16px;\n position: absolute;\n left: 15px;\n background-position: center;\n top: 9.5px;\n height: 16px;\n background-size: 13px;\n background-repeat: no-repeat;\n\n }\n }\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-contact:hover {\n box-shadow: inset 0 0 0 1px ").concat(t.color,",\n 0px 2px 4px rgba(0, 17, 119, 0.02),\n 0px 4px 15px rgba(0, 17, 119, 0.02);\n }\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-option:hover {\n box-shadow: inset 0 0 0 1px ").concat(t.color,",\n 0px 2px 4px rgba(0, 17, 119, 0.02),\n 0px 4px 15px rgba(0, 17, 119, 0.02);\n }\n #chat-bot-message-container .chat-bot-button-wrapper .chat-bot-option:hover ::before {\n background-color: ").concat(t.color," !important;\n }\n "),o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");o.appendChild(r),r.styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a))}(l),l.avatarLauncher&&!1===l.showTextAfterClose&&a.get("collect_chat_closed")&&(l.name=""),!1===l.showMessageAfterClose&&a.get("collect_chat_closed")&&(m=!1);var f=l.startMessage?0:-1;l.welcomeMessage&&!isNaN(l.welcomeMessage)&&(f=parseInt(l.welcomeMessage)-1);var b,g,v=-1!==f?o.questions[f]:null;if(v&&m){var C=e.getStartMessageText(v,d);CollectChatLauncher.elements.div_message.innerHTML='
'.concat(C,"
"),CollectChatLauncher.elements.message_close=document.createElement("div"),CollectChatLauncher.elements.message_close.id="chat-bot-message-close",CollectChatLauncher.elements.div_message.appendChild(CollectChatLauncher.elements.message_close),"left"===l.position&&e.addClass(CollectChatLauncher.elements.div_message,"chat-bot-message-left"),"center"===l.position&&e.addClass(CollectChatLauncher.elements.div_message,"chat-bot-message-center"),CollectChatLauncher.elements.div_launcher.appendChild(CollectChatLauncher.elements.div_message),CollectChatLauncher.elements.div_message.onclick=function(n){n.stopPropagation();var a=n.target;if(a&&"chat-bot-message-container"!==a.id&&"chat-bot-button-wrapper"!==a.className&&"overflow"!==a.className){var o=a.closest(".chat-bot-message-label");if(h(),"social"!==v.type||o){if("option"===v.type&&!o){var r=a.closest(".chat-bot-option").dataset.jump;if(r.includes("https://"))return t.open(r);if("END"===r)return void(CollectChatLauncher.elements.div_message.className="message-hide")}var c=o?null:a.innerText;CollectChatLauncher.open(),t.CollectChatLauncher.elements.iframe.contentWindow.postMessage({type:"chat-bot-start-answer",content:{question:v.id,answer:c,index:f,type:v.type}},"*")}else{var i=a.closest(".chat-bot-contact").dataset.value,s=v.links.find((function(t){return t.value===i}));s&&e.goToLink(s,l.customQuestions)}}}}if(document.getElementsByTagName("body")[0].appendChild(CollectChatLauncher.elements.div_root),document.getElementsByTagName("body")[0].appendChild(CollectChatLauncher.elements.div_launcher),CollectChatLauncher.elements.div_root.style.display="none",CollectChatLauncher.elements.div_wrap=document.createElement("div"),CollectChatLauncher.elements.div_wrap.id="chat-bot-frame-wrap",CollectChatLauncher.elements.div_root.appendChild(CollectChatLauncher.elements.div_wrap),CollectChatLauncher.elements.iframe=document.createElement("iframe"),CollectChatLauncher.elements.iframe.src="javascript:false",CollectChatLauncher.elements.iframe.scrolling="no",CollectChatLauncher.elements.iframe.setAttribute("allowFullScreen",""),t.navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&e.addClass(CollectChatLauncher.elements.iframe,"chat-bot-ios"),CollectChatLauncher.elements.iframe.title="",CollectChatLauncher.elements.iframe.role="presentation",CollectChatLauncher.elements.iframe.id="chat-bot-iframe",CollectChatLauncher.elements.div_wrap.appendChild(CollectChatLauncher.elements.iframe),document.getElementById("chat-bot-launcher").style.backgroundColor=l.avatarLauncher&&!l.avatar.includes("logo-classic")?"transparent":l.color,"custom"===l.widgetButton&&(e.addClass(CollectChatLauncher.elements.div_launcher,"chat-bot-nolauncher"),e.addClass(CollectChatLauncher.elements.div_root,"chat-bot-frame-nolauncher"),t.previewMode)){e.addClass(CollectChatLauncher.elements.div_root,"chat-bot-frame-nolauncher--preview"),e.addClass(CollectChatLauncher.elements.div_launcher,"chat-bot-nolauncher--preview");var x=document.createElement("button");x.id="chat-bot-launcher-preview-button",x.innerHTML="Custom button",CollectChatLauncher.elements.div_launcher.appendChild(x)}l.avatarLauncher?(document.getElementById("chat-bot-launcher-button").style.backgroundImage="url('".concat(l.avatar).concat(o.clearCache?"?t=".concat((new Date).getTime()):"","')"),l.avatar.includes("logo-classic")?e.addClass(CollectChatLauncher.elements.div_launcher,"chat-bot-launcher-notext"):e.addClass(CollectChatLauncher.elements.div_launcher,"chat-bot-avatar-launcher"),!l.startMessage&&l.name&&""!==l.name||(document.getElementById("chat-bot-avatar-text").style.display="none"),CollectChatLauncher.elements.launcher_close=document.createElement("div"),CollectChatLauncher.elements.launcher_close.id="chat-bot-launcher-close",document.getElementById("chat-bot-avatar-text").appendChild(CollectChatLauncher.elements.launcher_close)):""===l.name&&e.addClass(CollectChatLauncher.elements.div_launcher,"chat-bot-launcher-notext"),"center"===l.position?(e.addClass(CollectChatLauncher.elements.div_root,"chat-bot-frame-center"),e.addClass(CollectChatLauncher.elements.div_launcher,"chat-bot-launcher-center"),CollectChatLauncher.elements.div_tint=document.createElement("div"),CollectChatLauncher.elements.div_tint.id="chat-bot-frame-tint",document.getElementsByTagName("body")[0].insertBefore(CollectChatLauncher.elements.div_tint,CollectChatLauncher.elements.div_root)):"left"===l.position&&(e.addClass(CollectChatLauncher.elements.div_root,"chat-bot-frame-left"),e.addClass(CollectChatLauncher.elements.div_launcher,"chat-bot-launcher-left")),CollectChatLauncher.elements.div_close=document.createElement("div"),CollectChatLauncher.elements.div_close.id="chat-bot-widget-close",CollectChatLauncher.elements.div_root.appendChild(CollectChatLauncher.elements.div_close),CollectChatLauncher.elements.div_restart=document.createElement("div"),CollectChatLauncher.elements.div_restart.id="chat-bot-launcher-restart",CollectChatLauncher.elements.div_root.appendChild(CollectChatLauncher.elements.div_restart);try{g=CollectChatLauncher.elements.iframe.contentWindow.document}catch(t){b=document.domain,CollectChatLauncher.elements.iframe.src="javascript:var d=document.open();d.domain='".concat(b,"';void(0);"),g=CollectChatLauncher.elements.iframe.contentWindow.document}g.open()._l=function(){var t=this.createElement("script"),n=this.createElement("script");t.type="text/javascript",n.type="text/javascript";var a=this.createElement("script");a.type="text/javascript",a.noModule=!0,a.src="https://cdnjs.cloudflare.com/ajax/libs/core-js/3.15.2/minified.js",b&&(this.domain=b),t.id="js-iframe-async";t.src||(t.src=e.dfs("p||x{B77kwttmk|klv6kwu7qlom|6r{")),n.text="var form = ".concat(JSON.stringify(o),";"),this.head.appendChild(a),this.body.appendChild(t),this.body.appendChild(n);var r=document.createElement("div");r.id="root",this.body.appendChild(r)},g.write(''),g.close();var w=t.addEventListener?"addEventListener":"attachEvent";(0,t[w])("attachEvent"===w?"onmessage":"message",(function(n){var i=n[n.message?"message":"data"];if("chat-bot-loaded"===i.type){if(t.CollectChatLauncher.status="loaded",e.addClass(t.CollectChatLauncher.elements.div_launcher,"chat-bot-launcher-enabled"),t.window.CollectChatLauncher.initEventHandler(o),t.parent!==t&&t.parent.postMessage({type:"cc-widget-ready"},"*"),0!=t.CollectChatLauncher.callAfterLoad.length&&t.CollectChatLauncher.callAfterLoad.forEach((function(t){"function"==typeof t.func&&t.func.apply(null,t.args)})),void 0!==t.CollectAlwaysOpen&&!0===t.CollectAlwaysOpen){if(!document.getElementById("chatbot-sound")){var h=document.createElement("audio");h.id="chatbot-sound",h.setAttribute("src","https://collectcdn.com/sound.mp3"),h.style.visibility="hidden",h.setAttribute("autoplay",!0),document.body.appendChild(h)}t.CollectChatLauncher.open()}if(u.startConditions&&u.startConditions.onLeaveWebsite&&!a.get("collect_chat_closed")&&"launcher"===u.widgetButton){var d=!1;document.addEventListener("mouseout",(function(e){var n=(e=e||t.event).relatedTarget||e.toElement;n&&"HTML"!=n.nodeName||d||(d=!0,s(l))}),!1)}if(u.startConditions&&u.startConditions.timerTriggerRule&&u.startConditions.timerTrigger&&!a.get("collect_chat_closed")&&"launcher"===u.widgetButton&&(clearTimeout(t.CollectChatLauncher.timerFunction),t.CollectChatLauncher.timerFunction=setTimeout((function(){s(l)}),1e3*u.startConditions.timerTrigger)),u.startConditions&&u.startConditions.onScrollRule&&u.startConditions.scrollPercentage&&!a.get("collect_chat_closed")&&"launcher"===u.widgetButton){var p=!1;t.addEventListener("scroll",(function(){var t=e.getScrollPercent();!p&&t>=u.startConditions.scrollPercentage&&(p=!0,s(l))}),!1)}t.CollectChatLauncher.elements.iframe.contentWindow.postMessage({type:"chat-bot-answer",content:t.CollectChatLauncher.customAnswers},"*")}else"chat-bot-message"===i.type?(t.dataLayer.push({event:"CollectChatMessage",page:e.getParentUrl()}),"function"==typeof t.CollectChatLauncher.on.message&&t.CollectChatLauncher.on.message(i.content,i.answerList)):"chat-bot-completed"===i.type?(t.dataLayer.push({event:"CollectChatComplete",page:e.getParentUrl()}),"function"==typeof t.CollectChatLauncher.on.complete&&t.CollectChatLauncher.on.complete(i.content),a&&isNaN(a.get("collect_chat_completed"))?a.set("collect_chat_completed",1,{expires:30}):a&&a.set("collect_chat_completed",Number(a.get("collect_chat_completed"))+1,{expires:30})):"cc-sync-preview"===i.type&&(e.syncPreview(i.payload,t.CollectChatLauncher.elements),["config.position","config.startMessage"].includes(i.payload.path)&&c.reInit(r(r({},o),i.payload.body)),t.CollectChatLauncher.elements.iframe.contentWindow.postMessage({type:"cc-sync-preview",payload:i.payload},"*"))}),!1)}},reInit:function(e){if(e){if(e.clearCache=!0,!CollectChatLauncher.elements.div_root)return t.CollectChatLauncher.status="loading",void this.init(e);CollectChatLauncher.elements.div_root.parentNode&&CollectChatLauncher.elements.div_root.parentNode.removeChild(CollectChatLauncher.elements.div_root),CollectChatLauncher.elements.div_launcher.parentNode&&CollectChatLauncher.elements.div_launcher.parentNode.removeChild(CollectChatLauncher.elements.div_launcher),CollectChatLauncher.elements.div_tint&&CollectChatLauncher.elements.div_tint.parentNode&&CollectChatLauncher.elements.div_tint.parentNode.removeChild(CollectChatLauncher.elements.div_tint),t.CollectChatLauncher.status="loading",this.init(e)}},initEventHandler:function(n){CollectChatLauncher.elements.div_launcher.onclick=function(){CollectChatLauncher.toggle()},CollectChatLauncher.elements.div_launcher.addEventListener("animationend",(function(){e.addClass(CollectChatLauncher.elements.div_message,"slide-in")}));var o=document.querySelectorAll("a[href*='#collectchat']")[0]||document.querySelectorAll("a[href*='@collectchat']")[0];o&&(o.onclick=function(e){e.preventDefault();var n=e.target.getAttribute("href").substr(1),a=n.split("@").length>1?n.split("@")[0]:null;t.CollectChatLauncher.toggle(a)}),CollectChatLauncher.elements.div_close.onclick=function(t){CollectChatLauncher.close()},CollectChatLauncher.elements.launcher_close&&(CollectChatLauncher.elements.launcher_close.onclick=function(t){t.stopPropagation(),document.getElementById("chat-bot-avatar-text").style.display="none"}),CollectChatLauncher.elements.message_close&&(CollectChatLauncher.elements.message_close.onclick=function(t){t.stopPropagation(),document.getElementById("chat-bot-message-container").style.display="none",h(),a&&isNaN(a.get("collect_chat_closed"))?a.set("collect_chat_closed",1,{expires:30}):a&&a.set("collect_chat_closed",Number(a.get("collect_chat_closed"))+1,{expires:30})}),CollectChatLauncher.elements.div_restart.onclick=function(t){CollectChatLauncher.elements.iframe.contentWindow.postMessage({type:"chat-bot-restart"},"*")}},open:function(n){n?(CollectChatLauncher.destroy(),CollectAlwaysOpen=!0,CollectChatLauncher.opened=!0,CollectChatLauncher.load(n)):(t.dataLayer.push({event:"CollectChatView",page:e.getParentUrl()}),clearTimeout(CollectChatLauncher.timerFunction),CollectChatLauncher.elements.div_root.style.display="block",CollectChatLauncher.elements.div_message.className="message-hide",h(),setTimeout((function(){e.addClass(CollectChatLauncher.elements.div_root,"chat-bot-frame-container-active")}),0),CollectChatLauncher.elements.iframe.contentWindow&&CollectChatLauncher.elements.iframe.contentWindow.postMessage({type:"chat-bot-open"},"*"),"center"===CollectChatLauncher.form.config.position&&(CollectChatLauncher.elements.div_tint.style.display="block"),document.getElementById("chat-bot-avatar-text").style.display="none",e.mobilecheck()&&e.addClass(document.getElementsByTagName("body")[0],"chat-bot-body-noscroll"),CollectChatLauncher.opened=!0,"function"==typeof CollectChatLauncher.on.open&&CollectChatLauncher.on.open())},close:function(){e.mobilecheck()&&e.removeClass(document.getElementsByTagName("body")[0],"chat-bot-body-noscroll"),e.removeClass(CollectChatLauncher.elements.div_root,"chat-bot-frame-container-active"),setTimeout((function(){CollectChatLauncher.elements.div_root.style.display="none"}),1e3*CollectChatLauncher.animationSpeed),CollectChatLauncher.elements.iframe.contentWindow&&CollectChatLauncher.elements.iframe.contentWindow.postMessage({type:"chat-bot-close"},"*"),a&&isNaN(a.get("collect_chat_closed"))?a.set("collect_chat_closed",1,{expires:30}):a&&a.set("collect_chat_closed",Number(a.get("collect_chat_closed"))+1,{expires:30}),"center"===CollectChatLauncher.form.config.position&&(CollectChatLauncher.elements.div_tint.style.display="none"),t.CollectChatLauncher.opened=!1,"function"==typeof t.CollectChatLauncher.on.close&&t.CollectChatLauncher.on.close()},toggle:function(e){CollectChatLauncher.opened?t.CollectChatLauncher.close():t.CollectChatLauncher.open(e)},destroy:function(){CollectChatLauncher.elements.div_root&&CollectChatLauncher.elements.div_root.parentNode&&CollectChatLauncher.elements.div_root.parentNode.removeChild(CollectChatLauncher.elements.div_root),CollectChatLauncher.elements.div_launcher&&CollectChatLauncher.elements.div_launcher.parentNode&&CollectChatLauncher.elements.div_launcher.parentNode.removeChild(CollectChatLauncher.elements.div_launcher),CollectChatLauncher.elements.div_tint&&CollectChatLauncher.elements.div_tint.parentNode&&CollectChatLauncher.elements.div_tint.parentNode.removeChild(CollectChatLauncher.elements.div_tint),t.CollectChatLauncher.status="init"}},t.collectchat={ready:t.collectchat&&t.collectchat.ready,config:function(e){return Object.keys(e).forEach((function(n){t.CollectChatLauncher.customConfig[n]=e[n]})),!0},open:t.CollectChatLauncher.open,close:t.CollectChatLauncher.close,toggle:t.CollectChatLauncher.toggle,load:t.CollectChatLauncher.load,unload:t.CollectChatLauncher.destroy,clear:function(){"loaded"===t.CollectChatLauncher.status?t.CollectChatLauncher.elements.iframe.contentWindow.postMessage({type:"chat-bot-restart"},"*"):t.CollectChatLauncher.callAfterLoad.push({func:t.collectchat.clear,args:arguments})},on:function(e,n){if("function"!=typeof n)return null;switch(e){case"open":t.CollectChatLauncher.on.open=n;break;case"close":t.CollectChatLauncher.on.close=n;break;case"complete":t.CollectChatLauncher.on.complete=n;break;case"message":t.CollectChatLauncher.on.message=n}return!0},is:function(e){return"opened"===e||"closed"===e?t.CollectChatLauncher.opened:"completed"===e&&void 0!==a.get("collect_chat_completed")},set:function(e,n){t.CollectChatLauncher.customAnswers[e]=n,"loaded"===t.CollectChatLauncher.status?t.CollectChatLauncher.elements.iframe.contentWindow.postMessage({type:"chat-bot-answer",content:t.CollectChatLauncher.customAnswers},"*"):t.CollectChatLauncher.callAfterLoad.push({func:t.collectchat.set,args:arguments});for(var a=document.querySelectorAll("iframe[src^='https://links.collect.chat']"),o=0;ot.length)&&(e=t.length);for(var n=0,a=new Array(e);n=t.viewCount?e&&t.show:e&&!t.show;break;case"apiParams":if(t.fieldName){var b=c.getUrlParam(t.fieldName);e=t.entities[0]===b||window.CollectChatLauncher&&window.CollectChatLauncher.customAnswers&&window.CollectChatLauncher.customAnswers[t.fieldName]===t.entities[0]?e&&t.show:e&&!t.show}break;case"completedChats":if(i&&i.get("collect_chat_completed"))Number(i.get("collect_chat_completed"))>0&&(e=e&&t.show);break;default:e=e&&!0}var g,v})),e},r.resolveDateRules=function(t,e){if(t.startDateActive&&t.startDate&&"<"===c.compareDate((new Date).toISOString(),t.startDate))return!1;if(t.endDateActive&&t.endDate&&">"===c.compareDate((new Date).toISOString(),t.endDate))return!1;if(t.startTimeActive&&!t.endTimeActive&&t.startTime&&e&&e.offset&&t.startTime!==t.endTime){var n=c.convertToServerTime(e.offset),a=n.getHours()<10?"0".concat(n.getHours()):n.getHours(),o=n.getMinutes()<10?"0".concat(n.getMinutes()):n.getMinutes(),r="".concat(a,":").concat(o);if("<"===c.compareTime(r,c.convertTime12to24(t.startTime)))return!1}if(t.endTimeActive&&t.endTime&&!t.startTimeActive&&e&&e.offset&&t.startTime!==t.endTime){var i=c.convertToServerTime(e.offset),l=i.getHours()<10?"0".concat(i.getHours()):i.getHours(),s=i.getMinutes()<10?"0".concat(i.getMinutes()):i.getMinutes(),u="".concat(l,":").concat(s);if(">"===c.compareTime(u,c.convertTime12to24(t.endTime)))return!1}if(t.endTimeActive&&t.endTime&&t.startTimeActive&&t.startTime&&e&&e.offset&&t.startTime!==t.endTime){var h=t.startTime.split(" ")[1],d=t.endTime.split(" ")[1];if("am"===h&&"am"===d||"pm"===h&&"pm"===d||"am"===h&&"pm"===d){var p=c.convertToServerTime(e.offset),m=p.getHours()<10?"0".concat(p.getHours()):p.getHours(),f=p.getMinutes()<10?"0".concat(p.getMinutes()):p.getMinutes(),b="".concat(m,":").concat(f);if("<"===c.compareTime(b,c.convertTime12to24(t.startTime)))return!1;if(">"===c.compareTime(b,c.convertTime12to24(t.endTime)))return!1}else if("pm"===h&&"am"===d){var g=c.convertToServerTime(e.offset),v=g.getHours()<10?"0".concat(g.getHours()):g.getHours(),C=g.getMinutes()<10?"0".concat(g.getMinutes()):g.getMinutes(),x="".concat(v,":").concat(C);if(!(">"===c.compareTime(x,c.convertTime12to24(t.startTime))&&"<"===c.compareTime(x,c.convertTime12to24("23:59"))||">"===c.compareTime(x,c.convertTime12to24("00:00"))&&"<"===c.compareTime(x,c.convertTime12to24(t.endTime))))return!1}}if(t.daysOfWeek&&t.daysOfWeek.length){var w=new Date,y=new Array(7);y[0]="Sun",y[1]="Mon",y[2]="Tue",y[3]="Wed",y[4]="Thu",y[5]="Fri",y[6]="Sat";var k=y[w.getDay()];if(-1===t.daysOfWeek.findIndex((function(t){return t.toLowerCase()===k.toLowerCase()})))return!1}return!0},t.exports=r},9:function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,a=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var o,r=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?t:(o=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:a+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}}});