{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/md5/md5.js","webpack:///./node_modules/crypt/crypt.js","webpack:///./node_modules/is-buffer/index.js","webpack:///./app/javascript/lime-ui/sdk/sdk.js","webpack:///./app/javascript/lime-ui/sdk/DOMHelpers.js","webpack:///./app/javascript/lime-ui/sdk/constants.js","webpack:///./app/javascript/lime-ui/sdk/bubbleHelpers.js","webpack:///./app/javascript/lime-ui/shared/helpers/CustomEventHelper.js","webpack:///./app/javascript/lime-ui/sdk/IFrameHelper.js","webpack:///./app/javascript/lime-ui/packs/sdk.js","webpack:///./node_modules/js-cookie/src/js.cookie.js","webpack:///./node_modules/charenc/charenc.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","crypt","utf8","isBuffer","bin","md5","message","options","constructor","String","encoding","stringToBytes","Array","slice","isArray","Uint8Array","toString","bytesToWords","length","a","b","FF","_ff","GG","_gg","HH","_hh","II","_ii","aa","bb","cc","dd","endian","x","_blocksize","_digestsize","undefined","Error","digestbytes","wordsToBytes","asBytes","asString","bytesToString","bytesToHex","base64map","rotl","rotr","Number","randomBytes","bytes","push","Math","floor","random","words","hex","join","hexToBytes","parseInt","substr","bytesToBase64","base64","triplet","j","charAt","base64ToBytes","replace","imod4","indexOf","pow","obj","readFloatLE","isSlowBuffer","_isBuffer","wootOn","elm","event","fn","document","addEventListener","attachEvent","apply","arguments","classHelper","classes","action","search","has","classarray","split","RegExp","className","match","addClass","toggleClass","removeClass","BUBBLE_DESIGN","body","getElementsByTagName","widgetHolder","createElement","bubbleHolder","chatBubble","CloseWidgetPopupDIV","closepopupJSON","firstTimePopupJSON","firstTimePopUp","unreadPopUp","unreadBadge","timer","getBubbleView","type","includes","isExpandedView","setBubbleText","bubbleText","sizeType","textNode","getElementById","innerHTML","createBubbleIcon","src","target","bubbleClassName","bubbleIcon","alt","appendChild","id","onBubbleClick","props","clearTimeout","iframe","querySelector","window","innerWidth","style","zIndex","$chatwoot","widgetZIndex","getAttribute","toggleValue","isOpen","newIsOpen","display","closeuppopupEnabled","createCloseWidgetPopUp","IFrameHelper","events","onBubbleToggle","position","closeuppopupText","right","type_mobile","removeChild","onclick","createFirstTimeWidgetPopUp","firstTimePopUpJSON","popupImageHtml","firsttimepopupImage","popupTextHtml","firsttimepopupText","firsttimepopupPosition","position_mobile","insertBefore","dispatchWindowEvent","eventName","CustomEvent","createEvent","initCustomEvent","dispatchEvent","homepopupsettingsJSON","closepopupsettingJSON","getUrl","baseUrl","websiteToken","createFrame","widgetColor","homepopupsettingOptions","closepopupsettingOptions","firsttimepopupsettingOptions","cwCookie","Cookies","widgetUrl","setAttribute","JSON","parse","firsttimepopupEnabled","hideMessageBubble","firsttimepopupTimer","setTimeout","loadLimeBubble","visibility","holderClassName","initPostMessageCommunication","initLocationListener","initWindowSizeListener","preventDefaultScroll","getAppFrame","sendMessage","contentWindow","postMessage","stringify","onhashchange","setCurrentUrl","onmessage","e","data","toggleCloseButton","deltaY","contentHeight","scrollHeight","visibleHeight","offsetHeight","scrollTop","preventDefault","loaded","set","config","authToken","expires","sameSite","hasLoaded","locale","showPopoutButton","onLoad","el","channelConfig","widgetZindex","user","setBubbleLabel","console","info","widget_type","launcherTitle","launcherTitle_mobile","label","toggleBubble","pushEvent","setUnreadMode","unreadMessageCount","unreadMessages","createUnreadWidgetPopUp","isEnable","content","unreadPopup","setConversationZeroSetup","loadCSS","css","leftMargin","bottomMargin","rightMargin","leftMargin_mobile","bottomMargin_mobile","rightMargin_mobile","readyState","popupEnabled","createPopUp","popuptimer","JsonfromIframehelper","initializeFirstTimepopupJSON","chatIcon","isDefaultWidgetImage","defaultWidgetImage","bubbleImage","background","referrerURL","location","href","referrerHost","host","matchMedia","matches","showClose","homepopupsettings","div","homepopupsettingsJSON2","popupimageurl","popuptitle","popupsubtext","popupplaceholder","popupbuttontext","REQUIRED_USER_KEYS","ALLOWED_USER_ATTRIBUTES","getUserCookieName","websiteIdentifier","getUserString","identifier","reduce","acc","hasUserKeys","chatwootSDK","run","async","config_url","default_config","fetch","then","json","widget_color","closewidgetpopupsettingOptions","fetchWidgetConfig","chatwootSettings","image","isEnabledOnDesktop","isEnabledOnMobile","widgetBodyFont","widgetBGColor","botAvatarImage","toggle","setUser","userCookieName","existingCookieValue","hashToBeStored","computeHashForUserData","args","setCustomAttributes","customAttributes","keys","deleteCustomAttribute","customAttribute","setLabel","removeLabel","setLocale","localeToBeUsed","reset","remove","querySelectorAll","forEach","factory","OldCookies","api","noConflict","extend","result","attributes","decode","decodeURIComponent","init","converter","path","defaults","Date","toUTCString","test","write","encodeURIComponent","escape","stringifiedAttributes","attributeName","cookie","jar","cookies","parts","read","getJSON","withConverter","charenc","str","unescape","charCodeAt","fromCharCode"],"mappings":";wlBACE,IAAIA,EAAmB,CAAC,EAGxB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,CAAC,GAUX,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,OACf,CAIAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,GAEhE,EAGAZ,EAAoBkB,EAAI,SAAShB,GACX,qBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,GACvD,EAOArB,EAAoBsB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BF,CAeA,OAdApB,EAAIlH,IAAMA,EACVkH,EAAI7V,IAAM,SAAUU,GAClB,OAAOV,EAAIU,GAAK,EAClB,EACAmV,EAAIwB,QAAU,SAAU3W,GACtB,OAAOV,EAAIU,GAAK,EAClB,EACAmV,EAAIL,OAAS,SAAU9U,EAAKuV,GAC1BtH,EAAIjO,EAAK,GAAIqV,EAAOE,EAAY,CAC9BnH,SAAU,IAEd,EACA+G,EAAIU,SAAW,CAAC,EAChBV,EAAIyB,cAAgBlB,EACbP,CACT,CACOO,EAAK,WAAa,GAC3B,G,oBCrIA,IAAImB,EAAU,CAEZnW,KAAM,CAEJS,cAAe,SAAU2V,GACvB,OAAOD,EAAQjW,IAAIO,cAAc4V,SAASb,mBAAmBY,IAC/D,EAEA3T,cAAe,SAAUO,GACvB,OAAO+R,mBAAmBU,OAAOU,EAAQjW,IAAIuC,cAAcO,IAC7D,GAGF9C,IAAK,CAEHO,cAAe,SAAU2V,GACvB,IAAK,IAAIpT,EAAQ,GAAIjF,EAAI,EAAGA,EAAIqY,EAAIpV,OAAQjD,IAAKiF,EAAMC,KAAyB,IAApBmT,EAAIE,WAAWvY,IAC3E,OAAOiF,CACT,EAEAP,cAAe,SAAUO,GACvB,IAAK,IAAIoT,EAAM,GAAIrY,EAAI,EAAGA,EAAIiF,EAAMhC,OAAQjD,IAAKqY,EAAInT,KAAK1C,OAAOgW,aAAavT,EAAMjF,KACpF,OAAOqY,EAAI7S,KAAK,GAClB,IAGJzF,EAAOD,QAAUsY,C","file":"js/sdk.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2249);\n","(function () {\n var crypt = require('crypt'),\n utf8 = require('charenc').utf8,\n isBuffer = require('is-buffer'),\n bin = require('charenc').bin,\n // The core\n md5 = function (message, options) {\n // Convert to byte array\n if (message.constructor == String) {\n if (options && options.encoding === 'binary') message = bin.stringToBytes(message);else message = utf8.stringToBytes(message);\n } else if (isBuffer(message)) message = Array.prototype.slice.call(message, 0);else if (!Array.isArray(message) && message.constructor !== Uint8Array) message = message.toString();\n // else, assume byte array already\n\n var m = crypt.bytesToWords(message),\n l = message.length * 8,\n a = 1732584193,\n b = -271733879,\n c = -1732584194,\n d = 271733878;\n\n // Swap endian\n for (var i = 0; i < m.length; i++) {\n m[i] = (m[i] << 8 | m[i] >>> 24) & 0x00FF00FF | (m[i] << 24 | m[i] >>> 8) & 0xFF00FF00;\n }\n\n // Padding\n m[l >>> 5] |= 0x80 << l % 32;\n m[(l + 64 >>> 9 << 4) + 14] = l;\n\n // Method shortcuts\n var FF = md5._ff,\n GG = md5._gg,\n HH = md5._hh,\n II = md5._ii;\n for (var i = 0; i < m.length; i += 16) {\n var aa = a,\n bb = b,\n cc = c,\n dd = d;\n a = FF(a, b, c, d, m[i + 0], 7, -680876936);\n d = FF(d, a, b, c, m[i + 1], 12, -389564586);\n c = FF(c, d, a, b, m[i + 2], 17, 606105819);\n b = FF(b, c, d, a, m[i + 3], 22, -1044525330);\n a = FF(a, b, c, d, m[i + 4], 7, -176418897);\n d = FF(d, a, b, c, m[i + 5], 12, 1200080426);\n c = FF(c, d, a, b, m[i + 6], 17, -1473231341);\n b = FF(b, c, d, a, m[i + 7], 22, -45705983);\n a = FF(a, b, c, d, m[i + 8], 7, 1770035416);\n d = FF(d, a, b, c, m[i + 9], 12, -1958414417);\n c = FF(c, d, a, b, m[i + 10], 17, -42063);\n b = FF(b, c, d, a, m[i + 11], 22, -1990404162);\n a = FF(a, b, c, d, m[i + 12], 7, 1804603682);\n d = FF(d, a, b, c, m[i + 13], 12, -40341101);\n c = FF(c, d, a, b, m[i + 14], 17, -1502002290);\n b = FF(b, c, d, a, m[i + 15], 22, 1236535329);\n a = GG(a, b, c, d, m[i + 1], 5, -165796510);\n d = GG(d, a, b, c, m[i + 6], 9, -1069501632);\n c = GG(c, d, a, b, m[i + 11], 14, 643717713);\n b = GG(b, c, d, a, m[i + 0], 20, -373897302);\n a = GG(a, b, c, d, m[i + 5], 5, -701558691);\n d = GG(d, a, b, c, m[i + 10], 9, 38016083);\n c = GG(c, d, a, b, m[i + 15], 14, -660478335);\n b = GG(b, c, d, a, m[i + 4], 20, -405537848);\n a = GG(a, b, c, d, m[i + 9], 5, 568446438);\n d = GG(d, a, b, c, m[i + 14], 9, -1019803690);\n c = GG(c, d, a, b, m[i + 3], 14, -187363961);\n b = GG(b, c, d, a, m[i + 8], 20, 1163531501);\n a = GG(a, b, c, d, m[i + 13], 5, -1444681467);\n d = GG(d, a, b, c, m[i + 2], 9, -51403784);\n c = GG(c, d, a, b, m[i + 7], 14, 1735328473);\n b = GG(b, c, d, a, m[i + 12], 20, -1926607734);\n a = HH(a, b, c, d, m[i + 5], 4, -378558);\n d = HH(d, a, b, c, m[i + 8], 11, -2022574463);\n c = HH(c, d, a, b, m[i + 11], 16, 1839030562);\n b = HH(b, c, d, a, m[i + 14], 23, -35309556);\n a = HH(a, b, c, d, m[i + 1], 4, -1530992060);\n d = HH(d, a, b, c, m[i + 4], 11, 1272893353);\n c = HH(c, d, a, b, m[i + 7], 16, -155497632);\n b = HH(b, c, d, a, m[i + 10], 23, -1094730640);\n a = HH(a, b, c, d, m[i + 13], 4, 681279174);\n d = HH(d, a, b, c, m[i + 0], 11, -358537222);\n c = HH(c, d, a, b, m[i + 3], 16, -722521979);\n b = HH(b, c, d, a, m[i + 6], 23, 76029189);\n a = HH(a, b, c, d, m[i + 9], 4, -640364487);\n d = HH(d, a, b, c, m[i + 12], 11, -421815835);\n c = HH(c, d, a, b, m[i + 15], 16, 530742520);\n b = HH(b, c, d, a, m[i + 2], 23, -995338651);\n a = II(a, b, c, d, m[i + 0], 6, -198630844);\n d = II(d, a, b, c, m[i + 7], 10, 1126891415);\n c = II(c, d, a, b, m[i + 14], 15, -1416354905);\n b = II(b, c, d, a, m[i + 5], 21, -57434055);\n a = II(a, b, c, d, m[i + 12], 6, 1700485571);\n d = II(d, a, b, c, m[i + 3], 10, -1894986606);\n c = II(c, d, a, b, m[i + 10], 15, -1051523);\n b = II(b, c, d, a, m[i + 1], 21, -2054922799);\n a = II(a, b, c, d, m[i + 8], 6, 1873313359);\n d = II(d, a, b, c, m[i + 15], 10, -30611744);\n c = II(c, d, a, b, m[i + 6], 15, -1560198380);\n b = II(b, c, d, a, m[i + 13], 21, 1309151649);\n a = II(a, b, c, d, m[i + 4], 6, -145523070);\n d = II(d, a, b, c, m[i + 11], 10, -1120210379);\n c = II(c, d, a, b, m[i + 2], 15, 718787259);\n b = II(b, c, d, a, m[i + 9], 21, -343485551);\n a = a + aa >>> 0;\n b = b + bb >>> 0;\n c = c + cc >>> 0;\n d = d + dd >>> 0;\n }\n return crypt.endian([a, b, c, d]);\n };\n\n // Auxiliary functions\n md5._ff = function (a, b, c, d, x, s, t) {\n var n = a + (b & c | ~b & d) + (x >>> 0) + t;\n return (n << s | n >>> 32 - s) + b;\n };\n md5._gg = function (a, b, c, d, x, s, t) {\n var n = a + (b & d | c & ~d) + (x >>> 0) + t;\n return (n << s | n >>> 32 - s) + b;\n };\n md5._hh = function (a, b, c, d, x, s, t) {\n var n = a + (b ^ c ^ d) + (x >>> 0) + t;\n return (n << s | n >>> 32 - s) + b;\n };\n md5._ii = function (a, b, c, d, x, s, t) {\n var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;\n return (n << s | n >>> 32 - s) + b;\n };\n\n // Package private blocksize\n md5._blocksize = 16;\n md5._digestsize = 16;\n module.exports = function (message, options) {\n if (message === undefined || message === null) throw new Error('Illegal argument ' + message);\n var digestbytes = crypt.wordsToBytes(md5(message, options));\n return options && options.asBytes ? digestbytes : options && options.asString ? bin.bytesToString(digestbytes) : crypt.bytesToHex(digestbytes);\n };\n})();","(function () {\n var base64map = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',\n crypt = {\n // Bit-wise rotation left\n rotl: function (n, b) {\n return n << b | n >>> 32 - b;\n },\n // Bit-wise rotation right\n rotr: function (n, b) {\n return n << 32 - b | n >>> b;\n },\n // Swap big-endian to little-endian and vice versa\n endian: function (n) {\n // If number given, swap endian\n if (n.constructor == Number) {\n return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;\n }\n\n // Else, assume array and swap all items\n for (var i = 0; i < n.length; i++) n[i] = crypt.endian(n[i]);\n return n;\n },\n // Generate an array of any length of random bytes\n randomBytes: function (n) {\n for (var bytes = []; n > 0; n--) bytes.push(Math.floor(Math.random() * 256));\n return bytes;\n },\n // Convert a byte array to big-endian 32-bit words\n bytesToWords: function (bytes) {\n for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8) words[b >>> 5] |= bytes[i] << 24 - b % 32;\n return words;\n },\n // Convert big-endian 32-bit words to a byte array\n wordsToBytes: function (words) {\n for (var bytes = [], b = 0; b < words.length * 32; b += 8) bytes.push(words[b >>> 5] >>> 24 - b % 32 & 0xFF);\n return bytes;\n },\n // Convert a byte array to a hex string\n bytesToHex: function (bytes) {\n for (var hex = [], i = 0; i < bytes.length; i++) {\n hex.push((bytes[i] >>> 4).toString(16));\n hex.push((bytes[i] & 0xF).toString(16));\n }\n return hex.join('');\n },\n // Convert a hex string to a byte array\n hexToBytes: function (hex) {\n for (var bytes = [], c = 0; c < hex.length; c += 2) bytes.push(parseInt(hex.substr(c, 2), 16));\n return bytes;\n },\n // Convert a byte array to a base-64 string\n bytesToBase64: function (bytes) {\n for (var base64 = [], i = 0; i < bytes.length; i += 3) {\n var triplet = bytes[i] << 16 | bytes[i + 1] << 8 | bytes[i + 2];\n for (var j = 0; j < 4; j++) if (i * 8 + j * 6 <= bytes.length * 8) base64.push(base64map.charAt(triplet >>> 6 * (3 - j) & 0x3F));else base64.push('=');\n }\n return base64.join('');\n },\n // Convert a base-64 string to a byte array\n base64ToBytes: function (base64) {\n // Remove non-base-64 characters\n base64 = base64.replace(/[^A-Z0-9+\\/]/ig, '');\n for (var bytes = [], i = 0, imod4 = 0; i < base64.length; imod4 = ++i % 4) {\n if (imod4 == 0) continue;\n bytes.push((base64map.indexOf(base64.charAt(i - 1)) & Math.pow(2, -2 * imod4 + 8) - 1) << imod4 * 2 | base64map.indexOf(base64.charAt(i)) >>> 6 - imod4 * 2);\n }\n return bytes;\n }\n };\n module.exports = crypt;\n})();","/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer);\n};\nfunction isBuffer(obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj);\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer(obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0));\n}","export const SDK_CSS = `\n.woot-widget-holder {\n box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;\n opacity: 1;\n overflow: hidden !important;\n position: fixed !important;\n transition-duration: 0.5s, 0.5s;\n transition-property: opacity, bottom;\n transition-timing-function: ease-in-out;\n z-index: 2147483647;\n}\n\n.woot-widget-holder iframe {\n border: 0;\n height: 100% !important;\n width: 100% !important;\n}\n\n.woot--bubble-holder {\n display: flex;\n flex-direction: column;\n align-items: center;\n position: fixed;\n bottom: 16px;\n z-index: 2147483647;\n}\n\n.woot-widget-bubble {\n display: flex;\n align-items: center;\n justify-content: center;\n background: #7ecb20;\n border-radius: 50% !important;\n border: 1px solid #FFFFFF;\n box-sizing: border-box;\n cursor: pointer;\n height: 48px;\n width: 48px;\n position: relative;\n user-select: none;\n filter: drop-shadow(0px 1px 4px rgba(0,0,0,0.2));\n transition: 0.3s;\n animation: widget-animation 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n\n.woot-widget-bubble:active {\n transform: scale(1)\n}\n\n.woot--bubble-holder.woot-elements--left {\n left: 16px;\n align-items: flex-start;\n}\n\n.woot--bubble-holder.woot-elements--right {\n align-items: flex-end;\n right: 16px;\n}\n\n.woot-widget-bubble:hover, .lime-first-time-popup:hover {\n filter: drop-shadow(0px 1px 8px rgba(0,0,0,0.4));\n transform: scale(1.02)\n}\n\n.woot-widget-bubble img {\n transition: initial! important;\n background-color: initial !important;\n opacity: 1 !important;\n width: 100%;\n height: 100%;\n border-radius: 50% !important;\n}\n\n@media only screen and (min-width: 667px) {\n .woot-widget-holder.woot-elements--left {\n left: 16px;\n }\n .woot-widget-holder.woot-elements--right {\n right: 16px;\n }\n}\n\n.woot-widget-bubble.woot-widget--standard_small {\n height: 40px;\n width: 40px;\n}\n\n.woot-widget-bubble.woot-widget--standard_large{\n height: 64px;\n width: 64px;\n}\n\n.woot-widget--standard_small,\n.woot-widget--standard_medium,\n.woot-widget--standard_large{\n box-shadow: none !important;\n border: none;\n}\n\n.woot-widget--standard_small.white-background,\n.woot-widget--standard_medium.white-background,\n.woot-widget--standard_large.white-background{\n background: url(\"https://cdn-icons-png.flaticon.com/128/7246/7246727.png\") center no-repeat;\n background-size: contain;\n background-color: #fff !important;\n}\n\n.woot-widget-bubble.woot-widget--standard_large img {\n height: 64px;\n width: 64px;\n}\n\n.woot-widget-bubble.woot-widget--expanded_small {\n display: flex;\n align-items: center;\n height: 48px !important;\n width: auto !important;\n border-radius: 140px !important;\n}\n\n.woot-widget-bubble.woot-widget--expanded_small div {\n color: #fff;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n padding-right: 8px;\n}\n\n.woot-widget-bubble.woot-widget--expanded_small img {\n height: 24px;\n width: 24px;\n margin-right: 4px;\n}\n\n.woot-widget-bubble.woot-widget--expanded_medium {\n display: flex;\n align-items: center;\n height: 48px !important;\n width: auto !important;\n border-radius: 140px !important;\n}\n\n.woot-widget-bubble.woot-widget--expanded_medium div {\n color: #fff;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, sans-serif;\n font-size: 16px;\n font-weight: 500;\n line-height: 20px;\n padding-right: 8px;\n}\n\n.woot-widget-bubble.woot-widget--expanded_medium img {\n height: 32px;\n width: 32px;\n margin-right: 4px;\n}\n\n.woot-widget-bubble.woot-widget--expanded_large {\n display: flex;\n height: 56px !important;\n width: auto !important;\n border-radius: 140px !important;\n}\n\n.woot-widget-bubble.woot-widget--expanded_large div {\n color: #fff;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, sans-serif;\n font-size: 20px;\n font-weight: 500;\n line-height: 28px;\n justify-content: center;\n padding-right: 8px;\n}\n\n.woot-widget-bubble.woot-widget--expanded_large img {\n height: 40px;\n width: 40px;\n margin-right: 4px;\n}\n\n.woot--hide {\n bottom: -20000px !important;\n opacity: 0;\n visibility: hidden !important;\n z-index: -1 !important;\n}\n\n.woot--show {\n bottom: 0px;\n opacity: 1;\n visibility: visible !important;\n z-index: 1000203109 !important;\n}\n\n.woot-widget--without-bubble {\n bottom: 16px !important;\n}\n\n.lime-first-time-popup {\n display: flex;\n justify-content: space-between;\n gap: 8px;\n align-items: center;\n position: absolute;\n font-family: Lato, sans-serif;\n font-size: 14px;\n background-color: #fff;\n border-radius: 10px;\n filter: drop-shadow(0px 1px 4px rgba(0,0,0,0.4));\n width: intrinsic;\n width: -moz-max-content;\n width: -webkit-max-content;\n white-space: pre-wrap;\n color: #1d2129;\n padding: 12px;\n word-break: break-word;\n text-decoration: none;\n max-width: 180px;\n height: auto !important;\n transition: 0.3s;\n}\n\n.lime-first-time-popup--side-right{\n right: 108%;\n bottom: 2px;\n -webkit-animation: lime-fade-in-right 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n animation: lime-fade-in-left 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n\n.lime-first-time-popup--side-right-standard_medium{\n right: 124%;\n}\n\n.lime-first-time-popup--side-right-standard_small{\n right: 128%;\n bottom: 0;\n}\n\n.lime-first-time-popup--side-right-standard_large{\n right: 122%;\n bottom: 10px;\n}\n\n.lime-first-time-popup--side-right:after {\n transform: translateX(5px) rotate(45deg);\n box-shadow: rgb(0 0 0 / 20%) 2px -2px 4px 0px;\n display: block;\n position: absolute;\n content: \"\";\n width: 10px;\n height: 10px;\n bottom: 12px;\n background-color: #fff;\n right: 0;\n}\n\n.lime-first-time-popup--top-right{\n right: 0;\n bottom: 125%;\n -webkit-animation: lime-fade-in-bottom 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n animation: lime-fade-in-bottom 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n\n.lime-first-time-popup--top-right:after {\n transform: translateX(-20px) rotate(45deg);\n box-shadow: rgb(0 0 0 / 20%) 2px 2px 4px 0px;\n display: block;\n position: absolute;\n content: \"\";\n width: 10px;\n height: 10px;\n bottom: -4px;\n background-color: #fff;\n right: 0;\n}\n\n.lime-first-time-popup--top-right-standard_medium{\n right: 0;\n}\n\n.lime-first-time-popup--top-right-standard_small{\n right: -5px;\n}\n\n.lime-first-time-popup--top-right-standard_large{\n right: 8px;\n bottom: 120%;\n}\n\n.lime-first-time-popup--side-left{\n bottom: 2px;\n left: 108%;\n -webkit-animation: lime-fade-in-right 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n animation: lime-fade-in-right 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n\n.lime-first-time-popup--side-left-standard_medium{\n left: 124%\n}\n\n.lime-first-time-popup--side-left-standard_small{\n left: 128%;\n bottom: 0;\n}\n\n.lime-first-time-popup--side-left-standard_large{\n left: 122%;\n bottom: 10px;\n}\n\n.lime-first-time-popup--side-left:after {\n transform: translateX(-5px) rotate(225deg);\n box-shadow: rgb(0 0 0 / 20%) 2px -2px 4px 0px;\n display: block;\n position: absolute;\n content: \"\";\n width: 10px;\n height: 10px;\n bottom: 12px;\n background-color: #fff;\n left: 0;\n}\n\n\n.lime-first-time-popup--top-left{\n left: 0;\n bottom: 125%;\n -webkit-animation: lime-fade-in-bottom 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n animation: lime-fade-in-bottom 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n\n.lime-first-time-popup--top-left:after {\n transform: translateX(-20px) rotate(45deg);\n -webkit-transform: translateX(-145px) rotate(45deg);\n -moz-transform: translateX(-20px) rotate(45deg);\n -o-transform: translateX(-20px) rotate(45deg);\n -ms-transform: translateX(-20px) rotate(45deg);\n -moz-box-shadow: rgb(0 0 0 / 20%) 2px 2px 4px 0px;\n -webkit-box-shadow: rgb(0 0 0 / 20%) 2px 2px 4px 0px;\n box-shadow: rgb(0 0 0 / 20%) 2px 2px 4px 0px;\n display: block;\n position: absolute;\n content: \"\";\n width: 10px;\n height: 10px;\n bottom: -4px;\n background-color: #fff;\n left: 180px;\n}\n\n.lime-first-time-popup--top-left-standard_medium{\n left: -16px;\n}\n\n.lime-first-time-popup--top-left-standard_small{\n left: -20px;\n}\n\n.lime-first-time-popup--top-left-standard_large{\n left: -8px;\n}\n\n.lime-first-time-popup--left {\n border-bottom-right-radius: 12px !important;\n}\n\n.lime-first-time-popup .close-button {\n align-self: flex-start;\n line-height: 0.8rem;\n color: #595959;\n font-size: 20px;\n margin-bottom: 2px;\n cursor: pointer;\n -webkit-animation: chevron-rotate 1.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n animation: chevron-rotate 1.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n\n.lime-first-time-popup .close-button:hover{\n color: #000000;\n transform: scale(1.08)\n}\n\n.lime-first-time-popup .close-button:active{\n color: #000000;\n transform: scale(1)\n}\n\n.lime-first-time-popup .popup-image {\n height: 24px !important;\n width: 24px !important;\n border-radius: 100% !important;\n margin: 0 !important;\n box-shadow: unset;\n -webkit-animation: animate-image 5s ease-in-out infinite;\n animation: animate-image 5s ease-in-out infinite;\n}\n\n@keyframes widget-animation {\n 0% {\n -webkit-transform: translateY(50px);\n transform: translateY(50px);\n opacity: 0.2;\n }\n 100% {\n -webkit-transform: translateY(0);\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n@keyframes animate-image {\n 50% {\n transform: scale(1.1);\n box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 3px 4px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.14);\n }\n}\n\n@keyframes chevron-rotate {\n 0%{\n transform: rotate(120deg);\n opacity: 0.2;\n }\n 100%{\n transform: rotate(0);\n opacity: 1;\n }\n}\n\n@keyframes lime-fade-in-bottom {\n 0% {\n -webkit-transform: translateY(50px);\n transform: translateY(50px);\n opacity: 0.2;\n }\n 100% {\n -webkit-transform: translateY(0);\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n@keyframes lime-fade-in-right {\n 0% {\n -webkit-transform: translateX(50px);\n transform: translateX(50px);\n opacity: 0;\n }\n 100% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n}\n\n@keyframes lime-fade-in-left {\n 0% {\n -webkit-transform: translateX(-50px);\n transform: translateX(-50px);\n opacity: 0;\n }\n 100% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n}\n\n.lime-unread-badge {\n position: absolute;\n border: 1px solid #d9d9d9;\n top: -8px;\n right: -8px;\n padding: 0 !important;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n width: 24px;\n color: #fff !important;\n height: 24px;\n background: rgba(255, 66, 46, 1) !important;\n font-size: 12px !important;\n line-height: 20px !important;\n}\n\n.lime-unread-popup {\n display: flex;\n word-break: break-word;\n flex-direction: row;\n position: relative;\n align-items: flex-start !important;\n justify-content: center;\n background: white;\n max-width: 200px !important;\n min-width: 30px;\n cursor: pointer;\n box-sizing: border-box !important;\n margin-bottom: 8px;\n margin-left: 8px;\n box-shadow: 0px 0px 4px 0px rgb(0 0 0 / 20%);\n border-radius: 12px;\n font-size: 16px !important;\n line-height: 20px !important;\n padding: 8px !important;\n color: #434343 !important;\n font-weight: 400 !important;\n}\n\n.lime-unread-popup--right {\n margin-right: 8px;\n margin-left: unset !important;\n}\n\n.lime-unread-popup span {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n}\n\n.lime-unread-popup::before {\n content: '';\n position: absolute;\n visibility: visible;\n top: 90%;\n left: 7px !important;\n border: 8px solid transparent;\n border-top: 11px solid white;\n clear: both;\n}\n\n.lime-unread-popup--right::before {\n left: unset !important;\n right: 7px !important;\n}\n\n.lime-unread-popup--animate {\n -webkit-animation: scale-up-hor-left 0.4s ease-out both;\n animation: scale-up-hor-left 0.4s ease-out both;\n}\n\n@keyframes scale-up-hor-left {\n 0% {\n -webkit-transform: scaleX(0);\n transform: scaleX(0);\n -webkit-transform-origin: 0% 0%;\n transform-origin: 0% 0%;\n }\n 100% {\n -webkit-transform: scaleX(1);\n transform: scaleX(1);\n -webkit-transform-origin: 0% 0%;\n transform-origin: 0% 0%;\n }\n}\n\n.lime-banner-button, button.material-icons {\n background: none;\n border: 0px;\n color: inherit;\n font-style: inherit;\n font-variant: inherit;\n font-weight: inherit;\n font-stretch: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: normal;\n overflow: visible;\n padding: 0px;\n user-select: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.lime--popup2 {\n background-size: cover;\n margin: 0px auto;\n padding: 50px 20px;\n border-radius: 0px;\n max-height: 42%;\n position: relative;\n text-align: center;\n top: 24% !important;\n position: fixed !important;\n -moz-transform: translateY(-50%);\n -webkit-transform: translateY(-50%);\n -o-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 0px;\n left: 0;\n}\n\n#lime--popup1 {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n}\n\n#lime--popup1 .lime--popup {\n margin: 0px auto;\n padding: 50px 20px;\n background: #fff;\n border-radius: 0px;\n min-height: 510px;\n max-width: 690px;\n position: relative;\n text-align: center;\n top: 50% !important;\n position: fixed !important;\n -moz-transform: translateY(-50%);\n -webkit-transform: translateY(-50%);\n -o-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 0px;\n left: 0;\n}\n\n#lime--popup1 .lime--popup h2 {\n margin-top: 0;\n color: #333;\n}\n\n#lime--popup1 .lime--popup .close {\n position: absolute;\n top: 0px;\n right: 0px;\n transition: all 200ms;\n font-size: 30px;\n font-weight: normal;\n text-decoration: none;\n text-align: center;\n background: #333;\n border-radius: 0;\n cursor: pointer;\n float: right;\n padding: 0;\n color: #fff;\n margin-top: 0;\n margin-right: 0;\n height: 40px;\n width: 40px;\n line-height: 45px;\n}\n\n#lime--popup1 .lime--popup .close:hover {\n color: #06D85F;\n}\n\n#lime--dialog {\n margin-top: 49%;\n}\n\n#lime--popup1 .lime--popup .content {\n max-height: 30%;\n overflow: auto;\n}\n\n#lime--popup1 .newletter-title h2 {\n font-size: 24px;\n text-transform: uppercase;\n color: #000;\n font-weight: 700;\n letter-spacing: 3px;\n margin: 0 0 15px;\n}\n\n#lime--popup1 .box-content label {\n font-weight: 400;\n max-width: 560px;\n display: inline-block;\n margin-bottom: 5px;\n font-size: 14px;\n line-height: 26px;\n}\n\n.newletter-popup {\n background: #fff;\n top: 50% !important;\n position: fixed !important;\n padding: 0;\n text-align: center;\n -moz-transform: translateY(-50%);\n -webkit-transform: translateY(-50%);\n -o-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n}\n\n#lime--popup1 #frm_subscribe #subscribe_pemail {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n background: #EBEBEB none repeat scroll 0% 0%;\n border: medium none;\n height: 40px;\n width: 65%;\n margin: 20px 0;\n padding-left: 15px;\n}\n\n#lime--popup1 #frm_subscribe a {\n cursor: pointer;\n border: none;\n background: #333;\n padding: 3px 25px;\n text-transform: uppercase;\n font-size: 14px;\n color: #fff;\n font-weight: 600;\n line-height: 34px;\n display: inline-block;\n border-radius: 0;\n letter-spacing: 2px;\n}\n\n#lime--popup1 .box-content .subscribe-bottom {\n margin-top: 20px;\n}\n\n#lime--popup1 .box-content .subscribe-bottom #newsletter_popup_dont_show_again {\n display: inline-block;\n margin: 0;\n vertical-align: middle;\n margin-top: -1px;\n}\n\n#lime--popup1 .box-content .subscribe-bottom label {\n margin: 0;\n font-weight: 400;\n max-width: 650px;\n display: inline-block;\n margin-bottom: 5px;\n font-size: 12px;\n}\n\n#lime--popup1 *,\n#lime--popup1 *:before,\n#lime--popup1 *:after {\n -webkit-box-sizing: content-box !important;\n -moz-box-sizing: content-box !important;\n box-sizing: content-box !important;\n}\n\n@media screen and (min-width: 360px) and (max-height: 900px) and (orientation: portrait) {\n .lime--popup2 {\n background-size: cover;\n margin: 0px auto;\n padding: 0px 20px;\n border-radius: 0px;\n position: relative;\n height: 200px;\n width: 283px;\n text-align: center;\n top: 19% !important;\n position: fixed !important;\n -moz-transform: translateY(-50%);\n -webkit-transform: translateY(-50%);\n -o-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 0px;\n left: 0;\n }\n #lime--popup1 .lime--popup {\n margin: 0px auto;\n padding: 0px 20px;\n background: #fff;\n border-radius: 0px;\n min-height: 450px;\n width: 282px;\n position: relative;\n text-align: center;\n top: 50% !important;\n position: fixed !important;\n -moz-transform: translateY(-50%);\n -webkit-transform: translateY(-50%);\n -o-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 0px;\n left: 0;\n }\n #lime--dialog {\n margin-top: 81%;\n }\n #lime--popup1 .newletter-title h2 {\n font-size: 17px;\n text-transform: uppercase;\n color: #000;\n font-weight: 700;\n letter-spacing: 3px;\n margin: 0 0 15px;\n }\n #lime--popup1 .box-content label {\n font-weight: 400;\n max-width: 560px;\n display: inline-block;\n margin-bottom: 5px;\n font-size: 14px;\n line-height: 26px;\n }\n #lime--popup1 #frm_subscribe #subscribe_pemail {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n background: #EBEBEB none repeat scroll 0% 0%;\n border: medium none;\n height: 40px;\n width: 75%;\n margin: 20px 0;\n padding-left: 15px;\n }\n #lime--popup1 *,\n #lime--popup1 *:before,\n #lime--popup1 *:after {\n -webkit-box-sizing: content-box !important;\n -moz-box-sizing: content-box !important;\n box-sizing: content-box !important;\n }\n}\n\n@media screen and (min-width: 300px) and (max-height: 600px) and (orientation: portrait) {\n .lime--popup2 {\n background-size: cover;\n margin: 0px auto;\n padding: 7px 21px;\n border-radius: 0px;\n position: relative;\n height: 139px;\n width: 229px;\n text-align: center;\n top: 17% !important;\n position: fixed !important;\n -moz-transform: translateY(-50%);\n -webkit-transform: translateY(-50%);\n -o-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 0px;\n left: 0;\n }\n #lime--popup1 .lime--popup {\n margin: 0px auto;\n padding: 0px 20px;\n background: #fff;\n border-radius: 0px;\n min-height: 357px;\n width: 229px;\n position: relative;\n text-align: center;\n top: 43% !important;\n position: fixed !important;\n -moz-transform: translateY(-50%);\n -webkit-transform: translateY(-50%);\n -o-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n right: 0px;\n left: 0;\n }\n #lime--dialog {\n margin-top: 81%;\n }\n #lime--popup1 .newletter-title h2 {\n font-size: 14px;\n text-transform: uppercase;\n color: #000;\n font-weight: 700;\n letter-spacing: 3px;\n margin: 0 0 15px;\n }\n #lime--popup1 .box-content label {\n font-weight: 400;\n max-width: 560px;\n display: inline-block;\n margin-bottom: 5px;\n font-size: 12px;\n line-height: 26px;\n }\n #lime--popup1 #frm_subscribe #subscribe_pemail {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n background: #EBEBEB none repeat scroll 0% 0%;\n border: medium none;\n height: 34px;\n width: 75%;\n margin: 8px 0;\n padding-left: 15px;\n }\n #lime--popup1 *,\n #lime--popup1 *:before,\n #lime--popup1 *:after {\n -webkit-box-sizing: content-box !important;\n -moz-box-sizing: content-box !important;\n box-sizing: content-box !important;\n }\n}\n\n@media only screen and (max-width: 667px) {\n .woot-widget-holder {\n height: 100%;\n right: 0;\n top: 0;\n width: 100%;\n }\n .woot-widget-bubble.woot--close {\n bottom: 60px;\n opacity: 0;\n visibility: hidden !important;\n z-index: -1 !important;\n }\n}\n\n@media screen and (min-width: 667px) and (max-height: 667px) {\n .woot-widget-holder {\n height: calc(100% - 32px) !important;\n }\n}\n\n@media only screen and (min-width: 667px) {\n .woot-widget-holder {\n border-radius: 8px !important;\n bottom: 16px;\n height: calc(85% - 64px - 16px);\n max-height: 590px !important;\n min-height: 250px !important;\n width: 400px !important;\n }\n}`;\n","import { SDK_CSS } from './sdk.js';\n\nexport const loadCSS = () => {\n const css = document.createElement('style');\n css.type = 'text/css';\n css.innerHTML = `${SDK_CSS}`;\n document.body.appendChild(css);\n};\n\nexport const wootOn = (elm, event, fn) => {\n if (document.addEventListener) {\n elm.addEventListener(event, fn, false);\n } else if (document.attachEvent) {\n // <= IE 8 loses scope so need to apply, we add this to object so we\n // can detach later (can't detach anonymous functions)\n // eslint-disable-next-line\n elm[event + fn] = function() {\n // eslint-disable-next-line\n return fn.apply(elm, arguments);\n };\n elm.attachEvent(`on${event}`, elm[event + fn]);\n }\n};\n\nexport const classHelper = (classes, action, elm) => {\n let search;\n let replace;\n let i;\n let has = false;\n if (classes) {\n // Trim any whitespace\n const classarray = classes.split(/\\s+/);\n for (i = 0; i < classarray.length; i += 1) {\n search = new RegExp(`\\\\b${classarray[i]}\\\\b`, 'g');\n replace = new RegExp(` *${classarray[i]}\\\\b`, 'g');\n if (action === 'remove') {\n // eslint-disable-next-line\n elm.className = elm.className.replace(replace, '');\n } else if (action === 'toggle') {\n // eslint-disable-next-line\n elm.className = elm.className.match(search)\n ? elm.className.replace(replace, '')\n : `${elm.className} ${classarray[i]}`;\n } else if (action === 'has') {\n if (elm.className.match(search)) {\n has = true;\n break;\n }\n }\n }\n }\n return has;\n};\n\nexport const addClass = (elm, classes) => {\n if (classes) {\n elm.className += ` ${classes}`;\n }\n};\n\nexport const toggleClass = (elm, classes) => {\n classHelper(classes, 'toggle', elm);\n};\n\nexport const removeClass = (elm, classes) => {\n classHelper(classes, 'remove', elm);\n};\n","export const BUBBLE_DESIGN = [\n 'standard_small',\n 'standard_medium',\n 'standard_large',\n 'expanded_small',\n 'expanded_medium',\n 'expanded_large',\n];\n","import { addClass, toggleClass, wootOn, removeClass } from './DOMHelpers';\nimport { IFrameHelper } from './IFrameHelper';\nimport { BUBBLE_DESIGN } from './constants';\n\nexport const body = document.getElementsByTagName('body')[0];\nexport const widgetHolder = document.createElement('div');\n\nexport const bubbleHolder = document.createElement('div');\nexport const chatBubble = document.createElement('div');\nexport const closeBubble = document.createElement('div');\n\nvar timer = 0;\nvar CloseWidgetPopupDIV;\nvar closepopupJSON;\nvar firstTimePopupJSON;\nvar firstTimePopUp;\nvar unreadPopUp;\nvar unreadBadge;\n\nexport const getBubbleView = (type) =>\n BUBBLE_DESIGN.includes(type) ? type : BUBBLE_DESIGN[2];\nexport const isExpandedView = (type) =>\n getBubbleView(type).split('_')[0] === 'expanded';\n\nexport const setBubbleText = (bubbleText, type) => {\n // Set bubble text for expanded. if not bubble text in config, then set default text\n if (isExpandedView(type)) {\n const sizeType = getBubbleView(type);\n const textNode = document.getElementById(`woot-widget--${sizeType}__text`);\n if (textNode) {\n if (bubbleText) {\n textNode.innerHTML = bubbleText;\n } else {\n textNode.innerHTML = 'Chat with us';\n }\n }\n }\n};\n\nexport const createBubbleIcon = ({ className, src, target }, type) => {\n const sizeType = getBubbleView(type);\n let bubbleClassName = `${className} woot-widget--${sizeType}`;\n const bubbleIcon = document.createElement('img');\n bubbleIcon.src = src;\n bubbleIcon.alt = 'bubble-icon';\n target.appendChild(bubbleIcon);\n\n if (isExpandedView(type)) {\n const textNode = document.createElement('div');\n textNode.id = `woot-widget--${sizeType}__text`;\n textNode.innerHTML = '';\n target.appendChild(textNode);\n }\n\n target.className = bubbleClassName;\n return target;\n};\n\nexport const createBubbleHolder = () => {\n addClass(\n bubbleHolder,\n window.innerWidth >= '670' ? `woot--bubble-holder` : `woot--bubble-holder`\n );\n\n if (window.innerWidth >= '670' && window.$chatwoot.position === 'left') {\n bubbleHolder.setAttribute(\n 'style',\n `left: ${window.$chatwoot.leftMargin}px;\n bottom: ${window.$chatwoot.bottomMargin}px;\n align-items: flex-start;\n `\n );\n } else if (\n window.innerWidth >= '670' &&\n window.$chatwoot.position === 'right'\n ) {\n bubbleHolder.setAttribute(\n 'style',\n `right: ${window.$chatwoot.rightMargin}px;\n bottom: ${window.$chatwoot.bottomMargin}px;\n align-items: flex-end;\n `\n );\n } else if (\n window.innerWidth <= '670' &&\n window.$chatwoot.position_mobile === 'left'\n ) {\n bubbleHolder.setAttribute(\n 'style',\n `left: ${window.$chatwoot.leftMargin_mobile}px;\n bottom: ${window.$chatwoot.bottomMargin_mobile}px;\n align-items: flex-end;\n z-index: ${window.$chatwoot.widgetZIndex};\n `\n );\n } else if (\n window.innerWidth <= '670' &&\n window.$chatwoot.position_mobile === 'right'\n ) {\n bubbleHolder.setAttribute(\n 'style',\n `right: ${window.$chatwoot.rightMargin_mobile}px;\n bottom: ${window.$chatwoot.bottomMargin_mobile}px;\n align-items: flex-end;\n z-index: ${window.$chatwoot.widgetZIndex};\n `\n );\n }\n\n body.appendChild(bubbleHolder);\n};\nexport const onBubbleClick = (props = {}) => {\n if (timer) {\n clearTimeout(timer);\n timer = 0;\n }\n\n let iframe = widgetHolder.querySelector('iframe');\n\n // for desktop, Set the z-index of the widget holder to the configured value\n if (window.innerWidth >= '670') {\n widgetHolder.style.zIndex = window.$chatwoot.widgetZIndex;\n }\n\n if (iframe.src === '') {\n let src = iframe.getAttribute('data-src');\n iframe.src = src;\n }\n\n const { toggleValue } = props;\n const { isOpen } = window.$chatwoot;\n\n if (isOpen !== toggleValue) {\n const newIsOpen = toggleValue === undefined ? !isOpen : toggleValue;\n\n window.$chatwoot.isOpen = newIsOpen;\n toggleClass(bubbleHolder, 'woot--hide');\n toggleClass(widgetHolder, 'woot--hide');\n\n if (!(firstTimePopupJSON === undefined)) {\n if (firstTimePopUp) {\n firstTimePopUp.style.display = 'none';\n }\n }\n\n if (unreadPopUp) {\n unreadPopUp.style.display = 'none';\n }\n\n if (unreadBadge) {\n unreadBadge.style.display = 'none';\n }\n\n if (!(closepopupJSON === undefined)) {\n if (!newIsOpen && closepopupJSON.closeuppopupEnabled) {\n createCloseWidgetPopUp();\n } else if (CloseWidgetPopupDIV)\n toggleClass(CloseWidgetPopupDIV, 'woot--hide');\n }\n\n IFrameHelper.events.onBubbleToggle(newIsOpen);\n }\n};\n\nexport const onClickChatBubble = () => {\n wootOn(bubbleHolder, 'click', onBubbleClick);\n};\n\nexport const initializeClosepopupJSON = (JsonfromIframehelper) => {\n closepopupJSON = JsonfromIframehelper;\n};\n\nconst createCloseWidgetPopUp = () => {\n CloseWidgetPopupDIV = document.createElement('div');\n\n if (window.$chatwoot.position === 'left') {\n CloseWidgetPopupDIV.innerHTML = `\n
\n \n \n
\n \n
\n \n
\n \n
\n\n \n

\n ${closepopupJSON.closeuppopupText}\n

\n\n \n
\n
\n
\n
\n
\n `;\n } else {\n CloseWidgetPopupDIV.innerHTML = `\n
\n \n \n
\n \n
\n \n
\n \n
\n\n \n

\n ${closepopupJSON.closeuppopupText}\n

\n\n \n
\n
\n
\n
\n
\n `;\n }\n document.body.appendChild(CloseWidgetPopupDIV);\n\n if (window.innerWidth >= '670') {\n if (\n isExpandedView(window.$chatwoot.type) &&\n window.$chatwoot.position === 'right'\n ) {\n document.getElementById('lime--overlay2').style.right = '100px';\n }\n } else if (\n isExpandedView(window.$chatwoot.type_mobile) &&\n window.$chatwoot.position === 'right'\n ) {\n document.getElementById('lime--overlay2').style.right = '100px';\n }\n\n function closePopUp() {\n document.body.removeChild(CloseWidgetPopupDIV);\n }\n\n function openWidget() {\n document.body.removeChild(CloseWidgetPopupDIV);\n onBubbleClick(true);\n }\n\n document.getElementById('lime--closepopup').addEventListener('click', () => {\n closePopUp();\n });\n\n document.getElementById('entertext').onclick = () => {\n openWidget();\n };\n};\n\nexport const initializeFirstTimepopupJSON = (JsonfromIframehelper) => {\n firstTimePopupJSON = JsonfromIframehelper;\n};\n\nexport const createFirstTimeWidgetPopUp = (firstTimePopUpJSON) => {\n firstTimePopUp = document.createElement('div');\n\n const popupImageHtml = firstTimePopUpJSON.firsttimepopupImage\n ? ``\n : '';\n\n const popupTextHtml = `${firstTimePopUpJSON.firsttimepopupText}×`;\n\n firstTimePopUp.innerHTML = `${popupImageHtml}${popupTextHtml}`;\n\n if (window.innerWidth < '670') {\n firstTimePopUp.className = `lime-first-time-popup lime-first-time-popup--${\n firstTimePopUpJSON.firsttimepopupPosition || 'top'\n }-${window.$chatwoot.position_mobile} lime-first-time-popup--${\n firstTimePopUpJSON.firsttimepopupPosition || 'top'\n }-${window.$chatwoot.position_mobile}-${window.$chatwoot.type_mobile}`;\n } else {\n firstTimePopUp.className = `lime-first-time-popup lime-first-time-popup--${\n firstTimePopUpJSON.firsttimepopupPosition || 'top'\n }-${window.$chatwoot.position} lime-first-time-popup--${\n firstTimePopUpJSON.firsttimepopupPosition || 'top'\n }-${window.$chatwoot.position}-${window.$chatwoot.type}`;\n }\n\n bubbleHolder.insertBefore(firstTimePopUp, chatBubble);\n\n // if (\n // firstTimePopupJSON.firsttimepopupImage === undefined ||\n // firstTimePopupJSON.firsttimepopupImage.length === 0\n // ) {\n // let imagePopup = document.getElementById('lime-popup-image');\n // firstTimePopUp.removeChild(imagePopup);\n // }\n\n function closeFirstTimePopUp() {\n bubbleHolder.removeChild(firstTimePopUp);\n onBubbleClick(false);\n }\n\n document\n .getElementById('lime-close-first-time-popup')\n .addEventListener('click', () => {\n closeFirstTimePopUp();\n });\n};\n\nexport const createUnreadWidgetPopUp = (\n unreadMessageCount,\n unreadMessages,\n isEnable\n) => {\n if (!unreadBadge) {\n unreadBadge = document.createElement('div');\n unreadBadge.innerHTML = `${unreadMessageCount}`;\n unreadBadge.className = 'lime-unread-badge';\n chatBubble.appendChild(unreadBadge);\n } else {\n unreadBadge.style.display = 'flex';\n unreadBadge.innerHTML = `${unreadMessageCount}`;\n }\n\n let content = 'You Have Unread Messages';\n if (\n unreadMessages &&\n unreadMessages.length &&\n unreadMessages[0].content.length\n ) {\n content = unreadMessages[0].content;\n }\n if (!unreadPopUp && isEnable) {\n unreadPopUp = document.createElement('div');\n unreadPopUp.innerHTML = `${content}`;\n\n unreadPopUp.className = 'lime-unread-popup lime-unread-popup--animate';\n\n if (window.$chatwoot.position === 'right') {\n addClass(unreadPopUp, 'lime-unread-popup--right');\n }\n\n bubbleHolder.insertBefore(unreadPopUp, chatBubble);\n\n setTimeout(() => {\n removeClass(unreadPopUp, 'lime-unread-popup--animate');\n }, 1000);\n } else if (isEnable) {\n unreadPopUp.style.display = 'flex';\n addClass(unreadPopUp, 'lime-unread-popup--animate');\n unreadPopUp.innerHTML = `${content}`;\n\n setTimeout(() => {\n removeClass(unreadPopUp, 'lime-unread-popup--animate');\n }, 1000);\n }\n};\n","export const createEvent = (eventName) => {\n let event;\n if (typeof window.CustomEvent === 'function') {\n event = new CustomEvent(eventName);\n } else {\n event = document.createEvent('CustomEvent');\n event.initCustomEvent(eventName, false, false, null);\n }\n return event;\n};\n\nexport const dispatchWindowEvent = (eventName) => {\n const event = createEvent(eventName);\n window.dispatchEvent(event);\n};\n","import Cookies from 'js-cookie';\nimport { wootOn, addClass, loadCSS } from './DOMHelpers';\n\nimport {\n body,\n widgetHolder,\n createBubbleHolder,\n initializeClosepopupJSON,\n initializeFirstTimepopupJSON,\n createBubbleIcon,\n createFirstTimeWidgetPopUp,\n createUnreadWidgetPopUp,\n chatBubble,\n bubbleHolder,\n onClickChatBubble,\n onBubbleClick,\n setBubbleText,\n} from './bubbleHelpers.js';\nimport { dispatchWindowEvent } from 'shared/helpers/CustomEventHelper';\n\nconst EVENT_NAME = 'chatwoot:ready';\n\nvar homepopupsettingsJSON;\nvar closepopupsettingJSON;\nvar firstTimePopupJSON;\n\nexport const IFrameHelper = {\n getUrl({ baseUrl, websiteToken }) {\n return `${baseUrl}/widget?website_token=${websiteToken}`;\n },\n createFrame: ({\n baseUrl,\n websiteToken,\n widgetColor,\n homepopupsettingOptions,\n closepopupsettingOptions,\n firsttimepopupsettingOptions,\n }) => {\n const iframe = document.createElement('iframe');\n const cwCookie = Cookies.get('cw_conversation');\n let widgetUrl = IFrameHelper.getUrl({ baseUrl, websiteToken });\n if (cwCookie) {\n widgetUrl = `${widgetUrl}&cw_conversation=${cwCookie}`;\n }\n iframe.setAttribute('data-src', widgetUrl);\n\n if (\n !(firsttimepopupsettingOptions === undefined) &&\n !(firsttimepopupsettingOptions === null)\n ) {\n firsttimepopupsettingOptions = JSON.parse(firsttimepopupsettingOptions);\n if (\n firsttimepopupsettingOptions.firsttimepopupEnabled === true &&\n !window.$chatwoot.hideMessageBubble\n ) {\n let timer = firsttimepopupsettingOptions.firsttimepopupTimer || 1;\n setTimeout(() => {\n createFirstTimeWidgetPopUp(firsttimepopupsettingOptions);\n }, timer * 1000);\n }\n }\n\n // iframe.src = widgetUrl;\n IFrameHelper.loadLimeBubble(\n widgetColor,\n homepopupsettingOptions,\n closepopupsettingOptions,\n firsttimepopupsettingOptions\n );\n\n iframe.id = 'chatwoot_live_chat_widget';\n iframe.style.visibility = 'hidden';\n\n // let holderClassName = `woot-widget-holder woot--hide woot-elements--${window.$chatwoot.position}`;\n\n let holderClassName =\n window.innerWidth >= '670'\n ? `woot-widget-holder woot--hide woot-elements--${window.$chatwoot.position}`\n : `woot-widget-holder woot--hide woot-elements--${window.$chatwoot.position_mobile}`;\n\n if (window.$chatwoot.hideMessageBubble) {\n holderClassName += ` woot-widget--without-bubble`;\n }\n addClass(widgetHolder, holderClassName);\n widgetHolder.appendChild(iframe);\n body.appendChild(widgetHolder);\n IFrameHelper.initPostMessageCommunication();\n IFrameHelper.initLocationListener();\n IFrameHelper.initWindowSizeListener();\n IFrameHelper.preventDefaultScroll();\n },\n getAppFrame: () => document.getElementById('chatwoot_live_chat_widget'),\n sendMessage: (key, value) => {\n const element = IFrameHelper.getAppFrame();\n element.contentWindow.postMessage(\n `chatwoot-widget:${JSON.stringify({ event: key, ...value })}`,\n '*'\n );\n },\n initLocationListener: () => {\n window.onhashchange = () => {\n IFrameHelper.setCurrentUrl();\n };\n },\n initPostMessageCommunication: () => {\n window.onmessage = (e) => {\n if (\n typeof e.data !== 'string' ||\n e.data.indexOf('chatwoot-widget:') !== 0\n ) {\n return;\n }\n const message = JSON.parse(e.data.replace('chatwoot-widget:', ''));\n if (typeof IFrameHelper.events[message.event] === 'function') {\n IFrameHelper.events[message.event](message);\n }\n };\n },\n initWindowSizeListener: () => {\n wootOn(window, 'resize', () => IFrameHelper.toggleCloseButton());\n },\n preventDefaultScroll: () => {\n widgetHolder.addEventListener('wheel', (event) => {\n const deltaY = event.deltaY;\n const contentHeight = widgetHolder.scrollHeight;\n const visibleHeight = widgetHolder.offsetHeight;\n const scrollTop = widgetHolder.scrollTop;\n\n if (\n (scrollTop === 0 && deltaY < 0) ||\n (visibleHeight + scrollTop === contentHeight && deltaY > 0)\n ) {\n event.preventDefault();\n }\n });\n },\n events: {\n loaded: (message) => {\n Cookies.set('cw_conversation', message.config.authToken, {\n expires: 365,\n sameSite: 'Lax',\n });\n window.$chatwoot.hasLoaded = true;\n IFrameHelper.sendMessage('config-set', {\n locale: window.$chatwoot.locale,\n position: window.$chatwoot.position,\n position_mobile: window.$chatwoot.position_mobile,\n hideMessageBubble: window.$chatwoot.hideMessageBubble,\n showPopoutButton: window.$chatwoot.showPopoutButton,\n });\n IFrameHelper.onLoad();\n IFrameHelper.setCurrentUrl();\n IFrameHelper.toggleCloseButton();\n\n let el = document.querySelector('.woot--bubble-holder');\n if (el) {\n el.style.zIndex = message.config.channelConfig.widgetZindex;\n }\n\n if (window.$chatwoot.user) {\n IFrameHelper.sendMessage('set-user', window.$chatwoot.user);\n }\n dispatchWindowEvent(EVENT_NAME);\n },\n\n setBubbleLabel(message) {\n if (window.$chatwoot.hideMessageBubble) {\n // eslint-disable-next-line no-console\n console.info(\n '%c💡 LimeChat Widget is disabled by Admin, It can be Enabled from LimeChat Dashboard',\n 'color:white;font-family:system-ui;font-size:0.8rem;background-color: #6bac1b;border-radius: 0.4rem;padding: 0.2rem;'\n );\n\n return;\n }\n let widget_type =\n window.innerWidth >= '670'\n ? window.$chatwoot.type\n : window.$chatwoot.type_mobile;\n setBubbleText(\n window.innerWidth >= '670'\n ? window.$chatwoot.launcherTitle\n : window.$chatwoot.launcherTitle_mobile || message.label,\n widget_type\n );\n },\n\n toggleBubble: () => {\n onBubbleClick();\n },\n\n onBubbleToggle: (isOpen) => {\n if (isOpen) {\n IFrameHelper.pushEvent('webwidget.triggered');\n }\n },\n\n setUnreadMode: (message) => {\n const { unreadMessageCount, unreadMessages } = message;\n const { isOpen } = window.$chatwoot;\n\n if (unreadMessageCount > 0) {\n if (!isOpen) {\n createUnreadWidgetPopUp(\n unreadMessageCount,\n unreadMessages,\n window.$chatwoot.unreadPopup\n );\n }\n }\n },\n\n setConversationZeroSetup: () => {\n // Event for setting up conversation for first time users\n\n IFrameHelper.pushEvent('webwidget.triggered');\n if (!(firstTimePopupJSON === undefined)) {\n firstTimePopupJSON = JSON.parse(firstTimePopupJSON);\n if (\n firstTimePopupJSON.firsttimepopupEnabled === true &&\n !window.$chatwoot.hideMessageBubble\n ) {\n // eslint-disable-next-line dot-notation\n let timer = firstTimePopupJSON['firsttimepopupTimer'] || 1;\n setTimeout(() => {\n createFirstTimeWidgetPopUp(firstTimePopupJSON);\n }, timer * 100);\n }\n }\n },\n },\n pushEvent: (eventName) => {\n IFrameHelper.sendMessage('push-event', { eventName });\n },\n onLoad: () => {\n const iframe = IFrameHelper.getAppFrame();\n iframe.style.visibility = '';\n },\n loadLimeBubble: (\n widgetColor,\n homepopupsettingOptions,\n closepopupsettingOptions,\n firsttimepopupsettingOptions\n ) => {\n loadCSS();\n\n createBubbleHolder();\n\n if (!(homepopupsettingOptions?.length === undefined)) {\n homepopupsettingsJSON = JSON.parse(homepopupsettingOptions);\n\n if (document.readyState === 'complete') {\n if (\n Cookies.get('wasVisited') !== undefined &&\n Cookies.get('wasPopUpVisited') !== undefined\n ) {\n // do something\n } else {\n Cookies.set('wasVisited', 1);\n if (homepopupsettingsJSON.popupEnabled === true) {\n setTimeout(() => {\n createPopUp(homepopupsettingOptions);\n }, homepopupsettingsJSON.popuptimer * 1000);\n }\n }\n }\n }\n\n if (!(closepopupsettingOptions?.length === undefined)) {\n closepopupsettingJSON = JSON.parse(closepopupsettingOptions);\n initializeClosepopupJSON(closepopupsettingJSON);\n }\n\n if (!(firsttimepopupsettingOptions?.length === undefined)) {\n firstTimePopupJSON = JSON.parse(firsttimepopupsettingOptions);\n // this.CreateFirstTimePopupWidgetPopUp();\n initializeFirstTimepopupJSON(firstTimePopupJSON);\n }\n\n if (!window.$chatwoot.hideMessageBubble) {\n let chatIcon;\n const isDefaultWidgetImage = window.$chatwoot.defaultWidgetImage;\n\n if (window.innerWidth >= '670') {\n chatIcon = createBubbleIcon(\n {\n className: `woot-widget-bubble ${\n !isDefaultWidgetImage && ' white-background'\n }`,\n src: window.$chatwoot.bubbleImage,\n target: chatBubble,\n },\n window.$chatwoot.type\n );\n } else {\n chatIcon = createBubbleIcon(\n {\n className: `woot-widget-bubble ${\n !isDefaultWidgetImage && ' white-background'\n }`,\n src: window.$chatwoot.bubbleImage,\n target: chatBubble,\n },\n window.$chatwoot.type_mobile\n );\n }\n\n chatIcon.style.background = widgetColor;\n bubbleHolder.appendChild(chatIcon);\n onClickChatBubble();\n }\n\n let widget_type =\n window.innerWidth >= '670'\n ? window.$chatwoot.type\n : window.$chatwoot.type_mobile;\n setBubbleText(\n window.innerWidth >= '670'\n ? window.$chatwoot.launcherTitle\n : window.$chatwoot.launcherTitle_mobile,\n widget_type\n );\n },\n setCurrentUrl: () => {\n IFrameHelper.sendMessage('set-current-url', {\n referrerURL: window.location.href,\n referrerHost: window.location.host,\n });\n },\n toggleCloseButton: () => {\n if (window.matchMedia('(max-width: 668px)').matches) {\n IFrameHelper.sendMessage('toggle-close-button', {\n showClose: true,\n });\n } else {\n IFrameHelper.sendMessage('toggle-close-button', {\n showClose: false,\n });\n }\n },\n};\n\nconst createPopUp = (homepopupsettings) => {\n var div = document.createElement('DIV');\n Cookies.set('wasPopUpVisited', 1);\n\n let homepopupsettingsJSON2 = JSON.parse(homepopupsettings);\n\n div.innerHTML = `\n
\n
\n
\n ×\n
\n
\n
\n

${homepopupsettingsJSON2.popuptitle}

\n
\n
\n \n \n
\n
\n
\n
\n
\n
`;\n\n document.body.appendChild(div);\n\n function closePopUp() {\n document.body.removeChild(div);\n }\n\n document.getElementById('lime--closepopupmain').onclick = () => {\n closePopUp();\n };\n};\n","import Cookies from 'js-cookie';\nimport { IFrameHelper } from '../sdk/IFrameHelper';\nimport { getBubbleView } from '../sdk/bubbleHelpers';\nimport md5 from 'md5';\nconst REQUIRED_USER_KEYS = ['avatar_url', 'email', 'name'];\nconst ALLOWED_USER_ATTRIBUTES = ['avatar_url', 'email', 'name'];\nconst WIDGET_Z_INDEX = 2147483647;\n\nexport const getUserCookieName = () => {\n const SET_USER_COOKIE_PREFIX = 'cw_user_';\n const { websiteToken: websiteIdentifier } = window.$chatwoot;\n return `${SET_USER_COOKIE_PREFIX}${websiteIdentifier}`;\n};\nexport const getUserString = ({ identifier = '', user }) => {\n const userStringWithSortedKeys = ALLOWED_USER_ATTRIBUTES.reduce(\n (acc, key) => `${acc}${key}${user[key] || ''}`,\n ''\n );\n return `${userStringWithSortedKeys}identifier${identifier}`;\n};\nconst computeHashForUserData = (...args) => md5(getUserString(...args));\nconst bubbleImg =\n 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAAAdVJREFUaEPtmOFNwzAQhd/bgBHoBjABdAOYADoBMAEwAXQCygSUCegIMAHdADZ46CRHKlVsX9rEUSXfn0iNE39+93y+lDjA4AEyo0KXylpVuiqdUKDao9qjpD0kHQE4B3AWrscA7LdULEjOvJnqzdOSDO4GwLUDcpuvLHRQ1mBvd4Bt4MtBB3XfAJx4UxsZVwY6AH8AMFvsG8ND9wxsCy4C/e1UeAXgC8BnSMVTxPfDQku6B/CQ8cPcxpD83RwnKbbY4aCDLWziWKwBXJJslP03bizol1CH26ANeErSrq1RHDrU45+EypMUsD03BrSddKZ0W7g8OQZ0yhpZlYPSlqm2PsS16EYtd+8hyQ4Sa4S2Y0VymjtdMpt4TtLaAFd0gY6p5JpQktXoGNgdyWcXMeD/C0GSIi99JJms25IsQ5apWJzGymTbA12U7gy90QGmFrUmOfGqbON6hZZ0AcBs0ISnmZqRXIwJnSqLbVyuTbz9YN9Kd4HOnqAx9ceC3hl4CE97lLZ21Xwc7VFy/i6ptMG+dt10+5a8WN/xTnIZjmmrx1dbE9lHwHIfZXfeiLmUlbzvtkdJqNxcFTqnUF/3q9J9KZl7T1U6p1Bf96vSfSmZe89BKv0HdvfYLu+S5tIAAAAASUVORK5CYII=';\nexport const hasUserKeys = (user) =>\n REQUIRED_USER_KEYS.reduce((acc, key) => acc || !!user[key], false);\nconst runSDK = async ({ baseUrl, websiteToken }) => {\n let config_url = `${baseUrl}/widget_config?website_token=${websiteToken}`;\n let default_config = {};\n let widgetColor = null;\n let homepopupsettingOptions = null;\n let closepopupsettingOptions = null;\n let firsttimepopupsettingOptions = null;\n\n const fetchWidgetConfig = async () => {\n await fetch(config_url)\n .then((data) => data.json())\n .then((data) => {\n if (typeof data?.config === 'string') {\n default_config = JSON.parse(data?.config) || {};\n }\n widgetColor = data?.widget_color;\n firsttimepopupsettingOptions = data?.firsttimepopupsettingOptions;\n homepopupsettingOptions = data?.homepopupsettingOptions;\n closepopupsettingOptions = data?.closewidgetpopupsettingOptions;\n return null;\n });\n };\n\n await fetchWidgetConfig();\n\n const chatwootSettings = window.chatwootSettings || default_config;\n window.$chatwoot = {\n baseUrl,\n hasLoaded: false,\n hideMessageBubble: chatwootSettings.hideMessageBubble || false,\n isOpen: false,\n position: chatwootSettings.position === 'left' ? 'left' : 'right',\n position_mobile:\n chatwootSettings.position_mobile === 'left' ? 'left' : 'right',\n websiteToken,\n locale: chatwootSettings.locale,\n type: getBubbleView(chatwootSettings.type),\n type_mobile: getBubbleView(chatwootSettings.type_mobile),\n launcherTitle: chatwootSettings.launcherTitle || '',\n launcherTitle_mobile: chatwootSettings.launcherTitle_mobile || '',\n bottomMargin: chatwootSettings.bottomMargin || 20,\n leftMargin: chatwootSettings.leftMargin || 20,\n rightMargin: chatwootSettings.rightMargin || 20,\n bottomMargin_mobile: chatwootSettings.bottomMargin_mobile || 20,\n leftMargin_mobile: chatwootSettings.leftMargin_mobile || 20,\n rightMargin_mobile: chatwootSettings.rightMargin_mobile || 20,\n showPopoutButton: chatwootSettings.showPopoutButton || false,\n bubbleImage: chatwootSettings.image || bubbleImg,\n defaultWidgetImage: !chatwootSettings.image,\n unreadPopup: chatwootSettings.unreadPopup || false,\n isEnabledOnDesktop: chatwootSettings.isEnabledOnDesktop || true,\n isEnabledOnMobile: chatwootSettings.isEnabledOnMobile || true,\n widgetBodyFont: chatwootSettings.widgetBodyFont || 'Lato',\n widgetBGColor: chatwootSettings.widgetBGColor || '#fafafa',\n botAvatarImage:\n chatwootSettings.botAvatarImage ||\n `https://ik.imagekit.io/limechatai/Ellipse_2-3_j9UWmYtQ6.png`,\n widgetZIndex: chatwootSettings.widgetZIndex || WIDGET_Z_INDEX,\n toggle() {\n IFrameHelper.events.toggleBubble();\n },\n setUser(identifier, user) {\n if (typeof identifier !== 'string' && typeof identifier !== 'number') {\n throw new Error('Identifier should be a string or a number');\n }\n if (!hasUserKeys(user)) {\n throw new Error(\n 'User object should have one of the keys [avatar_url, email, name]'\n );\n }\n const userCookieName = getUserCookieName();\n const existingCookieValue = Cookies.get(userCookieName);\n const hashToBeStored = computeHashForUserData({ identifier, user });\n if (hashToBeStored === existingCookieValue) {\n return;\n }\n window.$chatwoot.identifier = identifier;\n window.$chatwoot.user = user;\n IFrameHelper.sendMessage('set-user', { identifier, user });\n Cookies.set(userCookieName, hashToBeStored, {\n expires: 365,\n sameSite: 'Lax',\n });\n },\n setCustomAttributes(customAttributes = {}) {\n if (!customAttributes || !Object.keys(customAttributes).length) {\n throw new Error('Custom attributes should have atleast one key');\n } else {\n IFrameHelper.sendMessage('set-custom-attributes', { customAttributes });\n }\n },\n deleteCustomAttribute(customAttribute = '') {\n if (!customAttribute) {\n throw new Error('Custom attribute is required');\n } else {\n IFrameHelper.sendMessage('delete-custom-attribute', {\n customAttribute,\n });\n }\n },\n setLabel(label = '') {\n IFrameHelper.sendMessage('set-label', { label });\n },\n removeLabel(label = '') {\n IFrameHelper.sendMessage('remove-label', { label });\n },\n setLocale(localeToBeUsed = 'en') {\n IFrameHelper.sendMessage('set-locale', { locale: localeToBeUsed });\n },\n reset() {\n if (window.$chatwoot.isOpen) {\n IFrameHelper.events.toggleBubble();\n }\n Cookies.remove('cw_conversation');\n Cookies.remove(getUserCookieName());\n const iframe = IFrameHelper.getAppFrame();\n iframe.src = IFrameHelper.getUrl({\n baseUrl: window.$chatwoot.baseUrl,\n websiteToken: window.$chatwoot.websiteToken,\n });\n },\n };\n IFrameHelper.createFrame({\n baseUrl,\n websiteToken,\n widgetColor,\n homepopupsettingOptions,\n closepopupsettingOptions,\n firsttimepopupsettingOptions,\n });\n document.querySelectorAll('.limechat_widget_toggle').forEach((el) => {\n el.onclick = () => {\n window.$chatwoot.toggle();\n };\n });\n};\nwindow.chatwootSDK = {\n run: runSDK,\n};\n","/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;\n(function (factory) {\n var registeredInModuleLoader;\n if (typeof define === 'function' && define.amd) {\n define(factory);\n registeredInModuleLoader = true;\n }\n if (typeof exports === 'object') {\n module.exports = factory();\n registeredInModuleLoader = true;\n }\n if (!registeredInModuleLoader) {\n var OldCookies = window.Cookies;\n var api = window.Cookies = factory();\n api.noConflict = function () {\n window.Cookies = OldCookies;\n return api;\n };\n }\n})(function () {\n function extend() {\n var i = 0;\n var result = {};\n for (; i < arguments.length; i++) {\n var attributes = arguments[i];\n for (var key in attributes) {\n result[key] = attributes[key];\n }\n }\n return result;\n }\n function decode(s) {\n return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n }\n function init(converter) {\n function api() {}\n function set(key, value, attributes) {\n if (typeof document === 'undefined') {\n return;\n }\n attributes = extend({\n path: '/'\n }, api.defaults, attributes);\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n }\n\n // We're using \"expires\" because \"max-age\" is not supported by IE\n attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n try {\n var result = JSON.stringify(value);\n if (/^[\\{\\[]/.test(result)) {\n value = result;\n }\n } catch (e) {}\n value = converter.write ? converter.write(value, key) : encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n key = encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\\(\\)]/g, escape);\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue;\n }\n stringifiedAttributes += '; ' + attributeName;\n if (attributes[attributeName] === true) {\n continue;\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n return document.cookie = key + '=' + value + stringifiedAttributes;\n }\n function get(key, json) {\n if (typeof document === 'undefined') {\n return;\n }\n var jar = {};\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var i = 0;\n for (; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var cookie = parts.slice(1).join('=');\n if (!json && cookie.charAt(0) === '\"') {\n cookie = cookie.slice(1, -1);\n }\n try {\n var name = decode(parts[0]);\n cookie = (converter.read || converter)(cookie, name) || decode(cookie);\n if (json) {\n try {\n cookie = JSON.parse(cookie);\n } catch (e) {}\n }\n jar[name] = cookie;\n if (key === name) {\n break;\n }\n } catch (e) {}\n }\n return key ? jar[key] : jar;\n }\n api.set = set;\n api.get = function (key) {\n return get(key, false /* read as raw */);\n };\n api.getJSON = function (key) {\n return get(key, true /* read as json */);\n };\n api.remove = function (key, attributes) {\n set(key, '', extend(attributes, {\n expires: -1\n }));\n };\n api.defaults = {};\n api.withConverter = init;\n return api;\n }\n return init(function () {});\n});","var charenc = {\n // UTF-8 encoding\n utf8: {\n // Convert a string to a byte array\n stringToBytes: function (str) {\n return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));\n },\n // Convert a byte array to a string\n bytesToString: function (bytes) {\n return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));\n }\n },\n // Binary encoding\n bin: {\n // Convert a string to a byte array\n stringToBytes: function (str) {\n for (var bytes = [], i = 0; i < str.length; i++) bytes.push(str.charCodeAt(i) & 0xFF);\n return bytes;\n },\n // Convert a byte array to a string\n bytesToString: function (bytes) {\n for (var str = [], i = 0; i < bytes.length; i++) str.push(String.fromCharCode(bytes[i]));\n return str.join('');\n }\n }\n};\nmodule.exports = charenc;"],"sourceRoot":""}